/* Edition B — "The Harvest Journey": story-led, one question per screen, warmer and calmer.
   Loaded after site.css; everything is scoped to body.ed-b. */
.ed-b { --b-paper: #faf6ee; --b-line: #e9e2d3; --b-ease: cubic-bezier(.16, 1, .3, 1); --b-nav-h: 84px; background: #fff; }

/* ---------- Merging navigation (same behaviour as the SchoolGo landing page) ----------
   At the top: a wide, transparent bar over the hero. After 24px of scrolling it narrows from 72rem to 46rem
   and becomes a floating pill (rounded, translucent, blurred, subtle border and shadow). Back at the top it widens again. */
/* Round 3: at the top it is a solid white bar across the page (like Edition A), so the menu always reads clearly;
   on scroll it still narrows into the floating pill. */
.b-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 90; padding: 0; pointer-events: none; transition: padding .55s var(--b-ease); }
.b-nav.is-merged { padding: 12px 16px 0; }
.b-nav-in { position: relative; pointer-events: auto; max-width: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem max(16px, calc((100% - 72rem) / 2 + 16px)); border: 1px solid transparent; border-bottom-color: var(--b-line); border-radius: 0; background: #fff;
  transition: max-width .55s var(--b-ease), padding .55s var(--b-ease), background .35s var(--b-ease), border-color .35s var(--b-ease), box-shadow .35s var(--b-ease), border-radius .55s var(--b-ease); }
.b-nav.is-merged .b-nav-in { max-width: 48rem; padding: .35rem .4rem .35rem .55rem; gap: .5rem; border-radius: 999px; border-color: rgba(15, 36, 69, .12);
  background: rgba(255, 255, 255, .8); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); box-shadow: 0 10px 30px rgba(15, 23, 42, .12); }
.ed-b main { padding-top: 68px; }
.b-brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--navy); flex: none; }
.b-brand img { width: 40px; height: 40px; transition: width .55s var(--b-ease), height .55s var(--b-ease); }
.b-brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.12rem; white-space: nowrap; overflow: hidden; max-width: 12rem; transition: max-width .55s var(--b-ease), opacity .35s; }
.b-nav.is-merged .b-brand img { width: 32px; height: 32px; }
.b-nav.is-merged .b-brand-name { max-width: 0; opacity: 0; }
.b-links { display: flex; gap: .1rem; }
.b-dd { position: relative; }
.b-dd > a { display: block; padding: .5rem .8rem; border-radius: 999px; font-size: .92rem; font-weight: 600; color: var(--navy); text-decoration: none; transition: background .2s, color .2s, padding .55s var(--b-ease), font-size .55s var(--b-ease); }
.b-dd > a:hover, .b-dd:focus-within > a, .b-dd > a[aria-current="page"] { background: rgba(15, 36, 69, .07); }
.b-nav.is-merged .b-dd > a { padding: .45rem .6rem; font-size: .86rem; }
.b-dd-menu { position: absolute; top: 100%; left: 50%; min-width: 230px; padding: 8px; margin-top: 10px; background: #fff; border-radius: 18px; box-shadow: 0 18px 40px rgba(15, 23, 42, .16); border: 1px solid rgba(15, 36, 69, .08);
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .2s, transform .25s var(--b-ease), visibility .2s; }
.b-dd-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.b-dd:hover .b-dd-menu, .b-dd:focus-within .b-dd-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.b-dd-menu a { display: block; padding: 9px 12px; border-radius: 10px; color: var(--navy); font-size: .92rem; text-decoration: none; white-space: nowrap; }
.b-dd-menu a:hover { background: var(--b-paper); }
.b-nav-end { display: flex; align-items: center; gap: .4rem; flex: none; }
.b-go { font-size: .85rem; font-weight: 600; color: var(--muted); text-decoration: none; padding: .45rem .6rem; border-radius: 999px; white-space: nowrap; }
.b-go:hover { background: rgba(15, 36, 69, .07); color: var(--navy); }
.b-nav.is-merged .b-go { font-size: .8rem; padding: .4rem .45rem; }
.b-apply { padding: .6rem 1.15rem; font-size: .9rem; white-space: nowrap; transition: padding .55s var(--b-ease), font-size .55s var(--b-ease); }
.b-nav.is-merged .b-apply { padding: .5rem .95rem; font-size: .84rem; }
.b-toggle { display: none; }
@media (max-width: 960px) {
  .b-links { display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border-radius: 22px; box-shadow: 0 20px 50px rgba(15, 23, 42, .2); padding: 10px 14px 14px; max-height: 76vh; overflow-y: auto; }
  .b-links.open { display: block; }
  .b-links .b-dd > a, .b-nav.is-merged .b-links .b-dd > a { color: var(--navy); font-size: 1.02rem; padding: 12px 8px 4px; background: none; }
  .b-links .b-dd-menu, .b-links .b-dd:hover .b-dd-menu, .b-links .b-dd:focus-within .b-dd-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; margin: 0; padding: 0 0 8px; min-width: 0; }
  .b-links .b-dd-menu::before { display: none; }
  .b-links .b-dd-menu a { padding: 7px 8px; color: var(--muted); }
  .b-toggle { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 999px; border: 1px solid rgba(15, 36, 69, .14); background: #fff; color: var(--navy); font-size: 1.15rem; cursor: pointer; }
  .b-nav.is-merged .b-nav-in { max-width: 100%; }
}
@media (max-width: 560px) { .b-go { display: none; } .b-brand-name { font-size: 1rem; } .b-nav.is-merged { padding: 10px 10px 0; } }
@media (prefers-reduced-motion: reduce) { .b-nav-in, .b-brand img, .b-brand-name { transition: none; } }

