/* DXNA reader pages (docs/decisions/reader-feed.md, F-1). §8's tokens as
   custom properties, light and dark from prefers-color-scheme. The shell epic
   extends this file; it does not author the tokens twice. No gradients, no
   shadows; 1px borders and 4px radii; the accent only on active filters and
   the maintainer badge. */
:root {
  --bg: #FBFBF9; --band: #F5F5F2; --ink: #17191E; --mute: #596069; --read: #6B717B;
  --line: #E3E4E0; --chip: #F1F2EE; --strong: #B9BCC2; --accent: #0B6E4F;
  --accent-bg: rgba(11, 110, 79, .06);
  --error: #B42318; --error-bg: #FDF0EF;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111316; --band: #15181C; --ink: #E7E9EC; --mute: #9BA2AD; --read: #80878F;
    --line: #262A30; --chip: #1B1F24; --strong: #4C535D; --accent: #5CCB9F;
    --accent-bg: rgba(92, 203, 159, .11);
    --error: #F97066; --error-bg: #2A1515;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.pad { max-width: 1160px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }

/* The shell (docs/decisions/reader-shell.md, H-1, H-2): the skip link, the
   header's places and account controls, and the menu that holds both below
   760px. The 60px header is a minimum, so the places wrap onto a second row
   rather than run off a phone. Under html.js — set by the inline head
   script before the first paint — the menu is collapsed from the first
   frame (finding wm-cqm33k) and the button shows it from its aria-expanded;
   with scripts off, or once a page has loaded without shell.js (finding
   wm-lch0sl), there is no mark, the button stays hidden and the places
   stay in sight. A signed-out visitor's sign-in sits outside the menu, on
   the first row beside the button (finding wm-jrd50k). The current place is bold ink with a 2px ink underline,
   never the accent. */
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 10; padding: 8px 14px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: 14px; border-radius: 4px; }
.skip-link:focus { top: 8px; }
main:focus { outline: none; }
.site-header { border-bottom: 1px solid var(--line); }
.bar { min-height: 60px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; padding-top: 10px; padding-bottom: 10px; }
.wordmark { font-weight: 700; font-size: 21px; letter-spacing: .06em; }
.site-menu { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 22px; font-size: 14.5px; }
.nav-item { display: inline-flex; align-items: baseline; gap: 6px; }
span.nav-label { color: var(--mute); }
.nav-label[aria-current="page"] { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav-note { font-family: var(--mono); font-size: 11.5px; color: var(--mute); }
.signin { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 4px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: 14px; }
.account { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 14px; }
.reader-name { color: var(--mute); }
.reader-handle { font-family: var(--mono); font-size: 13px; }
.header-initials { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; background: var(--chip); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 9.5px; color: var(--mute); }
.menu-button { display: none; flex: 0 0 auto; width: 40px; height: 40px; margin-left: auto; padding: 0; align-items: center; justify-content: center; background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 4px; cursor: pointer; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 18px; height: 2px; background: currentColor; }
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
/* Forced colours (Windows high contrast) repaint backgrounds, which would
   blank the icon's three bars: they keep a system colour (finding
   wm-f0a2e4). */
@media (forced-colors: active) {
  .menu-icon, .menu-icon::before, .menu-icon::after { forced-color-adjust: none; background: ButtonText; }
}
@media (max-width: 759.98px) {
  .bar { column-gap: 12px; }
  .site-menu { flex-basis: 100%; order: 2; }
  .bar > .account { order: 1; }
  html:not(.js) .bar > .account { margin-left: auto; }
  .js .menu-button { display: inline-flex; }
  .js .site-menu { display: none; flex-direction: column; align-items: flex-start; padding: 6px 0 8px; }
  .js .menu-button[aria-expanded="true"] + .site-menu { display: flex; }
  .js .nav-list { flex-direction: column; gap: 12px; }
}
.signout { margin: 0; }
.signout-button { font: inherit; font-size: 14px; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 4px; padding: 3px 10px; cursor: pointer; }

.band { border-bottom: 1px solid var(--line); background: var(--band); }
.band-inner { padding-top: 18px; padding-bottom: 18px; display: flex; flex-direction: column; gap: 10px; }
.band-text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.band-title { font-size: 14px; font-weight: 600; }
.band-note { font-size: 14px; color: var(--mute); }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chip { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border: 1px solid var(--line); background: var(--chip); color: var(--mute); font-family: var(--mono); font-size: 12.5px; border-radius: 4px; }
.chip-active { border-color: var(--accent); background: var(--accent-bg); color: var(--accent); font-weight: 500; }
.chip-plain { background: transparent; }
.chip-tag { height: 22px; padding: 0 8px; font-size: 11.5px; }
/* The strand (story wm-e0rt2.3): a chip that edits her stacks is a form's
   button, drawn as the same chip; its reason sits beside it. */
.chip-form, .strand-add { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
button.chip { cursor: pointer; }
button:focus-visible, select:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.chip-reason { font-family: var(--mono); font-size: 11.5px; color: var(--mute); }
.strand-add select { height: 28px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-family: var(--mono); font-size: 12.5px; border-radius: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.list-head, .row { display: grid; grid-template-columns: 52px minmax(0, 1fr) 232px; column-gap: 28px; }
.list-head { align-items: baseline; padding: 22px 0 10px; border-bottom: 1px solid var(--strong); }
.list-head h1 { margin: 0; font-size: 15px; font-weight: 600; }
.colhead { font-family: var(--mono); font-size: 11.5px; color: var(--mute); }
.list-head .colhead:first-child { text-align: right; }

.posts { list-style: none; margin: 0; padding: 0; }
.post { display: grid; grid-template-columns: 52px minmax(0, 1fr) 232px; column-gap: 28px; padding: 14px 0 15px; border-bottom: 1px solid var(--line); }
.post .row { display: contents; }
.age { grid-column: 1; grid-row: 1 / span 2; font-family: var(--mono); font-size: 12px; color: var(--mute); text-align: right; padding-top: 3px; }
.text { grid-column: 2; grid-row: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.title { font-size: 17.5px; font-weight: 600; line-height: 1.3; letter-spacing: -.003em; }
.excerpt { margin: 0; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tags { grid-column: 2; grid-row: 2; margin-top: 8px; }
.by { grid-column: 3; grid-row: 1 / span 2; min-width: 0; display: flex; align-items: flex-start; gap: 10px; padding-top: 2px; }
.avatar { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; background: var(--chip); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 9.5px; color: var(--mute); }
.who { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.author { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.domain { font-family: var(--mono); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.out { color: var(--mute); }

.empty, .notfound p { margin: 28px 0; font-size: 17px; }
.signin-failed { margin: 16px 0 0; padding: 10px 14px; border: 1px solid currentColor; border-radius: 6px; font-size: 15px; }
.notfound h1 { margin: 36px 0 0; font-size: 28px; }
.plain p, .plain-list { max-width: 66ch; font-size: 16px; }
.plain-section { margin: 28px 0 0; }
.plain-section h2 { margin: 0 0 8px; font-size: 19px; }
.plain-list { margin: 0; padding-left: 20px; }
.plain-list li { margin: 6px 0; }
/* The privacy and terms pages (wm-yms8mr): a subsection heading, the two
   dated lines at the top, links a reader can see in the prose, and plain
   tables on the same tokens. A cell wraps anywhere rather than widen the
   page past a phone's window. */
.plain h3 { margin: 18px 0 6px; font-size: 16px; }
.plain .legal-date { margin: 4px 0; font-size: 14.5px; color: var(--mute); }
.plain .legal-date strong { color: var(--ink); }
.legal p a, .legal li a { text-decoration: underline; text-underline-offset: 2px; }
.plain code { font-family: var(--mono); font-size: .9em; }
.plain-table { width: 100%; max-width: 66ch; margin: 12px 0; border-collapse: collapse; font-size: 15px; }
.plain-table th, .plain-table td { padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.plain-table th { font-size: 13.5px; font-weight: 600; color: var(--mute); }
.pages { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 24px; padding: 22px 0 0; font-family: var(--mono); font-size: 13px; }
.pages a { text-decoration: underline; text-underline-offset: 2px; }
.list-end { margin: 0; color: var(--mute); font-family: var(--sans); font-size: 14px; }
.view-feed { margin: 18px 0 0; font-family: var(--mono); font-size: 13px; }
.view-feed a { color: var(--mute); text-decoration: underline; text-underline-offset: 2px; }
.view-feed-note, .opml-count, .directory-exits-note { color: var(--mute); }

.site-footer { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-top: 36px; padding-top: 16px; padding-bottom: 40px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--mute); }
.footer-line { margin: 0; }
.claim { color: var(--ink); font-weight: 600; }
.footer-pages { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-pages a { color: var(--mute); }
.key-hint { margin: 0; font-size: 12.5px; }
.key-hint kbd { display: inline-block; min-width: 1.4em; padding: 0 4px; border: 1px solid var(--line); border-radius: 3px; font-family: var(--mono); font-size: 12px; text-align: center; color: var(--ink); }
.posts li.post:has(:focus-visible) { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 2px; }
/* A touch screen has no keys to name (finding wm-dkaa3). The page is the
   same for every device (F-2), so the stylesheet hides the hint. */
@media (hover: none) and (pointer: coarse) {
  .key-hint { display: none; }
}

@media (max-width: 760px) {
  .pad { padding-left: 16px; padding-right: 16px; }
  .list-head, .post { grid-template-columns: minmax(0, 1fr); row-gap: 6px; }
  .list-head .colhead { display: none; }
  .age, .text, .tags, .by { grid-column: 1; grid-row: auto; text-align: left; padding-top: 0; }
}

/* Read state (story wm-e0rt2.4, F-6): a post she has read falls back, so the
   glance holds what is still new. Its row's mark is a plain form button, and
   "Mark all read" sits in her strand's band. */
.post.read .text, .post.read .by, .post.read .age, .post.read .tags { opacity: .55; }
.post.read .title { font-weight: 500; }
.mark-read { grid-column: 2; grid-row: 3; margin: 6px 0 0; }
.mark-read-button, .mark-all-button { cursor: pointer; padding: 0; border: 0; background: none; color: var(--mute); font-family: var(--mono); font-size: 12px; text-decoration: underline; text-underline-offset: 2px; }
.post.read .mark-read-button[aria-disabled="true"] { cursor: default; text-decoration: none; opacity: .55; }
.mark-all { margin: 0; }
.mark-all-button { height: 28px; padding: 0 10px; border: 1px solid var(--line); border-radius: 4px; text-decoration: none; color: var(--ink); }
@media (max-width: 760px) {
  .mark-read { grid-column: 1; grid-row: auto; }
}

/* Since you last looked (story wm-e0rt2.5, F-7; the Main and CaughtUp
   artboards): the divider is mono 12px between two strong rules, never the
   accent; the caught-up block sits under the list head, above the posts she
   has already seen. */
.since-divider { display: flex; align-items: center; gap: 14px; padding: 22px 0 4px; font-family: var(--mono); font-size: 12px; color: var(--ink); }
.since-divider::before, .since-divider::after { content: ""; flex: 1; height: 1px; background: var(--strong); }
/* The new mark (wm-yt13w4): a post DXNA found since she last looked, which
   its own date may list below the divider. Text, in the age column under
   the age, in the accent, so it reads without colour too. */
.new-mark { grid-column: 1; grid-row: 3; margin-top: 6px; font-family: var(--mono); font-size: 11.5px; color: var(--accent); text-align: right; }
@media (max-width: 760px) {
  .new-mark { grid-column: 1; grid-row: auto; text-align: left; margin-top: 0; }
}
.caught-up { display: grid; grid-template-columns: 52px minmax(0, 1fr) 232px; column-gap: 28px; padding: 28px 0 26px; }
.caught-up p { grid-column: 2; margin: 0; }
.caught-up-head { font-size: 20px; font-weight: 600; line-height: 1.3; }
.caught-up-line { margin-top: 4px !important; font-size: 15px; color: var(--mute); }
@media (max-width: 760px) {
  .caught-up { grid-template-columns: minmax(0, 1fr); }
  .caught-up p { grid-column: 1; }
}

/* The first-visit welcome and the early strand (story wm-e0rt2.6, F-7; the
   Welcome and Sparse artboards): the welcome is a banded status line above
   the list with a mono "dismiss"; the sparse note is a banded block below
   it, its nearby stacks the strand's own chips. Neither uses the accent. */
.welcome { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin: 18px 0 4px; padding: 12px 16px; border: 1px solid var(--line); background: var(--band); border-radius: 4px; }
.welcome-text { margin: 0; font-size: 14.5px; max-width: 640px; }
.welcome-dismiss { margin: 0; }
.welcome-dismiss-button { cursor: pointer; padding: 0; border: 0; background: none; color: var(--mute); font-family: var(--mono); font-size: 12px; text-decoration: underline; text-underline-offset: 2px; }
.sparse { display: flex; flex-direction: column; gap: 12px; margin: 28px 0 8px; padding: 20px 22px; border: 1px solid var(--line); background: var(--band); border-radius: 4px; }
.sparse-head { margin: 0; font-size: 17px; font-weight: 600; }
.sparse-line { margin: 0; max-width: 560px; font-size: 15px; color: var(--mute); }
.nearby { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.nearby-add { margin: 0; }
.chip-nearby { cursor: pointer; background: var(--bg); color: var(--ink); }
.suggest-feed { margin-left: 8px; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; color: var(--ink); }

/* The stack picker (docs/decisions/reader-account.md, A-2 to A-5): checkbox
   chips in two groups and "Add a stack", the primary button and the way
   past, the preview, and the claim offer beside them. A chip is its label,
   drawn as the stack chip; its checkbox stays visible, so its state reads
   with or without :has. */
.picker-intro { color: var(--mute); margin: 0 0 18px; max-width: 62ch; }
.picker { display: flex; flex-direction: column; gap: 16px; margin: 0 0 28px; }
.pick-group { border: 0; margin: 0; padding: 0; }
.pick-group-title { font-size: 14px; font-weight: 600; padding: 0; margin-bottom: 8px; }
.picks li { display: inline-flex; align-items: center; gap: 6px; }
label.pick { gap: 6px; cursor: pointer; }
.pick-box { margin: 0; accent-color: var(--accent); }
.pick:has(.pick-box:checked) { border-color: var(--accent); background: var(--accent-bg); color: var(--accent); font-weight: 500; }
.pick:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.add-stack-summary { font-size: 14px; font-weight: 600; cursor: pointer; margin-bottom: 8px; }
.picker-none, .picker-degraded { margin: 0; color: var(--mute); }
.picker-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.picker-confirm { font: inherit; font-weight: 600; color: var(--bg); background: var(--ink); border: 1px solid var(--ink); border-radius: 4px; padding: 7px 16px; cursor: pointer; }
.picker-skip { font-size: 14px; color: var(--mute); text-decoration: underline; text-underline-offset: 2px; }
.picker-update { font: inherit; font-size: 14px; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 4px; padding: 5px 12px; cursor: pointer; }
.preview { border-top: 1px solid var(--line); padding-top: 16px; }
.preview-head { font-size: 14px; font-weight: 600; margin: 0 0 4px; }
.preview-note { color: var(--mute); font-size: 14px; margin: 0 0 8px; }
.claim-offer { border: 1px solid var(--line); border-radius: 4px; padding: 14px 16px; margin: 24px 0; max-width: 62ch; }
.claim-offer-head { font-size: 15px; font-weight: 600; margin: 0 0 6px; }
.claim-offer-line { margin: 0 0 6px; color: var(--mute); font-size: 14px; }
.claim-offer-actions { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.claim-feed { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.claim-dismiss { margin: 0; }
.claim-dismiss-button { font: inherit; font-size: 14px; color: var(--mute); background: transparent; border: 1px solid var(--line); border-radius: 4px; padding: 3px 10px; cursor: pointer; }

/* The account page (docs/decisions/reader-account.md, A-6, A-7): sections of
   plain prose, one form each; the delete form's button is the one control
   drawn as a warning, without colour beyond the ink. */
.account-link { font-weight: 600; }
.account-page { padding-bottom: 40px; }
.account-notice { font-weight: 600; margin: 0 0 16px; }
.account-section { max-width: 62ch; margin: 24px 0; padding-top: 16px; border-top: 1px solid var(--line); }
.account-section h2 { font-size: 17px; margin: 0 0 8px; }
.account-section ul { margin: 8px 0 12px; padding-left: 20px; }
.account-picker, .account-github-link, .account-signin, .account-back { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.account-line { max-width: 62ch; }
.account-delete-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; }
.account-confirm-label { font-weight: 600; font-size: 14px; }
.account-confirm { font: inherit; font-family: var(--mono); color: var(--ink); background: var(--bg); border: 1px solid var(--strong); border-radius: 4px; padding: 4px 8px; width: 10ch; }
.account-signout-button, .account-delete-button { font: inherit; font-size: 14px; color: var(--ink); background: transparent; border: 1px solid var(--strong); border-radius: 4px; padding: 4px 12px; cursor: pointer; }
.account-delete-button { font-weight: 600; border-color: var(--ink); }

/* The author page and its removal help page (docs/decisions/author-claim.md,
C-1, C-7; the Author and AuthorClaimed artboards). */
.author-page, .remove-help { padding-bottom: 40px; }
.banner { margin: 24px 0 0; padding: 16px 18px; border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--band); border-radius: 4px; }
.banner-head { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.banner-line { margin: 0 0 12px; color: var(--mute); max-width: 70ch; }
.offers { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.offer { font-weight: 500; }
a.offer { color: var(--accent); }
.offer-pending { color: var(--mute); }
.offer-note { color: var(--mute); font-size: 13px; }
.author-head { display: flex; align-items: center; gap: 16px; margin: 28px 0 18px; }
.author-initials { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 50%; background: var(--chip); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 18px; color: var(--mute); }
.author-name { margin: 0; font-size: 26px; font-weight: 600; }
.author-site { font-family: var(--mono); font-size: 13.5px; color: var(--mute); }
.author-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 24px; margin: 0 0 24px; max-width: 70ch; }
.author-facts .fact { display: contents; }
.author-facts dt { font-family: var(--mono); font-size: 12px; color: var(--mute); text-transform: uppercase; letter-spacing: .04em; }
.author-facts dd { margin: 0; overflow-wrap: anywhere; }
/* The DNS record and its 43-character value wrap on a phone (finding wm-udyox). */
.claim-wait-status dd, .claim-dns dd { overflow-wrap: anywhere; }
.feed-url, .github-handle { font-family: var(--mono); font-size: 13px; }
.fact-none { color: var(--mute); }
.badges { margin: 0 0 8px; padding-top: 16px; border-top: 1px solid var(--line); max-width: 70ch; }
.section-head { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.badges-note { margin: 0; color: var(--mute); }
.recent .list-head { grid-template-columns: minmax(0, 1fr) auto; }
/* The removal help page's head holds its one heading and no column heads:
   one full-width column, so the heading does not sit in the 52px age column. */
.remove-help .list-head { grid-template-columns: minmax(0, 1fr); }
.remove-help p { max-width: 62ch; }

/* The claim page (docs/decisions/author-claim.md, C-2, C-4; the Claim
   artboard's confirm step): one 760px column, the feed address first, the
   facts in a banded box and the confirm as the filled primary button. A
   check's result is a notice box above the form; none uses the accent. */
.claim-page.pad { max-width: 760px; padding-top: 48px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 24px; }
.claim-top { display: flex; flex-direction: column; gap: 6px; }
.claim-step { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin: 0 0 4px; font-family: var(--mono); font-size: 12.5px; color: var(--mute); }
.claim-cancel { text-decoration: underline; text-underline-offset: 2px; }
.claim-head { margin: 0; font-size: 30px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.claim-lede, .claim-refused, .claim-needs-github, .claim-taken { margin: 0; font-size: 16px; color: var(--mute); max-width: 62ch; }
.claim-page p { margin: 0; }
.claim-result, .claim-other-site, .claim-unreadable { padding: 12px 14px; border: 1px solid var(--line); background: var(--band); border-radius: 4px; font-size: 14px; }
.claim-result a, .claim-other-site a, .claim-taken a { text-decoration: underline; text-underline-offset: 2px; }
.claim-feed-form { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.claim-feed-form label { font-size: 14px; font-weight: 600; }
.claim-feed-row { display: flex; gap: 8px; }
.claim-feed-input { flex: 1 1 auto; min-width: 0; height: 42px; padding: 0 12px; border: 1px solid var(--strong); border-radius: 4px; background: var(--bg); color: var(--ink); font-family: var(--mono); font-size: 14px; }
.claim-feed-input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.claim-feed-read { flex: 0 0 auto; height: 42px; padding: 0 14px; font: inherit; font-size: 14px; color: var(--ink); background: transparent; border: 1px solid var(--strong); border-radius: 4px; cursor: pointer; }
.claim-facts { margin: 0; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px 16px; padding: 16px 18px; border: 1px solid var(--line); background: var(--band); border-radius: 4px; font-size: 14.5px; }
.claim-facts .fact { display: contents; }
.claim-facts dt { color: var(--mute); }
.claim-facts dd { margin: 0; overflow-wrap: anywhere; }
.claim-feed-url { font-family: var(--mono); font-size: 13.5px; }
.claim-stacks .chip { height: 24px; padding: 0 8px; font-size: 12px; }
.claim-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 0; }
.claim-confirm-button { height: 44px; padding: 0 20px; font: inherit; font-size: 15.5px; font-weight: 600; color: var(--bg); background: var(--ink); border: 1px solid var(--ink); border-radius: 4px; cursor: pointer; }
.claim-confirm-hint, .claim-how { font-size: 14px; color: var(--mute); }
.claim-how { padding-top: 16px; border-top: 1px solid var(--line); }
.author-badge { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.author-badge-head { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.25; }
.author-badge p { margin: 0; font-size: 14.5px; color: var(--mute); max-width: 62ch; }
.author-badge-snippets { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.author-badge-snippet-name { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.author-badge-code { display: inline-block; max-width: 100%; padding: 6px 10px; border: 1px solid var(--line); background: var(--band); border-radius: 4px; font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; vertical-align: middle; }
/* Each style's preview beside its two snippets (finding wm-o5hwqf): the
   badge drawn inline by its own renderer, on a fixed backdrop of the kind of
   site the style is made for, so the dark badge reads on a light page and
   the light and minimal ones on a dark page. Below 760px the preview sits
   above its snippets. */
.author-badge-styles { display: flex; flex-direction: column; gap: 18px; }
.author-badge-style { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 10px 20px; align-items: start; }
.author-badge-preview { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 0; }
.author-badge-drawing { display: inline-flex; max-width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 4px; line-height: 0; }
.author-badge-preview[data-backdrop="light"] .author-badge-drawing { background: #FFFFFF; border-color: #D0D7DE; }
.author-badge-preview[data-backdrop="dark"] .author-badge-drawing { background: #0D1117; border-color: #30363D; }
.author-badge-drawing svg { display: block; max-width: 100%; height: auto; }
.author-badge-preview-name { font-size: 13px; font-weight: 600; color: var(--mute); }
@media (max-width: 760px) { .author-badge-style { grid-template-columns: minmax(0, 1fr); } }
.claim-signin, .claim-author { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; font-weight: 600; color: var(--bg); background: var(--ink); border-radius: 4px; }
.claim-signin:hover, .claim-author:hover { text-decoration: none; }
/* Step 2 (story wm-1xp8e.4, the ClaimVerify artboard): each way is a card
   with its value in a banded box, its copy button and its own "Check now".
   The artboard shows one way at a time behind a picker; the page lists all
   of them, easiest first, so a reader without script sees every way. */
.claim-proof, .claim-lock, .claim-retake { display: flex; flex-direction: column; gap: 14px; }
.claim-proof-head { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.25; }
.claim-proof-lost, .claim-lock-why, .claim-released-help { font-size: 14.5px; color: var(--mute); max-width: 62ch; }
.claim-profile-held { padding: 12px 14px; border: 1px solid var(--line); background: var(--band); border-radius: 4px; font-size: 14px; }
.claim-ways { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.claim-way { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 4px; font-size: 15px; }
.claim-way-name { margin: 0; font-size: 16px; font-weight: 600; }
.claim-copy-value, .claim-retake code { font-family: var(--mono); font-size: 13.5px; overflow-wrap: anywhere; }
.claim-way .claim-copy-value { display: inline-block; max-width: 100%; margin-top: 4px; padding: 6px 10px; border: 1px solid var(--line); background: var(--band); border-radius: 4px; vertical-align: middle; }
.claim-copy { height: 28px; padding: 0 10px; margin-top: 4px; font-family: var(--mono); font-size: 12px; color: var(--ink); background: transparent; border: 1px solid var(--strong); border-radius: 4px; vertical-align: middle; cursor: pointer; }
.claim-relme-where, .claim-relme-head-only, .claim-dns-wait, .claim-dns-zone { font-size: 14px; color: var(--mute); }
.claim-github-settings { font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.claim-dns { margin: 0; display: grid; grid-template-columns: 70px minmax(0, 1fr); align-items: center; gap: 8px 14px; padding: 12px 14px; border: 1px solid var(--line); background: var(--band); border-radius: 4px; font-family: var(--mono); font-size: 13.5px; }
.claim-dns .fact { display: contents; }
.claim-dns dt { color: var(--mute); }
.claim-dns dd { margin: 0; overflow-wrap: anywhere; }
.claim-dns .claim-copy { margin: 0 0 0 8px; }
.claim-dns .claim-copy-value { display: inline; margin: 0; padding: 0; border: 0; background: none; }
.claim-dns-zone code { font-family: var(--mono); font-size: 13px; }
.claim-check { margin: 4px 0 0; }
.claim-check-button { height: 44px; padding: 0 20px; font: inherit; font-size: 15.5px; font-weight: 600; color: var(--bg); background: var(--ink); border: 1px solid var(--ink); border-radius: 4px; cursor: pointer; }
/* The DNS wait (story wm-1xp8e.5, the ClaimPending artboard): the record,
   the last check and the next in one banded box; "Check again now" is the
   outlined button and "Use a different method" a plain link. */
.claim-pending, .claim-expired { display: flex; flex-direction: column; gap: 22px; }
.claim-pending-lede, .claim-expired-lede { font-size: 16px; color: var(--mute); max-width: 62ch; }
.claim-pending-listed { font-size: 14.5px; color: var(--mute); }
.claim-pending-note { padding: 12px 14px; border: 1px solid var(--line); background: var(--band); border-radius: 4px; font-size: 14px; }
.claim-expired-name { font-family: var(--mono); font-size: 14px; }
.claim-wait-status { margin: 0; display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border: 1px solid var(--line); background: var(--band); border-radius: 4px; font-family: var(--mono); font-size: 13px; }
.claim-wait-status .fact { display: flex; justify-content: space-between; gap: 12px; }
.claim-wait-status dt { flex: 0 0 auto; color: var(--mute); text-transform: lowercase; }
.claim-wait-status dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.claim-wait-status code { font-family: inherit; font-size: inherit; }
.claim-wait-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.claim-wait-actions form { margin: 0; }
.claim-wait-actions .claim-check-button { color: var(--ink); background: transparent; }
.claim-other-way-button { padding: 0; font: inherit; font-size: 14.5px; color: var(--mute); background: none; border: 0; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
@media (max-width: 560px) {
  .claim-page.pad { padding-top: 28px; }
  .claim-head { font-size: 26px; }
  .claim-feed-row { flex-direction: column; }
  .claim-facts { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .claim-facts dd { margin-bottom: 8px; }
  .claim-way { padding: 14px; }
  .claim-dns { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .claim-dns dd { margin-bottom: 8px; }
  .claim-wait-status .fact { flex-direction: column; gap: 2px; }
  .claim-wait-status dd { text-align: left; }
}

/* The directory (docs/decisions/directory-and-exits.md, L-2; the Directory
   artboard): the intro with the whole registry's counts, the jump bar of
   letters — a link with its count where a letter holds a feed, plain muted
   text where it holds none — and the table of the letter's blogs: site,
   author, stacks and badges, claim status, last post. Below 760px the table
   becomes one card per blog. */
.directory-intro { padding: 26px 0 6px; }
.directory-title { margin: 0 0 4px; font-size: 22px; font-weight: 700; }
.directory-lede { margin: 0; color: var(--mute); }
.directory-counts { color: var(--ink); }
/* The find box, the country, Find, the stack chips and the toggles are one
   control group on the band (finding wm-brf5h7; the artboard's filter bar):
   each field's label above it in muted 12.5px, the fields 34px tall with a
   --mute border on the page colour and mono text, Find the filled ink
   button. The fields' and the check box's edges are --mute, not --strong:
   they are the only thing that draws each control, and --strong is under
   WCAG 1.4.11's 3:1 against the band and the page colour in both themes
   (Copilot review 5949972416). The claimed toggle is drawn as a check box and the order as one
   segmented pair; both stay plain links (R-4). No accent: it is only for the
   active stack chips. */
.directory-controls { display: flex; flex-direction: column; gap: 14px; margin: 16px 0 4px; padding: 16px 18px; background: var(--band); border: 1px solid var(--line); border-radius: 4px; }
.directory-find { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; margin: 0; }
.directory-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.directory-field-find { flex: 0 1 300px; }
.directory-field-country { flex: 0 1 220px; }
.directory-find-label, .directory-country-label, .directory-sorts-label { font-size: 12.5px; color: var(--mute); }
.directory-find-input, .directory-country-filter { display: block; width: 100%; min-width: 0; height: 34px; margin: 0; padding: 0 10px; border: 1px solid var(--mute); border-radius: 4px; background: var(--bg); color: var(--ink); font-family: var(--mono); font-size: 13px; }
.directory-find-input { -webkit-appearance: none; appearance: none; }
.directory-find-input::placeholder { color: var(--mute); opacity: 1; }
.directory-find-input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.directory-select { position: relative; display: block; }
/* The native arrow goes only where the wrapper draws the chevron: a page an
   edge still holds from before the wrapper keeps the browser's own arrow
   (finding wm-xmugro). */
.directory-select > .directory-country-filter { padding-right: 30px; cursor: pointer; text-overflow: ellipsis; -webkit-appearance: none; appearance: none; }
.directory-select::after { content: ""; position: absolute; top: 50%; right: 12px; width: 6px; height: 6px; border-right: 1.5px solid var(--mute); border-bottom: 1.5px solid var(--mute); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.directory-find-go { flex: 0 0 auto; height: 34px; margin: 0; padding: 0 16px; font: inherit; font-size: 14px; font-weight: 600; color: var(--bg); background: var(--ink); border: 1px solid var(--ink); border-radius: 4px; cursor: pointer; }
.directory-controls .directory-stack-filter { gap: 6px; }
.directory-toggles { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin: 0; font-size: 14px; }
.directory-claimed-toggle { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 30px; }
.directory-claimed-toggle::before { content: ""; flex: 0 0 auto; width: 16px; height: 16px; border: 1px solid var(--mute); border-radius: 3px; background: var(--bg); }
.directory-claimed-toggle[aria-current="true"]::before { background: var(--ink); border-color: var(--ink); }
.directory-claimed-toggle[aria-current="true"]::after { content: ""; position: absolute; left: 6px; top: 50%; width: 4px; height: 8px; border-right: 2px solid var(--bg); border-bottom: 2px solid var(--bg); transform: translateY(-60%) rotate(45deg); }
.directory-sorts { display: inline-flex; align-items: center; gap: 8px; }
.directory-sort-pair { display: inline-flex; }
.directory-sort { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border: 1px solid var(--strong); background: transparent; color: var(--ink); font-size: 13.5px; }
.directory-sort + .directory-sort { border-left: 0; }
.directory-sort:first-of-type { border-radius: 4px 0 0 4px; }
.directory-sort:last-of-type { border-radius: 0 4px 4px 0; }
.directory-sort[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); font-weight: 600; }
.directory-sort:hover { text-decoration: none; background: var(--chip); }
.directory-sort[aria-current="true"]:hover { background: var(--ink); }
.directory-clear { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
/* Forced colours repaint every fill, and Claimed only's check box and the
   active order segment are told by their fill alone: in forced colours each
   keeps one in the system's selection colours (finding wm-fh6ccr), as the
   menu icon keeps its bars. */
@media (forced-colors: active) {
  .directory-claimed-toggle[aria-current="true"]::before { forced-color-adjust: none; background: Highlight; border-color: Highlight; }
  .directory-claimed-toggle[aria-current="true"]::after { forced-color-adjust: none; border-color: HighlightText; }
  .directory-sort[aria-current="true"], .directory-sort[aria-current="true"]:hover { forced-color-adjust: none; background: Highlight; border-color: Highlight; color: HighlightText; }
}
@media (max-width: 760px) {
  .directory-controls { padding: 12px; }
  /* The country comes first (the form's fields keep the canonical order,
     finding wm-a8hd3q), so it takes its own row and Find sits beside the
     search. */
  .directory-field-country { flex: 1 1 100%; }
  .directory-field-find { flex: 1 1 0; }
  /* 16px text keeps a phone from zooming the page when a field takes the focus. */
  .directory-find-input, .directory-country-filter { height: 40px; font-size: 16px; }
  .directory-find-go { height: 40px; }
}
.directory-letters { padding: 14px 0; border-bottom: 1px solid var(--line); }
.letter-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.directory-letter { display: inline-flex; align-items: baseline; gap: 3px; min-width: 28px; height: 28px; padding: 0 6px; align-items: center; justify-content: center; border-radius: 4px; font-family: var(--mono); font-size: 13px; }
a.directory-letter { border: 1px solid var(--line); }
a.directory-letter[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.directory-letter-empty { color: var(--strong); }
.directory-letter-count { font-size: 10px; color: var(--mute); }
a.directory-letter[aria-current="page"] .directory-letter-count { color: var(--bg); }
.directory-in-view { margin: 22px 0 6px; font-family: var(--mono); font-size: 15px; font-weight: 600; }
/* The OPML of the list in view is an icon just right of the heading that
   names the list (finding wm-jw0lf6): "Directory" on a narrowed view, the
   letter on a letter page. The heading's margins move to the row so the
   icon centres on the heading's own box. The glyph is inline SVG in
   currentColor, --mute at rest (over 3:1 against the page in both themes)
   and --ink on hover. The hit area is 24px square, 44px on a touch screen;
   negative block margins keep it from growing the heading's row. */
.directory-heading { display: flex; align-items: center; gap: 2px; margin: 0 0 4px; }
.directory-heading > .directory-title, .directory-heading > .directory-in-view { margin: 0; }
.directory-heading-letter { margin: 22px 0 6px; }
/* The band's RSS icon (.rss-icon, wm-f9hdlt) shares the OPML icon's
   treatment: just right of the band's title, --mute on the band (over 3:1
   in both themes), --ink on hover, the same hit area and focus ring. Its
   glyph is 16px, sized to the 14px title, and its touch margins are one
   pixel deeper so the 44px area stays inside the title's 20px line. */
.opml-icon, .rss-icon { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; min-width: 24px; min-height: 24px; margin-block: -4px; border-radius: 4px; color: var(--mute); }
.opml-icon:hover, .rss-icon:hover { color: var(--ink); }
.opml-icon:focus-visible, .rss-icon:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.opml-glyph { display: block; width: 20px; height: 20px; }
.directory-heading-letter .opml-glyph, .rss-glyph { display: block; width: 16px; height: 16px; }
.band-heading { display: inline-flex; align-items: center; gap: 2px; }
@media (hover: none) and (pointer: coarse) {
  .opml-icon, .rss-icon { min-width: 44px; min-height: 44px; margin-block: -11px; }
  .rss-icon { margin-block: -12px; }
}
/* Forced colours keep the glyph in the link colour, and the focus ring in
   the system's highlight. */
@media (forced-colors: active) {
  .opml-icon, .opml-icon:hover, .rss-icon, .rss-icon:hover { color: LinkText; }
  .opml-icon:focus-visible, .rss-icon:focus-visible { outline-color: Highlight; }
}
.directory-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.directory-table th { text-align: left; font-family: var(--mono); font-size: 11.5px; font-weight: 400; color: var(--mute); padding: 8px 12px 8px 0; border-bottom: 1px solid var(--strong); }
.directory-table td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.directory-site { font-weight: 600; }
.directory-author { display: inline-flex; align-items: center; gap: 8px; }
.directory-initials { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; background: var(--chip); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 9.5px; color: var(--mute); }
.directory-cell-status, .directory-cell-age { font-family: var(--mono); font-size: 12.5px; color: var(--mute); white-space: nowrap; }
.directory-cell-status .claim-status[data-state="claimed"] { color: var(--accent); }
.directory-yours { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.directory-note { margin: 22px 0; color: var(--mute); font-size: 14px; }
.directory-claim { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 760px) {
  .directory-table thead { display: none; }
  .directory-table, .directory-table tbody, .directory-table tr, .directory-table td { display: block; width: 100%; }
  .directory-table tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .directory-table td { border-bottom: 0; padding: 3px 0; }
  /* The header is hidden here, so the two cells that hold no word of their
     own say what they are (finding wm-ggede3). */
  .directory-cell-status::before { content: "feed: "; }
  .directory-cell-age::before { content: "last post: "; }
}

/* A refused form's error (finding wm-dfs3eb): every reader form's error
   notice carries .form-error beside its own class, and is drawn as one
   bounded red box, light and dark: --error's edge on --error-bg, the text
   in ink (AA in both themes, held by TestTheFormErrorBoxIsRedAndReadable).
   The page a refusal lands on gives its one error role="alert",
   tabindex="-1" and autofocus, so it is brought into view with no script;
   a claim's stored result takes the focus only right after her post
   (findings wm-1vgv5s, wm-fb23tl). The focused box keeps a visible ring
   in --error. A success or neutral notice never carries the class. Last
   in the file, so it draws over a notice's own box (.claim-result). */
.form-error { margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--error); border-left-width: 4px; background: var(--error-bg); color: var(--ink); border-radius: 4px; font-size: 15px; max-width: 66ch; }
.form-error:focus { outline: 2px solid var(--error); outline-offset: 2px; }
.form-error > p { margin: 0 0 8px; }
.form-error > p:last-child { margin-bottom: 0; }
.form-error a { text-decoration: underline; text-underline-offset: 2px; }
