/*
Theme Name: NextJS Converted Theme — Ask the Environmental Lawyer
Theme URI: https://example.org/ael
Author: Migration from Next.js (ask-environmental-lawyer)
Author URI: https://example.org
Description: Faithful WordPress port of the "Ask the Environmental Lawyer" Next.js site. Design-token CSS (light/dark, responsive), block patterns and template parts. Business logic lives in the companion plugin "nextjs-site-functionality". Bilingual (Albanian/English) via Polylang.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 8.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ael
Tags: custom-menu, featured-images, translation-ready, block-patterns, full-site-editing
*/

/* ============================================================================
   This file carries the full design system, ported verbatim from the source
   project's src/app/globals.css, plus the small set of WordPress-specific rules
   (admin bar, alignments, editor blocks, nav walker classes) needed for parity.
   Colours, typography, spacing and component styles are unchanged from source.
   ============================================================================ */

/* ============================ DESIGN TOKENS ============================ */
:root {
  --ink: #14212b; --muted: #55697a; --bg: #f4f6f8; --surface: #fff; --surface-2: #eef2f5;
  --border: #d9e0e6; --primary: #1c6091; --primary-strong: #114a73; --primary-tint: #e7f0f6;
  --teal: #2e7d6b; --teal-tint: #e4f0ec; --danger: #b5342a; --danger-tint: #f7e7e5;
  --focus: #e8a317; --on-primary: #fff;
  --st-received: #64748b; --st-review: #1c6091; --st-info: #b7791f; --st-forwarded: #2e7d6b;
  --st-progress: #5b5bd6; --st-completed: #2f855a; --st-closed: #6b7280;
  --shadow-sm: 0 1px 2px rgba(20,33,43,.06), 0 1px 3px rgba(20,33,43,.05);
  --shadow-md: 0 4px 12px rgba(20,33,43,.08), 0 2px 4px rgba(20,33,43,.05);
  --radius: 10px; --radius-sm: 7px; --maxw: 1120px;
  --serif: Georgia, "Times New Roman", "EB Garamond", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Lato", Helvetica, Arial, sans-serif;
  --step-1: clamp(.78rem, .76rem + .1vw, .84rem);
  --step0: 1rem; --step1: 1.15rem;
  --step2: clamp(1.35rem, 1.25rem + .5vw, 1.6rem);
  --step3: clamp(1.7rem, 1.5rem + 1vw, 2.2rem);
  --step4: clamp(2.1rem, 1.7rem + 2vw, 3rem);
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e7edf2; --muted: #9db2c0; --bg: #0e1922; --surface: #16242f; --surface-2: #1d3040;
    --border: #2a3f4e; --primary: #4fa3d1; --primary-strong: #7bc0e4; --primary-tint: #173141;
    --teal: #5fb39f; --teal-tint: #173029; --danger: #e27a70; --danger-tint: #33201e;
    --focus: #f2b84b; --on-primary: #0b1620;
    --st-received: #94a3b8; --st-review: #4fa3d1; --st-info: #e0b15c; --st-forwarded: #5fb39f;
    --st-progress: #9b9bf0; --st-completed: #68c68f; --st-closed: #94a3b8;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.3); --shadow-md: 0 6px 18px rgba(0,0,0,.4);
  }
}
:root[data-theme="dark"] {
  --ink: #e7edf2; --muted: #9db2c0; --bg: #0e1922; --surface: #16242f; --surface-2: #1d3040;
  --border: #2a3f4e; --primary: #4fa3d1; --primary-strong: #7bc0e4; --primary-tint: #173141;
  --teal: #5fb39f; --teal-tint: #173029; --danger: #e27a70; --danger-tint: #33201e;
  --focus: #f2b84b; --on-primary: #0b1620;
  --st-received: #94a3b8; --st-review: #4fa3d1; --st-info: #e0b15c; --st-forwarded: #5fb39f;
  --st-progress: #9b9bf0; --st-completed: #68c68f; --st-closed: #94a3b8;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3); --shadow-md: 0 6px 18px rgba(0,0,0,.4);
}
:root[data-theme="light"] {
  --ink: #14212b; --muted: #55697a; --bg: #f4f6f8; --surface: #fff; --surface-2: #eef2f5;
  --border: #d9e0e6; --primary: #1c6091; --primary-strong: #114a73; --primary-tint: #e7f0f6;
  --teal: #2e7d6b; --teal-tint: #e4f0ec; --danger: #b5342a; --danger-tint: #f7e7e5;
  --focus: #e8a317; --on-primary: #fff;
  --st-received: #64748b; --st-review: #1c6091; --st-info: #b7791f; --st-forwarded: #2e7d6b;
  --st-progress: #5b5bd6; --st-completed: #2f855a; --st-closed: #6b7280;
  --shadow-sm: 0 1px 2px rgba(20,33,43,.06), 0 1px 3px rgba(20,33,43,.05);
  --shadow-md: 0 4px 12px rgba(20,33,43,.08), 0 2px 4px rgba(20,33,43,.05);
}

