/* =========================================================
   authority.css — NavyShipExposure Authority Theme
   Rights Watch Media Group LLC
   Navy fork: primary #0a1628, accent #c9a227
   ========================================================= */

/* ─── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,600;0,8..60,700;1,8..60,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* ─── CSS Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; }

/* ─── Custom Properties ─────────────────────────────────────── */
:root {
  --color-primary:     #0a1628;
  --color-accent:      #c9a227;
  --color-accent-light:#f0e6c0;
  --color-steel:       #4a6fa5;
  --color-text:        #1a202c;
  --color-text-muted:  #4a5568;
  --color-text-light:  #718096;
  --color-bg:          #ffffff;
  --color-bg-alt:      #f0f4fa;
  --color-bg-dark:     #04080f;
  --color-border:      #c8d6e8;
  --color-white:       #ffffff;
  --font-heading:      'Source Serif 4', Georgia, serif;
  --font-body:         'Inter', system-ui, sans-serif;
  --max-width:         1200px;
  --gap:               1.5rem;
  --radius:            6px;
  --radius-lg:         12px;
  --shadow-sm:         0 1px 3px rgba(0,0,0,.08);
  --shadow-md:         0 4px 12px rgba(0,0,0,.12);
  --shadow-lg:         0 8px 30px rgba(0,0,0,.16);
  --transition:        all 0.2s ease;
  --header-height:     64px;
}

/* ─── Base Typography ───────────────────────────────────────── */
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background:
    /* gutter vignette — faint navy wash on the edges, content area stays clean */
    linear-gradient(90deg,
      rgba(13, 34, 64, 0.05) 0%,
      rgba(13, 34, 64, 0.02) 14%,
      transparent 28%,
      transparent 72%,
      rgba(13, 34, 64, 0.02) 86%,
      rgba(13, 34, 64, 0.05) 100%) fixed,
    /* faint top-down warmth so the page doesn't read as flat white */
    linear-gradient(180deg, #fafbfc 0%, #ffffff 240px) fixed,
    var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--color-primary);
  font-weight: 600;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; }
em { font-style: italic; }

/* ─── Layout Utilities ──────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 4rem 0; }
.section--alt { background: var(--color-bg-alt); }
.section--dark {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ─── Site Header ───────────────────────────────────────────── */
/* ─── NSE Header — patriotic carrier-deck design ─────────────── */
.nse-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #0a1628;
  box-shadow: 0 2px 12px rgba(0,0,0,.45);
  border-bottom: 1px solid rgba(212,160,23,.35);
  isolation: isolate;
}
.nse-header__bg {
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(180deg, rgba(10,22,40,.78) 0%, rgba(10,22,40,.55) 45%, rgba(10,22,40,.82) 100%),
    url(/images/header/header-ship-row.jpg);
  background-size: cover;
  background-position: center 60%;
  background-repeat: no-repeat;
}
.nse-header__inner {
  position: relative; z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
  padding: .55rem 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  column-gap: 1.5rem;
  align-items: center;
}

/* Logo (text-only, serif) */
.nse-logo {
  flex-shrink: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
}
.nse-logo__main {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.01em;
  line-height: 1.1;
  text-shadow: 0 1px 4px rgba(0,0,0,.7), 0 0 18px rgba(0,0,0,.5);
}
.nse-logo__tld {
  color: #d4a017;
  font-weight: 600;
}

/* Navigation (sans-serif, compact, 5 + dropdown) */
.nse-nav {
  display: flex;
  align-items: center;
  gap: .05rem;
  justify-content: center;
  min-width: 0;
  overflow: visible;
}
.nse-nav__link {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: .86rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  padding: .5rem .7rem;
  border-radius: 4px;
  white-space: nowrap;
  position: relative;
  transition: color .12s, background .12s;
  text-shadow: 0 1px 3px rgba(0,0,0,.85), 0 0 10px rgba(0,0,0,.5);
}
.nse-nav__link:hover {
  color: #d4a017;
  background: rgba(255,255,255,.06);
}
.nse-nav__link--active {
  color: #fff;
}
.nse-nav__link--active::after {
  content: "";
  position: absolute;
  left: .85rem; right: .85rem;
  bottom: -2px;
  height: 3px;
  background: #B22234; /* Old Glory Red */
  border-radius: 2px;
}

