/**
 * Academic / textbook theme — site-wide surface layer.
 * Load after site.css; body.theme-academic on each page.
 * Rails, drawers, and modal DOM/JS behavior unchanged.
 */

@import url('adc-charts.css');

body.theme-academic {
  --hp-ink: #0b1220;
  --hp-body: #334155;
  --hp-muted: #64748b;
  --hp-line: #d8dee9;
  --hp-grey: #eef1f6;
  --hp-paper: #ffffff;
  --hp-pink: #c2185b;
  --hp-blue: #1d4ed8;
  --hp-sym-up: #16a34a;
  --hp-sym-down: #dc2626;
  --hp-sym-live: #2563eb;
  --hp-radius: 0;
  --hp-measure: 38rem;
  --adc-header-bg:
    radial-gradient(760px 520px at 26% 56%, rgba(99, 102, 241, 0.10) 0%, transparent 62%),
    radial-gradient(760px 520px at 74% 56%, rgba(56, 189, 248, 0.10) 0%, transparent 62%),
    linear-gradient(180deg, #F8FAFC 0%, #EEF2F6 55%, #E9EEF4 100%);
  --adc-header-border: 1px solid rgba(15, 23, 42, 0.08);
  --adc-title-main-size: clamp(24px, 3.7vw, 41px);
  --adc-title-main-weight: 800;
  --adc-title-main-leading: 1.02;
  --adc-title-main-tracking: -0.04em;
  --adc-title-main-color: #23262e;
}

/* ── Section labels — plain sans, no “AI brief” styling ── */
body.theme-academic .hp-section-id {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  color: var(--hp-body);
  margin: 0 0 10px;
}

body.theme-academic .hp-section-rule {
  display: block;
  width: 100%;
  height: 1px;
  margin: 0 0 20px;
  border: 0;
  border-radius: 0;
  background: var(--hp-line);
}

body.theme-academic .hp-exhibit-id {
  display: block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  color: var(--hp-muted);
  margin-bottom: 8px;
}

body.theme-academic .hp-fig-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  color: var(--hp-ink);
  margin: 0 0 12px;
}

body.theme-academic .hp-accent-pink { color: var(--hp-pink); }
body.theme-academic .hp-accent-blue { color: var(--hp-blue); }

/* Colored symbols only */
body.theme-academic .hc-sym--up,
body.theme-academic .hs-sym--up { color: var(--hp-sym-up); font-weight: 700; }
body.theme-academic .hc-sym--down,
body.theme-academic .hs-sym--down { color: var(--hp-sym-down); font-weight: 700; }
body.theme-academic .hs-sym--live { color: var(--hp-sym-live); font-size: 0.75em; vertical-align: 0.05em; }

/* No underlines inside data cards */
body.theme-academic .stat-cell,
body.theme-academic .stat-cell *,
body.theme-academic .home-signal-tile,
body.theme-academic .home-signal-tile *,
body.theme-academic .home-viz,
body.theme-academic .home-viz *,
body.theme-academic .home-contradiction,
body.theme-academic .home-contradiction * {
  text-decoration: none !important;
}

/* Pink→purple accent band — retired site-wide */
body.theme-academic .adc-grad-band {
  display: none !important;
}

/* ── Alternating section backgrounds + dividers ── */
body.theme-academic section.stats-bar.stats-bar--lightbg,
body.theme-academic section.formats-section,
body.theme-academic section.pain-section,
body.theme-academic .secnav-band--white {
  position: relative;
  z-index: 1;
}

/* Graph paper — white bands ONLY */
body.theme-academic section.stats-bar.stats-bar--lightbg::before,
body.theme-academic section.formats-section::before,
body.theme-academic section.pain-section::before,
body.theme-academic .secnav-band--white::before,
body.theme-academic section.hero.theme-light::before,
body.theme-academic .format-hero-lockup::after {
  display: none !important;
  content: none !important;
}

/* Grey / generic theme-light bands — NO graph paper */
body.theme-academic section.theme-light:not(.hero):not(.marquee-wrap):not(.format-hero-lockup):not(.secnav-band--white)::before,
body.theme-academic .secnav-band--grey::before,
body.theme-academic section.home-signal::before,
body.theme-academic section.comic-section::before,
body.theme-academic section.comic-section.comic-section--lightbg::before,
body.theme-academic section.mwatch-band--lightbg::before {
  display: none !important;
  content: none !important;
}

body.theme-academic section.stats-bar.stats-bar--lightbg {
  background: var(--hp-paper) !important;
  border-top: 1px solid var(--hp-line);
  padding: clamp(52px, 6vw, 76px) 0;
}

body.theme-academic section.home-signal {
  background: var(--hp-grey) !important;
  border-top: 1px solid var(--hp-line);
  padding: clamp(56px, 7vw, 84px) 0;
}

body.theme-academic section.formats-section {
  background: var(--hp-paper) !important;
  border-top: 1px solid var(--hp-line);
  padding-top: clamp(52px, 6vw, 76px);
}

body.theme-academic section.comic-section.comic-section--lightbg {
  background: var(--hp-grey) !important;
  border-top: 1px solid var(--hp-line);
}

body.theme-academic section.pain-section {
  background: var(--hp-paper) !important;
  border-top: 1px solid var(--hp-line);
}

/* ── §01 Stats ── */
body.theme-academic .stats-header-wrap {
  position: relative;
  width: 100%;
  margin-bottom: 28px;
}

body.theme-academic .stats-intro {
  max-width: var(--hp-measure);
  margin-bottom: 0;
}

body.theme-academic .stats-header-wrap > .adc-share.adc-share--stats-head {
  top: 0;
  right: 0;
}

body.theme-academic .stats-intro .stats-section-title,
body.theme-academic .formats-header h2 {
  font-family: var(--font-sans);
  color: var(--hp-ink) !important;
  font-size: clamp(28px, 3.4vw, 38px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0;
  text-transform: none;
}

body.theme-academic .stats-intro .hp-section-id,
body.theme-academic .home-signal-headL .hp-section-id {
  font-size: 19px;
}

body.theme-academic .stats-deck {
  color: var(--hp-body) !important;
  font-size: 16px;
  line-height: 1.65;
  margin-top: 0;
}

body.theme-academic .stats-grid {
  gap: 1px !important;
  background: var(--hp-line);
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius);
  overflow: hidden;
}

