/* ==========================================================================
   eAukcije — the whole visual language, one file, no build step.
   --------------------------------------------------------------------------
   This is the approved 2026 redesign. It replaces the eBay-2008 density study
   that shipped with the catalog slice; where the two disagree, this file wins.

   The position it takes:

     * A lot is a photograph first. Coins, stamps, books and militaria are
       bought on condition, and condition is a picture. A 4:3 image leads every
       card and the card is the unit of browsing.
     * The numbers are still the loudest type. Price, bid count and time left
       are what a bidder scans; the photograph gets them to the card, the
       numbers get them to the lot.
     * Nothing here is decorative for its own sake. Two soft shadows, one
       radius, one accent, and the accent is reserved for selling.

   Constraints that did not change and must not:

     * No web font, no CDN, no third-party origin. The system UI stack has full
       Croatian diacritic coverage (č ć đ š ž) on every platform we serve, and a
       font request is render-blocking.
     * Nothing here is load-bearing for reading. Every read path — browse,
       search, listing, gallery, tabs — works with CSS *and* JavaScript off; CSS
       makes it pleasant, it does not make it work.
     * Focus rings are replaced, never removed.

   Palette rules:
     brand   #0f4c81  navigation, primary action, current state
     accent  #e8590c  selling only, at most once per page
     urgent  #d92d20  under 24 hours
     soon    #b54708  under 72 hours
     positive#0d7a42  reserve met, free postage, verified
   ========================================================================== */

:root {
    /*
        Since the 2026-10 redesign every value here is an alias of a token in
        tokens.css (loaded first). The old names stay because some 14,000
        lines read them; new code uses the token names directly.
    */
    --font-ui: var(--font-sans);
    --font-num: var(--font-sans);

    --page: var(--ground);
    --surface-alt: var(--ground);
    --photo: var(--tone-slate);

    --ink-muted: var(--muted);
    --ink-faint: var(--muted);   /* the old #8d96ab failed WCAG (2.96:1) */
    --line: var(--border);
    --line-strong: var(--border-strong);

    --brand: var(--blue-700);
    --brand-dark: var(--navy-900);
    --brand-ink: #ffffff;
    --accent: var(--orange-600);

    --urgent: var(--red-700);
    --soon: var(--amber-800);
    --soon-bg: var(--amber-100);
    --soon-line: #f3d9a8;
    --positive: var(--green-700);
    --positive-bg: var(--green-100);
    --positive-line: #c3e6cf;

    --danger: var(--red-700);
    --danger-bg: var(--red-100);
    --danger-line: #f7c9c4;
    --info-bg: var(--blue-100);
    --info-line: #d6e4f3;

    --link: var(--blue-700);
    --link-hover: var(--navy-900);
    --focus: var(--blue-700);

    --radius: var(--radius-lg);
    --radius-xs: 8px;
    --pill: var(--radius-pill);

    --shadow: 0 1px 2px rgba(11, 37, 64, 0.06), 0 1px 3px rgba(11, 37, 64, 0.08);
    --shadow-lift: var(--shadow-hover);

    --wrap: var(--content-max);
    --gutter: 28px;
    --masthead-h: 76px;
}

/* --------------------------------------------------------------- resets */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    /* 100% respects the visitor's browser font-size setting; sizes below are in
       rem so a user who needs 20px text gets a proportional page, not a broken
       one. */
    font-size: 100%;
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/*
   A column the full height of the window, so the footer is never left floating
   in the middle of one.

   Any page shorter than the viewport had the footer sitting wherever the
   content happened to end, with a band of `--page` below it — which reads as
   the page having been cut off. The error pages made it obvious because they
   are the shortest pages on the site, but it was never specific to them: an
   empty search result, a category with two lots, a member area with nothing in
   it yet all did the same thing.

   `100dvh` rather than `100vh`: on mobile Safari and Chrome the `vh` unit is
   measured against the *largest* viewport — the one with the browser chrome
   retracted — so `100vh` on a phone guarantees a scrollbar and pushes the
   footer just off the bottom of every short page. `dvh` tracks the visible
   height instead.

   Costs nothing on a tall page: `.shell` only grows when there is space left to
   grow into.
*/
body {
    margin: 0;
    /* `vh` first as the fallback, `dvh` second to win where it is supported.
       A browser that does not know `dvh` drops that line and keeps `vh`, which
       is merely the old imperfect behaviour rather than no behaviour. */
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--page);
    color: var(--ink);
    font-family: var(--font-ui);
    font-size: 0.9375rem; /* 15px */
    line-height: 1.6;     /* 24px, the `body` style in tokens.css */
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    margin: 0 0 0.4em;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

h1 { font-size: 1.5625rem; }  /* 25px */
h2 { font-size: 1.3125rem; }  /* 21px */
h3 { font-size: 1.0625rem; }
h4 { font-size: 0.9375rem; }

p { margin: 0 0 0.65em; }

ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

a {
    color: var(--link);
    text-decoration: none;
}

a:hover, a:active { color: var(--link-hover); text-decoration: underline; }

/* Never removed, only replaced with something more visible than the default. */
:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
    border-radius: var(--radius-xs);
}

img { max-width: 100%; height: auto; }

/* The masthead is sticky, so anything an in-page link aims at has to reserve
   its height or the link scrolls the target underneath it. This covers the tab
   panels, the bid form (linked from every card's "Licitiraj"), the bid history
   (linked from the bid count) and the gallery slides. */
[id] { scroll-margin-top: calc(var(--masthead-h) + 16px); }

table { border-collapse: collapse; }

button, input, select, textarea { font: inherit; color: inherit; }

/* Anything compared down a column gets tabular figures, so digits line up. */
.price,
.bigprice,
.bids,
.ends,
.pill,
.card__price b,
.card__bids,
.facet__count,
.catgrid__count,
.tree__count,
.subcats__count,
.bidlog__seq,
.bidlog__score,
.factlist__mono,
.pager a,
.pager span,
td,
.clock {
    font-variant-numeric: tabular-nums;
}

/* ── "Obnovite predmet" — where the unsold-auction e-mail lands ───────────

   One lot and one button, so the page is a narrow column rather than a layout.
   Centred and capped, because everything on it is one sentence wide and a
   900px line of explanation is harder to read than a 50-character one. */
.relistprompt {
    max-width: 44rem;
    margin: 40px auto 64px;
}

.relistprompt__lot {
    margin: 4px 0 18px;
    font-size: 1.0625rem;
    font-weight: 650;
}

.relistprompt__note,
.relistprompt__refused {
    margin: 14px 0 0;
    font-size: 0.875rem;
    color: var(--ink-muted);
}

.relistprompt__back { margin: 26px 0 0; }

/* The one button on the page is the site's selling colour, the same as the
   e-mail that sent the seller here and the same as `.btn-sell`. */
.btn--sell {
    background: var(--accent);
    border-color: var(--accent);
}

/* --------------------------------------------------- skip link / a11y utils */

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    padding: 12px 18px;
    background: var(--brand);
    color: var(--brand-ink);
    border-radius: 0 0 var(--radius-xs) 0;
    font-weight: 650;
}

.skip-link:focus {
    left: 0;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

[hidden] { display: none !important; }

/* ------------------------------------------------------------------ header */

.masthead {
    position: sticky;
    top: 0;
    z-index: 25;   /* above .catnav (20) so header dropdowns and scrolled-under rows stay beneath it; sheets start at 30 */
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.masthead__inner {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--gutter);
    min-height: var(--masthead-h);
    display: flex;
    align-items: center;
    gap: 26px;
}

.brand {
    margin: 0;
    flex: 0 0 auto;
}

.brand a {
    display: block;
    color: var(--brand);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.brand a:visited { color: var(--brand); }
.brand a:hover { text-decoration: none; color: var(--brand-dark); }

.brand__tag {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-top: -2px;
}

/* The search bar is the masthead's centre of gravity in this design, so it
   takes the free space rather than a fixed column. */
.searchbar {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    background: var(--surface-alt);
    border: 1.5px solid var(--line);
    border-radius: var(--pill);
    padding: 5px 5px 5px 20px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

/* One line, not two (2026-09-28): the pale halo outside the border read as a
   second border, and a clicked text field also matches `:focus-visible`, so
   the site-wide outline drew a third inside it. The pill's own border is the
   focus indicator — thickened to 2 px by an inset shadow, so nothing around
   it moves — and the controls inside stand their outlines down for it. */
.searchbar:focus-within {
    border-color: var(--brand);
    box-shadow: inset 0 0 0 0.5px var(--brand);
}

.searchbar__input:focus-visible,
.searchbar__scope:focus-visible {
    outline: none;
}

.searchbar__input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    background: none;
    font-size: 0.9375rem;
    padding: 6px 0;
}

.searchbar__input::placeholder { color: var(--ink-faint); }

/* The scope selector is a real <select> so the category filter survives a
   JavaScript-free submit. */
.searchbar__scope {
    flex: 0 1 auto;
    max-width: 15ch;
    border: 0;
    background: none;
    color: var(--ink-muted);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 6px 2px;
    text-overflow: ellipsis;
}

.searchbar__submit {
    flex: 0 0 auto;
    border: 0;
    border-radius: var(--pill);
    background: var(--brand);
    color: var(--brand-ink);
    padding: 11px 26px;
    font-size: 0.90625rem;
    font-weight: 650;
    cursor: pointer;
}

.searchbar__submit:hover { background: var(--brand-dark); }

.usernav {
    flex: 0 0 auto;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.90625rem;
    font-weight: 550;
    color: var(--ink-muted);
}

.usernav a { color: var(--ink-muted); }
.usernav a:visited { color: var(--ink-muted); }
.usernav a:hover { color: var(--brand); }
.usernav__sep { color: var(--line-strong); }

/* ── The account menu ───────────────────────────────────────────────────────
   A `<details>` disclosure. The panel is `position: absolute` inside a
   `position: relative` `<details>`, so opening it does not reflow the masthead
   — a menu that made the header taller would shove the whole page down every
   time it was opened.

   `.usernav` is a flex row and `<details>` is a block, so it needs its own
   alignment or the avatar sits on the text baseline instead of the centre. */
.usermenu {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

/* The trigger. `list-style: none` plus the WebKit pseudo-element is what
   removes the native disclosure triangle; both are needed, and neither
   removes the control's semantics or its place in the tab order. */
.usermenu__trigger {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px;
    border-radius: var(--pill);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.usermenu__trigger::-webkit-details-marker { display: none; }

/* The focus ring belongs on the summary, which is the focusable element, and
   is drawn around the avatar rather than around the padding box so it reads as
   a ring on a circle rather than a rectangle around a circle. */
.usermenu__trigger:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

/*
   The avatar. Brand blue, which the palette assigns to navigation and current
   state — this is both. The accent stays untouched: `Prodaj predmet` is still
   the one orange thing on the page.

   `--font-num` for the initials. The UI stack's caps have uneven sidebearings
   at this size, so "MS" and "IH" centre differently in the same circle; the
   numeric face is tabular and they do not.
*/
.usermenu__avatar {
    /* The badge anchors to this. */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--brand);
    color: var(--brand-ink);
    font-family: var(--font-num);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.usermenu__chevron {
    color: var(--ink-faint);
    transition: transform 0.15s;
}

.usermenu[open] .usermenu__chevron { transform: rotate(180deg); }

/*
   Unread messages, on the avatar.

   ## Red, because that is what a notification badge is

   It went through two other colours first. `--surface` white on a white
   masthead vanished ring and all, leaving a numeral and a notch — the avatar
   read as a circle with a bite out of it. `--brand-dark` fixed the legibility
   and was quiet to a fault: a dark navy disc on a dark navy circle is a badge
   you have to already be looking for.

   Red is the convention every user already knows, and convention is worth more
   here than palette purity. It is the same `--urgent` the overdue amounts use,
   which is the one thing to know about it: elsewhere in this interface red
   means *something is wrong*, and on this badge it means *something is waiting*.
   The two readings are close enough not to mislead — an unread message is not
   an error, but it is unfinished business — and a notification badge in any
   other colour is a notification badge people miss.

   It is still not `--accent`: `.btn-sell` is the one accent element on the page
   and sits four centimetres to the right, and red beside orange stays
   distinguishable in a way orange beside orange does not.

   The white ring is what separates it from the navy circle underneath, and it
   is load-bearing — without it the disc reads as punched out of the avatar.

   ## It is not the only signal

   The avatar is `aria-hidden`, so this is invisible to a screen reader by
   construction; the trigger's accessible name carries the count in words. And
   the panel it opens repeats it on the Poruke row, where the real number is
   printed rather than capped at nine.
*/
.usermenu__dot {
    position: absolute;
    top: -3px;
    right: -5px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--pill);
    background: var(--urgent);
    color: #fff;
    /* Against the avatar, not the page: this is what makes it a badge sitting
       on the circle rather than a notch cut out of it. */
    box-shadow: 0 0 0 2px var(--surface);
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
}



.usermenu__trigger:hover .usermenu__avatar { background: var(--brand-dark); }

/*
   The panel. `right: 0` so it hangs from the right edge of the avatar and can
   never push the layout sideways; `min-width` rather than a fixed width so a
   long profile name sets it and a short one does not leave a gutter.

   `z-index` above its masthead siblings: the panel overlaps the page, and the
   sticky header is the thing it must be drawn in front of.
*/
.usermenu__panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 10;
    min-width: 220px;
    padding: 6px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lift);
    text-align: left;
}

/* Who you are, stated once, at the top of the panel. It used to be printed in
   the masthead on every page for every member; it belongs here, where it is
   read at the moment it matters — the moment before somebody signs out. */
.usermenu__who {
    display: flex;
    /* Centred against the whole two-line block — "Prijavljeni ste kao" over the
       handle — rather than aligned to the first line, where it read as a
       footnote on the label instead of a control for the account. */
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 8px 10px 10px;
    border-bottom: 1px solid var(--line);
    font-size: 0.75rem;
    color: var(--ink-faint);
    line-height: 1.35;
}

/* `min-width: 0` so a long handle wraps inside this column instead of pushing
   the gear off the panel — `overflow-wrap` on the strong below cannot shrink a
   flex item that is still asking for its full intrinsic width. */
.usermenu__whotext {
    flex: 1 1 auto;
    min-width: 0;
}

/* 34px of target around a 17px icon, pulled back into the padding so the row
   keeps its height. The icon is the only control here that is not a full-width
   row, so it earns a hover surface of its own. */
.usermenu__gear {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    /* Pulled into the panel's own padding on the right so the icon lines up
       with the rows below it; nothing is taken off the top, which would undo
       the centring above. */
    margin: 0 -6px 0 0;
    border-radius: var(--radius-xs);
    color: var(--ink-faint);
}

.usermenu__gear:hover,
.usermenu__gear:focus-visible {
    background: var(--surface-alt);
    color: var(--ink);
}

.usermenu__who strong {
    display: block;
    margin-top: 1px;
    font-size: 0.875rem;
    font-weight: 650;
    color: var(--ink);
    /* A handle can be long and has no spaces to break at. */
    overflow-wrap: anywhere;
}

.usermenu__list {
    margin: 0;
    padding: 4px 0;
    list-style: none;
}

/*
   Menu rows. `display: block` so the whole row is the hit area — an inline link
   in a 220px panel gives the user a target the width of the word and a lot of
   dead space either side of it.
*/
.usernav .usermenu__link:link,
.usernav .usermenu__link:visited {
    display: block;
    padding: 9px 10px;
    border-radius: var(--radius-xs);
    color: var(--ink);
    font-size: 0.875rem;
    font-weight: 600;
}

.usernav .usermenu__link:hover,
.usernav .usermenu__link:focus-visible {
    background: var(--surface-alt);
    color: var(--brand);
    text-decoration: none;
}

/*
   The backoffice row, for the administrators who have one.

   Everything else in this menu is the member's own account; this is staff
   tooling that leaves the shop window, and it is set apart by a rule beneath it
   and a muted colour rather than by a badge or a second accent.

   It keeps the size and weight of the rows below it on purpose. The first draft
   set it in the backoffice's own idiom — 11px, uppercase, tracked — and a muted
   small-caps line sitting directly above "Moje aukcije" does not read as a link
   at all: it reads as a *section heading* labelling the item under it. The
   arrow is what carries "another system" now, and an arrow cannot be mistaken
   for a heading.
*/
.usermenu__group {
    margin-bottom: 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--line);
}

.usernav .usermenu__link--admin:link,
.usernav .usermenu__link--admin:visited {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--ink-muted);
}

.usernav .usermenu__link--admin:hover,
.usernav .usermenu__link--admin:focus-visible { color: var(--brand); }

.usermenu__leave { flex: 0 0 auto; opacity: 0.65; }

/*
   The row that carries a count: messages.

   Label left, badge right, on one baseline. `gap` keeps a long label from
   touching the badge; `flex: 0 0 auto` on the badge keeps the number whole and
   lets the label be the part that shortens, because a truncated count is not a
   count.
*/
.usernav .usermenu__link--counted:link,
.usernav .usermenu__link--counted:visited {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

/*
   ── The wallet balance ───────────────────────────────────────────────────

   A fact, given the shape of a fact. The rows below it are destinations, set
   at one size in one weight; this is a figure with a caption, and the
   difference in *shape* is what tells the eye they are different kinds of
   thing. Distinguishing them by a few points of weight would not have — the
   first draft did exactly that and the balance read as a link with a number
   stuck to it.

   It deliberately borrows `.accbalance__label` / `.accbalance__amount` from
   the account area, one size down for a 220px panel. The same fact is stated
   in both places and should look like the same fact in both places.
*/
.usernav a.usermenu__wallet:link,
.usernav a.usermenu__wallet:visited {
    display: block;
    padding: 10px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--line);
    border-radius: var(--radius-xs) var(--radius-xs) 0 0;
    color: var(--ink);
}

.usernav a.usermenu__wallet:hover,
.usernav a.usermenu__wallet:focus-visible {
    background: var(--surface-alt);
    text-decoration: none;
}

/*
   An eyebrow, in the idiom this codebase already uses for one (`.accorder__label`,
   the table heads, the form legends): small, tracked, uppercase, faint.

   The caption has to read as a caption, and doing that by *style* rather than
   by size is what lets the figure below it come down to something a 220px
   panel can hold. The first draft set the label at 12px/650 and the figure at
   24px to out-rank it — which made the balance the largest thing in the panel,
   louder than the member's own name.
*/
.usermenu__wallet-label {
    display: block;
    margin-bottom: 3px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

/*
   Tabular figures, and the same UI face the account area sets its amounts in —
   `--font-num` is the bidding screens' monospace and would put this number in
   a typeface that appears nowhere else in the masthead.

   17px: a step above the 14px rows below it, a step below the 24px the Računi
   page gives the same number. It is the largest thing in its own block without
   being the largest thing in the panel, which is the rank it deserves.
*/
.usermenu__amount {
    display: block;
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: inherit;
    font-variant-numeric: tabular-nums;
}

/*
   Short: the balance will not cover what the month-end run is about to take.

   ## Why this is amber and not red

   `--soon`, the warning tone, because that is what this state *is*. The domain
   already grades it: `WalletStanding::ShortfallWarning` reports the tone
   `warn`, and `--urgent` red belongs to `Restricted` — a negative balance,
   which is a different and worse thing. Nothing here is overdue; no invoice has
   even been issued yet. The first draft set the figure and the note both in
   red, which said "something is wrong now" when the true message is "this will
   not be enough on Tuesday", and spent the one colour left to report the worse
   state on the milder one.

   The figure itself stays `--ink` for the same reason, and to match how the
   Računi page states this standing — a warn badge beside an ordinary dark
   amount, never a tinted figure. The same fact should not be pitched two
   different ways in two places.

   Colour is never the only signal in any case: the line says it in words and
   names the missing amount, so somebody who cannot distinguish the amber loses
   nothing.
*/
.usermenu__shortfall {
    display: block;
    margin-top: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--soon);
}