/* More▾ dropdown */
.nse-nav__more {
  position: relative;
}
.nse-nav__more-btn {
  font-family: inherit;
  font-size: .86rem;
  font-weight: 600;
  color: #fff;
  background: none;
  border: none;
  padding: .5rem .7rem;
  border-radius: 4px;
  text-shadow: 0 1px 3px rgba(0,0,0,.85), 0 0 10px rgba(0,0,0,.5);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  white-space: nowrap;
  transition: color .12s, background .12s;
}
.nse-nav__more-btn:hover { color: #d4a017; background: rgba(255,255,255,.06); }
.nse-nav__more-caret { font-size: .75em; color: #d4a017; }
.nse-nav__more-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #0d2240;
  border: 1px solid rgba(212,160,23,.35);
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0,0,0,.45);
  min-width: 200px;
  padding: .35rem 0;
  z-index: 100;
}
.nse-nav__more-panel[hidden] { display: none; }
.nse-nav__more-panel a {
  display: block;
  padding: .55rem 1rem;
  font-size: .87rem;
  color: rgba(255,255,255,.9);
  text-decoration: none;
  font-weight: 500;
  transition: background .12s, color .12s;
}
.nse-nav__more-panel a:hover { background: rgba(212,160,23,.14); color: #d4a017; }

/* Right CTA cluster — stacked phone + button */
.nse-cta {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .25rem;
}
.nse-cta__phone {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .82rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: .015em;
  transition: color .12s;
  text-shadow: 0 1px 3px rgba(0,0,0,.85), 0 0 10px rgba(0,0,0,.5);
}
.nse-cta__phone:hover { color: #d4a017; }
.nse-cta__phone-icon { color: #d4a017; font-size: 1rem; }
.nse-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: #d4a017;
  color: #0d2240;
  font-weight: 800;
  font-size: .8rem;
  padding: .5rem .95rem;
  border-radius: 5px;
  text-decoration: none;
  letter-spacing: .02em;
  border: 2px solid #f0c040;
  box-shadow: 0 2px 8px rgba(0,0,0,.55), 0 0 0 1px rgba(0,0,0,.4);
  transition: all .15s;
  white-space: nowrap;
}
.nse-cta__btn:hover {
  background: #e6b520;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(212,160,23,.35);
}
.nse-cta__btn-icon { font-size: 1rem; }

/* Mobile burger */
.nse-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 38px;
  height: 38px;
  padding: 0;
}
.nse-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .2s;
}

/* Mobile CTA strip (hidden on desktop) */
.nse-mobile-cta {
  display: none;
  position: sticky;
  top: 0;
  z-index: 999;
  background: #d4a017;
  text-align: center;
}
.nse-mobile-cta__btn {
  display: block;
  padding: .55rem 1rem;
  color: #0d2240;
  font-weight: 800;
  font-size: .85rem;
  text-decoration: none;
  letter-spacing: .02em;
}

/* Legacy aliases — keep .site-header working if other partials reference it */
.site-header { display: none; }

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.site-logo__mark {
  width: 36px;
  height: 36px;
  background: var(--color-accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.site-logo__name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-white);
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
  row-gap: 0.4rem;
}

.site-nav a {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  padding: 0.35rem 0.55rem;
  border-radius: 4px;
  transition: var(--transition);
  white-space: nowrap;
}

.site-nav .nav-muster {
  color: var(--color-accent);
  font-weight: 600;
}

.site-nav .nav-civilian {
  color: var(--color-accent);
  font-weight: 600;
  border: 1px solid rgba(212, 160, 23, 0.45);
}
.site-nav .nav-civilian:hover {
  background: rgba(212, 160, 23, 0.18);
  border-color: var(--color-accent);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--color-accent);
  background: rgba(255,255,255,0.08);
}

.header-cta {
  flex-shrink: 0;
}

.header-cta a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-accent);
  color: var(--color-primary) !important;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: var(--transition);
  white-space: nowrap;
}

.header-cta a:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.nav-toggle {
  display: none;
  color: var(--color-white);
  font-size: 1.4rem;
  padding: 0.3rem;
}

