:root {
  --cet-audience-ink: #102c4d;
  --cet-audience-paper: #f8f2e6;
  --cet-audience-gold: #b8862f;
  --cet-audience-muted: #5f7185;
}

.cet-audience-page {
  background: linear-gradient(180deg, #fffdfa 0, var(--cet-audience-paper) 31rem, #fffdfa 70rem);
  color: var(--cet-audience-ink);
}

.cet-audience-page .site-header { background: rgba(255, 253, 250, .96); }

/* Direction A remains one family. Youth uses the same quiet paper/ink
   foundation with a firmer, more direct visual rhythm rather than a separate
   neon or gaming theme. */
.cet-audience-page--youth {
  --cet-audience-ink: #12365d;
  --cet-audience-paper: #edf3f4;
  --cet-audience-gold: #bd7628;
  --cet-audience-muted: #4d6478;
}

.cet-audience-page--youth .cet-audience-hub__intro,
.cet-audience-page--youth .cet-audience-article__hero {
  border-top: .35rem solid var(--cet-audience-gold);
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(237,243,244,.94));
}

.cet-audience-page--youth .cet-audience-hub h1,
.cet-audience-page--youth .cet-audience-card h3,
.cet-audience-page--youth .cet-audience-article h1,
.cet-audience-page--youth .cet-audience-article h2 {
  font-family: 'Bebas Neue', Montserrat, sans-serif;
  letter-spacing: .015em;
}

.cet-audience-page--youth .cet-audience-card {
  border-top: .25rem solid rgba(18, 54, 93, .7);
  border-radius: .8rem;
}

.cet-audience-page--youth .cet-audience-hub__section--living .cet-audience-card:first-child,
.cet-audience-page--youth .cet-audience-hub__section--decisions .cet-audience-card:first-child {
  border-top-color: var(--cet-audience-gold);
}

.cet-audience-main {
  box-sizing: border-box;
  max-width: 1120px;
  min-height: 64vh;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 6rem) 1.25rem clamp(4rem, 8vw, 7rem);
}

.cet-audience-hub__intro {
  max-width: 48rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid rgba(184, 134, 47, .28);
  border-radius: 1.5rem;
  background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(248,242,230,.92));
  box-shadow: 0 1.5rem 3rem rgba(16, 44, 77, .08);
}

.cet-audience-hub__eyebrow,
.cet-audience-card__type {
  margin: 0 0 .65rem;
  color: #9a6e1e;
  font-family: Montserrat, sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.cet-audience-hub h1,
.cet-audience-card h3,
.cet-audience-hub__empty h2 {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--cet-audience-ink);
}

.cet-audience-hub h1 { font-size: clamp(2.3rem, 5vw, 4.6rem); line-height: 1.02; }
.cet-audience-hub__description { max-width: 38rem; margin: 1.2rem 0 0; color: var(--cet-audience-muted); font-size: 1.1rem; line-height: 1.6; }
.cet-audience-hub__actions { margin-top: 1.5rem; }

