/* Tech Success 3: SaaS-style tech magazine. Topic colour comes from --cat (set inline). */

:root {
	--bg: #ffffff;
	--bg-soft: #f5f7fb;
	--card: #ffffff;
	--ink: #0e1628;
	--ink-2: #424c60;
	--muted: #6b7588;
	--line: #e5e9f1;
	--navy: #142038;
	--night: #0b1222;
	--ts-amber: #ffb224;
	--link: #1d4ed8;
	--glass: rgba(255, 255, 255, 0.82);
	--lift: 0 18px 40px -18px rgba(14, 22, 40, 0.28);
	--r-lg: 18px;
	--r: 12px;
	--r-sm: 8px;
	--wrap: 1240px;
	--head: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
	--body: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--cat: var(--navy);
	color-scheme: light;
}
[data-theme="dark"] {
	--bg: #090e1a; --bg-soft: #0e1525; --card: #101829; --ink: #eef2f8; --ink-2: #bfc8d8; --muted: #8893a7;
	--line: #1e2940; --link: #8fb4ff; --glass: rgba(9, 14, 26, 0.8); --lift: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
	color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #090e1a; --bg-soft: #0e1525; --card: #101829; --ink: #eef2f8; --ink-2: #bfc8d8; --muted: #8893a7;
		--line: #1e2940; --link: #8fb4ff; --glass: rgba(9, 14, 26, 0.8); --lift: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
		color-scheme: dark;
	}
	:root:not([data-theme="light"]) .ns-i-sun { display: block; }
	:root:not([data-theme="light"]) .ns-i-moon { display: none; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
button { font: inherit; color: inherit; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.ns-skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: var(--r-sm); }
.ns-skip:focus { top: 12px; }
.ns-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .ns-wrap { padding: 0 16px; } }
.ns-main { min-height: 50vh; }

.ns-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 70; pointer-events: none; }
.ns-progress span { display: block; height: 100%; background: var(--cat); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Header ---------- */
.ns-masthead { position: sticky; top: 0; z-index: 50; background: var(--glass); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.ns-masthead.is-stuck { border-bottom-color: var(--line); }
.ns-masthead-top { display: flex; align-items: center; gap: 28px; height: 68px; }
.ns-brand { flex: 0 0 auto; }
.ns-brand .custom-logo-link img { max-height: 34px; width: auto; }
.ns-wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 800; font-size: 1.42rem; letter-spacing: -0.035em; line-height: 1; color: var(--ink); }
.ns-wordmark-dot { width: 13px; height: 13px; background: var(--ts-amber); transform: rotate(45deg); border-radius: 2px; flex: 0 0 auto; }

.ns-nav { flex: 1 1 auto; min-width: 0; }
.ns-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.ns-menu > li { position: relative; }
.ns-menu > li > a { display: block; padding: 8px 12px; border-radius: 999px; font-weight: 500; font-size: 0.94rem; color: var(--ink-2); white-space: nowrap; transition: background 0.15s, color 0.15s; }
.ns-menu > li > a:hover { background: var(--bg-soft); color: var(--ink); }
.ns-menu > li.current-menu-item > a, .ns-menu > li.current-category-ancestor > a, .ns-menu > li.current-post-ancestor > a { color: var(--ink); background: color-mix(in srgb, var(--cat) 12%, transparent); }
.ns-menu .sub-menu { list-style: none; margin: 0; padding: 8px; position: absolute; left: 0; top: calc(100% + 8px); min-width: 220px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--lift); display: none; }
.ns-menu li:hover > .sub-menu, .ns-menu li:focus-within > .sub-menu { display: block; }
.ns-menu .sub-menu a { display: block; padding: 8px 10px; border-radius: var(--r-sm); color: var(--ink-2); font-size: 0.93rem; }
.ns-menu .sub-menu a:hover { background: var(--bg-soft); }

