/* =========================
   Eugen Standard — site.css
   Clean single-source CSS
   ========================= */

:root{
  --bg:#ffffff;
  --text:#111111;
  --muted:#6b7280;
  --border:#e5e7eb;
  --soft:#f6f6f6;
  --radius:16px;
  --hover-bg:#fafafa;
  --table-zebra:#fcfcfd;
  --table-hover:#fcfcfc;
  --border-hover:#d6d6d6;
  --card-bg:#ffffff;
  --card-border:#e5e7eb;
  --card-radius:14px;
  --section-head-bg:#f6f8fb;
  --section-head-border:#d9dde5;
  --table-cell-px:14px;
  --table-cell-py:12px;

  /* subtle technical accent */
  --accent:#0f172a;
  --text-flow-max:860px;
}

*{ box-sizing:border-box; }

html, body{
  min-width:340px;
  height:100%;
}

body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  line-height:1.55;
  background:var(--bg);
  color:var(--text);

  /* Sticky footer (footer stays at bottom on short pages) */
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

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

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

.container{
  max-width:1200px;
  margin:0 auto;
  padding:0 24px;
}

/* main grows to push footer down */
.site-main{
  flex:1;
  padding:18px 0 56px; /* Step 1: tighter top spacing */
}

.small{ font-size:14px; }
.muted{ color:var(--muted); }

/* ===== Header / Nav ===== */
.site-header{
  position:sticky;
  top:0;
  z-index:10;
  background:rgba(255,255,255,.92);
  backdrop-filter:saturate(180%) blur(8px);
  border-bottom:1px solid var(--border);
}

.header-inner{
  min-height:72px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

/* ===== Refined Logo Layout ===== */
.brand{
  display:flex;
  flex-direction:column;
  white-space:nowrap;
  gap:6px;
}

.brand-link{
  display:inline-block;
  position:relative;
  padding-bottom:6px;
  text-decoration:none;
}

.brand-title{
  font-weight:800;
  font-size:20px;
  letter-spacing:1px;
  text-transform:uppercase;
}

/* line under brand title */
.brand-link::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:100%;
  height:1px;
  background:var(--accent);
  opacity:0.4;
}

.brand-tagline{
  font-size:14px;
  color:var(--muted);
}

.topnav{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}

.topnav a{
  padding:8px 10px;
  border-radius:10px;
  white-space:nowrap;
  color:var(--muted);
  text-decoration:none;
  border:1px solid transparent;
}

.topnav a:hover{
  background:var(--hover-bg);
  color:var(--text);
  text-decoration:none;
}

.topnav a.is-active{
  color:var(--text);
  border-color:var(--border);
  background:var(--soft);
}

.topnav a.is-active::after{
  content:"";
  display:block;
  height:2px;
  background:var(--accent);
  border-radius:99px;
  margin-top:6px;
}

/* ===== Footer ===== */
.site-footer{
  margin-top:auto;
  border-top:1px solid var(--border);
  padding:26px 0;
}

/* IMPORTANT: footer-inner is NOT a 2-col grid.
   It contains two rows: footer-main and footer-bottom. */
.footer-inner{
  display:block;
}

/* top row: brand left, nav right */
.footer-main{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}

.footer-brand{ max-width:560px; }

.footer-title{
  font-weight:800;
  letter-spacing:-.2px;
}

.footer-tagline{
  margin-top:6px;
  font-size:14px;
  color:var(--muted);
  line-height:1.45;
}

/* nav on the right */
.footer-nav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.footer-nav a{
  color:var(--muted);
  padding:6px 8px;
  border-radius:10px;
  text-decoration:none;
}

.footer-nav a:hover{
  color:var(--text);
  background:var(--hover-bg);
  text-decoration:none;
}

/* bottom row: copy left, meta right */
.footer-bottom{
  margin-top:16px;
  padding-top:16px;
  border-top:1px solid var(--border);

  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
}

.footer-copy{
  font-size:14px;
  color:var(--muted);
}

.footer-meta{
  font-size:14px;
  line-height:1.35;
  text-align:right;
  color:var(--muted);
  max-width:420px;
}

/* ===== Typography ===== */
h1,h2,h3{ line-height:1.2; margin:0 0 12px; }
h1{ font-size:32px; letter-spacing:-.2px; margin-bottom:10px; }
h2{
  margin-top:24px;      /* Step 1: stronger section headers */
  margin-bottom:10px;
  font-size:20px;
  letter-spacing:-.1px;
}
p{ margin:0 0 12px; }

.lead{
  font-size:18px;
  color:var(--muted);
  margin-top:8px;
  max-width:none;
}

/* Header intro block on data/review pages:
   Row 1: all buttons (capacity + methodology + open review)
   Row 2: caption below */
.data-page .page-header .intro-text{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:8px;
}
.data-intro-row{
  display:flex;
  flex-wrap:nowrap;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  width:100%;
  margin-bottom:1px;
}
.data-intro-row .cap-switch{ margin:0; }

.data-review-link{ margin-top:6px; }

/* Data/Review page: intro photo left, text and table wrap right */
.intro-with-photo{ margin-top:16px; overflow:hidden; }
.intro-photo{
  float:left;
  margin:0 24px 16px 0;
  width:50%;
  height:434px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
  background:var(--soft);
}
.intro-photo img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}

@media (max-width: 768px){
  .intro-photo{ float:none; width:100%; height:320px; margin:0 0 16px; }
}

/* Review page (layer 2) */
.review-page .page-header{ margin-bottom:24px; }
.review-page .review-content{ margin-top:20px; }
.review-page .review-content > p{
  font-size:17px;
}
.review-page .review-content :first-child{ margin-top:0; }
.review-page .review-content table{ width:auto; min-width:0; max-width:100%; }

/* Review readability: each H2 section as a card */
.section-card{
  border:1px solid var(--card-border);
  border-radius:var(--card-radius);
  background:var(--card-bg);
  margin:18px 0;
  overflow:hidden;
}
.section-card-head{
  background:var(--section-head-bg);
  border-bottom:1px solid var(--section-head-border);
  padding:14px 16px;
}
.section-card-head > :is(h2, h3){
  margin:0;
  font-size:21px;
  font-weight:700;
}
.section-card-body{
  background:#fff;
  font-size:17px;
  padding:14px 32px;
}
.section-card-body > :first-child{
  margin-top:0;
}
.section-card-body > :last-child{
  margin-bottom:0;
}
.section-card .chart-block{
  margin:24px 0 18px;
}
.section-card-body > .chart-block:first-child{
  margin-top:0;
}
.section-card-body > .chart-block:last-child{
  margin-bottom:0;
}
.section-card .chart{
  border:0;
  border-radius:0;
  background:transparent;
  padding-top:0;
  margin-top:0;
}

/* Review hero: photo (left) + specs card (right) */
.review-hero-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
  align-items:stretch;
  margin:16px 0 20px;
}
.review-hero-photo,
.review-hero-spec{
  display:flex;
  height:100%;
}
.review-hero-spec{
  flex-direction:column;
}
.review-hero-grid .intro-photo{
  float:none;
  margin:0;
  width:100%;
  height:100%;
  min-height:434px;
}
.review-hero-grid .intro-photo img{
  object-fit:cover;
}
.review-hero-grid--photo-only,
.review-hero-grid--spec-only{
  grid-template-columns:1fr;
}
.review-hero-spec-card{
  display:flex;
  flex-direction:column;
  height:100%;
  width:100%;
}
.review-page .review-content .review-hero-spec .meta-table{
  width:100%;
  max-width:none;
  margin:0;
  height:100%;
}
.review-page .review-content .review-hero-spec .meta-table th,
.review-page .review-content .review-hero-spec .meta-table td{
  padding:12px 12px;
  line-height:1.4;
}
.review-note{
  margin:8px 0 0;
  font-size:14px;
  line-height:1.35;
  color:var(--muted);
}

@media (max-width: 1100px){
  .review-hero-grid{ grid-template-columns:1fr; }
  .review-hero-grid .intro-photo{ min-height:320px; }
}

