/* aegis-stack.com - AEGIS Style Guide 1.0 (brand/AEGIS-Styleguide-1.0.pdf) */
@font-face{font-family:"Manrope";src:url("/assets/fonts/manrope-var-latin.woff2") format("woff2-variations");font-weight:400 700;font-style:normal;font-display:swap}
@font-face{font-family:"IBM Plex Mono";src:url("/assets/fonts/ibmplexmono-regular.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Manrope Ersatz";src:local("Arial"),local("Helvetica Neue"),local("Liberation Sans");size-adjust:103%;ascent-override:104%;descent-override:29%;line-gap-override:0%}

:root{
  --night:#0F1B2B;--graphite:#1B2735;--ivory:#F7F6F2;--white:#FFFFFF;
  --gold-light:#E6C369;--gold:#B89852;--gold-dark:#8A6D3B;
  --bg:#F7F6F2;--bg2:#F2EEE5;--card:#FFFFFF;--text:#0F1B2B;--muted:#59616A;
  --accent:#B89852;--accent-hover:#C9AA66;--on-accent:#0F1B2B;--accent-ink:#786139;--accent-dim:#ECE5D5;--line:#B89852;
  --border:rgba(15,27,43,.12);--border-strong:rgba(15,27,43,.22);
  --shadow:0 1px 3px rgba(15,27,43,.06),0 6px 18px rgba(15,27,43,.06);
  --ff:"Manrope","Manrope Ersatz",system-ui,sans-serif;--ff-mono:"IBM Plex Mono",ui-monospace,Menlo,monospace;
  --max:1240px;--content:1080px;--narrow:760px;--r:10px;--nav-h:64px;
  color-scheme:light
}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --bg:#0F1B2B;--bg2:#162231;--card:#1B2735;--text:#F7F6F2;--muted:#A8ACAE;
  --accent:#E6C369;--accent-hover:#EDD28C;--on-accent:#0F1B2B;--accent-ink:#E6C369;--accent-dim:#2D3232;--line:#E6C369;
  --border:rgba(247,246,242,.10);--border-strong:rgba(247,246,242,.2);
  --shadow:0 1px 4px rgba(0,0,0,.3),0 8px 22px rgba(0,0,0,.25);color-scheme:dark}}
:root[data-theme="dark"]{
  --bg:#0F1B2B;--bg2:#162231;--card:#1B2735;--text:#F7F6F2;--muted:#A8ACAE;
  --accent:#E6C369;--accent-hover:#EDD28C;--on-accent:#0F1B2B;--accent-ink:#E6C369;--accent-dim:#2D3232;--line:#E6C369;
  --border:rgba(247,246,242,.10);--border-strong:rgba(247,246,242,.2);
  --shadow:0 1px 4px rgba(0,0,0,.3),0 8px 22px rgba(0,0,0,.25);color-scheme:dark}

/* Base */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:calc(var(--nav-h) + 1.25rem)}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important;animation:none!important}}
body{font-family:var(--ff);font-size:1.0625rem;line-height:1.6;background:var(--bg);color:var(--text);min-height:100vh;display:flex;flex-direction:column}
main{flex:1}
h1,h2,h3,h4{font-weight:600;line-height:1.15;letter-spacing:-.015em;text-wrap:balance}
p,li,dd{text-wrap:pretty}
a{color:inherit}
img,svg{display:block;max-width:100%}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
code,kbd,samp{font-family:var(--ff-mono);font-size:.9em}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:4px}
::selection{background:var(--accent);color:var(--on-accent)}
.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}
.skip-link{position:absolute;left:1rem;top:-100px;z-index:200;background:var(--accent);color:var(--on-accent);padding:.6rem 1rem;border-radius:8px;font-weight:700;text-decoration:none}
.skip-link:focus{top:.75rem}

