/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', -apple-system, sans-serif; color: #1a1a2e; background: #fff; line-height: 1.6; }

/* ===== COLORS ===== */
:root {
  --af-blue: #1a3a6b;
  --af-blue-dark: #0f2347;
  --af-blue-light: #2a5298;
  --silver: #8a9bb0;
  --silver-light: #c8d4e0;
  --silver-pale: #f0f4f8;
  --accent: #4a9eff;
  --accent-gold: #c9a227;
  --text: #1a1a2e;
  --text-muted: #5a6a7e;
  --white: #ffffff;
  --border: #dce6f0;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10, 22, 50, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(74, 158, 255, 0.15);
  transition: all 0.3s;
}
.navbar.scrolled { background: rgba(10, 22, 50, 0.99); box-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; gap: 0.5rem; height: 64px;
}
.nav-logo { display: flex; flex-direction: column; align-items: flex-start; gap: 0; line-height: 1; text-decoration: none; margin-right: 2rem; }
.logo-kthq {
  font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 1.45rem;
  color: var(--accent); letter-spacing: 2px;
}
.logo-full { color: var(--silver-light); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.5px; opacity: 0.75; margin-top: 1px; }
.nav-links { display: flex; list-style: none; gap: 0.25rem; flex: 1; }
.nav-links a {
  color: var(--silver-light); text-decoration: none; font-size: 0.9rem; font-weight: 500;
  padding: 0.5rem 0.85rem; border-radius: 6px; transition: all 0.2s;
}
.nav-links a:hover { color: var(--white); background: rgba(74, 158, 255, 0.12); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--silver-light); border-radius: 2px; transition: all 0.3s; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh; position: relative; display: flex; flex-direction: column;
  justify-content: center; align-items: center; text-align: center;
  padding: 120px 1.5rem 80px; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(135deg, #040d1f 0%, #0a1e42 35%, #1a3a6b 65%, #0f2347 100%);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(42, 82, 152, 0.4) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 20%, rgba(74, 158, 255, 0.15) 0%, transparent 50%);
}
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero-badge {
  display: inline-block; background: rgba(74, 158, 255, 0.15); border: 1px solid rgba(74, 158, 255, 0.3);
  color: var(--accent); font-family: 'Rajdhani', sans-serif; font-size: 0.85rem; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase; padding: 0.4rem 1.2rem; border-radius: 100px;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-family: 'Rajdhani', sans-serif; font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700; color: var(--white); line-height: 1.1; margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
}
.hero-sub { font-size: clamp(1rem, 2vw, 1.2rem); color: var(--silver-light); margin-bottom: 2.5rem; max-width: 540px; margin-left: auto; margin-right: auto; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 0; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem; border-radius: 8px; font-weight: 600; font-size: 0.95rem;
  text-decoration: none; transition: all 0.2s; cursor: pointer; border: none;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: #3a8eef; transform: translateY(-1px); box-shadow: 0 4px 20px rgba(74, 158, 255, 0.35); }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.35); }
.btn-outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.6); }
.hero-stats {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: wrap; margin-top: 4rem;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px; padding: 1.25rem 2rem; backdrop-filter: blur(8px);
  max-width: 700px; width: 100%;
}
.stat { text-align: center; padding: 0.5rem 1.5rem; }
.stat-num { display: block; font-family: 'Rajdhani', sans-serif; font-size: 1.6rem; font-weight: 700; color: var(--accent); }
.stat-label { font-size: 0.75rem; color: var(--silver-light); text-transform: uppercase; letter-spacing: 1px; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.15); }

/* ===== SECTIONS ===== */
.section { padding: 80px 1.5rem; }
.section-alt { background: var(--silver-pale); }
.container { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-tag {
  display: inline-block; background: rgba(26, 58, 107, 0.1); color: var(--af-blue);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  padding: 0.3rem 1rem; border-radius: 100px; margin-bottom: 0.75rem;
  border: 1px solid rgba(26, 58, 107, 0.2);
}
.section-header h2 {
  font-family: 'Rajdhani', sans-serif; font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700; color: var(--af-blue-dark); margin-bottom: 0.75rem;
}
.section-desc { color: var(--text-muted); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* ===== WEe�OME CARDS ===== */
.welcome-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin-bottom: 2.5rem; }
.welcome-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  padding: 1.75rem; transition: all 0.2s;
}
.welcome-card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(26, 58, 107, 0.1); border-color: var(--af-blue-light); }
.wc-icon { font-size: 2rem; margin-bottom: 1rem; }
.welcome-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--af-blue-dark); margin-bottom: 0.5rem; }
.welcome-card p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.65; }
.disclaimer {
  background: rgba(26, 58, 107, 0.04); border: 1px solid var(--border);
  border-left: 3px solid var(--silver); border-radius: 8px; padding: 1rem 1.25rem;
}
.disclaimer p { font-size: 0.82rem; color: var(--text-muted); }

