/*
Theme Name:   Nexowide
Theme URI:    https://nexowide.com/
Description:  Nexowide editorial design for the CoverNews parent theme. White canvas, black editorial type and the Nexowide signature green (#00B86F). All sections are driven by existing WordPress posts and categories.
Author:       Nexowide
Template:     covernews
Version:      1.0.0
Requires at least: 6.3
Requires PHP: 7.4
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  nexowide
*/

/* ==========================================================================
   1. Fonts (self-hosted, SIL Open Font License)
   ========================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/inter-latin-var.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/source-serif-4-latin-var.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/source-serif-4-latin-italic-var.woff2") format("woff2");
}

/* ==========================================================================
   2. Design tokens — change the look of the whole site from here
   ========================================================================== */

:root {
  /* Brand: Nexowide signature green #00B86F.
     White text on it is too faint (2.6:1), so anything sitting ON green uses
     --nx-on-green (near-black, 8:1). Small green TEXT on white uses
     --nx-green-text, a deeper shade of the same green that meets WCAG AA. */
  --nx-green: #00b86f;
  --nx-green-dark: #009a5c;
  --nx-green-text: #00875a;
  --nx-green-deep: #00704a; /* green text on the pale green tint */
  --nx-green-tint: #e6f8f0;
  --nx-green-line: #a8e6cc;
  --nx-on-green: #0f1110;

  /* Neutrals */
  --nx-ink: #0f1110;
  --nx-ink-2: #2b2f2c;
  --nx-muted: #5f6661;
  --nx-rule: #e3e6e2;
  --nx-rule-strong: #c9cec8;
  --nx-surface: #f5f6f4;
  --nx-paper: #ffffff;
  --nx-footer: #0f1110;

  /* Type */
  --nx-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --nx-serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --nx-fs-xs: 0.75rem;
  --nx-fs-sm: 0.875rem;
  --nx-fs-base: 1rem;
  --nx-fs-md: 1.125rem;
  --nx-fs-lg: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
  --nx-fs-xl: clamp(1.375rem, 1.1rem + 0.9vw, 1.75rem);
  --nx-fs-lead: clamp(1.75rem, 1.15rem + 2.2vw, 2.75rem);
  --nx-fs-article: clamp(2rem, 1.35rem + 2.5vw, 3.25rem);

  /* Layout */
  --nx-container: 1240px;
  --nx-gutter: 16px;
  --nx-gap: 24px;
  --nx-section-gap: 36px;
  --nx-measure: 680px;
  --nx-sidebar: 300px;

  /* Shape and depth: sharp edges, restrained shadows */
  --nx-radius: 2px;
  --nx-shadow-1: 0 1px 2px rgba(15, 17, 16, 0.06), 0 2px 8px -2px rgba(15, 17, 16, 0.08);
  --nx-shadow-2: 0 2px 4px rgba(15, 17, 16, 0.05), 0 16px 32px -16px rgba(15, 17, 16, 0.28);

  --nx-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --nx-nav-height: 48px;
}

@media (min-width: 640px) {
  :root {
    --nx-gutter: 24px;
  }
}

@media (min-width: 1024px) {
  :root {
    --nx-gap: 32px;
    --nx-section-gap: 44px;
  }
}

/* ==========================================================================
   3. Base (scoped to override the parent theme's base styles)
   ========================================================================== */

html {
  -webkit-text-size-adjust: 100%;
}

body.nexowide {
  margin: 0;
  background: var(--nx-paper);
  color: var(--nx-ink);
  font-family: var(--nx-sans);
  font-size: var(--nx-fs-base);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.nexowide h1,
body.nexowide h2,
body.nexowide h3,
body.nexowide h4,
body.nexowide h5,
body.nexowide h6 {
  font-family: var(--nx-sans);
  color: var(--nx-ink);
}

body.nexowide a {
  color: inherit;
  text-decoration: none;
}

body.nexowide img {
  max-width: 100%;
  height: auto;
}

body.nexowide :focus-visible {
  outline: 3px solid var(--nx-green-text);
  outline-offset: 2px;
}

.nx-site {
  background: var(--nx-paper);
}

.nx-container {
  box-sizing: border-box;
  width: 100%;
  max-width: calc(var(--nx-container) + 2 * var(--nx-gutter));
  margin-inline: auto;
  padding-inline: var(--nx-gutter);
}

.nx-content {
  min-height: 50vh;
}

.nx-content *,
.nx-content *::before,
.nx-content *::after {
  box-sizing: border-box;
}

.nexowide .skip-link:focus {
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 12px 16px;
  background: var(--nx-paper);
  color: var(--nx-ink);
  box-shadow: var(--nx-shadow-2);
}

/* Media frame: fixed aspect ratio so nothing jumps while images load. */
.nx-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--nx-surface);
}

.nx-media img,
.nx-media .nx-media__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--nx-ease);
}

/* Buttons */
.nx-button,
.nexowide .search-form .search-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 2px solid var(--nx-green);
  border-radius: var(--nx-radius);
  background: var(--nx-green);
  color: var(--nx-on-green) !important;
  font-family: var(--nx-sans);
  font-size: var(--nx-fs-sm);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.nx-button:hover,
.nexowide .search-form .search-submit:hover {
  border-color: var(--nx-green-dark);
  background: var(--nx-green-dark);
}

.nx-button--outline {
  background: transparent;
  border-color: var(--nx-ink);
  color: var(--nx-ink) !important;
}

.nx-button--outline:hover {
  border-color: var(--nx-green);
  background: var(--nx-green);
  color: var(--nx-on-green) !important;
}

/* Small editorial labels */
.nx-label {
  display: inline-block;
  color: var(--nx-green-text) !important;
  font-size: var(--nx-fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.nx-label:hover {
  color: var(--nx-green-text) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nx-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 7px;
  background: var(--nx-green);
  color: var(--nx-on-green);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.nx-flag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--nx-on-green);
}

.nx-time {
  color: var(--nx-muted);
  font-size: var(--nx-fs-xs);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.nx-meta-sep {
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 8px;
  border-radius: 50%;
  background: var(--nx-rule-strong);
  vertical-align: middle;
}

.nx-byline {
  color: var(--nx-ink-2);
  font-size: var(--nx-fs-xs);
  font-weight: 600;
}

/* Chips (subsections, tags) */
.nx-chips ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nx-chips a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--nx-rule-strong);
  border-radius: var(--nx-radius);
  color: var(--nx-ink-2);
  font-size: var(--nx-fs-sm);
  font-weight: 600;
  transition: border-color 0.15s, color 0.15s;
}

.nx-chips a:hover {
  border-color: var(--nx-green);
  color: var(--nx-green-text);
}

/* ==========================================================================
   4. Header: top bar, masthead, navigation, search
   ========================================================================== */

.nx-topbar {
  border-top: 4px solid var(--nx-green);
  border-bottom: 1px solid var(--nx-rule);
  background: var(--nx-surface);
  font-size: var(--nx-fs-xs);
}

.nx-topbar__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 34px;
}

.nx-topbar__date {
  color: var(--nx-muted);
  font-weight: 500;
}

.nx-topbar__nav {
  margin-left: auto;
}

.nx-topbar__social {
  margin-left: 16px;
}

.nx-topbar__nav:first-child,
.nx-topbar__date + .nx-topbar__social {
  margin-left: auto;
}

.nx-inline-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nx-inline-menu a {
  color: var(--nx-ink-2);
  font-weight: 600;
}

.nx-inline-menu a:hover {
  color: var(--nx-green-text);
}

/* ==========================================================================
   6. Story cards
   ========================================================================== */

.nx-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.nx-card__media {
  margin-bottom: 14px;
}

.nx-card:hover .nx-media img {
  transform: scale(1.03);
}

.nx-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.nx-card__kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 1em;
}