body.theme-academic section.stats-bar.stats-bar--lightbg .stat-cell {
  background: var(--hp-paper) !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 24px 20px 22px !important;
}

body.theme-academic section.stats-bar.stats-bar--lightbg .stat-cell::before {
  display: none !important;
}

body.theme-academic section.stats-bar.stats-bar--lightbg .stat-cell:hover {
  transform: none !important;
  box-shadow: none !important;
}

body.theme-academic .stat-val.grad-bc,
body.theme-academic .stat-val.grad-pi,
body.theme-academic .stat-val.grad-mp,
body.theme-academic .stat-val.grad-ib {
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
  color: var(--hp-ink) !important;
  font-size: clamp(32px, 3.6vw, 44px) !important;
  font-weight: 600 !important;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 10px;
}

body.theme-academic .stat-label {
  color: var(--hp-body) !important;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
  margin-top: 0;
  max-width: none;
}

body.theme-academic .src-cite {
  color: var(--hp-muted) !important;
  background: var(--hp-grey) !important;
  border-color: var(--hp-line) !important;
  text-decoration: none !important;
}

body.theme-academic .src-cite-label {
  color: inherit !important;
  text-decoration: none !important;
}

/* ── §02 Industry signal ── */
body.theme-academic .home-signal-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 32px 48px;
  align-items: start;
  margin-bottom: 36px;
}

@media (max-width: 860px) {
  body.theme-academic .home-signal-head {
    grid-template-columns: 1fr;
  }
}

body.theme-academic .home-signal-headL {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: var(--hp-measure);
}

body.theme-academic .home-signal-eyebrow {
  display: none;
}

body.theme-academic .home-signal-title {
  color: var(--hp-ink) !important;
  font-size: clamp(25px, 3.24vw, 38px) !important;
  font-weight: 800 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.03em;
  margin: 0;
}

body.theme-academic .home-signal-title .accent {
  color: #e0258a !important;
}

body.theme-academic .home-signal-sub {
  color: var(--hp-body) !important;
  font-size: 16px;
  line-height: 1.65;
  margin: 14px 0 0;
  max-width: 52ch;
}

body.theme-academic .home-signal-cta.btn-primary {
  margin-top: 22px;
  background: var(--hp-blue) !important;
  border: 1px solid var(--hp-blue) !important;
  border-radius: var(--hp-radius) !important;
  box-shadow: none !important;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 20px;
}

body.theme-academic .home-signal-cta.btn-primary:hover {
  background: var(--hp-ink) !important;
  border-color: var(--hp-ink) !important;
}

/* Contradiction table */
body.theme-academic .home-contradiction-wrap {
  position: relative;
  width: 100%;
}

body.theme-academic .home-contradiction-wrap > .adc-share.adc-share--table-above {
  top: auto;
  bottom: calc(100% + 8px);
  right: 0;
  left: auto;
}

body.theme-academic .home-contradiction {
  background: var(--hp-paper) !important;
  border: 1px solid var(--hp-line) !important;
  border-radius: var(--hp-radius) !important;
  box-shadow: none !important;
  padding: 0 !important;
  overflow: hidden;
}

body.theme-academic .home-contra-cap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
  margin: 0 !important;
  background: #23262e !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: normal;
  text-transform: none;
  color: #fff;
}

body.theme-academic .home-contra-cap .up,
body.theme-academic .home-contra-cap .dn,
body.theme-academic .home-contra-cap .home-contra-vs,
body.theme-academic .home-contra-cap .home-contra-yr {
  color: #fff !important;
  font-weight: 500;
}

body.theme-academic .home-contra-cap .hc-sym--up,
body.theme-academic .home-contra-cap .hc-sym--down {
  color: #fff !important;
}

body.theme-academic .home-contra-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

body.theme-academic .home-contra-table thead th {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  text-align: left;
  color: rgba(255, 255, 255, 0.88);
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: #23262e !important;
}

body.theme-academic .home-contra-table thead th:nth-child(2),
body.theme-academic .home-contra-table thead th:nth-child(3),
body.theme-academic .home-contra-table thead th:nth-child(4) {
  text-align: right;
  font-size: 14px;
}

body.theme-academic .home-contra-table tbody td {
  padding: 11px 16px;
  border-top: 1px solid var(--hp-line);
  vertical-align: middle;
  color: var(--hp-ink);
}

body.theme-academic .home-contra-table tbody tr:first-child td {
  border-top: none;
}

body.theme-academic .home-contra-table .hc-co {
  font-weight: 600;
  color: var(--hp-ink);
  font-size: 14px;
}

body.theme-academic .home-contra-table .hc-spend,
body.theme-academic .home-contra-table .hc-up,
body.theme-academic .home-contra-table .hc-dn {
  font-family: var(--font-sans);
  font-size: 17px;
  color: var(--hp-body) !important;
  font-weight: 400;
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 460px) {
  body.theme-academic .home-contra-table thead th:nth-child(3),
  body.theme-academic .home-contra-table .hc-up {
    display: none;
  }
}

/* KPI tiles */
body.theme-academic .home-signal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

@media (max-width: 860px) {
  body.theme-academic .home-signal-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 460px) {
  body.theme-academic .home-signal-grid { grid-template-columns: 1fr; }
}

body.theme-academic .home-signal-tile {
  background: var(--hp-paper) !important;
  border: 1px solid var(--hp-line) !important;
  border-radius: var(--hp-radius) !important;
  box-shadow: none !important;
  padding: 18px 16px 16px !important;
}

body.theme-academic a.home-signal-tile:hover {
  border-color: #b8c4d4 !important;
  transform: none !important;
}

