/* Modern Mark — components for the service / topic pages.
   Loaded after site.css. Uses only the existing tokens (--ink, --cream,
   --cream-2, --paper, --yellow, --gray-text, --gray-line), the existing type
   families, and sizes already used in site.css. Do not add new values. */

/* ========== STAGING DRAFT BANNER — remove before publish ========== */
.draft-banner {
  background: var(--yellow);
  color: var(--ink);
  border-bottom: 1.5px solid var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 8px 16px;
}

/* ========== PAGE HERO ========== */
.page-hero {
  padding: 100px 0 80px;
  border-bottom: 1px solid var(--gray-line);
}
.crumbs {
  /* site.css styles every bare <nav> as the sticky top bar — undo that here */
  position: static;
  z-index: auto;
  background: none;
  border-bottom: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--gray-text);
  margin-bottom: 24px;
}
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs li + li::before { content: '/'; margin-right: 8px; opacity: 0.5; }
.crumbs a { color: var(--gray-text); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

.page-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center; /* was end: on pages with a long intro the TL;DR box sat far below the headline (Vicky, 2026-10-14) */
}
.page-title {
  font-family: 'Gambarino', 'Manrope', serif;
  font-size: clamp(40px, 5.2vw, 76px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  font-weight: 400;
  margin-bottom: 28px;
  max-width: 980px;
}
/* inline-block, as on the home hero: an inline highlight splits across lines
   and each line's box paints over the descenders of the line above. */
.page-title .accent {
  background: var(--yellow);
  padding: 0 0.12em;
  display: inline-block;
  line-height: 0.95;
  margin-top: 0.1em; /* clears descenders (y, p, g) on the line above */
}
.page-lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--gray-text);
  max-width: 620px;
  margin-bottom: 36px;
}
.page-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--gray-text);
  margin-top: 28px;
}

/* "Starting at" price (build/pricing.mjs) */
.price-tag {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: -12px 0 32px;
  max-width: 620px;
}
.price-tag-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-text);
}
.price-tag strong {
  font-family: 'Gambarino', serif;
  font-size: 32px;
  line-height: 1;
  font-weight: 400;
  color: var(--ink);
}
.price-tag-unit { font-size: 15px; line-height: 1.5; color: var(--gray-text); }
.svc-price {
  margin-top: 16px;
  font-size: 15px;
  font-weight: 600;
}
/* Staging only: a price Vicky has not confirmed yet */
.price-pending {
  outline: 1.5px dashed currentColor;
  outline-offset: 6px;
  border-radius: 4px;
}

/* The direct answer — first thing an answer engine can lift whole */
.answer-box {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  box-shadow: 10px 10px 0 var(--ink);
  padding: 40px 36px;
}
.answer-box-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.answer-box-tag .yellow-dot {
  width: 8px;
  height: 8px;
  background: var(--yellow);
  border: 1px solid var(--ink);
  border-radius: 50%;
}
.answer-box p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
}
.answer-box p + p { margin-top: 14px; }

/* ========== DATA BAND — sourced numbers on ink ========== */
.data-band {
  background: var(--ink);
  color: var(--paper);
  padding: 100px 0;
}
.data-band-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: rgba(244, 237, 225, 0.5);
  letter-spacing: 0.06em;
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.data-band-tag .blink-dot {
  width: 8px;
  height: 8px;
  background: var(--yellow);
  border-radius: 50%;
}
.data-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}
.data-num {
  font-family: 'Gambarino', serif;
  font-size: clamp(40px, 5.2vw, 76px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--yellow);
  margin-bottom: 14px;
}
.data-label {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(244, 237, 225, 0.72);
}
.data-sources {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid rgba(244, 237, 225, 0.18);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  line-height: 1.8;
  color: rgba(244, 237, 225, 0.55);
  letter-spacing: 0.06em;
}
.data-sources strong { color: var(--paper); font-weight: 500; margin-right: 8px; }

/* ========== ARTICLE — on-page contents + question-led sections ========== */
.article { padding: 140px 0; }
.article-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}
.toc {
  position: sticky;
  top: 100px;
  border-top: 1px solid var(--ink);
}
.toc-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-text);
  padding: 18px 0 10px;
}
.toc ol { list-style: none; }
.toc a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-line);
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink);
  text-decoration: none;
  transition: padding-left 0.25s ease;
}
.toc a:hover { padding-left: 12px; }

