/*
 * Nepal GPA Calculator styles
 * Copyright (c) 2026 Merokalam.com. All rights reserved.
 * Unauthorized copying, republishing, or redistribution of this tool UI is not permitted.
 */
/* ── MEROKALAM DESIGN TOKENS ── */
:root {
  --brand-blue: #2563eb;
  --brand-cyan: #0891b2;
  --hero-grad: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --radius: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.12);
  --font-display: 'Mukta', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* Grade colors */
  --g-outstanding: #059669;
  --g-excellent: #10b981;
  --g-verygood: #3b82f6;
  --g-good: #6366f1;
  --g-satisfactory: #f59e0b;
  --g-acceptable: #f97316;
  --g-basic: #ef4444;
  --g-ng: #dc2626;
}

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

/* ── NAV ── */
nav.mk-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.mk-nav .brand,
.mk-nav-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--brand-blue);
  text-decoration: none;
}
.mk-nav .brand span,
.mk-nav-logo { color: var(--brand-cyan); }
.mk-nav-links {
  margin-left: auto;
  display: flex;
  gap: .9rem;
  align-items: center;
}
.mk-nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 700;
}
.mk-nav-links a:hover { color: var(--brand-blue); }

/* ── HEADER ── */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.35rem 1.25rem 0;
}
.header {
  padding: .75rem 0 1.15rem;
  text-align: center;
}
.hero-kicker {
  color: #2563eb;
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .09em;
  margin-bottom: .5rem;
}
.header h1 {
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.55rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0;
  margin-bottom: .6rem;
}
.header p {
  color: #475569;
  max-width: 860px;
  font-size: 1rem;
  line-height: 1.75;
  margin: 0 auto;
}
.header-points {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: .85rem;
  justify-content: center;
}
.header-points span {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  border-radius: 999px;
  padding: .32rem .68rem;
  font-size: .76rem;
  font-weight: 800;
}

/* ── MAIN LAYOUT ── */
.main-wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

/* ── CARD ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 32px rgba(15,23,42,.06);
  overflow: hidden;
  margin-bottom: 1rem;
}
.card-head {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: .75rem;
  background: linear-gradient(180deg,#fff,#fbfdff);
}
.card-head-icon {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: var(--hero-grad);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.card-head-icon svg { width: 20px; height: 20px; fill: #fff; }
.card-head h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.card-body { padding: 1.25rem; }
.card-converter {
  margin-top: .35rem;
  position: relative;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background:
    linear-gradient(#ffffff,#ffffff) padding-box,
    linear-gradient(135deg,#2563eb,#0f766e) border-box;
  box-shadow: 0 20px 48px rgba(15,23,42,.12);
  padding: 1.05rem;
}
.card-converter::before {
  content: "";
  position: absolute;
  inset: .55rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  pointer-events: none;
}
.card-converter::after {
  content: "";
  position: absolute;
  left: 1.65rem;
  right: 1.65rem;
  top: 4.95rem;
  height: 1px;
  background: linear-gradient(90deg,transparent,#bfdbfe,#99f6e4,transparent);
  pointer-events: none;
}
.card-converter .card-head {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg,#f8fbff 0%,#eff6ff 52%,#ecfdf5 100%);
  color: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  padding: .95rem 1rem;
  margin-bottom: 1.05rem;
}
.card-converter .card-head-icon {
  background: linear-gradient(135deg,#2563eb,#0f766e);
  border: 0;
}
.card-converter .card-head h2 { color: #0f172a !important; }
.card-head-copy { min-width: 0; }
.card-head-sub {
  color: #64748b;
  font-size: .78rem;
  margin-top: .1rem;
}
.card-head-badges {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  justify-content: flex-end;
}
.head-badge {
  background: #ffffff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  border-radius: 999px;
  padding: .28rem .6rem;
  font-size: .72rem;
  font-weight: 800;
}
.card-converter .card-body {
  position: relative;
  z-index: 1;
  padding: 0;
}
.workspace-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .8rem;
  align-items: center;
  margin: 0 0 1rem;
  padding: 0 .2rem;
}
.workspace-title {
  color: #0f172a;
  font-size: .92rem;
  font-weight: 800;
}
.workspace-sub {
  color: #64748b;
  font-size: .78rem;
  margin-top: .12rem;
}
.quick-actions {
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.quick-btn {
  border: 1px solid #dbeafe;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 8px;
  padding: .48rem .68rem;
  font-size: .78rem;
  font-weight: 800;
  cursor: pointer;
}
.quick-btn:hover { background: #dbeafe; }
.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 1.05rem;
  align-items: start;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
}
.tool-inputs {
  min-width: 0;
  padding-right: 1rem;
  border-right: 1px solid #e2e8f0;
}
.tool-note {
  background: linear-gradient(135deg,#f8fafc,#eff6ff);
  border: 1px solid #dbeafe;
  color: #334155;
  border-radius: 8px;
  padding: .8rem 1rem;
  margin-bottom: .85rem;
  font-size: .88rem;
  line-height: 1.65;
}

/* ── TABS ── */
.tabs {
  display: flex;
  gap: 0;
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: .9rem;
}
.tab-btn {
  flex: 1;
  padding: .6rem 1rem;
  border: none;
  background: transparent;
  border-radius: 7px;
  font-family: var(--font-body);
  font-size: .92rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .2s ease;
}
.tab-btn.active {
  background: var(--surface);
  color: var(--brand-blue);
  box-shadow: 0 1px 4px rgba(15,23,42,.08);
}
.tab-btn:hover:not(.active) { color: var(--text); }

