/* ==========================================================================
   ORA — front site
   Monochrome, taken from the logo: charcoal ink on white and a quiet
   off-white. There is no brand accent colour. Emphasis comes from ink, weight
   and space. Colour appears only where it carries meaning: green for money
   in and things that went right, red for money out and errors, amber for
   something waiting. Retune the tokens below and the site follows.
   ========================================================================== */

:root {
    /* ink, from the logo's stroke */
    --ink-900: #14171a;
    --ink-800: #202428;
    --ink-700: #2f3439;
    --ink-600: #454a50;

    /* neutral surfaces and rules */
    --paper:       #ffffff;
    --paper-alt:   #f6f6f4;
    --paper-sunk:  #efefec;
    --line:        #e4e4e0;
    --line-soft:   #efefec;
    --line-strong: #c9cac6;

    --text:       #16191c;
    --text-muted: #5d6168;
    --text-dim:   #71757c;

    /* meaning, never decoration */
    --positive:      #1d7a46;
    --positive-bg:   #ebf5ef;
    --positive-line: #c3e0cd;
    --negative:      #b42318;
    --negative-bg:   #fcefed;
    --negative-line: #f1c7c1;
    --warning:       #8a5a00;
    --warning-bg:    #fdf5e3;
    --warning-line:  #efd9a6;
    --warning-fill:  #f5b83d;

    --radius:      16px;
    --radius-sm:   10px;
    --radius-pill: 999px;
    --shadow:    0 1px 2px rgba(20, 23, 26, .04), 0 8px 24px rgba(20, 23, 26, .06);
    --shadow-lg: 0 2px 6px rgba(20, 23, 26, .05), 0 24px 56px rgba(20, 23, 26, .10);
    --focus-ring: 0 0 0 3px rgba(20, 23, 26, .12);

    --container: 1200px;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    /* Geometric with a round O, to sit beside the wordmark. Headings, prices
       and figures only; running text stays on the system face. */
    --font-display: "Outfit", var(--font);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    color: var(--text);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

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

/* The hidden attribute must win over any component's display rule, or a
   script-toggled element (the package preview, the ad visit button) shows
   its empty template before the script fills it. */
[hidden] { display: none !important; }

h1, h2, h3 {
    font-family: var(--font-display);
    line-height: 1.12; margin: 0 0 .6em; color: var(--ink-900); letter-spacing: -.025em;
}
h1 { font-size: clamp(2.2rem, 1.35rem + 3.3vw, 3.9rem); font-weight: 600; }
h2 { font-size: clamp(1.65rem, 1.2rem + 1.8vw, 2.5rem); font-weight: 600; }
h3 { font-size: 1.18rem; font-weight: 600; letter-spacing: -.015em; }
p  { margin: 0 0 1.05em; }

a { color: var(--ink-900); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: .2em; transition: color .15s ease, text-decoration-color .15s ease; }
a:hover { color: var(--ink-900); text-decoration-color: currentColor; }

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

:focus-visible { outline: 2px solid var(--ink-900); outline-offset: 3px; border-radius: 4px; }

::selection { background: rgba(20, 23, 26, .14); color: var(--ink-900); }

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 200;
    background: var(--ink-900); color: #fff; font-weight: 600; text-decoration: none;
    padding: .7rem 1.15rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 880px; }
.center-action { text-align: center; margin-top: 2.4rem; }

/* The softer half of a two-tone headline. */
.text-soft { color: var(--text-muted); }

.eyebrow {
    text-transform: uppercase; letter-spacing: .18em;
    font-size: .74rem; font-weight: 600;
    color: var(--text-muted); margin: 0 0 .9rem;
}

.lede { font-size: 1.13rem; color: var(--text-muted); max-width: 60ch; }

.rule {
    width: 40px; height: 3px; border: 0; border-radius: 2px;
    background: var(--ink-900); margin: 0 0 1.5rem;
}
.section-head .rule { margin-left: auto; margin-right: auto; }

.icon { display: block; flex: none; }

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

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .86rem 1.7rem;
    border: 1px solid transparent; border-radius: var(--radius-pill);
    font: inherit; font-size: .95rem; font-weight: 600; letter-spacing: .005em; line-height: 1.2;
    text-decoration: none; cursor: pointer; text-align: center;
    transition: background .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.btn:hover { text-decoration: none; }
.btn:disabled, .btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-sm { padding: .56rem 1.1rem; font-size: .88rem; }
.btn-block { display: flex; width: 100%; }

