:root {
  --paper: #ffffff;
  --ink: #111111;
  --soft-ink: #444444;
  --muted: #666666;
  --rule: #111111;
  --hairline: #cfcfcf;
  --accent: #7b1717;
  --page-width: 1420px;
  --outer: 20px;
  --gutter: 18px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.3;
}

html.is-frozen-edition,
body.is-frozen-edition {
  --ink: #5f5f5f;
  --soft-ink: #696969;
  --muted: #777777;
  --rule: #8a8a8a;
  --hairline: #d8d8d8;
  --accent: #666666;
}

html.is-frozen-edition .masthead-word {
  color: #111111;
}

html.is-frozen-edition .masthead-logo img {
  filter: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3,
ol,
ul,
dl,
dd {
  margin: 0;
}

ol,
ul {
  padding: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.edition-shell {
  width: min(calc(100vw - 2 * var(--outer)), var(--page-width));
  margin: 0 auto;
  padding: 18px 0 44px;
}

.paper-header {
  border-bottom: 2px solid var(--rule);
}

.edition-bar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: var(--gutter);
  align-items: end;
  min-height: 36px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.edition-bar-left {
  color: var(--muted);
}

.edition-bar-center {
  text-align: center;
  font-weight: 700;
}

.edition-picker {
  position: relative;
  justify-self: end;
  text-align: right;
}

.edition-trigger {
  min-width: 172px;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  padding: 0 0 3px;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: right;
  text-transform: uppercase;
  cursor: pointer;
}

.edition-trigger:focus-visible,
.edition-popover button:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 3px;
}

.edition-popover {
  position: absolute;
  z-index: 20;
  top: calc(100% + 12px);
  right: 0;
  width: 320px;
  padding: 14px;
  border: 1px solid var(--rule);
  background: var(--paper);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
  color: var(--ink);
  text-align: left;
}

.edition-popover[hidden] {
  display: none;
}

.edition-popover::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 18px;
  width: 12px;
  height: 12px;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
  background: var(--paper);
  transform: rotate(45deg);
}

.edition-popover-top {
  display: grid;
  gap: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hairline);
}