/* Layout */
.wrap{width:100%;max-width:calc(var(--content) + 2.5rem);margin-inline:auto;padding-inline:1.25rem}
.wrap-narrow{max-width:calc(var(--narrow) + 2.5rem)}
.sec{padding:4.5rem 0}
.sec-alt{background:var(--bg2)}
.sec-head{max-width:46rem;margin-bottom:2.25rem}
.sec-head h2{font-size:clamp(1.65rem,3.2vw,2.35rem);margin-bottom:.85rem}
.h2{font-size:clamp(1.65rem,3.2vw,2.35rem);margin-bottom:1rem}
.sec-intro{font-size:1.1rem;line-height:1.6;color:var(--muted)}
.sec-intro+.sec-intro{margin-top:.8rem}
.sec-more{margin-top:2rem}
.eyebrow{display:flex;align-items:center;gap:.75rem;font-size:.76rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--accent-ink);margin-bottom:.9rem}
.eyebrow::before{content:"";width:2rem;height:2px;background:var(--line);flex-shrink:0}
.lead{font-size:clamp(1.1rem,1.6vw,1.25rem);line-height:1.6;color:var(--muted);max-width:40em}
.link-arrow{display:inline-flex;align-items:center;gap:.4rem;font-weight:600;color:var(--accent-ink);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
.link-arrow:hover{text-decoration-thickness:2px}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:46px;padding:.7rem 1.35rem;border-radius:8px;border:1.5px solid var(--accent);background:var(--accent);color:var(--on-accent);font-weight:700;font-size:.97rem;line-height:1.2;text-decoration:none;transition:background .15s,border-color .15s,color .15s}
.btn:hover{background:var(--accent-hover);border-color:var(--accent-hover)}
.btn-line{background:transparent;border-color:var(--border-strong);color:var(--text);font-weight:600}
.btn-line:hover{background:transparent;border-color:var(--accent);color:var(--accent-ink)}
.btn-sm{min-height:38px;padding:.45rem 1rem;font-size:.88rem}
.feed-link{margin-top:1rem;font-size:.9rem}
.feed-link a{display:inline-flex;align-items:center;gap:.45rem;color:var(--accent-ink);font-weight:600;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
.feed-link svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.feed-link circle{fill:currentColor;stroke:none}
.btn-dl{background:#E6C369;border-color:#E6C369;color:#0F1B2B;gap:.4rem}
.btn-dl:hover{background:#EDD28C;border-color:#EDD28C}
.btn-dl svg{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.btn-sm.btn-dl{padding:.45rem .8rem}
.mobile-nav .btn-dl{margin-top:.75rem}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]) .btn-dl{background:transparent;color:#E6C369}:root:not([data-theme="light"]) .btn-dl:hover{background:rgba(230,195,105,.12)}}
:root[data-theme="dark"] .btn-dl{background:transparent;color:#E6C369}:root[data-theme="dark"] .btn-dl:hover{background:rgba(230,195,105,.12)}
.btn .arr{transition:transform .15s}
.btn:hover .arr{transform:translateX(3px)}
.actions{display:flex;flex-wrap:wrap;gap:.75rem}

/* Navigation */
.site-nav{position:sticky;top:0;z-index:100;background:var(--bg);border-bottom:1px solid var(--border)}
.nav-inner{max-width:calc(var(--max) + 2.5rem);margin-inline:auto;padding-inline:1.25rem;height:var(--nav-h);display:flex;align-items:center;justify-content:space-between;gap:1.5rem}
.nav-logo{display:flex;align-items:center;color:var(--text);text-decoration:none;flex-shrink:0}
.nav-logo .logo-svg{height:30px;width:auto}
.nav-links{display:flex;align-items:center;gap:1.9rem;list-style:none}
.nav-links a{font-size:.93rem;font-weight:600;color:var(--muted);text-decoration:none;transition:color .15s}
.nav-links a:hover,.nav-links a[aria-current="page"]{color:var(--text)}
.nav-actions{display:flex;align-items:center;gap:.6rem}
.lang-sw{display:flex;align-items:center;gap:2px;font-size:.8rem;font-weight:700}
.lang-sw span{color:var(--border-strong)}
.lang-sw a{padding:.35rem .45rem;border-radius:6px;color:var(--muted);text-decoration:none}
.lang-sw a:hover{color:var(--text)}
.lang-sw a[aria-current="true"]{color:var(--accent-ink)}
.icon-btn{display:inline-grid;place-items:center;width:38px;height:38px;border-radius:8px;color:var(--muted);transition:color .15s,background .15s}
.icon-btn:hover{color:var(--text);background:var(--bg2)}
.icon-btn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.theme-btn .i-sun{display:none}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]) .theme-btn .i-sun{display:block}:root:not([data-theme="light"]) .theme-btn .i-moon{display:none}}
:root[data-theme="dark"] .theme-btn .i-sun{display:block}
:root[data-theme="dark"] .theme-btn .i-moon{display:none}
.menu-btn{display:none}
.mobile-nav{display:none;position:fixed;inset:var(--nav-h) 0 0 0;background:var(--bg);z-index:99;padding:2rem 1.25rem;overflow-y:auto}
.mobile-nav.open{display:block}
.mobile-nav ul{list-style:none;display:flex;flex-direction:column;margin-bottom:1.75rem}
.mobile-nav ul a{display:block;padding:.8rem 0;font-size:1.15rem;font-weight:600;color:var(--text);text-decoration:none;border-bottom:1px solid var(--border)}
.mobile-nav .btn{width:100%}
.mobile-nav .lang-sw{margin-top:1.5rem;font-size:.95rem}
@media(max-width:1000px){
  .nav-links,.nav-actions .btn{display:none}
  .menu-btn{display:inline-grid}
}

/* Hero */
.has-canvas{position:relative;overflow:hidden}
.has-canvas>:not(.hero-canvas){position:relative;z-index:1}
.hero-canvas{position:absolute;inset:0;width:100%;height:100%;opacity:0;transition:opacity .8s ease;pointer-events:none;z-index:0}
.hero-canvas.on{opacity:.58}
.hero{padding:5.5rem 0 5rem;border-bottom:1px solid var(--border)}
.hero-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:3rem;align-items:center}
.hero h1{font-size:clamp(2.2rem,5vw,3.5rem);line-height:1.08;letter-spacing:-.025em;margin-bottom:1.35rem}
.hero h1 .line{display:block}
.hero .lead{margin-bottom:2rem}
.hero-note{margin-top:1.4rem;font-size:.9rem;color:var(--muted)}
.hero-mark{justify-self:center;width:min(100%,330px)}
.hero-mark img{width:100%;height:auto}
@media(max-width:860px){.hero{padding:3.5rem 0 3.25rem}.hero-grid{grid-template-columns:1fr}.hero-mark{display:none}}

