/* Jobsite Helpdesk — shared styles
   Adapted from Brevard Digital. Colorblind-safe (Okabe-Ito-inspired).
   - accent: #4af0a0 (cyan-green) — primary
   - accent2: #4a9ff0 (blue) — secondary
   - accent3/warning: #f0a04a (orange) — used instead of red
   - Symbols (✓ ✕) used alongside color, not in place of color
*/

:root {
  --bg: #0a0a0f;
  --surface: #12121a;
  --surface2: #1a1a26;
  --surface3: #222230;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);
  --text: #f0f0f5;
  --muted: #8888a0;
  --muted2: #5a5a70;
  --accent: #4af0a0;
  --accent2: #4a9ff0;
  --accent3: #f0a04a;
  --warning: #f0a04a;
  --readout-bg: #06080a;
  --readout-text: #6effb0;
  --glow: rgba(74,240,160,0.15);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Jobsite hash texture — caution-tape feel, very subtle */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    repeating-linear-gradient(
      45deg,
      transparent 0,
      transparent 24px,
      rgba(240,160,74,0.012) 24px,
      rgba(240,160,74,0.012) 48px
    );
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10,10,15,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.logo span { color: var(--accent); }
.logo-mark {
  width: 22px; height: 22px;
  background: var(--accent);
  border-radius: 5px;
  display: inline-block;
  position: relative;
  flex-shrink: 0;
}
.logo-mark::after {
  content: '';
  position: absolute;
  inset: 5px;
  border: 2px solid #0a0a0f;
  border-radius: 2px;
  border-top: none;
  border-left: none;
}

nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}

nav ul a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

nav ul a:hover { color: var(--text); }

.nav-cta {
  background: var(--accent);
  color: #000 !important;
  padding: 9px 18px;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: opacity 0.2s !important;
}
.nav-cta:hover { opacity: 0.85; }

/* HAMBURGER */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 102;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 101;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.nav-mobile.open { display: flex; }
.nav-mobile ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 0 32px;
}
.nav-mobile ul a {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  padding: 14px 0;
  text-align: center;
  width: 100%;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.nav-mobile ul a:hover { color: var(--accent); }

/* HERO */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 130px 32px 60px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 50% at 75% 40%, rgba(74,240,160,0.10) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 15% 80%, rgba(74,159,240,0.07) 0%, transparent 60%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 22px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.04em;
}
.hero-badge::before {
  content: '●';
  color: var(--accent);
  margin-right: 8px;
  font-size: 0.7em;
  vertical-align: middle;
}
.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
  max-width: 900px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 28px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-family: inherit;
  min-height: 48px;
}
.btn-primary {
  background: var(--accent);
  color: #000;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-secondary {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover { background: var(--surface3); }

/* INDUSTRY TOGGLE */
.industry-toggle-bar {
  position: sticky;
  top: 64px;
  z-index: 51;
  background: rgba(10,10,15,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 10px 32px;
}
.industry-toggle-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 6px;
}
.industry-btn {
  padding: 7px 18px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  font-family: inherit;
  min-height: 34px;
  letter-spacing: 0.01em;
}
.industry-btn:hover { color: var(--text); border-color: var(--border-strong); }
.industry-btn.active {
  background: var(--surface2);
  color: var(--text);
  border-color: var(--border-strong);
}

/* FILTER BAR */
.filter-bar {
  position: sticky;
  top: 119px;
  z-index: 50;
  background: rgba(10,10,15,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 14px 32px;
}
.filter-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.filter-bar-inner::-webkit-scrollbar { display: none; }
.filter-chip {
  padding: 8px 14px;
  border-radius: 100px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  font-family: inherit;
  min-height: 36px;
}
.filter-chip:hover { color: var(--text); border-color: var(--border-strong); }
.filter-chip.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

/* SECTION */
.section {
  padding: 60px 32px;
  position: relative;
}
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.section-header {
  margin-bottom: 36px;
}
.section-eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 10px;
}
.section h2 em {
  font-style: normal;
  color: var(--accent);
}
.section-sub {
  color: var(--muted);
  max-width: 640px;
  font-size: 1.05rem;
}

/* TOOL GRID */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 150px;
  position: relative;
  overflow: hidden;
}
.tool-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 40px -10px var(--glow);
}
.tool-card .tool-icon {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  flex-shrink: 0;
}
.tool-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.tool-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  flex: 1;
}
.tool-card .tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--surface2);
  color: var(--muted);
  border: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.tag.tag-calc { color: var(--accent); border-color: rgba(74,240,160,0.25); }
