/* Hallmark · shape: Long Document (swapped from draw Letter: a 3,000-word reference with tables) · genre: modern-minimal · theme: Wayfind (deal 2/3, seed nintendo-switch-prod-keys-19b5·295cc7e2·2026-11-18·r0) · job: read the setup guide · draw: 71c936
 * hero: Ledge · nav: floating pill · footer: colophon block · imagery: none · signature: the file board, prod.keys and firmware sourced from your own console, with the five platforms as cells · wayfind: night
 * axes: dark/mono/cool · posture: committed · contrast: pass · fold: pass · copy: verbatim · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R3 V4 · weakest: R, the client's copy is verbatim and long; carried it in rows, plates, tables and a sticky contents rail instead of cutting words */
/* Hallmark · waive 64 · mono on table heads and labels · Wayfind's material is Chivo Mono throughout, the board's face sets the guide */
@import url("./tokens.css");
@import url("./base.css");

/* ---------- WordPress resets: the blocks keep their markup, the theme sets the look */
.wp-site-blocks { display: flex; flex-direction: column; min-height: 100svh; }
.site-main { flex: 1; }
.wp-block-group, .wp-block-table, .wp-block-buttons { margin: 0; }
.site-main ul, .site-main ol { margin: 0; }
figure.wp-block-table { margin: 0; }
.wp-block-table table { width: 100%; border-collapse: collapse; }
.wp-block-table thead { border: 0; }
.wp-block-table th, .wp-block-table td { border: 0; }
.wp-block-site-title { margin: 0; font-size: var(--text-md); font-weight: 800; line-height: 1; }
.wp-block-site-title a { color: var(--color-ink); text-decoration: none; white-space: nowrap; }
.wp-block-site-title a:hover { text-decoration: underline; text-decoration-thickness: var(--rule-bar); }
.skip-link:focus { z-index: var(--z-toast); background: var(--color-paper); color: var(--color-ink); padding: var(--space-sm) var(--space-md); }

/* ---------- links and controls */
.site-main a:not(.wp-block-button__link) { color: var(--color-ink); text-decoration: underline; text-decoration-thickness: var(--rule-hair); text-underline-offset: 0.2em; transition: color var(--dur-micro) steps(1); }
.site-main a:not(.wp-block-button__link):hover { color: var(--color-focus); }

