/* =========================================================
   hyperaccumulate.com — vintage-botanical design system
   WCAG 2.2 AA oriented: verified contrast, visible focus,
   target sizes >= 24px, reduced-motion support.
   ========================================================= */
:root {
  --bg-cream: #F7F3EA;
  --bg-cream-dark: #EFE8DA;
  --bg-paper: #FFFDF7;
  --text-umber: #2C261C;
  --text-muted: #5C4F3B;
  --green: #2E4D36;
  --green-dark: #1F3624;
  --brass: #9A5E26;
  --brass-dark: #7A4A1E;
  --copper: #B87333;
  --copper-light: #C49A6C;
  --focus: #6B3E0F;
  --rule: #C49A6C;
  --rule-subtle: #D9CBB1;
  --shadow: rgba(44, 38, 28, 0.12);
  --link: #2f5fb0;

  /* per-metal accent colors */
  --m-Ni: #4b7f52; --m-Zn: #4a72a8; --m-Cd: #a8574a; --m-Co: #3f6f8f;
  --m-Mn: #8a5a9e; --m-REE: #997326; --m-Cu: #b06a3a; --m-As: #5f7a3a;
  --m-Se: #b58a2b; --m-Tl: #7a6f8f; --m-Pb: #6b6b6b;

  --font-display: Georgia, "Times New Roman", Times, serif;
  --font-body: Georgia, "Times New Roman", Times, serif;
  --font-ui: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --container-max: 1180px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 4px;
}

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

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; scroll-padding-top: 7rem; }
body { margin: 0; background: var(--bg-cream); color: var(--text-umber); font-family: var(--font-body); font-size: 1.05rem; line-height: 1.65; min-height: 100vh; }
img, svg { display: block; max-width: 100%; }
a { color: var(--brass); text-decoration: underline; text-decoration-color: var(--copper-light); text-underline-offset: .18em; }
a:hover { color: var(--brass-dark); text-decoration-color: var(--brass); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px; border-radius: var(--radius);
}

.container { width: 100%; max-width: var(--container-max); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 820px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -3em; left: 1em; z-index: 1000; background: var(--text-umber); color: var(--bg-cream); padding: .5em 1em; border-radius: var(--radius); text-decoration: none; font-family: var(--font-ui); }
.skip-link:focus { top: 1em; }
.muted { color: var(--text-muted); }
.small { font-size: .88rem; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---- Header / nav ---- */
.site-header { position: sticky; top: 0; z-index: 50; background: linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-cream-dark) 100%); border-bottom: 3px double var(--rule); box-shadow: 0 2px 0 var(--shadow); }
.header-inner { padding-block: .8rem .45rem; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; }
.wordmark-link { display: inline-flex; align-items: center; gap: .7rem; color: var(--text-umber); text-decoration: none; min-height: 48px; }
.wordmark-logo { flex: none; width: 40px; height: 40px; }
.wordmark-text { display: flex; align-items: baseline; gap: .15rem; }
.wordmark-name { font-family: var(--font-display); font-size: clamp(1.25rem, 3vw, 1.7rem); font-weight: 700; letter-spacing: -.01em; }
.wordmark-tld { font-family: var(--font-display); font-size: .9rem; font-variant: small-caps; color: var(--brass); font-weight: 600; }
.tagline { margin: 0; font-family: var(--font-ui); font-size: .82rem; color: var(--text-muted); font-style: italic; }
.site-nav { background: var(--bg-paper); border-top: 1px solid var(--rule-subtle); }
.nav-inner { display: flex; flex-wrap: wrap; gap: .3rem 1.5rem; padding-block: .55rem; }
.nav-inner a { font-family: var(--font-ui); font-weight: 600; font-size: .95rem; color: var(--green); text-decoration: none; padding: .3rem .1rem; min-height: 36px; display: inline-flex; align-items: center; border-bottom: 2px solid transparent; }
.nav-inner a:hover { color: var(--brass); }
.nav-inner a[aria-current="page"] { border-bottom-color: var(--copper); color: var(--brass-dark); }