.nx-card__kicker:empty {
  display: none;
}

.nexowide .nx-card__title {
  margin: 0;
  font-size: var(--nx-fs-md);
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1.25;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}

.nexowide .nx-card__title a {
  color: var(--nx-ink);
  background-image: linear-gradient(var(--nx-green), var(--nx-green));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 2px;
  transition: background-size 0.25s var(--nx-ease), color 0.15s;
}

.nexowide .nx-card__title a:hover,
.nexowide .nx-card__title a:focus-visible {
  background-size: 100% 2px;
}

.nx-card__excerpt {
  margin: 0;
  color: var(--nx-ink-2);
  font-family: var(--nx-serif);
  font-size: var(--nx-fs-base);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.nx-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 2px;
}

/* Lead: the most important story on the page. */
.nx-card--lead .nx-card__media {
  aspect-ratio: 16 / 9;
  margin-bottom: 20px;
  box-shadow: var(--nx-shadow-2);
}

/* A short green bar under the lead image: the Nexowide signature. */
.nx-card--lead .nx-card__media::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 96px;
  height: 6px;
  background: var(--nx-green);
}

.nexowide .nx-card--lead .nx-card__title {
  font-size: var(--nx-fs-lead);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.08;
  text-wrap: balance;
}

.nx-card--lead .nx-card__title a {
  background-size: 0 3px;
}

.nx-card--lead .nx-card__title a:hover {
  background-size: 100% 3px;
}

.nx-card--lead .nx-card__excerpt {
  font-size: var(--nx-fs-lg);
  -webkit-line-clamp: 4;
}

.nx-card--lead.no-media .nx-card__body {
  padding: 28px;
  border-top: 6px solid var(--nx-green);
  background: var(--nx-surface);
}

.nexowide .nx-card--feature .nx-card__title {
  font-size: var(--nx-fs-xl);
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 1.15;
  text-wrap: balance;
}

.nx-card--feature .nx-card__media {
  box-shadow: var(--nx-shadow-1);
}

/* Text-only standard card: a quiet panel so it holds its place in a row. */
.nx-card--standard.no-media .nx-card__body {
  flex: 1 1 auto;
  padding: 20px;
  border-top: 4px solid var(--nx-green);
  background: var(--nx-surface);
}

/* Compact: small image beside the headline. */
.nx-card--compact,
.nx-card--river {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  align-items: start;
  gap: 16px;
}

.nx-card--compact .nx-card__media,
.nx-card--river .nx-card__media {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
}

.nx-card--compact .nx-card__body,
.nx-card--river .nx-card__body {
  grid-column: 1;
  grid-row: 1;
  gap: 6px;
}

.nx-card--compact.no-media,
.nx-card--river.no-media {
  grid-template-columns: minmax(0, 1fr);
}

.nexowide .nx-card--compact .nx-card__title {
  font-size: var(--nx-fs-base);
  line-height: 1.3;
}

/* Headline only (Latest rails). */
.nexowide .nx-card--headline .nx-card__title {
  font-size: 0.9375rem;
  font-weight: 650;
  line-height: 1.35;
}

.nx-card--headline .nx-card__body {
  flex-direction: column-reverse;
  gap: 4px;
}

.nx-card--headline .nx-card__meta {
  margin: 0;
}

.nx-card--headline .nx-time {
  color: var(--nx-green-text);
  font-weight: 700;
}

/* River: archive list item, image right on phones, left on wider screens. */
.nx-card--river .nx-card__excerpt {
  font-size: var(--nx-fs-base);
  -webkit-line-clamp: 2;
}

.nexowide .nx-card--river .nx-card__title {
  font-size: var(--nx-fs-lg);
  font-weight: 750;
}

@media (max-width: 639px) {
  .nx-card--river .nx-card__excerpt {
    display: none;
  }
}

@media (min-width: 640px) {
  .nx-card--river {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
  }

  .nx-card--river .nx-card__media {
    grid-column: 1;
  }

  .nx-card--river .nx-card__body {
    grid-column: 2;
  }

  .nx-card--river.no-media .nx-card__body {
    grid-column: 1;
  }
}

/* ==========================================================================
   7. Section headings and rails
   ========================================================================== */

.nx-section {
  margin-top: var(--nx-section-gap);
}

.nx-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-top: 12px;
  border-top: 3px solid var(--nx-ink);
}

.nexowide .nx-section__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: var(--nx-fs-xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.nexowide .nx-section__title::before {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  background: var(--nx-green);
}

.nexowide .nx-section__title a {
  color: var(--nx-ink);
}

.nexowide .nx-section__title a:hover {
  color: var(--nx-green-text);
}

.nx-section__more {
  flex: none;
  color: var(--nx-ink-2) !important;
  font-size: var(--nx-fs-sm);
  font-weight: 700;
  white-space: nowrap;
}

.nx-section__more:hover {
  color: var(--nx-green-text) !important;
}

.nx-section__more span[aria-hidden] {
  display: inline-block;
  transition: transform 0.15s;
}

.nx-section__more:hover span[aria-hidden] {
  transform: translateX(3px);
}

.nx-section__footer {
  margin: 32px 0 0;
  text-align: center;
}

.nx-rail__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--nx-ink);
  font-size: var(--nx-fs-sm) !important;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nx-rail__title::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--nx-green);
  box-shadow: 0 0 0 3px var(--nx-green-tint);
}

.nx-rail__list > .nx-card {
  padding: 14px 0;
  border-bottom: 1px solid var(--nx-rule);
}

.nx-rail__list > .nx-card:last-child {
  border-bottom: 0;
}

/* ==========================================================================
   8. Homepage
   ========================================================================== */

.nx-home {
  padding-bottom: var(--nx-section-gap);
}

.nx-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--nx-gap);
  padding-top: 24px;
}

.nx-top__secondary {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--nx-gap);
}

@media (min-width: 640px) {
  .nx-top__secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nx-top__latest .nx-rail__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--nx-gap);
  }

  .nx-top__latest .nx-rail__list > .nx-card:nth-last-child(2):nth-child(odd) {
    border-bottom: 0;
  }
}

@media (min-width: 1024px) {
  .nx-top {
    grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr);
    padding-top: 32px;
  }

  .nx-top__secondary {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    padding-left: var(--nx-gap);
    border-left: 1px solid var(--nx-rule);
  }

  .nx-top__secondary .nx-card + .nx-card {
    padding-top: var(--nx-gap);
    border-top: 1px solid var(--nx-rule);
  }

  .nx-top__latest {
    padding-left: var(--nx-gap);
    border-left: 1px solid var(--nx-rule);
  }

  .nx-top__latest .nx-rail__list {
    display: block;
  }

  /* No secondary stories yet: let the lead and the rail share the row. */
  .nx-top:not(:has(.nx-top__secondary)) {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  }

  .nx-top:not(:has(.nx-top__latest)) {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  }
}

/* Category section A: one feature story + a list. */
.nx-section--feature .nx-section__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px var(--nx-gap);
}

.nx-section--feature .nx-card--compact {
  padding-top: 20px;
  border-top: 1px solid var(--nx-rule);
}

@media (min-width: 640px) {
  .nx-section--feature .nx-section__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .nx-section--feature .nx-card--feature {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .nx-section--feature .nx-section__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-auto-rows: min-content;
  }

  .nx-section--feature .nx-card--feature {
    grid-column: 1;
    grid-row: 1 / span 4;
  }

  .nx-section--feature .nx-card--compact {
    grid-column: 2;
  }

  .nx-section--feature .nx-card--compact:nth-child(2) {
    padding-top: 0;
    border-top: 0;
  }
}

/* Category section B: a row of equal stories. */
.nx-section--row .nx-section__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--nx-gap);
}

