/* ==========================================================================
   Toner.com — Concept B "Reference" (editorial, restrained)
   Typeface: Plus Jakarta Sans (Google Fonts). Neutral paper palette, ink-black
   actions, one accent (magenta from the logo) used sparingly.
   Shares ../js/main.js (search, theme, menu) with Concept A; layout is its own.
   ========================================================================== */

:root {
  --paper: #ffffff;
  --surface: #ffffff;
  --alt: #f8f9fc;
  --text: #15171c;
  --muted: #555b68;
  --line: #e6e8ef;
  --line-strong: #cdd1dc;
  --ink: #15171c;
  --on-ink: #ffffff;
  --accent: #c2005d;        /* logo magenta, darkened for AA text on paper */
  --accent-soft: #fbe6ef;
  --focus: #c2005d;
  --well: #ffffff;

  --c: #00a0dc; --m: #e3007d; --y: #ffd200;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "Cascadia Mono", Consolas, monospace;

  --fs-xs: .8125rem; --fs-sm: .9375rem; --fs-md: 1rem; --fs-lg: 1.125rem;
  --fs-xl: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  --fs-2xl: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem);
  --fs-hero: clamp(2.2rem, 1.4rem + 3.4vw, 4rem);
  --fs-statement: clamp(1.4rem, 1.05rem + 1.5vw, 2.25rem);

  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s7: 3rem;
  --s8: clamp(3.5rem, 2.5rem + 4vw, 6rem);

  --r: 10px; --r-lg: 16px;
  --header-h: 72px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --paper: #0f1013;
  --surface: #17191e;
  --alt: #131418;
  --text: #ecebe7;
  --muted: #a4a7b0;
  --line: #2a2d34;
  --line-strong: #3a3e47;
  --ink: #ecebe7;
  --on-ink: #111216;
  --accent: #ff5fa2;
  --accent-soft: #3a1426;
  --focus: #ff5fa2;
  --well: #f4f3ef;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--font); font-size: var(--fs-md); line-height: 1.6; color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; font-feature-settings: "ss01"; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -.025em; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
kbd { font-family: var(--mono); font-size: .85em; padding: 0 .35em; border: 1px solid var(--line); border-radius: 4px; }
.mono { font-family: var(--mono); letter-spacing: .01em; }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.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; }
.skip-link { position: absolute; left: var(--s4); top: -100px; z-index: 100; background: var(--ink); color: var(--on-ink); padding: var(--s2) var(--s4); border-radius: var(--r); font-weight: 700; }
.skip-link:focus { top: var(--s3); }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--s4); }
@media (min-width: 768px) { .wrap { padding-inline: var(--s6); } }
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* ---------- Buttons & links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 48px; padding: 0 var(--s5); border: 0; border-radius: var(--r); font-weight: 700; font-size: var(--fs-sm); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s ease, transform .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-ink:hover { background: var(--accent); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #9e004b; }
:root[data-theme="dark"] .btn-accent { color: #1a0710; }
:root[data-theme="dark"] .btn-accent:hover { background: #ff86b9; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: var(--fs-sm); text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 1px; }
.text-link:hover { color: var(--accent); }
.text-link span { transition: transform .15s ease; }
.text-link:hover span { transform: translateX(3px); }
.quiet-link { font-size: var(--fs-sm); color: var(--muted); }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid transparent; border-radius: var(--r); background: transparent; cursor: pointer; }
.icon-btn:hover { border-color: var(--line); background: var(--surface); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: var(--s5); min-height: var(--header-h); }
.brand .logo { height: 40px; width: auto; }
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: var(--s2); }
.buy-link { display: none; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: 700; text-decoration: none; padding: 8px 2px; }
.buy-link:hover { color: var(--accent); }
.buy-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.menu-toggle .m-close { display: none; }
.menu-toggle[aria-expanded="true"] .m-close { display: block; }
.menu-toggle[aria-expanded="true"] .m-open { display: none; }

.primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); }
.primary-nav.is-open { display: block; }
.primary-nav ul { padding: var(--s2) var(--s4) var(--s5); }
.primary-nav li:last-child a { border-bottom: 0; }
.primary-nav a { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line); font-size: var(--fs-lg); font-weight: 600; text-decoration: none; }
.primary-nav a:hover { color: var(--accent); }
.nav-promo-mobile a { color: var(--accent); border-bottom: 0; }