/* ─── Hero Section ──────────────────────────────────────────── */
.site-hero {
  background: var(--hero-gradient, linear-gradient(135deg, #0a1628 0%, #1a2e4a 60%, #0a1e38 100%));
  color: var(--color-white);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.site-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.site-hero .container { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  margin-bottom: 1.25rem;
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-white);
  margin-bottom: 1.25rem;
  max-width: 780px;
}

.hero-subhead {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,0.8);
  max-width: 640px;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-callouts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.hero-callout {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.9);
}

.hero-callout__icon {
  color: var(--color-accent);
  font-size: 1rem;
}

/* ─── Stats Bar ─────────────────────────────────────────────── */
.stats-bar {
  background: var(--color-accent);
  padding: 1.5rem 0;
}

.stats-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}

.stat-item { padding: 0.25rem 0.5rem; }

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-primary);
  opacity: 0.85;
  margin-top: 0.3rem;
  line-height: 1.3;
}

/* ─── Section Headers ───────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
}

.section-header h2 {
  font-size: clamp(1.4rem, 3vw, 1.875rem);
  position: relative;
  padding-bottom: 0.6rem;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 3rem;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
}

.view-all-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent);
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.view-all-link:hover { border-bottom-color: var(--color-accent); }

/* ─── Article Card Grid ─────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.article-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.article-card__eyebrow {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.4rem;
}

.article-card__header {
  background: var(--color-primary);
  padding: 1.25rem 1.25rem 1rem;
  min-height: 3rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.article-card__category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--color-accent);
  color: var(--color-primary);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  flex-shrink: 0;
}

.article-card__body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.35;
  margin-bottom: 0.6rem;
  transition: var(--transition);
}

.article-card:hover .article-card__title { color: var(--color-accent); }

.article-card__excerpt {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 1rem;
}

.article-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--color-text-light);
  border-top: 1px solid var(--color-border);
  padding-top: 0.75rem;
  margin-top: auto;
}

.article-card__read-more {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: var(--transition);
}

.article-card__read-more:hover { gap: 0.6rem; }

/* ─── Breadcrumbs ───────────────────────────────────────────── */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--color-text-light);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 2rem;
}

.breadcrumbs a {
  color: var(--color-accent);
  font-weight: 500;
}

.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs__sep { opacity: 0.5; }

/* ─── Article Single Layout ─────────────────────────────────── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
  padding: 2.5rem 0 4rem;
}

.article-main {}

.article-header { margin-bottom: 2rem; }

.article-category {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--color-accent);
  color: var(--color-primary);
  padding: 0.25rem 0.7rem;
  border-radius: 3px;
  margin-bottom: 0.75rem;
}

.article-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.article-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
  font-style: italic;
}

.article-byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--color-text-light);
  padding-bottom: 1.25rem;
  border-bottom: 2px solid var(--color-border);
}

.article-byline strong { color: var(--color-text); }
.article-byline__sep { opacity: 0.4; }

/* ─── Article Cover Image ───────────────────────────────────── */
.article-cover {
  margin-bottom: 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.article-cover__img {
  width: 100%;
  height: auto;
  max-height: 440px;
  object-fit: cover;
  display: block;
}
.article-cover__caption {
  font-size: 0.75rem;
  color: var(--color-text-light);
  background: var(--color-bg-alt);
  padding: 0.4rem 0.75rem;
  border-top: 1px solid var(--color-border);
}

/* ─── Article Body Content ──────────────────────────────────── */
.article-body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
}

.article-body p,
.article-body li,
.article-body blockquote {
  font-size: 1rem;
}

.article-body h1 { display: none; }

.article-body h2 {
  font-size: 1.45rem;
  font-family: var(--font-heading);
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--color-border);
  color: var(--color-primary);
}

.article-body h3 {
  font-size: 1.15rem;
  font-family: var(--font-heading);
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: var(--color-primary);
}

.article-body h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}

.article-body p { margin-bottom: 1.25rem; }

.article-body ul, .article-body ol {
  margin: 0 0 1.25rem 1.5rem;
  list-style: disc;
}

.article-body ol { list-style: decimal; }

.article-body li {
  margin-bottom: 0.4rem;
  line-height: 1.65;
}

.article-body blockquote {
  border-left: 4px solid var(--color-accent);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--color-bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: normal;
  color: var(--color-text);
}

.article-body a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-body a:hover { opacity: 0.8; }

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.article-body th {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

.article-body td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--color-border);
}