/* Key facts */
.facts{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--border);border-bottom:1px solid var(--border)}
.facts>div{background:var(--bg2);padding:1.75rem 1.5rem}
.facts .v{display:block;font-size:1.25rem;font-weight:600;letter-spacing:-.01em;margin-bottom:.4rem}
.facts .k{font-size:.92rem;line-height:1.5;color:var(--muted)}
@media(max-width:900px){.facts{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.facts{grid-template-columns:1fr}}

/* Cards */
.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:1.25rem}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:1.25rem}
.card{background:var(--card);border:1px solid var(--border);border-radius:var(--r);padding:1.6rem 1.6rem 1.7rem;display:flex;flex-direction:column}
.card h3{font-size:1.15rem;margin-bottom:.6rem}
.card p{font-size:.97rem;line-height:1.6;color:var(--muted)}
.card p+p{margin-top:.6rem}
.card .label{font-size:.76rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--accent-ink);margin:1rem 0 .3rem}
.ico{width:44px;height:44px;border-radius:10px;background:var(--accent-dim);color:var(--accent-ink);display:grid;place-items:center;margin-bottom:1.1rem}
.ico svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:900px){.grid-3{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.grid-3,.grid-2{grid-template-columns:1fr}}

/* Three authorities */
.flow{list-style:none;display:grid;grid-template-columns:repeat(3,1fr);gap:1.25rem;counter-reset:fl}
.flow li{counter-increment:fl;position:relative;background:var(--card);border:1px solid var(--border);border-radius:var(--r);padding:1.6rem}
.flow li::before{content:counter(fl);display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--night);color:var(--gold-light);font-weight:700;margin-bottom:1rem;box-shadow:0 0 0 1px rgba(247,246,242,.12)}
.flow li:not(:last-child)::after{content:"";position:absolute;top:calc(1.6rem + 19px);right:calc(-1.25rem - 1px);width:1.25rem;height:2px;background:var(--line)}
.flow h3{font-size:1.2rem;margin-bottom:.15rem}
.flow .role{font-size:.78rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--accent-ink);margin-bottom:.7rem}
.flow p{font-size:.97rem;color:var(--muted)}
@media(max-width:860px){.flow{grid-template-columns:1fr}.flow li:not(:last-child)::after{top:auto;bottom:calc(-1.25rem - 1px);left:calc(1.6rem + 19px);right:auto;width:2px;height:1.25rem}}

