/* market.css — the KuikAR Marketplace at shop.kuikar.com.

   Deliberately NOT the landing page. kuikar.com is clay: soft, rounded, lit from
   one corner. This is a board of other people's goods, and a buyer scanning forty
   listings needs the furniture to disappear — so the vocabulary here is a hairline
   rule, one accent, generous white space and a serif only where a thing is being
   named or priced. No shadows, no gradients, no glass, no grain.

   Self-contained on purpose: it does not import landing.css or the app's css/, so
   a redesign of either cannot break a shop page. */

:root {
    /* ---- Paper: the only surfaces are white and one warm tint ---- */
    --paper: #ffffff;
    --paper-2: #f7f6f2;
    --paper-3: #edeae4;

    /* ---- Ink: three steps, and that is the whole palette of text ---- */
    --ink: #191d1c;
    --ink-2: #4b5351;
    --ink-3: #7c8482;

    /* ---- Rules: everything that separates, frames or underlines ---- */
    --rule: #e2e0d9;
    --rule-2: #c6c3ba;

    /* ---- Accent: the house teal, used for action and for assurance ---- */
    --accent: #0e5d52;
    --accent-2: #0a4a41;
    --accent-3: #eaf1ef;

    /* ---- Warning: the only other hue, and only on a problem ---- */
    --warn: #8a3a26;
    --warn-2: #b0503a;
    --warn-3: #fbf2ee;

    /* ---- Type: serif to name things, system sans to run the interface ---- */
    --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
    --font-ui: ui-sans-serif, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --fs-11: 11px;
    --fs-12: 12px;
    --fs-13: 13px;
    --fs-14: 14px;
    --fs-15: 15px;
    --fs-17: 17px;
    --fs-20: 20px;
    --fs-26: 26px;
    --fs-34: 34px;

    /* ---- Small caps label: the one ornament this design allows ---- */
    --label: var(--fs-11);
    --label-space: 0.12em;

    /* ---- Radii: 2px, so a corner reads as cut rather than inflated ---- */
    --r: 2px;
    --r-2: 3px;

    /* ---- Measure ---- */
    --page-max: 1080px;
    --gut: 26px;
    --gut-narrow: 16px;
    --gap: 20px;
    --gap-lg: 34px;

    /* ---- Motion: colour only, nothing moves ---- */
    --t: 120ms ease-in-out;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-ui);
    font-size: var(--fs-15);
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin: 0 0 10px;
    color: var(--ink);
}

h1 { font-size: clamp(26px, 4.4vw, var(--fs-34)); }
h2 { font-size: clamp(20px, 3vw, var(--fs-26)); }
h3 { font-size: var(--fs-17); }

p { margin: 0 0 12px; }

.muted { color: var(--ink-2); }
.small { font-size: var(--fs-13); }
.tiny { font-size: var(--fs-12); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

/* Numerals in prices and counts line up in columns, which is what makes a list
   of prices readable at a glance. */
.listing-price, .price-line, .count, .seller-card dd {
    font-variant-numeric: tabular-nums;
}

/* ---------- Icons ---------- */

/* Inline <svg>, so a glyph always matches the text it sits beside. */
.mk-ico {
    width: 1.1em;
    height: 1.1em;
    flex: none;
    vertical-align: -0.18em;
    stroke-width: 1.6;
}

.mk-ico-sm { width: 14px; height: 14px; }
.mk-ico-lg { width: 22px; height: 22px; }

h2 .mk-ico, h3 .mk-ico, .row-title .mk-ico { margin-right: 7px; }

/* ---------- Focus ---------- */

/* One crisp ring, drawn with outline so it never needs a shadow to be seen. */
:where(a, button, input, select, textarea, .chip, .tab, .thumb):focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: var(--r);
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 16px;
    border: 1px solid var(--rule-2);
    border-radius: var(--r);
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    font-size: var(--fs-14);
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color var(--t), background var(--t), color var(--t);
}

