/* ════════════════════════════════════════════════════════════════
   Ourel The Bursar's Handbook: shared stylesheet
   Mirrors the Ourel design system (see frontend/index.html tokens)
   and adds editorial components for the The Bursar's Handbook.
   ════════════════════════════════════════════════════════════════ */

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

:root {
  --ink:        #0A0A0A;
  --ink-2:      #23272E;
  --muted:      #4B5568;
  --muted-2:    #6B7280;
  --line:       #E6E8EC;
  --bg:         #FFFFFF;
  --bg-soft:    #F6F7F9;
  --accent:     #2D5FF0;
  --accent-ink: #2451D0;
  --accent-soft:rgba(45,95,240,0.08);
  --green:      #1E9E5A;
  --green-soft: rgba(30,158,90,0.10);
  --amber:      #B26A00;
  --amber-soft: rgba(255,149,0,0.12);
  --teal:       #0E8A8A;
  --teal-soft:  rgba(14,138,138,0.10);
  --violet:     #7A4CE0;
  --violet-soft:rgba(122,76,224,0.10);
  --coral:      #D0454F;
  --coral-soft: rgba(208,69,79,0.10);
  --radius:     14px;
  --radius-lg:  18px;
  --radius-xl:  24px;
  --shadow-sm:  0 1px 2px rgba(16,24,40,0.05);
  --shadow-md:  0 4px 14px rgba(16,24,40,0.07);
  --shadow-lg:  0 30px 70px -28px rgba(16,24,40,0.28);
  --nav-h:      76px;
  --container:  1160px;
  --prose-w:    700px;
}

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 92px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

:focus-visible { outline: 3px solid rgba(45, 95, 240, 0.45); outline-offset: 2px; border-radius: 6px; }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 2000;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 10px;
  font-size: 14px; font-weight: 600; text-decoration: none; transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* ══ Buttons ═════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 12px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; text-decoration: none;
  transition: background 0.18s, border-color 0.18s, transform 0.18s, box-shadow 0.18s;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 6px 18px -6px rgba(45,95,240,0.5); }
.btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); transform: translateY(-1px); }
.btn-outline { background: var(--bg); color: var(--ink); border-color: #D7DAE0; }
.btn-outline:hover { border-color: var(--ink); }
.btn-white { background: #fff; color: var(--ink); border-color: #fff; }
.btn-white:hover { transform: translateY(-1px); }
.btn-lg { padding: 16px 34px; font-size: 16px; }
.btn-sm { padding: 9px 16px; font-size: 13.5px; border-radius: 10px; }
.btn .arr { transition: transform 0.18s; }
.btn:hover .arr { transform: translateX(3px); }

/* ══ Eyebrow ═════════════════════════════════════════════════════ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--green); border-radius: 2px; }

.section { padding: 92px 0; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; line-height: 1.15;
  letter-spacing: -0.03em; color: var(--ink); margin-bottom: 14px;
}
.section-sub { font-size: 16.5px; color: var(--muted); line-height: 1.7; max-width: 600px; }
.section-head.centered .section-sub { margin-left: auto; margin-right: auto; }

/* ══ Navigation ══════════════════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,0.72);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.nav.scrolled { background: rgba(255,255,255,0.94); border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-logo { display: inline-flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 26px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a {
  display: block; padding: 9px 14px; color: var(--muted); text-decoration: none;
  font-size: 14.5px; font-weight: 500; border-radius: 9px; transition: color 0.18s, background 0.18s;
}
.nav-links a:hover { color: var(--ink); background: var(--bg-soft); }
.nav-links a.active { color: var(--ink); font-weight: 600; }
.nav-links a.active::after {
  content: ''; display: block; height: 2px; border-radius: 2px;
  background: var(--accent); margin-top: 2px; transform: scaleX(0.6);
}

.nav-ctas { display: flex; align-items: center; gap: 10px; }
.nav-ctas .btn { padding: 9px 18px; font-size: 13.5px; border-radius: 10px; }

.nav-hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  padding: 10px; border-radius: 10px; background: none; border: 1px solid var(--line);
}
.nav-hamburger span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.25s, opacity 0.25s; transform-origin: center; }
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: rgba(255,255,255,0.98); border-bottom: 1px solid var(--line);
  padding: 10px 28px 26px; box-shadow: var(--shadow-md); z-index: 999;
}
.mobile-menu.open { display: block; }
.mobile-menu a.m-link {
  display: block; padding: 14px 2px; color: var(--ink); text-decoration: none;
  font-weight: 600; font-size: 16px; border-bottom: 1px solid var(--bg-soft);
}
.mobile-menu a.m-link.active { color: var(--accent); }
.mobile-menu .m-ctas { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.mobile-menu .m-ctas .btn { width: 100%; padding: 14px 20px; font-size: 15px; }

/* ══ Hub hero ════════════════════════════════════════════════════ */
.kh-hero { position: relative; padding: calc(var(--nav-h) + 70px) 0 84px; overflow: hidden; }
.kh-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(720px 360px at 50% -10%, rgba(45,95,240,0.08), transparent 70%),
    radial-gradient(560px 320px at 12% 110%, rgba(30,158,90,0.05), transparent 70%);
  pointer-events: none;
}
.kh-hero-inner {
  position: relative; max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
  text-align: left;
}
.kh-hero .eyebrow { justify-content: flex-start; }
.kh-hero .eyebrow::after { content: ''; width: 22px; height: 2px; background: var(--green); border-radius: 2px; }

.kh-hero h1 {
  font-size: clamp(34px, 4.6vw, 50px); font-weight: 800; line-height: 1.1;
  letter-spacing: -0.035em; color: var(--ink); margin-bottom: 20px;
}
.kh-hero .hero-sub {
  font-size: 17.5px; color: var(--muted); line-height: 1.7;
  max-width: 560px; margin: 0 0 34px;
}
.kh-hero-ctas { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 12px; }

.kh-hero-media { position: relative; }
.kh-hero-media img {
  width: 100%; height: auto; border-radius: var(--radius-xl);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.kh-hero-media::after {
  content: ''; position: absolute; inset: 18px -18px -18px 18px; z-index: -1;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(45,95,240,0.14), rgba(30,158,90,0.10));
}

/* Search */
.kh-search { max-width: 600px; margin: 42px 0 0; position: relative; text-align: left; }
.kh-search .search-box {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 16px;
  padding: 6px 8px 6px 20px; box-shadow: var(--shadow-md);
  transition: border-color 0.18s, box-shadow 0.18s;
}
.kh-search .search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(45,95,240,0.10), var(--shadow-md); }
.kh-search input {
  flex: 1; border: none; outline: none; font: inherit; font-size: 15.5px;
  color: var(--ink); background: transparent; padding: 12px 0;
}
.kh-search input::placeholder { color: var(--muted-2); }
.kh-search .search-box svg { flex-shrink: 0; color: var(--muted-2); }
.kh-search .search-box .kbd-hint {
  flex-shrink: 0; font-size: 11px; font-weight: 600; color: var(--muted-2);
  border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px;
  background: var(--bg-soft); margin-right: 10px;
}
.kh-search .clear-btn {
  flex-shrink: 0; display: none; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px; border: none; cursor: pointer;
  background: var(--bg-soft); color: var(--muted-2); margin-right: 8px;
}
.kh-search .clear-btn:hover { color: var(--ink); }
.kh-search.has-value .clear-btn { display: inline-flex; }
.kh-search .search-btn {
  flex-shrink: 0; border: none; cursor: pointer; font: inherit; font-size: 14px; font-weight: 600;
  color: #fff; background: var(--accent); border-radius: 11px; padding: 12px 22px;
  transition: background 0.18s;
}
.kh-search .search-btn:hover { background: var(--accent-ink); }

