/*
Theme Name:   WMAI — What Is My Adresse IP
Theme URI:    https://whatismyadresseip.com/
Description:  Thème du site whatismyadresseip (outil d'adresse IP, guides, 11 langues). Identité « câble Ethernet », mode sombre, emplacements AdSense sans décalage de mise en page, compatible Polylang. À utiliser avec l'extension WMAI Core.
Version:      1.1.0
Requires at least: 6.4
Requires PHP: 7.4
Author:       whatismyadresseip
License:      GPL-2.0-or-later
Text Domain:  wmai
*/

/* Signature: the 4 Ethernet pair colours (T568B) underline each octet of the IP. */
:root {
	--bg: #F3F5F9;
	--surface: #FFFFFF;
	--surface-2: #EAEEF4;
	--ink: #14213A;
	--muted: #55637A;
	--line: #D8DFE9;
	--link: #1D5BC9;
	--primary: #1D5BC9;
	--primary-ink: #FFFFFF;
	--p1: #E9782F;
	--p2: #2A9D68;
	--p3: #3B7BE8;
	--p4: #A47148;
	--ok: #1F8A57;
	--warn: #C2570F;
	--focus: #3B7BE8;
	--radius-s: 6px;
	--radius: 10px;
	--radius-l: 18px;
	--shadow: 0 1px 0 rgba(20, 33, 58, .04), 0 10px 30px -12px rgba(20, 33, 58, .18);
	--font-sans: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--font-mono: 'Martian Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
	--stripe: linear-gradient(90deg, var(--p1) 0 25%, var(--p2) 25% 50%, var(--p3) 50% 75%, var(--p4) 75% 100%);
	color-scheme: light;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #0F1A2E; --surface: #15223A; --surface-2: #1B2B48; --ink: #E8EDF5; --muted: #9DAAC0; --line: #27375A;
		--link: #8DB2FF; --primary: #8DB2FF; --primary-ink: #0F1A2E; --ok: #4CC58C; --warn: #F39A55;
		--shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 14px 34px -14px rgba(0, 0, 0, .7); color-scheme: dark;
	}
}
:root[data-theme="dark"] {
	--bg: #0F1A2E; --surface: #15223A; --surface-2: #1B2B48; --ink: #E8EDF5; --muted: #9DAAC0; --line: #27375A;
	--link: #8DB2FF; --primary: #8DB2FF; --primary-ink: #0F1A2E; --ok: #4CC58C; --warn: #F39A55;
	--shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 14px 34px -14px rgba(0, 0, 0, .7); color-scheme: dark;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
	margin: 0; background: var(--bg); color: var(--ink);
	font: 400 1.0625rem/1.6 var(--font-sans);
	-webkit-font-smoothing: antialiased;
}
img, iframe { max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--font-sans); color: var(--ink); text-wrap: balance; margin: 0 0 .5em; letter-spacing: -0.015em; }
h1 { font-weight: 800; line-height: 1.08; }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: 1.125rem; font-weight: 700; line-height: 1.3; }
p { margin: 0 0 1em; max-width: 68ch; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
code { font-family: var(--font-mono); font-size: .85em; background: var(--surface-2); padding: .1em .4em; border-radius: 4px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: var(--radius-s); z-index: 200; }
.skip-link:focus { top: 12px; }
.wrap { max-width: 1120px; margin-inline: auto; padding-inline: 20px; }
.mt-xl { margin-top: 56px; }

/* ===== Buttons ===== */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font: 600 .9375rem/1 var(--font-sans); padding: 12px 18px; min-height: 44px;
	border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
	cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover { border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.btn--primary:hover { filter: brightness(1.08); border-color: var(--primary); }
.btn.is-done { border-color: var(--ok); color: var(--ok); }
.btn--primary.is-done { background: var(--ok); border-color: var(--ok); color: #fff; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; text-align: start; }
.link-btn:hover { color: var(--ink); }
.icon-btn {
	width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
	color: var(--ink); cursor: pointer; display: inline-grid; place-items: center;
}
.icon-btn:hover { border-color: var(--ink); }

/* ===== Header ===== */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--bg) 86%, transparent);
	backdrop-filter: blur(12px) saturate(150%); -webkit-backdrop-filter: blur(12px) saturate(150%);
	border-bottom: 1px solid var(--line);
}
.site-header__row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.02em; }
.wordmark__mark { width: 30px; height: 30px; flex: none; }
.site-nav { display: flex; gap: 4px; margin-inline-start: auto; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .9375rem; padding: 8px 12px; border-radius: 999px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.header-tools { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; }

.theme-toggle::before {
	content: ""; width: 18px; height: 18px; background: currentColor;
	-webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
	--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8z'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] .theme-toggle::before { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4.5'/%3E%3Cpath d='M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .theme-toggle::before { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4.5'/%3E%3Cpath d='M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4'/%3E%3C/svg%3E"); }
}

.lang-switch { position: relative; }
.lang-switch__button {
	font: 500 .875rem/1 var(--font-sans); color: var(--ink); background: var(--surface);
	border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; height: 40px; cursor: pointer;
}
.lang-switch__button:hover { border-color: var(--ink); }
.lang-switch__menu {
	position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 60;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
	padding: 6px; display: grid; grid-template-columns: repeat(2, minmax(140px, 1fr)); gap: 2px;
}
.lang-switch__menu a { padding: 9px 12px; border-radius: var(--radius-s); color: var(--ink); text-decoration: none; font-size: .9375rem; }
.lang-switch__menu a:hover { background: var(--surface-2); }
.lang-switch__menu a[aria-current="true"] { font-weight: 700; background: var(--surface-2); }

/* ===== Hero ===== */
.hero { padding-block: clamp(40px, 7vw, 76px) 28px; }
.hero h1 { font-size: clamp(2.25rem, 6vw, 3.75rem); max-width: 16ch; }
.hero__lead { font-size: 1.1875rem; color: var(--muted); max-width: 62ch; margin-top: 16px; }

/* ===== IP panel (the tool) ===== */
.ip-panel {
	position: relative; background: var(--surface); border: 1px solid var(--line);
	border-radius: var(--radius-l); box-shadow: var(--shadow); overflow: hidden;
}
.ip-panel::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--stripe); }
.ip-panel__main { padding: 40px clamp(20px, 4vw, 40px) 28px; }
.ip-panel__label { margin: 0 0 10px; color: var(--muted); font-weight: 500; }
.ip-panel__ip {
	font-family: var(--font-mono); font-weight: 700; line-height: 1.15;
	font-size: clamp(2.1rem, 9vw, 4.4rem); letter-spacing: -0.04em;
	font-variant-numeric: tabular-nums; overflow-wrap: anywhere; direction: ltr; unicode-bidi: isolate;
	text-align: start;
}
.ip-panel__ip.is-v6 { font-size: clamp(1.15rem, 3.6vw, 2.3rem); letter-spacing: -0.03em; }
.oct { display: inline-block; padding-bottom: .06em; border-bottom: .12em solid var(--p1); }
.oct--2 { border-color: var(--p2); }
.oct--3 { border-color: var(--p3); }
.oct--4 { border-color: var(--p4); }
.sep { color: var(--muted); padding-inline: .04em; }
.ip-panel__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 26px; }
.badge {
	display: inline-flex; align-items: center; height: 30px; padding-inline: 12px; border-radius: 999px;
	background: var(--surface-2); color: var(--ink); font-weight: 600; font-size: .875rem;
}
.badge--muted { color: var(--warn); }
.ip-panel__body { display: grid; grid-template-columns: 1.1fr 1fr; border-top: 1px solid var(--line); }
.facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; }
.facts > div { padding: 18px clamp(20px, 3vw, 28px); border-bottom: 1px solid var(--line); border-inline-end: 1px solid var(--line); min-width: 0; }
.facts dt { color: var(--muted); font-size: .875rem; margin-bottom: 4px; }
.facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
#ipv6-value { font-family: var(--font-mono); font-size: .8125rem; font-weight: 500; direction: ltr; unicode-bidi: isolate; }
.map { margin: 0; display: flex; flex-direction: column; min-height: 280px; background: var(--surface-2); }
.map__frame { flex: 1; position: relative; display: grid; place-items: center; min-height: 240px; }
.map__frame p { color: var(--muted); font-size: .9375rem; padding: 20px; text-align: center; margin: 0; }
.map__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
:root[data-theme="dark"] .map__frame iframe { filter: invert(.9) hue-rotate(180deg) saturate(.6); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .map__frame iframe { filter: invert(.9) hue-rotate(180deg) saturate(.6); } }
.map figcaption { font-size: .8125rem; color: var(--muted); padding: 10px 16px; border-top: 1px solid var(--line); }
.ip-panel__footnote { margin: 0; max-width: none; padding: 14px clamp(20px, 4vw, 40px); font-size: .875rem; color: var(--muted); border-top: 1px solid var(--line); }

