/* ─── Westland Roleplay theme ─────────────────────────────
   Colors live here; department colors come from src/departments.js */
:root {
  --bg: #07070c;
  --bg-2: #0e0d16;
  --surface: #13121d;
  --surface-2: #1a1826;
  --border: #272436;
  --text: #f5f1e8;
  --muted: #9c97ab;
  --sun-1: #ffb347;
  --sun-2: #ff6a3d;
  --sun-3: #ff3d6e;
  --sun: linear-gradient(100deg, var(--sun-1), var(--sun-2) 55%, var(--sun-3));
  --green: #22c55e;
  --red: #ef4444;
  --amber: #f59e0b;
  --discord: #5865f2;
  --radius: 16px;
  --dept: var(--sun-2);
  --display: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
main { flex: 1; }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.1; margin: 0; }
p { margin: 0 0 1em; text-wrap: pretty; } /* avoids a single word alone on the last line */
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 28px; } }
.page { padding-top: 40px; padding-bottom: 72px; }
.muted { color: var(--muted); font-weight: 400; }
.icon { width: 1.2em; height: 1.2em; flex: none; }

.display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.01em;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 0.95;
  text-transform: uppercase;
}
.display-xl { font-size: clamp(3rem, 8vw, 6rem); }
.kicker {
  margin: 0 0 14px;
  color: var(--sun-1);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12.5px;
}
.sun-text {
  background: var(--sun);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ─── Top bar ─────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(7, 7, 12, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.home .topbar { position: fixed; left: 0; right: 0; transition: background 0.25s, border-color 0.25s; }
.home:not(.scrolled) .topbar { background: linear-gradient(rgba(7, 7, 12, 0.7), rgba(7, 7, 12, 0)); border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.home.scrolled .topbar { background: rgba(7, 7, 12, 0.88); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; min-height: 72px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { height: 46px; width: auto; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5)); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--display); font-size: 1.65rem; letter-spacing: 0.04em; text-transform: uppercase; }
.brand-sub { font-size: 10.5px; color: var(--muted); letter-spacing: 0.2em; text-transform: uppercase; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.nav > a:not(.btn) { text-decoration: none; color: rgba(245, 241, 232, 0.75); font-weight: 500; font-size: 15px; }
.nav > a:not(.btn):hover { color: var(--text); }
.nav form { margin: 0; }
.count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 99px; background: var(--sun-2); color: #fff; font-size: 12px; text-align: center; line-height: 20px; }
.me { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.me img { width: 30px; height: 30px; border-radius: 50%; }
.link-button { background: none; border: 0; padding: 0; color: rgba(245, 241, 232, 0.75); font: inherit; font-size: 15px; cursor: pointer; }
.link-button:hover { color: var(--text); }

/* ─── Departments dropdown ────────────────────────────── */
.nav-drop { position: relative; }
.nav-drop-toggle {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; background: none; border: 0;
  font: inherit; font-size: 15px; font-weight: 500; color: rgba(245, 241, 232, 0.75); cursor: pointer;
}
.nav-drop-toggle:hover, .nav-drop.open .nav-drop-toggle, .nav-drop-toggle.is-current { color: var(--text); }
.chev { width: 12px; height: 12px; transition: transform 0.2s; }
.nav-drop.open .chev { transform: rotate(180deg); }
.nav-drop-menu {
  position: absolute; top: calc(100% + 10px); right: -12px; z-index: 30; width: 340px; padding: 8px;
  background: rgba(19, 18, 29, 0.97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.7);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}
.nav-drop-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* keeps hover alive over the gap */
.nav-drop.open .nav-drop-menu { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) {
  .nav-drop:hover .nav-drop-menu { opacity: 1; visibility: visible; transform: none; }
  .nav-drop:hover .chev { transform: rotate(180deg); }
}
.nav-drop-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; text-decoration: none; }
.nav-drop-item:hover, .nav-drop-item:focus-visible, .nav-drop-item.active { background: color-mix(in srgb, var(--dept) 12%, transparent); outline: none; }
.nav-drop-item .badge { flex: none; }
.nav-drop-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.nav-drop-text strong { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-drop-text span { font-size: 12.5px; color: var(--muted); }
.nav-drop-all { display: block; margin-top: 6px; padding: 10px 12px; border-top: 1px solid var(--border); font-size: 13.5px; font-weight: 600; color: var(--sun-1); text-decoration: none; }
.nav-drop-all:hover { color: var(--text); }

/* ─── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 11px 20px; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: filter 0.15s, transform 0.15s, background 0.15s;
}
/* Size gradients to the full button, so they don't repeat into the 1px border.
   Extra specificity so it beats the `background:` shorthand in .btn-sun etc. */
.btn.btn { background-origin: border-box; }
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-sun { background: var(--sun); color: #1a0b05; box-shadow: 0 10px 30px -10px rgba(255, 106, 61, 0.7); }
.btn-glass { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); color: #fff; backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.14); }
.btn-discord { background: var(--discord); color: #fff; }
.btn-dept { background: var(--dept); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-accept { background: var(--green); color: #052e14; }
.btn-deny { background: transparent; border-color: var(--red); color: var(--red); }

.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; font-size: 13px; font-weight: 600; }
.pill-live { background: rgba(34, 197, 94, 0.14); border: 1px solid rgba(34, 197, 94, 0.4); color: #86efac; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

/* ─── Hero ────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  background: var(--img) center / cover no-repeat, var(--bg);
  overflow: hidden;
}
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--bg) 2%, rgba(7, 7, 12, 0.55) 40%, rgba(7, 7, 12, 0.25) 70%, rgba(7, 7, 12, 0.6)),
    linear-gradient(to right, rgba(7, 7, 12, 0.85), rgba(7, 7, 12, 0) 70%);
}
.hero-inner { position: relative; padding-top: 140px; padding-bottom: 96px; }
.hero-kicker { margin: 24px 0 6px; color: var(--sun-1); font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; font-size: 13px; }
.hero-title {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(4rem, 13vw, 10rem); line-height: 0.85; letter-spacing: 0.01em;
  max-width: 9ch;
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.5);
}
.hero-lead { max-width: 560px; margin: 26px 0 6px; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: rgba(245, 241, 232, 0.82); }
.hero-strong { max-width: 560px; font-size: clamp(1.05rem, 1.6vw, 1.2rem); font-weight: 700; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.scroll-hint {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25); text-decoration: none; color: #fff;
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translate(-50%, 6px); } }

/* ─── Sections ────────────────────────────────────────── */
.section { padding: 110px 0; position: relative; }
.section-dark { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 820px; margin-bottom: 52px; }
.section-lead { font-size: 1.1rem; color: var(--muted); margin-top: 22px; max-width: 680px; }

.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-reverse .split-text { order: 2; }
.split-text p:not(.kicker) { color: rgba(245, 241, 232, 0.8); font-size: 1.05rem; }
.split-text .display { margin-bottom: 26px; }
.split-text strong { color: var(--text); }
.accent-line { font-weight: 700; color: var(--sun-1) !important; font-size: 1.15rem !important; margin-top: 8px; }
.split-media { margin: 0; position: relative; }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); }
.split-media::before {
  content: ""; position: absolute; inset: -14px 14px 14px -14px; border-radius: var(--radius);
  background: var(--sun); opacity: 0.18; z-index: -1; filter: blur(2px);
}

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 80px; }
.stat { padding: 26px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.stat-num { display: block; font-family: var(--display); font-size: 3.6rem; line-height: 1; background: var(--sun); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { color: var(--muted); font-size: 0.95rem; }

.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 34px; font-weight: 600; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; color: #1a0b05; background: var(--sun);
}

/* ─── City life (civilian) ────────────────────────────── */
.hero-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill-framework { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.22); color: #fff; backdrop-filter: blur(6px); }

#city { padding: 80px 0; }
#city .section-head { margin-bottom: 32px; }
#city .section-lead { margin-top: 14px; font-size: 1rem; }
.city-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 20px; }
.city-card { --side: #22d3ee; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: transform 0.2s, border-color 0.2s; }
.city-illegal { --side: #f43f5e; }
.city-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--side) 50%, var(--border)); }
.city-media { position: relative; height: clamp(150px, 16vw, 210px); overflow: hidden; }
.city-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.city-card:hover .city-media img { transform: scale(1.04); }
.city-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--surface), transparent 55%); }
.city-tag {
  position: absolute; z-index: 1; top: 12px; left: 12px; padding: 3px 12px; border-radius: 99px;
  font-family: var(--display); font-size: 1.05rem; letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(7, 7, 12, 0.7); backdrop-filter: blur(6px); color: var(--side); border: 1px solid color-mix(in srgb, var(--side) 55%, transparent);
}
.city-body { padding: 0 22px 22px; }
.city-body h3 { font-family: var(--display); font-weight: 400; font-size: 1.75rem; text-transform: uppercase; line-height: 1; margin-bottom: 6px; }
.city-body > .muted { font-size: 0.9rem; margin-bottom: 0; }
.job-list { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.job-list li {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 6px 12px; border-radius: 99px; font-weight: 600; font-size: 0.85rem; line-height: 1.3;
  background: color-mix(in srgb, var(--side) 8%, var(--bg-2));
  border: 1px solid color-mix(in srgb, var(--side) 28%, var(--border));
}
.job-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--side); flex: none; }
.city-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 18px; padding: 16px 22px; border-radius: var(--radius); border: 1px dashed var(--border); }
.city-foot p { margin: 0; color: rgba(245, 241, 232, 0.85); font-weight: 500; flex: 1 1 320px; }

