:root {
  --ink: #0a1530;
  --ink-soft: #1b2947;
  --paper: #f7f8fc;
  --white: #ffffff;
  --jacaranda: #5141b9;
  --jacaranda-soft: #ebe8ff;
  --gold: #dda52c;
  --gold-soft: #fff3cd;
  --forest: #137457;
  --forest-soft: #dff5eb;
  --red: #c43e49;
  --red-soft: #ffe8ea;
  --line: #d8deea;
  --muted: #5a667d;
  --shadow: 0 18px 50px rgba(10, 21, 48, .11);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 4%, rgba(81, 65, 185, .1), transparent 26rem),
    linear-gradient(180deg, #fff 0, var(--paper) 26rem);
  color: var(--ink);
  font: 16px/1.65 "Aptos", "Trebuchet MS", Arial, sans-serif;
}
a { color: var(--jacaranda); text-underline-offset: .18em; }
a:hover { color: #30218f; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
img, video, iframe, table { max-width: 100%; }
img { height: auto; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 100; padding: .7rem 1rem; background: var(--ink); color: #fff; border-radius: 0 0 10px 10px; }
.skip-link:focus { top: 0; }
.wrap { width: min(1180px, calc(100% - 32px)); margin-inline: auto; min-width: 0; }

.site-header { background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); position: relative; z-index: 10; }
.header-grid { display: grid; grid-template-columns: minmax(215px, .85fr) minmax(420px, 1.8fr) auto; align-items: center; gap: 1rem; min-height: 86px; }
.brand-home { display: flex; align-items: center; gap: .7rem; color: var(--ink); text-decoration: none; font-weight: 900; line-height: 1.05; letter-spacing: -.025em; }
.site-mark { position: relative; width: 42px; height: 42px; flex: 0 0 auto; border-radius: 10px; background: var(--ink); }
.site-mark::before { content: ""; position: absolute; inset: 8px 6px 6px; background: var(--gold); clip-path: polygon(50% 0,100% 100%,0 100%); }
.site-mark::after { content: ""; position: absolute; left: 16px; top: 18px; width: 10px; height: 10px; border-radius: 50%; background: var(--jacaranda); }
.brand-home small { display: block; color: var(--muted); font-size: .7rem; letter-spacing: .07em; text-transform: uppercase; margin-top: .2rem; }
.primary-nav { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .25rem .4rem; min-width: 0; }
.primary-nav a { color: var(--ink-soft); text-decoration: none; font-weight: 750; padding: .45rem .55rem; border-radius: 8px; font-size: .91rem; }
.primary-nav a[aria-current="page"], .primary-nav a:hover { background: var(--jacaranda-soft); color: #33228e; }
.cta { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; background: var(--gold); color: var(--ink); font-weight: 900; text-decoration: none; border: 2px solid #bc8411; border-radius: 999px; padding: .68rem 1rem; box-shadow: 0 6px 0 #805c0d; transform: translateY(-2px); white-space: nowrap; }
.cta:hover { color: var(--ink); transform: translateY(0); box-shadow: 0 4px 0 #805c0d; }

main { min-height: 60vh; }
.hero { padding: 4.5rem 0 2.6rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(280px, .68fr); gap: 2rem; align-items: stretch; }
.kicker { display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1rem; color: var(--forest); font-size: .78rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.kicker::before { content: ""; width: 1.2rem; height: 1.2rem; background: var(--gold); clip-path: polygon(50% 0,100% 100%,0 100%); }
h1, h2, h3 { font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; line-height: 1.08; letter-spacing: -.025em; }
h1 { font-size: clamp(2.55rem, 6vw, 5.65rem); margin: 0 0 1.2rem; max-width: 13ch; }
h2 { font-size: clamp(1.85rem, 3.6vw, 3.1rem); margin: 0 0 1rem; }
h3 { font-size: 1.38rem; margin: 0 0 .65rem; }
.lede { color: var(--ink-soft); font-size: clamp(1.08rem, 2vw, 1.3rem); max-width: 61ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.button-secondary { display: inline-flex; align-items: center; justify-content: center; padding: .72rem 1rem; border: 1px solid var(--ink); border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 850; background: #fff; }
.button-secondary:hover { background: var(--ink); color: #fff; }
.date-stamp { display: inline-block; margin-top: 1.25rem; color: var(--muted); font-size: .9rem; }
.register-wall { position: relative; border: 1px solid var(--ink); border-radius: var(--radius); background: var(--ink); color: #fff; padding: 1.4rem; box-shadow: var(--shadow); overflow: hidden; }
.register-wall::after { content: ""; position: absolute; width: 190px; height: 190px; right: -70px; bottom: -80px; border: 30px solid rgba(221,165,44,.36); transform: rotate(45deg); }
.register-wall h2 { font-size: 1.65rem; }
.register-wall dl { display: grid; grid-template-columns: 1fr auto; gap: .8rem; margin: 1.2rem 0 0; position: relative; z-index: 1; }
.register-wall dt { color: #c9d2e8; }
.register-wall dd { margin: 0; font-weight: 900; }

.section { padding: 2.8rem 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.25rem; }
.section-head p { max-width: 62ch; margin: 0; color: var(--muted); }
.brand-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.brand-card { position: relative; display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 1rem; min-width: 0; border: 1px solid var(--line); border-radius: 14px 30px 14px 14px; padding: 1rem; background: #fff; box-shadow: 0 8px 24px rgba(10,21,48,.07); color: var(--ink); text-decoration: none; overflow: hidden; }
.brand-card:hover { border-color: var(--jacaranda); transform: translateY(-2px); color: var(--ink); }
.brand-logo-box { display: grid; place-items: center; width: 84px; height: 70px; border-radius: 12px; background: #f6f7fb; border: 1px solid var(--line); overflow: hidden; }
.brand-logo-box img { width: 74px; max-height: 58px; object-fit: contain; }
.brand-card strong { display: block; font: 800 1.22rem/1.15 "Iowan Old Style", Georgia, serif; overflow-wrap: anywhere; }
.brand-card small { display: block; color: var(--muted); margin-top: .35rem; overflow-wrap: anywhere; }
.pennant { position: absolute; top: 0; right: 0; width: 44px; height: 44px; clip-path: polygon(0 0,100% 0,100% 100%); }
.pennant.amber { background: var(--gold); }
.pennant.green { background: var(--forest); }
.pennant.red { background: var(--red); }

.legend { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.legend > div { padding: 1.25rem; min-width: 0; }
.legend > div + div { border-left: 1px solid var(--line); }
.signal-name { display: flex; align-items: center; gap: .55rem; font-weight: 900; margin-bottom: .4rem; }
.signal-dot { width: 18px; height: 18px; clip-path: polygon(50% 0,100% 100%,0 100%); flex: 0 0 auto; }
.signal-dot.green { background: var(--forest); }
.signal-dot.amber { background: var(--gold); }
.signal-dot.red { background: var(--red); }

.ai-note { border: 2px solid var(--jacaranda); background: var(--jacaranda-soft); border-radius: 30px 12px 30px 12px; padding: 1.3rem 1.5rem; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: start; }
.ai-note::before { content: "AI"; display: grid; place-items: center; width: 46px; height: 46px; background: var(--jacaranda); color: #fff; border-radius: 50%; font-weight: 950; }
.ai-note h2 { font-size: 1.35rem; margin-bottom: .4rem; }
.ai-note p { margin: 0; }

.trail-grid, .info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.trail-card, .panel { min-width: 0; padding: 1.3rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.trail-card { border-top: 6px solid var(--jacaranda); }
.trail-card:nth-child(2n) { border-top-color: var(--gold); }
.trail-card:nth-child(3n) { border-top-color: var(--forest); }
.trail-card p, .panel p { color: var(--muted); }
.trail-card a, .panel a { overflow-wrap: anywhere; }

.page-hero { padding: 3.4rem 0 1.5rem; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4.8rem); max-width: 17ch; }
.breadcrumbs { font-size: .86rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumbs a { color: var(--muted); }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2rem; align-items: start; }
.content-prose { min-width: 0; }
.content-prose > * { overflow-wrap: anywhere; }
.content-prose h2 { margin-top: 2.3rem; font-size: 2rem; }
.content-prose h3 { margin-top: 1.5rem; }
.side-note { position: sticky; top: 20px; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; background: #fff; box-shadow: var(--shadow); }
.side-note ul { margin: .6rem 0 0; padding-left: 1.2rem; }
.notice { border-left: 6px solid var(--gold); background: var(--gold-soft); padding: 1rem 1.1rem; border-radius: 0 12px 12px 0; }
.notice.danger { border-color: var(--red); background: var(--red-soft); }
.notice.safe { border-color: var(--forest); background: var(--forest-soft); }

.dossier-top { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 1.5rem; align-items: center; }
.dossier-logo { width: 170px; height: 120px; object-fit: contain; padding: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.verdict-block { position: relative; border: 1px solid #c69220; border-radius: 12px 28px 12px 12px; padding: 1.2rem 4rem 1.2rem 1.2rem; background: var(--gold-soft); }
.verdict-block[data-signal="red"] { border-color: var(--red); background: var(--red-soft); }
.verdict-block[data-signal="green"] { border-color: var(--forest); background: var(--forest-soft); }
.verdict-block::after { content: ""; position: absolute; right: 1rem; top: 1rem; width: 34px; height: 34px; background: var(--gold); clip-path: polygon(50% 0,100% 100%,0 100%); }
.verdict-block[data-signal="red"]::after { background: var(--red); }
.verdict-block[data-signal="green"]::after { background: var(--forest); }
.evidence-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.evidence-figure { min-width: 0; margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.evidence-figure img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: top; }
.evidence-figure figcaption { padding: .85rem; font-size: .84rem; color: var(--muted); overflow-wrap: anywhere; }
.evidence-meta { display: block; margin-top: .4rem; color: var(--ink); font-weight: 700; word-break: break-word; }
.shell-banner { border: 1px dashed var(--jacaranda); padding: 1rem; border-radius: 12px; background: #f8f6ff; }

.table-wrap { width: 100%; max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; background: #fff; }
th, td { padding: .75rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; word-break: break-word; }
th { background: var(--ink); color: #fff; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field.full { grid-column: 1 / -1; }
label { font-weight: 850; }
input, textarea, select { width: 100%; max-width: 100%; border: 1px solid #9aa5b9; border-radius: 9px; padding: .78rem; background: #fff; color: var(--ink); font: inherit; }
textarea { min-height: 180px; resize: vertical; }
button { border: 0; cursor: pointer; }
details { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: .85rem 1rem; margin: .7rem 0; }
summary { font-weight: 900; cursor: pointer; }

.site-footer { margin-top: 4rem; background: var(--ink); color: #e7ecf7; padding: 3rem 0 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; }
.site-footer a { color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-content: start; }
.footer-bottom { border-top: 1px solid #3a4661; margin-top: 2rem; padding-top: 1rem; color: #bdc7da; font-size: .85rem; }

@media (max-width: 920px) {
  .header-grid { grid-template-columns: 1fr auto; padding: .8rem 0; }
  .primary-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; border-top: 1px solid var(--line); padding-top: .6rem; }
  .hero-grid, .content-grid { grid-template-columns: 1fr; }
  .side-note { position: static; }
  .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trail-grid, .info-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .wrap { width: min(100% - 24px, 1180px); }
  .header-grid { grid-template-columns: 1fr; }
  .header-grid > .cta { justify-self: start; }
  .primary-nav { grid-column: 1; grid-row: auto; justify-content: flex-start; }
  .primary-nav a { padding: .42rem .48rem; }
  .hero { padding-top: 2.8rem; }
  h1 { font-size: clamp(2.35rem, 14vw, 3.7rem); }
  .brand-grid, .trail-grid, .info-grid, .legend, .evidence-grid, .footer-grid { grid-template-columns: 1fr; }
  .legend > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .ai-note { grid-template-columns: 1fr; border-radius: 20px 10px 20px 10px; }
  .brand-card { grid-template-columns: 68px minmax(0, 1fr); padding: .8rem; }
  .brand-logo-box { width: 68px; height: 62px; }
  .brand-logo-box img { width: 58px; max-height: 50px; }
  .dossier-top { grid-template-columns: 1fr; }
  .dossier-logo { width: 150px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  th, td { padding: .55rem; font-size: .88rem; }
}

/* Generated dossier table containment */
.dossier{min-width:0}.dossier table{display:block;width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}

/* Homepage secondary operator links */
.all-brand-links ul{display:flex;flex-wrap:wrap;gap:.65rem;list-style:none;padding:0}.all-brand-links a{display:inline-block;padding:.55rem .8rem;border:1px solid currentColor;border-radius:999px}

/* Long policy references stay inside mobile viewport */
.policy,.policy a{min-width:0;overflow-wrap:anywhere;word-break:break-word}

/* Contextual homepage CTA */
.contextual-cta{display:flex;justify-content:center;padding:1.1rem 1rem}