.tag.tag-chart { color: var(--accent2); border-color: rgba(74,159,240,0.25); }
.tag.tag-guide { color: var(--accent3); border-color: rgba(240,160,74,0.25); }
.tool-card.coming-soon { opacity: 0.55; pointer-events: none; }
.tool-card.coming-soon::after {
  content: 'Coming Soon';
  position: absolute;
  top: 16px; right: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--muted2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* CALCULATOR PAGE */
.calc-wrap {
  padding: 110px 24px 60px;
  max-width: 920px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.calc-breadcrumb {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 16px;
}
.calc-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}
.calc-breadcrumb a:hover { color: var(--accent); }
.calc-breadcrumb span { color: var(--muted2); margin: 0 6px; }

.calc-wrap h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 12px;
}
.calc-lede {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 28px;
  max-width: 720px;
}

.calc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  margin-bottom: 36px;
}

.calc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.calc-row.single { grid-template-columns: 1fr; }
.calc-row.triple { grid-template-columns: 1fr 1fr 1fr; }
.calc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.calc-field label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.calc-input,
.calc-select {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  width: 100%;
  min-height: 48px;
  transition: border-color 0.15s;
  appearance: none;
  -webkit-appearance: none;
}
.calc-input:focus,
.calc-select:focus {
  outline: none;
  border-color: var(--accent);
}
.calc-select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%238888a0' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* SEGMENTED CONTROL (big touch-target unit selectors) */
.seg {
  display: flex;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 4px;
  gap: 4px;
}
.seg button {
  flex: 1;
  padding: 10px 12px;
  background: none;
  border: none;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.15s;
  min-height: 40px;
}
.seg button.active {
  background: var(--accent);
  color: #000;
}
.seg button:not(.active):hover { color: var(--text); }

.calc-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.calc-actions .btn { flex: 1; }

/* RESULT — digital readout style */
.calc-result {
  margin-top: 24px;
  background: var(--readout-bg);
  border: 1px solid rgba(110,255,176,0.18);
  border-radius: 10px;
  padding: 22px;
  display: none;
}
.calc-result.show { display: block; }
.calc-result-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.calc-result-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--readout-text);
  line-height: 1;
  margin-bottom: 4px;
  text-shadow: 0 0 18px rgba(110,255,176,0.25);
}
.calc-result-unit {
  font-family: 'JetBrains Mono', monospace;
  color: var(--muted);
  font-size: 0.9rem;
}
.calc-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed rgba(110,255,176,0.15);
}
.calc-result-grid > div .calc-result-label { margin-bottom: 4px; }
.calc-result-grid > div .calc-result-value { font-size: 1.2rem; }
.calc-result-note {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(110,255,176,0.15);
  line-height: 1.5;
}

/* CONTENT BLOCKS */
.content-block {
  margin-bottom: 36px;
}
.content-block h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.content-block h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 22px 0 10px;
}
.content-block p { margin-bottom: 14px; color: #d0d0dc; }
.content-block ul, .content-block ol {
  margin: 0 0 14px 22px;
  color: #d0d0dc;
}
.content-block li { margin-bottom: 6px; }
.content-block code {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.92em;
  color: var(--accent);
}
.formula {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 14px 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  margin: 14px 0;
  color: var(--text);
  overflow-x: auto;
}

/* REFERENCE TABLES */
.ref-table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin: 14px 0;
}
.ref-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem;
  min-width: 480px;
}
.ref-table th, .ref-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.ref-table th {
  background: var(--surface2);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: sticky;
  top: 0;
}
.ref-table tr:nth-child(even) td { background: rgba(255,255,255,0.015); }
.ref-table tr:hover td { background: rgba(74,240,160,0.04); }

/* FAQ */
.content-block { counter-reset: faq; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  counter-increment: faq;
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.faq-q::before {
  content: counter(faq);
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(74,240,160,0.1);
  border: 1px solid rgba(74,240,160,0.3);
  border-radius: 4px;
  padding: 2px 7px;
  flex-shrink: 0;
  margin-top: 3px;
}
.faq-a { color: #aaaaaa; padding-left: 38px; line-height: 1.7; font-size: 0.9rem; }

/* RELATED TOOLS */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.related-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.15s;
  font-size: 0.95rem;
}
.related-card:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.related-card strong {
  display: block;
  margin-bottom: 4px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
}
.related-card span {
  color: var(--muted);
  font-size: 0.85rem;
}

/* AD SLOT placeholders (filled by AdSense post-approval) */
.ad-slot {
  margin: 28px 0;
  padding: 14px;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
  text-align: center;
  color: var(--muted2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* FOOTER */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 50px 32px 28px;
  margin-top: 60px;
  position: relative;
  z-index: 1;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 36px;
  margin-bottom: 36px;
}
.footer-col h4 {
  font-family: 'Syne', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}
.footer-col p { color: var(--muted); font-size: 0.9rem; line-height: 1.55; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--accent); }
.email-form {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}
.email-form input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  min-height: 42px;
}
.email-form input:focus { outline: none; border-color: var(--accent); }
.email-form button {
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 6px;
  padding: 0 16px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  min-height: 42px;
  white-space: nowrap;
}
.email-form button:hover { opacity: 0.88; }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted2);
  font-size: 0.85rem;
  font-family: 'JetBrains Mono', monospace;
}