.wp-block-buttons { display: flex; flex-wrap: wrap; gap: var(--space-md); }
.wp-block-button .wp-block-button__link { display: inline-flex; max-width: 100%; align-items: center; min-height: 48px; padding: 0 var(--space-lg); border: var(--rule-bar) solid var(--color-ink); border-radius: 0; background: transparent; color: var(--color-ink); font: 800 var(--text-sm)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-micro) steps(1), color var(--dur-micro) steps(1), transform var(--dur-micro) var(--ease-out); }
.wp-block-button .wp-block-button__link:hover { background: var(--color-paper-3); }
.wp-block-button .wp-block-button__link:active { transform: translateY(1px); }
.wp-block-button .wp-block-button__link:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.wp-block-button .wp-block-button__link[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.wp-block-button.is-primary .wp-block-button__link { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.wp-block-button.is-primary .wp-block-button__link:hover { background: var(--color-focus); border-color: var(--color-focus); }

/* ---------- header: a floating pill */
/* the header template part's own wrapper is what sticks: the pill inside it has no room to */
.wp-site-blocks > header.wp-block-template-part { position: sticky; top: 0; z-index: var(--z-sticky-nav); }
/* header: a full-width rectangular bar, flush to the top, a rule under it */
.site-header { position: relative; width: 100%; margin: 0; padding: 0; border-bottom: var(--rule-bar) solid var(--color-ink-rule); background: var(--color-plate); }
.nav-pill { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); width: 100%; max-width: var(--container); min-height: 64px; margin-inline: auto; padding: 0 var(--gutter); }
.nav-main { font-size: var(--text-sm); font-weight: 500; margin-left: auto; }
/* header search: a square field at the end of the bar */
.header-search { flex: 0 1 15rem; min-width: 9rem; margin: 0; }
.header-search .wp-block-search__inside-wrapper { display: flex; align-items: center; min-height: 40px; padding: 0; border: var(--rule-bar) solid var(--color-ink-rule); border-radius: 0; background: var(--color-paper-2); color: var(--color-ink); transition: border-color var(--dur-micro) steps(1); }
.header-search .wp-block-search__inside-wrapper:hover { border-color: var(--color-muted); }
.header-search .wp-block-search__inside-wrapper:focus-within { border-color: var(--color-focus); outline: 2px solid var(--color-focus); outline-offset: 0; }
.header-search .wp-block-search__input { flex: 1; min-width: 0; height: 36px; margin: 0; padding: 0 var(--space-sm); border: 0; border-radius: 0; background: transparent; color: var(--color-ink); font: 500 var(--text-sm)/1.2 var(--font-body); }
.header-search .wp-block-search__input::placeholder { color: var(--color-muted); opacity: 1; }
.header-search .wp-block-search__input:focus-visible { outline: 0; }
.header-search .wp-block-search__button { display: grid; place-items: center; flex: none; width: 40px; height: 36px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--color-ink); cursor: pointer; transition: background-color var(--dur-micro) steps(1), color var(--dur-micro) steps(1); }
.header-search .wp-block-search__button:hover { background: var(--color-paper-3); color: var(--color-accent-2); }
.header-search .wp-block-search__button:active { transform: translateY(1px); }
.header-search .wp-block-search__button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
.header-search .wp-block-search__button svg { width: 20px; height: 20px; fill: currentColor; }
.nav-main .wp-block-navigation__container { gap: 0; }
.nav-main .wp-block-navigation-item__content { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-md); border-radius: 0; color: var(--color-ink); text-decoration: none; white-space: nowrap; transition: background-color var(--dur-micro) steps(1); }
.nav-main .wp-block-navigation-item__content:hover { background: var(--color-paper-3); }
.nav-main .wp-block-navigation-item__content:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 0; }
.nav-main .wp-block-navigation__responsive-container-open, .nav-main .wp-block-navigation__responsive-container-close { color: var(--color-ink); min-width: 44px; min-height: 44px; padding: var(--space-xs); }
.nav-main .wp-block-navigation__responsive-container-open:focus-visible, .nav-main .wp-block-navigation__responsive-container-close:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.site-header .nav-main:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open { background: var(--color-paper); color: var(--color-ink); padding: var(--space-xl) var(--gutter); }
.site-header .nav-main .is-menu-open .wp-block-navigation__responsive-container-content, .site-header .nav-main .is-menu-open .wp-block-navigation__container { align-items: flex-start; }
.site-header .nav-main .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: var(--text-xl); font-weight: 800; padding: var(--space-xs) 0; }

/* ---------- hero: Ledge, the head resting at the base beside the file board */
.hero { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: end; gap: var(--space-2xl); width: 100%; max-width: var(--container); min-height: calc(100svh - 84px); margin-inline: auto; padding: var(--space-2xl) var(--gutter) var(--space-3xl); }
.hero-text { display: grid; gap: var(--space-lg); justify-items: start; }
.hero h1 { max-width: 19ch; font-size: clamp(2.25rem, 2.4vw + 1.1rem, 3.75rem); line-height: 1; }
.hero .lead { color: var(--color-ink-2); }
.hero .wp-block-buttons { margin-top: var(--space-xs); }

.hero-board { align-self: center; display: grid; gap: var(--space-md); padding: var(--space-lg); border: var(--rule-bar) solid var(--color-ink); background: var(--color-plate); color: var(--color-ink); }
.board-label { font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }

/* the board: a departure-board table, figures in amber on the plate */
.board table { font-size: var(--text-sm); }
.board th { padding: 0 var(--space-sm) var(--space-sm) 0; border-bottom: var(--rule-bar) solid var(--color-ink); text-align: left; font-weight: 500; color: var(--color-muted); }
.board td { padding: var(--space-md) var(--space-sm) var(--space-md) 0; border-bottom: var(--rule-hair) solid var(--color-ink-rule); vertical-align: top; }
.board td:first-child { font-weight: 800; }
.board-files td:first-child { font-size: var(--text-lg); }
.board-files td:last-child, .board-compare tr:last-child td:not(:first-child) { color: var(--color-accent-2); font-weight: 800; }
.board-compare, .board-req { padding: var(--space-lg); border: var(--rule-bar) solid var(--color-ink); background: var(--color-plate); }
.board-compare tbody tr:last-child td, .board-req tbody tr:last-child td, .board-files tbody tr:last-child td { border-bottom: 0; }

