:root {
    --bg-color: #f4f7f6;
    --card-bg: #ffffff;
    --text-color: #333333;
    --text-light: #666666;
    --text-strong: #0f172a;
    --text-muted: #475569;
    --accent-primary: #0056b3;
    --accent-secondary: #00a8cc;
    --border-color: #e1e4e8;
    --shadow-card: 0 16px 36px rgba(15, 23, 42, 0.07);
    --max-width: 1200px;
    --nav-height: 80px;
    --font-main: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: 'Syncopate', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    line-height: 1.55;
    color: var(--text-color);
    background: linear-gradient(180deg, #09132d 0%, #101d43 100%);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #111;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.2;
}

p {
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.65;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: all 0.25s ease;
}

a:hover {
    color: var(--accent-secondary);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

ul, ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(14px);
}

.nav-container {
    max-width: 1240px;
    margin: 0 auto;
    min-height: var(--nav-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 16px 24px;
}

.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--accent-primary);
    font-weight: bold;
}

.logo a.nss-brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    max-width: 100%;
    color: #0f172a;
    text-decoration: none;
    border-radius: 12px;
    outline-offset: 4px;
    transition: opacity 0.2s ease;
}

.logo a.nss-brand-mark:hover {
    opacity: 1;
}

.logo a.nss-brand-mark:hover .nss-brand-lockup strong {
    filter: brightness(1.07) saturate(1.1);
}

.logo a.nss-brand-mark:hover .nss-brand-icon svg {
    transform: translateY(-1px) scale(1.03);
}

.nss-brand-icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.nss-brand-icon svg {
    display: block;
    width: 40px;
    height: 40px;
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.nss-nav-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(203, 213, 225, 0.86);
    border-radius: 14px;
    background: #ffffff;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.nss-nav-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: #0f172a;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nss-nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nss-nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nss-nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nss-brand-lockup {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.nss-brand-lockup strong {
    display: inline-block;
    font-size: 18px;
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    background-image: linear-gradient(102deg, #0b1220 6%, #1d4ed8 48%, #0891b2 94%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    transition: filter 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
    .nss-brand-lockup strong {
        color: #0f172a;
        background: none;
        -webkit-text-fill-color: currentColor;
    }
}

.nss-brand-lockup small {
    display: block;
    width: max-content;
    max-width: min(100%, 20rem);
    font-family: var(--font-main);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #5b6578;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
}

nav ul,
.mjs-primary-menu {
    display: flex;
    gap: 26px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

nav a,
.mjs-primary-menu a {
    color: #334155;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

nav a:hover,
.mjs-primary-menu a:hover {
    color: var(--accent-primary);
}

main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 34px 20px 48px;
    min-height: calc(100vh - var(--nav-height) - 200px);
}

section {
    margin-bottom: 32px;
}

h2 {
    font-size: 30px;
    line-height: 1.18;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 22px;
    position: relative;
    color: #0f172a;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-primary);
}

h3 {
    font-size: 17px;
    line-height: 1.3;
    color: #111827;
    margin-top: 22px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(203, 213, 225, 0.75);
}

th,
td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

th {
    background-color: #eff6ff;
    color: #0f172a;
    font-family: var(--font-heading);
    font-size: 12px;
}

tr:hover {
    background-color: #f8fbff;
}

.tech-list li,
.nss-list li {
    background: #ffffff;
    margin-bottom: 12px;
    padding: 16px 18px;
    border-left: 3px solid var(--accent-primary);
    border-radius: 0 8px 8px 0;
    list-style: none;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

footer {
    background: #ffffff;
    border-top: 1px solid rgba(203, 213, 225, 0.7);
    padding: 54px 20px 20px;
    margin-top: 40px;
}

.footer-grid {
    max-width: 1240px;
    margin: 0 auto 34px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 34px;
}

.footer-col h4 {
    color: #0f172a;
    margin-bottom: 18px;
    font-size: 15px;
    letter-spacing: 0.08em;
}

.footer-col ul,
.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-col li,
.footer-menu li {
    margin-bottom: 10px;
}

.footer-col a,
.footer-menu a {
    color: #475569;
}

.footer-col a:hover,
.footer-menu a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    max-width: 1240px;
    margin: 0 auto;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(203, 213, 225, 0.75);
    color: #475569;
    font-size: 14px;
}

.nss-footer-copy {
    margin-top: 15px;
}

.nss-home {
    max-width: none;
    padding: 0 0 56px;
    background: linear-gradient(180deg, #f4f8ff 0%, #f8fbff 100%);
}

.nss-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.nss-section .nss-shell {
    background: linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
}

.nss-eyebrow,
.nss-section__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(147, 197, 253, 0.16);
    border: 1px solid rgba(191, 219, 254, 0.32);
    color: #dbeafe;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

/*
 * Eyebrows on pale shells: homepage sections + inner templates (slot, bonus, etc.).
 * Dark heroes (.nss-hero, .nss-inner-hero, .nss-journal-hero) keep the light pill text above.
 */
.nss-section .nss-shell .nss-section__eyebrow,
.nss-inner-section .nss-shell .nss-section__eyebrow,
.nss-empty-state .nss-section__eyebrow {
    color: #0f172a;
    background: rgba(37, 99, 235, 0.11);
    border-color: rgba(29, 78, 216, 0.24);
}

.nss-hero {
    position: relative;
    width: 100%;
    padding: 78px 0 56px;
    margin-bottom: 26px;
    background:
        linear-gradient(120deg, rgba(7, 19, 45, 0.84), rgba(18, 66, 122, 0.68)),
        linear-gradient(180deg, rgba(6, 11, 29, 0.98), rgba(12, 27, 70, 0.96));
    overflow: hidden;
}

.nss-hero::before,
.nss-hero::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    filter: blur(10px);
}

.nss-hero::before {
    width: 320px;
    height: 320px;
    background: rgba(56, 189, 248, 0.18);
    top: -100px;
    right: 8%;
}

.nss-hero::after {
    width: 260px;
    height: 260px;
    background: rgba(59, 130, 246, 0.16);
    bottom: -90px;
    left: 6%;
}

.nss-hero__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
    gap: 42px;
    align-items: center;
}

.nss-hero__copy h1 {
    margin-bottom: 18px;
    font-size: 44px;
    line-height: 1.06;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #f8fafc;
}

.nss-hero__copy p {
    max-width: 720px;
    margin-bottom: 28px;
    font-size: 18px;
    line-height: 1.65;
    color: rgba(226, 232, 240, 0.94);
}

.nss-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 34px;
}