/* Review kit photos (01_kit): 1 large + thumbnail strip */
.review-kit{
  margin:24px 0;
  display:flex;
  flex-direction:column;
  align-items:center;
}
.review-kit-main{
  display:block;
  width:100%;
}
.review-kit-main figure{
  margin:0;
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
  background:var(--soft);
  aspect-ratio:16/9;
}
.review-kit--single .review-kit-main figure{
  aspect-ratio:2/1;
}
.review-kit:not(.review-kit--single) .review-kit-main img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}
.review-kit--single .review-kit-main img{
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
}
.review-kit.review-kit--graphs .review-kit-main figure{
  aspect-ratio:2/1;
  background:#f8faf4;
}
.review-kit.review-kit--graphs .review-kit-main img{
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
  object-position:center;
}
.chart .review-kit{
  margin:0;
}
.chart .review-kit-main figure{
  border:0;
  border-radius:0;
  background:transparent;
}
.chart-caption{
  margin:0 0 8px;
  padding-top:0;
  font-size:14px;
  line-height:1.3;
  color:#4b5563;
}
.review-inline-calc{
  margin:18px 0 14px;
  border:1px solid var(--border);
  border-radius:14px;
  background:#fff;
  box-shadow:0 10px 26px rgba(15,23,42,.08);
  overflow:hidden;
}
.review-inline-calc-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px 10px;
  border-bottom:1px solid var(--border);
}
.review-inline-calc-title{
  margin:0;
  font-size:14px;
  font-weight:750;
}
.review-inline-calc-badge{
  font-size:14px;
  color:var(--muted);
  white-space:nowrap;
}
.review-inline-calc-body{
  padding:14px 16px 16px;
}
.review-inline-calc-row{
  display:flex;
  align-items:flex-start;
  justify-content:flex-start;
  gap:12px;
  flex-wrap:wrap;
}
.review-inline-calc-label{
  font-size:14px;
  color:var(--muted);
  min-width:110px;
  padding-top:9px;
}
.review-inline-calc-input{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
  flex-wrap:wrap;
}
.review-inline-calc-number{
  width:120px;
  padding:8px 10px;
  border:1px solid var(--border);
  border-radius:10px;
  font-size:14px;
  font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
.review-inline-calc-unit{
  font-size:14px;
  color:var(--muted);
}
.review-inline-calc-range{
  width:100%;
  margin-top:10px;
}
.review-inline-calc-legend{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-top:8px;
  color:var(--muted);
  font-size:14px;
  user-select:none;
}
.review-inline-calc-legend-item{
  display:flex;
  align-items:center;
  gap:8px;
}
.review-inline-calc-swatch{
  width:10px;
  height:10px;
  border-radius:3px;
  background:#2563eb;
  box-shadow:0 0 0 3px rgba(37,99,235,.10);
  flex:0 0 auto;
}
.review-inline-calc-swatch-slc{
  background:#60a5fa;
  box-shadow:0 0 0 3px rgba(96,165,250,.10);
}
.review-inline-calc-split{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  align-items:stretch;
  margin-top:10px;
}
.review-inline-calc[data-mode="read"] .review-inline-calc-split{
  grid-template-columns:3fr 1fr;
}
.review-inline-calc-split > div{
  display:flex;
}
.review-inline-calc[data-mode="read"] .review-inline-calc-split > div:last-child{
  justify-content:flex-end;
}
.review-inline-calc-result{
  margin-top:12px;
  padding:14px 14px 12px;
  border:1px solid var(--border);
  border-radius:14px;
  background:linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow:0 12px 24px rgba(15,23,42,.06);
  flex:1;
}
.review-inline-calc-time{
  margin:0 0 6px;
  font-size:21px;
  font-weight:900;
  letter-spacing:-.02em;
  font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  line-height:1.15;
  color:#111827;
}
.review-inline-calc-sub{
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.35;
}
.review-inline-calc-bar-wrap{
  margin-top:12px;
  border:1px solid var(--border);
  border-radius:12px;
  overflow:hidden;
  background:#fff;
  flex:1;
}
.review-inline-calc[data-mode="read"] .review-inline-calc-bar-wrap{
  width:100%;
  max-width:260px;
}
.review-inline-calc-bar{
  display:flex;
  height:18px;
  width:100%;
  background:#f3f4f6;
}
.review-inline-calc-seg-slc{ background:#60a5fa; }
.review-inline-calc-seg-sus{ background:#2563eb; }
.review-inline-calc-bar-meta{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px 12px;
  border-top:1px solid #eef2f7;
  background:#fff;
  flex-wrap:wrap;
}
.review-inline-calc-kv{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:140px;
}
.review-inline-calc-k{
  font-size:14px;
  color:var(--muted);
}
.review-inline-calc-v{
  font-size:14px;
  font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight:750;
  color:#111827;
}
.review-inline-calc-footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-top:12px;
  flex-wrap:wrap;
}
.review-inline-calc-note{
  font-size:14px;
  color:var(--muted);
}
.review-inline-calc-link{
  text-decoration:none;
  color:#2563EB;
  font-size:14px;
  font-weight:700;
  white-space:nowrap;
}
.review-inline-calc-link:hover{
  color:#1D4ED8;
}
@media (max-width: 820px){
  .review-inline-calc-split{ grid-template-columns:1fr; }
  .review-inline-calc[data-mode="read"] .review-inline-calc-split{ grid-template-columns:1fr; }
  .review-inline-calc-label{ min-width:0; padding-top:0; }
  .review-inline-calc[data-mode="read"] .review-inline-calc-split > div:last-child{ justify-content:stretch; }
  .review-inline-calc[data-mode="read"] .review-inline-calc-bar-wrap{ max-width:none; }
}
/* Thumbnail strip: wrapper with arrows + fade */
.review-kit-strip-wrap{
  position:relative;
  width:100%;
  margin-top:12px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.review-kit-strip{
  display:flex;
  justify-content:flex-start;
  gap:12px;
  width:100%;
  overflow-x:auto;
  overscroll-behavior-x:contain;
  scrollbar-width:none;
  -ms-overflow-style:none;
  padding:8px 42px;
  scroll-behavior:smooth;
}
.review-kit-strip::-webkit-scrollbar{ display:none; }
.review-kit-strip figure{
  flex:0 0 auto;
  width:180px;
  height:101px;
  margin:0;
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
  background:var(--soft);
  cursor:pointer;
  transition:border-color .15s, transform .15s, box-shadow .15s;
}
.review-kit-strip figure:hover{
  border-color:var(--border-hover);
}
.review-kit-strip figure.is-active{
  border-color:var(--accent);
  box-shadow:0 0 0 1px var(--accent);
  transform:scale(1.02);
}
.review-kit-strip img{
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
}
/* Arrows */
.review-kit-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:2;
  width:32px;
  height:32px;
  padding:0;
  border:1px solid var(--border);
  border-radius:50%;
  background:rgba(255,255,255,.9);
  color:var(--text);
  font-size:18px;
  line-height:1;
  cursor:pointer;
  flex-shrink:0;
  transition:opacity .15s, border-color .15s;
}
.review-kit-arrow:hover:not(:disabled){
  border-color:var(--border-hover);
}
.review-kit-arrow:disabled{
  opacity:.35;
  cursor:default;
  pointer-events:none;
}
.review-kit-arrow--prev{ left:4px; }
.review-kit-arrow--next{ right:4px; }
/* Fade overlays */
.review-kit-fade{
  position:absolute;
  top:0;
  bottom:0;
  width:48px;
  z-index:1;
  pointer-events:none;
  transition:opacity .2s;
}
.review-kit-fade.is-hidden{ opacity:0; }
.review-kit-fade--left{
  left:0;
  background:linear-gradient(to right, rgba(255,255,255,.85), transparent);
}
.review-kit-fade--right{
  right:0;
  background:linear-gradient(to left, rgba(255,255,255,.85), transparent);
}

@media (max-width: 900px){
  .review-kit-main figure{
    aspect-ratio:16/9;
  }
  .review-kit-strip{
    padding:8px 36px;
  }
}

/* Photo lightbox (review, best) — click to enlarge */
.photo-lightbox figure{ cursor:pointer; }
.photo-overlay{
  display:none;
  position:fixed;
  inset:0;
  z-index:100;
  background:rgba(0,0,0,.7);
  align-items:center;
  justify-content:center;
  padding:24px;
  cursor:pointer;
}
.photo-overlay.is-open{ display:flex; }
.photo-overlay-inner{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
}
.photo-overlay-img{
  max-width:95vw;
  max-height:95vh;
  object-fit:contain;
  pointer-events:none;
}
.photo-overlay-prev,
.photo-overlay-next{
  position:absolute;
  top:50%;
  visibility:hidden;
  transform:translateY(-50%);
  width:48px;
  height:48px;
  padding:0;
  border:none;
  border-radius:50%;
  background:rgba(255,255,255,.15);
  color:#fff;
  font-size:28px;
  line-height:1;
  cursor:pointer;
  transition:background .2s, transform .2s;
  z-index:10;
}
.photo-overlay-prev:hover,
.photo-overlay-next:hover{
  background:rgba(255,255,255,.3);
  transform:translateY(-50%) scale(1.05);
}
.photo-overlay-prev{ left:12px; }
.photo-overlay-next{ right:12px; }

/* =========================================================
   CODE BLOCKS (Markdown)
   ========================================================= */

pre{
  margin:12px 0 16px;
  padding:12px 14px;
  border:1px solid var(--border);
  border-radius:12px;
  background:var(--soft);
  overflow:auto;                 /* allow horizontal scroll if needed */
  white-space:pre-wrap;          /* wrap long lines */
  overflow-wrap:anywhere;        /* break very long tokens if needed */
}

pre code{
  display:block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size:14px;
  line-height:1.45;
  white-space:inherit;
  background:transparent;
  padding:0;
  border-radius:0;
}

code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size:0.95em;
  background:rgba(15, 23, 42, 0.06);
  padding:2px 6px;
  border-radius:8px;
}

/* ===== Capacity switch ===== */
.cap-switch{ display:flex; gap:10px; flex-wrap:wrap; margin:12px 0 18px; }
.cap-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:40px;
  padding:0 14px;
  border:1px solid var(--border);
  border-radius:10px;
  background:var(--hover-bg);
  color:var(--text);
  line-height:1;
}
.cap-btn:hover{
  background:#fbfbfb;
  text-decoration:none;
}
.cap-btn:focus-visible{
  outline:none;
  box-shadow:0 0 0 2px var(--accent);
}
.cap-btn.is-active{
  background:#3f4555;
  color:var(--bg);
  border-color:#3f4555;
}

