/* =========================================================================
   fihub / Pelaluotsi — "pohjoinen toimitus": a light, paper-stock editorial
   skin for the network chrome. Same class vocabulary as the dark canon, a
   deliberately different optical system:
     · paper background, graphite text, one cold accent (navy) + one warm signal
     · SERIF headings against a grotesque body
     · hard 6px corners, no notches, no pills
     · brand cards are horizontal dossier ROWS, not vertical tiles
     · tables are editorial: no frame, rule over the head, zebra body
     · the masthead is two-storey: brand row, then a navigation deck
   No @import, no external URLs, no data: assets. Light only, by design.
   ========================================================================= */

:root {
  --bg: #F4F6F8;
  --bg2: #EAEEF3;
  --panel: #FFFFFF;
  --panel2: #F0F3F7;
  --fg: #151A21;
  --muted: #5C6875;
  --line: rgba(21, 26, 33, .12);
  --line2: rgba(21, 26, 33, .22);
  --rule: rgba(21, 26, 33, .55);      /* the editorial hairline over table heads */
  --accent: #12457E;
  --accent-fg: #FFFFFF;
  --accent2: #0E7C6B;
  --accent-wash: rgba(18, 69, 126, .07);
  --accent-edge: rgba(18, 69, 126, .30);
  --warn: #B4661A;
  --warn-wash: rgba(180, 102, 26, .09);
  --ok: #0E7C6B;
  --ok-wash: rgba(14, 124, 107, .09);
  --bad: #B3323F;
  --bad-wash: rgba(179, 50, 63, .08);
  --r: 6px;
  --notch: 6px;                        /* the canon's cut-outs are flattened here */
  --maxw: 1140px;
  --logow: 132px;                      /* the dossier logo column */
  --head: 'Source Serif 4', 'Source Serif Pro', Georgia, 'Times New Roman', serif;
  --body: 'Inter', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  --measure: 72ch;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 118px;           /* two-storey masthead */
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.7 var(--body);
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }

h1, h2, h3, h4 {
  font-family: var(--head);
  font-weight: 600;
  letter-spacing: -.005em;
  line-height: 1.2;
  margin: 0 0 .5em;
  text-wrap: balance;
  color: var(--fg);
}
h1 { font-size: clamp(29px, 4.3vw, 45px); line-height: 1.13; }
h2 { font-size: clamp(23px, 2.9vw, 32px); margin-top: 0; }
h3 { font-size: clamp(18px, 2.1vw, 21px); }
h4 {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}

p { margin: 0 0 1.05em; max-width: var(--measure); }
ul, ol { max-width: var(--measure); }
strong, b { font-weight: 600; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--accent); color: var(--accent-fg); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------------------------------------------------------------- buttons */
/* R34: the FILLED navy button is always the paid outbound link. The outlined
   one is internal navigation. Fill vs. outline, not two shades of the same. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font: 600 14.5px/1.15 var(--body);
  letter-spacing: .012em;
  padding: 12px 20px;
  border-radius: var(--r);
  border: 1.5px solid transparent;
  white-space: nowrap;
  max-width: 100%;
  transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}
.btn:hover { text-decoration: none; }

.btn-primary,
.btn-cta {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-fg);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .18);
}
.btn-primary:hover,
.btn-cta:hover { background: #0E3765; border-color: #0E3765; color: var(--accent-fg); }

.btn-secondary,
.ghost,
.btn.ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line2);
  box-shadow: none;
}
.btn-secondary:hover,
.ghost:hover,
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-wash); }

.btns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 14px; }
.cta-block { display: flex; flex-direction: column; gap: 9px; align-items: stretch; }
.cta-block .btn { width: 100%; }

/* the advertising disclosure that rides under every paid button */
.adnote { display: block; font-size: 12.5px; color: var(--muted); margin: 4px 0 0; line-height: 1.45; }
.adnote b {
  display: inline-block;
  font: 700 10px/1 var(--body);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--warn);
  background: var(--warn-wash);
  border: 1px solid rgba(180, 102, 26, .3);
  border-radius: 3px;
  padding: 4px 6px;
  margin-right: 7px;
  vertical-align: 1px;
}
.adnote.mini { font-size: 10.5px; text-align: center; margin: 0; }
.adnote.mini b { font-size: 8.5px; padding: 3px 5px; margin-right: 4px; }
.headcta { display: flex; flex-direction: column; align-items: stretch; gap: 4px; flex: 0 0 auto; order: 4; }

