/* Nexora Blogs — editorial identity aligned with ABS Nexora navy/gold */

:root {
  --nb-ink: #142033;
  --nb-muted: #5a6b7d;
  --nb-navy: #001f3f;
  --nb-navy-mid: #163a5f;
  --nb-gold: #c5a059;
  --nb-gold-soft: rgba(197, 160, 89, 0.14);
  --nb-cream: #f7f3ea;
  --nb-paper: #fffdf8;
  --nb-line: rgba(0, 31, 63, 0.12);
  --nb-serif: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --nb-sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --nb-display: "Cinzel", "Fraunces", Georgia, serif;
  --nb-max: 72rem;
  --nb-prose: 42rem;
}

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

html {
  scroll-behavior: smooth;
}

body.nb-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--nb-sans);
  color: var(--nb-ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(197, 160, 89, 0.16), transparent 55%),
    radial-gradient(900px 420px at 90% 0%, rgba(0, 31, 63, 0.1), transparent 50%),
    linear-gradient(180deg, #fbf8f1 0%, var(--nb-cream) 42%, #f3eee3 100%);
  line-height: 1.55;
}

a {
  color: var(--nb-navy-mid);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.nb-skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--nb-navy);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 1000;
}

.nb-skip:focus {
  left: 0.75rem;
  top: 0.75rem;
}

/* —— Reading progress —— */
.nb-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 60;
  background: transparent;
  pointer-events: none;
}

.nb-progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--nb-gold), #e0c992);
  transform-origin: left;
  transition: width 0.08s linear;
}

/* —— Header —— */
.nb-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(251, 248, 241, 0.9);
  border-top: 2px solid var(--nb-gold);
  border-bottom: 1px solid var(--nb-line);
}

.nb-header-inner {
  max-width: var(--nb-max);
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nb-brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  animation: nb-rise 0.7s ease both;
}

.nb-brand:hover {
  text-decoration: none;
}

.nb-brand-mark {
  font-family: var(--nb-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 1.35rem;
  color: var(--nb-navy);
  line-height: 1.1;
}

.nb-brand-sub {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--nb-muted);
}

.nb-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.nb-nav a {
  color: var(--nb-navy);
}

.nb-nav .nb-nav-cta {
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(0, 31, 63, 0.22);
  background: var(--nb-paper);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nb-nav .nb-nav-cta:hover {
  background: var(--nb-gold-soft);
  border-color: var(--nb-gold);
  text-decoration: none;
}

.nb-main {
  flex: 1;
  width: 100%;
}

/* —— Breadcrumbs —— */
.nb-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 0 1.25rem;
  color: var(--nb-muted);
}

.nb-breadcrumb a {
  color: var(--nb-navy-mid);
}

.nb-bc-sep {
  opacity: 0.5;
}

.nb-breadcrumb--on-dark {
  color: rgba(247, 243, 234, 0.7);
}

.nb-breadcrumb--on-dark a {
  color: rgba(247, 243, 234, 0.92);
}

.nb-breadcrumb--on-dark a:hover {
  color: var(--nb-gold);
}

/* —— Hero —— */
.nb-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(197, 160, 89, 0.22);
  background:
    linear-gradient(155deg, #001628 0%, var(--nb-navy) 42%, #163a5f 78%, #1a4568 100%);
  color: #f7f3ea;
  min-height: min(62vh, 30rem);
  display: grid;
  align-items: end;
}

.nb-hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.nb-hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.nb-hero-glow--a {
  width: min(52vw, 28rem);
  height: min(52vw, 28rem);
  top: -18%;
  right: -6%;
  background: radial-gradient(circle, rgba(197, 160, 89, 0.22) 0%, transparent 68%);
  animation: nb-hero-drift 14s ease-in-out infinite alternate;
}

.nb-hero-glow--b {
  width: min(46vw, 22rem);
  height: min(46vw, 22rem);
  bottom: -22%;
  left: -8%;
  background: radial-gradient(circle, rgba(255, 253, 248, 0.08) 0%, transparent 70%);
  animation: nb-hero-drift 18s ease-in-out infinite alternate-reverse;
}

