/* ============================================================================
   base.css — everything that applies to every page: design tokens, element
   defaults, the shared shell components (the header, the footer, and the auth
   shell the four standalone flow pages are drawn inside), and the form primitives
   more than one page builds out of.

   Loaded once from base.html.twig. Anything specific to a single page belongs in
   its own stylesheet added through the `stylesheets` block, not here — see
   CLAUDE.md.
   ============================================================================ */

/* ----------------------------------------------------------------------------
   0. Web fonts

   The two families the tokens below name, from the product-detail prototype's
   design system: Inter for body and UI, Magno Sans (the prototype calls it
   "mango") for display. Without the faces the browser fell back to Arial for
   headings and the system font for everything else, and a product name that
   is one line in the design ran to four.

   Inter is the variable face (100–900) in its two Latin subsets, so every
   weight the stylesheets use comes from one file per subset; Slovak and Czech
   need latin-ext. There is no italic file in the design system, so an italic
   is the browser's oblique of the upright.

   Magno Sans comes from the Adobe Fonts kit in base.html.twig; never self-host
   it (doc/assets.md, "Web fonts").
   ---------------------------------------------------------------------------- */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/inter-latin-joy4ri1.woff2") format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
        U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/inter-latin-ext-9fzmmZy.woff2") format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
        U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ----------------------------------------------------------------------------
   1. Design tokens

   Extracted from the live glowandknow.sk compiled build (their Tailwind config).
   Semantic aliases point at the raw scale so themes can be re-pointed in one
   place — style against --gk-color-brand, never against --gk-cz-red-300.
   ---------------------------------------------------------------------------- */
:root {
    /* --- Raw palette (exact site values) --- */
    --gk-forest-green-100: #eae5e2;
    --gk-forest-green-200: #d9d7d3;
    --gk-forest-green-300: #a8aaa3;
    --gk-forest-green-350: #6b6e66;   /* muted text — 4.5:1 on white, where 300 was 2.3:1 */
    --gk-forest-green-400: #516751;
    --gk-forest-green-500: #2e3c2e;   /* primary text */
    --gk-cz-gray-200: #dedede;
    --gk-cz-gray-300: #8e8e8e;
    --gk-cz-gray-400: #101010;
    --gk-slate-300: #cbd5e1;   /* the design system's light grey, a control's resting ring */
    /* The brand red, and two tints of it. The design system numbers the same
       three 500 / 300 / 100; this scale is the live site's Tailwind config, where
       the brand sits at 300, so a lighter tint gets a lower number here. */
    --gk-cz-red-100: #ffe6e4;         /* selected chip fill */
    --gk-cz-red-200: #f3afaa;         /* selected chip border */
    --gk-cz-red-300: #e0382b;         /* brand red */
    /* Not the brand red: the design system gives a rejected field its own,
       darker one, and a rating star its own gold. */
    --gk-error-500: #be3434;
    --gk-warning-100: #f9eee8;
    --gk-warning-500: #e08a3a;
    --gk-success-500: #549d54;
    --gk-accent-green: #99a997;
    --gk-primary-300: #f1e6ec;
    --gk-primary-500: #d9bfd9;
    --gk-rating-gold: #d3a428;         /* filled rating star — the design system's --gk-yellow-500 */
    --gk-rating-empty: #f0f0f0;        /* empty rating star — the design system's --gk-grey-100 */
    --gk-bg: #f3f3f3;
    --gk-bg-darker: #f0f0f0;
    --gk-surface-warm: #faf4f2;        /* warm off-white — neutral notices */
    --gk-white: #ffffff;
    --gk-black: #000000;

    /* --- Semantic aliases (use these in components) --- */
    --gk-color-brand: var(--gk-cz-red-300);
    --gk-color-brand-contrast: var(--gk-white);
    --gk-color-text: var(--gk-forest-green-500);
    /* Three levels, and the difference is load-bearing: body copy, the sentence
       under a heading, and the greyest a placeholder or a field hint gets. */
    --gk-color-text-soft: var(--gk-forest-green-400);
    --gk-color-text-muted: var(--gk-forest-green-350);
    --gk-color-heading: var(--gk-cz-gray-300);   /* headings render grey; accent words go brand red */
    --gk-color-border: var(--gk-forest-green-200);
    /* The ring of a radio or a check at rest, before she has chosen it — the
       design's slate-300, lighter and cooler than the border. */
    --gk-color-control-ring: var(--gk-slate-300);
    /* The rule a control draws when it is being pointed at, and the dim behind
       the mobile drawer — which is one token doing two jobs on purpose, because
       the design system spells both as the ink at 40%. Translucent, so it darkens
       whatever it is over rather than replacing it. */
    --gk-color-border-strong: color-mix(in srgb, var(--gk-color-text) 40%, transparent);
    --gk-color-surface: var(--gk-white);
    --gk-color-surface-page: var(--gk-bg);
    --gk-color-surface-alt: var(--gk-bg-darker);
    /* Where something is being told to her that is neither a failure nor a
       success — "your sign-in ran out", and nothing else so far. */
    --gk-color-surface-notice: var(--gk-surface-warm);
    /* What a row or a link fills with under the pointer. The same warm
       off-white, named separately because a hover is not a notice and the two
       would not follow each other if either moved. */
    --gk-color-surface-hover: var(--gk-surface-warm);
    /* A declared allergen on the product page: information on a label, marked
       and not alarming, so the design system's warning and not the danger red. */
    --gk-color-warning: var(--gk-warning-500);
    --gk-color-surface-warning: var(--gk-warning-100);
    --gk-color-on-brand: var(--gk-white);
    --gk-color-avatar: var(--gk-accent-green);
    /* Its own red, not the brand's: a rejected field and a logo are different
       things to say, and the design system draws them differently. */
    --gk-color-danger: var(--gk-error-500);
    /* The fill and rule of the box a form-wide failure reads in. Translucent so
       it sits on whichever surface the page put behind it. */
    --gk-color-danger-surface: color-mix(in srgb, var(--gk-color-danger) 8%, transparent);
    --gk-color-danger-border: color-mix(in srgb, var(--gk-color-danger) 25%, transparent);
    --gk-color-success: var(--gk-success-500);
    /* A chosen chip. Fill and border differ, so both are named. */
    --gk-color-selected: var(--gk-cz-red-100);
    --gk-color-selected-border: var(--gk-cz-red-200);
    --gk-color-focus: var(--gk-cz-red-300);
    /* rating stars — the design system's --gk-rating (--gk-yellow-500) and
     --gk-grey-100; the old site's #fbbd1a / #f7e8de were Krémmánia's. */
    --gk-color-rating: var(--gk-rating-gold);
    --gk-color-rating-empty: var(--gk-rating-empty);
    /* What a video plays on — its letterbox and the scrims over its frames —
       and what the player draws on top of them. A frame is any colour at all,
       so these two do not follow the page's. */
    --gk-color-media: var(--gk-black);
    --gk-color-on-media: var(--gk-white);

    /* --- Typography --- */
    --gk-font-display: 'magno-sans-variable', sans-serif;      /* big headings */
    --gk-font-body: 'Inter', ui-sans-serif, system-ui, sans-serif;
    --gk-font-serif: '__zodiak_c7eca0', 'Zodiak', Georgia, serif;
    --gk-font-grotesk: '__grotesk_8249a3', 'Grotesk', sans-serif;

    --gk-text-xs: 0.75rem;    /* 12px — field hints, counters */
    --gk-text-sm: 0.875rem;   /* 14px */
    --gk-text-base: 1rem;     /* 16px */
    --gk-text-lg: 1.125rem;   /* 18px */
    --gk-text-2xl: 1.5rem;    /* 24px */
    --gk-text-3xl: 2.25rem;   /* 36px — flow-page heading */
    --gk-text-4xl: 3rem;      /* 48px — the same heading from 768px up */
    --gk-text-h1: 3.75rem;    /* 60px hero */
    --gk-weight-normal: 400;
    --gk-weight-medium: 500;
    /* The header's panel headings and the drawer's rubric rows. Between medium
       and bold because the design puts all three on one screen: a rubric at 500,
       the heading of its column at 600, a name at 700. */
    --gk-weight-semibold: 600;
    --gk-weight-bold: 700;
    --gk-weight-display: 800;

    /* --- Radii (site scale) --- */
    --gk-radius-sm: 0.125rem;
    --gk-radius: 0.25rem;
    --gk-radius-md: 0.375rem;
    --gk-radius-lg: 0.5rem;
    --gk-radius-xl: 0.75rem;
    --gk-radius-2xl: 1rem;
    --gk-radius-full: 9999px;

    /* --- Elevation --- */
    /* A control resting on a picture — the homepage carousel's arrows. */
    --gk-shadow-sm: 0 1px 2px rgb(16 24 40 / 0.06), 0 1px 3px rgb(16 24 40 / 0.1);
    --gk-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    /* A card lifted off the page — the design system's `--gk-shadow-card`: the
       article's CTA and product cards. */
    --gk-shadow-card: 0 12px 16px -4px rgb(16 24 40 / 0.1), 0 4px 6px -2px rgb(16 24 40 / 0.05);
    /* Deeper and softer than --gk-shadow-md, and not a variant of it: the design
       system carries the two side by side, one for a card sitting on the page and
       this one for a menu floating above it. The header's account dropdown is the
       only thing using it so far. */
    --gk-shadow-pop: 0 20px 40px -8px color-mix(in srgb, var(--gk-color-text) 16%, transparent);
    /* color-mix rather than a raw rgba(): the ring is the focus colour, and
       spelling it as one keeps a translucent one-off out of the palette. */
    --gk-ring-focus: 0 0 0 3px color-mix(in srgb, var(--gk-color-focus) 25%, transparent);

    /* --- Spacing (Tailwind 4px base — reference) --- */
    --gk-space-1: 0.25rem;
    --gk-space-2: 0.5rem;
    --gk-space-3: 0.75rem;
    --gk-space-4: 1rem;
    --gk-space-5: 1.25rem;
    --gk-space-6: 1.5rem;
    --gk-space-8: 2rem;
    --gk-space-10: 2.5rem;

    /* --- Layout --- */
    /* For the record only — a media query cannot read a custom property, so the
       rules below spell the same numbers out. */
    --gk-breakpoint-md: 768px;    /* flow headings step up here */
    --gk-breakpoint-lg: 1024px;   /* desktop nav ↔ mobile hamburger flips here */

    /* The page. Everything the site draws full-width is held to this — the
       header's row, each of its dropdown panels, and the account shell, which is
       what keeps the logo above her name on the same vertical as her name.

       It is deliberately not --gk-breakpoint-lg, which it used to be: that number
       is where the desktop nav gives way to the hamburger and has nothing to say
       about how wide a page is. Reading one as the other is what held this site
       to 1024px until the approved header arrived wanting 1280. */
    --gk-page: 80rem;

    /* The single column every form on the site is laid out in. */
    --gk-column: 25rem;
}

/* ----------------------------------------------------------------------------
   2. Element defaults
   ---------------------------------------------------------------------------- */

/* The one reset rule the site takes. Without it a padded `width: 100%` control
   measures wider than the column it sits in and overflows it — which is every
   form field on the site, so it belongs here rather than in a page's stylesheet. */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* The `hidden` attribute only hides an element through the browser's own
   stylesheet, and every author rule beats the user-agent origin no matter how
   unspecific it is — so a component that sets `display` at all (a grid-centred
   avatar tile, a flex row) stays on screen while claiming to be hidden.

   The !important is what makes this hold. `[hidden]` scores the same as a single
   class, so without it any page stylesheet — which loads after this one — would
   win the tie and the attribute would go back to being a suggestion. */
[hidden] {
    display: none !important;
}

body {
    margin: 0;
    background-color: var(--gk-color-surface-page);
    color: var(--gk-color-text);
    font-family: var(--gk-font-body);
    font-size: var(--gk-text-base);
    font-weight: var(--gk-weight-normal);
    line-height: 1.5;
    /* Every page of the design sets it. macOS draws text heavier without it, and
       Magno Sans headings most of all. */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* `overflow-wrap`: one word at 60px can be wider than a 360px phone — "odporúčania"
   on the homepage was, in a heavy fallback face — and a word that will not break
   pushes the whole page sideways rather than its own line. */
h1, h2, h3 {
    color: var(--gk-color-heading);
    font-family: var(--gk-font-display);
    font-weight: var(--gk-weight-display);
    overflow-wrap: break-word;
}

h1 {
    font-size: var(--gk-text-h1);
}

a {
    color: var(--gk-color-brand);
}

/* ----------------------------------------------------------------------------
   3. The site header — see src/Controller/Components/HeaderController.php

   The approved header (CU-869ez8ucw), and two blocks rather than one:

   - `.gk-header__*`   the sticky row and everything inside it
   - `.gk-drawer__*`   the mobile menu, which is a *sibling* of <header> in the
                       document and so is not one of its elements

   A third block sits between them — `.gk-nav-panel__*`, a rubric's desktop
   dropdown under an absolutely positioned lid. It was drawn three times and is
   drawn twice: `Značky`'s five columns of names and `Magazín`'s centred row of
   topics. Produkty's category tree, and the headings it hung its columns under,
   are gone with the screens that do not exist (see doc/header.md).

   1024px is where the whole thing flips: below it the rubrics are gone and the
   hamburger is the way into them, above it the rubrics are visible and the drawer
   is unreachable. That is --gk-breakpoint-lg's one job, and the media queries
   below spell the number out because a query cannot read a custom property.

   The row is deliberately the only thing that moves the page's geometry: the
   drawer is fixed, so it does not change how tall `.gk-header` measures.
   `assets/pages/profile.js` depends on that — it reads `.gk-header`'s height into
   `--gk-editor-top` so the beauty editor opens below the header on a phone.
   ---------------------------------------------------------------------------- */

/* Sticky, as `v1-09-profil-main.html` has it: the header is how she gets out of
   wherever she is, and a header that scrolls away is one she has to scroll back
   up for. It is also what lets the beauty editor open below the header rather
   than over it on a phone — see `assets/styles/pages/profile.css`.

   The panels hang off this element, so it is the positioning context for them —
   which is what `position: sticky` gives for free, and the reason they are inside
   `<header>` while the drawer is not.

   The bar is the page's grey and the panels under it are white, at rest and
   while one is open — the design's own pairing. */
.gk-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background-color: var(--gk-color-surface-page);
    border-bottom: 1px solid var(--gk-color-border);
}

/* Also carries `.gk-container`, which is where its width and horizontal padding
   come from. The height is stated rather than left to the padding: the row holds
   controls of three different heights and an avatar that arrives late, and a row
   whose height is its tallest child is one that jumps when the picture loads. */
.gk-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gk-space-2);
    height: 3.5rem;
    padding-block: 0;
}

@media (min-width: 768px) {
    .gk-header__inner {
        height: 4.5rem;
    }
}

@media (min-width: 1024px) {
    .gk-header__inner {
        gap: var(--gk-space-4);
    }
}

/* The logo and the rubrics travel together and do not stretch: the slack in the
   row belongs to the search field on the right. */
.gk-header__left {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: var(--gk-space-6);
    min-width: 0;
}

@media (min-width: 1024px) {
    .gk-header__left {
        gap: 4rem;
    }
}

/* The wordmark SVG paints with currentColor, so the brand red lives here. */
.gk-header__logo {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    min-height: 2.75rem;
    padding-inline: var(--gk-space-2);
    /* Pulled back out again: the padding is there to make the mark a 44px target
       without letting it push the row's first pixel inwards, so the logo still
       lines up with the page's edge. */
    margin-inline: calc(var(--gk-space-2) * -1);
    color: var(--gk-color-brand);
}

/* Width drives it here, where the old header used height: the design steps the
   mark down on the narrowest phones rather than scaling it with the row. */
.gk-header__logo svg {
    display: block;
    width: 10rem;
    height: auto;
}

@media (min-width: 390px) {
    .gk-header__logo svg {
        width: 170px;
        height: 21px;
    }
}

/* ---- The rubrics -------------------------------------------------------- */

.gk-header__rubrics {
    display: none;
}

@media (min-width: 1024px) {
    .gk-header__rubrics {
        display: flex;
        align-items: center;
        gap: var(--gk-space-8);
        flex-wrap: nowrap;
    }
}

/* An underline that is there all along and transparent until it is wanted, rather
   than one that appears: `text-decoration` cannot be transitioned, but
   `text-decoration-color` can, and the text does not shift when a line arrives
   under it. Everything in this header that underlines on hover does it this way.

   `@media (hover: hover)` on the hover half so a touch device does not paint it
   on the way to a tap; `:active` covers the touch. */
