/* TheSpread.today — newsprint media page */

:root {
  --ink: #0A0A0A;
  --newsprint: #FAF8F3;
  --newsprint-2: #F2EEE3;
  --slate: #5C5C5C;
  --slate-2: #8A8A8A;
  --rule: #1a1a1a;
  --bid: #22A06B;
  --ask: #D04545;
  --accent: var(--bid);
  --accent-soft: rgba(34, 160, 107, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--newsprint);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  /* paper texture */
  background-image:
    radial-gradient(rgba(0,0,0,0.018) 1px, transparent 1px),
    radial-gradient(rgba(0,0,0,0.012) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 1px 2px;
}

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

.serif { font-family: Georgia, 'Times New Roman', serif; }
.italic { font-style: italic; }
.mono { font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace; }

.bid { color: var(--bid); }
.ask { color: var(--ask); }

/* ============ TICKER ============ */
.ticker {
  background: var(--ink);
  color: var(--newsprint);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  overflow: hidden;
  position: relative;
  height: 36px;
  display: flex;
  align-items: center;
}
.ticker-label {
  background: var(--ask);
  color: white;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 8px;
  position: relative;
  z-index: 2;
  box-shadow: 6px 0 8px -2px rgba(0,0,0,0.5);
}
.ticker-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: white;
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.ticker-track {
  display: flex;
  white-space: nowrap;
  animation: scroll 90s linear infinite;
  padding-left: 20px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.ticker-item {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-right: 1px solid #2a2a2a;
  flex-shrink: 0;
}
.ticker-item .sym { font-weight: 700; }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ MASTHEAD ============ */
.masthead {
  border-bottom: 4px double var(--ink);
  padding: 18px 32px 14px;
  background: var(--newsprint);
}
.masthead-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 10px;
}
.masthead-top .left, .masthead-top .right { display: flex; gap: 18px; }
.nameplate {
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 76px;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-align: center;
  margin: 6px 0 4px;
}
.nameplate .dot { color: var(--ask); }
.tagline {
  text-align: center;
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 14px;
  color: var(--slate);
  margin-bottom: 8px;
}
.subnav {
  display: flex;
  justify-content: center;
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.subnav a {
  padding: 8px 16px;
  border-right: 1px solid var(--ink);
  cursor: pointer;
  transition: background 0.1s;
}
.subnav a:first-child { border-left: 1px solid var(--ink); }
.subnav a:hover { background: var(--ink); color: var(--newsprint); }
.subnav a.active { background: var(--ink); color: var(--newsprint); }

/* ============ LAYOUT ============ */
.page {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0;
}
.main-grid {
  display: grid;
  grid-template-columns: 260px 1fr 300px;
  gap: 0;
  border-bottom: 1px solid var(--ink);
}
.col {
  padding: 20px;
  border-right: 1px solid var(--ink);
}
.col:last-child { border-right: none; }
.col-left { background: var(--newsprint); }
.col-mid { padding: 24px 28px; }
.col-right { background: var(--newsprint-2); }

/* ============ SECTION HEADERS ============ */
.section-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 6px 0;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.section-kicker .meta {
  color: var(--slate);
  font-weight: 400;
  letter-spacing: 0.1em;
}

/* ============ LEAD STORY ============ */
.lead {
  margin-bottom: 24px;
}
.lead-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ask);
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lead-kicker::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ask);
  animation: pulse 1.4s ease-in-out infinite;
}
.lead-headline {
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 64px;
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  text-wrap: balance;
}
.lead-deck {
  font-family: Georgia, serif;
  font-size: 19px;
  line-height: 1.4;
  color: var(--slate);
  font-style: italic;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 16px;
  text-wrap: pretty;
}
.lead-byline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 16px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.lead-byline strong { color: var(--ink); }

.lead-figure {
  margin: 0 0 16px;
  position: relative;
  background: var(--ink);
  color: var(--newsprint);
  padding: 28px 24px;
  border: 1px solid var(--ink);
}
.lead-figure-stat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-2);
  margin-bottom: 4px;
}
.lead-figure-big {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 56px;
  line-height: 1;
  font-weight: 700;
  color: var(--newsprint);
}
.lead-figure-big .delta {
  color: var(--bid);
  font-size: 32px;
  vertical-align: super;
  margin-left: 8px;
}
.lead-figure-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 18px;
  border-top: 1px solid #333;
  padding-top: 14px;
}
.lead-figure-grid > div {
  border-right: 1px solid #333;
  padding: 0 14px;
}
.lead-figure-grid > div:first-child { padding-left: 0; }
.lead-figure-grid > div:last-child { border-right: none; padding-right: 0; }
.lfg-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-2);
  margin-bottom: 4px;
}
.lfg-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 600;
  color: var(--newsprint);
}

