/* /poster/: companion page for the conference poster.
   The figures are generated SVGs themed by --fig-* properties; their built-in
   fallbacks are the poster's light theme, and this page sets the dark one. */
.poster-page{
  --fig-ink:var(--text); --fig-muted:var(--muted); --fig-line:var(--line);
  --fig-surface:var(--surface); --fig-band:#1d1b26;
  --fig-dot:#7d6aa8; --fig-accent:#9179cc; --fig-accent-soft:#665894; --fig-on-accent:#14101f;
  --fig-grey-1:#69666f; --fig-grey-2:#55535f;
  --fig-sf-a:#9179cc; --fig-sf-b:#d95926; --fig-sf-i:#199e70; --fig-sf-j:#c98500;
}

.poster-hero{padding:72px 0 40px;position:relative;overflow:hidden}
.poster-hero::before{content:"";position:absolute;top:-160px;right:-120px;width:520px;height:520px;background:radial-gradient(circle,var(--accent-soft),transparent 68%);pointer-events:none}
.poster-hero h1.big{font-size:clamp(2rem,5vw,3.4rem);text-wrap:balance}
.poster-hero .lede{margin-bottom:6px}
.byline{color:#cfcfd8;font-size:clamp(1rem,1.8vw,1.1rem);white-space:nowrap}

.part{padding:40px 0}
.part-title{font-size:clamp(1.5rem,3.2vw,2.1rem);margin-bottom:28px;max-width:820px}

.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:28px;margin-bottom:20px}
.panel h3{font-size:1.3rem;margin-bottom:12px}
.panel p{color:#cfcfd8;max-width:720px}
.panel p + p{margin-top:12px}
.panel strong{color:var(--text)}
.panel code{font-size:.9em;background:var(--surface-2);padding:1px 6px;border-radius:6px}
.panel p.goal{border-left:3px solid var(--accent);padding:2px 0 2px 14px;margin-top:16px;color:var(--text)}
.part-intro{color:#cfcfd8;max-width:720px;margin:28px 0 20px}
.approaches{display:grid;grid-template-columns:1fr;gap:20px}
/* Desktop: approach 1 is the longest by far, so it runs down a narrower left
   column and approaches 2 and 3 stack beside it. Three equal columns left the
   two short cards mostly empty. 7fr/11fr is the split at which both sides end
   level with the current copy; re-tune it if the cards' text changes much. */
@media(min-width:1000px){
  .approaches{grid-template-columns:7fr 11fr}
  .approaches .panel:first-child{grid-row:span 2}
}
.approaches .panel.chosen{border-color:var(--accent)}
.facts{margin-top:16px}
.facts div{border-top:1px solid var(--line);padding:10px 0}
.facts dt{color:var(--accent);font-size:.74rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;margin-bottom:2px}
.facts dd{color:#cfcfd8;font-size:.94rem}
.approaches .panel{margin-bottom:0}
.approaches + .compare{margin-top:20px}
.compare-table{border-collapse:collapse;font-size:.9rem;width:100%;min-width:560px}
.compare-table th,.compare-table td{border-bottom:1px solid var(--line);padding:9px 14px 9px 0;text-align:left;vertical-align:top;color:#cfcfd8}
.compare-table thead th{color:var(--accent);font-size:.78rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase}
.compare-table tbody th{color:var(--text);font-weight:600;width:20%}

/* The example's subfields keep figure 1's colors wherever they appear: an
   underline on the text (which stays in the normal ink), or a swatch. */
.sf{border-bottom:3px solid transparent;padding-bottom:1px}
.sf-a{border-bottom-color:var(--fig-sf-a)}
.sf-b{border-bottom-color:var(--fig-sf-b)}
.sf-i{border-bottom-color:var(--fig-sf-i)}
.sf-j{border-bottom-color:var(--fig-sf-j)}
.swatch{display:inline-block;width:.75em;height:.75em;border-radius:3px;margin-right:.45em;vertical-align:-.05em}
.sw-a{background:var(--fig-sf-a)}
.sw-b{background:var(--fig-sf-b)}
.sw-i{background:var(--fig-sf-i)}
.sw-j{background:var(--fig-sf-j)}
.key{white-space:nowrap;margin-left:.6em}
.fig-frame code.marc{line-height:1.9}

/* How the Workbench reads a statement; what the cataloger controls */
.panel h4.step{font-size:1.05rem;margin:28px 0 8px}
.rule-line{margin:12px 0}
.panel p code,.panel li code{white-space:nowrap}
.panel .rule-line code{white-space:normal;display:inline-block;line-height:1.7;overflow-wrap:anywhere}
.table-wrap{overflow-x:auto;margin:14px 0 4px}
.slot-table{border-collapse:collapse;font-size:.9rem;min-width:min(100%,420px)}
.slot-table th,.slot-table td{border-bottom:1px solid var(--line);padding:7px 16px 7px 0;text-align:left;vertical-align:top;color:#cfcfd8}
.slot-table th{color:var(--text);font-weight:600}
.cases,.controls ul{margin:12px 0 0 20px;color:#cfcfd8;max-width:720px}
.cases li,.controls li{margin-bottom:8px}
.controls{display:grid;grid-template-columns:1fr;gap:16px;margin:18px 0}
@media(min-width:1000px){.controls{grid-template-columns:repeat(3,1fr)}}
.controls section{background:var(--surface-2);border:1px solid var(--line);border-radius:10px;padding:16px 18px}
.controls h4{font-size:1rem;margin-bottom:4px;color:var(--accent)}
.controls ul{margin-left:18px;font-size:.93rem}

.fig-frame{margin:24px 0 4px}
.fig-frame svg{display:block;width:100%;height:auto}
.fig-frame figcaption{color:var(--muted);font-size:.86rem;margin-top:10px;max-width:720px}
.fig-frame code.marc{display:block;margin-top:6px;color:var(--text);font-size:.84rem;overflow-wrap:anywhere}
/* The 340-wide figures: capped so their text stays close to body size */
.fig-narrow svg{max-width:440px}
.fig-tall{display:none}
.fig-tall svg{max-width:420px}

.data-view{margin-top:4px;color:var(--muted);font-size:.9rem}
.data-view summary{cursor:pointer;color:var(--accent);font-weight:500;padding:10px 0;min-height:44px}
.data-view summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.data-view table{border-collapse:collapse;margin-top:12px;min-width:min(100%,360px)}
.data-view th,.data-view td{border-bottom:1px solid var(--line);padding:6px 14px 6px 0;text-align:left}
.data-view th{color:var(--text);font-weight:600}
.data-view .num{text-align:right;font-variant-numeric:tabular-nums}

.rules{margin:14px 0 0 22px;color:#cfcfd8;max-width:720px}
.rules li{margin-bottom:6px}
.bugs{margin:14px 0 0 20px;color:#cfcfd8;max-width:720px}
.bugs li{margin-bottom:10px}
/* A full holdings statement is too long to keep on one line on a phone */
.panel .bugs code{white-space:normal;overflow-wrap:anywhere}

.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--line);border:1px solid var(--line);border-radius:10px;overflow:hidden;margin:18px 0}
/* Number above its label; the numbers line up along the top however the labels wrap */
.stats div{background:var(--surface-2);padding:18px 16px;display:flex;flex-direction:column-reverse;justify-content:flex-end;gap:4px}
.stats dd{font-size:2rem;font-weight:600;color:var(--accent);line-height:1.1}
.stats dt{color:var(--muted);font-size:.86rem}
.note{font-size:.9rem;color:var(--muted) !important}

.poster-links{margin-top:28px}
.poster-top-links{margin-top:22px}
.pdf-meta{font-weight:400;color:var(--muted)}
.panel a.cite,.ref-list a,.license-note a{color:var(--accent);text-decoration:underline;text-underline-offset:2px}
.panel a.cite:focus-visible,.ref-list a:focus-visible,.license-note a:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.refs{padding-top:8px}
.refs-title{font-size:1.15rem;margin-bottom:12px}
.ref-list{list-style:none;color:var(--muted);font-size:.9rem;max-width:760px}
.ref-list li{padding-left:2em;text-indent:-2em;overflow-wrap:anywhere}
.ref-list li:target{color:var(--text)}
.license-title{margin-top:28px}
.license-note{color:var(--muted);font-size:.9rem;max-width:760px}
.poster-links a:focus-visible{outline:2px solid var(--accent);outline-offset:3px}

@media(max-width:720px){
  .stats{grid-template-columns:1fr 1fr}
  .fig-wide{display:none}
  .fig-tall{display:block}
  .panel{padding:20px 16px}
  .slot-table{font-size:.84rem;min-width:0}
  .slot-table th,.slot-table td{padding-right:10px}
  /* Slot names and values stay whole; only the last column wraps */
  .slot-table td:first-child,.slot-table td:nth-child(2){white-space:nowrap}
  /* The comparison stacks: one block per row, each value labeled */
  .compare-table{min-width:0}
  .compare-table thead{display:none}
  .compare-table tr{display:block;padding:10px 0;border-bottom:1px solid var(--line)}
  .compare-table tbody th{display:block;width:auto;border:0;padding:0 0 4px}
  .compare-table td{display:block;border:0;padding:2px 0}
  .compare-table td::before{content:attr(data-label) ": ";color:var(--accent);font-weight:600;font-size:.8rem}
}
/* Very narrow screens (and desktop zoomed to 400%): the slot table cannot keep
   its names whole and still fit, so they may break rather than make the table
   scroll sideways, which a keyboard could not reach (WCAG 1.4.10, 2.1.1) */
@media(max-width:374px){
  .slot-table td:first-child,.slot-table td:nth-child(2){white-space:normal}
  .slot-table code{overflow-wrap:anywhere}
}
