/* Bluegrass TCG — the one stylesheet every page loads.
 *
 * Type: Permanent Marker for page headings, Space Grotesk for everything you
 * read or tap (body, nav, buttons, forms), Space Mono only for prices, set
 * codes and stamps. Nothing renders below 12px (0.75rem).
 *
 * Borders: dashed is reserved for stamps and price tags; controls, panels and
 * tiles get solid edges.
 */

/* ---- Tokens ------------------------------------------------------------- */

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

:root {
    color-scheme: dark;
    --bg: #16120f;
    --surface: #1a171a;
    --border: rgba(243, 237, 224, 0.1);
    --line: rgba(243, 237, 224, 0.2);       /* visible edge for inputs and controls */
    --text: #f0f0f0;
    --muted: #948d80;
    --accent: #f2971d;
    --accent-hover: #ffb54d;
    --paper: #f3ede0;
    --paper-ink: #171514;
    --green: #4cb87a;
    --red: #e8362a;
    --blue: #2496b0;
    --logo-red: #e0201a;
    --logo-yellow: #ffb800;
    --logo-blue: #1f7fc4;
    --font-mark: 'Permanent Marker', cursive;
    --font-body: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --tap: 44px;
}

/* ---- Base and background ------------------------------------------------ */

html {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    background: transparent;
}

/* The blue/red/yellow glow is pinned to the screen rather than stretched over
 * the page, so short pages don't end in a field of brown. Fixed pseudo-element
 * instead of background-attachment: fixed, which iOS Safari ignores. */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        radial-gradient(110% 85% at 0% 0%, rgba(31,127,196,.48), transparent 72%),
        radial-gradient(100% 85% at 100% 0%, rgba(224,32,26,.4), transparent 72%),
        radial-gradient(120% 55% at 50% 100%, rgba(255,184,0,.13), transparent 75%);
}

/* Paper grain over everything. */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 500;
    pointer-events: none;
    opacity: .05;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; }

/* The hidden attribute should win over any display set in this file. */
[hidden] { display: none !important; }

/* Keyboard focus: a clear orange ring on anything you can tab to. Mouse and
 * touch focus don't show it (that's what :focus-visible is for). */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
:where(input, select, textarea):focus-visible { outline-offset: 1px; }
.receipt :focus-visible { outline-color: var(--paper-ink); }

.shell { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ---- Page headings ------------------------------------------------------ */

.page-header { padding: 44px 0 28px; }

.page-header h1,
.marker-heading {
    margin: 0;
    font-family: var(--font-mark);
    font-weight: 400;
    font-size: clamp(2rem, 5.5vw, 2.9rem);
    line-height: 1.05;
    letter-spacing: 0;
    transform: rotate(-1deg);
    position: relative;
    display: inline-block;
    text-wrap: balance;
}

.page-header h1::after {
    content: "";
    display: block;
    width: 78%;
    height: 6px;
    margin-top: 4px;
    background: var(--accent);
    transform: rotate(-1.4deg);
    border-radius: 2px;
}

/* ---- Topbar ------------------------------------------------------------- */

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(19, 17, 19, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

/* Perforated edge under the header. */
.topbar::after {
    content: "";
    display: block;
    height: 1px;
    background-image: repeating-linear-gradient(90deg, rgba(243,237,224,.22) 0 5px, transparent 5px 11px);
}

.topbar-inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo { height: 48px; width: auto; display: block; }

.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 4px 0;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
    padding: 0 12px;
    border-left: 1px solid var(--border);
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 120ms;
}

.nav-links > a:first-child { border-left: none; }
.nav-links a:hover { color: var(--text); }
.nav-links .nav-admin { color: var(--accent); }
.nav-links [aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }

.nav-count {
    background: var(--accent);
    color: var(--paper-ink);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    padding: 3px 7px;
    border-radius: 10px;
    margin-left: 6px;
}

/* ---- Buttons -------------------------------------------------------------
 * Three styles, all at least 44px tall:
 *   .btn-primary   solid orange — the one main action on a page
 *   .btn           orange outline that fills on hover or press (secondary)
 *   .btn-quiet     plain text
 */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: var(--tap);
    padding: 0 18px;
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: background-color 120ms, color 120ms, border-color 120ms;
}

.btn:active,
.btn.active { background: var(--accent); color: var(--paper-ink); }

@media (hover: hover) {
    .btn:hover { background: var(--accent); color: var(--paper-ink); }
}

.btn-primary, .btn-accent {
    background: var(--accent);
    color: var(--paper-ink);
}

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

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