.nss-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 24px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.nss-btn--primary {
    background: linear-gradient(135deg, #38bdf8, #2563eb);
    color: #ffffff;
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.28);
}

.nss-btn--primary:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.nss-btn--secondary {
    background: transparent;
    color: #eff6ff;
    border-color: rgba(191, 219, 254, 0.46);
}

.nss-btn--secondary:hover {
    color: #ffffff;
    border-color: rgba(147, 197, 253, 0.9);
    background: rgba(148, 163, 184, 0.08);
}

.nss-hero__metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nss-hero__metrics li {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 18px 16px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.32);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.nss-hero__metrics strong {
    font-size: 20px;
    line-height: 1.1;
    color: #ffffff;
}

.nss-hero__metrics span {
    font-size: 13px;
    color: #cbd5e1;
}

.nss-hero__media {
    position: relative;
}

.nss-hero__media::after {
    content: '';
    position: absolute;
    inset: auto 24px -24px;
    height: 28px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.35);
    filter: blur(18px);
    z-index: -1;
}

.nss-hero__media img {
    width: 100%;
    min-height: 440px;
    object-fit: cover;
    border-radius: 28px;
    border: 1px solid rgba(191, 219, 254, 0.28);
    box-shadow: 0 28px 60px rgba(2, 8, 23, 0.35);
}

.nss-section {
    margin-bottom: 26px;
}

.nss-home .nss-section:last-child {
    margin-bottom: 0;
}

.nss-section .nss-shell {
    padding: 34px;
    border-radius: 28px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    border: 1px solid rgba(203, 213, 225, 0.86);
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.10);
}

.nss-section__intro {
    margin-bottom: 28px;
}

.nss-section__intro--split {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.85fr);
    gap: 26px;
    align-items: end;
}

.nss-section__intro h2 {
    margin-bottom: 14px;
    border: 0;
    padding: 0;
    font-size: 34px;
    line-height: 1.16;
}

.nss-section__intro h2::after {
    display: none;
}

.nss-section__intro p {
    max-width: 760px;
    margin-bottom: 0;
    font-size: 17px;
    line-height: 1.65;
    color: #475569;
}