/* ---- Main / hero / sections ---- */
.main { padding-bottom: 2rem; }
.section { padding-block: 2.2rem; }
.section-alt { background: var(--bg-cream-dark); border-block: 1px solid var(--rule-subtle); }
.hero { padding-block: 3rem 2.4rem; border-bottom: 1px solid var(--rule-subtle); }
.hero h1 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.12; margin: 0 0 .8rem; }
.hero p { font-size: 1.15rem; color: var(--text-muted); max-width: 64ch; margin: 0 0 1.2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .7rem; }
.page-title { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 .6rem; color: var(--text-umber); }
.lede { font-size: 1.1rem; color: var(--text-muted); max-width: 70ch; margin: 0 0 1.5rem; }
.section-heading { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0 0 1.1rem; padding-bottom: .35rem; border-bottom: 2px solid var(--rule); color: var(--green); display: flex; align-items: center; gap: .55rem; }
.section-heading::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--copper); flex: none; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.prose h2 { margin-top: 2rem; }
.prose ul { max-width: 72ch; }
.prose code { background: var(--bg-cream-dark); padding: .1em .35em; border-radius: 3px; font-size: .9em; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1.1rem; font-family: var(--font-ui); font-weight: 600; font-size: .95rem; text-decoration: none; border-radius: var(--radius); background: var(--green); color: var(--bg-cream); border: 1.5px solid var(--green); }
.btn:hover { background: var(--green-dark); color: var(--bg-cream); }
.btn-ghost { background: transparent; color: var(--green); }
.btn-ghost:hover { background: var(--bg-cream-dark); color: var(--green-dark); }
.link-btn { background: none; border: 0; color: var(--brass); font: inherit; font-family: var(--font-ui); font-size: .9rem; cursor: pointer; text-decoration: underline; min-height: 24px; }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; font-size: 1.3rem; background: var(--bg-cream); border: 1px solid var(--rule-subtle); border-radius: 50%; cursor: pointer; color: var(--brass); }

/* ---- Metal chips / cards ---- */
.metal-chip { display: inline-grid; place-items: center; min-width: 2.1em; padding: .05em .4em; border-radius: 999px; font-family: var(--font-ui); font-weight: 700; font-size: .82em; color: #fff; background: var(--green); }
.metal-name-cell { font-family: var(--font-ui); font-size: .85em; color: var(--text-muted); }
.metal-Ni { background: var(--m-Ni); } .metal-Zn { background: var(--m-Zn); } .metal-Cd { background: var(--m-Cd); }
.metal-Co { background: var(--m-Co); } .metal-Mn { background: var(--m-Mn); } .metal-REE { background: var(--m-REE); }
.metal-Cu { background: var(--m-Cu); } .metal-As { background: var(--m-As); } .metal-Se { background: var(--m-Se); }
.metal-Tl { background: var(--m-Tl); } .metal-Pb { background: var(--m-Pb); }

.metal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.metal-card { display: flex; flex-direction: column; align-items: center; gap: .35rem; min-height: 140px; padding: 1.1rem; background: var(--bg-paper); border: 1px solid var(--rule-subtle); border-radius: var(--radius); box-shadow: 0 1px 0 var(--shadow); text-align: center; text-decoration: none; color: var(--text-umber); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.metal-card:hover { border-color: var(--copper-light); box-shadow: 0 4px 12px var(--shadow); transform: translateY(-2px); color: var(--text-umber); }
.metal-card-symbol { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; color: #fff; font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; }
.metal-card-name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; }
.metal-card-meta { font-family: var(--font-ui); font-size: .74rem; color: var(--text-muted); }
.metal-card-count { font-family: var(--font-ui); font-size: .82rem; color: var(--brass-dark); font-weight: 600; }

/* ---- Feature cards ---- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.feature-card { display: flex; gap: .9rem; align-items: center; background: var(--bg-paper); border: 1px solid var(--rule-subtle); border-radius: var(--radius); padding: 1rem; text-decoration: none; color: var(--text-umber); }
.feature-card:hover { border-color: var(--copper-light); color: var(--text-umber); }
.feature-thumb { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; }
.feature-body { display: flex; flex-direction: column; gap: .1rem; }
.feature-name { font-size: 1.05rem; }
.feature-meta { font-family: var(--font-ui); font-size: .8rem; color: var(--text-muted); }
.feature-conc { font-family: var(--font-ui); font-size: .85rem; color: var(--brass-dark); }

/* ---- News teasers / analysis ---- */
.news-teaser { display: flex; flex-direction: column; gap: .1rem; padding: .7rem 0; border-bottom: 1px solid var(--rule-subtle); text-decoration: none; }
.news-cat { font-family: var(--font-ui); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--copper); }
.news-title { color: var(--text-umber); font-weight: 600; }
.news-date { font-family: var(--font-ui); font-size: .78rem; color: var(--text-muted); }
.analysis-list { display: grid; gap: 1rem; }
.analysis-card { background: var(--bg-paper); border: 1px solid var(--rule-subtle); border-radius: var(--radius); padding: 1.2rem; }
.analysis-card h2 { font-family: var(--font-display); font-size: 1.3rem; margin: .2rem 0 .4rem; }
.analysis-card h2 a { text-decoration: none; color: var(--text-umber); }
.analysis-meta { font-family: var(--font-ui); font-size: .82rem; color: var(--text-muted); margin: 0 0 .5rem; }
.cat-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.3rem; }
.cat-tab { min-height: 36px; padding: .35rem .8rem; font-family: var(--font-ui); font-size: .88rem; font-weight: 600; border: 1.5px solid var(--rule-subtle); background: transparent; color: var(--green); border-radius: 999px; cursor: pointer; }
.cat-tab.is-active { background: var(--green); border-color: var(--green); color: var(--bg-cream); }

