/* MAMBO-G project page */

:root {
  --bg: #f8faf8;
  --bg-soft: #eef4ef;
  --panel: #ffffff;
  --ink: #111820;
  --ink-soft: #42505f;
  --muted: #6f7e89;
  --line: #dbe5df;
  --line-strong: #b8c9be;
  --accent: #0b8f6f;
  --accent-2: #f0a43a;
  --accent-3: #2f5fb8;
  --accent-soft: #e0f4ec;
  --dark: #0d1218;
  --dark-soft: #151d25;
  --max: 1120px;
  --radius: 8px;
  --shadow: 0 20px 60px rgba(16, 32, 25, 0.12);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover { color: var(--accent-2); }

img {
  display: block;
  max-width: 100%;
  height: auto;
}

svg { display: block; }

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(30px, 4vw, 44px);
  text-align: center;
}

h3 { font-size: 20px; }

section {
  padding: 70px 0;
  border-top: 1px solid var(--line);
}

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

.section-kicker,
.block-kicker {
  margin: 0 auto 12px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.section-sub {
  max-width: 780px;
  margin: 12px auto 36px;
  color: var(--ink-soft);
  text-align: center;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(248, 250, 248, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
}

.topbar-inner {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: var(--ink);
  font-weight: 800;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.brand .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.brand-mark {
  width: 8px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 4px rgba(11, 143, 111, 0.12);
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
}

.topbar nav a {
  color: var(--ink-soft);
  font-weight: 600;
}

.topbar nav a:hover { color: var(--ink); }

.team-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 6px;
  border-radius: 999px;
  background: #0f1424;
  color: white;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid #1f253b;
  transition: transform 0.15s ease;
}

.team-chip:hover {
  transform: translateY(-1px);
  color: white;
}

.team-chip img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

.hero {
  padding: 82px 0 58px;
  border-top: 0;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(248, 250, 248, 0)),
    radial-gradient(850px 420px at 18% 0%, rgba(11, 143, 111, 0.15), transparent 65%),
    radial-gradient(820px 420px at 86% 8%, rgba(240, 164, 58, 0.16), transparent 62%);
}

.venue {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 7px 13px;
  border: 1px solid #bdded1;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.hero h1 {
  max-width: 1060px;
  margin: 0 auto;
  font-size: clamp(42px, 7.4vw, 82px);
  font-weight: 850;
  line-height: 0.98;
}

.hero h1 span {
  color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
}

.tagline {
  max-width: 790px;
  margin: 24px auto 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 2.3vw, 23px);
  line-height: 1.38;
  font-weight: 600;
}

.hero-claim {
  max-width: 860px;
  margin: 26px auto 0;
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.18;
  font-weight: 820;
}

.hero-claim p:nth-child(2) { color: var(--ink-soft); }
.hero-claim p:nth-child(3) { color: var(--accent); }