.nss-trust-grid,
.nss-ranking-grid,
.nss-games-grid {
    display: grid;
    gap: 22px;
}

.nss-trust-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nss-trust-card,
.nss-ranking-card,
.nss-game-card {
    background: #ffffff;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.nss-trust-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.nss-trust-card__body,
.nss-game-card__body {
    padding: 22px;
}

.nss-trust-card__body h3,
.nss-game-card__body h3,
.nss-ranking-card h3 {
    margin: 0 0 12px;
    font-size: 19px;
    line-height: 1.25;
    color: #0f172a;
}

.nss-trust-card__body p,
.nss-game-card__body p,
.nss-ranking-card p {
    margin: 0;
    color: #475569;
}

.nss-ranking-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nss-ranking-card {
    position: relative;
    padding: 26px 24px 24px;
}

.nss-ranking-card__rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    color: #ffffff;
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 16px;
}

.nss-ranking-card__label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #2563eb;
    margin-bottom: 10px;
}

.nss-ranking-card__offer {
    margin-bottom: 14px;
    color: #0f172a;
    font-weight: 700;
}

.nss-ranking-card .nss-btn {
    margin-top: 18px;
}

.nss-insight {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 28px;
    align-items: stretch;
}

.nss-insight__copy h2 {
    border: 0;
    padding: 0;
    margin-bottom: 18px;
}

.nss-insight__copy h2::after {
    display: none;
}

.nss-insight__copy p {
    color: #475569;
    line-height: 1.65;
}

.nss-insight__panel {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #0f172a, #13254d);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.18);
}

.nss-insight__panel img {
    width: 100%;
    min-height: 260px;
    object-fit: cover;
    border-radius: 0;
}

.nss-insight__panel-copy {
    padding: 24px;
}

.nss-insight__panel-copy h3,
.nss-insight__panel-copy p {
    color: #f8fafc;
}

.nss-games-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nss-inner-hero {
    position: relative;
    padding: 72px 0 48px;
    margin-bottom: 26px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.nss-inner-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 19, 45, 0.18), rgba(7, 19, 45, 0.08));
}

.nss-inner-hero .nss-shell {
    position: relative;
    z-index: 2;
}

.nss-inner-hero h1 {
    max-width: 920px;
    margin-bottom: 18px;
    font-size: 38px;
    line-height: 1.08;
    color: #f8fafc;
}

.nss-inner-hero p {
    max-width: 760px;
    margin-bottom: 0;
    font-size: 18px;
    line-height: 1.65;
    color: rgba(226, 232, 240, 0.94);
}

.nss-inner-hero--simple {
    background: linear-gradient(135deg, #0f172a, #13254d);
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
}

.nss-inner-section {
    margin-bottom: 26px;
}

.nss-inner-page .nss-inner-section:last-child {
    margin-bottom: 0;
}

.nss-inner-section .nss-shell,
.nss-content-sheet {
    padding: 34px;
    border-radius: 28px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    border: 1px solid rgba(203, 213, 225, 0.86);
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.10);
}

.nss-inner-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 28px;
    align-items: stretch;
}

.nss-inner-copy h2 {
    margin-bottom: 18px;
    color: #0f172a;
}

.nss-inner-copy p {
    color: #475569;
    line-height: 1.65;
}

.nss-inner-section h2,
.nss-inner-section h3,
.nss-inner-section p,
.nss-inner-section li,
.nss-inner-section td,
.nss-inner-section th {
    color: inherit;
}

.nss-inner-section .nss-shell > h2,
.nss-inner-section .nss-shell > h3,
.nss-inner-section .nss-shell > p,
.nss-inner-section .nss-shell > ul,
.nss-inner-section .nss-shell > ol,
.nss-inner-section .nss-shell > table,
.nss-content-sheet > h2,
.nss-content-sheet > h3,
.nss-content-sheet > p,
.nss-content-sheet > ul,
.nss-content-sheet > ol,
.nss-content-sheet > table {
    color: #475569;
}

.nss-inner-section .nss-shell > h2,
.nss-content-sheet > h2 {
    color: #0f172a;
}

.nss-inner-panel {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #0f172a, #13254d);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.18);
}

.nss-inner-panel img {
    width: 100%;
    min-height: 260px;
    object-fit: cover;
    border-radius: 0;
}