/* ============================ BASE ============================ */
* { box-sizing: border-box; }
html, body { padding: 0; margin: 0; }
body {
  font-family: var(--sans); color: var(--ink); background: var(--bg); font-size: var(--step0);
  line-height: 1.6; -webkit-font-smoothing: antialiased; min-height: 100dvh;
  background-image: repeating-linear-gradient(115deg, transparent 0 38px, color-mix(in srgb, var(--primary) 4%, transparent) 38px 39px);
  background-attachment: fixed;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; text-wrap: balance; color: var(--ink); }
h1 { font-size: var(--step4); margin: 0 0 .4em; letter-spacing: -.01em; }
h2 { font-size: var(--step3); margin: 0 0 .5em; }
h3 { font-size: var(--step2); margin: 0 0 .4em; }
p { margin: 0 0 1em; max-width: 68ch; }
a { color: var(--primary); text-underline-offset: 2px; }
a:hover { color: var(--primary-strong); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
.eyebrow { font-family: var(--sans); font-size: var(--step-1); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--teal); margin: 0 0 .6em; }
.lead { font-size: var(--step1); color: var(--muted); max-width: 60ch; }
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
main { display: block; padding-block: clamp(2rem, 5vw, 3.5rem); }
.skip { position: absolute; left: -999px; top: 0; background: var(--primary); color: var(--on-primary); padding: .6em 1em; z-index: 200; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
img { max-width: 100%; height: auto; }

/* ============================ HEADER ============================ */
header.site { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.bar { display: flex; align-items: center; gap: 1rem; padding-block: .6rem; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--serif); font-weight: 600; font-size: 1.05rem; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand .mark { width: 34px; height: 34px; flex: none; }
.brand small { display: block; font-family: var(--sans); font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
nav.primary { display: flex; gap: .15rem; }
nav.primary a { font-size: .92rem; color: var(--ink); text-decoration: none; padding: .5em .7em; border-radius: var(--radius-sm); font-weight: 500; white-space: nowrap; }
nav.primary a:hover { background: var(--surface-2); }
nav.primary a[aria-current="page"], nav.primary a.current-menu-item, nav.primary li.current-menu-item > a { color: var(--primary); background: var(--primary-tint); }
.util { display: flex; align-items: center; gap: .4rem; }
.toggle { display: inline-flex; align-items: center; gap: .35rem; background: var(--surface); border: 1px solid var(--border); color: var(--ink); border-radius: 20px; padding: .35em .7em; font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; text-decoration: none; }
.toggle:hover { border-color: var(--primary); color: var(--primary); }
.toggle svg { width: 16px; height: 16px; }
.menu-btn { display: none; }

/* ============================ BUTTONS ============================ */
.btn { display: inline-flex; align-items: center; gap: .5em; font: inherit; font-weight: 600; padding: .7em 1.2em; border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: background .18s ease, border-color .18s ease, transform .05s ease; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover:not(:disabled) { background: var(--primary-strong); color: var(--on-primary); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--border); }
.btn-ghost:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.btn svg { width: 18px; height: 18px; }

/* ============================ HOME ============================ */
.hero { display: grid; gap: 1.4rem; padding-block: clamp(1rem,4vw,2rem) 1rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: .3rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 1rem; margin-top: 1.5rem; }
.card { display: flex; flex-direction: column; gap: .5rem; padding: 1.3rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); text-decoration: none; color: inherit; transition: box-shadow .18s ease, transform .12s ease, border-color .18s; }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--primary); }
.card .ic { width: 40px; height: 40px; border-radius: 9px; display: grid; place-items: center; background: var(--primary-tint); color: var(--primary); }
.card:nth-child(2) .ic { background: var(--teal-tint); color: var(--teal); }
.card .ic svg { width: 22px; height: 22px; }
.card h3 { margin: 0; font-size: 1.15rem; }
.card p { margin: 0; font-size: .92rem; color: var(--muted); }
.card .go { margin-top: auto; font-weight: 600; color: var(--primary); font-size: .9rem; }
.privacy-note { display: flex; gap: .9rem; align-items: flex-start; margin-top: 1.8rem; padding: 1.1rem 1.2rem; background: var(--teal-tint); border: 1px solid color-mix(in srgb,var(--teal) 30%, transparent); border-radius: var(--radius); }
.privacy-note svg { width: 26px; height: 26px; color: var(--teal); flex: none; margin-top: 2px; }
.privacy-note strong { color: var(--ink); }
.privacy-note p { margin: .2em 0 0; font-size: .92rem; color: var(--ink); }
.indicators { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-top: 2rem; }
.kpi { background: var(--surface); padding: 1.1rem 1.2rem; }
.kpi .n { font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--primary); font-variant-numeric: tabular-nums; line-height: 1; }
.kpi .l { font-size: .82rem; color: var(--muted); margin-top: .35rem; }
.demo-tag { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--st-info); background: color-mix(in srgb,var(--st-info) 14%,transparent); padding: .12em .5em; border-radius: 4px; vertical-align: middle; }
.donors { margin-top: 2.4rem; }
.donors .row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: .7rem; }
.logo-chip { display: inline-flex; align-items: center; gap: .5rem; padding: .55em .9em; background: var(--surface); border: 1px dashed var(--border); border-radius: 8px; font-size: .84rem; font-weight: 600; color: var(--muted); }
.logo-chip .dot { width: 20px; height: 20px; border-radius: 5px; background: var(--surface-2); flex: none; }