.article-body tr:nth-child(even) td {
  background: var(--color-bg-alt);
}

/* ─── Article Disclaimer ─────────────────────────────────────── */
.article-disclaimer {
  margin-top: 2.5rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.8rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ─── Article Sidebar ───────────────────────────────────────── */
.article-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
}

.sidebar-widget {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.sidebar-widget__header {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.75rem 1.1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.sidebar-widget__body { padding: 1rem 1.1rem; }

/* TOC */
.toc-nav { font-size: 0.875rem; }

.toc-nav a {
  display: block;
  color: var(--color-text-muted);
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition);
  line-height: 1.4;
}

.toc-nav a:last-child { border-bottom: none; }
.toc-nav a:hover { color: var(--color-accent); padding-left: 0.5rem; }
.toc-nav a.toc-h3 { padding-left: 1rem; font-size: 0.82rem; }

/* Related articles */
.related-article {
  display: flex;
  gap: 0.6rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--color-border);
}

.related-article:last-child { border-bottom: none; }

.related-article__cat {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-accent);
  letter-spacing: 0.07em;
  flex-shrink: 0;
  padding-top: 0.1rem;
}

.related-article__title {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.35;
  transition: var(--transition);
}

.related-article:hover .related-article__title { color: var(--color-accent); }

/* ─── List / Archive Page ───────────────────────────────────── */
.list-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  padding: 2.5rem 0 4rem;
  align-items: start;
}

.list-header {
  padding: 2.5rem 0 0;
}

.list-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.list-header__desc {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 640px;
}

/* ─── Auxiliary Pages ───────────────────────────────────────── */
.aux-layout {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.aux-layout h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.5rem;
}

.aux-layout .aux-intro {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  border-left: 4px solid var(--color-accent);
  padding: 1rem 1.25rem;
  background: var(--color-bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0 2.5rem;
  line-height: 1.7;
}

.aux-layout h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--color-border);
}

.aux-layout h3 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; }
.aux-layout p { line-height: 1.75; margin-bottom: 1rem; }

.aux-layout ul {
  list-style: disc;
  margin: 0.5rem 0 1.25rem 1.5rem;
}

.aux-layout li { margin-bottom: 0.4rem; line-height: 1.6; }

.aux-layout a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-layout:has(.aux-layout) { grid-template-columns: 1fr; }
.article-layout:has(.aux-layout) .article-sidebar { display: none; }

/* FAQ accordion */
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  background: var(--color-bg-alt);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
}

.faq-question:hover { background: var(--color-accent-light); }

.faq-question[aria-expanded="true"] {
  background: var(--color-primary);
  color: var(--color-white);
}

.faq-icon { font-size: 1.2rem; flex-shrink: 0; transition: var(--transition); }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }

.faq-answer {
  display: none;
  padding: 1rem 1.25rem 1.25rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  border-top: 1px solid var(--color-border);
}

.faq-answer.open { display: block; }

/* ─── Site Footer ───────────────────────────────────────────── */
.site-footer {
  background: #04080f;
  color: rgba(255,255,255,0.75);
  padding: 3.5rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .site-logo {
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.65;
  max-width: 320px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  transition: var(--transition);
}

.footer-col ul li a:hover { color: var(--color-white); }

.footer-bottom {
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: var(--color-white); }

.footer-bottom__links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-disclaimer {
  background: rgba(0,0,0,0.3);
  padding: 1rem 0;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  text-align: center;
  line-height: 1.6;
}

.footer-disclaimer p { max-width: 900px; margin: 0 auto; }

/* ─── Pagination ────────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem 0;
}

.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  transition: var(--transition);
}

.pagination a:hover { border-color: var(--color-accent); color: var(--color-accent); }

.pagination .active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-primary);
  font-weight: 700;
}

/* ─── Site Intelligence Sidebar ─────────────────────────────── */
.sidebar-widget--site-intel {
  border-top: 3px solid var(--color-accent);
}

.sidebar-widget--site-intel .sidebar-widget__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.site-intel-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  background: rgba(201,162,39,0.15);
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  margin-right: auto;
}

.site-intel-section { margin-bottom: 1rem; }
.site-intel-section:last-of-type { margin-bottom: 0.25rem; }

