/* Both product guides use the same reading hierarchy at every viewport. */
:is(#acrylic-root, #neon-product-root[data-product="flex"], #neon-planning-resources) {
  --neon-type-title: clamp(2.5rem, 1.9rem + 2.7vw, 3.5rem);
  --neon-type-section: clamp(1.875rem, 1.54rem + 1.55vw, 2.5rem);
  --neon-type-card: clamp(1.25rem, 1.18rem + .35vw, 1.375rem);
  --neon-type-subhead: 1.125rem;
  --neon-type-body: 1rem;
  --neon-type-detail: .875rem;
  --neon-type-caption: .75rem;
}

:is(#acrylic-root, #neon-product-root[data-product="flex"]) main h1 {
  font-size: var(--neon-type-title);
  line-height: 1.08;
}

:is(#acrylic-root, #neon-product-root[data-product="flex"]) main h2,
#neon-planning-resources h2 {
  font-size: var(--neon-type-section);
  line-height: 1.15;
}

:is(#acrylic-root, #neon-product-root[data-product="flex"]) main h3,
#neon-planning-resources h3 {
  font-size: var(--neon-type-card);
  line-height: 1.25;
}

:is(#acrylic-root, #neon-product-root[data-product="flex"]) main h4 {
  font-size: var(--neon-type-subhead);
  line-height: 1.35;
}

:is(#acrylic-root, #neon-product-root[data-product="flex"]) main :where(p, li),
#neon-planning-resources p {
  font-size: var(--neon-type-body);
  line-height: 1.6;
}

:is(#acrylic-root, #neon-product-root[data-product="flex"]) main .hero-description {
  font-size: var(--neon-type-subhead);
  line-height: 1.5;
}

:is(#acrylic-root, #neon-product-root[data-product="flex"]) main :is(
  .profile-card > p, .reference-copy p, .spec-grid article p,
  .installation-grid article p, .light-copy p, .finish-description > p, .inspection-copy p,
  .approval-list p, .approval-list p strong, .brief-steps small, .brief-steps strong,
  .accessory-info summary > span, .accessory-info small, .packing-panel li span,
  .accessory-caption, .packing-caption, .brief-handoff-note, .fine-print, .review-line,
  .section-note, .profile-foot p, .spec-note p, .accessory-bottom p, .trade-note,
  .trade-note strong, .flex-shape-description, .flex-layer-key p, .layer-copy,
  .hero-trade, .brief-label strong, .brief-selections dt, .brief-selections dd,
  .reference-copy dt, .reference-copy dd, .field, .field > span, .detail-list dd,
  td, th, th button, .application-scenes figcaption p, .finish-list small,
  .acrylic-case-grid figcaption, .process-gallery figcaption span, .dimension-views figcaption span,
  .acrylic-case-grid figcaption span, .buyer-answer-links a, .packing-help a,
  .neon-contact-strip summary, .neon-contact-links a, .other-neon a
) {
  font-size: var(--neon-type-detail);
  line-height: 1.5;
}

:is(#acrylic-root, #neon-product-root[data-product="flex"]) main :is(
  .eyebrow, .model-id, .breadcrumb, .breadcrumb a, .breadcrumb span,
  .reference-meta > span, .reference-image > span, .profile-picture > span,
  .accessory-number, .accessory-list-heading > span, .finish-list button > span:first-child,
  .approval-list > div > span, .inspection-points > div > span, .hero-photo figcaption > span,
  .brief-steps p > span, .brief-label span, .media-caption, .mobile-hint,
  .spec-grid article > span, .flex-callout-number, .flex-layer-no,
  .quality-images figcaption, .lighting-photo figcaption
) {
  font-size: var(--neon-type-caption);
  line-height: 1.45;
}

:is(#acrylic-root, #neon-product-root[data-product="flex"]) main :is(
 .section-nav a, .button, .text-link, .filter-row button, .view-switch button,
 .compare-power button, .profile-detail, .reference-meta button,
 .hero-photo figcaption button, .light-options button > span,
 .option-action, .flex-choice-check, .flex-diagram-trigger, .brief-config summary,
 .dimension-download a, .accessory-bottom a
) {
  font-size: var(--neon-type-detail);
  line-height: 1.4;
}

:is(#acrylic-root, #neon-product-root[data-product="flex"]) main :is(
  .accessory-info summary strong, .packing-panel li strong, .brief-card input,
  .brief-card select, .brief-card textarea, .flex-shape-text > strong,
  .faq-list summary, .faq-list details p, .layer-copy > strong, .flex-layer-key strong,
  .finish-list strong, .inspection-points strong, .acrylic-case-grid figcaption strong,
  .process-gallery figcaption strong, .dimension-views figcaption
) {
  font-size: var(--neon-type-body);
  line-height: 1.45;
}