.gk-header__rubrics a {
    color: var(--gk-color-text);
    font-size: var(--gk-text-base);
    font-weight: var(--gk-weight-medium);
    line-height: 1.5;
    white-space: nowrap;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 2px;
    transition: text-decoration-color 140ms ease;
}

@media (hover: hover) {
    .gk-header__rubrics a:hover {
        text-decoration-color: currentColor;
    }
}

.gk-header__rubrics a:active {
    text-decoration-color: currentColor;
}

.gk-header__rubrics a:focus {
    outline: none;
}

.gk-header__rubrics a:focus-visible {
    box-shadow: var(--gk-ring-focus);
    border-radius: var(--gk-radius-sm);
}

/* ---- The Značky panel ---------------------------------------------------- */

/* The lid all three rubric panels hang under. What differs between them is what
   is inside it: `__grid` for `Značky` and `Produkty`, `__topics` for `Magazín` —
   and inside the grid, a column of bare links for the brands against a
   `__heading` with a `__sublist` under it for the categories.

   Absolutely positioned under the row, and that is load-bearing twice over: it
   keeps the panel out of `.gk-header`'s own height, which `assets/pages/profile.js`
   measures into `--gk-editor-top`, and it lets the panel be as tall as its list
   without the row moving. `.gk-header` is `position: sticky`, so it is already
   the containing block this hangs off and needs no `position: relative` of its
   own.

   `display: none` below 1024px and not merely `hidden`: the panel is a desktop
   control, the drawer's level is what a phone gets, and a stylesheet that only
   respected `hidden` would let a resize leave it showing under a hamburger. */
.gk-nav-panel {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    max-height: calc(100vh - 4.5rem);
    overflow-y: auto;
    border-bottom: 1px solid var(--gk-color-border);
    background-color: var(--gk-color-surface);
}

@media (min-width: 1024px) {
    .gk-nav-panel {
        display: block;
    }
}

/* The closed state, and the only one the markup ships: `assets/base.js` is the
   single thing that takes the attribute off, so a page with the script blocked
   keeps a rubric that is a plain link to `/znacky`. It has to be spelled out
   because the rule above sets `display: block` and would otherwise win. */
.gk-nav-panel[hidden] {
    display: none;
}

/* 32px above the first row and 40px below the last, in Produkty and Značky. Each
   panel's inside also carries `.gk-container`, whose rule is further down this file
   and at one class would take `padding-block` back to its 16px — the child
   combinator is what outweighs it. */
.gk-nav-panel > .gk-container {
    padding-block: var(--gk-space-8) var(--gk-space-10);
}

/* Five columns, and the two panels that use it fill them differently. The brands
   are one list chunked top to bottom and then across — the order the design's own
   five columns read in, done in the template. The categories are five roots, one
   per column, chunked by nothing.

   A grid of flex columns rather than CSS `columns`, because the rows want a gap
   between them and multicol would have to buy the same 44px touch target with
   margins it does not honour predictably.

   `row-gap` is here for a sixth root, which is a row this grid would start on its
   own and the only way either panel produces a second one — the brands are
   chunked *to* five columns and cannot. */
.gk-nav-panel__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    column-gap: var(--gk-space-6);
    row-gap: var(--gk-space-8);
    align-items: start;
}

.gk-nav-panel__column {
    display: flex;
    flex-direction: column;
    gap: var(--gk-space-2);
    min-width: 0;
}

/* A root, at the head of its column and a link to its own screen. It reads at the
   rubrics' own 18px/600, which is what says the words under it belong to it.

   The margin is 8px and the design's gap is 16px: the column's own `gap` is the
   other half. Written as the difference rather than as the whole number, because
   a heading that moved out of a `.gk-nav-panel__column` would want the gap back
   and not this. */
.gk-nav-panel__heading {
    width: fit-content;
    margin-bottom: var(--gk-space-2);
    color: var(--gk-color-text);
    font-size: var(--gk-text-lg);
    font-weight: var(--gk-weight-semibold);
    line-height: 1.333;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 2px;
    transition: text-decoration-color 140ms ease;
}

@media (hover: hover) {
    .gk-nav-panel__heading:hover {
        text-decoration-color: currentColor;
    }
}

.gk-nav-panel__heading:active {
    text-decoration-color: currentColor;
}

.gk-nav-panel__heading:focus {
    outline: none;
}

.gk-nav-panel__heading:focus-visible {
    box-shadow: var(--gk-ring-focus);
    border-radius: var(--gk-radius-sm);
}

/* A root's children. The same 8px the column itself uses — it is a box of its own
   only so that the heading's margin has something to sit against, and so that a
   root with no children draws nothing at all rather than an empty gap. */
.gk-nav-panel__sublist {
    display: flex;
    flex-direction: column;
    gap: var(--gk-space-2);
}

/* The padding and the margin that cancels it are the 44px target the design asks
   for on a row that reads 24px tall: the hit area grows, the layout does not. */
.gk-nav-panel__link {
    width: fit-content;
    padding: 0.625rem var(--gk-space-1);
    margin: -0.625rem calc(var(--gk-space-1) * -1);
    color: var(--gk-color-text);
    font-size: var(--gk-text-base);
    font-weight: var(--gk-weight-normal);
    line-height: 1.5;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 2px;
    transition: text-decoration-color 140ms ease;
}

@media (hover: hover) {
    .gk-nav-panel__link:hover {
        text-decoration-color: currentColor;
    }
}

.gk-nav-panel__link:active {
    text-decoration-color: currentColor;
}

.gk-nav-panel__link:focus {
    outline: none;
}

.gk-nav-panel__link:focus-visible {
    box-shadow: var(--gk-ring-focus);
    border-radius: var(--gk-radius-sm);
}

/* "Všetky značky →", under the columns and against the right edge — the one row
   in the panel that is not a brand. */
.gk-nav-panel__all {
    display: flex;
    justify-content: flex-end;
    margin-top: var(--gk-space-8);
}

/* The Magazín panel's whole contents: one centred row of topics, wrapping, where
   the brands take five columns and a way out. Two arrangements and not one
   parameterised, because the design draws them as two — four or seven words read
   as a row and twenty-four names do not, and a grid told to hold one row would be
   a grid pretending.

   It is `.gk-nav-panel__inner`'s counterpart rather than sitting inside it, and
   its 20px above and below is the design's for a panel one line tall — at three
   classes it outweighs the 32/40 of `.gk-nav-panel > .gk-container`. The 64px between
   topics is the design's and has no token — the header's `4rem` gap above it is
   the same number for the same reason. */
.gk-nav-panel__topics {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 4rem;
    row-gap: var(--gk-space-4);
}

.gk-nav-panel > .gk-nav-panel__topics.gk-container {
    padding-block: var(--gk-space-5);
}

/* A topic reads heavier than a brand does: there are four of them across one row
   where a brand is one of twenty-four in a column, and the design sets them
   apart the only way a row of plain words can be. Everything else about the link
   — the 44px target, the underline that arrives on hover — is
   `.gk-nav-panel__link`'s and shared. */
.gk-nav-panel__topics .gk-nav-panel__link {
    font-weight: var(--gk-weight-semibold);
}

/* ---- The right-hand controls -------------------------------------------- */

.gk-header__right {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: var(--gk-space-2);
    margin-left: auto;
}

@media (min-width: 1024px) {
    .gk-header__right {
        justify-content: space-between;
        gap: var(--gk-space-4);
    }
}

/* One shape for every control on the right, `<a>` and `<button>` alike: a stacked
   icon and label on a phone, a row from 1024px. 44px minimum in both directions
   is the touch target, and it is what makes the labels legible at 12px rather
   than decorative. */
.gk-header__control {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 2px var(--gk-space-2);
    border: 0;
    border-radius: var(--gk-radius-md);
    background-color: transparent;
    color: var(--gk-color-text);
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
}

@media (min-width: 1024px) {
    .gk-header__control {
        flex-direction: row;
        gap: var(--gk-space-2);
        min-width: 0;
        min-height: 0;
        height: 2.75rem;
    }
}

.gk-header__control:focus {
    outline: none;
}

.gk-header__control:focus-visible {
    box-shadow: var(--gk-ring-focus);
}

.gk-header__control-icon {
    flex: none;
    color: var(--gk-color-text);
}

/* Signed in, the little figure is the brand's rather than the ink's — the one
   place in the row that carries colour. */
.gk-header__control-icon--account {
    color: var(--gk-color-brand);
}

@media (min-width: 1024px) {
    .gk-header__control-icon {
        width: var(--gk-space-6);
        height: var(--gk-space-6);
    }
}

.gk-header__control-label {
    color: var(--gk-color-text);
    font-size: var(--gk-text-xs);
    font-weight: var(--gk-weight-medium);
    line-height: 1.333;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 2px;
    transition: text-decoration-color 140ms ease;
}

@media (min-width: 1024px) {
    .gk-header__control-label {
        font-size: var(--gk-text-sm);
        font-weight: var(--gk-weight-semibold);
    }
}

/* The label underlines, not the whole control: an icon with a line under it reads
   as a broken glyph. */
@media (hover: hover) {
    .gk-header__control:hover .gk-header__control-label {
        text-decoration-color: currentColor;
    }
}

.gk-header__control:active .gk-header__control-label {
    text-decoration-color: currentColor;
}

/* Stands in for the chevron the signed-in trigger carries, so the guest control
   is the same width and the row does not shift when she signs in. Invisible to
   both the eye and the reader, and only present where the chevron is. */
.gk-header__control-spacer {
    display: none;
}

@media (min-width: 1024px) {
    .gk-header__control-spacer {
        display: inline-block;
        visibility: hidden;
        width: 1rem;
        height: 1rem;
    }
}

.gk-header__control-chevron {
    display: none;
    flex: none;
    transition: transform 140ms ease;
}

@media (min-width: 1024px) {
    .gk-header__control-chevron {
        display: inline-block;
    }
}

#gk-account-trigger[aria-expanded='true'] .gk-header__control-chevron {
    transform: rotate(180deg);
}

/* Three controls that swap at 1024px, in both directions. The search icon and the
   mobile account link give way to the search field and the account dropdown; the
   hamburger simply goes. */
.gk-header__control--search {
    display: flex;
}

.gk-header__control--account {
    display: flex;
}

.gk-header__hamburger {
    display: flex;
}

@media (min-width: 1024px) {
    .gk-header__control--search,
    .gk-header__control--account,
    .gk-header__hamburger {
        display: none;
    }
}

/* ---- The search field --------------------------------------------------- */

/* The field from 1024px, and the same field at the top of the layer below it:
   a form dressed as one pill, the magnifier its submit, the × its clear.
   doc/search.md. */
.gk-header__search {
    display: none;
    position: relative;
    box-sizing: border-box;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    height: 2.75rem;
    margin: 0;
    padding: 0;
    border: 1px solid var(--gk-color-border);
    border-radius: var(--gk-radius-full);
    background-color: var(--gk-color-surface);
    cursor: text;
    transition: border-color 140ms ease;
}

@media (min-width: 1024px) {
    .gk-header__search {
        display: flex;
        max-width: 26.25rem;
    }
}

@media (hover: hover) {
    .gk-header__search:hover {
        border-color: var(--gk-color-border-strong);
    }

    .gk-header__search:hover .gk-header__search-icon {
        color: var(--gk-color-text);
    }
}

.gk-header__search:focus-within {
    border-color: var(--gk-color-border-strong);
}

.gk-header__search-icon {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    width: 2.75rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: var(--gk-radius-full);
    background: transparent;
    color: var(--gk-color-text-muted);
    cursor: pointer;
    transition: color 140ms ease;
}

.gk-header__search-icon:focus {
    outline: none;
}

.gk-header__search-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--gk-color-text);
    font-family: inherit;
    font-size: var(--gk-text-sm);
    line-height: 1.25rem;
    text-overflow: ellipsis;
    appearance: none;
}

.gk-header__search-input::placeholder {
    color: var(--gk-color-text-muted);
    opacity: 1;
}

.gk-header__search-input::-webkit-search-cancel-button,
.gk-header__search-input::-webkit-search-decoration {
    display: none;
    appearance: none;
}

.gk-header__search-input:focus,
.gk-header__search-input:focus-visible {
    outline: none;
    box-shadow: none;
}

/* Shown only with something to clear; `visibility`, so the field does not
   change width as she types the first letter. */
.gk-search-clear {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    width: 2.75rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: var(--gk-radius-full);
    background: transparent;
    color: var(--gk-color-text-soft);
    cursor: pointer;
    visibility: hidden;
    transition: color 140ms ease;
    -webkit-tap-highlight-color: transparent;
}

.gk-search-clear.is-on {
    visibility: visible;
}

@media (hover: hover) {
    .gk-search-clear:hover {
        color: var(--gk-color-text);
    }
}

.gk-search-clear:focus {
    outline: none;
}

.gk-search-clear:focus-visible {
    box-shadow: var(--gk-ring-focus);
}

/* The dropdown under the field, from 1024px. */
.gk-search-dd {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 50;
    box-sizing: border-box;
    width: 30rem;
    max-width: calc(100vw - 2rem);
    max-height: calc(100vh - 6rem);
    margin-top: var(--gk-space-1);
    padding: var(--gk-space-2);
    overflow-y: auto;
    border-radius: var(--gk-radius-lg);
    background: var(--gk-color-surface);
    box-shadow: var(--gk-shadow-pop);
    text-align: left;
    cursor: default;
}

.gk-search-dd[hidden] {
    display: none;
}

/* The page dimmed while the dropdown is open, under the header (40). */
.gk-search-scrim {
    position: fixed;
    inset: 0;
    z-index: 39;
    background-color: var(--gk-color-border-strong);
}

.gk-search-scrim[hidden] {
    display: none;
}

/* The same search in a page's column — the homepage under its headline, the
   404 under its sentence; `components/search_box.html.twig`. Below 1024px a
   link dressed as the field that opens the layer, from 1024px the header's
   field at the column's width, 48px tall. The page sets the margin above. */
.gk-search-entry {
    display: flex;
    box-sizing: border-box;
    align-items: center;
    justify-content: space-between;
    height: 3rem;
    padding-left: var(--gk-space-4);
    border: 1px solid var(--gk-color-border);
    border-radius: var(--gk-radius-full);
    background: var(--gk-color-surface);
    color: var(--gk-color-text-muted);
    font-size: var(--gk-text-base);
    line-height: 1.5rem;
    text-decoration: none;
    transition: border-color 140ms ease;
}

.gk-search-entry__placeholder {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gk-search-entry__icon {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    color: var(--gk-color-text-soft);
}

@media (hover: hover) {
    .gk-search-entry:hover {
        border-color: var(--gk-color-border-strong);
    }
}

.gk-search-entry:active {
    border-color: var(--gk-color-border-strong);
}

.gk-search-entry:focus-visible {
    outline: none;
    box-shadow: var(--gk-ring-focus);
}

/* Open, the field stands above the scrim (39) as the header does, and the
   dropdown takes the field's width. */
@media (min-width: 1024px) {
    .gk-search-entry {
        display: none;
    }

    .gk-header__search.gk-search-wide {
        max-width: none;
        height: 3rem;
    }
}

.gk-search-wide:has(.gk-search-dd:not([hidden])) {
    z-index: 40;
}

.gk-search-wide .gk-search-dd {
    left: 0;
    width: auto;
}

/* The layer, below 1024px: the whole screen, above the header and the drawer. */
.gk-search-layer {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--gk-color-surface);
}

.gk-search-layer[hidden] {
    display: none;
}

@media (min-width: 1024px) {
    .gk-search-layer,
    .gk-search-layer[hidden] {
        display: none;
    }
}

.gk-search-layer:focus {
    outline: none;
}

.gk-search-layer__bar {
    display: flex;
    flex: none;
    align-items: center;
    gap: var(--gk-space-2);
    padding: var(--gk-space-2) var(--gk-space-4);
}

.gk-search-layer__field {
    display: flex;
    height: 3rem;
    max-width: none;
}

/* 16px, or iOS zooms the page in when the field takes focus. */
.gk-search-layer__field .gk-header__search-input {
    font-size: var(--gk-text-base);
    line-height: 1.5rem;
}

.gk-search-layer__close {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    border-radius: var(--gk-radius-md);
    background: transparent;
    color: var(--gk-color-text-soft);
    cursor: pointer;
}

@media (hover: hover) {
    .gk-search-layer__close:hover {
        color: var(--gk-color-text);
    }
}

.gk-search-layer__close:focus {
    outline: none;
}

.gk-search-layer__close:focus-visible {
    box-shadow: var(--gk-ring-focus);
}

.gk-search-layer__body {
    margin-top: var(--gk-space-2);
    padding: 0 var(--gk-space-4) calc(var(--gk-space-4) + env(safe-area-inset-bottom));
}

/* ---- What the dropdown and the layer hold -------------------------------- */

