/* Layout: long-form guide, sticky contents rail beside a single reading column; same LegalSnap dot-trio tokens as the homepage. Blue = primary/action, red = secondary/info, orange = verify/attention. */
:root {
  --bg: #ffffff; --band: #f4f5f7; --ink: #2a2d33; --ink-soft: #5d636d; --rule: #d9dce1;
  --primary: #3078b1; --red: #d4343b; --blue: #2f86cc; --orange: #f2951f;
  --red-tint: #fbe6e7; --blue-tint: #e3f0fa; --orange-tint: #fdf0dc;
  --verify-ink: #8a4b00; --on-accent: #ffffff;
  --font-display: "Outfit", "Outfit Fallback", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Sans 3", "Source Sans 3 Fallback", "Segoe UI", Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14171b; --band: #1c2025; --ink: #eceef1; --ink-soft: #a7adb7; --rule: #323840;
    --primary: #5aa8e6; --red: #ef5a60; --blue: #5aa8e6; --orange: #f7ae4d;
    --red-tint: #2c1b1d; --blue-tint: #172430; --orange-tint: #2b2214; --verify-ink: #f7ae4d; --on-accent: #14171b;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #14171b; --band: #1c2025; --ink: #eceef1; --ink-soft: #a7adb7; --rule: #323840;
  --primary: #5aa8e6; --red: #ef5a60; --blue: #5aa8e6; --orange: #f7ae4d;
  --red-tint: #2c1b1d; --blue-tint: #172430; --orange-tint: #2b2214; --verify-ink: #f7ae4d; --on-accent: #14171b;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 18px; line-height: 1.65; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 300; line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); font-weight: 200; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); scroll-margin-top: 1.5rem; }
h3 { font-size: 1.25rem; font-weight: 400; }
p { margin: 0; }
.label { font-family: var(--font-display); font-size: .75rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); }
.dots { display: inline-flex; gap: 4px; align-items: flex-start; }
.dots i { display: block; border-radius: 50%; }
.dots i:nth-child(1) { width: 7px; height: 7px; background: var(--red); margin-top: 8px; }
.dots i:nth-child(2) { width: 12px; height: 12px; background: var(--blue); }
.dots i:nth-child(3) { width: 6px; height: 6px; background: var(--orange); margin-top: 12px; margin-left: -6px; }
a { color: var(--blue); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.btn { display: inline-flex; align-items: center; font-family: var(--font-display); font-weight: 500; font-size: 1rem; text-decoration: none; padding: .85rem 1.6rem; border-radius: 999px; background: var(--primary); color: var(--on-accent); border: 2px solid var(--primary); }
.btn.sm { padding: .5rem 1.1rem; font-size: .9rem; }
.v { display: inline-block; font-family: var(--font-display); font-size: .66rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; background: var(--orange-tint); color: var(--verify-ink); border: 1px solid var(--orange); border-radius: 999px; padding: 0 .55rem; line-height: 1.5; vertical-align: .12em; margin-left: .35rem; white-space: nowrap; }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; flex-wrap: wrap; }
.brand { font-family: var(--font-display); font-weight: 300; font-size: 1.45rem; text-decoration: none; color: var(--ink); display: inline-flex; gap: .45rem; align-items: flex-start; }
.brand b { font-weight: 500; }
.nav ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav ul a { text-decoration: none; font-family: var(--font-display); font-size: .95rem; color: var(--ink-soft); }
.nav ul a.btn { color: var(--on-accent); }
.crumbs { font-family: var(--font-display); font-size: .85rem; color: var(--ink-soft); padding-bottom: 1rem; }
.crumbs a { color: var(--ink-soft); }

.head { padding-block: 1rem 2.5rem; max-width: 52rem; }
.head h1 { margin-top: 1rem; }
.meta { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin-top: 1.25rem; font-family: var(--font-display); font-size: .9rem; color: var(--ink-soft); }
.answer { margin-top: 1.75rem; background: var(--blue-tint); border-radius: 24px; padding: clamp(1.25rem, 3vw, 2rem); }
.answer .label { color: var(--blue); }
.answer p { margin-top: .6rem; font-size: 1.12rem; }
.legend { margin-top: 1rem; font-size: .92rem; color: var(--ink-soft); }

.layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); padding-bottom: 4rem; align-items: start; }
.toc { position: sticky; top: 1.5rem; border-left: 1px solid var(--rule); padding-left: 1.25rem; }
.toc ol { list-style: none; margin: .9rem 0 0; padding: 0; display: grid; gap: .55rem; }
.toc a { font-family: var(--font-display); font-size: .92rem; color: var(--ink-soft); text-decoration: none; display: block; line-height: 1.3; }
.toc a:hover { color: var(--ink); }
article { min-width: 0; max-width: 46rem; }
article section { padding-block: 0 3rem; }
article h2 { margin-bottom: 1.1rem; display: flex; align-items: center; gap: .7rem; }
article h2::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); flex: none; }
article h2.r::before { background: var(--red); } article h2.o::before { background: var(--orange); }
article p + p, article p + ul, article ul + p { margin-top: 1rem; }
article ul { padding-left: 1.2rem; margin: 0; }
article li + li { margin-top: .4rem; }
.tablewrap { overflow-x: auto; margin-top: 1.25rem; border: 1px solid var(--rule); border-radius: 16px; }
table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: .98rem; }
th, td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-family: var(--font-display); font-size: .72rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); background: var(--band); }
td:first-child { font-weight: 600; }
table.narrow { min-width: 0; }
td .cite { display: block; font-size: .85rem; color: var(--ink-soft); font-weight: 400; margin-top: .15rem; }

.steps { list-style: none; padding: 0 !important; margin: 0; counter-reset: s; display: grid; gap: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding-block: 1.25rem; border-top: 1px solid var(--rule); margin: 0 !important; }
.steps li::before { content: counter(s); width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-size: 1.15rem; background: var(--blue-tint); color: var(--primary); }
.steps li:nth-child(3n+2)::before { background: var(--red-tint); color: var(--red); }
.steps li:nth-child(3n)::before { background: var(--orange-tint); color: var(--verify-ink); }
.steps h3 { margin-bottom: .3rem; }
.steps p { color: var(--ink-soft); margin: 0 !important; }

