* {
  box-sizing: border-box;
}

:root {
  --bg: #070a12;
  --panel: #0e1322;
  --panel-2: #12192b;
  --text: #ecf2ff;
  --muted: #a9b4c7;
  --line: rgba(255, 255, 255, 0.12);
  --soft-line: rgba(15, 23, 42, 0.11);
  --light-text: #111827;
  --light-muted: #64748b;
  --accent: #22d3ee;
  --accent-2: #f97316;
  --accent-3: #8b5cf6;
  --card-shadow: 0 24px 80px rgba(15, 23, 42, 0.16);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--light-text);
  background: #ffffff;
  line-height: 1.65;
}

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

a:hover {
  text-decoration: underline;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 10, 18, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 900;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.nav {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  white-space: nowrap;
  font-size: 14px;
}

.nav a {
  color: #dbeafe;
  opacity: 0.88;
}

.nav a:hover {
  opacity: 1;
  text-decoration: none;
}

.hero {
  background:
    radial-gradient(circle at 8% 10%, rgba(34, 211, 238, 0.2), transparent 28%),
    radial-gradient(circle at 85% 20%, rgba(249, 115, 22, 0.18), transparent 30%),
    linear-gradient(135deg, #070a12 0%, #101626 45%, #080b16 100%);
  color: var(--text);
  padding: 84px 22px 64px;
}

.hero-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 38px;
  align-items: end;
}

.hero-copy {
  max-width: 990px;
}

.eyebrow,
.section-label {
  margin: 0 0 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-weight: 900;
  font-size: 12px;
}

h1 {
  max-width: 980px;
  margin: 0 0 22px;
  font-size: 58px;
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.lead {
  max-width: 900px;
  margin: 0 0 26px;
  color: #c7d2fe;
  font-size: 20px;
}

.authors {
  margin: 0 0 4px;
  color: #ffffff;
  font-weight: 800;
}

.affiliation {
  max-width: 780px;
  color: var(--muted);
  margin: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 17px;
  border-radius: 999px;
  color: #ffffff;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 800;
}

.button.primary {
  color: #07111f;
  background: linear-gradient(135deg, var(--accent), #a7f3d0);
  border: none;
}

.button:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.media-section {
  max-width: 1180px;
  margin: -36px auto 0;
  padding: 0 22px 36px;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 76px 22px;
}

.two-column {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
}

h2 {
  margin: 0 0 24px;
  font-size: 40px;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

p {
  color: #475569;
}

.section-heading {
  max-width: 860px;
  margin-bottom: 32px;
}

.problem-grid,
.method-grid,
.analysis-grid,
.error-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.problem-card,
.method-card,
.analysis-card,
.error-grid article {
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  padding: 24px;
  background: #ffffff;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.05);
}

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

.problem-card.accent {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #ffffff;
}

.problem-card.accent p {
  color: #cbd5e1;
}

.number {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 900;
  margin-bottom: 16px;
}

.problem-card.accent .number {
  background: rgba(34, 211, 238, 0.18);
  color: var(--accent);
}

h3 {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.figure-frame {
  margin: 28px auto 0;
  border: 1px solid #e5e7eb;
  border-radius: 28px;
  padding: 14px;
  background: #ffffff;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.figure-frame img,
.media-section img {
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 18px;
}

.figure-frame.compact {
  max-width: 760px;
}

figcaption {
  margin: 12px auto 0;
  color: var(--light-muted);
  text-align: center;
  font-size: 14px;
  max-width: 920px;
}

figcaption a {
  color: #0369a1;
  font-weight: 800;
}

.dark {
  max-width: none;
  color: #ffffff;
  background:
    radial-gradient(circle at 15% 15%, rgba(34, 211, 238, 0.15), transparent 30%),
    linear-gradient(135deg, #080b16, #111827);
  padding-left: calc((100vw - 1180px) / 2 + 22px);
  padding-right: calc((100vw - 1180px) / 2 + 22px);
}

.dark h2,
.dark h3 {
  color: #ffffff;
}

.dark p {
  color: #cbd5e1;
}

.figure-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}

.dark-card {
  background: rgba(255, 255, 255, 0.97);
}

/* Strict figure centering */
.figure-frame,
.media-section,
.figure-grid .figure-frame {
  text-align: center;
}

.figure-frame {
  width: 100%;
}

.figure-frame img,
.media-section img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

/* Result cards */
.results-visual {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 34px;
}

.result-tile {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 26px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.105), rgba(255,255,255,0.055));
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.18);
}

.tile-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.tile-head span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tile-head strong {
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
}

.dual-metric {
  display: grid;
  gap: 16px;
}

.metric-line {
  display: grid;
  grid-template-columns: 44px 70px minmax(80px, 1fr);
  align-items: center;
  gap: 12px;
}

.metric-line span {
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 900;
}

.metric-line b {
  color: #ffffff;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.045em;
}

.metric-line em {
  display: block;
  height: 12px;
  background: rgba(255,255,255,0.13);
  border-radius: 999px;
  overflow: hidden;
}

.metric-line em i {
  display: block;
  width: var(--v);
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

/* Efficiency comparison visualization */
.efficiency-visual {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}

.efficiency-group {
  border: 1px solid #e5e7eb;
  border-radius: 28px;
  background: #f8fafc;
  padding: 24px;
  box-shadow: 0 14px 42px rgba(15, 23, 42, 0.06);
}

.efficiency-group h3 {
  margin-bottom: 20px;
}

.efficiency-group h3 span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bars {
  display: grid;
  gap: 16px;
}

.bar-row {
  display: grid;
  grid-template-columns: 88px minmax(110px, 1fr) 70px;
  align-items: center;
  gap: 12px;
}

.bar-label {
  font-weight: 950;
  font-size: 13px;
  color: #334155;
}

.bar-row b {
  text-align: right;
  font-size: 13px;
  color: #0f172a;
}

.bar {
  height: 14px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.bar i {
  display: block;
  width: var(--v);
  min-width: 6px;
  height: 100%;
  border-radius: 999px;
  background: #94a3b8;
}

.bar-row.ours .bar-label,
.bar-row.ours b {
  color: #0369a1;
}

.bar-row.ours .bar i {
  background: linear-gradient(90deg, #22d3ee, #6366f1);
}

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

.efficiency-grid article {
  border-radius: 26px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  padding: 28px;
}

.big-number {
  display: block;
  color: #0f172a;
  font-size: 48px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.failure-section {
  border-top: 1px solid #e5e7eb;
}

.citation {
  border-top: 1px solid #e5e7eb;
}

.copy-button {
  border: none;
  background: #0f172a;
  color: #ffffff;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 900;
  cursor: pointer;
}

pre {
  background: #0f172a;
  color: #dbeafe;
  padding: 22px;
  border-radius: 18px;
  overflow-x: auto;
  line-height: 1.5;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.copy-status {
  color: #0369a1;
  font-weight: 800;
  min-height: 22px;
}

.acknowledgements {
  padding-top: 28px;
}

.footer {
  background: #070a12;
  color: #cbd5e1;
  text-align: center;
  padding: 34px 22px;
}

.footer p {
  color: #cbd5e1;
  margin: 0;
}

@media (max-width: 980px) {
  .two-column,
  .figure-grid {
    grid-template-columns: 1fr;
  }

  .problem-grid,
  .method-grid,
  .analysis-grid,
  .error-grid,
  .results-visual,
  .efficiency-visual,
  .efficiency-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  h1 {
    font-size: 44px;
  }
}

@media (max-width: 720px) {
  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
  }

  .hero {
    padding-top: 56px;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 30px;
  }

  .problem-grid,
  .method-grid,
  .analysis-grid,
  .error-grid,
  .results-visual,
  .efficiency-visual,
  .efficiency-grid {
    grid-template-columns: 1fr;
  }

  .dark {
    padding-left: 22px;
    padding-right: 22px;
  }

  .bar-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .bar-row b {
    text-align: left;
  }
}

/* Final centering override for SVG/PDF-derived figures */
main figure,
main .figure-frame {
  margin-left: auto !important;
  margin-right: auto !important;
}

main figure img,
main .figure-frame img,
main .media-section img {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Method title is now plain and concise in HTML. */

/* Strict image centering across all paper figures. */
main figure,
main .figure-frame,
main .media-section {
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

main figure img,
main .figure-frame img,
main .media-section img {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}

/* Results: robust metric cards. */
.metric-card-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(230px, 1fr)) !important;
  gap: 18px !important;
  margin: 0 0 34px 0 !important;
}

.metric-card {
  display: block !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  border-radius: 24px !important;
  padding: 22px !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.13), rgba(255,255,255,0.06)) !important;
  box-shadow: 0 18px 52px rgba(0,0,0,0.18) !important;
}

.metric-card header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: baseline !important;
  gap: 12px !important;
  margin-bottom: 18px !important;
}

.metric-card header span {
  color: var(--accent) !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

.metric-card header small {
  color: #ffffff !important;
  font-weight: 900 !important;
  font-size: 14px !important;
}

.metric-row {
  display: grid !important;
  grid-template-columns: 42px 68px minmax(80px, 1fr) !important;
  align-items: center !important;
  gap: 12px !important;
  margin-top: 14px !important;
}

.metric-row span {
  color: #cbd5e1 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

.metric-row strong {
  color: #ffffff !important;
  font-size: 26px !important;
  line-height: 1 !important;
  letter-spacing: -0.045em !important;
}

.metric-row .progress {
  height: 12px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,0.15) !important;
  overflow: hidden !important;
}

.metric-row .progress i {
  display: block !important;
  height: 100% !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, #22d3ee, #f97316) !important;
}

/* Efficiency: robust bar dashboard. */
.efficiency-dashboard {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(260px, 1fr)) !important;
  gap: 18px !important;
  margin: 0 0 30px 0 !important;
}

.efficiency-card {
  display: block !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 28px !important;
  padding: 24px !important;
  background: #f8fafc !important;
  box-shadow: 0 14px 42px rgba(15,23,42,0.06) !important;
}

.efficiency-card header {
  margin-bottom: 20px !important;
}

.efficiency-card h3 {
  margin: 0 !important;
  color: #0f172a !important;
  font-size: 22px !important;
  letter-spacing: -0.02em !important;
}

.efficiency-card header span {
  display: block !important;
  margin-top: 4px !important;
  color: #64748b !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
}

.efficiency-card .bar-row {
  display: grid !important;
  grid-template-columns: 88px minmax(110px, 1fr) 70px !important;
  align-items: center !important;
  gap: 12px !important;
  margin-top: 16px !important;
}

.efficiency-card .bar-row span {
  color: #334155 !important;
  font-size: 13px !important;
  font-weight: 950 !important;
}

.efficiency-card .bar-row strong {
  text-align: right !important;
  color: #0f172a !important;
  font-size: 13px !important;
  font-weight: 950 !important;
}

.efficiency-card .bar {
  height: 14px !important;
  border-radius: 999px !important;
  background: #e2e8f0 !important;
  overflow: hidden !important;
}

.efficiency-card .bar i {
  display: block !important;
  height: 100% !important;
  min-width: 6px !important;
  border-radius: 999px !important;
  background: #94a3b8 !important;
}

.efficiency-card .bar-row.ours span,
.efficiency-card .bar-row.ours strong {
  color: #0369a1 !important;
}

.efficiency-card .bar-row.ours .bar i {
  background: linear-gradient(90deg, #22d3ee, #6366f1) !important;
}

@media (max-width: 1080px) {
  .metric-card-grid,
  .efficiency-dashboard {
    grid-template-columns: repeat(2, minmax(230px, 1fr)) !important;
  }
}

@media (max-width: 720px) {
  .metric-card-grid,
  .efficiency-dashboard {
    grid-template-columns: 1fr !important;
  }

  .metric-row {
    grid-template-columns: 42px 64px minmax(70px, 1fr) !important;
  }

  .efficiency-card .bar-row {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .efficiency-card .bar-row strong {
    text-align: left !important;
  }
}

.abstract-section {
  text-align: center;
  max-width: 1040px;
}

.abstract-section h2 {
  margin-left: auto;
  margin-right: auto;
}

.abstract-section p {
  max-width: 920px;
  margin: 0 auto;
  color: #334155;
  font-size: 18px;
  line-height: 1.82;
  text-align: center;
}

.reduction-dashboard {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(260px, 1fr)) !important;
  gap: 18px !important;
  margin: 0 0 28px 0 !important;
}

.reduction-card {
  border: 1px solid #e5e7eb !important;
  border-radius: 28px !important;
  padding: 24px !important;
  background: #f8fafc !important;
  box-shadow: 0 14px 42px rgba(15, 23, 42, 0.06) !important;
}

.reduction-card header {
  margin-bottom: 20px !important;
}

.reduction-card h3 {
  margin: 0 !important;
  color: #0f172a !important;
  font-size: 22px !important;
  letter-spacing: -0.02em !important;
}

.reduction-card header span {
  display: block !important;
  margin-top: 4px !important;
  color: #64748b !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
}

.reduction-row {
  display: grid !important;
  grid-template-columns: 82px 72px minmax(110px, 1fr) !important;
  align-items: center !important;
  gap: 12px !important;
  margin-top: 16px !important;
}

.reduction-row span {
  color: #334155 !important;
  font-size: 13px !important;
  font-weight: 950 !important;
}

.reduction-row strong {
  color: #0369a1 !important;
  font-size: 20px !important;
  line-height: 1 !important;
  letter-spacing: -0.035em !important;
}

.reduction-bar {
  height: 14px !important;
  border-radius: 999px !important;
  background: #e2e8f0 !important;
  overflow: hidden !important;
}

.reduction-bar i {
  display: block !important;
  height: 100% !important;
  min-width: 6px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, #22d3ee, #6366f1) !important;
}

.reduction-summary {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(220px, 1fr)) !important;
  gap: 18px !important;
  margin-top: 18px !important;
}

.reduction-summary article {
  border-radius: 26px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid #e5e7eb;
  padding: 28px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}

.big-percent {
  display: block;
  color: #0f172a;
  font-size: 50px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.success-section {
  border-top: 1px solid #e5e7eb;
}

.failure-note {
  max-width: 920px;
  margin: 24px auto 0;
  padding: 24px 28px;
  border-radius: 24px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  text-align: center;
}

.failure-note p {
  margin: 0;
  color: #334155;
  font-size: 17px;
  line-height: 1.78;
}

.conclusion-section {
  border-top: 1px solid #e5e7eb;
}

.conclusion-text {
  max-width: 980px;
  margin: 0 auto;
}

.conclusion-text p {
  color: #334155;
  font-size: 17px;
  line-height: 1.82;
}

@media (max-width: 1080px) {
  .reduction-dashboard,
  .reduction-summary {
    grid-template-columns: repeat(2, minmax(240px, 1fr)) !important;
  }
}

@media (max-width: 720px) {
  .reduction-dashboard,
  .reduction-summary {
    grid-template-columns: 1fr !important;
  }

  .reduction-row {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .abstract-section p,
  .failure-note p,
  .conclusion-text p {
    font-size: 16px;
    text-align: left;
  }
}

.section-intro {
  max-width: 880px;
  color: #475569;
  font-size: 17px;
  line-height: 1.78;
}

.impact-section {
  max-width: none;
  padding-left: calc((100vw - 1180px) / 2 + 22px);
  padding-right: calc((100vw - 1180px) / 2 + 22px);
  background:
    radial-gradient(circle at 12% 12%, rgba(34, 211, 238, 0.10), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.impact-hero {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 20px;
  margin: 30px 0 22px;
}

.impact-main-card {
    overflow: hidden;
  min-height: 270px;
  border-radius: 34px;
  padding: 30px;
  color: #ffffff;
  background:
    radial-gradient(circle at 76% 18%, rgba(34, 211, 238, 0.45), transparent 28%),
    linear-gradient(135deg, #020617, #0f172a 56%, #1e293b);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.24);
}


.impact-kicker {
  display: inline-block;
  color: #67e8f9;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.impact-main-card strong {
  display: block;
  margin-top: 22px;
  font-size: 70px;
  line-height: 0.94;
  letter-spacing: -0.075em;
}

.impact-main-card p {
  max-width: 230px;
  margin: 16px 0 0;
  color: #cbd5e1;
  font-size: 16px;
}



.impact-compare-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.impact-compare-card {
  border: 1px solid #e5e7eb;
  border-radius: 28px;
  padding: 24px;
  background: #ffffff;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.07);
}

.impact-compare-card header {
  margin-bottom: 20px;
}

.impact-compare-card h3 {
  margin: 0;
  color: #0f172a;
  font-size: 22px;
}

.impact-compare-card header span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.impact-row {
  display: grid;
  grid-template-columns: 82px minmax(120px, 1fr) 68px;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.impact-row span {
  color: #334155;
  font-size: 13px;
  font-weight: 950;
}

.impact-row strong {
  color: #0369a1;
  font-size: 20px;
  line-height: 1;
  text-align: right;
}

.impact-track {
  height: 16px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.impact-track i {
  display: block;
  height: 100%;
  min-width: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #22d3ee, #6366f1);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.45);
}

.impact-note {
  max-width: 980px;
  margin: 24px auto 0;
  padding: 20px 24px;
  border-radius: 24px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  text-align: center;
}

.impact-note p {
  margin: 0;
  color: #475569;
  line-height: 1.75;
}

@media (max-width: 1080px) {
  .impact-hero,
  .impact-compare-grid {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }
}

@media (max-width: 720px) {
  .impact-section {
    padding-left: 22px;
    padding-right: 22px;
  }

  .impact-hero,
  .impact-compare-grid {
    grid-template-columns: 1fr;
  }

  .impact-main-card strong {
    font-size: 56px;
  }

  .impact-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .impact-row strong {
    text-align: left;
  }
}

.table-one-frame {
  max-width: 1180px;
}

.table-one-frame img {
  width: 100% !important;
  max-width: 100% !important;
}

.analysis-figure-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.analysis-mini {
  margin-top: 0 !important;
  height: 100%;
}

.analysis-mini img {
  max-height: 300px;
  width: 100% !important;
  object-fit: contain !important;
}

.analysis-mini figcaption {
  font-size: 13px;
}

.examples-failure-section {
  border-top: 1px solid #e5e7eb;
}

.examples-failure-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.qual-card {
  border: 1px solid #e5e7eb;
  border-radius: 30px;
  padding: 22px;
  background: #ffffff;
  box-shadow: 0 18px 54px rgba(15, 23, 42, 0.07);
}

.qual-card h3 {
  margin: 0 0 16px;
  font-size: 24px;
  color: #0f172a;
}

.qual-card .figure-frame {
  margin-top: 0;
  box-shadow: none;
  border-radius: 22px;
}

.qual-card img {
  width: 100% !important;
  max-width: 100% !important;
}

.failure-brief {
  margin: 18px 0 0;
  padding: 18px 20px;
  border-radius: 18px;
  background: #f8fafc;
  color: #334155;
  line-height: 1.72;
  text-align: left;
}

.actions .button.primary:empty {
  display: none;
}

@media (max-width: 1100px) {
  .analysis-figure-row {
    grid-template-columns: 1fr;
  }

  .analysis-mini img {
    max-height: none;
  }

  .examples-failure-row {
    grid-template-columns: 1fr;
  }
}





/* Standalone figure sizing: align with the main content width */
.single-figure,
.media-section .single-figure {
  width: 100% !important;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.single-figure img,
.table-one-frame img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
}

.table-one-frame {
  width: 100% !important;
  max-width: 1180px !important;
  padding: 18px !important;
}

@media (max-width: 900px) {
  .single-figure,
  .media-section .single-figure,
  .table-one-frame {
    width: calc(100vw - 44px) !important;
  }
}


/* Embedded Table I data card */
.results-table-card {
  width: 100%;
  max-width: 1180px;
  margin: 28px auto 0;
  padding: 24px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.98));
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 26px 80px rgba(15, 23, 42, 0.16);
  color: #0f172a;
}

.table-card-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.table-kicker {
  display: inline-block;
  color: #0369a1;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.table-card-header h3 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.table-card-header p {
  max-width: 720px;
  margin: 8px 0 0;
  color: #475569;
  line-height: 1.65;
}

.rank-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  min-width: 220px;
}

.rank-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.rank-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.legend-best { background: #bbf7d0; }
.legend-second { background: #bfdbfe; }
.legend-third { background: #fde68a; }

.table-scroll {
  overflow: auto;
  border-radius: 22px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  max-height: 760px;
}

.results-table {
  width: 100%;
  min-width: 1280px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
}

.results-table th,
.results-table td {
  padding: 9px 10px;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  text-align: center;
  white-space: nowrap;
}

.results-table th {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #0f172a;
  color: #e5f2ff;
  font-weight: 850;
}

.results-table .bits-head th {
  top: 37px;
  background: #1e293b;
  color: #cbd5e1;
  font-size: 11px;
}

.results-table td {
  color: #1e293b;
  background: #ffffff;
}

.results-table tr:nth-child(even) td {
  background: #f8fafc;
}

.results-table .method-cell,
.results-table .source-cell,
.results-table .task-cell {
  font-weight: 850;
}

.results-table .method-cell {
  text-align: left;
  color: #0f172a;
}

.results-table .task-cell {
  background: #e0f2fe !important;
  color: #075985;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.results-table .ours-row td {
  background: #ecfeff !important;
  font-weight: 900;
}

.results-table td.best {
  background: #dcfce7 !important;
  color: #166534;
  font-weight: 950;
}

.results-table td.second {
  background: #dbeafe !important;
  color: #1d4ed8;
  font-weight: 900;
}

.results-table td.third {
  background: #fef3c7 !important;
  color: #92400e;
  font-weight: 900;
}

.results-table .ours-row td.best,
.results-table .ours-row td.second,
.results-table .ours-row td.third {
  box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.25);
}

.table-note {
  margin: 14px 4px 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 820px) {
  .results-table-card {
    padding: 18px;
  }

  .table-card-header {
    flex-direction: column;
  }

  .rank-legend {
    justify-content: flex-start;
    min-width: 0;
  }
}


/* Table contrast and I2T/T2I divider */
.results-table-card {
  background: linear-gradient(180deg, #ffffff, #eef6ff);
  border: 1px solid #cbd5e1;
}

.table-scroll {
  border: 1px solid #cbd5e1;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.04);
}

.results-table th {
  background: #07111f !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
}

.results-table .bits-head th {
  background: #0f2745 !important;
  color: #dbeafe !important;
  border-color: #334155 !important;
}

.results-table td {
  border-color: #cbd5e1 !important;
}

.results-table tr:nth-child(odd) td {
  background: #ffffff;
}

.results-table tr:nth-child(even) td {
  background: #eef4fb;
}

.results-table .task-cell {
  background: #bae6fd !important;
  color: #075985 !important;
  font-weight: 950 !important;
}

.results-table .method-cell {
  color: #020617;
}

.results-table .source-cell {
  color: #334155;
}

.results-table .ours-row td {
  background: #dffafe !important;
  color: #083344;
}

.results-table td.best {
  background: #bbf7d0 !important;
  color: #14532d !important;
  font-weight: 950 !important;
}

.results-table td.second {
  background: #bfdbfe !important;
  color: #1e3a8a !important;
  font-weight: 950 !important;
}

.results-table td.third {
  background: #fde68a !important;
  color: #78350f !important;
  font-weight: 950 !important;
}

.results-table tr.task-divider td {
  border-top: 6px solid #0f172a !important;
}

.results-table tr.task-divider .task-cell {
  border-top: 6px solid #0f172a !important;
}

.results-table tr.task-divider td::before {
  content: "";
}



.table-note {
  color: #475569;
}


/* Clean I2T / T2I divider without floating label */
.results-table tr.task-divider td {
  border-top: 8px solid #020617 !important;
}

.results-table tr.task-divider .task-cell {
  border-top: 8px solid #020617 !important;
}

.results-table tr.task-divider .method-cell::before {
  content: none !important;
  display: none !important;
}


/* Efficiency hero cards without circular widgets */
.impact-main-card {
  min-height: 230px;
}

.impact-main-card p {
  max-width: 100%;
}