.gk-search-sb__group + .gk-search-sb__group {
    margin-top: var(--gk-space-6);
}

.gk-search-sb__title {
    margin: 0;
    color: var(--gk-color-text);
    font-family: var(--gk-font-body);
    font-size: var(--gk-text-base);
    font-weight: var(--gk-weight-semibold);
    line-height: 1.5rem;
}

.gk-search-sb__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.gk-search-sb__recent {
    display: flex;
    align-items: center;
    gap: var(--gk-space-2);
}

.gk-search-sb__row {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    box-sizing: border-box;
    min-width: 0;
    min-height: 3rem;
    border-radius: var(--gk-radius-md);
    color: var(--gk-color-text);
    font-size: var(--gk-text-sm);
    line-height: 1.25rem;
    text-decoration: none;
}

.gk-search-sb__row > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gk-search-sb__root {
    color: var(--gk-color-text-muted);
}

.gk-search-sb__remove {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    border-radius: var(--gk-radius-md);
    background: transparent;
    color: var(--gk-color-text-soft);
    cursor: pointer;
    transition: color 140ms ease;
}

.gk-search-sb__product {
    display: flex;
    align-items: center;
    gap: var(--gk-space-3);
    box-sizing: border-box;
    min-height: 4rem;
    border-radius: var(--gk-radius-md);
    color: var(--gk-color-text);
    text-decoration: none;
}

.gk-search-sb__media {
    flex: none;
    width: 3rem;
    height: 3rem;
    overflow: hidden;
    border-radius: var(--gk-radius-md);
    background: var(--gk-color-surface);
}

.gk-search-sb__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gk-search-sb__text {
    flex: 1 1 auto;
    min-width: 0;
}

.gk-search-sb__brand {
    display: block;
    color: var(--gk-color-text-soft);
    font-size: 0.625rem;
    line-height: 0.875rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.gk-search-sb__name {
    display: -webkit-box;
    overflow: hidden;
    color: var(--gk-color-text);
    font-size: var(--gk-text-sm);
    line-height: 1.25rem;
    text-wrap: balance;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.gk-search-sb__row strong,
.gk-search-sb__product strong {
    font-weight: var(--gk-weight-semibold);
}

@media (hover: hover) {
    .gk-search-sb__row:hover > span,
    .gk-search-sb__product:hover .gk-search-sb__name {
        text-decoration: underline;
    }

    .gk-search-sb__remove:hover {
        color: var(--gk-color-text);
    }
}

.gk-search-sb__row:active > span,
.gk-search-sb__product:active .gk-search-sb__name {
    text-decoration: underline;
}

.gk-search-sb__row:focus,
.gk-search-sb__product:focus,
.gk-search-sb__remove:focus {
    outline: none;
}

.gk-search-sb__row:focus-visible,
.gk-search-sb__product:focus-visible,
.gk-search-sb__remove:focus-visible {
    box-shadow: var(--gk-ring-focus);
}

/* ---- Her picture -------------------------------------------------------- */

/* A wrapper with both halves inside it — the photograph and the letter that
   stands in for a missing one — of which one is always `hidden`. That is what
   lets `assets/pages/settings.js` change the picture after a save by moving a
   flag rather than building an element to match the template.

   The background is the letter tile's colour and shows through nothing: an
   `<img>` that has not arrived leaves the disc looking deliberate rather than
   broken. */
.gk-header__avatar {
    position: relative;
    display: grid;
    flex: none;
    place-items: center;
    overflow: hidden;
    border-radius: var(--gk-radius-full);
    background-color: var(--gk-color-avatar);
}

.gk-header__avatar-image {
    display: block;
    width: 100%;
    height: 100%;
    /* A remote picture of unknown aspect ratio: cover crops it to the circle
       instead of letting it stretch. */
    object-fit: cover;
}

.gk-header__avatar-initial {
    color: var(--gk-color-on-brand);
    font-weight: var(--gk-weight-bold);
}

/* 20px in the row on a phone and 32px from 1024px — the trigger is a stacked
   icon-sized thing at one width and a row-shaped one at the other. */
.gk-header__avatar--xs {
    width: var(--gk-space-5);
    height: var(--gk-space-5);
}

.gk-header__avatar--xs .gk-header__avatar-initial {
    font-size: 0.625rem;
}

@media (min-width: 1024px) {
    .gk-header__avatar--xs {
        width: var(--gk-space-8);
        height: var(--gk-space-8);
    }

    .gk-header__avatar--xs .gk-header__avatar-initial {
        font-size: var(--gk-text-sm);
    }
}

/* 48px, in the drawer's identity block, where it is the whole of what identifies
   her rather than one item in a row. */
.gk-header__avatar--sm {
    width: 3rem;
    height: 3rem;
}

.gk-header__avatar--sm .gk-header__avatar-initial {
    font-size: var(--gk-text-lg);
}

/* ---- The account dropdown ----------------------------------------------- */

/* Desktop only: below 1024px the account is a link, and everything this menu
   holds is in the drawer instead. */
.gk-header__account {
    position: relative;
    display: none;
}

@media (min-width: 1024px) {
    .gk-header__account {
        display: inline-flex;
    }
}

.gk-header__menu {
    position: absolute;
    top: calc(100% + var(--gk-space-2));
    right: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    min-width: 14.375rem;
    padding: var(--gk-space-2);
    border: 1px solid var(--gk-color-border);
    border-radius: var(--gk-radius-lg);
    background-color: var(--gk-color-surface);
    box-shadow: var(--gk-shadow-pop);
}

/* Said out loud because the rule above sets `display`, which would otherwise beat
   the attribute. The JS toggles `hidden` and nothing else. */
.gk-header__menu[hidden] {
    display: none;
}

.gk-header__menu a,
.gk-header__menu button {
    position: relative;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 2.75rem;
    padding-inline: var(--gk-space-3);
    border: 0;
    border-radius: var(--gk-radius-md);
    background-color: transparent;
    color: var(--gk-color-text);
    font-family: inherit;
    font-size: var(--gk-text-sm);
    font-weight: var(--gk-weight-medium);
    text-align: left;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 2px;
    cursor: pointer;
    transition: text-decoration-color 140ms ease;
}

/* The logout button is inside a form, which is `display: block` and would
   otherwise stop the button filling the row. */
.gk-header__menu form {
    display: contents;
}

/* A line under the label and nothing else, the way the drawer's rows answer —
   a fill here read as the current-page mark's cousin. */
@media (hover: hover) {
    .gk-header__menu a:hover,
    .gk-header__menu button:hover {
        text-decoration-color: currentColor;
    }
}

.gk-header__menu a:active,
.gk-header__menu button:active {
    text-decoration-color: currentColor;
}

.gk-header__menu a:focus,
.gk-header__menu button:focus {
    outline: none;
}

.gk-header__menu a:focus-visible,
.gk-header__menu button:focus-visible {
    box-shadow: var(--gk-ring-focus);
}

.gk-header__menu-separator {
    height: 1px;
    margin: 6px var(--gk-space-1);
    background-color: var(--gk-color-border);
}

/* Where she already is. A rule down the left rather than a fill, so the marker
   reads as a position and not as a hover that stuck. Shared with the drawer's
   copy of the same nav. */
.gk-header__menu a[aria-current='page'],
.gk-drawer nav a[aria-current='page'] {
    position: relative;
    color: var(--gk-color-text);
    font-weight: var(--gk-weight-semibold);
}

.gk-header__menu a[aria-current='page']::before,
.gk-drawer nav a[aria-current='page']::before {
    content: '';
    position: absolute;
    top: var(--gk-space-2);
    bottom: var(--gk-space-2);
    left: 0;
    width: 0.1875rem;
    border-radius: var(--gk-radius-full);
    background-color: currentColor;
}

/* A drawer row runs to the drawer's edge, so its bar stands 4px in from it. The
   menu's rows are already inset by the menu's own 8px padding. */
.gk-drawer nav a[aria-current='page']::before {
    left: var(--gk-space-1);
}

/* ----------------------------------------------------------------------------
   3a. The mobile drawer

   A sibling of <header> rather than a child, which is not tidiness: it is
   `position: fixed` over the whole viewport, and a fixed element inside a
   `position: sticky` one takes that one as its containing block.

   One screen deep: the identity block, the three rubrics and — when she is signed
   in — her account rows. It had a level per rubric behind it, slid into by
   `assets/base.js` inside a box that existed for the measuring; that went with the
   dropdown panels, and so did `.gk-drawer__levels`, `.gk-drawer__level`, the way
   back and the accordions on Produkty's level. Every row in here is a destination
   now.
   ---------------------------------------------------------------------------- */

/* The dim. Its own element and not a `::backdrop`, because the drawer is not a
   `<dialog>` — it is a div with `role="dialog"`, so there is no top layer and
   nothing to paint one. */
.gk-drawer__scrim {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
    background-color: var(--gk-color-border-strong);
    /* A drag that starts on the dim is no gesture at all, so a phone has nothing
       to scroll the page with — the lock in `assets/base.js` is the other half. */
    touch-action: none;
}

.gk-drawer__scrim.is-open {
    display: block;
}

/* `visibility` on a delay is what keeps a closed drawer out of the tab order
   without stopping it animating: transformed off-screen it would still be
   focusable, and `display: none` cannot be transitioned. So visibility flips at
   the end of the close and at the start of the open — hence two different
   `transition` declarations rather than one with a direction. */
.gk-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 61;
    display: flex;
    flex-direction: column;
    width: min(20rem, 86vw);
    overflow-y: auto;
    /* Its own scroll ends at its own edge rather than handing on to the page. */
    overscroll-behavior: contain;
    background-color: var(--gk-color-surface);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 180ms ease, visibility 0s linear 180ms;
}

.gk-drawer.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 180ms ease, visibility 0s linear 0s;
}

/* It takes focus when it opens, and a ring around a whole panel says nothing. */
.gk-drawer:focus {
    outline: none;
}

/* No slide, in or out — the drawer is 320px of travel across the screen, which is
   the largest movement anywhere in this header and exactly what the setting is
   asking about. It is the only movement left: the level-to-level slide
   `assets/base.js` suppressed on the same query went with the rubrics' submenus.

   **`.is-open` has to be named here too.** It is two classes to the plain rule's
   one, and a media query adds no specificity of its own, so overriding
   `.gk-drawer` alone leaves the opening transition standing — which is how this
   was written first, and it slid on the way in and not on the way out. Visibility
   keeps its zero-second delay in both, because that is not an animation, it is
   what takes a closed drawer out of the tab order. */
@media (prefers-reduced-motion: reduce) {
    .gk-drawer,
    .gk-drawer.is-open {
        transition: visibility 0s linear 0s;
    }

}

.gk-drawer__head {
    display: flex;
    justify-content: flex-end;
    padding: var(--gk-space-2);
}

.gk-drawer__close {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 0;
    border-radius: var(--gk-radius-md);
    background-color: transparent;
    color: var(--gk-color-text-soft);
    cursor: pointer;
    transition: color 140ms ease;
}

@media (hover: hover) {
    .gk-drawer__close:hover {
        color: var(--gk-color-text);
    }
}

.gk-drawer__close:active {
    color: var(--gk-color-text);
}

.gk-drawer__close:focus {
    outline: none;
}

.gk-drawer__close:focus-visible {
    box-shadow: var(--gk-ring-focus);
}

/* ---- Who she is, at the top of the drawer ------------------------------- */

.gk-drawer__identity {
    display: flex;
    align-items: center;
    gap: var(--gk-space-3);
    padding: var(--gk-space-2) var(--gk-space-4) var(--gk-space-4);
}

.gk-drawer__name {
    display: block;
    color: var(--gk-color-text);
    font-size: var(--gk-text-base);
    font-weight: var(--gk-weight-bold);
}

.gk-drawer__nickname {
    display: block;
    color: var(--gk-color-text-soft);
    font-size: var(--gk-text-sm);
    line-height: 1.428;
}

.gk-drawer__guest {
    display: flex;
    flex-direction: column;
    gap: var(--gk-space-2);
    padding: var(--gk-space-2) var(--gk-space-4) var(--gk-space-4);
}

/* `.gk-button--block` is a flex row already; what it does not carry is a height
   or the fact that this one is an `<a>`, which the element selector in section 2
   would otherwise paint brand-red and underline. */
.gk-drawer__guest .gk-button {
    height: 3rem;
    color: var(--gk-color-text);
    text-decoration: none;
}

/* A band of the page's own colour, which is what separates one group of rows from
   the next — the rows themselves are divided by their own bottom rule. */
.gk-drawer__separator {
    height: var(--gk-space-2);
    background-color: var(--gk-color-surface-page);
}

.gk-drawer__heading {
    margin: 0;
    padding: var(--gk-space-4) var(--gk-space-4) var(--gk-space-2);
    color: var(--gk-color-text);
    font-family: var(--gk-font-body);
    font-size: var(--gk-text-lg);
    font-weight: var(--gk-weight-semibold);
    line-height: 1.333;
}

/* ---- The rows ----------------------------------------------------------- */

/* Every row in the drawer, link and button alike: 56px tall, divided by a rule,
   and underlining the way the rest of the header does. */
.gk-drawer nav a,
.gk-drawer nav button {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 3.5rem;
    padding-inline: var(--gk-space-4);
    border: 0;
    border-bottom: 1px solid var(--gk-color-border);
    background-color: transparent;
    color: var(--gk-color-text);
    font-family: inherit;
    font-size: var(--gk-text-base);
    font-weight: var(--gk-weight-medium);
    line-height: 1.5;
    text-align: left;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 2px;
    cursor: pointer;
    transition: text-decoration-color 140ms ease;
}

.gk-drawer nav a:last-child,
.gk-drawer nav button:last-child {
    border-bottom: 0;
}

/* The logout form again — see the account menu. */
.gk-drawer nav form {
    display: contents;
}

@media (hover: hover) {
    .gk-drawer nav a:hover,
    .gk-drawer nav button:hover {
        text-decoration-color: currentColor;
    }
}

.gk-drawer nav a:active,
.gk-drawer nav button:active {
    text-decoration-color: currentColor;
}

.gk-drawer nav a:focus,
.gk-drawer nav button:focus {
    outline: none;
}

/* Inset, because the row is the full width of the drawer and an outer ring would
   be clipped by it. */
.gk-drawer nav a:focus-visible,
.gk-drawer nav button:focus-visible {
    box-shadow: inset var(--gk-ring-focus);
}

/* A rubric row reads heavier than an account row: it is the top of a hierarchy,
   where "Moje recenzie" is a destination. Three of them, two links and — where a
   rubric has a level of its own — one button with a chevron. The rows *inside*
   such a level read the same way, which is the third selector: a brand in the
   `Značky` level is a rubric's own list and not an account row.

   **`nav` is named twice on purpose**, and without it this rule does nothing:
   `.gk-drawer nav a` above is (0,1,2) to a bare `.gk-drawer__rubrics > a`'s
   (0,1,1), so it wins on both properties and the rubrics render at the account
   rows' 16px/500. Which is what they did until this line was written out — the
   design's 18px/600 was in the stylesheet and on the losing side of a cascade the
   whole time. */
.gk-drawer nav.gk-drawer__rubrics > a,
.gk-drawer nav.gk-drawer__rubrics > button,
.gk-drawer__level--rubric nav > a,
.gk-drawer__level--rubric nav > button:not(.gk-drawer__back) {
    font-size: var(--gk-text-lg);
    font-weight: var(--gk-weight-semibold);
    line-height: 1.333;
}

/* ---- The Produkty level's accordions ------------------------------------ */

/* A root in the drawer, and the one control in here that expands in place rather
   than sliding: forty rows under five headings is what the design does with a
   list too long to scroll past, and `.gk-drawer__level` is a screen and not a
   section. It shares the rubric row's arrangement above — the chevron to the far
   edge — and the weight rule's fourth selector, which is what `:not()` on the
   way-back button is for: that one is the level's chrome and reads as a row. */
.gk-drawer__accordion {
    justify-content: space-between;
    gap: var(--gk-space-2);
}

.gk-drawer__accordion svg {
    flex: none;
}

/* Pointing down while the list is closed and up while it is open, which is the
   only thing on this screen that says the control did anything. The colour is the
   muted one because it is a mark and not a word — the same reading the search
   icon takes. */
.gk-drawer__chevron {
    color: var(--gk-color-text-muted);
    transition: transform 140ms ease;
}

[aria-expanded='true'] > .gk-drawer__chevron {
    transform: rotate(180deg);
}

/* It turns instantly and still turns: what goes is the movement between the two
   positions, never the positions themselves — the chevron is the state of a
   control and not decoration.

   **Below the rule it overrides and not up with the drawer's own**, which is the
   trap: a media query adds no specificity, so this and `.gk-drawer__chevron` are
   both (0,1,0) and the later one wins. Written in that block it would have been a
   rule that does nothing. */