@media (max-width: 639px) {
  /* On phones the row becomes a tidy list instead of four huge images. */
  .nx-section--row .nx-card--standard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--nx-rule);
  }

  .nx-section--row .nx-card--standard:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .nx-section--row .nx-card--standard .nx-card__media {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
  }

  .nx-section--row .nx-card--standard .nx-card__body {
    grid-column: 1;
    grid-row: 1;
  }

  .nx-section--row .nx-card--standard.no-media {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 640px) {
  .nx-section--row .nx-section__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .nx-section--row .nx-section__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  /* Thin column rules drawn in the gap, so every card keeps the same width. */
  .nx-section--row .nx-section__grid .nx-card + .nx-card::before {
    content: "" !important;
    display: block !important;
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(-1 * var(--nx-gap) / 2);
    width: 1px;
    background: var(--nx-rule);
  }
}

/* More news */
.nx-section--more .nx-section__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 var(--nx-gap);
}

.nx-section--more .nx-card {
  padding: 20px 0;
  border-bottom: 1px solid var(--nx-rule);
}

@media (min-width: 640px) {
  .nx-section--more .nx-section__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .nx-section--more .nx-section__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Empty states */
.nx-empty {
  max-width: 640px;
  margin: 48px auto;
  padding: 40px 32px;
  border-top: 4px solid var(--nx-green);
  background: var(--nx-surface);
  text-align: center;
}

.nexowide .nx-empty__title {
  margin: 0 0 8px;
  font-size: var(--nx-fs-xl);
  font-weight: 800;
}

.nx-empty p {
  color: var(--nx-muted);
}

.nx-empty .search-form {
  margin: 16px 0;
}

/* ==========================================================================
   9. Archives, search, two-column layout
   ========================================================================== */

.nx-archive,
.nx-article-page {
  padding-top: 24px;
  padding-bottom: var(--nx-section-gap);
}

.nx-archive__head {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 3px solid var(--nx-ink);
}

.nexowide .nx-archive__kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--nx-green-text);
  font-size: var(--nx-fs-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nexowide .nx-archive__kicker::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--nx-green);
}

.nexowide .nx-archive__title {
  margin: 0;
  font-size: var(--nx-fs-article);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.nx-archive__description {
  max-width: var(--nx-measure);
  margin-top: 12px;
  color: var(--nx-ink-2);
  font-family: var(--nx-serif);
  font-size: var(--nx-fs-lg);
  line-height: 1.5;
}

.nx-archive__description p {
  margin: 0;
}

.nx-archive__head .nx-chips {
  margin-top: 20px;
}

.nx-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--nx-section-gap) 48px;
}

@media (min-width: 1024px) {
  .nx-layout.has-sidebar {
    grid-template-columns: minmax(0, 1fr) var(--nx-sidebar);
  }
}

.nx-layout__side {
  min-width: 0;
}

.nx-layout__side > * + * {
  margin-top: 40px;
}

@media (min-width: 1024px) {
  .nx-layout__side .nx-ad--rectangle {
    position: sticky;
    top: calc(var(--nx-nav-height) + 24px);
  }
}

@media (max-width: 1023px) {
  .nx-layout__side .nx-ad--rectangle {
    display: none;
  }
}

.nx-river > .nx-card,
.nx-river > .nx-ad {
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--nx-rule);
}

.nx-river > .nx-card--lead {
  padding-bottom: 32px;
  margin-bottom: 32px;
}

@media (min-width: 1024px) {
  .nx-river > .nx-card--lead.has-media {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    align-items: center;
    gap: 32px;
  }

  .nx-river > .nx-card--lead .nx-card__media {
    margin: 0;
  }

  .nexowide .nx-river > .nx-card--lead .nx-card__title {
    font-size: clamp(1.75rem, 1rem + 1.4vw, 2.25rem);
  }
}

/* Pagination */
.nx-pagination {
  margin-top: 40px;
}

.nx-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.nx-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--nx-rule-strong);
  border-radius: var(--nx-radius);
  background: var(--nx-paper);
  color: var(--nx-ink) !important;
  font-size: var(--nx-fs-sm);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.nx-pagination a.page-numbers:hover {
  border-color: var(--nx-green);
  color: var(--nx-green-text) !important;
}

.nx-pagination .page-numbers.current {
  border-color: var(--nx-green);
  background: var(--nx-green);
  color: var(--nx-on-green) !important;
}

.nx-pagination .page-numbers.dots {
  border: 0;
}

/* Breadcrumbs from the parent theme */
.nexowide .covernews-breadcrumbs {
  margin: 0 0 20px;
  padding: 0;
  background: none;
  font-family: var(--nx-sans);
}

.nexowide .covernews-breadcrumbs .row {
  margin: 0;
}

.nexowide .covernews-breadcrumbs ul,
.nexowide .covernews-breadcrumbs .trail-items {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  font-size: var(--nx-fs-xs);
  list-style: none;
}

.nexowide .covernews-breadcrumbs li,
.nexowide .covernews-breadcrumbs a {
  color: var(--nx-muted);
  font-weight: 500;
}

.nexowide .covernews-breadcrumbs a:hover {
  color: var(--nx-green-text);
}

/* ==========================================================================
   10. Article page
   ========================================================================== */

.nx-article__head {
  max-width: 900px;
  margin-bottom: 28px;
}

.nx-article__head .nx-card__kicker {
  margin-bottom: 14px;
}

.nexowide .nx-article__title {
  margin: 0;
  font-size: var(--nx-fs-article);
  font-weight: 800;
  letter-spacing: -0.032em;
  line-height: 1.08;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.nexowide .nx-article__dek {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--nx-ink-2);
  font-family: var(--nx-serif);
  font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.4375rem);
  line-height: 1.45;
}

.nx-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--nx-rule);
}

.nx-byline-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nx-avatar {
  flex: none;
  border-radius: 50%;
}

.nexowide .nx-byline-block p {
  margin: 0;
}

.nx-byline-block__name {
  font-size: var(--nx-fs-sm);
  font-weight: 600;
}

.nx-byline-block__name a {
  font-weight: 800;
}

.nx-byline-block__name a:hover {
  color: var(--nx-green-text);
}

.nx-byline-block__dates {
  display: flex;
  flex-wrap: wrap;
  gap: 0 12px;
  color: var(--nx-muted);
  font-size: var(--nx-fs-xs);
}

.nx-share {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nx-share a,
.nexowide .nx-share button {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--nx-rule-strong);
  border-radius: var(--nx-radius);
  background: var(--nx-paper);
  color: var(--nx-ink-2);
  font-family: var(--nx-sans);
  font-size: var(--nx-fs-xs);
  font-weight: 700;
  cursor: pointer;
}

.nx-share a:hover,
.nexowide .nx-share button:hover {
  border-color: var(--nx-green);
  color: var(--nx-green-text);
}

.nx-article__figure {
  margin: 0 0 32px;
}

.nx-article__figure .nx-media {
  aspect-ratio: 16 / 9;
  box-shadow: var(--nx-shadow-2);
}

.nx-article__figure figcaption {
  margin-top: 10px;
  padding-left: 10px;
  border-left: 3px solid var(--nx-green);
  color: var(--nx-muted);
  font-size: var(--nx-fs-sm);
  line-height: 1.45;
}

/* Article text: comfortable measure, serif body, sans headings. */
.nexowide .nx-article__body.entry-content {
  padding: 0;
}

.nx-article__body {
  max-width: var(--nx-measure);
  color: var(--nx-ink-2);
  font-family: var(--nx-serif);
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  line-height: 1.72;
  overflow-wrap: break-word;
}

.nx-layout.no-sidebar .nx-article__body {
  margin-inline: auto;
}

.nexowide .nx-article__body > * {
  margin-top: 0;
  margin-bottom: 1.35em;
}

