* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  min-height: 100vh;
  background: linear-gradient(135deg, #fef3c7 0%, #fbcfe8 50%, #c7d2fe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: #1f2937;
}

main {
  text-align: center;
  max-width: 600px;
}

h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #4f46e5, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #4b5563;
  margin-bottom: 2.5rem;
}

.cta {
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 999px;
  background: #1f2937;
  color: white;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(31, 41, 55, 0.25);
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(31, 41, 55, 0.3);
}

.picker {
  margin-top: 2.5rem;
}

.picker-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6b7280;
  margin-bottom: 1.25rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
  max-width: 640px;
  margin: 0 auto;
}

.country-card {
  background: white;
  border-radius: 18px;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #1f2937;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(31, 41, 55, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.country-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(31, 41, 55, 0.18);
}

.country-card .flag {
  font-size: 2.75rem;
  line-height: 1;
}

.country-card .country-name {
  font-size: 1.05rem;
}

.country-card .status {
  font-size: 0.7rem;
  color: #9ca3af;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.country-card.disabled {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

/* ====== New homepage layout (body.home) ====== */

body.home {
  display: block;
  align-items: initial;
  justify-content: initial;
  padding: 0;
  background: #0c0c0c;
  color: #f0f0ee;
}

body.home h1.hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem) !important;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #1a1a1a !important;
  text-align: left;
  line-height: 1.1;
  padding: 0 !important;
  margin: 0 0 20px 0 !important;
  max-width: 600px;
  background: none !important;
  -webkit-background-clip: border-box !important;
  -webkit-text-fill-color: #1a1a1a !important;
  background-clip: border-box !important;
}

.top-strip {
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #fde68a 0%, #fbcfe8 50%, #c7d2fe 100%);
}

.home-main {
  padding-bottom: 8rem;
}

.section-break {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0.5rem 0;
}

.section-marquee {
  width: 100%;
  height: 28px;
  background: transparent;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-bottom: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-marquee .marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 60s linear infinite;
}

.section-marquee .marquee-content {
  display: inline-block;
  padding-right: 1.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(240, 240, 238, 0.18);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.home-section {
  width: 100%;
}

.section-header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding: 0 2rem;
}

body.home .section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  color: #f0f0ee;
  letter-spacing: -0.04em;
  margin: 0;
  background: none;
  -webkit-text-fill-color: initial;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.section-caption {
  color: #be185d;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 0.35rem;
  letter-spacing: 0.01em;
}

/* ── Homepage overrides ── */
body.home main { max-width: none; text-align: initial; }

/* Korea page uses full width — cancel the narrow 600px default */
body.korea-page main { max-width: none; text-align: initial; }

body.home .home-section {
  max-width: 1100px;
  margin: 0 auto;
}

body.home .section-header {
  padding: 4.5rem 3rem 1.5rem;
  margin-bottom: 0;
  text-align: left;
}

body.home .section-caption {
  font-size: 0.95rem;
  color: rgba(240, 240, 238, 0.38);
  font-weight: 400;
  margin-top: 0.3rem;
  letter-spacing: 0.01em;
}

/* ====== Country page (hungary.html, slovakia.html etc.) — sidebar layout ====== */

body.country-page {
  display: grid;
  grid-template-columns: 240px 1fr;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  min-height: 100vh;
  background: #0c0c0c;
  color: #f0f0ee;
}

.country-nav {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.country-nav .nav-header {
  font-size: 0.85rem;
  color: rgba(240, 240, 238, 0.38);
  line-height: 1.5;
}

.country-nav .nav-header a {
  color: rgba(240, 240, 238, 0.38);
  text-decoration: none;
}

.country-nav .nav-header a:hover {
  color: rgba(240, 240, 238, 0.7);
  text-decoration: underline;
}

.country-nav .nav-current {
  color: rgba(240, 240, 238, 0.65);
  font-weight: 600;
}

.country-nav .nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.country-nav .nav-list a {
  display: block;
  position: relative;
  color: rgba(240, 240, 238, 0.6);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.5rem 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.country-nav .nav-list a:hover {
  color: #f0f0ee;
  transform: translateX(3px);
}

.country-nav .nav-list a.active {
  color: #f0f0ee;
}

.country-nav .nav-list a.active::before {
  content: "";
  position: absolute;
  left: -0.85rem;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f0f0ee;
  transform: translateY(-50%);
}

.country-nav .nav-sep {
  margin: 0 0.25rem;
  color: rgba(240, 240, 238, 0.2);
}

.country-main {
  padding: 3rem 3rem 30vh;
  max-width: 900px;
  width: 100%;
}

.country-hero {
  margin-bottom: 3rem;
}

body.country-page .country-hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 1.25rem;
  color: #f0f0ee;
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  background-clip: initial;
}

.marquee-strip {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 0.55rem 0;
  position: relative;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.marquee-content {
  display: inline-block;
  padding-right: 1rem;
  font-size: 0.7rem;
  color: rgba(240, 240, 238, 0.2);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.country-section {
  margin-bottom: 4rem;
  scroll-margin-top: 2rem;
}

body.country-page .country-section h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #f0f0ee;
  margin-bottom: 1.5rem;
  background: none;
  -webkit-text-fill-color: initial;
  background-clip: initial;
}

.country-description {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(240, 240, 238, 0.55);
  margin-bottom: 2.5rem;
}

.subsection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.subsection-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.4rem 1.25rem 1.5rem;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.subsection-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
}

.subsection-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f0f0ee;
  margin: 0;
}

.subsection-card p {
  font-size: 0.9rem;
  color: rgba(240, 240, 238, 0.5);
  line-height: 1.5;
  margin: 0;
  flex-grow: 1;
}

