/* ==========================================================================
   U Jabka — Soda design system: THE LIGHT SODA GROUND

   Every Soda page that does not author its own light composition (content
   pages, local landings, cart, checkout, order/payment, customer account,
   404) is switched onto the ground of the approved Soda homepage, detail and
   catalogue: a light, warm-grey page, dark ink, General Sans in its light/
   medium pair, near-black pill buttons with a round white disc, square
   borderless fields instead of white "Vesper" planes on a dark ground.

   The layout writes body[data-soda-light] and appends this sheet AFTER the
   page's own sheets (layouts/frontend.php), so every rule here is scoped to
   that attribute and wins by order and specificity together. Nothing here
   changes markup, form names, hooks or behaviour — it is a re-skin.

   HOW: the older page scopes (.soda-pg, .soda-commerce, .soda-catalog,
   .soda-notfound) and the white plane (.soda-plane and every content section's
   container, components.css) are TOKEN SCOPES. Re-pointing their tokens to the
   light values below turns the whole component layer light at once; the
   planes then lose their box (no fill, no border, no radius) because the page
   itself is the surface now.
   ========================================================================== */

html.theme-soda body[data-soda-light],
html.theme-soda body[data-soda-light] :is(.soda-pg, .soda-commerce, .soda-catalog, .soda-notfound, .soda-plane, .soda-pg-section > .soda-container) {
    --ink: #121214;
    --ink-muted: rgba(18, 18, 20, .68);
    --ink-faint: rgba(18, 18, 20, .56);
    --ink-soft: rgba(18, 18, 20, .5);
    --ink-2: rgba(18, 18, 20, .66);
    --ink-3: rgba(18, 18, 20, .56);

    --line: rgba(18, 18, 20, .12);
    --line-hi: rgba(18, 18, 20, .28);
    --line-glass: rgba(18, 18, 20, .1);
    --glass-border: rgba(18, 18, 20, .14);
    --line-nav: rgba(18, 18, 20, .14);

    --surface-1: transparent;
    --surface-2: rgba(18, 18, 20, .035);
    --surface-glass: transparent;
    --panel: transparent;
    --panel-hi: rgba(18, 18, 20, .035);
    --glass-bg: transparent;
    --hover-wash: rgba(18, 18, 20, .04);

    --field-bg: #fff;
    --select-option-bg: #fff;
    --select-option-ink: #121214;

    --btn-bg: #121214;
    --btn-bg-hover: #2a2a2e;
    --btn-border: #121214;
    --focus: #121214;

    --accent: #121214;
    --accent-rgb: 18, 18, 20;
    --accent-ink: #fff;
    --halo: #121214;
    --halo-rgb: 18, 18, 20;

    --success: #0b5c3b;
    --success-ink: #fff;
    --warning: #6f4800;
    --warning-ink: #fff;
    --error: #96201a;
    --error-ink: #fff;

    --soda-light-ground: #f4f3ef;
    --soda-light-field: var(--soda-tone-neutral, #ebeae6);
}

/* The page is the surface. */
html.theme-soda body[data-soda-light] {
    background: var(--soda-light-ground);
    color: var(--ink);
}

html.theme-soda body[data-soda-light] :is(.soda-pg, .soda-commerce, .soda-catalog, .soda-notfound) {
    background: transparent;
    color: var(--ink);
}

/* The white planes lose their box: no fill, no border, no radius. Sections
   are divided by one hairline instead, as on the homepage. */
html.theme-soda body[data-soda-light] :is(.soda-plane, .soda-pg-section > .soda-container) {
    background: transparent;
    border: 0;
    border-radius: 0;
    color: var(--ink);
}

/* A promoted payment dialog sits above a dark backdrop, not on the page
   ground. Keep its instructions on an opaque surface. */
html.theme-soda body[data-soda-light] .soda-paymodal__dialog.soda-plane {
    background: #fff;
}

html.theme-soda body[data-soda-light] .soda-pg-section > .soda-container {
    padding: 0;
}

html.theme-soda body[data-soda-light] .soda-pg-section + .soda-pg-section > .soda-container {
    padding-top: clamp(2.4rem, 4.4vw, 3.6rem);
    border-top: 1px solid var(--line);
}

/* Headings in base.css / pages.css were pinned white for the dark masthead. */
html.theme-soda body[data-soda-light] :is(h1, h2, h3, h4),
html.theme-soda body[data-soda-light] .soda-pg-hero :is(.soda-pg-title, .soda-eyebrow) {
    color: var(--ink);
}

/* ------------------------------------------------------------ typography */

/* The display title: the Soda light/medium pair at the homepage's scale. */
html.theme-soda body[data-soda-light] :is(.soda-pg-title, .soda-commerce__head h1, .soda-notfound h1) {
    font-weight: 300;
    font-size: clamp(2.9rem, 5.6vw, 5.8rem);
    line-height: .94;
    letter-spacing: -.05em;
    max-width: 17ch;
}

html.theme-soda body[data-soda-light] :is(.soda-pg-title, .soda-commerce__head h1, .soda-notfound h1) :is(b, strong) {
    font-weight: 500;
}

html.theme-soda body[data-soda-light] :is(.soda-pg-lead, .soda-commerce__head p) {
    font-size: 1.06rem;
    color: var(--ink-2);
}

html.theme-soda body[data-soda-light] .soda-pg-section__head h2 {
    font-weight: 300;
    font-size: clamp(2.2rem, 4.2vw, 3.8rem);
    line-height: .96;
    letter-spacing: -.045em;
}

/* The eyebrow: a short rule and plain words, as on the stage. */
html.theme-soda body[data-soda-light] .soda-eyebrow {
    color: var(--ink-2);
    letter-spacing: .02em;
    text-transform: none;
    font-size: .82rem;
    font-weight: 500;
}

html.theme-soda body[data-soda-light] .soda-pg-hero::after {
    background: var(--line);
}

/* --------------------------------------------------------------- buttons */

/* The Soda pill: near-black, a round white disc for the arrow. */
html.theme-soda body[data-soda-light] .soda-btn {
    gap: 1rem;
    min-height: 3.2rem;
    padding: .4rem .4rem .4rem 1.6rem;
    border: 0;
    border-radius: 999px;
    background: var(--btn-bg);
    color: #fff;
    font-size: .98rem;
    font-weight: 500;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

html.theme-soda body[data-soda-light] .soda-btn:hover {
    background: var(--btn-bg-hover);
}

html.theme-soda body[data-soda-light] .soda-btn__arrow {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    transition: transform .45s cubic-bezier(.3, 1.4, .5, 1);
}

html.theme-soda body[data-soda-light] .soda-btn:hover .soda-btn__arrow {
    transform: translateX(2px);
}

/* The secondary: the same pill, outlined. */
html.theme-soda body[data-soda-light] .soda-btn--ghost {
    min-height: 2.9rem;
    border: 1px solid var(--line-hi);
    background: transparent;
    color: var(--ink);
}

html.theme-soda body[data-soda-light] .soda-btn--ghost:hover {
    border-color: var(--ink);
    background: transparent;
}

html.theme-soda body[data-soda-light] .soda-btn--ghost .soda-btn__arrow {
    width: 2.1rem;
    height: 2.1rem;
    background: var(--ink);
    color: #fff;
}

html.theme-soda body[data-soda-light] .soda-btn--plain {
    padding: .4rem 1.6rem;
}

html.theme-soda body[data-soda-light] .soda-btn:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
}

/* ------------------------------------------------------------------ forms */

html.theme-soda body[data-soda-light] :is(.soda-input, .soda-select, .soda-textarea) {
    border: 1px solid var(--line-hi);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    box-shadow: none;
}

html.theme-soda body[data-soda-light] :is(.soda-input, .soda-select, .soda-textarea):focus {
    border-color: var(--ink);
    outline: 2px solid var(--ink);
    outline-offset: 1px;
}

/* Checkout controls use the light browser palette, including saved addresses. */
html.theme-soda body[data-soda-light] [data-checkout-form] :is(.soda-input, .soda-select, .soda-textarea):not(:disabled) {
    color-scheme: light;
}

html.theme-soda body[data-soda-light] [data-checkout-form] :is(.soda-input, .soda-select, .soda-textarea):not(:disabled):is(:autofill, :-webkit-autofill) {
    box-shadow: 0 0 0 1000px #fff inset;
    -webkit-text-fill-color: var(--ink);
    color: var(--ink);
    caret-color: var(--ink);
}

html.theme-soda body[data-soda-light] .soda-label {
    color: var(--ink);
    font-weight: 500;
}

/* ----------------------------------------------------- fields and notices */

/* A panel or notice that is still a box reads as a Soda field: the neutral
   tone, square, no border. */
html.theme-soda body[data-soda-light] .soda-notice {
    border: 0;
    border-radius: 0;
    background: var(--soda-light-field);
    color: var(--ink);
}

/* -------------------------------------------------------------- accordion */

html.theme-soda body[data-soda-light] .soda-acc,
html.theme-soda body[data-soda-light] .soda-acc.is-open {
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: none;
}

html.theme-soda body[data-soda-light] .soda-acc__q {
    padding-inline: 0;
    font-size: 1.15rem;
    font-weight: 400;
}

html.theme-soda body[data-soda-light] .soda-acc__a p {
    margin-inline: 0;
    color: var(--ink-2);
}

html.theme-soda body[data-soda-light] .soda-acc__sign,
html.theme-soda body[data-soda-light] .soda-acc.is-open .soda-acc__sign {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    transition: transform .45s cubic-bezier(.3, 1.4, .5, 1);
}

html.theme-soda body[data-soda-light] .soda-acc.is-open .soda-acc__sign {
    transform: rotate(45deg);
}

html.theme-soda body[data-soda-light] .soda-acc.is-open .soda-acc__sign::after {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    html.theme-soda body[data-soda-light] :is(.soda-btn__arrow, .soda-acc__sign) {
        transition: none;
    }
}

/* ------------------------------------------------------------ page chrome */

/* shell.css paints the band behind the fixed bar void, for the dark pages.
   On the light ground the rest-state bar sits on the page itself. */
html.theme-soda body[data-soda-light] main#obsah {
    background: none;
}