@media (prefers-reduced-motion: reduce) {
    .gk-drawer__chevron {
        transition: none;
    }
}

/* A root's children, indented to half a row's width so the hierarchy is legible
   without a rule or a bullet, and closed by `hidden` — which has to be spelled
   out against the `display: flex` above it, the same trap `.gk-drawer__level`
   documents one block up.

   The list keeps a rule under it where its own last row loses one: the generic
   `:last-child` rule strips the bottom border inside the list, and this puts one
   back around the whole group. */
.gk-drawer__sublist {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid var(--gk-color-border);
}

.gk-drawer__sublist[hidden] {
    display: none;
}

/* **`nav` is named again for the reason the rubric weights are**: `.gk-drawer nav a`
   is (0,1,2) and a bare `.gk-drawer__sublist a` is (0,1,1), so without it the
   generic row rule wins and a child reads at its parent's weight and its parent's
   indent. */
.gk-drawer nav .gk-drawer__sublist a {
    min-height: 3rem;
    padding-inline-start: var(--gk-space-8);
    color: var(--gk-color-text-soft);
    font-weight: var(--gk-weight-normal);
}

/* ---- The levels --------------------------------------------------------- */

/* One level is on screen at a time and the box around them is what the slide is
   measured in. Everything positional here is `assets/base.js`'s while a slide is
   running and nothing's the rest of the time: the wrapper is a plain block, and
   the module sets `position`, `overflow` and a height on it for the 180ms the two
   levels overlap, then takes all three off. A stylesheet cannot hold that height
   — it is the taller of two elements it would have to measure. */
.gk-drawer__level {
    display: flex;
    flex-direction: column;
}

/* The closed level, and `display: flex` above is why this has to be said: a bare
   `[hidden]` is `display: none` from the browser's own sheet and loses to any
   rule that sets a display of its own. */
.gk-drawer__level[hidden] {
    display: none;
}

/* A rubric that opens a level pushes its chevron to the far edge; a rubric that
   is a link has nothing to push. */
.gk-drawer__rubric {
    justify-content: space-between;
    gap: var(--gk-space-2);
}

.gk-drawer__rubric svg,
.gk-drawer__back svg {
    flex: none;
}

/* The way back, and it reads as a row rather than as a rubric — it is the level's
   own chrome and not a destination in it, which is why the weight rule above
   excludes it. */
.gk-drawer__back {
    gap: var(--gk-space-3);
}

/* ----------------------------------------------------------------------------
   4. Layout
   ---------------------------------------------------------------------------- */

/* The page column — the design's own `.section-content`, and the one box every
   full-width thing on the site is held to: the header's row and the account
   shell.

   The padding tightens as the viewport widens, which looks backwards written down
   and is not: the cap is 1280px, so from 1360px up the viewport is already wider
   than the content and the gutter the padding was buying is there anyway. Below
   that the padding *is* the gutter.

   The block padding stays the modest one this rule has always had, because a
   page gets all its vertical breathing room from it —
   `account/settings_unavailable.html.twig` is a heading and a paragraph inside
   nothing else. Whoever wants a different amount says so: the header's row
   zeroes it, as the design's own header does. */
.gk-container {
    max-width: var(--gk-page);
    margin-inline: auto;
    padding-block: var(--gk-space-4);
    padding-inline: var(--gk-space-4);
}

@media (min-width: 768px) {
    .gk-container {
        padding-inline: var(--gk-space-10);
    }
}

@media (min-width: 1360px) {
    .gk-container {
        padding-inline: 0;
    }
}

/* ----------------------------------------------------------------------------
   5. The site footer — templates/components/footer.html.twig

   One block, `.gk-footer__*`, and unlike the header it needs no second one: the
   whole of it is inside the `<footer>` and none of it escapes the flow.

   **It sits below section 4 on purpose.** `.gk-footer__band` carries
   `.gk-container` as well, and the two are one class each — so which of them
   decides `padding-block` is settled by which comes later in this file and not by
   which is more specific. The band's vertical rhythm is the footer's own (40px,
   64px from 768px, against the column's 16px), so the footer's rule has to be the
   later one. Anything moved above section 4 silently gets the column's padding
   back.

   Nothing here has any behaviour: no `assets/base.js` entry, no `window.gk*`
   wording table, not one attribute that toggles. The one script the prototype
   ships rewrites the year in the copyright, and Twig renders that number instead.
   ---------------------------------------------------------------------------- */

.gk-footer {
    background-color: var(--gk-color-surface);
    /* The one line that separates it from the page, which is `--gk-color-surface-page`
       above it: white on off-white needs the rule to read as an edge at all. */
    border-top: 1px solid var(--gk-color-border);
}

.gk-footer__band {
    padding-block: var(--gk-space-10);
}

@media (min-width: 768px) {
    .gk-footer__band {
        /* 64px, and written out rather than tokenised for the same reason
           `.gk-header__left`'s 64px gap is: the site's space scale stops at 40px
           and one number is not a scale. */
        padding-block: 4rem;
    }
}

/* Stacked on a phone, one row from 768px with the wordmark at one end and the
   social marks at the other. `flex-start` and not the default stretch: the three
   things in the row are three different heights and none of them is a column. */
.gk-footer__top {
    display: flex;
    flex-direction: column;
    gap: var(--gk-space-6);
}

@media (min-width: 768px) {
    .gk-footer__top {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: var(--gk-space-8);
    }
}

/* The class is on the <svg> itself and the colour with it, because the mark's
   paths are `fill="currentColor"` and an external `<use>` inherits colour from the
   element that references it — so the brand red stays in this file, as it does for
   the header's logo. */
.gk-footer__logo {
    display: block;
    flex-shrink: 0;
    width: 170px;
    height: 21px;
    color: var(--gk-color-brand);
}

/* ---- The seven destinations --------------------------------------------- */

/* Two columns on a phone and a wrapping row from 768px. `column-count` and not a
   grid, which is the design's own choice and the right one: it fills the first
   column before it starts the second, so the reading order down the left is the
   order the list is written in. A two-column grid would deal them across. */
.gk-footer__links {
    margin: 0;
    padding: 0;
    list-style: none;
    column-count: 2;
    column-gap: var(--gk-space-6);
}

@media (min-width: 768px) {
    .gk-footer__links {
        column-count: initial;
        display: flex;
        flex-wrap: wrap;
        gap: var(--gk-space-6);
    }
}

/* 44px a row on a phone, because that is what a thumb needs — the same number
   every control on this site is held to. `break-inside` so a row is never split
   across the two columns.

   `stretch` and not `center`, which is the one place this departs from the
   prototype: there the link is a 20px line of text sitting in the middle of a
   44px row, so the row is thumb-sized and the thing she is actually aiming at is
   not. Stretching the link makes the target the row. Nothing about it looks
   different — the text is centred either way, by the link's own rule below. */
.gk-footer__links li {
    display: flex;
    align-items: stretch;
    min-height: 2.75rem;
    break-inside: avoid;
}

@media (min-width: 768px) {
    .gk-footer__links li {
        display: inline-flex;
        min-height: 0;
    }
}

/* The same transparent-underline hover the header's rubrics use, and the comment
   there is the argument: `text-decoration` cannot be transitioned and
   `text-decoration-color` can, so the line is there all along and the text does
   not shift when it arrives. */
.gk-footer__links :is(a, button),
.gk-footer__legal a {
    color: var(--gk-color-text);
    font-size: var(--gk-text-sm);
    line-height: 1.25rem;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 2px;
    transition: text-decoration-color 140ms ease;
}

/* "Nastavenia cookies" is a <button> drawn as one of the links beside it. */
.gk-footer__links button {
    padding: 0;
    border: 0;
    background: none;
    font-family: inherit;
    text-align: start;
    cursor: pointer;
}

.gk-footer__links :is(a, button) {
    /* The whole cell, so the 44px the row bought is the 44px she can hit. */
    display: flex;
    align-items: center;
    width: 100%;
    font-weight: var(--gk-weight-medium);
}

@media (min-width: 768px) {
    .gk-footer__links :is(a, button) {
        display: inline-flex;
        align-items: center;
        width: auto;
        /* The row's 44px again, in the one arrangement where the row is a single
           line: taken as padding and given straight back as a negative margin, so
           the target is 44px tall and the row still measures 20px. */
        padding-block: 0.75rem;
        margin-block: -0.75rem;
    }
}

/* ---- The three social marks --------------------------------------------- */

.gk-footer__social {
    display: flex;
    flex-shrink: 0;
    gap: var(--gk-space-4);
}

/* A 20px mark centred in a 44px circle. The circle is never painted in this
   footer — the design fills it on the red and cream bands and not on the white one
   — but the radius stays, because the box is round the moment anything ever does.
   The hit area is what the 44px is for. */
.gk-footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--gk-radius-full);
    color: var(--gk-color-text-soft);
    transition: color 140ms ease;
}

.gk-footer__social svg {
    display: block;
}

/* ---- The rule, the legal line and the small print ----------------------- */

.gk-footer__divider {
    height: 1px;
    background-color: var(--gk-color-border);
    margin-block: var(--gk-space-10) var(--gk-space-6);
}

.gk-footer__legal {
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .gk-footer__legal {
        flex-direction: row;
        gap: var(--gk-space-6);
    }
}

.gk-footer__legal a {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
}

@media (min-width: 768px) {
    .gk-footer__legal a {
        min-height: 0;
        padding-block: 0.75rem;
        margin-block: -0.75rem;
    }
}

.gk-footer__meta {
    margin-top: var(--gk-space-4);
}

/* The greyest thing on the page and the smallest, which is the whole point: the
   company's address and the year are there to be findable, not to be read. */
.gk-footer__meta p {
    margin: 0;
    color: var(--gk-color-text-soft);
    font-size: var(--gk-text-xs);
    font-weight: var(--gk-weight-medium);
    line-height: 1rem;
}

/* `@media (hover: hover)` on the hover half so a touch device does not paint it on
   the way to a tap; `:active` covers the touch. */
@media (hover: hover) {
    .gk-footer__links :is(a, button):hover,
    .gk-footer__legal a:hover {
        text-decoration-color: currentColor;
    }

    .gk-footer__social a:hover {
        color: var(--gk-color-text);
    }
}

.gk-footer__links :is(a, button):active,
.gk-footer__legal a:active {
    text-decoration-color: currentColor;
}

.gk-footer__social a:active {
    color: var(--gk-color-text);
}

.gk-footer a:focus {
    outline: none;
}

.gk-footer__links :is(a, button):focus-visible,
.gk-footer__legal a:focus-visible {
    box-shadow: var(--gk-ring-focus);
    border-radius: var(--gk-radius-sm);
}

/* The ring follows the circle here, not the square: the box is already round. */
.gk-footer__social a:focus-visible {
    box-shadow: var(--gk-ring-focus);
}

/* ----------------------------------------------------------------------------
   6. Form controls

   Base-level rather than page-level: the settings page, all four auth screens and
   the profile screens to come are built out of the same handful of parts.
   ---------------------------------------------------------------------------- */
.gk-field {
    margin-bottom: var(--gk-space-4);
}

/* 16px/500 — one step lighter than a group heading's 18px/600 above it. */
.gk-field__label {
    display: block;
    margin-bottom: var(--gk-space-2);
    color: var(--gk-color-text);
    font-size: var(--gk-text-base);
    font-weight: var(--gk-weight-medium);
    line-height: 1.5;
}

/* Shared by <input> and <textarea>, so the font has to be stated: form controls
   do not inherit it, and a textarea would otherwise render in the UA's monospace. */
.gk-field__control {
    display: block;
    width: 100%;
    padding: var(--gk-space-3);
    border: 1px solid var(--gk-color-border);
    border-radius: var(--gk-radius-md);
    background-color: var(--gk-color-surface);
    color: var(--gk-color-text);
    font-family: inherit;
    font-size: var(--gk-text-base);
    line-height: 1.5;
}

.gk-field__control:focus-visible {
    outline: none;
    border-color: var(--gk-color-focus);
    box-shadow: var(--gk-ring-focus);
}

/* Set by the page's JS when the server rejects the field, alongside aria-invalid. */
.gk-field__control--invalid {
    border-color: var(--gk-color-danger);
}

/* A value she can read but not change, such as a nickname whose one change is spent. */
.gk-field__control[readonly] {
    background-color: var(--gk-color-surface-alt);
}

.gk-field__hint {
    margin: var(--gk-space-1) 0 0;
    color: var(--gk-color-text-muted);
    font-size: var(--gk-text-xs);
}

/* Between a label and the control it belongs to, where .gk-field__hint sits under
   the control. Two different jobs: a hint says what the field will accept and is
   read after a rejection, a note says why the field is being asked at all and is
   read before anything is typed. Bigger and darker than a hint for that reason. */
.gk-field__note {
    margin: 0 0 var(--gk-space-2);
    color: var(--gk-color-text-soft);
    font-size: var(--gk-text-sm);
    line-height: 1.43;
}

/* Rendered empty and filled by JS, so it has to collapse when it says nothing —
   otherwise every field carries a blank line under it. */
.gk-field__error {
    margin: var(--gk-space-1) 0 0;
    color: var(--gk-color-danger);
    font-size: var(--gk-text-sm);
}

.gk-field__error:empty {
    display: none;
}

.gk-button {
    padding: var(--gk-space-3) var(--gk-space-6);
    border: 1px solid transparent;
    border-radius: var(--gk-radius-md);
    background-color: transparent;
    color: var(--gk-color-text);
    font-family: inherit;
    font-size: var(--gk-text-sm);
    font-weight: var(--gk-weight-medium);
    cursor: pointer;
}

.gk-button:focus-visible {
    outline: none;
    box-shadow: var(--gk-ring-focus);
}

/* Sometimes the button is a link — a way back that is a navigation and nothing
   more. Only the underline has to go; --block gives it the layout. */
a.gk-button {
    text-decoration: none;
}

/* Not `cursor: not-allowed` — every disabled button on the site is disabled
   because a request is in flight, which is a wait, not a refusal. */
.gk-button:disabled {
    opacity: 0.6;
    cursor: progress;
}

.gk-button--primary {
    background-color: var(--gk-color-brand);
    color: var(--gk-color-on-brand);
}

.gk-button--primary:hover:not(:disabled) {
    opacity: 0.9;
}

.gk-button--ghost {
    border-color: var(--gk-color-border);
}

.gk-button--ghost:hover:not(:disabled) {
    background-color: var(--gk-color-surface-alt);
}

.gk-button--danger {
    border-color: var(--gk-color-border);
    color: var(--gk-color-danger);
}

.gk-button--danger:hover:not(:disabled) {
    border-color: var(--gk-color-danger);
}

/* A field's message line, and the fixed slot it lives in.

   The slot has a height whether or not it says anything, which is the whole
   point: an error appearing must not push the rest of the form down under her
   thumb. One field can carry two of these — a standing hint and an error that
   replaces it — so the slot holds them and they take turns being [hidden].

   Not the same thing as .gk-field__error above, which the settings page fills by
   writing textContent into it. This one carries an icon, so its text lives in a
   <span> the page's JS writes instead; settings should move onto it the next time
   that page is touched, and the older rule can go with it. */
.gk-field__slot {
    min-height: 1.25rem;
    margin-top: var(--gk-space-1);
}

.gk-field__message {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin: 0;
    color: var(--gk-color-text-soft);
    font-size: var(--gk-text-xs);
    line-height: 1.5;
}

.gk-field__message--error {
    color: var(--gk-color-danger);
}

.gk-field__message--success {
    color: var(--gk-color-success);
}

/* The icon keeps its size when the sentence beside it wraps. */
.gk-field__message svg {
    flex-shrink: 0;
}

/* The asterisk on a required field's label. */
.gk-field__required {
    color: var(--gk-color-brand);
}

/* A form-wide failure — the save was refused, the service is down, the bot check
   said no — as against a rejected field, which has .gk-field__message. Reads
   directly above the button that produced it.

   Both colours are mixed from --gk-color-danger rather than stated, so the box
   follows the token if it is ever re-pointed. */
.gk-alert {
    display: flex;
    align-items: flex-start;
    gap: var(--gk-space-2);
    padding: 0.625rem var(--gk-space-3);
    border: 1px solid var(--gk-color-danger-border);
    border-radius: var(--gk-radius-md);
    background-color: var(--gk-color-danger-surface);
    color: var(--gk-color-text);
    font-size: var(--gk-text-sm);
    line-height: 1.25rem;
}

/* Aligned to the first line of text rather than to the box, which is what keeps
   it looking right when the sentence runs to three lines. */
.gk-alert__icon {
    flex-shrink: 0;
    margin-top: 2px;
    stroke: var(--gk-color-danger);
}