/* ===== Data page intro (row of buttons + caption below) ===== */
.data-intro-desc{
  font-size:14px;
  color:var(--muted);
  line-height:1.35;
}
.data-intro-actions{
  display:flex;
  align-items:center;
  position:relative;
  margin-left:auto;
}
.data-intro-actions .data-intro-desc{
  position:absolute;
  top:calc(100% + 1px);
  right:8px;
  white-space:nowrap;
}
.data-intro-pills{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  white-space:nowrap;
  margin-left:auto;
  padding-left:14px;
  padding-right:8px;
  position:relative;
}
.data-intro-actions .data-intro-pills{
  margin-left:0;
}
.data-intro-pills::before{
  content:"";
  position:absolute;
  left:0;
  top:50%;
  transform:translateY(-50%);
  height:24px;
  width:1px;
  background:var(--border);
}
/* Same style as .cap-btn (capacity switch) */
.data-pill{
  display:inline-flex;
  align-items:center;
  height:40px;
  padding:0 14px;
  border:1px solid var(--border);
  border-radius:999px;
  background:#ffffff;
  color:var(--text);
  font-weight:400;
  line-height:1;
  text-decoration:none;
  cursor:pointer;
  transition:background-color .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.data-pill--primary{ background:#fefefe; }
.data-pill--secondary{}
.data-pill--tertiary{}
.data-pill:hover{
  background:#fbfbfb;
  text-decoration:none;
}
.data-pill:focus-visible{
  outline:none;
  box-shadow:0 0 0 2px var(--accent);
}

/* "Reference only..." note style near test tables */
.data-page .content blockquote,
.review-page .review-content blockquote{
  margin:6px 0 8px;
  padding:0;
  border:0;
  font-size:14px;
  line-height:1.35;
  color:var(--muted);
}
.data-page .data-content > p{
  font-size:17px;
}
.data-attempt-note{
  margin:0 0 12px;
  padding:10px 12px;
  border:1px solid #dbe3ee;
  border-radius:12px;
  background:#f8fafc;
  color:#374151;
  font-size:14px;
  line-height:1.4;
}
.data-na-note{
  margin-bottom:8px;
}
.data-page .data-table td.data-na,
.data-page .data-content .data-section-card .section-card-body > :is(table, .data-table) tbody td.data-na{
  color:#8a93a3;
  font-weight:500;
  letter-spacing:0;
}
.data-page .data-table tbody td:nth-child(2).data-na,
.data-page .data-content .data-section-card .section-card-body > :is(table, .data-table) tbody td:nth-child(2).data-na{
  color:#8a93a3;
  font-weight:500;
}
.data-page .content blockquote p,
.review-page .review-content blockquote p{
  margin:0;
}
@media (max-width: 640px){
  .data-intro-row{
    flex-wrap:wrap;
    justify-content:flex-start;
    align-items:flex-start;
  }
  .data-intro-actions{
    align-items:flex-start;
    margin-left:0;
  }
  .data-intro-actions .data-intro-desc{
    position:static;
    margin-top:6px;
    white-space:normal;
  }
  .data-intro-pills{
    margin-left:0;
    padding-left:0;
    padding-right:0;
  }
  .data-intro-pills::before{ display:none; }
}

/* =========================================================
   TABLES
   ========================================================= */

table{
  width:100%;
  border-collapse:collapse;
  margin-top:12px;
}

/* wrap only by spaces */
th, td{
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.meta-table th, .meta-table td,
.data-table th, .data-table td{
  border:1px solid var(--border);
  padding:10px;
  text-align:left;
  vertical-align:top;
}
.data-page .meta-table th, .data-page .meta-table td,
.data-page .data-table th, .data-page .data-table td{
  font-size:16px;
}
.data-page .data-table th, .data-page .data-table td{
  padding:var(--table-cell-py) var(--table-cell-px);
  border-color:#e6eaf0;
}
.data-page .data-table{
  border-collapse:separate;
  border-spacing:0;
  border:1px solid #e6eaf0;
  border-radius:12px;
  overflow:hidden;
}
.data-page .data-table th,
.data-page .data-table td{
  border-left:0;
  border-right:0;
  border-top:0;
  border-bottom:1px solid #e8edf3;
}
.data-page .data-table thead th{
  background:#f7f9fc;
}
.data-page .data-table tbody tr:last-child td{
  border-bottom:0;
}

.meta-table th, .data-table th{
  background:var(--soft);
  font-weight:600;
}

.meta-table th{
  width:240px;
  white-space:nowrap;
}

/* keep identical column boundaries across ALL data tables */
.data-table{
  table-layout:fixed;
}

/* fix width only for first column (Metric) */
.data-table th:first-child,
.data-table td:first-child{
  width:240px;
}

/* other columns */
.data-table td:not(:first-child),
.data-table th:not(:first-child){
  text-align:right;
  font-variant-numeric: tabular-nums;
}

/* Step 2: highlight Average (Median) column (2nd) */
.data-table th:nth-child(2),
.data-table td:nth-child(2){
  background:#f7f9fc;
  font-weight:600;
  color:#111827;
}
.data-table th:nth-child(n+3),
.data-table td:nth-child(n+3){
  color:#4b5563;
}
.data-table tbody td:nth-child(n+3){
  background:#fcfdff;
}

/* subtle zebra for readability */
.data-table tbody tr:nth-child(even) td{
  background:var(--table-zebra);
}

/* hover rows */
@media (hover:hover){
  table tbody tr:hover td,
  table tbody tr:hover th{
    background:var(--table-hover);
  }
}

.kpi{ font-weight:700; }

/* =========================================================
   RAW DATA tables (universal highlight style)
   Applies by page/context, not only by class names.
   ========================================================= */
.data-page .data-content .data-section-card .section-card-body > :is(table, .data-table){
  width:100%;
  margin-top:12px;
  border-collapse:separate;
  border-spacing:0;
  border:1px solid #e3e8ef;
  border-radius:12px;
  overflow:hidden;
  background:#fff;
}
.data-page .data-content .data-section-card .section-card-body > :is(table, .data-table) thead th{
  font-size:16px;
  font-weight:500;
  color:#4b5563;
  text-transform:none;
  background:#f8fafc;
  border-bottom:1px solid #e6ebf2;
  padding:10px 12px;
}
.data-page .data-content .data-section-card .section-card-body > :is(table, .data-table) tbody td{
  font-size:16px;
  padding:10px 12px;
  border-bottom:1px solid #edf1f6;
  background:#fff;
}
.data-page .data-content .data-section-card .section-card-body > :is(table, .data-table) tbody tr:last-child td{
  border-bottom:0;
}
.data-page .data-content .data-section-card .section-card-body > :is(table, .data-table) th,
.data-page .data-content .data-section-card .section-card-body > :is(table, .data-table) td{
  border-left:0;
  border-right:0;
  border-top:0;
  vertical-align:top;
}
.data-page .data-content .data-section-card .section-card-body > :is(table, .data-table) :is(th, td):not(:first-child){
  text-align:right;
  font-variant-numeric:tabular-nums;
}
.data-page .data-content .data-section-card .section-card-body > :is(table, .data-table) :is(thead th, tbody td):nth-child(2){
  background:rgba(59, 130, 246, 0.07);
}
.data-page .data-content .data-section-card .section-card-body > :is(table, .data-table) thead th:nth-child(2){
  color:#374151;
  font-weight:600;
}
.data-page .data-content .data-section-card .section-card-body > :is(table, .data-table) tbody td:nth-child(2){
  color:#111111;
  font-weight:700;
}
.data-page .data-content .data-section-card .section-card-body > :is(table, .data-table) :is(th, td):nth-child(n+3){
  color:#374151;
  font-weight:500;
  background:#fff;
}
.data-page .data-content .data-section-card .section-card-body > :is(table, .data-table) :is(th, td):nth-child(n+4){
  border-left:1px solid #eef2f7;
}
@media (hover:hover){
  .data-page .data-content .data-section-card .section-card-body > :is(table, .data-table) tbody tr:hover td{
    background:#fafcff;
  }
  .data-page .data-content .data-section-card .section-card-body > :is(table, .data-table) tbody tr:hover td:nth-child(2){
    background:rgba(59, 130, 246, 0.09);
  }
}

/* =========================================================
   Test unit grid (table left + photo right)
   ========================================================= */

.testunit-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:24px;
  align-items:stretch;
  margin:16px 0 20px;
}
.testunit-grid-no-photo{
  grid-template-columns: 1fr;
}

.testunit-left,
.testunit-right{
  display:flex;
  height:100%;
}

.testunit-spec-card{
  height:100%;
  width:100%;
  display:flex;
  flex-direction:column;
}
.data-page .testunit-grid .meta-table{
  height:100%;
}
.data-page .testunit-grid .meta-table th,
.data-page .testunit-grid .meta-table td{
  padding:12px 12px;
  line-height:1.4;
}

.testunit-table-wrap .meta-table{
  margin-top:0;
  margin-bottom:0;
}

.testunit-table-wrap .meta-table tr{
  height:auto;
}
.testunit-table-wrap .meta-table th,
.testunit-table-wrap .meta-table td{
  padding:10px;
  line-height:1.25;
}

/* Meta-table in hero: first col white, headers bold */
.data-page .testunit-grid .meta-table th,
.review-page .review-content .review-hero-spec .meta-table th{
  background:#fff;
  font-weight:600;
}
.data-page .testunit-grid .meta-table{
  margin-top:0;
  margin-bottom:0;
}
.data-page .testunit-grid .meta-table td,
.review-page .review-content .review-hero-spec .meta-table td{
  background:#fff;
}


.testunit-photo{
  margin:0;
  width:100%;
  aspect-ratio:4/3;
  height:auto;
  min-height:0;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:transparent;
  padding:0;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}

.testunit-note{
  margin:8px 0 0;
  font-size:14px;
  line-height:1.35;
  color:var(--muted);
}
.data-page .data-content{
  margin-top:20px;
}

.testunit-photo-img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}

/* =========================================================
   Breadcrumbs
   ========================================================= */

.breadcrumbs{
  margin: 6px 0 12px;
  font-size: 14px;
  color: var(--muted);
}

.breadcrumbs ol{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.breadcrumbs li{
  display:inline-flex;
  align-items:center;
}

.breadcrumbs li + li::before{
  content:"›";
  margin:0 6px;
  color:var(--muted);
}

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

.breadcrumbs a:hover{
  text-decoration:underline;
}

.breadcrumbs [aria-current="page"]{
  color:var(--text);
  font-weight:600;
}

/* =========================================================
   Home page
   ========================================================= */

.home-hero{
  padding:10px 0 18px;
  max-width:860px;
  margin-bottom:18px; /* no line */
}

.home-title{
  font-size:28px;
  margin:0 0 8px;
  letter-spacing:-.2px;
}

.home-sub{
  margin:0;
  color:var(--muted);
  font-size:16px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 16px;
  border-radius:8px;
  border:1px solid var(--border);
  background:var(--bg);
  color:var(--text);
  text-decoration:none;
  font-weight:600;
  font-size:14px;
}

.btn:hover{
  background:var(--hover-bg);
  text-decoration:none;
}

.btn-primary{
  background:var(--accent);
  border-color:var(--accent);
  color:var(--bg);
}

.btn-primary:hover{ opacity:.92; }

.home-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
  margin-top:14px;
  margin-bottom:10px;
}

.card{
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px;
  background:var(--bg);
  transition: all .15s ease;
}

.card:hover{
  border-color:var(--border-hover);
}

.card-title{
  margin:0 0 6px;
  font-size:16px;
}

.card-sub{
  margin:0 0 10px;
  font-size:14px;
}

.card-link{
  display:inline-block;
  margin-top:10px;
  font-size:14px;
  color:var(--muted);
  text-decoration:none;
}
.card-link:hover{ text-decoration:underline; }

.linklist, .bullets, .updates{
  margin:0;
  padding-left:18px;
}

.linklist li, .bullets li, .updates li{
  margin:6px 0;
}

.pill{
  display:inline-block;
  font-size:14px;
  padding:2px 8px;
  border-radius:999px;
  border:1px solid rgba(15,118,110,.28);
  background:#e8f5ef;
  color:#0a5d57;
  margin-right:8px;
  transform: translateY(-1px);
}

.home-featured{
  margin:26px 0 32px;
}

.featured{
  border-left:3px solid var(--accent);
}

.featured .card-title{
  margin-bottom:6px;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1100px){
  .testunit-grid{ grid-template-columns: 1fr; }
  .testunit-grid .testunit-left .meta-table tr{ height:auto; }
  .testunit-photo{ height:auto; min-height:0; }
}

@media (max-width: 900px){
  .home-grid{ grid-template-columns: 1fr; }
  .home-title{ font-size:28px; }
}

@media (max-width: 768px){
  .container{ padding:0 16px; }
  h1{ font-size:24px; }
  .lead{ font-size:16px; }

  .header-inner{
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
    padding:14px 20px 10px 20px;
  }

  .topnav{
    width:100%;
    overflow-x:auto;
    gap:8px;
    padding-bottom:6px;
  }

  .topnav a{ padding:6px 8px; }

  /* footer stacks */
  .footer-main{ flex-direction:column; align-items:flex-start; }
  .footer-nav{ justify-content:flex-start; }
  .footer-bottom{ flex-direction:column; align-items:flex-start; }
  .footer-meta{ text-align:left; max-width:none; }

  .meta-table th{ width:220px; }
}

/* Hide attempts only under 576px:
   columns order: Metric | Average(Median) | Attempt1 | Attempt2 | Attempt3 */
@media (max-width: 576px){
  .data-table th:first-child,
  .data-table td:first-child{
    width:220px;
    min-width:220px;
    max-width:220px;
  }

  .data-table th:nth-child(2),
  .data-table td:nth-child(2){
    width:auto;
    text-align:center;
    font-weight:700;
  }

  .data-table th:nth-child(n+3),
  .data-table td:nth-child(n+3){
    display:none;
  }
}

@media (min-width: 577px){
  .data-table th:nth-child(n+3),
  .data-table td:nth-child(n+3){
    display:table-cell;
  }
}

/* ==========================================
   Chroma (Hugo) — force monochrome code blocks
   ========================================== */

.highlight, .chroma {
  background: var(--soft) !important;
  color: var(--text) !important;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 12px 0 16px;
  overflow: auto;
}

.highlight pre, .chroma pre {
  background: transparent !important;
  color: inherit !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: pre !important;
  overflow-x: auto;
}

.highlight code, .chroma code,
.highlight pre code, .chroma pre code,
.highlight .ln, .chroma .ln,
.highlight span, .chroma span {
  background: transparent !important;
  color: inherit !important;
}

.highlight .lnt, .chroma .lnt {
  color: var(--muted) !important;
}

.highlight ::selection, .chroma ::selection {
  background: rgba(15, 23, 42, 0.12);
}

/* ===== Language dropdown (no JS) ===== */
.lang{ margin-left:12px; }

.lang-dd{ position:relative; }
.lang-dd > summary{ list-style:none; }
.lang-dd > summary::-webkit-details-marker{ display:none; }

.lang-btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 10px;
  border-radius:10px;
  border:1px solid transparent;
  color:var(--muted);
  cursor:pointer;
  user-select:none;
  white-space:nowrap;
}

