/* What the backend needs that the design didn't have yet (spec 14). Kept small, in the design's own colours and
   sizes. The visual artist may restyle any of it; the classes must stay, because the pages and scripts use them. */

/* Controls that work only with the scripts (the Apply wizard's step buttons): hidden until site.js runs. */
html:not(.js) .js-only { display: none !important; }

/* For screen readers only: the text is read out, not shown. */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Groups of fields on the longer forms (Apply). */
form fieldset { border: 0; padding: 0; margin: 0 0 12px; min-width: 0; }
form legend { font-size: 16px; font-weight: 700; margin-bottom: 14px; padding: 0; color: var(--ink); }
label small { font-weight: 400; color: var(--muted); }

/* A website editor's draft preview. */
.preview-bar { margin: 0; padding: 10px 16px; background: var(--orange); color: #fff; font-weight: 700; text-align: center; }

/* The reference code after applying: large, easy to copy down. */
.success-panel .reference { font-size: 28px; font-weight: 800; letter-spacing: 1px; }

/* The server's message when it turned a form away: focused and read out (role="alert"). */
.form-error:focus { outline: 3px solid var(--orange); outline-offset: 2px; }

/* The student portal's sections, in the look of the programme filter tabs. */
.portal-tabs { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.portal-tabs a { background: #fff; border: 1px solid var(--line); border-radius: 5px; padding: 11px 20px; color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: none; }
.portal-tabs a[aria-current="page"] { background: var(--orange); border-color: var(--orange); }
.portal-signout { margin-top: 24px; }
.portal-facts { margin: 0; }
.qr svg { width: 220px; height: 220px; background: #fff; }

/* Accessibility (spec 14, R3: WCAG 2.2 AA, contrast at least 4.5:1 for text). The design's bright orange (#ff7010)
   behind white text measures 2.77:1, and its orange labels on white 3.36:1: too faint for many people to read.
   One deeper orange fixes both: 5.2:1 with white text, 4.7 to 5.2:1 as text on white and pale blue. The bright orange
   stays wherever it is decoration, or sits on navy, where it already passes. The visual artist may choose another
   shade, as long as `npm run check:site` (frontend/) still passes. */
:root { --orange-readable: #c2410c; }
.button:not(.secondary) { background: var(--orange-readable); border-color: var(--orange-readable); }
.button:not(.secondary):hover { background: #9a3412; border-color: #9a3412; }
.eyebrow { color: var(--orange-readable); }  /* labels on navy keep their brighter orange (styles.css, more specific) */
.step-number { background: var(--orange-readable); }
/* Links people tap must be at least 24px tall (WCAG 2.2, 2.5.8 target size). */
.help-panel a { display: flex; align-items: center; min-height: 28px; }
