/* Long-form guides and templates (/pricing/snow-plowing,
   /templates/snow-plowing-contract). Same palette and type as the tools,
   compare and pricing hubs; tuned for reading. No scripts depend on it. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --surface-2: #161616;
  --border: #222222;
  --border-hover: #2f2f2f;
  --text: #e5e5e5;
  --body: #cfcfcf;
  --text-muted: #9a9a9a;
  --green: #84EA00;
  --green-dim: rgba(132, 234, 0, 0.1);
  --green-border: rgba(132, 234, 0, 0.25);
  --amber: #f5c451;
  --amber-dim: rgba(245, 196, 81, 0.08);
  --amber-border: rgba(245, 196, 81, 0.35);
  --radius: 16px;
  --radius-sm: 10px;
}

html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
a { color: var(--green); }
a:hover { text-decoration: none; }

/* Nav (the hubs' pattern) */
nav.site {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-logo { font-weight: 800; font-size: 20px; color: var(--green); text-decoration: none; letter-spacing: -0.5px; }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-links a.nav-cta { background: var(--green); color: #0a0a0a; padding: 8px 14px; border-radius: 8px; font-weight: 700; font-size: 13px; white-space: nowrap; }
.nav-links a.nav-cta:hover { opacity: 0.88; color: #0a0a0a; }

/* Article */
.article { max-width: 760px; margin: 0 auto; padding: 40px 24px 72px; }
.breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--green); }
.article h1 { font-size: clamp(30px, 5.2vw, 44px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; margin-bottom: 14px; }
.byline { font-size: 14px; color: var(--text-muted); margin-bottom: 26px; }
.byline strong { color: var(--text); font-weight: 600; }
.lead { font-size: 19px; color: var(--text); line-height: 1.6; margin-bottom: 22px; }
.article h2 { font-size: clamp(22px, 3.4vw, 28px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; margin: 48px 0 14px; scroll-margin-top: 76px; }
.article h3 { font-size: 18px; font-weight: 700; margin: 30px 0 8px; color: var(--text); }
.article p { color: var(--body); margin-bottom: 16px; }
.article ul, .article ol { color: var(--body); margin: 0 0 18px 22px; }
.article li { margin-bottom: 8px; }
.article strong { color: var(--text); }
.article p a, .article li a, .article td a { text-decoration: underline; text-underline-offset: 2px; }

/* Callouts */
.notice { background: var(--amber-dim); border: 1px solid var(--amber-border); border-radius: var(--radius-sm); padding: 16px 18px; margin: 0 0 24px; }
.notice p { margin: 0; color: var(--text); font-size: 15px; }
.notice p + p { margin-top: 8px; }
.callout { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px 20px; margin: 22px 0; }
.callout p:last-child { margin-bottom: 0; }

/* Downloads */
.downloads { background: var(--surface-2); border: 1px solid var(--green-border); border-radius: var(--radius); padding: 22px; margin: 0 0 26px; }
.downloads h2 { margin: 0 0 6px; font-size: 20px; }
.downloads p { font-size: 15px; margin-bottom: 14px; }
.dl-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.dl-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: var(--radius-sm); font-weight: 700; font-size: 15px; text-decoration: none; border: 1px solid var(--green); }
.dl-btn.primary { background: var(--green); color: #0a0a0a; }
.dl-btn.secondary { background: transparent; color: var(--green); }
.dl-btn small { font-weight: 500; font-size: 12px; opacity: 0.8; }
.dl-meta { font-size: 13px; color: var(--text-muted); margin: 0 !important; }
.toc { columns: 2; column-gap: 28px; font-size: 14px; margin: 10px 0 0 18px !important; }
.toc li { margin-bottom: 4px; break-inside: avoid; }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 18px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.data caption { text-align: left; font-size: 13px; color: var(--text-muted); padding: 10px 14px 0; }
table.data th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); background: var(--surface); padding: 10px 14px; font-weight: 600; }
table.data td { padding: 10px 14px; border-top: 1px solid var(--border); color: var(--body); vertical-align: top; }
table.data td.num, table.data th.num { text-align: right; white-space: nowrap; }
table.data td:first-child { min-width: 9em; }
table.data td.price { color: var(--text); font-weight: 600; min-width: 7.5em; }
table.data td.src { font-size: 13px; color: var(--text-muted); min-width: 150px; }
/* A group label row inside a table body (a region, an equipment class). */
table.data tr.group th { background: var(--surface-2); color: var(--text); text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 700; border-top: 1px solid var(--border); }
table.data td.note { font-size: 12.5px; color: var(--text-muted); }

/* Calculator */
.calc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin: 22px 0; }
.calc h3 { margin-top: 0; }
.calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 14px 0 6px; }
.calc label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.calc input { width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--bg); border: 1px solid var(--border-hover); border-radius: 8px; padding: 10px 12px; }
.calc input:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: transparent; }
.calc .hint { font-size: 12.5px; color: var(--text-muted); margin: 6px 0 0; }
.calc-out { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 18px 0; }
.calc-out div { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; }
.calc-out span { display: block; font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.calc-out strong { display: block; font-size: 24px; letter-spacing: -0.02em; margin-top: 2px; }
.calc-out em { display: block; font-style: normal; font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.calc-verdict { color: var(--text) !important; font-weight: 500; }
.ahead-seasonal { color: var(--amber); }
.ahead-push { color: var(--green); }
.ahead-even { color: var(--text-muted); }

/* CTA (the hubs' box, smaller) */
.cta-box { background: linear-gradient(135deg, rgba(132, 234, 0, 0.08) 0%, rgba(132, 234, 0, 0.02) 100%); border: 1px solid var(--green-border); border-radius: 20px; padding: 32px 26px; text-align: center; margin: 44px 0 32px; }
.cta-box h2 { margin: 0 0 10px !important; }
.cta-box p { max-width: 520px; margin: 0 auto 20px; }
.cta-btn { display: inline-block; background: var(--green); color: #0a0a0a; padding: 13px 28px; border-radius: var(--radius-sm); font-size: 16px; font-weight: 700; text-decoration: none; }
.cta-btn:hover { box-shadow: 0 4px 24px rgba(132, 234, 0, 0.25); }
.cta-note { font-size: 13px !important; color: var(--text-muted) !important; margin: 12px auto 0 !important; }

.related { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 10px 0 20px; }
.related a { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; text-decoration: none; color: var(--text); }
.related a:hover { border-color: var(--green-border); }
.related strong { display: block; margin-bottom: 4px; }
.related span { font-size: 14px; color: var(--text-muted); }

/* Sources and fine print */
.sources { font-size: 13.5px; color: var(--text-muted); }
.sources li { color: var(--text-muted); margin-bottom: 10px; }
.sources a { color: var(--text); word-break: break-word; }
.fine { font-size: 13.5px !important; color: var(--text-muted) !important; }
.nw { white-space: nowrap; }

footer.site { border-top: 1px solid var(--border); padding: 36px 20px; text-align: center; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-bottom: 16px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 13px; }
.footer-links a:hover { color: var(--green); }
.footer-copy { font-size: 12px; color: #666; }

@media (max-width: 640px) {
  nav.site { padding: 0 16px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .article { padding: 28px 16px 56px; }
  .lead { font-size: 17px; }
  .toc { columns: 1; }
  table.data { font-size: 13.5px; }
  table.data th, table.data td { padding: 9px 8px; }
  table.data td:first-child, table.data td.src { min-width: 0; }
  table.data td.price { min-width: 6em; }
  table.data th { font-size: 11px; letter-spacing: 0.03em; }
  .calc table.data th.num, .calc table.data td.num { white-space: normal; }
  .calc, .downloads { padding: 18px 16px; }
  .cta-box { padding: 26px 18px; }
}
