/* ============================================================
   Public entry page (homepage) — firm-site design language:
   left rail, numbered service links, discreet service sections
   with the fee inside each. Extends app.css tokens.
   ============================================================ */
body.entry { background: var(--white); }

/* ---------- Layout: rail + content (like balilawoffices.com) ---------- */
.layout { display: flex; align-items: flex-start; }
.content { flex: 1; min-width: 0; }

aside.rail {
  position: sticky; top: 0;
  width: 268px; flex-shrink: 0;
  height: 100vh; overflow-y: auto;
  background: var(--white);
  border-right: 1px solid var(--rule);
  display: flex; flex-direction: column;
  padding: 38px 28px 26px;
}
.wordmark-rail { display: block; margin-bottom: 34px; text-decoration: none; }
.firm-r {
  font-family: var(--serif); font-size: 27px; letter-spacing: 0.06em;
  color: var(--navy); text-transform: uppercase; line-height: 1.22; display: block;
}
.pby {
  display: block; font-size: 10px; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--gold-dark); margin-top: 14px;
  padding-top: 13px; border-top: 1px solid rgba(201,169,98,0.45);
}
.firm-name {
  display: block; font-family: var(--serif); font-size: 18.5px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy); margin-top: 5px;
}
.atty-line {
  display: block; font-size: 9.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--soft); margin-top: 5px;
  white-space: nowrap;
}

.rail-label {
  font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--soft); font-weight: 600; margin-bottom: 6px;
}
.rail-svc { list-style: none; margin: 0 0 28px; padding: 0; }
.rail-svc a {
  position: relative; display: flex; align-items: flex-start; gap: 10px;
  text-decoration: none; padding: 12px 2px;
  font-family: var(--serif); font-size: 17px; color: var(--navy);
  border-bottom: 1px solid #f0ece2;
}
.rail-svc li:first-child a { border-top: 1px solid #f0ece2; }
.rail-svc .snum {
  font-family: var(--sans); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.12em; color: var(--gold-dark); padding-top: 5px;
}
.slink-body { display: block; min-width: 0; flex: 1; }
.slink-title { display: flex; align-items: baseline; gap: 8px; }
.slink-title .arr { margin-left: auto; }
.slink-desc {
  display: block; font-family: var(--sans); font-size: 11.5px;
  color: var(--soft); margin-top: 3px; line-height: 1.5;
}
.rail-svc .arr {
  margin-left: auto; color: var(--gold-dark);
  opacity: 0; transform: translateX(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.rail-svc a:hover, .rail-svc a.active { color: var(--gold-dark); }
.rail-svc a:hover .arr, .rail-svc a.active .arr { opacity: 1; transform: none; }
.rail-svc a.active .slink-title { color: var(--gold-dark); }
.wordmark-rail { text-decoration: none; }

.rail-nav { list-style: none; margin: 0 0 28px; padding: 0; }
.rail-nav a {
  display: block; text-decoration: none; color: var(--ink);
  font-size: 14px; padding: 7px 2px;
}
.rail-nav a:hover { color: var(--gold-dark); }
.rail-nav a.rail-signin {
  color: var(--gold-dark); font-weight: 600;
  border: 1px solid var(--gold-line); border-radius: 10px;
  background: #fdfaf3; padding: 11px 13px; margin-bottom: 10px;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.rail-nav a.rail-signin:hover {
  background: #fbf4e6; box-shadow: 0 4px 12px rgba(168,131,75,0.18);
}
.rail-signin-sub {
  display: block; font-weight: 400; font-size: 11.5px; color: var(--soft);
  margin-top: 2px; line-height: 1.5;
}
.wm-home { text-decoration: none; display: block; }

.rail-foot { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--rule); }
.rail-foot .phone {
  display: block; font-size: 15.5px; font-weight: 600; color: var(--navy);
  text-decoration: none; margin-bottom: 12px;
}
.btn-gold-r {
  display: block; text-align: center; background: var(--gold); color: #fff !important;
  padding: 12px 20px; border-radius: 6px; font-size: 14.5px; font-weight: 500;
  text-decoration: none; transition: background 0.2s ease;
}
.btn-gold-r:hover { background: var(--gold-dark); }
.returning {
  margin-top: 16px; font-size: 12px; color: var(--soft);
  letter-spacing: 0.04em; line-height: 1.7;
}
.returning a { color: var(--gold-dark); text-decoration: none; font-weight: 600; }
.returning a:hover { text-decoration: underline; }
.rail-place-r {
  margin-top: 16px; font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--soft);
}

/* ---------- Mobile top bar (like the firm site) ---------- */
.mobile-bar {
  display: none; position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.97); border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(8px);
}
.mobile-bar .bar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
}
.mfirm {
  font-family: var(--serif); font-size: 20px; letter-spacing: 0.07em;
  color: var(--navy); text-transform: uppercase; text-decoration: none; display: block;
}
.mfirm .amp { color: var(--gold-line); }
.mfirm-sub {
  display: block; font-family: var(--sans); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-dark); margin-top: 4px;
}
.bar-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.bar-signin {
  font-family: var(--sans); font-size: 13.5px; font-weight: 600;
  color: var(--gold-dark); text-decoration: none;
  border: 1px solid var(--gold-line); border-radius: 6px;
  padding: 8px 13px; background: #fdfaf3; white-space: nowrap;
}
.menu-btn {
  background: none; border: 1px solid var(--rule); border-radius: 6px;
  padding: 8px 14px; font-size: 14.5px; cursor: pointer; color: var(--navy);
  font-family: var(--sans);
}
@media (max-width: 430px) {
  .mobile-bar .bar-inner { padding: 12px 14px; }
  .mfirm { font-size: 17.5px; }
  .mfirm-sub { font-size: 9px; letter-spacing: 0.14em; }
  .bar-actions { gap: 7px; }
  .bar-signin { padding: 7px 10px; font-size: 12.5px; }
  .menu-btn { padding: 7px 10px; font-size: 13.5px; }
}
.mobile-nav { display: none; border-top: 1px solid var(--rule); background: #fff; }
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; padding: 8px 20px 18px; margin: 0; }
.mobile-nav a { display: block; padding: 10px 0; text-decoration: none; color: var(--ink); }
.mobile-nav .mn-svc a { font-family: var(--serif); font-size: 17.5px; color: var(--navy); }
.mobile-nav .mn-desc {
  display: block; font-family: var(--sans); font-size: 12px;
  color: var(--soft); margin-top: 2px;
}
.mobile-nav .mn-signin a { color: var(--gold-dark); font-weight: 600; padding-top: 14px; }

