/* The Friction Log — ledger theme */

:root {
    --paper: #fbfbf9;
    --ink: #1a1a1a;
    --ink-soft: #5c5c58;
    --rule: #dcdcd6;
    --rule-strong: #1a1a1a;
    --hover: #f1f1ec;
    --stamp: #b3261e;
    --mono: var(--gh-font-body, "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
    --serif: var(--gh-font-heading, "Source Serif 4", Georgia, "Times New Roman", serif);
    --measure: 64ch;
    --wide: 1120px;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --paper: #161614;
        --ink: #e9e5dc;
        --ink-soft: #9b978e;
        --rule: #2f2e2a;
        --rule-strong: #e9e5dc;
        --hover: #1f1e1b;
        --stamp: #e0685f;
        color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --paper: #161614;
    --ink: #e9e5dc;
    --ink-soft: #9b978e;
    --rule: #2f2e2a;
    --rule-strong: #e9e5dc;
    --hover: #1f1e1b;
    --stamp: #e0685f;
    color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--mono);
    font-size: 15px;
    line-height: 1.55;
}

a { color: inherit; }

.site {
    max-width: var(--wide);
    margin: 0 auto;
    padding: 0 16px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.site-main { flex: 1; }

/* Masthead */
.masthead {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    flex-wrap: wrap;
    padding: 28px 0 14px;
    border-bottom: 2px solid var(--rule-strong);
}
.masthead-title {
    font-weight: 600;
    font-size: 17px;
    letter-spacing: 0.02em;
    text-decoration: none;
    text-transform: lowercase;
}
.masthead-nav .nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 18px;
}
.masthead-nav a { text-decoration: none; color: var(--ink-soft); }
.masthead-nav a:hover, .masthead-nav .nav-current a { color: var(--ink); text-decoration: underline; }

.ledger-head { padding: 28px 0 8px; }
.masthead-line {
    font-family: var(--serif);
    font-size: clamp(22px, 3.2vw, 30px);
    line-height: 1.25;
    margin: 0 0 8px;
    max-width: 30ch;
}
.masthead-sub { color: var(--ink-soft); margin: 0; max-width: 54ch; }

/* Controls */
.ledger-controls {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px 24px;
    padding: 18px 0 10px;
    font-size: 13px;
}
.filters { display: flex; gap: 8px; flex-wrap: wrap; color: var(--ink-soft); }
.filters a { text-decoration: none; color: var(--ink-soft); }
.filters a:hover { color: var(--ink); }
.filters a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.tally { margin: 0; color: var(--ink-soft); font-style: italic; }

/* The ledger */
.ledger { border-top: 1px solid var(--rule-strong); margin-bottom: 48px; }
.ledger-row {
    display: grid;
    grid-template-columns: 4rem minmax(0, 1fr) 4.5rem 8.5rem 5rem;
    gap: 0 18px;
    padding: 9px 4px;
    border-bottom: 1px solid var(--rule);
    text-decoration: none;
    align-items: baseline;
}
a.ledger-row:hover { background: var(--hover); }
a.ledger-row:hover .c-friction { text-decoration: underline; text-underline-offset: 3px; }
.ledger-cols {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-soft);
    border-bottom: 1px solid var(--rule-strong);
}
.c-no { font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.c-year, .c-status { font-size: 13px; color: var(--ink-soft); }
.ledger-blank .c-friction { color: var(--ink-soft); font-style: italic; }
.ledger-blank .c-no { color: var(--rule); }
.ledger-empty { padding: 18px 4px; color: var(--ink-soft); margin: 0; }

@media (max-width: 680px) {
    .ledger-row { grid-template-columns: 3.9rem minmax(0, 1fr); row-gap: 2px; gap: 0 12px; }
    .ledger-cols .c-year, .ledger-cols .c-status { display: none; }
    .c-year, .c-status { grid-column: 2; font-size: 12px; }
    .c-year:empty { display: none; }
    .c-status { margin-top: -2px; }
}

/* Entry pages */
.entry { max-width: var(--measure); margin: 0 auto; padding: 24px 0 56px; }
.entry-crumb {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--ink-soft);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--rule);
}
.entry-crumb a { text-decoration: none; }
.entry-crumb a:hover { text-decoration: underline; }
.entry-no { font-variant-numeric: tabular-nums; }
.entry-head { position: relative; padding: 28px 0 8px; }
.entry-title {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(28px, 4.4vw, 40px);
    line-height: 1.15;
    margin: 0 0 14px;
    padding-right: 120px;
}
.page-doc .entry-title { padding-right: 0; }
.entry-meta { font-size: 13px; color: var(--ink-soft); margin: 0; }
.entry-record { margin: 6px 0 4px; border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); }
.rec-row { display: grid; grid-template-columns: 7.5rem 1fr; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--rule); font-size: 13px; }
.rec-k { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); padding-top: 2px; }
.rec-v { color: var(--ink); }
.rec-solution { display: grid; grid-template-columns: 7.5rem 1fr; gap: 12px; align-items: baseline; padding: 12px 0 13px; }
.rec-solution .rec-k { color: var(--ink); font-weight: 600; }
.rec-sol { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.2; }
.rec-solution.is-empty .rec-sol { font-weight: 400; font-style: italic; color: var(--ink-soft); }
@media (max-width: 680px) { .rec-row, .rec-solution { grid-template-columns: 6rem 1fr; } .rec-sol { font-size: 21px; } }

.stamp {
    position: absolute;
    top: 30px;
    right: 0;
    transform: rotate(-9deg);
    border: 3px double var(--stamp);
    color: var(--stamp);
    padding: 6px 12px 5px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 600;
    line-height: 1.1;
    opacity: 0.88;
    mix-blend-mode: multiply;
}
:root[data-theme="dark"] .stamp { mix-blend-mode: normal; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stamp { mix-blend-mode: normal; } }
.stamp-word { display: block; font-size: 17px; }
.stamp-year { display: block; font-size: 11px; letter-spacing: 0.08em; }
.stamp-year:empty { display: none; }

@media (max-width: 680px) {
    .entry-title { padding-right: 0; }
    .stamp { position: static; display: inline-block; margin: 14px 0 4px; }
}

.entry-image { margin: 24px 0; }
.entry-image img { width: 100%; height: auto; display: block; filter: grayscale(0.2); }
.entry-image figcaption { font-size: 12px; color: var(--ink-soft); margin-top: 6px; }

