:root {
  --ink: #14171a;
  --ink-soft: #30343a;
  --paper: #f3eee3;
  --paper-light: #fbf8f1;
  --paper-deep: #e9e3d7;
  --line: #d4c9b6;
  --line-strong: #a89d89;
  --accent: #a93428;
  --accent-dark: #7d241c;
  --muted: #5f5a50;
  --ok: #23664a;
  --warn: #7a5200;
  --bad: #9c2b2b;
  --focus: #1f6feb;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --max: 1180px;
  --measure: 68ch;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.08; letter-spacing: -0.022em; }
h1 { font-size: clamp(2.35rem, 5vw, 4.4rem); margin-bottom: .35em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.15rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.45rem); }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .86em;
  background: #e6dfd0;
  padding: .1rem .35rem;
  border-radius: 2px;
  overflow-wrap: anywhere;
}

.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper); padding: .8rem 1rem;
}
.skip:focus { left: 1rem; top: 1rem; }

button, .button {
  font: inherit; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: .55rem 1.05rem;
  border: 1px solid var(--accent); border-radius: 2px;
  background: var(--accent); color: #fff; text-decoration: none;
}
button:hover, .button:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
button:focus-visible, .button:focus-visible, a:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px;
}
.button-danger { background: var(--bad); border-color: var(--bad); }
.button-danger:hover { background: #741d1d; border-color: #741d1d; }
input, select, textarea {
  font: inherit; color: var(--ink); background: var(--paper-light);
  border: 1px solid var(--line-strong); border-radius: 2px;
  padding: .6rem .7rem; min-height: 44px; max-width: 100%;
}
input::placeholder { color: #77705f; }

/* utility bar */
.utility { background: var(--ink); color: #d8d1c2; font-size: .78rem; }
.utility-row {
  display: flex; align-items: center; gap: 1rem; min-height: 38px;
  flex-wrap: wrap; padding-block: .2rem;
}
.dateline { letter-spacing: .02em; }
.utility-mode { display: inline-flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.mode-flag {
  color: #f2c94c; font-weight: 800; letter-spacing: .14em; font-size: .68rem;
}
.mode-note { color: #c9bfa9; }
.utility-admin {
  margin-left: auto; color: #f3eee3; text-decoration: none;
  border-bottom: 1px solid #7b7365; padding-block: .2rem;
}
.utility-admin:hover { color: #f2c94c; }

/* masthead */
.masthead { background: var(--paper); border-bottom: 1px solid var(--line); }
.masthead-top {
  display: grid; grid-template-columns: auto 1fr minmax(16rem, 22rem);
  align-items: end; gap: 1.5rem; padding: 1.5rem 0 1.1rem;
}
.brand { color: var(--ink); text-decoration: none; display: inline-grid; line-height: .78; }
.brand:hover { color: var(--ink); }
.brand-main { font-family: var(--serif); font-weight: 800; font-size: clamp(2.9rem, 5.2vw, 4.4rem); letter-spacing: -.045em; }
.brand-sub { font-family: var(--sans); font-size: .62rem; font-weight: 800; letter-spacing: .42em; margin-top: .38rem; padding-left: .2rem; }
.brand-tag {
  align-self: end; margin: 0 0 .45rem; padding-left: 1.2rem;
  border-left: 1px solid var(--line-strong);
  font-family: var(--serif); font-style: italic; font-size: 1.02rem; color: var(--muted);
  max-width: 20ch;
}
.search { display: flex; gap: .4rem; align-items: stretch; }
.search input { flex: 1; min-width: 0; background: var(--paper-light); border-color: var(--line-strong); }
.search button { white-space: nowrap; }
.masthead-nav {
  display: flex; align-items: center; gap: 1rem;
  border-top: 1px solid var(--line); padding: .1rem 0 .55rem;
}
.desk-nav { display: flex; flex-wrap: wrap; gap: .1rem 1.15rem; padding-top: .45rem; }
.desk-nav a, .rubrik nav a {
  color: var(--ink); text-decoration: none; font-size: .86rem; font-weight: 650;
  padding: .55rem .1rem; border-bottom: 2px solid transparent;
}
.desk-nav a:hover, .rubrik nav a:hover { border-color: var(--accent); color: var(--accent-dark); }
.rubrik { display: none; }
.rubrik summary {
  list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center;
  font-weight: 800; font-size: .86rem; letter-spacing: .04em;
}
.rubrik summary::-webkit-details-marker { display: none; }
.rubrik summary::after { content: "+"; margin-left: .5rem; color: var(--accent); font-size: 1.2rem; }
.rubrik[open] summary::after { content: "−"; }
.rubrik nav { display: grid; gap: .1rem; padding: .2rem 0 .8rem; }
.rubrik nav a { border-bottom: 1px solid var(--line); }
.site-main { padding: 2.2rem 0 4.5rem; }

/* shared type */
.kicker {
  font-size: .69rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase;
  color: var(--accent-dark); margin-bottom: .55rem;
}
.kicker a { color: inherit; text-decoration: none; }
.kicker a:hover { color: var(--accent); }
.dek { font-family: var(--serif); font-size: 1.22rem; line-height: 1.45; color: var(--ink-soft); max-width: 52ch; }
.meta { color: var(--muted); font-size: .78rem; letter-spacing: .01em; }
.meta-sep { padding-inline: .45rem; color: var(--line-strong); }
.muted { color: var(--muted); }
.credit { color: var(--muted); font-size: .68rem; margin-top: .35rem; }
.credit:empty { display: none; }

/* home */
.front {
  display: grid; grid-template-columns: minmax(0, 1.95fr) minmax(17rem, .8fr);
  gap: 2.6rem; align-items: start;
}
.lead { border-top: 3px solid var(--ink); padding-top: 1rem; }
.lead-title { font-size: clamp(2.3rem, 4.6vw, 4.2rem); max-width: 17ch; margin-bottom: .3em; }
.lead-title a { color: var(--ink); text-decoration: none; }
.lead-title a:hover { color: var(--accent-dark); }
.lead-media { display: block; margin-top: 1.2rem; border: 1px solid var(--line); background: var(--paper-deep); }
.lead-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.latest-rail { border-left: 1px solid var(--line); padding-left: 1.5rem; min-width: 0; }
.latest-rail h2 { font-size: 1.35rem; border-bottom: 2px solid var(--ink); padding-bottom: .45rem; margin-bottom: .2rem; }
.latest-list { list-style: none; margin: 0; padding: 0; }
.latest-list li { border-bottom: 1px solid var(--line); }
.latest-list a { display: grid; grid-template-columns: 5.2rem 1fr; gap: .2rem .8rem; padding: .8rem 0; text-decoration: none; color: var(--ink); }
.latest-list a:hover .latest-text { color: var(--accent-dark); }
.latest-time { color: var(--muted); font-size: .68rem; padding-top: .22rem; }
.latest-text { font-family: var(--serif); font-size: 1.02rem; line-height: 1.28; font-weight: 600; }
.latest-rubrik { grid-column: 2; color: var(--accent-dark); font-size: .64rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.rail-note { margin-top: 1rem; color: var(--muted); font-size: .75rem; }

.ad-slot { margin: 2rem 0; }
.ad { border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); padding: .6rem 0 .7rem; text-align: center; }
.ad-label { margin: 0 0 .35rem; font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; color: var(--muted); }
.ad img { width: min(100%, 970px); margin-inline: auto; }
.ad-note { margin: .35rem 0 0; font-size: .66rem; color: var(--muted); }

.river-section { margin-top: 3rem; border-top: 1px solid var(--line-strong); padding-top: 1.3rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--muted); font-size: .82rem; }
.river { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.2rem; }
.river-item {
  display: grid; grid-template-columns: minmax(7.5rem, 11rem) minmax(0, 1fr);
  gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--line); min-width: 0;
}
.river-item:nth-child(-n+2) { border-top: 0; }
.river-feature { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.15fr) minmax(16rem, .85fr); gap: 1.6rem; }
.river-media { display: block; background: var(--paper-deep); min-width: 0; }
.river-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.river-feature .river-img { aspect-ratio: 16 / 9; }
.river-copy { min-width: 0; }
.river-copy h3 { margin-bottom: .35rem; }
.river-copy h3 a { color: var(--ink); text-decoration: none; }
.river-copy h3 a:hover { color: var(--accent-dark); }
.river-dek { color: var(--ink-soft); font-size: .9rem; margin-bottom: .35rem; }

/* lists and pages */
.page-head { border-top: 3px solid var(--ink); padding-top: 1rem; max-width: 56rem; }
.page-dek { font-family: var(--serif); font-size: 1.2rem; color: var(--ink-soft); max-width: 55ch; }
.story-list { border-top: 1px solid var(--line-strong); }
.row-story {
  display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 1.4rem;
  padding: 1.3rem 0; border-bottom: 1px solid var(--line); min-width: 0;
}
.row-media { display: block; background: var(--paper-deep); align-self: start; }
.row-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.row-copy { min-width: 0; }
.row-copy h2 { font-size: clamp(1.35rem, 2.3vw, 1.8rem); margin-bottom: .35rem; }
.row-copy h2 a { color: var(--ink); text-decoration: none; }
.row-copy h2 a:hover { color: var(--accent-dark); }
.row-dek { color: var(--ink-soft); font-size: .92rem; margin-bottom: .3rem; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.page-link { font-weight: 750; font-size: .9rem; }
.pager-now { color: var(--muted); font-size: .8rem; }
.empty, .empty-note {
  border: 1px solid var(--line); background: var(--paper-light);
  padding: 1.4rem; margin: 1.5rem 0;
}
.empty h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.prose { max-width: var(--measure); }
.prose p { margin-bottom: 1.15em; }
.prose-page { font-family: var(--serif); font-size: 1.1rem; line-height: 1.75; }
.search-page { margin: 1rem 0 1.5rem; max-width: 34rem; }

/* article */
.crumbs { display: flex; gap: .45rem; color: var(--muted); font-size: .78rem; margin-bottom: 1.2rem; }
.crumbs a { color: var(--muted); }
.story { max-width: 1000px; }
.story-head { max-width: 840px; border-top: 3px solid var(--ink); padding-top: 1rem; }
.story-head h1 { max-width: 22ch; }
.story-dek { font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.45; color: var(--ink-soft); max-width: 60ch; }
.byline { display: flex; flex-wrap: wrap; gap: .35rem .9rem; align-items: center; color: var(--muted); font-size: .8rem; margin-top: 1rem; }
.byline-strong { color: var(--ink); font-weight: 800; letter-spacing: .04em; }
.label {
  border: 1px solid var(--line-strong); padding: .12rem .4rem;
  font-size: .64rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft);
}
.hero { margin: 1.6rem 0 2rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.hero-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); }
.story-body { max-width: var(--measure); }
.summary-box {
  background: var(--paper-light); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line);
  padding: 1.1rem 1.25rem; margin-bottom: 1.8rem;
}
.summary-box h2 { font-size: .78rem; font-family: var(--sans); text-transform: uppercase; letter-spacing: .14em; margin-bottom: .6rem; }
.summary-box ol { margin: 0; padding-left: 1.2rem; }
.summary-box li { margin-bottom: .45rem; font-family: var(--serif); font-size: 1.03rem; }
.story-body .prose { font-family: var(--serif); font-size: 1.12rem; line-height: 1.75; max-width: none; }
.correction { border-left: 2px solid var(--accent); padding: .5rem .8rem; background: #f0e8d8; font-size: .84rem; }
.source-box { border-top: 1px solid var(--line-strong); margin-top: 2rem; padding-top: 1.1rem; }
.source-box h2 { font-size: 1.15rem; }
.sources { padding-left: 1.2rem; margin: 0; }
.sources li { margin-bottom: .7rem; overflow-wrap: anywhere; }
.source-meta { display: block; color: var(--muted); font-size: .76rem; }
.disclosure { margin-top: 2rem; padding-top: .9rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.related { margin-top: 3rem; border-top: 1px solid var(--line-strong); padding-top: 1.3rem; }

/* footer */
.site-foot { background: var(--ink); color: #d8d1c2; padding: 2.4rem 0; font-size: .84rem; }
.foot-grid { display: grid; grid-template-columns: 1.1fr 1.4fr 1fr; gap: 2rem; align-items: start; }
.brand-foot { color: var(--paper); }
.brand-foot .brand-main { font-size: 2.1rem; }
.foot-brand p { color: #b9b09f; max-width: 30ch; margin-top: .8rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; }
.foot-links a { color: #e7dfd0; text-decoration: none; padding-block: .25rem; }
.foot-links a:hover { color: #f2c94c; }
.foot-note p { margin-bottom: .4rem; color: #b9b09f; }
.foot-note a { color: #f2c94c; }
.foot-small { font-size: .72rem; margin-top: 1rem; }

/* admin */
.admin-body { background: #e7e1d4; }
.admin-shell { display: grid; grid-template-columns: 16.5rem minmax(0, 1fr); min-height: 100vh; }
.admin-side {
  background: var(--ink); color: #ded7c9; padding: 1.4rem 1.2rem;
  display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 0; height: 100vh;
}
.admin-brand { color: var(--paper); }
.admin-brand:hover { color: var(--paper); }
.admin-brand .brand-main { font-size: 2.3rem; }
.admin-mode { color: #b9b09f; font-size: .72rem; margin: 0; }
.admin-nav { display: grid; gap: .15rem; margin-top: .5rem; }
.admin-link { color: #ded7c9; text-decoration: none; padding: .65rem .7rem; border-left: 2px solid transparent; font-size: .9rem; }
.admin-link:hover { background: #1f2429; color: #fff; }
.admin-link.is-active { border-left-color: var(--accent); background: #1f2429; color: #fff; font-weight: 700; }
.admin-side-foot { margin-top: auto; display: grid; gap: .5rem; font-size: .8rem; border-top: 1px solid #31363c; padding-top: 1rem; }
.admin-user { margin: 0; color: #f3eee3; overflow-wrap: anywhere; }
.admin-site-link { color: #f2c94c; }
.logout-form { margin: 0; }
.link-button { background: none; border: 0; padding: .2rem 0; min-height: 32px; color: #ded7c9; text-decoration: underline; font-weight: 500; justify-content: flex-start; }
.link-button:hover { background: none; color: #fff; }
.admin-workspace { min-width: 0; }
.admin-mobile { display: none; }
.admin-content { padding: 2rem clamp(1rem, 3vw, 2.8rem) 4rem; max-width: 1120px; }
.admin-context { display: none; }
.admin-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; border-top: 3px solid var(--ink); padding-top: .9rem; margin-bottom: 1.6rem; }
.admin-head h1 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin: 0; }
.admin-date { color: var(--muted); font-size: .76rem; margin: 0 0 .4rem; }
.admin-block { background: var(--paper-light); border: 1px solid var(--line); padding: 1.2rem 1.3rem; margin-bottom: 1.2rem; }
.admin-block h2 { font-size: 1.2rem; margin-bottom: .7rem; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.block-head p { color: var(--muted); font-size: .78rem; }
.ledger { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--line); }
.ledger div { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; padding: .75rem .7rem .75rem 0; border-bottom: 1px solid var(--line); }
.ledger dt { color: var(--muted); font-size: .76rem; }
.ledger dd { margin: 0; font-family: var(--serif); font-size: 1.55rem; font-weight: 700; }
.admin-hint { color: var(--muted); font-size: .82rem; max-width: 72ch; }
.admin-subhead { font-size: 1.05rem; margin: 1.5rem 0 .6rem; }
.admin-article-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 1rem; }
.admin-image img { border: 1px solid var(--line); }
.claim { border-bottom: 1px solid var(--line); padding-bottom: .55rem; margin-bottom: .55rem; }
.claim p { margin-bottom: .2rem; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--paper-light); border: 1px solid var(--line); }
th, td { text-align: left; padding: .65rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .85rem; }
th { background: #eee7d9; font-size: .68rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
td a { color: var(--ink); font-weight: 650; }
.table-sub { display: block; color: var(--muted); font-size: .72rem; font-weight: 400; margin-top: .2rem; overflow-wrap: anywhere; }
.table-url { max-width: 22rem; overflow-wrap: anywhere; font-size: .76rem; }
.inline-form { margin: 0; }
.inline-form button { min-height: 38px; padding: .4rem .7rem; font-size: .78rem; }
.status {
  display: inline-block; border: 1px solid var(--line-strong); padding: .1rem .38rem;
  font-size: .66rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft);
}
.status-published { border-color: var(--ok); color: var(--ok); }
.status-in_review { border-color: var(--warn); color: var(--warn); }
.status-draft { border-color: var(--line-strong); color: var(--muted); }
.status-retracted { border-color: var(--bad); color: var(--bad); }
.gate-list { display: flex; flex-wrap: wrap; gap: .2rem; }
.gate { display: inline-block; border: 1px solid var(--line-strong); padding: .08rem .32rem; font-size: .62rem; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
.gate-pass { border-color: var(--ok); color: var(--ok); }
.gate-review { border-color: var(--warn); color: var(--warn); }
.gate-fail { border-color: var(--bad); color: var(--bad); }
.gate-detail { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.gate-detail li { display: flex; flex-wrap: wrap; gap: .5rem; align-items: baseline; padding: .45rem 0; border-bottom: 1px solid var(--line); font-size: .85rem; }
.gate-reason { color: var(--muted); }
.stack { display: grid; gap: .9rem; max-width: 26rem; }
.stack label { display: grid; gap: .35rem; font-weight: 650; font-size: .85rem; }
.form-error, .form-success { padding: .65rem .8rem; border: 1px solid; margin-bottom: 1rem; font-size: .85rem; }
.form-error { border-color: var(--bad); color: var(--bad); background: #f4dede; }
.form-success { border-color: var(--ok); color: var(--ok); background: #dcebe2; }
.text-link { font-weight: 700; font-size: .86rem; }

/* login */
.login-body { background: var(--ink); min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem; }
.login-shell { width: min(100%, 960px); display: grid; grid-template-columns: 1.1fr .9fr; background: var(--paper); border: 1px solid #3a3f45; }
.login-intro { background: var(--ink); color: #e7dfd0; padding: clamp(1.5rem, 4vw, 3rem); display: flex; flex-direction: column; justify-content: center; }
.brand-login { color: var(--paper); margin-bottom: 2rem; }
.brand-login .brand-main { font-size: 3.2rem; }
.login-intro .kicker { color: #f2c94c; margin-top: .9rem; }
.login-intro h1 { font-size: clamp(2rem, 3.6vw, 3rem); max-width: 16ch; }
.login-intro p { color: #c9bfa9; max-width: 36ch; }
.login-back { color: #f2c94c; margin-top: 1rem; font-size: .86rem; }
.login-panel { padding: clamp(1.5rem, 4vw, 3rem); }
.login-panel h2 { font-size: 1.8rem; }
.login-form { display: grid; gap: 1rem; margin-top: 1.2rem; }
.login-form label { display: grid; gap: .35rem; font-weight: 650; font-size: .85rem; }
.login-form button { margin-top: .3rem; }
.demo-help { margin-top: 1.5rem; border-top: 1px solid var(--line); padding-top: .8rem; font-size: .8rem; }
.demo-help summary { cursor: pointer; font-weight: 750; min-height: 32px; }
.demo-help code { display: block; margin: .4rem 0; padding: .5rem; overflow-wrap: anywhere; }

/* responsive */
@media (max-width: 1080px) {
  .front { grid-template-columns: 1fr; gap: 1.8rem; }
  .latest-rail { border-left: 0; border-top: 1px solid var(--line-strong); padding-left: 0; padding-top: 1rem; }
  .latest-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.5rem; }
  .latest-list li:nth-child(-n+2) { border-top: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-note { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .masthead-top { grid-template-columns: auto 1fr; }
  .search { grid-column: 1 / -1; width: 100%; max-width: none; }
  .brand-tag { display: none; }
  .desk-nav { display: none; }
  .rubrik { display: block; }
  .masthead-nav { padding-bottom: .2rem; }
  .river { grid-template-columns: 1fr; }
  .river-feature { grid-column: auto; grid-template-columns: minmax(0, 1fr); }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { display: none; }
  .admin-mobile {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    background: var(--ink); color: var(--paper); padding: .6rem 1rem; position: sticky; top: 0; z-index: 20;
  }
  .admin-mobile .brand { color: var(--paper); }
  .admin-mobile .brand-main { font-size: 1.7rem; }
  .admin-mobile-menu { position: relative; }
  .admin-mobile-menu summary {
    list-style: none; color: var(--paper); font-weight: 750; cursor: pointer;
    min-height: 44px; display: flex; align-items: center; padding-inline: .6rem; border: 1px solid #3a3f45;
  }
  .admin-mobile-menu summary::-webkit-details-marker { display: none; }
  .admin-mobile-menu nav { display: grid; position: absolute; right: 0; top: calc(100% + .4rem); background: var(--ink); border: 1px solid #3a3f45; min-width: 13rem; padding: .4rem; z-index: 30; }
  .admin-mobile-menu a { color: var(--paper); text-decoration: none; padding: .7rem .8rem; }
  .admin-mobile-menu .logout-form { padding: .4rem .8rem; }
  .admin-content { padding-top: 1.2rem; }
}

@media (max-width: 760px) {
  :root { --measure: 100%; }
  body { font-size: 16px; }
  .wrap { width: calc(100% - 2rem); }
  .masthead-top { padding: .9rem 0 .8rem; gap: .7rem; }
  .brand-main { font-size: 2.6rem; }
  .brand-sub { font-size: .55rem; }
  .utility-row { gap: .4rem .8rem; padding-block: .25rem; }
  .mode-note { display: none; }
  .latest-list { grid-template-columns: 1fr; }
  .lead-title { font-size: clamp(2.05rem, 9vw, 3rem); max-width: 20ch; }
  .dek { font-size: 1.08rem; }
  .river, .river-feature { display: block; }
  .river-item { grid-template-columns: 7.2rem minmax(0, 1fr); gap: .8rem; }
  .river-feature { display: grid; grid-template-columns: 1fr; }
  .river-feature .river-media { order: -1; }
  .row-story { grid-template-columns: 7.4rem minmax(0, 1fr); gap: .8rem; }
  .row-dek { display: none; }
  .story-head h1 { font-size: clamp(2.05rem, 8.4vw, 3.1rem); max-width: 24ch; }
  .story-dek { font-size: 1.05rem; }
  .story-body .prose { font-size: 1.05rem; }
  .summary-box { padding: .9rem 1rem; }
  .foot-grid { grid-template-columns: 1fr; gap: 1.3rem; }
  .pager { flex-wrap: wrap; }
  .login-shell { grid-template-columns: 1fr; }
  .login-intro { padding: 1.5rem; }
  .login-intro h1 { font-size: 2rem; }
  .login-panel { padding: 1.5rem; }
  .ledger { grid-template-columns: 1fr 1fr; }
  .admin-article-grid { grid-template-columns: 1fr; }
  .admin-head { align-items: start; flex-direction: column; }
  .admin-date { margin-top: -.5rem; }
}

@media (max-width: 480px) {
  .utility-admin { margin-left: 0; }
  .utility-row { justify-content: space-between; }
  .lead-title { font-size: 2.05rem; }
  .latest-list a { grid-template-columns: 4.6rem 1fr; }
  .row-story { grid-template-columns: 6.4rem minmax(0, 1fr); }
  .row-copy h2 { font-size: 1.16rem; }
  .row-img { aspect-ratio: 16 / 9; }
  .river-item { grid-template-columns: 6.4rem minmax(0, 1fr); }
  .river-img { aspect-ratio: 16 / 9; }
  .ledger { grid-template-columns: 1fr; }
  .search { flex-wrap: wrap; }
  .search button { width: 100%; }
  .masthead-nav { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media print {
  .utility, .masthead-nav, .site-foot, .ad-slot, .related, .search { display: none; }
  body { background: #fff; color: #000; }
  .story, .story-head, .story-body { max-width: none; }
}

/* control room additions */
.admin-side { overflow-y: auto; }
.button-small { min-height: 34px; padding: .35rem .6rem; font-size: .76rem; }
.filter-row { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; }
.filter-link { padding: .4rem .65rem; border: 1px solid var(--line-strong); color: var(--ink); text-decoration: none; font-size: .8rem; }
.filter-link:hover, .filter-link.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.admin-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .8rem; align-items: end; }
.admin-form label { display: grid; gap: .3rem; font-size: .8rem; font-weight: 650; }
.admin-form label.check { display: flex; align-items: center; gap: .5rem; font-weight: 500; }
.admin-form button { width: fit-content; }
.event-list { list-style: none; padding: 0; margin: 0; font-size: .82rem; }
.event-list li { display: flex; flex-wrap: wrap; gap: .5rem; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.event-time { color: var(--muted); font-size: .72rem; }
.event-level { font-weight: 800; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-dark); }

@media (max-width: 760px) {
  .table-wrap { overflow: visible; }
  .table-wrap table { border: 0; background: transparent; }
  .table-wrap thead { display: none; }
  .table-wrap tbody { display: grid; gap: .7rem; }
  .table-wrap tr {
    display: block; background: var(--paper-light);
    border: 1px solid var(--line); padding: .55rem .7rem;
  }
  .table-wrap td {
    display: block; border: 0; padding: .32rem 0;
    text-align: left; font-size: .84rem;
  }
  .table-wrap td::before {
    content: attr(data-label);
    display: block; margin-bottom: .1rem;
    font-size: .62rem; font-weight: 800; letter-spacing: .09em;
    text-transform: uppercase; color: var(--muted);
  }
  .table-wrap td:empty { display: none; }
  .table-wrap .inline-form { margin-top: .25rem; }
  .table-wrap .inline-form button { width: 100%; }
  .table-wrap td[data-label="Aksi"] form,
  .table-wrap td[data-label="Ubah"] form { display: flex; gap: .4rem; flex-wrap: wrap; }
  .table-wrap td[data-label="Aksi"] select,
  .table-wrap td[data-label="Ubah"] select { flex: 1; }
  .admin-form { grid-template-columns: 1fr; }
  .admin-form button { width: 100%; }
  .filter-row { gap: .3rem; }
  .filter-link { flex: 1 1 auto; text-align: center; }
  .admin-subhead { margin-top: 1.2rem; }
}

@media (max-width: 900px) {
  .admin-mobile-menu nav { max-height: 70vh; overflow-y: auto; }
}
