/* =========================================================================
   The Quill — broadsheet styles
   ========================================================================= */

:root {
  --ink: #121212;
  --ink-2: #333;
  --muted: #666;
  --faint: #959595;
  --paper: #fff;
  --paper-2: #f7f7f5;
  --rule: #dfdfdf;
  --rule-strong: #121212;
  --accent: #a3171c;
  --accent-ink: #fff;
  --ok: #1d6b3a;
  --ok-bg: #e9f4ec;
  --warn-bg: #fff7e0;
  --danger: #b3261e;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --blackletter: "UnifrakturMaguntia", "Old English Text MT", Georgia, serif;

  --gutter: 16px;
  --max: 1200px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
button { font: inherit; }
[hidden] { display: none !important; }

.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;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container--narrow { max-width: 760px; }
.container--story { max-width: 680px; }
.container--figure { max-width: 1000px; }

.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

/* ---------- Top bar ---------- */

.topbar {
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 12px;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
}
.topbar__date { font-weight: 700; color: var(--ink); white-space: nowrap; }
.topbar__links { display: flex; align-items: center; gap: 16px; font-weight: 600; white-space: nowrap; }
.topbar__links form { margin: 0; }
.topbar__search { flex: 0 1 260px; }
.topbar__search input {
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 5px 10px;
  font-family: var(--sans);
  font-size: 12px;
  background: var(--paper-2);
}
.topbar__search input:focus { outline: none; border-color: var(--ink); background: #fff; }

.topbar__search-link { display: none; }
@media (max-width: 760px) { .topbar__search-link { display: inline; } }

.linklike {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--sans); font-size: inherit; font-weight: 600; color: inherit;
}
.linklike:hover { text-decoration: underline; }

/* ---------- Masthead ---------- */

.masthead { text-align: center; padding: 22px 0 10px; }
.masthead__title {
  display: inline-block;
  font-family: var(--blackletter);
  font-weight: 400;
  font-size: clamp(3rem, 9vw, 5.6rem);
  line-height: 1;
  letter-spacing: 0.01em;
}
.masthead__title:hover { text-decoration: none; }
.masthead__edition {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.masthead__dot { font-size: 7px; color: var(--accent); }

/* ---------- Section nav ---------- */

.sections-nav {
  border-top: 1px solid var(--rule-strong);
  border-bottom: 3px double var(--rule-strong);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
}
.sections-nav__inner {
  display: flex;
  justify-content: center;
  gap: 4px 26px;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 10px;
}
.sections-nav a { padding: 2px 0; border-bottom: 2px solid transparent; }
.sections-nav a:hover { text-decoration: none; border-bottom-color: var(--rule); }
.sections-nav a.is-active { border-bottom-color: var(--accent); color: var(--accent); }

.site-main { padding: 24px 0 64px; min-height: 50vh; }

/* ---------- Type primitives ---------- */

.kicker {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.headline {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin: 0 0 8px;
  color: var(--ink);
  font-optical-sizing: auto;
}
.headline a:hover { text-decoration: none; color: var(--ink-2); }
.headline--xl { font-size: clamp(1.85rem, 3.4vw, 2.6rem); line-height: 1.08; font-weight: 800; letter-spacing: -0.015em; }
.headline--lg { font-size: clamp(1.45rem, 2.4vw, 1.85rem); line-height: 1.12; }
.headline--md { font-size: 1.3rem; }
.headline--sm { font-size: 1.12rem; line-height: 1.22; }
.headline--xs { font-size: 1rem; line-height: 1.28; display: block; }

.dek {
  font-size: 1.1rem;
  line-height: 1.45;
  color: var(--ink-2);
  margin: 0 0 12px;
}
.summary {
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ink-2);
  margin: 0 0 8px;
}

.meta {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
}
.meta__author { font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------- Front page ---------- */

.front {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 0;
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 24px;
}
.front__lead { padding-right: 24px; border-right: 1px solid var(--rule); }
.front__rail { padding-left: 24px; }

.lead-story {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px;
}
.lead-story:not(:has(.lead-story__figure)) { grid-template-columns: 1fr; }
.lead-story__text { order: 1; }
.lead-story__figure { order: 2; margin: 0; }
.lead-story__figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.lead-secondary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  margin-top: 20px;
  padding-top: 18px;
}
.lead-secondary__item { padding: 0 20px; border-left: 1px solid var(--rule); }
.lead-secondary__item:first-child { padding-left: 0; border-left: 0; }
.lead-secondary__item:last-child { padding-right: 0; }

figcaption {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
  margin-top: 8px;
}

.rail-title {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 4px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--rule-strong);
}
.latest-list { list-style: none; margin: 0; padding: 0; }
.latest-list li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.latest-list li:last-child { border-bottom: 0; }
.latest-list time {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 3px;
}
.latest-list .headline { margin: 0 0 4px; }
.latest-list__section { font-family: var(--sans); font-size: 11px; color: var(--muted); }

.band { border-bottom: 1px solid var(--rule-strong); padding: 24px 0; }

.story-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.story-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.story-card { padding: 0 20px; border-left: 1px solid var(--rule); }
.story-card:first-child { padding-left: 0; border-left: 0; }
.story-card:last-child { padding-right: 0; }
.story-card__media { display: block; margin-bottom: 12px; overflow: hidden; }
.story-card__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.story-card__media:hover img { transform: scale(1.02); }
.story-card__media--wide img { aspect-ratio: 16 / 9; }

/* Section fronts on the home page */

.section-block { padding-top: 28px; }
.section-block__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-top: 2px solid var(--rule-strong);
  padding-top: 8px;
  margin-bottom: 18px;
}
.section-block__head h2 {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin: 0;
}
.section-block__more { font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--muted); }
.section-block__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}
.section-block__main { padding-right: 24px; border-right: 1px solid var(--rule); }
.section-block__list .list-story:first-child { padding-top: 0; }

