/* ==========================================================================
   A9 / Nexa theme: main stylesheet
   Dark navy site, blue header, gold accents, light reading boxes.
   ========================================================================== */

:root {
	--nexa-primary: #0ea5e9;
	--nexa-accent: #e9b949;
	/* Accessible shades: recalculated in PHP from the Customizer colours (inc/customizer.php). */
	--nexa-primary-dark: #0a74a3;   /* white text on it >= 5:1 */
	--nexa-primary-deep: #085c82;
	--nexa-primary-light: #b7e4f8;
	--nexa-accent-light: #f3d99b;
	--nexa-accent-dark: #c69d3e;
	--nexa-on-accent: #1b1405;
	--nexa-accent-rgb: 233, 185, 73;
	--nexa-gold: linear-gradient(180deg, var(--nexa-accent-light) 0%, var(--nexa-accent) 55%, var(--nexa-accent-dark) 100%);

	--bg: #06121f;
	--surface: #0c1f33;
	--surface-2: #12304d;
	--line: rgba(255, 255, 255, .1);
	--text: #e6edf5;
	--muted: #9fb3c8;

	--box: #f7fbff;
	--box-line: #d9e8f5;
	--ink: #10233a;
	--ink-muted: #4e6178;

	--radius: 14px;
	--width: 1240px;
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

html, body { overflow-x: clip; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.7;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}
body.drawer-open { overflow: hidden; }

img, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: var(--nexa-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--nexa-accent); outline-offset: 2px; }
/* Dark focus ring on light boxes (gold would be too faint there) */
.nexa-content-box :focus-visible, .nexa-intro-box :focus-visible, .nexa-download-box :focus-visible, .nexa-games__tab.is-active:focus-visible, .nexa-games__search input:focus-visible, .hbtn--login:focus-visible { outline-color: #0b1a2e; }
[hidden] { display: none !important; }

h1, h2, h3, h4, h5, h6 { line-height: 1.25; margin: 1.4em 0 .5em; }
h1 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); }
h3 { font-size: 1.2rem; }

