/* ==========================================================================
   ravilaw.com v2 design system: Direction A, "Refined classic"
   One stylesheet for the whole site. Sections:
     1. Tokens        5. Header and menu     9.  Content blocks
     2. Base          6. Buttons             10. Blog
     3. Type          7. Heroes              11. Footer
     4. Layout        8. Section helpers     12. Preview tools
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --navy: #172636;
  --navy-2: #22364b;
  --navy-deep: #101b27;
  --ink: #1a1c1e;
  --text: #262b31;
  --muted: #55606b;
  --mist: #eef2f6;
  --mist-2: #e2e8ee;
  --rule: #d3dbe3;
  --brass: #a8895a;
  --brass-light: #d9c29a;
  --white: #fff;

  --serif: "orpheus-pro", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --fs-body: clamp(16px, 15px + .3vw, 18px);
  --fs-lead: clamp(18px, 15.5px + .55vw, 21px);
  --fs-small: 14.5px;
  --fs-h1: clamp(40px, 26px + 3.4vw, 72px);
  --fs-h2: clamp(32px, 22px + 2.2vw, 50px);
  --fs-h3: clamp(24px, 19px + 1vw, 31px);
  --fs-h4: clamp(21px, 18px + .5vw, 25px);

  --wrap: 1200px;
  --narrow: 780px;
  --gutter: clamp(20px, 5vw, 64px);
  --sec: clamp(64px, 40px + 5vw, 110px);
  --head-h: 84px;
}
@media (max-width: 900px) { :root { --head-h: 68px; } }

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
body {
  margin: 0; background: var(--white); color: var(--text);
  font-family: var(--sans); font-size: var(--fs-body); line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-color: var(--brass); }
::selection { background: var(--brass-light); color: var(--ink); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--navy); color: #fff; padding: 10px 14px; text-decoration: none; }
.skip:focus { top: 12px; }
main:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 3. Type ------------------------------------------------------------------ */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; color: var(--ink); line-height: 1.12; margin: 0; letter-spacing: -.005em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.2; }
h4 { font-size: var(--fs-h4); line-height: 1.25; }
p { margin: 0 0 1em; text-wrap: pretty; }
.lead { font-size: var(--fs-lead); line-height: 1.6; }
.eyebrow { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); margin: 0 0 16px; }
.muted { color: var(--muted); }
.prose > :last-child { margin-bottom: 0; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.25em; }
.prose li { margin: .4em 0; padding-left: .2em; }
.prose li::marker { color: var(--brass); }
.prose a { text-decoration: underline; }
.prose strong { font-weight: 600; color: var(--ink); }
.nowrap { white-space: nowrap; }

/* 4. Layout ---------------------------------------------------------------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); }
.sec { padding: var(--sec) 0; position: relative; }
.sec--tight { padding: calc(var(--sec) * .6) 0; }
.tone-white { background: var(--white); }
.tone-mist { background: var(--mist); }
.tone-navy { background: var(--navy); color: rgba(255,255,255,.88); }
.tone-navy h1, .tone-navy h2, .tone-navy h3, .tone-navy h4 { color: #fff; }
.tone-navy .muted { color: rgba(255,255,255,.72); }
.tone-navy a { color: #fff; }
/* two sections of the same tone in a row: no double spacing */
.tone-white + .tone-white, .tone-mist + .tone-mist { padding-top: 0; }