body.theme-academic .home-signal-tile .hs-theme {
  color: var(--hp-body) !important;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
}

body.theme-academic .home-signal-val,
body.theme-academic .home-signal-val.v-blue {
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
  color: var(--hp-ink) !important;
  font-size: clamp(22px, 2.5vw, 28px) !important;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
}

body.theme-academic .home-signal-label {
  color: var(--hp-body) !important;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  margin-top: 10px;
}

body.theme-academic .hs-trend {
  font-family: var(--font-sans);
  font-size: 12px !important;
  font-weight: 400 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--hp-ink) !important;
  white-space: nowrap;
}

body.theme-academic .hs-trend.up,
body.theme-academic .hs-trend.down,
body.theme-academic .hs-trend.flat {
  color: var(--hp-ink) !important;
  background: transparent !important;
  border: none !important;
}

/* Figures row */
body.theme-academic .home-signal-foot {
  --home-viz-scale: 1.15;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: stretch;
  margin-top: 0;
}

@media (max-width: 880px) {
  body.theme-academic .home-signal-foot { grid-template-columns: 1fr; }
}

body.theme-academic .home-viz {
  background: var(--hp-paper) !important;
  border: 1px solid var(--hp-line) !important;
  border-radius: var(--hp-radius) !important;
  box-shadow: none !important;
  padding: 18px 16px calc(16px * var(--home-viz-scale, 1)) !important;
  display: flex;
  flex-direction: column;
}

body.theme-academic .home-viz--highlight {
  border-top: 2px solid var(--hp-line) !important;
}

body.theme-academic .home-spark {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: calc(108px * var(--home-viz-scale, 1));
  padding-top: 22px;
  padding-bottom: calc(26px * var(--home-viz-scale, 1));
  border-bottom: 1px solid var(--hp-line);
  margin-bottom: 14px;
}

body.theme-academic .home-spark-bar {
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
  border-radius: 0 !important;
  position: relative;
  background: var(--bar-fill, #e2e8f0) !important;
}

body.theme-academic .home-spark-val {
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--hp-ink);
  white-space: nowrap;
}

body.theme-academic .home-spark-mo {
  position: absolute;
  bottom: calc(-24px * var(--home-viz-scale, 1));
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--hp-body);
}

