/*
 * Light Tracer patch v11 — mobile product purchase path
 * Keep the product image, title, price, and CTA inside the first screen.
 */
@media (max-width: 767px) {
  .pdp {
    gap: 12px;
  }

  .pdp .gallery-main img {
    width: 100%;
    height: clamp(170px, 27vh, 200px);
    aspect-ratio: auto;
    object-fit: contain;
  }

  .pdp .thumbs {
    flex-wrap: nowrap;
    gap: .5rem;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .pdp .thumbs::-webkit-scrollbar {
    display: none;
  }

  .pdp .thumb {
    flex: 0 0 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 2px;
  }

  .pdp .thumb img {
    width: 38px;
    height: 38px;
    object-fit: cover;
  }

  .buybox {
    gap: 8px;
  }

  .buybox .h1 {
    font-size: clamp(28px, 7.5vw, 32px);
    line-height: 1.12;
  }

  .buybox > * { order: 0; }
  .single-product .crumbs { padding-top: 8px; }
  .buybox .stock, .buybox form.cart { margin: 0; }
  .buybox > .lead {
    margin: 12px 0 0;
    font-size: 16px;
    line-height: 1.45;
  }
  .buybox .lt-party-entry { margin: 4px 0; }
  .buybox > .trust { margin-top: 16px; padding-top: 16px; }
}

.site-head a:focus-visible, .site-head button:focus-visible,
.thumb:focus-visible, .stickybar a:focus-visible {
  outline: 2px solid var(--laser);
  outline-offset: 4px;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a { min-height: 44px; display: flex; align-items: center; }
body:has(.mobile-nav:not([hidden])) .stickybar { visibility: hidden; }
.single-product .block { padding-block: 56px; }
.single-product .block.flush { padding-block: 0; }
.single-product .banner .block { padding-block: 64px; }
.single-product #party-atmosphere, .single-product #outdoor-pointing,
.single-product #kit-specifications { scroll-margin-top: 80px; }
.lt-kit-specifications { border-collapse: collapse; width: 100%; font-size: 17px; line-height: 1.6; }
.lt-kit-specifications caption { text-align: left; color: var(--muted); padding-bottom: 16px; }
.lt-kit-specifications th, .lt-kit-specifications td {
  text-align: left; vertical-align: top; padding: 14px 16px;
  border-bottom: 1px solid var(--line); overflow-wrap: anywhere;
}
.lt-kit-specifications th { width: 38%; padding-left: 0; font-weight: 500; }
.lt-kit-specifications td { padding-right: 0; }
.lt-charging-note { margin: 24px 0 0; max-width: 65ch; font-size: 17px; line-height: 1.65; color: var(--muted); }
@media (min-width: 768px) and (max-width: 1023px) {
  .single-product .pdp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
  .single-product .gallery-main img { max-height: 440px; object-fit: contain; }
  .single-product .buybox .h1 { font-size: 34px; }
  .single-product .thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
  .single-product .thumb { flex: 0 0 48px; padding: 2px; }
  .single-product .thumb img { width: 42px; height: 42px; object-fit: cover; }
}
@media (max-width: 767px) {
  .single-product .pdp { padding-bottom: 32px; }
  .single-product .thumbs { margin-top: 8px; }
  .single-product .block { padding-block: 40px; }
  .single-product .banner .block { padding-block: 48px; }
  .lt-kit-specifications { font-size: 16px; }
  .lt-kit-specifications th, .lt-kit-specifications td { padding-block: 12px; }
}

/* Homepage hierarchy: use paths, compact kit overview, and fixed guide selection. */
.home .hero-head .lt-hero-tagline { margin: 8px 0 0; color: var(--muted); font-size: 20px; line-height: 1.5; }
.home #main > section:not(.night) .block { padding-block: 56px; }
.lt-use-grid, .lt-kit-overview { display: grid; gap: 20px; }
.lt-use-grid > .lt-use-card { display: grid; gap: 12px; padding: 24px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: var(--bg-2); text-decoration: none; }
.lt-use-card h3, .lt-kit-overview h3 { margin: 0; font-size: 22px; line-height: 1.3; }
.lt-use-card p, .lt-kit-overview p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--muted); }
.lt-use-card > span { display: flex; align-items: center; min-height: 44px; color: var(--laser); font-size: 16px; }
.lt-use-card:hover, .lt-use-card:focus-visible { border-color: var(--laser); }
.lt-use-card:focus-visible { outline: 2px solid var(--laser); outline-offset: 4px; }
.lt-home-kit-photo { max-width: 480px; margin: 0 auto 32px; }
.lt-home-kit-photo img { display: block; width: 100%; height: auto; object-fit: contain; }
.lt-kit-overview { margin-bottom: 24px; }
.lt-kit-overview > div { border-top: 1px solid var(--line); padding-top: 20px; display: grid; gap: 12px; align-content: start; }
.lt-home-help { display: grid; gap: 24px; }
.lt-home-help p { font-size: 17px; line-height: 1.65; }
.home .cards .card:has(.card-m) { display: grid; grid-template-columns: 96px minmax(0, 1fr); }
.home .cards .card-m { aspect-ratio: auto; height: 100%; }
.home .cards .card-m img { height: 100%; object-fit: cover; }
@media (min-width: 768px) {
  .lt-use-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lt-kit-overview { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .lt-home-help { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
}
@media (min-width: 1024px) { .lt-use-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .home .hero:not(.page-hero) .hero-h1 { font-size: 44px; line-height: 1.02; }
  .home .hero-head .lt-hero-tagline { font-size: 18px; }
  .home #main > section:not(.night) .block { padding-block: 40px; }
  .lt-use-card { padding: 20px; gap: 8px; }
  .lt-use-card h3, .lt-kit-overview h3 { font-size: 21px; }
}

/* Frontend layout B3: discovery and reading. Existing article/policy text stays in WP. */
.lt-blog-head { padding-top: calc(var(--header-h) + 24px); padding-bottom: 16px; }
.lt-blog-head .h1 { font-size: clamp(30px, 4vw, 52px); line-height: 1.12; margin: 8px 0 14px; max-width: 24ch; }
.lt-blog-head p { max-width: 65ch; font-size: 18px; line-height: 1.55; margin: 0; }
.lt-topic-section .block { padding-top: 20px; }
.lt-topic-section .h2 { font-size: clamp(24px, 3vw, 34px); }
.lt-blog-topic-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 24px; }
.lt-blog-topic-nav .btn { white-space: normal; padding: 10px 12px; }
.lt-blog-topics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.lt-blog-topic { border: 1px solid #435648; border-radius: 12px; padding: 24px; scroll-margin-top: 100px; }
.lt-blog-topic h3 { font-size: 24px; line-height: 1.25; margin: 0 0 12px; }
.lt-blog-topic p { color: #c4d0c7; margin: 0 0 12px; line-height: 1.6; }
.lt-blog-topic ul { padding-left: 20px; margin: 0; }
.lt-blog-topic li { margin: 0; }
.lt-blog-topic li a { display: inline-block; min-height: 44px; padding: 9px 0; color: #dce5df; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.lt-blog-topic details { margin-top: 12px; }
.single .page-head { padding-top: calc(var(--header-h) + 24px); padding-bottom: 20px; max-width: 72ch; margin-inline: auto; gap: 12px; }
.single .page-head .h1 { font-size: clamp(28px,4vw,48px); line-height: 1.16; margin: 16px 0; }
.single main .article-layout { display: block; min-width: 0; padding-top: 0; }
.single main article.prose { max-width: 70ch; margin-inline: auto; font-size: 18px; line-height: 1.75; overflow-wrap: anywhere; }
.single main .prose > :first-child { margin-top: 0; }
.single main .prose :is(.lt-corrected-guide,.lt-p1-guide,.lt-p0-guide,.lt-decision-guide,.lt-battery-guide,.lt-buying-guide,.lt-switch-guide,.lt-finder-guide,.lt-screen-share-guide) { max-width: 100%; padding: 0; font-size: inherit; }
.single main .prose :is(h2,h3) { scroll-margin-top: 110px; }
.single main .prose :is(img,video,iframe) { max-width: 100%; }
.single main .prose .lt-vb .lt-vb-note { font-size: 16px; }
.single main .toc { position: static; width: 100%; max-height: none; overflow: visible; padding: 16px 20px; margin: 24px 0; border: 1px solid #435648; border-radius: 12px; background: #101c15; font-size: 16px; }
.single main .toc[hidden] { display: none; }
.single main .toc ol { margin: 0; padding-left: 24px; }
.single main .toc li { margin: 0; }
.single main .toc a { display: inline-block; min-height: 44px; padding: 8px 0; }
.single main > section.wrap .block > .h2 { margin-bottom: 24px; }
.page:not(.woocommerce-page) main .prose { max-width: 70ch; margin-inline: auto; font-size: 18px; line-height: 1.75; overflow-wrap: anywhere; }
.page:not(.woocommerce-page) main .page-head { max-width: 72ch; margin-inline: auto; padding-top: calc(var(--header-h) + 24px); padding-bottom: 20px; }
.page:not(.woocommerce-page) main .page-head .h1 { font-size: clamp(30px,4vw,48px); line-height: 1.16; }
.lt-about-head { min-height: 300px; align-items: end; }
.lt-about-copy { width: 100%; padding-top: 48px; padding-bottom: 32px; }
.lt-about-head .hero-h1 { font-size: clamp(32px,5vw,64px); }
.page-template-page-about main .prose, .page-template-page-about main .kitlist { max-width: 70ch; }
.page-template-page-about main .prose { margin-inline: 0; }
/* Common controls must reflow when readers enlarge text. */
.single .page-head, .page main .page-head, .archive .page-head, .error404 .page-head, .search .elementor-location-archive { padding-top: calc(var(--lt-head-height, var(--header-h)) + 24px); }
body:has(.menu-btn[aria-expanded="true"]) #lt-interaction-choice { visibility: hidden; }
.lt-blog-topic summary, .toc summary { cursor: pointer; min-height: 44px; padding: 10px 0; }
.site-head .brand { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.site-head .head-actions { flex: 0 0 auto; }
.row > .block, .buyrow { min-width: 0; }
main :is(h1,h2,h3) { overflow-wrap: anywhere; }
.page-head > *, .block-head > *, .cards .card-b, .cards .card-b > * { min-width: 0; overflow-wrap: anywhere; }
.buybox .price, .buyrow .price, .stickybar .price { white-space: normal; display: flex; flex-wrap: wrap; align-items: baseline; gap: .3em; min-width: 0; }
.price del, .price ins { display: inline-block; white-space: nowrap; }
.stickybar .wrap { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.stickybar .price { flex: 1 1 auto; }
.stickybar[aria-hidden="true"] { visibility: hidden; }
.anatomy-specs .v { white-space: normal; overflow-wrap: anywhere; }
.home .night.hero::before { background: linear-gradient(180deg,rgba(3,3,3,.82),rgba(3,3,3,.8) 72%,var(--bg)); }
.single-product .night.dense::before { background: linear-gradient(180deg,rgba(3,3,3,.8),rgba(3,3,3,.76) 72%,var(--bg)); }
.single-product .crumbs a, .single-product .crumbs span { color: var(--on-photo); }
.night.lt-about-head::before { background: linear-gradient(180deg,rgba(3,3,3,.8),rgba(3,3,3,.72) 65%,var(--bg)); }
.single-product .night.dense > .wrap { padding-top: calc(var(--lt-head-height, var(--header-h)) + 12px) !important; }
.hero .wrap { padding-top: calc(var(--lt-head-height, var(--header-h)) + var(--s4)); }
.lt-blog-head, .single .page-head, .page:not(.woocommerce-page) main .page-head { padding-top: calc(var(--lt-head-height, var(--header-h)) + 24px); }
@media (max-width: 700px) {
  .lt-blog-head { padding-top: calc(var(--lt-head-height, var(--header-h)) + 20px); padding-bottom: 4px; }
  .lt-blog-head p { font-size: 16px; }
  .lt-blog-topics { grid-template-columns: 1fr; gap: 20px; }
  .lt-blog-topic { padding: 18px; }
  .lt-blog-topic h3 { font-size: 22px; }
  .lt-blog-topic-nav { margin: 12px 0 20px; gap: 6px; }
  .lt-blog-topic-nav .btn { font-size: 14px; }
  .single main .prose .elementor-element { min-width: 0; }
  .single-product .crumbs { padding-top: 0; }
  .single main .toc { padding: 8px 16px; }
  .lt-about-head { min-height: 240px; }
}

/* Keep the existing purchase bar above a visible footer promotion. */
.stickybar { bottom: var(--lt-purchase-bottom, 0px); }
