@font-face {
  font-family: Vazirmatn;
  src: url("../fonts/vazirmatn-arabic-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C, U+200D;
}
@font-face {
  font-family: Vazirmatn;
  src: url("../fonts/vazirmatn-arabic-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C, U+200D;
}
@font-face {
  font-family: Vazirmatn;
  src: url("../fonts/vazirmatn-arabic-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C, U+200D;
}
@font-face {
  font-family: Vazirmatn;
  src: url("../fonts/vazirmatn-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2013-2014, U+2018-201A, U+201C-201E, U+2026, U+2122;
}
@font-face {
  font-family: Vazirmatn;
  src: url("../fonts/vazirmatn-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2013-2014, U+2018-201A, U+201C-201E, U+2026, U+2122;
}
@font-face {
  font-family: Lalezar;
  src: url("../fonts/lalezar-arabic-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: Lalezar;
  src: url("../fonts/lalezar-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF;
}

:root {
  --purple: #481b4f;
  --purple-deep: #372e44;
  --cream: #f7f1e6;
  --cream-deep: #ede4d4;
  --green: #0f3c2f;
  --forest: #14382e;
  --gold: #dcb56c;
  --gold-deep: #c9963a;
  --maroon: #7d1f2b;
  --maroon-deep: #5d0c0d;
  --ink: #1e274a;
  --navy: #163a56;
  --blue-card: #2a4678;
  --line: rgba(255, 255, 255, 0.72);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #3a163f;
  color: var(--ink);
  font-family: Vazirmatn, Tahoma, sans-serif;
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font-family: inherit; }

.frame {
  width: min(1120px, 100%);
  margin: 0 auto;
  background: var(--purple);
  overflow: clip;
}

.top-meta {
  color: #f6efe4;
  font-size: 0.82rem;
  padding: 14px 4% 6px;
}
.top-meta a:hover { color: var(--gold); }
.socials { gap: 10px; }
.socials svg { width: 16px; height: 16px; display: block; }
.socials a {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.socials a:hover { background: rgba(255, 255, 255, 0.12); }

.sheet {
  position: relative;
  width: min(1040px, 94%);
  margin: 34px auto 0;
  background: var(--cream);
  border-radius: 34px 34px 48% 48% / 34px 34px 54px 54px;
  padding: 22px 22px 56px;
}
.sheet.flat-bottom { border-radius: 34px; padding-bottom: 36px; }

.brand-logo {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -46%);
  width: 118px;
  height: 118px;
  z-index: 5;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.16));
}
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }

.bar {
  width: min(920px, 96%);
  margin: 0 auto;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 22px;
  color: #fff;
}
.bar-green {
  background: var(--green);
  border-radius: 18px 18px 0 0;
  margin-top: 18px;
  font-weight: 700;
}
.bar-gold {
  background: var(--gold);
  border-radius: 0 0 18px 18px;
  width: min(840px, 90%);
  min-height: 42px;
  font-size: 0.92rem;
}
.bar a:hover { opacity: 0.8; }
.gold-links { display: flex; gap: 22px; align-items: center; }

.hamburger {
  width: 42px;
  height: 28px;
  border: 0;
  border-radius: 7px;
  background: #1d4c5c;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 0;
}
.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: #f4efe4;
  border-radius: 2px;
}

.menu-panel {
  width: min(840px, 90%);
  margin: 10px auto 0;
  background: #fff;
  border-radius: 16px;
  padding: 8px;
}
.menu-panel a {
  display: block;
  padding: 8px 14px;
  border-radius: 10px;
  color: var(--ink);
}
.menu-panel a:hover,
.menu-panel a.active { background: #f3ead8; color: var(--maroon); }

.search-box {
  width: min(640px, 86%);
  margin: 34px auto 8px;
  position: relative;
}
.search-box input {
  width: 100%;
  height: 52px;
  border: 1.5px solid #cfc6b6;
  border-radius: 999px;
  background: #fff;
  padding: 0 22px 0 54px;
  outline: none;
  color: #333;
}
.search-box input:focus { border-color: var(--green); }
.search-box button {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #9aa0a8;
  width: 36px;
  height: 36px;
  padding: 0;
}

.hero-stage {
  width: min(860px, 92%);
  margin: 28px auto 0;
  aspect-ratio: 16 / 7;
  min-height: 220px;
  border-radius: 30px;
  background: #e6ddd0;
  position: relative;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
  display: block;
}
.hero-slide.on { opacity: 1; z-index: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-stage::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46%;
  background: linear-gradient(transparent, rgba(40, 16, 16, .55));
  z-index: 2;
  pointer-events: none;
}
.hero-stage h1 {
  position: absolute;
  z-index: 3;
  right: 18px;
  left: 18px;
  bottom: 16px;
  margin: 0;
  font-family: Lalezar, Vazirmatn, sans-serif;
  font-size: clamp(1.7rem, 4vw, 3.2rem);
  color: #fff;
  line-height: 1.2;
  pointer-events: none;
}

.dashes {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 22px;
}
.dashes i {
  width: 74px;
  height: 5px;
  border-radius: 99px;
  background: var(--gold);
  opacity: 0.45;
  display: block;
}
.dashes i.on { opacity: 1; }
.dashes i { cursor: pointer; }
.pager {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 22px auto;
  width: min(820px, 100%);
}
.pager-count {
  margin: 0;
  color: var(--maroon-deep);
  font-weight: 700;
  font-size: .92rem;
}
.pager-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}
.pager-links a, .pager-links span {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff;
  color: var(--maroon-deep);
  font-weight: 700;
}
.pager-links .on { background: var(--navy); color: #f7f1e4; }
.pager-links .gap {
  min-width: 24px;
  padding: 0 2px;
  background: transparent;
  color: var(--maroon);
}
.book-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px 12px;
  width: min(820px, 100%);
  margin: 8px auto 0;
}
.book-card { color: var(--maroon-deep); text-align: center; }
.book-card .thumb {
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  background: #fff center/cover no-repeat;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .08);
}
.book-card .pub-thumb {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px;
  background: #fff;
}
.book-card .pub-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.book-card strong, .book-card em { display: block; margin-top: 8px; font-style: normal; }
.book-card em { color: var(--maroon); font-size: .82rem; font-weight: 500; }
.search-books {
  width: 100%;
  grid-template-columns: repeat(4, 158px);
  justify-content: center;
  align-items: start;
  gap: 16px 14px;
}
.search-books .book-card {
  background: #fff;
  border: 2px solid var(--maroon);
  border-radius: 18px;
  padding: 10px 10px 12px;
  box-shadow: 0 8px 16px rgba(93, 12, 13, 0.06);
}
.search-books .book-card .thumb {
  border-radius: 12px;
  box-shadow: none;
}
.search-books .book-hit { color: inherit; text-decoration: none; display: block; }
.search-books .card-byline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
  color: var(--maroon);
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}
.search-books .card-byline .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff center/cover no-repeat;
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
}
.search-books .card-byline .avatar.logo {
  border-radius: 8px;
  background-size: contain;
  background-origin: content-box;
  background-clip: content-box;
  padding: 3px;
}
.search-books .card-byline .name {
  min-width: 0;
  text-align: right;
}
.section-block { width: min(1040px, 94%); margin: 0 auto; }
.more-link { color: #fff; white-space: nowrap; font-size: 0.92rem; }
.more-link.dark { color: var(--maroon); }
.more-link.gold { color: var(--gold-deep); }

.cat-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  padding: 36px 12px 10px;
}
.cat-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px 28px;
}
.cat-item {
  width: 108px;
  text-align: center;
  color: #f4efe6;
  font-size: 0.92rem;
}
.cat-item img,
.face-item img,
.person img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 50%;
  background: #fff;
}
.cat-item span,
.person span,
.face-item span { display: block; margin-top: 8px; }