/* PROSE PAGES (about/privacy/terms/contact) */
.prose-wrap {
  padding: 130px 28px 60px;
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.prose-wrap h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.prose-wrap .lede {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 32px;
}
.prose-wrap h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 32px 0 12px;
  letter-spacing: -0.01em;
}
.prose-wrap p { color: #d0d0dc; margin-bottom: 14px; }
.prose-wrap ul { color: #d0d0dc; margin: 0 0 14px 22px; }
.prose-wrap li { margin-bottom: 6px; }
.prose-wrap a { color: var(--accent); }

/* MOBILE */
@media (max-width: 768px) {
  nav { padding: 14px 20px; }
  nav ul { display: none; }
  .nav-hamburger { display: flex; }
  .nav-cta { display: none; }
  .hero { padding: 110px 20px 50px; min-height: 60vh; }
  .section { padding: 44px 20px; }
  .filter-bar { padding: 12px 20px; top: 56px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  footer { padding: 40px 20px 24px; }
  .calc-wrap { padding: 100px 18px 50px; }
  .calc-card { padding: 20px; }
  .calc-row, .calc-row.triple { grid-template-columns: 1fr; }
  .prose-wrap { padding: 110px 20px 50px; }
  .email-form { flex-direction: column; }
  .email-form button { width: 100%; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 1.9rem; }
  .seg button { padding: 10px 6px; font-size: 0.78rem; }
}

/* COPY RESULT BUTTON */
.copy-result-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid rgba(110,255,176,0.25);
  border-radius: 6px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  padding: 5px 10px;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.15s;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.copy-result-btn:hover { color: var(--readout-text); border-color: rgba(110,255,176,0.5); }
.copy-result-btn.copied { color: var(--accent); border-color: var(--accent); }

/* WARNING BLOCK */
.calc-warning {
  background: rgba(240,160,74,0.08);
  border: 1px solid rgba(240,160,74,0.3);
  border-left: 3px solid var(--warning);
  border-radius: 6px;
  padding: 12px 16px;
  color: var(--warning);
  font-size: 0.9rem;
  margin-top: 12px;
  display: none;
  font-family: 'JetBrains Mono', monospace;
}
.calc-warning.show { display: block; }

/* GUIDE PAGE */
.guide-wrap {
  padding: 110px 24px 60px;
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.guide-wrap h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 12px;
}
.guide-lede {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 36px;
  max-width: 720px;
}
.guide-wrap .content-block { margin-bottom: 40px; }
.guide-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 36px;
}
.guide-toc h2 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 12px;
}
.guide-toc ol {
  margin: 0 0 0 18px;
  color: var(--muted);
  font-size: 0.95rem;
}
.guide-toc li { margin-bottom: 4px; }
.guide-toc a { color: var(--accent2); text-decoration: none; }
.guide-toc a:hover { text-decoration: underline; }

/* PRINT STYLESHEET */
@media print {
  body::before { display: none; }
  nav, .nav-mobile, .filter-bar, .hero, .ad-slot,
  .calc-actions, footer, .related-grid, .hero-actions,
  .copy-result-btn, .btn, .email-form { display: none !important; }
  body { background: #fff; color: #111; font-size: 12pt; }
  .calc-wrap, .guide-wrap, .prose-wrap {
    padding: 20px 0;
    max-width: 100%;
    margin: 0;
  }
  h1, h2, h3 { color: #111; font-family: sans-serif; }
  .calc-result {
    background: #f5f5f5;
    border: 1px solid #999;
    color: #111;
  }
  .calc-result-value { color: #006633; text-shadow: none; }
  .calc-result-label, .calc-result-unit, .calc-result-note { color: #555; }
  .ref-table th { background: #e0e0e0; color: #333; }
  .ref-table td { color: #111; }
  .formula { background: #f0f0f0; border-left: 3px solid #333; color: #111; }
  .content-block p, .content-block li { color: #222; }
  .faq-q { color: #111; }
  .faq-q::before { color: #333; border-color: #333; background: #e0e0e0; }
  .faq-a { color: #333; }
  a { color: #006633; }
  .calc-breadcrumb { color: #555; }
  .tag { border: 1px solid #ccc; color: #555; background: #f5f5f5; }
}
