/* IRSI site style. One stylesheet for every page except the live-system page.
   Newsreader throughout (its optical sizes give the display cut for titles), system mono for data.
   Light and dark themes. */
:root{--ink:#151412;--paper:#F8F6F1;--muted:#5C574F;--faint:#8A857C;--rule:#DDD8CE;--card:#FFFDF9;--mono:ui-monospace,"SF Mono",Menlo,Consolas,monospace;color-scheme:light}
:root[data-theme="dark"]{--ink:#ECE8E0;--paper:#12110F;--muted:#B8B2A7;--faint:#7E796F;--rule:#2F2C27;--card:#191815;color-scheme:dark}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--ink:#ECE8E0;--paper:#12110F;--muted:#B8B2A7;--faint:#7E796F;--rule:#2F2C27;--card:#191815;color-scheme:dark}}

*{box-sizing:border-box}
html{background:var(--paper);-webkit-text-size-adjust:100%}
body{margin:0;background:var(--paper);color:var(--ink);font-family:'Newsreader',Georgia,serif;font-size:18px;line-height:1.6}
.wrap{max-width:976px;margin:0 auto;padding:0 max(16px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(16px,env(safe-area-inset-left))}
@media (min-width:761px){.wrap{padding-left:48px;padding-right:48px}}
a{color:var(--ink);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px;text-decoration-color:var(--faint)}
a:hover{text-decoration-color:var(--ink)}
a:focus-visible,summary:focus-visible,button:focus-visible{outline:2px solid var(--ink);outline-offset:3px;border-radius:2px}
p{margin:0 0 14px}
p:last-child{margin-bottom:0}
sup,sub{line-height:0}
code,.hash{font-family:var(--mono);font-size:.8em;overflow-wrap:anywhere}
.hash{word-break:break-all}
.sc{font-size:13px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);font-weight:400}
.serif{font-family:'Newsreader',Georgia,serif}

/* masthead and navigation */
.mast{position:relative;padding:40px 0 0;display:flex;flex-direction:column;align-items:center;text-align:center}
a.brand{display:flex;flex-direction:column;align-items:center;gap:12px;text-decoration:none}
a.brand svg{width:60px;height:60px;color:var(--ink)}
.brand-name{font-family:'Newsreader',Georgia,serif;font-size:26px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;line-height:1.2}
.nav{width:100%;display:flex;justify-content:center;flex-wrap:wrap;column-gap:28px;margin-top:22px;border-top:1px solid var(--ink);border-bottom:1px solid var(--rule)}
.nav a{white-space:nowrap;display:inline-flex;align-items:center;min-height:48px;text-decoration:none;font-size:13px;letter-spacing:.14em;text-transform:uppercase}
.nav a[aria-current="page"]{color:var(--muted);text-decoration:underline;text-decoration-color:var(--faint);text-underline-offset:6px}
.theme-toggle{-webkit-appearance:none;appearance:none;position:absolute;top:max(8px,env(safe-area-inset-top));right:0;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;margin:0;background:transparent;border:0;border-radius:50%;color:var(--muted);cursor:pointer;opacity:.75}
.theme-toggle:hover{opacity:1}
.theme-toggle:focus:not(:focus-visible){outline:none}
.theme-toggle svg{width:16px;height:16px;display:block}

/* page body */
main{max-width:880px;margin:0 auto;padding:44px 0 72px}
.head{margin-bottom:40px}
.head h1{font-family:'Newsreader',Georgia,serif;font-weight:400;font-size:clamp(38px,5vw,54px);line-height:1.08;margin:0 0 16px}
.lede{font-size:19px;color:var(--muted)}
.jump{display:flex;flex-wrap:wrap;gap:4px 20px;margin:20px 0 0;padding:0;list-style:none;font-size:15px}
.jump a{display:inline-block;padding:6px 0}

/* entries */
.entry{border-top:1px solid var(--ink);padding:32px 0 36px;scroll-margin-top:12px}
.entry>.sc{display:block;margin-bottom:8px}
.entry h2{font-family:'Newsreader',Georgia,serif;font-weight:500;font-size:clamp(26px,3.2vw,32px);line-height:1.18;margin:0 0 10px}
.status{font-size:15px;line-height:1.5;color:var(--muted);margin:0 0 18px}
.check{background:var(--card);border:1px solid var(--rule);border-radius:3px;padding:16px 18px;margin:20px 0 6px;font-size:16px}
.check>.sc{display:block;margin-bottom:8px}
.check details{border:0;margin-top:6px}
.check details>summary{padding:6px 0;font-size:13px}
ul.lim,ol.fn{margin:0 0 14px;padding-left:1.2em}
ul.lim li,ol.fn li{margin:0 0 8px}
ol.fn{list-style:none;padding-left:0;font-size:16px;color:var(--muted)}

/* collapsible detail sections */
details{border-top:1px solid var(--rule)}
details+details{border-top:1px solid var(--rule)}
.entry>details:last-child{border-bottom:1px solid var(--rule)}
details>summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:10px;min-height:44px;padding:8px 0;font-size:13px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
details>summary::-webkit-details-marker{display:none}
details>summary::before{content:"+";font-family:var(--mono);font-size:15px;letter-spacing:0;width:1em;text-align:center;color:var(--faint)}
details[open]>summary::before{content:"\2212"}
details[open]>summary{color:var(--ink)}
details>.body{padding:2px 0 18px}
details h3{font-size:13px;letter-spacing:.16em;text-transform:uppercase;color:var(--muted);font-weight:400;margin:14px 0 8px}

/* tables */
.scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:6px 0 16px}
table{border-collapse:collapse;width:100%;font-size:16px;line-height:1.45}
th{text-align:left;font-weight:400;font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);padding:0 16px 10px 0;border-bottom:1px solid var(--ink);vertical-align:bottom}
td{padding:10px 16px 10px 0;border-bottom:1px solid var(--rule);vertical-align:top}
th:last-child,td:last-child{padding-right:0}
td.n,th.n{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
td.chg{font-variant-numeric:tabular-nums;white-space:nowrap}
td.src{font-size:14px;color:var(--muted);min-width:220px}
tr.fam td{padding-top:22px;font-style:italic;color:var(--muted)}
.obj{font-style:italic;white-space:nowrap}
.was{color:var(--muted);text-decoration:line-through;text-decoration-color:var(--faint);white-space:nowrap}
.scroll-cue{display:none;font-size:14px;font-style:italic;color:var(--muted);margin:0 0 4px}
@media (max-width:760px){.scroll-cue{display:block}}

/* home */
.hero{padding:20px 0 36px;text-align:center}
.hero h1{font-family:'Newsreader',Georgia,serif;font-weight:400;font-size:clamp(32px,4.4vw + 10px,56px);line-height:1.12;max-width:26ch;margin:0 auto}
.home-sec{border-top:1px solid var(--ink);padding:28px 0 36px}
.home-sec>h2{margin:0 0 14px}
.mini{margin:0;padding:0;list-style:none}
.mini li{padding:14px 0;border-bottom:1px solid var(--rule);line-height:1.5}
.mini li:last-child{border-bottom:0}
.mini .tag{display:block;font-size:15px;color:var(--muted);margin-top:4px}
.note{font-size:16px;color:var(--muted)}

/* footer */
.foot{border-top:1px solid var(--ink);padding:28px 0 48px;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:6px 26px;font-size:15px;color:var(--muted);text-align:center}
.foot a{display:inline-block;padding:6px 0}

figure{margin:8px 0 16px}
figure img{display:block;width:100%;max-width:440px;height:auto}
figcaption{font-size:14px;color:var(--muted);margin-top:4px}

@media (max-width:760px){
body{font-size:17px}
.mast{padding-top:28px}
a.brand svg{width:48px;height:48px}
.brand-name{font-size:18px;letter-spacing:.1em;max-width:16em}
.nav{column-gap:16px;justify-content:center}
.nav a{font-size:12.5px;min-height:44px}
main{padding:36px 0 56px}
.head{margin-bottom:28px}
.entry{padding:26px 0 28px}
.check{padding:14px 14px}
table{font-size:15px}
}
@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media print{.theme-toggle,.nav{display:none}details>.body{display:block}}
.entry.flush{border-top:0;padding-top:0}
h3.sub{margin:24px 0 10px}
table.wide{min-width:880px}
table.wide td.src{min-width:320px}
table.wide td:nth-child(2),table.wide td:nth-child(3){white-space:nowrap}
main.wide-main{max-width:none}
main.wide-main p,main.wide-main ol.fn{max-width:35rem}

/* Layout per common standards (2026-10-06): GOV.UK page width 1020px with running text in a left-aligned
   column of about 70 characters (GOV.UK at most 75; USWDS 66 ideal, 90 max; WCAG 1.4.8 at most 80);
   headings at or below 46px; a one-row header so content starts high on laptop screens. */
.wrap{max-width:1116px}
main{max-width:1020px;padding:36px 0 72px}
main p,main li,.lede,.status,.head h1,.entry h2,.entry>.sc,.check,main details,.jump,.home-sec>h2,.mini{max-width:35rem}
main .scroll,main table,main figure{max-width:none}
.head{margin-bottom:28px}
.head h1{font-size:clamp(34px,3.2vw + 8px,44px);margin-bottom:12px}
.entry h2{font-size:clamp(24px,2.2vw + 8px,30px)}
.hero{padding:12px 0 28px;text-align:left}
.hero h1{font-size:clamp(32px,2.6vw + 12px,46px);max-width:22ch;margin:0}
@media (min-width:761px){
 .mast{flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 24px;padding:18px 0 0;text-align:left;border-bottom:1px solid var(--ink)}
 a.brand{flex-direction:row;gap:12px}
 a.brand svg{width:34px;height:34px}
 .brand-name{font-size:15px;letter-spacing:.1em}
 .nav{width:auto;margin-top:0;border:0;column-gap:20px;justify-content:flex-end;flex:1 1 auto}
 .theme-toggle{position:static;order:3;margin-left:-8px}
}

/* wide screens: text column on the left, navigation in a sticky right column (documentation-site pattern),
   header on one row. */
@media (min-width:1100px){
 .mast{flex-wrap:nowrap}
 .brand-name{font-size:14px;letter-spacing:.08em;white-space:nowrap}
 .theme-toggle{margin-left:0}
 .nav{column-gap:20px;flex-wrap:nowrap}
 main:not(.wide-main){display:grid;grid-template-columns:minmax(0,35rem) minmax(0,1fr);column-gap:80px;align-items:start}
 main:not(.wide-main)>*{grid-column:1}
 main:not(.wide-main)>.head{display:contents}
 main:not(.wide-main)>.head>*{grid-column:1}
 main:not(.wide-main) .jump{grid-column:2;grid-row:1 / span 60;position:sticky;top:28px;align-self:start;display:flex;flex-direction:column;gap:2px;margin:10px 0 0;padding:0 0 0 20px;border-left:1px solid var(--rule)}
 main:not(.wide-main) .jump::before{content:"On this page";font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);margin-bottom:8px}
 main:not(.wide-main) .jump a{padding:3px 0}
 main:not(.wide-main) .scroll{grid-column:1 / -1}
 main:not(.wide-main)>.hero{grid-column:1 / -1}
}