.btn-primary { background: var(--ink-900); color: #fff; }
.btn-primary:hover { background: var(--ink-700); color: #fff; }

.btn-ghost { background: var(--paper); color: var(--ink-900); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--paper-alt); color: var(--ink-900); border-color: var(--ink-900); }

.btn-dark { background: var(--ink-900); color: #fff; }
.btn-dark:hover { background: var(--ink-700); color: #fff; }

/* For dark bands: the inverse of primary. */
.btn-light { background: #fff; color: var(--ink-900); }
.btn-light:hover { background: var(--paper-sunk); color: var(--ink-900); }

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

.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 1rem; }

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand:hover { text-decoration: none; }
/* The wordmark is dark on transparent here; the dark footer and admin bar use
   ora-logo-light.png instead. */
.brand img { height: 30px; width: auto; }

.primary-nav ul { display: flex; align-items: center; gap: .15rem; }
.primary-nav a {
    display: block; position: relative; padding: .5rem .9rem;
    color: var(--text-muted); font-weight: 500; font-size: .95rem;
    text-decoration: none; border-radius: var(--radius-pill);
}
.primary-nav a:hover { color: var(--ink-900); background: var(--paper-alt); text-decoration: none; }
.primary-nav a.is-active { color: var(--ink-900); font-weight: 600; }
.primary-nav a.is-active::after {
    content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .12rem;
    height: 2px; border-radius: 2px; background: var(--ink-900);
}

.nav-toggle {
    display: none; width: 44px; height: 40px; padding: 0;
    background: transparent; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer;
}
.nav-toggle span {
    display: block; width: 20px; height: 2px; margin: 4px auto;
    background: var(--ink-900); border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Scoped under .primary-nav: the bare `.cart-link` loses to
   `.primary-nav a { display: block }` on specificity, which stopped it being
   a flex container at all, so gap silently did nothing and the icon sat
   flush against the label. */
.primary-nav .cart-link {
    display: inline-flex; align-items: center; gap: .5rem;
    margin-left: .4rem; padding: .5rem 1rem;
    border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
    color: var(--ink-900); font-weight: 600; background: var(--paper);
}
.primary-nav .cart-link:hover { border-color: var(--ink-900); background: var(--paper); }
.primary-nav .cart-link.is-active { border-color: var(--ink-900); }
.primary-nav .cart-link.is-active::after { display: none; }
.cart-count {
    display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px;
    border-radius: 10px; background: var(--ink-900); color: #fff;
    font-size: .72rem; font-weight: 700;
}

/* ------------------------------------------------------------------ hero */

.hero {
    position: relative; overflow: hidden;
    padding: clamp(3.4rem, 7vw, 6.4rem) 0;
    background: var(--paper-alt);
    border-bottom: 1px solid var(--line);
}
/* One large ring behind the spotlight: the O of the wordmark, at a whisper. */
.hero::before {
    content: ""; position: absolute; pointer-events: none;
    width: min(760px, 90vw); aspect-ratio: 1; right: -12%; top: 50%;
    transform: translateY(-50%);
    border-radius: 50%; border: clamp(48px, 7vw, 92px) solid rgba(20, 23, 26, .035);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr minmax(0, 430px); gap: 3.5rem; align-items: center; }
.hero-copy h1 { max-width: 14ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-note { display: flex; align-items: center; gap: .5rem; margin-top: 1.4rem; font-size: .9rem; color: var(--text-muted); }

/* hero spotlight — one real product, pulled from the catalogue */
.hero-spotlight { position: relative; }
.spotlight-kicker {
    margin: 0 0 .75rem; text-align: center;
    font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
    color: var(--text-muted);
}

.spotlight-card {
    position: relative; overflow: hidden;
    background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.spotlight-media { position: relative; display: block; overflow: hidden; background: var(--paper-sunk); }
.spotlight-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease; }
.spotlight-card:hover .spotlight-media img { transform: scale(1.03); }
.spotlight-media .badge { top: 1rem; left: 1rem; }

.spotlight-body { padding: 1.4rem 1.5rem 1.6rem; }
.spotlight-body h2 { font-size: 1.35rem; margin-bottom: .35rem; }
.spotlight-body h2 a { color: var(--ink-900); text-decoration: none; }
.spotlight-body h2 a:hover { text-decoration: underline; }
.spotlight-blurb { font-size: .92rem; color: var(--text-muted); margin-bottom: 1rem; }

.price-spotlight { margin-bottom: 1.2rem; }
.price-spotlight strong { font-size: 1.8rem; }

.spotlight-form { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; margin: 0; }
.spotlight-form .btn { flex: 1 1 auto; min-width: 160px; }
.spotlight-detail { font-size: .91rem; font-weight: 600; white-space: nowrap; }

.spotlight-stock { margin: .9rem 0 0; font-size: .87rem; font-weight: 600; color: var(--warning); }
.spotlight-stock.is-out { color: var(--negative); }

/* --------------------------------------------------------------- sections */

.section { padding: clamp(3.4rem, 6vw, 5.8rem) 0; }
.section-alt { background: var(--paper-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 730px; margin: 0 auto clamp(2.2rem, 4vw, 3.2rem); text-align: center; }
.section-head .section-sub { color: var(--text-muted); margin-bottom: 0; }

/* Left-aligned heading with a link opposite it, for product rows. */
.section-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: clamp(1.6rem, 3vw, 2.4rem); }
.section-bar h2 { margin: 0; }
.section-bar .eyebrow { margin-bottom: .5rem; }
.section-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .94rem; text-decoration: none; }
.section-link:hover { text-decoration: underline; }

.page-head {
    position: relative; overflow: hidden;
    padding: clamp(3rem, 6vw, 4.8rem) 0;
    background: var(--paper-alt);
    border-bottom: 1px solid var(--line);
}
.page-head::before {
    content: ""; position: absolute; pointer-events: none;
    width: 520px; aspect-ratio: 1; right: -160px; top: -250px;
    border-radius: 50%; border: 64px solid rgba(20, 23, 26, .03);
}
.page-head > .container { position: relative; }
.page-head-slim { padding: clamp(2.3rem, 4vw, 3.3rem) 0; }
.page-head .lede { color: var(--text-muted); }


/* --------------------------------------------------------- trust / stats */

.trust-strip { padding: clamp(1.7rem, 3vw, 2.4rem) 0; border-bottom: 1px solid var(--line); background: var(--paper); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.trust { display: grid; grid-template-columns: 44px 1fr; gap: .85rem; align-items: center; font-size: .89rem; color: var(--text-muted); line-height: 1.45; }
.trust-icon {
    width: 44px; height: 44px; display: grid; place-items: center;
    border-radius: 50%; border: 1px solid var(--line); color: var(--ink-900); background: var(--paper-alt);
}
.trust strong { display: block; color: var(--ink-900); font-size: .96rem; font-weight: 600; }

.stats-strip { padding: clamp(2.2rem, 4vw, 3rem) 0; border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat strong {
    display: block; font-family: var(--font-display);
    font-size: clamp(1.8rem, 1.2rem + 1.7vw, 2.6rem); font-weight: 600; letter-spacing: -.02em; color: var(--ink-900);
}
.stat span { color: var(--text-muted); font-size: .92rem; }

/* ----------------------------------------------------------------- cards */

.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 880px; margin: 0 auto; }

.card {
    position: relative; background: var(--paper);
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.9rem 1.65rem;
    transition: box-shadow .2s ease, border-color .2s ease;
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.card p { color: var(--text-muted); font-size: .95rem; margin-bottom: 1rem; }
.card-icon {
    width: 48px; height: 48px; display: grid; place-items: center;
    border-radius: 12px; margin-bottom: 1.2rem;
    background: var(--paper-alt); border: 1px solid var(--line); color: var(--ink-900);
}
.card-link { font-weight: 600; font-size: .92rem; }
.card-link::after { content: " →"; }

/* ----------------------------------------------------------------- split */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.6rem; align-items: center; }
.split-copy p { color: var(--text-muted); }

.check-list { margin: 1.4rem 0 1.9rem; display: grid; gap: .65rem; }
.check-list li { position: relative; padding-left: 2rem; color: var(--text-muted); }
.check-list li::before {
    content: "✓"; position: absolute; left: 0; top: .15em;
    width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%;
    background: var(--ink-900); color: #fff;
    font-size: .68rem; font-weight: 700;
}

.quote-card {
    background: var(--paper);
    border: 1px solid var(--line); border-left: 3px solid var(--ink-900);
    border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--shadow);
}
.quote-card p { font-size: 1.1rem; color: var(--ink-800); font-style: italic; }
.quote-card footer { display: flex; flex-direction: column; }
.quote-card footer strong { color: var(--ink-900); }
.quote-card footer span { font-size: .88rem; color: var(--text-dim); }

/* A dark card beside light copy: the members' way in on the home page. */
.member-panel {
    position: relative; overflow: hidden;
    background: var(--ink-900); color: rgba(255, 255, 255, .76);
    border-radius: var(--radius); padding: clamp(1.9rem, 3vw, 2.6rem);
}
.member-panel::before {
    content: ""; position: absolute; pointer-events: none;
    width: 340px; aspect-ratio: 1; right: -120px; bottom: -150px;
    border-radius: 50%; border: 44px solid rgba(255, 255, 255, .05);
}
.member-panel > * { position: relative; }
.member-panel .eyebrow { color: rgba(255, 255, 255, .6); }
.member-panel h3 { color: #fff; font-size: 1.55rem; margin-bottom: .5rem; }
.member-panel p { margin-bottom: 1.3rem; }
.member-panel ul { display: grid; gap: .55rem; margin: 0 0 1.7rem; font-size: .94rem; }
.member-panel li { display: flex; gap: .6rem; }
.member-panel li::before { content: "—"; color: rgba(255, 255, 255, .4); }
.member-panel-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.member-panel .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.member-panel .btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }

.fact-list { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.fact-list > div { display: flex; justify-content: space-between; gap: 1rem; padding: 1.05rem 1.4rem; }
.fact-list > div + div { border-top: 1px solid var(--line-soft); }
.fact-list dt { font-weight: 600; color: var(--ink-900); }
.fact-list dd { margin: 0; color: var(--text-muted); text-align: right; }

/* ----------------------------------------------------------------- steps */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; padding: 0; margin: 0; list-style: none; }
.steps li { padding: 1.8rem 1.5rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.step-num {
    display: block; font-family: var(--font-display);
    font-size: 2.2rem; font-weight: 500; line-height: 1; margin-bottom: .7rem;
    color: var(--line-strong); letter-spacing: -.02em;
}
.steps p { color: var(--text-muted); font-size: .93rem; margin: 0; }

/* -------------------------------------------------------------- services */

.service-list { display: grid; gap: 1.25rem; }
.service {
    display: grid; grid-template-columns: 72px 1fr; gap: 1.6rem;
    background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 2rem;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.service:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.service-icon {
    width: 58px; height: 58px; display: grid; place-items: center; border-radius: 14px;
    background: var(--ink-900); color: #fff;
}
.service-body h2 { font-size: 1.4rem; margin-bottom: .45rem; }
.service-body > p { color: var(--text-muted); }
.service .check-list { margin-bottom: 0; grid-template-columns: repeat(2, 1fr); }

/* -------------------------------------------------------------- cta band */

.cta-band {
    position: relative; overflow: hidden;
    padding: clamp(2.8rem, 5vw, 4rem) 0;
    background: var(--ink-900);
}
.cta-band::before {
    content: ""; position: absolute; pointer-events: none;
    width: 420px; aspect-ratio: 1; left: -140px; top: 50%; transform: translateY(-50%);
    border-radius: 50%; border: 56px solid rgba(255, 255, 255, .04);
}
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { margin-bottom: .3rem; color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .72); margin: 0; }

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

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field-row-3 { grid-template-columns: repeat(3, 1fr); }
.field { margin-bottom: 1.15rem; display: flex; flex-direction: column; }
.field label { font-weight: 600; font-size: .9rem; margin-bottom: .42rem; color: var(--ink-900); }
.req { color: var(--negative); }
.opt { font-weight: 400; color: var(--text-dim); }

.field input, .field textarea, .field select, .search-form input {
    font: inherit; font-size: .96rem; width: 100%;
    padding: .8rem .95rem;
    border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
    background: var(--paper); color: var(--text);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.field input::placeholder, .search-form input::placeholder { color: var(--text-dim); }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--ink-600); }
.field input:focus, .field textarea:focus, .field select:focus, .search-form input:focus {
    outline: none; border-color: var(--ink-900);
    box-shadow: var(--focus-ring);
}
.field textarea { resize: vertical; min-height: 145px; }

.alert { padding: 1rem 1.2rem; border-radius: var(--radius-sm); margin-bottom: 1.4rem; font-size: .94rem; }
.alert p { margin: 0 0 .4rem; font-weight: 600; }
.alert ul { list-style: disc; padding-left: 1.2rem; margin: 0; }
.alert-success { background: var(--positive-bg); border: 1px solid var(--positive-line); color: var(--positive); }
.alert-error   { background: var(--negative-bg); border: 1px solid var(--negative-line); color: var(--negative); }
.alert-notice  { background: var(--warning-bg); border: 1px solid var(--warning-line); color: var(--warning); }

.info-card { background: var(--paper-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.info-card h2 { font-size: 1.25rem; }
.info-list { display: grid; gap: 1.25rem; }
.info-list li { display: grid; grid-template-columns: 42px 1fr; gap: .9rem; align-items: start; }
.info-list strong { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-dim); font-weight: 600; }
.info-list div { color: var(--text-muted); }
.info-list a { color: var(--ink-900); }
.info-icon {
    width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
    background: var(--paper); border: 1px solid var(--line); color: var(--ink-900);
}
.contact-layout { display: grid; grid-template-columns: 1.4fr .85fr; gap: 2.6rem; align-items: start; }

/* ==========================================================================
   SHOP
   ========================================================================== */

.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.category-grid:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); }
.category-tile {
    display: flex; flex-direction: column; justify-content: space-between; gap: 2.2rem;
    padding: 1.6rem 1.5rem; min-height: 160px;
    background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--radius); color: var(--ink-900); text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.category-tile:hover { border-color: var(--ink-900); box-shadow: var(--shadow); text-decoration: none; }
.category-tile h3 { margin: 0; font-size: 1.3rem; }
.category-tile p { display: flex; align-items: center; justify-content: space-between; margin: 0; color: var(--text-muted); font-size: .88rem; font-weight: 500; }
.category-tile .icon { transition: transform .2s ease; }
.category-tile:hover .icon { transform: translateX(3px); }

.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 2.6rem; align-items: start; }

.search-form { display: flex; gap: .45rem; margin-bottom: 1.9rem; }
.search-form input { flex: 1; min-width: 0; padding: .66rem .95rem; font-size: .93rem; border-radius: var(--radius-pill); }
.search-form button {
    display: grid; place-items: center; flex: none;
    width: 42px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
    background: var(--ink-900); color: #fff; font-size: 1rem; font-weight: 600;
}
.search-form button:hover { background: var(--ink-700); }

.filter-block { margin-bottom: 1.9rem; }
.filter-block h2 {
    font-family: var(--font); font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .16em;
    color: var(--text-dim); margin-bottom: .8rem;
}
.filter-list { display: grid; gap: .12rem; }
.filter-list a {
    display: flex; justify-content: space-between; align-items: center; gap: .5rem;
    padding: .56rem .85rem; border-radius: var(--radius-sm);
    color: var(--text-muted); font-size: .94rem; font-weight: 500; text-decoration: none;
}
.filter-list a:hover { background: var(--paper-alt); color: var(--ink-900); text-decoration: none; }
.filter-list a.is-active { background: var(--ink-900); color: #fff; font-weight: 600; }
.filter-list .count { font-size: .78rem; color: var(--text-dim); }
.filter-list a.is-active .count { color: rgba(255, 255, 255, .65); }
.shipping-note { padding: 1.2rem 1.3rem; background: var(--paper-alt); border: 1px solid var(--line); border-radius: var(--radius); }
.shipping-note p { margin: 0; font-size: .87rem; color: var(--text-muted); }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem 1.25rem; }
.section .product-grid:not(.shop-layout .product-grid) { grid-template-columns: repeat(4, 1fr); }

.product-card {
    display: flex; flex-direction: column; background: var(--paper);
    border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    transition: box-shadow .2s ease, border-color .2s ease;
}
.product-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.product-card.is-out { opacity: .6; }

.product-thumb { position: relative; display: block; overflow: hidden; background: var(--paper-sunk); }
.product-thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-thumb img { transform: scale(1.04); }

.badge {
    position: absolute; top: .75rem; left: .75rem;
    padding: .28rem .65rem; border-radius: var(--radius-pill);
    font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.badge-sale { background: var(--ink-900); color: #fff; }
.badge-out  { background: var(--paper); color: var(--ink-900); border: 1px solid var(--line-strong); }

.product-card-body { display: flex; flex-direction: column; flex: 1; padding: 1.05rem 1.15rem 1.2rem; }
.product-card-body h3 { font-size: 1.04rem; margin-bottom: .25rem; }
.product-card-body h3 a { color: var(--ink-900); text-decoration: none; }
.product-card-body h3 a:hover { text-decoration: underline; }
.product-blurb { font-size: .86rem; color: var(--text-muted); margin-bottom: .8rem; }

.price { margin: 0 0 1rem; display: flex; align-items: baseline; gap: .55rem; flex-wrap: wrap; }
.price strong { font-family: var(--font-display); font-size: 1.28rem; font-weight: 600; color: var(--ink-900); letter-spacing: -.01em; }
.price s { color: var(--text-dim); font-size: .9rem; }
.price-lg strong { font-size: 2.1rem; }
.save-tag {
    font-size: .76rem; font-weight: 600; color: var(--positive);
    background: var(--positive-bg); border: 1px solid var(--positive-line);
    padding: .16rem .6rem; border-radius: var(--radius-pill);
}

.add-form { margin-top: auto; }
.add-form .btn { width: 100%; }

.empty-state { text-align: center; padding: clamp(2.6rem, 6vw, 4.5rem) 1rem; }
.empty-icon {
    width: 64px; height: 64px; margin: 0 auto 1rem; display: grid; place-items: center;
    border-radius: 50%; background: var(--paper-alt); border: 1px solid var(--line);
    color: var(--ink-900); font-size: 1.6rem;
}
.empty-state p { color: var(--text-muted); }

.pager-wrap { margin-top: 2.6rem; display: flex; justify-content: center; }
.pager-wrap ul { display: flex; gap: .3rem; flex-wrap: wrap; }
.pager-wrap a, .pager-wrap li > span {
    display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 .8rem;
    border: 1px solid var(--line); border-radius: var(--radius-pill);
    color: var(--text-muted); font-size: .91rem; text-decoration: none;
}
.pager-wrap a:hover { background: var(--paper-alt); color: var(--ink-900); border-color: var(--ink-900); text-decoration: none; }
.pager-wrap .active > span, .pager-wrap li.active a { background: var(--ink-900); border-color: var(--ink-900); color: #fff; font-weight: 600; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: .45rem; font-size: .87rem; color: var(--text-dim); margin-bottom: 1.9rem; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink-900); text-decoration: underline; }

.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 3.2rem; align-items: start; }
.product-media {
    position: relative; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; background: var(--paper-sunk);
}
.product-media img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.stock-line { font-weight: 600; font-size: .93rem; color: var(--positive); }
.stock-line.is-low { color: var(--warning); }
.stock-line.is-out { color: var(--negative); }

.buy-form { display: flex; align-items: flex-end; gap: 1rem; margin: 1.6rem 0; flex-wrap: wrap; }
.qty-field { display: flex; flex-direction: column; }
.qty-field label { font-size: .86rem; font-weight: 600; margin-bottom: .38rem; color: var(--ink-900); }
.qty-field input {
    font: inherit; font-size: .96rem; width: 96px; padding: .72rem .8rem;
    border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
    background: var(--paper); color: var(--text);
}
.qty-field input:focus { outline: none; border-color: var(--ink-900); box-shadow: var(--focus-ring); }
.qty-input {
    font: inherit; width: 78px; padding: .52rem .62rem;
    border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
    background: var(--paper); color: var(--text);
}
.qty-input:focus { outline: none; border-color: var(--ink-900); box-shadow: var(--focus-ring); }

.meta-list { margin: 1.6rem 0 0; border-top: 1px solid var(--line); padding-top: 1.15rem; display: grid; gap: .5rem; }
.meta-list > div { display: flex; justify-content: space-between; font-size: .91rem; }
.meta-list dt { color: var(--text-dim); }
.meta-list dd { margin: 0; font-weight: 500; color: var(--text-muted); }

.product-description { margin-top: 3.2rem; padding-top: 2.2rem; border-top: 1px solid var(--line); max-width: 78ch; }
.product-description p { color: var(--text-muted); }

/* cart */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 2.6rem; align-items: start; }

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
    text-align: left; padding: 0 .7rem .85rem; border-bottom: 1px solid var(--line);
    font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--text-dim);
}
.cart-table td { padding: 1.05rem .7rem; border-bottom: 1px solid var(--line-soft); vertical-align: middle; color: var(--text-muted); }
.cart-product { display: flex; align-items: center; gap: .95rem; }
.cart-thumb img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.cart-product a { color: var(--ink-900); font-weight: 600; text-decoration: none; }
.cart-product a:hover { text-decoration: underline; }
.stock-hint { display: block; font-size: .78rem; color: var(--warning); }
.cart-remove { text-align: right; }

.link-btn { background: none; border: none; cursor: pointer; font: inherit; color: var(--text-dim); font-size: 1.35rem; line-height: 1; padding: .2rem .4rem; }
.link-btn:hover { color: var(--negative); }
.link-btn.danger { font-size: .88rem; text-decoration: underline; }
.hidden-form { display: none; }
.clear-form { margin-top: 1.1rem; }
.cart-actions { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }

.cart-summary, .checkout-summary {
    background: var(--paper-alt); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 1.75rem;
    position: sticky; top: 100px;
}
.cart-summary h2, .checkout-summary h2 { font-size: 1.2rem; }
.summary-list { margin: 0 0 1.3rem; display: grid; gap: .62rem; }
.summary-list > div { display: flex; justify-content: space-between; font-size: .94rem; }
.summary-list dt { color: var(--text-muted); }
.summary-list dd { margin: 0; font-weight: 600; color: var(--ink-900); }
.summary-total { border-top: 1px solid var(--line); padding-top: .8rem; margin-top: .25rem; }
.summary-total dt { color: var(--ink-900) !important; font-weight: 600; font-size: 1.05rem; }
.summary-total dd { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: var(--ink-900); }
.shipping-hint { font-size: .85rem; color: var(--text-muted); margin-bottom: 1.1rem; }

.summary-items { display: grid; gap: .72rem; margin-bottom: 1.3rem; padding-bottom: 1.3rem; border-bottom: 1px solid var(--line); }
.summary-items li { display: grid; grid-template-columns: 32px 1fr auto; gap: .5rem; font-size: .9rem; color: var(--text-muted); }
.sum-qty { color: var(--ink-900); font-weight: 600; }
.sum-price { font-weight: 600; color: var(--ink-900); }
.summary-back { margin: 1.1rem 0 0; font-size: .9rem; }

/* checkout */
.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 2.6rem; align-items: start; }
.checkout-form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; margin: 0 0 1.5rem; background: var(--paper); }
.checkout-form legend { padding: 0 .55rem; font-weight: 600; color: var(--ink-900); font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; }