.btn:hover { background: var(--paper-2); border-color: var(--ink-3); text-decoration: none; }

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }

/* A teal outline: an action that is real but secondary to the one beside it. */
.btn-teal { color: var(--accent); border-color: var(--accent); background: var(--paper); }
.btn-teal:hover { background: var(--accent-3); border-color: var(--accent-2); }

/* A link that is shaped like a button because it sits in a row of buttons. */
.btn-ghost { border-color: transparent; background: none; color: var(--ink-2); padding-inline: 4px; }
.btn-ghost:hover { color: var(--ink); background: none; border-color: transparent; text-decoration: underline; }

.btn-sm { padding: 6px 11px; font-size: var(--fs-13); }
.btn:disabled { opacity: 0.5; cursor: progress; }

/* ---------- Top bar ---------- */

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 14px var(--gut);
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: var(--fs-20);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.1;
}

.brand:hover { text-decoration: none; }
.brand img { border-radius: var(--r); }

/* The word under the name, not beside it: a masthead, not a sentence. */
.brand-tag {
    display: block;
    font-family: var(--font-ui);
    font-size: var(--label);
    font-weight: 600;
    letter-spacing: var(--label-space);
    text-transform: uppercase;
    color: var(--ink-3);
}

.top-search { flex: 1 1 300px; min-width: 220px; }
.top-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* ---------- Fields ---------- */

.search-form { display: flex; gap: 8px; }

.field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: var(--fs-12);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--ink-2);
}

.input,
.search-input,
select.input,
textarea.input {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid var(--rule-2);
    border-radius: var(--r);
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    font-size: var(--fs-14);
    transition: border-color var(--t);
}

.input::placeholder { color: var(--ink-3); }
.input:hover { border-color: var(--ink-3); }
.input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-3); }

textarea.input,
.input.box {
    min-height: 108px;
    padding: 11px;
    resize: vertical;
    line-height: 1.55;
}

/* A caret drawn here rather than left to the operating system, so every select
   on the board matches the rest of the fields. */
select.input {
    appearance: none;
    padding-right: 30px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234b5351' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

/* The operating system's own file picker is a heavy grey slab. Framed like a
   field it matches the others and still keeps its native, trustworthy button. */
.input[type="file"] {
    padding: 7px 9px;
    font-size: var(--fs-13);
    color: var(--ink-2);
    cursor: pointer;
}

.input[type="file"]::file-selector-button {
    margin-right: 10px;
    padding: 5px 11px;
    border: 1px solid var(--rule-2);
    border-radius: var(--r);
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    font-size: var(--fs-12);
    font-weight: 600;
    cursor: pointer;
    transition: border-color var(--t), color var(--t);
}

.input[type="file"]::file-selector-button:hover { border-color: var(--accent); color: var(--accent); }

/* A statement that has to be ticked reads as a sentence, not a field, so the
   label sits beside the box instead of above it. */
.field-check {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--ink);
    line-height: 1.55;
}

.field-check input[type="checkbox"] {
    flex: none;
    width: 15px;
    height: 15px;
    margin: 4px 0 0;
    accent-color: var(--accent);
}

/* "What happens next" in three steps — a plain list, ordered by the numbers. */
.steps {
    margin: 0;
    padding-left: 20px;
    line-height: 1.8;
    color: var(--ink-2);
}

.steps li + li { margin-top: 2px; }

/* ---------- Page frame ---------- */

.wrap { max-width: var(--page-max); margin: 0 auto; padding: 22px var(--gut) 64px; }

.page-head { margin: 14px 0 26px; }
.page-head p { color: var(--ink-2); max-width: 64ch; margin-bottom: 0; }

.split {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: var(--gap-lg);
    align-items: start;
}

/* Each side of a split keeps its own rhythm, so a page never has to state the
   air between two of its own blocks. */
.split > * { display: grid; gap: var(--gap); align-content: start; }

