/* ==========================================================================
   QuickBooksFixPro — design system
   Editorial, trust-forward, fast. Green/ink palette, sans headings,
   serif article prose. Built mobile-first.
   ========================================================================== */

:root {
  --ink: #0e1f18;
  --body: #33473e;
  --muted: #5d7268;
  --faint: #8aa094;
  --paper: #ffffff;
  --canvas: #f6faf7;
  --mint: #eef7f1;
  --green: #0d7a3e;
  --green-dark: #0a5f30;
  --green-deep: #073f21;
  --green-tint: #e6f4ec;
  --line: #e0ebe4;
  --line-strong: #c9dbd0;
  --amber: #a16207;
  --amber-bg: #fef8e7;
  --amber-line: #f3dfa2;
  --red: #b3261e;
  --red-bg: #fdf1f0;
  --red-line: #f2c9c5;
  --blue: #1d4ed8;
  --blue-bg: #eff5ff;
  --blue-line: #cbdcfb;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(14, 31, 24, .05);
  --shadow: 0 6px 18px -8px rgba(14, 31, 24, .14);
  --shadow-lg: 0 18px 40px -18px rgba(14, 31, 24, .22);
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
a, button, input, select, textarea, summary { touch-action: manipulation; }
a, button, summary { -webkit-tap-highlight-color: rgba(13, 122, 62, .12); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }
strong { color: var(--ink); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.22; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.85rem); }
h3 { font-size: 1.16rem; font-weight: 700; }
ul, ol { padding-left: 1.35rem; }

.container { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 3px solid rgba(13, 122, 62, .45); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--green); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

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

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); font-size: 1.12rem; letter-spacing: -.03em; }
.brand:hover { color: var(--ink); }
.brand-accent { color: var(--green); }
.brand-text { white-space: nowrap; }

.site-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; flex-wrap: wrap; }
.nav-link, .nav-item > summary {
  display: inline-block; padding: 9px 13px; border-radius: var(--radius-sm);
  color: var(--body); font-size: .93rem; font-weight: 600; cursor: pointer; list-style: none;
}
.nav-item > summary::-webkit-details-marker { display: none; }
.nav-item > summary::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint); transform: rotate(45deg) translateY(-2px); }
.nav-link:hover, .nav-item > summary:hover, .nav-item[open] > summary { background: var(--mint); color: var(--ink); }
.nav-link.is-current { color: var(--green); }
.nav-item { position: relative; }
.menu {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 265px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 8px; display: grid; z-index: 120;
}
.menu a { display: block; padding: 8px 11px; border-radius: var(--radius-sm); color: var(--body); font-size: .9rem; font-weight: 500; }
.menu a:hover { background: var(--mint); color: var(--ink); }
.menu .menu-all { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 11px; color: var(--green); font-weight: 700; }
.nav-search input {
  width: 150px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 999px;
  font: inherit; font-size: .88rem; background: var(--canvas); color: var(--ink);
  transition: width .2s ease;
}
.nav-search input:focus { width: 200px; outline: none; border-color: var(--green); background: #fff; }
.nav-cta {
  margin-left: 6px; padding: 9px 16px; border-radius: 999px; font-size: .9rem; font-weight: 700;
  background: var(--green); color: #fff !important; box-shadow: var(--shadow-sm);
}
.nav-cta:hover { background: var(--green-dark); }
.nav-toggle { display: none; }

@media (max-width: 1080px) {
  .nav-search { display: none; }
}
@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    margin-left: auto; width: 44px; height: 44px; padding: 10px;
    background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); cursor: pointer;
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    content: ''; display: block; height: 2px; width: 22px; background: var(--ink); border-radius: 2px; position: relative;
  }
  .nav-toggle-bar::before { position: absolute; top: -7px; }
  .nav-toggle-bar::after { position: absolute; top: 7px; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    flex-direction: column; align-items: stretch; padding: 14px 20px 22px; gap: 4px;
  }
  .site-nav.is-open { display: flex; }
  .nav-item { position: static; }
  .menu { position: static; box-shadow: none; border: none; padding: 2px 0 2px 14px; }
  .nav-search { display: block; }
  .nav-search input { width: 100%; }
  .nav-cta { margin: 10px 0 0; text-align: center; }
}

/* -------------------------------------------------------------------- hero */