/* ===== Sections ===== */
.section { padding-block: clamp(48px, 7vw, 80px); }
.section--alt { background: var(--surface); border-block: 1px solid var(--line); }
.section--band { background: var(--ink); color: var(--bg); }
.section--band h2, .section--band p { color: var(--bg); }
.section--band p { opacity: .82; }
.section h2 { margin-bottom: 20px; }
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.split > div > p { color: var(--muted); }
.section--band .split > div > p { color: var(--bg); }

/* Privacy checks */
.checks { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.check { display: grid; grid-template-columns: 14px minmax(110px, .7fr) 1.3fr; gap: 14px; align-items: baseline; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.check:last-child { border-bottom: 0; }
.check__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); transform: translateY(1px); }
.check[data-state="ok"] .check__dot { background: var(--ok); }
.check[data-state="warn"] .check__dot { background: var(--warn); box-shadow: 0 0 0 4px color-mix(in srgb, var(--warn) 22%, transparent); }
.check[data-state="info"] .check__dot { background: var(--p3); }
.check__name { font-weight: 600; }
.check__value { color: var(--muted); font-size: .9375rem; overflow-wrap: anywhere; }
.check[data-state="warn"] .check__value { color: var(--warn); font-weight: 600; }
.check-summary { font-weight: 600; color: var(--ink) !important; }