.search-panel {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 50;
  background: var(--bg); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-lg); overflow: hidden; display: none;
}
.search-panel.open { display: block; }
.search-panel .sp-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px; font-size: 11px; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--muted-2); border-bottom: 1px solid var(--bg-soft);
}
.search-panel .sp-list {
  max-height: 330px; overflow-y: auto; overscroll-behavior: contain;
}
.search-panel .sp-result {
  display: block; padding: 14px 18px; text-decoration: none; border-bottom: 1px solid var(--bg-soft);
  transition: background 0.14s;
}
.search-panel .sp-result:last-child { border-bottom: none; }
.search-panel .sp-result:hover, .search-panel .sp-result.focused { background: var(--bg-soft); }
.search-panel .sp-result .sp-cat {
  display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 4px;
}
.search-panel .sp-result .sp-title { font-size: 14.5px; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.search-panel .sp-result .sp-excerpt {
  font-size: 13px; color: var(--muted-2); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.search-panel .sp-result .sp-meta { margin-top: 6px; font-size: 12px; color: var(--muted-2); }
.search-panel .sp-empty { padding: 34px 20px; text-align: center; }
.search-panel .sp-empty svg { margin: 0 auto 12px; color: var(--muted-2); opacity: 0.6; }
.search-panel .sp-empty b { display: block; font-size: 15px; color: var(--ink); margin-bottom: 4px; }
.search-panel .sp-empty p { font-size: 13.5px; color: var(--muted-2); }
.search-panel .sp-hint {
  padding: 12px 18px; font-size: 12.5px; color: var(--muted-2);
  border-top: 1px solid var(--bg-soft); background: var(--bg-soft);
}

/* ══ Featured guide ══════════════════════════════════════════════ */
.featured-guide {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 0;
  background: var(--ink); color: #fff; border-radius: var(--radius-xl);
  overflow: hidden; box-shadow: var(--shadow-lg); position: relative;
}
.featured-guide .fg-media { position: relative; min-height: 320px; }
.featured-guide .fg-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.featured-guide .fg-body { padding: 46px 46px 48px; display: flex; flex-direction: column; }
.featured-guide .fg-tag {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: #9DB4FF; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  padding: 6px 14px; border-radius: 100px; margin-bottom: 18px;
}
.featured-guide h3 {
  font-size: clamp(23px, 2.8vw, 31px); font-weight: 800; line-height: 1.2;
  letter-spacing: -0.02em; color: #fff; margin-bottom: 14px;
}
.featured-guide .fg-desc { font-size: 15px; color: rgba(255,255,255,0.66); line-height: 1.7; margin-bottom: 22px; }
.featured-guide .fg-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
  font-size: 13px; color: rgba(255,255,255,0.55); margin-bottom: 26px;
}
.featured-guide .fg-meta span { display: inline-flex; align-items: center; gap: 7px; }
.featured-guide .fg-meta svg { color: #9DB4FF; flex-shrink: 0; }
.featured-guide .btn-white { align-self: flex-start; }

/* ══ Category cards ══════════════════════════════════════════════ */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cat-card {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; text-decoration: none; color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.cat-card:hover { border-color: #C9CDD3; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cat-card .cc-ic {
  width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  color: var(--accent); background: var(--accent-soft);
}
.cat-card:nth-child(2) .cc-ic { color: var(--teal); background: var(--teal-soft); }
.cat-card:nth-child(3) .cc-ic { color: var(--green); background: var(--green-soft); }
.cat-card:nth-child(4) .cc-ic { color: var(--amber); background: var(--amber-soft); }
.cat-card:nth-child(5) .cc-ic { color: var(--violet); background: var(--violet-soft); }
.cat-card:nth-child(6) .cc-ic { color: var(--coral); background: var(--coral-soft); }
.cat-card h3 { font-size: 16px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.cat-card p { font-size: 13.5px; color: var(--muted); line-height: 1.65; flex: 1; }
.cat-card .cc-link {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--accent);
}
.cat-card:hover .cc-link .arr { transform: translateX(3px); }
.cat-card .cc-link .arr { transition: transform 0.18s; }
.cat-card .cc-status {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--muted-2);
}

/* ══ Article cards ═══════════════════════════════════════════════ */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.article-card {
  display: flex; flex-direction: column; background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  text-decoration: none; color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.article-card:hover { border-color: #C9CDD3; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.article-card .a-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-soft); }
.article-card .a-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s cubic-bezier(0.16,1,0.3,1); }
.article-card:hover .a-media img { transform: scale(1.03); }
.article-card .a-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.article-card .a-cat {
  display: inline-flex; align-self: flex-start; font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent);
  background: var(--accent-soft); padding: 4px 11px; border-radius: 100px;
}
.article-card .a-type {
  display: inline-flex; align-self: flex-start; font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted-2);
  padding: 4px 0;
}
.article-card .a-title {
  font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: -0.015em; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-card:hover .a-title { color: var(--accent-ink); }
.article-card .a-excerpt {
  font-size: 13.5px; color: var(--muted); line-height: 1.65; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.article-card .a-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  font-size: 12px; color: var(--muted-2); padding-top: 14px; border-top: 1px solid var(--bg-soft);
}
.article-card .a-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-card .a-meta svg { flex-shrink: 0; color: var(--green); }

.article-card.is-guide .a-cat { color: var(--green); background: var(--green-soft); }
.article-card.is-guide .a-title { font-size: 18px; }

.article-card .a-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.article-card .aud-badge {
  display: inline-flex; align-self: flex-start; font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--violet);
  background: var(--violet-soft); padding: 4px 11px; border-radius: 100px;
}
.article-head .ah-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; }
.article-head .ah-tags .ah-cat { margin-bottom: 0; }
.article-head .aud-badge {
  display: inline-flex; align-items: center; font-size: 11px; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--violet);
  background: var(--violet-soft); padding: 5px 13px; border-radius: 100px;
}