.nb-hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(197, 160, 89, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(197, 160, 89, 0.07) 1px, transparent 1px);
  background-size: 4.5rem 4.5rem;
  mask-image: radial-gradient(ellipse 75% 70% at 35% 55%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 35% 55%, #000 20%, transparent 75%);
}

.nb-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(transparent, rgba(0, 14, 28, 0.45));
  pointer-events: none;
  z-index: 0;
}

.nb-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--nb-max);
  margin: 0 auto;
  width: 100%;
  padding: 4.25rem 1.25rem 3.75rem;
}

.nb-hero-inner > .nb-breadcrumb {
  animation: nb-rise 0.7s ease both;
}

.nb-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--nb-gold);
  margin: 0 0 0.65rem;
  font-weight: 600;
}

.nb-hero-kicker {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 1rem;
  animation: nb-rise 0.75s ease 0.06s both;
}

.nb-kicker-brand {
  font-family: var(--nb-display);
  font-size: clamp(0.82rem, 1.6vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--nb-gold);
}

.nb-kicker-rule {
  display: block;
  width: 3.25rem;
  height: 1px;
  background: linear-gradient(90deg, var(--nb-gold), transparent);
  flex-shrink: 0;
}

.nb-hero-title {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0 0 1.15rem;
  animation: nb-rise 0.85s ease 0.12s both;
}

.nb-hero-title-main {
  font-family: var(--nb-display);
  font-weight: 600;
  font-size: clamp(3.1rem, 8vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: 0.07em;
  color: #fffdf8;
}

.nb-hero-title-sub {
  font-family: var(--nb-serif);
  font-weight: 500;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  letter-spacing: 0.04em;
  color: rgba(247, 243, 234, 0.72);
  font-style: italic;
}

.nb-hero-lead {
  margin: 0;
  max-width: 36rem;
  font-size: clamp(1.05rem, 2vw, 1.18rem);
  line-height: 1.6;
  color: rgba(247, 243, 234, 0.88);
  animation: nb-rise 0.85s ease 0.2s both;
}

.nb-hero-stat {
  margin: 1.1rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nb-gold);
  animation: nb-rise 0.85s ease 0.24s both;
}

.nb-hero-actions {
  margin-top: 1.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: nb-rise 0.85s ease 0.28s both;
}

.nb-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--nb-sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.65rem 1.1rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.nb-btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.nb-btn-gold {
  background: var(--nb-gold);
  color: #1a1206;
}

.nb-btn-ghost {
  background: transparent;
  color: #fffdf8;
  border-color: rgba(255, 253, 248, 0.35);
}

.nb-btn-outline {
  background: var(--nb-paper);
  color: var(--nb-navy);
  border-color: rgba(0, 31, 63, 0.2);
}

.nb-btn-outline:hover {
  border-color: var(--nb-gold);
  background: var(--nb-gold-soft);
}

.nb-btn-gold:focus-visible,
.nb-btn-ghost:focus-visible {
  outline: 2px solid var(--nb-gold);
  outline-offset: 3px;
}

/* —— Pagination —— */
.nb-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin: 2.25rem 0 0.75rem;
  padding: 1.35rem 0 0.15rem;
  border-top: 1px solid rgba(197, 160, 89, 0.32);
}

.nb-pagination-status {
  margin: 0;
  font-size: 0.9rem;
  color: var(--nb-muted);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.nb-pagination-status strong {
  color: var(--nb-navy);
  font-weight: 600;
}

.nb-pagination-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}

.nb-page-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  height: 2.35rem;
  padding: 0 0.6rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--nb-navy);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nb-page-btn:hover:not(:disabled):not([aria-current="page"]) {
  border-color: rgba(197, 160, 89, 0.5);
  background: var(--nb-gold-soft);
  text-decoration: none;
}

.nb-page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.nb-page-btn[aria-current="page"] {
  background: var(--nb-navy);
  border-color: var(--nb-navy);
  color: #fffdf8;
  cursor: default;
  box-shadow: inset 0 2px 0 var(--nb-gold);
}

