/* Appliance Error Code Guide — modern editorial stylesheet
   Clean white / cool-grey surfaces, a geometric sans display face and a
   graphite + deep-teal palette with an amber safety accent. Light and dark
   aware, mobile first, self-hosted variable fonts, no frameworks. */

/* ---------- fonts (self-hosted, variable) ---------- */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/jakarta-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/jakarta-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- tokens ---------- */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-soft-2: #edf1f7;
  --surface: #ffffff;
  --surface-2: #f5f7fa;
  --ink: #0a1322;
  --ink-2: #33415a;
  --muted: #66748a;
  --line: #e4e9f1;
  --line-strong: #ccd6e4;
  --accent: #0d6e7a;
  --accent-2: #17a8bd;
  --accent-soft: #e8f6f8;
  --navy: #0a1419;
  --navy-2: #0f2b33;
  --steel: #3d4c5a;
  --danger: #c81e33;
  --danger-soft: #fdeef1;
  --amber: #96600a;
  --amber-soft: #fdf3e3;
  --green: #0f7a4d;
  --green-soft: #e8f5ef;
  --shadow-sm: 0 1px 2px rgba(10, 19, 34, .05);
  --shadow-md: 0 18px 40px -22px rgba(10, 19, 34, .35), 0 2px 8px rgba(10, 19, 34, .05);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1160px;
  --read: 68ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #070b12;
    --bg-soft: #0c131d;
    --bg-soft-2: #111a26;
    --surface: #0e151f;
    --surface-2: #121a26;
    --ink: #edf1f8;
    --ink-2: #c4cedd;
    --muted: #8b99ac;
    --line: #1b2431;
    --line-strong: #2c3848;
    --accent: #5fd3e0;
    --accent-2: #9beaf2;
    --accent-soft: #0c2027;
    --navy: #050d11;
    --navy-2: #0a1e25;
    --danger: #ff6d81;
    --danger-soft: #2a1218;
    --amber: #ffc46b;
    --amber-soft: #2a2113;
    --green: #74d3a3;
    --green-soft: #10241a;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
    --shadow-md: 0 20px 44px -24px rgba(0, 0, 0, .9), 0 2px 10px rgba(0, 0, 0, .45);
  }
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

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

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

::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); }

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 16px;
  border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; top: 0; }

/* ---------- header ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px) saturate(170%);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  border-bottom: 1px solid var(--line);
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2) 45%, #d9a441);
  opacity: .9;
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 72px;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}

.brand-mark {
  display: block;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 11px;
  filter: drop-shadow(0 2px 5px rgba(8, 17, 31, .26));
}
.brand-mark svg { display: block; width: 100%; height: 100%; }

.brand-text { display: block; line-height: 1.15; }
.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.035em;
  color: var(--ink);
}
.brand-sub {
  display: block;
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

.nav { display: flex; gap: 2px; flex-wrap: wrap; }
.nav a {
  display: inline-block;
  color: var(--muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 550;
  letter-spacing: -.005em;
  padding: 8px 11px;
  border-radius: 9px;
  white-space: nowrap;
  transition: color .15s ease, background .15s ease;
}
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }

@media (max-width: 900px) {
  .topbar-inner { gap: 10px; min-height: 62px; }
  .nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    gap: 2px;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 7px 10px; font-size: 13px; }
  .nav {
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 22px), transparent 100%);
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 22px), transparent 100%);
  }
}

/* ---------- home hero (dark instrument panel) ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 84px 0 66px;
  border-bottom: 1px solid rgba(120, 214, 224, .2);
  background:
    radial-gradient(1080px 500px at 84% -16%, rgba(23, 168, 189, .3), transparent 64%),
    radial-gradient(760px 460px at 4% 118%, rgba(14, 55, 64, .62), transparent 68%),
    linear-gradient(166deg, #061014 0%, #08191e 44%, #0a2027 74%, #060f13 100%);
  color: #e9f1ff;
}

/* decorative layer: dial + engineering grid, hidden from assistive tech */
.hero-canvas {
  position: absolute;
  inset: 0;
  clip-path: inset(0);
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(126, 214, 224, .085) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 214, 224, .085) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(920px 520px at 76% 16%, #000 0%, rgba(0, 0, 0, .4) 52%, transparent 80%);
  mask-image: radial-gradient(920px 520px at 76% 16%, #000 0%, rgba(0, 0, 0, .4) 52%, transparent 80%);
}

.hero-dial {
  position: absolute;
  top: 44%;
  right: -190px;
  width: 740px;
  height: 740px;
  transform: translateY(-50%);
  opacity: .5;
}

.hero .wrap { position: relative; z-index: 1; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent-soft) 80%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  padding: 7px 13px;
  border-radius: 999px;
  margin: 0 0 22px;
}
.kicker::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}

