/* ============================================================
   Printer Setup Guide — design tokens (white theme)
   Palette:
     --ink       #16233A  (headings, primary text)
     --paper     #FFFFFF  (page background — pure white)
     --panel     #FAFAFA  (cards — subtle off-white surface)
     --teal      #2E6F63  (accent / links / active step)
     --slate     #5B6472  (secondary text)
     --amber     #B4652B  (troubleshooting / caution)
     --line      #E3E3E1  (hairlines — neutral light gray)
   Type:
     Display: "Source Serif 4" (headings)
     Body:    "Inter" (paragraphs, UI)
     Utility: "IBM Plex Mono" (model numbers, technical labels)
   ============================================================ */

/* Fonts are now loaded via <link rel="stylesheet"> + preconnect in header.php
   instead of @import here — @import blocks CSS parsing until the imported
   file is fetched, which delays render. See header.php for the font links. */

:root {
  --ink: #16233A;
  --paper: #FFFFFF;
  --panel: #FAFAFA;
  --teal: #2E6F63;
  --teal-dark: #1F4E45;
  --slate: #5B6472;
  --amber: #B4652B;
  --line: #E3E3E1;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  color: var(--ink);
  margin: 0 0 0.5em;
  line-height: 1.15;
}

a { color: var(--teal); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

.mono {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85em;
  letter-spacing: 0.01em;
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  display: block;
  height: 40px;
  width: auto;
}

.brand .dot { color: var(--teal); }

.site-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--slate);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  padding-bottom: 3px;
}

.site-nav a:hover { border-bottom-color: var(--teal); color: var(--ink); }

/* ---------- Mobile nav toggle ---------- */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.mobile-nav a {
  padding: 14px 20px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}

.mobile-nav a:last-child { border-bottom: none; }

.mobile-nav.is-open { display: flex; }

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 40px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: #E4EDE9;
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  max-width: 18ch;
}

.hero p.lead {
  color: var(--slate);
  font-size: 1.08rem;
  max-width: 46ch;
  margin: 14px 0 22px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--teal); color: #fff; border-color: var(--teal); }

/* ---- signature element: connection diagram ---- */
.diagram {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 18px;
}

.diagram-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.diagram-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  text-align: center;
}

.diagram-node .icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #E4EDE9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-dark);
}

.diagram-node span {
  font-size: 0.8rem;
  color: var(--slate);
  font-weight: 500;
}

.diagram-link {
  flex: 0 0 auto;
  width: 34px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--teal) 0 6px, transparent 6px 11px);
  margin-top: -22px;
}

.diagram-caption {
  text-align: center;
  color: var(--slate);
  font-size: 0.82rem;
  margin-top: 14px;
}

/* ---------- Section shared ---------- */
section { padding: 48px 0; }
section.alt { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 60ch; margin-bottom: 32px; }
.section-head .hero-eyebrow { margin-bottom: 12px; }
.section-head p { color: var(--slate); }

/* ---------- Steps (real sequence => numbered) ---------- */
.steps { display: flex; flex-direction: column; gap: 0; }

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.step:last-child { border-bottom: none; }

.step-num {
  font-family: 'Source Serif 4', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--teal);
}

.step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step p { color: var(--slate); margin: 0; }
.step p + p { margin-top: 8px; }

.step h3 { display: flex; align-items: center; gap: 8px; }
.step-icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #E4EDE9;
  color: var(--teal-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Brand driver grid ---------- */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.brand-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease;
}

a.brand-card:hover { border-color: var(--teal); cursor: pointer; }

.brand-card h3 { font-size: 1.05rem; margin: 0; color: var(--ink); }
.brand-card p { color: var(--slate); font-size: 0.92rem; margin: 0; flex-grow: 1; }
.brand-card a.btn { align-self: flex-start; }

.domain-badge {
  align-self: flex-start;
  display: inline-block;
  background: var(--panel);
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.85rem;
  color: var(--ink);
  cursor: text;
  user-select: all;
}

