
/* ScholarshipDates — Sleek Light / Glassmorphism Edition */
:root {
  color-scheme: light;
  --ink: #0F172A;
  --ink-mute: #64748B;
  --manila: #F8FAFC;
  --card: rgba(255, 255, 255, 0.85);
  --stamp: #EF4444;
  --stamp-wash: #FEE2E2;
  --seal: #3B82F6;
  --seal-wash: #DBEAFE;
  --pencil: #475569;
  --rule: rgba(15, 23, 42, 0.08);
  --edge: rgba(15, 23, 42, 0.15);
  --on-ink: #FFFFFF;
  --glass-border: rgba(255, 255, 255, 0.5);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  --display: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body { 
  margin: 0; 
  font-family: var(--body); 
  font-size: 16px; 
  line-height: 1.6;
  color: var(--ink); 
  background: var(--manila);
  background-image: 
    radial-gradient(at 0% 0%, hsla(253,16%,7%,0.03) 0, transparent 50%), 
    radial-gradient(at 50% 0%, hsla(225,39%,30%,0.03) 0, transparent 50%), 
    radial-gradient(at 100% 0%, hsla(339,49%,30%,0.03) 0, transparent 50%);
  background-attachment: fixed;
  font-variant-numeric: tabular-nums; 
}

/* ---- type ---- */
h1, h2, h3, .logo, .btn, .eyebrow, th { font-family: var(--display); }
h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 16px; color: var(--ink); }
h2 { font-size: clamp(24px, 3vw, 30px); line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; margin: 40px 0 16px; }
h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; font-weight: 600; margin: 28px 0 8px; }
p { margin: 0 0 16px; }
.eyebrow { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--seal); margin: 0 0 10px; }
.lede { font-size: 20px; line-height: 1.6; color: var(--pencil); max-width: 65ch; }
.muted { color: var(--pencil); }
a { color: var(--seal); text-decoration: none; font-weight: 500; transition: color 0.2s ease; }
a:hover { color: #2563EB; text-decoration: underline; text-underline-offset: 4px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--seal-wash); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--card); padding: 12px 20px; border-radius: 8px; border: 1px solid var(--seal); }

/* ---- shell ---- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 800px; }
header.site { 
  background: rgba(255, 255, 255, 0.7); 
  backdrop-filter: blur(12px); 
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky; top: 0; z-index: 50; 
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; color: var(--ink); text-decoration: none !important; }
.logo .mark { flex-shrink: 0; color: var(--seal); --logo-bar: var(--ink); }
nav.top { display: flex; gap: 24px; flex-wrap: wrap; font-family: var(--display); font-size: 15px; font-weight: 600; }
nav.top a { color: var(--ink-mute); }
nav.top a:hover { color: var(--seal); text-decoration: none; }
main { display: block; min-height: 70vh; }
.band { padding: 48px 0; }
.band + .band { padding-top: 0; }
footer.site { 
  background: var(--ink); 
  color: var(--ink-mute); 
  padding: 48px 0 64px; 
  font-size: 15px; 
  margin-top: 64px; 
  border-top: 4px solid var(--seal);
}
footer.site a { color: #94A3B8; text-decoration: none; transition: color 0.2s; }
footer.site a:hover { color: var(--on-ink); }
footer.site strong { color: var(--on-ink); font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; }
.foot-links { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 20px; font-family: var(--display); font-size: 14px; font-weight: 600; }
.breadcrumb { font-family: var(--display); font-size: 14px; font-weight: 600; color: var(--pencil); padding: 24px 0 0; }
.breadcrumb a { color: var(--pencil); }
.breadcrumb a:hover { color: var(--seal); }

/* ---- glassmorphism cards ---- */
.window, .facts, .card, .finder, .empty, .records {
  background: var(--card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- the deadline strip ---- */
.window { padding: 24px; margin: 0 0 32px; border-left: 6px solid var(--stamp); }
.window:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.window-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.window-label { font-family: var(--display); font-size: 22px; font-weight: 800; color: var(--stamp); letter-spacing: -0.02em; }
.window-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.strip { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; list-style: none; margin: 0; padding: 0; }
.strip li { font-family: var(--mono); font-size: 13px; font-weight: 600; text-align: center; padding: 10px 0; background: rgba(15, 23, 42, 0.04); color: var(--pencil); border-radius: 6px; border: 1px solid transparent; transition: all 0.2s ease; }
.strip li.on { background: var(--stamp-wash); color: var(--stamp); border-color: rgba(239, 68, 68, 0.2); }
.window-note { font-size: 14.5px; color: var(--pencil); margin: 16px 0 0; line-height: 1.6; }
.window-note b { color: var(--ink); font-weight: 700; }
.window.open-ended { border-left-color: var(--seal); }
.window.open-ended .window-label { color: var(--seal); }

/* ---- urgency: states ---- */
.st { font-family: var(--display); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 12px; border-radius: 20px; display: inline-block; border: 1.5px solid transparent; }
.st-closing { background: var(--stamp); color: #fff; box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3); }
.st-open { background: var(--stamp-wash); color: var(--stamp); border-color: var(--stamp); }
.st-soon { background: var(--seal-wash); color: var(--seal); border-color: var(--seal); }
.st-later { background: transparent; color: var(--pencil); border-color: var(--edge); }

.strip li.m-past { background: rgba(15, 23, 42, 0.02); color: var(--ink-mute); }
.strip li.m-soon { background: var(--seal); color: #fff; }
.strip li.m-open { background: var(--stamp); color: #fff; font-weight: 700; box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3); transform: scale(1.05); z-index: 2; }
.strip li.m-now { position: relative; z-index: 1; outline: 2.5px solid var(--ink); outline-offset: 2px; }
.window[data-state="st-closing"] { border-left-color: var(--stamp); }
.window[data-state="st-soon"], .window[data-state="st-later"] { border-left-color: var(--seal); }

/* Home-page year strip (Heatmap) */
.strip li.heat0 { background: rgba(15, 23, 42, 0.04); color: var(--pencil); }
.strip li.heat1 { background: #FCA5A5; color: #7F1D1D; }
.strip li.heat2 { background: #EF4444; color: #fff; }
.strip li.heat3 { background: #B91C1C; color: #fff; font-weight: 700; transform: scale(1.05); }

/* ---- facts panel ---- */
.facts { margin: 0 0 32px; border-radius: 16px; }
.facts dl { display: grid; grid-template-columns: 220px 1fr; margin: 0; }
.facts dt { font-family: var(--display); font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pencil); padding: 18px 24px; border-bottom: 1px solid var(--rule); background: rgba(248, 250, 252, 0.5); }
.facts dd { margin: 0; padding: 18px 24px; border-bottom: 1px solid var(--rule); }
.facts dt:last-of-type, .facts dl > dd:last-child { border-bottom: none; }
.facts .num { font-family: var(--mono); font-weight: 500; color: var(--seal); }

/* ---- cards ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.card { padding: 24px; display: flex; flex-direction: column; border-radius: 16px; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: rgba(59, 130, 246, 0.3); }
.card h3 { font-size: 19px; line-height: 1.4; margin: 8px 0 0; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--seal); text-decoration: none; }
.card .provider { font-size: 14.5px; color: var(--pencil); margin: 6px 0 16px; font-weight: 500; }
.card .amount { font-family: var(--mono); font-size: 14px; padding-top: 16px; border-top: 1px solid var(--rule); margin-top: auto; color: var(--seal); font-weight: 600; }
.card .when { font-family: var(--display); font-size: 15px; font-weight: 700; color: var(--ink); margin-top: 12px; }
.card .st { margin-top: 12px; align-self: flex-start; }

/* ---- browse chips ---- */
.cats { display: flex; flex-wrap: wrap; gap: 12px; padding: 0; margin: 0; list-style: none; }
.cats a { 
  display: block; 
  background: var(--card); 
  border: 1px solid var(--glass-border); 
  padding: 14px 20px; 
  font-family: var(--display); 
  font-size: 15px; 
  font-weight: 600; 
  color: var(--ink); 
  border-radius: 12px; 
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}
.cats a:hover { transform: translateY(-2px); border-color: var(--seal); box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.1); color: var(--seal); }

/* ---- search + filter ---- */
.finder { padding: 24px; margin: 0 0 32px; border-radius: 16px; }
.finder label { display: block; font-family: var(--display); font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--seal); margin-bottom: 12px; }
.finder input { 
  width: 100%; 
  font-family: var(--body); 
  font-size: 17px; 
  padding: 14px 18px; 
  border: 2px solid var(--edge); 
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.5); 
  color: var(--ink); 
  transition: all 0.2s;
}
.finder input:focus { outline: none; border-color: var(--seal); background: #fff; box-shadow: 0 0 0 4px var(--seal-wash); }
.finder input::placeholder { color: var(--ink-mute); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.chip { 
  font-family: var(--display); 
  font-size: 14px; 
  font-weight: 600; 
  padding: 8px 16px; 
  border: 1.5px solid var(--edge); 
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.5); 
  color: var(--pencil); 
  cursor: pointer; 
  transition: all 0.2s;
}
.chip:hover { border-color: var(--seal); color: var(--seal); }
.chip[aria-pressed="true"] { background: var(--seal); color: #fff; border-color: var(--seal); box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); }
.filter-group { margin: 20px 0 0; }
.filter-group + .filter-group { margin-top: 16px; }
.filter-legend { display: block; font-family: var(--display); font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pencil); margin: 0 0 10px; }
.count { font-family: var(--mono); font-size: 14px; font-weight: 500; color: var(--pencil); margin: 16px 0 0; }
.empty { padding: 48px 24px; text-align: center; border: 2px dashed var(--edge); background: transparent; box-shadow: none; }

/* ---- record table ---- */
.records { width: 100%; border-collapse: collapse; font-size: 15.5px; border-radius: 16px; }
.records th { text-align: left; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pencil); padding: 18px 20px; border-bottom: 2px solid var(--edge); white-space: nowrap; background: rgba(248, 250, 252, 0.5); }
.records td { padding: 18px 20px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.records tbody tr { transition: background 0.2s; }
.records tbody tr:last-child td { border-bottom: none; }
.records tbody tr:hover { background: rgba(255, 255, 255, 0.9); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02); }
.records .nm { font-weight: 700; font-family: var(--display); font-size: 16px; }
.records .nm a { color: var(--ink); }
.records .nm a:hover { color: var(--seal); }
.records .num { font-family: var(--mono); font-size: 14.5px; color: var(--seal); font-weight: 500; }
.records .when { font-family: var(--display); font-size: 14.5px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.records .when.na { color: var(--pencil); font-weight: 600; }
.records .when .st { display: block; margin-top: 8px; white-space: nowrap; }

/* ---- buttons ---- */
.btn { 
  display: inline-flex; 
  align-items: center;
  justify-content: center;
  font-family: var(--display); 
  font-weight: 700; 
  font-size: 16px;
  padding: 14px 28px; 
  border-radius: 12px;
  text-decoration: none !important; 
  border: 2px solid var(--seal);
  background: var(--seal); 
  color: #fff !important; 
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); 
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(59, 130, 246, 0.4); }
.btn.ghost { background: transparent; color: var(--seal) !important; box-shadow: none; }
.btn.ghost:hover { background: var(--seal-wash); transform: translateY(-2px); }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }

/* ---- notices ---- */
.notice { background: var(--seal-wash); border: 1px solid rgba(59, 130, 246, 0.2); border-left: 4px solid var(--seal); padding: 16px 20px; font-size: 15.5px; margin: 24px 0; border-radius: 12px; box-shadow: var(--shadow); }
.notice.warn { background: var(--stamp-wash); border-color: rgba(239, 68, 68, 0.2); border-left-color: var(--stamp); }
.notice p:last-child { margin-bottom: 0; }
.notice p b { font-weight: 700; }

/* ---- adsense container ---- */
/* AD COMPLIANCE: Safe padding and CLS prevention */
.ad { 
  margin: 32px 0; 
  padding: 24px 0; /* Ensures distance from clickable elements */
  min-height: 250px; /* Prevents Cumulative Layout Shift (CLS) */
  text-align: center; 
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.02);
  border-radius: 12px;
  position: relative;
}

.cta { background: var(--ink); color: var(--on-ink); padding: 48px 40px; border-radius: 20px; text-align: center; box-shadow: var(--shadow-hover); position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: linear-gradient(90deg, var(--seal), #A855F7); }
.cta h2 { color: var(--on-ink); margin: 0 0 16px; }
.cta p { color: #94A3B8; max-width: 56ch; margin: 0 auto 32px; font-size: 18px; }
.cta .btn { background: #fff; color: var(--ink) !important; border-color: #fff; box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2); }
.cta .btn:hover { box-shadow: 0 8px 24px rgba(255, 255, 255, 0.3); }

/* ---- prose ---- */
.prose { max-width: 70ch; font-size: 17px; }
.prose h2 { font-size: 24px; margin-top: 48px; }
.prose h3 { font-size: 20px; margin-top: 32px; color: var(--seal); }
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 20px; }
.prose li { margin-bottom: 12px; line-height: 1.6; }
.prose ol { counter-reset: step; list-style: none; padding-left: 0; }
.prose ol > li { counter-increment: step; position: relative; padding-left: 44px; margin-bottom: 16px; background: var(--card); padding-top: 16px; padding-bottom: 16px; padding-right: 20px; border-radius: 12px; border: 1px solid var(--glass-border); box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
.prose ol > li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 16px; top: 16px; font-family: var(--display); font-size: 14px; font-weight: 800; color: var(--seal); }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .facts dl { grid-template-columns: 1fr; }
  .facts dt { padding: 16px 20px 4px; border-bottom: none; background: transparent; }
  .facts dd { padding: 0 20px 16px; }
  .strip li { font-size: 11px; padding: 8px 0; }
  .window-label { font-size: 19px; }
  
  .records, .records tbody, .records tr, .records td { display: block; width: 100%; }
  .records thead { position: absolute; left: -9999px; }
  .records { border: none; background: transparent; box-shadow: none; border-radius: 0; }
  .records tr { background: var(--card); border: 1px solid var(--glass-border); border-radius: 16px; margin-bottom: 16px; padding: 20px; box-shadow: var(--shadow); transition: transform 0.2s; }
  .records tr:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
  .records td { border: none; padding: 0 0 10px; }
  .records td:last-child { padding-bottom: 0; }
  .records .nm { font-size: 18px; padding-bottom: 12px; }
  .records .when { padding-bottom: 16px; }
  .records td[data-label]:not(.nm)::before { content: attr(data-label); display: block; font-family: var(--display); font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pencil); margin-bottom: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .btn:hover, .card:hover, .window:hover, .records tr:hover, .cats a:hover { transform: none; box-shadow: none; }
}
@media print {
  header.site, footer.site, .finder, .ad, .cta { display: none; }
  body { background: #fff; }
}
