/* Global Study Grants - SEO-First Static Design System */
:root {
  --primary: #0f3d68;
  --primary-dark: #092744;
  --accent: #0d9488;
  --accent-light: #e6f7f5;
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #1e293b;
  --text-muted: #475569;
  --border: #e2e8f0;
  --radius: 10px;
  --shadow: 0 4px 16px rgba(15, 61, 104, 0.06);
  --max-w: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  position: static; width: auto; height: auto; padding: 0.75rem 1rem;
  background: var(--primary); color: #fff; display: inline-block;
}

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }

/* Header & Navigation */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 70px; gap: 1rem;
}
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-weight: 800; font-size: 1.25rem; color: var(--primary); text-decoration: none;
}
.brand-badge {
  background: var(--primary); color: #fff; padding: 0.25rem 0.55rem;
  border-radius: 6px; font-size: 0.9rem; letter-spacing: 0.03em;
}
.nav-list {
  display: flex; list-style: none; margin: 0; padding: 0; gap: 1.25rem; flex-wrap: wrap;
}
.nav-list a {
  font-weight: 600; font-size: 0.95rem; color: var(--text); padding: 0.4rem 0;
}
.nav-list a:hover, .nav-list a[aria-current="page"] {
  color: var(--accent); text-decoration: none; border-bottom: 2px solid var(--accent);
}
.nav-toggle {
  display: none; background: none; border: 1px solid var(--border);
  padding: 0.45rem 0.75rem; border-radius: 6px; font-weight: 600; cursor: pointer;
}

/* Breadcrumbs */
.breadcrumb {
  padding: 0.85rem 0; font-size: 0.875rem; color: var(--text-muted);
}
.breadcrumb ol {
  display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; gap: 0.45rem;
}
.breadcrumb li + li::before { content: "/"; margin-right: 0.45rem; color: #94a3b8; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; padding: 3.5rem 0;
}
.hero .eyebrow {
  display: inline-block; background: rgba(255,255,255,0.14);
  padding: 0.25rem 0.75rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
  margin-bottom: 0.85rem;
}
.hero h1 { font-size: clamp(1.85rem, 3.5vw, 2.75rem); line-height: 1.2; margin: 0 0 1rem; }
.hero p { max-width: 760px; font-size: 1.1rem; color: #e2e8f0; margin: 0 0 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.btn {
  display: inline-block; padding: 0.75rem 1.35rem; border-radius: 8px;
  font-weight: 600; font-size: 0.95rem; text-decoration: none; transition: 0.15s ease;
  border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #0f766e; text-decoration: none; }
.btn-outline { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.35); }
.btn-outline:hover { background: rgba(255,255,255,0.2); text-decoration: none; }
.btn-secondary { background: var(--surface); color: var(--primary); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--primary); text-decoration: none; }

/* Notice Banner */
.notice-box {
  background: #fffbeb; border-left: 4px solid #d97706; padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0; margin: 1.75rem 0; font-size: 0.95rem;
}

/* Sections & Grids */
.section { padding: 2.75rem 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-header { margin-bottom: 1.75rem; }
.section-header h2 { font-size: 1.65rem; color: var(--primary-dark); margin: 0 0 0.4rem; }
.section-header p { color: var(--text-muted); margin: 0; max-width: 720px; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.35rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1.5rem; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--shadow); display: flex; flex-direction: column; justify-content: space-between;
}
.card h3 { margin: 0 0 0.5rem; font-size: 1.15rem; color: var(--primary); }
.card p { margin: 0 0 1rem; color: var(--text-muted); font-size: 0.95rem; }
.badge-row { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 0.85rem; }
.badge {
  font-size: 0.78rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 6px;
  background: var(--accent-light); color: #0f766e;
}
.badge-blue { background: #e0f2fe; color: #0369a1; }

/* Filter Bar */
.filter-panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem; margin-bottom: 1.5rem; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem;
}
.filter-panel label { display: block; font-size: 0.82rem; font-weight: 700; margin-bottom: 0.35rem; color: var(--text-muted); }
.filter-panel select, .filter-panel input {
  width: 100%; padding: 0.55rem 0.75rem; border: 1px solid var(--border);
  border-radius: 6px; font-size: 0.95rem; background: #fff;
}

/* Comparison Table */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 0.93rem; }
th, td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--border); }
th { background: #f1f5f9; font-weight: 700; color: var(--primary-dark); }

/* FAQ Accordion */
details.faq-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  padding: 1rem 1.25rem; margin-bottom: 0.75rem;
}
details.faq-item summary { font-weight: 700; cursor: pointer; color: var(--primary-dark); }
details.faq-item p { margin: 0.75rem 0 0; color: var(--text-muted); }

/* Directory Pill Links */
.pill-grid { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pill-link {
  background: var(--surface); border: 1px solid var(--border); padding: 0.45rem 0.9rem;
  border-radius: 999px; font-size: 0.88rem; font-weight: 600; color: var(--primary);
}
.pill-link:hover { background: var(--primary); color: #fff; text-decoration: none; }

/* Footer */
.site-footer {
  background: var(--primary-dark); color: #cbd5e1; padding: 3rem 0 1.5rem; margin-top: 3rem;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.site-footer h4 { color: #fff; margin: 0 0 0.85rem; font-size: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.45rem; font-size: 0.9rem; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); margin-top: 2rem; padding-top: 1.25rem;
  font-size: 0.85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  .nav-list { display: none; width: 100%; flex-direction: column; padding: 0.75rem 0; }
  .nav-list.open { display: flex; }
  .header-inner { flex-wrap: wrap; }
}