.hero {
  background:
    radial-gradient(1200px 400px at 85% -10%, rgba(13, 122, 62, .10), transparent 60%),
    linear-gradient(180deg, #f0f8f3 0%, var(--canvas) 100%);
  border-bottom: 1px solid var(--line);
  padding: 64px 0 56px;
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 56px; align-items: start; }
.hero-inner > *, .why-grid > *, .related-grid > *, .footer-grid > *, .cta-band > * { min-width: 0; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .09em;
  text-transform: uppercase; color: var(--green); background: var(--green-tint);
  border: 1px solid #cbe6d6; padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { margin-bottom: 16px; }
.hero h1 span { color: var(--green); }
.hero-sub { font-size: 1.13rem; color: var(--body); max-width: 620px; margin-bottom: 26px; }
.search-form {
  display: flex; gap: 8px; background: #fff; border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 7px; max-width: 620px; box-shadow: var(--shadow);
}
.search-input {
  flex: 1; min-width: 0; border: none; background: transparent; font: inherit;
  font-size: 1rem; padding: 10px 16px; color: var(--ink); border-radius: 999px;
}
.search-input:focus { outline: none; }
.search-input::placeholder { color: var(--faint); }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; }
.chips-label { font-size: .85rem; font-weight: 700; color: var(--muted); }
.chip {
  font-size: .84rem; font-weight: 600; color: var(--green-deep); background: #fff;
  border: 1px solid var(--line-strong); padding: 6px 12px; border-radius: 999px;
  transition: all .15s ease;
}
.chip:hover { border-color: var(--green); color: var(--green); transform: translateY(-1px); }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin-top: 26px; }
.trust-row li { font-size: .86rem; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.trust-row li::before { content: '✓'; color: var(--green); font-weight: 800; }
.hero-side { position: relative; }
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 34px; }
  .hero { padding: 46px 0 44px; }
}

/* ----------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: .95rem; line-height: 1;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: all .15s ease; white-space: nowrap;
}
.btn-primary { background: var(--green); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--green-dark); color: #fff; transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--green-deep); }
.btn-light:hover { color: var(--green-deep); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline { background: #fff; border-color: var(--line-strong); color: var(--ink); }
.btn-outline:hover { border-color: var(--green); color: var(--green); }
.btn-block { width: 100%; }

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

.section { padding: 56px 0; }
.section-alt { background: linear-gradient(180deg, #fbfdfc 0%, var(--mint) 100%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-head p { color: var(--muted); margin-top: 6px; }
.section-link { font-weight: 700; font-size: .95rem; white-space: nowrap; }
@media (max-width: 720px) {
  .section { padding: 42px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
}

/* ------------------------------------------------------------------- cards */

.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.guide-card {
  display: flex; flex-direction: column; gap: 8px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  color: var(--body); box-shadow: var(--shadow-sm); transition: all .18s ease;
}
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); color: var(--body); }
.guide-card-cat {
  align-self: flex-start; font-size: .72rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--green); background: var(--green-tint);
  padding: 4px 9px; border-radius: 6px;
}
.guide-card-title { font-size: 1.04rem; font-weight: 800; color: var(--ink); line-height: 1.35; letter-spacing: -.01em; }
.guide-card-desc { font-size: .9rem; color: var(--muted); line-height: 1.55; }
.guide-card:hover .guide-card-title { color: var(--green); }
.guide-card-meta { margin-top: auto; padding-top: 10px; font-size: .78rem; font-weight: 700; color: var(--faint); }

.topic-grid, .product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.topic-card, .product-card {
  display: flex; flex-direction: column; gap: 8px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  color: var(--body); box-shadow: var(--shadow-sm); transition: all .18s ease; position: relative;
}
.topic-card:hover, .product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--body); border-color: var(--line-strong); }
.topic-card-count, .product-card-count {
  align-self: flex-start; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--green); background: var(--green-tint); padding: 4px 9px; border-radius: 6px;
}
.topic-card-title, .product-card-title { font-size: 1.08rem; font-weight: 800; color: var(--ink); }
.topic-card:hover .topic-card-title, .product-card:hover .product-card-title { color: var(--green); }
.topic-card-desc, .product-card-desc { font-size: .89rem; color: var(--muted); line-height: 1.55; }
.product-card-badge {
  position: absolute; top: 18px; right: 18px; font-size: .7rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .05em; color: var(--amber); background: var(--amber-bg); border: 1px solid var(--amber-line);
  padding: 3px 8px; border-radius: 999px;
}

/* -------------------------------------------------------------- why section */

.why-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.why-copy h2 { margin-bottom: 14px; }
.why-copy > p { margin-bottom: 18px; }
.check-list { list-style: none; padding: 0; display: grid; gap: 12px; margin-bottom: 20px; }
.check-list li { position: relative; padding-left: 30px; font-size: .96rem; }
.check-list li::before {
  content: '✓'; position: absolute; left: 0; top: 1px; width: 20px; height: 20px;
  display: grid; place-items: center; background: var(--green-tint); color: var(--green);
  font-size: .75rem; font-weight: 800; border-radius: 50%;
}
.why-side { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-align: center; box-shadow: var(--shadow-sm); }
.stat-num { display: block; font-size: 1.7rem; font-weight: 800; color: var(--green); letter-spacing: -.03em; }
.stat-label { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); margin-top: 4px; }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; gap: 30px; } }