/* A card here is a hairline box, not a raised one. */
.card {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: var(--r-2);
    padding: 20px;
}

/* The sign-in, status and not-found panels: one narrow column, centred. */
.card-narrow { max-width: 560px; margin: 32px auto; }
.card-gap { margin-top: var(--gap-lg); }

/* ---------- A shop's own header ---------- */

.shop-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.shop-names { flex: 1 1 260px; min-width: 0; }
.shop-names h1 { margin-bottom: 6px; }

/* A shop logo is a square in a hairline frame; without one, its initials. */
.shop-mark {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    flex: none;
    overflow: hidden;
    border: 1px solid var(--rule);
    border-radius: var(--r);
    background: var(--paper-3);
    font-family: var(--font-display);
    font-size: var(--fs-20);
    font-weight: 600;
    color: var(--ink-3);
}

.shop-mark img { width: 100%; height: 100%; object-fit: cover; }
.shop-marks { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin: var(--gap-lg) 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--rule);
}

.section-head h2 { margin: 0; font-size: var(--fs-20); }

/* ---------- Category bar ---------- */

/* Text on a rule, with the chosen one marked: a list of departments, not a
   cloud of pills. */
.chips {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    padding: 0 2px;
    margin: 0 0 22px;
    border-bottom: 1px solid var(--rule);
    scrollbar-width: thin;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 12px;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    color: var(--ink-2);
    font-size: var(--fs-13);
    font-weight: 500;
    white-space: nowrap;
    transition: color var(--t), border-color var(--t);
}

.chip:hover { color: var(--ink); text-decoration: none; }
.chip.is-active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }

/* ---------- Filters ---------- */

.filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
    gap: 14px;
    padding: 16px;
    margin: 0 0 24px;
    background: var(--paper-2);
    border: 1px solid var(--rule);
    border-radius: var(--r-2);
}

/* ---------- The board ---------- */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(212px, 1fr));
    gap: 30px var(--gap);
}

.listing { display: block; color: inherit; }
.listing:hover { text-decoration: none; }

.listing-photo {
    position: relative;
    aspect-ratio: 4 / 3;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: var(--paper-3);
    border: 1px solid var(--rule);
    border-radius: var(--r);
    transition: border-color var(--t);
}

.listing:hover .listing-photo { border-color: var(--rule-2); }
.listing-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* No photo is a fact about the listing, so it is drawn as one: the shop's
   initials in the frame, and the words underneath. */
.listing-photo .placeholder {
    font-family: var(--font-display);
    font-size: var(--fs-26);
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--ink-3);
}

.listing-photo .no-photo {
    position: absolute;
    bottom: 8px;
    left: 9px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: var(--label);
    letter-spacing: var(--label-space);
    text-transform: uppercase;
    color: var(--ink-3);
}

.listing-flags { position: absolute; top: 8px; left: 8px; display: flex; gap: 6px; }

.listing-body { padding: 10px 0 0; }

.listing-price {
    font-family: var(--font-display);
    font-size: var(--fs-17);
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 2px;
}

.listing-title {
    font-size: var(--fs-14);
    font-weight: 500;
    line-height: 1.4;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.listing:hover .listing-title { text-decoration: underline; text-underline-offset: 3px; }

.listing-meta {
    font-size: var(--fs-12);
    color: var(--ink-3);
    margin: 0;
}

.listing-meta .mk-ico { width: 12px; height: 12px; vertical-align: -0.14em; margin-right: 3px; }

/* ---------- Pills and labels ---------- */

.pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border: 1px solid var(--rule-2);
    border-radius: var(--r);
    background: var(--paper);
    color: var(--ink-2);
    font-size: var(--fs-11);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    vertical-align: 1px;
}

/* Assurance is the accent, and nothing else wears the accent. */
.pill-verified { color: var(--accent); border-color: var(--accent); background: var(--accent-3); }
.pill-live { color: var(--accent); border-color: var(--accent); }
.pill-service { color: var(--ink-2); }
.pill-sold { color: var(--warn); border-color: var(--warn); }