/* Inline lookup form */
.inline-form { display: flex; gap: 10px; align-self: center; }
.inline-form input, .tool-form input[type="text"], .tool-form input[type="number"] {
	flex: 1; min-width: 0; height: 52px; padding: 0 16px; border-radius: var(--radius);
	border: 1px solid var(--line); background: var(--surface); color: var(--ink);
	font: 500 1.0625rem var(--font-mono); direction: ltr;
}
.section--band .inline-form input { border-color: transparent; }
.section--band .btn--primary { background: var(--p1); border-color: var(--p1); color: #1a1006; }
.inline-form .btn, .tool-form .btn { height: 52px; }

/* Steps (a real sequence: numbered) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.step { counter-increment: step; padding-top: 18px; border-top: 3px solid var(--p1); }
.step:nth-child(2) { border-color: var(--p2); }
.step:nth-child(3) { border-color: var(--p3); }
.step::before { content: counter(step); font: 700 1rem var(--font-mono); color: var(--muted); display: block; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .9688rem; margin: 0; }

/* Tables */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-block: 8px 20px; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 480px; font-size: .9688rem; }
.compare-table th, .compare-table td { text-align: start; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.compare-table tbody tr:last-child > * { border-bottom: 0; }
.compare-table thead th { background: var(--surface-2); font-weight: 600; }
.compare-table tbody th { font-weight: 600; white-space: nowrap; }
.table-note { font-size: .9375rem; color: var(--muted); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); margin-bottom: 12px; }
.two-col h2 { font-size: 1.375rem; }
.two-col p, #public-private p { color: var(--muted); }