/* ---------- Content ---------- */
.content main { max-width: 760px; margin: 0 auto; padding: 40px 36px 40px; }
.content section { margin-bottom: 56px; }

.eyebrow-l {
  font-size: 11.5px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold-dark); font-weight: 600; margin-bottom: 12px;
}
.hero-block h1 {
  font-family: var(--serif); font-weight: 500; color: var(--navy);
  font-size: clamp(28px, 4.4vw, 40px); line-height: 1.16; letter-spacing: -0.01em;
}
.lede-l { color: var(--soft); font-size: 16.5px; margin-top: 16px; }

/* Service sections — discreet, firm-site practice-block style */
.svc-sections { border-top: 1px solid var(--rule); }
.svc-block {
  padding: 42px 0 38px; border-bottom: 1px solid var(--rule);
  scroll-margin-top: 76px;
}
.svc-block .num {
  font-family: var(--sans); color: var(--gold-dark); font-size: 11px;
  font-weight: 600; letter-spacing: 0.2em; display: block; margin-bottom: 10px;
}
.svc-block h2 {
  font-family: var(--serif); font-weight: 500; color: var(--navy);
  font-size: 26px; letter-spacing: -0.01em; margin-bottom: 6px;
}
.svc-sub { color: var(--soft); font-size: 14px; margin-bottom: 14px; }
.svc-law-r {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold-dark);
}
.svc-blurb { color: var(--soft); font-size: 15.5px; }
.fee-line {
  margin-top: 16px; padding-left: 13px; border-left: 3px solid var(--gold-line);
  color: var(--ink); font-size: 14.5px;
}
.fine { font-size: 13px; color: var(--soft); margin-top: 22px; line-height: 1.7; }

