/* ============================================================
   NFMSS FORMS & DOWNLOADS PAGE STYLES - v2.2.0
   Navy hero matches the NFMSS design system; the document
   library uses the card/badge system from the original
   Custom HTML block. Layout-fix blocks are safe because this
   stylesheet only loads on pages with [nfmss_forms]. ASCII-only.
   ============================================================ */

/* ---- FLIXITA / FLIXITA PRO EXACT FIX ---- */
.flixita-page .col-lg-4.pl-lg-4,
.Flixita-page .col-lg-4.pl-lg-4,
#flixita-page .col-lg-4.pl-lg-4,
.flixita-page .sidebar,
.Flixita-page .sidebar {
  display: none !important;
}
.flixita-page .col-lg-8,
.Flixita-page .col-lg-8,
#flixita-page .col-lg-8 {
  flex: 0 0 100% !important;
  width: 100% !important;
  max-width: 100% !important;
}
.flixita-page .container,
.Flixita-page .container,
#flixita-page .container {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.flixita-page.st-py-default,
.Flixita-page.st-py-default,
#flixita-page.st-py-default {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.flixita-page .row,
.Flixita-page .row,
#flixita-page .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
  --bs-gutter-x: 0;
}

/* ---- GENERIC PAGE LAYOUT RESCUE ---- */
#content #secondary,
.site-content #secondary,
#content #sidebar,
.site-content #sidebar,
#content #right-sidebar,
.site-content #right-sidebar,
#content aside.widget-area,
.site-content aside.widget-area,
#content aside.sidebar,
.site-content aside.sidebar,
#content main ~ aside,
.site-content main ~ aside {
  display: none !important;
}
#primary,
#main,
.content-area,
.site-main,
article.page,
.entry-content {
  width: 100% !important;
  max-width: 100% !important;
  flex: 1 1 100% !important;
  float: none !important;
}
html, body {
  overflow-x: hidden !important;
  overflow-x: clip !important;
  max-width: 100% !important;
}

/* ---- BASE + FULL-BLEED BREAKOUT ---- */
.nffm {
  font-family: 'Barlow', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1c2430;
  line-height: 1.6;
  font-size: 17px;
  background: #f7f6f2;
  margin: 0;
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow-x: hidden;
  overflow-x: clip;
}
.nffm *, .nffm *::before, .nffm *::after { box-sizing: border-box; }
.nffm img { max-width: 100%; height: auto; display: block; }
.nffm h1, .nffm h2, .nffm h3 { margin: 0; line-height: 1.05; }
.nffm a:focus-visible, .nffm button:focus-visible {
  outline: 3px solid #c8102e;
  outline-offset: 3px;
}

