/* Stop EXMO20 – shared styles. System fonts only (no external requests). */
:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --surface-2: #f2ede5;
  --ink: #1e1b24;
  --muted: #5d5866;
  --line: #ddd5c9;
  --heather: #5a2a6b;
  --heather-soft: #efe5f3;
  --gorse: #f3c234;
  --gorse-soft: #fff2c4;
  --moss: #2e5b4c;
  --moss-soft: #e3efe9;
  --link: #5a2a6b;
  --warn: #8a4b00;
  --radius: 10px;
  --wrap: 72rem;
  --prose: 46rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17151b; --surface: #201d26; --surface-2: #2a2631; --ink: #ece8f0; --muted: #a9a2b3;
    --line: #3a3542; --heather: #d2a8e2; --heather-soft: #33263b; --gorse: #f3c234; --gorse-soft: #4a3d12;
    --moss: #8fcbb4; --moss-soft: #1f332c; --link: #dcb6ec; --warn: #f0b36a; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #17151b; --surface: #201d26; --surface-2: #2a2631; --ink: #ece8f0; --muted: #a9a2b3;
  --line: #3a3542; --heather: #d2a8e2; --heather-soft: #33263b; --gorse: #f3c234; --gorse-soft: #4a3d12;
  --moss: #8fcbb4; --moss-soft: #1f332c; --link: #dcb6ec; --warn: #f0b36a; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
