/*
 * Écrin × Communauté.
 * The community plugin's pages dressed in the shop's design system: its colour, type and surface variables are
 * mapped onto the theme tokens (so light and dark follow the site), and its shared components (masthead, buttons,
 * fields, chips, panels, empty states) take the paper-and-gold vocabulary of the rest of the shop.
 * Loaded after the plugin's own styles, on community pages only. `html .afc…` outranks the plugin's `.afc .x`.
 */

/* ---------- tokens ---------- */
html .afc, html .afc.afc *, html .af-request-public, html .af-request-public * {
	--afc-ink: var(--ink); --afc-ink-soft: var(--ink-2); --afc-ink-faint: var(--ink-3); --afc-muted: var(--ink-2);
	--afc-accent: var(--ink); --afc-accent-soft: var(--ink-2);
	--afc-page: var(--bg); --afc-raised: var(--surface); --afc-paper: var(--surface); --afc-cream: var(--bg-2);
	--afc-line: var(--line); --afc-line-soft: var(--line); --afc-line-strong: var(--line-2);
	--afc-focus: var(--gold); --afc-display: var(--f-display); --afc-ui: var(--f-ui);
	--afc-good: var(--gold); --afc-bad: #c0563a; --afc-warn: #c48a3a;
	--afc-good-bg: color-mix(in srgb, var(--gold) 12%, var(--surface)); --afc-bad-bg: color-mix(in srgb, #c0563a 12%, var(--surface)); --afc-warn-bg: color-mix(in srgb, #c48a3a 12%, var(--surface));
	--afc-form-surface: var(--surface); --afc-form-border: var(--line-2); --afc-form-field: var(--bg);
	--afc-mast-deep: var(--bg-2); --afc-mast-lift: var(--surface-2); --afc-mast-ink: var(--ink); --afc-mast-ink-soft: var(--ink-2); --afc-mast-sand: var(--gold); --afc-mast-rule: var(--line);
	--afc-hero-surface: var(--bg-2); --afc-hero-copy: var(--ink); --afc-hero-muted: var(--ink-2); --afc-hero-accent: var(--gold);
	--afc-detail-surface: var(--bg-2); --afc-detail-copy: var(--ink); --afc-detail-muted: var(--ink-2); --afc-detail-accent: var(--gold);
	--afc-portal-deep: var(--bg-2); --afc-portal-lift: var(--surface-2); --afc-portal-sand: var(--gold);
	--afc-discussion-ink: var(--ink); --afc-discussion-muted: var(--ink-2); --afc-discussion-line: var(--line); --afc-discussion-accent: var(--gold);
	--afc-discussion-soft: var(--bg-2); --afc-discussion-soft-strong: var(--surface-2); --afc-discussion-paper: var(--surface); --afc-discussion-warm: var(--gold);
	--afc-discussion-success: var(--gold); --afc-discussion-danger: #c0563a; --afc-discussion-ui: var(--f-ui); --afc-discussion-display: var(--f-display);
	--afc-wrap: var(--maxw, 1560px); --afc-gutter: var(--gutter, 24px);
}
html .afc, html .af-request-public { color: var(--ink); font-family: var(--f-ui); background: transparent; }

/* member area (`.afm`) and product requests (`af-request-*`) carry their own token families */
html:root, html .afm, html .afm * {
	--afm-ink: var(--ink); --afm-ink-soft: var(--ink-2); --afm-ink-faint: var(--ink-3); --afm-accent: var(--ink); --afm-accent-deep: var(--ink); --afm-accent-soft: var(--ink-2);
	--afm-page: var(--bg); --afm-band: var(--bg-2); --afm-card: var(--surface); --afm-sunken: var(--bg-2); --afm-sand: var(--gold);
	--afm-line: var(--line); --afm-line-soft: var(--line); --afm-line-strong: var(--line-2);
	--afm-good: var(--gold); --afm-warn: #c48a3a; --afm-bad: #c0563a; --afm-focus: var(--gold); --afm-display: var(--f-display); --afm-ui: var(--f-ui);
	--afm-radius: var(--radius-lg, 6px); --afm-radius-sm: var(--radius, 3px); --afm-shadow: var(--paper-shadow);
	--af-request-ink: var(--ink); --af-request-muted: var(--ink-2); --af-request-line: var(--line); --af-request-paper: var(--surface); --af-request-soft: var(--bg-2);
	--af-request-accent: color-mix(in srgb, var(--gold) 62%, var(--ink)); --af-request-olive: var(--ink-2); --af-request-action: var(--ink); --af-request-action-hover: var(--ink-2); --af-request-white: var(--surface);
}

/* ---------- hard-coded colours of the plugin sheets, mapped to tokens (generated from the plugin CSS, one rule per source rule) ---------- */
html .afc .afc-btn--primary { color: var(--bg); }
html .afc .afc-btn--primary:hover, html .afc .afc-btn--primary:focus { color: var(--bg); }
html .afc-tag--staff { color: var(--bg); }
html .afc-tag--members { color: var(--bg); }
html .afc-circle-hero { background-color: var(--bg-2); background-image: none; color: var(--ink); }
html .afc-circle-hero__eyebrow { color: var(--ink) !important; }
html .afc-circle-hero h1 { color: var(--ink); }
html .afc-circle-hero p { color: var(--ink); }
html .afc-contribution-hero__eyebrow { background-color: var(--surface); background-image: none; color: var(--ink-2); }
html .afc-contribution-hero__actions .afc-action { border-color: var(--line); background-color: var(--surface); background-image: none; }
html .afc-reaction-strip .afc-reaction, html .afc-reaction-prompt .afc-reaction { border-color: var(--line); background-color: var(--surface); background-image: none; color: var(--ink-2); }
html .afc-reaction-strip .afc-reaction__symbol, html .afc-reaction-prompt .afc-reaction__symbol { background-color: var(--surface); background-image: none; color: var(--ink-3); }
html .afc-reaction.is-active { background-color: var(--surface); background-image: none; }
html .afc-prose, html .afc-prose--story { color: var(--ink-2); }
html .afc-statbar__item { background-color: var(--surface); background-image: none; }
html .afc-panel { background-color: var(--surface); background-image: none; }
html .afc-follow-faces .afc-avatar { border-color: var(--line); }
html .afc-pill { color: var(--bg); }
html .afc-message-bubble.is-mine { color: var(--bg); }
html .afc-message-bubble.is-mine a { color: var(--bg); }
html .afc-message-bubble.is-mine .afc-action:hover { color: var(--bg); }
html .afc .afc-composer__send { color: var(--bg); }
html .afc .afc-composer__send:hover, html .afc .afc-composer__send:focus-visible { color: var(--bg); }
html .afc-report--message .afc-report__panel { background-color: var(--surface); background-image: none; }
html .afc-thread-view__safety-panel { background-color: var(--surface); background-image: none; }
html .afc-inbox__head-count { color: var(--bg); }
html .afc-inbox__views a[aria-current] { color: var(--bg); }
html .afc-inbox__views a[aria-current] .afc-pill { background-color: var(--surface); background-image: none; }
html .afc-filter.is-current { color: var(--bg); }
html .afc-preferences__header { background-color: var(--surface); background-image: none; }
html .afc-mast--profile:not(.afc-mast--illustrated) .afc-mast__stats { background-color: var(--surface); background-image: none; }
html .afc-circle-proposal__form { background-color: var(--surface); background-image: none; }
html .afc-circle-card__cover { background-color: var(--bg-2); background-image: none; color: var(--ink); }
html .afc-circle-card--tone-2 .afc-circle-card__cover { background-color: var(--bg-2); background-image: none; }
html .afc-circle-card--tone-3 .afc-circle-card__cover { background-color: var(--bg-2); background-image: none; }
html .afc-areanav__count { color: var(--bg); }
html .afc-mast--workspace:not(.afc-mast--illustrated) .afc-mast__btn--primary { color: var(--bg); }
html .afc-mast--workspace:not(.afc-mast--illustrated) .afc-mast__btn--primary:hover, html .afc-mast--workspace:not(.afc-mast--illustrated) .afc-mast__btn--primary:focus-visible { color: var(--bg); }
html .afc-thread__eyebrow { color: var(--ink-2); }
html .afc-thread .afc-reply-form:focus-within { border-color: var(--line); }
html .afc-thread .afc-reply-form textarea { border-color: var(--line); }
html .afc-thread .afc-reply-form textarea::placeholder { color: var(--ink-3); }
html .afc-thread .afc-reply-form__submit .afc-btn--primary { color: var(--bg); }
html .afc-thread .afc-reply-form__submit .afc-btn--primary:hover, html .afc-thread .afc-reply-form__submit .afc-btn--primary:focus-visible { border-color: var(--ink); background-color: var(--ink); background-image: none; color: var(--bg); }
html .afc-thread__filters button.is-active { color: var(--bg); }
html .afc-thread .afc-reply.is-accepted > .afc-reply__inner { border-color: var(--line); }
html .afc-thread .afc-reaction:hover, html .afc-thread .afc-reaction:focus-visible, html .afc-thread .afc-reaction.is-active { border-color: var(--line); background-color: var(--surface); background-image: none; }
html .afc-thread__load-more button:hover, html .afc-thread__load-more button:focus-visible { color: var(--bg); }
html .afm .afm-btn--primary { color: var(--bg); }
html .afm .afm-btn--primary:hover, html .afm .afm-btn--primary:focus-visible { color: var(--bg); }
html .afm .afm-nav__link:hover { background-color: color-mix(in srgb, var(--ink) 6%, transparent); background-image: none; }
html .afm-nav__count { color: var(--bg); }
html .afm-chip--pick:has(input:checked) { color: var(--bg); }
html .afm-switch { background-color: var(--surface); background-image: none; }
html .afm-switch::after { background-color: var(--surface); background-image: none; }
html .afm-tag--wait { background-color: var(--surface); background-image: none; }
html .afm-privacy__list span { color: var(--bg); }
html .afm-panel--wait { border-color: var(--line); }
html .afm .afm-msg__view.is-current { color: var(--bg); }
html .afm-msg__view-count { background-color: color-mix(in srgb, var(--ink) 6%, transparent); background-image: none; }
html .afm-msg__view.is-current .afm-msg__view-count { background-color: color-mix(in srgb, var(--ink) 6%, transparent); background-image: none; }
html .afm .afm-convo__link:hover { background-color: color-mix(in srgb, var(--ink) 6%, transparent); background-image: none; }
html .afm-convo__count { color: var(--bg); }
html .afm .afm-composer__send { color: var(--bg); }
html .afm .afm-safety__act--danger:hover { background-color: var(--surface); background-image: none; }
html .afm-phero__seal { color: var(--ink); }
html .afm-tag--good { background-color: var(--surface); background-image: none; }
html .afm-mode:has(input:checked) .afm-mode__mark { color: var(--bg); }
html .afm-propose__seal { color: var(--bg); }
html .af-request-btn:hover, html .af-request-btn:focus-visible { background-color: var(--surface); background-image: none; }
html .af-request-btn--light { border-color: var(--line); }
html .af-request-btn--light:hover { background-color: var(--surface); background-image: none; }
html .af-request-public { background-color: var(--surface); background-image: none; }
html .af-request-public-hero { background-color: var(--bg-2); background-image: none; color: var(--ink); }
html .af-request-public-hero .af-request-eyebrow { color: var(--ink); }
html .af-request-public-hero__copy > p:not(.af-request-eyebrow) { color: var(--ink); }
html .af-request-public-hero a.af-request-btn--primary { border-color: var(--ink) !important; background-color: var(--ink) !important; background-image: none !important; color: var(--bg) !important; }
html .af-request-public-hero a.af-request-btn--primary:is(:hover, :focus-visible) { border-color: var(--ink) !important; background-color: var(--ink) !important; background-image: none !important; color: var(--bg) !important; }
html .af-request-public-hero__browse { color: var(--ink); }
html .af-request-public-hero__image { background-color: var(--surface); background-image: none; }
html .af-request-public-steps span { color: var(--ink); }
html .af-request-public-steps strong { color: var(--ink); }
html .af-request-public-steps small { color: var(--ink); }
html .af-request-filters { background-color: var(--surface); background-image: none; }
html .af-request-card:hover { border-color: var(--line); }
html .af-request-status { border-color: var(--line); background-color: var(--surface); background-image: none; color: var(--ink-2); }
html .af-request-status--available, html .af-request-status--coming_soon { border-color: var(--line); background-color: var(--surface); background-image: none; color: var(--ink-2); }
html .af-request-status--submitted, html .af-request-status--moderation { border-color: var(--line); background-color: var(--surface); background-image: none; color: var(--ink-2); }
html .af-request-card__actions button[aria-pressed="true"] { background-color: var(--surface); background-image: none; color: var(--ink-2); }
html .af-request-card__status { color: var(--ink-2); }
html .af-request-empty { background-color: var(--surface); background-image: none; }
html .af-request-bottom-cta { border-color: var(--line); background-color: var(--surface); background-image: none; }
html .af-request-field input, html .af-request-field select, html .af-request-field textarea { border-color: var(--line); }
html .af-request-money span { border-color: var(--line); }
html .af-request-upload { border-color: var(--line); }
html .af-request-aside-note p { color: var(--bg); }
html .af-request-alert { border-color: var(--line); background-color: var(--surface); background-image: none; color: var(--ink-2); }
html .af-request-duplicates { border-color: var(--line); background-color: var(--surface); background-image: none; }
html .af-request-detail__primary-image figcaption { background-color: var(--surface); background-image: none; }
html .af-request-support-band { background-color: var(--surface); background-image: none; }
html .af-request-linked-product { border-color: var(--line); background-color: var(--surface); background-image: none; }
html .af-request-missing .af-request-breadcrumb { color: var(--bg); }
html .af-request-missing__copy .af-request-eyebrow { color: var(--bg); }
html .af-request-missing__copy > p:not(.af-request-eyebrow) { color: var(--bg); }
html .af-request-missing__actions a.af-request-btn--primary:is(:hover, :focus-visible) { border-color: var(--ink) !important; background-color: var(--ink) !important; background-image: none !important; }
html .af-request-missing__actions a.af-request-btn--quiet { border-color: var(--line); }
html .af-request-missing__actions a.af-request-btn--quiet:is(:hover, :focus-visible) { background-color: var(--surface); background-image: none; }

html .afc :is(h1, h2, h3, h4) { font-family: var(--f-display); font-weight: 400; letter-spacing: var(--display-track, -.02em); color: var(--ink); text-transform: none; }
html .afc a:not([class]) { color: var(--ink); text-underline-offset: 3px; }
html .afc :focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- masthead: a paper band, the illustration laid on it like a taped print ---------- */
html .afc .afc-mast, html .af-request-public-hero {
	position: relative; overflow: hidden; isolation: isolate; color: var(--ink); border-bottom: 1px solid var(--line);
	background: radial-gradient(ellipse 55% 80% at 78% 50%, color-mix(in srgb, var(--gold) 13%, transparent), transparent 70%), var(--bg-2);
}
html .afc .afc-mast::before { display: none; }
html .afc .afc-mast--illustrated .afc-mast__body { padding-block: clamp(28px, 5vw, 64px); }
html .afc .afc-mast__eyebrow, html .af-request-eyebrow { margin: 0 0 12px; color: var(--gold); font: 600 var(--step--1)/1.2 var(--f-ui); letter-spacing: .16em; text-transform: uppercase; }
html .afc .afc-mast .afc-mast__title, html .afc .afc-mast--illustrated .afc-mast__title, html .af-request-public-hero h1 {
	max-width: 20ch; font: 400 var(--h1)/1.06 var(--f-display); letter-spacing: var(--display-track, -.025em); color: var(--ink); text-wrap: balance;
}
html .afc .afc-mast__lede, html .afc .afc-mast--illustrated .afc-mast__lede, html .af-request-public-hero p { max-width: 52ch; color: var(--ink-2); font-size: var(--step-1); line-height: 1.55; }
html .afc .afc-mast--illustrated .afc-mast__visual { position: relative; width: 100%; max-width: 520px; margin: 0 auto; aspect-ratio: 4 / 5; align-self: center; }
html .afc .afc-mast--illustrated .afc-mast__image, html .af-request-public-hero__image {
	height: 100%; overflow: visible; background: none; rotate: 2deg; padding: 10px; background-color: var(--surface); box-shadow: var(--paper-shadow); border-radius: 2px;
}
html .afc .afc-mast--illustrated .afc-mast__image img, html .af-request-public-hero__image img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; border-radius: 1px; }
html .afc .afc-mast--illustrated .afc-mast__image::before, html .af-request-public-hero__image::before {
	content: ""; position: absolute; z-index: 2; top: -10px; left: 50%; width: 92px; height: 22px; translate: -50% 0; rotate: -3deg;
	background: color-mix(in srgb, var(--gold) 34%, transparent); opacity: .75;
}
html .afc .afc-mast--illustrated .afc-mast__image { position: relative; }
@media (min-width: 900px) {
	html .afc .afc-mast--illustrated .afc-mast__body { grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); column-gap: clamp(40px, 6vw, 110px); }
	html .afc .afc-mast--illustrated .afc-mast__visual { width: 100%; max-height: 520px; }
}
@media (max-width: 899px) {
	html .afc .afc-mast--illustrated .afc-mast__visual { max-width: 340px; aspect-ratio: 4 / 4.4; margin-top: 8px; }
}

