/* ==========================================================================
   Roast Lab — Main stylesheet
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 .6em;
}

h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); }
h3 { font-size: clamp(1.18rem, 2vw, 1.4rem); }
h4 { font-size: 1.08rem; }
h5 { font-size: 1rem; }

p { margin: 0 0 1.15em; }

a { color: var(--link); text-decoration: none; transition: color var(--t-color); }
a:hover { color: var(--link-hover); }

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

ul, ol { margin: 0 0 1.15em; padding-left: 1.4em; }
li { margin-bottom: .45em; }

hr { border: 0; border-top: 1px solid var(--border); margin: 34px 0; }

code, kbd, pre, samp { font-family: var(--font-mono); font-size: .9em; }

code {
  background: var(--charcoal-800);
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  padding: 2px 6px;
  color: var(--copper-300);
}

pre {
  background: var(--charcoal-950);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 18px 20px;
  overflow-x: auto;
}
pre code { background: none; border: 0; padding: 0; }

blockquote {
  margin: 24px 0;
  padding: 4px 0 4px 20px;
  border-left: 4px solid var(--copper-900);
  color: var(--text-muted);
  font-style: italic;
}

button { font-family: inherit; font-size: inherit; }

::selection { background: var(--copper-500); color: var(--charcoal-950); }

:focus-visible {
  outline: 3px solid var(--copper-400);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--copper-500); color: var(--charcoal-950);
  padding: 10px 18px; border-radius: 0 0 var(--r-card) 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------- Layout */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: var(--container-narrow); }
.container-wide { max-width: var(--container-wide); }

.section { padding: 60px 0; }
.section-sm { padding: 38px 0; }
.section-tight { padding: 42px 0 60px; }
.section-deep { background: var(--bg-deep); }
.section-raised { background: var(--charcoal-850); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }

.stack > * + * { margin-top: 18px; }

/* ------------------------------------------------------------- Typography */
.eyebrow {
  display: inline-block;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .7em;
  font-family: var(--font-body);
}

.lead { font-size: 1.06rem; color: var(--text-muted); line-height: 1.72; }

.section-head { margin-bottom: 30px; }
.section-head p { color: var(--text-muted); max-width: 68ch; margin-bottom: 0; }
.section-head--split {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 22px; flex-wrap: wrap;
}
.section-head--split > div:first-child { flex: 1 1 420px; }

.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.mono { font-family: var(--font-mono); }
.center { text-align: center; }

.divider { height: 1px; background: var(--border); border: 0; margin: 0; }

/* ---------------------------------------------------------------- Header */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: var(--charcoal-900);
  border-bottom: 1px solid var(--border-accent);
}
.header-main {
  display: flex; align-items: center; gap: 16px;
  height: var(--header-h);
  flex-wrap: nowrap;
  position: relative;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  flex: 0 0 auto; color: var(--text);
}
.brand:hover { color: var(--text); }
.brand-mark {
  width: 30px; height: 30px; border-radius: var(--r-sm);
  background: var(--copper-500);
  display: flex; align-items: center; justify-content: center;
  color: var(--charcoal-950); flex: 0 0 auto;
}
.brand-mark svg { width: 19px; height: 19px; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-head); font-size: 1.05rem; font-weight: 700;
  letter-spacing: -.01em;
}
.brand-tag {
  font-size: .55rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--accent); font-weight: 700;
}

.main-nav { flex: 1 1 auto; display: flex; justify-content: center; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-list > li { margin: 0; position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .84rem; font-weight: 500; color: var(--text-muted);
  padding: 6px 10px; border-radius: var(--r-sm);
  transition: background var(--t-color), color var(--t-color);
  white-space: nowrap;
}
.nav-link:hover { background: rgba(199, 123, 58, .12); color: var(--copper-300); }
.nav-link.is-current {
  color: var(--copper-400);
  box-shadow: inset 0 -2px 0 var(--copper-500);
}
.nav-caret { width: 9px; height: 9px; opacity: .7; }

.dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 268px;
  background: var(--charcoal-850);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0; visibility: hidden;
  transition: opacity var(--t-color), transform var(--t-color), visibility var(--t-color);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.dd-label {
  font-size: .64rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--text-dim); font-weight: 800; padding: 8px 10px 4px;
}
.dd-item {
  display: block; padding: 7px 10px; border-radius: var(--r-xs);
  color: var(--text-muted); font-size: .84rem; font-weight: 500;
  transition: background var(--t-color), color var(--t-color);
}
.dd-item:hover { background: var(--charcoal-800); color: var(--copper-400); }
.dd-item--all {
  border-top: 1px solid var(--border); margin-top: 6px;
  padding-top: 9px; color: var(--copper-400); font-weight: 700;
}
.dd-desc { font-size: .74rem; color: var(--text-dim); font-weight: 400; }