/*
   The unread badge. It renders only when there is something unread, so its
   mere presence is the signal and the number is the detail.

   `--urgent`, and the same red as `.usermenu__dot` on the avatar above it —
   deliberately, because they are the same count. The avatar says *how many*
   without opening anything; this row says which thing they are waiting on. Two
   colours for one fact would read as two different facts, and somebody who has
   just clicked a red badge expects to find red behind it.

   Not `--accent`: `.btn-sell` is the one accent element on the page and it is
   reserved for selling. An early draft of this badge was orange, four
   centimetres from the sell button — two things shouting the same colour in
   one masthead, neither winning. Red beside orange stays distinguishable in a
   way orange beside orange does not.

   Elsewhere `--urgent` means *something is wrong*; on both badges it means
   *something is waiting*. See `.usermenu__dot` for why that is a trade worth
   making.

   `min-width` with centred text makes 1 and 12 the same shape, so the row does
   not visibly change width as messages arrive.
*/
.usermenu__badge {
    flex: 0 0 auto;
    min-width: 20px;
    padding: 1px 6px;
    border-radius: var(--pill);
    background: var(--urgent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

/*
   Logout is a POST, so it is a real form with a real button — signing out
   changes state and must not be reachable by anything that follows links
   (prefetch, crawlers, an `<img src>` on a page the user is reading).

   It is styled as the rows above it because that is what it is to the reader,
   and a filled button in a menu of links would read as the primary action of
   the panel, which signing out is not.
*/
.usermenu__logout {
    margin: 0;
    padding: 4px 0 0;
    border-top: 1px solid var(--line);
}

.usermenu__logout button {
    display: block;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-radius: var(--radius-xs);
    background: none;
    color: var(--ink);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.usermenu__logout button:hover,
.usermenu__logout button:focus-visible {
    background: var(--surface-alt);
    color: var(--brand);
}

/*
   No JavaScript is required to open this menu, and none is required to close
   it: clicking the summary again closes it, and that is the whole contract.
   `usermenu_controller.js` adds Escape, click-outside and close-on-tab-out,
   and adds nothing that this stylesheet depends on.
*/

/* The one accent element on the page, and it is reserved for selling. */
.btn-sell {
    background: var(--accent);
    color: #fff !important;
    padding: 11px 20px;
    border-radius: var(--pill);
    font-weight: 650;
}

.btn-sell:hover { background: #d24f08; text-decoration: none; }

@media (max-width: 900px) {
    .masthead__inner {
        flex-wrap: wrap;
        padding-top: 12px;
        padding-bottom: 12px;
        gap: 12px 18px;
    }
    .searchbar { order: 3; flex-basis: 100%; }
    .usernav { margin-left: auto; }
}

/* ── The masthead on a phone ────────────────────────────────────────────────

   At 375 px the row above overflowed the document by 56 px, on every page,
   signed out: `.usernav` is `flex: 0 0 auto` and its four items — Prijava,
   Registracija, English and the accent CTA — measure 403 px against a 375 px
   viewport. `flex-wrap: wrap` on `.masthead__inner` cannot help, because the
   thing that is too wide is one flex item, not the row.

   So `.usernav` gets to wrap internally. Signed in it does not need to: the
   account menu put `Moje aukcije`, `Odjava` and the backoffice behind one
   circle, which leaves `English`, the avatar and the CTA — 220 px, one line.
   Signed out it takes two, links then CTA, and that is the honest answer for a
   viewport that genuinely cannot hold five controls in a row.

   ── The masthead is not sticky here, and that is deliberate ────────────────

   Sticky costs every screen its own height for as long as the page is open.
   At 1440 px that is 76 px of 900 — 8%, and worth it for a search field always
   within reach. At 375 × 667 the phone masthead is two rows plus the search
   bar: 118 px signed in, ~150 px signed out, i.e. a fifth to a quarter of the
   viewport permanently spent on chrome, on the one class of device with the
   least of it to spend. The lot, the price and the countdown win that argument.

   `--masthead-h` follows, because it is what every `scroll-margin-top` on the
   page is computed from — `#bid-form`, `#bid-history`, the tab panels and the
   gallery slides all aim under it. Left at 76 px it would open a 76 px hole
   above every anchor target on a page with nothing pinned over it.
*/
@media (max-width: 700px) {
    :root {
        --gutter: 16px;
        --masthead-h: 0px;
    }

    .masthead { position: static; }

    .masthead__inner {
        padding-top: 8px;
        padding-bottom: 8px;
        gap: 8px 10px;
        min-height: 0;
    }

    /* "Aukcije za kolekcionare" is a strapline, and a strapline is the first
       thing to go when the row it sits in is 56 px over budget. Dropping it
       also shortens the brand link's accessible name to the brand. */
    .brand a { font-size: 1.25rem; }
    .brand__tag { display: none; }

    .usernav {
        flex: 0 1 auto;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 4px 8px;
    }

    /* The separators earn their keep in a single row of four text links. In a
       wrapped block they land at the end of a line as often as between two
       items, which is worse than no separator at all. */
    .usernav__sep { display: none; }

    /* Small enough that `eAukcije` + `English` + the avatar + this button come to
       240 px against the 266 px the row has left once the brand has taken its
       65 — i.e. the whole signed-in masthead is two rows rather than three. The
       accent stays exactly as loud; only the box around it gets smaller. */
    .btn-sell {
        padding: 11px 14px;
        font-size: 0.84375rem;
    }

    .searchbar { padding: 4px 4px 4px 14px; }
    .searchbar__submit { padding: 11px 18px; }

    /* The scope select only appears on a category page, where it is the third
       thing in a bar that also holds a text field and a submit. 8ch plus the
       ellipsis is enough to read the first word of a category name. */
    .searchbar__scope { max-width: 8ch; }
}

/* -------------------------------------------------------------- page shell */

.shell {
    /* `1 0 auto`, not `1`: the shorthand's `flex-basis: 0` would make the
       content's own height irrelevant and let a long page collapse. This grows
       into spare space and never shrinks below what it holds. */
    flex: 1 0 auto;

    /*
       `width: 100%` is load-bearing, and only since `body` became a flex
       column.

       In block layout `max-width` + `margin: 0 auto` gives the familiar
       "full width, capped, centred". In flex layout it does not: **auto margins
       on the cross axis suppress `align-items: stretch`**, so the item is sized
       to `fit-content` first and then centred in whatever is left. The page
       still looked centred and correct — it was simply 1008px wide instead of
       1320px, and only a measurement tells the two apart.

       An explicit width takes the sizing decision away from `stretch` entirely,
       so the auto margins go back to doing only the one job they are here for.
       `border-box` (line 100) keeps the gutters inside the 1320. */
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* `<main tabindex="-1">` is the skip link's landing pad. Programmatic focus
   does not match `:focus-visible`, so the ring is suppressed only in that case
   and a real keyboard focus would still show one. */
main:focus:not(:focus-visible) { outline: none; }

/* Sidebar + content. 264px is the facet rail from the approved comps. */
.layout {
    display: grid;
    grid-template-columns: 264px minmax(0, 1fr);
    gap: 28px;
    margin-top: 24px;
    align-items: start;
}

@media (max-width: 1000px) {
    .layout { grid-template-columns: minmax(0, 1fr); }
}

/* A `.layout` with nothing in the left column. The category page dropped its
   rail once the subcategory cards moved above the lots; the wrapper stays so the
   page keeps the same top margin and the same relationship to the container as
   its neighbours, and only the column disappears. */
.layout--full {
    grid-template-columns: minmax(0, 1fr);
}

/* A generic card-ish container. Never a hard border alone — border plus one
   soft shadow, which is what stops the page reading as a wireframe.

   `.accpanel` is the account area's name for the same thing and carried a
   byte-for-byte copy of these five declarations in account.css — which is
   loaded *after* this file on every page that uses it, so the copy won and
   changed nothing, while being free to drift. Declared once here, because a panel is a shared
   component of the public product; the account sheet keeps only the parts the
   catalogue has no use for (`__title`, `__count`, `--form`). The backoffice's
   `.bo-panel` is deliberately not in this list: that separation is real, it
   loads its own sheet alone, and its panel is a different, denser thing. */
.panel,
.accpanel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin: 0 0 20px;
    overflow: hidden;
}

.panel__head {
    margin: 0;
    padding: 14px 18px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--ink-faint);
    border-bottom: 1px solid var(--line);
}

.panel__head--split {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.panel__head--split a {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: var(--brand);
}

.panel__body { padding: 16px 18px; }
.panel__body > :last-child { margin-bottom: 0; }

/* A section heading with a "show all" on the right — the homepage rhythm. */
.sectionhead {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin: 34px 0 16px;
}

.sectionhead h2 {
    margin: 0;
    font-size: 1.3125rem;
    font-weight: 750;
}

/* ── One band behind the navigation (2026-10-11) ──────────────────────────

   The page ran a single flat `--page` grey from masthead to footer, so every
   section had the same weight and nothing led the eye. The category tiles and
   the feed strip are both navigation — *what kind of thing*, and *what is
   happening now* — so they share one white band and the lots below sit on the
   plain background.

   Full-bleed by padding rather than by `100vw` margins: `margin: 0 -50vw` is
   the usual trick and it adds a horizontal scrollbar on any page that already
   has a vertical one, because `vw` includes the scrollbar's width. A
   `box-shadow` spread paints the same band with no layout involved at all. */
.homeband {
    background: var(--surface);
    box-shadow:
        0 0 0 100vmax var(--surface),
        inset 0 -1px 0 var(--line);
    clip-path: inset(0 -100vmax);
    padding: 4px 0 14px;
    margin-bottom: 8px;
}

/* The tiles' own top margin is what separated them from the masthead; inside
   the band it would push the white away from it instead. */
.homeband .catgrid { margin-top: 18px; }

.sectionhead a {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand);
}

/* ------------------------------------------------------------- breadcrumbs */

.breadcrumbs {
    margin: 20px 0 4px;
    font-size: 0.8125rem;
    color: var(--ink-faint);
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0 6px;
}

.breadcrumbs li::after {
    content: "›";
    margin-left: 6px;
    color: var(--line-strong);
}

.breadcrumbs li:last-child::after { content: none; }

.breadcrumbs a {
    color: var(--ink-faint);
}

.breadcrumbs a:hover { color: var(--brand); }

.breadcrumbs [aria-current="page"] {
    color: var(--ink);
    font-weight: 650;
}

/* One link up on a phone, the whole trail elsewhere (2026-10-11). */
.breadcrumbs__up { display: none; }

@media (max-width: 700px) {
    .breadcrumbs ol { display: none; }
    .breadcrumbs .breadcrumbs__up {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        min-height: 44px;
        color: var(--link);
        font-weight: 600;
        font-size: 0.875rem;
    }
    .breadcrumbs .breadcrumbs__up span { font-size: 1.25rem; line-height: 1; }
}

/* ------------------------------------------------------ category tiles */

/* Nine across on the homepage. Below 1200px they reflow rather than shrink
   below a readable label. */
.catgrid {
    display: grid;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    gap: 12px;
    margin: 26px 0 8px;
}

@media (max-width: 1200px) { .catgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 700px)  { .catgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.catgrid__item {
    display: block;
    height: 100%;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px 10px;
    text-align: center;
    color: var(--ink);
}

.catgrid__item:visited { color: var(--ink); }

.catgrid__item:hover {
    text-decoration: none;
    border-color: var(--line-strong);
    box-shadow: var(--shadow-lift);
}

.catgrid__item .icon {
    display: block;
    width: 30px;
    height: 30px;
    margin: 0 auto 9px;
    color: var(--brand);
    opacity: 0.85;
}

.catgrid__name {
    display: block;
    font-size: 0.78125rem; /* 12.5px */
    font-weight: 600;
    line-height: 1.3;
}

.catgrid__count {
    display: block;
    font-size: 0.75rem;
    color: var(--ink-faint);
    margin-top: 3px;
}

.catgrid__item--empty { opacity: 0.55; }

/* "Sve kategorije →" — where the other nine roots live. */
.catgrid__more {
    margin: 0 0 4px;
    text-align: right;
    font-size: 0.84375rem;
    font-weight: 600;
}

/* ------------------------------------------------------------ category tree */

.tree { font-size: 0.84375rem; }

.tree ul {
    margin-left: 10px;
    padding-left: 8px;
    border-left: 1px solid var(--line);
}

.tree__node {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 5px 0;
    color: var(--ink-muted);
}

.tree__node:visited { color: var(--ink-muted); }
.tree__node:hover { color: var(--brand); text-decoration: none; }

.tree__count { color: var(--ink-faint); font-size: 0.78125rem; }

.tree__node[aria-current="page"] {
    color: var(--ink);
    font-weight: 700;
}

.tree__node--empty { opacity: 0.55; }

.tree__more {
    display: block;
    padding: 4px 0;
    font-size: 0.78125rem;
    color: var(--brand);
}

/* ---------------------------------------------------- child category grid */

/* `.subcats` used to be declared here as a bare multi-column text list, with no
   template rendering it — the markup it was written for never shipped. It is
   now a real component, in the card language of the 2026 redesign, declared
   once at the foot of this file under "SUBCATEGORY CARDS". Two definitions of
   one class in one sheet is the drift this file's header argues against, so
   this one is gone rather than overridden. */

/* ==========================================================================
   THE CARD — the unit of browsing
   ========================================================================== */

.cardgrid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
}

/* Five across on a results page, four on the homepage previews. */
.cardgrid--five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

@media (max-width: 1200px) {
    .cardgrid, .cardgrid--five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
    .cardgrid, .cardgrid--five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
    .cardgrid, .cardgrid--five { grid-template-columns: minmax(0, 1fr); }
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* The card carries exactly one link to the lot — the title — and that link is
   stretched over the whole card, so the photograph is clickable without a
   screen reader having to read the same destination out twice. The action
   buttons sit above it. */
.card__title a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
}

.card:focus-within { border-color: var(--line-strong); box-shadow: var(--shadow-lift); }

.card:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-lift);
}

/* The photograph. `aspect-ratio` reserves the box before the bytes arrive, so
   a grid of fifty cards does not reflow as images stream in. */
.card__photo {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--photo);
    overflow: hidden;
}

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

/* The empty state, designed rather than defaulted.

   33 of 520 lots have no photograph, and a blank grey rectangle in a grid of
   photographs reads as a broken image — which a text row never did. So the
   slot says what it is, in the product's own voice, with a drawn frame that is
   obviously deliberate. */
.card__nophoto {
    margin: 0;
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--ink-faint);
    font-size: 0.75rem;
    text-align: center;
    padding: 12px;
    background:
        repeating-linear-gradient(
            135deg,
            rgba(141, 150, 171, 0.055) 0 10px,
            rgba(141, 150, 171, 0) 10px 20px
        ),
        var(--photo);
}

.card__nophoto svg {
    width: 30px;
    height: 30px;
    opacity: 0.55;
}

/* Time remaining, on the photograph. Red under 24 h, amber under 72 h,
   neutral above. The three states are the same three the server-rendered
   `|time_urgency` filter and the countdown controller agree on. */
/* The photo count, bottom right of the photograph (2026-09-30). Dark and
   translucent rather than the clock's white pill: it is secondary, and it has
   to read on a pale photograph as well as a dark one. */
.card__photocount {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: var(--pill);
    padding: 3px 8px;
    font-size: 0.75rem;
    font-weight: 650;
    line-height: 1.2;
    background: rgba(20, 32, 58, 0.72);
    color: #ffffff;
    pointer-events: none;
}

.pill {
    position: absolute;
    left: 10px;
    top: 10px;
    display: inline-block;
    border-radius: var(--pill);
    padding: 5px 11px;
    font-size: 0.75rem;
    font-weight: 650;
    background: rgba(255, 255, 255, 0.94);
    color: var(--ink);
    box-shadow: var(--shadow);
}

@supports (backdrop-filter: blur(6px)) {
    .pill { backdrop-filter: blur(6px); }
}