.hero .kicker {
  color: #9fe3ea;
  background: rgba(95, 211, 224, .1);
  border-color: rgba(95, 211, 224, .34);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.hero .kicker::before {
  background: #7ff0e2;
  box-shadow: 0 0 0 3px rgba(127, 240, 226, .18), 0 0 10px 1px rgba(127, 240, 226, .55);
}

.hero h1 {
  color: #fff;
  font-weight: 800;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.04;
  letter-spacing: -.035em;
  margin: 0 0 22px;
  max-width: 21ch;
  text-wrap: balance;
}

.hero h1 .hl {
  background: linear-gradient(94deg, #ddf7f7 0%, #9be7ec 54%, #5fcfdc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero .lead {
  font-size: clamp(17px, 1.7vw, 18.5px);
  line-height: 1.66;
  color: #b3c8cc;
  max-width: 58ch;
  margin: 0 0 32px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.hero .btn-primary {
  background: linear-gradient(180deg, #17a8bd, #0b6577);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .22),
    0 14px 30px -14px rgba(23, 168, 189, .9),
    0 2px 6px rgba(3, 7, 14, .45);
}
.hero .btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }

.hero .btn-ghost {
  color: #e9f1ff;
  background: rgba(255, 255, 255, .05);
  border-color: rgba(178, 226, 232, .32);
  box-shadow: none;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.hero .btn-ghost:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(206, 240, 244, .6);
  transform: translateY(-1px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 11px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.005em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, filter .16s ease;
}
.btn-primary {
  background: linear-gradient(180deg, #0f8496, #0a5b6a);
  color: #fff;
  box-shadow: 0 1px 2px rgba(10, 19, 34, .22), 0 12px 26px -14px rgba(13, 110, 122, .9);
}
.btn-primary:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--ink-2); transform: translateY(-1px); }

/* stat badges on the hero */
.hero .factstrip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 46px 0 0;
  border: 0;
  border-radius: 0;
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  overflow: visible;
  font-size: 12px;
  line-height: 1.35;
  color: #9db6bb;
}
.hero .factstrip > span {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 15px 17px 16px;
  border: 1px solid rgba(150, 224, 232, .16);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .014));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
}
.hero .factstrip strong {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.032em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

/* ---------- sections ---------- */

.section { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { margin-bottom: 32px; max-width: 72ch; }
.section-head h2 {
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.14;
  letter-spacing: -.03em;
  margin: 0 0 12px;
}
.section-head p { margin: 0; color: var(--muted); font-size: 16px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}
.eyebrow::before {
  content: "";
  width: 20px; height: 2px;
  border-radius: 2px;
  background: var(--accent);
  flex: none;
}

/* category number badge */

.cat-num {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 9px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 14%, transparent);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  font-variant-numeric: tabular-nums;
  margin: 0 0 12px;
}
.section-head .cat-num + h2 { font-size: clamp(23px, 2.7vw, 31px); }

/* article cards */

.cards {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(292px, 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: transform .2s cubic-bezier(.2, .7, .3, 1), box-shadow .2s ease,
    border-color .2s ease, border-top-color .2s ease;
}
.card:hover,
.card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
  border-top-color: var(--accent);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 18px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.card-top span:first-child { display: inline-flex; align-items: center; gap: 7px; }
.card-top span:first-child::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.card-top span:last-child {
  color: var(--muted);
  letter-spacing: .01em;
  font-weight: 550;
  text-transform: none;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.card-body { padding: 19px 18px 20px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card h3 {
  font-size: 20.5px;
  line-height: 1.28;
  letter-spacing: -.025em;
  margin: 0;
}
.card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.card .card-cta {
  margin-top: auto;
  padding-top: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .2s ease;
}
.card:hover .card-cta { gap: 10px; }

/* start-here steps */

.steps {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(244px, 1fr));
  counter-reset: step;
}
.step {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--accent);
  opacity: .32;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 17px; margin: 0 0 7px; letter-spacing: -.015em; }
.step p { margin: 0; font-size: 14.5px; line-height: 1.62; color: var(--muted); }

/* editorial note */

.note {
  position: relative;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 26px;
}
.note h2, .note h3 { margin: 0 0 9px; font-size: 20px; letter-spacing: -.02em; }
.note p { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.68; }
.note p + p { margin-top: 11px; }

/* ---------- article ---------- */

.breadcrumb {
  font-size: 12.5px;
  color: var(--muted);
  padding: 22px 0 0;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { padding: 0 7px; color: var(--line-strong); }

.article-head { padding: 14px 0 28px; border-bottom: 1px solid var(--line); }
.chip {
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 16%, transparent);
  border-radius: 999px;
  padding: 6px 12px;
  text-decoration: none;
  margin-bottom: 18px;
}
.article-head h1 {
  font-weight: 800;
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.07;
  letter-spacing: -.032em;
  margin: 0 0 16px;
  max-width: 26ch;
}
.article-head .deck {
  font-size: clamp(17px, 1.9vw, 19px);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 66ch;
  margin: 0 0 22px;
}
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  font-size: 12.5px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.meta span + span::before {
  content: "";
  display: inline-block;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--line-strong);
  margin-right: 12px;
  vertical-align: middle;
}
.meta strong { color: var(--ink); font-weight: 600; }

.article-layout {
  display: grid;
  gap: 52px;
  grid-template-columns: minmax(0, 1fr);
  padding: 40px 0 64px;
}
@media (min-width: 1000px) {
  .article-layout { grid-template-columns: minmax(0, 1fr) 286px; align-items: start; }
  .article-aside { position: sticky; top: 100px; }
}

.prose { max-width: var(--read); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.2;
  letter-spacing: -.028em;
  margin: 2.2em 0 .55em;
  scroll-margin-top: 100px;
}
.prose h2::after {
  content: "";
  display: block;
  width: 36px; height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  margin-top: 12px;
}
.prose h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -.015em;
  margin: 1.8em 0 .4em;
  scroll-margin-top: 100px;
}
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--ink); font-weight: 650; }
.prose a { color: var(--accent); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }

/* tables */

.table-wrap {
  margin: 1.6em 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.prose table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
  font-size: 14.5px;
  margin: 0;
}
.prose thead th {
  text-align: left;
  background: var(--bg-soft);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line-strong);
  padding: 12px 14px;
  white-space: nowrap;
  vertical-align: middle;
}
.prose tbody td {
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  vertical-align: top;
  color: var(--ink-2);
  line-height: 1.55;
}
.prose tbody tr:last-child td { border-bottom: 0; }
.prose tbody tr { transition: background .13s ease; }
.prose tbody tr:hover { background: color-mix(in srgb, var(--accent-soft) 55%, transparent); }
.prose tbody td:first-child { color: var(--ink); font-weight: 550; }

/* callouts */

.callout {
  border-radius: var(--radius);
  padding: 19px 22px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.callout h3, .callout h2 {
  margin: 0 0 8px;
  font-size: 18.5px;
  letter-spacing: -.02em;
}
.callout p { margin: 0; font-size: 15.5px; line-height: 1.65; }
.callout p + p { margin-top: .65em; }
.callout ul { margin: .55em 0 0; }
.callout-quick {
  background: var(--bg-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: none;
}
.callout-danger {
  background: var(--danger-soft);
  border-color: color-mix(in srgb, var(--danger) 26%, transparent);
  border-left: 3px solid var(--danger);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: none;
}
.callout-danger h3 { color: var(--danger); }
.callout-danger li::marker { color: var(--danger); }
.callout-danger a { color: var(--danger); }

/* figures & symbols */

.figure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.figure figcaption { font-size: 12.5px; color: var(--muted); margin-top: 14px; line-height: 1.5; }

.sym-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin: 0;
}
.sym { text-align: center; }
.sym svg { width: 54px; height: 54px; }
.sym b {
  display: block;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  margin-top: 8px;
  color: var(--ink);
}
.sym span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.45; margin-top: 2px; }