/* ===== VIDEO GRID ===== */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.video-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; transition: all 0.2s;
}
.video-card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(26, 58, 107, 0.12); }
.video-thumb {
  aspect-ratio: 16/9; background: linear-gradient(135deg, var(--af-blue) 0%, var(--af-blue-light) 100%);
  display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
}
.video-thumb iframe { width: 100%; height: 100%; border: none; }
.video-thumb-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.75rem; color: var(--white); width: 100%; height: 100%;
}
.play-icon { font-size: 3rem; opacity: 0.7; }
.coming-soon-badge {
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3);
  color: var(--white); font-size: 0.7rem; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 0.25rem 0.75rem; border-radius: 100px;
}
.video-info { padding: 1.25rem; }
.video-category { font-size: 0.72rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 0.4rem; }
.video-info h3 { font-size: 1rem; font-weight: 700; color: var(--af-blue-dark); margin-bottom: 0.4rem; }
.video-info p { font-size: 0.875rem; color: var(--text-muted); }

/* ===== GAO ===== */
.gao-current { margin-bottom: 3rem; }
.gao-week-header {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 2px solid var(--af-blue);
}
.gao-week-label { font-family: 'Rajdhani', sans-serif; font-size: 1.4rem; font-weight: 700; color: var(--af-blue-dark); }
.gao-week-date { font-size: 0.85rem; color: var(--text-muted); background: var(--silver-pale); padding: 0.3rem 0.8rem; border-radius: 6px; }
.gao-cards { display: grid; gap: 1rem; }
.gao-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  padding: 1.5rem; border-left: 4px solid var(--af-blue-light);
}
.gao-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.gao-case { font-weight: 700; color: var(--af-blue-dark); font-size: 0.95rem; }
.gao-outcome {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  padding: 0.25rem 0.75rem; border-radius: 100px; white-space: nowrap;
}
.outcome-sustained { background: #fef3c7; color: #92400e; }
.outcome-denied { background: #fee2e2; color: #991b1b; }
.outcome-dismissed { background: #f3f4f6; color: #374151; }
.outcome-procedural { background: #e0e7ff; color: #3730a3; }
.gao-case-meta { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.2rem; display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.gao-case-link { color: var(--accent); text-decoration: none; font-weight: 600; font-size: 0.78rem; transition: opacity 0.2s; }
.gao-case-link:hover { opacity: 0.75; text-decoration: underline; }
.gao-bottom-line { background: rgba(15, 35, 71, 0.05); border-radius: 8px; padding: 0.85rem 1rem; border-left: 3px solid var(--af-blue); margin-bottom: 1rem; }
.gao-bl-label { font-size: 0.72rem; font-weight: 700; color: var(--af-blue); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 0.35rem; }
.gao-bottom-line p { font-size: 0.875rem; color: var(--af-blue-dark); font-style: italic; line-height: 1.7; }
.gao-summary { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; line-height: 1.65; }
.gao-takeaway {
  background: rgba(26, 58, 107, 0.05); border-radius: 8px; padding: 0.85rem 1rem;
  border-left: 3px solid var(--accent-gold);
}
.gao-takeaway-label { font-size: 0.72rem; font-weight: 700; color: var(--accent-gold); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 0.25rem; }
.gao-takeaway p { font-size: 0.875rem; color: var(--text); }
.archive-title { font-family: 'Rajdhani', sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--af-blue-dark); margin-bottom: 1rem; }
.archive-item { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 0.75rem; overflow: hidden; }
.archive-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; background: var(--white); cursor: pointer; border: none;
  font-family: inherit; font-size: 0.95rem; font-weight: 600; color: var(--af-blue-dark);
  transition: background 0.2s; text-align: left;
}
.archive-toggle:hover { background: var(--silver-pale); }
.archive-toggle .chevron { transition: transform 0.3s; color: var(--silver); font-size: 0.8rem; }
.archive-toggle.open .chevron { transform: rotate(180deg); }
.archive-body { display: none; padding: 1.25rem; border-top: 1px solid var(--border); background: var(--silver-pale); }
.archive-body.open { display: block; }
.archive-body .gao-card { background: var(--white); }

/* ===== TOOLS ===== */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.tool-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  padding: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; transition: all 0.2s;
}
.tool-card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(26, 58, 107, 0.1); border-color: var(--af-blue-light); }
.tool-icon { font-size: 2rem; }
.tool-card h3 { font-size: 1rem; font-weight: 700; color: var(--af-blue-dark); }
.tool-card p { font-size: 0.875rem; color: var(--text-muted); flex: 1; line-height: 1.6; }
.tool-link {
  display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; font-weight: 600;
  color: var(--accent); text-decoration: none; transition: gap 0.2s;
}
.tool-link:hover { gap: 0.65rem; }
.tool-link.coming { color: var(--silver); cursor: default; }

/* ===== FAR ===== */
.far-list { display: grid; gap: 1rem; }
.far-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden;
}
.far-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 1.5rem; cursor: pointer; transition: background 0.2s; flex-wrap: wrap;
}
.far-header:hover { background: var(--silver-pale); }
.far-header-left { flex: 1; }
.far-date { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.far-title { font-size: 1rem; font-weight: 700; color: var(--af-blue-dark); }
.far-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.far-badge {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  padding: 0.2rem 0.65rem; border-radius: 100px;
}
.badge-final { background: #dcfce7; color: #166534; }
.badge-proposed { background: #fef9c3; color: #713f12; }
.badge-interim { background: #dbeafe; color: #1e40af; }
.far-body { display: none; padding: 0 1.5rem 1.25rem; border-top: 1px solid var(--border); }
.far-body.open { display: block; }
.far-body p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 1rem; margin-top: 1rem; }
.far-practitioner {
  background: rgba(26, 58, 107, 0.05); border-radius: 8px; padding: 0.85rem 1rem;
  border-left: 3px solid var(--af-blue-light);
}
.far-practitioner-label { font-size: 0.72rem; font-weight: 700; color: var(--af-blue); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 0.25rem; }
.far-practitioner p { font-size: 0.875rem; color: var(--text); margin: 0; }

/* ===== FOOTER ===== */
.footer { background: var(--af-blue-dark); padding: 3rem 1.5rem 2rem; color: var(--silver-light); }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.footer-tagline { font-size: 0.9rem; color: var(--silver); }
.footer-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.footer-nav a { color: var(--silver); text-decoration: none; font-size: 0.875rem; transition: color 0.2s; }
.footer-nav a:hover { color: var(--white); }
.footer-disclaimer { font-size: 0.78rem; color: rgba(138, 155, 176, 0.7); max-width: 600px; }
.footer-copy { font-size: 0.78rem; color: rgba(138, 155, 176, 0.5); }

/* ===== MORE DROPDOWN NAV ===== */
.nav-more { position: relative; }
.nav-more-toggle { cursor: pointer; user-select: none; }
.nav-more-menu {
  display: none; position: absolute; top: calc(100% + 4px); right: 0;
  background: rgba(10, 22, 50, 0.98); border: 1px solid rgba(74,158,255,0.2);
  border-radius: 8px; min-width: 180px; padding: 0.4rem 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4); list-style: none; z-index: 1100;
}
.nav-more:hover .nav-more-menu,
.nav-more.open .nav-more-menu { display: block; }
.nav-more-menu li { padding: 0 0.25rem; }
.nav-more-menu a { display: block; padding: 0.5rem 1rem; color: var(--silver-light); font-size: 0.9rem; font-weight: 500; text-decoration: none; border-radius: 6px; transition: all 0.2s; }
.nav-more-menu a:hover { color: var(--white); background: rgba(74,158,255,0.12); }

/* ===== RESPONSIVE ===== */
/* Prevent horizontal scroll on all screens */
html, body { overflow-x: hidden; }

@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: rgba(10, 22, 50, 0.98); flex-direction: column; padding: 1rem; gap: 0.25rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-more:hover .nav-more-menu { display: none; }
  .nav-more.open .nav-more-menu { display: block; position: static; box-shadow: none; border: none; border-left: 2px solid rgba(74,158,255,0.3); margin-left: 0.75rem; margin-top: 0.25rem; background: transparent; padding: 0; min-width: 0; }
  .nav-more-menu a { padding: 0.45rem 0.75rem; }
  .logo-full { display: none; }
  .nav-logo { margin-right: 0; }
  .hero-stats { flex-direction: column; gap: 0.5rem; }
  .stat-divider { display: none; }
  .stat { padding: 0.25rem 1rem; }
  .welcome-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
  .gao-card, .fr-card { padding: 1rem; }
  .dfars-row { flex-direction: column; gap: 0.4rem; }
  .dfars-date { min-width: auto; }
}

@media (max-width: 480px) {
  .bmc-btn { font-size: 0 !important; padding: 0.35rem 0.6rem !important; }
  .bmc-btn::before { content: '\2615'; font-size: 1rem; }
  .announce-item { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .announce-date { min-width: auto; }
  .resource-links-grid { grid-template-columns: 1fr; }
}


/* ===== GAO ARCHIVE PAGE ===== */
.gao-archive-link {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.archive-page-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: opacity 0.2s;
}
.archive-page-link:hover {
  opacity: 0.75;
  text-decoration: underline;
}
.archive-week-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--af-blue);
}
.archive-item-current .archive-week-header {
  border-bottom-color: var(--accent);
}
#archiveAllDecisions .archive-item {
  border: none;
  border-radius: 0;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
  padding-bottom: 3rem;
  margin-bottom: 3rem;
}
#archiveAllDecisions .archive-item:last-child {
  border-bottom: none;
}