.edition-popover-top p,
.edition-calendar-head p {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.edition-popover-top span {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.edition-years,
.edition-months {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.edition-years {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.edition-months {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.edition-years button,
.edition-months button,
.edition-day-grid button,
.edition-arrow {
  min-height: 30px;
  border: 1px solid var(--hairline);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.edition-years button.is-active,
.edition-months button.is-active,
.edition-day-grid button.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.edition-years button:disabled,
.edition-months button:disabled,
.edition-day-grid button:disabled {
  opacity: 0.25;
  cursor: default;
}

.edition-calendar-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
}

.edition-calendar-head p {
  text-align: center;
}

.edition-arrow {
  width: 30px;
  padding: 0;
}

.edition-weekdays,
.edition-day-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  margin-top: 8px;
}

.edition-weekdays span {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.edition-day-grid .is-empty {
  min-height: 30px;
}

.masthead {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gutter);
  align-items: center;
  padding: 76px 0 20px;
}

.masthead-brand {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 168px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  justify-self: center;
  width: min(100%, 1120px);
}

.masthead-word {
  font-family: var(--serif);
  font-size: clamp(4.2rem, 6.2vw, 6rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 0.82;
  color: var(--ink);
}

.masthead-word-left {
  justify-self: end;
  transform: translateX(-12px);
}

.masthead-word-right {
  justify-self: start;
  transform: translateX(-6px);
}

.masthead-logo {
  display: block;
  width: 168px;
  height: 222px;
}

.masthead-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.masthead-ear {
  position: absolute;
  top: 76px;
  width: 112px;
  padding-top: 8px;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.masthead-ear-left {
  left: 0;
  text-align: left;
}

.masthead-ear-right {
  right: 0;
  text-align: right;
}

.record-status {
  display: flex;
  justify-content: center;
  padding: 8px 0 12px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.record-status span::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  background: currentColor;
  vertical-align: 0.05em;
}

.daily-edition {
  display: grid;
  gap: 0;
}

.pdf-text-layer {
  display: none;
}

.rail-sponsor {
  display: grid;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--rule);
}

.rail-ad-frame {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: clamp(150px, 12vw, 190px);
  border: 1px solid var(--rule);
  background:
    linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.035), transparent),
    var(--paper);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-align: center;
  text-transform: uppercase;
}

.rail-ornament-window {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  overflow: visible;
  border-bottom: 1px solid var(--hairline);
}

.rail-ornament {
  width: min(100%, 430px);
  max-width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  object-position: center;
  opacity: 0.94;
}

.front-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.15fr) minmax(430px, 2fr) minmax(320px, 1.25fr);
  gap: var(--gutter);
  padding: 20px 0 24px;
  border-bottom: 2px solid var(--rule);
}

.front-rail {
  min-width: 0;
  padding-top: 4px;
}

.front-signals {
  border-right: 1px solid var(--rule);
  padding-right: var(--gutter);
}

.front-watch {
  border-left: 1px solid var(--rule);
  padding-left: var(--gutter);
}

.section-kicker,
.section-heading p {
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.front-rail h2,
.section-heading h2 {
  margin-top: 4px;
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 0.98;
}

.daily-record {
  position: relative;
  min-width: 0;
  text-align: center;
}

.daily-record h2 {
  max-width: 17ch;
  margin: 6px auto 0;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 4.6vw, 4.8rem);
  font-weight: 700;
  line-height: 0.92;
}

.record-subhead {
  max-width: 58ch;
  margin: 14px auto 0;
  color: var(--soft-ink);
  font-size: 1.1rem;
  line-height: 1.35;
}

.record-visual {
  max-width: 100%;
  margin: 18px auto 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 8px 0 7px;
  text-align: left;
}

.record-visual[hidden] {
  display: none;
}

.record-visual img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  object-position: center;
  filter: grayscale(1) contrast(1.03);
}

.record-visual figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.25;
}

.record-body {
  display: grid;
  gap: 10px;
  max-width: 68ch;
  margin: 18px auto 0;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.45;
  text-align: left;
}

.record-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-align: left;
}

.record-facts div {
  min-width: 0;
  padding: 10px 12px;
}

.record-facts div + div {
  border-left: 1px solid var(--hairline);
}

.record-facts dt,
.record-label,
.record-meta,
.signal-domain,
.watch-label {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.25;
  text-transform: uppercase;
}

.record-facts dd {
  margin-top: 4px;
  color: var(--soft-ink);
  font-size: 0.88rem;
  line-height: 1.3;
}

.signal-list {
  display: grid;
  gap: 0;
  margin-top: 12px;
  list-style: none;
  counter-reset: signals;
}

.signal-list li {
  position: relative;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 9px;
  padding: 11px 0;
  border-top: 1px solid var(--hairline);
  counter-increment: signals;
}

.signal-list li::before {
  content: counter(signals);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 0.9;
}

.signal-domain {
  display: block;
  margin-bottom: 3px;
  color: var(--accent);
}

.signal-list p,
.watch-card p,
.record-card p,
.market-card p,
.continuity-card p {
  color: var(--soft-ink);
  font-size: 0.94rem;
  line-height: 1.35;
}

.watch-stack {
  display: grid;
  gap: 0;
  margin-top: 12px;
}

.watch-card {
  position: relative;
  padding: 12px 0;
  border-top: 1px solid var(--hairline);
}

.watch-card h3 {
  margin-top: 3px;
  font-family: var(--serif);
  font-size: 1.28rem;
  line-height: 1;
}

.watch-card p {
  margin-top: 6px;
}

.paper-section {
  padding: 22px 0 24px;
  border-bottom: 2px solid var(--rule);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--gutter);
  align-items: end;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}

.section-heading h2 {
  justify-self: end;
  text-align: right;
}

.three-column-ledger,
.record-row,
.market-grid,
.close-grid {
  display: grid;
  gap: var(--gutter);
  margin-top: 14px;
}