/* 5. Header and menu ------------------------------------------------------- */
.site-head { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--rule); backdrop-filter: saturate(1.2) blur(6px); }
.site-head .wrap { display: flex; align-items: center; gap: 28px; height: var(--head-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand img { height: 46px; width: auto; }
.brand span { font-family: var(--serif); font-size: 23px; font-weight: 600; line-height: 1.02; }
.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; font-size: 15.5px; }
.nav > a, .nav-group > button { color: var(--ink); text-decoration: none; background: none; border: 0; padding: 6px 0; font: inherit; cursor: pointer; }
.nav > a:hover, .nav-group > button:hover, .nav .is-current { box-shadow: inset 0 -1px 0 currentColor; }
.nav-group { position: relative; }
.nav-group > button::after { content: ""; display: inline-block; width: .38em; height: .38em; margin-left: .5em; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: translateY(-.25em) rotate(45deg); }
.nav-menu {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%);
  min-width: 290px; background: #fff; border-top: 2px solid var(--brass); box-shadow: 0 18px 40px rgba(16,27,39,.16);
  padding: 10px 0; display: none; flex-direction: column;
}
.nav-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; } /* hover bridge */
.nav-group:hover .nav-menu, .nav-group:focus-within .nav-menu, .nav-group.is-open .nav-menu { display: flex; }
.nav-menu a { padding: 9px 22px; text-decoration: none; color: var(--ink); }
.nav-menu a:hover, .nav-menu a.is-current { background: var(--mist); }
.head-cta { flex: none; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 11px 8px; }
.menu-btn span { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; }
@media (max-width: 1080px) { .nav { gap: 20px; font-size: 15px; } .site-head .wrap { gap: 20px; } }
@media (max-width: 980px) {
  .site-head .nav, .site-head .head-cta { display: none; }
  .menu-btn { display: block; }
  .brand img { height: 38px; } .brand span { font-size: 19px; }
  .mobile-menu {
    position: fixed; inset: var(--head-h) 0 0 0; z-index: 59; background: #fff; overflow-y: auto;
    padding: 18px var(--gutter) 40px; flex-direction: column;
  }
  .menu-open .mobile-menu { display: flex; }
  .menu-open { overflow: hidden; }
  .mobile-menu a { text-decoration: none; color: var(--ink); padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 19px; }
  .mobile-menu .group { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); padding: 18px 0 4px; }
  .mobile-menu .sub { padding-left: 14px; font-size: 17px; }
  .mobile-menu .btn { margin-top: 22px; border-bottom: 0; }
  .mobile-menu .call { text-align: center; border-bottom: 0; font-weight: 500; }
}