/* ---- Article body ---- */
.article-head { margin-bottom: 1.6rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rule-subtle); }
.article-meta { font-family: var(--font-ui); font-size: .85rem; color: var(--text-muted); }
.article-body { font-size: 1.08rem; }
.article-body h2 { font-family: var(--font-display); color: var(--green); font-size: 1.5rem; margin: 2rem 0 .8rem; }
.article-body p { margin: 0 0 1.1rem; }
.article-body a { color: var(--link); text-decoration-color: rgba(47,95,176,.4); }
.article-source-link { font-family: var(--font-ui); font-size: .85rem; color: var(--text-muted); word-break: break-all; }

/* ---- Two-column layouts ---- */
.data-callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; }
.data-links { display: flex; gap: .7rem; margin: 0; }

/* ---- Breadcrumb ---- */
.breadcrumb { font-family: var(--font-ui); font-size: .85rem; color: var(--text-muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--green); }

/* ---- Metal detail header ---- */
.metal-detail-header { display: flex; align-items: center; gap: 1rem; margin-bottom: .6rem; }
.metal-symbol { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; color: #fff; font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; flex: none; border: 3px double var(--copper-light); }
.metal-threshold { margin: .2rem 0 0; font-family: var(--font-ui); font-size: .95rem; color: var(--text-muted); display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.metal-context { font-size: 1.05rem; color: var(--text-muted); max-width: 76ch; margin: 0 0 1.2rem; }
.table-summary { font-family: var(--font-ui); font-size: .92rem; color: var(--text-muted); margin-bottom: .8rem; }
.cite-link { font-size: .85em; font-family: var(--font-ui); text-decoration: none; }
.tier-badge { font-family: var(--font-ui); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .12em .5em; border-radius: 3px; }
.tier-primary { background: var(--green); color: var(--bg-cream); }
.tier-tracked { background: var(--bg-cream-dark); color: var(--brass-dark); border: 1px solid var(--copper-light); }

/* ---- Tables ---- */
.table-region { overflow-x: auto; border: 1px solid var(--rule-subtle); border-radius: var(--radius); background: var(--bg-cream); }
.species-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: .96rem; }
.species-table thead { background: var(--bg-cream-dark); border-bottom: 2px solid var(--rule); }
.species-table th { padding: .7rem .85rem; text-align: left; font-family: var(--font-ui); font-weight: 600; color: var(--green); white-space: nowrap; }
.species-table td { padding: .65rem .85rem; border-bottom: 1px solid var(--rule-subtle); vertical-align: top; }
.species-table tbody tr:nth-child(even) { background: rgba(239,232,218,.5); }
.species-table tbody tr:hover { background: rgba(180,145,100,.12); }
.sp-name { font-weight: 600; text-decoration: none; }
.sort-btn { display: inline-flex; align-items: center; gap: .3rem; padding: 0; font: inherit; color: inherit; background: transparent; border: 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--rule-subtle); min-height: 24px; }
.sort-btn::after { content: "↕"; font-size: .75em; color: var(--copper-light); }
.sort-btn[data-dir="asc"]::after { content: "↑"; color: var(--brass); }
.sort-btn[data-dir="desc"]::after { content: "↓"; color: var(--brass); }
.no-results { text-align: center; color: var(--text-muted); font-style: italic; padding: 1.4rem; }

