/* Phase1Cost: light only, no dark styles (project rule). System fonts only, so nothing to download.
   Contrast ratios are against white unless noted. */
:root {
  --ink: #1d2422;       /* body text, 15.6:1 */
  --green: #1f4d3a;     /* headings, buttons, rules, 9.9:1 */
  --green-dark: #143326;
  --link: #145c8c;      /* links, 6.9:1 */
  --muted: #4d5754;     /* secondary text, 7.4:1 (6.9:1 on --wash) */
  --wash: #f3f6f4;      /* panels */
  --rule: #cdd6d1;      /* decorative hairlines only */
  --field: #66706c;     /* form field borders, 4.9:1 */
  --bad: #a61b1b;
  --note: #fff8e6;
  --max: 68rem;
  --serif: Charter, "Bitstream Charter", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: #fff; }
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--green-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }

h1, h2, h3 { font-family: var(--serif); color: var(--green); font-weight: 700; line-height: 1.2; margin: 1.8em 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 4.4vw, 2.75rem); line-height: 1.13; margin-top: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); }
h3 { font-size: 1.15rem; margin-top: 1.4em; }
p, ul, ol, dl { margin: 0 0 1em; }
li { margin-bottom: 0.4em; }
strong { font-weight: 650; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 46rem; }
.section { padding-top: 2.5rem; padding-bottom: 3rem; }
.lead { font-size: 1.2rem; line-height: 1.55; color: #33403b; }
.muted { color: var(--muted); }
.small { font-size: 0.92rem; }

.skip { position: absolute; left: -999px; top: 0.5rem; background: #fff; color: var(--link); padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 0.5rem; }

/* Header */
.site-header { border-top: 4px solid var(--green); border-bottom: 1px solid var(--rule); background: #fff; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 2rem; padding-top: 0.9rem; padding-bottom: 0.9rem; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 1.4rem; color: var(--green); text-decoration: none; display: inline-flex; align-items: center; gap: 0.55rem; }
.brand:hover { color: var(--green-dark); }
.brand-mark { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 5px; background: var(--green); color: #fff; font-size: 1.05rem; }
.nav { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.3rem; margin: 0; padding: 0; align-items: center; font-size: 0.97rem; }
.nav li { margin: 0; }
.nav a { display: inline-block; padding: 0.4rem 0; color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--link); text-decoration: underline; }
.nav a[aria-current="page"] { color: var(--green); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
.nav a.nav-cta { background: var(--green); color: #fff; padding: 0.45rem 0.95rem; border-radius: 4px; font-weight: 600; }
.nav a.nav-cta:hover, .nav a.nav-cta[aria-current="page"] { background: var(--green-dark); color: #fff; text-decoration: none; }

/* Article */
.article-head { padding: 2.25rem 0 0.5rem; }
.updated { font-size: 0.92rem; color: var(--muted); margin-bottom: 1.25rem; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; gap: 3rem; align-items: start; }
.article > :first-child { margin-top: 0; }
.aside { position: sticky; top: 1rem; }
.box { background: var(--wash); border: 1px solid var(--rule); border-radius: 6px; padding: 1.1rem 1.2rem; margin-bottom: 1.25rem; }
.box h2 { font-size: 1.1rem; margin: 0 0 0.5rem; }
.box p:last-child, .box ul:last-child { margin-bottom: 0; }
.box ul { padding-left: 1.1rem; }
.answer { border-left: 5px solid var(--green); background: var(--wash); padding: 1rem 1.25rem; margin: 0 0 1.75rem; border-radius: 0 6px 6px 0; }
.answer p:last-child { margin-bottom: 0; }
.note { background: var(--note); border: 1px solid #e8d9a8; border-radius: 6px; padding: 0.9rem 1.1rem; margin: 1.25rem 0; }
.note p:last-child { margin-bottom: 0; }
.toc ol { padding-left: 1.2rem; margin: 0; font-size: 0.97rem; }
.toc li { margin-bottom: 0.25rem; }

/* Tables */
.table-scroll { overflow-x: auto; margin: 1rem 0 1.5rem; }
table { border-collapse: collapse; width: 100%; font-size: 0.97rem; }
caption { text-align: left; font-weight: 650; padding-bottom: 0.5rem; color: var(--ink); }
th, td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--rule); }
thead th { border-bottom: 2px solid var(--green); color: var(--green); font-size: 0.92rem; }
tbody th { font-weight: 600; }
td.num { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Sources */
.sources { font-size: 0.95rem; }
.sources li { margin-bottom: 0.6rem; }
.sources .pub { color: var(--muted); }

/* Buttons and CTA */
.button { display: inline-block; background: var(--green); color: #fff; border: 0; border-radius: 4px; padding: 0.7rem 1.3rem; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--green-dark); color: #fff; }
.button[disabled] { opacity: 0.6; cursor: wait; }
.cta { border: 2px solid var(--green); border-radius: 8px; padding: 1.25rem 1.4rem; margin: 2rem 0; }
.cta h2 { margin-top: 0; font-size: 1.35rem; }

/* Form */
form.quote { margin: 1.5rem 0; }
fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; }
legend { font-family: var(--serif); color: var(--green); font-weight: 700; font-size: 1.25rem; padding: 0; margin-bottom: 0.75rem; }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.2rem; }
.hint { display: block; color: var(--muted); font-size: 0.93rem; margin-bottom: 0.3rem; }
input[type=text], input[type=email], input[type=tel], select, textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--field); border-radius: 4px; padding: 0.55rem 0.65rem; min-height: 2.75rem; }
select { appearance: auto; }
textarea { min-height: 7rem; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--link); outline-offset: 1px; }
[aria-invalid="true"] { border-color: var(--bad); border-width: 2px; }
.error-text { color: var(--bad); font-weight: 600; font-size: 0.95rem; margin: 0.3rem 0 0; }
.req { color: var(--bad); }
fieldset.group { margin: 0 0 1.15rem; }
fieldset.group legend { font-family: inherit; color: inherit; font-size: inherit; font-weight: 600; margin-bottom: 0.2rem; }
.check { display: flex; align-items: flex-start; gap: 0.55rem; padding: 0.3rem 0; }
.check input { width: 1.25rem; height: 1.25rem; margin: 0.15rem 0 0; flex: none; accent-color: var(--green); }
.check label { font-weight: 400; margin: 0; }
fieldset.group.is-invalid { border: 2px solid var(--bad); border-radius: 4px; padding: 0.4rem 0.6rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5rem; margin: 0.75rem 0; font-weight: 600; }
.form-status.error { color: var(--bad); }
.form-status.busy { color: var(--muted); }
.cf-turnstile { margin: 0.5rem 0 1rem; min-height: 65px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); background: var(--wash); margin-top: 2rem; padding: 2rem 0 2.5rem; font-size: 0.95rem; }
.footer-nav { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; padding: 0; margin: 0 0 1rem; }
.footer-nav li { margin: 0; }
.fine { color: var(--muted); font-size: 0.88rem; }

@media (max-width: 60rem) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .aside { position: static; }
}
@media (max-width: 36rem) {
  body { font-size: 1rem; }
  .two { grid-template-columns: 1fr; }
  .nav { gap: 0.25rem 1rem; font-size: 0.93rem; }
  th, td { padding: 0.5rem 0.5rem; }
}
.who { display: block; font-weight: 400; font-size: 0.88rem; color: var(--muted); margin-top: 0.15rem; }
/* Phones: the California price table becomes one card per row (source + price on top, what it covers below).
   Explicit ARIA roles in the HTML keep its table semantics when display changes. */
@media (max-width: 36rem) {
  table.cards thead tr { display: grid; grid-template-columns: 1fr auto; }
  table.cards thead th:nth-child(3) { display: none; }
  table.cards tbody tr { display: grid; grid-template-columns: 1fr auto; border-bottom: 1px solid var(--rule); padding: 0.5rem 0; }
  table.cards tbody th, table.cards tbody td { border: 0; padding: 0.2rem 0.5rem; }
  table.cards tbody td:nth-child(3) { grid-column: 1 / -1; color: var(--ink); }
}
/* City pages: breadcrumb and the list of other cities */
.crumbs { font-size: 0.92rem; color: var(--muted); margin: 0 0 0.6rem; }
.city-list { list-style: none; padding-left: 0 !important; margin: 0; }
.city-list li { margin-bottom: 0.6rem; }
.city-list .who { margin-top: 0; }