.pill--critical,
.pill--soon { background: var(--urgent); color: #fff; }

/* An announced lot's start (2026-10-13): the brand colour, not urgency. */
.pill--upcoming { background: var(--brand); color: #fff; }

/* ── The clock is the one thing a shop does not have (2026-10-11) ─────────

   The countdown was 11.5px, the smallest type on the card, on a marketplace
   whose whole proposition is that the lot stops at a time. A step up in size
   and weight costs nothing and is the cheapest liveliness on the page.

   Only on a card. The listing page's own clock is `.clock--big` and already
   sized for its context. */
.card .pill {
    padding: 6px 12px;
    font-size: 0.8125rem; /* 13px */
    font-weight: 700;
}

/* The final hour, and only the final hour.

   `critical` is under 60 minutes (`FormattingRuntime::timeUrgency`), not
   `soon`, which is under a day. A mock-up tinted everything under sixteen
   hours and every card in the row went warm — a signal that is always on is
   not a signal. At `critical` it is a handful of lots at a time, which is what
   makes it worth looking at.

   `:has()` rather than a modifier class on the card, because the countdown
   controller rewrites the `clock--*` class live as the auction runs: the tint
   then arrives and leaves on its own, with no second thing to keep in sync. */
.card:has(.clock--critical) {
    background: var(--soon-bg);
    box-shadow: inset 0 0 0 1px var(--soon-line), var(--shadow);
}
.pill--approaching { background: var(--soon); color: #fff; }
.pill--ended { background: var(--ink-muted); color: #fff; }

/* The `<time>` inside the pill carries its own `clock--*` urgency class,
   because the countdown controller rewrites that class and not the pill's text
   colour. Inside a pill the urgency is the *background*, so the text has to
   inherit — otherwise `clock--soon` paints red type on a red pill. */
.pill .clock { color: inherit; }

.card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 14px 15px 16px;
}

.card__title {
    margin: 0 0 3px;
    font-size: 0.90625rem; /* 14.5px */
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0;
}

/* Two lines, clamped. A three-line title on one card and a one-line title on
   the next is what makes a grid look like a mistake. */
.card__title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
    color: var(--ink);
}

.card__title a:visited { color: var(--ink); }
.card__title a:hover { color: var(--brand); text-decoration: none; }

.card__meta {
    margin: 0 0 11px;
    font-size: 0.75rem;
    color: var(--ink-faint);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Price then bid count, stacked. They were a `space-between` row, which put the
   two facts at opposite edges of the card and left a ragged gap between them
   that grew with the price: a four-figure lot pushed the count to the rim while
   a two-figure one left it mid-card, so the count never landed in the same
   place twice down a column of results. Stacked, the price keeps the largest
   type in the card and the count reads as a caption under it, flush left with
   the title and the meta line above. */
.card__price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin: auto 0 0;
}

.card__price b {
    font-size: 1.25rem; /* 20px */
    font-weight: 750;
    letter-spacing: -0.02em;
}

.card__bids {
    font-size: 0.75rem;
    color: var(--ink-muted);
    white-space: nowrap;
}

.card__bids--none { color: var(--ink-faint); }

/* Above the price, not below it. They used to sit between the price and the
   CTA, which meant the auto-margin pushed price+badges+CTA down as one group:
   a lot with a "Kupi odmah" badge showed its price ~33 px higher than the lot
   beside it in the same row. The CTAs lined up and the prices did not, which is
   backwards — the price is the number a bidder scans down a column. With the
   badges above, the pinned group is exactly [price, CTA], both fixed height, so
   prices align across a row and the badges absorb the slack instead. */
.card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 6px 0 0;
}

.card__cta {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 8px;
    margin: 12px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.card__cta a {
    flex: 1;
    text-align: center;
    padding: 9px;
    border-radius: var(--radius-md);
    font-size: 0.84375rem;
    font-weight: 650;
}

.card__cta a:hover { text-decoration: none; }

.card__cta .card__cta--primary {
    background: var(--brand);
    color: #fff;
}

.card__cta .card__cta--primary:visited { color: #fff; }
.card__cta .card__cta--primary:hover { background: var(--brand-dark); }

.card__cta .card__cta--secondary {
    background: var(--surface-alt);
    border: 1px solid var(--line);
    color: var(--ink-muted);
}

.card__cta .card__cta--secondary:visited { color: var(--ink-muted); }
.card__cta .card__cta--secondary:hover { border-color: var(--line-strong); color: var(--ink); }

.cardgrid__empty {
    grid-column: 1 / -1;
}

/* ----------------------------------------------------------- results bar */

.resultsbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.resultsbar__count {
    margin: 0;
    font-size: 0.875rem;
    color: var(--ink-muted);
}

.resultsbar__count b, .resultsbar__count strong { color: var(--ink); font-weight: 700; }

/* An explicit sort control: a real <form method="get"> with a real <select>
   and a real submit, so changing the order works with JavaScript disabled. */
.sortform {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sortform label {
    font-size: 0.8125rem;
    color: var(--ink-muted);
}

.sortform select {
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 9px 12px;
    font-size: 0.84375rem;
    font-weight: 600;
}

.sortform button {
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 9px 14px;
    font-size: 0.84375rem;
    font-weight: 600;
    color: var(--ink-muted);
    cursor: pointer;
}

.sortform button:hover { border-color: var(--line-strong); color: var(--ink); }

/* Hidden from the first paint when scripting runs (`html.js`, set in
   base.html.twig), so it does not flash until sort_controller.js loads. The
   controller still hides it too; this only removes the flicker. */
.js .sortform [data-sort-target="submit"] { display: none; }

/* --------------------------------------------------------- facet sidebar */

.facets {
    align-self: start;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px 18px 14px;
}

.facets h2,
.facets h3 {
    margin: 18px 0 9px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.facets > :first-child,
.facets h2:first-child,
.facets h3:first-child { margin-top: 0; }

.facets fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.facets form { margin: 0; }

.facet {
    margin: 0;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 5px 0;
    font-size: 0.84375rem;
    color: var(--ink-muted);
}

.facet a { color: var(--ink-muted); }
.facet a:visited { color: var(--ink-muted); }
.facet a:hover { color: var(--brand); }
.facet__count { font-weight: 600; color: var(--ink); }
.facet--empty { opacity: 0.55; }

.facet-check {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 0;
    font-size: 0.84375rem;
    cursor: pointer;
}

.facet-check input { accent-color: var(--brand); width: 16px; height: 16px; }
.facet-check .facet__count { font-weight: 400; color: var(--ink-faint); margin-left: auto; }

.facet-range {
    margin: 0;
    display: flex;
    gap: 8px;
    margin: 4px 0 2px;
}

.facet-range input {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-xs);
    padding: 7px 9px;
    font-size: 0.8125rem;
}

.facets__apply {
    width: 100%;
    margin-top: 14px;
    border: 0;
    border-radius: var(--radius-md);
    background: var(--brand);
    color: #fff;
    padding: 10px;
    font-size: 0.84375rem;
    font-weight: 650;
    cursor: pointer;
}

.facets__apply:hover { background: var(--brand-dark); }

/* -------------------------------------------------------------------- badges */

.badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: var(--pill);
    background: var(--surface-alt);
    border: 1px solid var(--line);
    font-size: 0.75rem;
    font-weight: 650;
    color: var(--ink-muted);
    white-space: nowrap;
    vertical-align: middle;
}

.badge--bin { background: var(--info-bg); border-color: var(--info-line); color: var(--brand); }
.badge--reserve { background: var(--surface-alt); color: var(--ink-muted); }
.badge--reserve-met,
.badge--verified,
.badge--lead { background: var(--positive-bg); border-color: var(--positive-line); color: var(--positive); }
.badge--you { background: var(--soon-bg); border-color: var(--soon-line); color: var(--soon); }
.badge--cond { background: var(--surface-alt); }

/* ---------------------------------------------------------------- sort links */

.sortlink { color: var(--ink-muted); font-weight: 600; }
.sortlink__dir { color: var(--brand); }

/* ---------------------------------------------------------------- pagination */

/* The "load more" control, above the numbered pager it supplements.

   Centred and wide because it is a target you press repeatedly while reading
   down a long list — a small link at the end of fifty cards is a thing you have
   to aim at. The pager below it keeps its own styling untouched: the two are
   deliberately not one control, since the numbers are for jumping and this is
   for continuing. */

.pagerzone__more {
    margin: 22px 0 6px;
    text-align: center;
}

.pagerzone__more .btn {
    min-width: 220px;
}

/* While a page is in flight the label swaps to "Učitavanje…" and the control is
   dimmed. It stays a link the whole time — pressing it again is harmless, the
   controller refuses re-entry — so it is not disabled and keeps its focus. */
.pagerzone__more .btn[aria-busy='true'] {
    opacity: 0.62;
    cursor: progress;
}

/* "Prikazano 54 od 54". Empty until something has been appended, so it is not
   `display: none` when idle — an `aria-live` region has to be in the document
   before the text arrives, or the change is never announced. An empty <p> with
   no margin collapses to nothing, which is the behaviour wanted. */
.pagerzone__count {
    margin: 0;
    text-align: center;
    color: var(--ink-muted);
    font-size: 0.8125rem;
}

.pagerzone__count:empty {
    display: none;
}

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    align-items: center;
    margin: 34px 0 8px;
}

.pager li { display: block; }

.pager a,
.pager > li > span {
    display: block;
    min-width: 38px;
    text-align: center;
    padding: 9px 12px;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: var(--radius-md);
    font-size: 0.84375rem;
    font-weight: 600;
    color: var(--ink-muted);
}

.pager a:hover { border-color: var(--line-strong); color: var(--ink); text-decoration: none; }
.pager a:visited { color: var(--ink-muted); }

.pager [aria-current="page"] { background: var(--blue-100) !important; border-color: var(--blue-700) !important; color: var(--blue-700) !important; }

.pager__disabled { opacity: 0.45; }

.pager__gap,
.pager .pager__gap {
    border: 0;
    background: none;
    min-width: 0;
    padding: 9px 4px;
}

.pager__summary,
.pager .pager__summary {
    border: 0;
    background: none;
    color: var(--ink-faint);
    font-weight: 400;
}

/* -------------------------------------------------------------------- footer */

.sitefoot {
    margin-top: 52px;
    border-top: 1px solid var(--line);
    background: var(--surface);
    padding: 30px 0;
    font-size: 0.8125rem;
    color: var(--ink-faint);
}

.sitefoot ul,
.sitefoot p {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.sitefoot ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-bottom: 8px;
}

.sitefoot a { color: var(--ink-faint); }
.sitefoot a:visited { color: var(--ink-faint); }
.sitefoot a:hover { color: var(--brand); }

/* ---------------------------------------------------------- seller profile */

/*
   A seller's public page: their standing on the left, their lots and their
   feedback on the right.

   The same two-column shape as the category page rather than a new one — the
   sidebar is a panel of facts and the main column is a grid, which is what the
   reader has already learned everywhere else on the site.
*/
.sellerpage__head { margin: 24px 0 18px; }
.sellerpage__head h1 { margin: 0 0 4px; }

.sellerpage__cols {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

/* Below the breakpoint the sidebar becomes a band above the grid, as the facet
   rail does — a 300px column and a card grid do not both fit on a phone. */
@media (max-width: 900px) {
    .sellerpage__cols { grid-template-columns: minmax(0, 1fr); }
}

.sellerpage__h2 {
    margin: 32px 0 14px;
    font-size: 1.125rem;
}

.sellerpage__main > .sellerpage__h2:first-child { margin-top: 0; }

/* ── Feedback ──────────────────────────────────────────────────────────── */

.fbacklist {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/*
   A left rule carries the tone. Colour is never the only signal: `.fback__tone`
   says "Pozitivna" in words beside it, so the rule is reinforcement rather than
   the message — the same rule the wallet badge and the overdue amount follow.
*/
.fback {
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 3px solid var(--line-strong);
    border-radius: var(--radius-md);
}

.fback--positive { border-left-color: var(--positive); }
.fback--neutral  { border-left-color: var(--ink-faint); }
.fback--negative { border-left-color: var(--urgent); }

.fback__head {
    margin: 0 0 6px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    font-size: 0.8125rem;
    color: var(--ink-muted);
}

.fback__tone { font-weight: 700; }
.fback--positive .fback__tone { color: var(--positive); }
.fback--negative .fback__tone { color: var(--urgent); }

.fback__who { font-weight: 650; color: var(--ink); }
.fback__when { color: var(--ink-faint); }

/* Quiet, but present. An edited rating is a different object from one written
   once, and hiding that would be the page taking a side. */
.fback__revised {
    font-size: 0.75rem;
    font-style: italic;
    color: var(--ink-faint);
}

.fback__body {
    margin: 0;
    line-height: 1.5;
    /* Buyer-typed text: a single unbroken token must not widen the column. */
    overflow-wrap: anywhere;
}

/*
   The seller's answer, indented under the rating it answers. Indented rather
   than boxed, because it is a reply and not a second rating — giving it the
   same weight as the comment would let a seller out-shout every buyer.
*/
.fback__reply {
    margin: 10px 0 0 14px;
    padding: 8px 12px;
    border-left: 2px solid var(--line);
    background: var(--surface-alt);
    border-radius: var(--radius-xs);
}

.fback__reply p { margin: 0; overflow-wrap: anywhere; }

.fback__replyhead {
    margin: 0 0 3px !important;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ink-muted);
}

/* ------------------------------------------------------------- error pages */

/*
   404 and its siblings.

   Centred, and *horizontally* — which is the distinction the first version of
   this file got wrong in one direction and my rewrite got wrong in the other.

   The original pinned the text to the middle of the viewport with
   `position: fixed`, which took it out of the document and laid it over the
   masthead, so the one control a lost visitor actually needs — the search box —
   ended up underneath the apology. Fixing that by going flush left overcorrected:
   an error page is not a content page. It is an interstitial with nothing else
   on it, and a narrow column jammed against the left edge of a wide screen
   reads as a page that failed to finish loading.

   So: in the normal flow, below the masthead, centred in the space it is given.
   No illustration and no oversized hero — the project's aesthetic is compact
   rows and everything above the fold, and an error page is the last place to
   spend screen on decoration.
*/
.errorpage {
    max-width: 44ch;
    margin: 72px auto 96px;
    text-align: center;
}

/*
   The code, small and faint. It is the least useful thing on the page to the
   person reading it and the most useful thing to whoever they report it to, so
   it is present and quiet rather than the 96px centrepiece these pages usually
   make of it.
*/
.errorpage__code {
    margin: 0 0 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--ink-faint);
    font-variant-numeric: tabular-nums;
}

.errorpage__title {
    margin: 0 0 10px;
    font-size: 1.625rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

.errorpage__lede {
    margin: 0 0 24px;
    color: var(--ink-muted);
    line-height: 1.55;
    /* `balance` is for headings; a three-line paragraph wants even ragging,
       which is what `pretty` does — and centred text makes an orphaned last
       word far more obvious than left-aligned text would. */
    text-wrap: pretty;
}

/*
   The ways onward. A centred row rather than the full-width stack this used to
   be: bordered rows spanning a centred column drew a box around the text and
   made the page look like a table of contents, when it is three links.

   `flex-wrap` so a narrow screen stacks them instead of shrinking the words.
*/
.errorpage__ways {
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 18px;
}

.errorpage__ways a {
    display: inline-block;
    font-weight: 600;
}

/*
   The first way is the likeliest one — somebody who followed a dead lot link is
   still shopping — so it gets the weight of a control and the other two stay
   quiet links. One emphasis, not three.

   It takes the whole row (`flex-basis: 100%`) rather than sharing one. Left to
   wrap naturally the three items broke as "button + one link / one link", which
   orphaned the last and read as an accident; giving the primary its own line
   makes the break deliberate and the hierarchy legible at a glance.
*/
.errorpage__ways li:first-child {
    flex-basis: 100%;
}

.errorpage__ways li:first-child a {
    padding: 10px 18px;
    border-radius: var(--pill);
    background: var(--brand);
    color: var(--brand-ink);
}

.errorpage__ways li:first-child a:hover {
    background: var(--brand-dark);
    text-decoration: none;
}

.errorpage__hint {
    margin: 0;
    font-size: 0.875rem;
    color: var(--ink-faint);
    line-height: 1.5;
}

/* --------------------------------------------------------------- empty state */

.empty {
    margin: 0;
    padding: 40px 20px;
    text-align: center;
    color: var(--ink-muted);
    background: var(--surface);
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
}

.muted { color: var(--ink-muted); }
.lede { font-size: 1rem; color: var(--ink-muted); max-width: 68ch; }

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

.form {
    max-width: 420px;
    margin: 40px auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 26px;
}

.centered { text-align: center; }
.main__title { margin-bottom: 18px; }

.form label { display: block; font-weight: 600; font-size: 0.84375rem; margin-bottom: 4px; }

.form input[type="text"],
.form input[type="email"],
.form input[type="password"],
.form input[type="number"],
.form select {
    width: 100%;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-md);
    padding: 11px 13px;
    margin-bottom: 14px;
}

.form input:focus { border-color: var(--brand); }

/* One ring, not two. A clicked text control matches `:focus-visible`, so the
   site-wide 2px outline drew *around* the brand border these already switch on
   and the field read as double-bordered. `.searchbar` solved this first, the
   same way: the control's own border is the focus indicator, thickened by an
   inset shadow so nothing on the page moves, and the outline stands down. */
.form input:focus-visible,
.form select:focus-visible,
.form textarea:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 0.5px var(--brand);
}

/* macOS Chrome keeps drawing the native bevel *inside* an author border while
   `appearance` stays `auto`, so the select on the report form read as two
   borders when the input above it had one. `appearance: none` removes the
   bevel and the native arrow together, which means the arrow has to be drawn
   back — the same inline `data:` chevron `.accform select` uses, with the right
   padding that keeps a long reason from running underneath it. */
.form select {
    padding-right: 34px;
    appearance: none;
    -webkit-appearance: none;
    background-color: var(--surface);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.75 6 6.25 11 1.75' fill='none' stroke='%235c6780' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.form select:focus { border-color: var(--brand); }

.form button,
.btn {
    /* The ink is a variable so `:visited` can read it — see the rule below. */
    --btn-ink: #fff;
    display: inline-block;
    border: 0;
    border-radius: var(--radius-md);
    background: var(--brand);
    color: var(--btn-ink);
    padding: 12px 22px;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
}

/* The global `a:visited` is (0,1,1) and `.btn` is (0,1,0), so every
   `<a class="btn">` the reader had already followed took the purple link ink on
   the brand background and the label all but disappeared — "Natrag na
   naslovnicu" on the report receipt, "Učitaj još" under a feed, "Kupi odmah" on
   a lot. `.accbtn` in account.css hit this first and solved it the same way:
   each variant declares its ink once and `:visited` follows it. */
.btn:visited { color: var(--btn-ink); }

.form button:hover, .btn:hover { background: var(--brand-dark); color: #fff; text-decoration: none; }

.form__link { display: inline-block; margin-top: 10px; font-size: 0.84375rem; }

/* The note under a field. `.form` styles a label, an input and a button but had
   nowhere to put the sentence that explains the field — which is why
   `registrationSent` reached for `account.css` and its `.accform__hint`, pulling
   a second form system into a page that needed one line of type. */
.form__hint { margin: -8px 0 14px; font-size: 0.8125rem; color: var(--ink-muted); }

.alert {
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin-bottom: 14px;
    font-size: 0.875rem;
}

.alert-danger {
    background: var(--danger-bg);
    border: 1px solid var(--danger-line);
    color: var(--danger);
}

/* Good news the reader should not miss — the fees page's promotion notice. */
.alert-positive {
    background: var(--positive-bg);
    border: 1px solid var(--positive-line);
    color: var(--positive);
}

/* ==========================================================================
   THE LISTING PAGE
   ========================================================================== */

/* Gallery on the left, sticky bid panel on the right. 400px is the panel
   width from the approved comps. */
/*
   The trailing `". buy"` row is load-bearing, and the bug it fixes is not
   obvious from reading the areas.

   `.listing__buy` spans the three left-hand rows. When a grid item spans several
   auto-sized rows and needs more height than they provide, Grid distributes the
   surplus *equally across the rows it spans* — so a tall bid column does not
   simply overhang, it pushes `media`, `desc` and `tabs` apart. With
   `align-items: start` each of them stays at the top of its now-taller row, and
   the surplus appears as a widened gap between them.

   That is exactly what happened when a bid was placed. The outcome panel
   (`#bid-outcome`) is rendered inside `.listing__buy`, so posting a bid grew
   that column and the description and the tab strip visibly drifted apart.
   Measured on a lot page: the 24px gaps became 49px with one outcome panel and
   60px with a taller one, growing in lockstep with the bid column.

   The empty fifth row belongs to `buy` alone and is `1fr`. A flexible track is
   excluded from the intrinsic distribution above and absorbs the surplus in the
   flex-sizing step instead, so the three content rows keep their own heights and
   the gaps stay at 24px however tall the bid column becomes. The grid's overall
   height is unchanged — the space was always there, it was simply being put in
   the wrong place.

   Wrapping `media`/`desc`/`tabs` in one element would also have fixed it, and is
   why the areas are not simply "main buy": at =1000px the order becomes
   media, **buy**, desc, tabs, with the bid panel *between* them, which a wrapper
   makes impossible.
*/
.listing {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    grid-template-areas:
        "notice notice"
        "media  buy"
        "desc   buy"
        "tabs   buy"
        ".      buy";
    grid-template-rows: auto auto auto auto 1fr;
    gap: 24px 34px;
    margin-top: 20px;
    align-items: start;
}

.connection-notice { grid-area: notice; }
.listing__media { grid-area: media; min-width: 0; }
/*
   Nothing in this column is sticky, and that is the decision, not an omission.

   The bid panel used to pin. It kept the price and the amount field on screen,
   which sounds right until there is a second card below it: the seller card
   then scrolled up and vanished underneath a pinned panel, so you could never
   read who you were buying from while looking at anything else. Sticking the
   whole column instead just moved the problem — the pair is taller than a
   laptop viewport, and a sticky element taller than the screen puts its own
   bottom permanently out of reach. Capping it and scrolling inside fixed the
   reachability and introduced a scrollbar within a scrollbar.

   So: the column scrolls with the page. The seller is visible when you scroll
   to it, the bid panel is where you left it, and there is one scrollbar on the
   page. Bidding starts at the top of the column, which is where a bidder
   arrives anyway.
*/
.listing__buy { grid-area: buy; }
.listing__tabs { grid-area: tabs; min-width: 0; }

/*
   The item description, directly under the photographs.

   It was a tab. On a marketplace for collectables the description carries the
   condition, the provenance and the flaws — the facts that decide whether
   somebody bids — and putting them behind a click, level with a postage table,
   ranked them as one reference panel among four.

   Its own area rather than a child of `.listing__media`: see the note in
   listing.html.twig. On a wide screen the two stack into one column and the
   difference is invisible; on a phone the areas reorder, and this is the one
   that must fall *after* the bid box rather than shove it down the page.
*/
.listing__desc { grid-area: desc; min-width: 0; }

.listing__desc-heading {
    margin: 0 0 10px;
    font-size: 1.0625rem;
    font-weight: 700;
}

@media (max-width: 1000px) {
    .listing {
        grid-template-columns: minmax(0, 1fr);
        /* `desc` after `buy`, not before it. On a phone the bid panel is the
           reason the page is open; a two-hundred-word description between the
           photographs and the amount field buries it. On the desktop the same
           content sits directly under the gallery, because there the bid panel
           is beside it and never displaced. */
        grid-template-areas: "notice" "media" "buy" "desc" "tabs";
        /* The desktop rule adds a fifth row sized `1fr` to absorb a tall bid
           column. Here there is one column and nothing spans, so it has nothing
           to absorb — and measured, it currently changes nothing: this grid's
           height is auto, so an `1fr` row resolves to its content size anyway.

           Reset regardless, because "currently changes nothing" is a property of
           the container, not of the rule. The fifth row of *this* layout is
           `tabs`, and the day anything gives `.listing` a definite height that
           leaked `1fr` would stretch the tab strip down the page. Cheaper to
           say the rows are content-sized than to leave that waiting. */
        grid-template-rows: none;
    }
}

/* Inside the bid panel: the title, then the two badges, then the price. */
.listinghead { margin: 0 0 16px; }
.listinghead h1 { margin: 0 0 8px; font-size: 1.5625rem; font-weight: 750; }
.listinghead__meta { margin: 0; display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.listinghead__watch { font-size: 0.8125rem; color: var(--ink-muted); }

.pagehead { margin: 22px 0 4px; }

/* ------------------------------------------------------------------ gallery */

.gallery {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.gallery--none {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    aspect-ratio: 4 / 3;
    margin: 0;
    color: var(--ink-faint);
    background:
        repeating-linear-gradient(
            135deg,
            rgba(141, 150, 171, 0.055) 0 12px,
            rgba(141, 150, 171, 0) 12px 24px
        ),
        var(--photo);
}

.gallery__stage {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--photo);
}

/* Capped on a wide screen (2026-10-11): at 4:3 of the column the photo stood
   ~620 px tall and pushed the description two screens down. `contain` on the
   image keeps every photo whole; the lightbox still opens it full size. */
@media (min-width: 1001px) {
    .gallery__stage { max-height: 520px; width: 100%; }
}

.gallery__slide {
    position: absolute;
    inset: 0;
}

.gallery__slide a { display: block; height: 100%; }

.gallery__slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Switching images with no JavaScript: every slide has an id, every thumbnail
   is an ordinary in-page link, `:target` does the rest. The first slide is the
   default and steps aside as soon as one is chosen. */
.gallery__stage > .gallery__slide { display: none; }
.gallery__stage > .gallery__slide:first-child { display: block; }
.gallery__stage > .gallery__slide:target { display: block; }
/* Scoped to direct children on purpose: an in-page link to something that
   merely *lives inside* a slide must not stand the default slide down. */
.gallery__stage:has(> .gallery__slide:target) > .gallery__slide:first-child:not(:target) { display: none; }

/* Where `:has()` is unavailable there is no way to un-show the default slide,
   so show all of them stacked — less tidy, completely functional. */
@supports not selector(:has(*)) {
    .gallery__stage { position: static; aspect-ratio: auto; }
    .gallery__stage .gallery__slide { position: static; display: block; }
    .gallery__stage .gallery__slide img { aspect-ratio: 4 / 3; }
}

.gallery__thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    padding: 12px;
    border-top: 1px solid var(--line);
}

.gallery__thumbs a {
    display: block;
    width: 66px;
    height: 52px;
    border-radius: var(--radius-xs);
    border: 2px solid transparent;
    background: var(--photo);
    overflow: hidden;
}

.gallery__thumbs a:hover,
.gallery__thumbs a:focus-visible,
.gallery__thumbs a[aria-current="true"] { border-color: var(--brand); }

/* With `gallery_swipe_controller.js` running (2026-10-11) the current slide is
   a class, not `:target`: a swipe must change the photo without a page jump,
   and only a navigation moves `:target`. Declared after the `:target` rules so
   it wins the equal-specificity tie; `.is-current` then wins outright. */
.gallery--swipe .gallery__stage > .gallery__slide { display: none; }
.gallery--swipe .gallery__stage > .gallery__slide.is-current { display: block; }
/* Horizontal movement is the gallery's; vertical still scrolls the page. */
.gallery--swipe .gallery__stage { touch-action: pan-y; }

/* Previous / next over the photo, desktop only (2026-10-19): a phone swipes. */
.gallery__frame { position: relative; }
.gallery__arrow { display: none; }

@media (min-width: 1001px) {
    .gallery--swipe .gallery__arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0;
        border: 1px solid var(--line);
        border-radius: 50%;
        background: var(--surface);
        color: var(--ink);
        box-shadow: var(--shadow);
        cursor: pointer;
        opacity: 0.85;
    }
    .gallery__arrow--prev { left: 12px; }
    .gallery__arrow--next { right: 12px; }
    .gallery--swipe .gallery__arrow:hover,
    .gallery--swipe .gallery__arrow:focus-visible { opacity: 1; border-color: var(--brand); color: var(--brand); }
    .gallery__arrow svg { width: 22px; height: 22px; }
}

.gallery__thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------------------------------------------------------------- lightbox */

/* `.gallery--zoomable` is added by the Stimulus controller *after* PhotoSwipe
   has actually loaded and bound, never by the template. The cursor is a promise
   and it is only made once it can be kept: with no JavaScript, or with the
   module still in flight, the stage stays an ordinary link to the full-size
   photograph and shows an ordinary link cursor. */
.gallery--zoomable .gallery__slide a { cursor: zoom-in; }

/* PhotoSwipe's own stylesheet is vendored and same-origin
   (assets/vendor/photoswipe/dist/photoswipe.min.css); it is imported by the
   controller and arrives only on a listing page that has photographs. What
   follows is the small amount of it the product overrides — nothing here
   recreates the library's layout.

   The dialog sits above everything, including the sticky masthead and the
   sticky bid box, so its own `--pswp-root-z-index` is left alone.

   Selectors are `body .pswp` rather than `.pswp` on purpose. The library's
   stylesheet is appended to `<head>` at run time, i.e. *after* this file, so at
   equal specificity it would win every one of these. One extra element in the
   selector settles it without an `!important`. */
body .pswp {
    /* Not pure black: the same near-black the rest of the product uses for its
       deepest surface, so the viewer reads as part of the page. */
    --pswp-bg: #10131a;
}

/* The global focus ring is a 2 px `--focus` outline, which is a mid blue and
   nearly invisible against a near-black overlay. Same width, same idea, white:
   a keyboard user must be able to see which control they are on before they
   press Enter on "close". */
body .pswp :focus-visible {
    outline: 2px solid #fff;
    outline-offset: -3px;
}

/* ------------------------------------------------------------------ bid box */

.bidbox {
    /* Sticky moved to `.listing__buy` so the seller card pins with it. */
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lift);
    padding: 22px;
}

@media (max-width: 1000px) {
    .bidbox { position: static; }
}

.bidbox__label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--ink-faint);
    margin-bottom: 5px;
}