/* ---------- Listing detail ---------- */

.gallery { display: grid; gap: 10px; }

.gallery-main {
    aspect-ratio: 4 / 3;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: var(--paper-3);
    border: 1px solid var(--rule);
    border-radius: var(--r);
}

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

/* The same statement as on a card, at the size of the bigger frame. */
.gallery-main .placeholder { font-size: var(--fs-34); }
.gallery-main .no-photo { bottom: 10px; left: 12px; }

.thumbs { display: flex; gap: 8px; flex-wrap: wrap; }

/* The composer's strip needs air on both sides of it, and when a shop has
   uploaded nothing there is no strip to leave a gap for. */
.photo-strip { margin: 8px 0 12px; }
.photo-strip:empty { display: none; }

.thumb {
    width: 64px;
    height: 64px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--rule);
    border-radius: var(--r);
    background: var(--paper-3);
    cursor: pointer;
    transition: border-color var(--t);
}

.thumb:hover { border-color: var(--ink-3); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.is-active { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }

/* In the composer a thumbnail also carries its own remove button, so it needs a
   frame the × can be pinned to. */
.thumb-wrap { position: relative; display: inline-block; }
.thumb-wrap .thumb { display: block; cursor: default; }

.thumb-remove {
    position: absolute;
    top: -7px;
    right: -7px;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 1px solid var(--rule-2);
    border-radius: 50%;
    background: var(--paper);
    color: var(--ink-2);
    line-height: 1;
    cursor: pointer;
    transition: border-color var(--t), color var(--t);
}

.thumb-remove:hover { border-color: var(--warn); color: var(--warn); }
.thumb-remove .mk-ico { width: 12px; height: 12px; }

/* A shop's own logo, shown before it is saved. */
.logo-preview {
    display: grid;
    place-items: center;
    width: 96px;
    height: 96px;
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid var(--rule);
    border-radius: var(--r);
    background: var(--paper-3);
}

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

/* Below the grid of results, where "show more" lives. */
.feed-more { margin-top: 24px; }

/* A notice that closes a card does not need to push the card open again. */
/* A notice that closes a card sits under the work above it and does not add the
   bottom margin the card's own padding already provides. */
.notice-final { margin: 16px 0 0; }

.price-line {
    font-family: var(--font-display);
    font-size: var(--fs-26);
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 12px;
}

.spec-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.listing-description p { font-size: var(--fs-14); line-height: 1.7; }

.seller-card h3 { margin-bottom: 4px; }

.seller-card dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 7px 14px;
    margin: 16px 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--rule);
    font-size: var(--fs-13);
}

.seller-card dt {
    color: var(--ink-3);
    font-size: var(--label);
    letter-spacing: var(--label-space);
    text-transform: uppercase;
    padding-top: 3px;
}

.seller-card dd { margin: 0; text-align: right; font-weight: 500; }

/* ---------- Notices and the standing safety line ---------- */

.notice {
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid var(--rule);
    border-left: 2px solid var(--rule-2);
    border-radius: var(--r);
    background: var(--paper-2);
    color: var(--ink-2);
    font-size: var(--fs-14);
}

.notice-trust { border-left-color: var(--accent); color: var(--ink); }
.notice-warn { border-left-color: var(--warn); color: var(--warn); background: var(--warn-3); }
.notice .mk-ico { margin-right: 6px; }

/* Says the same thing on every page that keeps money out of Kuikar's hands. */
.safety-strip {
    display: flex;
    align-items: baseline;
    gap: 9px;
    max-width: var(--page-max);
    margin: 26px auto 0;
    padding: 12px 0 0;
    border-top: 1px solid var(--rule);
    color: var(--ink-2);
    font-size: var(--fs-13);
}

.safety-strip .mk-ico { color: var(--accent); vertical-align: -0.2em; }
.safety-strip a { color: inherit; }