/* ---------- buttons ---------- */
html .afc :is(.afc-btn, .afc-mast__btn), html .afc .afc-mast--illustrated .afc-mast__btn, html :is(.af-request-btn) {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 48px; padding: 0 1.5em;
	border: 0; border-radius: var(--btn-radius, 0); background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2);
	font: 600 var(--step--1)/1 var(--f-ui); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; cursor: pointer;
	transition: background-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
html .afc :is(.afc-btn, .afc-mast__btn):hover, html .afc .afc-mast--illustrated .afc-mast__btn:hover, html .af-request-btn:hover { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
html .afc :is(.afc-btn--primary, .afc-mast__btn--primary), html .afc .afc-mast--illustrated .afc-mast__btn--primary, html .af-request-btn--primary {
	background: var(--ink); color: var(--bg); box-shadow: none;
}
html .afc :is(.afc-btn--primary, .afc-mast__btn--primary):hover, html .afc .afc-mast--illustrated .afc-mast__btn--primary:hover, html .af-request-btn--primary:hover { background: var(--ink-2); color: var(--bg); box-shadow: none; }
html .afc :is(.afc-btn, .afc-mast__btn):active { transform: scale(.98); }
html .afc :is(.afc-btn, .afc-mast__btn) svg { width: 16px; height: 16px; flex: none; }
html .afc .afc-btn--small { min-height: 40px; padding: 0 1.1em; font-size: 12px; }
html .afc .afc-btn--block { width: 100%; }
html .afc .afc-btn--danger { color: #c0563a; box-shadow: inset 0 0 0 1px color-mix(in srgb, #c0563a 50%, transparent); }

/* ---------- fields ---------- */
html .afc :is(input[type="text"], input[type="search"], input[type="email"], input[type="password"], input[type="url"], input[type="number"], select, textarea),
html .af-request-public :is(input[type="search"], input[type="text"], select) {
	min-height: 48px; padding: 0 14px; border: 0; border-radius: var(--radius, 3px); background: var(--bg); color: var(--ink);
	box-shadow: inset 0 0 0 1px var(--line-2); font: 400 1rem/1.3 var(--f-ui); transition: box-shadow var(--t-fast);
}
html .afc textarea { padding: 12px 14px; min-height: 140px; line-height: 1.55; }
html .afc select, html .af-request-public select { padding-right: 38px; -webkit-appearance: none; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(-45deg, transparent 50%, var(--ink-2) 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
html .afc :is(input, select, textarea):hover { box-shadow: inset 0 0 0 1px var(--ink-3); }
html .afc :is(input, select, textarea):focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--ink), 0 0 0 4px color-mix(in srgb, var(--gold) 24%, transparent); }
html .afc ::placeholder { color: var(--ink-3); opacity: 1; }
html .afc .afc-field > label, html .afc .afc-fieldset legend { color: var(--ink); font: 600 var(--step--1)/1.3 var(--f-ui); }
html .afc .afc-field__help { color: var(--ink-3); font-size: 13px; }
html .afc :is(input[type="checkbox"], input[type="radio"]) { accent-color: var(--ink); }
html .afc input:-webkit-autofill, html .afc input:-webkit-autofill:hover, html .afc input:-webkit-autofill:focus {
	-webkit-text-fill-color: var(--ink); caret-color: var(--ink); transition: background-color 600000s 0s, color 600000s 0s;
	-webkit-box-shadow: inset 0 0 0 1px var(--line-2), inset 0 0 0 100px var(--bg); box-shadow: inset 0 0 0 1px var(--line-2), inset 0 0 0 100px var(--bg);
}
html .afc input:-webkit-autofill:focus { -webkit-box-shadow: inset 0 0 0 1.5px var(--ink), 0 0 0 4px color-mix(in srgb, var(--gold) 24%, transparent), inset 0 0 0 100px var(--bg); box-shadow: inset 0 0 0 1.5px var(--ink), 0 0 0 4px color-mix(in srgb, var(--gold) 24%, transparent), inset 0 0 0 100px var(--bg); }

/* ---------- tabs, filters, chips ---------- */
html .afc :is(.afc-hub__tabs, .afc-chrome-bar__states) { display: flex; gap: 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; border: 0; padding: 0; }
html .afc :is(.afc-hub__tabs a, .afc-filter, .afc-chip, .afc-topics__list a), html .af-request-quick-filters :is(a, button) {
	display: inline-flex; align-items: center; flex: none; min-height: 40px; padding: 0 16px; border: 0; border-radius: var(--radius-pill);
	background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); font: 500 var(--step--1)/1 var(--f-ui); text-decoration: none; transition: color var(--t-fast), box-shadow var(--t-fast), background-color var(--t-fast);
}
html .afc :is(.afc-hub__tabs a, .afc-filter, .afc-chip, .afc-topics__list a):hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink-3); }
html .afc :is(.afc-hub__tabs a.is-current, .afc-filter.is-current, .afc-filter[aria-current], .afc-filter.is-active, .afc-chip.is-current), html .af-request-quick-filters :is(.is-current, [aria-current], [aria-pressed="true"]) { background: var(--ink); color: var(--bg); box-shadow: none; }
html .afc .afc-topics__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
html .afc .afc-topics__list li { margin: 0; }