/* ----------------------------------------------------------- the masthead */
/* Two storeys: brand + search + paid CTA on top, the navigation deck below.
   Built out of flex order/wrapping, because the generator emits one flat bar. */
header.site {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--panel);
  border-bottom: 1px solid var(--line2);
  box-shadow: 0 1px 0 rgba(21, 26, 33, .04), 0 8px 22px -18px rgba(21, 26, 33, .5);
}
header.site .bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 12px;
  padding-bottom: 0;
}
.logo { display: flex; align-items: center; gap: 12px; color: var(--fg); flex: 0 0 auto; order: 1; }
.logo:hover { text-decoration: none; }
.logo b { display: block; font: 600 20px/1.1 var(--head); letter-spacing: -.01em; }
.logo small {
  display: block;
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 2px;
}
.mark {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  flex: 0 0 auto;
  border-radius: var(--r);
  background: var(--accent);
  color: var(--accent-fg);
  font: 600 16px/1 var(--head);
  letter-spacing: .06em;
  overflow: hidden;
}
.mark.has-emblem { background: none; border: 1px solid var(--line); }
.mark img { width: 100%; height: 100%; object-fit: contain; }

/* the lower storey */
nav.main {
  order: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 0 4px;
  width: 100%;
  margin: 0;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}
nav.main a {
  position: relative;
  color: var(--muted);
  font: 500 14px/1 var(--body);
  letter-spacing: .01em;
  padding: 13px 12px;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}
nav.main a:hover { color: var(--fg); text-decoration: none; border-bottom-color: var(--line2); }
nav.main a.akt { color: var(--accent); font-weight: 650; border-bottom-color: var(--accent); }

/* CSS-only hamburger, no JS in the chrome */
.nav-t { display: none; }
.hb { display: none; }

/* ----------------------------------------------------------------- search */
.search { position: relative; flex: 1 1 190px; max-width: 300px; order: 3; margin-left: auto; margin-right: 4px; }
.search input {
  width: 100%;
  background: var(--panel2);
  border: 1px solid var(--line2);
  border-radius: var(--r);
  color: var(--fg);
  font: 400 14px/1 var(--body);
  padding: 11px 13px;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { border-color: var(--accent); background: var(--panel); outline: none; }
.sres {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 7px);
  width: min(380px, 82vw);
  background: var(--panel);
  border: 1px solid var(--line2);
  border-radius: var(--r);
  padding: 5px;
  max-height: 62vh;
  overflow: auto;
  box-shadow: 0 18px 44px -14px rgba(21, 26, 33, .35);
}
.sres.on { display: block; }
.sres a, .sres .nores {
  display: block;
  padding: 10px 12px;
  border-radius: 3px;
  color: var(--fg);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.sres a + a { border-top: 1px solid var(--line); }
.sres a:hover { background: var(--accent-wash); color: var(--accent); text-decoration: none; }
.sres .nores { color: var(--muted); font-style: italic; }

/* -------------------------------------------------------------- crumb bar */
/* G6: the trail is visible chrome, not schema-only metadata. */
.crumbbar {
  border-bottom: 1px solid var(--line);
  background: var(--bg2);
  font-size: 12.5px;
  color: var(--muted);
}
.crumbbar .wrap {
  display: flex;
  gap: 8px 16px;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
  flex-wrap: wrap;
}
.breadcrumb { min-width: 0; }
.cr { min-width: 0; overflow-wrap: anywhere; }
.crumbbar a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 2px; }
.crumbbar a:hover { color: var(--accent); text-decoration-color: currentColor; }
.crumbbar span { color: var(--fg); }
.crumbbar .sep { color: var(--line2); margin: 0 2px; }
.updated { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* -------------------------------------------------------------- sections */
main > section { padding: 48px 0; }
main > section.band { background: var(--bg2); }
main > section + section { border-top: 1px solid var(--line); }
main > section.narrow > .wrap { max-width: 880px; }
main > section.narrow p,
main > section.narrow ul,
main > section.narrow ol { max-width: none; }
main > section.tight { padding: 26px 0; }

.lead {
  color: var(--muted);
  font-size: clamp(16.5px, 1.5vw, 19px);
  line-height: 1.62;
  max-width: 66ch;
}
.src, .srcline, .meta {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 8px 0 0;
  max-width: 88ch;
}

/* pagehead / hero: paper, no glow — a rule-and-type composition */
.hero, .pagehead {
  padding: 50px 0 44px;
  background: var(--panel);
  border-bottom: 1px solid var(--line2);
}
.hero .grid, .pagehead .grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 20px 40px;
  align-items: start;
}
.hero h1 { margin-bottom: .3em; }
.hero .brandlogo, .pagehead .brandlogo { margin-bottom: 18px; }