.nss-inner-panel__copy {
    padding: 24px;
}

.nss-inner-panel__copy h3,
.nss-inner-panel__copy p {
    color: #f8fafc;
}

.nss-inner-stack {
    display: grid;
    gap: 18px;
}

.nss-info-card {
    padding: 24px;
}

.nss-info-card--accent {
    border-top: 4px solid var(--accent-primary);
}

.nss-info-card--alt {
    border-top: 4px solid var(--accent-secondary);
}

.nss-content-sheet h2 {
    margin-top: 0;
}

.nss-content-sheet h2 + p,
.nss-content-sheet h2 + ul,
.nss-content-sheet h2 + ol {
    margin-top: 6px;
}

.nss-meta-note {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-primary);
    margin-bottom: 14px;
}

.nss-game-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 0;
}

.nss-game-card__body p {
    color: #2563eb;
    font-weight: 700;
}

.nss-section--faq .faq-container {
    max-width: none;
}

.faq-container {
    max-width: 860px;
    margin: 0 auto;
}

.faq-item {
    background: #ffffff;
    border: 1px solid rgba(203, 213, 225, 0.92);
    border-radius: 18px;
    margin-bottom: 14px;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 22px 24px;
    background: none;
    border: none;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.25s ease;
}

.faq-question:hover {
    background-color: #f8fbff;
}

.faq-icon {
    font-size: 22px;
    color: #2563eb;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #ffffff;
}

.faq-answer p {
    padding: 0 24px 22px;
    margin: 0;
    color: #475569;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

@media (max-width: 960px) {
    .nss-hero__grid,
    .nss-inner-grid,
    .nss-insight,
    .nss-section__intro--split,
    .nss-trust-grid,
    .nss-ranking-grid,
    .nss-games-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .nss-hero__metrics {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        align-items: flex-start;
        gap: 14px;
        padding: 16px;
    }
    
    nav ul,
    .mjs-primary-menu {
        flex-wrap: wrap;
        gap: 14px;
    }

    main {
        padding: 20px 14px 36px;
    }

    h2,
    .nss-section__intro h2,
    .nss-content-sheet h2,
    .nss-inner-copy h2 {
        font-size: 24px;
        line-height: 1.2;
    }

    .nss-shell {
        width: min(100% - 24px, 100%);
    }

    .nss-hero {
        padding: 50px 0 40px;
    }

    .nss-hero__copy h1,
    .nss-inner-hero h1 {
        font-size: 28px;
        line-height: 1.1;
    }

    .nss-hero__copy p,
    .nss-inner-hero p {
        font-size: 16px;
        line-height: 1.62;
    }

    .nss-inner-hero {
        padding: 52px 0 38px;
    }

    .nss-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .nss-btn {
        width: 100%;
    }

    .nss-hero__media img {
        min-height: 280px;
        border-radius: 20px;
    }

    .nss-section .nss-shell,
    .nss-inner-section .nss-shell,
    .nss-content-sheet {
        padding: 22px 18px;
        border-radius: 20px;
    }

    .nss-trust-card img {
        height: 200px;
    }

    .faq-question {
        font-size: 16px;
        padding: 18px 18px;
    }

    .faq-answer p {
        padding: 0 18px 18px;
    }

    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
    }
    
    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    tr {
        border: 1px solid rgba(203, 213, 225, 0.75);
        margin-bottom: 15px;
    }
    
    td {
        border: none;
        border-bottom: 1px solid rgba(226, 232, 240, 0.85);
        position: relative;
        padding-left: 50%;
        font-size: 14px;
    }
    
    td::before {
        position: absolute;
        top: 15px;
        left: 15px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        content: attr(data-label);
        font-weight: bold;
        color: #0f172a;
        font-size: 13px;
    }
}