/* 6. Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; text-align: center;
  font-family: var(--sans); font-weight: 500; font-size: 16px; line-height: 1.25; letter-spacing: .01em;
  padding: 15px 26px; border: 1px solid var(--navy); background: var(--navy); color: #fff; text-decoration: none;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--navy-2); border-color: var(--navy-2); text-decoration: none; }
.btn--light { background: #fff; color: var(--navy); border-color: #fff; }
.btn--light:hover { background: var(--mist); border-color: var(--mist); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.65); }
.btn--ghost-light:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--small { padding: 11px 18px; font-size: 14.5px; }
.btn--block { display: flex; width: 100%; }
.tone-navy .btn:not(.btn--ghost-light) { background: #fff; color: var(--navy); border-color: #fff; }
.tone-navy .btn:not(.btn--ghost-light):hover { background: var(--mist); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (max-width: 600px) { .actions .btn { flex: 1 1 100%; } }

/* 7. Heroes ---------------------------------------------------------------- */
/* home: full-width photo, copy on the left over a navy fade */
.hero { position: relative; color: #fff; min-height: clamp(520px, 74vh, 700px); display: flex; align-items: center; overflow: hidden; background: var(--navy); }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(23,38,54,.95) 0%, rgba(23,38,54,.84) 42%, rgba(23,38,54,.25) 100%); }
.hero .wrap { position: relative; z-index: 2; padding-top: 80px; padding-bottom: 80px; }
.hero-copy { max-width: 650px; }
.hero .eyebrow { color: var(--brass-light); }
.hero h1 { color: #fff; }
.hero .sub { font-size: var(--fs-lead); line-height: 1.55; color: rgba(255,255,255,.9); margin: 22px 0 16px; max-width: 580px; }
.hero .strip { font-size: 15px; letter-spacing: .02em; margin: 0 0 30px; }
.hero .strip i { font-style: normal; color: var(--brass-light); padding: 0 .45em; }
@media (max-width: 760px) {
  .hero { min-height: 0; }
  .hero::before { background: linear-gradient(180deg, rgba(23,38,54,.9), rgba(23,38,54,.84)); }
  .hero .wrap { padding-top: 56px; padding-bottom: 56px; }
}

/* service pages: light panel framed in navy, with an optional price card */
.page-hero { background: var(--navy); padding: clamp(18px, 4vw, 56px) 0; }
.page-hero .panel { background: var(--mist); padding: clamp(30px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.page-hero .panel.solo { grid-template-columns: minmax(0, 860px); }
.crumbs { font-size: 13.5px; color: var(--muted); margin: 0 0 16px; letter-spacing: .03em; }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; }
.crumbs span { padding: 0 .5em; color: var(--brass); }
.page-hero h1 { font-weight: 700; }
.page-hero .tagline { font-family: var(--sans); font-weight: 600; font-size: var(--fs-lead); color: var(--ink); margin: 18px 0 10px; line-height: 1.4; }
.page-hero .lede { margin: 14px 0 0; }
.page-hero .lede p { font-size: var(--fs-lead); line-height: 1.6; }
.page-hero .actions { margin-top: 26px; }
.card-price { background: #fff; border-top: 3px solid var(--brass); padding: 30px; }
.card-price .label { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.card-price .amount { font-variant-numeric: lining-nums; font-family: var(--serif); font-size: clamp(36px, 30px + 1.4vw, 50px); font-weight: 600; color: var(--ink); line-height: 1.1; margin: 6px 0 10px; }
.card-price p { font-size: 15.5px; color: var(--muted); margin: 0 0 18px; }
.card-price .btn + .btn { margin-top: 10px; }
@media (max-width: 860px) { .page-hero .panel { grid-template-columns: 1fr; } }

/* 8. Section helpers ------------------------------------------------------- */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px 60px; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head p { margin: 0; max-width: 460px; color: var(--muted); }
.tone-navy .sec-head p { color: rgba(255,255,255,.75); }
.sec-head--center { display: block; text-align: center; }
.sec-head--center p { margin: 12px auto 0; }
@media (max-width: 760px) { .sec-head { display: block; } .sec-head p { margin-top: 12px; } }

/* 9. Content blocks -------------------------------------------------------- */
/* quick facts */
.facts { border-bottom: 1px solid var(--rule); }
.facts .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px; padding-top: 52px; padding-bottom: 52px; }
.fact::before { content: ""; display: block; width: 36px; height: 2px; background: var(--brass); margin-bottom: 16px; }
.fact .fact-t { font-family: var(--serif); font-weight: 600; color: var(--ink); font-size: clamp(22px, 19px + .5vw, 26px); line-height: 1.2; margin: 0 0 6px; }
.fact p:not(.fact-t) { margin: 0; font-size: 15.5px; color: var(--muted); line-height: 1.55; }
@media (max-width: 900px) { .facts .wrap { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 480px) { .facts .wrap { grid-template-columns: 1fr; } }

/* practice areas: numbered rows, the whole row is a link */
.svc-list { border-bottom: 1px solid var(--rule); }
.svc { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.35fr) 32px; gap: 28px; align-items: baseline; padding: 30px 0; border-top: 1px solid var(--rule); text-decoration: none; color: inherit; }
.svc .n { font-family: var(--serif); font-size: 22px; color: var(--brass); font-variant-numeric: lining-nums; }
.svc h3 { font-size: clamp(25px, 20px + 1vw, 32px); }
.svc p { margin: 0; color: var(--muted); }
.svc .arr { color: var(--navy); font-size: 22px; transition: transform .2s; }
.svc:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: var(--brass); }
.svc:hover .arr { transform: translateX(4px); }
@media (max-width: 760px) {
  .svc { grid-template-columns: 34px minmax(0, 1fr); gap: 6px 12px; padding: 24px 0; }
  .svc p { grid-column: 2; } .svc .arr { display: none; }
}

/* split rows: heading left, text right (intro sections and every Q&A) */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: clamp(20px, 5vw, 70px); }
.split + .split { border-top: 1px solid var(--rule); margin-top: clamp(30px, 4vw, 44px); padding-top: clamp(30px, 4vw, 44px); }
.split .prose { max-width: 68ch; }
.split .prose p, .split .prose li { font-size: var(--fs-lead); line-height: 1.6; }
.split .prose .btn { margin-top: 10px; }
.split h2, .split h3 { font-size: var(--fs-h3); line-height: 1.2; }
.tone-navy .split + .split { border-top-color: rgba(255,255,255,.2); }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; gap: 14px; } }