/* the eyebrow: a flag with an accent bar, not a pill */
.kick {
  display: inline-block;
  font: 700 11px/1 var(--body);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-wash);
  border-left: 3px solid var(--accent);
  border-radius: 0 3px 3px 0;
  padding: 7px 11px;
  margin-bottom: 16px;
}
.hero .btns { margin-top: 24px; margin-bottom: 6px; }
.hero .adnote { margin-bottom: 22px; }

/* ----------------------------------------------------------------- panels */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  padding: 22px;
}
.notch { border-radius: var(--notch); }
.panel h3 { margin-bottom: .55em; }
.panel.cta {
  background: var(--panel2);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-top-width: 1px;
  padding: 26px;
}
.panel.cta p { max-width: 62ch; }
section.cta .panel { border-top-color: var(--accent); }

/* callouts: a colour bar on the left, a tinted plate, no frame */
.callout {
  background: var(--panel2);
  border: 0;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 16px 20px;
  margin: 20px 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout.gap { border-left-color: var(--warn); background: var(--warn-wash); }
.callout.ok { border-left-color: var(--ok); background: var(--ok-wash); }
.callout.bad { border-left-color: var(--bad); background: var(--bad-wash); }

/* ----------------------------------------------------------------- tables */
/* Editorial: no outer frame. A dark rule sits over the head, the body is
   zebra-striped, headings are small caps with tracking. */
.tablewrap, .table-wrap {
  margin: 0 0 10px;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
.tablewrap.wide table, .table-wrap.wide table { min-width: 620px; }
thead tr { border-top: 2px solid var(--rule); }
th {
  text-align: left;
  font: 700 11px/1.35 var(--body);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--line2);
  white-space: nowrap;
  background: transparent;
}
td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  overflow-wrap: anywhere;             /* ALSI-202505027-FI2 must not widen the row */
  word-break: normal;
}
tbody tr:nth-child(even) td { background: var(--panel2); }
tbody tr:last-child td { border-bottom: 1px solid var(--line); }
tbody tr:hover td { background: var(--accent-wash); }
td.k {
  color: var(--muted);
  width: 30%;
  font: 600 11.5px/1.5 var(--body);
  letter-spacing: .06em;
  text-transform: uppercase;
  padding-top: 13px;
  overflow-wrap: break-word;           /* a label wraps between words, never mid-word */
  hyphens: none;
}
/* figures stay on one line */
td.num, th.num, td.n, .nowrap { white-space: nowrap; font-variant-numeric: tabular-nums; }
.na { color: var(--muted); font-style: italic; }

/* ------------------------------------------------------------ brand cards */
/* The identifying difference from the canon: a dossier ROW — logo plate in a
   fixed left column, everything else stacked in the right column. */
