:root {
	--nj-brand: #a31700;
	--nj-brand-dark: #8c1400;
	--nj-brand-soft: #f8e8e6;
	--nj-brand-softer: #fdf6f5;
	--nj-text: #171717;
	--nj-muted: #6f6f6f;
	--nj-line: #ececec;
	--nj-bg: #ffffff;
	--nj-radius: 20px;
	--nj-radius-sm: 12px;
	--nj-shadow: 0 8px 24px rgba(23, 23, 23, 0.04);
	--nj-font: "Noto Sans HK", "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	font-size: 16px;
}

body {
	margin: 0;
	color: var(--nj-text);
	background: var(--nj-bg);
	font-family: var(--nj-font);
	font-weight: 400;
	line-height: 1.65;
	letter-spacing: 0.01em;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--nj-brand);
	text-decoration: none;
}

a:hover {
	color: var(--nj-brand-dark);
}

.site-wrap {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--nj-line);
}

.site-header-inner,
.site-container {
	width: min(1120px, calc(100% - 40px));
	margin: 0 auto;
}

.site-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 76px;
}

.site-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--nj-brand);
	font-weight: 700;
	font-size: 1.15rem;
	letter-spacing: 0;
	flex-shrink: 0;
}

.site-logo:hover {
	color: var(--nj-brand);
	opacity: 0.88;
}

.site-logo-mark {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: var(--nj-brand);
	color: #fff;
	font-size: 1.05rem;
	font-weight: 700;
}

.site-nav-wrap {
	align-self: stretch;
	display: flex;
}

.site-nav {
	display: flex;
	align-items: stretch;
	gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav > li {
	display: flex;
	align-items: center;
}

.site-nav a {
	color: #4a4a4a;
	font-size: 0.95rem;
	font-weight: 500;
}

.site-nav a:hover,
.site-nav .selected > a,
.site-nav .ancestor > a,
.site-nav .active > a {
	color: var(--nj-brand);
	font-weight: 700;
}

.site-nav a i {
	margin-left: 4px;
	font-size: 0.82em;
	color: var(--nj-brand);
}

.site-nav .has-sub {
	position: relative;
}

.site-nav .has-sub > a .site-nav-caret {
	font-size: 0.62em;
	margin-left: 5px;
	color: currentColor;
	transition: transform 0.15s ease;
	position: relative;
	top: -1px;
}

.site-nav .has-sub:hover > a .site-nav-caret,
.site-nav .has-sub:focus-within > a .site-nav-caret {
	transform: rotate(180deg);
}

.site-nav .has-sub > ul {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 50;
	min-width: 220px;
	margin: 0;
	padding: 8px 0;
	list-style: none;
	background: #fff;
	border: 1px solid var(--nj-line);
	border-radius: 12px;
	box-shadow: var(--nj-shadow);
}

.site-nav .has-sub > ul::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 100%;
	height: 12px;
}

.site-nav .has-sub:hover > ul,
.site-nav .has-sub:focus-within > ul {
	display: block;
}

.site-nav .has-sub > ul a {
	display: block;
	padding: 8px 16px;
	font-weight: 500;
	color: #4a4a4a;
}

.site-nav .has-sub > ul .active > a,
.site-nav .has-sub > ul a:hover {
	color: var(--nj-brand);
	font-weight: 700;
}

.site-toggler {
	display: none;
	border: 0;
	background: transparent;
	padding: 8px;
	cursor: pointer;
}

.site-toggler span {
	display: block;
	width: 20px;
	height: 2px;
	margin: 4px 0;
	background: var(--nj-text);
}

.site-main {
	flex: 1;
	padding: 28px 0 72px;
}

.page-kicker,
.hero-kicker,
.section-kicker {
	color: var(--nj-muted);
	font-size: 0.92rem;
	margin: 0 0 12px;
}

.page-hero {
	padding: 12px 0 8px;
}

.page-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 28px;
	padding: 0;
	list-style: none;
	color: var(--nj-muted);
	font-size: 0.84rem;
}

.page-breadcrumb li:not(:last-child)::after {
	content: "/";
	margin-left: 8px;
	color: #c8c8c8;
}

.page-breadcrumb a {
	color: var(--nj-muted);
}

.page-breadcrumb .active {
	color: var(--nj-muted);
}