.nss-journal-page {
    max-width: none;
    padding: 0 0 56px;
    background: linear-gradient(180deg, #f4f8ff 0%, #f8fbff 100%);
}

.nss-journal-hero {
    position: relative;
    padding: 72px 0 48px;
    margin-bottom: 26px;
    background: linear-gradient(135deg, #0f172a, #13254d);
    overflow: hidden;
}

.nss-journal-hero::before,
.nss-journal-hero::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    filter: blur(10px);
}

.nss-journal-hero::before {
    width: 280px;
    height: 280px;
    top: -90px;
    right: 10%;
    background: rgba(56, 189, 248, 0.16);
}

.nss-journal-hero::after {
    width: 220px;
    height: 220px;
    bottom: -80px;
    left: 6%;
    background: rgba(59, 130, 246, 0.14);
}

.nss-journal-hero .nss-shell {
    position: relative;
    z-index: 2;
}

.nss-journal-hero h1 {
    max-width: 900px;
    margin-bottom: 18px;
    font-size: 38px;
    line-height: 1.08;
    color: #f8fafc;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.nss-journal-hero p {
    max-width: 760px;
    margin-bottom: 0;
    font-size: 18px;
    line-height: 1.65;
    color: rgba(226, 232, 240, 0.92);
}

.nss-journal-hero .nss-section__eyebrow {
    color: #eff6ff;
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(191, 219, 254, 0.22);
}

.nss-journal-section {
    margin-bottom: 26px;
}



.nss-journal-list {
    display: grid;
    gap: 20px;
}

.nss-journal-card {
    display: grid;
    grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
    gap: 24px;
    align-items: stretch;
    padding: 22px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
}

.nss-journal-card--no-thumb {
    grid-template-columns: 1fr;
}

.nss-journal-card__thumb a {
    display: block;
    height: 100%;
}

.nss-journal-card__thumb img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    border-radius: 18px;
}

.nss-journal-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nss-journal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.nss-journal-meta a {
    color: var(--accent-primary);
}

.nss-journal-hero .nss-journal-meta {
    color: #cbd5e1;
}

.nss-journal-hero .nss-journal-meta a {
    color: #ffffff;
}

.nss-journal-meta__sep {
    color: #64748b;
}

.nss-journal-hero .nss-journal-meta__sep {
    color: rgba(191, 219, 254, 0.78);
}

.nss-journal-card__title {
    margin-bottom: 14px;
    border: 0;
    padding: 0;
    font-size: 20px;
    line-height: 1.22;
}

.nss-journal-card__title::after {
    display: none;
}

.nss-journal-card__title a {
    color: var(--text-strong);
}

.nss-journal-card__excerpt,
.nss-empty-state p,
.nss-article-author-bio {
    color: #475569;
}

.nss-journal-card__link {
    display: inline-flex;
    align-items: center;
    margin-top: 18px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-primary);
}

.nss-journal-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 28px;
}

.nss-journal-pagination a,
.nss-journal-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-strong);
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.nss-journal-pagination .current {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
    color: #ffffff;
    border-color: transparent;
}

.nss-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.nss-search-form input,
.nss-search-form button {
    min-height: 52px;
    border-radius: 999px;
    border: 1px solid rgba(191, 219, 254, 0.28);
    font: inherit;
}

.nss-search-form input {
    flex: 1 1 320px;
    padding: 0 18px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--text-strong);
}

.nss-search-form button {
    padding: 0 22px;
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
    color: #ffffff;
    cursor: pointer;
}

.nss-journal-author-hero {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
}

.nss-journal-author-avatar {
    width: 110px;
    height: 110px;
    border-radius: 999px;
    border: 4px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 18px 36px rgba(2, 8, 23, 0.28);
}

.nss-journal-author-meta {
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #bfdbfe;
}

.nss-article-layout {
    display: grid;
    gap: 24px;
    min-width: 0;
}

.nss-article-sheet {
    width: 100%;
    min-width: 0;
    padding: 34px;
}

.nss-article-featured {
    margin-bottom: 28px;
}

.nss-article-featured img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 24px;
}