.nb-page-btn:focus-visible {
  outline: 2px solid var(--nb-gold);
  outline-offset: 2px;
}

.nb-page-btn--dir {
  min-width: auto;
  padding: 0 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.nb-page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 2.35rem;
  color: var(--nb-muted);
  font-weight: 600;
  user-select: none;
}

.nb-page-top {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--nb-navy-mid);
  cursor: pointer;
  letter-spacing: 0.04em;
}

.nb-page-top:hover {
  color: var(--nb-gold);
}

/* —— Listing section —— */
.nb-section {
  max-width: var(--nb-max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 1rem;
}

.nb-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  animation: nb-rise 0.7s ease both;
}

.nb-section-head h2 {
  font-family: var(--nb-serif);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0;
  color: var(--nb-navy);
}

.nb-section-head p {
  margin: 0.35rem 0 0;
  color: var(--nb-muted);
  max-width: 36rem;
}

.nb-rss-link {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

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

.nb-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  margin: 0 0 1.15rem;
}

.nb-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  flex: 1 1 16rem;
  min-width: 0;
}

.nb-search input[type="search"] {
  flex: 1 1 12rem;
  min-width: 0;
  appearance: none;
  border: 1px solid var(--nb-line);
  background: var(--nb-paper);
  color: var(--nb-ink);
  font: inherit;
  font-size: 0.95rem;
  padding: 0.58rem 0.8rem;
}

.nb-search input[type="search"]:focus {
  outline: 2px solid var(--nb-gold);
  outline-offset: 1px;
  border-color: var(--nb-gold);
}

.nb-toolbar-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.75rem 1rem;
}

.nb-field {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nb-muted);
}

.nb-field select {
  appearance: none;
  min-width: 8.5rem;
  border: 1px solid var(--nb-line);
  background: var(--nb-paper)
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23001f3f' d='M1 1l5 5 5-5'/></svg>")
    no-repeat right 0.7rem center;
  color: var(--nb-navy);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  padding: 0.52rem 1.8rem 0.52rem 0.75rem;
  cursor: pointer;
}

.nb-field select:focus {
  outline: 2px solid var(--nb-gold);
  outline-offset: 1px;
}