.list-story {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.list-story:last-child { border-bottom: 0; }
.list-story__text { flex: 1; min-width: 0; }
.list-story__thumb { flex: 0 0 130px; }
.list-story__thumb img { width: 130px; aspect-ratio: 1 / 1; object-fit: cover; }

/* ---------- About page ---------- */

.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 40px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto 48px;
}
.about-intro__mark { width: 100%; max-width: 340px; height: auto; justify-self: center; }
.about-intro__text p { font-size: 1.08rem; line-height: 1.65; color: var(--ink-2); margin: 0 0 1em; }
.about-intro__text p:first-child { font-size: 1.3rem; line-height: 1.5; color: var(--ink); }
.about-intro__text p:last-child { margin-bottom: 0; }

.leadership { margin-bottom: 40px; }
/* One leader per row; the photo swaps sides on every other row. */
.leader {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 36px 0;
  border-bottom: 1px solid var(--rule);
}
.leader:last-child { border-bottom: 0; }
.leader:nth-child(even) { grid-template-columns: minmax(0, 1fr) 280px; }
.leader:nth-child(even) .leader__photo { order: 2; }
.leader__photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--paper-2); }
.leader__photo--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 4rem;
  font-weight: 700;
  color: var(--faint);
}
.leader .headline { margin-bottom: 14px; }
.leader__greeting p { font-size: 1.05rem; line-height: 1.65; color: var(--ink-2); margin: 0 0 0.9em; }
.leader__greeting p:last-child { margin-bottom: 0; }
.about-edit { font-family: var(--sans); font-size: 13px; color: var(--muted); }
.about-edit a { text-decoration: underline; }

@media (max-width: 760px) {
  .about-intro { grid-template-columns: 1fr; gap: 20px; }
  .about-intro__mark { max-width: 160px; }
  .leader, .leader:nth-child(even) { grid-template-columns: 1fr; gap: 18px; padding: 28px 0; }
  .leader:nth-child(even) .leader__photo { order: 0; }
  .leader__photo { max-width: 280px; }
}

/* ---------- Section page ---------- */

.section-head {
  text-align: center;
  border-bottom: 1px solid var(--rule-strong);
  margin-bottom: 28px;
  padding-bottom: 16px;
}
.section-head h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}
.section-head--left { text-align: left; }

.section-lead {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}
.section-lead:not(:has(.section-lead__figure)) { grid-template-columns: 1fr; max-width: 760px; }
.section-lead__figure { margin: 0; }
.section-lead__figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.section-lead__text { align-self: center; }

.stream { list-style: none; margin: 0; padding: 0; }
.stream__item {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 200px;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
}
.stream__item:not(:has(.stream__thumb)) { grid-template-columns: 130px minmax(0, 1fr); }
.stream__year h2 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 800;
  margin: 32px 0 0;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--rule-strong);
}
.stream__date { font-family: var(--sans); font-size: 12px; color: var(--muted); padding-top: 4px; }
.stream__thumb img { width: 200px; aspect-ratio: 3 / 2; object-fit: cover; }

