/* School Shortlist, design B "The Ruler Changed" (chosen 2 November 2026): white and cold, one serif family (PT Serif, SIL OFL 1.1, served locally), a sentence
   that answers, an overview of the verdicts on Ofsted's timeline, and a time axis that every row shares.
   Marks: square = report card, ring = key judgements only, filled diamond = overall grade on the old scale,
   open diamond = ungraded inspection. Periods: pale = old scale, mid blue = key judgements only, deep blue = report cards. */

:root {
  --paper: #ffffff; --ink: #0f2238; --mute: #46576b; --zebra: #f3f6fa; --tint: #e6edf6;
  --p-old: #e3e9f2; --p-keys: #a8bddb; --p-cards: #1b4f9c; --blue: #1b4f9c; --left: 22rem;
}
* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); font-family: "PT Serif", Georgia, "Times New Roman", serif; font-size: 19px; line-height: 1.5; -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-wrap: break-word; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -200vw; top: 0; min-height: 44px; background: var(--blue); color: #fff; padding: .5rem 1rem; }
.skip:focus { left: 1rem; z-index: 10; }
.draft { color: var(--mute); }

.top { max-width: 1240px; margin: 0 auto; padding: .9rem clamp(1rem, 4vw, 2.5rem) 0; display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 0 2rem; align-items: center; }
.brand { font-weight: 700; font-style: italic; font-size: 1.45rem; color: var(--ink); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.top nav { display: flex; flex-wrap: wrap; gap: 0 1.3rem; }
.top nav a { color: var(--ink); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.top nav a[aria-current] { font-weight: 700; text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 2px; }
.top nav a:hover { color: var(--blue); }
.independent { grid-column: 1 / -1; margin: 0; color: var(--mute); font-style: italic; font-size: .9rem; }

main { max-width: 1240px; margin: 0 auto; padding: 1.2rem clamp(1rem, 4vw, 2.5rem) 2rem; }
.head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 0 2.4rem; align-items: start; }
h1 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.06; margin: 0 0 .2rem; font-weight: 700; letter-spacing: -.01em; }

