@import url("./site.css");

/* KatzLex extends the existing MiniLex layout without replacing its design. */
.cats-home-hero {
  background: linear-gradient(108deg, #fff 0%, #f4faff 53%, #e6f2ff 100%);
}
.cats-home-hero .hero-inner {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  min-height: 560px;
  padding-block: 68px;
}
.cats-home-hero .hero-copy {
  align-self: center;
  padding: 0;
}
.cats-home-hero h1 {
  max-width: 690px;
}
.cats-home-hero .hero-text {
  max-width: 590px;
  font-size: 17px;
}
.cats-home-hero-bg {
  background-image:
    radial-gradient(circle at 81% 42%, rgba(81, 156, 235, .15), transparent 29%),
    radial-gradient(circle at 72% 89%, rgba(255, 255, 255, .88), transparent 24%);
}
.cats-home-visual {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 480px);
  aspect-ratio: 1;
  margin-inline: auto;
  color: var(--blue);
}
.cats-home-orbit {
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--blue) 16%, transparent);
  border-radius: 50%;
}
.cats-home-orbit-outer {
  inset: 3%;
}
.cats-home-orbit-inner {
  inset: 15%;
  border-style: dashed;
}
.cats-home-emblem {
  display: grid;
  place-items: center;
  width: 56%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 50%;
  background: rgba(255, 255, 255, .7);
  box-shadow: 0 16px 65px rgba(38, 90, 147, .08);
}
.cats-home-emblem svg {
  width: 58%;
  height: 58%;
  stroke-width: 1.1;
}
.cats-home-token {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid rgba(223, 231, 242, .8);
  border-radius: 999px;
  background: rgba(255, 255, 255, .93);
  box-shadow: 0 5px 24px rgba(38, 90, 147, .04);
  font-size: 14px;
  color: var(--ink);
}
.cats-home-token svg {
  width: 21px;
  height: 21px;
  color: var(--blue);
  stroke-width: 1.7;
}
.cats-home-token-races {
  top: 8%;
  left: 12%;
}
.cats-home-token-species {
  top: 40%;
  right: 0;
}
.cats-home-token-knowledge {
  bottom: 7%;
  left: 17%;
}
.cats-home-main {
  padding-top: 34px;
  padding-bottom: 16px;
}
.cats-home-main .section-head {
  margin-top: 0;
}
.cats-home-main .section-head a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cats-home-main .section-head a svg {
  width: 16px;
  height: 16px;
}
.cats-home-worlds {
  scroll-margin-top: 110px;
}
.cats-section-intro {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 23px;
}
.cats-home-worlds .home-feature-grid {
  margin-bottom: 40px;
}
.cats-home-worlds .home-feature-card {
  padding: 25px;
  row-gap: 7px;
}
.cats-home-profiles {
  margin-block: 12px 38px;
}
.cats-home-profiles .item-grid:empty {
  display: none;
}
.cats-home-empty {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 30px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .7);
  color: var(--muted);
}
.cats-home-empty > svg {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  color: var(--blue);
  stroke-width: 1.4;
}
.cats-home-empty h3 {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 19px;
}
.cats-home-empty p {
  margin: 0;
  line-height: 1.6;
}
.cats-home-knowledge {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: 46px;
  margin-bottom: 30px;
  padding: 44px;
  border-radius: 16px;
  background: linear-gradient(120deg, var(--blue-soft), #f7fbff);
}
.cats-knowledge-copy h2 {
  margin: 0 0 17px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
}
.cats-knowledge-copy > p:not(.eyebrow) {
  margin: 0 0 19px;
  color: var(--muted);
  line-height: 1.65;
}
.cats-coming-label {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .83);
  color: var(--accent-ink);
  font-size: 12px;
}
.cats-knowledge-topics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.cats-knowledge-topics > div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 19px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .8);
  font-size: 13px;
  line-height: 1.4;
}
.cats-knowledge-topics svg {
  flex: 0 0 23px;
  width: 23px;
  height: 23px;
  color: var(--blue);
  stroke-width: 1.6;
}
@media (max-width: 1000px) {
  .cats-home-hero .hero-inner {
    gap: 24px;
    min-height: 470px;
    padding: 48px 0;
  }
  .cats-home-hero .hero-text {
    font-size: 15px;
  }
  .cats-home-knowledge {
    gap: 28px;
    padding: 32px;
  }
  .cats-knowledge-topics > div {
    padding: 14px;
  }
}
/* The source theme has a full-screen photographic mobile hero. The Katze
   theme keeps the same controls while fitting its text and SVG shapes. */