/* ============================ FORMS ============================ */
.form-grid { display: grid; grid-template-columns: 1fr; gap: 1.6rem; align-items: start; margin-top: 1.6rem; }
@media (min-width: 860px) { .form-grid { grid-template-columns: minmax(0,1fr) 300px; } }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.1rem,3vw,1.8rem); box-shadow: var(--shadow-sm); }
.field { display: grid; gap: .35rem; margin-bottom: 1.15rem; }
.field label { font-weight: 600; font-size: .92rem; }
.field .hint { font-size: .82rem; color: var(--muted); }
.req { color: var(--danger); font-weight: 700; }
.opt { color: var(--muted); font-weight: 500; font-size: .82rem; }
.err { color: var(--danger); font-size: .82rem; font-weight: 600; }
input[type=text], input[type=email], input[type=tel], textarea, select { font: inherit; width: 100%; padding: .65em .75em; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); color: var(--ink); }
input:focus, textarea:focus, select:focus { border-color: var(--primary); }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--danger); }
textarea { min-height: 120px; resize: vertical; }
.choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip-radio { position: relative; }
.chip-radio input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip-radio span { display: inline-block; padding: .5em .9em; border: 1px solid var(--border); border-radius: 20px; font-size: .88rem; background: var(--surface); }
.chip-radio input:checked + span { border-color: var(--primary); background: var(--primary-tint); color: var(--primary); font-weight: 600; }
.chip-radio input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.switch-row { display: flex; align-items: flex-start; gap: .7rem; padding: 1rem 1.1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--teal-tint); }
.switch { position: relative; width: 46px; height: 26px; flex: none; margin-top: 2px; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch .track { position: absolute; inset: 0; background: var(--muted); border-radius: 20px; transition: background .18s; pointer-events: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: transform .18s; }
.switch input:checked + .track { background: var(--teal); }
.switch input:checked + .track::after { transform: translateX(20px); }
.switch input:focus-visible + .track { outline: 3px solid var(--focus); outline-offset: 2px; }
.checkrow { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; }
.checkrow input { margin-top: .25em; width: 18px; height: 18px; flex: none; }
.filebox { border: 2px dashed var(--border); border-radius: var(--radius); padding: 1.1rem; text-align: center; background: var(--bg); color: var(--muted); font-size: .9rem; }
.filebox svg { width: 26px; height: 26px; display: block; margin: 0 auto .4rem; color: var(--primary); }
.filebox input[type=file] { display: block; margin: .6rem auto 0; font-size: .85rem; }
aside.privacy-side { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--teal); border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow-sm); }
aside.privacy-side h3 { font-size: 1.05rem; display: flex; align-items: center; gap: .5rem; }
aside.privacy-side ul { margin: .4rem 0 0; padding-left: 1.1rem; font-size: .88rem; color: var(--muted); }
aside.privacy-side li { margin-bottom: .5rem; }
aside.privacy-side svg { width: 20px; height: 20px; color: var(--teal); flex: none; }

