/* Единственная тёмно-красная линейка — .rule-red. Остальные линии чёрные. */

:root {
  color-scheme: light;
  --bg: #f6f2e8;
  --bg-2: #fbf8f1;
  --ink: #141414;
  --muted: #3f382f;
  --line: #cfc4b4;
  --red: #7a1c2b;
  --measure: 38rem;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Iowan Old Style", Palatino, "Palatino Linotype", "Book Antiqua", Georgia, "Times New Roman", Times, serif;
  font-size: 1.05rem;
  line-height: 1.5;
}

::selection {
  background: var(--ink);
  color: var(--bg);
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.sheet {
  max-width: 70rem;
  margin: 0 auto;
  padding: 0.85rem 1rem 2.75rem;
}

.folio {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  margin: 0 0 0.7rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--ink);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mast {
  text-align: center;
  margin-bottom: 1rem;
}

.bureau {
  margin: 0.35rem 0 0.2rem;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fleuron {
  display: block;
  margin: 0.35rem auto;
}

.mast-title {
  display: block;
  margin: 0;
  color: inherit;
  text-decoration: none;
  font-family: "Iowan Old Style", Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-weight: 700;
  font-size: clamp(2.8rem, 8vw, 5.15rem);
  line-height: 0.86;
  letter-spacing: -0.03em;
}

.dateline {
  margin: 0.45rem 0 0.55rem;
  font-size: 0.95rem;
}

.rule-red {
  display: block;
  height: 4px;
  margin: 0 0 0.45rem;
  background: var(--red);
  border: 0;
}

.issue-kicker {
  margin: 0 auto 0.75rem;
  max-width: 46rem;
  font-size: 0.92rem;
}

.sections {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.85rem;
  margin: 0 0 0.8rem;
  padding: 0.4rem 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  font-size: 0.92rem;
}

.sections a {
  text-decoration: none;
}

.sections a:hover,
.sections a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.search {
  max-width: 36rem;
  margin: 0 auto;
  text-align: left;
}

.search label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search input {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--bg-2);
  border: 1px solid var(--ink);
  padding: 0.4rem 0.55rem;
}

.search-results {
  margin-top: 0.45rem;
  background: var(--bg-2);
  border: 1px solid var(--ink);
  text-align: left;
}

.search-results ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.search-results li {
  border-top: 1px solid var(--line);
  padding: 0.45rem 0.6rem;
}

.search-results li:first-child {
  border-top: 0;
}

.search-results a {
  font-weight: 700;
  text-decoration: none;
}

.search-results a:hover {
  text-decoration: underline;
}

.search-results span,
.search-empty {
  display: block;
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.search-empty {
  padding: 0.55rem 0.6rem;
}

.kicker {
  margin: 0 0 0.25rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Iowan Old Style", Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.lead h1,
.story h1,
.miss h1 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
}

.deck {
  margin: 0 0 0.8rem;
  font-size: 1.12rem;
  line-height: 1.35;
}

.lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 0 1.4rem;
  align-items: start;
}

.lead-grid > *,
.market-grid > *,
.story-grid > *,
.trio > *,
.now-list > * {
  min-width: 0;
}

.prose p,
.secondary p,
.trio p,
.miss p {
  margin: 0 0 0.75rem;
}

.prose {
  max-width: var(--measure);
  hyphens: auto;
}

.prose h2 {
  margin: 1.35rem 0 0.4rem;
  font-size: 1.35rem;
}

.prose a {
  text-underline-offset: 0.14em;
}

.secondaries {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding-left: 1.15rem;
  border-left: 1px solid var(--ink);
}

.secondary h2,
.trio h2,
.now h2,
.tape-block h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
}

.pull {
  margin: 0.9rem 0;
  padding: 0.1rem 0 0.1rem 0.75rem;
  border-left: 2px solid var(--ink);
  font-size: 1.22rem;
  line-height: 1.3;
}

.market {
  margin: 1.25rem 0;
  padding: 0.75rem 0 0.85rem;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.market h2 {
  margin: 0.45rem 0 0.55rem;
  font-size: 1.35rem;
}

.snapshot-note {
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
  text-align: left;
}

.market-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 0.9fr;
  gap: 0.85rem 1rem;
}

.stat {
  min-width: 0;
}

