/* ============================================================
   DOVE — Shared Stylesheet
   Design system: restrained academic aesthetic
   Palette: white / neutral gray / charcoal
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Colors */
  --bg:            #ffffff;
  --bg-soft:       #f8f8f8;
  --navy:          #242424;      /* primary text */
  --navy-soft:     #686868;      /* secondary text */
  --teal:          #4f625e;      /* restrained accent */
  --teal-light:    #f1f3f2;
  --border:        #dedede;

  /* Type */
  --font: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Layout */
  --radius:        0;
  --container:     1120px;

  /* Motion */
  --ease:          cubic-bezier(0.22, 0.6, 0.2, 1);
}

/* ---------- 2. Base / reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }   /* smooth anchor scrolling */

body {
  font-family: var(--font);
  color: var(--navy);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 1120; }

/* ---------- 3. Navigation bar ---------- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-brand {
  display: flex; align-items: center; gap: 0;
  font-weight: 700; font-size: 1.08rem; letter-spacing: 0.05em;
}
.brand-mark { display: none; }
.nav-links { display: flex; gap: 22px; }
.nav-links a {
  padding: 21px 0 18px;
  border-bottom: 2px solid transparent;
  font-size: 0.92rem; font-weight: 500; color: var(--navy-soft);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav-links a:hover  { color: var(--navy); }
.nav-links a.active { border-bottom-color: var(--teal); color: var(--navy); font-weight: 600; }

/* Hamburger button (tablet / small screens) */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  width: 22px; height: 2px; background: var(--navy); border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

/* ---------- 4. Hero section ---------- */
.hero {
  padding: 64px 0 70px;
  text-align: center;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.hero-title {
  font-size: clamp(2.6rem, 7vw, 3.8rem);
  font-weight: 700; letter-spacing: 0.08em;
}
.hero-subtitle {
  margin-top: 6px;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 600; color: var(--teal);
}
.hero-tagline {
  margin: 18px auto 0; max-width: 620px;
  font-size: 1.05rem; color: var(--navy-soft);
}
.hero-buttons { margin-top: 28px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- 5. Dove mark ---------- */
.dove-wrap {
  position: relative;
  width: 150px;
  margin: 0 auto 18px;
}
.dove-glow { display: none; }
.dove-svg { position: relative; width: 100%; height: auto; }
.dove-svg #doveBody stop { stop-color: #394149; }
.dove-svg #doveWing stop { stop-color: var(--teal); }
.dove-svg path[fill="#2fa79b"] { fill: var(--teal); }

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-block; min-width: 126px; padding: 10px 20px; border-radius: var(--radius);
  font-weight: 500; font-size: 0.9rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--teal); }
.btn-outline { border: 1px solid var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--bg-soft); }
.release-note {
  margin: 14px auto 0;
  color: var(--navy-soft);
  font-size: 0.82rem;
}

/* ---------- 7. Sections & typography ---------- */
.section       { padding: 72px 0; }
.section-gray  {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-eyebrow {
  display: inline-block; margin-bottom: 10px;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--navy-soft);
}
.section-title { font-size: clamp(1.55rem, 3.4vw, 2rem); font-weight: 600; letter-spacing: -0.01em; }
.section-desc  { margin-top: 12px; max-width: 640px; color: var(--navy-soft); }
.section-head  { margin-bottom: 48px; }
.abstract-text { margin-top: 20px; font-size: 1.08rem; color: var(--navy-soft); }