.entry-body {
    font-family: var(--serif);
    font-size: 19px;
    line-height: 1.6;
    padding-top: 12px;
}
.entry-body > p:first-child em:only-child { font-size: 21px; }
.entry-body p { margin: 0 0 1.05em; }
.entry-body a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry-body h2, .entry-body h3 { font-family: var(--mono); font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; margin: 2em 0 0.6em; }
.entry-body ul, .entry-body ol { padding-left: 1.2em; }
.entry-body li { margin-bottom: 0.4em; }
.entry-body blockquote { margin: 1.2em 0; padding-left: 16px; border-left: 2px solid var(--rule-strong); color: var(--ink-soft); }
.entry-body hr { border: 0; border-top: 1px solid var(--rule); margin: 2em 0; }
.entry-body img { max-width: 100%; height: auto; }

.entry-foot { margin-top: 36px; border-top: 1px solid var(--rule-strong); padding-top: 14px; font-size: 13px; }
.entry-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.entry-nav a { text-decoration: none; display: block; }
.entry-nav a:hover { text-decoration: underline; }
.entry-nav span { display: block; color: var(--ink-soft); font-size: 12px; }
.entry-nav-next { grid-column: 2; text-align: right; }

/* Footer + subscribe (the only signup on the site) */
.site-foot { border-top: 2px solid var(--rule-strong); padding: 24px 0 32px; font-size: 13px; }
.subscribe { max-width: 520px; margin-bottom: 24px; }
.subscribe-label { display: block; margin-bottom: 10px; }
.subscribe-row { display: flex; gap: 0; }
.subscribe input {
    flex: 1;
    min-width: 0;
    font: inherit;
    color: var(--ink);
    background: transparent;
    border: 1px solid var(--rule-strong);
    border-right: 0;
    padding: 9px 10px;
    border-radius: 0;
}
.subscribe button, .theme-toggle {
    font: inherit;
    background: var(--ink);
    color: var(--paper);
    border: 1px solid var(--ink);
    padding: 9px 14px;
    cursor: pointer;
    border-radius: 0;
}
.subscribe-msg { display: none; margin: 8px 0 0; color: var(--ink-soft); }
.subscribe.success .subscribe-ok, .subscribe.error .subscribe-err { display: block; }
.subscribe.loading button { opacity: 0.6; }
.foot-row { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; color: var(--ink-soft); }
.foot-row .nav { list-style: none; margin: 0; padding: 0; display: flex; gap: 16px; }
.foot-row .nav a { text-decoration: none; }
.foot-row .nav a:hover { text-decoration: underline; }
.theme-toggle { background: transparent; color: var(--ink-soft); border-color: var(--rule); padding: 4px 10px; margin-left: auto; }
.theme-toggle:hover { color: var(--ink); border-color: var(--ink); }

/* Ghost editor cards */
.gh-content .kg-card { margin: 1.6em 0; }
.kg-width-wide { width: min(100vw - 32px, 860px); margin-left: 50%; transform: translateX(-50%); }
.kg-width-full { width: calc(100vw - 32px); margin-left: 50%; transform: translateX(-50%); }
.kg-image { max-width: 100%; height: auto; }
.kg-card figcaption { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); margin-top: 6px; }

/* Search + sorting */
.masthead-right { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.search-btn { font: inherit; background: none; border: 1px solid var(--rule); color: var(--ink-soft); padding: 2px 10px; cursor: pointer; border-radius: 0; }
.search-btn:hover { color: var(--ink); border-color: var(--ink); }
.ledger-cols .sort { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.ledger-cols .sort:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.ledger-cols .sort i { font-style: normal; margin-left: 4px; }
.ledger-cols .sort[aria-sort="descending"] { color: var(--ink); }
.ledger-cols .sort[aria-sort="ascending"] { color: var(--ink); }
.ledger-cols .sort[aria-sort="descending"] i::after { content: "\2193"; }
.ledger-cols .sort[aria-sort="ascending"] i::after { content: "\2191"; }
@media (max-width: 680px) {
    .ledger-cols { display: flex; gap: 16px; }
    .ledger-cols .c-friction { display: none; }
    .ledger-cols .c-year, .ledger-cols .c-status { display: inline; grid-column: auto; margin: 0; font-size: 11px; }
    .ledger-cols .c-year::before { content: "Sort: "; display: none; }
}

/* Recently added */
.recent { margin: 22px 0 6px; border-top: 1px solid var(--rule-strong); }
.recent-h { font-size: 11px; font-weight: 400; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); margin: 10px 0 4px; }
.recent-list { list-style: none; margin: 0; padding: 0; }
.recent-list a { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) 5rem; gap: 0 20px; padding: 6px 4px; text-decoration: none; font-size: 14px; border-bottom: 1px dotted var(--rule); align-items: baseline; }
.recent-list li:last-child a { border-bottom: 0; }
.recent-list a:hover { background: var(--hover); }
.recent-list a:hover .recent-title { text-decoration: underline; text-underline-offset: 3px; }
.recent-no { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.recent-list time { color: var(--ink-soft); font-size: 12px; text-align: right; }
@media (max-width: 680px) { .recent-list a { grid-template-columns: 3.9rem minmax(0, 1fr); gap: 0 12px; } .recent-list time { display: none; } }

/* Corrections + missed fixes */
.entry-report { margin-top: 36px; padding: 14px 0 2px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--ink-soft); }
.entry-report p { margin: 0 0 12px; max-width: 60ch; }
.entry-report strong { color: var(--ink); font-weight: 600; }
.report-link { color: var(--ink); white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; margin-left: 4px; }
.report-link::after { content: " \2192"; }
.entry-report + .entry-foot { margin-top: 14px; }