/* commerce.css pins the masthead white for its dark ground. */
html.theme-soda body[data-soda-light] .soda-commerce__head :is(.soda-sec-title, .soda-eyebrow, h1) {
    color: var(--ink);
}

html.theme-soda body[data-soda-light] .soda-commerce__head p {
    color: var(--ink-2);
}

/* The 404 and the commerce mastheads pinned their title white. */
html.theme-soda body[data-soda-light] :is(.soda-notfound, .soda-commerce) :is(h1, h2, h3, .soda-eyebrow) {
    color: var(--ink);
}

/* ------------------------------------------------ content page components */

/* Rhythm inside a section: the white plane used to space its blocks with its
   own padding; on the open ground every block keeps a clear gap. */
html.theme-soda body[data-soda-light] .soda-pg-section > .soda-container > * + * {
    margin-top: clamp(1.6rem, 3vw, 2.6rem);
}

/* Cards and steps: a hairline on top, never a box or a side rule. */
html.theme-soda body[data-soda-light] .soda-pg-section > .soda-container :is(.soda-pg-card, .soda-pg-step) {
    padding: 1rem 0 0;
    border: 0;
    border-top: 1px solid var(--line-hi);
    border-radius: 0;
    background: transparent;
}

html.theme-soda body[data-soda-light] .soda-pg-section > .soda-container .soda-pg-card:is(:hover, :focus-within) {
    border-top-color: var(--ink);
}