.lang-btn:hover{
  background:var(--hover-bg);
  color:var(--text);
  border-color:var(--border);
}

.lang-dd[open] .lang-btn{
  background:var(--soft);
  color:var(--text);
  border-color:var(--border);
}

.lang-caret{ font-size:14px; opacity:.8; }

.lang-menu{
  position:absolute;
  right:0;
  top:calc(100% + 8px);
  min-width:170px;
  background:var(--bg);
  border:1px solid var(--border);
  border-radius:12px;
  box-shadow:0 10px 24px rgba(0,0,0,.08);
  padding:8px;
  z-index:50;
}

.lang-item{
  display:block;
  padding:8px 10px;
  border-radius:10px;
  color:var(--muted);
  text-decoration:none;
  font-size:14px;
}

.lang-item:hover{
  background:var(--hover-bg);
  color:var(--text);
  text-decoration:none;
}

.lang-item.is-active{
  background:var(--soft);
  color:var(--text);
  font-weight:700;
}

/* mobile: keep header clean */
@media (max-width:768px){
  .lang{ margin-left:0; }
  .lang-menu{ right:auto; left:0; }
}

/* header right cluster: nav + language */
.header-right{
  display:flex;
  align-items:center;
  gap:12px;
}

/* mobile: keep stacked layout */
@media (max-width:768px){
  .header-right{
    width:100%;
    justify-content:space-between;
    gap:10px;
  }
}

/* =========================================================
   Calculator page (.calc-*)
   ========================================================= */

.calc-page{ max-width:1200px; margin:0 auto; }
.calc-title{ margin:10px 0 14px; }