/* table of contents */

.toc {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 18px 20px;
  font-size: 13.5px;
}
.toc h2 {
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}
.toc ol { margin: 0; padding-left: 1.15em; }
.toc li { margin: 0 0 7px; color: var(--muted); }
.toc li::marker { color: var(--line-strong); font-variant-numeric: tabular-nums; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--accent); }

.aside-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(158deg, var(--navy-2) 0%, var(--navy) 68%);
  color: #e6edf8;
  padding: 22px;
  margin-top: 18px;
  box-shadow: var(--shadow-md);
}
.aside-card::before {
  content: "";
  position: absolute;
  inset: -40% -30% auto auto;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(23, 168, 189, .5), transparent 62%);
  pointer-events: none;
}
.aside-card a { color: #a8e4ec; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.aside-card a:hover { color: #fff; }
.aside-card h2 {
  position: relative;
  font-size: 17.5px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0 0 9px;
  color: #fff;
}
.aside-card p { position: relative; margin: 0 0 14px; font-size: 13.5px; line-height: 1.6; color: #b7c5d9; }
.aside-card ul { position: relative; margin: 0 0 16px; padding-left: 1.1em; font-size: 13.5px; color: #b7c5d9; }
.aside-card a.btn-primary,
.aside-card a.btn-primary:hover {
  text-decoration: none;
}
.aside-card a.btn-primary {
  position: relative;
  background: #fff;
  color: #0a1322;
  font-size: 14px;
  padding: 11px 16px;
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .6);
}
.aside-card .small { position: relative; font-size: 12px; color: #8fa0b8; margin: 12px 0 0; line-height: 1.5; }

/* faq */

details.faq {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 15px 18px;
  transition: border-color .15s ease;
}
details.faq + details.faq { margin-top: 10px; }
details.faq[open] { border-color: var(--line-strong); }
details.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.015em;
  color: var(--ink);
  font-size: 16px;
  list-style: none;
}
details.faq summary:hover { color: var(--accent); }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.1;
}
details.faq[open] summary::after { content: "–"; }
details.faq p { margin: 11px 0 0; font-size: 15.5px; line-height: 1.65; }

.related { border-top: 1px solid var(--line); padding: 40px 0 64px; }
.related h2 { font-size: 23px; letter-spacing: -.025em; margin: 0 0 20px; }

.disclaimer {
  border-top: 1px solid var(--line);
  padding: 20px 0 0;
  margin-top: 38px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- static pages ---------- */

.page { padding: 56px 0 76px; }
.page-head { max-width: 66ch; margin-bottom: 32px; }
.page-head h1 {
  font-weight: 800;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.06;
  letter-spacing: -.035em;
  margin: 0 0 14px;
}
.page-head p { margin: 0; font-size: 18px; line-height: 1.62; color: var(--ink-2); }

.legal { max-width: var(--read); }
.legal h2 {
  font-size: 21px;
  letter-spacing: -.025em;
  margin: 2em 0 .5em;
}
.legal h3 { font-size: 17px; margin: 1.6em 0 .4em; }
.legal p, .legal li { color: var(--ink-2); font-size: 15.5px; line-height: 1.7; }
.legal ul { padding-left: 1.25em; }
.legal li::marker { color: var(--accent); }
.legal .updated { font-size: 13px; color: var(--muted); }

.profile-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin: 30px 0;
}
.profile {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 22px;
}
.profile h3 { font-size: 18px; letter-spacing: -.02em; margin: 0 0 8px; }
.profile p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--muted); }