/* "Explore" pill — the firm site's remarkable area link */
.area-pill {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 18px; padding: 11px 22px;
  border: 1px solid var(--gold); border-radius: 999px;
  text-decoration: none; color: var(--gold-dark);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease, gap 0.25s ease, box-shadow 0.25s ease;
}
.area-pill .arr { transition: transform 0.25s ease; }
.area-pill:hover {
  background: var(--gold); color: #fff; gap: 14px;
  box-shadow: 0 6px 18px rgba(168,131,75,0.35);
}

/* Step-by-step process timeline (service pages) */
.steps { list-style: none; margin: 6px 0 0; padding: 0; }
.step {
  position: relative; display: flex; gap: 18px;
  padding: 0 0 30px 0;
}
.step::before {
  content: ""; position: absolute; left: 17px; top: 38px; bottom: 4px;
  width: 1px; background: var(--gold-line); opacity: 0.55;
}
.step:last-child::before { display: none; }
.step-num {
  flex-shrink: 0; width: 35px; height: 35px; border-radius: 50%;
  border: 1px solid var(--gold); color: var(--gold-dark);
  font-family: var(--serif); font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; position: relative; z-index: 1;
}
.step-body h3 {
  font-family: var(--serif); font-weight: 500; color: var(--navy);
  font-size: 18.5px; margin: 5px 0 6px; letter-spacing: -0.01em;
}
.step-body p { color: var(--soft); font-size: 15px; }

/* Firm-site credential link under the Powered-by block */
.firm-site-link {
  display: inline-block; font-family: var(--sans); font-size: 10.5px;
  letter-spacing: 0.08em; color: var(--gold-dark); text-decoration: none;
  margin-top: 7px; border-bottom: 1px solid rgba(138,106,57,0.35);
  padding-bottom: 1px;
}
.firm-site-link:hover { border-bottom-color: var(--gold-dark); }

/* Service pages */
.sp-hero { border-bottom: 1px solid var(--rule); padding-bottom: 34px; margin-bottom: 40px !important; }
.sp-section { margin-bottom: 40px !important; }
.sp-p { color: var(--soft); font-size: 15.5px; margin-bottom: 14px; }
.sp-evidence {
  background: #fcfaf5; border: 1px solid var(--gold-line); border-radius: 14px;
  padding: 24px 22px;
}
.sp-evidence .sec-title { margin-bottom: 10px; }
.sp-evidence .sp-p { color: var(--ink); }

.sec-title {
  font-family: var(--serif); font-weight: 500; color: var(--navy);
  font-size: 24px; margin-bottom: 14px;
}

/* Paths */
.path {
  background: #fff; border: 1px solid var(--rule); border-radius: 14px;
  padding: 22px 20px; margin-bottom: 16px; scroll-margin-top: 76px;
}
.path h3 { font-family: var(--serif); font-weight: 500; color: var(--navy); font-size: 20px; margin-bottom: 8px; }
.path p { color: var(--soft); font-size: 15px; margin-bottom: 10px; }
.begin-line {
  border-left: 3px solid var(--gold); padding-left: 13px;
  color: var(--ink) !important; font-size: 15.5px; line-height: 1.65;
}
.begin-line a, .sp-p a, .fee-line a {
  color: var(--gold-dark); text-decoration: none;
  border-bottom: 1px solid rgba(138,106,57,0.4); padding-bottom: 1px;
}
.begin-line a:hover, .sp-p a:hover { border-bottom-color: var(--gold-dark); }
.path a { color: var(--gold-dark); }