.site-intel-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-light);
  margin-bottom: 0.4rem;
}

.site-intel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.site-intel-tag {
  font-size: 0.75rem;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
  color: var(--color-primary);
  font-weight: 500;
}

.site-intel-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.site-intel-list li {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  padding: 0.15rem 0 0.15rem 0.75rem;
  border-left: 2px solid var(--color-accent);
  line-height: 1.4;
}

.site-intel-source {
  font-size: 0.65rem;
  color: var(--color-text-light);
  margin-top: 0.75rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--color-border);
  font-style: italic;
}

/* ─── Hospital/Ship Card Grid ───────────────────────────────── */
.hospital-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.hospital-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.hospital-card--anchor {
  border-color: var(--color-accent);
  border-width: 2px;
}

.hospital-card__name {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.hospital-card__location {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
}

.hospital-card__note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.hospital-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.6rem;
}

a.hospital-card {
  transition: border-color 0.15s, box-shadow 0.15s;
  text-decoration: none;
  display: block;
}

a.hospital-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 4px 14px rgba(10,22,40,0.1);
}

/* ─── Tag Badges ────────────────────────────────────────────── */
.h-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  background: var(--color-accent-light);
  color: var(--color-primary);
}

.h-tag--carrier    { background: #0a1628; color: #c9a227; }
.h-tag--battleship { background: #1a1200; color: #f5e8c0; }
.h-tag--submarine  { background: #0a1628; color: #4a9eff; }
.h-tag--destroyer  { background: #1a2e4a; color: #c9a227; }
.h-tag--frigate    { background: #1e3a5c; color: #d0dae8; }
.h-tag--va         { background: #1a4a1a; color: #a0e0a0; }

/* ─── Hull Stats Box ────────────────────────────────────────── */
.hull-stats {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}

.hull-stat__label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-light);
  margin-bottom: 0.2rem;
}

.hull-stat__value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary);
}

/* ─── VA Claim Banner ───────────────────────────────────────── */
.va-claim-banner {
  background: #0a1628;
  color: #fff;
  border-radius: 10px;
  padding: 1.75rem 2rem;
  margin: 2rem 0;
  max-width: 780px;
}

.va-claim-banner h3 {
  color: var(--color-accent);
  font-family: Georgia, serif;
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.va-claim-banner p {
  font-size: 0.92rem;
  color: #d0dae8;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.va-claim-banner p:last-child { margin-bottom: 0; }
.va-claim-banner strong { color: #fff; }

/* ─── Posts Grid ────────────────────────────────────────────── */
.posts-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px)  { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .posts-grid { grid-template-columns: repeat(3, 1fr); } }

.post-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}

.post-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

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

.post-card__tags {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}

.post-card__tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  background: var(--color-accent-light);
  color: var(--color-primary);
}

.post-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.35;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
}

.post-card__excerpt {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 0.75rem;
}

.post-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--color-text-light);
  border-top: 1px solid var(--color-border);
  padding-top: 0.6rem;
  margin-top: auto;
}

/* ─── Site Disclaimer ───────────────────────────────────────── */
.site-disclaimer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 1.5rem 0;
  margin-top: 3rem;
}

.site-disclaimer p {
  font-size: 0.8rem;
  color: var(--color-text-light);
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto 0.5rem;
  padding: 0 1.5rem;
}

.site-disclaimer p:last-child { margin-bottom: 0; }

/* ─── Nav highlight (VA Claims) ─────────────────────────────── */
.nav-va {
  font-weight: 600 !important;
  color: var(--color-accent) !important;
}

.nav-va.active {
  background: rgba(201,162,39,0.18) !important;
  border: 1px solid var(--color-accent);
  border-radius: 6px;
}

