/* Chameleon Power brand overrides on top of the Crizal (styles.css) theme.
   Keep all site-specific color/logo tweaks here so the vendor template CSS stays untouched. */

:root {
    --cham-orange: #ef7d00;        /* primary brand color */
    --cham-orange-dark: #d96f00;
    --cham-green: #88bd58;         /* accent color */
    --cham-green-dark: #74a648;
    --cham-dark: #404142;
}

/* ---- Theme color: switch Crizal green -> Chameleon orange (primary) ---- */
.text-theme-color { color: var(--cham-orange) !important; }
.bg-theme-color { background-color: var(--cham-orange) !important; }
.bg-theme { background-color: var(--cham-orange) !important; }
.border-theme-color { border-color: var(--cham-orange) !important; }

/* Buttons (primary = orange) */
.butn.theme,
.butn.theme:focus { background-color: var(--cham-orange); border-color: var(--cham-orange); color: #fff; }
.butn.theme:hover { background-color: var(--cham-orange-dark); border-color: var(--cham-orange-dark); }

/* Hover: the vendor theme (styles.css) slides a black (#232323) ::after layer over
   .butn.theme. Keep that black hover, but make sure the text always stays white and
   sits above the layer (even if the label isn't wrapped in a <span>). */
.butn.theme:after { background: #232323; }
.butn.theme,
.butn.theme:hover,
.butn.theme:focus,
.butn.theme:active,
.butn.theme span,
.butn.theme:hover span,
.butn.theme:focus span { color: #fff !important; }
.butn.theme > * { position: relative; z-index: 9; }

.butn.bordered { border: 2px solid var(--cham-orange); color: var(--cham-orange); background: transparent; }
.butn.bordered:hover { background-color: var(--cham-orange); color: #fff; }

/* white-outline button for use on orange/dark backgrounds */
.butn.bordered-white { border: 2px solid #fff; color: #fff; background: transparent; }
.butn.bordered-white:hover { background-color: #fff; color: var(--cham-orange); }

/* ---- Accent color: green (#88bd58) ---- */
a { color: var(--cham-green); }
a:hover, a:active, a:focus { color: var(--cham-green-dark); }

/* Links in nav use the dark heading color, accent green on hover */
header .navbar-nav > li > a:hover,
header .navbar-nav > li.current > a { color: var(--cham-green); }

/* Accent utility classes */
.text-accent { color: var(--cham-green) !important; }
.bg-accent { background-color: var(--cham-green) !important; }
.border-accent { border-color: var(--cham-green) !important; }

/* Accent button variant */
.butn.accent,
.butn.accent:focus { background-color: var(--cham-green); border-color: var(--cham-green); color: #fff; }
.butn.accent:hover { background-color: var(--cham-green-dark); border-color: var(--cham-green-dark); }

/* Accent-colored highlight pill variant */
.cham-highlight.accent { background-color: var(--cham-green); }

/* ---- Highlighted text pill (matches the React site's skewed orange highlight) ---- */
.cham-highlight {
    background-color: var(--cham-orange);
    color: #fff;
    padding: 2px 14px;
    display: inline-block;
    transform: skewX(-12deg);
}
.cham-highlight > span { display: inline-block; transform: skewX(12deg); }

/* ================= HEADER (two-tier: gray top strip + white main bar) ================= */

.cham-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 99999;
}

/* --- thin gray top strip --- */
.cham-topbar {
    background: var(--cham-dark);
    font-size: 12.5px;
}
.cham-topbar-inner {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: nowrap;
    padding: 4px 0;
    min-height: 36px;
}
.cham-topbar-left { display: flex; align-items: center; flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; }
.cham-topbar-search {
    flex: 0 1 260px;
    min-width: 100px;
    display: flex; justify-content: center;
    position: relative;
    margin: 0 12px;
}
.cham-topbar-left a {
    color: #cfcfcf; text-decoration: none; margin-right: 24px; white-space: nowrap;
}
.cham-topbar-left a:hover { color: #fff; }
.cham-topbar-left i { color: var(--cham-orange); margin-right: 7px; }
.cham-topbar-right { display: flex; align-items: center; flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; }
.cham-topbar-social a {
    color: #cfcfcf; margin-left: 15px; font-size: 13px; text-decoration: none;
}
.cham-topbar-social a:hover { color: var(--cham-orange); }

/* Request a Demo button in the gray top strip */
.cham-demo-btn {
    display: inline-block;
    margin-left: 22px;
    background: var(--cham-orange);
    color: #fff;
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
    padding: 7px 16px; border-radius: 3px;
    text-decoration: none;
    transition: background .25s ease;
}
.cham-demo-btn:hover { background: var(--cham-orange-dark); color: #fff; }

/* --- white main bar --- */
.cham-mainbar { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.06); position: relative; }
.cham-navbar { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; }
.cham-brand { padding: 0; flex: 0 0 auto; }
.cham-brand img { height: 44px; width: auto; }

/* primary nav (right) */
.cham-mainnav {
    display: flex; flex-direction: row; align-items: center;
    margin: 0; padding: 0; list-style: none;
}
/* initial hidden state (replaces inline style="display:none"; CSP-safe).
   Script in Site.Master removes this class once the nav JS has initialized. */
.cham-nav-init { display: none; }

/* embedded form/content iframes (replaces inline style="border:0;display:block") */
.cham-embed-frame { border: 0; display: block; }
.cham-mainnav > li { position: relative; }
/* use .navbar-nav.cham-mainnav to out-specify the vendor .navbar-nav > li > a rule */
.navbar-nav.cham-mainnav > li > a {
    color: var(--cham-dark);
    font-weight: 600; font-size: 14px;
    padding: 14px 15px;
    display: inline-flex; align-items: center;
    text-decoration: none;
    text-transform: none;
}
.navbar-nav.cham-mainnav > li > a:hover { color: var(--cham-orange); }

/* dropdown caret: CSS border-triangle (rotated square), vertically centered beside the word.
   align-items:center on the flex anchor centers the box; no pixel nudge needed. */
.navbar-nav.cham-mainnav > li.has-sub > a::after {
    content: "";
    flex: none;
    width: 7px;
    height: 7px;
    margin-left: 7px;
    border-color: transparent var(--cham-dark) var(--cham-dark) transparent;
    border-style: solid;
    border-width: 0 1px 1px 0;
    transform: rotate(45deg);
    /* pull up by a quarter of the box so the downward tip lands on the optical center */
    position: relative;
    top: -2px;
    transition: border 0.3s ease 0s;
}
.navbar-nav.cham-mainnav > li.has-sub > a:hover::after {
    border-color: transparent var(--cham-orange) var(--cham-orange) transparent;
}

/* dropdown submenus (CSS hover only; override vendor nav-menu.js inline display) */
.cham-mainnav li ul {
    position: absolute; top: 100%; left: 0; min-width: 210px;
    background: #fff; list-style: none; margin: 0; padding: 8px 0;
    box-shadow: 0 6px 18px rgba(0,0,0,.15);
    display: none !important; z-index: 1100;
}
.cham-mainnav li:hover > ul { display: block !important; }
/* hide the stray toggle spans vendor nav-menu.js injects (desktop) */
.cham-mainnav .submenu-button,
.cham-mainnav .submenu-button::before,
.cham-mainnav .submenu-button::after { display: none !important; }
.cham-mainnav li ul li a {
    display: block; padding: 9px 20px; color: var(--cham-dark);
    font-size: 13px; font-weight: 500; text-decoration: none;
}
    .cham-mainnav li ul li a:hover {
        color: var(--cham-orange);
        background: var(--cham-green);
    }

/* ---- Site search box (gray top strip) ---- */
.cham-search-form { display: flex; align-items: center; margin: 0; }
.cham-search-input {
    height: 28px; width: 180px; max-width: 100%;
    border: 1px solid #5a5b5c; border-right: 0;
    border-radius: 3px 0 0 3px;
    background: #fff; color: #333;
    font-size: 13px; padding: 0 8px; margin: 0;
}
.cham-search-input:focus { outline: none; border-color: var(--cham-orange); }
.cham-search-submit {
    height: 28px; padding: 0 12px; margin: 0; cursor: pointer;
    border: 1px solid var(--cham-orange); border-radius: 0 3px 3px 0;
    background: var(--cham-orange); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
}
.cham-search-submit:hover { background: var(--cham-orange-dark); border-color: var(--cham-orange-dark); }

/* ---- Search results overlay (header) ---- */
.cham-searchov {
    position: fixed; inset: 0; z-index: 100002;
    background: rgba(0,0,0,.5);
    display: none; align-items: flex-start; justify-content: center;
    padding: 6vh 16px;
}
.cham-searchov.open { display: flex; }
/* Panel is a fixed-height flex column: the close button stays pinned at the top
   while ONLY the results body scrolls, so the exit control is always reachable. */
.cham-searchov-panel {
    position: relative;
    display: flex; flex-direction: column;
    width: 100%; max-width: 820px; max-height: 80vh; overflow: hidden;
    background: #fff; border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0,0,0,.3);
}
.cham-searchov-close {
    position: absolute; top: 10px; right: 12px; z-index: 2;
    width: 36px; height: 36px; border-radius: 50%;
    background: #fff; border: 1px solid #eee; color: #888;
    font-size: 26px; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.cham-searchov-close:hover { color: var(--cham-orange); border-color: var(--cham-orange); }
/* Only this scrolls; top padding leaves room for the pinned close button. */
.cham-searchov-body {
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    padding: 28px 32px;
}
.cham-searchov-loading { color: #888; font-size: 15px; padding: 20px 0; }

/* ---- Search results list (shared: overlay + results page) ---- */
.cham-search-meta { color: #777; font-size: 14px; }
.cham-search-list { list-style: none; margin: 0; padding: 0; }
.cham-search-item {
    display: flex; align-items: flex-start; gap: 16px;
    padding: 16px 0; border-bottom: 1px solid #eee;
}
.cham-search-item:last-child { border-bottom: 0; }
/* result thumbnail (image or icon fallback) */
.cham-search-thumb {
    flex: 0 0 auto; display: block;
    width: 84px; height: 64px; border-radius: 6px; overflow: hidden;
    background: #f3f3f3; text-decoration: none;
}
.cham-search-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cham-search-thumb-icon {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: #bdbdbd; font-size: 24px;
}
.cham-search-body { flex: 1 1 auto; min-width: 0; }
.cham-search-result-title {
    font-size: 17px; font-weight: 700; color: var(--cham-orange); text-decoration: none;
}
.cham-search-result-title:hover { color: var(--cham-orange-dark); text-decoration: underline; }
.cham-search-result-type {
    display: inline-block; margin-left: 10px;
    font-size: 10px; text-transform: uppercase; letter-spacing: .5px; font-weight: 700;
    color: #fff; background: var(--cham-green); border-radius: 3px; padding: 2px 7px; vertical-align: middle;
}
.cham-search-result-snippet { margin: 6px 0 4px; font-size: 14px; line-height: 1.55; color: #555; }
.cham-search-result-url { font-size: 12px; color: #8a8a8a; }

/* ---- Search results page form ---- */
.cham-search-page-form { max-width: 600px; }
.cham-search-page-box { display: flex; }
.cham-search-page-input {
    flex: 1 1 auto; height: 44px; border: 1px solid #ccc; border-right: 0;
    border-radius: 4px 0 0 4px; padding: 0 14px; font-size: 15px;
}
.cham-search-page-input:focus { outline: none; border-color: var(--cham-orange); }
.cham-search-page-btn {
    height: 44px; padding: 0 20px; cursor: pointer;
    border: 1px solid var(--cham-orange); border-radius: 0 4px 4px 0;
    background: var(--cham-orange); color: #fff; font-size: 16px;
}
.cham-search-page-btn:hover { background: var(--cham-orange-dark); }

/* ---- Compressed-desktop breakpoint: catches 125 % scaling on 1920×1080
        (effective CSS viewport ≈ 1350–1536 px) and similarly sized screens ---- */
@media (max-width: 1350px) {
    /* Tighten nav link padding so items fit in the narrower available space */
    .navbar-nav.cham-mainnav > li > a {
        padding: 14px 10px;
        font-size: 13px;
    }
    /* Let the search box shrink further */
    .cham-topbar-search { flex-basis: 180px; }
    .cham-search-input  { width: 140px; }
    /* Trim the demo button slightly */
    .cham-demo-btn { padding: 7px 12px; margin-left: 14px; }
    /* Reduce social icon spacing */
    .cham-topbar-social a { margin-left: 10px; }
    /* Ease card right padding so heading text has room */
    .cham-banner-card    { padding: 36px 70px 90px 36px; }
    .cham-banner-heading { font-size: 36px; }
    .cham-banner-heading .cham-highlight { font-size: 30px; }
}

@media (max-width: 991px) {
    .cham-topbar-left a { margin-right: 14px; }
    .cham-navbar { flex-wrap: wrap; }
    .cham-search-input { width: 130px; }

    /* replace vendor CSS pseudo-element hamburger with explicit FA icons */
    .cham-header .navbar-toggler::before,
    .cham-header .navbar-toggler::after { display: none !important; content: none !important; }
    .cham-header .navbar-toggler {
        display: inline-flex; align-items: center; justify-content: center;
        font-size: 20px; color: #fff;
    }
    .cham-header .navbar-toggler .cham-toggle-close { display: none; }
    .cham-header .navbar-toggler.menu-opened .cham-toggle-open { display: none; }
    .cham-header .navbar-toggler.menu-opened .cham-toggle-close { display: inline-block; }

    /* Mobile nav: panel that drops from the bottom of .cham-mainbar and overlays
       page content. .cham-mainbar has position:relative so top:100% anchors here. */
    .cham-mainnav {
        display: none;
        position: absolute !important;
        top: 100%;
        left: auto;
        right: 0;
        width: 65%;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background: #fff;
        z-index: 100000;
        box-shadow: -4px 8px 24px rgba(0,0,0,.18);
        padding: 0;
    }

    /* Show the +/- submenu-button taps on mobile (hidden globally for desktop hover nav) */
    .cham-mainnav .submenu-button,
    .cham-mainnav .submenu-button::before,
    .cham-mainnav .submenu-button::after { display: block !important; }

    /* Disable CSS-hover dropdowns on touch devices */
    .cham-mainnav li:hover > ul { display: none !important; }

    /* Submenus expand INLINE on mobile (not absolute-positioned over siblings).
       This keeps every nav item visible and lets the list stay scrollable. */
    .cham-mainnav li ul {
        position: static !important;
        top: auto; left: auto;
        box-shadow: none !important;
        min-width: 0;
        background: #f5f5f5;
        border-top: 1px solid #e8e8e8;
        padding: 4px 0 4px 18px;
        z-index: auto;
    }

    /* Show a nested ul when nav-menu.js adds the .open class to it */
    .cham-mainnav li ul.open { display: block !important; }
}

@media (max-width: 767px) {
    /* hide topbar search and social icons — keep only phone number + demo button */
    .cham-topbar-search,
    .cham-topbar-social { display: none; }
    /* hide email link, keep phone only */
    .cham-topbar-left a + a { display: none; }
}


/* ================= HOME (handout) ================= */

/* ---- Hero banner (home-10 style: rotating images right, brand card left) ---- */
.cham-banner-area {
    position: relative;
    height: clamp(480px, 45vh, 640px);
    overflow: hidden;
    background: #fff;
}

/* rotating image area, right 2/3, fades into the gray card on the left */
.cham-banner-right {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 78.666%;
    z-index: 1;
}
.cham-banner-slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1.2s ease-in-out;
}
.cham-banner-slide.is-active { opacity: 1; }

/* soft feathered white fade on the left (and a touch top/bottom) of the image */
.cham-banner-right:before {
    content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background:
        linear-gradient(90deg, #fff 0%, rgba(255,255,255,.85) 10%, rgba(255,255,255,0) 40%),
        linear-gradient(180deg, rgba(255,255,255,.5) 0%, rgba(255,255,255,0) 14%),
        linear-gradient(0deg, rgba(255,255,255,.5) 0%, rgba(255,255,255,0) 14%);
}

/* 75% badge, top-right of the image area */
.cham-banner-badge {
    position: absolute; top: 30px; right: 50px; z-index: 3;
    width: 160px; height: 160px; border-radius: 50%;
    background: rgba(52,53,54,.9);
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.cham-banner-badge-num { font-size: 48px; font-weight: 800; color: var(--cham-orange); line-height: 1; }
.cham-banner-badge-num span { font-size: 25px; }
.cham-banner-badge-label { color: #fff; font-size: 13px; margin-top: 6px; }

/* gray card flush to the far-left edge, ~1/3 of background, full height.
   Right edge fades to transparent so it dissolves into the image (no hard edge). */
.cham-banner-card {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 4;
    width: 40%;
    padding: 40px 110px 90px 48px;
    background: linear-gradient(90deg, rgba(52,53,54,.95) 0%, rgba(52,53,54,0.75) 53%, rgba(52,53,54,0) 100%);
    border-left: 8px solid var(--cham-orange);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.cham-banner-heading {
    color: #fff;
    font-size: 40px; line-height: 1.1; font-weight: 800;
    margin: 0 0 20px;
}
/* stack "Sells Products" pill on its own line under "Visualization" */
.cham-banner-heading .cham-highlight {
    display: table; margin-top: 10px; font-size: 34px;
}
.cham-banner-copy { color: #fff; font-size: 15px; line-height: 1.6; margin: 0; }

/* bottom orange + white wave */
.cham-banner-wave {
    position: absolute; left: 0; right: 0; bottom: -1px; z-index: 5;
    width: 100%; height: 100px; pointer-events: none;
}

/* "Our Technology" play-button link (React style) */
.cham-videolink {
    display: inline-flex; align-items: center;
    font-weight: 600; font-size: 15px; color: var(--cham-dark);
    text-decoration: none; vertical-align: middle;
}
.cham-videolink:hover { color: var(--cham-orange); }
.cham-videolink-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 50%;
    border: 2px solid #d8d8d8; color: var(--cham-dark);
    margin-right: 12px; font-size: 13px;
    transition: all .25s ease;
}
.cham-videolink:hover .cham-videolink-icon {
    border-color: var(--cham-orange); color: var(--cham-orange);
}

/* light variant for the play-link on dark backgrounds (hero card) */
.cham-videolink-light { color: #fff; }
.cham-videolink-light .cham-videolink-icon { border-color: rgba(255,255,255,.6); color: #fff; }
.cham-videolink-light:hover { color: var(--cham-orange); }
.cham-videolink-light:hover .cham-videolink-icon { border-color: var(--cham-orange); color: var(--cham-orange); }

/* hero card action buttons: side by side on one line */
.cham-banner-actions { margin-top: 5px; display: flex; align-items: center; flex-wrap: nowrap; }
.cham-banner-actions .butn { flex: 0 0 auto; margin-bottom: 0; }
.cham-banner-actions .cham-videolink { flex: 0 0 auto; white-space: nowrap; }

/* 1025 – 1280 px: covers 1280×800 and similar small-desktop resolutions */
@media (max-width: 1280px) {
    .cham-banner-area    { height: clamp(350px, 45vh, 400px); }
    .cham-banner-card    { width: 45%; padding: 25px 25px 25px 25px; }
    .cham-banner-heading { font-size: 32px; }
    .cham-banner-heading .cham-highlight { font-size: 26px; }
    .cham-banner-copy    { font-size: 14px; }
    .cham-banner-badge   { width: 120px; height: 120px; top: 18px; right: 18px; }
    .cham-banner-badge-num { font-size: 34px; }
}

/* 992 – 1024 px: covers 1024×768 — card gets more width, font drops further */
@media (max-width: 1024px) {
    .cham-banner-area    { height: clamp(440px, 45vh, 520px); }
    .cham-banner-card    { width: 50%; padding: 25px 25px 25px 25px; }
    .cham-banner-heading { font-size: 28px; }
    .cham-banner-heading .cham-highlight { font-size: 23px; }
    .cham-banner-copy    { font-size: 13px; }
    .cham-banner-badge   { display: none; } /* badge overlaps text at this width */
}

@media (max-width: 991px) {
    /* Widen card to ~78% so copy text wraps in 3-4 lines instead of 6-7.
       Taller banner gives room for content + wave clearance. */
    .cham-banner-area { height: 365px; }
    .cham-banner-card { width: 78%; padding: 24px 28px 80px 28px; }
    .cham-banner-heading { font-size: 30px; }
    .cham-banner-heading .cham-highlight { font-size: 25px; }
    .cham-banner-copy { font-size: 14px; }
    .cham-banner-badge { display: none; }
}
@media (max-width: 767px) {
    /* Overlay text on top of the image — height is driven by content on small screens */
    .cham-banner-area { min-height: 365px; height: auto; padding-top: 0; }
    .cham-banner-right { position: absolute; top: 0; left: 0; width: 100%; height: 100%; min-height: 100%; }
    .cham-banner-card {
        position: relative; width: 100%;
        background: rgba(52,53,54,.78);
        border-radius: 0; border-left: 4px solid var(--cham-orange);
        -webkit-clip-path: none; clip-path: none;
        padding: 32px 24px 55px; margin-top: 0;
        display: flex; flex-direction: column; justify-content: flex-start;
        z-index: 4;
    }
    .cham-banner-copy { max-width: none; }
    .cham-banner-actions { flex-wrap: wrap; gap: 8px; margin-top: 14px; }
    .cham-banner-heading { font-size: 24px; }
    .cham-banner-heading .cham-highlight { font-size: 20px; }
    .cham-banner-badge { width: 96px; height: 96px; top: 14px; right: 14px; }
    .cham-banner-badge-num { font-size: 28px; }
    .cham-banner-badge-label { font-size: 11px; }
}

/* Very small phones (≤ 480px, e.g. iPhone SE 375px) — tighten further */
@media (max-width: 480px) {
    .cham-banner-card { padding: 24px 18px 80px; }
    .cham-banner-heading { font-size: 22px; }
    .cham-banner-heading .cham-highlight { font-size: 18px; }
    .cham-banner-copy { font-size: 13px; }
    .cham-banner-actions .butn { font-size: 12px; padding: 10px 18px; }
}

/* ---- Short-viewport: 125 % scaling on 1920×1080 gives ~864 px effective height.
        Compress the banner so both the hero AND the results section fit on one screen.
        Only targets desktop (min-width: 992px) — mobile has its own layout. ---- */
@media (max-height: 900px) and (min-width: 992px) {
    .cham-banner-area    { height: 400px; }
    .cham-banner-card    { top: 0; padding: 22px 110px 65px 48px; }
    .cham-banner-heading { font-size: 34px; }
    .cham-banner-heading .cham-highlight { font-size: 28px; }
    .cham-banner-copy    { font-size: 14px; }
    .cham-banner-badge   { width: 110px; height: 110px; top: 16px; right: 30px; }
    .cham-banner-badge-num { font-size: 36px; }
}

/* ---- "Sells" feature cards (row 1) ---- */
.cham-feature {
    display: flex; align-items: stretch;
    border: 1px solid #e6e6e6; border-radius: 8px; overflow: hidden; background: #fff;
    min-height: 150px; height: 100%;
    box-shadow: 0 3px 12px rgba(0,0,0,.05);
    transition: box-shadow .25s ease, transform .25s ease;
}
.cham-feature:hover { box-shadow: 0 10px 24px rgba(0,0,0,.12); transform: translateY(-3px); }
.cham-feature-text {
    flex: 1 1 55%; padding: 20px 22px;
    border-top: 4px solid var(--cham-green);
}
.cham-feature-text h4 { font-size: 18px; margin: 0 0 10px; color: var(--cham-dark); }
.cham-feature-text p { font-size: 13.5px; color: #777; line-height: 1.55; margin: 0; }
.cham-feature-img { flex: 1 1 45%; background-size: cover; background-position: center; min-height: 150px; }

/* ---- Technology option cards (row 2) ---- */
.cham-tech {
    border: 1px solid #e6e6e6; border-radius: 8px; overflow: hidden; background: #fff; height: 100%;
    box-shadow: 0 3px 12px rgba(0,0,0,.05);
    transition: box-shadow .25s ease, transform .25s ease;
}
.cham-tech:hover { box-shadow: 0 10px 24px rgba(0,0,0,.12); transform: translateY(-3px); }
.cham-tech-img { height: 160px; background-size: cover; background-position: center; }
.cham-tech-text { padding: 18px 22px 22px; border-top: 4px solid var(--cham-green); }
.cham-tech-text h4 { font-size: 18px; margin: 0 0 12px; color: var(--cham-dark); }
.cham-tech-text ul { margin: 0; padding-left: 18px; }
.cham-tech-text ul li { font-size: 13.5px; color: #777; line-height: 1.8; }

/* ---- Results stat circles ---- */
.cham-stat-circle {
    width: 130px; height: 130px; border-radius: 50%;
    border: 8px solid var(--cham-orange);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto;
}
.cham-stat-circle span { font-size: 30px; font-weight: 800; color: var(--cham-dark); }
.cham-stat-circle-lg span { font-size: 34px; color: var(--cham-orange); }

/* ---- Before/After comparison tabs (twentytwenty) ---- */
.cham-tt-tabs {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 10px; margin-bottom: 30px;
}
.cham-tt-tab {
    display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
    border: 1px solid #ddd; background: #fff; cursor: pointer;
    padding: 12px 20px; border-radius: 6px; min-width: 92px;
    color: #666; font-size: 13px; font-weight: 600;
    transition: all .2s ease;
}
.cham-tt-tab i { font-size: 20px; }
.cham-tt-tab:hover { border-color: var(--cham-orange); color: var(--cham-orange); }
.cham-tt-tab.is-active { background: var(--cham-orange); border-color: var(--cham-orange); color: #fff; }

.cham-tt-stage { max-width: 860px; margin: 0 auto; }
.cham-tt-panel { display: none; }
.cham-tt-panel.is-active { display: block; }
.cham-tt-panel .twentytwenty-container { border-radius: 6px; overflow: hidden; }

/* ---- Lifestyle Image Generator showcase (mockup style, white backgrounds) ---- */
.cham-lig { background: #fff; }
.cham-lig-alt { background: #f7f7f7; }             /* subtle light-gray to separate sections */
.cham-lig h2 { color: #2f2f2f; }
.cham-lig .cham-lig-sub { color: #6a6a6a; font-size: 15px; line-height: 1.6; }
.cham-lig-rule { width: 60px; height: 3px; background: var(--cham-orange); margin: 0 0 18px; }
.cham-render-img { width: 100%; height: auto; display: block; border-radius: 2px; box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.cham-script {
    font-size: 15px; font-weight: 600; font-style: italic; color: #8a8a8a;
    display: inline-block; line-height: 1.2; letter-spacing: .5px;
}

/* ---- Render variation set: 3 labeled options side by side ---- */
.cham-renderset { display: flex; gap: 14px; flex-wrap: wrap; }
.cham-renderset .cham-render-opt {
    flex: 1 1 0; min-width: 180px;
    background: #fff; border-radius: 6px; overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,.08);
}
.cham-render-opt img { display: block; width: 100%; height: auto; }
.cham-render-opt .cham-render-label {
    display: block; text-align: center;
    font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
    color: var(--cham-dark); padding: 10px 8px;
}

/* ---- Crossfade image stack at NATURAL size (no crop, no upscale, no pixelation) ----
   The first image sits in normal flow and sets the container height; the rest
   overlay it absolutely and crossfade. All source images share the same dimensions. */
.cham-fade {
    position: relative;
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
}
.cham-fade img {
    display: block;
    width: 100%;
    height: auto;              /* keep native aspect ratio */
}
.cham-fade img:not(:first-child) {
    position: absolute; top: 0; left: 0;
}
.cham-fade img {
    opacity: 0; transition: opacity 1s ease-in-out;
}
.cham-fade img.is-active { opacity: 1; }

/* ---- Option cards (image above text) ---- */
.cham-opt-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 3px 12px rgba(0,0,0,.06);
    transition: transform .25s ease, box-shadow .25s ease;
}
.cham-opt-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.cham-opt-img {
    display: block; height: 150px;
    background-size: cover; background-position: center top;
    border-bottom: 3px solid var(--cham-green);
}
.cham-opt-body { padding: 16px 18px 20px; text-align: center; }
.cham-opt-body h4 { font-size: 16px; margin: 0 0 8px; color: var(--cham-dark); }
.cham-opt-body p {
    font-size: 13px;
    line-height: 1.55;
    color: #777;
    margin: 0;
    /* avoid a lone word on the last line in supporting browsers */
    text-wrap: pretty;
    /* reserve 4 lines of space so cards look uniform; never truncate */
    min-height: calc(1.55em * 4);
}

/* ---- Tools tabbed grid ---- */
.cham-tools { padding: 70px 0; }
.cham-tools-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.cham-tools-tabs { display: flex; flex-wrap: wrap; background: #d0cfcd40; border-radius: 5px; padding: 6px; margin-top: 10px; }
.cham-tools-tab {
    border: none; background: transparent; cursor: pointer;
    padding: 10px 15px; margin: 2px; border-radius: 4px;
    font-size: 14px; font-weight: 600; color: #666; transition: all .25s ease;
}
.cham-tools-tab:hover { background: #e2e2e2; color: #333; }
.cham-tools-tab.is-active { background: var(--cham-orange); color: #fff; }

.cham-tools-panel { display: none; margin-top: 30px; }
.cham-tools-panel.is-active { display: block; }

.cham-tool-card {
    display: block; height: 100%;
    background: #d0cfcd40; border-radius: 6px; overflow: hidden;
    text-decoration: none; color: inherit;
    transition: transform .25s ease, box-shadow .25s ease;
}
.cham-tool-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,.12); color: inherit; }
.cham-tool-thumb { display: block; height: 200px; background-size: cover; background-position: center top; position: relative; }
/* play badge on video tool cards */
.cham-tool-play {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 54px; height: 54px; border-radius: 50%;
    background: rgba(239,125,0,.9); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; padding-left: 3px;
    transition: transform .25s ease, background .25s ease;
}
.cham-tool-card:hover .cham-tool-play { transform: translate(-50%, -50%) scale(1.1); background: var(--cham-orange); }

/* video overlay / lightbox */
.cham-video-overlay {
    position: fixed; inset: 0; z-index: 100005;
    background: rgba(0,0,0,.85);
    display: none; align-items: center; justify-content: center;
}
.cham-video-overlay.open { display: flex; }
.cham-video-stage { width: 90%; max-width: 1000px; }
.cham-video-stage video { width: 100%; max-height: 80vh; border-radius: 6px; background: #000; display: block; }
.cham-video-close {
    position: absolute; top: 22px; right: 30px;
    background: transparent; border: none; color: #fff;
    font-size: 42px; line-height: 1; cursor: pointer;
}
.cham-video-close:hover { color: var(--cham-orange); }
.cham-tool-body { display: block; padding: 16px 18px 20px; }
.cham-tool-title { display: block; font-size: 16px; font-weight: 700; color: var(--cham-dark); margin-bottom: 8px; }
.cham-tool-card:hover .cham-tool-title { color: var(--cham-orange); }
.cham-tool-desc {
    display: block; font-size: 13px; line-height: 1.55; color: #777;
    overflow: hidden; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical;
}

/* ---- Taller responsive iframe for live demos (5:3) ---- */
.cham-iframe-5x3 {
    position: relative;
    width: 100%;
    padding-bottom: 60%;
    height: 0;
    overflow: hidden;
}
.cham-iframe-5x3 iframe {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%; border: 0;
}

/* ---- Live 3D/Unity viewer ---- */
.cham-viewer {
    position: relative;
    width: 100%;
    background: #fff;
    overflow: hidden;
}
.cham-viewer iframe {
    position: absolute; inset: 0;
    width: 100%; height: 100%; border: 0; display: block;
}

/* full-bleed: span the full viewport width and fit the whole scene in view (no scroll) */
.cham-viewer-fullbleed {
    width: 100vw;
    position: relative;
    left: 50%; right: 50%;
    margin-left: -50vw; margin-right: -50vw;
    /* 16:9 of full viewport width, but never taller than the viewport minus the header */
    height: 56.25vw;
    max-height: calc(100vh - 120px);
}
.cham-viewer-loader {
    position: absolute; inset: 0; z-index: 2;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: #fff; color: var(--cham-dark);
    transition: opacity .4s ease;
}
.cham-viewer.loaded .cham-viewer-loader { opacity: 0; pointer-events: none; }
.cham-viewer-spinner {
    width: 54px; height: 54px; border-radius: 50%;
    border: 5px solid rgba(0,0,0,.1);
    border-top-color: var(--cham-orange);
    animation: chamSpin 0.9s linear infinite;
}
.cham-viewer-loadtext { margin-top: 16px; font-size: 14px; letter-spacing: .5px; color: #777; }
@keyframes chamSpin { to { transform: rotate(360deg); } }

/* ---- Blockquote (About) ---- */
.cham-quote {
    border-left: 4px solid var(--cham-orange);
    padding: 6px 0 6px 20px;
    margin: 0 0 10px;
    font-size: 14.5px; line-height: 1.7; color: #555; font-style: italic;
}

/* ---- Check list (orange circle-check icons) ---- */
.cham-check-list { list-style: none; padding: 0; margin: 0; }
.cham-check-list li {
    position: relative;
    padding-left: 42px;
    margin-bottom: 18px;
    font-size: 15px; line-height: 1.6; color: #555;
}
.cham-check-list li:before {
    content: "\f058"; /* Font Awesome check-circle */
    font-family: "Font Awesome 5 Free"; font-weight: 900;
    position: absolute; left: 0; top: 1px;
    width: 26px; height: 26px;
    color: var(--cham-orange); font-size: 20px;
}

/* ---- CMS rich-text lists (Trix output; theme resets list-style globally) ----
   HtmlSanitizer.StyleLists() adds these classes to bare <ul>/<ol> at render time. */
.cham-rich-ul, .cham-rich-ol { margin: 0 0 16px; padding-left: 26px; }
.cham-rich-ul { list-style: disc outside; }
.cham-rich-ol { list-style: decimal outside; }
.cham-rich-ul li, .cham-rich-ol li { display: list-item; list-style: inherit; margin-bottom: 6px; }
.cham-rich-ul ul, .cham-rich-ol ul { list-style: circle outside; }
.cham-rich-ul ul ul, .cham-rich-ol ul ul { list-style: square outside; }
.cham-rich-ul li::marker, .cham-rich-ol li::marker { color: var(--cham-orange); }

/* ---- About list ---- */
.cham-about-list { list-style: none; padding: 0; margin: 0 0 18px; }
.cham-about-list li {
    position: relative; padding-left: 24px; margin-bottom: 8px; font-size: 15px; color: #555;
}
.cham-about-list li:before {
    content: "\2022"; position: absolute; left: 6px; color: var(--cham-green); font-weight: 700; font-size: 18px; line-height: 1;
}

/* ---- Highlights list (orange checkmarks, matches 2015 photoupload) ---- */
.cham-highlights-heading {
    text-transform: uppercase; letter-spacing: 1px;
    font-size: 22px; font-weight: 800; color: var(--cham-dark);
    margin: 0 0 18px;
}
.cham-check-list { list-style: none; padding: 0; margin: 0; }
.cham-check-list li {
    position: relative; padding: 0 0 14px 30px;
    font-size: 15px; color: #555;
    border-bottom: 1px solid #e6e6e6; margin-bottom: 14px;
}
.cham-check-list li:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.cham-check-list li > i {
    position: absolute; left: 0; top: 2px;
    color: var(--cham-orange); font-size: 14px;
}

/* "Did you know" circular stat badge */
.cham-didyouknow {
    width: 150px; height: 150px; border-radius: 50%;
    background: var(--cham-dark); color: #fff;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 10px; margin: 0 auto;
}
.cham-didyouknow .dyk-top { font-size: 12px; font-weight: 700; }
.cham-didyouknow .dyk-num { font-size: 40px; font-weight: 800; color: var(--cham-orange); line-height: 1; margin: 2px 0; }
.cham-didyouknow .dyk-sub { font-size: 11px; line-height: 1.3; }
.cham-didyouknow .dyk-sub b { color: #fff; }

@media (max-width: 575px) {
    .cham-feature { flex-direction: column; }
    .cham-feature-img { min-height: 150px; width: 100%; }
}

/* ---- App store badges (AR & Mobile page) ---- */
.cham-store-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.cham-store-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    min-width: 180px;
    background: #232323;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease;
}
.cham-store-badge:hover {
    background: var(--cham-orange);
    color: #fff;
    transform: translateY(-2px);
}
.cham-store-badge i {
    font-size: 30px;
    line-height: 1;
}
.cham-store-badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-align: left;
}
.cham-store-badge-text small {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .4px;
    opacity: .85;
}
.cham-store-badge-text strong {
    font-size: 17px;
    font-weight: 700;
}

/* ---- About: Our Team photo grid ---- */
.cham-team-photo {
    display: block;
    width: 100%;
    height: 240px;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    box-shadow: 0 3px 12px rgba(0,0,0,.08);
    transition: transform .25s ease, box-shadow .25s ease;
}
.cham-team-photo:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,.14); }

/* ---- About: Customer testimonials ("Client Words" rotating banner) ---- */
.cham-testimonials {
    background: var(--cham-dark);
    color: #fff;
    padding: 70px 0;
}
.cham-testimonials-eyebrow { color: var(--cham-green); }
.cham-testimonials-heading { color: #fff; }
.cham-testimonials-stage {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    /* reserve height so rotating quotes of different length don't shift the layout */
    min-height: 220px;
}
.cham-testimonial {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.cham-testimonial.is-active { opacity: 1; visibility: visible; }
.cham-testimonial-icon {
    font-size: 30px;
    color: var(--cham-green);
    margin-bottom: 18px;
}
.cham-testimonial-quote {
    font-size: 17px;
    line-height: 1.7;
    font-style: italic;
    margin: 0 0 22px;
    color: #e9e9e9;
    max-width: 85%;
}
.cham-testimonial-info { line-height: 1.4; }
.cham-testimonial-name {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #fff;
}
.cham-testimonial-role {
    display: block;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--cham-green);
    margin-top: 4px;
}

@media (max-width: 575px) {
    .cham-testimonials-stage { min-height: 280px; }
    .cham-testimonial-quote { font-size: 16px; max-width: 95%; }
}

/* =========================================================================
   Contact-success (thank-you) page
   ========================================================================= */
.cham-thankyou-hero {
    background: #e2e2e2;           /* the illustration's "THANK YOU" letters are white on transparent */
    padding: 20px 0 30px;
    text-align: center;
}
.cham-thankyou-art { display: block; width: 100%; max-width: 1100px; height: auto; margin: 0 auto; }
.cham-thankyou-title {
    color: var(--cham-green); font-size: 26px; font-weight: 500; margin: 0 0 10px;
}
.cham-thankyou-sub { font-size: 15px; color: #333; margin: 0; }

/* Stats band: 2015 blueprint background faded at the edges */
.cham-thankyou-stats {
    background: #fff url("../img/cham/thankyou/whychameleonsmall.jpg") center / cover no-repeat;
    box-shadow: inset 0 0 75px 75px #fff;
    padding: 50px 0;
}
.cham-thankyou-stats-title { font-size: 24px; line-height: 1.25; font-weight: 400; color: #404142; margin: 0 0 16px; }
.cham-thankyou-demo {
    display: inline-block; background: #88bd58; color: #fff; font-size: 13px; padding: 5px 12px;
    text-decoration: none; border-radius: 2px;
}
.cham-thankyou-demo:hover { background: #76a64a; color: #fff; }
.cham-thankyou-figure { height: 110px; display: flex; align-items: center; justify-content: center; }
.cham-ring { width: 80px; height: 80px; }
.cham-ring circle { fill: none; stroke-width: 10; }
.cham-ring-bg { stroke: #88db58; opacity: .25; }
.cham-ring-fg { stroke: #88db58; }
.cham-ring text { font-size: 15px; fill: #222; }
.cham-thankyou-big { font-size: 56px; line-height: 1; font-weight: 400; color: #ff7500; }
.cham-thankyou-camera { max-width: 120px; height: auto; }
.cham-thankyou-caption { font-size: 14px; line-height: 1.4; color: #555; margin: 8px 0 0; }
.cham-thankyou-caption strong { color: #333; }
/* Site-wide light-gray band (kept from the original rule; other pages rely on it). */
section.bg-light-gray { background: #e4e4e4; }

/* Social row */
.cham-thankyou-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin: 0 8px;
    border-radius: 50%;
    background: var(--cham-orange);
    color: #fff;
    font-size: 22px;
    transition: background .2s ease;
}

.cham-thankyou-social a:hover { background: var(--cham-orange-dark); }

/* ===== Cookie consent — shared button style ===== */
.cham-cbtn {
    display: inline-block;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
    white-space: nowrap;
}
.cham-cbtn-primary { background: var(--cham-orange); color: #fff; }
.cham-cbtn-primary:hover { background: var(--cham-orange-dark); color: #fff; }
.cham-cbtn-secondary { background: #555; color: #fff; }
.cham-cbtn-secondary:hover { background: #333; color: #fff; }
.cham-cbtn-outline { background: transparent; color: #e8e8e8; border: 1px solid #999; }
.cham-cbtn-outline:hover { background: #444; color: #fff; }

/* ===== Cookie consent banner (bottom bar) ===== */
.cham-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    background: #2b2b2b;
    color: #e8e8e8;
    box-shadow: 0 -2px 12px rgba(0,0,0,.35);
}
.cham-cookie-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
}
.cham-cookie-text {
    flex: 1 1 300px;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}
.cham-cookie-text a { color: var(--cham-orange); }
.cham-cookie-text a:hover { color: var(--cham-orange-dark); text-decoration: underline; }
.cham-cookie-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
@media (max-width: 576px) {
    .cham-cookie-inner { flex-direction: column; align-items: flex-start; }
}

/* ===== Cookie preference center modal ===== */
.cham-cookie-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000000;
    background: rgba(0,0,0,.6);
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.cham-cookie-modal-overlay.open { display: flex; }
.cham-cookie-noscroll { overflow: hidden; }

.cham-cookie-modal {
    background: #fff;
    border-radius: 4px;
    width: 100%;
    max-width: 620px;
    max-height: 99vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 40px rgba(0,0,0,.4);
    overflow: hidden;
}

/* header */
.cham-cookie-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 27px;
    flex-shrink: 0;
}
.cham-cookie-modal-close {
    background: none;
    border: 1px solid #aaa;
    color: #444;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    width: 36px;
    height: 36px;
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    flex-shrink: 0;
}
.cham-cookie-modal-close:hover { background: #f0f0f0; }

/* scrollable body — scroll stays inside the modal */
.cham-cookie-modal-body {
    padding: 0 24px;
    overflow-y: auto;
    flex: 1 1 auto;
}
.cham-cookie-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin: 0 0 14px;
}
.cham-cookie-modal-intro {
    font-size: 14px;
    line-height: 1.65;
    color: #444;
    margin-bottom: 20px;
}
.cham-cookie-moreinfo { color: var(--cham-orange); text-decoration: underline; }
.cham-cookie-moreinfo:hover { color: var(--cham-orange-dark); }
.cham-cookie-allowall-modal { margin-bottom: 28px; }

.cham-cookie-pref-heading {
    font-size: 17px;
    font-weight: 700;
    color: #222;
    margin: 0 0 12px;
}

/* category rows */
.cham-cookie-cat { border: 1px solid #ddd; border-radius: 3px; margin-bottom: 6px; }
.cham-cookie-cat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    cursor: pointer;
    user-select: none;
    background: #fafafa;
    border-radius: 3px;
}
.cham-cookie-cat-header:hover { background: #f3f3f3; }
.cham-cookie-cat-expand {
    font-size: 18px;
    font-weight: 700;
    color: #555;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    line-height: 1;
}
.cham-cookie-cat-name {
    flex: 1 1 auto;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}
.cham-cookie-always-active {
    font-size: 13px;
    font-weight: 700;
    color: var(--cham-green);
    flex-shrink: 0;
}
.cham-cookie-cat-body {
    display: none;
    padding: 12px 16px 14px 44px;
    border-top: 1px solid #eee;
}
.cham-cookie-cat-body.open { display: block; }
.cham-cookie-cat-body p { font-size: 13px; line-height: 1.6; color: #555; margin: 0; }

/* toggle switch */
.cham-cookie-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
}
.cham-cookie-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.cham-cookie-toggle-track {
    display: block;
    width: 44px;
    height: 24px;
    background: #bbb;
    border-radius: 12px;
    position: relative;
    transition: background .2s;
}
.cham-cookie-toggle-track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.cham-cookie-toggle input:checked + .cham-cookie-toggle-track { background: var(--cham-orange); }
.cham-cookie-toggle input:checked + .cham-cookie-toggle-track::after { transform: translateX(20px); }

/* footer buttons — pinned to bottom of modal */
.cham-cookie-modal-footer {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #e5e5e5;
    background: #fff;
    flex-shrink: 0;
}
.cham-cookie-modal-footer .cham-cbtn { flex: 1 1 0; text-align: center; }

@media (max-width: 480px) {
    .cham-cookie-modal-footer { flex-direction: column; }
    .cham-cookie-modal-body { padding: 16px; }
}

/* ===== Privacy policy page ===== */
.cham-policy-body { padding: 10px 0 60px; }
.cham-policy-body h2 {
    font-size: 22px;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 12px;
    color: var(--cham-dark);
    border-bottom: 2px solid var(--cham-orange);
    padding-bottom: 6px;
    scroll-margin-top: 130px; /* offset for fixed header (topbar ~40px + mainbar ~70px + buffer) */
}
.cham-policy-body h3 {
    font-size: 17px;
    font-weight: 700;
    margin-top: 24px;
    margin-bottom: 10px;
    color: var(--cham-dark);
    scroll-margin-top: 130px;
}
.cham-policy-body p, .cham-policy-body li { font-size: 15px; line-height: 1.7; color: #555; }
.cham-policy-body ul, .cham-policy-body ol { padding-left: 22px; margin-bottom: 16px; }
.cham-policy-body li { margin-bottom: 6px; }
.cham-policy-toc { background: #f8f8f8; border-left: 4px solid var(--cham-orange); padding: 18px 22px; border-radius: 3px; }
.cham-policy-toc ol { margin: 8px 0 0; padding-left: 20px; }
.cham-policy-toc li { margin-bottom: 4px; }
.cham-policy-toc a { color: var(--cham-green); font-size: 14px; }
.cham-policy-toc a:hover { color: var(--cham-orange); }
.cham-policy-table { font-size: 13px; }
.cham-policy-table th { font-weight: 700; font-size: 13px; }
.cham-policy-contact { font-style: normal; font-size: 15px; line-height: 1.8; color: #555; }

/* ---- Site map (/sitemap): page cards grouped by section ---- */
.cham-sm-home { display: grid; grid-template-columns: minmax(240px, 340px); margin-bottom: 34px; }
.cham-sm-section {
    font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
    color: #444; margin: 30px 0 12px;
}
.cham-sm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.cham-sm-card {
    display: flex; flex-direction: column; gap: 4px; height: 100%;
    background: #eeeeee; padding: 14px 16px 16px; text-decoration: none; color: #333;
    border-top: 3px solid transparent; transition: border-color .15s ease, background .15s ease;
}
.cham-sm-card:hover { background: #e6e6e6; border-top-color: var(--cham-orange); }
.cham-sm-title { font-size: 18px; font-weight: 800; color: #232323; line-height: 1.25; }
.cham-sm-url { font-size: 14px; color: var(--cham-orange); }
.cham-sm-desc { font-size: 13px; line-height: 1.45; color: #444; }
.cham-sm-cardwrap { display: flex; flex-direction: column; background: #eeeeee; }
.cham-sm-cardwrap .cham-sm-card { height: auto; }
.cham-sm-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 16px; }
.cham-sm-tags a {
    font-size: 11px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase;
    color: #555; background: #fff; padding: 3px 8px; border-radius: 2px; text-decoration: none;
}
.cham-sm-tags a:hover { color: #fff; background: var(--cham-orange); }

/* ---- Archived page banner (signed-in CMS users only; see Site.Master.cs RenderArchiveBanner) ---- */
.cham-archive-banner {
    position: relative; z-index: 1001;
    background: #fff4e5; color: #6b3d00; border-bottom: 2px solid var(--cham-orange);
    padding: 10px 20px; font-size: 14px; text-align: center;
}
.cham-archive-banner i { color: var(--cham-orange); margin-right: 6px; }