/* wizard */
.steps { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: 1.6rem; list-style: none; padding: 0; }
.steps li { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--muted); padding: .3rem .5rem; border-radius: 6px; }
.steps li .num { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); font-weight: 700; font-size: .78rem; flex: none; }
.steps li[aria-current="step"] { color: var(--primary); font-weight: 600; }
.steps li[aria-current="step"] .num { background: var(--primary); color: var(--on-primary); }
.steps li.done .num { background: var(--teal); color: #fff; }
.progressbar { height: 6px; background: var(--surface-2); border-radius: 4px; overflow: hidden; margin-bottom: 1.2rem; }
.progressbar span { display: block; height: 100%; background: var(--primary); transition: width .3s ease; border-radius: 4px; }
.wizard-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--border); }

/* confirmation */
.confirm { text-align: center; max-width: 620px; margin-inline: auto; }
.confirm .seal { width: 64px; height: 64px; border-radius: 50%; background: var(--teal-tint); display: grid; place-items: center; margin: 0 auto 1rem; color: var(--teal); }
.confirm .seal svg { width: 34px; height: 34px; }
.refbox { display: grid; gap: .8rem; grid-template-columns: 1fr 1fr; margin: 1.4rem 0; }
@media (max-width: 520px) { .refbox { grid-template-columns: 1fr; } }
.refbox .b { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; }
.refbox .b .k { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.refbox .b .v { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; letter-spacing: .04em; color: var(--primary); font-variant-numeric: tabular-nums; margin-top: .2rem; }
.warnbox { background: var(--danger-tint); border: 1px solid color-mix(in srgb,var(--danger) 30%,transparent); border-radius: var(--radius); padding: .9rem 1.1rem; font-size: .9rem; text-align: left; display: flex; gap: .6rem; }
.warnbox svg { width: 22px; height: 22px; color: var(--danger); flex: none; }

/* track / timeline */
.track-form { max-width: 460px; }
.timeline { list-style: none; padding: 0; margin: 1.5rem 0 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.timeline li { position: relative; padding: 0 0 1.3rem 2.2rem; }
.timeline .node { position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 3px solid var(--st-received); }
.timeline li.cur .node { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-tint); }
.timeline li.done .node { background: var(--teal); border-color: var(--teal); }
.timeline .t { font-weight: 600; }
.timeline .d { font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.badge { display: inline-flex; align-items: center; gap: .4em; font-size: .78rem; font-weight: 700; padding: .22em .6em; border-radius: 20px; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.b-received { color: var(--st-received); background: color-mix(in srgb,var(--st-received) 14%,transparent); }
.b-review { color: var(--st-review); background: color-mix(in srgb,var(--st-review) 14%,transparent); }
.b-info { color: var(--st-info); background: color-mix(in srgb,var(--st-info) 16%,transparent); }
.b-forwarded { color: var(--st-forwarded); background: color-mix(in srgb,var(--st-forwarded) 14%,transparent); }
.b-progress { color: var(--st-progress); background: color-mix(in srgb,var(--st-progress) 14%,transparent); }
.b-completed { color: var(--st-completed); background: color-mix(in srgb,var(--st-completed) 16%,transparent); }
.b-closed { color: var(--st-closed); background: color-mix(in srgb,var(--st-closed) 14%,transparent); }

/* content flags */
.placeholder-flag { display: flex; gap: .6rem; align-items: flex-start; margin-top: 1.5rem; padding: .9rem 1.1rem; border: 1px dashed var(--st-info); border-radius: var(--radius); background: color-mix(in srgb,var(--st-info) 8%,transparent); font-size: .88rem; }
.placeholder-flag svg { width: 20px; height: 20px; color: var(--st-info); flex: none; margin-top: 2px; }
.rights-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); margin-top: 1.5rem; }
.rblock { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem; }
.rblock h3 { font-size: 1.1rem; }
.rblock p { font-size: .92rem; color: var(--muted); margin: 0; }

/* ============================ FOOTER ============================ */
footer.site { background: var(--surface); border-top: 1px solid var(--border); margin-top: 3rem; padding-block: 2.2rem; }
.foot-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); }
footer.site h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 .7rem; }
footer.site ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
footer.site a { color: var(--ink); text-decoration: none; font-size: .9rem; }
footer.site a:hover { color: var(--primary); text-decoration: underline; }
.foot-legal { margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid var(--border); font-size: .82rem; color: var(--muted); }
.proto-banner { background: var(--ink); color: var(--bg); text-align: center; font-size: .8rem; padding: .5em 1em; }
.proto-banner strong { color: var(--focus); }

