/* DRK — Journal & library. UI rem sizes always follow browser text settings. */
:root {
  --ink: #152820; --muted: #5c6861; --accent: #107446;
  --paper: #fff; --soft: #f2f5f2; --line: #cbd4ce;
  --serif: Georgia, 'Times New Roman', serif; --sans: Arial, Helvetica, sans-serif;
  --heading-font: var(--serif); --drk-text-scale: 1; --reading-font: var(--serif); --reading-line: 1.8;
  --reading-spacing: normal; --reading-word-spacing: normal;
  color-scheme: light; font-family: var(--sans); color: var(--ink); background: var(--paper);
  font-synthesis: none; text-rendering: optimizeLegibility;
}
:root[data-drk-default="dark"]:not([data-drk-mode]), :root[data-drk-mode="dark"] {
  --ink: #e8eee8; --muted: #adbbb0; --accent: #85d4a5;
  --paper: #111b16; --soft: #1a2920; --line: #425448; color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root[data-drk-default="system"]:not([data-drk-mode]), :root[data-drk-mode="system"] {
    --ink: #e8eee8; --muted: #adbbb0; --accent: #85d4a5;
    --paper: #111b16; --soft: #1a2920; --line: #425448; color-scheme: dark;
  }
}
:root[data-drk-contrast="high"] {
  --ink: #000; --muted: #111; --accent: #004c28; --paper: #fff; --soft: #fff; --line: #000;
}
:root[data-drk-contrast="high"][data-drk-mode="dark"] {
  --ink: #fff; --muted: #fff; --accent: #a8ffc8; --paper: #000; --soft: #000; --line: #fff;
}
@media (prefers-color-scheme: dark) {
  :root[data-drk-contrast="high"][data-drk-mode="system"] {
    --ink: #fff; --muted: #fff; --accent: #a8ffc8; --paper: #000; --soft: #000; --line: #fff;
  }
}
:root[data-drk-font="sans"] { --reading-font: var(--sans); }
:root[data-drk-spacing="spacious"] { --reading-line: 2; --reading-spacing: .045em; --reading-word-spacing: .12em; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: .08em; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
button, input, select, textarea { border: 1px solid var(--line); border-radius: 0; background: var(--paper); }
button { padding: .65em 1em; }
input, select, textarea { padding: .65em; max-width: 100%; }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
img, video { max-width: 100%; height: auto; }
iframe, embed, object { max-width: 100%; }
figure { margin: 0; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3 { font-weight: 400; }
h1 { font: clamp(2.4rem, 4.5vw, 4.5rem)/1.08 var(--heading-font); letter-spacing: -.045em; overflow-wrap: anywhere; }
main { min-height: 55vh; }
main:focus { outline: none; }
.screen-reader-text { clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }
.skip-link:focus { clip-path: none; height: auto; width: auto; position: fixed; top: 12px; left: 12px; z-index: 100000; padding: 16px; background: var(--paper); color: var(--ink); }
.js-only { display: none; }
.drk-js .js-only { display: inline-flex; }
.masthead { position: relative; max-width: 1500px; margin: auto; min-height: 100px; padding: 25px 5%; display: flex; align-items: center; justify-content: space-between; gap: 25px; border-bottom: 1px solid var(--line); }
.brand { font: 800 2rem var(--sans); letter-spacing: -.08em; text-decoration: none; overflow-wrap: anywhere; }
.brand-dot { color: var(--accent); }
.site-brand { flex-shrink: 0; max-width: 100%; }
.custom-logo { width: auto; max-height: var(--logo-height, 70px); max-width: min(280px, 65vw); object-fit: contain; }
.primary-nav { min-width: 0; }
.primary-nav ul, .footer ul { list-style: none; margin: 0; padding: 0; }
.primary-nav > ul { display: flex; flex-wrap: wrap; gap: 8px var(--nav-gap, 25px); }
.primary-nav li { position: relative; }
.primary-nav a { display: inline-block; padding: 12px 0; font-size: .875rem; text-decoration: none; }
.primary-nav .current-menu-item > a { box-shadow: inset 0 -2px var(--accent); }
.primary-nav summary { display: flex; align-items: center; gap: 8px; padding: 12px 0; font-size: .875rem; list-style: none; }
.primary-nav summary::after { content: ''; width: 6px; height: 6px; border-right: 1px solid; border-bottom: 1px solid; transform: rotate(45deg); margin: -3px 3px 0; }
.primary-nav summary::-webkit-details-marker { display: none; }
.primary-nav .sub-menu { position: absolute; z-index: 25; right: 0; width: 260px; max-width: 85vw; max-height: 65vh; overflow-y: auto; background: var(--paper); border: 1px solid var(--line); padding: 8px 16px; box-shadow: 0 10px 24px #0002; }
.primary-nav .sub-menu .sub-menu { position: static; width: auto; max-height: none; border: 0; border-left: 1px solid var(--line); box-shadow: none; padding-right: 0; }
.primary-nav .submenu-overview { background: var(--paper); padding: 8px 16px; }
.primary-nav > ul > li > details > .submenu-overview { position: absolute; right: 0; top: 100%; z-index: 26; width: 260px; max-width: 85vw; border: 1px solid var(--line); }
.primary-nav > ul > li > details > .submenu-overview + .sub-menu { margin-top: 40px; }
.nav-disclosure:not([open]) > :not(summary) { display: none; }
.drk-arrow { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.5; vertical-align: middle; flex-shrink: 0; }
.header-actions { display: flex; align-items: center; gap: 18px; font-size: .8125rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font: 600 .75rem/1.6 var(--sans); margin-bottom: 0; }
.home-lead { max-width: 1500px; margin: auto; padding: 52px 5% 62px; display: grid; grid-template-columns: 1.08fr 1fr; gap: 5%; align-items: center; }
.home-intro h1 { font: clamp(2.5rem, 4.15vw, 4.4rem)/1.04 var(--heading-font); letter-spacing: -.055em; margin: 25px 0; }
.home-intro h1 em { font-weight: 400; color: var(--accent); }
.intro-text { font: 1rem/1.7 var(--sans); color: var(--muted); margin: 0 0 28px; }
.without-cover { grid-template-columns: 1fr; }
.without-cover .home-intro { max-width: 900px; }
.text-link { display: inline-flex; align-items: center; gap: 32px; font: .9rem/1.6 var(--sans); text-decoration: none; border-bottom: 1px solid currentColor; padding: 5px 0; }
.road-cover { height: 445px; position: relative; isolation: isolate; }
.road-cover img { width: 100%; height: 100%; object-fit: cover; }
.road-cover figcaption { font: italic 1.2rem/1.4 var(--serif); position: absolute; bottom: clamp(18px, 3vw, 28px); left: clamp(18px, 3vw, 28px); z-index: 2; max-width: calc(100% - 56px); padding: 0; color: #fff; background: transparent; text-shadow: 0 1px 3px rgb(0 0 0 / .9), 0 3px 12px rgb(0 0 0 / .45); }
.home-below { max-width: 1500px; margin: auto; padding: 0 5% 76px; display: grid; grid-template-columns: 1fr 1fr; gap: 9%; }
.home-below > *, .home-lead > * { min-width: 0; }
.section-label { border-top: 2px solid var(--ink); padding: 17px 0; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 15px; }
.section-label h2 { font: 600 1rem/1.4 var(--sans); margin: 0; }
.section-label > span { font-size: .75rem; color: var(--muted); }
.archive-lead article { padding-top: 20px; }
.archive-lead h3 { font: 2.25rem/1.15 var(--heading-font); letter-spacing: -.025em; margin: 16px 0; }
.archive-lead h3 a { text-decoration: none; }
.excerpt { font: 1rem/1.7 var(--sans); color: var(--muted); margin: 22px 0; overflow-wrap: anywhere; }
.journal-foot { border-bottom: 1px solid var(--line); }
.archive-lead article + .journal-foot { margin-top: 30px; border-top: 1px solid var(--line); }
.journal-foot a { display: flex; justify-content: space-between; gap: 20px; font-size: .875rem; line-height: 1.5; padding: 18px 0; text-decoration: none; }
.journal-foot time { font-size: .75rem; color: var(--muted); flex-shrink: 0; }
.subject-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) 20px; gap: 15px; align-items: center; border-bottom: 1px solid var(--line); padding: 20px 0; text-decoration: none; }
.subject-row strong { display: block; font: 1.6rem/1.2 var(--heading-font); overflow-wrap: anywhere; }
.subject-row small { display: block; margin-top: 8px; font-size: .8125rem; color: var(--muted); line-height: 1.5; }
.row-num { font-size: .75rem; color: var(--muted); align-self: start; padding-top: 7px; }
.knowledge-door > .text-link { margin-top: 27px; }
.footer { border-top: 1px solid var(--line); padding: 36px 5% 100px; max-width: 1500px; margin: auto; display: flex; flex-wrap: wrap; gap: 25px 45px; align-items: start; justify-content: space-between; }
.footer p { color: var(--muted); font-size: .875rem; margin: 12px 0 0; }
.footer ul { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer a:not(.brand) { display: inline-block; padding: 8px 0; font-size: .875rem; }
.footer .brand { font-size: 1.5rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--muted); font-size: .8125rem; line-height: 1.6; padding: 25px 0 38px; }
.reader-main, .library-main { max-width: 1500px; margin: auto; padding: 0 5% 90px; }
.reader-grid { display: grid; grid-template-columns: 255px minmax(0, 1fr); gap: 65px; align-items: start; }
.reader-grid.without-toc { grid-template-columns: minmax(0, 1fr); }
.without-toc .reader-body { margin-inline: auto; width: 100%; }
.reader-body { min-width: 0; max-width: 780px; }
.reader-body[data-article-width="narrow"] { max-width: 640px; }
.reader-body[data-article-width="wide"] { max-width: 1000px; }
:root[data-drk-width="narrow"] .reader-body { max-width: 640px; }
:root[data-drk-width="comfortable"] .reader-body { max-width: 780px; }
:root[data-drk-width="wide"] .reader-body { max-width: 1000px; }
.reader-nav { position: sticky; top: 25px; min-width: 0; }
.admin-bar .reader-nav { top: 55px; }
.contents { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.contents summary { display: list-item; padding: 18px 0; font-weight: 600; font-size: .9375rem; }
.contents summary > span { float: right; color: var(--muted); font-size: .75rem; padding: 3px 0; }
.toc-inner { max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); overflow-y: auto; padding: 0 10px 20px 3px; scrollbar-width: thin; }
.toc-inner .js-only { flex-direction: column; width: 100%; }
.toc-inner label { font-size: .75rem; margin: 5px 0 8px; }
.toc-inner input { width: 100%; min-width: 0; font-size: .875rem; }
#drk-toc-status { font-size: .75rem; line-height: 1.5; margin: 10px 0; }
.toc-inner ol { list-style: none; padding: 0; margin: 0; }
.toc-inner li { border-bottom: 1px solid var(--line); }
.toc-inner a { display: block; font: .8125rem/1.6 var(--sans); padding: 10px 2px; text-decoration: none; overflow-wrap: anywhere; }
.toc-inner .toc-h3 { padding-left: 14px; }
.article-header { margin-bottom: 36px; }
.article-header h1 { margin: 20px 0 24px; }
.byline { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: .8125rem; line-height: 1.6; }
.standfirst { margin: 25px 0; color: var(--muted); font: 1.125rem/1.65 var(--serif); }
.article-cover { width: 100%; margin-top: 32px; }
.prose { font-family: var(--reading-font); font-size: calc(1.125rem * var(--drk-text-scale)); line-height: var(--reading-line); letter-spacing: var(--reading-spacing); word-spacing: var(--reading-word-spacing); overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol, .prose blockquote { margin-bottom: 1.35em; }
.prose h2 { font: 1.75em/1.2 var(--reading-font); letter-spacing: -.025em; margin: 1.9em 0 .7em; }
.prose h3 { font: 1.35em/1.35 var(--reading-font); margin: 1.6em 0 .65em; }
.prose h4, .prose h5, .prose h6 { font-size: 1.1em; }
.prose :where(h2,h3,h4,[id]) { scroll-margin-top: 70px; }
.prose a { color: var(--accent); text-decoration: underline; }
.prose ul, .prose ol { padding-left: 1.5em; }
.prose li { margin-bottom: .3em; }
.prose blockquote { border-left: 3px solid var(--accent); padding: .25em 0 .25em 1.3em; margin-inline: 0; color: var(--muted); }
.prose pre { overflow: auto; max-width: 100%; background: var(--soft); padding: 18px; font-size: .85em; }
.prose code { overflow-wrap: anywhere; font-size: .9em; }
.prose table { border-collapse: collapse; font: .9em/1.6 var(--reading-font); min-width: 100%; max-width: 100%; display: block; overflow-x: auto; }
.prose .table-scroll table, .prose .wp-block-table table { display: table; max-width: none; }
.prose th, .prose td { border: 1px solid var(--line); padding: .7em .9em; text-align: start; vertical-align: top; }
.prose th { background: var(--soft); }
.table-scroll, .wp-block-table { max-width: 100%; overflow-x: auto; margin: 1.5em 0; padding-bottom: 4px; }
.table-scroll:focus-visible { outline-offset: 2px; }
.prose .wp-block-table { font-size: 1em; }
.prose .alignwide { max-width: 100%; }
.prose .alignfull { margin-inline: 0; width: 100%; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption, .prose figcaption { font: .8125em/1.6 var(--sans); color: var(--muted); margin-top: .7em; }
.prose::after { content: ''; display: block; clear: both; }
.drk .has-ink-color { color: var(--ink) !important; }
.drk .has-green-color { color: var(--accent) !important; }
.drk .has-paper-color { color: var(--paper) !important; }
.drk .has-ink-background-color { background-color: var(--ink) !important; }
.drk .has-green-background-color { background-color: var(--accent) !important; }
.drk .has-paper-background-color { background-color: var(--paper) !important; }
.drk .has-soft-background-color { background-color: var(--soft) !important; }
:root[data-drk-size]:not([data-drk-size="100"]) .prose :where([style*="font-size"], font, .has-small-font-size, .has-medium-font-size, .has-large-font-size, .has-x-large-font-size) { font-size: 1em !important; }
:root[data-drk-spacing="spacious"] .prose :where(p,li,span,div,td,th) { line-height: 2 !important; letter-spacing: .045em !important; word-spacing: .12em !important; }
.article-end { border-top: 1px solid var(--line); padding: 20px 0; margin-top: 40px; font-size: .875rem; }
.post-navigation { border-bottom: 1px solid var(--line); padding-bottom: 28px; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.nav-links > div { flex: 1 1 220px; }
.listing-main { max-width: 1050px; margin: auto; padding: 65px 5% 90px; }
.listing-heading { margin-bottom: 45px; }
.listing-heading h1 { margin: 20px 0; }
.story-row { border-top: 1px solid var(--line); padding: 30px 0; }
.story-row h2 { font: 2rem/1.2 var(--heading-font); margin: 12px 0; }
.story-row h2 a { text-decoration: none; }
.story-row .excerpt { max-width: 720px; margin-bottom: 0; }
.pagination, .page-links { margin: 35px 0; }
.page-numbers { display: inline-flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
a.page-numbers, span.page-numbers { padding: 10px 14px; border: 1px solid var(--line); }
.page-numbers.current { background: var(--ink); color: var(--paper); }
.library-heading { display: flex; justify-content: space-between; gap: 40px; align-items: end; margin: 20px 0 45px; }
.library-heading > * { flex: 1; }
.library-heading h1 { margin: 20px 0 0; }
.library-heading .intro-text { max-width: 420px; }
.library-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9%; margin: 55px 0; }
.library-grid > * { min-width: 0; }
.search-form { margin: 24px 0; max-width: 780px; }
.search-form label { display: block; font: 600 .875rem/1.5 var(--sans); margin-bottom: 12px; }
.search-form > div { display: flex; }
.search-form input { min-width: 0; flex: 1; padding: 16px; }
.search-form button { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.empty-state { padding: 25px 0; }
.empty-state p { line-height: 1.7; }
.widget { padding: 25px 0; max-width: 100%; overflow-wrap: anywhere; }
.widget-title { font: 1.25rem var(--serif); }
/* Legacy icon-only social links remain visible without the old icon font. */
.drk .atsi-icons { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; padding: 0; }
.drk .atsi-icons a::after { content: attr(aria-label); font: .875rem var(--sans); }
.comments-area { margin: 45px 0; font-size: 1rem; }
.comment-list { padding-left: 0; list-style: none; }
.comment-list .children { padding-left: 20px; }
.comment-body { border-bottom: 1px solid var(--line); padding: 24px 0; line-height: 1.7; }
.comment-form label { display: block; margin-bottom: 8px; }
.comment-form textarea { width: 100%; }
.comment-form-cookies-consent label { display: inline; }
.bypostauthor > .comment-body { border-left: 2px solid var(--accent); padding-left: 16px; }
.reader-fab { border-radius: 50%; position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40; align-items: center; justify-content: center; border: 1px solid var(--line); background: var(--paper); width: 44px; height: 44px; padding: 0; box-shadow: 0 4px 20px #0002; }
.reader-fab > span { font: 1.2rem var(--serif); }
.reader-dialog { position: fixed; inset: auto 0 max(76px, calc(env(safe-area-inset-bottom) + 60px)); z-index: 50; color: var(--ink); background: var(--paper); border: 1px solid var(--line); padding: 18px; width: min(420px, calc(100vw - 24px)); border-radius: 18px; max-height: calc(100vh - 100px); max-height: calc(100dvh - 100px); margin: 0 auto; box-shadow: 0 12px 48px #0003; overflow-y: auto; }
.reader-dialog:not([open]) { display: none; }
.reader-dialog-heading { display: flex; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.reader-dialog h2 { font: 600 1rem/1.4 var(--sans); margin: 0; }
.reader-dialog-heading button { flex-shrink: 0; padding: 0; width: 44px; height: 44px; font-size: 1.5rem; border: 0; }
.reader-primary { display: grid; gap: 12px; }
.reader-secondary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.reader-control { min-width: 0; }
.reader-dialog label { font-size: .8125rem; line-height: 1.5; display: block; margin: 0 0 6px; }
.reader-dialog select { width: 100%; min-height: 44px; font-size: .8125rem; }
.reader-dialog input[type="range"] { width: 100%; min-height: 44px; padding: 0; accent-color: var(--accent); margin: 0; }
.reader-dialog output { float: right; }
.reader-more { margin: 8px 0; border-top: 1px solid var(--line); }
.reader-more > summary { font-size: .8125rem; padding: 12px 0; }
.reader-dialog .checkbox-row { display: flex; align-items: center; gap: 10px; min-height: 44px; grid-column: 1 / -1; margin: 0; }
.checkbox-row input { width: 20px; height: 20px; accent-color: var(--accent); }
.reader-help { font-size: .8125rem; line-height: 1.6; color: var(--muted); margin: 16px 0; }
.reader-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.reader-buttons button { min-height: 44px; font-size: .8125rem; }
.reader-buttons [type="submit"] { background: var(--ink); color: var(--paper); }
/* Opt-in high contrast neutralizes historical inline ink/paper declarations. */
:root[data-drk-contrast="high"] .prose :where(p,span,font,div,td,th,strong,b,em,i,h2,h3,h4) { color: var(--ink) !important; background-color: var(--paper) !important; }
:root[data-drk-contrast="high"] .prose a { color: var(--accent) !important; }
@media (max-width: 1100px) {
  .masthead { flex-wrap: wrap; gap: 15px 25px; }
  .primary-nav { order: 3; flex: 1 0 100%; }
  .reader-grid { grid-template-columns: 220px minmax(0, 1fr); gap: 35px; }
}
@media (max-width: 800px) {
  .masthead { min-height: 0; padding: 16px 5% 8px; gap: 8px 20px; }
  .brand { font-size: 1.75rem; }
  .header-actions { gap: 12px; }
  .primary-nav > ul { gap: 0 12px; }
  .primary-nav a, .primary-nav summary { font-size: .75rem; padding-block: 9px; line-height: 1.5; }
  .primary-nav > ul > li { position: static; }
  .primary-nav > ul > li > details > .sub-menu,
  .primary-nav > ul > li > details > .submenu-overview { left: 5%; right: 5%; top: 100%; width: auto; max-width: none; }
  .home-lead { grid-template-columns: 1fr; gap: 35px; padding-top: 35px; padding-bottom: 45px; }
  .home-intro h1 { font-size: clamp(2.5rem, 8vw, 4rem); }
  .road-cover { height: 270px; }
  .home-below { grid-template-columns: 1fr; gap: 45px; padding-bottom: 50px; }
  .archive-lead h3 { font-size: 2rem; }
  .reader-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .reader-nav, .admin-bar .reader-nav { position: static; }
  .toc-inner { max-height: 50vh; }
  .breadcrumbs { padding: 18px 0 20px; }
  .contents summary { padding-block: 14px; }
  .article-header h1 { font-size: clamp(2.3rem, 8vw, 3.5rem); margin-top: 16px; }
  .prose { font-size: calc(1.0625rem * var(--drk-text-scale)); }
  .library-heading, .library-grid { display: block; }
  .library-heading .intro-text { margin-top: 25px; }
  .library-grid > .prose { margin-top: 40px; }
  .listing-main { padding-top: 40px; }
  .footer { display: block; }
  .footer nav { margin-top: 20px; }
}
@media (max-width: 400px) {
  .header-actions { gap: 8px; }
  .road-cover { height: 225px; }
  .journal-foot a { flex-direction: column; gap: 7px; }
  .subject-row { gap: 10px; }
  .reader-dialog { padding: 14px; }
  .reader-secondary { grid-template-columns: 1fr; }
  .reader-size { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
:root[data-drk-motion="reduce"] *, :root[data-drk-motion="reduce"] *::before, :root[data-drk-motion="reduce"] *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
@media (forced-colors: active) { .reader-fab, .reader-dialog, button { border: 1px solid ButtonText; } .primary-nav .current-menu-item > a { border-bottom: 2px solid LinkText; } }
@media print {
  :root, :root[data-drk-mode], :root[data-drk-contrast] { --ink: #000; --paper: #fff; --muted: #222; --accent: #000; --line: #999; --soft: #fff; color-scheme: light; }
  .search-drawer, .masthead, .footer, .reader-nav, .reader-fab, .reader-dialog, .breadcrumbs, .post-navigation, .comments-area, .article-end, .skip-link { display: none !important; }
  .reader-main, .listing-main { padding: 0; max-width: none; }
  .reader-grid { display: block; }
  .reader-body { max-width: none !important; }
  .prose { font-size: 11pt; line-height: 1.5; }
  .prose table { display: table; width: 100% !important; min-width: 0; max-width: 100%; font-size: 8pt; table-layout: fixed; }
  .prose td, .prose th { overflow-wrap: anywhere; padding: .3em; }
  .table-scroll, .wp-block-table, .prose pre { overflow: visible; }
  h1, h2, h3 { break-after: avoid; }
  img, tr { break-inside: avoid; }
  a { text-decoration: underline; }
}

/* Bound featured media so the page content remains close to its title. */
.article-cover { max-height: 300px; object-fit: cover; }
.reader-main.has-full-hero { max-width: none; padding-inline: 0; }
.has-full-hero .reader-grid, .has-full-hero .breadcrumbs { max-width: 1500px; margin-inline: auto; padding-inline: 5%; }
.article-hero { position: relative; isolation: isolate; padding: clamp(32px, 5vw, 64px) max(5%, calc((100% - 1350px) / 2)); min-height: clamp(280px, 28vw, 400px); display: flex; align-items: center; color: #fff; background: var(--image-tint, #152820); margin-bottom: 0; }
.article-hero .hero-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.article-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #000c, #0008 65%, #0005); z-index: -1; }
.article-hero .article-heading { min-width: 0; width: min(100%, 780px); }
.article-hero h1 { margin: 0 0 20px; }
.article-hero .eyebrow { margin-bottom: 16px; }
.article-hero .standfirst, .article-hero .byline { color: inherit; }
.article-hero .standfirst:last-child, .standfirst > :last-child { margin-bottom: 0; }
.standfirst a { text-decoration: underline; color: inherit; }
.standfirst a:hover { text-decoration-thickness: .15em; }
.standfirst .button-secondary { display: inline; padding: 0; border: 0; background: transparent; color: inherit; }
.standfirst { overflow-wrap: anywhere; }
:root[data-drk-contrast="high"] .article-hero .article-heading { background: var(--paper); color: var(--ink); border: 1px solid var(--line); padding: clamp(20px, 3vw, 32px); }
@media (forced-colors: active) { .article-hero .article-heading { background: Canvas; color: CanvasText; padding: 24px; } }
/* Keep the protection active; replace only its floating branding with text. */
.drk-recaptcha .grecaptcha-badge { visibility: hidden !important; }
.drk-recaptcha-notice { font: .75rem/1.5 var(--sans); color: var(--muted); margin: 12px 0; }


/* A full-width search row pushes the masthead and page down, as in Skoty. */
.search-drawer { height: 0; overflow: hidden; background: var(--paper); transition: height .5s cubic-bezier(.42,.66,.14,1.24), box-shadow .2s ease; overflow-anchor: none; }
.search-drawer.is-open { box-shadow: inset 0 -1px var(--line); }
.search-drawer[data-easing="ease"] { transition: height .35s ease; }
.search-drawer[data-easing="none"] { transition: none; }
.search-drawer-inner { max-width: 1500px; padding: 26px 5%; min-height: 112px; margin: auto; display: flex; align-items: center; gap: 8px; }
.search-drawer form { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.search-drawer input { width: 100%; min-width: 0; padding: 12px 4px; border: 0; text-align: right; background: transparent; font-size: 1.2rem; }
.search-drawer input:focus { outline: none; box-shadow: inset 0 -2px var(--accent); }
.search-drawer input::placeholder { color: var(--muted); opacity: 1; }
.search-toggle[aria-expanded="true"] { background: var(--soft); }
.drk-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-button { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; }
.icon-button:hover { background: var(--soft); color: var(--accent); }
.footer-appearance { align-items: center; gap: 8px; width: fit-content; }
.mode-options { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px; background: var(--soft); border: 1px solid var(--line); flex-shrink: 0; }
.mode-options button { border-radius: 999px; border: 0; min-height: 40px; padding: 8px 12px; font-size: .8125rem; background: transparent; }
.mode-options .icon-button { width: 40px; height: 40px; padding: 0; }
.mode-options [aria-pressed="true"] { color: var(--paper); background: var(--ink); }
.mode-options button:hover { box-shadow: inset 0 0 0 1px var(--muted); }
.reader-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; align-items: center; font-size: .8125rem; }
.reader-dialog select { border-radius: 8px; }
.reader-dialog-heading button { border-radius: 50%; }
.reader-buttons button { border-radius: 8px; }
.reader-more { margin-bottom: 0; }
.reader-more > summary { padding-bottom: 6px; }

/* Compact page chips; overflow stays inside the rail on every screen size. */
.drk-pagination { margin: 36px auto 0; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-start; justify-content: center; max-width: 620px; }
.page-browser { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: start; gap: 8px; width: min(100%, 444px); min-width: 0; }
.page-strip { display: flex; position: relative; gap: 4px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--muted) var(--soft); padding: 4px 3px 10px; margin: -4px 0 0; overscroll-behavior-x: contain; }
.page-strip:focus-visible { outline-offset: 0; }
.page-chip, .page-step { display: inline-flex; justify-content: center; align-items: center; flex: 0 0 auto; min-width: 40px; height: 40px; border: 0; padding: 0 10px; border-radius: 50%; font: 600 .9375rem var(--sans); text-decoration: none; }
.page-step { width: 40px; background: var(--soft); font-size: 1.65rem; }
.page-step.is-disabled { opacity: .4; }
.page-chip[aria-current="page"] { color: var(--paper); background: var(--ink); }
.page-chip:hover:not([aria-current]) { background: var(--soft); }
.page-strip.is-scrollable { cursor: grab; }
.page-strip.is-dragging, .page-strip.is-dragging a { cursor: grabbing; user-select: none; }
.page-scrubber { grid-column: 2; display: flex; gap: 10px; align-items: center; font-size: .625rem; color: var(--muted); }
.page-scrubber input { min-width: 0; flex: 1; width: 100%; height: 24px; padding: 0; border: 0; accent-color: var(--ink); cursor: ew-resize; }
.has-scrubber .page-strip { scrollbar-width: none; }
.has-scrubber .page-strip::-webkit-scrollbar { display: none; }
.page-scrubber input { appearance: none; background: transparent; }
.page-scrubber input::-moz-range-track { height: 4px; background: var(--line); border-radius: 4px; }
.page-scrubber input::-moz-range-thumb { width: 36px; height: 8px; border: 0; border-radius: 6px; background: var(--muted); }
.page-scrubber input::-webkit-slider-runnable-track { height: 4px; background: var(--line); border-radius: 4px; }
.page-scrubber input::-webkit-slider-thumb { appearance: none; width: 36px; height: 8px; margin-top: -2px; border: 0; border-radius: 6px; background: var(--muted); }
.page-size select { border-radius: 24px; background: var(--soft); font-size: .8125rem; min-height: 40px; padding: 8px 12px; }
.page-status { flex: 1 0 100%; text-align: center; font: .75rem/1.5 var(--sans); color: var(--muted); margin: 0; }

/* Separate photo, tint, pattern and text layers; filters never affect the text. */
:root[data-heading-font="sans"] { --heading-font: var(--sans); }
:root[data-drk-font-default="sans"]:not([data-drk-font]) { --reading-font: var(--sans); }
.image-treatment { background: var(--image-tint); }
.road-cover img, .article-hero .hero-background { opacity: var(--image-opacity, 1); filter: saturate(var(--image-saturation, 1)) brightness(var(--image-brightness, 1)); object-position: var(--image-position, 50% 50%); }
.image-pattern { position: absolute; inset: 0; pointer-events: none; background-image: var(--image-pattern, none); background-repeat: repeat; background-size: var(--pattern-size, 1400px) auto; opacity: var(--pattern-opacity, .05); }
.road-cover .image-pattern { z-index: 1; }
.road-cover figcaption { z-index: 2; }
.article-hero .image-pattern { z-index: -1; }
:root[data-drk-contrast="high"] .road-cover figcaption { color: #fff; background: transparent; padding: 0; border: 0; text-shadow: 0 1px 3px #000, 0 3px 12px #000; }
@media (max-width: 800px) { .footer-appearance { margin-top: 24px; } }
@media (max-width: 400px) { .search-drawer-inner { padding-block: 14px; min-height: 84px; } .search-drawer input { font-size: 1rem; } .page-browser { gap: 4px; grid-template-columns: 40px minmax(0, 1fr) 40px; } }
@media (forced-colors: active) { .mode-options [aria-pressed="true"], .page-chip[aria-current="page"] { outline: 2px solid Highlight; } .image-pattern { display: none; } .road-cover figcaption { forced-color-adjust: none; color: #fff; background: transparent; padding: 0; border: 0; text-shadow: 0 1px 3px #000, 0 3px 12px #000; } }
