/* PrepBuddy website: the page recipes of the public pages outside the landing (About, Contact, Pricing, Courses, Help, For organisations, the state pages).
   Spec: 03-modules/website/site/. The chrome (header, menu, footer, wordmark, the pill and two-part buttons, the --l2-* palette and the fluid em scale) is
   Landing 2's and lives in site-chrome.css and site.js beside this file (2026-11-15, row 125): a page links site-chrome.css first, then this file. Here the
   content takes the landing's look: its display type on the page title and the section headings, big rounded panels on pale tints, the pill and the block
   buttons, flat (no glow, no slab hero). Class prefix ws-; every colour is a token or an --l2-* alias of one; logical properties only (RTL); the only motion
   is the 150 and 300 ms transitions. One recipe, one file (WORKFLOW): the page head, the card grid, the numbered steps, the band, the inline notice, the
   multi-line field and the ticket number live here for every public page; a second audience that needs one moves it to 04-prototype/shared/.
   Buttons, cards, the single-line field, the status pill, the empty-state icon tile and the spinner are the shared ones (components.css, theme.css), shaped here. */

a { color: inherit; }
.ws-body { --ws-r: calc(var(--size-font) * 2.5); --ws-panel: calc(var(--size-font) * 2); --ws-head: calc(var(--size-container) / (var(--size-ideal) / 16) * 5); margin: 0; min-block-size: 100vh; min-block-size: 100svh; display: flex; flex-direction: column; overflow-x: clip; background: var(--l2-paper); color: var(--l2-ink); font-family: var(--l2-font); font-size: calc(14px * var(--font-scale)); line-height: 1.6; }   /* a short page keeps its footer at the bottom */
.ws-body > main { --l2-tap: 48px; position: relative; z-index: 1; flex: 1 0 auto; padding-block: calc(var(--ws-head) + 8px) calc(var(--ws-r) * .5 + 32px); border-end-start-radius: var(--ws-r); border-end-end-radius: var(--ws-r); background: var(--l2-paper); }   /* the page is a white panel under the floating header; its rounded end sits on the blue footer, as the landing's last section does (the footer pulls itself under by the same radius) */
.ws-body > .l2-footer { font-size: var(--size-font); line-height: 1.25; font-weight: 500; }   /* the footer's em is the landing's fluid size, not the page's text size */
.ws-body :is(.l2-header, .l2-menu) { line-height: 1.25; font-weight: 500; }
.ws-body :is(.l2-header, .l2-menu, .l2-footer) :is(h2, p, ul) { margin: 0; padding-inline-start: 0; list-style: none; }   /* the landing's base resets, for the chrome only: a page's own lists keep their marks */
.ws-body :is(.l2-header, .l2-menu, .l2-footer, .l2-btn-alt) :is(img, svg) { display: block; max-width: 100%; }
.ws-body .l2-footer img { height: auto; }
.ws-body > .l2-header--bare .l2-header__end .l2-round { display: inline-grid; }   /* Maintenance has no menu to hold the language button below 480 px */
.ws-body > .l2-footer--bare .l2-footer__socials { display: flex; align-items: center; gap: .9em; padding-top: 1.5em; }
.ws-body > .l2-footer--bare .l2-footer__mail { display: inline-flex; align-items: center; min-height: 48px; }
.ws-body main :where(a, button, summary):focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }   /* a field shows focus on its frame (below); the chrome keeps the landing's ring */
.l2-btn[aria-current="page"] { --btn-bg: var(--l2-ink); --btn-fg: var(--l2-white); }   /* the open page's pill, in the bar and in the menu */
@media (min-width: 992px) { .ws-body { --ws-r: calc(var(--size-font) * 6); --ws-panel: calc(var(--size-font) * 4.5); --ws-head: calc(var(--size-container) / (var(--size-ideal) / 16) * 6.625); } .ws-body > .l2-footer { margin-top: calc(var(--ws-r) * -1); padding-top: var(--ws-r); } .ws-body > .l2-footer .l2-footer__top { padding-top: 4em; } }   /* a page's end is a smaller curve than the landing's 10em: its content is a 1120 dp column that the big curve would cut */
/* dark (the prototype's Theme Lab; the landing is light only): ink turns light, so what sat on ink takes the canvas */
:root[data-theme="dark"] :is(.l2-btn-alt--ink, .l2-btn[aria-current="page"]) { --alt-fg: var(--l2-canvas); --btn-fg: var(--l2-canvas); }
:root[data-theme="dark"] .l2-header .l2-round, :root[data-theme="dark"] .l2-round--menu { --soc-fg: var(--l2-canvas); }
:root[data-theme="dark"] .l2-footer__bottom { background: var(--l2-canvas); color: var(--l2-ink); }
:root[data-theme="dark"] .l2-skip-link { color: var(--l2-canvas); }
:root[data-theme="dark"] :is(.l2-btn--platform, .l2-btn--menu-sm) { --btn-fg: var(--on-reward); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) :is(.l2-btn-alt--ink, .l2-btn[aria-current="page"]) { --alt-fg: var(--l2-canvas); --btn-fg: var(--l2-canvas); }
  :root:not([data-theme="light"]) .l2-header .l2-round, :root:not([data-theme="light"]) .l2-round--menu { --soc-fg: var(--l2-canvas); }
  :root:not([data-theme="light"]) .l2-footer__bottom { background: var(--l2-canvas); color: var(--l2-ink); }
  :root:not([data-theme="light"]) .l2-skip-link { color: var(--l2-canvas); }
  :root:not([data-theme="light"]) :is(.l2-btn--platform, .l2-btn--menu-sm) { --btn-fg: var(--on-reward); }
}
.ws-wrap { max-inline-size: 1120px; margin-inline: auto; padding-inline: 16px; box-sizing: border-box; }
.ws-grow { flex: 1; }
.ws-gone { display: none !important; }
.ws-body [hidden] { display: none !important; }   /* a component with its own display (grid, flex) still hides with the attribute */
.ws-sr { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }   /* a live region for a screen reader */