/* Sort link in controls */
.filters-sep { color: var(--rule); }
.filters .sort { font: inherit; background: none; border: 0; padding: 0; color: var(--ink-soft); cursor: pointer; }
.filters .sort:hover { color: var(--ink); }
.filters .sort[aria-sort] { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.filters .sort i { font-style: normal; margin-left: 3px; }
.filters .sort[aria-sort="descending"] i::after { content: "\2193"; }
.filters .sort[aria-sort="ascending"] i::after { content: "\2191"; }

/* Finder */
.finder { position: fixed; inset: 0; background: rgba(20, 20, 18, 0.45); display: none; align-items: flex-start; justify-content: center; padding: 10vh 16px 16px; z-index: 50; }
.finder.is-open { display: flex; }
html.finder-open { overflow: hidden; }
.finder-box { width: 100%; max-width: 640px; background: var(--paper); color: var(--ink); border: 1px solid var(--rule-strong); box-shadow: 0 18px 50px rgba(0,0,0,0.25); font-family: var(--mono); }
.finder-row { display: flex; border-bottom: 2px solid var(--rule-strong); }
.finder-input { flex: 1; min-width: 0; font: inherit; font-size: 17px; padding: 14px 16px; border: 0; background: transparent; color: var(--ink); outline: none; }
.finder-input::placeholder { color: var(--ink-soft); font-style: italic; }
.finder-close { font: inherit; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; background: none; border: 0; border-left: 1px solid var(--rule); padding: 0 14px; color: var(--ink-soft); cursor: pointer; }
.finder-close:hover { color: var(--ink); }
.finder-note { margin: 0; padding: 8px 16px; font-size: 11px; color: var(--ink-soft); border-bottom: 1px solid var(--rule); }
.finder-list { list-style: none; margin: 0; padding: 0; max-height: 60vh; overflow-y: auto; }
.finder-list a { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 0 14px; padding: 10px 16px; text-decoration: none; border-bottom: 1px solid var(--rule); }
.finder-list a:hover, .finder-list a:focus { background: var(--hover); outline: none; }
.finder-no { color: var(--ink-soft); font-variant-numeric: tabular-nums; font-size: 13px; padding-top: 2px; }
.finder-title { display: block; font-size: 14px; }
.finder-meta { display: block; font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.finder-empty { padding: 14px 16px; font-size: 13px; color: var(--ink-soft); }
.finder-empty a { color: var(--ink); }

/* File a friction */
.masthead-file { font: inherit; font-size: 13px; color: var(--paper); background: var(--ink); text-decoration: none; padding: 3px 10px; white-space: nowrap; border: 1px solid var(--ink); }
.masthead-file:hover { opacity: 0.85; }
.ledger-blank .c-friction .file-cta { font-style: normal; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; margin-left: 8px; }
.file { padding: 28px 0 56px; }
.file-head { max-width: var(--measure); margin-bottom: 28px; }
.file-kicker { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); margin: 0 0 10px; }
.file-title { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 4.2vw, 40px); line-height: 1.15; margin: 0 0 14px; }
.file-lede { font-family: var(--serif); font-size: 19px; line-height: 1.5; color: var(--ink-soft); margin: 0; }
.file-grid { display: grid; grid-template-columns: minmax(0, 1fr) 17rem; gap: 40px; align-items: start; }
.file-label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.file-input { display: block; width: 100%; box-sizing: border-box; font-family: var(--serif); font-size: 22px; line-height: 1.35; padding: 12px 0; border: 0; border-top: 2px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); background: transparent; color: var(--ink); resize: vertical; outline: none; }
.file-input::placeholder { color: var(--ink-soft); font-style: italic; opacity: 0.7; }
.file-input:focus { border-bottom-width: 2px; }
.file-count { text-align: right; font-size: 11px; color: var(--ink-soft); margin: 4px 0 18px; }
.file-match { border: 1px solid var(--rule-strong); padding: 14px 16px; margin-bottom: 18px; }
.file-match-head { margin: 0 0 10px; font-weight: 600; }
.file-match-list { list-style: none; margin: 0; padding: 0; }
.file-match-item { padding: 10px 0; border-top: 1px solid var(--rule); }
.file-match-title { color: var(--ink); font-family: var(--serif); font-size: 17px; text-decoration: none; }
.file-match-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.file-match-no { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); margin-right: 10px; }
.file-match-meta { margin: 4px 0 0; font-size: 12px; color: var(--ink-soft); }
.file-match-note { margin: 6px 0 0; font-size: 12px; color: var(--ink-soft); font-style: italic; }
.file-vote { display: inline-block; text-decoration: none; margin-top: 8px; font: inherit; font-size: 12px; background: none; border: 1px solid var(--rule-strong); color: var(--ink); padding: 5px 10px; cursor: pointer; }
.file-vote:hover { background: var(--ink); color: var(--paper); }
.file-match-foot { margin: 10px 0 0; font-size: 12px; color: var(--ink-soft); }
.file-read { margin-bottom: 18px; }
.file-read-head { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); margin: 0 0 6px; }
.file-checks { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.file-checks li { display: grid; grid-template-columns: 1.4rem 1fr; padding: 3px 0; }
.file-checks .is-ok { color: var(--ink-soft); }
.file-checks .is-flag { color: var(--ink); }
.file-checks .is-flag .file-mark { color: var(--stamp); font-weight: 600; }
.file-read-foot { font-size: 11px; color: var(--ink-soft); margin: 6px 0 0; font-style: italic; }
.file-agree { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; margin: 6px 0 14px; cursor: pointer; }
.file-agree input { margin-top: 2px; accent-color: var(--ink); }
.file-go { font: inherit; font-size: 14px; background: var(--ink); color: var(--paper); border: 0; padding: 11px 18px; cursor: pointer; }
.file-go::after { content: " \2192"; }
.file-go:disabled { opacity: 0.35; cursor: not-allowed; }
.file-next { font-size: 12px; color: var(--ink-soft); margin: 10px 0 0; }
.file-done { margin: 16px 0 0; padding: 12px 14px; border-left: 3px solid var(--ink); font-size: 13px; }
.file-rules { border-top: 2px solid var(--rule-strong); padding-top: 10px; font-size: 13px; }
.file-rules-head { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 400; margin: 0 0 10px; color: var(--ink-soft); }
.file-rules-list { margin: 0 0 14px; padding-left: 1.3em; }
.file-rules-list li { margin-bottom: 9px; line-height: 1.45; }
.file-rules-list strong { font-weight: 600; }
.file-rules-more { color: var(--ink-soft); margin: 0; line-height: 1.5; }
.file-rules-more a { color: var(--ink); }
@media (max-width: 760px) {
    .file-grid { grid-template-columns: 1fr; gap: 28px; }
    .file-rules { order: -1; }
    .file-input { font-size: 19px; }
}

/* Votes */
.vote { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 20px; align-items: center; margin: 36px 0 28px; padding: 16px 18px; border: 1px solid var(--rule-strong); }
.vote-q { margin: 0; font-family: var(--serif); font-size: 19px; }
.vote-count { margin: 4px 0 0; font-size: 12px; color: var(--ink-soft); }
.vote-btn { font: inherit; font-size: 14px; background: var(--ink); color: var(--paper); border: 1px solid var(--ink); padding: 10px 16px; cursor: pointer; white-space: nowrap; }
.vote-btn:hover { opacity: 0.88; }
.vote-btn:disabled { cursor: default; opacity: 1; }
.vote.is-voted .vote-btn { background: transparent; color: var(--ink); }
.vote.is-voted .vote-btn::before { content: "\2713  "; }
.vote-form, .vote-check, .vote-status { grid-column: 1 / -1; }
.vote-form[hidden] { display: none; }
.vote-form-label { display: block; font-size: 13px; margin-bottom: 8px; }
.vote-row { display: flex; gap: 8px; flex-wrap: wrap; }
.vote-row input { flex: 1 1 14rem; min-width: 0; font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--rule-strong); background: var(--paper); color: var(--ink); }
.vote-row button { font: inherit; font-size: 14px; padding: 8px 14px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); cursor: pointer; }
.vote-optin { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--ink-soft); margin-top: 8px; }
.vote-optin input { accent-color: var(--ink); }
.vote-msg { display: none; font-size: 12px; margin: 8px 0 0; }
.vote-form.success .vote-ok, .vote-form.error .vote-err { display: block; }
.vote-form.success .vote-row, .vote-form.success .vote-optin { display: none; }
.vote-form.loading button { opacity: 0.6; }
.vote-status { margin: 0; font-size: 13px; }
.vote-status:empty, .vote-check:empty { display: none; }
.c-votes { color: var(--ink); }
@media (max-width: 560px) { .vote { grid-template-columns: 1fr; } .vote-btn { width: 100%; } }
.c-friction { text-wrap: pretty; }
.c-status { white-space: nowrap; }
.c-tally { font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }
.ledger-cols .c-tally { font-size: inherit; }
.c-vote { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 3px; cursor: pointer; white-space: nowrap; }
a.ledger-row:hover .c-vote, .c-vote:hover { text-decoration-color: var(--ink); }
@media (max-width: 680px) {
    .ledger-row:not(.ledger-cols) { grid-template-columns: 3.9rem auto auto minmax(0, 1fr); grid-template-areas: "no fr fr fr" "no st yr tl"; column-gap: 0; }
    .ledger-row:not(.ledger-cols) .c-no { grid-area: no; }
    .ledger-row:not(.ledger-cols) .c-friction { grid-area: fr; padding-left: 12px; }
    .ledger-row:not(.ledger-cols) .c-status { grid-area: st; margin: 0; padding-left: 12px; }
    .ledger-row:not(.ledger-cols) .c-year { grid-area: yr; padding-left: 10px; }
    .ledger-row:not(.ledger-cols) .c-tally { grid-area: tl; text-align: left; font-size: 12px; padding-left: 10px; }
    .ledger-row:not(.ledger-cols) .c-tally:empty { display: none; }
    .c-tally .c-vote.has-count::after { content: none; }
    .ledger-cols .c-tally { display: inline; }
}
.ledger-cols .c-year, .ledger-cols .c-status, .ledger-cols .c-tally { font-size: 11px; }
.prompt-line { display: flex; align-items: center; gap: 12px; height: 54px; border-bottom: 1px solid var(--rule-strong); text-decoration: none; color: var(--ink-soft); }
.prompt-caret { flex: none; width: 12px; height: 24px; background: var(--stamp); }
.prompt-hint { font-size: 14px; opacity: 0; transition: opacity 0.15s; }
.prompt-line:hover .prompt-hint, .prompt-line:focus-visible .prompt-hint { opacity: 1; }
@media (max-width: 680px) { .prompt-line { height: 48px; } .prompt-caret { width: 11px; height: 22px; } }