/* ══ Topic chips ═════════════════════════════════════════════════ */
.topic-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.topic-chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: var(--bg); color: var(--muted);
  font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer;
  padding: 9px 17px; border-radius: 100px; text-decoration: none;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
}
.topic-chip:hover { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft); }
.topic-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

/* ══ Newsletter CTA ══════════════════════════════════════════════ */
.newsletter {
  position: relative; background: var(--ink); color: #fff; border-radius: var(--radius-xl);
  padding: 54px 56px; overflow: hidden; text-align: center;
}
.newsletter::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(560px 300px at 50% -20%, rgba(45,95,240,0.28), transparent 70%),
    radial-gradient(400px 240px at 90% 130%, rgba(30,158,90,0.14), transparent 70%);
  pointer-events: none;
}
.newsletter > * { position: relative; }
.newsletter h3 {
  font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 10px; line-height: 1.2;
}
.newsletter p { color: rgba(255,255,255,0.66); font-size: 15.5px; max-width: 520px; margin: 0 auto 28px; }
.newsletter .nl-cta { margin-top: 28px; }
.newsletter .nl-cta .btn { padding: 15px 30px; font-size: 15px; }
.newsletter .nl-cta ~ .nl-form { margin-top: 30px; }
.newsletter .nl-form {
  display: flex; gap: 10px; max-width: 440px; margin: 0 auto;
}
.newsletter .nl-form input {
  flex: 1; border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.08);
  border-radius: 12px; padding: 14px 18px; font: inherit; font-size: 15px; color: #fff;
  outline: none; transition: border-color 0.18s, background 0.18s;
}
.newsletter .nl-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter .nl-form input:focus { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.12); }
.newsletter .nl-note { margin-top: 14px; font-size: 12.5px; color: rgba(255,255,255,0.42); }
.newsletter .nl-msg { margin-top: 14px; font-size: 14px; color: #9DB4FF; font-weight: 500; min-height: 20px; }

/* ══ Listing page header ═════════════════════════════════════════ */
.page-hero { padding: calc(var(--nav-h) + 64px) 0 56px; text-align: center; position: relative; }
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(640px 320px at 50% -10%, rgba(45,95,240,0.07), transparent 70%);
  pointer-events: none;
}
.page-hero h1 {
  font-size: clamp(32px, 4.2vw, 44px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1;
  margin-bottom: 14px;
}
.page-hero p { color: var(--muted); font-size: 16.5px; max-width: 560px; margin: 0 auto; }

/* ══ Footer ══════════════════════════════════════════════════════ */
footer { background: #070707; padding: 56px 0 34px; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; }
.footer-brand { max-width: 300px; }
.footer-logo { display: inline-flex; align-items: center; margin-bottom: 14px; }
.footer-logo img { height: 24px; width: auto; filter: brightness(0) invert(1); opacity: 0.92; }
.footer-tagline { font-size: 13px; color: rgba(255,255,255,0.42); line-height: 1.65; }
.footer-links { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-group h5 {
  font-size: 11px; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase;
  color: rgba(255,255,255,0.32); margin-bottom: 15px;
}
.footer-group a { display: block; font-size: 14px; color: rgba(255,255,255,0.58); text-decoration: none; margin-bottom: 9px; transition: color 0.18s; }
.footer-group a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding-top: 26px; margin-top: 40px; border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 13px; color: rgba(255,255,255,0.34);
}
.footer-bottom a { color: rgba(255,255,255,0.45); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ════════════════════════════════════════════════════════════════
   ARTICLE PAGE
   ════════════════════════════════════════════════════════════════ */
.read-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 1200;
  background: rgba(45,95,240,0.12); transform-origin: 0 50%; transform: scaleX(0);
}
.read-progress::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--accent), #5A82F5);
}

