/* Thames Environment — compliance guideline portal
   Palette: Thames green, river teal, ochre for dates, cool mist for bands. */
:root {
  --green-900: #11352b;
  --green-700: #1d5a47;
  --green-100: #e3efe8;
  --green-050: #f0f6f3;
  --teal: #1f6b7a;
  --teal-dark: #164f5b;
  --ochre: #b8730a;
  --ochre-100: #fbf1dc;
  --ochre-800: #6f4504;
  --ink: #1b2a24;
  --muted: #5b6f66;
  --line: #d9e2dd;
  --mist: #f3f6f4;
  --white: #ffffff;
  --red: #9b2335;
  --blue: #1f4e8c;
  --purple: #6b4c9a;
  --font-body: "IBM Plex Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --radius: 6px;
  --wrap: 1200px;
  --gutter: 20px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--white); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { body { font-size: 16px; } :root { --gutter: 16px; } .brand-tag { display: none; } .brand-name { font-size: 1.15rem; } .brand-mark { width: 34px; height: 34px; } }
img, svg { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--teal-dark); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; color: var(--green-900); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.45rem, 1.2rem + .9vw, 1.9rem); margin-top: 0; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.small { font-size: .875rem; color: var(--muted); }
.mt { margin-top: 2rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ochre-100); color: var(--ink); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid #e4a51d; outline-offset: 2px; box-shadow: 0 0 0 5px var(--ink); }
.linklike { background: none; border: 0; padding: 0; color: var(--teal); text-decoration: underline; cursor: pointer; font: inherit; }

/* Buttons */
.button { display: inline-block; font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1.2; padding: .8rem 1.2rem; border-radius: var(--radius); border: 2px solid transparent; text-decoration: none; cursor: pointer; }
.button-primary { background: var(--green-900); color: #fff; border-color: var(--green-900); }
.button-primary:hover { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.button-ghost { background: #fff; color: var(--green-900); border-color: var(--green-900); }
.button-ghost:hover { background: var(--green-050); color: var(--green-900); }

/* Top bar + header */
.topbar { background: var(--green-900); color: #d7e8e0; font-size: .85rem; }
.topbar-inner { display: flex; justify-content: space-between; gap: 1rem; padding-top: .35rem; padding-bottom: .35rem; }
.topbar a { color: #fff; font-weight: 600; white-space: nowrap; }
@media (max-width: 640px) { .topbar-inner span { display: none; } .topbar-inner { justify-content: center; } }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 68px; flex-wrap: wrap; max-width: 1320px; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--green-900); margin-right: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; }
.brand-tag { font-size: .72rem; color: var(--muted); }
.nav-toggle { display: none; font: inherit; font-weight: 600; background: #fff; border: 2px solid var(--green-900); color: var(--green-900); border-radius: var(--radius); padding: .4rem .8rem; }
.site-nav { display: flex; align-items: center; gap: 1rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .15rem; }
.site-nav li a { display: block; padding: .5rem .5rem; color: var(--ink); text-decoration: none; font-weight: 500; border-radius: var(--radius); font-size: .93rem; }
.site-nav li a:hover { background: var(--green-050); }
.site-nav li a[aria-current="page"] { color: var(--green-900); box-shadow: inset 0 -3px 0 var(--green-700); border-radius: 0; }
@media (max-width: 1080px) { .site-nav li a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--green-700); padding-left: .9rem; } }
.header-search { position: relative; display: flex; align-items: center; }
.header-search input { width: 184px; padding: .5rem 2.2rem .5rem .75rem; border: 1px solid var(--line); border-radius: 999px; font: inherit; font-size: .9rem; background: var(--mist); }
.header-search button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--green-900); padding: .3rem; cursor: pointer; display: flex; }
.header-cta { padding: .55rem .9rem; font-size: .92rem; }
@media (max-width: 1080px) {
  .site-header { position: static; }
  .side-sticky { position: static; }
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding: .5rem 0 1rem; border-top: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav li a { padding: .7rem .5rem; font-size: 1rem; }
  .header-search input { width: 100%; }
  .header-cta { text-align: center; }
}

/* Search suggest */
.search-suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(17, 53, 43, .12); z-index: 60; max-height: 360px; overflow: auto; }
.search-suggest a { display: block; padding: .55rem .8rem; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--mist); font-size: .92rem; }
.search-suggest a:hover, .search-suggest a.active { background: var(--green-050); }
.search-suggest .sugg-type { color: var(--muted); font-size: .78rem; margin-left: .4rem; }
.search-suggest .sugg-more { color: var(--teal); font-weight: 600; }

