/*
 * InfoSecNexus anime cyber editorial layer.
 *
 * This file deliberately sits after theme.css. It maps the established theme
 * contracts onto the supplied visual system without changing data, editors,
 * customizer settings, or the bundled newsroom tools.
 */

:root {
  --isn-bg: #071226;
  --isn-surface: #0d1b35;
  --isn-surface-raised: #122747;
  --isn-surface-soft: #0a1730;
  --isn-text: #f4f8ff;
  --isn-muted: #a9b9d4;
  --isn-border: rgb(105 159 222 / 24%);
  --isn-blue: #1677ff;
  --isn-blue-strong: #075bd8;
  --isn-cyan: #46e7ff;
  --isn-violet: #8b5cff;
  --isn-critical: #d90d2e;
  --isn-warning: #ff9f2e;
  --isn-success: #1bc47d;
  --isn-radius: 18px;
  --isn-radius-small: 12px;
  --isn-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --isn-shadow: 0 22px 56px rgb(0 0 0 / 24%);
  --isn-shadow-soft: 0 12px 32px rgb(0 0 0 / 18%);
  --isn-glow: 0 18px 48px rgb(14 116 255 / 24%), 0 0 28px rgb(70 231 255 / 8%);

  /* Keep existing modules on the same token system. */
  --isnx-blue: var(--isn-blue);
  --isnx-blue-dark: #8fc5ff;
  --isnx-navy: var(--isn-text);
  --isnx-ink: var(--isn-text);
  --isnx-muted: var(--isn-muted);
  --isnx-soft: var(--isn-bg);
  --isnx-surface: var(--isn-surface);
  --isnx-border: var(--isn-border);
  --isnx-red: var(--isn-critical);
  --isnx-orange: var(--isn-warning);
  --isnx-yellow: #ffd24a;
  --isnx-green: var(--isn-success);
  --isnx-shadow: var(--isn-shadow);
  --isnx-soft-shadow: var(--isn-shadow-soft);
  --isnx-blue-shadow: 0 12px 28px rgb(22 119 255 / 30%);
  --isnx-radius: var(--isn-radius);
  --isnx-content-width: 800px;
  --isnx-wide-width: 1440px;

  color-scheme: dark;
}

:root[data-theme="light"],
:root[data-color-mode="light"] {
  --isn-bg: #f6f9ff;
  --isn-surface: #fff;
  --isn-surface-raised: #edf5ff;
  --isn-surface-soft: #f9fbff;
  --isn-text: #071a42;
  --isn-muted: #4e6488;
  --isn-border: rgb(20 78 160 / 18%);
  --isn-blue: #0969f6;
  --isn-blue-strong: #0755c9;
  --isn-cyan: #007ead;
  --isn-violet: #6d3cf3;
  --isn-critical: #d90d2e;
  --isn-warning: #d76100;
  --isn-success: #087a4a;
  --isn-shadow: 0 20px 54px rgb(8 37 86 / 13%);
  --isn-shadow-soft: 0 10px 30px rgb(8 37 86 / 9%);
  --isn-glow: 0 18px 48px rgb(14 116 255 / 18%), 0 0 28px rgb(0 126 173 / 8%);
  --isnx-blue: var(--isn-blue);
  --isnx-blue-dark: var(--isn-blue-strong);
  --isnx-navy: var(--isn-text);
  --isnx-ink: var(--isn-text);
  --isnx-muted: var(--isn-muted);
  --isnx-soft: var(--isn-bg);
  --isnx-surface: var(--isn-surface);
  --isnx-border: var(--isn-border);
  --isnx-red: var(--isn-critical);
  --isnx-orange: var(--isn-warning);
  --isnx-green: var(--isn-success);
  --isnx-shadow: var(--isn-shadow);
  --isnx-soft-shadow: var(--isn-shadow-soft);
  --isnx-blue-shadow: 0 12px 28px rgb(9 105 246 / 22%);

  color-scheme: light;
}

html {
  min-width: 320px;
  scroll-padding-top: 96px;
  scroll-behavior: smooth;
}

body,
:root[data-color-mode="dark"] body {
  min-width: 320px;
  background: var(--isn-bg);
  color: var(--isn-text);
}

body.has-modal-open,
body.mobile-panel-open,
body.search-modal-open {
  overflow: hidden;
}

body,
button,
input,
select,
textarea {
  letter-spacing: 0;
}

a {
  color: var(--isn-cyan);
}

a:hover {
  color: color-mix(in srgb, var(--isn-cyan) 72%, var(--isn-text));
}

:focus-visible {
  outline: 3px solid var(--isn-cyan);
  outline-offset: 3px;
}

.layout-wide-shell,
.site-header__inner,
.header-search-panel__inner,
.site-footer__inner,
.layout-shell,
.single-hero,
.page-entry,
.not-found {
  width: min(calc(100% - 64px), var(--isnx-wide-width));
}

.reading-progress {
  position: fixed;
  z-index: 200;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
  background: linear-gradient(90deg, var(--isn-blue), var(--isn-cyan), var(--isn-violet));
  box-shadow: 0 0 18px rgb(70 231 255 / 45%);
}