/* numbered steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(26px, 4vw, 44px); counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li { counter-increment: step; }
.steps li::before { font-variant-numeric: lining-nums; content: counter(step, decimal-leading-zero); display: block; font-family: var(--serif); font-size: 54px; line-height: 1; color: var(--brass); margin-bottom: 12px; }
.steps h3 { font-size: clamp(23px, 19px + .8vw, 28px); margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); }
.tone-navy .steps p { color: rgba(255,255,255,.82); }
.steps--list { grid-template-columns: 1fr; gap: 26px; }
.steps--list li { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 10px; }
.steps--list li::before { grid-row: span 2; font-size: 44px; }
.steps--list h3 { align-self: end; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* recent matters */
.matters { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 34px 30px; }
.matters--n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; }
.matters--n3, .matters--n6, .matters--n9 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.matters--n4, .matters--n8 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .matters[class*="matters--n"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .matters[class*="matters--n"] { grid-template-columns: 1fr; } }
.matter { border-top: 1px solid rgba(255,255,255,.3); padding-top: 18px; }
.matter h3 { font-style: italic; font-weight: 500; font-size: clamp(22px, 19px + .5vw, 26px); color: var(--brass-light); margin-bottom: 8px; }
.matter h3 a { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
.matter p { margin: 0; font-size: 15.5px; line-height: 1.6; }

/* photo band */
.photo-band { height: clamp(220px, 26vw, 360px); overflow: hidden; background: var(--navy); }
.photo-band img { width: 100%; height: 100%; object-fit: cover; }

/* reviews widget */
.reviews-embed { min-height: 120px; }

/* related posts */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 34px clamp(24px, 3vw, 44px); }
.post-card { border-top: 1px solid var(--rule); padding-top: 18px; }
.tone-navy .post-card { border-top-color: rgba(255,255,255,.25); }
.post-card h3 { font-size: clamp(21px, 18px + .5vw, 24px); margin-bottom: 8px; }
.post-card h3 a { text-decoration: none; }
.post-card h3 a:hover { text-decoration: underline; text-decoration-color: var(--brass); }
.post-card p { margin: 0; font-size: 15.5px; color: var(--muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.tone-navy .post-card p { color: rgba(255,255,255,.78); }

/* two side-by-side topics */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 70px); }
.pair h2 { font-size: var(--fs-h3); margin-bottom: 16px; }
.pair .prose p { font-size: var(--fs-lead); }
@media (max-width: 760px) { .pair { grid-template-columns: 1fr; } }

/* callout over a photo */
.callout { position: relative; overflow: hidden; background: var(--navy); }
.callout > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.callout .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-top: var(--sec); padding-bottom: var(--sec); }
.callout .box { background: var(--mist); padding: clamp(26px, 4vw, 44px); }
.callout .box h2 { font-size: var(--fs-h3); margin-bottom: 12px; }
.callout .box p { margin: 0; }
@media (max-width: 760px) { .callout .wrap { grid-template-columns: 1fr; } }

