/* ==========================================================================
   Civis marketing plan, September 2026 to February 2027

   Tokens are the ones read off civisanalytics.com for sites/ai-services, not
   invented here. See sites/ai-services/README.md for how each was measured.

     body text   #4D768D        headings   #215470 navy, weight 700
     label       #2E7CAD        16px/700 uppercase, normal tracking
     buttons     pill 999px, #F1A137 on #0A2138, 12px 24px
     card        #fff, radius 16px, 1px solid #E6E6E6, no shadow
     dark card   solid #215470, white text
     alt band    #F3F4F6        footer/night #0A2138

   House rules carried over, and they are the point of this file:
     Cards get a hairline border and nothing else. No coloured left edges,
     no top stripes, no filled chips, no drop shadows.
     Amber is used where the live site uses it: buttons, small icons, and
     the footer section rule. It is never a border, background, or chip.
     Headings are 700. The site never uses 900.

   Type runs one step larger than the live site throughout. This is read on
   a laptop in a meeting, so the floor for body copy is 18px and the tables
   are set at 17px rather than the 15px a marketing page would use.
   ========================================================================== */

/* ---------- Lato, local ---------- */
@font-face { font-family:'Lato'; font-weight:300; font-style:normal; src:url('../assets/fonts/Lato-Light.ttf') format('truetype'); font-display:swap; }
@font-face { font-family:'Lato'; font-weight:400; font-style:normal; src:url('../assets/fonts/Lato-Regular.ttf') format('truetype'); font-display:swap; }
@font-face { font-family:'Lato'; font-weight:400; font-style:italic;  src:url('../assets/fonts/Lato-Italic.ttf') format('truetype'); font-display:swap; }
@font-face { font-family:'Lato'; font-weight:700; font-style:normal; src:url('../assets/fonts/Lato-Bold.ttf') format('truetype'); font-display:swap; }
@font-face { font-family:'Lato'; font-weight:900; font-style:normal; src:url('../assets/fonts/Lato-Black.ttf') format('truetype'); font-display:swap; }

:root {
  --navy:    #215470;
  --night:   #0A2138;
  --body:    #4D768D;
  --label:   #2E7CAD;
  --amber:   #F1A137;
  --line:    #E6E6E6;
  --alt:     #F3F4F6;
  --radius:  16px;
  --maxw:    1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  background: #fff;
  color: var(--body);
  font-family: 'Lato', Arial, sans-serif;
  font-size: 19px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--label); outline-offset: 3px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }
.narrow { max-width: 880px; }

h1, h2, h3, h4 { color: var(--navy); font-weight: 700; margin: 0; }
h1 { font-size: 60px; line-height: 1.1; letter-spacing: -.02em; }
h2 { font-size: 42px; line-height: 1.2; }
h3 { font-size: 24px; line-height: 1.3; }
h4 { font-size: 20px; line-height: 1.35; }

p { margin: 0 0 18px; }
p:last-child { margin-bottom: 0; }
strong, b { font-weight: 700; color: var(--navy); }

section { padding: 84px 0; scroll-margin-top: 84px; }
section.alt { background: var(--alt); }

