/* R6/R7 theme fixes (L4, 11/18): defects v3 itself has. Enqueued after pages.css (handle tsa-fixes). */

/* Breadcrumb alone in .ph-issue: kit hides the last span on phones, which hid the only one and left an empty rule row. */
.ph-issue>.crumb:only-child{display:block}

/* about-us: "California Headquarters" is bound by a non-breaking space and overran its 5fr column into the Wyoming paragraph. */
body.tsa-p-about-us .visit .sec-head{grid-template-columns:minmax(0,1fr);align-items:start;gap:22px}

/* Press archive type plates: room for the longest outlet word, never clipped. */
body.tsa-p-press .plate.type b{padding:0 6px;overflow-wrap:anywhere}

/* Phone action bar: keep anchored and focused content clear of it, and drop it while a form field has focus. Its label
   wraps like v3: kit's 480px .btn rule wraps it on every page that loads kit; v3 home never loaded kit, so only home stays
   on one line (the tsa-p-home .btn rule below). R5.2 G3. */
@media (max-width:720px){
  html{scroll-padding-bottom:100px}
  body:has(:is(input,select,textarea):focus) .mbar{transform:translateY(140%)}
}

/* Home paths thumbnails: kit's interior page-hero rule (.ph padding 150px/96px, gradient, relative) also matched .prow .ph,
   so its border-box padding collapsed the photo to 0 height. v3 computes none of it on .prow .ph. */
.prow .ph{padding:0;background:none;position:static}

/* R5.1 F14: funnel bands put a bare core/heading straight in .sec .wrap (no v3 .sec-head) and kit zeroes heading margins,
   so the heading sat on its paragraph and the "Q" tail of a .95 line-height h2 overlapped it. Kit's band heading gap. */
.sec>.wrap>:is(h2,h3,h4).wp-block-heading:not(:last-child){margin-bottom:22px}

/* R5.1 F7: WP core block-library gives a core/image caption margin-bottom:1em; v3 figcaptions have none (coaching lead card +18px).
   Zero-weight :where() so any kit or v3 page figcaption rule still wins. */
:where(.sec) .wp-block-image :where(figcaption){margin-bottom:0}

/* profile-sample avoid list: the red X survives even if kses strips its inline color on load (L2 marks it strong.x). */
.sec li strong.x{color:var(--red)}

/* R5.1 F6/F10: v3 home never loaded kit.css; kit's interior phone rules (max-width:480px) shrink the home closer heading
   (40px vs 45px), FAQ and step headings and let every .btn wrap. Restore v3 home's own values on home only. */
@media (max-width:480px){
  body.tsa-p-home .btn{white-space:nowrap;text-align:inherit;line-height:inherit;padding-top:0;padding-bottom:0}
  body.tsa-p-home .closer #close-h{font-size:min(clamp(50px,7.2vw,118px),calc(100cqw / 7.75))}
  body.tsa-p-home .qa summary{font-size:clamp(26px,2.4vw,34px)}
  body.tsa-p-home .step h3{font-size:clamp(32px,3vw,46px)}
}

/* R5.1 F1: v3 home's FAQ band is a bare section.faq whose .wrap IS the .faq-grid; on WP the band is a .sec, so the faq block's
   .sec .faq-grid top margin (+64px) and kit's .sec h2 size (72px vs 77.76px) reached it. v3 home values. */
body.tsa-p-home .sec .faq-grid{margin-top:0}
body.tsa-p-home .sec.faq h2{font-size:clamp(46px,5.4vw,84px)}

/* R5.2 G1: every post card wears v3's one-line eyebrow, CATEGORY then DATE; a long category ellipsizes, the date never wraps. */
.post-card__meta{flex-wrap:nowrap}
.post-card__meta>:first-child:not(:only-child){min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.post-card__meta time{flex:none;white-space:nowrap}

/* R5.2 G13: the converter wraps v3's bare links in p.tsa-inline (display:contents), which picked up band paragraph colors
   (.letters-side p, .cities .all p: 72% ivory) that v3's div parents never had. The wrapper stays transparent. */
p.tsa-inline{color:inherit!important}

/* R5.2 G8: funnel pages put a dark band straight under the dark hero, stacking the hero's bottom padding and the band's top
   padding into one empty band. Every v3 page follows .ph with a paper band, so this reaches funnel pages only. */
.ph+.sec:not(.paper){padding-top:0}

/* R5.2 G9: a funnel band's button row followed by more copy sat flush on it; same gap below as above. */
.sec>.wrap>.wp-block-buttons:not(:last-child){margin-bottom:30px}

/* R5.2 G6: the search field under a hero deck (404) keeps the deck's 28px rhythm. */
.ph .deck+.sheet-search{margin-top:28px}
