/* One column, answer first, tables and a form. Fixed light ground. Measured from gov.uk guides (19 px / 630 px column),
   canada.ca result tables (1 px rule, 2 px header rule, 8 px cell padding) and service-public.gouv.fr (40 px h1). */
@font-face{font-family:"Manuale";src:url("fonts/manuale-latin.8a4faeb8cd.woff2") format("woff2");font-weight:400 700;font-style:normal;font-display:swap}

:root{
  --bg:#fbfcfb;--ink:#1a2321;--ink-2:#45524d;--rule:#cdd7d3;--tint:#eef4f1;
  --accent:#0b6a60;--accent-dark:#064c45;--on-accent:#ffffff;--warn:#7a1f10;
  --font:"Manuale",Georgia,"Times New Roman",serif;
  color-scheme:light;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%;background:var(--bg)}
body{margin:0;background:var(--bg);color:var(--ink);font:400 1.125rem/1.65 var(--font);padding-block:0 3rem}
.page{max-width:46rem;margin-inline:auto;padding-inline:1rem}
.skip{position:absolute;left:-9999px}
.skip:focus{left:1rem;top:.5rem;background:var(--bg);padding:.5rem .75rem;z-index:5}

/* header */
.top{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:.25rem 1.5rem;padding-block:1rem .9rem;border-bottom:1px solid var(--rule)}
.brand{display:inline-block;padding-block:.5rem;font-weight:700;font-size:1.25rem;letter-spacing:.01em;color:var(--ink);text-decoration:none}
.nav{display:flex;flex-wrap:wrap;gap:.1rem 1.25rem;font-size:1rem}
.nav a{display:inline-block;padding-block:.5rem;color:var(--ink);text-decoration:none;border-bottom:2px solid transparent}
.nav a[aria-current="page"]{border-bottom-color:var(--accent);font-weight:600}
.indep{margin:.9rem 0 0;font-size:.95rem;color:var(--ink-2);max-width:none}