/* ---------- type ---------- */
.ws-h1, .ws-h2, .ws-h3 { overflow-wrap: anywhere; }   /* a Tamil word can be wider than 288 dp at 320 (the organisations page, 2026-10-18) */
.ws-h1, .ws-h2 { font-weight: 800; letter-spacing: -.04em; }   /* the landing's display type: Poppins 800, tight */
.ws-h1 { margin: 12px 0; font-size: calc(var(--size-font) * 2.4 * var(--l2-ds, 1)); line-height: 1; }
.ws-h2 { margin: 0 0 12px; font-size: calc(var(--size-font) * 1.75 * var(--l2-ds, 1)); line-height: 1.05; }
.ws-h3 { margin: 0; font-size: calc(17px * var(--font-scale)); font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
:is(:lang(ta), :lang(hi)) :is(.ws-h1, .ws-h2, .ws-h3) { line-height: 1.3; }   /* Indic scripts need open leading (the landing's rule 22) */
@media (min-width: 992px) { .ws-h1 { font-size: max(32px, calc(var(--size-font) * 4.4 * var(--l2-ds, 1))); } .ws-h2 { font-size: max(28px, calc(var(--size-font) * 2.6 * var(--l2-ds, 1))); } }
.ws-p { margin: 0; }
.ws-lead { margin: 0; color: var(--l2-ink-2); font-size: calc(17px * var(--font-scale)); font-weight: 500; line-height: 1.45; letter-spacing: -.01em; max-inline-size: 56ch; }
.ws-tag { display: inline-flex; align-items: center; gap: 8px; align-self: start; justify-self: start; padding: 6px 14px; border-radius: 999px; background: var(--l2-sky); color: var(--l2-ink); font-weight: 600; font-size: calc(13px * var(--font-scale)); }   /* the landing's tag */
.ws-tag .mi { font-size: 16px; }
@media (min-width: 600px) { .ws-wrap { padding-inline: 24px; } }

/* ---------- page head, sections, cards ---------- */
.ws-hero { display: grid; gap: 24px; inline-size: calc(100% - 16px); margin-block-end: 8px; padding: 32px 20px; border-radius: var(--ws-panel); background: var(--l2-sky-pale); }   /* the page head is a pale rounded panel, flat; the radius is fluid, as the landing's panels are */
.ws-body main .card { border-radius: 24px; box-shadow: none; background: var(--l2-sky-pale); }   /* the shared card as a landing panel: a pale tint, no edge */
.ws-body main .ws-hero .card, .ws-body main .card .card { background: var(--l2-paper); }
.ws-grid > :nth-child(4n + 2):is(.card), .ws-grid > :nth-child(4n + 2) > .card { background: var(--l2-lilac-pale); }
.ws-grid > :nth-child(4n + 3):is(.card), .ws-grid > :nth-child(4n + 3) > .card { background: var(--l2-cyan-pale); }
.ws-grid > :nth-child(4n + 4):is(.card), .ws-grid > :nth-child(4n + 4) > .card { background: var(--l2-pink-pale); }
/* buttons: the shared .btn in the landing's shapes. Filled = the blue block, outlined = the pale pill, on a band = the white block; a primary action with
   an arrow is the two-part button itself (.l2-btn-alt, site-chrome.css) */
.ws-body main .btn { border-radius: 8px; font-size: calc(15px * var(--font-scale)); letter-spacing: -.01em; }
.ws-body main .btn-fill { background: var(--l2-blue); }
.ws-body main .btn-out { border: 0; border-radius: 999px; background: var(--l2-sky-pale); color: var(--l2-ink); }
.ws-body main :is(.card, .ws-hero) .btn-out { background: var(--l2-paper); }
.ws-body main .card .card .btn-out, .ws-body main .ws-hero .card .btn-out { background: var(--l2-sky-pale); }
.ws-body main .l2-btn-alt { --alt-h: 48px; font-size: calc(14px * var(--font-scale)); max-inline-size: 100%; }
.ws-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 24px; }
.ws-sec { padding-block: 32px; }
.ws-sec > .ws-wrap > .ws-lead { margin-block-end: 24px; }
.ws-grid { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); list-style: none; margin: 0; padding: 0; }   /* minmax(0, ...): a 1fr track would grow to the longest Tamil word at 320 */
.ws-card { display: flex; flex-direction: column; gap: 8px; padding: 24px; min-width: 0; overflow-wrap: break-word; }
.ws-card .ws-p { color: var(--text-secondary); }
.ws-card .ws-cta { margin-block-start: 8px; }
.ws-ico { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex-shrink: 0; border-radius: 16px; background: var(--l2-paper); color: var(--primary-text); }
.ws-hero .card .ws-ico, .ws-row .ws-ico, .ws-quick .ws-ico { background: var(--l2-sky-pale); }
.ws-ico .mi { font-size: 24px; }
.ws-ico.ok { background: var(--success-container); color: var(--success-text); }
.ws-ico.warn { background: var(--warning-container); color: var(--warning-text); }
.ws-ico.err { background: var(--error-container); color: var(--error-text); }
.ws-facts { display: grid; gap: 16px; align-content: start; padding: 24px; list-style: none; margin: 0; }
.ws-fact { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ws-fact span:last-child { min-width: 0; overflow-wrap: break-word; }
.ws-steps { counter-reset: ws-s; }
.ws-step { counter-increment: ws-s; }
.ws-num { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-weight: 700; }
.ws-num::before { content: counter(ws-s); }
.ws-band { display: grid; gap: 16px; padding: 28px 24px; border-radius: var(--ws-panel); background: var(--l2-blue-deep); color: var(--on-hero); }   /* the landing's blue panel, flat */
.ws-band .ws-p { color: var(--on-hero); }   /* the muted on-hero ink read 4.12:1 on the dark orange theme; the plain one passes in all four */
.ws-rows { display: grid; gap: 0; list-style: none; margin: 0; padding: 0; }
.ws-row { display: flex; align-items: flex-start; gap: 12px; padding-block: 12px; min-width: 0; }
.ws-row + .ws-row { border-block-start: 1px solid var(--border); }
.ws-row > div { min-width: 0; overflow-wrap: anywhere; }
.ws-row b { display: block; }
.ws-row a { display: inline-flex; align-items: center; min-block-size: 48px; min-inline-size: 48px; font-weight: 600; color: var(--primary-text); text-decoration: none; }
.ws-row a:hover { text-decoration: underline; }
.ws-row .ws-p { color: var(--text-secondary); }
.ws-kv { display: grid; gap: 4px; margin: 0; }
.ws-kv dt { color: var(--text-secondary); font-size: calc(12px * var(--font-scale)); font-weight: 600; }
.ws-kv dd { margin: 0 0 12px; overflow-wrap: anywhere; }
@media (min-width: 600px) {
  .ws-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ws-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ws-band { grid-template-columns: 1fr auto; align-items: center; padding: 40px; }
  .ws-hero { inline-size: calc(100% - 32px); padding: 40px; }
}
@media (min-width: 1024px) {
  .ws-hero { grid-template-columns: 1.3fr 1fr; align-items: center; padding: 64px 56px; }
  .ws-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ws-sec { padding-block: 48px; }
}

/* ---------- questions: the landing's Common questions arrangement (a centred heading, pale rounded rows across the content width that deepen when open),
   on native <details>, so it needs no script ---------- */
.ws-h2.mid { text-align: center; margin-block-end: 24px; }
.ws-faq { display: grid; gap: 8px; }
.ws-faq details { border-radius: 20px; background: var(--l2-sky-pale); transition: background-color 150ms ease; }
.ws-faq details[open], .ws-faq details:hover { background: var(--l2-sky); }
.ws-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-block-size: 56px; padding: 12px 20px; border-radius: inherit; font-weight: 600; font-size: calc(16px * var(--font-scale)); line-height: 1.3; letter-spacing: -.01em; cursor: pointer; list-style: none; }
.ws-faq summary::-webkit-details-marker { display: none; }
.ws-faq summary .mi { flex-shrink: 0; transition: transform 150ms ease; }
.ws-faq details[open] summary .mi { transform: rotate(180deg); }
.ws-faq details p { margin: 0; padding: 0 20px 20px; max-inline-size: 88ch; }   /* the row spans the content; the answer keeps a readable measure */
@media (min-width: 1024px) { .ws-faq details { border-radius: 24px; } .ws-faq summary { padding: 20px 32px; font-size: calc(18px * var(--font-scale)); } .ws-faq details p { padding: 0 32px 28px; font-size: calc(15px * var(--font-scale)); } }