/* ─── Responsive — 1024px ───────────────────────────────────── */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .list-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .stats-bar .container { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Header intermediate breakpoint — collapse to hamburger before nav cramps ─── */
@media (max-width: 920px) {
  .nse-header__inner { grid-template-columns: auto auto auto; justify-content: space-between; }
  .nse-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #0d2240;
    flex-direction: column;
    align-items: stretch;
    padding: .5rem 1rem 1rem;
    border-top: 1px solid rgba(212,160,23,.2);
    box-shadow: 0 8px 16px rgba(0,0,0,.5);
    z-index: 50;
  }
  .nse-header--mobile-open .nse-nav { display: flex; }
  .nse-nav__link {
    padding: .8rem .5rem;
    border-bottom: 1px solid rgba(255,255,255,.07);
    border-radius: 0;
  }
  .nse-nav__link--active::after { display: none; }
  .nse-nav__link--active { color: #d4a017; }
  .nse-nav__more { width: 100%; }
  .nse-nav__more-btn { width: 100%; justify-content: flex-start; padding: .8rem .5rem; border-bottom: 1px solid rgba(255,255,255,.07); border-radius: 0; }
  .nse-nav__more-panel { position: static; box-shadow: none; border: none; background: rgba(255,255,255,.04); margin: 0 0 .5rem; padding-left: 1rem; }
  .nse-burger { display: inline-flex; }
}

/* ─── Responsive — 768px ────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --header-height: 56px; }
  .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-bar .container { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 2.5rem 0; }
  .site-hero { padding: 3rem 0 2.5rem; }
  .hull-stats { grid-template-columns: repeat(2, 1fr); }
  /* Mobile header — hide nav + phone, show burger + sticky CTA strip below */
  .nse-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #0d2240;
    flex-direction: column;
    align-items: stretch;
    padding: .5rem 1rem 1rem;
    border-top: 1px solid rgba(212,160,23,.2);
    box-shadow: 0 8px 16px rgba(0,0,0,.5);
  }
  .nse-header--mobile-open .nse-nav { display: flex; }
  .nse-nav__link {
    padding: .8rem .5rem;
    border-bottom: 1px solid rgba(255,255,255,.07);
    border-radius: 0;
  }
  .nse-nav__link--active::after { display: none; }
  .nse-nav__link--active { color: #d4a017; }
  .nse-nav__more { width: 100%; }
  .nse-nav__more-btn { width: 100%; justify-content: flex-start; padding: .8rem .5rem; border-bottom: 1px solid rgba(255,255,255,.07); border-radius: 0; }
  .nse-nav__more-panel { position: static; box-shadow: none; border: none; background: rgba(255,255,255,.04); margin: 0 0 .5rem; padding-left: 1rem; }
  .nse-burger { display: inline-flex; }
  /* Hide the top CTA cluster — the .nse-mobile-cta strip below the header covers the call-to-action at this width. */
  .nse-cta { display: none; }
  .nse-mobile-cta { display: block; }
  /* Shrink the logo at narrow widths so it stays on one line. */
  .nse-logo__main { font-size: 1.02rem; letter-spacing: -.015em; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* Extra-narrow phones — shrink logo a touch more so .com fits with the brand */
@media (max-width: 420px) {
  .nse-logo__main { font-size: .92rem; }
}

/* ─── Utility classes ───────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

/* nav-states-btn */
.nav-states-btn {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  padding: 0.38rem 0.75rem;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.22);
  white-space: nowrap;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
  line-height: 1;
  text-decoration: none;
  display: none;
}
.nav-states-btn:hover {
  color: #c9a227;
  border-color: #c9a227;
  background: rgba(255,255,255,0.06);
}
@media (min-width: 960px) {
  .nav-states-btn { display: inline-block; }
}

/* ─── Mobile sticky CTA bar ───────────────────────────────────────── */
.mobile-cta-bar {
  display: none;
}

@media (max-width: 1024px) {
  .mobile-cta-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: #0a1628;
    border-top: 2px solid #c9a227;
    padding: 0.6rem 1rem;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.35);
  }
  .mobile-cta-bar__text {
    font-size: 0.8rem;
    color: #8da0b8;
    line-height: 1.3;
    flex: 1;
  }
  .mobile-cta-bar__text strong {
    display: block;
    color: #fff;
    font-size: 0.85rem;
  }
  .mobile-cta-bar__btn {
    flex-shrink: 0;
    background: #c9a227;
    color: #0a1628;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.55rem 1.1rem;
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
  }
  /* prevent bottom bar overlapping footer */
  body { padding-bottom: 64px; }
}

/* Faint diamond paper texture, fixed so it stays put on scroll. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80'><path d='M40 0L80 40L40 80L0 40Z' fill='none' stroke='rgba(13,34,64,0.018)' stroke-width='1'/></svg>");
  background-size: 80px 80px;
}