.header-tools { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

.search-form { position: relative; }
.search-form input {
  width: 150px; height: 32px;
  background: var(--charcoal-850);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  color: var(--text);
  font-size: .82rem;
  padding: 0 12px 0 32px;
  transition: width var(--t-color), border-color var(--t-color);
  font-family: inherit;
}
.search-form input::placeholder { color: var(--text-dim); }
.search-form input:focus {
  width: 200px; outline: none;
  border-color: var(--copper-500);
  box-shadow: var(--glow-copper);
}
.search-form .search-icon {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  width: 13px; height: 13px; color: var(--text-dim); pointer-events: none;
}

.nav-toggle {
  display: none;
  width: 38px; height: 38px;
  background: var(--charcoal-850);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-muted);
  cursor: pointer;
  align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.nav-toggle:hover { border-color: var(--copper-900); color: var(--copper-300); }
.nav-toggle svg { width: 17px; height: 17px; }

/* Quick link strip (second row) */
.header-strip {
  border-top: 1px solid var(--border);
  padding: 7px 0;
  background: var(--charcoal-950);
  overflow-x: auto;
  scrollbar-width: none;
}
.header-strip::-webkit-scrollbar { display: none; }
.strip-inner { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.strip-label {
  font-size: .64rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--text-dim); font-weight: 800; flex: 0 0 auto;
}
.strip-link {
  font-size: .76rem; color: var(--text-muted); font-weight: 500;
  padding: 3px 10px; border-radius: var(--r-pill);
  border: 1px solid var(--border);
  transition: all var(--t-color);
}
.strip-link:hover {
  color: var(--copper-300);
  border-color: var(--copper-900);
  background: var(--copper-notice-bg);
}

/* ------------------------------------------------------------------ Hero */
.hero { position: relative; background: var(--charcoal-950); overflow: hidden; }
.hero-viewport { position: relative; height: 460px; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .7s ease, visibility .7s ease;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide .hero-art { position: absolute; inset: 0; }
.hero-slide .hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, #121110 0%, rgba(18,17,16,.85) 46%, rgba(199,123,58,.25) 100%);
}
.hero-inner {
  position: relative; z-index: 2; height: 100%;
  display: flex; align-items: center;
}
.hero-copy { max-width: 620px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(199, 123, 58, .16);
  border: 1px solid var(--copper-900);
  color: var(--copper-300);
  border-radius: var(--r-pill);
  padding: 5px 14px;
  font-size: .7rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 18px;
}
.hero-title {
  font-size: clamp(1.95rem, 4.2vw, 2.9rem);
  line-height: 1.16; margin-bottom: 14px;
}
.hero-title em { color: var(--copper-400); font-style: normal; }
.hero-sub { font-size: 1.02rem; color: var(--text-muted); margin-bottom: 26px; max-width: 54ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-dots {
  position: absolute; left: 0; right: 0; bottom: 20px; z-index: 3;
  display: flex; justify-content: center; gap: 9px;
}
.hero-dot {
  width: 30px; height: 4px; padding: 0;
  border: 0; border-radius: var(--r-pill);
  background: var(--charcoal-600); cursor: pointer;
  transition: width var(--t-card), background var(--t-card);
}
.hero-dot.is-active { width: 46px; background: var(--copper-500); }

.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(18, 17, 16, .68);
  border: 1px solid var(--border-strong);
  color: var(--text-muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t-color);
}
.hero-arrow:hover { background: var(--copper-500); border-color: var(--copper-500); color: var(--charcoal-950); }
.hero-arrow svg { width: 15px; height: 15px; }
.hero-arrow--prev { left: 18px; }
.hero-arrow--next { right: 18px; }

/* ------------------------------------------------------------- Trust bar */
.trust-bar { background: var(--charcoal-900); border-bottom: 1px solid var(--border); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; padding: 32px 0; }
.trust-item { display: flex; gap: 13px; align-items: flex-start; }
.trust-icon {
  width: 38px; height: 38px; flex: 0 0 auto;
  border-radius: var(--r-sm);
  background: var(--copper-notice-bg);
  border: 1px solid var(--copper-900);
  color: var(--copper-400);
  display: flex; align-items: center; justify-content: center;
}
.trust-icon svg { width: 19px; height: 19px; }
.trust-item h4 { font-size: .94rem; margin: 0 0 3px; font-family: var(--font-body); font-weight: 700; }
.trust-item p { font-size: .82rem; color: var(--text-dim); margin: 0; line-height: 1.55; }

/* ----------------------------------------------------------------- Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow var(--t-card), transform var(--t-card), border-color var(--t-card);
  position: relative;
}
.card:hover {
  box-shadow: var(--shadow-lg), var(--glow-copper);
  transform: translateY(-3px);
  border-color: var(--copper-900);
}
.card-media { position: relative; aspect-ratio: 16 / 10; background: var(--charcoal-950); overflow: hidden; }
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 18px; display: flex; flex-direction: column; flex: 1 1 auto; }
.card-title {
  font-family: var(--font-head); font-size: 1.06rem; font-weight: 700;
  line-height: 1.3; margin: 0 0 7px; color: var(--text);
}
.card-title a { color: inherit; }
.card:hover .card-title a { color: var(--copper-400); }
.card-text { font-size: .86rem; color: var(--text-muted); line-height: 1.6; margin: 0 0 14px; flex: 1 1 auto; }
.card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: auto; padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: .76rem; color: var(--text-dim);
}
.card-arrow { color: var(--copper-500); font-weight: 700; transition: transform var(--t-color); display: inline-flex; }
.card:hover .card-arrow { transform: translateX(3px); }

/* Category card */
.cat-card .cat-icon {
  width: 46px; height: 46px; border-radius: var(--r-sm);
  background: var(--copper-notice-bg);
  border: 1px solid var(--copper-900);
  color: var(--copper-400);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.cat-card .cat-icon svg { width: 23px; height: 23px; }
.cat-count {
  font-size: .72rem; font-family: var(--font-mono);
  color: var(--copper-500); font-weight: 700;
}

/* Tool card */
.tool-card .card-media { background: var(--charcoal-950); }
.tool-card .card-media img { object-fit: contain; padding: 14px; }
.tool-card .card-media img { transition: transform .4s ease; }

/* Blog card */
.blog-card .card-media { aspect-ratio: 16 / 9; }
.blog-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: .72rem; color: var(--text-dim); margin-bottom: 9px;
}
.blog-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-dim); }