.nb-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.nb-chip {
  appearance: none;
  border: 1px solid var(--nb-line);
  background: var(--nb-paper);
  color: var(--nb-navy);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nb-chip:hover,
.nb-chip.is-active {
  background: var(--nb-navy);
  border-color: var(--nb-navy);
  color: #fffdf8;
}

.nb-chip:focus-visible {
  outline: 2px solid var(--nb-gold);
  outline-offset: 2px;
}

.nb-featured-wrap {
  margin-bottom: 2.35rem;
}

.nb-featured-head {
  margin-bottom: 1rem;
}

.nb-featured-head .nb-kicker {
  margin-bottom: 0.35rem;
}

.nb-featured-head h3 {
  margin: 0;
  font-family: var(--nb-serif);
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  font-weight: 600;
  color: var(--nb-navy);
}

.nb-featured {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.25rem;
}

.nb-feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 18rem;
  padding: 1.5rem;
  background:
    linear-gradient(160deg, rgba(0, 31, 63, 0.08), rgba(197, 160, 89, 0.12)),
    var(--nb-paper);
  border: 1px solid var(--nb-line);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  animation: nb-rise 0.75s ease both;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.nb-feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--nb-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.nb-feature-card:hover {
  text-decoration: none;
  transform: translateY(-3px);
  border-color: rgba(197, 160, 89, 0.45);
}

.nb-feature-card:hover::before {
  transform: scaleX(1);
}

.nb-feature-card .nb-meta {
  color: var(--nb-gold);
}

.nb-feature-card h3 {
  font-family: var(--nb-serif);
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  margin: 0.4rem 0;
  color: var(--nb-navy);
}

.nb-feature-card p {
  margin: 0;
  color: var(--nb-muted);
  font-size: 1rem;
}

.nb-feature-card--lead {
  background:
    linear-gradient(155deg, #001628 0%, var(--nb-navy) 48%, #163a5f 100%);
  border-color: rgba(197, 160, 89, 0.28);
  color: #f7f3ea;
}

.nb-feature-card--lead .nb-meta,
.nb-feature-card--lead .nb-badge {
  color: var(--nb-gold);
}

.nb-feature-card--lead h3 {
  color: #fffdf8;
}

.nb-feature-card--lead p,
.nb-feature-card--lead .nb-card-foot {
  color: rgba(247, 243, 234, 0.76);
}

.nb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.nb-card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.25rem 1.35rem;
  background: var(--nb-paper);
  border: 1px solid var(--nb-line);
  border-top: 3px solid var(--nb-gold);
  text-decoration: none;
  color: inherit;
  min-height: 14rem;
  animation: nb-rise 0.7s ease both;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.nb-card:nth-child(1) { animation-delay: 0.04s; }
.nb-card:nth-child(2) { animation-delay: 0.1s; }
.nb-card:nth-child(3) { animation-delay: 0.16s; }
.nb-card:nth-child(4) { animation-delay: 0.22s; }
.nb-card:nth-child(5) { animation-delay: 0.28s; }
.nb-card:nth-child(6) { animation-delay: 0.34s; }

.nb-card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  border-color: rgba(197, 160, 89, 0.45);
}

.nb-card h3,
.nb-feature-card h3 {
  background-image: linear-gradient(var(--nb-gold), var(--nb-gold));
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.3s ease;
}

.nb-card:hover h3,
.nb-feature-card:hover h3 {
  background-size: 3.25rem 1px;
}

.nb-card h3 {
  font-family: var(--nb-serif);
  font-size: 1.28rem;
  margin: 0.35rem 0 0.55rem;
  color: var(--nb-navy);
  line-height: 1.25;
}

.nb-card p {
  margin: 0;
  color: var(--nb-muted);
  flex: 1;
  font-size: 0.98rem;
}

.nb-card-foot {
  margin-top: 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--nb-navy);
  letter-spacing: 0.04em;
}

.nb-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--nb-muted);
}

.nb-badge {
  color: var(--nb-gold);
}

/* —— Loading / empty / error —— */
.nb-empty,
.nb-loading,
.nb-state {
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--nb-muted);
}

.nb-state {
  border: 1px solid var(--nb-line);
  border-top: 3px solid var(--nb-gold);
  background: var(--nb-paper);
  margin-top: 0.5rem;
  padding: 2.75rem 1.25rem;
}

.nb-state h3 {
  font-family: var(--nb-serif);
  color: var(--nb-navy);
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.nb-state p {
  margin: 0 0 1rem;
}

.nb-skel {
  background: linear-gradient(
    90deg,
    rgba(0, 31, 63, 0.05) 0%,
    rgba(197, 160, 89, 0.1) 50%,
    rgba(0, 31, 63, 0.05) 100%
  );
  background-size: 200% 100%;
  animation: nb-shimmer 1.2s ease-in-out infinite;
  border: 1px solid var(--nb-line);
}

.nb-skel-card {
  min-height: 14rem;
}

.nb-skel-post {
  min-height: 18rem;
  grid-column: 1 / -1;
}

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

/* —— Post layout —— */
.nb-post-shell {
  max-width: calc(var(--nb-max) + 3.5rem);
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3rem;
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 1.15rem;
  align-items: start;
}

.nb-post-wrap {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, var(--nb-prose)) minmax(12rem, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.nb-share-rail {
  position: sticky;
  top: 5.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding-top: 0.35rem;
}

.nb-share-rail .nb-share {
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  gap: 0.4rem;
}

.nb-share-rail .nb-share-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
}

.nb-share-rail .nb-share-btn {
  width: 2.2rem;
  height: 2.2rem;
}

.nb-share-rail .nb-share-btn--wide {
  width: 2.2rem;
  padding: 0;
}

.nb-share-rail .nb-share-btn--wide span {
  display: none;
}

.nb-post-hero {
  grid-column: 1 / -1;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--nb-line);
  animation: nb-rise 0.75s ease both;
}