/* ---------- inline notice (info, warning, error) ---------- */
.ws-note { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; border-radius: 16px; background: var(--info-container); color: var(--text-primary); min-width: 0; }
.ws-note .mi { font-size: 20px; flex-shrink: 0; margin-block-start: 2px; color: var(--info-text); }
.ws-note > div { min-width: 0; overflow-wrap: anywhere; }
.ws-note b { display: block; }
.ws-notice { padding-block: 8px; }
.ws-notice .ws-note > .tbtn { margin-inline-start: auto; }
.ws-note.warn { background: var(--warning-container); } .ws-note.warn .mi { color: var(--warning-text); }
.ws-note.err { background: var(--error-container); } .ws-note.err .mi { color: var(--error-text); }

/* ---------- the multi-line field (PbTextArea): the shared field's textarea variant (theme.css .field.area), with its counter ---------- */
.ws-count { margin: 6px 0 0; font-size: calc(12px * var(--font-scale)); color: var(--text-secondary); text-align: end; }
.ws-count.near { color: var(--warning-text); }
.ws-count.over { color: var(--error-text); font-weight: 600; }
.ws-field { margin-block-end: 16px; }
.ws-field .field:not(.area):focus-within { border: 2px solid var(--primary); padding: 0 11px; box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 10%, transparent); }   /* the shared .focused look, without a script */
.ws-field .field.error:focus-within { border-color: var(--error); }
.ws-field .f-label { margin-block: 0 8px; }
.ws-hp { position: absolute; inset-inline-start: 0; inset-block-start: 0; inline-size: 0; block-size: 0; overflow: hidden; opacity: 0; pointer-events: none; }   /* the honeypot: invisible to people and to screen readers (aria-hidden, tabindex -1), in the page for a bot that fills every field */