.page-title {
	margin: 0 0 12px;
	font-size: clamp(2rem, 4vw, 3.1rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.15;
}

.page-title:empty {
	display: none;
}

.page-lead {
	max-width: 40rem;
	margin: 0 0 10px;
	color: #444;
	font-size: 1.05rem;
}

.page-meta {
	margin: 0 0 32px;
	color: var(--nj-muted);
	font-size: 0.88rem;
}

.resource-grid,
.step-grid,
.cta-grid {
	display: grid;
	gap: 20px;
}

.resource-grid {
	grid-template-columns: 1fr 1fr 1.15fr;
	margin: 8px 0 24px;
	gap: 10px;
}

.nj-card {
	border: 1px solid var(--nj-line);
	border-radius: var(--nj-radius);
	background: #fff;
	box-shadow: var(--nj-shadow);
}

.resource-card {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	min-height: 44px;
	color: var(--nj-text);
}

a.resource-card,
.resource-main {
	color: var(--nj-text);
}

a.resource-card:hover,
.resource-card:hover {
	border-color: #f0d7d3;
	background: var(--nj-brand-softer);
}

.resource-split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: stretch;
	padding: 0;
	overflow: hidden;
	gap: 0;
}

.resource-split:hover {
	background: #fff;
	border-color: var(--nj-line);
}

.resource-split .resource-main,
.resource-split .resource-fill {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	min-height: 44px;
	padding: 8px 12px;
	color: var(--nj-text);
}

.resource-split .resource-main:hover {
	background: var(--nj-brand-softer);
}

.resource-split .resource-fill {
	align-self: stretch;
	height: 100%;
	flex: 0 0 auto;
	padding-left: 10px;
	padding-right: 10px;
	background: var(--nj-brand-soft);
	border-left: 1px solid #f0d7d3;
	white-space: nowrap;
}

.resource-split .resource-fill:hover {
	background: #f0d7d3;
}

.resource-main {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1 1 auto;
	min-width: 0;
}

.resource-icon {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	flex-shrink: 0;
	border-radius: 8px;
	background: var(--nj-brand-soft);
	color: var(--nj-brand);
	font-size: 0.82rem;
}

.resource-label,
.resource-follow-title {
	margin: 0;
	color: var(--nj-brand);
	font-size: 0.92rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.resource-follow {
	gap: 10px;
}

.resource-follow-title {
	flex-shrink: 0;
}

.resource-social {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px;
}

.resource-social a {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--nj-text);
	font-size: 0.8rem;
	font-weight: 600;
}

.resource-social a:hover {
	color: var(--nj-brand);
}