.container { width: 100%; max-width: var(--width); margin: 0 auto; padding: 0 16px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link:focus { clip: auto; clip-path: none; width: auto; height: auto; z-index: 1000; top: 8px; left: 8px; padding: 10px 16px; background: #fff; color: #000; }

.nexa-icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn, input[type="submit"], .comment-form .submit {
	display: inline-flex; align-items: center; justify-content: center; gap: .4em;
	padding: .7em 1.5em; border: 2px solid var(--nexa-primary-dark); border-radius: 999px;
	background: var(--nexa-primary-dark); color: #fff; font: inherit; font-weight: 700; line-height: 1.2;
	cursor: pointer; transition: transform .15s, filter .15s, background .15s; text-decoration: none;
}
.btn:hover, input[type="submit"]:hover { filter: brightness(1.08); transform: translateY(-1px); text-decoration: none; color: #fff; }
.btn--gold { background: var(--nexa-gold); border-color: transparent; color: var(--nexa-on-accent); box-shadow: 0 6px 18px rgba(var(--nexa-accent-rgb), .3); }
.btn--gold:hover { color: var(--nexa-on-accent); }
.btn--outline { background: transparent; color: var(--nexa-primary-dark); border-color: var(--nexa-primary-dark); }
.btn--outline:hover { background: var(--nexa-primary-dark); color: #fff; }
.btn--lg { font-size: 1.1rem; padding: .85em 2.2em; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: linear-gradient(90deg, var(--nexa-primary-dark), var(--nexa-primary-deep));
	box-shadow: 0 2px 14px rgba(0, 0, 0, .25);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

.header-inner { display: flex; align-items: center; gap: 16px; min-height: 66px; }
.site-branding { flex-shrink: 0; }
.site-title { font-size: 1.4rem; font-weight: 800; color: #fff; letter-spacing: .02em; }
.site-title:hover { text-decoration: none; }
.custom-logo-link { display: block; }
.custom-logo { max-height: 56px; width: auto; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .3)); }
.header-inner { padding-top: 4px; padding-bottom: 4px; }

.menu-toggle { display: none; background: rgba(255, 255, 255, .15); border: 0; border-radius: 10px; color: #fff; padding: 8px; cursor: pointer; }
.menu-toggle .nexa-icon { width: 24px; height: 24px; }

.main-navigation { flex: 1; min-width: 0; }
.main-navigation ul { list-style: none; margin: 0; padding: 0; }
.main-navigation > ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; }
.main-navigation li { position: relative; }
.main-navigation a { display: block; padding: 8px 12px; color: #fff; font-weight: 600; font-size: .95rem; border-radius: 8px; white-space: nowrap; }
.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a { background: rgba(0, 0, 0, .25); text-decoration: none; }
.main-navigation .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 210px; padding: 6px; z-index: 5;
	background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 30px rgba(0, 0, 0, .35);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .18s;
}
.main-navigation li:hover > .sub-menu, .main-navigation li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }

.header-actions { display: flex; gap: 8px; margin-left: auto; flex-shrink: 0; }
.hbtn { display: inline-block; padding: 8px 20px; border-radius: 999px; font-weight: 700; font-size: .95rem; line-height: 1.2; transition: filter .15s, transform .15s; }
.hbtn:hover { text-decoration: none; filter: brightness(1.06); transform: translateY(-1px); }
.hbtn--login { background: #e0f4ff; color: var(--nexa-primary-dark); }
.hbtn--register { background: var(--nexa-gold); color: var(--nexa-on-accent); }

@media (max-width: 1100px) {
	.menu-toggle { display: inline-flex; }
	.main-navigation { display: none; }
}
@media (max-width: 420px) {
	.hbtn { padding: 7px 13px; font-size: .85rem; }
	.custom-logo { max-height: 44px; }
}

/* Drawer (mobile / tablet menu) */
.nexa-drawer {
	position: fixed; top: 0; bottom: 0; left: 0; z-index: 300; width: min(320px, 86vw);
	background: var(--nexa-primary-deep); color: #fff; overflow-y: auto;
	transform: translateX(-100%); transition: transform .25s ease; box-shadow: 8px 0 30px rgba(0, 0, 0, .35);
}
.nexa-drawer.is-open { transform: none; }
.nexa-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; background: rgba(0, 0, 0, .12); }
.nexa-drawer__title { font-size: 1.25rem; font-weight: 700; }
.nexa-drawer__close { background: none; border: 0; color: #fff; cursor: pointer; padding: 4px; }
.drawer-menu { list-style: none; margin: 0; padding: 8px 0; }
.drawer-menu a { display: block; padding: 12px 20px; color: #fff; font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.drawer-menu a:hover, .drawer-menu .current-menu-item > a { background: rgba(0, 0, 0, .25); box-shadow: inset 4px 0 0 var(--nexa-accent); text-decoration: none; }
.drawer-menu .sub-menu { list-style: none; padding: 0; }
.drawer-menu .sub-menu a { padding-left: 38px; font-weight: 500; }
.header-actions--drawer { margin: 18px 20px; }
.header-actions--drawer .hbtn { flex: 1; text-align: center; }
.nexa-drawer-overlay { position: fixed; inset: 0; z-index: 250; background: rgba(0, 0, 0, .55); }
@media (prefers-reduced-motion: reduce) { .nexa-drawer { transition: none; } }

/* ---------- Breadcrumbs (Rank Math) ---------- */
.nexa-breadcrumbs { padding-top: 14px; padding-bottom: 4px; font-size: .88rem; color: var(--muted); }
.nexa-breadcrumbs p { margin: 0; }
.nexa-breadcrumbs a { color: var(--muted); }
.nexa-breadcrumbs .separator { margin: 0 6px; }

/* ---------- Layout ---------- */
.site-main { padding-bottom: 50px; }
.site-main > * + *, .home-content > * + * { margin-top: 26px; }
.site-main--home { padding-top: 0; }
.home-content > *:first-child { margin-top: 26px; }

.nexa-admin-hint { margin: 16px 0; padding: 14px; border: 2px dashed var(--line); border-radius: var(--radius); text-align: center; font-size: .9rem; }

/* ---------- Banner ---------- */
.nexa-banner { position: relative; margin-top: 18px; }
.nexa-banner__track { position: relative; overflow: hidden; width: 100%; border-radius: var(--radius); background: var(--surface); }
.nexa-banner__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; }
.nexa-banner__slide.is-active { opacity: 1; visibility: visible; }
.nexa-banner__slide a, .nexa-banner__img { display: block; width: 100%; height: 100%; }
.nexa-banner__img { object-fit: cover; }
.nexa-banner__nav {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 40px; height: 40px;
	border-radius: 50%; border: 0; background: rgba(0, 0, 0, .45); color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
}
.nexa-banner__nav:hover { background: rgba(0, 0, 0, .7); }
.nexa-banner__prev { left: 28px; }
.nexa-banner__next { right: 28px; }
.nexa-banner__dots { position: absolute; bottom: 4px; left: 0; right: 0; z-index: 3; display: flex; justify-content: center; gap: 2px; }
/* 24px tap target (WCAG 2.2), small visible dot */
.nexa-banner__dot { position: relative; width: 24px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.nexa-banner__dot::before { content: ""; position: absolute; top: 7px; left: 7px; width: 10px; height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .75); box-shadow: 0 0 0 1px rgba(0, 0, 0, .35); transition: all .2s; }
.nexa-banner__dot.is-active::before { left: 1px; width: 22px; background: var(--nexa-accent); }
@media (max-width: 600px) { .nexa-banner__nav { display: none; } .nexa-banner__track { border-radius: 10px; } }
@media (prefers-reduced-motion: reduce) { .nexa-banner__slide { transition: none; } }

/* ---------- Marquee ---------- */
.nexa-marquee {
	display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 8px 18px;
	background: linear-gradient(90deg, var(--nexa-primary-deep), var(--nexa-primary-dark));
	border-radius: 999px; color: #fff; font-size: .95rem;
}
.nexa-marquee__icon { display: inline-flex; color: #bfe9ff; }
.nexa-marquee__viewport { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.nexa-marquee__track { display: inline-flex; white-space: nowrap; animation: nexa-marquee 30s linear infinite; }
.nexa-marquee:hover .nexa-marquee__track { animation-play-state: paused; }
.marquee-text { padding-right: 80px; }
.nexa-marquee__clock { flex-shrink: 0; min-width: 25ch; text-align: right; font-variant-numeric: tabular-nums; font-size: .9rem; }
.nexa-marquee__pause { flex-shrink: 0; width: 28px; height: 28px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 50%; background: transparent; color: #fff; font-size: .6rem; letter-spacing: -1px; cursor: pointer; }
.nexa-marquee__pause:hover { background: rgba(255, 255, 255, .15); }
.nexa-marquee.is-paused .nexa-marquee__track { animation-play-state: paused; }
@keyframes nexa-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 700px) { .nexa-marquee { border-radius: 12px; } .nexa-marquee__clock { display: none; } }
@media (prefers-reduced-motion: reduce) {
	.nexa-marquee__track { animation: none; white-space: normal; }
	.nexa-marquee__track .marquee-text + .marquee-text { display: none; }
}

/* ---------- Promotions ---------- */
.nexa-promos__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.nexa-promo { display: block; border-radius: 12px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.nexa-promo img { width: 100%; height: 100%; object-fit: cover; }
a.nexa-promo:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, .35); }
@media (max-width: 800px) { .nexa-promos__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Download / Register / Login cards ---------- */
.nexa-cards__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 26px; }
.nexa-card {
	display: flex; flex-direction: column; align-items: center; text-align: center; padding: 34px 26px;
	background: linear-gradient(145deg, #0d3550, #0a1f33 70%); border: 1px solid rgba(var(--nexa-accent-rgb), .35);
	border-radius: 20px; transition: transform .2s, box-shadow .2s;
}
.nexa-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(0, 0, 0, .4); }
.nexa-card__icon {
	display: inline-flex; align-items: center; justify-content: center; width: 86px; height: 86px; border-radius: 50%;
	border: 2px solid var(--nexa-accent); color: var(--nexa-accent); background: rgba(255, 255, 255, .03);
	box-shadow: 0 0 22px rgba(var(--nexa-accent-rgb), .25);
}
.nexa-card__icon .nexa-icon { width: 38px; height: 38px; }
.nexa-card__title { margin: 18px 0 10px; color: var(--nexa-accent); font-size: 1.5rem; font-weight: 800; line-height: 1.25; letter-spacing: .12em; }
.nexa-card__text { margin: 0 0 22px; color: #dce6f0; flex: 1; }
@media (max-width: 900px) { .nexa-cards__grid { grid-template-columns: 1fr; } }

/* ---------- Light content boxes ---------- */
.nexa-content-box, .nexa-intro-box, .nexa-download-box {
	background: var(--box); color: var(--ink); border: 1px solid var(--box-line);
	border-radius: 22px; padding: clamp(22px, 3.5vw, 40px); box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}
.nexa-content-box h1, .nexa-content-box h2, .nexa-content-box h3,
.nexa-intro-box h1, .nexa-intro-box h2, .nexa-download-box h2 { color: #0b1a2e; }
.nexa-content-box > *:first-child, .nexa-intro-box > *:first-child { margin-top: 0; }
.nexa-content-box > *:last-child { margin-bottom: 0; }
.nexa-content-box a, .nexa-intro-box a:not(.wp-block-button__link), .nexa-download-box a:not(.btn) { color: var(--nexa-primary-dark); text-decoration: underline; text-underline-offset: 2px; }
.nexa-content-box h2 { padding-top: 22px; border-top: 1px solid var(--box-line); }
.nexa-content-box > h2:first-child, .nexa-content-box > .entry-title + h2 { border-top: 0; padding-top: 0; }
.nexa-content-box p { color: #2b3d52; }
.nexa-content-box ul, .nexa-content-box ol { color: #2b3d52; }
.nexa-content-box blockquote { border-left: 4px solid var(--nexa-primary-dark); margin-left: 0; padding: 8px 18px; background: #eaf5fd; border-radius: 0 10px 10px 0; }
.nexa-content-box table { width: 100%; border-collapse: collapse; }
.nexa-content-box th, .nexa-content-box td { border: 1px solid var(--box-line); padding: 10px; text-align: left; }
.nexa-content-box .entry-title { margin-top: 0; }

/* Intro box */
.nexa-eyebrow { margin: 0 0 6px; color: var(--nexa-primary-dark); font-weight: 800; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.nexa-intro-box h1 { margin: 0 0 .4em; }
.nexa-intro-box p { color: var(--ink-muted); font-size: 1.05rem; }
.nexa-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--box-line); }
.nexa-chips .wp-block-button__link {
	background: #fff; color: var(--nexa-primary-dark); border: 1px solid var(--nexa-primary-light);
	border-radius: 999px; padding: 8px 18px; font-weight: 700; font-size: .95rem;
}
.nexa-chips .wp-block-button__link:hover { background: var(--nexa-primary-dark); color: #fff; text-decoration: none; }

/* Read more */
.nexa-readmore.is-collapsed { max-height: 560px; overflow: hidden; position: relative; }
.nexa-readmore.is-collapsed::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; pointer-events: none;
	background: linear-gradient(180deg, transparent, var(--box) 85%);
}
.nexa-readmore__wrap { text-align: center; margin-top: -24px; position: relative; z-index: 2; }
.nexa-readmore__btn { min-width: 160px; }

/* ---------- Games ---------- */
.nexa-games { margin-top: 26px; }
.nexa-games__tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.nexa-games__tab {
	padding: 9px 20px; border: 0; border-radius: 10px 10px 0 0; cursor: pointer; font: inherit; font-weight: 700;
	background: var(--nexa-primary-deep); color: #fff;
}
.nexa-games__tab.is-active { background: #fff; color: var(--nexa-primary-dark); }
.nexa-games__panel { background: linear-gradient(180deg, var(--nexa-primary-dark), var(--nexa-primary-deep)); border-radius: 0 14px 14px 14px; padding: 12px; }
.nexa-games__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; color: #fff; }
.nexa-games__label { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.05rem; }
.nexa-games__search { display: flex; align-items: center; gap: 8px; background: #fff; color: #64748b; border-radius: 8px; padding: 0 12px; width: min(340px, 55%); }
.nexa-games__search input { border: 0; outline: 0; padding: 10px 0; width: 100%; font: inherit; background: transparent; color: var(--ink); }
.nexa-games__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.nexa-games__empty { margin: 0; padding: 26px; text-align: center; color: #fff; font-weight: 600; }
.nexa-games__empty a { color: #fff; text-decoration: underline; }
@media (max-width: 1100px) { .nexa-games__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px) { .nexa-games__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .nexa-games__tab { padding: 8px 14px; } }
@media (max-width: 460px) { .nexa-games__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .nexa-games__bar { flex-wrap: wrap; } .nexa-games__search { width: 100%; } }

.game-tile { position: relative; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: #0b2440; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
.game-tile__img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.game-tile:hover .game-tile__img { transform: scale(1.05); }
.game-tile__placeholder { display: flex; align-items: center; justify-content: center; height: 100%; padding: 10px; text-align: center; font-weight: 800; color: #fff; }
.game-tile__name { position: absolute; top: 0; left: 0; right: 0; padding: 6px 8px; font-size: .78rem; font-weight: 700; color: #fff; background: linear-gradient(180deg, rgba(0, 0, 0, .55), transparent); opacity: 0; transition: opacity .2s; }
.game-tile:hover .game-tile__name { opacity: 1; }
.game-tile__btn {
	position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); padding: 7px 16px; white-space: nowrap;
	background: rgba(30, 41, 59, .85); border: 1px solid rgba(255, 255, 255, .35); border-radius: 6px;
	color: #fff; font-weight: 800; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase;
}
.game-tile__btn:hover { background: var(--nexa-gold); color: var(--nexa-on-accent); text-decoration: none; }
.game-tile__btn::before { content: ""; position: absolute; inset: -400px -100px -12px; } /* whole tile clickable */

/* ---------- App download + QR ---------- */
.nexa-download { align-items: center; gap: 30px; margin: 0; }
.nexa-download h2 { margin-top: 0; color: var(--nexa-primary-dark); }
.nexa-download p { color: var(--ink-muted); }
.nexa-qr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.nexa-qr__item { display: flex; flex-direction: column; gap: 10px; }
.nexa-qr__card { background: #fff; border-radius: 14px; padding: 12px; box-shadow: 0 6px 18px rgba(16, 35, 58, .12); text-align: center; }
.nexa-qr__label { display: block; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.nexa-qr__img { width: 100%; max-width: 220px; margin: 0 auto; }
.nexa-qr__placeholder { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; border: 2px dashed var(--box-line); border-radius: 10px; color: var(--ink-muted); font-size: .85rem; padding: 10px; }
.nexa-qr__btn { width: 100%; }

/* ---------- FAQ ---------- */
.nexa-faq { background: #1d2125; border-radius: 16px; padding: 18px; }
.nexa-faq__title { margin: 0 0 12px; font-weight: 800; font-size: 1.15rem; color: #fff; display: flex; align-items: center; gap: 8px; }
.nexa-faq__title::before { content: "?"; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border: 2px solid #34d399; border-radius: 50%; color: #34d399; font-size: .8rem; }
.nexa-faq { counter-reset: faq; }
.nexa-faq h2, .nexa-faq h3 { margin: 0 0 8px; font-size: 1rem; font-weight: 500; counter-increment: faq; }
.nexa-faq__btn {
	display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; text-align: left;
	padding: 14px 16px; background: #2b3035; border: 0; border-radius: 6px; color: #fff; font: inherit; font-size: 1.02rem; cursor: pointer;
}
.nexa-faq__btn::before { content: counter(faq) ". "; margin-right: -6px; }
.nexa-faq__btn > span { flex: 1; }
.nexa-faq__btn::after { content: "+"; font-size: 1.5rem; line-height: 1; font-weight: 700; }
.nexa-faq__btn[aria-expanded="true"]::after { content: "−"; }
.nexa-faq__btn:hover { background: #343a40; }
.nexa-faq__panel { padding: 4px 16px 14px; color: #cfd6dd; }
.nexa-faq__panel p { margin: 0 0 10px; }
.nexa-faq__panel a { color: var(--nexa-accent); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Access (login / register) ---------- */
.nexa-access { margin-top: 22px; }
.nexa-access__card {
	max-width: 560px; margin: 0 auto; text-align: center; padding: 40px 30px;
	background: linear-gradient(145deg, #0d3550, #0a1f33 70%); border: 1px solid rgba(var(--nexa-accent-rgb), .35); border-radius: 22px;
}
.nexa-access__title { color: var(--nexa-accent); margin: 18px 0 10px; }
.nexa-access__text { color: #dce6f0; margin: 0 0 24px; }
.nexa-access__alt { margin: 18px 0 0; }
.nexa-access__alt a { color: #bfe9ff; }
.nexa-access__note { display: flex; gap: 8px; align-items: center; justify-content: center; margin: 22px 0 0; font-size: .85rem; color: var(--muted); }

/* ---------- Blog cards / single ---------- */
.page-header { margin: 26px 0; }
.page-title { margin: 0; }
.archive-description { color: var(--muted); }
.layout-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; }
.layout-sidebar:not(:has(#secondary)) { grid-template-columns: 1fr; }
@media (max-width: 960px) { .layout-sidebar { grid-template-columns: 1fr; } }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.post-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .post-grid, .post-grid--2 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card .post-thumbnail img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card__body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.card__cats { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.card__title { font-size: 1.15rem; margin: .4em 0; }
.card__title a { color: #fff; }
.card__meta, .entry-meta { font-size: .85rem; color: var(--muted); }
.nexa-content-box .entry-meta { color: var(--ink-muted); }
.card__meta a, .entry-meta a { color: inherit; }
.card__excerpt { font-size: .95rem; color: var(--muted); flex: 1; }
.card__more { font-weight: 700; color: var(--nexa-accent); }

.single-entry { margin-top: 26px; }
figure.post-thumbnail { margin: 0 0 24px; }
figure.post-thumbnail img { border-radius: 12px; width: 100%; }
.entry-content > * { margin-bottom: 1.1em; }
.entry-content img { border-radius: 8px; }
.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
figcaption, .wp-caption-text { font-size: .85rem; color: var(--ink-muted); text-align: center; }
.tag-links a { display: inline-block; padding: 4px 12px; margin: 0 6px 6px 0; background: #e6f1fb; border-radius: 99px; font-size: .85rem; color: var(--ink); text-decoration: none; }
.post-navigation .nav-links { display: flex; justify-content: space-between; gap: 20px; margin: 30px 0; }
.post-navigation .nav-next { text-align: right; margin-left: auto; }
.nav-subtitle { display: block; font-size: .78rem; color: var(--muted); text-transform: uppercase; }
.nav-title { font-weight: 700; color: #fff; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 30px; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); }
.pagination .page-numbers.current { background: var(--nexa-primary-dark); border-color: var(--nexa-primary-dark); color: #fff; }

/* Sidebar */
.widget-area { padding-top: 26px; }
.widget { margin-bottom: 26px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.widget-title { font-size: 1.05rem; margin: 0 0 .8em; color: var(--nexa-accent); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.widget li:last-child { border-bottom: 0; }
.widget a { color: var(--text); }

/* Forms */
input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="password"], input[type="tel"], textarea, select {
	width: 100%; padding: 10px 14px; border: 1px solid var(--box-line); border-radius: 10px; font: inherit; background: #fff; color: var(--ink);
}
.search-form { display: flex; gap: 8px; }
.search-form .search-field { flex: 1; }

/* Comments */
.comments-area { margin-top: 30px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 26px; }
.comment-body { padding: 16px; margin-bottom: 14px; background: var(--surface); border-radius: 12px; }
.comment-author .avatar { float: left; margin-right: 12px; border-radius: 50%; }

/* 404 */
.error-404 { text-align: center; padding-top: 40px; }
.error-code { font-size: 6rem; font-weight: 800; color: var(--nexa-accent); margin: 0; line-height: 1; }
.error-404 .search-form { max-width: 480px; margin: 20px auto; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 30px; background: linear-gradient(180deg, #081a2b, #050f1a); color: #cbd5e1; font-size: .95rem; }
.site-footer a { color: #e2e8f0; }
.logo-row { display: flex; align-items: center; gap: 24px; padding: 22px 0; border-bottom: 1px dashed rgba(var(--nexa-accent-rgb), .55); }
.logo-row__title { flex: 0 0 180px; margin: 0; font-size: 1.1rem; font-weight: 700; color: #fff; }
.logo-row__logos { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.logo-row__img { height: 44px; width: auto; object-fit: contain; filter: saturate(.95); transition: transform .2s; }
.logo-row__img:hover { transform: scale(1.06); }
@media (max-width: 700px) { .logo-row { flex-direction: column; align-items: flex-start; gap: 12px; } .logo-row__title { flex-basis: auto; } .logo-row__img { height: 34px; } }

.footer-widgets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding: 30px 0 0; }
.site-footer .widget { background: transparent; border: 0; padding: 0; }
@media (max-width: 800px) { .footer-widgets { grid-template-columns: 1fr; } }

.footer-links { padding: 26px 0; text-align: center; border-bottom: 1px dashed rgba(var(--nexa-accent-rgb), .55); }
.footer-follow { margin: 0 0 14px; font-size: 1.05rem; }
.footer-follow a { text-decoration: underline; text-underline-offset: 3px; }
.footer-menu { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; margin: 0; padding: 0; }
.footer-menu li { display: flex; align-items: center; }
.footer-menu li + li::before { content: "|"; color: #64748b; margin: 0 14px; }
.footer-menu a { color: #e2e8f0; }
.footer-bottom { padding: 18px 0 24px; text-align: center; font-size: .85rem; color: var(--muted); }
.footer-bottom p { margin: 4px 0; }
.badge-18 { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 2px solid #ef4444; border-radius: 50%; color: #fff; font-weight: 800; font-size: .72rem; margin-right: 6px; vertical-align: middle; }

/* ---------- Layout fixes ---------- */
.nexa-download { display: flex; flex-wrap: nowrap; }
.nexa-download > .wp-block-column { flex: 1 1 0; min-width: 0; }
.nexa-qr { max-width: 480px; margin-left: auto; }
.nexa-qr__placeholder { max-width: 200px; margin: 0 auto; }
@media (max-width: 781px) {
	.nexa-download { flex-direction: column; }
	.nexa-qr { margin: 0 auto; }
}
@media (max-width: 600px) {
	.nexa-card { padding: 22px 18px; }
	.nexa-card__icon { width: 64px; height: 64px; }
	.nexa-card__icon .nexa-icon { width: 28px; height: 28px; }
	.nexa-card__title { font-size: 1.25rem; margin: 12px 0 8px; }
	.nexa-card__text { font-size: .95rem; margin-bottom: 16px; }
	.nexa-cards__grid { gap: 14px; }
}
@media (max-width: 600px) {
	.footer-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; text-align: left; max-width: 360px; margin: 0 auto; }
	.footer-menu li + li::before { content: none; }
	.logo-row__logos { gap: 10px 14px; }
}

/* Last updated */
.nexa-updated { margin: 22px 0 0; font-size: .85rem; color: var(--ink-muted); }
.home-content > .nexa-updated { color: var(--muted); text-align: right; }
@media (max-width: 700px) { .nexa-marquee__pause { display: none; } }
