/* Opportunity Navigator: shared styles */

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/source-sans-3-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/source-sans-3-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --paper: #f5f7f9;
  --surface: #ffffff;
  --ink: #172832;
  --muted: #4c616d;
  --rule: #d8e1e6;
  --control: #758a97;
  --brand: #204a5e;
  --brand-dark: #153746;
  --brand-tint: #e9f1f5;
  --accent: #ff6200;
  --yellow: #eac66f;
  --yellow-tint: #fff2d5;
  --amber-ink: #694800;
  --blue-ink: #175480;
  --blue-tint: #e4f0fa;
  --green-ink: #255b3e;
  --green-tint: #e3f2e9;
  --red: #b42318;
  --red-tint: #fdecea;
  --font: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.5 var(--font);
}
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
h1 { font-size: 1.75rem; line-height: 1.2; letter-spacing: -.015em; }
p { margin: 0; }
p + p { margin-top: .75rem; }

.wrap { max-width: 74rem; margin: 0 auto; padding-inline: clamp(1rem, 3vw, 2rem); }
.narrow { max-width: 44rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--rule); }
.header-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand lang" "nav nav";
  align-items: center; gap: .25rem 1rem; padding-top: .75rem;
}
@media (min-width: 760px) {
  .header-inner { grid-template-columns: auto 1fr auto; grid-template-areas: "brand nav lang"; min-height: 4.25rem; padding-top: 0; gap: 1.5rem; }
  .site-nav { align-self: stretch; justify-content: flex-end; }
}
.brand { grid-area: brand; display: flex; align-items: center; gap: .65rem; width: fit-content; color: var(--brand); text-decoration: none; }
.brand img { flex: none; }
.brand-name { font-size: 1.1875rem; font-weight: 700; line-height: 1.15; }
.site-nav { grid-area: nav; display: flex; flex-wrap: wrap; gap: 0 clamp(.85rem, 2vw, 1.6rem); font-size: .9375rem; }
.site-nav a { display: flex; align-items: center; color: var(--muted); font-weight: 600; text-decoration: none; min-height: 44px; white-space: nowrap; border-bottom: 3px solid transparent; }
.site-nav a:hover { color: var(--brand); }
.site-nav a[aria-current] { color: var(--brand); border-bottom-color: var(--accent); }
.lang-toggle {
  grid-area: lang; justify-self: end;
  min-height: 36px; padding: .25rem .7rem;
  border: 1px solid var(--control); border-radius: 6px; background: var(--surface);
  color: var(--ink); font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer;
}
.lang-toggle:hover { border-color: var(--brand); color: var(--brand); }
.draft-bar { background: var(--yellow-tint); border-bottom: 1px solid var(--yellow); font-size: .875rem; padding: .45rem 0; }

/* Inner page heading */
.page-head { padding-top: 1.75rem; padding-bottom: 1.25rem; }
.lede { color: var(--muted); max-width: 64ch; margin-top: .4rem; }
.crumb { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: 1rem; font-weight: 600; font-size: .9375rem; text-decoration: none; }
.crumb::before {
  content: ""; width: .45rem; height: .45rem;
  border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
}
.crumb:hover { text-decoration: underline; }

/* Directory search */
.directory-search {
  display: grid; margin-bottom: 1.15rem; overflow: hidden;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 10px;
}
.directory-controls { min-width: 0; padding: 1rem clamp(.8rem, 2vw, 1.25rem); }
.directory-skyline {
  display: block; width: 100%; height: clamp(80px, 20vw, 110px);
  object-fit: cover; object-position: 50% 51%; background: var(--brand-tint);
}
@media (min-width: 800px) {
  .directory-search { grid-template-columns: minmax(0, 1fr) minmax(16rem, 34%); }
  .directory-controls { align-self: center; }
  .directory-skyline { height: 100%; min-height: 8rem; max-height: 10rem; }
}
.search-modes {
  display: inline-flex; flex-wrap: wrap; gap: .15rem; padding: .2rem;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 7px;
}
.search-modes button {
  min-height: 36px; padding: .3rem .65rem; border: 1px solid transparent; border-radius: 5px;
  background: transparent; color: var(--muted); font: 600 .9375rem/1.2 var(--font); cursor: pointer;
}
.search-modes button:hover { color: var(--brand); }
.search-modes button[aria-pressed="true"] { background: var(--surface); border-color: var(--rule); color: var(--brand); }
.filter-row { display: grid; gap: .65rem; margin-top: .8rem; }
@media (min-width: 360px) {
  .filter-row { grid-template-columns: minmax(0, 1fr) minmax(7.15rem, 30%); }
}
.filter-row .field + .field { margin-top: 0; }