html.theme-soda body[data-soda-light] :is(.soda-pg-card, .soda-pg-step) :is(h2, h3) {
    margin: .5rem 0 .6rem;
    font-size: clamp(1.25rem, 1.7vw, 1.6rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -.025em;
}

html.theme-soda body[data-soda-light] .soda-pg-card h3 a {
    color: inherit;
    text-decoration: none;
}

html.theme-soda body[data-soda-light] .soda-pg-card__icon {
    border: 0;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
}

/* The call to action: a Soda field on the neutral tone. */
html.theme-soda body[data-soda-light] .soda-pg-section > .soda-container .soda-pg-cta,
html.theme-soda body[data-soda-light] .soda-pg-cta {
    padding: clamp(1.6rem, 3.2vw, 2.8rem);
    border: 0;
    border-radius: 0;
    background: var(--soda-light-field);
}

html.theme-soda body[data-soda-light] .soda-pg-cta__copy h2 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -.04em;
}

/* The long-document contents list and the in-page facts read as ruled text. */
html.theme-soda body[data-soda-light] :is(.soda-pg-toc, .soda-pg-faq__index) {
    border-color: var(--line);
    background: transparent;
}

html.theme-soda body[data-soda-light] .soda-pg-article h2 {
    font-weight: 300;
    font-size: clamp(1.7rem, 2.6vw, 2.4rem);
    letter-spacing: -.035em;
}

/* --------------------------------------------------------------- checkout
   The 21st transplant keeps its exact geometry (padding, rail, grid — pinned
   by scripts/test-21st-transplant-visual.mjs); only its skin turns Soda: the
   cards are white square fields on the light ground, the buttons are pills,
   the title is the light display face. */
html.theme-soda body[data-soda-light] .soda-plane.soda-t21-card {
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

html.theme-soda body[data-soda-light] .soda-t21-checkout__title {
    color: var(--ink);
    font-size: clamp(2.4rem, 4.2vw, 4rem);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -.045em;
}

html.theme-soda body[data-soda-light] .soda-t21-checkout__sub {
    color: var(--ink-2);
}

html.theme-soda body[data-soda-light] .soda-t21-badge {
    border-color: var(--line);
    background: transparent;
    color: var(--ink-2);
}

html.theme-soda body[data-soda-light] .soda-t21-btn {
    border-radius: 999px;
}

html.theme-soda body[data-soda-light] .soda-t21-btn:not(.soda-t21-btn--outline, .soda-t21-btn--ghost) {
    background: var(--ink);
    color: #fff;
}

html.theme-soda body[data-soda-light] .soda-t21-cardhead :is(h2, legend) {
    font-weight: 400;
    letter-spacing: -.02em;
}

/* The commerce primary (cart "Pokračovat k objednávce"). */
html.theme-soda body[data-soda-light] .soda-commerce__cta {
    border-radius: 999px;
}
