/* OSA's overrides, loaded after DTT's app.css (which is never edited).

   Carried over from the prototype's mock.css (Documents\Claude\Online Safety
   Audit\mockup\mock.css, 17 Nov 2026), in its order and with its comments,
   leaving out only what exists for the demo: the demo bar (.mock-strip,
   .mock-tools, #demo-tab) and the simulated email (.demo-email). Rules for
   screens later tickets build are here already, so those tickets add markup
   rather than styles. Anything OSA adds beyond the prototype goes at the end,
   under its own heading.

   The prototype marks its page with body[data-page] and its content column with
   #app; here they are body.page-landing (the landing page's body class) and the
   body's .container, so `body:not([data-page="landing"]) #app` reads
   `body:not(.page-landing) > .container`. */

/* DTT ships .notice / .notice-success / .notice-warning in app.css. The audit
   needs two more things from the same component rather than five hand-built
   callouts: an informational tone, and a variant that can carry a heading and a
   button. Red is reserved for "not in place", so a positive milestone uses the
   success tone and never the brand accent. */
.notice-info { background: var(--well); border-left-color: var(--border); color: var(--ink); }
.notice-act { padding: 16px 18px; }
.notice-act h3 { font-size: 18px; margin: 0 0 6px; }
.notice-act p { margin: 0 0 12px; font-size: 14px; }
.notice-act .toolbar { display: flex; flex-wrap: wrap; gap: 8px; }
.notice-act .btn { margin-top: 0; }

/* Validation sits next to the field it is about. */
.field-error { font-size: 14px; font-weight: 600; color: #b3312d; margin: 6px 0 0; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #b3312d; }

.phase-tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--term-tint); color: var(--term-ink); white-space: nowrap; vertical-align: 2px; }
.meta { font-size: 14px; color: var(--muted); }
.eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 6px; }
h2 .sub { color: var(--muted); font-weight: 400; font-size: 18px; }

textarea, input[type=date] { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 16px; font-family: inherit; background: #fff; line-height: 1.5; }
textarea { min-height: 84px; resize: vertical; }
textarea:focus, input[type=date]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(230,0,0,0.15); }

