/* Recipient shell: request-only, mobile first. Styling only; behaviour and markup contracts live in views/recipient and requests.css. */

.swap-recipient { background: var(--swap-ivory-50); }
.swap-recipient-head { text-align: center; margin-bottom: 1rem; padding-bottom: 0.875rem; border-bottom: 2px solid var(--swap-gold-400); }
.swap-recipient .swap-biz { font-size: 1.5rem; letter-spacing: -0.01em; }
.swap-recipient .swap-neutral-logo { display: block; height: 2rem; width: auto; max-width: 100%; margin: 0 auto; }
.swap-recipient .card { box-shadow: var(--swap-shadow); }
.swap-recipient h1 { letter-spacing: -0.01em; line-height: 1.2; }

.swap-req-badge { display: inline-block; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em; padding: 0.25rem 0.625rem; border-radius: 999px; border: 1px solid var(--swap-navy-900); color: var(--swap-navy-900); background: var(--swap-white); }
.swap-req-ref { color: var(--swap-slate-600); font-size: 0.9375rem; margin: -0.25rem 0 0.75rem; }
.swap-req-intro { color: var(--swap-slate-600); margin: 0 0 1rem; line-height: 1.55; }

/* Current vs proposed: stacked on phones, side by side from 576 px. The proposed side is marked by text, border and weight, not colour alone. */
.swap-compare { gap: 0.875rem; }
.swap-compare-col { border-color: var(--swap-input-border); background: var(--swap-white); padding: 1rem; }
.swap-compare-col.is-proposed { border: 2px solid var(--swap-navy-900); box-shadow: inset 5px 0 0 var(--swap-gold-400); background: var(--swap-white); }
.swap-compare-col .swap-compare-label { color: var(--swap-slate-600); }
.swap-compare-col.is-proposed .swap-compare-label { color: var(--swap-navy-900); }
.swap-compare-col.is-proposed .swap-prewrap { font-weight: 600; }

/* Decisions: full-width, 52 px, labelled group; Approve is the single filled action. */
.swap-decisions { gap: 0.75rem !important; }
.swap-decisions .btn { min-height: 52px; font-size: 1.0625rem; font-weight: 600; }
.swap-decisions-label { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--swap-slate-600); margin: 0 0 0.5rem; }
.swap-decisions-note { color: var(--swap-slate-600); font-size: 0.875rem; margin: 0.75rem 0 0; text-align: center; }

.swap-recipient .form-label { font-weight: 600; }
.swap-recipient .text-green { color: var(--swap-green-700) !important; font-weight: 600; }
.swap-recipient .text-danger { color: var(--swap-red-700) !important; font-weight: 600; }
.swap-recipient .alert-danger { border: 2px solid var(--swap-red-700); background: var(--swap-white); color: var(--swap-navy-900); }
.swap-recipient .badge.bg-secondary-lt { background: var(--swap-ivory-100) !important; color: var(--swap-navy-900) !important; border: 1px solid var(--swap-border); font-size: 0.875rem; }
.swap-recipient .swap-done-mark { background: var(--swap-green-700); }
.swap-recipient a { color: var(--swap-gold-800); text-underline-offset: 0.15em; }
.swap-recipient .btn { text-decoration: none; }
.swap-recipient .btn-primary, .swap-recipient .btn-primary:hover { color: var(--swap-white); }

/* BRAND-1: business identity. The logo sits above the name; the contact line and the SWAP line close every page. */
.swap-biz-logo { display: block; margin: 0 auto 0.75rem; max-width: min(100%, 240px); max-height: 72px; width: auto; height: auto; object-fit: contain; }
.swap-recipient .swap-biz-purpose { margin: 0.5rem 0 0; color: var(--swap-slate-600); font-size: 1rem; }
.swap-recipient .swap-footer { padding-top: 1.25rem; }
.swap-recipient .swap-footer p { margin: 0 0 0.375rem; }
.swap-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1rem; line-height: 1.5; overflow-wrap: anywhere; }
.swap-contact-label { flex-basis: 100%; font-weight: 700; color: var(--swap-navy-900); }
.swap-contact a { display: inline-block; padding: 0.5rem 0; min-height: 44px; }
/* RECEIPT-COPY: the one invite line under the record. Slate text (4.5:1 on the page colour); the link is underlined, so it never relies on colour alone. */
.swap-invite { font-size: 0.875rem; color: var(--swap-slate-600); }
.swap-invite a { color: var(--swap-navy-900); text-decoration: underline; text-underline-offset: 0.15em; }
.swap-bg-custom .swap-invite a { color: inherit; text-decoration: underline; }
.swap-bg-custom .swap-invite :focus-visible { outline: 3px solid var(--brand-bg-text); outline-offset: 2px; }
.swap-powered a { display: inline-block; padding: 0.5rem 0; min-height: 44px; }
/* Accent colour: the header line (or band) and the primary buttons, never a decision button (Approve, Decline, Request revision stay navy).
   The colour carries white or near-black text, picked and checked for 4.5:1 before the page was rendered (--brand-accent-text). */