@media (max-width: 780px) {
  nav.primary, .util .toggle span.lbl { display: none; }
  .menu-btn { display: inline-flex; }
  nav.primary.open { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--border); padding: .5rem; gap: .1rem; box-shadow: var(--shadow-md); }
  header.site { position: sticky; }
}
/* ============================ NAV DROPDOWN ============================ */
.nav-dd { position: relative; }
.nav-dd > summary { list-style: none; cursor: pointer; font-size: .92rem; font-weight: 500; padding: .5em .7em; border-radius: var(--radius-sm); display: inline-flex; align-items: center; gap: .3rem; color: var(--ink); }
.nav-dd > summary::-webkit-details-marker { display: none; }
.nav-dd > summary::after { content: "▾"; font-size: .75em; opacity: .7; }
.nav-dd > summary:hover { background: var(--surface-2); }
.nav-dd[open] > summary { background: var(--primary-tint); color: var(--primary); }
.nav-dd .nav-menu { position: absolute; top: calc(100% + 4px); left: 0; min-width: 250px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: .4rem; display: grid; gap: .1rem; z-index: 120; }
.nav-dd .nav-menu a { padding: .55em .7em; border-radius: 6px; font-size: .9rem; }
@media (max-width: 780px) {
  nav.primary.open .nav-dd, nav.primary.open .nav-dd > summary { width: 100%; }
  nav.primary.open .nav-dd .nav-menu { position: static; box-shadow: none; border: none; padding: .1rem 0 .3rem 1rem; min-width: 0; }
}

/* ============================ CONTENT SECTIONS ============================ */
.search-row { display: flex; gap: .6rem; flex-wrap: wrap; max-width: 560px; margin-top: 1.3rem; }
.search-row input { flex: 1; min-width: 200px; }
.subhead { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin: 2rem 0 .8rem; }
.list-stack { display: grid; gap: .8rem; }
.inst-card { display: flex; gap: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; }
.inst-card .badge-ic { min-width: 44px; height: 44px; padding: 0 .4rem; border-radius: 9px; background: var(--primary-tint); color: var(--primary); display: grid; place-items: center; flex: none; font-family: var(--serif); font-weight: 700; font-size: .8rem; }
.inst-card h3 { margin: 0 0 .2rem; font-size: 1.05rem; }
.inst-card p { margin: 0 0 .5rem; font-size: .9rem; color: var(--muted); }
.inst-card .links { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .85rem; }
.law-item { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--teal); border-radius: var(--radius-sm); padding: 1rem 1.2rem; }
.law-item h3 { font-size: 1rem; margin: 0 0 .3rem; }
.law-item p { font-size: .88rem; color: var(--muted); margin: 0; }
.tag { display: inline-block; font-size: .74rem; font-weight: 600; padding: .2em .6em; border-radius: 20px; background: var(--surface-2); color: var(--muted); margin-right: .3rem; }