.contact-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 28px;
}
.contact-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.contact-box h2 { font-size: 18.5px; letter-spacing: -.02em; margin: 0 0 9px; }
.contact-box p { margin: 0 0 8px; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.contact-box .big { font-size: 17px; font-weight: 600; color: var(--ink); }

/* ---------- footer ---------- */

.site-footer {
  position: relative;
  background:
    radial-gradient(900px 280px at 12% -30%, rgba(23, 168, 189, .22), transparent 62%),
    var(--navy);
  color: #a4b3c7;
  padding: 58px 0 34px;
  font-size: 14.5px;
}
.site-footer a { color: #d3dfef; text-decoration: none; transition: color .15s ease; }
.site-footer a:hover { color: #fff; }
.footer-top {
  display: grid;
  gap: 32px;
  grid-template-columns: 1.5fr 1fr 1fr;
}
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand .brand-name { color: #fff; font-size: 18px; letter-spacing: -.025em; }
.footer-brand .brand-sub { color: #7d8da4; }
.footer-brand p { margin: 14px 0 0; max-width: 44ch; color: #93a3b8; font-size: 13.5px; line-height: 1.65; }
.footer-col h2 {
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #77879e;
  margin: 0 0 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0 0 9px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  margin-top: 38px;
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-size: 12px;
  color: #7d8da4;
}
.footer-bottom p { margin: 0; max-width: 76ch; line-height: 1.6; }

/* ---------- small print utilities ---------- */

.muted { color: var(--muted); }
.small { font-size: 13px; line-height: 1.6; }
.center { text-align: center; }
hr.rule { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

/* ---------- mobile first refinements ----------
   The phone is the primary reading device for this site: generous tap
   targets, one-column density, and a table of contents that works with
   a thumb instead of a cursor. */

@media (max-width: 999px) {
  .article-layout {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 28px 0 48px;
  }
  .article-aside { display: contents; }
  .toc {
    order: -1;
    padding: 0 0 16px;
    border: 0;
    background: none;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
  }
  .toc h2 { margin: 0 0 10px; }
  .toc ol {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    list-style: none;
    margin: 0;
    padding: 0 0 4px;
    scrollbar-width: none;
  }
  .toc ol::-webkit-scrollbar { display: none; }
  .toc li { margin: 0; flex: none; }
  .toc li::marker { content: none; }
  .toc a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    white-space: nowrap;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-2);
    transition: border-color .15s ease, color .15s ease, background .15s ease;
  }
  .toc a:hover, .toc a:active {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
  }
  .aside-card { order: 2; }
}

@media (max-width: 700px) {
  body { font-size: 17px; line-height: 1.72; }
  .wrap { padding: 0 18px; }

  .topbar-inner { min-height: 56px; padding-top: 7px; padding-bottom: 7px; }
  .brand { gap: 10px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 9px; }
  .brand-name { font-size: 16.5px; letter-spacing: -.032em; }
  .brand-sub { display: none; }
  .nav a { min-height: 44px; display: inline-flex; align-items: center; font-size: 13.5px; padding: 8px 11px; }

  .hero { padding: 40px 0 34px; }
  .hero-dial { width: 520px; height: 520px; right: -300px; top: -40px; transform: none; opacity: .4; }
  .hero h1 { font-size: 31px; line-height: 1.07; letter-spacing: -.034em; max-width: none; }
  .hero .lead { font-size: 16px; line-height: 1.62; margin-bottom: 26px; }
  .kicker {
    font-size: 8.8px;
    letter-spacing: .055em;
    padding: 6px 9px;
    margin-bottom: 18px;
    gap: 6px;
    white-space: nowrap;
  }
  .kicker::before { width: 4px; height: 4px; }
  .hero-actions { gap: 10px; }
  .btn {
    min-height: 50px;
    width: 100%;
    padding: 14px 18px;
    font-size: 15.5px;
    border-radius: 12px;
  }
  .hero-actions .btn { width: 100%; }
  .hero .factstrip {
    margin-top: 28px;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    font-size: 11.5px;
  }
  .hero .factstrip > span { padding: 12px 13px 13px; border: 1px solid rgba(150, 224, 232, .16); }
  .hero .factstrip strong { font-size: 18px; }

  .section { padding: 38px 0; }
  .section-head { margin-bottom: 20px; }
  .section-head h2 { font-size: 25px; letter-spacing: -.028em; }
  .section-head p { font-size: 15px; }
  .section-head[style] { margin-top: 32px !important; }

  .cat-num { height: 24px; font-size: 11px; }
  .cards, .cat-grid { gap: 12px; }
  .card { border-radius: 14px; }
  .card-top { padding: 12px 15px; font-size: 10px; }
  .card-top span:last-child { font-size: 11px; }
  .card-body { padding: 16px 15px 18px; gap: 8px; }
  .card h3 { font-size: 19px; }
  .card p { font-size: 14px; }
  .step { padding: 18px; border-radius: 14px; }
  .step::before { font-size: 26px; margin-bottom: 10px; }

  .note { padding: 20px 18px; }

  .breadcrumb { font-size: 12px; padding-top: 16px; }
  .article-head { padding: 10px 0 22px; }
  .article-head h1 { font-size: 29px; line-height: 1.1; letter-spacing: -.032em; max-width: none; }
  .article-head .deck { font-size: 16.5px; line-height: 1.58; }
  .chip { font-size: 10px; padding: 6px 11px; margin-bottom: 14px; min-height: 28px; }
  .meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 12px;
    padding-top: 14px;
  }
  .meta span + span::before { content: none; }

  .prose p, .prose li { font-size: 16.8px; line-height: 1.72; }
  .prose h2 { font-size: 23px; margin: 1.9em 0 .5em; }
  .prose h2::after { margin-top: 10px; }
  .prose h3 { font-size: 17.5px; margin: 1.6em 0 .35em; }
  .prose ul, .prose ol { padding-left: 1.15em; }
  .prose li + li { margin-top: .6em; }
  .prose table { font-size: 14px; min-width: 460px; }
  .prose thead th { padding: 10px 12px; font-size: 11px; }
  .prose tbody td { padding: 11px 12px; }

  .callout { padding: 17px 17px; border-radius: 14px; }
  .callout h3, .callout h2 { font-size: 17.5px; }
  .callout p, .callout li { font-size: 16px; }
  .figure { padding: 15px; border-radius: 14px; }
  .sym-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .sym svg { width: 48px; height: 48px; }

  details.faq { padding: 15px 16px; }
  details.faq summary { font-size: 15.5px; min-height: 32px; padding-right: 22px; }

  .aside-card { padding: 20px; margin-top: 4px; border-radius: 16px; }
  .aside-card a.btn-primary,
.aside-card a.btn-primary:hover {
  text-decoration: none;
}
.aside-card a.btn-primary { width: 100%; }

  .related { padding: 30px 0 48px; }
  .related h2 { font-size: 21px; }

  .page { padding: 32px 0 52px; }
  .page-head { margin-bottom: 24px; }
  .page-head h1 { font-size: 29px; }
  .page-head p { font-size: 16.5px; }
  .legal h2 { font-size: 20px; }
  .legal p, .legal li { font-size: 15.5px; }
  .contact-box, .profile { padding: 18px; border-radius: 14px; }

  .site-footer { padding: 38px 0 28px; }
  .footer-top { gap: 24px; }
  .footer-bottom { font-size: 11.5px; margin-top: 28px; }
  .footer-col li { margin-bottom: 10px; }
  .footer-col a { display: inline-block; min-height: 26px; }
}

/* ---------- tables on phones ----------
   Under 640px a table becomes a stack of labelled rows: the header row is
   moved off-screen for assistive tech and every cell carries its column
   heading from data-label, so nothing has to be scrolled sideways. */

@media (max-width: 640px) {
  .table-wrap {
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    overflow: visible;
    margin: 1.3em 0;
  }
  .prose table,
  .prose thead,
  .prose tbody,
  .prose tr,
  .prose td {
    display: block;
    width: 100%;
    min-width: 0;
  }
  .prose table { min-width: 0; font-size: 15.5px; }
  .prose thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .prose tbody tr,
  .prose tbody tr:hover {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    padding: 2px 15px 15px;
    margin: 0 0 12px;
    box-shadow: var(--shadow-sm);
  }
  .prose tbody tr:last-child { margin-bottom: 0; }
  .prose tbody td,
  .prose tbody tr:last-child td {
    border: 0;
    padding: 10px 0 0;
    overflow-wrap: anywhere;
  }
  .prose tbody td + td {
    border-top: 1px dashed var(--line);
    margin-top: 10px;
  }
  .prose tbody td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-sans);
    font-size: 10.5px;
    line-height: 1.4;
    letter-spacing: .11em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 4px;
  }
  .prose tbody td:first-child,
  .prose tbody tr:last-child td:first-child {
    font-family: var(--font-display);
    font-size: 16.5px;
    font-weight: 600;
    letter-spacing: -.015em;
    color: var(--ink);
    padding-top: 13px;
  }
  .prose tbody td:first-child[data-label]::before { color: var(--accent); }
}

@media (max-width: 400px) {
  .wrap { padding: 0 15px; }
  .hero h1 { font-size: 30px; }
  .article-head h1 { font-size: 27px; }
  .prose p, .prose li { font-size: 16.5px; }
}

@media print {
  .topbar, .site-footer, .aside-card, .article-aside, .toc, .btn { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .callout, .table-wrap { box-shadow: none; }
}

/* ---------- appliance-specific components ---------- */

/* inline error-code pill, used inside prose and card titles */
.code {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  color: color-mix(in srgb, var(--accent) 88%, var(--ink));
  font-family: var(--font-sans);
  font-size: .9em;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
  white-space: nowrap;
}

/* brand tiles on the home page and the brands hub */
.brand-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.brand-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 18px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--ink);
  transition: transform .18s cubic-bezier(.2,.7,.3,1), box-shadow .18s ease, border-color .18s ease;
}
.brand-tile:hover, .brand-tile:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.brand-tile b {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -.025em;
}
.brand-tile span { font-size: 13px; color: var(--muted); line-height: 1.5; }
.brand-tile em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 4px;
}

