/*
Theme Name: Vibidsoft 2026
Theme URI: https://www.vibidsoft.com/blog/
Author: Vibidsoft
Description: Lead-focused blog theme for vibidsoft.com: answer-first posts, sticky contents, one offer per post matched to its topic hub, related posts and a mobile booking bar.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: vibidsoft-2026
*/

/* ---------- Tokens (shared with the new main site) ---------- */
:root {
	--brand: #0076b3;
	--brand-700: #005a8a;
	--brand-50: #eaf4fa;
	--navy: #0b2540;
	--navy-900: #071a2e;
	--accent: #d42e37;
	--ink: #14212e;
	--ink-2: #44515e;
	--ink-3: #6b7783;
	--line: #e3e8ee;
	--bg: #fafbfd;
	--surface: #ffffff;
	--tint: #f1f5f9;
	--good: #1f8a4c;
	--radius: 10px;
	--radius-lg: 14px;
	--shadow: 0 1px 2px rgba(11, 37, 64, .06), 0 4px 16px rgba(11, 37, 64, .06);
	--font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
	--mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
	--header-h: 68px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg); }
img, video, iframe { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-700); }
h1, h2, h3, h4 { line-height: 1.25; color: var(--ink); font-weight: 650; letter-spacing: -.01em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 6px; }
.skip-link:focus { left: 8px; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 8px; }
.eyebrow::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--accent); border-radius: 2px; margin-right: 8px; vertical-align: 1px; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 680px; }
.small { font-size: 14px; color: var(--ink-3); }
.visually-small { font-size: 14px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 500; }

/* ---------- Buttons and pills ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 8px; border: 1px solid transparent; font: 600 15px/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-700); color: #fff; }
.btn-ghost { position: relative; overflow: hidden; color: var(--navy); border-color: transparent; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #0076b3, #5cc8ff) border-box; box-shadow: 0 8px 20px -14px rgba(0,118,179,.55); transition: background .25s, box-shadow .25s, transform .25s, color .25s; }
.btn-ghost:hover { color: var(--brand); transform: translateY(-1px); background: linear-gradient(135deg, #eef8ff, #dff1fd) padding-box, linear-gradient(135deg, #0076b3, #5cc8ff) border-box; box-shadow: 0 14px 28px -14px rgba(0,118,179,.7); }
.btn-ghost::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, rgba(92,200,255,.3), transparent); transform: skewX(-20deg); transition: left .6s; pointer-events: none; }
.btn-ghost:hover::after { left: 130%; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--brand-50); color: var(--navy); }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-light:hover { border-color: #fff; color: #fff; }
.btn-lg { min-height: 50px; padding: 12px 22px; font-size: 16px; }
.btn-block { width: 100%; }
.pill { display: inline-block; font-size: 13px; font-weight: 600; color: var(--brand-700); background: var(--brand-50); padding: 3px 10px; border-radius: 999px; text-decoration: none; }
.pill:hover, .pill.is-active { background: var(--brand); color: #fff; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand img { display: block; height: 40px; width: auto; }
.site-nav { margin-left: auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav-list > li > a, .nav-list summary { display: block; padding: 10px 12px; font-size: 15px; font-weight: 550; color: var(--ink); text-decoration: none; border-radius: 6px; cursor: pointer; list-style: none; }
.nav-list summary::-webkit-details-marker { display: none; }
.nav-list summary::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-3px); }
.nav-list > li > a:hover, .nav-list summary:hover { color: var(--brand); background: var(--brand-50); }
.nav-list > li > a[aria-current] { color: var(--brand); }
.has-sub { position: relative; }
.sub { list-style: none; margin: 0; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.sub a { display: block; padding: 8px 12px; color: var(--ink); text-decoration: none; font-size: 15px; border-radius: 6px; }
.sub a:hover { background: var(--brand-50); color: var(--brand-700); }
.mega-head { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 4px 12px 6px; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; cursor: pointer; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { position: absolute; left: 12px; width: 18px; height: 2px; background: var(--ink); content: ""; transition: transform .2s; }
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { left: 0; top: -6px; }
.nav-toggle-bar::after { left: 0; top: 6px; }
.nav-open .nav-toggle-bar { background: transparent; }
.nav-open .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

@media (min-width: 1025px) {
	.has-sub details > .sub { position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px; }
	/* Invisible bridge over the gap between the menu label and its panel, so hover is not lost */
	.has-sub details > .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
	.has-mega details > .sub { left: 50%; transform: translateX(-50%); display: grid; grid-template-columns: repeat(4, 200px); gap: 8px; padding: 16px; }
	.has-sub:hover details > .sub, .has-sub details[open] > .sub { display: block; }
	.has-mega:hover details > .sub, .has-mega details[open] > .sub { display: grid; }
	.has-sub details:not([open]) > .sub { display: none; }
	.has-sub:hover details:not([open]) > .sub { display: block; }
	.has-mega:hover details:not([open]) > .sub { display: grid; }
}
@media (max-width: 1024px) {
	.nav-toggle { display: block; }
	.header-cta { order: 2; margin-left: 8px; }
	.site-nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--surface); padding: 12px 16px 96px; overflow-y: auto; display: none; margin: 0; }
	.admin-bar .site-nav { top: calc(var(--header-h) + 46px); }
	.nav-open .site-nav { display: block; }
	.nav-list { flex-direction: column; align-items: stretch; gap: 0; }
	.nav-list > li { border-bottom: 1px solid var(--line); }
	.nav-list > li > a, .nav-list summary { padding: 14px 4px; font-size: 17px; }
	.sub { border: 0; box-shadow: none; padding: 0 0 12px 8px; }
	.mega { display: block; }
	.nav-toggle { order: 3; margin-left: 0; }
}
@media (max-width: 420px) {
	.brand img { height: 34px; }
	.header-cta { padding: 8px 12px; font-size: 14px; min-height: 40px; }
}