.svc-pick { display: flex; flex-direction: column; gap: 9px; margin: 12px 0; }
.pick-btn {
  text-align: left; background: #fff; border: 1.5px solid #d9d2c4; border-radius: 10px;
  padding: 13px 15px; font-family: var(--sans); font-size: 15.5px; color: var(--ink);
  cursor: pointer; min-height: 50px;
}
.pick-btn.selected { border-color: var(--gold); background: #fdfaf3; }

.certainty {
  background: #fcfaf5; border: 1px solid var(--gold-line); border-radius: 12px;
  padding: 16px 18px; margin-top: 6px;
}
.certainty h4 { font-family: var(--serif); font-weight: 500; color: var(--navy); font-size: 18px; margin-bottom: 8px; }
.certainty p { color: var(--soft); font-size: 14.5px; margin-bottom: 10px; }

/* Lead form */
.lead-form { margin-top: 8px; }
.lead-form .two-col { display: flex; gap: 12px; }
.lead-form .two-col > div { flex: 1; }
.lead-form .btn-continue { width: 100%; margin-top: 16px; }
.lead-ok {
  background: #e7f0ea; color: var(--green); border: 1px solid #bcd8c6;
  border-radius: 10px; padding: 14px 16px; font-weight: 600;
}
.hp-wrap { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.already { text-align: center; font-size: 14.5px; color: var(--soft); }
.already a { color: var(--gold-dark); font-weight: 600; }

body.entry .foot { max-width: 760px; padding: 0 36px 44px; text-align: left; margin: 0 auto; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  aside.rail { display: none; }
  .mobile-bar { display: block; }
  .layout { display: block; }
  .content main { padding: 30px 20px 30px; }
  .svc-block { padding: 32px 0 30px; }
  body.entry .foot { padding: 0 20px 40px; }
}
@media (max-width: 520px) {
  .lead-form .two-col { flex-direction: column; gap: 0; }
}

/* ============================================================
   v15 — centered brand masthead (desktop) + slim rail brand
   ============================================================ */
.masthead {
  position: relative; background: var(--ivory);
  border-bottom: 1px solid var(--rule);
  padding: 36px 210px 28px; text-align: center;
}
.mast-inner { display: flex; flex-direction: column; align-items: center; }
.mast-wordmark {
  font-family: var(--serif); font-size: 40px; font-weight: 500;
  letter-spacing: 0.14em; color: var(--navy); text-decoration: none; line-height: 1.1;
}
.mast-wordmark:hover { color: var(--navy-deep); }
.mast-dot { color: var(--gold); }
.mast-rule { width: 66px; height: 1px; background: var(--gold-line); margin: 12px 0 12px; }
.mast-powered {
  font-size: 10px; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--soft); margin: 0;
}
.mast-firm {
  font-family: var(--serif); font-size: 23px; color: var(--navy);
  letter-spacing: 0.05em; margin: 3px 0 0;
}
.mast-atty {
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold-dark); margin: 5px 0 0; white-space: nowrap;
}
.mast-site {
  font-size: 12.5px; color: var(--gold-dark); margin-top: 8px;
  text-decoration: none; border-bottom: 1px solid rgba(138, 106, 57, 0.4);
}
.mast-site:hover { color: var(--navy); }
.mast-login {
  position: absolute; top: 28px; right: 32px;
  background: var(--gold); color: #fff; font-weight: 600; font-size: 14px;
  letter-spacing: 0.03em; padding: 12px 22px; border-radius: 999px;
  text-decoration: none; box-shadow: 0 1px 6px rgba(23, 38, 60, 0.16);
  transition: background 0.2s ease;
}
.mast-login:hover { background: var(--gold-dark); }
@media (max-width: 1180px) { .masthead { padding-left: 40px; padding-right: 40px; }
  .mast-login { position: static; display: inline-block; margin-bottom: 18px; } }
@media (max-width: 960px) { .masthead { display: none; } }

/* Slim rail wordmark (the masthead above carries the full brand) */
.wordmark-rail-slim { display: block; margin-bottom: 16px; }
.wm-home-slim {
  font-family: var(--serif); font-size: 17.5px; letter-spacing: 0.09em;
  color: var(--navy); text-decoration: none;
}
.wm-home-slim:hover { color: var(--gold-dark); }
.amp-r { color: var(--gold); }
.rail-nav-top { margin: 0 0 18px; padding: 0; }

/* Inline "Pay online & begin now" CTA */
.begin-pay {
  display: inline-block; padding: 13px 26px; font-size: 15px;
  border-bottom: none !important;
}

/* ============================================================
   v16 — engraved masthead frame + full-bleed navy hero band
   ============================================================ */
.masthead { padding: 20px 22px 20px; }
.mast-frame {
  position: relative; border: 2px solid var(--navy);
  padding: 30px 210px 26px;
}
.mast-frame::after {
  content: ''; position: absolute; inset: 5px;
  border: 1px solid var(--gold-line); pointer-events: none; opacity: 0.85;
}
.mast-frame .mast-login { position: absolute; top: 24px; right: 26px; }
@media (max-width: 1180px) {
  .mast-frame { padding-left: 40px; padding-right: 40px; }
  .mast-frame .mast-login { position: static; display: inline-block; margin-bottom: 18px; }
}