/* cells: square choices joined edge to edge */
ul.cells { display: flex; flex-wrap: wrap; padding: 0; list-style: none; }
ul.cells li { margin: 0 calc(var(--rule-bar) * -1) calc(var(--rule-bar) * -1) 0; }
ul.cells a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-md); border: var(--rule-bar) solid var(--color-ink); font-size: var(--text-sm); font-weight: 500; text-decoration: none; white-space: nowrap; transition: background-color var(--dur-micro) steps(1), color var(--dur-micro) steps(1); }
.site-main ul.cells a { color: var(--color-ink); text-decoration: none; }
.site-main ul.cells a:hover { background: var(--color-ink); color: var(--color-paper); }
ul.cells a:focus-visible { position: relative; z-index: var(--z-raised); outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* ---------- the document: a contents rail beside one column */
.doc { display: grid; grid-template-columns: 15rem minmax(0, 50rem); justify-content: start; gap: var(--space-2xl); width: 100%; max-width: var(--container); margin-inline: auto; padding: var(--space-3xl) var(--gutter) 0; border-top: var(--rule-bar) solid var(--color-ink-rule); }
.rail { position: sticky; top: 98px; align-self: start; max-height: calc(100svh - 122px); overflow-y: auto; }
/* signed in: WordPress's admin bar (32px, 46px on small screens) sits over the page; keep the pill and the contents below it */
.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 32px; }
.admin-bar .rail { top: calc(98px + 32px); max-height: calc(100svh - 154px); }
@media (max-width: 48.875rem) { .admin-bar .wp-site-blocks > header.wp-block-template-part { top: 46px; } }
/* at 600px and below WordPress lets the admin bar scroll away, so the header goes back to the very top */
@media (max-width: 37.5rem) { .admin-bar .wp-site-blocks > header.wp-block-template-part { top: 0; } }
html:has(body.admin-bar) { scroll-padding-top: calc(var(--space-3xl) + 32px); }
.rail-label { margin-bottom: var(--space-sm); font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }
ul.toc { padding: 0; list-style: none; border-left: var(--rule-bar) solid var(--color-rule); }
.site-main ul.toc a { display: block; margin-left: calc(var(--rule-bar) * -1); padding: var(--space-xs) 0 var(--space-xs) var(--space-md); border-left: var(--rule-bar) solid transparent; font-size: var(--text-sm); color: var(--color-muted); text-decoration: none; }
.site-main ul.toc a:hover { color: var(--color-ink); }
.site-main ul.toc a[aria-current="true"] { border-left-color: var(--color-accent); color: var(--color-ink); font-weight: 500; }
/* H3 entries: a step in from their H2, a size down; the H2s carry the weight */
.wp-block-s2pk-toc { margin: 0; }
.site-main ul.toc > li > a { color: var(--color-ink-2); font-weight: 500; }
ul.toc-sub { margin: 0 0 var(--space-xs); padding: 0; list-style: none; }
.site-main ul.toc-sub a { padding: var(--space-2xs) 0 var(--space-2xs) calc(var(--space-md) * 2); font-size: var(--text-xs); font-weight: 400; color: var(--color-muted); }
.site-main ul.toc a[aria-current="true"] { color: var(--color-ink); }
.toc-empty { font-size: var(--text-sm); color: var(--color-muted); }

.prose { min-width: 0; font-size: 1.125rem; }
.prose > section > *, .prose .platform-text, .prose .platform-after, .prose .row-body { max-width: none; }
.prose p + p, .prose p + .wp-block-list, .prose .wp-block-list + p { margin-top: var(--space-md); }
.prose .wp-block-heading + p, .prose .wp-block-heading + .wp-block-list { margin-top: var(--space-md); }
.prose p { max-width: none; color: var(--color-ink-2); }
.prose p strong, .prose .lead { color: var(--color-ink); }
.prose .lead { max-width: none; }
.prose h2 { max-width: 22ch; margin-bottom: var(--space-xl); }
.prose h3 { max-width: none; margin: var(--space-2xl) 0 var(--space-md); }
.doc-section + .doc-section { margin-top: var(--section-gap); }
.doc-section:nth-of-type(4n) { padding-top: var(--space-2xl); border-top: var(--rule-bar) solid var(--color-ink); }

