/* ════════════════════════════════════════════════════════════════════════
   Paradise Mobile Auto Glass — tips posts + wiki ("Strip Marquee")
   Loaded after paradise-home.css + paradise-pages.css. Reading layout: a sticky
   contents list beside numbered sections (LED numerals), glossary rows for the
   wiki's H3 entries, then the contact band and a ruled list of the other tips.
   ════════════════════════════════════════════════════════════════════════ */

/* hero: long article H1s sit one step down the location-hero scale */
.ahero .h1-a { font-size: clamp(30px, 3.4vw, 48px); line-height: 1.06; max-width: 20ch; }
.ahero .phero-lede { margin-bottom: 0; }
.ahero .phero-lede--more { margin-top: 16px; }
.ahero .acts { margin-top: 30px; }
.ahero .phero-lede a { color: var(--tq-bright); text-underline-offset: 3px; }
/* the crumb repeats the H1 just below it: keep the trail on one line */
.ahero .crumbs ol { flex-wrap: nowrap; }
.ahero .crumbs li { flex: none; }
.ahero .crumbs li[aria-current] { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Body grid ────────────────────────────────────────────────────────── */
.art { padding: var(--sec) 0; background: var(--glass); }
.art-grid { display: grid; grid-template-columns: minmax(0, 290px) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }

.art-toc { position: sticky; top: calc(var(--bar-h) + 30px); max-height: calc(100vh - var(--bar-h) - 60px); overflow: auto; padding-right: 8px; }
.art-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.art-toc a { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 8px; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; font-size: 14.5px; line-height: 1.35; color: var(--ink-soft); text-decoration: none; transition: color .2s, border-color .2s; }
.art-toc-n { font: 400 10px/1.9 var(--label); letter-spacing: .12em; color: var(--tq-deep); }
.art-toc a.is-here { color: var(--ink); border-left-color: var(--tq); }
@media (hover: hover) { .art-toc a:hover { color: var(--tq-deep); border-left-color: var(--tq); } }

.art-doc { max-width: 78ch; }
.art-fig { margin: 0 0 clamp(40px, 5vw, 60px); overflow: hidden; aspect-ratio: 16 / 9; border-radius: 20px; background: var(--glass-3); box-shadow: 0 50px 70px -50px rgba(12,17,16,.55); }
.art-fig img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }

.art-sec { padding: 0 0 clamp(34px, 4vw, 48px); margin: 0 0 clamp(34px, 4vw, 48px); border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--bar-h) + 24px); }
.art-sec:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.art--tip .art-sec { padding-bottom: clamp(24px, 3vw, 32px); margin-bottom: clamp(26px, 3vw, 36px); }
.art--tip .art-body > p:last-child { margin-bottom: 0; }
.art-head { display: flex; align-items: center; gap: 18px; margin: 0 0 18px; }
.art-n { display: grid; place-items: center; flex: none; width: 58px; height: 46px; border-radius: 10px; background: var(--night); color: var(--tq-bright); box-shadow: inset 0 0 0 1px rgba(111,230,214,.18); }
.art-n .dm { --dmh: 20px; }
.art-n .dm-off { opacity: .16; }
.art-h2 { font: 600 clamp(24px, 2.4vw, 32px)/1.14 var(--display); letter-spacing: -.02em; text-wrap: balance; }
.art-body > p { color: var(--ink-soft); }
.art-body > p:first-child, .art-lede { color: var(--ink) !important; font-size: 18px; line-height: 1.65; }
.art-body a { color: var(--tq-deep); font-weight: 600; text-underline-offset: 3px; }
.art-body .lead-in { margin-top: 26px !important; }
.art-body .checklist { margin: 4px 0 24px; }
.art-body .chips { margin-top: 4px; }

/* wiki: each H3 entry is a ruled row, term beside definition */
.gloss { margin: 26px 0 0; border-top: 2px solid var(--night); }
.gloss-row { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: clamp(18px, 3vw, 36px); padding: 22px 0; border-bottom: 1px solid var(--line); }
.gloss-row:last-child { border-bottom: 0; padding-bottom: 0; }
.gloss-row dt { margin: 0; }
.gloss-t { font: 600 18.5px/1.3 var(--display); letter-spacing: -.01em; color: var(--ink); }
.gloss-t::before { content: ""; display: block; width: 18px; height: 6px; margin-bottom: 10px; background: radial-gradient(circle, var(--tq) 2.1px, transparent 2.5px) 0 50% / 6px 6px repeat-x; }
.gloss-row dd { margin: 0; }
.gloss-row dd p { margin: 0 0 .8em; color: var(--ink-soft); }
.gloss-row dd p:last-child { margin-bottom: 0; }

/* contact band: three visible cells (the address cell is hidden, footer only) */
.closing--solo .acts { margin-top: 30px; }
.closing-solo .nap--4 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
.closing-solo .nap--4 .nap-row { min-width: 0; align-content: start; padding-inline: clamp(14px, 2.4vw, 32px); }
@media (max-width: 760px) {
  .closing-solo .nap--4 { display: block; border-top: 1px solid var(--line-dark); }
  .closing-solo .nap--4 .nap-row { padding: 18px 0; }
  .closing-solo .nap--4 .nap-row:not(:last-child) { border-bottom: 1px solid var(--line-dark); }
  .closing-solo .nap--4 .nap-row:not(.nap-row--addr) + .nap-row { box-shadow: none; }
}

/* ── Other tips: ruled rows, LED index, arrow chip ────────────────────── */
.more-tips { padding: var(--sec) 0; background: var(--glass-2); }
.more-head { margin-bottom: clamp(30px, 4vw, 48px); }
.tip-rows { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--night); }
.tip-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) 44px; align-items: center; gap: 18px; padding: 22px 6px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: padding-left .5s var(--ease), background-color .3s; }
.tip-n { color: var(--tq-deep); }
.tip-n .dm { --dmh: 18px; }
.tip-t { font: 600 clamp(18px, 1.7vw, 23px)/1.25 var(--display); letter-spacing: -.015em; }
.tip-go { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink); transition: transform .45s var(--ease), background-color .25s, color .25s; }
.tip-row:focus-visible { outline-offset: -2px; }
@media (hover: hover) {
  .tip-row:hover { padding-left: 18px; background: rgba(18,181,164,.06); }
  .tip-row:hover .tip-go { background: var(--night); color: var(--tq-bright); transform: rotate(-45deg); }
}

/* ── Breakpoints: restack, never hide client copy ─────────────────────── */
@media (max-width: 1040px) {
  .art-grid { grid-template-columns: minmax(0, 1fr); }
  .art-toc { position: static; max-height: none; padding: 0 0 28px; border-bottom: 1px solid var(--line); }
  .art--wiki .art-toc ol { columns: 2; column-gap: 28px; }
  .art--wiki .art-toc li { break-inside: avoid; }
}
@media (max-width: 760px) {
  .ahero .h1-a { font-size: clamp(28px, 7.4vw, 40px); }
  .gloss-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .art-head { gap: 14px; align-items: flex-start; }
  .art-n { width: 50px; height: 40px; }
  .art-n .dm { --dmh: 17px; }
  .tip-row { grid-template-columns: 44px minmax(0, 1fr) 38px; gap: 12px; padding: 18px 2px; }
  .tip-go { width: 38px; height: 38px; }
}
@media (max-width: 560px) {
  .art--wiki .art-toc ol { columns: 1; }
}