.nexowide .nx-article__body h2,
.nexowide .nx-article__body h3,
.nexowide .nx-article__body h4 {
  margin-top: 1.9em;
  margin-bottom: 0.6em;
  color: var(--nx-ink);
  font-family: var(--nx-sans);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.nexowide .nx-article__body h2 {
  font-size: 1.5em;
}

.nexowide .nx-article__body h3 {
  font-size: 1.25em;
}

.nexowide .nx-article__body h4 {
  font-size: 1.05em;
}

.nexowide .nx-article__body a,
body.nexowide .nx-article__body.entry-content > * a:not([class]),
body.nexowide .nx-article__body.entry-content > * a:not([class]):is(:link, :visited) {
  color: var(--nx-ink);
  text-decoration: underline;
  text-decoration-color: var(--nx-green);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.nexowide .nx-article__body a:hover,
body.nexowide .nx-article__body.entry-content > * a:not([class]):is(:link, :visited):hover {
  color: var(--nx-green-text);
  background: var(--nx-green-tint);
}

.nexowide .nx-article__body ul,
.nexowide .nx-article__body ol {
  padding-left: 1.4em;
}

.nexowide .nx-article__body li + li {
  margin-top: 0.4em;
}

.nexowide .nx-article__body li::marker {
  color: var(--nx-green-text);
  font-family: var(--nx-sans);
  font-weight: 700;
}

.nexowide .nx-article__body blockquote,
.nexowide .nx-article__body .wp-block-quote {
  margin-inline: 0;
  padding: 4px 0 4px 24px;
  border-left: 4px solid var(--nx-green);
  background: none;
  color: var(--nx-ink);
  font-size: 1.2em;
  font-style: italic;
  line-height: 1.5;
  text-align: left;
}

.nexowide .nx-article__body blockquote::after,
.nexowide .nx-article__body blockquote cite::before,
.nexowide .nx-article__body blockquote cite::after {
  display: none;
}

.nexowide .nx-article__body blockquote p {
  margin: 0;
}

.nexowide .nx-article__body blockquote::before {
  display: none;
}

.nexowide .nx-article__body blockquote cite,
.nexowide .nx-article__body .wp-block-quote cite {
  display: block;
  margin-top: 8px;
  color: var(--nx-muted);
  font-family: var(--nx-sans);
  font-size: var(--nx-fs-sm);
  font-style: normal;
  font-weight: 600;
}

.nexowide .nx-article__body .wp-block-pullquote {
  padding: 24px 0;
  border-top: 3px solid var(--nx-ink);
  border-bottom: 1px solid var(--nx-rule);
  text-align: left;
}

.nexowide .nx-article__body .wp-block-pullquote blockquote {
  border: 0;
  padding: 0;
}

.nexowide .nx-article__body figure,
.nexowide .nx-article__body .wp-block-image,
.nexowide .nx-article__body .wp-block-embed {
  margin-inline: 0;
}

.nexowide .nx-article__body img {
  display: block;
}

.nexowide .nx-article__body figcaption,
.nexowide .nx-article__body .wp-element-caption {
  margin-top: 8px;
  color: var(--nx-muted);
  font-family: var(--nx-sans);
  font-size: var(--nx-fs-sm);
  line-height: 1.45;
  text-align: left;
}

.nexowide .nx-article__body iframe,
.nexowide .nx-article__body video {
  max-width: 100%;
}

.nexowide .nx-article__body table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--nx-sans);
  font-size: var(--nx-fs-sm);
}

.nexowide .nx-article__body .wp-block-table {
  overflow-x: auto;
}

.nexowide .nx-article__body th,
.nexowide .nx-article__body td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--nx-rule);
  text-align: left;
}

.nexowide .nx-article__body th {
  border-bottom: 2px solid var(--nx-ink);
  color: var(--nx-ink);
}

.nexowide .nx-article__body pre,
.nexowide .nx-article__body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85em;
}

.nexowide .nx-article__body pre {
  overflow-x: auto;
  padding: 16px;
  background: var(--nx-surface);
}

.nexowide .nx-article__body hr {
  width: 64px;
  margin: 2.5em 0;
  border: 0;
  border-top: 3px solid var(--nx-green);
}

/* First paragraph slightly larger: a quiet editorial touch. */
.nexowide .nx-article__body > p:first-of-type {
  color: var(--nx-ink);
  font-size: 1.08em;
}

.nx-article__tags {
  max-width: var(--nx-measure);
  margin-top: 32px;
}

.nx-author-box {
  display: flex;
  gap: 16px;
  max-width: var(--nx-measure);
  margin-top: 40px;
  padding: 24px;
  border-top: 3px solid var(--nx-ink);
  background: var(--nx-surface);
}

.nexowide .nx-author-box p {
  margin: 0;
}

.nx-author-box__name {
  font-weight: 800;
}

.nx-author-box__bio {
  margin-top: 4px !important;
  color: var(--nx-ink-2);
  font-family: var(--nx-serif);
}

.nx-related {
  margin-top: var(--nx-section-gap);
}

.nx-page-links {
  font-family: var(--nx-sans);
}

/* Comments (parent markup) */
.nexowide .comments-area {
  max-width: var(--nx-measure);
  margin-top: 48px;
  padding-top: 16px;
  border-top: 3px solid var(--nx-ink);
  font-family: var(--nx-sans);
}

.nexowide .comments-area .comment-reply-title,
.nexowide .comments-area .comments-title {
  font-size: var(--nx-fs-xl);
  font-weight: 800;
}

.nexowide .comment-form input[type="text"],
.nexowide .comment-form input[type="email"],
.nexowide .comment-form input[type="url"],
.nexowide .comment-form textarea {
  width: 100%;
  border: 1px solid var(--nx-rule-strong);
  border-radius: var(--nx-radius);
}

.nexowide .comment-form .submit {
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--nx-radius);
  background: var(--nx-green);
  color: var(--nx-on-green);
  font-weight: 700;
}

/* Sidebar widgets (parent "Main Sidebar") */
.nx-widgets .widget,
.nx-widgets > * {
  margin: 0 0 32px;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.nexowide .nx-widgets .widget-title,
.nexowide .nx-widgets h2,
.nexowide .nx-widgets .wp-block-search__label {
  display: block;
  position: static;
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--nx-ink);
  font-size: var(--nx-fs-sm);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nx-widgets ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nx-widgets li {
  padding: 10px 0;
  border-bottom: 1px solid var(--nx-rule);
  font-size: var(--nx-fs-sm);
}

.nx-widgets li a {
  font-weight: 600;
}

.nx-widgets li a:hover {
  color: var(--nx-green-text);
}

/* Search forms (core markup) */
.nexowide .search-form {
  display: flex;
  gap: 8px;
}

.nexowide .search-form label {
  flex: 1 1 auto;
  margin: 0;
}

.nexowide .search-form .search-field {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--nx-rule-strong);
  border-radius: var(--nx-radius);
  font-family: var(--nx-sans);
  font-size: var(--nx-fs-base);
}

/* ==========================================================================
   11. Advertising slots (only rendered when a slot has widgets)
   ========================================================================== */

.nx-ad {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-block: 32px;
  overflow: hidden;
  text-align: center;
}

.nexowide .nx-ad__label {
  margin: 0 0 6px;
  color: var(--nx-muted);
  font-family: var(--nx-sans);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nx-ad__slot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.nx-ad__unit {
  min-width: 0;
  max-width: 100%;
}

.nx-ad__slot img,
.nx-ad__slot iframe {
  max-width: 100%;
}

/* Reserve the expected height so the page doesn't jump when ads load. */
.nx-ad--leaderboard .nx-ad__slot {
  min-height: 50px;
}

@media (min-width: 768px) {
  .nx-ad--leaderboard .nx-ad__slot {
    min-height: 90px;
  }
}

.nx-ad--billboard .nx-ad__slot,
.nx-ad--rectangle .nx-ad__slot,
.nx-ad--inline .nx-ad__slot {
  min-height: 250px;
}

.nx-ad--billboard {
  padding-block: 16px;
  border-block: 1px solid var(--nx-rule);
}

.nx-ad--in-content {
  margin-block: 2em;
  padding-block: 12px;
  border-block: 1px solid var(--nx-rule);
}

/* ==========================================================================
   13. Accessibility: reduced motion
   ========================================================================== */

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

  .nx-pulse::after {
    display: none;
  }

  .nx-card:hover .nx-media img {
    transform: none;
  }
}

