/*
Theme Name: E-RADAR
Theme URI: https://e-radar.intersection.uno
Author: Intersection Association
Description: Light, calm, mobile-first Arabic RTL theme for the E-RADAR platform on cyber gender-based violence, built on the Intersection 2026 graphic charter (Readex Pro, Electric Purple) in a light mode. Pairs with the E-RADAR Core plugin.
Version: 0.1.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: e-radar
*/

/* ---------- Tokens (2026 charter, light mode) ---------- */
:root {
	--bg: #FBF9FF;
	--cream: #FFF9F2;
	--surface: #FFFFFF;
	--lav-50: #F6F2FF;
	--lav-100: #EEE8FF;
	--lav-200: #DDD2FD;
	--line: #E7E0FA;
	--line-2: #CFC2F7;
	--purple: #7C3AED;
	--purple-deep: #5B21B6;
	--purple-ink: #2E1065;
	--lav: #A78BFA;
	--ink: #1C1433;
	--muted: #5C5476;
	--dim: #6B6487;
	--crimson: #E11D48;
	--crimson-deep: #BE123C;
	--crimson-50: #FFF1F3;
	--tone-lav: #F1ECFF;
	--tone-mint: #E7F6F1;
	--tone-rose: #FFEEF1;
	--tone-peach: #FFF3E3;
	--ok: #0F766E;
	--ar: "Readex Pro", "Noto Sans Arabic", "Segoe UI", system-ui, sans-serif;
	--radius: 18px;
	--radius-sm: 12px;
	--gutter: clamp(16px, 4vw, 40px);
	--container: 1160px;
	--header-h: 68px;
	--tabbar-h: 68px;
	--shadow: 0 1px 2px rgba(46, 16, 101, 0.05), 0 8px 24px -12px rgba(46, 16, 101, 0.18);
	--shadow-lg: 0 24px 48px -24px rgba(91, 33, 182, 0.35);
	--focus: 0 0 0 3px #fff, 0 0 0 6px var(--purple);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; background: var(--bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 400 15.5px/1.8 var(--ar);
	text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--purple-deep); text-underline-offset: 3px; }
a:hover { color: var(--purple); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 10px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; font-weight: 600; color: var(--purple-ink); text-wrap: balance; }
h1 { font-size: clamp(26px, 4vw, 42px); font-weight: 700; line-height: 1.25; }
h2 { font-size: clamp(20px, 2.4vw, 26px); }
h3 { font-size: 16.5px; }
p { margin: 0 0 1em; }
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: middle; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--purple-deep); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }
.container { width: min(var(--container), 100%); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(40px, 6vw, 72px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head p { margin: 6px 0 0; color: var(--muted); }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; color: var(--purple); letter-spacing: 0; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 10px 22px; border-radius: 14px; border: 2px solid transparent;
	font: 600 15.5px/1.2 var(--ar); text-decoration: none; cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--purple-deep); color: #fff; }
.btn-primary:hover { background: var(--purple); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--purple-deep); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--purple); color: var(--purple); }
.btn-urgent { background: var(--crimson); color: #fff; }
.btn-urgent:hover { background: var(--crimson-deep); color: #fff; }
.btn-light { background: #fff; color: var(--crimson-deep); }
.btn-light:hover { background: var(--crimson-50); color: var(--crimson-deep); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--purple-ink); }
.logo-mark { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 700; font-size: 19px; color: var(--purple-ink); letter-spacing: .5px; }
.brand-name span { color: var(--crimson); }
.brand-ar { font-size: 13px; font-weight: 700; color: var(--purple); text-align: end; }
.main-nav { margin-inline-start: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--muted); font-weight: 500; font-size: 14px; text-decoration: none; }
.main-nav a:hover { color: var(--purple-deep); background: var(--lav-50); }
.main-nav a[aria-current="page"] { color: var(--purple-deep); background: var(--lav-100); }
.main-nav a.nav-urgent { color: var(--crimson-deep); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.quick-exit {
	display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px; border-radius: 999px;
	background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap;
}
.quick-exit:hover { background: var(--crimson-deep); color: #fff; }
.header-report { min-height: 42px; padding: 8px 18px; font-size: 15px; }

/* ---------- Mobile tab bar ---------- */
.tabbar { display: none; }
@media (max-width: 899px) {
	.main-nav, .header-report { display: none; }
	.header-actions { margin-inline-start: auto; }
	body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); }
	.tabbar {
		display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset-inline: 0; bottom: 0; z-index: 50;
		padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px)); background: rgba(255, 255, 255, 0.97);
		border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -16px rgba(46, 16, 101, 0.25);
	}
	.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 54px; color: var(--dim); font-size: 12px; font-weight: 700; text-decoration: none; border-radius: 12px; }
	.tabbar a .icon { width: 24px; height: 24px; }
	.tabbar a[aria-current="page"] { color: var(--purple-deep); }
	.tabbar a.tab-report .tab-dot { display: grid; place-items: center; width: 46px; height: 46px; margin-top: -18px; border-radius: 50%; background: var(--purple-deep); color: #fff; box-shadow: var(--shadow-lg); border: 4px solid #fff; }
	.tabbar a.tab-danger { color: var(--crimson-deep); }
}
@media (max-width: 420px) {
	.brand-name { font-size: 18px; }
	.logo-mark { width: 36px; height: 36px; }
	.quick-exit { padding: 6px 12px; font-size: 13px; gap: 6px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); }