body.theme-academic .home-viz-cap {
  color: var(--hp-body) !important;
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

body.theme-academic .home-viz-cap b {
  color: var(--hp-ink);
  font-weight: 600;
}

body.theme-academic .home-viz-cap a.drill {
  color: var(--hp-blue) !important;
  font-weight: 500;
  text-decoration: none !important;
  border-bottom: none !important;
}

body.theme-academic .home-viz-cap a.drill:hover {
  text-decoration: none !important;
  opacity: 0.85;
}

/* Fig. 3 — thicker ratio bars, gradient fills */
body.theme-academic .home-ratio {
  height: auto;
  min-height: calc(
    (108px + 22px + 26px) * var(--home-viz-scale, 1) - 22px
  );
  margin-bottom: 14px;
  padding-bottom: calc(14px * var(--home-viz-scale, 1));
  border-bottom: 1px solid var(--hp-line);
  gap: 14px;
}

body.theme-academic .home-ratio-bar {
  background: #e2e8f0 !important;
  height: 14px !important;
  border-radius: 0 !important;
}

body.theme-academic .home-ratio-fill--capex {
  background: linear-gradient(90deg, #60a5fa, #1d4ed8) !important;
  display: block;
  height: 100%;
  border-radius: 0;
  min-width: 4px;
}

body.theme-academic .home-ratio-fill--saves {
  background: linear-gradient(90deg, #f9a8d4, #db2777) !important;
  display: block;
  height: 100%;
  border-radius: 0;
  min-width: 4px;
}

body.theme-academic .home-ratio-k {
  font-family: var(--font-mono);
  font-size: 12px !important;
  font-weight: 600;
  color: var(--hp-ink) !important;
  width: 96px;
}

body.theme-academic .home-ratio-v {
  font-family: var(--font-mono);
  font-size: 13px !important;
  color: var(--hp-ink) !important;
  font-weight: 700 !important;
  width: 56px;
}

/* ── §03 Formats ── */
body.theme-academic .formats-header {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

body.theme-academic .formats-header .hp-section-id {
  color: var(--hp-ink) !important;
}

body.theme-academic .formats-header p {
  color: var(--hp-body) !important;
  font-size: 16px;
  line-height: 1.6;
}

body.theme-academic .text-electric-blue,
body.theme-academic .hp-accent-blue {
  color: var(--hp-blue) !important;
  background: none !important;
  -webkit-text-fill-color: unset !important;
}

body.theme-academic .formats-nav-grid {
  gap: 10px !important;
  margin-top: 32px;
}

body.theme-academic .formats-nav-card {
  background: #f4f6f9 !important;
  border: 1px solid var(--hp-line) !important;
  border-radius: var(--hp-radius) !important;
  box-shadow: none !important;
  min-height: 148px;
  padding: 18px 16px !important;
  text-decoration: none !important;
}

body.theme-academic .formats-nav-card *,
body.theme-academic .formats-nav-card h3,
body.theme-academic .formats-nav-card p,
body.theme-academic .formats-nav-num {
  text-decoration: none !important;
}

body.theme-academic .formats-nav-card::before { display: none !important; }

body.theme-academic .formats-nav-card:hover {
  border-color: #b8c4d4 !important;
  transform: none !important;
  box-shadow: none !important;
}

body.theme-academic .formats-nav-num {
  color: var(--hp-blue) !important;
  font-family: var(--font-sans);
  font-size: 15px !important;
  font-weight: 700 !important;
}

body.theme-academic .formats-nav-card h3 {
  color: var(--hp-ink) !important;
  font-size: 17px !important;
  font-weight: 600 !important;
}

body.theme-academic .formats-nav-card p {
  color: var(--hp-body) !important;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

body.theme-academic .formats-nav-arrow {
  color: var(--hp-ink) !important;
  font-size: 16px !important;
}

/* ── §04 Comedy ── */
/* ── §04 Comedy — centered section label ── */
body.theme-academic .comic-header {
  text-align: center;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

body.theme-academic .comic-header .hp-section-id {
  color: var(--hp-body) !important;
}

body.theme-academic .comic-header .hp-section-rule {
  margin-left: auto;
  margin-right: auto;
}

body.theme-academic .comic-header h2 {
  color: var(--hp-ink) !important;
  font-weight: 800;
  font-size: clamp(26px, 3vw, 34px);
}

body.theme-academic .comic-header p,
body.theme-academic .comic-lede {
  color: var(--hp-body) !important;
  font-size: 15px;
  line-height: 1.6;
  max-width: 62ch;
}

body.theme-academic section.comic-section--lightbg .episode-card {
  background: var(--hp-paper) !important;
  border: 1px solid var(--hp-line) !important;
  border-radius: var(--hp-radius) !important;
  box-shadow: none !important;
}

body.theme-academic section.comic-section--lightbg .episode-card h3 {
  color: var(--hp-ink) !important;
  font-size: 15px;
}

body.theme-academic section.comic-section--lightbg .episode-card p {
  color: var(--hp-body) !important;
  font-size: 13px;
}

body.theme-academic section.comic-section--lightbg .episode-no {
  color: var(--hp-muted) !important;
  font-family: var(--font-mono);
  font-size: 11px;
}

body.theme-academic section.comic-section--lightbg .ep-carousel-prev,
body.theme-academic section.comic-section--lightbg .ep-carousel-next {
  background: var(--hp-paper) !important;
  color: var(--hp-ink) !important;
  border: 1px solid var(--hp-line) !important;
  border-radius: var(--hp-radius) !important;
}

body.theme-academic section.comic-section--lightbg .ep-dot.is-active {
  background: var(--hp-ink) !important;
}

body.theme-academic .comic-cta .btn-primary {
  background: var(--hp-blue) !important;
  border-radius: var(--hp-radius) !important;
  box-shadow: none !important;
  font-size: 14px;
}

/* ── §05 Thesis + Slack chat ── */
body.theme-academic .pain-section .hp-section-id {
  color: var(--hp-ink) !important;
}

body.theme-academic .pain-section h2 {
  color: var(--hp-ink) !important;
  font-weight: 800;
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

body.theme-academic .pain-section h2 .hp-accent-pink {
  color: var(--hp-pink) !important;
}

body.theme-academic .pain-left p {
  color: var(--hp-body) !important;
  font-size: 16px;
  line-height: 1.65;
}

body.theme-academic .pain-pullquote {
  color: var(--hp-ink) !important;
  font-style: italic;
  font-size: 18px;
  line-height: 1.5;
  border-left: 3px solid var(--hp-line);
  padding-left: 16px;
  margin-top: 20px;
}

body.theme-academic .pain-cta .btn-primary {
  background: var(--hp-blue) !important;
  border-radius: var(--hp-radius) !important;
  box-shadow: none !important;
}

body.theme-academic .pain-cta-note {
  color: var(--hp-muted) !important;
  font-size: 13px;
}

body.theme-academic .slack-panel {
  border-radius: var(--hp-radius) !important;
  border: 1px solid var(--hp-line) !important;
  box-shadow: none !important;
}

body.theme-academic .slack-topbar {
  background: #2b2f39 !important;
  color: #f4f5ff !important;
  border-bottom: 1px solid #1a1d24 !important;
}

body.theme-academic .slack-topbar-hint {
  color: rgba(244, 245, 255, 0.72) !important;
}

body.theme-academic .formats-header .hp-section-rule,
body.theme-academic .comic-header .hp-section-rule {
  margin-left: auto;
  margin-right: auto;
}

/* ══ Unified page header — same background, height, lockup on all pages ══ */
body.theme-academic nav.site-nav {
  background: var(--adc-header-bg) !important;
  border-bottom: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.theme-academic .site-nav .nav-links a {
  color: #44506a !important;
  background: transparent !important;
  text-shadow: none !important;
}

body.theme-academic .site-nav .nav-links a:hover,
body.theme-academic .site-nav .nav-links a:focus-visible {
  color: #0b1220 !important;
  background: rgba(15, 23, 42, 0.06) !important;
}

body.theme-academic .site-nav .nav-links a[aria-current="page"] {
  color: #0b1220 !important;
  background: rgba(15, 23, 42, 0.08) !important;
}

body.theme-academic .site-nav .nav-toggle {
  color: #23262e !important;
  border-color: rgba(15, 23, 42, 0.14) !important;
}

body.theme-academic .site-nav .site-social-strip-link {
  color: #fff !important;
  background: #23262e !important;
  border-color: #23262e !important;
}

body.theme-academic .site-nav .site-social-strip-link:hover {
  color: #fff !important;
  background: #3a3f4a !important;
  border-color: #3a3f4a !important;
}

@media (max-width: 768px) {
  body.theme-academic .site-nav .nav-menu {
    background: #f8fafc !important;
    border-bottom: var(--adc-header-border) !important;
  }
}

body.theme-academic :is(
  section.hero.theme-light,
  section.format-hero-lockup.theme-light,
  section.bw-hero.adc-page-header
) {
  background: var(--adc-header-bg) !important;
  border-bottom: var(--adc-header-border) !important;
  min-height: 0 !important;
  padding: clamp(8px, 1.5vw, 14px) 0 clamp(8px, 1.2vw, 12px) !important;
  position: relative;
  overflow: hidden;
}

body.theme-academic section.hero.theme-light .particles {
  display: none;
}

body.theme-academic :is(section.hero.theme-light, section.format-hero-lockup.theme-light, section.bw-hero.adc-page-header)::before,
body.theme-academic :is(section.hero.theme-light, section.format-hero-lockup.theme-light)::after,
body.theme-academic .format-hero-lockup::before {
  display: none !important;
  content: none !important;
}

body.theme-academic .format-hero-split-main :is(
  .format-breadcrumb,
  .format-hero-badge-row,
  .format-hero-lead,
  .format-hero-actions,
  .format-metrics
),
body.theme-academic section.bw-hero.adc-page-header :is(
  .bw-hero-kicker,
  .bw-hero-sub,
  .bw-lede,
  .bw-kicker-line,
  .hp-section-rule
) {
  display: none !important;
}

body.theme-academic .format-hero-split {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: clamp(8px, 1.6vw, 16px) !important;
  grid-template-columns: unset !important;
}

body.theme-academic .format-hero-split .adc-brand-lockup {
  flex: 1 1 auto;
  min-width: 0;
}

body.theme-academic .adc-brand-mark--format,
body.theme-academic .adc-brand-mark--hero {
  width: clamp(62px, 8.6vw, 79px);
  height: auto;
}

body.theme-academic.format-shell:has(.site-social-strip--hero) .site-nav .site-social-strip--nav {
  display: none !important;
}

body.theme-academic .format-hero-split .adc-brand-lockup__text,
body.theme-academic .format-hero-split .hero-brand-title {
  min-width: 0;
}

@media (max-width: 768px) {
  body.theme-academic {
    --adc-title-main-size: clamp(21px, 5.5vw, 30px);
  }

  body.theme-academic .format-hero-split,
  body.theme-academic .hero-top-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: clamp(6px, 2vw, 10px) !important;
  }
}

/* ── Hero: logo left of title — align to .container grid (stat cards) ── */
body.theme-academic section.hero.theme-light {
  text-align: left;
  align-items: stretch;
  justify-content: flex-start;
  width: 100%;
}

body.theme-academic section.hero.theme-light .hero-container {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* Homepage — Subscribe in top nav, right edge aligned with Ex. D / container grid */
body.theme-academic.page-home .site-nav-subscribe {
  flex-shrink: 0;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

body.theme-academic.page-home .site-nav-subscribe .site-social-strip-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  padding: 0;
  margin: 0;
}

body.theme-academic .site-social-strip--hero .site-social-strip-sub {
  display: none !important;
}

/* Subscribe + social — same row as brand lockup */
body.theme-academic .hero-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(8px, 1.6vw, 16px);
  width: 100%;
}

body.theme-academic .hero-top-row .hero-brand,
body.theme-academic .hero-top-row .adc-brand-lockup {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}

body.theme-academic .site-social-strip--hero {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  align-self: center;
  max-width: 100%;
}

body.theme-academic .site-social-strip--hero .site-social-strip-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

body.theme-academic .site-social-strip--hero .site-social-strip-inner::-webkit-scrollbar {
  display: none;
}

body.theme-academic .site-social-strip--hero .site-social-strip-link {
  width: 38px;
  height: 38px;
  border-radius: 0 !important;
  color: #fff !important;
  background: #23262e !important;
  border: 1px solid #23262e !important;
}

body.theme-academic .site-social-strip--hero .site-social-strip-link svg {
  width: 19px;
  height: 19px;
}

body.theme-academic .site-social-strip--hero .site-social-strip-link:hover {
  color: #fff !important;
  background: #3a3f4a !important;
  border-color: #3a3f4a !important;
}

body.theme-academic.page-home .site-social-strip--hero .site-social-strip-sub {
  width: auto;
  height: 48px;
  padding: 0 15px;
  gap: 8px;
  border-radius: 0 !important;
  color: #fff !important;
  background: var(--hp-blue) !important;
  border-color: transparent !important;
  cursor: pointer;
  font-family: var(--font-sans);
}

body.theme-academic.page-home .site-social-strip--hero .site-social-strip-sub svg {
  width: 23px;
  height: 23px;
}

body.theme-academic.page-home .site-social-strip--hero .site-social-strip-sub-label {
  font-size: 12px;
}

body.theme-academic.page-home .site-social-strip--hero .site-social-strip-sub:hover {
  background: var(--hp-ink) !important;
  border-color: transparent !important;
  color: #fff !important;
}

@media (max-width: 768px) {
  body.theme-academic.page-home .hero-top-row {
    flex-direction: column;
    align-items: flex-start;
  }

  body.theme-academic.page-home .site-social-strip--hero,
  body.theme-academic.page-home .site-social-strip--hero .site-social-strip-inner {
    justify-content: flex-start;
    width: 100%;
  }

  body.theme-academic.page-home .site-social-strip--hero .site-social-strip-link,
  body.theme-academic.page-home .site-social-strip--hero .site-social-strip-sub {
    width: 44px;
    height: 44px;
  }

  body.theme-academic.page-home .site-social-strip--hero .site-social-strip-link svg {
    width: 22px;
    height: 22px;
  }

  body.theme-academic.page-home .site-social-strip--hero .site-social-strip-sub {
    width: auto;
    height: 60px;
    padding: 0 17px;
  }

  body.theme-academic.page-home .site-social-strip--hero .site-social-strip-sub svg {
    width: 27px;
    height: 27px;
  }
}

body.theme-academic .hero-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(22px, 4vw, 48px);
  max-width: none;
  width: 100%;
  margin: 0;
  position: relative;
  z-index: 1;
}

body.theme-academic .hero-logo-mark {
  margin: 0 !important;
  flex: 0 0 auto;
}

body.theme-academic .logo-badge-ring--mwatch-hero {
  margin: 0 !important;
  animation: float 3s ease-in-out infinite;
}

/* ── Page header main title — one size/weight everywhere (matches homepage) ── */
body.theme-academic :is(
  h1.hero-brand-title,
  .adc-brand-lockup__text > h1,
  .adc-brand-lockup__text.hero-brand-title,
  .bw-hero.adc-page-header .hero-brand-title,
  .format-hero-lockup h1
) {
  margin: 0 !important;
  text-align: left;
  font-size: var(--adc-title-main-size) !important;
  font-weight: var(--adc-title-main-weight) !important;
  line-height: var(--adc-title-main-leading) !important;
  letter-spacing: var(--adc-title-main-tracking) !important;
  color: var(--adc-title-main-color) !important;
}

body.theme-academic .hero-title-main {
  display: block;
  color: var(--adc-title-main-color);
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  letter-spacing: inherit !important;
}

body.theme-academic .hero-title-tag {
  display: block;
  margin-top: 0.38em;
  font-size: 0.58em;
  font-weight: var(--adc-title-main-weight);
  line-height: 1.2;
  color: var(--hp-blue, #1d4ed8);
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
}

body.theme-academic .hero-title-tag-pink {
  color: #e0258a;
}

/* Homepage hero lockup — compact; tagline only on home */
body.theme-academic.page-home .hero-brand-title {
  line-height: 1.02 !important;
}

body.theme-academic.page-home .hero-title-tag {
  margin-top: 0.2em;
  font-size: 0.56em;
}

body.theme-academic.page-home .adc-brand-lockup,
body.theme-academic.page-home .hero-top-row .hero-brand {
  gap: clamp(10px, 2.2vw, 24px);
}

@media (max-width: 720px) {
  body.theme-academic.page-home .adc-brand-lockup,
  body.theme-academic.page-home .hero-top-row .hero-brand {
    gap: clamp(8px, 2.4vw, 14px);
  }
}

/* ── Sunglasses mark lockup (Adobe Stock #1415350739 — pre-license preview) ── */
.adc-brand-mark {
  display: block;
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: center bottom;
  transform: scaleX(-1);
}

.adc-brand-mark--hero {
  width: clamp(96px, 13.5vw, 124px);
  height: auto;
}

.adc-brand-mark--format {
  width: clamp(76px, 11.5vw, 104px);
  height: auto;
}

.adc-brand-mark--footer {
  width: 18px;
  height: auto;
  display: inline-block;
  vertical-align: -0.2em;
}

body.theme-academic .format-hero-lockup > .container,
body.theme-academic section.hero.theme-light > .container {
  width: 100%;
  box-sizing: border-box;
}

body.theme-academic .format-hero-split,
body.theme-academic .hero-top-row {
  width: 100%;
  justify-content: flex-start !important;
  justify-items: start !important;
}

body.theme-academic .format-hero-split-logo,
body.theme-academic .format-hero-logo-link,
body.theme-academic .adc-brand-lockup > a.format-hero-logo-link {
  margin: 0 !important;
  justify-content: flex-start !important;
  align-self: flex-start;
}

body.theme-academic .format-hero-split-logo .adc-brand-mark--format,
body.theme-academic .format-hero-split-logo .adc-brand-mark--hero,
body.theme-academic .adc-brand-lockup .adc-brand-mark {
  margin: 0 !important;
  display: block;
}

@media (max-width: 720px) {
  body.theme-academic .format-hero-split {
    justify-items: start !important;
    text-align: left !important;
  }
}

body.theme-academic .adc-brand-lockup {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(10px, 2.2vw, 24px);
  max-width: none;
  width: 100%;
  margin: 0;
  position: relative;
  z-index: 1;
}

body.theme-academic .adc-brand-lockup__text {
  margin: 0 !important;
  text-align: left;
}

body.theme-academic .format-hero-split-logo .adc-brand-mark--format {
  margin: 0 !important;
}

@media (max-width: 720px) {
  body.theme-academic .adc-brand-lockup {
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(18px, 4vw, 28px);
    text-align: left;
  }

  body.theme-academic .adc-brand-lockup__text {
    text-align: left;
  }
}

@media (max-width: 720px) {
  body.theme-academic .hero-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(18px, 4vw, 28px);
    text-align: left;
  }
}

/* Hero social — removed from homepage hero; nav strip retains social links */

/* ══════════════════════════════════════════════
   SITE-WIDE — format pages & shared chrome
══════════════════════════════════════════════ */

body.theme-academic .format-hero-lockup::before {
  display: none !important;
}

body.theme-academic .format-hero-lockup {
  padding: clamp(8px, 1.5vw, 14px) 0 clamp(8px, 1.2vw, 12px) !important;
}

body.theme-academic .format-hero {
  padding: clamp(8px, 1.5vw, 14px) 0 clamp(8px, 1.2vw, 12px) !important;
}

body.theme-academic .format-hero::before {
  display: none !important;
}

body.theme-academic .btn-primary {
  background: var(--hp-blue) !important;
  background-image: none !important;
  animation: none !important;
  border: 1px solid var(--hp-blue) !important;
  border-radius: var(--hp-radius) !important;
  box-shadow: none !important;
}

body.theme-academic .btn-primary:hover {
  background: var(--hp-ink) !important;
  border-color: var(--hp-ink) !important;
  box-shadow: none !important;
}

body.theme-academic .site-nav .site-social-strip-sub {
  background: var(--hp-blue) !important;
  background-image: none !important;
  border-color: var(--hp-blue) !important;
  filter: none !important;
}

body.theme-academic .site-nav .site-social-strip-sub:hover {
  background: var(--hp-ink) !important;
  border-color: var(--hp-ink) !important;
  filter: none !important;
}

body.theme-academic :is(
  .mp-rl-cta,
  .wdr-cta,
  .rdr-link--primary,
  .layoffs-open-deep,
  .co-mkt-cta,
  .co-rum-cta,
  .rh-rl-cta,
  .lc-btn
) {
  background: var(--hp-blue) !important;
  background-image: none !important;
  box-shadow: none !important;
}

body.theme-academic :is(
  .mp-rl-cta,
  .wdr-cta,
  .rdr-link--primary,
  .layoffs-open-deep,
  .co-mkt-cta,
  .co-rum-cta,
  .rh-rl-cta,
  .lc-btn
):hover {
  background: var(--hp-ink) !important;
  filter: none !important;
}

body.theme-academic .btn-secondary {
  border-radius: var(--hp-radius) !important;
}

body.theme-academic .site-stat-value,
body.theme-academic .site-stat-cell strong,
body.theme-academic .kpi-val {
  color: var(--hp-ink) !important;
}

/* Flat textbook cards — surface only */
body.theme-academic .wl-card,
body.theme-academic .mwatch-stock-card,
body.theme-academic .mp-card,
body.theme-academic .vid-card,
body.theme-academic .fut-card,
body.theme-academic .fut-method-card,
body.theme-academic .sol-step,
body.theme-academic .bp-item,
body.theme-academic .res-model,
body.theme-academic .res-cat,
body.theme-academic .formats-nav-card,
body.theme-academic .format-card,
body.theme-academic .aw-gate,
body.theme-academic .aw-controls,
body.theme-academic .rum-card,
body.theme-academic .rum-intro-mark,
body.theme-academic .slack-panel,
body.theme-academic .co-rum-card {
  border-radius: var(--hp-radius) !important;
}

body.theme-academic .wl-card,
body.theme-academic .mwatch-stock-card,
body.theme-academic .mp-card,
body.theme-academic .vid-card,
body.theme-academic .fut-card,
body.theme-academic .rum-card,
body.theme-academic .sol-step,
body.theme-academic .bp-item,
body.theme-academic .res-model,
body.theme-academic .formats-nav-card,
body.theme-academic .format-card,
body.theme-academic .aw-gate,
body.theme-academic .aw-controls {
  box-shadow: none !important;
}

body.theme-academic .wl-card:hover,
body.theme-academic .mwatch-stock-card:hover,
body.theme-academic .mp-card:hover,
body.theme-academic .vid-card:hover,
body.theme-academic .fut-card:hover,
body.theme-academic .rum-card:hover,
body.theme-academic .rum-card:focus-visible,
body.theme-academic .format-card:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06) !important;
}

body.theme-academic .udo-rail-main .wl-card,
body.theme-academic .udo-rail-main .wl-card:hover {
  transform: none !important;
}

/* ── SECNAV — per-section mini nav + alternating bands ── */
body.theme-academic .secnav-band--white {
  background: var(--hp-paper) !important;
}

body.theme-academic .secnav-band--grey {
  background: var(--hp-grey) !important;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

body.theme-academic .secnav-mini {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 clamp(14px, 2vw, 20px);
  padding: 0;
}

body.theme-academic .secnav-mini-btn,
body.theme-academic .secnav-mini .secnav-jump-btn {
  display: inline-flex !important;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--hp-muted) !important;
  background: var(--hp-paper) !important;
  border: 1px solid var(--hp-line) !important;
  border-radius: 0 !important;
  padding: 5px 10px;
  margin: 0;
  text-decoration: none !important;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

body.theme-academic .secnav-band--grey .secnav-mini-btn {
  background: var(--hp-paper) !important;
}

body.theme-academic .secnav-mini-btn:hover,
body.theme-academic .secnav-mini .secnav-jump-btn:hover {
  color: var(--hp-ink) !important;
  border-color: #94a3b8 !important;
  text-decoration: none !important;
}

body.theme-academic .secnav-mini-btn.is-active {
  color: var(--hp-ink) !important;
  border-color: var(--hp-blue) !important;
  background: #eff6ff !important;
}

body.theme-academic .secnav-mini .secnav-jump {
  position: relative;
  flex: 0 0 auto;
  margin-right: 2px;
}

body.theme-academic .secnav-jump-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 210px;
  background: var(--hp-paper);
  border: 1px solid var(--hp-line);
  border-radius: 0 !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  padding: 6px;
  z-index: 80;
  display: flex;
  flex-direction: column;
}

body.theme-academic .secnav-jump-menu[hidden] {
  display: none;
}

body.theme-academic .secnav-jump-menu a {
  font-size: 13px;
  font-weight: 600;
  color: var(--hp-ink) !important;
  text-decoration: none !important;
  padding: 8px 11px;
  border-radius: 0 !important;
}

body.theme-academic .secnav-jump-menu a:hover {
  background: var(--hp-grey);
  color: var(--hp-ink) !important;
}

/* ── Top nav — sharp subscribe + social + link pills ── */
body.theme-academic .site-nav .nav-links a {
  border-radius: 0 !important;
}

body.theme-academic .site-nav .site-social-strip-link {
  width: 32px;
  height: 32px;
  border-radius: 0 !important;
}

body.theme-academic .site-nav .site-social-strip-sub {
  width: auto;
  height: 32px;
  padding: 0 13px;
  gap: 7px;
  border-radius: 0 !important;
}

@media (max-width: 768px) {
  body.theme-academic .site-nav .site-social-strip-link {
    width: 40px;
    height: 40px;
  }

  body.theme-academic .site-nav .site-social-strip-sub {
    height: 40px;
  }
}

body.theme-academic .co-modal .co-head,
body.theme-academic #co-modal .co-head {
  background: #2b2f39 !important;
  color: #f4f5ff !important;
}

/* ══ Sharp corners — all surfaces; circles only for logo ring & live dots ══ */
body.theme-academic *,
body.theme-academic *::before,
body.theme-academic *::after {
  border-radius: 0 !important;
}

body.theme-academic :is(
  .logo-badge-ring,
  .logo-badge-ring img,
  .wl-live-dot,
  .wl-breaking-dot,
  .lsb-eyebrow::before,
  .rum-chip .dot,
  .ep-dot,
  .vid-now-chan .dot,
  .bw-pulse-dot,
  .hero-logo-mark .brand-mark
) {
  border-radius: 50% !important;
}

/* ── Market Watch · AI Economy tape — compact card grid (sections 1–5) ── */
body.theme-academic #mwatch-tape .mwatch-details {
  border: 1px solid var(--hp-line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: var(--hp-paper) !important;
}

body.theme-academic #mwatch-tape .mwatch-details__summary {
  padding: 14px 16px !important;
}

body.theme-academic #mwatch-tape .mwatch-details__toggle {
  width: 32px !important;
  height: 32px !important;
  border: 1px solid var(--hp-line) !important;
  background: var(--hp-grey) !important;
  color: var(--hp-ink) !important;
  font-size: 18px !important;
}

body.theme-academic #mwatch-tape .mwatch-details__body {
  padding: 0 16px 18px !important;
  border-top: 1px solid var(--hp-line) !important;
}

