/* GENERATED FILE — DO NOT EDIT.
   Source: design/prelimprep.css
   Regenerate: npm run prelimprep:css
   All selectors scoped to .pp-root. */

/* ============================================================================
   Year 11 Prelim Prep — design stylesheet (SOURCE, unscoped)
   ----------------------------------------------------------------------------
   Original design by Ariel (TM_ariel_temp @ f8de511).

   This file is the editable source. It is NOT served. Run

       npm run prelimprep:css

   to emit public/prelimprep/css/prelimprep.scoped.css with every selector
   prefixed with `.pp-root`, so these global resets cannot leak into the shared
   site nav/footer. Same pipeline as mocktrials. Never edit the scoped file.

   Deliberate changes from Ariel's original, each annotated inline [CHANGED].
   The full rationale for every one is in docs/prelimprep.md:
     1. (none — the colour palette is byte-identical to Ariel's original.)
     2. Explicit font-size/line-height base, because site.css sets body to 14px
        and p{line-height:170%}, both of which would otherwise bleed in.
     3. :focus-visible rings added (the original had none).
     4. Keyframes namespaced pp- (keyframe names are global regardless of
        selector scoping, so they can collide with site.css).
     5. Dead .topic summary / .topic .body rules removed.
     6. Page <footer> rules replaced by .pp-closing (the real site footer now
        renders below this block).
     7. html{scroll-behavior} dropped — handled in JS so it can respect
        prefers-reduced-motion and survive scoping.
     8. .hva-frame top rail pushed clear of the fixed site nav.
     9. .topics > .wrap > p narrowed to :not(.kicker) — pinning font-size on
        that selector was overriding the kicker's own 12px.
    10. .hva-card-title pinned to 700 (it was relying on the UA <h3> default and
        rendering as synthetic faux-bold).
    11. --deep and --on-deep are unused here since the page footer was removed;
        kept so this palette stays diff-able against the other section pages.
   ========================================================================== */

