main {
  overflow: clip;
}

.hero,
.section {
  width: min(calc(100% - 40px), var(--b17-content-max));
  margin: 0 auto;
}

.hero {
  min-height: 610px;
  padding: 78px 0 68px;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
  align-items: end;
  gap: 64px;
}

.hero-copy .status-badge {
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--b17-product-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.hero h1,
.section h2 {
  margin: 0;
  font-family: var(--b17-font-display);
  font-weight: 650;
}

.hero h1 {
  max-width: 690px;
  font-size: var(--b17-text-display);
  line-height: 1.02;
}

.hero-summary {
  max-width: 620px;
  margin: 24px 0 30px;
  color: var(--b17-text-secondary);
  font-size: var(--b17-text-lg);
}

.hero-facts {
  max-width: 660px;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--b17-border-strong);
}

.hero-facts div {
  padding: 15px 16px 15px 0;
  border-bottom: 1px solid var(--b17-border);
}

.hero-facts dt,
.fact dt,
.study-card dt {
  color: var(--b17-text-muted);
  font-size: 12px;
}

.hero-facts dd {
  margin: 4px 0 0;
  font-weight: 750;
}

.delay-note {
  margin: 18px 0 0;
  color: var(--b17-negative);
  font-size: 13px;
  font-weight: 700;
}

.delay-note.healthy {
  color: var(--b17-positive);
}

.hero-visual {
  min-height: 390px;
  padding: 28px;
  border-radius: var(--b17-radius-md);
  background: var(--b17-ink);
  color: var(--b17-elevated);
  box-shadow: var(--b17-shadow-card);
}

.visual-header,
.visual-key {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.visual-header p {
  margin: 0;
  font-family: var(--b17-font-display);
  font-size: 22px;
}

.visual-header span,
.visual-key {
  color: #9fb0b2;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.hero-bars {
  min-height: 250px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  border-bottom: 1px solid #5d6d71;
}

.rank-bar {
  position: relative;
  flex: 1;
  min-width: 0;
  background: #d9e1dd;
  transition: opacity var(--b17-transition);
}

.rank-bar.observe {
  background: var(--b17-product-accent);
}

.rank-bar span {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  color: #aebbbc;
  font-size: 10px;
}

.visual-key {
  margin-top: 16px;
}

.section {
  padding: 82px 0;
  border-top: 1px solid var(--b17-border);
}

.section h2 {
  font-size: var(--b17-text-xl);
}

.section-heading {
  margin-bottom: 30px;
}

.split-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-intro,
.study-context {
  max-width: 820px;
  color: var(--b17-text-secondary);
}

.date-stamp,
.lifecycle {
  margin: 0;
  color: var(--b17-product-accent);
  font-size: 13px;
  font-weight: 750;
}

.facts-grid,
.forward-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--b17-border);
  border-left: 1px solid var(--b17-border);
}

.fact {
  min-height: 124px;
  padding: 20px;
  background: var(--b17-elevated);
  border-right: 1px solid var(--b17-border);
  border-bottom: 1px solid var(--b17-border);
}

.fact dd {
  margin: 10px 0 0;
  font-size: 17px;
  font-weight: 750;
}

.table-scroll {
  overflow-x: auto;
  border-top: 2px solid var(--b17-ink);
}

table {
  width: 100%;
  min-width: 940px;
  border-collapse: collapse;
  text-align: left;
  font-variant-numeric: tabular-nums;
}

th {
  padding: 13px 10px;
  color: var(--b17-text-muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

td {
  padding: 16px 10px;
  border-top: 1px solid var(--b17-border);
  font-size: 14px;
}

tbody tr {
  transition: background var(--b17-transition);
}

tbody tr:hover {
  background: var(--b17-elevated);
}

.stock-name {
  display: block;
  font-weight: 750;
}

.stock-symbol {
  color: var(--b17-text-muted);
  font-size: 12px;
}

.zone {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.zone.target {
  background: #dceae2;
  color: var(--b17-positive);
}

.zone.watch {
  background: var(--b17-accent-soft);
  color: var(--b17-warning);
}

.status-ok {
  color: var(--b17-positive);
  font-weight: 700;
}

.status-block {
  color: var(--b17-negative);
  font-weight: 700;
}

.study-section {
  position: relative;
}

.study-section::before {
  content: "";
  position: absolute;
  inset: 18px -100vw;
  z-index: -1;
  background: #ebe6dc;
}

.study-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.study-card {
  padding: 26px;
  border-top: 3px solid var(--b17-product-accent);
  border-radius: 0 0 var(--b17-radius-md) var(--b17-radius-md);
  background: var(--b17-elevated);
  box-shadow: var(--b17-shadow-card);
}

.study-card.compare {
  border-top-color: var(--b17-border-strong);
}

.study-card h3 {
  margin: 0;
  font-family: var(--b17-font-display);
  font-size: 30px;
}

.study-card dl {
  margin: 20px 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.study-card dd {
  margin: 4px 0 0;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}

.study-context {
  margin-top: 28px;
  font-size: 14px;
}

.forward-section {
  background: transparent;
}

.forward-grid {
  margin-top: 30px;
}

.family-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.family-section > div {
  max-width: 760px;
}

.family-section p:not(.eyebrow) {
  color: var(--b17-text-secondary);
}

.secondary-link {
  min-height: 44px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid var(--b17-border-strong);
  border-radius: var(--b17-radius-sm);
  color: var(--b17-ink);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  transition: border-color var(--b17-transition), background var(--b17-transition);
}

.secondary-link:hover {
  border-color: var(--b17-product-accent);
  background: var(--b17-accent-soft);
}

.risk-en {
  margin-top: 20px !important;
  color: #98aaa8 !important;
  font-size: 12px;
}

@media (max-width: 820px) {
  .hero,
  .section {
    width: min(calc(100% - 36px), var(--b17-content-max));
  }

  .hero {
    min-height: 0;
    padding: 56px 0 48px;
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .hero h1 {
    font-size: clamp(46px, 14vw, 64px);
  }

  .hero-summary {
    font-size: 18px;
  }

  .hero-visual {
    min-height: 310px;
  }

  .section {
    padding: 58px 0;
  }

  .facts-grid,
  .forward-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .split-heading,
  .family-section {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .hero,
  .section {
    width: calc(100% - 28px);
  }

  .hero {
    padding-top: 44px;
  }

  .hero h1 {
    font-size: 45px;
  }

  .hero-facts {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 280px;
    padding: 22px 18px;
  }

  .hero-bars {
    min-height: 190px;
  }

  .facts-grid,
  .forward-grid {
    grid-template-columns: 1fr;
  }

  .fact {
    min-height: 96px;
  }
}
