/* HeXA Archive pages: the door (hexa-archive.com), the sign-in page (/login/), admin, privacy, logout, 404 and status.
   White, one column, sans only (serif tires the eyes on screens, user 2026-11-26).

   Spacing scale (every gap is one of these, all on the 4px grid):
     4   a label and its value
     8   a field label and its input, a heading and its short note, buttons in a row
     12  a control and its message or hint
     16  paragraphs, fields inside the sign-in card, cards in a list
     24  a heading and its content, field groups, the footer padding
     32  a page title and its tabs, a lead and its buttons
     48 / 64 / 80  page top and bottom, sections of the door (phone 40 / 56)
   Type scale: 40/48 and 32/40 titles, 18/28 section headings and the lead (18/32), 16/24 controls, 16/28 reading text,
   14/20 labels, notes and meta. Links are not underlined (colour and weight); the underline shows on hover and focus.
   Corners are square on buttons, fields, cards and notices (R297, the user: "끝이 뭉특하지 않고 각진 스타일로"); dots stay
   round, chart bars keep their 4px tops, and the Buy Me a Coffee pill keeps the round ends of gourmet.seonukkim.com. */
:root {
  --ink: #1f2a37; --ink-strong: #111a24; --muted: #556170; --line: #d9e2ec; --rule: #c5ccd5;
  /* Input borders keep 3:1 against white (WCAG 1.4.11): #8a94a3 is 3.07:1. */
  --field: #8a94a3; --wash: #f2f7fc; --panel: #f6f8fb;
  /* Sky blue on white with deep navy text (accent 5.2:1, muted 5.6:1 on white). */
  --accent: #0a6fc2; --accent-dark: #075899; --on-accent: #ffffff;
  --bad: #b42318; --bad-wash: #fdf1f0; --good: #1a7f37; --good-wash: #eef8f1; --warn: #8a5a00;
  --page: 1200px; --reading: 720px; --narrow: 480px; --gutter: 16px;
  --sans: "Archive Sans", "NanumSquare ac", "NanumSquare", system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color-scheme: light;
}
/* NanumSquare ac (SIL OFL 1.1), only the characters the pages use; anything else falls back to the system sans. */
@font-face { font-family: "Archive Sans"; src: url("/fonts/archive-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archive Sans"; src: url("/fonts/archive-sans-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: #ffffff; color: var(--ink);
  font: 16px/24px var(--sans); font-feature-settings: "kern";
  word-break: keep-all; overflow-wrap: anywhere;
}
a { color: var(--accent); text-decoration: none; font-weight: 700; }
a:hover, a:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
/* A link that opens a new tab (the gallery, the wiki and the status page are other hosts; Instagram and the others are
   other sites) ends with the arrow of the HeXA homepage, in the colour of its words. Screen readers hear "새 탭에서 열림"
   through aria-describedby="new-tab" (R294: the address changes, and the gallery and the wiki have no way back). */
a[target="_blank"]::after {
  content: ""; display: inline-block; width: 0.7em; height: 0.7em; margin-left: 4px; vertical-align: baseline;
  background: currentColor; forced-color-adjust: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4 2.5h5.5V8M9.5 2.5 2.5 9.5' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4 2.5h5.5V8M9.5 2.5 2.5 9.5' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
h1 { font-size: 32px; line-height: 40px; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; color: var(--ink-strong); }
h2 { font-size: 18px; line-height: 28px; font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; color: var(--ink-strong); }
h3 { font-size: 16px; line-height: 24px; font-weight: 700; color: var(--ink-strong); }
p { text-wrap: pretty; }
.quiet { color: var(--muted); font-size: 14px; line-height: 20px; }
.num, .quiet, time { font-variant-numeric: tabular-nums; }

/* Header and footer: full-width lines, content on the 1200px page column. */
.bar { border-bottom: 1px solid var(--line); padding: 0 var(--gutter); }
.bar-inner { width: 100%; max-width: calc(var(--page) - 2 * var(--gutter)); min-height: 64px; margin: 0 auto; display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-strong); font-size: 18px; line-height: 28px; font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; flex: none; }
.top-nav { display: flex; gap: 24px; margin-left: 32px; }
.top-nav a { padding: 8px 0; color: var(--ink); line-height: 24px; border-bottom: 2px solid transparent; }
.top-nav a:hover, .top-nav a:focus-visible { color: var(--accent); border-bottom-color: var(--accent); text-decoration: none; }
.bar-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
/* The language switch (R297, the user: "EN 누르면 KO로 바꿔주고 버튼으로 감싸지 말고 그냥 누르는 형식"): the globe and the
   code of the language it opens, as plain words with no frame; at least 44px square to stay easy to press. */
.lang { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; min-width: 44px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 14px; line-height: 20px; font-weight: 700; letter-spacing: 0.04em; cursor: pointer; }
.lang:hover, .lang:focus-visible { color: var(--accent); }
.lang:hover [data-lang-label], .lang:focus-visible [data-lang-label] { text-decoration: underline; text-underline-offset: 4px; }
.lang-icon { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.foot { border-top: 1px solid var(--line); padding: 0 var(--gutter); color: var(--muted); font-size: 14px; line-height: 20px; }
.foot-inner { width: 100%; max-width: calc(var(--page) - 2 * var(--gutter)); margin: 0 auto; padding: 24px 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.foot a { font-weight: 400; color: var(--muted); }
.foot a:hover, .foot a:focus-visible { color: var(--ink); }

/* An inline list with thin separators ("갤러리 | 위키 | 관리"). Every item starts with its separator; the list is pulled 25px
   to the left and clipped there, so the first item of each line hides its separator even when the list wraps. */
.sep-list { display: flex; flex-wrap: wrap; align-items: center; row-gap: 8px; margin-left: -25px; padding: 0; list-style: none; clip-path: inset(-8px -8px -8px 21px); }
.sep-list > li { display: inline-flex; align-items: center; }
.sep-list > li::before { content: ""; flex: none; width: 1px; height: 12px; margin: 0 12px; background: var(--rule); }
.sep-list.center { justify-content: center; margin-left: 0; clip-path: none; }
.sep-list.center > li:first-child::before { display: none; }

/* Pages */
.page { width: 100%; max-width: calc(var(--narrow) + 2 * var(--gutter)); margin: 0 auto; padding: 48px var(--gutter) 64px; }
.page.reading { max-width: calc(var(--reading) + 2 * var(--gutter)); }
.page.wide { max-width: var(--page); }
.page > h1 + * { margin-top: 16px; }
.page > p + p { margin-top: 16px; }

/* Buttons. A link that acts as a button takes the same classes. */
button { font: inherit; cursor: pointer; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border: 1px solid transparent;
  font: 700 16px/24px var(--sans); text-align: center; text-decoration: none; cursor: pointer; }
.button:hover, .button:focus-visible { text-decoration: none; }
.button.primary { background: var(--accent); color: var(--on-accent); }
.button.primary:hover { background: var(--accent-dark); }
.button.secondary { background: #ffffff; border-color: var(--field); color: var(--ink-strong); }
.button.secondary:hover { background: var(--wash); }
.button.block { width: 100%; min-height: 52px; }
.button.small { min-height: 36px; padding: 0 12px; font-size: 14px; line-height: 20px; }
.button.danger { background: #ffffff; border-color: #e3a49d; color: var(--bad); }
.button.danger.armed { background: var(--bad); border-color: var(--bad); color: #ffffff; }
.button.secondary.armed { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
button:disabled, .button:disabled { opacity: 0.45; cursor: not-allowed; }
.link-button { display: inline; min-height: 24px; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-weight: 700; cursor: pointer; }
.link-button:hover, .link-button:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.link-button.muted { color: var(--muted); font-weight: 400; }

/* Fields: a label, 8px, the input, 12px, its hint or message. Field groups stand 24px apart. */
form { display: grid; gap: 24px; }
.field { display: grid; gap: 8px; }
.field .hint, .field .message { margin-top: 4px; }
label { font-size: 14px; line-height: 20px; font-weight: 700; color: var(--ink-strong); }
input[type=email], input[type=text], input[type=search], input:not([type]), input[inputmode] {
  width: 100%; min-height: 48px; padding: 0 16px; border: 1px solid var(--field); background: #ffffff; color: var(--ink); font: inherit;
}
input::placeholder { color: #7b8594; }
input:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); outline: none; }
.inline { display: flex; gap: 8px; }
.inline input { flex: 1; min-width: 0; }
.inline .button { flex: none; }
.check { display: flex; align-items: flex-start; gap: 8px; font-size: 16px; line-height: 24px; font-weight: 400; color: var(--ink); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.checks { display: grid; gap: 12px; }
.hint { color: var(--muted); font-size: 14px; line-height: 20px; }
.message { font-size: 14px; line-height: 20px; }
.message:empty { display: none; }
.message.bad { color: var(--bad); }
.message.good { color: var(--good); }
.notice { padding: 16px; background: var(--panel); font-size: 14px; line-height: 20px; }
.notice > * + * { margin-top: 8px; }
.notice ul { padding-left: 20px; }
.notice li + li { margin-top: 4px; }
.alert { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 16px; background: var(--bad-wash); color: var(--bad); }
.alert a { color: var(--bad); }

/* The door: one centred 720px column. The three services take its thirds with the 24px gutter. Nothing is boxed: headings,
   space and alignment group the parts; borders stay on inputs and buttons, colour on links and on trouble.
   ?grid=1 draws the thirds over the page. */
.page.door { max-width: calc(var(--reading) + 2 * var(--gutter)); position: relative; padding-top: 64px; padding-bottom: 80px; }
.door > section + section { margin-top: 80px; }
.door h2 { margin-bottom: 24px; }
.hero h1 { font-size: 40px; line-height: 48px; }
.hero .lead { margin-top: 16px; font-size: 18px; line-height: 32px; }
.start { margin-top: 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.start .hint { margin-top: 12px; }
.hero .alert { margin-top: 24px; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; padding: 0; list-style: none; }
/* Each service is three rows of one shared grid, so names, texts and counts line up across the thirds. */
.service { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 8px; }
.service-name { justify-self: start; font-size: 17px; line-height: 28px; }
.service-text { font-size: 16px; line-height: 24px; }
.service-meta { color: var(--muted); font-size: 14px; line-height: 20px; font-variant-numeric: tabular-nums; }
.services-note { margin-top: 24px; }
.account .label { color: var(--muted); font-size: 14px; line-height: 20px; }
.account .email { margin-top: 4px; font-size: 18px; line-height: 28px; font-weight: 700; color: var(--ink-strong); overflow-wrap: anywhere; }
.account .sep-list { margin-top: 16px; }
.about p { line-height: 28px; }
.about p + p { margin-top: 16px; }
/* The first screen (R297, the user: "buy me a coffee가 첫 화면에서 조금 더 잘보이는 ... 위치나 배치를 옮겨서"): on a wide
   screen the Buy Me a Coffee pill stands at the right of the title, as on gourmet.seonukkim.com; on a phone it follows the
   sign-in buttons. Every other part of the hero spans both columns. */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; align-items: center; }
.hero > * { grid-column: 1 / -1; }
.hero > h1 { grid-column: 1; grid-row: 1; }
.hero > .support { grid-column: 2; grid-row: 1; display: flex; }
/* Buy Me a Coffee (R295, R297): gourmet's pill in the service's yellow with its cup and its hand lettering (Caveat outlines,
   drawn, not typed), 1.25 times gourmet's size. It opens a new tab with no arrow, as on gourmet; its title and the
   "new-tab" note say so. */
.support-button { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 20px; border: 1px solid #ffdd00; border-radius: 999px; background: #ffdd00; color: #0d0c22; text-decoration: none; }
.support-button:hover, .support-button:focus-visible { border-color: #ffe54d; background: #ffe54d; text-decoration: none; }
.support-button:focus-visible { outline-color: var(--ink-strong); outline-offset: 3px; }
.support-button[target="_blank"]::after { content: none; }
.support-ink { position: relative; display: block; flex: none; width: 127.659px; height: 19.26px; }
.support-ink > svg { position: absolute; display: block; overflow: visible; }
.support-ink > .cup { left: 0; top: -0.857px; width: 17.5px; height: 17.5px; }
.support-ink > .lettering { left: 25px; top: 1.579px; width: 102.659px; height: 18.306px; }
body.show-grid .page.door::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: var(--gutter); right: var(--gutter); pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(43, 76, 140, 0.12) 0 calc((100% - 48px) / 3), transparent calc((100% - 48px) / 3) calc((100% - 48px) / 3 + 24px));
}

/* The sign-in page (/login/): the brand, one card with two tabs (sign in, request access), links under the card. On a
   phone the card loses its frame and the fields take the whole width, as the big Korean portals do. */
.login-page { min-height: 100vh; display: flex; flex-direction: column; }
.login-top { display: flex; justify-content: center; padding: 64px var(--gutter) 32px; }
.login-top .brand { gap: 12px; font-size: 24px; line-height: 32px; }
.login-top .brand img { width: 32px; height: 32px; }
.login-main { flex: 1; width: 100%; max-width: calc(460px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter) 48px; }
.login-main > .alert, .login-main > .next-note { margin-bottom: 16px; }
.login-card { border: 1px solid var(--line); background: #ffffff; overflow: hidden; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; }
.tab { min-height: 56px; padding: 0 8px; border: 0; border-bottom: 1px solid var(--line); background: var(--panel); color: var(--muted); font: 700 16px/24px var(--sans); }
.tab + .tab { border-left: 1px solid var(--line); }
.tab[aria-selected="true"] { background: #ffffff; color: var(--ink-strong); border-bottom-color: transparent; }
.tab:focus-visible { outline-offset: -4px; }
.panel { padding: 32px; }
.panel > * + * { margin-top: 24px; }
.panel > .message { margin-top: 12px; }
.panel .intro { font-size: 15px; line-height: 24px; }
.panel form { gap: 16px; }
.panel form > .button { margin-top: 8px; }
.panel input[type=email], .panel input[type=text], .panel input[inputmode] { min-height: 52px; }
.panel #code { font-size: 20px; letter-spacing: 0.24em; font-variant-numeric: tabular-nums; }
.panel .sent-to { font-weight: 700; color: var(--ink-strong); overflow-wrap: anywhere; }
.panel .divider { height: 1px; background: var(--line); }
.panel .switch { text-align: center; font-size: 14px; line-height: 20px; color: var(--muted); }
.panel .switch .link-button { margin-left: 8px; }
.panel .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; font-size: 14px; line-height: 20px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0; list-style: none; counter-reset: step; }
.steps li { padding: 8px 0 0; border-top: 2px solid var(--line); color: var(--muted); font-size: 14px; line-height: 20px; counter-increment: step; }
.steps li::before { content: counter(step) ". "; font-weight: 700; color: var(--ink-strong); }
.steps li:first-child { border-top-color: var(--accent); color: var(--ink-strong); }
.done-box { display: grid; gap: 16px; }
.done-box p { font-size: 16px; line-height: 24px; color: var(--good); }
.login-links { margin-top: 24px; font-size: 14px; line-height: 20px; }
.login-links a { font-weight: 400; color: var(--muted); }
.login-links a:hover, .login-links a:focus-visible { color: var(--ink); }
.login-foot { padding: 24px var(--gutter) 32px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 16px; color: var(--muted); font-size: 14px; line-height: 20px; }

/* Admin: a title, one row of tabs, one panel at a time. Forms keep the 480px measure; tables take the page. */
.admin-head > * + * { margin-top: 8px; }
.admin-tabs { display: flex; gap: 24px; margin-top: 32px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tab { flex: none; min-height: 48px; padding: 0; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font: 700 15px/24px var(--sans); white-space: nowrap; }
.admin-tab[aria-selected="true"] { color: var(--ink-strong); border-bottom-color: var(--accent); }
.admin-tab .count { margin-left: 4px; font-weight: 400; font-variant-numeric: tabular-nums; }
.admin-tab:focus-visible { outline-offset: -2px; }
.admin-panel { margin-top: 32px; }
.admin-panel > .desc { margin-top: 8px; max-width: var(--reading); }
.admin-panel > .desc + .desc { margin-top: 4px; }
.admin-panel > .body { margin-top: 24px; }
.admin-form { max-width: var(--narrow); }
.admin-request { padding: 24px; border: 1px solid var(--line); }
.admin-request + .admin-request { margin-top: 16px; }
.request-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.request-name { font-size: 18px; line-height: 28px; font-weight: 700; color: var(--ink-strong); }
.facts { margin-top: 16px; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; font-size: 14px; line-height: 20px; }
.facts dt { color: var(--muted); }
.facts dd { overflow-wrap: anywhere; }
.request-step { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.request-step > * + * { margin-top: 12px; }
.request-step .buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.match-exact { color: var(--good); font-weight: 700; }
.match-similar, .match-contains { color: var(--warn); font-weight: 700; }
.evidence summary { cursor: pointer; color: var(--accent); font-weight: 700; }
.evidence ul { margin-top: 8px; padding-left: 20px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
th, td { padding: 8px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: break-word; word-break: keep-all; }
th { background: var(--panel); font-weight: 700; white-space: nowrap; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Admin stats (dataviz rules): numbers first in plain figures, one column chart a measure (columns at most 24px wide,
   4px rounded tops on one baseline, 2px gaps, hairline grid), ranked lists with a thin bar on a lighter track, every value
   also in a table. A refetch keeps the old render at half opacity instead of flashing. */
.flow-24 > * + * { margin-top: 24px; }
.period { display: flex; flex-wrap: wrap; gap: 8px; }
.period .button[aria-pressed="true"] { background: var(--ink-strong); border-color: var(--ink-strong); color: #ffffff; }
#stats.loading { opacity: 0.5; }
#stats > * + * { margin-top: 48px; }
#stats > .table-view { margin-top: 16px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 24px; padding: 24px; background: var(--panel); }
.stat dt { color: var(--muted); font-size: 14px; line-height: 20px; }
.stat dd { margin-top: 4px; font-size: 28px; line-height: 36px; font-weight: 700; color: var(--ink-strong); }
.stat .sub { display: block; margin-top: 4px; font-size: 14px; line-height: 20px; font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
.two-up { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 24px; }
.chart { margin: 0; }
.chart figcaption > * + * { margin-top: 4px; }
.plot { display: grid; grid-template-columns: max-content minmax(0, 1fr); grid-template-rows: 160px auto; column-gap: 8px; row-gap: 8px; margin-top: 16px; }
.y-axis { position: relative; min-width: 24px; color: var(--muted); font-size: 12px; line-height: 16px; text-align: right; font-variant-numeric: tabular-nums; }
.y-axis span { position: absolute; right: 0; }
.y-axis span:nth-child(1) { top: -8px; }
.y-axis span:nth-child(2) { top: calc(50% - 8px); }
.y-axis span:nth-child(3) { bottom: -8px; }
.plot-area { position: relative; }
.plot-area:focus-visible { outline-offset: 4px; }
.grid-lines span { position: absolute; left: 0; right: 0; height: 1px; background: var(--line); }
.grid-lines span:nth-child(1) { top: 0; }
.grid-lines span:nth-child(2) { top: 50%; }
.grid-lines span:nth-child(3) { bottom: 0; background: var(--field); }
.columns { position: absolute; inset: 0 0 1px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); column-gap: 2px; }
.col { display: flex; align-items: flex-end; justify-content: center; height: 100%; }
.col-bar { width: 100%; max-width: 24px; border-radius: 4px 4px 0 0; background: var(--accent); }
.col.active .col-bar, .col:hover .col-bar { background: var(--accent-dark); }
.x-axis { grid-column: 2; display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; line-height: 16px; font-variant-numeric: tabular-nums; }
.chart-tip { position: absolute; z-index: 10; display: grid; gap: 2px; padding: 8px 12px; background: var(--ink-strong); color: #ffffff; font-size: 14px; line-height: 20px; white-space: nowrap; pointer-events: none; }
.chart-tip span { color: #c9d2dc; }
.table-view summary { cursor: pointer; color: var(--accent); font-size: 14px; line-height: 20px; font-weight: 700; }
.table-view .table-wrap { margin-top: 12px; }
.stats-block > * + * { margin-top: 12px; }
.stats-block > h3 + .hint { margin-top: 4px; }
.ranked { display: grid; gap: 12px; padding: 0; list-style: none; }
.rank-row { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; line-height: 20px; }
.rank-count { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rank-track { display: block; height: 4px; margin-top: 4px; border-radius: 2px; background: #dce9f6; }
.rank-fill { display: block; height: 100%; border-radius: 2px; background: var(--accent); }

/* Privacy policy */
.policy > * + * { margin-top: 16px; }
.policy h1 + * { margin-top: 24px; }
.policy h2 { margin-top: 40px; }
.policy h3 { margin-top: 24px; }
.policy p, .policy li { line-height: 28px; }
.policy ul, .policy ol { padding-left: 24px; }
.policy li + li { margin-top: 4px; }
.policy table:has(th:nth-child(4)) { min-width: 640px; }

/* Status: one banner sentence, five rows split by lines, a 24-hour strip with its ends named. Colour only for state, and
   always with a word beside it. */
.status-page > h1 + .status-banner { margin-top: 24px; }
.status-banner { padding: 20px 24px; background: var(--good-wash); }
.status-banner.bad { background: var(--bad-wash); }
.status-banner.stale { background: #fdf6e7; }
.status-banner .summary { display: flex; align-items: center; gap: 12px; font-size: 22px; line-height: 32px; font-weight: 700; color: var(--ink-strong); }
.status-banner .summary::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--field); }
.status-banner.good .summary::before { background: var(--good); }
.status-banner.bad .summary { color: var(--bad); }
.status-banner.bad .summary::before { background: var(--bad); }
.status-banner.stale .summary { color: var(--warn); }
.status-banner.stale .summary::before { background: var(--warn); }
.status-banner .quiet { margin-top: 4px; padding-left: 24px; }
.status-section { margin-top: 48px; }
.status-section > h2 + * { margin-top: 16px; }
.status-list { display: grid; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.status-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.check-name { display: block; font-weight: 700; color: var(--ink-strong); }
.check-help { display: block; color: var(--muted); font-size: 14px; line-height: 20px; }
.state { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.state .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--field); }
.state.good .dot { background: var(--good); }
.state.bad { color: var(--bad); font-weight: 700; }
.state.bad .dot { background: var(--bad); }
.history { display: grid; grid-template-columns: repeat(48, minmax(0, 1fr)); gap: 2px; height: 32px; }
.history span { border-radius: 2px; background: var(--line); }
.history .good { background: #7cbf8e; }
.history .bad { background: var(--bad); }
.history-axis { display: flex; justify-content: space-between; margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 16px; }
.history-axis + .quiet { margin-top: 12px; }
.status-help { margin-top: 48px; }

@media (max-width: 599px) {
  .top-nav { display: none; }
  .page { padding-top: 32px; padding-bottom: 48px; }
  h1 { font-size: 28px; line-height: 36px; }
  .page.door { padding-top: 40px; padding-bottom: 56px; }
  .door > section + section { margin-top: 56px; }
  .hero h1 { font-size: 32px; line-height: 40px; }
  .hero .lead { font-size: 17px; line-height: 28px; }
  .hero { display: block; }
  .hero > .support { margin-top: 24px; }
  .start { margin-top: 24px; }
  .service-grid { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .service { grid-row: auto; grid-template-rows: none; row-gap: 4px; }
  body.show-grid .page.door::after { background: rgba(43, 76, 140, 0.08); }
  .foot-inner { flex-direction: column; align-items: flex-start; }
  .login-top { padding: 40px var(--gutter) 24px; }
  .login-card { border: 0; border-radius: 0; overflow: visible; }
  .login-card .tabs { border: 1px solid var(--line); overflow: hidden; }
  .login-card .tab { border-bottom: 0; }
  .panel { padding: 24px 0 0; }
  .admin-tabs { margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
  .admin-request { padding: 16px; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .facts dd + dt { margin-top: 8px; }
  .stat-row { padding: 16px; gap: 16px; }
  .two-up { grid-template-columns: minmax(0, 1fr); }
  .stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .stack, .stack tbody, .stack tr, .stack td { display: block; width: 100%; }
  .stack tr { padding: 8px 12px; border: 1px solid var(--line); }
  .stack tr + tr { margin-top: 8px; }
  .stack td { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; padding: 4px 0; border: 0; }
  .stack td::before { content: attr(data-label); color: var(--muted); font-weight: 700; }
  .stack td:empty { display: none; }
  .stack td.num { text-align: left; }
}