/* The largest type on the page. Nothing competes with it. */
.bigprice {
    display: block;
    font-size: 2.25rem; /* 36px */
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

/* Set by the live controller when the Mercure connection has been down long
   enough that we can no longer vouch for the number. */
.bigprice[data-stale="true"] {
    color: var(--ink-muted);
    text-decoration: line-through wavy var(--urgent) 1px;
}

.bidbox__sub {
    display: block;
    font-size: 0.84375rem;
    color: var(--ink-muted);
    margin-top: 7px;
}

.bidcount--none { color: var(--ink-faint); }

/* Two states, one string each. Nothing here scales with the distance to the
   reserve, and nothing may be added that does. */
.reserve {
    margin: 8px 0 0;
    font-size: 0.78125rem;
    font-weight: 650;
}

.reserve--met { color: var(--positive); }
.reserve--unmet { color: var(--ink-muted); }

.bidbox__clock { margin: 18px 0; }

.clockbox {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 9px;
    margin: 0;
    background: var(--soon-bg);
    border: 1px solid var(--soon-line);
    border-radius: var(--radius-md);
    padding: 11px 14px;
    color: var(--soon);
    font-weight: 650;
    font-size: 0.90625rem;
}

.clockbox__label { text-transform: none; }
/*
   The exact ending instant, promoted out of a faint footnote.

   "8 d 19 h" answers "should I keep watching"; it does not answer "can I be at
   my desk for this". A collector plans around a wall-clock time, and a bidder
   who mis-reads the end of an auction loses the lot. So the absolute time is a
   peer of the countdown, not a whisper under it: full opacity, tabular figures
   so the digits do not jitter as the countdown reflows beside it.
*/
.clockbox__absolute {
    flex-basis: 100%;
    font-weight: 600;
    font-size: 0.875rem;
    font-variant-numeric: tabular-nums;
    opacity: 1;
    margin-top: 2px;
}

.clock--big { font-size: 1.0625rem; }

/* Countdown urgency. `critical` (<1 h) and `soon` (<24 h) are the red band the
   redesign asks for; `approaching` (<72 h) is amber; `normal` is neutral. The
   same four names are produced by App\Twig\FormattingRuntime::timeUrgency()
   and mirrored in assets/controllers/countdown_controller.js. */
.clock--critical,
.clock--soon { color: var(--urgent); }
.clock--approaching { color: var(--soon); }
.clock--normal { color: var(--ink-muted); }
.clock--ended { color: var(--ink-faint); }

.clockbox:has(.clock--critical),
.clockbox:has(.clock--soon) {
    background: #fef3f2;
    border-color: #fecdca;
    color: var(--urgent);
}

.clockbox:has(.clock--normal),
.clockbox:has(.clock--ended) {
    background: var(--surface-alt);
    border-color: var(--line);
    color: var(--ink-muted);
}

.extnote {
    margin: 9px 0 0;
    font-size: 0.75rem;
    color: var(--ink-muted);
}

.extnote--live { color: var(--soon); font-weight: 650; }
.extnote__count { display: block; }

/* -------------------------------------------------------------- the bid form */

.bidbox__nextmin {
    margin: 0 0 10px;
    font-size: 0.8125rem;
    color: var(--ink-muted);
}

/* Amount field and submit on one row, everything else spanning underneath.
   The form is the grid, so the currency mark can be positioned against the
   input's own box rather than guessed at from the button's width. */
.bidform {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 9px;
    align-items: end;
    margin: 0;
}

.field--amount {
    position: relative;
    grid-column: 1;
    min-width: 0;
}

.field--amount label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ink-muted);
}

.bidform__amount {
    width: 100%;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-md);
    padding: 13px 32px 13px 14px;
    font-size: 1rem;
}

/* One focus line, as on the masthead search: the border itself, thickened to
   2 px inward. The halo and the site-wide outline outside it read as two more. */
.bidform__amount:focus { border-color: var(--brand); box-shadow: inset 0 0 0 0.5px var(--brand); }
.bidform__amount:focus-visible { outline: none; }

.bidform__currency {
    position: absolute;
    right: 12px;
    bottom: 14px;
    color: var(--ink-faint);
    pointer-events: none;
}

.btn--bid {
    grid-column: 2;
    border-radius: var(--radius-md);
    padding: 13px 26px;
    font-size: 0.9375rem;
    font-weight: 700;
    white-space: nowrap;
}

.bidform__note {
    grid-column: 1 / -1;
    margin: 9px 0 0;
    font-size: 0.78125rem;
    color: var(--ink-faint);
}

.bidform__note--own { color: var(--brand); font-weight: 600; }