.swap-branded .swap-recipient-head, .swap-bg-custom .swap-recipient-head { border-bottom-color: var(--brand-line, var(--brand-accent, var(--swap-gold-400))); }
.swap-branded .btn-primary:not([name="decision"]) { --tblr-btn-bg: var(--brand-accent); --tblr-btn-border-color: var(--brand-accent); --tblr-btn-hover-bg: var(--brand-accent-hover, var(--brand-accent)); --tblr-btn-hover-border-color: var(--brand-accent-hover, var(--brand-accent)); --tblr-btn-active-bg: var(--brand-accent-hover, var(--brand-accent)); --tblr-btn-active-border-color: var(--brand-accent-hover, var(--brand-accent)); --tblr-btn-disabled-bg: var(--brand-accent); --tblr-btn-disabled-border-color: var(--brand-accent); }
.swap-branded .btn-primary:not([name="decision"]), .swap-branded .btn-primary:not([name="decision"]):hover, .swap-branded .btn-primary:not([name="decision"]):focus-visible { color: var(--brand-accent-text); }
/* Hover and active use --brand-accent-hover, computed so the text contrast can only go up (a brightness filter would also darken dark text). */
.swap-branded .btn-primary:not([name="decision"]):hover, .swap-branded .btn-primary:not([name="decision"]):active { background-color: var(--brand-accent-hover, var(--brand-accent)); border-color: var(--brand-accent-hover, var(--brand-accent)); }

/* BRAND-3: page colour. Only the page behind the white card changes; forms and answers stay on the card. Every line of text that sits on the page
   uses one colour (--brand-bg-text: navy or ivory, black or white on a mid-tone), chosen for 4.5:1 against the page colour. */
.swap-recipient.swap-bg-custom { background: var(--brand-bg); color: var(--brand-bg-text); }
.swap-bg-custom .swap-recipient-head, .swap-bg-custom .swap-footer { color: var(--brand-bg-text); }
.swap-bg-custom .swap-recipient-head :is(.swap-biz-eyebrow, .swap-biz, .swap-biz-purpose),
.swap-bg-custom .swap-footer :is(p, a, .swap-contact-label) { color: inherit; }
.swap-bg-custom .swap-footer a { text-decoration: underline; text-underline-offset: 0.15em; }
/* The global focus ring is navy; on a dark page colour it vanishes. Links on the page use the page text colour (at least 4.5:1 on it). */
.swap-bg-custom .swap-footer :focus-visible, .swap-bg-custom .visually-hidden-focusable:focus { outline: 3px solid var(--brand-bg-text); outline-offset: 2px; }
.swap-bg-custom .swap-onbg { color: var(--brand-bg-text) !important; }
/* A11Y-1: the message above the card is focused on load (app.js). It sits on the page colour, where the navy ring can vanish: same fix as above. */
.swap-bg-custom [data-flash]:focus { outline-color: var(--brand-bg-text); }

/* BRAND-3: header band. The header sits on a band of the accent colour (SWAP navy without one); its text uses --brand-band-text. */
.swap-hdr-band .swap-recipient-head { background: var(--brand-band); color: var(--brand-band-text); padding: 1.125rem 1rem 1.25rem; border-bottom: 0; border-radius: var(--swap-radius); }
.swap-hdr-band .swap-recipient-head :is(.swap-biz-eyebrow, .swap-biz, .swap-biz-purpose) { color: inherit; }
/* The logo keeps a white plate on a band, so dark artwork never sits on a dark colour. */
.swap-hdr-band .swap-biz-logo { background: #fff; padding: 0.375rem; border-radius: 0.375rem; box-sizing: content-box; max-width: min(calc(100% - 0.75rem), 240px); }

/* BRAND-3: logo position. Left aligns the whole header; the footer stays centred. */
.swap-logo-left .swap-recipient-head { text-align: left; padding-left: 1.25rem; padding-right: 1.25rem; }
.swap-logo-left .swap-biz-logo { margin-left: 0; margin-right: auto; }

/* BRAND-3: font style. Font stacks that are already on every device; nothing is downloaded (the CSP would refuse it anyway). */
.swap-font-classic { --brand-font: Georgia, "Times New Roman", Times, serif; }
/* Rounded letters where the device has a rounded system font (mostly Apple devices); elsewhere it looks like Modern. */
.swap-font-rounded { --brand-font: ui-rounded, "SF Pro Rounded", var(--swap-font); }
.swap-font-classic, .swap-font-rounded { --tblr-font-sans-serif: var(--brand-font); --tblr-body-font-family: var(--brand-font); font-family: var(--brand-font); }
.swap-font-classic :is(.btn, .form-control, .form-select, .form-label, .badge), .swap-font-rounded :is(.btn, .form-control, .form-select, .form-label, .badge) { font-family: inherit; }

/* BRAND-3: button shape, for every button on the page (decision buttons included; their colours do not change). */
.swap-recipient.swap-btn-square .btn { border-radius: 0; }
.swap-recipient.swap-btn-pill .btn { border-radius: 999px; }

/* HOME-YES: the sample request on /try. The banner says, on every sample page, that nothing is sent. */
.swap-sample-banner { background: var(--swap-badge-wait-bg); color: var(--swap-navy-900); border: 1px solid var(--swap-amber-700); border-radius: var(--swap-radius); padding: 0.625rem 0.875rem; margin: 0 0 1rem; font-size: 0.9375rem; text-align: center; }
.swap-sample-img { display: block; width: 100%; max-width: 12rem; height: auto; margin: 0 auto 0.625rem; border-radius: 0.5rem; }
.swap-linked-note { font-weight: 600; color: var(--swap-navy-900); }
