:root {
  color-scheme: light;
  --paper: #f7f6f0;
  --surface: #fffefa;
  --ink: #172c25;
  --muted: #4d6057;
  --forest: #173c35;
  --accent: #255c46;
  --line: #c7cdc1;
  --rule: #839487;
  --tint: #e5ebdf;
  --serif: 'STIX Two Text', Georgia, serif;
  --sans: 'Source Sans 3', system-ui, sans-serif;
  font: 16px/1.48 var(--sans);
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); }
.wrap { width: min(1180px, calc(100% - clamp(2rem, 7vw, 6rem))); margin-inline: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .19em; }
a:hover { text-decoration-thickness: 2px; }
.masthead { background: var(--forest); color: #fffdf4; }
.masthead-inner, footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .93rem; }
.masthead a { color: inherit; text-decoration: none; }
.masthead a:hover { text-decoration: underline; }
.home { font-weight: 750; letter-spacing: -.025em; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(.75rem, 3vw, 2rem); font-size: .87rem; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h1, h2 { font-family: var(--serif); font-weight: 500; line-height: 1.03; }
h1 { font-size: clamp(3.05rem, 7.8vw, 6.8rem); letter-spacing: -.062em; }
h1 em { font-weight: inherit; color: var(--accent); }
h2 { font-size: clamp(1.9rem, 3.8vw, 3.1rem); letter-spacing: -.045em; }
h3 { font-size: 1.08rem; line-height: 1.25; }
.opening { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); gap: clamp(1.4rem, 3vw, 3rem); align-items: center; padding: clamp(1.35rem, 3vw, 2.8rem) 0; }
.introduction p { max-width: 56ch; font-size: clamp(1rem, 1.8vw, 1.2rem); margin: 1rem 0; }
.directory-link { font-weight: 650; font-size: .94rem; }
.featured-record { padding: clamp(1rem, 2.8vw, 2rem); background: var(--tint); border-top: 3px solid var(--accent); overflow-wrap: anywhere; }
.featured-record h2, .featured-record h3 { font: 500 clamp(1.4rem, 2.8vw, 2.1rem)/1.15 var(--serif); letter-spacing: -.03em; }
.featured-record :where(p, time, h2, h3, a) + :where(p, time, h2, h3, a) { margin-top: .55rem; }
.featured-record time { display: inline-block; color: var(--muted); font: 650 .83rem/1.4 var(--sans); }
.featured-record a { display: inline-block; font-weight: 650; }
.desk, .coverage { border-top: 2px solid var(--forest); padding: clamp(1.2rem, 3vw, 2.2rem) 0 clamp(2rem, 4vw, 3.4rem); scroll-margin: 1rem; }
.section-top { display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
.section-top p:not(.edition) { color: var(--muted); margin-top: .55rem; max-width: 66ch; }
.edition, .load-status, .note, .result-bar { color: var(--muted); font-size: .86rem; }
.edition { text-align: right; font-variant-numeric: tabular-nums; }
.search-controls, .compare-controls { display: grid; grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, 1fr)); gap: .8rem 1rem; margin: 1.25rem 0 1rem; }
.compare-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
label { display: grid; align-content: end; min-width: 0; gap: .23rem; font-size: .85rem; font-weight: 650; }
input, select, button { font: inherit; }
input, select { width: 100%; min-width: 0; min-height: 44px; border: 1px solid #85968a; border-radius: 4px; color: var(--ink); background: var(--surface); padding: .55rem .65rem; font-size: .95rem; }
button { color: #fffdf4; background: var(--forest); border: 1px solid var(--forest); border-radius: 4px; min-height: 42px; padding: .46rem .85rem; font-weight: 640; cursor: pointer; }
button.quiet { color: var(--accent); border-color: var(--line); background: var(--surface); }
button:hover:enabled { filter: brightness(.92); }
button:disabled { opacity: .5; cursor: default; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 3px solid #b5642c; outline-offset: 3px; }
.result-bar, .list-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem 1.2rem; }
.result-bar { min-height: 2.1rem; margin-bottom: .3rem; }
.result-bar button { min-height: 32px; font-size: .8rem; }
.list-actions { margin-top: 1rem; }
.list-actions button { font-size: .9rem; }
.operator-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .5rem 1rem; padding: .85rem .85rem; border-bottom: 1px solid var(--line); }
.operator-row:nth-child(odd) { background: var(--surface); }
.operator-row h3 { font-size: 1rem; }
.operator-row p, .meta { margin-top: .27rem; color: var(--muted); font-size: .86rem; }
.operator-row button { min-height: 36px; font-size: .85rem; }
.preview { background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--accent); padding: 1rem clamp(1rem, 3vw, 2rem); margin: .7rem 0 1rem; overflow-wrap: anywhere; }
.preview-heading { display: flex; justify-content: space-between; align-items: start; gap: .65rem; }
.preview-heading h3 { font: 500 clamp(1.45rem, 2.6vw, 2rem)/1.13 var(--serif); }
.preview-heading button { min-height: 34px; font-size: .8rem; }
.preview h4 { margin: 1.1rem 0 .2rem; font-size: .95rem; }
.preview ul { padding-left: 1.1rem; margin: .35rem 0 .6rem; }
.preview li { margin-bottom: .55rem; }
.preview .profile { display: inline-block; margin-top: .6rem; font-weight: 650; }
.reg-match { border-left: 3px solid var(--rule); padding: .65rem 1rem; background: var(--tint); margin-bottom: .65rem; }
.reg-match h3 { font-size: .95rem; }
.reg-match p, .reg-match a { font-size: .85rem; }
.reg-match a { display: inline-block; margin-top: .2rem; }
.empty { padding: 1rem; background: var(--surface); border: 1px solid var(--line); }
.comparison-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; table-layout: fixed; overflow-wrap: anywhere; }
th, td { padding: .7rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--forest); color: #fffdf4; line-height: 1.3; }
tbody th { font-size: .9rem; }
thead th:first-child { width: 25%; }
tbody tr:nth-child(odd) { background: var(--surface); }
td { font-size: .92rem; }
td a { display: block; width: fit-content; margin-bottom: .25rem; }
.note { margin-top: .8rem; max-width: 85ch; }
.coverage { display: grid; grid-template-columns: .8fr 1.2fr; gap: 1.25rem 2rem; }
.coverage-copy p + p { margin-top: .65rem; }
footer { border-top: 1px solid var(--rule); color: var(--muted); font-size: .88rem; }
.skip { position: absolute; z-index: 2; top: -5rem; left: .6rem; padding: .5rem; color: var(--ink); background: var(--surface); }
.skip:focus { top: .5rem; }
[hidden] { display: none !important; }
@media(max-width: 700px) {
  .opening { grid-template-columns: 1fr; gap: 1rem; padding-block: 1.2rem; }
  .introduction p { margin: .65rem 0 .4rem; }
  .featured-record { padding: .8rem 1rem; }
  .section-top { align-items: start; flex-direction: column; gap: .4rem; }
  .edition { text-align: left; }
  .search-controls { grid-template-columns: 1fr 1fr; gap: .65rem; margin-block: .8rem; }
  .search-controls label:first-child { grid-column: 1/-1; }
  .coverage { grid-template-columns: 1fr; }
  th,td { padding: .55rem .45rem; }
  .masthead-inner, footer .wrap { flex-wrap: wrap; }
}
@media(max-width: 380px) {
  .wrap { width: calc(100% - 1.5rem); }
  .masthead nav { gap: .6rem; font-size: .78rem; }
  .compare-controls { grid-template-columns: 1fr; }
  .operator-row { padding-inline: .45rem; }
}
.feature-label { display: inline-block; font-weight: 700; font-size: .8rem; margin-right: .7rem; }
.featured-record .feature-label + time { margin-top: 0; }
.profile { max-width: 920px; padding-block: clamp(1.5rem, 5vw, 3.4rem); overflow-wrap: anywhere; }
.profile h1 { font-size: clamp(2.6rem, 6.6vw, 5.2rem); max-width: 22ch; line-height: 1.03; }
.profile h1 + p { margin-top: .7rem; font-size: 1.08rem; }
.profile h2 { padding-top: 1rem; border-top: 1px solid var(--rule); margin: clamp(1.5rem, 4vw, 2.5rem) 0 .7rem; font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
.profile p { max-width: 82ch; }
.profile p + p { margin-top: .55rem; }
.profile li + li { margin-top: .5rem; }
.profile article { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); padding: 1rem 1.2rem; margin: .65rem 0; }
.profile article h3 { font-size: 1.15rem; margin-bottom: .25rem; }
.profile article h3 + p { color: var(--muted); font-size: .87rem; }
.record-index { list-style: none; columns: 2 20rem; padding: 0; border-top: 1px solid var(--rule); }
.record-index li, .record-index li + li { padding: .55rem .25rem; margin: 0; break-inside: avoid; border-bottom: 1px solid var(--line); }
footer.wrap { padding-block: 1rem; }

