/* One FH palette across visitor pages. Product photographs retain their own colours. */

/* Page backgrounds stay consistent across the catalogue and detail routes. */
@media screen {
  body.fh-site main > section:not(.fh-hero, .company-capabilities, .panel-quote, .magnetic-quote, .success-panel),
  body.fh-site main > [data-catalog-root] > section {
    background-color:var(--fh-bg);
  }

  body.fh-site main > :is(.section-pad, .cta, .lead-band):not(.fh-hero, .company-capabilities, .panel-quote, .magnetic-quote),
  body.fh-site main > [data-catalog-root] > section {
    border-block-start:1px solid var(--fh-reading-line);
  }

  body.fh-site.fh-inner main .fh-hero.fh-hero:not(.legal-hero),
  body.fh-site.home-immersive main .hero.fh-hero.fh-hero--media {
    --fh-ink:var(--fh-on-dark);
    --fh-muted:var(--fh-dark-muted);
    --fh-accent:var(--fh-dark-link);
    --fh-line:var(--fh-dark-line);
    background-color:var(--fh-dark);
    color:var(--fh-on-dark);
  }

  body.fh-site main .fh-hero.fh-hero:not(.legal-hero) :is(h1, strong) {
    color:var(--fh-on-dark);
  }

  body.fh-site main .fh-hero.fh-hero:not(.legal-hero) :is(.eyebrow, .breadcrumb, .breadcrumb a, .fh-hero-copy > p:not(.eyebrow), .selection-lead, .selection-order, .panel-size-highlight span, figcaption) {
    color:var(--fh-dark-muted);
  }

  body.fh-site main .fh-hero.fh-hero:not(.legal-hero) :is(.text-link, .hero-text-link) {
    color:var(--fh-dark-link);
    border-color:var(--fh-dark-line);
  }

  body.fh-site.fh-inner main .fh-hero:not(.legal-hero) .button {
    background:var(--fh-bg);
    border-color:var(--fh-bg);
    color:var(--fh-dark);
  }

  body.fh-site.fh-inner main .fh-hero:not(.legal-hero) .button:hover {
    background:var(--fh-surface-alt);
    border-color:var(--fh-surface-alt);
  }

  body.fh-site main .fh-hero.fh-hero:not(.legal-hero) :is(.fh-hero-visual, .panel-hero-photo img, .led-strips-hero-image) {
    background-color:var(--fh-dark);
  }
}

/* Reading surfaces: white, neutral grey, and one shared rule colour. */
body.fh-site :is(.home-manufacturing,.home-display-section,.managed-product-copy,.sheet-supply-review,.family-related,.panel-surface,.magnetic-access){background:var(--fh-surface)}
body.fh-site :is(.component-selection-note,.meanwell-photo-note,.sheet-supply-review>p:not(.eyebrow)){color:var(--fh-muted)}
body.fh-site :is(.finished-product-path,.sheet-supply-review){border-color:var(--fh-line)}
body.fh-site :is(.process-step,.faq-item,.technical-disclosure,.light-entry-guide,.panel-structure-guide,.success-panel){background:var(--fh-bg);border-color:var(--fh-line);border-radius:var(--fh-radius);box-shadow:none}
body.fh-site :is(.technical-table,.led-data-table,.panel-table){--fh-ink:var(--fh-reading-ink);--fh-muted:var(--fh-reading-muted);--fh-line:var(--fh-reading-line);--fh-accent:var(--fh-link);background:var(--fh-bg);color:var(--fh-ink)}
body.fh-site :is(.technical-table,.led-data-table,.panel-table) :is(th,td){border-color:var(--fh-line)}
body.fh-site :is(.technical-table,.led-data-table) caption,
body.fh-site :is(.specification-table,.panel-table) th[scope="row"]{background:var(--fh-surface);color:var(--fh-ink)}
body.fh-site :is(.technical-table-section,.led-table-group) th{background:var(--fh-surface-alt);color:var(--fh-ink)}