.bidbox__closed {
    margin: 0;
    background: var(--surface-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 13px 14px;
    font-size: 0.875rem;
    color: var(--ink-muted);
}

.binline {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin: 14px 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.binline__label { font-size: 0.8125rem; color: var(--ink-muted); }
.price--bin { font-weight: 700; }

/* The purchase itself, under the price it quotes.

   Full width and in the accent rather than the brand blue: the page already has
   a blue "Licitiraj" as its primary action, and two identical-looking buttons
   one above the other — one that raises a bid, one that ends the auction — is
   how somebody buys an item they meant to bid on. */
.binbuy {
    margin: 10px 0 0;
}

.btn--bin {
    display: block;
    width: 100%;
    background: var(--accent);
    text-align: center;
}

.btn--bin:hover {
    background: #cf4d09;
}

/* What the button will actually do, stated before it is pressed rather than
   discovered after. */
.binbuy__note {
    margin: 6px 0 0;
    font-size: 0.75rem;
    color: var(--ink-muted);
}

/* ---------------------------------------------- buy it now: the confirmation

   A narrow, centred page with one job. Deliberately not the listing layout: the
   reader has left the lot to decide one thing, and the countdown, the bid
   history and the seller's other items are all reasons to look away from the
   figure they are about to commit to. */

.binconfirm {
    max-width: 620px;
    margin: 28px auto 60px;
    padding: 0 16px;
}

.binconfirm__head {
    margin: 0 0 20px;
    font-size: 1.5rem;
}

.binconfirm__lot {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.binconfirm__thumb {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: var(--radius-xs);
    background: var(--photo);
    flex: none;
}

.binconfirm__title { margin: 0 0 6px; font-weight: 700; }
.binconfirm__seller { margin: 0; font-size: 0.875rem; color: var(--ink-muted); }
.binconfirm__sellertype { color: var(--ink-muted); }

.binconfirm__facts {
    display: grid;
    grid-template-columns: minmax(0, 9rem) minmax(0, 1fr);
    gap: 10px 18px;
    margin: 18px 0;
}

.binconfirm__facts dt { color: var(--ink-muted); font-size: 0.875rem; }
.binconfirm__facts dd { margin: 0; }

/* The one number that must not be scanned past. */
.binconfirm__price {
    font-size: 1.375rem;
    font-weight: 750;
}

/* No bullets and no indent: this list sits in the same grid column as the price
   and the returns line, and a list's default padding starts it a character or so
   to their right — three values in one column, one of them not lining up. The
   delivery methods are a list semantically; they do not need to look like one. */
.binconfirm__shipping {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

/* The obligation, in the reader's path rather than in small print under the
   button — it is the sentence that makes the button's label true. */
.binconfirm__note {
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid var(--soon-line);
    border-radius: var(--radius-xs);
    background: var(--soon-bg);
    color: var(--soon);
    font-size: 0.875rem;
}

.binconfirm__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.binconfirm__actions .btn--bin { width: auto; min-width: 260px; }
.binconfirm__cancel { font-size: 0.875rem; }

/* The same panel, shown over the lot instead of instead of it.

   `<dialog>` rather than a hand-built overlay: the browser supplies the focus
   trap, Esc-to-close and an inert background, which is most of what makes a
   dialog safe to put a purchase inside. The panel keeps its own margins reset —
   centred-on-a-page spacing looks stranded inside a box. */

.bindialog {
    max-width: min(640px, calc(100vw - 32px));
    padding: 0;
    border: 0;
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--shadow-lift);
}

.bindialog::backdrop {
    background: rgba(15, 23, 41, 0.55);
}

.bindialog .binconfirm {
    margin: 0;
    padding: 24px;
}

/* The page needs the heading; the dialog is already announced by its own role,
   so the heading stays but loses the page-sized top margin. */
.bindialog .binconfirm__head {
    font-size: 1.25rem;
}

/* ------------------------------------------------------------- bid outcome */

/* The live region itself, which is present on every render whether or not
   there is a message in it. Deliberately unstyled: an empty `<div>` occupies
   no space, and giving it padding or a border would make "no outcome" visible
   as a gap. It is a sibling of `.bidbox__form`, not a child of it — see
   catalog/_listing_outcome.html.twig for why that placement is load-bearing.

   `display: contents` would be the tidy way to make the wrapper disappear from
   layout, and it is deliberately not used: it has a history of dropping
   elements that carry a role out of the accessibility tree, and this one
   carries `role="status"`. A plain empty block costs nothing and is announced. */
.outcome-slot { margin: 0; }

/* One shape for all six outcomes — see catalog/_listing_outcome_body.html.twig.
   Only the words differ, and only the colour differs here. Nothing in this
   block may become conditional on anything but `.outcome--ok` /
   `.outcome--no`, because a second structural difference is a second timing
   and layout oracle. */
.outcome {
    margin: 0 0 16px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--ink-muted);
    border-radius: var(--radius-md);
    background: var(--surface-alt);
    padding: 14px 16px;
}

.outcome--ok { border-left-color: var(--positive); background: var(--positive-bg); }
.outcome--no { border-left-color: var(--urgent); background: #fef3f2; }

/* `tabindex="-1"` makes this the landing pad for the focus that
   assets/controllers/bid_outcome_controller.js moves here when the bid form is
   replaced out from under the keyboard. Same reasoning as `main:focus` above:
   programmatic focus does not match `:focus-visible`, so the ring is suppressed
   only in that case — a real Tab onto it, if the markup ever changes to allow
   one, still shows one. */
.outcome:focus:not(:focus-visible) { outline: none; }

.outcome__headline { margin: 0 0 4px; font-weight: 700; font-size: 0.9375rem; }
.outcome__detail { margin: 0 0 10px; font-size: 0.84375rem; }

.outcome__facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 6px 14px;
    margin: 0;
    font-size: 0.78125rem;
}

.outcome__facts div { display: flex; flex-direction: column; }
.outcome__facts dt { color: var(--ink-muted); }
.outcome__facts dd { margin: 0; font-weight: 650; }

/* ------------------------------------------------------- seller / shipping */

.factlist {
    display: grid;
    grid-template-columns: minmax(90px, auto) minmax(0, 1fr);
    gap: 4px 14px;
    margin: 0;
    font-size: 0.84375rem;
}

.factlist dt { color: var(--ink-muted); }
.factlist dd { margin: 0; }
.factlist__strong { font-weight: 700; }
.factlist__mono { font-family: var(--font-num); font-size: 0.8125rem; }
.factlist--tight { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }

.rating { font-weight: 700; color: var(--positive); }
.rating--none { color: var(--ink-muted); font-weight: 400; }

/* A percentage without its denominator is how a marketplace launders a thin
   reputation, so the denominator is never optional. */
.rating__of { color: var(--ink-muted); }

/* Seller status (2026-10-02): a level badge, the counts in words, and the
   rules one click away in a <details>. */
.sellerstatus { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
/* The level and its counts on one line (2026-10-11), the rules below them. */
.sellerstatus__help { flex-basis: 100%; }
.factlist__strong a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.factlist__strong a:hover { text-decoration-color: currentColor; }
.sellerlevel {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 9px;
    border-radius: var(--pill);
    font-weight: 650;
    font-size: 0.8125rem;
}
.sellerlevel__stars { letter-spacing: 1px; }
.sellerlevel--new { background: #eef1f6; color: var(--ink-muted); }
.sellerlevel--trusted { background: var(--positive-bg); color: var(--positive); border: 1px solid var(--positive-line); }
.sellerlevel--excellent { background: #fff4d6; color: #8a5a00; border: 1px solid #f0d68a; }
.sellerstatus__counts { color: var(--ink-muted); font-size: 0.8125rem; }
.sellerstatus__negative { color: var(--urgent); }
.sellerstatus__help { font-size: 0.75rem; color: var(--ink-muted); }
.sellerstatus__help summary { cursor: pointer; color: var(--link); }
.sellerstatus__help ul { margin: 6px 0 4px; padding-left: 16px; }
.sellerstatus__help p { margin: 0; }

.minitable { width: 100%; font-size: 0.84375rem; }

/* Left, not the browser's centred default. `.minitable` carries a caption on
   the legal pages — a data table needs a name of its own, or a screen reader
   announces "table, five columns" and nothing about what is in it — and an
   unstyled caption reads as a stray centred sentence above a left-aligned grid.
   Matches `.bidlog caption`, which is the same idea on the listing page. */
.minitable caption {
    text-align: left;
    padding: 0 0 8px;
    font-size: 0.84375rem;
    color: var(--ink-muted);
}

.minitable th,
.minitable td {
    text-align: left;
    padding: 7px 10px;
    border-bottom: 1px solid var(--line);
}

.minitable thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-faint);
    font-weight: 700;
}

.minitable tbody tr:last-child th,
.minitable tbody tr:last-child td { border-bottom: 0; }

.shipfree { color: var(--positive); font-weight: 650; }
.shipfree__over { display: block; font-size: 0.75rem; color: var(--ink-muted); }
.returns { margin: 12px 0 0; font-size: 0.8125rem; color: var(--ink-muted); }

.col-price, .col-num, .col-days { text-align: right; }
.col-src, .col-ends { white-space: nowrap; }

/* ------------------------------------------------------------ the tab strip */

/* Tabs without JavaScript.

   Each panel is a real section with an id; each tab is an ordinary in-page
   link to it. `:target` shows the linked panel and `:has(:target)` on the
   container stands the default one down. The default panel is the bid
   history — this marketplace's trust mechanism is the first thing on the
   strip, not the last.

   These are `<a>`s and not `role="tab"`, for the same reason the homepage feed
   strip is: ARIA tabs promise arrow-key panel switching that only JavaScript
   can deliver, and this is a core read path. */
.tabstrip {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    border-bottom: 1px solid var(--line);
    margin: 0;
}

.tabstrip a {
    display: block;
    padding: 13px 0;
    font-size: 0.90625rem;
    font-weight: 650;
    color: var(--ink-faint);
}

.tabstrip a:hover { color: var(--ink); text-decoration: none; }

.tabpanels > .tabpanel { display: none; }
.tabpanels > .tabpanel:first-of-type { display: block; }
.tabpanels > .tabpanel:target { display: block; }

/* `:has(> .tabpanel:target)`, not `:has(:target)`. `#listing-bidcount` links to
   `#bid-history`, which is the table *inside* the default panel; with the
   unscoped selector that link would hide the very panel it scrolls to. */
.tabpanels:has(> .tabpanel:target) > .tabpanel:first-of-type:not(:target) { display: none; }

/* The current tab. Same `:target` state, read from the strip's side. */
.listing__tabs:has(#opis:target) .tabstrip a[href="#opis"],
.listing__tabs:has(#dostava:target) .tabstrip a[href="#dostava"],
.listing__tabs:has(#ponude:target) .tabstrip a[href="#ponude"],
/* Without this line, opening the Q&A tab left *no* tab underlined: the
   first-child fallback below only applies when nothing is targeted, and
   `#pitanja` is. A tab strip with no current tab reads as a broken page. */
.listing__tabs:has(#pitanja:target) .tabstrip a[href="#pitanja"],
.listing__tabs:not(:has(> .tabpanels > .tabpanel:target)) .tabstrip a:first-child {
    color: var(--ink);
    box-shadow: inset 0 -2.5px 0 var(--brand);
}

/*
   The same machinery for the seller page's two tabs.

   `.tabpanels > .tabpanel` above is generic and needs nothing here; only the
   *current tab* rule is per-page, because it names the panel ids it highlights
   for. Written out rather than generalised for the reason the listing page's
   version gives: every id has to be listed or opening that tab leaves no tab
   underlined, and a strip with no current tab reads as a broken page.
*/
.sellerpage__tabs:has(#predmeti:target) .tabstrip a[href="#predmeti"],
.sellerpage__tabs:has(#ocjene:target) .tabstrip a[href="#ocjene"],
.sellerpage__tabs:not(:has(> .tabpanels > .tabpanel:target)) .tabstrip a:first-child {
    color: var(--ink);
    box-shadow: inset 0 -2.5px 0 var(--brand);
}

/* Without `:has()` every panel is shown, stacked, each under its own heading.
   Longer, entirely readable, no script. */
@supports not selector(:has(*)) {
    .tabpanels > .tabpanel { display: block; }
    .tabstrip { display: none; }
    .tabpanel__heading { position: static !important; width: auto; height: auto; clip: auto; clip-path: none; margin: 18px 0 8px; }
}

.tabpanel { padding-top: 18px; }

/* A tab is a `#` link, so the browser scrolls its panel to the top and the
   strip went off screen. Stop with the strip just under the phone's pinned
   app bar instead: 56px bar + 50px strip. `#ponude` named because
   r-seller-lot.css gives it its own margin for the seller, who has no strip. */
@media (max-width: 700px) {
    .listing__tabs .tabstrip ~ .tabpanels > .tabpanel,
    .listing__tabs .tabstrip ~ .tabpanels > #ponude { scroll-margin-top: 106px; }
}

.tabpanel__heading {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

/* ----------------------------------------------------------- bid history */

/* Complete, newest first, never truncated and never behind a click. It is the
   default tab, which is the closest thing to "not behind a click" that a tab
   strip allows. */
.bidlog {
    width: 100%;
    background: var(--surface);
    font-size: 0.84375rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border-spacing: 0;
}

.bidlog caption {
    text-align: left;
    padding: 13px 14px;
    font-weight: 700;
    border-bottom: 1px solid var(--line);
}

.bidlog th,
.bidlog td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid #f0f2f6;
}

.bidlog thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-faint);
    font-weight: 700;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

.bidlog tbody tr:last-child th,
.bidlog tbody tr:last-child td { border-bottom: 0; }

.bidlog .col-price,
.bidlog .col-num { text-align: right; }

.bidlog__seq { font-weight: 400; color: var(--ink-faint); }
.bidlog__mask { font-family: var(--font-num); font-size: 0.8125rem; }
.bidlog__score { color: var(--ink-faint); }
.bidlog__src { color: var(--ink-muted); }

.bidlog__row--winning > * { background: #f2f9f4; font-weight: 650; }

.bidlog__empty { color: var(--ink-muted); padding: 24px 14px !important; text-align: center; }

.bidlog__note { margin: 11px 0 0; font-size: 0.78125rem; color: var(--ink-faint); }

/* ------------------------------------------------------------- description */

.prose { max-width: 72ch; }
.prose:last-child { margin-bottom: 0; }

/* --------------------------------------------- live connection notice states */

/* Hidden until the live controller sets `data-state`, so a visitor with no
   JavaScript never sees a state that cannot apply to them. */
.connection-notice { display: none; margin: 0; }

.connection-notice[data-state] {
    display: block;
    border-radius: var(--radius-md);
    padding: 11px 14px;
    font-size: 0.84375rem;
    font-weight: 600;
}

.connection-notice[data-state="reconnecting"] {
    background: var(--soon-bg);
    border: 1px solid var(--soon-line);
    color: var(--soon);
}

/* Stale is not "we lost the socket", it is "the number on this page may be
   wrong" — the one outcome worse than showing nothing. */
.connection-notice[data-state="stale"] {
    background: #fef3f2;
    border: 1px solid #fecdca;
    color: var(--urgent);
}

.connection-notice__reconnecting,
.connection-notice__stale { display: none; }

.connection-notice[data-state="reconnecting"] .connection-notice__reconnecting { display: inline; }
.connection-notice[data-state="stale"] .connection-notice__stale { display: inline; }

/* ==========================================================================
   ICONS
   ========================================================================== */

/* The sheet of <symbol>s from _partials/_icons.html.twig. Out of flow rather
   than `display:none`, which would stop some engines resolving `<use>`. */
.icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.icon {
    display: inline-block;
    vertical-align: -0.15em;
    color: inherit;
}

/* ---------------------------------------------------------------- feed tabs */

/* The feed strip (2026-09-28): chips, each with its icon, instead of grey
   words on a hairline — the strip is a row of places to go, and should look
   pressable. One line that scrolls sideways on a phone rather than wrapping
   into a block of chips. */
.feedbar {
    margin: 22px 0 0;
}

.feedtabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.feedtab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 15px 8px 12px;
    border: 1px solid var(--line);
    border-radius: var(--pill);
    background: var(--surface);
    box-shadow: var(--shadow);
    font-size: 0.875rem;
    font-weight: 650;
    color: var(--ink-muted);
    white-space: nowrap;
    transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}

.feedtab:visited { color: var(--ink-muted); }

.feedtab__icon {
    flex: 0 0 auto;
    color: var(--brand);
}

.feedtab:hover,
.feedtab:focus-visible {
    border-color: var(--info-line);
    background: var(--info-bg);
    color: var(--brand);
    text-decoration: none;
}

.feedtab:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

/* The current feed, where a page still shows it in the strip. */
.feedtab[aria-current="page"] { background: var(--blue-100) !important; border-color: var(--blue-700) !important; color: var(--blue-700) !important; }

.feedtab[aria-current="page"] .feedtab__icon { background: var(--surface) !important; color: var(--blue-700) !important; }

/* Two rows on a phone, not a sideways scroller.
 *
 * This used to be `nowrap` with `overflow-x: auto` and the scrollbar hidden.
 * Four chips need roughly 500px and a phone has 390, so the last feed sat off
 * the right edge with nothing on screen saying it was there — a hidden
 * scrollbar removes the one affordance that made the pattern honest. With four
 * short labels there is no reason to hide any of them: two columns fit, and the
 * cost is about 44px of height.
 *
 * `grid`, not wrapped flex: wrapping leaves the second row ragged and the two
 * long labels — "Najtraženije", "Najvrijednije" — land under chips of a
 * different width, which reads as a mistake rather than as a row. Equal columns
 * line them up. `auto-fit` keeps it to one row on a wide phone that can take
 * it, and collapses to two columns where it cannot. */
@media (max-width: 620px) {
    .feedtabs {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 8px;
    }

    /* The chip fills its column, so the two rows read as a grid rather than as
       four pills that happened to wrap — and its contents are centred in it.
       Left-aligned, the label sat against the left edge with a ragged gap on the
       right of each chip, which made four equal buttons look like four
       different ones. Centred, the icon and the label travel together and the
       column edges are the only straight lines the eye needs. */
    .feedtabs .feedtab {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .feedtab { transition: none; }
}

/* ------------------------------------------------------------- print */

@media print {
    .masthead, .sitefoot, .facets, .card__cta, .bidform, .skip-link, .tabstrip { display: none; }
    .tabpanels > .tabpanel { display: block; }

    /*
       Back to block flow for printing, and deliberately.

       `body` is a flex column on screen so the footer sits at the bottom of
       short pages. On paper that buys nothing — the footer is hidden two lines
       above — and costs two things: `min-height: 100dvh` resolves against the
       sheet and can push a short page onto a second one, and page breaks inside
       a flex container are handled inconsistently across print engines, which
       is a poor thing to discover from a customer's misprinted invoice.
    */
    body {
        background: #fff;
        display: block;
        min-height: 0;
    }
}


/* ── Watch toggle ────────────────────────────────────────────────────────────
   A heart, not a labelled button.

   The text button worked and looked like 2008. The heart is the pattern every
   marketplace user already knows, and on a card it costs no vertical space at
   all because it floats over the photograph instead of taking a row under it.

   Accessibility is unchanged, not traded away: the button keeps a real
   accessible name via `.visually-hidden` text, keeps `aria-pressed`, and keeps
   a visible focus ring. The heart is `aria-hidden` decoration on top of that.
   An icon-only control with no accessible name is the usual way this pattern
   goes wrong.

   Filled = watching. Outline = not. State is never colour alone: the fill
   changes shape as well as hue, so it survives greyscale and forced-colors.
*/
/* Watch and share sit on one row. The row owns the spacing above the price, so
   neither control carries a margin of its own — a stacked pair used to push the
   bid box down by twice as much as it needed. */
.lotactions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    /* 16 px below (2026-10-11): "TRENUTNA CIJENA" sat flush against the
       buttons and read as their caption. */
    margin: 10px 0 16px;
    /* The share panel anchors here, not to the summary, so it spans the row
       rather than hanging off whichever button opened it. */
    position: relative;
}

.watchform { margin: 0; }

/* ------------------------------------------------------------------- share */

/* The summary is styled as the watch button's sibling, because that is what it
   is: two secondary actions on the same lot, side by side. `list-style: none`
   plus the WebKit pseudo-element is what removes the disclosure triangle —
   `<details>` is the no-JavaScript mechanism here, not a visual choice. */
/* `static`, deliberately: the panel below is positioned against `.lotactions`,
   and a `relative` here would capture it and narrow it to this button. */
.share { margin: 0; position: static; }

.share__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    /* In the house blue, tinted (2026-10-09): the grey outline read as
       disabled beside the watch button. */
    border: 1.5px solid #b8cfe5;
    background: #eaf2fa;
    color: var(--brand);
    border-radius: var(--pill);
    cursor: pointer;
    padding: 8px 15px;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    list-style: none;
    transition: color .12s, border-color .12s, background-color .12s;
}

.share__toggle::-webkit-details-marker { display: none; }

.share__toggle:hover,
.share[open] .share__toggle {
    color: var(--brand-ink);
    background: var(--brand);
    border-color: var(--brand);
}

.share__icon { width: 17px; height: 17px; }

/* A panel, on the house pattern `.usermenu__panel` established: absolutely
   placed under its row, lifted off the page rather than pushing it around.
   Opening it used to reflow everything below, which on a lot page is the price,
   the clock and the bid form — the three things somebody is looking at. */
.share__menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-lift);
}

.share__link,
.share__copy {
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--ink);
    padding: 7px 11px;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.share__link:hover,
.share__copy:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }

.share__copy.is-copied { border-color: var(--ok, #0d7a42); color: var(--ok, #0d7a42); }

/* The address, always present as the fallback that cannot fail. Full width on
   its own row so a long slug is selectable rather than clipped. */
.share__url {
    flex: 1 1 100%;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 7px 9px;
    font-family: var(--mono, ui-monospace, monospace);
    font-size: 0.75rem;
    color: var(--ink-muted);
    background: var(--surface);
}


.watchform__button,
.card__watchbutton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1.5px solid var(--line);
    background: var(--surface);
    color: var(--ink-muted);
    border-radius: var(--pill);
    cursor: pointer;
    padding: 8px 15px;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    transition: color .12s, border-color .12s, background-color .12s;
}

.watchform__button:hover,
.card__watchbutton:hover { color: var(--urgent); border-color: currentColor; }

.watchform__button .heart,
.card__watchbutton .heart { width: 17px; height: 17px; flex: none; }

/* Watching: the heart fills. */
.watchform__button.is-watching,
.card__watchbutton.is-watching { color: var(--urgent); border-color: currentColor; }
.watchform__button.is-watching .heart,
.card__watchbutton.is-watching .heart { fill: currentColor; }

/* On a card the control floats over the photograph, top-right, icon only. */
.card__watch {
    position: absolute;
    top: 10px;
    right: 10px;
    margin: 0;
    z-index: 2;
}

.card__watchbutton {
    width: 34px;
    height: 34px;
    padding: 0;
    gap: 0;
    background: rgba(255, 255, 255, 0.94);
    border-color: transparent;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .14);
}

.card__watchbutton:hover { background: var(--surface); }

/* "Pitaj prodavatelja" — a secondary action under the seller box. Deliberately
   quieter than Licitiraj: asking a question is useful, bidding is the point. */
.lotaction--ask {
    display: block;
    margin-top: 10px;
    padding: 9px 14px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--brand);
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}
.lotaction--ask:hover { border-color: var(--brand); }

/* ═════════════════════════════════════════════════════════════════════════
   PUBLIC Q&A — the lot's questions panel, and its warning step
   ═════════════════════════════════════════════════════════════════════════

   Visually quieter than the bid history above it. The bid table is the page's
   evidence and is meant to be scanned; this is prose written by strangers and
   is meant to be read only if you care. Hence no rules between rows, no tabular
   figures, and a reply indent that does the structural work a border would.

   The public-notice line is the one loud element, and deliberately: it is the
   only warning between a member and putting their phone number on a page that
   Google will index.

   ── Six tokens in this block did not exist ─────────────────────────────────

   `--bg-sunken`, `--rule`, `--warn`, `--warn-soft`, `--accent-soft` and
   `--accent-ink` are not defined in `:root` and never were, so every rule below
   was silently taking its literal fallback and the whole panel was detached
   from the palette — it would not have followed a theme change, and its greys
   and oranges were one or two units off the ones beside it. The fourth, fifth
   and sixth occurrences of this bug in this file (`--card`, `--mut`, `--hot`
   were the earlier ones). Repointed to the real tokens:

       --bg-sunken   → --surface-alt   (the chip/badge ground, as `.badge` uses)
       --rule        → --line          (the hairline everything else divides on)
       --warn        → --soon          (the "pay attention" amber)
       --warn-soft   → --soon-bg
       --accent-soft → --info-bg       (as `.badge--bin` does)
       --accent-ink  → --brand

   `--accent` is deliberately not used here even though the name suggested it:
   the palette rules at the top of this file reserve it for selling, at most
   once per page, and a badge on a question is not a sale.

   ── `.badge--you` is not redefined here ───────────────────────────────────

   It used to be. `.badge--you` is a shared badge defined further up (amber, on
   `--soon-bg`) and used by the bid history to mark your own bids; a second
   definition down here with equal specificity won by source order and quietly
   restyled the bid log on every listing page. The Q&A uses the shared badge as
   it stands. */

.qna__count {
    display: inline-block;
    margin-left: 6px;
    padding: 0 6px;
    border-radius: 9px;
    background: var(--surface-alt);
    color: var(--ink-muted);
    font-size: 0.75rem;
    font-weight: 600;
    vertical-align: middle;
}

.qna__empty,
.qna__blocked {
    margin: 8px 0 0;
    color: var(--ink-muted);
}

.qna__list {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

/* ── A reference, not a comment thread (2026-10-13) ─────────────────────────

   This block used to read as a forum: a masked handle at the top of every post,
   a timestamp beside it, the text below, and answers indented under a left
   rail. Three things were wrong with that for a marketplace.

   The handle earned nothing. It is masked to `d*****0`, so the first thing the
   eye landed on was a string with no information in it, in the most prominent
   position in the row.

   The indent said "this is a reply to that", which nobody was in any doubt
   about — there is one question and the seller's answer to it, not a
   conversation that can branch.

   And question and answer were styled identically, which is exactly wrong: the
   seller's answer is the authoritative half and the whole reason a buyer opens
   this tab.

   So it is a question with its answer attached, read top to bottom, scannable
   for "has somebody already asked this?" — which is the only thing anyone comes
   here to find out. */

/* Each question and its answer is one card. Before this the question was bare
   text on the page while the answer sat in a block of its own, so the half that
   a reader is scanning for looked like the undesigned half — and the pair did
   not read as a pair at all.

   The card is also what makes the answer's tint possible: this panel is
   transparent over the page, so `--surface-alt` on the answer was the page
   colour painted onto the page colour. Inside a white card it is a tint again. */
.qna__pair {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.qna__pair + .qna__pair { margin-top: 10px; }

/* Label row above the question, matching the answer's. Small caps-ish and
   muted: it names the part without competing with the question itself. */
.qnaq__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin: 0 0 3px;
    font-size: 0.75rem;
    color: var(--ink-muted);
}

.qnaq__label {
    font-weight: 650;
    letter-spacing: 0.02em;
    color: var(--ink-muted);
}

.qnaq__text {
    /* An `h4` for the outline — each question is a heading in this section —
       but sized as prose rather than as a heading. */
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--ink);
    /* Member-written prose on a public page: break long unbroken strings rather
       than let a pasted URL push the panel wider than the shell. */
    overflow-wrap: anywhere;
}

/* Pushed to the far end of the row; `.qnaq__meta` wraps, so on a narrow screen
   it drops to its own line rather than crushing the date. */
.qnaq__report { margin-left: auto; }

.qnaa {
    margin: 10px 0 0;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    /* A tint again, now that the pair around it is a white card — see
       `.qna__pair`. No border: inside the card the tint and the accent do the
       separating, and a second hairline a few pixels inside the first reads as
       a mistake. */
    background: var(--surface-alt);
}

/* The seller's own answer carries the accent; a staff reply is the same block
   without it, so the colour means "the seller said this" rather than "this is
   an answer". */
.qnaa--seller {
    border-left: 3px solid var(--brand);
}

.qnaa__label {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin: 0 0 3px;
    font-size: 0.75rem;
    font-weight: 650;
    /* `--brand`, never `--brand-ink`: the latter is #ffffff, the colour for text
       sitting *on* a brand-coloured fill. On this tint it is invisible, which is
       exactly how it shipped for about a minute. */
    color: var(--brand);
}

.qnaa__when {
    font-weight: 400;
    color: var(--ink-muted);
}

.qnaa__text {
    margin: 0;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

/* A question with nothing under it reads as a rendering fault. Saying that the
   seller has not answered is also useful in itself: it tells a buyer deciding
   whether to ask how responsive this seller is. */
.qna__waiting {
    margin: 8px 0 0;
    font-size: 0.8125rem;
    font-style: italic;
    color: var(--ink-faint);
}

/* Why a sentence has a gap in it (2026-10-11).

   Quieter than the post it explains — it is a footnote, not a warning, and it
   appears only on the posts something was actually hidden in. Styled as prose
   rather than as a notice box: a coloured panel under every third question
   would make the page look like it is full of problems, when the common case
   is somebody who typed their phone number out of habit. */

.badge--seller {
    background: var(--info-bg);
    border-color: var(--info-line);
    color: var(--brand);
}

.qna__replyform { margin: 8px 0 0 16px; }

.qna__replyform > summary {
    cursor: pointer;
    font-size: 0.8125rem;
    color: var(--link);
}

/* 20 px tall at 13 px type, which is less than half the 44 px this site applies
   to every other control — and it is the one thing standing between a phone and
   answering a question. `inline-flex` so the hit area grows around the word
   rather than stretching the whole row. Matches the tap-target block above. */
@media (max-width: 820px) {
    .qna__replyform > summary {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }
}

.qna__ask { margin: 18px 0 0; }

.qna__askhead { margin: 0 0 4px; font-size: 0.9375rem; }

/* ── Nobody has asked anything yet (2026-10-13) ────────────────────────────

   The emptiest state on the lot page used to be a grey sentence saying there
   were no questions, directly above a heading saying "ask a question" — the
   same thing twice, neither of them an invitation, and both quieter than the
   caution bar above them.

   It is one invitation now, and it names what to ask about. A buyer unsure
   whether a question is welcome asks nothing, and a lot with no questions and
   no answers is one somebody else buys. */
.qna__first {
    margin: 14px 0 0;
}

.qna__firsthint {
    margin: 2px 0 0;
    max-width: 52ch;
    color: var(--ink-muted);
    line-height: 1.5;
}

/* Directly under the invitation, so the two read as one block rather than as a
   message followed by an unrelated form. */
.qna__ask--first { margin-top: 10px; }

.qna__notice {
    margin: 12px 0 0;
    padding: 8px 10px;
    border-left: 3px solid var(--soon);
    background: var(--soon-bg);
    font-size: 0.8125rem;
}

.qna__ask textarea,
.qna__replyform textarea,
.qnaconfirm__form textarea {
    display: block;
    width: 100%;
    margin: 0 0 8px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xs);
    font: inherit;
    /* A textarea that can be dragged wider than its column breaks the grid on
       every page that contains one. Vertical only. */
    resize: vertical;
}

/* ── The contact-detail warning step ──────────────────────────────────────

   `templates/catalog/qna_confirm.html.twig`: a page of its own, shown between
   the two submits of a post the scanner had something to say about. It is a
   form flow rather than a destination, so it is narrow, centred and carries no
   navigation of its own beyond the way back to the lot. */

.qnaconfirm {
    max-width: 680px;
    margin: 0 auto;
    padding: 24px 0 40px;
}

.qnaconfirm__head { margin: 0; font-size: 1.375rem; }

.qnaconfirm__lot { margin: 4px 0 18px; font-size: 0.875rem; color: var(--ink-muted); }

.qnawarn {
    padding: 14px 16px;
    border: 1px solid var(--soon-line);
    border-left: 4px solid var(--soon);
    border-radius: var(--radius-md);
    background: var(--soon-bg);
}

.qnawarn__lede { margin: 0; font-size: 0.9375rem; }

.qnawarn__list {
    margin: 12px 0;
    padding: 0 0 0 18px;
    font-size: 0.875rem;
}

.qnawarn__kind { color: var(--ink-muted); }

.qnawarn__fragment {
    /* The matched text, quoted back. Monospaced so that a run of digits reads
       as the thing the scanner saw rather than as prose, and breakable so one
       pasted 200-character URL cannot widen the panel. */
    margin-left: 6px;
    padding: 1px 5px;
    border-radius: var(--radius-xs);
    background: var(--surface);
    font-family: var(--font-num);
    font-size: 0.8125rem;
    overflow-wrap: anywhere;
}

.qnawarn__foot { margin: 0; font-size: 0.8125rem; color: var(--ink-muted); }

.qnaconfirm__quoted {
    margin: 18px 0 0;
    padding: 0 0 0 14px;
    border-left: 2px solid var(--line);
}

.qnaconfirm__quoted figcaption {
    font-size: 0.75rem;
    color: var(--ink-muted);
}

.qnaconfirm__quoted blockquote {
    margin: 4px 0 0;
    font-size: 0.875rem;
    overflow-wrap: anywhere;
}

.qnaconfirm__form { margin: 20px 0 0; }

.qnaconfirm__form label {
    display: block;
    margin: 0 0 6px;
    font-size: 0.875rem;
    font-weight: 650;
}

.qnaconfirm__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

/* Not the brand button. Posting over a warning is the path this page is trying
   to make people think about, so it does not get the affordance that says
   "this is what you came here to do"; the way back to the lot sits beside it
   as a plain link and is one tab stop away. */
.btn--quiet {
    --btn-ink: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line-strong);
    color: var(--btn-ink);
}

.btn--quiet:hover { background: var(--surface-alt); color: var(--ink); }

.qnaconfirm__cancel { font-size: 0.875rem; }

/* ── Seller card, below the bid panel ────────────────────────────────────────
   A plain wrapper, not a card: `_listing_seller.html.twig` already ships its
   own `.panel` and `.panel__head`, so styling this too gave a card inside a
   card and the heading twice. Its only job is the gap under the sticky panel. */
.sellerbox { margin-top: 16px; }

/* ══════════════════════════════════════════════════════════════════════════
   THE PHONE
   ══════════════════════════════════════════════════════════════════════════

   Everything above was designed and verified at 1440 px. A handful of
   breakpoints existed — the listing grid stacks at 1000, the card grid steps
   down at 1200/820/480 — but they were reasoned about rather than looked at,
   and nobody had opened the product on a phone. This section is that pass,
   done against real device metrics at 375 × 667, 390 × 844 and 768 × 1024.

   Four rules it exists to enforce, in the order they matter:

     1. **The document never scrolls sideways.** `scrollWidth === clientWidth`
        at every width, on every page. Things that are genuinely wider than a
        phone — the bid history, the member tables — scroll inside their own
        box. A horizontally scrolling *document* takes the navigation with it.
     2. **44 × 44 CSS px of tap target**, with real space between neighbours.
        Everything below that was sized for a cursor.
     3. **16 px in every text input.** Below that, iOS Safari zooms the whole
        page on focus and does not zoom back out — the single most common
        "this site is broken on my phone" report there is.
     4. **The price, the clock and the bid field are reachable without
        hunting.** They are the point of a listing page and they were sitting
        under a full-width photograph, 1129 px down a 667 px screen.

   Nothing here is a script. The facet disclosure, the tab strip, the gallery
   and the account menu all work with JavaScript off, because browse, search,
   category, listing and the bid form are core read paths and that is a product
   constraint rather than a preference.
   ────────────────────────────────────────────────────────────────────────── */

/* ── 16 px inputs ──────────────────────────────────────────────────────────

   iOS Safari zooms the viewport when a focused text control is set below
   16 px, and it does not restore the zoom on blur — so one tap on the search
   field leaves the visitor on a page that is now 1.2× too wide, with the
   horizontal scroll that this whole section exists to prevent. The threshold
   is absolute, not relative: it is 16 CSS px, whatever the root size.

   `1rem` rather than `16px`, because `html { font-size: 100% }` above exists so
   that a visitor who has set a larger default gets a proportional page. On the
   default setting `1rem` *is* 16 px, which is what iOS is measuring; on a
   larger setting it is larger still, and the rule stays satisfied.

   Checkboxes and radios are excluded: they render no text, they are not
   zoom triggers, and `font-size` on them only inflates the box in Firefox. */
@media (max-width: 820px) {
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
    select,
    textarea {
        font-size: 1rem;
    }

    /* The bare element selector above is specificity 0,0,1 and loses to every
       control in this file that sets its own size — the sort select (13.5 px),
       the masthead scope select (13 px), the search field (15 px), the facet
       price boxes (13 px). Each of those is a text control a thumb lands on, so
       each is a page iOS would zoom; they have to be named. */
    .searchbar__input,
    .searchbar__scope,
    .sortform select,
    .facet-range input,
    .form input[type="text"],
    .form input[type="email"],
    .form input[type="password"],
    .form input[type="number"],
    .form select,
    .qna__ask textarea,
    .qna__replyform textarea,
    .qnaconfirm__form textarea {
        font-size: 1rem;
    }
}

/* ── Tap targets ───────────────────────────────────────────────────────────

   44 px is the number both platform guidelines settle on, and it is a *height*
   problem here rather than a width one: almost every control on this site is
   text with 4–9 px of vertical padding, which lands between 16 px (a footer
   link) and 40 px (an account-menu row).

   Padding rather than `height`, so the hit area grows around the words instead
   of the words being pushed off-centre inside a fixed box; and `min-height`
   with `align-items: center` where the control is already a flex row.

   Inline links inside running prose are deliberately not in this list. A legal
   page is read, not tapped, and 44 px of leading between every sentence would
   make it unreadable to fix a problem it does not have. */
@media (max-width: 820px) {
    .usernav a,
    .sitefoot a,
    .catgrid__more a,
    .sectionhead a,
    .panel__head--split a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    /* The footer is a wrapped list of seven links; without a row gap the 44 px
       boxes touch and every tap is a coin toss between two neighbours. */
    .sitefoot ul { gap: 0 20px; }

    /* The six-way nav at the foot of every legal page, and the one link in an
       empty state — both are navigation set in running prose, and both were
       18–23 px tall. `inline-flex` rather than a block, so the list stays the
       comma-free run of links it reads as. */
    /* The crumbs get the hit area at every touch width; only below 700 px do
       they also stop wrapping and start scrolling, which is a space problem
       rather than a target one. */
    .breadcrumbs a,
    .breadcrumbs [aria-current="page"],
    .legalnav a,
    .legalnav [aria-current="page"],
    .empty a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    /* `.subcats` is deliberately not in this list any more. Its card carries
       `min-height: 44px` at every width — a tap target that only exists on a
       phone is a tap target somebody has to remember — and the `inline-flex`
       this block used to force on `.subcats li a` would collapse that card to
       shrink-to-fit width. See "SUBCATEGORY CARDS" at the foot of this file. */
    .tree__node,
    .facet,
    .facet-check,
    .tree__more {
        min-height: 44px;
        align-items: center;
    }

    .facet a { display: inline-flex; align-items: center; min-height: 44px; }

    /* Bigger boxes as well as a bigger row: a 16 px checkbox inside a 44 px
       label is still a 16 px thing to hit, and the label only helps a visitor
       who knows the label is clickable. */
    .facet-check input { width: 22px; height: 22px; }

    .card__cta a { padding: 12px 9px; }

    .pager a,
    .pager > li > span {
        min-width: 44px;
        padding: 12px;
    }

    .sortform select,
    .sortform button { padding: 11px 14px; min-height: 44px; }

    /* The brand is the way home from every page in the product, and it was a
       22 px-tall line of text. */
    .brand a { display: flex; flex-direction: column; justify-content: center; min-height: 44px; }

    /* The masthead scope select sits inside the search pill, which is 46 px
       tall, so it can take the full height without changing the bar. */
    .searchbar__scope { min-height: 44px; }

    .watchform__button,
    .lotaction--ask,
    .facets__apply,
    .btn,
    .form button {
        min-height: 44px;
    }

    .watchform__button { padding: 11px 16px; }

    /* "14 ponuda" is the link from the price block to the bid history, and the
       only route to the history for a reader who does not know the tab strip
       is a tab strip. It was 16 px of underlined text in a 15 px sentence.
       `inline-block` with vertical padding rather than `inline-flex`, so it
       keeps the baseline it shares with the bidder count beside it. */
    .bidcount a { display: inline-block; padding: 13px 0; }

    /* The account menu is now the only route to `Odjava` and `Moje aukcije`,
       so its trigger is a core control. 34 px of avatar plus 3 px of padding
       came to 40 — close enough to look right and not close enough to be. */
    .usermenu__trigger { padding: 5px; }
    .usermenu__avatar { width: 38px; height: 38px; font-size: 0.8125rem; }
    .usernav .usermenu__link:link,
    .usernav .usermenu__link:visited,
    .usermenu__logout button { padding: 12px 10px; }

    /* The heart over a card photograph. 34 px was the size that looked right
       beside a 20 px price; it is the smallest control in the product and it
       sits 10 px from the card's own corner, which is where a thumb lands by
       accident. */
    .card__watchbutton { width: 44px; height: 44px; }
    .card__watchbutton .heart { width: 20px; height: 20px; }

    /* Nudge the pill clear of the enlarged heart so the two never collide on a
       narrow card. */
    .card__watch { top: 8px; right: 8px; }
}

/* ── The card grid ─────────────────────────────────────────────────────────

   One card per row below 480 px was the original step, and on a 375 px phone
   it renders a 343 px card with a 257 px photograph: one and a half lots per
   screen. This is a marketplace whose whole position is that you scan a lot of
   lots quickly, so the grid stays two across until the card would be narrower
   than its own price line, and only then goes to one.

   359 px is that floor: two 163 px cards, which still hold a two-line title,
   the 20 px price and a full-width `Licitiraj`. Below it — the 320 px devices
   still in the wild — one across. */
@media (max-width: 480px) {
    .cardgrid,
    .cardgrid--five { gap: 12px; }

    .card__body { padding: 11px 12px 13px; }
    .card__title { font-size: 0.875rem; }
    .card__price b { font-size: 1.125rem; }
}

@media (max-width: 359px) {
    .cardgrid,
    .cardgrid--five { grid-template-columns: minmax(0, 1fr); }
}

/* The 480 px one-across rule further up this file has to stand down, or it
   wins on source order for every width between 360 and 480. */
@media (min-width: 360px) and (max-width: 480px) {
    .cardgrid,
    .cardgrid--five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Anything wider than the phone scrolls inside its own box ───────────────

   `overflow-x: auto` alone is not enough, and the way it fails is worth
   writing down because it cost an hour: every `.visually-hidden` span in this
   product is `position: absolute`, so unless the scroller is *also* a
   containing block, those spans resolve against the initial containing block,
   escape the clip, and land at their static position — which inside a
   horizontally scrolled table is 800 px out. A 1 px span is enough to make the
   document 63 px wider than the viewport, and it is invisible, so what you see
   is a page that scrolls sideways for no reason at all.

   `position: relative` is the fix, and it belongs on every scroller here.

   `tabindex="0"` and a label live in the markup: a region that scrolls must be
   reachable and operable from a keyboard, and it needs a name when it is. */
.tablescroll {
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/*
 * The bid history, capped in height rather than truncated (2026-10-13): about
 * ten rows, newest first, the rest scrolling inside the box under a header
 * that stays put. The table's own `overflow: hidden` would make it the sticky
 * header's scroll container, so the frame moves to the box here.
 */
.tablescroll--capped {
    /* Five rows under the header, newest first (2026-10-13; was 30rem, which
       was ten). Measured rather than halved: the header is 38px and a row is
       46px, so 38 + 5x46 = 268px, and 17rem is 272 — five whole rows with four
       pixels to spare rather than a sixth clipped in half, which reads as a
       rendering fault.

       The history is still complete: every bid is in the box and the count
       above the table is `listings.bid_count`, the true total, so a shorter
       window never lies about how many there were. */
    max-height: 17rem;
    overflow-y: auto;
    overscroll-behavior-y: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: var(--surface);
}

/* Halving the window doubles what is hidden, and macOS and iOS keep their
   scrollbars invisible until something is already moving — the same trap the
   category picker was in. The two APIs are mutually exclusive: Chrome ignores
   every `::-webkit-scrollbar` rule as soon as `scrollbar-width` is set on the
   element, so they are kept in opposing `@supports` blocks. */
@supports not selector(::-webkit-scrollbar) {
    .tablescroll--capped {
        scrollbar-width: thin;
        scrollbar-color: rgb(16 32 52 / 30%) transparent;
    }
}

@supports selector(::-webkit-scrollbar) {
    .tablescroll--capped::-webkit-scrollbar {
        width: 0.5rem;
    }

    .tablescroll--capped::-webkit-scrollbar-track {
        background: transparent;
    }

    .tablescroll--capped::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: rgb(16 32 52 / 22%);
    }

    .tablescroll--capped:hover::-webkit-scrollbar-thumb {
        background: rgb(16 32 52 / 38%);
    }
}

.tablescroll--capped .bidlog {
    overflow: visible;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.tablescroll--capped .bidlog thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--surface);
}

.tablescroll:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

/* ── The listing page ──────────────────────────────────────────────────────

   Measured at 375 × 667 before this block, from the top of the document:

       gallery      355
       title        719
       price        830
       countdown    935
       bid form    1129

   The price is what a bidder came for and it was a screen and a half down,
   underneath a photograph occupying 317 px of a 667 px viewport. That is the
   hero image this product's whole design position says it does not have — it
   just happened to become one at a width nobody looked at.

   The photograph is not demoted, because condition is a picture and these are
   collectibles. It is *capped*: 38 vh instead of 4:3-of-the-full-width, which
   at 667 px is 253 px instead of 317 and at 844 px is 320. `object-fit:
   contain` was already on the slide, so nothing is cropped — the box gets
   shorter and the photograph letterboxes inside it, exactly as it does for a
   portrait shot at desktop width.

   With the masthead unstuck and the thumbnail strip on one row, that moves the
   price to ~570 and the bid form to ~700: one short scroll, from a page that
   opens on the photograph and the title. */
@media (max-width: 700px) {
    .listing { gap: 18px; margin-top: 14px; }

    .bidbox { padding: 16px; }
    .listinghead { margin-bottom: 10px; }
    .listinghead h1 { font-size: 1.3125rem; }
    .bigprice { font-size: 2rem; }
    .bidbox__clock { margin: 14px 0; }
    .watchform { margin-top: 8px; }
    .factlist--tight { margin-top: 12px; padding-top: 12px; }

    /* Amount over button rather than beside it. At 311 px of inner width the
       two-column form left the field 150 px wide — narrower than the number a
       four-figure bid puts in it — and gave the submit a 44 px target only by
       accident. Stacked, both are full width and both are unambiguous. */
    .bidform { grid-template-columns: minmax(0, 1fr); }
    .btn--bid { grid-column: 1; margin-top: 10px; padding: 14px 26px; }

    /* Four tabs at 26 px apart wrapped to three lines — 124 px of tab strip
       above the bid history. One scrolling row is 46 px and keeps the default
       tab, which is the bid history, visible where the reader expects it.
       Every tab is still an ordinary in-page link, still focusable, and the
       browser scrolls a focused one into view on its own. */
    .tabstrip {
        position: relative;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 20px;
    }

    .tabstrip a { white-space: nowrap; }

    /* The bid history stays complete, in a real table, newest first, never
       truncated — the table is the product's trust mechanism and a phone is
       not a reason to show a bidder less of it. Five columns of Croatian
       headings do not fit 343 px, so the *table* scrolls and the document does
       not. Loosening the two nowrap columns first means that on most lots
       there is nothing to scroll: the width falls from 520 px to about 360. */
    .bidlog { font-size: 0.8125rem; }
    .bidlog th,
    .bidlog td { padding: 9px 8px; }
    .bidlog .col-ends,
    .bidlog .col-src { white-space: normal; }
    .bidlog thead th { white-space: normal; }

    .factlist { grid-template-columns: minmax(80px, auto) minmax(0, 1fr); }
    .sellerbox { margin-top: 12px; }
}


/* ── The gallery, once the page has stopped being two columns ─────────────

   1000 px is where `.listing` collapses to a single column, and it is exactly
   where the gallery stops being a 1fr track beside a 400 px bid panel and
   becomes the full width of the page. A 4:3 box at full width is 555 px tall on
   a 768 px tablet and 257 px on a 375 px phone — in both cases the whole of the
   first screen, which is the hero image this product's design position says it
   does not have. It was never designed as one; it became one at a width nobody
   had looked at.

   So the box is capped in `vh` from the moment it goes full width. `object-fit:
   contain` was already on the slide, so nothing is cropped: the box gets
   shorter and the photograph letterboxes inside it, exactly as a portrait shot
   already does at desktop width.

   Measured on `123-lot-od-22-kovanica-ndh`, distance from the top of the
   document to the current price, with the live-connection notice in its normal
   hidden state:

       375 × 667     830 → 654
       390 × 844     871 → 721
       768 × 1024   1055 → ~850

   The photograph still leads the page. It is a photograph again rather than a
   screen. */
@media (max-width: 1000px) {
    /* `width: 100%` is not redundant beside `max-height`, and leaving it out
       silently makes the photograph *narrower* as well as shorter.

       Both boxes carry `aspect-ratio: 4 / 3` with an automatic width. When both
       axes are automatic, clamping one of them re-derives the other from the
       ratio — so `max-height: 200px` gave a 267 × 200 stage inside a 341 px
       panel, the photograph pinned to the left edge with 74 px of white beside
       it. Stating the width makes it *definite*, which is the case where the
       ratio only ever computes the height, and `max-height` then clamps that
       height alone. The stage stays the full width of the page and the
       photograph letterboxes symmetrically inside it, which is what
       `object-fit: contain` was always for. */
    .gallery__stage,
    .gallery--none { width: 100%; max-height: 34vh; }

    /* One row, scrolled, rather than a wrapping block whose height is a
       function of how many photographs the seller uploaded. Eight photographs
       used to be two rows of thumbnails — 154 px of chrome between the lot and
       its price. */
    .gallery__thumbs {
        position: relative;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 10px;
        gap: 8px;
    }

    .gallery__thumbs a { flex: 0 0 auto; width: 58px; height: 44px; }
}

/* The short phone gets a harder cap.

   34 vh is the right cap on a 390 × 844 device and on a 768 × 1024 tablet,
   where it leaves the price and the countdown above the fold with room to
   spare. On a 375 × 667 iPhone SE — the smallest screen this product has to
   work on, and the one where a photograph most easily becomes a screen — the
   same fraction still leaves the price at the fold line.

   30 vh is 200 px there. The rule is keyed on the *height* of the viewport
   rather than its width, because height is the thing that is actually scarce,
   and it is written after the block above so that it wins at equal
   specificity. */
@media (max-width: 700px) and (max-height: 740px) {
    .gallery__stage,
    .gallery--none { max-height: 30vh; }
}

/* ── The facet rail ────────────────────────────────────────────────────────

   Below 1000 px `.layout` collapses to one column and the sidebar lands
   *above* the results — which on a phone means the price filter, five checkbox
   groups and the whole category spine sit between the visitor and the lots
   they searched for. On `/hr/trazi?q=kovanica` that is roughly 1400 px of
   filters before the first card.

   The answer is a disclosure, closed by default, above the results.

   ── Why the `<details>` is empty, and its body a sibling ──────────────────

   This wants to be `<details><summary>Filtri</summary>…the rail…</details>`,
   and it cannot be, for one reason: the `open` attribute is written by the
   server and the server does not know the viewport. Open by default is the
   status quo — the whole rail above the results — and closed by default would
   hide the rail on the desktop layout, where it is a permanent sidebar and
   must simply be there.

   Forcing a closed `<details>` open from CSS is not available either. Modern
   engines hide the content with `content-visibility` on `::details-content`,
   which only Chrome 131+, Safari 18.4+ and Firefox 139+ can override, and
   older ones hide it on a slot that author CSS cannot reach at all. Betting
   the desktop facet rail on that support matrix is not a trade worth making.

   So the `<details>` carries the summary and the *state*, and `:has()` reads
   that state from the sibling that carries the content. The summary announces
   its own expanded/collapsed state natively, `aria-controls` names what it
   expands, and the whole thing is HTML and CSS — no script, which is the
   requirement, since search and category are core read paths.

   Where `:has()` is unavailable the toggle is not rendered at all and the rail
   is simply visible, which is exactly where this started. */
.rail__toggle { display: none; }

@media (max-width: 1000px) {
    .rail__toggle {
        display: block;
        margin: 0 0 16px;
    }

    .rail__summary {
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: 48px;
        padding: 0 16px;
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow);
        font-size: 0.9375rem;
        font-weight: 650;
        color: var(--ink);
        cursor: pointer;
        list-style: none;
    }

    .rail__summary::-webkit-details-marker { display: none; }

    .rail__summary:hover { border-color: var(--line-strong); }

    .rail__chevron {
        margin-left: auto;
        color: var(--ink-faint);
        transition: transform 0.15s;
    }

    .rail__toggle[open] .rail__chevron { transform: rotate(180deg); }

    .rail:not(:has(.rail__toggle[open])) .rail__body { display: none; }
}

@supports not selector(:has(*)) {
    .rail__toggle { display: none !important; }
}

/* ── Everything else, at phone width ───────────────────────────────────── */

@media (max-width: 700px) {
    /* The trail, on one line, scrolled.

       Giving the crumbs a 44 px hit area and leaving them to wrap turned four
       of them into two 44 px rows — 88 px of breadcrumb above a lot, before the
       photograph, on a 667 px screen. Nothing is dropped and nothing is
       abbreviated to fix that: the trail keeps every ancestor and scrolls, the
       way the tab strip and the thumbnail row beside it do. The current page is
       the last crumb, so the end of the trail is the end the reader wants, and
       it is where a left-to-right overflow leaves them. */
    .breadcrumbs ol {
        position: relative;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .breadcrumbs li {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        white-space: nowrap;
    }

    /* The 44 px hit area itself is set in the tap-target block above, at
       820 px, and is deliberately not restated here. */

    .pagehead { margin: 16px 0 4px; }
    .sectionhead { margin: 26px 0 12px; }
    .breadcrumbs { margin: 12px 0 0; }
    .layout { gap: 18px; margin-top: 16px; }
    .panel__body { padding: 14px; }
    .sitefoot { margin-top: 34px; padding: 20px 0; }

    /* A form panel is a card in a 16 px gutter; 26 px of its own padding on
       top of that leaves a 291 px field on a 375 px screen. */
    .form { margin: 20px auto; padding: 18px; }

    /* The bid outcome's fact grid asked for 120 px tracks, which is two
       columns at 343 px and a ragged second row whenever there are three
       facts. One column reads as a list, which is what it is. */
    .outcome__facts { grid-template-columns: minmax(0, 1fr); gap: 8px 0; }

    .qnaconfirm { padding: 16px 0 28px; }
    .qna__replyform { margin-left: 12px; }
}

/* The sign-up offer under the login form. Quiet — it is the second thing on
   the page, after the form the visitor came to use. */
.form__alt {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-size: 0.875rem;
    color: var(--ink-muted);
}

.form__alt a { font-weight: 600; }


/* ══════════════════════════════════════════════════════════════════════════
   SUBCATEGORY CARDS — `catalog/_subcategories.html.twig`
   ══════════════════════════════════════════════════════════════════════════

   The children of the category being read, in the content column, above the
   lots. Cards rather than a text list, because every other place this product
   shows a category as a destination — the homepage tiles, the browse tiles —
   is already a card, and a flat list here would have read as a fourth kind of
   thing on a page that already has breadcrumbs, a tree and a lot grid.

   They are deliberately *not* lot cards. No photograph, no 4:3 box, two lines
   of type and 10 px of padding: a whole 25-child taxonomy node fits in seven
   rows on a laptop, which is the point of putting it above the results rather
   than below them. The lot grid underneath stays the loud thing on the page.

   Empty children are dimmed at the same 0.55 the homepage tiles and the tree
   use. The reasoning is in `_subcategories.html.twig` and in
   `CategoryNodeView::isEmpty()`; the number is repeated here rather than
   tokenised because the other three call sites already spell it out and a
   token for one opacity used four times would be a variable, not a decision.

   ── Columns ──────────────────────────────────────────────────────────────
   `auto-fill` with a 196 px floor, so the track count follows the space rather
   than a breakpoint list. Card widths below are measured over CDP on
   `/hr/kategorija/racunala`, not derived on paper:

       1440 px viewport   beside the 264 px rail    4 columns, 235.5 px
       1000 px            rail stacks at this width 4 columns, 228.5 px
        820 px                                      3 columns, 248 px
        390 px                                      2 columns, 175 px
        375 px                                      2 columns, 167.5 px
        320 px                                      2 columns, 140 px

   Below 480 px `auto-fill` would drop to one very wide column — 343 px of card
   holding two words — so the phone is pinned to two explicit tracks instead.
   167.5 px fits "Elektroničke komponente" in two lines and "Software" in one,
   and 320 px — narrower than anything this product targets — still does not
   overflow.
   ══════════════════════════════════════════════════════════════════════════ */

.subcatnav { margin: 20px 0 26px; }

/* The same quiet uppercase eyebrow the rail and the panels use for a group
   label. It is a heading, not a title: the `<h1>` above it is the category. */
.subcatnav__head {
    margin: 0 0 12px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.subcats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
    gap: 10px;
}

/* The `<li>` is a grid cell; the card is the link inside it, stretched to fill
   the cell so a two-line name and a one-line name are the same height in a row
   and the whole cell is clickable. */
.subcats li { display: flex; }

.subcats__item {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    min-height: 44px;
    padding: 10px 13px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    color: var(--ink);
}

.subcats__item:visited { color: var(--ink); }

.subcats__item:hover {
    text-decoration: none;
    border-color: var(--line-strong);
    box-shadow: var(--shadow-lift);
}

/* `overflow-wrap` rather than a truncation: a category name is the only thing
   on the card that identifies it, and "Elektroničke komponen…" in a taxonomy
   with both "Elektroničke komponente" and "Elektronički dijelovi" is a card
   you cannot tell apart from its neighbour. It wraps and the row grows. */
.subcats__name {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.subcats__count {
    font-size: 0.75rem;
    color: var(--ink-faint);
}

.subcats__item--empty { opacity: 0.55; }

/* `opacity` dims the focus ring along with the card. The brand-blue outline at
   0.55 over the page measures ~2.9:1, just under the 3:1 that WCAG 2.2 SC
   1.4.11 asks of a focus indicator, so focus takes the dimming off: a card the
   keyboard is standing on is a card you can read. Hover deliberately does not
   — the dim is information about the category, not about the pointer.

   `.catgrid__item--empty` and `.tree__node--empty` have the same latent problem
   and are not fixed here, because they are in other sections of this file and
   another agent is editing it. It is one selector each when someone gets to it. */
.subcats__item--empty:focus-visible { opacity: 1; }

@media (max-width: 700px) {
    .subcatnav { margin: 16px 0 20px; }
    .subcatnav__head { margin-bottom: 10px; }
}

@media (max-width: 480px) {
    .subcats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .subcats__item { padding: 9px 11px; }
    .subcats__name { font-size: 0.8125rem; }
}


/* --------------------------------------------------------------------------
   The seller chip on listing cards — added as a testing aid (2026-09-24), a
   link to the seller's profile since 2026-09-28. See the `card__seller`
   block in `_partials/_lotcard.html.twig`.

   Under the title, where the eye goes next: a round avatar with the seller's
   initials, then the name. The avatar borrows the brand blue at low strength,
   so it reads as a person rather than as a badge or a price. */
.card__seller {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    margin: 4px 0 6px;
}

.card__avatar {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--info-bg), var(--info-line));
    box-shadow: inset 0 0 0 1px var(--info-line);
    color: var(--brand);
    font-size: 0.75rem;
    font-weight: 750;
    letter-spacing: 0.02em;
}

.card__sellername {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.78125rem;
    font-weight: 600;
    color: var(--ink-muted);
}

/* The chip as a link. Raised above the title's stretched `::after` so it is
   the thing clicked; a pill-shaped hover so it reads as its own control
   without shouting on a card whose main action is the lot. */
.card__sellerlink {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    max-width: 100%;
    margin-left: -3px;
    padding: 2px 9px 2px 3px;
    border-radius: var(--pill);
    color: inherit;
    transition: background-color 0.15s;
}

/* "This goes somewhere": faint until hovered, never wider than a character. */
.card__sellerchevron {
    flex: 0 0 auto;
    margin-left: -2px;
    font-size: 0.875rem;
    line-height: 1;
    color: var(--ink-faint);
    transition: transform 0.15s, color 0.15s;
}

.card__sellerlink:hover .card__sellerchevron,
.card__sellerlink:focus-visible .card__sellerchevron {
    color: var(--brand);
    transform: translateX(2px);
}

.card__sellerlink:hover,
.card__sellerlink:focus-visible {
    background: var(--info-bg);
    text-decoration: none;
}

.card__sellerlink:hover .card__sellername,
.card__sellerlink:focus-visible .card__sellername {
    color: var(--brand);
}

.card__sellerlink:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 1px;
}

