/* LaserPrintGuide design system: light, premium technology look.
   Off-white canvas, deep navy type, electric blue + cyan accents, white cards with fine borders,
   soft shadows and subtle gradients. System fonts only; all motion is disabled under reduced motion. */
:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --navy: #14213d;
  --navy-2: #1e2d4f;
  --text: #1e293b;
  --muted: #475569;
  --faint: #64748b;
  --line: #e2e8f0;
  --line-2: #cbd5e1;
  --blue: #2563eb;
  --blue-d: #1d4ed8;
  --cyan: #06b6d4;
  --cyan-d: #0e7490;
  --soft: #eef4ff;
  --grad: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  --grad-soft: linear-gradient(135deg, #eff6ff 0%, #ecfeff 100%);
  --warn-bg: #fff7ed;
  --warn: #c2410c;
  --r-lg: 22px;
  --r: 16px;
  --r-sm: 12px;
  --shadow-1: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 1px rgba(15, 23, 42, .03);
  --shadow-2: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -14px rgba(20, 33, 61, .22);
  --shadow-3: 0 2px 4px rgba(15, 23, 42, .05), 0 24px 48px -20px rgba(37, 99, 235, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --acc: var(--blue); --acc-soft: #dbeafe; --acc-ink: #1d4ed8;
}
.acc-blue { --acc: #2563eb; --acc-soft: #dbeafe; --acc-ink: #1d4ed8; }
.acc-cyan { --acc: #0891b2; --acc-soft: #cffafe; --acc-ink: #0e7490; }
.acc-amber { --acc: #d97706; --acc-soft: #fef3c7; --acc-ink: #92400e; }
.acc-indigo { --acc: #4f46e5; --acc-soft: #e0e7ff; --acc-ink: #4338ca; }
.acc-navy { --acc: #14213d; --acc-soft: #e2e8f0; --acc-ink: #14213d; }
.acc-sky { --acc: #0284c7; --acc-soft: #e0f2fe; --acc-ink: #0369a1; }
.acc-slate { --acc: #475569; --acc-soft: #e2e8f0; --acc-ink: #334155; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--bg); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--blue-d); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { color: var(--navy); line-height: 1.12; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); margin: 0 0 .6rem; font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); margin: 0 0 .7rem; font-weight: 780; }
h3 { font-size: 1.12rem; margin: 0 0 .35rem; font-weight: 700; letter-spacing: -0.012em; }
p { margin: 0 0 1rem; }
.icon { width: 1.2em; height: 1.2em; flex: none; vertical-align: -0.2em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(800px, 100% - 32px); }
.center { text-align: center; }
.small { font-size: .9rem; color: var(--muted); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 60; background: var(--surface); color: var(--navy); padding: 10px 14px; font-weight: 700; border-radius: 10px; box-shadow: var(--shadow-2); }
.skip-link:focus { top: 12px; }
main:focus { outline: none; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-d); margin: 0 0 10px; }
.kicker::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--grad); }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: #1d4ed8; -webkit-text-fill-color: transparent; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 999px; padding: 13px 22px; font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; cursor: pointer; text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s, border-color .25s; }
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn-primary { background: var(--blue); background-image: var(--grad); color: #fff; box-shadow: 0 10px 24px -10px rgba(37, 99, 235, .7); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(37, 99, 235, .75); }
.btn-ghost { background: var(--surface); color: var(--navy); border-color: var(--line-2); box-shadow: var(--shadow-1); }
.btn-ghost:hover { color: var(--blue-d); border-color: var(--blue); transform: translateY(-2px); }
.btn-sm { padding: 9px 16px; font-size: .92rem; }
.more-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.more-link .icon { transition: transform .25s var(--ease); }
.more-link:hover .icon { transform: translateX(3px); }

/* ---------- Masthead ---------- */
.masthead { position: sticky; top: 0; z-index: 40; background: rgba(248, 250, 252, .86); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgba(203, 213, 225, .7); }
.masthead-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; min-height: 66px; padding: 10px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; margin-right: auto; }
.brand:hover { color: var(--navy); }
.brand .logo-mark { width: 36px; height: 36px; flex: none; border-radius: 11px; box-shadow: 0 6px 16px -8px rgba(37, 99, 235, .8); }
.brand-word { font-size: 1.2rem; letter-spacing: -0.03em; font-weight: 750; line-height: 1; }
.brand-word b { font-weight: 800; color: var(--blue-d); }
.head-search { order: 3; flex: 1 1 100%; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; padding: 0 14px; transition: border-color .2s, box-shadow .2s; }
.head-search-ico { color: var(--faint); }
.head-search input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--text); font: inherit; font-size: .95rem; padding: 9px 0; }
.head-search input::placeholder { color: var(--faint); }
.head-search input:focus { outline: none; }
.head-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37, 99, 235, .14); }
.menu-toggle { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); color: var(--navy); border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; }
.menu-toggle:hover { border-color: var(--blue); }
.menu-toggle .icon-close { display: none; }
.masthead.is-open .menu-toggle .icon-open { display: none; }
.masthead.is-open .menu-toggle .icon-close { display: inline; }
.primary-nav { display: none; order: 4; flex: 1 1 100%; padding: 6px 0 16px; }
.masthead.is-open .primary-nav { display: block; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav > ul:first-child { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.primary-nav a { display: block; color: var(--navy); text-decoration: none; padding: 10px 14px; font-weight: 650; border-radius: 12px; }
.primary-nav a:hover { background: var(--soft); color: var(--blue-d); }
.primary-nav a[aria-current] { background: var(--soft); color: var(--blue-d); }
.nav-topics-h { margin: 14px 0 6px; font-size: .75rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.nav-topics { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.nav-topics a { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: .92rem; padding: 8px 10px; background: var(--surface); border: 1px solid var(--line); line-height: 1.25; }
@media (min-width: 1080px) {
  .masthead-inner { flex-wrap: nowrap; gap: 20px; }
  .brand { margin-right: 6px; }
  .menu-toggle { display: none; }
  .primary-nav { display: block; order: 2; flex: 1 1 auto; padding: 0; }
  .primary-nav > ul:first-child { display: flex; gap: 2px; }
  .primary-nav > ul a { padding: 8px 13px; border-radius: 999px; font-size: .96rem; }
  .primary-nav .nav-topics-h, .primary-nav > ul.nav-topics { display: none; }
  .head-search { order: 3; flex: 0 1 240px; }
}

/* ---------- Category icons (duotone, animated on hover) ---------- */
.cat-ico { width: 48px; height: 48px; flex: none; color: var(--acc); }
.cat-ico .f { fill: var(--acc-soft); }
.cat-ico .w { fill: #fff; }
.cat-ico .dot { fill: currentColor; stroke: none; }
.cat-ico-sm { width: 30px; height: 30px; }
.cat-ico-xs { width: 22px; height: 22px; }
.cat-ico g, .cat-ico path { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  :is(.qa, .rel-card, .nav-topics li, .other-cats li, .jump-list li):hover .ic-drop { animation: ic-drop 1s var(--ease) infinite; }
  :is(.qa, .rel-card, .nav-topics li, .other-cats li, .jump-list li):hover .wv1 { animation: ic-blink 1.2s ease-in-out infinite; }
  :is(.qa, .rel-card, .nav-topics li, .other-cats li, .jump-list li):hover .wv2 { animation: ic-blink 1.2s ease-in-out .3s infinite; }
  :is(.qa, .rel-card, .nav-topics li, .other-cats li, .jump-list li):hover .ic-pulse { animation: ic-pulse 1s ease-in-out infinite; }
  :is(.qa, .rel-card, .nav-topics li, .other-cats li, .jump-list li):hover .cur { animation: ic-blink .8s steps(2) infinite; }
  :is(.qa, .rel-card, .nav-topics li, .other-cats li, .jump-list li):hover .ic-dust { animation: ic-float 1.4s ease-in-out infinite; }
  :is(.qa, .rel-card, .nav-topics li, .other-cats li, .jump-list li):hover .ic-lens { animation: ic-lens 1.6s ease-in-out infinite; }
  :is(.qa, .rel-card, .nav-topics li, .other-cats li, .jump-list li):hover .ic-spin { animation: ic-spin 3s linear infinite; }
  .ic-beam { animation: ic-scan 2.8s ease-in-out infinite; }
}
@keyframes ic-drop { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
@keyframes ic-blink { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }
@keyframes ic-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@keyframes ic-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes ic-lens { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-4px, -3px); } }
@keyframes ic-spin { to { transform: rotate(360deg); } }
@keyframes ic-scan { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ---------- Search form (compact) ---------- */
.search-form { display: flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 5px 5px 16px; box-shadow: var(--shadow-1); transition: border-color .2s, box-shadow .2s; }
.search-form:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37, 99, 235, .14); }
.sf-ico { color: var(--faint); }
.search-form input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 1rem; color: var(--text); padding: 8px 4px; }
.search-form input::placeholder { color: var(--faint); }
.search-form input:focus { outline: none; }
.search-compact { width: 100%; max-width: 460px; margin-top: 22px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 48px 0 56px; border-bottom: 1px solid var(--line); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(600px 380px at 85% 30%, rgba(37, 99, 235, .13), transparent 70%),
  radial-gradient(520px 340px at 70% 85%, rgba(6, 182, 212, .12), transparent 70%),
  radial-gradient(500px 300px at 0% 0%, rgba(37, 99, 235, .06), transparent 70%); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(20, 33, 61, .12) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000 75%); mask-image: linear-gradient(90deg, transparent 35%, #000 75%); opacity: .55; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); font-size: .85rem; font-weight: 650; color: var(--navy); margin: 0 0 20px; }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(6, 182, 212, .2); }
.hero h1 { max-width: 13ch; }
.hero h1 .grad-text { display: inline; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-facts { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .9rem; color: var(--muted); }
.hero-facts li { display: inline-flex; align-items: center; gap: 7px; }
.hero-facts .icon { color: var(--blue); }
.hero-visual { position: relative; }
.hero-stage { position: relative; max-width: 600px; margin: 0 auto; aspect-ratio: 560 / 440; transform: perspective(1200px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)); transition: transform .4s var(--ease); }
.hero-printer { display: block; width: 100%; height: 100%; overflow: visible; }
.hcard { position: absolute; display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .92); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow-2); font-size: .82rem; color: var(--navy); line-height: 1.25; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hcard b { display: block; font-size: .9rem; }
.hcard small { display: block; color: var(--muted); font-size: .76rem; }
.hc-k { display: block; font-size: .68rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hcard-wifi { left: 0; top: 8%; }
.hc-sig { display: inline-flex; align-items: flex-end; gap: 3px; height: 20px; }
.hc-sig i { width: 4px; border-radius: 2px; background: var(--cyan); }
.hc-sig i:nth-child(1) { height: 6px; } .hc-sig i:nth-child(2) { height: 10px; } .hc-sig i:nth-child(3) { height: 14px; } .hc-sig i:nth-child(4) { height: 19px; }
.hcard-toner { right: 0; top: 64%; flex-direction: column; align-items: stretch; gap: 6px; min-width: 150px; }
.hc-bar { display: block; height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.hc-bar i { display: block; height: 100%; width: 72%; border-radius: inherit; background: var(--grad); }
.hcard-job { left: 0; bottom: 4%; flex-direction: column; align-items: stretch; gap: 4px; min-width: 190px; }
.hc-progress { display: block; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 4px; }
.hc-progress i { display: block; height: 100%; width: 66%; border-radius: inherit; background: var(--grad); transform-origin: left; }
.hcard-chip { right: 6%; top: 4%; gap: 8px; font-weight: 700; padding: 8px 12px; border-radius: 999px; }
.hc-dot { width: 8px; height: 8px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, .2); }
.hero-printer .hp-paper, .hero-printer .hp-beam, .hero-printer .hp-led { transform-box: fill-box; }
@media (prefers-reduced-motion: no-preference) {
  .hp-paper { animation: hp-print 6s var(--ease) infinite; }
  .hp-beam { animation: hp-scan 1.6s ease-in-out infinite alternate; }
  .hp-led { animation: hp-led 2s ease-in-out infinite; transform-origin: center; }
  .hp-ui { animation: ic-blink 3s ease-in-out infinite; }
  .hcard { animation: hc-float 7s ease-in-out infinite; }
  .hcard-toner { animation-delay: -2s; } .hcard-job { animation-delay: -4s; } .hcard-chip { animation-delay: -1s; }
  .hc-sig i { animation: hc-sig 2.4s ease-in-out infinite; transform-origin: bottom; }
  .hc-sig i:nth-child(2) { animation-delay: .15s; } .hc-sig i:nth-child(3) { animation-delay: .3s; } .hc-sig i:nth-child(4) { animation-delay: .45s; }
  .hc-progress i { animation: hc-progress 6s var(--ease) infinite; }
  .pill-dot { animation: hp-led 2.4s ease-in-out infinite; }
}
@keyframes hp-print { 0% { transform: translateY(96px); opacity: 0; } 12% { opacity: 1; } 70% { transform: translateY(-30px); opacity: 1; } 88%, 100% { transform: translateY(-46px); opacity: 0; } }
@keyframes hp-scan { from { transform: translateX(0); } to { transform: translateX(244px); } }
@keyframes hp-led { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes hc-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes hc-sig { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.55); } }
@keyframes hc-progress { 0% { transform: scaleX(.05); } 75%, 100% { transform: scaleX(1.5); } }
@media (min-width: 960px) {
  .hero { padding: 72px 0 84px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; }
}
@media (max-width: 520px) {
  .hcard { font-size: .74rem; padding: 7px 10px; }
  .hcard-toner { min-width: 120px; } .hcard-job { min-width: 150px; }
  .hcard-chip { display: none; }
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-soft { background: linear-gradient(180deg, #f1f5fb 0%, #f8fafc 100%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 34px; }
.section-head p:last-child { margin-bottom: 0; color: var(--muted); }
.section-head-row { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px 24px; }
.section-head-row h2 { margin: 0; }

/* Scroll reveal: only active when JS has set html.reveal-ready and motion is allowed. */
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .reveal-ready .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Quick access (bento, varied cards) ---------- */
.qa-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.qa { position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.qa:hover { transform: translateY(-4px); }
.qa-link { position: relative; z-index: 1; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "ico text" "ico count"; gap: 6px 16px; align-items: start; padding: 22px; color: inherit; text-decoration: none; flex: 1; border-radius: inherit; }
.qa-feature .qa-link { flex: none; }
.qa-ico { grid-area: ico; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px; background: var(--acc-soft); }
.qa-text { grid-area: text; display: flex; flex-direction: column; gap: 4px; }
.qa-text strong { color: var(--navy); font-size: 1.12rem; line-height: 1.25; }
.qa-text span { color: var(--muted); font-size: .95rem; line-height: 1.45; }
.qa-count { grid-area: count; display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 700; color: var(--acc-ink); margin-top: 8px; }
.qa-count .icon { transition: transform .25s var(--ease); }
.qa:hover .qa-count .icon { transform: translateX(4px); }
.qa-feature { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); overflow: hidden; }
.qa-feature::before { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(closest-side, var(--acc-soft), transparent); pointer-events: none; }
.qa-feature .qa-ico { width: 76px; height: 76px; background: var(--grad); }
.qa-feature .qa-ico .cat-ico { color: #fff; }
.qa-feature .qa-ico .cat-ico .f { fill: rgba(255, 255, 255, .25); }
.qa-feature .qa-ico .cat-ico .w { fill: rgba(255, 255, 255, .15); }
.qa-feature:hover { box-shadow: var(--shadow-3); }
.qa-mini { position: relative; list-style: none; margin: 0; padding: 0 22px 20px; display: grid; gap: 6px; }
.qa-mini a { display: block; padding: 9px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); font-size: .92rem; font-weight: 600; color: var(--navy); text-decoration: none; }
.qa-mini a:hover { border-color: var(--acc); color: var(--acc-ink); }
.qa-tint { background: linear-gradient(160deg, var(--acc-soft), #ffffff 85%); border: 1px solid transparent; }
.qa-tint .qa-ico { background: #fff; box-shadow: var(--shadow-1); }
.qa-tint:hover { box-shadow: var(--shadow-2); }
.qa-outline { background: transparent; border: 1px dashed var(--line-2); }
.qa-outline .qa-ico { border-radius: 50%; background: var(--surface); border: 1px solid var(--line); }
.qa-outline:hover { background: var(--surface); border-style: solid; border-color: var(--acc); box-shadow: var(--shadow-2); }
.qa-dark { background: var(--navy); background-image: radial-gradient(260px 160px at 100% 0%, rgba(6, 182, 212, .35), transparent 70%); }
.qa-dark .qa-text strong { color: #fff; }
.qa-dark .qa-text span { color: #cbd5e1; }
.qa-dark .qa-count { color: #67e8f9; }
.qa-dark .qa-ico { background: rgba(255, 255, 255, .08); }
.qa-dark .cat-ico { color: #67e8f9; }
.qa-dark .cat-ico .f { fill: rgba(103, 232, 249, .15); }
.qa-dark .cat-ico .w { fill: rgba(255, 255, 255, .08); }
.qa-dark:hover { box-shadow: 0 20px 40px -20px rgba(20, 33, 61, .7); }
.qa-edge { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); overflow: hidden; }
.qa-edge::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--grad); }
.qa-edge:hover { box-shadow: var(--shadow-2); }
@media (min-width: 680px) {
  .qa-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qa-feature, .qa-edge, .maintenance-wide { grid-column: span 2; }
}
@media (min-width: 1040px) {
  .qa-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .qa-feature { grid-column: span 2; }
  .qa-edge, .qa-grid > .qa:last-child { grid-column: span 2; }
  .qa-feature .qa-link { grid-template-columns: auto 1fr; }
}
@media (min-width: 680px) and (max-width: 1039px) { .qa-grid > .qa:last-child { grid-column: span 2; } }

/* ---------- Troubleshooter ---------- */
.ts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.ts-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ts-tab { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--navy); font-weight: 650; font-size: .95rem; line-height: 1.25; text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s var(--ease), background-color .2s; height: 100%; }
.ts-tab:hover { border-color: var(--blue); color: var(--blue-d); transform: translateX(2px); }
.ts-tab .ts-ico { width: 26px; height: 26px; flex: none; color: var(--blue); }
.ts-arr { margin-left: auto; color: var(--faint); opacity: 0; transition: opacity .2s, transform .2s var(--ease); }
.ts-tab[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 12px 28px -14px rgba(20, 33, 61, .8); }
.ts-tab[aria-selected="true"] .ts-ico { color: #67e8f9; }
.ts-tab[aria-selected="true"] .ts-arr { opacity: 1; color: #67e8f9; }
.ts-panels { display: grid; gap: 16px; }
.ts-panel { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-2); overflow: hidden; }
.ts-panel::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad); }
.ts-panel-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.ts-badge { width: 54px; height: 54px; flex: none; display: grid; place-items: center; border-radius: 16px; background: var(--grad-soft); color: var(--blue); border: 1px solid #dbeafe; }
.ts-badge .ts-ico { width: 30px; height: 30px; }
.ts-k { margin: 0; font-size: .75rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan-d); }
.ts-panel h3 { font-size: 1.45rem; margin: 0; }
.ts-lead { color: var(--muted); }
.ts-checks { list-style: none; margin: 0 0 18px; padding: 0; counter-reset: c; display: grid; gap: 10px; }
.ts-checks li { counter-increment: c; position: relative; padding: 10px 14px 10px 50px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.ts-checks li::before { content: counter(c); position: absolute; left: 12px; top: 9px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 800; color: #fff; background: var(--grad); }
.ts-links p { margin: 0 0 8px; font-size: .78rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ts-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ts-links a { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; text-decoration: none; }
.ts-links a:hover { text-decoration: underline; }
.ts-links a.ts-primary { color: var(--blue-d); font-weight: 750; }
.ts-js .ts-panel[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) { .ts-js .ts-panel:not([hidden]) { animation: ts-in .45s var(--ease); } }
@keyframes ts-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (min-width: 900px) {
  .ts { grid-template-columns: 330px minmax(0, 1fr); gap: 28px; }
  .ts-list { grid-template-columns: minmax(0, 1fr); }
  .ts-panel { padding: 34px; min-height: 100%; }
}

/* ---------- Technology diagrams ---------- */
.tech-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.tech figure { margin: 0; height: 100%; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); overflow: hidden; transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.tech:hover figure { box-shadow: var(--shadow-2); transform: translateY(-3px); }
.tech-svg { display: block; width: 100%; height: auto; aspect-ratio: 320 / 190; background: var(--grad-soft); border-bottom: 1px solid var(--line); }
.tech figcaption { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.tech figcaption p { color: var(--muted); font-size: .95rem; margin: 0 0 8px; }
.tech figcaption a { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; font-size: .93rem; }
.tech-no { font-family: var(--mono); font-size: .78rem; font-weight: 700; color: var(--cyan-d); }
.tech-wide figure { flex-direction: column; }
@media (min-width: 700px) { .tech-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tech-wide { grid-column: span 2; } }
@media (min-width: 1040px) {
  .tech-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tech-wide { grid-column: span 2; }
  .tech-wide figure { flex-direction: row; }
  .tech-wide .tech-svg { width: 58%; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--line); }
  .tech-wide figcaption { justify-content: center; padding: 28px; }
  .tech-wide h3 { font-size: 1.45rem; }
}
.tech-svg text { font-family: var(--font); text-anchor: middle; }
.t-track { stroke: #93c5fd; stroke-width: 3; stroke-dasharray: 6 8; fill: none; }
.t-run { fill: var(--cyan); }
.t-node { fill: #fff; stroke: var(--blue); stroke-width: 2.5; }
.t-node-hot { fill: var(--blue); }
.t-num { font-size: 15px; font-weight: 800; fill: var(--navy); }
.t-node-hot + .t-num { fill: #fff; }
.t-lab { font-size: 12px; font-weight: 650; fill: var(--muted); }
.t-drum { fill: #dbeafe; stroke: var(--blue); stroke-width: 3; }
.t-sign { font-size: 14px; font-weight: 800; fill: var(--blue-d); }
.t-plus { fill: #fff; }
.t-toner { fill: var(--navy); }
.t-paper { fill: #fff; stroke: var(--line-2); stroke-width: 2; }
.t-roller { fill: var(--navy); stroke: var(--navy); }
.t-arrow { fill: none; stroke: var(--cyan-d); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.t-box { fill: #fff; stroke: var(--line-2); stroke-width: 2; }
.t-mirror { fill: #cffafe; stroke: var(--cyan-d); stroke-width: 2; }
.t-laser { fill: none; stroke: var(--cyan); stroke-width: 3; stroke-linecap: round; }
.t-drum-mark { stroke: var(--blue-d); stroke-width: 3; stroke-linecap: round; }
.t-hit { fill: var(--cyan); }
.t-heat-roller { fill: #ffedd5; stroke: #ea580c; stroke-width: 3; }
.t-waves path { fill: none; stroke: #ea580c; stroke-width: 2.5; stroke-linecap: round; }
.t-stack { stroke: var(--line-2); stroke-width: 3; }
.t-pad { fill: var(--cyan); }
.t-path { fill: none; stroke: #93c5fd; stroke-width: 3; stroke-dasharray: 6 7; }
.tech-svg :is(.t-run, .t-spin, .t-fall, .t-mirror, .t-waves, .t-slide, .t-hit) { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .t-run { animation: t-run 5s linear infinite; }
  .t-spin { animation: ic-spin 8s linear infinite; }
  .t-mirror { animation: ic-spin 4s linear infinite; }
  .t-fall { animation: t-fall 2.2s ease-in infinite; }
  .t-waves { animation: ic-float 2s ease-in-out infinite; }
  .t-slide { animation: t-slide 3.5s ease-in-out infinite; }
  .t-hit { animation: hp-led 1s ease-in-out infinite; }
  .t-track, .t-path { animation: t-dash 2s linear infinite; }
}
@keyframes t-run { from { transform: translateX(0); } to { transform: translateX(260px); } }
@keyframes t-fall { 0% { transform: translateY(-14px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(6px); opacity: 0; } }
@keyframes t-slide { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(140px); } }
@keyframes t-dash { to { stroke-dashoffset: -28; } }

/* ---------- Feed (latest guides) ---------- */
.feed { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.feed-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-1); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.feed-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); }
.feed-link { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; }
.feed-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--grad-soft); border-bottom: 1px solid var(--line); }
.feed-thumb .thumb { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.feed-card:hover .thumb { transform: scale(1.04); }
.feed-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 0; flex: 1; }
.feed-title { font-weight: 750; color: var(--navy); font-size: 1.08rem; line-height: 1.3; letter-spacing: -0.01em; }
.feed-card:hover .feed-title { color: var(--blue-d); }
.feed-sum { color: var(--muted); font-size: .93rem; line-height: 1.5; }
.feed-card .card-meta { padding: 12px 20px 18px; margin: 0; }
@media (min-width: 700px) { .feed { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .feed { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.cat-label { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: var(--acc-soft); color: var(--acc-ink); font-size: .76rem; font-weight: 750; text-decoration: none; line-height: 1.3; }
a.cat-label:hover { color: var(--acc-ink); text-decoration: underline; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: .82rem; color: var(--muted); margin: 8px 0 0; }
.card-meta .icon { width: 1em; height: 1em; color: var(--faint); }
.card-meta time { margin-right: 8px; }
.fmt { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: .74rem; font-weight: 750; border: 1px solid var(--line-2); color: var(--muted); background: var(--surface); line-height: 1.3; }
.fmt-tutorial { color: #1d4ed8; border-color: #bfdbfe; background: #eff6ff; }
.fmt-fix { color: #9a3412; border-color: #fed7aa; background: #fff7ed; }
.fmt-explainer { color: #0e7490; border-color: #a5f3fc; background: #ecfeff; }

/* ---------- Safety + updates ---------- */
.safety { display: grid; gap: 24px; padding: 30px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); position: relative; overflow: hidden; }
.safety::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: linear-gradient(180deg, #f59e0b, #ea580c); }
.safety-head p:last-child { margin: 0; color: var(--muted); }
.safety-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.safety-grid li { display: flex; gap: 12px; align-items: flex-start; font-size: .97rem; padding: 14px; border-radius: 14px; background: var(--warn-bg); }
.safety-grid .icon { width: 28px; height: 28px; color: var(--warn); }
@media (min-width: 700px) { .safety-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .safety { grid-template-columns: 1fr 2fr; padding: 36px; } }
.section-updates { padding-top: 24px; }
.upd-grid { display: grid; gap: 30px; }
.upd-grid > div > p { color: var(--muted); }
.indep { margin-top: 18px; padding: 18px 20px; border-radius: var(--r); background: var(--grad-soft); border: 1px solid #dbeafe; }
.indep p { margin: 0 0 8px; font-size: .95rem; color: var(--text); }
.indep-mail { margin: 0 !important; }
.upd-list { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 2px solid var(--line); display: grid; gap: 20px; }
.upd-list li { position: relative; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.upd-list li::before { content: ""; position: absolute; left: -31px; top: 22px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--cyan); }
.upd-list time { font-size: .8rem; font-weight: 700; color: var(--cyan-d); }
.upd-list h3 { margin: 2px 0 4px; }
.upd-list h3 a { color: var(--navy); text-decoration: none; }
.upd-list h3 a:hover { color: var(--blue-d); text-decoration: underline; }
.upd-list p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (min-width: 960px) { .upd-grid { grid-template-columns: 1fr 1.2fr; gap: 56px; } }

/* ---------- Page heroes ---------- */
.page-hero { position: relative; padding: 30px 0 42px; border-bottom: 1px solid var(--line); background: radial-gradient(700px 300px at 90% 0%, rgba(37, 99, 235, .09), transparent 70%), radial-gradient(500px 260px at 100% 100%, rgba(6, 182, 212, .08), transparent 70%); }
.crumbs ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: .87rem; }
.crumbs li:not(:last-child)::after { content: "/"; margin: 0 8px; color: var(--line-2); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--blue-d); }
.crumbs [aria-current] { color: var(--faint); }
.jump-list { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.jump-list a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--navy); text-decoration: none; font-size: .9rem; font-weight: 650; box-shadow: var(--shadow-1); transition: border-color .2s, transform .2s var(--ease); }
.jump-list a:hover { border-color: var(--acc); transform: translateY(-2px); }

/* Hub */
.hub { padding: 40px 0 80px; display: grid; gap: 22px; }
.hub-block { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-1); }
.hub-media { background: var(--grad-soft); display: flex; align-items: center; }
.hub-media .thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.hub-body { padding: 24px; }
.hub-body h2 { display: flex; align-items: center; gap: 12px; font-size: 1.45rem; }
.hub-body h2 a { color: var(--navy); text-decoration: none; }
.hub-body h2 a:hover { color: var(--acc-ink); text-decoration: underline; }
.hub-ico { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--acc-soft); flex: none; }
.hub-body > p { color: var(--muted); }
.hub-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hub-list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); color: var(--navy); font-weight: 650; text-decoration: none; transition: border-color .2s, background-color .2s; }
.hub-list a:hover { border-color: var(--acc); background: var(--bg); }
.hub-list .fmt { flex: none; }
@media (min-width: 900px) {
  .hub-block { grid-template-columns: 380px minmax(0, 1fr); }
  .hub-flip { grid-template-columns: minmax(0, 1fr) 380px; }
  .hub-flip .hub-media { order: 2; }
  .hub-body { padding: 30px 34px; }
}

/* Category */
.cat-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; align-items: center; }
.cat-chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .85rem; font-weight: 700; color: var(--acc-ink); margin: 0 0 12px; }
.cat-chip .cat-ico { background: var(--acc-soft); border-radius: 50%; padding: 3px; }
.cat-intro { max-width: 66ch; color: var(--muted); }
.cat-intro p:last-child { margin-bottom: 0; }
.cat-art .thumb, .guide-art .thumb { width: 100%; border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--shadow-2); aspect-ratio: 16 / 9; object-fit: cover; }
@media (min-width: 900px) { .cat-hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; } }
.cat-layout { display: grid; gap: 34px; padding: 40px 0 80px; }
@media (min-width: 980px) { .cat-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; } }
.cat-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cat-card { display: flex; gap: 18px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-1); transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s; }
.cat-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); border-color: var(--line-2); }
.cat-card-no { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; font-family: var(--mono); font-weight: 800; color: var(--acc-ink); background: var(--acc-soft); }
.cat-card-top { margin: 0 0 6px; }
.cat-card h3 { font-size: 1.18rem; }
.cat-card h3 a { color: var(--navy); text-decoration: none; }
.cat-card h3 a:hover { color: var(--blue-d); text-decoration: underline; }
.cat-card p { margin: 0; color: var(--muted); font-size: .96rem; }
.cat-card .card-meta { margin-top: 10px; }
.aside-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow-1); }
.aside-box h2 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: .96rem; line-height: 1.5; }
.checks .icon { color: #fff; background: var(--grad); border-radius: 50%; padding: 3px; width: 20px; height: 20px; margin-top: 2px; }
.other-cats { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.other-cats a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; color: var(--navy); text-decoration: none; font-weight: 600; font-size: .94rem; }
.other-cats a:hover { background: var(--bg); color: var(--acc-ink); }
.other-cats-row { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .other-cats-row { grid-template-columns: 1fr 1fr; } }
.aside-note { font-size: .88rem; color: var(--muted); }

/* ---------- Article ---------- */
.guide-hero { padding-bottom: 36px; }
.guide-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: center; }
.guide-hero h1 { font-size: clamp(1.95rem, 4vw, 2.9rem); max-width: 24ch; }
.guide-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.guide-facts { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.guide-facts li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .84rem; color: var(--muted); }
.guide-facts .icon { width: 1em; height: 1em; color: var(--blue); }
.guide-art .thumb { max-height: 150px; }
@media (min-width: 900px) { .guide-hero-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 44px; } .guide-art .thumb { max-height: none; } }
.guide-layout { display: grid; gap: 30px; padding: 40px 0 72px; }
@media (min-width: 1040px) { .guide-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 52px; } .toc { position: sticky; top: 90px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; } }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow-1); }
.toc h2 { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: grid; grid-template-columns: 28px 1fr; padding: 6px 8px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .9rem; line-height: 1.4; }
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--mono); font-size: .74rem; color: var(--faint); padding-top: 2px; }
.toc a:hover { background: var(--bg); color: var(--blue-d); }
.guide-body { min-width: 0; max-width: 780px; }
.applies { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; font-size: .93rem; color: var(--text); margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.applies span { font-size: .72rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan-d); }
.safety-box { border-radius: 14px; background: var(--warn-bg); border: 1px solid #fed7aa; padding: 14px 16px; margin-bottom: 18px; }
.safety-box p { display: flex; gap: 12px; margin: 0; font-size: .97rem; }
.safety-box .icon { color: var(--warn); margin-top: 3px; }
.needs { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; margin-bottom: 32px; box-shadow: var(--shadow-1); }
.needs h2 { display: flex; gap: 10px; align-items: center; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.needs h2 .icon { color: var(--blue); }
.prose { font-size: 1.05rem; }
.prose h2 { display: flex; align-items: baseline; gap: 12px; font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin: 48px 0 14px; }
.prose > h2:first-child { margin-top: 0; }
.sec-no { flex: none; display: inline-grid; place-items: center; min-width: 38px; height: 30px; padding: 0 6px; border-radius: 9px; font-family: var(--mono); font-size: .6em; font-weight: 800; color: var(--blue-d); background: var(--soft); border: 1px solid #dbeafe; transform: translateY(-3px); }
.prose h3 { font-size: 1.16rem; margin: 30px 0 8px; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.1rem; }
.prose li { margin: 0 0 .55rem; }
.prose li::marker { color: var(--blue); }
.prose ol { list-style: none; padding-left: 0; counter-reset: step; }
.prose ol > li { counter-increment: step; position: relative; padding: 14px 16px 14px 62px; margin-bottom: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-1); }
.prose ol > li::before { content: counter(step); position: absolute; left: 16px; top: 14px; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: .9rem; color: #fff; background: var(--grad); box-shadow: 0 6px 14px -6px rgba(37, 99, 235, .8); }
.prose ol > li p { margin: .5rem 0 0; }
.prose ol ul { margin: .5rem 0 0; }
.prose strong { color: var(--navy); }
.prose #key-terms + ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.prose #key-terms + ul li { padding: 12px 16px; margin: 0; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: .98rem; }
.prose #key-terms + ul strong { color: var(--blue-d); }
.prose #faq ~ h3 { padding: 14px 16px 0; margin-bottom: 0; background: var(--surface); border: 1px solid var(--line); border-bottom: 0; border-radius: 14px 14px 0 0; }
.prose #faq ~ h3 + p { padding: 6px 16px 14px; background: var(--surface); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 14px 14px; margin-bottom: 12px; }
.callout { position: relative; border-radius: 14px; padding: 14px 16px 14px 18px; margin: 0 0 1.2rem; background: var(--grad-soft); border: 1px solid #bae6fd; }
.callout p { margin: 0; }
.callout-ico { display: none; }
.callout-label { display: inline-block; margin-right: 8px; padding: 2px 10px; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--grad); vertical-align: 1px; }
.callout-mistake { background: #fff7ed; border-color: #fed7aa; }
.callout-mistake .callout-label { background: linear-gradient(135deg, #ea580c, #d97706); background-color: #c2410c; }
.callout-safety { background: var(--warn-bg); border-color: #fed7aa; }
.callout-safety .callout-label { background: #c2410c; }
blockquote { margin: 0 0 1.1rem; padding: 4px 0 4px 16px; border-left: 3px solid var(--line-2); color: var(--muted); }
.sources { margin-top: 40px; padding: 18px 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.sources h2 { display: flex; gap: 10px; align-items: center; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.sources ul { margin: 0 0 10px; padding-left: 1.2rem; }
.sources li { margin-bottom: 6px; }
a.ext::after { content: "\2197"; font-size: .8em; margin-left: 3px; display: inline-block; }
.independence { margin-top: 18px; background: var(--grad-soft); border: 1px solid #dbeafe; border-radius: var(--r); padding: 14px 16px; }
.independence p { margin: 0; font-size: .92rem; }
.rel-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.rel-card a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); color: inherit; text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.rel-card a:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.rel-ico { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--acc-soft); }
.rel-title { font-weight: 750; color: var(--navy); line-height: 1.3; }
.rel-card a:hover .rel-title { color: var(--blue-d); }
.rel-sum { color: var(--muted); font-size: .93rem; }
@media (min-width: 900px) { .rel-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* In-article diagrams */
.diagram { container-type: inline-size; margin: 28px 0; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); padding: 20px; box-shadow: var(--shadow-1); }
.diagram-title { font-size: .8rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-d); margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.diagram figcaption { font-size: .9rem; color: var(--muted); margin-top: 14px; }
.pc-k { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan-d); margin: 0 0 4px; }
.prose .diagram ol { padding-left: 0; margin-bottom: 0; }
.prose .diagram ol > li { padding: 0; margin: 0; background: none; border: 0; box-shadow: none; border-radius: 0; }
.prose .diagram ol > li::before { content: none; }
.process-steps { list-style: none; margin: 0; padding: 0; display: grid; counter-reset: ps; }
.process-steps li { counter-increment: ps; display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; padding: 12px 0 !important; border-bottom: 1px dashed var(--line-2) !important; }
.process-steps li:last-child { border-bottom: 0 !important; }
.ps-ico { grid-row: span 2; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--grad-soft); color: var(--blue); position: relative; border: 1px solid #dbeafe; }
.ps-ico::after { content: counter(ps); position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; font-weight: 800; color: #fff; background: var(--grad); }
.ps-ico .icon { width: 26px; height: 26px; }
.process-steps strong { color: var(--navy); }
.process-steps span:not(.ps-ico) { font-size: .93rem; color: var(--muted); line-height: 1.45; }
.path-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.prose .diagram .path-cards li { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; background: var(--bg); }
.path-cards strong { color: var(--navy); }
.path-cards span { font-size: .95rem; line-height: 1.5; }
.path-cards em { font-style: normal; font-size: .86rem; color: var(--muted); }
@container (min-width: 600px) { .path-cards { grid-template-columns: 1fr 1fr; } }
.decision { list-style: none; margin: 0; padding: 0; }
.prose .diagram .decision li { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.prose .diagram .decision li:last-child { border-bottom: 0; }
.dc-arrow { display: none; color: var(--faint); }
.decision a { font-weight: 700; }
@container (min-width: 600px) { .prose .diagram .decision li { grid-template-columns: 1fr 28px 220px; align-items: center; gap: 10px; } .dc-arrow { display: block; } }
.conn-grid, .td-grid { display: grid; gap: 12px; }
.conn-grid > div, .td-grid > div { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--bg); }
.conn-grid strong, .td-grid strong { display: block; color: var(--navy); margin-bottom: 6px; }
.conn-grid ul { margin: 0; padding-left: 18px; font-size: .93rem; }
.td-grid > div > span { font-size: .93rem; display: block; }
.td-art { display: flex; align-items: center; gap: 8px; margin: 8px 0 10px; }
.td-box { font-size: .8rem; font-weight: 700; padding: 12px 12px; border-radius: 10px; border: 1.5px solid var(--navy); background: var(--surface); }
.td-drum { background: #dbeafe; border-color: var(--blue); }
.td-plus { font-weight: 800; }
@container (min-width: 640px) { .conn-grid { grid-template-columns: repeat(3, 1fr); } .td-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Search page ---------- */
.search-results-wrap { padding: 28px 0 72px; }
.search-status { font-weight: 650; color: var(--navy); min-height: 1.5em; }
.search-results { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 12px; }
.search-results .guide-row { padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-1); }
.search-results .kicker { font-size: .72rem; margin-bottom: 4px; }
.search-results .h3-like { font-size: 1.1rem; margin: 0 0 6px; }
.search-results .h3-like a { color: var(--navy); text-decoration: none; }
.search-results .h3-like a:hover { color: var(--blue-d); text-decoration: underline; }
.search-results p { margin: 0; color: var(--muted); font-size: .95rem; }
mark { background: #cffafe; color: inherit; padding: 0 2px; border-radius: 3px; }
.notice-inline { border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; background: var(--surface); }
.nf-body { padding: 34px 0 72px; }

/* ---------- Doc pages ---------- */
.doc-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: center; }
.doc-badge { display: none; width: 132px; height: 132px; place-items: center; border-radius: 34px; background: var(--grad); box-shadow: var(--shadow-3); color: #fff; transform: rotate(-6deg); }
.doc-badge .doc-badge-ico { width: 62px; height: 62px; }
.doc-badge .cat-ico { width: 72px; height: 72px; color: #fff; }
.doc-badge .cat-ico .f { fill: rgba(255, 255, 255, .25); }
.doc-badge .cat-ico .w { fill: rgba(255, 255, 255, .15); }
@media (min-width: 800px) { .doc-hero-grid { grid-template-columns: minmax(0, 1fr) auto; } .doc-badge { display: grid; margin-right: 24px; } }
.doc-layout { display: grid; gap: 30px; padding: 40px 0 72px; }
@media (min-width: 1040px) { .doc-layout { grid-template-columns: 250px minmax(0, 780px); gap: 52px; } .doc-layout .toc { position: sticky; top: 90px; align-self: start; } .doc-layout-single { grid-template-columns: minmax(0, 780px); } }
.doc-body section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px 8px; margin-bottom: 14px; }
.doc-body h2 { font-size: 1.35rem; }
.byline { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); margin: 0; }
.byline .icon { color: var(--blue); }
.contact-layout { display: grid; gap: 30px; padding: 40px 0 72px; }
@media (min-width: 900px) { .contact-layout { grid-template-columns: 380px minmax(0, 1fr); align-items: start; gap: 52px; } }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-2); position: relative; overflow: hidden; }
.contact-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad); }
.contact-card h2 { display: flex; gap: 10px; align-items: center; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-card p:last-child { margin: 0; font-size: .95rem; color: var(--muted); }
.email-big { display: inline-flex; gap: 10px; align-items: center; font-size: 1.15rem; font-weight: 750; word-break: break-word; }
.contact-layout .prose section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px 6px; margin-bottom: 14px; }
.contact-layout .prose h2 { margin-top: 0; font-size: 1.3rem; }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--navy); color: #cbd5e1; padding: 60px 0 28px; font-size: .95rem; }
.footer-glow { position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad); }
.site-footer::after { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(closest-side, rgba(6, 182, 212, .18), transparent); pointer-events: none; }
.site-footer a { color: #e2e8f0; }
.site-footer a:hover { color: #67e8f9; }
.site-footer .brand, .site-footer .brand:hover { color: #fff; }
.site-footer .brand-word b { color: #67e8f9; }
.footer-grid { position: relative; z-index: 1; display: grid; gap: 30px; }
.footer-brand p { margin: 14px 0 14px; max-width: 46ch; }
.footer-email { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18); text-decoration: none; font-weight: 650; }
.footer-email:hover { border-color: #67e8f9; }
.footer-col h2 { color: #fff; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin: 4px 0 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.4fr 1.3fr 1fr 1fr; } .footer-brand { grid-column: auto; } }
.footer-base { position: relative; z-index: 1; border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 36px; padding-top: 18px; font-size: .86rem; color: #a7b3c6; }
.footer-base p { margin: 0; max-width: 110ch; }

@media (max-width: 420px) {
  body { font-size: 16.5px; }
  .brand-word { font-size: 1.08rem; }
  .menu-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cta-row .btn { flex: 1 1 100%; }
  .section { padding: 56px 0; }
  .ts-list { grid-template-columns: minmax(0, 1fr); }
  .search-form .btn-sm { padding: 9px 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .masthead, .site-footer, .toc, .related, .independence, .hero-visual { display: none; } body { font-size: 12pt; background: #fff; } }