.prose .wp-block-list:not(.cells):not(.toc):not(.checklist) { max-width: none; padding-left: var(--space-lg); color: var(--color-ink-2); }
.prose .wp-block-list li + li { margin-top: var(--space-xs); }
.prose ol.numbered li::marker { font-weight: 800; color: var(--color-accent-2); }

.notice, .plate-note { max-width: none; margin-top: var(--space-xl); padding: var(--space-lg); border: var(--rule-bar) solid var(--color-ink); background: var(--color-plate); }
.prose p.notice, .prose p.plate-note { margin-top: var(--space-xl); color: var(--color-ink); }
.prose .wp-block-table { margin-top: var(--space-xl); }
.prose .wp-block-table + p { margin-top: var(--space-xl); }
.prose ul.cells { margin-top: var(--space-xl); }

/* platforms: the text beside its checklist plate */
.platform { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--space-xl); row-gap: var(--space-lg); margin-top: var(--space-2xl); padding-top: var(--space-xl); border-top: var(--rule-hair) solid var(--color-rule); }
.platform h3 { margin-top: 0; }
.platform-after { grid-column: 1; }
.platform-after p + p { margin-top: var(--space-md); }
ul.checklist { grid-row: span 2; align-self: start; padding: var(--space-md) var(--space-lg); list-style: none; border: var(--rule-bar) solid var(--color-ink); background: var(--color-plate); font-size: var(--text-sm); }
ul.checklist li { padding: var(--space-sm) 0; border-bottom: var(--rule-hair) solid var(--color-ink-rule); }
.prose ul.checklist li + li { margin-top: 0; }
ul.checklist li:last-child { border-bottom: 0; }

/* emulators and problems: status rows, the name at the left edge */
.row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-lg) var(--space-2xl); padding-block: var(--space-xl); border-top: var(--rule-hair) solid var(--color-rule); }
.prose .row { margin-top: 0; }
.prose h2 + .row, .prose ul.cells + .row, .prose .plate-note + .row { margin-top: var(--space-xl); border-top: var(--rule-bar) solid var(--color-ink); }
.prose .row h3 { margin: 0; }
.row-body p:first-child { margin-top: 0; }
.prose p.related { font-size: var(--text-sm); color: var(--color-muted); }

/* setup: six plates joined like a corridor sign */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: var(--space-xl); border: var(--rule-bar) solid var(--color-ink); }
.step { padding: var(--space-lg); border-right: var(--rule-bar) solid var(--color-ink); border-bottom: var(--rule-bar) solid var(--color-ink); }
.step:nth-child(3n) { border-right: 0; }
.step:nth-last-child(-n + 3) { border-bottom: 0; }
.step:first-child { background: var(--color-plate); }
.prose .step h3 { margin: 0 0 var(--space-md); font-size: var(--text-lg); line-height: 1.25; }
.prose .step p { font-size: var(--text-sm); }

/* emulator cards (Prod keys and Firmware): name, logo, then whatever the editor adds */
.emu-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-md); margin-top: var(--space-lg); }
.emu-card { display: grid; align-content: start; gap: var(--space-sm); min-width: 0; padding: var(--space-md); border: var(--rule-bar) solid var(--color-ink-rule); background: var(--color-plate); color: var(--color-ink); }
.prose .emu-name { margin: 0; font-size: var(--text-lg); font-weight: 800; line-height: 1.2; overflow-wrap: break-word; }
.emu-card .emu-logo { margin: 0; }
.emu-card .emu-logo img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; background: var(--color-paper); color: var(--color-ink); }
.emu-card-body { display: grid; gap: var(--space-xs); min-width: 0; }
.prose .emu-card-body p { font-size: var(--text-sm); }
.prose .emu-card-body p + p { margin-top: 0; }
.emu-card-body p:empty:not([contenteditable]) { display: none; }
/* buttons added in a card: full card width, long labels wrap instead of running out */
.emu-card .wp-block-buttons { width: 100%; margin-top: var(--space-xs); }
.emu-card .wp-block-button { width: 100%; min-width: 0; }
.emu-card .wp-block-button .wp-block-button__link { width: 100%; justify-content: center; padding: var(--space-sm) var(--space-md); line-height: 1.3; text-align: center; white-space: normal; overflow-wrap: break-word; text-wrap: balance; }