/* Rating: three choices, each with its own icon and words, never colour alone */
.rag { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (max-width: 620px) { .rag { grid-template-columns: 1fr; } }
.rag label { margin: 0; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 600; cursor: pointer; background: #fff; }
.rag input { position: absolute; opacity: 0; width: 0; height: 0; }
.rag label:hover { background: var(--surface); }
.rag-ic { width: 24px; height: 24px; border-radius: var(--radius-sm); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; flex-shrink: 0; }
.fully .rag-ic, .chip.fully .rag-ic { background: var(--score-pos); }
.partial .rag-ic { background: var(--score-zero); color: #3d2f00; }
.not .rag-ic { background: var(--score-neg); }
.rag label.fully:has(input:checked) { border-color: var(--score-pos); background: #e7f4ec; box-shadow: inset 0 0 0 1px var(--score-pos); }
.rag label.partial:has(input:checked) { border-color: var(--score-zero); background: #fbf3da; box-shadow: inset 0 0 0 1px var(--score-zero); }
.rag label.not:has(input:checked) { border-color: var(--score-neg); background: #fbeae9; box-shadow: inset 0 0 0 1px var(--score-neg); }

.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.chip.fully { background: #e7f4ec; color: var(--score-pos); }
.chip.partial { background: #fbf3da; color: #7a5b00; }
.chip.not { background: #fbeae9; color: #b3312d; }
.chip.none { background: var(--well); color: var(--muted); }
.chip.info { background: #e3f0f7; color: #075a84; }

/* A row of the audit: closed it is one line, open it is the whole form */
details.row-card { padding: 0; }
details.row-card > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 16px 20px; }
details.row-card > summary::-webkit-details-marker { display: none; }
details.row-card > summary .row-title { flex: 1; min-width: 0; font-weight: 600; }
details.row-card > summary::after { content: "\25be"; color: var(--muted); }
details.row-card[open] > summary { border-bottom: 1px solid var(--line); }
details.row-card[open] > summary::after { content: "\25b4"; }
.row-body { padding: 24px 32px 28px; }
@media (max-width: 560px) { .row-body { padding: 20px; } }
.row-body h4 { font-size: 16px; margin: 22px 0 8px; }
.row-body h4:first-child { margin-top: 0; }

/* The rating group. A real fieldset, so the legend names which item is being
   rated instead of leaving 61 anonymous radio groups on one page; the legend is
   dressed to match the h4s around it so nothing changes visually. */
/* Usually the first thing in an open item, where the card's own padding is space
   enough; the margin is for the items that carry a note or a reworded notice. */
.rag-set { border: 0; padding: 0; margin: 18px 0 4px; min-width: 0; }
.row-body > .rag-set:first-child { margin-top: 0; }
.rag-set > legend { font-size: 16px; font-weight: 700; padding: 0; margin-bottom: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

.prompts { list-style: none; border: 1px solid var(--line); border-radius: var(--radius); }
.prompts li { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.5; }
.prompts li:first-child { border-top: 0; }
.prompts li > span:first-child { flex: 1; }
.tick { display: inline-flex; gap: 4px; flex-shrink: 0; }
.tick button { font: inherit; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--border); background: #fff; color: var(--muted); cursor: pointer; }
.tick button.on.ok { background: #e7f4ec; border-color: var(--score-pos); color: var(--score-pos); }
.tick button.on.gap { background: #fbeae9; border-color: var(--score-neg); color: #b3312d; }

.panel { border-radius: var(--radius); padding: 14px 16px; font-size: 14px; line-height: 1.55; margin-top: 12px; }
.panel.guide { background: var(--surface); border: 1px solid var(--line); }
.panel.lgfl { background: #eef5f9; border-left: 4px solid #076a9c; }
.panel.trust { background: #f3f0fa; border-left: 4px solid #6b4fa3; }
.panel ul { margin: 6px 0 0 18px; }
.panel .btn { margin-top: 10px; }
details.fold > summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--muted); margin-top: 14px; }
details.fold > summary:hover { color: var(--ink); }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.fields .wide { grid-column: 1 / -1; }
@media (max-width: 620px) { .fields { grid-template-columns: 1fr; } }

.history { list-style: none; margin-top: 8px; font-size: 14px; }
.history li { padding: 8px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 150px 1fr; gap: 12px; }
.history li:first-child { border-top: 0; }
.history .when { color: var(--muted); }
@media (max-width: 560px) { .history li { grid-template-columns: 1fr; gap: 0; } }

/* Stacked rating bar and its key */
.stack { display: flex; height: 16px; border-radius: 999px; overflow: hidden; background: var(--line); gap: 2px; }
.stack span { display: block; }
.stack .f { background: var(--score-pos); } .stack .p { background: var(--score-zero); } .stack .n { background: var(--score-neg); }
.stack.sm { height: 10px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 16px; margin-bottom: 18px; }
.stat-num { font-size: 30px; font-weight: 700; line-height: 1.1; }

.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); padding: 8px 10px; border-bottom: 2px solid var(--line); white-space: nowrap; }
table.data td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.overdue { color: #b3312d; font-weight: 700; }

.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.toolbar .btn { margin-top: 0; }
.title-bar { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }

/* Content editor */
.edit-prompt { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.edit-prompt .grip { color: var(--muted); cursor: grab; }
.diff del { background: #fbeae9; color: #8f2925; text-decoration: line-through; }
.diff ins { background: #e7f4ec; color: #155724; text-decoration: none; }

#toast { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 8px; font-size: 14px; max-width: min(560px, calc(100vw - 32px)); opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; z-index: 2000; box-shadow: 0 6px 20px rgba(0,0,0,0.25); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
.chip.trust { background: #ece6f7; color: #4d3685; }
.flags { display: inline-flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.flags:empty { display: none; }
.prompts li.head { background: var(--surface); font-weight: 700; }
.gpara { display: flex; gap: 12px; align-items: flex-start; padding: 6px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.gpara:first-child { border-top: 0; padding-top: 0; }
.gpara > span { flex: 1; min-width: 0; }
.gpara .link-btn { font-size: 14px; white-space: nowrap; flex-shrink: 0; }
.notice .link-btn { margin-left: 6px; }
.edit-prompt .grip { cursor: default; min-width: 1.6em; text-align: right; font-size: 14px; }
.edit-prompt input { flex: 1; }
.modal-box textarea, .modal-box select, .modal-box input { margin-bottom: 4px; }
.q-save.toolbar { margin-left: auto; }
.q-save.toolbar .btn { padding: 8px 16px; }
@media print {
  .sticky-actions, .toolbar, .site-footer, #toast, #clone, .phase-tag, header .header-side-right { display: none !important; }
  .card { box-shadow: none; break-inside: avoid; }
}

/* ===== The way in: header links, the simulated email ===== */
header a.account-button { text-decoration: none; }
header button.account-button { background: none; font-family: inherit; }
.header-side-right { gap: 8px; }
@media (max-width: 560px) { header a.account-button { max-width: 150px; overflow: hidden; text-overflow: ellipsis; } }
.page-landing .hero-gradient { padding-bottom: 40px; }
.page-landing .landing-bg { margin-bottom: 0; }
.page-landing .container { padding-bottom: 0; }

/* ===== Key checks and discussion prompts ===== */
.tick button { min-width: 54px; padding: 5px 10px; font-size: 14px; }
.tick button:focus-visible, .rag label:has(input:focus-visible) { outline: 3px solid rgba(33,37,41,0.45); outline-offset: 2px; }
.tick button.on.yes { background: #e7f4ec; border-color: var(--score-pos); color: var(--score-pos); }
.tick button.on.partly { background: #fbf3da; border-color: var(--score-zero); color: #7a5b00; }
.tick button.on.no { background: #fbeae9; border-color: var(--score-neg); color: #b3312d; }
.tick button:disabled { cursor: default; opacity: 0.7; }
@media (max-width: 560px) { .prompts li { flex-direction: column; gap: 8px; } }
ul.talk { margin: 0 0 0 20px; font-size: 16px; line-height: 1.5; color: #3d444b; }
ul.talk li { padding: 3px 0; }
ul.talk li.head { list-style: none; margin-left: -20px; font-weight: 700; color: var(--ink); padding-top: 8px; }
.edit-prompt .keyc { display: inline-flex; align-items: center; gap: 5px; margin: 0; font-weight: 400; font-size: 14px; white-space: nowrap; }
.edit-prompt .keyc input { width: auto; margin: 0; flex: none; }

/* ===== Required vs recommended, and Not applicable ===== */
.chip.na { background: var(--well); color: #4a5056; }
.chip.na .rag-ic, .rag label.na .rag-ic { background: #8b9299; }
.stack .x { background: #c9ced3; }
.rag.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .rag.four { grid-template-columns: repeat(2, 1fr); } }
.rag label.na:has(input:checked) { border-color: #8b9299; background: var(--well); box-shadow: inset 0 0 0 1px #8b9299; }
.na-why { margin-top: 12px; }
.na-why[hidden] { display: none; }
.na-why label { margin-top: 0; }
.req-split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 18px; }
@media (max-width: 620px) { .req-split { grid-template-columns: 1fr; gap: 12px; } }
.group-head { margin-bottom: 4px; }
.group-head .eyebrow { display: flex; align-items: center; gap: 8px; }
.group-head .chip { text-transform: none; letter-spacing: 0; }
.group-head .meta { margin-bottom: 10px; }

/* Your Audits: one list, grouped by school, the way DTT lists assessments. */
/* The home page's welcome card, laid out as DTT's: name and Edit, the address,
   then two counts on the left and two dates on the right. */
.welcome-bar { align-items: center; margin-bottom: 16px; }
.welcome-bar h2 { margin-bottom: 0; }
.welcome-card { padding: 24px 26px; margin-bottom: 0; }
body:not(.page-landing) > .container .welcome-name { font-size: 22px; margin-bottom: 2px; }
.welcome-edit { font-size: 14px; margin-left: 8px; text-decoration: underline; color: var(--muted); }
.welcome-edit:hover { color: var(--ink); }
.welcome-as { font-size: 14px; color: var(--muted); margin-bottom: 20px; overflow-wrap: anywhere; }
.welcome-as strong { color: var(--ink); }
.welcome-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; }
.welcome-stats { display: flex; gap: 12px 24px; flex-wrap: wrap; }
.welcome-stat { display: flex; align-items: center; gap: 10px; }
.welcome-stat strong { display: block; font-size: 18px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.welcome-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.welcome-ico { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.welcome-ico.is-progress { background: var(--warning-bg); color: #7a5b00; }
.welcome-ico.is-done { background: var(--success-bg); color: var(--success-text); }
.welcome-dates { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); }
.welcome-dates span { display: inline-flex; align-items: center; gap: 6px; }
.welcome-dates strong { color: var(--ink); }
.audit-group { margin-top: 24px; }
.audit-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.audit-group h3 { font-size: 18px; margin: 0; }
/* Remove, on a school with no audit: the delete colour, as a card's Delete. */
.audit-group-head .school-remove { display: inline-flex; align-items: center; gap: 5px; flex: none; font-size: 14px; color: var(--accent); }
.audit-group-head .school-remove:hover { color: var(--accent-dark); }
.school-remove svg { width: 1.1em; height: 1.1em; flex: none; }
.audit-group h3 .sub { color: var(--muted); font-weight: 400; font-size: 16px; }
.audit-group .card { margin-bottom: 0; }
.badge { display: inline-block; background: var(--surface); border: 1px solid var(--line); color: var(--muted); padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; vertical-align: 2px; }

/* Results: the answer list and its filter bar, reusing DTT's classes. */
.answer-row.rated { grid-template-columns: 150px minmax(0, 1fr); }
.answer-row.rated > .chip { align-self: start; justify-content: center; }
@media (max-width: 620px) { .answer-row.rated { grid-template-columns: minmax(0, 1fr); row-gap: 8px; } }
.answer-domain .domain-name { font-weight: 700; }
.fbtn-sw.sw-fully { background: var(--score-pos); }
.fbtn-sw.sw-partial { background: var(--score-zero); }
.fbtn-sw.sw-not { background: var(--score-neg); }
.fbtn-sw.sw-na { background: #c9ced3; }
.fbtn-sw.sw-unanswered { background: var(--line); box-shadow: inset 0 0 0 1px #c9ced3; }
/* .answer-row is display:grid, which would otherwise beat the UA's [hidden] rule
   and leave filtered-out rows on screen. */
.answer-row[hidden] { display: none; }
/* A section row is the section list and the way into its answers at once: name,
   bar, counts in words, and the open/close marker app.css adds as ::after. */
#answers-card .answer-group + .answer-group { margin-top: 20px; }
#answers-card .answer-group > .eyebrow { margin-bottom: 2px; }
#answers-card .answer-group > .answer-domain:first-of-type { border-top: 0; }
#answers-card .answer-domain > summary { display: grid; grid-template-columns: minmax(0, 1fr) 140px 230px 14px; gap: 14px; align-items: center; padding: 11px 0; font-size: 16px; }
#answers-card .sec-mix { font-weight: 400; }
/* One square per item, in the colours of the summary bar. The counts in words
   beside it carry the meaning, so the squares are hidden from screen readers. */
.pips { display: flex; flex-wrap: wrap; gap: 3px; }
.pips i { width: 14px; height: 14px; border-radius: 2px; background: var(--line); box-shadow: inset 0 0 0 1px #9aa1a8; }
.pips .f { background: var(--score-pos); box-shadow: none; } .pips .p { background: var(--score-zero); box-shadow: none; }
.pips .n { background: var(--score-neg); box-shadow: none; } .pips .x { background: #8b9299; box-shadow: none; }
@media (max-width: 860px) {
  #answers-card .answer-domain > summary { grid-template-columns: minmax(0, 1fr) 14px; gap: 6px 14px; }
  #answers-card .answer-domain > summary > .domain-name { grid-column: 1; grid-row: 1; }
  #answers-card .answer-domain > summary::after { grid-column: 2; grid-row: 1; }
  #answers-card .answer-domain > summary > .pips, #answers-card .sec-mix { grid-column: 1 / -1; text-align: left; }
}

/* ---- results: summary tiles and the action plan ---- */
.res-meta .chip { margin: 0 6px; font-size: 12px; padding: 2px 9px; }
/* The card at the top says each number once (ticket 48): the headline counts the
   key requirements fully in place, the bar and its key the rest, and two tiles
   lead to the plan. The headline's selector outranks the page's h3 size. */
.res-lead { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 28px; }
.res-lead > .res-words { flex: 1 1 420px; min-width: 0; }
.res-lead .res-words .res-headline { font-size: 22px; line-height: 1.2; margin: 0 0 18px; }
.res-tiles { flex: 1 1 320px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-content: start; }
.res-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 18px; border-radius: var(--radius); background: var(--bg); color: var(--ink); text-decoration: none; }
.res-tile:hover { filter: brightness(0.97); }
.res-n { font-size: 30px; font-weight: 700; line-height: 1; }
.res-l { font-weight: 700; font-size: 14px; }
.stack .u { background: var(--line); box-shadow: inset 0 0 0 1px #9aa1a8; }
.res-tile.is-late { background: #fbeae9; }
.res-tile.is-late .res-n { color: #b3312d; }
.res-key { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 12px; font-size: 14px; }
.res-key > span { display: inline-flex; align-items: center; gap: 6px; }
.res-key .fbtn-sw { width: 12px; height: 12px; border-radius: 2px; }
.plan-group + .plan-group { margin-top: 14px; }
.plan-row[hidden] { display: none; }
.plan-head { padding: 8px 12px; border-radius: var(--radius-sm); background: var(--bg); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.plan-head.is-late { background: #fbeae9; color: #9c2622; }
.plan-row { display: grid; grid-template-columns: 112px minmax(0, 1fr) 150px 96px; gap: 4px 20px; align-items: start; padding: 12px; border-bottom: 1px solid var(--line); font-size: 16px; }
.plan-group .plan-row:last-child { border-bottom: 0; }
.plan-main .chip { font-size: 12px; padding: 1px 8px; vertical-align: 1px; }
.plan-due { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) {
  .plan-row { grid-template-columns: minmax(0, 1fr) auto; }
  .plan-rate, .plan-main { grid-column: 1 / -1; }
}
@media print { .plan-row { break-inside: avoid; } .res-tile { border: 1px solid #c9ced3; } }

/* The action plan in priority order (ticket 49): key requirements first, each
   with its source written on the row; an overdue date says by how much; a long
   group folds after five rows (the script adds the button, so with no script
   every row shows, and print shows them all); and what would make the plan weak
   is counted above it. */
.plan-gaps { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: baseline; border: 1px solid var(--border); box-shadow: none; padding-top: 18px; padding-bottom: 18px; }
.plan-gaps > strong { flex: 0 0 auto; }
.plan-gaps > span { font-size: 16px; }
.plan-top { display: flex; flex-wrap: wrap; gap: 10px 16px; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.plan-top h3 { margin: 0; }
.plan-top .answer-filter { margin: 0; }
.plan-note { font-size: 16px; color: var(--muted); margin: 0 0 18px; }
.plan-head.is-key { background: #e8eef7; color: #2c4a7c; }
.plan-src { font-size: 14px; color: #2c4a7c; margin-top: 2px; }
/* A row opens where it is to show what was recorded and the item's guidance
   (a <details>: the title, source and action are its summary, so the whole of
   the row's words opens it). Closed, it reads as the row always did. */
.plan-title, .plan-src, .plan-act { display: block; }
.plan-title { font-weight: 700; color: var(--ink); }
.plan-item > summary { list-style: none; cursor: pointer; position: relative; padding-right: 26px; }
.plan-item > summary::-webkit-details-marker { display: none; }
.plan-item > summary::after { content: "\25be"; position: absolute; top: 0; right: 4px; color: var(--muted); }
.plan-item[open] > summary::after { content: "\25b4"; }
.plan-item > summary:hover .plan-title { text-decoration: underline; }
.plan-item > summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: var(--radius-sm); }
/* The opened part runs the full width of the row: it sits in the words' column,
   so it reaches back over the rating column (112px + the 20px gap) and on over
   the owner and date columns (150px + 96px + two gaps). Stacked (below 760px)
   the words already span the row. */
.plan-body { margin: 12px -286px 0 -132px; }
@media (max-width: 760px) { .plan-body { margin-left: 0; margin-right: 0; } }
.plan-body { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: 16px; }
.plan-body h4 { font-size: 14px; margin: 16px 0 6px; }
.plan-body h4:first-child { margin-top: 0; }
.plan-body p { margin: 0; overflow-wrap: anywhere; }
.plan-body .plan-open { margin-top: 16px; font-size: 14px; text-align: right; }
.plan-late { display: block; font-size: 14px; font-weight: 700; color: #b3312d; }
.plan-more { background: none; border: 0; padding: 10px 12px; font: inherit; font-size: 16px; color: var(--ink); text-decoration: underline; cursor: pointer; }
.plan-more[hidden] { display: none; }
/* The report switch and the view switch share one row (ticket 52). */
.res-switches { display: flex; flex-wrap: wrap; gap: 0 28px; align-items: center; }

/* The governor report (ticket 52): a one-page summary, then the whole plan on
   a new page, then every answer by section. As the prototype's mock.css. */
.gov-report { padding: 36px 40px; }
.gov-report > section + section { margin-top: 28px; }
.gov-head { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; align-items: flex-end; border-bottom: 3px solid var(--ink); padding-bottom: 16px; }
.card.gov-report .gov-head h2 { margin: 0; font-size: 22px; }   /* outranks the page's h2 size */
.gov-head > p { text-align: right; margin: 0; }
.gov-report h3.gov-h-tight { margin-bottom: 2px; }
.gov-lead { margin-bottom: 10px; }
.gov-after { margin-top: 10px; }
.gov-summary { font-size: 18px; line-height: 1.5; margin: 0; }
.gov-src { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.gov-src > strong { flex: 1 1 250px; }
.gov-src > .stack { flex: 2 1 280px; height: 14px; }
.gov-src > span { flex: 1 1 260px; font-size: 14px; }
.gov-two { display: flex; flex-wrap: wrap; gap: 24px; }
.gov-two > div { flex: 1 1 340px; min-width: 0; }
.gov-box { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.gov-box.is-soft { border: 0; background: var(--bg); }
.gov-box h3, .gov-two h3 { margin: 0 0 6px; }
.gov-dl { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 8px 16px; font-size: 16px; margin: 12px 0 0; }
.gov-dl dt { color: var(--muted); }
.gov-dl dd { margin: 0; }
.gov-bar { display: flex; gap: 12px; align-items: center; padding: 4px 0; font-size: 16px; }
.gov-bar > span:first-child { flex: 0 0 52%; }
.gov-bar > i { flex: 1 1 auto; height: 12px; background: var(--well); border-radius: var(--radius-sm); overflow: hidden; }
.gov-bar > i > b { display: block; height: 12px; background: #484848; }
.gov-bar > strong { flex: 0 0 22px; text-align: right; font-variant-numeric: tabular-nums; }
.gov-top { display: grid; grid-template-columns: 26px minmax(0, 1fr) 150px 150px; gap: 4px 20px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 16px; }
.gov-top > b { font-size: 18px; line-height: 1.2; }
.gov-top .gov-why { font-size: 14px; color: var(--muted); margin-top: 2px; }
.gov-top .plan-due { text-align: right; }
.gov-list { margin: 0; padding-left: 20px; font-size: 16px; }
.gov-list li + li { margin-top: 8px; }
.gov-foot { border-top: 1px solid var(--border); padding-top: 16px; display: flex; flex-wrap: wrap; gap: 14px 40px; font-size: 16px; }
.gov-foot > div { flex: 1 1 220px; }
#plan.gov-plan > h3 { margin-bottom: 4px; }
@media (max-width: 760px) {
  .gov-report { padding: 22px 18px; }
  .gov-head > p { text-align: left; }
  .gov-top { grid-template-columns: 26px minmax(0, 1fr); }
  .gov-top > div:nth-child(n+3) { grid-column: 2; text-align: left; }
  .gov-top .plan-due { text-align: left; }
}
@media print {
  .res-switches { display: none !important; }
  .gov-top, .gov-src, .gov-box { break-inside: avoid; }
  .gov-report h3 { break-after: avoid; }
  .gov-report { box-shadow: none; padding: 0; }
  .gov-plan { box-shadow: none; padding: 0; break-before: page; break-inside: auto; }
  /* The summary is the first page on paper (ticket 52): the same layout set
     smaller, the two-box rows kept side by side, the desktop rows kept (a
     printed page is narrower than 760px), and free to start straight under
     the heading rather than be pushed whole onto page two. The summary's own
     head names the school and the report, so the page's title bar stays off
     paper and the LGfL line above it is smaller. On A4 the prototype's sample
     audit (23 actions over 14 sections) fills the page exactly. */
  .title-bar.is-gov-report { display: none; }
  .print-only.print-brand.is-gov-report { margin-bottom: 8px; font-size: 12px; }
  .print-brand.is-gov-report img { height: 26px; }
  .card.gov-report { break-inside: auto; font-size: 11px; }
  .gov-report > section + section { margin-top: 6px; }
  .card.gov-report .gov-head h2 { font-size: 18px; }
  .gov-head { padding-bottom: 6px; border-bottom-width: 2px; }
  .gov-report .gov-head > p { text-align: right; }
  .container .card.gov-report h3 { font-size: 12px; margin-bottom: 2px; }
  .gov-summary { font-size: 12px; line-height: 1.35; }
  .gov-report .meta, .gov-lead { font-size: 10px; margin-bottom: 2px; }
  .gov-src { padding: 2px 0; gap: 2px 12px; flex-wrap: nowrap; }
  .gov-src > strong { flex: 0 0 32%; font-size: 10px; }
  .gov-src > .stack { flex: 0 0 24%; height: 8px; }
  .gov-src > span { flex: 1 1 auto; font-size: 10px; }
  .gov-two { flex-wrap: nowrap; gap: 12px; }
  .gov-two > div { flex: 1 1 0; }
  .gov-box { padding: 6px 8px; }
  .gov-dl { font-size: 10.5px; gap: 1px 10px; grid-template-columns: 90px minmax(0, 1fr); margin-top: 4px; }
  .gov-bar { font-size: 9.5px; padding: 0; gap: 8px; line-height: 1.12; }
  .gov-bar > span:first-child { flex-basis: 64%; }
  .gov-bar > i, .gov-bar > i > b { height: 6px; }
  .gov-top { font-size: 10.5px; line-height: 1.3; padding: 2px 0; grid-template-columns: 16px minmax(0, 1fr) 90px 90px; gap: 0 10px; }
  .gov-top > b { font-size: 13px; }
  .gov-top > div:nth-child(n+3) { grid-column: auto; }
  .gov-top .plan-due { text-align: right; }
  .gov-top .gov-why, .gov-top .plan-late { font-size: 10px; margin-top: 0; }
  .gov-list { font-size: 10px; line-height: 1.35; }
  .gov-list li + li { margin-top: 1px; }
  .gov-foot { font-size: 10.5px; padding-top: 4px; gap: 4px 40px; }
  .gov-report .eyebrow { margin-bottom: 0; }
}
@media print {
  .plan-more, .plan-body, .plan-item > summary::after { display: none !important; }
  .plan-item > summary { padding-right: 0; }
  .plan-row[hidden] { display: grid !important; }
  .plan-head { break-after: avoid; }
}

/* The guidance editor: a small toolbar over a contenteditable box. */
.rte { border: 1px solid #ccd0d4; border-radius: 8px; overflow: hidden; background: #fff; margin-bottom: 6px; }
.rte-bar { display: flex; gap: 2px; padding: 5px 6px; background: #f6f7f9; border-bottom: 1px solid #e6e9ed; }
.rte-bar button { border: 1px solid transparent; background: none; border-radius: 5px; padding: 3px 9px; font-size: 14px; font-family: inherit; color: var(--ink); cursor: pointer; min-width: 32px; }
.rte-bar button:hover { background: #fff; border-color: #ccd0d4; }
.rte-box { padding: 10px 12px; min-height: 130px; font-size: 15px; line-height: 1.55; outline: none; }
.rte-box:focus { box-shadow: inset 0 0 0 2px var(--accent); }
.rte-box p { margin: 0 0 8px; }
.rte-box p:last-child { margin-bottom: 0; }
.rte-box ul, .rte-box ol { margin: 0 0 8px 20px; }
.rte-box:empty::before { content: attr(data-placeholder); color: var(--muted); }
.rte-small .rte-box { min-height: 84px; }
.gpara > .gtext { flex: 1; min-width: 0; }
.gpara > .gtext ul, .gpara > .gtext ol { margin: 4px 0 0 20px; }

/* Sign-off: completed-by recorded at finalise, approval after it. */
.sign-off { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; }
.sign-off > div > p { margin: 2px 0 0; }
@media (max-width: 620px) { .sign-off { grid-template-columns: 1fr; gap: 16px; } }

/* A section's topics: one panel with hairline rows, not a stack of rounded cards.
   A rated topic carries its colour on the left edge, so the RAG reads down the page. */
.row-list { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; }
.row-list details.row-card { margin: 0; border: 0; border-radius: 0; box-shadow: none; border-top: 1px solid var(--line); }
.row-list details.row-card:first-child { border-top: 0; }
/* An open item is white, as a card is: on --surface it washed out against the
   page (James, 22 Nov 2026). Its heading keeps --well. */
.row-list details.row-card[open] { background: white; }
.row-list details.row-card > summary { border-left: 4px solid transparent; padding-left: 18px; }
.row-list details.row-card > summary:hover { background: var(--surface); }
.row-list details.row-card:has(> summary .chip.fully.rating) > summary { border-left-color: var(--score-pos); }
.row-list details.row-card:has(> summary .chip.partial.rating) > summary { border-left-color: var(--score-zero); }
.row-list details.row-card:has(> summary .chip.not.rating) > summary { border-left-color: var(--score-neg); }
.row-list details.row-card:has(> summary .chip.na.rating) > summary { border-left-color: #c9ced3; }
.row-list .row-body { padding-left: 22px; }
@media print { .row-list { box-shadow: none; } }

/* The overview says how far through you are; the breakdown lives on the results. */
.progress-line { margin: 0 0 20px; }
.progress-line .meter { margin-bottom: 6px; }

/* The line that says where the rest of the audit has gone. */
.rest-note { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 16px; }
.rest-note p { margin: 0; }

/* The New Audit menu: a details disclosure, like the account menu. */
.drop { position: relative; display: inline-block; }
.drop > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.drop > summary::-webkit-details-marker { display: none; }
.drop-panel { position: absolute; right: 0; top: calc(100% + 4px); min-width: 290px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 4px 12px rgba(0,0,0,0.12); overflow: hidden; z-index: 60; }
.drop-item { display: block; width: 100%; text-align: left; padding: 10px 16px; background: none; border: 0; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; text-decoration: none; }
.drop-item:hover { background: var(--surface); }
.drop-last { border-top: 2px solid var(--line); }

/* ---- Alex's simplified audit: who answers each item, and what it comes from ---- */

/* The tags under an item's title: whether it is a key requirement, and the roles
   best placed to answer it. Small, quiet, and never the only way to read it. */
.row-tags { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-left: 10px; vertical-align: middle; }
.row-tags .chip { font-size: 12px; font-weight: 700; padding: 2px 8px; }
.chip.req-key { background: #e8eef7; color: #2c4a7c; }
.chip.req-good { background: var(--well); color: var(--muted); }
.chip.role { background: #eef1ec; color: #4a5a3f; }
.chip.role.on { background: #d8e3cf; color: #33421f; }
@media (max-width: 760px) { .row-tags { margin-left: 0; display: flex; margin-top: 6px; } }

details.row-card > summary .row-title { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; }
/* On the section page a Key requirement's source is in an "i" pop-up beside
   its chip (.info-btn and .info-pop are app.css's): close to the chip, and as
   wide as its words up to the usual width. */
.row-tags .src-info { align-items: center; margin-left: -2px; }
.row-tags .src-info .info-btn { padding: 0; }
.row-tags .src-info .info-pop { width: max-content; max-width: min(340px, 80vw); padding: 10px 14px; }
/* The "i" is inside the chip it explains (James, 30 Nov 2026): in the chip's
   own blue, sized to its 12px words, and the pop-up wraps where the chip's
   words never do. */
.chip .src-info { margin: 0 -3px 0 -1px; }
.chip .src-info .info-btn { color: inherit; }
.chip .src-info .info-btn svg { width: 14px; height: 14px; }
.chip .src-info .info-pop { white-space: normal; text-align: left; }
@media (max-width: 760px) { .row-tags { position: relative; } .row-tags .src-info { position: static; } }

/* The role filter. It changes what is listed, never what is counted. */
/* The role filter reuses the results page's chip row (.answer-filter / .fbtn). */
.role-filter { margin-bottom: 14px; }
.role-filter-label { font-size: 14px; font-weight: 600; color: var(--muted); margin-right: 4px; }
.role-answered { margin: -6px 0 22px; }

/* "Who needs to contribute": the role index from the front of the Word audit. */
table.data tr.on > td { background: #f3f7f0; }
.meter-sm { height: 6px; margin-bottom: 4px; max-width: 160px; }

/* The hint the audit gives about what to write in the evidence box. */
.field-hint { margin: -4px 0 6px; max-width: 70ch; }

/* The action plan builds itself from the items rated partly or not in place. */
table.action-plan td { vertical-align: top; }
table.action-plan .chip { font-size: 12px; padding: 2px 8px; }

/* The action shown under an answer in "Every answer". */
.answer-act { margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line); font-size: 14px; color: var(--muted); }
.answer-q .row-tags { margin-left: 8px; }

/* ---- Starting an audit: who you are, and how much of it you are doing ---- */

/* The nudge for somebody whose part in the audit nobody has set. */
.notice-info { background: var(--well); border-left-color: var(--border); color: var(--ink); }
.role-ask { margin-bottom: 16px; }

/* Ticking your roles. Two columns so eight of them do not make a tall list. */
.role-ticks label { display: block; }
@media (min-width: 560px) { .role-ticks { columns: 2; column-gap: 24px; } .role-ticks label { break-inside: avoid; } }

/* Basic or full: two stacked options, each with its own explanation, so the
   choice is made on what it means rather than on two bare words. */
.scope-choice { display: grid; gap: 10px; margin-bottom: 20px; }
.scope-opt { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; margin: 0; }
.scope-opt:hover { border-color: #adb5bd; background: var(--surface); }
.scope-opt:has(input:checked) { border-color: var(--accent); background: #fcfafa; }
.scope-opt input { margin-top: 3px; }
.scope-opt > span { display: block; }
.scope-opt strong { display: block; margin-bottom: 3px; }
.scope-opt .meta { display: block; margin: 0; }
.scope-card .scope-choice { margin-bottom: 18px; }

/* The roles against each person on the Sharing card. */
table.data .row-tags { margin: 5px 0 0; display: flex; }

/* How much of the audit is in play, as one switch. Flipping it asks first. */
.scope-toggle { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; cursor: pointer; margin: 0; font-weight: normal; }
.scope-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.scope-toggle .switch { position: relative; width: 42px; height: 24px; margin-top: 1px; border-radius: 999px; background: #c7ccd1; transition: background-color 0.15s; }
.scope-toggle .switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.3); transition: transform 0.15s; }
.scope-toggle input:checked + .switch { background: var(--accent); }
.scope-toggle input:checked + .switch::after { transform: translateX(18px); }
.scope-toggle input:focus-visible + .switch { outline: 3px solid rgba(230,0,0,0.3); outline-offset: 2px; }
.scope-toggle-text strong { display: block; }
.scope-toggle-text .meta { display: block; margin: 2px 0 0; }
.fbtn-more { color: var(--muted); font-weight: 600; }
.fbtn-more:hover { color: var(--ink); border-color: var(--ink); }

/* ---------------------------------------------------------------------------
   Contrast and focus. Everything here overrides app.css rather than editing it,
   so the DTT copy stays diffable against its source. Measured ratios are in the
   comments; the target is WCAG AA — 4.5:1 for body text, 3:1 for large text and
   for the borders that carry a control's state.
   --------------------------------------------------------------------------- */

:root {
  /* #d9534f measured 3.96:1 on white, and white on it measured 3.96:1 in the
     rating glyph. Brick red clears both and still reads as a different red from
     the LGfL accent sitting beside it. */
  --score-neg: #b3312d;
  /* #b8860b measured 3.25:1 on white. */
  --score-zero-text: #7a5b00;
}

/* The "not applicable" glyph was white on #8b9299 — 3.15:1 at 14px bold, which
   is not large text. --muted is already in the palette and clears 4.5:1. */
.chip.na .rag-ic, .rag label.na .rag-ic { background: var(--muted); }

/* State on a rating chip was carried by a 1px border: the amber measured 2.15:1
   and the unselected grey 1.32:1, against 3:1 for a UI component. A 2px border
   in a darker tone carries it, and the inset ring keeps the selected weight. */
.rag label { border-width: 2px; border-color: #8a9099; }
.rag label.fully:has(input:checked) { border-color: var(--score-pos); }
.rag label.partial:has(input:checked) { border-color: #8a6a00; }
.rag label.not:has(input:checked) { border-color: var(--score-neg); }
.rag label.na:has(input:checked) { border-color: #6b7177; }

/* Links inside the guidance panel sat at 4.49:1 on #f6f7f9 — 0.01 short. */
.panel.guide a, .panel.guide .link-btn { color: var(--accent-dark); }

/* Every focus ring in app.css is declared with alpha, which composites to
   between 1.84:1 and 2.72:1 on white. WCAG 2.2 asks 3:1 for a focus indicator,
   so these are solid. .fbtn had no rule at all, which left the densest set of
   controls in the app on the browser default. */
.btn:focus-visible,
.tick button:focus-visible,
.rag label:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
.fbtn:focus-visible,
details.row-card > summary:focus-visible,
details.fold > summary:focus-visible,
.link-btn:focus-visible,
a:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: var(--radius-sm); }
.account-button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* 20px at weight 300 is not large text, so white over the lower half of the hero
   gradient measured 3.77:1 against a 4.5:1 requirement. At 24px it is large text
   and the same white clears the 3:1 bar, with the gradient left as it is — it is
   shared LGfL landing chrome and matches fsm.lgfl.net exactly. */
.hero-lead { font-size: 24px; font-weight: 400; opacity: 1; }

/* The consequences of finalising, listed in the dialogue that does it. */
.consequences { margin: 0 0 18px; padding-left: 20px; font-size: 14px; line-height: 1.6; }
.consequences li { margin-bottom: 4px; }
/* In the revert dialogue the list sits under a full-size sentence, so it matches it. */
#dlg-revert .consequences { font-size: inherit; }

/* The action plan is the governor-facing deliverable, so it has to survive a
   phone. At 390px the table measured 759px inside a 269px scroller — about a
   third of it visible. Below 760px each row becomes a block and every cell
   names its own column from the data-label the markup carries. */
.action-plan tr.is-overdue > td { background: #fdf6ec; }
.action-plan .overdue { color: #b3312d; font-weight: 700; white-space: nowrap; }

@media (max-width: 760px) {
  .table-wrap { overflow-x: visible; }
  table.action-plan, .action-plan tbody, .action-plan tr, .action-plan td { display: block; width: auto; }
  .action-plan tr:first-child { display: none; }
  .action-plan tr { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 10px; }
  .action-plan tr.is-overdue { border-color: #e2b9a9; }
  .action-plan td { border: 0; padding: 4px 0; }
  .action-plan td::before {
    content: attr(data-label);
    display: block;
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--muted); margin-bottom: 2px;
  }
  .action-plan td[data-label="Item"]::before { display: none; }
  .action-plan td[data-label="Item"] { font-weight: 600; margin-bottom: 4px; }
  .action-plan tr.plan-group { border: 0; border-radius: 0; padding: 0; margin: 18px 0 10px; }
  .action-plan tr.plan-group th { display: block; padding: 0; border: 0; }
}
/* The rating is a heading over each group of actions rather than a column that
   read "Partly" on twenty rows out of twenty-three. */
.action-plan tr.plan-group th { padding: 20px 10px 8px; font-size: 16px; text-transform: none; letter-spacing: 0; color: var(--ink); border-bottom: 1px solid var(--line); }
.action-plan tr.plan-group .chip { font-size: 14px; padding: 3px 10px; }
.action-plan .plan-n { color: var(--muted); font-weight: 600; margin-left: 4px; }
.action-plan td .meta { font-size: 14px; margin-top: 2px; }

/* Statutory vs advisory. "Needed to finalise" used to borrow .chip.not, the red
   chip that means "this item is not in place" — two opposite meanings in one
   colour on one screen. It gets its own neutral chip. */
.chip.req { background: #e8eef7; color: #2c4a7c; }
.chip.req-key { border: 1px solid #aebfd6; }
.chip.req-good { background: transparent; color: var(--muted); font-weight: 600; padding-left: 0; padding-right: 0; }

/* The statutory source, named in the item body rather than squeezed into an
   11px pill in the summary row. */
.row-note { margin-bottom: 14px; }

/* A section row's summary at phone width: the title column was squeezed to
   122px by the rating and the review flag beside it, so one item ran 243px
   tall. Below 560px those drop under the title, which gets the full measure. */
@media (max-width: 560px) {
  .row-list details.row-card > summary { flex-wrap: wrap; row-gap: 8px; padding: 14px 16px; }
  .row-list details.row-card > summary .row-title { flex: 1 0 100%; }
  .row-list details.row-card > summary .flags,
  .row-list details.row-card > summary .rating { margin-left: 0; }
}

/* app.css hides the product name below 560px. That suits DTT, which is one
   product; here a person holds audits for several schools and the header is the
   only thing naming which tool they are in. */
@media (max-width: 560px) {
  .header-title { display: block; }
  .header-title h1 { font-size: 16px; line-height: 1.2; }
}

/* Two progress bars meant the same thing in two visual languages: a green
   .meter at the top of the overview and a black .q-track in the section bar.
   One meaning, one colour. */
.q-track-fill { background: var(--success); }

/* The hero illustration sat at a fixed 300px in a much taller field of red, so
   it read as a small island rather than part of the composition — but filling
   the measure made the hero most of the first screen. It sits smaller than
   either now, with the red band tightened around it, so the page starts sooner.
   The asset itself went from 830KB to 41KB at 720x507. */
.hero-image { height: auto; width: 100%; max-width: 260px; margin-top: 14px; margin-bottom: 16px; opacity: 1; }
@media (max-width: 1024px) { .hero-image { max-width: 230px; } }
@media (max-width: 560px) { .hero-image { max-width: 190px; margin-top: 12px; margin-bottom: 12px; } }

/* The hero was taking about three quarters of the first screen before any of
   the page showed. Tighter padding, a wider measure on the lead so it sets in
   two lines rather than three, and a smaller image bring the "How it works"
   band up into view. */
.page-landing .hero-gradient { padding-top: 32px; padding-bottom: 18px; }
.hero-lead { max-width: 700px; margin-bottom: 12px; }
/* The hero's own heading, not every h1 on the page: as ".page-landing h1" this
   also put 8px under the header's product name, which lifted it 4px above
   where DTT's sits (and above where it sits on every other page here). */
.page-landing .hero-gradient h1 { margin-bottom: 8px; }
@media (max-width: 560px) { .page-landing .hero-gradient { padding-top: 24px; padding-bottom: 12px; } }

/* The eyebrow label is declared independently in a dozen places across app.css,
   with letter-spacing drifting over .03–.08em and size over 11–13px. The ones
   that actually render are pinned to one scale here. */
.eyebrow, table.data th, .account-who-label, .cov-head, .glossary-heading {
  font-size: 12px; letter-spacing: 0.04em;
}

.shared-note { display: block; margin-top: 8px; }

/* Headings: the page title is app.css's 22px, as DTT; a card heading 18px. */
body:not(.page-landing) > .container h3 { font-size: 18px; }
body:not(.page-landing) > .container .notice-act h3 { font-size: 18px; }

/* The "Evidence, actions and owner" heading is gone — it named the three labels
   sitting directly under it. The fields keep the separation the heading used to
   give them. */
.row-body .fields { margin-top: 22px; }

/* Page top row: where you came from on the left, the audit's history on the
   right, so the log is one click away without sitting in the middle of the work. */
.page-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.page-top .back-link { margin-bottom: 0; }
/* A button in the row is the same box as a link in it: `font: inherit` took the
   page's line-height with it, which made the button 5px taller than the link
   beside it (James, 30 Nov 2026), so .back-link's own 1.2 is put back. The
   section page's Glossary button is a plain .back-link now, so its icon is
   sized here rather than by app.css's .glossary-open. */
button.back-link { font: inherit; font-size: 14px; line-height: 1.2; cursor: pointer; }
.back-link svg { width: 15px; height: 15px; }
.modal-box .history { max-height: 50vh; overflow: auto; }
/* A dialogue's search box, the same one the glossary panel wears. */
.modal-box input[type=search] { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 16px; font-family: inherit; }

/* A card's eyebrow row runs the full width, so its marker sits out at the right
   edge rather than crowding the label. Muted and outline only: it tells the two
   cards apart, it does not ask to be looked at. */
.group-head .eyebrow { justify-content: flex-start; }
.card-icon { margin-left: auto; color: #b4bac1; flex: none; }

/* The 70ch measure was set for a full-width page; inside a card the card is
   already the measure, so capping it again only wrapped a line early and left a
   ragged gap down the right-hand side. */
/* A role that has answered everything shows a tick instead of a fraction, so a
   finished part reads as finished without counting. */
.fbtn-n.is-done { color: var(--score-pos); }
.fbtn.active .fbtn-n.is-done { color: #fff; }


/* ---- Which item you are answering -----------------------------------------
   Open, a row's title sat at the same size and weight as the closed titles
   above and below it, and once the form had scrolled it went off the top of
   the window: the question you were answering was the one thing the page
   stopped saying. The open row's title now reads as a heading — larger, in
   full ink, on a band that separates it from the form — and that band rides
   the top of the window while you work down the item, so the question stays
   in front of you while you rate it and write your evidence. */
/* clip, not hidden, or the band cannot stick: hidden first for a browser
   without clip, the same pair app.css uses on body. */
.row-list { overflow: hidden; overflow: clip; }
.row-list details.row-card[open] > summary {
  position: sticky; top: 0; z-index: 3;
  background: #fff; border-bottom: 2px solid var(--border);
  padding-top: 15px; padding-bottom: 15px;
}
.row-list details.row-card[open] > summary:hover { background: #fff; }
/* The band was --well on a page barely lighter, under a rule lighter than
   itself, so it faded into the page (James, 30 Nov 2026). It is white now,
   over a 2px rule the grey of the list's own outline. */
/* The same header's alignment. The tags carried their beside-the-title margin
   onto their own line, 10px in from the title; the gap between the two is the
   title's now. And the rating and the arrow sat centred against title and tags
   together, level with neither: they sit on the title's line. */
.row-list details.row-card > summary { align-items: flex-start; }
.row-list details.row-card > summary .row-title { gap: 6px 10px; }
.row-list details.row-card > summary .row-tags { margin: 0; }
.row-list details.row-card > summary > .rating { margin-top: -1px; }
/* "Not yet rated" was a --well pill, invisible on the old band and faint on
   white: an outline says it is a gap still to fill. */
.row-list details.row-card > summary .chip.none.rating { background: #fff; border: 1px dashed #8a929a; padding-top: 2px; padding-bottom: 2px; }
details.row-card[open] > summary .row-title { font-size: 18px; font-weight: 700; line-height: 1.35; }
/* On a phone the band carries the title over two or three lines with the chip
   below it, which at 17px took an eighth of the screen away from the form it
   is there to serve. The title keeps the body size and the band tightens. */
@media (max-width: 560px) {
  .row-list details.row-card[open] > summary { padding-top: 11px; padding-bottom: 11px; }
  details.row-card[open] > summary .row-title { font-size: 16px; }
}

/* ===== Landing page =====================================================
   The chrome (red gradient, wave into a grey page, wave into the footer) is
   DTT's and fsm.lgfl.net's and comes from app.css. Between the two waves the
   page says as little as fsm does: one card, then three short claims. */

/* The illustration at the size the two reference sites carry theirs, with room
   under it so the wave crosses red rather than the table edge. */
.page-landing .hero-gradient { padding-top: 56px; padding-bottom: 64px; }
.page-landing .hero-image { max-width: 380px; margin-top: 26px; margin-bottom: 0; }
.page-landing .hero-lead { max-width: 620px; margin-bottom: 18px; }
@media (max-width: 1024px) { .page-landing .hero-image { max-width: 320px; } }
@media (max-width: 560px) {
  .page-landing .hero-gradient { padding-top: 30px; padding-bottom: 52px; }
  .page-landing .hero-image { max-width: 240px; margin-top: 18px; }
  .page-landing .hero-lead { font-size: 20px; }
}

.page-landing .band { padding: 28px 20px; }
.page-landing .band-inner { max-width: 920px; }
.page-landing .band.lp-first { padding-top: 56px; }
.page-landing .band.lp-close { padding-bottom: 64px; }
@media (max-width: 560px) { .page-landing .band { padding: 20px 16px; } .page-landing .band.lp-first { padding-top: 44px; } }

/* The opening card. */
.lp-card { background: #fff; border-radius: 10px; box-shadow: 0 4px 14px rgba(0,0,0,0.09); padding: 44px 40px 40px; text-align: center; }
.lp-card-title { font-size: clamp(26px, 1.2rem + 1.6vw, 38px); font-weight: 300; line-height: 1.2; margin-bottom: 12px; text-wrap: balance; }
.lp-card-title span { color: var(--accent); }
.lp-card-lead { font-size: 19px; font-weight: 300; color: #495057; max-width: 640px; margin: 0 auto 28px; line-height: 1.55; text-wrap: balance; }
.lp-gains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lp-gain { border: 1px solid var(--border); border-radius: 8px; padding: 20px 18px; }
.lp-gain h3 { font-size: 18px; margin: 0 0 6px; }
.lp-gain p { font-size: 15px; color: var(--muted); margin: 0; line-height: 1.5; }
.lp-card .btn { margin-top: 28px; padding: 12px 32px; font-size: 16px; }
@media (max-width: 760px) {
  .lp-card { padding: 30px 20px 24px; }
  .lp-gains { grid-template-columns: 1fr; gap: 10px; }
}

/* The card's three tiles are steps: DTT's number chip, centred over each. */
.lp-gain .step-num { margin: 0 auto 12px; }
.page-landing .band.lp-close { padding-top: 40px; }
.page-landing .lp-close .section-title { margin-bottom: 20px; }

/* ===== Content editor ====================================================
   One item at a time. The section and the item are two menus in a bar across
   the top, so the form has the whole width; the list of changes is behind a
   button in the header rather than under the form. */
.ed-head { align-items: flex-end; }
.ed-head .meta { margin: 0; }
.ed-count { font: inherit; font-size: 14px; font-weight: 700; padding: 7px 14px; border-radius: 20px; border: 1px solid var(--border); background: #fff; color: var(--ink); cursor: pointer; }
.ed-count:hover { border-color: var(--ink); }
.ed-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; padding: 14px 16px; margin-bottom: 16px; }
.ed-bar label { margin: 0 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.ed-pick { min-width: 0; }
.ed-pick-sec { flex: 1 1 260px; }
.ed-pick-item { flex: 2 1 340px; }
.ed-pick select { text-overflow: ellipsis; }
.ed-step { display: flex; gap: 6px; }
.ed-new { margin-left: auto; }
.ed-ic { font: inherit; font-size: 20px; line-height: 1; width: 42px; height: 42px; border-radius: 5px; border: 1px solid var(--border); background: #fff; color: var(--ink); cursor: pointer; flex: none; }
.ed-ic:hover:not(:disabled) { border-color: var(--ink); }
.ed-ic:disabled { opacity: 0.4; cursor: default; }
.ed-ic.ed-rm { color: var(--accent-dark); }
.ed-form .notice { margin-bottom: 16px; }
.ed-form input.ed-title { font-size: 18px; font-weight: 600; }
.ed-settings { display: flex; flex-wrap: wrap; gap: 18px 32px; margin-top: 20px; padding: 16px 18px; background: #f6f7f9; border-radius: 8px; }
.ed-settings .ed-grow { flex: 1 1 280px; min-width: 0; }
.ed-settings .ed-full { flex: 1 1 100%; }
.ed-lab, .ed-settings label.ed-lab { display: block; font-size: 13px; font-weight: 700; margin: 0 0 6px; }
.ed-na { display: flex; align-items: center; gap: 8px; min-height: 42px; margin: 0; font-weight: 400; font-size: 14px; }
.ed-na input { width: 18px; height: 18px; margin: 0; }
.ed-seg { display: inline-flex; }
.ed-seg button { white-space: nowrap; font: inherit; font-size: 14px; padding: 0 14px; height: 42px; border: 1px solid var(--border); background: #fff; color: var(--ink); cursor: pointer; }
.ed-seg button:first-child { border-radius: 5px 0 0 5px; }
.ed-seg button:last-child { border-radius: 0 5px 5px 0; border-left: 0; }
.ed-seg button[aria-pressed="true"] { background: #2c4a7c; border-color: #2c4a7c; color: #fff; font-weight: 700; }
.ed-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ed-pills button { font: inherit; font-size: 14px; padding: 0 14px; height: 38px; border-radius: 19px; border: 1px solid var(--border); background: #fff; color: var(--ink); cursor: pointer; }
.ed-pills button:hover { border-color: var(--ink); }
.ed-pills button[aria-pressed="true"] { background: #d8e3cf; border-color: #33421f; color: #33421f; font-weight: 700; }
.ed-pills button[aria-pressed="true"]::before { content: "\2713\00a0"; }
.ed-seg button:focus-visible, .ed-pills button:focus-visible, .ed-ic:focus-visible, .ed-count:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.ed-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 28px 0 8px; }
.ed-h h3 { margin: 0; }
.ed-form .edit-prompt { margin-top: 8px; }
.ed-form .edit-prompt input { margin: 0; }
.ed-addp { margin: 10px 0 0 calc(1.6em + 8px); border-style: dashed; }
.ed-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; padding-top: 18px; border-top: 1px solid #e6e9ed; }
.ed-foot select { width: auto; max-width: 100%; font-size: 14px; padding-top: 8px; padding-bottom: 8px; }
.modal-box.modal-wide { max-width: 920px; max-height: calc(100vh - 48px); overflow-y: auto; }
@media (max-width: 700px) {
  .ed-new { margin-left: 0; }
  .ed-step { margin-left: auto; }
}

/* ===== An audit's name and reference, in place of the year (16 Nov 2026) ===== */
/* DTT's shape: the name its owner gave it, then the reference in grey; the
   reference alone until it is named. */
.audit-ref { color: var(--muted); font-weight: 400; font-size: 14px; white-space: nowrap; }
.audit-name { margin: 0 0 6px; font-size: 16px; overflow-wrap: anywhere; }
.audit-rename { font-size: 14px; margin-left: 8px; text-decoration: underline; color: var(--muted); }
.audit-rename:hover { color: var(--ink); }
.res-meta strong { color: var(--ink); }
@media print { .audit-rename { display: none !important; } }
/* The overview's LGfL Details, on the version line after the badge (ticket 53). */
.lgfl-details { font-size: 14px; margin-left: 8px; }
@media print { .lgfl-details { display: none !important; } }

/* Asking someone their own name on Your Audits, as DTT does, when they have none. */
.welcome-nameform { margin: 6px 0 18px; }
.welcome-nameform label { font-weight: 400; font-size: 14px; color: var(--muted); margin: 0 0 8px; }
.welcome-nameform-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.welcome-nameform-row input { flex: 0 1 300px; width: auto; min-width: 0; }
.welcome-nameform-row .btn { margin-top: 0; }
.welcome-nameform-row .field-error { flex-basis: 100%; margin-top: 0; order: 3; }

/* "Email them to let them know", under the roles in Add a Colleague. */
.share-tell { display: flex; align-items: center; gap: 8px; font-weight: 400; margin-top: 14px; }
.share-tell input { width: auto; margin: 0; }

/* Evidence is what is already true; the action, owner and due date are one
   decision about what happens next. They had a tinted box of their own, headed
   "Next steps, goes into your action plan"; they are plain fields now, set as
   Evidence is and following it at a label's usual distance (James, 30 Nov
   2026). The fieldset stays, its legend for screen readers only. */
.action-set { margin: 0; padding: 0; border: 0; min-width: 0; }
.action-set .fields { margin-top: 0; }
/* The date box was taller than the owner box beside it. */
.action-set input[type=text], .action-set input[type=date] { box-sizing: border-box; height: 44px; }

/* ===== OSA additions beyond mock.css ======================================== */

/* The prototype's copy of DTT's app.css (mockup/static/app.css, vendored 14 Nov
   2026) has a sticky-footer block that DTT's committed app.css, and so this
   repo's, does not. The prototype's pages are laid out with it: the body is a
   flex column, so the header's margin and the first card's no longer collapse
   together (the sign-in card sits 8px lower with it). Carried here, since
   app.css is never edited. */
@media screen {
  body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
  body > .container { flex: 1 0 auto; width: 100%; }
}

/* The prototype's .link-btn is always a <button>. Where the app's is a link (Use a
   different email address, which is a plain GET of the sign-in page), drop the
   underline app.css gives every <a>, so it reads the same; hover still adds it. */
a.link-btn { text-decoration: none; }

/* The privacy line under the sign-in form (ticket 32; not in the prototype):
   .meta makes it small and muted, this keeps it clear of the button above. */
.signin-privacy { margin: 18px 0 0; line-height: 1.5; }

/* The overview's rename is a link (it opens ?rename=1), which a.link-btn above
   would otherwise strip of the underline the prototype's button has. */
a.link-btn.audit-rename { text-decoration: underline; }

/* A text button switched off: Change on the People card of a finalised audit.
   app.css gives every .link-btn the accent colour and a pointer, which a
   disabled one would keep and so look live. */
.link-btn:disabled, .link-btn:disabled:hover { color: var(--muted); cursor: default; text-decoration: none; }

/* A one-button form sitting in a line of text, like Remove on the People card. */
.inline-form { display: inline; margin: 0; }

/* Section page foot bar: a failed save says so, in the error colour DTT's
   banners use, so it is not mistaken for the "Saved" time beside it. */
#saved.is-error { color: #842029; font-weight: 600; white-space: normal; line-height: 1.3; }

/* Help & resources arrives as one block of sanitised HTML (paragraphs and
   lists), so each top-level paragraph takes the prototype's .gpara divider. */
.panel.guide-html > * { margin: 0; padding: 6px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.panel.guide-html > *:first-child { border-top: 0; padding-top: 0; }
.panel.guide-html > ul, .panel.guide-html > ol { padding-left: 20px; }

/* The editor saves each field as it changes; this line says it did, or why not. */
.ed-saved { margin: 16px 0 0; min-height: 1.4em; }
.ed-saved.is-error { color: #b3312d; font-weight: 600; }
.ed-head .toolbar form { display: inline; margin: 0; }

/* Action plan rows stack below 760px (spec, user story 112), where mock.css
   stacks them below 700px: between the two, the four columns left the action
   too narrow to read. Same stacking, earlier. */
@media (max-width: 760px) {
  .plan-row { grid-template-columns: minmax(0, 1fr) auto; }
  .plan-rate, .plan-main { grid-column: 1 / -1; }
}

/* Content editor, structure (ticket 19): the item's place in the foot band. */
.ed-place { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ed-place form { display: flex; gap: 6px; align-items: center; }
.ed-foot .btn, .ed-new .btn { margin-top: 0; }
.ed-place .btn:disabled { opacity: 0.45; cursor: default; }

/* Your Audits. The prototype lists one audit per school, so its cards never
   stack; a school with several audits gets the gap the overview's cards have.
   Delete is the owner's and sits apart from the buttons that open the audit
   (the prototype has no delete; the spec adds it). */
.audit-group .card + .card { margin-top: 16px; }
.audit-card .toolbar .card-delete { margin-left: auto; }

/* The stale-edit check (ticket 09): a refused save's note on the item, with what
   this person typed kept beside a "Put Mine Back" button. Not in the prototype. */
.stale-note p { margin: 0 0 6px; }
.stale-note .stale-mine { margin-top: 4px; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ===== What the build first wrote as inline styles (ticket 35) ===============
   Every OSA rule lives in this file, so what the pages used to carry in style
   attributes is here, page by page, with the values it had. The only style
   attributes left in the pages are DTT's own (the header logo's size, the
   error page, the landing page's gradient) and how full a bar is, which is a
   number and not styling: the page gives it as --fill (a percentage) and the
   width is set from it here. */

/* How full a bar is: the meter on the overview and on a Your Audits card, the
   section page's progress track (which its script moves as items are rated),
   the parts of the results page's bars, and the governor report's "Where the
   actions fall" bars (ticket 52). */
.meter-fill, .q-track-fill, .stack span, .gov-bar > i > b { width: var(--fill, 0%); }

/* The header logo is a link home; DTT's inline size stays on the image. */
.header-side > a > img { display: block; }

/* A page title with its own line of small print straight under it. */
h2.tight { margin-bottom: 4px; }

/* A label with nothing above it to stand clear of. */
label.flush { margin-top: 0; }

/* Dialogues. The gap under a dialogue's heading depends on what it sits over;
   its buttons sit 18px under the last thing in it. */
.dlg-h { margin-bottom: 16px; }              /* over a form */
.dlg-h.over-field { margin-bottom: 14px; }   /* over one box: a search, a name */
.dlg-h.over-list { margin-bottom: 12px; }    /* over a list: consequences, changes */
.dlg-h.over-note { margin-bottom: 10px; }    /* over a line of text */
.dlg-h.over-lead { margin-bottom: 6px; }     /* over the sentence that explains it */
.dlg-lead { margin-bottom: 18px; }
.dlg-foot { margin-top: 18px; }
/* Basic or full leaves its own space under it. */
.scope-choice + .dlg-foot { margin-top: 4px; }
/* What the name is for, under its box in Name This Audit. */
.audit-rename-hint { margin: 8px 0 18px; }

/* Overview: a finalised audit's two buttons; each group of sections after the
   first starts under a rule; a section's row, its title and the line saying
   how far through it is (green once complete, amber while in progress). */
.final-actions { margin: 0 0 24px; }
.group-head.not-first { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 10px; }
.status-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.status-title { font-weight: bold; }
.status-line { font-size: 14px; }
.status-line.is-complete { color: var(--success-text); }
.status-line.is-progress { color: var(--warning-text); }
/* A role filter that leaves no section at all. */
.status-none { padding: 12px 0; }
/* People card: the line a colleague sees where the owner has Add a colleague. */
.people-note { margin-top: 12px; }
/* The owner's Add a Colleague, set off from the table's last row. */
.people-add { margin-top: 16px; }
#share-roles { margin-top: 18px; }
/* Recent changes: "No changes match that search." and "The 25 most recent of...". */
.hist-note { margin-top: 10px; }

/* Results: the word before a row of filter chips, the cards' headings, Record
   the Approval under "Not yet approved.", and the version at the foot. */
.answer-filter-label { font-size: 14px; margin-right: 2px; }
#answers-card > h3 { margin-bottom: 14px; }
#sign-off > h3 { margin-bottom: 12px; }
.sign-off .btn { margin-top: 10px; }
.res-version { margin-top: 4px; }
/* The Share dialogue: what the link is, then a line each for replacing it. */
.share-lead { margin-bottom: 14px; }
.share-line { margin-top: 10px; }
.share-line.is-new { color: var(--success-text); }
#dlg-share .dlg-foot { margin-top: 16px; }

/* Your Audits: a card's left edge says where its audit stands (the state is
   answers.progress's, named on the card by routes/retrieve.py). */
.audit-card.is-finalised { border-left: 5px solid var(--success); }
.audit-card.is-ready { border-left: 5px solid #076a9c; }
.audit-card.is-progress { border-left: 5px solid var(--warning); }
.audit-card.is-none { border-left: 5px solid #c7ccd1; }
.audit-card .title-bar { margin-bottom: 6px; }
.audit-line { margin-bottom: 10px; }
.audit-card .toolbar { margin-top: 14px; }

/* Sign in: the button fills the card; the link shown on the page where email
   is not configured (local development); "Use a different email address". */
#send-link-form .btn { width: 100%; }
.dev-link p:first-child { margin-bottom: 12px; }
.dev-link .btn { margin-top: 0; }


/* Section page: the title under its part, and the two boxes' starting heights. */
.sec-title { margin-bottom: 12px; }
.sec-title h2 { margin-bottom: 0; }
textarea[data-f="evidence"] { min-height: 110px; }
textarea[data-f="action"] { min-height: 80px; }

/* Content editor: the versions card and its "Start a Draft" row, the Published
   dialogue, New Section's basic-or-rest choice, and the list of changes. */
.ed-versions > h3 { margin-bottom: 12px; }
.ed-start { display: flex; gap: 10px; flex-wrap: wrap; }
.ed-start input { flex: 1 1 220px; }
.ed-start .btn { margin-top: 0; }
#dlg-published p { margin-bottom: 16px; }
.scope-choice.ed-where { margin-bottom: 14px; }
table.changes td:first-child { width: 24%; }
table.changes td:last-child { width: 26%; }

/* ===== Design audit, 22 Nov 2026 ============================================
   What the audit of the running app changed, in one block so it can be read
   (or backed out) whole. Overrides, as everything here is: app.css is not
   edited. */

/* Red is the rating "Not in place" and nothing else inside the app. Links, the
   Full audit switch, a chosen option and a focused box were all the LGfL
   accent, so the results page set a column of red links beside its red
   squares. As DTT decided for its own (its design audit, 22 Nov 2026): what
   is chosen or focused is ink, and the blue goes, so a link is ink and
   underlined. The accent stays in the header, the landing page and the
   required-field star. */
a, .link-btn, a.link-btn { color: var(--ink); text-decoration: underline; }
a:hover, .link-btn:hover { color: #000; }
.btn, .back-link, .drop-item, .account-item, .res-tile, a.account-button, .header-side > a { text-decoration: none; }
.link-btn:disabled, .link-btn:disabled:hover { color: var(--muted); text-decoration: none; }
.panel.guide a, .panel.guide .link-btn { color: var(--ink); }
input[type=checkbox], input[type=radio] { accent-color: var(--ink); }
input[type=text]:focus, input[type=email]:focus, input[type=date]:focus, input[type=search]:focus, select:focus, textarea:focus {
  border-color: var(--ink); box-shadow: 0 0 0 3px rgba(33,37,41,0.2); }
.rte-box:focus { box-shadow: inset 0 0 0 2px var(--ink); }
.scope-toggle input:checked + .switch { background: var(--ink); }
.scope-toggle input:focus-visible + .switch { outline: 3px solid var(--ink); }
.scope-opt:has(input:checked) { border-color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--ink); }

/* Buttons, as DTT decided: one charcoal main action, everything else white
   with a grey outline, a red outline for delete, and no blue. .btn is already
   charcoal; inside the app .btn-dark was a second, darker main button with no
   rule for which a page used, so there it is charcoal too (the landing page
   keeps its own). .btn-light and .btn-secondary are the outlined button. */
body:not(.page-landing) .btn-dark { background: #484848; }
body:not(.page-landing) .btn-dark:hover { background: #2e2e2e; }
body:not(.page-landing) .btn-light, .btn-secondary { background: #fff; color: var(--ink); border: none; box-shadow: inset 0 0 0 1px var(--border); }
body:not(.page-landing) .btn-light:hover, .btn-secondary:hover { background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1px #9aa1a9; }

/* Overview: the whole row opens its section, and only the next section to do
   carries the filled button (routes/overview.py picks it), so the list says
   where to go next instead of offering fifteen equal buttons. */
.status-row { position: relative; margin: 0 -12px; padding: 12px; border-radius: var(--radius-sm); }
.status-row:hover { background: var(--surface); }
.status-row > a.btn { flex: none; }
.status-row > a.btn::after { content: ""; position: absolute; inset: 0; }


/* Results: the two exports share one menu, which opens from its own left edge
   (the toolbar wraps under the title on a narrow page). */
.toolbar .drop > summary { margin-top: 0; }
.toolbar .drop-panel { right: auto; left: 0; min-width: 230px; }

/* Add Your School, Your Part, Add a Colleague: the role ticks were CSS
   columns of block labels, so the second column started 6px higher (a column
   break swallows the first label's top margin) and the boxes sat closer to
   their words than in the group above. A grid of the same flex labels. */
.role-ticks label { display: flex; }
@media (min-width: 560px) { .role-ticks { columns: auto; display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; } }

/* Your Audits with nothing on it yet: the way to start sits in the welcome
   card, in place of two counts of nought. */
.welcome-start p { margin: 0; }

/* Help & resources: a link written as its own address shows as the site's
   name (templating.short_links); paper gets the address back. */
@media print { .guide-html a[href^="http"]::after { content: " (" attr(href) ")"; overflow-wrap: anywhere; } }

/* Small labels in sentence case, DTT's .label: 14px, 600, muted, as typed,
   no tracking. A dozen of them were 11 to 13px capitals, letter-spaced. The
   admin area's table headers stay as they were (the admin bar marks its
   pages), and so do the content editor's labels. */
.eyebrow, table.data th, .account-who-label, .glossary-heading, .welcome-label,
.action-plan td::before, .carousel-eyebrow, .ap-label, .ap-c-pick-domain {
  text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 600; color: var(--muted); }
.plan-head { text-transform: none; letter-spacing: 0; font-size: 14px; }
.admin-bar ~ .container table.data th { text-transform: uppercase; letter-spacing: 0.04em; font-size: 12px; font-weight: 700; }

/* Nothing a school has to read is under 14px on screen (the lines under a
   section's name, a plan row's source, a field's error). Labels and chips
   stop at 12. Screen only: the governor report sets its own sizes for paper. */
@media screen {
  .meta, .status-line, .audit-ref, .plan-src, .plan-late, .field-error, .welcome-dates,
  .welcome-edit, .audit-rename, .gpara .link-btn, .action-plan td .meta { font-size: 14px; }
  .plan-main .chip, .row-tags .chip, table.action-plan .chip { font-size: 12px; }
}


/* Register and Sign In, as DTT's pages (which say these in style attributes):
   the consent card's heading, lead and tick; the button under the two cards;
   the line under each form that leads to the other; and "Not registered yet?"
   in the link-sent notice. */
.consent-title { margin-bottom: 8px; }
.consent-lead { margin-bottom: 12px; }
.consent-tick { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-weight: 400; cursor: pointer; }
.consent-tick input { width: auto; margin: 5px 0 0; flex: none; }
.register-go { margin-top: 0; }
.auth-foot { margin: 18px 0 0; text-align: center; }
.signin-unreg { margin-top: 8px; }
#send-link-form .btn { margin-top: 20px; }

/* Confirm Sign-In: the note under the button at DTT's size (its app.css has
   moved on from the copy here: 14px, where this copy says 13.5). */
.verify-note { font-size: 14px; }

/* The landing page's "Still in development" strip is DTT's, so its link keeps
   the accent DTT gives it (links inside the app are ink). */
.dev-notice a { color: var(--accent); }
.dev-notice a:hover { color: var(--accent-dark); }

/* Results: the way back to Your Audits stays off paper. */
@media print { .page-top { display: none !important; } }

/* The Sharing card's name is its heading, with the card's marker still at the right. */
.group-head h3.eyebrow-h { display: flex; align-items: center; gap: 8px; margin: 0 0 2px; }
/* DTT's Sharing heading: the name, then the "i" whose pop-up says how sharing
   works. DTT writes this row as inline styles; here they are classes. The
   button and the pop-up are app.css's (.info-btn, .info-pop). */
.group-head.share-head { display: flex; align-items: center; gap: 6px; margin-bottom: 16px; }
.group-head.share-head h3.eyebrow-h { margin: 0; }
.info-wrap { position: relative; display: inline-flex; }
/* A page heading with an "i" beside it (Add Your School). On a phone the
   pop-up hangs from the row's left edge, so it stays on the screen. */
.page-head-info { display: flex; align-items: center; gap: 6px; margin-bottom: 20px; position: relative; }
.page-head-info h2 { margin: 0; }
@media (max-width: 600px) { .page-head-info .info-wrap { position: static; } }
.info-pop.is-open { display: block; }
/* The Full audit switch with its "i" beside it. On a phone the pop-up hangs
   from the row's left edge, so it stays on the screen. */
.rest-note.scope-row { display: flex; align-items: center; gap: 6px; position: relative; }
.scope-row .scope-toggle { align-items: center; }
.scope-row .scope-toggle .switch { margin-top: 0; }
@media (max-width: 600px) { .scope-row .info-wrap { position: static; } }

/* The typeface: Myriad Pro, LGfL's brand face, from LGfL's Adobe Fonts web
   project (the link in base.html: Light 300, Regular 400 and its italic,
   Semibold 600, Bold 700; an 800 falls to Bold). The rest is what shows until
   it arrives, and for good where a filter blocks Adobe. */
body { font-family: "myriad-pro", "Helvetica Neue", Helvetica, Arial, sans-serif; }

/* The landing page's step numbers asked for 800, which the font kit does not
   have, so the browser was already drawing Bold. Said plainly: 700. */
.step-num { font-weight: 700; }

/* The hero's line under the heading, at DTT's values (James, 22 Nov 2026). The
   rules above had made it 24px at weight 400 and full opacity, because white
   at 20px and weight 300 measured 3.77:1 over the lower half of the gradient,
   under the 4.5:1 that size of text is asked for. */
.page-landing .hero-lead { font-size: 20px; font-weight: 300; opacity: 0.95; max-width: 580px; margin: 0 auto 16px; }

/* The hero's heading on two lines at every width (James, 22 Nov 2026). A fixed
   width on the hero would not do it: the heading grows with the window, so
   730px wraps it on a wide screen and not on a laptop. In ems it follows the
   heading's own size; the line is about 13em long, and balance splits it evenly. */
.page-landing .hero-gradient h1 { max-width: 11em; margin-left: auto; margin-right: auto; }

/* ===== As DTT, 22 Nov 2026 ===================================================
   James asked for OSA to look and feel as DTT does, DTT winning wherever the
   two differed. app.css is DTT's current stylesheet again (copied whole, still
   never edited here), and the sizes, corners and greys above were moved onto
   DTT's short lists: 12, 14, 16, 18, 22 and 30px; --radius-sm, --radius or a
   999px pill; --line, --surface and --well. A card has a border and no shadow.
   The admin area, the content editor, the landing page and print keep theirs. */

/* A chosen rating, as DTT's chosen answer: ink outline on the --well grey. The
   rating's own colour stays in its icon, and on the item's chip and left edge. */
.rag label.fully:has(input:checked), .rag label.partial:has(input:checked),
.rag label.not:has(input:checked), .rag label.na:has(input:checked) {
  border-color: var(--ink); background: var(--well); box-shadow: inset 0 0 0 1px var(--ink); }

/* An icon in a button or a badge, as DTT's: drawn in the text's colour. */
.btn svg, .back-link svg, .chip svg, .drop > summary svg { flex: none; }

/* A state chip on an audit's card, as DTT's status pill: a full pill at 14px. */
.audit-card .title-bar .chip { font-size: 14px; padding: 4px 12px; }

/* An icon in a chip at the text's size; a section's line keeps its own colour
   (a section's "Complete" in green) as a meta line. */
.chip svg { width: 1em; height: 1em; }
.status-line.is-complete.meta-line { color: var(--success-text); }
.status-line.is-progress.meta-line { color: var(--warning-text); }
/* The section page's title row: the glossary and Back level with the title. */
.title-row.sec-title { align-items: flex-start; flex-wrap: nowrap; }
.title-row.sec-title .back-link { margin-bottom: 0; }
.title-row.sec-title .toolbar { flex: none; }
/* The overview's card opens with the audit's reference and its progress. */
.card > .audit-name { margin-bottom: 10px; }
.card > .progress-line { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
/* A basic audit has no group heading, so its first section sits straight
   under the meter's rule: take up the slack the heading left. */
.card > .progress-line + .status-row { margin-top: -8px; }
/* Text buttons side by side (Change, Leave this audit), set apart by a gap. */
.link-btn + .link-btn { margin-left: 12px; }
/* The results page's line of facts: the rename sits in the line's own gaps. */
.res-meta .audit-rename { margin-left: 0; }
/* A glossary term here is a <button> (DTT's is too): DTT's tint and dotted
   underline, in the sentence's own type, with no button border. */
button.gloss-term { font: inherit; border: 0; }

/* The Copy page (copy ticket 02), as DTT's: the audit being copied in a card of
   its own above the form, and the name's note under its box. */
.copy-source { margin-bottom: 24px; }
.copy-source .audit-name { margin-bottom: 4px; }
.copy-hint { margin: 6px 0 0; }
/* What the copy will hold, and the question changes (copy ticket 03), in the
   source's card as DTT has them. */
.copy-carry { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.copy-carry strong { color: var(--ink); }
.copy-changes { margin: 12px 0 0; }
/* "A different school…" (copy ticket 04): Add Your School's fields under the
   school list, a group with no frame of its own. Its first label is not the
   card's first, so it keeps the gap app.css takes off a card's opening label. */
.copy-new-school { border: 0; padding: 0; margin: 0; min-width: 0; }
.copy-new-school > label:first-child { margin-top: 16px; }
