/* K-LiTE website design tokens - per the approved Design & Experience Framework
   (2026-09-10). This is a website-specific palette, distinct from the amber
   #FFBF00/#FFBE00 + #333333 system used in Senthil's docx/pptx/newsletter
   templates - decided 2026-09-11 so the site can use the framework's more
   restrained black/white/amber architectural system. Variable NAMES are kept
   stable so every existing rule below re-themes automatically; only values
   changed, plus a few new tokens (night-2, ink/paper aliases, line, steel). */
:root {
    --klite-amber: #EDAA41;       /* K-Lite Amber - primary CTA, highlights, active cues */
    --klite-amber-alt: #C98213;   /* Amber Deep - secondary emphasis / darker accent */
    --klite-amber-deep: #C98213;  /* alias, framework name */
    --klite-dark: #14100D;        /* Night - dark sections, footer, high-contrast bands */
    --klite-night: #14100D;       /* alias, framework name */
    --klite-night-2: #271F19;     /* secondary dark surface */
    --klite-text: #000000;        /* Ink - primary text */
    --klite-ink: #000000;         /* alias, framework name */
    --klite-muted: #6B6B6B;       /* Steel - secondary body text / utility info */
    --klite-steel: #6B6B6B;       /* alias, framework name */
    --klite-bg: #FFFFFF;          /* Paper - primary background */
    --klite-paper: #FFFFFF;       /* alias, framework name */
    --klite-bg-alt: #F4F4F4;      /* Surface Alt - light section bands / neutral cards */
    --klite-border: #E5E5E5;      /* Line - dividers, borders, structure */
    --klite-max-width: 1280px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Roboto Light", Roboto, "Segoe UI", Arial, sans-serif;
    font-weight: 300;
    color: var(--klite-text);
    background: var(--klite-bg);
    line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.klite-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ---------- Header / nav ---------- */

.klite-header {
    border-bottom: 1px solid var(--klite-border);
    box-shadow: 0 0 0 var(--klite-amber);
    position: sticky;
    top: 0;
    background: var(--klite-bg);
    z-index: 50;
}

.klite-header::after {
    content: "";
    display: block;
    height: 3px;
    background: var(--klite-amber);
}

.klite-nav {
    max-width: var(--klite-max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1.25rem;
}

.klite-logo img { height: 42px; width: auto; }

.klite-nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    /* Pushes the whole menubar - and everything after it (language, search,
       menu toggle) - to sit together on the right, away from the logo. */
    margin-left: auto;
}

.klite-nav-links a {
    font-size: 12.5px;
    letter-spacing: 1.2px;
    font-weight: 600;
    color: var(--klite-ink);
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    text-transform: uppercase;
}

.klite-nav-links a:hover,
.klite-nav-links a.active {
    border-bottom-color: var(--klite-amber);
}

.klite-nav-search-btn,
.klite-nav-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--klite-dark);
    font-size: 1.1rem;
    padding: 0.4rem;
}

.klite-nav-toggle { display: none; }

@media (max-width: 860px) {
    .klite-nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        background: var(--klite-bg);
        border-bottom: 1px solid var(--klite-border);
        padding: 1rem 1.25rem;
        gap: 1rem;
        display: none;
    }
    .klite-nav-links.open { display: flex; }
    .klite-nav-toggle { display: inline-flex; }
}

/* ---------- Search overlay ---------- */

.klite-search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(33, 33, 33, 0.55);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 12vh;
    z-index: 100;
}

.klite-search-box {
    background: #fff;
    border-radius: 4px;
    padding: 1.5rem;
    width: min(520px, 92vw);
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

.klite-search-box form {
    display: flex;
    gap: 0.5rem;
}

.klite-search-box input {
    flex: 1;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--klite-border);
    border-radius: 3px;
    font-family: inherit;
    font-size: 1rem;
}

.klite-search-box button {
    background: var(--klite-amber);
    color: var(--klite-dark);
    border: none;
    border-radius: 3px;
    padding: 0 1rem;
    font-weight: 500;
    cursor: pointer;
}

/* ---------- Main content ---------- */

.klite-main {
    flex: 1;
    max-width: var(--klite-max-width);
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1.25rem;
}

/* ---------- Footer ---------- */

.klite-footer {
    background: var(--klite-dark);
    color: #fff;
    margin-top: 2rem;
}

.klite-footer-inner {
    max-width: var(--klite-max-width);
    margin: 0 auto;
    padding: 1rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.85rem;
}

.klite-footer-social {
    display: flex;
    gap: 0.9rem;
}

.klite-footer-social a {
    color: #fff;
    opacity: 0.85;
}

.klite-footer-social a:hover { opacity: 1; color: var(--klite-amber); }

.klite-footer-social svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Back to top ---------- */

.klite-back-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--klite-amber);
    color: var(--klite-dark);
    border: none;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    z-index: 60;
}

.klite-back-to-top.visible { display: flex; }

/* ---------- Shared building blocks used across pages ---------- */

.klite-h1 {
    font-size: 16pt;
    font-weight: 700;
    border-bottom: 1px solid var(--klite-amber);
    padding-bottom: 0.4rem;
    margin-bottom: 1rem;
}

.klite-section-banner {
    background: var(--klite-dark);
    color: #fff;
    border-left: 4px solid var(--klite-amber-alt);
    padding: 0.9rem 1.1rem;
    margin: 1.5rem 0;
}

.klite-section-banner .label { font-weight: 700; }
.klite-section-banner .subtitle { font-weight: 300; opacity: 0.85; font-size: 0.9rem; }

.klite-quote-box {
    background: #FFF8E6;
    border: 1px solid var(--klite-border);
    border-left: 4px solid #E8A020;
    padding: 1rem 1.25rem;
    font-style: italic;
    margin: 1.5rem 0;
}

table.klite-table { width: 100%; border-collapse: collapse; }
table.klite-table th {
    background: var(--klite-dark);
    color: #fff;
    text-align: left;
    padding: 0.6rem 0.8rem;
}
table.klite-table td { padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--klite-border); }
table.klite-table tr:nth-child(even) td { background: var(--klite-bg-alt); }

/* ---------- Home page building blocks ---------- */

.klite-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}
.klite-carousel > a {
    flex: 0 0 100%;
    scroll-snap-align: start;
}
.klite-carousel img { width: 100%; border-radius: 4px; }

.klite-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.klite-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
@media (max-width: 700px) {
    .klite-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .klite-grid-2 { grid-template-columns: 1fr; }
}

/* ---------- Carousel component ---------- */

.klite-slider {
    position: relative;
    padding: 0 2.5rem;
}
.klite-slider-track {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.klite-slider-item {
    flex: 0 0 calc((100% - (var(--items-per-view) - 1) * 1rem) / var(--items-per-view));
    min-width: 0;
}
.klite-slider-item img { width: 100%; border-radius: 4px; }

.klite-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--klite-border);
    background: #fff;
    color: var(--klite-dark);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.klite-slider-arrow.left { left: 0; }
.klite-slider-arrow.right { right: 0; }
.klite-slider-arrow:hover { border-color: var(--klite-amber); }

.klite-slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    position: absolute;
    left: 50%;
    bottom: 0.85rem;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.35);
    padding: 0.4rem 0.65rem;
    border-radius: 999px;
    z-index: 2;
}
.klite-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.55);
    border: none;
    cursor: pointer;
    padding: 0;
}
.klite-slider-dot.active { background: var(--klite-amber); }

/* Multi-item sliders (What's New / Events) keep dots below the row instead of
   overlaid, and scroll horizontally (one item at a time) on narrow screens so
   any items beyond what fits on screen become a swipeable carousel, while the
   Blazor Prev/Next/dots still page between batches of ItemsPerView items. */
.klite-slider-multi .klite-slider-dots {
    position: static;
    transform: none;
    background: none;
    padding: 0;
    margin-top: 0.75rem;
}
.klite-slider-multi .klite-slider-dot { background: var(--klite-border); }
.klite-slider-multi .klite-slider-dot.active { background: var(--klite-amber); }

.klite-slider-multi .klite-slider-track {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.klite-slider-multi .klite-slider-track::-webkit-scrollbar { display: none; }
.klite-slider-multi .klite-slider-item {
    flex-shrink: 0;
    scroll-snap-align: start;
}

@media (max-width: 900px) {
    .klite-slider-multi .klite-slider-track { --items-per-view: 3 !important; }
}
@media (max-width: 700px) {
    .klite-slider-multi .klite-slider-track { --items-per-view: 2 !important; }
}
@media (max-width: 480px) {
    .klite-slider-multi .klite-slider-track { --items-per-view: 1 !important; }
}

/* Events sliders reuse the What's New layout */
.klite-slider-short .klite-slider-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* ---------- Home page: full-bleed sections + product portfolio ---------- */

.klite-full-bleed {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}
.klite-full-bleed .klite-slider { padding: 0; }
.klite-full-bleed .klite-slider-item img { border-radius: 0; }

.klite-section-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 300;
    margin: 1.5rem 0;
}

.klite-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
}
.klite-portfolio-tile {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--klite-bg-alt);
}
.klite-portfolio-tile img:not(.hover) {
    width: 100%;
    height: auto;
    display: block;
}
.klite-portfolio-tile img.hover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.klite-portfolio-tile:hover img.hover { opacity: 1; }

@media (max-width: 700px) {
    .klite-portfolio-grid { grid-template-columns: 1fr; }
}

/* ---------- Home page: centered section titles + event captions ---------- */

.klite-h1-center { text-align: center; }

.klite-event-caption {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: var(--klite-dark);
    text-align: center;
}

/* What's New / Events now spread edge-to-edge like the banners; the prev/next
   arrows sit right on top of the outer images instead of in a side gutter. */
.klite-full-bleed .klite-slider-multi .klite-slider-arrow {
    background: rgba(255,255,255,0.85);
}

/* ---------- Events pages ---------- */

.klite-h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--klite-dark);
}

.klite-btn {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.6rem 1.2rem;
    background: var(--klite-dark);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
}
.klite-btn:hover { background: var(--klite-amber); color: var(--klite-dark); }

.klite-events-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 1rem;
}
.klite-event-card {
    display: block;
    text-decoration: none;
    color: var(--klite-dark);
}
.klite-event-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: var(--klite-bg-alt);
    border-radius: 4px;
}
.klite-event-card-title {
    display: block;
    margin-top: 0.5rem;
    font-weight: 700;
    font-size: 0.95rem;
}
.klite-event-card-date {
    display: block;
    font-size: 0.8rem;
    color: #777;
}

.klite-event-detail {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
    align-items: start;
}
.klite-event-detail-image {
    width: 100%;
    border-radius: 4px;
}
.klite-event-detail-meta {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 1rem 0;
    font-size: 0.95rem;
}
.klite-event-detail-description {
    line-height: 1.6;
    white-space: pre-line;
}

@media (max-width: 900px) {
    .klite-events-grid { grid-template-columns: repeat(2, 1fr); }
    .klite-event-detail { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .klite-events-grid { grid-template-columns: 1fr; }
}

/* ---------- Breadcrumbs ---------- */

.klite-breadcrumb {
    font-size: 0.85rem;
    color: #777;
    margin: 1rem 0 0.5rem;
}
.klite-breadcrumb a {
    color: #777;
    text-decoration: none;
}
.klite-breadcrumb a:hover { color: var(--klite-amber); text-decoration: underline; }
.klite-breadcrumb .sep { margin: 0 0.4rem; color: #bbb; }
.klite-breadcrumb .current { color: var(--klite-dark); }

/* ---------- Contact / enquiry-form pages ---------- */

.klite-submenu {
    text-align: right;
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 0.5rem;
}
.klite-submenu a { color: #777; text-decoration: none; }
.klite-submenu a:hover { color: var(--klite-amber); }

.klite-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-top: 1.5rem;
    align-items: start;
}
.klite-contact-offices p { margin: 0 0 1rem; line-height: 1.6; }
.klite-contact-offices a { color: var(--klite-dark); }

.klite-contact-form label {
    display: block;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 700;
}
.klite-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.klite-input {
    display: block;
    width: 100%;
    margin-top: 0.35rem;
    padding: 0.6rem 0.75rem;
    font-family: "Roboto Light", Roboto, sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    color: #555;
    background: #F6F6F6;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
.klite-form-success { color: #1a7a3c; font-weight: 700; }
.klite-form-error { color: #c0392b; font-weight: 700; }
.validation-message { color: #c0392b; font-size: 0.8rem; display: block; }

@media (max-width: 900px) {
    .klite-contact-grid { grid-template-columns: 1fr; }
    .klite-form-row { grid-template-columns: 1fr; }
}

/* ---------- Contact map + directions icon ---------- */

.klite-contact-map {
    width: 100%;
    height: 400px;
    background: #eee;
    border: 1px solid var(--klite-border);
    margin: 1rem 0 1.5rem;
}
.klite-map-icon {
    display: inline-flex;
    vertical-align: middle;
    margin-left: 0.35rem;
    color: var(--klite-amber);
}
.klite-map-icon svg { fill: currentColor; }

/* ---------- Thank-you page ---------- */

.klite-thankyou-table {
    width: 100%;
    max-width: 640px;
    border-collapse: collapse;
    margin-top: 0.5rem;
}
.klite-thankyou-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--klite-border);
    font-size: 0.9rem;
}
.klite-thankyou-table td:first-child {
    font-weight: 700;
    width: 220px;
    color: var(--klite-dark);
}

/* ---------- Lab feedback rating groups ---------- */

.klite-rating-group {
    margin-bottom: 1rem;
}
.klite-rating-group p {
    font-weight: 700;
    font-size: 0.9rem;
    margin: 0 0 0.4rem;
}
.klite-rating-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.5rem;
    background: #F6F6F6;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0.6rem 0.75rem;
}
.klite-rating-option {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 400;
    font-size: 0.9rem;
}

/* ---------- About page ---------- */

.klite-about-video {
    max-width: 1172px;
    margin: 1rem auto;
    border: 1px solid var(--klite-border);
}
.klite-about-video iframe { display: block; }

.klite-about-intro {
    max-width: 1172px;
    margin: 1.5rem auto;
    line-height: 1.7;
}
.klite-about-intro p { margin: 0 0 1rem; }
.klite-about-highlight { color: #F69306; font-weight: 700; }

.klite-about-tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    max-width: 1172px;
    margin: 1.5rem auto;
    align-items: start;
}
.klite-about-tile {
    display: block;
    text-decoration: none;
    color: var(--klite-dark);
}
.klite-about-tile img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}
.klite-about-tile span {
    display: block;
    margin-top: 0.5rem;
    font-weight: 700;
    text-align: center;
}

.klite-about-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
    align-items: start;
}
.klite-about-detail-image img { width: 100%; border-radius: 4px; }
.klite-about-detail-body { line-height: 1.7; }

.klite-medialibrary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}
.klite-medialibrary-item img { width: 100%; border-radius: 4px; }
.klite-medialibrary-item iframe { border-radius: 4px; }
.klite-medialibrary-item-title {
    margin-top: 0.5rem;
    font-weight: 700;
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .klite-about-tiles { grid-template-columns: repeat(2, 1fr); }
    .klite-about-detail { grid-template-columns: 1fr; }
    .klite-medialibrary-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .klite-about-tiles { grid-template-columns: 1fr; }
    .klite-medialibrary-grid { grid-template-columns: 1fr; }
}

/* ---------- Products / Projects / Search / Downloads: shared tile grid ---------- */

.klite-cat-hero {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin: 1.5rem 0;
    align-items: start;
}
.klite-cat-hero a { display: block; position: relative; overflow: hidden; border-radius: 4px; }
.klite-cat-hero img:not(.hover) { width: 100%; height: auto; display: block; }
.klite-cat-hero img.hover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.3s ease; }
.klite-cat-hero a:hover img.hover { opacity: 1; }
.klite-cat-hero .label {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
    background: linear-gradient(transparent, rgba(0,0,0,0.65));
    color: #fff; padding: 1.5rem 1rem 0.75rem; font-weight: 700; font-size: 1.1rem;
}

.klite-tile-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin: 1.5rem 0;
    align-items: start;
}
.klite-tile { display: block; text-decoration: none; color: var(--klite-dark); }
.klite-tile .img-wrap { position: relative; overflow: hidden; border-radius: 4px; border: 1px solid var(--klite-border); }
.klite-tile .img-wrap img:not(.hover) { width: 100%; height: auto; display: block; }
.klite-tile .img-wrap img.hover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.3s ease; }
.klite-tile:hover .img-wrap img.hover { opacity: 1; }
.klite-tile .title { display: block; margin-top: 0.5rem; font-weight: 700; text-align: center; }
.klite-tile .sub { display: block; text-align: center; font-size: 0.8rem; color: var(--klite-muted); }

.klite-quickfilter {
    display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0;
}
.klite-quickfilter input {
    flex: 1; max-width: 320px; padding: 0.5rem 0.75rem;
    border: 1px solid var(--klite-border); border-radius: 4px; font: inherit;
}
.klite-quickfilter-multi input { flex: 1 1 200px; max-width: 260px; }

/* ---------- Product detail (group) page ---------- */

.klite-product-detail {
    display: grid;
    grid-template-columns: minmax(280px, 440px) 1fr;
    gap: 2rem;
    margin-top: 1rem;
    align-items: start;
}
.klite-product-detail img { width: 100%; border-radius: 4px; }
.klite-product-downloads { margin-top: 1rem; }
.klite-product-downloads a { display: inline-block; margin: 0.15rem 0.6rem 0.15rem 0; }
.klite-product-title { font-size: 1.2rem; font-weight: 700; border-bottom: 1px solid var(--klite-dark); padding-bottom: 0.4rem; margin: 0.5rem 0 1rem; }

.klite-variant-filters {
    display: flex; flex-wrap: wrap; gap: 0.75rem;
    background: var(--klite-bg-alt); border: 1px solid var(--klite-border);
    border-radius: 4px; padding: 0.85rem 1rem; margin: 1.25rem 0;
}
.klite-variant-filters label { display: flex; flex-direction: column; font-size: 0.75rem; color: var(--klite-muted); gap: 0.2rem; }
.klite-variant-filters select { padding: 0.35rem 0.5rem; border: 1px solid var(--klite-border); border-radius: 4px; font: inherit; min-width: 120px; }
.klite-variant-filters button { align-self: flex-end; background: none; border: 1px solid var(--klite-border); border-radius: 4px; padding: 0.35rem 0.75rem; cursor: pointer; font-size: 0.8rem; }
.klite-variant-filters button:hover { border-color: var(--klite-amber); }

table.klite-variant-table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.9rem; }
table.klite-variant-table th { background: var(--klite-dark); color: #fff; padding: 0.55rem 0.6rem; text-align: left; }
table.klite-variant-table td { padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--klite-border); vertical-align: top; }
table.klite-variant-table tr:nth-child(even) td { background: var(--klite-bg-alt); }
table.klite-variant-table a { color: inherit; }
table.klite-variant-table .mounting-code { text-decoration: underline dotted; cursor: help; }

.klite-avc-product { margin: 0 0 1.25rem; padding: 0.75rem 1rem; border: 1px solid var(--klite-border); border-radius: 4px; }
.klite-avc-product-title { font-weight: 700; margin-bottom: 0.4rem; }
.klite-avc-option-list, .klite-avc-option-list ul { list-style: none; margin: 0; padding: 0; }
.klite-avc-option-list > li { padding: 0.25rem 0; border-bottom: 1px solid var(--klite-border); }
.klite-avc-option-list > li:last-child { border-bottom: none; }
.klite-avc-option-list ul { margin: 0.35rem 0 0.25rem 1rem; padding-left: 0.75rem; border-left: 2px solid var(--klite-border); }
.klite-avc-option-list ul li { padding: 0.15rem 0; }
.klite-avc-option-label { font-weight: 600; margin-right: 0.3rem; }

.klite-collapsible-header { display: flex; align-items: center; justify-content: space-between; cursor: pointer; user-select: none; }
.klite-toggle-icon { font-weight: 700; font-size: 1.1rem; color: var(--klite-amber); flex-shrink: 0; margin-left: 0.75rem; }

.klite-popup-message { margin: 1rem 0; padding: 0.75rem 1rem; background: #FFF8E6; border: 1px solid var(--klite-border); border-left: 4px solid #E8A020; font-style: italic; }

.klite-accessory-list { list-style: none; margin: 0.5rem 0 0; padding: 0; }
.klite-accessory-list li { padding: 0.3rem 0; border-bottom: 1px solid var(--klite-border); }
.klite-accessory-list li:last-child { border-bottom: none; }

.klite-pole-spec-table th { width: 40%; }

/* ---------- Projects ---------- */

.klite-project-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 1.5rem; }
.klite-project-filters button {
    background: none; border: 1px solid var(--klite-border); border-radius: 20px;
    padding: 0.35rem 0.9rem; cursor: pointer; font-size: 0.85rem; color: var(--klite-dark);
}
.klite-project-filters button.active { background: var(--klite-amber); border-color: var(--klite-amber); }

.klite-project-detail { margin-top: 1.25rem; }
.klite-project-detail-header { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.klite-project-detail-header .name { font-size: 1.2rem; font-weight: 700; }
.klite-project-detail-body { line-height: 1.7; }
.klite-project-used-products { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; margin-top: 1rem; }
.klite-project-used-products img { width: 100%; border: 1px solid var(--klite-border); border-radius: 4px; }

/* ---------- Search ---------- */

.klite-search-results-header { margin: 1rem 0; color: var(--klite-muted); }

/* ---------- Downloads ---------- */

.klite-downloads-hero { width: 100%; border-radius: 4px; margin-bottom: 1rem; }

@media (max-width: 900px) {
    .klite-cat-hero { grid-template-columns: 1fr; }
    .klite-tile-grid { grid-template-columns: repeat(2, 1fr); }
    .klite-product-detail { grid-template-columns: 1fr; }
    .klite-project-used-products { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
    .klite-tile-grid { grid-template-columns: 1fr; }
    .klite-project-used-products { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Product gallery: main image + thumbnail strip ---------- */

.klite-product-gallery-main {
    border: 1px solid var(--klite-border);
    border-radius: 4px;
    overflow: hidden;
}
.klite-product-gallery-main img { width: 100%; height: auto; display: block; }
.klite-product-gallery-thumbs {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}
.klite-product-gallery-thumbs button {
    width: 72px;
    height: 72px;
    padding: 2px;
    background: var(--klite-bg-alt);
    border: 2px solid var(--klite-border);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.klite-product-gallery-thumbs button.active { border-color: var(--klite-amber); }
.klite-product-gallery-thumbs button img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Product subcategory grid: Subcat1 section headers ---------- */

.klite-subcat-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--klite-dark);
    border-bottom: 1px solid var(--klite-border);
    padding-bottom: 0.4rem;
    margin: 1.75rem 0 1rem;
}
.klite-subcat-section-title:first-of-type { margin-top: 1rem; }

/* ---------- Dimensional drawing: shown at a contained size, not stretched ---------- */

.klite-dimensional-drawing {
    max-width: 380px;
    margin: 1.5rem 0 0;
}
.klite-dimensional-drawing img { width: 100%; }

/* ---------- Hub page family (Applications / Resources / Knowledge) ----------
   Added per the Design & Experience Framework's hero/typography role system
   (2026-09-11, Phase 1 of the website change plan). Hub template: compact
   editorial hero (~430px), 46px title, short orientation, then content. */

.klite-hub-hero {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 96px 40px 72px;
    max-width: var(--klite-max-width);
    margin: 0 auto;
}

.klite-hub-hero h1 {
    font-size: 46px;
    font-weight: 500;
    margin: 0 0 0.75rem;
    color: var(--klite-ink);
    line-height: 1.15;
}

.klite-hub-hero p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--klite-steel);
    max-width: 640px;
    margin: 0;
}

/* Detail-template H1 scale, for use once Phase 2+ builds product/project/
   application/article detail pages - defined now so no new one-off sizes get
   invented per the framework's "consistency rule". */
.klite-h1-app-detail { font-size: 56px; font-weight: 500; line-height: 1.1; }
.klite-h1-project { font-size: 52px; font-weight: 500; line-height: 1.15; }
.klite-h1-article { font-size: 48px; font-weight: 500; line-height: 1.2; }
.klite-h1-product { font-size: 38px; font-weight: 500; line-height: 1.2; }

.klite-hub-group {
    margin: 2.5rem 0;
}

.klite-hub-group h2 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 0.4rem;
    color: var(--klite-ink);
}

.klite-hub-group .hub-group-note {
    font-size: 13px;
    color: var(--klite-steel);
    margin: 0 0 1rem;
}

.klite-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}

/* Real, clickable destination - per the framework's "real destinations earn
   cards" rule. */
.klite-hub-card {
    display: block;
    padding: 1.1rem 1.2rem;
    border: 1px solid var(--klite-border);
    border-radius: 3px;
    color: var(--klite-ink);
    background: var(--klite-paper);
    transition: border-color 0.15s ease;
}

.klite-hub-card:hover {
    border-color: var(--klite-amber);
}

.klite-hub-card .title {
    display: block;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.klite-hub-card .meta {
    display: block;
    font-size: 0.85rem;
    color: var(--klite-steel);
}

/* Future / not-yet-published destination - visual representation preserved
   to communicate the full IA, interaction deliberately deactivated (per the
   framework: "never masquerade as a live link"). Not a <a>. */
.klite-hub-card--future {
    padding: 1.1rem 1.2rem;
    border: 1px dashed var(--klite-border);
    border-radius: 3px;
    background: var(--klite-bg-alt);
    color: var(--klite-steel);
    cursor: default;
}

.klite-hub-card--future .title {
    display: block;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--klite-ink);
}

.klite-hub-card--future .badge {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--klite-amber-deep);
}

/* ---------- Mega-menu (Products / Resources / Company dropdowns) ----------
   Added 2026-09-11, continuing Phase 1. Desktop: CSS-only hover/focus
   dropdown, per the framework's "open predictably, preserve stable
   geometry" rule - no JS, no layout shift. Mobile: dropdown items render
   inline (always visible once the section label is in the open nav list),
   since touch has no hover state. Only Products/Resources/Company get a
   dropdown - Projects/Applications/Knowledge stay flat links; see the
   comment in MainLayout.razor for why. */

/* Fixed 2026-09-16: items with a dropdown (Products/Resources/Company) are
   wrapped in this div, so their <a> is NOT a direct child of the flex
   .klite-nav-links row - the browser only "blockifies" flex items
   themselves, so that inner <a> stayed a plain inline element with a
   different box model/height than the flat items (Projects/Applications/
   Knowledge/Contact), which sit directly in the flex row and get
   blockified. That mismatch showed up as the top nav being out of line.
   Making this wrapper a flex row too gives its <a> the same centered,
   block-level treatment as its flat siblings. */
.klite-nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

.klite-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    background: var(--klite-paper);
    border: 1px solid var(--klite-border);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    padding: 0.4rem 0;
    z-index: 60;
}

.klite-nav-item:hover .klite-dropdown,
.klite-nav-item:focus-within .klite-dropdown {
    display: block;
}

.klite-dropdown a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    color: var(--klite-ink);
    border-bottom: none;
}

.klite-dropdown a:hover {
    background: var(--klite-bg-alt);
    color: var(--klite-amber-deep);
}

@media (max-width: 860px) {
    .klite-nav-item {
        width: 100%;
    }
    .klite-dropdown {
        display: block;
        position: static;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--klite-border);
        margin: 0.25rem 0 0 0.5rem;
        padding: 0;
    }
    .klite-dropdown a {
        padding: 0.4rem 0 0.4rem 0.75rem;
    }
}

/* Non-interactive group heading inside a mega-menu dropdown, e.g. "Outdoor
   Lighting" above its subcategories in the Products dropdown. Added 2026-09-12
   alongside the KL_WebsiteMenubar-driven nav. */
.klite-dropdown-group-label {
    padding: 0.5rem 1rem 0.15rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--klite-steel);
}

/* Mega-menu column layout (Products dropdown: Outdoor Lighting / Indoor
   Lighting / Poles & Masts side by side). Added 2026-09-16 to replace the
   single stacked-list dropdown with a proper multi-column mega-menu, matching
   the approved reference layout, and to drop non-lighting subcategories
   (Accessories, Custom Built, Customer Care, etc.) from the Products menu -
   see MainLayout.razor's ProductCatOrder allow-list. */
