/* CollectiveBargainingAgreement.com — design system
   Ledger-green legal-reference identity. Light-first, full dark support. */

:root {
  --paper: #F8F7F2;
  --card: #FFFFFF;
  --tint: #E9EFE9;
  --ink: #1A211C;
  --soft: #515E56;
  --faint: #85908A;
  --line: #DCDED4;
  --line2: #B9BFB2;
  --green: #1E5C45;
  --green-deep: #143D2E;
  --green-ink: #1E5C45;
  --on-green: #F3F5EE;
  --gold: #9A7B2D;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111614;
    --card: #181E1A;
    --tint: #1C2620;
    --ink: #E8EAE3;
    --soft: #A9B3AA;
    --faint: #78827A;
    --line: #2A322C;
    --line2: #3D463F;
    --green: #2E7A5C;
    --green-deep: #24614A;
    --green-ink: #6FBF9A;
    --on-green: #F3F5EE;
    --gold: #C9A85C;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Charter", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.0625rem;
  line-height: 1.68;
}
img, svg { max-width: 100%; }

/* ---------- type ---------- */
.sans, nav, .eyebrow, .btn, th, .tag, .crumb, .toclabel, footer .cols a, .sitefoot small {
  font-family: "Avenir Next Condensed", "Helvetica Neue", "Arial Narrow", Arial, sans-serif;
}
h1, h2, h3, .logo {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  line-height: 1.12;
  text-wrap: balance;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); margin: .4rem 0 1rem; font-weight: 700; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); margin: 2.6rem 0 .8rem; font-weight: 700; }
h3 { font-size: 1.15rem; margin: 1.8rem 0 .5rem; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--green-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--green-deep); }
strong { color: var(--ink); }
.lede { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--soft); max-width: 46rem; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; font-weight: 600;
  color: var(--gold); margin: 0 0 .4rem;
}
.small, small { font-size: .85rem; color: var(--faint); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* ---------- shell ---------- */
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
.article { max-width: 46rem; }
.wide { max-width: 60rem; }

header.site {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.navrow { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; padding: .9rem 0; }
.logo {
  display: flex; align-items: baseline; gap: .5rem; text-decoration: none; color: var(--ink);
  font-weight: 700; font-size: 1.05rem; white-space: nowrap;
}
.logo .mark {
  display: inline-grid; place-items: center;
  width: 1.9rem; height: 1.9rem; border-radius: .35rem;
  background: var(--green); color: var(--on-green);
  font-size: 1.15rem; transform: translateY(.32rem);
}
.logo span.tld { color: var(--faint); font-weight: 400; }
nav.main { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; margin-left: auto; }
nav.main a {
  text-decoration: none; color: var(--soft); text-transform: uppercase;
  letter-spacing: .08em; font-size: .78rem; font-weight: 600; padding: .3rem 0;
}
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--green-ink); }
nav.main a.cta {
  background: var(--green); color: var(--on-green); padding: .5rem .9rem; border-radius: .3rem;
}
nav.main a.cta:hover { background: var(--green-deep); color: var(--on-green); }

.crumb { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin: 1.6rem 0 0; }
.crumb a { color: var(--faint); text-decoration: none; }
.crumb a:hover { color: var(--green-ink); }

main { padding: 1rem 0 4rem; }
.hero { padding: 2.2rem 0 1rem; }

/* ---------- components ---------- */
.btn {
  display: inline-block; background: var(--green); color: var(--on-green);
  text-decoration: none; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  font-size: .82rem; padding: .8rem 1.3rem; border-radius: .3rem; border: 0; cursor: pointer;
}
.btn:hover { background: var(--green-deep); color: var(--on-green); }
.btn.ghost { background: transparent; color: var(--green-ink); border: 1px solid var(--line2); }
.btn.ghost:hover { border-color: var(--green); }

.callout {
  background: var(--tint); border-left: 3px solid var(--green);
  padding: 1rem 1.2rem; margin: 1.4rem 0; border-radius: 0 .3rem .3rem 0;
}
.callout .eyebrow { color: var(--green-ink); margin-bottom: .3rem; }
.callout p:last-child { margin: 0; }

.statband {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: .4rem; overflow: hidden; margin: 1.8rem 0;
  font-variant-numeric: tabular-nums;
}
.statband > div { background: var(--card); padding: 1rem 1.1rem; }
.statband b {
  display: block; font-size: 1.7rem; line-height: 1.1; color: var(--green-ink);
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
}
.statband span { font-size: .85rem; color: var(--soft); }

.cardgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: .4rem;
  padding: 1.1rem 1.2rem;
}
.card h3 { margin: 0 0 .4rem; font-size: 1.05rem; }
.card p { font-size: .92rem; color: var(--soft); margin: 0 0 .5rem; }
.card .sample {
  font-size: .82rem; color: var(--soft); background: var(--tint);
  border-radius: .3rem; padding: .6rem .8rem; font-style: italic; margin: .6rem 0 0;
}
.card a { font-size: .85rem; }