.nb-post-hero h1 {
  font-family: var(--nb-serif);
  font-size: clamp(1.85rem, 4vw, 2.85rem);
  line-height: 1.18;
  margin: 0.55rem 0 0.85rem;
  color: var(--nb-navy);
  max-width: 22ch;
}

.nb-post-hero h1::after {
  content: "";
  display: block;
  width: 3.25rem;
  height: 2px;
  margin-top: 0.85rem;
  background: var(--nb-gold);
}

.nb-post-hero .nb-excerpt {
  font-size: 1.15rem;
  color: var(--nb-muted);
  max-width: 40rem;
  margin: 0;
  line-height: 1.5;
}

.nb-post-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.1rem;
  margin-top: 1rem;
  font-size: 0.92rem;
  color: var(--nb-muted);
}

.nb-post-meta-row strong {
  color: var(--nb-navy);
  font-weight: 600;
}

/* —— Share bar —— */
.nb-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 1.25rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--nb-line);
}

.nb-share-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nb-muted);
  margin-right: 0.35rem;
}

.nb-share-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border: 1px solid var(--nb-line);
  background: var(--nb-paper);
  color: var(--nb-navy);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nb-share-btn:hover {
  background: var(--nb-navy);
  border-color: var(--nb-navy);
  color: #fffdf8;
  text-decoration: none;
  transform: translateY(-1px);
}

.nb-share-btn:focus-visible {
  outline: 2px solid var(--nb-gold);
  outline-offset: 2px;
}

.nb-share-btn svg {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
}

.nb-share-btn--wide {
  width: auto;
  padding: 0 0.75rem;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
}

/* —— Prose —— */
.nb-prose {
  animation: nb-rise 0.8s ease 0.05s both;
  max-width: var(--nb-prose);
}

.nb-prose h2,
.nb-prose h3 {
  font-family: var(--nb-serif);
  color: var(--nb-navy);
  margin: 1.85rem 0 0.65rem;
  scroll-margin-top: 5.5rem;
}

.nb-prose h2 {
  font-size: 1.45rem;
}

.nb-prose h3 {
  font-size: 1.2rem;
}

.nb-prose p,
.nb-prose li {
  font-size: 1.06rem;
  color: var(--nb-ink);
  line-height: 1.7;
}

.nb-prose p {
  margin: 0 0 1.1rem;
}

.nb-prose ul,
.nb-prose ol {
  margin: 0 0 1.15rem;
  padding-left: 1.35rem;
}

.nb-prose a {
  color: var(--nb-navy);
  text-decoration: underline;
  text-decoration-color: rgba(197, 160, 89, 0.55);
}

.nb-prose blockquote {
  margin: 1.5rem 0;
  padding: 0.85rem 1.1rem;
  border-left: 3px solid var(--nb-gold);
  background: var(--nb-gold-soft);
  color: var(--nb-navy);
}

.nb-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}

.nb-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 1.5rem 0;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--nb-line);
  border-left: 3px solid var(--nb-gold);
  background: var(--nb-paper);
}

.nb-table-wrap table {
  margin: 0;
  min-width: 28rem;
}

.nb-prose th,
.nb-prose td {
  border: 1px solid var(--nb-line);
  padding: 0.55rem 0.75rem;
  text-align: left;
}

.nb-prose th {
  background: rgba(0, 31, 63, 0.06);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--nb-navy);
}

.nb-prose tbody tr:nth-child(even) {
  background: rgba(0, 31, 63, 0.025);
}

/* —— Embedded analytics figures / SVG charts —— */
.nb-prose .nb-figure {
  margin: 1.85rem 0;
  padding: 1.1rem 1.1rem 0.95rem;
  background:
    linear-gradient(180deg, rgba(0, 31, 63, 0.035), transparent 55%),
    var(--nb-paper);
  border: 1px solid var(--nb-line);
  border-top: 3px solid var(--nb-gold);
}

