/*
Theme Name: ARNSEC
Author: ARNSEC
Description: Custom theme for ARNSEC: IT networking training and small-scale network, security and IT support solutions. Training with links to official Cisco pages, solutions, projects, trainers, resources with free calculators, an enquiry form that saves to the dashboard, a blog with views, contents list and ad positions, scroll animations, tabs and accordions, and built-in basic SEO and hardening.
Version: 3.9.2
Requires at least: 6.3
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: arnsec
Tags: business, blog, custom-menu, custom-logo, featured-images, translation-ready
*/
/* ==========================================================================
   Tokens
   ========================================================================== */
/* FONTS-START */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/inter-Regular.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/inter-Medium.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/inter-SemiBold.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/inter-Bold.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("assets/fonts/inter-ExtraBold.woff") format("woff"); }
/* FONTS-END */
:root {
	--ink: #031a2c;
	--ink-2: #06243b;
	--ink-3: #0b3350;
	--navy: #032239;
	--panel: #ecf1f5;
	--paper: #fff;
	--bg: #fff;
	--surface: #fff;
	--soft: #f6f9fb;
	--soft-2: #e6f5f4;
	--btn: #037a78;
	--btn-h: #02625f;
	--teal-text: #037a78;
	--white: #fff;
	--teal: #04908e;
	--teal-d: #037a78;
	--teal-l: #2ad4cc;
	--fibre: #2ad4cc;
	--cat: #04808a;
	--aqua: #04908e;
	--text: #546373;
	--head: #0a2236;
	--muted: #5d6c7b;
	--line: #dbe3ea;
	--ok: #0b7a3b;
	--bad: #b3261e;
	--r: 8px;
	--r-lg: 12px;
	--wrap: 1200px;
	--shadow: 0 10px 30px rgba(3, 26, 44, .08);
	--f-head: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
	--f-body: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.7 var(--f-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video, iframe { max-width: 100%; height: auto; }
iframe { border: 0; }
a { color: var(--cat); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--f-head); line-height: 1.15; letter-spacing: -0.02em; color: var(--head); margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.hero :focus-visible, .band--ink :focus-visible, .site-footer :focus-visible, .page-head :focus-visible, .cta-band :focus-visible, .widget--cta :focus-visible { outline-color: var(--teal-l); }
::selection { background: var(--teal); color: #fff; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 40px, 820px); }
.section-pad { padding-block: clamp(40px, 6vw, 80px); }

.sr, .screen-reader-text { 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 { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--btn); color: #fff; padding: 10px 16px; border-radius: var(--r); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.ico { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.2em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; padding: .95em 1.5em; border: 0; border-radius: var(--r); cursor: pointer; font: 600 .95rem/1.1 var(--f-head); text-decoration: none; text-align: center; transition: background-color .15s, color .15s, box-shadow .15s; }
.btn .ico { width: 1.1em; height: 1.1em; transition: transform .15s; }
.btn:hover .ico, .more:hover .ico { transform: translateX(3px); }
.btn--primary { background: var(--btn); color: #fff; }
.btn--primary:hover { background: var(--btn-h); color: #fff; }
.btn--outline { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); }
.btn--outline:hover { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }
.btn--outline-dark, .btn--ghost-dark { background: transparent; color: var(--head); box-shadow: inset 0 0 0 1.5px #b6c4d0; }
.btn--outline-dark:hover, .btn--ghost-dark:hover { background: var(--head); color: #fff; box-shadow: inset 0 0 0 1.5px var(--head); }
.more { display: inline-flex; align-items: center; gap: .5em; font: 600 .95rem/1.2 var(--f-head); color: var(--teal-text); text-decoration: none; }
.more:hover { color: var(--teal-d); }
.more .ico { width: 1.05em; height: 1.05em; transition: transform .15s; }
.textlink { font-weight: 700; color: var(--cat); }

.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font: 700 .78rem/1 var(--f-head); letter-spacing: .16em; text-transform: uppercase; color: var(--teal-text); }
.eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.eyebrow--light { color: var(--teal-l); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header.is-stuck { box-shadow: 0 2px 18px rgba(3, 26, 44, .08); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--head); }
.logo-mark { width: 44px; height: 44px; flex: none; }
.brand-logo { max-height: 50px; width: auto; }
.brand-logo--default { height: 46px; max-height: none; width: auto; display: block; }
.site-footer .brand-logo--default { height: 50px; filter: brightness(0) invert(1); }
:root[data-theme="dark"] .site-header .brand-logo--default { filter: brightness(0) invert(1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site-header .brand-logo--default { filter: brightness(0) invert(1); } }
@media (max-width: 520px) { .brand-logo--default { height: 38px; } }
.brand-text { font: 800 1.55rem/1 var(--f-head); letter-spacing: .02em; color: #063349; }
.brand--light .brand-text, .brand--light:hover .brand-text { color: #fff; }
.brand--light, .brand--light:hover { color: #fff; }

.nav { display: flex; align-items: center; gap: 22px; }
.nav .menu { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav .menu a { position: relative; display: block; padding: 10px 14px; color: var(--head); text-decoration: none; font: 500 .97rem/1.2 var(--f-body); }
.nav .menu a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.nav .menu a:hover::after, .nav .menu .current-menu-item > a::after, .nav .menu .current_page_item > a::after, .nav .menu .current-menu-ancestor > a::after { transform: scaleX(1); }
.nav .menu li { position: relative; }
.nav .sub-menu { display: none; position: absolute; left: 0; top: 100%; min-width: 230px; list-style: none; margin: 0; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu { display: block; }
.nav .sub-menu a::after { display: none; }
.nav .sub-menu a:hover { background: var(--panel); border-radius: 6px; }
.nav-cta { padding: .85em 1.3em; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--head); cursor: pointer; border-radius: var(--r); }
.nav-toggle .ico { width: 28px; height: 28px; }
.nav-toggle-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: inline; }

@media (max-width: 1020px) {
	.nav-toggle { display: inline-flex; }
	.nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 20px 22px; border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(3, 26, 44, .14); display: none; }
	.nav.is-open { display: flex; }
	.nav .menu { flex-direction: column; }
	.nav .menu a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
	.nav .menu a::after { display: none; }
	.nav .sub-menu { display: block; position: static; box-shadow: none; border: 0; padding-left: 14px; }
	.nav-cta { width: 100%; padding: 1em; }
	.bar { min-height: 68px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; padding: clamp(72px, 11vw, 150px) 0 clamp(80px, 12vw, 160px); isolation: isolate; }
.hero.has-img { background: var(--ink) var(--hero-img) center / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(3, 26, 44, .94) 0%, rgba(3, 26, 44, .75) 45%, rgba(3, 26, 44, .35) 100%); }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-in { position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 5.6vw, 4.5rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; max-width: 14ch; margin-bottom: .45em; }
.lede { font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: #d3e0ea; max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ==========================================================================
   Sections
   ========================================================================== */
.band { padding: clamp(60px, 8vw, 104px) 0; }
.band--alt, .band--panel { background: var(--panel); }
.band--ink { background: var(--ink); color: #cfdce8; }
.band--ink h2, .band--ink h3 { color: #fff; }
.band-head { margin-bottom: clamp(28px, 4vw, 48px); }
.band-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 800; max-width: 22ch; margin-bottom: .35em; }
.band-head p { color: var(--text); max-width: 60ch; margin: 0; font-size: 1.05rem; }
.band-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.band-head--row h2 { max-width: 28ch; }
.band-more { margin: 32px 0 0; text-align: center; }

.grid { display: grid; gap: 26px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.media-ph { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(135deg, var(--ink-2), var(--ink-3)); color: var(--teal-l); }
.media-ph .ico { width: 44px; height: 44px; }

/* Solution cards */
.sol-card, .proj-card, .res-card, .course, .post-card, .quote { background: var(--surface); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid rgba(3, 26, 44, .05); transition: transform .2s, box-shadow .2s; }
.sol-card:hover, .proj-card:hover, .res-card:hover, .post-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(3, 26, 44, .13); }
.sol-card { display: flex; flex-direction: column; }
.sol-media, .res-media, .post-card-media { display: block; aspect-ratio: 16 / 10; background: var(--ink-2); overflow: hidden; }
.sol-media img, .res-media img, .post-card-media img, .proj-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.sol-card:hover img, .res-card:hover img, .proj-card:hover img { transform: scale(1.04); }
.sol-body { display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px 26px; flex: 1; }
.sol-ico { display: grid; place-items: center; flex: none; width: 52px; height: 52px; margin-top: -40px; border-radius: 50%; background: var(--btn); color: #fff; box-shadow: 0 0 0 5px var(--surface); position: relative; }
.sol-ico .ico { width: 24px; height: 24px; }
.sol-text h3 { font-size: 1.25rem; margin-bottom: .35em; }
.sol-text h3 a, .proj-text h3 a, .res-body h3 a, .course h3 a, .post-card h3 a { color: var(--head); text-decoration: none; }
.sol-text h3 a:hover, .proj-text h3 a:hover, .res-body h3 a:hover, .course h3 a:hover, .post-card h3 a:hover { color: var(--teal); }
.sol-text p { font-size: .96rem; margin-bottom: 1em; }

/* Project cards */
.proj-card { display: flex; flex-direction: column; }
.proj-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink-2); }
.proj-body { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 22px 26px 26px; }
.proj-text h3 { font-size: 1.3rem; margin-bottom: .3em; }
.proj-text p { margin: 0 0 .3em; font-size: .96rem; }
.proj-body .more { white-space: nowrap; flex: none; }

/* Resource cards */
.res-card { display: flex; flex-direction: column; }
.res-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.res-body h3 { font-size: 1.2rem; }
.res-body p { font-size: .96rem; flex: 1; }

/* Course cards */
.course { padding: 26px; display: flex; flex-direction: column; }
.course .sol-ico { margin: 0 0 18px; box-shadow: none; }
.course h3 { font-size: 1.25rem; }
.course p { color: var(--text); }
.course .more { margin-top: auto; }
.pills { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; }
.pills li { background: var(--panel); border-radius: 99px; padding: 3px 11px; font-size: .8rem; font-weight: 600; color: var(--head); }

/* Blog cards */
.post-card-body { padding: 20px 24px 24px; }
.post-card h3 { font-size: 1.2rem; }
.post-card-body p { color: var(--text); }
.cat { display: inline-block; margin-bottom: 6px; font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--teal-text); text-decoration: none; }
.cat:hover { text-decoration: underline; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin: 0; font-size: .85rem; color: var(--muted); }
.meta > span, .meta-views { display: inline-flex; align-items: center; gap: 6px; }
.post-card--big { grid-column: 1 / -1; }
@media (min-width: 800px) {
	.post-card--big { display: grid; grid-template-columns: 1.1fr 1fr; }
	.post-card--big .post-card-media { aspect-ratio: auto; min-height: 100%; }
	.post-card--big .post-card-body { padding: 34px; align-self: center; }
	.post-card--big h3 { font-size: 1.7rem; }
}

.quote { margin: 0; padding: 28px; }
.quote blockquote { margin: 0 0 18px; font: 500 1.08rem/1.6 var(--f-head); color: var(--head); }
.quote blockquote p:last-child { margin: 0; }
.quote figcaption strong { display: block; color: var(--head); }
.quote figcaption span { color: var(--muted); font-size: .9rem; }

/* Call to action band */
.cta-band { position: relative; background: var(--navy); color: #fff; overflow: hidden; padding: clamp(48px, 6vw, 72px) 0; isolation: isolate; }
.cta-art { position: absolute; right: 0; top: 0; height: 100%; width: 60%; z-index: -1; }
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; margin-bottom: .25em; }
.cta-band p { color: #bcd0de; margin: 0; max-width: 56ch; }

/* ==========================================================================
   Page heads
   ========================================================================== */
.page-head { position: relative; background: var(--ink) linear-gradient(120deg, var(--ink) 40%, #06304a 100%); color: #fff; padding: clamp(48px, 7vw, 88px) 0 clamp(48px, 7vw, 80px); }
.page-head h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.3rem); font-weight: 800; margin-bottom: .3em; }
.page-head p { color: #cbd8e6; max-width: 62ch; font-size: 1.1rem; margin: 0; }
.page-head .meta { color: #b9c9da; margin-top: 18px; font-size: .9rem; }
.page-head .cat { color: var(--teal-l); }
.head-ico { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 50%; background: var(--btn); color: #fff; }
.head-ico .ico { width: 28px; height: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chips a { padding: 7px 16px; border-radius: 99px; color: #d3dfec; text-decoration: none; font-size: .92rem; font-weight: 600; box-shadow: inset 0 0 0 1px #3d6580; }
.chips a:hover { box-shadow: inset 0 0 0 1px #fff; color: #fff; }
.chips a[aria-current] { background: var(--btn); color: #fff; box-shadow: none; }

/* Tools */
.tool { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.tool-form, .tool-out { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 30px); box-shadow: var(--shadow); }
.tool-form { display: grid; gap: 16px; }
.tool-form h2, .tool-out h2 { font-size: 1.2rem; }
.tool-form .field input, .tool-form .field select { width: 100%; }
.tool-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tool-err { color: var(--bad); font-weight: 600; margin: 0; min-height: 1.2em; }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 0 0 24px; }
.kv > div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--muted); font-size: .92rem; }
.kv dd { margin: 0; font: 600 .95rem/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--head); text-align: right; word-break: break-all; }
.kv .big dd { font-size: 1.15rem; color: var(--teal-text); }
.tool-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tool-table th, .tool-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; font-variant-numeric: tabular-nums; }
.tool-table th { background: var(--panel); color: var(--head); }
.tool-scroll { overflow-x: auto; max-height: 420px; }
.tool-note { font-size: .88rem; color: var(--muted); }
@media (max-width: 900px) { .tool { grid-template-columns: 1fr; } .kv { grid-template-columns: 1fr; } }
/* ==========================================================================
   Contact band, forms
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact-copy h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
.contact-copy p { max-width: 46ch; }
.contact-list { list-style: none; margin: 24px 0; padding: 0; display: grid; gap: 12px; }
.contact-list li { display: flex; align-items: center; gap: 12px; }
.contact-list a { color: inherit; }
.contact-list .ico { color: var(--teal-l); }
.contact-form { background: var(--surface); color: var(--text); box-shadow: var(--shadow); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); }
.contact-form h2 { font-size: 1.4rem; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form--compact { grid-template-columns: 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--wide, .form-foot { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .92rem; color: var(--head); }
.opt { font-weight: 400; color: var(--muted); font-size: .85rem; }
.field input, .field select, .field textarea, .subscribe input, .searchform input {
	width: 100%; padding: .75em .9em; border: 1.5px solid #aebccb; border-radius: var(--r);
	background: var(--surface); color: var(--text); font: inherit; font-size: 1rem;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(4,144,142,.25); outline-offset: 0; border-color: var(--teal); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-status { margin: 0; font-weight: 600; font-size: .95rem; }
.form-status.is-ok { color: var(--ok); }
.form-status.is-error { color: var(--bad); }
.form.is-busy .btn { opacity: .6; pointer-events: none; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

.contact-page { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-form--light { border: 1px solid var(--line); }
.contact-side h2 { font-size: 1.4rem; }
.contact-list--big li { align-items: flex-start; }
.contact-list--big .ico { color: var(--cat); margin-top: 3px; width: 1.4em; height: 1.4em; }
.contact-list--big span { display: block; font-size: .85rem; color: var(--muted); }
.contact-list--big a { font-weight: 700; color: var(--head); }
.map { margin-top: 24px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; }
.map iframe { width: 100%; height: 100%; }
@media (max-width: 900px) { .contact-page { grid-template-columns: 1fr; } }

/* ==========================================================================
   Article / prose
   ========================================================================== */
.layout-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.layout-main { min-width: 0; }
@media (max-width: 1000px) { .layout-sidebar { grid-template-columns: minmax(0, 1fr); } }
.sidebar { min-width: 0; }
@media (max-width: 640px) { .prose table { display: block; overflow-x: auto; } }
.prose img, .post-hero img { max-width: 100%; height: auto; }

.prose { font-size: 1.0625rem; line-height: 1.75; }
.prose > * { max-width: 70ch; }
.prose h2 { font-size: 1.7rem; margin: 2em 0 .5em; }
.prose h3 { font-size: 1.25rem; margin: 1.6em 0 .4em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose img { border-radius: var(--r); }
.prose blockquote { margin: 1.6em 0; padding: .2em 0 .2em 1.2em; border-left: 4px solid var(--teal); font: 500 1.2rem/1.5 var(--f-head); color: var(--head); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1.5em 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.prose th { background: var(--panel); }
.prose pre, .prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
.prose pre { background: var(--ink); color: #e6eef7; padding: 16px 18px; border-radius: var(--r); overflow-x: auto; }
.prose :not(pre) > code { background: var(--panel); padding: .1em .35em; border-radius: 3px; }
.prose figure { margin: 1.6em 0; }
.prose figcaption, .wp-caption-text { font-size: .88rem; color: var(--muted); margin-top: 6px; }
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-block-image img, .wp-caption { max-width: 100%; height: auto; }
.post-hero { margin: 0 0 1.8em; max-width: none !important; }
.post-hero img { width: 100%; height: auto; border-radius: var(--r-lg); }
.tags { color: var(--muted); font-size: .92rem; }

.toc { background: var(--panel); border-left: 5px solid var(--teal); border-radius: 0 var(--r) var(--r) 0; padding: 18px 24px; margin: 0 0 2em; max-width: 70ch; }
.toc-title { font: 700 1.05rem/1.2 var(--f-head); margin: 0 0 8px; color: var(--head); }
.toc ol { margin: 0; padding-left: 1.2em; line-height: 1.5; }
.toc li { margin-bottom: 4px; }
.toc a { color: var(--head); }
.toc a.is-active { font-weight: 700; color: var(--cat); }

.checks { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; margin: 0; }
.checks .ico { color: var(--cat); margin-top: .25em; }

.share { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 2.2em 0 0; padding-top: 1.4em; border-top: 1px solid var(--line); }
.share-title { font-weight: 700; font-size: .95rem; }
.share ul { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.share a, .share-copy { display: grid; place-items: center; width: 42px; height: 42px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); color: var(--head); cursor: pointer; padding: 0; }
.share a:hover, .share-copy:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
.share-copy.is-done { background: var(--ok); color: #fff; border-color: var(--ok); }
.post-cta { margin-top: 2.4em; padding: 26px 28px; background: var(--navy); color: #dbe5f0; border-radius: var(--r-lg); border-left: 8px solid var(--fibre); max-width: 70ch; }
.post-cta h2 { color: #fff; font-size: 1.4rem; margin: 0 0 .3em; }
.post-cta p { margin: 0 0 1em; }

/* Sidebar */
.sidebar--sticky { position: sticky; top: 112px; }
.widget { background: var(--surface); box-shadow: var(--shadow); border: 1px solid rgba(3,26,44,.05); border-radius: var(--r-lg); padding: 20px 22px; margin-bottom: 22px; font-size: .98rem; }
.widget-title { font-size: 1.05rem; margin: 0 0 12px; }
.widget ul { padding-left: 1.1em; margin: 0; }
.widget--cta { background: var(--navy); color: #dbe5f0; border: 0; border-left: 6px solid var(--teal); }
.widget--cta .widget-title { color: #fff; }
.popular { list-style: decimal; padding-left: 1.3em; display: grid; gap: 12px; }
.popular a { font-weight: 600; text-decoration: none; color: var(--head); display: block; }
.popular a:hover { text-decoration: underline; }
.popular span { display: inline-flex; align-items: center; gap: 5px; font-size: .82rem; color: var(--muted); }
.facts { margin: 0; display: grid; gap: 12px; }
.facts div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt { color: var(--muted); font-size: .9rem; }
.facts dd { margin: 0; font-weight: 600; }
.searchform { display: flex; gap: 8px; }
.searchform input { flex: 1; min-width: 0; }
.searchform button { flex: none; width: 46px; background: var(--teal); color: #fff; border: 0; border-radius: var(--r); cursor: pointer; display: grid; place-items: center; }
.searchform button:hover { background: var(--teal-d); }

.pagination { margin-top: 36px; }
.pagination ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.pagination .page-numbers { display: block; padding: 8px 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); color: var(--head); text-decoration: none; font-weight: 600; }
.pagination .current { background: var(--btn); color: #fff; border-color: var(--btn); }
.pagination a.page-numbers:hover { border-color: var(--head); }
.empty { text-align: center; padding: 40px 0; }
.empty .searchform { max-width: 460px; margin: 20px auto; }
.empty-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Comments */
.comments h2 { font-size: 1.4rem; }
.comment-list { list-style: none; padding: 0; margin: 0 0 2em; }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment-meta { font-size: .88rem; color: var(--muted); margin-bottom: 6px; }
.comment-meta .avatar { border-radius: 50%; vertical-align: middle; margin-right: 8px; }
.comment-form label { display: block; font-weight: 700; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: .7em .9em; border: 1.5px solid #aebccb; border-radius: var(--r); font: inherit; }
.comment-form p { margin-bottom: 14px; }


/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { position: relative; background: var(--ink); color: #b9c9da; padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .9fr .9fr 1.4fr; gap: clamp(24px, 4vw, 52px); padding-bottom: 48px; }
.footer-about p { margin: 16px 0 18px; max-width: 34ch; }
.footer-title { font: 700 1rem/1.2 var(--f-head); color: #fff; margin: 0 0 14px; }
.footer-title--sub { margin-top: 26px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-list a, .site-footer .footer-list span { color: #b9c9da; text-decoration: none; }
.footer-list a:hover { color: var(--teal-l); text-decoration: underline; }
.footer-list--icons li { display: flex; gap: 10px; align-items: flex-start; }
.footer-list--icons .ico { color: var(--teal-l); margin-top: 3px; }
.social { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #dbe5f0; box-shadow: inset 0 0 0 1px #2c4f6b; }
.social a:hover { background: var(--teal); color: #fff; box-shadow: none; }
.subscribe { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.subscribe input { background: var(--ink-2); border-color: #2c4f6b; color: #fff; }
.subscribe input::placeholder { color: #8ea3b8; }
.subscribe .form-status { grid-column: 1 / -1; min-height: 1.2em; color: #dbe5f0; }
.subscribe .form-status.is-ok { color: #6fe3a0; }
.subscribe .form-status.is-error { color: #ff9b94; }
.footer-base { border-top: 1px solid #12354f; padding: 20px 0 28px; font-size: .88rem; }
.footer-base p { margin: 0; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }


.ad { margin: 30px auto; text-align: center; clear: both; }
.ad-label { display: block; font-size: .72rem; color: var(--muted); margin-bottom: 4px; }
.ad-body { min-height: 90px; display: flex; justify-content: center; align-items: center; overflow: hidden; }
.ad--header, .ad--footer { width: min(100% - 40px, var(--wrap)); }
.ad--sidebar { margin: 0 0 22px; }
.ad--sidebar .ad-body { min-height: 250px; }



/* ==========================================================================
   Version 3: motion, navigation, new sections
   ========================================================================== */
:root { --ease: cubic-bezier(.2, .7, .2, 1); --grad: linear-gradient(100deg, #2ad4cc 0%, #5aa9ff 100%); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.btn--lg { padding: 1.1em 1.7em; font-size: 1rem; }
.btn--sm { padding: .7em 1em; font-size: .88rem; justify-self: start; }
.btn--primary { box-shadow: 0 8px 20px -8px rgba(4, 144, 142, .7); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -8px rgba(4, 144, 142, .8); }
.btn { transition: background-color .15s, color .15s, box-shadow .2s, transform .2s var(--ease); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1020px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid--4 { grid-template-columns: 1fr; } }

/* Entrance on scroll. Only applied when JS adds .rv, so nothing is hidden without it. */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease) var(--d, 0ms), transform .7s var(--ease) var(--d, 0ms); }
.rv.is-in { opacity: 1; transform: none; }

/* Header and menus */
.site-header { transition: box-shadow .25s; }
/* The bar keeps one height. Changing it while scrolling made the page shake near the top. */
.nav .menu > li { display: flex; align-items: center; }
.sub-toggle { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-left: -12px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; }
.sub-toggle .ico { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.nav li:hover > .sub-toggle .ico, .nav li.is-open > .sub-toggle .ico { transform: rotate(180deg); }
.nav .sub-menu { display: block; visibility: hidden; opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .25s var(--ease), visibility .2s; min-width: 250px; padding: 10px; border-radius: var(--r-lg); margin-top: 6px; }
.nav .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu, .nav li.is-open > .sub-menu { visibility: visible; opacity: 1; transform: none; }
.nav .sub-menu a { padding: 10px 12px; border-radius: 8px; font-size: .94rem; transition: background-color .15s, color .15s, padding-left .2s var(--ease); }
.nav .sub-menu a:hover { background: var(--panel); color: var(--teal-d); padding-left: 16px; }
@media (max-width: 1020px) {
	.nav { max-height: calc(100vh - 68px); overflow-y: auto; }
	.nav.is-open { animation: navIn .25s var(--ease); }
	.nav .menu > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
	.nav .menu > li > a { flex: 1; border-bottom: 0; }
	.sub-toggle { width: 44px; height: 44px; margin: 0; }
	.sub-toggle .ico { width: 20px; height: 20px; }
	.nav .sub-menu { flex-basis: 100%; position: static; visibility: visible; opacity: 1; transform: none; margin: 0; padding: 0 0 0 12px; box-shadow: none; border: 0; min-width: 0; display: block; max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
	.nav li.is-open > .sub-menu { max-height: 520px; padding-bottom: 8px; }
	.nav .sub-menu a { border-bottom: 0; padding: 11px 8px; }
	.nav li:hover > .sub-toggle .ico { transform: none; }
	.nav li.is-open > .sub-toggle .ico { transform: rotate(180deg); }
}
@keyframes navIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* Hero */
.hero { padding: clamp(64px, 9vw, 128px) 0 clamp(72px, 10vw, 136px); }
.hero h1 { max-width: 15ch; }
.hero .eyebrow { margin-bottom: 22px; }
.lede { max-width: 52ch; line-height: 1.6; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0; transition: opacity 1.2s; pointer-events: none; }
.hero-canvas.is-live { opacity: .9; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 34px 0 0; padding: 0; color: #cfe3ee; font-size: .95rem; font-weight: 500; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .ico { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: rgba(42, 212, 204, .18); color: var(--teal-l); }
.js .hero-in > * { animation: rise .8s var(--ease) both; }
.js .hero-in > :nth-child(2) { animation-delay: .08s; }
.js .hero-in > :nth-child(3) { animation-delay: .16s; }
.js .hero-in > :nth-child(4) { animation-delay: .24s; }
.js .hero-in > :nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* Technology ticker */
.ticker { overflow: hidden; background: var(--surface); border-bottom: 1px solid var(--line); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker ul { display: flex; flex: none; gap: 0; list-style: none; margin: 0; padding: 18px 0; }
.ticker li { display: inline-flex; align-items: center; white-space: nowrap; padding: 0 26px; font: 600 .9rem/1 var(--f-head); color: var(--head); letter-spacing: .02em; }
.ticker li::before { content: ""; width: 7px; height: 7px; margin-right: 14px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(4, 144, 142, .14); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Numbers */
.stats { background: var(--panel); padding: clamp(32px, 5vw, 56px) 0; }
.stats-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 24px; text-align: center; }
.stat strong { display: block; font: 800 clamp(2.2rem, 4.4vw, 3.2rem)/1 var(--f-head); letter-spacing: -.03em; color: var(--head); font-variant-numeric: tabular-nums; }
.stat > span { display: block; margin-top: 8px; color: var(--text); font-weight: 500; }

/* Eyebrow labels keep their colour and spacing inside section heads */
.band-head .eyebrow, .page-head .eyebrow { color: var(--teal-text); margin: 0 0 16px; font-size: .78rem; max-width: none; }
.band-head .eyebrow--light, .page-head .eyebrow--light, .band--ink .band-head .eyebrow { color: var(--teal-l); }

/* Dark band with a fine grid */
.band--grid { position: relative; isolation: isolate; overflow: hidden; }
.band--grid::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse at 70% 0%, #000, transparent 72%); mask-image: radial-gradient(ellipse at 70% 0%, #000, transparent 72%); }
.band--ink .band-head p:not(.eyebrow) { color: #b8ccda; }
.value { position: relative; padding: 28px 26px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09); overflow: hidden; transition: transform .3s var(--ease), border-color .3s, background-color .3s; }
.value:hover { transform: translateY(-4px); border-color: rgba(42, 212, 204, .5); background: rgba(255, 255, 255, .06); }
.value-ico { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 20px; border-radius: 14px; background: var(--grad); color: var(--ink); }
.value-ico .ico { width: 24px; height: 24px; }
.value h3 { font-size: 1.12rem; margin-bottom: .45em; }
.value p { margin: 0; color: #b8ccda; font-size: .96rem; }

/* Pointer light on cards */
.sol-card, .proj-card, .res-card, .course, .post-card { position: relative; }
.sol-card::after, .proj-card::after, .res-card::after, .course::after, .post-card::after, .value::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(42, 212, 204, .16), transparent 70%); }
.sol-card:hover::after, .proj-card:hover::after, .res-card:hover::after, .course:hover::after, .post-card:hover::after, .value:hover::after { opacity: 1; }
.sol-card, .proj-card, .res-card, .course, .post-card { transition: transform .35s var(--ease), box-shadow .35s var(--ease), opacity .7s var(--ease) var(--d, 0ms); }
.sol-card:hover, .proj-card:hover, .res-card:hover, .course:hover, .post-card:hover { transform: translateY(-6px); }
.rv.sol-card:not(.is-in), .rv.proj-card:not(.is-in), .rv.res-card:not(.is-in), .rv.course:not(.is-in), .rv.post-card:not(.is-in) { transform: translateY(22px); }
.sol-ico { transition: transform .35s var(--ease), background-color .2s; }
.sol-card:hover .sol-ico, .course:hover .sol-ico { transform: scale(1.08) rotate(-6deg); }
.more { position: relative; }
.more::after { content: ""; position: absolute; left: 0; right: 1.6em; bottom: -3px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.more:hover::after { transform: scaleX(1); }

/* Process */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; position: relative; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 48px; right: -22px; top: 23px; height: 3px; background: linear-gradient(90deg, #14b8b3, #5aa9ff) no-repeat left / 0% 100%, var(--line); transition: background-size .5s var(--ease); }
.steps.is-in li:not(:last-child)::after { background-size: 100% 100%, auto; }
.steps.is-in li:nth-child(1)::after { transition-delay: .3s; }
.steps.is-in li:nth-child(2)::after { transition-delay: .6s; }
.steps.is-in li:nth-child(3)::after { transition-delay: .9s; }
.steps.is-in li:nth-child(4)::after { transition-delay: 1.2s; }
.steps li { position: relative; z-index: 1; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 50%; background: var(--surface); border: 3px solid var(--line); font: 800 1.05rem/1 var(--f-head); color: var(--muted); transition: border-color .4s, color .4s, background-color .4s, transform .4s var(--ease); }
.band--alt .steps li::before { background: var(--panel); }
.steps.is-in li::before { border-color: var(--teal); color: var(--teal-d); }
.steps.is-in li:nth-child(1)::before { transition-delay: .2s; }
.steps.is-in li:nth-child(2)::before { transition-delay: .5s; }
.steps.is-in li:nth-child(3)::before { transition-delay: .8s; }
.steps.is-in li:nth-child(4)::before { transition-delay: 1.1s; }
.steps.is-in li:nth-child(5)::before { transition-delay: 1.4s; }
.steps li:hover::before { background: var(--teal); border-color: var(--teal); color: #fff; transform: scale(1.08); transition-delay: 0s; }
.steps h3 { font-size: 1.1rem; margin-bottom: .35em; }
.steps p { margin: 0; font-size: .95rem; }
@media (max-width: 900px) {
	.steps { grid-template-columns: 1fr; gap: 0; }
	.steps li:not(:last-child)::after { left: 22px; right: auto; top: 48px; bottom: 0; width: 3px; height: auto; background: linear-gradient(180deg, #14b8b3, #5aa9ff) no-repeat top / 100% 0%, var(--line); }
	.steps.is-in li:not(:last-child)::after { background-size: 100% 100%, auto; }
	.steps li { padding: 0 0 30px 70px; min-height: 60px; }
	.steps li:last-child { padding-bottom: 0; }
	.steps li::before { position: absolute; left: 0; top: 0; margin: 0; }
}

/* Tabs */
.tabs { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.tab-list { display: flex; flex-wrap: wrap; gap: 4px; padding: 10px; background: var(--soft); border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.tab-list button { display: inline-flex; align-items: center; gap: 9px; flex: none; padding: 12px 16px; border: 0; border-radius: 10px; background: none; cursor: pointer; font: 600 .93rem/1 var(--f-head); color: var(--text); white-space: nowrap; transition: background-color .2s, color .2s, box-shadow .2s; }
.tab-list button:hover { color: var(--head); background: var(--surface); }
.tab-list button[aria-selected="true"] { background: var(--btn); color: #fff; box-shadow: 0 6px 16px -6px rgba(4, 144, 142, .8); }
.tab-list .ico { width: 18px; height: 18px; }
.tab-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; padding: clamp(24px, 4vw, 44px); }
.tab-panel + .tab-panel { border-top: 1px solid var(--line); }
.tabs.is-ready .tab-panel { border-top: 0; animation: tabIn .45s var(--ease); }
.tabs.is-ready .tab-panel[data-inactive] { display: none; }
.tab-copy h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.tab-copy p { font-size: 1.05rem; max-width: 44ch; }
.tab-panel .checks li { padding: 13px 16px; border-radius: 10px; background: var(--soft); color: var(--head); font-weight: 500; transition: transform .25s var(--ease), background-color .2s; }
.tab-panel .checks li:hover { transform: translateX(6px); background: var(--soft-2); }
.tab-panel .checks .ico { color: var(--teal); margin-top: .2em; }
@keyframes tabIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) { .tab-panel { grid-template-columns: 1fr; } .tab-list { flex-wrap: nowrap; overflow-x: auto; } }

/* Questions and answers */
.faq { display: grid; gap: 12px; max-width: none !important; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; transition: border-color .25s, box-shadow .25s; }
.faq details:hover { border-color: #b9c9d6; }
.faq details[open] { border-color: var(--teal); box-shadow: 0 10px 26px -14px rgba(4, 144, 142, .55); }
.faq summary { cursor: pointer; padding: 18px 22px; font: 700 1.03rem/1.35 var(--f-head); color: var(--head); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 18px; border-radius: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2304908e' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .35s var(--ease), background-color .2s; }
.faq details[open] summary::after { transform: rotate(135deg); background-color: #d9f1f0; }
.faq-a { padding: 0 22px 20px; }
.faq-a p { margin: 0; color: var(--text); max-width: 68ch; }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .35s var(--ease), content-visibility .35s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
@supports (interpolate-size: allow-keywords) { .faq { interpolate-size: allow-keywords; } }
.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq-layout .band-head { position: sticky; top: 110px; margin: 0; }
.faq-layout .band-head .btn { margin-top: 24px; }
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; } .faq-layout .band-head { position: static; } }
.prose .faq { margin: 1.2em 0 1.6em; }

/* Contents list in articles can be folded away */
.toc summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; margin: 0; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: ""; width: 10px; height: 10px; margin-right: 4px; border-right: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal); transform: rotate(45deg); transition: transform .3s var(--ease); }
.toc details[open] summary::after { transform: rotate(-135deg); }
.toc details[open] summary { margin-bottom: 10px; }
.toc { border-left-width: 4px; border-radius: 0 12px 12px 0; }

/* Page heads */
.page-head { overflow: hidden; isolation: isolate; }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(127, 240, 232, .22) 1.2px, transparent 1.2px); background-size: 26px 26px; -webkit-mask-image: linear-gradient(100deg, transparent 35%, #000); mask-image: linear-gradient(100deg, transparent 35%, #000); }
.page-head::after { content: ""; position: absolute; right: -120px; top: -160px; width: 460px; height: 460px; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(42, 212, 204, .22), transparent 65%); }
.js .page-head .wrap > * { animation: rise .7s var(--ease) both; }
.js .page-head .wrap > :nth-child(2) { animation-delay: .07s; }
.js .page-head .wrap > :nth-child(3) { animation-delay: .14s; }

/* Reading progress and back to top */
.read-progress { position: fixed; left: 0; right: 0; top: 0; z-index: 150; height: 3px; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: var(--grad); transform: scaleX(0); transform-origin: left; }
.fab-top { position: fixed; right: 20px; bottom: 20px; z-index: 89; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--navy); color: #fff; cursor: pointer; box-shadow: 0 8px 22px rgba(3, 26, 44, .3); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .25s, transform .25s var(--ease), visibility .25s, background-color .2s; }
.fab-top.is-on { opacity: 1; visibility: visible; transform: none; }
.fab-top:hover { background: var(--teal); }
.footer-base { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.to-top { display: inline-flex; align-items: center; gap: 8px; color: #b9c9da; text-decoration: none; font-weight: 600; }
.to-top:hover { color: var(--teal-l); }
.footer-list a { transition: color .15s, padding-left .2s var(--ease); }
.footer-list:not(.footer-list--icons) a:hover { padding-left: 5px; text-decoration: none; }

/* Contact page */
.next-steps { counter-reset: n; list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 16px; }
.next-steps li { counter-increment: n; display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; }
.next-steps li::before { content: counter(n); grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--soft-2); color: var(--teal-d); font: 800 1rem/1 var(--f-head); }
.next-steps strong { color: var(--head); font-family: var(--f-head); }
.next-steps span { font-size: .95rem; }
.field input, .field select, .field textarea { transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: 0 0 0 4px rgba(4, 144, 142, .12); }

/* Tools */
.tool-about { margin-top: 56px; }
.verdict { margin: 0 0 14px; padding: 12px 16px; border-radius: 10px; font-weight: 600; background: var(--panel); color: var(--head); }
.verdict.is-ok { background: #e3f6ec; color: #0b6a35; }
.verdict.is-warn { background: #fff3da; color: #7a4d00; }
.verdict.is-bad { background: #fde7e5; color: #9c1f18; }
.meter { position: relative; height: 14px; margin: 0 0 22px; border-radius: 7px; background: var(--panel); }
.meter span { display: block; height: 100%; width: 0; border-radius: 7px; background: var(--teal); transition: width .5s var(--ease), background-color .3s; }
.meter.is-warn span { background: #e39a00; }
.meter.is-bad span { background: #c9372c; }
.meter i { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--head); }
.poe-rows { display: grid; gap: 12px; }
.poe-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 40px; gap: 8px; align-items: end; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.poe-row .field:first-child { grid-column: 1 / -1; }
.poe-row .field label { font-size: .8rem; }
.poe-row .field input, .poe-row .field select { padding: .6em .55em; }
.poe-del { width: 40px; height: 44px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--muted); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.poe-del:hover { border-color: var(--bad); color: var(--bad); }
.tool-form .field input, .tool-form .field select { min-width: 0; }
.tool-form, .tool-out { transition: box-shadow .3s; }
.tool-out:hover { box-shadow: 0 16px 36px rgba(3, 26, 44, .11); }

.hero.has-img { background: var(--ink) var(--hero-img) center / cover no-repeat; }
.hero.has-img::before { background: linear-gradient(90deg, rgba(3, 26, 44, .96) 0%, rgba(3, 26, 44, .86) 42%, rgba(3, 26, 44, .5) 100%), linear-gradient(0deg, rgba(3, 26, 44, .55), transparent 40%); }

/* References at the end of an article */
.prose .refs { list-style: none; padding: 0; display: grid; gap: 8px; }
.prose .refs li { margin: 0; padding: 12px 16px 12px 44px; position: relative; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); transition: border-color .2s, transform .25s var(--ease); }
.prose .refs li:hover { border-color: var(--teal); transform: translateX(4px); }
.prose .refs li::before { content: ""; position: absolute; left: 16px; top: 50%; width: 16px; height: 16px; margin-top: -8px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2304908e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 14a4 4 0 005.7 0l3-3a4 4 0 00-5.7-5.700l-1 1M14 10a4 4 0 00-5.7 0l-3 3a4 4 0 005.700 5.700l1-1'/%3E%3C/svg%3E") center / contain no-repeat; }
.prose .refs a { font-weight: 600; text-decoration: none; }
.prose .refs a:hover { text-decoration: underline; }
.refs-note { font-size: .86rem; color: var(--muted); }

/* Images */
.sol-media, .res-media, .post-card-media, .proj-media { background: var(--ink); }
.post-hero img { box-shadow: var(--shadow); }
/* ==========================================================================
   Print and motion
   ========================================================================== */
@media print {
	.site-header, .site-footer, .sidebar, .share, .ad, .post-cta, .cta-band { display: none !important; }
	body { background: #fff; }
}
@media (prefers-reduced-motion: reduce) {
	.ticker-track { animation: none !important; flex-wrap: wrap; width: auto; }
	.ticker ul[aria-hidden] { display: none; }
	.ticker ul { flex-wrap: wrap; justify-content: center; }
	.rv { opacity: 1 !important; transform: none !important; }
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---- Motion switch ---- */
.motion-toggle { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--head); cursor: pointer; transition: background-color .2s; }
.motion-toggle:hover { background: var(--panel); }
.motion-toggle .ico { width: 20px; height: 20px; }
.motion-toggle .m-x { display: none; }
.motion-toggle[data-level="reduced"] .m-3, .motion-toggle[data-level="reduced"] .m-4,
.motion-toggle[data-level="off"] .m-2, .motion-toggle[data-level="off"] .m-3, .motion-toggle[data-level="off"] .m-4 { display: none; }
.motion-toggle[data-level="off"] .m-x { display: block; }
@media (max-width: 900px) { .motion-toggle { align-self: flex-start; } }

/* Motion levels. "off" stops everything, like the device setting. "reduced" keeps one-time entrances but stops loops and moving backgrounds. */
:root[data-motion="off"] .ticker-track { animation: none !important; flex-wrap: wrap; width: auto; }
:root[data-motion="off"] .ticker ul[aria-hidden] { display: none; }
:root[data-motion="off"] .ticker ul { flex-wrap: wrap; justify-content: center; }
:root[data-motion="off"] .rv { opacity: 1 !important; transform: none !important; }
:root[data-motion="off"] *, :root[data-motion="off"] *::before, :root[data-motion="off"] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
:root[data-motion="reduced"] .ticker-track { animation: none !important; flex-wrap: wrap; width: auto; }
:root[data-motion="reduced"] .ticker ul[aria-hidden] { display: none; }
:root[data-motion="reduced"] .ticker ul { flex-wrap: wrap; justify-content: center; }
:root[data-motion="reduced"] .hero-canvas, :root[data-motion="reduced"] .s-hero::after { display: none; }
:root[data-motion="reduced"] .s-hero { animation: none !important; }
:root[data-motion="reduced"] .cube { animation: none !important; }
:root[data-motion="reduced"] { scroll-behavior: auto; }

/* ---- Hero 3D cube (Full style, wide screens only) ---- */
.hero-cube { display: none; }
@media (min-width: 1000px) {
	.hero-cube { --s: clamp(170px, 18vw, 250px); display: block; position: absolute; z-index: 0; right: max(40px, calc((100vw - 1200px) / 2 + 40px)); top: 50%; width: var(--s); height: var(--s); margin-top: calc(var(--s) / -2); perspective: 1100px; pointer-events: none; color: var(--teal-l); }
	.cube-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
	.cube-tilt { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s ease-out; }
	.cube { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(-24deg) rotateY(35deg); animation: cubeSpin 40s linear 2 forwards; }
	.cube-face { position: absolute; inset: 0; border: 1px solid rgba(42, 212, 204, .65); background: rgba(14, 92, 110, .34); backface-visibility: hidden; }
	.cube-face svg { width: 100%; height: 100%; display: block; }
	.cube-f1 { transform: translateZ(calc(var(--s) / 2)); }
	.cube-f2 { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
	.cube-f3 { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
	.cube-f4 { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
	.cube-f5 { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); }
	.cube-f6 { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }
	.hero-cube.is-paused .cube { animation-play-state: paused; }
}
@keyframes cubeSpin { from { transform: rotateX(-24deg) rotateY(35deg); } to { transform: rotateX(-24deg) rotateY(395deg); } }
@media print { .hero-cube, .motion-toggle { display: none !important; } }

.footer-note { flex-basis: 100%; order: 3; margin-top: 10px; font-size: .8rem; opacity: .75; }
.footer-base .reg { margin-left: .5em; opacity: .8; }

/* ==========================================================================
   3.3 additions: notices, vendor groups, trainers, dashboards, theme toggle
   ========================================================================== */
.notice { margin: 0 0 24px; padding: 14px 18px; background: #eef7f7; border: 1px solid #cfe6e6; border-left: 4px solid var(--teal); border-radius: var(--r); font-size: .93rem; color: var(--text); }
.notice--tool { background: #fff7e3; border-color: #f0dca6; border-left-color: #d49a06; margin-top: 28px; }
.notice strong { color: var(--head); }
.vendor-group { margin-top: 36px; }
.vendor-group > h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 18px; }
.ext-note { display: block; margin-top: 8px; font-size: .78rem; color: var(--muted); }
.trainer { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow); }
.trainer-pic { width: 96px; height: 96px; object-fit: cover; border-radius: 50%; margin-bottom: 12px; }
.trainer-role { color: var(--cat); font-weight: 600; margin-bottom: .6em; }
.dash-frame { margin: 24px 0 12px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.dash-frame iframe { display: block; width: 100%; border: 0; }
.footer-list .footer-last { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; opacity: .85; }
.refs { padding-left: 1.2em; font-size: .93rem; }
.refs-note, .updated { font-size: .85rem; color: var(--muted); }
.theme-toggle { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--head); cursor: pointer; transition: background-color .2s, transform .2s; }
.theme-toggle:hover { background: var(--panel); transform: rotate(14deg); }
.theme-toggle .ico { width: 20px; height: 20px; }
.theme-toggle .t-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .t-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .t-moon { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .theme-toggle .t-sun { display: block; }
	:root:not([data-theme="light"]) .theme-toggle .t-moon { display: none; }
}
@media (max-width: 900px) { .theme-toggle { align-self: flex-start; } }

/* ==========================================================================
   Dark mode. Automatic (device setting) unless the visitor chose a side.
   ========================================================================== */
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #071522;
		--soft: #12283b;
		--soft-2: #0f3a44;
		--teal-text: #2ad4cc;
		--surface: #0f2234;
		--panel: #0b1c2d;
		--text: #b6c4d1;
		--head: #e9f1f7;
		--muted: #93a4b3;
		--line: #25394d;
		--cat: #2ad4cc;
		--teal: #0aa3a0;
		--ok: #4cc27f;
		--bad: #ff8a80;
		--shadow: 0 10px 30px rgba(0, 0, 0, .45);
		color-scheme: dark;
	}
}
:root[data-theme="dark"] {
	--bg: #071522;
	--soft: #12283b;
	--soft-2: #0f3a44;
	--teal-text: #2ad4cc;
	--surface: #0f2234;
	--panel: #0b1c2d;
	--text: #b6c4d1;
	--head: #e9f1f7;
	--muted: #93a4b3;
	--line: #25394d;
	--cat: #2ad4cc;
	--teal: #0aa3a0;
	--ok: #4cc27f;
	--bad: #ff8a80;
	--shadow: 0 10px 30px rgba(0, 0, 0, .45);
	color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }
html { transition: background-color .25s; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) a:hover { color: var(--teal-l); }
	:root:not([data-theme="light"]) .brand-text { color: var(--head); }
	:root:not([data-theme="light"]) .site-footer .brand-text, :root:not([data-theme="light"]) .brand--light .brand-text { color: #fff; }
	:root:not([data-theme="light"]) .logo-mark path:first-child { fill: #14577a; }
	:root:not([data-theme="light"]) .btn--outline-dark { color: var(--head); }
	:root:not([data-theme="light"]) .btn--outline-dark:hover, :root:not([data-theme="light"]) .btn--ghost-dark:hover { background: var(--head); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--head); }
	:root:not([data-theme="light"]) .tab-list button:hover { background: var(--panel); }
	:root:not([data-theme="light"]) .faq details[open] summary::after { background-color: #0d3a44; }
	:root:not([data-theme="light"]) .verdict.is-warn { background: #3a2c0a; color: #ffd68a; }
	:root:not([data-theme="light"]) .sol-card, :root:not([data-theme="light"]) .proj-card, :root:not([data-theme="light"]) .res-card, :root:not([data-theme="light"]) .course, :root:not([data-theme="light"]) .post-card, :root:not([data-theme="light"]) .quote { border-color: var(--line); }
	:root:not([data-theme="light"]) .widget { border-color: var(--line); }
	:root:not([data-theme="light"]) .site-header.is-stuck { box-shadow: 0 2px 18px rgba(0, 0, 0, .5); }
	:root:not([data-theme="light"]) .pills li { background: var(--panel); }
	:root:not([data-theme="light"]) .contact-form, :root:not([data-theme="light"]) .contact-form label { color: var(--text); }
	:root:not([data-theme="light"]) img { filter: brightness(.92); }
	:root:not([data-theme="light"]) .notice { background: #14303a; border-color: #1f5560; color: var(--text); }
	:root:not([data-theme="light"]) .notice--tool { background: #3a2c0a; border-color: #6b5316; color: #f2dfae; }
}
:root[data-theme="dark"] a:hover { color: var(--teal-l); }
:root[data-theme="dark"] .brand-text { color: var(--head); }
:root[data-theme="dark"] .site-footer .brand-text, :root[data-theme="dark"] .brand--light .brand-text { color: #fff; }
:root[data-theme="dark"] .logo-mark path:first-child { fill: #14577a; }
:root[data-theme="dark"] .btn--outline-dark { color: var(--head); }
:root[data-theme="dark"] .btn--outline-dark:hover, :root[data-theme="dark"] .btn--ghost-dark:hover { background: var(--head); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--head); }
:root[data-theme="dark"] .tab-list button:hover { background: var(--panel); }
:root[data-theme="dark"] .faq details[open] summary::after { background-color: #0d3a44; }
:root[data-theme="dark"] .verdict.is-warn { background: #3a2c0a; color: #ffd68a; }
:root[data-theme="dark"] .sol-card, :root[data-theme="dark"] .proj-card, :root[data-theme="dark"] .res-card, :root[data-theme="dark"] .course, :root[data-theme="dark"] .post-card, :root[data-theme="dark"] .quote { border-color: var(--line); }
:root[data-theme="dark"] .widget { border-color: var(--line); }
:root[data-theme="dark"] .site-header.is-stuck { box-shadow: 0 2px 18px rgba(0, 0, 0, .5); }
:root[data-theme="dark"] .pills li { background: var(--panel); }
:root[data-theme="dark"] .contact-form, :root[data-theme="dark"] .contact-form label { color: var(--text); }
:root[data-theme="dark"] img { filter: brightness(.92); }
:root[data-theme="dark"] .notice { background: #14303a; border-color: #1f5560; color: var(--text); }
:root[data-theme="dark"] .notice--tool { background: #3a2c0a; border-color: #6b5316; color: #f2dfae; }

.grid + .notice, .grid + .notice--tool { margin-top: 28px; }
.s-list + .notice { margin-top: 22px; }

/* Slogan: words rise in one by one, then a line draws under them. */
.slogan { padding: clamp(36px, 6vw, 64px) 0; text-align: center; background: var(--bg); border-bottom: 1px solid var(--line); }
.slogan-text { margin: 0 auto .35em; max-width: 22ch; font: 800 clamp(1.8rem, 4.4vw, 3.2rem)/1.12 var(--f-head); letter-spacing: -.02em; color: var(--head); position: relative; display: block; }
.slogan-text span { display: inline-block; }
.slogan-text span:nth-child(odd) { color: var(--head); }
.slogan-text span:last-child, .slogan-text span:nth-last-child(2) { background: linear-gradient(90deg, var(--teal), #3b8cff); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.slogan-text::after { content: ""; display: block; height: 4px; width: 0; margin: .5em auto 0; border-radius: 4px; background: linear-gradient(90deg, var(--teal), #3b8cff); transition: width 1.2s var(--ease) .9s; }
.slogan .rv .slogan-text span, .slogan .rv.slogan-text span { }
.js .slogan [data-reveal] .slogan-text span { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i) * 110ms); }
.js .slogan [data-reveal].is-in .slogan-text span { opacity: 1; transform: none; }
.slogan [data-reveal].is-in .slogan-text::after { width: min(220px, 50%); }
.slogan-sub { margin: 0; color: var(--muted); font-size: 1.05rem; }
.js .slogan [data-reveal] .slogan-sub { opacity: 0; transition: opacity .8s var(--ease) 1.2s; }
.js .slogan [data-reveal].is-in .slogan-sub { opacity: 1; }
.slogan [data-reveal].rv { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .slogan [data-reveal] .slogan-text span, .js .slogan [data-reveal] .slogan-sub { opacity: 1 !important; transform: none !important; } .slogan-text::after { width: 160px; } }

/* Learning pages, cookie notice */
.ad--wait { display: none !important; }
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 300; max-width: 760px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; justify-content: space-between; padding: 16px 20px; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 18px 50px rgba(3, 26, 44, .3); font-size: .93rem; }
.consent p { margin: 0; flex: 1 1 320px; }
.consent-btns { display: flex; gap: 10px; }
.linkbtn { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; opacity: .85; }
.glossary { margin: 18px 0 0; display: grid; gap: 10px; }
.gl-item { padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.gl-item dt { font: 700 1.02rem/1.3 var(--f-head); color: var(--head); }
.gl-item dd { margin: .25em 0 0; }
.quiz-opts { display: grid; gap: 10px; margin: 16px 0; }
.quiz-opt { text-align: left; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--head); font: 600 1rem/1.3 var(--f-body); cursor: pointer; transition: border-color .15s, background-color .15s; }
.quiz-opt:hover:not(:disabled) { border-color: var(--teal); }
.quiz-opt.is-right { border-color: var(--ok); background: rgba(11, 122, 59, .12); }
.quiz-opt.is-wrong { border-color: var(--bad); background: rgba(179, 38, 30, .1); }
.quiz-progress { color: var(--muted); font-weight: 600; }
.quiz-feedback { min-height: 2.4em; }
.cheat h2 { margin-top: 1.6em; font-size: 1.35rem; }
.cheat h3 { margin-top: 1.2em; font-size: 1.1rem; }
.cheat code, .tool-table code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
pre.cli { margin: 1em 0; padding: 16px 18px; overflow-x: auto; max-width: 100%; background: var(--soft); border: 1px solid var(--line); border-radius: var(--r); color: var(--head); font-size: .9rem; line-height: 1.55; tab-size: 4; }
pre.cli code { background: none; padding: 0; white-space: pre; }
.cs-more { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; list-style: none; }
.cs-more a { font-weight: 600; }
.start-link { margin: 22px 0 0; }
.start-steps { counter-reset: st; list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 18px; }
.start-steps > li { counter-increment: st; position: relative; padding: 22px 24px 22px 76px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.start-steps > li::before { content: counter(st); position: absolute; left: 22px; top: 22px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--soft-2); color: var(--teal-d); font: 800 1rem/1 var(--f-head); }
.start-steps h2 { font-size: 1.2rem; margin: 0 0 .3em; }
.start-steps p { margin: 0 0 .6em; }
@media (max-width: 520px) { .start-steps > li { padding: 18px 16px 18px 16px; padding-top: 70px; } }
textarea#vl-req { width: 100%; font-family: ui-monospace, Menlo, Consolas, monospace; }
@media print {
	.no-print, .consent, .fab-top, .theme-toggle, .motion-toggle, .nav-toggle, .notice--tool .x { display: none !important; }
	.cheat { font-size: 11pt; } .cheat h2 { break-after: avoid; } .tool-table { break-inside: avoid; }
	.page-head { background: none !important; color: #000 !important; padding: 0 0 8pt !important; } .page-head h1, .page-head p, .page-head .eyebrow { color: #000 !important; }
}
.tool > *, .tool-form, .tool-out { min-width: 0; }
.tool-scroll { overflow-x: auto; max-width: 100%; }

.prose a:not(.btn) { color: var(--teal-text); }
.widget--cta p { color: #dbe5f0; }

/* Learning Hub groups (3.7) */
.hub-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; }
.hub-chips a { display: inline-flex; gap: .45rem; align-items: center; padding: .45rem .9rem; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-size: .9rem; text-decoration: none; color: inherit; background: var(--surface); }
.hub-chips a span { background: var(--soft-2); border-radius: 999px; padding: 0 .5rem; font-size: .8rem; }
.hub-chips a:hover, .hub-chips a:focus-visible { border-color: var(--teal); }
.hub-group { margin: 0 0 1.25rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); scroll-margin-top: 90px; }
.hub-group > summary { list-style: none; display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; cursor: pointer; }
.hub-group > summary::-webkit-details-marker { display: none; }
.hub-group > .grid { padding: 0 1.1rem 1.1rem; }
.hub-sum { flex: 1; display: flex; flex-direction: column; gap: .1rem; }
.hub-sum span { font-size: .9rem; opacity: .75; }
.hub-count { font-weight: 700; font-size: .85rem; padding: .1rem .6rem; border-radius: 999px; background: var(--soft-2); }
.hub-chev svg { width: 1.1rem; height: 1.1rem; transition: transform .2s; }
.hub-group[open] .hub-chev svg { transform: rotate(180deg); }
:root[data-motion="off"] .hub-chev svg { transition: none; }
.hub-tile { display: flex; flex-direction: column; gap: .35rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: inherit; background: var(--surface); }
.hub-tile:hover, .hub-tile:focus-visible { border-color: var(--teal); }
.hub-tile span:not(.s-ico) { font-size: .9rem; opacity: .8; }
.hub-tile em { font-style: normal; font-size: .8rem; font-weight: 600; opacity: .7; }

/* Learning Hub side panel (3.8) */
.hub-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: clamp(24px, 3vw, 44px); align-items: start; }
.hub-layout.side-closed { grid-template-columns: minmax(0, 1fr); }
.hub-main { min-width: 0; }
.hub-side { position: sticky; top: 88px; max-height: calc(100vh - 104px); overflow: auto; }
.hub-layout.side-closed .hub-side { position: static; max-height: none; overflow: visible; }
.hub-side-toggle { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .7rem 1rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--head); font: inherit; font-weight: 700; cursor: pointer; }
.hub-side-toggle svg { width: 1.1rem; height: 1.1rem; }
.hub-side-toggle:hover, .hub-side-toggle:focus-visible { border-color: var(--teal); }
.hub-nav { margin-top: .6rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: .5rem; }
.hub-layout.side-closed .hub-nav { display: none; }
.hub-all { display: block; padding: .5rem .6rem; border-radius: 6px; font-weight: 700; text-decoration: none; color: var(--teal-text); }
.hub-nav details { border-top: 1px solid var(--line); }
.hub-nav summary { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .6rem; cursor: pointer; font-weight: 700; color: var(--head); list-style: none; }
.hub-nav summary::-webkit-details-marker { display: none; }
.hub-nav summary::after { content: "+"; font-weight: 400; opacity: .6; margin-left: auto; padding-left: .5rem; }
.hub-nav details[open] > summary::after { content: "\2212"; }
.hub-nav summary .hub-count { order: 2; }
.hub-nav ul { list-style: none; margin: 0 0 .4rem; padding: 0; }
.hub-nav li a { display: block; padding: .38rem .6rem .38rem 1rem; border-radius: 6px; font-size: .92rem; text-decoration: none; color: var(--text); }
.hub-nav li a:hover, .hub-nav li a:focus-visible, .hub-all:hover { background: var(--soft-2); color: var(--head); }
.hub-nav li a[aria-current="page"] { background: var(--soft-2); color: var(--head); font-weight: 700; box-shadow: inset 3px 0 0 var(--teal); }
@media (max-width: 960px) { .hub-layout { grid-template-columns: minmax(0, 1fr); } .hub-side { position: static; max-height: none; overflow: visible; } .hub-layout:not(.side-open) .hub-nav { display: none; } }
@media (max-width: 1180px) { .hub-main .tool { grid-template-columns: minmax(0, 1fr); } }
@media print { .hub-side { display: none; } .hub-layout { display: block; } }

/* Learning Hub dashboard (3.8) */
.hub-dash { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 1.25rem; }
.hub-stat { padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.hub-stat strong { display: block; font-size: 1.7rem; line-height: 1.1; color: var(--head); }
.hub-stat span { font-size: .88rem; color: var(--muted); }
.hub-tools-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 0 0 1rem; }
.hub-search { flex: 1 1 260px; max-width: 420px; padding: .65rem .9rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--head); font: inherit; }
.hub-btns { display: flex; gap: .5rem; }
.hub-btns button { padding: .5rem .9rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--head); font: inherit; font-weight: 600; cursor: pointer; }
.hub-btns button:hover, .hub-btns button:focus-visible { border-color: var(--teal); }
.res-card[hidden], .hub-group[hidden] { display: none; }
.hub-none { padding: 1rem; color: var(--muted); }

/* Roadmaps and speed test (3.8) */
.road { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 14px; counter-reset: road; }
.road > li { counter-increment: road; position: relative; padding: 1.1rem 1.2rem 1.1rem 4rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.road > li::before { content: counter(road); position: absolute; left: 1.1rem; top: 1.1rem; width: 2.1rem; height: 2.1rem; display: grid; place-items: center; border-radius: 50%; background: var(--btn); color: #fff; font-weight: 800; }
.road h2 { font-size: 1.15rem; margin: 0 0 .25rem; }
.road p { margin: 0 0 .5rem; }
.road .cs-more { margin: 0; }
.road-meta { font-size: .85rem; color: var(--muted); }
.speed { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 1rem; }
.speed-box { padding: 1rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); text-align: center; }
.speed-box strong { display: block; font-size: 2rem; line-height: 1.1; color: var(--head); }
.speed-box span { font-size: .85rem; color: var(--muted); }
.speed-bar { height: 8px; border-radius: 99px; background: var(--soft-2); overflow: hidden; margin: 0 0 1rem; }
.speed-bar i { display: block; height: 100%; width: 0; background: var(--btn); transition: width .2s; }
:root[data-motion="off"] .speed-bar i { transition: none; }
@media (max-width: 560px) { .speed { grid-template-columns: 1fr; } .road > li { padding-left: 3.4rem; } }
.quiz .tool-form { min-height: 21rem; }
.notice a { color: var(--head); font-weight: 600; text-decoration: underline; }

/* ===== 3.9: rolling pictures, tiles, breadcrumbs, search, badges, progress ===== */
.slides { padding: clamp(20px, 3vw, 36px) 0 6px; }
.slides-box { position: relative; aspect-ratio: 21 / 8; border-radius: var(--r-lg); overflow: hidden; background: var(--ink); box-shadow: var(--shadow); }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility 0s linear .8s; }
.slide.is-on { opacity: 1; visibility: visible; transition: opacity .8s ease; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(3, 26, 44, .88) 0%, rgba(3, 26, 44, .35) 45%, rgba(3, 26, 44, 0) 75%); pointer-events: none; }
.slide figcaption { position: absolute; z-index: 2; left: clamp(16px, 3vw, 36px); bottom: clamp(14px, 2.6vw, 30px); max-width: min(52ch, 70%); color: #fff; display: grid; gap: .3rem; }
.slide figcaption strong { font-size: clamp(1.15rem, 2.4vw, 1.9rem); line-height: 1.15; color: #fff; }
.slide figcaption span { color: #d7e3ee; font-size: clamp(.9rem, 1.3vw, 1.05rem); }
.slide figcaption .more { color: var(--teal-l); font-weight: 700; }
.slides-ctl { position: absolute; z-index: 3; right: 14px; bottom: 14px; display: none; gap: 8px; }
.js .slides-ctl { display: flex; }
.slides-ctl button { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .45); border-radius: 50%; background: rgba(3, 26, 44, .6); color: #fff; cursor: pointer; padding: 0; }
.slides-ctl button:hover, .slides-ctl button:focus-visible { background: var(--btn); border-color: #fff; }
.slides-ctl svg { width: 18px; height: 18px; }
[data-slide-prev] svg { transform: rotate(90deg); }
[data-slide-next] svg { transform: rotate(-90deg); }
.sp-pause { width: 12px; height: 14px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; box-sizing: border-box; }
[data-slide-pause][aria-pressed="true"] .sp-pause { width: 0; height: 0; border: 0; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 12px solid currentColor; }
.slides-dots { position: absolute; z-index: 3; right: 16px; top: 14px; display: none; gap: 6px; }
.js .slides-dots { display: flex; }
.slides-dots button { width: 12px; height: 12px; padding: 0; border-radius: 50%; border: 1px solid #fff; background: transparent; cursor: pointer; }
.slides-dots button[aria-current="true"] { background: #fff; }
.slides-dots button:focus-visible, .slides-ctl button:focus-visible { outline: 2px solid var(--teal-l); outline-offset: 2px; }
:root[data-motion="reduced"] .slide, :root[data-motion="off"] .slide, :root[data-motion="reduced"] .slide.is-on, :root[data-motion="off"] .slide.is-on { transition: none; }
@media (max-width: 700px) { .slides-box { aspect-ratio: 4 / 3; } .slide figcaption { max-width: 86%; } .slide figcaption span { display: none; } .slides-ctl { right: 10px; bottom: 10px; } .slides-ctl button { width: 36px; height: 36px; } }
.tiles { padding: 18px 0 8px; }
.crumbs { background: var(--soft); border-bottom: 1px solid var(--line); font-size: .86rem; }
.crumbs ol { list-style: none; margin: 0; padding: .6rem 0; display: flex; flex-wrap: wrap; gap: .1rem .35rem; align-items: center; }
.crumbs li { display: inline-flex; align-items: center; gap: .35rem; color: var(--muted); }
.crumbs li + li::before { content: "\203A"; opacity: .6; }
.crumbs a { color: var(--teal-text); text-decoration: none; font-weight: 600; }
.crumbs a:hover, .crumbs a:focus-visible { text-decoration: underline; }
.crumbs li[aria-current] { color: var(--head); font-weight: 600; }
.res-media { position: relative; }
.res-badge { position: absolute; left: .6rem; top: .6rem; display: inline-flex; align-items: center; gap: .3rem; padding: .22rem .6rem; border-radius: 99px; background: rgba(3, 26, 44, .86); color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .02em; }
.res-badge svg { width: .85rem; height: .85rem; }
.search-toggle { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--head); cursor: pointer; padding: 0; }
.search-toggle:hover, .search-toggle:focus-visible, .search-toggle[aria-expanded="true"] { background: var(--panel); }
.search-toggle .ico { width: 20px; height: 20px; }
.hs-panel { position: absolute; left: 0; right: 0; top: 100%; z-index: 90; pointer-events: none; }
.hs-panel .wrap { display: flex; justify-content: flex-end; }
.hs-box { pointer-events: auto; width: min(520px, 100%); background: var(--surface); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r-lg) var(--r-lg); box-shadow: var(--shadow); padding: 14px 14px 16px; }
.nav .sub-menu { z-index: 130; }
.hs-panel[hidden] { display: none; }
.hs-panel input { width: 100%; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--head); font: inherit; }
.hs-panel input:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.hs-list { list-style: none; margin: .5rem 0 0; padding: 0; }
.hs-list a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .6rem .8rem; border-radius: 6px; color: var(--head); text-decoration: none; font-weight: 600; }
.hs-list a:hover, .hs-list [aria-selected="true"] a { background: var(--soft-2); }
.hs-kind { font-size: .75rem; font-weight: 700; padding: .1rem .55rem; border-radius: 99px; background: var(--soft-2); color: var(--head); white-space: nowrap; }
.hs-empty { padding: .6rem .8rem; color: var(--muted); }
.hub-toc { border-top: 1px solid var(--line); margin-top: .3rem; padding-top: .4rem; }
.hub-toc[hidden] { display: none; }
.hub-toc-title { margin: 0; padding: .4rem .6rem; font-weight: 700; color: var(--head); }
.hub-toc ul { list-style: none; margin: 0; padding: 0; }
.hub-toc a { display: block; padding: .3rem .6rem .3rem 1rem; font-size: .88rem; color: var(--text); text-decoration: none; border-radius: 6px; }
.hub-toc a:hover, .hub-toc a:focus-visible { background: var(--soft-2); color: var(--head); }
.hub-main h2[id], .hub-main h3[id] { scroll-margin-top: 96px; }
.hub-continue { min-height: 2.6rem; display: flex; align-items: center; margin: 0 0 .75rem; color: var(--muted); font-size: .95rem; }
.hub-continue a { font-weight: 700; color: var(--teal-text); }
.road-progress { font-weight: 700; color: var(--head); margin: 0 0 .25rem; }
.road-note { margin: 0 0 1rem; font-size: .88rem; color: var(--muted); }
.linkish { background: none; border: 0; padding: 0; margin-left: .5rem; color: var(--teal-text); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.linkish[hidden] { display: none; }
.road-done { display: inline-flex; gap: .5rem; align-items: center; margin-top: .6rem; font-size: .92rem; font-weight: 600; color: var(--head); cursor: pointer; }
.road-done input { width: 1.1rem; height: 1.1rem; accent-color: var(--btn); }
.road > li.is-done { border-color: var(--teal); background: var(--soft-2); }
.quiz-modes { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.quiz-modes button { padding: .5rem .95rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--head); font: inherit; font-weight: 600; cursor: pointer; }
.quiz-modes button[aria-pressed="true"] { background: var(--btn); border-color: var(--btn); color: #fff; }
.quiz-hist { margin: 1rem 0 0; font-size: .9rem; color: var(--muted); min-height: 2.6rem; }
@media print { .slides, .crumbs, .hs-panel, .search-toggle { display: none !important; } }
[hidden] { display: none !important; }