.ns-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.ns-icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); cursor: pointer; }
.ns-icon-btn:hover { background: var(--bg-soft); }
.ns-search-toggle { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--muted); cursor: pointer; font-size: 0.9rem; min-width: 170px; }
.ns-search-toggle:hover { border-color: color-mix(in srgb, var(--ink) 25%, var(--line)); }
.ns-search-toggle kbd { margin-left: auto; font: 500 0.72rem var(--body); padding: 2px 7px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-soft); }
.ns-menu-toggle { display: none; }
.ns-i-sun { display: none; }
[data-theme="dark"] .ns-i-sun { display: block; }
[data-theme="dark"] .ns-i-moon { display: none; }

@media (max-width: 1180px) { .ns-search-toggle { min-width: 0; padding: 0 11px; } .ns-search-toggle-text, .ns-search-toggle kbd { display: none; } .ns-masthead-top { gap: 16px; } }
@media (max-width: 980px) {
	.ns-menu-toggle { display: inline-grid; }
	.ns-masthead-top { height: 60px; gap: 12px; }
	.ns-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; box-shadow: var(--lift); }
	.ns-nav.is-open { display: block; }
	.ns-menu { flex-direction: column; gap: 2px; }
	.ns-menu > li > a { border-radius: var(--r-sm); padding: 11px 12px; font-size: 1rem; }
	.ns-menu .sub-menu { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 4px 14px; background: transparent; }
}

/* ---------- Search dialog + forms ---------- */
.ns-search-panel { position: fixed; inset: 0; z-index: 80; background: rgba(8, 12, 24, 0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); padding: 14vh 16px 0; }
.ns-search-panel[hidden] { display: none; }
.ns-search-box { max-width: 640px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.5); }
.ns-search-topics { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 4px 4px; }
.ns-search-topics > span { width: 100%; color: var(--muted); font-size: 0.82rem; }
.ns-searchform { display: flex; gap: 8px; }
.ns-searchform input[type="search"] { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; }
.ns-searchform input[type="search"]:focus { outline: 0; border-color: var(--link); box-shadow: 0 0 0 4px color-mix(in srgb, var(--link) 18%, transparent); }
.ns-searchform button, .ns-btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 22px; border-radius: var(--r); border: 0; background: var(--navy); color: #fff; font-weight: 600; cursor: pointer; }
.ns-searchform button:hover, .ns-btn:hover { background: #20305a; }
[data-theme="dark"] .ns-searchform button, [data-theme="dark"] .ns-btn { background: var(--ts-amber); color: var(--night); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ns-searchform button, :root:not([data-theme="light"]) .ns-btn { background: var(--ts-amber); color: var(--night); } }

/* ---------- Chips, labels, meta ---------- */
.ns-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 0.88rem; font-weight: 500; color: var(--ink-2); transition: border-color 0.15s, color 0.15s, transform 0.15s; }
.ns-chip svg { color: var(--cat); }
.ns-chip:hover { border-color: var(--cat); color: var(--ink); transform: translateY(-1px); }
.ns-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.ns-cat { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-weight: 600; font-size: 0.76rem; color: color-mix(in srgb, var(--cat) 78%, var(--ink)); background: color-mix(in srgb, var(--cat) 12%, transparent); }
.ns-cat:hover { background: color-mix(in srgb, var(--cat) 20%, transparent); }
.ns-label { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 0.74rem; font-weight: 500; border: 1px solid var(--line); color: var(--muted); }
.ns-label-sponsored { border-color: color-mix(in srgb, var(--ts-amber) 60%, var(--line)); color: color-mix(in srgb, var(--ts-amber) 55%, var(--ink)); }
.ns-byline { display: flex; flex-wrap: wrap; gap: 2px 14px; color: var(--muted); font-size: 0.86rem; }
.ns-byline a { color: var(--ink); font-weight: 600; }
.ns-topic-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; flex: 0 0 auto; color: color-mix(in srgb, var(--cat) 80%, var(--ink)); background: color-mix(in srgb, var(--cat) 13%, transparent); }

