/* CollectiveBargainingAgreement.com — White/Blue design system
   DRY tokenized styles shared across all pages. */

@import url("https://fonts.googleapis.com/css2?family=Public+Sans:wght@400;500;600;700&family=Source+Serif+4:opsz,wght@8..60,500;8..60,600&display=swap");

:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-soft: #f5f2ea;
  --ink: #1c2433;
  --muted: #3d4657;
  --faint: #6b7280;
  --line: #e6e2d8;
  --line-strong: #d8d3c6;
  --brand: #1f4fc4;
  --brand-hover: #163890;
  --brand-soft: #e9effc;
  --ok: #178048;
  --ok-bg: #e8f5ee;
  --warn: #9a6a10;
  --warn-bg: #faf3e3;
  --dark-panel: #1c2433;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 8px 28px rgba(28, 36, 51, 0.07);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Public Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
::selection { background: #dbe5fb; color: inherit; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); text-decoration: underline; }

/* Typography */
h1, h2, h3, .logo {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.12;
  color: var(--ink);
}
h1 { font-size: clamp(2.2rem, 5.6vw, 3.4rem); margin: 0 0 1.1rem; }
h2 { font-size: clamp(1.7rem, 3.3vw, 2.2rem); margin: 2.8rem 0 .9rem; }
h3 { font-size: 1.22rem; margin: 0 0 .5rem; }
p { margin: 0 0 1rem; }
strong { color: var(--ink); }
.lede { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); line-height: 1.62; max-width: 46rem; }
.eyebrow, .toclabel, th, .tag, .crumb, .small, small, footer.sitefoot h4 {
  font-family: "Public Sans", ui-sans-serif, system-ui, sans-serif;
}
.eyebrow {
  font-size: .79rem;
  color: var(--brand);
  font-weight: 600;
  letter-spacing: .06em;
  margin: 0 0 .6rem;
}
.small, small { font-size: .83rem; color: var(--faint); }

/* Layout primitives */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.article { max-width: 760px; }
.wide { max-width: 100%; }
main { padding: 1rem 0 4rem; }
.hero { padding: 2.6rem 0 1.3rem; }

/* Header / nav */
header.site {
  border-top: 3px solid var(--brand);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.navrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
}
.logo {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  color: var(--ink);
  font-size: 1.1rem;
  text-decoration: none;
}
.logo:hover { color: var(--ink); text-decoration: none; }
.logo .badge {
  font-family: "Public Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: .68rem;
  color: var(--faint);
  border-left: 1px solid var(--line-strong);
  padding-left: .6rem;
}
nav.main {
  display: flex;
  gap: 1.3rem;
  align-items: center;
  flex-wrap: wrap;
}
nav.main a {
  color: var(--muted);
  font-size: .9rem;
  text-decoration: none;
}
nav.main a:hover,
nav.main a[aria-current="page"] { color: var(--ink); text-decoration: none; }
nav.main a.cta {
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  padding: .62rem 1.08rem;
  border-radius: var(--radius-sm);
}
nav.main a.cta:hover { background: var(--brand-hover); color: #fff; }

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

/* Shared components */
.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  border: 0;
  border-radius: var(--radius-sm);
  padding: .84rem 1.35rem;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}
.btn:hover { background: var(--brand-hover); color: #fff; text-decoration: none; }
.btn.ghost {
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--line-strong);
}
.btn.ghost:hover { border-color: var(--brand); }

.pill {
  display: inline-block;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .32rem .7rem;
  font-size: .84rem;
  color: var(--muted);
}

.callout {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin: 1.4rem 0;
}
.callout .eyebrow { margin-bottom: .35rem; }
.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: var(--radius);
  overflow: hidden;
  margin: 1.8rem 0;
  font-variant-numeric: tabular-nums;
}
.statband > div { background: var(--surface); padding: 1rem 1.05rem; }
.statband b {
  display: block;
  font-size: 1.6rem;
  color: var(--brand);
  font-family: "Source Serif 4", Georgia, serif;
  line-height: 1.1;
}
.statband span { color: var(--muted); font-size: .86rem; }

.cardgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.1rem;
  margin: 1.55rem 0;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
}
.card p { color: var(--muted); font-size: .93rem; margin: 0 0 .55rem; }
.card .sample {
  font-size: .85rem;
  line-height: 1.55;
  color: var(--faint);
  background: var(--surface-soft);
  border-radius: var(--radius-sm);
  padding: .62rem .72rem;
  margin-top: .62rem;
}