.btn-quiet {
    border-color: transparent;
    background: transparent;
    color: var(--muted);
    padding: 0 8px;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
}

.btn-quiet:active { background: transparent; color: var(--text); text-decoration-color: currentColor; }

@media (hover: hover) {
    .btn-quiet:hover { background: transparent; color: var(--text); text-decoration-color: currentColor; }
}

.btn-red { color: var(--red); border-color: var(--red); }
.btn-red:active { background: var(--red); color: var(--paper); }

@media (hover: hover) {
    .btn-red:hover { background: var(--red); color: var(--paper); }
}

.btn-sm { padding: 0 14px; font-size: 0.875rem; }
.btn-block { display: flex; width: 100%; }

.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn:disabled:hover { background: transparent; color: var(--accent); }
.btn-primary:disabled:hover, .btn-accent:disabled:hover { background: var(--accent); color: var(--paper-ink); border-color: var(--accent); }

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

:where(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
    min-height: var(--tap);
    padding: 10px 14px;
    background: var(--surface);
    color: var(--text);
    border: 1.5px solid var(--line);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;          /* 16px keeps iOS from zooming on focus */
    line-height: 1.4;
    outline: none;
    transition: border-color 120ms;
}

:where(input, select, textarea):focus { border-color: var(--accent); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
select { cursor: pointer; }

/* Labelled fields on the sign-in, forgot and reset password cards, and checkout. */
:is(.auth-card, .checkout-form) .field { margin-bottom: 16px; }

:is(.auth-card, .checkout-form) .field label {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

:is(.auth-card, .checkout-form) .field :is(input, textarea) { width: 100%; }
.checkout-form .field textarea { min-height: 72px; resize: vertical; }

.field-optional {
    margin-left: 4px;
    color: var(--muted);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    opacity: .8;
}

.field-error {
    margin: 6px 0 0;
    color: #ff8a7a;
    font-size: 0.875rem;
    line-height: 1.4;
}

[aria-invalid="true"] { border-color: var(--red) !important; }

.error-msg { color: var(--red); font-size: 0.875rem; margin-top: 8px; }
.success-msg { color: var(--green); font-size: 0.875rem; margin-top: 8px; }

/* ---- Panels, tables, stamps, tags --------------------------------------- */

.card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 4px;
    padding: 20px;
}

table { width: 100%; border-collapse: collapse; }

th {
    text-align: left;
    padding: 8px 12px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

td { padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 0.875rem; }
tr:last-child td { border-bottom: none; }

/* Rubber-stamp order status. */
.status-badge {
    display: inline-block;
    padding: 3px 9px;
    border: 1.5px solid currentColor;
    border-radius: 3px;
    background: transparent !important;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transform: rotate(-1.5deg);
}

.status-pending { color: var(--accent); }
.status-packing { color: var(--blue); }
.status-shipped { color: var(--green); }
.status-completed { color: var(--muted); }
.status-cancelled { color: var(--red); }

.payment-status {
    display: inline-block;
    margin-left: 8px;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 600;
}

.payment-status-paid { color: var(--green); }

/* Small mono label after a card name: FOIL, JP, 30% off. */
.tag-foil {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.set-code { font-family: var(--font-mono); }


/* ---- Shop: hero and controls -------------------------------------------- */

.shop-header { padding-bottom: 20px; }

/* Stamped notices under the heading. */
.trust-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    padding: 16px 0 0;
}

.trust-bar span {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 2px;
    background: var(--accent);
    color: var(--paper-ink);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: .02em;
    transform: rotate(-1deg);
}

.trust-bar span:nth-child(2n) {
    background: transparent;
    color: var(--muted);
    border: 1.5px dashed var(--line);
    transform: rotate(1deg);
}

/* Search and filters stay just under the header while the board scrolls.
 * --topbar-h is measured in base.html, since the nav can wrap. */
.controls {
    position: sticky;
    top: var(--topbar-h, 66px);
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
    padding: 14px 16px 10px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 4px;
    box-shadow: 0 10px 20px -14px rgba(0,0,0,.8);
}

.controls-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.controls :where(input, select) { background: var(--bg); }
.search-bar { flex: 1 1 240px; min-width: 0; }
.filter-selects { display: flex; flex-wrap: wrap; gap: 10px; }
/* Long set names ("Adventures in the Forgotten Realms (AFR) · 1") would
 * otherwise size the dropdown and squeeze the search box. */
.set-select { width: 260px; text-overflow: ellipsis; }
.filters-toggle { display: none; }
.filters-toggle .nav-count { margin-left: 8px; }

.filter-chips { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.filter-chips:empty { display: none; }
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: var(--tap);
    padding: 0 14px;
    background: transparent;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 120ms, background-color 120ms;
}

.chip:hover { border-color: rgba(243, 237, 224, 0.4); }

.chip[aria-pressed="true"] {
    background: rgba(242, 151, 29, 0.16);
    border-color: var(--accent);
    color: var(--paper);
}

/* Little pushpins, matching the ones on the board. */
.chip-pin {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0,0,0,.6), inset 0 -1.5px 1.5px rgba(0,0,0,.35), inset 0 1px 1px rgba(255,255,255,.45);
}

.chip-pin-w { background: radial-gradient(circle at 35% 30%, #fffdf0, #e4d59a 55%, #b9a468 100%); }
.chip-pin-u { background: radial-gradient(circle at 35% 30%, #9fd6f5, #0e68ab 55%, #0a4a78 100%); }
.chip-pin-b { background: radial-gradient(circle at 35% 30%, #8a8378, #2a2620 55%, #0a0806 100%); }
.chip-pin-r { background: radial-gradient(circle at 35% 30%, #ff7a5c, #e8362a 55%, #7e2318 100%); }
.chip-pin-g { background: radial-gradient(circle at 35% 30%, #96dba3, #1c7a3e 55%, #0f4a26 100%); }
.chip-pin-c { background: radial-gradient(circle at 35% 30%, #f4f4f2, #a9a7a2 55%, #6a6864 100%); }
.chip-pin-m { background: radial-gradient(circle at 35% 30%, #fff1b8, #d9a93a 55%, #8a6518 100%); }
.chip-pin-foil { border-radius: 3px; background: linear-gradient(120deg, #fff6df, var(--accent) 45%, #9fd6f5 80%); }

.controls-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 32px;
    color: var(--muted);
    font-size: 0.875rem;
}

.clear-filters {
    min-height: 32px;
    padding: 0 4px;
    background: none;
    border: none;
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}


.board-empty, .empty-note {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 420px;
    margin: 24px 0;
    padding: 28px 24px;
    text-align: center;
    background: var(--surface);
    border-radius: 6px;
    box-shadow: 0 8px 16px -6px rgba(0,0,0,.55);
    transform: rotate(-0.6deg);
}

.empty-note { margin: 24px auto 96px; }
.board-empty-title, .empty-note-title { margin: 0 0 8px; font-family: var(--font-mark); font-size: 1.5rem; }
:is(.board-empty, .empty-note) p { margin: 0 0 18px; color: var(--muted); }
:is(.board-empty, .empty-note) :is(.board-empty-title, .empty-note-title) { color: var(--text); }

/* ---- Shop: the corkboard ------------------------------------------------ */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 30px 22px;
    margin-bottom: 40px;
    padding: 30px 22px 36px;
    border: 3px solid #4a3018;
    border-radius: 6px;
    background-color: #7a5433;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(0,0,0,.18) 1px, transparent 1.4px),
        radial-gradient(circle at 65% 40%, rgba(0,0,0,.15) 1.3px, transparent 1.6px),
        radial-gradient(circle at 40% 75%, rgba(0,0,0,.14) 1px, transparent 1.3px),
        radial-gradient(circle at 85% 85%, rgba(255,255,255,.09) 1px, transparent 1.3px),
        radial-gradient(circle at 25% 60%, rgba(255,255,255,.07) 1px, transparent 1.2px),
        radial-gradient(circle at 92% 30%, rgba(0,0,0,.12) 1px, transparent 1.3px);
    background-size: 34px 34px, 41px 41px, 27px 27px, 53px 53px, 22px 22px, 46px 46px;
    box-shadow: inset 0 2px 10px rgba(0,0,0,.45), 0 6px 16px rgba(0,0,0,.4);
}

.listing {
    /* The whole card tilts on the board; the angle cycles so neighbours
     * don't line up. */
    --tilt: -1deg;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 8px;
    background: var(--surface);
    border: 1px solid rgba(243, 237, 224, 0.08);
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0,0,0,.45), 0 8px 16px -6px rgba(0,0,0,.55);
    transform: rotate(var(--tilt));
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.listing:nth-child(4n+2) { --tilt: 0.8deg; }
.listing:nth-child(4n+3) { --tilt: -0.6deg; }
.listing:nth-child(4n+4) { --tilt: 1.2deg; }

/* Pushpin on the card's top edge. Pins cycle through Magic's five mana
 * colors, W-U-B-R-G. */
.listing::before {
    content: "";
    position: absolute;
    top: -7px;
    left: 50%;
    width: 16px;
    height: 16px;
    margin-left: -8px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fffdf0, #e4d59a 55%, #b9a468 100%);
    box-shadow: 0 3px 5px rgba(0,0,0,.55), inset 0 -2px 2px rgba(0,0,0,.35), inset 0 1px 1px rgba(255,255,255,.5);
    z-index: 2;
}

.listing:nth-child(5n+2)::before { background: radial-gradient(circle at 35% 30%, #9fd6f5, #0e68ab 55%, #0a4a78 100%); }
.listing:nth-child(5n+3)::before { background: radial-gradient(circle at 35% 30%, #8a8378, #2a2620 55%, #0a0806 100%); }
.listing:nth-child(5n+4)::before { background: radial-gradient(circle at 35% 30%, #ff7a5c, #e8362a 55%, #7e2318 100%); }
.listing:nth-child(5n+5)::before { background: radial-gradient(circle at 35% 30%, #96dba3, #1c7a3e 55%, #0f4a26 100%); }

/* Straighten and lift on hover, press or keyboard focus — unless the
 * visitor has asked for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
    .listing:active {
        transform: rotate(0deg) translateY(-3px);
        box-shadow: 0 2px 4px rgba(0,0,0,.4), 0 16px 28px -8px rgba(0,0,0,.6);
    }

    /* Its own rule: browsers without :has() drop the whole selector list. */
    .listing:has(:focus-visible) {
        transform: rotate(0deg) translateY(-3px);
        box-shadow: 0 2px 4px rgba(0,0,0,.4), 0 16px 28px -8px rgba(0,0,0,.6);
    }

    @media (hover: hover) {
        .listing:hover {
            transform: rotate(0deg) translateY(-3px);
            box-shadow: 0 2px 4px rgba(0,0,0,.4), 0 16px 28px -8px rgba(0,0,0,.6);
        }
    }
}

.listing-img-wrap {
    display: block;
    position: relative;
    aspect-ratio: 488 / 680;
    /* Real card corners: ~2.5mm on a 63 x 88mm card. */
    border-radius: 4.75% / 3.4%;
    overflow: hidden;
    background: #111;
}

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

.listing-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 100%;
    color: #444;
}

.listing-placeholder svg { opacity: 0.35; }

.listing-placeholder span {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Foil, language, discount and quantity, in a row under the art. */
.listing-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 4px 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 7px;
    border: 1px solid var(--line);
    border-radius: 3px;
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.badge-foil {
    color: var(--paper-ink);
    border-color: transparent;
    background: linear-gradient(120deg, #fff6df, var(--accent) 45%, #fff6df 80%);
}

.badge-savings {
    color: #0d2818;
    border-color: transparent;
    background: linear-gradient(120deg, #b9f2cf, #4cb87a 55%, #b9f2cf 95%);
}

.badge-qty { color: var(--muted); }

.listing-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 10px 4px 4px;
}

.listing-name {
    margin: 0 0 3px;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.3;
}

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

.listing-set {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 0.8125rem;
    line-height: 1.4;
}

.listing-set .set-code { font-size: 0.75rem; letter-spacing: 0.02em; }

.listing-bottom {
    display: flex;
    align-items: center;
    margin-top: auto;
}

/* Price tag. */
.listing-price {
    padding: 4px 7px;
    border-radius: 2px;
    background: var(--bg);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    transform: rotate(-2deg);
}

.listing-price-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }

.listing-price-original {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-decoration: line-through;
    font-variant-numeric: tabular-nums;
}

.add-to-cart-btn { margin-top: 12px; }

.btn.added,
.btn.added:hover {
    background: transparent;
    color: var(--green);
    border-color: var(--green);
}

/* ---- Shop: large view of one card --------------------------------------- */

html:has(.card-dialog[open]) { overflow: hidden; scrollbar-gutter: stable; }

.card-dialog {
    width: min(880px, calc(100vw - 32px));
    max-width: none;
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--text);
    overflow: visible;
}

.card-dialog::backdrop {
    background: rgba(10, 8, 6, 0.78);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

/* Pinned to the board like the tiles. */
.card-dialog::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    z-index: 2;
    width: 18px;
    height: 18px;
    margin-left: -9px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #ff7a5c, #e8362a 55%, #7e2318 100%);
    box-shadow: 0 3px 5px rgba(0,0,0,.55), inset 0 -2px 2px rgba(0,0,0,.35), inset 0 1px 1px rgba(255,255,255,.5);
}

.card-dialog-panel {
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 28px;
    background: var(--surface);
    border: 1px solid rgba(243, 237, 224, 0.08);
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(0,0,0,.6);
}

/* Stays put in the corner while the panel scrolls on small screens. */
.card-dialog-close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--tap);
    height: var(--tap);
    padding: 0;
    background: var(--surface);
    border: none;
    border-radius: 50%;
    color: var(--muted);
    cursor: pointer;
    transition: color 120ms, background-color 120ms;
}

.card-dialog-close:hover { color: var(--text); background: rgba(243, 237, 224, 0.08); }

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

.card-detail-img {
    aspect-ratio: 672 / 936;
    overflow: hidden;
    border-radius: 4.75% / 3.4%;
    background: #111 center / cover no-repeat;
    box-shadow: 0 10px 24px rgba(0,0,0,.5);
}

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

.card-detail-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 8px 40px 0 0;   /* clear of the close button */
}

.card-detail-name {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
    text-wrap: balance;
}

.card-detail-set { margin: -10px 0 0; color: var(--muted); }
.card-detail-set .set-code { font-size: 0.875rem; letter-spacing: 0.02em; }

.card-detail-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 20px;
    margin: 0;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.card-detail-facts dt {
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.card-detail-facts dd { margin: 0; font-size: 1rem; }

.card-detail-price { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.card-detail-price .listing-price { font-size: 1.5rem; padding: 6px 10px; }
.card-detail-price .listing-price-original { font-size: 0.9375rem; }

.card-detail-actions { display: flex; flex-direction: column; align-items: center; gap: 4px; }

.card-detail-missing { padding: 12px 40px 4px 4px; }
.card-detail-missing p { margin: 12px 0 20px; color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
    .card-dialog[open] { animation: card-dialog-in 180ms ease-out; }
    .card-dialog[open]::backdrop { animation: backdrop-in 180ms ease-out; }
}

@keyframes card-dialog-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes backdrop-in { from { opacity: 0; } }

@media (max-width: 640px) {
    .card-dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); }
    .card-dialog-panel { max-height: calc(100dvh - 24px); padding: 20px 16px; }
    .card-detail { grid-template-columns: 1fr; gap: 18px; }
    .card-detail-img { width: min(100%, 270px); margin: 0 auto; }
    .card-detail-info { padding: 0; gap: 14px; }
    .card-detail-name { font-size: 1.35rem; padding-right: 36px; }
}

.status-msg {
    grid-column: 1 / -1;
    padding: 48px 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.9375rem;
}

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.skeleton-card { text-align: left; }

.skeleton-img {
    width: 100%;
    aspect-ratio: 5/7;
    background: #1a1a1a;
    border-radius: 8px;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton-text {
    height: 12px;
    margin-top: 10px;
    border-radius: 4px;
    background: #1a1a1a;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton-text.short { width: 50%; }

@keyframes skeleton-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.noscript-msg { color: var(--muted); text-align: center; padding: 40px 0; }

/* ---- Cart --------------------------------------------------------------- */

.cart-layout { display: flex; gap: 24px; padding-bottom: 80px; }
.cart-main { flex: 1; }
.cart-summary { width: 300px; flex-shrink: 0; }
.cart-summary .card { position: sticky; top: 80px; }

/* Image | name, set and tags | price, with the stepper and any stock note
 * under the name. On phones the price drops under the name too. */
.cart-item {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr) auto;
    grid-template-areas:
        "img info     price"
        "img controls controls"
        "img note     note";
    column-gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.cart-item-img { grid-area: img; }
.cart-item-info { grid-area: info; }
.cart-item-price { grid-area: price; align-self: center; text-align: right; }
.cart-item-controls { grid-area: controls; }
.cart-item-note { grid-area: note; }

.cart-item:last-child { border-bottom: none; }

.cart-item-img {
    width: 60px;
    height: 84px;
    flex-shrink: 0;
    border-radius: 6px;
    object-fit: cover;
    background: #111;
}

.cart-item-name { margin-bottom: 2px; font-size: 0.9375rem; font-weight: 600; }
.cart-item-set { color: var(--muted); font-size: 0.8125rem; }
.cart-item-set .set-code { font-size: 0.75rem; }

.cart-item-foil, .cart-item-savings {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.cart-item-foil { color: var(--accent); }
.cart-item-savings { color: var(--green); }

.cart-item-price {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.cart-item-price-original {
    margin-right: 4px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    text-decoration: line-through;
    white-space: nowrap;
}

.cart-item-tags { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; }

.cart-item-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 8px; }

.qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--line);
    border-radius: 4px;
}

.qty-stepper button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--tap);
    height: var(--tap);
    padding: 0;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.25rem;
    cursor: pointer;
}

.qty-stepper button:hover:not(:disabled) { background: rgba(243, 237, 224, 0.06); }
.qty-stepper button:disabled { color: var(--muted); opacity: .45; cursor: not-allowed; }

.qty-value {
    min-width: 32px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
}

.cart-item-remove { padding: 0 6px; font-size: 0.875rem; }

.cart-item-stock, .cart-item-warning { margin: 6px 0 0; font-size: 0.8125rem; }
.cart-item-stock { color: var(--muted); }
.cart-item-warning { color: #ff8a7a; }

.cart-notice {
    margin: -8px 0 20px;
    padding: 10px 14px;
    border-left: 3px solid var(--accent);
    background: rgba(242, 151, 29, 0.1);
    font-size: 0.9375rem;
}

/* Order placed: a reservation slip pinned up like everything else. */
.order-confirm { padding: 24px 0 96px; text-align: center; }

.receipt {
    position: relative;
    max-width: 440px;
    margin: 0 auto;
    padding: 36px 28px 28px;
    background: var(--paper);
    color: var(--paper-ink);
    border-radius: 4px;
    box-shadow: 0 14px 30px -10px rgba(0,0,0,.7);
    transform: rotate(-0.8deg);
    text-align: left;
}

.receipt::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    width: 18px;
    height: 18px;
    margin-left: -9px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #96dba3, #1c7a3e 55%, #0f4a26 100%);
    box-shadow: 0 3px 5px rgba(0,0,0,.55), inset 0 -2px 2px rgba(0,0,0,.35), inset 0 1px 1px rgba(255,255,255,.5);
}

.receipt h2 { margin: 0; font-family: var(--font-mark); font-weight: 400; font-size: 2rem; line-height: 1.1; outline: none; }

.receipt-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 20px; }

.receipt-stamp {
    flex-shrink: 0;
    margin: 0;
    padding: 3px 10px;
    border: 2px dashed #1c7a3e;
    border-radius: 3px;
    color: #1c7a3e;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    transform: rotate(6deg);
}

.receipt-number { margin: 0; color: #5a534a; }
.receipt-number .set-code { color: var(--paper-ink); font-weight: 700; }

.receipt-facts {
    display: grid;
    gap: 12px;
    margin: 0 0 18px;
    padding: 16px 0;
    border-top: 1.5px dashed rgba(23, 21, 20, .3);
    border-bottom: 1.5px dashed rgba(23, 21, 20, .3);
}

.receipt-facts dt { color: #5a534a; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.receipt-facts dd { margin: 2px 0 0; font-size: 1rem; overflow-wrap: anywhere; }
.receipt-total { font-family: var(--font-mono); font-size: 1.4rem !important; font-weight: 700; }
.receipt-note { margin: 0 0 20px; color: #5a534a; font-size: 0.9375rem; }
.receipt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.receipt .btn-quiet { color: #5a534a; }
.receipt .btn-quiet:hover { color: var(--paper-ink); }

/* Shared by cart and buylist summaries. */
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.9375rem; }

.summary-total {
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 700;
}

.notes-field { width: 100%; margin: 12px 0; min-height: 60px; resize: vertical; }
.guest-fields { display: none; margin: 4px 0 12px; }
.guest-fields.active { display: block; }
.guest-fields input { width: 100%; margin-bottom: 8px; }
.guest-note { margin: 0 0 10px; color: var(--muted); font-size: 0.8125rem; line-height: 1.5; }
.guest-note a, .text-link { color: var(--accent); }
.payment-note { margin: 12px 0 0; color: var(--muted); font-size: 0.8125rem; line-height: 1.5; }

.checkout-form .guest-note { margin: 16px 0; }
.checkout-actions { display: flex; flex-direction: column; gap: 10px; }
.checkout-actions .error-msg { margin: 0; }
.checkout-actions-total { display: none; }

/* ---- Sign in, forgot and reset password --------------------------------- */

.auth-wrap { max-width: 432px; margin: 0 auto; padding: 56px 16px 80px; }
.auth-card { padding: 32px; }
.auth-card h2 { margin: 0 0 8px; font-family: var(--font-mark); font-weight: 400; font-size: 1.6rem; }
.auth-intro { margin: 0 0 20px; color: var(--muted); font-size: 0.875rem; line-height: 1.5; text-align: center; }
.subtitle { margin: 0 0 24px; color: var(--muted); font-size: 0.875rem; }
.auth-card .btn { width: 100%; margin-top: 8px; }

.back-link {
    display: block;
    margin-top: 20px;
    text-align: center;
    color: var(--muted);
    font-size: 0.875rem;
}

.back-link:hover { color: var(--text); }

.tabs { display: flex; margin-bottom: 24px; }

.tab {
    flex: 1;
    min-height: var(--tap);
    padding: 10px;
    background: none;
    border: none;
    border-bottom: 2px solid var(--border);
    color: var(--muted);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 120ms, border-color 120ms;
}

.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.form-section { display: none; }
.form-section.active { display: block; }

/* ---- My orders ---------------------------------------------------------- */

.orders-list { display: flex; flex-direction: column; gap: 16px; padding-bottom: 80px; }
.order-card { padding: 0; overflow: hidden; }

.order-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.order-id { font-size: 1rem; font-weight: 700; }
.order-date { color: var(--muted); font-size: 0.8125rem; }
.order-body { padding: 0 20px; }

.order-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    font-weight: 600;
}

.order-total .price { color: var(--accent); font-family: var(--font-mono); font-weight: 700; font-variant-numeric: tabular-nums; }
.order-notes { padding: 0 20px 14px; color: var(--muted); font-size: 0.8125rem; font-style: italic; }

/* ---- Buylist ------------------------------------------------------------ */

.bl-layout { display: flex; align-items: flex-start; gap: 24px; padding-bottom: 80px; }
.bl-main { flex: 1; min-width: 0; }
.bl-summary { width: 320px; flex-shrink: 0; position: sticky; top: 80px; }
.bl-search-wrap { position: relative; }

.bl-suggestions, .fc-suggestions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 20;
    max-height: 260px;
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: none;
    border-radius: 0 0 4px 4px;
}

.bl-suggestion-item, .fc-suggestion-item { padding: 10px 12px; font-size: 0.875rem; cursor: pointer; }
.bl-suggestion-item:hover, .bl-suggestion-item.active,
.fc-suggestion-item:hover, .fc-suggestion-item.active { background: rgba(255,255,255,0.06); }

.bl-printings-grid, .fc-printings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.bl-printings-grid { margin-top: 16px; }

.bl-printing-card, .fc-printing-card {
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.8125rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s;
}

.bl-printing-card:hover, .fc-printing-card:hover { border-color: rgba(255,255,255,0.3); }
.bl-printing-card.selected, .fc-printing-card.selected { border-color: var(--accent); }
.bl-printing-card img, .fc-printing-card img { width: 100%; margin-bottom: 6px; border-radius: 4px; }
.bl-printing-price, .fc-printing-price { margin-top: 2px; color: var(--accent); font-family: var(--font-mono); font-weight: 700; }

.bl-form { display: none; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }

.bl-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
}

.bl-list-item:last-child { border-bottom: none; }
.bl-list-item-info { flex: 1; }
.bl-list-item-meta { color: var(--muted); font-size: 0.75rem; }
.bl-list-item-price { color: var(--accent); font-family: var(--font-mono); font-weight: 700; white-space: nowrap; }

.bl-history { margin-top: 40px; }
.bl-request-card { margin-bottom: 16px; padding: 0; overflow: hidden; }

.bl-request-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

/* ---- Admin -------------------------------------------------------------- */

.admin-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }

.order-customer, .request-customer { margin-left: 8px; color: var(--accent); font-size: 0.875rem; }
.order-email, .request-email { margin-left: 4px; color: var(--muted); font-size: 0.8125rem; }
.request-date { color: var(--muted); font-size: 0.8125rem; }
.request-card { padding: 0; overflow: hidden; }

.request-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.request-body { padding: 0 20px; }
.requests-list { display: flex; flex-direction: column; gap: 16px; padding-bottom: 80px; }
.offer-input { width: 90px; min-height: 36px; padding: 4px 8px; text-align: right; font-size: 0.875rem; }

.request-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-top: 1px solid var(--border);
}

.request-total .price { color: var(--accent); font-family: var(--font-mono); font-size: 1.1rem; font-weight: 700; }

.order-notes, .order-admin-notes,
.request-notes, .request-admin-notes { padding: 0 20px 10px; font-size: 0.8125rem; }

.request-notes { color: var(--muted); font-style: italic; }
.order-admin-notes { color: var(--blue); }

.order-actions, .request-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 0 20px 16px;
}

.order-action-primary { color: var(--blue); border-color: var(--blue); }
.order-action-primary:active { background: var(--blue); color: var(--paper); }

@media (hover: hover) {
    .order-action-primary:hover { background: var(--blue); color: var(--paper); }
}

.packing-check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.packing-check input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }
.packing-check.checked td { color: var(--muted); text-decoration: line-through; }

.admin-notes-input { width: 100%; min-height: 44px; margin-top: 8px; resize: vertical; font-size: 0.875rem; padding: 8px 12px; }

.stats-bar { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 24px; }

.stat-card {
    min-width: 120px;
    padding: 16px 20px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 4px;
}

.stat-num { font-size: 1.6rem; font-weight: 700; }
.stat-label { margin-top: 2px; color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }
.stat-pending .stat-num { color: var(--accent); }
.stat-packing .stat-num { color: var(--blue); }
.stat-shipped .stat-num { color: var(--green); }

.print-btn { float: right; }
.fc-search-wrap { position: relative; max-width: 420px; }

/* ---- Small screens and motion ------------------------------------------- */

@media (max-width: 700px) {
    .cart-layout { flex-direction: column; }
    .cart-summary { width: 100%; }
    .cart-summary .card { position: static; }

    /* Total and Reserve stay pinned to the bottom of the screen. */
    .cart-page:has(.checkout-actions) { padding-bottom: 96px; }
    .checkout-actions {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 20;
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
        gap: 8px 16px;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        background: rgba(19, 17, 19, 0.97);
        border-top: 1px solid var(--line);
        box-shadow: 0 -10px 24px rgba(0,0,0,.5);
    }
    .checkout-actions .error-msg { grid-column: 1 / -1; }
    .checkout-actions-total { display: flex; flex-direction: column; line-height: 1.2; }
    .checkout-actions-total span:first-child { color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: .06em; }
    .checkout-actions-amount { color: var(--accent); font-family: var(--font-mono); font-size: 1.2rem; font-weight: 700; }
    .cart-item {
        grid-template-columns: 60px minmax(0, 1fr);
        grid-template-areas:
            "img info"
            "img price"
            "img controls"
            "img note";
    }
    .cart-item-price { align-self: start; text-align: left; margin-top: 6px; }
}

@media (max-width: 800px) {
    .bl-layout { flex-direction: column; }
    .bl-summary { width: 100%; position: static; }
}

@media (max-width: 560px) {
    .shell { padding: 0 16px; }
    .page-header { padding: 28px 0 20px; }
    .brand-logo { height: 40px; }
    .nav-links a { padding: 0 8px; font-size: 0.8125rem; }
    .nav-long { display: none; }
    .controls { padding: 10px 12px 6px; gap: 10px; }
    .search-bar { flex: 1 1 0; }
    .filters-toggle { display: inline-flex; order: 1; }
    .filter-selects { order: 2; flex-basis: 100%; min-width: 0; flex-wrap: nowrap; }
    .filter-selects select { flex: 1 1 0; min-width: 0; width: auto; }
    .controls:not(.is-open) .filter-selects,
    .controls:not(.is-open) .filter-chips { display: none; }
    /* One row per group that scrolls sideways, so the open panel stays short. */
    .filter-chips { flex-direction: column; gap: 8px; }
    .chip-group {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin: 0 -12px;
        padding: 0 12px;
        scrollbar-width: none;
        -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent);
        mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent);
    }
    .chip-group::-webkit-scrollbar { display: none; }
    .chip { flex-shrink: 0; }
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 16px; padding: 24px 12px 28px; border-width: 2px; }
    .listing { padding: 6px; }
    .listing-info { padding: 8px 2px 2px; }
    .listing-badges { padding: 8px 2px 0; }
    .listing-name { font-size: 0.875rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
    .topbar, .admin-toolbar, .order-actions, .stats-bar, .print-btn,
    .admin-notes-input, .nav-links { display: none !important; }
    body::before, body::after { display: none; }
    .card { break-inside: avoid; border: 1px solid #ccc; }
    html, body { background: #fff; color: #000; }
    .order-header, td, th { color: #000 !important; }
    .status-badge { border: 1px solid #999; }
}