#neon-planning-resources .seo-kicker {
  font-size: var(--neon-type-caption);
  line-height: 1.45;
}

#neon-planning-resources .seo-link-list a {
  font-size: var(--neon-type-detail);
  line-height: 1.5;
}

:is(#acrylic-root, #neon-product-root[data-product="flex"]) .preview-dialog .dialog-heading strong {
  font-size: var(--neon-type-subhead);
  line-height: 1.35;
}

:is(#acrylic-root, #neon-product-root[data-product="flex"]) .preview-dialog :is(p, dt, dd, button) {
  font-size: var(--neon-type-detail);
  line-height: 1.5;
}

#acrylic-root #references .reference-image img {
  object-fit: cover;
}

/* These three components carry important sizes in the original product styles. */
:is(#acrylic-root, #neon-product-root[data-product="flex"]) main :is(
 .profile-detail, .brief-intro .trade-note, .packing-panel .packing-caption
) {
  font-size: var(--neon-type-detail) !important;
}

:is(#acrylic-root, #neon-product-root[data-product="flex"]) main :is(
 .profile-grid, .reference-grid, .product-reference-grid, .spec-grid, .fields,
 .accessories-layout, .brief-grid
) > * {
  min-width: 0;
}

:is(#acrylic-root, #neon-product-root[data-product="flex"]) main .section-nav .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0 clamp(.75rem, 1.5vw, 1.5rem);
}

:is(#acrylic-root, #neon-product-root[data-product="flex"]) main .section-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-block: .38rem;
  white-space: normal;
}

:is(#acrylic-root, #neon-product-root[data-product="flex"]) main :is(
  .filter-row, .view-switch, .compare-power, .hero-actions
) {
  flex-wrap: wrap;
}

:is(#acrylic-root, #neon-product-root[data-product="flex"]) main :is(
 .filter-row button, .view-switch button, .compare-power button, .button
) {
  min-height: 2.75rem;
}

:is(#acrylic-root, #neon-product-root[data-product="flex"]) main .field :is(input, select, textarea) {
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
}

:is(#acrylic-root, #neon-product-root[data-product="flex"]) main :is(
  .brief-label, .accessory-list-heading
) {
  flex-wrap: wrap;
  gap: .5rem .75rem;
}

@media (min-width: 961px) {
  :is(#acrylic-root, #neon-product-root[data-product="flex"]) #accessories-packing .accessories-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(24px, 2.7vw, 40px);
  }
  :is(#acrylic-root, #neon-product-root[data-product="flex"]) #accessories-packing .packing-help {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem 1.25rem;
  }
  :is(#acrylic-root, #neon-product-root[data-product="flex"]) #project-brief .brief-grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    column-gap: clamp(28px, 3.2vw, 48px);
  }
  :is(#acrylic-root, #neon-product-root[data-product="flex"]) .brief-intro > p:not(.eyebrow) {
    max-width: 45ch;
  }
}

@media (max-width: 960px) {
  :is(#acrylic-root, #neon-product-root[data-product="flex"]) main :is(.accessories-layout, .brief-grid) {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 1.75rem;
  }
  :is(#acrylic-root, #neon-product-root[data-product="flex"]) main :is(
    .profile-grid, .reference-grid, .product-reference-grid, .spec-grid
  ) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  :is(#acrylic-root, #neon-product-root[data-product="flex"]) main :is(
    .reference-grid.single, .product-reference-grid.single
  ) {
    grid-template-columns: minmax(0, 1fr);
  }
  #acrylic-root #references .reference-grid:not(.single) .reference-card {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
  }
  #acrylic-root #references .reference-grid:not(.single) .reference-image {
    height: auto;
    min-height: 0;
    aspect-ratio: 3 / 2;
  }
  :is(#acrylic-root, #neon-product-root[data-product="flex"]) main .section-nav {
    position: static;
  }
}

@media (max-width: 590px) {
  :is(#acrylic-root, #neon-product-root[data-product="flex"]) main :is(
    .profile-grid, .reference-grid, .product-reference-grid, .spec-grid
  ) {
    grid-template-columns: minmax(0, 1fr);
  }
}

#neon-product-root .commercial-applications h2 {margin:0 0 .65rem}
#neon-product-root .commercial-applications .wrap>p {max-width:65ch;margin:0 0 1.6rem}
#neon-product-root .commercial-scenes {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(18px,3vw,36px)}
#neon-product-root .commercial-scenes figure {margin:0;min-width:0}
#neon-product-root .commercial-scenes img {display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:12px}
#neon-product-root .commercial-scenes figcaption {position:static;padding:1rem 0 0}
#neon-product-root .commercial-scenes h3 {margin:0 0 .4rem}
#neon-product-root .commercial-scenes p {margin:0}
@media(max-width:650px){#neon-product-root .commercial-scenes{grid-template-columns:minmax(0,1fr)}}
