/*
Theme Name: NOCTRA
Theme URI: https://noctra.my/
Author: NOCTRA
Description: قالب عربي سينمائي داكن لأرشيف القضايا وقصص الرعب، مصمم للعمل مع إضافة NOCTRA Core.
Version: 1.5.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: noctra
*/

:root {
    --n-bg: hsl(240 7% 5%);
    --n-card: hsl(240 6% 8%);
    --n-text: hsl(45 22% 90%);
    --n-muted: hsl(240 5% 63%);
    --n-border: hsl(240 5% 15%);
    --n-red: hsl(355 52% 36%);
    --n-red-bright: hsl(355 55% 45%);
    --n-gold: hsl(38 32% 62%);
    --n-max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { direction: rtl; scroll-behavior: smooth; background: var(--n-bg); }
body { margin: 0; min-height: 100vh; overflow-x: hidden; color: var(--n-text); background: var(--n-bg); font-family: "Noto Naskh Arabic", Tahoma, Arial, sans-serif; font-size: 16px; font-weight: 400; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body::after { content: ""; position: fixed; inset: 0; z-index: 9999; opacity: .022; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E"); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: Cairo, Tahoma, sans-serif; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { color: #fff; background: var(--n-red); }
.n-container { width: min(calc(100% - 32px), var(--n-max)); margin-inline: auto; }
.n-display { font-family: Cairo, Tahoma, sans-serif; }
.n-meta { font-family: "IBM Plex Mono", Consolas, monospace; }
.n-section { position: relative; padding: 72px 0; }
.n-section--compact { padding: 64px 0 72px; }
.n-section--tight { padding: 56px 0 80px; }
.n-section--line { border-top: 1px solid var(--n-border); }
.n-section--muted { padding: 80px 0; border-block: 1px solid var(--n-border); background: color-mix(in srgb, var(--n-card) 42%, transparent); }
.n-kicker { display: block; margin-bottom: 12px; color: var(--n-red-bright); font: 600 11px/1.4 "IBM Plex Mono", monospace; letter-spacing: .3em; text-transform: uppercase; }
.n-title { margin: 0; font: 900 clamp(38px, 4.3vw, 56px)/1.22 Cairo, sans-serif; }
.n-lead { max-width: 730px; margin: 16px 0 0; color: color-mix(in srgb, var(--n-text) 78%, transparent); font-size: 18px; line-height: 2; }
.n-section-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 36px; }
.n-section-head h2 { margin: 0; font: 900 clamp(30px, 3.2vw, 44px)/1.35 Cairo, sans-serif; }
.n-text-link { color: var(--n-gold); font: 700 13px Cairo, sans-serif; white-space: nowrap; }
.n-text-link:hover { color: var(--n-text); }
.n-grid { display: grid; gap: 20px; }
.n-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.n-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.n-button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 9px; padding: 10px 24px; border: 1px solid var(--n-border); color: color-mix(in srgb, var(--n-text) 86%, transparent); background: transparent; font: 700 14px Cairo, sans-serif; transition: border-color .2s, color .2s, background .2s, transform .2s; }
.n-button:hover { border-color: var(--n-gold); color: var(--n-gold); transform: translateY(-2px); }
.n-button:active { transform: scale(.98); }
.n-button--primary { border-color: var(--n-red); color: #fff; background: var(--n-red); }
.n-button--primary:hover { border-color: var(--n-red-bright); color: #fff; background: var(--n-red-bright); }
.n-button--soon { position: relative; cursor: default; opacity: .92; }
.n-button--soon:hover { border-color: var(--n-red); color: #fff; background: var(--n-red); transform: none; }
.n-button--soon::after { content: "قريبًا"; margin-right: 5px; padding: 3px 7px; border: 1px solid rgba(255,255,255,.3); color: #fff; background: rgba(0,0,0,.22); font: 800 9px Cairo, sans-serif; }

/* Header */
.n-site-header { position: sticky; top: 0; z-index: 200; border-bottom: 1px solid var(--n-border); background: rgba(12, 12, 14, .86); backdrop-filter: blur(16px); transition: background .3s, box-shadow .3s; }
.n-site-header.is-scrolled { background: rgba(9, 9, 11, .96); box-shadow: 0 14px 38px rgba(0,0,0,.28); }
.admin-bar .n-site-header { top: 32px; }
.n-header-inner { width: min(calc(100% - 32px), 1280px); min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-inline: auto; }
.n-brand { display: flex; align-items: center; flex: 0 0 auto; gap: 12px; }
.n-brand-word { color: var(--n-text); font: 600 20px/1 "IBM Plex Mono", Consolas, monospace; letter-spacing: .25em; text-shadow: 0 0 1px rgba(255,255,255,.3); }
.n-brand-word span { display: inline-block; color: var(--n-red-bright); animation: n-logo-pulse 3.6s ease-in-out infinite; }
.n-brand:hover .n-brand-word { color: #fff; text-shadow: 0 0 16px rgba(255,255,255,.16); }
.n-brand small { color: var(--n-muted); font: 600 11px/1.2 Cairo, Tahoma, sans-serif; white-space: nowrap; }
.n-logo { display: flex; align-items: center; flex: 0 0 auto; font: 900 21px/1 Cairo, sans-serif; letter-spacing: .14em; }
.n-logo-mark { width: 8px; height: 8px; margin-left: 9px; border: 1px solid var(--n-red-bright); transform: rotate(45deg); }
.n-logo small { display: block; margin-top: 7px; color: var(--n-muted); font: 500 7px/1 "IBM Plex Mono", monospace; letter-spacing: .04em; }
.n-navigation { flex: 1; }
.n-navigation ul { display: flex; align-items: center; justify-content: center; gap: 24px; margin: 0; padding: 0; list-style: none; }
.n-navigation a { color: color-mix(in srgb, var(--n-text) 82%, transparent); font: 600 14px Cairo, Tahoma, sans-serif; white-space: nowrap; transition: color .2s; }
.n-navigation a:hover { color: var(--n-gold); }
.n-navigation a.is-active { padding-bottom: 4px; border-bottom: 1px solid var(--n-red); color: var(--n-gold); }
.n-header-actions { display: flex; align-items: center; flex: 0 0 auto; gap: 12px; }
.n-language { display: flex; align-items: center; gap: 4px; padding: 4px 6px; border: 1px solid var(--n-border); direction: rtl; font: 600 11px/1 "IBM Plex Mono", Consolas, monospace; letter-spacing: .06em; }
.n-language span { padding: 5px 6px; color: var(--n-muted); }
.n-language .is-active { color: #fff; background: var(--n-red); }
.n-search-link, .n-menu-toggle { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--n-border); color: color-mix(in srgb, var(--n-text) 82%, transparent); background: transparent; }
.n-search-link svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; }
.n-search-link:hover, .n-menu-toggle:hover { border-color: var(--n-gold); color: var(--n-gold); }
.n-login-link { height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border: 1px solid var(--n-red); color: var(--n-text); background: color-mix(in srgb, var(--n-red) 10%, transparent); font: 800 14px Cairo, Tahoma, sans-serif; white-space: nowrap; }
.n-login-link:hover { color: #fff; background: var(--n-red); }
.n-menu-toggle { display: none; }

/* Home hero */
.n-hero { position: relative; min-height: 92dvh; display: flex; align-items: end; overflow: hidden; isolation: isolate; }
.n-hero::before { content: ""; position: absolute; inset: -18%; z-index: 1; pointer-events: none; background: radial-gradient(circle at 68% 55%, rgba(191,166,127,.1), transparent 27%); animation: n-hero-light 13s ease-in-out infinite alternate; }
.n-hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(1.2) contrast(1.055) saturate(.94); transform: scale(1.04); animation: n-hero-breathe 18s ease-in-out infinite alternate; will-change: transform; }
.n-hero-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, var(--n-bg) 0, rgba(12,12,14,.4) 54%, rgba(12,12,14,.14) 100%), linear-gradient(to left, rgba(12,12,14,.5), transparent 68%); }
.n-hero-content { position: relative; z-index: 2; padding-block: 128px 88px; }
.n-hero-kicker { margin: 0; color: var(--n-gold); font: 500 12px/1.4 "IBM Plex Mono", monospace; letter-spacing: .4em; }
.n-hero-title { max-width: 900px; margin: 20px 0 0; font: 900 clamp(44px, 6.4vw, 72px)/1.2 Cairo, sans-serif; text-shadow: 0 4px 28px rgba(0,0,0,.45); }
.n-hero-title span { color: var(--n-red-bright); }
.n-hero-lead { max-width: 640px; margin: 24px 0 0; color: color-mix(in srgb, var(--n-text) 88%, transparent); font-size: clamp(19px, 2vw, 22px); line-height: 2; }
.n-hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }
.n-hero-stats { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 60px; }
.n-stat { min-width: 105px; }
.n-stat strong { display: block; font: 900 30px/1.2 Cairo, sans-serif; }
.n-stat span { display: block; margin-top: 5px; color: color-mix(in srgb, var(--n-text) 66%, transparent); font: 600 11px "IBM Plex Mono", monospace; letter-spacing: .06em; }
.n-ticker { overflow: hidden; padding: 11px 0; border-block: 1px solid var(--n-border); background: color-mix(in srgb, var(--n-card) 60%, transparent); }
.n-ticker-track { width: max-content; display: flex; gap: 40px; animation: n-ticker 36s linear infinite; }
.n-ticker span { display: flex; align-items: center; gap: 40px; color: var(--n-muted); font: 500 12px "IBM Plex Mono", monospace; letter-spacing: .3em; }
.n-ticker b { color: var(--n-red); font-weight: 400; }
@keyframes n-ticker { to { transform: translateX(-50%); } }
.n-ticker:hover .n-ticker-track { animation-play-state: paused; }
@keyframes n-hero-breathe { from { transform: scale(1.04) translate3d(0,0,0); } to { transform: scale(1.095) translate3d(-.7%, -.6%, 0); } }
@keyframes n-hero-light { from { transform: translate3d(-2%, 1%, 0) scale(.96); opacity: .55; } to { transform: translate3d(3%, -1%, 0) scale(1.06); opacity: 1; } }
@keyframes n-hero-entry { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes n-logo-pulse { 0%, 72%, 100% { opacity: 1; text-shadow: none; } 80% { opacity: .48; text-shadow: 0 0 12px var(--n-red-bright); } 88% { opacity: 1; } }
.n-hero-content > * { opacity: 0; animation: n-hero-entry .8s cubic-bezier(.2,.75,.25,1) forwards; }
.n-hero-content > :nth-child(2) { animation-delay: .09s; }
.n-hero-content > :nth-child(3) { animation-delay: .18s; }
.n-hero-content > :nth-child(4) { animation-delay: .27s; }
.n-hero-content > :nth-child(5) { animation-delay: .36s; }

/* File of the night */
.n-night-file { display: grid; grid-template-columns: 1.12fr .88fr; overflow: hidden; border: 1px solid var(--n-border); background: var(--n-card); box-shadow: 0 24px 70px rgba(0,0,0,.24); }
.n-night-image { position: relative; min-height: 500px; overflow: hidden; }
.n-night-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12,12,14,.3), transparent 62%); }
.n-night-image img { width: 100%; height: 100%; object-fit: cover; filter: brightness(1.14) contrast(1.03); transition: transform .5s, filter .5s; }
.n-night-file:hover .n-night-image img { transform: scale(1.025); }
.n-night-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(30px, 4vw, 56px); }
.n-card-badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.n-case-number { padding: 5px 8px; color: var(--n-gold); background: rgba(10,10,12,.65); font: 500 11px "IBM Plex Mono", monospace; letter-spacing: .1em; }
.n-premium-badge { padding: 5px 8px; color: #fff; background: var(--n-red); font: 800 10px Cairo, sans-serif; }
.n-night-copy h2 { margin: 14px 0 8px; font: 900 clamp(32px, 3.7vw, 50px)/1.35 Cairo, sans-serif; }
.n-night-copy > p { margin: 0; color: color-mix(in srgb, var(--n-text) 82%, transparent); font-size: 17px; line-height: 2; }
.n-night-details { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 20px 0 26px; color: var(--n-muted); font: 600 10px "IBM Plex Mono", monospace; }

/* Cards */
.n-case-card { position: relative; min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--n-border); background: var(--n-card); transition: transform .25s, border-color .25s, box-shadow .25s; }
.n-case-card::before { content: ""; position: absolute; top: 0; right: 0; left: 0; z-index: 4; height: 2px; background: linear-gradient(90deg, transparent, var(--n-red-bright), transparent); transform: scaleX(0); transition: transform .3s; }
.n-case-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--n-gold) 45%, var(--n-border)); box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.n-case-card:hover::before { transform: scaleX(1); }
.n-case-card__image { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #17171a; }
.n-case-card__image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12,12,14,.52), transparent 58%); }
.n-case-card__image img { width: 100%; height: 100%; object-fit: cover; filter: brightness(1.13) contrast(1.025) saturate(.96); transition: transform .5s, filter .5s; }
.n-case-card:hover .n-case-card__image img { transform: scale(1.045); filter: brightness(1.2) contrast(1.03) saturate(1); }
.n-case-card__stamp { position: absolute; top: 12px; right: 12px; z-index: 2; padding: 5px 8px; color: var(--n-text); background: rgba(12,12,14,.72); font: 700 10px Cairo, sans-serif; }
.n-case-card__stamp--premium { color: #fff; background: var(--n-red); }
.n-case-card__case { position: absolute; right: 12px; bottom: 12px; z-index: 2; padding: 5px 8px; color: var(--n-gold); background: rgba(12,12,14,.72); font: 500 10px "IBM Plex Mono", monospace; letter-spacing: .1em; }
.n-case-card__body { flex: 1; display: flex; flex-direction: column; padding: 22px; }
.n-case-card__top { min-height: 24px; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--n-muted); font: 700 10px Cairo, sans-serif; }
.n-status { padding: 2px 7px; border: 1px solid var(--n-border); color: var(--n-muted); font-size: 9px; }
.n-status--classified { border-color: var(--n-red); color: #fff; background: var(--n-red); }
.n-case-card h3 { margin: 0; font: 900 20px/1.55 Cairo, sans-serif; transition: color .2s; }
.n-case-card:hover h3 { color: var(--n-gold); }
.n-case-card p { flex: 1; display: -webkit-box; margin: 8px 0 0; overflow: hidden; color: color-mix(in srgb, var(--n-text) 76%, transparent); font-size: 14px; line-height: 1.9; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.n-case-card__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 18px; padding-top: 13px; border-top: 1px solid var(--n-border); color: color-mix(in srgb, var(--n-text) 66%, transparent); font: 600 10px "IBM Plex Mono", monospace; }
.n-levels { display: flex; gap: 9px; }
.n-level { display: flex; align-items: center; gap: 4px; }
.n-level b { color: var(--n-text); }

/* Home secondary sections */
.n-popular-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; padding: 1px; background: var(--n-border); }
.n-popular-item { display: flex; align-items: center; gap: 16px; min-height: 98px; padding: 18px; background: var(--n-card); transition: background .2s; }
.n-popular-item:hover { background: color-mix(in srgb, var(--n-card) 82%, var(--n-red)); }
.n-rank { width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--n-border); color: var(--n-gold); font: 700 14px "IBM Plex Mono", monospace; }
.n-popular-item > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.n-popular-item small { color: var(--n-red-bright); font: 500 9px "IBM Plex Mono", monospace; letter-spacing: .12em; }
.n-popular-item strong { overflow: hidden; font: 800 16px/1.5 Cairo, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.n-popular-arrow { margin-right: auto; color: var(--n-muted); }
.n-file13 { position: relative; overflow: hidden; padding: 96px 0; border-block: 1px solid var(--n-border); background: var(--n-bg); }
.n-file13::before { content: ""; position: absolute; inset: 0; opacity: .42; filter: brightness(1.12); background-image: linear-gradient(to left, var(--n-bg), transparent, var(--n-bg)), linear-gradient(to top, var(--n-bg), transparent), var(--n-file13-image); background-position: center; background-size: cover; }
.n-file13-inner { position: relative; z-index: 1; text-align: center; }
.n-file13 h2 { margin: 8px 0 12px; font: 900 clamp(33px, 5vw, 56px)/1.3 Cairo, sans-serif; }
.n-file13 p { max-width: 650px; margin: 0 auto 26px; color: color-mix(in srgb, var(--n-text) 74%, transparent); font-size: 17px; line-height: 2; }
.n-sections-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; padding: 1px; background: var(--n-border); }
.n-section-tile { position: relative; min-height: 220px; display: flex; flex-direction: column; overflow: hidden; padding: 26px; background: var(--n-card); transition: background .2s, transform .2s; }
.n-section-tile:hover { background: color-mix(in srgb, var(--n-card) 82%, var(--n-red)); }
.n-section-tile:hover { z-index: 1; transform: translateY(-3px); }
.n-section-tile small { color: var(--n-red-bright); font: 500 10px "IBM Plex Mono", monospace; letter-spacing: .2em; }
.n-section-tile h3 { margin: 28px 0 8px; font: 900 21px Cairo, sans-serif; }
.n-section-tile p { margin: 0; color: var(--n-muted); font-size: 14px; line-height: 1.9; }
.n-section-tile span { margin-top: auto; color: var(--n-gold); font: 700 11px Cairo, sans-serif; }
.n-audio-card { display: block; overflow: hidden; border: 1px solid var(--n-border); background: var(--n-card); padding-bottom: 20px; }
.n-audio-card__image { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.n-audio-card__image::after { content: ""; position: absolute; inset: 0; background: rgba(12,12,14,.16); }
.n-audio-card img { width: 100%; height: 100%; object-fit: cover; filter: brightness(1.12) contrast(1.02); transition: transform .45s, filter .45s; }
.n-audio-card:hover img { transform: scale(1.04); }
.n-audio-card i { position: absolute; z-index: 2; top: 50%; left: 50%; width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid var(--n-red); color: #fff; background: rgba(123,44,54,.82); font-style: normal; transform: translate(-50%,-50%); }
.n-audio-card > small { display: block; margin: 18px 20px 0; color: var(--n-red-bright); font: 500 10px "IBM Plex Mono", monospace; letter-spacing: .22em; }
.n-audio-card h3 { margin: 7px 20px 0; font: 900 18px/1.5 Cairo, sans-serif; }
.n-black-archive { position: relative; overflow: hidden; padding: 96px 0; scroll-margin-top: 76px; border-block: 1px solid var(--n-border); background: radial-gradient(circle at 20% 0, rgba(129,42,55,.18), transparent 36%), var(--n-bg); }
.n-black-inner { display: grid; grid-template-columns: .65fr 1.35fr; align-items: center; gap: 80px; }
.n-black-mark { display: grid; place-items: center; aspect-ratio: 1; border: 1px solid color-mix(in srgb, var(--n-red) 60%, var(--n-border)); color: rgba(150,53,67,.35); font: 900 clamp(90px, 13vw, 180px)/1 "IBM Plex Mono", monospace; transform: rotate(-4deg); }
.n-black-inner h2 { max-width: 700px; margin: 8px 0 14px; font: 900 clamp(32px, 4vw, 48px)/1.35 Cairo, sans-serif; }
.n-black-inner p { max-width: 650px; margin: 0; color: color-mix(in srgb, var(--n-text) 74%, transparent); line-height: 2; }
.n-black-inner ul { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 24px; margin: 24px 0 30px; padding: 0; list-style: none; font: 700 13px Cairo, sans-serif; }
.n-black-inner li::before { content: "✦"; margin-left: 8px; color: var(--n-gold); font-size: 9px; }
.n-coming-note { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 8px 12px; border: 1px solid color-mix(in srgb, var(--n-gold) 48%, var(--n-border)); color: var(--n-gold); background: rgba(178,151,108,.06); font: 800 12px Cairo, sans-serif; }
.n-coming-note::before { content: "●"; color: var(--n-red-bright); font-size: 8px; animation: n-logo-pulse 2.2s ease-in-out infinite; }
.n-newsletter { position: relative; overflow: hidden; border-block: 1px solid var(--n-border); background: color-mix(in srgb, var(--n-card) 42%, transparent); }
.n-newsletter::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, rgba(123,44,54,.1), transparent); }
.n-newsletter-inner { position: relative; width: min(calc(100% - 32px), 768px); margin-inline: auto; padding: 80px 0; text-align: center; }
.n-newsletter-icon { width: 48px; height: 48px; margin-inline: auto; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--n-red) 50%, transparent); color: var(--n-gold); background: color-mix(in srgb, var(--n-red) 10%, transparent); }
.n-newsletter-kicker { margin: 24px 0 0; color: var(--n-red-bright); font: 500 11px "IBM Plex Mono", monospace; letter-spacing: .4em; }
.n-newsletter h2 { margin: 12px 0 0; font: 900 clamp(30px, 4vw, 40px)/1.4 Cairo, sans-serif; }
.n-newsletter > .n-newsletter-inner > p:last-of-type { margin: 14px 0 0; color: color-mix(in srgb, var(--n-text) 74%, transparent); font-size: 16px; }
.n-newsletter-form { max-width: 448px; display: flex; gap: 12px; margin: 30px auto 0; }
.n-newsletter-form input { height: 48px; flex: 1; min-width: 0; padding: 0 14px; border: 1px solid var(--n-border); border-radius: 0; outline: 0; color: var(--n-text); background: var(--n-bg); font: 500 13px "IBM Plex Mono", monospace; text-align: left; }
.n-newsletter-form input:focus { border-color: var(--n-red); }
.n-newsletter-form button { height: 48px; padding: 0 24px; border: 1px solid var(--n-red); color: #fff; background: var(--n-red); font: 800 13px Cairo, sans-serif; }
.n-subscribe-success { max-width: 500px; margin: 30px auto 0; padding: 14px; border: 1px solid rgba(52,145,96,.45); color: var(--n-text); background: rgba(52,145,96,.1); font: 700 13px Cairo, sans-serif; }

/* Reader submission */
.n-submit-hero { padding: 80px 0 48px; border-bottom: 1px solid var(--n-border); background: radial-gradient(circle at 20% 0, rgba(123,44,54,.14), transparent 36%); }
.n-submit-layout { width: min(calc(100% - 32px), 1000px); display: grid; grid-template-columns: .72fr 1.28fr; align-items: start; gap: 28px; margin-inline: auto; }
.n-submit-note { position: sticky; top: 92px; padding: 28px; border: 1px solid var(--n-border); background: var(--n-card); }
.n-submit-note > span { color: var(--n-red-bright); font: 600 10px "IBM Plex Mono", monospace; letter-spacing: .25em; }
.n-submit-note h2 { margin: 12px 0 18px; font: 900 24px/1.5 Cairo, sans-serif; }
.n-submit-note ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; color: color-mix(in srgb, var(--n-text) 76%, transparent); font-size: 15px; }
.n-submit-note li::before { content: "✦"; margin-left: 8px; color: var(--n-gold); font-size: 8px; }
.n-submit-panel { padding: 30px; border: 1px solid var(--n-border); background: var(--n-card); }
.n-submit-form { display: grid; gap: 20px; }
.n-submit-form label { display: grid; gap: 8px; }
.n-submit-form label > span { color: color-mix(in srgb, var(--n-text) 82%, transparent); font: 700 13px Cairo, sans-serif; }
.n-form-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.n-submit-form input[type="text"], .n-submit-form input[type="email"], .n-submit-form textarea { width: 100%; border: 1px solid var(--n-border); border-radius: 0; outline: 0; color: var(--n-text); background: var(--n-bg); }
.n-submit-form input[type="text"], .n-submit-form input[type="email"] { height: 50px; padding: 0 14px; }
.n-submit-form textarea { min-height: 240px; padding: 14px; resize: vertical; line-height: 1.9; }
.n-submit-form input:focus, .n-submit-form textarea:focus { border-color: var(--n-red); box-shadow: 0 0 0 1px var(--n-red); }
.n-submit-form .n-consent { display: flex; grid-template-columns: none; align-items: start; gap: 9px; }
.n-consent input { margin-top: 7px; accent-color: var(--n-red); }
.n-form-message { display: grid; gap: 3px; margin-bottom: 22px; padding: 14px 16px; border: 1px solid var(--n-border); font-size: 14px; }
.n-form-message span { color: var(--n-muted); }
.n-form-message.is-success { border-color: rgba(52,145,96,.5); background: rgba(52,145,96,.09); }
.n-form-message.is-error { border-color: rgba(185,64,79,.55); background: rgba(185,64,79,.09); }
.n-honeypot { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* Archive */
.n-archive-hero { padding: 64px 0 40px; border-bottom: 1px solid var(--n-border); }
.n-archive-count { margin-top: 14px; color: var(--n-muted); font: 500 10px "IBM Plex Mono", monospace; }
.n-filters { padding: 24px 0; border-bottom: 1px solid var(--n-border); background: var(--n-bg); }
.n-quick-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.n-quick-filters a { padding: 7px 14px; border: 1px solid var(--n-border); color: color-mix(in srgb, var(--n-text) 74%, transparent); font: 700 12px Cairo, sans-serif; }
.n-quick-filters a:hover { border-color: var(--n-gold); color: var(--n-gold); }
.n-quick-filters .is-active { border-color: var(--n-red); color: #fff; background: var(--n-red); }
.n-filter-form { display: grid; grid-template-columns: minmax(200px, 1.7fr) repeat(5, minmax(112px, .7fr)) auto; gap: 8px; }
.n-field { position: relative; }
.n-field label { position: absolute; top: 5px; right: 11px; z-index: 2; color: var(--n-muted); font: 600 8px "IBM Plex Mono", monospace; }
.n-field input, .n-field select { width: 100%; height: 50px; padding: 17px 10px 3px; border: 1px solid var(--n-border); border-radius: 0; outline: 0; color: var(--n-text); background: var(--n-card); font-size: 13px; }
.n-field input:focus, .n-field select:focus { border-color: var(--n-red); }
.n-field select option { color: var(--n-text); background: var(--n-card); }
.n-filter-submit { min-width: 86px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding-inline: 14px; border: 1px solid var(--n-red); color: #fff; background: var(--n-red); font: 800 12px Cairo, sans-serif; transition: background .2s, transform .2s; }
.n-filter-submit:hover { background: var(--n-red-bright); transform: translateY(-1px); }
.n-results-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; color: var(--n-muted); font: 500 10px "IBM Plex Mono", monospace; }
.n-results-head a:hover { color: var(--n-gold); }
.n-empty { padding: 70px 24px; text-align: center; border: 1px solid var(--n-border); background: var(--n-card); }
.n-empty h2 { margin: 0 0 8px; font: 900 28px Cairo, sans-serif; }

/* Single file */
.n-story-breadcrumbs { width: min(calc(100% - 32px), 896px); margin: 0 auto; padding-top: 22px; color: var(--n-muted); font: 600 11px Cairo, sans-serif; }
.n-story-breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 0; padding: 0; list-style: none; }
.n-story-breadcrumbs a:hover { color: var(--n-gold); }
.n-dossier-hero { position: relative; min-height: 62dvh; display: flex; align-items: end; overflow: hidden; border-bottom: 1px solid var(--n-border); }
.n-dossier-hero__media { position: absolute; inset: 0; }
.n-dossier-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--n-bg), rgba(12,12,14,.36) 58%, rgba(12,12,14,.12)), linear-gradient(to left, rgba(12,12,14,.36), transparent); }
.n-dossier-hero__media img { width: 100%; height: 100%; object-fit: cover; filter: brightness(1.14) contrast(1.025); }
.n-dossier-head { position: relative; z-index: 2; width: min(calc(100% - 32px), 896px); margin-inline: auto; padding: 120px 0 56px; }
.n-dossier-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.n-dossier-badges span { padding: 5px 9px; border: 1px solid var(--n-border); color: color-mix(in srgb, var(--n-text) 85%, transparent); background: rgba(12,12,14,.65); font: 700 10px Cairo, sans-serif; }
.n-dossier-badges .is-premium { border-color: var(--n-red); color: #fff; background: var(--n-red); }
.n-dossier-head h1 { max-width: 840px; margin: 18px 0 12px; font: 900 clamp(36px, 5.2vw, 56px)/1.3 Cairo, sans-serif; text-shadow: 0 4px 24px rgba(0,0,0,.42); }
.n-dossier-summary { max-width: 780px; margin: 0; color: color-mix(in srgb, var(--n-text) 86%, transparent); font-size: 18px; line-height: 2; }
.n-dossier-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 24px; color: var(--n-muted); font: 600 11px Cairo, sans-serif; }
.n-dossier-meta strong { color: var(--n-text); }
.n-intensity-bar { border-bottom: 1px solid var(--n-border); background: color-mix(in srgb, var(--n-card) 42%, transparent); }
.n-intensity-inner { width: min(calc(100% - 32px), 896px); min-height: 78px; display: flex; align-items: center; gap: 30px; margin-inline: auto; }
.n-intensity { flex: 1; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
.n-intensity-item { display: flex; align-items: center; gap: 10px; }
.n-intensity-item > span:first-child { width: 72px; color: var(--n-muted); font: 700 11px Cairo, sans-serif; }
.n-meter { flex: 1; display: flex; gap: 4px; direction: ltr; }
.n-meter i { height: 6px; flex: 1; background: var(--n-border); }
.n-meter i.is-on { background: var(--n-red); }
.n-intensity-item b { color: color-mix(in srgb, var(--n-text) 72%, transparent); font: 500 10px "IBM Plex Mono", monospace; }
.n-story-content { width: min(calc(100% - 32px), 720px); margin-inline: auto; padding: 56px 0 80px; }
.n-story-excerpt { margin: 0 0 48px; padding: 18px 22px; border-right: 3px solid var(--n-red); color: color-mix(in srgb, var(--n-text) 90%, transparent); background: color-mix(in srgb, var(--n-card) 68%, transparent); font-size: 18px; font-weight: 500; line-height: 2; }
.n-story-body { color: color-mix(in srgb, var(--n-text) 94%, transparent); font-size: 18px; line-height: 2.1; }
.n-story-body p { margin: 0 0 1.6em; }
.n-story-body h2, .n-story-body h3 { margin: 2em 0 .7em; font-family: Cairo, sans-serif; line-height: 1.45; }
.n-story-body blockquote { margin: 2em 0; padding: 20px 24px; border-right: 3px solid var(--n-red); background: var(--n-card); }
.n-save-link { flex: 0 0 auto; min-height: 42px; display: inline-flex; align-items: center; padding: 7px 15px; border: 1px solid var(--n-border); color: color-mix(in srgb, var(--n-text) 75%, transparent); font: 700 12px Cairo, sans-serif; }
.n-save-link:hover { border-color: var(--n-gold); color: var(--n-gold); }
.n-audio { margin: 38px 0; padding: 20px; border: 1px solid var(--n-border); background: var(--n-card); }
.n-audio audio { width: 100%; margin-top: 14px; }
.n-classified { position: relative; margin: 38px 0; padding: 56px 28px; overflow: hidden; text-align: center; border: 1px solid color-mix(in srgb, var(--n-red) 55%, var(--n-border)); background: radial-gradient(circle at 50% 0, rgba(123,44,54,.15), transparent 55%), var(--n-card); }
.n-classified::before { content: "CLASSIFIED"; position: absolute; inset: 32% 0 auto; color: rgba(255,255,255,.025); font: 900 clamp(48px, 10vw, 90px)/1 "IBM Plex Mono", monospace; transform: rotate(-6deg); }
.n-classified > * { position: relative; }
.n-classified h2 { margin: 0 0 10px; font: 900 28px Cairo, sans-serif; }
.n-classified p { color: var(--n-muted); }
.n-evidence-section { margin-top: 52px; padding: 24px; border: 1px solid var(--n-border); background: rgba(12,12,14,.4); }
.n-evidence-section > h2 { margin: 0 0 20px; font: 900 25px Cairo, sans-serif; }
.n-evidence-section > h2::before { content: "EVIDENCE ROOM"; display: block; margin-bottom: 8px; color: var(--n-red-bright); font: 500 9px "IBM Plex Mono", monospace; letter-spacing: .3em; }
.n-evidence-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.n-evidence { padding: 16px; border: 1px solid var(--n-border); background: color-mix(in srgb, var(--n-card) 65%, transparent); }
.n-evidence small { color: var(--n-red-bright); font: 500 9px "IBM Plex Mono", monospace; }
.n-evidence h3 { margin: 7px 0; font: 800 15px Cairo, sans-serif; }
.n-evidence p { margin: 0; color: var(--n-muted); font-size: 13px; line-height: 1.8; }
.n-timeline { margin: 0; padding: 0 20px 0 0; list-style: none; border-right: 1px solid var(--n-border); }
.n-timeline li { position: relative; padding: 0 20px 22px 0; }
.n-timeline li::before { content: ""; position: absolute; top: 10px; right: -25px; width: 8px; height: 8px; border: 2px solid var(--n-red-bright); background: var(--n-bg); transform: rotate(45deg); }
.n-timeline time { color: var(--n-gold); font: 500 10px "IBM Plex Mono", monospace; }
.n-timeline p { margin: 4px 0 0; }
.n-side-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.n-side-list li { padding-bottom: 8px; border-bottom: 1px solid var(--n-border); }

/* Footer */
.n-site-footer { border-top: 1px solid var(--n-border); background: #09090b; }
.n-footer-main { display: grid; grid-template-columns: 1.4fr repeat(3, .7fr); gap: 42px; padding: 64px 0; }
.n-brand--footer { width: fit-content; margin-bottom: 18px; }
.n-footer-about p { max-width: 500px; color: var(--n-muted); }
.n-footer-title { margin: 0 0 16px; color: var(--n-gold); font: 600 10px "IBM Plex Mono", monospace; letter-spacing: .15em; }
.n-footer-links { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; color: var(--n-muted); font-size: 14px; }
.n-footer-links a:hover { color: var(--n-gold); }
.n-footer-email { display: inline-block; margin-top: 18px; color: var(--n-gold); font: 500 10px "IBM Plex Mono", monospace; direction: ltr; }
.n-footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; border-top: 1px solid var(--n-border); color: var(--n-muted); font: 500 9px "IBM Plex Mono", monospace; }
.nav-links { display: flex; justify-content: center; gap: 6px; margin-top: 42px; }
.nav-links .page-numbers { min-width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--n-border); background: var(--n-card); }
.nav-links .current, .nav-links a:hover { border-color: var(--n-red); background: var(--n-red); }
.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; }

