/* Article pages. Loads after styles.css and components.css (the content components, scoped
   to .lv), so rules here win ties with the component ones. */

/* ── Hero ── */
.art-hero { padding-top: clamp(40px, 6vw, 88px); text-align: center; }
.art-crumbs { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--fg-2); }
.art-crumbs a { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: var(--panel); border-radius: 999px; padding: 6px 12px; transition: background-color .2s, color .2s; }
.art-crumbs a:hover { background: var(--panel-hover); color: var(--fg); }
.art-crumbs .i { width: 12px; height: 12px; color: var(--muted); }
.art-hero h1 { max-width: 920px; margin: 22px auto 0; font-size: clamp(36px, 4.6vw, 58px); font-weight: 400; letter-spacing: -.045em; line-height: 1.08; text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }
.art-hero h1 span { display: block; font-family: var(--serif); font-style: italic; letter-spacing: -.02em; color: var(--muted); }
.art-lede { max-width: 640px; margin: 22px auto 0; color: var(--fg-2); font-size: 17px; line-height: 1.6; text-wrap: pretty; }
.art-meta { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-top: 22px; font-size: 13px; color: var(--fg-2); }
.art-meta i { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }
.art-media { max-width: 1080px; margin: 48px auto 0; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.art-media img { width: 100%; height: 100%; object-fit: cover; }
/* US state-law pages answer in a verdict card under the title, flat like the answer box */
.art-verdict { max-width: 820px; margin: 32px auto 0; text-align: left; }
.art-verdict .verdict-card { margin: 0; padding: 26px 28px 24px; background: var(--panel); border: 0; border-radius: 28px; box-shadow: none; }
.art-verdict .verdict-card__verdict { margin: 14px 0 8px; font-family: var(--sans); font-size: clamp(22px, 2.4vw, 27px); font-weight: 500; letter-spacing: -.025em; color: var(--fg); }
.art-verdict .verdict-card__detail { font-size: 15.5px; color: var(--fg-2); }
.art-verdict .verdict-card__qualifier { color: var(--fg-2); }
.art-verdict .verdict-card__facts { border-top-color: var(--line); }
.art-verdict .verdict-card__facts dt { font-weight: 500; color: var(--fg-2); }
.art-verdict .verdict-card__facts dd { font-weight: 500; color: var(--fg); }
.art-verdict .verdict-card__compare { font-weight: 500; color: var(--fg); }
.art-verdict .verdict-card__locator-rest { stroke: var(--panel); }
.art-livehero, .art-wide { margin-top: clamp(24px, 4vw, 48px); }
.lv { overflow-x: clip; }
/* the components' "* { padding: 0 }" reset must not reach the site's own buttons */
.lv .btn { padding: 0 24px; }
.lv .btn-sm { padding: 0 18px; }
/* the component FAQ lifts an open question onto a shadowed card and turns its whole marker 45°;
   the site's FAQ stays flat and turns its plus into a minus */
.lv .faq-item:hover, .lv .faq-item[open] { background: none; box-shadow: none; }
.lv .faq-item[open] .faq-marker { transform: none; }

/* ── Rail: the contents scroll inside it, the trial card stays pinned underneath ── */
.art-grid { display: grid; grid-template-columns: 260px minmax(0, 720px); justify-content: center; align-items: start; gap: clamp(40px, 5vw, 80px); margin-top: clamp(56px, 7vw, 96px); }
.art-rail { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; max-height: calc(100vh - 120px); }
.art-toc { display: flex; flex-direction: column; flex: 0 1 auto; min-height: 0; }
.art-toc__label { flex: none; margin-bottom: 8px; padding-left: 14px; font-size: 12px; font-weight: 500; color: var(--fg-2); }
.art-toc__list { flex: 0 1 auto; min-height: 0; overflow-y: auto; display: grid; align-content: start; gap: 2px; list-style: none; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.art-toc__list a { display: block; padding: 7px 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.35; color: var(--fg-2); transition: background-color .2s, color .2s; }
.art-toc__list a:hover { background: var(--panel); color: var(--fg); }
.art-toc__list a.on { position: relative; background: var(--panel); color: var(--fg); }
.art-toc__list a.on::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 2px; border-radius: 2px; background: var(--gold); }
.art-cta { flex: none; display: grid; gap: 8px; background: var(--panel); border-radius: 26px; padding: 12px 12px 16px; }
.art-cta__shot { display: flex; justify-content: center; height: 128px; padding-top: 16px; overflow: hidden; background: #fff; border-radius: 18px; }
.art-cta__shot img { width: 62%; height: auto; align-self: flex-start; border: 4px solid #1b1f26; border-bottom: 0; border-radius: 22px 22px 0 0; }
.art-cta b { padding: 6px 6px 0; font-size: 17px; font-weight: 500; letter-spacing: -.02em; line-height: 1.25; }
.art-cta p { padding: 0 6px; font-size: 13px; line-height: 1.5; color: var(--fg-2); }
.art-cta .btn { margin: 6px 6px 0; }
.art-cta small { padding: 0 6px; font-size: 11.5px; text-align: center; color: var(--muted); }
@media (max-height: 760px) { .art-cta__shot { display: none; } }

/* ── Body ── */
.art-body { min-width: 0; }
.art-body .article-body { max-width: none; font-size: 17px; line-height: 1.72; color: #3a404b; }
.art-body .article-body p { margin: 0 0 1em; }
.art-body .article-body h2 { margin: 2.2em 0 .6em; font-family: var(--sans); font-size: clamp(24px, 2.4vw, 30px); font-weight: 450; letter-spacing: -.035em; line-height: 1.2; color: var(--fg); scroll-margin-top: 100px; }
.art-body .article-body > h2:first-child { margin-top: 0; }
.art-body .article-body h3 { margin: 1.6em 0 .4em; font-family: var(--sans); font-size: 20px; font-weight: 500; letter-spacing: -.02em; line-height: 1.3; color: var(--fg); }
.art-body .article-body a:not(.button):not([class*="badge"]) { color: var(--fg); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--gold) 55%, transparent); text-underline-offset: 3px; }
.art-body .article-body a:not(.button):not([class*="badge"]):hover { text-decoration-color: var(--gold); }
.art-body .article-body strong { font-weight: 600; color: var(--fg); }
.art-body .article-body ul.prose-list, .art-body .article-body > ul { margin: 0 0 1.2em; list-style: none; }
.art-body .article-body ul.prose-list li, .art-body .article-body > ul li { position: relative; margin: .45em 0; padding-left: 22px; }
.art-body .article-body ul.prose-list li::before, .art-body .article-body > ul li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.art-body .article-body > ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.art-body .article-body > ol li { margin: .45em 0; padding-left: .3em; }
.art-body .article-body > ol li::marker { color: var(--gold-ink); font-weight: 500; }
.art-body .article-body blockquote { margin: 1.6em 0; padding-left: 20px; border-left: 3px solid var(--gold); font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.45; color: var(--fg); }
.art-body .article-body code { background: var(--panel); border: 0; border-radius: 6px; padding: .1em .35em; font-size: .9em; }
/* code inside a block (the dark record templates, plain <pre>) takes the block's colours;
   the inline-code chip above would paint a pale bar under every line */
.art-body .article-body pre code { background: none; border-radius: 0; padding: 0; font-size: inherit; color: inherit; }
.art-body .article-body pre:not(.record-template) { margin: 1.6em 0; padding: 20px 22px; background: var(--panel); border-radius: 18px; overflow-x: auto; white-space: pre-wrap; font-size: 14px; line-height: 1.65; color: var(--fg); }
.art-body .article-body hr { margin: 2.4em 0; border: 0; border-top: 1px solid var(--line); }
.art-body .article-body img { max-width: 100%; height: auto; border-radius: 18px; }
/* store badges keep the fixed height the component styles give them; the rule above would
   otherwise draw the Google Play PNG at its full 564px width */
.art-body .article-body :is(.apple-store-badge, .google-play-badge) img { width: auto; max-width: none; height: 48px; border-radius: 0; }

/* tables */
.art-body .table-scroll { margin: 1.6em 0; overflow-x: auto; border-radius: 18px; background: var(--panel); }
.art-body .article-body table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14.5px; line-height: 1.5; }
/* older posts put tables straight in the body: they scroll inside the column too */
.art-body .article-body table:not(.table-scroll table) { display: block; max-width: 100%; margin: 1.6em 0; overflow-x: auto; border-radius: 18px; background: var(--panel); }
/* a visible caption sits inside that rounded panel, so it needs the cells' inset */
.art-body .article-body table caption:not(.sr-only) { padding: 14px 16px 4px; text-align: left; }
.art-body .article-body th { padding: 12px 14px; text-align: left; font-weight: 500; color: var(--fg); background: #efeee9; }
.art-body .article-body td { padding: 12px 14px; vertical-align: top; border-top: 1px solid var(--line); }

/* the short answer, the Casewell note, sources */
.art-answer { margin: 0 0 44px; padding: 22px 24px; background: var(--panel); border-radius: 24px; }
.art-answer span { display: inline-block; background: var(--gold-soft); color: var(--gold-ink); border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 500; }
.art-answer p { margin-top: 10px; font-size: 17.5px; line-height: 1.6; letter-spacing: -.01em; color: var(--fg); }
.art-body .article-body .article-note:not(.article-note--court-timeline) { margin: 52px 0; padding: 30px; background: var(--panel); border: 0; border-radius: 28px; }
.art-body .article-body .article-note:not(.article-note--court-timeline) h2 { margin-top: 0; font-size: 26px; }
.art-body .article-body .article-note .button.primary { display: inline-flex; align-items: center; height: 46px; padding: 0 24px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 14px; font-weight: 450; text-decoration: none; }
.art-body .article-body .source-box { margin-top: 48px; padding: 20px 22px; background: var(--panel); border: 0; border-radius: 22px; font-size: 13.5px; line-height: 1.55; color: var(--fg-2); }
.art-body .article-body .source-box p { margin: 0 0 .6em; }
.art-body .article-body .source-box__label { font-weight: 600; color: var(--fg); }
.art-body .article-body .source-box ul { display: grid; gap: 6px; list-style: none; }

/* the components' boxes, moved onto the design's panels */
.art-body .article-body .information-gain { margin: 44px 0; background: var(--panel); border: 0; border-radius: 28px; box-shadow: none; }
.art-body .article-body .information-gain > h2:first-child, .art-body .article-body .information-gain__title { margin-top: 0; }
/* step diagrams: the components' "step span { display: block }" also hit the number badge,
   which then sat in its circle's corner; the steps carry only a label, so they shrink to it,
   and sit two to a row, wide enough for long German words */
.art-body .article-body .stat-diagram__steps { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 16px; }
.art-body .article-body .stat-diagram__number { display: grid; }
.art-body .article-body .stat-diagram__step { min-height: 0; align-items: center; }
.art-body .article-body .stat-diagram__step strong { overflow-wrap: break-word; }
/* the parenting-time calculator was a navy tool; on the panel its masthead text goes dark */
.art-body .article-body .parenting-calculator__masthead .information-gain__title { color: var(--fg); }
.art-body .article-body .parenting-calculator__masthead > div > p:last-child { color: var(--fg-2); }
.art-body .article-body .parenting-calculator__kicker { color: var(--gold-ink) !important; }
/* the evidence demo, where a state-law page places it after its closing section */
.art-body .article-body .article-evidence-demo-section { margin: 56px 0; padding: 0; background: none; border: 0; }
.art-body .article-body .article-evidence-demo__intro .eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--gold-ink); }
.art-body .article-body .article-evidence-demo__title { margin: 0 0 10px; font-size: clamp(28px, 3.2vw, 38px); font-weight: 400; letter-spacing: -.04em; line-height: 1.12; color: var(--fg); text-wrap: balance; }
.art-body .article-body .article-evidence-demo__intro > p:last-child { line-height: 1.55; color: var(--fg-2); text-wrap: pretty; }
.art-body .article-body .annotated-record dl > div, .art-body .article-body .rewrite-grid article, .art-body .article-body .calculator-results p { background: #fff; border: 0; border-radius: 16px; }
.art-body .article-body .annotated-record dt, .art-body .article-body .calculator-results span { font-size: 12.5px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--fg-2); }
.art-body .article-body .locale-context { margin: 36px 0; background: var(--panel); border: 0; border-radius: 22px; }