.quick-card h2,
.step-card h3,
.cta-block h2 {
	margin: 0 0 6px;
	color: var(--nj-brand);
	font-size: 1.55rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.resource-card p,
.step-card p,
.cta-block p {
	margin: 0 0 14px;
	color: var(--nj-muted);
}

.btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.btn-brand,
.btn-ghost,
.btn-text {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.92rem;
	line-height: 1;
	transition: 0.15s ease;
}

.btn-brand,
.btn-ghost {
	padding: 11px 16px;
	border: 1px solid transparent;
}

.btn-brand {
	background: var(--nj-brand);
	color: #fff;
}

.btn-brand:hover {
	background: var(--nj-brand-dark);
	color: #fff;
}

.btn-ghost {
	background: #fff;
	color: var(--nj-text);
	border-color: #e4e4e4;
}

.btn-ghost:hover {
	color: var(--nj-text);
	border-color: #cfcfcf;
	background: #fafafa;
}

.btn-text {
	padding: 0;
	color: var(--nj-brand);
}

.article-layout {
	display: grid;
	grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
	gap: 48px;
	align-items: start;
}

.article-layout > .toc {
	grid-column: 1;
	min-width: 0;
}

.article-layout > .article-body {
	grid-column: 2;
	min-width: 0;
}

.article-layout.is-single {
	grid-template-columns: minmax(0, 1fr);
}

.article-layout.is-single > .toc,
.article-layout.is-single > .article-body {
	grid-column: 1;
}

.article-layout.is-single > .toc {
	position: static;
}

.article-layout.is-single > .toc:not(:has(.guide-nav)) {
	display: none;
}

.toc {
	position: sticky;
	top: 96px;
	padding-top: 8px;
	overflow-wrap: anywhere;
}

.toc-mobile-toggle {
	display: none;
}

.toc-title {
	margin: 0 0 16px;
	color: var(--nj-muted);
	font-size: 0.82rem;
	font-weight: 500;
}

.guide-nav {
	margin-bottom: 28px;
}

.guide-nav .toc-list {
	border-bottom: 0;
}

.guide-nav .active > a {
	color: var(--nj-brand);
	font-weight: 700;
}

.toc-list {
	margin: 0;
	padding: 0;
	list-style: none;
	border-bottom: 1px solid var(--nj-line);
}

.toc-list a {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	min-width: 0;
	padding: 7px 0;
	color: #555;
	font-size: 0.92rem;
}

.toc-list a span {
	min-width: 0;
	overflow-wrap: anywhere;
}

.toc-list a:hover,
.toc-list a.is-active,
.toc-list .active > a {
	color: var(--nj-text);
	font-weight: 700;
}

.toc-index {
	color: var(--nj-muted);
	min-width: 1.4em;
}

.toc-cta {
	display: block;
	margin-top: 22px;
	color: var(--nj-muted);
	font-size: 0.92rem;
}

.toc-cta strong {
	display: block;
	margin-bottom: 4px;
	color: var(--nj-text);
	font-weight: 600;
}

.article-body,
.cms-content {
	min-width: 0;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.article-body {
	font-size: 1.02rem;
}

.article-body img,
.cms-content img {
	max-width: 100%;
	height: auto;
}

.article-body pre,
.article-body code,
.cms-content pre,
.cms-content code {
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.article-body h2,
.article-body h3 {
	margin: 2.1em 0 0.55em;
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.25;
}

.article-body h2 {
	font-size: 1.7rem;
}

.article-body p,
.article-body li {
	color: #333;
}

.article-body a {
	border-bottom: 1px solid rgba(163, 23, 0, 0.25);
}

.article-body ul,
.article-body ol {
	padding-left: 1.2em;
}

.article-body hr,
.article-body .section-rule {
	border: 0;
	border-top: 1px solid var(--nj-line);
	margin: 2.4em 0;
}

.hero-row {
	margin: 0 0 20px;
}

.hero-copy {
	padding: 4px 0 0;
}

.hero-title {
	margin: 0 0 8px;
	font-size: clamp(1.9rem, 3.4vw, 2.5rem);
	font-weight: 700;
	letter-spacing: -0.04em;
	line-height: 1.15;
	color: var(--nj-brand);
}

.hero-lead {
	max-width: 36rem;
	margin: 0 0 16px;
	color: #4a322c;
	font-size: 1.02rem;
	font-weight: 500;
	line-height: 1.5;
}

.btn-hero {
	padding: 12px 18px;
	font-size: 1rem;
	background: #1b2430;
	box-shadow: 0 8px 18px rgba(27, 36, 48, 0.22);
}

.btn-hero:hover {
	background: #10161f;
	color: #fff;
	box-shadow: 0 10px 22px rgba(27, 36, 48, 0.3);
}

.quick-card {
	padding: 20px 20px 16px;
	margin-bottom: 40px;
	border-top: 3px solid var(--nj-brand);
}

.quick-card h2 {
	margin: 0 0 14px;
	font-size: 1.15rem;
}

.quick-list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.quick-list a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border: 1px solid var(--nj-line);
	border-radius: 12px;
	color: var(--nj-text);
}

.quick-list a:hover {
	color: var(--nj-brand);
	border-color: #f0d7d3;
	background: var(--nj-brand-softer);
}

.quick-list a:hover strong {
	color: var(--nj-brand);
}

.quick-icon {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	flex-shrink: 0;
	border-radius: 9px;
	background: var(--nj-brand-soft);
	color: var(--nj-brand);
	font-size: 0.85rem;
}

.quick-list strong {
	font-weight: 700;
	font-size: 0.92rem;
	line-height: 1.3;
}

.section-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	margin: 12px 0 20px;
}

.section-head h2 {
	margin: 0;
	font-size: 1.7rem;
	letter-spacing: -0.03em;
}

.step-grid {
	grid-template-columns: repeat(4, 1fr);
	margin-bottom: 56px;
}

.step-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 24px 24px 22px;
	color: inherit;
}

a.step-card:hover {
	color: inherit;
	border-color: #f0d7d3;
	background: var(--nj-brand-softer);
}

.step-card .step-no {
	margin: 0 0 18px;
	color: var(--nj-muted);
	font-size: 0.82rem;
}