/* ─── Department cards ────────────────────────────────── */
.dept-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 20px; }
.dept-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.dept-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--dept) 55%, var(--border)); box-shadow: 0 24px 50px -24px color-mix(in srgb, var(--dept) 60%, transparent); }
.dept-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.dept-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.dept-card:hover .dept-media img { transform: scale(1.05); }
.dept-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--surface), transparent 60%); }
.dept-media-top { position: absolute; z-index: 1; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; align-items: center; }
.dept-media-top .badge { background: rgba(7, 7, 12, 0.7); backdrop-filter: blur(6px); }
.dept-body { display: flex; flex-direction: column; flex: 1; padding: 4px 22px 22px; }
.dept-body h3 { font-family: var(--display); font-weight: 400; font-size: 1.9rem; text-transform: uppercase; letter-spacing: 0.01em; line-height: 1; }
.motto { color: color-mix(in srgb, var(--dept) 75%, white); font-style: italic; font-size: 0.9rem; margin: 8px 0 12px; }
.dept-desc { color: var(--muted); font-size: 0.95rem; }
.ranks { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ranks li { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--border); color: rgba(245, 241, 232, 0.8); }
.ranks li.rank-top { border-color: color-mix(in srgb, var(--dept) 55%, transparent); color: color-mix(in srgb, var(--dept) 60%, white); }
.dept-foot { margin-top: auto; padding-top: 20px; }
.dept-foot .btn { width: 100%; }
.dept-foot .status { display: block; text-align: center; padding: 10px; border-radius: 12px; font-size: 14px; }