/* Technical log: IBM Plex Mono, always on Night */
.log{margin-top:1.75rem;background:#0F1B2B;color:#D9DBDD;border:1px solid rgba(247,246,242,.12);border-radius:12px;overflow:hidden;font-family:var(--ff-mono);font-size:.82rem;line-height:1.75}
.log-head{display:flex;justify-content:space-between;gap:1rem;padding:.65rem 1.1rem;border-bottom:1px solid rgba(247,246,242,.1);color:#A8ACAE;font-size:.76rem}
.log ol{list-style:none;padding:.9rem 1.1rem;overflow-x:auto}
.log li{display:grid;grid-template-columns:4.6rem 5.6rem minmax(16rem,1fr) 7.5rem;gap:1rem;white-space:nowrap}
.log .t{color:#8A9099}
.log .who{color:#E6C369}
.log .res{text-align:right;color:#A8ACAE}
.log .res.ok{color:#E6C369}
.log .res.no{color:#0F1B2B;background:#F7F6F2;border-radius:4px;padding:0 .4rem;justify-self:end}
.log-note{font-size:.88rem;color:var(--muted);margin-top:.75rem}

/* Lists */
.checks{list-style:none;display:flex;flex-direction:column;gap:.9rem}
.checks li{position:relative;padding-left:2rem;line-height:1.55}
.checks li::before{content:"";position:absolute;left:.15rem;top:.4em;width:.95rem;height:.5rem;border-left:2px solid var(--accent-ink);border-bottom:2px solid var(--accent-ink);transform:rotate(-45deg)}
.checks strong{display:block}
.checks span{color:var(--muted)}
.split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:3.5rem;align-items:start}
@media(max-width:860px){.split{grid-template-columns:1fr;gap:2rem}}
.panel{background:var(--card);border:1px solid var(--border);border-radius:12px;padding:2rem}
@media(max-width:600px){.panel{padding:1.4rem 1.2rem}}

/* Steps */
.steps{list-style:none;counter-reset:st;display:grid;grid-template-columns:repeat(4,1fr);gap:1.25rem}
.steps li{counter-increment:st}
.steps li::before{content:counter(st);display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--accent-dim);color:var(--accent-ink);font-weight:700;margin-bottom:.9rem}
.steps h3{font-size:1.08rem;margin-bottom:.4rem}
.steps p{font-size:.95rem;color:var(--muted)}
@media(max-width:900px){.steps{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.steps{grid-template-columns:1fr}}

/* Article cards */
.posts{display:grid;grid-template-columns:repeat(3,1fr);gap:1.25rem}
.post-card{position:relative;background:var(--card);border:1px solid var(--border);border-radius:var(--r);padding:1.5rem;display:flex;flex-direction:column;gap:.7rem;transition:box-shadow .2s,transform .15s}
.post-card:hover{box-shadow:var(--shadow);transform:translateY(-2px)}
.post-card h2,.post-card h3{font-size:1.15rem;line-height:1.3}
.post-card h2 a,.post-card h3 a{text-decoration:none;color:var(--text)}
.post-card h2 a::after,.post-card h3 a::after{content:"";position:absolute;inset:0}
.post-card:hover h2 a,.post-card:hover h3 a{color:var(--accent-ink)}
.post-card p{font-size:.94rem;color:var(--muted);line-height:1.55}
.post-meta{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem .9rem;font-size:.82rem;color:var(--muted);margin-top:auto;padding-top:.3rem}
.badge{display:inline-block;align-self:flex-start;background:var(--accent-dim);color:var(--text);font-size:.74rem;font-weight:700;letter-spacing:.02em;padding:.22rem .6rem;border-radius:5px;text-decoration:none}
@media(max-width:900px){.posts{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.posts{grid-template-columns:1fr}}

/* FAQ */
.faq{max-width:52rem}
.faq details{border-bottom:1px solid var(--border)}
.faq details:first-child{border-top:1px solid var(--border)}
.faq summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:baseline;gap:1.5rem;padding:1.2rem 0;font-weight:600;font-size:1.05rem}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";font-size:1.4rem;line-height:1;color:var(--accent-ink);transition:transform .2s}
.faq details[open] summary::after{transform:rotate(45deg)}
.faq .a{padding:0 2.5rem 1.35rem 0;color:var(--muted);max-width:44rem}
.faq .a a{color:var(--accent-ink)}

/* CTA panel */
.cta-panel{background:var(--bg2);border:1px solid var(--border);border-radius:12px;padding:2.25rem 2.5rem;display:flex;align-items:center;justify-content:space-between;gap:1.5rem 3rem;flex-wrap:wrap}
.cta-panel h2{font-size:clamp(1.4rem,2.6vw,1.75rem);margin-bottom:.4rem}
.cta-panel p{color:var(--muted);max-width:40rem}
.sec-alt .cta-panel{background:var(--card)}
@media(max-width:600px){.cta-panel{padding:1.6rem 1.3rem}}

/* Subpage hero */
.p-hero{padding:3.5rem 0 3rem;border-bottom:1px solid var(--border)}
.p-hero h1{font-size:clamp(2.1rem,4.6vw,3.2rem);line-height:1.08;letter-spacing:-.022em;margin-bottom:1.1rem;max-width:22ch}
.p-hero .actions{margin-top:1.75rem}
.crumbs{margin-bottom:1.5rem}
.crumbs ol{list-style:none;display:flex;flex-wrap:wrap;gap:.4rem;font-size:.82rem;color:var(--muted)}
.crumbs li+li::before{content:"/";margin-right:.4rem;opacity:.5}
.crumbs a{color:var(--muted);text-decoration:none}
.crumbs a:hover{color:var(--accent-ink)}

/* Prose */
.prose{font-size:1.125rem;line-height:1.72}
.prose>*+*{margin-top:1.15rem}
.prose h2{font-size:clamp(1.45rem,2.6vw,1.8rem);line-height:1.2;margin-top:3rem}
.prose h3{font-size:1.22rem;line-height:1.3;margin-top:2.1rem}
.prose h2+*,.prose h3+*{margin-top:.75rem}
.prose ul,.prose ol{padding-left:1.35rem}
.prose li+li{margin-top:.45rem}
.prose li::marker{color:var(--accent-ink)}
.prose strong{font-weight:700}
.prose a{color:var(--accent-ink);text-decoration-thickness:1px;text-underline-offset:3px}
.prose a:hover{text-decoration-thickness:2px}
.prose code{background:var(--bg2);border:1px solid var(--border);padding:.08rem .35rem;border-radius:5px}
.prose blockquote{background:var(--bg2);border-radius:10px;padding:1.2rem 1.4rem;font-size:1.1rem}
.prose hr{border:0;border-top:1px solid var(--border);margin:2.5rem 0}
.prose .table-wrap,.prose>table{margin-top:1.5rem}
.table-wrap{overflow-x:auto;border:1px solid var(--border);border-radius:10px;background:var(--card)}
.prose table{width:100%;border-collapse:collapse;font-size:.95rem;line-height:1.5}
.prose th,.prose td{text-align:left;vertical-align:top;padding:.8rem 1rem;border-bottom:1px solid var(--border)}
.prose thead th{font-size:.76rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);background:var(--bg2)}
.prose tbody tr:last-child td{border-bottom:0}
.prose>.scenario{margin-top:1.5rem;padding:2.5rem 0}
.prose>.scenario+.scenario{margin-top:0}
.prose>.scenario+h2{margin-top:2.5rem}
/* Every second scenario gets a full-width band, like the alternating sections */
.prose>.scenario:nth-of-type(even){background:var(--bg2);box-shadow:0 0 0 100vmax var(--bg2);clip-path:inset(0 -100vmax)}
.prose .scenario h3{margin-top:0}
.prose .scenario .label{display:block;font-size:.74rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);margin-bottom:.3rem}
.prose .scenario .situation{margin-top:.6rem}
.prose .role{position:relative;margin-top:1rem;background:var(--card);border:1px solid var(--border);border-radius:12px;padding:1.25rem 1.4rem 1.3rem 4.2rem;font-size:1.02rem;line-height:1.65}
.prose .role::before{content:"";position:absolute;left:1.3rem;top:1.35rem;width:1.75rem;height:2rem;background:url("/assets/img/aegis-bildmarke.svg") center/contain no-repeat}
.prose .role .label{color:var(--accent-ink);margin-bottom:.35rem}
.prose .role p{margin:0}
@media(max-width:560px){.prose .role{padding:1.1rem 1.1rem 1.2rem}.prose .role::before{position:static;display:block;margin-bottom:.6rem}}
.prose table.compare td:first-child{font-weight:600;color:var(--text)}
.prose table.compare thead th:last-child{background:var(--accent);color:var(--on-accent);font-size:.82rem;letter-spacing:.08em}
.prose table.compare td:last-child{background:color-mix(in srgb,var(--accent) 14%,var(--card));color:var(--text);font-weight:600}
.prose table.compare tbody tr:not(:last-child) td:last-child{border-bottom-color:color-mix(in srgb,var(--accent) 30%,transparent)}
.nw{white-space:nowrap}
.prose .flow{padding-left:0;margin-top:1.5rem;margin-bottom:1.5rem}
.prose .flow li+li{margin-top:0}
.prose .flow h3{margin-top:0;font-size:1.12rem}
.prose .flow p{font-size:.95rem;line-height:1.6}
.prose .flow .role{margin-bottom:.6rem}
.prose .log{font-size:.8rem;line-height:1.75}
.prose .log ol{padding-left:1.1rem}
.prose .log li+li{margin-top:0}
.prose .log li::marker{content:none}
.page-body{padding:3.5rem 0 1rem}

/* Table of contents */
.toc{background:var(--bg2);border-radius:10px;padding:1.2rem 1.4rem;margin-top:2rem}
.toc p{font-size:.76rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);margin-bottom:.6rem}
.toc ol{padding-left:1.2rem;display:flex;flex-direction:column;gap:.3rem;font-size:.97rem}
.toc a{color:var(--text);text-decoration:none}
.toc a:hover{color:var(--accent-ink);text-decoration:underline}

/* Article */
.post-head{padding:3rem 0 2rem}
.post-head h1{font-size:clamp(2rem,4.3vw,2.85rem);line-height:1.1;letter-spacing:-.02em;margin:.9rem 0 1.1rem}
.post-head .lead{color:var(--text)}
.post-byline{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem 1rem;font-size:.88rem;color:var(--muted);margin:0 0 1.3rem}
.post-byline a{color:var(--text);font-weight:600;text-decoration:none}
.post-byline a:hover{color:var(--accent-ink)}
.post-byline .by{display:inline-flex;align-items:center;gap:.5rem}
.post-byline .by img{width:32px;height:32px;border-radius:50%;object-fit:cover;border:1px solid var(--border)}
.post-body{padding:.5rem 0 3rem}
.sources{margin-top:3rem;padding-top:1.6rem;border-top:1px solid var(--border)}
.sources h2{font-size:1.05rem;margin-bottom:.8rem}
.sources ol{padding-left:1.2rem;font-size:.92rem;color:var(--muted);display:flex;flex-direction:column;gap:.4rem;overflow-wrap:anywhere}
.sources a{color:var(--accent-ink);text-underline-offset:3px}
.publisher{display:flex;gap:1.1rem;align-items:flex-start;background:var(--card);border:1px solid var(--border);border-radius:12px;padding:1.4rem 1.5rem;margin-top:2.5rem}
.publisher img{width:40px;height:auto;flex-shrink:0;margin-top:.2rem}
.publisher strong{display:block;margin-bottom:.25rem}
.publisher p{font-size:.95rem;color:var(--muted)}
.publisher a{color:var(--accent-ink);text-underline-offset:3px}
.author-box{display:flex;gap:1.1rem;align-items:flex-start;background:var(--card);border:1px solid var(--border);border-radius:12px;padding:1.4rem 1.5rem;margin-top:3rem}
.author-box img{width:64px;height:64px;border-radius:50%;object-fit:cover;flex-shrink:0;border:1px solid var(--border)}
.author-box strong{display:block;font-size:.76rem;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);margin-bottom:.35rem}
.author-box p{font-size:.95rem;color:var(--muted)}
.author-box p+p{margin-top:.5rem}
.author-box .author-name{font-size:1.05rem;color:var(--text)}
.author-box .author-name a{color:var(--text);font-weight:700;text-decoration:none}
.author-box .author-name a:hover{color:var(--accent-ink)}
.author-box .author-name span{display:block;font-size:.88rem;font-weight:400;color:var(--muted)}
.author-box p a{color:var(--accent-ink);text-underline-offset:3px}
.author-box+.publisher{margin-top:1.25rem}
@media(max-width:520px){.author-box{flex-direction:column;gap:.9rem}}

/* Author page */
.author-head{display:flex;gap:2.25rem;align-items:center}
.author-photo{width:160px;height:160px;border-radius:50%;object-fit:cover;flex-shrink:0;border:2px solid var(--line)}
.author-head h1{margin-bottom:.35rem}
.author-role{font-weight:600;color:var(--accent-ink);margin-bottom:.9rem}
.prose .chips{list-style:none;display:flex;flex-wrap:wrap;gap:.5rem;padding-left:0}
.prose .chips li+li{margin-top:0}
.chips li{background:var(--accent-dim);color:var(--text);font-size:.9rem;font-weight:600;padding:.3rem .8rem;border-radius:999px}
@media(max-width:640px){.author-head{flex-direction:column;align-items:flex-start;gap:1.25rem}.author-photo{width:112px;height:112px}}

/* Blog index */
.filter-bar{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1.75rem}
.filter-btn{padding:.4rem 1rem;border-radius:7px;border:1.5px solid var(--border);font-size:.86rem;font-weight:600;color:var(--muted);transition:border-color .15s,color .15s}
.filter-btn:hover,.filter-btn[aria-pressed="true"]{border-color:var(--accent);color:var(--accent-ink)}
.post-card[hidden]{display:none}

/* Glossary */
.alpha-nav{position:sticky;top:var(--nav-h);z-index:40;background:var(--bg);border-bottom:1px solid var(--border)}
.alpha-nav ul{list-style:none;display:flex;flex-wrap:wrap;justify-content:center;gap:3px;padding:.65rem 1.25rem;max-width:calc(var(--max) + 2.5rem);margin-inline:auto}
.alpha-nav a,.alpha-nav span{width:34px;height:34px;display:grid;place-items:center;border-radius:7px;font-size:.86rem;font-weight:700;text-decoration:none}
.alpha-nav a{color:var(--text)}
.alpha-nav a:hover,.alpha-nav a.active{background:var(--accent);color:var(--on-accent)}
.alpha-nav span{color:var(--muted);opacity:.45}
.gl-body{padding:2.5rem 0 4rem}
.gl-section{scroll-margin-top:calc(var(--nav-h) + 64px);padding-top:1.25rem}
.gl-section+.gl-section{margin-top:2rem}
.gl-letter{font-size:2rem;color:var(--accent-ink);padding-bottom:.5rem;margin-bottom:.25rem;border-bottom:1px solid var(--border)}
.gl-list dt{scroll-margin-top:calc(var(--nav-h) + 76px);font-size:1.1rem;font-weight:700;margin-top:1.6rem}
.gl-list dt a{color:inherit;text-decoration:none}
.gl-list dt a:hover{color:var(--accent-ink)}
.gl-list dt:target{color:var(--accent-ink)}
.gl-list dd{margin-top:.45rem;color:var(--muted);line-height:1.7;max-width:46rem}
.gl-list dd .more{display:flex;flex-wrap:wrap;gap:.3rem 1.2rem;margin-top:.55rem;font-size:.93rem}
.gl-list dd .more a{color:var(--accent-ink);text-underline-offset:3px}

/* Forms */
.form fieldset{border:0;display:grid;gap:1.1rem;margin-bottom:1.5rem}
.form legend{font-size:.76rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--accent-ink);margin-bottom:.9rem;padding:0}
.form .row{display:grid;grid-template-columns:1fr 1fr;gap:1.1rem}
@media(max-width:600px){.form .row{grid-template-columns:1fr}}
.form .field{display:flex;flex-direction:column;gap:.35rem}
.form label{font-size:.9rem;font-weight:600}
.form .req{color:var(--accent-ink)}
.form .hint{font-size:.82rem;color:var(--muted)}
.form input[type=text],.form input[type=email],.form textarea{width:100%;font:inherit;font-size:1rem;color:var(--text);background:var(--bg);border:1.5px solid var(--border-strong);border-radius:8px;padding:.7rem .85rem;transition:border-color .15s,box-shadow .15s}
.form select{width:100%;font:inherit;font-size:1rem;color:var(--text);background-color:var(--bg);border:1.5px solid var(--border-strong);border-radius:8px;padding:.7rem 2.4rem .7rem .85rem;min-height:46px;appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);background-position:calc(100% - 18px) 55%,calc(100% - 13px) 55%;background-size:5px 5px;background-repeat:no-repeat}
.form select:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-dim)}
.form textarea{min-height:120px;resize:vertical;line-height:1.5}
.legal .prose td:first-child,.legal td:first-child{font-weight:600;width:34%}
.form input:focus,.form textarea:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-dim)}
.form [aria-invalid="true"]{border-color:var(--text)}
.form .err{font-size:.86rem;font-weight:600}
.form .err[hidden]{display:none}
.form .consent{display:flex;gap:.7rem;align-items:flex-start;font-size:.9rem;font-weight:400;color:var(--muted);margin-bottom:.4rem}
.form .consent input{margin-top:.25rem;width:18px;height:18px;flex-shrink:0;accent-color:var(--gold-dark)}
.form .consent a{color:var(--accent-ink);text-underline-offset:3px}
.form .hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.form .note{font-size:.84rem;color:var(--muted);margin-top:1rem}
.form .submit-row{margin-top:1.4rem}
.form-msg{border-radius:10px;padding:1rem 1.2rem;margin-bottom:1.4rem;font-size:.97rem;background:var(--accent-dim);color:var(--text)}
.form-msg strong{display:block;margin-bottom:.2rem}
.form-msg[hidden]{display:none}
.btn[aria-busy="true"]{opacity:.7;cursor:progress}