/* lead chart inline */
.lead-chart {
  height: 90px;
  margin-top: 12px;
}

.lead-body {
  column-count: 2;
  column-gap: 24px;
  column-rule: 1px solid #ddd;
  font-family: Georgia, serif;
  font-size: 15px;
  line-height: 1.55;
}
.lead-body p { margin: 0 0 12px; text-wrap: pretty; }
.lead-body p:first-child::first-letter {
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 56px;
  float: left;
  line-height: 0.85;
  margin: 6px 6px 0 0;
  color: var(--ink);
}

/* ============ STORY CARDS ============ */
.stories-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--ink);
  margin-top: 24px;
}
.story {
  padding: 18px 18px 18px 0;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  cursor: pointer;
  transition: background 0.12s;
}
.story:nth-child(even) { padding-left: 18px; padding-right: 0; border-right: none; }
.story:nth-child(odd) { padding-left: 0; }
.story:hover { background: var(--accent-soft); }
.story-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 6px;
}
.story-kicker.breaking { color: var(--ask); font-weight: 700; }
.story-kicker.bid { color: var(--bid); font-weight: 700; }
.story-headline {
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.05;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.story-deck {
  font-family: Georgia, serif;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--slate);
  margin-bottom: 8px;
  text-wrap: pretty;
}
.story-data {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px dotted var(--slate-2);
}
.story-data span { white-space: nowrap; }

/* ============ WHALE WATCH ============ */
.whale-board {
  margin-bottom: 24px;
}
.whale-row {
  border-bottom: 1px solid var(--ink);
  padding: 10px 0;
  cursor: pointer;
  transition: background 0.1s;
   overflow: hidden; 
}
.whale-row:hover { background: var(--accent-soft); }
.whale-row.expanded { background: var(--newsprint); }
.whale-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.whale-rank {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  flex-shrink: 0;
  width: 32px;
}
.whale-main {
  flex: 1;
  min-width: 0;
}
.whale-name {
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.15;
  margin: 0 0 2px;
  overflow: hidden;         
  text-overflow: ellipsis;   
  word-break: break-word;    
  max-width: 100%;          
}
.whale-addr {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--slate);
  letter-spacing: 0.02em;
  overflow: hidden;          
  text-overflow: ellipsis;   
  white-space: nowrap;       
  display: block;            
}
.whale-amt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  text-align: right;
  flex-shrink: 0;
}
.whale-amt.bid { color: var(--bid); }
.whale-amt.ask { color: var(--ask); }
.whale-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
  padding-left: 40px;
  display: flex;
  gap: 10px;
}

.whale-detail {
  margin-top: 10px;
  padding: 12px 12px 12px 40px;
  background: var(--newsprint-2);
  border-left: 3px solid var(--accent);
  font-family: Georgia, serif;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
  animation: slideDown 0.2s ease-out;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.whale-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #ccc;
}
.wdg-item {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.wdg-item .label { color: var(--slate); display: block; margin-bottom: 2px; font-size: 9px; }
.wdg-item .val { color: var(--ink); font-weight: 700; font-size: 11px; }

/* ============ MOVERS ============ */
.movers-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
}
.movers-table th {
  text-align: left;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 9px;
  color: var(--slate);
  padding: 6px 4px;
  border-bottom: 1px solid var(--ink);
}
.movers-table td {
  padding: 8px 4px;
  border-bottom: 1px dotted #ccc;
  vertical-align: middle;
}
.movers-table .name {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.1;
}
.movers-table .price { font-weight: 700; text-align: right; }
.movers-table .delta { text-align: right; font-weight: 700; }
.movers-table tr { cursor: pointer; }
.movers-table tr:hover { background: var(--accent-soft); }

.spark {
  width: 60px;
  height: 22px;
  display: block;
}

/* ============ BREAKING FEED ============ */
.feed-item {
  border-bottom: 1px dotted var(--slate-2);
  padding: 10px 0;
  display: flex;
  gap: 12px;
  cursor: pointer;
}
.feed-item:hover .feed-headline { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.feed-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--slate);
  letter-spacing: 0.04em;
  width: 46px;
  flex-shrink: 0;
  padding-top: 2px;
}
.feed-time .live { color: var(--ask); font-weight: 700; }
.feed-body { flex: 1; min-width: 0; }
.feed-headline {
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1.2;
  margin: 0 0 2px;
}
.feed-data {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--slate);
}

