/* Leyva Law demo: Proof And Rhythm layer. Loads after styles.css, overrides only.
   Spacing scale: 8 / 16 / 24 / 40 / 64 / 96. Gold is structure (hairlines, numerals). */

:root {
  --pr-gold-line: rgba(194, 161, 76, 0.42);
  --pr-gold-numeral: #98792a;
  --pr-on-navy: #c8d0da;
}

.pr-lining, .proof-fig, .step-n, .kf-fig { font-variant-numeric: lining-nums; }

/* ---------- focus ---------- */
.pq-btn:focus-visible, .pq-dot:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.rel-list a:focus-visible, .kf-more:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.faq summary { padding-left: 14px; padding-right: 14px; }
.faq details p { padding-left: 14px; padding-right: 14px; }
.faq summary:focus-visible { outline: 2px solid var(--navy-900); outline-offset: 2px; border-radius: 2px; }
.rel-list a:focus-visible { outline-color: var(--navy-900); outline-offset: -4px; }

/* ---------- mobile hero: portrait above the paragraph, no squeeze ---------- */
/* Text stays left-aligned (Angel, 2 Nov 2026: no centred hero text). */
@media (max-width: 719px) {
  .hero-portrait { float: none; width: min(156px, 46vw); margin: 34px auto 4px; }
  /* the caption may run wider than the portrait so the role holds one line */
  .hero-portrait figcaption { margin-left: -80px; margin-right: -80px; }
  .hero-portrait figcaption span { white-space: nowrap; }
  .hero .lede { margin-top: 26px; }
}

/* ---------- proof row ---------- */
.proof { background: var(--cream); border-bottom: 1px solid var(--gold-soft); }
.proof-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px 0; }
.proof-item {
  display: grid; grid-row: span 2; justify-items: center; align-content: center;
  text-align: center; row-gap: 8px; margin: 16px 0; padding: 8px 12px;
}
@supports (grid-template-rows: subgrid) {
  .proof-item { grid-template-rows: subgrid; }
}
.proof-item:nth-child(even) { border-left: 1px solid var(--pr-gold-line); }
.proof-item:nth-child(n+3) { margin-top: 16px; }
/* one type size for all four figures; tops share a line, captions share the next subgrid row */
.proof-fig {
  align-self: start; font-family: var(--serif); font-weight: 600; color: var(--navy-900);
  font-size: clamp(1.3rem, 0.95rem + 1.5vw, 1.8rem); line-height: 1.12; text-wrap: balance;
}
.proof-fig-rating { white-space: nowrap; }
.proof-stars { color: var(--gold); font-size: 0.5em; letter-spacing: 0.12em; vertical-align: 0.28em; font-weight: 400; }
.proof-cap {
  align-self: start; font-size: 0.7rem; font-weight: 600; line-height: 1.5; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--gold-text); text-wrap: balance;
}
@media (min-width: 900px) {
  .proof-list { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 16px 0; }
  .proof-item { margin: 24px 0; padding: 12px 20px; row-gap: 10px; }
  .proof-item:nth-child(n+3) { margin-top: 24px; }
  .proof-item:nth-child(even) { border-left: 0; }
  .proof-item + .proof-item { border-left: 1px solid var(--pr-gold-line); }
  .proof-cap { font-size: 0.74rem; letter-spacing: 0.16em; }
  .proof-fig { font-size: clamp(1.3rem, 0.55rem + 1.2vw, 1.8rem); }
  .proof-list { padding-left: 32px; padding-right: 32px; }
}
/* phones and tablets: rating, bar, language on one row; the fee phrase takes its own full-width row */
@media (max-width: 899px) {
  .proof-list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .proof-item { grid-column: span 2; padding: 8px 4px; }
  .proof-item:nth-child(even) { border-left: 0; }
  .proof-item:nth-child(2), .proof-item:nth-child(3) { border-left: 1px solid var(--pr-gold-line); }
  .proof-item:nth-child(4) { grid-column: 1 / -1; border-top: 1px solid var(--pr-gold-line); margin-top: 8px; padding-top: 20px; }
  .proof-item:nth-child(n+3) { margin-top: 16px; }
  .proof-item:nth-child(4) { margin-top: 8px; }
}
@media (max-width: 599px) {
  .proof-fig { font-size: 1.15rem; }
  .proof-cap { letter-spacing: 0.1em; }
}
/* desktop: the fee phrase cell is a little wider so the sentence holds two lines */
@media (min-width: 900px) {
  .proof-list { grid-template-columns: 1fr 1fr 1fr 1.5fr; }
}
/* the fee phrase is the same size as its siblings and wraps inside its cell, kept as one sentence */
.proof-fig-phrase { text-wrap: balance; }