.radio-card {
    display: grid; grid-template-columns: 20px 1fr; gap: .85rem; align-items: start;
    padding: 1.05rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}
.radio-card:hover { border-color: var(--ink-600); }
.radio-card input { accent-color: var(--ink-900); }
.radio-card:has(input:checked) { border-color: var(--ink-900); background: var(--paper-alt); box-shadow: inset 0 0 0 1px var(--ink-900); }
.radio-card strong { display: block; color: var(--ink-900); }
.radio-card span { font-size: .9rem; color: var(--text-muted); }
.payment-note { font-size: .84rem; color: var(--text-dim); margin: .85rem 0 0; }

/* order confirmation */
.success-head { text-align: center; margin-bottom: 2.6rem; }
.success-mark {
    width: 72px; height: 72px; margin: 0 auto 1.3rem; display: grid; place-items: center;
    border-radius: 50%; font-size: 2rem; font-weight: 600; color: #fff;
    background: var(--ink-900); box-shadow: 0 0 0 10px var(--paper-alt);
}
.success-head .lede { margin: 0 auto; }

.receipt { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.receipt-head { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding: 1.5rem 1.7rem; background: var(--paper-alt); border-bottom: 1px solid var(--line); }
.receipt-label { display: block; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--text-dim); }
.receipt-head strong { color: var(--ink-900); }