@media (prefers-reduced-motion: reduce) {
    .card__sellerlink,
    .card__sellerchevron { transition: none; }
}

/* The report link beside Share on a lot page (DSA čl. 16).

   Quiet by design: muted, small, no border. It has to be findable — a notice
   mechanism nobody can locate is not one — and it must not compete with Share
   or the bid box, or it starts collecting reports of lots people merely
   dislike. */
.reportlink {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.8125rem;
    color: var(--ink-faint);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.reportlink:hover,
.reportlink:focus-visible {
    color: var(--ink);
}

/* The report form (DSA čl. 16). It reuses `.form`, the public card the sign-in
   page uses, and adds the two things that card never needed: a textarea, and a
   hint line under a field.

   `.form--page` widens it. 420px is right for e-mail and password; a person
   explaining what is wrong with a listing needs room to write, and a narrow box
   makes a long reason look like a mistake. */
.form--page {
    max-width: 640px;
}

.form textarea {
    width: 100%;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-md);
    padding: 11px 13px;
    font: inherit;
    font-size: 0.9375rem;
    /* Vertical only: a textarea dragged wider than its card is a layout nobody
       chose. */
    resize: vertical;
}

.form textarea:focus { border-color: var(--brand); }

.form__field { margin-bottom: 14px; }