/* Every product card has the same dark surface and accessible text palette. */
body.fh-site :is(.home-primary-card,.home-accessory-card,.home-lightbox-feature,.family-choice-grid>a,.family-support-grid>a,.product-card,.official-product-card,.series-card,.format-card,.inspiration-card,.product-variant,.led-strips-path-card,.led-strips-format,.specialty-photo-directory>article,.meanwell-model-card){
  --fh-ink:var(--fh-on-dark);
  --fh-muted:var(--fh-dark-muted);
  --fh-accent:var(--fh-dark-link);
  --fh-line:var(--fh-dark-line);
  --ink:var(--fh-on-dark);
  --muted:var(--fh-dark-muted);
  --line:var(--fh-dark-line);
  --cyan:var(--fh-dark-link);
  background:var(--fh-dark);
  color:var(--fh-on-dark);
  border-color:var(--fh-dark-line);
  border-radius:var(--fh-radius);
  box-shadow:none;
}
body.fh-site main :is(.home-primary-card,.home-accessory-card,.home-lightbox-feature,.family-choice-grid>a,.family-support-grid>a,.product-card,.official-product-card,.series-card,.format-card,.inspiration-card,.product-variant,.led-strips-path-card,.led-strips-format,.specialty-photo-directory>article,.meanwell-model-card) :is(h2,h3,h4,strong){color:var(--fh-on-dark)}
body.fh-site main :is(.home-primary-card,.home-accessory-card,.home-lightbox-feature,.family-choice-grid>a,.family-support-grid>a,.product-card,.official-product-card,.series-card,.format-card,.inspiration-card,.product-variant,.led-strips-path-card,.led-strips-format,.specialty-photo-directory>article,.meanwell-model-card) :is(p:not(.eyebrow),small,.family-card-detail){color:var(--fh-dark-muted)}
body.fh-site main :is(.home-primary-card,.home-accessory-card,.home-lightbox-feature,.family-choice-grid>a,.family-support-grid>a,.product-card,.official-product-card,.series-card,.format-card,.inspiration-card,.product-variant,.led-strips-path-card,.led-strips-format,.specialty-photo-directory>article,.meanwell-model-card) :is(.eyebrow,.product-meta,.family-card-label,b,.product-card-link,.home-product-links a,.home-accessory-card span,.text-link){color:var(--fh-dark-link)}
body.fh-site :is(.home-primary-card,.home-accessory-card,.home-lightbox-feature,.family-choice-grid>a,.family-support-grid>a,.product-card,.official-product-card,.series-card,.format-card,.inspiration-card,.product-variant,.led-strips-path-card,.led-strips-format,.specialty-photo-directory>article,.meanwell-model-card) .button{background:var(--fh-bg);border-color:var(--fh-bg);color:var(--fh-dark)}
body.fh-site :is(.home-primary-card,.home-accessory-card,.home-lightbox-feature,.family-choice-grid>a,.family-support-grid>a,.product-card,.official-product-card,.series-card,.format-card,.inspiration-card,.product-variant,.led-strips-path-card,.led-strips-format,.specialty-photo-directory>article,.meanwell-model-card):focus-visible{outline-color:var(--fh-accent);outline-offset:4px}
body.fh-site .home-primary-card .home-product-image{background:var(--fh-dark)}
body.fh-site .home-primary-card .home-sheet-detail{border-color:var(--fh-dark-line)}
body.fh-site .home-primary-card .home-sheet-detail span{color:var(--fh-dark-muted)}