.who-tool { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.1rem,3vw,1.8rem); box-shadow: var(--shadow-sm); margin-top: 1.4rem; max-width: 720px; }
.who-result { margin-top: 1.4rem; display: grid; gap: .8rem; }
.who-result .rescard { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.1rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--teal-tint); }
.who-result .rescard .n { width: 30px; height: 30px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; font-size: .9rem; }
.who-result h3 { margin: 0 0 .2rem; font-size: 1rem; }
.who-result p { margin: 0; font-size: .88rem; color: var(--ink); }
.who-empty { color: var(--muted); font-size: .92rem; margin-top: 1.2rem; }

.tool-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill,minmax(290px,1fr)); margin-top: 1.4rem; }
.tool-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; display: flex; flex-direction: column; gap: .6rem; }
.tool-card .top { display: flex; gap: .7rem; align-items: flex-start; }
.tool-card .fmt { width: 40px; height: 40px; border-radius: 8px; background: var(--primary-tint); color: var(--primary); display: grid; place-items: center; flex: none; font-size: .68rem; font-weight: 800; letter-spacing: .03em; }
.tool-card h3 { font-size: 1.02rem; margin: 0; }
.tool-card p { font-size: .88rem; color: var(--muted); margin: 0; }
.tool-card .metaline { display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.tool-card .disc { font-size: .78rem; color: var(--muted); border-top: 1px dashed var(--border); padding-top: .6rem; margin: 0; }
.tool-card .btn { margin-top: auto; align-self: flex-start; }

.faq-cat { margin-top: 2rem; }
.faq-cat > h2 { font-size: 1.25rem; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); margin-bottom: .6rem; }
.faq-item > summary { list-style: none; cursor: pointer; padding: .9rem 1.1rem; font-weight: 600; font-size: .96rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after { content: "+"; font-size: 1.3rem; color: var(--primary); font-weight: 400; flex: none; }
.faq-item[open] > summary::after { content: "–"; }
.faq-item[open] > summary { color: var(--primary); }
.faq-item .a { padding: 0 1.1rem 1rem; font-size: .92rem; color: var(--muted); }
.faq-item .a p { margin: 0; }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.3rem 0; align-items: center; }
.filters select { width: auto; min-width: 140px; }
.case-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); }
.case-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; display: flex; flex-direction: column; gap: .6rem; }
.case-card .meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; font-size: .82rem; color: var(--muted); }
.case-card h3 { font-size: 1.05rem; margin: 0; }
.case-card p { font-size: .9rem; color: var(--muted); margin: 0; }
.case-card .cref { font-family: var(--serif); font-size: .8rem; color: var(--muted); letter-spacing: .04em; }

.chart { margin-top: 1.2rem; }
.table-scroll { overflow-x: auto; }
.bar-row { display: grid; grid-template-columns: 150px 1fr 44px; align-items: center; gap: .8rem; margin-bottom: .55rem; font-size: .88rem; }
.bar-row .track2 { background: var(--surface-2); border-radius: 5px; height: 22px; overflow: hidden; }
.bar-row .fill { height: 100%; background: var(--primary); border-radius: 5px; }
.bar-row:nth-child(even) .fill { background: var(--teal); }
.bar-row .val { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; }
.dash-cols { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .dash-cols { grid-template-columns: 1.3fr 1fr; } }
table.data { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: .9rem; }
table.data caption { text-align: left; font-weight: 600; margin-bottom: .5rem; color: var(--muted); font-size: .85rem; }
table.data th, table.data td { text-align: left; padding: .55em .7em; border-bottom: 1px solid var(--border); }
table.data th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
table.data td.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ============================ ARTICLE / SINGLE / EDITOR ============================ */
.entry { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.2rem,3vw,2rem); box-shadow: var(--shadow-sm); }
.entry img { border-radius: var(--radius-sm); }
.entry ul, .entry ol { max-width: 68ch; }
.post-meta { font-size: .82rem; color: var(--muted); margin-bottom: 1rem; }
.pagination { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 2rem; }
.pagination .page-numbers { padding: .4em .8em; border: 1px solid var(--border); border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); }
.pagination .page-numbers.current { background: var(--primary-tint); color: var(--primary); border-color: var(--primary); }
.aligncenter { display: block; margin-inline: auto; }
.alignright { float: right; margin: 0 0 1rem 1rem; }
.alignleft { float: left; margin: 0 1rem 1rem 0; }
.alignwide { max-width: min(100%, 1120px); }
.wp-caption-text, figcaption { font-size: .82rem; color: var(--muted); }