.receipt-table { width: 100%; border-collapse: collapse; }
.receipt-table th, .receipt-table td { padding: .9rem 1.7rem; text-align: left; font-size: .93rem; color: var(--text-muted); }
.receipt-table thead th { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--text-dim); border-bottom: 1px solid var(--line); }
.receipt-table tbody td { border-bottom: 1px solid var(--line-soft); }
.receipt-table tfoot th { text-align: right; color: var(--text-dim); font-weight: 500; text-transform: none; letter-spacing: 0; font-size: .93rem; }
.receipt-table tfoot td { font-weight: 600; color: var(--ink-900); }
.receipt-total th { color: var(--ink-900) !important; font-size: 1.02rem; border-top: 1px solid var(--line); }
.receipt-total td { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--ink-900); border-top: 1px solid var(--line); }

.receipt-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding: 1.7rem; background: var(--paper-alt); border-top: 1px solid var(--line); }
.receipt-foot h2 { font-family: var(--font); font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .13em; color: var(--text-dim); margin-bottom: .55rem; }
.receipt-foot p { margin: 0; font-size: .93rem; color: var(--text-muted); }

/* Status pills. Only what needs a decision or went right/wrong gets colour;
   the in-between states stay neutral, told apart by fill. */
.status { display: inline-block; padding: .2rem .7rem; border-radius: var(--radius-pill); font-size: .79rem; font-weight: 600; white-space: nowrap; }
.status-pending   { background: var(--warning-bg); color: var(--warning); border: 1px solid var(--warning-line); }
.status-confirmed { background: var(--paper-sunk); color: var(--ink-800); border: 1px solid var(--line); }
.status-shipped   { background: var(--paper); color: var(--ink-900); border: 1px solid var(--ink-900); }
.status-delivered { background: var(--positive-bg); color: var(--positive); border: 1px solid var(--positive-line); }
.status-cancelled { background: var(--negative-bg); color: var(--negative); border: 1px solid var(--negative-line); }
/* package statuses reuse the same ramp: running reads like delivered,
   finished reads like a closed record rather than a live one. */
.status-active    { background: var(--positive-bg); color: var(--positive); border: 1px solid var(--positive-line); }
.status-completed { background: var(--paper-sunk); color: var(--text-muted); border: 1px solid var(--line); }

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

.site-footer {
    background: var(--ink-900);
    color: rgba(255, 255, 255, .66);
    padding: clamp(2.6rem, 4vw, 3.8rem) 0 0;
}
.site-footer a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.footer-top {
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 2fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    padding-bottom: clamp(1.8rem, 3vw, 2.6rem);
}

.footer-brand .brand-footer { display: inline-block; }
.footer-brand .brand-footer img { height: 32px; width: auto; }
.footer-brand p { font-size: .9rem; margin: 1.1rem 0 0; max-width: 40ch; line-height: 1.6; }

