/* WP Masquerade theme. Design tokens and components: see DESIGN.md. No external font, no CDN. */

/* ------------------------------------------------------------------ 1. Tokens */
:root {
	--ink: #102449;
	--muted: #5e6e88;          /* reference #687892 darkened to reach AA (5.2:1 on white) */
	--blue: #1765f4;
	--blue2: #407ffd;
	--blue-dark: #0752d7;
	--light: #f5f8ff;
	--edge: #e3eaf5;
	--line: #e8edf5;
	--green: #13a46e;          /* fills and icons */
	--green-text: #0b7a52;     /* green text on white or pale green */
	--orange: #b45309;
	--red: #c0392b;
	--radius: 17px;
	--radius-sm: 9px;
	--shadow: 0 15px 40px rgba(23, 55, 111, .07);
	--shadow-sm: 0 5px 18px rgba(19, 54, 110, .045);
	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
	--container: 1190px;
	--prose: 760px;
	--focus: 0 0 0 3px #fff, 0 0 0 5px var(--blue);
}

/* ------------------------------------------------------------------ 2. Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--ink); background: #fff; overflow-wrap: break-word; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
img, svg, video { max-width: 100%; height: auto; }
p { margin: 0 0 1.1rem; }
h1, h2, h3, h4 { letter-spacing: -.03em; line-height: 1.16; margin: 0 0 .6em; color: #0c1f41; }
h1 { font-size: clamp(2.2rem, 4.15vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.55rem); font-weight: 780; }
h3 { font-size: 1.15rem; font-weight: 720; letter-spacing: -.015em; }
h4 { font-size: 1rem; }
code, kbd, pre { font-family: var(--mono); font-size: .88em; }
:not(pre) > code { background: var(--light); border: 1px solid var(--edge); border-radius: 5px; padding: .08em .35em; color: #23406f; }
mark { background: #fff3c4; color: inherit; padding: 0 .2em; }
hr { border: 0; border-top: 1px solid var(--edge); margin: 2.5rem 0; }
.icon { flex: none; vertical-align: middle; }
.screen-reader-text, .sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 10px; z-index: 1000; background: #fff; color: var(--ink); padding: 10px 14px; border-radius: 8px; box-shadow: var(--shadow); font-weight: 700; }
.skip-link:focus { top: 10px; }

/* ------------------------------------------------------------------ 3. Layout */
.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.container-narrow { width: min(var(--prose), calc(100% - 48px)); margin-inline: auto; }
.section { padding: 84px 0; }
.section-sm { padding: 48px 0; }
.section-tint { background: #f7faff; }
.section-soft { background: linear-gradient(130deg, #f4f8ff, #eef5ff); }
.section-heading { text-align: center; max-width: 780px; margin: 0 auto 40px; }
.section-heading h2 { margin: 0 0 13px; }
.section-heading p { margin: 0; color: var(--muted); font-size: 1.04rem; }
.section-action { text-align: center; margin-top: 30px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.muted { color: var(--muted); }
.small { font-size: .86rem; }

/* ------------------------------------------------------------------ 4. Buttons, badges, links */
.btn, .wp-block-button__link, .wp-element-button {
	display: inline-flex; gap: 9px; align-items: center; justify-content: center;
	background: var(--blue); color: #fff; border: 1px solid var(--blue);
	padding: 12px 21px; border-radius: var(--radius-sm); font-size: .94rem; font-weight: 700; line-height: 1.3;
	box-shadow: 0 6px 16px rgba(25, 101, 244, .15); transition: transform .16s ease, background-color .16s ease;
	text-decoration: none; text-align: center; cursor: pointer;
}
.btn:hover, .wp-block-button__link:hover { transform: translateY(-1px); background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn svg { width: 17px; height: 17px; }
.btn-primary { /* alias of .btn */ }
.btn-secondary, .btn-outline, .is-style-outline .wp-block-button__link {
	background: #fff; color: var(--blue); box-shadow: none; border: 1px solid #a5bdf6;
}
.btn-secondary:hover, .btn-outline:hover, .is-style-outline .wp-block-button__link:hover { background: #eef4ff; color: var(--blue-dark); border-color: var(--blue); }
.btn-inverse { background: #fff; color: var(--blue-dark); border-color: #fff; }
.btn-inverse:hover { background: #edf4ff; color: var(--blue-dark); border-color: #edf4ff; }
.btn-danger { background: var(--red); border-color: var(--red); box-shadow: none; }
.btn-danger:hover { background: #a93226; border-color: #a93226; }
.btn-sm { padding: 9px 14px; font-size: .82rem; }
.nav-actions .btn { white-space: nowrap; flex: none; }
.btn-block { display: flex; width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .55; pointer-events: none; }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 1.2rem; }
.wp-block-buttons.is-content-justification-center { justify-content: center; }
.text-link { font-weight: 700; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.text-link svg { width: 16px; height: 16px; }
.eyebrow, .wpm-kicker {
	display: inline-flex; align-items: center; border-radius: 100px; background: #e9f1ff; color: #1559d6;
	font-size: .72rem; letter-spacing: .1em; font-weight: 800; padding: 7px 12px; margin: 0 0 18px; text-transform: uppercase; line-height: 1.4;
}
.badge, .wpm-tag {
	display: inline-flex; align-items: center; gap: 5px; border-radius: 6px; padding: 3px 8px;
	font-size: .74rem; font-weight: 750; line-height: 1.4; white-space: nowrap; letter-spacing: .01em;
	background: #edf3ff; color: #1559d6; vertical-align: middle;
}
.badge-success, .wpm-tag--free { background: #e5f8ef; color: var(--green-text); }
.badge-pro, .wpm-tag--pro { background: #e9f1ff; color: #1559d6; }
.badge-mixed, .wpm-tag--mixed { background: #f1f0ff; color: #4a36b8; }
.badge-warning, .badge-soon { background: #fff4e0; color: #8a4b00; }
.badge-danger { background: #fdecea; color: #a5281b; }
.badge-neutral { background: #eef1f6; color: #4a5a73; }

/* ------------------------------------------------------------------ 5. Cards, alerts, forms, tables (shared with wpm-members) */
.card, .wpm-card {
	background: #fff; border: 1px solid var(--edge); border-radius: 14px; padding: 24px;
	box-shadow: var(--shadow-sm);
}
.card > :last-child, .wpm-card > :last-child { margin-bottom: 0; }
.card-hover:hover, a.card:hover { border-color: #bfd2ff; box-shadow: var(--shadow); }
.card-title { font-size: 1.05rem; margin: 0 0 8px; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }

.alert, .wpm-note {
	position: relative; border: 1px solid #cfe0ff; background: #f3f7ff; border-left: 4px solid var(--blue);
	border-radius: 10px; padding: 16px 18px; margin: 0 0 1.4rem; color: #22385e;
}
.alert > :last-child, .wpm-note > :last-child { margin-bottom: 0; }
.alert-info, .wpm-note--info { border-color: #cfe0ff; border-left-color: var(--blue); background: #f3f7ff; }
.alert-success { border-color: #c6ead9; border-left-color: var(--green); background: #f0fbf6; color: #0f3d2b; }
.alert-warning, .wpm-note:not(.wpm-note--info) { border-color: #f6dfb5; border-left-color: #d98a00; background: #fffaf0; color: #4a3300; }
.alert-error, .alert-danger { border-color: #f5c9c4; border-left-color: var(--red); background: #fff5f4; color: #5b1810; }
.alert-title { font-weight: 800; margin: 0 0 4px; }

.form-field { display: grid; gap: 6px; margin: 0 0 18px; }
.form-field label, .form-label { font-weight: 700; font-size: .9rem; color: var(--ink); }
.form-field input:not([type=checkbox]):not([type=radio]), .form-field select, .form-field textarea, .input {
	width: 100%; border: 1px solid #c9d5e8; border-radius: 9px; background: #fff; padding: 11px 13px; font-size: .96rem; color: var(--ink);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus, .input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23, 101, 244, .18); }
.form-field .help, .form-help { font-size: .82rem; color: var(--muted); margin: 0; }
.form-field .error, .form-error { font-size: .82rem; color: #a5281b; font-weight: 650; margin: 0; }
.form-field.has-error input, .form-field.has-error select, .form-field.has-error textarea { border-color: var(--red); }
.form-check { display: flex; gap: 9px; align-items: flex-start; font-size: .92rem; margin: 0 0 14px; }
.form-check input { margin-top: 4px; accent-color: var(--blue); }

.table, .wp-block-table table, .entry-content table {
	width: 100%; border-collapse: collapse; font-size: .92rem; background: #fff;
}
.table-wrap, .wp-block-table { overflow-x: auto; margin: 0 0 1.6rem; border: 1px solid var(--edge); border-radius: 12px; -webkit-overflow-scrolling: touch; }
.table th, .table td, .wp-block-table th, .wp-block-table td, .entry-content table th, .entry-content table td {
	text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top;
}
.table thead th, .wp-block-table thead th, .entry-content thead th { background: var(--light); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: #3a4f72; border-bottom: 1px solid var(--edge); }
.table tbody th[scope="row"] { font-weight: 700; color: var(--ink); }
.table tbody tr:last-child td, .table tbody tr:last-child th, .wp-block-table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td, .table tbody tr:hover th { background: #fafcff; }
.wp-block-table figcaption, .wp-block-table .wp-element-caption { padding: 10px 14px; font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line); margin: 0; }
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) td { background: #fafcff; }

/* ------------------------------------------------------------------ 6. Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.nav-shell { height: 76px; display: flex; gap: 20px; align-items: center; }
.brand { display: flex; align-items: center; color: var(--ink); white-space: nowrap; gap: 10px; font-size: 1.05rem; font-weight: 600; line-height: 1.1; text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand strong { font-weight: 800; }
.brand small { display: block; font-size: .56rem; color: #5e6e88; letter-spacing: .15em; font-weight: 800; margin-top: 5px; text-transform: uppercase; }
.brand-logo { display: block; height: 38px; width: auto; max-width: none; }
.brandmark { width: 39px; height: 39px; border-radius: 12px; background: linear-gradient(180deg, #1b3466, var(--ink)); color: #fff; --mark-accent: #6a9dff; display: grid; place-items: center; box-shadow: 0 6px 14px #10244933; flex: none; }
.brandmark svg { width: 26px; height: auto; }
.main-nav { margin-left: auto; }
.main-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.main-nav .menu a { display: block; padding: 8px 10px; border-radius: 8px; font-size: .87rem; font-weight: 650; color: #3f5373; white-space: nowrap; text-decoration: none; }
.main-nav .menu a:hover, .main-nav .menu .current-menu-item > a, .main-nav .menu .current-menu-ancestor > a, .main-nav .menu .current_page_parent > a { color: var(--blue); background: #f2f6ff; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.account-link { display: flex; align-items: center; gap: 6px; color: #3f5373; font-size: .85rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.account-link svg { width: 18px; height: 18px; }
.account-link:hover { color: var(--blue); }
.menu-toggle { display: none; }

/* Flags (inc/flags.php): same 3:2 size everywhere, rounded corners, thin outline for white bands */
.flag { position: relative; display: inline-block; flex: none; width: 21px; height: 14px; border-radius: 3px; overflow: hidden; vertical-align: middle; line-height: 0; }
.flag svg { display: block; width: 100%; height: 100%; }
.flag::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(16, 36, 73, .16); pointer-events: none; }

/* Language switcher (no JS: <details>) */
.lang-switch { position: relative; }
.lang-switch summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 7px; border: 1px solid var(--edge); border-radius: 8px; padding: 7px 10px; font-size: .8rem; font-weight: 750; color: var(--ink); background: #fff; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover { border-color: #bfd2ff; }
.lang-switch summary .chev { width: 12px; height: 12px; color: #5e6e88; transition: transform .15s; }
.lang-switch[open] summary .chev { transform: rotate(180deg); }
.lang-switch ul { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 200px; list-style: none; margin: 0; padding: 6px; background: #fff; border: 1px solid var(--edge); border-radius: 12px; box-shadow: var(--shadow); }
.lang-switch li a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 7px; font-size: .88rem; color: var(--ink); text-decoration: none; }
.lang-switch li .lang-name { flex: 1; }
.lang-switch li a:hover { background: #f2f6ff; color: var(--blue); }
.lang-switch li [aria-current] { font-weight: 800; color: var(--blue); background: #f5f8ff; }
.lang-switch li small { color: var(--muted); font-weight: 700; font-size: .72rem; }
.lang-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.lang-list a { display: inline-flex; align-items: center; gap: 7px; font-size: .84rem; color: #4d5f7c; text-decoration: none; }
.lang-list a[aria-current] { color: var(--ink); font-weight: 800; }
.lang-list a:hover { color: var(--blue); }

/* Language suggestion banner (site.js, from navigator.languages; dismissible, never a redirect) */
.lang-banner { position: fixed; z-index: 70; left: 16px; right: 16px; bottom: 16px; margin: 0 auto; max-width: 560px; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; background: var(--ink); color: #fff; border-radius: 12px; box-shadow: 0 18px 40px rgba(16, 36, 73, .28); font-size: .9rem; }
.lang-banner p { margin: 0; flex: 1; }
.lang-banner a { color: #fff; font-weight: 800; white-space: nowrap; }
.lang-banner a:hover { color: #cfe0ff; }
.lang-banner button { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.lang-banner button:hover { background: rgba(255, 255, 255, .22); }
.lang-banner button svg { width: 16px; height: 16px; }
.lang-banner :focus-visible { outline-color: #fff; }
@media (max-width: 650px) { .lang-banner { left: 12px; right: 12px; bottom: 12px; align-items: flex-start; font-size: .86rem; } .lang-banner p { min-width: 0; } .lang-banner .flag { margin-top: 3px; } }

/* ------------------------------------------------------------------ 7. Home: hero and product mockup */
.hero { overflow: hidden; background: radial-gradient(circle at 83% 18%, #eaf2ff 0, transparent 42%), linear-gradient(155deg, #fff 20%, #f6faff 100%); padding: 76px 0 88px; }
.hero-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 54px; }
.hero-copy h1 { line-height: 1.08; margin-bottom: 20px; font-size: clamp(2.3rem, 3.9vw, 3.9rem); }
.hero-copy h1 em { font-style: normal; color: var(--blue); }
.hero-copy > p { max-width: 540px; font-size: 1.07rem; color: var(--muted); }
.hero-actions { display: flex; gap: 13px; flex-wrap: wrap; margin: 28px 0; }
.micro-trust { display: flex; gap: 10px 22px; flex-wrap: wrap; color: var(--muted); font-size: .8rem; list-style: none; padding: 0; margin: 0; }
.micro-trust li { display: flex; align-items: center; gap: 5px; }
.micro-trust svg { width: 14px; height: 14px; color: var(--green); }
.hero-dashboard { position: relative; min-width: 0; margin: 0; }
.hero-dashboard figcaption { font-size: .76rem; color: var(--muted); margin-top: 12px; text-align: center; }
.float-score { position: absolute; right: -14px; top: -26px; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--edge); box-shadow: var(--shadow); border-radius: 13px; padding: 10px 15px; color: #3f5373; font-size: .74rem; font-weight: 650; line-height: 1.3; }
.score-ring { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 1.05rem; font-weight: 800; color: var(--green-text); background: radial-gradient(closest-side, #fff 80%, transparent 83%), conic-gradient(var(--green) 86%, #d9f3e8 0); }
.dashboard-frame { border-radius: 15px; background: #fff; box-shadow: 0 22px 65px rgba(19, 74, 166, .16), 0 0 0 1px #d5e2f7; overflow: hidden; font-size: 12px; text-align: left; }
.dashboard-top { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: #f5f8fe; border-bottom: 1px solid #e6eefa; color: #5e6e88; gap: 10px; font-size: 10.5px; }
.window-dots { display: flex; gap: 4px; }
.window-dots i { width: 8px; height: 8px; background: #f09a98; border-radius: 50%; }
.window-dots i:nth-child(2) { background: #f0cf83; }
.window-dots i:nth-child(3) { background: #90dfb8; }
.dash-state { color: var(--green-text); font-weight: 700; }
.dashboard-layout { display: grid; grid-template-columns: 158px minmax(0, 1fr); min-height: 330px; }
.dashboard-sidebar { background: #122f5f; padding: 16px 10px; color: #c3d6f2; }
.dash-logo { font-size: 11.5px; font-weight: 800; display: flex; align-items: center; gap: 7px; color: #fff; margin: 0 4px 16px; }
.dash-logo svg { color: #8fb8ff; width: 18px; height: 18px; }
.dash-logo .icon-logo { color: #fff; --mark-accent: #6a9dff; width: 27px; height: auto; }
.dash-link { display: flex; align-items: center; gap: 8px; padding: 8px; margin-bottom: 2px; font-size: 10.5px; border-radius: 6px; white-space: nowrap; }
.dash-link svg { width: 14px; height: 14px; flex: none; }
.dash-link.active { background: #2674fa; color: #fff; }
.dashboard-body { min-width: 0; background: #fbfcff; padding: 16px; }
.dash-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.dash-heading strong { display: block; font-size: 14px; }
.dash-heading small { color: #5e6e88; font-size: 10px; }
.status-positive { border-radius: 5px; background: #e5f8ee; color: var(--green-text); font-size: 9.5px; padding: 5px 8px; font-weight: 700; white-space: nowrap; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat-card { background: #fff; border: 1px solid #edf1f9; border-radius: 8px; padding: 10px; min-width: 0; }
.stat-card small { display: block; color: #5e6e88; font-size: 9.5px; }
.stat-card strong { font-size: 19px; font-weight: 800; display: block; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-card strong span { font-size: 10px; color: #5e6e88; }
.stat-success { color: var(--green-text); }
.stat-note { font-size: 9.5px; color: #5e6e88; }
.meter { height: 5px; border-radius: 20px; background: #e1ede9; margin-top: 7px; overflow: hidden; }
.meter i { height: 100%; display: block; background: var(--green); border-radius: 20px; }
.dash-bottom { display: grid; grid-template-columns: 1.3fr .9fr; gap: 8px; margin-top: 10px; }
.chart-card, .events-card { background: #fff; border: 1px solid #edf1f9; border-radius: 8px; padding: 12px; min-width: 0; }
.chart-card strong, .events-card strong { font-size: 10.5px; }
.line-chart svg { width: 100%; height: 100px; display: block; margin-top: 8px; }
.chart-labels { display: flex; justify-content: space-between; color: #5e6e88; font-size: 9px; }
.events-card > div { display: flex; align-items: center; gap: 6px; padding: 9px 0; border-bottom: 1px solid #f0f2f6; color: #3f5373; font-size: 9.5px; }
.events-card > div:last-child { border: 0; }
.events-card small { margin-left: auto; color: #5e6e88; }
.event-dot { width: 7px; height: 7px; background: #3484ed; border-radius: 100%; flex: none; }
.event-dot.red { background: #e5484d; }
.event-dot.green { background: var(--green); }

.benefit-strip { padding: 22px 0; background: #fff; border-bottom: 1px solid #edf1f8; }
.strip-items { display: flex; justify-content: space-between; gap: 15px; flex-wrap: wrap; list-style: none; margin: 0 auto; padding: 0; }
.strip-items li { display: flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 700; color: #3f5373; }
.strip-items svg { color: var(--blue); width: 19px; height: 19px; }

/* Feature cards */
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.feature-card { position: relative; padding: 23px 20px; background: #fff; border: 1px solid var(--edge); border-radius: 14px; box-shadow: var(--shadow-sm); transition: border-color .18s, box-shadow .18s, transform .18s; }
.feature-card:hover { border-color: #bfd2ff; box-shadow: var(--shadow); }
.feature-card h3 { font-size: 1rem; margin: 17px 0 8px; }
.feature-card h3 a { color: var(--ink); text-decoration: none; }
.feature-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.feature-card h3 a:focus-visible { outline: none; }
.feature-card:focus-within { box-shadow: var(--focus); }
.feature-card p { font-size: .88rem; margin: 0 0 12px; color: var(--muted); }
.feature-card .badge { position: relative; }
.icon-tile { width: 46px; height: 46px; border-radius: 13px; background: #eaf2ff; color: var(--blue); display: grid; place-items: center; flex: none; }
.icon-tile svg { width: 24px; height: 24px; }
.icon-tile.is-green { background: #e5f8ef; color: var(--green-text); }
.icon-tile.is-orange { background: #fff4e0; color: var(--orange); }

/* Architecture diagram */
.architecture-diagram { display: grid; grid-template-columns: 1fr 110px 1fr; align-items: center; gap: 18px; }
.arch-card { border-radius: 15px; padding: 28px; border: 1px solid; }
.arch-card.risk { background: #fff5f4; border-color: #fce1de; }
.arch-card.protected { background: #f1fcf8; border-color: #d8f1e7; }
.arch-heading { display: flex; align-items: center; gap: 12px; font-size: 1.08rem; margin: 0; }
.arch-heading > span { background: #fff; border-radius: 12px; width: 43px; height: 43px; display: grid; place-items: center; color: var(--green-text); flex: none; }
.risk .arch-heading > span { color: #c0392b; }
.route-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 24px 0; padding: 0; list-style: none; }
.route-list code { display: block; background: #fff; padding: 9px 11px; border-radius: 8px; border: 1px solid #f7d9d6; font-size: .8rem; color: #a5281b; }
.route-list li span { display: block; font-size: .74rem; color: #6b3a35; margin-top: 3px; }
.arch-card p { font-size: .86rem; margin: 10px 0 0; color: #4a3b3a; }
.arch-card.protected p { color: #24493b; }
.arch-arrow { display: flex; flex-direction: column; align-items: center; color: var(--blue); gap: 6px; text-align: center; }
.arch-arrow svg { width: 56px; height: 56px; stroke-width: 1.7; }
.arch-arrow small { font-size: .74rem; color: var(--muted); }
.route-browser { background: #fff; border: 1px solid #dceee6; border-radius: 9px; margin: 18px 0; padding: 0 15px 12px; color: #3f5373; font-size: .84rem; }
.route-browser strong { color: var(--green-text); }
.browser-dot { border-bottom: 1px solid #e6f3ee; color: #5c8f7f; padding: 6px 0; margin-bottom: 9px; font-size: 9px; letter-spacing: 2px; }
.checklist { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: #33476a; }
.check-icon { display: grid; place-items: center; color: var(--green-text); background: #e5f8ef; border-radius: 100%; width: 20px; height: 20px; flex: none; margin-top: 1px; }
.check-icon svg { width: 12px; height: 12px; stroke-width: 3; }
.check-icon.is-off { color: #8a96a8; background: #eef1f6; }
.clarification { text-align: center; max-width: 900px; margin: 24px auto 0; font-size: .86rem; color: var(--muted); }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step { position: relative; }
.step:not(:last-child)::after { content: "\2192"; position: absolute; right: -16px; top: 30px; color: #8fb1f5; font-size: 22px; }
.step-top { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.step-number { width: 30px; height: 30px; background: var(--blue); color: #fff; font-size: .9rem; border-radius: 100%; display: grid; place-items: center; font-weight: 800; }
.step h3 { margin-bottom: 8px; }
.step p { font-size: .9rem; color: var(--muted); }

/* Free vs Pro */
.plan-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.plan-compare .card { padding: 30px; display: flex; flex-direction: column; }
.plan-compare .card.is-pro { border: 2px solid var(--blue); box-shadow: 0 15px 35px #2c6bf31f; }
.plan-compare h3 { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; }
.plan-compare .card > p { color: var(--muted); }
.plan-compare .wp-block-buttons, .plan-compare .card-actions { margin-top: auto; padding-top: 22px; }

/* Showcases (member area) */
.split-two { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.portal-preview { display: grid; grid-template-columns: 34% 66%; border: 1px solid #d5e1f4; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); min-height: 270px; font-size: 11.5px; }
.portal-side { padding: 20px 11px; background: #f7faff; border-right: 1px solid #e7effb; }
.portal-side strong { display: flex; gap: 6px; align-items: center; font-size: 12px; margin-bottom: 14px; }
.portal-side strong svg { width: 15px; height: 15px; color: var(--blue); }
.portal-side > div { color: #4d5f7c; padding: 8px; border-radius: 6px; display: flex; gap: 7px; align-items: center; }
.portal-side > div.selected { color: #1559d6; background: #e7f0ff; font-weight: 700; }
.portal-side > div svg { width: 14px; height: 14px; }
.portal-body { padding: 18px; min-width: 0; }
.portal-body h4, .portal-body .portal-h { font-size: 12px; margin: 2px 0 10px; font-weight: 800; color: #0c1f41; letter-spacing: -.03em; line-height: 1.16; }
.portal-product { display: flex; gap: 8px; align-items: center; border: 1px solid #edf0f7; border-radius: 7px; padding: 10px; margin-bottom: 16px; }
.product-icon { background: #eaf2ff; color: var(--blue); padding: 8px; border-radius: 8px; display: grid; }
.product-icon svg { width: 17px; height: 17px; }
.product-icon .icon-logo { color: var(--ink); width: 24px; height: auto; }
.portal-product strong, .portal-product small { display: block; line-height: 1.25; }
.portal-product small { color: #5e6e88; margin-top: 3px; }
.fake-action { margin-left: auto; background: var(--blue); border-radius: 5px; padding: 6px 8px; color: #fff; font-size: 10px; white-space: nowrap; }
.license-preview { display: flex; justify-content: space-between; gap: 8px; border: 1px dashed #c9dbf7; padding: 10px; border-radius: 7px; font-weight: 700; color: #3f5373; font-family: var(--mono); }
.portal-summary { display: flex; justify-content: space-between; gap: 8px; padding: 12px 0 0; font-size: 10.5px; color: #4d5f7c; }
.portal-summary strong { display: block; font-size: 12px; color: var(--ink); }
.mini-pill { background: #edf3ff; color: #1559d6; padding: 4px 7px; border-radius: 6px; font-size: 10px; font-weight: 800; white-space: nowrap; font-family: var(--font); }
.mini-pill.good { background: #e5f8ef; color: var(--green-text); }

/* Pricing ([wpm_pricing], mu-plugin) */
.pricing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; margin-top: 18px; }
.pricing-card { position: relative; border: 1px solid var(--edge); border-radius: var(--radius); padding: 28px 24px; background: #fff; display: flex; flex-direction: column; }
.pricing-card.featured { border: 2px solid var(--blue); box-shadow: 0 15px 35px #2c6bf326; }
.plan-ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--blue); color: #fff; font-size: .72rem; border-radius: 20px; padding: 5px 12px; white-space: nowrap; font-weight: 800; margin: 0; }
.plan-ribbon.is-neutral { background: var(--ink); }
/* Lifetime plan: dark card with a gold ribbon and button. */
.pricing-card.is-lifetime { background: linear-gradient(160deg, #0b1b3f 0%, #13295c 70%, #1b3a7a 100%); border: 2px solid #e2b33d; color: #dbe5fb; box-shadow: 0 15px 35px #0b1b3f40; }
.pricing-card.is-lifetime h3, .pricing-card.is-lifetime .price { color: #fff; }
.pricing-card.is-lifetime .plan-for, .pricing-card.is-lifetime .price small, .pricing-card.is-lifetime .price-tax { color: #b9c7e6; }
.pricing-card.is-lifetime .plan-icon { background: #e2b33d26; color: #f1c75b; }
.pricing-card.is-lifetime .sites-count { background: #ffffff14; color: #fff; }
.pricing-card.is-lifetime .checklist li { color: #dbe5fb; }
.pricing-card.is-lifetime .check-icon { color: #1d1503; background: #f1c75b; }
.pricing-card.is-lifetime .price small { display: block; margin-top: 6px; }
.plan-ribbon.is-lifetime { background: linear-gradient(90deg, #e2b33d, #f5d27a); color: #1d1503; letter-spacing: .08em; text-transform: uppercase; }
.btn.btn-lifetime { background: linear-gradient(90deg, #e2b33d, #f5d27a); color: #1d1503; border-color: transparent; }
.btn.btn-lifetime:hover { background: #f5d27a; color: #1d1503; }
.pricing-card.is-lifetime:hover { border-color: #f5d27a; box-shadow: 0 18px 40px #0b1b3f59; }
.plan-icon { display: grid; place-items: center; background: #edf4ff; color: var(--blue); border-radius: 12px; width: 46px; height: 46px; margin-bottom: 14px; }
.plan-icon svg { width: 22px; height: 22px; }
.pricing-card h3 { font-size: 1.3rem; margin-bottom: 4px; }
.pricing-card .plan-for { font-size: .86rem; min-height: 2.8em; margin-bottom: 12px; color: var(--muted); }
.price { font-size: 2.55rem; font-weight: 850; letter-spacing: -.05em; line-height: 1.1; margin: 0; color: var(--ink); }
.price small { font-size: .9rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price-tax { font-size: .74rem; color: var(--muted); margin: 4px 0 10px; }
.sites-count { background: #f2f6ff; border-radius: 7px; padding: 8px 10px; font-size: .88rem; font-weight: 750; margin: 6px 0 4px; }
.pricing-card .checklist { margin-bottom: 24px; }
.pricing-card .checklist li { font-size: .86rem; }
.pricing-card .btn { margin-top: auto; }
.pricing-note { text-align: center; margin: 22px auto 0; font-size: .84rem; color: var(--muted); max-width: 860px; }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; }
.faq-layout h2 { max-width: 360px; }
.faq-list, .entry-content .wp-block-details { display: grid; gap: 10px; }
.faq-list details, .entry-content details.wp-block-details { border: 1px solid var(--edge); border-radius: 10px; background: #fff; padding: 15px 20px; margin: 0 0 10px; }
.faq-list summary, .entry-content details.wp-block-details > summary { list-style: none; cursor: pointer; display: flex; gap: 20px; align-items: center; justify-content: space-between; font-weight: 720; font-size: .97rem; color: var(--ink); }
.faq-list summary::-webkit-details-marker, .entry-content details > summary::-webkit-details-marker { display: none; }
.faq-list summary::after, .entry-content details.wp-block-details > summary::after { content: "+"; color: var(--blue); font-size: 22px; font-weight: 400; line-height: 1; transition: transform .15s; flex: none; }
.faq-list details[open] summary::after, .entry-content details.wp-block-details[open] > summary::after { transform: rotate(45deg); }
.faq-list details p, .entry-content details.wp-block-details > :not(summary) { font-size: .94rem; margin: 12px 0 2px; color: #3a4d6c; }

/* Blog cards */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.post-card { position: relative; background: #fff; border: 1px solid var(--edge); border-radius: 15px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .18s, border-color .18s; }
.post-card:hover { border-color: #bfd2ff; box-shadow: var(--shadow); }
.post-card:focus-within { box-shadow: var(--focus); }
.post-card-media { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #e8f1ff, #f6f9ff); display: grid; place-items: center; color: var(--blue); overflow: hidden; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card-media svg { width: 48px; height: 48px; opacity: .7; }
.post-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.post-card-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: .78rem; color: var(--muted); margin-bottom: 10px; }
.post-card h2, .post-card h3 { font-size: 1.1rem; margin: 0 0 9px; line-height: 1.3; }
.post-card h2 a, .post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h2 a::after, .post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card h2 a:focus-visible, .post-card h3 a:focus-visible { outline: none; }
.post-card p { font-size: .9rem; color: var(--muted); margin: 0; }
.post-card .badge { position: relative; z-index: 1; }
.cat-filter { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 34px; padding: 0; list-style: none; }
.cat-filter a { display: block; font-size: .85rem; background: #fff; border: 1px solid var(--edge); border-radius: 25px; padding: 7px 14px; color: #33476a; text-decoration: none; font-weight: 650; }
.cat-filter a:hover, .cat-filter a[aria-current] { border-color: var(--blue); color: var(--blue); background: #f2f6ff; }
.empty-state { text-align: center; padding: 40px 0; color: var(--muted); }
.pagination { margin-top: 38px; }
.pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { display: block; border-radius: 7px; border: 1px solid #dbe7f8; background: #fff; padding: 8px 14px; font-size: .9rem; text-decoration: none; }
.pagination .page-numbers.current { background: var(--blue); border-color: var(--blue); color: #fff; }

/* Closing CTA + footer */
.closing-cta { background: linear-gradient(105deg, #0a4fd0, #1765f4); color: #fff; padding: 34px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.closing-cta h2 { color: #fff; font-size: 1.55rem; margin: 0 0 6px; }
.closing-cta p { color: #e6efff; margin: 0; font-size: .95rem; }
.cta-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-buttons .btn-ghost { background: transparent; border-color: #cfe0ff; color: #fff; box-shadow: none; }
.cta-buttons .btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.site-footer { background: #fff; border-top: 1px solid var(--edge); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, .85fr) 1.1fr; gap: 30px; padding-top: 52px; padding-bottom: 44px; }
.footer-grid > div > p { margin-top: 16px; font-size: .86rem; color: var(--muted); }
.footer-grid h2 { font-size: .9rem; margin: 0 0 14px; letter-spacing: 0; }
.footer-grid ul.menu { list-style: none; margin: 0; padding: 0; }
.footer-grid ul.menu a { display: block; font-size: .86rem; color: #4d5f7c; margin: 0 0 9px; text-decoration: none; }
.footer-grid ul.menu a:hover { color: var(--blue); }
.footer-bottom { border-top: 1px solid var(--edge); padding: 18px 0 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; color: #5e6e88; font-size: .8rem; }

/* ------------------------------------------------------------------ 8. Inner pages */
.sub-hero { padding: 54px 0 46px; background: linear-gradient(135deg, #f5f9ff, #fff); border-bottom: 1px solid var(--edge); }
.sub-hero h1 { font-size: clamp(2rem, 3.4vw, 3.1rem); margin-bottom: 14px; max-width: 900px; }
.sub-hero .lead { font-size: 1.08rem; color: var(--muted); max-width: 780px; margin: 0; }
.sub-hero.is-center { text-align: center; }
.sub-hero.is-center h1, .sub-hero.is-center .lead { margin-inline: auto; }
.breadcrumbs { font-size: .82rem; margin: 0 0 16px; color: var(--muted); }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; color: #a3b1c6; }
.breadcrumbs a { color: #4d5f7c; text-decoration: none; }
.breadcrumbs a:hover { color: var(--blue); text-decoration: underline; }
.page-body { padding: 52px 0 76px; }

/* Entry content: block layouts (theme.json sizes) */
.entry-content { font-size: 1.03rem; line-height: 1.72; color: #24395f; }
.entry-content > * { max-width: var(--prose); margin-left: auto; margin-right: auto; }
.entry-content > .alignwide, .entry-content .alignwide { max-width: var(--container); }
.entry-content > .alignfull { max-width: none; }
.entry-content h2 { margin: 2.2rem auto .7rem; font-size: clamp(1.5rem, 2.4vw, 2rem); scroll-margin-top: 100px; }
.entry-content h3 { margin: 1.7rem auto .5rem; scroll-margin-top: 100px; }
.entry-content > :first-child { margin-top: 0; }
.entry-content ul, .entry-content ol { padding-left: 1.3rem; margin-bottom: 1.3rem; }
.entry-content li { margin: 0 0 .45rem; }
.entry-content li::marker { color: var(--blue); }
.entry-content blockquote { border-left: 4px solid var(--blue); margin: 1.5rem auto; padding: 4px 0 4px 20px; color: #3a4d6c; font-style: italic; }
.entry-content pre.wp-block-code { background: #0f1f3d; color: #e6edf9; border-radius: 12px; padding: 18px 20px; overflow-x: auto; font-size: .86rem; line-height: 1.6; }
.entry-content pre code { background: none; border: 0; padding: 0; color: inherit; }
.entry-content figure { margin: 1.8rem auto; }
.entry-content .wp-block-image img { border-radius: 12px; border: 1px solid var(--edge); display: block; }
.entry-content figcaption, .entry-content .wp-element-caption { font-size: .84rem; color: var(--muted); text-align: center; margin-top: 10px; }
.entry-content .wp-block-group.alignfull { padding-left: 24px; padding-right: 24px; }
.entry-content .wp-block-group.alignfull > * { max-width: var(--prose); margin-left: auto; margin-right: auto; }
.entry-content .wp-block-group.alignfull > .alignwide { max-width: var(--container); }
.wp-block-columns { display: flex; gap: 28px; margin-bottom: 1.6rem; }
.wp-block-column { flex: 1 1 0; min-width: 0; }
.has-surface-background-color { background: #f7faff; }
.wp-block-separator { border: 0; border-top: 1px solid var(--edge); }

/* Legacy content classes (pages generated before v2; kept so imported content renders well) */
.wpm-section { padding-top: 56px; padding-bottom: 56px; }
.wpm-section--tight { padding-top: 32px; padding-bottom: 32px; }
.wpm-lead { font-size: 1.1rem; color: var(--muted); }
.wpm-small, .wpm-small p { font-size: .88rem; color: var(--muted); }
.wpm-card h3 { margin-top: 0; font-size: 1.05rem; }
.wpm-card h3 a { color: var(--ink); text-decoration: none; }
.wpm-card h3 a:hover { color: var(--blue); }
.wpm-card p { font-size: .93rem; }
.wpm-ico::before { content: ""; display: block; width: 46px; height: 46px; border-radius: 13px; background-color: #eaf2ff; background-repeat: no-repeat; background-position: center; background-size: 24px; margin-bottom: 16px; }
.wpm-grid, .entry-content .is-layout-grid { gap: 17px; }
.wpm-cta { background: linear-gradient(105deg, #0a4fd0, #1765f4); color: #fff; border-radius: var(--radius); padding: 36px 34px; margin: 2.2rem auto; }
.wpm-cta h2, .wpm-cta h3 { color: #fff; margin-top: 0; }
.wpm-cta p { color: #e6efff; }
.wpm-cta .wp-block-button__link { background: #fff; color: var(--blue-dark); border-color: #fff; }
.wpm-cta .is-style-outline .wp-block-button__link { background: transparent; color: #fff; border-color: #cfe0ff; }
.wpm-cta .wp-block-buttons { margin-bottom: 0; }
.wpm-cta a:not(.btn):not(.wp-block-button__link) { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.wpm-cta .btn:not(.btn-secondary) { background: #fff; color: var(--blue-dark); border-color: #fff; }
.wpm-cta .btn:not(.btn-secondary):hover { background: #edf4ff; border-color: #edf4ff; }
.wpm-related { border: 1px solid var(--edge); border-radius: 14px; padding: 22px 24px; background: #f7faff; margin: 2rem auto; }
.wpm-related h3 { margin-top: 0; font-size: 1rem; }
.wpm-related ul { margin: 0; }
.wpm-steps .wpm-step { counter-increment: wpmstep; background: #fff; border: 1px solid var(--edge); border-radius: 14px; padding: 22px; }
.wpm-steps { counter-reset: wpmstep; }
.wpm-step h3::before { content: counter(wpmstep); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; font-size: .85rem; margin-right: 10px; vertical-align: 2px; }
.wpm-levels td:last-child, .wpm-levels th:last-child { white-space: nowrap; }
.wpm-compare td:nth-child(n+2) { white-space: nowrap; font-weight: 650; }
.wpm-shot img { box-shadow: var(--shadow); }
.wpm-placeholder { background: #fff3c4; color: #5c4400; border-radius: 4px; }
.wpm-paths { list-style: none; padding: 0 !important; display: grid; gap: 8px; }
.wpm-paths li { background: #fff; border: 1px solid var(--edge); border-radius: 9px; padding: 9px 12px; }
.wpm-paths span { display: block; font-size: .84rem; color: var(--muted); }
.wpm-toc { background: #f7faff; border: 1px solid var(--edge); border-radius: 12px; padding: 16px 20px; }
.wpm-soon { border: 1px dashed #a5bdf6; border-radius: 14px; padding: 20px; background: #f7faff; }
.t-ok { color: var(--green-text); }

/* Callout block style (core/group "is-style-callout") */
.is-style-callout, .wp-block-group.is-style-callout {
	background: #f3f7ff; border: 1px solid #cfe0ff; border-left: 4px solid var(--blue); border-radius: 12px;
	padding: 18px 22px; margin: 1.8rem auto;
}
.is-style-callout > :first-child { margin-top: 0; }
.is-style-callout > :last-child { margin-bottom: 0; }
.is-style-callout h2, .is-style-callout h3, .is-style-callout h4 { font-size: 1.05rem; margin: 0 0 8px; }

/* New Pro features (home page cards) */
.soon-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.soon-grid .card h3 { font-size: 1rem; margin: 14px 0 8px; }
.soon-grid .card p { font-size: .88rem; color: var(--muted); }
.soon-grid .card { position: relative; transition: border-color .18s, box-shadow .18s, transform .18s; }
.soon-grid .card:has(h3 a):hover { border-color: #bfd2ff; box-shadow: var(--shadow); }
.soon-grid .card h3 a { color: var(--ink); text-decoration: none; }
.soon-grid .card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.soon-grid .card h3 a:focus-visible { outline: none; }
.soon-grid .card:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ------------------------------------------------------------------ 9. Blog article */
.article-hero { padding: 46px 0 28px; background: linear-gradient(135deg, #f5f9ff, #fff); }
.article-hero h1 { font-size: clamp(1.95rem, 3.6vw, 3.1rem); max-width: 920px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: var(--muted); font-size: .88rem; }
.article-meta svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: 4px; color: var(--blue); }
.article-cover { margin: 26px 0 0; }
.article-cover img { width: 100%; border-radius: 16px; display: block; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--edge); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 54px; padding: 40px 0 60px; align-items: start; }
.article-layout .entry-content > * { margin-left: 0; margin-right: 0; }
.article-layout .entry-content > .alignwide, .article-layout .entry-content > .alignfull { max-width: var(--prose); }
.article-aside { --aside-top: 100px; position: sticky; top: var(--aside-top); display: grid; gap: 18px; }
.admin-bar .article-aside { --aside-top: 132px; }
/* Smart sticky sidebar (assets/js/site.js), never an inner scrollbar: when the table of contents, the sponsored card
   and the call to action do not fit the viewport, the call to action steps aside (.is-no-cta), then the titles of the
   table of contents are clamped to two lines (.is-snug) then one (.is-tight, full title in the tooltip), and as a last resort only the table of contents sticks
   (.is-split: the card and the call to action come first and scroll away with the page). */
.article-aside.is-no-cta > .aside-cta { display: none; }
.article-aside:is(.is-snug, .is-tight) .toc { padding: 14px 16px; }
.article-aside:is(.is-snug, .is-tight) .toc ol { margin-top: 8px; gap: 0; }
.article-aside:is(.is-snug, .is-tight) .toc a { padding: 3px 6px; }
.article-aside:is(.is-snug, .is-tight) .toc a > span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; min-width: 0; }
.article-aside.is-tight .toc a > span { -webkit-line-clamp: 1; line-clamp: 1; }
.article-aside.is-split { position: static; align-self: stretch; align-content: start; }
.article-aside.is-split > .toc { order: 2; position: sticky; top: var(--toc-top, var(--aside-top)); }
.toc a > span { min-width: 0; overflow-wrap: anywhere; }
.toc { border: 1px solid var(--edge); border-radius: 14px; background: #fff; padding: 18px 20px; }
.toc summary { cursor: pointer; font-weight: 800; font-size: .92rem; list-style: none; display: flex; justify-content: space-between; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 8px; font-size: .86rem; line-height: 1.4; color: #3f5373; text-decoration: none; padding: 5px 6px; border-radius: 6px; }
.toc a::before { content: counter(toc); color: var(--blue); font-weight: 800; min-width: 1.1em; }
.toc a:hover, .toc a.is-active { color: var(--blue); background: #f2f6ff; }
.aside-cta { border-radius: 14px; padding: 20px; background: linear-gradient(135deg, #0a4fd0, #1765f4); color: #fff; }
.aside-cta strong { display: block; font-size: 1rem; margin-bottom: 6px; }
.aside-cta p { color: #e6efff; font-size: .86rem; }
.author-box { display: flex; gap: 18px; align-items: flex-start; border: 1px solid var(--edge); border-radius: 15px; padding: 22px; background: #f7faff; margin: 44px 0 0; }
.author-box .brandmark { width: 52px; height: 52px; border-radius: 15px; }
.author-box .brandmark svg { width: 34px; }
.author-box h2 { font-size: 1.02rem; margin: 0 0 4px; letter-spacing: -.01em; }
.author-box p { font-size: .9rem; color: var(--muted); margin: 0 0 6px; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 30px 0 0; }
.post-nav a { display: block; border: 1px solid var(--edge); border-radius: 12px; padding: 15px 18px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: .93rem; line-height: 1.4; }
.post-nav a span { display: block; font-size: .76rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.post-nav a:hover { border-color: var(--blue); color: var(--blue); }
.post-nav .next { text-align: right; grid-column: 2; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.post-tags a { font-size: .8rem; border: 1px solid var(--edge); border-radius: 20px; padding: 4px 11px; color: #4d5f7c; text-decoration: none; }
.post-tags a:hover { border-color: var(--blue); color: var(--blue); }

/* YouTube click-to-load facade */
.wp-block-embed { margin: 1.8rem auto; }
.wpm-yt { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: radial-gradient(circle at 30% 20%, #23427a, #0f1f3d 70%); color: #fff; }
.wpm-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wpm-yt__button { position: absolute; inset: 0; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px; background: transparent; border: 0; color: #fff; cursor: pointer; text-align: center; }
.wpm-yt__button:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.wpm-yt__play { width: 68px; height: 48px; border-radius: 14px; background: #e5484d; display: grid; place-items: center; transition: transform .15s; }
.wpm-yt__button:hover .wpm-yt__play { transform: scale(1.06); }
.wpm-yt__play svg { width: 26px; height: 26px; fill: #fff; }
.wpm-yt__title { font-weight: 750; font-size: 1.02rem; max-width: 560px; line-height: 1.35; }
.wpm-yt__notice { font-size: .78rem; color: #c9d7f0; max-width: 520px; }
.wpm-yt__notice a { color: #fff; }

/* 404 / search */
.notfound { text-align: center; padding: 70px 0; }
.notfound .icon-tile { margin: 0 auto 22px; }
.search-form { max-width: 560px; margin: 22px auto 0; }

/* ------------------------------------------------------------------ 10. Responsive */
@media (max-width: 1180px) {
	.main-nav .menu a { font-size: .82rem; padding: 8px 7px; }
	.nav-shell { gap: 14px; }
	.account-link span { display: none; }
	.hero-grid { gap: 30px; }
	.float-score { right: 0; }
	.dashboard-layout { grid-template-columns: 124px minmax(0, 1fr); }
	.dash-link { font-size: 9.5px; }
	.pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 18px; }
	.soon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
	.nav-shell { height: 66px; }
	.menu-toggle { display: grid; place-items: center; margin-left: auto; border: 0; background: #edf4ff; color: var(--blue); width: 40px; height: 40px; border-radius: 9px; cursor: pointer; }
	.menu-toggle svg { width: 22px; height: 22px; }
	.js .main-nav { display: none; }
	.main-nav { position: absolute; top: 66px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--edge); padding: 10px 24px 18px; box-shadow: var(--shadow); margin: 0; }
	.no-js .main-nav { position: static; box-shadow: none; border: 0; padding: 0; }
	.js .main-nav.is-open { display: block; }
	.main-nav .menu { flex-direction: column; align-items: stretch; gap: 2px; }
	.main-nav .menu a { font-size: .98rem; padding: 11px 10px; }
	.nav-actions { margin-left: 0; }
	.hero-grid, .split-two { grid-template-columns: 1fr; }
	.hero-copy { text-align: center; }
	.hero-copy > p { margin-inline: auto; }
	.hero-actions, .micro-trust { justify-content: center; }
	.hero-dashboard { max-width: 760px; margin: 26px auto 0; width: 100%; }
	.feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.faq-layout { grid-template-columns: 1fr; gap: 24px; }
	.footer-grid { grid-template-columns: repeat(3, 1fr); }
	.footer-grid > .footer-about, .footer-grid > .footer-langs { grid-column: span 3; }
	.steps-grid { grid-template-columns: repeat(2, 1fr); }
	.step::after { display: none; }
	.post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.article-layout { grid-template-columns: 1fr; gap: 0; }
	.article-aside { position: static; order: -1; margin-bottom: 26px; }
	.aside-cta { display: none; }
	.grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.architecture-diagram { grid-template-columns: 1fr; }
	.arch-arrow { transform: rotate(90deg); margin: 4px auto; }
	.arch-arrow small { display: none; }
}
@media (max-width: 650px) {
	.container, .container-narrow { width: calc(100% - 32px); }
	.section { padding: 56px 0; }
	.nav-actions .btn, .nav-actions .account-link span { display: none; }
	.brand-logo { height: 30px; }
	.nav-shell { gap: 8px; }
	.lang-switch summary { padding: 7px 8px; gap: 6px; }
	.lang-switch ul { right: -48px; }
	.hero { padding: 46px 0 56px; }
	.hero-copy h1 { font-size: 2.25rem; }
	.hero-copy > p { font-size: 1rem; }
	.hero-actions .btn { width: 100%; }
	.micro-trust { flex-direction: column; align-items: center; gap: 6px; }
	.dashboard-layout { grid-template-columns: 52px minmax(0, 1fr); min-height: 0; }
	.dashboard-sidebar { padding: 12px 4px; }
	.dash-logo { justify-content: center; margin: 0 0 12px; }
	.dash-logo span, .dash-link span { display: none; }
	.dash-link { justify-content: center; padding: 8px 2px; }
	.dashboard-body { padding: 10px; }
	.stats-grid { gap: 5px; }
	.stat-card { padding: 7px; }
	.stat-card strong { font-size: 14px; }
	.stat-card small, .stat-note { font-size: 8.5px; }
	.dash-bottom { grid-template-columns: 1fr; }
	.events-card { display: none; }
	.dashboard-top { font-size: 9px; }
	.dash-state { display: none; }
	.float-score { right: -6px; top: -22px; padding: 6px; }
	.float-score .score-ring { width: 40px; height: 40px; font-size: .9rem; }
	.float-score span { display: none; }
	.strip-items { justify-content: center; gap: 10px 16px; }
	.strip-items li { font-size: .78rem; }
	.feature-grid, .post-grid, .pricing-grid, .plan-compare, .soon-grid, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
	.route-list { grid-template-columns: 1fr; }
	.steps-grid { grid-template-columns: 1fr; }
	.cta-inner { flex-direction: column; align-items: flex-start; }
	.footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
	.footer-grid > .footer-about, .footer-grid > .footer-langs { grid-column: span 2; }
	.footer-bottom { flex-direction: column; }
	.sub-hero { padding: 36px 0 32px; }
	.portal-preview { grid-template-columns: 1fr; }
	.portal-side { display: none; }
	.wp-block-columns { flex-direction: column; gap: 16px; }
	.post-nav { grid-template-columns: 1fr; }
	.post-nav .next { grid-column: 1; }
	.author-box { flex-direction: column; }
	.wpm-cta { padding: 26px 22px; }
	.entry-content .wp-block-group.alignfull { padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media print {
	.site-header, .site-footer, .closing-cta, .article-aside, .post-nav { display: none; }
}

/* Mobile header order: logo, actions, menu button. */
@media (max-width: 960px) {
	.nav-actions { margin-left: auto; }
	.menu-toggle { order: 3; margin-left: 0; }
}
@media (max-width: 650px) {
	.float-score { display: none; }
}

/* Core table block borders reset (block library uses currentColor borders). */
.wp-block-table thead, .wp-block-table tfoot { border: 0; }
.wp-block-table td, .wp-block-table th, .entry-content .wp-block-table td, .entry-content .wp-block-table th { border: 0; border-bottom: 1px solid var(--line); }
.wp-block-table thead th { border-bottom: 1px solid var(--edge); }
.wp-block-table td + td, .wp-block-table th + th { border-left: 1px solid var(--line); }
.pricing-card h3, .entry-content .pricing-card h3 { margin: 0 0 4px; text-align: left; }
a.badge { text-decoration: none; }
a.badge:hover { background: #dce8ff; }
h1, h2, h3 { text-wrap: balance; }
/* The facade carries its own 16:9 ratio: drop the core responsive-embed spacer. */
.wp-block-embed__wrapper:has(.wpm-yt)::before, .wp-block-embed.is-provider-youtube .wp-block-embed__wrapper::before { content: none; display: none; padding: 0; }
.article-layout > *, .hero-grid > *, .split-two > *, .faq-layout > * { min-width: 0; }
.entry-content :not(pre) > code { overflow-wrap: anywhere; }
@media (max-width: 650px) {
	.wp-block-table td, .wp-block-table th, .table td, .table th { padding: 10px; font-size: .86rem; }
}
.section-heading .eyebrow, .hero-copy > .eyebrow, .sub-hero .eyebrow { color: #1559d6; font-size: .72rem; }

/* ------------------------------------------------------------------ 11. Site search (inc/search.php, search.php, site.js)
   Header button + panel under the bar (absolute: no layout shift), backdrop, forms, results, landing. */
.search-toggle { display: grid; place-items: center; flex: none; width: 37px; height: 37px; padding: 0; border: 1px solid var(--edge); border-radius: 8px; background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; }
.search-toggle svg { width: 18px; height: 18px; }
.search-toggle:hover, .search-toggle[aria-expanded="true"] { border-color: #bfd2ff; color: var(--blue); background: #f2f6ff; }
.js .search-link, .no-js button.search-toggle { display: none; }
.search-panel { position: absolute; left: 0; right: 0; top: 100%; z-index: 2; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--edge); box-shadow: 0 26px 50px rgba(16, 36, 73, .14); }
.search-panel[hidden], .search-backdrop[hidden] { display: none; }
.search-panel:not([hidden]) { animation: wpm-search-in .18s ease-out; }
.search-backdrop { position: fixed; left: 0; right: 0; bottom: 0; top: var(--search-top, 76px); z-index: 1; background: rgba(16, 36, 73, .32); animation: wpm-fade-in .18s ease-out; }
@keyframes wpm-search-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes wpm-fade-in { from { opacity: 0; } to { opacity: 1; } }
.search-panel-inner { position: relative; max-width: 820px; padding: 24px 0 26px; }
.search-panel .search-form { max-width: none; margin: 0; }
.search-label { display: block; margin: 0 0 10px; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.search-close { position: absolute; top: 14px; right: 0; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.search-close:hover { background: #f2f6ff; color: var(--blue); }
.search-close svg { width: 20px; height: 20px; }
.search-field { position: relative; display: flex; align-items: center; gap: 8px; }
.search-field > svg { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: #7c8ba3; pointer-events: none; }
.search-field input[type=search] { flex: 1; min-width: 0; height: 48px; margin: 0; padding: 0 14px 0 44px; border: 1px solid #c9d5e8; border-radius: 10px; background: #fff; font-size: 1rem; -webkit-appearance: none; appearance: none; }
.search-field input[type=search]:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23, 101, 244, .2); }
.search-field input[type=search]::placeholder { color: #7c8ba3; }
.search-field .btn { flex: none; height: 48px; margin: 0; }
.search-form-panel .search-field input[type=search] { height: 56px; font-size: 1.1rem; }
.search-form-panel .search-field .btn { height: 56px; padding-inline: 22px; }
.search-suggest { margin-top: 18px; }
.search-panel.has-query .search-suggest { display: none; }
.search-suggest-title { margin: 0 0 10px; font-size: .78rem; font-weight: 800; color: var(--muted); }
.search-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.search-chips a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border: 1px solid var(--edge); border-radius: 999px; background: #fff; color: #33476a; font-size: .86rem; font-weight: 650; text-decoration: none; }
.search-chips a:hover { border-color: var(--blue); color: var(--blue); background: #f2f6ff; }
.search-chips svg { width: 16px; height: 16px; color: var(--blue); flex: none; }
.nav-search { display: none; }

/* Results page and landing */
.search-hero .eyebrow { --eb: 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.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 11a7 7 0 1 1-14 0 7 7 0 0 1 14 0zm3 10-4.3-4.3'/%3E%3C/svg%3E"); }
.search-hero h1 { font-size: clamp(1.9rem, 3.4vw, 3rem); }
.search-q { color: var(--blue); overflow-wrap: anywhere; }
.search-count strong { color: var(--ink); overflow-wrap: anywhere; }
.search-form-hero { max-width: 640px; margin: 22px 0 0; }
.search-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.search-main { max-width: var(--prose); }
.search-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.search-hit article { position: relative; padding: 20px 22px; border: 1px solid var(--edge); border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s, transform .15s; }
.search-hit article:hover { border-color: #bfd2ff; box-shadow: var(--shadow); }
.search-hit article:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.search-hit-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 8px; font-size: .8rem; color: var(--muted); }
.search-hit-meta .badge svg { width: 13px; height: 13px; }
.search-hit-trail { font-weight: 650; }
.search-hit-meta time { position: relative; padding-left: 12px; }
.search-hit-meta time::before { content: ""; position: absolute; left: 0; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: #b5c1d4; }
.search-hit-title { margin: 0 0 6px; font-size: 1.2rem; line-height: 1.3; letter-spacing: -.02em; }
.search-hit-title a { color: var(--ink); text-decoration: none; }
.search-hit-title a::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.search-hit-title a:hover { color: var(--blue); }
.search-hit-title a:focus-visible { outline: none; }
.search-hit-excerpt { margin: 0; font-size: .93rem; color: #4d5f7c; }
.search-page mark { padding: 0 2px; border-radius: 3px; background: #fff0b3; color: inherit; }
.search-aside { position: sticky; top: 100px; padding: 20px; border: 1px solid var(--edge); border-radius: 14px; background: var(--light); }
.admin-bar .search-aside { top: 132px; }
.search-aside h2 { margin: 0 0 12px; font-size: 1rem; letter-spacing: -.01em; }
.search-popular { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.search-popular a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: var(--ink); font-size: .92rem; font-weight: 650; text-decoration: none; }
.search-popular a:hover { background: #fff; color: var(--blue); }
.search-popular svg { width: 18px; height: 18px; color: var(--blue); flex: none; }
.search-popular.is-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.search-popular.is-grid a { height: 100%; padding: 16px 18px; border: 1px solid var(--edge); border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); }
.search-popular.is-grid a:hover { border-color: var(--blue); }
.search-popular.is-grid svg { width: 22px; height: 22px; }
.search-empty { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.search-empty h2 { font-size: 1.5rem; }
.search-suggestions + .search-suggestions { margin-top: 48px; }
.search-suggestions > h2 { margin: 0 0 18px; font-size: 1.35rem; }
@media (max-width: 960px) {
	.nav-search { display: block; padding: 4px 0 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
	.nav-search .search-form { max-width: none; margin: 0; }
	.search-layout { grid-template-columns: 1fr; gap: 32px; }
	.search-aside { position: static; }
	.search-popular.is-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
	.search-panel-inner { padding: 16px 0 18px; }
	.search-close { top: 8px; }
	.search-form-panel .search-field input[type=search], .search-form-panel .search-field .btn { height: 50px; font-size: 1rem; }
	.search-field .btn { padding-inline: 14px; }
	.search-hit article { padding: 16px; }
	.search-hit-title { font-size: 1.08rem; }
	.search-popular.is-grid { grid-template-columns: 1fr; }
}
@media print { .search-toggle, .search-panel, .search-backdrop { display: none !important; } }
/* Phones: the search button joins the header bar without squeezing the menu button. */
@media (min-width: 961px) and (max-width: 1100px) {
	.nav-shell { gap: 10px; }
	.nav-actions { gap: 8px; }
	.main-nav .menu a { padding: 8px 5px; }
}
@media (max-width: 960px) { .menu-toggle { flex: none; } }
@media (max-width: 350px) { .search-toggle { display: none !important; } } /* the menu has its own search form */
@media (max-width: 650px) {
	.nav-actions { gap: 6px; }
	.search-toggle { width: 34px; height: 34px; }
}
@media (max-width: 400px) {
	.lang-switch .lang-code { display: none; }
	.brand-logo { height: 26px; }
}

/* Wide comparison tables (many columns): keep readable columns and scroll horizontally inside the figure. */
@media (min-width: 641px) {
	.wp-block-table.wpm-table-wide table { min-width: 1180px; }
}