.hero-band {
  position: relative; text-align: center; color: #f7f4ee;
  padding: 74px 32px 80px;
  background: linear-gradient(168deg, var(--navy-deep) 0%, var(--navy) 55%, #1c2e49 100%);
  border-bottom: 1px solid var(--gold-line);
  overflow: hidden;
}
.hero-band::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(900px 360px at 50% -70px, rgba(201, 169, 98, 0.16), transparent 70%);
}
.hero-band-inner { position: relative; max-width: 920px; margin: 0 auto; }
.eyebrow-hb {
  font-size: 11.5px; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--gold-line); margin: 0 0 22px;
}
.hero-band h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(34px, 4.8vw, 56px); line-height: 1.12;
  color: #f9f6f0; margin: 0 auto; max-width: 880px; letter-spacing: 0.01em;
}
.hero-rule-c { width: 70px; height: 1px; background: var(--gold-line); margin: 28px auto 26px; opacity: 0.9; }
.lede-hb {
  font-size: 17px; line-height: 1.78; color: rgba(247, 244, 238, 0.85);
  max-width: 780px; margin: 0 auto;
}
.lede-hb strong { color: #ffffff; font-weight: 600; }
@media (max-width: 600px) {
  .hero-band { padding: 48px 22px 54px; }
  .eyebrow-hb { font-size: 10px; letter-spacing: 0.26em; margin-bottom: 16px; }
  .hero-rule-c { margin: 20px auto 18px; }
  .lede-hb { font-size: 15.5px; }
}

/* v16 polish: keep the headline to one balanced measure + gentle rise */
.hero-band h1 { max-width: 1060px; text-wrap: balance; }
@media (prefers-reduced-motion: no-preference) {
  .hero-band-inner { animation: hb-rise 0.9s ease-out both; }
  @keyframes hb-rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
  }
}

/* ============================================================
   v17 — free eligibility check: hero CTA, rail link, which-block
   ============================================================ */
.hero-cta-row { margin-top: 30px; }
.hero-cta {
  display: inline-block; background: var(--gold); color: #fff; text-decoration: none;
  font-size: 15.5px; font-weight: 600; letter-spacing: 0.02em;
  padding: 15px 30px; border-radius: 999px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.25);
  transition: background 0.2s ease, transform 0.15s ease;
}
.hero-cta:hover { background: var(--gold-dark); transform: translateY(-1px); }