/* ---- Verification badges ---- */
.verify { font-family: var(--font-ui); font-size: .72rem; font-weight: 700; padding: .12em .5em; border-radius: 3px; text-transform: lowercase; white-space: nowrap; }
.verify-primary-measured { background: #dcece0; color: #256042; }
.verify-review-cited { background: #ece5d2; color: #7a5a1e; }
.verify-hypothesized { background: #f0e0da; color: #9a4a30; }

/* ---- IUCN ---- */
.iucn-EN { background: #f3dcdc; color: #8a2f2f; } .iucn-VU { background: #f6e6cf; color: #8a5a1e; }
.iucn-NT { background: #eef0d8; color: #5f6a1e; } .iucn-LC { background: #e2ece1; color: #356038; }

/* ---- Browse controls / facets ---- */
.browse-controls { margin-bottom: 1.2rem; }
.search-row { position: relative; max-width: 480px; margin-bottom: 1rem; }
.search-row input { width: 100%; padding: .6rem 2.4rem .6rem .9rem; font-family: var(--font-body); font-size: 1rem; background: var(--bg-paper); border: 1.5px solid var(--rule-subtle); border-radius: var(--radius); min-height: 44px; }
.search-row .icon-btn { position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; }
.facets { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: flex-end; margin-bottom: .8rem; }
.facet { border: 0; margin: 0; padding: 0; }
.facet legend { font-family: var(--font-ui); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--green); margin-bottom: .3rem; padding: 0; }
.facet-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.facet-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .55rem; border: 1.5px solid var(--rule-subtle); border-radius: 999px; font-family: var(--font-ui); font-size: .85rem; cursor: pointer; min-height: 32px; }
.facet-chip:has(input:checked) { border-color: var(--green); background: var(--bg-cream-dark); }
.facet-chip input { accent-color: var(--green); }
.facet-select { display: flex; flex-direction: column; gap: .25rem; font-family: var(--font-ui); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--green); }
.facet-select select { font-family: var(--font-ui); font-size: .9rem; font-weight: 400; text-transform: none; letter-spacing: normal; padding: .4rem .5rem; min-height: 40px; border: 1.5px solid var(--rule-subtle); border-radius: var(--radius); background: var(--bg-paper); color: var(--text-umber); }
.browse-status { font-family: var(--font-ui); font-size: .9rem; color: var(--text-muted); display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.2rem; }
.browse-status #result-count, .browse-status #compare-count { font-weight: 700; color: var(--brass-dark); }
.compare-status { margin-left: auto; }

/* ---- Compare panel ---- */
.compare-panel { position: fixed; inset: auto 0 0 0; z-index: 90; background: var(--bg-paper); border-top: 3px double var(--rule); box-shadow: 0 -8px 30px rgba(44,38,28,.2); max-height: 70vh; overflow-y: auto; }
.compare-head { display: flex; align-items: center; justify-content: space-between; padding-block: .8rem; }
.compare-head h2 { font-family: var(--font-display); font-size: 1.4rem; margin: 0; color: var(--green); }
.compare-body { overflow-x: auto; padding-bottom: 1.2rem; }
.compare-table { border-collapse: collapse; font-size: .92rem; min-width: 100%; }
.compare-table th { text-align: left; font-family: var(--font-ui); color: var(--green); padding: .5rem .8rem; border-bottom: 1px solid var(--rule-subtle); vertical-align: top; }
.compare-table td { padding: .5rem .8rem; border-bottom: 1px solid var(--rule-subtle); border-left: 1px solid var(--rule-subtle); vertical-align: top; }

/* ---- Species detail ---- */
.sp-header { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.4rem; }
.sp-thumb { flex: none; width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; }
.authorship { font-family: var(--font-ui); font-size: .6em; font-weight: 400; color: var(--text-muted); font-style: normal; }
.common-name { margin: .1rem 0 .3rem; color: var(--text-muted); }
.sp-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: .3rem 0; }
.tag { font-family: var(--font-ui); font-size: .78rem; padding: .15em .55em; border-radius: 3px; background: var(--bg-cream-dark); color: var(--text-muted); }
.tag.iucn { font-weight: 700; }
.synonyms { font-family: var(--font-ui); font-size: .85rem; color: var(--text-muted); margin: .2rem 0 0; }
.sp-block { margin-bottom: 2rem; }
.accum-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-bottom: 1.2rem; }
.accum-card { background: var(--bg-paper); border: 1px solid var(--rule-subtle); border-radius: var(--radius); padding: 1rem; }
.accum-top { display: flex; align-items: center; gap: .5rem; font-family: var(--font-ui); font-size: .9rem; margin-bottom: .4rem; }
.accum-type { margin-left: auto; font-size: .78rem; color: var(--text-muted); }
.accum-value { font-family: var(--font-display); font-size: 1.7rem; color: var(--green); }
.accum-value .unit { font-family: var(--font-ui); font-size: .7rem; color: var(--text-muted); }
.accum-mult { font-family: var(--font-ui); font-size: .82rem; color: var(--brass-dark); margin: .2rem 0; }
.thr-bar { height: 8px; background: var(--bg-cream-dark); border-radius: 999px; overflow: hidden; margin: .3rem 0 .6rem; }
.thr-bar span { display: block; height: 100%; background: var(--copper); }
.accum-link { font-family: var(--font-ui); font-size: .82rem; }
.fact-dl { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1.2rem; margin: 0; }
.fact-dl dt { font-family: var(--font-ui); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--green); }
.fact-dl dd { margin: 0; color: var(--text-muted); }