.step-card .btn-ghost {
	margin-top: auto;
}

.cta-grid {
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	padding-top: 8px;
}

.site-footer {
	background: var(--nj-brand-softer);
	border-top: 1px solid #f3e4e2;
	padding: 28px 0;
	color: var(--nj-muted);
	font-size: 0.9rem;
}

.site-footer-inner {
	width: min(1120px, calc(100% - 40px));
	margin: 0 auto;
}

.footer-cms-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	margin: 0 0 14px;
	font-size: 0.78rem;
}

.footer-cms-nav a {
	color: #9a8b88;
}

.footer-cms-nav a:hover {
	color: var(--nj-muted);
}

.footer-legal {
	margin: 0;
	font-size: 0.86rem;
}

body:has(.guide-nav) .more-pages {
	display: none;
}

.more-pages {
	border-top: 1px solid var(--nj-line);
	padding: 28px 0 8px;
}

.more-pages-inner {
	width: min(1120px, calc(100% - 40px));
	margin: 0 auto 24px;
}

.more-pages h2 {
	margin: 0 0 14px;
	color: var(--nj-brand);
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.more-pages ul {
	display: block;
	margin: 0;
	padding: 0;
	list-style: none;
}

.more-pages li + li {
	margin-top: 6px;
}

.more-pages a {
	display: block;
	padding: 0;
	color: var(--nj-text);
	font-size: 0.9rem;
	font-weight: 500;
	line-height: 1.45;
}

.more-pages a:hover,
.more-pages .active > a {
	color: var(--nj-brand);
	font-weight: 700;
}

.cms-content .btn-primary,
.cms-content .btn-success {
	background: var(--nj-brand);
	border-color: var(--nj-brand);
}

.api-search-card,
.api-lock,
.api-record {
	padding: 22px 24px;
}

.api-search-card {
	margin: 0 0 28px;
}

.api-search-title {
	margin: 0 0 16px;
	color: var(--nj-brand);
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.api-search-lead {
	margin: -8px 0 16px;
	color: var(--nj-muted);
	font-size: 0.92rem;
	line-height: 1.55;
}

.api-search-tablist {
	display: flex;
	gap: 4px;
	margin: 0 0 18px;
	padding: 4px;
	border-radius: var(--nj-radius-sm);
	background: var(--nj-brand-softer);
}

.api-search-tab {
	flex: 1;
	margin: 0;
	padding: 10px 12px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--nj-muted);
	font: inherit;
	font-size: 0.95rem;
	font-weight: 700;
	cursor: pointer;
}

.api-search-tab.is-active {
	background: #fff;
	color: var(--nj-brand);
	box-shadow: var(--nj-shadow);
}

.api-search-panel[hidden] {
	display: none;
}

.api-search-grid {
	display: grid;
	grid-template-columns: 160px minmax(0, 1fr) auto;
	gap: 14px 16px;
	align-items: end;
}

.api-search-grid.has-types {
	grid-template-columns: 160px minmax(0, 1fr) auto auto;
}

.api-search-grid.origin-fields {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
}

.api-search-grid.origin-fields.has-types {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto;
}

.api-field {
	display: block;
	margin: 0;
}

.api-field > span {
	display: block;
	margin: 0 0 6px;
	color: var(--nj-muted);
	font-size: 0.82rem;
	font-weight: 500;
}

.api-field input:not([type="radio"]),
.api-field select,
.api-lock-form input {
	width: 100%;
	padding: 11px 12px;
	border: 1px solid #e4e4e4;
	border-radius: 12px;
	background: #fff;
	color: var(--nj-text);
	font: inherit;
	font-size: 0.95rem;
}

.api-field input:not([type="radio"]):focus,
.api-field select:focus,
.api-lock-form input:focus {
	outline: 0;
	border-color: #f0d7d3;
	box-shadow: 0 0 0 3px var(--nj-brand-soft);
}

.api-field-types {
	border: 0;
	margin: 0;
	padding: 0;
	min-width: 0;
}

.api-radios {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 42px;
}

.api-radios label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--nj-text);
	font-size: 0.95rem;
	cursor: pointer;
}

.api-radios input {
	width: auto;
	margin: 0;
	accent-color: var(--nj-brand);
}

.api-notes {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	margin: 4px 0 8px;
}