h1, h2, h3 { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; line-height: 1.2; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin: 0 0 .5rem; letter-spacing: -.01em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin: 2.4rem 0 .8rem; }
h3 { font-size: 1.2rem; margin: 1.6rem 0 .5rem; }
p, ul, ol { margin: 0 0 1rem; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gorse); outline-offset: 2px; }
img { max-width: 100%; height: auto; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.prose { max-width: var(--prose); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: .4rem .8rem; z-index: 10; }

/* Header */
.site-head { background: var(--heather); color: #fff; }
:root[data-theme="dark"] .site-head { background: #2b1733; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site-head { background: #2b1733; } }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; padding-top: .8rem; padding-bottom: .8rem; }
.brand { color: #fff; text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: .02em; display: flex; align-items: center; gap: .5rem; }
.brand svg { flex: none; }
.brand b { color: var(--gorse); }
.nav { display: flex; flex-wrap: wrap; gap: .2rem .9rem; margin-left: auto; }
.nav a { color: #fff; text-decoration: none; font-size: .95rem; padding: .2rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--gorse); }

/* Hero */
.hero { background: linear-gradient(180deg, var(--heather-soft), var(--bg)); padding: 2.5rem 0 1.5rem; border-bottom: 1px solid var(--line); }
.lede { font-size: 1.15rem; color: var(--muted); max-width: var(--prose); }
.kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--moss); margin: 0 0 .4rem; }

main { padding-bottom: 3rem; }
.section { padding: 1rem 0; }

/* Cards & grids */
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.card h3 { margin-top: 0; }
.card .num { display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--heather); color: #fff; font-weight: 700; font-size: .9rem; margin-right: .4rem; }
:root[data-theme="dark"] .card .num { color: #1e1b24; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .card .num { color: #1e1b24; } }
.facts { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); margin: 1.2rem 0; }
.fact { background: var(--surface); border-left: 4px solid var(--gorse); padding: .7rem 1rem; border-radius: 6px; }
.fact strong { display: block; font-size: 1.5rem; font-family: Georgia, serif; }
.fact span { color: var(--muted); font-size: .92rem; }

/* Quotes */
.quote { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--heather); border-radius: 6px; padding: .8rem 1rem; margin: 0 0 .8rem; }
.quote q { font-style: italic; }
.quote q::before { content: "“"; } .quote q::after { content: "”"; }
.quote .who { display: block; margin-top: .35rem; font-size: .9rem; color: var(--muted); }
.callout { background: var(--moss-soft); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1rem 0; }
.note { font-size: .9rem; color: var(--muted); }
.warn { background: var(--gorse-soft); border-radius: var(--radius); padding: .8rem 1rem; }

mark, .exmo { background: var(--gorse); color: #1e1b24; padding: 0 .15em; border-radius: 3px; font-weight: 600; }
mark.stj { background: var(--gorse-soft); color: inherit; font-weight: 500; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: .55rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface-2); font-weight: 650; }
tr:last-child td { border-bottom: 0; }
.pill { display: inline-block; font-size: .78rem; font-weight: 650; padding: .05rem .5rem; border-radius: 99px; background: var(--surface-2); white-space: nowrap; }
.pill.ok { background: var(--moss-soft); color: var(--moss); }
.pill.no { background: var(--gorse-soft); color: var(--warn); }
.pill.high { background: var(--heather); color: #fff; }
:root[data-theme="dark"] .pill.high { color: #1e1b24; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pill.high { color: #1e1b24; } }

/* Attendance lists */
.people { columns: 16rem; column-gap: 1.5rem; padding-left: 1.1rem; }
.people li { break-inside: avoid; }

/* What the Minutes Missed */
.missed { display: grid; gap: 1rem; }
.miss { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; }
.miss h3 { margin: 0 0 .4rem; font-size: 1.1rem; }
.miss .cols { display: grid; gap: .8rem; grid-template-columns: 1fr; margin-top: .6rem; }
@media (min-width: 760px) { .miss .cols { grid-template-columns: 1fr 1fr; } }
.miss .said { border-left: 4px solid var(--heather); padding-left: .8rem; }
.miss .minutes { border-left: 4px solid var(--line); padding-left: .8rem; color: var(--muted); }
.miss .label { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; color: var(--muted); margin-bottom: .2rem; }
.miss .why { margin: .7rem 0 0; font-size: .95rem; }

/* Transcript */
.transcript p { margin: 0 0 .9rem; }
.transcript .ts { font: 600 .78rem/1 ui-monospace, "Cascadia Mono", Consolas, monospace; text-decoration: none; background: var(--surface-2); padding: .15rem .35rem; border-radius: 4px; margin-right: .4rem; white-space: nowrap; }
.transcript p:target { background: var(--gorse-soft); outline: 6px solid var(--gorse-soft); border-radius: 2px; }
.jump { display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; list-style: none; }
.jump a { font: 600 .8rem/1 ui-monospace, Consolas, monospace; display: inline-block; padding: .3rem .45rem; border-radius: 4px; background: var(--gorse-soft); text-decoration: none; color: var(--ink); }
details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem 1rem; margin: 0 0 1rem; }
summary { cursor: pointer; font-weight: 650; }
.toc { display: flex; flex-wrap: wrap; gap: .4rem .8rem; padding: 0; list-style: none; font-size: .95rem; }

.btn { display: inline-block; background: var(--heather); color: #fff; text-decoration: none; font-weight: 700; padding: .65rem 1.1rem; border-radius: 8px; }
.btn.alt { background: transparent; color: var(--heather); border: 2px solid var(--heather); }
:root[data-theme="dark"] .btn { color: #1e1b24; } :root[data-theme="dark"] .btn.alt { color: var(--heather); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn { color: #1e1b24; } :root:not([data-theme="light"]) .btn.alt { color: var(--heather); } }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0; }

.site-foot { border-top: 1px solid var(--line); background: var(--surface-2); padding: 1.5rem 0; font-size: .9rem; color: var(--muted); }
.site-foot a { color: inherit; }

@media print {
  .site-head, .site-foot, .skip, .jump { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a { color: #000; }
}

/* People: where they stand */
.pgrid { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.pcard { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: .8rem; row-gap: .15rem; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; text-decoration: none; color: var(--ink); }
.pcard:hover { border-color: var(--heather); box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.pcard .avatar { grid-row: 1 / span 3; }
.pname { font-weight: 700; line-height: 1.25; }
.prole { font-size: .85rem; color: var(--muted); line-height: 1.3; }
.avatar { display: inline-grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; font-weight: 800; font-size: 1.1rem; letter-spacing: .03em;
  background: var(--surface-2); color: var(--ink); border: 3px solid var(--line); flex: none; }
.avatar.xl { width: 7rem; height: 7rem; font-size: 2.3rem; border-width: 5px; }
.avatar.for { border-color: #b4472f; } .avatar.against { border-color: var(--moss); } .avatar.unclear { border-color: #9a93a3; } .avatar.notrated { border-color: var(--line); border-style: dashed; }
.stance { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 700; margin-top: .25rem; }
.stance b { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; font-size: 1.05rem; color: #fff; }
.stance.for b { background: #b4472f; } .stance.for { color: #b4472f; }
.stance.against b { background: var(--moss); } .stance.against { color: var(--moss); }
.stance.unclear b { background: #8d8696; } .stance.unclear { color: var(--muted); }
.stance.notrated b { background: transparent; color: var(--muted); border: 2px dashed var(--line); }
.stance.notrated { color: var(--muted); }
.stance.big { font-size: 1.3rem; gap: .7rem; margin: .2rem 0 .6rem; }
.stance.big b { width: 3.4rem; height: 3.4rem; font-size: 2.2rem; }
:root[data-theme="dark"] .stance.against b, :root[data-theme="dark"] .stance.for b { color: #17151b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stance.against b, :root:not([data-theme="light"]) .stance.for b { color: #17151b; }
  :root:not([data-theme="light"]) .stance.for, :root:not([data-theme="light"]) .avatar.for { color: #f0a08c; border-color: #f0a08c; }
  :root:not([data-theme="light"]) .stance.for b { background: #f0a08c; } }
.profile-head { display: flex; gap: 1.4rem; align-items: flex-start; flex-wrap: wrap; }
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }

/* Leaflet */
.leaflet { max-width: 800px; margin: 1rem auto 3rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.8rem; font-size: .98rem; }
.leaflet h2 { margin: 0 0 .4rem; font-size: 1.9rem; color: var(--heather); }
.leaflet h3 { margin: 1rem 0 .4rem; font-size: 1.1rem; color: var(--heather); }
.lf-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .5rem; margin: .8rem 0; }
.lf-facts div { border-left: 4px solid var(--gorse); background: var(--surface-2); padding: .4rem .6rem; font-size: .85rem; line-height: 1.3; }
.lf-facts strong { display: block; font-size: 1.15rem; font-family: Georgia, serif; }
.lf-q { margin: 0 0 .45rem; font-style: italic; border-left: 3px solid var(--heather); padding-left: .6rem; }
.lf-q span { font-style: normal; font-size: .82rem; color: var(--muted); display: block; }
.lf-list { margin: 0 0 .4rem; padding-left: 1.2rem; } .lf-list li { margin-bottom: .2rem; }
.lf-foot { margin: .8rem 0 0; padding-top: .5rem; border-top: 1px solid var(--line); font-size: .82rem; }
@media print {
  @page { size: A4; margin: 11mm; }
  .no-print { display: none !important; }
  .leaflet { border: 0; padding: 0; margin: 0; max-width: none; font-size: 10pt; line-height: 1.38; background: #fff; }
  .leaflet h2 { font-size: 20pt; color: #5a2a6b; } .leaflet h3 { font-size: 12pt; margin: .55rem 0 .25rem; color: #5a2a6b; }
  .lf-facts { grid-template-columns: repeat(4, 1fr); } .lf-facts div { background: #f2ede5; }
  main { padding: 0; } .wrap { padding: 0; max-width: none; }
}
.avatar.photo { padding: 0; overflow: hidden; background: var(--surface-2); }
.avatar.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.credit { font-size: .78rem; }

/* Before/after slider */
.compare-fig { margin: 0 auto; max-width: 996px; }
.compare { --pos: 50%; position: relative; width: 100%; aspect-ratio: 996 / 664; overflow: hidden; border-radius: var(--radius); background: #222; user-select: none; touch-action: pan-y; }
.compare img.before, .compare svg.after { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.compare .after-wrap { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.compare .divider { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 6px rgba(0,0,0,.5); pointer-events: none; }
.compare .divider span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 2.6rem; height: 2.6rem; border-radius: 50%; background: #fff; color: #5a2a6b; display: grid; place-items: center; font-size: 1.3rem; font-weight: 800; box-shadow: 0 1px 6px rgba(0,0,0,.4); }
.compare input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare:focus-within .divider span { outline: 3px solid var(--gorse); }
.ctag { position: absolute; top: .6rem; font-size: .8rem; font-weight: 700; color: #fff; background: rgba(30,27,36,.75); padding: .15rem .55rem; border-radius: 99px; pointer-events: none; }
.ctag-l { left: .6rem; } .ctag-r { right: .6rem; }
.compare-fig figcaption { margin-top: .6rem; }
.compare img.after { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.compare.portrait { aspect-ratio: 750 / 931; }
.portrait-fig { max-width: 640px; }