.calc-card{
  border:1px solid var(--border,#e5e7eb);
  border-radius:16px;
  padding:16px;
  background:var(--bg);
  box-shadow:0 1px 10px rgba(0,0,0,.04);
}

.calc-view[hidden]{ display:none !important; }

.calc-controls{
  display:grid;
  grid-template-columns: 1fr 340px;
  gap:12px;
  align-items:end;
}
@media (max-width: 980px){
  .calc-controls{ grid-template-columns:1fr; }
}

.calc-label{ display:block; font-size:14px; color:#374151; margin-bottom:6px; }
.calc-sizeRow{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.calc-filterSwitch{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.calc-capacityBlock{ margin-top:14px; }
.calc-number{
  max-width:120px;
  width:120px;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:12px;
  font-size:14px;
}
.calc-range{ flex:1; min-width:240px; }
.calc-muted{ color:var(--muted); font-size:14px; line-height:1.35; }
.calc-tabnums{ font-variant-numeric: tabular-nums; font-feature-settings:"tnum" 1,"lnum" 1; }

.calc-right{ display:grid; gap:10px; }

.calc-modeBlock{
  border:1px solid var(--border);
  border-radius:14px;
  padding:10px 10px;
}
.calc-modeSwitch{
  display:flex;
  gap:8px;
  align-items:stretch;
}
.calc-modeBtn{
  flex:1;
  padding:10px 12px;
  border:1px solid var(--border);
  background:var(--bg);
  border-radius:12px;
  cursor:pointer;
  font-size:14px;
  font-family:inherit;
  line-height:1.25;
  min-height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  appearance:none;
}
.calc-modeBtn:hover{ background:var(--hover-bg); }
.calc-modeBtn.active{
  border-color:#3b82f6;
  box-shadow:0 0 0 2px rgba(59,130,246,.25);
}
.calc-divider{ height:1px; background:var(--border); margin:14px 0; }

.calc-canvas{
  width:100%;
  height:320px;
  border:1px solid var(--border);
  border-radius:12px;
  background:var(--bg);
  display:block;
}
.calc-priceChartWrap{ position:relative; }
.calc-rwChartWrap{ position:relative; }
.calc-priceChartOverlay,
.calc-rwChartOverlay{
  position:absolute;
  top:0;
  left:0;
  pointer-events:none;
  overflow:hidden;
}
.calc-priceChartOverlay .calc-priceChartModelLink,
.calc-rwChartOverlay .calc-rwChartModelLink{
  pointer-events:auto;
  cursor:pointer;
  text-decoration:none;
  color:#111827;
  display:block;
}
.calc-priceChartOverlay .calc-priceChartModelInfo{
  pointer-events:none;
}
.calc-priceChartOverlay .calc-priceChartModelInfo .calc-priceChartModelLink{
  pointer-events:auto;
}
.calc-priceChartAmazon{
  margin-top:5px;
  font-size:11px;
  line-height:13px;
  color:#6b7280;
}
.calc-priceChartOverlay .calc-priceChartModelLink:hover,
.calc-rwChartOverlay .calc-rwChartModelLink:hover{
  text-decoration:underline;
  color:#1d4ed8;
}
.calc-extIcon{
  display:inline-block;
  width:0.9em;
  height:0.9em;
  margin-left:2px;
  vertical-align:middle;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E") no-repeat center/contain;
}
.calc-modelLink{ color:inherit; text-decoration:none; }
.calc-modelLink:hover{ text-decoration:underline; }
.calc-modelLink--external .calc-extIcon{ margin-left:4px; }
.calc-legend{ display:flex; gap:16px; margin-top:10px; flex-wrap:wrap; }
.calc-dot{ width:10px; height:10px; border-radius:999px; display:inline-block; margin-right:6px; vertical-align:middle; }
.calc-dot-slc{ background:#60a5fa; }
.calc-dot-sus{ background:#3b82f6; }
.calc-dot-price{ background:#3b82f6; }

.calc-out{
  margin-top:12px;
  padding:12px;
  background:var(--hover-bg);
  border:1px solid var(--border);
  border-radius:12px;
}
.calc-big{ font-size:18px; font-weight:800; line-height:1.2; }

.calc-tableMeta{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:baseline;
  margin:0 0 6px;
  line-height:1.3;
}
.calc-tableMetaTitle{
  font-size:15px;
  font-weight:700;
  color:#111827;
}
.calc-tableMetaTime{
  font-size:13px;
  text-align:right;
}
.calc-priceSummarySub{
  margin-top:4px;
  font-size:14px;
}
.calc-rowNote{
  margin-top:4px;
  font-size:12px;
}

.calc-tableWrap{
  overflow:auto;
  border:1px solid var(--border);
  border-radius:12px;
}
.calc-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  min-width:980px;
  background:var(--bg);
}
.calc-table thead th{
  position:sticky; top:0;
  background:var(--bg);
  z-index:1;
  text-align:left;
  font-size:14px;
  color:#374151;
  border-bottom:1px solid var(--border);
  padding:10px 12px;
  white-space:nowrap;
}
.calc-table thead th.calc-rightTxt{ text-align:right; }

.calc-table tbody td{
  border-bottom:1px solid var(--border);
  padding:10px 12px;
  vertical-align:middle;
  font-size:14px;
}
.calc-table tbody td a{
  color:inherit;
  text-decoration:none;
}
.calc-table tbody td a:hover{
  text-decoration:underline;
}
.calc-rightTxt{ text-align:right; }
/* Keep calculator table columns stable while slider updates dynamic times. */
.calc-table th.calc-col-write,
.calc-table td.calc-col-write{
  width:120px;
  min-width:120px;
  white-space:nowrap;
}
.calc-table th.calc-col-time,
.calc-table td.calc-col-time{
  width:220px;
  min-width:220px;
  white-space:nowrap;
}
.calc-bestRow{ background:#fef9c3; }

.calc-col-write{ display:table-cell; }
.calc-mode-read .calc-col-write{ display:none; }

@media (max-width: 520px){
  .calc-number{ width:100%; max-width:100%; }
  .calc-range{ min-width:100%; }
}

/* =========================================================
   Design v2: unified lab-console system
   ========================================================= */

:root{
  --bg:#f5f7f2;
  --text:#17211d;
  --muted:#647067;
  --border:#d7dfd3;
  --soft:#edf2e9;
  --hover-bg:#e8efe4;
  --table-zebra:#fbfcf8;
  --table-hover:#eef7f3;
  --border-hover:#aab9aa;
  --card-bg:#fffffb;
  --card-border:#d7dfd3;
  --card-radius:8px;
  --section-head-bg:#e9f0e5;
  --section-head-border:#ccd8ca;
  --accent:#0f766e;
  --accent-2:#b45309;
  --accent-3:#45523f;
  --accent-soft:#dcefed;
  --ink-soft:#25302a;
  --shadow:0 18px 42px rgba(23,33,29,.08);
  --text-flow-max:880px;
  --radius:8px;
}

*{
  letter-spacing:0 !important;
}

html{
  background:var(--bg);
  scroll-padding-top:96px;
  max-width:100%;
  overflow-x:hidden;
}

body{
  background:
    linear-gradient(90deg, rgba(15,118,110,.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15,118,110,.025) 1px, transparent 1px),
    var(--bg);
  background-size:64px 64px;
  color:var(--text);
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height:1.58;
  max-width:100%;
  overflow-x:hidden;
}

a{
  color:var(--accent);
  text-decoration-thickness:1px;
  text-underline-offset:3px;
}

a:hover{
  color:#0a5d57;
}

.container{
  max-width:1240px;
  padding:0 28px;
}

.site-main{
  padding:24px 0 72px;
}

.site-header{
  background:rgba(245,247,242,.92);
  border-bottom:1px solid var(--border);
  box-shadow:0 12px 30px rgba(23,33,29,.055);
}

.header-inner{
  min-height:76px;
  gap:24px;
}

.brand{
  gap:4px;
}

.brand-link{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding-bottom:0;
}

.brand-link::after{
  display:none;
}

.brand-title{
  color:var(--text);
  font-size:18px;
  font-weight:850;
  text-transform:uppercase;
}

.brand-dot{
  display:inline-block;
  width:9px;
  height:9px;
  border:2px solid var(--accent);
  transform:rotate(45deg);
}

.brand-tagline{
  max-width:360px;
  color:var(--muted);
  font-size:13px;
  line-height:1.35;
  white-space:normal;
}

.header-right{
  gap:14px;
}

.topnav{
  gap:4px;
  padding:4px;
  border:1px solid var(--border);
  border-radius:8px;
  background:rgba(255,255,251,.68);
}

.topnav a{
  border-radius:6px;
  color:var(--ink-soft);
  font-size:14px;
  font-weight:650;
  padding:8px 10px;
}

.topnav a:hover{
  background:var(--hover-bg);
  color:var(--text);
}

.topnav a.is-active{
  color:#fff;
  background:var(--accent);
  border-color:var(--accent);
}

.topnav a.is-active::after{
  display:none;
}

.lang{
  margin-left:0;
}

.lang-btn{
  min-height:38px;
  border:1px solid var(--border);
  border-radius:8px;
  background:rgba(255,255,251,.68);
  color:var(--ink-soft);
  font-size:14px;
  font-weight:650;
}

.lang-btn:hover,
.lang-dd[open] .lang-btn{
  background:var(--hover-bg);
  border-color:var(--border-hover);
  color:var(--text);
}

.lang-menu{
  border-color:var(--border);
  border-radius:8px;
  background:var(--card-bg);
  box-shadow:var(--shadow);
}

.lang-item{
  border-radius:6px;
}

.site-footer{
  border-top:1px solid var(--border);
  background:rgba(255,255,251,.72);
  padding:30px 0;
}

.footer-title{
  color:var(--text);
  font-size:18px;
  font-weight:850;
}

.footer-tagline,
.footer-copy,
.footer-meta,
.footer-nav a{
  color:var(--muted);
}

.footer-nav a{
  border:1px solid transparent;
  border-radius:6px;
}

.footer-nav a:hover{
  border-color:var(--border);
  background:var(--hover-bg);
  color:var(--text);
}

h1,h2,h3{
  color:var(--text);
  font-weight:850;
}

h1{
  font-size:clamp(30px, 4vw, 56px);
  line-height:1.02;
  overflow-wrap:anywhere;
}

h2{
  font-size:24px;
}

p,
li{
  color:var(--ink-soft);
}

.lead{
  max-width:760px;
  color:var(--muted);
  font-size:18px;
}

.breadcrumbs{
  margin:4px 0 18px;
  color:var(--muted);
}

.breadcrumbs [aria-current="page"]{
  color:var(--text);
}

.page-header{
  margin:12px 0 26px;
  padding:22px 0 20px;
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}

.page-header h1{
  max-width:980px;
  margin-bottom:14px;
}

.data-page .page-header h1{
  max-width:min(1360px, 100%);
  overflow-wrap:normal;
  word-break:normal;
}

.content,
.review-content,
.data-content,
article > div:not([class]){
  max-width:var(--text-flow-max);
}

.review-content,
.data-content{
  max-width:none;
}

.content p,
.review-content p,
.data-content p,
article > div:not([class]) p{
  max-width:var(--text-flow-max);
}

.review-page .review-content .section-card-body > p,
.review-page .review-content .section-card-body > ul,
.review-page .review-content .section-card-body > ol{
  max-width:none;
  margin-left:0;
  margin-right:0;
}

.review-page .review-content > p,
.review-page .review-content > ul,
.review-page .review-content > ol{
  max-width:none;
  margin-left:0;
  margin-right:0;
}

.home > .container{
  max-width:none;
  padding:0;
}

.home-hero{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0, 1fr) minmax(280px, 440px);
  gap:28px;
  align-items:stretch;
  max-width:none;
  min-height:300px;
  margin:0 0 24px;
  padding:28px 0 28px;
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}

.home-hero-copy{
  display:flex;
  flex-direction:column;
  justify-content:center;
  max-width:740px;
}

.home-title{
  margin-bottom:14px;
  font-size:clamp(38px, 7vw, 86px);
  line-height:.96;
}

.home-sub{
  max-width:620px;
  color:var(--muted);
  font-size:20px;
  overflow-wrap:anywhere;
}

.home-hero-media{
  position:relative;
  align-self:stretch;
  margin:0;
  min-height:260px;
  border:1px solid var(--border);
  border-radius:8px;
  background:var(--card-bg);
  overflow:hidden;
  box-shadow:var(--shadow);
}

.home-hero-media::before{
  content:"";
  position:absolute;
  inset:14px;
  border:1px solid rgba(15,118,110,.22);
  border-radius:6px;
  pointer-events:none;
}

.home-hero-media img{
  width:100%;
  height:100%;
  min-height:260px;
  object-fit:contain;
  padding:26px;
}

.home-grid{
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:12px;
}

.card,
.section-card,
.calc-card,
.review-inline-calc,
.calc-out,
.calc-tableWrap,
.testunit-photo,
.intro-photo,
.review-kit-main figure,
.review-kit-strip figure,
.meta-table,
.data-page .data-content .data-section-card .section-card-body > :is(table, .data-table),
.data-page .data-table,
.calc-canvas{
  border-radius:8px;
}

.card{
  min-height:188px;
  border-color:var(--card-border);
  background:var(--card-bg);
  box-shadow:none;
  padding:18px;
}

.card:hover{
  border-color:var(--accent);
  box-shadow:0 12px 24px rgba(15,118,110,.08);
}

.card-title{
  color:var(--text);
  font-size:17px;
  font-weight:850;
}

.card-sub,
.small,
.muted{
  color:var(--muted);
}

.card-link{
  color:var(--accent);
  font-weight:750;
}

.linklist,
.updates{
  display:grid;
  gap:8px;
  padding:0;
  list-style:none;
}

.linklist li,
.updates li{
  margin:0;
}

.linklist a,
.updates a{
  display:inline;
  color:var(--text);
  font-weight:700;
  overflow-wrap:anywhere;
}

.updates li{
  display:flex;
  align-items:baseline;
  gap:6px 10px;
  flex-wrap:wrap;
}

.category-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(260px, 360px));
  gap:14px;
  max-width:820px;
  margin:18px 0 0;
}

.category-card{
  display:flex;
  align-items:center;
  gap:16px;
  min-height:122px;
  padding:18px;
  border:1px solid var(--border);
  border-radius:8px;
  background:rgba(255,255,251,.82);
  color:var(--text);
  text-decoration:none;
  box-shadow:0 12px 26px rgba(23,33,29,.055);
}

.category-card:hover{
  border-color:var(--accent);
  background:#f9fbf4;
  color:var(--text);
  text-decoration:none;
  box-shadow:0 16px 34px rgba(15,118,110,.1);
}

.category-card-icon{
  flex:0 0 62px;
  width:62px;
  height:62px;
  display:grid;
  place-items:center;
  border:1px solid rgba(15,118,110,.24);
  border-radius:8px;
  background:#e8f5ef;
  color:var(--accent);
}

.category-card-icon svg{
  width:42px;
  height:42px;
  display:block;
}

.brand-grid{
  grid-template-columns:repeat(3, minmax(0, 1fr));
  max-width:1120px;
}

.brand-card{
  min-height:118px;
}

.brand-card-logo{
  flex:0 0 142px;
  width:142px;
  height:62px;
  display:grid;
  place-items:center;
  border:1px solid rgba(15,118,110,.18);
  border-radius:8px;
  background:#fffffb;
  color:var(--accent);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.75);
}

.brand-card-logo :is(img, svg){
  width:124px;
  height:48px;
  object-fit:contain;
  display:block;
}

.data-product-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(300px, 380px));
  gap:14px;
  max-width:820px;
  margin:18px 0 0;
}

.data-product-card{
  display:grid;
  grid-template-columns:auto minmax(0, 1fr) auto;
  align-items:center;
  gap:14px;
  min-height:124px;
  padding:18px;
  border:1px solid var(--border);
  border-radius:8px;
  background:rgba(255,255,251,.82);
  color:var(--text);
  text-decoration:none;
  box-shadow:0 12px 26px rgba(23,33,29,.055);
}

.data-product-card:hover{
  border-color:var(--accent);
  background:#f9fbf4;
  color:var(--text);
  text-decoration:none;
  box-shadow:0 16px 34px rgba(15,118,110,.1);
}

.data-product-icon{
  flex:0 0 62px;
  width:62px;
  height:62px;
  display:grid;
  place-items:center;
  border:1px solid rgba(15,118,110,.24);
  border-radius:8px;
  background:#e8f5ef;
  color:var(--accent);
}

.data-product-icon svg{
  width:42px;
  height:42px;
  display:block;
}

.data-product-copy{
  min-width:0;
  display:grid;
  gap:8px;
}

.data-product-kicker{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
}

.data-product-capacity{
  display:inline-flex;
  align-items:center;
  min-height:26px;
  padding:3px 8px;
  border:1px solid rgba(15,118,110,.24);
  border-radius:6px;
  background:#e8f5ef;
  color:#0a5d57;
  font-size:12px;
  font-weight:850;
  line-height:1;
  white-space:nowrap;
}

.data-product-title{
  min-width:0;
  color:var(--text);
  font-size:20px;
  font-weight:850;
  line-height:1.15;
  overflow-wrap:anywhere;
}

.data-product-arrow{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border:1px solid rgba(15,118,110,.2);
  border-radius:8px;
  background:#f6faf2;
  color:var(--accent);
}

.data-product-arrow svg{
  width:20px;
  height:20px;
  display:block;
}

.category-card-title{
  color:var(--text);
  font-size:20px;
  font-weight:850;
  line-height:1.15;
}

.bullets{
  padding-left:18px;
}

.pill{
  border-radius:6px;
  border-color:rgba(15,118,110,.28);
  background:#e8f5ef;
  color:#0a5d57;
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
}

.section-card{
  border-color:var(--card-border);
  background:var(--card-bg);
  box-shadow:none;
}

.section-card-head{
  background:var(--section-head-bg);
  border-bottom-color:var(--section-head-border);
}

.section-card-head > :is(h2, h3){
  font-size:20px;
}

.section-card-body{
  background:var(--card-bg);
  padding:18px 22px;
}

.cap-switch,
.data-intro-pills,
.calc-modeSwitch,
.calc-filterSwitch{
  gap:6px;
}

.cap-btn,
.data-pill,
.calc-modeBtn,
.btn,
.lang-btn{
  border-radius:6px;
}

.cap-btn,
.data-pill,
.calc-modeBtn{
  border-color:var(--border);
  background:var(--card-bg);
  color:var(--text);
  font-weight:750;
}

.cap-btn:hover,
.data-pill:hover,
.calc-modeBtn:hover{
  background:var(--hover-bg);
  border-color:var(--border-hover);
}

.cap-btn.is-active,
.calc-modeBtn.active,
.data-pill--primary{
  border-color:var(--accent);
  background:var(--accent);
  color:#fff;
  box-shadow:none;
}

.data-pill--primary:hover{
  background:#0a5d57;
  color:#fff;
}

.data-intro-pills::before{
  background:var(--border);
}

.data-intro-desc,
.data-attempt-note,
.review-note{
  color:var(--muted);
}

.data-attempt-note{
  border-color:var(--border);
  background:#f9fbf4;
}

.review-hero-grid,
.testunit-grid{
  gap:14px;
}

.review-hero-grid .intro-photo,
.testunit-photo,
.review-kit-main figure,
.review-kit-strip figure{
  border-color:var(--border);
  background:var(--card-bg);
}

.review-hero-grid .intro-photo img{
  object-fit:contain;
  padding:18px;
}

.review-page .page-header .intro-with-photo .intro-photo,
.review-page .review-hero-grid .intro-photo{
  aspect-ratio:4/3;
  height:auto;
  min-height:0;
}

.review-page .page-header .intro-with-photo .intro-photo img,
.review-page .review-hero-grid .intro-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  padding:0;
}

