/*
 * Gedragswetenschapper.nl — design system
 * Modern care platform: white space, one clear blue, verified-green for trust, one sans-serif (Instrument Sans).
 * All colour pairs used for text meet WCAG AA (4.5:1) on their background.
 */

@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/instrument-sans-latin-wght-normal-570a9648.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f4f7fb;
  --surface-3: #e7edf4;
  --ink: #0b1b2b;
  --ink-2: #2e4154;
  --muted: #586a7c;
  --line: #e1e7ef;
  --line-strong: #c8d2de;

  --brand: #1a5fcf;
  --brand-strong: #134aa6;
  --brand-deep: #0a2342;
  --brand-soft: #e8f0fd;
  --brand-softer: #f3f7fe;
  --accent: #0c8466;
  --accent-light: #7fd9bf;
  --accent-text: #0a6c54;
  --accent-soft: #e1f3ed;

  --ok: #0b7a5e;
  --ok-soft: #e1f3ed;
  --warn: #8a5300;
  --warn-soft: #fdf1dc;
  --danger: #b3261e;
  --danger-soft: #fbe5e3;

  --font-sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: var(--font-sans);

  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgb(11 27 43 / 6%);
  --shadow: 0 1px 3px rgb(11 27 43 / 6%), 0 10px 30px rgb(11 27 43 / 8%);
  --shadow-lg: 0 2px 6px rgb(11 27 43 / 6%), 0 24px 64px rgb(11 27 43 / 14%);
  --focus: 0 0 0 3px #fff, 0 0 0 5px var(--brand);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.03rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-strong); text-decoration-thickness: 2px; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font-sans); font-weight: 650; line-height: 1.15; letter-spacing: -0.022em; margin: 0 0 .5em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); letter-spacing: -0.03em; line-height: 1.08; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.3vw, 2.2rem); letter-spacing: -0.028em; }
h3 { font-size: 1.2rem; letter-spacing: -0.012em; }
h1, h2 { overflow-wrap: normal; hyphens: manual; }
p { margin: 0 0 1em; }
small, .small { font-size: .875rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
::selection { background: var(--brand-soft); }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 780px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.eyebrow { display: inline-block; font-size: .9rem; font-weight: 600; color: var(--brand); margin-bottom: .6rem; }
.lead { font-size: clamp(1.08rem, 1rem + .35vw, 1.22rem); color: var(--ink-2); line-height: 1.55; max-width: 60ch; }
.center .lead, .lead.center { margin-left: auto; margin-right: auto; }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2.5rem; }
.mb-0 { margin-bottom: 0 !important; }