/* closing call to action, with the pointed divider from the original site */
.cta { background: var(--navy); color: rgba(255,255,255,.86); text-align: center; position: relative; padding: calc(var(--sec) + 30px) 0 var(--sec); }
.cta::before, .cta::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: clamp(34px, 5vw, 64px); }
.cta::before { background: var(--notch, #fff); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.cta::after { background: var(--brass); clip-path: polygon(0 0, 50% 100%, 100% 0, 100% 3px, 50% calc(100% - 3px), 0 3px); }
.cta.after-mist { --notch: var(--mist); }
.cta.after-navy { --notch: var(--navy-2); }
.cta h2 { color: #fff; margin-bottom: 14px; }
.cta p { max-width: 600px; margin: 0 auto 30px; font-size: var(--fs-lead); }
.cta .actions { justify-content: center; }
.cta .btn { background: #fff; color: var(--navy); border-color: #fff; }
.cta .btn:hover { background: var(--mist); }
.cta .btn.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.65); }

/* small centered note */
.note { text-align: center; font-size: var(--fs-small); max-width: 760px; margin: 0 auto; }

/* attorney profile */
.profile { display: grid; grid-template-columns: minmax(220px, 360px) minmax(0, 1fr); gap: clamp(30px, 5vw, 80px); align-items: start; }
.profile .portrait { background: var(--mist); }
.profile .portrait img { width: 100%; }
.profile .creds { margin-top: 18px; border-top: 3px solid var(--brass); background: var(--mist); padding: 22px 24px; font-size: 15.5px; }
.profile .creds h2 { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.profile .creds ul { list-style: none; padding: 0; margin: 0 0 14px; }
.profile .creds li { padding: 4px 0; }
.profile .creds :last-child { margin-bottom: 0; }
.profile .bio h2 { font-size: var(--fs-h3); margin: 0 0 16px; }
.profile .bio p { font-size: var(--fs-lead); line-height: 1.65; }
@media (max-width: 760px) { .profile { grid-template-columns: 1fr; } .profile .portrait { max-width: 320px; } }

/* 10. Blog ----------------------------------------------------------------- */
.blog-head { background: var(--navy); color: rgba(255,255,255,.85); padding: clamp(50px, 7vw, 90px) 0; }
.blog-head h1 { color: #fff; }
.blog-head p { margin: 14px 0 0; max-width: 620px; font-size: var(--fs-lead); }
.blog-head .topics { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-top: 24px; font-size: 14.5px; }
.blog-head .topics span { color: var(--brass-light); font-weight: 600; letter-spacing: .06em; margin-right: 4px; }
.blog-head .topics a { color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.35); padding: 6px 12px; }
.blog-head .topics a:hover { border-color: var(--brass-light); }
.post-row a.cat { text-decoration: none; }
.post-list { list-style: none; margin: 0; padding: 0; }
.post-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) 200px; gap: 30px; padding: 32px 0; border-top: 1px solid var(--rule); align-items: start; }
.post-row:last-child { border-bottom: 1px solid var(--rule); }
.post-row .date { font-size: 13.5px; color: var(--muted); letter-spacing: .03em; padding-top: 6px; }
.post-row .cat { display: block; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); margin-bottom: 8px; }
.post-row h2 { font-size: clamp(23px, 19px + .9vw, 30px); line-height: 1.2; margin-bottom: 10px; }
.post-row h2 a { text-decoration: none; }
.post-row h2 a:hover { text-decoration: underline; text-decoration-color: var(--brass); }
.post-row p { margin: 0; color: var(--muted); }
.post-row .thumb { aspect-ratio: 4 / 3; overflow: hidden; background: var(--mist); }
.post-row .thumb:empty { background: none; }
.post-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .post-row { grid-template-columns: minmax(0, 1fr); gap: 8px; } .post-row .thumb { display: none; } .post-row .date { padding: 0; } }

