/* PEAI Academy · design system. Light and dark, mobile first. */
:root {
  --brand: #1f3f8f; --brand-dark: #0f2557; --brand-soft: #e8eefb; --accent: #c8a24a;
  --bg: #f4f6fb; --surface: #ffffff; --surface-2: #f8f9fd; --text: #14213d; --muted: #5b6785; --line: #dde3f0;
  --good: #15803d; --good-bg: #dcfce7; --warn: #b45309; --warn-bg: #fef3c7; --bad: #b91c1c; --bad-bg: #fee2e2; --info: #0369a1; --info-bg: #e0f2fe;
  --r: 14px; --r-sm: 9px; --shadow: 0 1px 2px rgba(16,37,87,.06), 0 8px 24px rgba(16,37,87,.07);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --side: 264px; --navy-a: #0f2557; --navy-b: #1f3f8f;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #8aa8ff; --brand-dark: #c9d6ff; --brand-soft: #1b2748; --bg: #0c1220; --surface: #121a2d; --surface-2: #162038; --text: #e8edf9; --muted: #9aa6c4; --line: #26314d;
    --good-bg: #123524; --warn-bg: #3a2a0c; --bad-bg: #3b1616; --info-bg: #0f2c3d; --shadow: 0 1px 2px rgba(0,0,0,.4);
  }
}
:root[data-theme="dark"] { --brand: #8aa8ff; --brand-dark: #c9d6ff; --brand-soft: #1b2748; --bg: #0c1220; --surface: #121a2d; --surface-2: #162038; --text: #e8edf9; --muted: #9aa6c4; --line: #26314d; --good-bg: #123524; --warn-bg: #3a2a0c; --bad-bg: #3b1616; --info-bg: #0f2c3d; --shadow: 0 1px 2px rgba(0,0,0,.4); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5rem; color: var(--text); }
a { color: var(--brand); text-decoration: none; } a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
button { font: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 60%, transparent); outline-offset: 2px; border-radius: 6px; }