/* ---------- Icons ---------- */
.icon { width: 1.15em; height: 1.15em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: inline-block; vertical-align: -0.2em; }
.icon-lg { width: 1.5rem; height: 1.5rem; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--surface); --btn-fg: var(--ink); --btn-line: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .6rem 1.2rem; border-radius: var(--radius-pill);
  background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid var(--btn-line);
  font: 600 .97rem/1.2 var(--font-sans); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .05s, box-shadow .15s;
  white-space: nowrap;
}
.btn:hover { background: var(--surface-2); color: var(--btn-fg); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { --btn-bg: var(--brand); --btn-fg: #fff; --btn-line: var(--brand); }
.btn-primary:hover { background: var(--brand-strong); border-color: var(--brand-strong); color: #fff; }
.btn-dark { --btn-bg: var(--ink); --btn-fg: #fff; --btn-line: var(--ink); }
.btn-dark:hover { background: #000; color: #fff; }
.btn-ghost { --btn-bg: transparent; --btn-line: transparent; --btn-fg: var(--brand); }
.btn-ghost:hover { background: var(--brand-softer); color: var(--brand-strong); }
.btn-danger { --btn-fg: var(--danger); --btn-line: #edc2be; }
.btn-danger:hover { background: var(--danger-soft); color: var(--danger); }
.btn-sm { min-height: 38px; padding: .42rem .95rem; font-size: .9rem; }
.btn-lg { min-height: 52px; padding: .8rem 1.6rem; font-size: 1.02rem; }
.btn-block { width: 100%; white-space: normal; text-align: center; }
.btn[disabled], .btn.is-disabled { opacity: .55; pointer-events: none; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); text-decoration: underline; cursor: pointer; }
form.button_to { display: inline; }
.arrow-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-decoration: none; }
.arrow-link .icon { transition: transform .15s; }
.arrow-link:hover { text-decoration: none; }
.arrow-link:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.preview-bar { background: var(--warn-soft); color: var(--warn); font-size: .85rem; text-align: center; padding: .4rem var(--gutter); border-bottom: 1px solid #f1dcb3; }
.site-header { position: sticky; top: 0; z-index: 40; background: rgb(255 255 255 / 96%); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: 1.75rem; min-height: 70px; position: relative; }
.logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.13rem; letter-spacing: -0.03em; }
.logo:hover { color: var(--ink); text-decoration: none; }
.logo-mark { width: 32px; height: 32px; flex: none; }
.logo-tld { color: var(--brand); }
.main-nav { display: flex; gap: .15rem; align-items: center; }
.main-nav a { color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: .97rem; padding: .5rem .75rem; border-radius: var(--radius-pill); white-space: nowrap; }
.main-nav a:hover { background: var(--surface-2); color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--brand); background: var(--brand-softer); }
.header-actions { display: flex; gap: 1rem; align-items: center; margin-left: auto; }
.header-actions .pro-link { color: var(--ink-2); font-weight: 550; font-size: .95rem; text-decoration: none; display: inline-flex; gap: .4rem; align-items: center; }
.header-actions .pro-link:hover { color: var(--brand); }
.nav-toggle { display: none; }
@media (max-width: 1080px) {
  .main-nav, .header-actions { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-toggle summary { list-style: none; cursor: pointer; padding: .55rem; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface); display: flex; }
  .nav-toggle summary::-webkit-details-marker { display: none; }
  .nav-toggle[open] .mobile-nav { display: flex; }
  .mobile-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: .75rem var(--gutter) 1.25rem; }
  .mobile-nav a:not(.btn) { padding: .8rem .25rem; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 550; }
  .mobile-nav .btn { margin-top: .9rem; }
}

/* ---------- Flash ---------- */
.flash { margin: 1rem auto 0; display: flex; gap: .65rem; align-items: flex-start; padding: .85rem 1rem; border-radius: var(--radius-sm); font-size: .95rem; border: 1px solid; }
.flash .icon { margin-top: .15rem; }
.flash-notice { background: var(--ok-soft); color: var(--ok); border-color: #c3e0cf; }
.flash-alert { background: var(--danger-soft); color: var(--danger); border-color: #edc7c0; }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0; }
.section-tight { padding: clamp(2rem, 1.5rem + 2vw, 3.25rem) 0; }
.section-alt { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-brand { background: var(--brand-deep); color: #dbe5f2; }
.section-brand h2, .section-brand h3 { color: #fff; }
.section-brand .lead, .section-brand .muted { color: #c3d2e6; }
.section-brand .eyebrow { color: var(--accent-light); }
.section-head { max-width: 680px; margin-bottom: 2.25rem; }
.section-head.center { margin-left: auto; margin-right: auto; }

.page-head { padding: clamp(2.25rem, 1.5rem + 3vw, 4rem) 0 clamp(1.75rem, 1rem + 2.5vw, 3rem); background: var(--surface-2); border-bottom: 1px solid var(--line); margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.page-head .lead { margin-bottom: 0; }
.page-head h1 { max-width: 22ch; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .85rem; color: var(--muted); margin: 0 0 1rem; padding: 0; list-style: none; }
.breadcrumbs li + li::before { content: "›"; margin-right: .4rem; color: var(--line-strong); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand); text-decoration: underline; }

/* ---------- Search hero (home) ---------- */
.search-hero { background: var(--brand); color: #fff; padding: clamp(2.5rem, 1.5rem + 4vw, 4.75rem) 0 clamp(2.75rem, 1.5rem + 4vw, 4.5rem); }
.search-hero .container { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.search-hero h1 { color: #fff; font-size: clamp(2rem, .6rem + 3.4vw, 3.3rem); max-width: 14ch; margin-bottom: 1rem; }
.search-hero .sub { color: #dbe7fb; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); max-width: 50ch; margin: 0; }
.search-bar { margin-top: 1.9rem; display: grid; grid-template-columns: 1fr 1fr auto; align-items: stretch; background: #fff; border-radius: 18px; padding: 6px; box-shadow: 0 18px 50px rgb(6 24 60 / 30%); max-width: 660px; }
.search-bar .field-cell { display: flex; flex-direction: column; justify-content: center; padding: .35rem .5rem .35rem 1rem; border-radius: 12px; min-width: 0; }
.search-bar .field-cell + .field-cell { border-left: 1px solid var(--line); }
.search-bar .field-cell:focus-within { background: var(--brand-softer); }
.search-bar label { font-size: .78rem; font-weight: 650; color: var(--ink); }
.search-bar select { border: 0; box-shadow: none; background-color: transparent; min-height: 34px; padding: 0 2rem 0 0; font-weight: 500; color: var(--ink-2); background-position: right .35rem center; }
.search-bar select:focus { box-shadow: none; }
.search-bar .btn { border-radius: 13px; min-height: 58px; padding: 0 1.6rem; font-size: 1rem; }
.popular { margin-top: 1.2rem; display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .5rem; font-size: .9rem; color: #cfe0fa; }
.popular a { color: #fff; text-decoration: none; padding: .28rem .7rem; border: 1px solid rgb(255 255 255 / 35%); border-radius: var(--radius-pill); font-weight: 500; }
.popular a:hover { background: rgb(255 255 255 / 12%); border-color: #fff; color: #fff; }
.search-hero figure { margin: 0; position: relative; }
.search-hero figure img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 30% center; border-radius: 22px; }
@media (max-width: 960px) { .search-hero .container { grid-template-columns: 1fr; } .search-hero figure { display: none; } }
@media (max-width: 640px) {
  .search-bar { grid-template-columns: 1fr; }
  .search-bar .field-cell + .field-cell { border-left: 0; border-top: 1px solid var(--line); border-radius: 0; }
  .search-bar .field-cell { padding: .55rem .8rem; }
  .search-bar .btn { margin-top: 6px; }
  .search-hero h1 { font-size: min(2.2rem, 8.3vw); }
}

/* Trust line */
.trustline { border-bottom: 1px solid var(--line); background: #fff; }
.trustline .container { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 2.25rem; padding-top: 1.15rem; padding-bottom: 1.15rem; }
.trustline p { margin: 0; color: var(--muted); font-size: .93rem; }
.trustline ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.75rem; }
.trustline li { display: inline-flex; align-items: center; gap: .45rem; font-weight: 650; color: var(--ink); font-size: .97rem; }
.trustline li .icon { color: var(--accent); }
.trustline li span { font-weight: 450; color: var(--muted); font-size: .88rem; }

/* Browse (werkveld / provincie) */
.browse { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); }
@media (max-width: 900px) { .browse { grid-template-columns: 1fr; } }
.browse h2 { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.75rem); margin-bottom: 1.1rem; }
.browse-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; }
@media (max-width: 560px) { .browse-list:not(.compact) { grid-template-columns: 1fr; } }
.browse-list li { border-bottom: 1px solid var(--line); }
.browse-list a { display: flex; align-items: center; gap: .8rem; padding: .85rem .1rem; text-decoration: none; color: var(--ink); font-weight: 550; }
.browse-list a:hover { color: var(--brand); }
.browse-list a:hover .go { transform: translateX(3px); color: var(--brand); }
.browse-list .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--brand-softer); color: var(--brand); display: grid; place-items: center; flex: none; }
.browse-list .ic .icon { width: 20px; height: 20px; }
.browse-list .name { flex: 1; min-width: 0; }
.browse-list .count { font-size: .85rem; color: var(--muted); font-weight: 450; }
.browse-list .go { color: var(--line-strong); transition: transform .15s; }
.browse-list.compact a { padding: .7rem .1rem; font-weight: 500; }

/* Photo split */
.photo-split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.photo-split.reverse { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.photo-split.reverse figure { order: 2; }
.photo-split figure { margin: 0; }
.photo-split figure img { width: 100%; border-radius: 22px; object-fit: cover; aspect-ratio: 4 / 5; }
@media (max-width: 900px) { .photo-split, .photo-split.reverse { grid-template-columns: 1fr; } .photo-split.reverse figure { order: 0; } .photo-split figure img { aspect-ratio: 16 / 10; } }
.how { list-style: none; margin: 1.75rem 0 0; padding: 0; counter-reset: how; }
.how li { counter-increment: how; display: grid; grid-template-columns: 2.5rem 1fr; gap: .2rem 1rem; padding: 1.2rem 0; border-top: 1px solid var(--line); }
.how li::before { content: counter(how); grid-row: span 2; width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: .95rem; }
.how h3 { font-size: 1.1rem; margin: .2rem 0 .1rem; }
.how p { margin: 0; color: var(--muted); }

/* Register table */
.reg-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 4rem; align-items: end; margin-bottom: 2rem; }
.reg-intro p { margin: 0; color: var(--ink-2); }
@media (max-width: 860px) { .reg-intro { grid-template-columns: 1fr; } }
.reg-table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.reg-table th { text-align: left; font-size: .82rem; font-weight: 650; color: var(--muted); padding: 0 1rem .75rem 0; border-bottom: 1.5px solid var(--ink); }
.reg-table td { padding: 1.15rem 1rem 1.15rem 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.reg-table td:first-child { width: 28%; }
.reg-table td:last-child { width: 1%; white-space: nowrap; padding-right: 0; }
.reg-table strong { display: block; color: var(--ink); font-size: 1.05rem; }
.reg-table small { color: var(--muted); }
@media (max-width: 720px) {
  .reg-table thead { display: none; }
  .reg-table tr { display: block; padding: 1rem 0; border-bottom: 1px solid var(--line); }
  .reg-table td { display: block; border: 0; padding: .15rem 0; width: auto !important; white-space: normal !important; }
}

/* Path cards (two audiences) */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 860px) { .paths { grid-template-columns: 1fr; } }
.path-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow .15s, border-color .15s; }
.path-card:hover { color: inherit; text-decoration: none; box-shadow: var(--shadow); border-color: var(--line-strong); }
.path-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.path-card .body { padding: 1.6rem 1.75rem 1.75rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.path-card .who { font-size: .9rem; font-weight: 600; color: var(--brand); }
.path-card h3 { font-size: clamp(1.3rem, 1.15rem + .5vw, 1.55rem); margin: 0 0 .2rem; }
.path-card p { margin: 0 0 1rem; color: var(--muted); flex: 1; }
.path-card .arrow-link { color: var(--brand); }
.path-card:hover .arrow-link .icon { transform: translateX(3px); }

/* Knowledge index */
.kb-index { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(2rem, 5vw, 5rem); }
@media (max-width: 900px) { .kb-index { grid-template-columns: 1fr; } }
.kb-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.kb-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .15rem 1.5rem; padding: 1.05rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.kb-list a:hover strong { color: var(--brand); }
.kb-list .cat { grid-column: 1; font-size: .82rem; font-weight: 600; color: var(--accent-text); }
.kb-list strong { grid-column: 1; font-size: 1.08rem; font-weight: 600; letter-spacing: -0.01em; }
.kb-list .min { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: .85rem; color: var(--muted); white-space: nowrap; }

/* Page hero (light split with photo) */
.page-hero { background: var(--surface-2); border-bottom: 1px solid var(--line); padding: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) 0; }
.page-hero .container { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.page-hero h1 { font-size: clamp(2rem, .8rem + 2.6vw, 2.85rem); max-width: none; }
.page-hero .lead { margin-bottom: 0; }
.page-hero figure { margin: 0; }
.page-hero figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; }
@media (max-width: 900px) { .page-hero .container { grid-template-columns: 1fr; } .page-hero figure img { aspect-ratio: 16 / 9; } }

/* Feature rows (instead of icon cards) */
.feature-rows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2.5rem; }
.feature-rows > div { padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.feature-rows h3 { font-size: 1.12rem; margin-bottom: .4rem; }
.feature-rows p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .feature-rows { grid-template-columns: 1fr; gap: 1.75rem; } }

.section-head { max-width: 680px; margin-bottom: 2rem; }
.section-head h2 { margin-bottom: .4rem; }
.section-head .lead { margin: 0; }

/* ---------- Grid helpers ---------- */
.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.1rem, 1rem + .6vw, 1.6rem); box-shadow: var(--shadow-sm); }
.card-flat { box-shadow: none; }
.card-soft { background: var(--brand-softer); border-color: #d6e7e3; box-shadow: none; }
.card-warm { background: var(--accent-soft); border-color: #efdcc3; box-shadow: none; }
.card h3 { margin-bottom: .35rem; }
.card > :last-child { margin-bottom: 0; }
.card-link { display: block; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card-link:hover { color: inherit; text-decoration: none; border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-1px); }
.card-link:hover h3 { color: var(--brand); }
.feature-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 1rem; }
.feature-icon.warm { background: var(--accent-soft); color: var(--accent-text); }
.sector-tile { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: 1rem 1.15rem; }
.sector-tile strong { font-weight: 600; }
.sector-tile .count { font-size: .85rem; color: var(--muted); white-space: nowrap; }

/* ---------- Badges & chips ---------- */
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .55rem; border-radius: var(--radius-pill); font-size: .78rem; font-weight: 600; line-height: 1.4; background: var(--surface-2); color: var(--ink-2); border: 1px solid transparent; white-space: nowrap; }
.badge .icon { width: .95em; height: .95em; }
.badge-verified { background: var(--brand-soft); color: var(--brand-strong); }
.badge-featured { background: var(--accent-soft); color: var(--accent-text); }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-outline { background: transparent; border-color: var(--line-strong); }
.dot { width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; display: inline-block; flex: none; }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: 0; list-style: none; }
.tag { display: inline-block; padding: .22rem .6rem; border-radius: var(--radius-pill); background: var(--surface-2); color: var(--ink-2); font-size: .84rem; text-decoration: none; }
a.tag:hover { background: var(--brand-soft); color: var(--brand-strong); text-decoration: none; }

/* ---------- Profile card ---------- */
.profile-card { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding: 1.2rem; height: 100%; transition: border-color .15s, box-shadow .15s; }
.profile-card.is-featured { border-color: #e7cfae; background: linear-gradient(180deg, #fffaf3, var(--surface) 60%); }
.profile-card h3 { font-size: 1.12rem; margin: 0; }
.profile-card h3 a { color: var(--ink); text-decoration: none; }
.profile-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.profile-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.profile-card:hover h3 a { color: var(--brand); }
.profile-card .title { color: var(--ink-2); font-size: .92rem; font-weight: 550; }
.profile-card .headline { color: var(--muted); font-size: .92rem; margin: .45rem 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.profile-card .meta { display: flex; flex-wrap: wrap; gap: .35rem .9rem; font-size: .84rem; color: var(--muted); margin-top: .6rem; }
.profile-card .meta span { display: inline-flex; gap: .3rem; align-items: center; }
.profile-card .badges { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .6rem; }

.avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; background: var(--brand-soft); color: var(--brand-strong); display: grid; place-items: center; font-family: var(--font-serif); font-weight: 650; font-size: 1.35rem; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line); }
.avatar-lg { width: 132px; height: 132px; font-size: 2.6rem; border-width: 4px; }
.avatar-sm { width: 40px; height: 40px; font-size: .95rem; border-width: 2px; }
.avatar.warm { background: var(--accent-soft); color: var(--accent-text); }

/* ---------- Directory ---------- */
.directory { display: grid; grid-template-columns: 280px 1fr; gap: 2rem; align-items: start; padding-bottom: 4rem; }
.filters { position: sticky; top: 92px; }
.filters .card { padding: 1.15rem; }
.filters-title { font-family: var(--font-sans); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 650; margin-bottom: .9rem; }
.filters .field { margin-bottom: .9rem; }
.filters .check { font-size: .92rem; margin-bottom: .5rem; }
.filters-mobile { display: none; }
.results-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.results-head p { margin: 0; color: var(--muted); }
.active-filters { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.active-filters a { display: inline-flex; gap: .35rem; align-items: center; background: var(--brand-soft); color: var(--brand-strong); border-radius: var(--radius-pill); padding: .25rem .5rem .25rem .75rem; font-size: .85rem; text-decoration: none; font-weight: 550; }
.active-filters a:hover { background: #d3e6e1; }
.results-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 1060px) { .results-grid { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .directory { grid-template-columns: 1fr; }
  .filters { position: static; }
  .filters-desktop { display: none; }
  .filters-mobile { display: block; }
  .filters-mobile > summary { list-style: none; cursor: pointer; }
  .filters-mobile > summary::-webkit-details-marker { display: none; }
  .filters-mobile[open] > summary { margin-bottom: .75rem; }
}

.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 42px; min-height: 42px; display: grid; place-items: center; padding: 0 .75rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); font-weight: 550; }
.pagination .current { background: var(--brand); color: #fff; border-color: var(--brand); }

.empty-state { text-align: center; padding: clamp(2rem, 1.5rem + 3vw, 3.5rem) 1.5rem; }
.empty-state .feature-icon { margin: 0 auto 1rem; }
.empty-state p { max-width: 50ch; margin-left: auto; margin-right: auto; color: var(--muted); }

/* ---------- Profile page ---------- */
.profile-hero { background: var(--surface); border-bottom: 1px solid var(--line); padding: clamp(1.5rem, 1rem + 2vw, 2.75rem) 0; }
.profile-hero-grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.25rem, 3vw, 2.25rem); align-items: center; }
.profile-hero h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.75rem); margin-bottom: .2rem; }
.profile-hero .title { font-size: 1.1rem; color: var(--ink-2); font-weight: 550; margin: 0; }
.profile-hero .headline { margin: .7rem 0 0; color: var(--ink-2); font-size: 1.05rem; max-width: 62ch; }
.profile-hero .badges { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; }
@media (max-width: 640px) { .profile-hero-grid { grid-template-columns: 1fr; } }
.profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(1.5rem, 3vw, 2.75rem); align-items: start; padding: clamp(1.75rem, 1rem + 2vw, 2.75rem) 0 4rem; }
.profile-aside { position: sticky; top: 92px; display: grid; gap: 1rem; }
@media (max-width: 960px) { .profile-layout { grid-template-columns: 1fr; } .profile-aside { position: static; } }
.bio { white-space: pre-line; font-size: 1.04rem; line-height: 1.75; color: var(--ink-2); }
.facts { display: grid; gap: 1rem; margin: 0; }
.facts > div { display: grid; grid-template-columns: 1.4rem 1fr; gap: .2rem .6rem; align-items: start; }
.facts .icon { color: var(--brand); margin-top: .2rem; grid-row: span 2; }
.facts dt { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.facts dd { margin: 0; font-weight: 550; }
.availability { display: flex; gap: .75rem; align-items: center; padding: .9rem 1rem; border-radius: var(--radius-sm); }
.availability.is-available { background: var(--ok-soft); color: var(--ok); }
.availability.is-limited { background: var(--warn-soft); color: var(--warn); }
.availability.is-unavailable { background: var(--surface-2); color: var(--muted); }
.availability strong { display: block; }
.availability small { color: inherit; opacity: .9; }
.registration-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.registration-list li { display: flex; justify-content: space-between; gap: .75rem; align-items: center; padding: .7rem .85rem; background: var(--surface-2); border-radius: var(--radius-sm); font-size: .92rem; }
.owner-banner { background: var(--warn-soft); color: var(--warn); border-bottom: 1px solid #efdcae; padding: .75rem 0; font-size: .92rem; }

/* ---------- Forms ---------- */
.field { margin-bottom: 1.15rem; }
.field > label, .label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; color: var(--ink); }
.optional { font-weight: 450; color: var(--muted); font-size: .85rem; }
.hint { display: block; font-size: .84rem; color: var(--muted); margin-top: .35rem; line-height: 1.45; }
input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="tel"], input[type="number"], input[type="date"], input[type="search"], select, textarea {
  width: 100%; min-height: 46px; padding: .62rem .8rem; font: 450 1rem/1.4 var(--font-sans); color: var(--ink);
  background-color: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); box-shadow: inset 0 1px 1px rgb(23 38 44 / 4%);
  transition: border-color .15s, box-shadow .15s; appearance: none; -webkit-appearance: none;
}
select { padding-right: 2.2rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%235c686d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .85rem center; }
textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgb(31 90 85 / 18%); }
input[type="file"] { font: inherit; font-size: .92rem; max-width: 100%; }
.field-error input, .field-error select, .field-error textarea { border-color: var(--danger); }
.error-text { display: block; color: var(--danger); font-size: .85rem; margin-top: .35rem; font-weight: 550; }
.error-summary { background: var(--danger-soft); color: var(--danger); border-radius: var(--radius-sm); padding: .9rem 1rem; margin-bottom: 1.25rem; font-size: .95rem; }
.error-summary ul { margin: .35rem 0 0; padding-left: 1.2rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; cursor: pointer; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--brand); flex: none; }
.choice-grid { display: flex; flex-wrap: wrap; gap: .45rem; }
.choice { position: relative; display: inline-flex; }
.choice input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .8rem; border: 1px solid var(--line-strong); background: var(--surface); border-radius: var(--radius-pill); font-size: .9rem; font-weight: 500; cursor: pointer; transition: background-color .12s, border-color .12s, color .12s; user-select: none; }
.choice input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.choice input:checked + span::before { content: "✓"; font-weight: 700; font-size: .8rem; }
.choice input:focus-visible + span { box-shadow: var(--focus); }
.choice:hover span { border-color: var(--brand); }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
fieldset { border: 0; padding: 0; margin: 0 0 1.15rem; min-width: 0; }
legend { font-weight: 600; font-size: .92rem; margin-bottom: .45rem; padding: 0; }
.counter { float: right; font-size: .8rem; color: var(--muted); font-weight: 450; }