.point-list {
    display: grid;
    gap: 9px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
    font-size: var(--fs-14);
    color: var(--ink-2);
}

.point-list li { display: flex; align-items: flex-start; gap: 10px; }
.point-list strong { color: var(--ink); font-weight: 600; }
.point-list .mk-ico { color: var(--accent); margin-top: 4px; }

/* ---------- Vendor dashboard ---------- */

.tabs {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin: 0 0 24px;
    border-bottom: 1px solid var(--rule);
}

.tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0 10px;
    margin-bottom: -1px;
    border-bottom: 2px solid transparent;
    color: var(--ink-2);
    font-size: var(--fs-14);
    font-weight: 500;
    transition: color var(--t), border-color var(--t);
}

.tab:hover { color: var(--ink); text-decoration: none; }
.tab.is-active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }

/* A list of the shop's own things: rules between rows, no boxes around them. */
.rows { display: grid; gap: 0; border-top: 1px solid var(--rule); }

.row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 14px 2px;
    border-bottom: 1px solid var(--rule);
}

.row-main { flex: 1 1 220px; min-width: 0; }
.row-title { font-size: var(--fs-14); font-weight: 600; margin: 0 0 2px; }
.row-sub { font-size: var(--fs-12); color: var(--ink-3); margin: 0; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.enquiry { align-items: flex-start; }
.enquiry-body { flex: 1 1 260px; }

.enquiry-text {
    margin: 6px 0 0;
    font-size: var(--fs-14);
    color: var(--ink-2);
}

.count {
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    padding: 0 5px;
    border: 1px solid var(--accent);
    border-radius: var(--r);
    color: var(--accent);
    font-size: var(--fs-12);
    font-weight: 600;
}

/* ---------- Forms ---------- */

.form-grid { display: grid; gap: 15px; }
.form-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; }
.form-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Empty and loading ---------- */

.empty {
    text-align: center;
    padding: 48px 24px;
    border: 1px solid var(--rule);
    border-radius: var(--r-2);
    background: var(--paper-2);
    color: var(--ink-2);
    font-size: var(--fs-14);
}

.empty .mk-ico { width: 26px; height: 26px; color: var(--ink-3); margin-bottom: 8px; }
.empty h3 { margin: 0 0 4px; font-size: var(--fs-17); }
.empty p { margin: 0 auto 14px; max-width: 46ch; }

.skeleton {
    height: 232px;
    border-radius: var(--r);
    background: var(--paper-3);
    animation: breathe 1.6s ease-in-out infinite;
}

@keyframes breathe { 50% { opacity: 0.55; } }

/* ---------- Footer ---------- */

.footer {
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 22px var(--gut) 48px;
    border-top: 1px solid var(--rule);
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    color: var(--ink-3);
    font-size: var(--fs-13);
}

.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: var(--ink-2); }
.footer-links a:hover { color: var(--ink); }

.footer-trust {
    flex: 1 1 100%;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
    font-size: var(--fs-12);
    color: var(--ink-3);
}

.footer-trust li { display: inline-flex; align-items: center; gap: 6px; }
.footer-trust .mk-ico { color: var(--accent); }

/* ---------- Narrow screens ---------- */

@media (max-width: 900px) {
    .split { grid-template-columns: minmax(0, 1fr); }
    .top-actions { margin-left: 0; }
    .top-search { order: 3; flex-basis: 100%; }
}

@media (max-width: 560px) {
    :root { --gut: var(--gut-narrow); }
    .wrap { padding-top: 16px; padding-bottom: 48px; }
    .grid { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 22px 12px; }
    .card { padding: 16px; }
    .filters { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
    .row-actions { width: 100%; }
}

/* ---------- Reduced motion ---------- */

/* The only motion left is the loading pulse and colour fades; both stop here. */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 1ms !important;
    }
    .skeleton { animation: none; opacity: 0.7; }
}