/* Breadcrumb text: small and quiet; the long current title is truncated. */
.nexowide .covernews-breadcrumbs,
.nexowide .covernews-breadcrumbs * {
  font-size: var(--nx-fs-xs) !important;
  letter-spacing: 0.01em;
  text-transform: none !important;
}

.nexowide .covernews-breadcrumbs .trail-end {
  max-width: 40ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* The parent adds clearfix pseudo-elements to posts; in grid layouts they
   would become empty grid cells. */
.nx-card::before,
.nx-card::after {
  content: none !important;
  display: none !important;
}

/* Parent widget accents → Nexowide tokens. */
.nexowide .nx-widgets .wp-block-heading::before,
.nexowide .nx-widgets .wp-block-search__label::before,
.nexowide .nx-widgets .widget-title::before,
.nexowide .nx-widgets .widget-title::after {
  display: none;
}

.nexowide .wp-block-search__button {
  min-height: 44px;
  border: 0;
  border-radius: var(--nx-radius);
  background: var(--nx-green);
  color: var(--nx-on-green);
  font-family: var(--nx-sans);
  font-weight: 700;
}

.nexowide .wp-block-search__button:hover {
  background: var(--nx-green-dark);
}

.nexowide .wp-block-search__input {
  min-height: 44px;
  border: 1px solid var(--nx-rule-strong);
  border-radius: var(--nx-radius);
}

/* Parent theme draws a dotted ring on mouse focus; keep rings for keyboard only. */
.nexowide button:focus:not(:focus-visible),
.nexowide a:focus:not(:focus-visible) {
  outline: none;
}

/* ==========================================================================
   14. Social icons (top bar and footer)
   ========================================================================== */

.nx-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nx-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--nx-radius);
  color: var(--nx-ink-2) !important;
  transition: background-color 0.15s, color 0.15s, transform 0.15s;
}

.nx-social__link svg {
  display: block;
  fill: currentColor;
}

.nx-social__link:hover,
.nx-social__link:focus-visible {
  background: var(--nx-green);
  color: var(--nx-on-green) !important;
  transform: translateY(-1px);
}





.nx-topbar__social {
  margin-left: auto;
}

.nx-topbar__nav + .nx-topbar__social {
  margin-left: 16px;
}

@media (max-width: 639px) {
  .nx-topbar__inner {
    flex-wrap: wrap;
    justify-content: space-between;
    padding-block: 4px;
  }

  .nx-topbar__date {
    flex: 1 1 100%;
  }

  .nx-topbar__social {
    margin-left: -6px;
  }
}

/* ==========================================================================
   15. Signature green: brand highlights across the site
   ========================================================================== */

::selection {
  background: var(--nx-green);
  color: var(--nx-on-green);
}

/* Top bar: a full band of Nexowide green. */
.nx-topbar {
  border-top: 0;
  border-bottom: 0;
  background: var(--nx-green);
  color: var(--nx-on-green);
}

.nx-topbar__date,
.nx-topbar .nx-inline-menu a {
  color: var(--nx-on-green);
  font-weight: 600;
}

.nx-topbar .nx-inline-menu a:hover {
  color: var(--nx-on-green);
  text-decoration: underline;
}

.nx-topbar .nx-social__link {
  color: #000 !important;
}

.nx-topbar .nx-social__link:hover,
.nx-topbar .nx-social__link:focus-visible {
  background: rgba(255, 255, 255, 0.28);
  color: #000 !important;
  transform: translateY(-1px);
}

.nx-topbar 

/* Section and rail headings: green rules instead of black. */
.nx-section__head {
  border-top: 4px solid var(--nx-green);
}

.nx-rail__title,
.nexowide .nx-widgets .widget-title,
.nexowide .nx-widgets h2,
.nexowide .nx-widgets .wp-block-search__label {
  border-bottom-color: var(--nx-green);
}

.nx-section__more {
  padding: 6px 10px;
  border-radius: var(--nx-radius);
  background: var(--nx-green-tint);
  color: var(--nx-green-deep) !important;
}

.nx-section__more:hover {
  background: var(--nx-green);
  color: var(--nx-on-green) !important;
}

.nx-archive__head {
  border-bottom: 4px solid var(--nx-green);
}

/* Lead story: longer green signature bar. */
.nx-card--lead .nx-card__media::after {
  width: 140px;
  height: 8px;
}

/* Category labels: a small green bar before the name. */
.nx-label::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 3px;
  margin: 0 6px 0 0;
  background: var(--nx-green);
  vertical-align: middle;
}

/* Chips, share buttons: fill green on hover. */
.nx-chips a:hover,
.nx-share a:hover,
.nexowide .nx-share button:hover {
  border-color: var(--nx-green);
  background: var(--nx-green);
  color: var(--nx-on-green);
}

/* Article page */
.nx-article__meta {
  border-top: 2px solid var(--nx-green);
}

.nx-author-box,
.nexowide .comments-area {
  border-top-color: var(--nx-green);
}

.nexowide .nx-article__body > p:first-of-type::first-letter {
  float: left;
  margin: 0.06em 0.1em 0 0;
  color: var(--nx-green-text);
  font-family: var(--nx-sans);
  font-size: 3.6em;
  font-weight: 800;
  line-height: 0.85;
}

/* Reading progress bar on articles (see site.js). */
.nx-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  height: 4px;
  background: var(--nx-green);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

body.admin-bar .nx-progress {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .nx-progress {
    top: 46px;
  }
}

/* Parent comment-form labels are a light grey; darken for readability. */
.nexowide .comment-form label {
  color: var(--nx-ink-2);
}

/* ==========================================================================
   16. Footer
   ========================================================================== */

.nx-footer {
  margin-top: var(--nx-section-gap);
  border-top: 6px solid var(--nx-green);
  background: #0b0d0c;
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--nx-fs-sm);
}

.nx-footer a {
  color: rgba(255, 255, 255, 0.86);
  transition: color 0.15s;
}

.nx-footer a:hover {
  color: var(--nx-green);
}

.nx-footer__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px var(--nx-gap);
  padding-block: 40px 36px;
}

@media (min-width: 640px) {
  .nx-footer__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nx-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .nx-footer__main {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.35fr) minmax(0, 1.2fr);
    gap: 48px;
    padding-block: 48px 44px;
  }

  .nx-footer__main.has-menu {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.3fr) minmax(0, 1.2fr) minmax(0, 0.8fr);
  }

  .nx-footer__brand {
    grid-column: auto;
  }
}

/* Brand column */
.nx-footer__logo {
  display: inline-block;
}

.nx-footer__logo img {
  display: block;
  width: auto;
  height: 40px;
}

.nexowide .nx-footer__about {
  max-width: 360px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: var(--nx-fs-sm);
  line-height: 1.6;
}

.nx-footer__follow {
  margin-top: 22px;
}