/* ===== v0.8: mobile layout, stamp on the record, one-tap votes ===== */

/* The caret lives in the masthead, right after the name */
.masthead-brand { display: inline-flex; align-items: baseline; font-size: 17px; }
.title-caret { display: inline-block; width: 0.55em; height: 1.1em; margin-left: 4px; background: var(--stamp); align-self: center; animation: fl-blink 1.1s steps(1, end) infinite; }
@keyframes fl-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .title-caret { animation: none; } }
.prompt-line { display: none; }

/* Vote on the ledger: a real button, with the count once there is one */
.c-vote { display: inline-block; border: 1px solid var(--rule-strong); padding: 3px 10px; font-size: 12px; line-height: 1.4; text-decoration: none; text-align: center; color: var(--ink); }
a.ledger-row:hover .c-vote, .c-vote:hover { background: var(--ink); color: var(--paper); }
.c-vote.has-count { font-weight: 600; }
.c-tally .c-vote.has-count::after { content: none; }
.c-vote.is-voted::before { content: "\2713  "; }
.c-vote.is-busy { opacity: 0.5; }

@media (max-width: 680px) {
  .ledger-row:not(.ledger-cols) {
    grid-template-columns: 5.4rem minmax(0, 1fr) auto;
    grid-template-areas: "no fr tl" "st fr tl" "yr fr tl" ". fr tl";
    column-gap: 12px; row-gap: 0; align-items: start; padding: 12px 4px;
  }
  .ledger-row:not(.ledger-cols) .c-friction { padding-left: 0; }
  .ledger-row:not(.ledger-cols) .c-status, .ledger-row:not(.ledger-cols) .c-year { padding-left: 0; margin: 2px 0 0; font-size: 11px; line-height: 1.3; white-space: normal; }
  .ledger-row:not(.ledger-cols) .c-tally { padding-left: 0; align-self: center; }
  .c-vote { padding: 8px 10px; min-width: 3.8rem; }
  .c-tally .c-vote.has-count::after { content: none; display: block; font-size: 10px; font-weight: 400; opacity: 0.75; }
}

/* The Solved stamp: always the same size, landing a little differently on each entry, over the record */
.stamp { padding: 8px 16px 7px; border-width: 4px; }
.stamp-word { font-size: 26px; letter-spacing: 0.12em; }
.stamp-year { font-size: 14px; }
.entry-record { position: relative; }
.entry-record .stamp { position: absolute; display: block; margin: 0; top: var(--y, 4px); right: var(--x, 2%); transform: rotate(var(--r, -8deg)); z-index: 1; pointer-events: none; }
.has-record-stamp .entry-title { padding-right: 0; }

/* Vote box: one compact row at every width */
.vote { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; padding: 12px 14px; margin: 28px 0 22px; }
.vote-q { font-size: 18px; }
.vote-count { margin: 2px 0 0; font-size: 12px; color: var(--ink-soft); }
.vote-count[hidden] { display: none; }
.vote-btn { padding: 7px 18px; font-size: 13px; }
.vote-follow-btn { grid-column: 1 / -1; justify-self: start; font: inherit; font-size: 12px; background: none; border: 1px solid var(--rule-strong); color: var(--ink); padding: 6px 12px; cursor: pointer; }
.vote-follow-btn[hidden] { display: none; }
.vote-follow-btn:hover { background: var(--ink); color: var(--paper); }
.vote-check-float { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 60; }
.vote-check-float:empty { display: none; }
@media (max-width: 560px) {
  .vote { grid-template-columns: minmax(0, 1fr) auto; }
  .vote-btn { width: auto; }
  .vote-q { font-size: 17px; }
}