.learn-more {
  display: inline-block;
  align-self: flex-start;
  color: rgba(240, 240, 238, 0.85);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  margin-top: 0.5rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.learn-more:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.program-block {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.5rem 1.75rem 1.75rem;
  margin-bottom: 1rem;
  box-shadow: none;
}

.program-block h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #f0f0ee;
  margin: 0 0 0.6rem;
}

.program-block p {
  color: rgba(240, 240, 238, 0.5);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.bullet-list li {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 0.95rem 1.25rem 0.95rem 2.5rem;
  color: rgba(240, 240, 238, 0.75);
  line-height: 1.5;
  box-shadow: none;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.bullet-list li:hover {
  transform: translateX(2px);
  border-color: rgba(255, 255, 255, 0.15);
}

.bullet-list li::before {
  content: "→";
  position: absolute;
  left: 1rem;
  top: 0.95rem;
  color: rgba(240, 240, 238, 0.3);
  font-weight: 700;
}

.test-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.test-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.75rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
  box-shadow: none;
}

.test-prompt {
  font-size: 1.05rem;
  font-weight: 600;
  color: #f0f0ee;
  line-height: 1.4;
  margin: 0;
}

.test-arrow {
  color: rgba(240, 240, 238, 0.3);
  font-size: 1.4rem;
  line-height: 1;
  opacity: 0.7;
}

.test-cta {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.7rem 1.75rem;
  text-decoration: none;
  color: rgba(240, 240, 238, 0.85);
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  margin-top: 0.25rem;
}

.test-cta.disabled {
  cursor: default;
  pointer-events: none;
  opacity: 0.45;
}

.test-cta-label {
  font-size: 1rem;
}

.test-cta-soon {
  font-size: 0.65rem;
  font-style: normal;
  font-weight: 600;
  color: rgba(240, 240, 238, 0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ====== Modal overlay (GKS and future modals) ====== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-panel {
  background: #161616;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  width: 90vw;
  max-width: 860px;
  height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s ease;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.modal-overlay.is-open .modal-panel {
  transform: translateY(0) scale(1);
}

/* wide variant for summer camps / programs modals */
.modal-panel-wide {
  max-width: 1100px;
  width: 95vw;
}

/* program entry meta line (dates + duration) */
.program-meta {
  font-size: 0.88rem;
  color: rgba(240, 240, 238, 0.45);
  margin: 0.1rem 0 0.35rem;
  font-weight: 500;
}

/* program cost line */
.program-cost {
  font-size: 0.9rem;
  color: rgba(240, 240, 238, 0.85);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* badge for funded/competitive programs */
.program-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  margin-left: 0.6rem;
  vertical-align: middle;
  position: relative;
  top: -2px;
}

.program-badge--funded {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.program-badge--competitive {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}

.modal-close {
  position: sticky;
  top: 1.25rem;
  float: right;
  margin: 1.25rem 1.25rem 0 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(240, 240, 238, 0.75);
  box-shadow: none;
  transition: background 0.15s ease, transform 0.15s ease;
  z-index: 2;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: scale(1.1);
}

.modal-content {
  padding: 0 2.5rem 3rem;
  clear: both;
}

.modal-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  padding: 1.5rem 0 2rem;
  margin: 0;
  color: #f0f0ee;
  background: none;
  -webkit-text-fill-color: initial;
}

.uni-index-meta {
  font-size: 0.67rem;
  color: rgba(240, 240, 238, 0.22);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: -0.5rem 0 1.1rem;
}

.uni-index {
  counter-reset: uni-rank;
  column-count: 3;
  column-gap: 2.5rem;
  column-rule: 1px solid rgba(255, 255, 255, 0.05);
  margin: 0 0 2.5rem;
}

.uni-index a {
  display: block;
  counter-increment: uni-rank;
  font-size: 0.8rem;
  color: rgba(240, 240, 238, 0.45);
  text-decoration: none;
  transition: color 0.15s ease;
  padding: 0.2rem 0;
  break-inside: avoid;
}

.uni-index a::before {
  content: counter(uni-rank);
  font-size: 0.6rem;
  font-family: 'Courier New', monospace;
  color: rgba(240, 240, 238, 0.2);
  margin-right: 0.5rem;
  display: inline-block;
  min-width: 1.3rem;
  text-align: right;
}

.uni-index a::after {
  display: none;
}

.uni-index a:hover {
  color: rgba(240, 240, 238, 0.85);
}

.uni-section {
  scroll-margin-top: 1.5rem;
}

.modal-section {
  margin-bottom: 2.5rem;
  scroll-margin-top: 2rem;
}

.modal-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f0f0ee;
  margin-bottom: 1.25rem;
}

body.modal-open {
  overflow: hidden;
}

/* ====== University sections inside the universities modal ====== */

.uni-section {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.uni-section:last-child {
  border-bottom: none;
}

.uni-header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.uni-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #f0f0ee;
  margin: 0;
}

.uni-website {
  font-size: 0.88rem;
  color: rgba(240, 240, 238, 0.5);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.uni-website:hover {
  text-decoration: underline;
}

.uni-location {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(240, 240, 238, 0.45);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* accordion (details / summary) */

.accordion-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  margin-top: 0.65rem;
  box-shadow: none;
  overflow: hidden;
}

.accordion-item summary {
  font-weight: 700;
  font-size: 1rem;
  color: #f0f0ee;
  padding: 1rem 1.25rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.15s ease;
}

.accordion-item summary:hover {
  background: rgba(255, 255, 255, 0.05);
}

.accordion-item summary::-webkit-details-marker { display: none; }

.accordion-item summary::after {
  content: "▾";
  color: rgba(240, 240, 238, 0.5);
  font-size: 1.1rem;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.accordion-item[open] summary::after {
  transform: rotate(180deg);
}

.accordion-body {
  padding: 0 1.25rem 1.25rem;
}

/* nested faculty drill-down inside programs accordion */

.faculty-item {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  margin-bottom: 0.45rem;
  overflow: hidden;
}

.faculty-item:last-of-type {
  margin-bottom: 0;
}

.faculty-item > summary {
  padding: 0.6rem 1rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(240, 240, 238, 0.8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  list-style: none;
  transition: background 0.15s ease;
}

.faculty-item > summary:hover {
  background: rgba(255, 255, 255, 0.07);
}

.faculty-item > summary::-webkit-details-marker { display: none; }

.faculty-item > summary::after {
  content: "▾";
  color: rgba(240, 240, 238, 0.4);
  font-size: 0.95rem;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faculty-item[open] > summary::after {
  transform: rotate(180deg);
}

.faculty-body {
  padding: 0.65rem 1rem 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.faculty-site-link {
  display: inline-block;
  font-size: 0.78rem;
  color: rgba(240, 240, 238, 0.55);
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 0.45rem;
}

.faculty-site-link:hover {
  text-decoration: underline;
}

.dept-home {
  font-size: 0.65rem;
  color: rgba(240, 240, 238, 0.35);
  text-decoration: none;
  margin-left: 0.3rem;
  vertical-align: middle;
}

.dept-home:hover {
  color: rgba(240, 240, 238, 0.75);
}

/* ═══════════════════════════════════════
   HOME PAGE v2 — beige hero + drawer
   ═══════════════════════════════════════ */

body.home {
  background: #f5f0eb;
  display: block;
  align-items: unset;
  justify-content: unset;
  padding: 0;
  min-height: 100vh;
}

/* ── Top nav ── */
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
}

.site-logo {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 700;
  color: #333;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.nav-dashboard-btn {
  background: #222;
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 11px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  cursor: pointer;
}

.nav-dashboard-btn:hover {
  background: #444;
}

/* ── Account button, top-right (account.js fills it) ── */
.nav-account { position: relative; display: flex; align-items: center; min-height: 34px; }
.nav-signin {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: #222;
  border: 1.5px solid #ddd4cb; border-radius: 20px;
  padding: 7px 16px;
  font-size: 12px; font-weight: 700; font-family: 'Plus Jakarta Sans', sans-serif;
  cursor: pointer; transition: border-color .15s;
}
.nav-signin:hover { border-color: #222; }
.nav-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid #fff; box-shadow: 0 0 0 1.5px #ddd4cb;
  padding: 0; overflow: hidden; cursor: pointer;
  background: #222; color: #fff;
  font: 700 14px 'Plus Jakarta Sans', sans-serif;
  display: grid; place-items: center;
}
.nav-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nav-avatar:hover { box-shadow: 0 0 0 1.5px #222; }
.nav-menu {
  display: none; position: absolute; top: calc(100% + 8px); right: 0; z-index: 150;
  min-width: 220px; background: #fff; border: 1px solid #e8e0d8; border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,.10); padding: 6px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.nav-menu.open { display: block; }
.nav-menu-who { padding: 10px 12px 12px; border-bottom: 1px solid #f0e9e2; margin-bottom: 4px; }
.nav-menu-who b { display: block; font-size: 13px; color: #1a1a1a; }
.nav-menu-who i { display: block; font-style: normal; font-size: 11px; color: #999; margin-top: 2px; }
.nav-menu a, .nav-menu button {
  display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px;
  font-size: 13px; font-weight: 600; color: #333; text-decoration: none;
  background: none; border: none; cursor: pointer; font-family: inherit;
}
.nav-menu a:hover, .nav-menu button:hover { background: #f5f0eb; }

/* ── Hero ── */
.home-main {
  padding: 28px 40px 40px;
  max-width: 860px;
}

.country-badge {
  display: inline-block;
  background: #222;
  color: #f5f0eb;
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 4px;
  margin-bottom: 14px;
  letter-spacing: 1px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.1;
  margin-bottom: 20px;
  background: none;
  -webkit-text-fill-color: #1a1a1a;
}

.hero-sub {
  font-size: 16px;
  color: #555;
  max-width: 520px;
  margin-bottom: 28px;
  line-height: 1.7;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ── Dashboard drawer ── */
.drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 100;
}

.drawer-backdrop.open { display: block; }

.drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  height: 100vh;
  background: #fff;
  box-shadow: -6px 0 32px rgba(0, 0, 0, 0.12);
  z-index: 101;
  transition: right 0.28s ease;
  display: flex;
  flex-direction: column;
}

.drawer.open { right: 0; }

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}

.drawer-title {
  font-size: 14px;
  font-weight: 700;
  color: #111;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.drawer-close {
  background: none;
  border: none;
  font-size: 18px;
  color: #bbb;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.drawer-close:hover { color: #555; }

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.drawer-greeting {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  margin-bottom: 20px;
}

.drawer-stats {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.stat-tile {
  flex: 1;
  background: #f5f0eb;
  border-radius: 10px;
  padding: 14px 10px;
  text-align: center;
}

.stat-tile--dark { background: #222; }

.stat-num {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: #111;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-tile--dark .stat-num { color: #fff; }

.stat-label {
  display: block;
  font-size: 10px;
  color: #888;
  letter-spacing: 0.5px;
}

.stat-tile--dark .stat-label { color: #aaa; }

.drawer-section-label {
  font-size: 10px;
  letter-spacing: 2px;
  color: #aaa;
  margin-bottom: 10px;
}

.saved-item {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 8px;
}

.saved-item-name {
  font-size: 13px;
  font-weight: 600;
  color: #111;
  margin-bottom: 2px;
}

.saved-item-meta {
  font-size: 11px;
  color: #888;
}

.drawer-empty {
  font-size: 13px;
  color: #aaa;
  line-height: 1.6;
  margin-top: 8px;
}

.drawer-loading {
  font-size: 13px;
  color: #aaa;
}

.drawer-login {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  text-align: center;
  gap: 20px;
}

.drawer-login-text {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  max-width: 260px;
}

.drawer-google-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.drawer-google-btn:hover { border-color: #aaa; }

/* ── Save button ── */
.save-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1.5px solid #e0e0e0;
  border-radius: 7px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: border-color 0.15s;
}

.save-btn:hover { border-color: #999; }
.save-btn.saved { border-color: #2d7d2d; color: #2d7d2d; }

.scholarship-save-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f9f9f9;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
  gap: 16px;
}

.scholarship-save-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.scholarship-save-info strong {
  font-size: 14px;
  color: #111;
}

.scholarship-save-info span {
  font-size: 12px;
  color: #888;
}

.faculty-majors {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.875rem;
  line-height: 1.8;
  color: rgba(240, 240, 238, 0.6);
}

/* external scholarship sections inside accordion body */

.ext-section {
  margin-bottom: 1rem;
}

.ext-section:last-child {
  margin-bottom: 0;
}

.ext-section h3 {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(240, 240, 238, 0.45);
  text-transform: lowercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.35rem;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.info-table th {
  text-align: left;
  font-weight: 600;
  color: rgba(240, 240, 238, 0.35);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.4rem 0.5rem 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.info-table td {
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: rgba(240, 240, 238, 0.65);
  vertical-align: top;
}

.info-table tr:last-child td {
  border-bottom: none;
}

.table-note {
  font-size: 0.82rem;
  color: rgba(240, 240, 238, 0.4);
  line-height: 1.5;
  margin: 0;
}

.table-note a {
  color: rgba(240, 240, 238, 0.6);
  text-decoration: none;
}

.table-note a:hover {
  text-decoration: underline;
}

.modal-note {
  font-size: 0.88rem;
  color: rgba(240, 240, 238, 0.45);
  line-height: 1.55;
  margin: 0.75rem 0 0;
}

.pdf-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(240, 240, 238, 0.85);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}

.pdf-download-btn:hover {
  background: rgba(255, 255, 255, 0.11);
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════
   SITE FOOTER (shared across all pages)
   ═══════════════════════════════════════ */

.site-footer {
  /* grid-column lets it span full width on the grid-based country pages;
     it's harmless on block/flex pages. width:100% keeps it full-bleed elsewhere. */
  grid-column: 1 / -1;
  width: 100%;
  box-sizing: border-box;
  background: #0c0c0c;
  color: #f0f0ee;
  font-family: 'Plus Jakarta Sans', sans-serif;
  padding: 56px 40px 40px;
  margin-top: 80px;
}

.site-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.06em;
  color: #ffffff;
}

.footer-tagline {
  font-size: 13px;
  line-height: 1.6;
  color: #8a8a86;
  margin-top: 10px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col-title {
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.footer-col a {
  color: #b5b5b0;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: color 0.15s;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  max-width: 1100px;
  margin: 36px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: #6a6a66;
}

/* ── Route Navigation ────────────────────────────────────────── */

.route-info-block {
  background: white;
  border-radius: 8px;
  padding: 24px;
  border: 1px solid #e0d8d0;
  margin-bottom: 32px;
}

/* Stepper */
.stepper {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.stepper-step {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stepper-label {
  font-size: 13px;
  font-weight: 600;
  color: #666;
}

.stepper-arrow {
  color: #d4ccc4;
  font-size: 16px;
  font-weight: 300;
}

/* Compact Strip */
.route-strip {
  background: #f5f0eb;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 24px;
  border-left: 3px solid #d4ccc4;
}

.route-strip-title {
  font-size: 12px;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.route-strip-content {
  font-size: 14px;
  color: #666;
}

.route-strip-flow {
  font-weight: 600;
  color: #1a1410;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .stepper {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .stepper-arrow {
    display: none;
  }

  .stepper-step {
    margin-left: 0;
  }
}

/* Route Entry Block */
.route-entry-block {
  background: transparent;
  padding: 0;
  border: none;
  margin-bottom: 48px;
}

.route-entry-header {
  margin-bottom: 24px;
}

.route-entry-header h2 {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #1a1410;
  line-height: 1.2;
  margin-bottom: 8px;
}

.route-entry-header p {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  color: #666;
  line-height: 1.6;
  max-width: 520px;
}

.route-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.route-card {
  background: #fff;
  border-radius: 16px;
  padding: 30px 28px;
  border: 1px solid #ece5dd;
  box-shadow: 0 2px 10px rgba(60, 40, 20, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.route-card:hover {
  transform: translateY(-4px);
  border-color: #e0d8d0;
  box-shadow: 0 14px 30px rgba(60, 40, 20, 0.10);
}

.route-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1a1410;
}

.route-card-desc {
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
  line-height: 1.5;
}

.route-card-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #888;
  background: #f3efe9;
  padding: 6px 11px;
  border-radius: 999px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.route-card-badge--major {
  background: #e8f0fb;
  color: #3a6ea5;
}

.route-card-badge--funding {
  background: #f2ecfb;
  color: #6a4fb0;
}

.route-card-best-for {
  font-size: 12px;
  color: #888;
  margin-bottom: 16px;
  font-weight: 600;
}

.route-card-btn {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #1a1410;
  background: white;
  border: 1.5px solid #d4ccc4;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.route-card-btn:hover {
  background: #1a1410;
  color: white;
  border-color: #1a1410;
}

/* Premium card variant */
.route-card--premium {
  background: #1a1410;
  border-color: #1a1410;
}

.route-card--premium h3 {
  color: white;
}

.route-card--premium .route-card-desc {
  color: #ccc;
}

.route-card--premium .route-card-best-for {
  color: #aaa;
}

.route-card--premium .route-card-btn {
  color: #1a1410;
  background: white;
  border-color: white;
}

.route-card--premium .route-card-btn:hover {
  background: #f0e9df;
  color: #1a1410;
  border-color: #f0e9df;
}

.route-card--premium:hover {
  border-color: #333;
  background: #222;
}

@media (max-width: 768px) {
  .route-cards {
    grid-template-columns: 1fr;
  }

  .route-entry-header {
    margin-bottom: 20px;
  }

  .route-entry-header h2 {
    font-size: 22px;
  }

  .route-entry-header p {
    font-size: 14px;
  }
}

/* Compact stepper variant — pale-yellow, centered, short */
.route-info-block--compact {
  padding: 11px 20px;
  margin-top: 22px;
  margin-bottom: 10px;
  background: #fdf6df;
  border: 1px solid #f2e6bd;
  border-radius: 14px;
}

.route-info-block--compact .stepper {
  justify-content: center;
  gap: 12px;
  margin-bottom: 0;
}

.route-info-block--compact .stepper-label {
  color: #6b5a2a;
  font-weight: 700;
}

.route-info-block--compact .stepper-arrow {
  color: #cbb87a;
}

/* Description below stepper — pill / mini-notification (matches filter pills) */
.route-info-note {
  text-align: center;
  margin-bottom: 24px;
}

.route-info-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 820px;
  padding: 8px 18px;
  border-radius: 20px;
  background: #f2ecfb;
  border: 1px solid #e0d4f5;
  font-size: 12.5px;
  color: #6a5a95;
  line-height: 1.45;
  text-align: left;
}

.route-info-pill-ic {
  flex-shrink: 0;
  color: #8b6fd0;
  font-size: 14px;
}


/* ═══════════════════════════════════════════════════════════
   STYLE C · BOLD — whole site
   Chunky, hand-made, sticker energy: 2px black outlines,
   hard flat shadows, Syne 800 headings, yellow highlighter,
   the site's pastel colours. Everything below overrides the
   older look above it (later rules win).
   ═══════════════════════════════════════════════════════════ */

:root {
  --ink: #111;
  --sh: 4px 4px 0 #111;
  --sh-sm: 2px 2px 0 #111;
  --sh-lg: 6px 6px 0 #111;
  --hl: #fde68a;      /* highlighter yellow */
  --lav: #c7d2fe;     /* lavender */
  --cream: #fef3c7;   /* cream-yellow */
  --pink: #fbcfe8;
  --mint: #bbf7d0;
  --lilac: #e9d5ff;
  --paper: #faf6ee;
}

/* Yellow highlighter stroke under key words — use <em class="hl"> or .hl */
.hl, .hero-title em, .soon-title em, .route-entry-header h2 em {
  font-style: normal;
  background: linear-gradient(transparent 58%, var(--hl) 58%, var(--hl) 90%, transparent 90%);
  padding: 0 4px;
  -webkit-text-fill-color: currentColor;
}

/* Paper background with a faint dot grid — feels like a sketchbook page */
body.home, body.korea-page {
  background-color: var(--paper) !important;
  background-image: radial-gradient(rgba(17,17,17,.07) 1px, transparent 1.2px);
  background-size: 22px 22px;
  color: var(--ink);
}

/* ── Top nav ── */
.site-nav {
  background: #fff;
  border-bottom: 2px solid var(--ink);
  padding: 14px 40px;
}
.site-logo {
  display: inline-block;
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--ink);
  background: var(--hl);
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 4px 10px;
  box-shadow: var(--sh-sm);
  transform: rotate(-2deg);
}

/* Account button */
.nav-signin {
  background: #fff; color: var(--ink);
  border: 2px solid var(--ink); border-radius: 10px;
  box-shadow: var(--sh-sm);
  transition: transform .1s, box-shadow .1s;
}
.nav-signin:hover { border-color: var(--ink); transform: translate(-1px,-1px); box-shadow: 3px 3px 0 #111; }
.nav-signin:active { transform: translate(2px,2px); box-shadow: none; }
.nav-avatar { border: 2px solid var(--ink); box-shadow: var(--sh-sm); background: var(--lav); color: var(--ink); }
.nav-avatar:hover { box-shadow: 3px 3px 0 #111; }
.nav-menu { border: 2px solid var(--ink); border-radius: 12px; box-shadow: var(--sh); }
.nav-menu-who { border-bottom: 2px solid var(--ink); }
.nav-menu a:hover, .nav-menu button:hover { background: var(--cream); }

/* ── Home hero ── */
.home-main { padding: 44px 40px 40px; max-width: 1100px; }
.country-badge {
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: var(--sh-sm);
  padding: 6px 14px;
  margin-bottom: 20px;
  letter-spacing: .5px;
}
body.home h1.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem) !important;
  letter-spacing: -0.03em;
  color: var(--ink) !important;
  -webkit-text-fill-color: var(--ink) !important;
  max-width: 760px;
  margin-bottom: 18px !important;
}
.hero-sub { color: #333; font-size: 16.5px; max-width: 560px; margin-bottom: 44px; }

/* ── Route cards ── */
.route-entry-header h2 {
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.02em;
  color: var(--ink);
}
.route-entry-header p { color: #444; }
.route-cards { gap: 22px; }
.route-card {
  border: 2px solid var(--ink);
  border-radius: 16px;
  box-shadow: var(--sh);
  display: flex;
  flex-direction: column;
  transition: transform .12s, box-shadow .12s;
}
.route-cards .route-card:nth-child(1) { background: var(--lav); }
.route-cards .route-card:nth-child(2) { background: var(--cream); }
.route-card:hover {
  transform: translate(-2px, -2px);
  border-color: var(--ink);
  box-shadow: var(--sh-lg);
}
.route-card h3 { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 22px; color: var(--ink); }
.route-card-desc { color: #2a2a2a; }
.route-card-best-for { color: var(--ink); opacity: .7; }
.route-card-badge {
  align-self: flex-start;
  border: 1.5px solid var(--ink);
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  padding: 4px 9px;
}
.route-card-badge--major { background: #fff; color: var(--ink); }
.route-card-badge--funding { background: #fff; color: var(--ink); }
.route-card-btn {
  align-self: flex-start;
  margin-top: auto;
  font-weight: 800;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 10px;
  box-shadow: var(--sh-sm);
  transition: transform .1s, box-shadow .1s, background .1s;
}
.route-card-btn:hover {
  background: var(--hl);
  color: var(--ink);
  border-color: var(--ink);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 #111;
}
.route-card-btn:active { transform: translate(2px, 2px); box-shadow: none; }

.route-card--premium { background: var(--ink); border-color: var(--ink); }
.route-card--premium:hover { background: var(--ink); border-color: var(--ink); }
.route-card--premium h3 { color: #fff; }
.route-card--premium .route-card-desc { color: #ddd; }
.route-card--premium .route-card-best-for { color: #bbb; opacity: 1; }
.route-card--premium .route-card-badge { background: var(--pink); color: var(--ink); border-color: #fff; }
.route-card--premium .route-card-btn { background: var(--hl); border-color: #fff; color: var(--ink); box-shadow: 2px 2px 0 #fff; }
.route-card--premium .route-card-btn:hover { background: #fff; border-color: #fff; color: var(--ink); box-shadow: 3px 3px 0 var(--hl); }

/* ── Footer ── */
.site-footer {
  background: var(--ink);
  border-top: 2px solid var(--ink);
  margin-top: 80px;
}
.footer-logo {
  display: inline-block;
  color: var(--ink);
  background: var(--hl);
  border-radius: 8px;
  padding: 3px 10px;
  transform: rotate(-2deg);
  box-shadow: 3px 3px 0 #fff;
}
.footer-tagline { color: #bdbdb8; }
.footer-col-title { color: var(--hl); }
.footer-col a { color: #e5e5e0; }
.footer-col a:hover { color: var(--ink); background: var(--hl); border-radius: 4px; }
.footer-bottom { border-top: 2px dashed rgba(255,255,255,.2); color: #8a8a86; }

/* ── Countries picker (countries.html — plain body, no class) ── */
body:not([class]) {
  background-color: var(--paper);
  background-image: radial-gradient(rgba(17,17,17,.07) 1px, transparent 1.2px);
  background-size: 22px 22px;
  color: var(--ink);
}
body:not([class]) h1 {
  font-family: 'Syne', sans-serif;
  color: var(--ink);
  background: none;
  -webkit-text-fill-color: var(--ink);
  letter-spacing: -0.04em;
}
body:not([class]) .tagline { color: #333; }
body:not([class]) main { width: 100%; min-width: 0; }
@media (max-width: 600px) {
  body:not([class]) { padding: 2rem 16px; }
  body:not([class]) h1 { font-size: clamp(2.4rem, 12vw, 3.4rem); }
}
.picker-label {
  display: inline-block;
  color: var(--ink);
  font-weight: 800;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 5px 14px;
  box-shadow: var(--sh-sm);
}
.country-card {
  border: 2px solid var(--ink);
  border-radius: 16px;
  box-shadow: var(--sh);
  color: var(--ink);
  font-weight: 800;
  transition: transform .12s, box-shadow .12s;
}
.cards .country-card:nth-child(3n+1) { background: var(--lav); }
.cards .country-card:nth-child(3n+2) { background: var(--pink); }
.cards .country-card:nth-child(3n+3) { background: var(--mint); }
.country-card:hover { transform: translate(-2px, -2px); box-shadow: var(--sh-lg); }
.country-card:active { transform: translate(2px, 2px); box-shadow: none; }
.country-card .country-name { font-family: 'Syne', sans-serif; font-size: 1.2rem; }

/* ── Home: one main button + "what you can do" strip ── */
.hero-cta {
  display: inline-block; padding: 15px 28px;
  font-size: 17px; font-weight: 800; text-decoration: none;
  color: var(--ink); background: var(--hl);
  border: 2px solid var(--ink); border-radius: 12px; box-shadow: var(--sh);
  transition: transform .1s, box-shadow .1s;
}
.hero-cta:hover  { transform: translate(-2px,-2px); box-shadow: var(--sh-lg); }
.hero-cta:active { transform: translate(2px,2px); box-shadow: none; }
.feature-strip {
  list-style: none; margin: 56px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.feature-strip li {
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px; background: #fff;
  border: 2px solid var(--ink); border-radius: 14px;
}
.feature-strip b { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 16px; color: var(--ink); }
.feature-strip i { font-style: normal; font-size: 13px; line-height: 1.5; color: #444; }
.feature-ic {
  width: 38px; height: 38px; margin-bottom: 8px; border-radius: 10px;
  display: grid; place-items: center; font-size: 18px; border: 2px solid var(--ink);
}
.feature-ic--uni  { background: var(--lav); }
.feature-ic--fund { background: var(--mint); }
.feature-ic--save { background: var(--pink); }
.feature-ic--plan { background: var(--hl); }
/* Home only: a tighter hero so the feature cards AND the button fit on the first screen */
.home-main--index { padding-top: 30px; }
.home-main--index .country-badge { margin-bottom: 14px; }
body.home .home-main--index h1.hero-title { font-size: clamp(2rem, 4.3vw, 3.2rem) !important; margin-bottom: 12px !important; max-width: 900px; }
.home-main--index .hero-sub { margin-bottom: 0; }
.home-main--index .feature-strip { margin-top: 28px; }
.home-main--index .feature-strip li { padding: 14px 16px; }
.home-main--index .feature-ic { width: 34px; height: 34px; margin-bottom: 6px; font-size: 16px; }
.home-main--index .hero-cta { margin-top: 24px; }
@media (max-width: 860px) { .feature-strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .feature-strip { grid-template-columns: 1fr; } }

/* ── Footer: Instagram link under the tagline ── */
.footer-insta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px; padding: 7px 12px 7px 9px;
  color: var(--ink); background: var(--pink);
  border: 2px solid #fff; border-radius: 10px;
  box-shadow: 2px 2px 0 #fff;
  font-size: 13px; font-weight: 800; text-decoration: none;
  transition: transform .1s, box-shadow .1s;
}
.footer-insta:hover  { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--hl); }
.footer-insta:active { transform: translate(2px,2px); box-shadow: none; }

/* ── Contact mini pop-up (built by footer.js) ── */
.contact-pop {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center;
  padding: 16px; background: rgba(17,17,17,.45);
}
.contact-pop.open { display: flex; }
.contact-card {
  position: relative; width: 100%; max-width: 360px;
  background: var(--lav); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 18px; box-shadow: var(--sh-lg);
  padding: 26px 22px 22px;
  animation: pop-in .18s ease-out;
}
@keyframes pop-in { from { transform: scale(.92) rotate(-1deg); opacity: 0; } to { transform: none; opacity: 1; } }
.contact-close {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; border-radius: 50%;
  background: #fff; border: 2px solid var(--ink); box-shadow: var(--sh-sm);
  font-weight: 800; cursor: pointer;
}
.contact-title { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 26px; margin-bottom: 4px; }
.contact-sub { font-size: 14px; color: #333; margin: 0 0 18px; }
.contact-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; margin-top: 10px;
  background: #fff; color: var(--ink); text-decoration: none;
  border: 2px solid var(--ink); border-radius: 12px; box-shadow: var(--sh-sm);
  transition: transform .1s, box-shadow .1s;
}
.contact-row:hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 #111; }
.contact-row b { display: block; font-size: 14px; }
.contact-row i { display: block; font-style: normal; font-size: 13px; color: #555; word-break: break-all; }
.contact-ic {
  flex: none; width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center; font-size: 17px;
  border: 2px solid var(--ink);
}
.contact-row--mail  .contact-ic { background: var(--hl); }
.contact-row--insta .contact-ic { background: var(--pink); }

/* ── Sign-in pop-up (built by account.js, reuses the contact pop-up card) ── */
.auth-card { background: var(--cream); max-width: 380px; }
.auth-google, .auth-email-btn, .auth-submit {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 12px 14px;
  font: inherit; font-weight: 800; font-size: 15px; color: var(--ink);
  border: 2px solid var(--ink); border-radius: 12px; box-shadow: var(--sh-sm);
  cursor: pointer; transition: transform .1s, box-shadow .1s;
}
.auth-google { background: #fff; }
.auth-email-btn { background: var(--lav); }
.auth-submit { background: var(--hl); margin-top: 6px; }
.auth-google:hover, .auth-email-btn:hover, .auth-submit:hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 #111; }
.auth-google:active, .auth-email-btn:active, .auth-submit:active { transform: translate(2px,2px); box-shadow: none; }
.auth-or {
  display: flex; align-items: center; gap: 10px;
  margin: 14px 0; font-size: 13px; font-weight: 700; color: #555;
}
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 2px; background: var(--ink); opacity: .2; }
.auth-back {
  background: none; border: none; padding: 0; margin-bottom: 10px;
  font: inherit; font-size: 13px; font-weight: 700; color: #444; cursor: pointer;
}
.auth-back:hover { color: var(--ink); text-decoration: underline; }
.auth-form { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.auth-form label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 800; }
.auth-form input {
  font: inherit; font-size: 16px; font-weight: 400; color: var(--ink);
  padding: 10px 12px; background: #fff;
  border: 2px solid var(--ink); border-radius: 10px; outline: none;
}
.auth-form input:focus { box-shadow: var(--sh-sm); }
.auth-form small { font-weight: 500; color: #555; }
.auth-link {
  background: none; border: none; padding: 0;
  font: inherit; font-weight: 800; color: var(--ink); text-decoration: underline; cursor: pointer;
}
.auth-forgot { align-self: flex-end; font-size: 13px; margin-top: -4px; }
.auth-switch { margin: 16px 0 0; font-size: 13.5px; text-align: center; }
.auth-error {
  margin: 14px 0 0; padding: 9px 12px; font-size: 13.5px; font-weight: 700;
  background: #fff; border: 2px solid var(--ink); border-radius: 10px;
}

/* ── Countries page ── */
.cn-main { text-align: center; display: flex; flex-direction: column; align-items: center; margin: 0 auto; }
body.home h1.cn-title { text-align: center; }
.cn-kicker {
  display: inline-block; margin-bottom: 18px; padding: 5px 14px;
  background: var(--pink); border: 2px solid var(--ink); border-radius: 999px;
  box-shadow: var(--sh-sm); font-size: 11px; font-weight: 800; letter-spacing: 2px;
  transform: rotate(-2deg);
}
body.home h1.cn-title { margin-left: auto; margin-right: auto; }
.cn-sub { text-align: center; color: #333; font-size: 16.5px; max-width: 520px; margin: 0 auto 40px; }
.cn-grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 16px;
  max-width: 860px; margin: 0 auto;
}
.cn-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  background: #fff; color: var(--ink); text-decoration: none;
  border: 2px solid var(--ink); box-shadow: var(--sh-sm);
  font-weight: 800; font-size: 15px; letter-spacing: .3px;
}
.cn-badge i { font-style: normal; font-weight: 600; color: #777; }
.cn-badge--live { background: var(--hl); box-shadow: var(--sh); transform: rotate(-1.5deg); transition: transform .1s, box-shadow .1s; }
.cn-badge--live:hover  { transform: rotate(-1.5deg) translate(-2px,-2px); box-shadow: var(--sh-lg); }
.cn-badge--live i { color: var(--ink); }
.cn-badge--soon { border-style: dashed; cursor: default; }
.cn-badge--soon:nth-child(4n+2) { background: var(--lav); }
.cn-badge--soon:nth-child(4n+3) { background: var(--mint); }
.cn-badge--soon:nth-child(4n+4) { background: var(--pink); }
.cn-badge--soon:nth-child(4n+1) { background: var(--lilac); }
.cn-note { margin-top: 44px; font-size: 14px; color: #555; }
.cn-note a { color: var(--ink); font-weight: 800; }

/* ── About page: a bright card floating in the middle (never touches the edges) ── */
body.about-page {
  min-height: 100vh; margin: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 48px 24px; box-sizing: border-box;
  background-color: var(--hl);
  background-image: radial-gradient(rgba(17,17,17,.12) 1.2px, transparent 1.4px);
  background-size: 20px 20px;
}
.about-card {
  position: relative; width: 100%; max-width: 640px;
  background: #fff; color: var(--ink);
  border: 3px solid var(--ink); border-radius: 24px; box-shadow: 8px 8px 0 #111;
  padding: 44px 40px 36px;
  animation: pop-in .22s ease-out;
}
.about-close {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--pink); color: var(--ink); text-decoration: none;
  border: 2px solid var(--ink); box-shadow: var(--sh-sm); font-weight: 800;
}
.about-close:hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 #111; }
.about-tag {
  display: inline-block; padding: 5px 12px; margin-bottom: 16px;
  background: var(--lav); border: 2px solid var(--ink); border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: 2px; transform: rotate(-2deg);
}
.about-card h1 {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(30px, 6vw, 46px); line-height: 1.05; letter-spacing: -0.03em;
  margin: 0 0 18px; color: var(--ink);
  background: none; -webkit-text-fill-color: var(--ink);
}
.about-card h1 em { font-style: normal; background: var(--hl); padding: 0 6px; border-radius: 6px; }
.about-card p { font-size: 16px; line-height: 1.65; color: #333; }
.about-soon {
  margin-top: 22px; padding: 16px 18px;
  background: var(--cream); border: 2px dashed var(--ink); border-radius: 14px;
  font-size: 14px; font-weight: 600;
}
@media (max-width: 600px) {
  body.about-page { padding: 24px 16px; }
  .about-card { padding: 56px 22px 28px; }
}

/* ── Privacy page ── */
main.home-main.pv-wrap { max-width: 760px; margin: 0 auto; }
.pv-wrap h1.pv-title { margin-bottom: 10px !important; }
.pv-updated { color: #555; font-size: 14px; margin-bottom: 32px; }
.pv-card {
  background: #fff; border: 2px solid var(--ink); border-radius: 16px; box-shadow: var(--sh);
  padding: 24px 26px; margin-bottom: 18px;
}
.pv-card h2 { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 20px; margin: 0 0 10px; color: var(--ink); }
.pv-card p, .pv-card li { font-size: 15px; line-height: 1.6; color: #2a2a2a; }
.pv-card ul { margin: 6px 0 0; padding-left: 20px; }
.pv-card li { margin-bottom: 6px; }
.pv-card--tldr { background: var(--mint); }

/* ── Small screens ── */
@media (max-width: 600px) {
  .site-nav { padding: 12px 16px; }
  .home-main { padding: 28px 16px 32px; }
  .route-card { padding: 24px 20px; }
  .site-footer { padding: 44px 20px 32px; }
  .pv-card { padding: 20px 18px; }
}

/* ── Big screens (16" laptops, wide monitors) ──
   Content stops growing at 1280px and sits in the middle; backgrounds,
   the nav bar and the footer still stretch edge to edge. */
body.home .home-main { max-width: 1360px; margin-left: auto; margin-right: auto; }
.site-footer-inner, .footer-bottom { max-width: 1280px; }
@media (min-width: 1361px) {
  body .site-nav { padding-left: calc((100% - 1280px) / 2); padding-right: calc((100% - 1280px) / 2); }
}

/* Short pages on tall screens: the footer sits at the bottom of the window
   instead of floating in the middle with empty space under it. */
body:has(> .site-footer) { display: flex; flex-direction: column; min-height: 100vh; }
body:has(> .site-footer) > * { flex-shrink: 0; width: 100%; }
body:has(> .site-footer) > .site-footer { margin-top: auto; }