/* FAQ: details blocks, one open at a time is the reader's choice */
.faq-list { border-top: var(--rule-bar) solid var(--color-ink); }
.wp-block-details { border-bottom: var(--rule-hair) solid var(--color-rule); }
.wp-block-details summary { display: flex; justify-content: space-between; gap: var(--space-lg); padding: var(--space-lg) 0; font-size: var(--text-lg); font-weight: 500; line-height: 1.35; list-style: none; cursor: pointer; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; flex: none; font-weight: 800; color: var(--color-accent-2); }
.wp-block-details[open] summary::after { content: "\2212"; }
.wp-block-details summary:hover { color: var(--color-focus); }
.wp-block-details summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.wp-block-details > :not(summary) { margin: 0; }
.wp-block-details > :not(summary) + :not(summary) { margin-top: var(--space-sm); }
.wp-block-details > :last-child:not(summary) { margin-bottom: var(--space-lg); }
/* the FAQ pattern inside a post or page */
.site-main--doc .wp-block-post-content > .faq-section { margin-top: var(--section-gap-s); }
.site-main--doc .wp-block-post-content > .faq-section:first-child { margin-top: 0; }

.prose p.statement { max-width: 45ch; margin-top: var(--space-2xl); padding-top: var(--space-lg); border-top: var(--rule-bar) solid var(--color-ink); font-size: var(--text-2xl); font-weight: 800; line-height: 1.2; color: var(--color-ink); }

/* ---------- footer: a colophon block */
.site-footer { margin-top: var(--section-gap); border-top: var(--rule-bar) solid var(--color-ink); background: var(--color-plate); color: var(--color-ink); }
.colophon { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: var(--space-lg) var(--space-2xl); width: 100%; max-width: var(--container); margin-inline: auto; padding: var(--space-2xl) var(--gutter); }
.colophon-text { max-width: 65ch; color: var(--color-ink-2); }
.nav-footer { grid-column: 2; font-size: var(--text-sm); }
.nav-footer .wp-block-navigation__container { gap: var(--space-xs) var(--space-lg); }
.nav-footer .wp-block-navigation-item__content { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-ink); text-decoration: underline; text-underline-offset: 0.2em; white-space: nowrap; }
.nav-footer .wp-block-navigation-item__content:hover { color: var(--color-focus); }
.nav-footer .wp-block-navigation-item__content:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.colophon-legal { grid-column: 2; display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-xl); font-size: var(--text-sm); color: var(--color-muted); }
.colophon-legal .updated::before { content: "Updated "; }
.colophon-legal .wp-block-post-date { margin: 0; }

/* ---------- the page's end: rating, then comments (parts/feedback.html) */
.page-end { width: 100%; max-width: var(--container); margin: var(--section-gap) auto 0; padding-inline: var(--gutter); }
.page-end-inner { display: grid; gap: var(--section-gap-s); max-width: 50rem; }
@media (min-width: 60.01rem) { :is(.site-main--front, .site-main--doc) .page-end-inner { margin-left: calc(15rem + var(--space-2xl)); } }