/* ===== v0.8.1: mobile ledger as a true three-column table ===== */
@media (max-width: 680px) {
  .ledger-row, .ledger-row:not(.ledger-cols) {
    display: grid;
    grid-template-columns: 4.6rem minmax(0, 1fr) 4.4rem;
    grid-template-areas: "no fr tl" "st fr tl" "yr fr tl" ". fr tl";
    column-gap: 12px; row-gap: 0; align-items: start; padding: 12px 4px;
  }
  .ledger-row > * { grid-column: auto; }
  .ledger-row .c-no { grid-area: no; }
  .ledger-row .c-friction { grid-area: fr; padding-left: 0; text-wrap: wrap; }
  .ledger-row .c-status { grid-area: st; }
  .ledger-row .c-year { grid-area: yr; }
  .ledger-row .c-tally { grid-area: tl; align-self: start; text-align: right; padding-left: 0; }
  .ledger-row:not(.ledger-cols) .c-tally { align-self: start; }
  .ledger-row:not(.ledger-cols) .c-status, .ledger-row:not(.ledger-cols) .c-year { padding-left: 0; margin: 3px 0 0; font-size: 11px; line-height: 1.3; white-space: normal; }
  .c-vote { display: block; width: 100%; padding: 6px 0; min-width: 0; margin-top: -3px; }
  .ledger-cols { padding: 8px 4px; align-items: end; }
  .ledger-cols .c-friction { display: block; }
  .ledger-cols .c-status, .ledger-cols .c-year { display: none; }
  .ledger-cols .c-tally { display: block; text-align: right; }
}


/* ===== v0.8.2: the Solved stamp sits in the top bar, centered between the ledger link and the entry number.
   Same size every time; the angle and a few pixels of position change from entry to entry, like a hand stamp. ===== */
.entry-crumb { align-items: center; }
.entry-crumb .stamp { position: static; display: block; margin: 0 8px; transform: translate(var(--dx, 0), var(--dy, 0)) rotate(var(--r, -6deg)); padding: 4px 10px 3px; border-width: 3px; opacity: 0.85; flex: none; pointer-events: none; }
.entry-crumb .stamp .stamp-word { font-size: 17px; letter-spacing: 0.12em; }
.entry-crumb .stamp .stamp-year { font-size: 10px; }
@media (max-width: 680px) { .entry-crumb .stamp { position: static; display: block; margin: 0 6px; } }


/* ===== v0.8.3: inked stamps, and a mini stamp on solved rows ===== */
.stamp-year { text-transform: none; }
.c-stamp { display: inline-block; color: var(--stamp); border: 2px double var(--stamp); padding: 3px 6px 2px; font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.15; text-align: center; white-space: nowrap; transform: translate(var(--dx, 0), var(--dy, 0)) rotate(var(--r, -6deg)); pointer-events: none; }
.c-stamp small { display: block; font-size: 9px; font-weight: 600; letter-spacing: 0.04em; text-transform: none; }
.ledger-row.tag-solved .c-tally { align-self: center; text-align: center; }
@media (max-width: 680px) {
  .ledger-row.tag-solved .c-status, .ledger-row.tag-solved .c-year { display: none; }
  .ledger-row.tag-solved .c-tally { align-self: center; justify-self: center; text-align: center; }
}


/* ===== v0.8.5: charcoal stamp ink; solved rows show a plain box like the vote count ===== */
:root { --stamp-ink: #3a3a37; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --stamp-ink: #c8c3b8; } }
:root[data-theme="dark"] { --stamp-ink: #c8c3b8; }
.stamp { color: var(--stamp-ink); border-color: var(--stamp-ink); mix-blend-mode: normal; }
.c-solved { display: inline-block; border: 1px solid var(--rule-strong); padding: 3px 10px; font-size: 12px; line-height: 1.4; text-align: center; color: var(--ink); white-space: nowrap; }
.c-solved small { display: block; font-size: 10px; opacity: 0.75; }
.ledger-row.tag-solved .c-tally { align-self: start; text-align: right; }
@media (max-width: 680px) {
  .ledger-row.tag-solved .c-tally { align-self: start; justify-self: stretch; text-align: center; }
  .c-solved { display: block; width: 100%; padding: 6px 0; margin-top: -3px; }
}

.entry-crumb .stamp .stamp-year { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; }

/* 0.8.8: Follow link, frozen bar (shows on scroll up), sticky ledger headings, follow line in the blank row */
.masthead-follow { color: var(--ink-soft); text-decoration: none; }
.masthead-follow:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--rule-strong); transform: translateY(-101%); transition: transform 0.18s ease; }
.navbar.is-on { transform: none; }
.navbar-in { max-width: var(--wide); margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 18px; font-size: 14px; }
.navbar-in .nav { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; }
.navbar-in .nav a { color: var(--ink-soft); text-decoration: none; }
.navbar-in .nav a:hover, .navbar-in .nav-current a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.navbar-spacer { flex: 1; }
.ledger-cols { position: sticky; top: var(--bar-h, 0px); z-index: 30; background: var(--paper); transition: top 0.18s ease; }
@media (prefers-reduced-motion: reduce) { .navbar, .ledger-cols { transition: none; } }
@media (max-width: 560px) {
    .navbar-in { gap: 12px; font-size: 13px; padding: 8px 12px; }
    .navbar-in .nav { gap: 12px; }
    .navbar-in .nav-ledger { display: none; }
    .navbar .masthead-file .long { display: none; }
}

/* 0.8.10: on phones the blank row spans the full width; the question wraps like an entry title and "File it" sits where the vote box goes */
@media (max-width: 680px) {
    .ledger .ledger-row.ledger-blank { align-items: center; }
    .ledger .ledger-row.ledger-blank .c-friction { grid-column: 2 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
    .ledger-row.ledger-blank .c-year, .ledger-row.ledger-blank .c-status { display: none; }
    .ledger-blank .c-friction .file-cta { white-space: nowrap; margin-left: 0; text-decoration: none; font-style: normal; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); padding: 3px 10px; font-size: 13px; }
}

/* 0.8.11: "What happens to it" note on the File page */
.file-rules-next { margin-top: 22px; }

/* 0.8.14: on phones the blank row's question uses the No. column too */
@media (max-width: 680px) {
  .ledger .ledger-row.ledger-blank .c-no { display: none; }
  .ledger .ledger-row.ledger-blank .c-friction { grid-column: 1 / -1; }
}

