/* Fund My Equipment, theme.css (Day 2) */

:root {
  --ink: #111827;
  --ink-2: #1f2937;
  --ink-3: #374151;
  --muted: #6b7280;
  --line: #e5e7eb;
  --line-soft: #f3f4f6;
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --bg-panel: #f8fafc;
  --accent: #b45309;
  --accent-soft: #fef3c7;
  --positive: #065f46;
  --positive-soft: #d1fae5;
  --danger: #991b1b;
  --danger-soft: #fee2e2;
  --info: #1e40af;
  --info-soft: #dbeafe;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

/* Skip-to-main link for keyboard/screen-reader users */
.skip-to-main { position: absolute; top: -40px; left: 0; background: var(--ink); color: #fff; padding: 8px 16px; z-index: 9999; text-decoration: none; border-radius: 0 0 6px 0; font-weight: 600; }
.skip-to-main:focus { top: 0; outline: 2px solid var(--accent); outline-offset: 0; }

/* Visible focus styles on all interactive elements */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Screen-reader-only helper class */
.screen-reader-text { position: absolute; clip-path: inset(50%); height: 1px; width: 1px; overflow: hidden; word-wrap: normal; }
.screen-reader-text:focus { clip-path: none; height: auto; width: auto; padding: 15px 23px; background: #fff; color: var(--ink); font-size: 1em; line-height: normal; left: 5px; top: 5px; z-index: 100000; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); padding: 16px 0; position: sticky; top: 0; z-index: 100; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-brand { font-size: 18px; font-weight: 700; color: var(--ink); text-decoration: none; }
.site-name { color: var(--accent); }
.primary-menu { display: flex; gap: 24px; list-style: none; padding: 0; margin: 0; }
.primary-menu a { color: var(--ink-3); text-decoration: none; font-size: 14px; }
.primary-menu a:hover { color: var(--ink); }
.site-cta { background: var(--accent); color: #fff; padding: 10px 20px; border-radius: 6px; text-decoration: none; font-weight: 600; font-size: 14px; }
.site-cta:hover { background: #92400e; }

/* Main */
.site-main { padding: 40px 0 80px 0; }
.site-content h1 { font-size: 36px; margin-top: 0; line-height: 1.2; letter-spacing: -0.01em; }

/* Hero (front-page) */
.hero { padding: 60px 0; }
.hero h1 { font-size: 44px; max-width: 800px; margin: 0 0 16px 0; letter-spacing: -0.02em; line-height: 1.15; }
.hero-deck { font-size: 18px; color: var(--ink-3); max-width: 720px; margin: 0 0 28px 0; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { padding: 14px 28px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 16px; display: inline-block; transition: background 0.15s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #92400e; }
.btn-secondary { background: #fff; color: var(--ink); border: 1px solid var(--line); }

/* Trust bar */
.trust-bar { padding: 24px 20px; background: var(--bg-soft); border-radius: 8px; margin: 20px auto; max-width: 1160px; }
.trust-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.trust-item { font-size: 14px; color: var(--ink-3); text-align: center; }
.trust-item strong { display: block; font-size: 24px; color: var(--accent); margin-bottom: 4px; }

/* Category grid */
.categories-grid { margin: 48px auto; }
.categories-grid h2 { font-size: 28px; margin: 0 0 8px 0; letter-spacing: -0.01em; }
.cat-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 16px; }
.cat-grid a { padding: 18px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; text-decoration: none; color: var(--ink); display: block; transition: background 0.15s, transform 0.15s; }
.cat-grid a:hover { background: var(--bg-panel); transform: translateY(-1px); }
.cat-grid strong { display: block; font-size: 16px; margin-bottom: 4px; }
.cat-count { font-size: 12px; color: var(--muted); }

/* How it works */
.how-it-works { margin: 64px auto; }
.how-it-works h2 { font-size: 28px; margin: 0 0 24px 0; }
.steps { list-style: none; counter-reset: step; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.steps li { counter-increment: step; padding: 20px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; position: relative; }
.steps li::before { content: counter(step); position: absolute; top: -12px; left: 16px; background: var(--accent); color: #fff; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.steps strong { display: block; font-size: 18px; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--ink-3); font-size: 14px; }

/* Universal guides on home */
.universal-guides { margin: 64px auto; }
.universal-guides h2 { font-size: 28px; margin: 0 0 16px 0; }
.guides-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; }
.guides-grid a { padding: 12px 16px; background: var(--bg-soft); border-left: 3px solid var(--accent); text-decoration: none; color: var(--ink); display: block; }
.guides-grid a:hover { background: var(--bg-panel); }

/* Home FAQ */
.home-faq { margin: 48px auto 80px auto; }
.home-faq h2 { font-size: 28px; margin: 0 0 16px 0; }
.faq-list details { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; margin-bottom: 8px; padding: 14px 18px; }
.faq-list details summary { cursor: pointer; font-weight: 600; }
.faq-list details[open] summary { margin-bottom: 8px; }
.faq-list details p { margin: 0; color: var(--ink-3); }

/* Equipment hub */
.breadcrumb { font-size: 13px; color: var(--muted); padding: 16px 0 8px 0; }
.breadcrumb a { color: var(--info); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .current { color: var(--ink-3); }

.eq-hero, .cat-hero { padding: 20px 0 32px 0; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.eq-hero h1, .cat-hero h1 { font-size: 38px; margin: 0 0 12px 0; letter-spacing: -0.01em; line-height: 1.15; }
.eq-deck, .cat-deck { font-size: 17px; color: var(--ink-3); max-width: 720px; margin: 0 0 20px 0; }
.quick-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; padding: 16px 20px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px; margin: 16px 0 20px 0; }
.quick-stats dt { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0; font-weight: 600; }
.quick-stats dd { margin: 4px 0 0 0; font-size: 16px; color: var(--ink); font-weight: 600; }
.eq-cta, .cat-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

.anchor-toc { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px; padding: 16px 20px; margin: 24px 0; font-size: 14px; }
.anchor-toc strong { display: block; margin-bottom: 8px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.anchor-toc ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.anchor-toc a { color: var(--info); text-decoration: none; padding: 4px 6px; border-radius: 4px; }
.anchor-toc a:hover { background: var(--info-soft); }
.anchor-toc a.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

.tldr { padding: 20px 24px; background: var(--info-soft); border-left: 4px solid var(--info); border-radius: 0 8px 8px 0; margin: 24px 0; }
.tldr p { margin: 0 0 12px 0; font-size: 16px; }
.tldr p:last-child { margin-bottom: 0; }

.hub-section { padding: 36px 0; border-top: 1px solid var(--line-soft); }
.hub-section:first-of-type { border-top: 0; }
.hub-section h2 { font-size: 26px; margin: 0 0 16px 0; letter-spacing: -0.01em; }
.hub-section h3 { font-size: 18px; margin: 24px 0 12px 0; }

.fast-facts-table, .rate-table { width: 100%; border-collapse: collapse; margin: 16px 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.fast-facts-table th, .fast-facts-table td, .rate-table th, .rate-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.fast-facts-table th { background: var(--bg-panel); width: 40%; font-weight: 600; }
.rate-table th { background: var(--bg-panel); font-size: 13px; letter-spacing: 0.02em; text-transform: uppercase; }
.fast-facts-table tr:last-child td, .fast-facts-table tr:last-child th, .rate-table tr:last-child td { border-bottom: 0; }

.as-of-date, .rate-disclosure, .bc-disclosure, .lender-disclosure { font-size: 13px; color: var(--muted); font-style: italic; margin: 12px 0; }
.as-of-date a, .rate-disclosure a, .bc-disclosure a, .lender-disclosure a { color: var(--info); }

.rate-tldr, .bc-tldr, .req-tldr { font-size: 16px; padding: 16px 20px; background: var(--bg-soft); border-left: 4px solid var(--accent); border-radius: 0 6px 6px 0; margin: 16px 0; }

.buyer-grid, .structures-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 16px 0; }
.buyer-card, .structure-card { padding: 16px 18px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; }
.buyer-card h3, .structure-card h3 { font-size: 16px; margin: 0 0 6px 0; }
.buyer-card p, .structure-card p { margin: 0; font-size: 14px; color: var(--ink-3); }

.doc-checklist { padding-left: 24px; }
.doc-checklist li { margin-bottom: 6px; }

.inline-cta { display: inline-block; margin-top: 12px; padding: 10px 20px; background: var(--accent); color: #fff; text-decoration: none; border-radius: 6px; font-weight: 600; font-size: 14px; }
.inline-cta:hover { background: #92400e; }

.calc-widget { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px; padding: 24px; min-height: 200px; }
.calc-widget .calc-form { display: block; }
.calc-widget .calc-inputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 20px; }
.calc-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-3); }
.calc-field > span { font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.calc-field input, .calc-field select { padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; font-size: 15px; background: #fff; color: var(--ink); width: 100%; }
.calc-field input:focus, .calc-field select:focus { outline: 2px solid var(--info); outline-offset: -1px; }
.calc-output { background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.calc-results { width: 100%; border-collapse: collapse; }
.calc-results th, .calc-results td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.calc-results thead th { background: var(--bg-panel); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.calc-results tbody th { font-weight: 600; }
.calc-results .r-payment, .calc-results .r-total { font-variant-numeric: tabular-nums; }
.calc-results .r-note { color: var(--ink-3); font-size: 13px; }
.calc-aside { padding: 14px 18px; font-size: 13px; color: var(--ink-3); background: var(--bg-soft); border-top: 1px solid var(--line-soft); }
.calc-aside p { margin: 0 0 6px 0; }
.calc-aside p:last-child { margin-bottom: 0; }
.calc-s179 { background: var(--positive-soft); border-left: 3px solid var(--positive); padding: 10px 14px; margin: 8px 0; border-radius: 0 6px 6px 0; }
.calc-as-of { font-style: italic; color: var(--muted); }
.calc-cta { margin-top: 16px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.calc-cta button { border: 0; cursor: pointer; }
.calc-cta-note { font-size: 13px; color: var(--muted); }
.calc-disclosure { margin-top: 14px; font-size: 12px; color: var(--muted); line-height: 1.6; }
.calc-disclosure a { color: var(--info); }

/* Calculator chart */
.calc-chart-wrap { padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 6px; margin-top: 12px; }
.calc-chart-title { margin: 0 0 8px 0; font-size: 13px; font-weight: 700; color: var(--ink-3); letter-spacing: 0.02em; }
.calc-chart { width: 100%; min-height: 180px; }
.calc-chart svg { display: block; width: 100%; }
.calc-chart-legend { display: flex; gap: 18px; margin-top: 8px; font-size: 12px; color: var(--ink-3); }
.calc-chart-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.calc-chart-legend-item i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; }

/* Equipment grid filter */
.equipment-filter { margin: 16px 0 24px 0; padding: 14px 16px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px; }
.equipment-filter-controls { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.equipment-filter-search { flex: 1 1 280px; min-width: 200px; }
.equipment-filter-search input { width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; background: #fff; }
.equipment-filter-price { display: flex; gap: 8px; align-items: center; }
.equipment-filter-price > span { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.equipment-filter-price select { padding: 10px 14px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; background: #fff; }
.equipment-filter-clear { background: none; border: 1px solid var(--line); padding: 8px 14px; font-size: 13px; cursor: pointer; border-radius: 6px; color: var(--ink-3); }
.equipment-filter-clear:hover { background: var(--bg-panel); }
.equipment-filter-count { margin-top: 8px; font-size: 12px; color: var(--muted); }
.equipment-filter-empty { padding: 24px; background: var(--info-soft); border-left: 3px solid var(--info); border-radius: 0 6px 6px 0; margin: 12px 0; }
.equipment-filter-empty a { color: var(--info); font-weight: 600; }

/* HTML sitemap page */
.sitemap-html-page { max-width: 1200px; }
.sitemap-section { margin: 32px 0; padding-bottom: 28px; border-bottom: 1px solid var(--line-soft); }
.sitemap-section h2 { font-size: 22px; margin: 0 0 12px 0; letter-spacing: -0.01em; }
.sitemap-note { font-size: 13px; color: var(--muted); margin: 0 0 14px 0; }
.sitemap-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 4px 18px; }
.sitemap-list-three { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.sitemap-list li { padding: 4px 0; font-size: 14px; }
.sitemap-list a { color: var(--info); text-decoration: none; }
.sitemap-list a:hover { text-decoration: underline; }
.sitemap-cat-group { margin: 10px 0; padding: 10px 14px; background: var(--bg-soft); border-radius: 6px; }
.sitemap-cat-group summary { cursor: pointer; font-size: 15px; padding: 4px 0; }
.sitemap-cat-group summary strong { color: var(--ink); }
.sitemap-count { color: var(--muted); font-weight: 400; font-size: 13px; margin-left: 6px; }
.sitemap-list-nested { margin-top: 8px; padding-left: 18px; }

/* Application form */
.apply-page { max-width: 1200px; }
.apply-hero { padding: 20px 0 24px 0; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.apply-hero h1 { font-size: 36px; margin: 0 0 12px 0; letter-spacing: -0.01em; }
.apply-deck { font-size: 17px; color: var(--ink-3); max-width: 720px; margin: 0 0 16px 0; }
.apply-trust { list-style: none; padding: 0; margin: 12px 0 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 16px; font-size: 14px; color: var(--ink-3); }
.apply-trust li::before { content: "\2713"; color: var(--positive); margin-right: 8px; font-weight: 700; }
.apply-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 32px; align-items: start; }
@media (max-width: 880px) { .apply-layout { grid-template-columns: 1fr; } }
.application-form { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
.application-form.full { padding: 0; }
.apply-group { border: 0; padding: 18px 22px; margin: 0; border-bottom: 1px solid var(--line-soft); }
.apply-group:last-of-type { border-bottom: 0; }
.apply-group legend { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 12px; }
.apply-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; font-size: 14px; color: var(--ink-3); }
.apply-field > span { font-weight: 600; color: var(--ink); font-size: 13px; }
.apply-field input, .apply-field select, .apply-field textarea { padding: 11px 14px; border: 1px solid var(--line); border-radius: 6px; font-size: 15px; background: #fff; color: var(--ink); width: 100%; }
.apply-field input:focus, .apply-field select:focus { outline: 2px solid var(--info); outline-offset: -1px; }
.apply-eq-context { background: var(--info-soft); border-left: 3px solid var(--info); padding: 12px 16px; margin-bottom: 14px; border-radius: 0 6px 6px 0; font-size: 14px; }
.apply-eq-context a { color: var(--info); text-decoration: underline; margin-left: 8px; font-size: 13px; }
.apply-tcpa { background: var(--bg-soft); }
.apply-checkbox { display: flex; align-items: flex-start; gap: 12px; font-size: 13px; color: var(--ink-3); line-height: 1.55; cursor: pointer; }
.apply-checkbox input[type="checkbox"] { margin-top: 4px; width: 18px; height: 18px; flex-shrink: 0; }
.apply-consent-text a { color: var(--info); }
.apply-submit { padding: 22px; background: var(--bg-soft); display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.apply-submit .btn { border: 0; cursor: pointer; font-size: 16px; }
.apply-soft-pull { font-size: 13px; color: var(--muted); margin: 0; }
.apply-error { margin: 14px 22px; padding: 14px 16px; background: var(--danger-soft); border-left: 3px solid var(--danger); color: var(--ink); border-radius: 0 6px 6px 0; font-size: 14px; }
.apply-error ul { margin: 6px 0 0 18px; padding: 0; }
.apply-error li { margin-bottom: 4px; }
.apply-noscript-warn { padding: 16px; background: var(--danger-soft); border-left: 3px solid var(--danger); border-radius: 0 6px 6px 0; }

.apply-sidebar { padding: 22px 24px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
.apply-sidebar h2 { font-size: 18px; margin: 0 0 12px 0; }
.apply-sidebar h3 { font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin: 18px 0 10px 0; }
.apply-steps { padding-left: 22px; margin: 0; }
.apply-steps li { margin-bottom: 10px; color: var(--ink-3); }
.apply-steps strong { color: var(--ink); }
.apply-docs { padding-left: 22px; margin: 0; color: var(--ink-3); }
.apply-docs li { margin-bottom: 4px; }
.apply-privacy { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.apply-privacy a { color: var(--info); }

.thank-you-page .apply-hero { background: var(--positive-soft); border: 1px solid var(--positive); padding: 24px 28px; border-radius: 8px; margin-bottom: 24px; }
.thank-you-next { padding: 8px 0 32px 0; }
.thank-you-next h2 { font-size: 22px; margin: 0 0 14px 0; }

/* Archive listing */
.archive-page { max-width: 1200px; }
.archive-hero { padding: 20px 0 24px 0; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.archive-hero h1 { font-size: 34px; margin: 0 0 12px 0; letter-spacing: -0.01em; }
.archive-deck { font-size: 17px; color: var(--ink-3); max-width: 760px; margin: 0 0 8px 0; }
.archive-count { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; margin: 4px 0 0 0; font-weight: 600; }
.archive-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px; }
.archive-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; transition: background 0.15s, transform 0.15s; }
.archive-card a { display: block; padding: 16px 18px; text-decoration: none; color: var(--ink); height: 100%; }
.archive-card a:hover { background: var(--bg-panel); }
.archive-card h2 { font-size: 16px; margin: 0 0 6px 0; line-height: 1.3; font-weight: 600; }
.archive-excerpt { margin: 4px 0 0 0; font-size: 13px; color: var(--ink-3); line-height: 1.5; }
.archive-pagination { margin: 32px 0 16px 0; text-align: center; font-size: 14px; }
.archive-pagination a, .archive-pagination span { padding: 8px 12px; margin: 0 2px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 4px; text-decoration: none; color: var(--ink); display: inline-block; }
.archive-pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }
.archive-cta { margin-top: 48px; padding: 32px; background: var(--bg-panel); border: 1px solid var(--line); border-radius: 8px; text-align: left; }
.archive-cta h2 { margin: 0 0 8px 0; font-size: 24px; }
.archive-cta p { margin: 0 0 16px 0; color: var(--ink-3); max-width: 700px; }

/* Header search */
.header-search { position: relative; flex: 1 1 320px; max-width: 480px; display: flex; gap: 6px; margin: 0 16px; }
.header-search input[type="search"] { flex: 1; padding: 10px 14px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; background: #fff; color: var(--ink); }
.header-search input[type="search"]:focus { outline: 2px solid var(--info); outline-offset: -1px; }
.header-search button { padding: 10px 18px; background: var(--ink-2); color: #fff; border: 0; border-radius: 6px; cursor: pointer; font-size: 14px; font-weight: 600; }
.header-search button:hover { background: var(--ink); }
.header-search-results { position: absolute; top: 100%; left: 0; right: 0; width: 540px; max-width: 90vw; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 28px rgba(15,23,42,0.14); margin-top: 6px; z-index: 200; max-height: 480px; overflow-y: auto; overflow-x: hidden; }
.header-search-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line-soft); }
.header-search-item:last-of-type { border-bottom: 0; }
.header-search-item:hover, .header-search-item.selected { background: var(--bg-soft); }
.search-item-type { flex: 0 0 auto; font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 3px 8px; border-radius: 4px; min-width: 64px; max-width: 92px; text-align: center; white-space: nowrap; }
.search-item-title { font-size: 14px; color: var(--ink); flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-search-more { display: block; padding: 12px 14px; text-align: center; background: var(--bg-soft); color: var(--info); font-weight: 600; font-size: 13px; text-decoration: none; border-top: 1px solid var(--line); }
.header-search-more:hover { background: var(--bg-panel); }
.header-search-empty { padding: 16px; text-align: center; color: var(--muted); font-size: 14px; }
.header-search-empty a { color: var(--info); }

/* Search results page */
.search-results { max-width: 1100px; }
.search-hero { padding: 20px 0 24px 0; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.search-hero h1 { font-size: 30px; margin: 0 0 10px 0; letter-spacing: -0.01em; }
.search-count { font-size: 14px; color: var(--muted); margin: 4px 0 16px 0; }
.search-form-large { display: flex; gap: 8px; max-width: 600px; }
.search-form-large input[type="search"] { flex: 1; padding: 12px 16px; border: 1px solid var(--line); border-radius: 6px; font-size: 16px; }
.search-form-large button { padding: 12px 24px; background: var(--accent); color: #fff; border: 0; border-radius: 6px; cursor: pointer; font-weight: 600; }
.search-group { margin: 36px 0; }
.search-group h2 { font-size: 22px; margin: 0 0 16px 0; padding-bottom: 8px; border-bottom: 2px solid var(--accent-soft); }
.search-group-count { color: var(--muted); font-size: 14px; font-weight: 400; margin-left: 8px; }
.search-result-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 10px; }
.search-result-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; transition: background 0.15s; }
.search-result-card a { display: block; padding: 14px 18px; text-decoration: none; color: var(--ink); }
.search-result-card a:hover { background: var(--bg-panel); }
.search-result-card h3 { font-size: 15px; margin: 0 0 6px 0; line-height: 1.3; }
.search-excerpt { margin: 4px 0 6px 0; font-size: 13px; color: var(--ink-3); }
.search-url { font-size: 11px; color: var(--muted); font-family: monospace; word-break: break-all; }
.search-empty { padding: 24px; background: var(--bg-soft); border-radius: 8px; }
.search-suggestions { list-style: none; padding: 0; margin: 16px 0; }
.search-suggestions li { padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.search-suggestions li:last-child { border-bottom: 0; }
.search-suggestions a { color: var(--info); text-decoration: none; font-weight: 600; }

/* Related-content blocks */
.related-block { margin: 40px 0; padding: 24px 0; border-top: 1px solid var(--line); }
.related-block h2 { font-size: 22px; margin: 0 0 16px 0; letter-spacing: -0.01em; }
.related-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.related-grid li { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; transition: background 0.15s; }
.related-grid a { display: block; padding: 14px 16px; text-decoration: none; color: var(--ink); }
.related-grid a:hover { background: var(--bg-panel); }
.related-grid strong { display: block; font-size: 14px; margin-bottom: 4px; line-height: 1.3; }
.related-excerpt { display: block; font-size: 12px; color: var(--ink-3); line-height: 1.4; }

/* Equipment finder quiz */
.finder-page { max-width: 900px; }
.finder-hero { padding: 28px 0 32px 0; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.finder-hero h1 { font-size: 36px; margin: 0 0 12px 0; letter-spacing: -0.01em; }
.finder-deck { font-size: 17px; color: var(--ink-3); max-width: 700px; margin: 0; }
.finder-app { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 28px 32px; margin-bottom: 32px; min-height: 400px; }
.finder-app h2 { font-size: 24px; margin: 16px 0 8px 0; letter-spacing: -0.01em; }
.finder-help { color: var(--ink-3); font-size: 14px; margin: 0 0 20px 0; }
.finder-progress { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.finder-progress-bar { height: 6px; background: var(--accent); border-radius: 3px; transition: width 0.3s; flex: 1; max-width: 70%; box-shadow: inset 0 0 0 1px var(--accent); }
.finder-progress::before { content: ''; display: block; height: 6px; background: var(--line-soft); border-radius: 3px; flex: 1; max-width: 70%; }
.finder-progress { position: relative; }
.finder-progress::before { position: absolute; left: 0; top: 50%; right: 30%; transform: translateY(-50%); width: 70%; max-width: none; }
.finder-progress .finder-progress-bar { position: relative; z-index: 1; }
.finder-progress-label { font-size: 13px; color: var(--muted); font-weight: 600; margin-left: auto; }
.finder-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.finder-choices-narrow { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); max-width: 720px; }
.finder-choice { background: var(--bg-soft); border: 2px solid var(--line); border-radius: 8px; padding: 16px 18px; text-align: left; cursor: pointer; transition: border-color 0.15s, background 0.15s; font-family: inherit; color: var(--ink); display: flex; flex-direction: column; gap: 4px; }
.finder-choice:hover, .finder-choice:focus-visible { border-color: var(--accent); background: var(--accent-soft); }
.finder-choice strong { font-size: 15px; font-weight: 600; }
.finder-example { font-size: 12px; color: var(--ink-3); }
.finder-back { background: none; border: 0; color: var(--info); cursor: pointer; padding: 12px 0; font-size: 14px; margin-top: 16px; font-family: inherit; }
.finder-back:hover { text-decoration: underline; }

.finder-result-header { margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.finder-result-header h2 { font-size: 28px; margin: 0 0 8px 0; }
.finder-summary { font-size: 14px; color: var(--ink-3); margin: 0; }
.finder-result-section { margin: 24px 0; padding-bottom: 24px; border-bottom: 1px solid var(--line-soft); }
.finder-result-section h3 { font-size: 18px; margin: 0 0 12px 0; }
.finder-strong-link { font-size: 18px; color: var(--accent); font-weight: 600; text-decoration: none; }
.finder-strong-link:hover { text-decoration: underline; }
.finder-example-text { font-size: 13px; color: var(--muted); font-style: italic; }
.finder-note { font-size: 13px; padding: 10px 14px; background: var(--positive-soft); border-left: 3px solid var(--positive); border-radius: 0 4px 4px 0; }
.finder-disclosure { font-size: 12px; color: var(--muted); font-style: italic; margin: 8px 0; }
.finder-warning { font-size: 14px; padding: 12px 16px; background: var(--accent-soft); border-left: 3px solid var(--accent); border-radius: 0 4px 4px 0; }
.finder-cta-buttons { display: flex; flex-direction: column; gap: 10px; max-width: 460px; }
.finder-cta-buttons .btn { text-align: center; }
.finder-soft-note { font-size: 13px; color: var(--muted); margin: 12px 0 0 0; }
.finder-restart { background: none; border: 0; color: var(--info); cursor: pointer; padding: 16px 0 0 0; font-size: 14px; font-family: inherit; margin-top: 16px; }
.finder-restart:hover { text-decoration: underline; }
.finder-explainer { padding: 22px 24px; background: var(--bg-soft); border-radius: 8px; margin: 16px 0; }
.finder-explainer h2 { font-size: 18px; margin: 0 0 8px 0; }
.finder-explainer p { font-size: 14px; color: var(--ink-3); margin: 4px 0; }
.finder-explainer ul { padding-left: 22px; margin: 6px 0; }

/* Glossary alphabetical index */
.glossary-alpha { display: flex; flex-wrap: wrap; gap: 4px; padding: 12px 14px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px; margin: 16px 0 28px 0; font-size: 13px; }
.glossary-alpha a, .glossary-alpha span { min-width: 28px; text-align: center; padding: 6px 4px; border-radius: 4px; font-weight: 600; text-decoration: none; }
.glossary-alpha a { color: var(--info); background: #fff; border: 1px solid var(--info-soft); }
.glossary-alpha a:hover { background: var(--info-soft); }
.glossary-alpha-empty { color: var(--muted); opacity: 0.4; background: transparent; border: 1px solid transparent; }
.glossary-letter-group { margin: 24px 0; }
.glossary-letter-h { font-size: 28px; color: var(--accent); border-bottom: 2px solid var(--accent-soft); padding-bottom: 6px; margin: 28px 0 16px 0; letter-spacing: -0.02em; }

/* Auto-linked glossary terms in article body */
.autolink-glossary { color: var(--info); text-decoration: none; border-bottom: 1px dotted var(--info); }
.autolink-glossary:hover { background: var(--info-soft); border-bottom-color: transparent; padding: 0 2px; margin: 0 -2px; }

/* Glossary hover-card tooltips */
.glossary-tooltip {
  position: absolute;
  z-index: 1000;
  max-width: 360px;
  min-width: 240px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.5;
  pointer-events: auto;
}
.glossary-tooltip-title {
  font-weight: 600;
  font-size: 13px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.glossary-tooltip-def {
  color: var(--ink-3);
  margin-bottom: 8px;
}
.glossary-tooltip-link {
  display: inline-block;
  font-size: 13px;
  color: var(--info);
  text-decoration: none;
  font-weight: 600;
}
.glossary-tooltip-link:hover { text-decoration: underline; }
.glossary-tooltip[data-position="above"]::after,
.glossary-tooltip[data-position="below"]::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
}
.glossary-tooltip[data-position="above"]::after {
  bottom: -8px;
  border-top: 8px solid #fff;
}
.glossary-tooltip[data-position="below"]::after {
  top: -8px;
  border-bottom: 8px solid #fff;
}

/* Article meta (reading time + reviewed-recency) */
.article-meta { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: 13px; color: var(--muted); margin: 8px 0 14px 0; padding: 4px 0; }
.article-meta-read { font-weight: 600; }
.article-meta-divider { color: var(--line); }
.article-meta-reviewed { font-weight: 500; }
.article-meta-reviewed.fresh { color: var(--positive); }
.article-meta-reviewed.recent { color: var(--ink-3); }
.article-meta-reviewed.aging { color: var(--accent); }

/* Article auto-TOC */
.article-toc {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 22px;
  margin: 20px 0 28px 0;
  font-size: 14px;
}
.article-toc-title { display: block; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; font-weight: 700; }
.article-toc ol { list-style: decimal; padding-left: 20px; margin: 0; columns: 2; column-gap: 28px; }
.article-toc li { margin-bottom: 4px; break-inside: avoid; }
.article-toc a { color: var(--ink-3); text-decoration: none; }
.article-toc a:hover { color: var(--info); }
.article-toc a.current { color: var(--accent); font-weight: 600; }
@media (max-width: 700px) { .article-toc ol { columns: 1; } }

/* Equipment comparison tool */
.compare-equipment-page { max-width: 1200px; }
.compare-app {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px 28px;
  margin-bottom: 24px;
  min-height: 200px;
}
.compare-selectors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.compare-slot {
  border: 2px dashed var(--line);
  border-radius: 8px;
  padding: 14px;
  position: relative;
  min-height: 80px;
}
.compare-slot.filled {
  border: 2px solid var(--accent);
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.compare-slot-content { flex: 1; }
.compare-slot-title { font-weight: 600; font-size: 15px; color: var(--ink); margin-bottom: 4px; }
.compare-slot-link { font-size: 12px; color: var(--info); text-decoration: none; }
.compare-slot-remove { background: none; border: 0; cursor: pointer; font-size: 20px; color: var(--muted); padding: 4px 8px; }
.compare-slot-remove:hover { color: var(--danger); }
.compare-search { width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; background: #fff; }
.compare-results {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-top: 6px;
  max-height: 280px;
  overflow-y: auto;
  z-index: 10;
}
.compare-result-item {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
}
.compare-result-item:hover { background: var(--bg-soft); }
.compare-result-item strong { display: block; font-size: 14px; }
.compare-result-cat { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.compare-no-results { padding: 14px; color: var(--muted); font-size: 14px; text-align: center; }
.compare-hint { padding: 20px; background: var(--info-soft); border-left: 3px solid var(--info); border-radius: 0 6px 6px 0; font-size: 14px; color: var(--ink-3); }
.compare-table-wrap { margin-top: 8px; }
.compare-table-wrap h2 { font-size: 22px; margin: 0 0 16px 0; }
.compare-table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.compare-table th, .compare-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); font-size: 13px; }
.compare-table th:last-child, .compare-table td:last-child { border-right: 0; }
.compare-table thead th { background: var(--bg-panel); font-weight: 700; }
.compare-table thead a { color: var(--info); text-decoration: none; }
.compare-table tbody th { background: var(--bg-soft); font-weight: 600; color: var(--ink-3); font-size: 12px; }
.compare-table .muted { color: var(--muted); }
.compare-ctas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.compare-cta-block {
  padding: 14px 16px;
  background: var(--bg-soft);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.compare-cta-block strong { font-size: 14px; }
.btn-small { font-size: 13px; padding: 8px 14px; text-align: center; }

/* Recently-viewed widget (uses .related-block styles) */
.recently-viewed-block .related-grid li { background: var(--info-soft); }

/* Newsletter signup module */
.newsletter-banner {
  background: var(--bg-panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 48px 0;
}
.newsletter-banner-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
@media (max-width: 800px) {
  .newsletter-banner-content { grid-template-columns: 1fr; }
}
.newsletter-pitch h2 { font-size: 22px; margin: 0 0 8px 0; letter-spacing: -0.01em; }
.newsletter-pitch p { font-size: 14px; color: var(--ink-3); margin: 0; max-width: 460px; }
.newsletter-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}
.newsletter-fields { display: flex; gap: 8px; margin-bottom: 12px; }
.newsletter-form input[type="email"] {
  flex: 1;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 15px;
}
.newsletter-form button {
  padding: 11px 22px;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}
.newsletter-form button:hover { background: #92400e; }
.newsletter-form button:disabled { opacity: 0.6; cursor: not-allowed; }
.newsletter-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.5;
}
.newsletter-consent input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
}
.newsletter-consent a { color: var(--info); }
.newsletter-result {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
}
.newsletter-result.success {
  background: var(--positive-soft);
  color: var(--positive);
  border-left: 3px solid var(--positive);
}
.newsletter-result.error {
  background: var(--danger-soft);
  color: var(--danger);
  border-left: 3px solid var(--danger);
}

/* Print stylesheet */
@media print {
  /* Hide site chrome */
  .site-header,
  .site-footer,
  .newsletter-banner,
  .skip-to-main,
  .header-search,
  .header-search-results,
  .anchor-toc,
  .article-cta,
  .eq-cta,
  .cat-cta,
  .calc-widget,
  .application-form,
  .apply-cta,
  .calc-cta,
  .finder-app,
  .error-search,
  .error-tool-cta,
  .error-apply,
  .related-block,
  .archive-cta,
  .glossary-alpha,
  .glossary-tooltip,
  .speakable,
  .footer-grid,
  .footer-meta,
  .inline-cta,
  .site-cta,
  .btn,
  noscript {
    display: none !important;
  }

  /* Print-friendly typography */
  body {
    font-size: 11pt;
    line-height: 1.4;
    color: #000;
    background: #fff;
  }

  /* Show all content unhidden */
  details summary,
  details[open] summary { cursor: default; list-style: none; }
  details { border: none !important; padding: 0 !important; background: transparent !important; }
  details summary { font-weight: 700; margin-top: 12px; }
  details summary::before { content: 'Q: '; }
  details p::before { content: 'A: '; }

  /* Expand links to show URLs */
  a[href^="http"]:not(.no-print-url)::after {
    content: ' [' attr(href) ']';
    font-size: 9pt;
    color: #555;
    word-break: break-all;
  }

  /* But not internal anchors */
  a[href^="#"]::after { content: ''; }

  /* Page-break management */
  h1, h2, h3 { page-break-after: avoid; }
  table, figure, pre, blockquote { page-break-inside: avoid; }

  /* Tables for print */
  table {
    border-collapse: collapse !important;
    width: 100%;
  }
  th, td {
    border: 1px solid #999 !important;
    padding: 4px 8px !important;
  }

  /* Add print header */
  .site-content::before {
    content: 'Fund My Equipment | fundmyequipment.com';
    display: block;
    font-size: 9pt;
    color: #666;
    border-bottom: 1px solid #999;
    padding-bottom: 4px;
    margin-bottom: 16px;
  }
}

/* Byline */
.byline { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; margin: 12px 0 16px 0; padding: 10px 14px; background: var(--bg-soft); border-left: 3px solid var(--accent); border-radius: 0 6px 6px 0; font-size: 13px; color: var(--ink-3); }
.byline-by { font-weight: 600; }
.byline-by a { color: var(--info); text-decoration: none; }
.byline-by a:hover { text-decoration: underline; }
.byline-role { font-size: 12px; color: var(--muted); }
.byline-reviewed { margin-left: auto; font-size: 12px; color: var(--muted); }

/* Authors page */
.authors-page .article-hero { margin-bottom: 24px; }
.authors-intro { padding: 18px 22px; background: var(--info-soft); border-left: 4px solid var(--info); border-radius: 0 8px 8px 0; margin-bottom: 32px; }
.author-card { margin: 28px 0; padding: 22px 24px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px; }
.author-card h2 { font-size: 22px; margin: 0 0 4px 0; }
.author-role { font-size: 13px; color: var(--accent); font-weight: 600; letter-spacing: 0.02em; margin: 0 0 10px 0; }
.author-bio { font-size: 15px; color: var(--ink-3); margin: 0 0 10px 0; line-height: 1.6; }
.author-expertise { font-size: 13px; color: var(--ink-3); margin: 10px 0; }
.author-contact { font-size: 13px; color: var(--muted); margin: 8px 0 0 0; }
.author-contact a { color: var(--info); }
.authors-process, .authors-contact { margin: 32px 0; padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.authors-process h2, .authors-contact h2 { margin: 0 0 12px 0; font-size: 20px; }

/* 404 enhanced */
.error-hero { padding: 40px 0 32px 0; text-align: center; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.error-hero h1 { font-size: 42px; margin: 0 0 12px 0; }
.error-deck { font-size: 17px; color: var(--ink-3); max-width: 600px; margin: 0 auto 24px auto; }
.error-search { display: flex; gap: 8px; max-width: 500px; margin: 0 auto; }
.error-search input { flex: 1; padding: 12px 16px; border: 1px solid var(--line); border-radius: 6px; font-size: 16px; }
.error-search button { padding: 12px 24px; background: var(--accent); color: #fff; border: 0; border-radius: 6px; cursor: pointer; font-weight: 600; }
.error-recovery { margin: 32px 0; }
.error-recovery h2 { font-size: 20px; margin: 0 0 16px 0; }
.error-tool-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.error-tool-cta .btn { font-size: 14px; padding: 10px 18px; }
.error-apply { margin: 48px 0 32px 0; padding: 32px; background: var(--accent-soft); border: 1px solid var(--accent); border-radius: 8px; text-align: center; }
.error-apply h2 { margin: 0 0 8px 0; font-size: 24px; }
.error-apply p { margin: 0 0 16px 0; color: var(--ink-3); max-width: 600px; margin-left: auto; margin-right: auto; }

@media (max-width: 880px) {
  .header-search { flex: 1 1 100%; max-width: 100%; margin: 8px 0; order: 4; }
  .header-search-results { right: 70px; }
}

.equipment-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.equipment-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; }
.equipment-card a { display: block; padding: 16px 18px; text-decoration: none; color: var(--ink); }
.equipment-card a:hover { background: var(--bg-panel); }
.equipment-card h3 { font-size: 15px; margin: 0 0 8px 0; }
.equipment-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 12px; }
.equipment-card dt { color: var(--muted); }
.equipment-card dd { margin: 0; color: var(--ink-3); }

.apply-cta { background: var(--bg-panel); border: 1px solid var(--line); border-radius: 8px; padding: 32px; margin-top: 32px; }
.apply-cta h2 { margin-top: 0; }

.page-footer-meta { padding: 24px 0; margin-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.page-footer-meta a { color: var(--info); }

.dev-note { background: var(--accent-soft); padding: 12px 16px; border-left: 3px solid var(--accent); border-radius: 0 6px 6px 0; font-size: 14px; color: var(--ink-3); }

/* Footer */
.site-footer { background: #1f2937; color: #cbd5e1; padding: 48px 0 24px 0; margin-top: 80px; }
.site-footer h4 { color: #fff; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 12px 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; margin-bottom: 32px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid a { color: #94a3b8; text-decoration: none; font-size: 14px; line-height: 2; }
.footer-grid a:hover { color: #fff; }
.footer-meta { border-top: 1px solid #374151; padding-top: 20px; font-size: 13px; color: #94a3b8; }
.footer-meta a { color: #cbd5e1; }
.disclosure { margin: 0 0 8px 0; }
.copyright { margin: 0; }

@media (max-width: 768px) {
  .hero h1 { font-size: 32px; }
  .eq-hero h1, .cat-hero h1 { font-size: 28px; }
  .site-header .container { flex-wrap: wrap; }
  .primary-menu { order: 3; width: 100%; justify-content: flex-start; }
  .anchor-toc ol { flex-direction: column; }
}

/* 404 */
.site-404 { padding: 60px 0; max-width: 720px; margin: 0 auto; text-align: center; }
.site-404 form { display: flex; gap: 8px; justify-content: center; margin-top: 24px; }
.site-404 input[type=search] { padding: 12px 16px; border: 1px solid var(--line); border-radius: 6px; font-size: 16px; min-width: 280px; }
.site-404 button { padding: 12px 24px; background: var(--accent); color: #fff; border: 0; border-radius: 6px; cursor: pointer; font-size: 16px; }