.editorial-eyebrow {
  margin: 0 0 0.7rem;
  color: var(--isn-cyan);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button,
.search-form button,
.wp-block-button__link,
button[type="submit"] {
  min-height: 46px;
  padding: 0.75rem 1.15rem;
  background: linear-gradient(135deg, var(--isn-blue), #5148ff);
  border: 1px solid rgb(89 207 255 / 48%);
  border-radius: 11px;
  box-shadow: 0 8px 24px rgb(22 119 255 / 24%);
  transition: filter 200ms var(--isn-ease), box-shadow 200ms var(--isn-ease), transform 200ms var(--isn-ease);
}

.button:focus-visible,
.search-form button:focus-visible,
.wp-block-button__link:focus-visible,
button[type="submit"]:focus-visible {
  outline-color: var(--isn-cyan);
}

.icon-button,
.scroll-top {
  color: var(--isn-text);
  border-radius: 10px;
}

.icon-button:hover,
.scroll-top:hover,
:root[data-color-mode="dark"] .icon-button:hover,
:root[data-color-mode="dark"] .scroll-top:hover {
  color: var(--isn-cyan);
  background: color-mix(in srgb, var(--isn-blue) 14%, var(--isn-surface));
  border-color: var(--isn-border);
}

.search-field,
input[type="email"],
input[type="text"],
input[type="search"],
input[type="url"],
textarea,
select,
:root[data-color-mode="dark"] .search-field,
:root[data-color-mode="dark"] input[type="email"],
:root[data-color-mode="dark"] input[type="text"],
:root[data-color-mode="dark"] input[type="search"],
:root[data-color-mode="dark"] input[type="url"],
:root[data-color-mode="dark"] textarea,
:root[data-color-mode="dark"] select {
  color: var(--isn-text);
  background: var(--isn-surface-soft);
  border: 1px solid var(--isn-border);
  border-radius: 10px;
  box-shadow: none;
}

.search-field::placeholder,
input::placeholder,
textarea::placeholder,
:root[data-color-mode="dark"] .search-field::placeholder,
:root[data-color-mode="dark"] input::placeholder,
:root[data-color-mode="dark"] textarea::placeholder {
  color: color-mix(in srgb, var(--isn-muted) 84%, transparent);
  opacity: 1;
}

/* Header and navigation */
.site-header {
  top: 0;
  border-bottom: 1px solid var(--isn-border);
  box-shadow: 0 8px 28px rgb(0 0 0 / 8%);
}

.site-header__main,
:root[data-color-mode="dark"] .site-header,
:root[data-color-mode="dark"] .site-header__main {
  background: color-mix(in srgb, var(--isn-bg) 90%, transparent);
  border-color: var(--isn-border);
  backdrop-filter: blur(18px) saturate(1.2);
}

.site-header__inner {
  min-height: 84px;
  gap: 1.25rem;
}

.site-header.is-compact .site-header__inner {
  min-height: 68px;
}

.site-brand {
  min-width: 224px;
  gap: 0.75rem;
  color: var(--isn-text);
}

.site-brand:hover,
:root[data-color-mode="dark"] .site-brand,
:root[data-color-mode="dark"] .site-brand:hover {
  color: var(--isn-text);
}

.site-brand__mark {
  width: 34px;
  height: 40px;
}

.site-brand__custom-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-title,
:root[data-color-mode="dark"] .site-title {
  color: var(--isn-text);
  font-size: 1.38rem;
  font-weight: 900;
}

.site-description {
  display: none;
}

.site-nav a,
:root[data-color-mode="dark"] .site-nav a {
  color: var(--isn-text);
  font-size: 0.94rem;
  font-weight: 800;
}

.site-nav a::after {
  height: 2px;
  background: linear-gradient(90deg, var(--isn-blue), var(--isn-cyan));
}

.site-nav .sub-menu,
:root[data-color-mode="dark"] .site-nav .sub-menu {
  top: calc(100% + 0.2rem);
  width: 260px;
  padding: 0.65rem;
  background: var(--isn-surface);
  border: 1px solid var(--isn-border);
  border-radius: var(--isn-radius-small);
  box-shadow: var(--isn-shadow);
}

.site-nav .sub-menu::before {
  top: -0.75rem;
  height: 0.75rem;
}

.site-nav .sub-menu a:hover,
.site-nav .sub-menu a.is-active,
:root[data-color-mode="dark"] .site-nav .sub-menu a:hover,
:root[data-color-mode="dark"] .site-nav .sub-menu a.is-active {
  color: var(--isn-cyan);
  background: color-mix(in srgb, var(--isn-blue) 13%, var(--isn-surface));
}

.site-header__actions {
  gap: 0.55rem;
}

.header-brief-button {
  min-width: 154px;
}

/* Search dialog */
.search-modal {
  z-index: 220;
  place-items: center;
  padding: 1rem;
}

.search-modal__backdrop {
  background: rgb(2 8 24 / 80%);
  backdrop-filter: blur(7px);
}

.search-modal__panel,
:root[data-color-mode="dark"] .search-modal__panel {
  width: min(920px, 100%);
  max-height: min(760px, calc(100vh - 2rem));
  overflow: auto;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  color: var(--isn-text);
  background: var(--isn-surface);
  border: 1px solid var(--isn-border);
  border-radius: var(--isn-radius);
  box-shadow: 0 28px 90px rgb(0 0 0 / 48%), 0 0 45px rgb(22 119 255 / 14%);
}

.search-modal__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.search-modal__copy {
  display: grid;
  gap: 1rem;
}

.search-modal__eyebrow {
  color: var(--isn-cyan);
}

.search-modal h2,
:root[data-color-mode="dark"] .search-modal h2 {
  max-width: 620px;
  color: var(--isn-text);
  font-size: 2rem;
  line-height: 1.12;
}

.search-modal__copy > p:not(.search-modal__eyebrow) {
  margin: -0.3rem 0 0;
  color: var(--isn-muted);
}

.search-modal__quick a,
:root[data-color-mode="dark"] .search-modal__quick a {
  min-height: 36px;
  color: var(--isn-text);
  background: color-mix(in srgb, var(--isn-blue) 16%, var(--isn-surface));
  border: 1px solid var(--isn-border);
  border-radius: 999px;
}

.search-modal__recent {
  display: grid;
  gap: 0.55rem;
  color: var(--isn-muted);
}

.search-modal__recent [data-recent-searches] {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.search-modal__recent button {
  min-height: 34px;
  padding: 0.35rem 0.65rem;
  color: var(--isn-cyan);
  background: transparent;
  border: 1px solid var(--isn-border);
  border-radius: 999px;
  cursor: pointer;
}

.search-modal__visual {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  background: var(--isn-surface-soft);
  border: 1px solid var(--isn-border);
  border-radius: var(--isn-radius-small);
}

.search-modal__visual img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}

.search-modal__visual span {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: 0.45rem 0.7rem;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  background: rgb(4 13 34 / 76%);
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

/* Homepage editorial lead */
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(340px, 0.78fr);
  gap: 1.1rem;
  padding-block: 2rem 1.25rem;
}

.home-hero__feature {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  color: #fff;
  background: #030b1c;
  border: 1px solid var(--isn-border);
  border-radius: var(--isn-radius);
  box-shadow: var(--isn-shadow);
  isolation: isolate;
}

.anime-hero-media,
.anime-hero-media__poster,
.anime-hero-media__video,
.home-hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.anime-hero-media {
  z-index: 0;
  margin: 0;
  overflow: hidden;
  background: #030b1c;
}

.anime-hero-media__poster,
.anime-hero-media__video {
  object-fit: cover;
}

.anime-hero-media__poster {
  z-index: 0;
}

.anime-hero-media__video {
  z-index: 1;
  opacity: 0;
  transition: opacity 500ms var(--isn-ease);
}

.anime-hero-media.is-playing .anime-hero-media__video {
  opacity: 1;
}

.anime-hero-media__toggle {
  position: absolute;
  z-index: 3;
  right: 1rem;
  bottom: 1rem;
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  color: #fff;
  background: rgb(2 12 34 / 74%);
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(9px);
}

.anime-hero-media__pause,
.anime-hero-media.is-playing .anime-hero-media__play {
  display: none;
}

.anime-hero-media.is-playing .anime-hero-media__pause {
  display: inline;
  font-size: 0.78rem;
}

.home-hero__shade {
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgb(2 8 25 / 94%) 0%, rgb(2 8 25 / 78%) 38%, rgb(2 8 25 / 26%) 68%, rgb(2 8 25 / 5%) 100%);
}

.home-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(66%, 680px);
  min-height: 560px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3.25rem);
}

