/* Content typography and surfaces derived from the LED Neon Flex page. */
:root {
  --an-page-title: clamp(40px, calc(34px + 1.55vw), 56px);
  --an-section-title: clamp(30px, calc(26px + 1vw), 40px);
  --an-card-title: clamp(20px, calc(19px + .26vw), 22px);
  --an-article-heading: clamp(24px, 2.35vw, 30px);
  --an-listing-title: clamp(20px, 1.85vw, 26px);
  --an-body-text: 15px;
  --an-caption-text: 13px;
  --an-border: #dedbe1;
}
html body[class] :is(main, #main-content) h1 {
  font-size: var(--an-page-title) !important;
  line-height: 1.08;
}
html body[class] :is(main, #main-content) h2 {
  font-size: var(--an-section-title) !important;
  line-height: 1.14;
}
html body[class] :is(main, #main-content) h3,
html body[class] :is(main, #main-content) :is(.quote-start-card, .v5-quote-form, .v5-quote-summary, .dec-project-guides, .help-topic-grid, .help-project) h2 {
  font-size: var(--an-card-title) !important;
  line-height: 1.24;
}
html body[class] :is(main, #main-content) :is(.ed-body, .guide-body, .guide-content) h2 {
  font-size: var(--an-article-heading) !important;
  line-height: 1.22;
}
html body[class] :is(main, #main-content) .blog-list :is(.ed-card-copy, .blog-card-copy) h2 {
  font-size: var(--an-listing-title) !important;
  line-height: 1.22;
}
:is(main, #main-content) :is(p:not([class]), .section-intro p, .section-heading p, .sc-section-head > p, .application-scene figcaption p, .ed-card-copy > p:not(.ed-card-topic), .blog-card-copy > p:not([class])) {
  font-size: var(--an-body-text);
  line-height: 1.6;
}
:is(main, #main-content) :is(.media-caption, .sc-caption, .sc-hero-footnote, .section-note, .fine-print, figcaption:not(:has(h3))) {
  font-size: var(--an-caption-text);
  line-height: 1.5;
}

/* The workspace title belongs to the editor toolbar, not the page outline. */
html body[class] :is(main, #main-content) #ic-studio-title {
  font-size: 14px !important;
  line-height: 1.3;
}

/* Flatten presentation surfaces. Selection rings, focus outlines and small controls retain their styling. */
:is(main, #main-content) :is(
  figure, figure > img, .profile-card, .profile-picture, .product-reference, .reference-card,
  .reference-image, #references img, .light-options img, .installation-grid img, .quality-images img, .photo-button img, .no-type-card, .no-type-image, .no-application-image, .application-scene,
  .ed-card, .ed-card-cover, .blog-card, .blog-cover, .sc-shop-card, .sc-product-card,
  .sc-standard-tile, .sc-standard-art, .sc-inspiration-card, .sc-project-card, .ip-style-card,
  .installation-card, .reflection-card, .sc-new-piece, .sc-new-piece-photo, .sc-photo-panel,
  .sc-detail-photo, .sc-card-gallery-image, .sc-classic-photo, .company-photo, .ans-purpose article,
  .seo-card, .feature, .lt-effect-stage, .lt-stage-photo, .lt-stage-photo img, .quote-light-preview,
  .funnel-card, .funnel-photo, .ip-journey-grid > article, .help-topic-grid > a, .db-card, .db-editor, .db-preview, .ic-frame-wrap, .ic-mobile-studio,
  .lt-supply-note, .ic-quote-checklist, .sc-range-note, .spec-note, .packing-panel, .help-bottom,
  .brief-card, .brief-form, .quote-start-card, .v5-quote-form, .v5-quote-summary, .contact-form-panel,
  .ed-next, .guide-next, .buyer-short-answer, .ed-table-wrap, .table-wrap, .table-scroll,
  .no-table-scroll, .ip-compare-table-wrap, .collection-comparison-table, .ip-compare-table tr,
  .v5-quote-form .artwork-upload
) {
  border-radius: 0 !important;
}
:is(main, #main-content) :is(
  figure, figure > img, .profile-card, .profile-picture, .product-reference, .reference-card, .reference-image,
  .application-scene, .no-type-card, .no-type-image, .no-application-image, .ed-card, .blog-card,
  .sc-shop-card, .sc-product-card, .sc-standard-tile, .sc-inspiration-card, .sc-project-card, .ip-style-card,
  .installation-card, .reflection-card, .sc-new-piece, .sc-new-piece-photo, .sc-photo-panel, .sc-detail-photo,
  .sc-card-gallery-image, .sc-classic-photo, .company-photo, .ans-purpose article, .seo-card, .feature,
  .funnel-card, .funnel-photo, .ip-journey-grid > article, .help-topic-grid > a, .db-card, .db-preview, .lt-stage-photo, .lt-stage-photo img, .quote-light-preview
):not(.is-selected, .chosen, [aria-selected="true"], [aria-pressed="true"]) {
  border-color: transparent !important;
  box-shadow: none;
}
:is(main, #main-content) :is(
  .ed-table-wrap, .table-wrap, .table-scroll, .no-table-scroll, .ip-compare-table-wrap, .collection-comparison-table,
  .ip-compare-table tr, .help-topic-grid > a, .db-editor, .brief-card, .brief-form, .ic-quote-checklist, .v5-quote-summary, .v5-quote-form, .contact-form-panel
) {
  border-color: var(--an-border);
}

/* Large image previews follow the same frame geometry. */
dialog:is(.preview-dialog, .image-dialog) {
  border-color: var(--an-border);
  border-radius: 0 !important;
}