/* Something she is being told rather than something that went wrong. */
.gk-notice {
    display: flex;
    align-items: flex-start;
    padding: 0.625rem var(--gk-space-3);
    border: 1px solid var(--gk-color-border);
    border-radius: var(--gk-radius-md);
    background-color: var(--gk-color-surface-notice);
    color: var(--gk-color-text);
    font-size: var(--gk-text-sm);
    line-height: 1.25rem;
}

/* The 48px control height the whole site draws buttons at. */
.gk-button--lg {
    min-height: 3rem;
    padding-inline: var(--gk-space-4);
    font-size: var(--gk-text-base);
}

/* Full width, and a row inside so a spinner can sit beside the label without
   knocking it off centre. */
.gk-button--block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--gk-space-2);
    width: 100%;
}

/* The in-flight marker on a button that is waiting for an answer.

   Reduced motion slows it rather than stopping it: a progress indicator that
   does not move reads as a page that has died, which is the opposite of what it
   is there to say. */
.gk-spinner {
    flex-shrink: 0;
    animation: gk-spin 0.8s linear infinite;
}

@keyframes gk-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .gk-spinner {
        animation-duration: 2.4s;
    }
}

/* ----------------------------------------------------------------------------
   Chips

   Base-level because two pages are built out of them: the three questions
   registration ends on and every field of the beauty profile. They started in
   styles/pages/signup-profile.css and moved here the moment the second page
   wanted them, which is what CLAUDE.md says makes something not page-specific.
   ---------------------------------------------------------------------------- */

.gk-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gk-space-2);
}

/* 44px tall whatever the label, because that is what a thumb needs. */
.gk-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0 var(--gk-space-3);
    border: 1px solid var(--gk-color-border);
    border-radius: var(--gk-radius-full);
    background-color: var(--gk-color-surface);
    color: var(--gk-color-text);
    font-family: inherit;
    font-size: var(--gk-text-sm);
    font-weight: var(--gk-weight-normal);
    text-align: center;
    cursor: pointer;
}

.gk-chip:hover {
    border-color: var(--gk-color-text);
}

.gk-chip:focus-visible {
    outline: none;
    box-shadow: var(--gk-ring-focus);
}

/* Chosen. `aria-pressed` is both the state and the selector, so there is no
   second class to keep in step with it. */
.gk-chip[aria-pressed='true'] {
    border-color: var(--gk-color-selected-border);
    background-color: var(--gk-color-selected);
}

/* She has picked her three: the rest go quiet rather than away, so she can see
   what she is choosing between. Still clickable — tapping one says why, which is
   more use than nothing happening. Hence aria-disabled and not `disabled`. */
.gk-chip[aria-disabled='true'] {
    opacity: 0.4;
    cursor: not-allowed;
}

.gk-chip[aria-disabled='true']:hover {
    border-color: var(--gk-color-border);
}

/* ----------------------------------------------------------------------------
   7. Auth shell — registration, the code screen, sign-in, the five questions

   Shell in the same sense the header is: chrome the flow is drawn inside rather
   than any one page's content. Four pages share it, which is why it is here and
   not in a page's stylesheet (see CLAUDE.md) — and all four drop the site header
   by overriding base.html.twig's `header` block with nothing, as the design brief
   specifies for a standalone page.

   One column, --gk-column wide, centred, on the ordinary page background. What
   differs between the four is which of the parts below they use.
   ---------------------------------------------------------------------------- */

/* The logo row: 56px tall, the mark centred in it, and it is a link home. */
.gk-auth__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 3.5rem;
    padding-inline: var(--gk-space-4);
}

/* The wordmark SVG paints with currentColor, as in the header. */
.gk-auth__logo a {
    display: flex;
    color: var(--gk-color-brand);
}

/* Height drives it and width follows the viewBox, so the mark keeps its ratio. */
.gk-auth__logo svg {
    display: block;
    width: auto;
    height: 21px;
}

/* Registration's two steps. Absent from the code screen when it is reached from
   sign-in, which is not a step of anything. */
.gk-auth__progress {
    padding: var(--gk-space-4) var(--gk-space-4) 0;
}

.gk-auth__progress-track {
    width: 100%;
    max-width: var(--gk-column);
    height: 4px;
    margin-inline: auto;
    overflow: hidden;
    border-radius: var(--gk-radius-full);
    background-color: var(--gk-color-border);
}

.gk-auth__progress-fill {
    height: 100%;
    border-radius: inherit;
    background-color: var(--gk-color-brand);
}

.gk-auth__body {
    padding: 0 var(--gk-space-4) var(--gk-space-8);
}

.gk-auth__column {
    width: 100%;
    max-width: var(--gk-column);
    margin-inline: auto;
}

/* The one heading on the page. Not h1's 60px hero size, and not the grey the
   element default gives it: on a flow page the heading is the ink colour and
   steps up a size once there is room for it. */
.gk-auth__title {
    margin: var(--gk-space-4) 0 0;
    color: var(--gk-color-text);
    font-family: var(--gk-font-display);
    font-size: var(--gk-text-3xl);
    font-weight: var(--gk-weight-bold);
    line-height: 1.06;
    letter-spacing: -0.012em;
    text-align: center;
}

/* Further down the page when a progress bar sits above it: the bar has already
   taken the space at the top, and the two together would otherwise crowd. */
.gk-auth:has(.gk-auth__progress) .gk-auth__title {
    margin-top: var(--gk-space-8);
}

@media (min-width: 768px) {
    .gk-auth__title {
        font-size: var(--gk-text-4xl);
        line-height: 1;
    }
}

/* The sentence under the heading. 14px on a 20px line, as the design sets all of
   its small text — the body's 1.5 would make it 21. */
.gk-auth__lede {
    margin: var(--gk-space-2) 0 0;
    color: var(--gk-color-text-soft);
    font-size: var(--gk-text-sm);
    line-height: 1.25rem;
    text-align: center;
}

.gk-auth__form {
    display: flex;
    flex-direction: column;
    gap: var(--gk-space-4);
    margin: 0;
}

/* A field inside the auth form: label, control, message slot. Stacked by its own
   gap rather than by .gk-field's bottom margin, which would double up with the
   form's. */
.gk-auth__field {
    display: flex;
    flex-direction: column;
    gap: var(--gk-space-2);
}

.gk-auth__field > .gk-field__label {
    margin-bottom: 0;
}

/* 48px, the height the shell's buttons are drawn at, where the site's control is
   50: 11px of padding either side of a 24px line and two 1px borders. */
.gk-auth__field .gk-field__control {
    padding-block: 11px;
}

/* The auth screens' field label — a weight up from the plain one, and set
   tight, because there it is the only heading the field has. */
.gk-field__label--strong {
    color: var(--gk-color-text);
    font-size: var(--gk-text-base);
    font-weight: 600;
    line-height: 1;
}

/* Google and Apple. A link rather than a button — the round trip is a plain
   navigation — so the height has to be asserted and the underline removed. */
.gk-auth__providers {
    display: flex;
    flex-direction: column;
    gap: var(--gk-space-6);
    margin-top: var(--gk-space-6);
}

.gk-auth__provider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    /* The icon is positioned absolutely, so the label is centred in the button
       rather than in what is left of it — and the padding keeps a long one from
       running underneath. */
    padding: var(--gk-space-2) 3rem;
    min-height: 3rem;
    border: 1px solid var(--gk-color-border);
    border-radius: var(--gk-radius-md);
    background-color: var(--gk-color-surface);
    color: var(--gk-color-text);
    font-family: inherit;
    font-size: var(--gk-text-base);
    font-weight: var(--gk-weight-medium);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.gk-auth__provider:hover {
    border-color: var(--gk-color-text);
}

.gk-auth__provider:focus-visible {
    outline: none;
    box-shadow: var(--gk-ring-focus);
}

/* Waiting for the provider. Not `disabled`, because this is a link. */
.gk-auth__provider[aria-busy='true'] {
    pointer-events: none;
}

.gk-auth__provider-icon {
    position: absolute;
    left: var(--gk-space-4);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
}

/* "alebo cez e-mail", with a short rule either side. Not centred between the
   provider buttons and the form: the design gives it 32px above and 34px below. */
.gk-auth__divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--gk-space-2);
    margin: var(--gk-space-8) 0 2.125rem;
    color: var(--gk-color-text-soft);
    font-size: var(--gk-text-sm);
    font-weight: var(--gk-weight-medium);
    line-height: 1.25rem;
}

.gk-auth__divider::before,
.gk-auth__divider::after {
    content: '';
    width: 40px;
    height: 1px;
    background-color: var(--gk-color-border);
}

/* The primary button sits a little further from what is above it than the form's
   own gap puts it — it is the end of the form, not another row of it. The label
   is the regular weight, which is the design's, not the button's medium. */
.gk-auth__submit {
    margin-top: var(--gk-space-2);
    font-weight: var(--gk-weight-normal);
}

/* Except under a field, where the field's message slot already is that extra
   room: 48px from the control to the button, the design's, rather than 56. */
.gk-auth__field ~ .gk-auth__submit {
    margin-top: 0;
}

/* A link inside running text that still has a thumb-sized target: the padding
   makes the hit area, the equal negative margin keeps it from moving the line.
   `position: relative` is what lifts the padded area above the text beside it. */
.gk-auth__inline-link {
    position: relative;
    display: inline-block;
    padding: 14px 4px;
    margin: -14px -4px;
    color: var(--gk-color-text);
}

/* The small print at the foot of the sign-in form, which is where consent to the
   terms is given now that any submit there may be the one that opens an account. */
.gk-auth__legal {
    margin: var(--gk-space-5) 0 0;
    color: var(--gk-color-text-soft);
    font-size: var(--gk-text-xs);
    line-height: 1.5;
    text-align: center;
}

.gk-auth__legal a {
    color: var(--gk-color-text);
}

/* A secondary action that is not the point of the screen — resend the code, sign
   in with one instead of a password. A button, because it does something, drawn
   as a link, because it is not what she came for. */
.gk-auth__quiet {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--gk-space-2);
    min-height: 2.75rem;
    padding: 0 var(--gk-space-2);
    border: 0;
    background: none;
    color: var(--gk-color-text-soft);
    font-family: inherit;
    font-size: var(--gk-text-sm);
    text-decoration: underline;
    cursor: pointer;
}

.gk-auth__quiet:focus-visible {
    outline: none;
    box-shadow: var(--gk-ring-focus);
}

/* Nothing to wait for here, unlike .gk-button:disabled — the cooldown is a rule,
   not a request in flight. */
.gk-auth__quiet:disabled {
    opacity: 0.4;
    cursor: default;
}

.gk-auth__rule {
    height: 1px;
    margin: var(--gk-space-8) 0;
    background-color: var(--gk-color-border);
}

/* ----------------------------------------------------------------------------
   8. Account shell — "Moja beauty" and the settings screen

   The frame every page under /ucet/ that is *hers* is drawn in: the identity
   block at the top, the strip of sections under it, and the column of groups and
   cards below — one 550px column at every width, the design's. Shell in the same sense as the auth block above it — chrome, not
   any one page's content.

   It started as `.gk-beauty__*` in assets/styles/pages/profile.css, which was
   right while "Moja beauty" was the only screen built from the design's profile
   layout. The settings page is the second, and two pages wanting something is
   what stops it being one page's (CLAUDE.md). Nothing about the rules changed in
   the move; only the prefix.

   Two things are worth knowing before moving any of it again:

   - **The card is full-bleed below 768px.** `margin-inline: -16px` pulls it out
     to the edges of the viewport and it loses its corners and its shadow, because
     a list of rows the width of the screen is what the design has on a phone. It
     gets both back at 768px, where it is a card inside a column. The -16px is
     `.gk-account`'s own horizontal padding, spelled again because a negative
     margin cannot read it back.
   - **The sections are a strip at every width.** They were a card beside the
     column from 768px, in a two-column grid; the design dropped that for one
     narrow column with the strip on top of it, so the frame is a plain stack.
   ---------------------------------------------------------------------------- */

/* The design's column: 550px of content and the 16px gutters around it, centred
   under the header at every width. Narrower than anything else on the site on
   purpose — a profile is read and filled in, one row at a time, and a row the
   width of the header would put her answer a whole screen away from its
   question. */
.gk-account {
    box-sizing: border-box;
    max-width: calc(34.375rem + var(--gk-space-4) * 2);
    margin-inline: auto;
    padding: var(--gk-space-6) var(--gk-space-4) 4rem;
}

@media (min-width: 768px) {
    .gk-account {
        padding-top: var(--gk-space-10);
    }
}

/* Who she is, where she can go, what she came for — in source order. */
.gk-account__grid {
    display: flex;
    flex-direction: column;
    gap: var(--gk-space-6);
}

/* ----------------------------------------------------------------------------
   Who she is
   ---------------------------------------------------------------------------- */
.gk-account__identity {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: var(--gk-space-4);
    margin-bottom: var(--gk-space-4);
}

/* Bigger on a phone than on a desktop, which is not a mistake: it is the whole
   of the identity block there, and one item in a two-column header here. */
.gk-account__avatar {
    position: relative;
    display: block;
    flex: none;
    width: 6rem;
    height: 6rem;
    overflow: hidden;
    border-radius: var(--gk-radius-full);
    background-color: var(--gk-color-avatar);
}

@media (max-width: 374px) {
    .gk-account__avatar {
        width: 4.5rem;
        height: 4.5rem;
    }
}

@media (min-width: 768px) {
    .gk-account__avatar {
        width: 5rem;
        height: 5rem;
    }
}

.gk-account__avatar-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* The initial stands in for a picture, so it sits on the avatar's green rather
   than beside it. */
.gk-account__avatar-initial {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gk-color-on-brand);
    font-size: 2rem;
    font-weight: 600;
}

@media (min-width: 768px) {
    .gk-account__avatar-initial {
        font-size: 1.625rem;
    }
}

.gk-account__identity-meta {
    flex: 1;
    min-width: 11.25rem;
}

.gk-account__name {
    margin: 0;
    color: var(--gk-color-text);
    font-size: var(--gk-text-lg);
    font-weight: 600;
    line-height: 1.33;
}

@media (min-width: 768px) {
    .gk-account__name {
        font-size: 1.25rem;
        line-height: 1.4;
    }
}

.gk-account__nickname {
    margin: 2px 0 0;
    color: var(--gk-color-text-soft);
    font-size: 0.9375rem;
    line-height: 1.33;
}

/* Three fields' worth of answer under her name — `App\Service\AccountIdentity`,
   or "Moja beauty"'s own. Hidden when it says nothing. */
.gk-account__summary {
    margin: var(--gk-space-3) 0 0;
    color: var(--gk-color-text);
    font-size: var(--gk-text-sm);
    font-weight: 600;
    line-height: 1.43;
}

.gk-account__summary-dot {
    margin: 0 var(--gk-space-2);
    color: var(--gk-color-text-muted);
}

/* ----------------------------------------------------------------------------
   The avatar, which is a button on every screen

   Same disc as everywhere else — .gk-account__avatar draws it — with the browser's
   button chrome taken off and a camera badge sitting over its corner. The badge is
   `pointer-events: none` and outside the disc's own bounds, so it neither eats the
   press nor gets clipped by the border-radius: the button clips its children, and
   the badge is drawn by an ::after-like overlay that overflows it.
   ---------------------------------------------------------------------------- */
.gk-account__avatar-button {
    /* The disc clips the picture, so a badge inside it would lose its corner.
       Visible overflow is what lets the badge hang off the edge. */
    overflow: visible;
    padding: 0;
    border: 0;
    cursor: pointer;
}

/* The picture is what has to be clipped, now that the button is not. */
.gk-account__avatar-button .gk-account__avatar-image {
    border-radius: var(--gk-radius-full);
}

.gk-account__avatar-button:focus-visible {
    outline: none;
    box-shadow: var(--gk-ring-focus);
}

.gk-account__avatar-badge {
    position: absolute;
    right: -4px;
    bottom: -4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border: 1px solid var(--gk-color-border);
    border-radius: var(--gk-radius-full);
    background-color: var(--gk-color-surface);
    color: var(--gk-color-text);
    /* The button underneath takes the press wherever it lands. */
    pointer-events: none;
    transition: background-color 140ms ease;
}

.gk-account__avatar-button:hover .gk-account__avatar-badge {
    background-color: var(--gk-color-surface-hover);
}

/* ----------------------------------------------------------------------------
   The sections of her account

   Icons over one-word labels, a strip at every width: full-bleed with a rule under
   it on a phone, the column's width from 768px. `grid-auto-flow: column` rather
   than a stated number of columns, so a fifth section is a row in the layout's
   list and nothing here. The current one is a 2px line under its label, the
   others underline on hover — a line and never a fill, like every hover on this
   screen.
   ---------------------------------------------------------------------------- */