body.theme-academic #mwatch-tape .mwatch-section-label {
  font-family: var(--font-sans) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  color: var(--hp-muted) !important;
  margin-bottom: 4px !important;
}

body.theme-academic #mwatch-tape .mwatch-live-stamp {
  font-family: var(--font-mono) !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  color: var(--hp-muted) !important;
}

body.theme-academic #mwatch-tape .mwatch-live-stamp[data-live-ok] {
  color: var(--hp-sym-up) !important;
}

body.theme-academic #mwatch-tape .mwatch-tape-sec {
  background: transparent !important;
  border: none !important;
  border-top: 1px solid var(--hp-line) !important;
  border-radius: 0 !important;
  padding: 16px 0 6px !important;
  margin-top: 0 !important;
}

body.theme-academic #mwatch-tape .mwatch-tape-sec:first-child {
  border-top: none !important;
  padding-top: 8px !important;
}

body.theme-academic #mwatch-tape .mwatch-sec-head {
  font-family: var(--font-sans) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  color: var(--hp-ink) !important;
  margin: 0 0 10px !important;
  padding: 0 0 8px !important;
  border-bottom: 1px solid var(--hp-line) !important;
  border-radius: 0 !important;
}

body.theme-academic #mwatch-tape .mwatch-sec-head span {
  display: inline !important;
  margin-top: 0 !important;
  margin-left: 6px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: var(--hp-muted) !important;
}

