/* Copied to public/exams/exams.css by exams-src/build-exams.js — edit THIS file. Tokens match public/index.html. */
:root {
  --primary: #4F46E5; --primary-light: #818CF8; --primary-dark: #3730A3;
  --accent: #F59E0B; --bg: #FAFAFA; --surface: #FFFFFF; --text: #1E1B4B;
  --text-secondary: #4B5563; --muted: #6B7280; --border: #E5E7EB;
  --tint: #EEF2FF; --highlight-bg: #FFFBEB; --highlight-border: #F59E0B;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { font-family: 'DM Sans', system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; -webkit-text-size-adjust: 100%; }
h1, h2, h3 { font-family: 'Outfit', 'DM Sans', sans-serif; line-height: 1.2; }
a { color: var(--primary); }
[lang="kn"] { font-family: 'Noto Sans Kannada', 'DM Sans', sans-serif; }

body > nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border); padding: 0.75rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-brand { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.35rem; color: var(--primary); text-decoration: none; }
.nav-brand span { color: var(--accent); }
.nav-links { display: flex; gap: 1.1rem; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover { color: var(--primary); }

.page-header { padding: 2.5rem 1rem 1.75rem; text-align: center; background: linear-gradient(180deg, rgba(79,70,229,0.06), transparent); }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem; font-size: 0.8rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs li + li::before { content: '›'; margin-right: 0.35rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--primary); }
.eyebrow { font-size: 0.8rem; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.5rem; }
.page-header h1 { font-size: clamp(1.6rem, 4.5vw, 2.5rem); font-weight: 800; letter-spacing: -0.02em; max-width: 820px; margin: 0 auto; }
.page-header .kn { margin-top: 0.5rem; color: var(--text-secondary); font-size: 1rem; }
.page-header .sub { margin: 0.75rem auto 0; max-width: 620px; color: var(--text-secondary); }
.verified { display: inline-block; margin-top: 1rem; font-size: 0.78rem; color: var(--muted); background: var(--surface); border: 1px solid var(--border); padding: 0.25rem 0.8rem; border-radius: 999px; }

.content { max-width: 820px; margin: 0 auto; padding: 1rem 1rem 3rem; }
.content.wide { max-width: 1080px; }
.lead { font-size: 1.05rem; color: var(--text-secondary); margin: 0.5rem 0 1.25rem; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.5rem; margin-bottom: 1rem; }
.card h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.75rem; }
.card h3 { font-size: 1rem; font-weight: 700; margin: 1.1rem 0 0.4rem; color: var(--text); }
.card h2 + h3 { margin-top: 0.25rem; }
.card ul { list-style: none; }
.card ul li { position: relative; padding: 0.25rem 0 0.25rem 1.1rem; color: var(--text-secondary); font-size: 0.95rem; }
.card ul li::before { content: ''; position: absolute; left: 0.1rem; top: 0.8rem; width: 6px; height: 6px; border-radius: 50%; background: var(--primary-light); }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0.5rem 0; border: 1px solid var(--border); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; vertical-align: top; padding: 0.65rem 0.85rem; border-bottom: 1px solid var(--border); }
tr:last-child th, tr:last-child td { border-bottom: 0; }
thead th { background: var(--tint); color: var(--primary-dark); font-weight: 700; font-size: 0.82rem; white-space: nowrap; }
tbody th { font-weight: 600; color: var(--text); min-width: 8rem; }
td { color: var(--text-secondary); }

.toc { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1rem; }
.toc a { font-size: 0.85rem; font-weight: 500; text-decoration: none; color: var(--primary-dark); background: var(--tint); padding: 0.35rem 0.8rem; border-radius: 999px; }
.toc a:hover { background: #E0E7FF; }

.steps { list-style: none; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0.5rem 0 0.75rem 2.6rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0.45rem; width: 1.8rem; height: 1.8rem; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 700; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; }
.steps strong { display: block; color: var(--text); }
.steps span { color: var(--text-secondary); font-size: 0.93rem; }

details { border-top: 1px solid var(--border); padding: 0.8rem 0; }
details:first-of-type { border-top: 0; }
summary { cursor: pointer; font-weight: 600; color: var(--text); list-style-position: outside; }
details p { margin-top: 0.5rem; color: var(--text-secondary); font-size: 0.95rem; }

.cta { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; border-radius: 20px; padding: 1.75rem 1.5rem; margin: 1.5rem 0; text-align: center; }
.cta h2 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.cta p { opacity: 0.9; margin: 0 auto 1rem; max-width: 560px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.btn { display: inline-block; padding: 0.7rem 1.3rem; border-radius: 12px; font-weight: 700; font-size: 0.92rem; text-decoration: none; }
.btn-primary { background: #fff; color: var(--primary-dark); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,0.7); color: #fff; }

.notice { background: var(--highlight-bg); border-left: 4px solid var(--highlight-border); border-radius: 0 12px 12px 0; padding: 1rem 1.25rem; margin: 1rem 0; font-size: 0.88rem; color: var(--text-secondary); }
.notice strong { color: var(--text); }

.related h2, .hub-group h2 { font-size: 1.2rem; margin: 1.75rem 0 0.75rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.75rem; }
.exam-card { display: flex; flex-direction: column; gap: 0.2rem; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 1rem 1.1rem;
  text-decoration: none; color: var(--text); transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s; }
.exam-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); border-color: var(--primary-light); }
.exam-card .icon { font-size: 1.4rem; }
.exam-card .name { font-weight: 700; font-family: 'Outfit', sans-serif; }
.exam-card .kn { font-size: 0.85rem; color: var(--text-secondary); }
.exam-card .meta { font-size: 0.78rem; color: var(--primary); margin-top: 0.2rem; }
.all-link { margin-top: 1rem; font-weight: 600; }

footer { padding: 2rem 1rem 1.5rem; border-top: 1px solid var(--border); text-align: center; }
.footer-links { display: flex; justify-content: center; gap: 0.6rem 1.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: var(--muted); font-size: 0.85rem; font-weight: 500; }
.footer-links a:hover { color: var(--primary); }
.footer-copy { font-size: 0.78rem; color: #9CA3AF; }

@media (max-width: 520px) {
  .nav-links { gap: 0.8rem; }
  .nav-links a { font-size: 0.82rem; }
  .card { padding: 1.15rem; }
  th, td { padding: 0.55rem 0.65rem; }
}

/* ── bilingual ── */
html[lang="kn"] body, html[lang="kn"] h1, html[lang="kn"] h2, html[lang="kn"] h3 { font-family: 'Noto Sans Kannada', 'DM Sans', sans-serif; }
html[lang="kn"] .page-header h1 { letter-spacing: 0; line-height: 1.35; }
html[lang="kn"] .card ul li, html[lang="kn"] td, html[lang="kn"] .lead { line-height: 1.75; }
.lang-switch { border: 1.5px solid var(--primary-light); border-radius: 999px; padding: 0.15rem 0.7rem; color: var(--primary) !important; font-weight: 600 !important; }
.lang-switch:hover { background: var(--tint); }
.page-header .alt { margin-top: 0.4rem; color: var(--muted); font-size: 0.9rem; }