.api-note-card {
	padding: 20px 22px;
	border-top: 3px solid var(--nj-brand);
	background: var(--nj-brand-softer);
}

.api-note-card p {
	margin: 0;
	color: #4a322c;
	font-size: 0.95rem;
	line-height: 1.65;
}

.api-note-card p + p {
	margin-top: 10px;
}

.api-search-action {
	padding-bottom: 1px;
}

.api-search-action .btn-brand,
.api-lock-form .btn-brand {
	border: 0;
	cursor: pointer;
}

.api-hint {
	margin: 12px 0 0;
	color: var(--nj-muted);
	font-size: 0.86rem;
}

.api-note {
	margin: 0 0 18px;
	padding: 12px 0 0;
	color: #4a322c;
	font-size: 0.95rem;
}

.api-lock-preview {
	margin: 0 0 24px;
	padding: 8px 0 48px;
	min-height: 180px;
}

.api-lock-preview h2 {
	margin: 0 0 8px;
	font-size: 1.2rem;
}

.api-lock-error {
	color: var(--nj-brand);
	font-weight: 600;
}

body.has-activation-modal {
	overflow: hidden;
}

.activation-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 120;
	display: grid;
	place-items: center;
	padding: 16px;
	background: rgba(20, 8, 6, 0.34);
}

.activation-modal-card {
	width: min(100%, 680px);
	margin: 0;
	padding: 18px 16px;
	border: 1px solid #ececec;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 14px 44px rgba(27, 12, 9, 0.38);
}

.activation-title {
	margin: 0 0 6px;
	color: var(--nj-brand);
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.35;
}

.activation-intro {
	margin: 0 0 18px;
	color: #5c3d36;
	font-size: 0.95rem;
	line-height: 1.6;
}

.activation-modal-card > p {
	margin: 0 0 8px;
}

.activation-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--nj-brand);
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
}

.activation-link:hover {
	color: var(--nj-brand-dark);
}

.activation-link-telegram {
	color: #229ed9;
}

.activation-link-telegram:hover {
	color: #1b8ec4;
}

.activation-link-threads {
	color: #000;
}

.activation-link-threads:hover {
	color: #333;
}

.activation-form {
	display: flex;
	flex-direction: column;
	gap: 9px;
	margin: 13px 0 0;
}

.activation-form label {
	color: #7b2b1e;
	font-size: 0.9rem;
	font-weight: 600;
}

.activation-form input {
	width: 100%;
	max-width: 340px;
	padding: 9px 10px;
	border: 1px solid #f1cfc8;
	border-radius: 8px;
	background: #fff;
	color: var(--nj-text);
	font: inherit;
	font-size: 0.95rem;
}

.activation-form input:focus {
	outline: 0;
	border-color: #f0d7d3;
	box-shadow: 0 0 0 3px var(--nj-brand-soft);
}

.activation-form-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.activation-form-actions button {
	padding: 8px 15px;
	border: 1px solid var(--nj-brand);
	border-radius: 8px;
	background: var(--nj-brand);
	color: #fff;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
}

.activation-form-actions button:hover {
	background: var(--nj-brand-dark);
	border-color: var(--nj-brand-dark);
}

.activation-btn-get-code {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 15px;
	border: 1px solid #b0b0b0;
	border-radius: 8px;
	background: #d8d8d8;
	color: #3a3a3a;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
}

.activation-btn-get-code:hover {
	background: #cfcfcf;
	color: #3a3a3a;
}

.activation-btn-telegram {
	background: #229ed9;
	border-color: #1b8ec4;
	color: #fff;
}

.activation-btn-telegram:hover {
	background: #1b8ec4;
	border-color: #1679a8;
	color: #fff;
}

.activation-btn-threads {
	background: #000;
	border-color: #000;
	color: #fff;
}

.activation-btn-threads:hover {
	background: #333;
	border-color: #333;
	color: #fff;
}

.api-record {
	margin: 0 0 14px;
	font-size: 0.98rem;
	line-height: 1.7;
}

