/*
 * TroofLaw: design system (redesign preview).
 * Presentation only. Nothing here changes URLs, links, copy or indexing.
 *
 * Palette: navy for structure, charcoal for reading, warm white pages,
 * stone rules, brass used sparingly for marks and focus.
 * Type: Source Serif 4 (headings) + Public Sans (UI and body).
 */

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("/fonts/source-serif-4-latin-opsz-normal.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/public-sans-latin-wght-normal.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Public Sans";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/public-sans-latin-wght-italic.woff2") format("woff2-variations");
}

:root {
  --ink: #13233f;
  --ink-2: #213a63;
  --ink-soft: #3a4d6e;
  --text: #2a2e35;
  --muted: #5b616b;
  --paper: #faf8f4;
  --surface: #ffffff;
  --wash: #f2eee6;
  --rule: #e3dccf;
  --rule-strong: #cdbfa6;
  --brass: #a9843a;
  --brass-ink: #765819;
  --link: #1d3f78;
  --safety: #8f2d27;
  --safety-wash: #fbf1ef;
  --ok: #2f6b45;

  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.6rem, 1.3rem + 1vw, 1.95rem);
  --step-4: clamp(1.95rem, 1.5rem + 1.7vw, 2.6rem);

  --wrap: 1240px;
  --measure: 68ch;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(19, 35, 63, 0.06), 0 8px 24px -12px rgba(19, 35, 63, 0.18);
}

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; }
body.tl {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
body.tl *, body.tl *::before, body.tl *::after { box-sizing: border-box; }

body.tl h1, body.tl h2, body.tl h3, body.tl h4,
body.tl .default-css h1, body.tl .default-css h2, body.tl .default-css h3,
body.tl .default-css h4, body.tl .default-css h5, body.tl .default-css h6 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.2;
  text-wrap: balance;
}
body.tl h1, body.tl .default-css h1 { font-size: var(--step-4); margin: 0 0 0.6rem; }
body.tl h2, body.tl .default-css h2 { font-size: var(--step-3); margin: 2.25rem 0 0.75rem; }
body.tl h3, body.tl .default-css h3 { font-size: var(--step-2); margin: 1.75rem 0 0.5rem; }
body.tl h4, body.tl .default-css h4 { font-size: var(--step-1); margin: 1.5rem 0 0.5rem; }
body.tl .default-css h5, body.tl .default-css h6 { font-size: var(--step-0); margin: 1.25rem 0 0.4rem; }

body.tl p, body.tl .default-css p,
body.tl li, body.tl .default-css ul li, body.tl .default-css ol li {
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.68;
  color: var(--text);
}
body.tl .default-css p { margin: 0 0 1.05rem; }
body.tl .default-css ul li, body.tl .default-css ol li { margin-bottom: 0.4rem; }

body.tl a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
body.tl a:hover { color: var(--ink); text-decoration-thickness: 2px; }
body.tl :focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; border-radius: 2px; }

body.tl strong, body.tl b { font-weight: 650; color: inherit; }
body.tl img { max-width: 100%; height: auto; }
body.tl table { border-collapse: collapse; width: 100%; font-size: var(--step--1); }
body.tl th, body.tl td { border-bottom: 1px solid var(--rule); padding: 0.6rem 0.75rem; text-align: left; vertical-align: top; }
body.tl th { font-weight: 650; color: var(--ink); background: var(--wash); }

body.tl .skip-link { background: var(--ink); color: #fff; }

.tl-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 768px) { .tl-wrap { padding: 0 2rem; } }

