/* RegAMagazine — editorial financial-magazine design.
   Ink navy + warm paper. Vermilion = action and accents.
   Headlines: Newsreader. Body/UI: Inter. */

:root {
  --ink: #101a2c;
  --ink-2: #18243a;
  --paper: #f7f4ee;
  --paper-2: #efe9df;
  --white: #ffffff;
  --text: #1a2233;
  --muted: #555f70;
  --muted-on-dark: #b2bccb;
  --line: #e1dbd0;
  --line-dark: rgba(255, 255, 255, 0.14);
  --accent: #b9400f;
  --accent-hover: #9c3509;
  --accent-soft: #fbeee7;
  --blue: #1f4fae;
  --blue-soft: #e9effb;
  --green: #17704a;
  --green-soft: #e3f3ea;
  --amber: #8a5a00;
  --amber-soft: #fff3d6;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgba(16, 26, 44, .06), 0 10px 28px rgba(16, 26, 44, .09);
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
code { font-size: .9em; background: var(--paper-2); padding: 1px 6px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 .5em; color: inherit; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.25rem; line-height: 1.28; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.06rem, 1.5vw, 1.22rem); color: var(--muted); max-width: 68ch; }
.hero .lede, .on-dark .lede { color: #d4dbe6; }
.hero .lede a { color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 700 .76rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; }
.hero .eyebrow, .on-dark .eyebrow { color: #f3a27f; }
.micro { font-size: .86rem; color: var(--muted); }
.fine { font-size: .9rem; color: var(--muted); }

/* Buttons */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font: 700 1rem/1.2 var(--sans); padding: 14px 22px; border-radius: var(--radius); border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); color: #fff; }
.btn-outline { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.hero .btn-outline, .on-dark .btn-outline, .cta-band .btn-outline { color: #fff; }
.hero .btn-outline:hover, .on-dark .btn-outline:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-lg { padding: 16px 26px; font-size: 1.05rem; }
.btn-sm { padding: 9px 15px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (max-width: 560px) { .btn { white-space: normal; text-align: center; } .btn-row .btn-lg { width: 100%; } }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 6px; font: 700 .74rem/1 var(--sans); letter-spacing: .04em; padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-note { font-size: .9em; color: var(--muted); font-weight: 400; }
.badge-open { background: var(--green-soft); color: var(--green); }
.badge-closed { background: #ececec; color: #4a4a4a; }
.badge-soon { background: var(--amber-soft); color: var(--amber); }

/* Top notice + header */
.topbar { background: var(--ink); color: var(--muted-on-dark); font-size: .84rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #fff; font-weight: 600; }
@media (max-width: 720px) { .topbar .hide-sm { display: none; } }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 18px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); line-height: 1.05; }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand b { display: block; font-family: var(--serif); font-size: 1.42rem; letter-spacing: -.01em; }
.brand b span { color: var(--accent); }
.brand small { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav > a:not(.btn) { white-space: nowrap; font: 600 .93rem var(--sans); color: var(--text); text-decoration: none; padding: 9px 10px; border-radius: 6px; }
.nav > a:not(.btn):hover, .nav > a[aria-current="page"] { background: var(--paper); color: var(--ink); }
.nav > a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); border-radius: 6px 6px 0 0; }
.nav .nav-cta { margin-left: 8px; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 9px; cursor: pointer; color: var(--ink); }
.menu-toggle svg { width: 22px; height: 22px; }
@media (max-width: 1080px) {
  .menu-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 10px var(--gutter) 20px; max-height: calc(100vh - 72px); overflow-y: auto; }
  .nav[data-open="true"] { display: flex; }
  .nav > a:not(.btn) { padding: 13px 6px; font-size: 1.03rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav > a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); padding-left: 12px; }
  .nav .nav-cta { margin: 14px 0 0; }
}
@media (max-width: 400px) { .brand small { display: none; } .brand b { font-size: 1.25rem; } }

/* Sections */
section { padding: clamp(56px, 8vw, 96px) 0; }
.section-tight { padding: clamp(32px, 5vw, 56px) 0; }
.on-dark { background: var(--ink); color: #fff; }
.on-white { background: #fff; }
.section-head { max-width: 780px; margin-bottom: clamp(26px, 4vw, 40px); }
.section-head.row-head { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.section-head.row-head > div { max-width: 760px; }

/* Hero */
.hero { position: relative; color: #fff; background-color: var(--ink); background-image: linear-gradient(90deg, rgba(12,19,33,.97) 0%, rgba(12,19,33,.9) 52%, rgba(12,19,33,.66) 100%), var(--bg); background-size: cover; background-position: center; padding: clamp(52px, 8vw, 100px) 0; }
@media (max-width: 900px) { .hero { background-image: linear-gradient(rgba(12,19,33,.9), rgba(12,19,33,.96)), var(--bg-sm); } }
.hero .wrap > div { max-width: 880px; }
.hero h1 { margin-bottom: 18px; }
.h1-sub { display: block; font-size: .5em; font-weight: 600; color: #f3a27f; margin-top: 8px; letter-spacing: 0; }
.crumbs { font-size: .84rem; color: var(--muted-on-dark); margin-bottom: 14px; }
.crumbs a { color: var(--muted-on-dark); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span[aria-current] { color: #e5e9ef; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .86rem; color: var(--muted-on-dark); margin-top: 22px; }
.byline span { display: inline-flex; align-items: center; gap: 6px; }
.byline svg { width: 15px; height: 15px; color: #f3a27f; }
.byline a { color: #fff; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: .92rem; color: #d4dbe6; margin-top: 4px; }
.hero-stats { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--muted-on-dark); font-size: .92rem; }
.hero-stats b { color: #fff; font-family: var(--serif); font-size: 1.35rem; margin-right: 4px; }

/* Grids + cards */
.grid { display: grid; gap: 20px; }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.why { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.why p { margin: 0; color: var(--muted); }
.why strong { display: block; color: var(--ink); font-family: var(--serif); font-size: 1.2rem; margin-bottom: 6px; }
.icon-badge { width: 44px; height: 44px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.icon-badge svg { width: 22px; height: 22px; }
.offer-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; display: flex; flex-direction: column; transition: box-shadow .15s, border-color .15s; }
.offer-card:hover { box-shadow: var(--shadow); border-color: #d3cbbd; }
.offer-top { display: flex; justify-content: space-between; gap: 10px; align-items: start; margin-bottom: 12px; }
.kicker { font: 700 .72rem/1.35 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.offer-card h3 { margin-bottom: 6px; }
.offer-card h3 a { color: var(--ink); text-decoration: none; }
.offer-card h3 a:hover { color: var(--accent); }
.offer-card > p { color: var(--muted); font-size: .96rem; }
.offer-terms { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin: auto 0 16px; padding: 12px 14px; background: var(--paper); border-radius: var(--radius); font-size: .88rem; }
.offer-terms div:first-child { grid-column: 1 / -1; }
.offer-terms dt { font-weight: 700; color: var(--muted); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.offer-terms dd { margin: 0; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; color: var(--accent); }
.more svg { width: 16px; height: 16px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 72px); align-items: start; }
.split > * { min-width: 0; }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; } }
.link-list { list-style: none; padding: 0; margin: 22px 0 0; border-top: 1px solid var(--line); }
.link-list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 2px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.link-list a:hover { color: var(--accent); }
.link-list svg { width: 18px; height: 18px; flex: none; color: var(--accent); }
.photo-card { margin: 0; background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.photo-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.photo-card figcaption { padding: 16px 20px; font-size: .92rem; color: var(--muted); }

/* Article layout */
.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 5vw, 60px); align-items: start; }
@media (max-width: 1000px) { .article-wrap { grid-template-columns: 1fr; } }
.article { min-width: 0; max-width: 780px; font-size: 1.04rem; }
.article.wide { max-width: none; }
.article h2 { margin-top: 1.7em; font-size: clamp(1.45rem, 2.5vw, 1.9rem); scroll-margin-top: 96px; }
.article h3 { margin-top: 1.4em; }
.article > h2:first-child, .article > .quick:first-child + h2 { margin-top: 0; }
.article ul, .article ol { padding-left: 1.2em; margin: 0 0 1.2em; display: grid; gap: 8px; }
.article li::marker { color: var(--accent); }
.article strong { color: var(--ink); }
.count { display: inline-grid; place-items: center; min-width: 34px; height: 30px; padding: 0 8px; margin-left: 6px; border-radius: 999px; background: var(--ink); color: #fff; font: 700 .9rem var(--sans); vertical-align: middle; }
.aside { position: sticky; top: 96px; display: grid; gap: 18px; }
@media (max-width: 1000px) { .aside { position: static; } }
.side-card { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 24px; }
.side-card h3 { font-size: 1.25rem; }
.side-card p { color: var(--muted-on-dark); font-size: .94rem; }
.side-card .micro { color: var(--muted-on-dark); margin: 12px 0 0; }
.terms-card dl { margin: 0; display: grid; gap: 10px; }
.terms-card dt { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-on-dark); }
.terms-card dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.toc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 22px; }
.toc .toc-h { font: 700 .76rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { margin: 0; padding-left: 1.1em; display: grid; gap: 7px; font-size: .93rem; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* Profile blocks */
.quick { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius-lg); padding: 20px 24px; margin-bottom: 1.4em; }
.quick p:last-child { margin: 0; font-size: 1.08rem; }
.quick-h { font: 700 .74rem/1 var(--sans) !important; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px !important; }
.claims { background: var(--blue-soft); border-radius: var(--radius); padding: 18px 22px 4px; }
.claims-intro { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; color: var(--muted); font-style: italic; }
.claims-intro svg { width: 22px; height: 22px; flex: none; color: var(--blue); }
.qlist li::marker { font-weight: 700; color: var(--ink); }
.risk-list li::marker { color: var(--accent); }
.profile-ctas { margin: 2em 0 .5em; }
.sources { font-size: .93rem; overflow-wrap: anywhere; }
.cite { background: var(--paper-2); border-radius: var(--radius); padding: 16px 20px; margin: 1.4em 0; font-size: .93rem; overflow-wrap: anywhere; }
.cite p:last-child { margin: 0; }

/* Tables */
.table-scroll { overflow-x: auto; margin: 1.2em 0 1.6em; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.data-table { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 520px; }
.data-table th, .data-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table thead th { background: var(--ink); color: #fff; font-weight: 700; font-size: .86rem; letter-spacing: .02em; }
.data-table thead td { background: var(--ink); }
.data-table tbody th { font-weight: 700; color: var(--ink); }
.data-table tbody th a { color: var(--ink); }
.data-table tbody th a:hover { color: var(--accent); }
.data-table tbody tr:last-child th, .data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:nth-child(even) th, .data-table tbody tr:nth-child(even) td { background: #fbfaf7; }
.glance { min-width: 0; }
.glance th { width: 34%; font-size: .86rem; color: var(--muted) !important; font-weight: 700; }
.glance td { font-weight: 600; color: var(--ink); }
.dir-table { min-width: 760px; }
@media (max-width: 560px) { .glance th, .glance td { display: block; width: auto; } .glance th { padding-bottom: 0; border-bottom: 0; } }

/* Callouts */
.notice { border-radius: var(--radius); padding: 18px 22px; margin: 1.4em 0; border-left: 5px solid var(--accent); background: var(--accent-soft); }
.notice strong:first-child { display: block; font-family: var(--serif); font-size: 1.12rem; margin-bottom: 4px; color: var(--accent-hover); }
.notice p:last-child { margin: 0; }
.notice.info { border-left-color: var(--blue); background: var(--blue-soft); }
.notice.info strong:first-child { color: var(--blue); }
.notice.disclaimer { font-size: .95rem; }
.notice.wide { margin: 0; }
.related { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 2em 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: .95rem; }
.related b { margin-right: 4px; }
.related a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-weight: 600; color: var(--ink); }
.related a:hover { border-color: var(--accent); color: var(--accent); }

/* Glossary */
.glossary { margin: 0; display: grid; gap: 12px; }
.term { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; scroll-margin-top: 96px; }
.term:target { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.term dt h2 { font-size: 1.22rem; margin: 0 0 6px; }
.term dd { margin: 0; color: var(--muted); }
.permalink { text-decoration: none; color: var(--line); font-weight: 700; margin-left: 4px; }
.permalink:hover, .permalink:focus { color: var(--accent); }

/* CTA band + inline subscribe */
.cta-band { background: var(--ink); color: #fff; padding: clamp(40px, 6vw, 64px) 0; border-top: 4px solid var(--accent); }
.cta-band .wrap { display: grid; grid-template-columns: 1fr auto; gap: 18px 40px; align-items: center; }
@media (max-width: 760px) { .cta-band .wrap { grid-template-columns: 1fr; } }
.cta-band h2 { margin: 0 0 6px; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.cta-band p { margin: 0; color: #d4dbe6; }
.sub-inline { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px 48px; align-items: center; }
.sub-inline h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.sub-inline p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .sub-inline { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); scroll-margin-top: 96px; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 54px 16px 20px; position: relative; }
.faq summary h3 { margin: 0; font-family: var(--sans); font-size: 1.02rem; font-weight: 700; line-height: 1.4; letter-spacing: 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: linear-gradient(var(--ink), var(--ink)) center/14px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center/2px 14px no-repeat; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 20px 18px; color: var(--muted); }
.faq details > div ul { padding-left: 1.2em; display: grid; gap: 6px; }
.faq details > div p:last-child, .faq details > div ul:last-child { margin-bottom: 0; }
.faq-group { margin: 0 0 36px; scroll-margin-top: 96px; }
.faq-group h2 { font-size: 1.55rem; margin-top: 0 !important; }
.compare thead th:first-of-type { background: var(--ink); }

/* Forms */
.form-card { background: #fff; color: var(--text); border-radius: var(--radius-lg); padding: clamp(22px, 3.5vw, 32px); box-shadow: var(--shadow); border: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid > * { min-width: 0; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field label, .chips legend { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; padding: 0; }
.opt { font-weight: 400; color: var(--muted); }
.field input { width: 100%; font: 400 1rem var(--sans); color: var(--text); background: #fff; border: 1.5px solid #cfc7b9; border-radius: 6px; padding: 12px 13px; transition: border-color .15s, box-shadow .15s; }
.field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 79, 174, .18); }
.field [aria-invalid="true"] { border-color: var(--accent); }
.field .err { display: none; color: var(--accent-hover); font-size: .84rem; margin-top: 4px; }
.field [aria-invalid="true"] ~ .err { display: block; }
.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { width: 100%; margin-bottom: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; font-size: .92rem; cursor: pointer; background: #fff; }
.chip input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.chip:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.form-disclosure { font-size: .82rem; color: var(--muted); margin: 0; }
.form-success { display: none; text-align: center; padding: 24px 8px; }
.form-success .icon-badge { margin: 0 auto 14px; border-radius: 50%; width: 58px; height: 58px; background: var(--green-soft); color: var(--green); }
.form-success p { color: var(--muted); margin: 0; }
form[data-sent="true"] { display: none; }
form[data-sent="true"] + .form-success { display: block; }

/* Footer */
.site-footer { background: #0b1220; color: var(--muted-on-dark); padding: 56px 0 44px; font-size: .92rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; padding-bottom: 32px; border-bottom: 1px solid var(--line-dark); }
.footer-top > * { min-width: 0; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-top { grid-template-columns: 1fr; } }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand small { color: var(--muted-on-dark); }
.site-footer .brand b span { color: #f3a27f; }
.site-footer .footer-h { color: #fff; font: 700 .78rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--muted-on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .footer-mail { color: #f3a27f; font-weight: 700; }
.footer-legal { padding-top: 24px; font-size: .82rem; line-height: 1.6; display: grid; gap: 8px; }
.footer-legal p { margin: 0; max-width: 1040px; }
.footer-legal strong { color: #e5e9ef; }
.footer-legal a { text-decoration: underline; }

/* ---- Cookie consent banner (shared) ---- */
.cc-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; max-width: 640px; margin: 0 auto; background: #0f1720; color: #fff; padding: 18px 20px; border-radius: 12px; box-shadow: 0 14px 40px rgba(0,0,0,.4); font-size: .93rem; line-height: 1.5; max-height: calc(100vh - 32px); overflow-y: auto; }
.cc-banner .consent-title { font-size: 1.1rem; margin: 0 0 6px; color: #fff; font-family: inherit; letter-spacing: 0; }
.cc-banner .consent-title:focus { outline: 3px solid #ffd166; outline-offset: 3px; }
.cc-banner p { margin: 0 0 12px; color: #e8edf3; }
.cc-banner a { color: #fff; text-decoration: underline; }
.consent-details { display: grid; gap: 10px; margin: 0 0 14px; padding: 12px; background: rgba(255,255,255,.07); border-radius: 8px; }
.consent-details[hidden] { display: none; }
.consent-row { display: flex; gap: 12px; align-items: flex-start; }
.consent-row input { width: 22px; height: 22px; margin-top: 2px; accent-color: #ffd166; flex: none; }
.consent-row label { cursor: pointer; }
.consent-row span { display: block; color: #c9d3de; font-size: .86rem; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.consent-btn { flex: 1 1 140px; min-height: 46px; padding: 10px 16px; border-radius: 8px; border: 2px solid #fff; background: #fff; color: #0f1720; font: inherit; font-weight: 700; cursor: pointer; }
.consent-btn:hover { background: #e8edf3; border-color: #e8edf3; }
.consent-btn.consent-link { background: transparent; color: #fff; }
.consent-btn.consent-link:hover { background: rgba(255,255,255,.1); }
.consent-btn:focus-visible { outline: 3px solid #ffd166; outline-offset: 2px; }
.cookie-settings-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: none; cursor: pointer; text-align: left; }
.cookie-settings-btn:hover { text-decoration: underline; color: #fff; }
.footer-h, .toc-h { font-size: inherit; }
