/* =========================================================
   Academic Directory — stylesheet
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --bg: #f6f4ee;
  --surface: #ffffff;
  --surface-2: #eef1ea;
  --ink: #0d1b16;
  --muted: #56645d;
  --line: #e1e4db;
  --brand: #0b6b4e;
  --brand-strong: #074d38;
  --brand-soft: #dff2e9;
  --gold: #d99a2b;
  --gold-soft: #fbefd6;
  --on-brand: #ffffff;
  --shadow-sm: 0 1px 2px rgb(13 27 22 / 0.06), 0 2px 8px rgb(13 27 22 / 0.04);
  --shadow-md: 0 2px 6px rgb(13 27 22 / 0.06), 0 18px 40px -12px rgb(13 27 22 / 0.18);
  --glass: rgb(246 244 238 / 0.72);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #09120f;
    --surface: #101c17;
    --surface-2: #15241e;
    --ink: #e9f1ec;
    --muted: #98aaa1;
    --line: #223229;
    --brand: #3ccb93;
    --brand-strong: #7fe0b7;
    --brand-soft: #143328;
    --gold: #f0b94f;
    --gold-soft: #3a2d12;
    --on-brand: #06231a;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow-md: 0 18px 40px -12px rgb(0 0 0 / 0.6);
    --glass: rgb(9 18 15 / 0.72);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #09120f;
  --surface: #101c17;
  --surface-2: #15241e;
  --ink: #e9f1ec;
  --muted: #98aaa1;
  --line: #223229;
  --brand: #3ccb93;
  --brand-strong: #7fe0b7;
  --brand-soft: #143328;
  --gold: #f0b94f;
  --gold-soft: #3a2d12;
  --on-brand: #06231a;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
  --shadow-md: 0 18px 40px -12px rgb(0 0 0 / 0.6);
  --glass: rgb(9 18 15 / 0.72);
  color-scheme: dark;
}

/* Smooth page-to-page transitions in supporting browsers */
@view-transition { navigation: auto; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--brand); color: var(--on-brand); }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--brand); color: var(--on-brand); padding: 10px 16px; border-radius: 10px;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--glass);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 16px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand svg { width: 40px; height: 40px; }
.brand-name { white-space: nowrap; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; line-height: 1; letter-spacing: -0.01em; }
.brand-name em { color: var(--brand); font-style: italic; }

.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 999px;
  text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--muted);
  transition: background .2s, color .2s;
}
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav-links a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }

.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); cursor: pointer; transition: transform .2s, background .2s;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn:active { transform: scale(.94); }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
}
.menu-toggle { display: none; }

@media (max-width: 760px) {
  .menu-toggle { display: inline-grid; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 72px;
    flex-direction: column; gap: 4px; padding: 12px var(--gutter) 20px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links a { padding: 12px 14px; font-size: 1.05rem; }
  .brand svg { width: 36px; height: 36px; }
  .brand-name { font-size: 1.08rem; }
  .nav { gap: 10px; }
}

/* ---------- Buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font: 600 .95rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 8px 20px -8px var(--brand); }
.btn-primary:hover { background: var(--brand-strong); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { padding: 9px 16px; font-size: .88rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }

.tag {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  font-size: .76rem; font-weight: 600; background: var(--surface-2); color: var(--muted);
}

/* ---------- Sections ---------- */
section { padding-block: clamp(56px, 8vw, 104px); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-top: 10px; }
.section-head p { color: var(--muted); max-width: 52ch; margin-top: 10px; }

/* ---------- Home hero ---------- */
.hero { padding-top: clamp(32px, 6vw, 72px); padding-bottom: clamp(48px, 7vw, 88px); position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -120px 0 auto; height: 620px; z-index: -1;
  background:
    radial-gradient(600px 300px at 12% 20%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%),
    radial-gradient(520px 280px at 88% 10%, color-mix(in srgb, var(--gold) 18%, transparent), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.8rem); font-weight: 600; margin-top: 18px; }
.hero h1 em { font-style: italic; color: var(--brand); }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); margin-top: 20px; max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.search { position: relative; margin-top: 28px; max-width: 520px; }
.search input {
  width: 100%; padding: 16px 20px 16px 50px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: 500 1rem var(--font-body); box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.search > .icon { position: absolute; left: 20px; top: 50%; translate: 0 -50%; color: var(--muted); }
.search-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 20;
  list-style: none; margin: 0; padding: 6px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md);
  max-height: 340px; overflow: auto;
}
.search-results[hidden] { display: none; }
.search-results a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; text-decoration: none;
}
.search-results a:hover, .search-results a:focus { background: var(--surface-2); outline: none; }
.search-results .mini-mono {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  font: 700 .72rem var(--font-body); color: #fff; flex: none; overflow: hidden;
}
.search-results .mini-mono img { width: 100%; height: 100%; object-fit: cover; }
.search-results strong { display: block; font-size: .95rem; line-height: 1.3; }
.search-results small { color: var(--muted); }
.search-results .empty { padding: 12px; color: var(--muted); }