/* --------------------------------------------------------------- cta band */

.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: linear-gradient(120deg, var(--green-deep), var(--green-dark));
  color: #fff; border-radius: var(--radius-lg); padding: 38px 40px; box-shadow: var(--shadow);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .82); margin-top: 6px; max-width: 560px; }
@media (max-width: 760px) { .cta-band { flex-direction: column; align-items: flex-start; padding: 30px 26px; } }

/* --------------------------------------------------------------- help card */

.help-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-lg); scroll-margin-top: 90px;
}
.help-kicker { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--green); margin-bottom: 8px; }
.help-title { font-size: 1.22rem; margin-bottom: 8px; }
.help-sub { font-size: .89rem; color: var(--muted); margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { margin-bottom: 12px; display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: .8rem; font-weight: 700; color: var(--ink); }
.field .optional { font-weight: 500; color: var(--faint); }
.field input, .field textarea, .field select {
  font: inherit; font-size: .93rem; color: var(--ink); background: var(--canvas);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 11px 13px;
  width: 100%; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 3px rgba(13, 122, 62, .12); }
.hp-field { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-note { font-size: .78rem; color: var(--muted); margin-top: 10px; text-align: center; }
.form-status { font-size: .88rem; font-weight: 600; margin-top: 10px; }
.form-status.is-ok { color: var(--green); }
.form-status.is-error { color: var(--red); }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

/* --------------------------------------------------------------- articles */

.article-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 56px;
  padding: 38px 24px 70px; align-items: start;
}
.article { min-width: 0; }
.breadcrumbs { margin-bottom: 22px; }
.breadcrumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.breadcrumbs li { display: flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: '›'; color: var(--faint); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--green); }
.article-header { margin-bottom: 26px; }
.kicker { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.article-header h1 { margin-bottom: 12px; }
.article-dek { font-size: 1.1rem; color: var(--muted); margin-bottom: 20px; }
.byline { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.byline-text { display: flex; flex-direction: column; gap: 2px; font-size: .84rem; color: var(--muted); }
.byline-text a { font-weight: 700; }
.trust-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.trust-pill {
  font-size: .76rem; font-weight: 700; color: var(--green-deep); background: var(--green-tint);
  border: 1px solid #cbe6d6; padding: 5px 10px; border-radius: 999px;
}
.toc-mobile { display: none; margin: 0 0 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.toc-mobile summary { font-weight: 800; color: var(--ink); cursor: pointer; }
.toc-mobile .toc { margin-top: 12px; padding: 0; border: 0; background: none; }

.prose { font-family: var(--font-serif); font-size: 1.075rem; line-height: 1.78; color: #293d34; overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.05em; }
.prose h2, .prose h3, .prose h4 { font-family: var(--font-sans); }
.prose h2 { font-size: 1.55rem; margin-top: 2.3em; padding-top: .2em; scroll-margin-top: 96px; }
.prose h3 { font-size: 1.15rem; margin-top: 1.7em; scroll-margin-top: 96px; }
.prose p { margin: 0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose ul, .prose ol { margin-left: .3rem; padding-left: 1.15rem; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--green); font-weight: 700; }
.prose code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size: .85em; background: var(--mint); border: 1px solid var(--line);
  padding: 2px 6px; border-radius: 6px; color: var(--green-deep);
  overflow-wrap: anywhere;
}
.prose kbd {
  font-family: var(--font-sans); font-size: .78em; font-weight: 700; background: #fff;
  border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; padding: 2px 6px; color: var(--ink);
}
.prose pre {
  background: #0f231b; color: #dff3e7; border-radius: var(--radius);
  padding: 18px 20px; overflow-x: auto; font-size: .85rem; line-height: 1.6;
}
.prose pre code { background: none; border: 0; color: inherit; padding: 0; }

.answer-box {
  background: linear-gradient(180deg, #f2faf5, var(--green-tint));
  border: 1px solid #c8e5d4; border-left: 5px solid var(--green);
  border-radius: var(--radius); padding: 22px 24px; font-family: var(--font-sans);
}
.answer-label { font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--green); margin-bottom: 7px !important; }
.answer-box p { font-size: 1rem; color: var(--ink); }

.callout {
  font-family: var(--font-sans); border-radius: var(--radius); padding: 18px 20px 18px 22px;
  font-size: .94rem; border: 1px solid; border-left-width: 5px;
}
.callout p { margin: 0; }
.callout p + p { margin-top: .6em; }
.callout strong:first-child { display: block; margin-bottom: 4px; }
.callout.tip { background: var(--green-tint); border-color: #c8e5d4; border-left-color: var(--green); }
.callout.info { background: var(--blue-bg); border-color: var(--blue-line); border-left-color: var(--blue); }
.callout.warning { background: var(--amber-bg); border-color: var(--amber-line); border-left-color: var(--amber); }
.callout.danger { background: var(--red-bg); border-color: var(--red-line); border-left-color: var(--red); }

.step {
  display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow-sm); font-family: var(--font-sans);
}
.step + .step { margin-top: 12px; }
.step-number {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
  background: var(--green); color: #fff; font-weight: 800; font-size: .9rem;
}
.step-content h3 { font-size: 1.04rem; margin: 3px 0 6px; }
.step-content p { font-size: .94rem; color: var(--body); }
.step-content p + p { margin-top: .55em; }
.step-content ul, .step-content ol { margin: .5em 0 0 .2rem; font-size: .94rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.prose table { width: 100%; border-collapse: collapse; font-family: var(--font-sans); font-size: .88rem; min-width: 520px; }
.prose th, .prose td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.prose thead th { background: var(--mint); color: var(--ink); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose tbody tr:hover { background: #fbfdfc; }

.faq-section { font-family: var(--font-sans); margin: 2.2em 0; }
.faq-item { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq-item h3 { font-size: 1rem; margin-bottom: 6px; }
.faq-item p { font-size: .93rem; color: var(--muted); margin: 0; }

.sources {
  font-family: var(--font-sans); background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px; margin: 2.2em 0;
}
.sources h2 { font-size: 1.05rem !important; margin: 0 0 10px !important; padding: 0 !important; }
.sources-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.sources-list li { font-size: .88rem; padding-left: 18px; position: relative; }
.sources-list li::before { content: '↗'; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.sources-list a { text-decoration: underline; text-underline-offset: 3px; }

.sidebar { min-width: 0; }
.sidebar-sticky { position: sticky; top: 90px; display: grid; gap: 20px; max-height: calc(100vh - 110px); overflow-y: auto; padding-right: 4px; scrollbar-width: thin; }
.toc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.toc-title { font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc ol { list-style: none; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.toc li { font-size: .87rem; }
.toc a { display: block; padding: 5px 8px; border-radius: 6px; color: var(--body); font-weight: 500; border-left: 2px solid transparent; }
.toc a:hover { background: var(--mint); color: var(--ink); }
.toc a.is-active { color: var(--green); border-left-color: var(--green); background: var(--mint); font-weight: 700; }
.toc-sub { list-style: none; padding-left: 14px !important; margin-top: 2px; }
.toc-sub a { font-size: .82rem; color: var(--muted); }

.feedback { font-family: var(--font-sans); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-top: 40px; text-align: center; }
.feedback h2 { font-size: 1.15rem; margin-bottom: 4px; }
.feedback p { color: var(--muted); font-size: .91rem; }
.feedback-actions { display: flex; gap: 10px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.feedback-thanks { margin-top: 14px; font-weight: 700; color: var(--green) !important; }

.author-box { font-family: var(--font-sans); margin-top: 36px; padding: 22px 24px; background: var(--mint); border: 1px solid var(--line); border-radius: var(--radius); }
.author-box h2 { font-size: 1.05rem; margin-bottom: 8px; }
.author-box p { font-size: .9rem; color: var(--body); }
.author-contact { margin-top: 8px; }

.related { margin-top: 44px; }
.related h2 { margin-bottom: 18px; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.related-grid .guide-card { padding: 18px; }

@media (max-width: 1020px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 30px; }
  .sidebar { display: none; }
  .toc-mobile { display: block; }
  .related-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------- hubs */

.hub-page { padding: 38px 24px 70px; }
.hub-hero { margin-bottom: 34px; max-width: 780px; }
.hub-hero h1 { margin-bottom: 12px; }
.hub-intro { font-size: 1.08rem; color: var(--muted); }
.hub-section { margin-top: 46px; }
.hub-section > h2 { display: flex; align-items: baseline; gap: 10px; margin-bottom: 18px; }
.hub-section .count { font-size: .9rem; font-weight: 700; color: var(--faint); }
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.link-grid a {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 15px; font-size: .91rem; font-weight: 600; color: var(--body);
}
.link-grid a:hover { border-color: var(--green); color: var(--green); }
.filter-bar { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.filter-bar input {
  flex: 1; max-width: 420px; font: inherit; font-size: .95rem; padding: 12px 16px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; color: var(--ink);
}
.filter-bar input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(13, 122, 62, .12); }
.filter-count { font-size: .86rem; font-weight: 700; color: var(--muted); }
.is-hidden { display: none !important; }
.sitemap-section { margin-bottom: 34px; }
.sitemap-section h2 { margin-bottom: 14px; font-size: 1.25rem; }
.sitemap-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 4px; }
.sitemap-list a { display: block; padding: 7px 10px; border-radius: var(--radius-sm); font-size: .9rem; color: var(--body); }
.sitemap-list a:hover { background: var(--mint); color: var(--green); }

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

.static-page { padding: 38px 24px 70px; max-width: 860px; }
.static-hero { margin-bottom: 28px; }
.static-intro { font-size: 1.1rem; color: var(--muted); margin-top: 10px; }
.static-body { font-size: 1.02rem; }
.static-body h2 { font-size: 1.4rem; margin-top: 2em; }
.static-body h3 { margin-top: 1.5em; }
.static-body p, .static-body li { color: #33473e; }
.static-body ul, .static-body ol { margin: .8em 0 1.2em 1.1rem; }
.static-page .help-card { margin-top: 40px; }

.not-found { text-align: center; max-width: 900px; }
.nf-code { font-size: 4.5rem; font-weight: 800; color: var(--green); line-height: 1; letter-spacing: -.04em; }
.nf-links { margin-top: 26px; }

/* ----------------------------------------------------------------- search */

.search-page { padding: 38px 24px 70px; max-width: 900px; }
.search-form-page { max-width: 100%; margin-top: 18px; }
.search-results { margin-top: 30px; display: grid; gap: 12px; }
.search-result {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; color: var(--body); box-shadow: var(--shadow-sm);
}
.search-result:hover { border-color: var(--green); color: var(--body); }
.search-result-cat { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--green); }
.search-result-title { display: block; font-size: 1.05rem; font-weight: 800; color: var(--ink); margin: 5px 0 4px; }
.search-result-desc { font-size: .89rem; color: var(--muted); }
.search-empty { color: var(--muted); padding: 20px 0; }

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

.site-footer { background: var(--ink); color: #b9cbc1; margin-top: 20px; padding: 52px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-about p { font-size: .89rem; line-height: 1.65; margin-top: 14px; color: #9db3a8; max-width: 360px; }
.brand-footer { color: #fff; }
.brand-footer:hover { color: #fff; }
.footer-contact a { color: #fff; font-weight: 700; }
.footer-col h3 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer-col a { display: block; color: #9db3a8; font-size: .89rem; padding: 4px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: grid; gap: 12px; padding-top: 24px; }
.footer-legal { font-size: .82rem; color: #9db3a8; }
.footer-legal a { color: #c9dbd0; }
.footer-disclosure { font-size: .78rem; color: #7f9589; max-width: 900px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: span 2; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } .footer-about { grid-column: span 1; } }

/* ----------------------------------------------------------- small screens */

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .hero { padding: 36px 0 40px; }
  .hero-sub { font-size: 1.05rem; }
  .help-card { padding: 20px 18px; }
  .help-title { font-size: 1.12rem; }
  .field input, .field textarea, .field select, .nav-search input, .filter-bar input, .search-input { font-size: 16px; }
  .nav-search input:focus { width: 100%; }
  .footer-col a { padding: 7px 0; }
  .footer-legal a { display: inline-block; padding: 5px 2px; }
  .section-link { display: inline-block; padding: 6px 0; }
  .chip { padding: 8px 13px; }
  .breadcrumbs a { display: inline-block; padding: 3px 0; }
  .toc a { padding: 8px 10px; }
  .guide-card-cat, .topic-card-count, .product-card-count, .help-kicker, .eyebrow { font-size: .78rem; }
  .guide-card-meta { font-size: .8rem; }
  .trust-pill { font-size: .79rem; }
  .filter-bar { flex-wrap: wrap; }
  .table-wrap { -webkit-overflow-scrolling: touch; }
  .article-layout { padding: 24px 18px 60px; }
  .hub-page, .static-page, .search-page { padding: 28px 18px 60px; }
}

/* ------------------------------------------------------------------ print */

@media print {
  .site-header, .site-footer, .sidebar, .feedback, .related, .help-card, .toc-mobile, .cta-band { display: none !important; }
  .article-layout { display: block; padding: 0; }
  body { background: #fff; }
  .prose { font-size: 11pt; }
  .answer-box, .step, .callout { break-inside: avoid; }
}