/* Calculator card */
.calc-card { border-color: var(--copper-900); }
.calc-card .card-body { padding: 22px 18px; }

/* ----------------------------------------------------------- Steps (home) */
ol.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.steps li { margin: 0; }
.step-figure {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--charcoal-950);
  border: 1px solid var(--border);
  margin-bottom: 14px;
}
.step-figure img { width: 100%; height: 100%; object-fit: cover; }
.step-num {
  position: absolute; top: 10px; left: 10px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--copper-500); color: var(--charcoal-950);
  font-family: var(--font-head); font-weight: 700; font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}
.step-label {
  font-size: .66rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--copper-500);
  display: block; margin-bottom: 5px;
}
.steps h3 { font-size: 1.02rem; margin-bottom: 6px; }
.steps p { font-size: .84rem; color: var(--text-muted); margin: 0; line-height: 1.6; }

/* ------------------------------------------------------------------ Tags */
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .68rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase;
  padding: 3px 10px; border-radius: var(--r-pill);
  background: var(--copper-notice-bg); color: var(--copper-300);
  border: 1px solid var(--copper-900);
  white-space: nowrap;
}
.tag--gray { background: var(--charcoal-800); color: var(--text-muted); border-color: var(--border); }
.tag--green { background: var(--green-900); color: var(--green-300); border-color: var(--green-700); }
.tag--red { background: var(--red-900); color: var(--red-300); border-color: var(--red-700); }
.tag--blue { background: var(--blue-900); color: var(--blue-300); border-color: var(--blue-700); }
.tag--outline { background: transparent; color: var(--text-muted); border-color: var(--border-strong); }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 14px; border-radius: var(--r-pill);
  background: var(--charcoal-800);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .8rem; font-weight: 600;
  cursor: pointer;
  transition: all var(--t-color);
  text-decoration: none;
}
.chip:hover { border-color: var(--copper-900); color: var(--copper-300); }
.chip.is-active { background: var(--copper-500); border-color: var(--copper-500); color: var(--charcoal-950); }

.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }

/* --------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px;
  border-radius: var(--r-card);
  font-size: .93rem; font-weight: 700;
  font-family: var(--font-body);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--t-color), color var(--t-color), border-color var(--t-color), transform var(--t-color), box-shadow var(--t-color);
  line-height: 1.3;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--copper-500); color: var(--charcoal-950); }
.btn-primary:hover { background: var(--copper-400); color: var(--charcoal-950); box-shadow: var(--shadow-sm); }
.btn-cream { background: var(--cream-100); color: var(--charcoal-950); }
.btn-cream:hover { background: #fff; color: var(--charcoal-950); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--copper-500); color: var(--copper-300); background: rgba(199,123,58,.08); }
.btn-ghost-light { background: rgba(245,240,232,.08); color: var(--text); border-color: rgba(245,240,232,.18); }
.btn-ghost-light:hover { background: rgba(245,240,232,.14); color: var(--text); }
.btn-sm { padding: 7px 14px; font-size: .82rem; border-radius: var(--r-sm); }
.btn-lg { padding: 14px 26px; font-size: 1rem; border-radius: var(--r-card); }
.btn-block { display: flex; width: 100%; }
.btn svg { width: 15px; height: 15px; }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ------------------------------------------------------------- CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--copper-500) 0%, var(--copper-700) 100%);
  border-radius: var(--r-lg);
  padding: 40px 44px;
  color: var(--charcoal-950);
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
  box-shadow: var(--shadow-md);
}
.cta-band h2 { color: var(--charcoal-950); margin-bottom: 8px; }
.cta-band p { color: rgba(28,26,23,.85); margin: 0; max-width: 62ch; font-size: .96rem; }
.cta-band .btn-cream { flex: 0 0 auto; }

/* ---------------------------------------------------------- Page hero */
.page-hero {
  background: var(--charcoal-950);
  border-bottom: 3px solid var(--copper-500);
  padding: 42px 0 40px;
}
.breadcrumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: .78rem; color: var(--text-dim); margin-bottom: 16px;
  list-style: none; padding: 0;
}
.breadcrumb li { margin: 0; display: flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: var(--text-dim); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--copper-400); }
.breadcrumb [aria-current] { color: var(--copper-400); }
.page-hero h1 { margin-bottom: 12px; }
.page-hero .lead { margin-bottom: 0; max-width: 78ch; }