.badge {
  display: inline-grid; place-items: center; min-width: 54px; height: 30px; padding: 0 10px;
  border-radius: 8px; font-weight: 800; font-size: 13px; letter-spacing: 0.06em;
  background: color-mix(in srgb, var(--dept) 20%, transparent);
  color: color-mix(in srgb, var(--dept) 65%, white);
  border: 1px solid color-mix(in srgb, var(--dept) 50%, transparent);
}
.tag { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; backdrop-filter: blur(6px); }
.tag-open { background: rgba(20, 83, 45, 0.75); color: #86efac; }
.tag-closed { background: rgba(7, 7, 12, 0.7); color: var(--muted); }

.status { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 4px 11px; border-radius: 99px; text-decoration: none; white-space: nowrap; }
.status-pending { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.status-accepted { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.status-denied { background: rgba(239, 68, 68, 0.15); color: #f87171; }

/* ─── Gallery ─────────────────────────────────────────── */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(160px, 260px)); gap: 14px; }
.gallery figure { margin: 0; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--border); }
.gallery figure:first-child { grid-row: span 2; }
.gallery figure:nth-child(4) { grid-column: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery figure:hover img { transform: scale(1.04); }

/* ─── Call to action ──────────────────────────────────── */
.cta { position: relative; padding: 140px 0; background: var(--img) center / cover no-repeat, var(--bg); text-align: center; }
.cta-shade { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(7, 7, 12, 0.55), rgba(7, 7, 12, 0.92) 75%), linear-gradient(var(--bg), transparent 20%, transparent 80%, var(--bg)); }
.cta-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.cta .kicker { max-width: 620px; line-height: 1.7; }
.cta-sub { font-size: 1.2rem; margin: 18px 0 30px; color: rgba(245, 241, 232, 0.85); }
.cta-sign { margin: 44px 0 0; font-family: var(--display); font-size: 1.3rem; letter-spacing: 0.12em; color: var(--muted); }

/* ─── Banner (apply page) ─────────────────────────────── */
.banner { position: relative; background: var(--img) center / cover no-repeat, var(--bg); }
.banner-shade { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg), rgba(7, 7, 12, 0.55) 60%, rgba(7, 7, 12, 0.75)); }
.banner-inner { position: relative; padding-top: 56px; padding-bottom: 36px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.banner .back { margin: 0 0 8px; }
.banner .motto { margin: 0; font-size: 1rem; }
.banner + .page { padding-top: 12px; }

/* ─── Generic page bits ───────────────────────────────── */
.page-head { margin-bottom: 28px; }
.page-head .display { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.page-title { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.back { display: inline-block; margin-bottom: 14px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.back:hover { color: var(--text); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.notice p { margin: 0 0 16px; }
.error-page { max-width: 560px; margin: 40px auto; text-align: center; }
.error-page h1 { margin-bottom: 12px; font-size: 2.6rem; }
.error-page .form-actions { justify-content: center; }

.flash { padding: 13px 18px; border-radius: 12px; margin: 24px 0 0; border: 1px solid; font-weight: 500; }
.flash-success { background: rgba(34, 197, 94, 0.1); border-color: rgba(34, 197, 94, 0.35); color: #86efac; }
.flash-error { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.35); color: #fca5a5; }
.home .flash { position: relative; z-index: 5; margin-top: 90px; }
.home main > .wrap:first-child + .hero .hero-inner { padding-top: 60px; }
.page .flash { margin: 0 0 20px; }

/* ─── Form ────────────────────────────────────────────── */
.form { max-width: 820px; }
.form-intro { display: flex; gap: 14px; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.form-intro img { width: 46px; height: 46px; border-radius: 50%; }
.form-intro p { margin: 0; line-height: 1.5; }
.form-intro .muted { font-size: 14px; }
.field { margin-top: 26px; }
.field > label { display: block; font-weight: 600; margin-bottom: 8px; }
.req { color: var(--sun-2); }
.help { margin: -4px 0 10px; color: var(--muted); font-size: 14px; }
input[type="text"], input[type="number"], select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  background: var(--bg-2); color: var(--text); border: 1px solid var(--border);
  font: inherit; font-size: 15px;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
textarea { resize: vertical; min-height: 120px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--dept); box-shadow: 0 0 0 3px color-mix(in srgb, var(--dept) 25%, transparent); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--red); }
.error { color: #f87171; margin: 6px 0 0; font-size: 14px; }
.counter { margin: 4px 0 0; font-size: 12.5px; color: var(--amber); text-align: right; }
.counter.ok { color: var(--muted); }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-weight: 500; padding: 16px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--dept); flex: none; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }

/* ─── Step-by-step application form ───────────────────── */
.banner-form .banner-inner { padding-bottom: 30px; }
.banner-ranks { margin-top: 4px; }
.banner-ranks li { background: rgba(7, 7, 12, 0.55); backdrop-filter: blur(6px); border-color: rgba(255, 255, 255, 0.14); }
.apply-page { max-width: 860px; }
.apply-form { scroll-margin-top: 90px; }

.stepper { list-style: none; margin: 0 0 22px; padding: 0; display: flex; gap: 6px; counter-reset: none; }
.stepper-item { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; cursor: pointer; }
.stepper-item::before { content: ""; height: 4px; border-radius: 4px; background: var(--border); transition: background 0.2s; }
.stepper-item.done::before { background: color-mix(in srgb, var(--dept) 60%, var(--border)); }
.stepper-item.active::before { background: var(--dept); }
.stepper-dot { display: none; }
.stepper-label { font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stepper-item.active .stepper-label { color: var(--text); }
.stepper-item.done .stepper-label { color: color-mix(in srgb, var(--dept) 55%, white); }
.apply-form:not(.js-steps) .stepper { display: none; }

.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; }
.applicant-strip {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 14px 28px; background: var(--bg-2); border-bottom: 1px solid var(--border); font-size: 14px;
}
.applicant-strip img { width: 28px; height: 28px; border-radius: 50%; }
.draft-status { margin-left: auto; font-size: 13px; }

.step { border: 0; margin: 0; padding: 28px; min-width: 0; }
.step[hidden] { display: none; }
.apply-form:not(.js-steps) .step + .step { border-top: 1px solid var(--border); }
.step-head { display: flex; flex-direction: column; gap: 2px; padding: 0; margin-bottom: 6px; }
.step-count { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: color-mix(in srgb, var(--dept) 65%, white); }
.step-title { font-size: clamp(2rem, 4vw, 2.6rem); }
.step-intro { color: var(--muted); margin: 0 0 6px; }

.fields { display: flex; flex-wrap: wrap; column-gap: 18px; }
.field { width: 100%; margin-top: 24px; }
.field-half { width: calc(50% - 9px); }
.field-label { display: block; font-weight: 600; margin-bottom: 8px; }
.optional { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.prompt {
  margin: 0 0 10px; padding: 14px 16px; border-radius: 12px; font-size: 15px; line-height: 1.55;
  background: color-mix(in srgb, var(--dept) 9%, var(--bg-2)); border-left: 3px solid var(--dept);
}
.field .error[hidden] { display: none; }

.choices { display: flex; gap: 10px; flex-wrap: wrap; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: inline-block; min-width: 88px; text-align: center; padding: 10px 20px; border-radius: 12px;
  background: var(--bg-2); border: 1px solid var(--border); font-weight: 600; transition: all 0.15s;
}
.choice input:checked + span { background: color-mix(in srgb, var(--dept) 22%, var(--bg-2)); border-color: var(--dept); color: #fff; }
.choice input:focus-visible + span { box-shadow: 0 0 0 3px color-mix(in srgb, var(--dept) 35%, transparent); }
.has-error .choice span { border-color: var(--red); }

.review-summary { margin-top: 28px; padding: 20px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--border); }
.review-summary h3 { font-size: 1rem; margin-bottom: 4px; }
.review-summary dl { margin: 0; max-height: 360px; overflow-y: auto; padding-right: 6px; }
.review-summary dt { margin-top: 14px; color: var(--muted); font-size: 13px; font-weight: 600; }
.review-summary dd { margin: 3px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

.step-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--border); }
.apply-form:not(.js-steps) .step-actions { display: none; }
.apply-form:not(.js-steps) .step:last-child .step-actions { display: flex; }
.apply-form:not(.js-steps) .step:last-child [data-prev] { visibility: hidden; }

/* ─── Lists ───────────────────────────────────────────── */
.list { display: flex; flex-direction: column; gap: 10px; }
.row {
  display: flex; align-items: center; gap: 14px; padding: 15px 18px;
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--dept);
  border-radius: 14px; text-decoration: none; transition: background 0.15s;
}
.row:hover { background: var(--surface-2); }
.row-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.row-main .muted { font-size: 13px; }
.row-avatar { width: 36px; height: 36px; border-radius: 50%; }
.position { font-size: 13px; font-weight: 700; color: color-mix(in srgb, var(--dept) 60%, white); white-space: nowrap; }

.filters { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { padding: 7px 15px; border-radius: 99px; border: 1px solid var(--border); text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; }
.tab:hover { color: var(--text); }
.tab.active { background: var(--dept); border-color: var(--dept); color: #fff; }
.tabs:first-child .tab.active { background: var(--sun); border-color: transparent; color: #1a0b05; }

/* ─── Application detail ──────────────────────────────── */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 92px; }
.applicant { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.applicant img { width: 48px; height: 48px; border-radius: 50%; }
.applicant .muted { font-size: 13px; }
.answers { margin: 0; }
.answers dt { margin-top: 20px; font-weight: 600; color: var(--muted); font-size: 14px; }
.answers dd { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.side h2 { font-family: var(--display); font-weight: 400; font-size: 1.7rem; text-transform: uppercase; letter-spacing: 0.02em; }
.review label { display: block; margin: 12px 0 6px; font-size: 14px; color: var(--muted); }
.review-buttons { display: flex; gap: 10px; margin-top: 14px; }
.review-buttons .btn { flex: 1; }
.decision-accepted { border-color: rgba(34, 197, 94, 0.45); }
.decision-denied { border-color: rgba(239, 68, 68, 0.45); }
.decision p { margin: 6px 0 0; }
.note { white-space: pre-wrap; background: var(--bg-2); padding: 10px 12px; border-radius: 10px; margin-top: 12px !important; }
.history { list-style: none; padding: 0; margin: 10px 0 0; }
.history li { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; }

/* ─── Department pages ────────────────────────────────── */
.card-link { position: absolute; inset: 0; z-index: 2; }
.dept-foot .status + .btn { margin-top: 10px; }
.banner-title { display: flex; gap: 10px; align-items: center; }
.banner-dept .banner-inner { padding-top: 90px; padding-bottom: 40px; }
.banner-dept .display-xl { font-size: clamp(2.6rem, 7vw, 5.2rem); max-width: 16ch; }
.banner .level { backdrop-filter: blur(6px); }

.subnav { position: sticky; top: 72px; z-index: 15; background: rgba(7, 7, 12, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.subnav-inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav-link { position: relative; padding: 16px 16px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; white-space: nowrap; }
.subnav-link:hover { color: var(--text); }
.subnav-link.active { color: var(--text); }
.subnav-link.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--dept); }

.current-app {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 18px; margin-bottom: 32px; border-radius: 14px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--dept);
}
.current-app:hover { background: var(--surface-2); }

.dept-overview { margin-bottom: 90px; }
.dept-overview .display { color: color-mix(in srgb, var(--dept) 45%, white); }
.section-head-sm { margin-bottom: 32px; }
.section-head-sm .display { font-size: clamp(2.2rem, 4.5vw, 3.2rem); }

.division-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 14px; }
.division { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--dept); }
.division h3 { font-size: 1.05rem; margin-bottom: 8px; }
.division p { margin: 0; color: var(--muted); font-size: 0.93rem; }

.dept-cta {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  margin-top: 80px; padding: 36px; border-radius: var(--radius);
  background: linear-gradient(120deg, color-mix(in srgb, var(--dept) 22%, var(--surface)), var(--surface) 60%);
  border: 1px solid color-mix(in srgb, var(--dept) 35%, var(--border));
}
.dept-cta .display { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 6px; }
.dept-cta p { margin: 0; }

.position-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.position-card {
  display: flex; flex-direction: column; padding: 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); transition: border-color 0.2s, transform 0.2s;
}
.position-card:hover { border-color: color-mix(in srgb, var(--dept) 55%, var(--border)); transform: translateY(-3px); }
.position-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.position-num { font-family: var(--display); font-size: 2.2rem; line-height: 1; color: color-mix(in srgb, var(--dept) 70%, white); opacity: 0.85; }
.position-card h3 { font-family: var(--display); font-weight: 400; font-size: 1.9rem; text-transform: uppercase; letter-spacing: 0.01em; line-height: 1; margin-bottom: 10px; }
.position-card > .muted { font-size: 0.95rem; }
.position-foot { margin-top: auto; padding-top: 22px; }
.btn-block { width: 100%; }
.is-disabled { opacity: 0.55; cursor: not-allowed; pointer-events: none; }

.level { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; }
.level-entry { background: rgba(56, 189, 248, 0.14); color: #7dd3fc; }
.level-supervisor { background: rgba(168, 85, 247, 0.16); color: #d8b4fe; }
.level-command { background: rgba(255, 179, 71, 0.16); color: var(--sun-1); }
.position-card.level-command { background: linear-gradient(160deg, rgba(255, 179, 71, 0.07), var(--surface) 45%) border-box; }
.dept-cta { background-origin: border-box; }

.process { margin-top: 64px; padding: 30px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--border); }
.process .display { font-size: 2rem; margin-bottom: 16px; }
.process ol { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 8px; }
.process p { margin: 0; font-size: 14px; }

.ladder { display: grid; gap: 14px; max-width: 820px; }
.ladder-group { position: relative; padding: 22px 24px 22px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.ladder-group::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 3px; background: var(--dept); }
.ladder-group.level-command::before { background: var(--sun); }
.ladder-group header { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.ladder-group h3 { font-family: var(--display); font-weight: 400; font-size: 1.6rem; text-transform: uppercase; letter-spacing: 0.02em; }
.ladder-group ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ladder-group li { padding: 6px 12px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--border); font-weight: 600; font-size: 14px; }
.ladder-apply { display: inline-block; margin-top: 14px; color: color-mix(in srgb, var(--dept) 60%, white); font-weight: 700; font-size: 14px; text-decoration: none; }
.ladder-apply:hover { text-decoration: underline; }

.fixed-value { padding: 12px 14px; border-radius: 12px; background: var(--bg-2); border: 1px dashed var(--border); font-weight: 700; }

/* ─── Play / Discord buttons and the /join page ───────── */
.nav-icon { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: rgba(245, 241, 232, 0.75); transition: color 0.15s, background 0.15s; }
.nav-icon:hover { color: #fff; background: rgba(88, 101, 242, 0.25); }
.nav-icon .icon { width: 20px; height: 20px; }
.nav-play .icon { width: 1em; height: 1em; }
.city-foot-actions, .cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-actions { justify-content: center; }

.join-page { position: relative; min-height: calc(100vh - 72px); display: flex; align-items: center; background: var(--img) center / cover no-repeat, var(--bg); }
.join-inner { position: relative; display: flex; justify-content: center; padding-top: 60px; padding-bottom: 60px; }
.join-card {
  width: 100%; max-width: 520px; padding: 36px; border-radius: 22px; text-align: center;
  background: rgba(19, 18, 29, 0.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
}
.join-card .display { font-size: clamp(2.6rem, 6vw, 3.6rem); margin-bottom: 12px; }
.join-card .btn-block { margin-top: 10px; }
.join-or { display: flex; align-items: center; gap: 12px; margin: 26px 0 16px; color: var(--muted); font-size: 13px; }
.join-or::before, .join-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.join-step { margin: 0 0 10px; }
kbd { display: inline-block; padding: 1px 8px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); border-bottom-width: 3px; font: 600 13px/1.6 Inter, sans-serif; }
.copy-box { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); text-align: left; }
.copy-box code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font: 600 14px/1.5 ui-monospace, Consolas, monospace; color: var(--sun-1); }
.join-links { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; font-size: 14px; }
.join-links a { display: inline-flex; justify-content: center; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; }
.join-links a:hover { color: var(--text); }

/* ─── Discord verification ────────────────────────────── */
.verify-card { position: relative; padding-top: 52px; }
.verify-avatar { position: absolute; top: -36px; left: 50%; transform: translateX(-50%); width: 72px; height: 72px; border-radius: 50%; border: 4px solid var(--surface); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.verify-check { width: 54px; height: 54px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; background: rgba(34, 197, 94, 0.16); color: #4ade80; font-size: 28px; font-weight: 800; }
.verify-form { margin-top: 22px; text-align: left; }
.verify-form .btn { margin-top: 14px; }
.verify-actions { display: grid; gap: 10px; margin-top: 22px; }
.verify-note { margin: 18px 0 0; font-size: 13px; }
.verify-note a { color: var(--muted); }

.admin-link { margin-top: 14px; }
.admin-discord-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 20px; align-items: start; }
.card-title { font-size: 1.1rem; margin-bottom: 14px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); font-size: 14px; }
.checklist .muted { font-size: 13px; }
.check-icon { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; font-size: 13px; font-weight: 800; }
.checklist .ok .check-icon { background: rgba(34, 197, 94, 0.16); color: #4ade80; }
.checklist .bad { border-color: rgba(239, 68, 68, 0.4); }
.checklist .bad .check-icon { background: rgba(239, 68, 68, 0.16); color: #f87171; }
.checklist-note { margin: 14px 0 0; font-size: 13px; }
.discord-preview { display: flex; gap: 12px; margin: 16px 0; padding: 14px; border-radius: 10px; background: #2b2d31; border-left: 4px solid #ff8a3d; font-size: 14px; }
.discord-preview img { width: 44px; height: 44px; object-fit: contain; flex: none; }
.discord-preview p { margin: 4px 0 10px; color: #dbdee1; }
.discord-preview-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.discord-preview-buttons span { padding: 5px 12px; border-radius: 4px; background: #4e5058; color: #fff; font-size: 13px; font-weight: 500; }

/* ─── Rules page ──────────────────────────────────────── */
.banner-rules .banner-inner { padding-top: 70px; padding-bottom: 44px; }
.banner-rules .kicker { margin: 0; }
.rules-intro { max-width: 680px; margin: 6px 0 0; color: rgba(245, 241, 232, 0.82); font-size: 1.05rem; }
.nav > a.is-current { color: var(--text); }

.rules-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 48px; align-items: start; }
.rules-toc { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 4px; }
.rules-toc-title { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.rules-toc a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; text-decoration: none; color: rgba(245, 241, 232, 0.8); font-weight: 600; font-size: 15px; }
.rules-toc a:hover { background: var(--surface); color: var(--text); }
.rules-toc a span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--surface-2); font-size: 12px; color: var(--sun-1); }
.rules-toc a em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--muted); }

.rules-section { scroll-margin-top: 96px; }
.rules-section + .rules-section { margin-top: 56px; }
.rules-section h2 { font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 18px; }
.rules-section-num { color: var(--sun-1); }
.rules-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rule {
  display: flex; gap: 16px; padding: 18px 20px; border-radius: 14px; scroll-margin-top: 96px;
  background: var(--surface); border: 1px solid var(--border); transition: border-color 0.3s, box-shadow 0.3s;
}
.rule:target { border-color: var(--sun-1); box-shadow: 0 0 0 3px rgba(255, 179, 71, 0.18); }
.rule-num {
  flex: none; min-width: 44px; height: 30px; padding: 0 8px; display: grid; place-items: center; border-radius: 8px;
  background: var(--bg-2); border: 1px solid var(--border); color: var(--sun-1); font-weight: 700; font-size: 13px; text-decoration: none;
}
.rule-num:hover { border-color: var(--sun-1); }
.rule-content { min-width: 0; padding-top: 3px; }
.rule h3 { font-size: 1.02rem; font-weight: 700; line-height: 1.45; }
.rule p { margin: 6px 0 0; color: var(--muted); font-size: 0.95rem; }
.rule p strong { color: var(--text); }
.rule-ban { border-left: 3px solid var(--red); }
.ban-tag { display: inline-block; vertical-align: 2px; margin-left: 6px; padding: 2px 9px; border-radius: 99px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: rgba(239, 68, 68, 0.15); color: #f87171; }
.rules-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding: 20px 22px; border-radius: 14px; border: 1px dashed var(--border); }
.rules-foot p { margin: 0; color: rgba(245, 241, 232, 0.85); }
.check-link { color: var(--sun-1); font-weight: 600; white-space: nowrap; }

@media (max-width: 900px) {
  .rules-layout { grid-template-columns: 1fr; gap: 24px; }
  .rules-toc { position: static; flex-direction: row; flex-wrap: wrap; }
  .rules-toc-title { width: 100%; }
  .rules-toc a { background: var(--surface); border: 1px solid var(--border); }
}
@media (max-width: 640px) {
  .rule { flex-direction: column; gap: 8px; padding: 16px; }
  .rule-num { align-self: flex-start; }
}

/* ─── Footer ──────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); background: var(--bg); padding: 36px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { height: 52px; width: auto; }
.footer-brand strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.4rem; letter-spacing: 0.06em; line-height: 1; }
.footer-brand span { font-size: 11px; color: var(--muted); letter-spacing: 0.2em; text-transform: uppercase; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--text); }
.footer-note { width: 100%; margin: 0; color: #5f5a6e; font-size: 12.5px; }

/* ─── Responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split-reverse .split-text { order: 0; }
  .detail-grid { grid-template-columns: 1fr; }
  .side { position: static; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 180px; }
  .gallery figure:first-child { grid-column: span 2; grid-row: span 1; }
  .gallery figure:nth-child(4) { grid-column: span 1; }
}
@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .stats { grid-template-columns: 1fr; margin-top: 48px; }
  .me-name, .nav-link-hide, .brand-sub { display: none; }
  .brand { gap: 9px; }
  .brand-logo { height: 38px; }
  .brand-name { font-size: 1.35rem; }
  .topbar-inner { min-height: 60px; }
  .subnav { top: 60px; }
  .field-half { width: 100%; }
  .step { padding: 22px 18px; }
  .applicant-strip { padding: 12px 18px; }
  .stepper-label { display: none; }
  .stepper-item { padding: 8px 0; }
  .step-actions .btn { flex: 1; }
  .step-actions > span:empty { display: none; }
  .next-label { display: none; }
  .nav-drop { position: static; }
  .nav-drop-menu { position: fixed; top: 64px; left: 12px; right: 12px; width: auto; }
}
@media (max-width: 440px) {
  .nav-play { display: none; }
  .join-card { padding: 26px 20px; }
  .brand-text { display: none; }
  .brand-logo { height: 42px; }
  .subnav-inner { gap: 0; padding-left: 6px; padding-right: 6px; }
  .subnav-link { padding: 14px 10px; font-size: 14px; }
  .subnav-link.active::after { left: 6px; right: 6px; }
  .dept-cta { padding: 24px; }
  .banner-dept .banner-inner { padding-top: 60px; }
  .nav { gap: 14px; }
  .row { flex-wrap: wrap; }
  .card { padding: 18px; }
  .hero-inner { padding-bottom: 80px; }
  .hero-actions .btn { width: 100%; }
  .cta { padding: 96px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