.severity-pill {
  min-height: 32px;
  color: #fff;
  background: var(--isn-critical);
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgb(255 51 78 / 24%);
}

.home-hero__title {
  max-width: 660px;
  margin: 1.25rem 0 0;
  font-size: 3.25rem;
  font-weight: 900;
  line-height: 1.04;
  text-wrap: balance;
}

.home-hero__excerpt {
  max-width: 580px;
  margin: 1rem 0 0;
  color: #d7e4f8;
  font-size: 1.1rem;
  line-height: 1.55;
}

.home-hero__lead {
  position: relative;
  min-height: 48px;
  margin-top: 1.55rem;
  overflow: visible;
  color: #fff;
  background: linear-gradient(135deg, var(--isn-blue), #5148ff);
  border-radius: 11px;
  box-shadow: 0 12px 30px rgb(22 119 255 / 34%);
}

.home-hero__lead:hover {
  color: #fff;
}

.home-hero__lead svg {
  width: 18px;
  height: 18px;
  transition: transform 200ms var(--isn-ease);
}

.home-hero__side {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.side-story,
:root[data-color-mode="dark"] .side-story {
  position: relative;
  display: block;
  min-height: 0;
  overflow: hidden;
  color: var(--isn-text);
  background: var(--isn-surface);
  border: 1px solid var(--isn-border);
  border-radius: var(--isn-radius);
  box-shadow: var(--isn-shadow-soft);
  transition: border-color 240ms var(--isn-ease), box-shadow 240ms var(--isn-ease), transform 240ms var(--isn-ease);
}

.side-story--critical,
:root[data-color-mode="dark"] .side-story--critical {
  border-color: color-mix(in srgb, var(--isn-critical) 48%, var(--isn-border));
  box-shadow: inset 3px 0 0 color-mix(in srgb, var(--isn-critical) 72%, transparent), var(--isn-shadow-soft);
}

.side-story__link {
  display: grid;
  height: 100%;
  min-height: 0;
  grid-template-columns: minmax(0, 1.1fr) minmax(140px, 0.9fr);
  color: inherit;
}

.side-story__link:hover {
  color: inherit;
}

.side-story__link:focus-visible {
  outline-color: var(--isn-cyan);
  outline-offset: -4px;
}

.side-story__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.65rem;
  justify-content: center;
  padding: clamp(1rem, 2vw, 1.4rem);
}

.side-story h2 {
  margin: 0;
  color: var(--isn-text);
  font-size: 1.15rem;
  line-height: 1.2;
}

.side-story p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--isn-muted);
  font-size: 0.92rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.side-story img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  transition: transform 420ms var(--isn-ease), filter 240ms var(--isn-ease);
}

.story-meta,
.entry-meta {
  color: var(--isn-muted);
}

.severity-tag {
  min-width: 66px;
  min-height: 28px;
  border-radius: 8px;
}

/* Homepage panels */
.home-news {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(340px, 0.72fr);
  gap: 1.1rem;
}

.news-panel,
:root[data-color-mode="dark"] .news-panel {
  padding: 1.2rem;
  background: var(--isn-surface);
  border: 1px solid var(--isn-border);
  border-radius: var(--isn-radius);
  box-shadow: var(--isn-shadow-soft);
}

.section-header h2,
:root[data-color-mode="dark"] .section-header h2 {
  color: var(--isn-text);
  font-size: 1.35rem;
}

.section-header a {
  color: var(--isn-cyan);
}

.latest-grid {
  align-items: stretch;
  gap: 0.85rem;
}

.intel-card,
:root[data-color-mode="dark"] .intel-card {
  position: relative;
  display: flex;
  min-width: 0;
  height: 100%;
  overflow: clip;
  color: var(--isn-text);
  background: linear-gradient(145deg, var(--isn-surface), color-mix(in srgb, var(--isn-surface-raised) 55%, var(--isn-surface)));
  border: 1px solid var(--isn-border);
  border-radius: var(--isn-radius-small);
  box-shadow: 0 10px 30px rgb(0 0 0 / 16%);
  transition: border-color 240ms var(--isn-ease), box-shadow 240ms var(--isn-ease), transform 240ms var(--isn-ease);
}

.intel-card__link {
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  color: inherit;
}

.intel-card__link:hover {
  color: inherit;
}

.intel-card__link:focus-visible {
  outline-color: var(--isn-cyan);
  outline-offset: -4px;
}

.intel-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: filter 240ms var(--isn-ease), transform 420ms var(--isn-ease);
}

.intel-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.62rem;
  padding: 0.95rem;
}

.intel-card h3 {
  margin: 0;
  color: var(--isn-text);
  font-size: 1.02rem;
  line-height: 1.22;
}

.intel-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--isn-muted);
  font-size: 0.9rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.intel-card__readmore {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  color: var(--isn-cyan);
  font-size: 0.88rem;
  font-weight: 800;
}

.category-chip,
.category-badge,
:root[data-color-mode="dark"] .category-chip,
:root[data-color-mode="dark"] .category-badge {
  color: var(--isn-text);
  background: color-mix(in srgb, var(--isn-blue) 20%, transparent);
  border-radius: 999px;
}

.cve-row {
  min-height: 62px;
  color: var(--isn-text);
  border-color: var(--isn-border);
}

.cve-row:hover {
  color: var(--isn-text);
  background: color-mix(in srgb, var(--isn-blue) 8%, transparent);
}

.cve-row strong,
.cve-row b,
:root[data-color-mode="dark"] .cve-row strong,
:root[data-color-mode="dark"] .cve-row b {
  color: var(--isn-text);
}

.cve-row small,
:root[data-color-mode="dark"] .cve-row small {
  color: var(--isn-muted);
}

.newsletter-section,
:root[data-color-mode="dark"] .newsletter-section {
  margin-block: 1.1rem 2.4rem;
  padding: 1.4rem;
  color: var(--isn-text);
  background: linear-gradient(135deg, var(--isn-surface), color-mix(in srgb, var(--isn-blue) 9%, var(--isn-surface-raised)));
  border: 1px solid var(--isn-border);
  border-radius: var(--isn-radius);
  box-shadow: var(--isn-shadow-soft);
}

.newsletter-section__icon {
  color: #fff;
  background: linear-gradient(135deg, var(--isn-blue), var(--isn-violet));
  border-radius: 13px;
  box-shadow: 0 12px 26px rgb(22 119 255 / 28%);
}

.newsletter-section h2,
.newsletter-section p,
:root[data-color-mode="dark"] .newsletter-section p {
  color: var(--isn-text);
}

.newsletter-section p {
  color: var(--isn-muted);
}

.newsletter-card > h2,
.newsletter-card > p:not(.newsletter-card__status) {
  display: none;
}