/* ===== FEDERAL REGISTER DIGEST ===== */
.fr-digest-header {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 2px solid var(--af-blue);
}
.fr-digest-label { font-family: 'Rajdhani', sans-serif; font-size: 1.4rem; font-weight: 700; color: var(--af-blue-dark); }
.fr-digest-date { font-size: 0.85rem; color: var(--text-muted); background: var(--silver-pale); padding: 0.3rem 0.8rem; border-radius: 6px; }
.fr-digest-intro { font-size: 0.92rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 1.5rem; }
.fr-cards { display: grid; gap: 1rem; }
.fr-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  padding: 1.5rem; border-left: 4px solid #2a7d4f;
}
.fr-card-header { margin-bottom: 0.75rem; }
.fr-title { font-weight: 700; color: var(--af-blue-dark); font-size: 0.95rem; margin-bottom: 0.3rem; }
.fr-meta { font-size: 0.8rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.fr-type-badge {
  font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  padding: 0.2rem 0.6rem; border-radius: 100px; white-space: nowrap;
}
.fr-type-final-rule { background: #d1fae5; color: #065f46; }
.fr-type-proposed-rule { background: #fef3c7; color: #92400e; }
.fr-type-notice { background: #e0e7ff; color: #3730a3; }
.fr-link { color: var(--accent); text-decoration: none; font-weight: 600; font-size: 0.78rem; transition: opacity 0.2s; }
.fr-link:hover { opacity: 0.75; text-decoration: underline; }
.fr-summary { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; line-height: 1.65; }
.fr-impact {
  background: rgba(42, 125, 79, 0.06); border-radius: 8px; padding: 0.85rem 1rem;
  border-left: 3px solid #2a7d4f;
}
.fr-impact-label { font-size: 0.72rem; font-weight: 700; color: #2a7d4f; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 0.25rem; }
.fr-impact p { font-size: 0.875rem; color: var(--text); line-height: 1.6; }
.fr-empty { font-size: 0.95rem; color: var(--text-muted); font-style: italic; padding: 1.5rem 0; }
.fr-archive-link {
  text-align: center; margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.fr-live-section { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.fr-live-section h3 {
  font-family: 'Rajdhani', sans-serif; font-size: 1.2rem; font-weight: 700;
  color: var(--af-blue-dark); margin-bottom: 1rem;
}
#frArchiveAll .archive-item {
  border: none; border-radius: 0; margin-bottom: 0;
  border-bottom: 1px solid var(--border); padding-bottom: 3rem; margin-bottom: 3rem;
}
#frArchiveAll .archive-item:last-child { border-bottom: none; }

/* ===== ASBCA PAGE ===== */
.asbca-intro {
  background: var(--silver-pale);
  border-left: 4px solid var(--af-blue);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.asbca-intro a {
  color: var(--accent);
  text-decoration: none;
}
.asbca-intro a:hover { text-decoration: underline; }

.asbca-type-tag {
  display: inline-block;
  background: var(--silver-pale);
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-left: 0.5rem;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.outcome-procedural {
  background: rgba(201, 162, 39, 0.12);
  color: #b8870a;
  border: 1px solid rgba(201, 162, 39, 0.3);
}


/* ===== HERO NAV BUTTONS ===== */
.hero-nav-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 2.5rem;
  position: relative;
  z-index: 1;
}
.hero-nav-btn {
  display: inline-block;
  padding: 0.55rem 1.25rem;
  border: 1px solid rgba(74, 169, 255, 0.35);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.hero-nav-btn:hover {
  background: rgba(74, 169, 255, 0.18);
  border-color: rgba(74, 169, 255, 0.7);
  color: #fff;
}


/* ===== RESOURCE LINKS ===== */
.resource-group { margin-bottom: 0; }
.resource-group-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.resource-access-badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.resource-access-badge.resource-cac {
  background: rgba(20, 70, 160, 0.1);
  color: #1a4aa0;
  border: 1px solid rgba(20, 70, 160, 0.25);
}
.resource-access-badge.resource-open {
  background: rgba(22, 130, 80, 0.1);
  color: #166534;
  border: 1px solid rgba(22, 130, 80, 0.25);
}
.resource-group-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}
.resource-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.resource-card {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.resource-card:hover {
  box-shadow: 0 4px 16px rgba(20, 70, 160, 0.08);
  border-color: var(--af-blue);
}
.resource-card-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.resource-card-body { flex: 1; min-width: 0; }
.resource-card-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.resource-card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.resource-card-badge {
  flex-shrink: 0;
  align-self: flex-start;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 0.15rem;
}
.resource-card-badge.resource-cac {
  background: rgba(20, 70, 160, 0.08);
  color: #1a4aa0;
}
.resource-card-badge.resource-open {
  background: rgba(22, 130, 80, 0.08);
  color: #166534;
}


/* ===== DFARS / FEDERAL REGISTER FEED ===== */
.dfars-feed { display: grid; gap: 0; }

.dfars-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.dfars-row:last-child { border-bottom: none; }

.dfars-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 6rem;
  padding-top: 0.1rem;
  font-variant-numeric: tabular-nums;
}

.dfars-type {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 0.05rem;
}
.dfars-type-final   { background: #dcfce7; color: #166534; }
.dfars-type-proposed{ background: #fef9c3; color: #713f12; }
.dfars-type-interim { background: #ffedd5; color: #9a3412; }
.dfars-type-notice  { background: #f3f4f6; color: #374151; }

.dfars-body { flex: 1; min-width: 0; }

.dfars-title-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  line-height: 1.4;
  display: block;
}
.dfars-title-link:hover { text-decoration: underline; opacity: 0.85; }

.dfars-case {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.dfars-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.dfars-meta-bar span { font-size: 0.82rem; color: var(--text-muted); }
.dfars-meta-bar a { font-size: 0.82rem; color: var(--accent); text-decoration: none; font-weight: 600; }
.dfars-meta-bar a:hover { text-decoration: underline; }

.dfars-loading {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.dfars-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
}
.dfars-empty {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}


/* ===== ACTIVE NAV STATE ===== */
.nav-links a.active {
  color: var(--white);
  background: rgba(74, 158, 255, 0.15);
}

/* ===== PAGE HERO (subpages) ===== */
.page-hero {
  background: linear-gradient(135deg, #040d1f 0%, #0a1e42 55%, #1a3a6b 100%);
  padding: 7.5rem 1.5rem 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(42, 82, 152, 0.3) 0%, transparent 60%),
              radial-gradient(ellipse at 75% 20%, rgba(74, 158, 255, 0.1) 0%, transparent 50%);
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 0.75rem;
  letter-spacing: -0.25px;
}
.page-hero-sub {
  font-size: 1.05rem;
  color: var(--silver-light);
  max-width: 520px;
  margin: 0 auto;
}


/* ===== CO TOOLKIT PAGE ===== */

/* Search / filter controls */
.toolkit-controls {
  max-width: 640px;
  margin: 2.5rem auto 0;
}
.toolkit-search-wrap {
  position: relative;
}
.toolkit-search {
  width: 100%;
  padding: 0.75rem 2.75rem 0.75rem 1.1rem;
  background: rgba(10,30,66,0.7);
  border: 1px solid rgba(74,158,255,0.25);
  border-radius: 8px;
  color: var(--white);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}
.toolkit-search:focus { border-color: var(--accent); }
.toolkit-search::placeholder { color: var(--text-muted); }
.toolkit-search-clear {
  position: absolute;
  right: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}
.toolkit-search-clear:hover { color: var(--white); }

/* Tier pill nav */
.tier-nav-pills {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}
.tier-pill {
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--silver-light);
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
}
.tier-pill:hover,
.tier-pill.active { color: var(--white); }
.tier-pill--beginner:hover,
.tier-pill--beginner.active { background: rgba(34,197,94,0.15); border-color: rgba(34,197,94,0.4); color: #4ade80; }
.tier-pill--intermediate:hover,
.tier-pill--intermediate.active { background: rgba(234,179,8,0.15); border-color: rgba(234,179,8,0.4); color: #facc15; }
.tier-pill--advanced:hover,
.tier-pill--advanced.active { background: rgba(239,68,68,0.15); border-color: rgba(239,68,68,0.4); color: #f87171; }

/* Tier sections */
.tier-section {
  padding: 3.5rem 1.5rem;
}
.tier-section--beginner { background: #07121f; }
.tier-section--intermediate { background: #060f1a; }
.tier-section--advanced { background: #07121f; }

.tier-header {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  margin-bottom: 0.75rem;
}
.tier-header-left { flex: 1; }
.tier-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.2rem;
}
.tier-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 0.3rem;
}
.tier-label {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.tier-label--beginner  { background: rgba(34,197,94,0.15);  color: #4ade80;  border: 1px solid rgba(34,197,94,0.35); }
.tier-label--intermediate { background: rgba(234,179,8,0.15); color: #facc15; border: 1px solid rgba(234,179,8,0.35); }
.tier-label--advanced  { background: rgba(239,68,68,0.15);  color: #f87171;  border: 1px solid rgba(239,68,68,0.35); }

.tier-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 560px;
  margin-bottom: 0.75rem;
}
.tier-stat {
  font-size: 0.82rem;
  color: var(--silver-light);
  opacity: 0.7;
}
.tier-count {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
}
.tier-count-label { font-size: 0.75rem; color: var(--text-muted); margin-left: 0.3rem; }

/* Tool card grid */
.tools-tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.tool-card {
  background: rgba(10,22,50,0.7);
  border: 1px solid rgba(74,158,255,0.12);
  border-radius: 10px;
  padding: 1.3rem 1.25rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
}
.tool-card:hover {
  border-color: rgba(74,158,255,0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.3);
}
.tool-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.tool-card-icon { font-size: 1.4rem; line-height: 1; }
.tool-card-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
}
.tool-card-badge--beginner    { background: rgba(34,197,94,0.15);  color: #4ade80;  border: 1px solid rgba(34,197,94,0.3); }
.tool-card-badge--intermediate{ background: rgba(234,179,8,0.15);  color: #facc15;  border: 1px solid rgba(234,179,8,0.3); }
.tool-card-badge--advanced    { background: rgba(239,68,68,0.15);   color: #f87171;  border: 1px solid rgba(239,68,68,0.3); }

.tool-card-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}
.tool-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}
.tool-card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.tool-card-link:hover { color: var(--white); }
.tool-card-arrow { font-size: 1rem; transition: transform 0.15s; }
.tool-card:hover .tool-card-arrow { transform: translateX(3px); }

/* No results state */
.no-results { display: none; text-align: center; padding: 4rem 1rem; }
.no-results.visible { display: block; }
.no-results-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.no-results-inner { color: var(--text-muted); font-size: 1rem; }

/* FAR Overhaul banner */
.far-overhaul-banner {
  background: linear-gradient(135deg, rgba(180,30,20,0.15) 0%, rgba(120,40,10,0.12) 100%);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0 0.5rem;
}
.far-overhaul-banner-inner {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.far-overhaul-left { flex: 1; min-width: 240px; }
.far-overhaul-badge {
  display: inline-block;
  background: rgba(239,68,68,0.2);
  color: #f87171;
  border: 1px solid rgba(239,68,68,0.4);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  margin-bottom: 0.6rem;
}
.far-overhaul-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.far-overhaul-desc {
  font-size: 0.88rem;
  color: var(--silver-light);
  line-height: 1.6;
}
.far-overhaul-status {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 200px;
}
.far-status-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--silver-light);
}
.far-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.far-status-active  .far-status-dot  { background: #f87171; box-shadow: 0 0 6px rgba(239,68,68,0.7); }
.far-status-upcoming .far-status-dot  { background: #facc15; }
.far-status-dot--future               { background: var(--text-muted); }
.far-overhaul-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}
.far-overhaul-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: #f87171;
  text-decoration: none;
  border: 1px solid rgba(239,68,68,0.3);
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.far-overhaul-link:hover { background: rgba(239,68,68,0.15); color: var(--white); }

/* Responsive toolkit */
@media (max-width: 768px) {
  .tier-header { flex-direction: column; gap: 0.5rem; }
  .tier-icon { font-size: 1.5rem; }
  .tools-tier-grid { grid-template-columns: 1fr 1fr; }
  .far-overhaul-banner-inner { flex-direction: column; gap: 1rem; }
}
@media (max-width: 480px) {
  .tools-tier-grid { grid-template-columns: 1fr; }
  .tier-nav-pills { gap: 0.4rem; }
  .tier-pill { font-size: 0.75rem; padding: 0.35rem 0.85rem; }
}

.toolkit-search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}
.toolkit-search { padding-left: 2.4rem; }

/* ===== TRAINING NAV — full-width dark band wrappers ===== */
.training-nav-band {
  background: #040d1f;
  padding: 1.5rem 1.5rem 2rem;
  width: 100%;
}
.training-nav-band-top {
  padding: 0.75rem 1.5rem 0.5rem;
}

/* ── Shared nav bar (used inside the band) ── */
.training-nav {
  display: flex; justify-content: space-between; align-items: stretch;
  gap: 1rem; max-width: 900px; margin: 0 auto;
  padding: 0.9rem 1.2rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(74,158,255,0.12);
  border-radius: 8px;
}
.training-nav a {
  display: flex; align-items: center; gap: 0.75rem;
  text-decoration: none; color: #8a9cbd;
  font-size: 0.85rem; font-weight: 600;
  padding: 0.55rem 1rem; border-radius: 6px;
  border: 1px solid rgba(74,158,255,0.1);
  background: rgba(74,158,255,0.04);
  transition: all 0.15s; max-width: 48%;
}
.training-nav a:hover { color: var(--accent); border-color: var(--accent); background: rgba(74,158,255,0.1); }
.training-nav .tn-text { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.training-nav .tn-label {
  font-size: 0.62rem; text-transform: uppercase;
  letter-spacing: 0.5px; color: #5a6f8f;
  line-height: 1.2;
}
.training-nav .tn-title {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  line-height: 1.3; color: #c0cfe0;
}
.training-nav a:hover .tn-title { color: #fff; }
.training-nav a:hover .tn-label { color: rgba(74,158,255,0.7); }
.training-nav .tn-prev { text-align: left; }
.training-nav .tn-next { text-align: right; margin-left: auto; }
.training-nav .tn-next .tn-text { align-items: flex-end; }
.training-nav .tn-arrow { font-size: 1.1rem; flex-shrink: 0; color: var(--accent); }
@media (max-width: 640px) {
  .training-nav { flex-direction: column; gap: 0.6rem; }
  .training-nav a { max-width: 100%; width: 100%; }
}

/* ── Top nav overrides (more compact) ── */
.training-nav-top {
  padding: 0.5rem 0.8rem;
  background: transparent; border: none; border-radius: 0;
}
.training-nav-top a {
  font-size: 0.78rem;
  padding: 0.35rem 0.7rem; border-radius: 5px;
  gap: 0.4rem;
}
.training-nav-top .tn-label { font-size: 0.58rem; }
.training-nav-top .tn-title { font-size: 0.78rem; }
.training-nav-top .tn-arrow { font-size: 0.95rem; }
@media (max-width: 640px) {
  .training-nav-top a { font-size: 0.72rem; }
}

/* ===== BOTTOM TAB BAR (cloned from top) ===== */
.tablist-bottom {
  position: static !important;
  border-top: 1px solid rgba(74,158,255,0.15);
  border-bottom: none;
  margin-top: 3rem;
  backdrop-filter: none;
}