.tabs { display: flex; gap: .5rem; overflow-x: auto; padding: 2px 2px .35rem; scrollbar-width: thin; }
.tab {
  flex: none; min-height: 40px; padding: .35rem .75rem;
  border: 1px solid var(--rule); border-radius: 6px;
  background: var(--surface); color: var(--ink);
  font: inherit; font-size: 1rem; font-weight: 600; cursor: pointer;
}
.tab:hover { border-color: var(--brand); }
.tab .count { font-weight: 400; color: var(--muted); margin-left: .4rem; }
.tab[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.tab[aria-pressed="true"] .count { color: #d6e6ee; }

/* Fields */
.field { display: block; min-width: 0; }
.field + .field, .field + fieldset, fieldset + .field, fieldset + fieldset { margin-top: 1.4rem; }
.field-label { display: block; font-size: .9375rem; font-weight: 600; margin-bottom: .3rem; }
.field-hint { display: block; color: var(--muted); font-size: .9375rem; margin: -.1rem 0 .4rem; }
.field select, .field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .field textarea {
  width: 100%; min-height: 44px; padding: .5rem .7rem;
  border: 1px solid var(--control); border-radius: 6px;
  background: var(--surface); color: var(--ink); font: inherit;
}
.field textarea { min-height: 7rem; resize: vertical; line-height: 1.5; }
.field select {
  appearance: none; padding-right: 1.9rem;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23204a5e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right .6rem center / 1rem no-repeat;
}
.field input[type="date"] { min-inline-size: 0; }
.field input[type="date"]::-webkit-calendar-picker-indicator { opacity: .75; cursor: pointer; }
.field input:disabled { background: var(--paper); color: var(--muted); }
.field input[type="file"] { display: block; width: 100%; padding: .3rem .5rem; border: 1px solid var(--control); border-radius: 6px; background: var(--surface); color: var(--muted); font: 400 .9375rem var(--font); }
.field input::file-selector-button {
  min-height: 34px; margin-right: .65rem; padding: .3rem .65rem; border: 1px solid var(--rule);
  border-radius: 4px; background: var(--brand-tint); color: var(--brand); font: 600 .9375rem var(--font); cursor: pointer;
}
.field input::file-selector-button:hover { border-color: var(--brand); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field .short { max-width: 16rem; }
.field-count { display: block; text-align: right; color: var(--muted); font-size: .875rem; margin-top: .25rem; }
.field-count.over { color: var(--red); font-weight: 600; }
.field-error { display: block; color: var(--red); font-weight: 600; font-size: .9375rem; margin-bottom: .35rem; }
.has-error select, .has-error input:not([type="checkbox"]):not([type="radio"]), .has-error textarea { border: 2px solid var(--red); }
.has-error { padding-left: .9rem; border-left: 4px solid var(--red); }

fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; font-size: .9375rem; font-weight: 600; margin-bottom: .4rem; }
.choices { display: grid; gap: .4rem; }
.choices.inline { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.choice { display: flex; align-items: flex-start; gap: .6rem; min-height: 44px; padding: .55rem 0; cursor: pointer; }
.choice input { flex: none; width: 1.3rem; height: 1.3rem; margin: .1rem 0 0; accent-color: var(--brand); cursor: pointer; }
.choice small { display: block; color: var(--muted); font-size: .9rem; }

.search-wrap { position: relative; display: block; }
.kbd-hint {
  display: none; position: absolute; right: .7rem; top: 50%; transform: translateY(-50%);
  min-width: 1.6rem; padding: .05rem .4rem;
  border: 1px solid var(--rule); border-bottom-width: 2px; border-radius: 4px;
  background: var(--paper); color: var(--muted);
  font: 600 .875rem/1.4 var(--font); text-align: center; pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .kbd-hint { display: block; }
  .search-wrap input { padding-right: 2.75rem !important; }
}
.search-wrap:focus-within .kbd-hint,
.search-wrap input:not(:placeholder-shown) ~ .kbd-hint { display: none; }

.status { min-height: 2rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .15rem 1rem; margin: .7rem 0 .45rem; }
.status-text { font-size: .9375rem; font-weight: 600; }
.status-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0 .8rem; }
.sample-label { color: var(--muted); font-size: .875rem; }
.status .link-btn { font-size: .9375rem; }
.note { margin-bottom: .75rem; color: var(--muted); font-size: .9375rem; }
.link-btn {
  min-height: 44px; padding: 0; border: 0; background: none;
  color: var(--brand); font: inherit; font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 44px; padding: .55rem 1rem;
  border: 1px solid var(--brand); border-radius: 6px;
  background: var(--brand); color: #fff;
  font: inherit; font-size: 1rem; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-quiet { background: var(--surface); color: var(--brand); }
.btn-quiet:hover { background: var(--brand-tint); color: var(--brand-dark); }
.btn-danger { background: var(--surface); color: var(--red); border-color: var(--red); }
.btn-danger:hover { background: var(--red-tint); color: var(--red); border-color: var(--red); }
.btn-big { min-height: 52px; padding: .7rem 1.4rem; font-size: 1.0625rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.1rem; }

/* Directory results */
.table-wrap { overflow: hidden; border: 1px solid var(--rule); border-radius: 9px; background: var(--surface); }
.opportunity-table { width: 100%; border-collapse: collapse; text-align: left; }
.opportunity-table thead { background: var(--brand-tint); color: var(--brand); font-size: .875rem; }
.opportunity-table thead th { padding: .7rem .85rem; font-weight: 700; }
.opportunity-table thead th:first-child { width: 31%; }
.opportunity-row > * { padding: .75rem .85rem; border-top: 1px solid var(--rule); vertical-align: middle; }
.opportunity-row th { font-weight: 400; }
.opportunity-row:hover, .opportunity-row:focus-within { background: #f8fafc; }
.opportunity-title { display: block; color: var(--brand); font-size: 1.0625rem; font-weight: 700; line-height: 1.22; text-decoration: none; }
.opportunity-title:hover { text-decoration: underline; }
.opportunity-provider { display: block; margin-top: .2rem; color: var(--muted); font-size: .875rem; line-height: 1.25; }
.opportunity-row time { white-space: nowrap; font-variant-numeric: tabular-nums; }
.cell-label { display: none; }
.opportunity-action { text-align: right; }
.opportunity-action .toggle { min-height: 38px; margin: 0; padding: .35rem .55rem; white-space: nowrap; font-size: .9375rem; }
.opportunity-details > td { padding: 0 .85rem .8rem; }
.opportunity-details .detail { margin: 0; max-width: none; }
.opportunity-details .summary { margin: 0 0 .85rem; }
.currency-note { display: block; color: var(--amber-ink); font-size: .875rem; font-weight: 600; }
.pagination { display: flex; justify-content: flex-end; gap: .5rem; margin-top: .8rem; }

@media (max-width: 52rem) {
  .table-wrap { overflow: visible; border: 0; background: transparent; }
  .opportunity-table, .opportunity-table tbody { display: block; }
  .opportunity-table thead {
    position: absolute; overflow: hidden; width: 1px; height: 1px;
    clip-path: inset(50%); white-space: nowrap;
  }
  .opportunity-table tbody {
    margin-bottom: .65rem; padding: .8rem;
    border: 1px solid var(--rule); border-radius: 9px; background: var(--surface);
  }
  .opportunity-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .55rem .9rem; }
  .opportunity-row:hover, .opportunity-row:focus-within { background: transparent; }
  .opportunity-row > * { display: block; min-width: 0; padding: 0; border: 0; }
  .opportunity-row > th, .opportunity-action { grid-column: 1 / -1; }
  .opportunity-action { text-align: left; }
  .opportunity-title { font-size: 1.125rem; }
  .cell-label { display: block; color: var(--muted); font-size: .8125rem; font-weight: 600; }
  .opportunity-details, .opportunity-details > td { display: block; padding: 0; }
  .opportunity-details .detail { margin-top: .6rem; }
}

/* Listing and review cards */
.list {
  list-style: none; margin: 0; padding: 0;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 12px;
}
.item {
  display: grid; grid-template-columns: 5.25rem 1fr; gap: 1rem;
  padding: 1.25rem 1rem; border-top: 1px solid var(--rule);
}
.item:first-child { border-top: 0; }
@media (min-width: 720px) { .item { grid-template-columns: 7rem 1fr; gap: 1.5rem; padding: 1.5rem; } }

.due {
  align-self: start;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: .65rem .25rem .75rem; border-radius: 8px;
  background: var(--brand-tint); color: var(--brand-dark);
}
.due-big { font-size: 2.4rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.due-mon { font-size: 1rem; font-weight: 600; margin-top: .15rem; }
.due-small { font-size: .8125rem; font-weight: 600; line-height: 1.25; margin-top: .5rem; }
.due-soon { background: var(--yellow-tint); color: var(--amber-ink); }
.due-rolling .due-big { font-size: 1.5rem; }
.due-closed { background: #e9edf0; color: var(--muted); }
@media (max-width: 479px) {
  .item { grid-template-columns: 1fr; gap: .75rem; }
  .item .due { flex-direction: row; align-items: baseline; justify-self: start; gap: .4rem; padding: .4rem .75rem; }
  .item .due-big { font-size: 1.5rem; }
  .item .due-rolling .due-big { font-size: 1.25rem; }
  .item .due-mon { font-size: 1.0625rem; margin-top: 0; }
  .item .due-small { font-size: .875rem; margin: 0 0 0 .35rem; }
}
@media (min-width: 720px) {
  .due-big { font-size: 3rem; }
  .due-rolling .due-big { font-size: 1.75rem; }
}

.title { font-size: 1.3125rem; line-height: 1.25; }
.title a { color: inherit; text-decoration: none; }
.title a:hover { color: var(--brand); text-decoration: underline; }
.where { margin-top: .35rem; color: var(--muted); font-size: .9375rem; line-height: 1.45; }
.summary { margin-top: .65rem; max-width: 60ch; }
.value { margin-top: .5rem; font-weight: 600; }
.item.is-closed .title, .item.is-closed .value { color: var(--muted); }

.toggle {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 44px; margin-top: .85rem; padding: .5rem .85rem;
  border: 1px solid var(--brand); border-radius: 6px;
  background: var(--surface); color: var(--brand);
  font: inherit; font-size: 1rem; font-weight: 600; cursor: pointer; text-align: left;
}
.toggle:hover { background: var(--brand-tint); }
.toggle::after {
  content: ""; width: .5rem; height: .5rem; flex: none;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform .15s ease;
}
.toggle[aria-expanded="true"]::after { transform: translateY(2px) rotate(-135deg); }

.detail { margin-top: .9rem; padding: 1rem 1.1rem 1.1rem; background: var(--paper); border-radius: 8px; max-width: 40rem; }
.detail h4 { font-size: 1rem; }
.detail h4 + * { margin-top: .35rem; }
.detail * + h4 { margin-top: 1rem; }
.needs { margin: 0; padding-left: 1.2rem; }
.needs li + li { margin-top: .2rem; }
.needs li::marker { color: var(--brand); }
@media (prefers-reduced-motion: no-preference) {
  .detail:not([hidden]) { animation: open .22s ease-out; }
}
@keyframes open { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.empty { padding: 2rem 1.25rem; background: var(--surface); border: 1px dashed var(--control); border-radius: 12px; }
.empty p { margin-bottom: 1rem; }

/* Sections */
.section { padding: 3.5rem 0; }
.listings { padding-top: 1.35rem; padding-bottom: 3.5rem; }
.band { background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
h2 { font-size: 1.5rem; line-height: 1.2; }
h2 + p { margin-top: .75rem; }
.section p { max-width: 62ch; }
h3.sub { font-size: 1.25rem; line-height: 1.25; }

.div-list { list-style: none; margin: 1.75rem 0 0; padding: 0; }
.div-row { display: grid; gap: .2rem; padding: 1rem 0; border-top: 1px solid var(--rule); }
.div-row:last-child { border-bottom: 1px solid var(--rule); }
@media (min-width: 760px) {
  .div-row { grid-template-columns: 10rem 1fr 12rem; align-items: center; gap: 1.5rem; }
  .div-row > :last-child { justify-self: end; }
}
.div-name { font-size: 1.1875rem; font-weight: 800; }
.div-name a { color: inherit; }
.div-aka { display: block; font-size: .875rem; font-weight: 400; color: var(--muted); }
.div-areas { color: var(--muted); }
.div-row .btn { margin-top: .4rem; }
@media (min-width: 760px) { .div-row .btn { margin-top: 0; } }
.none { color: var(--muted); font-size: .9375rem; }

.apply-grid { display: grid; gap: 2rem; }
@media (min-width: 860px) { .apply-grid { grid-template-columns: 1.5fr 1fr; align-items: start; gap: 3rem; } }
.docs { margin: 1rem 0; padding-left: 1.2rem; }
.docs li + li { margin-top: .45rem; }
.docs li::marker { color: var(--brand); }
.warning { padding: 1.35rem 1.4rem; background: var(--yellow-tint); border: 2px solid var(--yellow); border-radius: 10px; }
.warning h3 { font-size: 1.25rem; }
.warning p { margin-top: .5rem; }
.warning .btn { margin-top: 1rem; }

.alert-strip { display: grid; gap: 1rem; align-items: center; padding: 1.4rem 1.5rem; margin-top: 2rem; background: var(--brand-tint); border-radius: 12px; }
@media (min-width: 720px) { .alert-strip { grid-template-columns: 1fr auto; } }
.alert-strip h3 { font-size: 1.1875rem; }
.alert-strip p { margin-top: .25rem; }

.post-list { margin: .75rem 0 1.5rem; padding-left: 1.2rem; }
.post-list li + li { margin-top: .3rem; }
.post-list li::marker { color: var(--brand); }

/* Two-column page layout */
.split { display: grid; gap: 2rem; padding-bottom: 3.5rem; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) 20rem; gap: 3rem; align-items: start; } }
@media (min-width: 1000px) { .split.wide-aside { grid-template-columns: minmax(0, 1fr) 26rem; } }
.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 1.4rem 1.5rem; }
.panel + .panel { margin-top: 1rem; }
.panel h2, .panel h3 { font-size: 1.1875rem; line-height: 1.25; }
.panel h2 + *, .panel h3 + * { margin-top: .5rem; }
.panel-tint { background: var(--brand-tint); border-color: transparent; }
.sticky { position: sticky; top: 1rem; }

/* Listing page */
.listing-context { color: var(--muted); margin-top: .35rem; }
.listing-actions { margin-top: .85rem; }
.listing-layout { display: grid; gap: 1rem; padding-bottom: 2.5rem; align-items: start; }
.listing-overview { min-width: 0; }
@media (min-width: 800px) {
  .listing-layout { grid-template-columns: minmax(0, 1fr) minmax(17rem, 29%); gap: 1.25rem; }
  .listing-overview { grid-column: 1; grid-row: 1; }
  .listing-facts { grid-column: 2; grid-row: 1; }
}
.facts { display: grid; gap: .1rem 1.5rem; margin: 0; }
.facts > div { display: grid; gap: .1rem; padding: .7rem 0; border-top: 1px solid var(--rule); }
@media (min-width: 600px) { .facts > div { grid-template-columns: 11rem 1fr; } }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; }
.listing-facts .facts > div { grid-template-columns: 1fr; }
.listing-facts .facts dt { color: var(--muted); font-size: .875rem; }
.listing-facts .facts dd { overflow-wrap: anywhere; }
.listing-facts .note { margin: .6rem 0 0; }
.content h2 { font-size: 1.375rem; margin-top: 2rem; }
.content h2:first-child { margin-top: 0; }
.content h2 + * { margin-top: .6rem; }
.big-needs { list-style: none; margin: 0; padding: 0; }
.big-needs li { display: flex; gap: .7rem; align-items: flex-start; padding: .55rem 0; border-top: 1px solid var(--rule); }
.big-needs li:first-child { border-top: 0; }
.big-needs li::before {
  content: ""; flex: none; width: 1.15rem; height: 1.15rem; margin-top: .2rem;
  border: 2px solid var(--brand); border-radius: 4px;
}

/* Forms */
.form-section { padding: 1.5rem 0; border-top: 1px solid var(--rule); }
.form-section:first-of-type { border-top: 0; padding-top: 0; }
.form-section > h2 { font-size: 1.375rem; margin-bottom: 1rem; }
.error-summary { padding: 1.2rem 1.3rem; margin-bottom: 1.5rem; border: 3px solid var(--red); border-radius: 10px; background: var(--surface); }
.error-summary h2 { font-size: 1.1875rem; }
.error-summary ul { margin: .5rem 0 0; padding-left: 1.2rem; }
.error-summary a { color: var(--red); font-weight: 600; }
.check-list { margin: 0; }
.check-list > div { display: grid; gap: .15rem .75rem; padding: .8rem 0; border-top: 1px solid var(--rule); }
@media (min-width: 640px) { .check-list > div { grid-template-columns: 12rem 1fr auto; align-items: start; } }
.check-list dt { font-weight: 600; }
.check-list dd { margin: 0; white-space: pre-line; }
.check-list .link-btn { min-height: 0; }
.success { padding: 2rem 1.75rem; border-radius: 12px; background: var(--brand); color: #fff; }
.success h2 { font-size: clamp(1.5rem, 3.4vw, 1.9rem); }
.success .ref { display: block; margin-top: .9rem; font-size: 1rem; }
.success .ref strong { display: block; font-size: 1.9rem; letter-spacing: .04em; }
.next-steps { margin-top: 1.75rem; }
.next-steps h3 { font-size: 1.1875rem; }
.next-steps ol { margin: .6rem 0 0; padding-left: 1.3rem; }
.next-steps li + li { margin-top: .4rem; }
.proto-note { margin-top: 1rem; padding: .7rem .9rem; border-radius: 8px; background: var(--yellow-tint); font-size: .9375rem; }
.repeat-row { display: flex; gap: .5rem; align-items: center; }
.repeat-row + .repeat-row { margin-top: .5rem; }
.repeat-row input { flex: 1; }
.icon-btn {
  flex: none; width: 44px; height: 44px; border: 1px solid var(--control); border-radius: 6px;
  background: var(--surface); color: var(--muted); font: 600 1.25rem/1 var(--font); cursor: pointer;
}
.icon-btn:hover { border-color: var(--red); color: var(--red); }

/* Review */
.badge { display: inline-block; padding: .15rem .55rem; border-radius: 999px; font-size: .875rem; font-weight: 600; white-space: nowrap; background: #e9edf0; color: var(--muted); }
.badge-soon, .badge-pending, .badge-changes { background: var(--yellow-tint); color: var(--amber-ink); }
.badge-open, .badge-approved { background: var(--green-tint); color: var(--green-ink); }
.badge-active { background: var(--blue-tint); color: var(--blue-ink); }
.badge-rejected { background: var(--red-tint); color: var(--red); }
.review-card { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 1.4rem 1.5rem; }
.review-card + .review-card { margin-top: 1.25rem; }
.review-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; align-items: baseline; }
.review-top h3 { font-size: 1.3125rem; line-height: 1.25; }
.review-meta { color: var(--muted); font-size: .9375rem; margin-top: .25rem; }
.flags { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .4rem; }
.flags li { padding: .5rem .75rem; border-radius: 8px; background: var(--red-tint); color: var(--red); font-weight: 600; font-size: .9375rem; }
.flags li.ok { background: var(--green-tint); color: var(--green-ink); }
.review-grid { display: grid; gap: 1.5rem; margin-top: 1.25rem; }
@media (min-width: 960px) { .review-grid { grid-template-columns: minmax(0, 1fr) 20rem; } }
.review-grid .list { border-radius: 10px; }
.review-note { margin-top: .9rem; padding: .7rem .9rem; border-radius: 8px; background: var(--blue-tint); color: var(--blue-ink); font-size: .9375rem; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--rule); color: var(--muted); font-size: .9375rem; }
.site-footer strong { color: var(--ink); }
.footer-inner { display: grid; gap: 1.5rem; padding-block: 2rem; }
.footer-identity { max-width: 23rem; }
.footer-organisations { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1.15rem; margin-bottom: .7rem; }
.footer-organisations a { display: inline-flex; min-height: 44px; align-items: center; }
.footer-organisations img { display: block; width: auto; height: 39px; max-width: 8rem; object-fit: contain; }
.footer-organisations a:first-child img { height: 44px; }
.organisation-fallback { font-weight: 700; }
@media (min-width: 460px) and (max-width: 799px) {
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-identity { grid-column: 1 / -1; }
}
@media (min-width: 800px) {
  .footer-inner { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); }
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li + li { margin-top: .35rem; }
.fine { grid-column: 1 / -1; padding-top: 1rem; border-top: 1px solid var(--rule); font-size: .875rem; }

.toast {
  position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%); z-index: 10;
  max-width: calc(100% - 2rem); padding: .75rem 1.1rem;
  background: var(--ink); color: #fff; border-radius: 8px; font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .toggle::after { transition: none; }
}

/* Fixes and page additions */
.stack { display: grid; gap: .6rem; margin-top: 1rem; }
.stack .btn { width: 100%; }
.more { padding-bottom: 3.5rem; }
.more h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.office dl { margin: .75rem 0 0; }
.office dt { font-weight: 600; font-size: .9375rem; }
.office dd { margin: 0 0 .7rem; }
.link-list { list-style: none; margin: .5rem 0 0; padding: 0; }
.link-list li + li { margin-top: .35rem; }

/* Printable checklist */
.sheet { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 2rem 2.25rem; max-width: 48rem; margin-bottom: 3rem; }
.sheet-top { display: flex; justify-content: space-between; gap: 1.5rem; align-items: flex-start; }
.sheet-brand { font-size: .875rem; font-weight: 600; color: var(--brand); }
.sheet h1 { margin-top: .4rem; }
.sheet .where { font-size: 1rem; }
.sheet-deadline { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; margin-top: 1.25rem; padding: .9rem 1.1rem; border: 2px solid var(--ink); border-radius: 8px; }
.sheet-deadline strong { font-size: 1.375rem; }
.sheet h2 { font-size: 1.1875rem; margin-top: 1.6rem; }
.sheet h2 + * { margin-top: .5rem; }
.tick-list { list-style: none; margin: 0; padding: 0; }
.tick-list li { border-bottom: 1px solid var(--rule); }
.tick-list label { display: flex; gap: .75rem; align-items: flex-start; padding: .55rem 0; cursor: pointer; }
.tick-list input { flex: none; width: 1.25rem; height: 1.25rem; margin: .15rem 0 0; accent-color: var(--brand); }
.lines { margin-top: .5rem; }
.lines span { display: block; height: 2.1rem; border-bottom: 1px solid var(--control); }
.qr { flex: none; text-align: center; font-size: .8125rem; color: var(--muted); width: 8.5rem; }
.qr svg { display: block; width: 8.5rem; height: 8.5rem; }
.sheet-foot { margin-top: 1.75rem; padding-top: 1rem; border-top: 2px solid var(--ink); font-size: .9375rem; }
@media (max-width: 599px) {
  .sheet { padding: 1.4rem 1.2rem; }
  .sheet-top { flex-direction: column; }
}
@media print {
  @page { size: A4; margin: 14mm; }
  body { background: #fff; font-size: 11pt; }
  #site-header, #site-footer, .no-print, .toast { display: none !important; }
  .wrap { max-width: none; padding: 0; }
  .sheet { border: 0; padding: 0; margin: 0; max-width: none; }
  a { color: inherit; text-decoration: none; }
}
@media (max-width: 519px) {
  .brand-name { font-size: 1.0625rem; }
  .brand img { width: 32px; height: 32px; }
}
.review-grid .facts > div { grid-template-columns: 4.5rem 1fr; }
.review-grid .panel { padding: 1.1rem 1.2rem; }
