/* The White Gate gift voucher shop
   Brand colours, fonts and tone taken from thewhitegatemirfield.co.uk */

@font-face { font-family: "Bodoni Moda"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("fonts/bodoni-moda-400.woff2") format("woff2"); }
@font-face { font-family: "Bodoni Moda"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/bodoni-moda-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 300 500; font-display: swap; src: url("fonts/jost-300.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/eb-garamond-400-italic.woff2") format("woff2"); }

:root {
    --wg-ground: #f3efe8;
    --wg-band: #ede8df;
    --wg-ink: #232525;
    --wg-deep: #1b3338;
    --wg-deep-2: #24434a;
    --wg-gold: #c8a063;
    --wg-gold-type: #85632f;
    --wg-slate: #5e646a;
    --wg-line: #ddd5c6;
    --wg-white: #fff;
    --wg-danger: #8a2f1c;
    --wg-success: #2f5d3a;

    --serif: "Bodoni Moda", Didot, Georgia, serif;
    --sans: "Jost", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
    --italic: "EB Garamond", Garamond, Georgia, serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --radius: 2px;
    --max: 1180px;
}

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

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

body {
    margin: 0;
    background: var(--wg-ground);
    color: var(--wg-ink);
    font-family: var(--sans);
    font-weight: 300;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 400;
    color: var(--wg-deep);
    line-height: 1.15;
    margin: 0 0 .5em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: 1.5rem; }

h1:focus { outline: none; }

a { color: var(--wg-gold-type); text-underline-offset: 3px; }
a:hover { color: var(--wg-deep); }

strong { font-weight: 500; }

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

.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;
}

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--wg-white); padding: .5rem 1rem; z-index: 10; }
.skip-link:focus { left: 1rem; }

:focus-visible { outline: 2px solid var(--wg-gold); outline-offset: 2px; }

.eyebrow {
    font-size: .75rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--wg-gold-type);
    margin: 0 0 .75rem;
    font-weight: 400;
}

.lead { font-size: 1.15rem; }
.muted { color: var(--wg-slate); }
.small { font-size: .875rem; }
.hint { font-size: .875rem; color: var(--wg-slate); margin: .4rem 0 0; }
.optional { color: var(--wg-slate); font-weight: 300; }
.text-danger { color: var(--wg-danger); }
.pre-line { white-space: pre-line; }

/* ---------- Site header / footer ---------- */

.site-header { background: var(--wg-deep); border-bottom: 3px solid var(--wg-gold); }

.site-header__inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: .9rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-header__logo img { width: 64px; height: auto; }

.site-nav { display: flex; align-items: center; gap: 2rem; }

.site-nav a {
    color: var(--wg-white);
    text-decoration: none;
    font-size: .8rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    font-weight: 400;
    padding: .35rem 0;
    border-bottom: 1px solid transparent;
}

.site-nav a:hover, .site-nav a.active { border-bottom-color: var(--wg-gold); color: var(--wg-white); }

.basket-link { display: inline-flex; align-items: center; gap: .5rem; }

.basket-link__count {
    display: inline-grid;
    place-items: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 .35rem;
    background: var(--wg-gold);
    color: var(--wg-deep);
    border-radius: 999px;
    font-size: .75rem;
    letter-spacing: 0;
    font-weight: 500;
}

