/* Vacuum Pump Field Guide — hand-maintained stylesheet.
   Palette echoes the group (red #B3141E, charcoal, white, Sora) without any group logos. */
*, *::before, *::after { box-sizing: border-box; }
:root {
  --red: #b3141e;
  --red-ink: #8f1018;
  --red-tint: #fbeced;
  --ink: #16181b;
  --charcoal: #1d2024;
  --steel: #2a2e33;
  --muted: #586069;
  --line: #e2e5e9;
  --paper: #f5f6f7;
  --white: #fff;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16,18,20,.06), 0 8px 24px rgba(16,18,20,.06);
  --wrap: 1200px;
  color-scheme: light;
}
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 16.5px/1.7 'Sora', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--red-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 3px; }
.container { width: min(var(--wrap), calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 50; padding: 10px 14px; background: var(--ink); color: #fff; border-radius: 6px; }
.skip-link:focus { top: 12px; }
h1, h2, h3 { margin: 0 0 .5em; color: var(--ink); font-weight: 700; letter-spacing: -.025em; line-height: 1.2; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
.eyebrow { margin: 0 0 .8rem; color: var(--red); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.lead { max-width: 760px; color: var(--muted); font-size: 1.12rem; line-height: 1.65; }
.icon { width: 26px; height: 26px; }
.icon-sm { width: 16px; height: 16px; vertical-align: -3px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); box-shadow: inset 0 -3px 0 var(--red); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex: 0 0 auto; }
.brand-mark { width: 40px; height: 40px; object-fit: contain; }
.brand-logo { display: block; height: 54px; width: auto; }
.brand-logo-footer { height: 40px; }
.brand-name { font-weight: 800; font-size: 1.02rem; letter-spacing: -.035em; white-space: nowrap; }
.brand-name em { color: var(--red); font-style: normal; }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a { padding: 8px 12px; border-radius: 6px; color: var(--ink); font-size: .9rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.main-nav a:hover { background: var(--paper); color: var(--red); }
.main-nav a[aria-current="page"] { color: var(--red); background: var(--red-tint); }
.header-cta { padding: 10px 16px; border-radius: 8px; background: var(--red); color: #fff; font-size: .88rem; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background .15s; }
.header-cta:hover { background: var(--red-ink); color: #fff; }

/* Buttons */
.button { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px 20px; border: 2px solid var(--red); border-radius: 8px; background: var(--red); color: #fff; font-size: .95rem; font-weight: 700; text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.button:hover { background: var(--red-ink); border-color: var(--red-ink); color: #fff; }
.button-ghost { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.button-ghost:hover { background: #fff; border-color: #fff; color: var(--ink); }

/* Home hero */
.home-hero { position: relative; overflow: hidden; background: var(--charcoal); color: #eef0f2; }
.home-hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(90deg, transparent, #000 40%); pointer-events: none; }
.home-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--red); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding-block: 72px 80px; }
.home-hero h1 { color: #fff; font-size: clamp(2.3rem, 4.8vw, 3.6rem); }
.home-hero h1 span { color: #ff5a63; }
.home-hero .eyebrow { color: #ff7a81; }
.home-hero .lead { color: #c9ced4; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-art { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.hero-art img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-panel { padding: 28px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); }
.hero-panel h2 { color: #fff; font-size: 1.05rem; margin-bottom: 14px; }
.hero-panel ol { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.hero-panel li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.1); color: #d6dade; font-size: .93rem; }
.hero-panel li::before { content: counter(s, decimal-leading-zero); color: #ff7a81; font-weight: 800; }
.hero-panel strong { color: #fff; display: block; }

/* Symptom picker */
.symptoms { margin-top: -40px; position: relative; z-index: 2; }
.symptom-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.symptom { display: flex; flex-direction: column; gap: 10px; padding: 18px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); color: var(--ink); font-weight: 700; font-size: .92rem; line-height: 1.35; text-decoration: none; transition: transform .15s, border-color .15s; }
.symptom:hover { transform: translateY(-3px); border-color: var(--red); color: var(--ink); }
.symptom .icon { color: var(--red); }

/* Sections */
.section { padding-block: 64px; }
.section-alt { background: var(--paper); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 28px; }
.section-head p { color: var(--muted); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split .figure { margin: 0; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
.card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card:hover { border-color: #cfd3d8; box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.card-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 8px; border-radius: 9px; background: var(--red-tint); color: var(--red); }
.card-kicker { color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.card h3 { margin: 2px 0 2px; font-size: 1.08rem; }
.card p { margin: 0 0 10px; color: var(--muted); font-size: .9rem; line-height: 1.6; }
.card-more { margin-top: auto; color: var(--red-ink); font-size: .85rem; font-weight: 700; }

/* Page hero */
.page-hero { padding: 26px 0 40px; background: var(--paper); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 900px; }
.meta { margin: 14px 0 0; color: var(--muted); font-size: .82rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; padding: 0; list-style: none; font-size: .8rem; color: var(--muted); }
.breadcrumbs li:not(:last-child)::after { content: '›'; margin-left: 6px; color: #a2a8af; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--red); }

/* Article layout */
.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding-block: 40px 80px; }
.article-wrap.no-side { grid-template-columns: minmax(0, 780px); }
.article { min-width: 0; max-width: 780px; }
.facts-inline { display: none; }
.sidebar-inner { position: sticky; top: 96px; display: grid; gap: 20px; }
.quick-answer { margin: 0 0 32px; padding: 22px 24px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--red); }
.qa-label { margin: 0 0 6px; color: var(--red); font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.qa-text { margin: 0; font-size: 1.1rem; line-height: 1.65; font-weight: 500; }
.prose h2 { margin-top: 2.1em; scroll-margin-top: 96px; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--red); font-weight: 700; }
.prose table, .table { width: 100%; margin: 0 0 1.5em; border-collapse: collapse; font-size: .92rem; }
.table-wrap { overflow-x: auto; margin-bottom: 1.5em; border: 1px solid var(--line); border-radius: var(--radius); }
.table-wrap table { margin: 0; }
.prose th, .prose td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--paper); font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; }
.prose tr:last-child td { border-bottom: 0; }
.callout { margin: 1.6em 0; padding: 18px 20px; border-radius: var(--radius); background: #fff8e6; border: 1px solid #f1dfb0; }
.callout strong:first-child { display: block; margin-bottom: 4px; }
.callout p:last-child { margin: 0; }
.callout.stop { background: var(--red-tint); border-color: #efc4c7; }
.check-table td:first-child { font-weight: 600; width: 34%; }
.figure { margin: 0 0 32px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
.figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.figure figcaption { padding: 10px 14px; color: var(--muted); font-size: .8rem; }

.facts, .toc { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.facts-title, .toc-title { margin: 0 0 10px; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.facts dl { margin: 0; }
.facts dl div { padding: 9px 0; border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: .75rem; font-weight: 600; }
.facts dd { margin: 2px 0 0; font-size: .9rem; font-weight: 600; }
.toc ol { margin: 0; padding-left: 1.1em; font-size: .86rem; }
.toc li { margin: 6px 0; }
.toc li::marker { color: var(--red); }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--red); text-decoration: underline; }

/* Steps */
.steps-block { margin-top: 2.2em; }
.steps { margin: 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.step-n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; }
.steps h3 { margin: 4px 0 6px; }
.steps p { margin: 0; color: #2f343a; }

/* FAQ */
.faq-block { margin-top: 2.6em; }
.faq-block details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 10px; }
.faq-block summary { position: relative; padding: 16px 52px 16px 20px; font-weight: 700; cursor: pointer; list-style: none; }
.faq-block summary::-webkit-details-marker { display: none; }
.faq-block summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--red); font-size: 1.4rem; font-weight: 600; }
.faq-block details[open] summary::after { content: '–'; }
.faq-block details[open] { border-color: #cfd3d8; }
.faq-a { padding: 0 20px 16px; color: #2f343a; }
.faq-a p { margin: 0; }
.hub .faq-block { max-width: 860px; }

/* Engineer note */
.engineer-note { margin: 2.4em 0 0; padding: 24px; border-radius: var(--radius); background: var(--charcoal); color: #e6e9ec; }
.engineer-note .eyebrow { color: #ff7a81; }
.engineer-note blockquote { margin: 0; font-size: 1.05rem; }
.note-by { margin: 8px 0 0; color: #aab1b8; font-size: .85rem; }

/* Next steps */
.next-steps { margin-top: 3em; }
.next-title { font-size: 1.3rem; }
.next-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.next-card { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: var(--radius); text-decoration: none; transition: transform .15s; }
.next-card:hover { transform: translateY(-2px); }
.next-kicker { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.next-card strong { font-size: 1.1rem; }
.next-card span:not(.next-kicker) { font-size: .9rem; line-height: 1.55; }
.next-card small { margin-top: auto; padding-top: 8px; font-size: .75rem; opacity: .8; }
.next-repair { background: var(--charcoal); color: #fff; }
.next-repair .next-kicker { color: #ff7a81; }
.next-repair:hover { color: #fff; }
.next-parts { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--red); color: var(--ink); }
.next-parts .next-kicker { color: var(--red); }
.next-parts:hover { color: var(--ink); }

.related { margin-top: 3em; }
.related-title { font-size: 1.3rem; }
.related .card-grid { grid-template-columns: repeat(3, 1fr); }

/* Hubs */
.hub { padding-block: 40px 80px; }
.hub .quick-answer { max-width: 860px; }
.hub-group { margin-bottom: 48px; }
.hub-group > h2 { display: flex; align-items: center; gap: 10px; }

/* Glossary */
.glossary { display: grid; grid-template-columns: 1fr; margin: 0; }
.glossary div { padding: 14px 0; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.glossary dt { font-weight: 700; }
.glossary dd { margin: 4px 0 0; color: #2f343a; }
.az { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.az a { padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; font-weight: 700; font-size: .85rem; }

/* Footer */
.site-footer { margin-top: 0; background: var(--ink); color: #c8cdd2; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding-block: 56px 36px; }
.brand-light .brand-name { color: #fff; }
.brand-light .brand-name em { color: #ff5a63; }
.footer-brand p { margin-top: 14px; max-width: 340px; font-size: .88rem; }
.site-footer h2 { margin-bottom: 12px; color: #fff; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.footer-grid a:not(.brand) { display: block; margin: 7px 0; color: #c8cdd2; font-size: .87rem; text-decoration: none; }
.footer-grid a:not(.brand):hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-block: 18px 26px; border-top: 1px solid #2e3237; color: #8d949b; font-size: .78rem; }
.not-found { padding-block: 72px; }
.not-found .card-grid { margin: 24px 0; }


/* Phone (every page) */
.header-phone { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-size: .9rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.header-phone .icon-sm { color: var(--red); }
.header-phone:hover { color: var(--red); }
.footer-phone { color: #fff !important; font-weight: 700; }
.next-phone { margin: 14px 0 0; color: var(--muted); font-size: .92rem; }
.next-phone a { font-weight: 700; }

/* Stop-and-call box */
.stop-call { margin: 0 0 32px; padding: 22px 24px; border: 1px solid #efc4c7; border-left: 5px solid var(--red); border-radius: var(--radius); background: var(--red-tint); }
.stop-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; color: var(--red); }
.stop-title { margin: 0; font-size: 1.15rem; color: var(--ink); }
.stop-call ul { margin: 0 0 10px; padding-left: 1.2em; }
.stop-call li { margin-bottom: 6px; }
.stop-call li::marker { color: var(--red); }
.stop-note { margin: 0 0 14px; color: #5a2a2d; font-size: .9rem; }
.stop-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button-line { background: #fff; color: var(--red-ink); }
.button-line:hover { background: var(--red); color: #fff; }

/* Ask an engineer form */
.ask-form { margin-top: 2.6em; padding: 26px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--red); }
.ask-title { font-size: 1.3rem; margin-bottom: 4px; }
.ask-form > p { color: var(--muted); }
.ask-form form { display: grid; gap: 14px; }
.ask-form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 700; }
.ask-form .opt { color: var(--muted); font-weight: 400; }
.ask-form input, .ask-form textarea { width: 100%; padding: 11px 13px; border: 1px solid #cdd2d8; border-radius: 8px; background: #fff; font: inherit; font-weight: 400; color: var(--ink); }
.ask-form input:focus, .ask-form textarea:focus { outline: 3px solid rgba(179,20,30,.25); border-color: var(--red); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ask-form button { justify-self: start; cursor: pointer; font-family: inherit; }
.form-small { margin: 0; color: var(--muted); font-size: .8rem; }
.form-done { margin: 0; padding: 14px 16px; border-radius: 8px; background: #e9f6ee; color: #1d5c34; font-weight: 600; }
.hp { position: absolute !important; left: -9999px; height: 0; overflow: hidden; }

/* Funnel links + servicing card */
.funnel-links { margin-top: 2.2em; }
.hub-funnel, .home-funnel { max-width: 860px; }
.home-funnel { padding-block: 8px 64px; }
.next-service { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--charcoal); color: var(--ink); }
.next-service .next-kicker { color: var(--muted); }
.next-service:hover { color: var(--ink); }

/* Responsive */
@media (max-width: 1100px) {
  .symptom-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .card-grid.four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .header-inner { flex-wrap: wrap; gap: 8px 16px; padding-block: 10px; min-height: 0; }
  .main-nav { order: 3; width: 100%; margin: 0 -12px; overflow-x: auto; scrollbar-width: none; }
  .header-phone { margin-left: auto; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 32px; }
  .article-wrap { grid-template-columns: 1fr; gap: 0; }
  .sidebar { display: none; }
  .facts-inline { display: block; margin-bottom: 28px; }
  .card-grid, .related .card-grid { grid-template-columns: repeat(2, 1fr); }
  .next-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 32px); }
  .site-header { position: static; }
  .header-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .main-nav { grid-column: 1 / -1; margin: 0 -10px; }
  .brand { flex: 1 1 auto; min-width: 0; }
  .brand-name { font-size: .84rem; }
  .brand-mark { width: 30px; height: 30px; }
  .header-inner { column-gap: 8px; }
  .brand-mark { width: 34px; height: 34px; }
  .header-cta { padding: 8px 10px; font-size: .78rem; text-transform: capitalize; }
  .cta-long { display: none; }
  .phone-num { display: none; }
  .header-phone { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 8px; }
  .header-inner { grid-template-columns: 1fr auto auto; }
  .form-grid { grid-template-columns: 1fr; }
  .stop-actions .button { width: 100%; justify-content: center; }
  .brand { gap: 8px; }
  .main-nav a { padding: 8px 10px; font-size: .85rem; }
  .hero-grid { padding-block: 44px 64px; }
  .symptom-grid { grid-template-columns: 1fr 1fr; }
  .card-grid, .card-grid.four, .related .card-grid, .next-grid { grid-template-columns: 1fr; }
  .section { padding-block: 44px; }
  .quick-answer { padding: 18px; }
  .qa-text { font-size: 1.02rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

@media (max-width: 720px) { .brand-logo { height: 40px; } .brand-logo-footer { height: 34px; } }
