/* ==========================================================================
   Ngepush - dark utility theme on top of Astra
   Everything is scoped under body.ngepush or .ng-* so it cannot leak elsewhere.
   Tip: also set the same colors in Appearance > Customize > Global > Colors
   so the Astra header/footer builder matches (see SETUP.md).
   ========================================================================== */

:root {
	--ng-bg: #0b0f17;
	--ng-surface: #121826;
	--ng-surface-2: #182033;
	--ng-border: #243049;
	--ng-text: #e6e9f0;
	--ng-muted: #9aa4b8;
	--ng-accent: #5aa9ff;
	--ng-accent-2: #22d3ee;
	--ng-accent-ink: #0b0f17;
	--ng-danger: #ff8a8a;
	--ng-radius: 14px;
	--ng-radius-sm: 9px;
	--ng-shadow: 0 10px 30px rgba(0, 0, 0, .35);
	--ng-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--ng-purple: #a78bfa;
	--ng-green: #34d399;
	--ng-orange: #fb923c;
	--ng-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@font-face {
	font-family: "Plus Jakarta Sans";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
}

/* ---------- Astra overrides (page chrome) ---------- */

body.ngepush,
.ngepush #page,
.ngepush .site-content,
.ngepush #content,
.ngepush .ast-container,
.ngepush .ast-separate-container,
.ngepush .ast-separate-container .ast-article-single,
.ngepush .ast-separate-container .ast-article-post,
.ngepush .ast-plain-container,
.ngepush .ast-page-builder-template .site-content > .ast-container {
	background-color: var(--ng-bg);
	color: var(--ng-text);
	font-family: var(--ng-font);
}

.ngepush .site-header,
.ngepush .main-header-bar,
.ngepush .ast-primary-header-bar,
.ngepush .ast-above-header-bar,
.ngepush .ast-mobile-header-wrap .ast-primary-header-bar,
.ngepush .ast-main-header-bar-alignment .main-header-bar-navigation .sub-menu {
	background-color: rgba(11, 15, 23, .92);
	border-color: var(--ng-border);
}

.ngepush .site-footer,
.ngepush .site-below-footer-wrap,
.ngepush .site-primary-footer-wrap {
	background-color: #080b12;
	color: var(--ng-muted);
	border-color: var(--ng-border);
}

.ngepush .site-header a,
.ngepush .site-footer a,
.ngepush .main-header-menu a,
.ngepush .ast-site-identity .site-title a {
	color: var(--ng-text);
}

.ngepush .site-header a:hover,
.ngepush .site-footer a:hover,
.ngepush .main-header-menu a:hover {
	color: var(--ng-accent);
}

.ngepush h1, .ngepush h2, .ngepush h3, .ngepush h4 {
	color: var(--ng-text);
}

/* ---------- Layout helpers ---------- */

.ng-wrap {
	width: 100%;
	max-width: 1100px;
	margin-inline: auto;
	padding-inline: 20px;
	box-sizing: border-box;
}

.ng-section { padding-block: 28px; }
.ng-section h2 { font-size: clamp(1.25rem, 1.1rem + .8vw, 1.6rem); margin: 0 0 14px; line-height: 1.25; }
.ng-section p, .ng-section li { color: var(--ng-text); line-height: 1.65; }
.ng-section p { margin: 0 0 12px; max-width: 70ch; }
.ng-muted { color: var(--ng-muted); }

.ng-sr-only {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0; border: 0;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.ngepush a:focus-visible,
.ngepush button:focus-visible,
.ngepush textarea:focus-visible,
.ngepush input:focus-visible,
.ngepush summary:focus-visible {
	outline: 2px solid var(--ng-accent);
	outline-offset: 2px;
}

/* ---------- Hero ---------- */

.ng-hero { padding-block: 44px 20px; }
.ng-eyebrow {
	display: inline-block;
	margin: 0 0 10px;
	padding: 4px 11px;
	font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
	color: var(--ng-accent-2);
	background: rgba(94, 234, 212, .08);
	border: 1px solid rgba(94, 234, 212, .25);
	border-radius: 999px;
}
.ng-hero h1 {
	margin: 0 0 10px;
	font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem);
	line-height: 1.1; letter-spacing: -.02em;
}
.ng-lead { margin: 0; max-width: 62ch; font-size: 1.1rem; line-height: 1.6; color: var(--ng-muted); }

/* ---------- Tool panel ---------- */

.ng-tool {
	background: var(--ng-surface);
	border: 1px solid var(--ng-border);
	border-radius: var(--ng-radius);
	padding: 18px;
	box-shadow: var(--ng-shadow);
}
.ng-tool-wrap { padding-block: 12px 8px; }

.ng-label { display: block; margin: 0 0 8px; font-weight: 600; font-size: .95rem; }

.ng-textarea {
	display: block; width: 100%; min-height: 260px; resize: vertical; box-sizing: border-box;
	padding: 14px 16px;
	font: inherit; font-size: 1rem; line-height: 1.6;
	color: var(--ng-text);
	background: var(--ng-bg);
	border: 1px solid var(--ng-border);
	border-radius: var(--ng-radius-sm);
}
.ng-textarea::placeholder { color: #6b7690; }

.ng-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.ng-toolbar .ng-spacer { flex: 1 1 auto; }

.ng-btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 9px 16px;
	font: inherit; font-size: .92rem; font-weight: 600; line-height: 1.2;
	color: var(--ng-text);
	background: var(--ng-surface-2);
	border: 1px solid var(--ng-border);
	border-radius: var(--ng-radius-sm);
	cursor: pointer;
	transition: border-color .15s, background-color .15s, transform .05s;
}
.ng-btn:hover { border-color: var(--ng-accent); background: #1d2742; }
.ng-btn:active { transform: translateY(1px); }
.ng-btn-primary { color: var(--ng-accent-ink); background: var(--ng-accent); border-color: var(--ng-accent); }
.ng-btn-primary:hover { background: #95b0ff; border-color: #95b0ff; }

.ng-check { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--ng-muted); cursor: pointer; }
.ng-check input { width: 16px; height: 16px; accent-color: var(--ng-accent); }

/* ---------- Stats ---------- */

.ng-stats {
	display: grid; gap: 12px; margin-top: 18px;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.ng-stat {
	padding: 14px 16px;
	background: var(--ng-bg);
	border: 1px solid var(--ng-border);
	border-radius: var(--ng-radius-sm);
}
.ng-stat-value { display: block; font-size: 1.7rem; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.ng-stat-label { display: block; margin-top: 4px; font-size: .82rem; color: var(--ng-muted); }
.ng-stat-primary .ng-stat-value { color: var(--ng-accent-2); }

.ng-subtitle { margin: 22px 0 10px; font-size: 1rem; font-weight: 700; }

.ng-table-wrap { overflow-x: auto; }
.ng-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.ng-table th, .ng-table td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--ng-border); color: var(--ng-text); }
.ng-table th { font-weight: 600; color: var(--ng-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.ng-table td:nth-child(n+2), .ng-table th:nth-child(n+2) { text-align: right; font-variant-numeric: tabular-nums; }
.ng-table-empty { margin: 0; color: var(--ng-muted); font-size: .92rem; }

/* ---------- Content blocks ---------- */

.ng-note {
	display: flex; gap: 12px; align-items: flex-start;
	padding: 14px 16px;
	background: rgba(94, 234, 212, .06);
	border: 1px solid rgba(94, 234, 212, .22);
	border-radius: var(--ng-radius-sm);
}
.ng-note p { margin: 0; max-width: none; }

.ng-steps { margin: 0; padding-left: 1.25em; }
.ng-steps li { margin-bottom: 8px; }

.ng-faq details { border-bottom: 1px solid var(--ng-border); padding: 12px 0; }
.ng-faq summary { cursor: pointer; font-weight: 600; line-height: 1.4; }
.ng-faq details p { margin: 10px 0 0; color: var(--ng-muted); }

.ng-example { padding: 14px 16px; background: var(--ng-surface); border: 1px solid var(--ng-border); border-radius: var(--ng-radius-sm); }
.ng-example pre { margin: 0; white-space: pre-wrap; font-family: var(--ng-mono); font-size: .88rem; color: var(--ng-muted); }

/* ---------- Cards / grid ---------- */

.ng-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.ng-card {
	display: flex; flex-direction: column; gap: 6px;
	padding: 16px;
	text-decoration: none;
	background: var(--ng-surface);
	border: 1px solid var(--ng-border);
	border-radius: var(--ng-radius);
	transition: border-color .15s, transform .15s;
}
.ng-card:hover { border-color: var(--ng-accent); transform: translateY(-2px); }
.ng-card-cat { font-size: .74rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ng-accent-2); }
.ng-card-title { font-size: 1.05rem; font-weight: 700; color: var(--ng-text); }
.ng-card-desc { font-size: .9rem; line-height: 1.5; color: var(--ng-muted); }

/* ---------- Search bar (homepage) ---------- */

.ng-searchbar {
	display: flex; align-items: center; gap: 12px; width: 100%; max-width: 620px;
	padding: 14px 16px; box-sizing: border-box;
	font: inherit; font-size: 1.02rem; text-align: left;
	color: var(--ng-muted);
	background: var(--ng-surface);
	border: 1px solid var(--ng-border);
	border-radius: var(--ng-radius);
	cursor: pointer;
}
.ng-searchbar:hover { border-color: var(--ng-accent); }
.ng-searchbar .ng-kbd { margin-left: auto; }

/* ---------- Keyboard hint + floating button ---------- */

.ng-kbd {
	display: inline-block; padding: 2px 7px;
	font: 600 .74rem/1.4 var(--ng-font);
	color: var(--ng-muted);
	background: var(--ng-bg);
	border: 1px solid var(--ng-border);
	border-radius: 6px;
}

.ng-fab {
	position: fixed; right: 18px; bottom: 18px; z-index: 9990;
	display: inline-flex; align-items: center; gap: 8px;
	padding: 10px 14px;
	font: 600 .88rem/1 var(--ng-font);
	color: var(--ng-text);
	background: var(--ng-surface-2);
	border: 1px solid var(--ng-border);
	border-radius: 999px;
	box-shadow: var(--ng-shadow);
	cursor: pointer;
}
.ng-fab:hover { border-color: var(--ng-accent); }
@media (hover: none), (max-width: 640px) {
	.ng-fab .ng-kbd { display: none; }
}

/* ---------- Command palette ---------- */

html.ng-pal-lock { overflow: hidden; }

.ng-pal { position: fixed; inset: 0; z-index: 100000; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; }
.ng-pal[hidden] { display: none; }
.ng-pal-backdrop { position: absolute; inset: 0; background: rgba(4, 6, 12, .72); backdrop-filter: blur(3px); }
.ng-pal-box {
	position: relative; width: 100%; max-width: 620px; max-height: 76vh;
	display: flex; flex-direction: column; overflow: hidden;
	color: var(--ng-text);
	background: var(--ng-surface);
	border: 1px solid var(--ng-border);
	border-radius: var(--ng-radius);
	box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
	font-family: var(--ng-font);
}
.ng-pal-inputrow { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--ng-border); }
.ng-pal-input {
	flex: 1 1 auto; min-width: 0; padding: 6px 0;
	font: inherit; font-size: 1.05rem; color: var(--ng-text);
	background: transparent; border: 0; outline: 0; box-shadow: none;
}
.ng-pal-input::placeholder { color: #6b7690; }
.ng-pal-list { list-style: none; margin: 0; padding: 8px; overflow-y: auto; }
.ng-pal-item { margin: 0; padding: 0; border-radius: var(--ng-radius-sm); }
.ng-pal-link {
	display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: baseline;
	padding: 10px 12px; text-decoration: none; color: inherit;
}
.ng-pal-name { font-weight: 600; }
.ng-pal-cat, .ng-pal-badge { font-size: .74rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ng-accent-2); }
.ng-pal-desc { grid-column: 1 / -1; order: 3; font-size: .86rem; line-height: 1.4; color: var(--ng-muted); }
.ng-pal-item.is-active { background: var(--ng-surface-2); outline: 1px solid var(--ng-accent); }
.ng-pal-soon { opacity: .55; }
.ng-pal-badge { color: var(--ng-muted); }
.ng-pal-empty { padding: 22px 20px; text-align: center; }
.ng-pal-empty-title { margin: 0 0 6px; font-weight: 600; }
.ng-pal-empty-hint { margin: 0 0 12px; font-size: .9rem; color: var(--ng-muted); }
.ng-pal-request { color: var(--ng-accent); font-weight: 600; }
.ng-pal-foot { padding: 9px 16px; font-size: .78rem; color: var(--ng-muted); border-top: 1px solid var(--ng-border); }

/* ---------- Mobile ---------- */

@media (max-width: 640px) {
	.ng-hero { padding-top: 28px; }
	.ng-tool { padding: 14px; }
	.ng-textarea { min-height: 200px; }
	.ng-pal { padding-top: 8vh; }
	.ng-pal-foot { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.ng-btn, .ng-card { transition: none; }
	.ng-card:hover { transform: none; }
}

/* ---------- Content pages (About, Contact, Privacy) ---------- */

.ng-section a:not(.ng-card):not(.ng-btn) { color: var(--ng-accent); text-underline-offset: 3px; }
.ng-section a:not(.ng-card):not(.ng-btn):hover { color: var(--ng-accent-2); }
.ng-section ul { margin: 0 0 12px; padding-left: 1.25em; max-width: 70ch; }
.ng-section ul li { margin-bottom: 6px; }
.ng-section h3 { margin: 18px 0 8px; font-size: 1.05rem; }
a.ng-btn { text-decoration: none; }
.ng-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.ng-updated { font-size: .88rem; color: var(--ng-muted); }

.ng-values { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.ng-value { padding: 16px; background: var(--ng-surface); border: 1px solid var(--ng-border); border-radius: var(--ng-radius); }
.ng-value h3 { margin: 0 0 6px; font-size: 1.02rem; }
.ng-value p { margin: 0; font-size: .92rem; color: var(--ng-muted); }

/* ---------- Header / footer pieces (used from the Astra builders, see SETUP.md) ---------- */

.ng-header-search {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 8px 12px;
	font: 600 .88rem/1 var(--ng-font);
	color: var(--ng-muted);
	background: var(--ng-surface);
	border: 1px solid var(--ng-border);
	border-radius: 999px;
	cursor: pointer;
}
.ng-header-search:hover { border-color: var(--ng-accent); color: var(--ng-text); }
/* On phones the floating Search button already covers this, so hide the header one. */
a.ng-header-search { text-decoration: none; }
@media (max-width: 640px) {
	.ng-header-search { display: none; }
}

.ng-footer-brand { max-width: 34ch; line-height: 1.6; color: var(--ng-muted); }
.ng-footer-brand strong { color: var(--ng-text); }
.ngepush .site-footer .widget-title,
.ngepush .site-footer h2,
.ngepush .site-footer h3 { color: var(--ng-text); }
.ngepush .site-footer .menu-item a { color: var(--ng-muted); }
.ngepush .site-footer .menu-item a:hover { color: var(--ng-accent); }

/* ---------- Form controls + limit meter (Character Counter, Slug Generator) ---------- */

.ng-controls { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: flex-end; margin-top: 14px; }
.ng-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ng-field[hidden] { display: none; }
.ng-field > span { font-size: .85rem; font-weight: 600; color: var(--ng-muted); }
.ng-select, .ng-input {
	box-sizing: border-box; min-height: 40px; padding: 8px 12px;
	font: inherit; font-size: .95rem; color: var(--ng-text);
	background: var(--ng-bg); border: 1px solid var(--ng-border); border-radius: var(--ng-radius-sm);
}
.ng-input { width: 130px; }
.ng-select { min-width: 220px; max-width: 100%; }
.ng-textarea-sm { min-height: 110px; }
.ng-textarea[readonly] { background: var(--ng-surface-2); }

.ng-meter { margin-top: 14px; }
.ng-meter[hidden] { display: none; }
.ng-meter-track { height: 10px; overflow: hidden; background: var(--ng-bg); border: 1px solid var(--ng-border); border-radius: 999px; }
.ng-meter-fill { display: block; height: 100%; width: 0; background: var(--ng-accent-2); transition: width .12s linear; }
.ng-meter[data-state="near"] .ng-meter-fill { background: #fbbf24; }
.ng-meter[data-state="over"] .ng-meter-fill { background: var(--ng-danger); }
.ng-meter-text { margin: 8px 0 0; font-size: .92rem; color: var(--ng-muted); font-variant-numeric: tabular-nums; }
.ng-meter[data-state="over"] .ng-meter-text { color: var(--ng-danger); font-weight: 600; }

.ng-warn { margin: 12px 0 0; padding: 10px 14px; font-size: .92rem; color: #fde68a; background: rgba(251, 191, 36, .08); border: 1px solid rgba(251, 191, 36, .3); border-radius: var(--ng-radius-sm); }
.ng-warn[hidden] { display: none; }

@media (max-width: 640px) {
	.ng-select { min-width: 0; width: 100%; }
	.ng-field { flex: 1 1 100%; }
	.ng-input { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .ng-meter-fill { transition: none; } }

/* ---------- Meta Tag Preview: Google-style result card ---------- */

.ng-radios { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 4px; }
.ng-tips { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.ng-tips[hidden] { display: none; }
.ng-tip { padding: 9px 13px; font-size: .92rem; line-height: 1.5; border-radius: var(--ng-radius-sm); border: 1px solid var(--ng-border); color: var(--ng-text); }
.ng-tip-warn { color: #fde68a; background: rgba(251, 191, 36, .08); border-color: rgba(251, 191, 36, .3); }
.ng-tip-info { color: var(--ng-muted); background: var(--ng-bg); }

.ng-serp {
	margin-top: 18px; padding: 18px 20px; box-sizing: border-box; max-width: 100%;
	font-family: Arial, Helvetica, sans-serif; text-align: left;
	background: #fff; color: #202124; border: 1px solid #dadce0; border-radius: var(--ng-radius);
}
.ng-serp[data-view="mobile"] { max-width: 380px; margin-inline: auto; }
.ng-serp-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.ng-serp-icon { flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #5f6368; background: #f1f3f4; border-radius: 50%; }
.ng-serp-meta { min-width: 0; line-height: 1.3; }
.ngepush .ng-serp .ng-serp-site { display: block; font-size: 14px; color: #202124; }
.ngepush .ng-serp .ng-serp-url { display: block; font-size: 12px; color: #4d5156; overflow-wrap: anywhere; }
.ngepush .ng-serp .ng-serp-title { margin: 4px 0 3px; padding: 0; font-family: Arial, Helvetica, sans-serif; font-size: 20px; line-height: 1.3; font-weight: 400; letter-spacing: 0; color: #1a0dab; overflow-wrap: anywhere; }
.ngepush .ng-serp .ng-serp-desc { margin: 0; max-width: none; font-size: 14px; line-height: 1.58; color: #4d5156; overflow-wrap: anywhere; }
.ngepush .ng-serp .is-placeholder { opacity: .55; }
.ngepush .ng-serp[data-theme="dark"] { background: #202124; color: #e8eaed; border-color: #3c4043; }
.ngepush .ng-serp[data-theme="dark"] .ng-serp-icon { background: #303134; color: #bdc1c6; }
.ngepush .ng-serp[data-theme="dark"] .ng-serp-site { color: #e8eaed; }
.ngepush .ng-serp[data-theme="dark"] .ng-serp-url { color: #bdc1c6; }
.ngepush .ng-serp[data-theme="dark"] .ng-serp-title { color: #8ab4f8; }
.ngepush .ng-serp[data-theme="dark"] .ng-serp-desc { color: #bdc1c6; }
.ng-code { font-family: var(--ng-mono); font-size: .88rem; min-height: 90px; }
.ng-minor { margin: 6px 0 0; font-size: .85rem; color: var(--ng-muted); }
.ng-input-wide { width: 100%; }
/* Contact form */
.ng-form { display: grid; gap: 18px; max-width: 640px; }
.ng-form .ng-field { display: block; }
.ng-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.ng-form-status { margin: 0; padding: 12px 14px; border-radius: var(--ng-radius-sm); font-size: .95rem; border: 1px solid transparent; }
.ng-form-status[hidden] { display: none; }
.ng-form-success { color: #a7f3d0; background: rgba(52, 211, 153, .1); border-color: rgba(52, 211, 153, .35); }
.ng-form-error { color: #fecaca; background: rgba(248, 113, 113, .1); border-color: rgba(248, 113, 113, .35); }
.ng-form-info { color: var(--ng-muted); }
.ng-form .ng-btn[disabled] { opacity: .6; cursor: progress; }

/* ==========================================================================
   Readability hardening: Astra sets its own colors on labels, inputs, links and
   paragraphs. These rules are more specific so text stays visible on the dark theme.
   ========================================================================== */

.ngepush .ng-page { color: var(--ng-text); font-family: var(--ng-font); font-size: 1.0625rem; }
.ngepush .ng-page h1, .ngepush .ng-page h2, .ngepush .ng-page h3 { font-family: var(--ng-font); color: var(--ng-text); }
.ngepush .ng-page label,
.ngepush .ng-page legend,
.ngepush .ng-page .ng-label { color: var(--ng-text); font-family: var(--ng-font); }
.ngepush .ng-page .ng-check { color: var(--ng-text); font-size: .95rem; }
.ngepush .ng-page .ng-muted { color: var(--ng-muted); }
.ngepush .ng-page .ng-lead { color: #b4bdd0; font-size: 1.15rem; }
.ngepush .ng-page .ng-minor,
.ngepush .ng-page .ng-meter-text,
.ngepush .ng-page .ng-stat-label { color: var(--ng-muted); }
.ngepush .ng-page .ng-meter[data-state="over"] .ng-meter-text { color: var(--ng-danger); }
.ngepush .ng-page .ng-stat-value { color: var(--ng-text); }
.ngepush .ng-page .ng-stat-primary .ng-stat-value { color: var(--ng-accent-2); }
.ngepush .ng-page .ng-section p,
.ngepush .ng-page .ng-section li { font-size: 1.0625rem; line-height: 1.7; }
.ngepush .ng-page .ng-note p { color: var(--ng-text); }

.ngepush .ng-page .ng-textarea,
.ngepush .ng-page .ng-input,
.ngepush .ng-page .ng-select {
	color: var(--ng-text);
	background-color: var(--ng-bg);
	border: 1px solid var(--ng-border);
	border-radius: var(--ng-radius-sm);
	box-shadow: none;
	font-family: var(--ng-font);
}
.ngepush .ng-page .ng-textarea:focus,
.ngepush .ng-page .ng-input:focus,
.ngepush .ng-page .ng-select:focus {
	color: var(--ng-text);
	background-color: var(--ng-bg);
	border-color: var(--ng-accent);
}
.ngepush .ng-page .ng-textarea[readonly] { background-color: var(--ng-surface-2); }
.ngepush .ng-page .ng-textarea::placeholder,
.ngepush .ng-page .ng-input::placeholder { color: #7d88a1; opacity: 1; }
.ngepush .ng-page .ng-select option { color: var(--ng-text); background: var(--ng-surface); }

.ngepush .ng-page .ng-btn { color: var(--ng-text); text-decoration: none; font-family: var(--ng-font); }
.ngepush .ng-page .ng-btn-primary { color: var(--ng-accent-ink); background: var(--ng-accent); }
.ngepush .ng-page .ng-btn-primary:hover { background: #82bdff; }
.ngepush .ng-page a.ng-card,
.ngepush .ng-page a.ngh-card { text-decoration: none; }
.ngepush .ng-page .ng-card-title { color: var(--ng-text); }
.ngepush .ng-page .ng-card-desc { color: var(--ng-muted); }
.ngepush .ng-page .ng-tip-warn,
.ngepush .ng-page .ng-warn { color: #fde68a; }
.ngepush .ng-page .ng-tip-info { color: var(--ng-muted); }
.ngepush .ng-page .ng-table th { color: var(--ng-muted); }
.ngepush .ng-page .ng-faq summary { color: var(--ng-text); }
.ngepush .ng-page .ng-faq details p { color: var(--ng-muted); }
.ngepush .ng-page .ng-form-success { color: #a7f3d0; }
.ngepush .ng-page .ng-form-error { color: #fecaca; }

/* ==========================================================================
   Home: "Useful tools. Zero friction."
   ========================================================================== */

.ngh-hero-bg {
	position: relative; overflow: hidden;
	background:
		radial-gradient(900px 420px at 78% 30%, rgba(34, 211, 238, .16), transparent 70%),
		radial-gradient(700px 400px at 10% 0%, rgba(90, 169, 255, .14), transparent 70%),
		linear-gradient(180deg, #0b1220 0%, var(--ng-bg) 100%);
}
.ngh-hero-bg::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image:
		linear-gradient(rgba(120, 160, 255, .07) 1px, transparent 1px),
		linear-gradient(90deg, rgba(120, 160, 255, .07) 1px, transparent 1px);
	background-size: 44px 44px;
	-webkit-mask-image: radial-gradient(ellipse at 60% 30%, #000 20%, transparent 75%);
	mask-image: radial-gradient(ellipse at 60% 30%, #000 20%, transparent 75%);
}
.ngh-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 24px; align-items: center; padding-block: 56px 36px; }
.ngh-copy { min-width: 0; }
.ngepush .ng-page .ngh-title { margin: 0 0 16px; font-size: clamp(2.5rem, 1.5rem + 4.4vw, 4.4rem); line-height: 1.02; font-weight: 800; letter-spacing: -.035em; }
.ngepush .ng-page .ngh-title span { display: block; background: linear-gradient(90deg, #22d3ee, #5aa9ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #22d3ee; }
.ngepush .ng-page .ngh-sub { margin: 0 0 26px; max-width: 34ch; font-size: 1.2rem; line-height: 1.55; color: #b4bdd0; }
.ngh-search {
	display: flex; align-items: center; gap: 14px; width: 100%; max-width: 560px; box-sizing: border-box;
	padding: 17px 18px; font: inherit; font-size: 1.05rem; text-align: left; cursor: pointer;
	color: #9db0cf; background: rgba(15, 22, 38, .85); border: 1px solid #2c3a5c; border-radius: 16px;
	box-shadow: 0 0 0 4px rgba(90, 169, 255, .06), 0 12px 34px rgba(0, 0, 0, .35);
	transition: border-color .15s, box-shadow .15s;
}
.ngh-search:hover { border-color: var(--ng-accent-2); box-shadow: 0 0 0 4px rgba(34, 211, 238, .1), 0 12px 34px rgba(0, 0, 0, .35); }
.ngh-search svg { flex: 0 0 auto; width: 22px; height: 22px; color: var(--ng-accent-2); }
.ngh-search .ng-kbd { margin-left: auto; }
.ngh-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.ngepush .ng-page a.ngh-chip {
	display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px;
	font-size: .9rem; font-weight: 600; text-decoration: none; color: var(--ng-text);
	background: rgba(24, 32, 51, .8); border: 1px solid var(--ng-border); border-radius: 999px;
	transition: border-color .15s, background-color .15s;
}
.ngepush .ng-page a.ngh-chip:hover { border-color: var(--ng-accent-2); background: #1b2740; }
.ngh-chip b { color: var(--ng-accent-2); font-weight: 800; }
.ngh-art { min-width: 0; }
.ngh-art svg { display: block; width: 100%; height: auto; max-height: 380px; }

.ngh-trust { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 8px; background: rgba(18, 24, 38, .85); border: 1px solid var(--ng-border); border-radius: 16px; }
.ngh-trust-item { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 16px 12px; font-size: .98rem; font-weight: 600; color: var(--ng-text); }
.ngh-trust-item + .ngh-trust-item { border-left: 1px solid var(--ng-border); }
.ngh-trust-item svg { flex: 0 0 auto; width: 22px; height: 22px; color: var(--ng-accent-2); }

.ngh-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.ngepush .ng-page .ngh-head h2 { position: relative; margin: 0; padding-top: 14px; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); font-weight: 800; letter-spacing: -.02em; }
.ngepush .ng-page .ngh-head h2::before { content: ""; position: absolute; top: 0; left: 0; width: 44px; height: 3px; border-radius: 3px; background: var(--ng-accent-2); }
.ngepush .ng-page .ngh-head a { font-size: .95rem; font-weight: 600; color: var(--ng-accent); text-decoration: none; white-space: nowrap; }
.ngepush .ng-page .ngh-head a:hover { color: var(--ng-accent-2); }

.ngh-feature { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 14px; }
.ngh-side { display: grid; gap: 12px; }
.ngepush .ng-page a.ngh-card { color: var(--ng-text); }
.ngh-big {
	position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; min-height: 300px; padding: 26px; box-sizing: border-box;
	background: radial-gradient(500px 260px at 90% 10%, rgba(90, 169, 255, .28), transparent 70%), linear-gradient(160deg, #14264a, #0f1a33 70%);
	border: 1px solid #2a4170; border-radius: 20px; transition: border-color .15s, transform .15s;
}
.ngh-big:hover { border-color: var(--ng-accent); transform: translateY(-2px); }
.ngh-big-art { position: absolute; top: 20px; right: 22px; width: 46%; max-width: 240px; opacity: .95; pointer-events: none; }
.ngh-big h3 { margin: 6px 0 0; font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }
.ngepush .ng-page .ngh-big p { margin: 0; max-width: 30ch; font-size: 1.02rem; line-height: 1.55; color: #c3cde0; }
.ngh-open { align-self: flex-start; margin-top: 8px; padding: 9px 18px; font-size: .92rem; font-weight: 700; color: #06101f; background: var(--ng-accent-2); border-radius: 10px; }
.ngh-tile { flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; font-size: 1.1rem; font-weight: 800; letter-spacing: -.02em; color: #fff; border-radius: 12px; }
.ngh-big .ngh-tile { width: 56px; height: 56px; font-size: 1.5rem; border-radius: 15px; }
.ngh-t-blue { background: linear-gradient(135deg, #3b82f6, #22d3ee); }
.ngh-t-purple { background: linear-gradient(135deg, #8b5cf6, #6366f1); }
.ngh-t-green { background: linear-gradient(135deg, #10b981, #22c55e); }
.ngh-t-orange { background: linear-gradient(135deg, #f59e0b, #fb923c); }
.ngh-row {
	display: flex; align-items: center; gap: 16px; padding: 16px 18px;
	background: var(--ng-surface); border: 1px solid var(--ng-border); border-radius: 16px; transition: border-color .15s, transform .15s;
}
.ngh-row:hover { border-color: var(--ng-accent); transform: translateY(-2px); }
.ngh-row-text { flex: 1 1 auto; min-width: 0; }
.ngepush .ng-page .ngh-row h3 { margin: 0 0 3px; font-size: 1.05rem; font-weight: 700; }
.ngepush .ng-page .ngh-row p { margin: 0; font-size: .92rem; line-height: 1.45; color: var(--ng-muted); }
.ngh-chev { flex: 0 0 auto; display: grid; place-items: center; width: 32px; height: 32px; color: var(--ng-muted); border: 1px solid var(--ng-border); border-radius: 50%; }
.ngh-row:hover .ngh-chev { color: var(--ng-accent-2); border-color: var(--ng-accent-2); }

.ngh-tasks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ngh-task {
	position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 6px; min-height: 190px; padding: 22px; box-sizing: border-box;
	border: 1px solid var(--ng-border); border-radius: 18px; transition: border-color .15s, transform .15s;
}
.ngh-task.ngh-k-blue { background: radial-gradient(300px 160px at 100% 0%, rgba(90, 169, 255, .22), transparent 70%), var(--ng-surface); }
.ngh-task.ngh-k-green { background: radial-gradient(300px 160px at 100% 0%, rgba(52, 211, 153, .2), transparent 70%), var(--ng-surface); }
.ngh-task.ngh-k-purple { background: radial-gradient(300px 160px at 100% 0%, rgba(167, 139, 250, .22), transparent 70%), var(--ng-surface); }
a.ngh-task:hover { border-color: var(--ng-accent); transform: translateY(-2px); }
.ngh-task svg.ngh-ico { width: 34px; height: 34px; margin-bottom: 8px; }
.ngh-k-blue .ngh-ico { color: var(--ng-accent); }
.ngh-k-green .ngh-ico { color: var(--ng-green); }
.ngh-k-purple .ngh-ico { color: var(--ng-purple); }
.ngepush .ng-page .ngh-task h3 { margin: 0; font-size: 1.2rem; font-weight: 800; }
.ngepush .ng-page .ngh-task p { margin: 0; max-width: 28ch; font-size: .95rem; line-height: 1.5; color: var(--ng-muted); }
.ngh-task .ngh-chev { position: absolute; right: 18px; bottom: 18px; }
.ngh-soon { align-self: flex-start; margin-top: auto; padding: 3px 10px; font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ng-muted); border: 1px solid var(--ng-border); border-radius: 999px; }

.ngh-cta {
	display: flex; align-items: center; gap: 22px; padding: 22px 26px;
	background: radial-gradient(500px 160px at 0% 50%, rgba(34, 211, 238, .14), transparent 70%), var(--ng-surface);
	border: 1px solid var(--ng-border); border-radius: 18px;
}
.ngh-cta svg { flex: 0 0 auto; width: 56px; height: 56px; }
.ngh-cta-text { flex: 1 1 auto; min-width: 0; }
.ngepush .ng-page .ngh-cta h2 { margin: 0 0 4px; font-size: 1.3rem; font-weight: 800; }
.ngepush .ng-page .ngh-cta p { margin: 0; color: var(--ng-muted); font-size: 1rem; }

@media (max-width: 900px) {
	.ngh-hero { grid-template-columns: 1fr; padding-block: 40px 24px; }
	.ngh-art { display: none; }
	.ngh-feature { grid-template-columns: 1fr; }
	.ngh-tasks { grid-template-columns: 1fr; }
	.ngh-task { min-height: 0; }
	.ngh-big { min-height: 260px; }
}
@media (max-width: 640px) {
	.ngh-trust { grid-template-columns: 1fr; }
	.ngh-trust-item { justify-content: flex-start; padding-inline: 18px; }
	.ngh-trust-item + .ngh-trust-item { border-left: 0; border-top: 1px solid var(--ng-border); }
	.ngh-cta { flex-direction: column; align-items: flex-start; }
	.ngh-big-art { width: 30%; top: 16px; right: 16px; }
	.ngh-search .ng-kbd { display: none; }
}

/* ==========================================================================
   Header and footer (pasted into the Astra builders as HTML elements)
   ========================================================================== */

.ngepush .ng-hdr,
.ngepush .ng-hdr * { box-sizing: border-box; font-family: var(--ng-font); }
.ng-hdr { position: relative; display: flex; align-items: center; gap: 28px; width: 100%; max-width: 1100px; margin-inline: auto; padding: 0 20px; min-height: 64px; }
.ngepush .ng-hdr a { text-decoration: none; }
.ng-hdr-logo { display: flex; align-items: center; flex: 0 0 auto; }
.ng-hdr-logo svg { display: block; height: 34px; width: auto; }
.ng-hdr-nav { display: flex; align-items: center; gap: 6px; margin-right: auto; }
.ngepush .ng-hdr .ng-nav-link,
.ngepush .ng-hdr .ng-dd > summary {
	display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; list-style: none; cursor: pointer;
	font-size: .95rem; font-weight: 600; line-height: 1; color: var(--ng-text); background: transparent; border-radius: 10px;
}
.ngepush .ng-hdr .ng-dd > summary::-webkit-details-marker { display: none; }
.ngepush .ng-hdr .ng-dd > summary::after { content: ""; width: 7px; height: 7px; margin: -3px 0 0 2px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: .7; }
.ngepush .ng-hdr .ng-nav-link:hover,
.ngepush .ng-hdr .ng-dd:hover > summary,
.ngepush .ng-hdr .ng-dd[open] > summary { color: var(--ng-accent-2); background: rgba(34, 211, 238, .08); }
.ng-dd { position: relative; }
.ng-dd-panel {
	position: absolute; z-index: 60; top: calc(100% + 8px); left: 0; min-width: 290px; padding: 8px;
	background: #0f1626; border: 1px solid var(--ng-border); border-radius: 14px; box-shadow: 0 18px 44px rgba(0, 0, 0, .55);
}
.ng-dd-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.ngepush .ng-hdr .ng-dd-panel a {
	display: flex; align-items: center; gap: 12px; padding: 9px 10px; color: var(--ng-text); border-radius: 10px;
}
.ngepush .ng-hdr .ng-dd-panel a:hover { background: var(--ng-surface-2); color: var(--ng-text); }
.ng-dd-panel .ngh-tile { width: 34px; height: 34px; font-size: .85rem; border-radius: 9px; }
.ng-dd-txt { display: grid; gap: 2px; min-width: 0; }
.ng-dd-txt b { font-size: .95rem; font-weight: 700; line-height: 1.2; }
.ng-dd-txt small { font-size: .8rem; line-height: 1.3; color: var(--ng-muted); }
.ngepush .ng-hdr .ng-dd-panel a.ng-dd-all { justify-content: space-between; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--ng-border); border-radius: 0 0 10px 10px; font-size: .9rem; font-weight: 700; color: var(--ng-accent-2); }
.ng-hdr-search {
	display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; cursor: pointer;
	font-size: .9rem; font-weight: 600; line-height: 1; color: #9db0cf;
	background: rgba(18, 24, 38, .9); border: 1px solid var(--ng-border); border-radius: 12px;
}
.ng-hdr-search:hover { border-color: var(--ng-accent-2); color: var(--ng-text); }
.ng-hdr-search svg { width: 17px; height: 17px; color: var(--ng-accent-2); }
.ng-burger { display: none; }

@media (max-width: 860px) {
	.ng-hdr { gap: 12px; justify-content: space-between; }
	.ng-hdr-nav { display: none; }
	.ng-hdr-search { margin-left: auto; padding: 10px; }
	.ng-hdr-search span, .ng-hdr-search .ng-kbd { display: none; }
	.ng-burger { display: block; }
	.ngepush .ng-hdr .ng-burger > summary {
		display: grid; place-items: center; width: 42px; height: 42px; list-style: none; cursor: pointer; color: var(--ng-text);
		background: rgba(18, 24, 38, .9); border: 1px solid var(--ng-border); border-radius: 12px;
	}
	.ng-burger > summary::-webkit-details-marker { display: none; }
	.ng-burger > summary svg { width: 20px; height: 20px; }
	.ng-burger-panel {
		position: absolute; z-index: 60; top: calc(100% + 8px); right: 0; width: min(92vw, 340px); max-height: 80vh; overflow: auto; padding: 10px;
		background: #0f1626; border: 1px solid var(--ng-border); border-radius: 14px; box-shadow: 0 18px 44px rgba(0, 0, 0, .55);
	}
	.ng-burger-panel h4 { margin: 10px 10px 4px; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ng-muted); }
	.ngepush .ng-hdr .ng-burger-panel a { display: flex; align-items: center; gap: 12px; padding: 11px 10px; font-size: .98rem; font-weight: 600; color: var(--ng-text); border-radius: 10px; }
	.ngepush .ng-hdr .ng-burger-panel a:hover { background: var(--ng-surface-2); }
}

.ngepush .ng-ftr,
.ngepush .ng-ftr * { box-sizing: border-box; font-family: var(--ng-font); }
.ng-ftr { width: 100%; max-width: 1100px; margin-inline: auto; padding: 40px 20px 0; color: var(--ng-muted); }
.ng-ftr-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 32px; }
.ng-ftr-brand svg { display: block; height: 32px; width: auto; margin-bottom: 14px; }
.ngepush .ng-ftr p { margin: 0; max-width: 32ch; font-size: .95rem; line-height: 1.6; color: var(--ng-muted); }
.ngepush .ng-ftr h4 { margin: 0 0 14px; font-size: .95rem; font-weight: 800; color: var(--ng-text); }
.ng-ftr ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ngepush .ng-ftr a { font-size: .93rem; text-decoration: none; color: var(--ng-muted); }
.ngepush .ng-ftr a:hover { color: var(--ng-accent-2); }
.ng-ftr-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding: 18px 0 22px; border-top: 1px solid var(--ng-border); font-size: .88rem; }
.ng-ftr-bar span { color: var(--ng-muted); }
.ngepush .ng-ftr-bar a { display: inline-flex; align-items: center; gap: 8px; }
.ng-ftr-bar svg { width: 16px; height: 16px; color: var(--ng-accent-2); }
@media (max-width: 860px) { .ng-ftr-grid { grid-template-columns: 1fr 1fr; } .ng-ftr-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .ng-ftr-grid { grid-template-columns: 1fr; gap: 24px; } }

html { scroll-behavior: smooth; }
[id^="tools-"] { scroll-margin-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .ngh-card, .ngh-row, .ngh-task { transition: none; } }
.ngepush .ng-page .ng-eyebrow { color: var(--ng-accent-2); }
.ngepush .ng-page strong,
.ngepush .ng-page b,
.ngepush .ng-hdr b,
.ngepush .ng-hdr summary,
.ngepush .ng-ftr h4 { color: inherit; }
.ngepush .ng-page .ng-updated,
.ngepush .ng-page .ng-table-empty,
.ngepush .ng-hdr small { color: var(--ng-muted); }
.ngepush .ng-kbd { color: var(--ng-muted); }
.ngepush .ngh-tile { color: #fff; }
.ngepush .ng-page .ngh-open { color: #06101f; }
.ngepush .ng-page .ngh-search span { color: #9db0cf; }
.ngepush .ng-hdr .ng-hdr-search span { color: #9db0cf; }
.ngepush .ng-page .ngh-soon { color: var(--ng-muted); }
.ngepush .ng-page .ngh-trust-item { color: var(--ng-text); }
.ngepush .ng-hdr .ng-dd-panel b { color: var(--ng-text); }
.ngepush .ng-hdr .ng-dd-all span { color: inherit; }

/* ==========================================================================
   Single article
   ========================================================================== */

.ng-post-hero { padding-block: 44px 8px; }
.ngepush .ng-page a.ng-pill { display: inline-block; margin-bottom: 14px; padding: 5px 13px; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; color: #06101f; background: var(--ng-accent-2); border-radius: 999px; }
.ngepush .ng-page .ng-post-title { margin: 0 0 14px; max-width: 24ch; font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); font-weight: 800; line-height: 1.08; letter-spacing: -.03em; }
.ngepush .ng-page .ng-post-hero .ng-lead { max-width: 60ch; margin: 0 0 18px; }
.ng-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: .92rem; color: var(--ng-muted); }
.ng-avatar { display: grid; place-items: center; width: 32px; height: 32px; font-size: .85rem; font-weight: 800; color: #06101f; background: linear-gradient(135deg, var(--ng-accent), var(--ng-accent-2)); border-radius: 50%; }
.ngepush .ng-page .ng-author { font-weight: 700; color: var(--ng-text); }
.ng-dot { width: 4px; height: 4px; background: var(--ng-muted); border-radius: 50%; }
.ng-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.ng-share-label { margin-right: 2px; font-size: .85rem; font-weight: 700; color: var(--ng-muted); }
.ngepush .ng-page .ng-share-btn { padding: 6px 12px; font: inherit; font-size: .85rem; font-weight: 600; text-decoration: none; cursor: pointer; color: var(--ng-text); background: var(--ng-surface); border: 1px solid var(--ng-border); border-radius: 999px; }
.ngepush .ng-page .ng-share-btn:hover { border-color: var(--ng-accent-2); color: var(--ng-accent-2); }
.ng-share-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ng-post-cover { margin: 26px 0 0; overflow: hidden; border: 1px solid var(--ng-border); border-radius: 20px; }
.ng-post-cover img { display: block; width: 100%; height: auto; max-height: 460px; object-fit: cover; }

.ng-post-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 48px; align-items: start; padding-block: 28px 56px; }
.ng-post-body { min-width: 0; max-width: 740px; font-size: 1.15rem; line-height: 1.8; color: var(--ng-text); }
.ngepush .ng-page .ng-post-body p,
.ngepush .ng-page .ng-post-body li { max-width: none; font-size: 1.15rem; line-height: 1.8; color: var(--ng-text); }
.ngepush .ng-page .ng-post-body p { margin: 0 0 1.25em; }
.ngepush .ng-page .ng-post-body h2 { margin: 2.2em 0 .6em; font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); font-weight: 800; line-height: 1.2; letter-spacing: -.02em; scroll-margin-top: 90px; }
.ngepush .ng-page .ng-post-body h3 { margin: 1.8em 0 .5em; font-size: 1.3rem; font-weight: 700; line-height: 1.3; }
.ngepush .ng-page .ng-post-body a { color: var(--ng-accent); text-underline-offset: 3px; }
.ngepush .ng-page .ng-post-body a:hover { color: var(--ng-accent-2); }
.ngepush .ng-page .ng-post-body ul,
.ngepush .ng-page .ng-post-body ol { margin: 0 0 1.25em; padding-left: 1.4em; }
.ngepush .ng-page .ng-post-body li { margin-bottom: .5em; }
.ngepush .ng-page .ng-post-body strong { color: var(--ng-text); }
.ngepush .ng-page .ng-post-body blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--ng-accent-2); color: #c3cde0; font-style: italic; }
.ngepush .ng-page .ng-post-body blockquote p { color: #c3cde0; }
.ngepush .ng-page .ng-post-body code { padding: 2px 6px; font-family: var(--ng-mono); font-size: .9em; color: var(--ng-accent-2); background: var(--ng-surface); border: 1px solid var(--ng-border); border-radius: 6px; }
.ngepush .ng-page .ng-post-body pre { margin: 0 0 1.4em; padding: 16px 18px; overflow-x: auto; font-size: .92rem; line-height: 1.6; background: var(--ng-surface); border: 1px solid var(--ng-border); border-radius: 12px; }
.ngepush .ng-page .ng-post-body pre code { padding: 0; background: none; border: 0; color: var(--ng-text); }
.ng-post-body figure { margin: 1.8em 0; }
.ng-post-body figure img { display: block; max-width: 100%; height: auto; border: 1px solid var(--ng-border); border-radius: 14px; }
.ngepush .ng-page .ng-post-body figcaption { margin-top: 8px; font-size: .9rem; color: var(--ng-muted); text-align: center; }
.ng-post-body table { width: 100%; margin: 0 0 1.4em; border-collapse: collapse; font-size: 1rem; }
.ng-post-body th, .ng-post-body td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--ng-border); color: var(--ng-text); }
.ng-post-body th { color: var(--ng-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }

.ng-post-body.ng-numbered { counter-reset: ngsec; }
.ng-post-body.ng-numbered h2 { display: flex; align-items: center; gap: 14px; counter-increment: ngsec; }
.ng-post-body.ng-numbered h2::before { content: counter(ngsec); flex: 0 0 auto; display: grid; place-items: center; width: 36px; height: 36px; font-size: 1rem; font-weight: 800; color: #06101f; background: var(--ng-accent-2); border-radius: 50%; }

.ng-callout { margin: 1.8em 0; padding: 16px 20px; background: rgba(34, 211, 238, .07); border: 1px solid rgba(34, 211, 238, .28); border-radius: 14px; }
.ngepush .ng-page .ng-post-body .ng-callout p { margin: 0; font-size: 1.05rem; line-height: 1.65; }
.ngepush .ng-page .ng-post-body .ng-callout b { display: block; margin-bottom: 4px; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ng-accent-2); }
.ng-inline-tool { display: flex; align-items: center; gap: 16px; margin: 1.8em 0; padding: 16px 18px; text-decoration: none; background: var(--ng-surface); border: 1px solid var(--ng-border); border-radius: 16px; transition: border-color .15s; }
.ngepush .ng-page .ng-post-body a.ng-inline-tool { text-decoration: none; color: var(--ng-text); }
.ng-inline-tool:hover { border-color: var(--ng-accent); }
.ng-inline-tool .ng-dd-txt b { font-size: 1.02rem; }
.ng-inline-tool .ng-dd-txt small { font-size: .9rem; color: var(--ng-muted); }
.ng-inline-tool .ngh-chev { margin-left: auto; }

.ng-post-side { position: sticky; top: 90px; display: grid; gap: 16px; }
.ng-side-card { padding: 18px; background: var(--ng-surface); border: 1px solid var(--ng-border); border-radius: 16px; }
.ng-side-title { margin: 0 0 12px; font-size: 1rem; font-weight: 800; color: var(--ng-text); }
.ng-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: ngtoc; display: grid; gap: 4px; }
.ng-toc li { counter-increment: ngtoc; }
.ngepush .ng-page .ng-toc a { display: block; padding: 6px 8px; font-size: .93rem; line-height: 1.4; text-decoration: none; color: var(--ng-muted); border-radius: 8px; }
.ngepush .ng-page .ng-toc a::before { content: counter(ngtoc) ". "; color: var(--ng-accent-2); font-weight: 700; }
.ngepush .ng-page .ng-toc a:hover { color: var(--ng-text); background: var(--ng-surface-2); }
.ng-side-tools { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.ngepush .ng-page .ng-side-tools a { display: flex; align-items: center; gap: 12px; padding: 8px; text-decoration: none; color: var(--ng-text); border-radius: 10px; }
.ngepush .ng-page .ng-side-tools a:hover { background: var(--ng-surface-2); }
.ng-side-tools .ngh-tile { width: 36px; height: 36px; font-size: .85rem; border-radius: 10px; }
.ng-side-tools .ng-dd-txt b { font-size: .95rem; color: var(--ng-text); }
.ng-side-tools .ng-dd-txt small { font-size: .8rem; color: var(--ng-muted); }
.ng-side-cta { text-align: center; background: radial-gradient(260px 140px at 50% 0%, rgba(90, 169, 255, .22), transparent 70%), var(--ng-surface); }
.ng-side-cta svg { width: 46px; height: 46px; margin-bottom: 8px; }
.ngepush .ng-page .ng-side-cta p { margin: 0 0 12px; font-size: .92rem; line-height: 1.5; color: var(--ng-muted); }

.ng-post-body .ng-toc { display: none; margin: 0 0 2em; }
@media (max-width: 900px) {
	.ng-post-grid { grid-template-columns: 1fr; gap: 28px; }
	.ng-post-side { position: static; }
	.ng-post-side .ng-toc { display: none; }
	.ng-post-body .ng-toc { display: block; }
}

/* ==========================================================================
   404 page
   ========================================================================== */

.ng-404 { position: relative; overflow: hidden; text-align: center; padding: 64px 0 24px; background: radial-gradient(700px 360px at 50% 0%, rgba(34, 211, 238, .14), transparent 70%); }
.ng-404-art { display: block; width: min(100%, 360px); height: auto; margin: 0 auto 8px; }
.ngepush .ng-page .ng-404 h1 { margin: 0 0 12px; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.ngepush .ng-page .ng-404 p { max-width: 46ch; margin: 0 auto 24px; font-size: 1.1rem; line-height: 1.6; color: #b4bdd0; }
.ng-404 .ngh-search { margin: 0 auto 20px; }
.ng-404 .ng-cta { justify-content: center; }
.ng-404-tools { max-width: 900px; }
.ng-404-note { margin-top: 18px; }
.ngepush .ng-page .ng-inline-tool b,
.ngepush .ng-page .ng-side-tools b { color: var(--ng-text); }
.ngepush .ng-page .ng-inline-tool small,
.ngepush .ng-page .ng-side-tools small { color: var(--ng-muted); }
.ngepush .ng-page .ng-post-meta,
.ngepush .ng-page .ng-post-meta span,
.ngepush .ng-page .ng-post-meta time,
.ngepush .ng-page .ng-share-label { color: var(--ng-muted); }
.ngepush .ng-page .ng-post-meta .ng-author { color: var(--ng-text); }
.ngepush .ng-page .ng-post-meta .ng-avatar { color: #06101f; }
.ngepush .ng-page .ng-404-note { margin-top: 20px; }
.ng-404-tools .ngh-side { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) { .ng-404-tools .ngh-side { grid-template-columns: 1fr; } }
