
/* pages.css */
.home-hero {
  padding-top: 28px;
}
.home-hero .page-hero__content h1 {
  max-width: 10ch;
}
.home-hero .page-hero__content .subcopy {
  font-size: 1.05rem;
  max-width: 38rem;
}
.home-hero .surface-panel {
  padding: 22px;
}

.overview-grid .icon-card:nth-child(1) .icon-card__icon { background: rgba(115,199,163,0.18); color: #2f9e74; }
.overview-grid .icon-card:nth-child(2) .icon-card__icon { background: rgba(143,212,244,0.18); color: #1b8fc4; }
.overview-grid .icon-card:nth-child(3) .icon-card__icon { background: rgba(246,216,197,0.28); color: #d48c63; }
.overview-grid .icon-card:nth-child(4) .icon-card__icon { background: rgba(243,207,218,0.26); color: #c86d93; }
.overview-grid .icon-card:nth-child(5) .icon-card__icon { background: rgba(246,215,91,0.24); color: #937313; }

.focus-strip {
  display: grid;
  gap: 16px;
}
.focus-pill {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.9);
  box-shadow: var(--shadow);
}
.focus-pill__date {
  flex: none;
  min-width: 88px;
  text-align: center;
}

.book-fair-hero .page-hero__visual {
  background: linear-gradient(135deg, rgba(115,199,163,0.38), rgba(143,212,244,0.32), rgba(243,207,218,0.32));
  padding: 18px;
}
.theme-panel {
  display: grid;
  gap: 20px;
}
.theme-panel__banner {
  padding: 22px;
  border-radius: 24px;
  color: var(--text);
}
.theme-panel__banner p { color: rgba(32, 50, 77, 0.88); }
.theme-panel__banner .btn-row { margin-top: 18px; }
.theme-panel__recommenders {
  display: grid;
  gap: 16px;
}
@media (min-width: 768px) {
  .theme-panel__recommenders {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.theme-panel__books {
  display: grid;
  gap: 16px;
}
@media (min-width: 768px) {
  .theme-panel__books {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .theme-panel__books {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.episode-layout {
  display: grid;
  gap: 22px;
}
@media (min-width: 1024px) {
  .episode-layout {
    grid-template-columns: minmax(0, 1.15fr) 360px;
  }
}
.audio-shell {
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(143,212,244,0.22), rgba(244,197,217,0.18));
}
.audio-shell audio {
  width: 100%;
}

.video-notice {
  position: sticky;
  top: calc(var(--header-height) + 16px);
}

.reward-highlight {
  display: grid;
  gap: 18px;
}
@media (min-width: 960px) {
  .reward-highlight {
    grid-template-columns: minmax(0, 1.1fr) 0.9fr;
  }
}
.member-panel {
  display: grid;
  gap: 18px;
}
.member-panel__header {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}
.member-panel__coins {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--brand-deep);
}
.redeem-layout {
  display: grid;
  gap: 22px;
}
@media (min-width: 1100px) {
  .redeem-layout {
    grid-template-columns: 1.15fr 0.85fr;
  }
}
.sticky-form {
  position: sticky;
  top: calc(var(--header-height) + 16px);
}

.wall-layout {
  display: grid;
  gap: 20px;
}
@media (min-width: 1024px) {
  .wall-layout {
    grid-template-columns: 0.95fr 1.05fr;
    align-items: start;
  }
}

.bridge-shell {
  max-width: 820px;
}
.bridge-steps {
  display: grid;
  gap: 12px;
}
.bridge-steps li {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.85);
}

.anchor-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.anchor-nav a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-weight: 700;
}

.highlight-card {
  background: linear-gradient(135deg, rgba(246,215,91,0.24), rgba(255,255,255,0.95));
}

.latest-grid .card,
.theme-spotlight .card {
  height: 100%;
}

/* ===== 2026 layout refresh ===== */
.home-section {
  padding: 40px 0;
}
.home-section--white {
  background: #f7f7f7;
}
.home-section--sand {
  background: #ece8d7;
}
.home-section--soft-pink {
  background: #f6e7e2;
}
.home-page-main h2,
.book-fair-page-main h2,
.celebrities-page-main h2 {
  color: #0f70cf;
}
.home-page-main .section-head p {
  color: #000000;
}
.home-hero-layout {
  padding: 20px 0 40px;
  background: linear-gradient(180deg, #efd765 0%, #f5f5f3 60%);
}
.home-hero-layout__inner {
  display: grid;
  gap: 20px;
  justify-items: center;
}
.hero-poster {
  position: relative;
  width: min(100%, 1280px);
}
.hero-poster img {
  width: 100%;
  display: block;
  border-radius: 14px;
}
.hero-poster--plain::after,
.hero-poster--plain .hero-poster__overlay,
.hero-poster--plain .hero-poster__date,
.hero-poster--plain .hero-poster__subline,
.hero-poster--plain h1 {
  display: none;
}
.home-cta-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}
.festival-overview-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 18px;
}
.festival-card {
  min-height: 244px;
  padding: 28px 22px 22px;
  background: #fff;
  border-radius: 18px;
  border: 2px solid #dfe6de;
  display: grid;
  gap: 16px;
}
.festival-card--1 { border-color: #a8e2c8; }
.festival-card--2 { border-color: #d6cfff; }
.festival-card--3 { border-color: #f4d17e; }
.festival-card--4 { border-color: #b9dbff; }
.festival-card--5 { border-color: #f4c6cf; }
.festival-card__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #eef7ef;
  font-weight: 900;
  color: #349266;
}
.festival-card:nth-child(2) .festival-card__icon { background: #f3efff; color: #8b63f6; }
.festival-card:nth-child(3) .festival-card__icon { background: #fff4d7; color: #e1a22f; }
.festival-card:nth-child(4) .festival-card__icon { background: #eef7ff; color: #4a94e0; }
.festival-card:nth-child(5) .festival-card__icon { background: #fff0f3; color: #e16c8e; }
.festival-card__body h3 {
  font-size: 1.45rem;
  color: #0f70cf;
  margin-bottom: 6px;
}
.festival-card__sub {
  color: #f08e7f;
  font-weight: 700;
  font-size: 0.96rem;
}
.festival-card__body p:last-child {
  color: #5c6571;
}
.festival-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}
.festival-card__foot span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #f7f2eb;
  color: #746b61;
  font-size: 0.8rem;
  font-weight: 700;
}
.festival-card__foot a {
  color: #0f70cf;
  font-weight: 800;
}
.theme-spot-grid {
  display: grid;
  gap: 16px;
}
.theme-spot-card {
  position: relative;
  min-height: 220px;
  background: #fff;
  border-radius: 18px;
  border: 2px solid #e3dfd8;
  padding: 28px 26px;
  display: grid;
  gap: 10x;
}
.theme-spot-card--sdgs { background: #dff3e8; border-color: #9ddfc0; }
.theme-spot-card--sports { background: #f8eddf; border-color: #f4cba0; }
.theme-spot-card--mother-tongue { background: #ece7fb; border-color: #d1c5ff; }
.theme-spot-card--awards { background: #efe8d2; border-color: #e5ca6d; }
.theme-spot-card__content {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
}
.theme-spot-card__icon {
  min-width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255,255,255,0.5);
  font-size: 1rem;
  font-weight: 800;
}
.theme-spot-card__label {
  font-size: 0.88rem;
  color: #5b7b73;
  font-weight: 700;
}
.theme-spot-card h3 {
  color: #0f70cf;
  margin: 4px 0 6px;
  font-size: 1.6rem;
}
.theme-spot-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}
.theme-spot-card__meta span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 10px;
  padding: 6px 10px;
  border-radius: 60px;
  background: rgba(213, 238, 250, 0.9);
  border: 1px solid rgba(15, 112, 207, 0.12);
  color: #00538f;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.theme-spot-card__link {
  position: absolute;
  top: 24px;
  right: 22px;
  color: #48525b;
  font-size: 1.2rem;
  font-weight: 900;
}
.section-cta-center {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}
.latest-columns {
  display: grid;
  gap: 18px;
}
.latest-column__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.latest-column__head h3 {
  color: #7e54f6;
  font-size: 1.02rem;
}
.latest-column__head--gold h3 {
  color: #e08f2d;
}
.latest-column__head a {
  color: #27a06d;
  font-weight: 800;
  font-size: 0.88rem;
}
.latest-list {
  display: grid;
  gap: 14px;
}
.latest-item-card {
  background: #fff;
  border: 1px solid #e2ddd7;
  border-radius: 18px;
  padding: 18px;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
}
.latest-item-card__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f0e9ff;
  color: #8a63f6;
  font-weight: 900;
}
.latest-item-card--video .latest-item-card__icon {
  background: #fff1cc;
  color: #dc922d;
}
.latest-item-card__eyebrow {
  color: #8e9aa6;
  font-size: 0.82rem;
  margin-bottom: 6px;
}
.latest-item-card h3 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #0f70cf;
  font-size: 1.05rem;
}
.latest-item-card__tag {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: #ffedf1;
  color: #f15e85;
  font-size: 0.74rem;
  font-weight: 800;
}
.challenge-banner {
  background: linear-gradient(135deg, rgba(255,255,255,0.78), rgba(255,255,255,0.95));
  border: 1px solid #edd6cf;
  border-radius: 24px;
  padding: 30px;
  display: grid;
  gap: 22px;
}
.challenge-banner__label {
  color: #bd4f3c;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 10px;
}
.challenge-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.tabs--wide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 0;
}
.tabs--wide button {
  min-height: 46px;
  border-radius: 999px;
  border: 1px solid #e0d9d1;
  background: #fff;
  color: #4f565e;
  font-weight: 700;
}
.tabs--wide button[aria-selected='true'] {
  background: #fff;
  color: #4f565e;
  border-color: #d6d2cd;
  box-shadow: inset 0 0 0 2px #f0efed;
}
.book-fair-panel-section {
  padding: 16px 0 36px;
}
.book-fair-theme-shell {
  display: grid;
  gap: 18px;
}
.theme-highlight {
  padding: 22px 24px;
  border-radius: 22px;
  min-height: 170px;
}
.theme-highlight--sdgs { background: #e9f7ef; }
.theme-highlight--sports { background: #f8eddf; }
.theme-highlight--mother-tongue { background: #efe9fb; }
.theme-highlight--awards { background: #f6f1e1; }
.theme-highlight__tag {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #ffdd90;
  color: #b36f09;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 16px;
}
.theme-highlight h2 {
  color: #cf660d;
  margin-bottom: 10px;
}
.theme-highlight p { color: #5f6568; }
.book-fair-group {
  display: grid;
  gap: 10px;
}
.book-fair-group h3 {
  color: #0f70cf;
}
.book-fair-group h3 span {
  color: #7d8b96;
  font-size: 0.9rem;
}
.book-fair-group__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.book-fair-group__head a {
  color: #27a06d;
  font-weight: 800;
}
.book-fair-group__desc {
  margin-top: -8px;
}
.book-fair-recommenders,
.book-fair-podcast-grid,
.book-fair-books-grid,
.book-fair-extra-grid,
.steps-grid,
.celebrity-grid {
  display: grid;
  gap: 16px;
}
.bf-person-card,
.bf-platform-card,
.bf-podcast-card,
.bf-extra-book-card {
  background: #fff;
  border: 1px solid #ded7d0;
  border-radius: 18px;
  padding: 20px;
}
.bf-person-card__header {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
}
.bf-person-card__avatar {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  overflow: hidden;
  background: #f8dfc3;
}
.bf-person-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bf-person-card__role {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: #59c49e;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.bf-person-card:nth-child(2) .bf-person-card__role { background: #cbeaec; }
.bf-person-card h4,
.bf-podcast-card h4,
.bf-book-card h4,
.bf-extra-book-card h4 { color: #0f70cf; }
.bf-platform-card {
  display: grid;
  place-items: center;
  text-align: center;
  background: rgba(255,255,255,0.38);
  border-style: dashed;
}
.bf-platform-card__icon {
  font-size: 1.6rem;
  margin-bottom: 10px;
}
.bf-podcast-card {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
}
.bf-podcast-card__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f1eaff;
  color: #8c63f6;
  font-weight: 900;
}
.bf-book-card {
  background: #fff;
  border: 1px solid #ddd6ce;
  border-radius: 18px;
  overflow: hidden;
  display: grid;
}
.bf-book-card__cover {
  background: #f7ebee;
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
}
.bf-book-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bf-book-card__content {
  padding: 16px;
  display: grid;
  gap: 10px;
}
.bf-book-card__tags,
.celebrity-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.bf-book-card__tags span,
.celebrity-card__chips span {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: #ff9c85;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}
.bf-book-card__quote {
  color: #69727d;
  font-size: 0.9rem;
}
.bf-book-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.bf-extra-book-card p:last-child {
  color: #69727d;
}
.celebrities-grid-section {
  padding: 32px 0 72px;
}
.celebrity-grid {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
.celebrity-card {
  position: relative;
  background: #fff7;
  border: 1px solid #e4d9d4;
  border-radius: 18px;
  overflow: hidden;
}
.celebrity-card__order {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(110, 101, 97, 0.76);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  z-index: 2;
}
.celebrity-card__visual {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #d7cbc6;
  overflow: hidden;
}
.celebrity-card__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
  box-shadow: none;
}
.celebrity-card__date {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  min-height: 32px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: #8f7f76;
  font-size: 0.84rem;
  font-weight: 800;
}
.celebrity-card__body {
  background: #fff;
  padding: 16px;
  display: grid;
  gap: 10px;
}
.celebrity-card__book {
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8f1e2;
  color: #8f8a7d;
  font-size: 0.88rem;
}
.celebrity-card__book strong {
  display: block;
  margin-top: 4px;
  color: #4d7f51;
}
.celebrity-card__actions {
  margin-top: 4px;
}
.steps-section {
  padding: 64px 0 72px;
  background: #f4ece9;
}
.hero-stat-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.hero-stat-row span {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 14px;
  background: #f8f2ea;
  border: 1px solid #e9ded4;
  color: #7a766f;
  font-weight: 700;
}
@media (min-width: 768px) {
  .festival-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .theme-spot-grid,
  .latest-columns,
  .book-fair-recommenders,
  .book-fair-podcast-grid,
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tabs--wide {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .festival-overview-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .book-fair-books-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .book-fair-extra-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .celebrity-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .social-banner-strip__inner {
    padding-block: 16px;
    flex-direction: column;
    align-items: flex-start;
  }
  .center-hero {
    padding: 46px 0 34px;
  }
  .hero-poster__overlay {
    inset: auto 0 10px;
  }
  .hero-poster__date { font-size: 0.85rem; }
  .hero-poster h1 {
    font-size: 1.35rem;
    line-height: 1.35;
  }
  .festival-card {
    min-height: auto;
  }
}