/* 0.8.14: the vote. Fast, one step at a time: press, the count rolls, a red rule, your number. */
.odo { position: relative; display: inline-flex; vertical-align: bottom; font-variant-numeric: tabular-nums; }
.odo-d { position: relative; display: inline-block; overflow: hidden; height: 1.4em; line-height: 1.4em; }
.odo-d > span { display: block; transition: transform .42s cubic-bezier(.2,.8,.2,1); }
.odo-hot { color: var(--stamp); transition: color .5s ease; }
.odo-hot.cool { color: inherit; }
.odo-rule { position: absolute; left: 0; right: 0; bottom: 1px; height: 1.5px; background: var(--stamp); transform: scaleX(0); transform-origin: left; transition: transform .26s cubic-bezier(.3,.7,.2,1); }
.odo-rule.on { transform: scaleX(1); }
.vote-n { position: relative; display: inline-block; }
.is-voted .vote-n::after, .vote.is-voted .vote-count .vote-n::after { content: ""; position: absolute; left: 0; right: 0; bottom: 1px; height: 1.5px; background: var(--stamp); }
.vote-press { animation: vote-press .2s ease-out; }
@keyframes vote-press { 0% { transform: scale(1); } 40% { transform: scale(.94); } 100% { transform: scale(1); } }
.vote-q-t { display: inline-block; transition: opacity .15s ease, transform .15s ease; }
.vote-q-t.out { opacity: 0; transform: translateY(-6px); }
.vote-q-t.in { animation: vote-q-in .34s cubic-bezier(.2,.8,.2,1); }
@keyframes vote-q-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.vote-q-t b { font-weight: inherit; color: var(--stamp); transition: color .5s ease; }
.vote-q-t b.cool { color: inherit; }
.vote-follow-btn:not([hidden]), .vote-form:not([hidden]) { animation: vote-q-in .3s ease; }
.vote.is-voted .vote-btn.is-counting::before { content: none; }

/* ledger: the box keeps its size while the number rolls; the check slides in after */
.c-vote.odo-host { position: relative; }
.c-vote.odo-host:not(.is-voted), a.ledger-row:hover .c-vote.odo-host:not(.is-voted) { background: transparent; color: var(--ink); }
.c-vote.odo-host.is-voted::before { content: none; }
.odo-chk { display: inline-block; overflow: hidden; max-width: 0; opacity: 0; vertical-align: bottom; transition: max-width .25s ease, opacity .25s ease; }
.odo-chk.on { max-width: 1.4em; opacity: 1; }
.vote-tip { position: absolute; right: 0; top: calc(100% + 4px); z-index: 2; font-size: 11px; font-weight: 400; white-space: nowrap; color: var(--ink); background: var(--paper); padding: 0 2px; opacity: 0; transform: translateY(-3px); transition: opacity .2s ease, transform .2s ease; pointer-events: none; }
.vote-tip.on { opacity: .8; transform: none; }
.c-vote.is-busy { opacity: 1; }
.haptic-switch { position: fixed; left: -100px; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .odo-d > span, .odo-rule, .odo-hot, .vote-q-t, .vote-q-t b, .odo-chk, .vote-tip { transition-duration: .01s !important; }
  .vote-press, .vote-q-t.in, .vote-follow-btn:not([hidden]), .vote-form:not([hidden]) { animation: none !important; }
}

/* 0.8.15: on phones "You're No. N" wraps under the vote box instead of running over the title */
@media (max-width: 680px) {
  .vote-tip { left: 0; right: 0; white-space: normal; text-align: center; line-height: 1.3; }
}


/* 0.8.18: once you have voted, the box stays filled (ink), with the check and the red underline */
.c-vote { transition: background-color .25s ease, color .25s ease, border-color .25s ease; }
.c-vote.is-voted, a.ledger-row:hover .c-vote.is-voted { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.vote.is-voted .vote-btn, .vote.is-voted .vote-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); opacity: 1; }

/* 0.8.20: quicker vote. Motion starts on the tap; the number waits for the server. */
.odo-d > span { transition-duration: .3s; }
.odo-hot { transition-duration: .35s; }
.odo-rule { transition-duration: .2s; }
.vote-q-t.in { animation-duration: .26s; }
@media (prefers-reduced-motion: reduce) {
  .odo-d > span, .odo-rule, .odo-hot, .vote-q-t, .vote-q-t b, .odo-chk, .vote-tip { transition-duration: .01s !important; }
  .vote-q-t.in { animation: none !important; }
}

/* ---- 0.9.0 (2026-10-02) ---- */

/* Masthead trial B, moved from code injection: bigger wordmark, three letters tucked in. */
.masthead-brand, .masthead-title { font-size: 26px; }
@media (max-width: 560px) { .masthead-brand, .masthead-title { font-size: 21px; } }
.mh-k1 { margin-left: -0.10em; }
.mh-k2 { margin-left: -0.14em; }

/* Sources: the entry's source table, closed by default. Filled in by site.js from the post's data. */
.entry-sources { margin: 28px 0 0; font-size: 13px; color: var(--ink-soft); }
.entry-sources details { border-top: 1px solid var(--rule); padding-top: 12px; }
.entry-sources summary { cursor: pointer; color: var(--ink); width: max-content; list-style: none; }
.entry-sources summary::-webkit-details-marker { display: none; }
.entry-sources summary::before { content: "+"; display: inline-block; width: 1.2em; color: var(--ink-soft); }
.entry-sources details[open] summary::before { content: "\2212"; }
.entry-sources summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.entry-sources .src-count { color: var(--ink-soft); }
.entry-sources ol { margin: 12px 0 0; padding: 0; list-style: none; max-width: 64ch; }
.entry-sources li { padding: 10px 0; border-top: 1px dotted var(--rule); }
.entry-sources li:first-child { border-top: 0; padding-top: 2px; }
.entry-sources .src-claim { margin: 0 0 4px; color: var(--ink); }
.entry-sources .src-links { margin: 0; }
.entry-sources .src-links a { color: var(--ink-soft); text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 2px; overflow-wrap: anywhere; }
.entry-sources .src-links a:hover { color: var(--ink); }
.entry-sources .src-note { margin: 12px 0 0; max-width: 60ch; }

/* Comments: only on Open and Patched entries, only when Ghost comments are on. */
.entry-talk { margin-top: 36px; padding-top: 14px; border-top: 1px solid var(--rule); }
.entry-talk-lead { font-size: 13px; color: var(--ink-soft); margin: 0 0 12px; max-width: 60ch; }
.entry-talk-lead strong { color: var(--ink); font-weight: 600; }

/* 0.9.2: signed-out readers get our own invitation instead of Ghost's sign-up box. */
.talk-join { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 14px; margin: 4px 0 6px; font-size: 13px; color: var(--ink-soft); }
.talk-count:empty { display: none; }
.talk-count { color: var(--ink); }
.talk-btn { color: var(--paper); background: var(--ink); text-decoration: none; padding: 5px 12px; border: 1px solid var(--ink); white-space: nowrap; }
.talk-btn:hover { opacity: 0.85; }
.talk-btn:focus-visible, .talk-or a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.talk-or a { color: var(--ink); text-underline-offset: 3px; }
.talk-fine { margin: 0; font-size: 12px; color: var(--ink-soft); }