/* Each column represents one published expiry month on the same count scale. */
.expiry-desk { background:#183b34; color:#fbfbec; border-radius:.5rem; padding:clamp(1rem,3vw,2rem); margin:1.4rem 0 1rem; }
.profile .expiry-desk h2 { border:0; padding:0; margin:0 0 .65rem; }
.expiry-desk p { color:#e8efe3; }
.chart-key { display:flex; flex-wrap:wrap; gap:.6rem 1.3rem; list-style:none; padding:0; margin:1rem 0; font-size:.9rem; }
.chart-key li { display:flex; gap:.45rem; align-items:center; margin:0; }
.chart-key i { width:.85rem; height:.85rem; display:inline-block; }
.band-B2C { background:#82caaa; }
.band-B2B { background:#f1b875; }
.band-Unspecified { background:#d4cfdf; }
.expiry-bars { display:grid; grid-template-columns:repeat(auto-fit,minmax(40px,1fr)); gap:.5rem .28rem; }
.expiry-bar { display:grid; grid-template-rows:auto 65px auto auto; align-content:end; text-align:center; color:inherit; text-decoration:none; padding:.25rem .12rem; border:1px solid transparent; border-radius:.25rem; font-variant-numeric:tabular-nums; }
.expiry-bar:hover,.expiry-bar[aria-current] { background:#254d43; border-color:#93c1b1; }
.expiry-bar .bar-count { font-weight:700; }
.bar-track { display:flex; flex-direction:column-reverse; width:72%; margin:auto auto 0; height:100%; background:#24483e; border-bottom:1px solid #93b2a3; }
.band { flex:none; display:block; }
.bar-month { margin-top:.2rem; font-size:.86rem; }
.expiry-bar small { font-size:.75rem; color:#d0e1d4; }
.licence-filters { display:grid; grid-template-columns:minmax(0,1.65fr) repeat(2,minmax(0,1fr)) auto; gap:.55rem; align-items:end; }
#holder-status { margin:.8rem 0; }
.holder-table { margin-bottom:1rem; }
.holder-table thead th:first-child { width:52%; }
.holder-table thead th:nth-child(2) { width:14%; }
.holder-table .month-heading { background:var(--tint); }
.month-heading th { color:var(--accent); font-size:.92rem; }
.evidence-rail { list-style:none; padding:0; margin:1rem 0; }
.profile .evidence-rail li { display:grid; grid-template-columns:minmax(7em,auto) minmax(0,1fr); align-items:baseline; gap:.5rem 1rem; margin:0; border-left:3px solid #588873; padding:.45rem .7rem .7rem 1.1rem; position:relative; }
.evidence-rail li::before { content:""; position:absolute; left:-.4rem; top:.95rem; width:.65rem; height:.65rem; border-radius:50%; background:var(--accent); }
.evidence-rail time { font-variant-numeric:tabular-nums; font-weight:650; }
.evidence-rail a { display:block; }
@media(max-width:620px) {
  .licence-filters {grid-template-columns:1fr 1fr;}
  .licence-filters label:first-child {grid-column:1/-1;}
  .expiry-bars {grid-template-columns:repeat(auto-fit,minmax(38px,1fr));}
  .expiry-bar {grid-template-rows:auto 45px auto auto;}
  .holder-table thead th:first-child {width:47%;}
  .holder-table thead th:nth-child(2) {width:15%;}
  .profile .evidence-rail li {grid-template-columns:1fr; gap:.05rem;}
}


.featured-record + .coverage { margin-top:1.5rem; }
@media(max-width:700px) {
  .opening .introduction h1 { font-size:clamp(2.4rem,7.2vw,3.1rem); }
  .opening .introduction h1 br { display:none; }
  .opening .introduction h1 em::before { content:" "; }
}

.source-picker { min-width:0; padding:clamp(1rem,2.4vw,1.65rem); border-radius:.45rem; background:var(--forest); color:#f7f6ec; }
.source-picker h2 { font-size:clamp(1.65rem,3vw,2.4rem); }
.source-picker > p { margin:.45rem 0 .7rem; font-size:.92rem; color:#dce5dc; }
.source-picker nav { display:flex; gap:.4rem; }
.source-picker nav a { padding:.4rem .6rem; font-size:.85rem; border:1px solid #88a397; border-radius:.3rem; color:#f6f5e9; text-decoration:none; }
.source-picker nav a[aria-current] { background:#dbebbd; color:#17392f; border-color:#dbebbd; }
.source-panel { margin-top:.85rem; padding-top:.8rem; border-top:1px solid #768f83; }
.source-panel h3 { font-size:1.1rem; }
.source-panel dl { display:flex; flex-wrap:wrap; gap:.65rem 1.4rem; margin:.5rem 0; }
.source-panel dl div { display:flex; flex-direction:column-reverse; }
.source-panel dt, .source-edition { font-size:.8rem; color:#dce5dc; }
.source-panel dd { margin:0; font:1.6rem/1.15 var(--serif); }
.source-panel p:not(.source-edition), .source-links { font-size:.88rem; }
.source-links { margin:.45rem 0; }
.source-links a { color:#d7f3cc; }
.register-years { max-width:48rem; margin:1.8rem 0; }
.register-years > p { margin:.5rem 0; }
.register-years details { border-top:1px solid var(--line); }
.register-years details:last-child { border-bottom:1px solid var(--line); }
.register-years summary { list-style:none; cursor:pointer; display:grid; grid-template-columns:minmax(6rem,auto) 1fr auto; gap:.7rem; align-items:center; padding:.55rem 0; }
.register-years summary::-webkit-details-marker { display:none; }
.register-years summary span:first-child::before { content:"▸ "; color:var(--accent); }
.register-years details[open] summary span:first-child::before { content:"▾ "; }
.year-track { display:block; background:var(--tint); }
.year-track i { display:block; height:.66rem; background:#486f59; }
.register-years details ul { padding:0 0 .5rem 1.2rem; scroll-margin-top:3rem; }
.register-years summary span:last-child { font-variant-numeric:tabular-nums; font-size:.9rem; }
.source-picker a:focus-visible { outline:3px solid #ffe49f; outline-offset:2px; }