.editor { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 2rem; align-items: start; }
.editor-nav { position: sticky; top: 92px; display: grid; gap: .15rem; }
.editor-nav a { display: flex; align-items: center; gap: .55rem; padding: .55rem .75rem; border-radius: var(--radius-sm); text-decoration: none; color: var(--ink-2); font-weight: 550; font-size: .93rem; }
.editor-nav a:hover { background: var(--surface-2); color: var(--ink); }
.step-dot { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; font-size: .72rem; flex: none; color: var(--muted); background: var(--surface); }
.step-dot.done { background: var(--ok); border-color: var(--ok); color: #fff; }
.form-section { scroll-margin-top: 96px; }
.form-section + .form-section { margin-top: 1.25rem; }
.form-section h2 { font-size: 1.3rem; margin-bottom: .25rem; }
.form-section > .muted { margin-bottom: 1.25rem; font-size: .95rem; }
.sticky-save { position: sticky; bottom: 0; z-index: 10; margin-top: 1.5rem; background: rgb(255 255 255 / 94%); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding: .85rem 0; display: flex; justify-content: space-between; gap: 1rem; align-items: center; flex-wrap: wrap; }
@media (max-width: 860px) { .editor { grid-template-columns: 1fr; } .editor-nav { position: static; display: flex; overflow-x: auto; gap: .25rem; padding-bottom: .25rem; } .editor-nav a { white-space: nowrap; } }
.reg-row { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: .75rem; align-items: center; padding: .75rem 0; border-top: 1px solid var(--line); }
.reg-row:first-of-type { border-top: 0; }
.reg-row label { font-weight: 600; font-size: .92rem; }
@media (max-width: 560px) { .reg-row { grid-template-columns: 1fr; gap: .35rem; } }
.photo-field { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }

/* ---------- Auth ---------- */
.auth-wrap { min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 2.5rem var(--gutter); background: var(--surface-2); }
.auth-wrap .card { box-shadow: var(--shadow); }
.auth-card { width: 100%; max-width: 460px; }
.auth-card h1 { font-size: 2rem; }
.auth-split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; max-width: 1040px; width: 100%; }
.auth-split .auth-card { max-width: none; }
@media (max-width: 900px) { .auth-split { grid-template-columns: 1fr; } .auth-aside { display: none; } }
.checklist { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .75rem; }
.checklist li { display: flex; gap: .65rem; align-items: flex-start; }
.checklist .icon { color: var(--ok); margin-top: .25rem; }