@media (min-width: 900px) {
  .menu-toggle, .nav-promo-mobile { display: none; }
  .buy-link { display: inline-flex; }
  .primary-nav { display: block; position: static; background: none; border: 0; margin-left: auto; }
  .header-actions { margin-left: var(--s2); padding-left: var(--s3); border-left: 1px solid var(--line); }
  .primary-nav ul { display: flex; gap: var(--s5); padding: 0; }
  .primary-nav a { min-height: 40px; border: 0; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); position: relative; }
  .primary-nav a:hover { color: var(--text); }
  .primary-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
  .primary-nav a:hover::after { transform: scaleX(1); }
}

/* ---------- Hero ---------- */
.hero { padding: var(--s7) 0 0; }
.hero-grid { display: grid; gap: var(--s7); align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--s8); } }
.overline { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.overline::before { content: ""; width: 28px; height: 1.5px; background: var(--accent); }
.hero h1 { margin-top: var(--s4); font-size: var(--fs-hero); font-weight: 800; letter-spacing: -.035em; line-height: 1.03; max-width: 14ch; }
.lead { margin-top: var(--s5); font-size: var(--fs-lg); color: var(--muted); max-width: 52ch; }

.search { margin-top: var(--s6); }
.scope { display: flex; flex-wrap: wrap; gap: var(--s5); border-bottom: 1px solid var(--line); margin-bottom: var(--s4); }
.scope-btn { position: relative; padding: var(--s2) 0 var(--s3); min-height: 44px; border: 0; background: none; cursor: pointer; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); }
.scope-btn:hover { color: var(--text); }
.scope-btn[aria-pressed="true"] { color: var(--text); }
.scope-btn[aria-pressed="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); }
@media (max-width: 479px) { .scope { gap: var(--s4); } .scope-btn { font-size: var(--fs-xs); } }

.search-box { position: relative; }
.search-field { display: flex; align-items: center; gap: var(--s2); background: var(--surface); border: 1.5px solid var(--ink); border-radius: var(--r-lg); padding: 6px; padding-left: var(--s4); transition: box-shadow .15s ease; }
.search-field:focus-within { box-shadow: 0 0 0 4px var(--accent-soft); border-color: var(--accent); }
.search-icon { flex-shrink: 0; color: var(--muted); }
.search input { flex: 1; min-width: 0; height: 52px; border: 0; outline: 0; background: transparent; font: inherit; font-size: var(--fs-lg); color: var(--text); }
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { display: none; }
.search input:focus-visible { outline: none; }
.search-clear { width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.search-clear:hover { background: var(--alt); color: var(--text); }
.search-clear[hidden] { display: none; }
.search-submit { min-height: 52px; border-radius: 12px; }
@media (max-width: 479px) {
  .search-field { flex-wrap: wrap; padding-left: var(--s3); }
  .search input { font-size: var(--fs-md); }
  .search-submit { flex: 1 0 100%; }
}

.search-panel { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-lg); box-shadow: 0 24px 60px rgba(21, 23, 28, .14); overflow: hidden; }
.search-panel[hidden] { display: none; }
#search-results { max-height: min(60vh, 420px); overflow-y: auto; padding: var(--s2); }
.sr-group { padding: var(--s3) var(--s3) var(--s1); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sr-option { display: flex; align-items: center; gap: var(--s3); min-height: 48px; padding: var(--s2) var(--s3); border-radius: var(--r); cursor: pointer; }
.sr-option[aria-selected="true"] { background: var(--alt); box-shadow: inset 3px 0 0 var(--accent); }
.sr-type { flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; font-weight: 800; border: 1px solid var(--line-strong); color: var(--text); background: var(--paper); }
.sr-all .sr-type { background: var(--ink); border-color: var(--ink); }
.sr-all .sr-type svg circle, .sr-all .sr-type svg path { stroke: var(--on-ink); }
.sr-text { flex: 1; min-width: 0; }
.sr-name { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-name mark { background: none; color: var(--accent); font-weight: 800; }
.sr-sub { display: block; font-size: var(--fs-xs); color: var(--muted); }
.sr-id { flex-shrink: 0; font-family: var(--mono); font-size: var(--fs-xs); color: var(--muted); }
.sr-all { border-top: 1px solid var(--line); margin-top: var(--s1); }
.sr-empty { padding: var(--s4); font-size: var(--fs-sm); color: var(--muted); }
.search-panel-foot { padding: var(--s2) var(--s4); font-size: var(--fs-xs); color: var(--muted); background: var(--alt); border-top: 1px solid var(--line); }
.search-msg { min-height: 1.4em; margin-top: var(--s2); font-size: var(--fs-sm); font-weight: 600; color: var(--accent); }

.quick-searches { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); margin-top: var(--s1); }
.qs-label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.quick-searches ul { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip { min-height: 34px; padding: 0 var(--s3); border: 1px solid var(--line-strong); border-radius: 8px; background: transparent; font-family: var(--mono); font-size: var(--fs-xs); font-weight: 600; cursor: pointer; }
.chip:hover { border-color: var(--ink); background: var(--surface); }
@media (pointer: coarse) { .chip { min-height: 44px; } }

/* Lookup card */
.lookup { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: var(--s5); box-shadow: 0 1px 0 var(--line), 0 30px 60px -30px rgba(21, 23, 28, .25); }
.lookup-tag { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.lookup-title { margin-top: var(--s2); font-size: var(--fs-xl); }
.lookup-figure { margin: var(--s4) 0; height: 180px; display: flex; align-items: center; justify-content: center; background: var(--well); border-radius: 14px; border: 1px solid var(--line); }
.lookup-figure img { max-height: 160px; width: auto; }
.lookup-list { margin: 0; display: grid; }
.lookup-list > div { display: flex; justify-content: space-between; gap: var(--s4); padding: var(--s3) 0; border-top: 1px solid var(--line); }
.lookup-list dt { display: flex; align-items: center; gap: var(--s3); font-size: var(--fs-sm); color: var(--muted); }
.lookup-list dd { margin: 0; font-weight: 700; text-align: right; }
.lookup-list .n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; border: 1.5px solid var(--line-strong); color: var(--text); }
.lookup-list .is-key dd { color: var(--accent); font-size: var(--fs-lg); }
.lookup-list .is-key .n { border-color: var(--accent); color: var(--accent); }
.lookup-link { display: inline-flex; gap: 6px; margin-top: var(--s3); font-weight: 700; font-size: var(--fs-sm); text-decoration: none; }
.lookup-link:hover { color: var(--accent); }

.facts-row { display: grid; grid-template-columns: 1fr; margin-top: var(--s8); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 700px) { .facts-row { grid-template-columns: repeat(2, 1fr); } }
.facts-row li { display: flex; align-items: center; gap: var(--s4); padding: var(--s5) 0; }
.fact-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--accent); flex-shrink: 0; }
.fact-text { display: flex; flex-direction: column; gap: 2px; }
@media (min-width: 700px) { .facts-row li + li { border-left: 1px solid var(--line); padding-left: var(--s5); } }
@media (max-width: 699px) { .facts-row li + li { border-top: 1px solid var(--line); } }
.facts-row strong { font-size: var(--fs-lg); font-weight: 800; letter-spacing: -.01em; }
.facts-row span { color: var(--muted); font-size: var(--fs-sm); }

/* ---------- Blocks ---------- */
.block { padding: var(--s8) 0; }
.block-alt { background: var(--alt); border-block: 1px solid var(--line); }
.num { font-family: var(--mono); font-size: var(--fs-xs); font-weight: 600; color: var(--accent); margin-bottom: var(--s3); }
.block h2 { font-size: var(--fs-2xl); font-weight: 800; }
.block-head { max-width: 640px; margin-bottom: var(--s6); }
.block-head .muted { margin-top: var(--s3); }
.split { display: grid; gap: var(--s6); }
.split > *, .hero-grid > * { min-width: 0; }
@media (min-width: 1000px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: var(--s8); } .split-head { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; } }
.split-head .muted { margin: var(--s3) 0 var(--s5); }