/* ---------- Generated cover (no featured image) ---------- */
.ns-card-media { display: block; overflow: hidden; border-radius: var(--r); }
.ns-card-media img, .ns-tile { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; transition: transform 0.35s ease; }
.ns-card:hover .ns-card-media img, .ns-card:hover .ns-tile { transform: scale(1.035); }
.ns-tile {
	position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 7%; color: #fff; overflow: hidden;
	background:
		radial-gradient(60% 90% at var(--gx, 80%) var(--gy, 10%), color-mix(in srgb, var(--cat) 85%, #fff 0%) 0%, transparent 70%),
		radial-gradient(50% 70% at 0% 110%, color-mix(in srgb, var(--cat) 45%, transparent) 0%, transparent 70%),
		var(--night);
}
.ns-tile::before {
	content: ""; position: absolute; inset: 0; opacity: 0.5;
	background-image: linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
	background-size: 32px 32px;
	-webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.ns-tile-icon { position: relative; display: grid; place-items: center; width: clamp(34px, 16%, 56px); aspect-ratio: 1; border-radius: 26%; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.22); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ns-tile-icon svg { width: 56%; height: 56%; }
.ns-tile-name { position: relative; font-family: var(--head); font-weight: 700; font-size: clamp(1rem, 1.6vw, 1.3rem); letter-spacing: -0.02em; line-height: 1; }

/* ---------- Cards ---------- */
.ns-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.ns-card:hover { transform: translateY(-3px); box-shadow: var(--lift); border-color: color-mix(in srgb, var(--ink) 16%, var(--line)); }
.ns-card-body { padding: 16px 10px 10px; display: flex; flex-direction: column; flex: 1; }
.ns-card-title { font-size: 1.14rem; font-weight: 700; line-height: 1.25; }
.ns-card-title a::after { content: ""; position: absolute; inset: 0; }
.ns-card { position: relative; }
.ns-card .ns-kicker, .ns-card .ns-byline { position: relative; z-index: 1; }
.ns-card-dek { margin: 8px 0 0; color: var(--ink-2); font-size: 0.94rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ns-card-meta { margin: auto 0 0; padding-top: 14px; display: flex; gap: 12px; color: var(--muted); font-size: 0.82rem; }
.ns-card-meta span::before { content: "·"; margin-right: 12px; }

.ns-grid { display: grid; gap: 22px; }
.ns-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ns-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ns-grid-4 .ns-card-dek { display: none; }
.ns-grid-4 .ns-card-title { font-size: 1.04rem; }
@media (max-width: 1080px) { .ns-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ns-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ns-grid-3, .ns-grid-4 { grid-template-columns: 1fr; } }

/* ---------- Hero ---------- */
.ns-hero { position: relative; margin-top: -68px; padding: 132px 0 56px; overflow: hidden; text-align: center; }
.ns-hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		radial-gradient(42% 60% at 18% 0%, color-mix(in srgb, #2563eb 16%, transparent), transparent 70%),
		radial-gradient(38% 55% at 85% 5%, color-mix(in srgb, var(--ts-amber) 22%, transparent), transparent 70%),
		radial-gradient(40% 50% at 55% 0%, color-mix(in srgb, #7c3aed 10%, transparent), transparent 70%),
		var(--bg);
}
.ns-hero::after {
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.6;
	background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
	background-size: 56px 56px;
	-webkit-mask-image: radial-gradient(70% 70% at 50% 0%, #000, transparent 75%); mask-image: radial-gradient(70% 70% at 50% 0%, #000, transparent 75%);
}
.ns-hero-inner { max-width: 860px; }
.ns-hero-title { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; text-wrap: balance; }
.ns-hero-text { margin: 18px auto 28px; max-width: 56ch; font-size: 1.14rem; color: var(--ink-2); text-wrap: balance; }
.ns-hero .ns-searchform { max-width: 560px; margin: 0 auto; padding: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--lift); }
.ns-hero .ns-searchform input[type="search"] { border: 0; background: transparent; box-shadow: none; }
.ns-hero .ns-searchform button { border-radius: 11px; }
.ns-hero-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 26px; }
@media (max-width: 980px) { .ns-hero { margin-top: -60px; padding: 104px 0 40px; } }

/* ---------- Featured bento ---------- */
.ns-featured { padding-top: 8px; padding-bottom: 8px; }
.ns-bento { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
.ns-card-lead { grid-row: span 2; }
.ns-card-lead .ns-card-title { font-size: clamp(1.5rem, 2.4vw, 2.05rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.ns-card-lead .ns-card-dek { font-size: 1.02rem; -webkit-line-clamp: 3; margin-bottom: 16px; }
.ns-card-lead .ns-byline { margin-top: auto; }
.ns-card-lead .ns-card-body { padding: 20px 14px 14px; }
.ns-card-lead .ns-tile-name { font-size: clamp(1.3rem, 2.4vw, 1.9rem); }
.ns-card-mini .ns-card-title { font-size: 1.02rem; }
.ns-card-mini .ns-card-body { padding-top: 14px; }
@media (max-width: 1080px) { .ns-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ns-card-lead { grid-column: 1 / -1; grid-row: auto; } }
@media (max-width: 600px) { .ns-bento { grid-template-columns: 1fr; } }

/* ---------- Popular strip ---------- */
.ns-popular { margin-top: 56px; padding: 44px 0 48px; background: var(--bg-soft); border-block: 1px solid var(--line); }
.ns-popular-list { list-style: none; counter-reset: pop; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
.ns-popular-list li { counter-increment: pop; }
.ns-popular-list li::before { content: "0" counter(pop); display: block; font-family: var(--head); font-weight: 800; font-size: 1.9rem; letter-spacing: -0.04em; line-height: 1; margin-bottom: 12px; color: transparent; -webkit-text-stroke: 1.2px color-mix(in srgb, var(--cat) 75%, var(--ink)); }
.ns-popular-list a { display: block; font-weight: 600; line-height: 1.3; }
.ns-popular-list a:hover { color: color-mix(in srgb, var(--cat) 70%, var(--ink)); }
.ns-popular-cat { display: block; font-size: 0.78rem; font-weight: 500; color: var(--muted); margin-bottom: 4px; }
@media (max-width: 980px) { .ns-popular-list { grid-template-columns: 1fr; gap: 0; } .ns-popular-list li { display: grid; grid-template-columns: 52px 1fr; align-items: start; padding: 14px 0; border-top: 1px solid var(--line); } .ns-popular-list li:first-child { border-top: 0; } .ns-popular-list li::before { margin: 0; font-size: 1.5rem; } }

/* ---------- Sections ---------- */
.ns-section { padding-top: 56px; }
.ns-section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.ns-section-title { font-size: 1.55rem; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 22px; }
.ns-section-head .ns-section-title { margin: 0; display: flex; align-items: center; gap: 12px; }
.ns-more { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); font-weight: 500; font-size: 0.88rem; color: var(--ink-2); white-space: nowrap; background: var(--card); }
.ns-more:hover { border-color: var(--cat); color: var(--ink); }
.ns-empty { color: var(--muted); padding: 40px; text-align: center; border: 1px dashed var(--line); border-radius: var(--r-lg); }

.ns-topic-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.ns-topic-grid a { position: relative; display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 22px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--card); overflow: hidden; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.ns-topic-grid a::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 100% 0%, color-mix(in srgb, var(--cat) 14%, transparent), transparent 70%); }
.ns-topic-grid a > * { position: relative; }
.ns-topic-grid a:hover { transform: translateY(-3px); box-shadow: var(--lift); border-color: color-mix(in srgb, var(--cat) 55%, var(--line)); }
.ns-topic-name { font-family: var(--head); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; margin-top: 8px; }
.ns-topic-desc { color: var(--ink-2); font-size: 0.93rem; line-height: 1.5; }
.ns-topic-go { margin-top: auto; padding-top: 10px; font-weight: 600; font-size: 0.88rem; color: color-mix(in srgb, var(--cat) 80%, var(--ink)); }

.ns-pagination { margin-top: 36px; }
.ns-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.ns-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); font-weight: 500; }
.ns-pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.ns-pagination a.page-numbers:hover { border-color: var(--ink); }

/* ---------- Archive header ---------- */
.ns-archive-head { position: relative; padding: 44px 0 40px; border-bottom: 1px solid var(--line); overflow: hidden; }
.ns-archive-head.is-cat::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(45% 120% at 90% 0%, color-mix(in srgb, var(--cat) 16%, transparent), transparent 70%), radial-gradient(30% 90% at 0% 0%, color-mix(in srgb, var(--cat) 7%, transparent), transparent 70%); }
.ns-archive-title { display: flex; align-items: center; gap: 16px; font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 800; letter-spacing: -0.035em; margin-top: 14px; }
.ns-archive-title .ns-topic-icon { width: 56px; height: 56px; border-radius: 16px; }
.ns-archive-desc { color: var(--ink-2); font-size: 1.1rem; max-width: 64ch; margin-top: 12px; }
.ns-archive-desc p { margin: 0 0 8px; }
.ns-archive-head .ns-searchform { margin-top: 20px; max-width: 560px; }
.ns-subcats { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ns-subcats a { display: inline-block; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-weight: 500; font-size: 0.9rem; }
.ns-subcats a:hover { border-color: var(--cat); }
.ns-breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.85rem; color: var(--muted); }
.ns-breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.ns-breadcrumbs a:hover { color: var(--ink); }
.ns-breadcrumbs [aria-current] { display: inline-block; max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }

/* ---------- Article ---------- */
.ns-article-head { position: relative; padding-top: 36px; padding-bottom: 28px; max-width: 900px; text-align: center; }
.ns-article-head .ns-breadcrumbs ol, .ns-article-head .ns-kicker { justify-content: center; }
.ns-article-head .ns-kicker { margin: 26px 0 14px; }
.ns-article-head .ns-cat { font-size: 0.84rem; padding: 5px 13px; }
.ns-article-title { font-size: clamp(2.1rem, 4.8vw, 3.4rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.04; text-wrap: balance; }
.ns-article-dek { font-size: 1.2rem; line-height: 1.5; color: var(--ink-2); margin: 18px auto 0; max-width: 60ch; text-wrap: balance; }
.ns-article-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 16px; margin-top: 26px; }
.ns-meta-avatar { border-radius: 50%; }
.ns-share { display: flex; flex-wrap: wrap; gap: 6px; padding-left: 16px; border-left: 1px solid var(--line); }
.ns-share-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); font-size: 0.82rem; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.ns-share-btn:hover { border-color: var(--ink); color: var(--ink); }
@media (max-width: 640px) { .ns-share { padding-left: 0; border-left: 0; width: 100%; justify-content: center; } }
.ns-article-hero { margin: 8px auto 0; max-width: 1080px; }
.ns-article-hero img { width: 100%; border-radius: 22px; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); }
.ns-article-hero figcaption { color: var(--muted); font-size: 0.85rem; margin-top: 10px; text-align: center; }

.ns-article-grid { display: grid; grid-template-columns: 250px minmax(0, 720px); justify-content: center; gap: 64px; padding-top: 44px; padding-bottom: 56px; }
.ns-sticky { position: sticky; top: 92px; }
.ns-toc { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 16px; background: var(--card); }
.ns-toc-title { font-size: 0.86rem; font-weight: 700; margin: 0 0 10px 10px; color: var(--muted); font-family: var(--body); letter-spacing: 0; }
.ns-toc ol { list-style: none; margin: 0; padding: 0; }
.ns-toc li a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--ink-2); font-size: 0.9rem; line-height: 1.35; }
.ns-toc li a:hover { background: var(--bg-soft); color: var(--ink); }
.ns-toc li a.is-active { color: color-mix(in srgb, var(--cat) 75%, var(--ink)); font-weight: 600; background: color-mix(in srgb, var(--cat) 10%, transparent); }
@media (max-width: 1080px) { .ns-article-grid { grid-template-columns: minmax(0, 720px); gap: 24px; padding-top: 28px; } .ns-sticky { position: static; } }