.brands { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 22px; }
.brand {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line2);
  padding: 20px 22px 20px 20px;
  display: grid;
  grid-template-columns: var(--logow) minmax(0, 1fr);
  column-gap: 22px;
  row-gap: 12px;
  align-content: start;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.brand:hover { border-left-color: var(--accent); box-shadow: 0 10px 26px -20px rgba(21, 26, 33, .7); }
.brand > * { grid-column: 2; min-width: 0; margin-top: 0; }
.brand > .bhead { grid-column: 1 / -1; }

/* the head row repeats the parent's columns so the logo anchors the left rail */
.bhead {
  display: grid;
  grid-template-columns: var(--logow) minmax(0, 1fr);
  column-gap: 22px;
  row-gap: 8px;
  align-items: center;
  margin: 0;
  padding-right: 40px;
}
.bhead > *:not(.brandlogo) { grid-column: 2; }
.bhead .bname, .bhead .lic, .bhead .safetybadge { justify-self: start; }
.bhead .lic { margin-top: 2px; }

/* Authored 120x40, but operator marks arrive in wildly different proportions:
   a white plate with contain keeps every one of them the same optical size. */
.brandlogo {
  max-width: 100%;
  height: auto;
  max-height: 56px;
  object-fit: contain;
  object-position: left center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 8px 12px;
}
.bhead .brandlogo {
  grid-column: 1;
  grid-row: 1 / span 3;
  align-self: start;
  justify-self: stretch;
  width: 100%;
  max-height: 62px;
  min-height: 54px;
  object-position: center;
  padding: 9px 10px;
}
.hero .brandlogo, .pagehead .brandlogo { width: auto; max-width: 200px; }
.bname { font: 600 21px/1.2 var(--head); letter-spacing: -.01em; color: var(--fg); }

/* rank: a serif numeral in the left margin, not a badge */
.brank {
  position: absolute;
  top: 16px; right: 18px;
  font: 600 26px/1 var(--head);
  color: var(--line2);
  letter-spacing: -.03em;
}
.brank::before { content: "#"; font-size: .6em; vertical-align: .25em; margin-right: 1px; }
.brands > .brand:first-child .brank { color: var(--accent); }

.blead { font-size: 14.5px; line-height: 1.6; color: var(--muted); margin: 0; max-width: 82ch; }
.brand table { font-size: 13.5px; }
.brand thead tr { border-top-width: 1px; }
.brand td { padding: 8px 10px 8px 0; }
/* a fixed label rail: as a percentage it opened a 300px gutter on wide rows */
.brand td.k { width: 210px; padding-right: 16px; }
.brand tbody tr:nth-child(even) td { background: transparent; }
.brand tbody tr:hover td { background: transparent; }
.brand .tablewrap { margin-bottom: 0; }
.brand .btns { margin: 4px 0 0; gap: 9px; }
.brand .btn { font-size: 14px; padding: 11px 16px; white-space: normal; text-align: center; }

/* the raw source string the generator sometimes drops next to the licence */
.safetybadge {
  display: inline-block;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--muted);
  background: var(--panel2);
  border-left: 2px solid var(--line2);
  border-radius: 0 3px 3px 0;
  padding: 4px 9px;
  overflow-wrap: anywhere;
  max-width: 100%;
}

/* licence chips: rectangular tags, not pills */
.lic {
  display: inline-block;
  font: 700 10.5px/1 var(--body);
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 3px;
  padding: 6px 9px;
  border: 1px solid;
  white-space: nowrap;
}
.lic-ok { color: var(--ok); border-color: rgba(14, 124, 107, .38); background: var(--ok-wash); }
.lic-mid { color: var(--warn); border-color: rgba(180, 102, 26, .38); background: var(--warn-wash); }
.lic-bad { color: var(--bad); border-color: rgba(179, 50, 63, .36); background: var(--bad-wash); }
.lic-mute { color: var(--muted); border-color: var(--line2); background: var(--panel2); }

