/* =====================================================================
   AIMOC platform — styles.css
   Public: credible national industry association. Admin: dense, practical.
   ===================================================================== */
:root {
  --navy: #0e2340; --navy-2: #163259; --ink: #14202e; --text: #1d2939; --muted: #5b6676;
  --line: #dfe4ea; --bg: #ffffff; --bg-soft: #f4f6f9; --bg-tint: #eef2f7;
  --green: #0b6e4f; --green-soft: #e3f2ec; --gold: #e3a614; --gold-soft: #fff4d6;
  --red: #b42318; --red-soft: #fdecea; --amber: #b54708; --amber-soft: #fff1e0; --blue-soft: #e8eff9;
  --radius: 10px; --shadow: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08);
  --serif: 'Source Serif 4', Georgia, serif; --sans: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 var(--sans); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--green); text-underline-offset: 2px; }
a:hover { color: var(--navy); }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); } h2 { font-size: 1.4rem; } h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
img { max-width: 100%; }
code { background: var(--bg-soft); padding: 1px 6px; border-radius: 4px; font-size: .9em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.page { padding-block: 36px 56px; }
.muted { color: var(--muted); } .small { font-size: .875rem; } .hint { color: var(--muted); font-size: .8rem; display: block; font-weight: 400; }
.good { color: var(--green); } .bad { color: var(--red); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; } .row.center { justify-content: center; }
.stack { display: grid; gap: 8px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.grid3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 14px 18px; }
@media (max-width: 820px) { .split, .grid2, .grid3 { grid-template-columns: 1fr; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- header ---------- */
.topbar { height: 4px; background: linear-gradient(90deg, var(--green) 0 50%, var(--gold) 50% 100%); }
header.site { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.hdr { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand-mark { width: 40px; height: 40px; border-radius: 8px; background: var(--navy); color: #fff; display: grid; place-items: center; font: 800 .58rem var(--sans); letter-spacing: .02em; flex: none; position: relative; overflow: hidden; }
.brand-mark::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, var(--green) 0 50%, var(--gold) 50%); }
.brand-text { display: grid; line-height: 1.15; min-width: 0; }
#brand-short { font: 700 1.15rem var(--sans); letter-spacing: .06em; color: var(--navy); }
#brand-long { font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
#nav { display: flex; gap: 2px; flex: 1; justify-content: center; flex-wrap: wrap; }
#nav a, #acct a.nav-pill { color: var(--text); text-decoration: none; padding: 8px 9px; border-radius: 6px; font-weight: 500; font-size: .88rem; white-space: nowrap; }
#nav { flex-wrap: nowrap; }
@media (max-width: 1320px) { #brand-long { display: none; } }
#nav a:hover, #nav a.active, #acct a.nav-pill:hover, #acct a.nav-pill.active { background: var(--bg-tint); color: var(--navy); }
#nav a.active { box-shadow: inset 0 -2px 0 var(--green); border-radius: 6px 6px 0 0; }
#acct { display: flex; gap: 6px; align-items: center; }
.navtoggle { display: none; margin-left: auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font: 600 .9rem var(--sans); cursor: pointer; }
@media (max-width: 1040px) {
  .navtoggle { display: block; }
  #nav, #acct { display: none; }
  body.nav-open #nav, body.nav-open #acct { display: flex; flex-direction: column; align-items: stretch; position: absolute; left: 0; right: 0; background: #fff; padding: 8px 16px; border-bottom: 1px solid var(--line); }
  body.nav-open #nav { top: 72px; }
  body.nav-open #acct { top: auto; position: static; padding: 0 0 12px; }
  body.nav-open .hdr { flex-wrap: wrap; }
  body.nav-open #acct { width: 100%; }
  #nav a.active { box-shadow: inset 3px 0 0 var(--green); }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--navy); color: #fff; border: 1px solid var(--navy); border-radius: 8px; padding: 10px 18px; font: 600 .95rem var(--sans); cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s; line-height: 1.2; }
.btn:hover { background: var(--navy-2); color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn.ghost:hover { background: var(--bg-tint); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn.gold:hover { background: #cf960f; }
.btn.green { background: var(--green); border-color: var(--green); }
.btn.danger { background: #fff; color: var(--red); border-color: #f0b8b2; }
.btn.danger:hover { background: var(--red-soft); }
.btn-sm { padding: 7px 12px; font-size: .86rem; } .btn-xs { padding: 4px 9px; font-size: .78rem; border-radius: 6px; } .btn-lg { padding: 13px 22px; font-size: 1rem; }
.linklike { background: none; border: 0; padding: 0; color: var(--green); text-decoration: underline; cursor: pointer; font: inherit; }
.linklike.bad { color: var(--red); }

/* ---------- public layout ---------- */
.hero { background: linear-gradient(160deg, var(--navy) 0%, #12305a 60%, #0f3d52 100%); color: #e9eef6; padding: 64px 0 56px; }
.hero h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.1rem); }
.hero .lead { color: #c9d4e3; font-size: 1.15rem; max-width: 620px; }
.hero .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.hero .btn.ghost:hover { background: rgba(255,255,255,.08); }
.hero .btn:not(.ghost) { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.hero-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 700; color: var(--gold); margin-bottom: 14px; }
.hero-panel { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 24px; }
.hero-panel h2 { color: #fff; font-size: 1.15rem; }
.hero-panel .muted { color: #b5c2d4; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.stat-row strong { display: block; font: 600 1.9rem var(--serif); color: #fff; }
.stat-row span { font-size: .78rem; color: #b5c2d4; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding: 44px 0; } }
.band { padding-block: 44px; border-bottom: 1px solid var(--line); }
.sec { font-size: 1.25rem; padding-bottom: 8px; border-bottom: 2px solid var(--gold); display: inline-block; margin-bottom: 18px; }
.cta-band { background: var(--green); color: #e8f5ef; padding: 36px 0; }
.cta-band h2 { color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-inner p { margin: 0; }
.page-head { background: var(--bg-tint); border-bottom: 1px solid var(--line); padding: 40px 0 28px; }
.page-head.slim { padding: 26px 0 18px; }
.page-head .lead { color: var(--muted); font-size: 1.1rem; max-width: 720px; margin: 0; }
.crumb { font-size: .9rem; margin-bottom: 8px; }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; } .prose li { margin-bottom: .35em; }
.prose img { border-radius: 8px; }
.cover { width: 100%; border-radius: var(--radius); margin: 8px 0 20px; }
.ticks { padding-left: 0; list-style: none; } .ticks li { padding-left: 28px; position: relative; margin-bottom: 10px; }
.ticks li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* ---------- cards ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card.sub { box-shadow: none; background: var(--bg-soft); }
.card + .card { margin-top: 18px; }
.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.cards.compact { grid-template-columns: 1fr; }
.post-card { display: block; color: var(--text); text-decoration: none; transition: border-color .15s; }
.post-card:hover { border-color: var(--green); color: var(--text); }
.post-card img { width: calc(100% + 44px); margin: -22px -22px 14px; aspect-ratio: 16/8; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; max-width: none; }
.post-card h3 { margin: 6px 0 6px; } .post-card p { margin: 0; font-size: .92rem; }
.post-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .8rem; color: var(--muted); margin-bottom: 4px; }
.tag { display: inline-block; background: var(--blue-soft); color: var(--navy); font-size: .74rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.tag.soft { background: var(--bg-soft); color: var(--muted); }
.tag.lock { background: var(--gold-soft); color: #7a5a00; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 10px 0; }
.doc-pill { display: inline-block; margin-top: 10px; font-size: .82rem; color: var(--navy); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 13px; font: 500 .85rem var(--sans); cursor: pointer; color: var(--text); }
.chip.active, .chip:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

.dir-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.dir-top { display: flex; gap: 14px; align-items: flex-start; }
.dir-top img, .logo-ph { width: 56px; height: 56px; object-fit: contain; border-radius: 8px; border: 1px solid var(--line); background: #fff; flex: none; }
.logo-ph { display: grid; place-items: center; font-weight: 700; color: var(--muted); background: var(--bg-soft); font-size: .8rem; }
.dir-top h3 { margin: 0; }
.dir-top p { margin: 2px 0 0; }

/* ---------- forms ---------- */
.form { display: grid; gap: 16px; }
.form h2 { margin: 6px 0 0; font-size: 1.2rem; }
.field { display: grid; gap: 5px; font-size: .9rem; }
.field .lbl { font-weight: 600; color: var(--ink); }
input, select, textarea { width: 100%; font: inherit; font-size: .95rem; color: var(--text); background: #fff; border: 1px solid #c9d1db; border-radius: 8px; padding: 9px 11px; }
input:disabled, select:disabled, textarea:disabled { background: var(--bg-soft); color: var(--muted); }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible, .chip:focus-visible { outline: 3px solid rgba(11,110,79,.35); outline-offset: 1px; border-color: var(--green); }
textarea { resize: vertical; }
fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin: 0; }
legend { font-weight: 600; font-size: .9rem; padding: 0 6px; }
label.check { display: flex; gap: 9px; align-items: flex-start; font-size: .92rem; cursor: pointer; }
label.check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--green); }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 16px; }
.form-error { background: var(--red-soft); border: 1px solid #f0b8b2; color: #7a1a12; padding: 10px 14px; border-radius: 8px; margin: 0; }
.notice { background: var(--gold-soft); border: 1px solid #f2d68b; padding: 11px 14px; border-radius: 8px; }
.notice.err { background: var(--red-soft); border-color: #f0b8b2; }
.notice.ok { background: var(--green-soft); border-color: #a9d8c4; }
.explainer { background: var(--blue-soft); border-left: 4px solid var(--navy); padding: 14px 18px; border-radius: 0 8px 8px 0; font-size: .92rem; }
.explainer ul { margin: 6px 0 0; padding-left: 20px; } .explainer p { margin: 0; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.filters input[type=search] { max-width: 300px; } .filters select { width: auto; max-width: 240px; }
details summary { cursor: pointer; font-weight: 600; font-size: .9rem; padding: 6px 0; }
.sent { text-align: center; }
.sent-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-size: 1.6rem; margin: 0 auto 10px; }
.link-box { max-width: 460px; }

/* ---------- wizard ---------- */
.steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 18px; flex-wrap: wrap; counter-reset: s; }
.steps li { display: flex; align-items: center; gap: 7px; font-size: .84rem; color: var(--muted); padding: 6px 12px 6px 6px; background: var(--bg-soft); border-radius: 999px; }
.steps li span { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; font-weight: 700; font-size: .75rem; }
.steps li.cur { background: var(--navy); color: #fff; } .steps li.cur span { color: var(--navy); }
.steps li.done span { background: var(--green); border-color: var(--green); color: #fff; }
.wiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; gap: 12px; }
.metric-table { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.mt-head, .mt-row { display: grid; grid-template-columns: 2.2fr 1.2fr 1fr .9fr 1.2fr; gap: 10px; padding: 10px 12px; align-items: center; }
.mt-head { background: var(--bg-soft); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.mt-row { border-top: 1px solid var(--line); }
.mt-row:nth-child(odd) { background: #fbfcfd; }
.mt-row strong { font-size: .9rem; }
.kind { display: inline-block; margin-top: 3px; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 1px 6px; border-radius: 4px; background: var(--bg-tint); color: var(--muted); }
.kind-people { background: var(--green-soft); color: var(--green); }
@media (max-width: 820px) { .mt-head { display: none; } .mt-row { grid-template-columns: 1fr 1fr; } .mt-row > div { grid-column: 1 / -1; } }
.logo-up { display: flex; gap: 14px; align-items: center; }
.logo-up img { width: 64px; height: 64px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; }
.consents { display: grid; gap: 10px; }
.consent { display: flex; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; align-items: flex-start; }
.consent:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--green); }
.review section { border-bottom: 1px solid var(--line); padding: 10px 0; }
.review h3 { display: flex; gap: 12px; align-items: baseline; }
.perm-list { list-style: none; padding: 0; margin: 0; columns: 2; font-size: .9rem; }
.perm-list .yes { color: var(--green); } .perm-list .no { color: var(--muted); }
.contact-card { display: grid; gap: 12px; margin-bottom: 12px; }

/* ---------- tables, badges ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th, .tbl td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--bg-soft); position: sticky; top: 0; z-index: 1; white-space: nowrap; }
.tbl.compact td, .tbl.compact th { padding: 6px 8px; }
.tbl tr.click { cursor: pointer; } .tbl tr.click:hover td { background: #f8fafc; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; max-height: 70vh; }
.table-wrap .tbl tr:last-child td { border-bottom: 0; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; background: var(--bg-tint); color: var(--muted); }
.st-pending, .st-pending_approval, .st-scheduled, .st-delayed { background: var(--amber-soft); color: var(--amber); }
.st-approved, .st-sent, .st-delivered, .st-opened, .st-clicked, .st-active { background: var(--green-soft); color: var(--green); }
.st-rejected, .st-bounced, .st-complained, .st-failed, .st-cancelled { background: var(--red-soft); color: var(--red); }
.st-inactive, .st-draft, .st-queued { background: var(--bg-tint); color: var(--muted); }
.st-sending { background: var(--blue-soft); color: var(--navy); }
.dl { display: grid; grid-template-columns: 140px 1fr; gap: 6px 14px; margin: 0; font-size: .92rem; }
.dl dt { color: var(--muted); } .dl dd { margin: 0; }
ul.plain { list-style: none; padding: 0; margin: 0; } ul.plain li { padding: 7px 0; border-bottom: 1px solid var(--line); }

/* ---------- footer ---------- */
footer.site { background: var(--navy); color: #c9d4e3; padding: 32px 0 20px; margin-top: 40px; }
footer.site a { color: #fff; }
footer.site .muted { color: #9fb0c6; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; margin-bottom: 16px; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr; } }
body.admin-mode footer.site { display: none; }

/* ---------- modal, toast, loading ---------- */
.modal-wrap { position: fixed; inset: 0; background: rgba(14,35,64,.45); z-index: 100; display: grid; place-items: start center; padding: 6vh 16px; overflow: auto; }
.modal { background: #fff; border-radius: 12px; padding: 24px; width: min(560px, 100%); position: relative; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.modal.wide { width: min(980px, 100%); }
.modal-x { position: absolute; right: 12px; top: 8px; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--muted); line-height: 1; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--green); color: #fff; padding: 11px 18px; border-radius: 8px; font-weight: 600; z-index: 200; box-shadow: 0 8px 24px rgba(0,0,0,.2); max-width: calc(100% - 32px); }
.toast.err { background: var(--red); }
.loading { padding: 80px 16px; text-align: center; color: var(--muted); }

/* =====================================================================
   ADMIN
   ===================================================================== */
body.admin-mode { background: var(--bg-soft); }
body.admin-mode #nav { display: none; }
.admin { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 72px); }
.aside { background: #fff; border-right: 1px solid var(--line); padding: 18px 12px; position: sticky; top: 72px; height: calc(100vh - 72px); overflow: auto; }
.aside a { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-radius: 6px; color: var(--text); text-decoration: none; font-weight: 500; font-size: .92rem; }
.aside a:hover { background: var(--bg-tint); }
.aside a.active { background: var(--navy); color: #fff; }
.aside .count { background: var(--gold); color: var(--ink); font-size: .7rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.aside .who { font-size: .78rem; color: var(--muted); padding: 12px; border-top: 1px solid var(--line); margin-top: 14px; }
.admin-main { padding: 24px 28px 60px; min-width: 0; }
.admin-main h1 { font-size: 1.6rem; margin-bottom: 4px; }
.ahead { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
@media (max-width: 900px) {
  .admin { grid-template-columns: 1fr; }
  .aside { position: static; height: auto; display: flex; flex-wrap: wrap; gap: 4px; padding: 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .aside .who { display: none; }
  .admin-main { padding: 18px 16px 48px; }
}
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 20px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.kpi strong { display: block; font: 600 1.7rem var(--serif); color: var(--ink); line-height: 1.2; }
.kpi span { font-size: .78rem; color: var(--muted); }
.kpi.alert { border-color: #f2d68b; background: var(--gold-soft); }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 18px; flex-wrap: wrap; }
.tabs button { background: none; border: 0; padding: 10px 14px; font: 600 .9rem var(--sans); color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.active { color: var(--navy); border-bottom-color: var(--green); }
.panel[hidden] { display: none; }
.bar-list { display: grid; gap: 6px; }
.bar-item { display: grid; grid-template-columns: 180px 1fr 50px; gap: 10px; align-items: center; font-size: .86rem; }
.bar-track { background: var(--bg-tint); border-radius: 4px; height: 12px; overflow: hidden; }
.bar-fill { background: var(--navy); height: 100%; border-radius: 4px; }
.bar-item .num { text-align: right; font-variant-numeric: tabular-nums; }
.audience-count { font: 600 1.4rem var(--serif); color: var(--navy); }
.pick-list { max-height: 220px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 8px; display: grid; gap: 4px; background: #fff; }
.ql-container { min-height: 280px; font-size: 15px; font-family: var(--sans); }
.ql-toolbar.ql-snow, .ql-container.ql-snow { border-color: #c9d1db; }
.ql-toolbar.ql-snow { border-radius: 8px 8px 0 0; } .ql-container.ql-snow { border-radius: 0 0 8px 8px; }
.email-preview { border: 1px solid var(--line); border-radius: 8px; background: #f4f6f9; padding: 18px; max-height: 65vh; overflow: auto; }
.mfa-qr { width: 200px; height: 200px; border: 1px solid var(--line); border-radius: 8px; padding: 8px; background: #fff; }
.secret { font-family: ui-monospace, monospace; letter-spacing: .08em; word-break: break-all; background: var(--bg-soft); padding: 6px 10px; border-radius: 6px; }
.warn-cell { background: var(--amber-soft); }
.pill-note { display: inline-block; font-size: .72rem; padding: 1px 7px; border-radius: 4px; background: var(--amber-soft); color: var(--amber); font-weight: 600; }

/* ---------- print (briefing PDF) ---------- */
#printArea { display: none; }
@media print {
  @page { margin: 16mm 14mm; }
  body * { visibility: hidden !important; }
  #printArea, #printArea * { visibility: visible !important; }
  #printArea { display: block !important; position: absolute; left: 0; top: 0; width: 100%; font-size: 10.5pt; color: #000; }
  #printArea h1 { font-size: 18pt; } #printArea h2 { font-size: 13pt; margin-top: 14pt; }
  #printArea .tbl th { background: #eee !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; position: static; }
  #printArea .tbl td, #printArea .tbl th { padding: 4pt 6pt; border-bottom: 1px solid #ccc; }
  #printArea table { page-break-inside: auto; } #printArea tr { page-break-inside: avoid; }
}

/* compact state pickers + grid child fixes */
.state-grid { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; }
.state-grid label.check { min-width: 58px; }
.split > *, .grid2 > *, .grid3 > * { min-width: 0; }
.split > .card + .card { margin-top: 0; }
[hidden] { display: none !important; }
.grid2, .grid3 { align-items: start; }
.field { align-content: start; }
.audience-count .linklike { font: 500 .85rem var(--sans); }

/* =====================================================================
   BRAND LAYER — AIMOC concept board
   Yellow #FFC400 · Black #0B0D0F · Charcoal #1B1F24 · Slate #4B5563
   Light grey #D9DDE2 · White. Montserrat (headings) + Inter (text).
   ===================================================================== */
:root {
  --yellow: #FFC400; --black: #0B0D0F; --charcoal: #1B1F24; --slate: #4B5563; --light: #D9DDE2;
  --navy: #0B0D0F; --navy-2: #1B1F24; --ink: #0B0D0F; --text: #1B1F24; --muted: #4B5563;
  --line: #D9DDE2; --bg-soft: #F3F4F5; --bg-tint: #ECEEF0; --blue-soft: #ECEEF0;
  --gold: #FFC400; --gold-soft: #FFF6D1;
  --serif: 'Montserrat', Arial, sans-serif; --display: 'Montserrat', Arial, sans-serif;
}
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.01em; }
h1 { font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; line-height: 1.02; }
a { color: var(--black); text-decoration-color: var(--yellow); text-decoration-thickness: 2px; }
a:hover { color: var(--slate); }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible, .chip:focus-visible { outline: 3px solid rgba(255,196,0,.55); border-color: var(--black); }
label.check input, .consent input { accent-color: var(--black); }
.yl { color: var(--yellow); }

/* ---------- header ---------- */
.topbar { display: none; }
header.site { background: var(--black); border-bottom: 1px solid #23272c; }
.hdr { min-height: 78px; gap: 28px; }
.brand-logo { height: 54px; width: auto; display: block; }
#nav { justify-content: flex-end; gap: 4px; }
#nav a, #acct a.nav-pill { color: #fff; font-weight: 500; font-size: .86rem; padding: 8px 10px; }
#nav a:hover, #acct a.nav-pill:hover { background: transparent; color: var(--yellow); }
#nav a.active { background: transparent; color: var(--yellow); box-shadow: none; }
#acct a.nav-pill.active { background: transparent; color: var(--yellow); }
#acct .btn { background: var(--yellow); border-color: var(--yellow); color: var(--black); padding: 10px 20px; }
#acct .btn:hover { background: #ffd23f; }
.navtoggle { background: transparent; color: #fff; border-color: #3B4147; }
@media (max-width: 1040px) {
  body.nav-open #nav, body.nav-open #acct { background: var(--black); border-color: #23272c; }
  body.nav-open #nav { top: 80px; }
}

/* ---------- buttons (pills) ---------- */
.btn { border-radius: 50px; font-weight: 700; background: var(--black); border-color: var(--black); }
.btn:hover { background: var(--charcoal); }
.btn.ghost { background: #fff; color: var(--black); border: 2px solid var(--light); }
.btn.ghost:hover { border-color: var(--black); background: #fff; }
.btn.gold { background: var(--yellow); border-color: var(--yellow); color: var(--black); }
.btn.gold:hover { background: #ffd23f; }
.btn.green { background: var(--black); border-color: var(--black); color: var(--yellow); }
.btn .arr { font-size: 1.1em; line-height: 1; }
.linklike { color: var(--black); text-decoration-color: var(--yellow); text-decoration-thickness: 2px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; padding: 96px 0 104px; background-color: var(--black);
  background-image: linear-gradient(90deg, rgba(11,13,15,.97) 0%, rgba(11,13,15,.85) 45%, rgba(11,13,15,.35) 100%), var(--hero-img, radial-gradient(ellipse at 75% 55%, #8a4b12 0%, #3a2410 30%, #12100e 65%)); background-size: cover; background-position: center; }
.hero-grid { grid-template-columns: 1fr; }
.hero-kicker { font: 600 clamp(1rem, 1.8vw, 1.35rem) var(--display); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 4px; color: #fff; }
.hero h1 { font-size: clamp(2.8rem, 6.6vw, 5.2rem); color: #fff; margin-bottom: 18px; max-width: 900px; }
.hero h1 .yl { display: block; }
.hero .lead { color: #E2E4E7; font-size: 1.1rem; max-width: 560px; }
.hero .row { margin-top: 26px; }
.hero .btn { padding: 13px 26px; }
.hero .btn:not(.ghost) { background: var(--yellow); border-color: var(--yellow); color: var(--black); }
.hero .btn.ghost { background: transparent; color: #fff; border: 2px solid #fff; }
.hero .btn.ghost:hover { background: rgba(255,255,255,.08); }
.hero-count { margin-top: 30px; font-size: .9rem; color: #C6CBD1; }
.hero-count strong { color: var(--yellow); font: 800 1.1rem var(--display); }

/* ---------- pillars strip ---------- */
.pillars { background: var(--black); border-top: 1px solid #23272c; }
.pillar-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.pillar { text-align: center; padding: 30px 22px; color: #C6CBD1; font-size: .9rem; }
.pillar + .pillar { border-left: 1px solid #2c3137; }
.pillar svg { width: 46px; height: 46px; stroke: var(--yellow); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 10px; }
.pillar strong { display: block; color: #fff; font: 700 1.02rem var(--display); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 4px; }
@media (max-width: 860px) { .pillar-grid { grid-template-columns: 1fr 1fr; } .pillar:nth-child(3) { border-left: 0; } .pillar:nth-child(n+3) { border-top: 1px solid #2c3137; } }

/* ---------- explore cards (inner page examples) ---------- */
.explore { background: #F3F4F5; padding: 48px 0; }
.ex-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ex-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px; padding: 24px; border-radius: 6px; overflow: hidden; color: #fff; text-decoration: none;
  background: linear-gradient(180deg, rgba(11,13,15,.15) 0%, rgba(11,13,15,.92) 62%), var(--img, linear-gradient(135deg, #3a3f46, #0B0D0F)); background-size: cover; background-position: center; transition: transform .15s; }
.ex-card:hover { transform: translateY(-2px); color: #fff; }
.ex-card h3 { color: #fff; font: 800 1.6rem var(--display); margin: 0 0 6px; }
.ex-card .sub { color: var(--yellow); font: 600 1.05rem var(--display); line-height: 1.3; margin: 0 0 10px; }
.ex-card p { margin: 0; font-size: .88rem; color: #D9DDE2; padding-right: 48px; }
.ex-card .go { position: absolute; right: 22px; bottom: 24px; width: 34px; height: 34px; border-radius: 50%; background: var(--yellow); color: var(--black); display: grid; place-items: center; font-weight: 900; }
@media (max-width: 860px) { .ex-grid { grid-template-columns: 1fr; } }

/* ---------- sections ---------- */
.sec { border-bottom: 3px solid var(--yellow); text-transform: uppercase; font-weight: 800; }
.page-head { background: var(--black); color: #D9DDE2; border-bottom: 0; padding: 52px 0 40px; background-image: linear-gradient(90deg, rgba(11,13,15,1) 40%, rgba(11,13,15,.7)), var(--hero-img, none); background-size: cover; background-position: center; }
.page-head h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 8px; }
.page-head .lead { color: var(--yellow); font: 600 1.15rem var(--display); }
.page-head .muted { color: #C6CBD1; }
.page-head a, .page-head strong { color: #fff; }
.cta-band { background: var(--black); color: #D9DDE2; border-top: 1px solid #23272c; }
.cta-band h2 { color: #fff; text-transform: uppercase; font-weight: 800; }
.cta-band h2 .yl { color: var(--yellow); }
.cta-band .btn.gold { background: var(--yellow); color: var(--black); }
.tag { background: var(--bg-tint); color: var(--black); }
.tag.lock { background: var(--gold-soft); color: #6b5300; }
.chip.active, .chip:hover { background: var(--black); border-color: var(--black); color: var(--yellow); }
.post-card:hover { border-color: var(--black); }
.ticks li::before { content: '✓'; color: var(--black); background: var(--yellow); border-radius: 50%; width: 18px; height: 18px; display: grid; place-items: center; font-size: .7rem; top: 3px; }
.explainer { background: var(--bg-soft); border-left-color: var(--yellow); }
.kind-people { background: var(--gold-soft); color: #6b5300; }
.sent-icon { background: var(--gold-soft); color: var(--black); }
.steps li.cur { background: var(--black); color: #fff; }
.steps li.cur span { color: var(--black); background: var(--yellow); border-color: var(--yellow); }
.steps li.done span { background: var(--black); border-color: var(--black); color: var(--yellow); }
.consent:has(input:checked) { border-color: var(--yellow); background: #FFFBEB; }
.perm-list .yes { color: var(--black); font-weight: 600; }

/* ---------- footer ---------- */
footer.site { background: var(--black); color: #AAB0B6; border-top: 3px solid var(--yellow); margin-top: 0; }
footer.site .foot-logo { height: 70px; width: auto; display: block; margin-bottom: 10px; }
footer.site .motto { color: var(--yellow); font: 700 .78rem var(--display); letter-spacing: .14em; text-transform: uppercase; }
footer.site a { color: #fff; text-decoration-color: var(--yellow); }

/* ---------- admin ---------- */
body.admin-mode { background: var(--bg-soft); }
.aside a.active { background: var(--black); color: #fff; box-shadow: inset 4px 0 0 var(--yellow); }
.aside .count { background: var(--yellow); color: var(--black); }
.kpi strong { font: 800 1.7rem var(--display); }
.kpi.alert { background: var(--gold-soft); border-color: #f5d66a; }
.tabs button.active { color: var(--black); border-bottom: 3px solid var(--yellow); }
.bar-fill { background: var(--black); }
.admin-main h1 { font-size: 1.45rem; }
.audience-count { font: 800 1.5rem var(--display); color: var(--black); }
.st-approved, .st-sent, .st-delivered, .st-opened, .st-clicked, .st-active { background: #E3F2EC; color: #0b6e4f; }
.btn { white-space: nowrap; }

/* ---------- default photography (replace via Admin → Settings → Photos) ---------- */
.hero:not([style]) { background-color: var(--black);
  background-image: linear-gradient(90deg, rgba(11,13,15,.96) 0%, rgba(11,13,15,.82) 38%, rgba(11,13,15,.25) 72%, rgba(11,13,15,.15) 100%), linear-gradient(0deg, rgba(11,13,15,.75), transparent 35%), url('../assets/photos/hero-track-sunset.jpg');
  background-size: cover; background-position: center 55%; }
@media (max-width: 860px) { .hero:not([style]) { background-image: linear-gradient(90deg, rgba(11,13,15,.92), rgba(11,13,15,.65)), url('../assets/photos/hero-track-sunset.jpg'); background-position: 70% center; } }
.ex-card { --img: url('../assets/photos/card-kerb.jpg'); }
.ex-card:nth-child(2) { --img: url('../assets/photos/card-grandstand.jpg'); }
.ex-card:nth-child(3) { --img: url('../assets/photos/card-yellow-flag.jpg'); }
.page-head:not([style]) { background-image: linear-gradient(90deg, rgba(11,13,15,1) 30%, rgba(11,13,15,.45)), url('../assets/photos/header-tower.jpg'); background-size: cover; background-position: center 60%; }
.cta-band { background: linear-gradient(90deg, rgba(11,13,15,.95) 45%, rgba(11,13,15,.6)), url('../assets/photos/banner-kerb.jpg') center 55% / cover; }
.hero .wrap { position: relative; z-index: 1; }
.btn { white-space: nowrap; }
