* { box-sizing: border-box; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--body); }
a { color: var(--link); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--head); font-weight: var(--head-w); line-height: 1.15; margin: 0; letter-spacing: var(--head-ls); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 760px; }

/* Header */
.top { border-bottom: 1px solid var(--line); background: var(--surface); }
.top .wrap { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font: var(--head-w) 22px/1 var(--head); letter-spacing: var(--head-ls); white-space: nowrap; }
.mark { width: 30px; height: 30px; flex: none; }
.nav { display: flex; gap: 26px; margin-left: auto; font: 500 15px/1 var(--ui); }
.nav a { color: var(--ink); text-decoration: none; padding: 14px 0; }
.nav a.on { color: var(--accent); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.menu { display: none; margin-left: auto; font: 600 15px/1 var(--ui); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 16px; background: var(--surface); color: var(--ink); min-height: 44px; }
.firm { background: var(--soft); border-bottom: 1px solid var(--line); font: 400 16px/1.4 var(--ui); color: var(--ink); }
.firm .wrap { padding-top: 10px; padding-bottom: 10px; }

/* Buttons and tags */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--button-radius); background: var(--accent); color: var(--on-accent); font: 600 16px/1 var(--ui); text-decoration: none; border: 1px solid var(--accent); cursor: pointer; }
.btn.wide { width: 100%; }
.eyebrow { font: 600 13px/1.2 var(--ui); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.tag { display: inline-flex; align-items: center; gap: 6px; font: 600 13px/1 var(--ui); padding: 7px 10px; border-radius: var(--pill-radius); background: var(--accent-soft); color: var(--accent); }
.meta { font: 400 14px/1.5 var(--ui); color: var(--muted); }
.note { font: 400 15px/1.5 var(--ui); color: var(--muted); background: var(--soft); border-radius: var(--radius); padding: 10px 14px; }
select, input[type=text], textarea { font: 400 17px/1.4 var(--ui); color: var(--ink); background: var(--surface); border: 1px solid var(--ink); border-radius: var(--radius); min-height: 48px; padding: 10px 14px; width: 100%; }

/* front page, shared pieces */
.hero { padding: 64px 0 48px; }
.hero h1 { font-size: 60px; max-width: 12em; }
.hero .lede { font-size: 21px; line-height: 1.5; color: var(--muted); max-width: 34em; margin: 18px 0 0; }
.cols { display: grid; grid-template-columns: 1.55fr 1fr; gap: 56px; align-items: start; }
.finder li a { display: flex; align-items: baseline; gap: 14px; padding: 17px 4px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; font: 600 19px/1.3 var(--head); }
.finder li:last-child a { border-bottom: 1px solid var(--line); }
.finder small { display: block; font: 400 15px/1.45 var(--ui); color: var(--muted); margin-top: 3px; }
.finder .go { margin-left: auto; color: var(--accent); font: 600 18px/1 var(--ui); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h2 { font-size: 22px; margin-bottom: 8px; }
.card p { font: 400 15px/1.5 var(--ui); color: var(--muted); }
.states { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.states a { font: 500 14px/1 var(--ui); padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--pill-radius); color: var(--ink); text-decoration: none; background: var(--surface); }
.states a.has { border-color: var(--accent); color: var(--accent); font-weight: 700; }
.section { padding: 52px 0; border-top: 1px solid var(--line); }
.section > .wrap > h2 { font-size: 34px; margin-bottom: 8px; }
.section .sub { color: var(--muted); font: 400 17px/1.5 var(--ui); margin-bottom: 26px; max-width: 44em; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gcard { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--ink); }
.gcard b { display: block; font: var(--head-w) 19px/1.25 var(--head); margin: 10px 0 6px; }
.gcard span.d { font: 400 15px/1.45 var(--ui); color: var(--muted); }
.next { background: var(--accent-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 32px; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.next h2 { font-size: 26px; margin-bottom: 6px; }
.next p { margin: 0; font: 400 16px/1.5 var(--ui); color: var(--ink); max-width: 40em; }
.info { font: 400 15px/1.5 var(--ui); color: var(--muted); margin: 18px 0 0; }

/* Article */
.crumbs { font: 400 14px/1.4 var(--ui); color: var(--muted); padding: 22px 0 0; }
.crumbs a { color: var(--muted); }
.art-head { padding: 22px 0 30px; border-bottom: 1px solid var(--line); }
.art-head h1 { font-size: 46px; max-width: 17em; margin: 14px 0 16px; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 18px; font: 400 15px/1.5 var(--ui); color: var(--muted); }
.art { display: grid; grid-template-columns: 250px minmax(0, 700px); gap: 64px; padding: 36px 0 56px; }
.toc { position: sticky; top: 20px; align-self: start; font: 400 15px/1.4 var(--ui); }
.toc summary { display: block; font: 700 13px/1 var(--ui); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; cursor: pointer; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc a { display: block; padding: 9px 0 9px 14px; border-left: 2px solid var(--line); color: var(--ink); text-decoration: none; }
.toc a.on { border-left-color: var(--accent); color: var(--accent); font-weight: 600; }
.prose { font-size: 19px; line-height: 1.68; }
.prose h2 { font-size: 30px; margin: 44px 0 14px; }
.prose h3 { font-size: 21px; margin: 28px 0 8px; }
.prose ul { list-style: disc; padding-left: 24px; margin: 0 0 1em; }
.prose li { margin-bottom: 8px; }
.key { background: var(--surface); border: 1px solid var(--accent); border-radius: var(--radius); padding: 20px 22px; font: 400 17px/1.55 var(--ui); margin: 0 0 26px; }
.key b { display: block; font: 700 13px/1 var(--ui); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.sources { background: var(--soft); border-radius: var(--radius); padding: 18px 22px; font: 400 15px/1.5 var(--ui); margin: 22px 0; }
.sources b { display: block; margin-bottom: 6px; }
.sources li { margin: 6px 0; }
.prose .next { margin: 40px 0 0; grid-template-columns: 1fr; gap: 16px; }
.page { padding: 40px 0 64px; }
.page h1 { font-size: 44px; margin: 12px 0 18px; }
.page h2 { font-size: 26px; margin: 36px 0 10px; }

/* footer */
.foot { background: var(--footer-bg, var(--ink)); color: var(--footer-text); margin-top: 0; padding: 48px 0 28px; font: 400 15px/1.6 var(--ui); }
.foot a { color: var(--footer-emphasis); }
.foot .brand { color: var(--footer-emphasis); font-size: 20px; }
.foot .firmline { font-size: 17px; color: var(--footer-emphasis); margin: 14px 0 6px; max-width: 30em; }
.fgrid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.foot h2 { font: 700 13px/1 var(--ui); letter-spacing: 0.08em; text-transform: uppercase; color: var(--footer-heading); margin-bottom: 14px; }
.foot li { margin-bottom: 4px; }
.foot li a { display: inline-block; padding: 5px 0; text-decoration: none; }
.fbase { border-top: 1px solid var(--footer-divider); margin-top: 34px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 28px; color: var(--footer-meta); font-size: 14px; }

@media (max-width: 760px) {
  body { font-size: 17px; }
  .wrap { padding: 0 20px; }
  .nav { display: none; } .menu { display: inline-flex; align-items: center; }
  .top .wrap { min-height: 64px; gap: 12px; } .brand { font-size: 18px; white-space: normal; line-height: 1.15; } .mark { width: 26px; height: 26px; }
  .firm { font-size: 16px; }
  .hero { padding: 36px 0 30px; } .hero h1 { font-size: 38px; }
  .hero .lede { font-size: 18px; }
  .cols, .grid3, .next, .fgrid, .art { grid-template-columns: 1fr; gap: 26px; }
  .section { padding: 36px 0; } .section > .wrap > h2 { font-size: 27px; }
  .next { padding: 24px 20px; } .next .btn { width: 100%; }
  .art-head h1 { font-size: 32px; } .art { padding: 22px 0 40px; }
  .toc { position: static; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: var(--surface); }
  .toc summary { margin: 0; min-height: 24px; display: flex; align-items: center; justify-content: space-between; }
  .toc summary::after { content: '+'; font: 600 20px/1 var(--ui); }
  .toc details[open] summary { margin-bottom: 12px; }
  .toc details[open] summary::after { content: '\2212'; }
  .prose { font-size: 18px; } .prose h2 { font-size: 25px; }
  .page h1 { font-size: 32px; }
}
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
.top .wrap { position: relative; }
.mobile { display: none; margin-left: auto; }
.mobile summary { cursor: pointer; list-style: none; }
.mobile nav { position: absolute; z-index: 2; top: 100%; right: 0; padding: 8px 20px; background: var(--surface); border: 1px solid var(--line); }
.mobile nav a { display: block; padding: 12px; }
.hero .finder { margin-top: 34px; }
.hero .card { margin-top: 44px; }
.lbl { display: block; font: 600 15px/1.4 var(--ui); margin-bottom: 6px; }
.card .btn { margin-top: 12px; }
.card .fallback { margin: 18px 0 0; }
.page.wrap { padding-inline: 32px; }
.page .crumbs { padding: 0; }
.state-intro { font: 400 20px/1.5 var(--ui); color: var(--muted); max-width: 38em; margin: 0; }
.state-issues { border-top: 0; padding-top: 36px; }
.state-issues .finder { margin-top: 14px; }
.state-issues .card + .card { margin-top: 18px; }
.state-issues h2 { font-size: 28px; }
.state-issues .card h2 { font-size: 22px; }
.states a { display: inline-flex; align-items: center; min-height: 44px; }
.prose img { max-width: 100%; height: auto; }
.table-wrap { overflow-x: auto; }
.prose table { border-collapse: collapse; }
.prose th, .prose td { padding: 8px; border: 1px solid var(--line); text-align: left; }
.prose .next h2 { margin: 0 0 6px; font-size: 26px; }
.prose .next p { margin: 0; }
.prose, .art > *, .page { min-width: 0; overflow-wrap: break-word; }
.legal p { white-space: pre-line; }
.versions { margin-top: 32px; }
@media (max-width: 760px) {
  .mobile { display: block; }
  .page.wrap { padding-inline: 20px; }
}

/* Carried page blocks (apps/guides): every value comes from the theme tokens. */
.crumbs span { color: var(--ink); }
.art-head .kicker { margin: 18px 0 0; }
.art-head .tag + .kicker { margin-top: 18px; }
.byline p { margin: 0; }
.art.solo { grid-template-columns: minmax(0, 760px); }
.prose figure { margin: 26px 0; }
.prose figure img { display: block; width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.prose figcaption p { margin: 8px 0 0; font: 400 14px/1.5 var(--ui); color: var(--muted); }
.prose .meta { font-size: 15px; }
.prose h4 { font: var(--head-w) 19px/1.3 var(--head); margin: 24px 0 6px; }
.prose ol { padding-left: 24px; margin: 0 0 1em; }
.prose .sources ul, .prose .sources ol { margin: 0; }
.prose .sources .sources-title { font: 700 15px/1.4 var(--ui); margin: 0 0 6px; letter-spacing: 0; }
.prose .sources li { margin: 6px 0; }
.prose .sources a { overflow-wrap: anywhere; }
.prose table { width: 100%; font: 400 15px/1.45 var(--ui); margin: 0 0 1em; }
.prose caption { text-align: left; font: 700 15px/1.4 var(--ui); padding: 0 0 8px; }
.prose th { background: var(--soft); vertical-align: top; }
.prose td { vertical-align: top; background: var(--surface); }
@media (max-width: 760px) {
  .prose table { font-size: 14px; }
  .table-wrap table { min-width: 560px; }
}

/* Skip link, main focus target */
.skip { position: absolute; left: 12px; top: 12px; z-index: 10; transform: translateY(-200%); background: var(--surface); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--radius); padding: 12px 18px; font: 600 16px/1.2 var(--ui); text-decoration: none; }
.skip:focus { transform: none; }
main:focus { outline: none; }
.table-wrap:focus-visible { outline-offset: -3px; }

/* Desktop: the contents list is always open and its label is not a toggle (browsers that cannot do this keep the toggle). */
@media (min-width: 761px) {
  @supports selector(::details-content) {
    .toc details::details-content { content-visibility: visible; display: block; }
    .toc summary { cursor: default; pointer-events: none; }
  }
}

/* Front page: the carried California section */
.cal-intro { display: grid; gap: 32px; margin: 8px 0 40px; }
.cal-intro.has-figure { grid-template-columns: 1.15fr 1fr; align-items: start; }
.cal-intro .prose { font-size: 18px; max-width: 40em; }
.cal-intro h3 { font-size: 30px; margin: 0 0 12px; }
.cal-intro figure { margin: 0; }
.cal-intro figure img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.cal-intro figcaption p { margin: 8px 0 0; font: 400 14px/1.5 var(--ui); color: var(--muted); }
.cal-meta { margin-top: 18px; }
.cal-meta p { margin: 0 0 4px; font: 400 15px/1.5 var(--ui); color: var(--muted); }
.cal-find { max-width: 40em; margin-bottom: 22px; }
.cal-find h3 { font-size: 26px; margin: 0 0 8px; }
.cal-find p { margin: 0 0 8px; color: var(--muted); }
.issues { margin-bottom: 34px; }
.icard { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.icard:hover { border-color: var(--accent); }
.icard h4 { font: var(--head-w) 19px/1.25 var(--head); margin: 12px 0 6px; }
.icard h4 a { color: var(--ink); text-decoration: none; }
.icard h4 a::after { content: ''; position: absolute; inset: 0; border-radius: var(--radius); }
.icard h4 a:focus-visible { outline: none; }
.icard h4 a:focus-visible::after { outline: 3px solid var(--accent); outline-offset: 2px; }
.icard p { margin: 0; }
.icard p.d { font: 400 15px/1.45 var(--ui); color: var(--muted); }
.icard p.rel { position: relative; margin-top: auto; padding-top: 14px; font: 600 14px/1.4 var(--ui); }
.icard p.tag { width: fit-content; }
.cal-inquiry { display: grid; gap: 6px; background: var(--accent-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 30px; margin-bottom: 20px; }
.cal-inquiry p { margin: 0; font: 400 16px/1.5 var(--ui); max-width: 44em; }
.cal-inquiry p.cal-action { margin-bottom: 6px; }
.cal-inquiry p.cal-action a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: var(--button-radius); background: var(--accent); color: var(--on-accent); font: 600 16px/1 var(--ui); text-decoration: none; }
.home-rest { max-width: 760px; }
.home-rest > h3 { margin-top: 40px; }
.home-rest #what-to-do-now + p + ul { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 12px; }
.home-rest #what-to-do-now + p + ul li { margin: 0; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font: 400 16px/1.5 var(--ui); }
.home-rest #what-to-do-now + p + ul li:has(strong) { counter-increment: step; }
.home-rest #what-to-do-now + p + ul li:has(strong) strong::before { content: counter(step) '. '; }
.home-rest #what-to-do-now + p + ul li:not(:has(strong)) { background: var(--soft); border-style: dashed; font-size: 15px; }
.home-rest .sources ~ ul { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 28px; font: 400 15px/1.4 var(--ui); }
.home-rest .sources ~ ul li { margin: 0; }
@media (max-width: 760px) {
  .cal-intro.has-figure, .home-rest .sources ~ ul { grid-template-columns: 1fr; }
  .cal-intro h3 { font-size: 25px; }
  .cal-inquiry { padding: 22px 20px; }
  .cal-inquiry p.cal-action a { width: 100%; justify-content: center; }
}