.article-hero { padding: calc(var(--nav-h) + 46px) 0 0; }
.crumb { margin-bottom: 26px; font-size: 13px; color: var(--muted-2); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.crumb a { color: var(--muted-2); text-decoration: none; }
.crumb a:hover { color: var(--accent-ink); }
.crumb .sep { opacity: 0.5; }

.article-head { max-width: 780px; }
.article-head .ah-cat {
  display: inline-flex; align-items: center; font-size: 11px; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent);
  background: var(--accent-soft); padding: 5px 13px; border-radius: 100px; margin-bottom: 18px;
}
.article-head h1 {
  font-size: clamp(30px, 4.4vw, 44px); font-weight: 800; line-height: 1.12;
  letter-spacing: -0.03em; color: var(--ink); margin-bottom: 18px;
}
.article-head .ah-excerpt {
  font-size: 17.5px; color: var(--muted); line-height: 1.7; margin-bottom: 26px;
}
.article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px;
  padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.article-meta .am-author { display: flex; align-items: center; gap: 12px; }
.article-meta .am-ava {
  width: 40px; height: 40px; border-radius: 50%; background: var(--bg-soft);
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--accent);
}
.article-meta .am-name { font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.article-meta .am-role { font-size: 12px; color: var(--muted-2); }
.article-meta .am-item { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted-2); }
.article-meta .am-item svg { color: var(--green); flex-shrink: 0; }
.article-meta .am-spacer { flex: 1; }

.article-cover {
  margin: 34px auto 0; max-width: 980px;
}
.article-cover img {
  width: 100%; border-radius: var(--radius-xl); border: 1px solid var(--line);
  aspect-ratio: 16 / 7; object-fit: cover;
}