/* ------------------------------------------ Safety Index meter (sourced) */
/* A picture of somebody else's number: one neutral accent fill, never a
   traffic light — we report the rating, we do not issue it. */
.meter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px 14px;
  margin: 0;
  max-width: 460px;
}
.mbar {
  grid-column: 1;
  grid-row: 1;
  height: 8px;
  border-radius: 2px;
  background: var(--panel2);
  border: 1px solid var(--line);
  overflow: hidden;
}
.mbar i {
  display: block;
  height: 100%;
  background: var(--accent);
}
.mval {
  grid-column: 2;
  grid-row: 1;
  font: 600 19px/1 var(--head);
  color: var(--fg);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.mval small { font-size: 11.5px; color: var(--muted); font-weight: 400; font-family: var(--body); }
.mlab {
  grid-column: 1 / -1;
  grid-row: 2;
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  overflow-wrap: anywhere;
}

/* the hero signal strip */
.signals {
  margin: 24px 0 0;
  padding: 18px 20px;
  background: var(--panel2);
  border: 0;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--r) var(--r) 0;
  max-width: 520px;
}
.signals .meter { max-width: none; }
.meter.wide { gap: 7px 16px; }
.meter.wide .mbar { height: 10px; }
.meter.wide .mval { font-size: 25px; }
.sigrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line2);
}
.sig {
  font-size: 12.5px;
  color: var(--fg);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 6px 10px;
}
.sig b {
  color: var(--muted);
  font: 700 10px/1 var(--body);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-right: 7px;
}

/* ------------------------------------------------------------------ tiles */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.tile {
  --tg: var(--accent);
  display: block;
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--tg);
  border-radius: var(--r);
  padding: 15px 17px 17px;
  color: var(--fg);
  min-width: 0;
}
.tile:hover { text-decoration: none; background: var(--panel2); border-color: var(--line2); border-top-color: var(--tg); }
.tile b { display: block; font: 600 16.5px/1.3 var(--head); margin-bottom: 5px; overflow-wrap: anywhere; }
.tile span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.tcat {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--tg);
  font: 700 9.5px/1 var(--body);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.tile .tg { width: 16px; height: 16px; flex: 0 0 auto; }