.band {
  background: var(--gold);
  border-radius: 46% 46% 28px 28px / 42px 42px 28px 28px;
  padding: 28px 18px;
  margin-top: 28px;
}
.band-inner {
  background: var(--cream);
  border-radius: 22px;
  min-height: 230px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}
.band-label {
  width: 148px;
  flex: 0 0 148px;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 1.35rem;
  line-height: 1.45;
  position: relative;
  border-radius: 0 22px 22px 0;
}
.band-label::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 10px;
  bottom: 10px;
  width: 14px;
  background-image: radial-gradient(circle, var(--cream) 5px, transparent 6px);
  background-size: 14px 18px;
  background-repeat: repeat-y;
}
.band-track {
  display: flex;
  gap: 16px;
  align-items: center;
  overflow-x: auto;
  padding: 16px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.band-track::-webkit-scrollbar { display: none; }
.pkg-card {
  flex: 0 0 150px;
  scroll-snap-align: center;
  background: #fff;
  border-radius: 10px;
  padding: 8px 8px 12px;
  color: var(--maroon);
  text-align: center;
  font-weight: 700;
}
.pkg-card .cover {
  height: 150px;
  border-radius: 8px;
  background: #f7f7f7;
  margin-bottom: 10px;
  overflow: hidden;
}
.pkg-card img { width: 100%; height: 100%; object-fit: cover; }

.people-card {
  background: var(--blue-card);
  color: #fff;
  border-radius: 28px;
  padding: 28px 16px 34px;
  margin-top: 36px;
}
.people-card h2,
.block-title {
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 22px;
}
.people {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 22px;
}
.person { width: 112px; text-align: center; font-size: 0.82rem; }
.person img { border: 3px solid var(--gold); }

.study {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 48px 6% 36px;
  color: var(--gold);
}
.study h2 {
  font-family: Lalezar, Vazirmatn, sans-serif;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.05;
  margin: 0;
  text-align: center;
}
.study img { width: min(340px, 46vw); height: auto; }

.forest { background: var(--forest); padding: 10px 0 28px; }
.pub-card {
  background: #e6c56b;
  border-radius: 28px;
  padding: 22px 16px 26px;
  margin-top: 10px;
}
.pub-card h2 { color: #fff; }
.pubs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.pubs img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  padding: 6px;
}

.award-head { color: #fff; text-align: center; margin: 36px 0 14px; }
.award-pill {
  background: var(--green);
  border-radius: 999px;
  min-height: 132px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
}
.award-pill img.medal {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  margin-top: -8px;
}
.award-books, .plain-books, .gold-books {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex: 1;
}
.ph {
  width: 74px;
  height: 96px;
  border-radius: 12px;
  background: var(--cream);
  flex: 0 0 auto;
}
.ph.maroon { background: var(--maroon); height: 132px; width: 86px; }
.ph.gold { background: #d7b15a; }
.ph.circle { width: 92px; height: 92px; border-radius: 50%; }

.child-card, .comp-card, .best-card {
  background: var(--cream);
  border-radius: 32px 32px 46% 46% / 32px 32px 48px 48px;
  padding: 26px 18px 48px;
  margin-top: 28px;
}
.child-card h2, .best-card h2, .comp-card h2 { color: var(--maroon); }
.child-layout, .best-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.child-layout img { width: min(230px, 40vw); height: auto; }
.best-layout img { width: min(250px, 46vw); height: auto; }

.faces {
  background: #d7b06a;
  border-radius: 46% 46% 46% 46% / 42px 42px 42px 42px;
  padding: 32px 12px 40px;
  margin-top: 28px;
  color: #fff;
}
.faces-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 18px;
}
.face-item { width: 112px; text-align: center; font-size: 0.82rem; }
.face-item img { border: 4px solid rgba(255, 255, 255, 0.35); }

.comp-stage {
  width: 100%;
  margin: 0 0 8px;
  aspect-ratio: 16 / 7;
  min-height: 0;
  border-radius: 22px;
  background: #c4b49a;
  position: relative;
  overflow: hidden;
}
.comp-stage::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46%;
  background: linear-gradient(transparent, rgba(40, 16, 16, .55));
  z-index: 2;
  pointer-events: none;
}
.comp-stage .comp-title {
  position: absolute;
  z-index: 3;
  right: 14px;
  left: 14px;
  bottom: 12px;
  margin: 0;
  color: #fff;
  font-family: Lalezar, Vazirmatn, sans-serif;
  font-size: clamp(1.3rem, 4vw, 2rem);
  line-height: 1.25;
  pointer-events: none;
}

.endorsed {
  background: #1c5c40;
  border-radius: 28px;
  padding: 22px 14px 26px;
  margin-top: 28px;
}
.endorsed h2 { color: #f3ead4; font-size: 1.15rem; }
.articles { text-align: center; color: var(--gold); padding: 28px 0 10px; }
.articles h2 { margin-bottom: 18px; }
.article-row { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

.site-footer {
  background: #efe6d6;
  color: #1c1c1b;
  padding: 54px 8% 36px;
}
.site-footer h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.7rem;
}
.site-footer .en {
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--ink);
}
.site-footer .rule {
  width: min(280px, 70%);
  height: 2px;
  background: #6d5a86;
  margin: 10px 0 16px auto;
}
.site-footer p { margin: 0 0 4px; }
.footer-links { display: flex; gap: 28px; justify-content: flex-end; margin-top: 22px; }

.page-title {
  text-align: center;
  color: var(--maroon);
  font-weight: 700;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  margin: 36px 0 22px;
}
.page-title.purple { color: #4a174f; }

.circle-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 12px;
  width: min(760px, 100%);
  margin: 0 auto;
}
.circle-grid > span,
.circle-grid a,
.circle-grid > div > span:not(.circle-label) {
  display: block;
  width: min(112px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.03);
}
.circle-label {
  display: block;
  text-align: center;
  color: var(--navy);
  font-size: 0.85rem;
  margin-top: 8px;
}

.dark-panel { background: #1d2b3a; color: #fff; padding: 28px 0 40px; }
.dark-panel.green { background: var(--forest); }
.panel-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--gold);
  margin-bottom: 8px;
}
.panel-head h2 { margin: 0; font-size: 1.35rem; }
.gold-line { height: 2px; background: var(--gold); opacity: 0.7; width: min(760px, 88%); margin: 0 auto 18px; }