.hero-collage { position: relative; aspect-ratio: 1 / 1.02; }
.hero-collage figure { position: absolute; margin: 0; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.hero-collage img { width: 100%; height: 100%; object-fit: cover; }
.hero-collage .c1 { inset: 0 28% 30% 0; }
.hero-collage .c2 { inset: 12% 0 38% 58%; }
.hero-collage .c3 { inset: 56% 6% 0 30%; }
.hero-collage .c1 figcaption { bottom: auto; top: 12px; }
.hero-collage figcaption {
  position: absolute; left: 12px; bottom: 12px; padding: 5px 10px; border-radius: 999px;
  background: rgb(0 0 0 / .5); color: #fff; font-size: .75rem; font-weight: 600; backdrop-filter: blur(6px);
}
.float-chip {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-md); font-size: .85rem; font-weight: 600;
  animation: bob 6s ease-in-out infinite;
}
.float-chip b { font-family: var(--font-display); font-size: 1.35rem; color: var(--brand); }
.float-chip .dot { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); }
.chip-a { left: -18px; top: 64%; }
.chip-b { right: -10px; top: 2%; animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-8px); } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-collage { max-width: 520px; width: 100%; margin-inline: auto; }
  .chip-a { left: 0; }
  .chip-b { right: 0; }
}

/* ---------- Stats band ---------- */
.stats { padding-block: 0; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.stat { padding: 26px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1; color: var(--ink); }
.stat span { display: block; color: var(--muted); font-size: .92rem; margin-top: 8px; }
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}