/* rating: a plate with the average in amber and five stars to pick */
.rating { display: grid; gap: var(--space-lg); padding: var(--space-xl); border: var(--rule-bar) solid var(--color-ink); background: var(--color-plate); color: var(--color-ink); }
.rating-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-sm) var(--space-xl); }
.rating h2 { font-size: var(--text-2xl); font-weight: 800; }
.rating-score { color: var(--color-muted); font-size: var(--text-sm); }
.rating-avg { margin-right: var(--space-2xs); font-size: var(--text-2xl); font-weight: 800; color: var(--color-accent-2); }
.rating-form { display: grid; gap: var(--space-md); justify-items: start; }
.rating fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.rating legend { padding: 0; margin-bottom: var(--space-sm); color: var(--color-ink-2); }
.stars-wrap { --star: 48px; --glyph: 32px; --gap: var(--space-2xs); position: relative; display: inline-block; }
.stars { display: inline-flex; flex-direction: row-reverse; gap: var(--gap); }
.stars label { display: grid; place-items: center; width: var(--star); height: var(--star); cursor: pointer; color: var(--color-ink-rule); transition: color var(--dur-micro) steps(1), transform var(--dur-micro) var(--ease-out); }
.stars svg { fill: currentColor; }
.stars label:hover, .stars label:hover ~ label, .stars input:checked ~ label { color: var(--color-accent-2); }
.stars:hover input:checked ~ label:not(:hover):not(:hover ~ label) { color: var(--color-ink-rule); }
.stars label:active { transform: scale(0.92); }
.stars input:focus-visible + label { outline: 2px solid var(--color-focus); outline-offset: 0; }
/* the average, in amber: whole stars plus the part of the next; it steps aside while a reader picks */
.stars-avg { position: absolute; top: 0; left: 0; display: flex; gap: var(--gap); width: calc(var(--full, 0) * (var(--star) + var(--gap)) + (var(--star) - var(--glyph)) / 2 + var(--frac, 0) * var(--glyph)); height: var(--star); overflow: hidden; color: var(--color-accent-2); pointer-events: none; transition: opacity var(--dur-micro) var(--ease-out); }
.stars-avg span { display: grid; flex: none; place-items: center; width: var(--star); height: var(--star); }
.stars-avg svg { fill: currentColor; }
.stars-wrap:hover .stars-avg, .stars-wrap:has(input:focus-visible) .stars-avg, .stars:has(input:checked) + .stars-avg { opacity: 0; }
.rating-submit { display: inline-flex; align-items: center; min-height: 48px; padding: 0 var(--space-lg); border: var(--rule-bar) solid var(--color-ink); border-radius: 0; background: transparent; color: var(--color-ink); font: 800 var(--text-sm)/1 var(--font-body); cursor: pointer; transition: background-color var(--dur-micro) steps(1), color var(--dur-micro) steps(1), transform var(--dur-micro) var(--ease-out); }
.rating-submit:hover { background: var(--color-paper-3); }
.rating-submit:active { transform: translateY(1px); }
.rating-submit:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.rating-submit[aria-disabled="true"] { opacity: 0.55; cursor: progress; transform: none; }
.rating-status { min-height: 1.55em; font-size: var(--text-sm); color: var(--color-ink-2); }

/* the compact bar above the content: stars, score and a small button on one line */
.rating-top { width: 100%; max-width: var(--container); margin: var(--space-md) auto 0; padding-inline: var(--gutter); }
.plain .rating-top { max-width: none; padding-inline: 0; }
.rating--compact { display: block; padding: 0; border: 0; background: none; }
.rating--compact .rating-form { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2xs) var(--space-md); }
.rating--compact .stars-wrap { --star: 44px; --glyph: 24px; --gap: 0px; }
.rating--compact .rating-avg { font-size: var(--text-md); }
.rating--compact .rating-submit { min-height: 44px; padding: 0 var(--space-md); border-width: var(--rule-hair); border-color: var(--color-ink-rule); }
.rating--compact .rating-status { min-height: 0; }
.rating--compact .rating-status:empty { display: none; }
.site-main--front .hero { min-height: calc(100svh - 84px - 60px); }