/* Cinematic motion */
html.has-reveal [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .72s cubic-bezier(.2,.75,.25,1), transform .72s cubic-bezier(.2,.75,.25,1); transition-delay: var(--n-delay, 0ms); }
html.has-reveal [data-reveal="left"] { transform: translateX(-26px); }
html.has-reveal [data-reveal="right"] { transform: translateX(26px); }
html.has-reveal [data-reveal].is-revealed { opacity: 1; transform: translate3d(0,0,0); }

@media (max-width: 1279px) {
    .n-navigation { position: absolute; top: 64px; right: 0; left: 0; display: none; padding: 16px 20px 24px; border-bottom: 1px solid var(--n-border); background: rgba(10,10,12,.98); }
    .n-navigation.is-open { display: block; }
    .n-navigation ul { align-items: stretch; flex-direction: column; gap: 0; }
    .n-navigation a, .n-navigation a.is-active { display: block; padding: 10px 4px; border-bottom: 1px solid var(--n-border); }
    .n-menu-toggle { display: grid; }
    .n-filter-form { grid-template-columns: repeat(4, 1fr); }
    .n-field--search { grid-column: span 2; }
    .n-filter-submit { min-height: 50px; }
    .n-sections-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 1100px) {
    .n-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
    .n-site-header .n-brand small { display: none; }
}
@media (max-width: 860px) {
    .n-grid--3, .n-grid--2 { grid-template-columns: 1fr; }
    .n-night-file { grid-template-columns: 1fr; }
    .n-night-image { min-height: 0; aspect-ratio: 16/10; }
    .n-popular-grid { grid-template-columns: 1fr; }
    .n-sections-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .n-black-inner { grid-template-columns: 1fr; gap: 40px; }
    .n-black-mark { width: min(280px, 70vw); margin-inline: auto; }
    .n-submit-layout { grid-template-columns: 1fr; }
    .n-submit-note { position: static; }
    .n-footer-main { grid-template-columns: 1fr 1fr; }
    .n-footer-about { grid-column: 1/-1; }
}
@media (max-width: 640px) {
    .n-container, .n-dossier-head, .n-story-breadcrumbs, .n-intensity-inner, .n-story-content { width: min(calc(100% - 26px), var(--n-max)); }
    .n-header-inner { width: min(calc(100% - 20px), 1280px); }
    .admin-bar .n-site-header { top: 46px; }
    .n-brand-word { font-size: 17px; }
    .n-language { display: none; }
    .n-login-link { display: none; }
    .n-section, .n-section--compact, .n-section--muted { padding-block: 56px; }
    .n-section-head { align-items: start; flex-direction: column; margin-bottom: 28px; }
    .n-hero-content { padding-block: 110px 50px; }
    .n-hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
    .n-stat strong { font-size: 24px; }
    .n-night-copy { padding: 26px 20px 30px; }
    .n-sections-grid { grid-template-columns: 1fr; }
    .n-section-tile { min-height: 210px; }
    .n-black-inner ul { grid-template-columns: 1fr; }
    .n-newsletter-form { flex-direction: column; }
    .n-newsletter-form button { width: 100%; }
    .n-form-row { grid-template-columns: 1fr; }
    .n-submit-panel { padding: 22px 18px; }
    .n-filter-form { grid-template-columns: 1fr 1fr; }
    .n-field--search { grid-column: 1/-1; }
    .n-filter-submit { grid-column: 1/-1; }
    .n-dossier-hero { min-height: 560px; }
    .n-dossier-head { padding-bottom: 40px; }
    .n-intensity-inner { align-items: stretch; flex-direction: column; gap: 18px; padding-block: 18px; }
    .n-intensity { grid-template-columns: 1fr; gap: 12px; }
    .n-save-link { justify-content: center; }
    .n-story-body { font-size: 18px; }
    .n-evidence-grid { grid-template-columns: 1fr; }
    .n-footer-main { grid-template-columns: 1fr; gap: 32px; }
    .n-footer-about { grid-column: auto; }
    .n-footer-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .n-ticker-track, .n-hero-media, .n-hero::before, .n-brand-word span, .n-hero-content > * { animation: none !important; } .n-hero-content > *, html.has-reveal [data-reveal] { opacity: 1; transform: none; } * { transition-duration: .01ms !important; } }
