/* sd.css — San Diego hub pages (extends vega.css tokens) */

.sd-main { background: var(--bg); }

/* ── Breadcrumbs ── */
.crumbs {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  list-style: none;
  margin-bottom: 26px;
}
.crumbs a { color: var(--ink-mute); transition: color .2s ease; }
.crumbs a:hover { color: var(--ink); }
.crumbs li { display: inline-flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "›"; color: var(--ink-faint); }

/* ── Hero ── */
.sd-hero {
  position: relative;
  padding: 150px 36px 80px;
  overflow: hidden;
  background:
    radial-gradient(1100px 600px at 78% 0%, color-mix(in oklab, var(--bg-3) 60%, transparent), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.sd-hero__stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sd-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) { .sd-hero__inner { grid-template-columns: 1fr; gap: 40px; } }
.sd-hero__copy .eyebrow { margin-bottom: 22px; }
.sd-hero h1 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(42px, 5.6vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.sd-hero h1 em { font-style: italic; color: var(--accent); }
.sd-hero__sub {
  margin: 24px 0 0;
  max-width: 52ch;
  color: var(--ink-mute);
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.6;
}
.sd-hero__cta {
  margin: 32px 0 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.sd-hero__meta {
  margin-top: 28px;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.sd-hero__meta span { display: inline-flex; align-items: center; gap: 8px; }

/* Hero stat panel (styled data card in place of stock photos) */
.sd-panel {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.6);
}
.sd-panel__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: color-mix(in oklab, var(--accent) 12%, var(--bg-3));
  border-bottom: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.sd-panel__bar b { color: var(--accent); font-weight: 500; }
.sd-panel__rows { display: flex; flex-direction: column; }
.sd-panel__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.sd-panel__row:last-child { border-bottom: 0; }
.sd-panel__row span { color: var(--ink-mute); font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }
.sd-panel__row b { font-weight: 500; font-family: var(--f-mono); font-size: 13px; white-space: nowrap; }
.sd-panel__row--hl { background: color-mix(in oklab, var(--accent) 7%, transparent); }
.sd-panel__row--hl b { color: var(--accent); }
.sd-panel__note {
  padding: 12px 20px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  border-top: 1px solid var(--line);
}

/* ── Article column ── */
.sd-article {
  max-width: 760px;
  margin: 0 auto;
  padding: 96px 36px;
}
.sd-section { margin-bottom: 80px; }
.sd-section:last-child { margin-bottom: 0; }
.sd-section > .eyebrow { margin-bottom: 18px; }
.sd-h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.04;
  letter-spacing: -0.018em;
  margin: 0 0 24px;
  text-wrap: balance;
}
.sd-h2 em { font-style: italic; color: var(--accent); }
.sd-h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.012em;
  margin: 36px 0 14px;
}
.sd-h3 em { font-style: italic; color: var(--accent); }
.sd-article p {
  color: var(--ink-mute);
  font-size: 16.5px;
  line-height: 1.7;
  margin: 0 0 18px;
  text-wrap: pretty;
}
.sd-article p strong { color: var(--ink); font-weight: 600; }
.sd-article ul, .sd-article ol {
  color: var(--ink-mute);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 18px;
  padding-left: 22px;
}
.sd-article li { margin-bottom: 8px; }
.sd-article li strong { color: var(--ink); font-weight: 600; }
.sd-article a.inline { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.sd-article a.inline:hover { color: var(--accent-2); }

/* Callout card */
.sd-callout {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin: 28px 0;
}
.sd-callout h4 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
  font-weight: 500;
}
.sd-callout p { margin: 0; font-size: 15px; }

/* Key facts grid */
.sd-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 28px 0;
}
@media (max-width: 560px) { .sd-facts { grid-template-columns: 1fr; } }
.sd-fact { background: var(--bg-2); padding: 22px 24px; }
.sd-fact b {
  display: block;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin-bottom: 8px;
}
.sd-fact span { font-size: 13.5px; color: var(--ink-mute); line-height: 1.45; }

/* Data table */
.sd-tablewrap { overflow-x: auto; margin: 28px 0; border: 1px solid var(--line); border-radius: var(--radius); }
.sd-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-2);
  font-size: 14px;
  min-width: 480px;
}
.sd-table th {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
  text-align: left;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line-2);
  background: color-mix(in oklab, var(--bg-3) 50%, transparent);
}
.sd-table td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-mute);
  vertical-align: top;
}
.sd-table tr:last-child td { border-bottom: 0; }
.sd-table td b, .sd-table td strong { color: var(--ink); font-weight: 500; }
.sd-table .num { font-family: var(--f-mono); font-size: 13px; white-space: nowrap; }
.sd-table .hl { color: var(--accent); }

