/*
Theme Name: Chinese Zodiac Sign
Theme URI: https://www.chinesezodiacsign.com/
Description: A standalone, data-driven WordPress theme for ChineseZodiacSign.com.
Author: Chinese Zodiac Sign
Version: 3.0.1
Text Domain: chinese-zodiac-sign
*/

/* WordPress integration styles. The approved prototype CSS is loaded separately. */
html {
  scroll-behavior: smooth;
}

.home-page .animal-feature {
  position: relative;
}

.home-page .animal-feature__link {
  position: absolute;
  z-index: 2;
  inset: 0;
  border-radius: inherit;
}

.home-page .animal-feature__link:focus-visible {
  outline: 3px solid #b22922;
  outline-offset: 3px;
}

body.admin-bar .site-header {
  top: 32px;
}

.years-page .year-card {
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.years-page .year-card:hover,
.years-page .year-card:focus-visible {
  color: inherit;
  border-color: #d5a45a;
  box-shadow: 0 10px 24px rgba(74, 50, 24, .12);
  transform: translateY(-3px);
}

.years-page .year-card:focus-visible {
  outline: 3px solid rgba(186, 16, 20, .25);
  outline-offset: 3px;
}

.years-page .year-card.has-year-guide::after {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 7px;
  height: 7px;
  content: "";
  background: #ba1014;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(186, 16, 20, .09);
}

.years-page .years-mobile-item {
  color: inherit;
  text-decoration: none;
}

.years-page .years-pagination > span {
  display: grid;
  place-items: center;
  min-width: 24px;
}

.category-page .category-featured__image {
  display: block;
  min-width: 0;
  overflow: hidden;
}

.category-page main,
.category-page .category-hero__grid,
.category-page .category-hero__grid > div,
.category-page .category-layout,
.category-page .category-content,
.category-page .category-featured,
.category-page .category-featured > div,
.category-page .category-latest,
.category-page .category-card-grid,
.category-page .category-card {
  min-width: 0;
  max-width: 100%;
}

.category-page .category-featured h2,
.category-page .category-card h3,
.category-page .category-hero p {
  overflow-wrap: anywhere;
}

.category-page .category-featured__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-page .category-card__image {
  display: block;
  overflow: hidden;
}

.category-page .category-card__image img {
  width: 100%;
  height: 165px;
  object-fit: cover;
  transition: transform .25s ease;
}

.category-page .category-card:hover .category-card__image img {
  transform: scale(1.025);
}

.category-page .category-card small {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.csi-content-shell {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.mobile-panel .menu,
.mobile-panel .menu > li {
  display: contents;
}

/* Compact, single-line global navigation. */
@media (min-width: 1121px) {
  .site-header__inner {
    width: min(calc(100% - 40px), 1440px);
    min-height: 72px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: clamp(16px, 1.8vw, 30px);
  }

  .brand {
    gap: 10px;
  }

  .brand__mark {
    width: 36px;
    font-size: 18px;
  }

  .brand__mark--image {
    width: 46px;
    height: 46px;
    padding: 0;
    object-fit: contain;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
  }

  .brand__name {
    font-size: 22px;
  }

  .main-nav {
    min-width: 0;
  }

  .main-nav ul {
    flex-wrap: nowrap;
    justify-content: center;
    gap: clamp(12px, 1.45vw, 24px);
  }

  .main-nav li {
    position: relative;
    flex: 0 0 auto;
  }

  .main-nav a {
    position: relative;
    display: inline-flex;
    min-height: 72px;
    align-items: center;
    padding-inline: 2px;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
  }

  .main-nav .current-menu-item > a::after,
  .main-nav .current-menu-ancestor > a::after,
  .main-nav a[aria-current="page"]::after {
    content: "";
    position: absolute;
    right: 2px;
    bottom: 0;
    left: 2px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px 3px 0 0;
  }

  .site-header__actions {
    gap: 9px;
    transform: translateX(-14px);
  }

  .site-header__actions .icon-button {
    width: 40px;
    height: 40px;
  }

  .site-header__actions .button {
    min-height: 44px;
    padding-inline: 17px;
    font-size: 13px;
    white-space: nowrap;
  }
}

@media (min-width: 1121px) and (max-width: 1280px) {
  .site-header__inner {
    gap: 14px;
  }

  .brand__name {
    display: none;
  }

  .main-nav ul {
    gap: 12px;
  }

  .main-nav a {
    font-size: 12px;
  }
}

.mobile-panel .mobile-menu-list {
  display: grid;
  grid-template-columns: 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-panel .mobile-menu-list > li {
  display: block;
  width: 100%;
}

.mobile-panel .mobile-menu-list > li > a {
  width: 100%;
  white-space: normal;
}

.csi-page-hero {
  padding: clamp(54px, 8vw, 96px) 0 46px;
  background:
    radial-gradient(circle at 82% 24%, rgba(197, 49, 42, .12), transparent 30%),
    linear-gradient(180deg, #fffaf0 0%, #f8f1e2 100%);
  text-align: center;
}

.csi-page-hero__eyebrow,
.csi-archive-hero__eyebrow {
  margin: 0 0 12px;
  color: #b22922;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.csi-page-hero h1,
.csi-archive-hero h1 {
  max-width: 940px;
  margin: 0 auto;
  color: #243f35;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.15rem, 5vw, 4rem);
  line-height: 1.08;
}

.csi-page-hero p,
.csi-archive-hero p {
  max-width: 760px;
  margin: 18px auto 0;
  color: #5d665f;
  font-size: 1.05rem;
  line-height: 1.75;
}

.csi-entry-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 42px;
  padding-block: 54px 76px;
}

.csi-entry-card,
.csi-sidebar-card,
.csi-archive-card,
.csi-search-card,
.csi-author-card {
  border: 1px solid rgba(62, 77, 67, .14);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(49, 57, 49, .07);
}

.csi-entry-card {
  padding: clamp(24px, 5vw, 54px);
}

.csi-entry-card > :first-child {
  margin-top: 0;
}

.csi-entry-card img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

.csi-entry-card h2,
.csi-entry-card h3 {
  scroll-margin-top: 110px;
  color: #243f35;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.25;
}

.csi-entry-card h2 {
  margin-top: 2.15em;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
}

.csi-entry-card h3 {
  margin-top: 1.7em;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
}

.csi-entry-card p,
.csi-entry-card li {
  color: #3f4b44;
  font-size: 1.04rem;
  line-height: 1.82;
}

.csi-entry-card table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.csi-entry-card th,
.csi-entry-card td {
  padding: 10px 12px;
  border: 1px solid #d8d9d4;
}

.csi-sidebar {
  display: grid;
  align-content: start;
  gap: 18px;
}

.csi-sidebar-card {
  padding: 22px;
}

.csi-sidebar-card h2 {
  margin: 0 0 14px;
  color: #243f35;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.csi-sidebar-card ul {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.csi-sidebar-card a {
  color: #33493e;
  font-weight: 700;
}

.csi-entry-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-top: 20px;
  color: #68736c;
  font-size: .9rem;
}

.csi-entry-meta a {
  color: inherit;
}

.csi-featured-image {
  display: block;
  width: min(1040px, calc(100% - 32px));
  max-height: 560px;
  margin: -18px auto 0;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 20px 55px rgba(36, 63, 53, .16);
}

.csi-archive-hero {
  padding: clamp(54px, 8vw, 90px) 0 42px;
  background: linear-gradient(180deg, #fffaf0, #f5eddd);
  text-align: center;
}

.csi-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-block: 46px 68px;
}

.csi-archive-card,
.csi-search-card {
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.csi-archive-card:hover,
.csi-search-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(49, 57, 49, .12);
}

.csi-archive-card__image {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #efe8da;
}

.csi-archive-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.csi-archive-card:hover .csi-archive-card__image img {
  transform: scale(1.035);
}

.csi-archive-card__body {
  padding: 22px;
}

.csi-card-kicker {
  margin: 0 0 9px;
  color: #b22922;
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.csi-archive-card h2,
.csi-search-card h2 {
  margin: 0 0 10px;
  color: #243f35;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.3;
}

.csi-archive-card h2 a,
.csi-search-card h2 a {
  color: inherit;
  text-decoration: none;
}

.csi-archive-card p,
.csi-search-card p {
  color: #5b665f;
  line-height: 1.65;
}

.csi-pagination {
  grid-column: 1 / -1;
  margin-top: 16px;
}

.csi-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.csi-pagination .page-numbers {
  min-width: 40px;
  padding: 9px 12px;
  border: 1px solid #d9d3c6;
  border-radius: 9px;
  background: #fff;
  color: #33493e;
  text-align: center;
}

.csi-pagination .current {
  border-color: #b22922;
  background: #b22922;
  color: #fff;
}

.csi-search-list {
  display: grid;
  gap: 20px;
  padding-block: 44px 70px;
}

.csi-search-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
}

.csi-search-card img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
}

.csi-search-card__body {
  padding: 25px 28px;
}

.csi-animal-hero {
  position: relative;
  overflow: hidden;
  background: #f8f0df;
}

.csi-animal-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  align-items: center;
  gap: 44px;
  min-height: 520px;
  padding-block: 62px;
}

.csi-animal-hero__character {
  display: inline-grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 50%;
  background: #b22922;
  color: #fff;
  font-family: serif;
  font-size: 1.8rem;
}

.csi-animal-hero h1 {
  margin: 0;
  color: #243f35;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1.03;
}

.csi-animal-hero p {
  max-width: 670px;
  color: #56645c;
  font-size: 1.08rem;
  line-height: 1.75;
}

.csi-animal-hero__image {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
}

.csi-empty {
  grid-column: 1 / -1;
  padding: 44px;
  border: 1px dashed #cfc8ba;
  border-radius: 16px;
  background: #fff;
  text-align: center;
}

.csi-comments {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 72px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(62, 77, 67, .14);
  border-radius: 18px;
  background: #fff;
}

.csi-comments .comment-list {
  padding-left: 20px;
}

.csi-prototype-content {
  margin-top: 40px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .site-header__actions {
    display: flex !important;
    position: absolute;
    top: 10px;
    right: 20px;
    z-index: 5;
  }

  .site-header__actions > button.menu-toggle.icon-button {
    display: grid !important;
    position: fixed !important;
    top: 10px !important;
    right: 20px !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .csi-menu-glyph {
    display: block;
    font-size: 22px;
    line-height: 1;
  }

  .menu-toggle .csi-menu-glyph + .icon {
    display: none;
  }

  .csi-entry-layout {
    grid-template-columns: 1fr;
  }

  .csi-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .csi-archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 680px) {
  .csi-archive-grid,
  .csi-sidebar {
    grid-template-columns: 1fr;
  }

  .csi-search-card {
    grid-template-columns: 1fr;
  }

  .csi-search-card img {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .csi-animal-hero__inner {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-block: 42px;
    text-align: center;
  }

  .csi-animal-hero p {
    margin-inline: auto;
  }

  .csi-animal-hero__image {
    max-height: 280px;
  }
}

/* Standalone twelve-animal introduction pages. */
.csi-animal-page {
  padding-bottom: 80px;
  background: #fbf8f1;
}

.csi-animal-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-block: 24px;
  color: #7b776f;
  font-size: .86rem;
}

.csi-animal-breadcrumbs a {
  color: #5d685f;
  text-decoration: none;
}

.csi-animal-breadcrumbs strong {
  color: #ad211e;
}

.csi-animal-intro {
  position: relative;
  overflow: hidden;
  border-block: 1px solid #eadfcb;
  background:
    radial-gradient(circle at 82% 38%, rgba(198, 43, 37, .09), transparent 26%),
    linear-gradient(135deg, #fffdf8 0%, #f8efdc 100%);
}

.csi-animal-intro::after {
  content: "";
  position: absolute;
  right: -140px;
  bottom: -190px;
  width: 470px;
  height: 470px;
  border: 1px solid rgba(173, 33, 30, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 54px rgba(173, 33, 30, .025), 0 0 0 108px rgba(173, 33, 30, .018);
}

.csi-animal-intro__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  align-items: center;
  gap: clamp(34px, 6vw, 82px);
  min-height: 570px;
  padding-block: clamp(58px, 8vw, 92px);
}

.csi-animal-intro__title {
  display: flex;
  align-items: center;
  gap: 20px;
}

.csi-animal-intro__title > span {
  display: grid;
  flex: 0 0 76px;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 50%;
  background: #b6211e;
  box-shadow: 0 12px 30px rgba(182, 33, 30, .2);
  color: #fff8e9;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.35rem;
}

.csi-animal-intro h1 {
  margin: 0;
  color: #1e352d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.55rem, 5.3vw, 4.8rem);
  line-height: 1;
}

.csi-animal-intro__title p {
  margin: 9px 0 0;
  color: #897d6c;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .045em;
}

.csi-animal-intro__lead {
  max-width: 680px;
  margin: 28px 0 0;
  color: #4f5c55;
  font-size: 1.08rem;
  line-height: 1.82;
}

.csi-animal-intro__years {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 22px 0 28px;
  color: #6e6c65;
  line-height: 1.6;
}

.csi-animal-intro__years strong {
  color: #273d34;
}

.csi-animal-intro__art {
  position: relative;
  display: grid;
  min-height: 420px;
  place-items: center;
}

.csi-animal-intro__art::before {
  content: "";
  position: absolute;
  inset: 6% 5%;
  border: 1px solid rgba(179, 135, 63, .32);
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
}

.csi-animal-intro__art img {
  position: relative;
  z-index: 1;
  width: min(100%, 540px);
  max-height: 440px;
  object-fit: contain;
  filter: drop-shadow(0 24px 24px rgba(79, 56, 33, .11));
}

.csi-animal-intro__seal {
  position: absolute;
  z-index: 2;
  right: 2%;
  bottom: 7%;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 2px solid #b6211e;
  background: #fff8e9;
  color: #b6211e;
  font-family: serif;
  font-size: 1.65rem;
  transform: rotate(-5deg);
}

.csi-animal-jump {
  position: sticky;
  z-index: 4;
  top: 72px;
  border-bottom: 1px solid #e6dccb;
  background: rgba(255, 253, 248, .95);
  box-shadow: 0 8px 22px rgba(69, 55, 38, .05);
  backdrop-filter: blur(12px);
}

.csi-animal-jump .csi-content-shell {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 4vw, 54px);
  overflow-x: auto;
}

.csi-animal-jump a {
  padding: 17px 0 14px;
  border-bottom: 3px solid transparent;
  color: #33483f;
  font-size: .84rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.csi-animal-jump a:hover,
.csi-animal-jump a:focus-visible {
  border-bottom-color: #b6211e;
  color: #b6211e;
}

.csi-animal-sections {
  display: grid;
  gap: 34px;
  padding-top: 52px;
}

.csi-animal-section {
  scroll-margin-top: 150px;
  padding: clamp(28px, 5vw, 50px);
  border: 1px solid #e4d8c5;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(66, 52, 36, .055);
}

.csi-animal-section__heading {
  margin-bottom: 28px;
}

.csi-animal-section__heading > p:first-child {
  margin: 0 0 7px;
  color: #b6211e;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.csi-animal-section__heading h2 {
  margin: 0;
  color: #233b32;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  line-height: 1.15;
}

.csi-animal-section__heading h2 + p {
  max-width: 760px;
  margin: 12px 0 0;
  color: #687069;
  line-height: 1.7;
}

.csi-animal-section__heading--row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.csi-animal-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  overflow: hidden;
  border: 1px solid #eadfce;
  border-radius: 16px;
}

.csi-animal-facts > div {
  min-width: 0;
  padding: 22px;
  border-right: 1px solid #eadfce;
  border-bottom: 1px solid #eadfce;
}

.csi-animal-facts > div:nth-child(4n) {
  border-right: 0;
}

.csi-animal-facts > div:nth-last-child(-n + 4) {
  border-bottom: 0;
}

.csi-animal-facts dt {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 11px;
  color: #7b756d;
  font-size: .77rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.csi-animal-facts dt span {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #d99b26;
  border-radius: 50%;
  color: #bd7f12;
  font-family: serif;
  font-size: .92rem;
}

.csi-animal-facts dd {
  margin: 0;
  color: #243c33;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.06rem;
  line-height: 1.45;
}

.csi-animal-year-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.csi-animal-year-grid li {
  position: relative;
  display: grid;
  min-height: 142px;
  place-items: center;
  align-content: center;
  padding: 16px 8px;
  border: 1px solid #eadfce;
  border-radius: 14px;
  background: #fffdf8;
  text-align: center;
}

.csi-animal-year-grid li.is-latest {
  border-color: #bd2823;
  background: #fff7ee;
  box-shadow: inset 0 -3px 0 #bd2823;
}

.csi-animal-year-grid li > span {
  color: #c28b24;
  font-family: serif;
  font-size: 1.35rem;
}

.csi-animal-year-grid strong {
  margin: 4px 0;
  color: #263c34;
  font-size: 1.08rem;
}

.csi-animal-year-grid small {
  color: #79766f;
  line-height: 1.35;
}

.csi-animal-note {
  margin: 22px 0 0;
  padding: 15px 18px;
  border-left: 3px solid #d99b26;
  background: #fff9ed;
  color: #6b6a64;
  font-size: .9rem;
  line-height: 1.65;
}

.csi-animal-personality {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.csi-animal-personality article,
.csi-animal-life-grid article {
  padding: 28px;
  border: 1px solid #e7dece;
  border-radius: 16px;
  background: #fffcf7;
}

.csi-animal-personality__compatibility {
  grid-column: 1 / -1;
  background:
    radial-gradient(circle at 93% 40%, rgba(182, 33, 30, .08), transparent 26%),
    #fffcf7 !important;
}

.csi-animal-card-icon,
.csi-animal-life-grid article > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: #b6211e;
  color: #fff;
  font-family: serif;
  font-size: 1.15rem;
}

.csi-animal-card-icon--soft,
.csi-animal-life-grid article > span {
  background: #d59a25;
}

.csi-animal-personality h3,
.csi-animal-life-grid h3 {
  margin: 17px 0 13px;
  color: #253c33;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.38rem;
}

.csi-animal-personality ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.csi-animal-personality li {
  position: relative;
  padding-left: 22px;
  color: #5c675f;
}

.csi-animal-personality li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #ad211e;
  font-weight: 900;
}

.csi-animal-personality p,
.csi-animal-life-grid p {
  color: #5c675f;
  line-height: 1.72;
}

.csi-animal-life-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.csi-animal-life-grid article {
  min-height: 240px;
}

.csi-animal-switcher__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.csi-animal-switcher__grid a {
  display: grid;
  min-width: 0;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid #e5dac7;
  border-radius: 13px;
  background: #fffdf9;
  color: #293f36;
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.csi-animal-switcher__grid a:hover,
.csi-animal-switcher__grid a:focus-visible {
  border-color: #c69a4d;
  box-shadow: 0 9px 20px rgba(72, 55, 34, .08);
  transform: translateY(-2px);
}

.csi-animal-switcher__grid a.is-current {
  border-color: #b6211e;
  background: #fff3e7;
}

.csi-animal-switcher__grid img {
  width: 62px;
  height: 54px;
  object-fit: contain;
}

.csi-animal-switcher__grid span {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 6px;
}

.csi-animal-switcher__grid strong {
  overflow: hidden;
  text-overflow: ellipsis;
}

.csi-animal-switcher__grid small {
  color: #ad211e;
  font-family: serif;
  font-size: 1rem;
}

.csi-animal-related .csi-archive-grid {
  padding: 0;
}

.csi-animal-related .csi-archive-card h2 {
  font-size: 1.2rem;
}

@media (max-width: 900px) {
  .csi-animal-intro__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(260px, .95fr);
    gap: 26px;
  }

  .csi-animal-intro__title {
    align-items: flex-start;
  }

  .csi-animal-intro__title > span {
    flex-basis: 60px;
    width: 60px;
    height: 60px;
    font-size: 1.85rem;
  }

  .csi-animal-intro__art {
    min-height: 320px;
  }

  .csi-animal-jump {
    top: 60px;
  }

  .csi-animal-jump .csi-content-shell {
    justify-content: flex-start;
  }

  .csi-animal-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .csi-animal-facts > div:nth-child(4n) {
    border-right: 1px solid #eadfce;
  }

  .csi-animal-facts > div:nth-child(2n) {
    border-right: 0;
  }

  .csi-animal-facts > div:nth-last-child(-n + 4) {
    border-bottom: 1px solid #eadfce;
  }

  .csi-animal-facts > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .csi-animal-year-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .csi-animal-switcher__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .csi-animal-page {
    padding-bottom: 54px;
  }

  .csi-animal-breadcrumbs {
    padding-block: 16px;
  }

  .csi-animal-intro__inner {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-block: 44px;
  }

  .csi-animal-intro__copy {
    text-align: center;
  }

  .csi-animal-intro__title {
    display: grid;
    justify-items: center;
  }

  .csi-animal-intro__lead {
    margin-inline: auto;
  }

  .csi-animal-intro__years,
  .csi-animal-intro .button-row {
    justify-content: center;
  }

  .csi-animal-intro__art {
    min-height: 260px;
  }

  .csi-animal-intro__art img {
    max-height: 280px;
  }

  .csi-animal-intro__seal {
    right: 10%;
  }

  .csi-animal-sections {
    gap: 22px;
    padding-top: 30px;
  }

  .csi-animal-section {
    padding: 24px 18px;
    border-radius: 17px;
  }

  .csi-animal-section__heading--row {
    display: block;
  }

  .csi-animal-section__heading--row > .text-link {
    display: inline-flex;
    margin-top: 14px;
  }

  .csi-animal-personality,
  .csi-animal-life-grid {
    grid-template-columns: 1fr;
  }

  .csi-animal-personality__compatibility {
    grid-column: auto;
  }

  .csi-animal-year-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .csi-animal-switcher__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .csi-animal-facts {
    grid-template-columns: 1fr;
  }

  .csi-animal-facts > div,
  .csi-animal-facts > div:nth-child(2n),
  .csi-animal-facts > div:nth-child(4n),
  .csi-animal-facts > div:nth-last-child(-n + 2),
  .csi-animal-facts > div:nth-last-child(-n + 4) {
    border-right: 0;
    border-bottom: 1px solid #eadfce;
  }

  .csi-animal-facts > div:last-child {
    border-bottom: 0;
  }

  .csi-animal-switcher__grid {
    grid-template-columns: 1fr;
  }
}

/* WordPress content inserted into the zodiac-animal.html preview layout. */
.csi-animal-preview-note {
  margin: 18px 0 0;
  padding: 12px 16px;
  border-left: 3px solid var(--accent);
  background: var(--surface-warm);
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.6;
}

.csi-animal-preview-related {
  scroll-margin-top: 110px;
  margin-top: 28px;
}

.csi-animal-preview-related .section-heading {
  margin-bottom: 18px;
}

.csi-animal-preview-related .csi-archive-grid {
  padding: 0;
}

.csi-animal-preview-related .csi-archive-card h2 {
  font-size: 1.12rem;
}

.csi-animal-preview-related .csi-archive-card__body {
  padding: 18px;
}

.csi-animal-preview-related .csi-archive-card__body > p:not(.csi-card-kicker) {
  font-size: .82rem;
}

.detail-page .topic-card:nth-child(2) img {
  object-fit: contain;
  background: var(--surface-warm);
}

/* Twelve-animal introduction hub and structured sign archives. */
.csi-animal-hub,
.csi-sign-archive {
  overflow: hidden;
  background: #fbf8f1;
}

.csi-animal-hub-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #eadfcb;
  background:
    radial-gradient(circle at 84% 38%, rgba(178, 35, 31, .11), transparent 24%),
    linear-gradient(135deg, #fffdf8 0%, #f7ecd5 100%);
}

.csi-animal-hub-hero::before {
  position: absolute;
  top: -270px;
  right: -190px;
  width: 720px;
  height: 720px;
  content: "";
  border: 1px solid rgba(178, 35, 31, .11);
  border-radius: 50%;
  box-shadow: 0 0 0 72px rgba(178, 35, 31, .025), 0 0 0 144px rgba(178, 35, 31, .018);
}

.csi-animal-hub-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  align-items: center;
  gap: clamp(34px, 6vw, 90px);
  min-height: 650px;
  padding-bottom: 64px;
}

.csi-animal-hub-kicker {
  margin: 0 0 12px;
  color: #ad211e !important;
  font-size: .76rem !important;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.csi-animal-hub-hero h1,
.csi-sign-archive-hero h1 {
  max-width: 670px;
  margin: 0;
  color: #1e352d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.55rem, 4.15vw, 4.25rem);
  line-height: 1.06;
}

.csi-animal-hub-hero h1 + p,
.csi-sign-archive-hero h1 + p {
  max-width: 710px;
  margin: 24px 0 28px;
  color: #536159;
  font-size: 1.04rem;
  line-height: 1.78;
}

.csi-animal-hub-hero__facts {
  display: flex;
  gap: 28px;
  margin: 32px 0 0;
  padding: 23px 0 0;
  border-top: 1px solid rgba(87, 72, 50, .15);
  list-style: none;
}

.csi-animal-hub-hero__facts li {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 7px;
}

.csi-animal-hub-hero__facts strong {
  color: #b6211e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
}

.csi-animal-hub-hero__facts span {
  color: #6c706a;
  font-size: .79rem;
  font-weight: 700;
}

.csi-animal-hub-hero__art {
  position: relative;
  min-height: 480px;
}

.csi-animal-hub-hero__art::before {
  position: absolute;
  inset: 4% 2%;
  content: "";
  border: 1px solid rgba(181, 134, 58, .26);
  border-radius: 50%;
  background: rgba(255, 255, 255, .37);
}

.csi-animal-hub-hero__art > span {
  position: absolute;
  z-index: 4;
  top: 42%;
  left: 50%;
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  border: 1px solid #b6211e;
  border-radius: 50%;
  background: rgba(255, 249, 235, .94);
  box-shadow: 0 16px 40px rgba(100, 57, 26, .12);
  color: #ad211e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.26rem;
  transform: translate(-50%, -50%);
}

.csi-animal-hub-hero__art img {
  position: absolute;
  z-index: 2;
  width: 23%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid rgba(194, 163, 111, .18);
  filter: drop-shadow(0 20px 17px rgba(79, 57, 37, .1));
  transform: translate(-50%, -50%);
}

.csi-animal-hub-hero__art .is-rat { top: 8%; left: 50%; }
.csi-animal-hub-hero__art .is-ox { top: 16%; left: 70%; }
.csi-animal-hub-hero__art .is-tiger { top: 32%; left: 85%; }
.csi-animal-hub-hero__art .is-rabbit { top: 52%; left: 90%; }
.csi-animal-hub-hero__art .is-dragon { top: 70%; left: 83%; }
.csi-animal-hub-hero__art .is-snake { top: 85%; left: 67%; }
.csi-animal-hub-hero__art .is-horse { top: 90%; left: 48%; }
.csi-animal-hub-hero__art .is-goat { top: 85%; left: 29%; }
.csi-animal-hub-hero__art .is-monkey { top: 70%; left: 13%; }
.csi-animal-hub-hero__art .is-rooster { top: 52%; left: 8%; }
.csi-animal-hub-hero__art .is-dog { top: 32%; left: 14%; }
.csi-animal-hub-hero__art .is-pig { top: 16%; left: 30%; }

.csi-animal-hub-section {
  padding-block: clamp(58px, 8vw, 96px);
}

.csi-animal-hub-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 440px);
  align-items: end;
  gap: 42px;
  margin-bottom: 32px;
}

.csi-animal-hub-heading > div > p {
  margin: 0 0 7px;
  color: #b6211e;
  font-size: .73rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.csi-animal-hub-heading h2 {
  margin: 0;
  color: #223b32;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
}

.csi-animal-hub-heading > p {
  margin: 0;
  color: #687069;
  line-height: 1.7;
}

.csi-animal-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.csi-animal-hub-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e3d7c4;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(66, 50, 31, .055);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.csi-animal-hub-card:hover {
  border-color: #cea85f;
  box-shadow: 0 20px 45px rgba(66, 50, 31, .1);
  transform: translateY(-4px);
}

.csi-animal-hub-card__image {
  position: relative;
  height: 245px;
  overflow: hidden;
  border-bottom: 1px solid #ede3d4;
  background: #f8f3ea;
}

.csi-animal-hub-card__image::after {
  display: none;
}

.csi-animal-hub-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .25s ease;
}

.csi-animal-hub-card:hover .csi-animal-hub-card__image img {
  transform: scale(1.035);
}

.csi-animal-hub-card__body {
  display: flex;
  min-height: 282px;
  flex: 1;
  flex-direction: column;
  padding: 23px;
}

.csi-animal-hub-card__title {
  display: flex;
  align-items: center;
  gap: 13px;
}

.csi-animal-hub-card__title > span {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: #b6211e;
  color: #fff9e9;
  font-family: serif;
  font-size: 1.4rem;
}

.csi-animal-hub-card__title p {
  margin: 0 0 2px;
  color: #8a7965;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.csi-animal-hub-card__title h2 {
  margin: 0;
  color: #263e35;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
}

.csi-animal-hub-card__title h2 a {
  color: inherit;
  text-decoration: none;
}

.csi-animal-hub-card__trait {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  margin: 18px 0 12px;
  color: #59665e;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.csi-animal-hub-card__years {
  margin: 0;
  color: #7c7b74;
  font-size: .76rem;
  line-height: 1.6;
}

.csi-animal-hub-card__years strong {
  color: #4d5f56;
}

.csi-animal-hub-card__links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 17px;
  border-top: 1px solid #eee5d8;
}