.ns-disclosure { margin: 0 0 26px; padding: 12px 16px; border-radius: var(--r); background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink-2); font-size: 0.92rem; }
.ns-prose { font-size: 1.1rem; line-height: 1.75; color: var(--ink); }
.ns-prose > * { margin-top: 0; margin-bottom: 1.2em; }
.ns-prose > p:first-of-type { font-size: 1.2rem; color: var(--ink-2); }
.ns-prose h2 { font-size: 1.8rem; font-weight: 800; margin: 2em 0 0.6em; letter-spacing: -0.03em; }
.ns-prose h3 { font-size: 1.32rem; font-weight: 700; margin: 1.7em 0 0.5em; }
.ns-prose h4 { font-size: 1.1rem; font-weight: 700; margin: 1.4em 0 0.4em; }
.ns-prose a { color: var(--link); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--link) 40%, transparent); text-underline-offset: 3px; }
.ns-prose a:hover { text-decoration-color: currentColor; }
.ns-prose ul, .ns-prose ol { padding-left: 1.3em; }
.ns-prose li { margin-bottom: 0.45em; }
.ns-prose li::marker { color: color-mix(in srgb, var(--cat) 70%, var(--muted)); font-weight: 600; }
.ns-prose strong { font-weight: 650; }
.ns-prose blockquote { margin-left: 0; margin-right: 0; padding: 18px 22px; border-radius: var(--r); border: 1px solid color-mix(in srgb, var(--cat) 25%, var(--line)); background: color-mix(in srgb, var(--cat) 6%, var(--card)); color: var(--ink); }
.ns-prose blockquote p { margin: 0; }
.ns-prose img { border-radius: var(--r); }
.ns-prose figcaption { color: var(--muted); font-size: 0.85rem; margin-top: 8px; }
.ns-prose code { font-size: 0.88em; background: var(--bg-soft); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
.ns-prose pre { background: var(--night); color: #e7ecf6; padding: 20px; border-radius: var(--r); overflow-x: auto; font-size: 0.9rem; line-height: 1.6; border: 1px solid #1e2940; }
.ns-prose pre code { background: none; border: 0; padding: 0; }
.ns-prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }
.ns-prose .wp-block-table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.ns-prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.ns-prose th, .ns-prose td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.ns-prose tbody tr:last-child td { border-bottom: 0; }
.ns-prose thead th { background: var(--bg-soft); font-weight: 600; font-size: 0.86rem; color: var(--ink-2); }
@media (max-width: 640px) { .ns-prose { font-size: 1.04rem; } .ns-prose h2 { font-size: 1.5rem; } .ns-prose table { white-space: nowrap; } }
.ns-prose details, .ns-prose .rank-math-list-item, .ns-prose .schema-faq-section { border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; margin: 0 0 10px; background: var(--card); }
.ns-prose details[open] { border-color: color-mix(in srgb, var(--cat) 35%, var(--line)); }
.ns-prose summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 1.04rem; display: flex; justify-content: space-between; gap: 16px; }
.ns-prose summary::-webkit-details-marker { display: none; }
.ns-prose summary::after { content: "+"; font-weight: 400; color: var(--muted); font-size: 1.3rem; line-height: 1; }
.ns-prose details[open] summary::after { content: "\2013"; }
.ns-prose details > *:not(summary) { margin: 10px 0 0; color: var(--ink-2); }
.ns-prose .wp-block-embed iframe, .ns-prose iframe[src*="youtube"] { width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: var(--r); }
.ns-prose .wp-block-button__link { background: var(--navy); color: #fff; text-decoration: none; border-radius: var(--r); font-weight: 600; }

.ns-page-links { margin: 20px 0; font-weight: 600; }
.ns-tags { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ns-tags a { display: inline-block; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 0.85rem; font-weight: 500; }
.ns-author { display: flex; gap: 18px; margin-top: 44px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-soft); }
.ns-author-avatar { border-radius: 50%; flex: 0 0 auto; }
.ns-author-name { margin: 0 0 4px; font-weight: 700; }
.ns-author-bio { margin: 0; color: var(--ink-2); font-size: 0.95rem; }
.ns-related { padding-top: 48px; margin-top: 8px; border-top: 1px solid var(--line); max-width: none; }
.ns-page .ns-article-head { padding-bottom: 8px; }
.ns-page-prose { max-width: 720px; margin: 0 auto; padding: 24px 0 64px; }

/* ---------- Comments ---------- */
.ns-comments-wrap { max-width: 768px; padding-top: 48px; }
.ns-comment-list { list-style: none; padding: 0; margin: 0 0 32px; }
.ns-comment-list .comment-body { padding: 16px 0; border-top: 1px solid var(--line); }
.ns-comment-list .children { list-style: none; padding-left: 28px; }
.ns-comment-list .avatar { border-radius: 50%; float: left; margin-right: 12px; }
.ns-comment-list .comment-meta { font-size: 0.86rem; color: var(--muted); }
.comment-form label { display: block; font-weight: 600; margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); color: var(--ink); font: inherit; }