/* Info pages (404, confirmation) */
.info{padding:5rem 0 5.5rem}
.info h1{font-size:clamp(2rem,4vw,2.8rem);margin-bottom:1rem}
.info p{color:var(--muted);max-width:38rem}
.info .actions{margin-top:2rem}
.info-links{list-style:none;display:flex;flex-wrap:wrap;gap:.5rem 1.5rem;margin-top:2.5rem}
.info-links a{color:var(--accent-ink);text-underline-offset:3px}

/* Footer */
.site-footer{background:var(--bg2);border-top:1px solid var(--border);padding:3.75rem 0 2rem;margin-top:auto;font-size:.92rem}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:2.5rem;margin-bottom:3rem}
.footer-brand .logo-svg{height:28px;width:auto}
.footer-brand p{color:var(--muted);margin-top:1rem;max-width:23rem;line-height:1.55}
.footer-brand p a{color:var(--text);text-underline-offset:3px}
.footer-h{font-size:.76rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;margin-bottom:1rem}
.footer-col ul{list-style:none;display:flex;flex-direction:column;gap:.55rem}
.footer-col a{color:var(--muted);text-decoration:none;transition:color .15s}
.footer-col a:hover{color:var(--text)}
.footer-bottom{border-top:1px solid var(--border);padding-top:1.5rem;display:flex;flex-wrap:wrap;justify-content:space-between;gap:.75rem 1.5rem;font-size:.84rem;color:var(--muted)}
@media(max-width:900px){.footer-grid{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.footer-grid{grid-template-columns:1fr}}

@media print{
  .site-nav,.site-footer,.hero-canvas,.cta-panel,.alpha-nav,.mobile-nav{display:none!important}
  body{background:#fff;color:#000}
}