.nss-article-content {
    min-width: 0;
    color: #334155;
    overflow-wrap: anywhere;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.nss-article-content > *:last-child {
    margin-bottom: 0;
}

.nss-article-content img {
    max-width: 100%;
    height: auto;
}

.nss-article-content figure,
.nss-article-content .wp-caption {
    max-width: 100%;
}

.nss-article-content iframe,
.nss-article-content video,
.nss-article-content embed,
.nss-article-content object {
    max-width: 100%;
}

.nss-article-content .wp-block-embed {
    max-width: 100%;
}

.nss-article-content pre {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.nss-article-content .wp-block-table {
    max-width: 100%;
}

.nss-article-content table {
    max-width: 100%;
}

.nss-article-content .alignfull {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.nss-article-content h2,
.nss-article-content h3,
.nss-article-content h4 {
    margin-top: 28px;
}

.nss-article-content h2 {
    font-size: 26px;
    line-height: 1.22;
}

.nss-article-content h3 {
    font-size: 18px;
    line-height: 1.28;
}

.nss-article-content h4 {
    font-size: 16px;
    line-height: 1.3;
}

.nss-article-author-box {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    margin-top: 34px;
    padding-top: 26px;
    border-top: 1px solid rgba(203, 213, 225, 0.8);
}

.nss-article-author-box img {
    width: 64px;
    height: 64px;
    border-radius: 999px;
}

.nss-article-author-box img + div {
    min-width: 0;
    overflow-wrap: anywhere;
}

.nss-article-author-name {
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--text-strong);
}

.nss-article-author-name a {
    color: inherit;
}

.nss-article-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 30px;
}

.nss-article-nav__link {
    display: block;
    min-width: 0;
    padding: 18px 20px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-strong);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.nss-article-nav__link.next {
    text-align: right;
}

.nss-article-nav__label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-primary);
}

.nss-empty-state {
    padding: 42px 28px;
    text-align: center;
    border-radius: 24px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    border: 1px solid var(--border-color);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.nss-empty-state h1,
.nss-empty-state h2 {
    border: 0;
    padding: 0;
    margin-bottom: 14px;
}

.nss-empty-state h1::after,
.nss-empty-state h2::after {
    display: none;
}

.nss-empty-state--large {
    padding: 56px 32px;
}

.nss-empty-state__code {
    margin-bottom: 16px;
    font-size: 72px;
    line-height: 1;
    font-weight: 800;
    color: var(--accent-primary);
}

@media (max-width: 960px) {
    .nss-journal-card,
    .nss-journal-author-hero,
    .nss-article-nav {
        grid-template-columns: 1fr;
    }

    .nss-journal-card__thumb img {
        min-height: 240px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        position: relative;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 16px;
    }

    .logo {
        flex: 1 1 auto;
        min-width: 0;
    }

    .nss-brand-lockup {
        gap: 6px;
    }

    .logo a.nss-brand-mark {
        gap: 10px;
    }

    .nss-brand-icon svg {
        width: 32px;
        height: 32px;
    }

    .nss-brand-lockup strong {
        font-size: 13px;
        letter-spacing: 0.03em;
    }

    .nss-brand-lockup small {
        font-size: 9px;
        letter-spacing: 0.12em;
        max-width: 16rem;
    }

    .nss-nav-toggle {
        display: inline-flex;
        flex: 0 0 auto;
    }

    .nss-primary-nav {
        position: absolute;
        top: calc(100% + 10px);
        left: 16px;
        right: 16px;
        display: none;
        padding: 14px;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid rgba(203, 213, 225, 0.9);
        box-shadow: 0 20px 40px rgba(15, 23, 42, 0.14);
    }

    .nss-primary-nav.open {
        display: block;
    }

    .nss-primary-nav ul,
    .nss-primary-nav .mjs-primary-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .nss-primary-nav a,
    .nss-primary-nav .mjs-primary-menu a {
        display: block;
        padding: 12px 14px;
        border-radius: 12px;
        background: #f8fbff;
        font-size: 12px;
    }

    .nss-journal-hero {
        padding: 52px 0 38px;
    }

    .nss-journal-hero h1 {
        font-size: 28px;
        line-height: 1.1;
    }

    .nss-journal-hero p {
        font-size: 16px;
        line-height: 1.62;
    }

    .nss-journal-section .nss-shell,
    .nss-article-sheet,
    .nss-empty-state {
        padding: 22px 0;
    }

    .nss-journal-card {
        padding: 16px;
    }

    .nss-journal-card__title {
        font-size: 18px;
        line-height: 1.22;
    }

    .nss-article-content h2 {
        font-size: 22px;
    }

    .nss-article-content h3 {
        font-size: 17px;
    }

    .nss-journal-meta {
        gap: 8px;
        font-size: 11px;
    }

    .nss-article-sheet {
        padding: 22px 18px;
    }

    .nss-article-author-box {
        grid-template-columns: 1fr;
    }

    .nss-search-form {
        flex-direction: column;
    }

    .nss-search-form input,
    .nss-search-form button {
        width: 100%;
    }

    .nss-empty-state__code {
        font-size: 56px;
    }
}