/* ---- References ---- */
.ref-list { margin: 0; padding-left: 1.4rem; }
.ref-item { margin-bottom: .9rem; max-width: 82ch; }
.ref-au { font-weight: 600; }
.ref-export { display: inline-flex; gap: .3rem; margin-left: .4rem; }
.cite-btn { font-family: var(--font-ui); font-size: .72rem; padding: .1rem .4rem; border: 1px solid var(--rule-subtle); background: var(--bg-cream); border-radius: 3px; cursor: pointer; min-height: 24px; }
.cite-btn:hover { border-color: var(--copper); }
.bibliography .ref-item { scroll-margin-top: 7rem; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .8rem; }
.related-card { display: flex; flex-direction: column; gap: .1rem; padding: .7rem .9rem; background: var(--bg-paper); border: 1px solid var(--rule-subtle); border-radius: var(--radius); text-decoration: none; color: var(--text-umber); font-size: .95rem; }
.related-card span { font-family: var(--font-ui); font-size: .78rem; color: var(--text-muted); }
.verify-legend { list-style: none; padding: 0; display: grid; gap: .5rem; }
.verify-legend li { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }

/* ---- Footer ---- */
.site-footer { background: var(--bg-cream-dark); border-top: 3px double var(--rule); padding-block: 1.6rem .8rem; font-family: var(--font-ui); font-size: .88rem; color: var(--text-muted); margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1.5rem; }
.footer-grid a { display: block; color: var(--green); text-decoration: none; padding: .15rem 0; }
.footer-grid a:hover { color: var(--brass); }
.footer-brand { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--text-umber); margin: 0 0 .3rem; }
.footer-h { font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .78rem; color: var(--green); margin: 0 0 .4rem; }
.footer-legal { margin-top: 1.2rem; padding-top: .8rem; border-top: 1px solid var(--rule-subtle); }
.footer-legal p { margin: 0; font-size: .82rem; }

/* ---- Responsive ---- */
@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .header-inner { flex-direction: column; align-items: flex-start; gap: .3rem; }
  .metal-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .compare-status { margin-left: 0; }
}