.cover-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  overflow-x: auto;
  padding: 8px 16px 18px;
  scroll-snap-type: x mandatory;
}
.cover-card { width: 112px; flex: 0 0 auto; scroll-snap-align: center; text-align: center; color: var(--gold); font-size: 0.82rem; }
.cover-card .box {
  height: 150px;
  background: #fff;
  border-radius: 16px;
  margin-bottom: 8px;
}

.book-row {
  width: min(860px, 92%);
  margin: 0 auto 14px;
  background: #f3ecdf;
  border-radius: 22px;
  min-height: 118px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  color: #222;
}
.book-row .thumb {
  width: 72px;
  height: 98px;
  border-radius: 12px;
  border: 2px solid var(--maroon);
  background: #fff;
  flex: 0 0 auto;
}
.book-row h3 { font-size: 1rem; margin: 0; }
.book-row p { margin: 0; color: #666; font-size: 0.82rem; }
.hearts { margin-inline-start: auto; display: flex; gap: 6px; }
.hearts button {
  border: 0;
  background: transparent;
  padding: 0;
  line-height: 0;
}
.hearts button.on svg { fill: var(--maroon); stroke: var(--maroon); }

.occasion {
  background: #f3eadb;
  border-radius: 22px;
  padding: 12px;
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin: 0 auto 16px;
  width: min(860px, 100%);
}
.occasion-label {
  flex: 0 0 92px;
  background: var(--maroon);
  color: #fff;
  border-radius: 16px;
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 700;
  position: relative;
  min-height: 150px;
}
.occasion-label::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 8px;
  bottom: 8px;
  width: 14px;
  background-image: radial-gradient(circle, #f3eadb 5px, transparent 6px);
  background-size: 14px 16px;
}
.occasion-books {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  flex: 1;
  scrollbar-width: none;
}
.occasion-books::-webkit-scrollbar { display: none; }
.mini {
  flex: 1 0 90px;
  background: #fff;
  border-radius: 10px;
  min-height: 150px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  color: var(--maroon);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}
.mini .space { flex: 1; }

.detail-top {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  justify-content: space-between;
  width: min(820px, 100%);
  margin: 10px auto 18px;
}
.detail-cover {
  width: 180px;
  flex: 0 0 180px;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
.detail-cover img { width: 100%; height: 240px; object-fit: cover; }
.meta { flex: 1; text-align: right; color: var(--maroon-deep); }
.meta h1 { font-size: 1.55rem; margin: 0 0 8px; }
.meta p { margin: 0; }
.book-facts { list-style: none; margin: 8px 0 0; padding: 0; }
.book-facts li { margin: 0 0 6px; line-height: 1.75; }
.book-facts b { font-weight: 700; }
.book-prose { margin-top: 8px; }
.book-prose h2 { font-size: 1.05rem; margin: 18px 0 6px; }
.tags { margin-top: 10px; font-weight: 700; }
.detail-jump { text-align: center; margin: 8px 0 16px; }
a.review-jump {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  min-height: 42px;
  border-radius: 999px;
  background: var(--navy);
  color: #f7f1e4;
  font-weight: 700;
}
.detail-tabs { display: flex; justify-content: center; gap: 16px; margin: 8px 0 12px; }
.detail-tabs button {
  min-width: 180px;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  color: #f7f1e4;
  min-height: 42px;
  font-weight: 700;
}
.detail-tabs button.is-off { opacity: 0.55; }
.detail-copy {
  width: min(820px, 100%);
  margin: 0 auto;
  color: var(--maroon);
  text-align: justify;
  font-size: 0.95rem;
}
.related { width: min(820px, 100%); margin: 28px auto 0; text-align: center; }
.related h2 { margin: 0 0 12px; }
.related .book-cards { margin-inline: auto; }
.related-rail {
  background: var(--navy);
  border-radius: 22px;
  padding: 14px;
  display: flex;
  gap: 10px;
  justify-content: center;
}
.related-rail span {
  flex: 1;
  height: 110px;
  background: #fff;
  border-radius: 12px;
}
.tail { height: 48px; background: var(--forest); }

.is-compact .top-links,
.is-compact .slogan,
.is-compact .link-login { display: none !important; }

@media (max-width: 991px) {
  .band-label { width: 110px; flex-basis: 110px; font-size: 1.05rem; }
  .award-pill { border-radius: 28px; }
  .study { flex-direction: column-reverse; text-align: center; }
  .circle-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 8px; }
}

@media (max-width: 768px) {
  .top-meta { flex-direction: column; align-items: center !important; gap: 8px; text-align: center; }
  .brand-logo { width: 92px; height: 92px; }
  .bar { padding: 0 12px; min-height: 42px; font-size: 0.86rem; }
  .gold-links { gap: 12px; }
  .sheet { width: 96%; border-radius: 24px 24px 40% 40% / 24px 24px 36px 36px; padding: 16px 10px 40px; }
  .hero-stage, .comp-stage { aspect-ratio: 16 / 9; min-height: 0; }
  .dashes i { width: 42px; height: 8px; }
  .cat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-items: center;
    gap: 16px 8px;
    width: 100%;
  }
  .cat-row { display: contents; }
  .cat-item { width: 100%; max-width: 108px; }
  .cat-item img { width: min(84px, 100%); height: auto; aspect-ratio: 1; }
  .band { border-radius: 36px 36px 20px 20px; padding: 16px 10px; }
  .band > .d-flex,
  .people-card > .d-flex,
  .pub-card > .d-flex {
    flex-direction: column;
    align-items: center;
    min-width: 0;
    width: 100%;
    gap: 0;
  }
  .band-inner { flex-direction: column; min-height: 0; min-width: 0; width: 100%; }
  .band-label { width: 100%; flex-basis: auto; min-height: 64px; border-radius: 18px 18px 0 0; }
  .band-label::before { display: none; }
  .band-track {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }
  .band .more-link,
  .people-card .more-link,
  .pub-card .more-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-top: 10px;
  }
  .people-card, .pub-card, .faces, .child-card, .comp-card, .best-card { border-radius: 22px; }
  .people {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-items: center;
    gap: 14px 8px;
  }
  .person, .face-item { width: 100%; max-width: 112px; }
  .person img, .face-item img { width: min(76px, 100%); height: auto; aspect-ratio: 1; }
  .pubs { width: 100%; }
  .award-pill { flex-direction: column; align-items: center; padding: 16px; }
  .award-books { flex-wrap: wrap; }
  .child-layout, .best-layout { flex-direction: column; }
  .best-card { overflow: hidden; }
  .best-layout { width: 100%; min-width: 0; align-items: stretch; }
  .best-card .gold-books {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 4px 2px 8px;
  }
  .best-card .gold-books .ph { flex: 0 0 86px; scroll-snap-align: start; }
  .search-books { grid-template-columns: repeat(2, minmax(0, 158px)); }
  .circle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-top { flex-direction: column; align-items: center; }
  .detail-tabs { flex-direction: column; align-items: center; }
  .detail-tabs button { width: min(280px, 100%); }
  .book-row { align-items: flex-start; }
  .site-footer { text-align: center; }
  .site-footer .rule { margin-inline: auto; }
  .footer-links { justify-content: center; }
  .occasion { flex-direction: column; }
  .occasion-label { min-height: 54px; flex-basis: auto; }
  .occasion-label::before { display: none; }
}