.site-footer { background: var(--wg-deep); color: #c9cfd1; margin-top: 5rem; padding: 3rem 1.5rem 1.5rem; font-size: .9rem; }

.site-footer__inner {
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.site-footer__name { font-family: var(--serif); font-size: 1.3rem; color: var(--wg-white); margin: 0 0 .5rem; }
.site-footer__links { display: flex; flex-direction: column; gap: .4rem; }
.site-footer a { color: var(--wg-gold); text-decoration: none; }
.site-footer a:hover { color: var(--wg-white); }
.site-footer__small { max-width: var(--max); margin: 2rem auto 0; font-size: .8rem; color: #8f9a9d; }

/* ---------- Hero ---------- */

.hero {
    background-size: cover;
    background-position: center;
    min-height: 340px;
    display: flex;
}

.hero__overlay {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 1.5rem;
    background: linear-gradient(180deg, rgba(27, 51, 56, .55), rgba(27, 51, 56, .75));
}

.hero h1 { color: var(--wg-white); font-size: clamp(2.5rem, 6vw, 4.25rem); margin: 0; }
.hero .eyebrow { color: var(--wg-gold); }
.hero__lead { color: #e8e4dc; font-family: var(--italic); font-style: italic; font-size: 1.3rem; margin: .75rem 0 0; }

/* ---------- Shop ---------- */

.shop {
    max-width: var(--max);
    margin: -3rem auto 0;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    position: relative;
}

.shop__image { background: var(--wg-band); min-height: 100%; }
.shop__image img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }

.shop__panel { background: var(--wg-white); padding: 2.5rem; box-shadow: 0 10px 40px rgba(27, 51, 56, .08); }

.voucher-editor__description { color: var(--wg-slate); margin: -.25rem 0 1.5rem; }

.experience-price { font-family: var(--serif); font-size: 2.25rem; color: var(--wg-deep); margin: 0 0 1.5rem; }

.voucher-editor__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid var(--wg-line);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.voucher-editor__total { font-family: var(--serif); font-size: 2rem; color: var(--wg-deep); margin: 0; }

.added-banner {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: var(--wg-ground);
    border-left: 3px solid var(--wg-gold);
}

.added-banner p { margin: 0 0 .75rem; }
.added-banner__actions { display: flex; gap: .75rem; flex-wrap: wrap; }

.info-band { background: var(--wg-band); margin-top: 4rem; padding: 3.5rem 1.5rem; }

.info-band__inner {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.info-band h2 { font-size: 1.3rem; }
.info-band p { margin: 0; color: var(--wg-slate); }

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

.field { margin: 0 0 1.4rem; border: 0; padding: 0; min-width: 0; }

.field > label, .field > legend {
    display: block;
    font-size: .78rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 400;
    color: var(--wg-deep);
    margin-bottom: .5rem;
    padding: 0;
}

.field--inline { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.field--inline > label { margin: 0; }

.input, .select {
    width: 100%;
    font: inherit;
    font-weight: 300;
    color: var(--wg-ink);
    background: var(--wg-white);
    border: 1px solid var(--wg-line);
    border-radius: var(--radius);
    padding: .75rem .9rem;
    transition: border-color .15s;
}

.input:focus, .select:focus { outline: none; border-color: var(--wg-gold); box-shadow: 0 0 0 3px rgba(200, 160, 99, .2); }

.select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--wg-deep) 50%), linear-gradient(135deg, var(--wg-deep) 50%, transparent 50%);
    background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
    background-size: 5px 5px;
    background-repeat: no-repeat;
    padding-right: 2.5rem;
    font-family: var(--serif);
    font-size: 1.15rem;
}

textarea.input { resize: vertical; }

.input--code {
    font-family: var(--mono);
    letter-spacing: .12em;
    text-transform: uppercase;
}

.input--large { font-size: 1.6rem; padding: .9rem 1rem; }
.input--money { width: 10rem; max-width: 100%; font-size: 1.3rem; }

.field-error { color: var(--wg-danger); font-size: .875rem; }

.address .input { margin-bottom: .6rem; }
.address__row { display: grid; grid-template-columns: 2fr 1fr; gap: .6rem; }

.amount-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }

.amount-option {
    font-family: var(--serif);
    font-size: 1.5rem;
    color: var(--wg-deep);
    background: var(--wg-white);
    border: 1px solid var(--wg-line);
    border-radius: var(--radius);
    padding: .9rem .5rem;
    cursor: pointer;
    transition: all .15s;
}

.amount-option:hover { border-color: var(--wg-gold); }
.amount-option.is-selected { background: var(--wg-deep); color: var(--wg-white); border-color: var(--wg-deep); }

.choice-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; }

.choice-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .2rem;
    border: 1px solid var(--wg-line);
    border-radius: var(--radius);
    padding: .9rem 1rem;
    cursor: pointer;
    transition: border-color .15s;
}

.choice-card input { position: absolute; opacity: 0; }
.choice-card:hover { border-color: var(--wg-gold); }
.choice-card.is-selected { border-color: var(--wg-deep); box-shadow: inset 0 0 0 1px var(--wg-deep); }
.choice-card:focus-within { outline: 2px solid var(--wg-gold); outline-offset: 2px; }
.choice-card__title { font-weight: 500; color: var(--wg-deep); }
.choice-card__text { font-size: .85rem; color: var(--wg-slate); line-height: 1.35; }