/* headings: Newsreader's display optical size, a touch tighter */
.hero h1,.head h1,.entry h2{font-optical-sizing:auto;letter-spacing:-.01em}
a.brand svg{color:var(--ink)}

/* home page: headline and one-sentence summary, then results on the left and a quiet sidebar on the right.
   Spacing separates entries; the only rules are under the header and above each results group. */
.home .hero{padding:16px 0 56px}
.home .hero h1{font-size:clamp(30px,2.8vw + 16px,52px);line-height:1.1;max-width:30ch;text-wrap:balance}
.home .lede{max-width:40rem;margin:20px 0 0;font-size:19px;line-height:1.55}
.home .home-sec{border-top:0;padding:0 0 40px}
.home .home-sec>h2{margin:0 0 4px}
.grp{font-size:16px;font-weight:400;font-style:italic;color:var(--muted);margin:28px 0 0;padding-bottom:8px;border-bottom:1px solid var(--rule);max-width:35rem}
.home .mini li{padding:26px 0 0;border:0}
.home .mini li p{margin:2px 0 0}
.home .mini a.t{font-weight:500;text-decoration:none;font-size:19px}
.home .mini a.t:hover{text-decoration:underline;text-decoration-color:var(--faint)}
.home .meta{font-size:15px;line-height:1.5;color:var(--muted);margin-top:6px!important}
.home .meta a{color:inherit}
.home .side .note{font-size:16px;line-height:1.55}
.home .side .note+.note{margin-top:10px}
.home .mini.links li{padding:10px 0 0;font-size:16px;line-height:1.45}
.home .side .home-sec>h2{margin-bottom:10px}
@media (max-width:760px){
 .home .hero{padding:4px 0 40px}
 .home .lede{font-size:17px}
 .home .mini a.t{font-size:18px}
 .home .side{border-top:1px solid var(--rule);padding-top:32px}
}
@media (min-width:900px){
 .home main{display:grid;grid-template-columns:minmax(0,35rem) minmax(0,1fr);column-gap:clamp(56px,7vw,96px);align-items:start}
 .home main>.hero{grid-column:1 / -1}
 .home main>#records{grid-column:1;grid-row:2}
 .home main>.side{grid-column:2;grid-row:2;max-width:22rem;padding-top:2px}
}

/* masthead: logo and theme toggle on the first row, navigation on its own row, so it can never overflow */
@media (min-width:761px){
 .mast{display:grid;grid-template-columns:1fr auto;align-items:center;row-gap:0;padding-top:20px;border-bottom:1px solid var(--ink)}
 .theme-toggle{grid-column:2;grid-row:1;margin:0 -10px 0 0}
 a.brand{grid-column:1;grid-row:1}
 .brand-name{font-size:14px;letter-spacing:.1em;white-space:nowrap}
 .nav{grid-column:1 / -1;grid-row:2;justify-content:flex-start;flex-wrap:wrap;column-gap:28px;margin-top:10px}
 .nav a{font-size:12.5px;min-height:40px}
}

/* phones: logo, name and toggle on one row; navigation below */
@media (max-width:760px){
 .mast{flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:wrap;padding-top:14px;text-align:left}
 a.brand{flex-direction:row;gap:10px}
 a.brand svg{width:34px;height:34px}
 .brand-name{font-size:12.5px;letter-spacing:.1em;max-width:15em;line-height:1.35}
 .theme-toggle{position:static;order:2;margin-right:-10px}
 .nav{order:3;margin-top:12px;justify-content:flex-start;column-gap:18px}
}