.footer-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.6rem; }
.site-footer h3 {
    font-family: var(--font); color: rgba(255, 255, 255, .45); font-size: .72rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .16em; margin-bottom: .9rem;
}
.footer-col ul { display: grid; gap: .5rem; font-size: .89rem; }
.footer-contact li { line-height: 1.55; }
.footer-contact-col { min-width: 0; }
.footer-contact a { overflow-wrap: anywhere; }

.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: .6rem;
    padding: 1.1rem 0 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: .82rem; color: rgba(255, 255, 255, .45);
}
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; gap: .5rem; align-items: center; }

/* Compact on phones: the footer is the last thing anyone wants to scroll
   through, so it tightens up rather than becoming one long stack. */
@media (max-width: 860px) {
    .footer-top { grid-template-columns: 1fr; gap: 1.8rem; }
}

@media (max-width: 620px) {
    .site-footer { padding-top: 1.9rem; }
    .footer-top { gap: 1.4rem; padding-bottom: 1.2rem; }

    .footer-brand .brand-footer img { height: 26px; }
    .footer-brand p { font-size: .83rem; margin: .7rem 0 0; }

    /* Two columns instead of four stacked blocks — half the scrolling. */
    .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem .9rem; }
    .site-footer h3 { font-size: .66rem; letter-spacing: .13em; margin-bottom: .55rem; }
    .footer-col ul { gap: .38rem; font-size: .84rem; }

    .footer-bottom { padding: .85rem 0 1.1rem; font-size: .76rem; }
}

@media (max-width: 380px) {
    .footer-links { grid-template-columns: 1fr 1fr; gap: 1rem .7rem; }
    .footer-bottom { justify-content: center; text-align: center; }
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 1100px) {
    .section .product-grid:not(.shop-layout .product-grid) { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
    .hero-inner, .split, .contact-layout, .cart-layout, .checkout-layout, .product-detail, .shop-layout {
        grid-template-columns: 1fr; gap: 2.4rem;
    }
    .hero::before { right: -40%; top: auto; bottom: -30%; transform: none; }
    .hero-spotlight { max-width: 460px; margin: 0 auto; width: 100%; }
    .cart-summary, .checkout-summary { position: static; }
    .card-grid, .steps, .category-grid, .trust-grid, .product-grid,
    .section .product-grid:not(.shop-layout .product-grid) { grid-template-columns: repeat(2, 1fr); }
    .category-grid:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); }
    .receipt-head { grid-template-columns: 1fr; gap: .8rem; }
}

@media (max-width: 768px) {
    body { font-size: 16px; }

    .nav-toggle { display: block; }
    .primary-nav {
        position: absolute; left: 0; right: 0; top: 100%;
        background: var(--paper); border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow); display: none; padding: .6rem 24px 1.2rem;
    }
    .primary-nav.is-open { display: block; }
    .primary-nav ul { flex-direction: column; align-items: stretch; gap: .15rem; }
    .primary-nav a { padding: .78rem .8rem; border-radius: var(--radius-sm); }
    .primary-nav a.is-active { background: var(--paper-alt); }
    .primary-nav a.is-active::after { display: none; }
    .nav-cta { margin-top: .6rem; }
    .primary-nav .cart-link { justify-content: center; margin-left: 0; border-radius: var(--radius-pill); }

    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.8rem; }
    .service { grid-template-columns: 1fr; gap: 1.15rem; padding: 1.6rem; }
    .service .check-list { grid-template-columns: 1fr; }
    .field-row, .field-row-3 { grid-template-columns: 1fr; gap: 0; }
    .cta-inner { flex-direction: column; align-items: flex-start; }
    .receipt-foot { grid-template-columns: 1fr; }
    .category-tile { min-height: 0; gap: 1.2rem; }

    /* stacked table rows with inline labels */
    .cart-table thead, .receipt-table thead { display: none; }
    .cart-table tr, .receipt-table tbody tr { display: block; padding: 1rem 0; border-bottom: 1px solid var(--line); }
    .cart-table td, .receipt-table tbody td { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border: none; padding: .32rem 0; }
    .cart-table td::before, .receipt-table tbody td::before {
        content: attr(data-label); font-size: .72rem; font-weight: 600; text-transform: uppercase;
        letter-spacing: .1em; color: var(--text-dim);
    }
    .cart-product { display: flex; justify-content: flex-start; }
    .cart-product::before { display: none; }
    .cart-remove { justify-content: flex-end; }
    .receipt-table th, .receipt-table td { padding-left: 1.2rem; padding-right: 1.2rem; }
}

@media (max-width: 560px) {
    .card-grid, .card-grid-2, .steps, .trust-grid { grid-template-columns: 1fr; }
    .category-grid, .category-grid:has(> :nth-child(3):last-child) { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
    .category-tile { padding: 1.1rem 1rem; }
    .category-tile h3 { font-size: 1.08rem; }
    /* Products stay two across: a one-column shop is a very long scroll. */
    .product-grid, .section .product-grid:not(.shop-layout .product-grid) { grid-template-columns: repeat(2, 1fr); gap: 1rem .75rem; }
    .product-card-body { padding: .8rem .8rem .95rem; }
    .product-card-body h3 { font-size: .94rem; }
    .product-blurb { display: none; }
    .price strong { font-size: 1.08rem; }
    .brand img { height: 26px; }
    .trust-grid { gap: 1rem; }
}

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

/* ==========================================================================
   MEMBER ACCOUNTS
   ========================================================================== */

.auth-wrap { display: grid; grid-template-columns: minmax(0, 460px) 1fr; gap: 3rem; align-items: start; }
.auth-wrap-single { grid-template-columns: minmax(0, 460px); justify-content: center; }

.auth-card {
    background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 2.4rem; box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 1.85rem; }
.auth-card p { color: var(--text-muted); }
.auth-links { margin: 1rem 0 0; font-size: .91rem; }
.auth-alt { margin: 1.3rem 0 0; padding-top: 1.3rem; border-top: 1px solid var(--line-soft); font-size: .93rem; }

.auth-aside { padding-top: 1.5rem; }
.auth-aside h2 { font-size: 1.25rem; }
.auth-aside .check-list { margin-bottom: 1.4rem; }
.auth-note { font-size: .9rem; color: var(--text-dim); }

/* account area */
.account-layout { display: grid; grid-template-columns: 230px 1fr; gap: 2.6rem; align-items: start; }

.account-nav {
    position: sticky; top: 100px; align-self: start;
    max-height: calc(100vh - 120px); overflow-y: auto;
}
.account-nav ul { display: grid; gap: .15rem; }
.account-nav a {
    display: block; padding: .64rem .95rem; border-radius: var(--radius-sm);
    color: var(--text-muted); font-weight: 500; font-size: .94rem; text-decoration: none;
}
.account-nav a:hover { background: var(--paper-alt); color: var(--ink-900); text-decoration: none; }
.account-nav a.is-active { background: var(--ink-900); color: #fff; font-weight: 600; }

.account-main { min-width: 0; }

.account-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.8rem; }
/* For the wallet, where the tiles are one per income type and there are more
   than three of them. */
.account-metrics-auto { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.account-metrics-auto .account-metric strong { font-size: 1.4rem; }
.account-metric { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.35rem; }
.account-metric span { display: block; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--text-dim); }
.account-metric strong { display: block; font-family: var(--font-display); font-size: 1.8rem; font-weight: 600; color: var(--ink-900); margin-top: .3rem; letter-spacing: -.02em; }
.account-metric strong a { color: inherit; text-decoration: none; }
.account-metric strong a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.account-metric .metric-plain { font-family: var(--font); font-size: .97rem; font-weight: 600; word-break: break-word; letter-spacing: 0; }

.panel-block { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem 1.8rem; margin-bottom: 1.4rem; }
.panel-block-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.panel-block-head h2 { font-size: 1.18rem; margin: 0; }
.panel-block-head a { font-size: .89rem; }
.panel-block .subhead { font-size: 1.02rem; margin: 1.8rem 0 .3rem; }

.account-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.account-table th {
    text-align: left; padding: 0 .7rem .8rem; border-bottom: 1px solid var(--line);
    font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--text-dim);
}
.account-table td { padding: .9rem .7rem; border-bottom: 1px solid var(--line-soft); color: var(--text-muted); vertical-align: middle; }
.account-table tbody tr:last-child td { border-bottom: none; }
.account-table strong { color: var(--ink-900); }
.row-action { text-align: right; white-space: nowrap; }

