.og {
    --ink: #161920;
    --paper: #f7f5f0;
    --wine: #8b1e24;
    --gold: #b89758;
    --line: #d8d4cb;
    --serif: Georgia, "Times New Roman", serif;
    --sans: system-ui, sans-serif;
    background: var(--paper);
    color: var(--ink);
    font: 1rem/1.55 var(--sans);
}
.og [hidden] { display: none !important; }
.og a { text-underline-offset: .19em; }
.og :is(a, button, summary):focus-visible { outline: 3px solid #b89758; outline-offset: 3px; }
.og-hero { background: var(--ink); color: #faf8f3; border-bottom: 2px solid var(--gold); }
.og-spread, .og-prelude, .og-protocol, .og-document, .og-end { width: min(1280px, calc(100% - 72px)); margin-inline: auto; }
.og-spread, .og-document { display: grid; grid-template-columns: minmax(0,3fr) minmax(0,2fr); }
.og-spread { gap: clamp(2rem,4.3vw,4.4rem); padding-block: clamp(2rem,4.4vw,4.5rem); align-items: center; }
.og .og-kicker { margin: 0 0 1rem; color: #d6b678; font: 650 .69rem/1.5 var(--sans); letter-spacing: .12em; }
.og .og-heading h1 { max-width: 23ch; margin: 0; font: 500 clamp(2.45rem,3.65vw,3.75rem)/1.06 var(--serif); color: #fff; letter-spacing: -.034em; text-wrap: balance; }
.og-heading h1 em { color: #e4cea4; font-weight: normal; }
.og .og-lead { margin: 1.25rem 0 .72rem; font: 400 clamp(.98rem,1.14vw,1.12rem)/1.55 var(--serif); color: #f0eee9; }
.og .og-attribution { font-size: .77rem; line-height: 1.5; color: #c8c7c4; }
.og-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem .75rem; margin-top: 1.35rem; }
.og a.og-primary, .og a.og-secondary { display: inline-block; padding: .67rem .92rem; font: 650 .8rem/1.3 var(--sans); text-decoration: none; border: 1px solid transparent; border-radius: 3px; }
.og a.og-primary { color: white; background: var(--wine); border-color: #a84448; }
.og a.og-secondary { color: #faeed6; border-color: #a9936b; background: transparent; }
.og a.og-primary:hover { background: #722028; }
.og a.og-secondary:hover { background: #323037; }
.og a.og-press-link { font-size: .77rem; color: #e3d2b2; text-decoration: underline; }
/* The original page masthead with its commissioned mailroom illustration. */
.og-mast { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); background: #161920; border-bottom: 1px solid var(--gold); }
.og-mast .og-heading { align-self: center; padding: clamp(1.5rem,4vw,4rem) max(1.5rem,calc((100vw - 1280px)/2)); padding-right: clamp(1.3rem,3vw,3rem); }
.og-mast .og-heading h1 { max-width: 18ch; font-size: clamp(2.6rem,3.9vw,4rem); }
.og-mast h1 em { display: block; }
.og-mast .og-subheading {
    margin: 1rem 0 0;
    max-width: 46ch;
    color: #f7f5f0;
    font: 500 clamp(1.13rem, 1.65vw, 1.52rem)/1.36 var(--serif);
    text-wrap: balance;
}
.og-banner { position: relative; margin: 0; min-height: clamp(190px,19vw,285px); background: #161920; }
.og-banner picture, .og-banner img { display: block; width: 100%; height: 100%; }
.og-banner picture { position: absolute; inset: 0; }
.og-banner img { object-fit: cover; object-position: 55% 48%; }
.og-banner figcaption { position: absolute; right: .7rem; bottom: .5rem; padding: .1rem .4rem; background: #161920dc; color: #f9f5ec; font: .67rem/1.5 var(--sans); }
.og .og-spread { padding-block: clamp(1.3rem,2.4vw,2.5rem); }
.og-copy .og-lead { margin-top: 0; }
.og .og-copy .og-lead a { color: #e3d2b2; font: inherit; text-decoration: underline; }
.og-term-button { display: inline; border: 0; border-bottom: 1px dotted currentColor; background: transparent; color: inherit; padding: 0; font: inherit; cursor: help; }
.og-meaning { position: fixed; margin: 0; box-sizing: border-box; width: min(28rem,calc(100% - 1rem)); padding: 1.3rem; background: var(--paper); color: var(--ink); border: 1px solid var(--gold); }
@supports (position-area: bottom) {
    .og-meaning:not(.og-at-term) { inset: auto; position-area: bottom; position-try-fallbacks: flip-block, flip-inline; }
}
.og .og-meaning.og-at-term, dialog.sv-explanation.og-at-term {
    position: fixed; inset: auto; margin: 0; transform: none;
    box-sizing: border-box; width: min(28rem, var(--og-tip-width, calc(100% - 1rem)));
    max-height: var(--og-tip-height, 85dvh); overflow: auto;
    top: var(--og-tip-y); left: var(--og-tip-x);
}
.og-meaning a { color: var(--wine); }
.og-meaning button { padding: .25rem .5rem; }
@media (max-width: 700px) {
    .og-mast { grid-template-columns: minmax(0,1fr); }
    .og-mast .og-heading { padding: 1.4rem 1rem; }
    .og-banner { min-height: 0; aspect-ratio: 7/3; }
}
.og-tableau { border-top: 2px solid var(--gold); border-bottom: 1px solid #68645b; padding: .25rem 0 1.1rem; align-self: center; }
.og-measure { padding: 1rem 0; border-bottom: 1px solid #514f49; }
.og-measure h2 { margin: 0; color: #fcfaf5; font: 500 clamp(1.23rem,1.62vw,1.64rem)/1.2 var(--serif); letter-spacing: -.018em; }
.og-measure p { color: #d3d3d4; margin: .45rem 0 0; font-size: .85rem; line-height: 1.5; }
.og-barcodes { display: grid; grid-template-columns: repeat(2, max-content); gap: .16rem 1.4rem; list-style: none; padding: 0; margin: .5rem 0 0; color: #e4d5bb; font: .77rem/1.45 ui-monospace, monospace; }
.og-counts { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1rem; padding-top: 1rem; }
.og-count span { display: flex; align-items: center; gap: .5rem; }
.og-count span b { color: #fff; font: 500 2rem/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.og-count small { color: #dddcd9; font-size: .74rem; }
.og-count small b { color: inherit; font: inherit; font-weight: 650; }
.og .is-red { --signal: #8b1e24; }
.og .is-orange { --signal: #d97706; }
.og .is-green { --signal: #15803d; }
.og .is-inactive { --signal: #777e85; }
.og .og-count.is-red { --signal: #dc7478; }
.og-count i { flex: none; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--signal); }
.og-protocol { padding: 1.45rem 0 2.4rem; }
.og-controls { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem 1rem; padding: 0 0 1rem; border-bottom: 1px solid var(--line); }
.og-controls button { min-height: 36px; padding: .26rem .15rem; background: transparent; color: #535760; font: 570 .82rem/1.4 var(--sans); border: 0; border-bottom: 2px solid transparent; cursor: pointer; }
.og-controls button[aria-pressed="true"] { color: var(--wine); border-bottom-color: var(--wine); }
.og-controls button:hover { color: var(--wine); }
.og-level { position: relative; isolation: isolate; scroll-margin-top: 6rem; padding: 1rem 0 1.35rem; }
.og-level > h2 { position: relative; width: fit-content; max-width: 45%; margin: 0 0 1rem; padding-right: .65rem; background: var(--paper); color: #35373c; font: 550 1rem/1.25 var(--serif); }
.og-level h2 small { display: block; margin-bottom: .15rem; font: 680 .6rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #755d32; }
.og-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: -1; }
.og-lines path { stroke: var(--wine); fill: none; stroke-width: 1px; }
.og-level:is([data-level="7"],[data-level="6"],[data-level="5"]) path { stroke: #9ca3af; stroke-dasharray: 3 4; }
.og-grid { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }
.og-grid + .og-grid { margin-top: 16px; }
.og-card { width: 248px; flex: 0 0 248px; min-width: 0; background: white; border: 1px solid #c6c5c1; border-radius: 3px; color: var(--ink); }
.og-card.is-inactive { border-color: #d1d5db; opacity: .68; }
.og-card:hover, .og-card:focus-within, .og-card[open] { opacity: 1; border-color: var(--ink); }
.og-card summary { display: flex; flex-direction: column; justify-content: center; gap: .19rem; min-height: 112px; padding: .75rem .88rem; list-style: none; cursor: pointer; }
.og-card summary::-webkit-details-marker { display: none; }
.og-meta { display: flex; align-items: center; gap: .42rem; font: 650 10px/1.5 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.og-meta [data-clock] { margin-left: auto; color: #4b515b; letter-spacing: 0; font: 550 10px/1.5 var(--sans); text-transform: none; font-variant-numeric: tabular-nums; }
.og-card summary strong, .og-role, .og-tag { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.og-card summary strong { font: 650 15px/1.4 var(--sans); }
.og-role { color: #464c55; font: 450 12.5px/1.45 var(--sans); }
.og-tag { align-self: flex-start; max-width: 100%; color: #713137; font: 600 11px/1.45 var(--sans); }
/* Three fixed lens positions keep the signal readable even without colour. */
.og-card summary { position: relative; padding-inline-start: 3.25rem; }
.og-card summary strong { white-space: normal; overflow-wrap: anywhere; }
.og-meta { flex-wrap: wrap; gap: .12rem .4rem; }
.og-meta [data-clock] { min-width: 0; overflow-wrap: anywhere; }

.og-card .og-meta > i {
    position: absolute;
    inset-inline-start: .85rem;
    top: 50%;
    transform: translateY(-50%);
    box-sizing: border-box;
    width: 24px;
    height: 56px;
    border: 1px solid #171a1e;
    border-radius: 8px;
    background: linear-gradient(105deg, #555b63, #282c32 29%, #1b1e22 70%, #3b4047);
    box-shadow: inset 0 1px 1px #ffffff59, inset 0 -1px 1px #0009, 0 1px 3px #11182738;
    pointer-events: none;
}
.og-card .og-meta > i::before {
    content: "";
    position: absolute;
    inset: 3px 3px auto;
    height: 48px;
    background: radial-gradient(circle at center, #4f545a 0, #3e4348 4px, #32363b 5.5px, #121519 6.3px, #60656c 7.2px, transparent 7.9px) center top / 16px 16px repeat-y;
}
.og-card[data-color="red"] {
    --lens-top: 4px; --lens-core: #fff0db; --lens-face: #ff554a; --lens-rim: #d92232; --lens-glow: #ff3b3b;
}
.og-card[data-color="orange"] {
    --lens-top: 20px; --lens-core: #fffbd3; --lens-face: #ffbc32; --lens-rim: #ed8100; --lens-glow: #ffa311;
}
.og-card[data-color="green"] {
    --lens-top: 36px; --lens-core: #e5ffdf; --lens-face: #54ee91; --lens-rim: #00a657; --lens-glow: #22df78;
}
.og-card:is([data-color="red"], [data-color="orange"], [data-color="green"]) .og-meta > i::after {
    content: "";
    position: absolute;
    left: 4px;
    top: var(--lens-top);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 32%, var(--lens-core) 0 8%, var(--lens-face) 38% 59%, var(--lens-rim) 90%);
    box-shadow: inset 0 0 0 1px #ffffff50, 0 0 3px 1px var(--lens-glow), 0 0 9px 2px var(--lens-glow);
}
.og-card[data-color="grey"] .og-meta > i { filter: grayscale(1); opacity: .72; }
@media (forced-colors: active) {
    .og-card .og-meta > i { forced-color-adjust: none; }
}

.og-europe { margin-top: 1rem; padding: 1.2rem; border: 1px solid #c9c5bc; border-top: 2px solid var(--gold); background: #eeeae1; }
.og-europe h2 { margin: 0; font: 650 .71rem/1.45 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.og-europe > p { margin: .25rem 0 1rem; font-size: .81rem; color: #585951; }
.og-europe .og-grid { justify-content: center; }
#og-empty { padding: 2rem 0; }
.og-paper { background: #ede8dd; border-block: 1px solid #d6cdbd; }
.og-document { align-items: center; gap: clamp(1.6rem,4vw,4rem); padding-block: clamp(2rem,4vw,4.5rem); }
.og-document .og-kicker { color: #70552c; }
.og-document h1 { margin: 0 0 1rem; color: var(--ink); font: 500 clamp(1.85rem,2.6vw,3rem)/1.12 var(--serif); letter-spacing: -.027em; }
.og-document h1 em { font-weight: normal; }
.og-document-lead { margin: 0; }
.og-document .og-document-lead, .og-document p { font: 1rem/1.58 var(--serif); }
.og-document-card { display: flex; align-items: center; gap: 1rem; padding: clamp(1rem,2vw,2rem); background: #fff; border: 1px solid #cfc7b9; border-top: 2px solid var(--wine); }
.og-document-card img { flex: 0 0 auto; width: 27%; height: auto; border: 1px solid #ddd; }
.og-document-card h3 { margin: 0; font: 550 1.42rem/1.18 var(--serif); }
.og-document-card p { margin: .65rem 0 .9rem; font: .85rem/1.45 var(--sans); }
.og-text-link { display: block; margin-top: .5rem; color: var(--wine); font: .79rem/1.5 var(--sans); }
.og-end { padding: 1rem 0; color: #50545a; font-size: .8rem; }
.og-end a, .og-dossier a, #og-d-body a { color: var(--wine); overflow-wrap: anywhere; }
#og-dialog { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(100%,42rem); max-width: 100%; height: 100dvh; max-height: 100dvh; overflow: auto; color: var(--ink); background: var(--paper); border: 0; border-left: 2px solid var(--gold); padding: 0 clamp(1rem,3vw,2.25rem) 2rem; }
#og-dialog::backdrop { background: #10121ba6; }
.og-tools { display: flex; gap: .6rem; flex-wrap: wrap; position: sticky; top: 0; z-index: 1; background: var(--paper); border-bottom: 1px solid var(--line); padding: .8rem 0; margin-bottom: 1.3rem; }
.og-tools button { padding: .43rem .62rem; color: var(--ink); background: white; border: 1px solid #afa99d; border-radius: 2px; font: .8rem var(--sans); cursor: pointer; }
#og-dialog .og-kicker { color: #76592b; margin-bottom: .3rem; }
#og-dialog h2 { margin: 0; font: 500 clamp(1.8rem,3vw,2.6rem)/1.12 var(--serif); }
#og-d-status { margin: .7rem 0; color: var(--wine); font-weight: 650; }
.og-dossier, #og-d-body { overflow-wrap: anywhere; font-size: .95rem; }
.og-dossier { padding: 1rem; }
.og-dossier section, #og-d-body section { padding: 1rem 0; border-top: 1px solid var(--line); }
.og-dossier h3, #og-d-body h3 { margin: 0 0 .6rem; font: 550 1.3rem/1.25 var(--serif); }
.og-dossier :is(p,ul,dl,address), #og-d-body :is(p,ul,dl,address) { margin: .4rem 0; }
.og-dossier ul, #og-d-body ul { padding-left: 1.3rem; }
.og-dossier address, #og-d-body address { display: grid; font-style: normal; }
.og dt { font-weight: 650; }
.og dd { margin: 0 0 .45rem; }
.og-exposure, .og-question { background: #fff; padding: .7rem 1rem; border-left: 2px solid var(--gold); }
.og-quiet, #og-d-role { color: #555b62; }
@media (min-width: 1320px) {
    .og-level { padding-block: 1.55rem; }
    .og-level > h2 {
        position: absolute; left: 0; top: 50%; transform: translateY(-50%);
        max-width: calc((100% - 1040px) / 2 - 10px);
        margin: 0; padding: 0; hyphens: auto;
    }
}
@media (max-width: 900px) {
    .og-spread, .og-document { grid-template-columns: 1fr; }
    .og-heading h1 { max-width: 27ch; }
    .og-tableau { max-width: 100%; }
    .og-spread, .og-prelude, .og-protocol, .og-document, .og-end { width: calc(100% - 44px); }
}
@media (max-width: 600px) {
    .og-spread, .og-prelude, .og-protocol, .og-document, .og-end { width: calc(100% - 32px); }
    .og-level { padding: 1rem 0 1.1rem 18px; border-left: 1px solid var(--wine); margin-left: 1px; }
    .og-level:is([data-level="7"],[data-level="6"],[data-level="5"]) { border-left: 1px dashed #9ca3af; }
    .og-lines { display: none; }
    .og-level > h2 { max-width: 100%; margin-bottom: .8rem; }
    .og-grid { flex-direction: column; gap: .65rem; }
    .og-card { width: 100%; flex-basis: auto; position: relative; }
    .og-level .og-card::before { content: ""; position: absolute; top: 50%; left: -19px; width: 18px; border-top: 1px solid #9ca3af; }
    .og-grid + .og-grid { margin-top: .65rem; }
    .og-europe { padding: .95rem 0 .95rem 18px; margin-left: 1px; border-right: 0; }
    .og-controls { gap: .25rem .85rem; }
    .og-document-card { align-items: flex-start; }
}
@media print {
    .og-controls, .og-tools, .og-actions { display: none !important; }
    .og-card { break-inside: avoid; }
    body:has(#og-dialog[open]) > :not(main), body:has(#og-dialog[open]) main > :not(dialog) { display: none !important; }
    #og-dialog[open] { position: static; width: 100%; height: auto; max-height: none; overflow: visible; border: 0; padding: 0; }
    #og-dialog::backdrop { background: none; }
}

.og-game, .og-next {
    box-sizing: border-box;
    max-width: 64rem;
    margin-inline: auto;
    padding-inline: clamp(1rem, 3vw, 2rem);
}
.og-prelude { padding-block: clamp(2rem, 5vw, 4rem) 1rem; }
.og-prelude h1, .og-prelude .og-intro-text { text-align: center; }
.og-prelude h1 { max-width: none; margin: 0 0 1.2rem; color: var(--ink); font: 550 clamp(2rem, 4vw, 3.5rem)/1.07 var(--serif); letter-spacing: -.027em; text-wrap: balance; }
.og-intro-text { max-width: none; margin: 0; color: var(--ink); font: 450 clamp(1.03rem, 1.5vw, 1.22rem)/1.65 var(--sans); }
.og-intro-text > span { display: block; }
.og-intro-text > span + span { margin-top: .75em; }
.og-intro-text .og-term-button { color: var(--wine); font-weight: 650; }
.og-intro-note { box-sizing: border-box; max-height: 80vh; overflow-y: auto; background: var(--paper); }
.og-intro-note strong { font: 650 1.3rem/1.3 var(--serif); }
.og-game { margin-block: .5rem clamp(2rem, 4vw, 3.5rem); }
.og-next { max-width: 80rem; margin-block: .5rem clamp(2rem,4vw,3rem); }
.og-next > a {
    display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start;
    gap: .9rem 1.4rem; padding: clamp(1.25rem,3.6vw,3rem);
    background: var(--ink); color: #fff9ef; text-decoration: none;
    border-top: 3px solid var(--gold); border-radius: 3px;
}
.og-next > a:focus-visible { outline: 3px solid var(--wine); outline-offset: 4px; }
.og-next h1 { grid-column: 1; margin: 0; max-width: 32ch; color: inherit; font: 550 clamp(1.85rem,3.4vw,3.1rem)/1.12 var(--serif); text-wrap: balance; }
.og-next h2 { grid-column: 1; margin: 0; max-width: 72ch; color: #eee5d6; font: 600 clamp(1rem,1.5vw,1.17rem)/1.55 var(--sans); }
.og-next-arrow { grid-column: 2; grid-row: 1; color: #ebd09f; font: 500 clamp(1.5rem,3vw,2.2rem)/1 var(--sans); }
.og-next a:is(:hover,:focus-visible) h1 { text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .14em; }
@media (max-width:600px) { .og-next h2 { grid-column: 1 / -1; } .og-next > a { column-gap:.6rem; } }