/* ---------- 404 ---------- */
.ns-404 { padding: 88px 24px 40px; max-width: 720px; text-align: center; }
.ns-404-code { font-family: var(--head); font-size: clamp(5rem, 16vw, 10rem); font-weight: 800; letter-spacing: -0.06em; line-height: 0.9; margin: 0; color: transparent; -webkit-text-stroke: 2px var(--ts-amber); }
.ns-404 h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; margin: 16px 0 10px; }
.ns-404 p { color: var(--ink-2); }
.ns-404 .ns-searchform { margin: 24px auto; max-width: 520px; }

/* ---------- Footer ---------- */
.ns-cta { margin-top: 72px; }
.ns-cta-box { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 36px 40px; border-radius: 24px; background: radial-gradient(50% 120% at 100% 0%, rgba(255, 178, 36, 0.35), transparent 70%), radial-gradient(40% 120% at 0% 100%, rgba(37, 99, 235, 0.45), transparent 70%), var(--night); color: #fff; }
.ns-cta-box h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; }
.ns-cta-box p { margin: 8px 0 0; color: #c6cfdf; }
.ns-cta-box .ns-btn { background: var(--ts-amber); color: var(--night); }
.ns-footer { margin-top: 72px; padding: 56px 0 28px; background: var(--bg-soft); border-top: 1px solid var(--line); color: var(--ink-2); }
.ns-footer-top { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr); gap: 48px; }
.ns-footer-desc { margin: 16px 0 0; max-width: 38ch; line-height: 1.6; font-size: 0.95rem; }
.ns-footer-widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 32px; }
.footer-widget-title { font-family: var(--body); font-size: 0.84rem; font-weight: 600; letter-spacing: 0; color: var(--muted); margin: 0 0 14px; }
.ns-footer-list, .ns-footer .widget ul { list-style: none; margin: 0; padding: 0; }
.ns-footer-list li, .ns-footer .widget li { padding: 5px 0; font-size: 0.95rem; }
.ns-footer-list a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.ns-footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 0.85rem; }
.ns-copy { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .ns-footer-top { grid-template-columns: 1fr; gap: 32px; } .ns-cta-box { padding: 28px 24px; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } .ns-card:hover, .ns-chip:hover, .ns-topic-grid a:hover { transform: none; } .ns-card:hover .ns-tile, .ns-card:hover .ns-card-media img { transform: none; } }