.tl-visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Header ---------- */
.tl-header { position: relative; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--rule); }
.tl-strip { background: var(--ink); color: #dfe4ee; font-size: 0.82rem; }
.tl-strip .tl-wrap { display: flex; gap: 1rem; justify-content: space-between; align-items: center; padding-top: 0.45rem; padding-bottom: 0.45rem; }
body.tl .tl-strip p { margin: 0; color: #dfe4ee; font-size: 0.82rem; line-height: 1.45; }
body.tl .tl-strip a { color: #fff; }
.tl-strip__safety { white-space: nowrap; }
.tl-strip__safety strong { color: #fff; }
@media (max-width: 760px) { .tl-strip__about { display: none; } .tl-strip .tl-wrap { justify-content: center; } }

.tl-bar { display: flex; align-items: center; gap: 1.25rem; min-height: 76px; }
.tl-brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none !important; color: var(--ink); flex: 0 0 auto; }
.tl-brand__mark {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 4px;
  background: var(--ink); color: #e9d6a6; font-family: var(--serif); font-size: 1.55rem; font-weight: 600; line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(233, 214, 166, 0.35);
}
.tl-brand__name { display: grid; line-height: 1.15; }
.tl-brand__name b { font-family: var(--serif); font-size: 1.22rem; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.tl-brand__name span { font-size: 0.78rem; color: var(--muted); }

.tl-nav { margin-left: auto; }
.tl-nav__list { list-style: none; display: flex; gap: 0.25rem; margin: 0; padding: 0; align-items: center; }
.tl-nav__item { position: static; margin: 0 !important; }
.tl-nav__trigger, .tl-nav__link {
  appearance: none; background: none; border: 0; cursor: pointer;
  font: 550 0.94rem/1 var(--sans); color: var(--ink); padding: 0.85rem 0.65rem; border-radius: 4px; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 0.4rem; text-decoration: none !important;
}
.tl-nav__trigger:hover, .tl-nav__link:hover, .tl-nav__trigger[aria-expanded="true"] { background: var(--wash); color: var(--ink); }
.tl-nav__trigger svg { transition: transform 0.15s ease; }
.tl-nav__trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.tl-nav__item.is-current > .tl-nav__trigger, .tl-nav__item.is-current > .tl-nav__link { box-shadow: inset 0 -2px 0 var(--brass); border-radius: 0; }

.tl-search { position: relative; flex: 0 1 250px; min-width: 190px; }
.tl-search input {
  width: 100%; height: 42px; border: 1px solid var(--rule-strong); border-radius: 4px; background: var(--paper);
  padding: 0 2.6rem 0 0.85rem; font: 400 0.92rem var(--sans); color: var(--text);
}
.tl-search input::placeholder { color: #767b84; }
.tl-search input:focus { outline: 3px solid var(--brass); outline-offset: 0; background: #fff; }
.tl-search button {
  position: absolute; right: 3px; top: 3px; width: 36px; height: 36px; border: 0; border-radius: 3px;
  background: var(--ink); color: #fff; display: grid; place-items: center; cursor: pointer;
}

/* Mega menu panels */
.tl-mega {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 3px solid var(--ink);
  box-shadow: 0 24px 40px -24px rgba(19, 35, 63, 0.35);
}
.tl-nav__item.is-open > .tl-mega { display: block; }
.tl-mega__inner { display: grid; grid-template-columns: 1.1fr 2fr; gap: 2.5rem; padding: 2rem 0 2.25rem; }
.tl-mega__intro .tl-mega__title { font-size: 1.45rem; margin: 0 0 0.5rem; }
body.tl .tl-mega__intro p { color: var(--muted); font-size: 0.95rem; margin: 0 0 1rem; }
.tl-mega__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; }
.tl-mega__cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tl-mega__group .tl-mega__label { font-family: var(--sans); font-size: 0.8rem; font-weight: 650; color: var(--brass-ink); margin: 0 0 0.6rem; letter-spacing: 0.01em; }
.tl-mega__list { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.tl-mega__list li { margin: 0 !important; }
.tl-mega__list a { display: block; padding: 0.55rem 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.tl-mega__list a b { display: block; font-weight: 600; font-size: 0.97rem; }
.tl-mega__list a span { display: block; font-size: 0.84rem; color: var(--muted); line-height: 1.4; margin-top: 0.1rem; }
.tl-mega__list a:hover b { text-decoration: underline; text-underline-offset: 0.18em; }
.tl-mega__places { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.tl-mega__places li { margin: 0 !important; }
.tl-mega__places a { display: inline-block; padding: 0.3rem 0.65rem; border: 1px solid var(--rule-strong); border-radius: 999px; font-size: 0.86rem; color: var(--ink); text-decoration: none; background: var(--paper); }
.tl-mega__places a:hover { border-color: var(--ink); }
.tl-btn {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1.1rem; border-radius: 4px;
  background: var(--ink); color: #fff !important; font: 600 0.95rem/1.1 var(--sans); text-decoration: none !important; border: 1px solid var(--ink); cursor: pointer;
}
.tl-btn:hover { background: var(--ink-2); }
.tl-btn--ghost { background: transparent; color: var(--ink) !important; border-color: var(--rule-strong); }
.tl-btn--ghost:hover { background: var(--wash); border-color: var(--ink); }

/* Mobile controls */
.tl-mobile-actions { display: none; margin-left: auto; gap: 0.25rem; }
.tl-icon-btn {
  display: inline-flex; align-items: center; gap: 0.4rem; height: 44px; padding: 0 0.75rem;
  border: 1px solid var(--rule-strong); border-radius: 4px; background: #fff; color: var(--ink);
  font: 600 0.9rem var(--sans); cursor: pointer;
}
.tl-drawer { display: none; }

@media (max-width: 1280px) { .tl-brand__name span { display: none; } .tl-bar > .tl-search { flex-basis: 200px; } }
@media (max-width: 1100px) {
  .tl-nav, .tl-bar > .tl-search { display: none; }
  .tl-mobile-actions { display: flex; }
  .tl-bar { min-height: 64px; gap: 0.75rem; }
  .tl-brand__name span { display: none; }
  .tl-drawer { display: none; border-top: 1px solid var(--rule); background: var(--surface); padding: 1rem 0 1.5rem; }
  .tl-drawer.is-open { display: block; }
  .tl-drawer .tl-search { margin: 0 0 1rem; }
  .tl-drawer__topics { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; list-style: none; margin: 0 0 1rem; padding: 0; }
  .tl-drawer__topics li { margin: 0 !important; }
  .tl-drawer__topics a {
    display: flex; align-items: center; min-height: 48px; padding: 0.5rem 0.75rem; border: 1px solid var(--rule); border-radius: 4px;
    background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; line-height: 1.25;
  }
  .tl-drawer details { border-top: 1px solid var(--rule); }
  .tl-drawer details:last-of-type { border-bottom: 1px solid var(--rule); }
  .tl-drawer summary {
    list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 52px;
    font: 600 1rem var(--sans); color: var(--ink); cursor: pointer;
  }
  .tl-drawer summary::-webkit-details-marker { display: none; }
  .tl-drawer summary::after { content: "+"; font-size: 1.35rem; color: var(--brass-ink); font-weight: 400; }
  .tl-drawer details[open] summary::after { content: "\2212"; }
  .tl-drawer ul.tl-drawer__links { list-style: none; margin: 0 0 0.75rem; padding: 0; }
  .tl-drawer ul.tl-drawer__links li { margin: 0 !important; }
  .tl-drawer ul.tl-drawer__links a { display: block; padding: 0.6rem 0 0.6rem 0.75rem; color: var(--ink); text-decoration: none; border-left: 2px solid var(--rule); font-size: 0.97rem; }
  .tl-drawer ul.tl-drawer__links a:hover { border-left-color: var(--brass); }
  .tl-drawer__about { display: block; padding: 0.9rem 0; font-weight: 600; color: var(--ink); text-decoration: none; }
}

/* ---------- Page header (content pages) ---------- */
.tl-pagehead { background: var(--surface); border-bottom: 1px solid var(--rule); }
.tl-pagehead .tl-wrap { padding-top: 1rem; padding-bottom: 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; align-items: center; }
body.tl .tl-pagehead .site-crumbs { margin: 0; }
body.tl .site-crumbs__list { font-size: 0.86rem; color: var(--muted); }
body.tl .site-crumbs__list a { color: var(--ink-soft); text-decoration: none; }
body.tl .site-crumbs__list a:hover { text-decoration: underline; }
body.tl .site-crumbs__item span[aria-current] { color: var(--muted); }
.tl-pagehead__note { margin: 0 !important; font-size: 0.82rem !important; color: var(--muted) !important; }
.tl-pagehead__note a { color: var(--ink-soft) !important; }

/* Content shell */
body.tl section.default-css { padding: 2.5rem 0 4.5rem !important; }
body.tl .default-css > .container { max-width: var(--wrap); padding-left: 1.25rem; padding-right: 1.25rem; }
@media (min-width: 768px) { body.tl .default-css > .container { padding-left: 2rem; padding-right: 2rem; } }

/* Disclaimers (trust) */
body.tl .site-disclaimer--article {
  background: transparent; border: 0; border-left: 3px solid var(--brass); border-radius: 0;
  padding: 0.15rem 0 0.15rem 1rem; margin: 0 0 1.75rem; max-width: var(--measure);
}
body.tl .site-disclaimer--article p { font-size: 0.86rem; line-height: 1.55; color: var(--muted); margin: 0; }
body.tl .site-disclaimer--article strong { color: var(--ink); }
body.tl .article-meta { font-size: 0.86rem !important; color: var(--muted) !important; margin: -0.75rem 0 1.5rem !important; }

/* Prose */
body.tl .topic-main, body.tl .vfl-doc__main { max-width: var(--measure); }
body.tl .topic-main h2, body.tl .vfl-prose h2 {
  margin: 2.6rem 0 0.8rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); font-size: var(--step-3);
}
body.tl .topic-main h3 { font-size: var(--step-2); }
body.tl .topic-main ul li::marker, body.tl .vfl-prose li::marker { color: var(--brass); }
body.tl .topic-main img.topic-hero {
  width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius); margin: 0 0 1.75rem;
  filter: saturate(0.92) contrast(1.02); box-shadow: inset 0 0 0 1px rgba(19,35,63,.08);
}
body.tl blockquote { border-left: 3px solid var(--brass); margin: 1.5rem 0; padding: 0.25rem 0 0.25rem 1.25rem; color: var(--ink-soft); font-family: var(--serif); font-size: 1.15rem; }

/* Callouts */
body.tl .vfl-callout, body.tl .topic-callout {
  background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--ink);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 1rem 1.2rem; margin: 1.5rem 0;
}
body.tl .vfl-callout p:last-child, body.tl .topic-callout p:last-child { margin-bottom: 0; }
body.tl .vfl-callout.info { border-left-color: var(--brass); }
body.tl .vfl-safety { background: var(--safety-wash) !important; border-left-color: var(--safety) !important; border-radius: 0 var(--radius) var(--radius) 0 !important; }
body.tl .vfl-safety__title { color: var(--safety) !important; }

/* Stat cards (topic pages) */
body.tl .vfl-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; margin: 1.75rem 0; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); }
body.tl .vfl-stat-card { background: transparent !important; border: 0 !important; border-right: 1px solid var(--rule) !important; border-radius: 0 !important; padding: 1rem 1.15rem !important; box-shadow: none !important; }
body.tl .vfl-stat-card:last-child { border-right: 0 !important; }
body.tl .vfl-stat-card .label { font-size: 0.82rem !important; color: var(--muted) !important; margin: 0 0 0.25rem !important; text-transform: none !important; letter-spacing: 0 !important; line-height: 1.35 !important; }
body.tl .vfl-stat-card .value { font-family: var(--serif) !important; font-size: 2rem !important; color: var(--ink) !important; font-weight: 600 !important; margin: 0 !important; line-height: 1.1 !important; }
body.tl .vfl-stat-card .unit { font-family: var(--sans); font-size: 0.95rem !important; color: var(--muted) !important; font-weight: 500; }
@media (max-width: 600px) { body.tl .vfl-stat-card { border-right: 0 !important; border-bottom: 1px solid var(--rule) !important; } body.tl .vfl-stat-card:last-child { border-bottom: 0 !important; } }

/* Table of contents */
body.tl .vfl-toc {
  background: var(--surface) !important; border: 1px solid var(--rule) !important; border-radius: var(--radius) !important;
  padding: 1.1rem 1.25rem !important; margin: 1.5rem 0 2rem !important; box-shadow: none !important;
}
body.tl .vfl-toc > p { font-family: var(--serif) !important; font-weight: 600 !important; color: var(--ink) !important; font-size: 1.05rem !important; margin: 0 0 0.5rem !important; }
body.tl .vfl-toc-links { display: block !important; columns: 2 220px; column-gap: 1.75rem; }
body.tl .vfl-toc-links a { break-inside: avoid; }
body.tl .vfl-toc-links a {
  display: block; padding: 0.4rem 0 0.4rem 0.8rem !important; border-left: 2px solid var(--rule); background: none !important;
  color: var(--ink-soft) !important; font-size: 0.92rem !important; text-decoration: none !important; border-radius: 0 !important;
}
body.tl .vfl-toc-links a:hover { border-left-color: var(--brass); color: var(--ink) !important; }

/* FAQ */
body.tl .vfl-faq details, body.tl .faq-section details { border-bottom: 1px solid var(--rule) !important; background: none !important; }
body.tl .vfl-faq summary, body.tl .faq-section summary { font-family: var(--serif); font-weight: 600; color: var(--ink); font-size: 1.1rem; padding: 1rem 0 !important; }
body.tl .vfl-faq .answer { color: var(--text); padding-bottom: 1rem; }

/* Related chips + tags */
body.tl .vfl-related-chips a, body.tl .vfl-tag {
  background: var(--surface) !important; border: 1px solid var(--rule-strong) !important; color: var(--ink) !important;
  border-radius: 999px !important; text-decoration: none !important; box-shadow: none !important;
}
body.tl .vfl-related-chips a:hover { border-color: var(--ink) !important; background: var(--wash) !important; }
body.tl .vfl-tag.accent { border-color: var(--brass) !important; color: var(--brass-ink) !important; }

/* Key facts */
body.tl .vfl-keyfacts h2 { font-family: var(--serif) !important; text-transform: none !important; letter-spacing: 0 !important; color: var(--ink) !important; font-size: 1.15rem !important; border: 0 !important; padding: 0 !important; margin: 0 0 0.75rem !important; }
body.tl .vfl-keyfacts__grid { gap: 0 !important; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
body.tl .vfl-keyfacts__card { background: transparent !important; border: 0 !important; border-bottom: 1px solid var(--rule) !important; border-radius: 0 !important; box-shadow: none !important; padding: 0.95rem 1.1rem !important; }
@media (min-width: 640px) { body.tl .vfl-keyfacts__card:nth-child(odd) { border-right: 1px solid var(--rule) !important; } }
body.tl .vfl-keyfacts__label { font-size: 0.8rem !important; color: var(--brass-ink) !important; font-weight: 650 !important; margin: 0 0 0.2rem !important; text-transform: none !important; letter-spacing: 0 !important; }
body.tl .vfl-keyfacts__label .fa { color: var(--brass) !important; }
body.tl .vfl-keyfacts__text { font-size: 0.97rem !important; color: var(--text) !important; margin: 0 !important; }

/* Sidebars (court, form, article) */
body.tl .vfl-side-box {
  background: var(--surface) !important; border: 1px solid var(--rule) !important; border-radius: var(--radius) !important;
  padding: 1.15rem 1.2rem !important; margin-bottom: 1rem !important; box-shadow: none !important;
}
body.tl .vfl-side-box--muted { background: var(--wash) !important; }
body.tl .vfl-side-box h2 {
  font-family: var(--serif) !important; font-size: 1.05rem !important; text-transform: none !important; letter-spacing: 0 !important;
  color: var(--ink) !important; margin: 0 0 0.6rem !important; padding: 0 !important; border: 0 !important;
}
body.tl .vfl-side-box p { font-size: 0.92rem !important; color: var(--text) !important; }
body.tl .vfl-side-cta { background: var(--ink) !important; color: #fff !important; border-radius: 4px !important; border: 1px solid var(--ink) !important; text-decoration: none !important; }
body.tl .vfl-side-cta:hover { background: var(--ink-2) !important; }
body.tl .vfl-side-cta--ghost { background: transparent !important; color: var(--ink) !important; border-color: var(--rule-strong) !important; }
body.tl .vfl-side-cta--ghost:hover { background: var(--wash) !important; border-color: var(--ink) !important; }
body.tl .vfl-side-list a { text-decoration: none !important; padding: 0.45rem 0; border-bottom: 1px solid var(--rule); }
body.tl .vfl-side-list li:last-child a { border-bottom: 0; }
body.tl .vfl-side-list strong { color: var(--brass-ink) !important; font-size: 0.78rem !important; letter-spacing: 0.02em !important; }
body.tl .vfl-side-list span { color: var(--ink); }

/* Eyebrow on court and form guides */
body.tl .vfl-eyebrow__num { background: var(--ink) !important; color: #f3e6c4 !important; border-radius: 3px !important; letter-spacing: 0.02em !important; }
body.tl .vfl-eyebrow__court { text-transform: none !important; letter-spacing: 0 !important; color: var(--muted) !important; font-size: 0.9rem !important; }
body.tl .vfl-unverified { background: var(--surface) !important; border: 1px solid var(--rule) !important; border-left: 3px solid var(--brass) !important; color: var(--muted) !important; }
body.tl .vfl-verified { color: var(--ok) !important; }

/* Hub cards (forms, factors, courts indexes) */
body.tl .vfl-factor-card { background: var(--surface) !important; border: 1px solid var(--rule) !important; border-radius: var(--radius) !important; box-shadow: none !important; }
body.tl .vfl-factor-card:hover { border-color: var(--ink) !important; box-shadow: var(--shadow) !important; transform: none !important; }
body.tl .vfl-factor-card__icon { background: var(--wash) !important; color: var(--ink) !important; border-radius: 4px !important; }
body.tl .vfl-factor-card__statute { color: var(--brass-ink) !important; }
body.tl .vfl-factor-card__title { font-family: var(--serif) !important; color: var(--ink) !important; }

/* Court locator */
body.tl .court-filter input { border: 1px solid var(--rule-strong) !important; border-radius: 4px !important; height: 46px; font: 400 1rem var(--sans); }
body.tl .court-locality { border-top: 1px solid var(--rule) !important; padding-top: 1.25rem !important; scroll-margin-top: 1rem; }
body.tl .court-locality h2 { font-size: 1.4rem !important; border: 0 !important; padding: 0 !important; margin: 0 0 0.75rem !important; }
body.tl .court-card { background: var(--surface) !important; border: 1px solid var(--rule) !important; border-radius: var(--radius) !important; box-shadow: none !important; }
body.tl .court-card h3 { font-family: var(--sans) !important; font-size: 0.95rem !important; color: var(--brass-ink) !important; }
body.tl .court-locality.is-target { outline: 2px solid var(--brass); outline-offset: 8px; border-radius: 2px; }
body.tl .court-card.is-target { border-color: var(--ink) !important; box-shadow: inset 0 3px 0 var(--ink) !important; }

/* Glossary, resources, search page */
body.tl .resources-intro { font-size: 1.125rem !important; color: var(--ink-soft) !important; max-width: var(--measure); }
body.tl .glossary-term dt { font-family: var(--serif); color: var(--ink); }
body.tl .site-search--page .site-search__input { border: 1px solid var(--rule-strong); border-radius: 4px; }
body.tl .site-search--page .site-search__submit { background: var(--ink); border-radius: 4px; }

/* Legacy buttons */
body.tl a.button { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--ink); color: #fff; padding: 0.7rem 1.1rem; border-radius: 4px; font: 600 0.95rem var(--sans); text-decoration: none; }
body.tl a.button img { display: none; }

/* ---------- Footer ---------- */
.tl-footer { background: var(--ink); color: #cfd6e3; margin-top: 0; }
.tl-footer a { color: #fff !important; text-decoration: none !important; }
.tl-footer a:hover { text-decoration: underline !important; }
/* Links inside footer sentences need more than colour to stand out (WCAG 1.4.1). */
body.tl .tl-footer p a { text-decoration: underline !important; text-underline-offset: 2px; }
.tl-footer__top { display: grid; grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)); gap: 2rem; padding: 3.25rem 0 2.5rem; }
.tl-footer__brand .tl-brand__name b { color: #fff; }
.tl-footer__brand .tl-brand__name span { color: #b8c2d4; }
body.tl .tl-footer__brand p { color: #cfd6e3; font-size: 0.92rem; margin: 1rem 0 0; line-height: 1.6; }
.tl-footer .tl-footer__label { font-family: var(--sans) !important; color: #e9d6a6 !important; font-size: 0.85rem !important; font-weight: 650 !important; margin: 0 0 0.8rem !important; letter-spacing: 0.01em; }
.tl-footer ul { list-style: none; margin: 0; padding: 0; }
body.tl .tl-footer li { margin: 0 0 0.45rem; font-size: 0.92rem; line-height: 1.45; color: #cfd6e3; }
.tl-footer__notice { border-top: 1px solid rgba(255, 255, 255, 0.14); padding: 1.5rem 0; display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: start; }
.tl-footer__seal { font-family: var(--serif); font-size: 2rem; color: #e9d6a6; line-height: 1; }
body.tl .tl-footer .site-disclaimer { background: none !important; border: 0 !important; padding: 0 !important; margin: 0 !important; }
body.tl .tl-footer .site-disclaimer p { color: #cfd6e3 !important; font-size: 0.86rem !important; line-height: 1.6 !important; margin: 0 !important; max-width: 92ch; }
body.tl .tl-footer .site-disclaimer strong { color: #fff; }
.tl-footer__meta { border-top: 1px solid rgba(255, 255, 255, 0.14); padding: 1.1rem 0 1.6rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; font-size: 0.84rem; color: #aeb8cb; }
.tl-footer__meta span { color: #aeb8cb; }
@media (max-width: 960px) { .tl-footer__top { grid-template-columns: 1fr 1fr; } .tl-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .tl-footer__notice { grid-template-columns: 1fr; } }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) { body.tl * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* Topic and article sidebars */
body.tl .topic-sidebar .blog-categroy-col { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.15rem 1.2rem; margin: 0 0 1rem; }
body.tl .topic-sidebar .topic-sidebar__heading { font-family: var(--serif) !important; font-size: 1.05rem !important; font-weight: 600 !important; color: var(--ink) !important; margin: 0 0 0.6rem !important; padding: 0 !important; }
body.tl .topic-sidebar .topic-sidebar__heading::before, body.tl .topic-sidebar .topic-sidebar__heading::after { display: none !important; }
body.tl .topic-sidebar ul { list-style: none; margin: 0; padding: 0; }
body.tl .topic-sidebar nav li { margin: 0 !important; }
body.tl .topic-sidebar nav li a { display: block; padding: 0.45rem 0 0.45rem 0.75rem; border-left: 2px solid var(--rule); color: var(--ink-soft); text-decoration: none; font-size: 0.95rem; }
body.tl .topic-sidebar nav li a:hover { border-left-color: var(--brass); color: var(--ink); }
body.tl .topic-sidebar nav li.current-menu-item a { border-left-color: var(--ink); color: var(--ink); font-weight: 600; }
body.tl .topic-sidebar .recent-post-row { display: grid; grid-template-columns: 56px 1fr; gap: 0.75rem; align-items: start; padding: 0.6rem 0; border-top: 1px solid var(--rule); margin: 0; }
body.tl .topic-sidebar .recent-post-row:first-child { border-top: 0; padding-top: 0; }
body.tl .topic-sidebar .recent-post-row figure { margin: 0; }
body.tl .topic-sidebar .recent-post-row img { width: 56px; height: 56px; object-fit: cover; border-radius: 4px; filter: saturate(0.92) contrast(1.02); }
body.tl .topic-sidebar .recent-post-title { margin: 0 !important; font-size: 0.92rem !important; line-height: 1.35 !important; }
body.tl .topic-sidebar .recent-post-title a { color: var(--ink) !important; text-decoration: none; font-weight: 600; }
body.tl .topic-sidebar .recent-post-title span, body.tl .topic-sidebar .recent-post-title span a { display: block; font-weight: 400 !important; font-size: 0.8rem; color: var(--muted) !important; margin-top: 0.15rem; }
body.tl .topic-layout { gap: 3rem; }

/* Article byline */
body.tl .article-byline { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; padding: 0.75rem 0; margin: 0 0 1.5rem; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-size: 0.88rem; color: var(--muted); }
body.tl .article-byline li { margin: 0 !important; font-size: 0.88rem !important; color: var(--muted) !important; }

/* Blog index cards */
body.tl .blogcolum-row { border-bottom: 1px solid var(--rule); padding: 0 0 1.75rem; margin: 0 0 1.75rem; }
body.tl .blogcolum-row h2, body.tl .blogcolum-row h3 { font-size: 1.45rem; margin: 0.5rem 0; border: 0; padding: 0; }
body.tl .blogcolum-row h2 a, body.tl .blogcolum-row h3 a { color: var(--ink); text-decoration: none; }
body.tl .blogcolum-row img { border-radius: var(--radius); }

/* ---------- Homepage ---------- */
.tl-home section { padding: 0; }
.tl-mast { background: var(--surface); border-bottom: 1px solid var(--rule); }
.tl-mast__grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 3.5rem; padding-top: 3rem; padding-bottom: 2.75rem; align-items: end; }
body.tl .tl-mast h1.hero-heading {
  font-family: var(--serif); font-style: normal; font-weight: 600; color: var(--ink);
  font-size: clamp(2.4rem, 1.6rem + 3vw, 3.6rem); line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 0.6rem;
}
body.tl .tl-mast__tagline { font-size: 1.2rem; color: var(--ink-soft); margin: 0 0 1.75rem; max-width: 40ch; line-height: 1.45; }
.tl-mast__search label { display: block; font: 600 0.95rem var(--sans); color: var(--ink); margin: 0 0 0.45rem; }
.tl-mast__searchrow { display: flex; gap: 0.5rem; max-width: 640px; }
.tl-mast__searchrow input {
  flex: 1; min-width: 0; height: 54px; padding: 0 1rem; border: 1.5px solid var(--ink); border-radius: 4px;
  font: 400 1.05rem var(--sans); color: var(--text); background: #fff;
}
.tl-mast__searchrow input:focus { outline: 3px solid var(--brass); outline-offset: 1px; }
.tl-mast__searchrow .tl-btn { height: 54px; padding: 0 1.4rem; }
body.tl a.tl-mast__explore { margin-top: 1rem; background: transparent; color: var(--ink); padding: 0; font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; }
.tl-mast__facts { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule); }
body.tl .tl-mast__facts li { padding: 0.7rem 0 0.7rem 1.4rem; margin: 0; font-size: 0.93rem; line-height: 1.5; color: var(--muted); border-bottom: 1px solid var(--rule); }
body.tl .tl-mast__facts li:last-child { border-bottom: 0; }
.tl-mast__facts b { color: var(--ink); font-weight: 650; }

.tl-desk { background: var(--paper); }
.tl-desk__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 3.5rem; padding-top: 3rem; padding-bottom: 3.5rem; align-items: start; }
body.tl .tl-desk h2 { margin: 0 0 1rem; font-size: var(--step-3); }
.tl-index { list-style: none; margin: 0 0 1.5rem; padding: 0; border-top: 2px solid var(--ink); }
.tl-index li { margin: 0 !important; border-bottom: 1px solid var(--rule); }
body.tl .tl-index a { color: var(--ink); }
.tl-index a { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "name leader" "note note"; align-items: baseline; gap: 0 0.75rem; padding: 0.8rem 0.25rem; text-decoration: none !important; color: var(--ink); }
.tl-index__name { grid-area: name; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; line-height: 1.25; }
.tl-index__leader { grid-area: leader; border-bottom: 1px dotted var(--rule-strong); transform: translateY(-0.3em); }
.tl-index__note { grid-area: note; font-size: 0.9rem; color: var(--muted); margin-top: 0.1rem; }
.tl-index a:hover .tl-index__name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.tl-index a:hover .tl-index__leader { border-bottom-color: var(--brass); }
@media (min-width: 720px) {
  .tl-index a { grid-template-columns: auto 1fr auto; grid-template-areas: "name leader note"; }
  .tl-index__note { margin: 0; text-align: right; }
}
body.tl .tl-desk__note { font-size: 0.95rem; color: var(--muted); max-width: 60ch; }
body.tl .tl-desk .site-disclaimer--article { margin: 1rem 0 1.5rem; }

/* Court finder */
.tl-finder { background: var(--surface); border: 1px solid var(--rule); border-top: 4px solid var(--ink); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow); }
.tl-finder__head { padding: 1.4rem 1.5rem 0.25rem; }
body.tl .tl-finder__title { margin: 0 0 0.35rem !important; font-size: 1.6rem !important; border: 0 !important; padding: 0 !important; }
body.tl .tl-finder__sub { font-size: 0.95rem; color: var(--muted); margin: 0; }
.tl-finder__steps { list-style: none; margin: 0; padding: 0.5rem 1.5rem 1.5rem; }
.tl-finder__step { margin: 0 !important; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.tl-finder__step:last-child { border-bottom: 0; padding-bottom: 0; }
.tl-finder__step > label, .tl-finder__step legend { display: flex; align-items: center; gap: 0.6rem; font: 600 1rem var(--sans); color: var(--ink); margin: 0 0 0.6rem; padding: 0; border: 0; }
.tl-finder__step fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.tl-finder__n { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 1.5px solid var(--brass); color: var(--brass-ink); font: 650 0.85rem var(--sans); flex: 0 0 auto; }
.tl-finder select {
  width: 100%; height: 48px; padding: 0 0.85rem; border: 1px solid var(--rule-strong); border-radius: 4px; background: #fff;
  font: 400 1rem var(--sans); color: var(--text);
}
.tl-finder__choice { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.6rem 0.75rem; border: 1px solid var(--rule); border-radius: 4px; margin: 0 0 0.45rem; cursor: pointer; background: var(--paper); }
.tl-finder__choice:has(input:checked) { border-color: var(--ink); background: #fff; box-shadow: inset 3px 0 0 var(--ink); }
.tl-finder__choice input { margin-top: 0.3rem; accent-color: var(--ink); width: 1.05rem; height: 1.05rem; flex: 0 0 auto; }
.tl-finder__choice b { display: block; font-weight: 600; color: var(--ink); font-size: 0.97rem; line-height: 1.35; }
.tl-finder__choice small { display: block; color: var(--muted); font-size: 0.85rem; line-height: 1.4; }
.tl-finder__step--go { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.tl-finder__step--go .tl-btn { padding: 0.85rem 1.5rem; }
body.tl .tl-finder__error { flex-basis: 100%; margin: 0.25rem 0 0; color: var(--safety); font-size: 0.9rem; font-weight: 600; }

/* Tools strip */
.tl-tools { background: var(--ink); color: #fff; }
.tl-tools .tl-wrap { padding-top: 2.25rem; padding-bottom: 2.25rem; }
body.tl .tl-tools h2 { color: #fff; font-size: 1.35rem; margin: 0 0 1rem; }
.tl-tools__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgba(255,255,255,.18); }
.tl-tools__list li { margin: 0 !important; border-right: 1px solid rgba(255,255,255,.14); }
.tl-tools__list li:last-child { border-right: 0; }
body.tl .tl-tools__list a { color: #fff; }
.tl-tools__list a { display: block; height: 100%; padding: 1rem 1.25rem 0.5rem 0; text-decoration: none !important; }
.tl-tools__list li + li a { padding-left: 1.25rem; }
.tl-tools__list b { display: block; color: #fff; font-family: var(--serif); font-size: 1.15rem; font-weight: 600; margin: 0 0 0.3rem; }
.tl-tools__list span { display: block; color: #c8d0de; font-size: 0.9rem; line-height: 1.5; }
.tl-tools__list a:hover b { text-decoration: underline; text-decoration-color: #e9d6a6; text-underline-offset: 0.2em; }

/* Most-read row */
.tl-read .tl-wrap { padding-top: 2.75rem; padding-bottom: 0.5rem; }
.tl-read__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.tl-read__list li { margin: 0 !important; }
body.tl .tl-read__list a { color: var(--ink); }
.tl-read__list a { display: block; height: 100%; text-decoration: none !important; border-top: 2px solid var(--ink); padding: 1rem 0 0; }
body.tl .tl-read__list .home-highlight-title { font-family: var(--serif); font-size: 1.35rem !important; font-weight: 600; color: var(--ink) !important; margin: 0 0 0.4rem; letter-spacing: 0; }
body.tl .tl-read__list p:not(.home-highlight-title) { color: var(--muted); font-size: 0.97rem; margin: 0; }
.tl-read__list a:hover .home-highlight-title { text-decoration: underline; text-underline-offset: 0.18em; }

/* Divorce explainer */
.tl-explainer__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 3rem; padding-top: 3.5rem; padding-bottom: 3.5rem; }
.tl-explainer__aside { position: sticky; top: 1.5rem; align-self: start; border-top: 1px solid var(--rule-strong); padding-top: 1rem; }
body.tl .tl-explainer__kicker { font-family: var(--serif); font-size: 1.1rem; color: var(--ink); font-weight: 600; margin: 0 0 0.4rem; }
body.tl .tl-explainer__aside p:not(.tl-explainer__kicker) { font-size: 0.93rem; color: var(--muted); }
.tl-explainer__body { max-width: var(--measure); }
body.tl .tl-explainer__body h2 { margin-top: 0; font-size: var(--step-4); }
body.tl .tl-explainer__body h3 { font-size: 1.3rem; margin: 2rem 0 0.4rem; padding-top: 1.1rem; border-top: 1px solid var(--rule); }

/* Trust */
.tl-trust { background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.tl-trust__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) minmax(0, 0.7fr); gap: 2.5rem; padding-top: 3.25rem; padding-bottom: 3.25rem; align-items: start; }
body.tl .tl-trust h2 { margin: 0 0 0.5rem; }
body.tl .tl-trust .home-about-tagline { font-family: var(--serif); font-size: 1.2rem; color: var(--ink-soft); margin: 0 0 1rem; }
.tl-trust__compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
body.tl .tl-trust__compare h3 { font-family: var(--sans); font-size: 0.95rem; font-weight: 650; margin: 0 0 0.6rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--ink); }
.tl-trust__compare div:last-child h3 { border-bottom-color: var(--brass); }
.tl-trust__compare ul { list-style: none; padding: 0; margin: 0; }
body.tl .tl-trust__compare li { font-size: 0.93rem; line-height: 1.5; padding: 0.45rem 0; border-bottom: 1px solid var(--rule); margin: 0; }
.tl-trust__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); filter: saturate(0.92) contrast(1.02); border-bottom: 4px solid var(--brass); }

/* Resources + FAQ */
.tl-resources .tl-wrap { padding-top: 3rem; padding-bottom: 1rem; max-width: calc(var(--measure) + 4rem); margin-left: max(0px, calc((100% - var(--wrap)) / 2)); }
body.tl .tl-resources h2 { margin: 0 0 0.5rem; }
.home-resource-links { list-style: none; margin: 1rem 0 0; padding: 0; border-top: 1px solid var(--rule); }
body.tl .home-resource-links li { padding: 0.6rem 0; border-bottom: 1px solid var(--rule); margin: 0; color: var(--muted); }
body.tl .home-resource-links a { font-weight: 600; }
.tl-faq .tl-wrap { padding-top: 2rem; padding-bottom: 4rem; max-width: calc(var(--measure) + 4rem); margin-left: max(0px, calc((100% - var(--wrap)) / 2)); }

@media (max-width: 1000px) {
  .tl-mast__grid, .tl-desk__grid, .tl-explainer__grid, .tl-trust__grid { grid-template-columns: 1fr; gap: 2rem; }
  .tl-mast__facts { border-left: 0; border-top: 1px solid var(--rule); }
  body.tl .tl-mast__facts li { padding-left: 0; }
  .tl-explainer__aside { position: static; }
  .tl-trust__img { display: none; }
  .tl-tools__list { grid-template-columns: 1fr 1fr; }
  .tl-tools__list li:nth-child(2) { border-right: 0; }
  .tl-tools__list li + li a { padding-left: 0; }
  .tl-tools__list li:nth-child(even) a { padding-left: 1.25rem; }
  .tl-read__list { grid-template-columns: 1fr; gap: 1rem; }
}
@media (max-width: 600px) {
  .tl-mast__grid { padding-top: 1.75rem; padding-bottom: 1.75rem; }
  .tl-mast__searchrow { flex-direction: column; }
  .tl-tools__list { grid-template-columns: 1fr; }
  .tl-tools__list li { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
  .tl-tools__list li a, .tl-tools__list li:nth-child(even) a { padding-left: 0; }
  .tl-trust__compare { grid-template-columns: 1fr; }
  .tl-finder__head, .tl-finder__steps { padding-left: 1.1rem; padding-right: 1.1rem; }
}

/* Locator: finder on the page */
.tl-locator-finder { margin: 1.5rem 0 2rem; max-width: 760px; }
.tl-locator-finder .tl-finder__steps { display: grid; grid-template-columns: 1fr; }
.tl-locator-result { margin: 0 0 1.5rem; padding: 0.9rem 1.1rem; background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--brass); border-radius: 0 var(--radius) var(--radius) 0; }
body.tl .tl-locator-result p { margin: 0; font-size: 0.97rem; }

/* Court guides: read as a court record, not an article */
body.tl .tl-court .vfl-doc__main > .vfl-h1 { font-size: var(--step-4); margin-bottom: 0.9rem; }
body.tl .tl-court .vfl-eyebrow { padding-bottom: 0.75rem; border-bottom: 1px solid var(--rule); margin-bottom: 1rem; }
body.tl .tl-court .vfl-doc__side > .vfl-side-box:first-child { background: var(--ink) !important; border-color: var(--ink) !important; color: #fff; }
body.tl .tl-court .vfl-doc__side > .vfl-side-box:first-child h2 { color: #e9d6a6 !important; }
body.tl .tl-court .vfl-doc__side > .vfl-side-box:first-child p, body.tl .tl-court .vfl-doc__side > .vfl-side-box:first-child strong { color: #fff !important; }
body.tl .tl-court .vfl-doc__side > .vfl-side-box:first-child a:not(.vfl-side-cta) { color: #fff !important; }
body.tl .tl-court .vfl-doc__side > .vfl-side-box:first-child .vfl-side-cta { background: #fff !important; color: var(--ink) !important; border-color: #fff !important; }
body.tl .tl-court .vfl-prose h2 { counter-increment: none; }

/* Navigation links are blocks, not inline prose links */
body.tl .tl-mega a:not(.tl-btn), body.tl .tl-drawer a, body.tl .tl-brand { text-decoration: none; }
body.tl .tl-mega__list a { color: var(--ink); }
body.tl .tl-mega__list a:hover b { text-decoration: underline; }
body.tl .tl-drawer__topics a, body.tl .tl-drawer ul.tl-drawer__links a, body.tl .tl-drawer__about { color: var(--ink); }
body.tl .court-card { padding: 1rem 1.15rem !important; }
body.tl .court-card ul { padding-left: 1.1rem; margin-bottom: 0; }

/* Article details */
body.tl .article-byline img { filter: grayscale(1) brightness(0.55); opacity: 0.8; margin-right: 0.35rem; vertical-align: -2px; }
body.tl .article-byline a { color: var(--ink-soft); text-decoration: none; }
body.tl .article-byline a:hover { text-decoration: underline; }
body.tl .article-note { background: var(--surface) !important; border: 1px solid var(--rule) !important; border-left: 4px solid var(--ink) !important; border-radius: 0 var(--radius) var(--radius) 0 !important; }
body.tl .article-note .fa { color: var(--brass) !important; }


/* =====================================================================
   Section colour system (refinement pass).
   Navy anchors; each section has one restrained hue used for markers,
   rules, icons and states. Every coloured element also carries a text
   label or icon, so colour is never the only signal.
   ===================================================================== */
:root {
  --tone: var(--ink); --tone-ink: var(--ink); --tone-wash: var(--wash); --tone-line: var(--rule-strong); --tone-on-dark: #e9d6a6;
}
[data-tone="topic"]  { --tone: #7a3368; --tone-ink: #6b2d5c; --tone-wash: #f7eef4; --tone-line: #dcbdd2; --tone-on-dark: #e8bfdc; }
[data-tone="safety"] { --tone: #9a3029; --tone-ink: #8f2d27; --tone-wash: #fbefed; --tone-line: #e8c1bc; --tone-on-dark: #f1b8b1; }
[data-tone="courts"] { --tone: #1f7a74; --tone-ink: #1a6560; --tone-wash: #e9f4f2; --tone-line: #b5d8d3; --tone-on-dark: #9fd8d0; }
[data-tone="forms"]  { --tone: #457a3b; --tone-ink: #3b6833; --tone-wash: #eef5ea; --tone-line: #c2dbb9; --tone-on-dark: #b5dca9; }
[data-tone="guides"] { --tone: #2459b0; --tone-ink: #1f4fa0; --tone-wash: #edf2fb; --tone-line: #bccdeb; --tone-on-dark: #b3c9f0; }
[data-tone="site"]   { --tone: var(--brass); --tone-ink: var(--brass-ink); --tone-wash: #f7f1e3; --tone-line: #e0cfa6; --tone-on-dark: #e9d6a6; }

.tl-icon-svg svg, [data-tone] i svg, [data-tone] span svg { display: block; }

/* Primary nav: a small swatch per section, current item underlined in its colour */
.tl-nav__item[data-tone] > .tl-nav__trigger::before {
  content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--tone); flex: 0 0 auto; margin-right: 0.1rem;
}
.tl-nav__item[data-tone]:hover > .tl-nav__trigger, .tl-nav__item[data-tone] > .tl-nav__trigger[aria-expanded="true"] { background: var(--tone-wash); }
.tl-nav__item.is-current[data-tone] > .tl-nav__trigger { box-shadow: inset 0 -3px 0 var(--tone); }

/* Mega menu: panel top rule and intro block in the section colour */
.tl-nav__item[data-tone] > .tl-mega { border-top: 3px solid var(--tone); }
.tl-mega__intro { background: var(--tone-wash); border-radius: var(--radius); padding: 1.4rem 1.5rem 1.5rem; align-self: start; }
.tl-mega__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--tone); box-shadow: inset 0 0 0 1px var(--tone-line); margin-bottom: 0.85rem; }
.tl-mega__icon svg { width: 24px; height: 24px; }
.tl-mega__group .tl-mega__label { color: var(--tone-ink) !important; }
body.tl .tl-mega .tl-btn { background: var(--tone-ink); border-color: var(--tone-ink); }
body.tl .tl-mega .tl-btn:hover { background: var(--ink); border-color: var(--ink); }
.tl-mega__list a { display: grid !important; grid-template-columns: 28px 1fr; column-gap: 0.65rem; align-items: start; }
.tl-mega__list a > b, .tl-mega__list a > span { grid-column: 2; }
.tl-mega__licon { grid-row: 1 / span 2; color: var(--tone); padding-top: 2px; }
.tl-mega__licon svg { width: 22px; height: 22px; }
.tl-mega__list a:not(:has(.tl-mega__licon)) { grid-template-columns: 1fr; }
.tl-mega__list a:not(:has(.tl-mega__licon)) > b, .tl-mega__list a:not(:has(.tl-mega__licon)) > span { grid-column: 1; }
.tl-mega__list a:hover { background: linear-gradient(90deg, var(--tone-wash), transparent 70%); }
.tl-mega__places a:hover { border-color: var(--tone); background: var(--tone-wash); }

/* Mobile drawer */
@media (max-width: 1100px) {
  .tl-drawer__topics a { display: grid !important; grid-template-columns: 26px 1fr; gap: 0.55rem; align-items: center; border-left: 3px solid var(--tone) !important; background: #fff !important; }
  .tl-drawer__topics a i { color: var(--tone); }
  .tl-drawer__topics a i svg { width: 22px; height: 22px; }
  .tl-drawer summary { justify-content: flex-start !important; gap: 0.6rem; }
  .tl-drawer summary::after { margin-left: auto; }
  .tl-drawer__mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--tone-wash); color: var(--tone); }
  .tl-drawer__mark svg { width: 18px; height: 18px; }
  .tl-drawer details[data-tone] ul.tl-drawer__links a:hover { border-left-color: var(--tone); }
}

/* Page head: section badge and rule */
.tl-pagehead[data-tone] { border-top: 3px solid var(--tone); }
.tl-pagehead__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin: 0 !important; }
.tl-section-badge { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.22rem 0.65rem 0.22rem 0.45rem; border-radius: 999px; background: var(--tone-wash); color: var(--tone-ink); font: 650 0.8rem/1.2 var(--sans); box-shadow: inset 0 0 0 1px var(--tone-line); }
.tl-section-badge i { color: var(--tone); }
.tl-section-badge svg { width: 16px; height: 16px; }

/* Content: section markers, callouts, lists */
body.tl main[data-tone] .topic-main h2, body.tl main[data-tone] .vfl-prose h2 {
  background: linear-gradient(var(--tone), var(--tone)) top left / 44px 3px no-repeat; border-top-color: var(--rule);
}
body.tl main[data-tone] .topic-main ul li::marker, body.tl main[data-tone] .vfl-prose li::marker { color: var(--tone); }
body.tl main[data-tone] .vfl-callout, body.tl main[data-tone] .topic-callout { border-left-color: var(--tone); background: linear-gradient(90deg, var(--tone-wash), #fff 60%); }
body.tl main[data-tone] .vfl-toc-links a:hover { border-left-color: var(--tone); }
body.tl main[data-tone] .vfl-toc { border-top: 3px solid var(--tone) !important; }
body.tl main[data-tone] .vfl-stats { border-top: 3px solid var(--tone); }
body.tl main[data-tone] .vfl-stat-card .value { color: var(--tone-ink) !important; }
body.tl main[data-tone] .vfl-keyfacts__label { color: var(--tone-ink) !important; }
body.tl main[data-tone] .vfl-keyfacts__label .fa { color: var(--tone) !important; }
body.tl main[data-tone] .vfl-keyfacts__grid { border-top: 3px solid var(--tone); }
body.tl main[data-tone] .vfl-eyebrow__num { background: var(--tone-ink) !important; color: #fff !important; }
body.tl main[data-tone] .vfl-side-list strong { color: var(--tone-ink) !important; }
body.tl main[data-tone] .vfl-side-box h2 { padding-left: 0.65rem !important; border-left: 3px solid var(--tone) !important; }
body.tl main[data-tone] .vfl-side-cta--ghost:hover { border-color: var(--tone) !important; background: var(--tone-wash) !important; }
body.tl main[data-tone] .vfl-tag.accent { border-color: var(--tone) !important; color: var(--tone-ink) !important; background: var(--tone-wash) !important; }
body.tl main[data-tone] .vfl-related-chips a:hover { border-color: var(--tone) !important; background: var(--tone-wash) !important; }
body.tl main[data-tone] .topic-sidebar nav li.current-menu-item a { border-left-color: var(--tone); }
body.tl main[data-tone] .topic-sidebar nav li a:hover { border-left-color: var(--tone); }
body.tl main[data-tone] .vfl-factor-card:hover { border-color: var(--tone) !important; }
body.tl main[data-tone] .vfl-factor-card__icon { background: var(--tone-wash) !important; color: var(--tone) !important; }
body.tl main[data-tone] .vfl-factor-card__statute { color: var(--tone-ink) !important; }
body.tl main[data-tone] .vfl-faq summary:hover { color: var(--tone-ink); }
body.tl main[data-tone] .vfl-faq summary .chevron { color: var(--tone); }

/* Court guide: the court card leads in navy with a teal rule */
body.tl .tl-court .vfl-doc__side > .vfl-side-box:first-child { border-top: 4px solid #3fa69c !important; }
body.tl .tl-court .vfl-doc__side > .vfl-side-box:first-child h2 { border-left: 0 !important; padding-left: 0 !important; color: #9fd8d0 !important; }
body.tl .tl-court .vfl-eyebrow__court::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--tone); margin-right: 0.4rem; vertical-align: 1px; }

/* Court locator */
body.tl main[data-tone="courts"] .court-card h3 { color: var(--tone-ink) !important; }
body.tl main[data-tone="courts"] .court-locality.is-target { outline-color: var(--tone); background: var(--tone-wash); }
body.tl main[data-tone="courts"] .court-card.is-target { border-color: var(--tone) !important; box-shadow: inset 0 4px 0 var(--tone) !important; }
body.tl .tl-locator-result { border-left-color: #1f7a74; background: #e9f4f2; }

/* ---------- Homepage refinements ---------- */
/* Topic tiles */
.tl-index--tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; border-top: 0; }
.tl-index--tiles li { border-bottom: 0 !important; }
.tl-index--tiles a {
  display: grid !important; grid-template-columns: 1fr; grid-template-areas: "icon" "name" "note" !important; gap: 0.35rem !important;
  height: 100%; padding: 1rem 1rem 1.05rem !important; background: #fff; border: 1px solid var(--rule); border-top: 3px solid var(--tone);
  border-radius: 0 0 var(--radius) var(--radius); transition: background-color .15s ease, border-color .15s ease;
}
.tl-index--tiles a:hover { background: var(--tone-wash); border-color: var(--tone-line); border-top-color: var(--tone); }
.tl-index--tiles a:focus-visible { outline-color: var(--tone); }
.tl-index__icon { grid-area: icon; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--tone-wash); color: var(--tone); margin-bottom: 0.2rem; }
.tl-index--tiles a:hover .tl-index__icon { background: #fff; }
.tl-index__icon svg { width: 22px; height: 22px; }
.tl-index--tiles .tl-index__name { font-size: 1.15rem !important; color: var(--ink); }
.tl-index--tiles .tl-index__note { text-align: left !important; margin: 0 !important; font-size: 0.86rem; line-height: 1.4; }
.tl-index--tiles .tl-index__leader { display: none; }
.tl-index--tiles li[data-tone="safety"] a { background: linear-gradient(180deg, #fff, #fff 60%, var(--tone-wash)); }
@media (max-width: 1180px) { .tl-index--tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) {
  .tl-index--tiles { grid-template-columns: 1fr; gap: 0.5rem; }
  .tl-index--tiles a { grid-template-columns: 40px 1fr !important; grid-template-areas: "icon name" "icon note" !important; column-gap: 0.8rem !important; row-gap: 0.1rem !important; align-items: center; padding: 0.8rem 0.9rem !important; }
  .tl-index__icon { margin: 0; }
}

/* Court finder: signature tool */
.tl-finder { border-top: 0 !important; overflow: hidden; border-radius: var(--radius) !important; box-shadow: 0 1px 2px rgba(19,35,63,.06), 0 18px 40px -20px rgba(26,101,96,.45) !important; }
.tl-finder__head {
  display: grid; grid-template-columns: 52px 1fr; gap: 1rem; align-items: start;
  background: linear-gradient(135deg, var(--ink) 0%, #173a52 55%, #1a6560 100%); color: #fff; padding: 1.4rem 1.5rem 1.35rem !important;
  border-bottom: 3px solid var(--brass);
}
.tl-finder__badge { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.1); color: #9fd8d0; box-shadow: inset 0 0 0 1px rgba(159,216,208,.45); }
.tl-finder__badge svg { width: 28px; height: 28px; }
body.tl .tl-finder__kicker { margin: 0 0 0.2rem; font-size: 0.8rem; color: #9fd8d0; font-weight: 650; }
body.tl .tl-finder .tl-finder__title { color: #fff !important; }
body.tl .tl-finder .tl-finder__sub { color: #d7e3ea; }
.tl-finder__steps { background: #fff; }
.tl-finder__n { border-color: var(--tone) !important; color: #fff !important; background: var(--tone); }
.tl-finder__choice { display: grid !important; grid-template-columns: auto 26px 1fr; align-items: start; }
.tl-finder__cicon { color: var(--tone); padding-top: 1px; }
.tl-finder__cicon svg { width: 22px; height: 22px; }
.tl-finder__choice:hover { border-color: var(--tone-line); }
.tl-finder__choice:has(input:checked) { border-color: var(--tone) !important; background: var(--tone-wash) !important; box-shadow: inset 4px 0 0 var(--tone) !important; }
.tl-finder__choice input { accent-color: #1a6560 !important; }
.tl-finder select:focus { outline: 3px solid var(--brass); outline-offset: 1px; border-color: var(--tone); }
body.tl .tl-finder .tl-finder__go { background: var(--tone-ink); border-color: var(--tone-ink); font-size: 1rem; padding: 0.85rem 1.5rem 0.85rem 1.2rem; }
body.tl .tl-finder .tl-finder__go:hover { background: var(--ink); border-color: var(--ink); }
.tl-finder__go svg { width: 18px; height: 18px; }

/* Tools strip: each tool marked in its family colour on navy */
.tl-tools__icon { display: block; width: 26px; height: 26px; color: var(--tone-on-dark); margin-bottom: 0.55rem; }
.tl-tools__icon svg { width: 26px; height: 26px; }
.tl-tools__list li { border-top: 3px solid transparent; }
.tl-tools__list li[data-tone] { box-shadow: inset 0 3px 0 var(--tone-on-dark); }
.tl-tools__list { border-top: 0 !important; }
.tl-tools__list a { padding-top: 1.1rem !important; }

/* Most-read row */
.tl-read__list a { border-top: 3px solid var(--tone) !important; display: grid !important; grid-template-columns: 40px 1fr; gap: 0 0.85rem; }
.tl-read__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--tone-wash); color: var(--tone); }
.tl-read__icon svg { width: 22px; height: 22px; }

/* Explainer and resources pick up their families */
.tl-explainer { --tone: #7a3368; --tone-wash: #f7eef4; }
.tl-explainer__aside { border-top: 3px solid var(--tone) !important; }
body.tl .tl-explainer__kicker { color: #6b2d5c !important; }
body.tl .tl-explainer__body h3 { background: linear-gradient(var(--tone), var(--tone)) top left / 36px 3px no-repeat; }
.tl-mast { background: linear-gradient(180deg, #fff 0%, #fff 70%, #f7f3ea 100%); }
.tl-mast__facts li b::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--brass); margin-right: 0.45rem; vertical-align: 2px; }
.home-resource-links li { padding-left: 1rem !important; position: relative; }
.home-resource-links li::before { content: ""; position: absolute; left: 0; top: 1.15rem; width: 6px; height: 6px; border-radius: 50%; background: #2459b0; }

/* Footer: small family swatches on column headings */
.tl-footer nav .tl-footer__label::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 0.45rem; background: #e9d6a6; vertical-align: 1px; }
.tl-footer nav[aria-labelledby="footer-topics-label"] .tl-footer__label::before { background: #e8bfdc; }
.tl-footer nav[aria-labelledby="footer-resources-label"] .tl-footer__label::before { background: #9fd8d0; }
.tl-footer nav[aria-labelledby="footer-site-label"] .tl-footer__label::before { background: #b3c9f0; }

/* Per-topic shades within the family-law (plum) and safety (red) families.
   Each tile also has its own icon and name, so shade is a supporting cue only. */
[data-variant="divorce"]       { --tone: #7a3368; --tone-ink: #6b2d5c; --tone-wash: #f7eef4; --tone-line: #dcbdd2; }
[data-variant="custody"]       { --tone: #93374f; --tone-ink: #7e2e44; --tone-wash: #faeef1; --tone-line: #e5bfc9; }
[data-variant="child-support"] { --tone: #61418a; --tone-ink: #553878; --tone-wash: #f2eef8; --tone-line: #cfc2e2; }
[data-variant="spousal"]       { --tone: #82303d; --tone-ink: #722a36; --tone-wash: #f9eef0; --tone-line: #e2bcc2; }
[data-variant="property"]      { --tone: #6e4a6b; --tone-ink: #5f3f5c; --tone-wash: #f5eff5; --tone-line: #d8c6d6; }
[data-variant="adoption"]      { --tone: #8a4a78; --tone-ink: #763f67; --tone-wash: #f8eff6; --tone-line: #e1c3d8; }
[data-variant="military"]      { --tone: #4c3f74; --tone-ink: #423664; --tone-wash: #f0eef6; --tone-line: #c9c3dd; }
[data-variant="protective"]    { --tone: #9a3029; --tone-ink: #8f2d27; --tone-wash: #fbefed; --tone-line: #e8c1bc; }
[data-variant="dv"]            { --tone: #a5432b; --tone-ink: #923a25; --tone-wash: #fcf0ec; --tone-line: #ebc6ba; }
[data-variant="offenses"]      { --tone: #7a3330; --tone-ink: #6c2d2a; --tone-wash: #f8efee; --tone-line: #dfc0be; }

.tl-index__icon { width: 46px !important; height: 46px !important; box-shadow: inset 0 0 0 1px var(--tone-line); }
.tl-index__icon svg { width: 25px !important; height: 25px !important; }
.tl-index--tiles a { border-top-width: 4px !important; }
.tl-index--tiles .tl-index__name { color: var(--tone-ink) !important; }
.tl-index--tiles a:hover .tl-index__name { color: var(--ink) !important; }
.tl-index--tiles a { align-content: start; }

/* =====================================================================
   Polish pass: brand, restraint, homepage rhythm, mobile.
   ===================================================================== */

/* ---- TroofLaw brand: wordmark first, topic descriptor below ---- */
.tl-brand__mark { width: 46px; height: 46px; font-size: 1.7rem; }
.tl-brand__name b { font-size: 1.6rem !important; letter-spacing: -0.02em !important; line-height: 1 !important; }
.tl-brand__name span { font-size: 0.78rem !important; color: var(--brass-ink) !important; font-weight: 600; margin-top: 0.2rem; }
@media (max-width: 1280px) { .tl-brand__name span { display: block !important; } }
.tl-brand--footer .tl-brand__mark { width: 52px; height: 52px; font-size: 1.9rem; background: transparent; box-shadow: inset 0 0 0 1.5px #e9d6a6; }
.tl-footer__brand .tl-brand__name b { font-size: 2rem !important; color: #fff; }
.tl-footer__brand .tl-brand__name span { color: #e9d6a6 !important; }
body.tl .tl-mast__brand { display: inline-flex; align-items: center; gap: 0.4rem; margin: 0 0 0.75rem; font: 600 0.95rem/1 var(--serif); color: var(--brass-ink); letter-spacing: 0.01em; }
body.tl .tl-mast__brand span { font-size: 1.1rem; }

/* ---- Search: one primary search per screen ---- */
@media (min-width: 1101px) { .tl-bar > .tl-search--home { display: none; } }
.tl-icon-btn--search { width: 44px; justify-content: center; padding: 0; }
a.tl-icon-btn { text-decoration: none !important; }

/* ---- Colour restraint: navy leads, section colour on markers only ---- */
.tl-nav__item[data-tone] > .tl-nav__trigger::before { display: none; }
.tl-nav__item[data-tone]:hover > .tl-nav__trigger, .tl-nav__item[data-tone] > .tl-nav__trigger[aria-expanded="true"] { background: var(--wash); }
.tl-mega__intro { background: var(--paper) !important; border: 1px solid var(--rule); border-top: 3px solid var(--tone); border-radius: 0 0 var(--radius) var(--radius); }
body.tl .tl-mega .tl-btn { background: var(--ink); border-color: var(--ink); }
.tl-mega__group .tl-mega__label { color: var(--ink-soft) !important; }
.tl-mega__list a:hover { background: var(--paper); }
.tl-index__icon { background: var(--paper) !important; box-shadow: inset 0 0 0 1px var(--rule) !important; }
.tl-index--tiles .tl-index__name { color: var(--ink) !important; }
.tl-index--tiles a:hover { background: var(--paper) !important; border-color: var(--rule-strong) !important; }
.tl-index--tiles li[data-tone="safety"] a { background: #fff !important; }
.tl-read__icon { background: var(--paper) !important; box-shadow: inset 0 0 0 1px var(--rule); }
.tl-footer nav .tl-footer__label::before { background: #e9d6a6 !important; }
.tl-pagehead[data-tone] { border-top-width: 2px; }
body.tl main[data-tone] .vfl-callout, body.tl main[data-tone] .topic-callout { background: #fff; }
body.tl main[data-tone] .vfl-stat-card .value { color: var(--ink) !important; }
.tl-drawer__mark { background: var(--paper) !important; box-shadow: inset 0 0 0 1px var(--rule); }

/* ---- Court finder: signature tool, navy-led ---- */
.tl-finder__head { background: var(--ink) !important; border-bottom: 3px solid var(--tone) !important; }
.tl-finder__head::after { content: none; }
.tl-finder { box-shadow: 0 1px 2px rgba(19,35,63,.08), 0 22px 44px -24px rgba(19,35,63,.5) !important; outline: 1px solid rgba(19,35,63,.06); }
.tl-finder__badge { color: #e9d6a6 !important; box-shadow: inset 0 0 0 1px rgba(233,214,166,.5) !important; }
body.tl .tl-finder__kicker { color: #e9d6a6 !important; }
.tl-finder__steps { padding: 0.25rem 1.5rem 1.4rem !important; }
.tl-finder__step { padding: 1.05rem 0 !important; }
.tl-finder__choice { min-height: 52px; padding: 0.65rem 0.8rem !important; background: #fff !important; transition: border-color .12s ease, background-color .12s ease; }
.tl-finder__choice:focus-within { outline: 3px solid var(--brass); outline-offset: 1px; }
.tl-finder__choice input:focus-visible { outline: none; }
.tl-finder select { min-height: 50px; font-size: 1rem; appearance: auto; }
.tl-finder__go { min-height: 50px; }
.tl-finder__step--go { flex-wrap: nowrap !important; }
.tl-finder__step--go .tl-finder__go { flex: 1 1 auto; justify-content: center; }
body.tl .tl-locator-result { margin: 0 0 1rem !important; border-left-color: var(--tone) !important; background: #fff !important; box-shadow: 0 1px 2px rgba(19,35,63,.06); }
body.tl .tl-locator-result strong { color: var(--tone-ink); }

/* ---- Homepage rhythm: clear bands and contained panels ---- */
.tl-desk { border-bottom: 1px solid var(--rule); }
.tl-tools .tl-wrap { padding-top: 2rem !important; padding-bottom: 2rem !important; }
.tl-read { background: var(--paper); }
.tl-read .tl-wrap { padding-top: 2.25rem !important; padding-bottom: 2.25rem !important; }
.tl-read__list a { background: #fff; border: 1px solid var(--rule); border-top: 3px solid var(--tone) !important; border-radius: 0 0 var(--radius) var(--radius); padding: 1rem 1.1rem !important; }
.tl-explainer { background: #fff; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.tl-explainer__grid { padding-top: 3rem !important; padding-bottom: 3rem !important; grid-template-columns: minmax(0, 1fr) minmax(0, 3.2fr) !important; }
.tl-explainer__body { max-width: none !important; }
body.tl .tl-explainer__body > p { max-width: var(--measure); }
.tl-explainer__panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.tl-explainer__panel { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.1rem 1.25rem 0.4rem; min-width: 0; }
body.tl .tl-explainer__panel h3 { margin: 0 0 0.5rem !important; padding: 0.65rem 0 0 !important; border-top: 0 !important; font-size: 1.15rem !important; }
body.tl .tl-explainer__panel p { font-size: 0.96rem; line-height: 1.62; }
.tl-trust__grid { padding-top: 2.75rem !important; padding-bottom: 2.75rem !important; }
.tl-band-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 0 3rem; max-width: var(--wrap); margin: 0 auto; padding: 2.75rem 2rem 3.5rem; align-items: start; }
.tl-band-pair > section .tl-wrap { padding: 0 !important; margin: 0 !important; max-width: none !important; }
.tl-band-pair .tl-resources { background: #fff; border: 1px solid var(--rule); border-top: 3px solid #2459b0; border-radius: 0 0 var(--radius) var(--radius); padding: 1.25rem 1.4rem; }
body.tl .tl-band-pair .site-faq h2 { margin-top: 0; }
@media (max-width: 1000px) {
  .tl-explainer__grid { grid-template-columns: 1fr !important; }
  .tl-band-pair { grid-template-columns: 1fr; padding: 2rem 1.25rem 2.5rem; gap: 2rem; }
}
@media (max-width: 700px) { .tl-explainer__panels { grid-template-columns: 1fr; } }

/* ---- Mobile ---- */
@media (max-width: 760px) {
  .tl-strip .tl-wrap { padding-top: 0.3rem; padding-bottom: 0.3rem; }
  body.tl .tl-strip p { font-size: 0.78rem; }
  .tl-bar { min-height: 60px; }
  .tl-brand__mark { width: 40px; height: 40px; font-size: 1.45rem; }
  .tl-brand__name b { font-size: 1.4rem !important; }
  .tl-brand__name span { font-size: 0.72rem !important; }
  .tl-icon-btn { height: 44px; min-width: 44px; }

  .tl-mast__grid { padding-top: 1.4rem !important; padding-bottom: 1.5rem !important; gap: 1.25rem !important; }
  body.tl .tl-mast h1.hero-heading { font-size: 2.3rem; }
  body.tl .tl-mast__tagline { font-size: 1.05rem; margin-bottom: 1.1rem; }
  .tl-mast__searchrow { flex-direction: row !important; }
  .tl-mast__searchrow input { height: 50px; font-size: 1rem; }
  .tl-mast__searchrow .tl-btn { height: 50px; padding: 0 1rem; }
  .tl-mast__facts { display: flex; flex-wrap: wrap; gap: 0.4rem; border: 0 !important; }
  body.tl .tl-mast__facts li { padding: 0.3rem 0.65rem !important; border: 1px solid var(--rule) !important; border-radius: 999px; font-size: 0.8rem; line-height: 1.3; }
  .tl-mast__facts li b + * , .tl-mast__facts li { color: var(--ink); }
  .tl-mast__facts li { max-width: 100%; }
  .tl-mast__facts li b ~ *, .tl-mast__facts li:not(:has(b)) { display: none; }

  .tl-desk__grid { padding-top: 1.75rem !important; padding-bottom: 2rem !important; gap: 1.75rem !important; }
  .tl-index--tiles { grid-template-columns: 1fr 1fr !important; gap: 0.5rem !important; }
  .tl-index--tiles a { grid-template-columns: 34px 1fr !important; grid-template-areas: "icon name" !important; align-items: center; padding: 0.6rem 0.65rem !important; min-height: 56px; column-gap: 0.55rem !important; border-top-width: 3px !important; }
  .tl-index--tiles .tl-index__note { display: none; }
  .tl-index__icon { width: 34px !important; height: 34px !important; margin: 0 !important; }
  .tl-index__icon svg { width: 20px !important; height: 20px !important; }
  .tl-index--tiles .tl-index__name { font-size: 0.98rem !important; line-height: 1.2; }

  .tl-finder__head { grid-template-columns: 40px 1fr !important; gap: 0.75rem !important; padding: 1.1rem 1rem !important; }
  .tl-finder__badge { width: 40px !important; height: 40px !important; }
  .tl-finder__badge svg { width: 22px !important; height: 22px !important; }
  body.tl .tl-finder .tl-finder__title { font-size: 1.35rem !important; }
  body.tl .tl-finder__sub { font-size: 0.9rem; }
  .tl-finder__steps { padding: 0 1rem 1.1rem !important; }
  .tl-finder__choice small { font-size: 0.8rem; }

  .tl-tools__list a { padding: 0.85rem 0 !important; }
  .tl-read .tl-wrap, .tl-explainer__grid, .tl-trust__grid { padding-top: 1.75rem !important; padding-bottom: 1.75rem !important; }
  .tl-explainer__aside { display: none; }

  /* Footer tap targets */
  body.tl .tl-footer li { margin: 0; }
  .tl-footer li a { display: inline-block; padding: 0.55rem 0; }
  .tl-footer__top { gap: 1.5rem; padding-top: 2.25rem; }

  /* Drawer: shorter, larger targets */
  .tl-drawer { padding: 0.75rem 0 1rem !important; max-height: calc(100dvh - 100px); overflow-y: auto; }
  .tl-drawer__topics a { min-height: 48px !important; font-size: 0.93rem !important; }
  .tl-drawer summary { min-height: 50px !important; }
  .tl-drawer ul.tl-drawer__links a { min-height: 44px; display: flex !important; align-items: center; }
}
@media (max-width: 760px) {
  body.tl .tl-mast__facts li { font-size: 0 !important; padding: 0.35rem 0.7rem !important; }
  body.tl .tl-mast__facts li b { font-size: 0.8rem; font-weight: 650; }
}
@media (max-width: 760px) { .tl-footer li a { padding: 0.7rem 0; min-height: 44px; } }
@media (max-width: 760px) { body.tl .tl-mast__brand { display: none; } }

/* ---- Micro-polish (preview) ---- */
.tl-finder__kicker-short { display: none; }
@media (max-width: 760px) {
  body.tl .tl-mast h1.hero-heading { font-size: 2rem; }
  .tl-strip .tl-wrap { padding-top: 0.18rem; padding-bottom: 0.18rem; }
  body.tl .tl-strip p { font-size: 0.74rem; line-height: 1.3; }
  .tl-finder__kicker-full { display: none; }
  .tl-finder__kicker-short { display: inline; }
}

/* Menu and footer group labels are paragraphs, not headings, so they stay out of each page's
   heading outline. These rules reproduce the heading styles they had (body.tl h2 / h3 won the
   cascade over the component rules above), so nothing moves visually. */
body.tl .tl-mega__intro .tl-mega__title,
body.tl .tl-mega__group .tl-mega__label,
body.tl .tl-footer .tl-footer__label {
  letter-spacing: -0.005em;
  line-height: 1.2;
  text-wrap: balance;
}
body.tl .tl-mega__intro .tl-mega__title,
body.tl .tl-mega__group .tl-mega__label {
  font-family: var(--serif);
  font-weight: 600;
}
body.tl .tl-mega__intro .tl-mega__title { font-size: var(--step-3); color: var(--ink); margin: 2.25rem 0 0.75rem; }
body.tl .tl-mega__group .tl-mega__label { font-size: var(--step-2); margin: 1.75rem 0 0.5rem; }