.tile.g-pay { --tg: #12457E; }
.tile.g-access { --tg: #0E7C6B; }
.tile.g-bonus { --tg: #B4661A; }
.tile.g-trust { --tg: #3C5A78; }
.tile.g-play { --tg: #6B4E8C; }

/* -------------------------------------------------------------------- toc */
/* a boxed contents column with a rule per line — not a cloud of pills */
ul.toc {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 26px;
  margin: 0;
  padding: 16px 0 4px;
  max-width: none;
  border-top: 2px solid var(--rule);
}
ul.toc li { min-width: 0; }
ul.toc a {
  display: block;
  font: 500 14px/1.4 var(--body);
  color: var(--fg);
  padding: 10px 4px 10px 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
ul.toc a:hover { color: var(--accent); text-decoration: none; background: var(--accent-wash); }

/* ------------------------------------------------------------------ steps */
ol.steps {
  list-style: none;
  counter-reset: s;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  max-width: none;
}
ol.steps li {
  counter-increment: s;
  background: transparent;
  border: 0;
  border-top: 2px solid var(--rule);
  padding: 14px 0 0;
  position: relative;
  min-width: 0;
}
ol.steps li::before {
  content: counter(s);
  display: block;
  font: 600 30px/1 var(--head);
  color: var(--accent);
  margin-bottom: 8px;
}
ol.steps b { display: block; font: 600 16.5px/1.3 var(--head); margin-bottom: 5px; }
ol.steps span { font-size: 13.5px; color: var(--muted); line-height: 1.6; }

/* -------------------------------------------------------------- pros/cons */
.pc { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.pc > * {
  background: var(--panel2);
  border: 0;
  border-left: 4px solid var(--line2);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 16px 18px;
  min-width: 0;
}
.pc ul { margin: 0; padding-left: 18px; max-width: none; }
.pc li { margin-bottom: .5em; font-size: 14.5px; }
.pc h3 { font-size: 12px; letter-spacing: .13em; text-transform: uppercase; font-family: var(--body); font-weight: 700; }
.pc .pros { border-left-color: var(--ok); background: var(--ok-wash); }
.pc .pros h3 { color: var(--ok); }
.pc .cons { border-left-color: var(--bad); background: var(--bad-wash); }
.pc .cons h3 { color: var(--bad); }

/* ------------------------------------------------------------------ tiers */
.cards { display: grid; gap: 16px; margin-top: 20px; }
.cards.c1 { grid-template-columns: minmax(0, 1fr); }
.cards.c2 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.cards.c3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.tier {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--r);
  padding: 20px;
  min-width: 0;
}
.tier.gap { border-top-color: var(--warn); }
.tname { font: 700 11px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.thead { font: 600 23px/1.2 var(--head); margin: 9px 0 6px; overflow-wrap: anywhere; }
.tdetail { font-size: 14px; color: var(--muted); line-height: 1.6; }
.tterms { font-size: 12.5px; color: var(--muted); margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }

/* ----------------------------------------------------------- game listing */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 20px; }
.game, .game-link {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 13px 15px;
  color: var(--fg);
  min-width: 0;
}
.game-link:hover, .game:hover { text-decoration: none; border-color: var(--accent); background: var(--panel2); }
.gname { display: block; font: 600 15px/1.3 var(--head); overflow-wrap: anywhere; }
.gprov { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.gnum { display: block; font-size: 12.5px; color: var(--accent); white-space: nowrap; font-variant-numeric: tabular-nums; margin-top: 5px; }

/* ------------------------------------------------------- figures / shots */
figure.shot, .shots figure, .shot-inline {
  margin: 26px auto;
  max-width: 780px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
figure.shot > div, .shots figure > div { background: var(--bg2); }
figure.shot img, .shots figure img, .shot-inline img { width: 100%; height: auto; display: block; }
figcaption {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
  padding: 11px 15px;
  border-top: 1px solid var(--line);
}
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; }
.shots figure { margin: 0; min-width: 0; }
.shots figure.void > div, figure.void > div {
  display: grid;
  place-items: center;
  min-height: 150px;
  color: var(--muted);
  font-size: 13.5px;
  text-align: center;
  padding: 20px;
}

/* -------------------------------------------------------------- logo strip */
/* payment marks: one optical size on a light plate, scrolls rather than wraps
   into a ragged block on narrow screens */
.logostrip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  max-width: 100%;
}
.logo-chip {
  display: grid;
  place-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 8px 12px;
  width: 92px;
  height: 42px;
  flex: 0 0 auto;
}
.logo-chip img {
  max-width: 100%;
  max-height: 24px;
  width: auto;
  height: auto;
  object-fit: contain;
}
/* inside a dossier row the strip is a single scrolling rail */
.logostrip.cardpay {
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  padding-bottom: 4px;
  margin-top: 2px;
}

/* -------------------------------------------------------------------- faq */
/* hairline-separated entries, no cards; the marker is a square box on the left */
details.faq {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  margin: 0;
  max-width: 92ch;
}
details.faq:first-of-type { border-top: 2px solid var(--rule); }
details.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 17px 12px 17px 40px;
  font: 600 17px/1.45 var(--head);
  position: relative;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary:hover { color: var(--accent); }
details.faq summary::after {
  content: "+";
  position: absolute;
  left: 0;
  top: 18px;
  width: 22px; height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line2);
  border-radius: 3px;
  color: var(--accent);
  font: 400 16px/1 var(--body);
}
details.faq[open] summary::after { content: "\2212"; border-color: var(--accent); }
details.faq[open] summary { color: var(--accent); }
details.faq .a { padding: 0 12px 8px 40px; }
details.faq .a p { font-size: 14.8px; color: var(--muted); }
details.faq .a p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------ byline/author */
.byline { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.byline span { font-size: 13.5px; color: var(--muted); }
.byline b { display: block; font: 600 16px/1.3 var(--head); }
.byline b a { color: var(--fg); }
.byline b a:hover { color: var(--accent); }
.medal {
  flex: 0 0 auto;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: var(--r);
  background: var(--panel2);
  border: 1px solid var(--line2);
  color: var(--accent);
  font: 600 16px/1 var(--head);
  overflow: hidden;
}
.medal.big { width: 96px; height: 96px; font-size: 30px; }
.medal.has-portrait { border-color: var(--accent); }
.medal img { width: 100%; height: 100%; object-fit: cover; }

.authorpage .authorhead { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 26px; }
.authorpage .authorhead h1 { margin-bottom: .2em; }
.authorpage .authorhead b { color: var(--accent); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-family: var(--body); }
.authorphoto {
  float: right;
  width: min(44%, 380px);
  margin: 4px 0 22px 28px;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
}
.authorphoto figcaption { border-top: 1px solid var(--line); }
.authorpage::after { content: ""; display: block; clear: both; }

/* the author's material list is navigation: a ruled index, not bullets */
.authorpage > ul {
  list-style: none;
  padding: 0;
  margin: 14px 0 28px;
  max-width: none;
  border-top: 2px solid var(--rule);
}
.authorpage > ul li { margin: 0; }
.authorpage > ul a {
  display: block;
  font: 500 14.5px/1.4 var(--body);
  color: var(--fg);
  padding: 11px 4px;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.authorpage > ul a:hover { color: var(--accent); background: var(--accent-wash); text-decoration: none; }

/* a beat-list is not an index: it keeps the chip row, never the ruled rail */
ul.pills, .authorpage > ul.pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0 0;
  padding: 0;
  max-width: none;
  border-top: 0;
}
ul.pills li {
  font-size: 12.5px;
  color: var(--muted);
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 6px 10px;
}

/* ----------------------------------------------------------------- footer */
footer.site {
  background: var(--bg2);
  border-top: 2px solid var(--rule);
  padding: 44px 0 30px;
  margin-top: 10px;
}
footer.site .cols {
  display: grid;
  grid-template-columns: 1.4fr repeat(auto-fit, minmax(150px, 1fr));
  gap: 28px;
}
footer.site .cols > * { min-width: 0; }
footer.site h4 { color: var(--fg); margin-bottom: 12px; }
footer.site ul { list-style: none; margin: 0; padding: 0; max-width: none; }
footer.site li { margin-bottom: 9px; }
footer.site a { color: var(--muted); font-size: 13.8px; overflow-wrap: anywhere; }
footer.site a:hover { color: var(--accent); }
footer.site .logo b { font-size: 18px; }
footer.site .srcline { margin-top: 14px; max-width: 36ch; }
.agebadge {
  display: inline-grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--bad);
  color: var(--bad);
  font: 700 12.5px/1 var(--body);
  margin-bottom: 12px;
}
footer.site .legal {
  border-top: 1px solid var(--line2);
  margin-top: 30px;
  padding-top: 18px;
  font-size: 12.5px;
  color: var(--muted);
}
footer.site .legal p { max-width: 105ch; margin-bottom: .7em; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1040px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero .grid, .pagehead .grid { grid-template-columns: 1fr; gap: 26px; }
  .search { max-width: 240px; }
}

@media (max-width: 880px) {
  .hb {
    display: grid;
    place-items: center;
    order: 4;
    margin-left: auto;
    width: 42px; height: 42px;
    border-radius: var(--r);
    border: 1px solid var(--line2);
    background: var(--panel);
    cursor: pointer;
    flex: 0 0 auto;
  }
  .hb span, .hb span::before, .hb span::after {
    content: "";
    display: block;
    width: 18px; height: 2px;
    background: var(--fg);
    border-radius: 1px;
    position: relative;
  }
  .hb span::before { position: absolute; top: -6px; }
  .hb span::after { position: absolute; top: 6px; }

  /* one short row while scrolling; the deck lives behind the hamburger */
  header.site .bar { row-gap: 10px; padding-bottom: 10px; }
  nav.main, header.site .search, header.site .headcta { display: none; }
  .nav-t:checked ~ nav.main,
  .nav-t:checked ~ .search,
  .nav-t:checked ~ .headcta { display: flex; }
  nav.main {
    order: 5;
    width: 100%;
    flex-direction: column;
    gap: 0;
    margin: 0;
    border-top: 1px solid var(--line);
    padding-top: 4px;
  }
  nav.main a {
    padding: 13px 6px;
    font-size: 15.5px;
    border-bottom: 1px solid var(--line);
    border-left: 3px solid transparent;
    white-space: normal;
  }
  nav.main a.akt { border-bottom-color: var(--line); border-left-color: var(--accent); background: var(--accent-wash); }
  header.site .search { order: 6; width: 100%; max-width: none; margin-left: 0; }
  .sres { width: 100%; }
  header.site .headcta { order: 7; width: 100%; margin-bottom: 6px; }
  header.site .headcta .btn { width: 100%; }
  .logo small { display: none; }
  html { scroll-padding-top: 76px; }
}

@media (max-width: 760px) {
  main > section { padding: 34px 0; }
  .hero, .pagehead { padding: 34px 0 30px; }
  .pc { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  footer.site .cols { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .btns .btn { flex: 1 1 auto; }
  .wrap { padding: 0 16px; }
  .authorphoto { float: none; width: 100%; margin: 0 0 22px; }
  ul.toc { grid-template-columns: 1fr; }
  .tablewrap table, .table-wrap table { min-width: 0; }
}

/* the dossier row folds into a column; nothing may exceed the viewport */
@media (max-width: 620px) {
  .brand { grid-template-columns: minmax(0, 1fr); padding: 18px 16px; }
  .brand > *, .brand > .bhead { grid-column: 1; }
  .bhead { grid-template-columns: minmax(0, 1fr); padding-right: 46px; row-gap: 10px; }
  .bhead > *:not(.brandlogo) { grid-column: 1; }
  .bhead .brandlogo { grid-column: 1; grid-row: auto; width: auto; max-width: 168px; min-height: 0; object-position: left center; }
  .brank { top: 14px; right: 14px; font-size: 22px; }
  .brand td.k { width: 42%; }
  .meter { max-width: none; }
}

@media (max-width: 460px) {
  .wrap { padding: 0 14px; }
  .tiles { grid-template-columns: 1fr; }
  .games { grid-template-columns: 1fr; }
  .cards.c2, .cards.c3 { grid-template-columns: 1fr; }
  footer.site .cols { grid-template-columns: 1fr; }
  .btns { gap: 8px; }
  .btns .btn { width: 100%; }
  .brand .btns .btn { width: 100%; }
  .signals { padding: 14px 16px; }
  details.faq summary { font-size: 16px; padding-left: 34px; }
  details.faq .a { padding-left: 34px; }
  h1 { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ------------------------------------------------------------------ print */
@media print {
  :root { --bg: #fff; --bg2: #fff; --panel: #fff; --panel2: #fff; }
  body { background: #fff; color: #000; font-size: 11pt; }
  header.site, footer.site, .search, .sres, .headcta, .hb, .nav-t, nav.main,
  .btns, .tiles, .logostrip, .adnote { display: none !important; }
  main > section { padding: 12pt 0; border: 0; }
  .wrap { max-width: none; padding: 0; }
  .brand, .panel, .tier { border: 1px solid #999; break-inside: avoid; }
  details.faq { border-bottom: 1px solid #999; }
  details.faq .a { display: block; }
  a { color: #000; text-decoration: underline; }
  table { font-size: 9.5pt; }
  .tablewrap, .table-wrap { overflow: visible; }
}