/* The hint sits under its field and explains it; `.form input` already carries
   the 14px gap, so the hint pulls itself up to stay attached to the box above
   rather than floating between two fields. */
.form__hint {
    margin: -8px 0 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--ink-muted);
}

/* The icon in the report link. `currentColor`, so it follows the link's muted
   grey and its darker hover without a second rule. */
.reportlink__icon {
    vertical-align: -4px;
    margin-right: 5px;
}

/* The "done" card — a report has been received.

   One centred card, a tick, a sentence and a way out. It replaced two
   unstyled paragraphs, which on a page with no navigation of its own read like
   something that had failed to load rather than something that had worked. */
.donecard {
    max-width: 480px;
    margin: 56px auto;
    padding: 32px 28px 30px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.donecard__tick {
    color: var(--positive);
    margin-bottom: 14px;
}

.donecard__title {
    margin: 0 0 10px;
    font-size: 1.375rem;
    line-height: 1.3;
}

.donecard__body {
    margin: 0 0 22px;
    color: var(--ink-muted);
    line-height: 1.55;
}

/* Where the confirmation goes, for somebody signed in. A sentence rather than
   a field: the address comes from their account and the form never reads a
   submitted one. */
.form__sentto {
    margin: 0 0 16px;
    padding: 10px 12px;
    background: var(--surface-alt);
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    color: var(--ink-muted);
}

/* ── Kontakt ───────────────────────────────────────────────────────────────

   Two duties on one page: the trader identification the law requires, and the
   form people actually came for. The form leads the column the eye starts in
   and the identity sits beside it — present and complete, but not between a
   visitor and the box they want to type in.

   `minmax(0, …)` on the wide track, because a `<textarea>` has an intrinsic
   width that would otherwise push the grid past its container. */
.contactgrid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr);
    gap: 24px;
    align-items: start;
    margin: 20px 0 8px;
}