/* screen reader only text (13 Nov 2026): the stars are aria-hidden, so the rating carries a hidden
   " out of 5 stars," after the number. Recipe from the Modern Web Guidance accessibility guide, kept
   whole: the :where() guard only matters for focusable content (it shows on focus) and is harmless here. */
.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

/* ---------- section rhythm ---------- */
@media (min-width: 961px) {
  .block { padding: 96px 0; }
}
.process .wrap > .kicker, .process .wrap > h2,
.faq .wrap > .kicker, .faq .wrap > h2,
.reviews .wrap > .kicker, .reviews .wrap > h2 { text-align: center; }
.process .wrap > h2 { margin-bottom: 56px; }
.faq .wrap > h2 { margin-bottom: 40px; }

/* why band: three statements separated by gold hairlines */
.band { padding: 80px 0; }
.band-grid { gap: 0; }
.band-item { text-align: center; padding: 0 40px; }
.band-item + .band-item { border-left: 1px solid var(--pr-gold-line); }
.band-title { font-size: 1.6rem; margin-bottom: 10px; }
.band-item p:not(.band-title) { max-width: 20rem; margin: 0 auto; }
@media (max-width: 1000px) {
  .band { padding: 56px 0; }
  .band-item { padding: 32px 0; }
  .band-item:first-child { padding-top: 0; }
  .band-item:last-child { padding-bottom: 0; }
  .band-item + .band-item { border-left: 0; border-top: 1px solid var(--pr-gold-line); }
}