/* ---------- Brand index (rows) ---------- */
.brand-index { display: grid; border-top: 1px solid var(--line); }
@media (min-width: 700px) { .brand-index { grid-template-columns: 1fr 1fr; column-gap: var(--s6); } }
.brand-index li { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.bi-logo { display: grid; place-items: center; height: 52px; background: var(--well); border: 1px solid var(--line); border-radius: var(--r); }
.bi-logo { height: 56px; }
.bi-logo img { width: auto; height: calc(38px / sqrt(var(--ar, 3))); max-width: 82px; object-fit: contain; }
@supports not (height: calc(1px * sqrt(4))) { .bi-logo img { height: auto; max-height: 28px; } }
.bi-name { font-weight: 700; font-size: var(--fs-md); text-decoration: none; }
.bi-name:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.bi-links { display: flex; gap: var(--s3); }
.bi-links a { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); text-decoration: none; padding: 10px 0; }
.bi-links a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Explorer (tabs) ---------- */
.tabs { display: flex; gap: var(--s2); overflow-x: auto; padding-bottom: 2px; margin-bottom: var(--s5); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex-shrink: 0; min-height: 44px; padding: 0 var(--s5); border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); font-weight: 700; font-size: var(--fs-sm); cursor: pointer; }
.tab:hover { border-color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.explorer:not(.is-ready) .tabs { display: none; }
.panel { display: grid; gap: var(--s5); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: var(--s5); }
.panel[hidden] { display: none; }
.explorer:not(.is-ready) .panel + .panel { margin-top: var(--s4); }
@media (min-width: 900px) { .panel { grid-template-columns: 1fr 1fr; gap: var(--s7); padding: var(--s6); } .panel-wide { grid-column: 1 / -1; } }
.col-title { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-bottom: var(--s3); border-bottom: 1px solid var(--line); }
.rows { margin-bottom: var(--s4); }
@media (min-width: 900px) { .rows-2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s7); } }
.row { position: relative; display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: var(--s4); padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.thumb { width: 64px; height: 64px; border-radius: var(--r); background: var(--well); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.thumb img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.thumb-text { font-weight: 800; font-size: var(--fs-sm); color: #5a5e69; }
.row-text { min-width: 0; }
.row-text a { display: block; font-weight: 700; font-size: var(--fs-sm); line-height: 1.35; text-decoration: none; }
.row-sub { display: block; margin-top: 2px; font-size: var(--fs-xs); color: var(--muted); }
.row-go { color: var(--muted); transition: transform .15s ease, color .15s ease; }
.row:hover .row-text a { color: var(--accent); }
.row:hover .row-go { color: var(--accent); transform: translateX(4px); }

/* ---------- Steps ---------- */
.steps { display: grid; gap: var(--s5); counter-reset: s; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s6); } }
.steps li { padding-top: var(--s5); border-top: 2px solid var(--ink); }
.step-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: var(--s3); border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.step-n { font-family: var(--mono); font-size: var(--fs-xs); color: var(--muted); }
.steps h3 { margin-top: 0; font-size: var(--fs-lg); }
.steps p { margin-top: var(--s2); color: var(--muted); }
.steps .text-link { margin-top: var(--s4); }
.steps li:nth-child(1) { border-top-color: var(--c); }
.steps li:nth-child(2) { border-top-color: var(--m); }
.steps li:nth-child(3) { border-top-color: var(--y); }

/* ---------- About ---------- */
.about { display: grid; gap: var(--s6); align-items: start; }
@media (min-width: 1000px) { .about { grid-template-columns: 1.7fr 1fr; gap: var(--s8); } }
.block .about-h { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.statement { margin-top: var(--s4); font-size: var(--fs-statement); font-weight: 600; line-height: 1.3; letter-spacing: -.02em; }
.about-side img { width: 100%; max-width: 420px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-lg); }
.about-side .muted { margin-top: var(--s4); }
.about-links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5); margin-top: var(--s4); }