body.theme-academic #mwatch-tape .mwatch-sec-head::before {
  width: 6px !important;
  height: 6px !important;
  margin-right: 8px !important;
  opacity: 0.55 !important;
}

body.theme-academic #mwatch-tape .mwatch-sec-head:focus-visible {
  outline: 2px solid var(--hp-blue) !important;
  outline-offset: 2px !important;
  border-radius: 0 !important;
}

body.theme-academic #mwatch-tape .mwatch-stock-grid-head {
  display: none !important;
}

body.theme-academic #mwatch-tape .mwatch-stock-grid {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  flex-direction: unset !important;
  gap: 6px !important;
  padding: 6px !important;
  margin: 0 !important;
  border: 1px solid var(--hp-line) !important;
  border-radius: 0 !important;
  background: var(--hp-grey) !important;
  overflow: visible !important;
}

body.theme-academic #mwatch-tape .mwatch-stock-grid.mwatch-stock-grid--ai {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

body.theme-academic #mwatch-tape .mwatch-stock-cell.mwatch-stock-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  width: auto !important;
  min-height: 88px !important;
  padding: 10px 8px 12px !important;
  margin: 0 !important;
  border: 1px solid var(--hp-line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: var(--hp-paper) !important;
  text-align: left !important;
  cursor: pointer !important;
  position: relative !important;
}

