/* OpenOzarks — site styles. No external fonts or assets. */
:root {
  --bg: #F3F5F8;
  --surface: #ffffff;
  --ink: #152033;
  --muted: #5C6778;
  --line: #D7DEE7;
  --forest: #0F2C59;
  --forest-dark: #0A1E3F;
  --river: #1A3D73;
  --river-dark: #0A1E3F;
  --clay: #9a4a25;
  --sun: #C9D4E4;
  --focus: #1A3D73;
  --radius: 10px;
  --max: 72rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }
img, svg { max-width: 100%; }
a { color: var(--river); text-underline-offset: 2px; }
a:hover { color: var(--river-dark); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; color: var(--forest-dark); }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin: 0 0 1rem; }
h2 { font-size: 1.6rem; margin: 2.25rem 0 .75rem; }
h3 { font-size: 1.2rem; margin: 1.5rem 0 .5rem; }
p, ul, ol, dl { margin: 0 0 1rem; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 46rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 44rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--forest); color: #fff; padding: .6rem 1rem; z-index: 10; }
.skip-link:focus { left: 1rem; top: 1rem; color: #fff; }

/* Placeholder highlight for client-specific facts still to be provided */
mark.ph { background: #fff36b; color: #152033; padding: 0 .2em; border-radius: 3px; font-weight: 600; }

/* Header / nav */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: .75rem; padding-bottom: .75rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--forest-dark); font-family: var(--serif); font-weight: 700; font-size: 1.4rem; }
.brand img { width: 40px; height: 40px; }
.brand:hover { color: var(--forest); }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; margin: 0; padding: 0; }
.site-nav a { display: block; padding: .5rem .8rem; border-radius: 6px; text-decoration: none; color: var(--ink); font-weight: 500; }
.site-nav a:hover { background: #E6EAEF; color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--forest); color: #fff; }

/* Hero */
.hero { background: linear-gradient(180deg, #E7ECF3 0%, var(--bg) 100%); padding: 3.5rem 0 2.5rem; border-bottom: 1px solid var(--line); }
.hero h1 { max-width: 40rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.btn { display: inline-block; padding: .7rem 1.2rem; border-radius: 8px; font-weight: 600; text-decoration: none; border: 2px solid var(--forest); font: inherit; cursor: pointer; line-height: 1.3; }
.btn-primary { background: var(--forest); color: #fff; }
.btn-primary:hover { background: var(--forest-dark); border-color: var(--forest-dark); color: #fff; }
.btn-secondary { background: transparent; color: var(--forest-dark); }
.btn-secondary:hover { background: #E6EAEF; color: var(--forest-dark); }

.page-head { padding: 2.5rem 0 1rem; }
section.block { padding: 1rem 0 1.5rem; }

/* Steps */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; counter-reset: step; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; counter-increment: step; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--forest); color: #fff; font-weight: 700; margin-bottom: .5rem; }
.steps h3 { margin-top: .25rem; }
.steps p { margin: 0; color: var(--muted); }

/* Record cards */
.record-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.record-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; }
.record-card h2, .record-card h3 { margin: .35rem 0 .35rem; font-size: 1.2rem; }
.record-card h2 a, .record-card h3 a { color: var(--forest-dark); text-decoration: none; }
.record-card h2 a:hover, .record-card h3 a:hover { text-decoration: underline; }
.record-card p { margin: .25rem 0 0; color: var(--muted); }
.meta { display: flex; flex-wrap: wrap; gap: .35rem 1rem; font-size: .95rem; color: var(--muted); margin: 0; padding: 0; list-style: none; }
.badges { display: flex; flex-wrap: wrap; gap: .4rem; }
.badge { display: inline-block; font-size: .85rem; font-weight: 600; padding: .1rem .55rem; border-radius: 999px; border: 1px solid transparent; }
.status-received { background: #dcefe1; color: #14512a; border-color: #9cc9a9; }
.status-partially-received { background: #e1edf3; color: #164659; border-color: #9cc0d1; }
.status-requested { background: #f3ecdc; color: #5c4510; border-color: #d8c48e; }
.status-funding-needed { background: #e8eefb; color: #1b3a6e; border-color: #a9bde3; }
.status-denied { background: #f6e1da; color: #7a2a0e; border-color: #dfa892; }
.status-other { background: #E6EAEF; color: var(--ink); border-color: var(--line); }
.tags { list-style: none; padding: 0; margin: .5rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.tags a { display: inline-block; font-size: .9rem; background: #E6EAEF; color: var(--ink); padding: .1rem .55rem; border-radius: 6px; text-decoration: none; }
.tags a:hover { background: #D7DEE7; }

/* Records browser */
.browser { display: grid; grid-template-columns: 18rem 1fr; gap: 2rem; align-items: start; padding-bottom: 3rem; }
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; }
.filters h2 { font-size: 1.2rem; margin: 0 0 .75rem; }
.field { margin-bottom: .9rem; }
.field label, .field legend { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .25rem; }
.field fieldset { border: 0; padding: 0; margin: 0; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: .5rem .6rem; border: 1px solid #6B7789;
  border-radius: 6px; background: #fff; color: var(--ink);
}
/* Textareas: always the full width of their column, like inputs (never sized by cols). */
textarea { display: block; width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; resize: vertical; line-height: 1.5; }
.date-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem; }
.field input[type="date"] { min-width: 0; }
.date-row label { font-weight: 500; font-size: .9rem; }
.results-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.results-bar p { margin: 0; font-weight: 600; }
.results-bar select { font: inherit; padding: .35rem .5rem; border: 1px solid #6B7789; border-radius: 6px; }
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 1.5rem; }

/* Record detail */
.detail-grid { display: grid; grid-template-columns: 1fr 20rem; gap: 2rem; align-items: start; padding-bottom: 3rem; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.panel h2 { margin-top: 0; font-size: 1.25rem; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; margin: 0; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; }
.file-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.file-list li { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 8px; padding: .7rem .9rem; background: #F8F9FB; }
.file-list .file-meta { color: var(--muted); font-size: .95rem; }
.file-list li:has(> .file-item) { display: block; padding: 0; }
.file-item > summary { display: flex; flex-direction: column; align-items: stretch; gap: .35rem; padding: .7rem .9rem; cursor: pointer; list-style: none; }
.file-item .file-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.file-item > summary::-webkit-details-marker { display: none; }
.file-item > summary:focus-visible { outline: 3px solid var(--river); outline-offset: -3px; border-radius: 8px; }
.file-name { color: var(--river); text-decoration: underline; overflow-wrap: anywhere; }
.file-chevron { display: inline-block; transition: transform .15s; text-decoration: none; }
.file-item[open] .file-chevron { transform: rotate(90deg); }
.rr-drawer { border: 1px solid var(--line); border-radius: 8px; background: #F8F9FB; margin: 1.25rem 0; }
.rr-drawer > summary { display: flex; align-items: center; gap: .5rem; padding: .7rem .9rem; cursor: pointer; list-style: none; font-weight: 600; color: var(--river); }
.rr-drawer > summary::-webkit-details-marker { display: none; }
.rr-drawer > summary:focus-visible { outline: 3px solid var(--river); outline-offset: -3px; border-radius: 8px; }
.rr-drawer[open] .file-chevron { transform: rotate(90deg); }
.rr-drawer-body { border-top: 1px solid var(--line); padding: .7rem .9rem; background: #fff; border-radius: 0 0 8px 8px; }
.rr-drawer-body .suggest-form { margin: 0; }
.rr-public { width: 100%; border-collapse: collapse; margin: .5rem 0 1.5rem; }
.rr-public th, .rr-public td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.rr-public th { font-weight: 600; }
.table-wrap { overflow-x: auto; }
.file-drawer { border-top: 1px solid var(--line); padding: .7rem .9rem; background: #fff; border-radius: 0 0 8px 8px; }
.file-preview img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.file-preview iframe { display: block; width: 100%; height: 75vh; border: 1px solid var(--line); border-radius: 6px; }
.file-actions { margin: .6rem 0 0; font-size: .95rem; }
.notice { border-left: 5px solid var(--river); background: #EEF2F7; padding: .9rem 1.1rem; border-radius: 0 8px 8px 0; margin: 1rem 0; }

/* Prose pages */
.prose { padding-bottom: 3rem; }
.prose li { margin-bottom: .35rem; }
.callout { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin: 1.5rem 0; }

/* Footer */
.site-footer { background: var(--forest-dark); color: #C9D4E4; margin-top: 2rem; padding: 2rem 0; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-footer p { margin: 0; }
.site-footer mark.ph { font-weight: 600; }

@media (max-width: 860px) {
  .browser, .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .site-nav a { padding: .45rem .6rem; }
  .hero { padding: 2.25rem 0 1.75rem; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print {
  .site-header nav, .filters, .site-footer, .skip-link { display: none; }
  body { background: #fff; }
}
.more-link { margin-top: 1.25rem; }
.back-link { margin: 1rem 0 0; }
.site-footer :focus-visible { outline-color: #fff; }
.reviewed { color: var(--muted); font-size: .95rem; margin: 0; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; margin: .5rem 0 1rem; }
.toc h2 { font-size: 1.1rem; margin: 0 0 .5rem; }
.toc ol { margin: 0; padding-left: 1.25rem; columns: 2 14rem; column-gap: 2rem; }
.toc li { margin-bottom: .2rem; break-inside: avoid; }
.prose section { scroll-margin-top: 1rem; }
.nowrap { white-space: nowrap; }

/* ---- Dynamic site additions ---- */
.js .js-hide { display: none; }
.filter-actions { margin-top: .5rem; }
.sort-form { display: flex; align-items: center; gap: .5rem; }
.btn-small { padding: .35rem .7rem; font-size: .95rem; }
.btn-danger { background: #8f1d0b; border-color: #8f1d0b; color: #fff; }
.btn-danger:hover { background: #6e1608; border-color: #6e1608; color: #fff; }
.pager { display: flex; align-items: center; gap: 1rem; margin-top: 1.25rem; }
.timeline { list-style: none; padding: 0; border-left: 3px solid var(--line); margin-left: .4rem; }
.timeline li { position: relative; padding: 0 0 .9rem 1.1rem; }
.timeline li::before { content: ""; position: absolute; left: -.55rem; top: .45rem; width: .8rem; height: .8rem; border-radius: 50%; background: var(--forest); }
.timeline-date { color: var(--muted); font-size: .95rem; }
.hint { color: var(--muted); font-size: .9rem; margin: .25rem 0 0; }
.notice-error { border-left-color: #8f1d0b; background: #fbeae6; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.drop-facts { margin-bottom: 1rem; }
.badge-pending { background: #fff4d6; color: #5c4510; border-color: #d8c48e; }
code { font-size: .9em; background: #E6EAEF; padding: .05rem .3rem; border-radius: 4px; }
code.wrap { white-space: pre-wrap; word-break: break-word; }

/* Admin */
.admin .site-header .container { padding-bottom: .5rem; }
.admin-user { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: .95rem; }
.inline-form { display: inline; margin: 0; }
.admin-nav { justify-content: flex-end; }
.admin-nav > ul { flex: 1 1 auto; }
.admin-nav ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .25rem; margin: 0; padding: 0 0 .6rem; }
.admin-nav a { display: block; padding: .35rem .7rem; border-radius: 6px; text-decoration: none; color: var(--ink); font-weight: 500; }
.admin-nav a:hover { background: #E6EAEF; }
.admin-nav a[aria-current="page"] { background: var(--forest); color: #fff; }
.nav-more-item { position: relative; }
.nav-more > summary { display: flex; align-items: center; gap: .35rem; padding: .35rem .7rem; border-radius: 6px; color: var(--ink); font-weight: 500; cursor: pointer; list-style: none; user-select: none; }
.nav-more > summary::-webkit-details-marker { display: none; }
.nav-more > summary::after { content: ""; width: .45em; height: .45em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-.15em) rotate(45deg); }
.nav-more[open] > summary::after { transform: translateY(.1em) rotate(-135deg); }
.nav-more > summary:hover { background: #E6EAEF; }
.nav-more[data-current] > summary { background: var(--forest); color: #fff; }
.admin-nav .nav-more-menu { position: absolute; z-index: 20; top: calc(100% + .25rem); right: 0; left: auto; min-width: 12rem; max-width: calc(100vw - 2rem); display: block; padding: .35rem; margin: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(21,32,51,.14); }
.admin-nav .nav-more-menu li + li { margin-top: .15rem; }
.admin-nav .nav-more-menu a { white-space: nowrap; }
@media (max-width: 600px) {
  .nav-more-item { position: static; flex-basis: 100%; }
  .nav-more > summary { width: fit-content; margin-left: auto; }
  .admin-nav .nav-more-menu { position: static; box-shadow: none; margin-top: .25rem; min-width: 0; max-width: none; width: 100%; }
}
.admin-main { padding-top: 1rem; padding-bottom: 3rem; }
.admin-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.admin-main .panel { margin-bottom: 1.5rem; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1.5rem; }
.admin-table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: .97rem; margin-bottom: 1rem; }
.admin-table th, .admin-table td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table th { background: #E6EAEF; }
.admin-table small { color: var(--muted); }
.notes-table td.nowrap { width: 1%; white-space: nowrap; }
.notes-table td.note-by { width: 1%; white-space: nowrap; }
.notes-table td.note-text { width: auto; overflow-wrap: anywhere; word-break: break-word; }
.actions-cell form { display: inline-block; margin: 0 .25rem .25rem 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.25rem; }
.form-grid .span-2 { grid-column: span 2; }
.form-grid .field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.25rem; }
.check { display: flex; gap: .5rem; align-items: flex-start; font-weight: 500 !important; margin: .35rem 0; }
.check input { width: auto !important; margin-top: .3rem; }
.inline-fields { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; margin: .5rem 0 1rem; }
.inline-fields .field { margin: 0; }
.inline-fields .grow { flex: 1 1 16rem; }
.inline-fields.compact { margin: 0; gap: .4rem; }
.inline-fields.compact input { width: auto; padding: .3rem .4rem; border: 1px solid #6B7789; border-radius: 6px; font: inherit; }
.inline-fields .hint { flex-basis: 100%; margin: 0; }
.input-narrow, .inline-fields.compact input.input-narrow { width: 6.5em; }
.terms-table td { vertical-align: middle; }
.terms-table input { padding: .3rem .4rem; border: 1px solid #6B7789; border-radius: 6px; font: inherit; }
.terms-table .input-full { width: 100%; min-width: 12rem; }
.terms-table td.num { text-align: right; }
.terms-table th:nth-last-child(2) { text-align: right; }
.row-actions { display: flex; gap: .4rem; align-items: center; justify-content: flex-end; }
.row-actions form { margin: 0; }
.admin-filter { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1rem; }
.admin-filter input, .admin-filter select, .admin-main select, .admin-main input:not([type=checkbox]):not([type=file]) { font: inherit; padding: .4rem .5rem; border: 1px solid #6B7789; border-radius: 6px; background: #fff; }
.admin-main .field input:not([type=checkbox]), .admin-main .field select, .admin-main .field textarea { width: 100%; }
.copy-row { display: flex; gap: .5rem; }
.copy-row input { flex: 1; font-family: ui-monospace, monospace; }
.collapsible > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: .5rem; }
.collapsible > summary::-webkit-details-marker { display: none; }
.collapsible > summary::before { content: "\25B8"; font-size: 1.1rem; color: var(--muted); transition: transform .15s; }
.collapsible[open] > summary::before { transform: rotate(90deg); }
.collapsible > summary h2 { margin: 0; }
.collapsible[open] > summary { margin-bottom: 1rem; }
.danger-zone { border-color: #dfa892; }
ul.plain { list-style: none; padding: 0; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } .form-grid .span-2 { grid-column: auto; } .admin-table { display: block; overflow-x: auto; } }

/* API keys page */
pre.wrap { white-space: pre-wrap; word-break: break-all; background: var(--surface, #f4f6fa); border: 1px solid var(--border, #d8dee8); border-radius: 6px; padding: .75rem 1rem; overflow-x: auto; }
#new-api-key { width: min(100%, 44rem); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* Public "Request records" form */
.suggest-form fieldset.field { border: 0; padding: 0; margin: 0 0 1.1rem; min-width: 0; }
.suggest-form .sub-label { display: block; font-weight: 500; font-size: .95rem; margin: .5rem 0 .25rem; }
.suggest-form input:not([type=checkbox]), .suggest-form select { width: 100%; }
.suggest-form .date-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.suggest-form .req { font-weight: 400; color: var(--muted); }
.field-error { color: #8f1d0b; font-weight: 600; font-size: .92rem; margin: .25rem 0 0; }
.suggest-form [aria-invalid="true"] { border-color: #8f1d0b; box-shadow: 0 0 0 1px #8f1d0b; }
.ref { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.15em; letter-spacing: .05em; }
@media (max-width: 520px) { .suggest-form .date-pair { grid-template-columns: 1fr; } }

/* Reader requests (admin) */
.nav-count { display: inline-block; min-width: 1.4em; padding: 0 .4em; margin-left: .2rem; border-radius: 999px; background: #8f1d0b; color: #fff; font-size: .8rem; font-weight: 700; line-height: 1.5; text-align: center; }
.admin-nav a[aria-current="page"] .nav-count { background: #fff; color: #8f1d0b; }
.rr-new { background: #fbeae6; color: #6e1608; border-color: #e3b3a8; }
.rr-reviewing { background: #fff4d6; color: #5c4510; border-color: #d8c48e; }
.rr-funding_needed { background: #e8eefb; color: #1b3a6e; border-color: #a9bde3; }
.rr-accepted { background: #e3f1e6; color: #1d5130; border-color: #a7cdb2; }
.rr-declined, .rr-duplicate { background: #E6EAEF; color: #3a4556; border-color: #c4ccd7; }
.pre-line { white-space: pre-line; }
.rr-facts dd { margin-bottom: .6rem; }
.rr-quick { margin-top: .75rem; }
.rr-fee { background: #e6eef9; color: #0F2C59; border-color: #a9bddb; white-space: nowrap; }
.js .reveal[hidden] { display: none; }
.nowrap { white-space: nowrap; }
.toggle-group[hidden] { display: none; }

/* Email updates (subscribe) */
.sub-pick { margin: .6rem 0; border: 1px solid var(--line); border-radius: 8px; padding: .5rem .8rem; }
.sub-pick summary { cursor: pointer; font-weight: 600; }
.check-columns { columns: 2 16rem; column-gap: 1.5rem; margin-top: .4rem; }
.check-columns .check { break-inside: avoid; margin: .2rem 0; }
.privacy-note { margin-top: 1rem; }
.follow-box { border-top: 1px solid var(--line); margin-top: 1.25rem; padding-top: 1rem; }
.follow-box h2 { font-size: 1.1rem; margin: 0 0 .3rem; }
.follow-box p { margin: 0 0 .6rem; }
.follow-line { margin: .25rem 0 1rem; }
.sub-list { list-style: none; padding: 0; }
.sub-list li { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--line); }
/* Admin: Subscriptions */
.badge-clean { background: #e3f3e6; color: #1d5a2a; border-color: #9fcca9; }
.badge-muted { background: #eceff3; color: #4a5566; border-color: #c9d0da; }
.stat-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1rem 0; }
.stat-row .stat { padding: .75rem 1rem; flex: 1 1 10rem; }
.stat-row a.stat { color: inherit; text-decoration: none; }
.stat-row a.stat:hover .stat-n, .stat-row a.stat:focus-visible .stat-n { text-decoration: underline; }
.stat-n { display: block; font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.sub-targets { list-style: none; margin: 0; padding: 0; }
.sub-targets li { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .6rem; padding: .2rem 0; }
.small-link { font-size: .85rem; }
.sub-table td:first-child { white-space: nowrap; }
.sub-actions { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; }
.agencies-table th.num, .agencies-table td.num { text-align: right; }
.agencies-table td { vertical-align: top; }

/* Reader Request upvotes */
.rr-public .rr-votes { white-space: nowrap; }
.rr-vote-form { display: inline-flex; align-items: center; gap: .4rem; margin: 0; }
.rr-vote-btn { font: inherit; font-size: .9rem; padding: .2rem .55rem; border: 1px solid var(--line); border-radius: 4px; background: #e3f4e1; min-width: 6.5rem; text-align: center; color: #1f2a1f; -webkit-appearance: none; appearance: none; cursor: pointer; line-height: 1.3; }
.rr-vote-btn:hover:not(:disabled), .rr-vote-btn:focus-visible { border-color: currentColor; background: #d2ecce; }
.rr-vote-btn:disabled { cursor: default; opacity: .75; background: #f1f3f1; color: #1f2a1f; }
.rr-vote-count { font-variant-numeric: tabular-nums; min-width: 1.5ch; display: inline-block; text-align: right; }
.rr-sort { font-size: .9rem; margin: .25rem 0; }
.notice-success { border-left-color: #1f6b3a; background: #e8f4ec; }
.notice-info { border-left-color: #1b3a6e; background: #e8eefb; }
.combo { position: relative; }
.combo-list { position: absolute; z-index: 20; left: 0; right: 0; max-height: 16rem; overflow-y: auto; margin: .15rem 0 0; padding: .25rem 0; list-style: none; background: #fff; border: 1px solid #ccc; border-radius: 4px; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.combo-list li { padding: .35rem .6rem; cursor: pointer; }
.combo-list li.active, .combo-list li:hover { background: #e8f0fe; }
.combo-list li.combo-none { color: #777; cursor: default; background: none; }