.review-kit-arrow{
  border-radius:50%;
  border-color:var(--border);
  background:rgba(255,255,251,.94);
}

.review-kit-fade--left{
  background:linear-gradient(to right, rgba(245,247,242,.94), transparent);
}

.review-kit-fade--right{
  background:linear-gradient(to left, rgba(245,247,242,.94), transparent);
}

table{
  color:var(--text);
}

.meta-table,
.data-table,
.calc-table{
  background:var(--card-bg);
}

.meta-table th,
.meta-table td,
.data-table th,
.data-table td,
.calc-table th,
.calc-table td{
  border-color:var(--border);
}

.meta-table th,
.data-table th,
.calc-table thead th,
.data-page .data-content .data-section-card .section-card-body > :is(table, .data-table) thead th{
  background:#edf3e8;
  color:#3f4a42;
  font-weight:800;
}

.meta-table td,
.data-table td,
.calc-table tbody td{
  background:var(--card-bg);
}

.data-table th:nth-child(2),
.data-table td:nth-child(2),
.data-page .data-content .data-section-card .section-card-body > :is(table, .data-table) :is(thead th, tbody td):nth-child(2){
  background:#e2f1ee;
  color:var(--text);
}

.data-table tbody td:nth-child(n+3),
.data-page .data-content .data-section-card .section-card-body > :is(table, .data-table) :is(th, td):nth-child(n+3){
  background:#fbfcf8;
  color:#46524a;
}

.data-table tbody tr:nth-child(even) td,
.calc-table tbody tr:nth-child(even) td{
  background:var(--table-zebra);
}

@media (hover:hover){
  table tbody tr:hover td,
  table tbody tr:hover th,
  .data-page .data-content .data-section-card .section-card-body > :is(table, .data-table) tbody tr:hover td{
    background:var(--table-hover);
  }

  .data-page .data-content .data-section-card .section-card-body > :is(table, .data-table) tbody tr:hover td:nth-child(2){
    background:#d8ebe7;
  }
}

.calc-card{
  border-color:var(--border);
  background:rgba(255,255,251,.92);
  box-shadow:var(--shadow);
  padding:18px;
}

.calc-label{
  color:#3f4a42;
  font-weight:800;
}

.calc-number{
  border-color:var(--border);
  border-radius:6px;
  background:var(--card-bg);
  color:var(--text);
}

.calc-range,
.review-inline-calc-range{
  accent-color:var(--accent);
}

.calc-modeBlock{
  border-color:var(--border);
  border-radius:8px;
  background:#f9fbf4;
}

.calc-modeBtn.active{
  box-shadow:0 0 0 2px rgba(15,118,110,.16);
}

.calc-divider{
  background:var(--border);
}

.calc-canvas{
  border-color:var(--border);
  background:var(--card-bg);
}

.calc-dot-slc,
.review-inline-calc-swatch-slc,
.review-inline-calc-seg-slc{
  background:var(--accent-2);
}

.calc-dot-sus,
.calc-dot-price,
.review-inline-calc-swatch,
.review-inline-calc-seg-sus{
  background:var(--accent);
}

.review-inline-calc-swatch,
.review-inline-calc-swatch-slc{
  box-shadow:none;
}

.calc-out{
  border-color:var(--border);
  background:#edf3e8;
}

.calc-big,
.review-inline-calc-time,
.review-inline-calc-v,
.calc-tableMetaTitle{
  color:var(--text);
  overflow-wrap:anywhere;
}

.calc-tableWrap{
  border-color:var(--border);
  background:var(--card-bg);
}

.calc-table{
  min-width:920px;
}

.calc-table thead th{
  background:#edf3e8;
  color:#3f4a42;
}

.calc-bestRow,
.calc-bestRow td{
  background:#fff3d6 !important;
}

.calc-priceChartOverlay .calc-priceChartModelLink,
.calc-rwChartOverlay .calc-rwChartModelLink,
.calc-modelLink{
  color:var(--text);
}

.calc-priceChartOverlay .calc-priceChartModelLink:hover,
.calc-rwChartOverlay .calc-rwChartModelLink:hover,
.calc-modelLink:hover{
  color:var(--accent);
}