.hero::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 640px; height: 640px; background: radial-gradient(closest-side, rgba(167, 139, 250, 0.28), transparent); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: clamp(24px, 4vw, 56px); padding-block: clamp(36px, 6vw, 80px); }
.hero h1 span { display: block; }
.hero h1 .accent { color: var(--purple); }
.hero-lead { margin-top: 16px; font-size: clamp(17px, 2vw, 21px); font-weight: 600; color: var(--purple-ink); line-height: 1.5; }
.hero-text { max-width: 34em; margin-top: 12px; color: var(--muted); }
.hero .btn-row { margin-top: 26px; }
.hero-art { position: relative; }
.hero-art svg { display: block; width: 100%; height: auto; }
@media (max-width: 899px) {
	.hero-grid { grid-template-columns: 1fr; }
	.hero-art { order: -1; max-width: 360px; margin-inline: auto; }
	.hero .btn-row .btn { flex: 1 1 200px; }
}

/* ---------- Trust strip ---------- */
.trust { margin-top: -8px; }
.trust ul { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; list-style: none; margin: 0; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.trust li { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 10px; font-weight: 500; font-size: 14px; color: var(--purple-ink); text-align: center; }
.trust li + li { border-inline-start: 1px solid var(--line); }
.trust .icon { color: var(--purple); width: 22px; height: 22px; }
@media (max-width: 899px) {
	.trust ul { grid-template-columns: repeat(2, 1fr); }
	.trust li { justify-content: flex-start; text-align: start; }
	.trust li + li { border-inline-start: 0; }
	.trust li:last-child { grid-column: 1 / -1; }
}

/* ---------- Choice cards ---------- */
.choices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.choice {
	position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px; min-height: 190px;
	border-radius: var(--radius); background: var(--tone-lav); color: var(--ink); text-decoration: none;
	border: 1px solid transparent; transition: transform .15s, box-shadow .15s, border-color .15s;
}
.choice:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-2); color: var(--ink); }
.choice .choice-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #fff; color: var(--purple-deep); }
.choice .choice-icon .icon { width: 28px; height: 28px; }
.choice h3 { font-size: 17px; }
.choice p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.choice .go { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--purple-deep); font-size: 15px; }
.choice.tone-mint { background: var(--tone-mint); }
.choice.tone-mint .choice-icon { color: var(--ok); }
.choice.tone-peach { background: var(--tone-peach); }
.choice.tone-peach .choice-icon { color: #B45309; }
.choice.tone-urgent { background: var(--crimson-50); }
.choice.tone-urgent .choice-icon { background: var(--crimson); color: #fff; }
.choice.tone-urgent h3, .choice.tone-urgent .go { color: var(--crimson-deep); }
@media (max-width: 1024px) { .choices { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
	.choices { grid-template-columns: 1fr; gap: 12px; }
	.choice { flex-direction: row; flex-wrap: wrap; align-items: center; min-height: 0; padding: 16px; column-gap: 14px; }
	.choice .choice-body { flex: 1 1 0; min-width: 0; }
	.choice .go { display: none; }
}

/* ---------- Urgent band ---------- */
.urgent-band { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 24px clamp(20px, 4vw, 36px); border-radius: var(--radius); background: linear-gradient(120deg, var(--purple-ink), var(--purple-deep)); color: #fff; box-shadow: var(--shadow-lg); }
.urgent-band h2 { color: #fff; font-size: clamp(18px, 2.2vw, 22px); }
.urgent-band p { margin: 4px 0 0; color: var(--lav-200); }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 1024px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3 { grid-template-columns: 1fr; } }
.card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card h3, .card h2 { font-size: 16.5px; }
.card h3 a, .card h2 a { color: inherit; text-decoration: none; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.75; }
.card .stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card:has(.stretched:hover) { border-color: var(--line-2); box-shadow: var(--shadow-lg); }
.card-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--tone-lav); color: var(--purple-deep); }
.card-icon .icon { width: 26px; height: 26px; }
.tone-mint .card-icon { background: var(--tone-mint); color: var(--ok); }
.tone-rose .card-icon { background: var(--tone-rose); color: var(--crimson-deep); }
.tone-peach .card-icon { background: var(--tone-peach); color: #B45309; }
.card-foot { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; color: var(--purple-deep); font-weight: 700; font-size: 14px; }
.topic-card { text-decoration: none; color: var(--ink); }
.topic-card .count { color: var(--dim); font-size: 14px; font-weight: 600; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); color: var(--purple-ink); font-weight: 500; font-size: 14px; text-decoration: none; }
a.chip:hover { border-color: var(--purple); color: var(--purple); }
.chip[aria-current="page"] { background: var(--purple-deep); border-color: var(--purple-deep); color: #fff; }

/* ---------- Inclusive band ---------- */
.inclusive { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 28px clamp(20px, 4vw, 36px); border-radius: var(--radius); background: var(--cream); border: 1px solid #F4E6D4; }
.inclusive h2 { font-size: clamp(18px, 2.2vw, 22px); }
.inclusive p { margin: 6px 0 0; color: var(--muted); }
.flags { display: flex; gap: 10px; flex-wrap: wrap; }
.flag { width: 52px; height: 34px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06); }
.flag-rainbow { background: linear-gradient(#E40303 0 16.66%, #FF8C00 0 33.33%, #FFED00 0 50%, #008026 0 66.66%, #24408E 0 83.33%, #732982 0); }
.flag-trans { background: linear-gradient(#5BCEFA 0 20%, #F5A9B8 0 40%, #fff 0 60%, #F5A9B8 0 80%, #5BCEFA 0); }
.flag-bi { background: linear-gradient(#D60270 0 40%, #9B4F96 0 60%, #0038A8 0); }
.flag-lesbian { background: linear-gradient(#D52D00 0 20%, #FF9A56 0 40%, #fff 0 60%, #D362A4 0 80%, #A30262 0); }
.flag-intersex { background: radial-gradient(circle, #FFD800 0 30%, #7902AA 31% 44%, #FFD800 45%); }
.flag-nonbinary { background: linear-gradient(#FCF434 0 25%, #fff 0 50%, #9C59D1 0 75%, #2C2C2C 0); }
@media (max-width: 760px) { .inclusive { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li { position: relative; padding: 22px; padding-top: 64px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; top: 18px; inset-inline-start: 22px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--purple-deep); color: #fff; font-weight: 700; }
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); font-size: 15.5px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Page header ---------- */
.page-hero { padding-block: clamp(32px, 5vw, 56px) 8px; }
.page-hero p { max-width: 40em; margin-top: 10px; color: var(--muted); font-size: 16px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; font-size: 14px; color: var(--dim); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--purple); }

/* ---------- Article / prose ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; } }
.prose { padding: clamp(20px, 4vw, 36px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-size: 16px; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 20px; margin-top: 1.6em; }
.prose h3 { font-size: 17px; margin-top: 1.4em; }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose blockquote { margin-inline: 0; padding: 16px 20px; border-inline-start: 4px solid var(--purple); background: var(--lav-50); border-start-end-radius: 12px; border-end-end-radius: 12px; color: var(--purple-ink); font-weight: 600; }
.prose .wp-block-group.is-style-note, .prose .note { padding: 16px 20px; background: var(--tone-peach); border-radius: 12px; }
.meta-line { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 14px; color: var(--dim); font-size: 14px; font-weight: 600; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--lav-100); color: var(--purple-deep); font-weight: 700; font-size: 13px; text-decoration: none; }
.badge-urgent { background: var(--crimson-50); color: var(--crimson-deep); }
.aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; }
.aside-card { padding: 22px; border-radius: var(--radius); background: var(--purple-ink); color: #fff; }
.aside-card h3 { color: #fff; }
.aside-card p { color: var(--lav-200); font-size: 15px; }
.aside-card .btn { width: 100%; margin-top: 8px; }

/* ---------- Notice ---------- */
.notice { display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px; border-radius: 14px; background: var(--lav-50); border: 1px solid var(--line-2); color: var(--purple-ink); font-size: 15.5px; }
.notice .icon { color: var(--purple); width: 24px; height: 24px; margin-top: 3px; }
.notice p { margin: 0; }
.notice-warn { background: var(--tone-peach); border-color: #F6D9B0; }
.notice-warn .icon { color: #B45309; }

/* ---------- Danger page ---------- */
.danger-hero { background: linear-gradient(160deg, var(--crimson-deep), var(--crimson)); color: #fff; }
.danger-hero h1 { color: #fff; }
.danger-hero p { color: #FFE4E8; max-width: 36em; font-size: 16px; margin-top: 10px; }
.danger-hero .btn-row { margin-top: 24px; }
.danger-hero .page-hero { padding-bottom: clamp(32px, 5vw, 56px); }
.hotlines { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 640px) { .hotlines { grid-template-columns: 1fr; } }
.hotline { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.hotline:hover { border-color: var(--crimson); color: var(--ink); }
.hotline .num { font-size: 26px; font-weight: 700; color: var(--crimson-deep); min-width: 3.2em; text-align: center; direction: ltr; }
.hotline.is-urgent { border-color: #FBC7D1; background: var(--crimson-50); }
.hotline strong { display: block; color: var(--purple-ink); }
.hotline span { color: var(--muted); font-size: 14.5px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.checklist li .icon { color: var(--ok); width: 24px; height: 24px; margin-top: 3px; }
.checklist strong { color: var(--purple-ink); }

/* ---------- Report wizard ---------- */
.wizard { max-width: 760px; margin-inline: auto; padding: clamp(20px, 4vw, 36px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.progress { display: flex; align-items: center; justify-content: center; gap: 0; list-style: none; margin: 0 0 24px; padding: 0; }
.progress li { display: flex; align-items: center; }
.progress li span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--lav-100); color: var(--purple-deep); font-weight: 700; }
.progress li + li::before { content: ""; width: clamp(24px, 8vw, 64px); height: 2px; background: var(--line-2); }
.progress li.is-active span, .progress li.is-done span { background: var(--purple-deep); color: #fff; }
.progress li.is-done + li::before { background: var(--purple-deep); }
.step h2 { font-size: 19px; margin-bottom: 4px; }
.step > p { color: var(--muted); }
.js .step[hidden] { display: none; }
.field { display: grid; gap: 8px; margin-top: 18px; }
.field > label, .field legend { font-weight: 600; color: var(--purple-ink); }
.field .hint { font-size: 14px; color: var(--dim); font-weight: 400; }
fieldset.field { border: 0; padding: 0; margin-inline: 0; }
.input, select.input, textarea.input {
	width: 100%; min-height: 52px; padding: 12px 16px; border: 1.5px solid var(--line-2); border-radius: 12px;
	background: var(--surface); color: var(--ink); font: 400 15.5px/1.6 var(--ar);
}
textarea.input { min-height: 130px; resize: vertical; }
.input:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15); }
.options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (max-width: 560px) { .options { grid-template-columns: 1fr; } }
.option { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 12px; cursor: pointer; font-weight: 400; font-size: 15px; background: var(--surface); }
.option input { width: 20px; height: 20px; accent-color: var(--purple-deep); flex: none; }
.option:has(input:checked) { border-color: var(--purple-deep); background: var(--lav-50); }
.option:has(input:focus-visible) { box-shadow: var(--focus); }
.option.is-urgent:has(input:checked) { border-color: var(--crimson); background: var(--crimson-50); }
.wizard-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.wizard-nav .btn { flex: 1; }
.privacy-line { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; color: var(--dim); font-size: 14px; }
.done-panel { text-align: center; }
.done-panel .done-icon { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; background: var(--tone-mint); color: var(--ok); }
.done-panel .done-icon .icon { width: 36px; height: 36px; }
.done-panel .btn-row { justify-content: center; margin-top: 20px; }
.risk-alert { margin-top: 18px; }

/* ---------- Support page ---------- */
.support-card .btn { margin-top: 12px; align-self: flex-start; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.tech-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.tech-list li { display: flex; gap: 10px; align-items: flex-start; }
.tech-list .icon { color: var(--purple); margin-top: 4px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); text-decoration: none; font-weight: 700; color: var(--purple-ink); }
.pagination .current { background: var(--purple-deep); border-color: var(--purple-deep); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(40px, 6vw, 80px); padding-block: 40px 28px; background: var(--purple-ink); color: var(--lav-200); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand, .site-footer .brand-name { color: #fff; }
.site-footer .brand-ar { color: var(--lav); }
.site-footer h2 { color: #fff; font-size: 15px; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--lav-200); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-tagline { margin-top: 14px; max-width: 30em; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(221, 210, 253, 0.2); font-size: 13.5px; }
.kbd { display: inline-block; padding: 0 6px; border-radius: 6px; border: 1px solid rgba(221, 210, 253, 0.4); font-family: ui-monospace, monospace; font-size: 12px; }

/* ---------- Empty state ---------- */
.empty { padding: 40px 20px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius); }

/* ---------- v0.2: forms, tracking, languages ---------- */
[dir="ltr"] .icon-dir { transform: scaleX(-1); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.lang-switch { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); }
.lang-switch a { display: grid; place-items: center; min-width: 36px; height: 32px; padding: 0 8px; border-radius: 999px; color: var(--muted); font-weight: 700; font-size: 13px; text-decoration: none; }
.lang-switch a:hover { color: var(--purple-deep); }
.lang-switch a[aria-current="true"] { background: var(--purple-deep); color: #fff; }
@media (max-width: 420px) { .lang-switch a { min-width: 30px; padding: 0 6px; } }
.notice-error { background: var(--crimson-50); border-color: #FBC7D1; margin-bottom: 16px; }
.notice-error .icon, .notice-urgent .icon { color: var(--crimson-deep); }
.notice-urgent { background: var(--crimson-50); border-color: #FBC7D1; }
.intro-notes { display: grid; gap: 12px; max-width: 760px; margin: 20px auto; }
.consent-line { margin-top: 18px; font-size: 14.5px; color: var(--muted); }
.contact-details { display: grid; gap: 0; margin-top: 8px; padding: 16px; border-radius: 14px; background: var(--lav-50); }
.contact-details .notice { background: var(--surface); }
.js .contact-details[hidden] { display: none; }
.wizard-nav [data-submit] { flex: 1; }
.js .wizard-nav [data-submit][hidden] { display: none; }
.code-box { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 20px auto; padding: 20px; max-width: 420px; border: 2px dashed var(--purple); border-radius: var(--radius); background: var(--lav-50); }
.code-label { font-weight: 700; color: var(--purple-ink); }
.code-box code { font: 700 clamp(24px, 6vw, 32px)/1.2 ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: 2px; color: var(--purple-ink); user-select: all; }
.done-panel .notice { margin-top: 12px; }
.code-input { font: 700 22px/1.4 ui-monospace, Menlo, monospace; letter-spacing: 2px; text-align: center; text-transform: uppercase; }
.timeline { list-style: none; margin: 24px 0; padding: 0; display: grid; gap: 0; }
.timeline li { position: relative; display: flex; align-items: center; gap: 14px; padding: 10px 0; color: var(--dim); font-weight: 600; }
.timeline li + li::before { content: ""; position: absolute; inset-inline-start: 21px; top: -12px; height: 24px; width: 2px; background: var(--line-2); }
.timeline .tl-dot { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--lav-50); border: 2px solid var(--line-2); font-size: 20px; filter: grayscale(1); opacity: .55; }
.timeline li.is-done { color: var(--purple-ink); }
.timeline li.is-done .tl-dot { filter: none; opacity: 1; border-color: var(--purple); }
.timeline li.is-done + li::before, .timeline li.is-current::before { background: var(--purple); }
.timeline li.is-current { color: var(--purple-deep); font-weight: 600; font-size: 16px; }
.timeline li.is-current .tl-dot { filter: none; opacity: 1; background: var(--lav-100); border-color: var(--purple-deep); box-shadow: 0 0 0 5px rgba(124, 58, 237, 0.15); }
.reply-box { padding: 18px 20px; border-radius: 14px; background: var(--tone-mint); border: 1px solid #C6E9DE; }
.reply-box p { margin: 6px 0 0; }
.danger-zone { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); }
.danger-zone summary { cursor: pointer; color: var(--crimson-deep); font-weight: 700; }
.danger-zone form { margin-top: 12px; }
.survey-mini { max-width: 760px; margin: 28px auto 0; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.survey-mini summary { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 700; color: var(--purple-ink); }
.survey-mini summary .icon { color: var(--purple); }
.tone-rose.card .card-icon { background: var(--tone-rose); color: var(--crimson-deep); }
/* Header: keep labels on one line; French/English labels are longer, so make room on mid-size screens. */
.brand-name, .main-nav a, .header-report, .quick-exit { white-space: nowrap; }
.header-inner { gap: 14px; }
@media (max-width: 1280px) {
	.main-nav a { padding: 8px 9px; font-size: 13.5px; }
	html[lang="fr"] .header-report, html[lang="en"] .header-report { display: none; }
}
@media (max-width: 1080px) and (min-width: 900px) {
	.header-report { display: none; }
	.quick-exit span { display: none; }
}
@media (max-width: 460px) {
	.site-header .brand-text { display: none; }
	.header-inner { gap: 8px; }
	.tabbar a span:last-child { white-space: nowrap; font-size: 11.5px; }
}

/* ---------- v0.3: illustrations, guide ---------- */
.brand-name { letter-spacing: .03em; }
.art svg { display: block; width: 100%; height: auto; }
.page-hero.with-art { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 340px); align-items: center; gap: clamp(20px, 4vw, 48px); }
.art-side { max-width: 340px; justify-self: end; }
@media (max-width: 760px) {
	.page-hero.with-art { grid-template-columns: 1fr; }
	.art-side { max-width: 240px; justify-self: center; order: -1; }
	.hide-mobile { display: none; }
}
.art-card { max-width: 260px; margin: -6px auto 6px; }
.art-empty { max-width: 240px; margin: 0 auto 12px; }
.art-done { max-width: 320px; margin: 0 auto 8px; }
.empty .art-empty { margin-bottom: 4px; }
.guide-banner { display: flex; align-items: center; gap: 16px; margin: 8px 0 24px; padding: 16px 20px; border-radius: var(--radius); background: linear-gradient(120deg, var(--lav-100), var(--surface)); border: 1px solid var(--line-2); color: var(--ink); text-decoration: none; }
.guide-banner:hover { border-color: var(--purple); color: var(--ink); }
.guide-banner > span:nth-child(2) { flex: 1; font-size: 14.5px; color: var(--muted); }
.guide-banner strong { color: var(--purple-ink); font-size: 16px; }
.guide-banner > .icon { color: var(--purple-deep); }
.downloads h2 { font-size: 17px; }
.downloads ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.downloads a { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--lav-50); font-weight: 600; text-decoration: none; }
.downloads a:hover { background: var(--lav-100); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 8px 10px; border: 1px solid var(--line); text-align: start; vertical-align: top; }
.prose th { background: var(--lav-50); color: var(--purple-ink); font-weight: 600; }
.prose div.note { padding: 14px 18px; background: var(--tone-peach); border-radius: 12px; }
/* Longer French/English labels: tighten the desktop header so it stays inside the container. */
@media (min-width: 900px) and (max-width: 1500px) {
	html[lang="fr"] .main-nav a, html[lang="en"] .main-nav a { padding: 8px 7px; font-size: 13.5px; }
	html[lang="fr"] .header-inner, html[lang="en"] .header-inner { gap: 10px; }
	html[lang="fr"] .header-report, html[lang="en"] .header-report { padding-inline: 14px; font-size: 14px; }
}