/* ---------- Page hero (listings) ---------- */
.page-hero { background: linear-gradient(180deg, var(--surface), var(--bg)); border-bottom: 1px solid var(--line); padding: 40px 0 32px; }
.page-hero h1 { font-size: clamp(28px, 4.2vw, 44px); max-width: 820px; }
.search-form { display: flex; gap: 8px; max-width: 620px; margin-top: 20px; }
.search-form input { flex: 1; min-width: 0; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; font: 16px var(--font); background: var(--surface); }
.search-form input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-50); }
.crumbs { font-size: 14px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }
.topic-hero { display: grid; gap: 24px; }
@media (min-width: 900px) { .topic-hero { grid-template-columns: 1fr 340px; align-items: start; } }

/* ---------- Topic hubs ---------- */
.hubs { padding: 28px 0 8px; }
.hub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 720px) { .hub-grid { grid-template-columns: repeat(4, 1fr); } }
.hub-card { display: flex; flex-direction: column; gap: 4px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.hub-card:hover { border-color: var(--brand); transform: translateY(-1px); color: var(--ink); }
.hub-name { font-weight: 650; }
.hub-count { font-size: 13px; color: var(--ink-3); }
.topic-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }

/* ---------- Listing, cards, feature ---------- */
.listing { padding: 28px 0 56px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 8px 0 16px; }
.section-head h2 { font-size: 22px; margin: 0; }
.section-head a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .15s, border-color .15s; }
.card:hover { box-shadow: var(--shadow); border-color: #cfd9e3; }
.card-media { display: block; aspect-ratio: 16 / 9; background: var(--tint); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-placeholder { display: flex; align-items: flex-end; height: 100%; padding: 16px; background: linear-gradient(135deg, var(--navy), var(--brand)); color: #fff; font-weight: 650; font-size: 18px; aspect-ratio: 16 / 9; }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.card-body .pill { align-self: flex-start; }
.card-title { font-size: 18px; margin: 0; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--brand); }
.card-excerpt { color: var(--ink-2); font-size: 15px; margin: 0; }
.card-meta { margin: auto 0 0; font-size: 13px; color: var(--ink-3); }
.feature { display: grid; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 32px; }
@media (min-width: 900px) { .feature { grid-template-columns: 1.1fr 1fr; } }
.feature-media { display: block; background: var(--tint); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 16 / 9; }
.feature-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.feature-body .pill { align-self: flex-start; }
.feature-body h2 { font-size: clamp(22px, 2.6vw, 30px); margin: 0; }
.feature-body h2 a { color: var(--ink); text-decoration: none; }
.feature-body h2 a:hover { color: var(--brand); }
.feature-body p { margin: 0; color: var(--ink-2); }
.pagination { margin-top: 32px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pagination .page-numbers { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); text-decoration: none; color: var(--ink); font-weight: 600; }
.pagination .page-numbers.current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .page-numbers.dots { border: 0; background: none; }

/* ---------- Single post ---------- */
.post-hero { padding: 28px 0 8px; }
.narrow-wide { max-width: 1200px; }
.post-title { font-size: clamp(28px, 4vw, 44px); max-width: 860px; margin-bottom: 14px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; color: var(--ink-3); font-size: 14px; margin: 0; }
.post-meta .dot { color: var(--line); }
.author-chip, .author-avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; }
.author-chip { width: 28px; height: 28px; font-size: 13px; }
.post-layout { display: grid; gap: 24px; padding-top: 24px; padding-bottom: 48px; }
.post-main { min-width: 0; }
@media (min-width: 1100px) {
	.post-layout { grid-template-columns: 200px minmax(0, 720px) 264px; justify-content: space-between; gap: 32px; }
	.post-toc, .post-aside { position: relative; }
	.post-toc .toc, .post-aside .offer-card { position: sticky; top: calc(var(--header-h) + 24px); }
}
@media (min-width: 760px) and (max-width: 1099px) {
	.post-layout { grid-template-columns: minmax(0, 1fr) 280px; }
	.post-toc { grid-column: 1 / -1; }
	.post-aside .offer-card { position: sticky; top: calc(var(--header-h) + 24px); }
}
@media (max-width: 759px) {
	.post-aside { display: none; }
}

.toc { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 4px 0; font-size: 14px; max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; }
.toc summary { padding: 10px 16px; font-weight: 650; cursor: pointer; }
.toc ol { list-style: none; margin: 0; padding: 0 8px 8px; counter-reset: toc; }
.toc li a { display: block; padding: 6px 8px; color: var(--ink-2); text-decoration: none; border-left: 2px solid transparent; line-height: 1.4; }
.toc li a:hover { color: var(--brand); }
.toc li a.is-active { color: var(--brand-700); border-left-color: var(--brand); background: var(--brand-50); }
@media (min-width: 1100px) { .toc summary { pointer-events: none; } }

.takeaways { background: var(--brand-50); border: 1px solid #cfe4f1; border-left: 4px solid var(--brand); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 28px; }
.takeaways-title { font-weight: 700; margin: 0 0 6px; color: var(--navy); }
.takeaways p, .takeaways ul { margin: 0; color: var(--ink); }
.takeaways ul { padding-left: 20px; }

.entry-content { font-size: 18px; line-height: 1.75; color: var(--ink); }
.entry-content > * { margin-top: 0; margin-bottom: 1.15em; }
.entry-content h2 { font-size: clamp(24px, 2.6vw, 30px); margin-top: 1.8em; }
.entry-content h3 { font-size: 21px; margin-top: 1.5em; }
.entry-content h4 { font-size: 18px; margin-top: 1.3em; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: .4em; }
.entry-content img { border-radius: var(--radius); }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption { font-size: 14px; color: var(--ink-3); text-align: center; }
.entry-content blockquote { margin-left: 0; padding: 4px 20px; border-left: 4px solid var(--brand); color: var(--ink-2); font-style: italic; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.entry-content th { background: var(--tint); }
.entry-content code { font-family: var(--mono); font-size: .88em; background: var(--tint); padding: .1em .35em; border-radius: 4px; }
.entry-content pre { position: relative; background: var(--navy-900); color: #e6edf3; padding: 16px; border-radius: var(--radius); overflow-x: auto; font-size: 14px; line-height: 1.6; }
.entry-content pre code { background: none; padding: 0; color: inherit; }
.copy-code { position: absolute; top: 8px; right: 8px; font: 600 12px var(--font); color: #e6edf3; background: rgba(255,255,255,.12); border: 0; border-radius: 6px; padding: 6px 10px; cursor: pointer; }
.copy-code:hover { background: rgba(255,255,255,.22); }
.entry-content a { font-weight: 550; }
.entry-content .wp-block-image { margin-left: 0; margin-right: 0; }

/* Offer: sidebar card */
.offer-card { background: var(--surface); border: 2px solid var(--brand); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow); }
.offer-name { font-size: 19px; font-weight: 700; margin: 0 0 2px; line-height: 1.3; }
.offer-from { color: var(--brand-700); font-weight: 650; margin: 0 0 10px; }
.offer-pitch { font-size: 14.5px; color: var(--ink-2); margin: 0 0 16px; }
.offer-more { display: block; text-align: center; margin-top: 10px; font-size: 14px; font-weight: 600; }

/* Offer: inline box inside the article */
.offer-inline { display: grid; gap: 16px; align-items: center; background: linear-gradient(135deg, var(--brand-50), #fff); border: 1px solid #cfe4f1; border-radius: var(--radius-lg); padding: 20px 22px; margin: 2em 0; font-size: 16px; line-height: 1.55; }
@media (min-width: 640px) { .offer-inline { grid-template-columns: 1fr auto; } }
.offer-inline p { margin: 0 0 4px; }
.offer-inline-title { font-size: 19px; font-weight: 700; color: var(--navy); }
.offer-inline .btn { white-space: nowrap; }

/* Author box */
.author-box { display: flex; gap: 16px; align-items: flex-start; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 24px 0; margin: 40px 0 32px; font-size: 15px; color: var(--ink-2); }
.author-avatar { flex: 0 0 56px; height: 56px; font-size: 22px; }
.author-name { font-weight: 700; color: var(--ink); margin: 0 0 4px; font-size: 16px; }
.author-box p { margin: 0 0 6px; }

/* Offer: end-of-post CTA */
.offer-end { display: grid; gap: 20px; background: var(--navy); color: #d6e2ee; border-radius: var(--radius-lg); padding: 28px; }
@media (min-width: 760px) { .offer-end { grid-template-columns: 1.4fr 1fr; align-items: center; padding: 32px; } }
.offer-end h2 { color: #fff; font-size: clamp(22px, 2.4vw, 28px); }
.offer-end .eyebrow { color: #9fb4c8; }
.offer-end strong { color: #fff; }
.offer-end-actions { display: flex; flex-direction: column; gap: 10px; }
.offer-end-actions .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.offer-end-actions .btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); box-shadow: none; }
.offer-end-actions .small, .offer-end-actions .small a { color: #9fb4c8; }
.ticks { list-style: none; padding: 0; margin: 12px 0 0; }
.ticks li { position: relative; padding-left: 26px; margin-bottom: 6px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px; border-left: 2px solid #6fd39a; border-bottom: 2px solid #6fd39a; transform: rotate(-45deg); }

/* Related posts */
.related { background: var(--surface); border-top: 1px solid var(--line); padding: 40px 0 56px; }

/* ---------- CTA band and footer ---------- */
.cta-band { background: var(--navy); color: #d6e2ee; padding: 40px 0; }
.cta-band-inner { display: grid; gap: 20px; align-items: center; }
@media (min-width: 800px) { .cta-band-inner { grid-template-columns: 1fr auto; } }
.cta-band h2 { color: #fff; font-size: clamp(22px, 3vw, 30px); }
.cta-band p { margin: 0; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.site-footer { background: var(--navy-900); color: #9fb4c8; padding: 48px 0 24px; font-size: 15px; }
.site-footer a { color: #d6e2ee; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand img { height: 40px; width: auto; background: #fff; padding: 6px 10px; border-radius: 8px; }
.footer-head { color: #fff; font-weight: 650; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255,255,255,.1); margin-top: 32px; padding-top: 20px; font-size: 14px; }
.footer-bottom p { margin: 0; }
.footer-social a { margin-left: 16px; }
.footer-social a:first-child { margin-left: 0; }

/* ---------- Mobile booking bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 759px) {
	.mobile-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(11,37,64,.08); transform: translateY(110%); transition: transform .25s; }
	.mobile-bar.is-visible { transform: none; }
	body { padding-bottom: 72px; }
	.entry-content { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}

/* =========================================================================
   Visual layer: dark gradient heroes, glow orbs, grid texture, banner,
   reading progress, scroll reveal, hover motion, gradient offer borders.
   Pure CSS + a little JS (js/blog.js); no libraries, no extra requests.
   ========================================================================= */
:root {
	--sky: #5cc8ff;
	--glow: 0 30px 60px -24px rgba(0, 118, 179, .55);
	--grad-brand: linear-gradient(135deg, #0076b3 0%, #2aa4e6 55%, #5cc8ff 100%);
	--grad-line: linear-gradient(90deg, #5cc8ff, #0076b3 45%, #d42e37);
}

/* Dark hero shell */
.hero-dark {
	position: relative; overflow: hidden; isolation: isolate; color: #c9dbec;
	background:
		radial-gradient(900px 480px at 88% -12%, rgba(0, 118, 179, .55), transparent 62%),
		radial-gradient(700px 380px at -8% 112%, rgba(212, 46, 55, .20), transparent 60%),
		linear-gradient(160deg, #061629 0%, #0b2540 55%, #0d3559 100%);
	border-bottom: 0;
}
.hero-dark::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
	background-size: 44px 44px;
	-webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 20%, #000 25%, transparent 75%);
	        mask-image: radial-gradient(ellipse 80% 70% at 70% 20%, #000 25%, transparent 75%);
}
.hero-dark::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--grad-line); opacity: .8; }
.hero-inner { position: relative; z-index: 2; }
.hero-dark h1, .hero-dark h2 { color: #fff; }
.hero-dark .lead { color: #b6cbe0; }
.hero-dark .eyebrow { color: #8fb0cf; }
.hero-dark .small { color: #8fb0cf; }
.hero-dark .crumbs, .hero-dark .crumbs a { color: #9db8d3; }
.hero-dark .crumbs a:hover { color: #fff; }
.hero-fx { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: vs-float 14s ease-in-out infinite alternate; }
.orb-1 { width: 380px; height: 380px; right: -80px; top: -120px; background: #1590d6; }
.orb-2 { width: 260px; height: 260px; left: 8%; bottom: -150px; background: #d42e37; opacity: .28; animation-duration: 18s; }
.orb-3 { width: 220px; height: 220px; right: 32%; bottom: -90px; background: #6a5cff; opacity: .25; animation-duration: 22s; }
@keyframes vs-float { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-40px, 30px, 0) scale(1.12); } }
.hero-net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; opacity: .9; }

.page-hero.hero-dark { padding: 64px 0 56px; }
.page-hero.hero-home { padding: 88px 0 80px; }
.page-hero.hero-dark h1 { font-size: clamp(32px, 5vw, 58px); letter-spacing: -.025em; line-height: 1.08; max-width: 900px; }
.grad-text {
	background: linear-gradient(90deg, #5cc8ff, #8fa2ff 45%, #ff7f88 90%);
	background-size: 200% 100%;
	-webkit-background-clip: text; background-clip: text; color: transparent;
	animation: vs-shine 8s ease-in-out infinite alternate;
}
@keyframes vs-shine { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

/* Glass search + stats */
.hero-dark .search-form input { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; backdrop-filter: blur(6px); }
.hero-dark .search-form input::placeholder { color: #9db8d3; }
.hero-dark .search-form input:focus { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(92,200,255,.18); }
.hero-dark .search-form .btn-primary { background: #fff; color: var(--navy); }
.hero-dark .search-form .btn-primary:hover { background: var(--sky); color: var(--navy-900); }
.hero-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 24px 0 0; }
.hero-stats li { padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); font-size: 14px; color: #c9dbec; backdrop-filter: blur(6px); }
.hero-stats strong { color: #fff; font-size: 16px; margin-right: 2px; font-variant-numeric: tabular-nums; }

/* Topic hero */
.topic-ico { display: inline-flex; width: 64px; height: 64px; align-items: center; justify-content: center; border-radius: 18px; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); box-shadow: inset 0 0 30px rgba(92,200,255,.25); margin: 8px 0 16px; }

/* ---------- Post hero with banner ---------- */
.post-hero.hero-dark { padding: 36px 0 56px; }
.post-hero-grid { position: relative; z-index: 2; display: grid; gap: 28px; align-items: center; }
@media (min-width: 1100px) { .post-hero.has-banner .post-hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; } }
.post-hero.hero-dark .post-title { color: #fff; font-size: clamp(28px, 3.8vw, 48px); letter-spacing: -.02em; line-height: 1.12; margin: 10px 0 18px; }
.hub-tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #e6f3ff; text-decoration: none; background: rgba(92,200,255,.12); border: 1px solid rgba(92,200,255,.35); }
.hub-tag:hover { background: rgba(92,200,255,.22); color: #fff; }
.post-hero .post-meta { gap: 8px; }
.meta-chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; font-size: 13.5px; color: #d4e4f3; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); }
.meta-chip:first-child { padding-left: 5px; }
.post-hero .author-chip { background: var(--grad-brand); }
.post-banner { margin: 0; perspective: 1400px; }
.post-banner img {
	display: block; width: 100%; height: auto; border-radius: 18px;
	box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255,255,255,.10), 0 0 60px rgba(0, 118, 179, .35);
	transform: rotateY(-7deg) rotateX(3deg); transform-origin: left center;
	transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.post-banner:hover img { transform: rotateY(0) rotateX(0); }
@media (max-width: 1099px) { .post-banner img { transform: none; } }

/* Reading progress */
.read-progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 60; pointer-events: none; }
.admin-bar .read-progress { top: 32px; }
.read-progress span { display: block; height: 100%; background: var(--grad-line); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 10px rgba(92,200,255,.6); }

.post-layout { padding-top: 40px; }

/* ---------- Scroll reveal ---------- */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
html.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Cards: lift, zoom, gradient edge ---------- */
.card { position: relative; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s, opacity .7s ease; }
html.js .card.reveal.is-in { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s, opacity .7s ease; }
.card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad-line); transform: scaleX(0); transform-origin: left; transition: transform .45s ease; }
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -24px rgba(11, 37, 64, .35); border-color: #c7d8e8; }
.card:hover::after { transform: scaleX(1); }
.card-media img { transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.card:hover .card-media img { transform: scale(1.06); }
.pill-ico { display: inline-flex; align-items: center; gap: 6px; }
.card-placeholder { flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 10px; background: radial-gradient(260px 160px at 85% 10%, rgba(92,200,255,.45), transparent 60%), linear-gradient(140deg, #071a2e, #0b2540 55%, #0076b3); }
.card-placeholder .hub-icon { color: var(--sky); }
.feature { transition: box-shadow .35s; }
.feature:hover { box-shadow: 0 30px 60px -30px rgba(11,37,64,.4); }
.feature-media { overflow: hidden; }
.feature-media img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.feature:hover .feature-media img { transform: scale(1.04); }

/* ---------- Topic hub cards (float over the hero edge) ---------- */
.hubs { padding: 0; margin-top: -36px; position: relative; z-index: 3; }
.hub-card { position: relative; display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; row-gap: 2px; align-items: center; padding: 16px; box-shadow: 0 10px 30px -18px rgba(11,37,64,.35); overflow: hidden; }
.hub-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(240px 120px at 0% 0%, rgba(0,118,179,.10), transparent 70%); opacity: 0; transition: opacity .3s; }
.hub-card:hover::before { opacity: 1; }
.hub-card:hover { border-color: rgba(0,118,179,.55); transform: translateY(-3px); box-shadow: 0 18px 36px -18px rgba(0,118,179,.45); }
.hub-ico { grid-row: 1 / 3; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; color: #fff; background: var(--grad-brand); box-shadow: 0 8px 18px -8px rgba(0,118,179,.8); transition: transform .35s; position: relative; }
.hub-card:hover .hub-ico { transform: rotate(-8deg) scale(1.06); }
.hub-card .hub-name, .hub-card .hub-count { position: relative; line-height: 1.3; }
@media (max-width: 719px) { .hubs { margin-top: -24px; } .hub-card { padding: 12px; grid-template-columns: 36px 1fr; } .hub-ico { width: 36px; height: 36px; } .hub-ico svg { width: 20px; height: 20px; } }

/* ---------- Offers ---------- */
.offer-card {
	border: 2px solid transparent;
	background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #0076b3, #5cc8ff 50%, #d42e37) border-box;
	box-shadow: var(--glow);
}
.offer-card .btn-primary { background: var(--grad-brand); box-shadow: 0 10px 20px -10px rgba(0,118,179,.9); }
.offer-card .btn-primary:hover { filter: brightness(1.06); }
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); transition: left .6s; }
.btn-primary:hover::after { left: 130%; }
.offer-inline { position: relative; overflow: hidden; border: 1px solid rgba(0,118,179,.25); background: radial-gradient(400px 160px at 100% 0%, rgba(92,200,255,.25), transparent 60%), linear-gradient(135deg, #eef7fd, #fff); box-shadow: 0 16px 36px -24px rgba(0,118,179,.55); }
.offer-inline::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad-line); }
.offer-end { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(500px 260px at 100% 0%, rgba(0,118,179,.6), transparent 60%), radial-gradient(400px 200px at 0% 100%, rgba(212,46,55,.25), transparent 60%), linear-gradient(150deg, #061629, #0b2540 60%, #0d3559); box-shadow: 0 30px 60px -30px rgba(11,37,64,.7); }
.offer-end::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 36px 36px; -webkit-mask-image: linear-gradient(180deg, #000, transparent); mask-image: linear-gradient(180deg, #000, transparent); }
.offer-end .btn-primary { background: #fff; color: var(--navy); }
.offer-end .btn-primary:hover { background: var(--sky); color: var(--navy-900); }

/* Takeaways with a lightning icon */
.takeaways { position: relative; padding-left: 64px; background: linear-gradient(135deg, #eef7fd, #f7fbff); border: 1px solid #cfe4f1; box-shadow: 0 10px 30px -22px rgba(0,118,179,.6); }
.takeaways::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 4px; border-radius: 10px 0 0 10px; background: var(--grad-brand); }
.takeaways::after { content: ""; position: absolute; left: 20px; top: 16px; width: 30px; height: 30px; border-radius: 9px; background: var(--grad-brand) center / 18px no-repeat; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M13 2 4 14h7l-1 8 9-12h-7l1-8Z'/%3E%3C/svg%3E"), var(--grad-brand); }

/* Contents list */
.toc { box-shadow: 0 10px 30px -24px rgba(11,37,64,.5); }
.toc li a.is-active { border-left-color: transparent; background: linear-gradient(90deg, rgba(0,118,179,.12), transparent); box-shadow: inset 2px 0 0 var(--brand); }

/* Article headings: small gradient bar */
.entry-content h2 { position: relative; padding-top: 14px; }
.entry-content h2::before { content: ""; position: absolute; left: 0; top: 0; width: 40px; height: 3px; border-radius: 3px; background: var(--grad-line); }
.entry-content img { box-shadow: 0 20px 40px -28px rgba(11,37,64,.55); }

/* Section headers */
.section-head h2 { position: relative; padding-left: 14px; }
.section-head h2::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 4px; border-radius: 4px; background: var(--grad-line); }

/* CTA band + footer polish */
.cta-band.hero-dark { padding: 56px 0; }
.site-footer { position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--grad-line); opacity: .7; }

/* Header gets a soft shadow once the page scrolls */
.site-header { transition: box-shadow .3s; }
.is-scrolled .site-header { box-shadow: 0 8px 24px -16px rgba(11,37,64,.4); }

@media (prefers-reduced-motion: reduce) {
	.orb, .grad-text { animation: none !important; }
	html.js .reveal { opacity: 1; transform: none; }
	.post-banner img { transform: none; }
}
html.js .card.reveal.is-in:hover { transform: translateY(-6px); }
html.js .hub-card.reveal.is-in:hover { transform: translateY(-3px); }

/* =========================================================================
   Header v2: announcement bar, glass header, animated nav, rich mega menu,
   off-canvas mobile panel. Footer v2: CTA card, stats, icon contacts,
   giant wordmark, glass social buttons.
   ========================================================================= */
.vs-ico { flex: 0 0 auto; }
.btn-sm { min-height: 38px; padding: 8px 14px; font-size: 14px; }
.btn-wa { background: #25d366; color: #05301a; }
.btn-wa:hover { background: #1ebe5a; color: #05301a; }
.btn-ghost-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost-dark:hover { border-color: #fff; color: #fff; }
.btn-glow { background: var(--grad-brand); box-shadow: 0 8px 22px -8px rgba(0,118,179,.85), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-glow:hover { box-shadow: 0 12px 28px -8px rgba(0,118,179,.95), inset 0 1px 0 rgba(255,255,255,.25); filter: brightness(1.05); }
.cta-arrow { transition: transform .25s; }
.btn:hover .cta-arrow, .btn:hover .vs-ico { transform: translateX(2px); }

/* Announcement bar */
.topbar { position: relative; background: linear-gradient(90deg, #061629, #0b2540 55%, #0d3559); color: #c9dbec; font-size: 13.5px; }
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--grad-line); opacity: .6; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar a { color: #dbe8f5; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.topbar a:hover { color: #fff; }
.topbar-msg { min-width: 0; }
.topbar-msg span:not(.live-dot) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-msg .vs-ico { transition: transform .25s; }
.topbar-msg:hover .vs-ico { transform: translateX(3px); }
.topbar-links { display: flex; gap: 20px; flex: 0 0 auto; }
.topbar-links .vs-ico { color: var(--sky); }
.live-dot { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52,211,153,.7); animation: vs-pulse 2s infinite; }
@keyframes vs-pulse { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,.6); } 70% { box-shadow: 0 0 0 8px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
@media (max-width: 899px) { .topbar-links { display: none; } }
@media (max-width: 559px) { .topbar { font-size: 12.5px; } }

/* Glass header */
.site-header { background: rgba(255,255,255,.78); -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid rgba(11,37,64,.08); }
.is-scrolled .site-header { background: rgba(255,255,255,.92); box-shadow: 0 10px 30px -18px rgba(11,37,64,.45); }
.header-inner { min-height: 72px; gap: 20px; }
:root { --header-h: 72px; }
.brand img { height: 42px; transition: transform .3s; }
.brand:hover img { transform: scale(1.03); }
.site-nav { margin-left: auto; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid var(--line); color: var(--ink); background: var(--surface); transition: all .25s; }
.wa-btn:hover { color: #fff; background: #25d366; border-color: #25d366; transform: translateY(-2px); box-shadow: 0 10px 20px -10px rgba(37,211,102,.9); }

/* Nav links with gradient underline */
.nav-list > li > a, .nav-list summary { position: relative; font-weight: 600; color: var(--ink); padding: 10px 14px; border-radius: 10px; background: none; }
.nav-list > li > a::before, .nav-list summary::before { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--grad-line); transform: scaleX(0); transform-origin: left; transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.nav-list > li > a:hover, .nav-list summary:hover { background: none; color: var(--brand-700); }
.nav-list > li > a:hover::before, .nav-list summary:hover::before, .has-sub details[open] > summary::before, .nav-list > li > a.is-current::before { transform: scaleX(1); }
.nav-list > li > a.is-current { color: var(--brand-700); }
.nav-list summary::after { transition: transform .25s; }
.has-sub details[open] > summary::after { transform: rotate(-135deg) translateY(-1px); }

/* Dropdowns */
@keyframes vs-drop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.sub { border: 1px solid rgba(11,37,64,.08); border-radius: 16px; box-shadow: 0 30px 60px -24px rgba(11,37,64,.35), 0 0 0 1px rgba(255,255,255,.6) inset; }
.sub a { display: flex; align-items: center; gap: 10px; font-weight: 550; transition: background .2s, transform .2s, color .2s; }
.sub a .vs-ico { color: var(--brand); }
.sub a:hover { transform: translateX(3px); }
@media (min-width: 1025px) {
	.has-sub details > .sub { animation: vs-drop .25s cubic-bezier(.2,.7,.2,1); min-width: 260px; padding: 10px; }
	.has-mega { position: static; }
	.header-inner { position: relative; }
	.has-mega details > .sub.mega { left: 50%; right: auto; transform: translateX(-50%); width: min(1040px, 94vw); grid-template-columns: repeat(3, 1fr) 1.15fr; gap: 6px; padding: 18px; top: calc(100% - 6px); animation: vs-drop-mega .28s cubic-bezier(.2,.7,.2,1); }
	@keyframes vs-drop-mega { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translateX(-50%); } }
}
.mega-col { display: flex; flex-direction: column; gap: 2px; padding: 4px; }
.mega-head { display: flex; align-items: center; gap: 10px; font-family: var(--font); font-size: 13px; font-weight: 700; letter-spacing: .02em; text-transform: none; color: var(--ink); margin: 2px 8px 8px; }
.mega-ico { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 10px; color: #fff; background: var(--grad-brand); box-shadow: 0 6px 14px -6px rgba(0,118,179,.8); }
.mega-link { display: flex !important; flex-direction: column; align-items: flex-start !important; gap: 0 !important; padding: 9px 12px !important; border-radius: 10px; }
.mega-link-label { font-weight: 600; color: var(--ink); font-size: 14.5px; }
.mega-link-hint { font-size: 12.5px; color: var(--ink-3); font-weight: 400; }
.mega-link:hover .mega-link-label { color: var(--brand-700); }
.mega-promo { position: relative; overflow: hidden; isolation: isolate; border-radius: 14px; padding: 20px; color: #c9dbec; background: radial-gradient(260px 180px at 100% 0%, rgba(92,200,255,.45), transparent 60%), linear-gradient(150deg, #061629, #0b2540 60%, #0d3559); display: flex; flex-direction: column; gap: 6px; }
.mega-promo::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(200deg, #000, transparent 70%); mask-image: linear-gradient(200deg, #000, transparent 70%); }
.mega-promo .eyebrow { color: #8fb0cf; margin: 0; }
.mega-promo-title { color: #fff; font-size: 20px; font-weight: 700; margin: 0; }
.mega-promo-text { font-size: 14px; margin: 0 0 10px; }
.mega-promo .btn-light { align-self: flex-start; display: inline-flex !important; flex-direction: row !important; padding: 8px 14px !important; color: var(--navy); }
.mega-promo .btn-light:hover { transform: none; }
.mega-promo-all { display: inline !important; padding: 0 !important; margin-top: auto; font-size: 13.5px; color: #9fd8ff !important; }
.mega-promo-all:hover { background: none !important; transform: none !important; color: #fff !important; }
.nav-panel-head, .nav-panel-cta { display: none; }

/* Mobile: off-canvas panel */
@media (max-width: 1024px) {
	.site-nav {
		display: flex; flex-direction: column; position: fixed; z-index: 80; top: 0; right: 0; bottom: 0; left: auto; width: min(420px, 92vw);
		padding: 20px 20px calc(20px + env(safe-area-inset-bottom)); overflow-y: auto;
		background: radial-gradient(360px 260px at 100% 0%, rgba(0,118,179,.55), transparent 60%), linear-gradient(160deg, #061629, #0b2540 60%, #0d3559);
		transform: translateX(105%); transition: transform .4s cubic-bezier(.2,.7,.2,1); box-shadow: -30px 0 60px -20px rgba(0,0,0,.5);
	}
	.nav-open .site-nav { transform: none; }
	body::after { content: ""; position: fixed; inset: 0; z-index: 75; background: rgba(4,12,22,.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .3s; }
	body.nav-open::after { opacity: 1; pointer-events: auto; }
	body.nav-open { overflow: hidden; }
	.nav-panel-head { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin-bottom: 8px; }
	.nav-panel-title { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #8fb0cf; }
	.nav-list > li { border-bottom: 1px solid rgba(255,255,255,.1); }
	.nav-list > li > a, .nav-list summary { color: #fff; font-size: 18px; padding: 16px 4px; }
	.nav-list > li > a::before, .nav-list summary::before { left: 4px; right: auto; width: 32px; bottom: 8px; }
	.nav-list > li > a:hover, .nav-list summary:hover, .nav-list > li > a.is-current { color: #9fd8ff; }
	.sub, .sub.mega { background: transparent; border: 0; box-shadow: none; padding: 0 0 12px; display: block; }
	.sub a, .mega-link-label { color: #dbe8f5 !important; }
	.sub a:hover { background: rgba(255,255,255,.06); }
	.sub a .vs-ico { color: var(--sky); }
	.mega-head { color: #fff; margin: 12px 4px 6px; }
	.mega-link-hint { color: #8fb0cf; }
	.mega-promo { display: none; }
	.nav-panel-cta { display: grid; gap: 10px; margin-top: auto; padding-top: 24px; }
	.nav-toggle { position: relative; z-index: 90; display: block; border-radius: 12px; }
	.nav-open .nav-toggle { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); position: fixed; top: 16px; right: 16px; }
	.nav-open .nav-toggle-bar::before, .nav-open .nav-toggle-bar::after { background: #fff; }
	.header-actions { margin-left: auto; }
	.site-nav { margin-left: 0; }
}
@media (max-width: 479px) { .wa-btn { display: none; } .brand img { height: 36px; } .header-cta { padding: 9px 12px; font-size: 14px; min-height: 40px; } .header-inner { gap: 10px; } }

/* ---------- Footer v2 ---------- */
.site-footer { position: relative; overflow: hidden; isolation: isolate; padding: 0 0 24px; color: #9fb4c8; background: radial-gradient(800px 420px at 90% 0%, rgba(0,118,179,.35), transparent 60%), linear-gradient(180deg, #071a2e, #050f1c); }
.site-footer::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 75%); }
.footer-fx { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.footer-fx .orb-1 { top: -160px; right: 10%; opacity: .35; }
.footer-fx .orb-2 { bottom: 10%; left: -80px; opacity: .18; }
.footer-cta { position: relative; margin-top: 56px; display: grid; gap: 24px; align-items: center; padding: 36px; border-radius: 24px; border: 1px solid rgba(255,255,255,.14); background: radial-gradient(420px 220px at 100% 0%, rgba(92,200,255,.35), transparent 60%), linear-gradient(135deg, rgba(0,118,179,.45), rgba(13,53,89,.55)); box-shadow: 0 40px 80px -40px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.12); width: calc(100% - 32px); }
@media (min-width: 900px) { .footer-cta { grid-template-columns: 1.6fr auto; padding: 44px 48px; } }
.footer-cta h2 { color: #fff; font-size: clamp(24px, 3vw, 36px); line-height: 1.15; letter-spacing: -.02em; margin: 6px 0 14px; max-width: 720px; }
.footer-cta .eyebrow { color: #9fd8ff; margin: 0; }
.footer-cta-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: #dbe8f5; font-size: 15px; }
.footer-cta-points li { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.footer-cta-points .vs-ico { color: #34d399; }
.footer-cta-actions { display: flex; flex-direction: column; gap: 10px; min-width: 240px; }
.footer-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 48px; border-radius: 18px; overflow: hidden; background: rgba(255,255,255,.08); }
@media (min-width: 760px) { .footer-stats { grid-template-columns: repeat(4, 1fr); } }
.footer-stats .stat { padding: 22px 24px; background: #08192c; display: flex; flex-direction: column; gap: 2px; }
.footer-stats strong { font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; background: linear-gradient(90deg, #fff, #9fd8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-stats span { font-size: 14px; color: #8fb0cf; }
.site-footer .footer-grid { margin-top: 48px; }
.footer-logo img { height: 44px; width: auto; background: #fff; padding: 8px 12px; border-radius: 12px; display: block; }
.footer-brand p { margin: 16px 0; max-width: 340px; }
.contact-list { display: grid; gap: 12px; }
.contact-list li { display: flex; align-items: flex-start; gap: 12px; margin: 0; }
.contact-list a { display: inline-flex; align-items: center; gap: 12px; }
.ci { flex: 0 0 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; color: var(--sky); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); transition: all .25s; }
.contact-list a:hover .ci { background: var(--grad-brand); color: #fff; border-color: transparent; }
.contact-list li > span:last-child { padding-top: 7px; font-size: 14px; line-height: 1.5; }
.footer-head { color: #fff; font-weight: 700; font-size: 15px; letter-spacing: .02em; margin-bottom: 14px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; color: #b8cbdd; transition: color .2s, transform .2s; }
.footer-links a .hub-icon { color: var(--sky); opacity: .8; }
.footer-links a:hover { color: #fff; text-decoration: none; transform: translateX(3px); }
.footer-wordmark { margin-top: 40px; text-align: center; font-weight: 900; font-size: clamp(64px, 17vw, 250px); line-height: .78; letter-spacing: .02em; user-select: none; background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,0) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; overflow: hidden; }
.footer-bottom { align-items: center; margin-top: 0; border-top: 1px solid rgba(255,255,255,.1); }
.footer-social { display: flex; gap: 10px; }
.footer-social a { margin: 0; }
.social-btn { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 12px; color: #dbe8f5; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); cursor: pointer; transition: all .25s; }
.social-btn:hover { color: #fff; background: var(--grad-brand); border-color: transparent; transform: translateY(-3px); box-shadow: 0 10px 20px -10px rgba(0,118,179,.9); text-decoration: none; }
.mobile-bar .btn { gap: 8px; }

@media (prefers-reduced-motion: reduce) {
	.live-dot { animation: none; }
	.site-nav { transition: none; }
}
.footer-stats.container { padding: 0; width: calc(100% - 32px); max-width: 1168px; }
.footer-cta.container { max-width: 1168px; }
@media (max-width: 1024px) {
	.site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255,255,255,.97); }
	.nav-open .site-header { z-index: 85; }
}
.tm-note { margin: 28px 0 0; padding: 12px 16px; font-size: 13.5px; line-height: 1.55; color: var(--ink-3); background: var(--tint); border-radius: 10px; }
/* Footer link colour must not override button text */
.site-footer .btn-light, .site-footer .btn-light:hover { color: var(--navy); text-decoration: none; }
.site-footer .btn-light:hover { background: var(--sky); }
.site-footer .btn-outline-light, .site-footer .btn-outline-light:hover { color: #fff; text-decoration: none; }

/* Legal links beside the copyright line */
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.footer-legal nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.site-footer .footer-legal nav a { color: #9db8d3; text-decoration: none; }
.site-footer .footer-legal nav a:hover { color: #fff; }

/* GESIA corporate member badge, in the bottom bar beside the social icons */
.footer-social { flex-wrap: wrap; align-items: center; }
.site-footer .footer-member { display: flex; align-items: center; gap: 10px; margin-right: 8px; font-size: 12px; color: #8fb0cf; text-decoration: none; }
.site-footer .footer-member:hover { color: #fff; }
.footer-member-badge { display: inline-block; padding: 4px; border-radius: 8px; background: #fff; transition: transform .2s; }
.site-footer .footer-member:hover .footer-member-badge { transform: translateY(-2px); }
.footer-member-badge img { display: block; height: 40px; width: 40px; }
@media (max-width: 640px) { .footer-member > span:first-child { display: none; } }

/* Sharper 600px logo (logo.png/webp): a little larger, kept to its true proportions */
.brand img { height: 48px; width: auto; }
.footer-logo img { height: 56px; padding: 8px 14px; }
@media (max-width: 1024px) { .brand img { height: 40px; } }
@media (max-width: 479px) { .brand img { height: 38px; } }

/* Offer card placed inside a dark hero (topic pages): keep its own light-card colours instead of
   inheriting the hero's light text, which made the offer name unreadable on the white card. */
.offer-card { background: #fff; color: var(--ink); }
.offer-card .offer-name { color: var(--navy); }
.hero-dark .offer-card .eyebrow { color: var(--ink-3); }

/* Same typefaces as the main site (Inter for text, Inter Tight for headings), self-hosted: copied from
   site-next's @fontsource-variable packages so the blog and the site render identically. */
@font-face { font-family: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(fonts/inter-latin-ext-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(fonts/inter-latin-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter Tight Variable"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(fonts/inter-tight-latin-ext-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter Tight Variable"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(fonts/inter-tight-latin-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
:root { --font: "Inter Variable", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; --font-display: "Inter Tight Variable", "Inter Variable", "Segoe UI", system-ui, sans-serif; }
h1, h2, h3, h4, .footer-cta h2, .offer-name, .card-title { font-family: var(--font-display); letter-spacing: -0.012em; }
/* Header menu at the same size as the main site */
@media (min-width: 1025px) { .nav-list > li > a, .nav-list summary { font-size: 16px; } }
/* Same side padding as the main site's container (16px on phones, 24px from 640px) */
@media (min-width: 640px) { .container:not(.footer-cta) { padding: 0 24px; } }
/* Footer CTA card: same size as the main site's (1152px wide, 36px / 44px 48px padding) */
.footer-cta.container, .footer-stats.container { max-width: 1152px; }
@media (min-width: 640px) { .footer-cta.container, .footer-stats.container { width: calc(100% - 48px); } }

/* Tap targets at least 24px tall (WCAG 2.2), as on the main site */
.footer-legal nav a, .crumbs a { display: inline-flex; min-height: 24px; align-items: center; }
.topbar-msg { min-height: 40px; }