.radio-row { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.radio-row label { display: inline-flex; gap: .5rem; align-items: center; cursor: pointer; }

input[type="radio"], input[type="checkbox"] { accent-color: var(--wg-deep); width: 1.05rem; height: 1.05rem; }

.checkbox { display: flex; gap: .6rem; align-items: flex-start; margin: 0 0 1.2rem; cursor: pointer; font-size: .95rem; }
.checkbox input { margin-top: .3rem; }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--wg-line); border-radius: var(--radius); background: var(--wg-white); }
.stepper button { font: inherit; font-size: 1.25rem; width: 2.75rem; height: 2.75rem; border: 0; background: none; color: var(--wg-deep); cursor: pointer; }
.stepper button:disabled { color: #c5c0b6; cursor: default; }
.stepper span { min-width: 2.25rem; text-align: center; font-weight: 400; }
.stepper--small button { width: 2.25rem; height: 2.25rem; font-size: 1.1rem; }

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

.button {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-family: var(--sans);
    font-size: .8rem;
    font-weight: 400;
    letter-spacing: .2em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--wg-white);
    background: var(--wg-deep);
    border: 1px solid var(--wg-deep);
    border-radius: var(--radius);
    padding: .95rem 1.6rem;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}

.button:hover { background: var(--wg-deep-2); color: var(--wg-white); }
.button:disabled { opacity: .55; cursor: default; }
.button--full { width: 100%; }
.button--large { padding: 1.1rem 2rem; font-size: .9rem; }
.button--ghost { background: transparent; color: var(--wg-deep); border-color: var(--wg-deep); }
.button--ghost:hover { background: var(--wg-deep); color: var(--wg-white); }
.button--danger { background: var(--wg-danger); border-color: var(--wg-danger); }
.button--danger:hover { background: #6e2516; }
.button--danger-ghost { background: transparent; color: var(--wg-danger); border-color: var(--wg-danger); }
.button--danger-ghost:hover { background: var(--wg-danger); color: var(--wg-white); }

.link-button { font: inherit; font-size: .875rem; background: none; border: 0; padding: 0; color: var(--wg-gold-type); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-button:hover { color: var(--wg-danger); }

/* ---------- Alerts ---------- */

.alert { padding: 1rem 1.25rem; border-left: 3px solid; margin: 1rem 0; background: var(--wg-white); }
.alert ul { margin: 0; padding-left: 1.1rem; }
.alert p { margin: 0 0 .5rem; }
.alert p:last-child { margin: 0; }
.alert--error { border-color: var(--wg-danger); color: var(--wg-danger); }
.alert--info { border-color: var(--wg-gold); }
.alert--success { border-color: var(--wg-success); }

/* ---------- Pages ---------- */

.page { max-width: var(--max); margin: 0 auto; padding: 3.5rem 1.5rem 0; }
.page-narrow { max-width: 720px; margin: 0 auto; padding: 3.5rem 1.5rem 0; }

.prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: .75rem; }

.empty-state { padding: 3rem 0; text-align: center; }

/* Basket */

.basket { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: start; }

.basket-item {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    background: var(--wg-white);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.basket-item h2 { font-size: 1.35rem; margin-bottom: .35rem; }
.basket-item p { margin: 0 0 .2rem; }
.basket-item__message { font-family: var(--italic); font-style: italic; color: var(--wg-slate); margin-top: .5rem !important; }
.basket-item__side { display: flex; flex-direction: column; align-items: flex-end; gap: .6rem; flex-shrink: 0; }
.basket-item__price { font-family: var(--serif); font-size: 1.4rem; color: var(--wg-deep); margin: 0 !important; }

.basket__checkout { background: var(--wg-white); padding: 2rem; position: sticky; top: 1.5rem; }

.basket__total {
    display: flex;
    justify-content: space-between;
    font-family: var(--serif);
    font-size: 1.6rem;
    color: var(--wg-deep);
    border-top: 1px solid var(--wg-line);
    padding: 1.25rem 0;
    margin-top: .5rem;
}

/* Checkout complete */

.voucher-list { display: grid; gap: 1rem; margin: 2rem 0; }

.voucher-ticket {
    background: var(--wg-white);
    border: 1px solid var(--wg-gold);
    padding: 1.5rem;
    text-align: center;
}

.voucher-ticket p { margin: 0 0 .3rem; }
.voucher-ticket__for { font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: var(--wg-gold-type); }
.voucher-ticket__name { font-family: var(--serif); font-size: 1.5rem; color: var(--wg-deep); }
.voucher-ticket__code { font-family: var(--mono); font-size: 1.6rem; letter-spacing: .15em; color: var(--wg-deep); font-weight: 600; margin: .5rem 0 !important; }

/* Balance */

.balance-form { display: flex; gap: .75rem; margin: 1.5rem 0; }
.balance-form .input { font-size: 1.25rem; }

.balance-card {
    background: var(--wg-white);
    border: 1px solid var(--wg-gold);
    padding: 2.25rem;
    text-align: center;
    margin: 1.5rem 0;
}

.balance-card p { margin: 0; }
.balance-card__code { font-family: var(--mono); letter-spacing: .15em; color: var(--wg-slate); }
.balance-card__product { font-family: var(--serif); font-size: 1.4rem; color: var(--wg-deep); margin: .25rem 0 1rem !important; }
.balance-card__amount { font-family: var(--serif); font-size: 3.5rem; color: var(--wg-deep); line-height: 1; }
.balance-card__facts { display: flex; justify-content: center; gap: 3rem; margin: 1.75rem 0 0; }
.balance-card__facts dt { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--wg-slate); }
.balance-card__facts dd { margin: .25rem 0 0; }

/* Status badges */

.status {
    display: inline-block;
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 500;
    padding: .25rem .6rem;
    border-radius: 999px;
    background: var(--wg-band);
    color: var(--wg-slate);
    white-space: nowrap;
}

.status--active { background: #e3ede4; color: var(--wg-success); }
.status--expired, .status--voided { background: #f3e2dd; color: var(--wg-danger); }
.status--fullyredeemed { background: var(--wg-band); color: var(--wg-slate); }
.status--large { font-size: .85rem; padding: .45rem 1rem; }

/* ---------- Staff area ---------- */

.staff-header { background: var(--wg-deep); border-bottom: 3px solid var(--wg-gold); }

.staff-header__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: .6rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.staff-header__brand { display: flex; align-items: center; gap: .75rem; color: var(--wg-white); text-decoration: none; font-family: var(--serif); font-size: 1.2rem; }
.staff-header__brand:hover { color: var(--wg-white); }

.staff-nav { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }

.staff-nav a, .staff-nav__logout button {
    color: #dfe4e5;
    text-decoration: none;
    font: inherit;
    font-size: .8rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: .55rem .8rem;
    border-radius: var(--radius);
    background: none;
    border: 0;
    cursor: pointer;
}

.staff-nav a:hover, .staff-nav__logout button:hover { background: var(--wg-deep-2); color: var(--wg-white); }
.staff-nav a.active { background: var(--wg-gold); color: var(--wg-deep); }
.staff-nav__logout { margin: 0 0 0 .5rem; }

.staff-main { max-width: 1400px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }

.staff-section h1 { font-size: 2.25rem; }
.staff-section--narrow { max-width: 760px; }

.section-title { margin-top: 2.5rem; font-size: 1.35rem; }

.login { max-width: 420px; margin: 4rem auto; background: var(--wg-white); padding: 2.5rem; }

.code-lookup { display: flex; gap: .75rem; margin-top: 1.5rem; }

.attention-list { list-style: none; padding: 0; margin: 0; }
.attention-list li { background: var(--wg-white); border-left: 3px solid var(--wg-gold); padding: .9rem 1.2rem; margin-bottom: .5rem; }
.attention-list a { text-decoration: none; color: var(--wg-ink); }

.panel { background: var(--wg-white); padding: 1.75rem; margin-bottom: 1.5rem; }
.panel__title { font-size: 1.3rem; margin-bottom: 1rem; }
.panel__label { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--wg-slate); margin: 0; }

.voucher-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.voucher-head h1 { margin-bottom: .25rem; }
.voucher-head p { margin: 0; }
.voucher-head__code { font-family: var(--mono); font-size: 1.1rem; letter-spacing: .15em; color: var(--wg-gold-type); }

.voucher-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 1.5rem; }
.voucher-grid > .panel { margin-bottom: 1.5rem; }

.panel--balance { text-align: center; display: flex; flex-direction: column; justify-content: center; }
.panel--balance p { margin: 0; }
.balance-figure { font-family: var(--serif); font-size: 4rem; line-height: 1.1; color: var(--wg-deep); margin: .25rem 0 !important; }
.balance-figure--small { font-size: 2.25rem; }

.field--initials .input { max-width: 7rem; text-transform: uppercase; letter-spacing: .15em; }

.redeem-row { display: flex; gap: .75rem; align-items: flex-end; flex-wrap: wrap; }
.redeem-row .field { margin-bottom: 1.4rem; }
.redeem-row .button { margin-bottom: 1.4rem; }

.confirm-box { background: var(--wg-ground); border-left: 3px solid var(--wg-gold); padding: 1.1rem 1.25rem; }
.confirm-box p { margin: 0 0 .9rem; }
.confirm-box .button { margin-right: .5rem; }

.details { display: grid; grid-template-columns: 8rem 1fr; gap: .6rem 1rem; margin: 0; }
.details dt { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--wg-slate); padding-top: .2rem; }
.details dd { margin: 0; }