.three-column-ledger,
.market-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.record-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.record-row.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.record-column,
.record-card,
.market-card,
.continuity-card {
  min-width: 0;
}

.record-column {
  padding-right: var(--gutter);
  border-right: 1px solid var(--hairline);
}

.record-column:last-child {
  padding-right: 0;
  border-right: 0;
}

.record-column h3,
.close-grid h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.record-card,
.market-card,
.continuity-card {
  position: relative;
  padding: 12px 0;
  border-top: 1px solid var(--hairline);
}

.record-card h4,
.market-card h3,
.continuity-card h4 {
  margin-top: 4px;
  font-family: var(--serif);
  font-size: 1.24rem;
  font-weight: 700;
  line-height: 1.05;
}

.record-card p,
.market-card p,
.continuity-card p {
  margin-top: 6px;
}

.record-meta {
  display: block;
  margin-top: 8px;
}

.market-card {
  border-top: 2px solid var(--rule);
}

.market-card dl {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.market-card div {
  display: grid;
  gap: 3px;
}

.market-card dt {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.market-card dd {
  color: var(--soft-ink);
  font-size: 0.92rem;
  line-height: 1.3;
}

.close-grid {
  grid-template-columns: 1fr 1fr;
}

.close-grid > div:first-child {
  padding-right: var(--gutter);
  border-right: 1px solid var(--hairline);
}

.continuity-list {
  margin-top: 10px;
}

.is-live-updated {
  animation: record-pulse 900ms ease-out;
}

.new-record-badge {
  position: absolute;
  top: 8px;
  right: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 2px 5px 1px;
  border-top: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  background: var(--paper);
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  animation: new-record-enter 700ms ease-out;
}

.daily-record-badge {
  top: 0;
  right: 0;
}

.is-new-record {
  animation: new-record-settle 900ms ease-out;
}

.signal-list li.is-new-record,
.watch-card.is-new-record,
.record-card.is-new-record,
.market-card.is-new-record,
.continuity-card.is-new-record {
  padding-right: 44px;
}

.daily-record.is-new-record {
  padding-top: 8px;
}

.component-waiting {
  display: grid;
  align-items: center;
  min-height: 44px;
  margin-top: 12px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.component-waiting span {
  display: block;
  height: 1px;
  width: 100%;
  background:
    linear-gradient(90deg, transparent 0%, rgba(17, 17, 17, 0.18) 45%, rgba(17, 17, 17, 0.18) 55%, transparent 100%),
    var(--hairline);
  background-size: 220% 100%, 100% 100%;
  animation: quiet-rule-shimmer 1.65s linear infinite;
}

@keyframes record-pulse {
  0% {
    background: rgba(123, 23, 23, 0.1);
  }
  100% {
    background: transparent;
  }
}

@keyframes new-record-enter {
  0% {
    opacity: 0;
    transform: translateY(-3px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes new-record-settle {
  0% {
    background: rgba(123, 23, 23, 0.08);
  }
  100% {
    background: transparent;
  }
}

@keyframes quiet-rule-shimmer {
  0% {
    background-position: 220% 0, 0 0;
  }
  100% {
    background-position: -120% 0, 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .is-live-updated,
  .is-new-record,
  .new-record-badge,
  .component-waiting span {
    animation: none !important;
  }
}

@media screen and (max-width: 1320px) {
  .masthead-ear {
    display: none;
  }
}

@media screen and (max-width: 1120px) {
  :root {
    --outer: 20px;
  }

  .masthead {
    grid-template-columns: 1fr;
    padding-top: 48px;
  }

  .masthead-brand {
    grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr);
    gap: 18px;
  }

  .masthead-logo {
    width: 150px;
    height: 204px;
  }

  .front-grid {
    grid-template-columns: 1fr;
  }

  .daily-record {
    order: 1;
  }

  .front-signals {
    order: 2;
    border-right: 0;
    padding-right: 0;
  }

  .front-watch {
    order: 3;
    border-left: 0;
    padding-left: 0;
  }

  .rail-ad-frame {
    min-height: 150px;
  }

  .rail-ornament {
    width: min(100%, 380px);
    max-height: none;
  }
}

@media screen and (max-width: 820px) {
  :root {
    --outer: 14px;
    --gutter: 14px;
  }

  .edition-shell {
    padding-top: 12px;
  }

  .edition-bar {
    grid-template-columns: 1fr;
    gap: 6px;
    text-align: left;
  }

  .edition-bar-center,
  .edition-picker {
    justify-self: stretch;
    text-align: left;
  }

  .edition-trigger {
    width: 100%;
    text-align: left;
  }

  .edition-popover {
    right: auto;
    left: 0;
    width: min(320px, calc(100vw - 28px));
  }

  .edition-popover::before {
    right: auto;
    left: 18px;
  }

  .masthead-brand {
    grid-template-columns: 1fr;
    justify-items: center;
    width: 100%;
    min-width: 0;
    gap: 8px;
  }

  .masthead-word {
    max-width: 100%;
    font-size: clamp(2.8rem, 12vw, 3.15rem);
    line-height: 0.9;
    text-align: center;
  }

  .masthead-word-left,
  .masthead-word-right {
    justify-self: center;
    transform: none;
  }

  .masthead-logo {
    width: 132px;
    height: 174px;
  }

  .rail-sponsor {
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 14px;
  }

  .rail-ad-frame {
    min-height: 130px;
  }

  .rail-ornament {
    width: min(100%, 260px);
  }

  .daily-record h2 {
    max-width: 12ch;
    font-size: clamp(2.45rem, 10vw, 3.5rem);
  }

  .record-visual img {
    aspect-ratio: 4 / 3;
  }

  .record-status {
    flex-wrap: wrap;
    padding-right: 8px;
    padding-left: 8px;
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    text-align: center;
  }

  .front-grid,
  .daily-record,
  .front-rail,
  .record-subhead,
  .record-body {
    min-width: 0;
    max-width: 100%;
  }

  .record-body {
    text-align: left;
  }

  .record-facts,
  .three-column-ledger,
  .record-row,
  .record-row.compact,
  .market-grid,
  .close-grid {
    grid-template-columns: 1fr;
  }

  .record-facts div + div,
  .record-column,
  .close-grid > div:first-child {
    border-left: 0;
    border-right: 0;
  }

  .record-column {
    padding-right: 0;
  }

  .record-column + .record-column {
    padding-top: 12px;
    border-top: 1px solid var(--rule);
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .section-heading h2 {
    justify-self: start;
    text-align: left;
  }
}

@media print {
  @page {
    size: A4;
    margin: 10mm 9mm;
  }

  :root {
    --paper: #ffffff;
    --outer: 0px;
    --page-width: 100%;
    --gutter: 10px;
    --serif: "Times New Roman", Times, serif;
    --sans: Arial, Helvetica, sans-serif;
  }

  *,
  *::before,
  *::after {
    box-shadow: none !important;
    text-shadow: none !important;
    font-variant-ligatures: none !important;
    font-feature-settings: "liga" 0, "clig" 0, "calt" 0 !important;
    font-kerning: none !important;
    letter-spacing: 0 !important;
    word-spacing: normal !important;
  }

  html,
  body {
    background: #ffffff;
    color: #111111;
    font-family: "Times New Roman", Times, serif;
    line-height: 1.24;
    text-rendering: optimizeLegibility;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .edition-shell {
    width: 100%;
    padding: 0;
  }

  [hidden],
  .edition-trigger,
  .edition-popover,
  .new-record-badge,
  .component-waiting {
    display: none !important;
  }

  .pdf-text-layer {
    display: block;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 0;
    width: 190mm;
    overflow: visible;
    color: rgba(255, 255, 255, 0.01);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.1pt;
    line-height: 1;
    white-space: pre-wrap;
    pointer-events: none;
  }

  .edition-bar,
  .record-status,
  .section-kicker,
  .section-heading p,
  .record-facts dt,
  .record-label,
  .record-meta,
  .signal-domain,
  .watch-label {
    font-family: Arial, Helvetica, sans-serif;
  }

  .edition-bar {
    min-height: 24px;
    padding-bottom: 5px;
    font-size: 7.5pt;
  }

  .paper-header {
    break-after: auto;
    page-break-after: auto;
  }

  .masthead {
    position: static;
    grid-template-columns: minmax(0, 1fr) minmax(0, 124mm) minmax(0, 1fr);
    gap: 5px;
    padding: 2mm 0 1.8mm;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .masthead-brand {
    grid-template-columns: minmax(0, 1fr) 14mm minmax(0, 1fr);
    gap: 3mm;
    width: 124mm;
  }

  .masthead-logo {
    width: 14mm;
    height: 18.5mm;
  }

  .masthead-word {
    font-size: 24pt;
    line-height: 0.88;
  }

  .masthead-word-left,
  .masthead-word-right {
    transform: none;
  }

  .masthead-ear {
    position: static;
    width: auto;
    font-size: 6pt;
    letter-spacing: 0.08em;
  }

  .record-status {
    display: none;
  }

  .front-grid {
    grid-template-columns: minmax(31mm, 1.45fr) minmax(75mm, 3.55fr) minmax(38mm, 1.75fr);
    gap: 7px;
    padding: 5mm 0 6mm;
    break-inside: auto;
    page-break-inside: auto;
  }

  .front-signals {
    padding-right: 8px;
  }

  .front-watch {
    padding-left: 8px;
  }

  .rail-sponsor {
    gap: 3mm;
    margin-bottom: 4mm;
    padding-bottom: 3mm;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .rail-ad-frame {
    min-height: 26mm;
    font-size: 5.8pt;
    line-height: 1;
  }

  .rail-ornament-window {
    height: 42mm;
    overflow: visible;
  }

  .rail-ornament {
    width: auto;
    max-width: 100%;
    height: 42mm;
  }

  .front-rail h2,
  .section-heading h2 {
    font-size: 12.5pt;
    line-height: 0.98;
  }

  .daily-record {
    text-align: left;
  }

  .daily-record h2 {
    max-width: 100%;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15.5pt;
    line-height: 1.04;
  }

  .record-visual {
    margin-top: 3mm;
    padding: 2mm 0 1.5mm;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .record-visual img {
    height: 32mm;
    aspect-ratio: auto;
    object-fit: cover;
  }

  .record-visual figcaption {
    font-size: 5.7pt;
    letter-spacing: 0.04em;
  }

  .record-subhead {
    margin-top: 5px;
    font-size: 8pt;
  }

  .record-body {
    gap: 4px;
    margin-top: 6px;
    font-size: 7.5pt;
    line-height: 1.22;
  }

  .record-facts {
    margin-top: 6px;
  }

  .record-facts div {
    padding: 4px 5px;
  }

  .record-facts dd {
    font-size: 6.8pt;
  }

  .signal-list {
    margin-top: 8px;
  }

  .signal-list li {
    grid-template-columns: 18px 1fr;
    gap: 6px;
    padding: 5px 0;
  }

  .signal-list li::before {
    font-size: 16pt;
  }

  .signal-list p,
  .watch-card p,
  .record-card p,
  .market-card p,
  .continuity-card p {
    font-size: 7.4pt;
    line-height: 1.25;
  }

  .watch-card {
    padding: 5px 0;
  }

  .watch-card h3 {
    font-size: 11pt;
  }

  .paper-section {
    padding: 5mm 0;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .section-heading {
    break-after: avoid;
    page-break-after: avoid;
    padding-bottom: 6px;
  }

  .three-column-ledger,
  .record-row,
  .market-grid,
  .close-grid {
    gap: 8px;
    margin-top: 8px;
  }

  .record-card,
  .market-card,
  .continuity-card,
  .record-column,
  .front-rail,
  .daily-record {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .record-card h4,
  .market-card h3,
  .continuity-card h4,
  .record-column h3 {
    break-after: avoid;
    page-break-after: avoid;
  }

  .record-card {
    padding: 6px 0;
  }

  .record-card h4,
  .continuity-card h4 {
    font-size: 11pt;
    line-height: 1.02;
  }

  .record-column:empty,
  .record-column:not(:has(.record-card)) {
    display: none !important;
  }

  .three-column-ledger:has(.record-column:nth-child(1):nth-last-child(2)),
  .record-row:has(.record-card:nth-child(1):nth-last-child(2)),
  .market-grid:has(.market-card:nth-child(1):nth-last-child(2)) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .three-column-ledger:has(.record-column:only-child),
  .record-row:has(.record-card:only-child),
  .market-grid:has(.market-card:only-child) {
    grid-template-columns: 1fr;
  }

  .paper-section,
  .front-grid {
    break-inside: avoid;
  }
}

/* Michelangelus is used only if installed on the reader's device. No font redistribution. */
@font-face { font-family: 'Michelangelus Local'; src: local('Michelangelus'), local('Michelangelus Regular'), local('Michelangelus-Regular'); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: 'Michelangelus Local'; src: local('Michelangelus Bold'), local('Michelangelus-Bold'); font-style: normal; font-weight: 700; font-display: swap; }
@font-face { font-family: 'Michelangelus Local'; src: local('Michelangelus Italic'), local('Michelangelus-Italic'); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: 'Michelangelus Local'; src: local('Michelangelus Bold Italic'), local('Michelangelus-BoldItalic'); font-style: italic; font-weight: 700; font-display: swap; }
:root { --serif: 'Cormorant Garamond', Georgia, serif; }
body { font-family: var(--serif); }
[hidden] { display: none !important; }
.edition-controls { display:flex; flex-wrap:wrap; gap:8px; align-items:center; justify-content:flex-end; font:11px var(--sans); }
.edition-controls select { border:0; border-bottom:1px solid var(--ink); border-radius:0; background:transparent; color:var(--ink); padding:5px 3px; min-height:32px; }
.source-link { display:block; margin-top:10px; font:11px/1.4 var(--sans); text-decoration:underline; text-underline-offset:3px; overflow-wrap:anywhere; }
.source-link:hover { color:var(--accent); }
:focus-visible { outline:2px solid var(--accent); outline-offset:4px; }
.record-body { font-family:var(--serif); font-size:19px; line-height:1.5; }
.record-card p { font-family:var(--serif); font-size:17px; line-height:1.5; }
.record-card p + p { margin-top:10px; }
.record-column, .record-card, .daily-record, .front-rail { min-width:0; overflow-wrap:break-word; }
.record-meta { display:block; }
.record-visual img { aspect-ratio: 2 / 1; width:100%; height:auto; object-fit:cover; }
.record-visual figcaption { font-size:11px; line-height:1.5; }
.edition-notes { border-top:1px solid var(--ink); padding:18px 0; font:12px/1.6 var(--sans); }
.edition-notes h2 { font:16px var(--serif); margin-bottom:7px; }
#translation-note { color:var(--muted); margin-top:5px; }
.paper-footer { border-top:3px double var(--ink); padding:20px 0 30px; text-align:center; font:10px/1.6 var(--sans); color:var(--soft-ink); }
.hybrid-label { position:relative; display:inline-block; cursor:help; font:italic 14px var(--serif); padding:3px 10px; }
.hybrid-label [role=tooltip] { display:none; position:absolute; bottom:calc(100% + 8px); left:50%; transform:translateX(-50%); width:240px; padding:10px 12px; color:white; background:var(--ink); font:12px/1.5 var(--sans); text-align:center; z-index:10; }
.hybrid-label:hover [role=tooltip], .hybrid-label:focus [role=tooltip] { display:block; }
.built-with { margin-top:6px; }
.built-with a:hover { text-decoration:underline; }
.edition-error { padding:40px; text-align:center; }
.edition-error button { margin-top:15px; padding:10px 20px; background:transparent; border:1px solid var(--ink); cursor:pointer; }
@media screen and (max-width:820px) {
 .edition-controls { justify-content:center; width:100%; }
 .record-body { font-size:18px; }
 .record-card p { font-size:17px; }
 .edition-bar { gap:10px; }
}
@media print {
 .edition-controls select, .paper-footer, .edition-error { display:none; }
 .edition-notes { break-inside:avoid; }
 .record-card, .record-visual { break-inside:avoid; }
}
[data-ledger]:has(> .record-column:only-child),
[data-capacity]:has(> .record-column:only-child),
[data-markets]:has(> .record-card:only-child),
[data-knowledge]:has(> .record-card:only-child) { grid-template-columns:1fr; }

/* Diagram labels must remain visible in screen and print layouts. */
.record-visual img[src$=".svg"] { object-fit:contain; }

/* Mobile optical alignment: the complete name and the cartouche share one axis. */
.mobile-masthead-name { display:none; }
@media screen and (max-width:820px) {
 .masthead { padding:30px 0 26px; gap:0; }
 .masthead-brand { display:flex; flex-direction:column; align-items:center; width:100%; gap:16px; }
 .masthead-word { display:none; }
 .masthead-logo { width:86px; height:118px; flex:none; }
 .mobile-masthead-name { display:flex; align-items:baseline; justify-content:center; gap:.28em; width:max-content; max-width:100%; font:600 clamp(25px,7.6vw,48px)/1 var(--serif); letter-spacing:-.025em; white-space:nowrap; text-align:center; }
}

/* Reveal one complete edition after fonts and image decoding, including cold visits. */
.edition-loading .edition-shell { opacity:1; }
.edition-ready .edition-shell { opacity:1; transition:opacity 180ms ease-out; }
@media (prefers-reduced-motion:reduce) { .edition-ready .edition-shell { transition:none; } }

/* Reserve image geometry; failures never hide the newspaper. */
img { transition: opacity 180ms ease-out; }
img.asset-failed { visibility:hidden; }
.record-card h3 { font:inherit; font-size:24px; line-height:1.12; margin:10px 0; font-weight:600; }
.skip-link { position:absolute; left:20px; top:-100px; background:#fff; color:#111; z-index:10; padding:12px; }
.skip-link:focus { top:10px; }
:focus-visible { outline:2px solid #8d1414; outline-offset:4px; }
.edition-method-links { font:11px var(--sans); margin-top:12px; }
@media (prefers-reduced-motion:reduce) { img { transition:none; } }

.record-card h3 a { color:inherit; text-decoration:none; }
.record-card h3 a:hover, .record-card h3 a:focus-visible { text-decoration:underline; }
.asset-pending { opacity:0; }
.hybrid-label[data-dismissed="true"] [role="tooltip"] { display:none; }
/* Print typography is kept separate from the later screen refinements. */
@media print {
 .skip-link, .pdf-text-layer, .edition-controls noscript { display:none !important; }
 .front-grid { break-inside:avoid; page-break-inside:avoid; }
 .record-body { font:9.5pt/1.32 'Cormorant Garamond', Georgia, serif; }
 .record-card p { font:8.5pt/1.25 'Cormorant Garamond', Georgia, serif; }
 .record-card h3 { font-size:12pt; line-height:1.12; }
 .record-visual img { height:32mm; width:100%; aspect-ratio:auto; }
 .record-visual figcaption { font-size:6.8pt; line-height:1.3; }
 .source-link { font-size:7pt; margin-top:3px; }
 .edition-notes { padding:2mm 0; font-size:8pt; line-height:1.3; }
 .edition-notes h2 { font-size:10pt; }
 .paper-section { padding:2.5mm 0; }
 .paper-footer { display:block; padding:2mm 0; font-size:6.5pt; break-inside:avoid; }
 .paper-footer .hybrid-label { font-size:8pt; }
 .paper-footer .edition-method-links { margin-top:2mm; font-size:6.5pt; }
}

/* Preserve this historical headline plate in full; permanent side ornaments are unchanged. */
.record-visual img[src*="met-dp822474-hercules-atlas"] { aspect-ratio:1200 / 786; object-fit:contain; }