.ctaband {
  background: var(--green); color: var(--on-green); border-radius: .5rem;
  padding: clamp(1.4rem, 3vw, 2.2rem); margin: 3rem 0 1rem;
}
.ctaband h2 { color: var(--on-green); margin: 0 0 .5rem; }
.ctaband p { color: var(--on-green); opacity: .88; max-width: 44rem; }
.ctaband .btn { background: var(--paper); color: var(--green-deep); }
.ctaband .btn:hover { background: var(--card); color: var(--green-deep); }
.ctaband a.plain { color: var(--on-green); }

.tablewrap { overflow-x: auto; margin: 1.4rem 0; border: 1px solid var(--line); border-radius: .4rem; }
table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: .95rem; background: var(--card); font-variant-numeric: tabular-nums; }
th {
  text-align: left; text-transform: uppercase; letter-spacing: .07em; font-size: .72rem;
  color: var(--soft); background: var(--tint); border-bottom: 2px solid var(--line2);
  padding: .6rem .8rem;
}
td { border-bottom: 1px solid var(--line); padding: .6rem .8rem; vertical-align: top; }
tr:last-child td { border-bottom: 0; }

.toc {
  background: var(--card); border: 1px solid var(--line); border-radius: .4rem;
  padding: 1rem 1.2rem; margin: 1.6rem 0; font-size: .92rem;
}
.toclabel { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; color: var(--faint); font-weight: 600; }
.toc ol { margin: .5rem 0 0; padding-left: 1.2rem; columns: 2; column-gap: 2rem; }
.toc li { margin-bottom: .3rem; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
@media (max-width: 40rem) { .toc ol { columns: 1; } }

details.faq {
  border: 1px solid var(--line); border-radius: .4rem; background: var(--card);
  margin: 0 0 .7rem; padding: 0;
}
details.faq summary {
  cursor: pointer; font-weight: 700; padding: .9rem 1.1rem; list-style-position: inside;
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
}
details.faq[open] summary { border-bottom: 1px solid var(--line); }
details.faq .a { padding: .8rem 1.1rem 1rem; }
details.faq .a p:last-child { margin: 0; }

dl.gloss { margin: 1.5rem 0; }
dl.gloss dt {
  font-weight: 700; margin-top: 1.1rem;
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
}
dl.gloss dd { margin: .15rem 0 0; color: var(--soft); }

.pricegrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.2rem; margin: 2rem 0; align-items: stretch; }
.price {
  background: var(--card); border: 1px solid var(--line); border-radius: .5rem;
  padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column;
}
.price.hot { border: 2px solid var(--green); position: relative; }
.price .tag {
  position: absolute; top: -0.75rem; left: 1rem; background: var(--green); color: var(--on-green);
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
  padding: .2rem .6rem; border-radius: .25rem;
}
.price h3 { margin: 0 0 .2rem; }
.price .amount { font-size: 2rem; font-weight: 700; font-family: "Iowan Old Style", Palatino, Georgia, serif; color: var(--green-ink); }
.price .amount small { font-size: .95rem; color: var(--faint); font-weight: 400; }
.price ul { padding-left: 1.1rem; margin: .8rem 0 1.2rem; color: var(--soft); font-size: .93rem; }
.price li { margin-bottom: .45rem; }
.price .btn { margin-top: auto; text-align: center; }

form.lead { display: grid; gap: .9rem; max-width: 34rem; margin: 1.5rem 0; }
form.lead label { font-weight: 700; font-size: .9rem; display: block; margin-bottom: .25rem; }
form.lead input, form.lead select, form.lead textarea {
  width: 100%; padding: .7rem .8rem; border: 1px solid var(--line2); border-radius: .3rem;
  background: var(--card); color: var(--ink); font: inherit;
}
form.lead input:focus, form.lead select:focus, form.lead textarea:focus { outline: 2px solid var(--green); border-color: var(--green); }

.steps { counter-reset: st; list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 1rem; }
.steps li { counter-increment: st; display: grid; grid-template-columns: 2.6rem 1fr; gap: .9rem; }
.steps li::before {
  content: counter(st);
  display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--tint); color: var(--green-ink); font-weight: 700;
  font-family: "Avenir Next Condensed", "Arial Narrow", Arial, sans-serif;
}
.steps b { display: block; }
.steps span { color: var(--soft); font-size: .95rem; }

footer.sitefoot { border-top: 1px solid var(--line); background: var(--card); margin-top: 3rem; }
footer.sitefoot .cols {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1.5rem; padding: 2rem 0 1rem;
}
footer.sitefoot h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); margin: 0 0 .6rem; }
footer.sitefoot a { display: block; text-decoration: none; color: var(--soft); font-size: .85rem; margin-bottom: .4rem; }
footer.sitefoot a:hover { color: var(--green-ink); }
footer.sitefoot small { display: block; padding: 1rem 0 1.6rem; color: var(--faint); }