.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
}
.pagination__count { color: var(--muted); font-weight: 500; }

/* ---------- Search ---------- */

.search-form { display: flex; gap: 8px; margin-bottom: 20px; }
.search-form .form-input { flex: 1; }
.search-count { font-family: var(--sans); font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--rule); padding-bottom: 12px; }

/* ---------- Article page ---------- */

.story { padding-top: 16px; }
.story__header { text-align: left; margin-bottom: 24px; }
.story__headline {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.6vw, 3rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 4px 0 14px;
}
.story__dek {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.4;
  color: var(--ink-2);
  margin: 0;
}
.story__figure { margin: 0 auto 24px; }
.story__figure img { width: 100%; max-height: 560px; object-fit: cover; }

.story__byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  font-family: var(--sans);
  font-size: 13px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 12px 0;
  margin-bottom: 28px;
}
.story__author { margin: 0; flex-basis: 100%; }
.story__date { margin: 0; color: var(--muted); }
.story__date .dot { margin: 0 4px; }
.share-btn {
  border: 1px solid var(--rule);
  background: #fff;
  border-radius: 999px;
  padding: 5px 14px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.share-btn:hover { border-color: var(--ink); }

.story__body {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #1a1a1a;
  overflow-wrap: break-word;
}
.story__body > p:first-of-type::first-letter {
  float: left;
  font-size: 4.4em;
  line-height: 0.82;
  font-weight: 700;
  padding: 6px 10px 0 0;
}
.story__body p { margin: 0 0 1.3em; }
.story__body > p:first-of-type { display: flow-root; }
.story__body h2, .story__body h3, .story__body h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.2;
  margin: 1.8em 0 0.6em;
}
.story__body h2 { font-size: 1.5rem; }
.story__body h3 { font-size: 1.25rem; }
.story__body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.story__body blockquote {
  margin: 1.6em 0;
  padding: 0 0 0 20px;
  border-left: 3px solid var(--accent);
  font-size: 1.35rem;
  line-height: 1.45;
  font-style: italic;
  color: var(--ink);
}
.story__body ul, .story__body ol { padding-left: 1.3em; margin: 0 0 1.3em; }
.story__body li { margin-bottom: 0.4em; }
.story__body li[data-list="bullet"] { list-style-type: disc; }
.story__body img { margin: 1.5em 0; }
.story__body hr { border: 0; border-top: 1px solid var(--rule); margin: 2em auto; width: 40%; }
.story__end {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  padding-top: 14px;
  margin-top: 32px;
}
.story__end span { color: var(--accent); margin-right: 4px; }
.story__end a { color: var(--ink); font-weight: 700; }

.editor-bar {
  background: var(--ink);
  color: #fff;
  font-family: var(--sans);
  font-size: 13px;
  margin: -24px 0 24px;
}
.editor-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 10px;
}
.editor-bar__actions { display: flex; gap: 8px; }
.editor-bar__actions form { margin: 0; }

/* ---------- Empty states, flashes ---------- */

.empty-state { text-align: center; max-width: 620px; margin: 48px auto; }
.empty-state .btn { margin-top: 12px; }