/* ---------- layout ---------- */
.app { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
/* Sidebar uses fixed navy colours in light AND dark mode (var(--brand-dark) turns pale in dark mode and made the menu unreadable). */
.side { background: #0f2557; color: #e8eefb; border-right: 1px solid rgba(255,255,255,.08); padding: 1rem .75rem; position: sticky; top: 0; height: 100vh; overflow: auto; display: flex; flex-direction: column; gap: .25rem; }
:root[data-theme="dark"] .side { background: #0a1736; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --navy-a: #0a1736; --navy-b: #17306b; } }
:root[data-theme="dark"] { --navy-a: #0a1736; --navy-b: #17306b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .side { background: #0a1736; } }
.side .brand { display: flex; align-items: center; gap: .6rem; padding: .5rem .5rem 1rem; }
.side .brand img { height: 40px; background: #fff; border-radius: 8px; padding: 3px 6px; }
.side .brand b { font-size: .95rem; line-height: 1.1; color: #fff; }
.side .brand span { display: block; font-size: .7rem; opacity: .75; font-weight: 500; }
.side a.nav { display: flex; align-items: center; gap: .65rem; padding: .6rem .75rem; border-radius: 10px; color: #cbd6f5; font-weight: 600; font-size: .92rem; text-decoration: none; }
.side a.nav:hover { background: rgba(255,255,255,.08); color: #fff; }
.side a.nav.on { background: rgba(255,255,255,.14); color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.side .grp { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: #9fb2e6; padding: .9rem .75rem .3rem; }
.side .foot { margin-top: auto; padding: .75rem; font-size: .78rem; color: #cbd6f5; }
.side .brand span { color: #b9c8ee; opacity: 1; }
.ico { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.main { min-width: 0; }
.top { display: flex; align-items: center; gap: .75rem; padding: .7rem 1.25rem; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top .grow { flex: 1; }
.top .search { max-width: 380px; width: 100%; }
.btn.menu-btn { display: none; }
.page { max-width: 1120px; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }
.page.wide { max-width: 1320px; }
.crumbs { font-size: .82rem; color: var(--muted); margin-bottom: .5rem; }
.crumbs a { color: var(--muted); }
h1.title { font-size: clamp(1.5rem, 2.4vw + 1rem, 2.2rem); letter-spacing: -.01em; }
.lede { color: var(--muted); font-size: 1.05rem; max-width: 70ch; }

@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 50; inset: 0 auto 0 0; width: 280px; transform: translateX(-100%); transition: transform .2s; }
  body.menu-open .side { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.45); }
  .btn.menu-btn { display: inline-flex; }
  .page { padding: 1rem .9rem 3rem; }
}

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border: 1px solid var(--line); background: var(--surface); color: var(--text); padding: .55rem .95rem; border-radius: 10px; font-weight: 600; font-size: .92rem; cursor: pointer; text-decoration: none; min-height: 40px; }
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
:root[data-theme="dark"] .btn.primary, :root:not([data-theme="light"]) .btn.primary { color: #0c1220; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .btn.primary { color: #fff; } }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.btn.sm { padding: .3rem .65rem; font-size: .82rem; min-height: 32px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.ghost { border-color: transparent; background: transparent; }
input, select, textarea { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .55rem .75rem; width: 100%; min-height: 40px; }
textarea { min-height: 90px; resize: vertical; }
label.f { display: block; font-size: .8rem; font-weight: 700; color: var(--muted); margin: .7rem 0 .25rem; }
.row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.grid { display: grid; gap: 1rem; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grow { flex: 1; }
.muted { color: var(--muted); } .small { font-size: .85rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.card .pad, .pad { padding: 1.1rem 1.25rem; }
.card h3 { margin-bottom: .25rem; }
.pill { display: inline-block; font-size: .72rem; font-weight: 800; padding: .15rem .55rem; border-radius: 99px; background: var(--brand-soft); color: var(--brand); letter-spacing: .02em; }
.pill.good { background: var(--good-bg); color: var(--good); } .pill.warn { background: var(--warn-bg); color: var(--warn); } .pill.bad { background: var(--bad-bg); color: var(--bad); } .pill.info { background: var(--info-bg); color: var(--info); }
.bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; } .bar i { display: block; height: 100%; background: var(--brand); border-radius: 99px; transition: width .4s; }
.bar.good i { background: var(--good); }
.toast { position: fixed; bottom: 1.2rem; left: 50%; transform: translateX(-50%); background: var(--navy-a); color: #fff; padding: .7rem 1.1rem; border-radius: 12px; z-index: 200; box-shadow: var(--shadow); max-width: 92vw; }
:root[data-theme="dark"] .toast { background: #26314d; }
.empty { text-align: center; color: var(--muted); padding: 2.5rem 1rem; }
.alert { padding: .8rem 1rem; border-radius: 12px; background: var(--info-bg); color: var(--info); border: 1px solid color-mix(in srgb, var(--info) 25%, transparent); }
.alert.warn { background: var(--warn-bg); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.alert.bad { background: var(--bad-bg); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 25%, transparent); }

/* ---------- hero + cards ---------- */
.hero { border-radius: 20px; overflow: hidden; position: relative; color: #fff; background: linear-gradient(120deg, var(--navy-a), var(--navy-b)); min-height: 220px; display: flex; align-items: flex-end; }
.hero.img { background-size: cover; background-position: center 30%; }
.hero.img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,22,58,.15), rgba(10,22,58,.88)); }
.hero .in { position: relative; padding: 1.75rem; max-width: 780px; }
.hero h1 { color: #fff; font-size: clamp(1.5rem, 3vw + .5rem, 2.4rem); margin: .35rem 0; }
.hero p { margin: 0; opacity: .92; }
.hero .pill { background: rgba(255,255,255,.18); color: #fff; }
.course-card { overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.course-card:hover { transform: translateY(-2px); }
.course-card .cover { height: 150px; background-size: cover; background-position: center 30%; position: relative; display: flex; align-items: flex-end; padding: .8rem 1rem; color: #fff; }
.course-card .cover .big { font-weight: 800; font-size: 1.05rem; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.course-card .body { padding: 1rem 1.15rem 1.15rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.stat { text-align: left; } .stat b { font-size: 1.8rem; display: block; line-height: 1; } .stat span { color: var(--muted); font-size: .82rem; }

/* ---------- lists ---------- */
.list > * { display: flex; gap: .75rem; align-items: center; justify-content: space-between; padding: .75rem 1.1rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.list > *:last-child { border-bottom: 0; }
.list .num { width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 800; font-size: .82rem; flex: none; }
.list .num.done { background: var(--good-bg); color: var(--good); }
.tbl-wrap { overflow: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.t th, table.t td { text-align: left; padding: .55rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t th { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }

/* ---------- reader ---------- */
.reader { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.toc { position: sticky; top: 70px; max-height: calc(100vh - 90px); overflow: auto; padding: .75rem; }
.toc h4 { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: .4rem .5rem; margin: 0; }
.toc a { display: flex; gap: .55rem; align-items: baseline; padding: .42rem .5rem; border-radius: 8px; color: var(--text); font-size: .86rem; text-decoration: none; }
.toc a:hover { background: var(--surface-2); } .toc a.on { background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.toc a .tick { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); flex: none; align-self: center; }
.toc a .tick.done { background: var(--good); border-color: var(--good); }
@media (max-width: 980px) { .reader { grid-template-columns: 1fr; } .toc { position: static; max-height: none; } .toc.collapsed .items { display: none; } }
.progress-top { position: fixed; top: 0; left: 0; height: 3px; background: var(--accent); z-index: 100; width: 0; }
.article { padding: 1.5rem clamp(1rem, 3vw, 2.4rem); }
.article .meta { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0 1rem; }
.manual { font-family: var(--serif); font-size: 1.08rem; line-height: 1.75; }
.manual h1 { font-family: var(--font); font-size: 1.7rem; margin: 1.6rem 0 .6rem; color: var(--brand-dark); }
:root[data-theme="dark"] .manual h1, :root:not([data-theme="light"]) .manual h1 { color: var(--text); }
.manual h2 { font-family: var(--font); font-size: 1.28rem; margin: 2rem 0 .5rem; padding-bottom: .3rem; border-bottom: 2px solid var(--brand-soft); scroll-margin-top: 80px; }
.manual h3 { font-family: var(--font); font-size: 1.05rem; margin: 1.4rem 0 .4rem; color: var(--brand); scroll-margin-top: 80px; }
.manual h4 { font-family: var(--font); }
.manual p { margin: .6rem 0 1rem; } .manual li { margin: .3rem 0; }
.manual ul, .manual ol { padding-left: 1.3rem; }
.manual .fig { margin: 1.2rem 0; } .manual .fig img { width: 100%; border-radius: 14px; box-shadow: var(--shadow); cursor: zoom-in; display: block; }
.manual .fig + p em, .manual .fig + p { font-family: var(--font); font-size: .85rem; color: var(--muted); margin-top: -.5rem; text-align: center; }
.manual .tbl { overflow: auto; margin: 1rem 0; border: 1px solid var(--line); border-radius: 12px; }
.manual table { border-collapse: collapse; width: 100%; font-family: var(--font); font-size: .9rem; line-height: 1.45; }
.manual th, .manual td { padding: .55rem .75rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.manual td p, .manual th p { margin: .15rem 0; }
.manual th { background: var(--brand-soft); color: var(--brand); font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; }
.manual tr:last-child td { border-bottom: 0; }
/* callouts */
.co { margin: 1.2rem 0; padding: .9rem 1.1rem 1rem; border-radius: 14px; border: 1px solid var(--line); border-left-width: 5px; background: var(--surface-2); font-family: var(--font); font-size: .98rem; line-height: 1.6; }
.co .co-h { font-weight: 800; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .35rem; display: flex; gap: .45rem; align-items: center; }
.co p { margin: .35rem 0; font-family: var(--font); } .co ul, .co ol { margin: .3rem 0; }
.co-key { border-left-color: var(--brand); background: var(--brand-soft); } .co-key .co-h { color: var(--brand); }
.co-caution { border-left-color: var(--warn); background: var(--warn-bg); } .co-caution .co-h { color: var(--warn); }
.co-outcomes { border-left-color: var(--good); background: var(--good-bg); } .co-outcomes .co-h { color: var(--good); }
.co-exercise { border-left-color: #7c3aed; background: color-mix(in srgb, #7c3aed 9%, var(--surface)); } .co-exercise .co-h { color: #7c3aed; }
.co-check { border-left-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); } .co-check .co-h { color: #8a6d1c; }
.co-example { border-left-color: var(--info); background: var(--info-bg); } .co-example .co-h { color: var(--info); }
.co-summary { border-left-color: var(--brand-dark); } .co-summary .co-h { color: var(--brand-dark); }
.co-checklist { border-left-color: var(--good); } .co-checklist .co-h { color: var(--good); }
.manual ul.cl, .manual ul.good, .manual ul.bad { list-style: none; padding-left: .2rem; }
.manual li.cl { display: flex; gap: .6rem; align-items: flex-start; cursor: pointer; }
.manual li.cl input { width: 20px; height: 20px; min-height: 0; margin-top: .25rem; flex: none; accent-color: var(--brand); }
.manual li.cl.on span { text-decoration: line-through; color: var(--muted); }
.manual li.good::before { content: "✔"; color: var(--good); font-weight: 800; margin-right: .55rem; }
.manual li.bad::before { content: "✘"; color: var(--bad); font-weight: 800; margin-right: .55rem; }
.reader-nav { display: flex; gap: .75rem; justify-content: space-between; flex-wrap: wrap; margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.88); z-index: 300; display: grid; place-items: center; padding: 1rem; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; }
.notes-box { margin-top: 1.5rem; }

/* ---------- quiz ---------- */
.q { padding: 1rem 1.15rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); margin-bottom: .9rem; }
.q.right { border-color: var(--good); background: var(--good-bg); } .q.wrong { border-color: var(--bad); background: var(--bad-bg); }
.q .opt { display: flex; gap: .65rem; align-items: flex-start; padding: .45rem .5rem; border-radius: 8px; cursor: pointer; }
.q .opt:hover { background: var(--surface-2); } .q .opt input { width: 20px; height: 20px; min-height: 0; margin-top: .15rem; flex: none; accent-color: var(--brand); }
.q .why { font-size: .88rem; margin-top: .4rem; }
.result { text-align: center; padding: 1.6rem 1rem; }
.result .score { font-size: 3rem; font-weight: 800; line-height: 1; }
.ring { --p: 0; width: 140px; height: 140px; border-radius: 50%; margin: 0 auto 1rem; display: grid; place-items: center; background: conic-gradient(var(--c, var(--brand)) calc(var(--p) * 1%), var(--line) 0); }
.ring span { width: 108px; height: 108px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-weight: 800; font-size: 1.9rem; }

/* ---------- landing / auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.15fr 1fr; }
.auth .l { background: linear-gradient(150deg, var(--navy-a), var(--navy-b)); color: #fff; padding: 3rem clamp(1.5rem, 5vw, 4rem); display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.auth .l::after { content: ""; position: absolute; inset: 0; background: url(../img/behavioural-observation-63cbebb1.jpg) center/cover; opacity: .16; mix-blend-mode: luminosity; }
.auth .l > * { position: relative; z-index: 1; }
.auth .l h1 { color: #fff; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.02em; }
.auth .l .logo { background: #fff; border-radius: 12px; padding: 6px 12px; width: fit-content; margin-bottom: 1.5rem; } .auth .l .logo img { height: 52px; display: block; }
.auth .l ul { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .6rem; } .auth .l li::before { content: "✔"; color: var(--accent); margin-right: .6rem; font-weight: 800; }
.auth .r { display: grid; place-items: center; padding: 2rem 1.25rem; background: var(--bg); }
.auth .box { width: 100%; max-width: 420px; }
.tabs { display: flex; gap: .4rem; margin-bottom: 1rem; flex-wrap: wrap; }
.tabs button { border: 1px solid var(--line); background: var(--surface); padding: .45rem .95rem; border-radius: 99px; font-weight: 700; font-size: .86rem; cursor: pointer; color: var(--muted); }
.tabs button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth .l { padding: 2rem 1.25rem; } }

/* ---------- tools ---------- */
.tool-card { padding: 1.1rem 1.2rem; display: flex; gap: .9rem; text-decoration: none; color: inherit; }
.tool-card:hover { text-decoration: none; transform: translateY(-2px); }
.tool-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.yn { display: inline-flex; border: 1px solid var(--line); border-radius: 99px; overflow: hidden; }
.yn button { border: 0; background: var(--surface); padding: .3rem .8rem; font-weight: 700; cursor: pointer; color: var(--muted); }
.yn button.on.y { background: var(--good); color: #fff; } .yn button.on.n { background: var(--bad); color: #fff; }
.sheet td input, .sheet td textarea, .sheet td select { min-height: 34px; padding: .3rem .5rem; font-size: .88rem; }
.sheet td textarea { min-height: 54px; }

/* ---------- certificate ---------- */
.cert-wrap { max-width: 1000px; margin: 0 auto; }
.cert { background: #fff; color: #14213d; aspect-ratio: 297 / 210; border: 10px double #0f2557; padding: 2.2rem 3rem; text-align: center; display: flex; flex-direction: column; justify-content: space-between; position: relative; }
.cert .corner { position: absolute; width: 60px; height: 60px; border: 3px solid var(--accent); }
.cert .corner.tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; } .cert .corner.tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; }
.cert .corner.bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; } .cert .corner.br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }
.cert img.logo { height: 60px; margin: 0 auto; display: block; }
.cert h1 { color: #0f2557; font-size: clamp(1.2rem, 3.6vw, 2.4rem); letter-spacing: .14em; text-transform: uppercase; margin: .4rem 0 0; font-family: var(--serif); }
.cert .sub { color: #5b6785; letter-spacing: .1em; text-transform: uppercase; font-size: clamp(.55rem, 1.1vw, .85rem); }
.cert .name { font-family: var(--serif); font-size: clamp(1.4rem, 3.8vw, 2.6rem); font-weight: 700; border-bottom: 2px solid #0f2557; display: inline-block; padding: 0 2rem .15rem; margin: .3rem 0; }
.cert .course { font-size: clamp(1rem, 2.4vw, 1.6rem); font-weight: 800; color: #1f3f8f; margin: .2rem 0; }
.cert .sigs { display: flex; justify-content: space-around; gap: 1rem; font-size: clamp(.55rem, 1.1vw, .85rem); }
.cert .sigs div { border-top: 1px solid #14213d; padding-top: .3rem; min-width: 30%; }
.cert .sigs small { display: block; color: #5b6785; }
.cert .meta { display: flex; justify-content: space-between; align-items: flex-end; font-size: clamp(.55rem, 1.1vw, .85rem); text-align: left; gap: 1rem; }
.cert .meta b { display: block; font-size: 1.05em; }
.cert .qr { width: 64px; height: 64px; }

@media print {
  .side, .top, .reader-nav, .no-print, .toc, .progress-top { display: none !important; }
  .app { display: block; } body { background: #fff; } .page { padding: 0; max-width: none; }
  .cert-wrap { max-width: none; page: cert; }
}
@page { size: A4 portrait; margin: 14mm; }
@page cert { size: A4 landscape; margin: 8mm; }
/* printable manual */
.print-doc { background: #fff; color: #111; }
.print-doc .cover { min-height: 90vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; page-break-after: always; gap: .6rem; padding: 2rem; }
.print-doc .cover img.logo { height: 90px; } .print-doc .cover img.hero { width: 100%; max-width: 640px; border-radius: 12px; margin: 1rem 0; }
.print-doc .cover h1 { font-size: 2.4rem; color: #0f2557; }
.print-doc .mod { page-break-before: always; }
.print-doc .toc-page { page-break-after: always; }
.print-doc .toc-page li { margin: .3rem 0; }

/* ===== The Association page ===== */
.as-hero { position: relative; overflow: hidden; border-radius: 22px; color: #fff; background: radial-gradient(900px 400px at 85% -10%, rgba(200,162,74,.35), transparent 60%), linear-gradient(135deg, #0a1a45, #1f3f8f 70%); padding: clamp(1.5rem, 4vw, 3rem); }
.as-grid { position: absolute; inset: 0; opacity: .12; background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px); background-size: 38px 38px; mask-image: linear-gradient(120deg, transparent 30%, #000); -webkit-mask-image: linear-gradient(120deg, transparent 30%, #000); }
.as-hero::after { display: none !important; }
.as-hero::old-after { content: ""; position: absolute; left: 0; right: 0; top: 55%; height: 60px; opacity: .35; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='60' viewBox='0 0 400 60'%3E%3Cpath d='M0 30h60l8-22 12 44 10-30 8 8h50l8-18 12 36 10-18h60l8-24 12 48 10-24h132' fill='none' stroke='%23c8a24a' stroke-width='2'/%3E%3C/svg%3E") repeat-x; animation: as-scroll 9s linear infinite; }
@keyframes as-scroll { to { background-position: -400px 0; } }
.as-in { position: relative; z-index: 1; max-width: 720px; }
.as-logo { height: 64px; background: #fff; border-radius: 12px; padding: 6px; margin-bottom: 1rem; display: block; }
.as-hero h1 { color: #fff; font-size: clamp(1.9rem, 4.5vw + .5rem, 3.4rem); line-height: 1.08; margin: .8rem 0; font-family: var(--serif); }
.as-hero h1 em { font-style: normal; color: var(--accent); }
.as-hero p { opacity: .92; font-size: 1.05rem; max-width: 56ch; }
.as-hero .pill { background: rgba(255,255,255,.16); color: #fff; }
.as-hero .row { margin-top: 1.2rem; }
.btn.as-gold { background: var(--accent); border-color: var(--accent); color: #14213d; } .btn.as-gold:hover { filter: brightness(1.08); background: var(--accent); }
.btn.as-ghost { background: transparent; border-color: rgba(255,255,255,.45); color: #fff; } .btn.as-ghost:hover { background: rgba(255,255,255,.12); }
.as-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; margin: -1.4rem 1rem 0; position: relative; z-index: 2; }
.as-stats div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: .9rem 1rem; text-align: center; }
.as-stats b { display: block; font-family: var(--serif); font-size: 2rem; color: var(--brand); line-height: 1; } .as-stats span { font-size: .78rem; color: var(--muted); font-weight: 600; }
.as-h { margin: 2.2rem 0 .3rem; font-family: var(--serif); }
.as-pillars { margin-top: 1rem; }
.as-pill { transition: transform .2s, box-shadow .2s, border-color .2s; animation: as-up .5s both; animation-delay: calc(var(--i) * 70ms); }
.as-pill:hover { transform: translateY(-4px); border-color: var(--accent); }
@keyframes as-up { from { opacity: 0; transform: translateY(14px); } }
.as-ic { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); margin-bottom: .6rem; }
.as-ic svg, .as-doc svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.as-bar { height: 8px; border-radius: 9px; background: var(--brand-soft); overflow: hidden; margin: .6rem 0; } .as-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--accent)); transition: width .35s; }
.as-grp { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: .8rem 0 .2rem; }
.as-chk { display: flex; gap: .6rem; align-items: center; padding: .4rem .2rem; cursor: pointer; border-radius: 8px; } .as-chk:hover { background: var(--surface-2); } .as-chk input { width: 18px; height: 18px; accent-color: var(--brand); }
.as-gauge { display: flex; align-items: center; gap: 1rem; margin-top: .6rem; } .as-num { font-family: var(--serif); font-size: 3.4rem; font-weight: 700; color: var(--brand); min-width: 3rem; text-align: center; }
.as-seg { display: flex; gap: 5px; flex: 1; } .as-seg i { flex: 1; height: 26px; border-radius: 6px; background: var(--brand-soft); transition: background .2s; }
.as-seg i.good { background: var(--good); } .as-seg i.warn { background: var(--warn); } .as-seg i.bad { background: var(--bad); }
.alert.good { background: var(--good-bg); color: var(--good); } .alert.warn { background: var(--warn-bg); color: var(--warn); }
.as-path { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1rem; margin-top: 1rem; text-align: center; }
.as-path div { position: relative; } .as-path b { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; font-family: var(--serif); } .as-path span { display: block; font-weight: 700; margin-top: .3rem; } .as-path small { color: var(--muted); }
.as-doc { display: flex; flex-direction: column; gap: .3rem; text-decoration: none; color: inherit; transition: transform .2s, border-color .2s; } .as-doc:hover { transform: translateY(-3px); border-color: var(--accent); text-decoration: none; } .as-doc svg { color: var(--accent); }
.as-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); margin-right: .4rem; } .as-dot.on { background: var(--good); box-shadow: 0 0 0 4px var(--good-bg); }
.as-quote { display: flex; flex-direction: column; justify-content: center; background: linear-gradient(135deg, var(--navy-a), var(--navy-b)); color: #fff; } .as-quote p { font-family: var(--serif); font-size: 1.25rem; margin: 0 0 .6rem; } .as-quote .muted { color: rgba(255,255,255,.7); }
@media (prefers-reduced-motion: reduce) { .as-hero::after, .as-pill { animation: none; } }
@media print { .as-hero::after { display: none; } }

/* Association: tabs, photo heroes, content blocks */
.as-tabs { margin-bottom: 1rem; flex-wrap: wrap; }
.as-hero.as-photo { background: linear-gradient(100deg, rgba(10,26,69,.94) 25%, rgba(10,26,69,.55)), var(--bg) center/cover, #0a1a45; }
.as-hero.as-short { padding-block: clamp(1.2rem, 3vw, 2rem); } .as-hero.as-short h1 { font-size: clamp(1.4rem, 3vw + .4rem, 2.2rem); margin: .5rem 0 0; }
.as-prose h3 { margin-bottom: .4rem; } .as-prose p { line-height: 1.65; } .as-lead { font-family: var(--serif); font-size: 1.2rem; line-height: 1.5 !important; }
.as-ticks { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .55rem; } .as-ticks li { display: flex; gap: .6rem; align-items: flex-start; } .as-ticks svg { flex: none; width: 20px; height: 20px; margin-top: 2px; fill: none; stroke: var(--good); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.as-wide { margin-top: 1rem; border-left: 4px solid var(--accent); } .as-wide p { margin: 0; line-height: 1.65; }
.as-stand { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-top: 1rem; } .as-stand .card, .as-stds .card { display: flex; gap: 1rem; align-items: flex-start; }
.as-stds { margin-top: 1rem; }
.as-n { flex: none; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff; font-family: var(--serif); font-weight: 700; }
.as-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: .8rem; margin-top: 1.4rem; } .as-gallery.two { grid-template-columns: 1fr 1fr; }
.as-gallery img { width: 100%; height: 100%; min-height: 180px; max-height: 300px; object-fit: cover; border-radius: 14px; box-shadow: var(--shadow); }
@media (max-width: 700px) { .as-gallery, .as-gallery.two { grid-template-columns: 1fr; } }
.as-board { margin-top: 1rem; } .as-bm { overflow: hidden; animation: as-up .5s both; animation-delay: calc(var(--i) * 80ms); }
.as-bm img, .as-av { width: 100%; height: 220px; object-fit: cover; object-position: center 25%; display: block; }
.as-av { display: grid; place-items: center; font-family: var(--serif); font-size: 3.5rem; color: #fff; background: linear-gradient(135deg, var(--navy-a), var(--navy-b)); }
.as-role { color: var(--accent); font-weight: 700; font-size: .85rem; margin-bottom: .6rem; }
.as-line { display: flex; gap: .5rem; align-items: center; color: var(--text); font-size: .88rem; padding: .2rem 0; text-decoration: none; word-break: break-all; } .as-line:hover { color: var(--brand); }
.as-line svg { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.as-go { color: var(--brand); font-weight: 700; font-size: .85rem; margin-top: .3rem; }
.as-contact { display: grid; padding: .6rem 0; border-bottom: 1px solid var(--line); } .as-contact:last-child { border: 0; }
textarea { width: 100%; font: inherit; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); }

/* Association: larger standards blocks */
.as-stds { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 1.25rem; margin-top: 1.25rem; }
.as-std { display: flex; gap: 1.4rem; align-items: flex-start; padding: 1.9rem 2rem; min-height: 230px; border-top: 4px solid var(--accent); }
.as-std > div { flex: 1; min-width: 0; }
.as-std .as-n { width: 54px; height: 54px; font-size: 1.5rem; }
.as-std h3 { font-family: var(--serif); font-size: 1.55rem; line-height: 1.2; margin: .2rem 0 .8rem; }
.as-std p { font-size: 1.1rem; line-height: 1.65; margin: 0 0 .8rem; }
.as-std .as-ticks { gap: .8rem; margin-top: .6rem; } .as-std .as-ticks li { font-size: 1.1rem; line-height: 1.5; } .as-std .as-ticks svg { width: 24px; height: 24px; margin-top: 1px; }
.as-bigs { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.as-bigs div { text-align: center; padding: 1.3rem .8rem; border-radius: 14px; background: var(--brand-soft); }
.as-bigs b { display: block; font-family: var(--serif); font-size: 4rem; line-height: 1; color: var(--brand); }
.as-bigs span { display: block; margin-top: .5rem; font-weight: 700; font-size: 1rem; line-height: 1.3; }
.as-bigs .adv { background: var(--good-bg); } .as-bigs .adv b { color: var(--good); }
@media (max-width: 560px) { .as-std { flex-direction: column; padding: 1.4rem; } .as-bigs b { font-size: 3rem; } }

/* Powered by Agile Automate */
.powered { display: flex; align-items: center; gap: .5rem; text-decoration: none; opacity: .85; margin-bottom: .8rem; padding-bottom: .8rem; border-bottom: 1px solid rgba(255,255,255,.15); color: #cbd6f5; font-size: .72rem; }
.powered:hover { opacity: 1; text-decoration: none; }
.powered img { height: 22px; width: auto; } .powered b { color: #fff; font-size: .82rem; }
.powered.dark { justify-content: center; border: 0; margin: 1.4rem 0 0; padding: 0; color: var(--muted); }
.powered.dark b { color: var(--text); }
.powered.dark img { height: 24px; }

/* ===== PEAI website tab (mini website inside the app) ===== */
.ws { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 10px 40px rgba(10,26,69,.18); background: var(--surface); }
.ws-chrome { display: flex; align-items: center; gap: .45rem; padding: .6rem .9rem; background: #e7ebf5; }
.ws-chrome i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; } .ws-chrome i:nth-child(2) { background: #febc2e; } .ws-chrome i:nth-child(3) { background: #28c840; }
.ws-url { flex: 1; max-width: 460px; margin: 0 auto; display: flex; align-items: center; gap: .4rem; background: #fff; color: #333; border-radius: 99px; padding: .25rem .8rem; font-size: .8rem; }
.ws-url svg { width: 14px; height: 14px; fill: none; stroke: #28a745; stroke-width: 2; } .ws-open { font-size: .78rem; color: #1f3f8f; text-decoration: none; font-weight: 700; }
:root[data-theme="dark"] .ws-chrome, :root:not([data-theme="light"]) .ws-chrome { background: #1b2748; }
.ws-nav { position: sticky; top: 60px; z-index: 15; display: flex; align-items: center; gap: 1rem; padding: .7rem 1.4rem; background: rgba(10,26,69,.96); backdrop-filter: blur(8px); }
.ws-brand { display: flex; align-items: center; gap: .6rem; color: #fff; font-family: "Cinzel", var(--serif); font-weight: 700; letter-spacing: .12em; cursor: pointer; text-decoration: none; }
.ws-brand img { height: 36px; background: #fff; border-radius: 8px; padding: 3px 6px; }
.ws-links { display: flex; gap: 1.3rem; flex: 1; justify-content: center; flex-wrap: wrap; } .ws-links a { color: #cbd6f5; font-weight: 600; font-size: .9rem; cursor: pointer; text-decoration: none; padding: .3rem 0; border-bottom: 2px solid transparent; } .ws-links a:hover { color: #fff; border-color: var(--accent); }
.ws-cta { background: var(--accent); color: #14213d; font-weight: 800; font-size: .85rem; padding: .5rem 1rem; border-radius: 99px; text-decoration: none; white-space: nowrap; }
.ws-hero { min-height: clamp(460px, 72vh, 720px); display: flex; align-items: center; background: linear-gradient(100deg, rgba(8,20,56,.94) 30%, rgba(8,20,56,.45)), var(--bg) center/cover, #0a1a45; color: #fff; padding: clamp(1.5rem, 5vw, 4rem); }
.ws-hero-in { max-width: 700px; } .ws-eyebrow { display: inline-block; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--accent); }
.ws-hero h1 { font-family: "Cinzel", var(--serif); font-size: clamp(2rem, 5vw + .5rem, 4rem); line-height: 1.1; margin: 1rem 0; color: #fff; } .ws-hero h1 em { font-style: normal; color: var(--accent); }
.ws-tag { font-size: 1.25rem; font-family: var(--serif); font-style: italic; opacity: .95; } .ws-hero p { max-width: 54ch; line-height: 1.6; opacity: .92; } .ws-hero .row { margin-top: 1.4rem; }
.ws-sec { padding: clamp(2rem, 5vw, 4.5rem) clamp(1.2rem, 4vw, 3rem); } .ws-wrap { max-width: 1120px; margin: 0 auto; } .ws-wrap.two { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem; align-items: start; } @media (max-width: 800px) { .ws-wrap.two { grid-template-columns: 1fr; } .ws-links { display: none; } .ws-nav { justify-content: space-between; } }
.ws-kicker { display: inline-block; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 800; color: var(--accent); margin-bottom: .5rem; }
.ws h2 { font-family: "Cinzel", var(--serif); font-size: clamp(1.5rem, 2.5vw + .6rem, 2.4rem); line-height: 1.2; margin: 0 0 1rem; } .ws h3 { font-family: var(--serif); }
.ws p { line-height: 1.7; } .ws-welcome .as-lead { color: var(--brand); }
.ws-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 1.6rem; } .ws-card h3 { font-size: 1.3rem; margin-top: 0; }
.ws-dark { background: linear-gradient(135deg, #0a1a45, #1f3f8f); color: #fff; } .ws-dark h2, .ws-dark h3 { color: #fff; } .ws-dark .ws-kicker { color: var(--accent); }
.ws-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.2rem; margin-top: 1.4rem; }
.ws-svc { position: relative; min-height: 270px; border-radius: 16px; overflow: hidden; background: linear-gradient(180deg, rgba(10,26,69,.35), rgba(10,26,69,.94)), var(--bg) center/cover; display: flex; align-items: flex-end; transition: transform .25s; } .ws-svc:hover { transform: translateY(-6px); }
.ws-svc-in { padding: 1.4rem; } .ws-svc h3 { margin: .5rem 0 .3rem; font-size: 1.35rem; text-transform: capitalize; } .ws-svc p { margin: 0; font-size: .95rem; opacity: .92; } .ws-svc .as-ic { background: rgba(255,255,255,.16); color: var(--accent); }
.ws-note { margin-top: 2rem; padding: 1.4rem; border-left: 4px solid var(--accent); background: rgba(255,255,255,.07); border-radius: 0 12px 12px 0; }
.ws-four { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; margin-top: 1.8rem; } .ws-four .ws-card { position: relative; } .ws-four .as-n { position: absolute; top: -18px; left: 1.4rem; width: 40px; height: 40px; } .ws-four h3 { margin-top: 1rem; } .ws-four p { color: var(--muted); font-size: .98rem; margin-bottom: 0; }
.ws-banner { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .8rem 1.4rem; padding: 1.6rem 2rem; border-radius: 16px; background: linear-gradient(120deg, var(--accent), #e3c374); color: #14213d; } .ws-banner b { font-family: "Cinzel", var(--serif); font-size: 1.8rem; } .ws-banner span { font-size: 1.15rem; font-weight: 700; }
.ws-sub { font-size: 1.6rem; margin: 2.4rem 0 .4rem; }
.ws-navy { background: linear-gradient(rgba(8,20,56,.93), rgba(8,20,56,.96)), var(--bg) center/cover fixed, #0a1a45; color: #fff; } .ws-navy h2, .ws-navy h3 { color: #fff; } .ws-navy .ws-kicker { color: var(--accent); }
.ws-stds { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 1.4rem; margin-top: 1.6rem; }
.ws-std { position: relative; padding: 2rem 2rem 1.8rem; border-radius: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); overflow: hidden; } .ws-std h3 { font-size: 1.5rem; margin: 0 0 .7rem; } .ws-std p, .ws-std li { font-size: 1.08rem; line-height: 1.6; }
.ws-bignum { position: absolute; right: 1rem; top: -.4rem; font-family: var(--serif); font-size: 7rem; font-weight: 700; line-height: 1; color: rgba(255,255,255,.08); } .ws-std .as-ticks svg { stroke: var(--accent); }
.ws-navy .as-bigs div { background: rgba(255,255,255,.1); } .ws-navy .as-bigs b { color: var(--accent); } .ws-navy .as-bigs .adv b { color: #6ee7a0; }
.ws-contactsec { background: linear-gradient(rgba(244,246,251,.94), rgba(244,246,251,.96)), var(--bg) center/cover; } :root[data-theme="dark"] .ws-contactsec, :root:not([data-theme="light"]) .ws-contactsec { background: linear-gradient(rgba(12,18,32,.93), rgba(12,18,32,.96)), var(--bg) center/cover; }
.ws-lead { max-width: 70ch; font-size: 1.1rem; } .ws-info { display: grid; gap: 1rem; } .ws-info > div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem 1.4rem; display: grid; gap: .3rem; } .ws-info b { color: var(--accent); text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; }
.ws-foot { background: #0a1a45; color: #cbd6f5; padding: 2.5rem clamp(1.2rem, 4vw, 3rem) 1.2rem; } .ws-foot h4 { color: #fff; font-family: "Cinzel", var(--serif); letter-spacing: .1em; margin: 0 0 .6rem; } .ws-foot p { font-size: .9rem; line-height: 1.8; } .ws-foot a { color: #cbd6f5; cursor: pointer; text-decoration: none; } .ws-foot a:hover { color: var(--accent); }
.ws-fgrid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 1.6rem; } @media (max-width: 800px) { .ws-fgrid { grid-template-columns: 1fr 1fr; } } @media (max-width: 520px) { .ws-fgrid { grid-template-columns: 1fr; } }
.ws-legal { margin-top: 1.4rem; display: grid; gap: .5rem; } .ws-legal details { background: rgba(255,255,255,.06); border-radius: 10px; padding: .6rem 1rem; } .ws-legal summary { cursor: pointer; font-weight: 700; color: #fff; }
.ws-copy { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.15); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; font-size: .8rem; } .ws-copy .powered { border: 0; margin: 0; padding: 0; }
@media (prefers-reduced-motion: reduce) { .ws-svc { transition: none; } } @media (max-width: 800px) { .ws-navy { background-attachment: scroll; } }

/* Active members directory */
.mem-hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: 20px; color: #fff; background: radial-gradient(700px 300px at 90% -20%, rgba(200,162,74,.35), transparent 60%), linear-gradient(135deg, #0a1a45, #1f3f8f); }
.mem-hero h2 { color: #fff; font-family: var(--serif); font-size: clamp(1.6rem, 3vw + .4rem, 2.4rem); margin: .5rem 0; } .mem-hero p { margin: 0; max-width: 52ch; opacity: .92; } .mem-hero .pill { background: rgba(255,255,255,.16); color: #fff; }
.mem-count { text-align: center; padding: 1rem 1.6rem; border-radius: 16px; background: rgba(255,255,255,.12); } .mem-count b { display: block; font-family: var(--serif); font-size: 3.4rem; line-height: 1; color: var(--accent); } .mem-count span { font-weight: 700; font-size: .9rem; }
.mem-bar { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin: 1.2rem 0; } .mem-bar input[type=search] { flex: 1; min-width: 240px; max-width: 460px; } .mem-bar .tabs { margin: 0; }
.mem-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1rem; }
.mem-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 1.2rem; transition: transform .2s, border-color .2s; } .mem-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.mem-av { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: #fff; background: linear-gradient(135deg, hsl(var(--h) 55% 38%), hsl(var(--h) 60% 52%)); }
.mem-b { min-width: 0; } .mem-b h3 { margin: 0 0 .15rem; font-size: 1.05rem; } .mem-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin: .5rem 0 .4rem; }
.mem-empty { text-align: center; margin-top: 1.2rem; padding: 2.5rem 1.5rem; }

.mem-contact { display: flex; flex-direction: column; gap: .15rem; margin: .1rem 0 .45rem; font-size: .84rem; word-break: break-all; } .mem-contact a { color: var(--brand); font-weight: 600; }

/* ---------- FAINT interview form ---------- */
.faint .fq { margin: 1rem 0 .2rem; } .faint .fq-t { font-weight: 600; margin-bottom: .35rem; }
.faint .blank { display: inline-block; width: auto; min-width: 150px; max-width: 100%; min-height: 32px; padding: .2rem .5rem; margin: 0 .3rem; }
.faint .fbar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .5rem .7rem; margin: .5rem 0 1.2rem; border: 1.5px solid var(--text); border-radius: 8px; background: var(--surface-2); }
.faint .fhead { margin: .4rem 0; } .faint .fhead b { font-style: italic; }
.faint .fl-set { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.faint .fl { border: 0; border-right: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 700; padding: .3rem .6rem; min-width: 38px; min-height: 34px; cursor: pointer; } .faint .fl:last-child { border-right: 0; }
.faint .fl.on { background: var(--brand); color: var(--surface); }
.faint .fnote { flex: 1; min-width: 160px; font-size: .85rem; font-weight: 600; color: var(--muted); text-align: center; }
.faint .fsc { display: flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .85rem; margin: 0; } .faint .fsc select { width: auto; min-width: 84px; }
.faint .fsec { margin: 1.6rem 0 .5rem; padding: .45rem .7rem; background: var(--surface-2); border: 1px solid var(--text); border-radius: 6px; font-size: .95rem; }
.faint .ftotal { font-size: 1.05rem; } .faint .ftot-n { font-family: var(--serif); font-size: 1.8rem; color: var(--brand); min-width: 3rem; text-align: right; }
.faint .fsign { border-bottom: 1.5px solid var(--text); min-height: 64px; display: flex; align-items: flex-end; font-weight: 700; font-size: .85rem; padding-bottom: .3rem; }
@media print { .faint .fq { break-inside: avoid; } .faint .fbar { break-inside: avoid; } .faint textarea, .faint input, .faint select { border-color: #999; background: #fff; color: #000; } }
/* Membership certificate */
.mem-h { font-family: var(--serif); font-size: 1.25rem; margin: 1.4rem 0 0; }
.mem-cert { border-top: 4px solid var(--accent); transition: transform .2s; } .mem-cert:hover { transform: translateY(-3px); }
.mc-view { max-width: 820px; margin: 0 auto; } .mc-view canvas { display: block; background: #fff; border-radius: 4px; box-shadow: 0 8px 32px rgba(10,26,69,.22); }
.alert.good { background: var(--good-bg); color: var(--good); }

/* Membership certificate page */
.mc-hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; padding: 1.4rem 1.6rem; margin-bottom: 1.2rem; border-radius: 20px; color: #fff; background: radial-gradient(700px 260px at 95% -30%, rgba(200,162,74,.4), transparent 60%), linear-gradient(135deg, #0a1a45, #1f3f8f); box-shadow: 0 10px 30px rgba(10,26,69,.25); }
.mc-hero h1 { color: #fff; font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw + .4rem, 2.1rem); margin: .4rem 0 .3rem; } .mc-hero .pill { background: rgba(255,255,255,.18); color: #fff; } .mc-hero .pill.good { background: #15803d; } .mc-hero .pill.bad { background: #b91c1c; } .mc-hero .pill.warn { background: #b45309; }
.mc-sub { margin: 0; opacity: .92; } .mc-sub b { color: var(--accent); }
.mc-actions { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; }
.mc-dl { display: inline-flex; align-items: center; gap: .8rem; border: 0; cursor: pointer; text-align: left; color: #14213d; padding: .8rem 1.4rem .8rem 1.1rem; border-radius: 14px; background: linear-gradient(135deg, #e3c374, #c8a24a); box-shadow: 0 6px 18px rgba(200,162,74,.45); transition: transform .15s, box-shadow .15s; font-family: inherit; }
.mc-dl:hover:not([disabled]) { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(200,162,74,.6); } .mc-dl[disabled] { opacity: .55; cursor: wait; }
.mc-dl svg { width: 34px; height: 34px; flex: none; fill: none; stroke: #14213d; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mc-dl b { display: block; font-size: 1.1rem; } .mc-dl small { display: block; font-size: .72rem; opacity: .8; max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-pr { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.35); color: #fff; } .mc-pr:hover { background: rgba(255,255,255,.22); }
.mc-view { max-width: 900px; margin: 0 auto; }
.mc-skel { aspect-ratio: 595 / 842; max-height: 70vh; border-radius: 6px; display: grid; place-items: center; align-content: center; gap: .6rem; background: linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2)); background-size: 200% 100%; animation: mc-sh 1.4s linear infinite; color: var(--muted); }
@keyframes mc-sh { to { background-position: -200% 0; } } @media (prefers-reduced-motion: reduce) { .mc-skel { animation: none; } }
@media print { .mc-hero { display: none !important; } }

/* Three sign-in entrances */
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: 1rem; }
.doors button { display: grid; gap: .15rem; text-align: left; padding: .7rem .8rem; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; font-family: inherit; transition: border-color .15s, background .15s; }
.doors button b { font-size: .95rem; } .doors button span { font-size: .7rem; color: var(--muted); line-height: 1.25; }
.doors button:hover { border-color: var(--accent); } .doors button.on { border-color: var(--brand); background: var(--brand-soft); } .doors button.on b { color: var(--brand); }
@media (max-width: 420px) { .doors { grid-template-columns: 1fr; } }

/* Memberships & payments page */
.mb-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; margin-top: 1rem; }
.mb-tiles div { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--good); border-radius: 14px; padding: .8rem 1rem; box-shadow: var(--shadow); }
.mb-tiles .warn { border-left-color: var(--warn); } .mb-tiles .bad { border-left-color: var(--bad); } .mb-tiles .info { border-left-color: var(--info); }
.mb-tiles b { display: block; font-family: var(--serif); font-size: 2rem; line-height: 1; } .mb-tiles span { font-size: .78rem; color: var(--muted); font-weight: 600; }
.mb-form { margin: 1rem 0; border-left: 4px solid var(--accent); }

/* Access & permissions + admin action row */
.mb-actions { margin: 1rem 0 0; gap: .6rem; flex-wrap: wrap; }
.ax-t td, .ax-t th { padding: .55rem .8rem; } .ax-t td:not(:first-child), .ax-t th:not(:first-child) { text-align: center; width: 130px; }
.ax-g td { background: var(--surface-2); font-weight: 800; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ax { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-weight: 800; } .ax.y { background: var(--good-bg); color: var(--good); } .ax.n { background: var(--surface-2); color: var(--muted); }

/* Drop-downs with Add new / Other */
.combo { display: grid; gap: .45rem; } .combo-sel { width: 100%; }
.combo-x { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; } .combo-x[hidden] { display: none; } .combo-in { flex: 1; min-width: 150px; }

/* Stat cards: numbers and labels centred */
.stat, .mb-tiles div, .as-stats div, .mem-count { text-align: center; }
.stat { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.mb-tiles div { display: flex; flex-direction: column; align-items: center; justify-content: center; border-left-width: 1px; border-top: 4px solid var(--good); padding: 1rem; }
.mb-tiles .warn { border-top-color: var(--warn); } .mb-tiles .bad { border-top-color: var(--bad); } .mb-tiles .info { border-top-color: var(--info); }
.mb-tiles div, .mb-tiles .warn, .mb-tiles .bad, .mb-tiles .info { border-left-color: var(--line); }
.mb-tiles span { margin-top: .35rem; }

/* Memberships, All certificates and Access tables: every figure column centred (names stay left) */
#mb-body .t th:not(:first-child), #mb-body .t td:not(:first-child),
#ac-body td:not(:first-child), #ax-body td:not(:first-child),
.page:has(#ac-body) .t th:not(:first-child), .page:has(#ax-body) .t:not(.ax-t) th:not(:first-child) { text-align: center; }
#mb-body .t td .muted, #ac-body td .muted, #ax-body td .muted { text-align: center; }
#mb-body .t td:last-child, #ac-body td:last-child { white-space: nowrap; }
.mb-tiles b, .as-stats b, .stat b, .mem-count b { text-align: center; width: 100%; }
#mb-body .t td:not(:first-child), #ac-body td:not(:first-child) { white-space: nowrap; }
#mb-body .t td:first-child .muted, #ac-body td:first-child .muted { white-space: normal; word-break: break-all; }
#mb-body .t td:first-child .muted, #ac-body td:first-child .muted { word-break: normal; overflow-wrap: anywhere; }
#ac-body td:not(:first-child):not(:last-child) { white-space: normal; }
#ac-body td:nth-child(3), #ac-body td:nth-child(6) { min-width: 150px; }

/* Permission switches */
.sw { display: inline-block; position: relative; width: 46px; height: 26px; cursor: pointer; vertical-align: middle; }
.sw input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 2; }
.sw i { position: absolute; inset: 0; border-radius: 99px; background: #c4cbe0; transition: background .18s; }
.sw i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.35); transition: transform .18s; }
.sw input:checked + i { background: var(--good); } .sw input:checked + i::after { transform: translateX(20px); }
.sw input:focus-visible + i { outline: 3px solid var(--brand); outline-offset: 2px; } .sw input:disabled { cursor: wait; } .sw:has(input:disabled) { opacity: .55; }
.ax-lock { width: 13px; height: 13px; margin-left: .35rem; vertical-align: -2px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { .sw i, .sw i::after { transition: none; } }

/* Sponsor credit */
.sponsor { text-align: center; color: #cbd6f5; margin-bottom: .8rem; padding-bottom: .8rem; border-bottom: 1px solid rgba(255,255,255,.15); }
.sponsor .sp-k { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; opacity: .8; font-weight: 700; }
.sponsor .sp-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .35rem .5rem; margin: .3rem 0; }
.sponsor a { display: inline-flex; align-items: center; gap: .35rem; text-decoration: none; }
.sponsor img { height: 22px; width: auto; }
.sponsor b { color: #fff; font-size: .86rem; font-weight: 800; }
.sponsor .sp-and { opacity: .7; font-weight: 700; }
.sponsor .sp-s { font-size: .68rem; opacity: .75; }
.sponsor.dark, .sponsor.band { color: var(--muted); border: 0; }
.sponsor.dark b, .sponsor.band b { color: var(--text); font-size: 1rem; }
.sponsor.dark img, .sponsor.band img { height: 30px; }
.sponsor.band { margin: 2.5rem 0 .5rem; padding: 1.2rem 1rem; border: 1px solid var(--line, rgba(128,128,128,.25)); border-radius: 14px; background: var(--surface); }
.sponsor.band .sp-k { color: var(--brand); font-size: .72rem; }
.sponsor.band .sp-s { font-size: .8rem; }

/* Sortable tables */
table.t th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
table.t th.sortable:hover { color: var(--brand); }
table.t th.sortable::after { content: " \2195"; opacity: .35; font-size: .85em; }
table.t th.sortable[data-dir="asc"]::after { content: " \25B2"; opacity: 1; color: var(--brand); }
table.t th.sortable[data-dir="desc"]::after { content: " \25BC"; opacity: 1; color: var(--brand); }

/* Wider pages and phone-friendly tables */
.page.wide { max-width: min(1700px, 100%); }
@media (min-width: 1200px) { .page.wide { padding-left: 1.5rem; padding-right: 1.5rem; } }
table.t.reg td:nth-child(n+3):nth-child(-n+6) { white-space: nowrap; }
.tabs { flex-wrap: wrap; }
@media (max-width: 760px) {
  .tbl-wrap { overflow: visible; background: transparent; border: 0; box-shadow: none; }
  table.t:not(.ax-t), table.t:not(.ax-t) tbody { display: block; }
  table.t:not(.ax-t) thead { display: none; }
  table.t:not(.ax-t) tr { display: block; margin-bottom: .8rem; padding: .5rem .8rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
  table.t:not(.ax-t) td { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border: 0; padding: .35rem 0; text-align: right !important; white-space: normal !important; }
  table.t:not(.ax-t) td::before { content: attr(data-label); flex: 0 0 38%; text-align: left; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
  table.t:not(.ax-t) td:first-child { display: block; text-align: left !important; font-size: 1rem; border-bottom: 1px solid var(--line); padding-bottom: .5rem; margin-bottom: .2rem; }
  table.t:not(.ax-t) td:first-child::before, table.t:not(.ax-t) td[data-label=""]::before, table.t:not(.ax-t) td:not([data-label])::before { display: none; }
  table.t:not(.ax-t) td:last-child { justify-content: flex-end; flex-wrap: wrap; }
  table.t:not(.ax-t) td .btn { margin: .15rem 0 .15rem .3rem; }
  .row { flex-wrap: wrap; }
}
@media (max-width: 760px) { .tabs { overflow-x: auto; flex-wrap: nowrap; } .tabs button { white-space: nowrap; } }
#mform { scroll-margin-top: 90px; }
/* Live heartbeat canvas (js/ecg.js) */
.as-hero canvas.ecg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .75; }


/* Sponsor banner image (replaces the text credit) */
.sponsor .sp-img { display: block; width: 100%; max-width: 640px; height: auto; margin: 0 auto; border-radius: 12px; }
.sponsor { border-bottom: 0; padding-bottom: .4rem; }
.side .sponsor .sp-img { max-width: 100%; }
.sponsor.band { padding: 0; border: 0; background: transparent; margin: 2.5rem auto .5rem; max-width: 640px; }
.sponsor.dark { margin-top: 1.2rem; }
.sponsor img.sp-img, .sponsor.dark img.sp-img, .sponsor.band img.sp-img, .side .sponsor img.sp-img { height: auto !important; width: 100%; aspect-ratio: 2 / 1; }
.sponsor.dark, .sponsor.band { max-width: 560px; margin-left: auto; margin-right: auto; }

/* Member / Board admin switch (top of the menu) */
.modeswitch { display: flex; align-items: center; gap: .25rem; margin: .4rem .6rem .8rem; padding: .25rem; background: rgba(255,255,255,.08); border-radius: 12px; }
.modeswitch span { display: none; font-size: .6rem; text-transform: uppercase; letter-spacing: .08em; opacity: .7; padding: 0 .35rem; flex: 0 0 auto; }
.modeswitch button { flex: 1; white-space: nowrap; border: 0; border-radius: 9px; padding: .45rem .3rem; font-weight: 800; font-size: .78rem; cursor: pointer; background: transparent; color: #cbd6f5; }
.modeswitch button:hover { background: rgba(255,255,255,.12); }
.modeswitch button.on { background: var(--accent, #c8a24a); color: #14213d; }

/* register: let the long cells wrap so the buttons are never cut off */
table.t.reg td:nth-child(5) { white-space: normal; min-width: 170px; }
table.t.reg td:last-child { white-space: normal !important; text-align: right; min-width: 150px; }
table.t.reg td:last-child .btn { margin: .15rem 0 .15rem .25rem; }

/* Return to website button (sign-in page) */
.back-site { display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1rem; padding: .55rem 1.1rem .55rem .8rem; border-radius: 99px; text-decoration: none; font-weight: 800; font-size: .9rem; color: #14213d; background: linear-gradient(135deg, #e8c468, #c8a24a); box-shadow: 0 6px 18px rgba(200,162,74,.35), inset 0 1px 0 rgba(255,255,255,.5); transition: transform .18s, box-shadow .18s; }
.back-site svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s; }
.back-site:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(200,162,74,.5), inset 0 1px 0 rgba(255,255,255,.5); } .back-site:hover svg { transform: translateX(-4px); }
.back-site:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

/* Inbox */
.nbadge { margin-left: auto; background: #e11d48; color: #fff; border-radius: 99px; font-size: .68rem; font-weight: 800; min-width: 1.35rem; height: 1.35rem; display: inline-flex; align-items: center; justify-content: center; padding: 0 .4rem; } .nbadge[hidden] { display: none; }
.inbox-block { margin: 0 0 1.2rem; overflow: hidden; border-left: 4px solid var(--good); } .inbox-block.has { border-left-color: #e11d48; box-shadow: 0 6px 22px rgba(225,29,72,.13); }
.ib-h { display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; flex-wrap: wrap; } .ib-h .grow { flex: 1 1 200px; min-width: 0; }
.ib-ic { width: 38px; height: 38px; border-radius: 12px; background: var(--brand-soft); display: inline-flex; align-items: center; justify-content: center; color: var(--brand); } .ib-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.has .ib-ic { background: #fee2e2; color: #e11d48; animation: ib-ring 2.2s ease-in-out infinite; } @keyframes ib-ring { 0%, 60%, 100% { transform: rotate(0); } 66% { transform: rotate(-12deg); } 72% { transform: rotate(10deg); } 78% { transform: rotate(-8deg); } 84% { transform: rotate(5deg); } } @media (prefers-reduced-motion: reduce) { .has .ib-ic { animation: none; } }
.ib-list { border-top: 1px solid var(--line); } .ib-row { display: flex; gap: .8rem; align-items: center; padding: .65rem 1rem; text-decoration: none; color: inherit; border-bottom: 1px solid var(--line); } .ib-row:last-child { border-bottom: 0; } .ib-row:hover { background: var(--surface-2); text-decoration: none; }
.ib-av { flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; font-size: .8rem; display: inline-flex; align-items: center; justify-content: center; } .ib-av.lg { flex-basis: 44px; height: 44px; font-size: .95rem; }
.ib-t { flex: 1; min-width: 0; display: flex; flex-direction: column; } .ib-s { color: var(--muted); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ib-when { white-space: nowrap; }
.ib-card { padding: 1rem 1.1rem; margin-bottom: .9rem; } .ib-card.is-new { border-left: 4px solid #e11d48; }
.ib-top { display: flex; gap: .8rem; align-items: center; } .ib-top .grow { min-width: 0; overflow-wrap: anywhere; }
.ib-msg { white-space: pre-wrap; margin: .8rem 0; padding: .8rem 1rem; background: var(--surface-2); border-radius: 10px; overflow-wrap: anywhere; }
.ib-act { display: flex; gap: .45rem; flex-wrap: wrap; }

/* ---------- governance and POPIA ---------- */
.chk { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; margin: .5rem 0; cursor: pointer; }
.chk input { width: 20px; min-height: 0; height: 20px; flex: none; margin-top: .15rem; accent-color: var(--brand); }
.popia-lock { overflow: hidden; }
.popia-gate { position: fixed; inset: 0; z-index: 400; background: rgba(8, 20, 56, .72); display: grid; place-items: center; padding: 1rem; overflow: auto; }
.popia-card { background: var(--surface); color: var(--text); border-radius: 18px; max-width: 760px; width: 100%; padding: 1.4rem 1.5rem; box-shadow: 0 24px 70px rgba(0, 0, 0, .45); max-height: calc(100vh - 2rem); overflow: auto; }
.popia-head { display: flex; gap: .9rem; align-items: center; margin-bottom: .9rem; } .popia-head img { height: 44px; background: #fff; border-radius: 8px; padding: 3px 6px; } .popia-head h2 { margin: 0; font-size: 1.25rem; }
.popia-box { border: 1px solid var(--line); background: var(--surface-2); border-radius: 12px; padding: .2rem 1.1rem 1rem; max-height: 36vh; overflow: auto; font-size: .92rem; margin-bottom: .9rem; }
.popia-box h3, .popia-notice h3 { font-size: 1rem; }
.popia-choice { border: 1px solid var(--line); border-radius: 12px; padding: .7rem 1rem; margin: .7rem 0 0; } .popia-choice legend { font-weight: 700; font-size: .9rem; padding: 0 .4rem; }
.popia-notice ul { padding-left: 1.2rem; } .popia-notice li { margin: .25rem 0; }
.rdy-list { display: grid; gap: 0; padding: .4rem 1.2rem; }
.rdy { display: flex; gap: .9rem; align-items: flex-start; padding: .85rem 0; border-bottom: 1px solid var(--line); } .rdy:last-child { border-bottom: 0; }
.rdy-i { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--surface-2); color: var(--muted); border: 2px solid var(--line); }
.rdy.good .rdy-i { background: var(--good-bg); color: var(--good); border-color: var(--good); } .rdy.warn .rdy-i { background: var(--warn-bg); color: var(--warn); border-color: var(--warn); } .rdy.bad .rdy-i { background: var(--bad-bg); color: var(--bad); border-color: var(--bad); }
.rdy code { background: var(--surface-2); padding: .05rem .35rem; border-radius: 5px; font-size: .85em; }
.gsteps { list-style: none; padding: 0; margin: 1rem 0 1.2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .8rem; }
.gsteps li { display: flex; gap: .7rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .8rem .9rem; }
.gsteps li > span { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: .8rem; font-weight: 800; color: #fff; }
.gsteps li.done > span { background: var(--good); border-color: var(--good); } .gsteps li.now { border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 25%, transparent); } .gsteps li.now > span { border-color: var(--brand); } .gsteps li.stop > span { background: var(--bad); border-color: var(--bad); }
.disc { border-top: 1px solid var(--line); padding: .8rem 0 .2rem; margin-top: .8rem; }
.vote-card .alert { margin: .6rem 0; }
@media print { .popia-gate { display: none !important; } }
/* password eye */
.pw-wrap { position: relative; display: block; } .pw-wrap input { padding-right: 2.8rem; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; background: none; border: 0; border-radius: 8px; color: var(--muted, #9aa7c7); cursor: pointer; padding: 0; }
.pw-eye:hover { color: var(--text); background: rgba(255,255,255,.08); }

/* light / dark switch */
.th-fab { position: fixed; right: 1rem; bottom: 1rem; z-index: 90; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); box-shadow: var(--shadow), 0 4px 14px rgba(0,0,0,.18); cursor: pointer; }
.th-fab:hover { background: var(--surface-2); color: var(--accent); }
body:has(.ws-priv) .th-fab { bottom: 6rem; }
@media print { .th-fab { display: none; } }

/* credit line (F.A.I.N.T.) */
.faint-credit { text-align: center; margin: 1.6rem 0 0; font-size: .82rem; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