/* ------------------------------------------------------------ Filter bar */
.filter-bar {
  background: var(--charcoal-850);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 16px;
  display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap;
  margin-bottom: 26px;
}
.field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 160px; min-width: 140px; }
.field label {
  font-size: .7rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-dim);
}
.input, select.input, textarea.input {
  width: 100%;
  background: var(--charcoal-900);
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  color: var(--text);
  padding: 9px 12px;
  font-size: .88rem;
  font-family: inherit;
  transition: border-color var(--t-color), box-shadow var(--t-color);
}
.input::placeholder { color: var(--text-dim); }
.input:focus { outline: none; border-color: var(--copper-500); box-shadow: var(--glow-copper); }
select.input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4.5l4 4 4-4' fill='none' stroke='%238C857C' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
  background-size: 12px; padding-right: 30px;
}
textarea.input { resize: vertical; min-height: 110px; line-height: 1.6; }
.filter-actions { display: flex; gap: 8px; align-items: flex-end; flex: 0 0 auto; }
.filter-count {
  font-size: .8rem; color: var(--text-dim); font-family: var(--font-mono);
  padding-bottom: 9px; white-space: nowrap;
}
.filter-count strong { color: var(--copper-400); }

/* -------------------------------------------------------------- Pagination */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.page-btn {
  min-width: 40px; height: 40px; padding: 0 10px;
  border-radius: var(--r-sm);
  background: var(--charcoal-850);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .85rem; font-weight: 600;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all var(--t-color);
  font-family: var(--font-body);
}
.page-btn:hover:not(:disabled) { border-color: var(--copper-900); color: var(--copper-300); }
.page-btn.is-active { background: var(--copper-500); border-color: var(--copper-500); color: var(--charcoal-950); }
.page-btn:disabled { opacity: .35; cursor: not-allowed; }

/* ---------------------------------------------------------------- Split */
.split-wide { display: grid; grid-template-columns: 380px 1fr; gap: 34px; align-items: start; }
.split-side { display: grid; grid-template-columns: 1fr 310px; gap: 38px; align-items: start; }
.split-1-1 { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }

/* Product / exhibit box */
.exhibit {
  background: var(--charcoal-950);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 22px;
  position: sticky; top: calc(var(--header-h) + 22px);
}
.exhibit-art {
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  background: var(--charcoal-850);
  border-radius: var(--r-sm);
  margin-bottom: 14px;
  overflow: hidden;
}
.exhibit-art img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.thumb-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 18px; }
.thumb {
  aspect-ratio: 1;
  border-radius: var(--r-xs);
  background: var(--charcoal-850);
  border: 1px solid var(--border);
  padding: 5px; cursor: pointer;
  overflow: hidden;
  transition: border-color var(--t-color);
}
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb:hover, .thumb.is-active { border-color: var(--copper-500); }

.spec-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.spec-table caption {
  text-align: left; font-size: .68rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-dim); padding-bottom: 9px;
}
.spec-table th, .spec-table td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.spec-table th { color: var(--text-dim); font-weight: 600; width: 42%; }
.spec-table td { color: var(--text-muted); font-family: var(--font-mono); font-size: .78rem; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

.stage-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: var(--r-pill);
  background: var(--copper-notice-bg);
  border: 1px solid var(--copper-900);
  color: var(--copper-300);
  font-size: .78rem; font-weight: 700;
}
.stage-pill::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--copper-500);
}

.block { margin-bottom: 30px; }
.block > h2, .block > h3 { margin-bottom: 12px; }

.meta-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px; margin-bottom: 26px;
}
.meta-cell {
  background: var(--charcoal-850);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px 14px;
}
.meta-cell dt {
  font-size: .66rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-dim); margin-bottom: 4px;
}
.meta-cell dd { margin: 0; font-size: .88rem; font-weight: 600; color: var(--text-muted); }

.check-list { list-style: none; padding: 0; }
.check-list li {
  position: relative; padding-left: 26px; margin-bottom: 10px;
  font-size: .9rem; color: var(--text-muted);
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 14px; height: 8px;
  border-left: 2px solid var(--copper-500);
  border-bottom: 2px solid var(--copper-500);
  transform: rotate(-45deg);
}

/* --------------------------------------------------------------- Notices */
.notice {
  border-radius: var(--r-card);
  padding: 15px 18px;
  border: 1px solid;
  font-size: .88rem;
  line-height: 1.65;
  margin: 22px 0;
}
.notice strong { font-weight: 700; }
.notice p:last-child { margin-bottom: 0; }
.notice-safety { background: var(--copper-notice-bg); border-color: var(--copper-notice-line); color: var(--copper-notice-text); }
.notice-info { background: var(--blue-900); border-color: var(--blue-700); color: var(--blue-300); }
.notice-warn { background: var(--red-900); border-color: var(--red-700); color: var(--red-300); }
.notice-neutral { background: var(--charcoal-850); border-color: var(--border); color: var(--text-muted); }
.notice-title {
  display: flex; align-items: center; gap: 8px;
  font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  font-size: .72rem; margin-bottom: 7px;
}
.notice-title svg { width: 15px; height: 15px; flex: 0 0 auto; }