/* Subpage hero band */
.page-hero {
  padding: 72px 0 56px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.page-title { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.01em; }
.page-desc  { margin-top: 14px; max-width: 680px; color: var(--navy-soft); }

/* ---------- 8. Image placeholders ----------
   Swap any .img-placeholder for a real <img> — layout is identical. */
.img-placeholder {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 4 / 3; width: 100%;
  border-radius: calc(var(--radius) - 4px);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.85rem; font-weight: 600; text-align: center; line-height: 1.4;
}
.img-placeholder.sq { aspect-ratio: 1 / 1; }
.ph-teal    { background: linear-gradient(135deg, #2fa79b, #17605a); }
.ph-navy    { background: linear-gradient(135deg, #2c4a73, #14263f); }
.ph-rose    { background: linear-gradient(135deg, #c98a92, #8f4d59); }
.ph-sand    { background: linear-gradient(135deg, #cbb08a, #8f7350); }
.ph-rainbow { background: linear-gradient(120deg, #e05c5c, #e0b25c, #5cc98a, #5c8ae0, #a15ce0); }
.ph-mask    { background: linear-gradient(135deg, #202634 55%, #2fa79b 55%); }

/* ---------- 9. Dataset gallery (homepage) ---------- */
.gallery {
  display: grid; gap: 12px;
  grid-template-columns: repeat(10, 1fr);
}
.gallery-item {
  padding:0;
  margin:0;
  line-height: 0;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: none; overflow: hidden;
}
.gallery-item .img-placeholder,
.gallery-item img {
  aspect-ratio: 4/3;
  object-fit: cover;  
  vertical-align: middle;
  width:100%;
  height:auto;
  border-radius: 0;
}
/* .gallery-item figcaption {
  padding: 14px 18px; font-size: 0.9rem; font-weight: 600;
  background: #fff; position: relative;                 
} */

/* ---------- 10. Model pipeline (homepage) ---------- */
.pipeline {
  display: flex; align-items: stretch; gap: 18px; flex-wrap: nowrap;
}
.pipe-card {
  flex: 1; min-width: 0;
  background: #fff; border: 0; border-top: 1px solid var(--border);
  box-shadow: none; padding: 18px 0 0;
}
.pipe-card h3 { font-size: 0.98rem; margin: 10px 0 6px; }
.pipe-card p  { font-size: 0.83rem; color: var(--navy-soft); }
.pipe-num {
  width: auto; height: auto; border-radius: 0;
  display: flex; align-items: center; justify-content: center;
  background: transparent; color: var(--navy-soft);
  font-size: 0.8rem; font-weight: 700;
}
.pipe-highlight { border: 1.5px solid var(--teal); background: var(--teal-light); }
.pipe-arrow {
  align-self: center; color: #aaa;
  font-size: 1rem; font-weight: 400; flex: 0 0 auto;
}

/* ---------- 11. Navigation cards (homepage) ---------- */
.nav-cards { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.nav-card {
  display: block; background: #fff; border-radius: var(--radius);
  border: 0; border-top: 1px solid var(--border); box-shadow: none;
  padding: 20px 0 0;
  transition: border-color 0.15s ease;
}
.nav-card:hover { border-color: var(--teal); }
.nav-card-icon { display: none; }
.nav-card h3   { margin: 0 0 8px; font-size: 1.08rem; }
.nav-card p    { font-size: 0.9rem; color: var(--navy-soft); }
.nav-card-link {
  display: inline-block; margin-top: 18px;
  font-size: 0.9rem; font-weight: 600; color: var(--teal);
}

/* ---------- 12. Dataset cards (subpages) ---------- */
.dataset-cards { display: grid; gap: 22px; grid-template-columns: repeat(4, 1fr); }
.ds-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: none; padding: 26px 24px;
}
.ds-card h3 {
  font-size: 1.05rem; padding-bottom: 12px; margin-bottom: 12px;
  border-bottom: 2px solid var(--teal-light);
}
.ds-meta { list-style: none; }
.ds-meta li { font-size: 0.88rem; color: var(--navy-soft); padding: 3px 0; }
.ds-meta strong { color: var(--navy); }

/* ---------- 13. Figure panels ---------- */
.figure-panel {
  max-width: 880px; margin: 0 auto 48px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: none; padding: 24px;
}
.figure-panel figcaption {
  margin-top: 16px; font-size: 0.88rem; color: var(--navy-soft); line-height: 1.6;
}
.figure-row { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; margin-bottom: 48px; }
.figure-row .figure-panel { margin: 0; max-width: none; }

/* Dashed placeholder inside figure panels */
.fig-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; min-height: 320px;
  border: 2px dashed var(--border); border-radius: calc(var(--radius) - 4px);
  background: var(--bg-soft); color: var(--navy-soft);
  font-weight: 600;
}
.fig-placeholder.tall { min-height: 440px; }
.fig-placeholder small { font-weight: 400; font-size: 0.8rem; opacity: 0.7; }

/* ---------- 14. Result tables ---------- */
.table-wrap { max-width: 880px; margin: 0 auto 48px; overflow-x: auto; }
.result-table {
  width: 100%; border-collapse: collapse;
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); box-shadow: none; font-size: 0.92rem;
}
.result-table caption {
  caption-side: top; text-align: left; padding: 0 4px 12px;
  font-size: 0.85rem; color: var(--navy-soft);
}
.result-table th, .result-table td { padding: 13px 18px; text-align: left; }
.result-table thead th {
  background: var(--navy); color: #fff;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em;
}
.result-table tbody tr { border-bottom: 1px solid var(--border); }
.result-table tbody tr:hover { background: var(--bg-soft); }
.row-highlight { background: var(--teal-light) !important; font-weight: 700; }
.row-highlight td:first-child { color: var(--teal); }
.hl { color: var(--teal); font-weight: 700; }

/* ---------- 15. Retrieval + PCA components ---------- */
.retrieval {
  display: flex; align-items: center; gap: 24px;
  max-width: 880px; margin: 0 auto 48px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: none; padding: 28px;
}
.retrieval-query { flex: 0 0 180px; }
.retrieval-arrow { font-size: 1.6rem; color: var(--teal); font-weight: 700; }
.retrieval-results {
  flex: 1; display: grid; gap: 14px;
  grid-template-columns: repeat(4, 1fr);
}
.retrieval-label { margin-top: 10px; font-size: 0.82rem; font-weight: 600; text-align: center; }
.retrieval-label.full { grid-column: 1 / -1; }

.pca-grid { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); max-width: 880px; margin: 0 auto 40px; }
.pca-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: none; padding: 16px;
}
.pca-item figcaption { margin-top: 12px; font-size: 0.85rem; font-weight: 600; text-align: center; }

/* Quote-style interpretation callout */
.callout {
  max-width: 760px; margin: 0 auto 48px;
  border-left: 4px solid var(--teal);
  background: #fff; border-radius: 0;
  box-shadow: none; padding: 26px 30px;
}
.callout p:first-child { font-size: 1.08rem; font-weight: 600; font-style: italic; }
.callout-sub { margin-top: 12px; font-size: 0.92rem; color: var(--navy-soft); }

/* ---------- 16. Content visibility ---------- */
.reveal { opacity: 1; transform: none; }

/* ---------- 17. Footer ---------- */
.footer {
  background: #fff; color: var(--navy);
  border-top: 1px solid var(--border);
  text-align: center; padding: 32px 0;
}
.footer-title { font-weight: 600; letter-spacing: 0.02em; }
.footer-sub   { margin-top: 6px; font-size: 0.88rem; color: var(--navy-soft); }

/* ---------- 18. Responsive (tablet & below) ---------- */
@media (max-width: 960px) {
  .gallery                    { grid-template-columns: repeat(5, 1fr); }
  .nav-cards                  { grid-template-columns: repeat(2, 1fr); }
  .dataset-cards              { grid-template-columns: repeat(2, 1fr); }
  .figure-row                 { grid-template-columns: 1fr; }

  /* Pipeline stacks vertically; arrows rotate to point down */
  .pipeline   { flex-direction: column; }
  .pipe-arrow { transform: rotate(90deg); text-align: center; }

  /* Collapsible mobile menu */
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 12px 24px 18px;
    background: #fff; border-bottom: 1px solid var(--border);
    box-shadow: none;
    display: none;
  }
  .nav-links a { padding: 10px 0; border-bottom: 0; }
  .nav-links a.active { color: var(--teal); }
  .nav-links.open { display: flex; }
}

@media (max-width: 600px) {
  .section { padding: 52px 0; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .nav-cards, .dataset-cards, .pca-grid { grid-template-columns: 1fr; }
  .retrieval { flex-direction: column; }
  .retrieval-arrow { transform: rotate(90deg); }
  .retrieval-results { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 420px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 19. Minimal result-page system ---------- */
.results-page { background: #fff; }
.results-page .container { max-width: 1180px; }
.narrow-wide { max-width: 920px !important; }

.minimal-hero {
  padding: 96px 0 78px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.minimal-hero h1 {
  max-width: 850px;
  font-size: clamp(2.35rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.minimal-hero p {
  max-width: 650px;
  margin-top: 22px;
  color: var(--navy-soft);
  font-size: 1.02rem;
}

.result-section { padding: 92px 0; }
.soft-section { background: #f7f8f8; border-top: 1px solid var(--border); }
.result-section-head {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 42px;
}
.section-no {
  padding-top: 5px;
  color: #9aa6b2;
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: .08em;
}
.result-section-head .section-eyebrow { margin-bottom: 7px; }
.result-section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  font-weight: 600;
  letter-spacing: -.035em;
}

.protocol-band { padding: 22px 0; border-bottom: 1px solid var(--border); background: #fafbfb; }
.protocol-line {
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr) auto;
  align-items: center;
  gap: 28px;
  margin-bottom: 46px;
  padding: 17px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fafbfb;
}
.protocol-band .protocol-line { margin-bottom: 0; border: 0; padding: 0 24px; background: transparent; }
.protocol-line > span {
  color: var(--teal);
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.protocol-line p { color: var(--navy-soft); font-size: .83rem; }
.protocol-line p i { padding: 0 5px; color: #9aa6b2; font-style: normal; }
.protocol-line > div { display: flex; flex-wrap: wrap; gap: 6px; }
.protocol-line b {
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--navy-soft);
  font-size: .67rem;
  font-weight: 600;
}

.editable-card {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--border);
  border-top: 2px solid var(--teal);
  border-radius: var(--radius);
  background: #fff;
}
.editable-card > span,
.segmentation-intro > span,
.retrieval-placeholder header span {
  color: #98a4b0;
  font-size: .67rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.editable-card h3 { margin: 18px 0 16px; font-size: 1.02rem; font-weight: 600; }
.editable-card dl { display: flex; gap: 28px; }
.editable-card dl div { display: grid; gap: 2px; }
.editable-card dt { color: #9aa6b2; font-size: .67rem; text-transform: uppercase; }
.editable-card dd { color: var(--navy); font-size: .86rem; font-weight: 600; }
.editable-card p {
  margin-top: 22px;
  padding-top: 15px;
  border-top: 1px solid var(--border);
  color: #9aa6b2;
  font-size: .78rem;
}

.dataset-result-list { display: grid; }
.dataset-result-row {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 26px;
  padding: 30px 0;
  border-top: 1px solid var(--border);
}
.dataset-result-row:last-child { border-bottom: 1px solid var(--border); }
.dataset-result-row .editable-card { min-height: 0; }
.dataset-result-row .result-slot { min-width: 0; }
.dataset-result-row .slot-canvas { min-height: 280px; }

.minimal-figure-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.result-slot { padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.slot-canvas,
.qualitative-canvas,
.image-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 300px;
  border-radius: var(--radius);
  background-color: #f7f9f9;
  /* background-image:
    linear-gradient(rgba(20,38,63,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,38,63,.035) 1px, transparent 1px); */
  background-size: 24px 24px;
  color: #778492;
  text-align: center;
}
.slot-canvas.compact { min-height: 225px; }
.slot-canvas span,
.qualitative-canvas span,
.image-slot span { font-size: .84rem; font-weight: 600; }
.slot-canvas small,
.qualitative-canvas small,
.image-slot small { color: #a0aab4; font-size: .68rem; }
.result-slot figcaption {
  display: flex;
  gap: 12px;
  padding: 13px 4px 2px;
  color: var(--navy-soft);
  font-size: .72rem;
}
.result-slot figcaption b { color: var(--navy); }

/* Segmentation */
.segmentation-list { padding-top: 88px; }
.segmentation-block {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 42px;
  padding: 46px 0;
  border-top: 1px solid var(--border);
}
.segmentation-block:last-child { border-bottom: 1px solid var(--border); }
.segmentation-intro h3 { margin: 12px 0 10px; font-size: 1.35rem; font-weight: 600; }
.segmentation-intro > p { color: #8d99a5; font-size: .78rem; }
.segmentation-intro dl { margin-top: 22px; }
.segmentation-intro dl div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .7rem; }
.segmentation-intro dt { color: #98a4ae; }
.segmentation-intro dd { font-weight: 600; }
.qualitative-slot { padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.qualitative-labels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-bottom: 10px; }
.qualitative-labels span { color: #8c98a3; font-size: .68rem; text-align: center; }
.qualitative-canvas { 
  /* min-height: 330px; */
  display: grid;
  gap:1px;
  grid-template-columns: repeat(4, 1fr);
  justify-content: center;
  flex-direction: row;
  align-items: start;}
.qualitative-canvas img {
  width:100%;
  height:90%;
}
.qualitative-slot > p { padding: 13px 4px 2px; color: #9aa5af; font-size: .72rem; }

/* Retrieval and PCA */
.retrieval-protocol { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 52px; padding: 18px 22px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.retrieval-protocol div { display: flex; align-items: center; gap: 10px; }
.retrieval-protocol span { color: var(--teal); font-size: .65rem; font-weight: 700; }
.retrieval-protocol b { font-size: .75rem; font-weight: 600; }
.retrieval-protocol i { color: #a3adb6; font-style: normal; }
.retrieval-placeholder-list { display: grid; gap: 18px; }
.retrieval-placeholder { padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); }
.retrieval-placeholder header { display: flex; align-items: baseline; gap: 16px; margin-bottom: 16px; }
.retrieval-placeholder header h3 { font-size: .96rem; font-weight: 600; }
.retrieval-placeholder-grid { display: grid; grid-template-columns: 1fr auto 1fr 1fr 1fr; gap: 12px; align-items: center; }
.retrieval-placeholder-grid > i { color: var(--teal); font-style: normal; }
.image-slot { min-height: 150px; padding: 16px; }
.query-slot { outline: 1px solid var(--teal); outline-offset: -1px; }
.pca-placeholder-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pca-placeholder-grid figure { display:flex; flex-direction:column;padding: 10px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.pca-placeholder-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  background: #f5f7f8
}
.pca-placeholder-grid figcaption {
  margin-top: auto
}
.image-slot.landscape { min-height: auto; aspect-ratio: 4 / 3; }
.pca-placeholder-grid figcaption { padding: 11px 3px 2px; color: var(--navy-soft); font-size: .7rem; }
.caption-slot { display: grid; grid-template-columns: 110px 1fr; gap: 26px; margin-top: 24px; padding: 20px 22px; border-left: 2px solid var(--teal); background: #fff; }
.caption-slot span { color: var(--teal); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.caption-slot p { color: #929da8; font-size: .78rem; }

.minimal-footer { display: flex; align-items: center; justify-content: space-between; gap: 30px; text-align: left; }
.minimal-footer a { color: var(--teal); font-size: .78rem; font-weight: 600; }

@media (max-width: 900px) {
  .dataset-result-row { grid-template-columns: 220px minmax(0, 1fr); }
  .segmentation-block { grid-template-columns: 1fr; gap: 28px; }
  .segmentation-intro { max-width: 420px; }
  .retrieval-placeholder-grid { grid-template-columns: repeat(3, 1fr); }
  .retrieval-placeholder-grid .query-slot { grid-column: 1 / -1; }
  .retrieval-placeholder-grid > i { display: none; }
}

@media (max-width: 700px) {
  .minimal-hero { padding: 72px 0 60px; }
  .result-section { padding: 66px 0; }
  .protocol-line { grid-template-columns: 1fr; gap: 12px; }
  .minimal-figure-grid, .pca-placeholder-grid { grid-template-columns: 1fr; }
  .dataset-result-row { grid-template-columns: 1fr; }
  .retrieval-protocol { display: grid; grid-template-columns: 1fr 1fr; }
  .retrieval-protocol i { display: none; }
  .caption-slot { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 520px) {
  .retrieval-placeholder-grid { grid-template-columns: 1fr; }
  .qualitative-labels { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .minimal-footer { align-items: flex-start; flex-direction: column; }
}