.pp-root{
  /* NOTE: this palette is shared verbatim with careers, holiday and mocktrials.
     White on --accent is 2.65:1 and white on --accent-deep is 4.31:1, both
     below the 4.5:1 WCAG AA needs at 12.5px/700; --ink-mute is 3.34:1 on --bg.
     Deliberately left as-is so all four pages stay visually consistent. If the
     brand greens are ever revisited, #2B8235 (4.83:1 under white), #236E2B
     (5.93:1 as text on --bg) and #6E6E6E (4.80:1) are drop-in replacements. */
  --accent:      #3FB54A;
  --accent-deep: #2E8B3A;
  --accent-soft: #E8F5E9;
  --accent-tint: #F1FAF1;
  --bg:          #FAF8F3;
  --bg-card:     #FFFFFF;
  --bg-deep:     #0F0F0F;
  --deep:        #0F0F0F;
  --ink:         #1A1A1A;
  --ink-soft:    #555555;
  --ink-mute:    #888888;
  --line:        #E5E5E5;
  --line-soft:   #EEEEEE;
  --on-deep:     #FAF8F3;
  --on-deep-mute:#A0A0A0;
  --serif: "Newsreader", Georgia, serif;
  --sans:  "DM Sans", system-ui, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, monospace;
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-xl: 32px;
  /* Height of the fixed site nav that overlays the top of the hero. The
     frame's top rail and the hero's bottom padding are both derived from it,
     so they stay in step. */
  --nav-h: 58px;
  --maxw: 1080px;
  --pad: clamp(20px, 4vw, 56px);
}
.pp-root *{ box-sizing: border-box; }
.pp-root{
  margin: 0;
  /* [CHANGED] font-size/line-height are explicit. site.css sets
     body{font-size:14px;line-height:20px;font-family:Arial} which would
     otherwise be inherited by every unsized element in this design. */
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
.pp-root img{ max-width: 100%; display: block; }
.pp-root a{ color: var(--accent-deep); }

/* [CHANGED] The original had no focus styling at all. */
.pp-root a:focus-visible,
.pp-root button:focus-visible{
  outline: 3px solid var(--accent-deep);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}
.pp-root .hva a:focus-visible,
.pp-root .hva button:focus-visible{ outline-color: #fff; }

/* [CHANGED] In-page anchors focus their scroll target so keyboard position
   follows the view. That target is not an interactive control, so it should
   not draw a ring — :focus-visible keeps real keyboard focus rings intact. */
.pp-root [tabindex="-1"]:focus:not(:focus-visible){ outline: none; }


.pp-root .wrap{ width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

/* ---------- poster hero (matches the course-page hero style) ---------- */
.pp-root .hva-poster-wrap{ position: relative; }
.pp-root .hva{
  position: relative; min-height: 72vh; display: flex; align-items: center;
  overflow: hidden; background: var(--bg-deep);
}
.pp-root .hva-bg{ position: absolute; inset: 0; }
.pp-root .hva-bg img{ width: 100%; height: 100%; object-fit: cover; object-position: 56% 30%; }
.pp-root .hva-wash{
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,26,13,0.42) 0%, rgba(8,26,13,0.12) 26%, rgba(8,26,13,0.12) 48%, rgba(8,26,13,0.68) 100%),
    linear-gradient(90deg, rgba(8,26,13,0.72) 0%, rgba(8,26,13,0.26) 44%, rgba(8,26,13,0) 74%),
    linear-gradient(0deg, rgba(46,139,58,0.36), rgba(46,139,58,0.36));
}
.pp-root .hva-hatch{
  position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(-45deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 9px);
}
.pp-root .hva-frame{
  position: absolute; inset: clamp(16px,2vw,30px); border: 3px solid rgba(255,255,255,0.92);
  border-radius: 12px; pointer-events: none; z-index: 2;
  /* [CHANGED] The shared site nav is position:fixed and ~54px tall, so at the
     original inset the frame's top rail was painted underneath it and the
     poster read as two floating white stubs. Push the top rail clear of it. */
  top: calc(clamp(16px,2vw,30px) + var(--nav-h));
}
.pp-root .hva-inner{
  position: relative; z-index: 3; max-width: var(--maxw); width: 100%; margin: 0 auto;
  /* [CHANGED] The bottom pad was a free-standing clamp, so once the frame's top
     rail moved down by --nav-h the space under the equation was that much
     larger than the space above the eyebrow. Deriving it from the top pad minus
     --nav-h makes the two gaps inside the frame equal at every width. */
  --pp-pad-top: max(clamp(40px,6vw,84px), calc(var(--nav-h) + 24px));
  padding: var(--pp-pad-top) clamp(44px,5vw,72px) calc(var(--pp-pad-top) - var(--nav-h));
  display: flex; flex-direction: column; align-items: flex-start;
}
.pp-root .hva-eyebrow{
  display: inline-flex; align-items: center; font-family: var(--mono); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.26em; font-size: 13px; color: rgba(255,255,255,0.92);
  line-height: 1.5;
  margin: 0 0 28px;
}
.pp-root .hva-dot{
  width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin-right: 13px;
  animation: ppHvaPulse 2.2s infinite;
}
@keyframes ppHvaPulse{
  0%{ box-shadow: 0 0 0 0 rgba(63,181,74,0.5); }
  70%{ box-shadow: 0 0 0 9px rgba(63,181,74,0); }
  100%{ box-shadow: 0 0 0 0 rgba(63,181,74,0); }
}
.pp-root .hva-title{
  font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em;
  font-size: clamp(38px, 5.5vw, 72px); line-height: 1.1; color: #fff; margin: 0;
  text-wrap: balance; text-shadow: 0 3px 30px rgba(0,0,0,0.32);
}
.pp-root .hva-title .hl{ color: #4EFF6B; font-style: italic; }
.pp-root .hva-desc{
  font-family: var(--sans); font-weight: 400; font-size: clamp(15px, 1.4vw, 18px); line-height: 1.6;
  color: #fff; max-width: 48ch; margin: 22px 0 0; text-shadow: 0 2px 14px rgba(0,0,0,0.45);
}
@media (max-width: 640px){
  .pp-root .hva-desc{ display: none; }
}

/* ---------- dynamic "solving" equation ---------- */
.pp-root .hero-equation{
  margin: 20px 0 0; font-family: var(--mono); font-weight: 500;
  font-size: clamp(14px, 1.5vw, 18px); color: rgba(255,255,255,0.92);
  line-height: 1.5;
  display: flex; align-items: center; min-height: 1.6em;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4); letter-spacing: 0.01em;
}
.pp-root .hero-equation .ans{ color: var(--accent); font-weight: 700; }
.pp-root .hero-equation .cursor{
  display: inline-block; width: 2px; height: 1.05em; background: var(--accent);
  margin-left: 4px; transform: translateY(2px); animation: ppCaretBlink 1s steps(1) infinite;
}
@keyframes ppCaretBlink{ 0%,50%{ opacity: 1; } 50.01%,100%{ opacity: 0; } }
@media (prefers-reduced-motion: reduce){
  .pp-root .hero-equation .cursor{ animation: none; }
  /* [CHANGED] the pulsing hero dot was not covered by the original guard */
  .pp-root .hva-dot{ animation: none; }
}

/* ---------- location + CTA row (inside the hero) ---------- */
.pp-root .hero-loc{
  display: inline-flex; align-items: center; gap: 8px; margin: 26px 0 0;
  font-family: var(--sans); font-weight: 700; font-size: 14px; letter-spacing: 0.04em;
  text-transform: uppercase; line-height: 1.5; color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,0.5);
}
.pp-root .hero-loc svg{ color: var(--accent); flex: 0 0 auto; }
.pp-root .hero-actions{ display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.pp-root .btn-see-topics{
  display: inline-flex; align-items: center; font-family: var(--sans); font-weight: 700; font-size: 14px;
  color: #fff; background: rgba(255,255,255,0.12); border: 1.5px solid rgba(255,255,255,0.55);
  border-radius: 999px; padding: 13px 26px; text-decoration: none;
}
.pp-root .btn-see-topics:hover{ background: rgba(255,255,255,0.22); border-color: #fff; }

/* floating "resource card" */
.pp-root .hva-card{
  position: absolute; z-index: 3; right: clamp(40px, 5vw, 84px); top: 50%; transform: translateY(-50%);
  width: clamp(300px, 26vw, 360px); background: var(--bg-card); border-radius: 16px;
  box-shadow: 0 54px 110px -38px rgba(0,0,0,0.72), 0 10px 26px -14px rgba(0,0,0,0.45); overflow: hidden;
}
.pp-root .hva-card-cover{
  position: relative;
  background: repeating-linear-gradient(-45deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 10px), var(--bg-deep);
  padding: 20px 22px 22px; border-bottom: 3px solid var(--accent);
}
.pp-root .hva-card-coverhead{ display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.pp-root .hva-card-eyebrow{ font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.pp-root .hva-card-mono{ display: inline-flex; align-items: center; justify-content: center; height: 28px; }
.pp-root .hva-card-mono img{ height: 100%; width: auto; }
.pp-root .hva-card-kicker{ font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--accent); display: block; }
/* [CHANGED] explicit 700 — the original relied on the <h3> UA default and
   rendered as synthetic faux-bold because Newsreader 700 was never requested. */
.pp-root .hva-card-title{ font-family: var(--serif); font-weight: 700; font-size: 32px; line-height: 1.02; letter-spacing: -0.02em; color: #fff; margin: 2px 0 9px; }
.pp-root .hva-card-sub{ font-family: var(--mono); font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--on-deep-mute); }
.pp-root .hva-card-body{ padding: 18px 22px 20px; }
.pp-root .hva-card-bodylbl{ display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 12px; }
.pp-root .hva-card-list{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pp-root .hva-card-list li{ font-family: var(--sans); font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); position: relative; padding-left: 22px; }
.pp-root .hva-card-list li::before{
  content: ""; position: absolute; left: 0; top: 6px; width: 8px; height: 8px; border-radius: 2px;
  background: var(--accent-soft); border: 1.5px solid var(--accent);
}
.pp-root .hva-card-foot{ display: flex; align-items: center; justify-content: space-between; padding: 14px 22px; border-top: 1px solid var(--line); background: var(--bg); }
.pp-root .hva-card-logo{ font-family: var(--serif); font-size: 14px; color: var(--ink); letter-spacing: -0.01em; }
.pp-root .hva-card-pages{ font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); }
@media (max-width: 1024px){ .pp-root .hva-card{ display: none; } }
@media (max-width: 640px){
  /* [CHANGED] Phone hero: explicit gaps, two anchored groups, one flexible void.
     Distances are measured from the white frame's rails, not the section box,
     so they are what you actually see. Eyebrow + headline are top-aligned; the
     location, button and equation are bottom-aligned; `margin-top: auto` on
     .hero-loc is the void that absorbs whatever height is left, so the layout
     grows with the device instead of being tuned to one screen. */
  .pp-root .hva{ min-height: 68vh; align-items: stretch; }
  .pp-root .hva-inner{
    padding-top: calc(var(--nav-h) + clamp(16px,2vw,30px) + 44px);
    padding-bottom: calc(clamp(16px,2vw,30px) + 22px);
    gap: 0;
  }
  .pp-root .hva-eyebrow{ margin: 0 0 33px; }    /* line 1 -> line 2 */
  .pp-root .hva-title{ margin: 0; }             /* lines 2 and 3 are one h1 */
  .pp-root .hero-loc{ margin-top: auto; }       /* the void */
  .pp-root .hero-actions{ margin-top: 44px; }   /* line 4 -> line 5 */
  .pp-root .hero-equation{ margin-top: 44px; }  /* line 5 -> line 6 */
}

/* ---------- topics ---------- */
.pp-root .topics{ padding-block: clamp(48px, 7vw, 88px); }
.pp-root .kicker{ font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.18em; font-size: 12px; line-height: 1.5; color: var(--accent-deep); margin: 0 0 12px; }
.pp-root .topics h2{ font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 10px; }
/* [CHANGED] :not(.kicker) — this selector is more specific than .kicker,
   so pinning font-size here would otherwise override the kicker's 12px. */
.pp-root .topics > .wrap > p:not(.kicker){ color: var(--ink-soft); font-size: 16px; line-height: 1.5; max-width: 100%; margin: 0 0 40px; }

/* ---------- level filter ---------- */
.pp-root .level-filter{
  display: inline-flex; align-items: center; gap: 3px; padding: 5px; margin: 0 0 32px;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 999px;
}
.pp-root .level-filter button{
  font-family: var(--sans); font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
  background: transparent; border: none; border-radius: 999px; padding: 9px 18px; cursor: pointer;
  transition: background .15s, color .15s;
}
.pp-root .level-filter button:hover{ color: var(--accent-deep); }
.pp-root .level-filter button[aria-pressed="true"]{ background: var(--accent); color: #fff; }

/* [CHANGED] visually-hidden live region announcing filter results */
.pp-root .pp-sr{
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- card grid layout ---------- */
.pp-root .topics-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pp-root .tcard{
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px; display: flex; flex-direction: column;
}
.pp-root .tcard[hidden]{ display: none; }
.pp-root .tcard .num{
  font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--accent-deep);
  background: var(--accent-soft); border-radius: 999px; width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.pp-root .tcard h3{ font-family: var(--serif); font-weight: 400; font-size: 20px; line-height: 1.25; margin: 0 0 6px; }
.pp-root .tcard p.blurb{ font-size: 14px; line-height: 1.5; color: var(--ink-soft); margin: 0; }

.pp-root .topic-actions{ display: flex; gap: 8px; margin-top: 20px; }
.pp-root .btn-dl, .pp-root .btn-video{
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: 1 1 0;
  font-family: var(--sans); font-weight: 700; font-size: 12.5px; text-decoration: none;
  border-radius: 999px; padding: 8px 10px; white-space: nowrap;
}
.pp-root .btn-dl{ background: var(--accent); color: #fff; border: none; }
.pp-root .btn-dl:hover{ background: var(--accent-deep); }
.pp-root .btn-video{ background: var(--bg); border: 1.5px solid var(--line); color: var(--ink); cursor: pointer; }
.pp-root .btn-video:hover{ border-color: var(--accent-deep); color: var(--accent-deep); }
.pp-root .btn-video:disabled{ color: var(--ink-mute); cursor: not-allowed; }
.pp-root .btn-video:disabled:hover{ border-color: var(--line); color: var(--ink-mute); }
.pp-root .btn-dl svg, .pp-root .btn-video svg{ flex: 0 0 auto; width: 14px; height: 14px; }
@media (max-width: 720px){
  .pp-root .topics-grid{ grid-template-columns: 1fr; }

  /* [CHANGED] On touch the Part A / Part B menus become inline disclosures
     rather than absolute overlays: nothing to mis-tap, nothing to dismiss with
     an outside tap (which iOS Safari does not reliably deliver), and the rows
     get a 44px-plus target instead of 31px. */
  .pp-root .topic-actions{ align-items: flex-start; }
  .pp-root .dl-menu{ position: static; margin-top: 6px; box-shadow: none; }
  .pp-root .dl-menu a{ padding: 14px 12px; font-size: 14px; }
}

/* ---------- worksheet dropdown (multi-part worksheets) ---------- */
.pp-root .dl-dropdown{ position: relative; flex: 1 1 0; }
.pp-root .dl-toggle{ width: 100%; cursor: pointer; font-family: inherit; }
.pp-root .dl-menu{
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 5;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 14px 34px -16px rgba(0,0,0,0.35); overflow: hidden;
}
.pp-root .dl-menu a{
  display: block; padding: 9px 12px; font-size: 12.5px; font-weight: 600;
  color: var(--ink); text-decoration: none;
}
.pp-root .dl-menu a:hover{ background: var(--accent-tint); color: var(--accent-deep); }
.pp-root .dl-menu a + a{ border-top: 1px solid var(--line-soft); }

/* ---------- closing strip ----------
   [CHANGED] Ariel's page ended in its own dark <footer>. The real site footer
   now renders directly below this block, so her contact line becomes a light
   closing strip instead of a competing second footer. */
.pp-root .pp-closing{
  border-top: 1px solid var(--line); background: var(--bg);
  padding-block: 40px; text-align: center;
}
.pp-root .pp-closing p{
  color: var(--ink-soft); font-size: 15px; line-height: 1.6; margin: 0; max-width: 60ch;
  margin-inline: auto;
}
.pp-root .pp-closing a{ color: var(--accent-deep); font-weight: 700; }