.btn.loading .spinner { display: inline-block; }   /* a pill button that is sending: the shared spinner shows beside its label */

/* ---------- the ticket number (PbTicketNumber) ---------- */
.ws-ticket { display: inline-flex; align-items: center; gap: 8px; padding-block: 4px; padding-inline: 16px 4px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--edge); font-weight: 700; font-size: calc(20px * var(--font-scale)); letter-spacing: 0.02em; }

/* ---------- a state page: Not found, Something went wrong, Maintenance (the shared empty-state tile, wider) ---------- */
.ws-state { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding-block: 48px 24px; }
.ws-state > * { max-inline-size: 100%; box-sizing: border-box; }
.ws-state .ws-h1 { margin-block: 4px; }
.ws-state .ws-tag { align-self: center; }
.ws-state .ws-lead { margin-inline: auto; }
.ws-state .ic { width: 96px; height: 96px; border-radius: 24px; background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary-text); display: flex; align-items: center; justify-content: center; }
.ws-state .ic .mi { font-size: 48px; }
.ws-state .ic.warn { background: var(--warning-container); color: var(--warning-text); }
.ws-state .ic.ok { background: var(--success-container); color: var(--success-text); }
.ws-state .ws-cta { justify-content: center; }
.ws-quick { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); list-style: none; margin: 0 auto; padding: 0; max-inline-size: 760px; inline-size: 100%; }
.ws-quick a { display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-block-size: 48px; border-radius: 20px; background: var(--l2-sky-pale); text-decoration: none; font-weight: 600; transition: background-color 150ms ease, color 150ms ease; }
.ws-quick a:hover, .ws-quick a:focus-visible { background: var(--l2-sky); }
.ws-quick .ws-arrow { margin-inline-start: auto; transition: transform 150ms ease; }
.ws-quick a:hover .ws-arrow { transform: translateX(2px); }
[dir="rtl"] .ws-quick a:hover .ws-arrow { transform: scaleX(-1) translateX(2px); }
@media (min-width: 600px) { .ws-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- mirrored arrows in RTL ---------- */
[dir="rtl"] .ws-arrow { transform: scaleX(-1); }