.action-buttons { display: flex; flex-wrap: wrap; gap: .5rem; }
.action-buttons .button { padding: .7rem 1rem; font-size: .72rem; }
.action-form { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--wg-line); }
.action-form--danger p { color: var(--wg-danger); }

.table { width: 100%; border-collapse: collapse; background: var(--wg-white); font-size: .95rem; }
.table th { text-align: left; font-weight: 400; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--wg-slate); padding: .75rem; border-bottom: 1px solid var(--wg-line); }
.table td { padding: .75rem; border-bottom: 1px solid var(--wg-band); vertical-align: top; }
.table tfoot td { font-weight: 500; border-top: 1px solid var(--wg-line); border-bottom: 0; }
.table .num { text-align: right; white-space: nowrap; }
.panel .table { background: none; }

.code { font-family: var(--mono); letter-spacing: .08em; color: var(--wg-deep); font-weight: 600; }
.code--large { font-size: 1.5rem; margin: 0 0 .25rem; }
.code-list { list-style: none; padding: 0; margin: .75rem 0 1rem; }
.code-list li { padding: .4rem 0; border-bottom: 1px solid var(--wg-band); }
.code-list .code { margin-right: .75rem; font-size: 1.15rem; }

.search-row { display: flex; gap: .75rem; margin-bottom: 1.5rem; max-width: 640px; }