/* The preview bar sits at the bottom so the floating header stays clean */
.ed-b .preview-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; padding: 7px 12px; font-size: .8rem; }
@media (max-width: 760px) { .ed-b .preview-bar { bottom: calc(68px + env(safe-area-inset-bottom)); } }
.ed-b .wa-float span { display: none; }
.ed-b .wa-float { padding: 14px; bottom: 52px; }

/* ---------- Hero: the school name big, with a gently rotating line ---------- */
.b-hero { position: relative; min-height: min(calc(100svh - 68px), 880px); display: flex; align-items: flex-end; color: #fff; background: var(--navy) var(--hero) center 60% / cover no-repeat; isolation: isolate; }
.b-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 22, 44, .45) 0%, rgba(10, 22, 44, .2) 30%, rgba(10, 22, 44, .45) 55%, rgba(10, 22, 44, .9) 100%); }
.b-hero .wrap { width: 100%; padding-bottom: clamp(40px, 6vw, 76px); }
.b-hero-copy { max-width: 820px; }
.b-hero h1 { margin: 16px 0 14px; color: #fff; }
.b-hero h1 .h1-main { display: block; font-family: var(--serif); font-weight: 600; font-size: clamp(2.8rem, 7.4vw, 6.2rem); line-height: .98; letter-spacing: -.02em; }
.b-hero h1 .h1-sub { display: block; font-family: var(--sans); font-weight: 500; font-size: clamp(1.05rem, 1.8vw, 1.35rem); line-height: 1.45; color: rgba(255, 255, 255, .9); margin-top: 16px; max-width: 620px; }
.b-rotate { font-family: var(--serif); font-size: clamp(1.35rem, 2.6vw, 2rem); margin: 0 0 30px; color: rgba(255, 255, 255, .9); }
.b-word { color: var(--gold-2); display: inline-block; transition: opacity .35s var(--b-ease), transform .35s var(--b-ease); }
.b-word.is-out { opacity: 0; transform: translateY(8px); }
.b-scroll { display: inline-flex; gap: 8px; margin-top: 36px; color: rgba(255, 255, 255, .85); font-size: .95rem; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .4); padding-bottom: 2px; }
.b-scroll:hover { color: #fff; }
@media (max-width: 760px) { .b-hero { background-image: var(--hero-sm, var(--hero)); min-height: min(calc(100svh - 70px), 760px); } .b-scroll { display: none; }
  /* the longer rotating phrases wrap to two lines on phones; reserve both so the bottom-anchored hero text doesn't jump */
  .b-rotate { line-height: 1.3; min-height: 2.6em; } }

/* ---------- Sections and chapter heads ---------- */
.b-section { padding: clamp(80px, 11vw, 140px) 0; scroll-margin-top: 90px; }
.b-paper { background: var(--b-paper); }
.b-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.b-num { display: block; font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; color: var(--gold); margin-bottom: 14px; }
.b-head h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.08; margin: 0 0 14px; }
.b-head p { font-size: 1.15rem; color: var(--muted); margin: 0; }
.b-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.b-split-top { align-items: start; }
@media (max-width: 900px) { .b-split { grid-template-columns: 1fr; } }
/* Each chapter ends with two quiet choices: go deeper, or next chapter */
.b-end { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; margin: 36px 0 0; }
.b-skip { color: var(--muted); font-size: .95rem; text-decoration: none; }
.b-skip:hover { color: var(--navy); text-decoration: underline; }