/* ---- HERO ---- */
.nffm .fm-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #06182f 0%, #0e3a66 55%, #124a82 100%);
  color: #fff;
  padding: 72px 0 64px;
}
.nffm .fm-hero .wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.nffm .fm-hero-inner { display: grid; gap: 40px; align-items: center; }
.nffm .fm-eyebrow {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #e81c34;
  border-bottom: 2px solid #e81c34;
  padding-bottom: 6px;
  margin-bottom: 18px;
}
.nffm .fm-headline {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .01em;
  font-size: clamp(42px, 6vw, 66px);
  color: #fff;
  margin-bottom: 16px;
}
.nffm .fm-headline em { font-style: italic; color: #e81c34; }
.nffm .fm-hero-body {
  font-size: 18px;
  max-width: 640px;
  color: rgba(255,255,255,.88);
  margin: 0 0 24px;
}
.nffm .fm-hero-badge { max-width: 220px; margin: 0 auto; }
.nffm .fm-jump { display: flex; flex-wrap: wrap; gap: 10px; }
.nffm .fm-jump a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 999px;
  padding: 7px 16px;
  transition: background .15s ease, border-color .15s ease;
}
.nffm .fm-jump a:hover { background: #e81c34; border-color: #e81c34; color: #fff; }
@media (min-width: 900px) {
  .nffm .fm-hero-inner { grid-template-columns: 1.4fr .6fr; gap: 64px; }
  .nffm .fm-hero-badge { margin: 0 0 0 auto; }
}
@media (max-width: 640px) {
  .nffm .fm-hero { padding: 52px 0 46px; }
  .nffm .fm-hero-badge { display: none; }
}

/* ---- DOCUMENT LIBRARY (card system) ---- */
.nffm .nf-wrap { max-width: 900px; margin: 0 auto; padding: 48px 16px 40px; overflow-x: hidden; width: 100%; }
.nffm .nf-key { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; padding: 16px 20px; background: #fff; border: 1px solid #e2dfd8; border-radius: 12px; }
.nffm .nf-key-item { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: #0e3a66; }
.nffm .nf-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.nffm .nf-dot-free { background: #c8102e; }
.nffm .nf-dot-member { background: #0e3a66; }
.nffm .nf-dot-locked { background: #9ca3af; }
.nffm .nf-section { margin-bottom: 32px; scroll-margin-top: 120px; }
.nffm .nf-section-head { padding-bottom: 10px; border-bottom: 2px solid #0e3a66; margin-bottom: 14px; }
.nffm .nf-section-title { font-size: 18px; font-weight: 800; color: #0e3a66; letter-spacing: .01em; }
.nffm .nf-section-sub { font-size: 12px; color: #6b7280; margin-top: 2px; }
.nffm .nf-card { background: #fff; border: 1px solid #e2dfd8; border-radius: 10px; padding: 16px 18px; margin-bottom: 8px; display: flex; align-items: center; gap: 14px; transition: box-shadow .15s; min-width: 0; width: 100%; }
.nffm .nf-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.07); }
.nffm .nf-card.nf-member { border-color: rgba(14,58,102,.25); background: #f4f7fb; }
.nffm .nf-card.nf-locked { background: #fafafa; opacity: .8; }
.nffm .nf-pdf { width: 34px; height: 42px; border-radius: 4px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 8px; font-weight: 700; letter-spacing: .06em; color: #fff; }
.nffm .nf-pdf-navy { background: #0e3a66; }
.nffm .nf-pdf-gold { background: #124a82; }
.nffm .nf-pdf-gray { background: #d1d5db; color: #6b7280; }
.nffm .nf-info { flex: 1; min-width: 0; overflow: hidden; }
.nffm .nf-name { font-size: 14px; font-weight: 600; color: #0e3a66; margin-bottom: 3px; line-height: 1.3; word-wrap: break-word; }
.nffm .nf-meta { font-size: 12px; color: #6b7280; line-height: 1.5; word-wrap: break-word; }
.nffm .nf-badge { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 2px 7px; border-radius: 8px; margin-left: 5px; vertical-align: middle; white-space: nowrap; }
.nffm .nf-badge-free { background: #fde8ec; color: #c8102e; }
.nffm .nf-badge-member { background: #eaf0f7; color: #0e3a66; border: 1px solid rgba(14,58,102,.3); }
.nffm .nf-badge-locked { background: #f3f4f6; color: #9ca3af; }
.nffm .nf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 8px 14px; border-radius: 8px; text-decoration: none; border: none; cursor: pointer; white-space: nowrap; transition: all .15s; font-family: 'Barlow', sans-serif; flex-shrink: 0; }
.nffm .nf-btn-free { background: #c8102e; color: #fff; }
.nffm .nf-btn-free:hover { background: #9e0c24; color: #fff; }
.nffm .nf-btn-member { background: #0e3a66; color: #fff; }
.nffm .nf-btn-member:hover { background: #124a82; color: #fff; }
.nffm .nf-btn-locked { background: #f3f4f6; color: #9ca3af; cursor: not-allowed; border: 1px solid #e2dfd8; }
.nffm .nf-cta { background: #0e3a66; border-radius: 12px; padding: 24px 28px; margin: 32px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.nffm .nf-cta h3 { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 4px; font-family: 'Barlow', sans-serif; }
.nffm .nf-cta p { font-size: 13px; color: rgba(255,255,255,.6); line-height: 1.5; max-width: 460px; margin: 0; }
.nffm .nf-cta-btn { display: inline-block; background: #c8102e; color: #fff; font-size: 13px; font-weight: 700; padding: 11px 22px; border-radius: 8px; text-decoration: none; white-space: nowrap; font-family: 'Barlow', sans-serif; }
.nffm .nf-cta-btn:hover { background: #9e0c24; color: #fff; }
.nffm .nf-footer-note { margin-top: 32px; padding-top: 20px; border-top: 1px solid #e2dfd8; font-size: 12px; color: #9ca3af; line-height: 1.7; }
.nffm .nf-footer-note strong { color: #0e3a66; }
.nffm .nf-footer-note a { color: #0e3a66; }
.nffm .nf-group-label { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #0e3a66; margin: 18px 0 8px; padding-left: 2px; }
.nffm .nf-card-dark { border: 1px solid rgba(232,28,52,.55) !important; background: linear-gradient(135deg, #0B1F4B 0%, #1a3a70 100%) !important; padding: 20px 18px; }
.nffm .nf-card-dark .nf-name { color: #fff; font-size: 14px; }
.nffm .nf-card-dark .nf-meta { color: rgba(255,255,255,.7); }
.nffm .nf-section-header-green { background: linear-gradient(135deg, #06182f 0%, #0e3a66 100%); border-left: 4px solid #c8102e; border-radius: 8px; padding: 12px 16px; margin-bottom: 14px; }
.nffm .nf-section-header-dark { background: linear-gradient(135deg, #06182f 0%, #0e3a66 100%); border-left: 4px solid #c8102e; border-radius: 8px; padding: 12px 16px; margin-bottom: 14px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 640px) {
  .nffm .nf-wrap { padding: 32px 12px 32px; }
  .nffm .nf-card { flex-wrap: wrap; gap: 10px; }
  .nffm .nf-btn { width: 100%; justify-content: center; margin-top: 4px; }
  .nffm .nf-cta { flex-direction: column; }
  .nffm .nf-cta-btn { width: 100%; text-align: center; box-sizing: border-box; }
  .nffm .nf-key { flex-direction: column; gap: 10px; }
  .nffm .nf-pdf { flex-shrink: 0; }
  .nffm .nf-card-dual-btn { flex-direction: column; gap: 6px; }
}

html { scroll-behavior: smooth; }