/* ============ PULL QUOTE ============ */
.pull-quote {
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  padding: 18px 0;
  margin: 24px 0;
}
.pull-quote-mark {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 64px;
  line-height: 0.5;
  color: var(--ask);
  margin-bottom: 6px;
}
.pull-quote-text {
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  text-wrap: balance;
}
.pull-quote-attr {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  display: flex;
  gap: 12px;
}
.pull-quote-attr strong { color: var(--ink); }

/* ============ ENTITY CARDS ============ */
.entity {
  padding: 14px 0;
  border-bottom: 1px solid var(--ink);
}
.entity:last-child { border-bottom: none; }
.entity-stamp {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--newsprint);
  padding: 2px 6px;
  margin-bottom: 8px;
}
.entity-name {
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.05;
  margin: 0 0 4px;
}
.entity-aka {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--slate);
  margin-bottom: 8px;
}
.entity-aka .arrow { color: var(--ask); }
.entity-summary {
  font-family: Georgia, serif;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 8px;
  text-wrap: pretty;
}
.entity-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
}
.entity-stats .label { color: var(--slate); text-transform: uppercase; letter-spacing: 0.08em; font-size: 9px; }
.entity-stats .val { color: var(--ink); font-weight: 700; }

/* ============ OP-ED ============ */
.oped {
  background: var(--ink);
  color: var(--newsprint);
  padding: 24px 22px;
  margin-top: 24px;
}
.oped-stamp {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ask);
  margin-bottom: 10px;
  font-weight: 700;
}
.oped-headline {
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.05;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.oped-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #333;
}
.oped-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--newsprint);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 16px;
}
.oped-author-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.oped-author-name strong { color: var(--newsprint); display: block; font-size: 11px; }
.oped-author-name span { color: var(--slate-2); }
.oped-body {
  font-family: Georgia, serif;
  font-size: 14px;
  line-height: 1.55;
  color: #d8d6d0;
  text-wrap: pretty;
}
.oped-body p { margin: 0 0 10px; }

/* ============ FOOTER ============ */
.footer {
  border-top: 4px double var(--ink);
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  margin-top: 24px;
}
.footer .nameplate-sm {
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-transform: none;
}

/* ============ CHART STYLING ============ */
.chart-axis { stroke: var(--slate-2); stroke-width: 0.5; }
.chart-line { fill: none; stroke-width: 1.5; }

/* ============ STORY MODAL ============ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.7);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  animation: fadeIn 0.15s ease-out;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--newsprint);
  max-width: 760px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px 44px;
  position: relative;
  border: 1px solid var(--ink);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.modal-close {
  position: absolute;
  top: 14px; right: 16px;
  background: none;
  border: 1px solid var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 4px 10px;
  cursor: pointer;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.modal-close:hover { background: var(--ink); color: var(--newsprint); }
.modal-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ask);
  margin-bottom: 8px;
  font-weight: 700;
}
.modal-headline {
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 42px;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  text-wrap: balance;
}
.modal-deck {
  font-family: Georgia, serif;
  font-size: 17px;
  line-height: 1.4;
  color: var(--slate);
  font-style: italic;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 14px;
}
.modal-body {
  font-family: Georgia, serif;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 16px;
}
.modal-body p { margin: 0 0 12px; }
.modal-data {
  background: var(--ink);
  color: var(--newsprint);
  padding: 14px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.modal-data .item { display: flex; flex-direction: column; }
.modal-data .label { font-size: 9px; color: var(--slate-2); letter-spacing: 0.12em; text-transform: uppercase; }
.modal-data .val { font-size: 14px; font-weight: 700; }

/* ════════════════════════════════════════════════════════════
   MOBILE & TABLET RESPONSIVE LAYER
   Append to bottom of styles.css. Existing desktop styles
   above remain unchanged; these only kick in at breakpoints.
   ════════════════════════════════════════════════════════════ */