/* 0.9.3: the SOLVED stamp is ink-gray. Red is kept for "your move" only (logo notes, 2026-10). */
:root { --stamp-ink: #3a3a37; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --stamp-ink: #c9c4b9; } }
:root[data-theme="dark"] { --stamp-ink: #c9c4b9; }
.stamp { border-color: var(--stamp-ink); color: var(--stamp-ink); }

/* 0.9.5: "Count me" on the ledger, "✓ Counted" after; the count sits under the word. */
.c-vote small { display: block; font-size: 10px; font-weight: 400; opacity: 0.75; }
.c-tally .c-vote.has-count::after, .c-tally .c-vote.has-count::after { content: none; }
.c-vote:hover, a.ledger-row:hover .c-vote { background: var(--ink); color: var(--paper); }

/* 0.9.8: Ghost's comment box. Without this, a dark page paints an opaque white block behind the frame. */
.entry-talk iframe { color-scheme: light; background: transparent; }

/* 0.9.10: on phones, "Say thanks" (in bold, with a count) is wider than "Count me"; keep it inside its box. */
@media (max-width: 680px) {
  .ledger-row, .ledger-row:not(.ledger-cols) { grid-template-columns: 4.6rem minmax(0, 1fr) 5.4rem; }
  .c-tally .c-vote { padding-left: 6px; padding-right: 6px; white-space: nowrap; }
}

/* ===== 0.10.0 (2026-10-07): filer's line under the title, record box above the note, status as the record's label ===== */
.entry-title { margin-bottom: 12px; }
.entry-head .entry-filer { font-family: var(--serif); font-size: 19px; line-height: 1.5; margin: 0 0 18px; max-width: 62ch; }
.entry-head .entry-filer em { font-size: 19px; }
.entry-filer .attr { font-family: var(--mono); font-size: 12px; font-style: normal; color: var(--ink-soft); white-space: nowrap; }
.rec-k.is-status { color: var(--ink); font-weight: 400; }
.rec-solution .rec-k { font-weight: 400; color: var(--ink-soft); }
.rec-solution .rec-k.is-status { color: var(--ink); }
.entry-body { padding-top: 22px; }
.entry-body p.entry-closing, .entry-body p.entry-lineage { font-size: 17px; }
@media (max-width: 680px) {
    .entry-head .entry-filer, .entry-head .entry-filer em { font-size: 17px; }
    .entry-filer .attr { font-size: 11px; }
}

/* ===== 0.10.2 (2026-10-08): record box label column fits "PARTIALLY SOLVED" so values line up on every entry ===== */
.rec-row, .rec-solution { grid-template-columns: 9.75rem minmax(0, 1fr); }
.rec-k { line-height: 1.35; }
@media (max-width: 680px) { .rec-row, .rec-solution { grid-template-columns: 7.4rem minmax(0, 1fr); gap: 10px; } .rec-k { font-size: 10px; letter-spacing: 0.04em; white-space: nowrap; } }


/* 0.10.4: no separate Solved column (2026-10-03). The status reads "Solved 1989"; the solved box in the count column is phone-only. */
@media (min-width: 681px) {
    .ledger-row { grid-template-columns: 4rem minmax(0, 1fr) 10rem 5rem; }
    .ledger-row .c-year { display: none; }
    .ledger-row .c-solved { display: none; }
}
@media (max-width: 680px) { .c-status-year { display: none; } }
/* 0.10.4: no per-entry "email me if solved" until those emails exist. One email a week only. */
.vote:not([data-kind="thanks"]) [data-vote-follow-now], .vote:not([data-kind="thanks"]) [data-vote-follow] { display: none !important; }

/* 0.10.5: one line above the ledger (theme setting ledger_line) */
.ledger-lead { font: 400 15px/1.55 "IBM Plex Mono", ui-monospace, monospace; color: var(--ink); margin: 26px 0 10px; }


/* ===== 0.10.6 (2026-10-09): closing label as a brand mark; "Open the full file" ===== */
.entry-body p.entry-closing { border-top: 1px solid var(--rule); padding-top: 16px; margin-top: 26px; }
.entry-body p.entry-closing > strong:first-child { font-family: var(--mono); font-weight: 600; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); white-space: nowrap; margin-right: 10px; position: relative; top: -1px; }
.entry-body p.entry-closing > strong:first-child::before { content: ""; display: inline-block; width: 0.55em; height: 1.05em; background: var(--stamp); margin-right: 7px; vertical-align: -0.18em; }
.entry-body details.entry-file { margin: 4px 0 1.05em; }
.entry-body details.entry-file > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; color: var(--ink); border: 1px solid var(--ink); padding: 7px 14px; min-height: 36px; }
.entry-body details.entry-file > summary::-webkit-details-marker { display: none; }
.entry-body details.entry-file > summary::after { content: "+"; font-weight: 600; }
.entry-body details.entry-file[open] > summary::after { content: "\2212"; }
.entry-body details.entry-file[open] > summary { margin-bottom: 18px; }
.entry-body details.entry-file p { font-size: 17px; line-height: 1.6; }
@media (max-width: 680px) { .entry-body p.entry-closing > strong:first-child { font-size: 11px; } }


/* 0.10.9 (2026-10-12): phone ledger header trimmed; "From the archive" row */
.tally .t-s { display: none; }
@media (max-width: 680px) {
  .tally .t-l { display: none; }
  .tally .t-s { display: inline; }
  .filters .filters-sep, .filters .sort-added { display: none; }
}

/* 0.10.10: Tell the clerk page */
.tell .tell-entry { font: italic 400 19px/1.35 "Source Serif 4", Georgia, serif; margin: 0 0 10px; }
.tell .tell-back { color: inherit; text-decoration: none; }
.tell .tell-back:hover { text-decoration: underline; }
.tell iframe { display: block; border: 0; min-height: 360px; }