/* ---------- City cards (home) ---------- */
.city-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.city-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 440px; padding: clamp(22px, 3vw, 34px); border-radius: var(--radius-lg);
  overflow: hidden; text-decoration: none; color: #fff; isolation: isolate;
}
.city-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.city-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(0 0 0 / 0) 30%, rgb(4 20 14 / .88)); }
.city-card:hover img { transform: scale(1.05); }
.city-card .kicker { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.city-card h3 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-top: 6px; }
.city-card p { opacity: .9; margin-top: 8px; max-width: 42ch; }
.city-card .go {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; align-self: flex-start;
  padding: 10px 18px; border-radius: 999px; background: rgb(255 255 255 / .16); backdrop-filter: blur(8px);
  border: 1px solid rgb(255 255 255 / .3); font-weight: 600; font-size: .92rem; transition: background .2s;
}
.city-card:hover .go { background: #fff; color: #0d1b16; }
.city-card .count {
  position: absolute; top: 20px; right: 20px; padding: 6px 12px; border-radius: 999px;
  background: rgb(0 0 0 / .4); backdrop-filter: blur(8px); font-size: .82rem; font-weight: 600;
}
@media (max-width: 760px) { .city-grid { grid-template-columns: 1fr; } .city-card { min-height: 360px; } }

/* ---------- University cards ---------- */
.uni-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 22px; }
.uni-card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s;
}
.uni-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.uni-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.uni-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.uni-card:hover .uni-media img { transform: scale(1.05); }
.uni-media .badges { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; gap: 8px; }
.badge {
  padding: 5px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700;
  background: rgb(255 255 255 / .92); color: #0d1b16; backdrop-filter: blur(6px);
}
.badge.public { background: #dff2e9; color: #07563f; }
.badge.private { background: #fbefd6; color: #7a4e07; }
.img-note {
  position: absolute; left: 12px; bottom: 12px; padding: 3px 9px; border-radius: 999px;
  background: rgb(0 0 0 / .5); color: #fff; font-size: .7rem; font-weight: 600;
}

/* Designed cover for universities without a photo */
.mono-cover {
  width: 100%; height: 100%; display: grid; place-items: center; position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 20% 15%, rgb(255 255 255 / .22), transparent 45%),
    linear-gradient(135deg, hsl(var(--h) 55% 32%), hsl(calc(var(--h) + 35) 60% 18%));
  color: #fff;
}
.mono-cover::before {
  content: ""; position: absolute; inset: 0; opacity: .14;
  background-image: repeating-linear-gradient(45deg, #fff 0 1px, transparent 1px 16px);
}
.mono-cover span { position: relative; font-family: var(--font-display); font-weight: 600; font-size: clamp(2.4rem, 6vw, 3.4rem); letter-spacing: .02em; text-shadow: 0 4px 24px rgb(0 0 0 / .3); }
.mono-cover small { position: absolute; bottom: 14px; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }

.uni-body { display: flex; flex-direction: column; gap: 12px; padding: 20px 20px 18px; flex: 1; }
.uni-body h3 { font-size: 1.28rem; line-height: 1.2; }
.uni-body h3 small { display: block; font-family: var(--font-body); font-size: .8rem; font-weight: 700; color: var(--brand); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.uni-loc { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .88rem; }
.uni-about { color: var(--muted); font-size: .93rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.uni-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.uni-actions { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.uni-actions .btn { flex: 1; }
.socials { display: flex; gap: 6px; flex-wrap: wrap; }
.social {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: var(--surface-2); color: var(--muted); transition: background .2s, color .2s, transform .2s;
}
.social:hover { color: #fff; transform: translateY(-2px); }
.social.facebook:hover { background: #1877f2; }
.social.instagram:hover { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); }
.social.linkedin:hover { background: #0a66c2; }
.social.x:hover { background: #000; }
.social.youtube:hover { background: #ff0000; }
.social svg { width: 18px; height: 18px; }

/* ---------- Toolbar (city pages) ---------- */
.toolbar {
  position: sticky; top: 72px; z-index: 30; padding-block: 14px;
  background: var(--glass); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.toolbar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.toolbar .search { margin: 0; flex: 1 1 260px; max-width: 360px; }
.toolbar .search input { padding-block: 11px; box-shadow: none; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1 1 380px; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--muted); font: 600 .85rem var(--font-body); cursor: pointer; white-space: nowrap; transition: all .2s;
}
.chip:hover { color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.select {
  padding: 10px 36px 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font: 600 .85rem var(--font-body); cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2356645d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
@media (max-width: 760px) {
  .toolbar { position: static; }
  .toolbar .search { max-width: none; flex-basis: 100%; }
  .chips { flex-basis: calc(100% - 140px); }
}
.result-count { color: var(--muted); font-size: .9rem; margin-bottom: 18px; }
.no-results { text-align: center; padding: 60px 20px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------- City hero ---------- */
.city-hero { position: relative; padding: 0; color: #fff; isolation: isolate; overflow: hidden; }
.city-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.city-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(4 20 14 / .88), rgb(4 20 14 / .45) 60%, rgb(4 20 14 / .2)), linear-gradient(0deg, rgb(4 20 14 / .6), transparent 50%); }
.city-hero .wrap { padding-block: clamp(72px, 12vw, 150px) clamp(40px, 6vw, 64px); }
.crumbs { display: flex; gap: 8px; font-size: .88rem; opacity: .85; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.city-hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); margin-top: 14px; }
.city-hero h1 em { color: #f2b544; font-style: italic; }
.city-hero p { max-width: 58ch; margin-top: 16px; font-size: 1.08rem; opacity: .92; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-facts span {
  padding: 8px 14px; border-radius: 999px; background: rgb(255 255 255 / .14); border: 1px solid rgb(255 255 255 / .25);
  backdrop-filter: blur(8px); font-size: .88rem; font-weight: 600;
}
.hero-facts b { color: #f2b544; }

/* ---------- Glance table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 640px; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
td a { color: var(--brand); font-weight: 600; text-decoration: none; }
td a:hover { text-decoration: underline; }
td .name { font-weight: 600; }
td .name small { display: block; color: var(--muted); font-weight: 500; }

/* ---------- About / features ---------- */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.about-grid h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-top: 10px; }
.about-text p { color: var(--muted); font-size: 1.05rem; }
.about-text p + p { margin-top: 16px; }
.about-text strong { color: var(--ink); }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.feature {
  padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
}
.feature .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 16px; }
.feature:nth-child(2) .ico, .feature:nth-child(3) .ico { background: var(--gold-soft); color: var(--gold); }
.feature h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; }
.feature p { color: var(--muted); font-size: .93rem; margin-top: 6px; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- Tips ---------- */
.band { background: var(--surface); border-block: 1px solid var(--line); }
.tips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: tip; list-style: none; padding: 0; margin: 0; }
.tips li { padding: 22px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); counter-increment: tip; }
.tips li::before { content: "0" counter(tip); display: block; font-family: var(--font-display); font-size: 2rem; font-style: italic; color: var(--gold); margin-bottom: 10px; }
.tips h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; }
.tips p { color: var(--muted); font-size: .9rem; margin-top: 6px; }
@media (max-width: 1000px) { .tips { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tips { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; gap: 16px;
  font-weight: 600; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--brand); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 22px; max-width: 68ch; }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(32px, 6vw, 64px);
  background: linear-gradient(135deg, #0b6b4e, #053a2a); color: #fff; isolation: isolate;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.cta::before {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; z-index: -1;
  border-radius: 50%; background: radial-gradient(circle, rgb(242 181 68 / .45), transparent 70%);
}
.cta h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); max-width: 20ch; }
.cta p { opacity: .85; margin-top: 10px; max-width: 50ch; }
.cta .btn-primary { background: #f2b544; color: #1a1204; box-shadow: none; }
.cta .btn-primary:hover { background: #ffc85e; }

/* ---------- Dialog ---------- */
.uni-dialog {
  width: min(860px, 100% - 24px); max-height: min(92vh, 900px); padding: 0; border: 0;
  border-radius: var(--radius-lg); background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px rgb(0 0 0 / .35);
  overflow: hidden;
}
.uni-dialog[open] { display: flex; flex-direction: column; animation: pop .3s cubic-bezier(.2,.7,.2,1); }
.uni-dialog::backdrop { background: rgb(4 12 9 / .6); backdrop-filter: blur(4px); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.dialog-scroll { overflow-y: auto; }
.dialog-media { position: relative; aspect-ratio: 21 / 9; }
.dialog-media img, .dialog-media .mono-cover { width: 100%; height: 100%; object-fit: cover; }
.dialog-close {
  position: absolute; top: 14px; right: 14px; z-index: 2; border: 0;
  background: rgb(0 0 0 / .5); color: #fff; backdrop-filter: blur(6px);
}
.dialog-close:hover { background: rgb(0 0 0 / .7); }
.dialog-body { padding: clamp(20px, 4vw, 36px); display: grid; gap: 24px; }
.dialog-body h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
.dialog-body h2 small { display: block; font-family: var(--font-body); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); font-weight: 700; margin-bottom: 8px; }
.motto { font-family: var(--font-display); font-style: italic; color: var(--muted); margin-top: 8px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.fact { padding: 14px 16px; border-radius: 14px; background: var(--surface-2); }
.fact span { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.fact b { display: block; margin-top: 4px; font-size: 1rem; }
.dialog-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.dialog-body h4 { font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 10px; }
.known { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.known li { display: flex; gap: 10px; align-items: start; }
.known li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: .55em; border-radius: 50%; background: var(--gold); }
.map-frame { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: 14px; background: var(--surface-2); }
.dialog-links { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
@media (max-width: 680px) {
  .dialog-cols { grid-template-columns: 1fr; }
  .dialog-media { aspect-ratio: 16 / 9; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 56px 32px; background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
.footer-grid p { color: var(--muted); font-size: .93rem; margin-top: 14px; max-width: 42ch; }
.footer-grid h4 { font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid ul a { text-decoration: none; color: var(--ink); }
.footer-grid ul a:hover { color: var(--brand); }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

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