.tip-box {
  background: var(--charcoal-850);
  border-left: 4px solid var(--copper-500);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 14px 18px;
  margin: 22px 0;
  font-size: .89rem;
  color: var(--text-muted);
}
.tip-box p:last-child { margin-bottom: 0; }
.tip-box .tip-label {
  font-size: .68rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; display: block; margin-bottom: 5px;
  color: var(--copper-400);
}
.tip-box--warn { border-left-color: var(--red-500); }
.tip-box--warn .tip-label { color: var(--red-300); }
.tip-box--note { border-left-color: var(--blue-500); }
.tip-box--note .tip-label { color: var(--blue-300); }
.tip-box--ok { border-left-color: var(--green-500); }
.tip-box--ok .tip-label { color: var(--green-300); }

.legal-note {
  background: var(--charcoal-850);
  border-left: 4px solid var(--copper-500);
  padding: 14px 18px;
  font-size: .84rem;
  color: var(--text-muted);
  line-height: 1.65;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin: 26px 0;
}
.legal-note p:last-child { margin-bottom: 0; }

.empty-state {
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-card);
  padding: 46px 24px;
  text-align: center;
  color: var(--text-dim);
}
.empty-state svg { width: 38px; height: 38px; color: var(--text-dim); margin-bottom: 12px; }

/* ------------------------------------------------------------- Calculators */
.calc-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
.form-card {
  background: var(--charcoal-850);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.form-card h2 { font-size: 1.2rem; margin-bottom: 20px; }
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block; font-size: .74rem; font-weight: 800;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 7px;
}
.form-hint { font-size: .76rem; color: var(--text-dim); margin-top: 6px; line-height: 1.5; }
.radio-group { display: flex; gap: 8px; flex-wrap: wrap; }
.radio-group label {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: var(--r-pill);
  background: var(--charcoal-900);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .82rem; font-weight: 600;
  cursor: pointer; margin: 0;
  letter-spacing: normal; text-transform: none;
  transition: all var(--t-color);
}
.radio-group label:hover { border-color: var(--copper-900); }
.radio-group input { position: absolute; opacity: 0; pointer-events: none; }
.radio-group input:checked + span { color: var(--charcoal-950); }
.radio-group label:has(input:checked) {
  background: var(--copper-500); border-color: var(--copper-500); color: var(--charcoal-950);
}
.radio-group label:has(input:focus-visible) { outline: 3px solid var(--copper-400); outline-offset: 2px; }

.result-card {
  background: linear-gradient(160deg, var(--copper-500) 0%, var(--copper-700) 62%, var(--copper-900) 100%);
  border-radius: var(--r-card);
  padding: 30px 28px;
  color: var(--charcoal-950);
  box-shadow: var(--shadow-md);
  position: sticky; top: calc(var(--header-h) + 22px);
}
.result-card .result-label {
  font-size: .68rem; font-weight: 800; letter-spacing: .13em;
  text-transform: uppercase; color: rgba(28,26,23,.7); margin-bottom: 8px;
  display: block;
}
.result-value {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 6vw, 3.2rem);
  font-weight: 700; line-height: 1;
  color: var(--cream-100);
  margin-bottom: 6px;
  letter-spacing: -.02em;
  word-break: break-word;
}
.result-unit { font-size: .88rem; color: rgba(28,26,23,.78); font-weight: 600; margin-bottom: 24px; }
.result-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-bottom: 22px;
}
.result-cell {
  background: rgba(18,17,16,.22);
  border-radius: var(--r-sm);
  padding: 12px 14px;
}
.result-cell dt {
  font-size: .62rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(28,26,23,.68); margin-bottom: 3px;
}
.result-cell dd { margin: 0; font-size: .98rem; font-weight: 700; color: var(--cream-100); font-family: var(--font-mono); }

.gauge {
  background: rgba(18,17,16,.22);
  border-radius: var(--r-sm);
  padding: 14px;
  margin-bottom: 20px;
}
.gauge-head {
  display: flex; justify-content: space-between;
  font-size: .72rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: rgba(28,26,23,.72);
  margin-bottom: 8px;
}
.gauge-track { height: 8px; background: rgba(18,17,16,.3); border-radius: var(--r-pill); overflow: hidden; }
.gauge-fill {
  height: 100%; background: var(--cream-100);
  border-radius: var(--r-pill);
  transition: width .4s ease;
  width: 0;
}
.gauge-scale {
  display: flex; justify-content: space-between;
  font-size: .66rem; color: rgba(28,26,23,.62); margin-top: 6px;
  font-family: var(--font-mono);
}

.formula-box {
  background: rgba(18,17,16,.22);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  font-size: .8rem;
  line-height: 1.6;
  color: rgba(28,26,23,.9);
}
.formula-box code {
  background: rgba(255,255,255,.16); border: 0; color: var(--cream-100);
  font-size: .78rem; padding: 1px 5px;
}
.formula-box .fb-title {
  font-size: .64rem; font-weight: 800; letter-spacing: .11em;
  text-transform: uppercase; color: rgba(28,26,23,.66);
  display: block; margin-bottom: 6px;
}