/* ============================ PREMIUM VISUAL LAYER ============================ */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(46rem 46rem at 8% -8%, color-mix(in srgb, var(--primary) 12%, transparent), transparent 60%),
    radial-gradient(40rem 40rem at 108% 6%, color-mix(in srgb, var(--teal) 12%, transparent), transparent 60%),
    radial-gradient(50rem 50rem at 60% 108%, color-mix(in srgb, var(--primary) 8%, transparent), transparent 62%);
}

.gradient-text {
  background: linear-gradient(100deg, var(--primary), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .gradient-text { color: var(--primary); }
}

.eyebrow-pill {
  display: inline-flex; align-items: center; gap: .5rem; align-self: start;
  font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--teal);
  background: color-mix(in srgb, var(--teal) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--teal) 26%, transparent);
  padding: .4em .8em; border-radius: 999px;
}
.eyebrow-pill svg { width: 15px; height: 15px; }

.glass {
  background: color-mix(in srgb, var(--surface) 74%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
}
@media (max-width: 768px) { .glass { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); } }

/* section rhythm + headings */
.sec { position: relative; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.sec-head { display: grid; gap: .6rem; max-width: 62ch; margin-bottom: 1.6rem; }
.sec-head h2 { margin: 0; }

/* ---------------- HERO ---------------- */
.hero-panel {
  position: relative; overflow: hidden; border-radius: 26px;
  padding: clamp(1.8rem, 4vw, 3.6rem);
  border: 1px solid var(--border);
  background: radial-gradient(130% 130% at 0% 0%, color-mix(in srgb, var(--primary) 12%, var(--surface)) 0%, var(--surface) 58%);
  box-shadow: var(--shadow-md);
  margin-top: clamp(1rem, 3vw, 1.8rem);
}
.hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 6%, #000 46%);
  mask-image: linear-gradient(to bottom, transparent 6%, #000 46%);
}
.hero-inner { position: relative; z-index: 1; display: grid; gap: clamp(1.6rem, 4vw, 2.6rem); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 940px) { .hero-inner { grid-template-columns: 1.12fr .88fr; } }
.hero-copy { display: grid; gap: 1.2rem; }
.hero-copy h1 { margin: 0; font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem); letter-spacing: -.015em; }
.hero-copy .lead { max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: .2rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
.trust-chip { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 600; color: var(--muted); background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--border); padding: .38em .75em; border-radius: 999px; }
.trust-chip svg { width: 15px; height: 15px; color: var(--teal); }

.hero-card { border-radius: 18px; padding: 1.4rem; box-shadow: var(--shadow-md); }
.hero-card h3 { display: flex; align-items: center; gap: .5rem; font-size: 1.05rem; margin: 0 0 1rem; }
.hero-card h3 svg { width: 20px; height: 20px; color: var(--teal); }
.hero-links { display: grid; gap: .5rem; }
.hero-link { display: flex; align-items: center; gap: .8rem; padding: .7rem .8rem; border-radius: 12px; text-decoration: none; color: var(--ink); border: 1px solid transparent; transition: background .18s, border-color .18s, transform .12s; }
.hero-link:hover { background: color-mix(in srgb, var(--primary) 8%, transparent); border-color: color-mix(in srgb, var(--primary) 22%, transparent); transform: translateX(2px); color: var(--ink); }
.hero-link .ic { width: 38px; height: 38px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--primary-tint); color: var(--primary); }
.hero-link:nth-child(2) .ic { background: var(--teal-tint); color: var(--teal); }
.hero-link .ic svg { width: 19px; height: 19px; }
.hero-link .tx { display: grid; }
.hero-link .tx strong { font-size: .95rem; }
.hero-link .tx span { font-size: .8rem; color: var(--muted); }
.hero-link .arr { margin-left: auto; color: var(--muted); transition: transform .18s; }
.hero-link:hover .arr { transform: translateX(3px); color: var(--primary); }