.nb-prose .nb-figure .nb-chart {
  display: block;
  width: 100%;
  height: auto;
  max-width: 42rem;
  margin: 0 auto;
}

.nb-prose .nb-figure figcaption {
  margin: 0.75rem 0 0;
  padding-top: 0.65rem;
  border-top: 1px solid var(--nb-line);
  font-size: 0.84rem;
  color: var(--nb-muted);
  line-height: 1.45;
}

.nb-chart-label,
.nb-chart-value,
.nb-chart-legend {
  font-family: var(--nb-sans);
  font-size: 12px;
  fill: var(--nb-navy);
}

.nb-chart-value {
  font-weight: 600;
  fill: var(--nb-ink);
}

.nb-chart-legend {
  font-weight: 600;
  font-size: 11px;
}

@media (max-width: 640px) {
  .nb-prose .nb-figure {
    padding: 0.75rem 0.65rem 0.7rem;
  }
}

.nb-prose code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.9em;
  background: rgba(0, 31, 63, 0.06);
  padding: 0.1em 0.35em;
}

.nb-prose pre {
  overflow: auto;
  padding: 1rem;
  background: #102338;
  color: #f3eee3;
}

.nb-prose pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.nb-post-actions {
  margin: 2rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--nb-line);
}

/* —— Aside / TOC / related —— */
.nb-aside {
  position: sticky;
  top: 5.5rem;
  animation: nb-rise 0.8s ease 0.12s both;
}

.nb-aside h2,
.nb-aside-block h2,
.nb-toc h2 {
  font-family: var(--nb-serif);
  font-size: 1.05rem;
  margin: 0 0 0.75rem;
  color: var(--nb-navy);
}

.nb-aside-block {
  margin-bottom: 1.5rem;
}

.nb-toc {
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--nb-line);
}

.nb-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nb-toc li {
  margin: 0;
}

.nb-toc a {
  display: block;
  padding: 0.35rem 0;
  font-size: 0.9rem;
  color: var(--nb-muted);
  border-left: 2px solid transparent;
  padding-left: 0.65rem;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nb-toc a:hover,
.nb-toc a.is-active {
  color: var(--nb-navy);
  border-left-color: var(--nb-gold);
}

.nb-toc .nb-toc-h3 {
  padding-left: 1.15rem;
  font-size: 0.85rem;
}

.nb-related a {
  display: block;
  padding: 0.85rem 0;
  border-top: 1px solid var(--nb-line);
  color: inherit;
  text-decoration: none;
}

.nb-related a:hover {
  text-decoration: none;
}

.nb-related a:hover strong {
  text-decoration: underline;
  text-decoration-color: var(--nb-gold);
  text-underline-offset: 0.18em;
}

.nb-related strong {
  display: block;
  font-family: var(--nb-serif);
  font-size: 1.05rem;
  color: var(--nb-navy);
  margin: 0.2rem 0 0.25rem;
}

.nb-related span,
.nb-related .nb-related-meta {
  font-size: 0.78rem;
  color: var(--nb-muted);
  letter-spacing: 0.03em;
}

.nb-related .nb-related-cue {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nb-navy);
}

.nb-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1.15rem 0 0;
}

.nb-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border: 1px solid var(--nb-line);
  background: var(--nb-paper);
  color: var(--nb-navy);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.nb-tag:hover {
  border-color: var(--nb-gold);
  background: var(--nb-gold-soft);
  text-decoration: none;
}

.nb-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(197, 160, 89, 0.28);
}

.nb-post-nav a {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.85rem 0;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.nb-post-nav a:hover {
  text-decoration: none;
}

.nb-post-nav a:hover strong {
  color: var(--nb-navy);
  text-decoration: underline;
  text-decoration-color: var(--nb-gold);
  text-underline-offset: 0.18em;
}

.nb-post-nav span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nb-gold);
}

.nb-post-nav strong {
  font-family: var(--nb-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--nb-navy);
  line-height: 1.3;
}