/* the search bars: one field, the button sits inside the line like everywhere else on the shop */
html .afc :is(.afc-hub__search, .afc-chrome-bar__form) { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; margin: 0; }
html .afc :is(.afc-hub__search input, .afc-chrome-bar__search) { flex: 1 1 240px; min-width: 0; }
html .afc .afc-hub__discover, html .afc .afc-chrome-bar { display: grid; gap: 16px; padding: 0 0 8px; margin-bottom: 18px; border: 0; background: none; box-shadow: none; }

/* ---------- panels, sections, cards ---------- */
html .afc :is(.afc-panel, .afc-card, .afc-teaser, .afc-section--card, .afc-form-block, .afc-circle-directory__guide, .afc-charter__principle, .afc-thread, .afc-reply),
html .af-request-public :is(.af-request-card, .af-request-browser, .af-request-empty) {
	background: var(--surface); color: var(--ink); border: 0; border-radius: var(--card-radius, 3px); box-shadow: var(--paper-shadow, inset 0 0 0 1px var(--line));
}
html .afc .afc-panel { position: relative; padding: clamp(20px, 2.4vw, 28px); }
html .afc .afc-panel + .afc-panel { margin-top: 18px; }
html .afc .afc-panel__title, html .afc .afc-section__title { margin: 0 0 14px; font: 400 var(--step-2)/1.15 var(--f-display); color: var(--ink); }
html .afc .afc-panel__note, html .afc .afc-panel p { color: var(--ink-2); font-size: var(--step--1); line-height: 1.55; }
html .afc .afc-panel__more { display: inline-flex; margin-top: 14px; color: var(--ink); font: 600 var(--step--1)/1 var(--f-ui); text-underline-offset: 4px; }
html .afc .afc-panel a[data-wa]:not(.afc-btn) { display: inline-flex; margin: 4px 0 14px; color: var(--ink); font-weight: 600; text-underline-offset: 4px; }
html .afc .afc-rules { margin: 0; padding: 0; list-style: none; counter-reset: r; display: grid; gap: 10px; }
html .afc .afc-rules li { position: relative; counter-increment: r; padding-left: 34px; color: var(--ink-2); font-size: var(--step--1); line-height: 1.5; }
html .afc .afc-rules li::before { content: counter(r, decimal-leading-zero); position: absolute; left: 0; top: -1px; width: auto; height: auto; background: none; border: 0; color: var(--gold); font: italic 400 var(--step-0)/1.2 var(--f-display); }
html .afc .afc-card, html .afc .afc-teaser { padding: clamp(18px, 2vw, 24px); transition: transform var(--t-fast), box-shadow var(--t-fast); }
html .afc :is(.afc-card, .afc-teaser):hover { transform: translateY(-2px); }