/* ───── TABLET (≤ 1024px) ─────
   Compress the 3-column grid into 2 columns (whales sidebar
   collapses below stories), keep readable line lengths.
*/
@media (max-width: 1024px) {

  .page { max-width: 100%; }

  /* Subnav: smaller padding so all 8 links fit on tablet */
  .subnav {
    flex-wrap: wrap;
    gap: 4px;
    padding: 0 12px;
  }
  .subnav a {
    font-size: 11px;
    padding: 8px 10px;
  }

  /* Main grid: 2 columns — stories | movers, whales drop below */
  .main-grid {
    grid-template-columns: 1fr 280px;
  }
  .col-left {
    grid-column: 1 / -1; /* full width row */
    border-right: none;
    border-top: 1px solid var(--ink);
    order: 99; /* move whales to bottom on tablet */
  }
  .col-mid { padding: 20px 24px; }
  .col-right { padding: 18px; }

  /* Lead story figure: smaller */
  .lead-figure-big { font-size: 64px; }
}


/* ───── MOBILE (≤ 768px) ─────
   Single column. Newspaper aesthetic preserved.
   Hamburger nav. Touch-friendly hit targets.
*/
@media (max-width: 768px) {

  html, body { font-size: 15px; line-height: 1.55; }

  /* ── TICKER ── shrink and tighten on mobile */
  .ticker { height: 32px; }
  .ticker-label {
    padding: 0 10px;
    font-size: 10px;
    gap: 6px;
  }
  .ticker-pulse { width: 6px; height: 6px; }
  .ticker-item {
    font-size: 11px;
    padding: 0 14px;
    gap: 6px;
  }
  .ticker-track { padding-left: 10px; }

  /* ── MASTHEAD ── stack everything, larger nameplate */
  .masthead-top {
    flex-direction: column;
    gap: 4px;
    padding: 8px 16px;
    font-size: 9px;
    letter-spacing: 0.08em;
    text-align: center;
  }
  .masthead-top .left,
  .masthead-top .right {
    flex-direction: column;
    gap: 2px;
    align-items: center;
  }
  .nameplate {
    font-size: 56px !important;
    line-height: 0.95 !important;
    padding: 8px 12px !important;
    letter-spacing: -0.03em !important;
  }
  .tagline {
    font-size: 13px !important;
    padding: 0 16px 12px !important;
    text-align: center;
  }

  /* ── SUBNAV ── becomes horizontal scroll strip on mobile */
  .subnav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    border-top: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
    padding: 0;
    gap: 0;
    justify-content: flex-start;
  }
  .subnav::-webkit-scrollbar { display: none; }
  .subnav a {
    font-size: 11px;
    padding: 12px 16px;
    flex-shrink: 0;
    border-right: 1px solid rgba(0,0,0,0.08);
    white-space: nowrap;
  }
  .subnav a:last-child { border-right: none; }
  .subnav a.active {
    background: var(--ink);
    color: var(--newsprint);
  }

  /* ── PAGE & GRID ── single column */
  .page { padding: 0; }
  .main-grid {
    grid-template-columns: 1fr; /* stack everything */
    gap: 0;
  }
  .col {
    padding: 20px 16px;
    border-right: none !important;
    border-bottom: 1px solid var(--ink);
  }
  .col-mid { padding: 20px 16px; }
  .col-left, .col-right {
    order: initial; /* reset tablet override */
  }
  /* Mobile reading order: stories first, then whales, then movers/feed */
  .col-mid { order: 1; }
  .col-left { order: 2; }
  .col-right { order: 3; }

  /* ── LEAD STORY ── stack figure under headline */
  .lead {
    padding: 20px 16px;
    border-bottom: 1px solid var(--ink);
  }
  .lead-headline,
  .lead h2 {
    font-size: 32px !important;
    line-height: 1.05 !important;
    letter-spacing: -0.015em !important;
  }
  .lead-deck {
    font-size: 16px !important;
    line-height: 1.45 !important;
  }
  .lead-figure,
  .lead-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .lead-figure-big { font-size: 56px !important; }
  .lead-figure-stat { font-size: 11px; }
  .lead-figure-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .lead-chart { height: 60px !important; }
  .lead-body {
    font-size: 16px;
    line-height: 1.55;
    column-count: 1 !important;
  }
  .lead-body p { margin-bottom: 14px; }
  .lead-body p:first-child::first-letter {
    font-size: 56px !important;
    line-height: 0.85 !important;
  }
  .byline {
    flex-direction: column !important;
    gap: 4px !important;
    align-items: flex-start !important;
    font-size: 11px !important;
  }

  /* ── STORIES GRID ── single column on mobile */
  .stories-grid {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  .story {
    padding: 18px 0 !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(0,0,0,0.15);
  }
  .story:last-child { border-bottom: none; }
  .story-headline {
    font-size: 22px !important;
    line-height: 1.15 !important;
  }
  .story-deck {
    font-size: 15px !important;
    line-height: 1.4 !important;
  }
  .story-data {
    font-size: 11px !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  /* ── WHALE BOARD ── single column */
  .whale-board {
    grid-template-columns: 1fr !important;
  }
  .whale-row {
    padding: 16px 14px !important;
  }
  .whale-row.expanded { padding-bottom: 18px !important; }
  .whale-name { font-size: 14px !important; }
  .whale-amt { font-size: 18px !important; }
  .whale-detail-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .whale-meta {
    flex-wrap: wrap !important;
    font-size: 10px !important;
  }

  /* ── MOVERS TABLE ── compact on mobile */
  .movers-table {
    font-size: 12px;
  }
  .movers-table th,
  .movers-table td {
    padding: 8px 6px !important;
  }
  .movers-table .name {
    font-size: 12px !important;
    max-width: 110px;
  }
  .movers-table .price {
    font-size: 13px !important;
  }
  .spark { width: 50px !important; }

  /* ── FEED ── tighter spacing */
  .feed-item {
    padding: 10px 0 !important;
    gap: 10px !important;
  }
  .feed-time {
    font-size: 10px !important;
    min-width: 36px !important;
  }
  .feed-headline { font-size: 13px !important; line-height: 1.35 !important; }
  .feed-data { font-size: 10px !important; }

  /* ── PULL QUOTE ── center and shrink */
  .pull-quote {
    padding: 24px 16px !important;
    margin: 24px 0 !important;
  }
  .pull-quote-text {
    font-size: 22px !important;
    line-height: 1.2 !important;
  }
  .pull-quote-mark { font-size: 80px !important; }

  /* ── ENTITIES ── single column */
  .entity {
    padding: 16px 14px !important;
  }
  .entity-name { font-size: 14px !important; }
  .entity-stats {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  /* ── OP-ED ── full width */
  .oped {
    padding: 18px 16px !important;
  }
  .oped-headline {
    font-size: 22px !important;
    line-height: 1.2 !important;
  }
  .oped-body {
    font-size: 15px !important;
    line-height: 1.55 !important;
  }

  /* ── SECTION HERO (sub-pages) ── tighter */
  /* Section pages have an inline-styled hero — these target it */
  [class*="serif italic"][style*="56"] {
    font-size: 36px !important;
  }

  /* ── FOOTER ── stack */
  .footer {
    flex-direction: column !important;
    gap: 8px !important;
    text-align: center !important;
    padding: 16px !important;
    font-size: 10px !important;
  }

  /* ── TWEAKS PANEL ── hide on mobile (it's a dev tool) */
  .tweaks-panel,
  .tweaks-toggle {
    display: none !important;
  }

  /* ── LEAD DATA BAND (section pages) ── stack */
  .main-grid + div[style*="grid-template-columns: 1fr 1.4fr"],
  .lead-data-band {
    grid-template-columns: 1fr !important;
    padding: 16px !important;
    gap: 16px !important;
  }

  /* Hide the right border on every cell */
  td, th { border-right: none !important; }
}


/* ───── SMALL PHONE (≤ 380px) ─────
   Extra compression for cramped screens (iPhone SE, older Androids).
*/
@media (max-width: 380px) {

  .nameplate { font-size: 44px !important; }
  .tagline { font-size: 11px !important; }

  .lead-headline,
  .lead h2 { font-size: 26px !important; }

  .story-headline { font-size: 19px !important; }
  .story-deck { font-size: 14px !important; }

  .lead-figure-big { font-size: 44px !important; }

  .pull-quote-text { font-size: 18px !important; }

  .subnav a {
    font-size: 10px !important;
    padding: 10px 12px !important;
  }
}


/* ───── ACCESSIBILITY: REDUCED MOTION ─────
   Honor users who've requested less motion. Stops the ticker
   scroll and the pulse animation.
*/
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none !important; }
  .ticker-pulse { animation: none !important; opacity: 1 !important; }
  .live { animation: none !important; }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}


/* ───── PRINT ─────
   Bonus: it's literally a newspaper. Make print-out usable.
*/
@media print {
  .ticker, .subnav, .tweaks-panel, .tweaks-toggle { display: none !important; }
  body { background: white !important; color: black !important; }
  .col { border: none !important; }
  .main-grid { grid-template-columns: 1fr !important; }
}
