/* California Grid Partners
   Deliberately plain, traditional styling for an older audience:
   large type, underlined blue links, square boxes, standard form controls,
   light theme only, no animation. */

:root {
  color-scheme: light;
  --ink: #1b1b1b;
  --muted: #454545;
  --bg: #ffffff;
  --gray: #f0f0f0;
  --line: #a9aeb1;
  --navy: #1a3a5c;
  --link: #0b4f9e;
  --link-visited: #54278f;
  --ok: #2e6b2e;
  --ok-bg: #ecf3ec;
  --err: #b50909;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: Arial, Helvetica, Verdana, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 18px/1.6 var(--sans); }
.wrap { max-width: 800px; margin: 0 auto; padding: 0 16px; }
.wrap.wide { max-width: 1000px; }

a { color: var(--link); text-decoration: underline; }
a:visited { color: var(--link-visited); }
a:hover { color: #08366d; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid #f5b400; outline-offset: 2px;
}
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.25; }
p { margin: 0 0 14px; }


/* ---------- Header ---------- */
header.site { background: var(--gray); border-bottom: 1px solid var(--line); }
header.site > .wrap:first-child {
  background: var(--navy); box-shadow: 0 0 0 100vmax var(--navy); clip-path: inset(0 -100vmax);
}
.top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px; padding: 14px 0; }
a.brand, a.brand:visited {
  display: flex; align-items: center; gap: 10px; margin-right: auto;
  color: #fff; text-decoration: none; font: bold 1.3rem var(--serif);
}
.brand svg { flex: none; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.nav a, .nav a:visited { color: #fff; font-weight: bold; padding: 4px 0; }
.nav a[aria-current] { text-decoration-thickness: 3px; }

/* ---------- Buttons ---------- */
.btn, .btn:visited {
  display: inline-block; background: var(--link); color: #fff; border: 2px solid var(--link);
  font: bold 1.05rem var(--sans); text-decoration: none; text-align: center;
  padding: 12px 22px; border-radius: 3px; cursor: pointer; min-height: 50px;
}
.btn:hover { background: #08366d; border-color: #08366d; color: #fff; }
.btn.small { padding: 7px 14px; min-height: 0; font-size: 0.95rem; background: #fff; color: var(--navy); border-color: #fff; }
.btn.small:hover { background: var(--gray); color: var(--navy); }
.btn.outline, .btn.ghost, .btn.outline:visited { background: #fff; color: var(--link); }
.btn.outline:hover, .btn.ghost:hover { background: #e8f0fa; color: #08366d; }
.btn.wide { flex: 1 1 220px; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

/* ---------- Page titles ---------- */
.hero, .page-head { padding: 26px 0 28px; }
.hero h1, .page-head h1 { margin: 0 0 10px; font-size: clamp(1.7rem, 5vw, 2.3rem); }
.hero h1 { max-width: 20em; }
.hero h1 em { font-style: normal; }
.hero p, .page-head p { margin: 0 0 16px; max-width: 40em; font-size: 1.05rem; }
.page-head p:last-child { margin-bottom: 0; }

/* ---------- Quick facts ---------- */
.facts { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.facts li { padding: 14px 10px; text-align: center; color: var(--muted); line-height: 1.35; border-left: 1px solid var(--line); }
.facts li:first-child { border-left: 0; }
.facts strong { display: block; font: bold 1.3rem var(--serif); color: var(--navy); }

/* ---------- Sections ---------- */
main { padding: 0; }
main.faq { padding-top: 26px; padding-bottom: 10px; }
.sec { padding: 34px 0; }
.sec.wrap { padding-left: 16px; padding-right: 16px; }
.sec.alt { background: var(--gray); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.prose { padding-bottom: 34px; }
.prose .sec { padding: 28px 0 0; }
.sec h2, .band h2, .card h2 { margin: 0 0 14px; font-size: 1.6rem; }
.sec h2 { border-bottom: 2px solid var(--navy); padding-bottom: 6px; }
.eyebrow { display: none; }
.cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: start; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid3.two { grid-template-columns: repeat(2, 1fr); }
.tile, .ok-card { background: #fff; border: 1px solid var(--line); padding: 16px; }
.tile h3 { margin: 0 0 6px; font-size: 1.15rem; }
.tile p, .ok-card p:last-child { margin: 0; }
a.tile, a.tile:visited { display: block; color: var(--ink); text-decoration: none; }
a.tile h3 { color: var(--link); text-decoration: underline; }
.more { font-weight: bold; }
.ok {
  background: var(--ok-bg); border: 2px solid var(--ok); border-left-width: 8px; color: #173d17;
  padding: 12px 14px; margin: 0 0 14px; font: bold 1.25rem/1.3 var(--sans);
}

.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.steps.vertical { grid-template-columns: 1fr; gap: 10px; }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); padding: 16px 16px 16px 62px; position: relative; }
.steps li::before {
  content: counter(s); position: absolute; left: 16px; top: 16px; width: 32px; height: 32px;
  background: var(--navy); color: #fff; font: bold 1.1rem/32px var(--serif); text-align: center;
}
.steps h3 { margin: 2px 0 4px; font-size: 1.15rem; }
.steps p { margin: 0; }
.checks { margin: 0; padding-left: 24px; }
.checks li { margin-bottom: 8px; }
.sources { margin: 0 0 14px; padding-left: 24px; columns: 2; }
.sources li { margin-bottom: 4px; }

/* ---------- Call-to-action band ---------- */
.band { background: #e8f0fa; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 32px 0; text-align: center; }
.band h2 { margin-bottom: 8px; }
.band p { margin: 0 0 18px; }

/* ---------- FAQ ---------- */
details { border: 1px solid var(--line); margin-bottom: 10px; background: #fff; }
summary { cursor: pointer; padding: 14px 16px; font: bold 1.15rem/1.35 var(--serif); color: var(--navy); background: var(--gray); }
details[open] summary { border-bottom: 1px solid var(--line); }
.a { padding: 16px; }
.a p:last-child, .a ul:last-child { margin-bottom: 0; }
.lead { font-weight: bold; }

/* ---------- Form ---------- */
.card { border: 1px solid var(--line); padding: 20px 18px; margin: 24px 0 0; background: #fff; }
.card > p { margin: 0 0 16px; }
.progress { display: flex; gap: 4px; margin: 0 0 6px; }
.progress span { flex: 1; height: 8px; background: #d6d6d6; }
.progress span.on { background: var(--navy); }
.stepcount { font-weight: bold; margin: 0 0 14px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.step[hidden] { display: none; }
.step h3 { font-size: 1.35rem; margin: 0 0 16px; }
.field { margin: 0 0 18px; }
.field > label, .field > .label { display: block; font-weight: bold; margin: 0 0 6px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
input[type=text], input[type=tel], input[type=email], select {
  width: 100%; font: 1.05rem var(--sans); color: var(--ink); background: #fff;
  border: 2px solid #565c65; border-radius: 0; padding: 10px; min-height: 48px;
}
.choices { display: grid; gap: 6px; }
.choices label { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.choices input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--link); }
.choices label:has(input:checked) { background: #e8f0fa; border-color: var(--link); font-weight: bold; }
.err { color: var(--err); font-weight: bold; margin: 6px 0 0; }
.invalid { border-left: 5px solid var(--err); padding-left: 12px; }
.invalid input[type=text], .invalid input[type=tel], .invalid input[type=email], .invalid select { border-color: var(--err); }
.note { background: #fff8e1; border-left: 6px solid #f5b400; padding: 10px 12px; margin: -6px 0 18px; }
.consent { font-size: 0.85rem; color: var(--muted); margin: 16px 0 0; line-height: 1.5; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Booking ---------- */
.bookstep { margin-top: 24px; }
.cal { border: 1px solid var(--line); margin: 0; min-height: 640px; background: #fff; }
.cal iframe { display: block; width: 100%; min-height: 640px; border: 0; }
.backlink { margin: 22px 0 0; }

/* ---------- Footer ---------- */
footer.wrap { padding: 22px 16px 36px; margin-top: 34px; border-top: 3px solid var(--navy); font-size: 0.88rem; color: var(--muted); }
.band + footer.wrap { margin-top: 0; border-top: 0; }
.footnav { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 14px; font-size: 1rem; }

@media (max-width: 760px) {
  .cols, .grid3, .grid3.two, .steps { grid-template-columns: 1fr; }
  .nav { order: 3; width: 100%; }
  a.brand { font-size: 1.1rem; }
  .sources { columns: 1; }
}
@media (max-width: 420px) {
  .row { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .facts li { border-left: 0; border-top: 1px solid var(--line); }
  .facts li:first-child { border-top: 0; }
}

/* ---------- References ---------- */
.refhead { font-size: 1.15rem; margin: 18px 0 6px; }
.refs { margin: 0; padding-left: 24px; }
.refs li { margin-bottom: 6px; overflow-wrap: anywhere; }