/* ---------- PromoToner strip ---------- */
.promo-block { padding-bottom: 0; }
.promo { display: grid; gap: var(--s5); align-items: center; padding: var(--s6); border-radius: 22px; background: #15171c; color: #f4f3ef; }
:root[data-theme="dark"] .promo { background: #1d2027; border: 1px solid var(--line); }
@media (min-width: 800px) { .promo { grid-template-columns: 1fr auto; padding: var(--s6) var(--s7); } }
.promo h2 { font-size: var(--fs-2xl); font-weight: 800; color: #fff; }
.promo-copy p { margin-top: var(--s2); color: #c9c8c2; font-size: var(--fs-lg); }
.promo-action { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s4); }
.promo-note { font-size: var(--fs-xs); color: #b4b3ad; }
.promo .btn-accent, :root[data-theme="dark"] .promo .btn-accent { background: #d1005f; color: #fff; }
.promo .btn-accent:hover, :root[data-theme="dark"] .promo .btn-accent:hover { background: #b00050; color: #fff; }
.promo .btn-accent:focus-visible { outline-color: #fff; }

/* ---------- Guides index ---------- */
.index-list { border-top: 1px solid var(--line); }
.index-list li { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; column-gap: var(--s4); row-gap: 2px; align-items: center; padding: var(--s4) 0; border-bottom: 1px solid var(--line); }
.il-icon { grid-row: 1 / 3; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.index-list a { grid-column: 2; font-weight: 700; font-size: var(--fs-lg); text-decoration: none; letter-spacing: -.01em; }
.il-desc { grid-column: 2; color: var(--muted); font-size: var(--fs-sm); }
.il-go { grid-column: 3; grid-row: 1 / 3; color: var(--muted); transition: transform .15s ease; }
@media (min-width: 700px) {
  .index-list li { grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1.2fr) 24px; }
  .il-icon, .il-desc, .il-go, .index-list a { grid-row: auto; }
  .il-desc { grid-column: 3; }
  .il-go { grid-column: 4; justify-self: end; }
}
.index-list li:hover a, .index-list li:hover .il-icon { color: var(--accent); }
.index-list li:hover .il-go { transform: translateX(4px); color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.footer-top { display: grid; gap: var(--s6); padding-block: var(--s7) var(--s6); }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1fr 1.6fr; align-items: start; } }
.footer-brand .logo { height: 36px; width: auto; }
.footer-brand .muted { margin-top: var(--s3); max-width: 40ch; font-size: var(--fs-sm); }
.footer-nav ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s2) var(--s5); }
@media (min-width: 600px) { .footer-nav ul { grid-template-columns: repeat(4, 1fr); } }
.footer-nav a { display: inline-block; padding: 6px 0; font-size: var(--fs-sm); font-weight: 600; text-decoration: none; }
.footer-nav a:hover { color: var(--accent); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2); padding-block: var(--s4) var(--s5); border-top: 1px solid var(--line); font-size: var(--fs-xs); color: var(--muted); }

/* ---------- Icons (Lucide) ---------- */
.icon { width: 22px; height: 22px; flex-shrink: 0; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: var(--s5); transform: translateX(-50%); z-index: 60; max-width: calc(100% - 2rem); padding: var(--s3) var(--s5); border-radius: var(--r); background: var(--ink); color: var(--on-ink); font-size: var(--fs-sm); box-shadow: 0 12px 30px rgba(0,0,0,.2); }
.toast[hidden] { display: none; }

/* ---------- Preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms; animation-duration: .01ms; scroll-behavior: auto; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (forced-colors: active) {
  .search-field, .lookup, .panel, .tab { border: 1px solid CanvasText; }
  .sr-option[aria-selected="true"] { outline: 2px solid Highlight; }
}

/* Footer credit */
.credit a { color: var(--text); font-weight: 700; text-decoration: none; }
.credit a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   Logo gradient layer (cyan → magenta → yellow from the Toner.com logo)
   Decorative lines use the full CMY gradient; anything carrying white text
   uses the deeper cyan → magenta version so contrast stays AA.
   ========================================================================== */
:root {
  --grad: linear-gradient(90deg, #00a0dc 0%, #e3007d 55%, #ffd200 100%);
  --grad-deep: linear-gradient(110deg, #0079b8 0%, #8a2bb8 50%, #c2005d 100%);
  --grad-text: linear-gradient(90deg, #007fc0 0%, #c2005d 75%, #d0005a 100%);
  --grad-soft: linear-gradient(135deg, #e3f5fc 0%, #fbe5f0 55%, #fff6cf 100%);
}
:root[data-theme="dark"] {
  --grad-deep: linear-gradient(110deg, #0079b8 0%, #7a28a8 50%, #c2005d 100%);
  --grad-text: linear-gradient(90deg, #4fd0ff 0%, #ff6fb0 60%, #ffd84d 100%);
  --grad-soft: linear-gradient(135deg, #0d2a3a 0%, #34122a 55%, #3a3010 100%);
}

/* Header: gradient hairline */
.site-header { border-bottom: 0; }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--grad); }

/* Hero: soft CMY glows behind the content */
.hero { position: relative; }
.hero-glow { position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(520px 380px at 8% 10%, rgba(0, 160, 220, .16), transparent 70%),
    radial-gradient(560px 420px at 88% 18%, rgba(227, 0, 125, .13), transparent 70%),
    radial-gradient(520px 360px at 60% 95%, rgba(255, 210, 0, .18), transparent 70%); }
:root[data-theme="dark"] .hero-glow { opacity: .9; }
.hero .wrap { position: relative; z-index: 1; }
.hero .hero-grid { z-index: 3; }
.hero-glow { overflow: hidden; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (forced-colors: active) { .grad-text { color: CanvasText; background: none; } }
.overline::before { height: 3px; border-radius: 2px; background: var(--grad); }

/* Search: gradient focus ring, gradient Search button, gradient active tab line */
.search-field:focus-within { border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; box-shadow: 0 10px 30px rgba(194, 0, 93, .12); }
.btn-ink.search-submit { background: var(--grad-deep); color: #fff; }
.btn-ink.search-submit:hover { filter: brightness(1.08); }
.scope-btn[aria-pressed="true"]::after { height: 3px; border-radius: 2px; background: var(--grad); }

/* Lookup card: gradient border */
.lookup { border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; }
.lookup-tag { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Facts & section icons: soft CMY tiles */
.fact-icon, .step-icon, .il-icon { background: var(--grad-soft); border-color: transparent; color: var(--text); }
:root[data-theme="dark"] .fact-icon, :root[data-theme="dark"] .step-icon, :root[data-theme="dark"] .il-icon { color: #fff; }
.facts-row { border-image: var(--grad) 1; border-left: 0; border-right: 0; }

/* Explorer: gradient active tab + top line on the panel */
.tab[aria-selected="true"] { background: var(--grad-deep); border-color: transparent; color: #fff; }
.panel { position: relative; overflow: hidden; }
.panel::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad); }

/* Links: gradient underline */
.text-link { border-bottom: 0; background-image: var(--grad); background-size: 100% 2px; background-repeat: no-repeat; background-position: 0 100%; padding-bottom: 3px; }

/* Brand index: gradient marker on hover */
.brand-index li { position: relative; }
.brand-index li::before { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.brand-index li:hover::before, .brand-index li:focus-within::before { transform: scaleX(1); }

/* Steps: full gradient top rule */
.steps li { border-top: 0; position: relative; }
.steps li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 2px; background: var(--grad); }

/* PromoToner: dark strip with logo-gradient glow + gradient button */
.promo { position: relative; overflow: hidden; }
.promo::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px 220px at 100% 0%, rgba(227, 0, 125, .35), transparent 70%),
              radial-gradient(380px 220px at 0% 100%, rgba(0, 160, 220, .30), transparent 70%),
              radial-gradient(300px 180px at 70% 120%, rgba(255, 210, 0, .22), transparent 70%); }
.promo::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad); }
.promo-copy, .promo-action { position: relative; z-index: 1; }
.promo .btn-accent, :root[data-theme="dark"] .promo .btn-accent { background: var(--grad-deep); color: #fff; }
.promo .btn-accent:hover, :root[data-theme="dark"] .promo .btn-accent:hover { filter: brightness(1.1); background: var(--grad-deep); }

/* Footer: gradient top line */
.site-footer { border-top: 0; position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad); }

/* Brand index: Models / Cartridges as icon pills */
.bi-links { display: flex; gap: var(--s2); }
.bi-links a.bl { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 10px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: var(--fs-xs); font-weight: 600; text-decoration: none; transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.bi-links a.bl .icon { width: 16px; height: 16px; }
.bi-links a.bl-models .icon { color: #0079b8; }
.bi-links a.bl-cartridges .icon { color: #c2005d; }
:root[data-theme="dark"] .bi-links a.bl-models .icon { color: #5fd0f7; }
:root[data-theme="dark"] .bi-links a.bl-cartridges .icon { color: #ff6fb0; }
.bi-links a.bl:hover, .bi-links a.bl:focus-visible { border-color: transparent; background: var(--grad-deep); color: #fff; text-decoration: none; }
.bi-links a.bl:hover .icon, .bi-links a.bl:focus-visible .icon { color: #fff; }
@media (pointer: coarse) { .bi-links a.bl { height: 40px; } }
@media (max-width: 479px), (min-width: 700px) {
  .bi-links a.bl { width: 36px; height: 36px; padding: 0; justify-content: center; }
  .bi-links a.bl .bl-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.bi-legend { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); margin: 0 0 var(--s3); font-size: var(--fs-xs); color: var(--muted); }
.bi-legend span { display: inline-flex; align-items: center; gap: 6px; }
.bi-legend .icon { width: 16px; height: 16px; }
.bi-legend .lg-m .icon { color: #0079b8; } .bi-legend .lg-c .icon { color: #c2005d; }
:root[data-theme="dark"] .bi-legend .lg-m .icon { color: #5fd0f7; } :root[data-theme="dark"] .bi-legend .lg-c .icon { color: #ff6fb0; }
@media (min-width: 480px) and (max-width: 699px) { .bi-legend { display: none; } }

/* Footer link columns */
.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); }
.footer-cols .footer-h { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s3); }
.footer-cols ul { display: grid; gap: 2px; }
@media (min-width: 600px) { .footer-cols nav:last-child ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s5); } }
.footer-cols a { display: inline-block; padding: 6px 0; font-size: var(--fs-sm); font-weight: 600; text-decoration: none; }
.footer-cols a:hover { color: var(--accent); }

/* ---------- Footer refinements ---------- */
.footer-base { border-top: 0; position: relative; }
.footer-base::before { content: ""; position: absolute; top: 0; left: var(--s4); right: var(--s4); height: 1px; background: var(--line); }
@media (min-width: 768px) { .footer-base::before { left: var(--s6); right: var(--s6); } }
/* Toner.com group: 2 columns on phones too, so the list isn't one long column */
.footer-cols nav:last-child ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s4); }
@media (max-width: 479px) {
  .footer-cols { grid-template-columns: 1fr; gap: var(--s5); }
  .footer-cols nav:first-child ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s4); }
}

/* ---------- SurplusInk (sell surplus) partner card ---------- */
.si {
  display: grid; gap: var(--s4); align-items: center; margin-top: var(--s4);
  padding: var(--s5); border: 2px solid transparent; border-radius: 22px;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box;
}
@media (min-width: 800px) { .si { grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s5); padding: var(--s5) var(--s7) var(--s5) var(--s5); } }
.si-logo { display: grid; place-items: center; width: 112px; height: 96px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.si-logo img { width: 88px; height: auto; }
.si-kicker { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
:root[data-theme="dark"] .si-kicker { color: #ff7ab8; }
.si h2 { font-size: var(--fs-xl); font-weight: 800; margin-top: var(--s1); }
.si-copy p:last-child { margin-top: var(--s2); color: var(--muted); max-width: 60ch; }