.guide-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #E4EDE9;
  color: var(--teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Troubleshooting accordion ---------- */
.faq { border-top: 1px solid var(--line); }

.faq-item { border-bottom: 1px solid var(--line); }

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 4px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary .faq-q-text { flex: 1; display: flex; align-items: center; }

.faq-icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #E4EDE9;
  color: var(--teal-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-family: 'Source Serif 4', serif;
  font-size: 1.3rem;
  color: var(--teal);
  flex: 0 0 auto;
}

.faq-item[open] summary::after { content: '\2212'; }

.faq-item p {
  color: var(--slate);
  padding: 0 4px 18px;
  margin: 0;
  max-width: 65ch;
}

/* ---------- Printer search ---------- */
.printer-search {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px;
  display: flex;
  flex-direction: column;
}

.printer-search-row {
  display: flex;
  gap: 8px;
}

.printer-search-row input {
  flex: 1;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  min-width: 0;
}

.printer-search-row input:focus {
  outline: none;
  border-color: var(--teal);
}

.printer-search-row .btn {
  border-radius: 999px;
  flex: 0 0 auto;
}

.printer-search:focus-within {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

.printer-search + .manual-status { padding: 8px 18px 0; }

.connection-toggle {
  padding: 4px 18px 12px;
}

.connection-toggle-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 8px;
}

.connection-toggle-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.connection-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
}

.connection-btn:hover { border-color: var(--teal); }

.connection-btn.active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.search-result-tip {
  width: 100%;
  background: #E4EDE9;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--teal-dark);
  margin: 4px 0 16px;
}

.search-result-tip:empty { display: none; }

.search-result {
  margin-top: 22px;
  background: var(--panel);
  border: 1px solid var(--teal);
  border-radius: var(--radius);
  padding: 24px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.search-result-head .hero-eyebrow { margin-bottom: 8px; }
.search-result-head h3 { margin: 0; font-size: 1.3rem; }

.search-result-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------- General troubleshooting steps ---------- */
.general-troubleshooting { margin-bottom: 32px; }

.general-troubleshooting h3 {
  font-family: 'Source Serif 4', serif;
  font-size: 1.15rem;
  margin: 0 0 6px;
  color: var(--ink);
}

.general-troubleshooting > p {
  color: var(--slate);
  font-size: 0.92rem;
  margin: 0 0 18px;
  max-width: 70ch;
}

.general-troubleshooting .steps {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 22px;
}

.diagnose-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 4px;
}

.diagnose-btn {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
}

.diagnose-btn:hover { border-color: var(--teal); }

.diagnose-btn.active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.diagnose-result {
  margin-top: 18px;
  background: var(--panel);
  border: 1px solid var(--teal);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.diagnose-result h4 {
  font-family: 'Source Serif 4', serif;
  font-size: 1.1rem;
  margin: 0 0 10px;
  color: var(--ink);
}

.diagnose-result p {
  font-size: 0.92rem;
  color: var(--slate);
  margin: 0 0 8px;
  line-height: 1.55;
}

.diagnose-result p b { color: var(--ink); }

.diagnose-result .btn { margin-top: 8px; }

/* ---------- Error code finder ---------- */
.error-finder {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 32px;
}

.error-finder h3 {
  font-family: 'Source Serif 4', serif;
  font-size: 1.15rem;
  margin: 0 0 6px;
  color: var(--ink);
}

.error-finder > p {
  color: var(--slate);
  font-size: 0.92rem;
  margin: 0 0 18px;
  max-width: 70ch;
}

.error-finder-row {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.error-finder #errorFindBtn { flex: 0 0 auto; }

/* ---------- Common wireless errors grid ---------- */
.error-section { margin-bottom: 32px; }

.error-section h3 {
  font-family: 'Source Serif 4', serif;
  font-size: 1.15rem;
  margin: 0 0 6px;
  color: var(--ink);
}

.error-section > p {
  color: var(--slate);
  font-size: 0.92rem;
  margin: 0 0 18px;
  max-width: 70ch;
}

.error-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.error-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.error-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #E4EDE9;
  color: var(--teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.error-card h4 {
  font-family: 'Source Serif 4', serif;
  font-size: 1rem;
  margin: 0;
  color: var(--ink);
}

.error-card p {
  font-size: 0.86rem;
  color: var(--slate);
  margin: 0;
  line-height: 1.5;
}

.error-card p b { color: var(--ink); }

/* ---------- Download lead-capture modal ---------- */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.download-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.download-modal[hidden] {
  display: none;
}

.download-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 16, 0.7);
}

.download-modal-inner {
  position: relative;
  background: var(--panel);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.download-modal-inner h3 {
  font-family: 'Source Serif 4', serif;
  font-size: 1.25rem;
  margin: 0 0 8px;
  color: var(--ink);
  padding-right: 24px;
}

.download-modal-inner > p {
  color: var(--slate);
  font-size: 0.9rem;
  margin: 0 0 18px;
}

.download-modal-inner form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.download-modal-inner .manual-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 6px;
  display: block;
}

.download-modal-inner .manual-field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--panel);
  color: var(--ink);
}