/* Use the same charcoal surround for every card photograph. */
body.fh-site :is(.family-choice-grid,.family-support-grid)>a{padding:0 24px 26px;overflow:hidden}
body.fh-site :is(.family-choice-grid,.family-support-grid)>a>figure{margin:0 -24px 24px;border-radius:0;overflow:hidden;background:var(--fh-dark)}
body.fh-site .family-support-grid>a>img{width:calc(100% + 48px);max-width:none;margin:0 -24px 24px;padding:14px;border:0;border-radius:0;background:var(--fh-dark)}
body.fh-site .family-choice-grid>a>figure img.product-photo-original{background:var(--fh-dark)}
body.fh-site.fh-inner .led-strips-card-copy{padding:26px}
body.fh-site .led-strips-format{padding:0 24px 26px;overflow:hidden}
body.fh-site.fh-inner .led-strips-format figure{margin:0 -24px 24px}
body.fh-site .specialty-photo-directory>article{border-color:var(--fh-dark-line)}
body.fh-site .specialty-photo-directory>article>span{color:var(--fh-dark-link)}
body.fh-site .format-card .format-card-copy{padding:26px}
body.fh-site .inspiration-card>div{padding:24px}
body.fh-site .inspiration-card figcaption{background:var(--fh-bg);color:#646c78}
body.fh-site .inspiration-card>div>span{color:var(--fh-dark-link)}
body.fh-site .meanwell-model-card{border-color:var(--fh-dark-line);border-radius:var(--fh-radius)}
body.fh-site .meanwell-model-card figcaption{color:var(--fh-dark-muted)}
body.fh-site .meanwell-model-card>div{border-color:var(--fh-dark-line)}
body.fh-site .meanwell-model-card>div a{color:var(--fh-dark-link)}
@media screen {
  body.fh-site.fh-inner main :is(.family-choice-grid > a, .family-support-grid > a, .official-product-card, .format-card, .inspiration-card, .series-card, .product-card, .product-variant, .led-strips-path-card, .led-strips-format, .specialty-photo-directory > article, .meanwell-model-card) :is(figure, img),
  body.fh-site.home-immersive main :is(.home-product-image, .home-lightbox-image, .home-accessory-card img) {
    background-color:var(--fh-dark);
  }

  body.fh-site.fh-inner main .family-support-grid > a > figure {
    margin-block-end:0;
  }

  body.fh-site.fh-inner main .family-support-grid > a > figure img {
    margin-block-end:24px;
    padding:14px;
    border:0;
    background-color:var(--fh-dark);
  }

  body.fh-site main .inspiration-card figcaption {
    background-color:var(--fh-dark);
    color:var(--fh-on-dark);
  }
}

body.fh-site :is(.component-power-visual,.family-component-next img,.family-feature-mini img,.magnetic-detail-image,.panel-detail-grid img,.panel-construction-link figure){background:var(--fh-surface-alt)}
body.fh-site main :is(.technical-table,.led-data-table,.panel-table) :is(th,td,caption,strong){color:var(--fh-reading-ink)}
body.fh-site .component-power-visual{color:var(--fh-ink)}
body.fh-site .component-power-visual small{color:var(--fh-muted)}

/* All dark information blocks share the same tone, including their headings and actions. */
body.fh-site :is(.contact-panel,.method-directory,.panel-platform-details,.company-capabilities,.panel-quote,.magnetic-quote,.site-footer){background:var(--fh-dark);color:var(--fh-on-dark)}
body.fh-site :is(.contact-panel,.method-directory,.panel-platform-details,.company-capabilities,.panel-quote,.magnetic-quote) :is(h2,h3,h4,strong){color:var(--fh-on-dark)}
body.fh-site :is(.method-directory,.panel-platform-details,.company-capabilities,.panel-quote,.magnetic-quote) :is(p:not(.eyebrow),li){color:var(--fh-dark-muted)}
body.fh-site :is(.panel-quote,.magnetic-quote) .button{background:var(--fh-bg);border-color:var(--fh-bg);color:var(--fh-ink)}

@media(max-width:760px){
  body.fh-site .site-header .site-nav{position:absolute;top:calc(100% - 1px);max-height:calc(100dvh - 114px)}
  body.fh-site .site-header .nav-toggle{position:relative;z-index:2}
  body.fh-site :is(.family-choice-grid,.family-support-grid)>a{padding:0 22px 24px}
  body.fh-site :is(.family-choice-grid,.family-support-grid)>a>figure{margin-inline:-22px}
  body.fh-site .family-support-grid>a>img{width:calc(100% + 44px);margin-inline:-22px}
  body.fh-site .format-card .format-card-copy{padding:24px 22px}
}
@media print{
  body.fh-site :is(.home-primary-card,.home-accessory-card,.home-lightbox-feature,.family-choice-grid>a,.family-support-grid>a,.product-card,.official-product-card,.series-card,.format-card,.inspiration-card,.product-variant,.led-strips-path-card,.led-strips-format,.specialty-photo-directory>article,.meanwell-model-card){--fh-ink:#111;--fh-muted:#444;--fh-accent:#111;--fh-on-dark:#111;--fh-dark-muted:#444;--fh-dark-link:#111;background:#fff;color:#111;border:1px solid #bbb}
}

@media screen {
  body.fh-site.fh-inner main .inspiration-card > div {
    padding:24px;
  }

  body.fh-site.fh-inner main .application-story img {
    box-sizing:border-box;
    padding:clamp(12px, 2vw, 26px);
    border-radius:var(--fh-radius);
    background-color:var(--fh-dark);
    object-fit:contain;
  }
}