/* Reusable post card: source interaction contract */
.post-grid {
  align-items: stretch;
  gap: 1.1rem;
}

.post-card,
:root[data-color-mode="dark"] .post-card {
  position: relative;
  display: flex;
  min-width: 0;
  height: 100%;
  overflow: clip;
  background: linear-gradient(145deg, var(--isn-surface), color-mix(in srgb, var(--isn-surface-raised) 55%, var(--isn-surface)));
  border: 1px solid var(--isn-border);
  border-radius: var(--isn-radius);
  box-shadow: 0 10px 30px rgb(0 0 0 / 16%);
  isolation: isolate;
  transition: border-color 240ms var(--isn-ease), box-shadow 240ms var(--isn-ease), transform 240ms var(--isn-ease);
}

.post-card__link {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.post-card__link:hover {
  color: inherit;
}

.post-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #08172f;
}

.post-card__media::before {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(110deg, transparent 15%, rgb(70 231 255 / 18%) 48%, transparent 75%);
  transform: translateX(-125%);
}

.post-card__image,
:root[data-color-mode="dark"] .post-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #08172f;
  border: 0;
  transition: filter 240ms var(--isn-ease), transform 420ms var(--isn-ease);
}

.post-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.72rem;
  padding: 1rem;
}

.post-card__topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.severity-chip {
  width: fit-content;
  padding: 0.3rem 0.65rem;
  color: var(--isn-text);
  font-size: 0.73rem;
  font-weight: 850;
  background: color-mix(in srgb, var(--isn-blue) 22%, transparent);
  border-radius: 999px;
}

.severity-chip--critical,
.post-card--critical .severity-chip--critical {
  color: #fff;
  background: var(--isn-critical);
}

.post-card--critical,
:root[data-color-mode="dark"] .post-card--critical {
  border-color: color-mix(in srgb, var(--isn-critical) 48%, var(--isn-border));
  box-shadow: inset 3px 0 0 color-mix(in srgb, var(--isn-critical) 72%, transparent), 0 10px 30px rgb(0 0 0 / 16%);
}

.post-card__title,
:root[data-color-mode="dark"] .post-card__title {
  margin: 0;
  color: var(--isn-text);
  font-size: 1.18rem;
  line-height: 1.22;
  transition: color 240ms var(--isn-ease), text-shadow 240ms var(--isn-ease);
}

.post-card__excerpt,
.post-card__meta,
:root[data-color-mode="dark"] .post-card__excerpt {
  color: var(--isn-muted);
}

.post-card__excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.post-card__meta {
  font-size: 0.84rem;
}

.post-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  color: var(--isn-cyan);
  font-weight: 800;
}

.post-card__arrow {
  transition: transform 240ms var(--isn-ease);
}

.post-card__link:focus-visible {
  border-radius: calc(var(--isn-radius) - 2px);
  outline-color: var(--isn-cyan);
  outline-offset: -4px;
}

.post-card--compact .post-card__excerpt {
  -webkit-line-clamp: 2;
}

@keyframes isn-scan-line {
  to {
    transform: translateX(125%);
  }
}

@media (hover: hover) and (pointer: fine) {
  .button:hover,
  .search-form button:hover,
  .wp-block-button__link:hover,
  button[type="submit"]:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--isn-blue), #5148ff);
    box-shadow: 0 12px 34px rgb(22 119 255 / 38%);
    filter: brightness(1.09);
    transform: translateY(-2px);
  }

  .home-hero__lead:hover svg {
    transform: translateX(5px);
  }

  .side-story:hover,
  .intel-card:hover,
  .post-card:hover {
    border-color: color-mix(in srgb, var(--isn-blue) 85%, white 15%);
    box-shadow: var(--isn-glow);
    transform: translateY(-8px);
  }

  .side-story--critical:hover,
  .post-card--critical:hover,
  :root[data-color-mode="dark"] .side-story--critical:hover,
  :root[data-color-mode="dark"] .post-card--critical:hover {
    border-color: color-mix(in srgb, var(--isn-critical) 82%, white 18%);
    box-shadow: inset 3px 0 0 var(--isn-critical), 0 18px 48px rgb(217 13 46 / 22%);
  }

  .side-story:hover img,
  .intel-card:hover img,
  .post-card:hover .post-card__image {
    filter: saturate(1.08) contrast(1.04);
    transform: scale(1.06);
  }

  .post-card:hover .post-card__media::before {
    animation: isn-scan-line 650ms var(--isn-ease) both;
  }

  .post-card:hover .post-card__title {
    color: color-mix(in srgb, var(--isn-cyan) 72%, var(--isn-text));
    text-shadow: 0 0 22px rgb(70 231 255 / 15%);
  }

  .post-card:hover .post-card__arrow {
    transform: translateX(6px);
  }
}

/* Archive, search, and editorial listings */
.archive-masthead {
  position: relative;
  display: grid;
  min-height: 330px;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  align-items: stretch;
  margin-block: 2rem 2.25rem;
  overflow: hidden;
  background: linear-gradient(118deg, var(--isn-surface) 0 52%, var(--isn-surface-raised) 100%);
  border-block: 1px solid var(--isn-border);
  box-shadow: var(--isn-shadow-soft);
  isolation: isolate;
}

.archive-masthead::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 48%, var(--isn-surface) 58%, transparent 82%);
  content: "";
  opacity: 0.42;
}

.archive-masthead__copy {
  position: relative;
  z-index: 2;
  display: flex;
  max-width: 820px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4.5rem);
}

.archive-masthead h1 {
  max-width: 760px;
  margin: 0;
  color: var(--isn-text);
  font-size: 3.35rem;
  line-height: 1.02;
  text-wrap: balance;
}

.archive-masthead__copy > p,
.archive-description {
  max-width: 64ch;
  margin: 1rem 0 0;
  color: var(--isn-muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.archive-description > :first-child {
  margin-top: 0;
}

.archive-description > :last-child {
  margin-bottom: 0;
}

.archive-masthead__media {
  position: relative;
  z-index: 0;
  min-height: 330px;
  overflow: hidden;
}

.archive-masthead__media::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, var(--isn-surface) 0%, transparent 42%);
  content: "";
}

.archive-masthead__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.archive-masthead--search .search-form {
  display: grid;
  width: min(100%, 620px);
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
  margin-top: 1.35rem;
}

.layout-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 330px);
  gap: 1.5rem;
  align-items: start;
  margin-inline: auto;
}

.content-area,
.entry-content-wrap {
  min-width: 0;
}

.listing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.listing-header h2 {
  margin: 0;
  color: var(--isn-text);
  font-size: 1.55rem;
}

.post-grid--archive {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.search-results .post-card--list .post-card__excerpt {
  -webkit-line-clamp: 3;
}

.pagination {
  margin-block: 2rem 3rem;
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.pagination .page-numbers {
  display: inline-grid;
  min-width: 42px;
  min-height: 42px;
  place-items: center;
  padding: 0.5rem 0.75rem;
  color: var(--isn-text);
  background: var(--isn-surface);
  border: 1px solid var(--isn-border);
  border-radius: 9px;
}

.pagination .page-numbers.current {
  color: #fff;
  background: var(--isn-blue);
  border-color: var(--isn-blue);
}

.widget-area {
  position: sticky;
  top: 104px;
}

.widget,
:root[data-color-mode="dark"] .widget {
  padding: 1.2rem;
  color: var(--isn-text);
  background: var(--isn-surface);
  border: 1px solid var(--isn-border);
  border-radius: var(--isn-radius-small);
  box-shadow: var(--isn-shadow-soft);
}

.widget-title,
:root[data-color-mode="dark"] .widget-title {
  margin: 0 0 1rem;
  color: var(--isn-text);
  font-size: 1.12rem;
}

.widget-area--curated .search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.sidebar-post-list a,
.sidebar-topic-list a,
:root[data-color-mode="dark"] .sidebar-post-list a,
:root[data-color-mode="dark"] .sidebar-topic-list a {
  color: var(--isn-text);
}

.sidebar-post-list a:hover,
.sidebar-topic-list a:hover {
  color: var(--isn-cyan);
}

.sidebar-post-list li,
.sidebar-topic-list li {
  border-color: var(--isn-border);
}

.sidebar-topic-list span,
:root[data-color-mode="dark"] .sidebar-topic-list span {
  color: var(--isn-cyan);
  background: color-mix(in srgb, var(--isn-blue) 16%, transparent);
}

/* Single briefing */
.single-entry {
  padding-bottom: 3rem;
}

.single-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(500px, 1.18fr);
  gap: clamp(1.5rem, 4vw, 4.5rem);
  align-items: center;
  margin: 2rem auto 2.75rem;
  padding-block: 1rem;
}

.single-hero__inner {
  min-width: 0;
}

.single-hero h1 {
  margin: 1rem 0;
  color: var(--isn-text);
  font-size: 3.2rem;
  line-height: 1.03;
  text-wrap: balance;
}

.single-hero .entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  color: var(--isn-muted);
}

.single-hero__media {
  position: relative;
  overflow: hidden;
  background: var(--isn-surface);
  border: 1px solid var(--isn-border);
  border-radius: var(--isn-radius);
  box-shadow: var(--isn-shadow);
}

.single-hero__media::after {
  position: absolute;
  inset: auto 0 0;
  height: 22%;
  pointer-events: none;
  background: linear-gradient(transparent, rgb(4 12 32 / 42%));
  content: "";
}

.single-hero__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.layout-shell--single {
  grid-template-columns: minmax(220px, 270px) minmax(0, 900px);
  justify-content: center;
}

.single-rail {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 1rem;
  align-self: start;
}

.toc,
.share-links,
:root[data-color-mode="dark"] .toc,
:root[data-color-mode="dark"] .share-links {
  padding: 1.15rem;
  color: var(--isn-text);
  background: var(--isn-surface);
  border: 1px solid var(--isn-border);
  border-radius: var(--isn-radius-small);
  box-shadow: var(--isn-shadow-soft);
}

.toc__eyebrow,
.share-links__eyebrow {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--isn-cyan);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.toc h2 {
  margin: 0 0 0.85rem;
  color: var(--isn-text);
  font-size: 1.08rem;
}

.toc ol {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  counter-reset: isn-toc;
  list-style: none;
}

.toc li {
  counter-increment: isn-toc;
}

.toc a {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  align-items: start;
  color: var(--isn-muted);
  line-height: 1.35;
}

.toc a::before {
  color: var(--isn-cyan);
  font-weight: 900;
  content: counter(isn-toc, decimal-leading-zero);
}

.toc a:hover {
  color: var(--isn-text);
}

.share-links__items {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.share-links a,
:root[data-color-mode="dark"] .share-links a {
  color: var(--isn-text);
  background: var(--isn-surface-soft);
  border-color: var(--isn-border);
}

.share-links a:hover {
  color: var(--isn-cyan);
  border-color: var(--isn-cyan);
  box-shadow: none;
}

.entry-content,
:root[data-color-mode="dark"] .entry-content {
  color: color-mix(in srgb, var(--isn-text) 90%, var(--isn-muted));
  font-size: 1.03rem;
  line-height: 1.75;
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
:root[data-color-mode="dark"] .entry-content h2,
:root[data-color-mode="dark"] .entry-content h3,
:root[data-color-mode="dark"] .entry-content h4 {
  color: var(--isn-text);
  scroll-margin-top: 112px;
}

.entry-content h2 {
  margin-top: 2.4rem;
  font-size: 1.7rem;
}

.entry-content h3 {
  margin-top: 1.8rem;
  font-size: 1.25rem;
}

.entry-content a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.entry-content blockquote {
  margin: 1.5rem auto;
  padding: 1.15rem 1.35rem;
  color: var(--isn-text);
  background: color-mix(in srgb, var(--isn-blue) 10%, var(--isn-surface));
  border: 1px solid var(--isn-border);
  border-left: 4px solid var(--isn-cyan);
  border-radius: 0 var(--isn-radius-small) var(--isn-radius-small) 0;
}

.entry-content .isnx-live-deck {
  color: var(--isn-text);
  border-color: var(--isn-cyan);
}

.entry-content .isnx-live-item,
.entry-content th,
.entry-content td {
  border-color: var(--isn-border);
}

.entry-content .isnx-references,
:root[data-color-mode="dark"] .entry-content .isnx-references {
  color: var(--isn-muted);
  background: var(--isn-surface);
  border-color: var(--isn-border);
}

.entry-content .isnx-references summary {
  color: var(--isn-text);
}

.entry-content pre,
:root[data-color-mode="dark"] .entry-content pre {
  color: #d9e8ff;
  background: #030d22;
  border-color: var(--isn-border);
}

.post-gate__ad,
.post-gate__unlock,
:root[data-color-mode="dark"] .post-gate__ad,
:root[data-color-mode="dark"] .post-gate__unlock {
  color: var(--isn-text);
  background: var(--isn-surface);
  border-color: var(--isn-border);
  box-shadow: var(--isn-shadow-soft);
}

.post-gate__unlock p {
  color: var(--isn-muted);
}

.no-js .post-gate__rest[hidden] {
  display: block !important;
}

.no-js .post-gate__unlock {
  display: none;
}

.related-posts {
  margin-top: 2.5rem;
}

.related-posts > h2 {
  margin-bottom: 1rem;
  color: var(--isn-text);
  font-size: 1.6rem;
}

.related-posts .post-grid--3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-navigation {
  margin-top: 2rem;
}

.post-navigation .nav-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.post-navigation a {
  display: block;
  height: 100%;
  padding: 1rem;
  color: var(--isn-text);
  background: var(--isn-surface);
  border: 1px solid var(--isn-border);
  border-radius: var(--isn-radius-small);
}

.post-contact-cta,
:root[data-color-mode="dark"] .post-contact-cta {
  color: var(--isn-text);
  background: linear-gradient(135deg, var(--isn-surface), color-mix(in srgb, var(--isn-blue) 12%, var(--isn-surface-raised)));
  border-color: var(--isn-border);
  box-shadow: var(--isn-shadow-soft);
}

.post-contact-cta h2,
.post-contact-cta p,
:root[data-color-mode="dark"] .post-contact-cta h2,
:root[data-color-mode="dark"] .post-contact-cta p {
  color: var(--isn-text);
}

.post-contact-cta p {
  color: var(--isn-muted);
}

/* About, contact, and legal pages */
.page-entry {
  margin-inline: auto;
  padding-block: 2rem 3rem;
}

.page-header--editorial {
  position: relative;
  display: grid;
  min-height: 390px;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
  align-items: stretch;
  margin-bottom: 1.5rem;
  overflow: hidden;
  background: var(--isn-surface);
  border-block: 1px solid var(--isn-border);
  box-shadow: var(--isn-shadow-soft);
  isolation: isolate;
}

.page-header__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem);
}

.page-header h1 {
  max-width: 720px;
  margin: 0;
  color: var(--isn-text);
  font-size: 3.45rem;
  line-height: 1.03;
  text-wrap: balance;
}

.page-header__copy > p:last-child {
  max-width: 62ch;
  color: var(--isn-muted);
  font-size: 1.05rem;
}

.page-header__media {
  position: relative;
  overflow: hidden;
}

.page-header__media::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, var(--isn-surface), transparent 42%);
  content: "";
}

.page-header__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-header__legal-mark {
  position: relative;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, color-mix(in srgb, var(--isn-blue) 14%, var(--isn-surface-raised)), var(--isn-surface));
}

.page-header__legal-mark::before,
.page-header__legal-mark::after,
.page-header__legal-mark span {
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--isn-cyan) 48%, transparent);
  border-radius: 50%;
  content: "";
}

.page-header__legal-mark::before {
  width: 220px;
  height: 220px;
}

.page-header__legal-mark::after {
  width: 150px;
  height: 150px;
  box-shadow: 0 0 50px rgb(70 231 255 / 14%);
}

.page-header__legal-mark span {
  width: 72px;
  height: 84px;
  background: linear-gradient(145deg, var(--isn-blue), var(--isn-violet));
  border: 5px solid #c7f8ff;
  border-radius: 36px 36px 42px 42px;
  clip-path: polygon(50% 0, 100% 18%, 90% 72%, 50% 100%, 10% 72%, 0 18%);
}

.page-entry .entry-content {
  color: var(--isn-muted);
}

.entry-content .isnx-page-hero,
.entry-content .isnx-section,
.entry-content .isnx-split,
.entry-content .isnx-contact-panel,
.entry-content .isnx-legal-body,
.entry-content .isnx-stat-strip div,
.entry-content .isnx-card,
.entry-content .isnx-contact-card,
.entry-content .isnx-legal-card,
:root[data-color-mode="dark"] .entry-content .isnx-page-hero,
:root[data-color-mode="dark"] .entry-content .isnx-section,
:root[data-color-mode="dark"] .entry-content .isnx-split,
:root[data-color-mode="dark"] .entry-content .isnx-contact-panel,
:root[data-color-mode="dark"] .entry-content .isnx-legal-body,
:root[data-color-mode="dark"] .entry-content .isnx-stat-strip div,
:root[data-color-mode="dark"] .entry-content .isnx-card,
:root[data-color-mode="dark"] .entry-content .isnx-contact-card,
:root[data-color-mode="dark"] .entry-content .isnx-legal-card {
  color: var(--isn-muted);
  background: var(--isn-surface);
  border-color: var(--isn-border);
  box-shadow: var(--isn-shadow-soft);
}

.entry-content .isnx-page-hero {
  min-height: 0;
  grid-template-columns: minmax(0, 1fr);
  padding: clamp(1.35rem, 3vw, 2rem);
}

.entry-content .isnx-page-hero img {
  display: none;
}

.entry-content .isnx-page-hero h2 {
  max-width: 860px;
  color: var(--isn-text);
  font-size: 2rem;
}

.entry-content .isnx-page-hero p,
.entry-content .isnx-stat-strip span {
  color: var(--isn-muted);
}

.entry-content .isnx-page-kicker {
  color: var(--isn-cyan);
}

.entry-content .isnx-stat-strip strong,
.entry-content .isnx-card h3,
.entry-content .isnx-contact-card h3,
.entry-content .isnx-legal-card h3,
:root[data-color-mode="dark"] .entry-content .isnx-stat-strip strong,
:root[data-color-mode="dark"] .entry-content .isnx-card h3,
:root[data-color-mode="dark"] .entry-content .isnx-contact-card h3,
:root[data-color-mode="dark"] .entry-content .isnx-legal-card h3 {
  color: var(--isn-text);
}

.entry-content .isnx-card,
.entry-content .isnx-contact-card,
.entry-content .isnx-legal-card {
  position: relative;
  overflow: hidden;
}

.entry-content .isnx-card::before,
.entry-content .isnx-contact-card::before,
.entry-content .isnx-legal-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(var(--isn-blue), var(--isn-cyan));
  content: "";
}

.entry-content .isnx-check-list li::before {
  background: var(--isn-blue);
  box-shadow: inset 0 0 0 4px color-mix(in srgb, var(--isn-cyan) 34%, transparent);
}

.entry-content .isnx-contact-form label {
  color: var(--isn-text);
}

.entry-content .isnx-contact-form input,
.entry-content .isnx-contact-form textarea,
:root[data-color-mode="dark"] .entry-content .isnx-contact-form input,
:root[data-color-mode="dark"] .entry-content .isnx-contact-form textarea {
  color: var(--isn-text);
  background: var(--isn-surface-soft);
  border-color: var(--isn-border);
}

.entry-content .isnx-contact-form button {
  border-radius: 10px;
}

.entry-content .isnx-alert-note {
  color: #684300;
  background: #fff4ce;
  border-color: #d59a16;
  box-shadow: inset 3px 0 0 #b87500;
}

:root[data-color-mode="dark"] .entry-content .isnx-alert-note {
  color: #ffe8a3;
  background: rgb(110 70 0 / 28%);
  border-color: rgb(255 193 57 / 42%);
  box-shadow: inset 3px 0 0 #d6a126;
}

.entry-content .isnx-response-band,
:root[data-color-mode="dark"] .entry-content .isnx-response-band {
  color: var(--isn-text);
  background: color-mix(in srgb, var(--isn-blue) 11%, var(--isn-surface));
  border-color: var(--isn-border);
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(220px, 270px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.legal-layout__rail {
  position: sticky;
  top: 104px;
}

.legal-layout__content {
  min-width: 0;
}

.page-entry--legal .entry-content {
  counter-reset: isn-legal-heading;
}

.page-entry--legal .isnx-page-hero--legal {
  background: linear-gradient(135deg, var(--isn-surface), color-mix(in srgb, var(--isn-blue) 10%, var(--isn-surface-raised)));
}

.page-entry--legal .isnx-legal-body h2 {
  position: relative;
  padding-left: 3.1rem;
  counter-increment: isn-legal-heading;
}

.page-entry--legal .isnx-legal-body h2::before {
  position: absolute;
  top: 0.85rem;
  left: 0;
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  color: var(--isn-cyan);
  font-size: 0.78rem;
  font-weight: 900;
  background: color-mix(in srgb, var(--isn-blue) 14%, transparent);
  border: 1px solid var(--isn-border);
  border-radius: 50%;
  content: counter(isn-legal-heading, decimal-leading-zero);
}

.page-entry--legal .isnx-legal-body h2:first-child::before {
  top: -0.2rem;
}

/* Cybersecurity 404 */
.not-found {
  margin: 2rem auto 3rem;
}

.not-found__panel {
  position: relative;
  display: grid;
  min-height: 580px;
  grid-template-columns: minmax(0, 0.9fr) minmax(440px, 1.1fr);
  overflow: hidden;
  background: #030d22;
  border: 1px solid var(--isn-border);
  border-radius: var(--isn-radius);
  box-shadow: var(--isn-shadow);
  isolation: isolate;
}

.not-found__content {
  position: relative;
  z-index: 2;
  display: flex;
  max-width: 760px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem);
}

.not-found__eyebrow {
  margin: 0;
  color: var(--isn-cyan);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.not-found__code {
  margin-top: 0.5rem;
  color: transparent;
  font-size: 6.5rem;
  font-weight: 950;
  line-height: 0.95;
  background: linear-gradient(120deg, var(--isn-blue), var(--isn-cyan), var(--isn-violet));
  background-clip: text;
}

.not-found h1 {
  margin: 1rem 0;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1.08;
  text-wrap: balance;
}

.not-found__content > p:not(.not-found__eyebrow) {
  color: #c0d0e8;
}

.not-found .search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
  margin-top: 1rem;
}

.not-found__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  margin-top: 1.25rem;
}

.not-found__visual {
  position: relative;
  min-height: 580px;
  overflow: hidden;
}

.not-found__visual::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, #030d22 0%, transparent 55%);
  content: "";
}

.not-found__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.not-found__scan {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: 22%;
  width: 2px;
  background: linear-gradient(transparent, var(--isn-cyan), transparent);
  box-shadow: 0 0 20px var(--isn-cyan);
  animation: isn-404-scan 4.5s var(--isn-ease) infinite alternate;
}

@keyframes isn-404-scan {
  to {
    transform: translateX(340px);
  }
}

/* Footer */
.site-footer,
:root[data-color-mode="dark"] .site-footer {
  margin-top: 2rem;
  color: #dbe8ff;
  background: #061337;
  border-top: 1px solid rgb(70 231 255 / 18%);
}

.site-footer__row {
  border-color: rgb(255 255 255 / 10%);
}

.site-footer__row--top .site-footer__inner {
  min-height: 118px;
}

.site-footer .site-brand__mark {
  width: 40px;
  height: 46px;
}

.site-footer .site-title {
  font-size: 1.45rem;
}

.site-footer .site-description {
  display: none;
}

.site-footer__row--bottom .site-footer__inner {
  min-height: 84px;
}

.site-footer .footer-nav a {
  color: #dbe8ff;
}

.scroll-top {
  --isn-scroll-progress: 0%;
  --isn-scroll-footer-offset: 0px;

  right: max(1rem, env(safe-area-inset-right));
  bottom: calc(max(1rem, env(safe-area-inset-bottom)) + var(--isn-scroll-footer-offset));
  width: 50px;
  height: 50px;
  padding: 4px;
  overflow: hidden;
  color: #fff;
  background: conic-gradient(var(--isn-cyan) var(--isn-scroll-progress), rgb(85 116 164 / 38%) 0);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 12px 30px rgb(7 91 216 / 34%), 0 0 0 1px rgb(70 231 255 / 24%);
  isolation: isolate;
  transition: bottom 180ms var(--isn-ease), box-shadow 200ms var(--isn-ease), transform 200ms var(--isn-ease);
}

.scroll-top::before {
  position: absolute;
  z-index: 0;
  inset: 4px;
  background: linear-gradient(145deg, var(--isn-blue), var(--isn-blue-strong));
  border-radius: 50%;
  content: "";
}

.scroll-top svg {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
}

.scroll-top:hover,
:root[data-color-mode="dark"] .scroll-top:hover {
  color: #fff;
  background: conic-gradient(var(--isn-cyan) var(--isn-scroll-progress), rgb(85 116 164 / 38%) 0);
  box-shadow: 0 16px 36px rgb(7 91 216 / 42%), 0 0 0 1px rgb(70 231 255 / 38%);
  transform: translateY(-2px);
}

/* Responsive system */
@media (width <= 1240px) {
  .home-hero {
    grid-template-columns: minmax(0, 1.35fr) minmax(310px, 0.75fr);
  }

  .home-hero__content {
    width: min(72%, 660px);
  }

  .home-hero__title {
    font-size: 2.85rem;
  }

  .home-news {
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.72fr);
  }

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

  .single-hero {
    grid-template-columns: minmax(0, 0.85fr) minmax(440px, 1.15fr);
  }

  .single-hero h1 {
    font-size: 2.75rem;
  }
}

@media (width <= 1060px) {
  .layout-wide-shell,
  .site-header__inner,
  .header-search-panel__inner,
  .site-footer__inner,
  .layout-shell,
  .single-hero,
  .page-entry,
  .not-found {
    width: min(calc(100% - 32px), var(--isnx-wide-width));
  }

  .home-hero,
  .home-news {
    grid-template-columns: 1fr;
  }

  .home-hero__side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }

  .newsletter-section {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .newsletter-section .newsletter-card {
    grid-column: 1 / -1;
    min-width: 0;
    width: 100%;
  }

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

  .widget-area {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 2rem;
  }

  .single-hero {
    grid-template-columns: 1fr;
  }

  .single-hero__inner {
    max-width: 920px;
  }

  .single-rail {
    position: static;
    grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.6fr);
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-layout__rail {
    position: static;
  }

  .legal-layout__rail .toc ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (width <= 860px) {
  .archive-masthead,
  .page-header--editorial {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .archive-masthead__copy,
  .page-header__copy {
    padding: 2rem;
  }

  .archive-masthead h1,
  .page-header h1 {
    font-size: 2.65rem;
  }

  .archive-masthead__media,
  .page-header__media,
  .page-header__legal-mark {
    min-height: 260px;
  }

  .archive-masthead__media::before,
  .page-header__media::before {
    background: linear-gradient(180deg, var(--isn-surface), transparent 42%);
  }

  .page-header__legal-mark::before {
    width: 180px;
    height: 180px;
  }

  .widget-area {
    grid-template-columns: 1fr;
  }

  .related-posts .post-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .entry-content .isnx-stat-strip,
  .entry-content .isnx-split,
  .entry-content .isnx-contact-panel {
    grid-template-columns: 1fr;
  }

  .not-found__panel {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .not-found__visual {
    min-height: 340px;
    grid-row: 1;
  }

  .not-found__visual::before {
    background: linear-gradient(180deg, transparent 45%, #030d22 100%);
  }

  .not-found__content {
    margin-top: -5rem;
    padding-top: 0;
  }
}

@media (width <= 680px) {
  html {
    scroll-padding-top: 80px;
  }

  .reading-progress {
    height: 3px;
  }

  .home-hero {
    padding-top: 1rem;
  }

  .home-hero__feature,
  .home-hero__content {
    min-height: 470px;
  }

  .home-hero__content {
    width: 100%;
    justify-content: flex-end;
    padding: 1.35rem;
    padding-bottom: 1.75rem;
  }

  .home-hero__shade {
    background: linear-gradient(180deg, rgb(2 8 25 / 14%) 10%, rgb(2 8 25 / 91%) 70%, rgb(2 8 25 / 98%) 100%);
  }

  .home-hero__title {
    font-size: 2.25rem;
  }

  .home-hero__excerpt {
    font-size: 0.98rem;
  }

  .anime-hero-media__toggle {
    top: 1rem;
    right: 1rem;
    bottom: auto;
  }

  .home-hero__side,
  .latest-grid,
  .post-grid--archive,
  .related-posts .post-grid--3,
  .post-navigation .nav-links,
  .single-rail,
  .legal-layout__rail .toc ol {
    grid-template-columns: 1fr;
  }

  .side-story__link {
    grid-template-columns: 1fr;
  }

  .side-story img {
    aspect-ratio: 16 / 8;
  }

  .news-panel {
    padding: 1rem;
  }

  .newsletter-section {
    grid-template-columns: 1fr;
  }

  .archive-masthead {
    margin-block: 1rem 1.5rem;
  }

  .archive-masthead__copy,
  .page-header__copy {
    padding: 1.35rem;
  }

  .archive-masthead h1,
  .page-header h1,
  .single-hero h1 {
    font-size: 2.2rem;
  }

  .archive-masthead__media,
  .page-header__media,
  .page-header__legal-mark {
    min-height: 220px;
  }

  .archive-masthead--search .search-form,
  .not-found .search-form {
    grid-template-columns: 1fr;
  }

  .single-hero {
    gap: 1.2rem;
    margin-block: 1rem 1.5rem;
  }

  .single-rail {
    display: grid;
  }

  .toc,
  .share-links {
    padding: 1rem;
  }

  .entry-content {
    font-size: 1rem;
    line-height: 1.68;
  }

  .entry-content h2 {
    font-size: 1.48rem;
  }

  .entry-content .isnx-page-hero,
  .entry-content .isnx-section,
  .entry-content .isnx-split,
  .entry-content .isnx-contact-panel,
  .entry-content .isnx-legal-body {
    padding: 1.05rem;
  }

  .entry-content .isnx-card-grid,
  .entry-content .isnx-contact-grid,
  .entry-content .isnx-legal-grid {
    grid-template-columns: 1fr;
  }

  .page-entry--legal .isnx-legal-body h2 {
    padding-left: 2.75rem;
  }

  .post-gate__unlock,
  .post-contact-cta {
    grid-template-columns: 1fr;
  }

  .post-gate__unlock {
    align-items: stretch;
    flex-direction: column;
  }

  .post-gate__button,
  .post-contact-cta .button {
    width: 100%;
  }

  .not-found__content {
    padding-inline: 1.35rem;
  }

  .not-found__code {
    font-size: 4.5rem;
  }

  .not-found h1 {
    font-size: 2rem;
  }

  .site-footer__row--bottom .site-footer__inner {
    justify-content: center;
    text-align: center;
  }

  .footer-element--copyright,
  .footer-element--legal_navigation {
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }

  .site-footer__row--bottom .footer-nav ul {
    justify-content: center;
  }

  .scroll-top {
    right: max(0.875rem, env(safe-area-inset-right));
    bottom: calc(max(0.875rem, env(safe-area-inset-bottom)) + var(--isn-scroll-footer-offset));
    width: 46px;
    height: 46px;
  }
}

@media (width <= 430px) {
  .layout-wide-shell,
  .site-header__inner,
  .header-search-panel__inner,
  .site-footer__inner,
  .layout-shell,
  .single-hero,
  .page-entry,
  .not-found {
    width: min(calc(100% - 24px), var(--isnx-wide-width));
  }

  .home-hero__feature,
  .home-hero__content {
    min-height: 440px;
  }

  .home-hero__title {
    font-size: 1.95rem;
  }

  .side-story h2,
  .post-card__title {
    font-size: 1.02rem;
  }

  .archive-masthead h1,
  .page-header h1,
  .single-hero h1 {
    font-size: 1.9rem;
  }

  .single-hero__media,
  .post-card,
  .news-panel,
  .newsletter-section,
  .not-found__panel {
    border-radius: 12px;
  }

  .not-found__visual {
    min-height: 280px;
  }

  .not-found__content {
    margin-top: -3rem;
  }

  .site-header__inner {
    gap: 0.5rem;
  }

  .site-brand {
    min-width: 0;
    max-width: none;
  }

  .site-brand__text {
    overflow: hidden;
  }

  .site-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-header__actions {
    min-width: 0;
    gap: 0.35rem;
  }

  .header-brief-button {
    width: 94px;
    min-width: 94px;
    padding-inline: 0.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .anime-hero-media__video {
    display: none;
  }

  .anime-hero-media__toggle {
    display: none;
  }

  .post-card:hover,
  .side-story:hover,
  .intel-card:hover,
  .post-card:hover .post-card__image,
  .side-story:hover img,
  .intel-card:hover img {
    transform: none;
  }
}

@media print {
  .anime-hero-media__video,
  .anime-hero-media__toggle,
  .reading-progress,
  .single-rail,
  .site-header,
  .site-footer,
  .scroll-top,
  .isnx-side-ads,
  .post-gate__ad {
    display: none !important;
  }

  body,
  .entry-content,
  .entry-content h2,
  .entry-content h3 {
    color: #000;
    background: #fff;
  }

  .layout-shell--single {
    display: block;
    width: 100%;
  }
}