/* FAQ */
.faq-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
	cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
	font-weight: 600; font-size: 1.0625rem;
}
[dir="rtl"] .faq-item summary { padding: 20px 0 20px 40px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
	content: ""; position: absolute; inset-inline-end: 6px; top: 50%; width: 10px; height: 10px;
	border-inline-end: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
	transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq-item p { color: var(--muted); margin: -4px 0 20px; }

/* Link cards (guides + tools) */
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.link-grid--wide { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.link-card {
	display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: var(--radius);
	background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none;
	transition: border-color .15s, transform .15s;
}
.section--alt .link-card { background: var(--bg); }
.link-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.link-card__kind { font-size: .8125rem; color: var(--muted); font-weight: 500; }
.link-card h2, .link-card h3 { font-size: 1.125rem; margin: 0; }
.link-card p { color: var(--muted); font-size: .9375rem; margin: 0; }
.link-card--tool { border-top: 4px solid var(--p2); }

/* ===== Ads ===== */
.ad-slot { margin-block: 36px; text-align: center; min-height: 100px; }
.ad-slot__label { display: block; font-size: .75rem; color: var(--muted); margin-bottom: 6px; }
.ad-slot--display { min-height: 120px; }
.ad-slot--inarticle { min-height: 250px; }
.ad-slot--vertical { min-height: 600px; margin-block: 0; }
.ad-slot--preview {
	display: grid; place-items: center; border: 1px dashed var(--line); border-radius: var(--radius);
	background: repeating-linear-gradient(-45deg, transparent 0 10px, color-mix(in srgb, var(--line) 35%, transparent) 10px 11px);
}
.ad-slot--preview .ad-slot__label { margin: 0; }

/* ===== Page header, breadcrumbs ===== */
.page-header { padding-block: 36px 36px; border-bottom: 1px solid var(--line); background: var(--surface); }
.page-header h1 { font-size: clamp(2rem, 4.6vw, 3rem); max-width: 22ch; }
.page-header--tool { position: relative; }
.page-header--tool::after { content: ""; position: absolute; inset: auto 0 -1px; height: 4px; background: var(--stripe); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 18px; font-size: .875rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-inline-end: 6px; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: .9375rem; margin: 6px 0 0; }

/* ===== Article ===== */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding-block: 44px 64px; }
.article { min-width: 0; }
.article h2 { font-size: 1.5rem; margin-top: 1.9em; }
.article h3 { margin-top: 1.5em; }
.article p, .article li { color: color-mix(in srgb, var(--ink) 86%, var(--muted)); }
.article ul, .article ol { padding-inline-start: 1.3em; max-width: 66ch; }
.article li { margin-bottom: .45em; }
.tldr {
	background: var(--surface); border: 1px solid var(--line); border-inline-start: 5px solid var(--p2);
	border-radius: var(--radius); padding: 20px 24px; margin-bottom: 32px;
}
.tldr .tldr__h { font-size: 1rem; margin: 0 0 6px; }
.tldr p { margin: 0; color: var(--ink) !important; }
.share-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 40px; }
.author-box { margin-top: 32px; padding: 22px 24px; border-radius: var(--radius); background: var(--surface-2); }
.author-box h2 { font-size: 1.0625rem; margin: 0 0 6px; }
.author-box p { margin: 0; font-size: .9688rem; }
.article-aside { display: flex; flex-direction: column; gap: 28px; }
.toc { position: sticky; top: 92px; font-size: .9375rem; }
.toc__h { font-weight: 700; margin-bottom: 8px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-inline-start: 2px solid var(--line); }
.toc a { display: block; padding: 6px 14px; margin-inline-start: -2px; border-inline-start: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--ink); border-color: var(--p3); font-weight: 600; }
.aside-ad { position: sticky; top: 92px; }
.toc + .aside-ad { top: auto; }
.read-progress { position: fixed; inset: 0 0 auto; height: 4px; z-index: 70; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: var(--stripe); background-size: 100vw 100%; transform-origin: 0 50%; transform: scaleX(0); }
[dir="rtl"] .read-progress span { transform-origin: 100% 50%; }