/* ── TAB PANELS ── */
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── SUBJECT TABLE ── */
.subj-table { width: 100%; border-collapse: collapse; margin-bottom: 1.25rem; }
.subject-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}
.subject-panel .subj-table { margin-bottom: 0; }
.subj-table th {
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .58rem .6rem;
  text-align: left;
  border-bottom: 2px solid var(--border);
  background: #f8fafc;
}
.subj-table td {
  padding: .62rem .5rem;
  border-bottom: 1px solid #eef2f7;
  vertical-align: middle;
}
.subj-table tr:last-child td { border-bottom: none; }
.subj-name {
  font-weight: 500;
  font-size: .9rem;
  color: var(--text);
}
.subject-meta {
  display: block;
  color: #94a3b8;
  font-size: .7rem;
  font-weight: 700;
  margin-top: .1rem;
}
.subj-ch {
  font-size: .85rem;
  font-weight: 700;
  color: #0f766e;
  text-align: center;
  min-width: 36px;
}
.subj-input {
  width: 86px;
  padding: .52rem .6rem;
  border: 1.5px solid #dbe3ef;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--text);
  transition: border-color .15s;
  background: #ffffff;
  text-align: center;
}
.subj-input::-webkit-outer-spin-button,
.subj-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.subj-input[type=number] { -moz-appearance: textfield; }
.subj-input:focus { outline: none; border-color: #2563eb; background: #fff; box-shadow: 0 0 0 4px rgba(37,99,235,.1); }
.subj-input.error { border-color: var(--g-ng); background: #fff5f5; box-shadow: 0 0 0 4px rgba(220,38,38,.08); }
.subj-input.ok { border-color: var(--g-outstanding); box-shadow: 0 0 0 4px rgba(5,150,105,.08); }

.mark-inputs { display: flex; gap: 6px; align-items: center; }
.mark-inputs .sep { font-size: .75rem; color: var(--text-light); font-weight: 600; }

/* Editable subject name */
.subj-name-editable {
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .9rem;
  color: var(--text);
  width: 100%;
  padding: 2px 4px;
  border-radius: 4px;
}
.subj-name-editable:focus { outline: 1px solid var(--border); background: var(--bg); }

/* Grade badge */
.grade-badge {
  display: inline-flex;
  align-items: center;
  padding: .2rem .55rem;
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
  min-width: 38px;
  justify-content: center;
}

/* ── NEB SPLIT ROW ── */
.neb-row-info { font-size: .72rem; color: var(--text-light); display: block; margin-top: 2px; }
.th-label, .pr-label { font-size: .72rem; color: var(--text-muted); font-weight: 600; }

/* ── RESULT PANEL ── */
.result-panel {
  display: block !important;
  background:
    linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.02)),
    linear-gradient(135deg,#0f172a,#172554 58%,#134e4a);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius);
  padding: 1rem;
  margin-top: 0;
  position: sticky;
  top: 72px;
  color: #ffffff;
  box-shadow: 0 20px 44px rgba(15,23,42,.22);
}
.result-panel::before {
  content: "OFFICIAL GPA SUMMARY";
  display: block;
  text-align: center;
  color: #a5b4fc;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .12em;
  margin-bottom: .7rem;
}
.result-gpa-main {
  text-align: center;
  margin-bottom: 1rem;
  background: linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  padding: 1rem .75rem;
}
.result-gpa-main .label {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #a5b4fc;
  margin-bottom: .4rem;
}
.gpa-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg,#ffffff,#67e8f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gpa-number.ng-mode {
  background: linear-gradient(135deg, #dc2626, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
}
.gpa-letter {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: .2rem;
}
.gpa-desc { font-size: .88rem; color: #cbd5e1; margin-top: .3rem; }
.gpa-meter {
  --meter: 0%;
  height: 10px;
  background: rgba(255,255,255,.12);
  border-radius: 999px;
  overflow: hidden;
  margin-top: .85rem;
}
.gpa-meter span {
  display: block;
  height: 100%;
  width: var(--meter);
  background: linear-gradient(90deg,#ef4444,#f59e0b,#10b981,#22d3ee);
  border-radius: inherit;
  transition: width .2s ease;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.result-stat {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  padding: .8rem;
  text-align: center;
}
.result-stat .rs-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); display: block; margin-bottom: .2rem; }
.result-stat .rs-label { color: #94a3b8; }
.result-stat .rs-val { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: #ffffff; }
.result-insight {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  border-radius: 8px;
  padding: .85rem;
  margin-bottom: 1rem;
}
.result-insight strong {
  display: block;
  color: #e0f2fe;
  font-size: .8rem;
  margin-bottom: .25rem;
}
.result-insight span {
  color: #cbd5e1;
  font-size: .78rem;
  line-height: 1.55;
}

/* NG alert */
.ng-alert {
  background: #fff5f5;
  border: 1.5px solid #fecaca;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}
.ng-alert-icon { font-size: 1.5rem; flex-shrink: 0; }
.ng-alert p { font-size: .88rem; color: #991b1b; font-weight: 500; }
.ng-alert strong { display: block; margin-bottom: .2rem; font-size: .92rem; }

/* ── COPY BUTTON ── */
.copy-btn {
  width: 100%;
  padding: .8rem 1.5rem;
  background: linear-gradient(135deg,#2563eb,#0891b2);
  color: #fff;
  border: none;
  border-radius: 9px;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  transition: opacity .2s, transform .1s;
}
.copy-btn:hover { opacity: .92; }
.copy-btn:active { transform: scale(.98); }
.copy-btn.copied { background: linear-gradient(135deg, #059669, #10b981); }
.result-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .6rem;
}
.reset-btn {
  padding: .8rem 1rem;
  background: rgba(255,255,255,.08);
  color: #e2e8f0;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 9px;
  font-family: var(--font-body);
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
}
.reset-btn:hover { border-color: rgba(255,255,255,.28); color: #ffffff; background: rgba(255,255,255,.12); }
.scale-compact {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: .45rem;
  padding: 1rem 1rem .75rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.scale-chip {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: .55rem;
  background: #fff;
}
.scale-chip strong { display: block; color: #0f172a; font-size: .86rem; }
.scale-chip span { color: #64748b; font-size: .72rem; }
.scale-card {
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(15,23,42,.07);
}

/* ── GRADING SCALE TABLE ── */
.scale-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.scale-table th {
  background: var(--bg);
  padding: .55rem .75rem;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
  text-align: left;
}
.scale-table td {
  padding: .5rem .75rem;
  border-bottom: 1px solid #f1f5f9;
}
.scale-table tr:last-child td { border-bottom: none; }

/* ── SEO CONTENT ── */
.seo-section { margin-top: 2.5rem; }
.content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 8px 26px rgba(15,23,42,.05);
}
.seo-section h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: .75rem;
  line-height: 1.3;
}
.seo-section h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.5rem 0 .6rem;
}
.seo-section p { color: #334155; margin-bottom: .85rem; font-size: .97rem; line-height: 1.75; }
.seo-section ul { margin: .5rem 0 1rem 1.25rem; }
.seo-section li { margin-bottom: .5rem; font-size: .97rem; color: #334155; line-height: 1.7; }

/* ── FAQ ── */
.faq-item {
  border: 1px solid var(--border);
  border-radius: 9px;
  margin-bottom: .75rem;
  overflow: hidden;
}
.faq-q {
  padding: .9rem 1.1rem;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface);
  user-select: none;
}
.faq-q:hover { background: var(--bg); }
.faq-chevron { transition: transform .25s; color: var(--text-muted); font-size: 1.1rem; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-a {
  display: none;
  padding: .75rem 1.1rem 1rem;
  font-size: .92rem;
  color: #475569;
  background: #fafbfc;
  border-top: 1px solid var(--border);
  line-height: 1.7;
}
.faq-item.open .faq-a { display: block; }

/* ── STREAM TABLE / INFO BOX ── */
.stream-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  margin: 1rem 0 .5rem;
}
.stream-table th {
  background: #eff6ff;
  color: #1e40af;
  font-weight: 700;
  padding: .55rem .75rem;
  text-align: left;
  border: 1px solid #bfdbfe;
}
.stream-table td {
  padding: .5rem .75rem;
  border: 1px solid var(--border);
  color: #334155;
  vertical-align: top;
}
.stream-table tr:nth-child(even) td { background: #f8fafc; }
.stream-table .req-badge {
  display: inline-block;
  background: #dbeafe;
  color: #1d4ed8;
  border-radius: 4px;
  padding: .1rem .4rem;
  font-size: .8rem;
  font-weight: 700;
}
.info-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
  padding: 1rem 1.1rem;
  margin: 1rem 0;
  font-size: .93rem;
  color: #78350f;
  line-height: 1.7;
}
.info-box strong { color: #92400e; }
.info-box ul { margin: .4rem 0 0 1.1rem; }
.info-box li { margin-bottom: .3rem; }
.gie-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 4px solid #22c55e;
  border-radius: 8px;
  padding: 1rem 1.1rem;
  margin: 1rem 0;
  font-size: .93rem;
  color: #14532d;
  line-height: 1.7;
}
.gie-box strong { color: #166534; }
.gie-box ul { margin: .4rem 0 0 1.1rem; }
.gie-box li { margin-bottom: .3rem; }

/* ── INTERESTING FACTS SECTION ── */
.facts-section { margin-bottom: 1rem; }
.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
  gap: .75rem;
  margin-bottom: 1rem;
}
.fact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-sm);
}
.fact-num {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--brand-blue);
  line-height: 1.1;
}
.fact-label { font-size: .85rem; color: var(--text-muted); margin-top: .25rem; line-height: 1.5; }
.fact-label strong { color: var(--text); }

/* ── GRADE BAR CHART ── */
.grade-chart {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}
.grade-chart-title { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--text); }
.grade-chart-sub { font-size: .8rem; color: var(--text-muted); margin: .2rem 0 .9rem; }
.bar-row {
  display: grid;
  grid-template-columns: 34px 88px 1fr 34px;
  align-items: center;
  gap: .5rem;
  margin-bottom: .5rem;
}
.bar-letter { font-weight: 800; font-size: .87rem; text-align: center; }
.bar-range { font-size: .75rem; color: var(--text-muted); }
.bar-track { height: 16px; background: #f1f5f9; border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 4px; }
.bar-pct { font-size: .78rem; font-weight: 700; color: var(--text-muted); text-align: right; }

/* ── GPA UNLOCK CARDS ── */
.gpa-unlock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .75rem;
  margin-top: .75rem;
}
.unlock-card { border-radius: 9px; overflow: hidden; border: 1px solid var(--border); }
.unlock-head {
  padding: .6rem .9rem;
  font-weight: 700;
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.unlock-body { padding: .55rem .9rem .7rem; font-size: .83rem; color: #475569; line-height: 1.6; }
.unlock-body ul { margin: .25rem 0 0 1rem; }
.unlock-body li { margin-bottom: .25rem; }

/* ── MILESTONE TIMELINE ── */
.milestone-list {
  list-style: none;
  margin: .75rem 0 0;
  padding: 0;
  border-left: 3px solid #bfdbfe;
  padding-left: 1.1rem;
}
.milestone-list li {
  position: relative;
  margin-bottom: .75rem;
  font-size: .88rem;
  color: #334155;
  line-height: 1.55;
}
.milestone-list li::before {
  content: '';
  position: absolute;
  left: -1.4rem;
  top: .35rem;
  width: 9px;
  height: 9px;
  background: var(--brand-blue);
  border-radius: 50%;
}
.milestone-year {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--brand-blue);
  margin-right: .4rem;
  font-size: .9rem;
}

/* ── FOOTER ── */
footer {
  background: var(--text);
  color: #94a3b8;
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: .88rem;
}
footer a { color: #cbd5e1; text-decoration: none; margin: 0 .5rem; }
footer a:hover { color: #fff; }
.footer-links { margin-bottom: .75rem; flex-wrap: wrap; display: flex; justify-content: center; gap: .25rem; }

/* ── RESPONSIVE ── */
@media (max-width: 620px) {
  nav.mk-nav { padding: 0 1rem; }
  .mk-nav-links { gap: .6rem; }
  .mk-nav-links a { font-size: .82rem; }
  .container { padding: 1rem 1rem 0; }
  .header h1 { font-size: 1.7rem; }
  .header-points { gap: .4rem; }
  .header-points span { font-size: .73rem; }
  .workspace-toolbar { grid-template-columns: 1fr; }
  .quick-actions { justify-content: flex-start; }
  .card-head { align-items: flex-start; }
  .card-head-badges { display: none; }
  .card-converter { padding: .75rem; }
  .card-converter::before { inset: .35rem; }
  .card-converter::after { display: none; }
  .card-head, .card-body, .content-card { padding: 1rem; }
  .tool-layout { grid-template-columns: 1fr; }
  .tool-inputs { padding-right: 0; border-right: 0; }
  .result-panel { position: static; }
  .result-grid { grid-template-columns: repeat(2, 1fr); }
  .result-actions { grid-template-columns: 1fr; }
  .scale-compact { grid-template-columns: repeat(2,1fr); }
  .subj-table th:nth-child(4),
  .subj-table td:nth-child(4) { display: none; } /* hide GP col on small */
  .gpa-number { font-size: 2.75rem; }
  .subj-input { width: 72px; font-size: .85rem; }
}
@media (max-width: 400px) {
  .result-grid { grid-template-columns: 1fr 1fr; }
}
