/* SalaryLab — shared styles. Option B: Light Editorial.
   Warm paper background, serif display headlines, hairline rules,
   one muted sage accent. System fonts only, no external dependencies. */
:root {
  --paper: #fdfdfa;
  --ink: #22303a;
  --heading: #1e2a32;
  --sage: #3d7a4a;
  --muted: #5a6a74;
  --muted-light: #7a8891;
  --lede: #4a5a64;
  --hairline: #e6e2d8;
  --hairline-light: #eee9dd;
  --card-border: #ddd8ca;
  --input-line: #b9b2a2;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 17px;
}
a { color: var(--sage); }
a:hover { text-decoration: underline; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--heading);
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 .6em;
}
h1 { font-size: 2.6rem; margin-bottom: 18px; }
h2 { font-size: 1.6rem; margin: 2.2em 0 .6em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
small, .small { font-size: .88rem; color: var(--muted-light); }
.small a { color: var(--muted-light); }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--hairline); }
.header-inner {
  max-width: 880px; margin: 0 auto; padding: 26px 24px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 40px; height: 40px; display: block; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.4rem; font-weight: 700; color: var(--heading); letter-spacing: -.01em;
}
.brand-name span { color: var(--sage); }
.site-nav { margin-left: auto; display: flex; gap: 26px; flex-wrap: wrap; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: .92rem; letter-spacing: .02em; }
.site-nav a:hover { color: var(--heading); text-decoration: none; }

/* Layout */
.wrap { max-width: 880px; margin: 0 auto; padding: 56px 24px 72px; }
.kicker {
  font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--sage); font-weight: 700; margin: 0 0 14px;
}
.lede { font-size: 1.18rem; color: var(--lede); max-width: 620px; }
.rule { border: none; border-top: 1px solid var(--hairline); margin: 40px 0; }
.hero { margin-bottom: 8px; }
.hero h1 { margin-bottom: 18px; }
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px; margin: 28px 0;
}
.card { border-top: 2px solid var(--heading); padding: 20px 2px 0; }
.card h3 { margin: 0 0 .4em; }
.card h3 a { color: var(--heading); text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card p { margin: 0; color: var(--muted); font-size: .96rem; }
.card a { color: var(--sage); }

/* Calculator */
.calc {
  border: 1px solid var(--card-border); border-radius: 4px;
  padding: 34px 36px; background: #fff; margin: 28px 0;
}
.calc label {
  display: block; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase;
  font-weight: 700; margin: 22px 0 6px; color: var(--heading);
}
.calc label:first-child { margin-top: 0; }
.calc input[type="number"], .calc input[type="text"], .calc input[type="email"], .calc input[type="tel"],
.calc select, .form input[type="text"], .form input[type="email"], .form input[type="tel"], .form input[type="number"], .form select {
  width: 100%; max-width: 440px; padding: 10px 2px; font-size: 1.05rem;
  border: none; border-bottom: 1px solid var(--input-line); border-radius: 0;
  background: transparent; color: var(--heading); font-family: inherit;
}
.calc input:focus, .form input:focus, .form select:focus {
  outline: none; border-bottom-color: var(--sage);
}
.field-hint { font-size: .88rem; color: var(--muted-light); margin-top: 6px; }
.radio-group { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.radio-group label { font-weight: 400; margin: 0; display: flex; gap: 6px; align-items: center; color: var(--ink); text-transform: none; letter-spacing: 0; font-size: 1rem; }
.btn {
  display: inline-block; background: var(--heading); color: #fff; border: none; cursor: pointer;
  font-size: .98rem; font-weight: 600; letter-spacing: .02em;
  padding: 13px 28px; border-radius: 3px; margin-top: 26px; text-decoration: none;
}
.btn:hover { background: #16222a; text-decoration: none; }
.btn-secondary {
  background: transparent; color: var(--heading);
  border: 1px solid var(--heading);
}
.btn-secondary:hover { background: var(--heading); color: #fff; }
.results { margin-top: 22px; border-top: 1px solid var(--hairline); padding-top: 16px; }
.results[hidden] { display: none; }
.big-result {
  font-family: var(--serif); font-size: 2.6rem; font-weight: 700;
  color: var(--sage); margin: 6px 0 2px;
}
.big-result span {
  font-size: 1rem; font-family: var(--sans); font-weight: 400; color: var(--muted);
}
table { border-collapse: collapse; width: 100%; margin: 18px 0; font-size: .98rem; }
th, td { text-align: left; padding: 10px 4px; border-bottom: 1px solid var(--hairline-light); }
th { color: var(--heading); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.total td { font-weight: 700; border-top: 1px solid var(--heading); }
.note {
  border-left: 3px solid var(--sage); padding: 4px 0 4px 18px;
  margin: 28px 0; font-size: .95rem; color: var(--lede);
}
.note p:last-child { margin-bottom: 0; }
.affiliate-note { font-size: .86rem; color: var(--muted); }
.error { color: #a10000; font-weight: 600; font-size: .92rem; margin-top: 4px; }
.error[hidden] { display: none; }
.success {
  border-left: 3px solid var(--sage); padding: 4px 0 4px 18px;
  margin: 28px 0; font-size: .95rem; color: var(--lede);
}
.success[hidden] { display: none; }
.checkbox-line { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 1rem; }
.checkbox-line input { margin-top: 4px; flex-shrink: 0; }
.link-list { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 40px; }
.link-list li { padding: 8px 0; border-bottom: 1px solid var(--hairline-light); break-inside: avoid; }
.link-list a { color: var(--sage); text-decoration: none; }
.link-list a:hover { text-decoration: underline; }
.breadcrumbs { font-size: .88rem; color: var(--muted-light); margin-bottom: 14px; }
.breadcrumbs a { color: var(--muted-light); }

/* Footer */
.site-footer { border-top: 1px solid var(--hairline); }
.footer-inner { max-width: 880px; margin: 0 auto; padding: 32px 24px 44px; font-size: .88rem; color: var(--muted-light); }
.footer-inner a { color: var(--muted-light); }
.footer-nav { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 10px; }
.footer-nav a { color: var(--muted); font-weight: 400; text-decoration: none; }
.footer-nav a:hover { color: var(--heading); }

/* Cookie banner */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--heading); color: #fdfdfa; padding: 14px 20px;
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap; justify-content: center;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: .92rem; flex: 1 1 320px; }
.cookie-banner .btn { margin-top: 0; padding: 9px 16px; font-size: .92rem; }
.cookie-banner .btn-ghost { background: transparent; border: 1px solid #fff; color: #fff; }
.cookie-banner .btn-ghost:hover { background: #fff; color: var(--heading); }

@media (max-width: 640px) {
  body { font-size: 16px; }
  h1 { font-size: 2rem; }
  .wrap { padding: 36px 20px 56px; }
  .calc { padding: 24px 20px; }
  .link-list { columns: 1; }
  .big-result { font-size: 2rem; }
  th, td { padding: 8px 6px; }
}