.rail-nav a.rail-check {
  display: block; border: 1px solid var(--rule); border-radius: 10px;
  padding: 10px 12px; margin-top: 10px; text-decoration: none;
  color: var(--navy); font-weight: 600; font-size: 14px; line-height: 1.35;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.rail-nav a.rail-check:hover { border-color: var(--gold); background: #fdfaf3; }

.which { margin-top: 44px; }
.which-list { list-style: none; margin: 14px 0 0; padding: 0; }
.which-list li {
  display: flex; justify-content: space-between; gap: 18px; align-items: baseline;
  padding: 13px 2px; border-bottom: 1px solid var(--rule); font-size: 15px;
}
.wl-sit { color: #333b46; line-height: 1.5; }
.wl-svc { white-space: nowrap; }
.wl-svc a { color: var(--gold-dark); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(138,106,57,0.4); }
.wl-svc a:hover { color: var(--navy); }
.which-cta { margin-top: 16px; font-size: 15px; }
.which-cta a { color: var(--gold-dark); font-weight: 600; }
@media (max-width: 640px) {
  .which-list li { flex-direction: column; gap: 4px; }
  .wl-svc { white-space: normal; }
}

/* ============================================================
   v20 — homepage: services list left, Bay art column right
   ============================================================ */
.layout-home .content main { padding-left: 56px; }
.layout-home .svc-block .num { font-size: 44px; }
.art-rail {
  width: 252px; flex-shrink: 0;
  padding: 40px 4px 40px 40px; margin-right: 34px;
  border-left: 1px solid var(--rule);
}
.ra-piece { margin-bottom: 26px; }
.ra-piece svg { width: 100%; height: auto; display: block; }
.ra-cap {
  font-size: 9px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold-dark); opacity: 0.75; margin-top: 7px; text-align: center;
}
.ra-foot { margin-top: 30px; border-top: 1px solid var(--rule); padding-top: 20px; text-align: center; }
.ra-phone {
  display: block; font-size: 15.5px; font-weight: 600; color: var(--navy);
  text-decoration: none; margin-bottom: 12px;
}
.ra-links { margin-top: 12px; font-size: 12px; color: var(--soft); letter-spacing: 0.02em; }
.ra-links a { color: var(--gold-dark); text-decoration: none; }
.ra-links a:hover { color: var(--navy); }
@media (max-width: 960px) {
  .art-rail { display: none; }
  .layout-home .content main { padding-left: 0; }
}

/* ============================================================
   v22 — three columns on the homepage: rail | services | art
   ============================================================ */
.layout-home .content main { padding-left: 44px; padding-right: 10px; }
.art-rail { padding-left: 30px; margin-right: 26px; width: 236px; }
@media (max-width: 1240px) { .art-rail { display: none; } .layout-home .content main { padding-right: 40px; } }

/* ============================================================
   v23 — distribute the art down the full height of the page body
   ============================================================ */
.art-rail {
  align-self: stretch;
  display: flex; flex-direction: column; justify-content: space-between;
}
.ra-piece { margin-bottom: 0; }

/* ============================================================
   v24 — art column: natural height, even moderate spacing
   (laptop-friendly rhythm rather than full-page stretch)
   ============================================================ */
.art-rail { align-self: auto; display: block; }
.ra-piece { margin-bottom: 84px; }
.ra-piece:last-child { margin-bottom: 0; }

/* ============================================================
   v25 — numerals restored to the v19 eyebrow size; art column
   hide-rule re-asserted LAST so no earlier display rule can
   override it on phones/narrow windows (source-order fix).
   ============================================================ */
.layout-home .svc-block .num { font-size: 11px; }
@media (max-width: 1240px) { .art-rail { display: none; } }

/* ============================================================
   v26 — each drawing centered vertically beside its own section
   ============================================================ */
.layout-home .content main { max-width: 1030px; }
.layout-home .svc-block { display: flex; align-items: center; gap: 46px; }
.layout-home .svc-body { flex: 1; min-width: 0; }
.svc-art { width: 212px; flex-shrink: 0; margin: 0; }
.svc-art svg { width: 100%; height: auto; display: block; }
.svc-art figcaption { margin-top: 8px; }
/* keep the reading sections at the original comfortable measure */
.layout-home .svc-sections .fine,
.layout-home .which,
.layout-home #paths,
.layout-home .already { max-width: 760px; }
@media (max-width: 1240px) {
  .svc-art { display: none; }
  .layout-home .content main { max-width: 760px; }
}

/* v27 — uniform art footprint: every drawing fits the same box,
   centered by preserveAspectRatio, so line weights render equal */
.svc-art svg { height: 180px; }

/* v31 — rail "Know your rights" information links */
.rail-nav-info { margin-bottom: 4px; }
.rail-nav-info a { font-size: 13.5px; }

/* ============================================================
   v33 — MOBILE-FIRST: short answer, collapsible sections,
   sticky action bar, larger tap targets
   ============================================================ */

/* --- "The short version" answer box --- */
.short-answer {
  background: #fdfaf3; border: 1px solid var(--gold-line); border-left: 4px solid var(--gold);
  border-radius: 12px; padding: 18px 20px 20px; margin: 4px 0 22px;
}
.sa-label {
  font-size: 10.5px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--gold-dark); margin-bottom: 8px; font-weight: 600;
}
.sa-body { font-size: 16.5px; line-height: 1.62; color: #3a3122; margin: 0; }
.sa-cta {
  display: inline-block; margin-top: 16px; background: var(--gold); color: #fff !important;
  text-decoration: none; font-weight: 600; font-size: 15.5px;
  padding: 13px 22px; border-radius: 999px; min-height: 44px; line-height: 20px;
}
.sa-cta:hover { background: var(--gold-dark); }
.lede-after { color: #4a5361; }
.expand-hint {
  font-size: 13px; color: var(--soft); margin: 22px 0 6px;
  letter-spacing: 0.02em;
}
@media (min-width: 961px) { .expand-hint { display: none; } }

/* --- Collapsible sections --- */
details.acc { border-bottom: 1px solid var(--rule); }
details.acc > summary {
  list-style: none; cursor: pointer; padding: 18px 34px 18px 0; position: relative;
  font-family: var(--serif); font-size: 19px; line-height: 1.35; color: var(--navy);
  min-height: 44px;
}
details.acc > summary::-webkit-details-marker { display: none; }
details.acc > summary::after {
  content: ''; position: absolute; right: 6px; top: 26px;
  width: 9px; height: 9px; border-right: 2px solid var(--gold-dark);
  border-bottom: 2px solid var(--gold-dark); transform: rotate(45deg);
  transition: transform 0.18s ease;
}
details.acc[open] > summary::after { transform: rotate(-135deg); top: 30px; }
details.acc > summary:hover { color: var(--gold-dark); }
.acc-body { padding-bottom: 8px; }
.acc-body .sp-p:first-child { margin-top: 0; }
details.acc-source > summary { font-family: var(--sans); font-size: 14px; color: var(--soft); }

/* On desktop the sections read as ordinary prose sections. */
@media (min-width: 961px) {
  details.acc > summary {
    font-size: 21px; padding-top: 26px; cursor: default;
  }
  details.acc > summary::after { display: none; }
  details.acc { border-bottom: none; }
}

/* --- Sticky mobile action bar --- */
.mbar { display: none; }
@media (max-width: 960px) {
  .mbar {
    display: flex; gap: 10px; align-items: center;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(247, 244, 238, 0.97);
    border-top: 1px solid var(--rule);
    backdrop-filter: saturate(180%) blur(8px);
  }
  .mbar-check {
    flex: 1; text-align: center; background: var(--gold); color: #fff !important;
    text-decoration: none; font-weight: 600; font-size: 15.5px;
    padding: 14px 12px; border-radius: 999px; min-height: 48px; line-height: 20px;
  }
  .mbar-call {
    flex: 0 0 auto; text-align: center; border: 1px solid var(--gold);
    color: var(--gold-dark) !important; text-decoration: none; font-weight: 600;
    font-size: 15.5px; padding: 14px 22px; border-radius: 999px;
    min-height: 48px; line-height: 20px; background: #fff;
  }
  body.has-mobile-bar { padding-bottom: 78px; }
}

/* --- Larger tap targets on phones --- */
@media (max-width: 960px) {
  .rail-nav a, .rail-svc a, .mobile-nav a,
  .which-list a, .already a, .wl-svc a {
    display: inline-block; min-height: 44px; line-height: 1.5; padding-top: 6px; padding-bottom: 6px;
  }
  .mobile-nav a { padding-top: 12px; padding-bottom: 12px; }
  .area-pill { min-height: 48px; line-height: 26px; }
}

/* ============================================================
   v34 — MOBILE-FIRST, part 2: the homepage and service pages.
   Everything here is either scoped to a phone breakpoint or is a
   desktop rule that restores the previous appearance exactly, so
   the laptop layout is unchanged.
   ============================================================ */

/* --- v33 accordion typography applies to the information pages
       only; the homepage and service pages keep their own heads --- */
details.acc-path > summary,
details.acc-svc > summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 0 34px 0 0; font-family: inherit; font-size: inherit;
  line-height: inherit; color: inherit;
  min-height: 44px; display: flex; align-items: center;
}
details.acc-path > summary::-webkit-details-marker,
details.acc-svc > summary::-webkit-details-marker { display: none; }
details.acc-path > summary::after,
details.acc-svc > summary::after {
  content: ''; position: absolute; right: 6px; top: 50%; margin-top: -8px;
  width: 9px; height: 9px; border-right: 2px solid var(--gold-dark);
  border-bottom: 2px solid var(--gold-dark); transform: rotate(45deg);
  transition: transform 0.18s ease;
}
details.acc-path[open] > summary::after,
details.acc-svc[open] > summary::after { transform: rotate(-135deg); margin-top: -4px; }
details.acc-path > summary h3,
details.acc-svc > summary h2 { margin-bottom: 0; }
details.acc-path { border-bottom: none; }
@media (max-width: 960px) {
  details.acc-svc { border-bottom: 1px solid var(--rule); }
  details.acc-path > .acc-body { padding-top: 8px; }
  details.acc-svc > .acc-body { padding-bottom: 14px; }
}

/* --- Wide screens: every section is open, drawn by CSS so it does
       not depend on JavaScript and cannot flash. These rules restore
       the pre-v34 desktop page exactly — verified by pixel diff. --- */
@media (min-width: 961px) {
  details.acc:not(.acc-source)::details-content,
  details.acc-path::details-content {
    content-visibility: visible !important;
    block-size: auto !important;
  }
  details.acc-path > summary,
  details.acc-svc > summary {
    cursor: default; min-height: 0; padding: 0; display: block;
  }
  details.acc-path > summary::after,
  details.acc-svc > summary::after { display: none; }
  details.acc-path > summary h3 { margin-bottom: 8px; }      /* was .path h3 */
  details.acc-svc > summary h2.sec-title { margin-bottom: 14px; }
  details.acc-svc { margin-bottom: 40px; }                   /* was .sp-section */
  /* the wrapper traps the last paragraph's margin, which used to
     collapse out of the old <section> — drop it so the rhythm holds */
  details.acc-svc:not(.acc-evidence) > .acc-body > :last-child { margin-bottom: 0; }
  details.acc-svc > .acc-body,
  details.acc-path > .acc-body { padding-bottom: 0; }

  /* the evidence block kept its tinted card on the laptop */
  details.acc-evidence {
    background: #fcfaf5; border: 1px solid var(--gold-line);
    border-radius: 14px; padding: 24px 22px;
  }
  details.acc-evidence > summary h2.sec-title { margin-bottom: 10px; }
  details.acc-evidence .sp-p { color: var(--ink); }

  .sa-svc { display: none; }          /* desktop keeps the original page */
}

/* --- Service page: the fee sits directly under the answer box on a
       phone, where "what does it cost" is the first question. --- */
.sa-fee {
  margin-top: 12px; font-size: 15px; line-height: 1.6;
  color: var(--gold-dark); font-weight: 600;
}
@media (max-width: 960px) {
  .svc-main { display: flex; flex-direction: column; }
  .svc-main .sp-hero      { order: 1; }
  .svc-main .short-answer { order: 2; }
  .svc-main .expand-hint  { order: 3; }
  .svc-main details.acc-svc { order: 4; }
  .svc-main .sp-begin     { order: 5; }
  .svc-main .already      { order: 6; }
  /* the answer box already carries the one-sentence version */
  .svc-main .sp-hero .lede-l { display: none; }
}

/* ============================================================
   Homepage on a phone
   ============================================================ */

/* One short lede on phones, the full one on laptops. */
.lede-hb-m { display: none; }
@media (max-width: 960px) {
  .lede-hb-m { display: block; }
  .hero-band .lede-hb:not(.lede-hb-m) { display: none; }
}

/* Compact service cards: the one-sentence version on a phone, the
   full paragraph on a laptop. Nothing is lost — the full text is on
   the service page, one tap away. */
.svc-blurb-m { display: none; }
@media (max-width: 960px) {
  .svc-blurb-m { display: block; }
  .svc-block .svc-blurb:not(.svc-blurb-m) { display: none; }
}

/* "Which service do I need?" is the fastest route to an answer, so
   on a phone it comes first. Desktop order is untouched. */
@media (max-width: 960px) {
  .layout-home .content main { display: flex; flex-direction: column; }
  .layout-home .which        { order: 1; margin-bottom: 30px; }
  .layout-home .svc-sections { order: 2; }
  .layout-home #paths        { order: 3; }
  .layout-home .already      { order: 4; }
}

/* Mobile top bar: thumb-sized targets. */
@media (max-width: 960px) {
  .bar-actions { display: flex; align-items: center; gap: 6px; }
  .bar-signin, .menu-btn {
    min-height: 44px; display: inline-flex; align-items: center;
    padding-top: 0; padding-bottom: 0;
  }
}

/* The answer box already carries the summary on a phone, so the
   long intro paragraph would just repeat it. */
@media (max-width: 960px) {
  .lede-after { display: none; }
}

/* Tighter service cards on a phone — the same content, less thumb
   travel between one service and the next. */
@media (max-width: 960px) {
  .layout-home .svc-block { padding: 26px 0 24px; }
  .layout-home .svc-block h2 { font-size: 25px; line-height: 1.2; }
  /* the homepage was carrying its desktop indent (44px left, 40px
     right) onto phones — a fifth of a 390px screen spent on margin */
  .content main,
  .layout-home .content main { padding-left: 22px; padding-right: 22px; }
}