.qa-section {
  padding: 64px 0;
  border-top: 1px solid var(--gray-line);
  scroll-margin-top: 100px;
}
.qa-section:first-child { padding-top: 0; border-top: none; }
.qa-section h2 {
  font-family: 'Gambarino', serif;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin-bottom: 24px;
  max-width: 780px;
}
.qa-section h3 {
  font-family: 'Gambarino', serif;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-weight: 400;
  margin: 40px 0 14px;
}
/* First paragraph under each question = the direct answer */
.qa-answer {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink);
  font-weight: 500;
  max-width: 780px;
  margin-bottom: 20px;
  padding-left: 20px;
  border-left: 4px solid var(--yellow);
}
.prose p, .prose li {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  max-width: 780px;
}
.prose p + p { margin-top: 16px; }
.prose ul, .prose ol { margin: 16px 0 0 22px; }
.prose li + li { margin-top: 10px; }
.prose a, .qa-answer a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 1px;
}
.prose strong { font-weight: 600; }
.prose mark { background: var(--yellow); color: var(--ink); padding: 0 0.15em; }

/* Data tables */
.table-wrap { overflow-x: auto; margin: 28px 0 0; max-width: 780px; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--ink);
  font-size: 15px;
}
.data-table caption {
  text-align: left;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--gray-text);
  caption-side: bottom;
  padding-top: 12px;
  line-height: 1.6;
}
.data-table th {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gray-text);
  text-align: left;
  padding: 14px 12px 14px 0;
  border-bottom: 1px solid var(--ink);
}
.data-table td {
  padding: 14px 12px 14px 0;
  border-bottom: 1px solid var(--gray-line);
  line-height: 1.4;
}
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table tr.hl td { background: var(--yellow); }

.source-note {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.6;
  color: var(--gray-text);
  margin-top: 16px;
  max-width: 780px;
}

/* ========== FAQ LIST — every answer in the HTML, native <details> ========== */
.faq-list { border-top: 1px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--ink); }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 32px 1fr 16px;
  gap: 16px;
  align-items: center;
  padding: 22px 4px 22px 0;
  transition: padding-left 0.25s ease;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover, .faq-list details[open] summary { padding-left: 12px; }
.faq-list summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.faq-list .q-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--gray-text);
  letter-spacing: 0.06em;
}
.faq-list .q-text {
  font-family: 'Gambarino', serif;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.faq-list .q-indicator {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  transition: all 0.25s ease;
}
.faq-list details[open] .q-indicator { background: var(--yellow); transform: scale(1.15); }
.faq-list .faq-a {
  padding: 0 0 28px 48px;
  font-size: 17px;
  line-height: 1.65;
  max-width: 820px;
}
.faq-list .faq-a p + p { margin-top: 12px; }

/* ========== AUTHOR / FIRM BOX ========== */
.author-box {
  margin-top: 64px;
  padding: 28px 32px;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  background: var(--paper);
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  align-items: start;
  max-width: 780px;
}
.author-box img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 1.5px solid var(--ink);
}
.author-box p { font-size: 16px; line-height: 1.6; color: var(--ink); }
.author-box a { color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--ink); }
.author-box .author-box-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-text);
  margin-bottom: 8px;
}
.author-box + .disclaimer-box { margin-top: 24px; }

/* ========== DISCLAIMER ========== */
.disclaimer-box {
  margin-top: 64px;
  padding: 28px 32px;
  background: var(--cream-2);
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-text);
}
.disclaimer-box strong {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 8px;
}

/* Related pages reuse .services-grid / .svc-card; cards are links here */
a.svc-card { text-decoration: none; }

/* Home service cards: the title is the link, stretched over the whole card */
.svc-card-link { color: inherit; text-decoration: none; }
.svc-card-link::after { content: ''; position: absolute; inset: 0; border-radius: 12px; z-index: 1; } /* above .svc-tag, whose opacity paints it over the link */
.svc-card-link:focus-visible { outline: none; }
.svc-card:has(.svc-card-link:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ========== FOOTER — five columns (adds Industries) ==========
   site.css has four; the breakpoint values below repeat site.css's own. */
.footer-top { grid-template-columns: minmax(317px, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 48px; }
@media (max-width: 1024px) { .footer-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; } }
@media (max-width: 720px) { .footer-top { grid-template-columns: minmax(0, 1fr); gap: 40px; } }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .page-hero { padding: 60px 0 64px; }
  .page-hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .data-grid { grid-template-columns: 1fr 1fr; }
  .article-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .toc { position: static; }
}
@media (max-width: 720px) {
  .page-hero { padding: 50px 0 60px; }
  .answer-box { padding: 32px 24px; box-shadow: 8px 8px 0 var(--ink); }
  .data-band, .article { padding: 100px 0; }
  .data-grid { grid-template-columns: 1fr; gap: 36px; }
  .qa-section { padding: 48px 0; }
  .qa-answer { font-size: 17px; }
  .faq-list .faq-a { padding-left: 0; }
}
@media print {
  .draft-banner, .toc, .data-band { display: none !important; }
}

/* Terms of Use and Privacy Policy: the firm's own text, set at body size. */
.legal-text { max-width: 780px; }
.legal-text h2 { font-size: 17px; font-weight: 700; letter-spacing: 0.02em; line-height: 1.4; margin: 44px 0 0; }
.legal-text h3 { font-size: 17px; font-weight: 600; line-height: 1.4; margin: 28px 0 0; }
.legal-text h2 + p, .legal-text h3 + p, .legal-text h2 + ul, .legal-text h3 + ul { margin-top: 12px; }
.legal-text ul + p, .legal-text p + ul { margin-top: 16px; }
.legal-text a { overflow-wrap: anywhere; }