.api-record .card-title {
	margin: 0 0 10px;
	color: var(--nj-brand);
	font-size: 1.12rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.api-year-group {
	margin: 0 0 28px;
}

.api-year-group h3 {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin: 1.6em 0 0.7em;
}

.api-year-group h3 span {
	color: var(--nj-muted);
	font-size: 0.85rem;
	font-weight: 500;
}

.api-results .article-body > h2:first-of-type {
	margin-top: 0.2em;
}

.alert-success {
	background: var(--nj-brand-softer);
	border: 1px solid #f0d7d3;
	color: var(--nj-text);
}

@media (max-width: 900px) {
	.site-toggler {
		display: block;
	}

	.site-nav-wrap {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 76px;
		background: #fff;
		border-bottom: 1px solid var(--nj-line);
		padding: 8px 20px 20px;
	}

	.site-nav-wrap.is-open {
		display: block;
	}

	.site-nav-wrap {
		align-self: auto;
	}

	.site-nav {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
	}

	.site-nav > li {
		align-items: flex-start;
		flex-direction: column;
	}

	.site-nav .has-sub > a .site-nav-caret {
		transform: none;
	}

	.site-nav .has-sub > ul {
		position: static;
		display: block;
		min-width: 0;
		margin-top: 8px;
		padding: 0 0 0 12px;
		border: 0;
		box-shadow: none;
	}

	.site-nav .has-sub > ul::before {
		display: none;
	}

	.resource-grid,
	.step-grid,
	.cta-grid,
	.article-layout {
		grid-template-columns: 1fr;
	}

	.article-layout > .toc,
	.article-layout > .article-body {
		grid-column: 1;
	}

	.quick-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.toc {
		position: static;
	}

	.toc-mobile-toggle {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		margin: 0 0 12px;
		padding: 10px 12px;
		border: 1px solid var(--nj-line);
		border-radius: 10px;
		background: #fff;
		color: var(--nj-brand);
		font-size: 0.92rem;
		font-weight: 700;
		cursor: pointer;
	}

	.toc-mobile-toggle i {
		font-size: 0.7em;
		transition: transform 0.15s ease;
	}

	.toc.is-open .toc-mobile-toggle i {
		transform: rotate(180deg);
	}

	.toc-panel {
		display: none;
		padding-bottom: 8px;
	}

	.toc.is-open .toc-panel {
		display: block;
	}

	.resource-card,
	.resource-follow {
		flex-wrap: wrap;
	}

	.api-notes,
	.api-search-grid,
	.api-search-grid.has-types,
	.api-search-grid.origin-fields,
	.api-search-grid.origin-fields.has-types {
		grid-template-columns: 1fr;
	}

	.api-search-grid.has-types .api-search-action {
		justify-self: start;
	}

	.api-search-tab {
		font-size: 0.88rem;
		padding: 10px 8px;
	}

	.api-search-card,
	.activation-modal-card,
	.api-record {
		padding: 18px 16px;
	}

	.home-page .hero-row {
		padding: 28px 20px 24px;
	}

	.home-page .cta-block {
		padding: 24px 20px;
	}
}

body:has(.home-page) .site-main {
	background:
		radial-gradient(1100px 420px at 8% -8%, #fde7d4 0%, transparent 58%),
		radial-gradient(820px 380px at 96% 4%, #f8d4cf 0%, transparent 52%),
		linear-gradient(#fffaf6 0%, #ffffff 46%);
}

.home-page .hero-row {
	position: relative;
	overflow: hidden;
	margin: 0 0 28px;
	padding: 36px 32px 32px;
	border-radius: 28px;
	background:
		radial-gradient(ellipse 70% 90% at 100% -10%, rgba(255, 196, 120, 0.38), transparent 52%),
		radial-gradient(ellipse 50% 80% at 0% 120%, rgba(255, 255, 255, 0.12), transparent 46%),
		linear-gradient(128deg, #a31700 0%, #c43a12 46%, #6e1230 100%);
	color: #fff;
}

.home-page .hero-row::after {
	content: "";
	position: absolute;
	width: 280px;
	height: 280px;
	right: -48px;
	bottom: -110px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	pointer-events: none;
}

.home-page .hero-copy {
	position: relative;
	z-index: 1;
}

.home-page .hero-kicker {
	display: inline-block;
	margin: 0 0 12px;
	padding: 5px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.16);
	color: #ffe9d8;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.home-page .hero-title {
	color: #fff;
}

.home-page .hero-lead {
	color: rgba(255, 236, 226, 0.94);
}

.home-page .hero-row .btn-hero {
	background: #fff;
	color: var(--nj-brand);
	box-shadow: 0 10px 24px rgba(80, 10, 8, 0.22);
}

.home-page .hero-row .btn-hero:hover {
	background: #fff4ee;
	color: var(--nj-brand-dark);
}

.home-page .hero-row .btn-ghost {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	border-color: rgba(255, 255, 255, 0.28);
}

.home-page .hero-row .btn-ghost:hover {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
	border-color: rgba(255, 255, 255, 0.45);
}

.home-page .quick-card {
	border-top: 0;
	background:
		linear-gradient(#fff, #fff) padding-box,
		linear-gradient(90deg, #a31700, #d4a017, #2a6f6a) border-box;
	border: 2px solid transparent;
}

.home-page .quick-list li:nth-child(1) .quick-icon { background: #f8e8e6; color: #a31700; }
.home-page .quick-list li:nth-child(2) .quick-icon { background: #e8f3f2; color: #1f6f68; }
.home-page .quick-list li:nth-child(3) .quick-icon { background: #fff1d6; color: #b57a00; }
.home-page .quick-list li:nth-child(4) .quick-icon { background: #ece8f8; color: #5b4aa8; }
.home-page .quick-list li:nth-child(5) .quick-icon { background: #e7eef8; color: #35548a; }
.home-page .quick-list li:nth-child(6) .quick-icon { background: #fde8f0; color: #b03d6a; }
.home-page .quick-list li:nth-child(7) .quick-icon { background: #e6f4fb; color: #229ed9; }

.home-page .quick-list a:hover {
	background: #fffaf6;
}

.home-page .resource-grid > a.resource-card {
	background: linear-gradient(180deg, #fff 0%, #eef7f6 100%);
	border-color: #d7e8e6;
}

.home-page .resource-follow {
	background: linear-gradient(180deg, #fff 0%, #fff8ea 100%);
	border-color: #f0e2c4;
}

.home-page .resource-split .resource-fill {
	background: var(--nj-brand);
	border-left-color: #8c1400;
	color: #fff;
}

.home-page .resource-split .resource-fill .resource-icon {
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
}

.home-page .resource-split .resource-fill .resource-label {
	color: #fff;
}

.home-page .resource-split .resource-fill:hover {
	background: var(--nj-brand-dark);
}

.home-page .section-head h2 {
	color: var(--nj-text);
}

.home-page .step-card {
	border-top: 4px solid var(--nj-brand);
	background: #fff;
}

.home-page .step-card:nth-child(1) { border-top-color: #a31700; }
.home-page .step-card:nth-child(2) { border-top-color: #d4a017; }
.home-page .step-card:nth-child(3) { border-top-color: #2a6f6a; }
.home-page .step-card:nth-child(4) { border-top-color: #3d4a7a; }

.home-page .step-card:nth-child(1) .step-no { color: #a31700; }
.home-page .step-card:nth-child(2) .step-no { color: #b57a00; }
.home-page .step-card:nth-child(3) .step-no { color: #2a6f6a; }
.home-page .step-card:nth-child(4) .step-no { color: #3d4a7a; }

.home-page .step-card:nth-child(1):hover { background: #fdf6f5; }
.home-page .step-card:nth-child(2):hover { background: #fff8ea; }
.home-page .step-card:nth-child(3):hover { background: #f3fafa; }
.home-page .step-card:nth-child(4):hover { background: #f4f5fb; }

.home-page .cta-grid {
	gap: 20px;
}

.home-page .cta-block {
	padding: 28px 26px;
	border-radius: var(--nj-radius);
}

.home-page .cta-block:first-child {
	background: linear-gradient(160deg, #a31700 0%, #6e1020 100%);
	color: #fff;
}

.home-page .cta-block:first-child h2,
.home-page .cta-block:first-child p,
.home-page .cta-block:first-child a {
	color: #fff;
}

.home-page .cta-block:first-child p {
	color: rgba(255, 236, 226, 0.92);
}

.home-page .cta-block:first-child .btn-text {
	margin-top: 4px;
	padding: 10px 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.16);
}

.home-page .cta-block:first-child a:hover {
	color: #ffe9d8;
}

.home-page .cta-block:last-child {
	background: linear-gradient(160deg, #fff6dc 0%, #fde7c4 100%);
	border: 1px solid #f0d59a;
}

.home-page .cta-block:last-child h2 {
	color: #8a4b00;
}

.home-page .cta-block:last-child a {
	color: #8a4b00;
}

.home-page .cta-block:last-child a:hover {
	color: #6d3a00;
}