/* Neighborhood tier cards */
.sd-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0; }
@media (max-width: 680px) { .sd-tiers { grid-template-columns: 1fr; } }
.sd-tier {
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px 20px;
  background: var(--bg-2);
}
.sd-tier--hot { border-top-color: var(--hot); }
.sd-tier--hot .sd-tier__cap { color: var(--hot); }
.sd-tier__cap {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 6px;
  color: var(--accent);
}
.sd-tier__range {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 12px;
}
.sd-tier ul { margin: 0; padding-left: 18px; }
.sd-tier li { font-size: 13px; color: var(--ink-mute); line-height: 1.7; margin-bottom: 2px; }
.sd-tier p { font-size: 13.5px; color: var(--ink-mute); line-height: 1.55; margin: 0 0 10px; }

/* Checklist */
.sd-checks { display: grid; gap: 12px; margin: 28px 0; }
.sd-check {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  align-items: start;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.sd-check__mark { color: var(--accent); margin-top: 1px; }
.sd-check b { display: block; font-size: 15px; font-weight: 500; margin-bottom: 3px; color: var(--ink); }
.sd-check span { font-size: 13.5px; color: var(--ink-mute); line-height: 1.5; }

/* Numbered steps */
.sd-steps { list-style: none; margin: 28px 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.sd-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
  background: var(--bg-2);
  padding: 16px 22px;
}
.sd-step__n { font-family: var(--f-mono); font-size: 12px; color: var(--accent); margin-top: 3px; }
.sd-step__t { font-size: 15px; color: var(--ink); }
.sd-step__t span { display: block; font-size: 13.5px; color: var(--ink-mute); margin-top: 3px; line-height: 1.55; }

/* ── Mid-article CTA band ── */
.sd-ctabar {
  background:
    radial-gradient(600px 300px at 50% 0%, color-mix(in oklab, var(--accent) 10%, transparent), transparent 60%),
    var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  margin: 48px 0;
  text-align: center;
}
.sd-ctabar h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  text-wrap: balance;
}
.sd-ctabar h3 em { font-style: italic; color: var(--accent); }
.sd-ctabar p { font-size: 15px; color: var(--ink-mute); margin: 0 auto 22px; max-width: 52ch; }
.sd-ctabar__btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.sd-ctabar__fine {
  margin: 30px 0 0;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

/* ── FAQ accordion ── */
.sd-faq { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 28px 0; }
.sd-faq details { background: var(--bg-2); }
.sd-faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  transition: background .2s ease;
}
.sd-faq summary:hover { background: color-mix(in oklab, var(--accent) 5%, transparent); }
.sd-faq summary::-webkit-details-marker { display: none; }
.sd-faq summary::after {
  content: "+";
  font-family: var(--f-mono);
  font-size: 18px;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform .2s ease;
}
.sd-faq details[open] summary::after { transform: rotate(45deg); }
.sd-faq__a { padding: 0 24px 22px; }
.sd-faq__a p { font-size: 15px; color: var(--ink-mute); line-height: 1.65; margin: 0 0 12px; }
.sd-faq__a p:last-child { margin-bottom: 0; }

/* ── Related pages / hub links ── */
.sd-related {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 28px 0;
}
@media (max-width: 620px) { .sd-related { grid-template-columns: 1fr; } }
.sd-rel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: background .25s ease, border-color .25s ease;
}
.sd-rel:hover { background: var(--bg-3); border-color: var(--line-2); }
.sd-rel b { font-family: var(--f-display); font-weight: 400; font-size: 21px; letter-spacing: -0.01em; color: var(--ink); }
.sd-rel span { font-size: 13.5px; color: var(--ink-mute); line-height: 1.5; }
.sd-rel .sd-rel__go {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 4px;
}

/* ── Bottom CTA band (full-bleed) ── */
.sd-cta {
  position: relative;
  padding: 120px 36px;
  text-align: center;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(800px 400px at 50% 0%, color-mix(in oklab, var(--accent) 10%, transparent), transparent 60%),
    var(--bg-2);
  overflow: hidden;
}
.sd-cta__inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.sd-cta h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  text-wrap: balance;
}
.sd-cta h2 em { font-style: italic; color: var(--accent); }
.sd-cta p { color: var(--ink-mute); font-size: 17px; margin: 0 auto 30px; max-width: 52ch; }
.sd-cta__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.sd-cta__fine {
  margin-top: 40px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

/* Pillar: hub grid section (uses .prod-grid/.pcard from vega.css) */
.sd-hub {
  padding: 100px 36px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  border-top: 1px solid var(--line);
}
.sd-hub .section-head { margin-bottom: 56px; }

/* Compliance footnote inside article */
.sd-fine {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
  line-height: 1.6;
}