.timeline { margin: 0 0 20px; }
.timeline-track {
  position: relative; height: 44px;
  background: rgba(18,17,16,.22);
  border-radius: var(--r-sm);
  overflow: hidden;
  display: flex;
}
.tl-seg {
  height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: .64rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--cream-100);
  border-right: 1px solid rgba(18,17,16,.35);
  min-width: 0; overflow: hidden; white-space: nowrap;
  transition: width .4s ease;
}
.tl-seg:last-child { border-right: 0; }
.tl-seg--dry { background: rgba(18,17,16,.4); }
.tl-seg--maillard { background: rgba(18,17,16,.24); }
.tl-seg--dev { background: rgba(255,255,255,.2); }
.timeline-legend {
  display: flex; gap: 14px; flex-wrap: wrap;
  font-size: .66rem; color: rgba(28,26,23,.68); margin-top: 7px; font-weight: 600;
}

/* ----------------------------------------------------------- Blog & prose */
.prose-block { max-width: 72ch; }
.prose-block h2 { margin-top: 1.6em; }
.prose-block h3 { margin-top: 1.4em; }
.prose-block ul, .prose-block ol { color: var(--text-muted); }
.prose-block a { text-decoration: underline; text-decoration-color: var(--copper-900); text-underline-offset: 3px; }
.prose-block a:hover { text-decoration-color: var(--copper-400); }
.prose-block strong { color: var(--text); }

.featured-post {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: var(--charcoal-850);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
  margin-bottom: 34px;
  transition: border-color var(--t-card), box-shadow var(--t-card);
}
.featured-post:hover { border-color: var(--copper-900); box-shadow: var(--shadow-md); }
.featured-art { position: relative; min-height: 300px; background: var(--charcoal-950); }
.featured-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.featured-body { padding: 36px; display: flex; flex-direction: column; justify-content: center; }
.featured-body h2 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); }
.featured-body h2 a { color: var(--text); }
.featured-body h2 a:hover { color: var(--copper-400); }

.post-hero {
  background: var(--charcoal-950);
  border-bottom: 3px solid var(--copper-500);
  padding: 40px 0 34px;
}
.post-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: .78rem; color: var(--text-dim); margin-bottom: 16px;
}
.post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-dim); }
.post-hero h1 { font-size: clamp(1.7rem, 3.4vw, 2.35rem); max-width: 24ch; }
.post-hero .lead { max-width: 68ch; margin-bottom: 18px; }

.post-figure {
  margin: 30px 0;
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--charcoal-950);
}
.post-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-figure figcaption {
  padding: 12px 16px; font-size: .78rem; color: var(--text-dim);
  background: var(--charcoal-850); border-top: 1px solid var(--border);
}

.sidebar { position: sticky; top: calc(var(--header-h) + 22px); }
.side-card {
  background: var(--charcoal-850);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 20px;
  margin-bottom: 18px;
}
.side-card h3 {
  font-size: .7rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-dim);
  margin-bottom: 14px; font-family: var(--font-body);
}
.toc { list-style: none; padding: 0; margin: 0; }
.toc li { margin-bottom: 2px; }
.toc a {
  display: block; padding: 5px 10px;
  border-left: 2px solid var(--border);
  font-size: .82rem; color: var(--text-muted);
  transition: all var(--t-color);
  line-height: 1.45;
}
.toc a:hover { color: var(--copper-300); border-left-color: var(--copper-900); background: var(--charcoal-800); }
.toc a.is-active { color: var(--copper-400); border-left-color: var(--copper-500); }

.side-list { list-style: none; padding: 0; margin: 0; }
.side-list li { margin-bottom: 11px; padding-bottom: 11px; border-bottom: 1px solid var(--border); }
.side-list li:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.side-list a { font-size: .84rem; color: var(--text-muted); font-weight: 600; line-height: 1.45; display: block; }
.side-list a:hover { color: var(--copper-400); }
.side-list .side-meta { font-size: .7rem; color: var(--text-dim); display: block; margin-top: 3px; font-weight: 400; }

.step-block {
  display: flex; gap: 16px; margin: 24px 0;
  align-items: flex-start;
}
.step-block .sb-num {
  width: 52px; height: 52px; flex: 0 0 auto;
  border-radius: 50%;
  background: var(--copper-notice-bg);
  border: 1px solid var(--copper-900);
  color: var(--copper-400);
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem;
  display: flex; align-items: center; justify-content: center;
}
.step-block h3 { margin-bottom: 6px; font-size: 1.08rem; }
.step-block p:last-child { margin-bottom: 0; }
.step-block p { color: var(--text-muted); font-size: .92rem; }

.author-box {
  display: flex; gap: 16px; align-items: center;
  background: var(--charcoal-850);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 20px;
  margin: 34px 0;
}
.author-avatar {
  width: 52px; height: 52px; border-radius: 50%; flex: 0 0 auto;
  background: var(--copper-notice-bg); border: 1px solid var(--copper-900);
  color: var(--copper-400);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem;
}
.author-box h4 { margin: 0 0 3px; font-family: var(--font-body); font-size: .92rem; }
.author-box p { margin: 0; font-size: .82rem; color: var(--text-dim); line-height: 1.55; }