/* why band: the first statement is set as a large left-aligned serif headline, the other two stay quiet */
@media (min-width: 1001px) {
  .band { padding: 96px 0; }
  .band-grid { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
  .band-item:not(:first-child) .band-title { line-height: 1.2; margin-top: 0; }
  .band-item { text-align: left; padding: 0 40px; }
  .band-item:first-child { padding-left: 0; padding-right: 56px; }
  .band-item:first-child .band-title {
    font-size: clamp(2.8rem, 4.4vw, 4.2rem); line-height: 1.02; font-weight: 500;
    color: #f4f1ea; letter-spacing: -0.01em; margin-bottom: 20px; text-wrap: balance;
  }
  .band-item:first-child p:not(.band-title) { margin: 0; max-width: 30rem; }
  .band-item:not(:first-child) { padding-top: 0; }
  .band-item p:not(.band-title) { margin-left: 0; }
}
@media (max-width: 1000px) {
  .band-item:first-child .band-title { font-size: clamp(2.2rem, 8vw, 3rem); line-height: 1.05; font-weight: 500; color: #f4f1ea; }
}

/* steps: open columns with large numerals, no boxed cards */
.process .steps { gap: 0; }
.process .steps li, .process .steps li:hover {
  background: transparent; border: 0; box-shadow: none; transform: none;
  padding: 8px 40px; text-align: center;
}
.process .steps li + li { border-left: 1px solid var(--pr-gold-line); }
.step-n { font-size: 4.6rem; font-weight: 500; color: var(--pr-gold-numeral); margin-bottom: 14px; }
.steps h3 { font-size: 1.5rem; margin-bottom: 10px; text-wrap: balance; }
.steps p { max-width: 21rem; margin: 0 auto; }
@media (max-width: 1000px) {
  .process .steps li, .process .steps li:hover { padding: 36px 0 8px; }
  .process .steps li:first-child, .process .steps li:first-child:hover { padding-top: 0; }
  .process .steps li + li { border-left: 0; border-top: 1px solid var(--pr-gold-line); margin-top: 28px; }
}

/* ---------- reviews: navy section, one pull-quote at a time ---------- */
.reviews { background: var(--navy-950); color: #eef1f5; padding: 96px 0 88px; }
.reviews .kicker { color: var(--gold); }
.reviews .wrap > h2 { color: #fff; margin-bottom: 16px; }
.reviews .gsummary { justify-content: center; text-align: center; color: var(--pr-on-navy); margin-bottom: 56px; }
.reviews .gsummary strong { color: #fff; }
.reviews .arrow-link { color: var(--gold); border-color: var(--pr-gold-line); }
.reviews .arrow-link:hover { color: #fff; border-color: var(--gold); }
.reviews .arrow-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.reviews .review-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; max-width: 50rem; margin: 0 auto; }
.reviews .review {
  background: transparent; border: 0; padding: 0 4px; margin: 0;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.reviews .review .stars { color: var(--gold); font-size: 0.9rem; letter-spacing: 6px; padding-left: 6px; margin-bottom: 24px; }
.reviews .review blockquote {
  margin: 0 auto 32px; flex: none; max-width: 42rem; width: 100%;
  font-size: clamp(1.5rem, 1rem + 1.9vw, 2.3rem); line-height: 1.28;
  min-height: 6.6lh; display: flex; align-items: center; justify-content: center;
}
@media (max-width: 560px) {
  .reviews .review blockquote { min-height: 8.6lh; }
}
.reviews .review blockquote p {
  font-family: var(--serif); font-style: italic; font-weight: 500; color: #f4f1ea;
  font-size: 1em; line-height: inherit; text-wrap: pretty;
}
.reviews .review blockquote p::before { content: '\201C'; color: var(--gold); }
.reviews .review blockquote p::after { content: '\201D'; color: var(--gold); }
.reviews .review figcaption {
  flex-direction: column; justify-content: flex-start; gap: 6px;
  width: min(240px, 100%); border-top: 1px solid var(--pr-gold-line); padding-top: 20px;
}
.reviews .review figcaption strong {
  color: #fff; font-size: 0.9rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
}
.reviews .gsrc { color: var(--gold); font-size: 0.72rem; letter-spacing: 0.14em; }
.reviews .review-note { text-align: center; color: #a8b2be; font-size: 0.82rem; margin-top: 40px; max-width: 34rem; margin-left: auto; margin-right: auto; text-wrap: balance; }
.reviews .review blockquote p { font-variant-numeric: lining-nums; }

/* JS present: stack slides in one cell so the tallest sets the height (no layout shift) */
.reviews.is-pq .review-grid { gap: 0; }
.reviews.is-pq .review {
  grid-area: 1 / 1; opacity: 0; visibility: hidden;
  transition: opacity 0.45s ease, visibility 0s linear 0.45s;
}
.reviews.is-pq .review.is-active {
  opacity: 1; visibility: visible; transition: opacity 0.45s ease, visibility 0s;
}
.pq-controls { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 48px; }
.pq-controls[hidden] { display: none; }
.pq-btn {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--gold); border: 1px solid rgba(194, 161, 76, 0.6);
  border-radius: 3px; cursor: pointer; transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.pq-btn:hover { background: rgba(194, 161, 76, 0.14); border-color: var(--gold); color: #fff; }
.pq-btn svg { width: 18px; height: 18px; }
.pq-dots { display: flex; margin: 0 8px; }
.pq-dot { position: relative; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; }
.pq-dot::before {
  content: ''; position: absolute; left: 9px; right: 9px; top: 50%; height: 2px; margin-top: -1px;
  background: rgba(194, 161, 76, 0.62); transition: background 0.3s, left 0.3s, right 0.3s;
}
.pq-dot:hover::before { background: var(--gold); }
.pq-dot[aria-current="true"]::before { background: #e3c36a; left: 4px; right: 4px; height: 3px; margin-top: -1.5px; }
.pq-sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
@media (max-width: 560px) {
  .reviews { padding: 64px 0 56px; }
  .reviews .gsummary { margin-bottom: 40px; }
  .pq-controls { gap: 4px; margin-top: 36px; }
  .pq-dots { margin: 0 4px; }
}

/* contact grid: children may shrink, long button labels wrap (fixes 360 px overflow) */
.contact-grid > * { min-width: 0; }
.contact-side .btn { white-space: normal; }

/* ---------- practice pages: Key Facts ---------- */
section[id], article[id] { scroll-margin-top: 76px; }
.prose h2[id], .prose h3[id] { scroll-margin-top: 96px; }
.keyfacts {
  background: var(--navy-950); color: #eef1f5; border-top: 3px solid var(--gold);
  padding: 40px 32px 16px; margin: 0 0 56px; text-align: center;
}
.kf-kicker {
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 8px;
}
.keyfacts .kf-title { color: #fff; font-size: clamp(1.9rem, 4vw, 2.5rem); margin-bottom: 32px; }
.kf-list { display: grid; grid-template-columns: minmax(0, 1fr); text-align: center; }
.kf-item { padding: 28px 0 24px; border-top: 1px solid var(--pr-gold-line); display: flex; flex-direction: column; align-items: center; }
.kf-item .kf-more { margin-top: auto; }
.kf-item p { margin-bottom: 8px; }
.kf-head { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 14px; }
.kf-fig { font-family: var(--serif); font-weight: 600; font-size: 2.3rem; line-height: 1; color: var(--gold); }
.kf-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #fff;
}
.kf-item p { font-size: 0.9rem; line-height: 1.6; color: var(--pr-on-navy); max-width: 24rem; margin: 0 auto; }
.kf-more {
  display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px;
  font-size: 0.86rem; font-weight: 600; color: var(--gold); text-decoration: none;
  border-bottom: 1px solid transparent;
}
.kf-more::after { content: '\00a0\2192'; }
.kf-more:hover { color: #fff; }
@media (min-width: 761px) {
  .keyfacts { padding: 44px 8px 20px; }
  .kf-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kf-item { padding: 8px 20px 8px; border-top: 0; }
  .kf-item + .kf-item { border-left: 1px solid var(--pr-gold-line); }
}

/* ---------- practice pages: related practices ---------- */
.related { background: var(--paper); border-top: 1px solid var(--line); padding: 72px 0 80px; }
.related .wrap { max-width: 960px; }
.related .kicker, .related h2 { text-align: center; }
.related h2 { margin-bottom: 40px; }
.rel-list { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--pr-gold-line); }
.rel-list li { border-bottom: 1px solid var(--pr-gold-line); }
.rel-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px; padding: 10px 8px; text-decoration: none;
  font-family: var(--serif); font-size: 1.35rem; font-weight: 600; line-height: 1.2; color: var(--navy-900);
  transition: background 0.18s, color 0.18s;
}
.rel-list a::after { content: '\2192'; font-family: var(--sans); font-size: 1rem; color: var(--gold-text); flex: none; transition: transform 0.18s; }
.rel-list a:hover { background: rgba(194, 161, 76, 0.1); color: var(--gold-text); }
.rel-list a:hover::after { transform: translateX(4px); }
@media (min-width: 600px) {
  .rel-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rel-list a { padding: 10px 24px; }
}
@media (min-width: 900px) {
  .rel-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- practice lists: an icon per link instead of the gold diamond (4 Nov 2026) ---------- */
/* Tabler Icons 3.19.0 (MIT), stroke 1.5 like the site's other line icons; decorative. */
.case-list li:has(.cl-icon) { padding-left: 0; }
.case-list li:has(.cl-icon)::before { display: none; }
.case-list li a:has(.cl-icon) { justify-content: flex-start; gap: 12px; }
.case-list .cl-icon {
  flex: none; display: inline-flex; width: 22px; height: 22px;
  color: var(--gold-strong); transition: color 0.15s, transform 0.15s;
}
.case-list .cl-icon svg { width: 100%; height: 100%; }
.case-list li a:has(.cl-icon) .cl-name { flex: 1; min-width: 0; }
.case-list li a:hover .cl-icon,
.case-list li a:focus-visible .cl-icon { color: var(--gold-text); }
@media (prefers-reduced-motion: no-preference) {
  .case-list li a:hover .cl-icon { transform: translateY(-1px); }
}