/* Trademark spectrum of distinctiveness (build/spectrum.mjs) */
.prose .spectrum { margin: 28px 0 0; max-width: 780px; }
.spectrum-title { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; margin-bottom: 14px; }
.prose .spectrum-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.prose .spectrum-item { margin: 0; max-width: none; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 12px; padding: 16px 14px; display: flex; flex-direction: column; font-size: 15px; line-height: 1.45; }
.prose .spectrum-item.dark { background: var(--ink); color: var(--paper); }
.prose .spectrum-item p { font-size: 15px; line-height: 1.45; color: inherit; margin: 0; }
.prose .spectrum-level { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500; }
.spectrum-meter { display: flex; gap: 3px; margin-bottom: 8px; }
.spectrum-meter i { width: 12px; height: 12px; border: 1.5px solid currentColor; border-radius: 2px; }
.spectrum-meter i.on { background: var(--yellow); border-color: var(--ink); }
.spectrum-item.dark .spectrum-meter i.on { border-color: var(--yellow); }
.prose .spectrum-name { font-family: 'Gambarino', serif; font-weight: 400; font-size: 24px; line-height: 1.05; letter-spacing: -0.01em; margin: 12px 0 10px; color: inherit; }
.prose .spectrum-def { flex: 1; }
.prose .spectrum-eg { margin-top: 14px; padding-top: 10px; border-top: 1px solid currentColor; }
.spectrum-eg span { display: block; font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.spectrum-eg em { font-weight: 600; }
.prose .spectrum-item + .spectrum-item { margin-top: 0; }
@media (max-width: 900px) {
  .prose .spectrum-list { grid-template-columns: minmax(0, 1fr); }
  .prose .spectrum-name { margin-top: 8px; }
}

/* ========== Mobile menu (assets/nav.js) ==========
   At 860px and below a11y.css hides .nav-links; the Menu button reopens them
   as a panel under the bar. Same tokens and pill shape as the site's buttons. */
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }
@media (max-width: 860px) {
  nav { position: sticky; }
  .nav-toggle:not([hidden]) {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--paper); color: var(--ink);
    border: 1.5px solid var(--ink); border-radius: 999px;
    padding: 9px 14px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before {
    display: block; width: 16px; height: 1.5px; background: var(--ink); position: relative;
  }
  .nav-toggle-bars { margin: 3px 0; }
  .nav-toggle-bars::before { content: ''; position: absolute; top: -5px; }
  .nav-toggle-bars::after { content: ''; display: block; width: 16px; height: 1.5px; background: var(--ink); position: absolute; top: 5px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }
  .nav-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

  nav.nav-open .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--ink);
    padding: 8px 20px 16px;
  }
  nav.nav-open .nav-links a { font-size: 17px; padding: 14px 0; border-bottom: 1px solid var(--gray-line); }
  nav.nav-open .nav-links a:last-child { border-bottom: 0; }
}
/* Narrowest phones: icon-only toggle so the logo and Work With Us still fit. */
@media (max-width: 420px) {
  .nav-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nav-toggle:not([hidden]) { padding: 11px 10px; }
  .nav-actions { gap: 6px; }
}

/* Four reviews: two columns by two rows, same card styles and stagger. */
.reviews-grid:has(> .review-card-4) { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
.review-card-4 { transform: rotate(1deg) translateY(20px); box-shadow: 6px 6px 0 var(--ink); }
@media (max-width: 1024px) {
  .reviews-grid:has(> .review-card-4) { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .review-card-4 { transform: none; }
}

/* "TL;DR" label on the answer box (Vicky, 2026-10-14): an abbreviation, styled like the label it replaced. */
.answer-box-tag abbr { text-decoration: none; cursor: help; }

/* Manrope draws "(c)" as a © ligature, so 501(c)(3) read as "501©(3)" (Vicky, 2026-10-15).
   Body text drops common ligatures; the Gambarino headings keep theirs. */
body { font-variant-ligatures: no-common-ligatures; }
h1, h2, h3 { font-variant-ligatures: normal; }

/* Balanced headline wrapping: no single word stranded on its own line. */
.page-title { text-wrap: balance; }

/* Spectrum chart: each card's level, name, definition and example share rows,
   so the examples line up even when one definition runs a line longer. */
@media (min-width: 901px) {
  .prose .spectrum-list { grid-template-rows: auto auto 1fr auto; }
  .prose .spectrum-item { display: grid; grid-template-rows: subgrid; grid-row: span 4; row-gap: 0; }
  .prose .spectrum-def { align-self: start; }
  .prose .spectrum-eg { align-self: start; }
}