@media (max-width: 820px) {
  body.page-home .topbar {
    margin-bottom: 0;
  }
  body.page-home .cats-home-hero {
    height: auto !important;
    min-height: 0 !important;
    max-height: none;
    background: linear-gradient(108deg, #fff 0%, #f4faff 53%, #e6f2ff 100%) !important;
  }
  body.page-home .cats-home-hero::after {
    display: none !important;
  }
  body.page-home .cats-home-hero .cats-home-hero-bg {
    background-image:
      radial-gradient(circle at 81% 42%, rgba(81, 156, 235, .15), transparent 29%),
      radial-gradient(circle at 72% 89%, rgba(255, 255, 255, .88), transparent 24%) !important;
  }
  body.page-home .cats-home-hero .hero-inner {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    display: grid !important;
    width: min(1500px, calc(100% - 48px)) !important;
    min-height: 0 !important;
    margin-inline: auto !important;
    padding: 42px 0 36px !important;
    transform: none !important;
  }
  body.page-home .cats-home-hero .hero-copy {
    display: block;
    padding: 0 !important;
    color: var(--ink);
  }
  body.page-home .cats-home-hero .hero-eyebrow {
    min-height: 0;
    margin: 0 0 12px !important;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--blue);
    font-size: 12px;
    letter-spacing: 0;
    text-transform: none;
  }
  body.page-home .cats-home-hero .hero-copy h1 {
    margin: 0 0 20px !important;
    color: var(--ink);
    font-size: clamp(36px, 6.6vw, 58px) !important;
    line-height: 1.04 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
  body.page-home .cats-home-hero .hero-text {
    display: block;
    max-width: 590px !important;
    margin: 0 0 24px !important;
    overflow: visible;
    color: #243754;
    font-size: 15px !important;
    line-height: 1.62 !important;
    -webkit-line-clamp: initial;
  }
  body.page-home .cats-home-hero .hero-actions {
    margin-top: 0;
    gap: 10px;
  }
  body.page-home .cats-home-hero .hero-actions a {
    flex: 0 1 auto;
    min-height: 44px;
    padding: 12px 18px;
    font-size: 13px;
  }
  body.page-home .cats-home-hero .hero-actions .primary-link {
    background: var(--blue);
    color: #fff;
  }
  body.page-home .cats-home-hero .hero-actions .secondary-link {
    border-color: var(--accent-border);
    background: #fff;
    color: var(--blue);
  }
}
@media (max-width: 700px) {
  .cats-home-hero .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding: 38px 0 30px;
  }
  .cats-home-hero h1 {
    max-width: 510px;
    font-size: clamp(36px, 9.5vw, 58px);
  }
  .cats-home-hero .hero-text {
    margin-bottom: 24px;
  }
  .cats-home-visual {
    width: min(74%, 290px);
  }
  .cats-home-token {
    min-height: 37px;
    gap: 7px;
    padding: 8px 12px;
    font-size: 11px;
  }
  .cats-home-token svg {
    width: 17px;
    height: 17px;
  }
  .cats-home-token-races {
    left: 0;
  }
  .cats-home-token-species {
    right: -5%;
  }
  .cats-home-main {
    padding-top: 26px;
  }
  .cats-home-worlds .home-feature-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 30px;
  }
  .cats-home-worlds .home-feature-card {
    padding: 20px;
  }
  .cats-home-main .section-head {
    align-items: flex-start;
    gap: 12px;
  }
  .cats-home-main .section-head h2 {
    font-size: 19px;
  }
  .cats-home-main .section-head a {
    flex: 0 0 auto;
    padding-top: 3px;
  }
  .cats-home-empty {
    gap: 15px;
    padding: 22px;
    align-items: flex-start;
  }
  .cats-home-empty > svg {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
  }
  .cats-home-empty h3 {
    font-size: 17px;
  }
  .cats-home-empty p {
    font-size: 14px;
  }
  .cats-home-knowledge {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding: 26px 22px;
  }
  .cats-knowledge-topics > div {
    gap: 9px;
    padding: 14px 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cats-home-worlds .home-feature-card {
    transition: none;
  }
}

.cat-profile .latin:empty,
.cat-profile .profile-gallery:not(:has(img)) {
  display: none;
}
.cat-profile .profile-info-list {
  margin: 0;
}
.cat-profile .profile-info-row + .profile-info-row {
  margin-top: 16px;
}
.cat-profile .profile-info-row dt {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.cat-profile .profile-info-row dd {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.cat-profile .profile-info-row dd ul {
  margin: 0;
  padding-left: 18px;
}
.cat-profile .profile-info-row dd a {
  color: var(--blue);
}
.cat-profile .profile-card {
  scroll-margin-top: 105px;
}
.cat-profile .profile-side:not(:has(*)) {
  display: none;
}
.cat-profile .profile-content:not(:has(.profile-side > *)) {
  grid-template-columns: minmax(0, 1fr);
}

.cats-listing .listing-tabbar:empty,
.cats-listing .item-grid:not(:has(.item-card)),
.cats-listing-empty:empty {
  display: none;
}
.cats-listing-empty {
  margin-block: 20px 34px;
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .7);
}
.cats-listing-empty p {
  margin: 0;
  line-height: 1.6;
}