.csi-animal-hub-card__links a {
  color: #ad211e;
  font-size: .78rem;
  font-weight: 800;
  text-decoration: none;
}

.csi-animal-hub-card__links a:last-child {
  color: #6b746e;
  font-weight: 700;
}

.csi-animal-hub-band {
  border-block: 1px solid #ead2a8;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, .75), transparent 28%),
    #f6e8c9;
}

.csi-animal-hub-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 42px;
  padding-block: 42px;
}

.csi-animal-hub-band h2 {
  margin: 0;
  color: #293f36;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.csi-animal-hub-band h2 + p {
  max-width: 760px;
  margin: 10px 0 0;
  color: #5f695f;
  line-height: 1.7;
}

.csi-animal-hub-guides {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.csi-animal-hub-guide {
  display: flex;
  height: 100%;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e2d8c8;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(66, 50, 31, .05);
}

.csi-animal-hub-guide__image {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.csi-animal-hub-guide__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.csi-animal-hub-guide:hover .csi-animal-hub-guide__image img {
  transform: scale(1.03);
}

.csi-animal-hub-guide > div {
  display: flex;
  min-height: 248px;
  flex: 1;
  flex-direction: column;
  padding: 23px;
}

.csi-animal-hub-guide > div > p {
  overflow: hidden;
  margin: 0 0 8px;
  color: #b6211e;
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .07em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.csi-animal-hub-guide h3 {
  display: -webkit-box;
  min-height: calc(1.3em * 3);
  overflow: hidden;
  margin: 0 0 15px;
  color: #263e35;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.csi-animal-hub-guide h3 a {
  color: inherit;
  text-decoration: none;
}

.csi-animal-hub-guide small {
  display: block;
  margin-bottom: 17px;
  color: #7b7c76;
}

.csi-animal-hub-guide .text-link {
  margin-top: auto;
  padding-top: 3px;
  font-size: .86rem;
  font-weight: 800;
}

.csi-animal-hub-categories {
  padding-block: clamp(54px, 7vw, 84px);
  border-top: 1px solid #e9dfd0;
  background: #fff;
}

.csi-animal-hub__categories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #e4dacb;
  border-radius: 18px;
}

.csi-animal-hub__categories > a {
  position: relative;
  display: grid;
  min-height: 112px;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-content: center;
  align-items: center;
  gap: 2px 14px;
  padding: 22px;
  border-right: 1px solid #e7ddce;
  border-bottom: 1px solid #e7ddce;
  color: #293f36;
  text-decoration: none;
  transition: background .2s ease;
}

.csi-animal-hub__categories > a:nth-child(3n) {
  border-right: 0;
}

.csi-animal-hub__categories > a:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.csi-animal-hub__categories > a:hover,
.csi-animal-hub__categories > a:focus-visible {
  background: #fff9ef;
}

.csi-animal-hub__categories > a > span {
  display: grid;
  width: 52px;
  height: 52px;
  grid-row: 1 / 3;
  place-items: center;
  border: 1px solid #d9a03b;
  border-radius: 50%;
  color: #b6211e;
  font-family: serif;
  font-size: 1.25rem;
}

.csi-animal-hub__categories strong {
  align-self: end;
  overflow: hidden;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.csi-animal-hub__categories small {
  align-self: start;
  color: #777b75;
}

.csi-animal-hub__categories i {
  grid-row: 1 / 3;
  color: #b6211e;
  font-style: normal;
  font-weight: 800;
}

.csi-sign-archive-hero {
  border-bottom: 1px solid #e7d9c3;
  background:
    radial-gradient(circle at 82% 45%, rgba(186, 35, 31, .1), transparent 27%),
    linear-gradient(135deg, #fffdf8, #f6ead2);
}

.csi-sign-archive-hero__inner {
  display: grid;
  min-height: 560px;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr);
  align-items: center;
  gap: clamp(30px, 6vw, 82px);
  padding-bottom: 54px;
}

.csi-sign-archive-hero__art {
  position: relative;
  display: grid;
  min-height: 420px;
  place-items: center;
}

.csi-sign-archive-hero__art::before {
  position: absolute;
  width: min(90%, 390px);
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(183, 136, 63, .29);
  border-radius: 50%;
  background: rgba(255, 255, 255, .42);
}

.csi-sign-archive-hero__art > span {
  position: absolute;
  z-index: 2;
  right: 3%;
  bottom: 5%;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 2px solid #b6211e;
  background: #fff9e9;
  color: #b6211e;
  font-family: serif;
  font-size: 1.8rem;
  transform: rotate(-5deg);
}

.csi-sign-archive-hero__art img {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: 430px;
  object-fit: contain;
  filter: drop-shadow(0 22px 22px rgba(74, 51, 30, .1));
}

.csi-sign-archive-nav {
  border-bottom: 1px solid #e4d9c8;
  background: rgba(255, 253, 248, .97);
  box-shadow: 0 8px 24px rgba(72, 55, 34, .045);
}

.csi-sign-archive-nav .csi-content-shell {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-block: 13px;
  scrollbar-width: thin;
}

.csi-sign-archive-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 13px;
  border: 1px solid #e2d8c8;
  border-radius: 999px;
  background: #fff;
  color: #3f5148;
  font-size: .78rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.csi-sign-archive-nav a span {
  color: #ad211e;
  font-family: serif;
  font-size: 1rem;
}

.csi-sign-archive-nav a.is-current {
  border-color: #b6211e;
  background: #b6211e;
  color: #fff;
}

.csi-sign-archive-nav a.is-current span {
  color: #fff7e8;
}

.csi-sign-archive-content {
  padding-block: clamp(58px, 8vw, 88px);
}

.csi-sign-archive-content > .csi-archive-grid {
  padding: 0;
}

.csi-sign-archive-content > .csi-pagination {
  margin-top: 32px;
}

.csi-animal-preview-switcher {
  margin-top: 28px;
}

@media (max-width: 940px) {
  .csi-animal-hub-hero__inner,
  .csi-sign-archive-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(280px, .75fr);
  }

  .csi-animal-hub-grid,
  .csi-animal-hub-guides {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .csi-animal-hub__categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .csi-animal-hub__categories > a,
  .csi-animal-hub__categories > a:nth-child(3n) {
    border-right: 1px solid #e7ddce;
    border-bottom: 1px solid #e7ddce;
  }

  .csi-animal-hub__categories > a:nth-child(2n) {
    border-right: 0;
  }

  .csi-animal-hub__categories > a:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

@media (max-width: 700px) {
  .csi-animal-hub-hero__inner,
  .csi-sign-archive-hero__inner {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-bottom: 46px;
  }

  .csi-animal-hub-hero h1,
  .csi-sign-archive-hero h1 {
    font-size: clamp(2.55rem, 13vw, 4rem);
  }

  .csi-animal-hub-hero__art {
    min-height: 390px;
  }

  .csi-sign-archive-hero__art {
    min-height: 320px;
  }

  .csi-animal-hub-heading {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .csi-animal-hub-band__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .csi-animal-hub-grid,
  .csi-animal-hub-guides {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 500px) {
  .csi-animal-hub-hero__facts {
    gap: 16px;
  }

  .csi-animal-hub-hero__facts li {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .csi-animal-hub-card__image {
    height: 220px;
  }

  .csi-animal-hub__categories {
    grid-template-columns: 1fr;
  }

  .csi-animal-hub__categories > a,
  .csi-animal-hub__categories > a:nth-child(2n),
  .csi-animal-hub__categories > a:nth-child(3n),
  .csi-animal-hub__categories > a:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid #e7ddce;
  }

  .csi-animal-hub__categories > a:last-child {
    border-bottom: 0;
  }
}

.csi-page-top-anchor {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.csi-back-to-top {
  position: fixed;
  right: 24px;
  bottom: 26px;
  z-index: 95;
  width: 58px;
  height: 58px;
  padding: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: #08243d;
  border: 2px solid #66788c;
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(8, 36, 61, .22);
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.csi-back-to-top:hover,
.csi-back-to-top:focus-visible {
  color: #fff;
  background: #0d3151;
  box-shadow: 0 12px 30px rgba(8, 36, 61, .32);
  transform: translateY(-2px) scale(1.03);
  outline: 3px solid rgba(178, 15, 18, .2);
  outline-offset: 3px;
}

.csi-back-to-top svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.home-page {
  overflow-x: hidden;
}

.home-page .hero {
  background: var(--page);
}

.home-page main,
.home-page .hero,
.home-page .hero__grid {
  width: 100%;
  max-width: 100%;
}

.home-page .hero__grid {
  width: min(calc(100% - 64px), var(--container));
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
}

.home-page .hero__copy,
.home-page .hero__visual {
  min-width: 0;
}

.home-page .hero__visual {
  position: relative;
  align-self: center;
  overflow: hidden;
  isolation: isolate;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 6%, #000 91%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 6%, #000 91%, transparent 100%);
  mask-composite: intersect;
}

.home-page .hero__visual img {
  position: relative;
  z-index: 0;
  width: min(100%, 680px);
  height: auto !important;
  max-height: 530px;
  margin-inline: auto;
  object-fit: contain;
  object-position: center;
  filter: saturate(1.03) contrast(1.08) brightness(1.01);
  mix-blend-mode: multiply;
  opacity: .98;
}

.home-page .horoscope-feature-card {
  padding: 0;
  grid-template-columns: minmax(0, 42%) minmax(0, 58%);
  align-items: stretch;
  background: #fff;
}

.home-page .horoscope-feature-card::after {
  display: none;
}

.home-page .horoscope-feature-card .culture-card__copy {
  z-index: 2;
  min-width: 0;
  padding: 26px;
  align-self: center;
}

.home-page .horoscope-feature-card .culture-card__copy h2 {
  display: block;
  max-width: 100%;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.home-page .horoscope-feature-card .culture-card__copy p {
  max-width: 34ch;
  line-height: 1.65;
}

.home-page .horoscope-feature-card > img {
  position: static;
  width: 100%;
  height: 100%;
  min-height: 330px;
  opacity: 1;
  object-fit: cover;
  object-position: center;
  filter: saturate(.96) contrast(1.02);
  mix-blend-mode: normal;
}

@media (max-width: 900px) and (min-width: 621px) {
  .home-page .hero__grid {
    width: min(calc(100% - 40px), var(--container));
    grid-template-columns: minmax(0, 1.12fr) minmax(260px, .88fr);
    gap: 24px;
  }

  .home-page .hero__visual {
    padding-top: 0;
  }

  .home-page .hero__visual img {
    width: min(100%, 360px);
    max-height: 340px;
  }
}

@media (max-width: 1120px) {
  .article-page .csi-featured-image {
    height: auto;
    max-height: none;
    object-fit: contain;
  }
}

@media (max-width: 620px) {
  /* Standard posts use single.php rather than the article prototype chrome. */
  .article-page .site-header__inner {
    display: grid;
  }

  .article-page .mobile-panel {
    inset-block-start: 70px;
  }

  .article-page main {
    padding-top: 0;
  }

  .csi-back-to-top {
    right: 16px;
    bottom: 18px;
    width: 50px;
    height: 50px;
    border-radius: 15px;
  }

  .csi-animal-preview-related .section-heading {
    align-items: flex-start;
    gap: 8px;
  }

  .home-page .hero__grid {
    width: calc(100% - 32px);
  }

  .home-page .horoscope-feature-card {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
  }

  .home-page .horoscope-feature-card .culture-card__copy {
    padding: 22px 20px;
  }

  .home-page .horoscope-feature-card .culture-card__copy h2,
  .home-page .horoscope-feature-card .culture-card__copy p {
    max-width: 100%;
  }

  .home-page .horoscope-feature-card > img {
    width: 100%;
    height: 220px;
    min-height: 0;
  }

  .years-page .years-pagination {
    display: flex;
  }

  .category-page .category-card__image img {
    height: 190px;
  }

  .category-page .category-featured__image {
    height: 270px;
  }
}