body.theme-academic #mwatch-tape .mwatch-stock-expand {
  display: block !important;
  position: absolute !important;
  top: 6px !important;
  right: 8px !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  line-height: 1 !important;
  color: var(--hp-muted) !important;
  pointer-events: none !important;
}

body.theme-academic #mwatch-tape .mwatch-stock-sym {
  font-family: var(--font-mono) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  color: var(--hp-ink) !important;
  margin: 0 !important;
}

body.theme-academic #mwatch-tape .mwatch-stock-name {
  font-size: 11px !important;
  font-weight: 500 !important;
  color: var(--hp-muted) !important;
  margin: 3px 0 0 !important;
  max-width: 100% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body.theme-academic #mwatch-tape .mwatch-stock-price {
  font-family: var(--font-mono) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--hp-ink) !important;
  margin: auto 0 0 !important;
  text-align: left !important;
  letter-spacing: normal !important;
}

body.theme-academic #mwatch-tape .mwatch-stock-chg {
  display: block !important;
  font-family: var(--font-mono) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  margin: 2px 0 0 !important;
}

body.theme-academic #mwatch-tape .mwatch-stock-cell--up.mwatch-stock-card {
  background: #e7f8ef !important;
  border-color: #b9e6cd !important;
}

body.theme-academic #mwatch-tape .mwatch-stock-cell--down.mwatch-stock-card {
  background: #fdebee !important;
  border-color: #f6c6ce !important;
}