.download-modal-inner .manual-field input:focus {
  outline: 3px solid var(--teal);
  outline-offset: 1px;
}

.download-modal-inner button[type="submit"] { margin-top: 4px; }

.download-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--slate);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.download-modal-close:hover { border-color: var(--teal); color: var(--teal-dark); }

.download-modal-note {
  font-size: 0.76rem;
  color: var(--slate);
  margin: 14px 0 0;
}

.download-noscript {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.download-noscript form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.download-noscript input[type="email"] {
  flex: 1;
  min-width: 200px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: inherit;
}

/* ---------- Manual finder tool ---------- */
.manual-finder {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.manual-finder-row {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.manual-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.manual-field-grow { flex: 1 1 240px; }

.manual-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--slate);
}

.manual-field select,
.manual-field input {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--panel);
  color: var(--ink);
  min-height: 44px;
}

.manual-field select { min-width: 140px; }

.manual-field input:focus, .manual-field select:focus {
  outline: 3px solid var(--teal);
  outline-offset: 1px;
}

.manual-finder #manualFindBtn { flex: 0 0 auto; }

.manual-status {
  margin: 16px 0 0;
  color: var(--teal-dark);
  font-size: 0.82rem;
  min-height: 1.2em;
}

/* ---------- Disclaimer & contact ---------- */
.disclaimer {
  font-size: 0.82rem;
  color: var(--slate);
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.contact-card {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.contact-card h2 { color: var(--ink); }
.contact-card p { color: var(--slate); }

.contact-methods { display: flex; flex-direction: column; gap: 14px; }

.contact-methods a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-methods span.mono { color: var(--teal); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
}

.site-footer p {
  color: var(--slate);
  font-size: 0.8rem;
  max-width: 90ch;
}

/* ============================================================
   Responsive — mobile first breakpoints
   ============================================================ */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 32px; }
  .contact-card { grid-template-columns: 1fr; padding: 26px 22px; }
}

@media (max-width: 600px) {
  .site-header .wrap { padding-top: 14px; padding-bottom: 14px; }
  .brand img { height: 32px; }
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .hero h1 { max-width: none; }
  .diagram-row { flex-wrap: nowrap; }
  .diagram-node .icon { width: 44px; height: 44px; }
  .diagram-node span { font-size: 0.7rem; }
  .diagram-link { width: 18px; }
  .step { grid-template-columns: 40px 1fr; gap: 12px; }
  section { padding: 36px 0; }
  .brand-grid { grid-template-columns: 1fr; }
  .manual-finder-row { flex-direction: column; align-items: stretch; }
  .manual-field-grow { flex: 1 1 auto; }
  .manual-finder #manualFindBtn { width: 100%; justify-content: center; }
  .error-finder-row { flex-direction: column; align-items: stretch; }
  .error-finder #errorFindBtn { width: 100%; justify-content: center; }
  .diagnose-buttons { flex-direction: column; }
  .diagnose-btn { width: 100%; text-align: center; }
  .printer-search { border-radius: 18px; }
  .printer-search-row { flex-direction: column; }
  .printer-search-row input { padding: 12px 14px; }
  .printer-search-row .btn { border-radius: 10px; width: 100%; justify-content: center; }
  .search-result { flex-direction: column; align-items: stretch; }
  .search-result-actions .btn { flex: 1; justify-content: center; }
  .connection-toggle-buttons { flex-direction: column; }
  .connection-btn { width: 100%; justify-content: center; }
  .download-modal-inner { padding: 26px 22px; }
  .download-noscript form { flex-direction: column; align-items: stretch; }
}

@media (max-width: 380px) {
  .diagram-node span { display: none; }
}