.calc-priceChartModelInfo .calc-priceChartModelLink,
.calc-priceChartModelInfo .calc-priceChartModelLabel{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.review-inline-calc{
  border-color:var(--border);
  background:var(--card-bg);
  box-shadow:none;
}

.review-inline-calc-head{
  border-bottom-color:var(--border);
  background:#edf3e8;
}

.review-inline-calc-result,
.review-inline-calc-bar-wrap{
  border-color:var(--border);
  border-radius:8px;
  background:#f9fbf4;
  box-shadow:none;
}

.review-inline-calc-bar{
  background:#dce5d8;
}

.review-inline-calc-bar-meta{
  border-top-color:var(--border);
  background:var(--card-bg);
}

.review-inline-calc-link{
  color:var(--accent);
}

.photo-overlay{
  background:rgba(15,22,19,.86);
}

pre,
.highlight,
.chroma{
  border-color:var(--border);
  border-radius:8px;
  background:#edf3e8 !important;
}

code{
  border-radius:5px;
  background:#e8efe4;
}

@media (max-width: 1040px){
  .home-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

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

  .home-hero-media{
    min-height:230px;
  }
}

@media (max-width: 768px){
  .container{
    padding:0 16px;
  }

  .site-main{
    padding-top:16px;
  }

  .header-inner{
    padding:12px 16px;
  }

  .brand-tagline{
    max-width:100%;
  }

  .header-right{
    flex-direction:column;
    align-items:flex-start;
    width:100%;
  }

  .topnav{
    width:100%;
    padding:3px;
  }

  .topnav a{
    flex:0 0 auto;
    font-size:13px;
    padding:7px 9px;
  }

  .home-title{
    font-size:44px;
  }

  .home-sub{
    font-size:18px;
  }

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

  .category-grid{
    grid-template-columns:1fr;
    max-width:100%;
  }

  .category-card{
    min-height:96px;
    padding:14px;
  }

  .category-card-icon{
    flex-basis:54px;
    width:54px;
    height:54px;
  }

  .category-card-icon svg{
    width:36px;
    height:36px;
  }

  .brand-card{
    gap:12px;
  }

  .brand-card-logo{
    flex-basis:112px;
    width:112px;
    height:56px;
  }

  .brand-card-logo :is(img, svg){
    width:96px;
    height:42px;
  }

  .data-product-grid{
    grid-template-columns:1fr;
    max-width:100%;
  }

  .data-product-card{
    min-height:104px;
    padding:14px;
    gap:12px;
  }

  .data-product-icon{
    flex-basis:54px;
    width:54px;
    height:54px;
  }

  .data-product-icon svg{
    width:36px;
    height:36px;
  }

  .data-product-arrow{
    width:32px;
    height:32px;
  }

  .card{
    min-height:auto;
  }

  .page-header{
    padding:18px 0;
  }

  .data-intro-row{
    gap:10px;
  }

  .data-intro-actions{
    width:100%;
    flex-direction:column;
    align-items:flex-start;
    gap:6px;
    margin-left:0;
  }

  .data-intro-actions .data-intro-desc{
    position:static;
    right:auto;
    margin-top:0;
    white-space:normal;
  }

  .data-intro-pills{
    width:100%;
    margin-left:0;
    white-space:normal;
  }

  .data-pill,
  .cap-btn{
    min-height:38px;
    height:auto;
    padding:9px 11px;
    line-height:1.2;
  }

  .section-card-body{
    padding:14px;
  }

  .review-hero-grid .intro-photo,
  .testunit-photo{
    min-height:0;
  }

  .calc-controls{
    gap:14px;
  }

  .calc-page,
  .calc-card,
  .calc-controls,
  .calc-left,
  .calc-right,
  .calc-canvasWrap,
  .calc-rwChartWrap,
  .calc-priceChartWrap{
    min-width:0;
    max-width:100%;
  }

  .calc-modeSwitch{
    min-width:0;
    max-width:100%;
    overflow:visible;
    flex-wrap:nowrap;
  }

  .calc-filterSwitch{
    overflow-x:auto;
    flex-wrap:nowrap;
    padding-bottom:2px;
  }

  .calc-modeBtn{
    min-width:0;
    flex:1 1 0;
    white-space:normal;
    min-height:40px;
    padding:8px 10px;
  }

  .calc-canvas{
    height:320px;
  }

  .calc-priceChartAmazon{
    display:none;
  }
}

@media (max-width: 640px){
  h1{
    font-size:29px;
    line-height:1.08;
  }

  .page-header h1,
  .calc-title{
    max-width:100%;
    font-size:28px;
    line-height:1.08;
    overflow-wrap:anywhere;
  }

  h2{
    font-size:21px;
  }

  .home-hero{
    min-height:0;
    padding:18px 0;
  }

  .home-title{
    font-size:38px;
  }

  .home-hero-media{
    min-height:190px;
  }

  .home-hero-media img{
    min-height:190px;
    padding:18px;
  }

  .meta-table,
  .meta-table tbody,
  .meta-table tr,
  .meta-table th,
  .meta-table td{
    display:block;
    width:100% !important;
  }

  .meta-table thead{
    display:none;
  }

  .meta-table th{
    border-bottom:0;
    padding-bottom:4px;
    white-space:normal;
  }

  .meta-table td{
    padding-top:4px;
  }

  .data-page .data-content .data-section-card .section-card-body{
    padding:0;
  }

  .data-page .data-content .data-section-card .section-card-body > :is(table, .data-table),
  .data-page .data-table{
    width:100%;
    margin:0;
    border-left:0;
    border-right:0;
    border-radius:0;
    table-layout:fixed;
  }

  .data-page .data-content .data-section-card .section-card-body > :is(table, .data-table) th,
  .data-page .data-content .data-section-card .section-card-body > :is(table, .data-table) td,
  .data-table th,
  .data-table td{
    padding:10px 9px;
    font-size:13px;
    line-height:1.28;
  }

  .data-table th:first-child,
  .data-table td:first-child,
  .data-page .data-content .data-section-card .section-card-body > :is(table, .data-table) th:first-child,
  .data-page .data-content .data-section-card .section-card-body > :is(table, .data-table) td:first-child{
    width:58%;
    min-width:0;
    max-width:none;
  }

  .data-table th:nth-child(2),
  .data-table td:nth-child(2),
  .data-page .data-content .data-section-card .section-card-body > :is(table, .data-table) th:nth-child(2),
  .data-page .data-content .data-section-card .section-card-body > :is(table, .data-table) td:nth-child(2){
    width:42%;
    text-align:right;
  }

  .data-table th:nth-child(n+3),
  .data-table td:nth-child(n+3),
  .data-page .data-content .data-section-card .section-card-body > :is(table, .data-table) th:nth-child(n+3),
  .data-page .data-content .data-section-card .section-card-body > :is(table, .data-table) td:nth-child(n+3){
    display:none;
  }

  .calc-card{
    padding:12px;
  }

  .calc-table{
    min-width:760px;
  }

  .calc-table thead th,
  .calc-table tbody td{
    padding:9px 10px;
    font-size:13px;
  }

  .calc-table th:first-child,
  .calc-table td:first-child{
    position:sticky;
    left:0;
    z-index:2;
    width:48px !important;
    min-width:48px;
    background:var(--card-bg);
  }

  .calc-table th:nth-child(2),
  .calc-table td:nth-child(2){
    position:sticky;
    left:48px;
    z-index:2;
    min-width:190px;
    background:var(--card-bg);
    box-shadow:1px 0 0 var(--border);
  }

  .calc-table thead th:first-child,
  .calc-table thead th:nth-child(2){
    z-index:3;
    background:#edf3e8;
  }

  .calc-bestRow td:first-child,
  .calc-bestRow td:nth-child(2){
    background:#fff3d6 !important;
  }
}

@media (max-width: 420px){
  .topnav{
    width:100%;
  }

  .home-title{
    font-size:34px;
  }

  .page-header h1,
  .calc-title{
    font-size:27px;
  }

  .calc-canvas{
    height:300px;
  }

  .calc-table{
    min-width:720px;
  }
}

/* ===== Data archive history ===== */
.data-archive-banner{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:40px;
  max-width:min(760px, 100%);
  margin:0;
  padding:0 12px;
  border:1px solid #cfd4dc;
  border-radius:999px;
  background:#f4f5f6;
  color:#3f454d;
  font-size:14px;
  line-height:1.2;
}

.data-archive-banner strong{
  flex:0 0 auto;
  color:#20242a;
  font-weight:850;
}

.data-archive-banner span{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.data-page--archive .section-card-head{
  background:#eef0f2;
  border-bottom-color:#d6d9de;
}

.data-page--archive .data-table,
.data-page--archive .meta-table{
  filter:saturate(.25);
}

.data-page--archive .data-table th,
.data-page--archive .data-table td,
.data-page--archive .meta-table th{
  background:#eceff1;
  color:#4b5563;
}

.data-page--archive .data-table td,
.data-page--archive .meta-table td,
.data-page--archive .data-content .data-section-card .section-card-body > :is(table, .data-table) tbody td{
  background:#f7f7f8;
  color:#4b5563;
}

.data-page--archive .data-table :is(th, td):nth-child(2),
.data-page--archive .data-content .data-section-card .section-card-body > :is(table, .data-table) :is(thead th, tbody td):nth-child(2){
  background:#e3e6e8;
  color:#2f353c;
}

.data-history-card{
  margin-top:24px;
}

.data-history-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.data-history-wrap{
  width:100%;
  overflow-x:auto;
}

.data-history-table{
  width:100%;
  min-width:860px;
  border-collapse:separate;
  border-spacing:0;
  border:1px solid var(--border);
  border-radius:8px;
  overflow:hidden;
  background:var(--card-bg);
  font-size:14px;
}

.data-history-table th,
.data-history-table td{
  padding:11px 12px;
  border-bottom:1px solid var(--border);
  border-right:1px solid var(--border);
  text-align:left;
  vertical-align:middle;
}

.data-history-table th:last-child,
.data-history-table td:last-child{
  border-right:0;
}

.data-history-table tbody tr:last-child td{
  border-bottom:0;
}

.data-history-table thead th{
  background:#edf3e8;
  color:#3f4a42;
  font-weight:800;
}

.data-history-row-current td{
  background:#f0f8f2;
}

.data-history-row-archived td{
  background:#fbfbfc;
  color:#525963;
}

.data-history-row-archived.is-active-archive td{
  background:#f1f2f4;
  box-shadow:inset 0 1px 0 #d8dce2, inset 0 -1px 0 #d8dce2;
}

.data-history-status{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:3px 8px;
  border-radius:6px;
  font-size:12px;
  font-weight:850;
  line-height:1;
  white-space:nowrap;
}

.data-history-status-current{
  background:#14845f;
  color:#fff;
}

.data-history-status-archived{
  background:#8b929c;
  color:#fff;
}

.data-history-action{
  display:inline-flex;
  align-items:center;
  min-height:32px;
  padding:6px 10px;
  border:1px solid var(--border);
  border-radius:6px;
  background:#fff;
  color:var(--text);
  font-weight:750;
  text-decoration:none;
  white-space:nowrap;
}

.data-history-action:hover{
  border-color:var(--border-hover);
  background:var(--hover-bg);
  text-decoration:none;
}

.data-history-dash{
  color:var(--muted);
}

.data-history-note{
  margin:12px 0 0;
  max-width:none;
  color:var(--muted);
  font-size:14px;
}

@media (max-width: 640px){
  .data-archive-banner{
    align-items:flex-start;
    height:auto;
    min-height:0;
    padding:8px 10px;
    border-radius:8px;
  }

  .data-archive-banner span{
    white-space:normal;
  }

  .data-history-table{
    min-width:760px;
    font-size:13px;
  }

  .data-history-table th,
  .data-history-table td{
    padding:9px 10px;
  }
}

/* =========================================================
   Calculator: write/read — context + recommendation + time-axis leaderboard
   ========================================================= */

.calc-page{
  --calc-rank-w:30px;
  --calc-logo-w:75px;
  --calc-time-w:152px;
  --calc-col-gap:16px;
  --calc-pad:20px;
}

.calc-subtitle{
  max-width:760px;
  margin:8px 0 18px;
  color:var(--muted);
  font-size:16px;
  line-height:1.5;
}
.calc-subtitle:empty{ display:none; }

.calc-modeTabs{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:8px;
  margin:0 0 16px;
}

.calc-modeTab{
  padding:9px 16px;
  border:1px solid var(--border);
  border-radius:8px;
  background:transparent;
  color:var(--ink-soft);
  font-family:inherit;
  font-size:14px;
  font-weight:700;
  line-height:1.2;
  cursor:pointer;
  transition:border-color .15s ease, background-color .15s ease, color .15s ease;
}

.calc-modeTab:hover{
  background:var(--hover-bg);
  border-color:var(--border-hover);
}

.calc-modeTab.active{
  border-color:var(--accent);
  background:var(--card-bg);
  color:var(--accent);
  font-weight:850;
  box-shadow:inset 0 0 0 1px var(--accent);
}

/* ----- Input card ----- */

.calc-inputCard{
  margin:0 0 16px;
  padding:18px 20px;
  border:1px solid var(--border);
  border-radius:8px;
  background:rgba(255,255,251,.92);
  box-shadow:var(--shadow);
}

.calc-inputTop{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
}

.calc-inputLabel{
  color:var(--ink-soft);
  font-size:15px;
  font-weight:750;
}

.calc-inputValue{
  flex:0 0 auto;
  color:var(--text);
  font-size:clamp(26px, 3.4vw, 38px);
  font-weight:850;
  line-height:1;
}

.calc-inputUnit{
  margin-left:4px;
  color:var(--muted);
  font-size:.42em;
  font-weight:750;
}

.calc-inputCard .calc-range{
  display:block;
  width:100%;
  margin:0;
}

.calc-presets{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:14px;
}

.calc-preset{
  flex:1 1 0;
  min-width:150px;
  display:flex;
  align-items:baseline;
  justify-content:center;
  gap:6px;
  padding:10px 14px;
  border:1px solid var(--border);
  border-radius:8px;
  background:var(--card-bg);
  color:var(--text);
  font-family:inherit;
  font-size:14px;
  line-height:1.2;
  white-space:nowrap;
  cursor:pointer;
  transition:border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.calc-preset:hover{
  border-color:var(--border-hover);
  background:var(--hover-bg);
}

.calc-preset.is-active{
  border-color:var(--accent);
  background:var(--accent-soft);
  box-shadow:0 0 0 2px rgba(15,118,110,.16);
}

.calc-preset-size{ font-weight:850; }
.calc-preset-sep{ color:var(--muted); }
.calc-preset-name{ color:var(--ink-soft); font-weight:650; }
.calc-preset.is-active .calc-preset-size,
.calc-preset.is-active .calc-preset-name{ color:#0a5d57; }

/* ----- Draft protocol context ----- */

.calc-protocolWarning{
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin:0 0 16px;
  padding:14px 16px;
  border:1px solid #d6a443;
  border-radius:8px;
  background:#fff7df;
  color:#5b4317;
}

.calc-protocolWarning[hidden]{ display:none !important; }

.calc-protocolWarning-icon{
  flex:0 0 auto;
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  border-radius:999px;
  background:#a96e00;
  color:#fff;
  font-size:16px;
  font-weight:900;
  line-height:1;
}

.calc-protocolWarning-body{ min-width:0; }

.calc-protocolWarning-title{
  color:#503a12;
  font-size:15px;
  font-weight:850;
  line-height:1.3;
}

.calc-protocolWarning-text,
.calc-protocolWarning-list{
  margin-top:3px;
  font-size:13px;
  line-height:1.4;
  overflow-wrap:anywhere;
}

.calc-protocolWarning-list{
  color:#76581c;
  font-weight:700;
}

/* ----- Recommendation banner ----- */

.calc-reco{
  display:flex;
  align-items:flex-start;
  gap:14px;
  margin:0 0 16px;
  padding:16px 18px;
  border:1px solid rgba(15,118,110,.22);
  border-radius:8px;
  background:#e7f3ec;
}

.calc-reco-icon{
  flex:0 0 auto;
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  border-radius:999px;
  background:var(--accent);
  color:#fff;
}

.calc-reco-body{ min-width:0; }

.calc-reco-eyebrow{
  margin-bottom:3px;
  color:#0a5d57;
  font-size:13px;
  font-weight:800;
}
.calc-reco-eyebrow:empty{ display:none; }

.calc-reco-main{
  color:var(--text);
  font-size:17px;
  font-weight:800;
  line-height:1.35;
  overflow-wrap:anywhere;
}

.calc-reco-sub{
  margin-top:4px;
  color:#3f6b58;
  font-size:14px;
  line-height:1.35;
  overflow-wrap:anywhere;
}
.calc-reco-sub:empty{ display:none; }

.calc-reco.is-mixed-protocol{
  border-color:var(--border);
  background:var(--soft);
}

.calc-reco.is-mixed-protocol .calc-reco-eyebrow{
  color:var(--ink-soft);
}

/* ----- Time-axis leaderboard ----- */

.calc-lb{
  border:1px solid var(--border);
  border-radius:8px;
  background:var(--card-bg);
  box-shadow:var(--shadow);
  overflow:hidden;
}

.calc-lb-axis{
  display:grid;
  grid-template-columns:var(--calc-rank-w) var(--calc-logo-w) minmax(0,1fr) var(--calc-time-w);
  gap:var(--calc-col-gap);
  padding:14px var(--calc-pad) 10px;
  border-bottom:1px solid var(--border);
}

.calc-lb-axisInner{
  grid-column:3;
  position:relative;
  height:16px;
}

.calc-lb-tick{
  position:absolute;
  bottom:0;
  color:var(--muted);
  font-size:12px;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}

.calc-lb-row{
  display:grid;
  grid-template-columns:var(--calc-rank-w) var(--calc-logo-w) minmax(0,1fr) var(--calc-time-w);
  gap:var(--calc-col-gap);
  align-items:center;
  padding:14px var(--calc-pad);
  border-bottom:1px solid var(--border);
}

.calc-lb-logo{
  display:grid;
  place-items:center;
  width:var(--calc-logo-w);
  height:44px;
  padding:5px 6px;
  border:1px solid var(--border);
  border-radius:6px;
  background:#fffffb;
  overflow:hidden;
}

.calc-lb-logoImg{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}

.calc-lb-logo--fallback{
  background:#e8f5ef;
  border-color:rgba(15,118,110,.24);
  color:#0a5d57;
  font-size:12px;
  font-weight:850;
}

.calc-lb-row:last-child{ border-bottom:0; }

.calc-lb-row.is-best{
  background:#eef7f1;
}

.calc-lb-rank{
  display:grid;
  place-items:center;
  width:26px;
  height:26px;
  border-radius:999px;
  background:var(--soft);
  color:var(--muted);
  font-size:13px;
  font-weight:850;
  font-variant-numeric:tabular-nums;
}

.calc-lb-row.is-best .calc-lb-rank{
  background:#d4e9dd;
  color:#0a5d57;
}

.calc-lb-main{
  min-width:0;
  position:relative;
  background-image:repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent calc(var(--calc-step, 100%) - 1px),
    rgba(15,118,110,.07) calc(var(--calc-step, 100%) - 1px),
    rgba(15,118,110,.07) var(--calc-step, 100%)
  );
}

.calc-lb-name-wrap{ min-width:0; }

.calc-lb-name{
  display:block;
  max-width:100%;
  overflow:hidden;
  color:var(--text);
  font-size:15px;
  font-weight:800;
  line-height:1.25;
  text-overflow:ellipsis;
  white-space:nowrap;
  text-decoration:none;
}

a.calc-lb-name:hover{
  color:var(--accent);
  text-decoration:underline;
}

.calc-lb-sub{
  margin:2px 0 3px;
  color:var(--muted);
  font-size:13px;
  line-height:1.3;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.calc-lb-protocol{
  display:flex;
  flex-wrap:wrap;
  gap:3px 5px;
  margin:0 0 9px;
  color:#53635b;
  font-size:12px;
  line-height:1.3;
  overflow-wrap:anywhere;
}

.calc-lb-protocol-label{
  color:var(--ink-soft);
  font-weight:800;
}

.calc-lb-protocol-value{ min-width:0; }

.calc-lb-track{
  position:relative;
  width:100%;
  height:10px;
  border-radius:999px;
  background:#e3eadf;
  overflow:hidden;
}

.calc-lb-fill{
  display:flex;
  height:100%;
  min-width:0;
  border-radius:999px;
  overflow:hidden;
  transition:width .35s ease;
}

.calc-lb-seg{ height:100%; display:block; }
.calc-lb-seg--slc{ background:var(--accent-2); }
.calc-lb-seg--sus{ background:var(--accent); }

.calc-lb-time{
  text-align:right;
  min-width:0;
}

.calc-lb-timeBig{
  color:var(--text);
  font-size:16px;
  font-weight:850;
  line-height:1.2;
  overflow-wrap:anywhere;
}

.calc-lb-row.is-best .calc-lb-timeBig{ color:var(--accent); }

.calc-lb-delta{
  margin-top:3px;
  font-size:12px;
  font-weight:700;
  line-height:1.2;
}
.calc-lb-delta.is-ref{ color:var(--accent); }
.calc-lb-delta.is-slower{ color:#b91c1c; }

.calc-lb-legend{
  display:flex;
  flex-wrap:wrap;
  gap:18px;
  padding:12px var(--calc-pad);
  border-top:1px solid var(--border);
  color:var(--muted);
  font-size:13px;
}

.calc-lb-foot{
  padding:11px var(--calc-pad);
  border-top:1px solid var(--border);
  font-size:13px;
}

.calc-lb-methodology{ color:var(--accent); font-weight:700; }

@media (max-width: 640px){
  .calc-page{
    --calc-rank-w:22px;
    --calc-logo-w:53px;
    --calc-time-w:96px;
    --calc-col-gap:9px;
    --calc-pad:13px;
  }

  .calc-lb-logo{ height:37px; padding:4px 5px; }
  .calc-lb-logo--fallback{ font-size:10px; padding:0; }

  .calc-subtitle{ font-size:15px; margin-bottom:14px; }

  .calc-modeTab{ flex:1 1 auto; padding:9px 10px; }

  .calc-inputCard{ padding:14px; }

  .calc-preset{
    flex:1 1 calc(50% - 4px);
    min-width:calc(50% - 4px);
    padding:9px 8px;
  }

  .calc-reco{ padding:13px 14px; gap:12px; }
  .calc-reco-main{ font-size:15px; }

  .calc-protocolWarning{ padding:12px 13px; }

  .calc-lb-rank{ width:22px; height:22px; font-size:12px; }
  .calc-lb-name{ font-size:14px; }
  .calc-lb-sub{ font-size:12px; }
  .calc-lb-protocol{ font-size:11px; }
  .calc-lb-timeBig{ font-size:14px; }
  .calc-lb-delta{ font-size:11px; }
  .calc-lb-tick{ font-size:11px; }
}

.review-page .review-hero-grid--photo-only .review-hero-photo,
.review-page .review-hero-grid--photo-only .intro-photo{
  width:100%;
}
.review-page .review-hero-grid--photo-only .intro-photo{
  aspect-ratio:auto;
  height:auto;
  min-height:0;
}
.review-page .review-hero-grid--photo-only .intro-photo img{
  display:block;
  width:100%;
  height:auto;
  object-fit:contain;
}
