/* Shared styles for the generated ASVAB section guide pages. */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream-100);
  color: var(--text-primary);
  line-height: 1.7;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  background: var(--white);
  border-bottom: 1px solid var(--cream-200);
}

.logo {
  font-size: 1.6rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--navy-900);
}

.nav-cta:hover {
  background: var(--navy-700);
}

.mobile-menu-links a.active { color: var(--gold-text); }

/* Hero */
.hero {
  background: var(--navy-900);
  padding: 4rem 5%;
  text-align: center;
}

.hero-eyebrow {
  font-family: var(--font-data);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-400);
  margin-bottom: 0.85rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  color: var(--cream-200);
  max-width: 600px;
  margin: 0 auto;
}

/* Content */
.content {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.section {
  margin-bottom: 3rem;
}

.section h2 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--navy-900);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--gold-500);
  display: inline-block;
}

.section p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.section p a {
  color: var(--navy-700);
  font-weight: 600;
}

.section ul {
  margin-left: 1.5rem;
  color: var(--text-secondary);
}

.section li {
  margin-bottom: 0.5rem;
}

/* Word Table */
.score-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  background: var(--white);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: box-shadow 0.2s ease;
}

.score-table th,
.score-table td {
  padding: 1rem 1.25rem;
  text-align: left;
}

.score-table th {
  background: var(--navy-900);
  color: var(--white);
  font-family: var(--font-data);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.score-table td {
  border-bottom: 1px solid var(--cream-200);
  font-size: 0.95rem;
  color: var(--text-primary);
}

.score-table tr:last-child td {
  border-bottom: none;
}

.score-table tr:hover td {
  background: var(--cream-100);
}

.score-table:hover {
  box-shadow: var(--shadow-2);
}

/* CTA */
.cta-section {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 3rem;
  text-align: center;
  margin-top: 2rem;
  box-shadow: var(--shadow-1);
  transition: box-shadow 0.2s ease;
}

.cta-section:hover {
  box-shadow: var(--shadow-2);
}

.cta-section h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--navy-900);
  margin-bottom: 0.5rem;
}

.cta-section p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.cta-section p a {
  color: var(--navy-700);
  font-weight: 600;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--navy-900);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: var(--r-md);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.25s ease;
}

.cta-btn:hover {
  background: var(--navy-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

.cta-btn::after {
  content: "→";
}


@media (max-width: 700px) {
  .nav-links, .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .score-table {
    font-size: 0.85rem;
  }

  .score-table th,
  .score-table td {
    padding: 0.75rem;
  }
}


/* ---- Section guide pages (generated by scripts/build-section-guides.js) ---- */
.guide-facts th { width: 55%; text-transform: none; letter-spacing: 0; font-size: 0.9rem; }
.guide-toc { background: var(--white); border-radius: var(--r-md); padding: 1rem 1.5rem; box-shadow: var(--shadow-1); margin: 1rem 0 2rem; }
.guide-toc ol { margin-left: 1.25rem; }
.guide-toc li { padding: 0.25rem 0; }
.guide-facts { margin-bottom: 1rem; }
.guide-others a { display: inline-block; padding: 0.25rem 0; }
.guide-toc a { color: var(--navy-700); font-weight: 600; }
.guide-chapter { background: var(--white); border-radius: var(--r-lg); padding: 2rem; margin-bottom: 1.5rem; box-shadow: var(--shadow-1); scroll-margin-top: 1rem; }
.guide-chapter h3 { font-family: var(--font-display); font-size: 1.6rem; text-transform: uppercase; color: var(--navy-900); margin-bottom: 0.75rem; line-height: 1.15; }
.guide-chapter-num { display: block; font-family: var(--font-data); font-size: 0.78rem; letter-spacing: 0.12em; color: var(--gold-text); }
.guide-intro { font-size: 1.05rem; color: var(--text-primary); margin-bottom: 1rem; }
.guide-concept { margin: 1.25rem 0; }
.guide-concept h4 { font-size: 1.1rem; color: var(--navy-900); margin-bottom: 0.35rem; }
.guide-concept p, .guide-example p, .guide-example li { color: var(--text-secondary); }
.guide-visual { margin: 1rem 0; overflow-x: auto; }
.guide-visual svg { max-width: 100%; height: auto; }
.guide-diagram { background: var(--cream-100); padding: 1rem; border-radius: var(--r-md); overflow-x: auto; font-size: 0.9rem; }
.guide-example { border-left: 4px solid var(--gold-500); background: var(--cream-100); padding: 1rem 1.25rem; border-radius: 0 var(--r-md) var(--r-md) 0; margin: 1.25rem 0; }
.guide-example-label { font-family: var(--font-data); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold-text); margin-bottom: 0.35rem; }
.guide-example-problem { font-weight: 600; color: var(--navy-900) !important; }
.guide-example ol { margin: 0.5rem 0 0.5rem 1.4rem; }
.guide-tip { margin-top: 0.5rem; }
.guide-summary { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--cream-200); color: var(--text-primary); }
.guide-question { background: var(--white); border-radius: var(--r-md); padding: 1.5rem; margin: 1rem 0; box-shadow: var(--shadow-1); }
.guide-q-num { font-family: var(--font-data); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 0.5rem; }
.guide-q-text p { color: var(--text-primary); margin-bottom: 0.5rem; }
.guide-options { margin: 0.5rem 0 1rem 1.75rem; color: var(--text-primary); }
.guide-options li { margin-bottom: 0.35rem; }
.guide-answer summary { cursor: pointer; font-weight: 600; color: var(--navy-700); padding: 0.7rem 0; }
.guide-answer p { color: var(--text-secondary); margin-top: 0.5rem; }
.guide-others { margin-top: 2rem; text-align: center; font-size: 0.95rem; color: var(--text-secondary); line-height: 2; }
.guide-others a { color: var(--navy-700); font-weight: 600; }
@media (max-width: 700px) {
  .guide-chapter { padding: 1.25rem; }
  .guide-question { padding: 1.1rem; }
}