.callout { border: 1px solid var(--rule); border-left: 4px solid var(--orange); border-radius: 12px; padding: 1.1rem 1.4rem; margin-top: 1.25rem; background: var(--band); }
.callout h3 { margin-bottom: .4rem; }
.callout.blue { border-left-color: var(--blue); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 1.25rem; }
.two > div { border-radius: 16px; padding: 1.25rem 1.4rem; min-width: 0; }
.two .yes { background: var(--blue-tint); } .two .no { background: var(--orange-tint); }
.two h3 { margin-bottom: .5rem; }
details { border-bottom: 1px solid var(--rule); }
details:first-of-type { border-top: 1px solid var(--rule); }
summary { cursor: pointer; padding: 1rem 2rem 1rem 0; font-family: var(--font-display); font-size: 1.15rem; position: relative; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: .25rem; top: .85rem; color: var(--red); font-size: 1.5rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { padding-bottom: 1.1rem; color: var(--ink-soft); margin: 0 !important; }
.sources li { font-size: .98rem; color: var(--ink-soft); }
.review { margin-top: 1.25rem; border: 1px dashed var(--orange); border-radius: 12px; padding: 1rem 1.25rem; font-size: .95rem; color: var(--ink-soft); }

.cta { background: var(--band); padding-block: clamp(3rem, 6vw, 5rem); text-align: center; }
.cta h2 { max-width: 34rem; margin: 1rem auto 0; }
.cta p { max-width: 34rem; margin: 1rem auto 0; color: var(--ink-soft); }
.cta .btn { margin-top: 1.75rem; }
footer.site { padding-block: 2.5rem; border-top: 1px solid var(--rule); }
.site .row { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.site .disc { max-width: 44rem; font-size: .9rem; color: var(--ink-soft); }
.site .disc b { color: var(--ink); font-weight: 600; }

@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; border-left: 0; border-bottom: 1px solid var(--rule); padding: 0 0 1.25rem; }
  .toc ol { grid-template-columns: 1fr 1fr; }
  .two { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .nav { flex-wrap: nowrap; }
  .brand { font-size: 1.2rem; }
  .nav ul li:not(:last-child) { display: none; }
  .toc ol { grid-template-columns: 1fr; }
  .steps li { grid-template-columns: 2.6rem 1fr; gap: .75rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.paths { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 1.25rem; }
.path { border-radius: 16px; padding: 1.25rem 1.4rem; min-width: 0; border-top: 4px solid var(--c); background: var(--ct); }
.path.p1 { --c: var(--blue); --ct: var(--blue-tint); }
.path.p2 { --c: var(--orange); --ct: var(--orange-tint); }
.path.p3 { --c: var(--red); --ct: var(--red-tint); }
.path h3 { margin-bottom: .4rem; }
.path p { margin: 0 !important; }
.path ul { margin-top: .6rem !important; }
.sit { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.25rem; list-style: none; padding: 0 !important; }
.sit li { margin: 0 !important; border: 1px solid var(--rule); border-radius: 16px; padding: 1.1rem 1.25rem; min-width: 0; }
.sit h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.sit p { font-size: .98rem; color: var(--ink-soft); margin: 0 !important; }
@media (max-width: 900px) { .sit { grid-template-columns: 1fr; } }

/* blog + practice areas */
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 40rem; margin-top: 1rem; }
.pills { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 2rem; }
.pills a { font-family: var(--font-display); font-size: .92rem; text-decoration: none; color: var(--ink); border: 1px solid var(--rule); border-radius: 999px; padding: .35rem 1rem; }
.pills a:hover { border-color: var(--ink-soft); }
.pills a[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1.25rem; margin-top: 1rem; }
.acard { --g: var(--red); border-top: 3px solid var(--g); background: var(--band); border-radius: 0 0 16px 16px; min-width: 0; }
.acard.est { --g: var(--blue); }
.acard a { display: flex; flex-direction: column; gap: .6rem; height: 100%; padding: 1.25rem 1.4rem 1.4rem; text-decoration: none; color: var(--ink); }
.acard .label { display: flex; align-items: center; gap: .5rem; }
.acard .label i { width: 10px; height: 10px; border-radius: 50%; background: var(--g); }
.acard h3 { font-size: 1.3rem; font-weight: 400; }
.acard p { color: var(--ink-soft); font-size: 1rem; }
.acard .meta { margin-top: auto; font-family: var(--font-display); font-size: .85rem; color: var(--ink-soft); }
.acard a:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.empty { color: var(--ink-soft); padding-block: 2rem; }
.navigation.pagination { margin-block: 2.5rem 1rem; }
.nav-links { display: flex; gap: .5rem; flex-wrap: wrap; font-family: var(--font-display); }
.nav-links .page-numbers { padding: .3rem .9rem; border: 1px solid var(--rule); border-radius: 999px; text-decoration: none; color: var(--ink); }
.nav-links .current { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.reading { max-width: 46rem; padding-bottom: 3rem; }
.entry { font-size: 1.1rem; }
.entry > * + * { margin-top: 1.1rem; }
.entry h2 { margin-top: 2.5rem; font-size: clamp(1.5rem, 3vw, 2rem); }
.entry h3 { margin-top: 1.75rem; }
.entry ul, .entry ol { padding-left: 1.3rem; }
.entry li + li { margin-top: .4rem; }
.entry table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.entry th, .entry td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.entry th { font-family: var(--font-display); font-size: .72rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); background: var(--band); }
.entry blockquote { margin-left: 0; padding: .25rem 1.25rem; border-left: 4px solid var(--blue); color: var(--ink-soft); }
.entry img { max-width: 100%; height: auto; border-radius: 12px; }
.entry .wp-block-table { overflow-x: auto; }
.disclaimer { max-width: 46rem; margin-top: 2rem; padding: 1rem 1.25rem; border: 1px solid var(--rule); border-radius: 12px; font-size: .92rem; color: var(--ink-soft); }
.disclaimer b { color: var(--ink); font-weight: 600; }
.area-articles { padding-block: 1rem 3rem; }
.area-articles h2 { margin-bottom: 1rem; }
.area-articles p { margin-top: 1.25rem; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.cards { margin-bottom: 3rem; }
.single.wide { max-width: none; }
.single.wide .answer, .single.wide > .entry > p, .single.wide > .entry > h2 { max-width: 46rem; }
.single.wide article.entry { max-width: none; }
