/* ARTICLES (2026-10-08): the reading layout for everything moved over from the old site word for word: the state and
   city guides, the blog posts, the three guides and the policies, plus the blog index (/blogs) and the sitemap.
   One reading column (about 70 characters a line, 19px type); on a wide screen the hero, tables, wide pictures and
   the aqua call-outs step out wider, the text line never does. No scroll effects, no glows.
   Written for tools/migrate-articles.mjs, which writes every page that uses it. */

/* ---------- hero: the short ink hero, a little wider for long headlines ---------- */
.ar-hero .pg-hero-in { max-width: 1120px; }
.ar-hero h1 { font-size: clamp(1.85rem, 3.4vw, 3.5rem); line-height: 1.07; letter-spacing: -.04em; max-width: 24ch; margin-left: auto; margin-right: auto; }
.ar-hero .pg-lede { max-width: 64ch; }
.ar-hero .pg-lede a { color: #fff; text-decoration: underline; text-decoration-color: var(--aqua); text-underline-offset: 3px; }
.ar-hero .pg-acts { justify-content: center; }
.ar-meta { margin-top: 18px; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 10px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--aqua); }

/* ---------- the article: a reading column on white, with room to step out ---------- */
.ar { background: #fff; padding: clamp(44px, 6vw, 92px) 0 clamp(64px, 8vw, 120px); }
.ar-body {
  display: grid;
  grid-template-columns:
    [full-start] minmax(var(--gut), 1fr)
    [wide-start] minmax(0, 190px)
    [text-start] min(680px, 100% - 2 * var(--gut))
    [text-end] minmax(0, 190px)
    [wide-end] minmax(var(--gut), 1fr) [full-end];
  font-size: 19px; line-height: 1.72; color: #2a2926; overflow-wrap: break-word;
}
.ar-body > * { grid-column: text; min-width: 0; }
.ar-body > .ar-wide { grid-column: wide; }
.ar-body > * + * { margin-top: 1.05em; }
.ar-body a:not(.btn) { color: var(--aqua-ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.ar-body a:not(.btn):hover { color: var(--ink); }
.ar-body strong { font-weight: 700; color: var(--ink); }
.ar-body em { font-style: italic; }
.ar-body sup, .ar-body sub { font-size: .7em; }

/* headings keep the old levels; the rhythm comes from space and a short aqua bar above each H2 */
.ar-body h2, .ar-body h3, .ar-body h4, .ar-body h5, .ar-body h6 { color: var(--ink); scroll-margin-top: 96px; text-wrap: balance; }
.ar-body > h2 { margin-top: 2.5em; font-family: var(--wide); font-weight: 700; font-size: clamp(1.5rem, 2.25vw, 2.1rem); line-height: 1.16; letter-spacing: -.035em; }
.ar-body > h2::before { content: ''; display: block; width: 44px; height: 4px; margin-bottom: 18px; border-radius: 2px; background: var(--aqua); }
.ar-body > h2.ar-h-long { font-family: var(--sans); font-weight: 600; font-size: clamp(1.18rem, 1.5vw, 1.36rem); line-height: 1.5; letter-spacing: -.01em; text-wrap: pretty; }
.ar-body > h3 { margin-top: 2em; font-family: var(--wide); font-weight: 600; font-size: clamp(1.1rem, 1.3vw, 1.26rem); line-height: 1.32; letter-spacing: -.02em; }
.ar-body > h4, .ar-body > h5, .ar-body > h6 { margin-top: 1.7em; font-weight: 700; font-size: 1.02em; line-height: 1.4; }
.ar-body > :is(h2, h3, h4, h5, h6) + * { margin-top: .7em; }
.ar-body > h2 + h3 { margin-top: 1.1em; }
.ar-n { display: inline-grid; place-items: center; width: 1.9em; height: 1.9em; margin-right: .55em; border-radius: 50%; background: var(--aqua); color: var(--ink); font: 800 .78em/1 var(--wide); letter-spacing: 0; vertical-align: .14em; }

/* lists: aqua dots, ink number badges, a real checklist */
.ar-body li { position: relative; padding-left: 1.55em; }
.ar-body li + li { margin-top: .5em; }
.ar-body li > ul, .ar-body li > ol { margin-top: .5em; }
.ar-body ul > li::before { content: ''; position: absolute; left: .3em; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--aqua); }
.ar-body li li::before { background: transparent !important; border: 2px solid var(--aqua-ink); width: 7px; height: 7px; }
.ar-body ol { counter-reset: ar; }
.ar-body ol > li { counter-increment: ar; padding-left: 2.05em; }
.ar-body ol > li::before { content: counter(ar); position: absolute; left: 0; top: .26em; width: 1.45em; height: 1.45em; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--aqua); font: 700 .74em/1 var(--sans); }
.ar-body li .lp { display: block; }
.ar-body li .lp + .lp { margin-top: .55em; }
.ar-body ul.ar-check > li { padding-left: 1.9em; }
.ar-body ul.ar-check > li::before { left: 0; top: .38em; width: 1.05em; height: 1.05em; border-radius: 5px; background: #fff; border: 2px solid var(--aqua-ink); box-sizing: border-box; }

/* tables: an ink header row, quiet stripes, they scroll inside themselves on a phone */
.ar-table { margin-top: 1.6em !important; overflow-x: auto; border-radius: 18px; border: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
.ar-table:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; }
.ar-table table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; }
.ar-table th, .ar-table td { padding: 14px 18px; text-align: left; vertical-align: top; }
.ar-table thead th { background: var(--ink); color: var(--bone); font-weight: 700; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; }
.ar-table tbody tr:nth-child(even) { background: #f6f5f1; }
.ar-table tbody tr + tr > * { border-top: 1px solid var(--line); }
.ar-table tbody td:first-child, .ar-table tbody th { font-weight: 600; color: var(--ink); }

/* pictures: wide ones step out, tall ones sit centred at a sensible height */
.ar-body > .ar-fig { margin-top: 1.8em; }
.ar-body > .ar-fig + * { margin-top: 1.8em; }
.ar-fig img { width: 100%; border-radius: 18px; background: var(--bone); }
.ar-body > .ar-lead { margin-top: 0; }
.ar-body > .ar-lead + * { margin-top: clamp(28px, 3vw, 44px); }
.ar-lead img { aspect-ratio: 16 / 8.5; object-fit: cover; object-position: center 30%; }
.ar-fig.ar-tall img { width: auto; max-width: 100%; max-height: 620px; margin: 0 auto; }
.ar-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; }
.ar-logos img { height: 34px; width: auto; filter: grayscale(1); opacity: .85; }

/* reviews (Los Angeles SEO) */
.ar-quote { padding: 22px 26px 24px; border-radius: 20px; background: var(--bone); }
.ar-quote p { font-size: 17px; line-height: 1.6; }
.ar-quote p + p { margin-top: .6em; }
.ar-quote figcaption { margin-bottom: 8px; font-weight: 700; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--aqua-ink); }
.ar-quote figcaption::before { content: '\2605\2605\2605\2605\2605'; display: block; margin-bottom: 6px; letter-spacing: .12em; color: #f2b300; font-size: 13px; }
.ar-body > .ar-quote + .ar-quote { margin-top: 12px; }

/* who OMG is, at the end of every guide and post (build.mjs ABOUT, 2026-10-15) */
.ar-body > .ar-about { margin-top: 2.4em; padding: 22px 26px 24px; border-radius: 20px; background: var(--bone); }
.ar-about-k { font: 700 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.ar-about p:not(.ar-about-k) { margin-top: 12px; font-size: 16.5px; line-height: 1.6; }
.ar-about a { color: var(--aqua-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ar-about-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* questions: one block each, opened in place */
.ar-faq { margin-top: 1.4em; border-top: 1px solid var(--line); }
.ar-faq details { border-bottom: 1px solid var(--line); }
.ar-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 20px 0; }
.ar-faq summary::-webkit-details-marker { display: none; }
.ar-body .ar-faq summary > * { margin: 0; font-family: var(--sans); font-weight: 700; font-size: 1.02em; line-height: 1.4; letter-spacing: 0; }
.ar-faq summary::after { content: '+'; flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--bone); color: var(--aqua-ink); font-size: 20px; font-weight: 600; transition: transform .2s; }
.ar-faq details[open] summary::after { transform: rotate(45deg); }
.ar-faq summary:hover > * { color: var(--aqua-ink); }
.ar-faq-a { padding: 0 0 22px; font-size: 17.5px; }
.ar-faq-a > * + * { margin-top: .85em; }

/* "On this page": the article's sections, at the top, not sticky */
.ar-toc { padding: 24px 28px 22px; border-radius: 22px; background: var(--bone); }
.ar-toc-h { font: 700 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.ar-toc ol { margin-top: 12px; counter-reset: toc; }
.ar-body .ar-toc li { counter-increment: toc; padding: 8px 0 8px 2.3em; margin: 0; font-size: 15.5px; line-height: 1.4; break-inside: avoid; border-top: 1px solid var(--line); }
.ar-body .ar-toc li::before { content: counter(toc, decimal-leading-zero); position: absolute; left: 0; top: 9px; width: auto; height: auto; display: block; background: none; color: var(--aqua-ink); font: 700 13px/1.4 var(--sans); }
.ar-body .ar-toc a { color: var(--ink); text-decoration: none; font-weight: 500; }
.ar-body .ar-toc a:hover { color: var(--aqua-ink); }
.ar-toc-2 ol { columns: 2; column-gap: 34px; }
.ar-body > .ar-toc + * { margin-top: 2em; }

/* the aqua call-outs between sections */
.ar-body > .ar-cta { margin-top: 2.6em; }
.ar-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 44px; align-items: center; padding: clamp(26px, 3.2vw, 44px) clamp(24px, 3.6vw, 52px); border-radius: 28px; background: var(--aqua); color: var(--ink); }
.ar-cta-k { font: 700 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #0f3b37; }
.ar-cta-h { margin-top: 12px; font-family: var(--wide); font-weight: 800; font-size: clamp(1.45rem, 2.3vw, 2.25rem); line-height: 1.08; letter-spacing: -.04em; }
.ar-cta-h em { font-style: normal; text-decoration: underline; text-decoration-color: #fff; text-decoration-thickness: .09em; text-underline-offset: .12em; }
.ar-cta-p { margin-top: 10px; max-width: 54ch; font-size: 16.5px; line-height: 1.5; color: #0f3b37; }
.ar-cta .btn { justify-self: end; }

/* the video link (Los Angeles SEO) and the medical sentence at the end */
.ar-video a { display: inline-flex !important; align-items: center; gap: 12px; padding: 12px 22px 12px 12px; border-radius: 999px; background: var(--ink); color: #fff !important; font-weight: 700; font-size: 15px; text-decoration: none !important; }
.ar-play { position: relative; width: 34px; height: 34px; border-radius: 50%; background: var(--aqua); }
.ar-play::after { content: ''; position: absolute; left: 13px; top: 10px; border-left: 12px solid var(--ink); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.ar-body > .ar-legal { margin-top: 3em; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.55; color: var(--mute); }

/* policies: the same column, a plainer legal voice */
.ar-policy .ar-body > h2 { margin-top: 2em; font-family: var(--sans); font-weight: 700; font-size: 1.3rem; letter-spacing: -.01em; }
.ar-policy .ar-body > h2::before { display: none; }

/* ---------- keep reading ---------- */
.ar-rel { background: var(--bone); padding: clamp(64px, 8vw, 110px) var(--gut); }
.ar-rel-in { max-width: 1240px; margin: 0 auto; }
.ar-rel-head { text-align: center; margin-bottom: clamp(28px, 3.4vw, 46px); }
.ar-rel-head .kick { justify-content: center; }
.ar-rel-head h2 { font-size: clamp(1.9rem, 3.4vw, 3.1rem); }
.ar-rel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ar-rel-grid.ar-rel-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ar-card { display: flex; flex-direction: column; gap: 10px; padding: clamp(20px, 2vw, 26px); border-radius: 22px; background: #fff; transition: transform .2s; }
.ar-card:hover { transform: translateY(-3px); }
.ar-card-k { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--aqua-ink); }
.ar-card b { font-family: var(--wide); font-weight: 700; font-size: 1.1rem; line-height: 1.25; letter-spacing: -.025em; text-wrap: balance; }
.ar-card-s { color: #4a4844; font-size: 14.5px; line-height: 1.45; }
.ar-card .more { margin-top: auto; padding-top: 6px; width: fit-content; font-size: 14px; }
.ar-card-ink { background: var(--ink); color: var(--bone); }
.ar-card-ink .ar-card-k, .ar-card-ink .more { color: var(--aqua); }
.ar-card-ink .ar-card-s { color: #c9c8cd; }

/* ---------- the blog index ---------- */
.bl { background: #fff; padding: clamp(56px, 7vw, 100px) var(--gut) clamp(70px, 9vw, 120px); }
.bl-in { max-width: 1280px; margin: 0 auto; }
.bl-head { text-align: center; margin-bottom: clamp(26px, 3vw, 42px); }
.bl-head .kick { justify-content: center; }
.bl-head h2 { font-size: clamp(1.9rem, 3.4vw, 3.1rem); }
.bl-head-2 { margin-top: clamp(64px, 8vw, 110px); }
.bl-guides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bl-guide { display: flex; flex-direction: column; gap: 12px; padding: clamp(24px, 2.6vw, 34px); border-radius: 26px; background: var(--ink); color: var(--bone); min-height: 290px; transition: transform .2s; }
.bl-guide:hover, .bl-card:hover { transform: translateY(-3px); }
.bl-guide-k { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--aqua); }
.bl-guide b { font-family: var(--wide); font-weight: 700; font-size: clamp(1.2rem, 1.6vw, 1.5rem); line-height: 1.2; letter-spacing: -.03em; text-wrap: balance; }
.bl-guide .bl-ex { color: #c9c8cd; }
.bl-ex { font-size: 15px; line-height: 1.5; color: #4a4844; }
.bl-guide .more { margin-top: auto; width: fit-content; }
.bl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 18px; }
.bl-card { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: var(--bone); transition: transform .2s; }
.bl-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bone-2); }
.bl-img img { width: 100%; height: 100%; object-fit: cover; }
.bl-txt { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 26px; }
.bl-meta { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.bl-card b { font-family: var(--wide); font-weight: 700; font-size: 1.12rem; line-height: 1.25; letter-spacing: -.025em; text-wrap: balance; }
.bl-card .more { margin-top: auto; padding-top: 4px; width: fit-content; font-size: 14px; }
.bl-places { margin-top: clamp(64px, 8vw, 100px); padding: clamp(26px, 3vw, 44px); border-radius: 26px; background: var(--bone); text-align: center; }
.bl-places-h { font-family: var(--wide); font-weight: 700; font-size: clamp(1.2rem, 1.8vw, 1.6rem); letter-spacing: -.03em; }
.bl-chips { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.bl-chips a { padding: 9px 15px; border-radius: 999px; background: #fff; font-size: 14px; font-weight: 600; transition: background .2s, color .2s; }
.bl-chips a:hover { background: var(--ink); color: var(--bone); }

/* ---------- the sitemap ---------- */
.sm { background: #fff; padding: clamp(56px, 7vw, 100px) var(--gut) clamp(70px, 9vw, 120px); }
.sm-in { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.sm-group { padding: clamp(22px, 2.4vw, 30px); border-radius: 22px; background: var(--bone); }
.sm-group h2 { font-size: 1.15rem; letter-spacing: -.03em; line-height: 1.2; }
.sm-group h2 a:hover { color: var(--aqua-ink); }
.sm-group ul { margin-top: 12px; }
.sm-group li { break-inside: avoid; }
.sm-group li a { display: block; padding: 6px 0; font-size: 15px; line-height: 1.4; }
.sm-group li a:hover { color: var(--aqua-ink); text-decoration: underline; text-underline-offset: 3px; }
.sm-wide { grid-column: 1 / -1; }
.sm-wide > ul { columns: 3; column-gap: 34px; }
.sm-split { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 8px 40px; }
.sm-split h3 { margin-top: 18px; font: 700 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--aqua-ink); }
.sm-split > div:first-child ul { columns: 3; column-gap: 28px; }
.sm-split > div:last-child ul { columns: 2; column-gap: 28px; }

/* ---------- smaller screens ---------- */
@media (max-width: 1180px) {
  .ar-rel-grid.ar-rel-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ar-rel-5 .ar-card-ink { grid-column: 1 / -1; }
}
@media (max-width: 1000px) {
  .bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm-wide > ul, .sm-split > div:first-child ul { columns: 2; }
  .sm-split { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .ar-rel-grid, .ar-rel-grid.ar-rel-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bl-guides { grid-template-columns: 1fr; }
  .bl-guide { min-height: 0; }
}
@media (max-width: 720px) {
  .ar-body { font-size: 17.5px; line-height: 1.68; }
  .ar-body > h2 { margin-top: 2.1em; }
  .ar-toc { padding: 20px 20px 16px; }
  .ar-toc-2 ol { columns: 1; }
  .ar-table.ar-wide table { min-width: 560px; }
  .ar-table table { font-size: 14.5px; }
  .ar-table th, .ar-table td { padding: 12px 14px; }
  /* a wide table becomes one card per row, each value labelled with its column (inner.js writes the labels and adds
     .ar-stack), so no column hides off the right edge and nothing needs a sideways swipe (launch check 2026-11-13: three
     articles' tables sat still off the edge). The good faith exam article did this first, for its own two tables. */
  .ar-table.ar-wide.ar-stack { overflow: visible; }
  .ar-table.ar-wide.ar-stack table, .ar-stack tbody, .ar-stack tr, .ar-stack td, .ar-stack tbody th { display: block; min-width: 0; }
  .ar-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ar-stack tbody tr { padding: 14px 16px 15px; }
  .ar-table.ar-stack td, .ar-table.ar-stack tbody th { padding: 3px 0; }
  .ar-table.ar-stack tbody tr > :first-child { padding-bottom: 6px; font-size: 16px; }
  .ar-table.ar-stack tbody tr + tr > * { border-top: 0; }
  .ar-table.ar-stack tbody tr + tr { border-top: 1px solid var(--line); }
  .ar-stack td[data-k]::before { content: attr(data-k) ": "; font-weight: 700; color: var(--aqua-ink); }
  .ar-fig.ar-tall img { max-height: 480px; }
  .ar-fig img { border-radius: 14px; }
  .ar-cta { grid-template-columns: 1fr; border-radius: 22px; }
  .ar-cta .btn { justify-self: stretch; }
  .ar-faq-a { font-size: 16.5px; }
  .ar-rel-grid, .ar-rel-grid.ar-rel-5 { grid-template-columns: 1fr; }
  .bl-grid, .sm-in { grid-template-columns: 1fr; }
  .sm-wide > ul, .sm-split ul { columns: 2 !important; }
}
