/* KUINVIT R93. Edit this palette to recolor public/member pages.
   This file is loaded only by layouts.public, after the saved platform theme.
   Invitation documents and the admin/reseller workspaces own their palettes. */
html[data-color-policy="light-only"][data-theme="light"] {
    color-scheme: light;
    --bg: #f3f1ed;
    --fg: #283735;
    --card: #f7f6f2;
    --card-strong: #fcfbf8;
    --popover: #fcfbf8;
    --muted: #61706b;
    --muted-2: #61706b;
    --border: #dadfd7;
    --input: #eeefea;
    --brand-blue: #245acb;
    --brand-violet: #7049cb;
    --brand-pink: #b82f7d;
    --brand-gold: #946300;
    --primary: #3456b8;
    --primary-2: #6544c4;
    --primary-soft: #e9e8f7;
    --primary-ink: #fff;
    --sidebar: #f8f7f3;
    --success: #376748;
    --success-soft: #e6efe5;
    --danger: #a93248;
    --danger-soft: #f9e9eb;
    --warning: #865c1d;
    --surface: var(--card-strong);
    --surface-2: var(--input);
    --text: var(--fg);
    --text-muted: var(--muted);
    --accent: var(--primary);
    --navigation-background: var(--sidebar);
    --navigation-text: var(--muted);
    --navigation-active: var(--primary-soft);
    --navigation-active-text: var(--primary);
    --admin-border: var(--border);
    --admin-muted: var(--muted);
    --shadow: 0 12px 32px rgb(44 61 49 / 6%);
    --shadow-sm: 0 3px 16px rgb(44 61 49 / 4%);
}
html[data-color-policy="light-only"] :where(a, button, input, textarea, select):focus-visible {
    outline: 2px solid var(--primary); outline-offset: 3px;
}
html[data-color-policy="light-only"] :where(input, textarea)::placeholder { color: var(--muted); opacity: 1; }
html[data-color-policy="light-only"] .portal-sidebar-foot:empty { display: none; }
/* Brand accents. Status success/danger colors retain their meaning. */
html[data-color-policy="light-only"] .ui-button-primary,
html[data-color-policy="light-only"] .modern-chat-send {
    background: linear-gradient(115deg, var(--brand-blue), var(--brand-violet));
    color: var(--primary-ink);
}
html[data-color-policy="light-only"] .ui-button-secondary:hover {
    background: var(--primary-soft); border-color: color-mix(in srgb, var(--primary) 30%, var(--border));
}
html[data-color-policy="light-only"] .hero-kicker {
    background: var(--primary-soft); color: var(--primary);
}
html[data-color-policy="light-only"] .home-wrap { padding-top: 16px; }
html[data-color-policy="light-only"] .home-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(18px, 2.5vw, 36px); min-height: 0; padding-block: 4px 20px;
}
html[data-color-policy="light-only"] .home-copy { padding: 4px 0; }
html[data-color-policy="light-only"] .home-copy h1 {
    margin-top: 8px; font-size: clamp(32px, 3.8vw, 48px); line-height: 1.08; letter-spacing: -.045em;
}
html[data-color-policy="light-only"] .home-copy > p {
    margin-top: 9px; font-size: 14px; line-height: 1.55; max-width: 480px;
}
html[data-color-policy="light-only"] .hero-actions { margin-top: 14px; gap: 8px; }
html[data-color-policy="light-only"] .hero-kicker { padding: 4px 8px; font-size: 9px; }
html[data-color-policy="light-only"] .step-strip {
    margin-top: 14px; padding: 5px; gap: 5px; border-radius: 16px; box-shadow: none;
}
html[data-color-policy="light-only"] .step-strip > div {
    display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 7px;
    align-items: center; text-align: left; padding: 7px 8px;
}
html[data-color-policy="light-only"] .step-strip > div > span {
    grid-row: 1 / 3; margin: 0; width: 28px; height: 28px; border-radius: 9px;
    background: var(--primary-soft); color: var(--primary);
}
html[data-color-policy="light-only"] .step-strip > div:nth-child(2) > span { color: var(--brand-violet); }
html[data-color-policy="light-only"] .step-strip > div:nth-child(3) > span { color: var(--brand-pink); background: #f6e9f1; }
html[data-color-policy="light-only"] .step-strip strong { margin: 0; font-size: 11px; line-height: 1.3; }
html[data-color-policy="light-only"] .step-strip small { margin: 0; font-size: 9px; line-height: 1.4; }
html[data-color-policy="light-only"] .feature-section { padding-top: 22px; }
html[data-color-policy="light-only"] .feature-groups article { padding: 18px; }
html[data-color-policy="light-only"] .feature-groups li { font-size: 11px; }
html[data-color-policy="light-only"] .template-card { box-shadow: var(--shadow-sm); }

/* Transparent PNG stack. Sizes use the carousel's own width, not a specific image/template. */
html[data-color-policy="light-only"] .home-card-carousel {
    container-type: inline-size;
    --card-width: clamp(112px, 35cqw, 210px);
    --card-step: clamp(32px, 15cqw, 80px);
    --art-height: 360px;
    min-width: 0; width: 100%; padding: 0; isolation: isolate;
}
.home-card-viewport {
    position: relative; height: calc(var(--art-height) + 18px);
    overflow: hidden; overflow: clip; touch-action: pan-y pinch-zoom;
    user-select: none; -webkit-user-select: none; cursor: grab;
}
.home-design-card {
    position: absolute; left: 50%; top: 0; display: block;
    width: var(--card-width); height: var(--art-height);
    padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none;
    color: var(--fg); pointer-events: none;
    transform: translateX(calc(-50% + var(--offset) * var(--card-step) + var(--drag, 0px)));
    transition: transform .36s cubic-bezier(.22,.7,.25,1);
}
.home-design-art { display: flex; justify-content: center; align-items: flex-end; width: 100%; height: 100%; }
.home-design-art img {
    display: block; width: auto; max-width: 100%; height: 100%; object-fit: contain; object-position: center bottom;
    pointer-events: auto; filter: drop-shadow(0 9px 10px rgb(32 35 65 / 12%));
}
.home-card-carousel.is-dragging .home-design-card { transition: none; }
.home-card-carousel.is-dragging .home-card-viewport { cursor: grabbing; }
.home-card-controls { display: flex; align-items: center; justify-content: center; gap: 14px; }
.home-card-controls[hidden] { display: none; }
.home-card-arrow {
    display: grid; place-items: center; width: 42px; height: 42px;
    border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--border));
    border-radius: 50%; background: var(--primary-soft); color: var(--primary); cursor: pointer;
}
.home-card-arrow:hover { background: color-mix(in srgb, var(--primary) 15%, var(--card-strong)); }
.home-card-arrow:disabled { opacity: .45; cursor: default; }
.home-card-arrow[data-card-prev] svg { transform: rotate(180deg); }
.home-card-status { min-width: 40px; text-align: center; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.home-card-hint { text-align: center; color: var(--muted); font-size: 11px; margin: 8px 0 0; }
.home-design-empty { padding: 28px; border: 1px solid var(--border); border-radius: 24px; background: var(--primary-soft); }
.home-design-empty h2 { font-size: clamp(25px, 3vw, 38px); line-height: 1.15; letter-spacing: -.04em; }
.home-design-empty p { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
@media (max-width: 800px) {
    html[data-color-policy="light-only"] .home-wrap { padding-top: 10px; }
    html[data-color-policy="light-only"] .home-hero-grid {
        grid-template-columns: minmax(0, 1fr); gap: 14px; padding-block: 0 18px;
    }
    html[data-color-policy="light-only"] .home-copy { text-align: center; padding: 0; max-width: 640px; width: 100%; }
    html[data-color-policy="light-only"] .home-copy h1 {
        max-width: 620px; margin-inline: auto; font-size: clamp(29px, 5.4vw, 38px);
    }
    html[data-color-policy="light-only"] .home-copy > p { margin-inline: auto; font-size: 12px; max-width: 480px; }
    html[data-color-policy="light-only"] .hero-actions { justify-content: center; margin-top: 11px; }
    html[data-color-policy="light-only"] .step-strip { margin-top: 11px; }
    html[data-color-policy="light-only"] .home-card-carousel {
        max-width: 560px; margin-inline: auto; --art-height: 330px;
    }
}
@media (max-width: 420px) {
    html[data-color-policy="light-only"] .home-card-carousel { --art-height: 296px; }
    html[data-color-policy="light-only"] .home-copy h1 { max-width: 340px; }
    html[data-color-policy="light-only"] .step-strip > div { column-gap: 5px; padding: 6px 4px; grid-template-columns: 24px minmax(0, 1fr); }
    html[data-color-policy="light-only"] .step-strip > div > span { width: 24px; height: 26px; border-radius: 8px; }
    html[data-color-policy="light-only"] .step-strip small { font-size: 8px; }
    .home-card-hint { font-size: 10px; }
}
@media (max-width: 350px) {
    html[data-color-policy="light-only"] .step-strip > div { column-gap: 4px; padding-inline: 2px; }
    html[data-color-policy="light-only"] .step-strip strong { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    html[data-color-policy="light-only"] { scroll-behavior: auto; }
    .home-design-card { transition: none; }
}