/* a tool's own Casewell box: text beside the mark, stores underneath it */
.art-body .tool-casewell-cta { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px 18px; align-items: start; max-width: none; margin: 48px 0; padding: 28px; background: var(--panel); border: 0; border-radius: 28px; box-shadow: none; }
.art-body .tool-casewell-cta::after { display: none; }
.art-body .tool-casewell-cta--schedule, .art-body .tool-casewell-cta--parenting { grid-template-columns: minmax(0, 1fr); }
.art-body .tool-casewell-cta > .tool-casewell-cta__actions { grid-column: -2 / -1; }
.art-body .tool-casewell-cta h2 { margin-top: 0; }

/* the schedule explorer goes side by side only in a column wider than this one */
.art-body .schedule-explorer__layout { grid-template-columns: 1fr; }
.art-body .schedule-calendar { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.art-body .schedule-day { aspect-ratio: 1; }
@media (min-width: 661px) { .art-body .schedule-pattern-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* FAQ, drawn like the rest of the site */
.art-body .article-body .faq-list { margin-top: 56px; background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.art-body .article-body .faq-item { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; }
.art-body .article-body .faq-item summary { padding: 20px 0; font-size: 17px; font-weight: 400; letter-spacing: -.02em; color: var(--fg); }
.art-body .article-body .faq-item summary::-webkit-details-marker { display: none; }
.art-body .article-body .faq-marker { position: relative; flex: none; width: 14px; height: 14px; background: none; border: 0; }
.art-body .article-body .faq-marker::before, .art-body .article-body .faq-marker::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 1.6px; border: 0; border-radius: 2px; background: var(--fg-2); transform: none; transition: transform .3s var(--ease); }
.art-body .article-body .faq-marker::after { transform: rotate(90deg); }
.art-body .article-body .faq-item[open] .faq-marker::after { transform: rotate(0); }
.art-body .article-body .faq-item p { margin: 0; padding: 0 0 20px; font-size: 15.5px; color: var(--fg-2); }

/* related pages, as cards */
.art-body .article-body .related-links { margin-top: 64px; padding: 0; background: none; border: 0; }
.art-body .article-body .related-links__heading { margin-bottom: 18px; text-align: left; }
.art-body .article-body .related-links__heading .eyebrow { margin: 0; font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--gold-ink); }
.art-body .article-body .related-links__heading h2 { margin: 4px 0 0; }
.art-body .article-body .link-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.art-body .article-body .link-list a { display: flex; align-items: flex-start; padding: 16px 18px; border: 0; border-radius: 18px; background: var(--panel); font-size: 14.5px; line-height: 1.4; color: var(--fg); text-decoration: none; transition: background-color .2s; }
.art-body .article-body .link-list a:hover { background: var(--panel-hover); }

/* ── Phones and tablets: no rail, so the contents fold away at the top ── */
.art-mtoc { margin-bottom: 28px; background: var(--panel); border-radius: 20px; }
.art-mtoc summary { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; font-size: 15px; font-weight: 500; color: var(--fg); cursor: pointer; list-style: none; }
.art-mtoc summary::-webkit-details-marker { display: none; }
.art-mtoc summary .i { width: 16px; height: 16px; color: var(--fg-2); transition: transform .3s var(--ease); }
.art-mtoc[open] summary .i { transform: rotate(180deg); }
.art-mtoc__list { display: grid; gap: 2px; padding: 0 8px 12px; list-style: none; }
.art-mtoc__list a { display: block; padding: 8px 10px; border-radius: 10px; font-size: 14.5px; line-height: 1.35; color: var(--fg-2); }
.art-mtoc__list a:hover { background: #fff; color: var(--fg); }

@media (min-width: 1024px) { .art-mtoc { display: none; } }
@media (max-width: 1023px) {
  .art-grid { grid-template-columns: minmax(0, 720px); }
  .art-rail { display: none; }
  body { padding-bottom: 84px; }
}
@media (max-width: 640px) {
  .art-hero h1 { font-size: min(36px, 9.4vw); }
  .art-lede { font-size: 16px; }
  .art-media { margin-top: 32px; border-radius: 24px; }
  .art-body .article-body { font-size: 16.5px; }
  .art-body .article-body .link-list { grid-template-columns: 1fr; }
  .art-answer { padding: 18px; }
  .art-verdict { margin-top: 24px; }
  .art-verdict .verdict-card { padding: 20px 18px 18px; border-radius: 24px; }
  .art-body .article-body .article-note:not(.article-note--court-timeline) { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { 