/**
 * n.exchange Journal — Blocksy child-theme / Additional CSS layer
 * Version: 2.0.1
 *
 * Installation (preferred): enqueue from a Blocksy child theme.
 * Quick test: paste into Appearance > Customise > Additional CSS.
 *
 * Scope:
 * - Blocksy native header, footer, blog archive, cards and single posts
 * - Gutenberg sections using the nex-* classes documented in BLOCKSY_SETUP.md
 * - No external font request; Inter uses a local file when configured in Blocksy,
 *   then falls back to the system UI stack.
 */

:root {
  --nex-blue-700: #2638c4;
  --nex-blue-800: #1f2fa8;
  --nex-blue-950: #111a5c;
  --nex-green-400: #66d797;
  --nex-green-100: #e8f9ef;
  --nex-cyan-400: #58b8ea;
  --nex-violet-500: #5b3ed1;
  --nex-orange-400: #ff9a62;
  --nex-slate-950: #11152b;
  --nex-slate-800: #2b334d;
  --nex-slate-700: #46506b;
  --nex-slate-500: #727a91;
  --nex-slate-300: #cbd1df;
  --nex-slate-200: #e1e5f0;
  --nex-slate-100: #f3f5fa;
  --nex-white: #fff;
  --nex-surface: var(--nex-white);
  --nex-surface-soft: var(--nex-slate-100);
  --nex-surface-inverse: var(--nex-slate-950);
  --nex-text: var(--nex-slate-950);
  --nex-muted: var(--nex-slate-700);
  --nex-accent: var(--nex-blue-700);
  --nex-accent-hover: var(--nex-blue-800);
  --nex-positive: var(--nex-green-400);
  --nex-line: var(--nex-slate-200);
  --nex-radius-sm: 0.65rem;
  --nex-radius-md: 1rem;
  --nex-radius-lg: 1.5rem;
  --nex-shadow: 0 18px 45px rgba(23, 35, 119, 0.12);
  --nex-shadow-strong: 0 24px 70px rgba(4, 10, 48, 0.28);
  --nex-site-width: 76rem;
  --nex-reading-width: 46rem;
  --nex-header-height: 76px;

  /* Blocksy palette bridge. Values still need to be entered in Customiser. */
  --theme-palette-color-1: var(--nex-blue-700);
  --theme-palette-color-2: var(--nex-blue-800);
  --theme-palette-color-3: var(--nex-slate-700);
  --theme-palette-color-4: var(--nex-slate-950);
  --theme-palette-color-5: var(--nex-slate-200);
  --theme-palette-color-6: var(--nex-slate-100);
  --theme-palette-color-7: var(--nex-white);
  --theme-palette-color-8: var(--nex-blue-950);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nex-header-height) + 1.25rem);
}

body {
  background: var(--nex-surface);
  color: var(--nex-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
}

a {
  text-underline-offset: 0.17em;
}

a:hover {
  text-decoration-thickness: 0.11em;
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--nex-positive) !important;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--nex-blue-950);
}

::selection {
  background: var(--nex-green-400);
  color: var(--nex-blue-950);
}

.nex-shell,
.nex-blog-hero > .wp-block-group__inner-container,
.nex-discovery > .wp-block-group__inner-container,
.nex-cta-band > .wp-block-group__inner-container {
  width: min(calc(100% - 2rem), var(--nex-site-width));
  margin-inline: auto;
}

.nex-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

#header [data-sticky*="yes"],
#header .ct-sticky-container {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(17, 21, 43, 0.08);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

#header [data-row="middle"] {
  min-height: var(--nex-header-height);
}

#header .site-logo-container img {
  width: auto;
  max-height: 36px;
}

#header .site-title {
  color: var(--nex-accent);
  font-size: 1.48rem;
  font-weight: 750;
  letter-spacing: -0.045em;
}

#header [data-id="menu"] > ul > li > a,
#header .menu > li > a {
  color: var(--nex-text);
  font-size: 0.92rem;
  font-weight: 680;
}

#header [data-id="menu"] > ul > li.current-menu-item > a,
#header [data-id="menu"] > ul > li > a:hover,
#header .menu > li.current-menu-item > a,
#header .menu > li > a:hover {
  color: var(--nex-accent);
}

#header .ct-button,
#header [data-id="button"] .ct-button,
.nex-button .wp-element-button,
.nex-button.wp-block-button .wp-block-button__link,
.wp-block-button.nex-button .wp-block-button__link {
  min-height: 44px;
  padding: 0.7rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--nex-accent);
  color: var(--nex-white);
  font-weight: 760;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease,
    box-shadow 180ms ease;
}

#header .ct-button:hover,
.nex-button .wp-element-button:hover,
.nex-button.wp-block-button .wp-block-button__link:hover,
.wp-block-button.nex-button .wp-block-button__link:hover {
  background: var(--nex-accent-hover);
  color: var(--nex-white);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(38, 56, 196, 0.2);
}

.nex-button--secondary .wp-element-button,
.wp-block-button.nex-button--secondary .wp-block-button__link {
  border-color: var(--nex-line);
  background: transparent;
  color: var(--nex-text);
}

.nex-button--secondary .wp-element-button:hover,
.wp-block-button.nex-button--secondary .wp-block-button__link:hover {
  background: var(--nex-surface-soft);
  color: var(--nex-accent);
  box-shadow: none;
}

#offcanvas .ct-panel-inner {
  background: var(--nex-white);
}

#offcanvas .mobile-menu a {
  color: var(--nex-text);
  font-weight: 720;
}

/* --------------------------------------------------------------------------
   Archive hero and featured story
   -------------------------------------------------------------------------- */

.nex-blog-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(3.2rem, 7vw, 5.3rem) 0 clamp(3rem, 6vw, 4.5rem);
  background: var(--nex-accent);
  color: var(--nex-white);
}

.nex-blog-hero::before,
.nex-blog-hero::after,
.nex-article-hero::before,
.nex-article-hero::after {
  position: absolute;
  z-index: -1;
  content: "";
  transform: rotate(29deg);
  pointer-events: none;
}

.nex-blog-hero::before,
.nex-article-hero::before {
  width: 31rem;
  height: 43rem;
  left: -20rem;
  top: -15rem;
  background: var(--nex-green-400);
}

.nex-blog-hero::after,
.nex-article-hero::after {
  width: 25rem;
  height: 37rem;
  right: -16rem;
  top: -9rem;
  background: var(--nex-violet-500);
}

.nex-blog-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(28rem, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.nex-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  color: inherit;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nex-eyebrow::before {
  width: 1.6rem;
  height: 2px;
  background: currentColor;
  content: "";
}

.nex-blog-hero h1,
.nex-blog-hero__title {
  max-width: 11ch;
  margin: 0;
  color: var(--nex-white);
  font-size: clamp(2.7rem, 6vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.nex-blog-hero__lede {
  max-width: 35rem;
  margin: 1.35rem 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.26rem);
  line-height: 1.55;
}

.nex-featured,
.nex-featured .wp-block-post,
.nex-featured .entry-card {
  overflow: hidden;
  border: 0;
  border-radius: var(--nex-radius-lg);
  background: var(--nex-white);
  color: var(--nex-text);
  box-shadow: var(--nex-shadow-strong);
}

.nex-featured .wp-block-post-template,
.nex-featured ul {
  margin: 0;
  padding: 0;
}

.nex-featured .wp-block-post {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 22rem;
}

.nex-featured .wp-block-post-featured-image,
.nex-featured .ct-media-container {
  min-height: 100%;
  margin: 0;
}

.nex-featured .wp-block-post-featured-image a,
.nex-featured .wp-block-post-featured-image img,
.nex-featured .ct-media-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nex-featured__copy,
.nex-featured .wp-block-group:not(.wp-block-post-template) {
  display: flex;
  flex-direction: column;
  padding: clamp(1.35rem, 3vw, 2rem);
}

.nex-featured :where(h2, h3, .wp-block-post-title) {
  margin: 0.9rem 0 0.8rem;
  color: var(--nex-text);
  font-size: clamp(1.55rem, 2.4vw, 2.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.nex-featured :where(h2, h3, .wp-block-post-title) a {
  color: inherit;
  text-decoration: none;
}

.nex-featured :where(h2, h3, .wp-block-post-title) a:hover {
  color: var(--nex-accent);
  text-decoration: underline;
}

.nex-featured :where(.wp-block-post-excerpt, .wp-block-post-excerpt__excerpt) {
  margin: 0 0 1.2rem;
  color: var(--nex-muted);
}

/* --------------------------------------------------------------------------
   Search, filters and archive controls
   -------------------------------------------------------------------------- */

.nex-discovery {
  position: sticky;
  z-index: 20;
  top: var(--nex-header-height);
  padding: 1rem 0;
  border-block: 1px solid var(--nex-line);
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.nex-discovery__row {
  display: grid;
  grid-template-columns: minmax(17rem, 0.8fr) minmax(0, 1.5fr);
  gap: 1rem;
  align-items: center;
}

.nex-search :where(input[type="search"], input[type="text"]),
.ct-search-form input[type="search"] {
  min-height: 48px;
  border: 1px solid var(--nex-line);
  border-radius: 999px;
  background: var(--nex-white);
  color: var(--nex-text);
}

.nex-search :where(input[type="search"], input[type="text"]):focus,
.ct-search-form input[type="search"]:focus {
  border-color: var(--nex-accent);
}

.ct-posts-filter,
.nex-category-pills {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.2rem 0 0.45rem;
  scrollbar-width: thin;
}

.ct-posts-filter a,
.ct-posts-filter button,
.nex-category-pills a {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0.58rem 0.9rem;
  border: 1px solid var(--nex-line);
  border-radius: 999px;
  background: var(--nex-white);
  color: var(--nex-text);
  font-size: 0.84rem;
  font-weight: 760;
  line-height: 1.2;
  text-decoration: none;
}

.ct-posts-filter :where(a, button):hover,
.nex-category-pills a:hover {
  border-color: var(--nex-accent);
  color: var(--nex-accent);
}

.ct-posts-filter :where(.active, [aria-current="page"], [aria-pressed="true"]),
.nex-category-pills a[aria-current="page"] {
  border-color: var(--nex-accent);
  background: var(--nex-accent);
  color: var(--nex-white);
}

/* --------------------------------------------------------------------------
   Native Blocksy archive cards
   -------------------------------------------------------------------------- */

.blog .site-main,
.archive .site-main,
.search .site-main {
  padding-block: clamp(2.8rem, 5vw, 4rem) clamp(4rem, 7vw, 6rem);
}

.entries[data-layout="grid"],
.entries[data-cards="boxed"],
.ct-posts-shortcode .entries {
  gap: 1.4rem;
}

.entries .entry-card,
.ct-posts-shortcode .entry-card,
.nex-card {
  overflow: hidden;
  border: 1px solid var(--nex-line);
  border-radius: var(--nex-radius-md);
  background: var(--nex-white);
  box-shadow: 0 1px 0 rgba(17, 21, 43, 0.02);
  transition: transform 200ms ease, box-shadow 200ms ease,
    border-color 200ms ease;
}

.entries .entry-card:hover,
.entries .entry-card:focus-within,
.ct-posts-shortcode .entry-card:hover,
.nex-card:hover,
.nex-card:focus-within {
  border-color: #c6ccdf;
  transform: translateY(-4px);
  box-shadow: var(--nex-shadow);
}

.entries .entry-card .ct-media-container,
.ct-posts-shortcode .entry-card .ct-media-container,
.nex-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(145deg, var(--nex-accent), var(--nex-blue-950));
}

.entries .entry-card .ct-media-container img,
.ct-posts-shortcode .entry-card .ct-media-container img,
.nex-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.entries .entry-card:hover .ct-media-container img,
.nex-card:hover .nex-card__media img {
  transform: scale(1.025);
}

.entries .entry-card .entry-title,
.ct-posts-shortcode .entry-title,
.nex-card__title {
  margin: 0.7rem 0 0.55rem;
  color: var(--nex-text);
  font-size: clamp(1.12rem, 1.7vw, 1.28rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.entries .entry-card .entry-title a,
.ct-posts-shortcode .entry-title a,
.nex-card__title a {
  color: inherit;
  text-decoration: none;
}

.entries .entry-card:hover .entry-title a,
.ct-posts-shortcode .entry-card:hover .entry-title a,
.nex-card:hover .nex-card__title a {
  color: var(--nex-accent);
  text-decoration: underline;
  text-decoration-color: var(--nex-accent);
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.16em;
}

.entries .entry-card .entry-excerpt,
.ct-posts-shortcode .entry-excerpt,
.nex-card__excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 1rem;
  color: var(--nex-muted);
  font-size: 0.93rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.entry-card .entry-meta,
.entry-card .ct-entry-meta,
.wp-block-post-date,
.wp-block-post-author,
.nex-meta {
  color: var(--nex-muted);
  font-size: 0.8rem;
  font-weight: 650;
}

.entry-card .entry-categories,
.entry-card [class*="entry-category"],
.wp-block-post-terms,
.nex-badge {
  display: inline-flex;
  width: max-content;
  padding: 0.38rem 0.68rem;
  border-radius: 999px;
  background: #e8ebff;
  color: var(--nex-accent);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.entry-card .entry-categories a,
.entry-card [class*="entry-category"] a,
.wp-block-post-terms a {
  color: inherit;
  text-decoration: none;
}

.ct-pagination .page-numbers,
.ct-load-more,
[data-load-more] {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--nex-line);
  border-radius: 999px;
  background: var(--nex-white);
  color: var(--nex-text);
  font-weight: 760;
}

.ct-pagination .page-numbers.current,
.ct-pagination .page-numbers:hover,
.ct-load-more:hover,
[data-load-more]:hover {
  border-color: var(--nex-accent);
  background: var(--nex-accent);
  color: var(--nex-white);
}

/* Skeleton can be applied by the implementation while an AJAX archive loads. */
.nex-is-loading .entry-card {
  opacity: 0.2;
  pointer-events: none;
}

.nex-skeleton {
  overflow: hidden;
  border: 1px solid var(--nex-line);
  border-radius: var(--nex-radius-md);
  background: var(--nex-white);
}

.nex-skeleton > * {
  background: linear-gradient(90deg, #eef1f7 20%, #f8f9fc 42%, #eef1f7 64%);
  background-size: 300% 100%;
  animation: nex-shimmer 1s infinite linear;
}

@keyframes nex-shimmer {
  to {
    background-position: -100% 0;
  }
}

.nex-empty-state {
  padding: 4rem 1.5rem;
  border: 1px dashed #b8bfd4;
  border-radius: var(--nex-radius-lg);
  background: var(--nex-surface-soft);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Reusable thumbnail system
   Apply one class to an Image/Cover/Group wrapping the featured illustration.
   -------------------------------------------------------------------------- */

.nex-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  isolation: isolate;
  background: var(--nex-accent);
  color: var(--nex-white);
}

.nex-thumb::before,
.nex-thumb::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.nex-thumb > :where(img, svg, .wp-block-image) {
  position: relative;
  z-index: 2;
}

.nex-thumb--guide {
  background: linear-gradient(120deg, var(--nex-blue-700), var(--nex-cyan-400));
}

.nex-thumb--guide::before {
  width: 15rem;
  height: 15rem;
  right: -6rem;
  top: -7rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.nex-thumb--news {
  background: linear-gradient(135deg, #ca633b, var(--nex-orange-400));
}

.nex-thumb--news::before {
  inset: 0;
  background-image: linear-gradient(90deg, rgba(17, 21, 43, 0.15) 1px, transparent 1px),
    linear-gradient(rgba(17, 21, 43, 0.15) 1px, transparent 1px);
  background-size: 34px 34px;
}

.nex-thumb--integration,
.nex-thumb--developer {
  background: linear-gradient(145deg, var(--nex-blue-950), var(--nex-blue-700));
}

.nex-thumb--integration::before {
  width: 70%;
  height: 130%;
  right: -18%;
  top: -25%;
  background: var(--nex-violet-500);
  transform: rotate(18deg);
}

.nex-thumb--developer::before {
  inset: 0;
  background-image: repeating-linear-gradient(90deg, transparent 0 39px, rgba(255, 255, 255, 0.05) 40px),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(255, 255, 255, 0.05) 40px);
}

.nex-thumb--security {
  background: linear-gradient(135deg, #142575 0 48%, var(--nex-green-400) 48%);
}

.nex-thumb--security::before {
  width: 10rem;
  height: 10rem;
  left: -3rem;
  bottom: -5rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  transform: rotate(45deg);
}

.nex-thumb--regulation {
  background: linear-gradient(135deg, #2032ba 0 56%, var(--nex-violet-500) 56%);
}

.nex-thumb--regulation::before {
  width: 12rem;
  height: 12rem;
  right: -3rem;
  bottom: -5rem;
  border: 1.2rem solid rgba(102, 215, 151, 0.8);
  border-radius: 50%;
}

.nex-thumb--coin {
  background: linear-gradient(140deg, var(--nex-blue-700), #17246f);
}

.nex-thumb--coin::before {
  width: 13rem;
  height: 13rem;
  left: -5rem;
  bottom: -7rem;
  border: 1px solid rgba(102, 215, 151, 0.8);
  border-radius: 50%;
  box-shadow: 0 0 0 2rem rgba(102, 215, 151, 0.08);
}

.nex-thumb--infrastructure {
  background: linear-gradient(145deg, var(--nex-blue-700) 0 62%, var(--nex-green-400) 62%);
}

/* --------------------------------------------------------------------------
   Single article hero and reading layout
   -------------------------------------------------------------------------- */

.nex-article-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 2rem 0 clamp(3rem, 6vw, 4.5rem);
  background: linear-gradient(140deg, var(--nex-blue-950), var(--nex-accent));
  color: var(--nex-white);
}

.nex-article-hero .ct-breadcrumbs,
.nex-article-hero .wp-block-blocksy-breadcrumbs,
.nex-article-hero__breadcrumbs {
  margin: 0 0 2.2rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
}

.nex-article-hero :where(.ct-breadcrumbs, .wp-block-blocksy-breadcrumbs) a {
  color: inherit;
}

.nex-article-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(24rem, 0.72fr);
  gap: clamp(2.2rem, 5vw, 4rem);
  align-items: center;
}

.nex-article-hero h1,
.nex-article-title {
  max-width: 16ch;
  margin: 1rem 0 1.2rem;
  color: var(--nex-white);
  font-size: clamp(2.5rem, 5.6vw, 4.85rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.nex-article-dek {
  max-width: 43rem;
  margin: 0 0 1.35rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.06rem, 2vw, 1.24rem);
  line-height: 1.55;
}

.nex-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.7rem;
  align-items: center;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  font-weight: 640;
}

.nex-article-meta a {
  color: inherit;
}

.nex-article-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--nex-radius-lg);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--nex-shadow-strong);
}

.nex-article-visual :where(img, figure, .wp-block-post-featured-image) {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
}

.nex-article-layout {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, var(--nex-reading-width)) 16.5rem;
  justify-content: center;
  gap: 2.25rem;
  align-items: start;
  padding-block: clamp(3rem, 6vw, 4.25rem) clamp(4.5rem, 7vw, 6rem);
}

.nex-reading-column,
.single-post .entry-content {
  min-width: 0;
  color: var(--nex-text);
  font-size: 1.08rem;
}

.nex-reading-column > p:first-of-type,
.single-post .entry-content > p:first-of-type {
  color: var(--nex-slate-800);
  font-size: 1.25rem;
  line-height: 1.62;
}

.nex-reading-column p,
.single-post .entry-content p {
  margin-block: 0 1.35rem;
}

.nex-reading-column h2,
.single-post .entry-content h2 {
  margin: 3.6rem 0 1rem;
  color: var(--nex-text);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.nex-reading-column h3,
.single-post .entry-content h3 {
  margin: 2.3rem 0 0.8rem;
  color: var(--nex-text);
  font-size: 1.35rem;
  line-height: 1.24;
  letter-spacing: -0.025em;
}

.nex-reading-column :where(ul, ol),
.single-post .entry-content :where(ul, ol) {
  margin-block: 0 1.5rem;
  padding-left: 1.4rem;
}

.nex-reading-column li + li,
.single-post .entry-content li + li {
  margin-top: 0.55rem;
}

.nex-reading-column blockquote,
.single-post .entry-content blockquote {
  margin: 2.2rem 0;
  padding: 1.4rem 1.5rem;
  border-left: 4px solid var(--nex-positive);
  background: var(--nex-green-100);
  color: var(--nex-slate-800);
  font-size: 1.16rem;
  font-weight: 650;
}

.nex-share-rail {
  position: sticky;
  top: calc(var(--nex-header-height) + 1.25rem);
}

.nex-share-rail .ct-share-box,
.nex-share-rail .wp-block-blocksy-share-box {
  display: grid;
  gap: 0.6rem;
}

.nex-share-rail :where(a, button) {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--nex-line);
  border-radius: 50%;
  background: var(--nex-white);
  color: var(--nex-muted);
}

.nex-share-rail :where(a, button):hover {
  border-color: var(--nex-accent);
  color: var(--nex-accent);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Article outline / TOC
   -------------------------------------------------------------------------- */

.nex-toc {
  color: var(--nex-muted);
}

.nex-toc--desktop {
  position: sticky;
  top: calc(var(--nex-header-height) + 1rem);
  padding-left: 1.3rem;
  border-left: 1px solid var(--nex-line);
}

.nex-toc :where(h2, h3, .toc-title, .wp-block-heading) {
  margin: 0 0 0.8rem;
  color: var(--nex-text);
  font-size: 0.76rem;
  font-weight: 820;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nex-toc :where(ol, ul),
.nex-toc .wp-block-rank-math-toc-block nav > ul,
.nex-toc .simpletoc-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nex-toc li + li {
  margin-top: 0.15rem;
}

.nex-toc a {
  display: block;
  padding: 0.46rem 0.6rem;
  border-left: 2px solid transparent;
  color: var(--nex-muted);
  font-size: 0.82rem;
  line-height: 1.35;
  text-decoration: none;
}

.nex-toc a:hover,
.nex-toc a.is-active,
.nex-toc a[aria-current="location"] {
  border-color: var(--nex-accent);
  background: #f1f3ff;
  color: var(--nex-accent);
}

.nex-toc--mobile {
  display: none;
  margin: 0 0 2rem;
  border: 1px solid var(--nex-line);
  border-radius: var(--nex-radius-md);
  background: var(--nex-white);
  box-shadow: var(--nex-shadow);
}

.nex-toc--mobile > summary {
  padding: 1rem 1.1rem;
  color: var(--nex-text);
  font-weight: 800;
  cursor: pointer;
}

.nex-toc--mobile > :not(summary) {
  padding-inline: 1.1rem;
}

.nex-toc-cta {
  margin-top: 1.2rem;
  padding: 1rem;
  border-radius: var(--nex-radius-md);
  background: var(--nex-surface-soft);
  color: var(--nex-text);
}

.nex-toc-cta p {
  margin: 0.35rem 0 0.7rem;
  color: var(--nex-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   Editorial blocks
   -------------------------------------------------------------------------- */

.nex-takeaways {
  margin: 0 0 2.5rem;
  padding: 1.6rem 1.7rem;
  border: 1px solid #cdd6ff;
  border-radius: var(--nex-radius-lg);
  background: #f1f3ff;
}

.nex-takeaways :where(h2, h3) {
  margin: 0 0 0.75rem;
  font-size: 1.45rem;
}

.nex-takeaways :where(ul, ol) {
  margin: 0;
}

.nex-note {
  margin: 2rem 0;
  padding: 1.25rem 1.35rem;
  border-left: 4px solid var(--nex-cyan-400);
  border-radius: 0 var(--nex-radius-sm) var(--nex-radius-sm) 0;
  background: #eef8fd;
  color: var(--nex-slate-800);
}

.nex-note--warning {
  border-left-color: var(--nex-orange-400);
  background: #fff5ee;
}

.nex-note--positive {
  border-left-color: var(--nex-positive);
  background: var(--nex-green-100);
}

.nex-table-scroll {
  overflow-x: auto;
  margin: 1.8rem 0 2.4rem;
  border: 1px solid var(--nex-line);
  border-radius: var(--nex-radius-md);
  -webkit-overflow-scrolling: touch;
}

.nex-table-scroll table {
  width: 100%;
  min-width: 44rem;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  font-size: 0.88rem;
  line-height: 1.5;
}

.nex-table-scroll :where(th, td) {
  padding: 1rem;
  border: 0;
  border-bottom: 1px solid var(--nex-line);
  text-align: left;
  vertical-align: top;
}

.nex-table-scroll th {
  background: var(--nex-surface-soft);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nex-table-scroll tr:last-child td {
  border-bottom: 0;
}

.nex-inline-cta,
.nex-newsletter {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin: 3rem 0;
  padding: clamp(1.35rem, 4vw, 2rem);
  border-radius: var(--nex-radius-lg);
  background: var(--nex-surface-inverse);
  color: var(--nex-white);
}

.nex-inline-cta::after,
.nex-newsletter::after {
  position: absolute;
  z-index: -1;
  width: 12rem;
  height: 12rem;
  right: -5rem;
  top: -5rem;
  border: 1.4rem solid rgba(102, 215, 151, 0.18);
  border-radius: 50%;
  content: "";
}

.nex-inline-cta :where(h2, h3),
.nex-newsletter :where(h2, h3) {
  margin: 0 0 0.65rem;
  color: var(--nex-white);
  font-size: clamp(1.55rem, 3vw, 1.9rem);
  line-height: 1.1;
}

.nex-inline-cta p,
.nex-newsletter p {
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.78);
}

.nex-faq {
  border-top: 1px solid var(--nex-line);
}

.nex-faq details,
.nex-faq .wp-block-details {
  margin: 0;
  border-bottom: 1px solid var(--nex-line);
}

.nex-faq summary {
  position: relative;
  padding: 1rem 2rem 1rem 0;
  color: var(--nex-text);
  font-weight: 760;
  cursor: pointer;
}

.nex-faq summary::after {
  position: absolute;
  right: 0.2rem;
  top: 0.9rem;
  color: var(--nex-accent);
  font-size: 1.25rem;
  content: "+";
}

.nex-faq details[open] summary::after {
  content: "−";
}

.nex-sources {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--nex-line);
  color: var(--nex-muted);
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   Related posts, CTA band and footer
   -------------------------------------------------------------------------- */

.ct-related-posts,
.nex-related {
  padding-block: clamp(3.5rem, 6vw, 5rem);
  background: var(--nex-surface-soft);
}

.ct-related-posts .related-entry,
.ct-related-posts article,
.nex-related .wp-block-post {
  overflow: hidden;
  border: 1px solid var(--nex-line);
  border-radius: var(--nex-radius-md);
  background: var(--nex-white);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.ct-related-posts :where(.related-entry, article):hover,
.nex-related .wp-block-post:hover {
  transform: translateY(-3px);
  box-shadow: var(--nex-shadow);
}

.ct-related-posts .ct-media-container,
.nex-related .wp-block-post-featured-image {
  aspect-ratio: 16 / 9;
}

.nex-cta-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.4rem;
  margin-block: clamp(3rem, 7vw, 5rem);
}

.nex-cta-grid > * {
  margin: 0;
}

.nex-product-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  border: 1px solid #d2d9ff;
  border-radius: var(--nex-radius-lg);
  background: #e9edff;
}

.nex-product-cta :where(h2, h3) {
  margin: 0 0 0.7rem;
  color: var(--nex-text);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.nex-product-cta p {
  color: var(--nex-muted);
}

.nex-product-cta .wp-block-buttons {
  margin-top: auto;
}

#footer,
.ct-footer {
  background: #101633;
  color: var(--nex-white);
}

#footer [data-row],
.ct-footer [data-row] {
  border-color: rgba(255, 255, 255, 0.14);
}

#footer :where(h2, h3, .widget-title),
.ct-footer :where(h2, h3, .widget-title) {
  color: var(--nex-positive);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

#footer :where(a, p, li),
.ct-footer :where(a, p, li) {
  color: rgba(255, 255, 255, 0.78);
}

#footer a:hover,
.ct-footer a:hover {
  color: var(--nex-white);
}

.nex-legal {
  max-width: var(--nex-site-width);
  margin-inline: auto;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.78rem;
  line-height: 1.55;
}

.nex-legal p {
  margin: 0.45rem 0;
  color: inherit;
}

/* Blocksy read-progress bridge */
.ct-reading-progress-bar,
[class*="reading-progress"] {
  height: 3px;
}

.ct-reading-progress-bar > *,
[class*="reading-progress"] > * {
  background: linear-gradient(90deg, var(--nex-positive), var(--nex-cyan-400));
}

/* --------------------------------------------------------------------------
   Responsive states
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  :root {
    --nex-header-height: 68px;
  }

  .nex-blog-hero__grid {
    grid-template-columns: 1fr;
  }

  .nex-blog-hero h1,
  .nex-blog-hero__title {
    max-width: 15ch;
  }

  .nex-article-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.6fr);
    gap: 2.5rem;
  }

  .nex-article-layout {
    grid-template-columns: minmax(0, var(--nex-reading-width)) 15rem;
    gap: 2rem;
  }

  .nex-share-rail {
    display: none;
  }
}

@media (max-width: 960px) {
  .nex-discovery {
    top: 0;
  }

  .nex-article-hero__grid {
    grid-template-columns: 1fr;
  }

  .nex-article-hero h1,
  .nex-article-title {
    max-width: 18ch;
  }

  .nex-article-visual {
    aspect-ratio: 16 / 9;
  }

  .nex-article-layout {
    display: block;
    max-width: var(--nex-reading-width);
    margin-inline: auto;
  }

  .nex-toc--desktop {
    display: none;
  }

  .nex-toc--mobile {
    display: block;
  }

  .nex-cta-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nex-shell,
  .nex-blog-hero > .wp-block-group__inner-container,
  .nex-discovery > .wp-block-group__inner-container,
  .nex-cta-band > .wp-block-group__inner-container {
    width: min(calc(100% - 1.25rem), var(--nex-site-width));
  }

  .nex-blog-hero {
    padding-block: 2.8rem 2.6rem;
  }

  .nex-blog-hero::before,
  .nex-article-hero::before {
    left: -25rem;
  }

  .nex-blog-hero::after,
  .nex-article-hero::after {
    right: -18rem;
  }

  .nex-featured .wp-block-post {
    grid-template-columns: 1fr;
  }

  .nex-featured .wp-block-post-featured-image,
  .nex-featured .ct-media-container {
    aspect-ratio: 16 / 9;
  }

  .nex-discovery {
    position: static;
  }

  .nex-discovery__row {
    grid-template-columns: 1fr;
  }

  .nex-article-hero {
    padding-top: 1.2rem;
  }

  .nex-article-hero h1,
  .nex-article-title {
    font-size: clamp(2.25rem, 11vw, 3.3rem);
  }

  .nex-article-layout {
    padding-block: 2.2rem 4rem;
  }

  .nex-reading-column,
  .single-post .entry-content {
    font-size: 1rem;
  }

  .nex-reading-column > p:first-of-type,
  .single-post .entry-content > p:first-of-type {
    font-size: 1.12rem;
  }

  .nex-takeaways,
  .nex-inline-cta,
  .nex-newsletter {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  #header .site-title {
    font-size: 1.28rem;
  }

  .nex-blog-hero h1,
  .nex-blog-hero__title {
    font-size: clamp(2.45rem, 13vw, 3.5rem);
  }

  .entries .entry-card,
  .ct-posts-shortcode .entry-card,
  .nex-card {
    border-radius: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  #header,
  #footer,
  .ct-footer,
  .nex-share-rail,
  .nex-toc,
  .nex-inline-cta,
  .nex-newsletter,
  .nex-product-cta,
  .ct-related-posts {
    display: none !important;
  }

  .nex-article-hero {
    padding: 0;
    background: none;
    color: #000;
  }

  .nex-article-hero :where(h1, p, a, .nex-article-meta) {
    color: #000 !important;
  }

  .nex-article-visual {
    display: none;
  }

  .nex-article-layout {
    display: block;
    max-width: none;
    padding: 0;
  }
}

/* --------------------------------------------------------------------------
   Blocksy native-layout guarantees
   These rules deliberately do not depend on the optional Gutenberg class map.
   -------------------------------------------------------------------------- */

/* Keep the native front-page/blog title treatment legible on the brand hero. */
body.home .hero-section,
body.blog .hero-section,
body.home .page-title,
body.blog .page-title {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(140deg, var(--nex-blue-950), var(--nex-accent));
  color: var(--nex-white);
}

body.home .hero-section :where(h1, h2, p, a, span, .page-title),
body.blog .hero-section :where(h1, h2, p, a, span, .page-title),
body.home .page-title :where(h1, h2, p, a, span),
body.blog .page-title :where(h1, h2, p, a, span),
.nex-blog-hero > .wp-block-group__inner-container > .nex-blog-hero__grid > :first-child :where(h1, h2, p, a, span) {
  color: var(--nex-white) !important;
}

/* Featured-story cards remain white even though they sit inside the blue hero. */
.nex-blog-hero .nex-featured,
.nex-blog-hero .nex-featured :where(h2, h3, p, a, span, time) {
  color: var(--nex-text) !important;
}

.nex-blog-hero .nex-featured :where(.entry-meta, .ct-entry-meta, .wp-block-post-date, .wp-block-post-excerpt) {
  color: var(--nex-muted) !important;
}

/* Native single posts get a centered editorial measure even without the custom
   Single Template. This prevents a wide post body from hugging the left edge. */
body.single-post .site-main > article,
body.single-post article.post {
  width: 100%;
}

body.single-post .site-main > article > .entry-content,
body.single-post article.post > .entry-content,
body.single-post .content-area .entry-content {
  width: min(100%, var(--nex-reading-width));
  margin-inline: auto;
}

body.single-post .content-area {
  min-width: 0;
}

body.single-post .entry-content > :where(.alignwide, .alignfull) {
  max-width: min(calc(100vw - 2rem), var(--nex-site-width));
  margin-inline: 50%;
  transform: translateX(-50%);
}

body.single-post .entry-content > .alignwide {
  width: min(calc(100vw - 2rem), 62rem);
}

body.single-post .entry-content > .alignfull {
  width: min(calc(100vw - 2rem), var(--nex-site-width));
}

/* Equal card geometry for Blocksy's native archive loop. */
body.blog .site-main > .entries,
body.archive .site-main > .entries,
body.search .site-main > .entries {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 1.4rem;
}

body.blog .site-main > .entries > article,
body.archive .site-main > .entries > article,
body.search .site-main > .entries > article,
body.blog .site-main > .entries .entry-card,
body.archive .site-main > .entries .entry-card,
body.search .site-main > .entries .entry-card {
  width: 100%;
  height: 100%;
  min-width: 0;
}

body.blog .site-main > .entries .entry-card,
body.archive .site-main > .entries .entry-card,
body.search .site-main > .entries .entry-card {
  display: flex;
  flex-direction: column;
}

body.blog .site-main > .entries .entry-card > :where(.entry-card-content, .entry-content),
body.archive .site-main > .entries .entry-card > :where(.entry-card-content, .entry-content),
body.search .site-main > .entries .entry-card > :where(.entry-card-content, .entry-content) {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

body.blog .site-main > .entries .entry-card :where(.entry-excerpt, .entry-summary),
body.archive .site-main > .entries .entry-card :where(.entry-excerpt, .entry-summary),
body.search .site-main > .entries .entry-card :where(.entry-excerpt, .entry-summary) {
  flex: 1 1 auto;
}

body.blog .site-main > .entries .entry-card :where(.entry-meta, .ct-entry-meta):last-child,
body.archive .site-main > .entries .entry-card :where(.entry-meta, .ct-entry-meta):last-child,
body.search .site-main > .entries .entry-card :where(.entry-meta, .ct-entry-meta):last-child {
  margin-top: auto;
}

body.blog .site-main > .entries .ct-media-container,
body.archive .site-main > .entries .ct-media-container,
body.search .site-main > .entries .ct-media-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 0;
}

body.blog .site-main > .entries .ct-media-container img,
body.archive .site-main > .entries .ct-media-container img,
body.search .site-main > .entries .ct-media-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1024px) {
  body.blog .site-main > .entries,
  body.archive .site-main > .entries,
  body.search .site-main > .entries {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  body.blog .site-main > .entries,
  body.archive .site-main > .entries,
  body.search .site-main > .entries {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  body.single-post .site-main > article > .entry-content,
  body.single-post article.post > .entry-content,
  body.single-post .content-area .entry-content {
    width: 100%;
  }
}

/* v1.0.2: defeat Blocksy masonry and reveal-card states on archives. */
body.blog .entries,
body.archive .entries,
body.search .entries,
body.blog [data-archive] .entries,
body.archive [data-archive] .entries,
body.search [data-archive] .entries {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-auto-flow: row !important;
  grid-auto-rows: auto !important;
  align-items: stretch !important;
  gap: 1.4rem !important;
  columns: initial !important;
  column-count: initial !important;
}

body.blog .entries > article,
body.archive .entries > article,
body.search .entries > article,
body.blog .entries > .entry-card,
body.archive .entries > .entry-card,
body.search .entries > .entry-card {
  position: relative !important;
  inset: auto !important;
  grid-column: auto !important;
  grid-row: auto !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: clamp(38rem, 42vw, 45rem) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  overflow: hidden !important;
  break-inside: auto !important;
  transform: none;
}

body.blog .entries > *,
body.archive .entries > *,
body.search .entries > * {
  min-width: 0 !important;
  height: clamp(38rem, 42vw, 45rem) !important;
}

body.blog .entries > * > .entry-card,
body.archive .entries > * > .entry-card,
body.search .entries > * > .entry-card {
  width: 100% !important;
  height: 100% !important;
}

body.blog .entries > article:hover,
body.blog .entries > article:focus-within,
body.archive .entries > article:hover,
body.archive .entries > article:focus-within,
body.search .entries > article:hover,
body.search .entries > article:focus-within {
  transform: translateY(-4px);
}

body.blog .entry-card > :is(.entry-card-content, .entry-content),
body.archive .entry-card > :is(.entry-card-content, .entry-content),
body.search .entry-card > :is(.entry-card-content, .entry-content) {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  min-height: 0 !important;
}

body.blog .entry-card > :is(.ct-media-container, figure),
body.archive .entry-card > :is(.ct-media-container, figure),
body.search .entry-card > :is(.ct-media-container, figure) {
  flex: 0 0 auto !important;
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  max-height: 46% !important;
  margin: 0 !important;
  overflow: hidden !important;
}

/* Titles stay visible and white before, during and after card hover. */
body.blog .entry-card :is(.entry-title, .wp-block-post-title),
body.archive .entry-card :is(.entry-title, .wp-block-post-title),
body.search .entry-card :is(.entry-title, .wp-block-post-title),
body.blog .entry-card:hover :is(.entry-title, .wp-block-post-title),
body.archive .entry-card:hover :is(.entry-title, .wp-block-post-title),
body.search .entry-card:hover :is(.entry-title, .wp-block-post-title),
body.blog .entry-card:focus-within :is(.entry-title, .wp-block-post-title),
body.archive .entry-card:focus-within :is(.entry-title, .wp-block-post-title),
body.search .entry-card:focus-within :is(.entry-title, .wp-block-post-title) {
  display: -webkit-box !important;
  overflow: hidden !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  color: var(--nex-white) !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

body.blog .entry-card :is(.entry-title, .wp-block-post-title) a,
body.archive .entry-card :is(.entry-title, .wp-block-post-title) a,
body.search .entry-card :is(.entry-title, .wp-block-post-title) a,
body.blog .entry-card:hover :is(.entry-title, .wp-block-post-title) a,
body.archive .entry-card:hover :is(.entry-title, .wp-block-post-title) a,
body.search .entry-card:hover :is(.entry-title, .wp-block-post-title) a {
  color: var(--nex-white) !important;
  text-decoration-color: currentColor !important;
}

/* Cover all Blocksy CTA class names used by grid-card variations. */
body.blog .entry-card :is(.entry-button, .ct-button, .more-link, .read-more, .ct-read-more),
body.archive .entry-card :is(.entry-button, .ct-button, .more-link, .read-more, .ct-read-more),
body.search .entry-card :is(.entry-button, .ct-button, .more-link, .read-more, .ct-read-more),
body.blog .entry-card :is(.entry-button, .ct-button, .more-link, .read-more, .ct-read-more) *,
body.archive .entry-card :is(.entry-button, .ct-button, .more-link, .read-more, .ct-read-more) *,
body.search .entry-card :is(.entry-button, .ct-button, .more-link, .read-more, .ct-read-more) * {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  color: var(--nex-white) !important;
  text-decoration-color: currentColor !important;
}

body.blog .entry-card :is(.entry-button, .ct-button, .more-link, .read-more, .ct-read-more)::after,
body.archive .entry-card :is(.entry-button, .ct-button, .more-link, .read-more, .ct-read-more)::after,
body.search .entry-card :is(.entry-button, .ct-button, .more-link, .read-more, .ct-read-more)::after {
  color: currentColor !important;
}

body.blog .entry-card :is(.entry-button, .ct-button, .more-link, .read-more, .ct-read-more):is(:hover, :focus-visible),
body.archive .entry-card :is(.entry-button, .ct-button, .more-link, .read-more, .ct-read-more):is(:hover, :focus-visible),
body.search .entry-card :is(.entry-button, .ct-button, .more-link, .read-more, .ct-read-more):is(:hover, :focus-visible) {
  color: var(--nex-green-400) !important;
}

body.blog .entry-card :is(.entry-excerpt, .entry-summary),
body.archive .entry-card :is(.entry-excerpt, .entry-summary),
body.search .entry-card :is(.entry-excerpt, .entry-summary) {
  display: -webkit-box !important;
  flex: 0 1 auto !important;
  overflow: hidden !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

body.blog .entry-card :is(.entry-meta, .ct-entry-meta):last-child,
body.archive .entry-card :is(.entry-meta, .ct-entry-meta):last-child,
body.search .entry-card :is(.entry-meta, .ct-entry-meta):last-child {
  margin-top: auto !important;
}

@media (max-width: 1024px) {
  body.blog .entries,
  body.archive .entries,
  body.search .entries,
  body.blog [data-archive] .entries,
  body.archive [data-archive] .entries,
  body.search [data-archive] .entries {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.blog .entries > article,
  body.archive .entries > article,
  body.search .entries > article,
  body.blog .entries > .entry-card,
  body.archive .entries > .entry-card,
  body.search .entries > .entry-card {
    height: 40rem !important;
  }

  body.blog .entries > *,
  body.archive .entries > *,
  body.search .entries > * {
    height: 40rem !important;
  }
}

@media (max-width: 700px) {
  body.blog .entries,
  body.archive .entries,
  body.search .entries,
  body.blog [data-archive] .entries,
  body.archive [data-archive] .entries,
  body.search [data-archive] .entries {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1rem !important;
  }

  body.blog .entries > article,
  body.archive .entries > article,
  body.search .entries > article,
  body.blog .entries > .entry-card,
  body.archive .entries > .entry-card,
  body.search .entries > .entry-card {
    height: 39rem !important;
  }

  body.blog .entries > *,
  body.archive .entries > *,
  body.search .entries > * {
    height: 39rem !important;
  }
}