/* layout: TOC aside + prose */
.article-layout {
  display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px;
  max-width: 1060px; margin: 0 auto; padding: 56px 0 0; align-items: start;
}
.toc-aside { position: sticky; top: calc(var(--nav-h) + 28px); }
.toc-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: 14px;
}
.toc { list-style: none; border-left: 1px solid var(--line); padding-left: 0; }
.toc li { margin: 0; }
.toc a {
  display: block; padding: 6px 0 6px 16px; margin-left: -1px;
  border-left: 2px solid transparent; font-size: 13px; color: var(--muted-2);
  text-decoration: none; line-height: 1.5; transition: color 0.15s, border-color 0.15s;
}
.toc a:hover { color: var(--ink); }
.toc a.is-active { border-left-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.toc a.toc-l2 { padding-left: 32px; font-size: 12.5px; }

.article-main { min-width: 0; }

/* ══ Prose ═══════════════════════════════════════════════════════ */
.prose { font-size: 17px; color: #334155; line-height: 1.85; }
.prose > * + * { margin-top: 1.25em; }
.prose h2 {
  font-size: 25px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink);
  line-height: 1.3; margin-top: 2.2em;
}
.prose h3 {
  font-size: 19px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink);
  line-height: 1.4; margin-top: 1.8em;
}
.prose p { margin-top: 1.25em; }
.prose a:not(.btn) { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:not(.btn):hover { color: var(--accent); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-top: 0.55em; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose blockquote {
  border-left: 3px solid var(--green); background: var(--bg-soft);
  padding: 18px 22px; border-radius: 0 12px 12px 0; color: var(--ink-2); font-size: 16px;
}
.prose blockquote p { margin-top: 0; }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose figure { margin: 1.8em 0; }
.prose figcaption { font-size: 13px; color: var(--muted-2); text-align: center; margin-top: 10px; }
.prose .lead { font-size: 18.5px; color: var(--ink-2); line-height: 1.75; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 1.6em 0; }
.prose th {
  text-align: left; font-size: 11px; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--muted-2); padding: 10px 12px;
  border-bottom: 2px solid var(--line);
}
.prose td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose td:first-child, .prose th:first-child { padding-left: 0; }
.prose .table-wrap { overflow-x: auto; margin: 1.6em 0; -webkit-overflow-scrolling: touch; }
.prose .table-wrap table { margin: 0; }
.prose .table-wrap th, .prose .table-wrap td { white-space: nowrap; }

/* TOC (mobile inline <details>) */
.toc-mobile { display: none; margin-bottom: 30px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.toc-mobile summary {
  list-style: none; cursor: pointer; padding: 14px 18px; font-size: 13px; font-weight: 700;
  color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile summary .chev { transition: transform 0.2s; color: var(--muted-2); }
.toc-mobile[open] summary .chev { transform: rotate(180deg); }
.toc-mobile .toc { border-left: none; padding: 4px 18px 14px; }
.toc-mobile .toc a { margin-left: 0; border-left: none; padding: 7px 0; }

/* Ourel callout box (subtle product CTA) */
.ourel-cta {
  margin: 2.6em 0 0; background: var(--accent-soft); border: 1px solid rgba(45,95,240,0.18);
  border-radius: var(--radius-lg); padding: 26px 28px; display: flex; flex-direction: column; gap: 8px;
}
.ourel-cta h3 { font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.ourel-cta p { font-size: 14.5px; color: var(--muted); margin: 0; }
.ourel-cta .btn { align-self: flex-start; margin-top: 6px; }

/* ══ Related resources ═══════════════════════════════════════════ */
.related-sec { padding: 64px 0 0; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* ══ Prev / Next ═════════════════════════════════════════════════ */
.pn-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 46px 0 0;
  border-top: 1px solid var(--line); padding-top: 34px;
}
.pn-item {
  display: flex; flex-direction: column; gap: 6px; text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 20px;
  transition: border-color 0.18s, background 0.18s;
}
.pn-item:hover { border-color: var(--accent); background: var(--accent-soft); }
.pn-item.next { text-align: right; }
.pn-item .pn-label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
.pn-item .pn-title { font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.pn-item:hover .pn-title { color: var(--accent-ink); }

/* ════════════════════════════════════════════════════════════════
   GUIDE PAGE (premium)
   ════════════════════════════════════════════════════════════════ */
.guide-hero { position: relative; background: var(--ink); color: #fff; padding: calc(var(--nav-h) + 64px) 0 72px; overflow: hidden; }
.guide-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(680px 360px at 82% -10%, rgba(45,95,240,0.28), transparent 70%),
    radial-gradient(480px 300px at 8% 115%, rgba(30,158,90,0.12), transparent 70%);
  pointer-events: none;
}
.guide-hero .container { position: relative; }
.guide-hero .crumb a { color: rgba(255,255,255,0.5); }
.guide-hero .crumb { color: rgba(255,255,255,0.45); margin-bottom: 30px; }
.guide-hero .gh-inner { max-width: 820px; }
.guide-hero .gh-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: #9DB4FF; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  padding: 6px 14px; border-radius: 100px; margin-bottom: 22px;
}
.guide-hero h1 {
  font-size: clamp(32px, 4.8vw, 52px); font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.1; color: #fff; margin-bottom: 20px;
}
.guide-hero .gh-desc { font-size: 18px; color: rgba(255,255,255,0.7); line-height: 1.7; max-width: 660px; margin-bottom: 30px; }
.guide-hero .gh-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; font-size: 13.5px; color: rgba(255,255,255,0.55);
}
.guide-hero .gh-meta span { display: inline-flex; align-items: center; gap: 8px; }
.guide-hero .gh-meta svg { color: #9DB4FF; flex-shrink: 0; }
.guide-hero .gh-meta .gh-ava {
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.16); display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #9DB4FF;
}

.guide-cover { margin-top: 44px; }
.guide-cover img { width: 100%; border-radius: var(--radius-xl); aspect-ratio: 16 / 7; object-fit: cover; }

.guide-layout {
  display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px;
  max-width: 1060px; margin: 0 auto; padding: 60px 0 0; align-items: start;
}

/* ════════════════════════════════════════════════════════════════
   BURSAR'S HANDBOOK (topic architecture)
   ════════════════════════════════════════════════════════════════ */
/* Search example chips under the hero search box */
.search-examples { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.search-examples .se-label { font-size: 12.5px; color: var(--muted-2); }
.search-example {
  font-size: 12.5px; color: var(--muted); background: var(--bg); border: 1px solid var(--line);
  border-radius: 100px; padding: 6px 13px; cursor: pointer; transition: color 0.15s, border-color 0.15s;
  font-family: inherit;
}
.search-example:hover { color: var(--accent-ink); border-color: var(--accent); }

/* Start here band (new bursar path) */
.starthere {
  background: var(--ink); color: #fff; border-radius: var(--radius-xl); padding: 44px 48px;
  position: relative; overflow: hidden;
}
.starthere::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(560px 280px at 88% -20%, rgba(45,95,240,0.30), transparent 70%),
    radial-gradient(420px 260px at 0% 120%, rgba(30,158,90,0.14), transparent 70%);
}
.starthere > * { position: relative; }
.starthere .sh-tag {
  display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: #9DB4FF; margin-bottom: 16px;
}
.starthere h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; letter-spacing: -0.03em; color: #fff; margin-bottom: 14px; max-width: 640px; }
.starthere p { color: rgba(255,255,255,0.68); font-size: 15.5px; line-height: 1.7; max-width: 620px; margin-bottom: 26px; }
.starthere .sh-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.starthere .sh-mini {
  margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
  font-size: 13px; color: rgba(255,255,255,0.55);
}
.starthere .sh-mini a { color: #9DB4FF; text-decoration: none; }
.starthere .sh-mini a:hover { color: #fff; }

/* Help grid ("I need help with…") */
.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.help-card {
  display: flex; align-items: flex-start; gap: 14px; padding: 20px 20px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.help-card:hover { border-color: #C9CDD3; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.help-card .hc-ic {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); background: var(--accent-soft);
}
.help-card:nth-child(2) .hc-ic { color: var(--teal); background: var(--teal-soft); }
.help-card:nth-child(3) .hc-ic { color: var(--green); background: var(--green-soft); }
.help-card:nth-child(4) .hc-ic { color: var(--amber); background: var(--amber-soft); }
.help-card:nth-child(5) .hc-ic { color: var(--violet); background: var(--violet-soft); }
.help-card:nth-child(6) .hc-ic { color: var(--coral); background: var(--coral-soft); }
.help-card h3 { font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; margin-bottom: 3px; }
.help-card p { font-size: 13px; color: var(--muted); line-height: 1.55; }

/* Topic pillar cards */
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pillar-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 26px 24px; display: flex; flex-direction: column; gap: 10px;
  text-decoration: none; transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.pillar-card:hover { border-color: #C9CDD3; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pillar-card .pc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.pillar-card .pc-count {
  font-size: 11px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); padding: 4px 11px; border-radius: 100px;
}
.pillar-card:nth-child(2) .pc-count { color: var(--teal); background: var(--teal-soft); }
.pillar-card:nth-child(3) .pc-count { color: var(--green); background: var(--green-soft); }
.pillar-card:nth-child(4) .pc-count { color: var(--amber); background: var(--amber-soft); }
.pillar-card:nth-child(5) .pc-count { color: var(--violet); background: var(--violet-soft); }
.pillar-card:nth-child(6) .pc-count { color: var(--coral); background: var(--coral-soft); }
.pillar-card:nth-child(7) .pc-count { color: var(--teal); background: var(--teal-soft); }
.pillar-card:nth-child(8) .pc-count { color: var(--amber); background: var(--amber-soft); }
.pillar-card h3 { font-size: 16px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.pillar-card p { font-size: 13.5px; color: var(--muted); line-height: 1.65; flex: 1; }
.pillar-card .pc-types {
  font-size: 12px; font-weight: 600; color: var(--muted-2); letter-spacing: 0.01em;
}
.pillar-card .cc-link { color: var(--accent-ink); font-size: 13px; font-weight: 600; }

/* Topic pillar page: grouped resources */
.topic-group { margin-bottom: 44px; }
.topic-group-title {
  font-size: 13px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: 18px; display: flex; align-items: center; gap: 8px;
}
.topic-group-title .tg-count {
  font-size: 11px; color: var(--accent); background: var(--accent-soft);
  padding: 2px 9px; border-radius: 100px; letter-spacing: 0.03em;
}

/* Pillar nav chips (topic pages) */
.pillar-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pn-chip {
  font-size: 13px; color: var(--muted); background: var(--bg); border: 1px solid var(--line);
  border-radius: 100px; padding: 8px 16px; text-decoration: none; transition: color 0.15s, border-color 0.15s;
}
.pn-chip:hover { color: var(--accent-ink); border-color: var(--accent); }

/* Review / source metadata (regulatory content) */
.review-meta {
  display: flex; flex-wrap: wrap; gap: 10px 20px; padding: 14px 0; margin-top: 2px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.review-meta .rm-item { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted-2); }
.review-meta .rm-item svg { color: var(--green); flex-shrink: 0; }
.review-disclaimer {
  display: none; margin-top: 18px; font-size: 13px; color: var(--muted-2); line-height: 1.6;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 18px;
}

/* Format strip (secondary browse-by-format nav on hub pages) */
.format-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 12px;
  margin-top: 30px;
}
.format-strip a {
  font-size: 13px; font-weight: 600; color: var(--muted); background: var(--bg);
  border: 1px solid var(--line); border-radius: 100px; padding: 8px 16px; text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}
.format-strip a:hover { color: var(--accent-ink); border-color: var(--accent); }

/* ══ Reveal animation ════════════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.06s; } .reveal-d2 { transition-delay: 0.12s; } .reveal-d3 { transition-delay: 0.18s; }
.reveal-d4 { transition-delay: 0.24s; } .reveal-d5 { transition-delay: 0.30s; } .reveal-d6 { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ══ Responsive ══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .featured-guide { grid-template-columns: 1fr; }
  .featured-guide .fg-media { min-height: 240px; }
  .featured-guide .fg-media img { position: static; aspect-ratio: 16 / 8; }
  .article-layout, .guide-layout { grid-template-columns: 1fr; gap: 24px; }
  .toc-aside { display: none; }
  .toc-mobile { display: block; }
  .article-layout { padding-top: 40px; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-ctas { display: none; }
  .nav-hamburger { display: flex; }
  .kh-hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .kh-hero .eyebrow { justify-content: center; }
  .kh-hero-ctas { justify-content: center; }
  .kh-hero .hero-sub { margin: 0 auto 34px; }
  .kh-search { margin: 42px auto 0; }
  .kh-hero-media { max-width: 560px; margin: 0 auto; }
  .kh-hero-media img { border-radius: var(--radius-lg); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .help-grid { grid-template-columns: repeat(2, 1fr); }
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { flex-direction: column; }
  .section { padding: 76px 0; }
}

@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .kh-hero { padding: calc(var(--nav-h) + 48px) 0 64px; }
  .kh-hero-ctas { flex-direction: column; }
  .kh-hero-ctas .btn { width: 100%; }
  .kh-search { margin-top: 32px; }
  .kh-search .search-box { flex-wrap: wrap; padding: 10px 14px; }
  .kh-search input { width: 100%; }
  .kh-search .search-btn { width: 100%; }
  .kh-search .kbd-hint { display: none; }
  .cat-grid { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .help-grid { grid-template-columns: 1fr; }
  .pillar-grid { grid-template-columns: 1fr; }
  .featured-guide .fg-body { padding: 30px 24px 32px; }
  .featured-guide .btn-white { align-self: stretch; text-align: center; }
  .starthere { padding: 34px 24px; }
  .starthere .sh-ctas { flex-direction: column; }
  .starthere .sh-ctas .btn { width: 100%; text-align: center; }
  .newsletter { padding: 40px 24px; }
  .newsletter .nl-form { flex-direction: column; }
  .article-head h1 { font-size: clamp(27px, 7.5vw, 36px); }
  .article-meta { gap: 12px 18px; }
  .article-cover img { aspect-ratio: 16 / 9; }
  .prose { font-size: 16px; }
  .pn-nav { grid-template-columns: 1fr; }
  .pn-item.next { text-align: left; }
  .guide-hero { padding: calc(var(--nav-h) + 48px) 0 56px; }
  .guide-cover img { aspect-ratio: 16 / 9; }
  .section { padding: 64px 0; }
}