.sell-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.5rem; align-items: start; }
.sale-lines { list-style: none; padding: 0; margin: 0 0 1rem; }
.sale-lines li { display: grid; grid-template-columns: 1fr auto auto; gap: 1rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--wg-band); }
.sale-total { font-size: 1.1rem; margin: 0 0 1.5rem; }

.post-cards { display: grid; gap: 1rem; }

.post-card {
    display: grid;
    grid-template-columns: 1.3fr 1fr auto;
    gap: 1.5rem;
    background: var(--wg-white);
    padding: 1.5rem;
    border-left: 3px solid var(--wg-gold);
}

.post-card p { margin: 0 0 .25rem; }
.post-card__message { font-family: var(--italic); font-style: italic; color: var(--wg-slate); margin-top: .75rem !important; }
.post-card__address { font-style: normal; line-height: 1.5; }
.post-card__actions { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; gap: 1rem; }

.report-range { display: flex; gap: .75rem; align-items: flex-end; flex-wrap: wrap; margin-bottom: 1.5rem; }
.report-range .field { margin: 0; }
.report-range .input { width: auto; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat { background: var(--wg-white); padding: 1.4rem; }
.stat p { margin: 0; }
.stat__label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--wg-slate); }
.stat__value { font-family: var(--serif); font-size: 2.2rem; color: var(--wg-deep); margin: .25rem 0 !important; }
.stat__note { font-size: .85rem; color: var(--wg-slate); line-height: 1.4; }

/* How-to guide */

.guide ol, .guide ul { padding-left: 1.25rem; margin: 0 0 1rem; }
.guide li { margin-bottom: .5rem; }
.guide li ul { margin-top: .5rem; }
.guide h2 { scroll-margin-top: 1rem; }
.guide__contents { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 1.5rem 0; padding: 1rem 1.25rem; background: var(--wg-white); border-left: 3px solid var(--wg-gold); }
.guide__contents a { text-decoration: none; }
.guide__table td:first-child { width: 34%; font-weight: 400; }

/* ---------- Blazor error UI ---------- */

#blazor-error-ui {
    background: #fff4d6;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, .2);
    display: none;
    left: 0;
    padding: .6rem 1.25rem .7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .shop, .basket, .voucher-grid, .sell-grid { grid-template-columns: 1fr; }
    .shop { margin-top: 0; padding: 0; }
    .shop__image img { min-height: 220px; max-height: 280px; }
    .shop__panel { padding: 1.75rem 1.5rem; }
    .info-band__inner { grid-template-columns: 1fr; gap: 1.5rem; }
    .stat-row { grid-template-columns: 1fr 1fr; }
    .post-card { grid-template-columns: 1fr; }
    .post-card__actions { align-items: flex-start; }
    .basket__checkout { position: static; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    .site-nav { gap: 1rem; }
    .site-nav a { font-size: .7rem; letter-spacing: .12em; }
    .site-header__logo img { width: 48px; }
    .hero { min-height: 240px; }
    .basket-item { flex-direction: column; }
    .basket-item__side { flex-direction: row; align-items: center; justify-content: space-between; }
    .balance-form, .code-lookup { flex-direction: column; }
    .amount-option { font-size: 1.25rem; }
    .stat-row { grid-template-columns: 1fr; }
    .table { font-size: .85rem; }
}