/* Tally embeds: dark text on a transparent background; invert in dark mode so they match the site */
:root[data-theme="dark"] .tell iframe, :root[data-theme="dark"] .file-embed iframe { filter: invert(1) hue-rotate(180deg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tell iframe, :root:not([data-theme="light"]) .file-embed iframe { filter: invert(1) hue-rotate(180deg); } }

/* 0.10.10: Start here strip on the home page */
.start-here { margin: 18px 0 20px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.start-here .sh-k { font: 400 10px/1.3 "IBM Plex Mono", ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin: 10px 0 8px; }
.start-here .sh-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; padding: 0 0 16px; }
.start-here .sh-item { display: block; color: var(--ink); text-decoration: none; }
.start-here .sh-s { display: block; font: 400 11px/1.3 "IBM Plex Mono", ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 5px; }
.start-here .sh-t { display: block; font: 600 18px/1.3 "Source Serif 4", Georgia, serif; }
.start-here .sh-d { display: block; font: 400 13px/1.45 "IBM Plex Mono", ui-monospace, monospace; color: var(--ink-soft); margin-top: 5px; }
.start-here .sh-item:hover .sh-t { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 680px) {
  .start-here .sh-list { grid-template-columns: 1fr; padding: 0; }
  .start-here .sh-item { padding: 10px 0; border-top: 1px solid var(--rule); }
  .start-here .sh-item:first-child { border-top: 0; padding-top: 0; }
  .start-here .sh-t { font-size: 17px; }
}

/* Is it on file? (0.10.12) */
.onfile { margin: 18px 0 6px; }
.onfile-k { display: block; font: 600 22px/1.25 "Source Serif 4", Georgia, serif; color: var(--ink); margin: 0 0 8px; }
.onfile-row { display: flex; gap: 0; border: 1px solid var(--ink); }
.onfile-q { flex: 1 1 auto; min-width: 0; font: 400 17px/1.4 "Source Serif 4", Georgia, serif; color: var(--ink); background: transparent; border: 0; border-radius: 0; padding: 11px 12px; -webkit-appearance: none; appearance: none; }
.onfile-q::placeholder { color: var(--ink-soft); opacity: 1; }
.onfile-q:focus { outline: 2px solid var(--stamp); outline-offset: -2px; }
.onfile-q::-webkit-search-cancel-button { -webkit-appearance: none; }
.onfile-go { flex: 0 0 auto; font: 400 13px/1 "IBM Plex Mono", ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--paper); background: var(--ink); border: 0; border-radius: 0; padding: 0 18px; cursor: pointer; }
.onfile-go:hover, .onfile-go:focus-visible { background: var(--stamp); outline: none; }
.onfile-sub { font: 400 13px/1.45 "IBM Plex Mono", ui-monospace, monospace; color: var(--ink-soft); margin: 7px 0 0; }
@media (max-width: 480px) { .onfile-k { font-size: 20px; } .onfile-q { font-size: 16px; padding: 10px; } .onfile-go { padding: 0 12px; } }

.onfile-res { border: 1px solid var(--ink); border-top: 0; padding: 4px 12px 10px; }
.onfile-res .oh { font: 400 11px/1.3 "IBM Plex Mono", ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin: 8px 0 2px; }
.onfile-res a.hit { display: grid; grid-template-columns: 4.2rem minmax(0,1fr); gap: 2px 10px; padding: 9px 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.onfile-res a.hit .n { font: 400 13px/1.4 "IBM Plex Mono", ui-monospace, monospace; color: var(--ink-soft); grid-row: span 2; }
.onfile-res a.hit .t { font: 600 17px/1.3 "Source Serif 4", Georgia, serif; }
.onfile-res a.hit .d { font: 400 12px/1.45 "IBM Plex Mono", ui-monospace, monospace; color: var(--ink-soft); }
.onfile-res a.hit:hover .t { text-decoration: underline; text-underline-offset: 3px; }
.onfile-res .nf { font: 400 15px/1.5 "Source Serif 4", Georgia, serif; margin: 10px 0 0; }
.onfile-res .nf a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* 0.10.14: clear control for the on-file results */
.onfile-x { float: right; margin: 8px 0 0 12px; padding: 0; border: 0; background: none; font: 400 11px/1.3 "IBM Plex Mono", ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); text-decoration: underline; cursor: pointer; }
.onfile-x:hover { color: var(--ink); }

/* ---- 0.10.16: calmer homepage (no floating line, slimmer Start here, search inside the ledger controls), plain Search link, wider pages ---- */
.ledger-head { padding: 28px 0 0; }
.start-here { margin: 36px 0 0; border-top: 1px solid var(--rule); border-bottom: 0; }
.start-here .sh-k { margin: 12px 0 10px; }
.start-here .sh-list { gap: 14px 32px; padding: 0; }
.start-here .sh-s { display: none; }
.start-here .sh-d { display: block; margin-top: 6px; font: 400 12px/1.45 "IBM Plex Mono", ui-monospace, monospace; color: var(--ink-soft); }
.start-here .sh-d b { font-weight: 400; color: var(--ink); }
.start-here .sh-item:hover .sh-t { text-decoration: underline; text-underline-offset: 3px; }
.ledger-controls { align-items: center; padding: 36px 0 12px; }
.filters .f-n { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.lsearch { margin: 0; flex: 0 1 300px; }
.lsearch-k { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lsearch-q { width: 100%; box-sizing: border-box; font: 400 13px/1.4 "IBM Plex Mono", ui-monospace, monospace; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--ink-soft); border-radius: 0; padding: 5px 0; -webkit-appearance: none; appearance: none; }
.lsearch-q:focus { outline: none; border-bottom-color: var(--ink); }
.lsearch-q::placeholder { color: var(--ink-soft); opacity: 1; }
.lsearch-note { margin: 0 0 12px; font: 400 13px/1.5 "IBM Plex Mono", ui-monospace, monospace; color: var(--ink-soft); }
.lsearch-note a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.lsearch-note[hidden] { display: none; }
.masthead .search-btn, .masthead .search-btn:hover { border: 0; padding: 2px 0; }
.masthead .search-btn:hover { color: var(--ink); }
.entry.page-doc { max-width: 700px; }
@media (max-width: 680px) {
    .lsearch { flex: 1 1 100%; }
    .start-here .sh-list { grid-template-columns: minmax(0, 1fr); }
}

/* ---- 0.10.17: theme menu in the masthead (Paper / Dark / Match device); the footer toggle is gone ---- */
.theme-wrap { position: relative; display: inline-flex; align-items: center; }
.theme-btn { display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; padding: 6px 4px; margin: 0; color: var(--ink-soft); cursor: pointer; }
.theme-btn:hover, .theme-btn[aria-expanded="true"] { color: var(--ink); }
.theme-btn:focus-visible { outline: 1px solid var(--ink); outline-offset: 2px; }
.theme-btn i { display: block; width: 14px; height: 14px; box-sizing: border-box; border: 1.5px solid currentColor; border-radius: 50%; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.theme-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; display: flex; flex-direction: column; min-width: 160px; padding: 4px 0; background: var(--paper); border: 1px solid var(--ink); }
.theme-menu[hidden] { display: none; }
.theme-menu button { position: relative; display: block; width: 100%; text-align: left; font: 400 13px/1.4 "IBM Plex Mono", ui-monospace, monospace; color: var(--ink); background: none; border: 0; padding: 7px 14px 7px 32px; cursor: pointer; white-space: nowrap; }
.theme-menu button:hover, .theme-menu button:focus-visible { background: var(--hover); outline: none; }
.theme-menu button[aria-checked="true"]::before { content: "\2713"; position: absolute; left: 13px; }
@media (max-width: 680px) { .theme-menu { right: -4px; } }

/* ---- 0.10.18: the theme switch also sits at the end of the footer row (menu opens upward); About and Standards line up with the masthead's left edge like the ledger ---- */
.theme-wrap-foot { margin-left: auto; }
.theme-wrap-foot .theme-menu { top: auto; bottom: calc(100% + 8px); right: 0; }
.entry.page-doc { max-width: 720px; margin-left: 0; margin-right: auto; }