/* Section eyebrow. Blue uppercase text, the site's own label idiom. */
.label {
  color: var(--label);
  font-size: 16px; font-weight: 700; text-transform: uppercase;
  margin-bottom: 12px;
}
.sec-head { max-width: 880px; margin-bottom: 44px; }
.sec-head h2 { margin-bottom: 18px; }
.sec-head p { font-size: 21px; line-height: 1.55; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; cursor: pointer; border: 0;
  font-family: inherit; font-size: 16px; font-weight: 700;
  padding: 12px 24px; border-radius: 999px;
  transition: background .15s ease, color .15s ease;
}
.btn-amber { background: var(--amber); color: var(--night); }
.btn-amber:hover { background: #e79429; }
.btn-outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ---------- Top bar and anchor nav ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.topbar img { height: 30px; }
.topbar .doc { font-size: 15px; font-weight: 700; color: var(--label); text-transform: uppercase; }
.jump { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.jump label { font-size: 15px; color: var(--body); }
.jump select {
  font: 400 15px 'Lato', Arial, sans-serif; color: var(--navy);
  padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; max-width: 300px;
}

/* ---------- Hero ---------- */
.hero { background: var(--night); color: #d7e3ea; padding: 92px 0 84px; }
.hero img.mark { height: 40px; margin-bottom: 40px; }
.hero h1 { color: #fff; max-width: 20ch; margin-bottom: 26px; text-wrap: balance; }
.hero p.lead { font-size: 23px; line-height: 1.5; max-width: 40em; color: #d7e3ea; }
.hero .meta {
  margin-top: 44px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.18);
  display: flex; gap: 48px; flex-wrap: wrap; font-size: 17px; color: #9db1bd;
}
.hero .meta b { display: block; color: #fff; font-weight: 700; font-size: 17px; margin-bottom: 2px; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; display: flex; flex-direction: column;
}
.card h3 { margin-bottom: 12px; }
.card p { font-size: 17px; line-height: 1.55; }
.card .kicker {
  display: block; font-size: 14px; font-weight: 700; text-transform: uppercase;
  color: var(--label); margin-bottom: 10px;
}
.card ul { margin: 0; padding-left: 20px; }
.card li { font-size: 17px; line-height: 1.5; margin-bottom: 9px; }
.card li:last-child { margin-bottom: 0; }

.card-dark { background: var(--navy); border-color: var(--navy); color: #cfdde6; }
.card-dark h3, .card-dark h4, .card-dark strong, .card-dark b { color: #fff; }
.card-dark .kicker { color: var(--amber); }
.card-dark li { color: #e4edf1; }

/* Numbers. Big navy figure, plain label under it, no card chrome games. */
.figs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.fig {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px;
}
.fig .n { font-size: 46px; line-height: 1; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.fig .n .u { font-size: 26px; font-weight: 700; }
.fig .l { font-size: 17px; line-height: 1.45; }
.fig .src { display: block; margin-top: 12px; font-size: 14px; line-height: 1.45; color: #7f9aab; }

/* ---------- Lesson blocks ---------- */
.lesson { display: grid; grid-template-columns: 88px 1fr; gap: 28px; align-items: start; padding: 34px 0; border-top: 1px solid var(--line); }
.lesson:last-of-type { border-bottom: 1px solid var(--line); }
.lesson .num { font-size: 46px; font-weight: 700; color: var(--amber); line-height: 1; }
.lesson h3 { margin-bottom: 12px; font-size: 27px; }
.lesson p { font-size: 18px; }
.lesson .so { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 17px; }
.lesson .so b { color: var(--navy); }

/* ---------- Calendar ----------
   Six columns, one per month, on a wider container than the rest of the page so
   the columns stay readable. Live events carry a small amber dot, which is the
   one place amber appears here outside a button, matching how the live site
   uses it on small icons. */
.cal-wide { max-width: 1340px; }
.cal { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.mon {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 18px; display: flex; flex-direction: column; gap: 14px;
}
.mon > h3 { font-size: 22px; margin: 0; }
.mon .sub { font-size: 14px; color: #7f9aab; margin: -10px 0 0; }
.item { border-top: 1px solid var(--line); padding-top: 12px; }
.item .t {
  display: block; font-size: 12.5px; font-weight: 700; text-transform: uppercase;
  color: var(--label); margin-bottom: 5px; letter-spacing: .02em;
}
.item .d { display: block; font-size: 16px; line-height: 1.3; color: var(--navy); font-weight: 700; }
.item .n { display: block; font-size: 15px; line-height: 1.42; margin-top: 5px; color: var(--body); font-weight: 400; }
.item.live .d { color: var(--navy); }
.item.live .t { color: var(--night); }
.item.live .t::after {
  content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--amber); margin-left: 7px; vertical-align: middle;
}
.callegend { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 26px; font-size: 16px; }
.callegend span { display: inline-flex; align-items: center; gap: 8px; }
.callegend i { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); display: inline-block; }

/* ---------- Tables ---------- */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 17px; }
th, td { text-align: left; padding: 15px 20px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.45; }
th { color: var(--navy); font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: .03em; background: var(--alt); }
tr:last-child td { border-bottom: 0; }
td strong { color: var(--navy); }
.num-cell { white-space: nowrap; font-weight: 700; color: var(--navy); }

/* ---------- Two-track split ---------- */
.tracks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.track { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.track.dark { background: var(--navy); border-color: var(--navy); color: #cfdde6; }
.track.dark h3, .track.dark strong { color: #fff; }
.track.dark .kicker { color: var(--amber); }
.track.dark dt { color: #fff; }
.track h3 { font-size: 28px; margin-bottom: 14px; }
.track dl { margin: 22px 0 0; }
.track dt { font-size: 15px; font-weight: 700; text-transform: uppercase; color: var(--label); margin-bottom: 4px; }
.track dd { margin: 0 0 18px; font-size: 17px; line-height: 1.5; }
.track dd:last-child { margin-bottom: 0; }

/* ---------- Decisions ---------- */
.dec { border-top: 1px solid var(--line); padding: 28px 0; display: grid; grid-template-columns: 56px 1fr; gap: 24px; }
.dec:last-of-type { border-bottom: 1px solid var(--line); }
.dec .num { font-size: 28px; font-weight: 700; color: var(--amber); line-height: 1.2; }
.dec h3 { font-size: 24px; margin-bottom: 10px; }
.dec p { font-size: 18px; }
.dec .ask { margin-top: 12px; font-size: 17px; }
.dec .ask b { color: var(--navy); }

/* ---------- Navy band ---------- */
.band { background: var(--navy); color: #d7e3ea; border-radius: 20px; padding: 56px 52px; }
.band h2 { color: #fff; margin-bottom: 18px; }
.band p { font-size: 19px; line-height: 1.6; }
.band .grid .card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.2); color: #d7e3ea; }
.band .grid .card h3, .band .grid .card strong { color: #fff; }
.band .grid .card .kicker { color: var(--amber); }
.band .grid .card li { color: #e4edf1; }

/* ---------- Notes / caveats ---------- */
.note {
  background: var(--alt); border-radius: var(--radius);
  padding: 26px 28px; font-size: 17px; line-height: 1.55;
}
.note b { color: var(--navy); }
.note + .note { margin-top: 16px; }

/* ---------- Footer ---------- */
footer { background: var(--night); color: #9db1bd; padding: 56px 0 40px; font-size: 16px; }
footer img { height: 34px; margin-bottom: 26px; }
footer h4 { color: var(--amber); font-size: 22px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.18); margin-bottom: 22px; }
footer p { line-height: 1.6; max-width: 70ch; }
footer .base { margin-top: 32px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); font-size: 15px; color: #7d919e; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .cal { grid-template-columns: repeat(3, 1fr); }
  .figs { grid-template-columns: repeat(2, 1fr); }
  .g4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1000px) {
  h1 { font-size: 46px; }
  h2 { font-size: 34px; }
  .g2, .g3, .tracks { grid-template-columns: 1fr; }
  .hero p.lead { font-size: 20px; }
  .band { padding: 40px 32px; }
}

@media (max-width: 720px) {
  body { font-size: 18px; }
  .wrap { padding: 0 20px; }
  section { padding: 56px 0; }
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  h3 { font-size: 22px; }
  .hero { padding: 56px 0 52px; }
  .hero .meta { gap: 24px; }
  .cal, .figs, .g4 { grid-template-columns: 1fr; }
  .lesson { grid-template-columns: 1fr; gap: 10px; padding: 26px 0; }
  .lesson .num { font-size: 34px; }
  .dec { grid-template-columns: 1fr; gap: 8px; }
  .jump { display: none; }
  .topbar-inner { gap: 16px; }
  .band { padding: 32px 22px; border-radius: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; }
}

@media print {
  .topbar { position: static; }
  section { padding: 32px 0; page-break-inside: avoid; }
}