/* text */
h1{font-size:clamp(1.9rem,1.45rem + 1.9vw,2.55rem);line-height:1.15;font-weight:700;letter-spacing:-.01em;margin:2rem 0 1rem;text-wrap:balance}
h2{font-size:1.5rem;line-height:1.25;font-weight:700;margin:2.75rem 0 .75rem;text-wrap:balance}
h3{font-size:1.15rem;line-height:1.3;font-weight:700;margin:1.75rem 0 .4rem}
p,ul,ol,dl{margin:0 0 1rem}
p,li{max-width:40rem}
ul,ol{padding-left:1.4rem}
li{margin-bottom:.35rem}
.lede{font-size:1.25rem;line-height:1.55;max-width:40rem}
.checked{color:var(--ink-2);font-size:1rem}
a{color:var(--accent);text-underline-offset:.2em;text-decoration-thickness:1px;transition:text-decoration-thickness .15s ease-out,color .15s ease-out}
a:visited{color:#4a4a8a}
li a,td a,th a,p a{overflow-wrap:anywhere}
.table-wrap td a,.table-wrap th a{display:inline-block;padding-block:.7rem;margin-block:-.7rem}
b,strong{font-weight:700}
abbr[title]{text-decoration:underline dotted;cursor:help}
.small{font-size:.95rem;color:var(--ink-2)}
:focus-visible{outline:3px solid var(--accent);outline-offset:2px}

/* a plain set-off block: two hairlines, no box */
.set{border-block:1px solid var(--ink);padding:1rem 0 .4rem;margin:1.75rem 0}
.set h2,.set h3{margin-top:0}
.warn{color:var(--warn);font-weight:700}

/* tables */
.table-wrap{overflow-x:auto;margin:0 0 .5rem;-webkit-overflow-scrolling:touch}
table{border-collapse:collapse;width:100%;font-size:.97rem;line-height:1.4;font-variant-numeric:tabular-nums}
caption{text-align:left;font-weight:700;padding:0 0 .5rem}
th,td{text-align:left;vertical-align:top;padding:.55rem .65rem .55rem 0;border-bottom:1px solid var(--rule)}
thead th{border-bottom:2px solid var(--ink);font-weight:700;vertical-align:bottom}
tbody th{font-weight:700}
td.num,th.num{text-align:right;padding-right:.9rem;white-space:nowrap}
tr.sep th,tr.sep td{border-top:2px solid var(--ink)}
.src{font-size:.92rem;color:var(--ink-2);margin:0 0 1.5rem;max-width:none}

/* on a phone every table becomes a list: row title, then one labelled line per column */
@media (max-width:42rem){
  .stack{overflow:visible}
  .stack thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .stack table,.stack tbody,.stack tr,.stack th,.stack td{display:block;width:100%}
  .stack caption{display:block}
  .stack tr{padding:.7rem 0;border-bottom:1px solid var(--rule)}
  .stack th,.stack td{border:0;padding:.12rem 0;text-align:left!important;white-space:normal!important}
  .stack td::before{content:attr(data-l) " : ";font-weight:600}
  html[lang="en"] .stack td::before{content:attr(data-l) ": "}
  .stack td[data-l=""]::before{content:""}
  .stack th[data-l]::before{content:attr(data-l) " "}
  .stack tr.sep{border-top:2px solid var(--ink)}
}

@media (max-width:42rem){.dense th,.dense td{padding-right:.3rem;font-size:.82rem}.dense td.num,.dense th.num{padding-right:.4rem}}

/* proportional minutes: one bar per test, 60 min = full width */
.bars{list-style:none;padding:0;margin:0 0 .5rem}
.bars li{display:grid;grid-template-columns:7.5rem 1fr 6rem;gap:.75rem;align-items:center;margin:0;max-width:none;padding-block:.15rem}
.bars .n{font-weight:600}
.bars .v{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.bars .t{display:block;height:.9rem}
.bars .f{display:block;height:100%;background:var(--accent)}
.bars .f.alt{background:repeating-linear-gradient(135deg,var(--bg) 0 3px,var(--accent) 3px 5px);box-shadow:inset 0 0 0 2px var(--accent)}
.key{display:flex;flex-wrap:wrap;gap:.25rem 1.25rem;margin:0 0 .75rem;font-size:.95rem}
.key span{display:inline-flex;align-items:center;gap:.4rem}
.key i{display:inline-block;width:1.6rem;height:.8rem;background:var(--accent)}
.key i.alt{background:repeating-linear-gradient(135deg,var(--bg) 0 3px,var(--accent) 3px 5px);box-shadow:inset 0 0 0 2px var(--accent)}
@media (max-width:30rem){.bars li{grid-template-columns:5.4rem 1fr 5.2rem;gap:.5rem}}

/* centre list */
.centre{border-top:1px solid var(--ink);padding-top:.9rem;margin-top:1.4rem}
.centre h3{margin:0 0 .2rem}
.centre dl{display:grid;grid-template-columns:minmax(7rem,9rem) 1fr;gap:.3rem 1rem;margin:.5rem 0 .6rem;font-size:.98rem}
.centre dt{font-weight:700}
.centre dd{margin:0}
@media (max-width:30rem){.centre dl{grid-template-columns:1fr;gap:0}.centre dd{margin-bottom:.45rem}}

/* form and result */
form{margin:1.25rem 0 1.5rem}
fieldset{border:0;padding:0;margin:0 0 1.25rem}
legend{font-weight:700;padding:0;margin-bottom:.4rem}
.choice{display:flex;flex-wrap:wrap;gap:.25rem 1.5rem}
.choice label{display:inline-flex;align-items:center;gap:.55rem;min-height:2.75rem;cursor:pointer}
.choice input{width:1.3rem;height:1.3rem;accent-color:var(--accent);margin:0}
.fields{display:grid;grid-template-columns:1fr;gap:1rem}
@media (min-width:34rem){.fields{grid-template-columns:1fr 1fr}}
.field label{display:block;font-weight:600;margin-bottom:.25rem}
.field .hint{display:block;font-size:.92rem;color:var(--ink-2);margin-top:.2rem}
select{min-height:2.9rem;font:inherit;padding:.4rem .6rem;color:var(--ink);background:#fff;border:2px solid var(--ink);border-radius:0}
input[type=number]{width:100%;min-height:2.9rem;padding:.5rem .7rem;font:inherit;color:var(--ink);background:#fff;border:2px solid var(--ink);border-radius:0}
input[aria-invalid="true"]{border-color:var(--warn);background:#fff6f4}
.confirm{display:flex;gap:.7rem;align-items:flex-start;margin:1.25rem 0 0;max-width:40rem}
.confirm input{width:1.3rem;height:1.3rem;margin-top:.3rem;accent-color:var(--accent);flex:none}
button{font:600 1.05rem/1 var(--font);min-height:2.9rem;padding:.8rem 1.4rem;border:0;border-radius:0;background:var(--accent);color:var(--on-accent);cursor:pointer;transition:transform .12s ease-out,background-color .12s ease-out}
button:active{transform:scale(.97)}
button.plain{background:transparent;color:var(--accent);box-shadow:inset 0 0 0 2px var(--accent)}
.actions{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:1.25rem}
#result{margin-top:1.5rem}
#result:empty{display:none}
.verdict{font-size:1.2rem;font-weight:700;margin:0 0 .75rem;max-width:none}
.err{color:var(--warn);font-weight:700}
@media (hover:hover){a:hover{text-decoration-thickness:2px;color:var(--accent-dark)}button:hover{background:var(--accent-dark)}button.plain:hover{background:var(--tint)}}

/* footer */
.foot{margin-top:3.5rem;padding-top:1rem;border-top:1px solid var(--rule);font-size:.95rem;color:var(--ink-2)}
.foot p{max-width:none;margin-bottom:.4rem}
@media (prefers-reduced-motion:reduce){*{transition-duration:.01ms!important}}

/* P6 and P7: quotes, marked copies, word counter, transcripts. Same tokens, square corners, no new colours. */
h4{font-size:1.15rem;line-height:1.3;font-weight:700;margin:1.75rem 0 .4rem}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
blockquote{margin:0 0 1rem;padding:.1rem 0 .1rem 1rem;border-left:1px solid var(--ink)}
blockquote p,blockquote li{max-width:38rem}
.sub{font-weight:700;margin:1.25rem 0 .4rem}
.score{max-width:none}
/* a copy: the text as it was written, on its own sheet (Wikipedia inline diff: change marked inside the running text) */
.copy{border-top:1px solid var(--ink);padding-top:.9rem;margin-top:2rem}
.copy h3{margin:0 0 .3rem}
.set h4{margin-top:0}
.set + .copy,.set + .dialogue{border-top:0;padding-top:0;margin-top:1.75rem}
.sheet{background:#fff;border:1px solid var(--rule);padding:1rem 1.15rem .25rem;margin:0 0 1rem;line-height:1.75}
.sheet p{max-width:none}
del{color:var(--warn);text-decoration:line-through;text-decoration-thickness:2px;text-decoration-color:var(--warn)}
ins{text-decoration:none;font-weight:700;color:var(--accent-dark);background:var(--tint);padding:0 .15em}
.key del,.key ins{display:inline-block}
.crit{display:grid;grid-template-columns:minmax(7rem,10rem) 1fr;gap:.35rem 1rem;margin:.4rem 0 1rem;font-size:.98rem}
.crit dt{font-weight:700}
.crit dd{margin:0;max-width:40rem}
.crit.wide{grid-template-columns:minmax(10rem,15rem) 1fr}
.crit.wide dt{font-weight:600}
.crit.wide dt .small{display:block;font-weight:400}
@media (max-width:30rem){.crit,.crit.wide{grid-template-columns:1fr;gap:0}.crit dd{margin-bottom:.5rem}}
/* word counter (GOV.UK character count, word mode: textarea with 2 px border, status line right under it) */
textarea{display:block;width:100%;min-height:14rem;padding:.6rem .75rem;font:inherit;line-height:1.55;color:var(--ink);background:#fff;border:2px solid var(--ink);border-radius:0;resize:vertical;transition:border-color .1s ease-out}
textarea[data-state="out"]{border-color:var(--warn)}
.wc-status{margin:.4rem 0 0;color:var(--ink-2);max-width:none}
.wc-status[data-state="in"]{color:var(--ink);font-weight:700}
.wc-status[data-state="out"]{color:var(--warn);font-weight:700}
#wc .field label{margin-bottom:.4rem}
#wc .choice{flex-direction:column;gap:0}
@media (min-width:42rem){#wc .choice{flex-direction:row;gap:.25rem 1.5rem}}
/* transcripts (This American Life: speaker name bold and run in, the guest's lines set further in) */
.dialogue{border-top:1px solid var(--ink);padding-top:.9rem;margin-top:2rem}
.dialogue h4{margin:0 0 .3rem}
.transcript{margin:1rem 0 1.25rem}
.turn{margin:0 0 .85rem;max-width:42rem}
.turn b{margin-right:.35em}
.turn.ca{padding-left:5rem;max-width:none}
@media (max-width:30rem){.turn.ca{padding-left:2.75rem}}
.bars.time li{grid-template-columns:7.5rem 1fr 7rem}
.bars.time .n{white-space:nowrap}
@media (max-width:30rem){.bars.time li{grid-template-columns:6.4rem 1fr 5.6rem}}

/* site: bar widths (were inline style attributes) and the home list */
.w-100{width:100%}.w-20{width:20%}.w-25{width:25%}.w-58-3{width:58.3%}.w-66-7{width:66.7%}.w-81-4{width:81.4%}.w-85-2{width:85.2%}.w-88-5{width:88.5%}.w-95{width:95%}
.home-list{list-style:none;padding-left:0}
.home-list li{margin-bottom:1.1rem}
