/* Nasyceni Atlas v1.0.0 — wszystkie reguły ograniczone do nowego szablonu.
   Celowo NIE ustawiamy background-color/background-image dla html i body.
   Newspaper zachowuje własne tło wokół centralnego portalu. */
body.nsa-portal-body .nsa-shell,
body.nsa-portal-body .nsa-shell * { box-sizing: border-box; }
body.nsa-portal-body .nsa-shell {
  --nsa-night: #06111f;
  --nsa-ink: #071729;
  --nsa-surface: #0b1b2d;
  --nsa-surface-raised: #10263c;
  --nsa-rule: rgba(85,175,219,.19);
  --nsa-cyan: #25d9ed;
  --nsa-mint: #9fee55;
  --nsa-main-text: #eff8ff;
  --nsa-muted: #aec5d7;
  width: calc(100% - 34px); max-width: 1490px; margin: 0 auto;
  color: var(--nsa-main-text);
  font: 400 15px/1.56 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: var(--nsa-night);
  isolation: isolate;
  box-shadow: 0 15px 90px rgba(0, 0, 0, .28);
  overflow: clip;
}
body.nsa-portal-body .nsa-shell a { color: inherit; text-decoration: none; transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease; }
body.nsa-portal-body .nsa-shell button,
body.nsa-portal-body .nsa-shell input { font: inherit; }
body.nsa-portal-body .nsa-shell button { cursor: pointer; }
body.nsa-portal-body .nsa-shell a:focus-visible,
body.nsa-portal-body .nsa-shell button:focus-visible,
body.nsa-portal-body .nsa-shell input:focus-visible { outline: 3px solid #78f6ff; outline-offset: 3px; }
body.nsa-portal-body .nsa-shell img { max-width: 100%; height: auto; }
body.nsa-portal-body .nsa-shell h1,
body.nsa-portal-body .nsa-shell h2,
body.nsa-portal-body .nsa-shell h3,
body.nsa-portal-body .nsa-shell h4 { font-family: inherit; letter-spacing: -.032em; font-weight: 790; color: inherit; }
body.nsa-portal-body .nsa-shell p { margin: 0; }
body.nsa-portal-body .nsa-shell ul,
body.nsa-portal-body .nsa-shell ol { margin: 0; }
body.nsa-portal-body .nsa-shell .nsa-wide { width: calc(100% - 84px); max-width: 1370px; margin-left: auto; margin-right: auto; }
.nsa-shell .nsa-icon { display: inline-block; width: 20px; height: 20px; vertical-align: middle; flex-shrink: 0; }
.nsa-visuallyHidden { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap !important; }

/* Header: pełne menu i strona górna na każdej podstronie. */
.nsa-siteHeader { color: #f7fbff; position: relative; z-index: 50; }
.nsa-topbar { min-height: 34px; background: #0b1b30; border-bottom: 1px solid rgba(106,157,194,.14); font-size: 11px; color: #a7c1d8; }
.nsa-topbar__inner { min-height: 34px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.nsa-topbar__date { color: #d0dde8; }
.nsa-topbar__links { display: flex; gap: 22px; align-items: center; margin-right: auto; margin-left: 30px; }
.nsa-topbar__links a:hover { color: #40eeff !important; }
.nsa-topbar__tagline { letter-spacing: .02em; white-space: nowrap; }
.nsa-navbar { background: rgba(2,13,27,.985); border-bottom: 1px solid #16374f; box-shadow: 0 4px 22px rgba(0,0,0,.15); position: sticky; top: 0; z-index: 51; }
body.admin-bar .nsa-navbar { top: 32px; }
.nsa-navbar__inner { min-height: 80px; display: flex; gap: 28px; align-items: center; }
body.nsa-portal-body .nsa-logo { color: #f8fcff; font-family: Arial, Helvetica, sans-serif; font-size: clamp(26px, 2.25vw, 35px); line-height: 1; font-weight: 900; letter-spacing: -.055em; white-space: nowrap; }
.nsa-logo__dot { color: #26e9da; }
.nsa-primaryNav { display: flex; align-items: center; justify-content: center; flex: 1; gap: clamp(12px,1.8vw,28px); }
body.nsa-portal-body .nsa-primaryNav a { font-size: 12px; font-weight: 720; color: #d5e2ef; white-space: nowrap; line-height: 1.35; }
body.nsa-portal-body .nsa-primaryNav a:hover,
body.nsa-portal-body .nsa-primaryNav a:focus-visible { color: #32e6ed; }
.nsa-headerSearch { display: flex; align-items: center; width: 180px; height: 38px; border-radius: 8px; background: #13263d; border: 1px solid #29475e; flex-shrink: 0; }
body.nsa-portal-body .nsa-headerSearch input { color: #edf8ff; border: 0; min-width: 0; width: 100%; height: 100%; background: transparent; outline: none; box-shadow: none; padding: 0 0 0 11px; font-size: 11px; }
.nsa-headerSearch input::placeholder { color: #94aabd; opacity: 1; }
body.nsa-portal-body .nsa-headerSearch button { background: transparent; color: #d1ecf8; border: 0; padding: 7px 8px; display: grid; place-items: center; box-shadow: none; }
.nsa-headerSearch .nsa-icon { width: 17px; height: 17px; }
.nsa-mobileTrigger,
.nsa-mobileUtility { display: none !important; }

/* Hero */
.nsa-hero { min-height: 458px; position: relative; background: radial-gradient(ellipse at 74% 60%, #07365a 0%, transparent 49%), linear-gradient(145deg, #020b18 10%, #031328 65%, #06233a); overflow: hidden; }
.nsa-hero::before { content: ""; pointer-events: none; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #020b18 0%, rgba(2,11,24,.96) 27%, rgba(2,11,24,.78) 41%, rgba(2,11,24,.22) 67%, rgba(2,11,24,.05) 100%); }
.nsa-hero::after { content: ""; position: absolute; inset: 0; z-index: 2; opacity: .22; pointer-events: none; background: repeating-linear-gradient(147deg, transparent 0 43px, #074263 44px 45px, transparent 46px 85px); mask-image: linear-gradient(to right,#000 0,transparent 47%); }
.nsa-hero__illustration { position: absolute; z-index: 0; right: -2%; top: 50%; transform: translateY(-50%); width: 73%; max-width: none !important; min-width: 760px; height: auto; object-fit: cover; opacity: .96; }
.nsa-hero__inner { position: relative; z-index: 3; min-height: 458px; display: flex; align-items: center; }
.nsa-hero__content { max-width: 660px; padding: 36px 0 44px; }
.nsa-eyebrow { display: inline-flex; align-items: center; gap: 9px; color: #27e4ed; font-size: 11px; font-weight: 830; letter-spacing: .15em; line-height: 1.4; text-transform: uppercase; }
.nsa-dash { width: 15px; height: 4px; border-top: 2px solid #9cf75f; border-bottom: 2px solid #9cf75f; }
.nsa-hero .nsa-eyebrow { margin-bottom: 14px; }
body.nsa-portal-body .nsa-hero h1 { font-size: clamp(35px,3.9vw,60px); line-height: 1.055; font-weight: 840; margin: 0 0 18px; letter-spacing: -.045em; max-width: 730px; color: #fff; }
.nsa-hero h1 span { color: #2cdeec; }
body.nsa-portal-body .nsa-hero p { max-width: 500px; color: #d3e5f3; font-size: clamp(15px, 1.24vw, 18px); line-height: 1.52; }
.nsa-hero__buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 23px; }
body.nsa-portal-body .nsa-button { min-height: 44px; padding: 10px 20px; display: inline-flex; gap: 12px; align-items: center; justify-content: center; border-radius: 40px; font-size: 12px; font-weight: 820; line-height: 1.15; transition: transform .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease; border: 1px solid transparent; }
body.nsa-portal-body .nsa-button:hover { transform: translateY(-2px); }
body.nsa-portal-body .nsa-button--primary { color: #051729; background: linear-gradient(100deg,#1dece1,#20bff3); box-shadow: 0 8px 28px #12c8e727; }
body.nsa-portal-body .nsa-button--primary:hover { background: #85fff5; box-shadow: 0 8px 28px #16cfea40; }
body.nsa-portal-body .nsa-button--outline { color: #e5f3ff; background: rgba(7,24,40,.35); border-color: #92adc3; }
body.nsa-portal-body .nsa-button--outline:hover { background: #133349; border-color: #25d9ed; }
.nsa-button .nsa-icon { width: 17px; height: 17px; }
.nsa-hero__stats { display: flex; flex-wrap: wrap; margin-top: 31px; }
.nsa-hero__stats div { display: flex; flex-direction: column; min-width: 127px; padding: 0 22px; border-left: 1px solid #234861; }
.nsa-hero__stats div:first-child { padding-left: 0; border-left: 0; }
.nsa-hero__stats strong { color: #9efa58; font-size: 20px; line-height: 1.3; font-weight: 850; white-space: nowrap; }
.nsa-hero__stats div:nth-child(3) strong { color: #24e5ed; font-size: 17px; }
.nsa-hero__stats small { color: #b8cddd; font-size: 10px; line-height: 1.4; }

/* Three editorial feature cards */
.nsa-featuredBlock { margin-top: 0; padding: 10px 0 14px; }
.nsa-featuredGrid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.nsa-featured { isolation: isolate; min-width: 0; min-height: 225px; position: relative; border-radius: 10px; border: 1px solid #22577d; background: linear-gradient(140deg,#06192e,#0b314b); overflow: hidden; box-shadow: 0 9px 20px rgba(0,0,0,.18); }
.nsa-featured::before { content: ""; pointer-events: none; position: absolute; z-index: -2; inset: 0; background-image: var(--nsa-feature-art); background-position: center; background-size: cover; opacity: .95; }
.nsa-featured::after { content: ""; pointer-events: none; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg,rgba(2,15,29,.98),rgba(3,17,30,.90) 34%,rgba(3,17,30,.38) 74%,rgba(3,17,30,.08)); }
body.nsa-portal-body .nsa-featured__link { display: flex; flex-direction: column; height: 100%; padding: 23px 20px 19px; }
.nsa-featured__tag { text-transform: uppercase; color: #1ceaff; letter-spacing: .12em; font-size: 10px; font-weight: 900; margin-bottom: 12px; }
body.nsa-portal-body .nsa-featured h2 { color: #fff; max-width: 245px; font-weight: 840; line-height: 1.19; font-size: clamp(17px,1.65vw,23px); margin: 0 0 10px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
body.nsa-portal-body .nsa-featured p { color: #c5d9e9; font-size: 12px; line-height: 1.47; max-width: 215px; margin-bottom: 15px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.nsa-featured__read { color: #37f3f2; font-size: 12px; font-weight: 750; display: inline-flex; gap: 7px; align-items: center; margin-top: auto; }
.nsa-featured__read .nsa-icon { width: 16px; height: 16px; }
body.nsa-portal-body .nsa-featured:hover { border-color: #35c7e7; }

/* Topic tiles */
.nsa-categoriesSection { padding-top: 13px; padding-bottom: 26px; }
.nsa-sectionHeading { display: flex; justify-content: space-between; align-items: end; gap: 22px; margin-bottom: 16px; }
body.nsa-portal-body .nsa-sectionHeading h2 { font-size: clamp(26px,2.8vw,36px); font-weight: 840; letter-spacing: -.04em; margin: 3px 0 0; line-height: 1.2; }
.nsa-sectionHeading__more { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 720; white-space: nowrap; opacity: .9; }
.nsa-sectionHeading__more:hover { color: #2ce2ed !important; }
.nsa-sectionHeading__more .nsa-icon { width: 17px; height: 17px; }
.nsa-categoriesGrid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 12px; }
body.nsa-portal-body .nsa-topic { min-width: 0; min-height: 200px; padding: 18px 10px 13px; text-align: center; display: flex; flex-direction: column; align-items: center; border-radius: 9px; border: 1px solid #1b5470; background: radial-gradient(ellipse at 50% 0,rgba(32,214,217,.14),transparent 65%),linear-gradient(146deg,#07263c,#06182b); position: relative; overflow: hidden; }
body.nsa-portal-body .nsa-topic:nth-child(2) { background: radial-gradient(ellipse at 50% 0,rgba(20,144,252,.2),transparent 70%),linear-gradient(146deg,#082042,#07182c); }
body.nsa-portal-body .nsa-topic:nth-child(3) { background: radial-gradient(ellipse at 50% 0,rgba(154,104,251,.19),transparent 70%),linear-gradient(146deg,#17243b,#0b1a30); }
body.nsa-portal-body .nsa-topic:nth-child(4) { background: radial-gradient(ellipse at 50% 0,rgba(43,197,255,.18),transparent 70%),linear-gradient(146deg,#071b34,#091c31); }
body.nsa-portal-body .nsa-topic:nth-child(5) { background: radial-gradient(ellipse at 50% 0,rgba(7,206,179,.19),transparent 70%),linear-gradient(146deg,#072a40,#07192a); }
body.nsa-portal-body .nsa-topic:nth-child(6) { background: radial-gradient(ellipse at 50% 0,rgba(123,187,255,.19),transparent 70%),linear-gradient(146deg,#10253b,#0a192e); }
body.nsa-portal-body .nsa-topic:hover { transform: translateY(-4px); border-color: #2ec8e1; background-color: #0c314d; }
.nsa-topic__icon { color: #2deff6; display: block; margin: 0 0 12px; filter: drop-shadow(0 3px 11px rgba(19,203,239,.22)); }
.nsa-topic__icon .nsa-icon { width: 50px; height: 50px; stroke-width: 1.4; }
body.nsa-portal-body .nsa-topic h3 { color: #fff; font-size: 15px; font-weight: 830; line-height: 1.17; max-width: 170px; margin: 0 0 9px; }
body.nsa-portal-body .nsa-topic p { color: #c3d6e6; font-size: 11px; line-height: 1.4; max-width: 176px; }
.nsa-topic__arrow { display: grid; place-items: center; color: #e0faff; border: 1px solid #66869a; border-radius: 50%; width: 31px; height: 31px; margin-top: auto; margin-bottom: 0; }
.nsa-topic__arrow .nsa-icon { width: 17px; height: 17px; }

/* Light section: actual 3–6 newest posts, always queried fresh from WordPress. */
.nsa-latestSection { background: #f3f7fc; color: #111c2f; padding: 30px 0 34px; }
.nsa-latestSection .nsa-eyebrow { color: #029ab7; }
body.nsa-portal-body .nsa-latestSection .nsa-sectionHeading h2 { color: #101b2d; }
body.nsa-portal-body .nsa-latestSection .nsa-sectionHeading__more { color: #0a2950; border: 1px solid #7289ac; padding: 8px 14px; border-radius: 25px; }
.nsa-latestGrid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 13px; }
.nsa-card { min-width: 0; overflow: hidden; border-radius: 9px; display: flex; flex-direction: column; }
.nsa-card--light { color: #111e31; background: #fff; border: 1px solid #d5dfeb; box-shadow: 0 7px 20px rgba(21,54,85,.065); }
.nsa-card--dark { color: #eef9ff; background: #11273c; border: 1px solid #24465e; }
.nsa-card__media { min-height: 155px; height: 155px; display: block; position: relative; background: linear-gradient(140deg,#0b3a5e,#07182f); overflow: hidden; }
body.nsa-portal-body .nsa-card__media img { object-fit: cover; width: 100%; height: 100% !important; display: block; transition: transform .4s ease; }
.nsa-card:hover .nsa-card__media img { transform: scale(1.05); }
.nsa-card__media--brain { background: radial-gradient(circle at 80% 35%, #13708d,transparent 58%),linear-gradient(130deg,#092943,#051021); }
.nsa-card__media--shield { background: radial-gradient(circle at 80% 35%, #107bbb,transparent 58%),linear-gradient(130deg,#0b2848,#0a102c); }
.nsa-card__media--devops { background: radial-gradient(circle at 80% 35%, #7055d8,transparent 58%),linear-gradient(130deg,#18344e,#0b142c); }
.nsa-card__media--cloud { background: radial-gradient(circle at 80% 35%, #0f89dc,transparent 58%),linear-gradient(130deg,#073653,#0b1529); }
.nsa-card__media--network { background: radial-gradient(circle at 80% 35%, #1e9caa,transparent 58%),linear-gradient(130deg,#103c54,#0c1832); }
.nsa-card__media--hardware { background: radial-gradient(circle at 80% 35%, #3677af,transparent 58%),linear-gradient(130deg,#172d49,#111a30); }
.nsa-card__fallback { width: 100%; height: 100%; color: #62e8f4; display: grid; place-items: center; background: repeating-radial-gradient(circle at 76% 36%,rgba(21,204,232,.12) 0 1px,transparent 2px 24px); }
.nsa-card__fallback .nsa-icon { width: 80px; height: 80px; stroke-width: 1.05; filter: drop-shadow(0 5px 18px #12d9e95c); }
.nsa-card__eyebrow { position: absolute; z-index: 1; left: 10px; top: 11px; display: block; max-width: calc(100% - 18px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #051427; background: #26dce9; border-radius: 4px; font-size: 10px; font-weight: 850; padding: 3px 8px; line-height: 1.4; }
.nsa-card__body { padding: 13px 13px 12px; flex: 1; display: flex; flex-direction: column; }
body.nsa-portal-body .nsa-card__title { font-size: 15px; font-weight: 825; line-height: 1.23; letter-spacing: -.022em; margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
body.nsa-portal-body .nsa-card--light .nsa-card__title { color: #12233a; }
body.nsa-portal-body .nsa-card--dark .nsa-card__title { color: #f2faff; }
body.nsa-portal-body .nsa-card__title a:hover { color: #039fb2; }
body.nsa-portal-body .nsa-card__excerpt { line-height: 1.4; font-size: 12px; color: #526174; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
body.nsa-portal-body .nsa-card--dark .nsa-card__excerpt { color: #aac5d9; }
.nsa-card__bottom { margin-top: auto; padding-top: 17px; display: flex; gap: 8px; justify-content: space-between; align-items: center; }
.nsa-card__bottom time { font-size: 11px; color: #5f7181; }
.nsa-card--dark .nsa-card__bottom time { color: #9ebbcf; }
.nsa-circleLink { display: grid; place-items: center; flex-shrink: 0; color: #2a435d !important; border: 1px solid #b2c4d3; width: 29px; height: 29px; border-radius: 50%; }
.nsa-circleLink .nsa-icon { width: 16px; height: 16px; }
.nsa-card--dark .nsa-circleLink { color: #e9faff !important; border-color: #456e89; }
.nsa-circleLink:hover { color: #0a3146 !important; background: #24dfed; border-color: #24dfed; }

/* More reading and RSS: no dead newsletter form. */
.nsa-editorialSection { padding: 28px 0 30px; }
.nsa-editorialSection .nsa-eyebrow { color: #a2ee54; }
.nsa-editorialGrid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px; margin-top: 8px; }
.nsa-miniStory { display: flex; min-width: 0; gap: 10px; align-items: center; }
.nsa-miniStory__number { font: 300 29px/1 Arial,sans-serif; color: #31d4ec; }
.nsa-miniStory__art { width: 72px; height: 68px; display: grid; place-items: center; flex-shrink: 0; overflow: hidden; border-radius: 6px; border: 1px solid #1d496d; color: #4aeafa !important; background: radial-gradient(circle at 60% 40%,#0a6387,#101832); }
.nsa-miniStory__art .nsa-icon { width: 36px; height: 36px; }
.nsa-miniStory__art img { width: 100%; height: 100% !important; object-fit: cover; }
body.nsa-portal-body .nsa-miniStory h3 { font-size: 11px; line-height: 1.35; font-weight: 730; letter-spacing: 0; color: #e8f3ff; margin: 0 0 6px; }
.nsa-miniStory h3 a:hover { color: #31e4ec !important; }
.nsa-miniStory time { color: #8babc1; font-size: 10px; }
.nsa-followBanner { margin-top: 34px; min-height: 95px; border: 1px solid #1f91b1; border-radius: 8px; display: flex; align-items: center; gap: 22px; padding: 20px 25px; background: radial-gradient(ellipse at 74% 160%,#0c5a73,transparent 53%),linear-gradient(100deg,#03182b,#08253a); }
.nsa-followBanner__icon { color: #15e4f1; flex-shrink: 0; }
.nsa-followBanner__icon .nsa-icon { width: 54px; height: 54px; stroke-width: 1.3; }
body.nsa-portal-body .nsa-followBanner h2 { margin: 0 0 3px; color: #f2fbff; font-size: 21px; }
body.nsa-portal-body .nsa-followBanner p { color: #bcd1e2; font-size: 12px; }
body.nsa-portal-body .nsa-button--lime { background: #a6f554; color: #09231b; margin-left: auto; white-space: nowrap; border-radius: 8px; }
body.nsa-portal-body .nsa-button--lime:hover { background: #cdfd84; }

/* Full subpages: one flat, uniform dark content surface, no white title rectangles. */
.nsa-innerPage { background: #091827; min-height: 65vh; padding: 30px 0 70px; color: #eaf5ff; }
.nsa-breadcrumbs { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; color: #90aec4; margin-bottom: 32px; font-size: 12px; }
.nsa-breadcrumbs a { display: inline-flex; gap: 6px; align-items: center; }
.nsa-breadcrumbs a:hover { color: #29edee !important; }
.nsa-breadcrumbs .nsa-icon { width: 14px; height: 14px; }
.nsa-breadcrumbs__separator { color: #46667a; }
.nsa-breadcrumbs span[aria-current] { color: #e1edf5; }
.nsa-pageColumns { display: grid; grid-template-columns: minmax(0,1fr) 305px; gap: 42px; align-items: start; }
.nsa-pageMain { min-width: 0; background: transparent; }
.nsa-article { background: transparent; padding: 0 0 16px; min-width: 0; }
.nsa-article__header { padding: 0 0 24px; border-bottom: 1px solid #25415a; background: transparent !important; }
body.nsa-portal-body .nsa-article__badge { display: inline-block; font-weight: 820; font-size: 11px; letter-spacing: .055em; color: #04202a; background: #33e4ea; padding: 5px 11px; border-radius: 4px; margin-bottom: 16px; }
body.nsa-portal-body .nsa-article__header h1 { font-size: clamp(31px,3.4vw,48px); line-height: 1.17; color: #f7fcff; font-weight: 850; letter-spacing: -.043em; margin: 0 0 16px; }
.nsa-article__meta { display: flex; flex-wrap: wrap; column-gap: 20px; row-gap: 9px; color: #adc5d7; font-size: 12px; }
.nsa-article__meta span { display: inline-flex; align-items: center; gap: 5px; }
.nsa-article__meta .nsa-icon { width: 16px; height: 16px; }
.nsa-article__cover { margin: 25px 0 20px; }
body.nsa-portal-body .nsa-article__cover img { display: block; width: 100%; max-height: 480px; height: auto !important; object-fit: contain; background: #0c2134; border-radius: 9px; }
.nsa-article__cover figcaption { text-align: right; font-size: 11px; padding-top: 7px; color: #849fb2; }
body.nsa-portal-body .nsa-article__content { min-width: 0; overflow-wrap: anywhere; color: #d3e1ef; font-size: 16px; line-height: 1.82; padding-top: 26px; }
body.nsa-portal-body .nsa-article__content > * { margin-block: 0 21px; }
body.nsa-portal-body .nsa-article__content :is(p,li,dd,dt,figcaption,blockquote) { color: #d3e1ef; font-size: inherit; line-height: inherit; }
body.nsa-portal-body .nsa-article__content p { margin: 0 0 20px; }
body.nsa-portal-body .nsa-article__content h2 { color: #f7fcff; font-size: clamp(25px,2.1vw,31px); font-weight: 820; line-height: 1.26; margin: 42px 0 18px; border-left: 4px solid #2ce2ec; padding-left: 17px; scroll-margin-top: 112px; background: transparent !important; }
body.nsa-portal-body .nsa-article__content h3 { color: #54e3ec; font-size: clamp(20px,1.7vw,24px); font-weight: 790; line-height: 1.32; margin: 30px 0 14px; scroll-margin-top: 112px; }
body.nsa-portal-body .nsa-article__content h4,
body.nsa-portal-body .nsa-article__content h5 { color: #f3faff; margin: 25px 0 13px; }
body.nsa-portal-body .nsa-article__content a { color: #5ae8f1; text-decoration: underline; text-underline-offset: 3px; }
body.nsa-portal-body .nsa-article__content a:hover { color: #aafff0; }
body.nsa-portal-body .nsa-article__content :is(ul,ol) { padding-left: 1.6em; margin: 0 0 22px; }
body.nsa-portal-body .nsa-article__content li { margin-bottom: 7px; }
body.nsa-portal-body .nsa-article__content li::marker { color: #49ddea; }
body.nsa-portal-body .nsa-article__content blockquote { margin: 26px 0; padding: 16px 20px; border-left: 4px solid #1cd5e6; background: #10263b; color: #e9f6ff; }
body.nsa-portal-body .nsa-article__content :is(pre,code,kbd,samp) { color: #c3f6dd; font-family: Consolas,"Liberation Mono",monospace; font-size: .88em; overflow-wrap: anywhere; }
body.nsa-portal-body .nsa-article__content code { padding: 2px 5px; background: #17354a; border-radius: 3px; }
body.nsa-portal-body .nsa-article__content pre { max-width: 100%; overflow-x: auto; white-space: pre; padding: 18px; background: #05111e; border: 1px solid #24465f; border-radius: 8px; }
body.nsa-portal-body .nsa-article__content pre code { background: none; padding: 0; white-space: inherit; }
body.nsa-portal-body .nsa-article__content :is(img,video,iframe,svg) { max-width: 100%; }
body.nsa-portal-body .nsa-article__content :is(img, .wp-block-image img, .td-post-content img) { height: auto !important; object-fit: contain; }
body.nsa-portal-body .nsa-article__content :is(.wp-caption,.wp-block-image,figure) { max-width: 100%; }
body.nsa-portal-body .nsa-article__content :is(.wp-block-group,.wp-block-columns,.td-post-content,.td-post-header,.td-post-featured-image) { background-color: transparent !important; box-shadow: none !important; }
body.nsa-portal-body .nsa-article__content .has-text-color:not(.has-background) { color: #dceaf6 !important; }
body.nsa-portal-body .nsa-article__content .wp-block-table { overflow-x: auto; }
body.nsa-portal-body .nsa-article__content table { display: block; overflow-x: auto; max-width: 100%; border-collapse: collapse; margin: 22px 0; color: #d9ecf6; background: transparent; }
body.nsa-portal-body .nsa-article__content :is(th,td) { padding: 10px 13px; border: 1px solid #31516a; color: #d6e6f1; background: #10283c; text-align: left; }
body.nsa-portal-body .nsa-article__content th { background: #12364c; color: #fff; }
body.nsa-portal-body .nsa-article__content .alignleft { float: left; margin: 0 20px 16px 0; }
body.nsa-portal-body .nsa-article__content .alignright { float: right; margin: 0 0 16px 20px; }
body.nsa-portal-body .nsa-article__content .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.nsa-article__content::after { content: ""; display: table; clear: both; }
.nsa-article__footer { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; padding: 22px 0; border-top: 1px solid #214159; color: #b8ccdc; font-size: 12px; }
.nsa-article__footer a { color: #58e2e8 !important; padding: 5px 9px; border: 1px solid #28566a; border-radius: 6px; }
.nsa-postNavigation { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 15px; }
.nsa-postNavigation > div { min-width: 0; }
body.nsa-portal-body .nsa-postNavigation a { display: flex; flex-direction: column; min-height: 85px; border: 1px solid #25435a; padding: 14px; border-radius: 8px; background: #0f273b; }
.nsa-postNavigation a:hover { border-color: #26cde5 !important; }
.nsa-postNavigation span { color: #54e7f2; font-size: 11px; }
.nsa-postNavigation strong { color: #edf8ff; margin-top: 5px; font-size: 13px; line-height: 1.35; }

/* Sidebar — no scroll on whole sidebar. Only the TOC list has its own scrollbar. */
.nsa-sidebar { display: flex; flex-direction: column; gap: 18px; align-items: stretch; min-width: 0; height: auto; max-height: none; overflow: visible !important; position: static; }
.nsa-sidebarBox { background: #10263b; border: 1px solid #284760; border-radius: 10px; padding: 19px; color: #edf8ff; overflow: visible; height: auto; }
.nsa-sidebarBox__header { display: flex; gap: 10px; align-items: center; margin-bottom: 13px; }
.nsa-sidebarBox__symbol { width: 33px; height: 33px; background: #143c50; color: #39dce9; border-radius: 7px; display: grid; place-items: center; }
.nsa-sidebarBox__symbol .nsa-icon { width: 18px; height: 18px; }
body.nsa-portal-body .nsa-sidebarBox__header h2 { color: #f3fbff; font-size: 17px; margin: 0; }
body.nsa-portal-body .nsa-sidebarBox__subtitle { color: #9ebcce; margin: -4px 0 12px; font-size: 12px; }
.nsa-tocNav { max-height: 315px; overflow-y: auto; overflow-x: hidden; scrollbar-color: #38a7bd #10283d; scrollbar-width: thin; padding-right: 7px; }
.nsa-tocNav::-webkit-scrollbar { width: 6px; }
.nsa-tocNav::-webkit-scrollbar-track { background: #10283d; border-radius: 8px; }
.nsa-tocNav::-webkit-scrollbar-thumb { background: #2797b8; border-radius: 8px; }
.nsa-tocList { list-style: none; padding: 0 !important; margin: 0 !important; }
.nsa-tocList li { margin: 0; }
.nsa-tocList li + li { border-top: 1px solid #203f54; }
body.nsa-portal-body .nsa-tocList a { display: block; padding: 9px 3px 9px 11px; font-size: 12px; color: #c7deeb; border-left: 2px solid transparent; line-height: 1.45; }
body.nsa-portal-body .nsa-tocList a:hover,
body.nsa-portal-body .nsa-tocList a.is-current { color: #49eff5; background: rgba(26,206,240,.055); border-left-color: #3de6ed; }
body.nsa-portal-body .nsa-tocList .nsa-tocList__sub a { font-size: 11px; color: #a6c5d7; padding-left: 23px; }
.nsa-sidebarLatest__item { display: flex; gap: 11px; align-items: start; padding: 12px 0; border-top: 1px solid #203d55; }
.nsa-sidebarLatest__item:first-child { border-top: none; padding-top: 0; }
.nsa-sidebarLatest__thumb { width: 70px; height: 61px; display: grid; place-items: center; flex-shrink: 0; color: #2aebef !important; border-radius: 6px; overflow: hidden; background: linear-gradient(140deg,#164967,#071b30); }
.nsa-sidebarLatest__thumb .nsa-icon { width: 31px; height: 31px; }
.nsa-sidebarLatest__thumb img { width: 100%; height: 100% !important; object-fit: cover; }
body.nsa-portal-body .nsa-sidebarLatest__item h3 { color: #f2faff; margin: 0 0 4px; font-size: 12px; font-weight: 780; letter-spacing: -.01em; line-height: 1.36; }
body.nsa-portal-body .nsa-sidebarLatest__item h3 a:hover { color: #42e5ed; }
.nsa-sidebarLatest__item time { color: #99b6c8; font-size: 10px; }
.nsa-sidebarCats { list-style: none; padding: 0 !important; }
.nsa-sidebarCats li { border-top: 1px solid #244258; }
.nsa-sidebarCats li:first-child { border-top: 0; }
body.nsa-portal-body .nsa-sidebarCats a { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; color: #cde1ed; font-size: 12px; }
body.nsa-portal-body .nsa-sidebarCats a:hover { color: #37e0eb; }
.nsa-sidebarCats .nsa-icon { width: 15px; height: 15px; }
.nsa-relatedLinks { list-style: none; padding: 0 !important; }
.nsa-relatedLinks li + li { border-top: 1px solid #2a4359; }
body.nsa-portal-body .nsa-relatedLinks a { color: #cce2ef; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; font-size: 12px; }
body.nsa-portal-body .nsa-relatedLinks a:hover { color: #33e5e9; }
.nsa-relatedLinks .nsa-icon { width: 16px; height: 16px; }

/* Archives & category pages: real redesign, not just a recolor. */
.nsa-archiveHeader { margin: 0 0 29px; padding: 27px 34px 25px; border: 1px solid #234962; border-radius: 12px; background: radial-gradient(ellipse at 92% 23%,rgba(18,153,177,.23),transparent 52%),linear-gradient(135deg,#0d3049,#0d1f34); }
body.nsa-portal-body .nsa-archiveHeader h1 { font-size: clamp(34px,3.5vw,49px); margin: 9px 0 13px; color: #fff; line-height: 1.1; }
body.nsa-portal-body .nsa-archiveHeader p,
body.nsa-portal-body .nsa-archiveHeader__description { color: #c5dded; max-width: 850px; font-size: 14px; line-height: 1.75; }
.nsa-archiveChips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 21px; }
body.nsa-portal-body .nsa-archiveChips a { border: 1px solid #32728b; border-radius: 20px; background: #11364b; color: #d7f4ff; font-size: 11px; padding: 6px 12px; }
body.nsa-portal-body .nsa-archiveChips a:hover { background: #1c7b93; color: #fff; }
.nsa-archiveGrid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 19px; }
.nsa-archiveGrid .nsa-card__media { height: 185px; }
.nsa-archiveGrid .nsa-card__title { font-size: 19px !important; -webkit-line-clamp: 3; }
.nsa-archiveGrid .nsa-card__excerpt { font-size: 13px !important; }
.nsa-archiveGrid .nsa-card__body { padding: 17px; }
.nsa-pagination { margin: 32px 0; }
.nsa-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
body.nsa-portal-body .nsa-pagination .page-numbers { display: inline-flex; min-width: 37px; min-height: 37px; justify-content: center; align-items: center; color: #e7f7ff; border: 1px solid #3c6680; border-radius: 6px; padding: 6px 12px; background: #102940; }
body.nsa-portal-body .nsa-pagination .page-numbers.current { color: #071c29; background: #3ae0e9; border-color: #3ae0e9; }
body.nsa-portal-body .nsa-pagination a.page-numbers:hover { background: #1b596e; }
.nsa-empty { padding: 28px; border: 1px solid #2b5063; border-radius: 9px; }
body.nsa-portal-body .nsa-empty h2 { color: #f7fcff; font-size: 26px; margin: 0 0 10px; }
.nsa-empty p { color: #c6dce8; margin-bottom: 22px !important; }
.nsa-searchForm { display: flex; gap: 9px; max-width: 620px; margin: 18px 0; }
body.nsa-portal-body .nsa-searchForm input { min-width: 0; flex: 1; height: 44px; background: #132a3f; border: 1px solid #376277; border-radius: 8px; padding: 0 15px; color: #eafaff; }
.nsa-notFound { padding: 50px 0 90px; text-align: center; }
.nsa-notFound > strong { display: block; color: #f1fdff; font: 900 clamp(110px,18vw,200px)/1 Arial,sans-serif; letter-spacing: -.09em; }
.nsa-notFound > strong span { color: #35e4ee; }
body.nsa-portal-body .nsa-notFound h1 { font-size: 38px; margin: 12px 0 10px; }
.nsa-notFound p { color: #b3cee0; }
.nsa-notFound .nsa-searchForm { margin: 26px auto; }

/* Native WordPress comments; dark readable and same content background. */
.nsa-comments { margin: 30px 0; border-top: 1px solid #23455d; padding-top: 22px; color: #e6f4ff; }
body.nsa-portal-body .nsa-comments :is(h2,h3,h4) { color: #f4fbff; font-size: 23px; }
body.nsa-portal-body .nsa-comments :is(p,li,label) { color: #c6dce8; }
body.nsa-portal-body .nsa-comments :is(textarea,input[type=text],input[type=email],input[type=url]) { display: block; max-width: 100%; width: 100%; background: #11283a; color: #f2fbff; border: 1px solid #35566b; padding: 10px; border-radius: 6px; }
body.nsa-portal-body .nsa-comments input[type=submit] { color: #071c29; background: #32e0e9; border: 0; border-radius: 6px; padding: 10px 17px; }
body.nsa-portal-body .nsa-comments a { color: #4cdeec; }
.nsa-comments .comment-list { padding-left: 18px !important; }
.nsa-comments .comment-body { padding: 15px; border-bottom: 1px solid #28475b; }

/* Always-present footer with clean links and separated Statlink. */
.nsa-siteFooter { background: radial-gradient(ellipse at 100% 0,rgba(15,66,95,.33),transparent 46%),#061423; color: #d4e6f2; border-top: 1px solid #143651; }
.nsa-footerGrid { display: grid; grid-template-columns: minmax(0,2.1fr) minmax(120px,.85fr) minmax(150px,1.06fr) minmax(145px,.96fr); gap: 48px; padding: 32px 0 28px; }
.nsa-footerAbout .nsa-logo { font-size: 34px !important; display: inline-block; margin-bottom: 14px; }
body.nsa-portal-body .nsa-footerAbout h2,
body.nsa-portal-body .nsa-footerLinks h2 { color: #f8fdff; margin: 0 0 12px; font-size: 14px; font-weight: 830; letter-spacing: 0; }
body.nsa-portal-body .nsa-footerAbout p { max-width: 430px; color: #bdd0e0; font-size: 12px; line-height: 1.65; }
.nsa-footerAbout__motto { font-size: 11px; color: #43dee9; font-weight: 740; margin-top: 15px; }
.nsa-footerLinks { display: flex; flex-direction: column; align-items: start; gap: 9px; }
body.nsa-portal-body .nsa-footerLinks a { display: block; font-size: 12px; color: #c4d8e7; line-height: 1.38; }
body.nsa-portal-body .nsa-footerLinks a:hover { color: #36e3eb; }
.nsa-footerBottom { border-top: 1px solid #1c394e; }
.nsa-footerBottom__inner { padding: 15px 0; display: flex; align-items: center; gap: 12px; font-size: 10px; color: #a9c0d3; }
.nsa-footerBottom__inner span:nth-child(2) { margin-left: auto; }
body.nsa-portal-body .nsa-footerBottom__inner a { border: 1px solid #47728a; display: grid; place-items: center; color: #d3f9fc; width: 27px; height: 27px; border-radius: 50%; font-size: 17px; }
.nsa-statlink { padding: 12px 0 20px; border-top: 1px solid #122c42; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
body.nsa-portal-body .nsa-statlink__item,
body.nsa-portal-body .nsa-statlink__item a { font-size: 11px; color: #c3d7e7; font-weight: 600; line-height: 1.7; }
body.nsa-portal-body .nsa-statlink__item a:hover { color: #49e4ee; }

/* Responsive layouts */
@media (max-width: 1300px) {
  .nsa-navbar__inner { gap: 18px; }
  .nsa-primaryNav { gap: 13px; }
  body.nsa-portal-body .nsa-primaryNav a { font-size: 11px; }
  .nsa-headerSearch { width: 145px; }
  .nsa-hero__illustration { right: -10%; }
}
@media (max-width: 1090px) {
  body.nsa-portal-body .nsa-shell .nsa-wide { width: calc(100% - 54px); }
  .nsa-primaryNav { gap: 11px; }
  .nsa-navbar__inner { gap: 16px; }
  body.nsa-portal-body .nsa-logo { font-size: 27px; }
  .nsa-headerSearch { width: 145px; }
  body.nsa-portal-body .nsa-primaryNav a { font-size: 10px; }
  .nsa-hero__illustration { right: -26%; }
  .nsa-featured { min-height: 250px; }
  .nsa-categoriesGrid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .nsa-topic { min-height: 180px !important; }
  .nsa-latestGrid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .nsa-editorialGrid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .nsa-pageColumns { grid-template-columns: minmax(0,1fr) 275px; gap: 28px; }
  .nsa-footerGrid { gap: 24px; }
}
@media (max-width: 790px) {
  body.nsa-portal-body .nsa-shell { width: 100%; }
  body.nsa-portal-body .nsa-shell .nsa-wide { width: calc(100% - 36px); }
  .nsa-topbar__tagline { display: none; }
  .nsa-topbar__links { margin-left: auto; gap: 11px; }
  .nsa-navbar__inner { min-height: 66px; flex-wrap: wrap; gap: 11px; }
  body.nsa-portal-body .nsa-logo { font-size: 29px; }
  .nsa-mobileTrigger { display: grid !important; place-items: center; background: #12334a !important; color: #f1fbff !important; border: 1px solid #2d7284 !important; height: 36px; width: 39px; border-radius: 7px; margin-left: auto; }
  .nsa-headerSearch { width: 165px; }
  .nsa-primaryNav { display: none; width: 100%; order: 3; flex-basis: 100%; gap: 0; justify-content: stretch; align-items: stretch; flex-direction: column; border-top: 1px solid #26465b; padding: 7px 0 14px; }
  .nsa-primaryNav.is-open { display: flex; }
  body.nsa-portal-body .nsa-primaryNav a { font-size: 14px; padding: 11px 6px; border-bottom: 1px solid #173449; }
  .nsa-mobileUtility { display: block !important; }
  .nsa-hero { min-height: 460px; }
  .nsa-hero__inner { min-height: 460px; }
  .nsa-hero__illustration { right: -42%; opacity: .63; width: 120%; min-width: 0; }
  .nsa-hero::before { background: linear-gradient(90deg,rgba(2,11,24,.99),rgba(2,11,24,.83) 53%,rgba(2,11,24,.15)); }
  .nsa-featuredGrid { grid-template-columns: 1fr 1fr; }
  .nsa-featuredGrid .nsa-featured:last-child { grid-column: 1 / -1; min-height: 210px; }
  .nsa-pageColumns { display: block; }
  .nsa-sidebar { margin-top: 35px; display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .nsa-sidebarBox--toc { grid-column: 1 / -1; }
  .nsa-footerGrid { grid-template-columns: 1.35fr 1fr 1fr; }
  .nsa-footerAbout { grid-column: 1 / -1; }
}
@media (max-width: 580px) {
  .nsa-topbar__date { display: none; }
  .nsa-topbar__links { margin-left: 0; margin-right: auto; gap: 14px; }
  .nsa-navbar__inner { min-height: 62px; }
  body.nsa-portal-body .nsa-logo { font-size: 26px; }
  .nsa-headerSearch { order: 2; width: 100%; flex-basis: 100%; height: 37px; margin-bottom: 12px; }
  .nsa-primaryNav { order: 3; }
  .nsa-hero__content { padding: 45px 0; }
  .nsa-hero__inner { min-height: 488px; }
  .nsa-hero__illustration { width: 155%; right: -75%; opacity: .55; }
  .nsa-hero::before { background: linear-gradient(90deg,rgba(2,11,24,.96),rgba(2,11,24,.77) 75%,rgba(2,11,24,.45)); }
  body.nsa-portal-body .nsa-hero h1 { font-size: clamp(32px,9vw,46px); }
  .nsa-hero__stats { gap: 13px 0; }
  .nsa-hero__stats div { min-width: auto; padding: 0 10px; }
  .nsa-hero__stats strong { font-size: 17px; }
  .nsa-hero__stats div:nth-child(3) strong { font-size: 15px; }
  .nsa-hero__stats small { font-size: 9px; }
  .nsa-featuredGrid { grid-template-columns: 1fr; }
  .nsa-featuredGrid .nsa-featured:last-child { grid-column: auto; }
  .nsa-featured { min-height: 200px; }
  .nsa-categoriesGrid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body.nsa-portal-body .nsa-topic { min-height: 189px; }
  .nsa-topic__icon .nsa-icon { width: 43px; height: 43px; }
  .nsa-sectionHeading { align-items: start; flex-direction: column; gap: 10px; }
  .nsa-latestGrid { grid-template-columns: 1fr 1fr; }
  .nsa-card__media { min-height: 122px; height: 122px; }
  body.nsa-portal-body .nsa-card__title { font-size: 14px; }
  .nsa-card__body { padding: 11px; }
  .nsa-editorialGrid { grid-template-columns: 1fr; }
  .nsa-followBanner { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 18px; }
  .nsa-followBanner .nsa-button { grid-column: 1 / -1; margin-left: 0 !important; }
  .nsa-innerPage { padding-top: 20px; }
  .nsa-breadcrumbs { margin-bottom: 25px; }
  .nsa-article__header h1 { font-size: 31px !important; }
  body.nsa-portal-body .nsa-article__content { font-size: 15px; line-height: 1.76; }
  .nsa-archiveGrid { grid-template-columns: 1fr; }
  .nsa-archiveHeader { padding: 22px 17px; }
  .nsa-sidebar { display: flex; }
  .nsa-postNavigation { grid-template-columns: 1fr; }
  .nsa-footerGrid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .nsa-footerLinks:last-child { grid-column: 1 / -1; }
  .nsa-footerBottom__inner { align-items: start; }
  .nsa-footerBottom__inner span:nth-child(2) { display: none; }
  .nsa-footerBottom__inner a { margin-left: auto; }
}
@media (max-width: 390px) {
  .nsa-topbar__links a { font-size: 10px; }
  .nsa-latestGrid { grid-template-columns: 1fr; }
  .nsa-card__media { height: 160px; }
  .nsa-categoriesGrid { gap: 8px; }
  .nsa-topic { padding: 17px 6px 12px !important; }
  .nsa-hero__stats div { padding: 0 7px; }
}
@media (max-width: 782px) { body.admin-bar .nsa-navbar { top: 46px; } }
@media (prefers-reduced-motion: reduce) {
  body.nsa-portal-body .nsa-shell *, body.nsa-portal-body .nsa-shell *::before, body.nsa-portal-body .nsa-shell *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