.stat b {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.big-num {
  display: block;
  margin: 0.12rem 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.stat p,
.fine {
  margin: 0.15rem 0 0;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}

.turnover-line {
  margin: 0.75rem 0 0;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
  font-size: 1.05rem;
}

.now {
  margin: 1.2rem 0 0.4rem;
}

.now-list {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem 1.4rem;
}

.now-list a {
  display: block;
  padding-top: 0.35rem;
  border-top: 1px solid var(--ink);
  text-decoration: none;
}

.now-list a:hover .now-title {
  text-decoration: underline;
}

.now-title {
  display: block;
  font-size: 1.16rem;
  line-height: 1.25;
}

.tape-block {
  margin-top: 1.3rem;
}

.tape-wrap {
  width: 100%;
}

.tape {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  font-size: 0.98rem;
}

.tape caption {
  caption-side: top;
}

.tape th,
.tape td {
  padding: 0.32rem 0.4rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: baseline;
}

.tape th {
  border-bottom: 1px solid var(--ink);
  font-size: 0.74rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.tape .num {
  text-align: right;
  white-space: nowrap;
}

.down {
  font-style: italic;
}

.trio {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem 1.2rem;
  margin-top: 1.3rem;
}

.trio article {
  padding-top: 0.45rem;
  border-top: 1px solid var(--ink);
}

.story {
  margin-top: 0.4rem;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 40rem) minmax(15rem, 22rem);
  gap: 1.2rem 2rem;
  align-items: start;
}

.story-aside {
  position: sticky;
  top: 0.6rem;
}

.toc {
  margin: 0 0 1rem;
  padding: 0.35rem 0 0.5rem;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.toc summary {
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.toc ol {
  margin: 0.45rem 0 0;
  padding-left: 1.15rem;
}

.toc a {
  text-underline-offset: 0.12em;
}

.snapshot {
  margin: 0 0 1rem;
  padding: 0.7rem 0.75rem 0.8rem;
  background: var(--bg-2);
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.snapshot .big-num {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.snapshot dl {
  margin: 0.4rem 0 0;
}

.snapshot dl div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.18rem 0;
  border-top: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}

.snapshot dt {
  margin: 0;
}

.snapshot dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
}

.seealso {
  margin: 0;
  padding: 0;
  list-style: none;
}

.seealso li {
  margin: 0 0 0.45rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--line);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.6rem 0;
}

.filters button {
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  padding: 0.22rem 0.6rem;
  cursor: pointer;
}

.filters button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
}

.tape-tools label {
  display: block;
  margin: 0.35rem 0 0.2rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tape-tools input {
  width: 100%;
  max-width: 24rem;
  font: inherit;
  color: var(--ink);
  background: var(--bg-2);
  border: 1px solid var(--ink);
  padding: 0.35rem 0.5rem;
}

.miss {
  max-width: var(--measure);
  margin-top: 0.6rem;
}

.colophon {
  margin-top: 1.6rem;
  padding-top: 0.7rem;
  border-top: 2px solid var(--ink);
  font-size: 0.95rem;
}

.colophon p {
  margin: 0 0 0.55rem;
}

.network ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  list-style: none;
  margin: 0.3rem 0 0.7rem;
  padding: 0;
}

.network a {
  text-underline-offset: 0.12em;
}

.email,
.network a,
.colophon a {
  overflow-wrap: anywhere;
}

.disclaimer {
  max-width: 46rem;
}

.meta-table td:first-child {
  font-weight: 700;
}

@media (max-width: 900px) {
  .lead-grid,
  .story-grid,
  .trio,
  .market-grid {
    grid-template-columns: 1fr;
  }

  .secondaries {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--ink);
    padding-top: 0.9rem;
  }

  .story-aside {
    position: static;
  }
}

@media (max-width: 700px) {
  .now-list {
    grid-template-columns: 1fr;
  }

  .tape thead {
    display: none;
  }

  .tape tr {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "name price"
      "ticker chg";
    gap: 0.05rem 0.75rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--ink);
  }

  .tape td {
    border: 0;
    padding: 0;
  }

  .tape td.name {
    grid-area: name;
    font-weight: 700;
  }

  .tape td.price {
    grid-area: price;
  }

  .tape td.ticker {
    grid-area: ticker;
    color: var(--muted);
  }

  .tape td.chg {
    grid-area: chg;
  }

  .meta-table tr {
    grid-template-columns: 1fr;
    grid-template-areas: "name" "price" "ticker" "chg";
  }

  .meta-table td.name { grid-area: name; }
  .meta-table td.price { grid-area: price; text-align: left; }
  .meta-table td.ticker { grid-area: ticker; }
  .meta-table td.chg { grid-area: chg; text-align: left; }
}

@media (max-width: 360px) {
  .sheet {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

@media print {
  .search,
  .filters,
  .tape-tools,
  .sections {
    display: none;
  }

  body {
    background: #fff;
  }

  .story-aside {
    position: static;
  }
}