.gk-account__nav {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    align-items: center;
    margin-inline: calc(var(--gk-space-4) * -1);
    padding-inline: var(--gk-space-4);
    border-bottom: 1px solid var(--gk-color-border);
}

@media (min-width: 768px) {
    .gk-account__nav {
        margin-inline: 0;
        padding-inline: 0;
    }
}

.gk-account__nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--gk-space-1);
    min-height: 4.5rem;
    padding: 0 var(--gk-space-1);
    color: var(--gk-color-text);
    text-align: center;
    text-decoration: none;
}

/* Inset, because the strip is flush with the edge of the screen on a phone. */
.gk-account__nav-link:focus-visible {
    outline: none;
    box-shadow: inset var(--gk-ring-focus);
}

.gk-account__nav-icon {
    display: block;
    flex: none;
    color: var(--gk-color-text-soft);
}

.gk-account__nav-label {
    position: relative;
    font-size: var(--gk-text-xs);
    font-weight: var(--gk-weight-medium);
    line-height: 1.33;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 2px;
    transition: text-decoration-color 140ms ease;
}

/* `aria-current` is the state and the selector both, as `aria-pressed` is on a
   chip: there is no second class to keep in step with it. */
.gk-account__nav-link[aria-current='page'] .gk-account__nav-icon {
    color: var(--gk-color-text);
}

.gk-account__nav-link[aria-current='page'] .gk-account__nav-label {
    font-weight: 600;
}

.gk-account__nav-link[aria-current='page'] .gk-account__nav-label::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -4px;
    left: 0;
    height: 2px;
    background-color: currentColor;
}

@media (hover: hover) {
    .gk-account__nav-link:not([aria-current='page']):hover .gk-account__nav-label {
        text-decoration-color: currentColor;
    }
}

.gk-account__nav-link:not([aria-current='page']):active .gk-account__nav-label {
    text-decoration-color: currentColor;
}

/* ----------------------------------------------------------------------------
   The column a screen is written in
   ---------------------------------------------------------------------------- */
.gk-account__main {
    flex: 1;
    min-width: 0;
}

/* The page's heading and its groups, one under the other. */
.gk-account__view {
    display: flex;
    flex-direction: column;
    gap: var(--gk-space-6);
}

/* 36/38 on a phone and 40/44 from 768px — the design's account title, a step
   under the flow pages' 36/48. */
.gk-account__title {
    margin: 0;
    color: var(--gk-color-text);
    font-family: var(--gk-font-display);
    font-size: var(--gk-text-3xl);
    font-weight: var(--gk-weight-bold);
    line-height: 2.375rem;
}

@media (min-width: 768px) {
    .gk-account__title {
        font-size: 2.5rem;
        line-height: 2.75rem;
    }
}

.gk-account__group {
    display: flex;
    flex-direction: column;
    gap: var(--gk-space-3);
}

/* The heading and the group's note read as one block, tighter than the gap
   between that block and the card under it. */
.gk-account__group-headwrap {
    display: flex;
    flex-direction: column;
    gap: var(--gk-space-1);
}

/* Inter and not the display face: it labels a group of fields rather than
   heading the page, the same call .gk-profile__section makes on registration. */
.gk-account__group-heading {
    margin: 0;
    color: var(--gk-color-text);
    font-family: var(--gk-font-body);
    font-size: var(--gk-text-lg);
    font-weight: 600;
    line-height: 1.33;
}

.gk-account__group-note {
    margin: 0;
    color: var(--gk-color-text-soft);
    font-size: var(--gk-text-sm);
    line-height: 1.43;
}

/* Full-bleed on a phone, a card from 768px — see the note at the top. */
.gk-account__card {
    margin-inline: calc(var(--gk-space-4) * -1);
    overflow: hidden;
    border-top: 1px solid var(--gk-color-border);
    border-bottom: 1px solid var(--gk-color-border);
    background-color: var(--gk-color-surface);
}

@media (min-width: 768px) {
    .gk-account__card {
        margin-inline: 0;
        border-top: 0;
        border-bottom: 0;
        border-radius: var(--gk-radius-lg);
        box-shadow: var(--gk-shadow-md);
    }
}

/* A card whose content is fields rather than pressable rows: it needs its own
   padding, where a list of rows carries the padding on each row. */
/* 16px and not the design's 24, and the difference is not a disagreement: its
   message slot pulls itself up 4px under a field and `.gk-field__slot` pushes
   itself down 4px, so 16 here lands the same 40px between one control and the
   next label that the design draws. */
.gk-account__card--fields {
    display: flex;
    flex-direction: column;
    gap: var(--gk-space-4);
    padding: var(--gk-space-4);
}

/* `.gk-field` carries a bottom margin of its own, for the forms that are a
   column of them and nothing else. Here the flex gap is what spaces them, and
   leaving both on stacks 16px twice. */
.gk-account__card--fields .gk-field {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .gk-account__card--fields {
        padding: var(--gk-space-5);
    }
}

/* ----------------------------------------------------------------------------
   9. Checkbox

   One box and the sentence beside it, the whole row being the label and so the
   whole row being the target. Two pages ask for one — the newsletter box at the
   end of registration and "Zobrazovať moje meno na profile" in the settings —
   which is what took it out of `signup-profile.css`, where it was written first.

   `appearance: none` and the tick drawn here, because a native checkbox cannot
   be given the site's radius or its brand colour. The tick is a data URI rather
   than a `<use>` from the sprite: a `<use>` needs an element to live in, and a
   checkbox has no room for one inside it.
   ---------------------------------------------------------------------------- */
.gk-checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--gk-space-2);
    min-height: 2.75rem;
    font-size: var(--gk-text-sm);
    line-height: 1.43;
    cursor: pointer;
}

.gk-checkbox__control {
    appearance: none;
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    margin: 0;
    border: 1px solid var(--gk-color-border);
    border-radius: var(--gk-radius-md);
    background-color: var(--gk-color-surface);
    cursor: pointer;
}

/* The stroke is spelled as white because a data URI cannot read currentColor. */
.gk-checkbox__control:checked {
    border-color: var(--gk-color-brand);
    background-color: var(--gk-color-brand);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.gk-checkbox__control:focus-visible {
    outline: none;
    box-shadow: var(--gk-ring-focus);
}

/* The whole row fades, the sentence beside the box included — it is the label. */
.gk-checkbox:has(.gk-checkbox__control:disabled) {
    opacity: 0.4;
    cursor: default;
}

.gk-checkbox__control:disabled {
    cursor: default;
}

/* 2px, so one line of 20px text reads as centred against a 24px box while a
   second line still starts at the top of it. */
.gk-checkbox__text {
    padding-top: 2px;
}

/* The quieter half of a two-line label: what ticking the box actually does. */
.gk-checkbox__note {
    display: block;
    margin-top: 2px;
    color: var(--gk-color-text-soft);
    font-size: var(--gk-text-xs);
    line-height: 1.33;
}

/* ----------------------------------------------------------------------------
   10. Switch

   A `<button role="switch">`, and `aria-checked` is its state. Two screens have
   one: the newsletter row in the settings, which saves on the press, and "Zobrazovať
   verejne" in the three concern editors of "Moja beauty", saved with the field.

   **The button is 44px square and the track is not.** The thing she presses has
   to be a tap target; the thing she reads is 44x26 sitting inside it. That is the
   design's arrangement and it is the reason the track is a child element rather
   than the button's own background.

   **Nothing here reads `disabled` as "broken".** Wherever one is disabled, a
   line beside it says why in words — the dimming is the hint, not the message.
   ---------------------------------------------------------------------------- */
.gk-switch {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    border-radius: var(--gk-radius-md);
    background: transparent;
    cursor: pointer;
}

.gk-switch:focus {
    outline: none;
}

.gk-switch:focus-visible {
    box-shadow: var(--gk-ring-focus);
}

.gk-switch:disabled {
    opacity: 0.4;
    cursor: default;
}

/* A press in flight keeps the colour it has just moved to — the flip is optimistic
   and the revert is what a failure does — so all this says is "not again yet". */
.gk-switch[aria-busy='true'] {
    cursor: progress;
}

.gk-switch__track {
    position: relative;
    flex: none;
    width: 2.75rem;
    height: 1.625rem;
    border-radius: var(--gk-radius-full);
    background: var(--gk-color-border);
    transition: background 140ms ease;
}

.gk-switch[aria-checked='true'] .gk-switch__track {
    background: var(--gk-color-brand);
}

.gk-switch__thumb {
    position: absolute;
    top: 0.1875rem;
    left: 0.1875rem;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: var(--gk-radius-full);
    background: var(--gk-color-surface);
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.15);
    transition: transform 140ms ease;
}

.gk-switch[aria-checked='true'] .gk-switch__thumb {
    transform: translateX(1.125rem);
}

@media (prefers-reduced-motion: reduce) {
    .gk-switch__track,
    .gk-switch__thumb {
        transition: none;
    }
}

/* ----------------------------------------------------------------------------
   11. Breadcrumb — the magazine's listing and its articles, `nav.gk-crumbs > ol`.
   `new-magazin.html` and `new-magazin-article.html` draw it with one set of
   values; it came here from the listing's stylesheet when the article page
   became the second page to draw it.
   ---------------------------------------------------------------------------- */

/* A trail too long for one line wraps between steps, never inside a name. */
.gk-crumbs ol {
    display: flex;
    flex-wrap: wrap;
    row-gap: var(--gk-space-2);
    margin: 0 0 var(--gk-space-4);
    padding: 0;
    list-style: none;
    color: var(--gk-color-text-muted);
    font-size: var(--gk-text-xs);
    line-height: 1rem;
    white-space: nowrap;
}

/* The separator is drawn, and its alt text is empty so it is not read out. It
   closes the step before it, so a wrapped trail keeps it at the end of the line. */
.gk-crumbs li:not(:last-child)::after {
    content: "/";
    content: "/" / "";
    margin: 0 var(--gk-space-2);
}

/* 12px text in a 44px target: the padding makes the box, the margin gives the
   room back so the line does not grow. */
.gk-crumbs a {
    display: inline-block;
    margin: -0.875rem calc(-1 * var(--gk-space-1));
    padding: 0.875rem var(--gk-space-1);
    color: inherit;
    text-decoration: none;
}

@media (hover: hover) {
    .gk-crumbs a:hover {
        text-decoration: underline;
    }
}

.gk-crumbs a:active {
    text-decoration: underline;
}

/* The ring every control has, drawn round the name and not the 44px target:
   padding and margin shrink together, so the line does not move. */
.gk-crumbs a:focus-visible {
    margin-block: -0.125rem;
    padding-block: 0.125rem;
    outline: none;
    box-shadow: var(--gk-ring-focus);
    border-radius: var(--gk-radius-sm);
}

/* ----------------------------------------------------------------------------
   Visually hidden, still read — the words a screen reader needs beside a
   number or an icon everybody else reads at a glance.
   ---------------------------------------------------------------------------- */
.gk-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* ----------------------------------------------------------------------------
   Práve trenduje — `templates/magazine/trending.html.twig`, under the product
   page and under the product listing. The page around it sets the spacing above.
   ---------------------------------------------------------------------------- */
.gk-trending {
    display: flex;
    flex-direction: column;
    scroll-margin-top: 4rem;
}

@media (min-width: 768px) {
    .gk-trending {
        scroll-margin-top: 5rem;
    }
}

.gk-trending__title {
    margin: 0;
    font-family: var(--gk-font-body);
    font-size: var(--gk-text-lg);
    font-weight: var(--gk-weight-semibold);
    line-height: 1.5rem;
    color: var(--gk-color-text);
}

/* Bleeds to the screen edge on a phone, so a card cut off at the right says
   there is more; held to the column from 768px up. */
.gk-trending__rail {
    display: flex;
    gap: var(--gk-space-4);
    margin: var(--gk-space-6) calc(-1 * var(--gk-space-4)) 0;
    padding: 0 var(--gk-space-4) var(--gk-space-1);
    overflow-x: auto;
    scrollbar-width: none;
}

.gk-trending__rail::-webkit-scrollbar {
    display: none;
}

@media (min-width: 768px) {
    .gk-trending__rail {
        margin-inline: 0;
        padding-inline: 0;
    }
}

.gk-trending__article {
    display: block;
    flex: 0 0 auto;
    width: 9.25rem;               /* 148px, the rail's card width */
    color: inherit;
    text-decoration: none;
    border-radius: var(--gk-radius-md);
}

.gk-trending__article:focus-visible {
    outline: none;
    box-shadow: var(--gk-ring-focus);
}

.gk-trending__media {
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: var(--gk-radius-lg);
    background: var(--gk-color-surface-alt);
}

.gk-trending__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gk-trending__name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    margin-top: var(--gk-space-2);
    font-size: var(--gk-text-sm);
    font-weight: var(--gk-weight-semibold);
    line-height: 1.125rem;
    overflow-wrap: anywhere;
}

@media (hover: hover) {
    .gk-trending__article:hover .gk-trending__name {
        text-decoration: underline;
    }
}

/* ----------------------------------------------------------------------------
   The product card — `templates/product/card.html.twig`, in the category
   listing's grid and the product page's closing rail. 148px wide in a rail; a
   grid sets its own width through the column.
   ---------------------------------------------------------------------------- */
/* Positioned, so the screen-reader texts inside stay in the card: unanchored
   they sit where the rail scrolled them, past the page's right edge. */
.gk-product-card {
    position: relative;
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: var(--gk-space-1);
    width: 9.25rem;               /* 148px */
    color: inherit;
    text-decoration: none;
    border-radius: var(--gk-radius-md);
}

.gk-product-card:focus-visible {
    outline: none;
    box-shadow: var(--gk-ring-focus);
}

.gk-product-card__media {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: var(--gk-radius-lg);
    background: var(--gk-color-surface);
}

.gk-product-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    padding: var(--gk-space-2);
    object-fit: contain;
}

.gk-product-card__sale {
    position: absolute;
    top: var(--gk-space-2);
    left: var(--gk-space-2);
    padding: var(--gk-space-1) 6px;
    border-radius: var(--gk-radius-full);
    background: var(--gk-color-text);
    color: var(--gk-color-on-brand);
    font-size: var(--gk-text-xs);
    font-weight: var(--gk-weight-semibold);
    line-height: 1rem;
}