/* 01 Finder */
.b-finder { background: var(--b-paper); border-radius: 28px; padding: clamp(24px, 4vw, 48px); display: grid; gap: 28px; }
.b-finder fieldset { border: 0; padding: 0; margin: 0; }
.b-finder legend { font-weight: 600; color: var(--navy); margin-bottom: 12px; font-size: 1.05rem; }
.b-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.b-chips label { cursor: pointer; }
.b-chips input { position: absolute; opacity: 0; pointer-events: none; }
.b-chips span { display: inline-block; padding: 12px 20px; border-radius: 999px; background: #fff; border: 1.5px solid var(--b-line); font-weight: 500; color: var(--navy); transition: all .15s; }
.b-chips label:hover span { border-color: var(--navy); }
.b-chips input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.b-chips input:focus-visible + span { outline: 3px solid var(--gold-2); outline-offset: 2px; }
.b-answer { background: #fff; border-radius: 20px; padding: clamp(20px, 3vw, 32px); min-height: 80px; }
.b-answer-empty { margin: 0; color: var(--muted); }
.b-answer h3 { margin: 0 0 16px; font-size: 1.5rem; }
.b-path { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.b-path li span { display: block; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.b-path li b { display: block; font-family: var(--serif); font-size: 1.35rem; color: var(--navy); margin: 4px 0 6px; font-weight: 600; }
.b-path li p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) { .b-path { grid-template-columns: 1fr; } .b-chips span { padding: 10px 16px; } }

/* 02 Proof: celebratory, warm, with a photo */
.b-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.b-stats div { border-top: 2px solid var(--gold-2); padding-top: 16px; }
.b-stats strong { display: block; font-family: var(--serif); font-weight: 600; font-size: clamp(3rem, 6vw, 4.6rem); line-height: 1; color: var(--gold); letter-spacing: -.02em; }
.b-stats span { display: block; margin-top: 8px; color: var(--ink, #1b2a41); font-size: 1rem; }
.b-celebrate { margin: 32px 0 0; padding: 16px 20px; background: #fff; border-radius: 16px; font-family: var(--serif); font-size: 1.2rem; color: var(--navy); border-left: 4px solid var(--gold); }
.b-unis-title { margin: clamp(48px, 7vw, 80px) 0 16px; font-size: 1.3rem; }
.b-unis { margin: 0 0 8px; }
.b-paper .uni-strip li { color: var(--navy); background: #fff; border-color: var(--b-line); }

/* 03 Journey */
.b-journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; position: relative; }
.b-journey::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: var(--b-line); }
.b-journey li { position: relative; padding-top: 36px; }
.b-journey li::before { content: ""; position: absolute; top: 4px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--gold); }
.b-journey .b-next::before { background: var(--gold); }
.b-year { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.b-journey h3 { font-size: 1.35rem; margin: 6px 0 8px; }
.b-journey p { font-size: .95rem; color: var(--muted); margin: 0; }
@media (max-width: 960px) {
  .b-journey { grid-template-columns: 1fr; gap: 0; }
  .b-journey::before { left: 7px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .b-journey li { padding: 0 0 28px 36px; }
  .b-journey li::before { top: 2px; }
}

/* 04 A day */
.b-tabs { display: inline-flex; background: #fff; border: 1px solid var(--b-line); border-radius: 999px; padding: 4px; margin-bottom: 24px; }
.b-tabs button { border: 0; background: none; padding: 10px 20px; border-radius: 999px; font: inherit; font-weight: 600; color: var(--navy); cursor: pointer; }
.b-tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }
.b-tab-lead { margin: 0 0 12px; font-family: var(--serif); font-size: 1.2rem; color: var(--navy); }
.b-clock { list-style: none; margin: 0; padding: 0; }
.b-clock li { display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--b-line); font-size: 1.02rem; }
.b-clock time { font-family: var(--serif); font-weight: 600; color: var(--navy); font-size: 1.15rem; }
.b-photo { margin: 0; }
.b-photo img { width: 100%; border-radius: 28px; aspect-ratio: 4/5; object-fit: cover; }
.b-photo figcaption { font-size: .88rem; color: var(--muted); margin-top: 10px; }
@media (max-width: 900px) { .b-photo img { aspect-ratio: 4/3; } }

/* 05 Character: qualities first, the practice as quiet proof */
.b-traits { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.b-traits div { background: var(--b-paper); border-radius: 20px; padding: 26px 22px; }
.b-traits h3 { font-size: 1.5rem; margin: 0 0 10px; }
.b-traits p { margin: 0 0 14px; color: var(--ink, #1b2a41); }
.b-traits span { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
@media (max-width: 960px) { .b-traits { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .b-traits { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-left: -16px; margin-right: -16px; padding: 0 16px 8px; scrollbar-width: none; } .b-traits div { flex: 0 0 72%; scroll-snap-align: start; } }

/* CEO welcome after chapter 05: short on every screen size, with "Read the full message" */
.b-ceo-wrap .section { padding-top: 0; padding-bottom: clamp(64px, 9vw, 110px); background: #fff; }
.b-ceo-wrap h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.b-ceo-wrap .clamp-sm:not(.expanded) .more { display: none; }
.b-ceo-wrap .clamp-sm:not(.expanded) .more-toggle { display: inline-flex; margin-top: 4px; }

/* 07 Joining */
.b-steps { list-style: none; counter-reset: s; margin: 0 0 32px; padding: 0; }
.b-steps li { counter-increment: s; position: relative; padding: 0 0 22px 56px; font-size: 1.05rem; }
.b-steps li::before { content: counter(s); position: absolute; left: 0; top: -4px; width: 38px; height: 38px; border-radius: 50%; background: var(--b-paper); color: var(--navy); font-family: var(--serif); font-weight: 600; display: grid; place-items: center; }
.b-steps b { color: var(--navy); }
.b-faq { padding-top: 0; }
.b-faq h2 { font-size: 1.8rem; }

/* Closing call to action */
.b-cta { background: var(--b-paper); }
.b-cta h2 { font-size: clamp(2.6rem, 6.5vw, 5rem); letter-spacing: -.02em; }

@media (max-width: 760px) { .b-section { padding: 64px 0; } .b-head { margin-bottom: 28px; } .b-num { font-size: 2.2rem; margin-bottom: 8px; } .b-finder { gap: 22px; } .b-stats { gap: 22px 20px; } }

/* ---------- Round 4 (review feedback) ---------- */
/* Phones: the header slides away while scrolling down (only the bottom action bar stays fixed) */
.b-nav { transition: padding .55s var(--b-ease), transform .3s ease; }
.b-nav.is-hidden { transform: translateY(-115%); }

/* "Show all" / "+N more" buttons */
.b-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--b-line); background: #fff; color: var(--navy); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
.b-more:hover { border-color: var(--navy); }
.b-more-inline { margin: -4px 0 18px; }
.ticks.is-short li:nth-child(n+4) { display: none; }
.b-unis .b-more { display: none; }
@media (max-width: 760px) {
  .b-unis:not(.is-open) .uni-strip li:nth-child(n+7) { display: none; }
  .b-unis:not(.is-open) .b-more { display: inline-flex; }
}

/* CEO quote inside chapter 05 */
.b-ceo-quote { margin: clamp(40px, 6vw, 64px) 0 0; padding: clamp(24px, 4vw, 40px); background: var(--b-paper); border-radius: 24px; max-width: 920px; }
.b-ceo-quote blockquote { margin: 0 0 16px; padding: 0; border: 0; font-family: var(--serif); font-size: clamp(1.3rem, 2.6vw, 1.8rem); line-height: 1.35; color: var(--navy); }
.b-ceo-quote figcaption { color: var(--muted); font-size: .95rem; }
.b-ceo-quote figcaption b { color: var(--navy); }

/* Phones: the five-year timeline becomes a sideways swipe, like the cards */
@media (max-width: 760px) {
  .b-journey { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-left: -16px; margin-right: -16px; padding: 0 16px 8px; scrollbar-width: none; }
  .b-journey::-webkit-scrollbar { display: none; }
  .b-journey::before { display: none; }
  .b-journey li { flex: 0 0 70%; scroll-snap-align: start; padding: 22px 20px; background: var(--b-paper); border-radius: 20px; }
  .b-journey li::before { display: none; }
}

/* Keyboard users can focus and scroll the sideways rows */
.b-journey:focus-visible, .b-traits:focus-visible, .swipe-sm:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 4px; border-radius: 12px; }

/* ---------- Round 5: school photos ---------- */
.b-wide { margin: 32px 0 0; }
.b-wide img { width: 100%; max-height: 520px; object-fit: cover; object-position: center 60%; border-radius: 28px; }
.b-wide figcaption { font-size: .9rem; color: var(--muted); margin-top: 10px; }
/* Character in action: three photos under the quality cards */
.b-moments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.b-moments figure { margin: 0; position: relative; border-radius: 20px; overflow: hidden; }
.b-moments img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.b-moments figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 16px 12px; color: #fff; font-weight: 600; font-size: .92rem; background: linear-gradient(transparent, rgba(11, 27, 52, .8)); }
@media (max-width: 560px) { .b-moments { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-left: -16px; margin-right: -16px; padding: 0 16px 8px; scrollbar-width: none; } .b-moments figure { flex: 0 0 78%; scroll-snap-align: start; } }
/* CEO quote with portrait */
.b-ceo-quote { display: grid; grid-template-columns: 120px 1fr; gap: 28px; align-items: center; }
.b-ceo-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; object-position: 60% 22%; border: 4px solid #fff; box-shadow: 0 8px 24px rgba(15, 23, 42, .12); }
@media (max-width: 560px) { .b-ceo-quote { grid-template-columns: 1fr; gap: 16px; } .b-ceo-photo { width: 88px; height: 88px; } }

/* ---------- Round 6: a more compact finder, still easy to read and tap ---------- */
.b-finder { gap: 22px; padding: clamp(20px, 3.4vw, 40px); }
.b-finder legend { margin-bottom: 10px; }
.b-chips { gap: 8px; }
.b-chips span { padding: 10px 18px; }
@media (max-width: 760px) {
  .b-finder { gap: 16px; padding: 18px 16px; border-radius: 22px; }
  .b-finder legend { font-size: 1rem; margin-bottom: 8px; }
  .b-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .b-chips span { display: block; text-align: center; padding: 10px 8px; font-size: .95rem; line-height: 1.25; }
  .b-answer { padding: 18px 16px; }
  .ed-b .preview-bar { bottom: calc(56px + env(safe-area-inset-bottom)); }
}
@media (max-width: 760px) { .b-answer h3 { font-size: 1.3rem; margin-bottom: 12px; } .b-path { gap: 14px; margin-bottom: 18px; } .b-path li b { font-size: 1.15rem; } .b-path li p { font-size: .92rem; } }