/* NOTE: no `display` here on purpose - the base .klite-dropdown rule keeps
   this hidden (display:none) until hovered/focused; only the specificity-
   boosted hover/focus-within rule below switches it to flex. Setting
   display:flex unconditionally here would outrank the base display:none
   (two classes beat one) and leave the mega panel permanently visible, and
   then the plain hover rule (.klite-nav-item:hover .klite-dropdown, three
   selectors) would in turn outrank *this* rule and force it back to
   display:block on hover - open at rest, collapsing to one column on hover. *
   Both bugs reported 2026-09-16; fixed by keeping display entirely inside
   the matching-specificity hover/focus-within pair below. */
.klite-dropdown.klite-mega {
    align-items: flex-start;
    gap: 2.5rem;
    min-width: 640px;
    padding: 1.25rem 1.5rem;
}

.klite-nav-item:hover .klite-dropdown.klite-mega,
.klite-nav-item:focus-within .klite-dropdown.klite-mega {
    display: flex;
}

.klite-mega-col {
    min-width: 180px;
}

.klite-mega-col-label {
    padding: 0 0 0.5rem;
    margin-bottom: 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--klite-steel);
    border-bottom: 1px solid var(--klite-border);
}

.klite-dropdown.klite-mega a {
    padding: 0.35rem 0;
}

@media (max-width: 860px) {
    .klite-dropdown.klite-mega {
        display: block;
        min-width: 0;
        padding: 0;
    }
    .klite-mega-col {
        margin: 0 0 0.5rem 0.5rem;
    }
    .klite-mega-col-label {
        border-bottom: none;
        padding: 0.5rem 0 0.15rem 0.25rem;
        margin-bottom: 0;
    }
    .klite-dropdown.klite-mega a {
        padding: 0.4rem 0 0.4rem 0.25rem;
    }
}

/* --- Language switcher (Phase 2, localization, 2026-09-19) --------------- */
/* A <select> dropdown, not links - see MainLayout.razor. Sits right next to
   the menubar (both pushed right via .klite-nav-links' margin-left: auto),
   ahead of the search/menu icons. */
.klite-lang-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    margin-left: 1.25rem;
    margin-right: 0.75rem;
    font-family: inherit;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: var(--klite-ink, #000000);
    background-color: var(--klite-bg, #FFFFFF);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23EDAA41' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5L6 6.5L11 1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.55rem center;
    background-size: 8px 5px;
    border: 1px solid var(--klite-border, #E5E5E5);
    border-radius: 3px;
    padding: 0.3rem 1.4rem 0.3rem 0.55rem;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.klite-lang-select:hover,
.klite-lang-select:focus,
.klite-lang-select:focus-visible {
    border-color: var(--klite-amber, #EDAA41);
    color: var(--klite-amber-alt, #C98213);
    outline: none;
}

.klite-lang-select option {
    color: var(--klite-ink, #000000);
    background: var(--klite-bg, #FFFFFF);
    text-transform: none;
    font-weight: 400;
    font-size: 12px;
}

/* Technical Datasheet download page (DatasheetDownload.razor, 2026-09-23) -
   port of the old DownloadPDF.aspx "Add project data" form. */
.klite-tds-form { max-width: 900px; margin: 1.5rem auto 2.5rem; text-align: center; }
.klite-tds-heading { font-size: 1.1rem; font-weight: 700; margin: 0 0 0.35rem; }
.klite-tds-intro { margin: 0 0 1.25rem; color: #555; }
.klite-tds-form .klite-form-row { margin-bottom: 0.9rem; }
.klite-tds-form .klite-input { margin-top: 0; }
.klite-tds-buttons .klite-btn {
    margin-top: 0.4rem;
    width: 100%;
    padding: 0.85rem 1.2rem;
    border: 0;
    font-family: inherit;
    font-size: 0.95rem;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
}

/* Product variant table - "Specification" column built from KL_ProductsAVC
   (Products.razor LoadAvcSpecsAsync, 2026-09-23). */
.klite-spec-cell div { margin: 0 0 0.2rem; line-height: 1.45; }
.klite-spec-cell div:last-child { margin-bottom: 0; }
.klite-spec-label { font-weight: 500; color: var(--klite-dark); }