.article-head { background: var(--mist); padding: clamp(46px, 6vw, 84px) 0 clamp(36px, 5vw, 60px); }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.article-meta a { text-decoration: none; } .article-meta a:hover { text-decoration: underline; }
.article-meta .cat { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); }
.article-head h1 { font-size: clamp(36px, 24px + 2.8vw, 60px); line-height: 1.1; }
.article { padding: clamp(40px, 6vw, 70px) 0 var(--sec); }
.article .prose { font-size: clamp(17px, 16px + .3vw, 19px); line-height: 1.75; overflow-wrap: break-word; }
.article .prose h2 { font-size: clamp(28px, 22px + 1.2vw, 38px); margin: 1.6em 0 .5em; }
.article .prose h3 { font-size: clamp(22px, 19px + .6vw, 27px); margin: 1.5em 0 .4em; }
.article .prose hr { border: 0; text-align: center; margin: 2em 0; }
.article .prose hr::after { content: "\2022 \2022 \2022"; color: var(--brass); letter-spacing: .6em; }
.article .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--rule); font-size: 14px; }
.article .tags a { text-decoration: none; padding: 6px 12px; border: 1px solid var(--rule); }
.article .tags a:hover { border-color: var(--brass); }
.article-cta { margin-top: 44px; background: var(--mist); border-top: 3px solid var(--brass); padding: 28px 30px; }
.article-cta h2 { font-size: clamp(24px, 20px + .8vw, 30px); margin-bottom: 8px; }
.article-cta p { margin: 0 0 18px; color: var(--muted); }
.pager { display: grid; grid-template-columns: 1fr 1fr; background: var(--navy); }
.pager a { display: block; padding: clamp(30px, 4vw, 50px) var(--gutter); text-decoration: none; color: #fff; }
.pager a:hover { background: var(--navy-2); }
.pager .dir { display: block; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-light); margin-bottom: 8px; }
.pager .t { font-family: var(--serif); font-size: clamp(21px, 18px + .8vw, 28px); font-weight: 600; line-height: 1.2; }
.pager .next { text-align: right; border-left: 1px solid rgba(255,255,255,.15); }
@media (max-width: 640px) { .pager { grid-template-columns: 1fr; } .pager .next { text-align: left; border-left: 0; border-top: 1px solid rgba(255,255,255,.15); } }

/* 11. Footer --------------------------------------------------------------- */
.site-foot { background: #fff; border-top: 1px solid var(--rule); font-size: 15px; color: var(--muted); }
.site-foot .cols { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 40px; padding-top: 60px; padding-bottom: 40px; }
.site-foot .name { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--ink); line-height: 1.1; margin-bottom: 12px; }
.site-foot h2 { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); margin: 6px 0 12px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin: 6px 0; }
.site-foot a { text-decoration: none; color: var(--text); }
.site-foot a:hover { text-decoration: underline; text-decoration-color: var(--brass); }
.site-foot address { font-style: normal; line-height: 1.7; }
.site-foot .legal { border-top: 1px solid var(--rule); padding-top: 22px; padding-bottom: 34px; font-size: 13.5px; display: flex; justify-content: space-between; gap: 10px 30px; flex-wrap: wrap; }
.site-foot .legal p { margin: 0; max-width: 820px; }
@media (max-width: 760px) { .site-foot .cols { grid-template-columns: 1fr; gap: 28px; } }

