:root {
  --navy: #0b1f3a;
  --dark-navy: #071428;
  --red: #b91d25;
  --gold: #c9a227;
  --white: #ffffff;
  --off-white: #f5f5f5;
  --gray: #e6e6e6;
  --text: #1a1a1a;
  --muted: #4a4a4a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: Georgia, "Times New Roman", serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
}

a { color: #005ea2; text-decoration: none; }
a:hover { text-decoration: underline; }

.top-bar {
  background: var(--navy);
  color: var(--white);
  padding: 0.5rem 1rem;
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
}

.top-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.usa-text { font-weight: bold; }

.header {
  background: var(--white);
  border-bottom: 4px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--navy);
  flex-shrink: 0;
}

.logo img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}

.logo-title {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.logo-sub {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted);
  font-family: Arial, sans-serif;
}

.nav { margin-left: auto; }

.nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
}

.nav a {
  color: var(--navy);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.nav a:hover { color: var(--red); text-decoration: none; }

.mobile-menu { display: none; background: none; border: none; color: var(--navy); font-size: 1.5rem; cursor: pointer; }

.breadcrumb {
  background: var(--off-white);
  border-bottom: 1px solid var(--gray);
  padding: 0.5rem 1rem;
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
}

.breadcrumb a { color: #005ea2; }

.hero {
  background: linear-gradient(rgba(11,31,58,0.92), rgba(11,31,58,0.92)),
              linear-gradient(135deg, var(--navy), var(--dark-navy));
  color: var(--white);
  padding: 5rem 1rem;
  text-align: center;
}

.hero-inner { max-width: 900px; margin: 0 auto; }

.hero h1 {
  font-size: 2.8rem;
  margin: 0 0 1rem;
  line-height: 1.1;
}

.hero p {
  font-size: 1.25rem;
  margin: 0 0 2rem;
  color: #d0d8e2;
  font-family: Arial, sans-serif;
}

.hero .lead { font-size: 1.1rem; }

.btn, .usa-button {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: 0.85rem 1.5rem;
  border-radius: 4px;
  font-family: Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.btn:hover, .usa-button:hover { background: #8a1218; text-decoration: none; }

.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: inherit;
  margin-left: 0.5rem;
}

.btn-outline:hover { background: var(--white); color: var(--navy); }

.section {
  padding: 3rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section.alt { background: var(--off-white); }

.section h2 {
  color: var(--navy);
  font-size: 1.9rem;
  border-bottom: 3px solid var(--gold);
  padding-bottom: 0.4rem;
  margin-bottom: 1.5rem;
}

.section h3 {
  color: var(--navy);
  font-size: 1.3rem;
  margin-top: 2rem;
}

.section p, .section li {
  font-family: Arial, sans-serif;
  color: var(--text);
  font-size: 1rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--gray);
  border-top: 4px solid var(--red);
  padding: 1.5rem;
  border-radius: 2px;
}

.card h3 {
  margin-top: 0;
  color: var(--navy);
}

.card p { color: var(--muted); font-size: 0.95rem; }

.fact-bar {
  background: var(--navy);
  color: var(--white);
  padding: 2.5rem 1rem;
}

.fact-bar-inner { max-width: 1200px; margin: 0 auto; }

.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
}

.fact-grid .number {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
}

.fact-grid .label { font-family: Arial, sans-serif; font-size: 0.9rem; text-transform: uppercase; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; }
  .nav ul { display: none; }
  .mobile-menu { display: block; }
  .hero h1 { font-size: 2rem; }
}

.footer {
  background: var(--dark-navy);
  color: #ccc;
  padding: 2rem 1rem;
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
}

.footer-inner { max-width: 1200px; margin: 0 auto; }

.footer a { color: #9ecaff; }

form label {
  display: block;
  font-weight: 700;
  margin: 1rem 0 0.25rem;
  font-family: Arial, sans-serif;
}

form input, form textarea, form select {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #aaa;
  border-radius: 3px;
  font-family: Arial, sans-serif;
}

form button { margin-top: 1rem; border: none; cursor: pointer; }

.status { margin-top: 1rem; padding: 0.75rem; border-left: 4px solid var(--gold); background: var(--off-white); font-family: Arial, sans-serif; display: none; }

blockquote {
  border-left: 4px solid var(--gold);
  padding-left: 1rem;
  color: var(--muted);
  font-style: italic;
}

ul.checklist { list-style: none; padding-left: 0; }
ul.checklist li { padding-left: 1.5rem; position: relative; margin-bottom: 0.75rem; }
ul.checklist li::before { content: "\2714"; color: var(--red); position: absolute; left: 0; }

dl { font-family: Arial, sans-serif; }
dt { color: var(--navy); font-weight: 700; margin-top: 1.5rem; font-size: 1.05rem; }
dd { margin-left: 0; color: var(--text); margin-bottom: 0.75rem; }

.drop-zone {
  border: 2px dashed var(--navy);
  padding: 1.5rem;
  text-align: center;
  color: var(--muted);
  font-family: Arial, sans-serif;
  cursor: pointer;
  border-radius: 3px;
  margin-bottom: 1rem;
}
.drop-zone.drop-active { background: var(--off-white); border-color: var(--red); color: var(--navy); }

#theme-toggle {
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
  padding: 0.3rem 0.7rem;
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
  border-radius: 3px;
  cursor: pointer;
  margin-left: 0.5rem;
}
#theme-toggle:hover { background: var(--navy); color: var(--white); }

html[data-theme="dark"] { --text: #e6edf3; --muted: #9aa0a6; }
html[data-theme="dark"] body { background: #0d1117; color: #e6edf3; }
html[data-theme="dark"] a { color: #6cb3ff; }
html[data-theme="dark"] .header { background: #0d1117; border-bottom-color: var(--gold); }
html[data-theme="dark"] .logo { color: #e6edf3; }
html[data-theme="dark"] .logo-sub { color: #9aa0a6; }
html[data-theme="dark"] .nav a { color: #e6edf3; }
html[data-theme="dark"] .nav a:hover { color: var(--gold); }
html[data-theme="dark"] .mobile-menu { color: #e6edf3; }
html[data-theme="dark"] .breadcrumb { background: #161b22; border-bottom-color: #30363d; color: #9aa0a6; }
html[data-theme="dark"] .breadcrumb a { color: #6cb3ff; }
html[data-theme="dark"] .section h2 { color: #e6edf3; border-bottom-color: var(--gold); }
html[data-theme="dark"] .section h3 { color: #e6edf3; }
html[data-theme="dark"] .section.alt { background: #161b22; }
html[data-theme="dark"] .card { background: #161b22; border-color: #30363d; }
html[data-theme="dark"] .card h3 { color: #e6edf3; }
html[data-theme="dark"] .card p { color: #9aa0a6; }
html[data-theme="dark"] form input,
html[data-theme="dark"] form textarea,
html[data-theme="dark"] form select { background: #0d1117; color: #e6edf3; border-color: #555; }
html[data-theme="dark"] .status { background: #161b22; }
html[data-theme="dark"] blockquote { color: #9aa0a6; }
html[data-theme="dark"] dt { color: #c9a227; }
html[data-theme="dark"] dd { color: #e6edf3; }
html[data-theme="dark"] .drop-zone { border-color: #6cb3ff; color: #9aa0a6; }
html[data-theme="dark"] .drop-zone.drop-active { background: #1c2128; border-color: var(--red); color: #e6edf3; }
html[data-theme="dark"] #theme-toggle { border-color: #e6edf3; color: #e6edf3; }
html[data-theme="dark"] #theme-toggle:hover { background: #e6edf3; color: #0d1117; }
html[data-theme="dark"] .btn,
html[data-theme="dark"] .usa-button,
html[data-theme="dark"] .btn-outline { color: var(--white); }
html[data-theme="dark"] .btn:hover,
html[data-theme="dark"] .usa-button:hover { color: var(--white); }
html[data-theme="dark"] .btn-outline:hover { color: var(--navy); }
html[data-theme="dark"] #detail-modal { background: #161b22 !important; color: #e6edf3 !important; border-color: var(--gold) !important; }

@media (max-width: 768px) {
  #theme-toggle { margin-left: 0; margin-top: 0.5rem; }
}

@media (max-width: 480px) {
  .hero .btn, .hero .btn-outline { display: block; width: 100%; margin: 0.5rem 0; text-align: center; }
}

.small-preview { position: relative; }
.small-preview .play-overlay { opacity: 0.85; transition: 0.2s; }
.small-preview:hover .play-overlay { opacity: 1; background: rgba(0,0,0,0.55); }