.post-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin: 34px 0;
}
.post-nav a {
  background: var(--charcoal-850);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 16px 18px;
  display: block;
  transition: all var(--t-card);
}
.post-nav a:hover { border-color: var(--copper-900); box-shadow: var(--shadow-sm); }
.post-nav .pn-label {
  font-size: .66rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-dim); display: block; margin-bottom: 5px;
}
.post-nav .pn-title { font-size: .9rem; font-weight: 700; color: var(--text); line-height: 1.4; display: block; }
.post-nav a:hover .pn-title { color: var(--copper-400); }
.post-nav .pn-next { text-align: right; }

.read-progress {
  position: fixed; top: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, var(--copper-500), var(--gold-300));
  z-index: 300; width: 0; transition: width .1s linear;
}

.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 150;
  width: 42px; height: 42px; border-radius: var(--r-sm);
  background: var(--charcoal-850);
  border: 1px solid var(--copper-900);
  color: var(--copper-400);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transition: all var(--t-card);
  box-shadow: var(--shadow-md);
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--copper-500); color: var(--charcoal-950); border-color: var(--copper-500); }
.to-top svg { width: 17px; height: 17px; }

/* --------------------------------------------------------- Info / content */
.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.info-card {
  background: var(--charcoal-850);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 22px;
}
.info-card h3 { font-size: 1rem; margin-bottom: 8px; }
.info-card p { font-size: .86rem; color: var(--text-muted); margin: 0; line-height: 1.62; }
.info-card .ic-icon {
  width: 38px; height: 38px; border-radius: var(--r-sm);
  background: var(--copper-notice-bg); border: 1px solid var(--copper-900);
  color: var(--copper-400);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.info-card .ic-icon svg { width: 18px; height: 18px; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--charcoal-850);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 700;
  font-size: .95rem;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px;
  transition: color var(--t-color);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.2rem; color: var(--copper-500);
  font-weight: 400; flex: 0 0 auto; transition: transform var(--t-color);
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item summary:hover { color: var(--copper-400); }
.faq-body { padding: 0 20px 18px; font-size: .89rem; color: var(--text-muted); line-height: 1.68; }
.faq-body p:last-child { margin-bottom: 0; }

/* ----------------------------------------------------- Header search panel */
.search-panel {
  position: absolute; top: calc(100% + 6px); right: 0;
  width: 340px; max-width: calc(100vw - 40px);
  background: var(--charcoal-850);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  max-height: 400px; overflow-y: auto;
  display: none;
  z-index: 210;
}
.search-panel.is-open { display: block; }
.sp-item {
  display: block; padding: 9px 11px; border-radius: var(--r-xs);
  transition: background var(--t-color);
}
.sp-item:hover, .sp-item.is-active { background: var(--charcoal-800); }
.sp-item .sp-title { font-size: .85rem; font-weight: 700; color: var(--text); display: block; line-height: 1.4; }
.sp-item .sp-cat { font-size: .7rem; color: var(--text-dim); display: block; margin-top: 2px; }
.sp-empty { padding: 16px 12px; font-size: .84rem; color: var(--text-dim); text-align: center; }
.sp-foot {
  border-top: 1px solid var(--border); margin-top: 6px; padding: 9px 11px 4px;
  font-size: .76rem; color: var(--copper-400); font-weight: 700;
  display: block;
}

/* --------------------------------------------------------------- Footer */
.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: 48px 0 26px;
  margin-top: 0;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 34px; margin-bottom: 38px;
}
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { font-size: .84rem; color: var(--text-dim); line-height: 1.65; max-width: 40ch; }
.footer-social { display: flex; gap: 9px; margin-top: 16px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: var(--r-sm);
  background: var(--charcoal-850); border: 1px solid var(--border);
  color: var(--text-dim);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t-color);
}
.footer-social a:hover { color: var(--copper-400); border-color: var(--copper-900); }
.footer-social svg { width: 16px; height: 16px; }

.footer-col h4 {
  font-size: .68rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-dim);
  margin-bottom: 14px; font-family: var(--font-body);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { font-size: .84rem; color: var(--text-muted); }
.footer-col a:hover { color: var(--copper-400); }

.footer-sub { display: flex; gap: 8px; margin-top: 12px; }
.footer-sub input {
  flex: 1 1 auto; min-width: 0;
  background: var(--charcoal-850); border: 1px solid var(--border);
  border-radius: var(--r-xs); color: var(--text);
  padding: 9px 11px; font-size: .82rem; font-family: inherit;
}
.footer-sub input:focus { outline: none; border-color: var(--copper-500); }
.footer-sub button {
  background: var(--copper-500); color: var(--charcoal-950);
  border: 0; border-radius: var(--r-xs);
  padding: 0 14px; font-weight: 700; font-size: .82rem; cursor: pointer;
  transition: background var(--t-color);
}
.footer-sub button:hover { background: var(--copper-400); }