/* ---------- Pricing ---------- */
.billing-toggle { display: inline-flex; background: var(--surface-3); border-radius: var(--radius-pill); padding: .25rem; gap: .25rem; margin-bottom: 1.75rem; }
.billing-toggle label { position: relative; display: inline-flex; align-items: stretch; }
.billing-toggle input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.billing-toggle label > span { display: inline-flex; align-items: center; padding: .5rem 1rem; border-radius: var(--radius-pill); font-weight: 600; font-size: .92rem; cursor: pointer; color: var(--ink-2); }
.billing-toggle input:checked + span { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.billing-toggle input:focus-visible + span { box-shadow: var(--focus); }
.save-pill { font-size: .74rem; background: var(--ok-soft); color: var(--ok); border-radius: var(--radius-pill); padding: .1rem .45rem; margin-left: .3rem; }
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; max-width: 900px; }
.pricing.center { margin-left: auto; margin-right: auto; }
@media (max-width: 760px) { .pricing { grid-template-columns: 1fr; } }
.plan { position: relative; display: flex; flex-direction: column; padding: 1.75rem; text-align: left; }
.plan.is-featured { border: 2px solid var(--brand); box-shadow: var(--shadow-lg); }
.plan .ribbon { position: absolute; top: -13px; left: 1.5rem; background: var(--brand); color: #fff; }
.plan h3 { font-size: 1.45rem; margin: 0; }
.plan .tagline { color: var(--muted); margin: .25rem 0 1.1rem; }
.price { display: flex; align-items: baseline; gap: .35rem; margin: 0 0 .25rem; }
.price .amount { font-family: var(--font-serif); font-size: 2.6rem; font-weight: 650; letter-spacing: -0.03em; line-height: 1; }
.price .per { color: var(--muted); }
.price-note { color: var(--muted); font-size: .85rem; margin-bottom: 1.25rem; }
.plan ul { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .6rem; flex: 1; align-content: start; }
.plan li { display: flex; gap: .55rem; align-items: flex-start; font-size: .95rem; }
.plan li .icon { color: var(--brand); margin-top: .25rem; }
.plan.is-current { border-color: var(--ok); }
[data-interval="year"] .price-month, [data-interval="month"] .price-year { display: none; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 1.5rem; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; margin: 0; list-style: none; }
.steps.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps li { counter-increment: step; position: relative; padding-top: 3.1rem; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 2.3rem; height: 2.3rem; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 700; font-family: var(--font-serif); font-size: 1.05rem; }
.steps h3 { font-size: 1.08rem; margin-bottom: .3rem; }
.steps p { color: var(--muted); font-size: .95rem; margin: 0; }
.section-brand .steps li::before { background: #fff; color: var(--brand-strong); }
.section-brand .steps p { color: #c3d2e6; }
@media (max-width: 860px) { .steps, .steps.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps, .steps.three { grid-template-columns: 1fr; } }

/* ---------- Articles ---------- */
.article-card { display: flex; flex-direction: column; height: 100%; }
.article-card .eyebrow { margin-bottom: .5rem; }
.article-card h3 { font-size: 1.18rem; }
.article-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.article-card { padding-top: 1.5rem; }
.article-card .read { font-size: .85rem; color: var(--muted); display: flex; gap: .4rem; align-items: center; margin-top: .25rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: clamp(2rem, 4vw, 4rem); align-items: start; padding-bottom: 3rem; }
.article-header { max-width: 780px; }
.article-header h1 { font-size: clamp(2rem, 1.5rem + 2.2vw, 3rem); max-width: 24ch; }
.article-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; color: var(--muted); font-size: .9rem; margin-top: 1rem; }
.article-meta span { display: inline-flex; gap: .35rem; align-items: center; }
.toc { position: sticky; top: 92px; font-size: .92rem; }
.toc-title { font-family: var(--font-sans); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 650; margin-bottom: .6rem; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.toc ol a { display: block; padding: .3rem 0 .3rem .9rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; line-height: 1.4; }
.toc ol a:hover { color: var(--brand); border-left-color: var(--brand); }
.toc .card { margin-top: 1.5rem; }
.toc .btn, .btn-block { white-space: normal; text-align: center; }
@media (max-width: 1000px) { .article-layout { grid-template-columns: 1fr; } .toc { display: none; } }

.prose { max-width: 70ch; font-size: 1.075rem; line-height: 1.75; color: var(--ink-2); }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.45rem, 1.25rem + .8vw, 1.85rem); margin: 2.4rem 0 .8rem; color: var(--ink); }
.prose h3 { font-size: 1.25rem; margin: 1.9rem 0 .5rem; color: var(--ink); }
.prose p, .prose ul, .prose ol { margin: 0 0 1.15rem; }
.prose ul, .prose ol { padding-left: 1.35rem; }
.prose li { margin-bottom: .4rem; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--ink); font-weight: 650; }
.prose blockquote { margin: 1.5rem 0; padding: 1rem 1.25rem; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink); }
.prose blockquote p:last-child { margin: 0; }
.prose .table-wrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.5; }
.prose th, .prose td { padding: .7rem .9rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { background: var(--surface-2); color: var(--ink); font-weight: 650; font-size: .88rem; }
.prose tr:last-child td { border-bottom: 0; }
.prose a { font-weight: 550; }

.faq { display: grid; gap: .65rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 1.1rem; }
.faq summary { cursor: pointer; list-style: none; padding: 1rem 0; font-weight: 600; display: flex; justify-content: space-between; gap: 1rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.35rem; line-height: 1; color: var(--brand); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 1rem; margin: 0; color: var(--ink-2); }
.sources { font-size: .9rem; color: var(--muted); }
.sources ol { padding-left: 1.2rem; margin: .5rem 0 0; }
.sources li { margin-bottom: .35rem; overflow-wrap: anywhere; }
.reviewed { display: flex; gap: .5rem; align-items: center; font-size: .9rem; color: var(--muted); background: var(--surface-2); padding: .65rem .9rem; border-radius: var(--radius-sm); margin-top: 2rem; }

.cta-band { position: relative; overflow: hidden; border-radius: calc(var(--radius) + 8px); padding: clamp(2rem, 1rem + 4vw, 3.75rem); display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; background: var(--brand-strong); color: #dbe5f2; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 2px solid rgb(236 194 135 / 22%); box-shadow: 90px 60px 0 -2px var(--brand-strong), 90px 60px 0 0 rgb(255 255 255 / 10%); pointer-events: none; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: .35rem; }
.cta-band p { margin: 0; color: #c3d2e6; max-width: 56ch; }
.cta-band .btn-primary { --btn-bg: #fff; --btn-fg: var(--brand-strong); --btn-line: #fff; }
.cta-band .btn-primary:hover { background: #eef5f3; color: var(--brand-strong); }
@media (max-width: 720px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-deep); color: #b4c3d8; padding: 4rem 0 2rem; font-size: .95rem; }
.site-footer a { color: #e3ebf6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 2rem; }
.footer-title { font-size: .95rem; color: #fff; font-weight: 650; margin-bottom: .9rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer .logo { color: #fff; }
.site-footer .logo-tld { color: var(--accent-light); }
.footer-bottom { border-top: 1px solid #1d3a60; margin-top: 2.5rem; padding-top: 1.25rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: #93a6c0; font-size: .85rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Dashboard (account & admin) ---------- */
.app-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: calc(100vh - 72px); }
.app-side { background: var(--surface); border-right: 1px solid var(--line); padding: 1.5rem 1rem; }
.app-side nav { display: grid; gap: .15rem; position: sticky; top: 92px; }
.app-side .nav-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 650; padding: .9rem .75rem .35rem; }
.app-side a { display: flex; gap: .65rem; align-items: center; padding: .6rem .75rem; border-radius: var(--radius-sm); text-decoration: none; color: var(--ink-2); font-weight: 550; font-size: .95rem; }
.app-side a:hover { background: var(--surface-2); color: var(--ink); }
.app-side a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-strong); }
.app-side .count { margin-left: auto; background: var(--accent-text); color: #fff; border-radius: var(--radius-pill); font-size: .72rem; padding: .05rem .45rem; font-weight: 700; }
.app-main { padding: clamp(1.25rem, 1rem + 2vw, 2.5rem) var(--gutter) 4rem; min-width: 0; }
.app-main > .inner { max-width: 1060px; }
.app-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.app-title h1 { font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.25rem); margin: 0; }
.app-title p { margin: .35rem 0 0; color: var(--muted); }
@media (max-width: 860px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-side { border-right: 0; border-bottom: 1px solid var(--line); padding: .5rem var(--gutter); overflow-x: auto; }
  .app-side nav { display: flex; position: static; }
  .app-side .nav-label { display: none; }
  .app-side a { white-space: nowrap; }
}
.stat { padding: 1.1rem 1.2rem; }
.stat .label { color: var(--muted); font-size: .84rem; font-weight: 550; margin: 0; }
.stat .value { font-family: var(--font-serif); font-size: 2rem; font-weight: 650; letter-spacing: -0.02em; line-height: 1.15; margin-top: .2rem; }
.stat .sub { font-size: .8rem; color: var(--muted); }
.onboarding { list-style: none; padding: 0; margin: 0; }
.onboarding li { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; gap: .85rem; align-items: center; padding: .95rem 0; border-top: 1px solid var(--line); }
.onboarding li:first-child { border-top: 0; }
.onboarding .state { width: 1.75rem; height: 1.75rem; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; color: #fff; }
.onboarding .done .state { background: var(--ok); border-color: var(--ok); }
.onboarding .done strong { color: var(--muted); }
.onboarding p { margin: .1rem 0 0; font-size: .88rem; color: var(--muted); }
.progress { height: 8px; background: var(--surface-3); border-radius: 8px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--brand); border-radius: 8px; }
.list { list-style: none; padding: 0; margin: 0; }
.list > li { padding: .9rem 0; border-top: 1px solid var(--line); }
.list > li:first-child { border-top: 0; }
.inbox-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .25rem 1rem; text-decoration: none; color: inherit; }
.inbox-item:hover { color: inherit; text-decoration: none; }
.inbox-item:hover strong { color: var(--brand); }
.inbox-item.unread strong::before { content: ""; display: inline-block; width: .5rem; height: .5rem; background: var(--accent); border-radius: 50%; margin-right: .45rem; vertical-align: .1em; }
.inbox-item p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Tables (admin) ---------- */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data th, table.data td { padding: .7rem .9rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 650; background: var(--surface-2); white-space: nowrap; }
table.data tr:last-child td { border-bottom: 0; }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; }
.admin-tabs { display: flex; gap: .35rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.admin-tabs a { padding: .4rem .8rem; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); font-size: .88rem; font-weight: 550; }
.admin-tabs a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.kv { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: .5rem 1rem; margin: 0; font-size: .95rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; } .kv dd { margin-bottom: .5rem; } }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; }
.step-num { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; flex: none; }
.setup-step { display: flex; gap: 1rem; align-items: flex-start; }
.setup-step > div { flex: 1; min-width: 0; }