/* The question as a sentence */
.ask { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem .7rem; font-size: 1.3rem; }
.asklabel { font-style: italic; }
.ask input[type=text] { font: inherit; font-weight: 700; width: 12ch; min-width: 0; max-width: 100%; padding: .1rem .4rem; min-height: 48px; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; background: var(--tint); color: var(--ink); }
.ask select { font: inherit; padding: .1rem .3rem; min-height: 48px; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; background: var(--tint); color: var(--ink); max-width: 100%; }
.ask input.long { width: 24ch; }
.ask button { font: inherit; font-weight: 700; min-height: 48px; padding: .1rem 1.3rem; background: var(--blue); color: #fff; border: 0; border-radius: 0; cursor: pointer; }
.ask button:hover { background: var(--ink); }
.help { flex-basis: 100%; margin: 0; font-size: .9rem; color: var(--mute); }
.error, .note { flex-basis: 100%; margin: .3rem 0 0; padding: .5rem .8rem; font-size: 1rem; }
.error { background: #fdeaea; color: #7a1212; }
.note { background: var(--zebra); color: var(--ink); font-style: italic; }
.error[hidden], .note[hidden], .choices[hidden] { display: none; }
.choices { flex-basis: 100%; font-size: 1rem; }
.choices p { margin: .3rem 0; font-style: italic; }
.choices ul { list-style: none; margin: 0; padding: 0; }
.choices button { font: inherit; text-align: left; background: none; border: 0; color: var(--blue); text-decoration: underline; cursor: pointer; min-height: 44px; padding: .2rem 0; }
.choices small { color: var(--mute); text-decoration: none; display: inline-block; }

/* The answer, computed */
.answer { font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.4; max-width: 60rem; margin: 1.1rem 0 .8rem; }
.answer b { font-weight: 700; color: var(--blue); }

/* The overview: the three periods as tall bands, every verdict stacked at its date */
.ov { margin: 0 0 1.8rem; }
.overview { position: relative; }
.ovin { position: relative; height: 236px; }
.ovin .band { position: absolute; top: 0; bottom: 30px; }
.band.old { background: var(--p-old); }
.band.keys { background: var(--p-keys); }
.band.cards { background: var(--p-cards); color: #fff; }
.ocut { position: absolute; top: 0; bottom: 22px; border-left: 2px solid var(--ink); }
.ocut i { position: absolute; top: .3rem; right: .45rem; white-space: nowrap; font-size: .82rem; line-height: 1.15; color: var(--ink); background: var(--p-old); padding: 0 .2rem; }
.ocut .short { display: none; }
.ocut.new { border-left-color: #fff; }
.ocut.new i { left: .45rem; right: auto; color: #fff; background: none; white-space: normal; width: min(6.3rem, 11vw); }
.omark { position: absolute; bottom: calc(30px + 10px + var(--l) * 21px); width: 17px; height: 17px; margin-left: -8.5px; }
.oyears { position: absolute; left: 0; right: 0; bottom: 0; height: 30px; border-top: 2px solid var(--ink); }
.oyears .y { position: absolute; top: 0; height: 8px; border-left: 1px solid var(--ink); }
.oyears .y b { position: absolute; top: 6px; left: 0; transform: translateX(-50%); font-size: .82rem; font-weight: 700; }
.ov figcaption { font-size: .9rem; color: var(--mute); margin-top: .5rem; max-width: 60rem; }
.key { white-space: nowrap; }
.k { display: inline-block; width: 13px; height: 13px; margin: 0 .3rem 0 .1rem; vertical-align: -1px; }

/* Shapes (marks of the overview, of the rows and of the legend) */
.card { background: #fff; border: 2px solid var(--ink); }
.keys { background: #fff; border: 4px solid var(--ink); border-radius: 50%; }
.old { background: var(--ink); transform: rotate(45deg) scale(.82); }
.ungraded { background: #fff; border: 3px solid var(--ink); transform: rotate(45deg) scale(.82); }
.band.keys, .band.old, .band.cards { border: 0; border-radius: 0; transform: none; }

/* The shared ruler */
.rows-h { font-size: 1.35rem; font-weight: 700; margin: 0; }
.rowsintro { margin: .2rem 0 .8rem; color: var(--mute); font-size: .95rem; max-width: 60rem; }
.ruler { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: var(--left) minmax(0, 1fr); background: var(--paper); padding-top: .3rem; }
.ruler-left { display: flex; align-items: flex-end; padding-bottom: .55rem; font-style: italic; color: var(--mute); font-size: .9rem; }
.ruler-right { position: relative; height: 4.2rem; }
.ruler-right .band { position: absolute; top: 0; height: 2.1rem; display: flex; align-items: center; padding: 0 .4rem; font-size: .78rem; line-height: 1.1; overflow: hidden; white-space: nowrap; }
.axis { position: absolute; left: 0; right: 0; top: 2.1rem; height: 2.1rem; border-top: 2px solid var(--ink); }
.axis .y, .axis .cut { position: absolute; top: 0; }
.axis .y { height: 10px; border-left: 1px solid var(--ink); }
.axis .y b { position: absolute; top: 9px; left: 0; transform: translateX(-50%); font-size: .82rem; }
.axis .cut { top: -2.1rem; height: calc(2.1rem + 2px); border-left: 2px solid var(--ink); }

/* Rows: a zebra, no rules. The label sits above a small rail that repeats the three periods. */
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: var(--left) minmax(0, 1fr); align-items: stretch; }
.row:nth-child(odd) { background: var(--zebra); }
.lhs { padding: .55rem 1rem .55rem .4rem; display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); gap: 0 .6rem; }
.d { margin: 0; font-weight: 700; font-size: 1.15rem; line-height: 1.15; }
.d small { display: block; font-weight: 400; font-size: .8rem; color: var(--mute); }
.name { margin: 0; font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.name a { color: var(--ink); }
.where { margin: .1rem 0 0; color: var(--mute); font-size: .85rem; line-height: 1.3; }
.tl { display: flex; flex-direction: column; justify-content: flex-end; min-height: 4.6rem; padding-top: .45rem; }
.lab { align-self: flex-start; margin-left: calc(var(--x) - 9px); max-width: min(19rem, calc(100% - var(--x) + 9px)); font-size: .85rem; line-height: 1.2; color: var(--mute); }
.lab.left { align-self: flex-end; margin-left: 0; margin-right: calc(100% - var(--x) - 9px); text-align: right; max-width: min(19rem, calc(var(--x) + 9px)); }
.lab b { color: var(--ink); display: block; font-size: .95rem; }
.tl.undated { justify-content: center; }
.tl.undated .lab { display: block; padding: 0 .4rem; font-style: italic; max-width: none; margin: 0; }
.rail { position: relative; flex: none; margin: .45rem 0 .7rem; height: 8px;
  background: linear-gradient(90deg, var(--p-old) 0 70.65%, var(--p-keys) 70.65% 87.47%, var(--p-cards) 87.47%); }
.tl.undated .rail { display: none; }
.mark { position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; }
.extra { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0 1.6rem; padding: 0 .4rem .3rem calc(4.6rem + 1rem); font-size: .9rem; }
.extra a { min-height: 44px; display: inline-flex; align-items: center; }
.extra details { flex: 1 1 22rem; }
.extra summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-style: italic; color: var(--blue); }
.areas { list-style: none; margin: 0 0 .4rem; padding: 0; columns: 2 16rem; }
.areas li b { font-weight: 700; }
.more { margin: .8rem 0 0; }
.link { font: inherit; background: none; border: 0; color: var(--blue); text-decoration: underline; cursor: pointer; padding: .4rem 0; min-height: 44px; }

.ad { margin: 1.8rem 0; }
.ad[hidden] { display: none; }
.adlabel { margin: 0 0 .3rem; font-size: .85rem; color: var(--mute); font-style: italic; }
.adbox { min-height: 250px; background: var(--zebra); }

.two { margin-top: 2.6rem; max-width: 62rem; }
.two h2, .sources h2 { font-size: 1.5rem; margin: 0 0 .4rem; }
.two > p { margin: 0 0 1rem; }
.scales { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.4rem; }
.scale h3 { margin: 0 0 .5rem; font-size: 1.1rem; }
.scale p { margin: .6rem 0 0; font-size: .95rem; color: var(--mute); }
.notches { list-style: none; margin: 0; padding: .5rem 0 0; display: flex; border-top: 2px solid var(--ink); }
.notches li { flex: 1; min-width: 0; hyphens: auto; overflow-wrap: anywhere; position: relative; padding: .4rem .4rem 0 0; font-size: .85rem; line-height: 1.15; }
.notches li::before { content: ""; position: absolute; left: 0; top: -.5rem; height: 10px; border-left: 2px solid var(--ink); }
.notches li b { display: block; font-size: 1.1rem; }
.notches.five { border-top-color: var(--blue); }
.notches.five li::before { border-left-color: var(--blue); }

.sources { margin-top: 2.6rem; max-width: 62rem; }
.sources ul { margin: 0; padding-left: 1.2rem; font-size: .95rem; }
.sources li { margin-bottom: .4rem; }
.meta { font-size: .9rem; color: var(--mute); font-style: italic; }
.foot { background: var(--zebra); padding: 1.4rem clamp(1rem, 4vw, 2.5rem) 2.5rem; font-size: .9rem; color: var(--mute); }
.foot p { max-width: 1240px; margin: 0 auto .3rem; }

@media (max-width: 900px) {
  :root { --left: 0px; }
  .top { grid-template-columns: minmax(0, 1fr); }
  .top nav { flex-wrap: nowrap; overflow-x: auto; gap: 0 1rem; scrollbar-width: none; }
  .top nav a { white-space: nowrap; }
  .head { grid-template-columns: minmax(0, 1fr); }
  h1 { margin-bottom: .6rem; }
  .ruler { grid-template-columns: minmax(0, 1fr); }
  .ruler-left { display: none; }
  .row { grid-template-columns: minmax(0, 1fr); }
  .lhs { padding-bottom: 0; }
  /* On narrow screens the rail comes first, the label is plain text below it: nothing crosses the text */
  .tl { flex-direction: column-reverse; justify-content: flex-start; min-height: 0; margin: 0 .6rem; padding-top: 0; }
  .tl .rail { margin: .9rem 0 .5rem; }
  .tl .lab, .tl .lab.left { align-self: stretch; margin: 0; max-width: none; text-align: left; padding: 0 0 .2rem; }
  .tl.undated .lab { padding: .4rem 0 .2rem; }
  .extra { padding-left: .4rem; }
  .scales { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  html { font-size: 18px; }
  .ask { font-size: 1.15rem; }
  .ask input[type=text] { width: 100%; }
  .answer { font-size: 1.12rem; }
  .ovin { height: 200px; }
  .ruler-right .band span { display: none; }
  .ocut .long { display: none; }
  .ocut .short { display: inline; }
  .ocut i { font-size: .72rem; top: .2rem; }
  .ocut.new i { left: auto; right: .3rem; top: 1.6rem; width: auto; white-space: nowrap; color: var(--ink); background: var(--p-keys); }
  .ov figcaption { font-size: .85rem; }
}

/* ---- Site: pages beyond the search ---- */
.crumbs { margin: 0 0 .6rem; font-size: .9rem; font-style: italic; color: var(--mute); }
.crumbs a { color: var(--mute); }
.facts { margin: .2rem 0 0; color: var(--mute); font-size: .95rem; max-width: 60rem; }
.head + .facts { margin-top: .6rem; }
.answer + .facts { margin: -.4rem 0 1rem; }

/* Results in each row: the school, then its council and England */
.res { flex-basis: 100%; margin: 0 0 .1rem; font-size: .88rem; line-height: 1.35; }
.res > span { display: block; }
.res i { color: var(--mute); }
.res b { font-weight: 700; }
.res small { font-size: .85em; color: var(--mute); }
.res .miss { color: var(--mute); font-style: italic; }
.res .miss i { font-style: normal; }
.row.self { background: var(--tint); }
.row.nod .lhs { grid-template-columns: minmax(0, 1fr); }
.row.nod .extra { padding-left: .4rem; }

/* Overview for many schools: one column per month */
.hbars { position: absolute; left: 0; right: 0; top: 2.9rem; bottom: 30px; }
.hb { position: absolute; bottom: 0; min-height: 2px; background: var(--ink); border-left: 1px solid var(--paper); }
.hist .hu { position: absolute; left: 0; right: 0; top: 0; background: var(--paper); box-shadow: inset 0 0 0 1px var(--ink); }

/* The inspection and results, in detail */
.detail { margin-top: 2.4rem; max-width: 62rem; }
.detail h2 { font-size: 1.5rem; margin: 0 0 .5rem; }
.detail p { margin: .5rem 0; }
.fine { color: var(--mute); font-size: .92rem; }
.fiches { list-style: none; padding: 0; margin: .5rem 0; }
.fiches li { padding: .35rem 0; border-bottom: 1px solid var(--zebra); }
table.grades, table.cmp { border-collapse: collapse; width: 100%; font-size: .95rem; }
.grades caption, .cmp caption { text-align: left; font-style: italic; color: var(--mute); padding-bottom: .4rem; }
.grades th, .grades td, .cmp th, .cmp td { text-align: left; padding: .45rem .6rem; vertical-align: middle; }
.grades thead th, .cmp thead th { font-weight: 400; font-style: italic; color: var(--mute); font-size: .85rem; border-bottom: 2px solid var(--ink); }
.grades tbody tr:nth-child(odd), .cmp tbody tr:nth-child(odd) { background: var(--zebra); }
.grades tbody th, .cmp tbody th { font-weight: 400; }
.grades td:last-child { font-weight: 700; }
.cmp td { white-space: nowrap; }
.cmp td.here { font-weight: 700; color: var(--blue); }
.defil { overflow-x: auto; max-width: 100%; }
.ends { display: flex; justify-content: space-between; gap: 1rem; width: 10rem; font-size: .75rem; }
.notch5, .notch4 { display: flex; width: 10rem; border-top: 2px solid var(--ink); }
.notch5 { border-top-color: var(--blue); }
.notch5 span, .notch4 span { flex: 1; height: 12px; position: relative; }
.notch5 span::before, .notch4 span::before { content: ""; position: absolute; left: 50%; top: 0; height: 10px; margin-left: -1px; border-left: 2px solid var(--ink); }
.notch5 span::before { border-left-color: var(--blue); }
.notch5 span.on::after, .notch4 span.on::after { content: ""; position: absolute; left: 50%; top: -8px; width: 13px; height: 13px; margin-left: -6.5px; transform: rotate(45deg); background: var(--ink); }
.notch5 span.on::after { background: #fff; border: 2px solid var(--ink); transform: none; width: 15px; height: 15px; margin-left: -7.5px; top: -9px; }

/* Text pages and the text under the search */
.prose { max-width: 44rem; margin-top: 2.6rem; }
.prose.page { margin-top: 0; }
.prose h1 { margin-bottom: 1rem; }
.prose h2 { font-size: 1.4rem; margin: 2rem 0 .4rem; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.1rem; margin: 1.4rem 0 .3rem; }
.prose p, .prose li { margin: 0 0 .7rem; }
.prose table { border-collapse: collapse; width: 100%; font-size: .9rem; margin: .6rem 0 1.2rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: .4rem .6rem; vertical-align: top; }
.prose thead th { border-bottom: 2px solid var(--ink); font-style: italic; font-weight: 400; color: var(--mute); }
.prose tbody tr:nth-child(odd) { background: var(--zebra); }
.doors { margin-top: 2.4rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.4rem; max-width: 62rem; }
.doors a { display: block; padding: .7rem 0; color: var(--mute); text-decoration: none; border-top: 2px solid var(--ink); min-height: 44px; }
.doors a b { display: block; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; font-size: 1.1rem; }
.cities { margin-top: 2.6rem; max-width: 62rem; }
.cities h2 { font-size: 1.5rem; margin: 0 0 .4rem; }
.cities ul { list-style: none; margin: 0; padding: 0; columns: 2 24rem; column-gap: 2.4rem; font-size: .95rem; }
.cities li { break-inside: avoid; padding: .3rem 0; }
.cities b { display: block; }
.cities a { display: inline-block; min-height: 32px; padding: .1rem 0; }
.also { margin-top: 1.6rem; }
.more a { min-height: 44px; }
.foot a { color: var(--mute); }

@media (max-width: 900px) {
  .doors { grid-template-columns: minmax(0, 1fr); }
  .ends, .notch5, .notch4 { width: 7rem; }
}
@media (max-width: 560px) {
  .grades th, .grades td, .cmp th, .cmp td { padding: .4rem .3rem; }
  .ends { display: none; }
  .notch5, .notch4 { width: 4.6rem; }
  .cmp { font-size: .85rem; }
  .cmp td { white-space: normal; }
  .hist .ovin { height: 200px; }
}