/* appliance icon row on the home page */
.appliances {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.appliance {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  column-gap: 13px;
  row-gap: 2px;
  padding: 16px 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.appliance:hover, .appliance:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.appliance svg { grid-row: span 2; width: 30px; height: 30px; color: var(--accent); }
.appliance b, .appliance span { min-width: 0; }
.appliance b { display: block; font-family: var(--font-display); font-size: 15.5px; font-weight: 700; letter-spacing: -.02em; }
.appliance span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

/* "how to use" strip */
.strip {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.strip div {
  border-left: 2px solid color-mix(in srgb, var(--accent) 45%, transparent);
  padding: 2px 0 2px 14px;
}
.strip b { display: block; font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 3px; }
.strip p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.55; }

/* source list at the foot of each guide */
.sources {
  border-top: 1px solid var(--line);
  margin-top: 2.2em;
  padding-top: 1.1em;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.sources h2 {
  font-family: var(--font-sans) !important;
  font-size: 11px !important;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px !important;
}
.sources h2::after { content: none !important; }
.sources ol { margin: 0; padding-left: 1.2em; }
.sources li { font-size: 13px !important; color: var(--muted) !important; }
.sources li + li { margin-top: .3em !important; }

/* small safety note above a checklist */
.safety {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 1.4em 0 .4em;
  padding: 12px 15px;
  border-radius: 12px;
  background: var(--amber-soft);
  border: 1px solid color-mix(in srgb, var(--amber) 26%, transparent);
  font-size: 14px;
  line-height: 1.55;
  color: color-mix(in srgb, var(--amber) 82%, var(--ink));
}
.safety strong { color: inherit; }
.safety svg { width: 17px; height: 17px; flex: none; margin-top: 2px; }