.nb-post-nav-next {
  text-align: right;
  align-items: flex-end;
}

.nb-post-nav-placeholder {
  min-height: 1px;
}

.nb-hooks {
  margin-top: 0.5rem;
  padding: 1rem;
  background: rgba(0, 31, 63, 0.04);
  border: 1px solid var(--nb-line);
  font-size: 0.92rem;
  line-height: 1.55;
}

.nb-hooks strong {
  display: block;
  font-family: var(--nb-serif);
  color: var(--nb-navy);
  margin-bottom: 0.45rem;
}

.nb-hooks a {
  font-weight: 600;
}

/* —— Toast —— */
.nb-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(0.5rem);
  z-index: 80;
  padding: 0.7rem 1.15rem;
  background: var(--nb-navy);
  color: #fffdf8;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(197, 160, 89, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.nb-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* —— Footer —— */
.nb-footer {
  margin-top: auto;
  border-top: 1px solid var(--nb-line);
  background: var(--nb-navy);
  color: rgba(247, 243, 234, 0.85);
}

.nb-footer-inner {
  max-width: var(--nb-max);
  margin: 0 auto;
  padding: 1.75rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
}

.nb-footer a {
  color: #f7f3ea;
}

.nb-footer strong {
  font-family: var(--nb-display);
  letter-spacing: 0.08em;
  color: #fffdf8;
}

.nb-footer-tag {
  margin: 0.4rem 0 0;
}

@keyframes nb-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes nb-hero-drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-3%, 4%) scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nb-hero-glow--a,
  .nb-hero-glow--b {
    animation: none;
  }

  .nb-hero-inner > .nb-breadcrumb,
  .nb-hero-kicker,
  .nb-hero-title,
  .nb-hero-lead,
  .nb-hero-stat,
  .nb-hero-actions,
  .nb-brand,
  .nb-section-head,
  .nb-feature-card,
  .nb-card,
  .nb-prose,
  .nb-aside {
    animation: none;
  }
}

@media (max-width: 1100px) {
  .nb-post-shell {
    grid-template-columns: 1fr;
    max-width: var(--nb-max);
  }

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

@media (max-width: 960px) {
  .nb-featured,
  .nb-grid,
  .nb-post-wrap {
    grid-template-columns: 1fr;
  }

  .nb-aside {
    position: static;
  }

  .nb-hero {
    min-height: auto;
  }

  .nb-post-hero h1 {
    max-width: none;
  }

  .nb-pagination {
    flex-direction: column;
    align-items: flex-start;
  }

  .nb-post-nav {
    grid-template-columns: 1fr;
  }

  .nb-post-nav-next {
    text-align: left;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .nb-nav a:not(.nb-nav-cta) {
    display: none;
  }

  .nb-header-inner {
    padding: 0.75rem 1rem;
  }

  .nb-hero-inner {
    padding: 2.75rem 1rem 2.35rem;
  }

  .nb-hero-title-main {
    letter-spacing: 0.05em;
  }

  .nb-kicker-rule {
    width: 2.25rem;
  }

  .nb-pagination-nav {
    width: 100%;
  }

  .nb-share-label {
    width: 100%;
    margin-bottom: 0.15rem;
  }
}

.nb-preview-banner {
  margin: 0 0 1rem;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  background: var(--nb-navy);
  color: var(--nb-gold);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
}

/* —— Print —— */
@media print {
  .nb-header,
  .nb-footer,
  .nb-progress,
  .nb-share,
  .nb-share-rail,
  .nb-aside,
  .nb-post-actions,
  .nb-post-nav,
  .nb-toast,
  .nb-skip,
  .nb-nav {
    display: none !important;
  }

  body.nb-body {
    background: #fff;
    color: #000;
  }

  .nb-post-wrap {
    display: block;
    max-width: none;
    padding: 0;
  }

  .nb-prose a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    color: #555;
  }

  .nb-prose a[href^="/"]::after,
  .nb-prose a[href^="#"]::after {
    content: "";
  }
}
