@charset "UTF-8";

:root {
  --paper: #f8f9f5;
  --ink: #1b302e;
  --muted: #52635c;
  --blue: #216557;
  --accent: #bd502f;
  --line: #dce3dc;
  --soft: #eaf2eb;
  --white: #fff;
  --serif: Georgia, 'Times New Roman', serif;
  --shadow: 0 12px 35px #183c2b06;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-underline-offset: 4px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
a, button { transition: color .18s, border-color .18s, background .18s, box-shadow .18s; }
:focus-visible { outline: 3px solid #c46a36; outline-offset: 4px; }
::selection { background: #d4e8d8; color: #183e32; }
img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1.2rem; }
h1, h2, h3 { line-height: 1.15; margin: 0; }
h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.1rem, 4vw, 3.25rem); letter-spacing: -1.5px; }
h3 { font-size: 1.15rem; }
strong { font-weight: 650; }
sup { font-size: .65em; line-height: 0; vertical-align: super; }
.wrap { max-width: 1240px; margin: auto; padding: 0 40px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: fixed; top: -100px; left: 16px; background: white; padding: 12px; z-index: 10; }
.skip:focus { top: 10px; }
.topbar { position: sticky; top: 0; z-index: 5; background: #f8f9f5ed; backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { font-size: 25px; font-weight: 800; letter-spacing: -1.1px; text-decoration: none; color: var(--ink); }
.wordmark span:first-child { color: var(--blue); }
.wordmark span:last-child { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 17px; font-weight: 600; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: var(--blue); }
.nav-links .nav-code { padding: 7px 14px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: white; }

/* A quiet, typographic cover, followed by the four-step method. */
.hero { padding: 68px 0 36px; position: relative; text-align: center; }
.hero::before {
  content: ''; position: absolute; inset: 0 -40px auto; height: 390px; z-index: -1;
  background: radial-gradient(ellipse at 50% 35%, #e3eddb88, transparent 68%), repeating-linear-gradient(90deg, transparent 0 95px, #1b302e04 95px 96px);
  mask-image: linear-gradient(#000, transparent);
}
.hero-kicker { display: flex; align-items: center; justify-content: center; gap: 16px; }
.venue { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid #c7d9c7; border-radius: 30px; background: #eaf2e9; font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--blue); font-weight: 750; }
.venue::before { content: ''; width: 6px; height: 6px; background: var(--blue); border-radius: 50%; }
.hero-note { font-size: 15px; color: var(--muted); letter-spacing: .3px; }
.hero h1 { font-size: clamp(76px, 10vw, 128px); letter-spacing: -7px; font-weight: 800; margin-top: 25px; line-height: 1.03; }
.hero h1 span { color: var(--blue); }
.subtitle { font-family: var(--serif); font-size: clamp(25px, 3.3vw, 39px); line-height: 1.25; letter-spacing: -.8px; margin: 19px auto 29px; }
.author-block { max-width: 970px; margin: auto; }
.authors { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 24px; font-size: 20px; font-weight: 600; margin-bottom: 11px; }
.authors span { white-space: nowrap; }
.authors sup { margin-left: 3px; color: var(--blue); }
.affiliations { display: flex; justify-content: center; flex-wrap: wrap; column-gap: 20px; row-gap: 6px; font-size: 16px; color: var(--muted); max-width: 1000px; margin: 0 auto 16px; }
.affiliations sup { color: var(--blue); font-weight: 700; }
.author-notes { display: grid; gap: 6px; font-size: 14px; color: var(--muted); margin-bottom: 0; }
.author-notes a { color: inherit; text-decoration: none; white-space: nowrap; }
.author-notes a:hover { text-decoration: underline; }
.buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; padding: 11px 19px; border: 1px solid #d5dfd5; border-radius: 8px; text-decoration: none; color: var(--ink); background: white; font-size: 16px; font-weight: 650; }
.button.primary { background: var(--blue); border-color: var(--blue); color: white; box-shadow: 0 5px 14px #2165571a; }
.button:hover { border-color: var(--blue); box-shadow: 0 4px 14px #183c2b10; }
.button.primary:hover { background: #174c41; }
.hero-route { margin-top: 42px; border: 1px solid #d9e2d6; border-radius: 14px; background: #fffaf2; display: grid; grid-template-columns: 1fr 20px 1fr 20px 1fr 20px 1fr; align-items: center; padding: 24px 30px; text-align: left; box-shadow: var(--shadow); }
.hero-route > div { min-width: 0; display: flex; flex-direction: column; }
.route-index { font: 13px ui-monospace, Consolas, monospace; letter-spacing: 1.2px; color: var(--accent); margin-bottom: 10px; }
.hero-route strong { font-size: 19px; font-weight: 650; }
.hero-route div > span:last-child { font-size: 15px; color: var(--muted); margin-top: 3px; }
.route-arrow { color: #9baf9e; text-align: center; margin-left: -16px; }
.intro-strip { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; text-align: left; padding: 29px 8px 0; }
.intro-strip p { margin: 0; }
.lead { font-size: 24px; font-family: var(--serif); line-height: 1.4; letter-spacing: -.4px; }
.lead em { color: var(--blue); }
.small { font-size: 17px; color: var(--muted); }
.news { display: flex; gap: 24px; background: #edf2e9; padding: 12px 20px; border-radius: 8px; font-size: 16px; align-items: center; }
.news time { font: 15px ui-monospace, Consolas, monospace; color: var(--blue); white-space: nowrap; }
.news p { margin: 0; }

/* Shared research sections. */
.section { padding-top: 95px; padding-bottom: 8px; }
.section-heading { display: grid; grid-template-columns: 1.1fr 1fr; gap: 65px; align-items: end; margin-bottom: 34px; }
.section-heading p { color: var(--muted); font-size: 18px; margin: 0; max-width: 480px; }
.eyebrow { font-size: 14px; text-transform: uppercase; letter-spacing: 2px; font-weight: 750; color: var(--blue); margin-bottom: 15px; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: white; margin: 30px 0; box-shadow: var(--shadow); }
.metric { padding: 21px 25px; border-right: 1px solid var(--line); }
.metric:last-child { border: 0; }
.metric b { display: block; font-size: 40px; font-weight: 550; letter-spacing: -1.9px; line-height: 1.3; color: var(--blue); }
.metric span { font-size: 15px; color: var(--muted); }
.protocol { display: grid; grid-template-columns: 1fr 1.1fr; gap: 45px; padding: 35px; background: #153e35; color: white; border-radius: 14px; position: relative; }
.protocol h3 { font-family: var(--serif); font-size: 30px; font-weight: 400; margin: 9px 0 16px; }
.protocol .eyebrow { color: #b7d8b0; }
.protocol p { color: #cbded1; font-size: 17px; }
.domains { display: flex; flex-wrap: wrap; gap: 7px; }
.domains span { border: 1px solid #5c7f68; padding: 4px 10px; border-radius: 5px; font-size: 14px; color: #e6efdf; }
.prompt-pair { display: grid; gap: 11px; align-content: center; }
.prompt { border: 1px solid #668376; background: #ffffff06; border-radius: 8px; padding: 16px 20px; font-size: 17px; font-family: var(--serif); line-height: 1.65; }
.prompt small { display: block; font: 13px 'Segoe UI', sans-serif; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 9px; color: #c4dcca; }
.prompt mark { background: #d1e9b5; color: #243e25; padding: 1px 5px; border-radius: 3px; }
.prompt.corrupt mark { background: #f7c7ad; color: #62321c; }
.protocol .pair-note { font-size: 14px; margin: 0; }
.design-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 24px 0 32px; }
.design-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.design-card .number { font: 14px ui-monospace, Consolas, monospace; color: var(--accent); letter-spacing: 1px; }
.design-card h3 { margin: 13px 0; font-size: 18px; }
.design-card p { font-size: 16px; color: var(--muted); margin-bottom: 15px; }
.design-card small { font-size: 14px; color: var(--blue); }

/* Matrix: rows retain their paper references in every filter view. */
.matrix-panel { background: white; border: 1px solid var(--line); border-radius: 14px; margin: 0 0 23px; box-shadow: var(--shadow); scroll-margin-top: 20px; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 26px 26px 0; }
.panel-heading .eyebrow { margin-bottom: 9px; }
.panel-heading h3 { font-size: 23px; letter-spacing: -.6px; }
.panel-tag { font: 14px ui-monospace, Consolas, monospace; border: 1px solid var(--line); background: var(--paper); border-radius: 25px; padding: 6px 11px; white-space: nowrap; color: var(--muted); }
.panel-intro { color: var(--muted); font-size: 16px; margin: 11px 26px 20px; }
.matrix-controls { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 26px 19px; }
.matrix-controls button { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 6px; background: white; color: var(--muted); padding: 8px 12px; font-size: 15px; }
.matrix-controls button span { font-size: 13px; opacity: .8; }
.matrix-controls button[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: white; }
.matrix-controls button:hover { border-color: var(--blue); }
.table-scroll { overflow: auto; min-width: 0; max-width: 100%; }
table { border-collapse: collapse; width: 100%; font-size: 16px; font-variant-numeric: tabular-nums; }
th, td { text-align: right; border-bottom: 1px solid var(--line); padding: 11px 12px; white-space: nowrap; }
th:first-child { text-align: left; }
thead th { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 650; }
tbody th { font-weight: 500; }
.matrix-table { table-layout: fixed; min-width: 960px; }
.matrix-table th, .matrix-table td { text-align: left; white-space: normal; vertical-align: top; padding: 19px 22px; line-height: 1.65; }
.matrix-table thead { background: #f2f5ef; border-top: 1px solid var(--line); }
.matrix-table thead th { padding-top: 11px; padding-bottom: 11px; font-size: 13px; }
.matrix-table th:first-child { width: 23%; padding-left: 26px; }
.matrix-table th:nth-child(2) { width: 27%; }
.matrix-table th:nth-child(3) { width: 27%; }
.matrix-table td { font-size: 16px; color: var(--muted); }
.matrix-table td strong { color: var(--ink); font-size: 15px; }
.matrix-table tbody th strong { display: block; font-size: 17px; }
.matrix-table tbody tr:hover { background: #f9fbf7; }
.study-label { display: block; font: 13px ui-monospace, Consolas, monospace; letter-spacing: .5px; color: var(--blue); margin-bottom: 6px; }
.study-label.extended { color: #855325; }
.study-label.control { color: #65538a; }
.matrix-source { display: block; font-size: 14px; color: var(--muted); margin-top: 6px; }
.matrix-scroll-hint { display: none; }
.matrix-model-link { font-size: 14px; display: inline-block; margin-top: 6px; text-decoration: none; }
.matrix-model-link:hover { text-decoration: underline; }
.matrix-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px 15px; padding: 12px 26px; font-size: 14px; color: var(--muted); background: #fafbf8; border-radius: 0 0 14px 14px; }

/* Searchable model directory: all entries are present in the HTML. */
.catalog-shell { background: #eef2ea; border: 1px solid #dce3d7; border-radius: 16px; padding: 25px; }
.catalog-toolbar { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) auto; gap: 15px; align-items: end; }
.catalog-toolbar label > span { display: block; font-size: 14px; font-weight: 650; letter-spacing: .3px; margin-bottom: 6px; }
.catalog-toolbar input, .catalog-toolbar select { height: 50px; width: 100%; border: 1px solid #cfd9cc; background: white; padding: 10px 12px; border-radius: 7px; color: var(--ink); font-size: 16px; }
.catalog-toolbar input::placeholder { color: #6b7b71; }
.reset-button { height: 50px; background: transparent; font-size: 15px; }
.catalog-meta { display: flex; justify-content: space-between; gap: 10px; margin: 22px 1px 15px; font-size: 14px; color: var(--muted); }
.catalog-meta p { margin: 0; font-weight: 600; color: var(--blue); }
.model-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.model-card { min-width: 0; padding: 21px 19px 16px; background: white; border: 1px solid #dce3d7; border-radius: 10px; display: flex; flex-direction: column; transition: border-color .2s, box-shadow .2s; }
.model-card:hover { border-color: #98b89f; box-shadow: 0 7px 22px #1a44380a; }
.model-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.model-category { color: #34603e; background: #eff4e8; border-radius: 4px; padding: 3px 7px; font-size: 13px; font-weight: 650; }
.model-category.preference, .model-category.merge { color: #955236; background: #fcf0e6; }
.model-category.prune, .model-category.quant { color: #3b668b; background: #eef3f9; }
.model-category.distill, .model-category.moe { color: #735293; background: #f4f0f9; }
.model-category.control { color: #606662; background: #f0f2f0; }
.model-symbol { font-size: 16px; color: #819487; }
.model-card h3 { font-size: 18px; line-height: 1.45; letter-spacing: -.1px; overflow-wrap: anywhere; }
.model-kind { color: var(--muted); font-size: 14px; margin: 5px 0 17px; }
.model-reference { color: #3e534a; font-size: 15px; line-height: 1.5; margin: auto 0 17px; overflow-wrap: anywhere; }
.model-reference > span { display: block; color: #67776f; font-size: 13px; margin-bottom: 5px; }
.model-card-foot { border-top: 1px solid #e8ece5; padding-top: 11px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 5px; font-size: 13px; color: var(--muted); }
.model-card-foot a { font-weight: 650; text-decoration: none; }
.model-card-foot a:hover { text-decoration: underline; }
.model-paper { color: #68786e; }
.catalog-more { display: flex; justify-content: center; margin-top: 22px; }
.catalog-note { color: var(--muted); font-size: 15px; margin: 18px 0 0; line-height: 1.7; }
.empty-state { text-align: center; background: #ffffff90; border: 1px dashed #b8cab7; padding: 55px 20px; border-radius: 10px; }
.empty-state h3 { font-size: 19px; margin-bottom: 10px; }
.empty-state p { font-size: 17px; color: var(--muted); margin: 0; }

.figure { margin: 0; background: white; border: 1px solid var(--line); padding: 22px; border-radius: 12px; box-shadow: var(--shadow); }
.figure img { width: 100%; }
.figure figcaption { font-size: 15px; color: var(--muted); padding-top: 18px; line-height: 1.7; }
.method-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; margin: 25px 0 0; }
.method-steps > div { border-left: 2px solid #c4d7bd; padding-left: 15px; }
.method-steps p { font-size: 16px; color: var(--muted); margin: 9px 0 0; }
.method-steps h3 { font-size: 17px; }
.tabs { display: flex; border-bottom: 1px solid var(--line); gap: 4px; margin-top: 28px; }
.tabs button { border: 1px solid transparent; border-bottom: 0; border-radius: 8px 8px 0 0; padding: 13px 25px; background: none; color: var(--muted); font-size: 16px; font-weight: 650; }
.tabs button[aria-selected='true'] { border-color: var(--line); background: var(--blue); color: white; }
.experiment { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 35px; padding: 30px; background: white; border: 1px solid var(--line); border-top: 0; border-radius: 0 12px 12px 12px; min-height: 430px; }
.experiment h3 { font: 28px var(--serif); margin-bottom: 16px; }
.experiment p { font-size: 17px; color: var(--muted); }
.experiment .takeaway { border-left: 3px solid #80ab6b; background: #f3f7ef; border-radius: 0 6px 6px 0; padding: 13px 16px; color: var(--ink); margin-top: 24px; }
.source { font-size: 14px !important; color: var(--muted); }
.score { display: block; position: relative; isolation: isolate; min-width: 66px; padding: 3px 4px; }
.score::before { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--score); background: #eff1ef; z-index: -1; border-radius: 3px; }
.score.ours { color: var(--blue); font-weight: 650; }
.score.ours::before { background: #e6f0df; }
.benchmark { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; margin-top: 38px; background: #f0f4ec; border: 1px solid #dbe4d5; border-radius: 14px; padding: 30px; }
.benchmark h3 { font-family: var(--serif); font-weight: 400; font-size: 29px; margin-bottom: 16px; }
.benchmark p { font-size: 16px; color: var(--muted); }
.benchmark .table-scroll { align-self: start; }
.highlight { background: #e0ecda; color: var(--blue); }
.benchmark-note { margin-top: 16px; font-size: 15px !important; }
.ablation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ablation-card { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 26px; min-width: 0; }
.ablation-card h3 { font: 25px var(--serif); margin-bottom: 12px; letter-spacing: -.3px; }
.ablation-card p { font-size: 16px; color: var(--muted); }
.ablation-card table { font-size: 16px; }
.ablation-card th, .ablation-card td { padding: 10px 7px; }
.ablation-card img { width: 100%; margin: 20px 0 10px; }
.ablation-card .source { margin: 14px 0 0; }
.related { color: var(--blue); }
.detail { margin-top: 18px; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 17px 22px; }
.detail summary { cursor: pointer; font-size: 16px; font-weight: 650; }
.detail p { font-size: 17px; color: var(--muted); margin: 15px 0 0; }
.detail figure { margin-top: 20px; }
.reproduce { background: #153e35; color: white; border-radius: 14px; padding: 36px; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 35px; }
.reproduce .eyebrow { color: #b7d8b0; }
.reproduce h2 { font-size: 34px; }
.reproduce p { font-size: 17px; color: #d2e0d1; margin-top: 20px; }
.reproduce a { color: #d6e9b4; font-size: 16px; }
.reproduce pre, .citation pre { min-width: 0; max-width: 100%; overflow: auto; font-size: 15px; line-height: 1.9; border-radius: 9px; padding: 22px; margin: 0; }
.reproduce pre { background: #0d2d25; color: #e4efde; border: 1px solid #3f6656; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.citation-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.citation pre { background: white; border: 1px solid var(--line); }
.status { font-size: 16px; color: var(--blue); min-height: 24px; margin: 8px 0; }
.footer { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding: 24px 0 32px; margin-top: 50px; font-size: 14px; color: var(--muted); }
.footer a { color: var(--muted); }

/* Grid children must shrink so wide tables scroll inside their panels. */
.section-heading > *, .intro-strip > *, .protocol > *, .experiment > *, .benchmark > *, .reproduce > * { min-width: 0; }
@media (max-width: 1000px) {
  .wrap { padding: 0 28px; }
  .hero::before { inset-inline: -28px; }
  .nav-links { gap: 23px; }
  .hero-route { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 30px; padding: 26px; }
  .route-arrow { display: none; }
  .hero-route strong { font-size: 17px; }
  .hero-route div > span:last-child { font-size: 14px; }
  .intro-strip, .section-heading { gap: 35px; }
  .experiment { grid-template-columns: 1fr; gap: 12px; }
  .experiment tbody th { white-space: normal; }
  .benchmark { gap: 28px; padding: 24px; }
  .metric { padding: 20px; }
  .metric b { font-size: 34px; }
  .protocol { gap: 25px; padding: 27px; }
  .design-card { padding: 20px; }
  .model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reproduce { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 85px; }
  .wrap { padding: 0 20px; }
  .nav { min-height: 64px; gap: 18px; }
  .wordmark { font-size: 22px; }
  .nav-links { gap: 18px; font-size: 15px; }
  .nav-links .optional { display: none; }
  .hero { padding-top: 42px; padding-bottom: 26px; }
  .hero::before { inset-inline: -20px; }
  .hero-note { font-size: 14px; }
  .hero-kicker { gap: 12px; }
  .venue { font-size: 13px; }
  .hero h1 { letter-spacing: -5px; }
  .subtitle { font-size: 28px; margin-bottom: 23px; }
  .authors { gap: 6px 17px; font-size: 16px; }
  .affiliations { font-size: 14px; column-gap: 12px; }
  .author-notes { font-size: 13px; }
  .hero-route { grid-template-columns: 1fr 1fr; gap: 24px 20px; padding: 23px; margin-top: 30px; }
  .route-arrow { display: none; }
  .hero-route strong { font-size: 19px; }
  .route-index { margin-bottom: 7px; }
  .intro-strip, .section-heading, .protocol, .benchmark, .ablation-grid { grid-template-columns: 1fr; gap: 24px; }
  .intro-strip { padding-top: 23px; gap: 14px; }
  .intro-strip .lead br { display: none; }
  .lead { font-size: 24px; }
  .news { gap: 14px; align-items: flex-start; padding: 14px 16px; font-size: 15px; }
  .news time { font-size: 14px; line-height: 1.9; }
  .section { padding-top: 64px; }
  .section-heading { margin-bottom: 25px; gap: 17px; }
  .section-heading p { font-size: 17px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 24px 0; }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .metric b { font-size: 36px; }
  .protocol { padding: 25px; }
  .design-grid, .method-steps { grid-template-columns: 1fr; gap: 14px; }
  .design-card { padding: 23px; }
  .design-card p { margin-bottom: 9px; }
  .panel-heading { padding: 23px 20px 0; align-items: start; }
  .panel-heading h3 { font-size: 21px; }
  .panel-tag { display: none; }
  .panel-intro { margin-inline: 20px; }
  .matrix-controls { padding-inline: 20px; }
  .matrix-controls button { padding: 8px 10px; font-size: 14px; }
  .matrix-scroll-hint { display: block; font-size: 14px; color: var(--muted); margin: -5px 20px 14px; }
  .matrix-foot { padding-inline: 20px; }
  .catalog-shell { padding: 18px; }
  .catalog-toolbar { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .catalog-toolbar .search-field { grid-column: 1 / -1; }
  .reset-button { padding-inline: 11px; }
  .catalog-meta { flex-direction: column; gap: 4px; }
  .model-card { padding: 19px 17px 15px; }
  .model-card h3 { font-size: 17px; }
  .model-symbol { display: none; }
  .tabs { gap: 2px; }
  .tabs button { padding: 12px 16px; font-size: 15px; flex: 1; }
  .experiment { padding: 24px 18px; }
  .experiment table { font-size: 15px; }
  .experiment th, .experiment td { padding: 9px 5px; }
  .score { min-width: 54px; }
  .figure { padding: 14px; }
  .benchmark { padding: 24px; }
  .ablation-card { padding: 23px; }
  .detail { padding: 18px; }
  .reproduce { padding: 25px; }
  .reproduce pre, .citation pre { padding: 17px; font-size: 14px; }
  .footer { flex-direction: column; gap: 10px; margin-top: 35px; }
  .citation-top { flex-wrap: wrap; }
  .citation-top .button { padding: 9px 12px; white-space: nowrap; }
}
@media (max-width: 440px) {
  .wrap { padding-inline: 16px; }
  .hero::before { inset-inline: -16px; }
  .nav-links { gap: 13px; font-size: 14px; }
  html { scroll-padding-top: 120px; }
  .nav { flex-wrap: wrap; justify-content: center; gap: 6px; padding-top: 10px; padding-bottom: 10px; }
  .nav .wordmark { width: 100%; text-align: center; }
  .nav-links { justify-content: center; gap: 22px; }
  .hero-note { display: none; }
  .subtitle { font-size: 25px; }
  .button { gap: 12px; padding: 11px 14px; font-size: 15px; }
  .model-grid { grid-template-columns: 1fr; }
  .model-card h3 { font-size: 18px; }
  .model-card-top { margin-bottom: 12px; }
  .model-symbol { display: inline; }
  .metric { padding: 18px; }
  .metric span { font-size: 14px; }
  .protocol { padding: 22px; }
  .prompt { padding: 15px; font-size: 16px; }
  .hero-route { grid-template-columns: 1fr; gap: 22px; }
  .matrix-controls { gap: 6px; }
  .matrix-controls button { flex: 1 1 40%; justify-content: space-between; }
  .catalog-toolbar select { font-size: 16px; padding-left: 8px; }
  .reset-button { font-size: 14px; padding-inline: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