.nexowide .nx-footer__label {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.55);
  font-size: var(--nx-fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nx-social--footer {
  gap: 8px;
}

.nx-social--footer .nx-social__link {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: #fff !important;
}

.nx-social--footer .nx-social__link:hover,
.nx-social--footer .nx-social__link:focus-visible {
  border-color: var(--nx-green);
  background: var(--nx-green);
  color: #000 !important;
}

/* Link columns */
.nexowide .nx-footer__heading {
  position: relative;
  margin: 0 0 18px;
  padding-bottom: 12px;
  color: #fff;
  font-size: var(--nx-fs-xs);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nexowide .nx-footer__heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 3px;
  background: var(--nx-green);
}

.nx-footer__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.nx-footer__links a {
  font-weight: 600;
}

.nx-footer__stories {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nx-footer__stories li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nx-footer__stories li:first-child {
  padding-top: 0;
  border-top: 0;
}

.nx-footer__stories .nx-time {
  color: var(--nx-green);
  font-weight: 700;
}

.nx-footer__stories a {
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
}

/* Parent footer widget areas, if used */
.nx-footer__widgets-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  padding-bottom: 32px;
}

.nx-footer__widgets .widget-title,
.nx-footer__widgets h2 {
  color: #fff !important;
  font-size: var(--nx-fs-xs) !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Bottom bar */
.nx-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #070807;
  font-size: var(--nx-fs-xs);
}

.nx-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  min-height: 56px;
  padding-block: 12px;
}

.nexowide .nx-footer__copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
}

.nx-footer__totop {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--nx-radius);
  font-weight: 700;
}

.nx-footer a.nx-footer__totop:hover {
  border-color: var(--nx-green);
  background: var(--nx-green);
  color: #000;
}

/* Parent theme rules on images and "*col*" classes would otherwise win. */
.nexowide .nx-footer__logo img {
  width: auto;
  max-width: 100%;
  height: 40px;
}

.nexowide .nx-footer__col {
  padding: 0;
}

/* ==========================================================================
   18. Homepage: Editor's picks (dark band)
   ========================================================================== */

.nx-picks {
  margin-top: var(--nx-section-gap);
  padding-block: 40px 48px;
  border-top: 6px solid var(--nx-green);
  background: #0b0d0c;
  color: rgba(255, 255, 255, 0.75);
}

.nx-picks__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 20px;
  margin-bottom: 28px;
}

.nexowide .nx-picks__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #fff;
  font-size: var(--nx-fs-xl);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nexowide .nx-picks__title::before {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--nx-green);
}

.nexowide .nx-picks__intro {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--nx-fs-sm);
}

.nx-picks__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px var(--nx-gap);
}

@media (min-width: 640px) {
  .nx-picks__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .nx-picks__grid {
    grid-template-columns: repeat(var(--nx-pick-cols, 4), minmax(0, 1fr));
  }
}

.nexowide .nx-picks .nx-card__title a {
  color: #fff;
}

.nx-picks .nx-label {
  color: var(--nx-green) !important;
}

.nx-picks .nx-time {
  color: rgba(255, 255, 255, 0.6);
}

.nx-picks .nx-card__media {
  box-shadow: 0 16px 32px -18px rgba(0, 0, 0, 0.9);
}

.nx-picks .nx-card--standard.no-media .nx-card__body {
  background: rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   19. Homepage: Hot topics
   ========================================================================== */

.nx-hot__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px var(--nx-gap);
}

@media (min-width: 640px) {
  .nx-hot__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .nx-hot__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .nx-hot__topic + .nx-hot__topic {
    position: relative;
  }

  .nx-hot__topic + .nx-hot__topic::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(-1 * var(--nx-gap) / 2);
    width: 1px;
    background: var(--nx-rule);
  }
}

.nx-hot__topic {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.nexowide .nx-hot__name {
  margin: 0 0 16px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.nexowide .nx-hot__name a {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  color: var(--nx-ink);
}

.nexowide .nx-hot__name span {
  color: var(--nx-green-text);
}

.nexowide .nx-hot__name a:hover {
  color: var(--nx-green-text);
}

.nx-hot__stories > .nx-card--headline {
  padding: 12px 0;
  border-top: 1px solid var(--nx-rule);
}

.nx-hot__stories > .nx-card--standard {
  padding-bottom: 14px;
}

.nx-hot__more {
  margin-top: auto;
  padding-top: 12px;
  color: var(--nx-green-text) !important;
  font-size: var(--nx-fs-sm);
  font-weight: 700;
}

.nx-hot__more:hover {
  text-decoration: underline;
}

/* ==========================================================================
   20. Static pages, Contact page and form
   ========================================================================== */

/* About, Editorial Standards, etc.: centred reading column. */
.nx-page:not(.nx-contact) .nx-article__head,
.nx-page:not(.nx-contact) .nx-article__body {
  max-width: 760px;
  margin-inline: auto;
}

.nx-page:not(.nx-contact) .nx-article__head {
  padding-bottom: 20px;
  border-bottom: 4px solid var(--nx-green);
}

.nx-page .nx-article__body h2 {
  padding-top: 0.4em;
}

.nx-page .nx-article__body .wp-block-buttons,
.nx-page .nx-article__body .wp-block-button {
  margin-top: 0.5em;
}

.nexowide .nx-page .wp-block-button__link {
  border-radius: var(--nx-radius);
  background: var(--nx-green);
  color: var(--nx-on-green);
  font-family: var(--nx-sans);
  font-size: var(--nx-fs-sm);
  font-weight: 700;
  text-decoration: none;
}

.nexowide .nx-page .wp-block-button__link:hover {
  background: var(--nx-green-dark);
  color: var(--nx-on-green);
}

/* Contact layout */
.nx-contact__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}

@media (min-width: 1024px) {
  .nx-contact__layout {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 64px;
    align-items: start;
  }
}

.nx-contact__intro .nx-article__body > p:first-of-type::first-letter {
  float: none;
  margin: 0;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.nx-contact__details {
  display: grid;
  gap: 16px;
  margin: 28px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--nx-rule);
}

.nx-contact__details dt {
  color: var(--nx-muted);
  font-size: var(--nx-fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nx-contact__details dd {
  margin: 2px 0 0;
  font-weight: 600;
}

.nx-contact__details a:hover {
  color: var(--nx-green-text);
}

.nx-contact__social {
  margin-top: 28px;
}

.nx-contact__social .nx-footer__label {
  color: var(--nx-muted);
}

.nx-social--contact .nx-social__link {
  width: 40px;
  height: 40px;
  border: 1px solid var(--nx-rule-strong);
  border-radius: 50%;
  color: var(--nx-ink) !important;
}

.nx-social--contact .nx-social__link:hover {
  border-color: var(--nx-green);
  background: var(--nx-green);
  color: #000 !important;
}

.nx-contact__form {
  padding: 28px;
  border-top: 6px solid var(--nx-green);
  background: var(--nx-surface);
  box-shadow: var(--nx-shadow-1);
}

@media (min-width: 640px) {
  .nx-contact__form {
    padding: 36px;
  }
}

.nexowide .nx-contact__form-title {
  margin: 0 0 20px;
  font-size: var(--nx-fs-xl);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Form controls */
.nx-form__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 16px;
}

@media (min-width: 640px) {
  .nx-form__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.nexowide .nx-form__field {
  margin: 0 0 18px;
}

.nexowide .nx-form label {
  display: block;
  margin-bottom: 6px;
  color: var(--nx-ink);
  font-size: var(--nx-fs-sm);
  font-weight: 700;
}

.nx-form label span {
  color: var(--nx-green-text);
}

.nexowide .nx-form input[type="text"],
.nexowide .nx-form input[type="email"],
.nexowide .nx-form select,
.nexowide .nx-form textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--nx-rule-strong);
  border-radius: var(--nx-radius);
  background: var(--nx-paper);
  color: var(--nx-ink);
  font-family: var(--nx-sans);
  font-size: var(--nx-fs-base);
  line-height: 1.4;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.nexowide .nx-form textarea {
  min-height: 160px;
  resize: vertical;
}

.nexowide .nx-form input:focus,
.nexowide .nx-form select:focus,
.nexowide .nx-form textarea:focus {
  border-color: var(--nx-green-text);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 184, 111, 0.25);
}

.nx-form__hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.nexowide .nx-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin: 4px 0 0;
}

.nx-form__note {
  color: var(--nx-muted);
  font-size: var(--nx-fs-xs);
}

.nexowide .nx-form__notice {
  margin: 0 0 20px;
  padding: 14px 16px;
  border-left: 4px solid;
  font-size: var(--nx-fs-sm);
  font-weight: 600;
}

.nx-form__notice--success {
  border-color: var(--nx-green);
  background: var(--nx-green-tint);
  color: var(--nx-green-deep);
}

.nx-form__notice--error {
  border-color: #b42318;
  background: #fef3f2;
  color: #912018;
}

/* Small utility links in the green top bar. */
.nx-topbar .nx-inline-menu a {
  font-size: var(--nx-fs-xs);
}

/* ==========================================================================
   21. Compact spacing (header, page tops, sections)
   ========================================================================== */

/* The parent theme adds a top margin to the content area on the homepage. */
.nexowide #content.nx-content {
  margin-top: 0;
}