.back-link { font-size: .92rem; margin-bottom: 1.2rem; }
.account-main .empty-state { padding: 2.4rem 1rem; }
.account-main .empty-state h2, .account-main .empty-state h3 { margin-bottom: .4rem; }

.field input:disabled { background: var(--paper-alt); color: var(--text-dim); cursor: not-allowed; }

/* checkout sign-in prompt */
.signin-prompt {
    display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap;
    padding: 1.05rem 1.4rem; margin-bottom: 1.6rem;
    background: var(--paper-alt); border: 1px solid var(--line); border-radius: var(--radius);
    font-size: .94rem; color: var(--text-muted);
}
.signin-prompt strong { color: var(--ink-900); }
.signed-in-note {
    padding: .9rem 1.3rem; margin-bottom: 1.6rem;
    background: var(--paper-alt); border: 1px solid var(--line); border-left: 3px solid var(--ink-900);
    border-radius: var(--radius-sm); font-size: .93rem; color: var(--text-muted);
}

/* header account link */
.nav-account a { white-space: nowrap; }

@media (max-width: 992px) {
    .auth-wrap, .account-layout { grid-template-columns: 1fr; gap: 2rem; }
    .auth-wrap-single { justify-content: stretch; }
    /* Grid items default to min-width:auto, so the track grows to the widest
       non-wrapping child. Without min-width:0 the tab row cannot scroll and
       widens the whole page instead. */
    .account-layout > * { min-width: 0; }
    .account-nav { position: static; min-width: 0; }
    .account-nav ul {
        display: flex; gap: .3rem; padding-bottom: .4rem;
        overflow-x: auto; -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    .account-nav a { white-space: nowrap; border-radius: var(--radius-pill); border: 1px solid var(--line); }
    .account-nav a.is-active { border-color: var(--ink-900); }
    .account-metrics { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .account-table thead { display: none; }
    .account-table tr { display: block; padding: .9rem 0; border-bottom: 1px solid var(--line); }
    .account-table td { display: flex; justify-content: space-between; gap: 1rem; border: none; padding: .3rem 0; }
    .account-table td::before {
        content: attr(data-label); font-size: .72rem; font-weight: 600; text-transform: uppercase;
        letter-spacing: .1em; color: var(--text-dim);
    }
    .row-action { justify-content: flex-end; }
    .row-action::before { display: none; }
    .panel-block { padding: 1.35rem 1.2rem; }
}

/* ---------------------------------------------- member id / sponsorship */

.welcome-card {
    background: var(--paper-alt);
    border: 1px solid var(--ink-900); border-radius: var(--radius);
    padding: 1.7rem 1.8rem; margin-bottom: 1.4rem; text-align: center;
}
.welcome-card h2 { font-size: 1.3rem; margin-bottom: .35rem; }
.welcome-card p { color: var(--text-muted); margin: 0 0 .9rem; font-size: .94rem; }
.member-id-big {
    margin: 0 !important; font-family: var(--font-display); font-size: clamp(1.7rem, 1.1rem + 1.8vw, 2.3rem);
    font-weight: 600; letter-spacing: .1em; color: var(--ink-900) !important;
    font-variant-numeric: tabular-nums;
}

.id-card {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem;
    background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 1.4rem 1.5rem; margin-bottom: 1.2rem;
}
.id-label { display: block; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--text-dim); }
.id-card strong { display: block; margin-top: .28rem; color: var(--ink-900); font-size: 1.02rem; }
.id-card .member-id { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.id-sub { font-weight: 400; color: var(--text-dim); font-size: .86rem; }

.referral-card {
    background: var(--paper-alt);
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.4rem 1.5rem; margin-bottom: 1.8rem;
}
.referral-head { display: grid; grid-template-columns: 44px 1fr; gap: .9rem; align-items: start; margin-bottom: 1.1rem; }
.referral-icon {
    width: 44px; height: 44px; display: grid; place-items: center;
    border-radius: 50%; background: var(--ink-900); color: #fff;
}
.referral-head h2 { font-size: 1.1rem; margin: 0 0 .2rem; }
.referral-head p { margin: 0; font-size: .89rem; color: var(--text-muted); }

.referral-copy { display: flex; gap: .5rem; }
.referral-copy input {
    flex: 1; min-width: 0;
    font: inherit; font-size: .88rem;
    padding: .7rem 1rem;
    border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
    background: var(--paper); color: var(--text);
    text-overflow: ellipsis;
}
.referral-copy input:focus { outline: none; border-color: var(--ink-900); box-shadow: var(--focus-ring); }
.referral-copy .btn { flex: 0 0 auto; min-width: 92px; }
.referral-copy .btn.is-copied { background: var(--positive); border-color: var(--positive); color: #fff; }

.referral-share {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    flex-wrap: wrap; margin-top: .95rem;
    font-size: .87rem; color: var(--text-muted);
}
.referral-id strong { color: var(--ink-900); letter-spacing: .06em; }
.referral-wa { font-weight: 600; }

@media (max-width: 560px) {
    .referral-copy { flex-direction: column; }
    .referral-copy .btn { width: 100%; }
}

.field-sponsor {
    padding: 1.1rem 1.2rem; margin-bottom: 1.4rem;
    background: var(--paper-alt); border: 1px solid var(--line); border-radius: var(--radius);
}
.field-sponsor input { text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }

.auth-hint { font-size: .86rem; color: var(--text-dim); margin: .8rem 0 0; }

.aside-second { margin-top: 1.8rem; }

@media (max-width: 700px) {
    .id-card { grid-template-columns: 1fr; gap: .9rem; }
}

/* sponsor lookup feedback on the registration form */
.sponsor-result {
    margin: .55rem 0 0; min-height: 1.35em;
    font-size: .89rem; font-weight: 600;
}
.sponsor-result.is-checking { color: var(--text-dim); font-weight: 400; }
.sponsor-result.is-ok       { color: var(--positive); }
.sponsor-result.is-ok::before  { content: "✓ "; }
.sponsor-result.is-bad      { color: var(--negative); }
.sponsor-result.is-bad::before { content: "✕ "; }

/* ------------------------------------------------- show/hide password */

.password-field { position: relative; display: block; }
/* Room for the button so long values never run underneath it. */
.password-field input { padding-right: 3rem !important; }

.password-toggle {
    position: absolute; top: 0; right: 0; bottom: 0;
    width: 2.9rem; display: grid; place-items: center;
    padding: 0; border: 0; background: none; cursor: pointer;
    color: var(--text-dim); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    transition: color .15s ease, background .15s ease;
}
.password-toggle:hover { color: var(--ink-900); background: rgba(20, 23, 26, .04); }
.password-toggle:focus-visible { outline: 2px solid var(--ink-900); outline-offset: -2px; }
.password-toggle[aria-pressed="true"] { color: var(--ink-900); }
.password-toggle svg { display: block; }

/* ==========================================================================
   TOASTS
   Fixed overlay rather than an in-flow banner, so a notification never
   reflows the page under the reader.
   ========================================================================== */

.toast-stack {
    position: fixed; top: 90px; right: 20px; z-index: 300;
    display: grid; gap: .7rem;
    width: min(380px, calc(100vw - 40px));
    pointer-events: none;
    /* Each toast is only as tall as its message. Without this a stack that
       ends up anchored top and bottom at once stretches its rows, and a
       one-line notice fills the screen. */
    align-content: start;
    align-items: start;
}

.toast {
    display: grid; grid-template-columns: 28px 1fr 24px; gap: .75rem; align-items: start;
    padding: .95rem 1rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    pointer-events: auto;
    animation: toast-in .28s cubic-bezier(.2, .8, .3, 1) both;
}
.toast p { margin: 0; font-size: .93rem; line-height: 1.5; color: var(--text); }

.toast-icon {
    width: 26px; height: 26px; display: grid; place-items: center;
    border-radius: 50%; font-size: .8rem; font-weight: 700; color: #fff; background: var(--ink-900);
}
.toast-close {
    width: 24px; height: 24px; padding: 0; display: grid; place-items: center;
    background: none; border: 0; cursor: pointer;
    font-size: 1.3rem; line-height: 1; color: var(--text-dim); border-radius: 5px;
}
.toast-close:hover { color: var(--ink-900); background: var(--paper-alt); }

.toast-success .toast-icon { background: var(--positive); }
.toast-error .toast-icon   { background: var(--negative); }
.toast-notice .toast-icon  { background: var(--warning-fill); color: var(--ink-900); }

.toast.is-leaving {
    opacity: 0; transform: translateX(12px);
    transition: opacity .25s ease, transform .25s ease;
}

@keyframes toast-in {
    from { opacity: 0; transform: translateX(22px); }
    to   { opacity: 1; transform: none; }
}

@media (max-width: 560px) {
    .toast-stack { top: auto; bottom: 16px; left: 16px; right: 16px; width: auto; }
    @keyframes toast-in {
        from { opacity: 0; transform: translateY(16px); }
        to   { opacity: 1; transform: none; }
    }
}

@media (prefers-reduced-motion: reduce) {
    .toast { animation: none; }
    .toast.is-leaving { transition: none; }
}

/* ------------------------------------------------- overflow containment */

/* Grid and flex children default to min-width:auto, which lets one wide,
   non-wrapping child stretch the page. These layouts all have a scrollable
   or wrappable child that should absorb the width instead. */
.account-layout > *,
.shop-layout > *,
.cart-layout > *,
.checkout-layout > *,
.product-detail > *,
.split > *,
.hero-inner > * { min-width: 0; }

/* Long unbroken strings (referral URLs, order numbers, emails) must wrap
   rather than push the layout wider than the screen. */
.referral-copy input,
.account-metric .metric-plain,
.detail-list dd,
.info-list div { overflow-wrap: anywhere; }

/* No blanket overflow guard on html/body. Both variants break something:
   `hidden` makes the element a scroll container, so position:sticky sticks to
   it instead of the viewport; `clip` propagates to the other axis and stops
   the page scrolling vertically at all. Sideways overflow is prevented at
   source instead, by the min-width:0 rules above. */

/* ------------------------------------------------- directs / downline */

.mono { font-variant-numeric: tabular-nums; letter-spacing: .04em; }

.level-pill {
    display: inline-block; min-width: 34px; text-align: center;
    padding: .16rem .55rem; border-radius: var(--radius-pill);
    font-size: .8rem; font-weight: 600;
    background: var(--paper-sunk); color: var(--ink-900);
    border: 1px solid var(--line);
}

.muted-line { display: block; color: var(--text-dim); font-size: .81rem; line-height: 1.45; }

.level-tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.level-tabs a {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .42rem .85rem; border-radius: var(--radius-pill);
    border: 1px solid var(--line); background: var(--paper);
    color: var(--text-muted); font-size: .86rem; font-weight: 500; text-decoration: none;
}
.level-tabs a:hover { border-color: var(--ink-900); color: var(--ink-900); text-decoration: none; }
.level-tabs a.is-active { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
.level-tabs a span {
    font-size: .74rem; font-weight: 600; padding: 0 .38rem;
    border-radius: var(--radius-pill); background: rgba(20, 23, 26, .08);
}
.level-tabs a.is-active span { background: rgba(255, 255, 255, .18); }

.table-note { margin: 1rem 0 0; font-size: .86rem; color: var(--text-dim); }

@media (max-width: 768px) {
    /* The indent is a desktop affordance; stacked rows read better without it. */
    .account-table .mono[style] { padding-left: 0 !important; }
}

/* ------------------------------------------------------------- packages */

.package-grid {
    display: grid; gap: 1rem; margin-top: .4rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.package-card {
    display: flex; flex-direction: column; gap: 1rem;
    padding: 1.4rem 1.45rem;
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
}
.package-card h3 { font-size: 1.08rem; margin: 0; }
.package-amount { font-family: var(--font-display); font-size: 1.85rem; font-weight: 600; letter-spacing: -.02em; color: var(--ink-900); margin: .15rem 0 .3rem; }
.package-tagline { margin: 0; font-size: .87rem; color: var(--text-muted); }

.package-points { display: grid; gap: .45rem; margin: 0; padding: 0; list-style: none; font-size: .89rem; color: var(--text-muted); }
.package-points li { padding-left: 1.3rem; position: relative; }
.package-points li::before { content: "✓"; position: absolute; left: 0; color: var(--ink-900); font-weight: 700; }
/* A benefit this package does not include: struck through rather than hidden,
   so the difference between packages is visible on one card. */
.package-point-off { color: var(--text-dim); text-decoration: line-through; }
.package-point-off::before { content: "—" !important; color: var(--text-dim) !important; }

.package-total {
    display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
    margin: auto 0 0; padding-top: .9rem; border-top: 1px solid var(--line-soft);
    font-size: .76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--text-dim);
}
.package-total strong { font-size: 1.05rem; letter-spacing: normal; text-transform: none; color: var(--ink-900); }

/* --------------------------------------------------------------- wallet */

.wallet-balance {
    position: relative; overflow: hidden;
    display: flex; align-items: baseline; justify-content: space-between; gap: .4rem 1rem; flex-wrap: wrap;
    padding: 1.5rem 1.6rem; margin-bottom: 1.2rem;
    background: var(--ink-900); border-radius: var(--radius); color: rgba(255, 255, 255, .72);
}
.wallet-balance::before {
    content: ""; position: absolute; pointer-events: none;
    width: 220px; aspect-ratio: 1; right: -70px; top: -110px;
    border-radius: 50%; border: 32px solid rgba(255, 255, 255, .05);
}
.wallet-balance > * { position: relative; }
.wallet-balance span { font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; color: rgba(255, 255, 255, .6); }
.wallet-balance strong { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 600; letter-spacing: -.02em; color: #fff; }
.wallet-balance a { color: #fff; }

.wallet-tag {
    display: inline-block; padding: .18rem .62rem; border-radius: var(--radius-pill);
    font-size: .77rem; font-weight: 500; white-space: nowrap;
    background: var(--paper-sunk); color: var(--ink-800); border: 1px solid var(--line);
}
/* Incomes are told apart by their label; only money leaving is marked. */
.wallet-tag-withdrawal { background: var(--negative-bg); color: var(--negative); border-color: var(--negative-line); }

.wallet-amount { font-weight: 600; color: var(--ink-900); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wallet-amount.is-debit { color: var(--negative); }

.receipt-cashback { padding: 1.1rem 1.7rem; border-top: 1px solid var(--line); background: var(--paper-alt); }
.receipt-cashback p { display: flex; justify-content: space-between; gap: 1rem; margin: 0 0 .3rem; font-size: .93rem; color: var(--text-muted); }
.receipt-cashback strong { color: var(--positive); font-weight: 700; }
.receipt-cashback strong.is-debit { color: var(--negative); }
.receipt-cashback-note { display: block !important; font-size: .87rem; color: var(--text-dim); margin: 0; }

/* ------------------------------------------------------------- car fund */

.car-fund-figures { display: flex; align-items: baseline; gap: .5rem; margin: 0 0 .7rem; }
.car-fund-figures strong { font-family: var(--font-display); font-size: 1.8rem; font-weight: 600; letter-spacing: -.02em; color: var(--ink-900); }
.car-fund-figures span { color: var(--text-dim); font-size: .95rem; }

.progress { height: 8px; border-radius: var(--radius-pill); background: var(--paper-sunk); overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: inherit; background: var(--ink-900); }

/* ------------------------------------------------- admin viewing as member */
/* Fixed to the bottom of every page while an admin has borrowed a member's
   session. Loud on purpose: the one thing worse than not being able to see a
   member's account is forgetting that you are inside one. The one amber fill
   in a monochrome site is what makes it loud. */

.impersonation-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 300;
    background: var(--ink-900); color: #fff;
    border-top: 3px solid var(--warning-fill);
    box-shadow: 0 -8px 24px rgba(20, 23, 26, .28);
}
.impersonation-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; padding-top: .7rem; padding-bottom: .7rem;
}
.impersonation-inner p { margin: 0; font-size: .92rem; display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.impersonation-tag {
    font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
    color: var(--ink-900); background: var(--warning-fill); padding: .18rem .55rem; border-radius: var(--radius-pill);
}
.impersonation-code { color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; }
.impersonation-note { color: rgba(255, 255, 255, .55); font-size: .85rem; }
.impersonation-bar form { flex: none; }
.impersonation-bar .btn-primary { background: #fff; color: var(--ink-900); }
.impersonation-bar .btn-primary:hover { background: var(--paper-sunk); }

/* Keeps the bar clear of the last of the page. */
body:has(.impersonation-bar) .site-footer { padding-bottom: 4.5rem; }

@media (max-width: 640px) {
    .impersonation-inner { flex-direction: column; align-items: stretch; gap: .6rem; text-align: center; }
    .impersonation-inner p { justify-content: center; }
    .impersonation-note { display: none; }
}

/* ---------------------------------------------------------------- ad watch
   The member's daily ad player. One ad on stage at a time; the rest are in
   the DOM but hidden, so moving to the next ad costs no request. */
.ad-watch { text-align: center; }
.ad-watch.is-complete { background: var(--paper-alt); }

.ad-progress { display: flex; justify-content: center; gap: .5rem; list-style: none; margin: 0 0 1.4rem; padding: 0; }
.ad-progress li { width: 34px; height: 5px; border-radius: 3px; background: var(--line); transition: background .25s ease; }
.ad-progress li.is-done { background: var(--ink-900); }

.ad-stage { margin-bottom: 1.1rem; }
.ad-slide { margin: 0; }
.ad-slide img {
    display: block; width: 100%; max-width: 720px; margin: 0 auto;
    border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--paper-sunk);
}
.ad-slide figcaption { margin-top: .7rem; font-size: .93rem; color: var(--text-muted); }

.ad-timer { min-height: 1.4rem; margin: 0 0 1rem; font-size: .95rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }

.ad-actions { display: flex; justify-content: center; gap: .6rem; flex-wrap: wrap; }
.ad-actions .btn[disabled] { opacity: .45; cursor: not-allowed; }

.ad-done { padding: .5rem 0 .2rem; }
.ad-done-mark {
    width: 54px; height: 54px; margin: 0 auto .8rem; border-radius: 50%;
    display: grid; place-items: center; font-size: 1.5rem; font-weight: 600;
    background: var(--ink-900); color: #fff;
}
.ad-done h3 { margin: 0 0 .35rem; font-size: 1.18rem; }
.ad-done p { margin: 0 0 1rem; }

.plain-list { margin: 0; padding-left: 1.1rem; color: var(--text-muted); }
.plain-list li { margin-bottom: .45rem; font-size: .95rem; }

@media (max-width: 560px) {
    .ad-progress li { width: 22px; }
}

/* The dashboard nudge towards the day's ads: text and button side by side,
   stacking on a phone. */
.ad-nudge { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.ad-nudge p { margin: 0; }

/* ------------------------------------------------------- package amount form
   The tier is derived from the amount, so the band reads as feedback on what
   was typed rather than as something to choose. */
.package-form { max-width: 34rem; }
.package-tier { min-height: 1.6rem; margin: .2rem 0 1rem; font-weight: 600; }
.package-tier.is-ok { color: var(--ink-900); }
.package-tier.is-bad { color: var(--negative); }

.tier-bands { display: grid; gap: .6rem; margin-top: 1.6rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }
.tier-bands > div { display: flex; justify-content: space-between; gap: 1rem; font-size: .93rem; }
.tier-bands strong { color: var(--ink-900); }
.tier-bands span { color: var(--text-muted); }

/* What of the balance can actually be drawn, when some of it is locked. */
.wallet-drawable { display: block; flex-basis: 100%; margin-top: .2rem; font-size: .88rem; opacity: .9; }

/* ------------------------------------------------------- pay-into accounts
   The company's accounts, picked like an option rather than read like a
   notice, so the request records which one the money actually went to. */
.pay-accounts { display: grid; gap: .8rem; margin-bottom: 1.4rem; }
.pay-account {
    display: flex; align-items: flex-start; gap: .85rem; cursor: pointer;
    border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
    padding: .95rem 1.05rem; background: var(--paper);
    transition: border-color .15s ease, background .15s ease;
}
.pay-account:hover { border-color: var(--ink-600); }
.pay-account:has(input:checked) { border-color: var(--ink-900); background: var(--paper-alt); box-shadow: inset 0 0 0 1px var(--ink-900); }
.pay-account input { margin-top: .25rem; accent-color: var(--ink-900); }
.pay-account-body { display: grid; gap: .18rem; font-size: .9rem; color: var(--text-muted); min-width: 0; }
.pay-account-body strong { color: var(--ink-900); font-size: .97rem; }
.pay-account-body span { word-break: break-word; }
.pay-qr { margin-left: auto; border-radius: 6px; border: 1px solid var(--line); background: #fff; }

@media (max-width: 560px) {
    .pay-account { flex-wrap: wrap; }
    .pay-qr { margin-left: 0; }
}

/* Paying for an order out of the wallet, offered inside the payment box. */
.wallet-pay { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.wallet-pay .switch { margin-bottom: .6rem; }
.wallet-pay .field { margin-bottom: 0; }

/* Checkbox rows. Defined here as well as in admin.css because the member
   checkout uses one for paying from the wallet. */
.switch { display: flex; align-items: center; gap: .6rem; margin-bottom: .85rem; cursor: pointer; font-size: .94rem; color: var(--text-muted); }
.switch input { width: 18px; height: 18px; accent-color: var(--ink-900); }

/* Date range picker, member side. */
.range-form { display: flex; align-items: flex-end; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.range-form .field { margin-bottom: 0; }
.range-form .field input { min-width: 9.5rem; }

.account-table-figures td:not(:first-child),
.account-table-figures th:not(:first-child) { text-align: right; white-space: nowrap; }
.account-table-figures tfoot th { border-top: 2px solid var(--line); font-weight: 600; color: var(--ink-900); }
.figure-nil { color: var(--text-dim); }

@media (max-width: 720px) {
    .account-table-figures td:not(:first-child) { text-align: right; }
}

/* The second pot, styled apart from the cash balance so the two are never
   mistaken for one figure: light where the cash balance is dark. */
.wallet-balance-shop { background: var(--paper-alt); border: 1px solid var(--line); color: var(--text-muted); }
.wallet-balance-shop::before { border-color: rgba(20, 23, 26, .04); }
.wallet-balance-shop span { color: var(--text-dim); }
.wallet-balance-shop strong { color: var(--ink-900); }
.wallet-balance-shop a { color: var(--ink-900); }

/* ------------------------------------------------------------- maintenance
   The whole page when the site is closed. Deliberately plain: no nav, nothing
   to click into, nothing that would 503 on the next tap. */
.maintenance-body { background: var(--paper-alt); }
.maintenance {
    max-width: 34rem; margin: 0 auto; padding: 4rem 1.5rem;
    text-align: center; min-height: 100vh;
    display: flex; flex-direction: column; justify-content: center; gap: .35rem;
}
.maintenance-logo { width: 170px; height: auto; margin: 0 auto 1.8rem; }
.maintenance h1 { font-size: clamp(1.7rem, 5vw, 2.3rem); margin-bottom: .6rem; }
.maintenance .lede { margin: 0 auto; }

/* ------------------------------------------------------------------- 404 */
.notfound { text-align: center; padding: clamp(4rem, 10vw, 7rem) 0; }
.notfound-code {
    font-family: var(--font-display); font-size: clamp(5rem, 3rem + 10vw, 9rem); font-weight: 500;
    line-height: 1; letter-spacing: -.04em; color: var(--line-strong); margin: 0 0 .5rem;
}
.notfound .lede { margin: 0 auto 2rem; }
.notfound .hero-actions { justify-content: center; }