.ctaband {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  margin: 2.6rem 0 1rem;
}
.ctaband h2 { margin-top: 0; }
.ctaband p { color: var(--muted); }
.ctaband a.plain { color: var(--brand); }

.tablewrap {
  overflow-x: auto;
  margin: 1.2rem 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  background: var(--surface);
  font-size: .95rem;
}
th {
  text-align: left;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--faint);
  background: var(--surface-soft);
  border-bottom: 1px solid var(--line-strong);
  padding: .66rem .84rem;
}
td {
  border-bottom: 1px solid var(--line);
  padding: .66rem .84rem;
  vertical-align: top;
}
tr:last-child td { border-bottom: 0; }

.toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
}
.toclabel {
  font-size: .75rem;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 600;
}
.toc ol { margin: .55rem 0 0; padding-left: 1.1rem; columns: 2; column-gap: 2rem; }
.toc li { margin-bottom: .36rem; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--brand); text-decoration: underline; }

details.faq {
  border-bottom: 1px solid var(--line);
  padding: .9rem 0;
}
details.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
}
details.faq .a {
  padding-top: .55rem;
  color: var(--muted);
  font-size: .95rem;
}

dl.gloss dt {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600;
  margin-top: 1.1rem;
}
dl.gloss dd { margin: .2rem 0 0; color: var(--muted); }

.pricegrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1rem;
  margin: 1.9rem 0;
}
.price {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.28rem;
  display: flex;
  flex-direction: column;
}
.price.hot {
  border: 2px solid var(--brand);
  position: relative;
}
.price .tag {
  position: absolute;
  top: -0.73rem;
  left: .9rem;
  background: var(--brand);
  color: #fff;
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .18rem .54rem;
  border-radius: 99px;
}
.price .amount {
  font-family: "Source Serif 4", Georgia, serif;
  color: var(--brand);
  font-size: 2rem;
  line-height: 1.15;
  margin-bottom: .55rem;
}
.price .amount small { color: var(--faint); font-size: .95rem; }
.price ul { padding-left: 1.05rem; margin: .65rem 0 1.1rem; color: var(--muted); font-size: .93rem; }
.price li { margin-bottom: .45rem; }
.price .btn { margin-top: auto; text-align: center; }

form.lead { display: grid; gap: .8rem; max-width: 36rem; margin: 1.35rem 0; }
form.lead label { font-size: .87rem; font-weight: 600; color: var(--muted); margin-bottom: .22rem; display: block; }
form.lead input,
form.lead select,
form.lead textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: .74rem .8rem;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}
form.lead textarea { resize: vertical; }
form.lead input:focus,
form.lead select:focus,
form.lead textarea:focus {
  outline: 2px solid #9cb6f7;
  border-color: var(--brand);
}

.steps {
  counter-reset: st;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  border-top: 1px solid var(--line);
}
.steps li {
  counter-increment: st;
  display: grid;
  grid-template-columns: 64px 300px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.steps li::before {
  content: "0" counter(st);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.4rem;
  color: #b9b2a1;
}
.steps b { font-size: 1rem; font-weight: 600; }
.steps span { color: var(--muted); font-size: .93rem; }

/* DRY module tiles used on offer + pricing */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
  margin: 1.4rem 0;
}
.module {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}
.module h3 { font-size: 1.05rem; margin-bottom: .38rem; }
.module p { font-size: .9rem; color: var(--muted); margin: 0; }
.module-kicker {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .86rem;
  margin-bottom: .7rem;
}

footer.sitefoot {
  border-top: 1px solid var(--line);
  padding: 2.2rem 0 2.4rem;
  background: var(--bg);
}
footer.sitefoot .cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1.4rem;
}
footer.sitefoot h4 {
  margin: 0 0 .62rem;
  font-size: .72rem;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
}
footer.sitefoot a {
  display: block;
  color: var(--muted);
  font-size: .87rem;
  margin-bottom: .38rem;
  text-decoration: none;
}
footer.sitefoot a:hover { color: var(--brand); }
footer.sitefoot small {
  display: block;
  padding-top: 1rem;
  color: var(--faint);
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 900px) {
  .wrap { padding: 0 20px; }
  nav.main { gap: .9rem; }
  .steps li { grid-template-columns: 52px 1fr; }
  .steps b { grid-column: 2; }
  .steps span { grid-column: 2; }
}
@media (max-width: 700px) {
  .toc ol { columns: 1; }
  h1 { font-size: clamp(2rem, 7vw, 2.8rem); }
  .navrow { align-items: flex-start; }
  nav.main { width: 100%; }
}