.gk-product-card__brand {
    font-size: 0.625rem;
    line-height: 0.875rem;
    color: var(--gk-color-text-soft);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.gk-product-card__name {
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: var(--gk-text-sm);
    font-weight: var(--gk-weight-semibold);
    line-height: 1.25rem;
    text-wrap: balance;
}

@media (hover: hover) {
    .gk-product-card:hover .gk-product-card__name {
        text-decoration: underline;
    }
}

.gk-product-card__price {
    margin-top: auto;
    font-weight: var(--gk-weight-semibold);
    line-height: 1.5rem;
    font-variant-numeric: tabular-nums;
}

.gk-product-card__from {
    font-size: var(--gk-text-xs);
    font-weight: var(--gk-weight-normal);
    color: var(--gk-color-text-soft);
}

.gk-product-card__none,
.gk-product-card__meta {
    font-size: var(--gk-text-xs);
    line-height: 1rem;
    color: var(--gk-color-text-soft);
}

/* The rating line and the price are one group at the card's bottom, so cards
   of different name lengths line up in the rail: the price 16px under the
   rating, and at the bottom on its own when there is no rating. The same line
   as the listing's tile. */
.gk-product-card__rating {
    display: flex;
    align-items: center;
    gap: var(--gk-space-1);
    margin-top: auto;
    color: var(--gk-color-text-soft);
    font-size: var(--gk-text-xs);
    line-height: 1rem;
}

.gk-product-card__rating svg {
    flex: none;
    fill: var(--gk-color-rating);
}

.gk-product-card__rating-value {
    color: var(--gk-color-text);
    font-weight: var(--gk-weight-semibold);
    font-variant-numeric: tabular-nums;
}

.gk-product-card__rating-count {
    font-size: 0.625rem;
    line-height: 0.875rem;
    font-variant-numeric: tabular-nums;
}

/* 16px between them: this 12px and the card's 4px gap. */
.gk-product-card__rating + .gk-product-card__price {
    margin-top: var(--gk-space-3);
}

/* ----------------------------------------------------------------------------
   A modal dialog locks the page behind it. `showModal()` makes the page inert
   but leaves it scrollable, so a wheel or a swipe over the backdrop moved the
   product page under a picker or the review form.
   ---------------------------------------------------------------------------- */
html:has(dialog[open]:modal) {
    overflow: hidden;
    /* The hidden scrollbar's room, as padding, so the page does not jump
       sideways on a desktop. Not `scrollbar-gutter: stable`: that narrows the
       viewport the dialog and its backdrop are laid out in, and left a strip as
       wide as the scrollbar undimmed. `--gk-scrollbar` is measured in base.js. */
    padding-right: var(--gk-scrollbar, 0px);
}

/* ----------------------------------------------------------------------------
   A review's stars, and the write-a-review overlay — the product page writes a
   review and Moje recenzie edits one, through the same
   `templates/product/review_overlay.html.twig` and `assets/reviewOverlay.js`.
   Both were the product page's own until the second page needed them.
   ---------------------------------------------------------------------------- */

.gk-review__stars {
    position: relative;
    flex: none;
    width: 5rem;
    height: 14px;
    margin-top: 1px;
}

.gk-review__stars-base,
.gk-review__stars-fill {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    gap: 2px;
    overflow: hidden;
    white-space: nowrap;
}

.gk-review__stars-base {
    fill: var(--gk-color-rating-empty);
}

.gk-review__stars-fill {
    width: var(--gk-review-fill, 100%);
    fill: var(--gk-color-rating);
}

.gk-review__stars svg {
    flex: none;
}

/* The whole viewport below 768px, a 560px dialog from there up; the submit,
   the form-wide alert and the legal line in a bar pinned to its bottom. */
.gk-review-overlay {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: var(--gk-color-surface);
}

.gk-review-overlay[open] {
    display: flex;
}

.gk-review-overlay::backdrop {
    background: var(--gk-color-border-strong);
}

/* Below 768px the overlay is the visible viewport, which the keyboard
   shortens — `reviewOverlay.js` writes the two from `visualViewport`. */
@media (max-width: 767.98px) {
    .gk-review-overlay {
        inset: var(--gk-vv-top, 0px) 0 auto;
        height: var(--gk-vv-height, 100%);
    }
}

@media (min-width: 768px) {
    .gk-review-overlay {
        width: 35rem;
        max-width: calc(100% - 2rem);
        height: auto;
        max-height: min(90vh, 50rem);
        margin: auto;
        border-radius: 1rem;
        box-shadow: var(--gk-shadow-pop);
    }
}

.gk-review-overlay__dialog {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    width: 100%;
}

.gk-review-overlay__head {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: space-between;
    height: 3.5rem;
    padding: 0 var(--gk-space-4);
}

.gk-review-overlay__close,
.gk-review-overlay__remove {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    border-radius: var(--gk-radius-md);
    background: transparent;
    color: var(--gk-color-text-soft);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.gk-review-overlay__close:focus-visible,
.gk-review-overlay__remove:focus-visible,
.gk-review-overlay__add:focus-visible,
.gk-review-overlay__star:focus-visible {
    outline: none;
    box-shadow: var(--gk-ring-focus);
}

.gk-review-overlay__confirm {
    display: flex;
    flex: none;
    flex-direction: column;
    gap: var(--gk-space-3);
    padding: var(--gk-space-4);
    border-bottom: 1px solid var(--gk-color-border);
    box-shadow: var(--gk-shadow-md);
}

.gk-review-overlay__confirm-text {
    margin: 0;
    font-size: var(--gk-text-sm);
    font-weight: var(--gk-weight-semibold);
}

.gk-review-overlay__confirm-actions {
    display: flex;
    gap: var(--gk-space-3);
}

.gk-review-overlay__confirm-actions > * {
    flex: 1 1 auto;
}

.gk-review-overlay__scroll {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0 var(--gk-space-4) var(--gk-space-8);
    overflow-y: auto;
}

.gk-review-overlay__form {
    display: flex;
    flex-direction: column;
    gap: var(--gk-space-6);
    padding-top: var(--gk-space-2);
}

.gk-review-overlay__strip {
    display: flex;
    align-items: flex-start;
    gap: var(--gk-space-3);
    padding-bottom: var(--gk-space-4);
    border-bottom: 1px solid var(--gk-color-border);
}

.gk-review-overlay__strip-photo {
    flex: none;
    width: 3.5rem;
    height: 3.5rem;
    border: 1px solid var(--gk-color-border);
    border-radius: var(--gk-radius-md);
    object-fit: contain;
    background: var(--gk-color-surface);
}

.gk-review-overlay__strip-name {
    margin: 2px 0 0;
    font-size: var(--gk-text-sm);
    font-weight: var(--gk-weight-semibold);
    line-height: 1.25rem;
}

.gk-review-overlay__field {
    display: flex;
    flex-direction: column;
    gap: var(--gk-space-2);
}

.gk-review-overlay__fieldset {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.gk-review-overlay__label-row {
    display: flex;
    align-items: baseline;
    gap: var(--gk-space-2);
}

.gk-review-overlay__label {
    margin: 0;
    padding: 0;
    font-weight: var(--gk-weight-semibold);
    line-height: 1.5rem;
}

.gk-review-overlay__req {
    color: var(--gk-color-brand);
}

.gk-review-overlay__rule,
.gk-review-overlay__counter {
    font-size: var(--gk-text-xs);
    line-height: 1rem;
    color: var(--gk-color-text-soft);
}

.gk-review-overlay__counter {
    margin-left: auto;
    font-variant-numeric: tabular-nums;
}

.gk-review-overlay__counter--limit {
    color: var(--gk-color-danger);
}

.gk-review-overlay__input {
    height: 3rem;
    padding: 0 var(--gk-space-3);
    border: 1px solid var(--gk-color-border);
    border-radius: var(--gk-radius-md);
    background: var(--gk-color-surface);
    color: var(--gk-color-text);
    font: inherit;
}

.gk-review-overlay__input:focus-visible {
    outline: none;
    border-color: var(--gk-color-brand);
    box-shadow: var(--gk-ring-focus);
}

.gk-review-overlay__input[aria-invalid="true"] {
    border-color: var(--gk-color-danger);
}

.gk-review-overlay__input--short {
    max-width: 10rem;
}

.gk-review-overlay__textarea {
    height: auto;
    min-height: 6rem;
    padding: var(--gk-space-3);
    resize: vertical;
}

/* The line under a field holds its height, so a message appearing on blur
   pushes nothing below it. */
.gk-review-overlay__msg {
    min-height: 1.25rem;
    margin: 0;
    font-size: var(--gk-text-xs);
    line-height: 1rem;
    color: var(--gk-color-text-soft);
}

.gk-review-overlay__msg--error {
    color: var(--gk-color-danger);
}

/* Five stars in reverse order, so "this one and every one before it" is the
   sibling combinator's `~`. */
.gk-review-overlay__stars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.gk-review-overlay__star {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--gk-radius-md);
    color: var(--gk-color-rating-empty);
    cursor: pointer;
}

.gk-review-overlay__star svg {
    width: 2rem;
    height: 2rem;
    fill: currentColor;
}

.gk-review-overlay__stars input:checked ~ .gk-review-overlay__star {
    color: var(--gk-color-rating);
}

@media (hover: hover) {
    .gk-review-overlay__star:hover,
    .gk-review-overlay__star:hover ~ .gk-review-overlay__star {
        color: var(--gk-color-rating);
    }
}

.gk-review-overlay__stars input:focus-visible + .gk-review-overlay__star {
    box-shadow: var(--gk-ring-focus);
}

.gk-review-overlay__points {
    display: flex;
    flex-direction: column;
    gap: var(--gk-space-2);
}

.gk-review-overlay__point {
    display: flex;
    align-items: center;
    gap: var(--gk-space-2);
}

.gk-review-overlay__point .gk-review-overlay__input {
    flex: 1 1 auto;
    min-width: 0;
}

.gk-review-overlay__add {
    align-self: flex-start;
    min-height: 2.75rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--gk-color-brand);
    font: inherit;
    font-size: var(--gk-text-sm);
    font-weight: var(--gk-weight-semibold);
    cursor: pointer;
}

.gk-review-overlay__about {
    display: flex;
    flex-direction: column;
    gap: var(--gk-space-6);
    margin-top: var(--gk-space-2);
}

.gk-review-overlay__about-text {
    margin: calc(-1 * var(--gk-space-4)) 0 0;
    font-size: var(--gk-text-sm);
    line-height: 1.25rem;
    color: var(--gk-color-text-soft);
}

.gk-review-overlay__chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gk-space-2);
}

.gk-review-overlay__footer {
    display: flex;
    flex: none;
    flex-direction: column;
    gap: var(--gk-space-3);
    padding: var(--gk-space-3) var(--gk-space-4) calc(var(--gk-space-3) + env(safe-area-inset-bottom));
    border-top: 1px solid var(--gk-color-border);
    background: var(--gk-color-surface);
}

/* While she types, the bar is the end of the form and scrolls with it. */
.gk-review-overlay--typing .gk-review-overlay__footer {
    margin: var(--gk-space-6) calc(-1 * var(--gk-space-4)) calc(-1 * var(--gk-space-8));
    padding-bottom: var(--gk-space-3);
}

.gk-review-overlay__legal {
    margin: 0;
    font-size: var(--gk-text-xs);
    line-height: 1rem;
    color: var(--gk-color-text-soft);
}

/* Red is for actions; the terms link is the line's own soft ink, underlined. */
.gk-review-overlay__legal a {
    color: var(--gk-color-text-soft);
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (hover: hover) {
    .gk-review-overlay__legal a:hover {
        color: var(--gk-color-text);
    }
}

.gk-review-overlay:focus {
    outline: none;
}

/* The overlay's own heading and eyebrow — the product page's section title and
   brand line, spelled here because the overlay is drawn on pages that do not
   load that page's stylesheet. */
.gk-review-overlay__title {
    margin: 0;
    font-family: var(--gk-font-body);
    font-size: var(--gk-text-lg);
    font-weight: var(--gk-weight-semibold);
    line-height: 1.5rem;
    color: var(--gk-color-text);
}

.gk-review-overlay__brand {
    margin: 0;
    font-size: var(--gk-text-xs);
    line-height: 1rem;
    color: var(--gk-color-text-soft);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* A product name can be one long word; it breaks rather than widening the box. */
.gk-review-overlay__strip > div {
    min-width: 0;
}

.gk-review-overlay__strip-name {
    overflow-wrap: anywhere;
}

/* ----------------------------------------------------------------------------
   The picker — one list to choose from, full screen: the product page's size,
   offer and review sorts, the product listing's sort. A native <dialog> opened
   with showModal(), so the browser brings the focus trap, Escape and the inert
   page behind; what a choice does is each page's own.
   ---------------------------------------------------------------------------- */
.gk-picker {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
}

.gk-picker[open] {
    display: flex;
    flex-direction: column;
    background: var(--gk-color-surface);
}

.gk-picker__head {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: space-between;
    gap: var(--gk-space-4);
    width: 100%;
    max-width: 30rem;
    height: 3.5rem;
    margin: 0 auto var(--gk-space-6);
    padding: 0 var(--gk-space-4);
}

.gk-picker__title {
    margin: 0;
    color: var(--gk-color-text);
    font-family: var(--gk-font-body);
    font-size: var(--gk-text-lg);
    font-weight: var(--gk-weight-semibold);
    line-height: 1.5rem;
}

.gk-picker__title:focus {
    outline: none;
}

.gk-picker__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-right: -11px;
    padding: 0;
    border: 0;
    border-radius: var(--gk-radius-full);
    background: none;
    color: var(--gk-color-text-soft);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
}

.gk-picker__close:focus-visible {
    outline: none;
    box-shadow: var(--gk-ring-focus);
}

.gk-picker__list {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    width: 100%;
    max-width: 30rem;
    min-height: 0;
    margin: 0 auto;
    padding: 0 var(--gk-space-4) calc(var(--gk-space-4) + env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* Focused on open so no option is; the list itself draws nothing. */
.gk-picker__list:focus {
    outline: none;
}

.gk-picker__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gk-space-4);
    width: 100%;
    min-height: 3.5rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--gk-color-text);
    font: inherit;
    line-height: 1.5rem;
    text-align: left;
    /* An option may be a link (the listing's sort): no line until hover. */
    text-decoration: none;
    cursor: pointer;
    /* An option may be a link (the listing's sorts): no underline at rest. */
    text-decoration: none;
}

.gk-picker__option + .gk-picker__option {
    border-top: 1px solid var(--gk-color-border);
}

.gk-picker__option[aria-selected="true"] {
    font-weight: var(--gk-weight-semibold);
}

@media (hover: hover) {
    .gk-picker__option:not([aria-disabled="true"]):hover .gk-picker__option-label {
        text-decoration: underline;
    }
}

.gk-picker__option:not([aria-disabled="true"]):active .gk-picker__option-label {
    text-decoration: underline;
}

.gk-picker__option:focus-visible {
    outline: none;
    box-shadow: inset var(--gk-ring-focus);
}

/* An option that cannot apply here stays in the list with the reason under it. */
.gk-picker__option[aria-disabled="true"] {
    cursor: default;
}

.gk-picker__option[aria-disabled="true"] .gk-picker__option-label,
.gk-picker__option[aria-disabled="true"] .gk-picker__dot {
    opacity: 0.4;
}

.gk-picker__option-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.gk-picker__option-note {
    margin-top: 2px;
    color: var(--gk-color-text-muted);
    font-size: var(--gk-text-xs);
    font-weight: var(--gk-weight-normal);
    line-height: 1rem;
}

.gk-picker__dot {
    position: relative;
    flex: none;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: var(--gk-radius-full);
    /* The design's light grey ring: an option she has not chosen reads light. */
    box-shadow: inset 0 0 0 1.5px var(--gk-color-control-ring);
}

.gk-picker__option[aria-selected="true"] .gk-picker__dot {
    box-shadow: inset 0 0 0 1.5px var(--gk-color-brand);
}

.gk-picker__option[aria-selected="true"] .gk-picker__dot::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: var(--gk-radius-full);
    background: var(--gk-color-brand);
    transform: translate(-50%, -50%);
}

/* ----------------------------------------------------------------------------
   The favourite heart — the product page beside the brand
   (`product/detail.html.twig`) and every row of Obľúbené produkty
   (`account/favourites.html.twig`). Both draw `product/heart.html.twig` inside
   it; what a press does is each page's own.
   ---------------------------------------------------------------------------- */
.gk-heart {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: var(--gk-space-1);
    min-width: 2.75rem;
    height: 2.75rem;
    padding: 0 6px;
    border: 0;
    border-radius: var(--gk-radius-md);
    background: transparent;
    color: var(--gk-color-text-soft);
    font: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: color 140ms ease;
}

@media (hover: hover) {
    .gk-heart:hover {
        color: var(--gk-color-text);
    }

    .gk-heart:hover .gk-heart__count {
        text-decoration: underline;
    }
}

.gk-heart:focus-visible {
    outline: none;
    box-shadow: var(--gk-ring-focus);
}

.gk-heart__glyph {
    position: relative;
    flex: none;
    width: 1rem;
    height: 1rem;
}

.gk-heart__glyph svg {
    position: absolute;
    inset: 0;
}

.gk-heart__filled,
.gk-heart__spinner {
    display: none;
}

.gk-heart__filled {
    color: var(--gk-color-brand);
}

.gk-heart[aria-pressed="true"] .gk-heart__outline {
    display: none;
}

.gk-heart[aria-pressed="true"] .gk-heart__filled {
    display: block;
}

.gk-heart[aria-busy="true"] .gk-heart__outline,
.gk-heart[aria-busy="true"] .gk-heart__filled {
    display: none;
}

.gk-heart[aria-busy="true"] .gk-heart__spinner {
    display: block;
    animation: gk-heart-spin 0.8s linear infinite;
}

@keyframes gk-heart-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Keeps its space at 0 — the number goes, the room for it does not. */
.gk-heart__count {
    display: inline-block;
    min-width: 1ch;
    font-size: var(--gk-text-xs);
    line-height: 1rem;
    color: var(--gk-color-text-muted);
    font-variant-numeric: tabular-nums;
}

.gk-heart[aria-pressed="true"] .gk-heart__count {
    color: var(--gk-color-text);
    font-weight: var(--gk-weight-semibold);
}


/* ----------------------------------------------------------------------------
   Her own review's foot — "Páči sa: N" and Upraviť · Zmazať, the same on the
   product page's card and on a Moje recenzie row.
   ---------------------------------------------------------------------------- */
.gk-review-own__stats {
    flex: 1 1 0%;
    min-width: 0;
    margin: 0;
    color: var(--gk-color-text-muted);
    font-size: var(--gk-text-xs);
    line-height: 1rem;
}

.gk-review-own__actions {
    display: flex;
    flex: none;
    gap: var(--gk-space-6);
    margin-left: auto;
}

/* Red text actions, a 44px target out of padding the negative margin hands
   back, so the row does not grow to fit it. */