/* ---------------- FEATURE CARDS ---------------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem; }
.feature-card {
  display: flex; flex-direction: column; gap: .6rem; padding: 1.5rem; border-radius: 18px; height: 100%;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm); text-decoration: none; color: inherit;
  position: relative; overflow: hidden; transition: box-shadow .2s, transform .16s, border-color .2s;
}
.feature-card::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--primary), var(--teal)); opacity: 0; transition: opacity .2s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.feature-card:hover::after { opacity: 1; }
.feature-card .fi { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--primary-tint); color: var(--primary); }
.feature-card:nth-child(2) .fi { background: var(--teal-tint); color: var(--teal); }
.feature-card:nth-child(4) .fi { background: var(--teal-tint); color: var(--teal); }
.feature-card .fi svg { width: 23px; height: 23px; }
.feature-card h3 { margin: 0; font-size: 1.12rem; }
.feature-card p { margin: 0; font-size: .92rem; color: var(--muted); }
.feature-card .go { margin-top: auto; display: inline-flex; align-items: center; gap: .3rem; font-weight: 600; font-size: .88rem; color: var(--primary); }
.feature-card .go svg { width: 15px; height: 15px; transition: transform .18s; }
.feature-card:hover .go svg { transform: translateX(3px); }

/* ---------------- CONFIDENTIALITY BAND / CTA BAND ---------------- */
.band {
  position: relative; overflow: hidden; border-radius: 22px; padding: clamp(1.6rem, 4vw, 3rem);
  border: 1px solid color-mix(in srgb, var(--teal) 26%, transparent);
  background:
    radial-gradient(60rem 30rem at 12% -40%, color-mix(in srgb, var(--teal) 16%, transparent), transparent 60%),
    radial-gradient(50rem 30rem at 110% 140%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 60%),
    var(--surface);
}
.band-cta { border-color: color-mix(in srgb, var(--primary) 30%, transparent); text-align: center; }
.band-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--teal-tint); color: var(--teal); flex: none; }
.band-icon svg { width: 26px; height: 26px; }
.band-flex { display: flex; gap: 1.2rem; align-items: flex-start; flex-wrap: wrap; }
.band-flex > div { flex: 1; min-width: 240px; }

/* ---------------- STATS ---------------- */
.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
.stat-card { position: relative; padding: 1.4rem; border-radius: 16px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.stat-card .num { font-family: var(--serif); font-weight: 700; font-size: clamp(2rem, 1.4rem + 2vw, 2.8rem); line-height: 1; font-variant-numeric: tabular-nums; }
.stat-card .num.grad { background: linear-gradient(120deg, var(--primary), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-card .cap { margin-top: .5rem; font-size: .85rem; color: var(--muted); }

/* ---------------- HOW IT WORKS (timeline) ---------------- */
.how-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: step; }
.how-step { position: relative; padding: 1.4rem; border-radius: 16px; border: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 80%, transparent); }
.how-step .sn { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; background: var(--primary); color: var(--on-primary); margin-bottom: .8rem; }
.how-step h3 { margin: 0 0 .3rem; font-size: 1.05rem; display: flex; align-items: center; gap: .5rem; }
.how-step h3 svg { width: 18px; height: 18px; color: var(--teal); }
.how-step p { margin: 0; font-size: .9rem; color: var(--muted); }

/* ---------------- LOGO GRID ---------------- */
.logo-grid { display: flex; flex-wrap: wrap; gap: .8rem; }
.logo-tile { display: inline-flex; align-items: center; gap: .55rem; padding: .7em 1.1em; border-radius: 14px; font-size: .88rem; font-weight: 600; color: var(--muted); background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--border); transition: color .18s, border-color .18s, transform .16s; }
.logo-tile:hover { color: var(--ink); border-color: color-mix(in srgb, var(--primary) 34%, var(--border)); transform: translateY(-2px); }
.logo-tile .dot { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, var(--primary-tint), var(--teal-tint)); flex: none; }

/* ---------------- REVEAL (scroll-in animation; replaces Framer Motion) ---------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