.flash-stack { margin-bottom: 16px; }
.flash {
  font-family: var(--sans);
  font-size: 14px;
  padding: 12px 16px;
  border-left: 4px solid var(--ink);
  background: var(--paper-2);
  margin-bottom: 8px;
}
.flash--success { border-color: var(--ok); background: var(--ok-bg); }
.flash--error { border-color: var(--danger); background: #fdecea; }
.flash--warning { border-color: #c48a00; background: var(--warn-bg); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { background: #000; text-decoration: none; }
.btn--accent { background: var(--accent); border-color: var(--accent); }
.btn--accent:hover { background: #82110f; border-color: #82110f; }
.btn--outline { background: #fff; color: var(--ink); border-color: #c9c9c9; }
.btn--outline:hover { background: #fff; border-color: var(--ink); }
.btn--danger { background: #fff; color: var(--danger); border-color: #e7c1be; }
.btn--danger:hover { background: #fdecea; border-color: var(--danger); }
.btn--danger-solid { background: var(--danger); border-color: var(--danger); }
.btn--danger-solid:hover { background: #8e1d17; }
.btn--ghost-light { background: transparent; border-color: #666; color: #fff; }
.btn--ghost-light:hover { background: #333; }
.btn--sm { padding: 5px 10px; font-size: 12px; }
.btn--block { width: 100%; }

/* ---------- Forms ---------- */

.form-input {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid #c9c9c9;
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.4;
}
.form-input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(18, 18, 18, 0.08); }
textarea.form-input { resize: vertical; }
select.form-input { appearance: auto; }
.form-input--headline {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 700;
  padding: 10px 12px;
}

.field { margin-bottom: 18px; }
.field > label, .field__label {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.field-help { font-family: var(--sans); font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.field-error { font-family: var(--sans); font-size: 13px; color: var(--danger); margin: 6px 0 0; font-weight: 600; }
.has-error .form-input, .has-error .rte .ql-container, .has-error .rte .ql-toolbar { border-color: var(--danger); }

.checkbox { display: flex; gap: 10px; align-items: flex-start; font-family: var(--sans); font-size: 14px; cursor: pointer; }
.checkbox input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--accent); }
.checkbox small { display: block; color: var(--muted); font-size: 12px; }
.checkbox--small { font-size: 13px; margin-top: 8px; }

.file-input { font-family: var(--sans); font-size: 13px; width: 100%; }

.form-stack .field:last-of-type { margin-bottom: 22px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

.login-box, .confirm-box {
  max-width: 420px;
  margin: 32px auto;
  padding: 32px;
  border: 1px solid var(--rule);
  border-top: 4px solid var(--ink);
}
.confirm-box { max-width: 560px; }
.confirm-box p { font-size: 1.05rem; }

/* ---------- Newsroom (dashboard) ---------- */

.newsroom-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--rule-strong);
}
.newsroom-head .headline { margin: 0 0 4px; }
.newsroom-head p { margin: 0; font-family: var(--sans); font-size: 13px; }
.back-link { font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--muted); display: inline-block; margin-bottom: 4px; }

.stat-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.stat {
  flex: 1 1 120px;
  border: 1px solid var(--rule);
  padding: 14px 16px;
  font-family: var(--sans);
  display: flex;
  flex-direction: column;
}
.stat:hover { text-decoration: none; border-color: var(--ink); }
.stat.is-active { border-color: var(--ink); box-shadow: inset 0 -3px 0 var(--accent); }
.stat__num { font-family: var(--serif); font-size: 1.9rem; font-weight: 700; line-height: 1; }
.stat__label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 6px; }

.newsroom-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.newsroom-filters input[type="search"] { flex: 1 1 240px; }
.newsroom-filters select { flex: 0 1 220px; }

.bulk-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 12px;
  padding: 10px 14px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 13px;
}
.bulk-bar .btn:disabled { opacity: 0.4; cursor: not-allowed; }
.bulk-bar__count { font-weight: 700; margin-right: auto; }
.bulk-bar select { width: auto; padding-top: 6px; padding-bottom: 6px; }
.desk-table__check { width: 1%; padding-right: 0 !important; }
.desk-table__check input { width: 16px; height: 16px; margin: 0; vertical-align: middle; }

.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--rule); }
.desk-table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 13px; min-width: 760px; }
.desk-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--paper-2);
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule);
}
.desk-table td { padding: 12px 14px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.desk-table tbody tr:last-child td { border-bottom: 0; }
.desk-table tbody tr:hover { background: #fcfcfb; }
.desk-table__story { min-width: 280px; }
.desk-table__story .headline { margin-bottom: 3px; }
.desk-table__story .muted { font-size: 12px; }
.desk-table__actions { display: flex; gap: 6px; justify-content: flex-end; align-items: center; white-space: nowrap; }
.desk-table__actions form { margin: 0; }
.desk-table__empty { text-align: center; color: var(--muted); padding: 40px 14px !important; }
.desk-table__empty a { text-decoration: underline; color: var(--ink); }
.tag-lead { color: var(--accent); font-weight: 700; }

.status-pill {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.status-pill--published { background: var(--ok-bg); color: var(--ok); }
.status-pill--draft { background: var(--warn-bg); color: #7a5600; }
.status-pill--archived { background: #ececec; color: #555; }

/* Compact masthead inside the newsroom */
.is-newsroom .masthead { padding: 12px 0 8px; }
.is-newsroom .masthead__title { font-size: 2.6rem; }
.is-newsroom .masthead__edition { display: none; }

/* Article editor */

.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
}
.editor-side { position: sticky; top: 16px; }
.panel { border: 1px solid var(--rule); padding: 18px; margin-bottom: 16px; background: #fff; }
.panel__title {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}
.panel__note { font-family: var(--sans); font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.panel .btn--block + .btn--block { margin-top: 8px; }
.panel__danger { display: block; margin-top: 14px; font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--danger); text-align: center; }
.panel .field:last-child { margin-bottom: 0; }
.panel .checkbox { margin-top: 4px; }
.cover-preview { margin-bottom: 12px; }
.cover-preview img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border: 1px solid var(--rule); }

.rte .ql-toolbar.ql-snow {
  border-color: #c9c9c9;
  border-radius: 2px 2px 0 0;
  background: var(--paper-2);
  position: sticky;
  top: 0;
  z-index: 2;
}
.rte .ql-container.ql-snow { border-color: #c9c9c9; border-radius: 0 0 2px 2px; }
.rte .ql-editor {
  min-height: 460px;
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.7;
  padding: 20px 22px;
}
.rte .ql-editor h2 { font-size: 1.45rem; margin: 1em 0 0.4em; }
.rte .ql-editor h3 { font-size: 1.2rem; margin: 1em 0 0.4em; }
.rte .ql-editor p { margin-bottom: 0.9em; }
.rte .ql-editor blockquote { border-left: 3px solid var(--accent); font-style: italic; }
.rte .ql-editor.ql-blank::before { font-style: normal; color: var(--faint); }

/* ---------- Print edition picker ---------- */

.print-controls { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 20px 0 24px; }
.print-year { margin-bottom: 28px; }
.print-year__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--rule-strong);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 13px;
}
.print-year__head input { accent-color: var(--accent); width: 16px; height: 16px; align-self: center; margin: 0; }
.print-year__title { font-family: var(--serif); font-size: 1.6rem; font-weight: 800; }
.print-group { border: 0; border-top: 1px solid var(--rule); padding: 10px 0 16px; margin: 0; }
.print-group legend { padding: 0 8px 0 0; }
.print-pick { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; cursor: pointer; }
.print-pick input { margin-top: 4px; accent-color: var(--accent); }
.print-pick .headline { display: inline; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 3px double var(--rule-strong);
  padding: 32px 0 40px;
  text-align: center;
}
.site-footer__title { font-family: var(--blackletter); font-size: 2.2rem; }
.site-footer__title:hover { text-decoration: none; }
.site-footer__sections {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
  margin: 14px 0 18px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
}
.site-footer__legal { font-family: var(--sans); font-size: 12px; color: var(--muted); margin: 0; }
.site-footer__credit {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 8px 0 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .front { grid-template-columns: 1fr; }
  .front__lead { padding-right: 0; border-right: 0; }
  .front__rail { padding-left: 0; margin-top: 24px; border-top: 1px solid var(--rule-strong); padding-top: 16px; }
  .latest-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .latest-list li:nth-last-child(2) { border-bottom: 0; }
  .story-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
  .story-card:nth-child(odd) { padding-left: 0; border-left: 0; }
  .story-card:nth-child(even) { padding-right: 0; }
  .editor-layout { grid-template-columns: 1fr; }
  .editor-side { position: static; }
}

@media (max-width: 760px) {
  .topbar__search, .topbar__date, .topbar__paper { display: none; }
  .topbar__inner { justify-content: flex-end; }
  .masthead { padding-top: 16px; }
  .masthead__edition { font-size: 10px; gap: 6px; }
  .sections-nav__inner {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 20px;
  }
  .sections-nav__inner::-webkit-scrollbar { display: none; }
  .sections-nav a { white-space: nowrap; }

  .lead-story { grid-template-columns: 1fr; gap: 16px; }
  .lead-secondary { grid-template-columns: 1fr; }
  .lead-secondary__item, .lead-secondary__item:first-child { padding: 14px 0; border-left: 0; border-bottom: 1px solid var(--rule); }
  .lead-secondary__item:first-child { padding-top: 0; }
  .lead-secondary__item:last-child { border-bottom: 0; }
  .lead-story__figure { order: 0; margin: 0 calc(var(--gutter) * -1); }
  .lead-story__figure figcaption { padding: 0 var(--gutter); }
  .latest-list { display: block; }
  .latest-list li:nth-last-child(2) { border-bottom: 1px solid var(--rule); }

  .story-row, .story-row--3 { grid-template-columns: 1fr; row-gap: 0; }
  .story-card, .story-card:first-child, .story-card:nth-child(odd), .story-card:nth-child(even) {
    padding: 16px 0;
    border-left: 0;
    border-bottom: 1px solid var(--rule);
  }
  .story-card:last-child { border-bottom: 0; }

  .section-block__body { grid-template-columns: 1fr; gap: 8px; }
  .section-block__main { padding-right: 0; border-right: 0; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
  .section-block__list .list-story:first-child { padding-top: 14px; }
  .list-story__thumb { flex-basis: 96px; }
  .list-story__thumb img { width: 96px; }

  .section-lead { grid-template-columns: 1fr; gap: 16px; }
  .stream__item,
  .stream__item:not(:has(.stream__thumb)) { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .stream__item:has(.stream__thumb) { grid-template-columns: minmax(0, 1fr) 96px; }
  .stream__item .stream__date { grid-column: 1 / -1; padding: 0; }
  .stream__thumb img { width: 96px; aspect-ratio: 1 / 1; }

  .story__body { font-size: 1.1rem; }
  .story__figure { padding: 0; }
  .story__figure figcaption { padding: 0 var(--gutter); }

  .login-box, .confirm-box { padding: 24px 20px; margin: 16px auto; }
  .newsroom-head { align-items: flex-start; }
}

/* ---------- Print ---------- */

#print-area { display: none; }

@media print {
  @page { margin: 14mm; }

  .no-print, .topbar, .masthead, .sections-nav, .site-footer, .flash-stack, .editor-bar { display: none !important; }
  /* Browser extensions inject floating widgets (position: fixed), which
     Chrome stamps onto every printed page. Print only our own content. */
  html > *:not(head):not(body),
  body > *:not(.site-main) { display: none !important; }
  body { background: #fff; }
  .site-main { padding: 0; }

  #print-area { display: block !important; }

  /* Running head on every page after the front. */
  @page {
    @top-left { content: "The Quill"; font-family: "UnifrakturMaguntia", serif; font-size: 12pt; }
    @top-right { content: "Page " counter(page); font-family: "Libre Franklin", sans-serif; font-size: 7pt; font-weight: 700; text-transform: uppercase; }
  }
  @page :first {
    @top-left { content: none; }
    @top-right { content: none; }
  }

  #print-area { color: #000; font-family: var(--serif); }

  /* Nameplate: ears either side of the title, dateline between rules. */
  .print-masthead { margin-bottom: 10px; }
  .print-masthead__top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
  }
  .print-masthead h1 {
    font-family: var(--blackletter);
    font-weight: 400;
    font-size: 64pt;
    line-height: 1;
    margin: 4px 0 6px;
    text-align: center;
  }
  .print-ear {
    justify-self: start;
    border: 1px solid #000;
    padding: 5px 8px;
    font-family: var(--sans);
    font-size: 7pt;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.35;
    text-transform: uppercase;
    text-align: center;
  }
  .print-ear--right { justify-self: end; }
  .print-folio {
    display: flex;
    justify-content: space-between;
    border-top: 3px solid #000;
    border-bottom: 1px solid #000;
    padding: 3px 0;
    font-family: var(--sans);
    font-size: 7.5pt;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  /* Front page: the lead story beside an "Inside" index rail. */
  .print-front {
    display: grid;
    grid-template-columns: 1fr 1.6in;
    gap: 0 14px;
    padding-bottom: 12px;
    border-bottom: 3px double #000;
    margin-bottom: 4px;
  }
  .print-front:has(.print-index[hidden]) { grid-template-columns: 1fr; }
  .print-index[hidden] { display: none; }
  .print-index {
    border-left: 1px solid #000;
    padding-left: 12px;
    align-self: start;
  }
  .print-index h3 {
    font-family: var(--sans);
    font-size: 9pt;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 0 0 6px;
    padding: 3px 0;
    border-top: 3px solid #000;
    border-bottom: 1px solid #000;
  }
  .print-index ol { list-style: none; margin: 0; padding: 0; }
  .print-index li {
    font-family: var(--serif);
    font-size: 8.5pt;
    font-weight: 600;
    line-height: 1.2;
    padding: 5px 0;
    border-bottom: 1px dotted #777;
    break-inside: avoid;
  }
  .print-index li span {
    display: block;
    font-family: var(--sans);
    font-size: 6pt;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1px;
  }

  /* Section flags across the full width of the page. */
  .print-section { display: none; }
  .print-section.selected { display: block; margin-top: 10px; }
  .print-section__flag {
    font-family: var(--sans);
    font-size: 10pt;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin: 0 0 8px;
    padding: 3px 0 2px;
    border-top: 3px solid #000;
    border-bottom: 1px solid #000;
    break-after: avoid;
  }

  .print-edition-columns { column-count: 4; column-gap: 14px; column-rule: 0.5pt solid #999; }
  .print-article { display: none; min-width: 0; overflow-wrap: anywhere; }
  .print-article.selected { display: block; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 0.5pt solid #000; }
  .print-edition-columns > .print-article.selected:last-of-type { border-bottom: 0; }
  /* Keep the section tag, headline and byline in one column. */
  .print-article__head { break-inside: avoid; }

  .print-photo { margin: 0 0 5px; }
  .print-photo img { display: block; width: 100%; max-height: 2.4in; object-fit: cover; }
  .print-photo figcaption {
    font-family: var(--sans);
    font-size: 6.5pt;
    line-height: 1.3;
    color: #222;
    margin-top: 3px;
    padding-bottom: 3px;
    border-bottom: 0.5pt solid #000;
  }

  .print-section-tag { display: none; }
  .print-article h2 { font-family: var(--serif); font-weight: 700; font-size: 13pt; line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 4px; }
  /* The first story in each section gets the bigger headline. */
  .print-edition-columns > .print-article.selected:not(.selected ~ .selected) h2 { font-size: 17pt; font-weight: 800; }
  .print-subtitle { font-size: 9.5pt; font-style: italic; line-height: 1.25; margin: 0 0 5px; }
  .print-byline {
    font-family: var(--sans);
    font-size: 6.5pt;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 6px;
    padding-bottom: 4px;
    border-bottom: 0.5pt solid #000;
  }

  /* Body copy: newspaper-style indented paragraphs, no gaps between them. */
  .print-body { font-size: 8.75pt; line-height: 1.32; text-align: justify; hyphens: auto; overflow-wrap: anywhere; word-break: break-word; orphans: 2; widows: 2; }
  .print-body img, .print-body table, .print-body pre { max-width: 100%; }
  .print-body pre { white-space: pre-wrap; }
  .print-body p { margin: 0; text-indent: 1.2em; }
  .print-body > p:first-child, .print-body h2 + p, .print-body h3 + p, .print-body blockquote + p { text-indent: 0; }
  .print-body blockquote { margin: 6px 0; padding: 4px 0; border-top: 1.5pt solid #000; border-bottom: 1.5pt solid #000; font-size: 11pt; font-style: italic; line-height: 1.25; text-align: left; }
  .print-body blockquote p { text-indent: 0; }
  .print-body h2, .print-body h3 { font-family: var(--sans); font-size: 8pt; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; text-align: left; margin: 7px 0 2px; }
  .print-body ul, .print-body ol { margin: 4px 0; padding-left: 1.3em; text-align: left; }

  /* Lead story: banner headline, big photo, body set in three columns. */
  .print-article--lead.selected { border-bottom: 0; margin: 0; padding: 0; }
  .print-article--lead .print-section-tag {
    display: inline-block;
    font-family: var(--sans);
    font-size: 7.5pt;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 8px 0 3px;
  }
  .print-article--lead h2 { font-size: 34pt; font-weight: 800; line-height: 1; letter-spacing: -0.02em; margin: 0 0 6px; }
  .print-article--lead .print-subtitle { font-size: 13pt; line-height: 1.2; margin-bottom: 8px; }
  .print-article--lead .print-photo img { max-height: 3.4in; }
  .print-article--lead .print-photo { margin-bottom: 8px; }
  .print-article--lead .print-body { column-count: 3; column-gap: 14px; column-rule: 0.5pt solid #999; font-size: 9.25pt; }
  .print-article--lead .print-body > p:first-child::first-letter {
    float: left;
    font-family: var(--serif);
    font-weight: 800;
    font-size: 4.1em;
    line-height: 0.8;
    margin: 3px 5px 0 0;
  }
  /* Lead reads tag, headline, deck, byline, then the photo. */
  .print-article--lead .print-article__head { display: flex; flex-direction: column; }
  .print-article--lead .print-photo { order: 5; }
  .print-article--lead .print-byline { order: 4; }
}