.gk-review-own__action {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    margin: -0.75rem -0.5rem;
    padding: 0.75rem 0.5rem;
    border: 0;
    border-radius: var(--gk-radius-md);
    background: none;
    color: var(--gk-color-brand);
    font: inherit;
    font-size: var(--gk-text-sm);
    font-weight: var(--gk-weight-semibold);
    line-height: 1.25rem;
    cursor: pointer;
}

@media (hover: hover) {
    .gk-review-own__action:hover {
        text-decoration: underline;
    }
}

.gk-review-own__action:active {
    text-decoration: underline;
}

.gk-review-own__action:focus-visible {
    outline: none;
    box-shadow: var(--gk-ring-focus);
}

/* ----------------------------------------------------------------------------
   A question before something she cannot take back — "Zmazať recenziu?" on
   Moje recenzie, "Odobrať z obľúbených?" on Obľúbené produkty, "Zahodiť zmeny?"
   and "Odvolať súhlas" on Moja beauty. A native modal
   `<dialog>`: a title, a sentence, the alert a failure keeps it open with, and
   two buttons side by side.
   ---------------------------------------------------------------------------- */
.gk-dialog {
    /* The UA's own max-width, and the padding outside a content-box width,
       would take it to 26px from the edges on a phone; the design has 16px. */
    box-sizing: border-box;
    width: min(26.25rem, calc(100% - var(--gk-space-8)));
    max-width: none;
    padding: var(--gk-space-6);
    border: 0;
    border-radius: var(--gk-radius-2xl);
    background-color: var(--gk-color-surface);
    color: var(--gk-color-text);
    box-shadow: var(--gk-shadow-pop);
}

.gk-dialog:focus {
    outline: none;
}

.gk-dialog::backdrop {
    background: var(--gk-color-border-strong);
}

.gk-dialog__title {
    margin: 0 0 var(--gk-space-2);
    /* Not the grey every heading gets. */
    color: var(--gk-color-text);
    font-family: var(--gk-font-body);
    font-size: var(--gk-text-lg);
    font-weight: var(--gk-weight-semibold);
    line-height: 1.5rem;
}

.gk-dialog__note {
    margin: 0 0 var(--gk-space-5);
    color: var(--gk-color-text-soft);
    font-size: var(--gk-text-base);
    line-height: 1.5rem;
}

.gk-dialog__alert {
    margin: -0.25rem 0 var(--gk-space-4);
}

.gk-dialog__alert[hidden] {
    display: none;
}

.gk-dialog__actions {
    display: flex;
    gap: var(--gk-space-3);
}

/* 8px a side and not the button's 24: at 390px a button is 149px wide, and
   "Ponechat souhlas" is 129px of text the design keeps on one line. The height is
   the min-height's alone, so the 22.5px line does not take it to 49. */
.gk-dialog__actions .gk-button {
    flex: 1;
    justify-content: center;
    min-height: 3rem;
    padding: 0 var(--gk-space-2);
    font-size: 0.9375rem;
    font-weight: var(--gk-weight-semibold);
    line-height: 1.5;
}

/* ----------------------------------------------------------------------------
   The picture's dialog — `account/avatar_dialog.html.twig`, opened from the
   avatar on every screen the shell draws, driven by `assets/avatarCropper.js`
   through `assets/accountAvatar.js`.
   ---------------------------------------------------------------------------- */
.gk-avatar-dialog {
    /* The UA centres a modal dialog itself; only the width is ours to say. */
    width: min(26.25rem, calc(100vw - var(--gk-space-8)));
    padding: var(--gk-space-6);
    border: 1px solid var(--gk-color-border);
    border-radius: var(--gk-radius-xl);
    background-color: var(--gk-color-surface);
    color: var(--gk-color-text);
    box-shadow: var(--gk-shadow-md);
}

.gk-avatar-dialog:focus {
    outline: none;
}

/* Raw rather than a token, for the reason --gk-shadow-md states its own rgb():
   this is not one of the site's colours, it is the page dimmed. */
.gk-avatar-dialog::backdrop {
    background-color: rgb(0 0 0 / 0.5);
}

.gk-avatar-dialog__title {
    margin: 0 0 var(--gk-space-1);
    color: var(--gk-color-text);
    font-family: var(--gk-font-display);
    font-size: var(--gk-text-2xl);
    font-weight: var(--gk-weight-bold);
    line-height: 1.09;
}

/* The script puts focus here on opening, to announce what the dialog is. It is
   not a control, so it takes no ring. */
.gk-avatar-dialog__title:focus {
    outline: none;
}

.gk-avatar-dialog__note {
    margin: 0 0 var(--gk-space-5);
    color: var(--gk-color-text-soft);
    font-size: var(--gk-text-sm);
    line-height: 1.43;
}

.gk-avatar-dialog__hint {
    margin: var(--gk-space-3) 0 0;
}

/* Trailing, so the answer sits where the eye leaves the sentence above it, and
   full-width buttons because there are never more than two. */
.gk-avatar-dialog__actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--gk-space-3);
    margin-top: var(--gk-space-6);
}

.gk-avatar-dialog__actions .gk-button {
    flex: 1;
    justify-content: center;
    min-height: 3rem;
}

/* ----------------------------------------------------------------------------
   Inside the picture dialog
   ---------------------------------------------------------------------------- */

/* 160px, the design's, and bigger than the identity disc on purpose: this is the
   one place the picture is looked at rather than glanced past. */
.gk-avatar-dialog__frame {
    position: relative;
    display: block;
    width: 10rem;
    height: 10rem;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--gk-radius-full);
    background-color: var(--gk-color-avatar);
}

/* Absolutely positioned even when it is not being framed, and the four
   properties below are exactly the ones the cropper overwrites with the geometry
   she drags out — plus `object-fit`, which it sets to `fill` while framing,
   because there the box *is* the picture at the chosen zoom and `cover` would
   re-fit it inside and undo the zoom. So the stored picture and a draft are one
   element in two states, and clearing five inline styles is the whole of the way
   back — no modifier class to leave behind on a dialog that was cancelled. */
.gk-avatar-dialog__image {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gk-avatar-dialog__initial {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gk-color-on-brand);
    font-size: 3.5rem;
    font-weight: 600;
}

/* Stacked on a phone, side by side from 768px — the same call the design makes,
   and the reason "Vybrať fotku" is the wider of the two either way. */
.gk-avatar-dialog__actions-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--gk-space-2);
    /* No margin of its own: the dropzone above is a flex column and its gap is
       what spaces every row inside the crop, this one included. */
    width: 100%;
}

@media (min-width: 768px) {
    .gk-avatar-dialog__actions-row {
        flex-direction: row;
        justify-content: center;
        width: auto;
    }
}

/* The file input inside is hidden, so the label is the button — it needs the
   pointer and the centring a <button> would have brought itself. */
.gk-avatar-dialog__pick {
    justify-content: center;
    cursor: pointer;
}

/* Not a .gk-button: removing the picture is the quiet half of this pair, and an
   outlined button beside an outlined button reads as two equal choices. */
.gk-avatar-dialog__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0 var(--gk-space-3);
    border: 0;
    border-radius: var(--gk-radius-md);
    background: none;
    color: var(--gk-color-text-soft);
    font-family: inherit;
    font-size: var(--gk-text-sm);
    cursor: pointer;
}

.gk-avatar-dialog__remove:hover:not(:disabled) {
    background-color: var(--gk-color-surface-alt);
}

.gk-avatar-dialog__remove:focus-visible {
    outline: none;
    box-shadow: var(--gk-ring-focus);
}

.gk-avatar-dialog__remove:disabled {
    opacity: 0.6;
    cursor: progress;
}


/* ----------------------------------------------------------------------------
   The crop

   Everything from here down belongs to `assets/avatarCropper.js`, which is why
   none of it is named in that file: it drives the whole block off one attribute
   on the dialog and the `disabled` flags on the controls themselves.
   ---------------------------------------------------------------------------- */

/* A drop target as well as a column, which is the design's — a file may be
   dragged onto it. The dashed rule only appears from 768px: on a phone the
   dialog is the screen and there is nothing to drag from. */
.gk-avatar-dialog__dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--gk-space-4);
}

@media (min-width: 768px) {
    .gk-avatar-dialog__dropzone {
        padding: var(--gk-space-5);
        border: 1px dashed var(--gk-color-border);
        border-radius: var(--gk-radius-lg);
    }
}

.gk-avatar-dialog__dropzone[data-dragover] {
    border-color: var(--gk-color-focus);
    background-color: var(--gk-color-surface-hover);
}

/* Only while there is something to frame. `data-cropping` is the cropper's one
   piece of state on the DOM, so the grab cursor and the pan gesture are off for
   the picture she already has — which cannot be reframed, and would otherwise
   invite a drag that does nothing. */
.gk-avatar-dialog[data-cropping] .gk-avatar-dialog__frame {
    cursor: grab;
    touch-action: none;
}

.gk-avatar-dialog[data-cropping] .gk-avatar-dialog__frame:active {
    cursor: grabbing;
}

.gk-avatar-dialog__frame:focus {
    outline: none;
}

.gk-avatar-dialog__frame:focus-visible {
    box-shadow: var(--gk-ring-focus);
}

/* Sits directly under the disc, above the zoom row: it is what says whether the
   controls below it do anything yet. */
.gk-avatar-dialog__crop-hint {
    margin: 0;
    text-align: center;
}

.gk-avatar-dialog__zoom {
    display: flex;
    align-items: center;
    gap: var(--gk-space-1);
    width: 100%;
}

@media (min-width: 768px) {
    .gk-avatar-dialog__zoom {
        max-width: 15rem;
    }
}

/* The shape `.gk-avatar-dialog__remove` has, squared off: borderless and quiet,
   because neither of these is a decision — they are the slider, twice, for a
   thumb that cannot land on it. */
.gk-avatar-dialog__zoom-step {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    border-radius: var(--gk-radius-md);
    background: none;
    color: var(--gk-color-text-soft);
    font-family: inherit;
    font-size: var(--gk-text-lg);
    line-height: 1;
    cursor: pointer;
}

.gk-avatar-dialog__zoom-step:hover:not(:disabled) {
    background-color: var(--gk-color-surface-alt);
}

.gk-avatar-dialog__zoom-step:focus {
    outline: none;
}

.gk-avatar-dialog__zoom-step:focus-visible {
    box-shadow: var(--gk-ring-focus);
}

.gk-avatar-dialog__zoom-step:disabled {
    opacity: 0.6;
    cursor: default;
}

/* The track is the element's own background rather than the two engines'
   pseudo-element tracks, so the filled part is one gradient written once.
   `--gk-zoom-fill` is set from the script on every move. */
.gk-avatar-dialog__zoom-range {
    appearance: none;
    -webkit-appearance: none;
    flex: 1;
    height: 2.75rem;
    margin: 0;
    background: none;
    cursor: pointer;
}

.gk-avatar-dialog__zoom-range:disabled {
    opacity: 0.6;
    cursor: default;
}

.gk-avatar-dialog__zoom-range:focus {
    outline: none;
}

.gk-avatar-dialog__zoom-range:focus-visible {
    box-shadow: var(--gk-ring-focus);
    border-radius: var(--gk-radius-md);
}

/* Written out per engine and never as one selector list: an unknown
   pseudo-element invalidates the whole rule in both of them, so a shared
   selector silently styles neither. */
.gk-avatar-dialog__zoom-range::-webkit-slider-runnable-track {
    height: 0.25rem;
    border-radius: var(--gk-radius-full);
    background: linear-gradient(
        to right,
        var(--gk-color-brand) 0 var(--gk-zoom-fill, 0%),
        var(--gk-color-surface-alt) var(--gk-zoom-fill, 0%) 100%
    );
}

.gk-avatar-dialog__zoom-range::-moz-range-track {
    height: 0.25rem;
    border-radius: var(--gk-radius-full);
    background: linear-gradient(
        to right,
        var(--gk-color-brand) 0 var(--gk-zoom-fill, 0%),
        var(--gk-color-surface-alt) var(--gk-zoom-fill, 0%) 100%
    );
}

.gk-avatar-dialog__zoom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 1.75rem;
    height: 1.75rem;
    /* Half the thumb less half the track, so it rides centred on it. */
    margin-top: -0.75rem;
    border: 2px solid var(--gk-color-brand);
    border-radius: var(--gk-radius-full);
    background-color: var(--gk-color-surface);
}

.gk-avatar-dialog__zoom-range::-moz-range-thumb {
    width: 1.75rem;
    height: 1.75rem;
    border: 2px solid var(--gk-color-brand);
    border-radius: var(--gk-radius-full);
    background-color: var(--gk-color-surface);
}

/* ----------------------------------------------------------------------------
   Google's consent message

   Refresher's rules for the same dialog (its templates/global/header-styles):
   "Do not consent" in the top right corner, "Consent" full width. They style
   Google's markup (`.fc-*`), not ours, so the values are Refresher's and not our
   tokens, and `!important` is what beats the styles Google injects.
   doc/consent.md.
   ---------------------------------------------------------------------------- */

.fc-button.fc-cta-do-not-consent.fc-secondary-button {
    position: absolute !important;
    top: 0 !important;
    right: 24px !important;
}

body div.fc-consent-root .fc-dialog {
    position: relative !important;
    padding-top: 35px !important;
    margin: 0 !important;
}

body div.fc-consent-root .fc-primary-button {
    margin-left: 0 !important;
}

@media screen and (max-width: 480px) {
    body div.fc-consent-root .fc-choice-dialog .fc-footer-buttons-container {
        height: auto !important;
    }
}

/* ---- Article cards — the magazine's list and search's rows (magazine/card.html.twig)----------------------------------------------------------- */

.gk-magazine__list {
    display: flex;
    flex-direction: column;
    gap: var(--gk-space-6);
    margin: var(--gk-space-6) 0 0;
    padding: 0;
    list-style: none;
}

/* The whole card is the link: a 112px thumbnail, the editors' width, and the
   text beside it. */
.gk-magazine__card {
    display: grid;
    grid-template-columns: 7rem minmax(0, 1fr);
    column-gap: var(--gk-space-3);
    color: var(--gk-color-text);
    text-decoration: none;
}

/* 4:5 whatever the picture is — the storage cuts it, and this box holds the
   shape for an article that has none. */
.gk-magazine__media {
    display: block;
    align-self: start;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: var(--gk-radius-lg);
    background: var(--gk-color-surface-alt);
}

.gk-magazine__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gk-magazine__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.gk-magazine__card-title {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--gk-color-text);
    /* An `<h2>` for the outline, set in the body face like the rest of the card. */
    font-family: var(--gk-font-body);
    font-size: var(--gk-text-base);
    font-weight: var(--gk-weight-semibold);
    line-height: 1.5rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

@media (hover: hover) {
    .gk-magazine__card:hover .gk-magazine__card-title {
        text-decoration: underline;
        text-decoration-thickness: 1px;
        text-underline-offset: 2px;
    }
}

.gk-magazine__card:active .gk-magazine__card-title {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

/* Below 768px the perex gets only the lines left beside the thumbnail once the
   headline and the byline are in — `data-fill`, which the script measures — and
   none without it. From 768px it is two lines, always. */
.gk-magazine__perex {
    display: none;
    margin: var(--gk-space-1) 0 0;
    overflow: hidden;
    color: var(--gk-color-text-soft);
    font-size: var(--gk-text-sm);
    line-height: 1.25rem;
    text-wrap: pretty;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.gk-magazine__card[data-fill="1"] .gk-magazine__perex { display: -webkit-box; -webkit-line-clamp: 1; }
.gk-magazine__card[data-fill="2"] .gk-magazine__perex { display: -webkit-box; -webkit-line-clamp: 2; }
.gk-magazine__card[data-fill="3"] .gk-magazine__perex { display: -webkit-box; -webkit-line-clamp: 3; }
.gk-magazine__card[data-fill="4"] .gk-magazine__perex { display: -webkit-box; -webkit-line-clamp: 4; }

@media (min-width: 768px) {
    .gk-magazine__card .gk-magazine__perex,
    .gk-magazine__card[data-fill] .gk-magazine__perex {
        display: -webkit-box;
        -webkit-line-clamp: 2;
    }
}

/* At the foot of the text, level with the thumbnail's bottom where it can be. */
.gk-magazine__meta {
    display: flex;
    align-items: center;
    gap: var(--gk-space-2);
    min-width: 0;
    margin: auto 0 0;
    padding-top: var(--gk-space-2);
    color: var(--gk-color-text-muted);
    font-size: var(--gk-text-xs);
    font-variant-numeric: tabular-nums;
    line-height: 1rem;
}

.gk-magazine__byline {
    min-width: 0;
    overflow: hidden;
    color: var(--gk-color-text-soft);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gk-magazine__dot,
.gk-magazine__meta time,
.gk-magazine__sponsor {
    flex: none;
    white-space: nowrap;
}