.footer-disclaimer {
  background: var(--charcoal-900);
  border: 1px solid var(--copper-900);
  border-radius: var(--r-card);
  padding: 20px 22px;
  margin-bottom: 26px;
  display: flex; gap: 16px; align-items: flex-start;
}
.footer-disclaimer .fd-icon {
  width: 36px; height: 36px; flex: 0 0 auto; border-radius: var(--r-sm);
  background: var(--copper-notice-bg); border: 1px solid var(--copper-900);
  color: var(--copper-400);
  display: flex; align-items: center; justify-content: center;
}
.footer-disclaimer .fd-icon svg { width: 18px; height: 18px; }
.footer-disclaimer h4 {
  font-size: .74rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--copper-400);
  margin-bottom: 7px; font-family: var(--font-body);
}
.footer-disclaimer p { font-size: .8rem; color: var(--text-dim); margin-bottom: 8px; line-height: 1.62; }
.footer-disclaimer p:last-child { margin-bottom: 0; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  font-size: .78rem; color: var(--text-dim);
}
.footer-bottom .fb-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-bottom a { color: var(--text-dim); }
.footer-bottom a:hover { color: var(--copper-400); }
.badge-16 {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: var(--r-pill);
  background: var(--charcoal-850); border: 1px solid var(--border-strong);
  color: var(--text-muted); font-size: .7rem; font-weight: 800;
  letter-spacing: .06em;
}

/* -------------------------------------------------------------- Utilities */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 18px; }
.mt-3 { margin-top: 28px; }
.mb-2 { margin-bottom: 18px; }
.mb-3 { margin-bottom: 28px; }
.hidden { display: none !important; }

/* JS hook elements ------------------------------------------------------- */
/* .calc-warning / .form-status are populated at runtime; they inherit .notice
   styling but need their own margins reset when empty or replaced. */
.calc-warning { margin: 0 0 18px; }
.form-status { margin-top: 16px; }
.form-status p:last-child { margin-bottom: 0; }
.form-status .notice-title { margin-bottom: 6px; }

/* Newsletter note under the footer subscribe form */
.newsletter-note { line-height: 1.5; }

/* Article body column */
.post-body { min-width: 0; }
.post-body > .block:first-child > h2:first-child { margin-top: 0; }

/* Input error state (client-side validation) */
.input-error {
  border-color: var(--red-500) !important;
  box-shadow: 0 0 0 1px rgba(214, 90, 74, .35) !important;
}

/* -------------------------------------------------------------- Responsive */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .split-wide { grid-template-columns: 320px 1fr; gap: 26px; }
  .split-side { grid-template-columns: 1fr 280px; gap: 28px; }
}

@media (max-width: 1000px) {
  .search-form input { width: 116px; }
  .search-form input:focus { width: 160px; }
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  ol.steps { grid-template-columns: repeat(2, 1fr); }
  .split-wide { grid-template-columns: 1fr; }
  .split-side { grid-template-columns: 1fr; }
  .split-1-1 { grid-template-columns: 1fr; gap: 26px; }
  .calc-layout { grid-template-columns: 1fr; }
  .exhibit { position: static; }
  .sidebar { position: static; }
  .result-card { position: static; }

  .nav-toggle { display: flex; }

  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    display: block;
    background: var(--charcoal-900);
    border-bottom: 1px solid var(--border-accent);
    box-shadow: var(--shadow-lg);
    padding: 10px;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    display: none;
  }
  .main-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link { padding: 11px 12px; font-size: .92rem; width: 100%; justify-content: space-between; }
  .nav-link.is-current { box-shadow: none; background: var(--copper-notice-bg); }

  .dropdown {
    position: static; transform: none;
    opacity: 1; visibility: visible;
    display: none;
    box-shadow: none; border: 1px solid var(--border);
    border-radius: var(--r-sm);
    margin: 4px 0 8px;
    min-width: 0;
  }
  .has-dropdown.is-expanded .dropdown { display: block; }
  .has-dropdown:hover .dropdown { display: none; }
  .has-dropdown.is-expanded:hover .dropdown { display: block; }

  .featured-post { grid-template-columns: 1fr; }
  .featured-art { min-height: 220px; }
  .featured-body { padding: 26px; }

  .post-nav { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 30px 26px; }
  .terms-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .grid-2, .grid-3, .grid-4, .grid-auto { grid-template-columns: 1fr; }
  ol.steps { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; padding: 26px 0; }
  .hero-viewport { height: 460px; }
  .hero-scrim { background: linear-gradient(160deg, #121110 0%, rgba(18,17,16,.9) 54%, rgba(199,123,58,.28) 100%); }
  .hero-arrow { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .section { padding: 44px 0; }
  .page-hero { padding: 32px 0 30px; }
  .post-nav .pn-next { text-align: left; }
  .result-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 26px 20px; }
  .form-card, .result-card { padding: 22px 18px; }
  .thumb-row { grid-template-columns: repeat(4, 1fr); }
  .footer-disclaimer { flex-direction: column; gap: 12px; }
  .search-form input { width: 108px; }
  .search-form input:focus { width: 132px; }
  .header-main { gap: 10px; }
}

@media (max-width: 420px) {
  .brand-text { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-slide { transition: none; }
}

@media print {
  .site-header, .site-footer, .to-top, .read-progress, .hero-arrow, .hero-dots { display: none !important; }
  body { background: #fff; color: #000; }
}