.authors {
  max-width: 900px;
  margin: 28px auto 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.authors sup {
  color: var(--accent);
  font-weight: 800;
}

.affiliations {
  max-width: 860px;
  margin: 8px auto 0;
  color: var(--muted);
  font-size: 13.5px;
}

.hero-proof {
  max-width: 860px;
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.hero-proof div {
  min-width: 0;
  padding: 13px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 1px 2px rgba(15, 22, 20, 0.05);
}

.hero-proof strong {
  display: block;
  color: var(--accent);
  font-size: 25px;
  line-height: 1;
  font-weight: 850;
}

.hero-proof span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
}

.presented-by {
  width: fit-content;
  margin: 22px auto 0;
  padding: 6px 14px 6px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(15, 22, 20, 0.05);
}

.presented-by .pb-logo {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #0f1424;
  overflow: hidden;
}

.presented-by .pb-logo img {
  width: 14px;
  height: 14px;
  filter: brightness(0) invert(1);
}

.presented-by strong {
  color: var(--ink);
}

.cta-row {
  margin: 28px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 1px 2px rgba(15, 22, 20, 0.05);
}

.btn:hover {
  color: var(--ink);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.btn.primary {
  color: #fff;
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.badges {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.data-badge {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 9px;
  border: 1px solid rgba(11, 143, 111, 0.22);
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(11, 143, 111, 0.12), rgba(240, 164, 58, 0.12));
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.25;
}

.data-badge strong {
  color: var(--accent);
  font-weight: 800;
}

.badges a.data-badge {
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.badges a.data-badge:hover {
  transform: translateY(-1px);
  border-color: rgba(11, 143, 111, 0.42);
  color: var(--ink-soft);
}

.usage-card {
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  text-align: left;
}

.usage-copy {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.usage-kicker {
  margin-bottom: 10px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.usage-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 34px);
  text-align: left;
}

.usage-quality {
  margin: 2px 0 12px;
  padding: 10px 12px;
  display: grid;
  gap: 2px;
  border: 1px solid rgba(11, 143, 111, 0.24);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(11, 143, 111, 0.12), rgba(240, 164, 58, 0.10));
}

.usage-quality strong {
  color: var(--accent);
  font-size: 20px;
  line-height: 1.05;
  font-weight: 850;
}

.usage-quality span {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
}

.usage-copy p:last-child {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
}

.usage-copy code {
  padding: 2px 5px;
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.92em;
  font-weight: 700;
}

.usage-punch {
  margin-top: 6px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.usage-punch div {
  min-width: 0;
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  text-align: center;
}

.usage-punch strong {
  display: block;
  color: var(--accent);
  font-size: 26px;
  line-height: 1;
  font-weight: 850;
}

.usage-punch span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.usage-support {
  margin-top: 12px;
  padding: 11px 12px;
  display: grid;
  gap: 4px;
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  background: rgba(224, 244, 236, 0.68);
}

.usage-support strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.usage-support span {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.45;
}

.usage-code {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  border-radius: var(--radius);
  background: #0d1218;
  color: #eef8f2;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.55;
}

.usage-code-stack {
  display: grid;
  gap: 12px;
}

.code-mini {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7fbf8;
  overflow: hidden;
}

.code-head {
  min-height: 39px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--accent);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.copy-code {
  min-height: 24px;
  padding: 4px 9px;
  border: 1px solid rgba(11, 143, 111, 0.28);
  border-radius: 5px;
  background: white;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
}

.copy-code:hover,
.copy-code.is-copied {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.usage-code.compact {
  border-radius: 0;
}

.code-details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  overflow: hidden;
}

.code-details summary {
  cursor: pointer;
  padding: 12px 14px;
  color: var(--ink);
  font-weight: 800;
  list-style-position: inside;
}

.code-details summary:hover {
  color: var(--accent);
}

.code-details .usage-code {
  border-top: 1px solid var(--line);
  border-radius: 0;
  max-height: 520px;
}

.hero-stats,
.metric-strip {
  margin: 32px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: left;
}

.hero-stats div,
.metric-strip div {
  padding: 18px;
  border-left: 1px solid var(--line);
}

.hero-stats div:first-child,
.metric-strip div:first-child {
  border-left: 0;
}

.hero-stats strong,
.metric-strip strong {
  display: block;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.1;
  font-weight: 850;
}

.hero-stats span,
.metric-strip span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
}

.teaser-board {
  margin-top: 42px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

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

.teaser-label,
.res-label,
.row-label {
  padding: 7px 8px;
  border-radius: 6px;
  background: var(--bg-soft);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.teaser-label.highlight,
.row-label.good {
  background: var(--accent-soft);
  color: var(--accent);
}

.teaser-grid img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.caption,
figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.caption strong { color: var(--ink); }

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

.text-panel,
.method-card,
.release-card,
figure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 12px 34px rgba(22, 37, 31, 0.07);
}

.text-panel,
.method-card,
.release-card {
  padding: 22px;
}

.text-panel h3,
.method-card h3,
.release-card h3 {
  margin-bottom: 10px;
}

.text-panel p,
.method-card p,
.release-card p {
  color: var(--ink-soft);
}

.formula-panel {
  background:
    linear-gradient(135deg, rgba(11, 143, 111, 0.09), rgba(240, 164, 58, 0.08)),
    var(--panel);
}

.ratio-formula {
  margin: 10px 0 14px;
  min-height: 82px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent),
    #0d1218;
  color: #f3fff8;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.2;
}

.ratio-formula .lhs,
.ratio-formula .equals {
  font-weight: 650;
}

.ratio-formula .fraction {
  min-width: 210px;
  display: inline-grid;
  grid-template-rows: auto auto;
  gap: 5px;
  text-align: center;
}

.ratio-formula .numerator {
  padding-bottom: 6px;
  border-bottom: 1.5px solid rgba(243, 255, 248, 0.82);
}

.ratio-formula .denominator {
  color: #bfe6d7;
}

.ratio-formula sub {
  font-size: 0.58em;
  line-height: 0;
}

.ratio-formula span {
  white-space: nowrap;
}

.ratio-formula {
  overflow-x: auto;
}

.dark-band {
  color: #eef8f2;
  background:
    radial-gradient(900px 460px at 18% 0%, rgba(11, 143, 111, 0.28), transparent 62%),
    radial-gradient(780px 420px at 86% 10%, rgba(240, 164, 58, 0.20), transparent 60%),
    var(--dark);
}

.dark-band h2,
.dark-band h3,
.dark-band .section-sub {
  color: #eef8f2;
}

.dark-band .section-sub,
.dark-band .method-card p,
.dark-band .equation-band p {
  color: #b9c7c6;
}

.dark-band .section-kicker,
.dark-band .block-kicker {
  color: #5fe0b0;
}

.method-card {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.step {
  display: inline-flex;
  margin-bottom: 14px;
  color: #5fe0b0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 900;
}

.equation-band {
  margin-top: 20px;
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 22px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
}

.equation-band span {
  display: block;
  margin-bottom: 8px;
  color: #9bdabe;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.equation-band strong {
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 650;
}

.equation-band code {
  color: #fff;
  font-family: var(--mono);
}

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

figure {
  padding: 14px;
}

figure img {
  width: 100%;
  border-radius: 6px;
  background: #fff;
}

.result-block + .result-block {
  margin-top: 54px;
}

.block-heading {
  max-width: 780px;
  margin: 0 auto 22px;
  text-align: center;
}

.block-heading h3 {
  font-size: clamp(24px, 3vw, 32px);
}

.film-pair {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.film-pair figure {
  overflow-x: auto;
}

.film-pair img {
  min-width: 920px;
}

.resolution-grid {
  display: grid;
  grid-template-columns: 86px repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 34px rgba(22, 37, 31, 0.07);
  overflow-x: auto;
}

.resolution-grid img {
  min-width: 120px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.row-label {
  height: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-table-wrap {
  margin-top: 18px;
  overflow-x: auto;
}

.mini-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  font-size: 14px;
}

.mini-table th,
.mini-table td {
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.mini-table th {
  color: var(--ink);
  background: var(--bg-soft);
  font-weight: 800;
}

.mini-table td {
  color: var(--ink-soft);
}

.mini-table tr:last-child td { border-bottom: 0; }
.mini-table strong { color: var(--accent); }
.mini-table.compact td { padding: 9px 10px; }

.soft-band {
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
}

.release-card a {
  display: inline-flex;
  margin-top: 16px;
  font-weight: 800;
}

.paired-charts {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.paired-charts img {
  border: 1px solid var(--line);
  border-radius: 6px;
}

.bibtex {
  max-width: 960px;
  margin: 24px auto 0;
  padding: 20px;
  overflow-x: auto;
  border: 1px solid #27313a;
  border-radius: var(--radius);
  background: #0d1218;
  color: #eef8f2;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
}

.claim-strip {
  max-width: 920px;
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: white;
}

.claim-strip div {
  padding: 18px 18px 16px;
  border-right: 1px solid var(--line);
  text-align: center;
}

.claim-strip div:last-child {
  border-right: 0;
}

.claim-strip span {
  display: block;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 800;
}

.claim-strip em {
  display: block;
  margin-top: 5px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  line-height: 1.2;
}

.news-section {
  background: #fbfcfb;
}

.authors-panel {
  margin: 28px auto 0;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 34px rgba(22, 37, 31, 0.07);
  text-align: center;
}

.authors-panel h2 {
  font-size: clamp(26px, 3vw, 34px);
}

.news-list {
  max-width: 720px;
  margin: 28px auto 0;
  padding: 0;
  list-style: none;
  border-left: 2px solid var(--line);
}

.news-list li {
  position: relative;
  padding: 8px 0 18px 22px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
}

.news-list li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 14px;
  width: 12px;
  height: 12px;
  border: 2.5px solid var(--accent);
  border-radius: 50%;
  background: white;
}

.news-list li:first-child::before {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 4px rgba(11, 143, 111, 0.15);
}

.news-list .date {
  display: inline-block;
  margin-right: 10px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.news-list strong {
  color: var(--ink);
}

.news-list a {
  color: var(--accent);
  font-weight: 800;
}

.news-list code {
  padding: 2px 5px;
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.92em;
  font-weight: 700;
}

.news-list .pill-new {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--accent);
  color: white;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  vertical-align: 2px;
}

.author-list {
  max-width: 900px;
  margin: 12px auto 0;
  line-height: 1.7;
}

.authors .star,
.legend .star {
  color: var(--accent);
  font-weight: 800;
}

.authors .dagger,
.legend .dagger {
  color: var(--accent-2);
  font-weight: 800;
}

.affiliations sup {
  color: var(--ink-soft);
  font-weight: 700;
  margin-right: 2px;
}

.legend {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12.5px;
}

.affil-strip {
  max-width: 1040px;
  margin: 20px auto 0;
  padding: 18px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 12px 34px rgba(22, 37, 31, 0.07);
}

.affil-strip-label {
  width: 100%;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.aff-logo {
  width: 118px;
  height: 54px;
  padding: 9px 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.aff-logo:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: 0 1px 2px rgba(15, 22, 20, 0.05);
}

.aff-logo img {
  display: block;
  max-width: 100%;
  width: auto;
  max-height: 100%;
  object-fit: contain;
}

.aff-logo.logo-wide {
  width: 150px;
}

.aff-logo.logo-extra-wide {
  width: 168px;
}

.aff-logo.logo-compact {
  width: 92px;
}

.aff-logo.logo-ink img {
  filter: brightness(0) saturate(100%) invert(17%) sepia(31%) saturate(962%) hue-rotate(184deg) brightness(91%) contrast(92%);
}

.aff-logo.logo-text span {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 650;
  letter-spacing: 0.04em;
}

footer {
  padding: 28px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 900px) {
  .topbar nav { display: none; }

  .hero-stats,
  .hero-proof,
  .metric-strip,
  .usage-card,
  .tldr-grid,
  .method-grid,
  .release-grid,
  .figure-grid,
  .chart-grid,
  .wide-compare,
  .equation-band {
    grid-template-columns: 1fr;
  }

  .claim-strip {
    grid-template-columns: 1fr;
  }

  .claim-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .claim-strip div:last-child {
    border-bottom: 0;
  }

  .hero-stats div,
  .metric-strip div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .hero-stats div:first-child,
  .metric-strip div:first-child {
    border-top: 0;
  }
}

@media (max-width: 680px) {
  body { font-size: 16px; }

  .container {
    width: min(var(--max), calc(100% - 28px));
  }

  section {
    padding: 52px 0;
  }

  .hero {
    padding-top: 58px;
  }

  .hero h1 {
    font-size: clamp(38px, 13vw, 58px);
  }

  .team-chip .text {
    display: none;
  }

  .team-chip {
    padding: 5px;
  }

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

  .data-badge {
    justify-content: center;
    width: 100%;
    max-width: 360px;
    flex-wrap: wrap;
    text-align: center;
  }

  .presented-by {
    max-width: 100%;
    text-align: left;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .usage-punch {
    grid-template-columns: 1fr;
  }

  .affil-strip {
    padding: 18px 12px;
    gap: 10px;
  }

  .aff-logo,
  .aff-logo.logo-wide,
  .aff-logo.logo-extra-wide,
  .aff-logo.logo-compact {
    width: calc(50% - 5px);
    min-width: 132px;
  }

  .cta-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .usage-card {
    padding: 12px;
  }

  .usage-copy {
    padding: 8px 6px 2px;
  }

  .usage-code {
    font-size: 11.5px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }

  .ratio-formula {
    justify-content: flex-start;
    font-size: 20px;
    padding: 14px;
  }

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

  .teaser-label {
    padding: 6px 4px;
    font-size: 10px;
  }

  .resolution-grid {
    grid-template-columns: 72px repeat(4, 132px);
  }
}