.circle-grid a img,
.cover-card .box img,
.mini .space img,
.ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.cover-card .box img { height: 150px; border-radius: 16px; }
.mini .space { background: #fff; border-radius: 10px; overflow: hidden; }
.mini .space img { height: 120px; }
.related-rail a { flex: 1; min-width: 70px; }
.comp-stage .hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.review-form,
.study-path,
.review-item,
.next-read,
.page-intro {
  width: min(760px, 100%);
  margin: 12px auto;
}
.review-item,
.study-path,
.next-read,
.page-intro {
  background: #fff;
  border-radius: 16px;
  padding: 12px 14px;
}
.next-read { background: #fff7ea; color: var(--maroon-deep); }
.star-pick {
  display: inline-flex;
  direction: rtl;
  gap: 2px;
  margin: 0 0 12px;
}
.star-pick button {
  border: 0;
  background: transparent;
  color: #d7d0c4;
  font-size: 2rem;
  line-height: 1;
  padding: 0 2px;
  cursor: pointer;
}
.star-pick button.on { color: #d4a017; }
.stars-show {
  display: inline-flex;
  direction: rtl;
  margin-right: 8px;
  color: #d7d0c4;
  letter-spacing: 1px;
  font-size: 1.15rem;
}
.stars-show i { font-style: normal; }
.stars-show i.on { color: #d4a017; }
.review-form input,
.review-form textarea,
.review-form select,
.page-search input {
  width: 100%;
  border: 1px solid #cfc6b6;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
  background: #fff;
}
.review-form button,
.page-search button {
  border: 0;
  background: var(--green);
  color: #fff;
  border-radius: 999px;
  min-height: 42px;
  padding: 0 22px;
  font-weight: 700;
}
.review-form .star-pick button {
  background: transparent;
  color: #d7d0c4;
  border-radius: 0;
  min-height: 0;
  min-width: 0;
  padding: 0 2px;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
}
.review-form .star-pick button.on { color: #d4a017; }
.step-no {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--maroon);
  color: #fff;
  margin-left: 8px;
}
.page-search { width: min(640px, 100%); margin: 8px auto 18px; }