body.theme-academic #mwatch-tape .mwatch-stock-cell--flat.mwatch-stock-card,
body.theme-academic #mwatch-tape .mwatch-stock-cell--a.mwatch-stock-card,
body.theme-academic #mwatch-tape .mwatch-stock-cell--b.mwatch-stock-card {
  background: var(--hp-paper) !important;
}

body.theme-academic #mwatch-tape .mwatch-stock-chg--up,
body.theme-academic #mwatch-tape .mwatch-stock-cell--up .mwatch-stock-chg {
  color: var(--hp-sym-up) !important;
}

body.theme-academic #mwatch-tape .mwatch-stock-chg--down,
body.theme-academic #mwatch-tape .mwatch-stock-cell--down .mwatch-stock-chg {
  color: var(--hp-sym-down) !important;
}

body.theme-academic #mwatch-tape .mwatch-stock-chg--flat,
body.theme-academic #mwatch-tape .mwatch-stock-cell--flat .mwatch-stock-chg {
  color: var(--hp-muted) !important;
}

body.theme-academic #mwatch-tape .mwatch-stock-cell.mwatch-stock-card:hover,
body.theme-academic #mwatch-tape .mwatch-stock-cell.mwatch-stock-card:focus-visible {
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06) !important;
  outline: none !important;
}

@media (max-width: 1100px) {
  body.theme-academic #mwatch-tape .mwatch-stock-grid:not(.mwatch-stock-grid--ai) {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  body.theme-academic #mwatch-tape .mwatch-stock-grid.mwatch-stock-grid--ai {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  body.theme-academic #mwatch-tape .mwatch-stock-grid:not(.mwatch-stock-grid--ai) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.theme-academic #mwatch-tape .mwatch-stock-grid.mwatch-stock-grid--ai {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