/* ===== Tools ===== */
.tool { max-width: 920px; }
.tool-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow); padding: clamp(20px, 4vw, 32px); }
.tool-form label { display: block; font-weight: 600; margin-bottom: 8px; }
.tool-form__row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.tool-form__row > input[type="text"] { flex: 1 1 260px; }
.field { display: flex; flex-direction: column; }
.field--grow { flex: 1 1 240px; }
.field input { flex: none; width: 100%; }
.field input[type="number"] { width: 110px; }
.tool-form input[type="range"] { width: 100%; margin-top: 18px; accent-color: var(--p3); }
.tool-form__error { color: var(--warn); font-weight: 600; margin: 12px 0 0; }
.tool-result { margin-top: 24px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts--wide { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.facts--wide dd { font-family: var(--font-mono); font-size: .875rem; font-weight: 500; direction: ltr; unicode-bidi: isolate; text-align: start; }
.tool-result .map { min-height: 260px; }
.bits { margin: 0; max-width: none; padding: 16px 20px; font: 500 .8125rem/1.8 var(--font-mono); overflow-wrap: anywhere; direction: ltr; background: var(--surface-2); }
.bits .n { color: var(--p3); font-weight: 700; }
.bits .h { color: var(--p1); }
.prose { margin-block: 12px 40px; }
.prose h2 { margin-top: 1.6em; }
.prose p { color: color-mix(in srgb, var(--ink) 86%, var(--muted)); }

/* ===== Legal / About ===== */
.legal { padding-block: 44px 64px; }
.legal .placeholder { background: color-mix(in srgb, var(--p1) 18%, transparent); padding: 1px 6px; border-radius: 4px; }

/* ===== 404 ===== */
.notfound { text-align: start; }
.notfound__code { font: 700 clamp(4rem, 14vw, 8rem)/1 var(--font-mono); margin: 0 0 12px; background: var(--stripe); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--line); padding-block: 44px 28px; background: var(--surface); font-size: .9375rem; }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer p { color: var(--muted); }
.site-footer__brand { font-weight: 700; color: var(--ink) !important; }
.site-footer__links { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.site-footer__links a { color: var(--muted); text-decoration: none; }
.site-footer__links a:hover { color: var(--ink); text-decoration: underline; }
.site-footer__copy { font-size: .8125rem; margin: 28px 0 0; color: var(--muted); }

/* ===== Cookie banner (only when USE_GOOGLE_CMP = False) ===== */
.cookie-banner {
	position: fixed; inset-inline: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 100;
	max-width: 720px; margin-inline: auto; display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow); padding: 18px 20px;
}
.cookie-banner p { margin: 0; flex: 1 1 300px; font-size: .9375rem; color: var(--muted); }
.cookie-banner__actions { display: flex; gap: 8px; }

/* ===== Responsive ===== */
@media (max-width: 1000px) {
	.article-layout { grid-template-columns: 1fr; gap: 0; }
	.article-aside { display: none; }
}
@media (max-width: 880px) {
	.site-header__row { flex-wrap: wrap; gap: 8px; }
	.header-tools { margin-inline-start: auto; }
	.nav-toggle { order: 2; display: inline-flex; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 .875rem var(--font-sans); align-items: center; cursor: pointer; }
	.site-nav { display: none; order: 3; width: 100%; flex-direction: column; margin: 0; padding-bottom: 12px; }
	.site-nav.is-open { display: flex; }
	.site-nav a { padding: 12px; border-radius: var(--radius-s); }
	.ip-panel__body { grid-template-columns: 1fr; }
	.split { grid-template-columns: 1fr; }
	.steps { grid-template-columns: 1fr; gap: 20px; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.site-footer__grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
	.wordmark span { font-size: .9375rem; }
	.nav-toggle { width: 40px; padding: 0 !important; font-size: 0 !important; justify-content: center; }
	.nav-toggle::before { content: ""; width: 18px; height: 12px; border-block: 2px solid currentColor; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat; }
	.lang-switch__button { width: 40px; padding: 0; font-size: 0; display: inline-grid; place-items: center; }
	.lang-switch__button::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2a15 15 0 0 1 0 20 15 15 0 0 1 0-20Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2a15 15 0 0 1 0 20 15 15 0 0 1 0-20Z'/%3E%3C/svg%3E") center / contain no-repeat; }
	.facts { grid-template-columns: 1fr; }
	.two-col { grid-template-columns: 1fr; }
	.inline-form { flex-direction: column; }
	.check { grid-template-columns: 14px 1fr; }
	.check__value { grid-column: 2; }
	.lang-switch__menu { grid-template-columns: 1fr; }
	.ip-panel__actions .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
	.site-header, .site-footer, .ad-slot, .article-aside, .share-row, .read-progress { display: none !important; }
}

/* ===== WordPress additions ===== */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption, figure.wp-block-image { max-width: 100%; margin: 1.5em 0; }
.wp-caption-text, figcaption { font-size: .875rem; color: var(--muted); }
.article img, .prose img { height: auto; border-radius: var(--radius); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: contents; }
.site-nav li { display: contents; }
.site-nav .current-menu-item > a, .site-nav .current_page_item > a { color: var(--ink); background: var(--surface-2); }
.pagination { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 32px; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); background: var(--surface); }
.pagination .current { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.page-header__lead { font-size: 1.125rem; color: var(--muted); max-width: 62ch; margin: 12px 0 0; }
.entry-content > *:first-child { margin-top: 0; }