/* comments: rows with the author at the left, the form below on the page's own paper */
.comments { display: grid; gap: var(--space-xl); }
.comments .wp-block-comments-title { font-size: var(--text-2xl); font-weight: 800; }
.comments .wp-block-comment-template { margin: 0; padding: 0; list-style: none; border-top: var(--rule-bar) solid var(--color-ink); }
.comments .wp-block-comment-template ol { margin: 0; padding: 0 0 0 var(--space-xl); list-style: none; border-left: var(--rule-bar) solid var(--color-rule); }
.comment-card { display: grid; gap: var(--space-sm); padding-block: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); }
.comment-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-xs) var(--space-md); }
.comment-meta .wp-block-comment-author-name { font-weight: 800; }
.comment-meta .wp-block-comment-date { font-size: var(--text-sm); color: var(--color-muted); }
.comments .wp-block-comment-content p { max-width: none; color: var(--color-ink-2); }
.comments .wp-block-comment-content p + p { margin-top: var(--space-sm); }
.comment-actions { display: flex; gap: var(--space-lg); font-size: var(--text-sm); }
.comments a { color: var(--color-ink); text-decoration: underline; text-decoration-thickness: var(--rule-hair); text-underline-offset: 0.2em; }
.comments a:hover { color: var(--color-focus); }
.comments .wp-block-comments-pagination { gap: var(--space-md); font-size: var(--text-sm); }
.comments .comment-reply-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-md); margin-bottom: var(--space-md); font-size: var(--text-2xl); font-weight: 800; }
.comments .comment-reply-title small { font-size: var(--text-sm); font-weight: 500; }
.comments .comment-form { display: grid; gap: var(--space-md); }
.comments .comment-form > p { margin: 0; max-width: none; }
.comments .comment-notes, .comments .logged-in-as { font-size: var(--text-sm); color: var(--color-muted); }
.comments .comment-form label { display: block; margin-bottom: var(--space-xs); font-size: var(--text-sm); font-weight: 500; color: var(--color-ink-2); }
.comments .comment-form input[type="text"], .comments .comment-form input[type="email"], .comments .comment-form input[type="url"], .comments .comment-form textarea { width: 100%; min-height: 48px; padding: var(--space-sm) var(--space-md); border: var(--rule-bar) solid var(--color-ink-rule); border-radius: 0; background: var(--color-paper-2); color: var(--color-ink); transition: border-color var(--dur-micro) steps(1); }
.comments .comment-form textarea { min-height: 10rem; resize: vertical; }
.comments .comment-form input:hover, .comments .comment-form textarea:hover { border-color: var(--color-muted); }
.comments .comment-form input:focus-visible, .comments .comment-form textarea:focus-visible { border-color: var(--color-focus); outline: 2px solid var(--color-focus); outline-offset: 0; }
.comments .comment-form input:user-invalid, .comments .comment-form textarea:user-invalid { border-color: var(--color-error); }
.comments .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: var(--space-sm); font-size: var(--text-sm); }
.comments .comment-form-cookies-consent label { margin: 0; font-weight: 400; }
.comments .comment-form-cookies-consent input { width: 20px; height: 20px; margin: var(--space-3xs) 0 0; accent-color: var(--color-accent); }
.comments .form-submit { margin-top: var(--space-xs); }
.comments .form-submit .wp-block-button__link { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.comments .form-submit .wp-block-button__link:hover { background: var(--color-focus); border-color: var(--color-focus); }
.comments .comment-awaiting-moderation { font-size: var(--text-sm); color: var(--color-accent-2); }

/* ---------- pages and posts: the homepage's contents rail beside one column; the column opens with the title */
.site-main--doc .doc { padding-top: var(--space-2xl); border-top: 0; }
.entry-head { display: grid; gap: var(--space-sm); justify-items: start; margin-bottom: var(--space-2xl); padding-bottom: var(--space-lg); border-bottom: var(--rule-bar) solid var(--color-ink-rule); }
.entry-head .wp-block-post-title { max-width: none; margin: 0; font-size: var(--text-display-s); line-height: 1.05; text-wrap: balance; }
.entry-head .entry-date { margin: 0; font-size: var(--text-sm); color: var(--color-muted); }
.entry-head .rating-top { max-width: none; margin: var(--space-xs) 0 0; padding-inline: 0; }
.site-main--doc .rail { padding-top: var(--space-xs); }
/* ordinary post content in the column: even rhythm, bigger breaks before headings */
.site-main--doc .wp-block-post-content > * + * { margin-top: var(--space-md); }
.site-main--doc .wp-block-post-content > h2 { margin-top: var(--section-gap-s); }
.site-main--doc .wp-block-post-content > h3 { margin-top: var(--space-2xl); }
.site-main--doc .wp-block-post-content > :is(h2, h3) + * { margin-top: var(--space-md); }
.site-main--doc .wp-block-post-content > :is(figure, .wp-block-image, .wp-block-table, .wp-block-buttons, .wp-block-group) { margin-top: var(--space-xl); }
.site-main--doc .wp-block-post-content > :first-child { margin-top: 0; }
.site-main--doc .wp-block-post-content img { max-width: 100%; height: auto; }
/* a page without H2 or H3 headings has no contents: the column keeps its place */
.rail:not(:has(.wp-block-s2pk-toc)) { visibility: hidden; }

/* ---------- search results: one column, the column the articles use */
.search-page { width: 100%; max-width: calc(50rem + 2 * var(--gutter)); margin-inline: auto; padding: var(--space-3xl) var(--gutter) 0; }
.search-head { display: grid; gap: var(--space-lg); padding-bottom: var(--space-xl); border-bottom: var(--rule-bar) solid var(--color-ink-rule); }
.search-head .wp-block-query-title { margin: 0; font-size: var(--text-display-s); line-height: 1.05; }
.search-page .search-again { flex: none; width: 100%; max-width: 32rem; }
.search-results .wp-block-post-template { margin: 0; padding: 0; list-style: none; }
.search-results .result { display: grid; gap: var(--space-sm); padding-block: var(--space-xl); border-bottom: var(--rule-hair) solid var(--color-rule); }
.search-results .wp-block-post-title { margin: 0; font-size: var(--text-title); line-height: 1.2; }
.search-results .wp-block-post-title a { color: var(--color-ink); text-decoration: none; }
.search-results .wp-block-post-title a:hover { color: var(--color-focus); text-decoration: underline; }
.search-results .wp-block-post-title a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.search-results .wp-block-post-excerpt { margin: 0; color: var(--color-ink-2); }
.search-results .wp-block-post-excerpt__excerpt { margin: 0; max-width: none; }
.search-results .wp-block-post-excerpt__more-link { color: var(--color-ink); }
.search-results .wp-block-query-pagination { margin-top: var(--space-xl); gap: var(--space-md); font-size: var(--text-sm); }
.search-results .wp-block-query-pagination a { color: var(--color-ink); }
.search-results .no-results { margin-top: var(--space-xl); color: var(--color-ink-2); }

/* ---------- ad slots: a responsive ad unit takes the column's width, never more; fixed-size
   units wider than the column are scaled down to fit by assets/ad-fit.js */
ins.adsbygoogle { display: block; max-width: 100%; }
.wp-block-html { max-width: 100%; }
.wp-block-html:has(iframe, ins), .wp-block-shortcode:has(iframe, ins) { text-align: center; }

/* ---------- plain templates (index, single, 404) */
.plain { width: 100%; max-width: var(--container); margin-inline: auto; padding: var(--section-gap-s) var(--gutter); }
.plain > * + * { margin-top: var(--space-lg); }

/* ---------- narrow screens */
@media (max-width: 60rem) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); min-height: 0; padding-top: var(--space-xl); padding-bottom: var(--space-2xl); }
  .prose { font-size: var(--text-md); }
  .doc { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); padding-top: var(--space-2xl); }
  .rail { position: static; max-height: none; }
  .rail:not(:has(.wp-block-s2pk-toc)) { display: none; }
  .site-main--doc .doc { display: flex; flex-direction: column; }
  .site-main--doc .prose { display: contents; }
  .site-main--doc .entry-head { order: -1; margin-bottom: 0; }
  ul.toc { columns: 2; column-gap: var(--space-lg); }
  .platform, .row { grid-template-columns: minmax(0, 1fr); }
  ul.checklist { grid-row: auto; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .emu-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step, .step:nth-child(3n) { border-right: 0; border-bottom: var(--rule-bar) solid var(--color-ink); }
  .step:last-child { border-bottom: 0; }
  .colophon { grid-template-columns: minmax(0, 1fr); }
  .nav-footer, .colophon-legal { grid-column: 1; }
}
@media (max-width: 40rem) {
  .nav-pill { flex-wrap: wrap; row-gap: 0; min-height: 56px; padding-bottom: var(--space-sm); }
  .header-search { order: 3; flex: 1 1 100%; }
  html { scroll-padding-top: 150px; }
  ul.toc { columns: 1; }
  .board-compare, .board-req, .hero-board { padding: var(--space-md); }
  .board table { font-size: var(--text-xs); }
  .emu-cards { gap: var(--space-sm); }
  .emu-card { padding: var(--space-sm); }
  .rating:not(.rating--compact) { padding: var(--space-lg) var(--space-md); }
  .rating--compact .rating-form { column-gap: var(--space-sm); }
  .stars-wrap { --star: 44px; }
  .comments .wp-block-comment-template ol { padding-left: var(--space-md); }
}