/* ---------- empty states: the mascot keeps the room warm ---------- */
html .afc :is(.afc-empty-hub, .afc-directory__empty, .afc-theme__empty, .afc-circle-directory__empty, .afc-empty), html .af-request-public .af-request-empty {
	position: relative; display: grid; justify-items: center; gap: 10px; padding: clamp(28px, 4vw, 52px) clamp(20px, 3vw, 40px); text-align: center;
	background: var(--surface); border: 0; border-radius: var(--card-radius, 3px); box-shadow: var(--paper-shadow, inset 0 0 0 1px var(--line)); color: var(--ink-2);
}
html .afc :is(.afc-empty-hub, .afc-directory__empty, .afc-theme__empty, .afc-circle-directory__empty, .afc-empty)::before {
	content: ""; width: 120px; height: 120px; background: url("../img/mascots/bud-sleepy.webp") center / contain no-repeat;
	filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .18));
}
html .afc :is(.afc-empty-hub, .afc-directory__empty, .afc-theme__empty, .afc-circle-directory__empty, .afc-empty) :is(h2, h3, p:first-child) { max-width: 26ch; margin: 0; font: 400 var(--step-3)/1.15 var(--f-display); color: var(--ink); }
html .afc :is(.afc-empty-hub, .afc-directory__empty, .afc-theme__empty, .afc-circle-directory__empty, .afc-empty) p { max-width: 56ch; margin: 0; font-size: var(--step-0); line-height: 1.6; color: var(--ink-2); }
html .af-request-public .af-request-empty__symbol { display: none; }