/* Space between the header/breaking strip and the first content. */
.nx-top {
  padding-top: 16px;
}

@media (min-width: 1024px) {
  .nx-top {
    padding-top: 22px;
  }
}

.nx-archive,
.nx-article-page {
  padding-top: 14px;
}

.nexowide .covernews-breadcrumbs {
  margin-bottom: 10px;
}

/* Headings and section blocks */
.nx-section__head {
  margin-bottom: 18px;
  padding-top: 10px;
}

.nx-archive__head {
  margin-bottom: 22px;
  padding-bottom: 16px;
}

.nx-picks {
  padding-block: 28px 34px;
}

.nx-picks__head {
  margin-bottom: 20px;
}

.nx-rail__title {
  padding-bottom: 10px;
}

.nx-rail__list > .nx-card {
  padding: 12px 0;
}

.nx-section__footer {
  margin-top: 24px;
}

/* Article page */
.nx-article__head {
  margin-bottom: 20px;
}

.nx-article__head .nx-card__kicker {
  margin-bottom: 10px;
}

.nx-article__meta {
  margin-top: 16px;
  padding-top: 12px;
}

.nx-article__figure {
  margin-bottom: 24px;
}

.nx-article-page {
  padding-bottom: 36px;
}

/* Footer */
.nx-footer__main {
  padding-block: 32px 28px;
}

@media (min-width: 1024px) {
  .nx-footer__main {
    padding-block: 36px 32px;
  }
}


/* ==========================================================================
   22. Header row: logo · navigation · search (sticky)
   ========================================================================== */

:root {
  --nx-header-h: 54px;
  --nx-nav-height: var(--nx-header-h);
}

@media (min-width: 1200px) {
  :root {
    --nx-header-h: 60px;
  }
}

.nx-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--nx-rule);
  background: var(--nx-paper);
  transition: box-shadow 0.2s ease;
}

.nx-header.is-stuck {
  box-shadow: 0 10px 24px -18px rgba(15, 17, 16, 0.45);
}

body.admin-bar .nx-header {
  top: 46px;
}

@media (min-width: 783px) {
  body.admin-bar .nx-header {
    top: 32px;
  }
}

@media (max-width: 600px) {
  body.admin-bar .nx-header {
    top: 0;
  }
}

.nx-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--nx-header-h);
}

/* Logo height: 32px on wide screens, 24px on tablets, 19px on phones. */
.nx-brand {
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  min-width: 0;
}

.nx-brand .custom-logo-link {
  display: block;
  line-height: 0;
}

.nexowide .nx-brand .custom-logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 19px;
}

@media (min-width: 640px) {
  .nexowide .nx-brand .custom-logo {
    max-height: 24px;
  }
}

@media (min-width: 1200px) {
  .nexowide .nx-brand .custom-logo {
    max-height: 32px;
  }
}

.nexowide .nx-brand__name {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.nexowide .nx-brand__name a {
  color: var(--nx-ink);
}

/* Square icon buttons (menu, search, close). */
.nexowide .nx-iconbtn {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--nx-rule-strong);
  border-radius: var(--nx-radius);
  background: var(--nx-paper);
  color: var(--nx-ink);
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.nexowide .nx-iconbtn:hover,
.nexowide .nx-iconbtn[aria-expanded="true"] {
  border-color: var(--nx-green);
  background: var(--nx-green);
  color: #000;
}

.nx-burger {
  position: relative;
  width: 18px;
  height: 12px;
}

.nx-burger::before,
.nx-burger::after,
.nx-burger span {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
}

.nx-burger::before {
  top: 0;
}

.nx-burger span {
  top: 5px;
}

.nx-burger::after {
  top: 10px;
}

.nx-header__actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* Section navigation (wide screens). */
.nx-nav {
  display: none;
}

@media (min-width: 1200px) {
  .nx-header__inner {
    gap: 24px;
  }

  .nx-header__menu {
    display: none !important;
  }

  .nx-nav {
    display: flex;
    align-self: stretch;
    margin-left: auto;
  }

  .nx-header__actions {
    margin-left: 0;
    padding-left: 20px;
    border-left: 1px solid var(--nx-rule);
  }
}

.nx-nav__list {
  display: flex;
  align-items: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nx-nav__list > li {
  position: relative;
  display: flex;
}

.nexowide .nx-nav__list > li > a {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: var(--nx-ink-2);
  font-size: 0.9375rem;
  font-weight: 650;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: color 0.15s;
}

/* Green underline that grows in from the left on hover. */
.nx-nav__list > li > a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -1px;
  height: 3px;
  background: var(--nx-green);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s var(--nx-ease);
}

.nexowide .nx-nav__list > li > a:hover,
.nexowide .nx-nav__list > li:focus-within > a {
  color: var(--nx-ink);
}

.nx-nav__list > li > a:hover::after,
.nx-nav__list > li:focus-within > a::after {
  transform: scaleX(1);
}

/* Current section: solid underline, darker, bolder text. */
.nexowide .nx-nav__list > .current-menu-item > a,
.nexowide .nx-nav__list > .current-menu-ancestor > a,
.nexowide .nx-nav__list > .current-post-ancestor > a,
.nexowide .nx-nav__list > .current-category-ancestor > a,
.nexowide .nx-nav__list > .current-cat > a,
.nexowide .nx-nav__list > .current-cat-parent > a {
  color: var(--nx-ink);
  font-weight: 800;
}

.nx-nav__list > .current-menu-item > a::after,
.nx-nav__list > .current-menu-ancestor > a::after,
.nx-nav__list > .current-post-ancestor > a::after,
.nx-nav__list > .current-category-ancestor > a::after,
.nx-nav__list > .current-cat > a::after,
.nx-nav__list > .current-cat-parent > a::after {
  transform: scaleX(1);
}

/* Dropdowns (for future sub-sections). */
.nx-nav__list .menu-item-has-children > a {
  gap: 6px;
}

.nx-nav__list .menu-item-has-children > a::before {
  content: "";
  order: 2;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.6;
}

.nx-nav__list .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 70;
  min-width: 220px;
  margin: 0;
  padding: 8px 0;
  border-top: 3px solid var(--nx-green);
  background: var(--nx-paper);
  box-shadow: var(--nx-shadow-2);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}

.nx-nav__list li:hover > .sub-menu,
.nx-nav__list li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.nexowide .nx-nav__list .sub-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--nx-ink-2);
  font-size: var(--nx-fs-sm);
  font-weight: 600;
}

.nexowide .nx-nav__list .sub-menu a:hover {
  background: var(--nx-green-tint);
  color: var(--nx-ink);
}