.cet-audience-button,
.cet-audience-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .7rem 1rem;
  border-radius: .65rem;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  text-decoration: none;
}
.cet-audience-button--primary { background: var(--cet-audience-ink); color: #fff; }
.cet-audience-button--primary:hover, .cet-audience-button--primary:focus-visible { background: #1e4772; color: #fff; }

.cet-audience-hub__switcher { display: flex; gap: .6rem; flex-wrap: wrap; margin: 2rem 0; }
.cet-audience-hub__mode { min-height: 44px; padding: .68rem .88rem; border: 1px solid rgba(16,44,77,.18); border-radius: 999px; color: var(--cet-audience-ink); font-family: Montserrat, sans-serif; font-size: .9rem; font-weight: 700; text-decoration: none; }
.cet-audience-hub__mode:hover, .cet-audience-hub__mode:focus-visible, .cet-audience-hub__mode.is-active { border-color: var(--cet-audience-ink); background: var(--cet-audience-ink); color: #fff; }

.cet-audience-hub__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.cet-audience-hub__section { margin-top: clamp(2.5rem, 7vw, 5rem); }
.cet-audience-hub__section h2 { max-width: 42rem; font-size: clamp(1.8rem, 3.2vw, 2.8rem); }
.cet-audience-hub__section-description { max-width: 44rem; margin: .75rem 0 1.35rem; color: var(--cet-audience-muted); line-height: 1.6; }
.cet-audience-hub__section--today .cet-audience-card { border-color: rgba(184, 134, 47, .44); background: linear-gradient(135deg, #fffdfa, #f5ead4); }
.cet-audience-hub__section--today .cet-audience-card:first-child { grid-column: span 2; }
.cet-audience-card, .cet-audience-hub__empty { box-sizing: border-box; padding: 1.5rem; border: 1px solid rgba(16,44,77,.12); border-radius: 1rem; background: #fffdfa; box-shadow: 0 .6rem 1.8rem rgba(16,44,77,.05); }
.cet-audience-hub__error { border-color: rgba(184, 134, 47, .5); }
.cet-audience-card p:not(.cet-audience-card__type), .cet-audience-hub__empty p { color: var(--cet-audience-muted); line-height: 1.55; }
.cet-audience-card__link { margin-top: .5rem; color: var(--cet-audience-ink); padding-inline: 0; text-decoration: underline; }
.cet-audience-card__link:focus-visible, .cet-audience-hub__mode:focus-visible, .cet-audience-button:focus-visible { outline: 3px solid #d7a73a; outline-offset: 3px; }

.cet-audience-article {
  max-width: 760px;
  margin: 0 auto;
}
.cet-audience-article__back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 1.5rem; color: var(--cet-audience-ink); font-family: Montserrat, sans-serif; font-weight: 700; }
.cet-audience-article__hero { padding: clamp(1.5rem, 5vw, 3.2rem); border: 1px solid rgba(184,134,47,.35); border-radius: 1.25rem; background: #fffdfa; box-shadow: 0 1rem 2.5rem rgba(16,44,77,.08); }
.cet-audience-article__eyebrow { margin: 0 0 .65rem; color: #9a6e1e; font-family: Montserrat, sans-serif; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.cet-audience-article h1, .cet-audience-article h2 { font-family: 'Playfair Display', Georgia, serif; color: var(--cet-audience-ink); }
.cet-audience-article h1 { margin: 0; font-size: clamp(2.35rem, 5vw, 4.2rem); line-height: 1.05; }
.cet-audience-article h2 { margin: 2.25rem 0 .7rem; font-size: clamp(1.55rem, 3vw, 2.2rem); }
.cet-audience-article p, .cet-audience-article li { color: var(--cet-audience-muted); font-size: 1.05rem; line-height: 1.7; }
.cet-audience-article__notice { margin-top: 1.5rem; padding: 1.15rem 1.25rem; border-left: 4px solid var(--cet-audience-gold); border-radius: .35rem; background: rgba(248,242,230,.85); }
.cet-audience-article__references { display: flex; flex-wrap: wrap; gap: .65rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.cet-audience-article__references a { display: inline-flex; min-height: 44px; align-items: center; padding: .45rem .8rem; border: 1px solid rgba(16,44,77,.2); border-radius: 999px; color: var(--cet-audience-ink); font-family: Montserrat, sans-serif; font-weight: 700; text-decoration: none; }
.cet-audience-article__references a:hover, .cet-audience-article__references a:focus-visible { color: #fff; background: var(--cet-audience-ink); }
.cet-audience-article__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

@media (max-width: 720px) {
  .cet-audience-main { padding-inline: 1rem; }
  .cet-audience-hub__intro { padding: 1.35rem; border-radius: 1rem; }
  .cet-audience-hub__grid { grid-template-columns: 1fr; }
  .cet-audience-hub__section--today .cet-audience-card:first-child { grid-column: auto; }
  .cet-audience-hub__switcher { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .cet-audience-hub__mode { min-width: 0; text-align: center; }
}

/* Kids keeps the editorial family but changes the rhythm, illustration scale
   and language of the surface. It is intentionally not an adult reader with
   brighter colors. */
.cet-audience-page--kids {
  --cet-audience-ink: #173b5d;
  --cet-audience-paper: #fff6e7;
  --cet-audience-gold: #dc8a36;
  --cet-audience-muted: #496579;
  background:
    radial-gradient(circle at 8% 9%, rgba(245, 194, 91, .25) 0 5.5rem, transparent 5.7rem),
    radial-gradient(circle at 92% 22%, rgba(100, 166, 167, .2) 0 6rem, transparent 6.2rem),
    linear-gradient(180deg, #fffaf0 0, #f7efe2 42rem, #fffdf8 76rem);
}

.cet-audience-page--kids .site-header { background: rgba(255, 250, 240, .97); }
.cet-audience-page--kids .cet-audience-main { max-width: 1180px; }
.cet-audience-page--kids h1,
.cet-audience-page--kids h2,
.cet-audience-page--kids h3 { color: var(--cet-audience-ink); }

.cet-kids-button {
  box-sizing: border-box;
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: .72rem 1rem;
  border: 2px solid transparent;
  border-radius: .9rem;
  color: var(--cet-audience-ink);
  font-family: Montserrat, sans-serif;
  font-size: .93rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.cet-kids-button--primary { border-color: #174262; background: var(--cet-audience-ink); color: #fff; box-shadow: 0 .55rem 0 rgba(23,59,93,.15); }
.cet-kids-button--primary:hover { background: #245778; color: #fff; }
.cet-kids-button--quiet { border-color: rgba(23,59,93,.22); background: rgba(255,255,255,.76); }
.cet-kids-button--quiet:hover { border-color: var(--cet-audience-gold); background: #fff9ed; color: var(--cet-audience-ink); }
.cet-kids-button:focus-visible, .cet-kids-story__back:focus-visible, .cet-kids-story__reference:focus-visible, .cet-kids-story__copy h2:focus-visible { outline: 3px solid #e4a33f; outline-offset: 3px; }

.cet-kids-hub__hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(19rem, 1.08fr);
  overflow: hidden;
  border: 1px solid rgba(23,59,93,.16);
  border-radius: clamp(1.25rem, 3vw, 2rem);
  background: #fffdf8;
  box-shadow: 0 1.4rem 3.5rem rgba(23,59,93,.12);
}
.cet-kids-hub__hero-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(1.6rem, 5vw, 4rem); }
.cet-kids-hub__eyebrow, .cet-kids-story__eyebrow, .cet-kids-story-card__eyebrow { margin: 0 0 .7rem; color: #ab6323; font-family: Montserrat, sans-serif; font-size: .75rem; font-weight: 700; letter-spacing: .105em; text-transform: uppercase; }
.cet-kids-hub__hero h1 { max-width: 9ch; margin: 0; font-family: 'Bebas Neue', Montserrat, sans-serif; font-size: clamp(3.2rem, 7vw, 6.6rem); font-weight: 400; letter-spacing: .02em; line-height: .92; }
.cet-kids-hub__hero p:not(.cet-kids-hub__eyebrow) { max-width: 31rem; margin: 1.2rem 0 1.7rem; color: var(--cet-audience-muted); font-size: clamp(1.02rem, 1.7vw, 1.18rem); line-height: 1.6; }
.cet-kids-hub__hero-image { width: 100%; height: 100%; min-height: 25rem; object-fit: cover; object-position: 48% center; background: #e9d2a2; }

.cet-kids-hub__section { margin-top: clamp(2.8rem, 7vw, 5.7rem); }
.cet-kids-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.2rem; margin-bottom: 1.35rem; }
.cet-kids-section-heading h2 { margin: 0; font-family: 'Playfair Display', Georgia, serif; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.04; }
.cet-kids-section-heading p { max-width: 30rem; margin: 0; color: var(--cet-audience-muted); line-height: 1.55; }
.cet-kids-hub__stories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.cet-kids-story-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(23,59,93,.14); border-radius: 1.4rem; background: #fffdfa; box-shadow: 0 .85rem 2rem rgba(23,59,93,.07); }
.cet-kids-story-card--featured { grid-column: span 2; display: grid; grid-template-columns: 1.08fr .92fr; }
.cet-kids-story-card__image { width: 100%; min-height: 16.5rem; object-fit: cover; background: #ead7b5; }
.cet-kids-story-card--featured .cet-kids-story-card__image { height: 100%; min-height: 22.5rem; }
.cet-kids-story-card__copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: clamp(1.25rem, 3vw, 2rem); }
.cet-kids-story-card__copy h2 { margin: 0; font-family: 'Playfair Display', Georgia, serif; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.08; }
.cet-kids-story-card__copy p:not(.cet-kids-story-card__eyebrow) { margin: .85rem 0 1.25rem; color: var(--cet-audience-muted); line-height: 1.57; }
.cet-kids-story-card__copy .cet-kids-button { margin-top: auto; }

.cet-kids-hub__mini-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.cet-kids-mini-card { position: relative; display: flex; flex-direction: column; min-height: 16rem; padding: 1.4rem; overflow: hidden; border: 1px solid rgba(23,59,93,.14); border-radius: 1.15rem; background: #fffdfa; box-shadow: 0 .7rem 1.7rem rgba(23,59,93,.05); }
.cet-kids-mini-card::after { position: absolute; right: -1.25rem; bottom: -1.8rem; width: 6.5rem; height: 6.5rem; border-radius: 50%; content: ''; opacity: .45; }
.cet-kids-mini-card--character::after { background: #f3c45e; }
.cet-kids-mini-card--activity::after { background: #e8b6a5; }
.cet-kids-mini-card--plan::after { background: #a8d0c5; }
.cet-kids-mini-card--listen::after { background: #c7c3e8; }
.cet-kids-mini-card h2 { position: relative; z-index: 1; margin: 0; font-family: 'Playfair Display', Georgia, serif; font-size: 1.65rem; line-height: 1.1; }
.cet-kids-mini-card p { position: relative; z-index: 1; margin: .75rem 0 1.2rem; color: var(--cet-audience-muted); line-height: 1.56; }
.cet-kids-mini-card .cet-kids-button { z-index: 1; align-self: flex-start; margin-top: auto; }
.cet-kids-hub__continue { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-top: clamp(2.8rem, 6vw, 5rem); padding: clamp(1.4rem, 4vw, 2.5rem); border-radius: 1.3rem; background: var(--cet-audience-ink); box-shadow: 0 1.1rem 2.2rem rgba(23,59,93,.19); }
.cet-kids-hub__continue h2 { margin: 0; color: #fff8e9; font-family: 'Playfair Display', Georgia, serif; font-size: clamp(1.75rem, 3vw, 2.6rem); }
.cet-kids-hub__continue p:not(.cet-kids-hub__eyebrow) { margin: .5rem 0 0; color: rgba(255,255,255,.85); line-height: 1.55; }
.cet-kids-hub__continue .cet-kids-hub__eyebrow { color: #f5c965; }
.cet-kids-hub__continue .cet-kids-button--primary { border-color: #f5c965; background: #f5c965; color: #173b5d; box-shadow: none; white-space: nowrap; }
.cet-kids-hub__error, .cet-kids-story__error { padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid rgba(23,59,93,.18); border-radius: 1.2rem; background: #fffdfa; }
.cet-kids-hub__error h1, .cet-kids-story__error h1 { margin: 0; font-family: 'Playfair Display', Georgia, serif; }
.cet-kids-hub__error p, .cet-kids-story__error p { max-width: 42rem; color: var(--cet-audience-muted); line-height: 1.6; }

.cet-kids-story { max-width: 980px; margin: 0 auto; }
.cet-kids-story__back { display: inline-flex; min-height: 44px; align-items: center; margin-bottom: 1.1rem; color: var(--cet-audience-ink); font-family: Montserrat, sans-serif; font-weight: 700; text-decoration: none; }
.cet-kids-story__intro { padding: clamp(1.25rem, 3.5vw, 2rem); border: 1px solid rgba(23,59,93,.15); border-bottom: 0; border-radius: 1.5rem 1.5rem 0 0; background: #fffdfa; }
.cet-kids-story__intro h1 { margin: 0; font-family: 'Playfair Display', Georgia, serif; font-size: clamp(2.35rem, 5vw, 4.3rem); line-height: 1.02; }
.cet-kids-story__editorial { margin: .85rem 0 1.1rem; color: var(--cet-audience-muted); line-height: 1.55; }
.cet-kids-story__progress { position: relative; height: 2.4rem; overflow: hidden; border-radius: .8rem; background: #e8edf0; }
.cet-kids-story__progress-meter { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #da8a3b, #f3c35e); transition: width .22s ease-out; }
.cet-kids-story__progress-label { position: absolute; inset: 0; display: flex; align-items: center; padding-inline: .8rem; color: #173b5d; font-family: Montserrat, sans-serif; font-size: .82rem; font-weight: 700; }
.cet-kids-story__scene { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(17rem, .92fr); overflow: hidden; border: 1px solid rgba(23,59,93,.15); background: #fffdfa; }
.cet-kids-story__image { width: 100%; height: 100%; min-height: 29rem; object-fit: cover; background: #e6d1a8; }
.cet-kids-story__copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(1.35rem, 4vw, 3.25rem); }
.cet-kids-story__step { margin: 0 0 .5rem; color: #ab6323; font-family: Montserrat, sans-serif; font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.cet-kids-story__copy h2 { margin: 0; font-family: 'Playfair Display', Georgia, serif; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.03; }
.cet-kids-story__copy > p:not(.cet-kids-story__step):not(.cet-kids-story__prompt):not(.cet-kids-story__prayer) { margin: 1rem 0; color: var(--cet-audience-muted); font-size: 1.05rem; line-height: 1.62; }
.cet-kids-story__prompt, .cet-kids-story__prayer { width: 100%; box-sizing: border-box; margin: .6rem 0 0; padding: .85rem .95rem; border-radius: .75rem; background: #fff2d7; color: #765127; line-height: 1.48; }
.cet-kids-story__prompt--activity { background: #e7f2ec; color: #315b55; }
.cet-kids-story__prayer { background: #edf0fa; color: #435578; }
.cet-kids-story__reference { display: inline-flex; min-height: 44px; align-items: center; margin-top: 1.15rem; color: #173b5d; font-family: Montserrat, sans-serif; font-size: .88rem; font-weight: 700; text-decoration: underline; }
.cet-kids-story__controls { display: flex; justify-content: space-between; gap: .75rem; min-height: 4.75rem; padding: 1rem 0; }
.cet-kids-story__controls .cet-kids-button:last-child { margin-left: auto; }

.cet-audience-page--kids .cet-audience-article__hero { border-top: .35rem solid var(--cet-audience-gold); }
.cet-audience-page--kids .cet-audience-article__actions .cet-audience-button--quiet { border: 1px solid rgba(23,59,93,.2); color: var(--cet-audience-ink); }

@media (max-width: 760px) {
  .cet-kids-hub__hero, .cet-kids-story__scene, .cet-kids-story-card--featured { grid-template-columns: 1fr; }
  .cet-kids-hub__hero-copy { order: 2; }
  .cet-kids-hub__hero-image { min-height: 15.5rem; max-height: 19rem; }
  .cet-kids-section-heading { display: block; }
  .cet-kids-section-heading p { margin-top: .55rem; }
  .cet-kids-hub__stories, .cet-kids-hub__mini-grid { grid-template-columns: 1fr; }
  .cet-kids-story-card--featured { grid-column: auto; }
  .cet-kids-story-card--featured .cet-kids-story-card__image { min-height: 16.5rem; }
  .cet-kids-hub__continue { display: block; }
  .cet-kids-hub__continue .cet-kids-button { width: 100%; margin-top: 1.15rem; }
  .cet-kids-story__intro { border-radius: 1rem 1rem 0 0; }
  .cet-kids-story__image { min-height: 0; aspect-ratio: 16 / 9; }
  .cet-kids-story__controls { flex-wrap: wrap; }
  .cet-kids-story__controls .cet-kids-button { flex: 1 1 44%; }
  .cet-kids-story__controls .cet-kids-button:last-child { margin-left: 0; }
}

@media (max-width: 380px) {
  .cet-kids-hub__hero h1 { font-size: 3rem; }
  .cet-kids-story__copy { padding: 1.2rem; }
  .cet-kids-story__controls .cet-kids-button { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .cet-kids-story__progress-meter { transition: none; }
}