/* ---------- messages, notices, disclosure ---------- */
html .afc :is(.afc-message, .afc-notice) { padding: 12px 16px; border: 0; border-radius: var(--radius, 3px); color: var(--ink); box-shadow: inset 3px 0 0 var(--tone, var(--ink-3)); background: color-mix(in srgb, var(--tone, var(--ink-3)) 12%, var(--surface)); font-size: var(--step--1); }
html .afc :is(.afc-message--bad, .afc-notice--bad, .afc-notice--error) { --tone: #c0563a; }
html .afc :is(.afc-message--good, .afc-notice--good, .afc-notice--success) { --tone: var(--gold); }
html .afc .afc-disclosure { margin-block: 28px clamp(40px, 6vw, 80px); padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px; line-height: 1.6; text-align: center; }

/* ---------- product requests band (AbayaFemme Commerce) ---------- */
html .afc .af-request-hub-invitation {
	display: grid; gap: 20px; align-items: center; margin-block: clamp(32px, 5vw, 64px) 0; padding: clamp(24px, 3vw, 40px);
	background: var(--surface); border: 0; border-radius: var(--card-radius, 3px); box-shadow: var(--paper-shadow);
}
@media (min-width: 900px) { html .afc .af-request-hub-invitation { grid-template-columns: minmax(0, 1fr) auto; } }
html .afc .af-request-hub-invitation h2 { margin: 0; max-width: 22ch; font: 400 var(--step-3)/1.12 var(--f-display); color: var(--ink); }
html .afc .af-request-hub-invitation p { margin: 8px 0 0; color: var(--ink-2); }
html .afc .af-request-hub-invitation__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- page rhythm ---------- */
html .afc :is(.afc-hub__grid, .afc-directory, .afc-theme__body, .afc-charter__layout, .afc-circle-directory) { padding-block: clamp(28px, 4vw, 56px); }
html .afc .afc-wrap { width: 100%; max-width: var(--maxw, 1560px); margin-inline: auto; padding-inline: var(--gutter, 24px); }
html .afc .afc-mast--illustrated .afc-mast__inner { width: 100%; max-width: var(--maxw, 1560px); padding-inline: var(--gutter, 24px); }

/* ======================================================================
   Sign-in doors (connexion, inscription, mot de passe): one écrin, two leaves.
   ====================================================================== */
html .afc.door { padding-block: 0 clamp(48px, 7vw, 110px); }
.afc.door .crumbs { padding-block: 16px 20px; }
.door__shell {
	--hue: #C9BBA6;
	position: relative; display: grid; overflow: visible; background: var(--surface); border-radius: var(--radius-lg, 6px); box-shadow: var(--paper-shadow);
}
.door__shell::before { content: ""; position: absolute; z-index: 3; top: -10px; left: 50%; width: 104px; height: 22px; translate: -50% 0; rotate: -2deg; background: color-mix(in srgb, var(--gold) 32%, transparent); opacity: .75; }
.door__stage { order: -1; }
@media (min-width: 960px) { .door__shell { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* the form leaf */
.door__panel { padding: clamp(24px, 4vw, 64px) clamp(22px, 4vw, 64px); }
.door__tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin-bottom: clamp(22px, 3vw, 34px); border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1px var(--line-2); }
html .afc .door__tabs a { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: var(--radius-pill); color: var(--ink-2); font: 600 var(--step--1)/1 var(--f-ui); letter-spacing: .04em; text-decoration: none; transition: background-color var(--t-fast), color var(--t-fast); }
html .afc .door__tabs a:hover { color: var(--ink); }
html .afc .door__tabs a[aria-current] { background: var(--ink); color: var(--bg); }
.door__head { margin-bottom: clamp(20px, 3vw, 30px); }
html .afc .door__head h1 { margin: 10px 0 0; font: 400 var(--h1)/1.06 var(--f-display); letter-spacing: var(--display-track, -.025em); }
.door__intro { margin: 12px 0 0; max-width: 46ch; color: var(--ink-2); font-size: var(--step-0); line-height: 1.55; }
.door__intro p { margin: 0 0 .6em; }
html .afc.door .afc-message { margin: 0 0 18px; }
html .afc.door .afc-portal__form { display: grid; gap: 18px; margin: 0; }
html .afc.door .afc-field { position: relative; margin: 0; }
html .afc.door .afc-field > label { display: block; margin-bottom: 8px; }
html .afc.door .afc-field :is(input[type="text"], input[type="email"], input[type="password"]) { width: 100%; min-height: 52px; }
/* the show-password toggle sits inside the field's own row, whatever follows it (help text on the join form) and whatever the field's type once revealed */
html .afc .afc-field--reveal { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; }
html .afc .afc-field--reveal > label { grid-row: 1; }
html .afc .afc-field--reveal > input { grid-row: 2; grid-column: 1; width: 100%; padding-right: 116px; }
html .afc .afc-field--reveal > .afc-reveal { position: static; grid-row: 2; grid-column: 1; justify-self: end; align-self: center; margin-right: 6px; }
html .afc .afc-field--reveal > .afc-field__help { grid-row: 3; }
html .afc .afc-reveal { min-height: 40px; min-width: 96px; padding: 0 14px; border: 0; border-radius: 2px; background: var(--bg-2); color: var(--ink-2); font: 600 11px/1 var(--f-ui); letter-spacing: .1em; text-transform: uppercase; box-shadow: none; cursor: pointer; transition: color var(--t-fast), background-color var(--t-fast); }
html .afc .afc-reveal:hover, html .afc .afc-reveal:focus-visible { color: var(--ink); background: var(--surface-2); }
html .afc .afc-reveal[aria-pressed="true"] { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
html .afc.door .afc-check { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-size: var(--step--1); line-height: 1.5; }
html .afc.door .afc-portal__submit { margin: 6px 0 0; }
html .afc.door .afc-portal__submit .afc-btn { width: 100%; min-height: 54px; }
.door__links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); font-size: var(--step--1); }
html .afc .door__links a, html .afc .door__legal a { color: var(--ink); text-underline-offset: 3px; }
.door__legal { margin: 12px 0 0; color: var(--ink-3); font-size: 13px; line-height: 1.5; }

/* the stage leaf: an arched niche that takes the mascot's colour */
.door__stage {
	position: relative; display: grid; align-content: center; justify-items: center; gap: clamp(18px, 2.4vw, 28px); padding: clamp(28px, 4vw, 56px);
	background: radial-gradient(ellipse 80% 60% at 50% 38%, color-mix(in srgb, var(--hue) 16%, transparent), transparent 70%), var(--bg-2);
	border-radius: var(--radius-lg, 6px) var(--radius-lg, 6px) 0 0; transition: background-color .9s var(--ease);
}
@media (min-width: 960px) { .door__stage { border-radius: var(--radius-lg, 6px) 0 0 var(--radius-lg, 6px); border-right: 1px solid var(--line); } }
.door__scene { position: relative; width: min(100%, 400px); aspect-ratio: 1 / 1.04; }
.door__niche { position: absolute; inset: 0 12% 0; }
.door__arch {
	position: absolute; inset: 0 0 9%; border-radius: 999px 999px 4px 4px;
	background: linear-gradient(180deg, color-mix(in srgb, var(--hue) 34%, var(--surface)) 0%, color-mix(in srgb, var(--hue) 12%, var(--surface)) 78%);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent), inset 0 30px 60px -30px rgba(0, 0, 0, .25), var(--paper-shadow);
	transition: background 1.1s var(--ease);
}
.door__arch::after { content: ""; position: absolute; inset: 12px 12px 0; border-radius: inherit; border: 1px solid color-mix(in srgb, var(--surface) 40%, transparent); border-bottom: 0; }
.door__plinth { position: absolute; left: -6%; right: -6%; bottom: 4%; height: 7%; border-radius: 3px; background: color-mix(in srgb, var(--hue) 18%, var(--surface-2)); box-shadow: var(--paper-shadow); transition: background 1.1s var(--ease); }
.door__plinth::after { content: ""; position: absolute; left: 22%; right: 22%; top: -8%; height: 30%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .28), transparent); }
.door__mascot { position: absolute; left: 50%; bottom: 9%; width: 66%; aspect-ratio: 1; translate: -50% 0; cursor: pointer; }
html .afc .door__bubble {
	position: absolute; z-index: 2; top: 3%; right: -16%; max-width: 220px; margin: 0; padding: 12px 16px; border-radius: 16px 16px 16px 4px;
	background: var(--surface); color: var(--ink); font: italic 400 var(--step-0)/1.35 var(--f-display); box-shadow: var(--paper-shadow);
	opacity: 0; translate: 0 6px; transition: opacity .35s var(--ease), translate .35s var(--ease);
}
html .afc .door__bubble.is-in { opacity: 1; translate: 0 0; }
.door__bubble::after { content: ""; position: absolute; left: 18px; bottom: -7px; width: 14px; height: 14px; background: inherit; rotate: 45deg; border-radius: 2px; z-index: -1; }
.door__hues { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.door__hues button { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: var(--c); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14), 0 0 0 0 var(--ink); transition: box-shadow var(--t-fast), transform var(--t-fast); }
.door__hues button:hover { transform: translateY(-2px); }
.door__hues button[aria-pressed="true"] { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14), 0 0 0 3px var(--bg-2), 0 0 0 4.5px var(--ink); }
.door__note { width: min(100%, 440px); }
html .afc .door__title { margin: 0; font: 400 var(--step-2)/1.2 var(--f-display); color: var(--ink); text-align: center; }
.door__points { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.door__points li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; margin: 0; color: var(--ink-2); font-size: var(--step--1); line-height: 1.5; }
.door__points .ico { width: 32px; height: 32px; padding: 7px; border-radius: 50%; color: var(--gold); box-shadow: inset 0 0 0 1px var(--line-2); }
@media (max-width: 959px) {
	/* a short band above the form: the mascot in her niche, her words beside her, the swatches underneath */
	.door__stage { grid-template-columns: 140px 1fr; justify-items: start; align-items: center; gap: 14px 16px; padding: 18px 20px 16px; }
	.door__scene { width: 140px; }
	html .afc .door__bubble { top: 50%; left: calc(100% + 14px); right: auto; width: max-content; max-width: min(200px, calc(100vw - 230px)); translate: 0 -50%; font-size: var(--step--1); }
	html .afc .door__bubble.is-in { translate: 0 -50%; }
	.door__bubble::after { left: -6px; bottom: auto; top: calc(50% - 7px); }
	.door__hues { grid-column: 1 / -1; justify-self: stretch; justify-content: center; gap: 10px; }
	.door__hues button { width: 26px; height: 26px; }
	.door__note { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { html .afc .door__bubble, .door__arch, .door__stage { transition: none; } }

/* ---------- product requests (AbayaFemme Commerce), details ---------- */
html .af-request-public, html .af-request-public * {
	--af-request-ink: var(--ink); --af-request-muted: var(--ink-2); --af-request-line: var(--line); --af-request-paper: var(--surface); --af-request-soft: var(--bg-2);
	--af-request-accent: color-mix(in srgb, var(--gold) 62%, var(--ink)); --af-request-olive: var(--ink-2); --af-request-action: var(--ink); --af-request-action-hover: var(--ink-2); --af-request-white: var(--bg);
}
html .af-request-public .af-request-quick-filters a[aria-current="true"] { border-color: var(--ink); background: var(--ink); color: var(--bg); box-shadow: none; }
html .af-request-public .af-request-public-hero .af-request-eyebrow { color: var(--gold); }
html .af-request-public .af-request-public-hero h1 { max-width: 18ch; font-size: var(--h1); line-height: 1.06; }
html .af-request-public .af-request-empty { grid-template-columns: minmax(0, 1fr) auto; justify-items: start; text-align: left; }
html .af-request-public .af-request-empty h3 { color: var(--ink); font: 400 var(--step-3)/1.1 var(--f-display); }
@media (max-width: 760px) { html .af-request-public .af-request-empty { grid-template-columns: 1fr; } html .af-request-public .af-request-empty__actions { grid-column: 1; } }
html .af-request-public .af-request-filters button[type="submit"] { white-space: nowrap; }

/* ---------- member area (`.afm`) ---------- */
html .afm, html .afm * { --afm-whatsapp: var(--gold); }
html .afm .afm-mast {
	border-bottom: 1px solid var(--line); color: var(--ink);
	background: radial-gradient(ellipse 55% 90% at 85% 50%, color-mix(in srgb, var(--gold) 12%, transparent), transparent 70%), var(--bg-2);
}
html .afm .afm-mast__eyebrow { color: var(--gold); font: 600 var(--step--1)/1.2 var(--f-ui); letter-spacing: .14em; text-transform: uppercase; }
html .afm .afm-mast__title { font: 400 var(--h1)/1.06 var(--f-display); letter-spacing: var(--display-track, -.025em); color: var(--ink); }
html .afm .afm-mast__lede { color: var(--ink-2); }
html .afm .afm-nav__link.is-current { background: var(--surface-2); color: var(--ink); font-weight: 600; }
html .afm .afm-nav__link.is-current::before { background: var(--gold); }
html .afm .afm-nav__link.is-current .afm-nav__icon { color: var(--gold); }
html .afm :is(.afm-btn) { display: inline-flex; align-items: center; gap: .55em; min-height: 46px; padding: 0 1.4em; border: 0; border-radius: var(--btn-radius, 0); background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); font: 600 var(--step--1)/1 var(--f-ui); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
html .afm .afm-btn:hover { box-shadow: inset 0 0 0 1px var(--ink); color: var(--ink); background: transparent; }
html .afm .afm-btn--primary, html .afm .afm-btn--primary:hover { background: var(--ink); color: var(--bg); box-shadow: none; }
html .afm .afm-btn--primary:hover { background: var(--ink-2); }
html .afm .afm-phero { background: radial-gradient(ellipse 60% 120% at 88% 0%, color-mix(in srgb, var(--gold) 12%, transparent), transparent 70%), var(--surface); box-shadow: var(--paper-shadow); border: 0; }
html .afm .afm-panel--wait { border-color: var(--line-2); background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 8%, var(--surface)) 0%, var(--surface) 60%); }
html .afm .afm-tag { color: #1B1513; }
html .af-request-public .af-request-eyebrow, html .afc .afc-mast__eyebrow, html .afm .afm-mast__eyebrow { color: color-mix(in srgb, var(--gold) 78%, var(--ink)); }