/* Search: opens inside the header row; nothing below moves. */
.nx-search {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  padding-inline: var(--nx-gutter);
  background: var(--nx-paper);
  animation: nx-search-in 0.18s ease-out;
}

.nx-search[hidden] {
  display: none !important;
}

@keyframes nx-search-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.nx-search__form {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.nx-search__icon {
  flex: none;
  color: var(--nx-muted);
}

.nexowide .nx-search__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  padding: 0 4px;
  border: 0;
  border-bottom: 2px solid var(--nx-green);
  border-radius: 0;
  background: transparent;
  color: var(--nx-ink);
  font-family: var(--nx-sans);
  font-size: 1.0625rem;
  font-weight: 500;
}

.nexowide .nx-search__input:focus {
  outline: none;
  border-bottom-color: var(--nx-green-text);
}

.nexowide .nx-search__input::-webkit-search-cancel-button {
  display: none;
}

.nx-search__submit {
  flex: none;
  min-height: 42px !important;
}

@media (max-width: 479px) {
  .nx-search__submit {
    display: none !important;
  }
}

/* Optional header ad above the header row. */
.nx-header-ad {
  margin-block: 10px !important;
}

/* ==========================================================================
   23. Slide-in menu (below 1200px)
   ========================================================================== */

.nx-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
}

.nx-drawer[hidden] {
  display: none;
}

.nx-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 13, 12, 0.55);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.nx-drawer__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  width: min(86vw, 360px);
  overflow-y: auto;
  background: var(--nx-paper);
  box-shadow: 16px 0 40px -20px rgba(0, 0, 0, 0.5);
  transform: translateX(-100%);
  transition: transform 0.28s var(--nx-ease);
}

.nx-drawer.is-open .nx-drawer__backdrop {
  opacity: 1;
}

.nx-drawer.is-open .nx-drawer__panel {
  transform: none;
}

body.nx-menu-open {
  overflow: hidden;
}

.nx-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px var(--nx-gutter);
  border-bottom: 4px solid var(--nx-green);
}

.nx-drawer__title {
  font-size: var(--nx-fs-xs);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nx-drawer__list {
  margin: 0;
  padding: 6px 0;
  list-style: none;
}

.nexowide .nx-drawer__list a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 var(--nx-gutter);
  border-bottom: 1px solid var(--nx-rule);
  color: var(--nx-ink);
  font-size: 1.0625rem;
  font-weight: 700;
}

.nexowide .nx-drawer__list a:hover {
  background: var(--nx-green-tint);
}

.nexowide .nx-drawer__list .current-menu-item > a,
.nexowide .nx-drawer__list .current-menu-ancestor > a,
.nexowide .nx-drawer__list .current-post-ancestor > a,
.nexowide .nx-drawer__list .current-cat > a {
  box-shadow: inset 4px 0 0 var(--nx-green);
  color: var(--nx-green-text);
}

.nx-drawer__list .sub-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nexowide .nx-drawer__list .sub-menu a {
  min-height: 44px;
  padding-left: calc(var(--nx-gutter) + 16px);
  font-size: var(--nx-fs-sm);
  font-weight: 600;
}

.nx-drawer__links {
  margin-top: 8px;
}

.nexowide .nx-drawer__list--small a {
  min-height: 44px;
  border-bottom: 0;
  color: var(--nx-ink-2);
  font-size: var(--nx-fs-sm);
  font-weight: 600;
}

.nx-drawer__social {
  margin-top: auto;
  padding: 16px var(--nx-gutter) 24px;
  border-top: 1px solid var(--nx-rule);
}

.nx-drawer__social .nx-social__link {
  color: var(--nx-ink) !important;
}

/* ==========================================================================
   24. Breaking news card (separate from the header)
   ========================================================================== */

.nx-breaking-wrap {
  margin-top: 14px;
}

@media (min-width: 1024px) {
  .nx-breaking-wrap {
    margin-top: 18px;
  }
}

.nx-breaking {
  border: 1px solid var(--nx-rule);
  background: var(--nx-paper);
  box-shadow: var(--nx-shadow-1);
}

.nx-breaking__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 48px;
  padding-right: 8px;
}

.nexowide .nx-breaking__label {
  position: relative;
  display: flex;
  flex: none;
  align-items: center;
  align-self: stretch;
  gap: 8px;
  margin: 0;
  padding: 0 14px 0 16px;
  background: var(--nx-green);
  color: var(--nx-on-green);
  font-size: var(--nx-fs-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.nexowide .nx-breaking__label::after {
  content: "";
  position: absolute;
  top: 0;
  right: -12px;
  bottom: 0;
  width: 12px;
  background: var(--nx-green);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.nx-pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--nx-on-green);
}

.nx-pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--nx-on-green);
  animation: nx-pulse 1.8s ease-out infinite;
}

@keyframes nx-pulse {
  from {
    transform: scale(1);
    opacity: 0.6;
  }

  to {
    transform: scale(2.6);
    opacity: 0;
  }
}

.nx-breaking__list {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0 0 0 6px;
  list-style: none;
}

.nx-breaking__item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}

.nx-breaking__item[hidden] {
  display: none;
}

.nx-breaking__item > a {
  min-width: 0;
  overflow: hidden;
}

.nexowide .nx-breaking__headline {
  display: block;
  overflow: hidden;
  color: var(--nx-ink);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nx-breaking__item a:hover .nx-breaking__headline {
  text-decoration: underline;
  text-decoration-color: var(--nx-green);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.nx-breaking__time {
  flex: none;
  white-space: nowrap;
}

.nx-breaking__controls {
  display: flex;
  flex: none;
  align-items: center;
  gap: 4px;
}

.nx-breaking__count {
  min-width: 2.5em;
  color: var(--nx-muted);
  font-size: var(--nx-fs-xs);
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.nexowide .nx-breaking__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--nx-rule-strong);
  border-radius: var(--nx-radius);
  background: var(--nx-paper);
  color: var(--nx-ink);
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}

.nexowide .nx-breaking__btn:hover {
  border-color: var(--nx-green);
  background: var(--nx-green);
  color: #000;
}

@media (max-width: 639px) {
  .nx-breaking__inner {
    flex-wrap: wrap;
    gap: 0;
    padding-right: 0;
  }

  .nexowide .nx-breaking__label {
    min-height: 32px;
  }

  .nexowide .nx-breaking__label::after {
    display: none;
  }

  .nx-breaking__controls {
    margin-left: auto;
    padding: 4px 6px;
  }

  .nexowide .nx-breaking__btn {
    width: 28px;
    height: 28px;
  }

  .nx-breaking__list {
    flex-basis: 100%;
    order: 3;
    padding: 10px 12px 12px;
    border-top: 1px solid var(--nx-rule);
  }

  .nexowide .nx-breaking__headline {
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .nx-breaking__time {
    display: none;
  }
}

/* Phones: one-line top bar (utility links stay in the footer and menu). */
@media (max-width: 639px) {
  .nx-topbar__nav {
    display: none;
  }

  .nx-topbar__inner {
    min-height: 30px;
    padding-block: 0;
  }

  .nx-topbar__date {
    flex: 0 1 auto;
  }
}

/* Footer: legal links in the bottom bar. */
.nx-footer__legal {
  margin-right: auto;
}

.nx-footer__legal ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nx-footer .nx-footer__legal a {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
}

.nx-footer .nx-footer__legal a:hover {
  color: var(--nx-green);
}

@media (min-width: 640px) {
  .nx-footer__copy {
    margin-right: 8px !important;
  }
}

.nx-form__note a {
  color: var(--nx-green-text);
  font-weight: 600;
  text-decoration: underline;
}

/* The large green first letter is for articles only, not static pages. */
.nx-page .nx-article__body > p:first-of-type::first-letter {
  float: none;
  margin: 0;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.nx-page .nx-article__body > p:first-of-type {
  font-size: inherit;
}
