/* SoCal Construction Defect Guide.
   Design system: deep navy ink, Pacific teal, warm sand, a sunrise accent.
   Type: Newsreader (headings) and Inter (text and interface), both served from this site under the
   SIL Open Font License (license files sit beside the font files). No outside requests. ASCII only.
   Type sizes are in rem (1rem = the reader's browser default, 16px unless changed), so text grows
   with the reader's font setting (N25). Small spacing stays in px. Print sizes are in pt. */
@font-face {
  font-family: "Inter";
  src: url("/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* Newsreader's straight apostrophe and straight double quote carry wide side bearings, which leave a
   visible gap in headings ("Sheriff 's"). The unicode-range below is the Latin set minus U+0022 and
   U+0027, so those two characters come from the next font in the heading stack (Palatino), which
   sets them snugly (F4). */
@font-face {
  font-family: "Newsreader";
  src: url("/newsreader-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-0021, U+0023-0026, U+0028-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Arial, resized to take about the same room as Inter, so the page does not jump when Inter arrives. */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 107%;
  ascent-override: 90%;
  descent-override: 22.5%;
  line-gap-override: 0%;
}
:root {
  --ink: #14213d;
  --text: #27303f;
  --soft: #3a4556;
  --muted: #5a6575;
  --paper: #ffffff;
  --sand: #f8f4ec;
  --sand-2: #f0e9db;
  --line: #e4dccb;
  --line-cool: #dde3e7;
  /* Borders on things a reader clicks or types in (tiles, answer buttons, inputs).
     About 3.5:1 on white (N17). Decorative borders stay on --line-cool and --line. */
  --line-ui: #7b8a99;
  --brand: #0e5a6b;
  --brand-dark: #0a4452;
  --brand-wash: #e8f2f3;
  --sun: #f2994a;
  --sun-dark: #a8500f;
  --sun-wash: #fdf3e6;
  --warn: #8a1c1c;
  --warn-wash: #fbeaea;
  --focus: #1a73c7;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 33, 61, 0.05), 0 8px 24px rgba(20, 33, 61, 0.06);
  /* Palatino comes right after Newsreader because it supplies the heading apostrophe (F4): Windows
     has Palatino Linotype, and Apple systems ship Palatino, so most readers get the same snug mark. */
  --serif: "Newsreader", "Palatino Linotype", Palatino, "Iowan Old Style", "Book Antiqua", Georgia, serif;
  --sans: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--sans); font-size: 1.125rem; line-height: 1.65; font-feature-settings: "cv11"; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-dark); text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, .btn:focus-visible, summary:focus-visible, input[type="checkbox"]:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
/* Reading column: about 70 characters a line at the body size (N25). Inter's figures are wide, so
   the measure is set in rem rather than ch. */
.narrow { max-width: calc(39rem + 48px); }
/* A long address or link with no spaces (an email address, a web address) breaks at the edge of the
   column instead of running off a phone screen. */
main { overflow-wrap: break-word; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 10; }

h1, h2 { font-family: var(--serif); font-weight: 600; color: var(--ink); letter-spacing: -0.012em; font-optical-sizing: auto; }
h1 { font-size: clamp(2.125rem, 4.4vw, 2.875rem); line-height: 1.12; margin: 0 0 18px; }
h2 { font-size: 1.75rem; line-height: 1.22; margin: 0 0 12px; }
h3 { font-size: 1.1875rem; font-weight: 650; line-height: 1.35; letter-spacing: -0.005em; color: var(--ink); margin: 28px 0 8px; }
p { margin: 0 0 16px; }
/* No heading ends on one word alone; paragraphs avoid a lone short last line where the browser can (F6). */
h1, h2, h3, .kicker, .onpage-h, .finder-step, summary, .finder-opt, .tile span:last-child { text-wrap: balance; }
p, li { text-wrap: pretty; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 8px; }
strong { font-weight: 650; }
.kicker { font-size: 0.8125rem; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); margin: 0 0 14px; }
.lead { font-size: 1.25rem; line-height: 1.6; color: var(--soft); }
.fine, .checked { font-size: 0.9375rem; color: var(--muted); }
.draftnote { display: inline-block; background: var(--warn-wash); color: var(--warn); font-size: 0.9375rem; font-weight: 600; padding: 6px 12px; border-radius: 6px; }

/* Advertising strip: kept conspicuous on purpose. */
.strip { background: var(--ink); color: #e9eef6; padding: 9px 16px; font-size: 0.90625rem; line-height: 1.375rem; text-align: center; text-wrap: balance; }
/* Each strip link is its own 44px-tall box on the text's baseline, so its line makes room for it: the
   tap area and the focus ring (drawn inside the box) no longer reach into the lines above and below. */
.strip a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 2px; color: #ffffff; font-weight: 600; white-space: nowrap; }
.strip a:focus-visible { outline-color: #ffffff; outline-offset: -3px; }
.strip-draft { background: var(--warn); color: #ffffff; font-weight: 600; }
/* The "Advertisement" label: filled, and no smaller than 13px (N26). */
.adlabel { display: inline-block; font-size: 0.8125rem; font-weight: 700; line-height: 1.5; letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid currentColor; border-radius: 4px; padding: 0 6px; margin-right: 8px; }
.strip .adlabel { background: #ffffff; color: var(--ink); border-color: #ffffff; vertical-align: top; }
.card .adlabel { background: var(--ink); color: #ffffff; border-color: var(--ink); margin: 0; }
.sample { display: inline-block; margin-left: 6px; color: #ffd7a6; font-weight: 600; }

/* Header. The menu rules apply to the header menu only, not the footer links. */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line-cool); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; gap: 11px; font-family: var(--serif); font-size: 1.4375rem; font-weight: 600; color: var(--ink); text-decoration: none; letter-spacing: -0.012em; }
.brand:hover { color: var(--ink); }
/* The mark: a flat half sun over three water bars, drawn by the build as inline SVG on a 32px grid
   so it stays crisp. Shown at its own 32px size; the footer recolors it for the dark background. */
.brand svg { display: block; flex: none; width: 32px; height: 32px; }
.site-footer .brand .mark-sun { fill: #f6a35e; }
.site-footer .brand .mark-sea { fill: #8cc3cc; }
.site-header nav a { display: inline-block; margin-left: 2px; padding: 8px 12px; border-radius: 6px; font-size: 0.96875rem; font-weight: 550; color: var(--soft); text-decoration: none; }
.site-header nav a:hover { background: var(--sand); color: var(--ink); }
/* Current page: a real border (shows in forced-colors mode), dark sunrise, about 5.5:1 on white (N16). */
.site-header nav a[aria-current="page"] { color: var(--ink); border-bottom: 2px solid var(--sun-dark); padding-bottom: 6px; border-radius: 6px 6px 0 0; }
.site-header nav a:last-child { border: 1.5px solid var(--brand); color: var(--brand-dark); font-weight: 600; margin-left: 10px; }
.site-header nav a:last-child:hover { background: var(--brand); color: #ffffff; }
.site-header nav a:last-child[aria-current="page"] { background: var(--brand); color: #ffffff; border: 1.5px solid var(--brand); padding-bottom: 8px; border-radius: 6px; }

/* Buttons */
.btn { display: inline-block; background: var(--brand); color: #ffffff; border: 1.5px solid var(--brand); border-radius: 6px; padding: 12px 20px; font-family: var(--sans); font-size: 1.0625rem; font-weight: 600; line-height: 1.3; text-decoration: none; cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease; }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #ffffff; }
.btn:active { transform: translateY(1px); }
.btn-lg { font-size: 1.125rem; padding: 14px 24px; }
.btn-quiet, .btn-ghost { background: var(--paper); color: var(--brand-dark); }
.btn-quiet:hover, .btn-ghost:hover { background: var(--brand-wash); color: var(--brand-dark); border-color: var(--brand); }
.btn-ghost { border-color: var(--line-ui); color: var(--ink); }

/* ---------- Home ---------- */

/* Hero: a sunrise over the ocean, drawn in layers behind the headline and the eight choices.
   The section is a grid: row 1 holds the headline (left) and the choices panel (right); row 2 is
   the horizon band, an empty row as tall as the water plus a little sky (--rise), so no text ever
   sits on the water. The sun rises into the clear sky under the choices panel, which is always
   shorter than the headline column, so nothing covers the sun or its reflection. The picture (.hero-art) spans both rows behind them: the sky and the
   glow are its background, the sun is a span, and the haze and the water are two inline SVGs
   stretched to the full width. --sea is the water's height, --sunsize the sun's width, --rise the
   clear sky kept above the horizon. The sun's width is 11.5vw on wide screens so that it matches
   the reflection drawn in the water SVG (whose units are 1vw); its top stays below the panel. */
.hero {
  --sea: clamp(5.5rem, 9.2vw, 9.5rem);
  --sunsize: clamp(5.5rem, 11.5vw, 10.5rem);
  --sunx: 80%;
  --rise: 1.5rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto calc(var(--rise) + var(--sea));
  background: #fbf8f3;
}
.hero-art {
  grid-row: 1 / 3;
  grid-column: 1;
  position: relative;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--sunx) calc(100% - var(--sea)), rgba(251, 196, 128, 0.46) 0, rgba(251, 200, 140, 0.22) 9rem, rgba(251, 214, 170, 0.07) 18rem, rgba(251, 220, 180, 0) 27rem),
    linear-gradient(180deg, #fbf8f3 0%, #fbf5ec 38%, #fbeedd 62%, #fae3c8 84%, #f7d6b2 100%);
}
.hero-art svg { position: absolute; left: 0; display: block; width: 100%; max-width: none; }
.hero-haze { bottom: var(--sea); height: 4.5rem; z-index: 1; }
.hero-sea { bottom: 0; height: var(--sea); z-index: 2; }
/* The sun: a crisp disk (light core, deeper rim) with a soft glow outside it. No hard rings. */
.hero-sun {
  position: absolute;
  z-index: 1;
  left: calc(var(--sunx) - var(--sunsize) / 2);
  bottom: calc(var(--sea) - var(--sunsize) * 0.42);
  width: var(--sunsize);
  height: var(--sunsize);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 46%, #fff8e8 0%, #ffe6b6 26%, #fdc77a 58%, #f8a958 84%, #f39a4c 100%);
  box-shadow: 0 0 1.25rem 0.125rem rgba(252, 196, 128, 0.55), 0 0 4.5rem 1.5rem rgba(251, 200, 140, 0.30);
}
.hero-in { grid-row: 1; grid-column: 1; width: 100%; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0 clamp(32px, 4.4vw, 64px); align-items: start; padding-top: 48px; padding-bottom: 4px; }
.hero h1 { font-size: clamp(2.25rem, 3.9vw, 3.375rem); line-height: 1.06; letter-spacing: -0.02em; margin-bottom: 18px; }
.hero .lead { font-size: clamp(1.125rem, 1.45vw, 1.25rem); line-height: 1.55; max-width: 33em; color: var(--soft); margin-bottom: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 12px; }
/* Both buttons share one size, and each label sits centred in its button. */
.hero-cta .btn { display: inline-flex; align-items: center; justify-content: center; }
.hero-note { font-size: 1rem; color: var(--soft); margin: 0; max-width: 32em; }

/* The eight choices: a compact panel over the sky, two across (one across on tablets). */
.hero-pick { margin-top: 6px; background: rgba(255, 255, 255, 0.9); border: 1px solid rgba(20, 33, 61, 0.12); border-radius: 12px; box-shadow: 0 1px 2px rgba(20, 33, 61, 0.05), 0 10px 30px rgba(120, 72, 20, 0.08); padding: 18px 20px 10px; }
.pick-h { font-size: 1.375rem; line-height: 1.25; margin: 0 0 10px; }

/* Section headings on the home page share one quiet treatment: serif, with a short sunrise rule. */
.how > .wrap > h2 { font-size: clamp(1.625rem, 2.6vw, 2rem); margin: 0 0 22px; }
.how > .wrap > h2::after { content: ""; display: block; width: 44px; height: 3px; margin-top: 12px; background: var(--sun); border-radius: 2px; }

/* Home: the choice rows. Each is a whole-row link at least 48px tall. */
.tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.tiles li { margin: 0; border-top: 1px solid var(--line-cool); }
.tiles li:nth-child(-n+2) { border-top: 0; }
.tile { display: flex; align-items: center; gap: 12px; height: 100%; min-height: 3.375rem; padding: 7px 6px; border-radius: 6px; color: var(--ink); font-weight: 600; font-size: 1rem; line-height: 1.25; text-decoration: none; transition: background 0.15s ease; }
.tile:hover { background: var(--sun-wash); color: var(--ink); }
.tile:hover span:last-child { text-decoration: underline; text-underline-offset: 3px; }
.tile:focus-visible { outline-offset: -3px; }
.tile-ico { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand-wash); color: var(--brand-dark); }
.tile-ico svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Home: the guide index. One row per topic: the topic name at the left, its guides in two
   columns to the right, a rule between topics. One column on phones. */
.guides-wrap { padding-top: 56px; padding-bottom: 24px; }
.gsec { display: grid; grid-template-columns: 11.75rem minmax(0, 1fr); gap: 0 40px; padding: 18px 0 16px; border-top: 1px solid var(--line-cool); }
.gsec:first-child { border-top: 2px solid var(--ink); }
/* The top margin puts the topic name on the same baseline as its first link. */
.gsec h2 { font-size: 1.3125rem; line-height: 1.3; margin: 11px 0 8px; }
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; align-content: start; }
/* Each cell fills its row and its link sits at the top of it, chevron on the first line, so the topic
   name, the first link and its neighbour all share one line however many lines a link takes. */
.cards li { display: flex; margin: 0; border-bottom: 1px solid var(--line-cool); }
/* The topic rule closes each list, so the last row of links carries no line of its own. With an odd
   number of links the left column runs one row longer, and the right column's last link (the second to
   last) drops its line too, so no partial rule hangs under it. */
.cards li:last-child, .cards li:nth-last-child(2) { border-bottom: 0; }
/* A block, not a flex box, so a <span class="nobr"> inside the card text stays in the line of text. */
.gcard { position: relative; flex: 1; display: block; padding: 11px 28px 11px 0; color: var(--ink); font-weight: 500; font-size: 1.03125rem; line-height: 1.4; text-decoration: none; text-wrap: balance; }
/* The chevron is decoration: the second content value gives it empty alt text, so it is not read as
   part of the link's name. The first line is for browsers that do not know the alt syntax. */
.gcard::after { content: "\203A"; content: "\203A" / ""; position: absolute; right: 4px; top: calc(11px + 0.722rem); transform: translateY(-54%); font-size: 1.5rem; line-height: 1; color: var(--brand); transition: transform 0.15s ease; }
.gcard:hover { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; }
.gcard:hover::after { transform: translate(3px, -54%); }

/* Home: how it works. Three short notes in columns, no boxes. */
.how { background: var(--sand); border-top: 1px solid var(--line); margin-top: 40px; padding: 60px 0 40px; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin: 0 0 28px; }
.how-item { border-top: 1px solid #d9cfba; padding-top: 16px; }
.how-item h3 { margin: 0 0 6px; font-size: 1.125rem; }
.how-item p { font-size: 1.03125rem; color: var(--soft); margin-bottom: 0; }
.how-ad { font-size: 1rem; color: var(--soft); max-width: 46em; margin: 0; }
.home .card { margin: 48px 0 64px; }

/* ---------- Guide pages ---------- */
.page main { padding: 48px 0 64px; }
.prose > h1 { margin-bottom: 20px; }
.prose > h2 { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-cool); }
.prose > h1 + .draftnote { margin-bottom: 18px; }
.prose li::marker { color: var(--brand); }
.guides { list-style: none; padding-left: 0; }
.guides li { border-bottom: 1px solid var(--line-cool); padding: 10px 0; margin: 0; }
/* A checklist the build did not make tickable (ticks: no) shows a plain marker on screen, not an
   empty square that looks like a box to click (F45). It prints as an empty box to tick by hand. */
.checklist { list-style: none; padding-left: 0; border-top: 1px solid var(--line-cool); }
.checklist li { position: relative; background: none; border-bottom: 1px solid var(--line-cool); padding: 12px 8px 12px 34px; margin: 0; }
.checklist li::before { content: ""; position: absolute; left: 8px; top: 23px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.checklist { margin-bottom: 22px; }
/* One rule between sections, not two: a list right under a section heading drops its own top line
   (the heading's rule is just above), and a list that a new section heading follows drops the line
   under its last row (the heading's rule does that job). Screen only: printed headings carry no
   rule, so a printed list keeps its own lines and every box closes. */
@media screen {
  .prose > h2 + .checklist, .prose > h2 + .tickable { border-top: 0; }
  .prose > .checklist:has(+ h2) > li:last-child:not(:focus-within) { border-bottom-color: transparent; }
}
/* Phone numbers stay on one line, and so does a hyphenated name marked .nobr (Medi-Cal) or a two-word place name. */
a[href^="tel:"], .nobr { white-space: nowrap; }
.callout { background: var(--brand-wash); border: 0; border-left: 4px solid var(--brand); border-radius: 0 var(--radius) var(--radius) 0; color: #12313a; padding: 18px 22px; margin: 0 0 22px; }
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--ink); }
details { background: var(--paper); border: 1px solid var(--line-cool); border-radius: var(--radius); padding: 0 20px; margin: 0 0 16px; }
summary { cursor: pointer; font-weight: 600; padding: 14px 0; color: var(--brand-dark); }
summary::marker { color: var(--brand); }
details[open] { background: #fcfbf8; border-color: var(--line); }
details[open] summary { border-bottom: 1px solid var(--line-cool); margin-bottom: 14px; }
/* Quoted law in Read more boxes is a plain paragraph followed by its cite line (N24). */
.cite { font-size: 0.875rem; color: var(--muted); margin: 0 0 16px; }
.sources { font-size: 0.9375rem; color: var(--muted); }
.sources li { margin-bottom: 4px; }
.prose > .checked { margin-top: -6px; }

/* Tickable checklists: ticks live only in the open page. The whole row is the click target. */
.tickable { border-top: 1px solid var(--line-cool); }
.tickable li { padding: 0; border: 1px solid transparent; border-bottom-color: var(--line-cool); border-radius: 0; }
.tickable li::before { content: none; }
.tickable li:hover { background: var(--sand); }
.tickable li:focus-within { border-color: var(--brand); border-radius: 6px; }
.tickable label { display: block; position: relative; padding: 12px 12px 12px 46px; cursor: pointer; }
.tickable input { position: absolute; left: 10px; top: 15px; width: 20px; height: 20px; margin: 0; accent-color: var(--brand); cursor: pointer; }
.tickable input:checked + span { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(90, 101, 117, 0.5); }

/* On this page */
/* One rule only near the top of a guide (F8): the box is marked by a sunrise bar at its left, and the
   first section heading after it (or after the Print button) drops its top rule. */
.onpage { background: none; border: 0; border-left: 3px solid var(--sun); border-radius: 0; padding: 2px 0 2px 18px; margin: 4px 0 26px; }
.onpage-h { font-size: 0.8125rem; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sun-dark); margin: 0 0 6px; }
.onpage ul { margin: 0; padding-left: 0; list-style: none; }
.onpage li { margin-bottom: 4px; font-size: 1.03125rem; }
.prose > .onpage + h2, .prose > .printbar + h2 { margin-top: 36px; padding-top: 0; border-top: 0; }
.prose h2[id], .prose h3[id] { scroll-margin-top: 16px; }

/* Read next and change notes */
.readnext { margin: 48px 0 8px; padding: 20px 24px 8px; border: 0; border-left: 4px solid var(--sun); border-radius: 0 var(--radius) var(--radius) 0; background: var(--sun-wash); }
.readnext h2, .changes h2 { font-size: 1.375rem; margin: 0 0 8px; border: 0; padding: 0; }
.readnext ul { margin-bottom: 12px; }
.readnext a { font-weight: 600; }
.changes { margin: 28px 0 8px; font-size: 1rem; }
.changes li { margin-bottom: 6px; }
.coming { background: var(--sun-wash); border-color: #f1d3ac; border-left-color: var(--sun-dark); color: #3b2a14; }
.printbar { margin: 0 0 18px; }
.printonly { display: none; }

/* Browser-only tools (question list, claim organizer). Nothing typed is saved or sent. */
/* Rhythm (F7): each section opens with a rule and room above it; a sub-heading sits a clear step
   below its section heading and close to its own fields, marked with a short sunrise bar. */
.tool h2 { font-size: 1.5rem; margin: 48px 0 16px; padding-top: 24px; border-top: 1px solid var(--line-cool); }
.tool > h2:first-child { margin-top: 28px; }
.tool h3 { font-size: 1.0625rem; line-height: 1.3; margin: 32px 0 12px; padding-left: 12px; border-left: 3px solid var(--sun); }
.tool h2 + h3 { margin-top: 22px; }
.tool-note { font-size: 0.96875rem; color: var(--soft); background: var(--sand); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 8px; }
.tool-status { font-size: 0.9375rem; color: var(--warn); min-height: 1.4em; margin: 0 0 12px; }
.field { display: block; margin: 0 0 14px; }
.field-label { display: block; font-weight: 600; color: var(--ink); font-size: 1rem; margin-bottom: 4px; }
.tool input[type="text"], .tool textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--paper); border: 1px solid var(--line-ui); border-radius: 6px; padding: 9px 11px; }
.tool textarea { min-height: 92px; resize: vertical; field-sizing: content; }
.tool input[type="text"]:focus, .tool textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--brand); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
/* In a two-box row, the boxes line up even when one label wraps to two lines. */
.grid2 > .field { display: flex; flex-direction: column; justify-content: flex-end; }
.logtable { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 0.9375rem; }
.logtable caption { caption-side: top; text-align: left; font-weight: 600; color: var(--ink); font-size: 1rem; padding: 0 0 4px; }
.logtable th { text-align: left; font-size: 0.8125rem; font-weight: 650; letter-spacing: 0.02em; color: var(--ink); padding: 6px 6px 6px 0; border-bottom: 2px solid var(--ink); }
.logtable td { padding: 5px 6px 5px 0; vertical-align: top; }
/* The last column runs to the table's edge, so the boxes end where the heading rule ends. */
.logtable th:last-child, .logtable td:last-child { padding-right: 0; }
/* Column headings and the labels of half-width boxes do not leave one word alone on a line. A label
   over a full-width box wraps normally, so it uses the width (balance would leave the right half empty). */
.logtable th, .logtable caption, .grid2 .field-label { text-wrap: balance; }
.field-label { text-wrap: pretty; }
.logtable input[type="text"] { padding: 6px 8px; font-size: 0.9375rem; }
/* site.js puts each box's label in it as a hint; it shows only on phones, where the headings are hidden. */
.logtable input::placeholder { color: transparent; }

/* Attorney card */
.card { margin-top: 48px; background: var(--sand); border: 1px solid var(--line); border-radius: 12px; padding: 24px 28px 14px; }
.card h2 { margin: 8px 0 8px; font-size: 1.625rem; border: 0; padding: 0; }
.att { border-top: 1px solid var(--line); padding: 16px 0 6px; }
/* Right under a section heading (which has its own rule) the first attorney drops its top rule. */
.prose > h2 + .att { border-top: 0; padding-top: 4px; }
.att-name { font-family: var(--serif); font-size: 1.4375rem; font-weight: 600; color: var(--ink); margin-top: 0; margin-bottom: 2px; }
.att-firm, .att-line { margin-bottom: 8px; color: var(--soft); }
.att-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

/* Step finder */
.start { margin: 0 0 8px; }
.finder { margin: 0 0 20px; }
.finder-note { font-size: 0.9375rem; color: var(--muted); background: var(--sand); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; }
.finder-card { background: var(--paper); border: 1px solid var(--line-cool); border-radius: 12px; padding: 28px 28px 14px; box-shadow: var(--shadow); }
.finder-bar { height: 6px; background: var(--sand-2); border-radius: 99px; overflow: hidden; margin: 0 0 22px; }
.finder-bar span { display: block; height: 100%; width: 0; background: var(--brand); border-radius: 99px; transition: width 0.3s ease; }
.finder-step { font-size: 0.8125rem; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); margin: 0 0 6px; }
.finder-q { margin: 0 0 14px; padding: 0; border: 0; font-size: 1.875rem; }
/* The script moves focus to this heading after each answer. A keyboard user sees a ring; a mouse
   user usually does not (the browser decides focus-visible) (N27). */
.finder-q:focus { outline: none; }
.finder-q:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 4px; }
.finder-hint { color: var(--muted); font-size: 1rem; }
.finder-opts { display: grid; gap: 10px; margin: 0 0 16px; }
.finder-opt { position: relative; display: block; width: 100%; text-align: left; font: inherit; font-weight: 550; color: var(--ink); background: var(--paper); border: 1px solid var(--line-ui); border-radius: 8px; padding: 15px 44px 15px 18px; cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease; }
.finder-opt::after { content: "\203A"; content: "\203A" / ""; position: absolute; right: 16px; top: 50%; transform: translateY(-54%); font-size: 1.625rem; line-height: 1; color: var(--brand); }
.finder-opt:hover { border-color: var(--brand); background: var(--brand-wash); }
.finder-controls { margin: 4px 0 10px; }
/* Back and Start over: at least 44px tall to tap. */
.finder-link { font: inherit; font-size: 1rem; color: var(--brand-dark); background: none; border: 0; min-height: 44px; padding: 9px 0; margin-right: 18px; text-decoration: underline; cursor: pointer; }
.finder-steps { padding-left: 0; list-style: none; counter-reset: fstep; border-top: 1px solid var(--line-cool); }
.finder-steps li { counter-increment: fstep; position: relative; background: none; border-bottom: 1px solid var(--line-cool); padding: 16px 8px 16px 56px; margin: 0; }
.finder-steps li::before { content: counter(fstep); position: absolute; left: 6px; top: 15px; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #ffffff; font-weight: 650; font-size: 0.9375rem; line-height: 32px; text-align: center; font-feature-settings: "tnum"; }
/* Each step title is a block link at least 44px tall; the negative top margin keeps its text where it was. */
.finder-steps a { display: block; min-height: 44px; padding: 8px 0; margin-top: -8px; font-weight: 650; }
.finder-steps span { display: block; color: var(--muted); font-size: 1rem; }
.finder-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* Footer */
.site-footer { background: var(--ink); color: #c8d1df; font-size: 0.9375rem; line-height: 1.6; padding: 44px 0 34px; }
.site-footer a { color: #ffffff; }
/* On the navy footer the focus ring is a light teal (about 9:1), not the blue used on white. */
.site-footer a:focus-visible { outline-color: #8cc3cc; }
.site-footer p { margin-bottom: 8px; max-width: 70em; }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
.site-footer .brand { color: #ffffff; font-size: 1.3125rem; }
.footlinks { margin: 0; }
.footlinks a { display: inline-block; margin-left: 20px; padding: 4px 0; font-weight: 550; text-decoration: none; }
.footlinks a:first-child { margin-left: 0; }
.footlinks a:hover { text-decoration: underline; }

/* Narrow laptops: the two columns share the width evenly so each choice keeps to one line. */
@media (max-width: 1100px) {
  .hero-in { grid-template-columns: minmax(0, 1.07fr) minmax(0, 1fr); gap: 0 36px; }
  .hero-pick { padding: 16px 16px 8px; }
  .tiles { gap: 0 12px; }
  .tile { gap: 10px; padding-left: 4px; padding-right: 4px; }
  /* The two buttons keep one size and stay side by side down to the one-column panel. */
  .hero-cta { gap: 10px; }
  .hero-cta .btn { font-size: 1.0625rem; padding: 13px 18px; }
}
@media (max-width: 1000px) {
  .hero-in { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .tiles { grid-template-columns: 1fr; }
  .tiles li:nth-child(2) { border-top: 1px solid var(--line-cool); }
  .gsec { grid-template-columns: 11.5rem minmax(0, 1fr); gap: 0 28px; }
  /* Here (1000px and under) the one-column panel can be the taller column, so the sky band keeps the whole sun clear of it. */
  .hero { --rise: calc(var(--sunsize) * 0.58 + 1.5rem); }
  /* Here the buttons stack; both take the wider one's width so the stack is even. */
  .hero-cta { display: grid; width: fit-content; }
}
/* Tablets: the topic name sits above its links, which keep two columns at the full width. */
@media (max-width: 900px) {
  .gsec { grid-template-columns: 1fr; padding: 18px 0 10px; }
  .gsec h2 { margin: 0 0 4px; }
}
@media (max-width: 860px) {
  .how-grid { grid-template-columns: 1fr; gap: 22px; }
}
/* Phones and small tablets: headline, then a short band of sunrise and water, then the choices as
   one-column full-width rows on white. The panel's wrapper steps aside (display: contents) so the
   three parts can stack in that order inside the hero's grid. */
@media (max-width: 759px) {
  .hero {
    --sea: 3.25rem;
    --sunsize: clamp(3.5rem, 17vw, 4.75rem);
    --sunx: 78%;
    --rise: calc(var(--sunsize) * 0.58 + 0.75rem);
    grid-template-rows: auto calc(var(--rise) + var(--sea)) auto;
    background: var(--paper);
  }
  .hero-in { display: contents; }
  .hero-copy { grid-row: 1; grid-column: 1; padding: 28px 24px 4px; }
  .hero-cta { display: flex; width: auto; }
  .hero-art { grid-row: 1 / 3; }
  /* The water is drawn twice as wide here and shifted, so the reflection matches the larger sun. */
  .hero-sea { width: 200%; left: -82%; }
  .hero-pick { grid-row: 3; grid-column: 1; margin: 0; background: var(--paper); border: 0; border-radius: 0; box-shadow: none; padding: 26px 24px 0; }
  .pick-h { font-size: 1.5625rem; margin: 0 0 12px; }
  .pick-h::after { content: ""; display: block; width: 44px; height: 3px; margin-top: 8px; background: var(--sun); border-radius: 2px; }
  .tiles { border-top: 1px solid var(--line-ui); }
  .tiles li, .tiles li:nth-child(-n+2) { border-top: 0; border-bottom: 1px solid var(--line-cool); }
  .tile { position: relative; min-height: 3.25rem; padding: 6px 36px 6px 2px; border-radius: 0; font-size: 1.0625rem; }
  .tile::after { content: "\203A"; content: "\203A" / ""; position: absolute; right: 8px; top: 50%; transform: translateY(-54%); font-size: 1.5rem; line-height: 1; color: var(--brand); }
}
@media (max-width: 600px) {
  body { font-size: 1.0625rem; }
  .wrap { padding: 0 16px; }
  h2 { font-size: 1.5625rem; }
  .lead { font-size: 1.1875rem; }
  /* The strip keeps its size; only its padding and line spacing tighten, so a long attorney notice
     takes fewer rows of the first screen. */
  .strip { font-size: 0.84375rem; line-height: 1.1875rem; padding: 6px 12px; }
  /* Here the strip link's box is 24px (the WCAG minimum target), so the strip grows by only a few
     pixels and "Start with what happened" stays on the first screen. */
  .strip a { min-height: 24px; }
  /* A 2px ring drawn 2px inside that 24px box leaves the text a little room and stays inside the box. */
  .strip a:focus-visible { outline-width: 2px; outline-offset: -2px; }
  .strip .adlabel { line-height: 1.0625rem; }
  .site-header .wrap { padding-top: 8px; padding-bottom: 8px; row-gap: 4px; }
  .brand { font-size: 1.3125rem; }
  /* The menu wraps instead of running off the screen (F40). */
  .site-header nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 4px 2px; width: 100%; margin-left: -8px; }
  /* Menu links are at least 44px tall to tap. */
  .site-header nav a { margin-left: 0; padding: 10px 8px; font-size: 0.9375rem; white-space: nowrap; }
  .site-header nav a[aria-current="page"] { padding-bottom: 8px; }
  .site-header nav a:last-child { margin-left: 4px; padding-top: 9px; padding-bottom: 9px; }
  .site-header nav a:last-child[aria-current="page"] { padding-bottom: 9px; }
  .hero-copy { padding: 18px 16px 0; }
  .hero-pick { padding: 20px 16px 0; }
  .hero h1 { font-size: clamp(2.125rem, 9vw, 2.5rem); margin-bottom: 12px; }
  .hero .kicker { margin-bottom: 8px; }
  .hero .lead { font-size: 1.125rem; line-height: 1.5; }
  .guides-wrap { padding-top: 40px; }
  .gsec { grid-template-columns: 1fr; padding: 16px 0 12px; }
  .gsec h2 { margin: 0 0 4px; }
  .cards { grid-template-columns: 1fr; }
  .cards li:nth-last-child(2) { border-bottom: 1px solid var(--line-cool); }
  .btn { display: block; width: 100%; text-align: center; }
  .btn-lg { padding: 12px 20px; }
  .hero-cta { gap: 8px; margin: 18px 0 10px; }
  .card { padding: 20px 18px 8px; }
  .finder-card { padding: 22px 16px 10px; }
  .finder-q { font-size: 1.5625rem; }
  .page main { padding: 30px 0 48px; }
  .how { padding-top: 44px; }
  .footlinks a { margin-left: 0; margin-right: 16px; padding: 10px 0; }
  /* Taller tap areas for the On this page and Sources links. */
  .onpage li { margin-bottom: 0; }
  .onpage li a { display: inline-block; padding: 9px 0; }
  /* Block, not inline-block, so a source title that wraps keeps its bullet on its first line. */
  .sources li a { display: block; padding: 10px 0; }
  .sources li { margin-bottom: 0; }
  .grid2 { grid-template-columns: 1fr; }
  .logtable, .logtable tbody, .logtable tr, .logtable td { display: block; width: 100%; }
  .logtable caption { display: block; }
  /* The column headings are hidden here, so each box shows its own label as a hint (site.js). */
  .logtable thead { position: absolute; left: -9999px; }
  .logtable input::placeholder { color: #6b7685; opacity: 1; }
  .logtable tr { border-bottom: 1px solid var(--line-cool); padding: 6px 0 8px; }
  .logtable td, .logtable td:last-child { padding-right: 0; }
  .logtable input[type="text"] { min-height: 44px; }
}
/* Small phones (360px): a little tighter still, so the sunrise band stays on the first screen.
   No text goes below 16px except the 15px note, which keeps its size. */
@media (max-width: 380px) {
  .hero { --sea: 3.25rem; --rise: calc(var(--sunsize) * 0.58 + 0.5rem); }
  .hero-copy { padding-top: 12px; }
  .hero-pick { padding-top: 16px; }
  .hero .kicker { margin-bottom: 6px; }
  .hero h1 { margin-bottom: 12px; }
  .hero .lead { font-size: 1.0625rem; line-height: 1.48; }
  .hero-cta { gap: 8px; margin: 16px 0 10px; }
  .hero-cta .btn { padding-top: 10px; padding-bottom: 10px; }
}
/* Narrow phones: the "Talk to a lawyer" button takes its own row under the other links (F40). */
@media (max-width: 440px) {
  .site-header nav a:last-child { flex: 1 0 100%; margin: 2px 0 0 8px; text-align: center; }
}
/* Phones from 360px to 464px (set in em, so a larger reader font falls back to the row above):
   "Talk to a lawyer" sits at the right of the site name, and the other three links share the row
   under it. One row less above the headline. The site name stays on one line; its size follows the
   screen width (16.5px at 360, 19px from about 413). The range runs past 440px so that from 441px
   up to where all four links fit on one row, "Talk to a lawyer" never drops to a third row. */
@media (min-width: 22.5em) and (max-width: 29em) {
  .site-header .wrap { position: relative; }
  .site-header .brand { font-size: clamp(1rem, 4.6vw, 1.1875rem); gap: 9px; min-height: 46px; white-space: nowrap; }
  .site-header nav a:last-child { position: absolute; top: 8px; right: 16px; flex: none; margin: 0; padding-left: 11px; padding-right: 11px; }
}
@media (max-width: 350px) {
  .site-header nav a { padding-left: 6px; padding-right: 6px; font-size: 0.875rem; }
}
/* Touch screens at any width (tablets included): header menu links and footer links are at least
   44px tall to tap. */
@media (pointer: coarse) {
  .site-header nav a { min-height: 44px; }
  .footlinks a { min-height: 44px; padding-top: 10px; padding-bottom: 10px; }
}
@media (forced-colors: active) {
  .site-header nav a[aria-current="page"] { border-bottom-color: CanvasText; }
  .checklist li::before { background: CanvasText; }
  .hero-art { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
/* Print. Every printed page keeps the advertisement strip (label, names, office city), the
   footer line (names and street addresses), the disclaimer line, and a print-only line with the
   page address and its last-checked date. Navigation, buttons, and the On this page box are hidden. */
@media print {
  @page { margin: 0.6in 0.6in 0.9in; }
  html, body { background: #ffffff; }
  body { font-size: 12pt; line-height: 1.45; color: #000000; }
  .wrap, .narrow { max-width: none; padding: 0; }
  .skip, .site-header nav, .card, .onpage, .printbar, .tool-actions, .tool-status, .readnext, .finder-bar, .finder-controls, .finder-actions, .finder-note, .foot-top, button, .btn, .skip-print, .hero-art { display: none !important; }
  .strip, .strip-draft { display: block; background: none; color: #000000; border: 1.5px solid #000000; border-radius: 6px; text-align: left; font-size: 10.5pt; padding: 6pt 8pt; margin: 0 0 8pt; }
  .strip a { display: inline; min-height: 0; padding: 0; color: #000000; font-weight: 600; text-decoration: none; }
  /* Backgrounds do not print by default, so the filled label prints as an outlined label. */
  .adlabel { background: none !important; color: #000000 !important; border: 1px solid #000000 !important; font-size: 9pt; }
  .sample { color: #000000; }
  .site-header { border: 0; }
  .site-header .wrap { padding: 0 0 6pt; }
  .brand { font-size: 14pt; color: #000000; }
  .brand svg { display: block; width: 20px; height: 20px; flex: none; }
  .site-footer .brand .mark-sun { fill: #ef8b3d; }
  .site-footer .brand .mark-sea { fill: #0e5a6b; }
  .page main, main { padding: 0; }
  .hero { display: block; background: none; padding: 0 0 8pt; }
  .hero-in { display: block; padding: 0; }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: 24pt; }
  .hero-pick { margin: 10pt 0 0; padding: 0; background: none; border: 0; box-shadow: none; }
  .guides-wrap, .how { padding: 6pt 0; margin: 0; background: none; border: 0; }
  .pick-h::after, .how > .wrap > h2::after { display: none; }
  .tiles { display: block; background: none; border: 0; }
  .tiles li, .tiles li:nth-child(-n+2) { display: inline-block; margin: 0 14pt 4pt 0; border: 0; }
  .tile { display: inline; padding: 0; min-height: 0; }
  .tile::after { content: none; }
  .tile-ico { display: none; }
  .gsec { grid-template-columns: 9.5rem 1fr; gap: 0 14pt; padding: 6pt 0; border-top: 1pt solid #000000; break-inside: avoid; page-break-inside: avoid; }
  /* break-after on a one-row grid item passes to the grid itself, which chained every topic together and pushed the whole index to page 2. */
  .gsec h2 { font-size: 12pt; margin: 3pt 0; }
  .gsec h2, .prose .gsec h2 { break-after: auto; page-break-after: auto; }
  .cards { gap: 0 14pt; }
  .cards li { border-color: #bbbbbb; }
  .gcard { padding: 3pt 0; font-size: 10.5pt; }
  .gcard::after { content: none; }
  .how-grid { display: block; }
  .how-item { border: 0; padding: 0; margin-bottom: 6pt; }
  h1 { font-size: 22pt; margin-bottom: 8pt; }
  h2, .prose > h2 { font-size: 15pt; margin-top: 16pt; padding-top: 0; border: 0; break-after: avoid; page-break-after: avoid; }
  h3 { break-after: avoid; page-break-after: avoid; }
  .lead { font-size: 13pt; color: #000000; }
  a { color: #000000; }
  .prose a[href^="/"]::after { content: " (socalconstructiondefectguide.com" attr(href) ")"; font-size: 9.5pt; color: #333333; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9.5pt; color: #333333; word-break: break-all; }
  .checklist li, .finder-steps li, .callout, .field, .logtable tr { break-inside: avoid; page-break-inside: avoid; }
  .checklist, .tickable, .finder-steps { border-top-color: #999999; }
  .checklist li, .finder-steps li { border-color: #999999; }
  .checklist li { padding-left: 40pt; }
  .checklist li::before { left: 12pt; top: 12pt; width: 11pt; height: 11pt; border: 1.5pt solid #000000; border-radius: 3pt; background: none; }
  .tickable li { padding-left: 0; }
  .tickable input { -webkit-print-color-adjust: exact; print-color-adjust: exact; accent-color: #000000; }
  .tickable input:checked + span { color: #000000; text-decoration: none; }
  .callout, .coming { background: none; border-color: #000000; color: #000000; }
  details { border: 0; padding: 0; background: none; }
  details[open] { background: none; }
  details::details-content { content-visibility: visible; display: block; }
  summary { list-style: none; color: #000000; padding: 0 0 4pt; }
  summary::-webkit-details-marker { display: none; }
  summary { break-after: avoid; page-break-after: avoid; }
  details[open] summary { border: 0; margin-bottom: 4pt; }
  .cite, .sources, .fine, .checked { color: #333333; }
  .finder-card { border: 0; padding: 0; box-shadow: none; }
  .finder-steps li::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .tool input[type="text"], .tool textarea { border: 0; border-bottom: 1px solid #000000; border-radius: 0; padding: 2pt 0; color: #000000; }
  .tool textarea { min-height: 54pt; resize: none; }
  .tool input::placeholder { color: transparent; }
  .tool-note { background: none; border-color: #000000; color: #000000; }
  .site-footer { display: block; background: none; color: #000000; font-size: 10pt; padding: 8pt 0 0; margin-top: 14pt; border-top: 1.5px solid #000000; break-inside: avoid; page-break-inside: avoid; }
  .site-footer a { color: #000000; text-decoration: none; }
  .site-footer p { margin-bottom: 3pt; max-width: none; }
  .printonly { display: block; }
  /* On the contact page, print the phone number as plain text (the email button has no address to print). */
  .att-actions a.btn[href^="tel:"] { display: inline !important; width: auto; background: none; border: 0; padding: 0; color: #000000; font-size: 12pt; font-weight: 600; box-shadow: none; }
}

/* ---- SoCal Construction Defect Guide: the home page picture is a sunrise behind two rows of
   rooftops. The rooftop SVG keeps the .hero-sea box (bottom band, height --sea) and is sliced to
   fit, so it never stretches; on phones it stays full width. */
.hero { --sea: clamp(5.75rem, 9.6vw, 9.75rem); }
.hero-roofs { width: 100%; left: 0; }
@media (max-width: 759px) {
  .hero-sea.hero-roofs { width: 100%; left: 0; }
}
/* The site name is long, so on phones it takes the whole first row and
   the Talk to a lawyer button stays in the menu row, pushed to the right. */
@media (max-width: 29em) {
  .site-header .brand { font-size: clamp(0.9375rem, 4.9vw, 1.25rem); gap: 9px; white-space: nowrap; }
  .site-header nav a:last-child { position: static; flex: none; margin: 0 0 0 auto; text-align: center; }
}
/* Keeps a name (the firm's) on one line where the listing sentence wraps. */
.nw { white-space: nowrap; }