/* Hero */
.hero { background: var(--mist); border-bottom: 1px solid var(--line); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520' viewBox='0 0 520 520'%3E%3Cg fill='none' stroke='%2311352b' stroke-opacity='.09' stroke-width='1.2'%3E%3Cpath d='M60 480c80-120 60-220 160-300s170-60 300-170'/%3E%3Cpath d='M20 500c90-130 70-250 170-330s190-70 330-190'/%3E%3Cpath d='M100 460c70-110 50-190 150-270s150-50 270-150'/%3E%3Cpath d='M140 440c60-100 40-160 140-240s130-40 240-130'/%3E%3Cpath d='M180 420c50-90 30-130 130-210s110-30 210-110'/%3E%3C/g%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right -80px top -60px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem; padding-top: 3.5rem; padding-bottom: 3.5rem; align-items: start; }
.hero h1 { max-width: 20ch; }
.lede { font-size: 1.15rem; line-height: 1.55; max-width: 62ch; color: #2d3f38; }
.hero-search { position: relative; display: flex; gap: .5rem; max-width: 620px; margin: 1.5rem 0 .75rem; }
.hero-search input { flex: 1; min-width: 0; padding: .85rem 1rem; border: 2px solid var(--green-900); border-radius: var(--radius); font: inherit; font-size: 1.05rem; background: #fff; }
.hero-links { font-size: .92rem; color: var(--muted); }
.hero-deadlines { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 1.25rem 1.25rem 1rem; }
.hero-deadlines h2 { font-size: 1.25rem; margin-bottom: .75rem; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 2rem; padding-top: 2.5rem; padding-bottom: 2.5rem; } .hero { background-position: right -200px top -120px; } }

/* Date leaf */
.leaf { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 58px; min-height: 58px; padding: .25rem .2rem .3rem; border: 1px solid var(--ochre); border-top: 5px solid var(--ochre); border-radius: 4px; background: #fff; color: var(--ink); line-height: 1; text-align: center; flex: none; font-variant-numeric: tabular-nums; }
.leaf-day { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; color: var(--green-900); }
.leaf-mon { font-size: .78rem; font-weight: 600; margin-top: .15rem; }
.leaf-year { font-size: .7rem; color: var(--muted); margin-top: .1rem; }
.leaf-past { border-color: #b9c4bf; border-top-color: #b9c4bf; background: var(--mist); }
.leaf-past .leaf-day { color: var(--muted); }

/* Deadline list */
.deadline-list { list-style: none; margin: 0; padding: 0; }
.deadline-row { display: flex; gap: .9rem; padding: .7rem 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.deadline-row:last-child { border-bottom: 0; }
.deadline-body { min-width: 0; }
.deadline-title { margin: 0 0 .15rem; font-weight: 600; line-height: 1.3; }
.deadline-title a { color: var(--ink); text-decoration: none; }
.deadline-title a:hover { color: var(--teal); text-decoration: underline; }
.deadline-meta { margin: 0; font-size: .85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.deadline-list.compact .deadline-row { padding: .5rem 0; }
.deadline-list.compact .leaf { width: 50px; min-height: 50px; }
.deadline-list.compact .leaf-day { font-size: 1.2rem; }
.is-past .deadline-title a { color: var(--muted); }

/* Chips and tags */
.nation-chips { display: inline-flex; gap: 3px; vertical-align: middle; }
.chip { display: inline-block; min-width: 22px; padding: 0 5px; height: 20px; line-height: 20px; font-size: .7rem; font-weight: 700; text-align: center; border-radius: 3px; color: #fff; text-decoration: none; letter-spacing: .02em; font-family: var(--font-body); }
abbr.chip { border: 0; cursor: help; }
.chip-england { background: var(--green-700); }
.chip-wales { background: var(--red); }
.chip-scotland { background: var(--blue); }
.chip-northern-ireland { background: var(--purple); }
.tag { display: inline-block; font-size: .72rem; font-weight: 600; padding: 1px 7px; border-radius: 3px; background: var(--green-100); color: var(--green-900); line-height: 1.5; }
.tag-proposed { background: var(--ochre-100); color: var(--ochre-800); }
.src { font-size: .8rem; white-space: nowrap; }

/* Sections */
.section { padding-top: 3rem; padding-bottom: 3rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.section-head p { margin: 0; color: var(--muted); }
.more-link { font-weight: 600; }
.band { background: var(--mist); padding: 3rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-deep { background: var(--green-900); color: #e6f0eb; border: 0; }
.band-deep h2 { color: #fff; }
.band-deep a { color: #fff; }
.band-cta { background: var(--green-100); }

/* Topic grid */
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.topic { display: flex; flex-direction: column; gap: .35rem; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 1.1rem 1.2rem; text-decoration: none; color: var(--ink); border-left: 5px solid var(--green-700); }
.topic:hover { border-color: var(--green-700); }
.topic-name { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--green-900); }
.topic-desc { font-size: .9rem; color: var(--muted); }
.topic-count { font-size: .8rem; color: var(--green-700); font-weight: 600; margin-top: auto; }

/* Guide cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1rem; }
.card-grid-2 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.guide-card { border: 1px solid var(--line); border-radius: 8px; padding: 1.1rem 1.2rem 1rem; display: flex; flex-direction: column; gap: .4rem; background: #fff; }
.guide-card-cat { margin: 0; font-size: .78rem; color: var(--green-700); font-weight: 600; }
.guide-card-title { font-size: 1.15rem; margin: 0; }
.guide-card-title a { color: var(--green-900); text-decoration: none; }
.guide-card-title a:hover { text-decoration: underline; }
.guide-card-summary { margin: 0; font-size: .92rem; color: #33453e; flex: 1; }
.guide-card-meta { margin: .25rem 0 0; display: flex; gap: .6rem; align-items: center; font-size: .8rem; color: var(--muted); flex-wrap: wrap; }

/* Portal grid (deep band) */
.portal-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 3rem; }
.portal-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.portal-links a { display: flex; flex-direction: column; gap: .2rem; padding: .9rem 1rem; border: 1px solid rgba(255, 255, 255, .22); border-radius: 8px; text-decoration: none; color: #fff; }
.portal-links a:hover { background: rgba(255, 255, 255, .08); }
.portal-links span { font-size: .85rem; color: #c6dbd1; }
.nation-panel p { color: #c6dbd1; }
.nation-list { list-style: none; margin: 0 0 1rem; padding: 0; }
.nation-list a { display: flex; gap: .7rem; align-items: center; padding: .55rem 0; border-bottom: 1px solid rgba(255, 255, 255, .15); text-decoration: none; }
.nation-list a span { color: #c6dbd1; font-size: .92rem; }
.nation-list a strong { color: #fff; margin-right: .4rem; }
.inline-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem .9rem; }
.band-deep .inline-links a { color: #e6f0eb; }
@media (max-width: 900px) { .portal-grid { grid-template-columns: 1fr; gap: 2rem; } .portal-links { grid-template-columns: 1fr; } }

/* Update list */
.update-list { list-style: none; margin: 0; padding: 0; }
.update-list li { display: grid; grid-template-columns: 150px 1fr; gap: 1.25rem; padding: .9rem 0; border-top: 1px solid var(--line); }
.update-list time { font-weight: 600; color: var(--green-700); }
.update-list p { margin: .2rem 0 0; color: #33453e; font-size: .95rem; }
.update-list a { font-weight: 600; }
.update-title { font-size: 1.15rem; margin: 0; }
@media (max-width: 640px) { .update-list li { grid-template-columns: 1fr; gap: .2rem; } }

/* CTA */
.cta-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 3rem; align-items: center; }
.cta-actions { display: flex; flex-direction: column; gap: .75rem; align-items: flex-start; }
.cta-phone { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 800px) { .cta-grid { grid-template-columns: 1fr; gap: 1.5rem; } }

/* Breadcrumbs + page head */
.crumbs { font-size: .85rem; padding-top: 1rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .35rem; color: #a7b5ae; }
.page-head { padding-top: 0; padding-bottom: 1.5rem; }
.page-head h1 { margin-top: 1rem; }
.page-head .crumbs { padding-left: 0; padding-right: 0; }
.h-list { font-size: 1.35rem; margin-bottom: 1rem; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 3rem; padding-bottom: 3rem; align-items: start; }
.prose-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 3rem; padding-bottom: 3rem; align-items: start; }
@media (max-width: 900px) { .two-col, .prose-layout { grid-template-columns: 1fr; gap: 2rem; } }

/* Guide page */
.guide { padding-bottom: 2rem; }
.guide-header { padding: .5rem 0 1.5rem; border-bottom: 1px solid var(--line); margin-bottom: 2rem; }
.guide-kicker { display: flex; gap: .75rem; align-items: center; font-size: .9rem; font-weight: 600; margin: 1rem 0 .5rem; }
.guide-summary { font-size: 1.15rem; line-height: 1.55; max-width: 70ch; color: #2d3f38; }
.guide-summary p { margin: 0 0 .5em; }
.guide-meta { font-size: .85rem; color: var(--muted); margin: 0; }
.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 3.5rem; }
.guide-main { max-width: 74ch; }
.guide-main h2 { margin-top: 0; }
.guide-section { padding: 1.75rem 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.guide-section:first-of-type { border-top: 0; }
.guide-section h3 { margin-top: 1.4rem; }
.guide-main ul, .guide-main ol { padding-left: 1.3rem; }
.guide-main li { margin-bottom: .35rem; }
.callout { margin: 1.25rem 0; padding: .9rem 1.1rem; border-left: 5px solid var(--ochre); background: var(--ochre-100); border-radius: 0 var(--radius) var(--radius) 0; }
.callout-tip { border-left-color: var(--green-700); background: var(--green-050); }
.callout p:last-child { margin-bottom: 0; }
blockquote:not(.callout) { margin: 1rem 0; padding-left: 1rem; border-left: 4px solid var(--line); color: var(--muted); }
.glance { background: var(--mist); border: 1px solid var(--line); border-radius: 8px; padding: 1.25rem 1.4rem 1rem; margin-bottom: 1.5rem; }
.glance h2 { font-size: 1.25rem; margin-bottom: .75rem; }
.glance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem 1.5rem; margin: 0; }
.glance-grid div { padding: .5rem 0; border-top: 1px solid var(--line); }
.glance-grid dt { font-size: .8rem; font-weight: 600; color: var(--green-700); }
.glance-grid dd { margin: .1rem 0 0; font-size: .95rem; }
@media (max-width: 560px) { .glance-grid { grid-template-columns: 1fr; } }
.applies { margin-bottom: .5rem; }
.applies h2 { font-size: 1.25rem; }
.tick-list { list-style: none; padding: 0 !important; margin: 0; }
.tick-list li { position: relative; padding-left: 1.6rem; margin-bottom: .4rem; }
.tick-list li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px; border-left: 3px solid var(--green-700); border-bottom: 3px solid var(--green-700); transform: rotate(-45deg); }
.steps { list-style: none; padding: 0 !important; margin: 1rem 0 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-left: 3.2rem; margin-bottom: 1.25rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--green-900); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; }
.steps h3 { margin: .2rem 0 .3rem; font-size: 1.1rem; }
.steps p { margin-bottom: .4rem; }
.nation-diff { margin: 0; }
.nation-diff div { padding: .8rem 0; border-top: 1px solid var(--line); }
.nation-diff div:first-child { border-top: 0; }
.nation-diff dt { font-weight: 600; display: flex; gap: .5rem; align-items: center; margin-bottom: .25rem; }
.nation-diff dd { margin: 0; }
.nation-diff dd p { margin-bottom: .4em; }
.check-boxes { list-style: none; padding: 0 !important; margin: 0; }
.check-boxes li { margin-bottom: .5rem; }
.check-boxes label { display: flex; gap: .6rem; align-items: flex-start; cursor: pointer; }
.check-boxes input { width: 1.2rem; height: 1.2rem; margin-top: .2rem; accent-color: var(--green-700); flex: none; }
.service-list { list-style: none; padding: 0 !important; margin: 0; }
.service-list li { padding: .8rem 0; border-top: 1px solid var(--line); }
.service-list li:first-child { border-top: 0; }
.service-list > li > a { font-weight: 600; font-size: 1.05rem; }
.service-type { display: inline-block; margin-left: .5rem; font-size: .72rem; font-weight: 600; padding: 1px 7px; border-radius: 3px; background: var(--green-100); color: var(--green-900); vertical-align: middle; }
.service-list p { margin: .25rem 0 0; font-size: .95rem; }
.service-provider { color: var(--muted); font-size: .85rem; margin-right: .4rem; }
.law-list { list-style: none; padding: 0 !important; }
.law-list li { padding: .3rem 0; }
.faq { border-top: 1px solid var(--line); }
.faq:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: .9rem 2rem .9rem 0; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: .4rem; top: 1.25rem; width: 10px; height: 10px; border-right: 2px solid var(--green-700); border-bottom: 2px solid var(--green-700); transform: rotate(45deg); transition: transform .15s; }
.faq[open] summary::after { transform: rotate(225deg); top: 1.5rem; }
.faq summary h3 { display: inline; font-size: 1.05rem; margin: 0; font-family: var(--font-body); font-weight: 600; color: var(--ink); }
.faq-body { padding: 0 0 1rem; max-width: 70ch; }
.mini-glossary { margin: 0; }
.mini-glossary div { padding: .5rem 0; border-top: 1px solid var(--line); }
.mini-glossary div:first-child { border-top: 0; }
.mini-glossary dt { font-weight: 600; }
.mini-glossary dd { margin: 0; font-size: .95rem; }
.sources ol { font-size: .92rem; }
.sources li { overflow-wrap: anywhere; }
.help-box { background: var(--green-100); border-radius: 8px; padding: 1.5rem 1.6rem; margin-top: 1.5rem; }
.help-box h2 { font-size: 1.35rem; }
.help-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin: 1rem 0 0; }
.guide-side { position: relative; }
.side-box { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 1.1rem 1.2rem; }
.side-sticky { position: sticky; top: 82px; max-height: calc(100vh - 96px); overflow: auto; }
.side-heading { font-size: .78rem; font-weight: 700; color: var(--green-700); margin: 1rem 0 .4rem; }
.side-heading:first-child { margin-top: 0; }
.toc { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.toc li { padding: .22rem 0; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover, .toc a.active { color: var(--teal); text-decoration: underline; }
.side-deadline { display: flex; gap: .7rem; align-items: center; font-size: .9rem; font-weight: 600; }
.side-related { list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.side-related li { padding: .2rem 0; }
.small-links a { font-size: .85rem; }
@media (max-width: 960px) { .guide-layout { grid-template-columns: 1fr; gap: 2rem; } .guide-side { order: -1; } .side-sticky { position: static; max-height: none; } .toc { columns: 2; } }

/* Tables */
.table-wrap { overflow-x: auto; margin: 1rem 0 1.25rem; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { text-align: left; vertical-align: top; padding: .6rem .7rem; border-bottom: 1px solid var(--line); }
th { background: var(--mist); font-weight: 600; color: var(--green-900); border-bottom: 2px solid var(--line); }
td.num { white-space: nowrap; font-weight: 600; }
.guide-main table { font-size: .92rem; }
.guides-table td:first-child { min-width: 260px; }

/* Filters */
.filter-bar { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: end; padding: 1rem 1.2rem; background: var(--mist); border: 1px solid var(--line); border-radius: 8px; margin: 1rem 0 1.5rem; }
.filter-bar label { display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; font-weight: 600; color: var(--green-900); }
.filter-bar label:has(input[type="checkbox"]) { flex-direction: row; align-items: center; gap: .5rem; padding-bottom: .6rem; }
.filter-bar select, .filter-bar input[type="search"] { font: inherit; font-size: .95rem; padding: .45rem .6rem; border: 1px solid #b9c4bf; border-radius: var(--radius); background: #fff; min-width: 180px; }
.filter-count { margin: 0 0 .5rem auto; font-size: .85rem; color: var(--muted); }
.month-block { padding: 1rem 0 .5rem; }
.month-block h2 { font-size: 1.3rem; position: sticky; top: 70px; background: #fff; padding: .5rem 0; margin: 0; z-index: 5; }
.calendar .deadline-row { padding: .8rem 0; }
.jump ul { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.jump a { display: inline-block; padding: .3rem .7rem; background: var(--mist); border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .88rem; color: var(--green-900); }
.jump a:hover { background: var(--green-100); }
.service-block { padding: 1rem 0 1.5rem; }
.directory li { padding: .9rem 0; }
.directory > li > a { font-size: 1.05rem; font-weight: 600; }
.fees-h { margin-top: 1.5rem; font-size: 1.15rem; }
.regulator-list { margin: 0; }
.regulator { padding: 1rem 0; border-top: 1px solid var(--line); }
.regulator dt { font-size: 1.15rem; font-weight: 600; margin-bottom: .3rem; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.regulator dd { margin: 0; max-width: 80ch; }
.glossary-block { padding: .5rem 0 1rem; }
.glossary-block h2 { font-size: 1.4rem; border-bottom: 2px solid var(--green-100); }
.glossary { margin: 0; }
.glossary div { padding: .5rem 0; scroll-margin-top: 90px; }
.glossary dt { font-weight: 600; }
.glossary dd { margin: 0; max-width: 80ch; }
.search-results .result { padding: .9rem 0; border-top: 1px solid var(--line); }
.search-results .result a { font-weight: 600; font-size: 1.05rem; }
.search-results .result p { margin: .2rem 0 0; font-size: .93rem; }

/* Prose pages */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .35rem; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; margin: 1rem 0; }
.service-grid > div { border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1.1rem; }
.service-grid h3 { font-size: 1.1rem; margin: 0 0 .3rem; }
.service-grid p { font-size: .92rem; margin: 0 0 .4rem; }

/* Forms */
.form { border: 1px solid var(--line); border-radius: 8px; padding: 1.4rem 1.5rem 1rem; margin-bottom: 1.5rem; background: #fff; }
.form h2 { font-size: 1.3rem; }
.form label, .checker label { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: .92rem; margin-bottom: .9rem; }
.form input:not([type="checkbox"]), .form select, .form textarea, .checker select { font: inherit; font-size: 1rem; padding: .6rem .7rem; border: 1px solid #9fb0a8; border-radius: var(--radius); width: 100%; background: #fff; font-weight: 400; }
.form textarea { resize: vertical; }
.field-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.field-row.three { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 1rem; }
@media (max-width: 640px) { .field-row.two, .field-row.three { grid-template-columns: 1fr; } }
.form-actions { margin: .5rem 0 .75rem; }
.form-status { padding: .8rem 1rem; border-radius: var(--radius); background: var(--green-100); font-weight: 500; }
.form-status.error { background: var(--ochre-100); }
.contact-grid { display: grid; grid-template-columns: 2fr 3fr; gap: 3rem; padding-bottom: 3rem; align-items: start; }
.contact-big { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; margin: 0 0 .3rem; overflow-wrap: anywhere; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* Checker */
.checker-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 3rem; padding-bottom: 3rem; align-items: start; }
.checker fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1.2rem .3rem; margin: 0 0 1.25rem; }
.checker legend { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--green-900); padding: 0 .4rem; }
.check-group, .check-grid { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; font-weight: 400; }
.check-grid { display: grid; grid-template-columns: 1fr; gap: .35rem; margin-bottom: .9rem; }
.check-group label, .check-grid label, .checker .field-row > label:has(input[type="checkbox"]) { flex-direction: row; align-items: flex-start; gap: .55rem; font-weight: 400; margin: 0; }
.checker input[type="checkbox"] { width: 1.15rem; height: 1.15rem; margin-top: .25rem; accent-color: var(--green-700); flex: none; }
.checker-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.checker-results { position: sticky; top: 82px; background: var(--mist); border: 1px solid var(--line); border-radius: 8px; padding: 1.25rem 1.4rem; }
.results-placeholder { color: var(--muted); margin: 0; }
.results-group h3 { font-size: 1.05rem; margin: 1rem 0 .4rem; padding-bottom: .25rem; border-bottom: 2px solid var(--green-100); }
.results-group ul { list-style: none; padding: 0; margin: 0; }
.results-group li { padding: .45rem 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.results-group li a { font-weight: 600; }
.results-group li span { display: block; color: var(--muted); font-size: .85rem; }
.results-actions { margin-top: 1rem; display: flex; gap: .6rem; flex-wrap: wrap; }
@media (max-width: 900px) { .checker-layout { grid-template-columns: 1fr; } .checker-results { position: static; } }

/* Footer */
.site-footer { background: var(--green-900); color: #c6dbd1; margin-top: 2rem; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; padding-top: 3rem; padding-bottom: 2rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-brand { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: #fff; margin-bottom: .5rem; }
.footer-contact { line-height: 1.7; }
.footer-contact a { font-weight: 600; }
.footer-heading, .footer-official-label { font-weight: 700; color: #fff; margin: 0 0 .6rem; }
.footer-official-label { margin-top: 1.25rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .35rem; }
.footer-official { display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 1.25rem; padding-bottom: 2rem; font-size: .82rem; color: #a9c2b6; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; } }

/* Print */
@media print {
  .topbar, .site-header, .site-footer, .guide-side, .help-box, .hero-search, .filter-bar, .crumbs { display: none !important; }
  body { font-size: 11pt; color: #000; }
  a { color: #000; text-decoration: none; }
  .guide-main a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #444; }
  .guide-layout { display: block; }
  .faq { break-inside: avoid; }
  details { display: block; }
  details > summary::after { display: none; }
  .faq-body { display: block !important; }
}