/* ---------- Misc ---------- */
.notice-box { display: flex; gap: .75rem; padding: 1rem 1.1rem; border-radius: var(--radius-sm); background: var(--brand-softer); border: 1px solid #d6e7e3; font-size: .95rem; color: var(--ink-2); }
.notice-box .icon { color: var(--brand); margin-top: .2rem; }
.notice-box.warn { background: var(--warn-soft); border-color: #efdcae; color: var(--warn); }
.notice-box.warn .icon { color: var(--warn); }
.notice-box p:last-child { margin-bottom: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.legal { max-width: 72ch; }
.legal h2 { font-size: 1.35rem; margin-top: 2rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .preview-bar, .profile-aside form, .btn { display: none !important; }
  body { background: #fff; }
}

/* ---------- Directory landing pages ---------- */
.order-note { display: flex; gap: .45rem; align-items: center; margin: 1.25rem 0 0; font-size: .85rem; color: var(--muted); }
.order-note .icon { color: var(--muted); }
.landing-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (max-width: 900px) { .landing-grid { grid-template-columns: 1fr; } }
.landing-content .prose h2 { margin-top: 0; }
.landing-content .prose li::marker { color: var(--brand); }
.h-small { font-size: 1.1rem; letter-spacing: -0.01em; margin-bottom: .75rem; }
.link-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.link-chips a { display: inline-block; padding: .4rem .85rem; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: #fff; color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 500; }
.link-chips a:hover { border-color: var(--brand); color: var(--brand); }
.browse-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .browse-3 { grid-template-columns: 1fr; } }
.browse-list.one { grid-template-columns: 1fr; }