@media (max-width: 900px) {
    /* The form first, the identity under it: somebody on a phone came to write,
       and the mandatory data is no less published for being a scroll away. */
    .contactgrid { grid-template-columns: 1fr; gap: 18px; }
}

/* `.form` is a centred 420px card everywhere else on the site. Inside this grid
   it is a column, so it gives up both — the grid decides the width and the gap
   decides the spacing. */
.form--flush {
    max-width: none;
    margin: 0;
}

.form__head {
    margin: 0 0 6px;
    font-size: 1.125rem;
}

.form__lede {
    margin: 0 0 18px;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--ink-muted);
}

/* The identity panel. Quieter than the form on purpose: it is reference, and
   the page has exactly one thing it wants a visitor to do. */
.idcard {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 20px;
}

.idcard + .idcard { margin-top: 16px; }

.idcard__head {
    margin: 0 0 12px;
    font-size: 0.9375rem;
}

/* A description list rather than a table: these are labelled values, not rows
   to be compared across, and a two-column table at 300px wraps every value to
   three lines. */
.idcard__list {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
}

.idcard__list dt {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink-faint);
}

.idcard__list dd {
    margin: 2px 0 0;
    color: var(--ink);
    /* An OIB, an IBAN or a long registered name must not widen the column. */
    overflow-wrap: anywhere;
}

.idcard__list dd + dt { margin-top: 12px; }

.idcard__note {
    margin: 14px 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--ink-muted);
}

/* The first `.idcard__note` in a card of its own has nothing above it to be
   separated from. */
.idcard__head + .idcard__note {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

/* The deadline sentence on the "message sent" card. Stronger than the body text
   because it is the one thing on that page with a date in it. */
.donecard__note {
    margin: -8px 0 22px;
    padding: 10px 12px;
    background: var(--surface-alt);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--ink);
}

/* ── A legal document with a way into it ───────────────────────────────────

   Fourteen sections of running text and no way in: a reader sent to the fees
   section, or arriving from a support reply that says "vidi točku 7", had to
   scroll and count. The reading column keeps its 72ch measure and its position
   on the page — the text is the document and it does not move — and the list of
   sections is added beside it, where it costs no vertical space at all.

   `align-items: start` is what lets the aside be sticky: a stretched grid item
   is as tall as the row, and `position: sticky` inside something as tall as the
   thing it scrolls past never sticks. */
.doc {
    display: grid;
    grid-template-columns: minmax(0, 72ch) minmax(200px, 1fr);
    gap: 40px;
    align-items: start;
    margin-top: 4px;
}

.doc__body { max-width: none; }

.doc__side {
    position: sticky;
    /* Clear of the sticky masthead. */
    top: 84px;
    /* Long documents have long contents lists: it scrolls inside itself rather
       than running off the bottom of a short viewport. */
    max-height: calc(100vh - 110px);
    overflow-y: auto;
}

.toc {
    border-left: 2px solid var(--line-strong);
    padding-left: 16px;
}

.toc__head {
    margin: 0 0 10px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-faint);
}

.toc__list {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.8125rem;
    line-height: 1.4;
}

.toc__list li + li { margin-top: 8px; }

.toc__list a {
    color: var(--ink-muted);
    text-decoration: none;
}

.toc__list a:hover {
    color: var(--brand);
    text-decoration: underline;
}

/* Where the reader is. Set by `toc_controller.js`; with no JavaScript no entry
   ever carries it and the list is simply a list of links.

   The weight change is the point, and a weight change reflows text — an entry
   that wraps onto a second line when it becomes current makes everything below
   it jump while you scroll. So the width is reserved: each entry is laid out at
   its *bold* width all the time, using a hidden copy of its own text, and the
   visible text sits on top of it. Nothing moves. */
.toc__list a {
    display: inline-grid;
    /* Both children in the same cell, so the sizer decides the box and the real
       text paints over it. */
    grid-template-areas: 'label';
}

.toc__list a::before {
    content: attr(data-label);
    grid-area: label;
    font-weight: 700;
    height: 0;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
}

.toc__list a > span { grid-area: label; }

.toc__list a[aria-current] {
    color: var(--ink);
    font-weight: 700;
}

/* The masthead is sticky, so a jump to `#uvjeti-fees` would otherwise land with
   the heading underneath it. */
.doc__body h2 { scroll-margin-top: 92px; }

/* A pointer to another document, set apart from the sentences around it so it
   does not read as a stray link somebody left in the middle of the terms. */
.prose__seealso {
    margin-top: 14px;
    font-size: 0.875rem;
    font-weight: 600;
}

.prose__seealso a::after {
    content: ' →';
    /* The arrow is decoration; it must not be read out as a word. */
    speak: never;
}

@media (max-width: 1000px) {
    /* The list becomes a card above the text. It is the only place it can go
       without pushing the terms themselves off-screen, and a reader on a phone
       is more likely to want to jump to a section than one on a desktop. */
    .doc {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .doc__side {
        position: static;
        max-height: none;
        order: -1;
    }

    .toc {
        border-left: 0;
        padding: 14px 16px;
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: var(--radius);
    }

    /* Two columns of short entries rather than fourteen stacked lines, so the
       contents costs half a screen instead of a whole one. */
    .toc__list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 8px 18px;
    }

    .toc__list li + li { margin-top: 0; }
}

/* Lists inside a legal document.

   The site-wide reset is `ul, ol { margin: 0; padding: 0 }` and
   `li { list-style: none }`, which is right for the navigation, the facets and
   the card grids — every list on this product is a row of controls. It is wrong
   for the one place that has real prose lists: the seven prohibited behaviours
   in the terms rendered as seven unindented lines ending in semicolons, which
   reads as a paragraph somebody broke by accident rather than as an
   enumeration. `.prose` is the only scope that gets them back. */
.prose ul,
.prose ol {
    margin: 0 0 16px;
    padding-left: 24px;
}

.prose ul > li { list-style: disc; }
.prose ol > li { list-style: decimal; }

.prose li {
    margin-bottom: 6px;
    /* The measure a `<p>` in the same column has; without it a list item runs
       24px wider than the paragraph above it. */
    line-height: 1.65;
}

.prose li:last-child { margin-bottom: 0; }

/* "Moje aukcije" in the user menu goes to the account menu page on a phone
   and to the listings on a wide screen (2026-10-09). The breakpoint is the
   one at which `account.css` drops the account rail. */
.usernav .usermenu__link.usermenu__link--narrow { display: none; }
@media (max-width: 900px) {
    .usernav .usermenu__link.usermenu__link--wide { display: none; }
    .usernav .usermenu__link.usermenu__link--narrow { display: block; }
}

/* ── Shipping beside the price (2026-10-11) ─────────────────────────────
   One line under the bid count, so price + delivery are read together; the
   full table stays in the "Dostava" tab it links to. */
.bidbox__ship {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 6px;
    margin: 10px 0 0;
    font-size: 0.8125rem;
    color: var(--ink-muted);
}
.bidbox__ship svg { align-self: center; flex: 0 0 auto; color: var(--ink-faint); }
.bidbox__ship strong { color: var(--ink); font-weight: 650; }
.bidbox__ship a { font-weight: 600; }

/* ── More from the seller, similar lots (2026-10-11) ────────────────────── */
.related { margin: 36px 0 0; }
.related + .related { margin-top: 28px; }
.related__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 16px;
    margin: 0 0 14px;
}
.related__head h2 { margin: 0; font-size: 1.25rem; letter-spacing: -0.01em; }
.related__head a { font-weight: 600; }

/* ── The bid bar on a phone (2026-10-11) ────────────────────────────────
   Price · time left · Licitiraj, fixed to the bottom of the screen below the
   breakpoint where `.bidbox` stops being sticky. `bidbar_controller.js` slides
   it away while the bid form itself is on screen. */
.bidbar { display: none; }

@media (max-width: 1000px) {
    .bidbar {
        position: fixed;
        inset: auto 0 0;
        z-index: 40;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        background: var(--surface);
        border-top: 1px solid var(--line);
        box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.08);
        transition: transform .2s ease;
    }
    .bidbar--away { transform: translateY(110%); }
    .bidbar__info { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
    .bidbar__price { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
    .bidbar__time { font-size: 0.8125rem; color: var(--ink-muted); white-space: nowrap; }
    .bidbar__time .clock { font-weight: 700; }
    .bidbar__cta,
    .bidbar__cta:visited {
        flex: 0 0 auto;
        padding: 12px 22px;
        border-radius: var(--radius-md);
        background: var(--brand);
        color: var(--brand-ink);
        font-weight: 700;
        text-decoration: none;
    }
    /* Every state named (2026-10-13): the global `a:hover, a:active` (0,1,1)
       outranked `.bidbar__cta` (0,1,0) on colour, and a phone keeps a tapped
       link in :hover — blue text on the blue button, i.e. no text at all. */
    .bidbar__cta:hover,
    .bidbar__cta:active,
    .bidbar__cta:focus { color: var(--brand-ink); text-decoration: none; }
    .bidbar__cta:hover { background: var(--brand-dark); }
    /* Where the plain link lands: clear of the top edge, the form in view. */
    #bid-form { scroll-margin-top: 30vh; }
    /* Room below the footer, so the bar never covers the last line. */
    body:has(.bidbar) { padding-bottom: 76px; }
}

/* ── Filters apply as ticked, and show as chips (2026-10-11) ────────────
   `facet_autosubmit_controller.js` adds `.facets--auto` on a wide screen,
   where the button is redundant; on a phone it stays. */
.facets--auto .facets__apply { display: none; }

.facetchips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}
.facetchip,
.facetchip:visited {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px 6px 12px;
    border: 1.5px solid #b8cfe5;
    border-radius: var(--pill);
    background: #eaf2fa;
    color: var(--brand);
    font-size: 0.8125rem;
    font-weight: 650;
    text-decoration: none;
}
.facetchip:hover { border-color: var(--brand); text-decoration: none; }
.facetchip svg { opacity: .7; }
.facetchips__clear { font-size: 0.8125rem; font-weight: 600; }

/* ── "Kako funkcionira licitiranje?" under the bid form (2026-10-11) ───── */
.bidhelp { margin: 12px 0 0; font-size: 0.8125rem; color: var(--ink-muted); }
.bidhelp summary { cursor: pointer; color: var(--link); font-weight: 600; }
.bidhelp ul { margin: 8px 0 6px; padding-left: 18px; }
.bidhelp li { margin: 0 0 4px; }
.bidhelp a { font-weight: 600; }

/* ── Bid status and quick amounts (2026-10-11) ──────────────────────────── */
.bidstatus {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    border: 1px solid;
    font-size: 0.8125rem;
}
.bidstatus strong { font-size: 1rem; }
.bidstatus--leading { background: #e6f3ec; border-color: #bcdfcc; color: #14603c; }
.bidstatus--outbid { background: #fbeceb; border-color: #eec6c2; color: #a52620; }
/* Not bid yet: no box, just the two lines in the page's quiet tone. */
.bidstatus--none { padding: 0; border: 0; background: none; color: var(--ink-faint); }
.bidstatus--none strong { font-size: 0.8125rem; color: var(--ink-muted); }

.quickbid {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 0;
}
.quickbid[hidden] { display: none; }
.quickbid__amount {
    padding: 7px 12px;
    border: 1.5px solid #b8cfe5;
    border-radius: var(--pill);
    background: #eaf2fa;
    color: var(--brand);
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 650;
    cursor: pointer;
}
.quickbid__amount:hover { border-color: var(--brand); }

/* ── "kontakt skriven" with its explanation (2026-10-11) ────────────────
   A pill where contact details were hidden; hover, tap or Tab opens the
   bubble. No script: `:hover` covers a mouse, `:focus` a tap or the keyboard
   (the pill has tabindex), and a screen reader reads the bubble inline. */
.qnamask {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0 2px;
    padding: 1px 8px;
    border-radius: var(--pill);
    background: var(--surface-alt);
    border: 1px solid var(--line-strong);
    color: var(--ink-muted);
    font-size: 0.8125rem;
    font-weight: 600;
    /* The label is a sentence since 2026-10-12, so it wraps on a phone. */
    white-space: normal;
    cursor: help;
}
.qnamask:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.qnamask__icon { color: var(--brand); }
.qnamask__tip {
    position: absolute;
    /* Anchored at the pill's left edge: Q&A text sits in the left column, so
       a centred bubble ran off the panel on a pill near the margin. */
    left: 0;
    bottom: calc(100% + 8px);
    z-index: 30;
    width: max-content;
    max-width: min(280px, 80vw);
    padding: 10px 12px;
    border-radius: var(--radius-md);
    background: var(--ink);
    color: #fff;
    font-size: 0.78125rem;
    font-weight: 600;
    line-height: 1.45;
    white-space: normal;
    text-align: left;
    box-shadow: var(--shadow);
    /* Hidden from the eye, not from a screen reader. */
    clip-path: inset(50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity .12s;
}
.qnamask:hover .qnamask__tip,
.qnamask:focus .qnamask__tip,
.qnamask:focus-within .qnamask__tip { clip-path: none; opacity: 1; }

/* A section heading with the sort beside it, centred on one line (2026-10-12). */
.sectionhead--withsort { align-items: center; flex-wrap: wrap; }

/* A page title with the sort beside it (2026-10-12): category, feed and
   search pages. Wraps under the title on a narrow screen. */
.headrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
}
.headrow > h1 { margin-bottom: 0; }
.headrow + * { margin-top: 16px; }


/* Reporting one Q&A thread (2026-10-13). Smaller and quieter than the lot's own
   report link: the lot's sits in the action column where a visitor looks for it,
   while this one has to be findable without competing with the question it is
   attached to. Its placement lives with `.qnaq__meta`, where the row is. */
.reportlink--small { font-size: 0.75rem; }

/* ── A shorter bid box (2026-10-13) ─────────────────────────────────────
   The clock on one line while it runs; the next minimum inside the field
   label; the type badge by the seller's name; the reference facts under the
   description. */
.clockbox--line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 8px;
}
.clockbox--line .clockbox__label { margin: 0; }
/* `.clockbox__absolute` takes a full row (flex-basis 100%); on the one-line
   clock it sits beside the countdown. */
.clockbox--line .clockbox__absolute--inline { flex-basis: auto; margin: 0; }
label .bidbox__nextmin { font-weight: 400; color: var(--ink-faint); margin: 0; }
.badge--kind {
    background: var(--surface-alt);
    color: var(--ink-muted);
    border: 1px solid var(--line);
}
.factlist--quiet { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 0.8125rem; color: var(--ink-muted); }


/* An announced lot (2026-10-13): one quiet line under the start clock. */
.bidbox__upcoming {
    margin: 6px 0 0;
    font-size: 0.875rem;
    color: var(--ink-faint);
}

/* ── "Predloži cijenu" on a fixed-price lot (2026-10-13) ────────────────────
   Under "Kupi odmah", in the bid form's own shape (`.bidform`, `.field--amount`,
   `.btn--bid`), so a proposal reads as the same kind of action as a bid. */
.offerbox {
    margin: 14px 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-size: 0.875rem;
}

.offerbox__heading {
    margin: 0 0 8px;
    font-size: 0.9375rem;
    font-weight: 700;
}

.offerbox__line { margin: 0 0 10px; }

/* The amount box and its button always have air between them (2026-10-14).
   `.bidform` has no row gap — its phone rule adds a margin to the button
   instead — so wherever an offer form stacks, the gap is set here once and
   the margin is dropped, rather than leaning on a viewport breakpoint. */
.offerform {
    margin: 0;
    row-gap: 10px;
}

.offerform .btn--bid { margin-top: 0; }

.offerbox__hint {
    margin: 6px 0 0;
    color: var(--ink-muted);
    font-size: 0.75rem;
}

.offerbox__flash {
    margin: 0 0 10px;
    padding: 9px 11px;
    border-radius: var(--radius-md);
}

.offerbox__flash--ok { background: #e8f5ec; color: #1d6b35; }
.offerbox__flash--error { background: #fdecec; color: #a52a2a; }

.offeractions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
}

.offeractions form { margin: 0; }

.offerbtn {
    padding: 9px 14px;
    border: 0;
    border-radius: var(--radius-md);
    background: var(--brand);
    color: #fff;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
    white-space: nowrap;
}

.offerbtn--quiet {
    background: transparent;
    color: var(--ink-muted);
    border: 1px solid var(--line);
}
