/* ══ SHARED SITE STYLES — CollegeCostTruth.com ══
   Used across all pages for visual consistency. Page-specific
   components (calculator widgets, EFC form, major cards) live
   in each page's own <style> block. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0d2240;
  --navy-mid: #1a3a5c;
  --accent: #1d6fb8;
  --accent-light: #e8f2fb;
  --green: #1a6b47;
  --green-light: #e6f5ee;
  --amber: #7a4500;
  --amber-light: #fff4e6;
  --red: #8b1a1a;
  --red-light: #fdeaea;
  --gray-50: #f8f9fb;
  --gray-100: #eef0f4;
  --gray-200: #dde1e9;
  --gray-400: #9aa3b0;
  --gray-600: #5a6472;
  --gray-800: #2c3340;
  --white: #ffffff;
  --border: #dde1e9;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,.09), 0 2px 6px rgba(0,0,0,.06);
  --font-mono: 'DM Mono', 'SF Mono', ui-monospace, Consolas, monospace;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--gray-800);
  background: var(--gray-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible {
  outline: 2.5px solid var(--accent); outline-offset: 2px;
}

/* ── HEADER ── */
header.site-header { background: var(--navy); color: white; padding: 0 1.5rem; }
.header-inner {
  max-width: 1000px; margin: 0 auto; padding: 1.1rem 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.logo { font-family: 'DM Serif Display', serif; font-size: 1.4rem; letter-spacing: -.01em; color: white; text-decoration: none; }
.logo span { color: #6ab0f5; }
.header-inner nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.header-inner nav a {
  color: rgba(255,255,255,.68); text-decoration: none; font-size: .88rem; font-weight: 500;
  padding: .3rem 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
}
.header-inner nav a:hover, .header-inner nav a.active { color: white; border-bottom-color: #6ab0f5; }

/* ── PAGE HERO (non-calculator pages) ── */
.page-hero { max-width: 800px; margin: 0 auto; padding: 2.75rem 1.5rem 2.25rem; }
.page-hero .eyebrow {
  display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #8fc2ef; margin-bottom: .75rem;
}
.page-hero h1 {
  font-family: 'DM Serif Display', serif; font-size: clamp(1.9rem, 4.2vw, 2.7rem);
  font-weight: 400; line-height: 1.18; color: white; margin-bottom: .9rem;
}
.page-hero h1 em { color: #6ab0f5; font-style: normal; }
.page-hero p.lede { font-size: 1.05rem; color: rgba(255,255,255,.72); line-height: 1.65; max-width: 620px; }

/* ── TRUST BADGES ── */
.trust-badges { display: flex; flex-wrap: wrap; gap: .5rem .75rem; margin-top: 1.4rem; }
.badge {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 100px;
  padding: .3rem .8rem; font-size: .78rem; color: rgba(255,255,255,.85);
  display: flex; align-items: center; gap: .35rem;
}
.badge svg { flex-shrink: 0; }
.badge.new { background: rgba(106,176,245,.18); border-color: rgba(106,176,245,.4); color: #cfe6fb; }

/* ── MAIN WRAP ── */
.main-wrap { max-width: 900px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.main-wrap.wide { max-width: 1080px; }

/* ── BUTTONS ── */
.btn {
  padding: .7rem 1.6rem; border-radius: var(--radius); font-size: .9rem; font-weight: 600;
  cursor: pointer; transition: all .15s; border: none; font-family: inherit; display: inline-block; text-decoration: none;
}
.btn-primary { background: var(--accent); color: white; box-shadow: 0 2px 8px rgba(29,111,184,.3); }
.btn-primary:hover { background: #1860a0; }
.btn-secondary { background: var(--gray-100); color: var(--gray-600); }
.btn-secondary:hover { background: var(--gray-200); }
.btn-ghost {
  background: white; border: 1.5px solid var(--gray-200); color: var(--gray-600);
  padding: .55rem 1.1rem; border-radius: var(--radius); font-size: .82rem; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: all .15s; text-decoration: none; display: inline-block;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }

/* ── SEO CONTENT SECTIONS ── */
.content-section { margin-top: 2.5rem; }
.content-section h2 { font-family: 'DM Serif Display', serif; font-size: 1.6rem; color: var(--navy); font-weight: 400; margin-bottom: .75rem; }
.content-section h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: .4rem; margin-top: 1.25rem; }
.content-section p { font-size: .93rem; color: var(--gray-600); line-height: 1.75; margin-bottom: .75rem; max-width: 720px; }
.content-section ul.plain { margin: .5rem 0 1rem 1.2rem; }
.content-section ul.plain li { font-size: .93rem; color: var(--gray-600); line-height: 1.75; margin-bottom: .3rem; }

.faq-item { border-bottom: 1px solid var(--gray-100); padding: 1.1rem 0; }
.faq-q { font-size: .95rem; font-weight: 600; color: var(--navy); margin-bottom: .4rem; }
.faq-a { font-size: .88rem; color: var(--gray-600); line-height: 1.7; }

/* ── CARD (generic) ── */
.card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 1.5rem;
}

/* ── CALLOUT (used for regulatory-change notices etc.) ── */
.callout {
  border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; margin: 1.5rem 0;
  font-size: .88rem; line-height: 1.7; border: 1.5px solid;
}
.callout-title { font-weight: 700; font-size: .9rem; margin-bottom: .4rem; display: flex; align-items: center; gap: .5rem; }
.callout.info { background: var(--accent-light); border-color: #b9d9f2; color: var(--navy); }
.callout.info .callout-title { color: var(--accent); }
.callout ul { margin: .5rem 0 0 1.1rem; }
.callout li { margin-bottom: .25rem; }

/* ── BREADCRUMB ── */
.breadcrumb { font-size: .8rem; color: var(--gray-400); margin-bottom: 1rem; }
.breadcrumb a { color: var(--gray-400); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

/* ── FOOTER ── */
footer.site-footer {
  background: var(--navy); color: rgba(255,255,255,.55); text-align: center;
  padding: 2rem 1.5rem; font-size: .8rem; line-height: 1.7; margin-top: 4rem;
}
footer.site-footer a { color: rgba(255,255,255,.7); text-decoration: none; }
footer.site-footer a:hover { color: white; }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .page-hero { padding: 1.75rem 1.5rem 1.75rem; }
  .header-inner nav { gap: .9rem; overflow-x: auto; }
}