/* 12. Preview tools (preview build only) ------------------------------------ */
.preview-bar { position: fixed; left: 12px; bottom: 12px; z-index: 300; display: flex; gap: 8px; align-items: center; font: 600 12px/1 var(--sans); }
.preview-bar .tag { background: #b00020; color: #fff; padding: 9px 11px; border-radius: 3px; }
.preview-bar button { font: inherit; background: #fff; color: var(--ink); border: 1px solid var(--rule); border-radius: 3px; padding: 8px 11px; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.preview-bar button[aria-pressed="true"] { background: #fff2a8; border-color: #e0c44c; }
.show-changes .chg { background: #fff2a8; color: var(--ink); box-shadow: 0 0 0 2px #fff2a8; border-radius: 1px; }
.show-changes .tone-navy .chg, .show-changes .hero .chg, .show-changes .cta .chg { background: #6b5d1f; color: #fff; box-shadow: 0 0 0 2px #6b5d1f; }
@media print { .site-head, .mobile-menu, .preview-bar { display: none; } }

/* profile portrait: the source photo is very tall, so show a 4:5 crop from the top */
.profile .portrait img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 12%; }

/* ---------- added for the remaining pages ---------- */
.ta-center { text-align: center; }
.sec--flush { padding-top: 0; }

/* long documents (privacy policy) */
.prose--doc { font-size: var(--fs-body); }
.prose--doc h2 { font-size: clamp(24px, 20px + .8vw, 30px); margin: 1.8em 0 .5em; }
.prose--doc h3 { font-size: clamp(20px, 18px + .4vw, 23px); margin: 1.4em 0 .4em; }
.prose--doc > h2:first-child { margin-top: 0; }
.prose--doc .updated { color: var(--muted); font-size: 15px; }

/* long-form rows (county pages) can hold sub-headings and lists */
.split .prose h3 { font-size: clamp(21px, 18px + .5vw, 24px); margin: 1.4em 0 .5em; }
.split .prose > h3:first-child { margin-top: 0; }

/* contact page */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 34px; }
.contact-card { border-top: 2px solid var(--brass); padding-top: 16px; }
.contact-card h3 { font-size: clamp(22px, 19px + .5vw, 26px); margin-bottom: 8px; }
.contact-card .prose p { margin: 0 0 .4em; }
.contact-card a { text-decoration: none; } .contact-card a:hover { text-decoration: underline; }
.contact-map { aspect-ratio: 4 / 3; background: var(--mist); }
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .contact-cards { grid-template-columns: 1fr; } }

/* embedded tools (calculator, scheduling) */
.embed-wrap { max-width: 100%; }
.embed-after { margin-top: 28px; font-size: var(--fs-small); color: var(--muted); }

/* free download with name and email */
.gate { display: grid; grid-template-columns: minmax(220px, 420px) minmax(0, 1fr); gap: clamp(30px, 5vw, 70px); align-items: start; }
.gate-media { background: var(--mist); padding: clamp(14px, 2vw, 24px); position: sticky; top: calc(var(--head-h) + 20px); }
.gate-media img { box-shadow: 0 10px 30px rgba(16,27,39,.15); background: #fff; }
.gate-body h1 { font-size: clamp(34px, 24px + 2.2vw, 54px); }
.gate-price { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--brass); margin: 10px 0 16px; }
.gate-form, .gate-done { background: var(--mist); border-top: 3px solid var(--brass); padding: clamp(22px, 3vw, 32px); margin: 26px 0 18px; }
.gate-title { font-size: clamp(22px, 19px + .6vw, 27px); margin-bottom: 16px; }
.gate-form .field { margin-bottom: 14px; }
.gate-form label { display: block; font-weight: 500; font-size: 15px; margin-bottom: 6px; color: var(--ink); }
.gate-form input[type="text"], .gate-form input[type="email"] { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid #b9c4cf; background: #fff; color: var(--ink); border-radius: 0; }
.gate-form input:focus { outline: 2px solid var(--brass); outline-offset: 1px; border-color: var(--navy); }
.gate-form input[aria-invalid="true"] { border-color: #b00020; }
.gate-form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 6px 0 14px; }
.gate-form .check input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.fine { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.gate-form .fine { margin: 0 0 18px; }
.form-status { margin: 12px 0 0; font-size: 15px; }
.form-status.is-error { color: #b00020; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 800px) { .gate { grid-template-columns: 1fr; } .gate-media { position: static; max-width: 360px; } }

/* free resources list */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 300px)); gap: 30px; }
.product { display: block; text-decoration: none; color: inherit; }
.product-img { display: block; background: var(--mist); padding: 18px; margin-bottom: 14px; }
.product-img img { box-shadow: 0 8px 24px rgba(16,27,39,.14); background: #fff; }
.product-t { display: block; font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--ink); line-height: 1.2; }
.product-p { display: block; color: var(--brass); font-weight: 600; margin-top: 4px; }
.product:hover .product-t { text-decoration: underline; text-decoration-color: var(--brass); }

/* articles: images, buttons, embedded video, question lists */
.article .prose figure { margin: 2em 0; }
.article .prose figure img { width: 100%; }
.article .prose .article-btn { margin: 1.6em 0; }
.article .prose .article-btn .btn { text-decoration: none; }
.article .prose .video { position: relative; padding-bottom: 56.25%; height: 0; margin: 2em 0; }
.article .prose .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.article .prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--brass); color: var(--muted); }
.article .prose table { display: block; overflow-x: auto; max-width: 100%; width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95em; }
.article .prose th, .article .prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.article-reviews { margin-top: 40px; }

/* the probate calculator keeps its own code; match its type to the site */
.rp-calc { font-family: var(--sans) !important; }
.rp-calc h1, .rp-calc h2, .rp-calc h3, .rp-calc .rp-bignum { font-family: var(--serif) !important; font-weight: 600; }
.rp-calc h1 { font-size: clamp(34px, 24px + 2.2vw, 52px) !important; }