/* ============================================================
   Legal pages (Privacy Policy, etc.)
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--slate);
  margin-bottom: 4px;
}

.breadcrumb a {
  color: var(--slate);
  text-decoration: none;
}

.breadcrumb a:hover { color: var(--teal); text-decoration: underline; }

.breadcrumb span[aria-current] {
  color: var(--ink);
  font-weight: 500;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.legal-hero {
  padding: 48px 0 28px;
  border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 8px 0 10px;
}

.legal-hero .lead {
  color: var(--slate);
  font-size: 1rem;
  max-width: 60ch;
}

.legal-body {
  padding: 40px 0 60px;
}

.legal-body .wrap {
  max-width: 760px;
}

.legal-body h2 {
  font-family: 'Source Serif 4', serif;
  font-size: 1.25rem;
  color: var(--teal-dark);
  margin: 36px 0 10px;
}

.legal-body h2:first-of-type { margin-top: 0; }

.legal-body h3 {
  font-size: 1rem;
  color: var(--ink);
  margin: 18px 0 6px;
}

.legal-body p {
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.65;
  margin: 0 0 14px;
}

.legal-body ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.legal-body li {
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.6;
  margin-bottom: 8px;
}

.legal-body a { color: var(--teal); }

.legal-notice {
  background: #E4EDE9;
  border-radius: var(--radius);
  padding: 18px 22px;
  font-size: 0.94rem;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 28px;
}

.legal-body code,
.legal-notice code {
  font-family: 'IBM Plex Mono', monospace;
  background: rgba(46, 111, 99, 0.1);
  color: var(--teal-dark);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.legal-disclaimer {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--slate);
  line-height: 1.6;
}

.footer-links {
  margin-top: 10px;
  font-size: 0.78rem;
}

.footer-links a {
  color: var(--teal-dark);
  text-decoration: underline;
}

/* ============================================================
   Blog
   ============================================================ */
.blog-hero .hero-eyebrow { margin-bottom: 10px; display: inline-block; }

.blog-hero-image {
  margin-top: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  max-width: 640px;
}

.blog-hero-image svg { width: 100%; height: auto; display: block; }

.blog-byline {
  color: var(--slate);
  font-size: 0.82rem;
  font-family: 'IBM Plex Mono', monospace;
  margin: 4px 0 14px;
}

.legal-body h2:first-of-type { margin-top: 0; }

.blog-cta {
  margin-top: 36px;
  background: #E4EDE9;
  border-radius: var(--radius);
  padding: 24px 26px;
}

.blog-cta h3 {
  font-family: 'Source Serif 4', serif;
  font-size: 1.05rem;
  color: var(--ink);
  margin: 0 0 8px;
}

.blog-cta p {
  color: var(--ink);
  font-size: 0.92rem;
  margin: 0 0 14px;
}

.blog-index-wrap { max-width: 1080px; }

.blog-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.blog-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.15s ease;
}

.blog-card:hover { border-color: var(--teal); }

.blog-card .hero-eyebrow { margin-bottom: 2px; }

.blog-card h2,
.blog-card h3 {
  font-family: 'Source Serif 4', serif;
  font-size: 1.15rem;
  color: var(--ink);
  margin: 0;
  line-height: 1.35;
}

.blog-card p {
  color: var(--slate);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
  flex-grow: 1;
}

.blog-card-link {
  color: var(--teal);
  font-weight: 600;
  font-size: 0.88rem;
  margin-top: 4px;
}

/* ---------- Help Center ---------- */
.help-section-title {
  font-family: 'Source Serif 4', serif;
  font-size: 1.3rem;
  color: var(--ink);
  margin: 44px 0 16px;
}

.help-section-title:first-of-type { margin-top: 0; }

.help-grid { margin-bottom: 8px; }

.read-next { margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--line); }
.read-next .help-section-title { margin-top: 0; margin-bottom: 18px; }

/* ============================================================
   Print styles — for guides people print and keep near the printer
   ============================================================ */
@media print {
  .site-header,
  .site-footer,
  .nav-toggle,
  .mobile-nav,
  .hero-actions,
  .breadcrumb,
  .download-modal,
  .diagnose-buttons,
  .printer-search,
  .connection-toggle,
  .error-finder,
  .manual-finder,
  .diagnose-result,
  .search-result,
  .blog-cta,
  .read-next,
  .contact-card,
  a.btn,
  button {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .wrap { max-width: 100%; }

  a { color: #000; text-decoration: underline; }

  .legal-body h2, .blog-hero h1 {
    color: #000;
  }

  section { padding: 12px 0; }

  .blog-hero-image, .diagram, .brand-card, .error-card, .step,
  .faq-item, .disclaimer, .legal-notice {
    break-inside: avoid;
  }
}

/* Video hub cards (videos.php) */
.video-card { padding: 0; overflow: hidden; }
.video-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  overflow: hidden;
}
.video-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(31, 78, 69, 0.88);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
}
.video-card:hover .video-card-play {
  background: var(--amber, #B4652B);
  transform: translate(-50%, -50%) scale(1.08);
}
.video-card h3 { padding: 0 20px; margin-top: 14px; }
.video-card p { padding: 0 20px; }
.video-card .blog-card-link { padding: 0 20px 20px; display: block; }
