/* 5th Infantry Division — site styles
   WWII palette: olive drab, khaki and gunmetal. Brand red only in the logo and wordmark. */

:root {
  --bg: #0f100d;
  --bar: #13140f;
  --panel: #171912;
  --line: #2b2e24;
  --line-strong: #3a3e2e;
  --text: #e9e6dc;
  --text-muted: #cdc8b8;
  --text-quiet: #a9a38f;
  --khaki: #c9b07a;
  --khaki-link: #d6c08a;
  --olive: #4b5320;
  --brand-red: #e0201c;
  --display: "Saira Condensed", "Arial Narrow", sans-serif;
  --eyebrow: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
  --wrap: 1200px;
}

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

html { background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; }
a { color: var(--khaki-link); }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--khaki); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--khaki); color: #14150f; padding: 8px 14px; z-index: 10; }
.skip-link:focus { left: 8px; }

/* ---- Type ---- */
.eyebrow {
  margin: 0 0 4px;
  font-family: var(--eyebrow); font-style: italic; font-weight: 700;
  font-size: 18px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--khaki);
}
.h-display {
  margin: 0;
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  color: #fff; line-height: 1;
}
.h1 { font-size: clamp(42px, 9vw, 96px); line-height: 0.92; overflow-wrap: anywhere; }
.h2 { font-size: clamp(36px, 5vw, 48px); }
.h3 { font-size: 26px; line-height: 1.1; }
.wordmark-red { color: var(--brand-red); }
.muted { color: var(--text-muted); }
.quiet { color: var(--text-quiet); font-size: 15px; }

/* ---- Header ---- */
.site-header { background: var(--bar); border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 48px; height: 48px; border-radius: 6px; }
.brand span {
  font-family: var(--display); font-weight: 800; font-size: 22px;
  letter-spacing: 0.04em; text-transform: uppercase; color: #fff;
}
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.site-nav a {
  font-family: var(--display); font-weight: 600; font-size: 17px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text); text-decoration: none; padding: 10px 0;
}
.site-nav a[aria-current="page"] { color: var(--khaki); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px; border-radius: 4px;
  font-family: var(--display); font-weight: 800; font-size: 19px;
  letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
}
.btn-primary { background: var(--khaki); color: #14150f; }
.btn-primary:hover { background: #dcc591; color: #14150f; }
.btn-outline { border: 2px solid var(--text); color: #fff; background: rgba(15, 16, 13, 0.6); }
.btn-outline:hover { background: rgba(233, 230, 220, 0.12); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---- Hero ---- */
/* Animated, in the style of the Discord server banner: red-tinted photo slowly pushing in,
   drifting smoke, rising embers (canvas, in home.html) and a distressed red/white title. */
.hero { position: relative; overflow: hidden; isolation: isolate; background: #120606; border-bottom: 3px solid var(--olive); }
.hero-bg {
  position: absolute; inset: -4%; z-index: -3;
  background: linear-gradient(#7a2a2b, #7a2a2b), url("../img/hero.44bf313b95c5.jpg") center 40% / cover no-repeat;
  background-blend-mode: color;    /* colour the photo red, like the banner */
  filter: contrast(1.2) brightness(0.55) saturate(0.55);
  animation: hero-push 34s ease-in-out infinite alternate;
}
.hero::before {            /* darken behind the text and towards the bottom edge */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8,4,4,0.9) 0%, rgba(8,4,4,0.65) 40%, rgba(8,4,4,0.15) 78%, rgba(8,4,4,0.05) 100%),
    linear-gradient(0deg, rgba(10,6,6,0.9) 0%, rgba(10,6,6,0) 35%),
    radial-gradient(ellipse at 70% 35%, rgba(255,40,30,0.08), transparent 60%);
}
.hero-smoke {
  position: absolute; z-index: -2; pointer-events: none; width: 140%; height: 140%; left: -20%; top: -20%;
  background:
    radial-gradient(ellipse 30% 22% at 30% 60%, rgba(120,20,20,0.35), transparent 70%),
    radial-gradient(ellipse 26% 18% at 70% 40%, rgba(90,15,15,0.3), transparent 70%),
    radial-gradient(ellipse 34% 20% at 55% 85%, rgba(60,10,10,0.35), transparent 70%);
  filter: blur(18px); opacity: 0.9;
  animation: hero-smoke 26s ease-in-out infinite alternate;
}
.hero-smoke-2 { animation-duration: 38s; animation-direction: alternate-reverse; transform: scaleX(-1); opacity: 0.7; }
.hero-embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero .wrap {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 40px;
  padding-top: 96px; padding-bottom: 120px; min-height: 420px;
}
.hero-title {
  color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,0.6);
  -webkit-mask-image: url("../img/grunge-mask.7638988bfce8.png"); mask-image: url("../img/grunge-mask.7638988bfce8.png");
  -webkit-mask-size: 512px 256px; mask-size: 512px 256px;
}
.hero-title-red { color: var(--brand-red); animation: hero-flicker 9s linear infinite; }
.hero-emblem { animation: hero-glow 5s ease-in-out infinite; }
@keyframes hero-push { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.1) translate(-2%, -1.5%); } }
@keyframes hero-smoke { from { transform: translate(-4%, 2%) scale(1); } to { transform: translate(5%, -3%) scale(1.12); } }
@keyframes hero-glow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(224,32,28,0.35), 0 0 24px rgba(224,32,28,0.25); }
  50% { box-shadow: 0 0 0 1px rgba(224,32,28,0.6), 0 0 46px rgba(224,32,28,0.5); }
}
@keyframes hero-flicker {   /* a faulty-light stutter now and then */
  0%, 91%, 93.5%, 96%, 100% { opacity: 1; text-shadow: 0 0 22px rgba(224,32,28,0.45); }
  92%, 95% { opacity: 0.55; text-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg, .hero-smoke, .hero-title-red, .hero-emblem { animation: none; }
}
.hero-emblem { flex: 0 1 220px; width: 220px; border-radius: 10px; box-shadow: 0 0 0 1px rgba(224,32,28,0.35); }
.hero-copy { flex: 1 1 460px; min-width: 0; max-width: 640px; display: flex; flex-direction: column; gap: 18px; }
.hero-copy .eyebrow { font-size: 28px; letter-spacing: 0.06em; margin: 0; color: #e6ddd0; }
.hero-lead { margin: 0; max-width: 560px; font-size: 20px; color: #ddd8ca; }

/* ---- Sections ---- */
.about-more { margin: 32px 0 0; }
.section { padding-top: 72px; }
.section:last-of-type { padding-bottom: 80px; }
.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 12px; margin-bottom: 28px;
}
.section-head a {
  font-family: var(--display); font-weight: 600; font-size: 17px;
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; padding: 10px 0;
}

/* ---- News cards ---- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.news-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px;
  overflow: hidden; display: flex; flex-direction: column;
}
.news-card-media {
  height: 170px; background: #1d1f17 url("../img/map-grid.029936512eda.svg") center / cover;
}
.news-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-card-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-date { margin: 0; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--khaki); }
.news-card h3 a { color: #fff; text-decoration: none; }
.news-card h3 a:hover { color: var(--khaki); }
.news-card p { margin: 0; color: var(--text-muted); }
.news-card .read-more { margin-top: auto; padding-top: 6px; font-weight: 600; text-decoration: none; }
.empty {
  padding: 40px 24px; text-align: center; color: var(--text-quiet);
  border: 1px dashed var(--line-strong); border-radius: 6px;
}

/* ---- About ---- */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.pillar { border-top: 3px solid var(--olive); padding-top: 18px; }
.pillar h3 { margin: 0 0 8px; }
.pillar p { margin: 0; color: var(--text-muted); }

/* ---- Enlist banner ---- */
.enlist {
  border: 1px solid var(--line-strong); border-radius: 8px;
  padding: 64px 40px; min-height: 260px;
  display: flex; justify-content: flex-end; align-items: center;
  background-color: #1b1c16;
  background-image:
    linear-gradient(270deg, rgba(12,13,10,0.95) 0%, rgba(12,13,10,0.82) 40%, rgba(12,13,10,0.15) 75%, rgba(12,13,10,0) 100%),
    url("../img/enlist.e7e0613ae6a3.jpg");
  background-size: cover; background-position: center, left 30%; background-repeat: no-repeat;
}
.enlist-inner { flex: 0 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.enlist-inner p { margin: 8px 0 0; color: #ddd8ca; }

/* ---- Page header (inner pages) ---- */
.page-head { background: linear-gradient(180deg, #171912 0%, var(--bg) 100%); border-bottom: 3px solid var(--olive); }
.page-head .wrap { padding-top: 56px; padding-bottom: 44px; }
.page-head p.lead { margin: 12px 0 0; max-width: 640px; font-size: 19px; color: #ddd8ca; }

/* ---- Article (news detail, rules) ---- */
.narrow { max-width: 820px; }
.article-image { width: 100%; border-radius: 6px; border: 1px solid var(--line); margin: 0 0 28px; }
.prose { color: #ddd8ca; }
.prose h2, .prose h3, .prose h4 { font-family: var(--display); font-weight: 800; text-transform: uppercase; color: #fff; line-height: 1.1; margin: 1.6em 0 0.5em; }
.prose h2 { font-size: 32px; } .prose h3 { font-size: 26px; } .prose h4 { font-size: 21px; }
.prose blockquote { margin: 1.2em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--khaki); color: var(--text-muted); }
.prose code { background: var(--panel); padding: 1px 6px; border-radius: 3px; }
.prose table { border-collapse: collapse; width: 100%; }
.prose th, .prose td { border: 1px solid var(--line-strong); padding: 8px 10px; text-align: left; }
.prose img { border-radius: 6px; }

.rules-list { list-style: none; counter-reset: rule; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.rules-list li {
  counter-increment: rule; position: relative;
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px;
  padding: 22px 24px 20px 84px;
}
.rules-list li::before {
  content: counter(rule);
  position: absolute; left: 24px; top: 18px;
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--olive); color: #fff; font-family: var(--display); font-weight: 800; font-size: 22px;
}
.rules-list h2 { margin: 0 0 6px; font-family: var(--display); font-weight: 800; font-size: 26px; text-transform: uppercase; color: #fff; }
.rules-list .prose p:first-child { margin-top: 0; }
.rules-list .prose p:last-child { margin-bottom: 0; }

.callout {
  margin-top: 36px; padding: 24px 28px; border-radius: 6px;
  border: 1px solid var(--khaki); background: rgba(201, 176, 122, 0.08);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
}
.callout p { margin: 0; max-width: 520px; }

/* ---- Pagination ---- */
.pager { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 36px; }
.pager a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 4px; text-decoration: none; }

/* ---- Footer ---- */
.site-footer { background: var(--bar); border-top: 3px solid var(--olive); }
.site-footer .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 24px; padding-top: 40px; padding-bottom: 40px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 56px; height: 56px; border-radius: 6px; }
.footer-brand strong { display: block; font-family: var(--display); font-weight: 800; font-size: 22px; text-transform: uppercase; color: #fff; }
.footer-brand span { font-size: 14px; color: #b6b09c; }
.socials { display: flex; flex-wrap: wrap; gap: 12px; }
.socials a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px;
  border: 1px solid var(--line-strong); border-radius: 4px; color: #fff; text-decoration: none; font-weight: 600;
}
.socials a:hover { border-color: var(--khaki); }
.socials svg { width: 20px; height: 20px; }

/* ---- Small screens ---- */
@media (max-width: 640px) {
  .hero .wrap { padding-top: 48px; padding-bottom: 64px; }
  .hero-emblem { width: 120px; flex-basis: 120px; }
  .enlist {
    padding: 40px 22px;
    background-image: linear-gradient(0deg, rgba(12,13,10,0.92) 0%, rgba(12,13,10,0.8) 100%), url("../img/enlist.e7e0613ae6a3.jpg");
    background-position: center, 20% 30%;
  }
  .rules-list li { padding-left: 24px; padding-top: 72px; }
  .site-nav { gap: 4px 16px; }
}

/* The red half of the wordmark keeps its colour and size inside the brand/footer spans. */
.brand .wordmark-red,
.footer-brand .wordmark-red { color: var(--brand-red); font-size: inherit; }

/* ---- Discord login (Phase 2) ---- */
.site-nav a.nav-login {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px;
  background: var(--olive); color: #fff; border-radius: 4px;
}
.site-nav a.nav-login:hover { background: #5c6628; color: #fff; }
.nav-login svg { width: 18px; height: 18px; }
.nav-account { display: inline-flex; align-items: center; gap: 10px; }
.nav-account img { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-strong); }
button.btn { border: 0; cursor: pointer; }
button.btn-outline { border: 2px solid var(--text); }
.account-message { text-align: left; }
.account-message .lead { margin-bottom: 28px; }
.account-card {
  display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start;
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 24px; margin-bottom: 16px;
}
.account-avatar { width: 96px; height: 96px; border-radius: 50%; border: 2px solid var(--olive); }
.account-facts { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; flex: 1 1 280px; }
.account-facts dt { color: var(--text-quiet); font-size: 15px; text-transform: uppercase; letter-spacing: 0.06em; }
.account-facts dd { margin: 0; overflow-wrap: anywhere; }
.access-badge { display: inline-block; padding: 2px 10px; border-radius: 3px; font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; background: var(--line-strong); }
.access-1 { background: var(--olive); color: #fff; }
.access-2 { background: var(--khaki); color: #14150f; }
.access-3 { background: var(--brand-red); color: #fff; }
@media (max-width: 640px) {
  .account-facts { grid-template-columns: 1fr; gap: 2px; }
  .account-facts dd { margin-bottom: 10px; }
}

/* ---- Apply form (Phase 4) ---- */
.text-white { color: #fff; }
.apply-step, .apply-done {
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 24px 28px;
}
.apply-done { border-color: var(--olive); }
.apply-step p { margin: 0 0 16px; }
.apply-step p:last-child { margin-bottom: 0; }
.apply-form { display: flex; flex-direction: column; gap: 24px; margin-top: 28px; }
.apply-form fieldset { border: 0; padding: 0; margin: 0; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label, .field legend {
  font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: 0.04em;
  text-transform: uppercase; color: #fff; padding: 0; margin-bottom: 8px;
}
.field input[type="text"], .field input[type="date"], .field input[type="time"], .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--panel);
  border: 1px solid var(--line-strong); border-radius: 4px; padding: 12px 14px;
}
.field input[type="text"]:focus, .field input[type="date"]:focus, .field input[type="time"]:focus, .field textarea:focus { border-color: var(--khaki); outline: none; }
.choices { display: flex; flex-direction: column; gap: 10px; }
.choices-inline { flex-direction: row; gap: 28px; }
.choices label, .checks label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.choices input, .checks input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--olive); flex: none; }
.checks { gap: 14px; }
.field.checks > label { font-family: var(--body); font-size: 17px; text-transform: none; letter-spacing: 0; color: var(--text); margin: 0; }
.other-clan { margin-top: 14px; }
fieldset:has(input[value="no"]:checked) .other-clan { display: none; }
.field-error, .form-error { margin: 0; color: #ff8a80; font-size: 15px; }

/* ---- Staff: application review ---- */
.site-nav a.nav-staff { color: var(--khaki); }
.nav-count {
  display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px;
  margin-left: 4px; border-radius: 11px; background: var(--brand-red); color: #fff; font-size: 14px; letter-spacing: 0;
}
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.tabs a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; margin-bottom: -1px;
  font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted); text-decoration: none; border-bottom: 3px solid transparent;
}
.tabs a[aria-current="page"] { color: #fff; border-bottom-color: var(--khaki); }
.tab-count { font-size: 14px; color: var(--text-quiet); }
.app-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.app-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px;
  padding: 16px 20px; background: var(--panel); color: var(--text); text-decoration: none;
}
.app-row + .app-row { border-top: 1px solid var(--line); }
.app-row:hover { background: #1d2017; color: var(--text); }
.app-who { display: flex; flex-direction: column; min-width: 0; }
.app-who strong { font-family: var(--display); font-weight: 800; font-size: 22px; text-transform: uppercase; color: #fff; }
.app-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.status-badge {
  display: inline-block; padding: 2px 10px; border-radius: 3px; font-family: var(--display); font-weight: 800;
  font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; vertical-align: middle;
}
.status-pending { background: var(--khaki); color: #14150f; }
.status-accepted { background: var(--olive); color: #fff; }
.status-denied { background: var(--line-strong); color: var(--text-muted); }
.status-problem { background: transparent; border: 1px solid #ff8a80; color: #ff8a80; }
.review-h { font-family: var(--display); font-weight: 800; font-size: 26px; text-transform: uppercase; color: #fff; margin: 36px 0 14px; }
.answers { margin: 0; display: flex; flex-direction: column; gap: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.answers dt { padding: 14px 20px 2px; background: var(--panel); color: var(--text-quiet); font-size: 15px; text-transform: uppercase; letter-spacing: 0.06em; }
.answers dd { margin: 0; padding: 0 20px 14px; background: var(--panel); border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.answers dd:last-child { border-bottom: 0; }
.review-form textarea { width: 100%; font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--line-strong); border-radius: 4px; padding: 12px 14px; }
.review-form .btn-row { margin-top: 14px; }
.btn-danger { background: #8e1b18; color: #fff; }
.btn-danger:hover { background: #a8231f; color: #fff; }
.discord-checks { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 6px; }
.discord-problem { white-space: pre-wrap; background: var(--panel); border: 1px solid #ff8a80; border-radius: 4px; padding: 12px 14px; color: #ffb4ab; font-size: 14px; }
.flash-list { margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.flash { margin: 0; padding: 12px 16px; border-radius: 4px; border: 1px solid var(--olive); background: rgba(75, 83, 32, 0.25); }
.flash-error { border-color: #ff8a80; background: rgba(142, 27, 24, 0.25); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Roster ---- */
.roster-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.sync-line { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.sync-dot { width: 8px; height: 8px; border-radius: 50%; background: #8fa070; }
.sync-dot.sync-bad { background: #ff8a80; }
.link-button { background: none; border: 0; padding: 0; font: inherit; font-size: 15px; color: var(--khaki-link); text-decoration: underline; cursor: pointer; }
.link-button:hover { color: #fff; }
.link-danger { color: #ff8a80; }
.roster-filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.roster-search { flex: 1 1 280px; min-width: 0; }
.roster-filters input[type="search"], .roster-filters select, .mbr-filters input[type="search"] {
  box-sizing: border-box; width: 100%; min-height: 44px; padding: 10px 14px; font: inherit;
  color: var(--text); background: var(--panel); border: 1px solid var(--line-strong); border-radius: 4px;
}
.btn-small { min-height: 44px; padding: 0 20px; font-size: 17px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.roster-table { width: 100%; min-width: 720px; border-collapse: collapse; }
.roster-table th {
  padding: 12px 14px; text-align: left; font-size: 13px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-quiet); border-bottom: 1px solid var(--line-strong); white-space: nowrap;
}
.roster-table td { padding: 10px 14px; border-bottom: 1px solid #22251c; }
.roster-table tr:last-child td { border-bottom: 0; }
.roster-table tbody tr:hover { background: #1d2017; }
.roster-name { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap; }
.roster-name:hover { color: var(--khaki); }
.roster-name img { width: 32px; height: 32px; border-radius: 50%; background: var(--line); flex: none; }
.member-active { background: rgba(143, 160, 112, 0.18); color: #b9c99a; }
.member-left_unit, .member-left_discord { background: rgba(169, 163, 143, 0.14); color: var(--text-quiet); }
.member-head { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.member-head .lead { margin: 6px 0 0; }
.note-form { margin-bottom: 24px; }
.note-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.attach { font-size: 15px; color: var(--text-muted); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.attach input { font: inherit; font-size: 14px; color: var(--text-muted); max-width: 100%; }
.note { border-left: 2px solid var(--olive); padding: 2px 0 2px 16px; margin-bottom: 22px; }
.note-meta { margin: 0; font-size: 14px; color: var(--text-quiet); }
.note-meta strong { color: var(--text); }
.note-body { margin: 6px 0 8px; overflow-wrap: anywhere; }
.note-image { display: block; max-width: 100%; max-height: 320px; border-radius: 4px; border: 1px solid var(--line-strong); margin-bottom: 8px; }

/* ---- Tools dropdown ---- */
.nav-menu { position: relative; }
.nav-menu summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 10px 0;
  font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text);
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.nav-menu[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.nav-menu summary[aria-current="page"] { color: var(--khaki); }
.nav-menu-list {
  position: absolute; z-index: 20; top: calc(100% + 6px); left: -16px; min-width: 280px; padding: 6px;
  background: var(--panel); border: 1px solid var(--line-strong); border-radius: 6px; box-shadow: 0 12px 28px rgba(0,0,0,0.45);
  display: flex; flex-direction: column;
}
.site-nav .nav-menu-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 4px;
  font-size: 16px;
}
.site-nav .nav-menu-list a:hover { background: #22251c; color: var(--khaki); }
.nav-menu-note { font-family: var(--body); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-quiet); }
@media (max-width: 640px) { .nav-menu-list { left: 0; } }

/* ---- Calculators ---- */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }
.calc-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 24px; }
.calc-panel h2 { margin: 0 0 16px; font-family: var(--display); font-weight: 800; font-size: 24px; text-transform: uppercase; color: #fff; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.seg button {
  min-height: 44px; padding: 0 16px; border-radius: 4px; border: 1px solid var(--line-strong); background: transparent;
  color: var(--text); font: inherit; font-weight: 600; cursor: pointer;
}
.seg button[aria-pressed="true"] { border-color: var(--khaki); background: #2b2e24; color: #fff; }
.calc-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.calc-field label { font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; }
.calc-field .hint { font-size: 14px; color: var(--text-quiet); }
.calc-input {
  box-sizing: border-box; width: 100%; min-height: 56px; padding: 8px 16px; font-family: var(--display); font-weight: 800;
  font-size: 32px; color: #fff; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 4px;
}
.calc-input:focus { outline: none; border-color: var(--khaki); }
.calc-input.small { min-height: 48px; font-size: 24px; }
.calc-result {
  text-align: center; padding: 28px 16px; border: 2px solid var(--olive); border-radius: 6px; background: rgba(75, 83, 32, 0.15);
}
.calc-result .label { margin: 0; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-quiet); }
.calc-result .value { margin: 4px 0 0; font-family: var(--display); font-weight: 800; font-size: 88px; line-height: 1; color: var(--khaki); font-variant-numeric: tabular-nums; }
.calc-result .unit { font-size: 28px; color: var(--text-muted); }
.calc-warning { margin: 14px 0 0; padding: 10px 14px; border-radius: 4px; border: 1px solid #ff8a80; color: #ffb4ab; font-size: 15px; }
.calc-warning[hidden] { display: none; }
.ref-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ref-table th, .ref-table td { padding: 6px 10px; text-align: right; border-bottom: 1px solid #22251c; }
.ref-table th { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-quiet); font-weight: 600; }
.ref-table td:first-child, .ref-table th:first-child { text-align: left; }
.ref-table tr.hit td { background: rgba(201, 176, 122, 0.12); color: #fff; }
.calc-credit { margin-top: 24px; font-size: 14px; color: var(--text-quiet); }
.check-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; cursor: pointer; }
.check-row input { width: 20px; height: 20px; accent-color: var(--olive); }

/* ---- Strat sketch ---- */
.new-sketch h2 { margin-bottom: 12px; }
.new-sketch-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.new-sketch-row .calc-field { margin: 0; flex: 1 1 240px; }
.new-sketch input, .new-sketch select {
  box-sizing: border-box; width: 100%; min-height: 44px; padding: 10px 14px; font: inherit;
  color: var(--text); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 4px;
}
.sketch-page { max-width: 1400px; margin: 0 auto; padding: 16px 24px 40px; }
.sketch-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 12px; }
.sketch-back { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none; }
.sketch-title { margin: 0; flex: 1 1 240px; min-width: 0; font-family: var(--display); font-weight: 800; font-size: 26px; text-transform: uppercase; color: #fff; }
.sketch-title input {
  box-sizing: border-box; width: 100%; padding: 6px 10px; font-family: var(--display); font-weight: 800; font-size: 24px;
  text-transform: uppercase; color: #fff; background: transparent; border: 1px solid transparent; border-radius: 4px;
}
.sketch-title input:hover, .sketch-title input:focus { border-color: var(--line-strong); background: var(--panel); outline: none; }
.sketch-meta { font-size: 14px; }
.sketch-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sketch-actions form { margin: 0; }
.save-status { font-size: 14px; color: var(--text-quiet); }
.save-status.dirty { color: #f2cc35; }
.save-status.saved { color: #b9c99a; }
.sketch-tools { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 8px; margin-bottom: 8px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
.tool-group { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.tool-group + .tool-group { padding-left: 14px; border-left: 1px solid var(--line-strong); }
.sketch-tools button {
  min-height: 40px; min-width: 40px; padding: 0 12px; border-radius: 4px; border: 1px solid transparent; background: transparent;
  color: var(--text); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
}
.sketch-tools button:hover { background: #22251c; }
.sketch-tools button[aria-pressed="true"] { background: #2b2e24; border-color: var(--khaki); color: #fff; }
.sketch-tools button:disabled { opacity: 0.4; cursor: default; }
.sketch-tools .swatch { min-width: 32px; width: 32px; height: 32px; min-height: 32px; padding: 0; border-radius: 50%; background: var(--sw); border: 2px solid var(--line-strong); }
.sketch-tools .swatch[aria-pressed="true"] { border-color: #fff; box-shadow: 0 0 0 2px var(--khaki); background: var(--sw); }
.zoom-level { min-width: 48px; text-align: center; font-size: 14px; color: var(--text-quiet); font-variant-numeric: tabular-nums; }
.icon-picker { display: flex; gap: 4px; overflow-x: auto; padding: 6px; margin-bottom: 8px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px; scrollbar-width: thin; }
.icon-picker button { flex: 0 0 auto; width: 76px; }
.icon-picker[hidden] { display: none; }
.icon-picker button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 4px;
  border: 1px solid transparent; background: transparent; color: var(--text); font: inherit; font-size: 12px; cursor: pointer; }
.icon-picker button svg { width: 30px; height: 30px; }
.icon-picker button:hover { background: #22251c; }
.icon-picker button[aria-pressed="true"] { background: #2b2e24; border-color: var(--khaki); color: #fff; }
.stage-wrap { position: relative; width: min(100%, calc(100vh - 120px)); min-width: min(100%, 320px); margin: 0 auto;
  aspect-ratio: 1; border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden; background: #1b1c16; }
.stage-wrap svg { display: block; width: 100%; height: 100%; touch-action: none; user-select: none; -webkit-user-select: none; }
.stage-wrap[data-tool="pan"] svg { cursor: grab; }
.stage-wrap[data-tool="pen"] svg, .stage-wrap[data-tool="line"] svg, .stage-wrap[data-tool="arrow"] svg, .stage-wrap[data-tool="icon"] svg { cursor: crosshair; }
.stage-wrap[data-tool="text"] svg { cursor: text; }
.stage-wrap[data-tool="erase"] svg { cursor: cell; }
.stage-wrap[data-tool="select"] .item { cursor: move; }
#grid line { stroke: rgba(255, 255, 255, 0.35); stroke-width: 1; vector-effect: non-scaling-stroke; pointer-events: none; }
.grid-label { fill: #fff; font: 700 20px var(--body); text-anchor: middle; paint-order: stroke; stroke: #000; stroke-width: 3; pointer-events: none; }
.selection-box { stroke: #fff; stroke-width: 1.5; stroke-dasharray: 6 4; vector-effect: non-scaling-stroke; pointer-events: none; }
.text-box { position: absolute; z-index: 5; display: flex; gap: 6px; padding: 6px; background: var(--panel); border: 1px solid var(--khaki); border-radius: 6px; box-shadow: 0 8px 20px rgba(0,0,0,.5); }
.text-box[hidden] { display: none; }
.text-box input { width: 180px; padding: 8px 10px; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 4px; }
.sketch-help { text-align: center; margin: 10px 0 0; }
.sketch-help kbd { font: inherit; padding: 1px 6px; border: 1px solid var(--line-strong); border-radius: 3px; }
.sketch-delete { text-align: center; margin-top: 10px; }
@media (max-width: 640px) {
  .sketch-page { padding: 12px 12px 32px; }
  .tool-group + .tool-group { padding-left: 0; border-left: 0; }
  .stage-wrap { width: 100%; }
}
.calc-field[hidden] { display: none; }
.site-nav .nav-menu-list a { white-space: nowrap; }

/* ---- Strat sketch: hardpoints ---- */
.points-count { display: inline-flex; min-width: 18px; justify-content: center; padding: 0 5px; border-radius: 9px; background: #f2cc35; color: #14150f; font-size: 12px; }
.points-count:empty { display: none; }
.points-panel { padding: 10px 12px; margin-bottom: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
.points-panel[hidden] { display: none; }
.points-panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 8px; }
.points-panel-head p { margin: 0; font-size: 14px; }
.points-panel-actions { display: flex; gap: 16px; align-items: center; font-size: 14px; }
.points-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px 14px; }
.points-group { display: flex; flex-direction: column; gap: 4px; }
.points-group-label { margin: 0 0 2px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-quiet); }
.point-chip { text-align: left; min-height: 36px; padding: 4px 10px; border-radius: 4px; border: 1px solid var(--line-strong);
  background: transparent; color: var(--text); font: inherit; font-size: 15px; cursor: pointer; }
.point-chip:hover:not(:disabled) { border-color: var(--khaki); }
.point-chip[aria-pressed="true"] { background: rgba(242, 204, 53, 0.16); border-color: #f2cc35; color: #fff; font-weight: 600; }
.point-chip:disabled { cursor: default; }
.map-points-links { margin: 14px 0 0; font-size: 15px; }
.map-points-links summary { cursor: pointer; color: var(--khaki-link); }
.points-editor { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.points-editor .stage-wrap { width: 100%; max-width: calc(100vh - 140px); }
.points-editor .stage-wrap svg { cursor: crosshair; }
.points-editor .hp { cursor: move; }
@media (max-width: 900px) { .points-editor { grid-template-columns: 1fr; } }
.points-side h2 { font-size: 20px; margin: 4px 0 10px; }
.points-side .calc-field span { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: #fff; }
.points-side input[type="text"], .points-side select { box-sizing: border-box; width: 100%; min-height: 42px; padding: 8px 12px; font: inherit;
  color: var(--text); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 4px; }
.points-side input[type="range"] { width: 100%; accent-color: var(--khaki); }
#point-form { padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
#point-form[hidden] { display: none; }
.point-list { display: flex; flex-direction: column; gap: 4px; max-height: 50vh; overflow-y: auto; }

/* ---- Events toolbox ---- */
.events-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 960px) { .events-grid { grid-template-columns: 1fr; } }
.event-form { display: flex; flex-direction: column; gap: 18px; }
.event-form h2 { margin: 0; }
.event-form input[type="text"], .event-form input[type="date"], .event-form input[type="time"], .event-form select, .event-form textarea {
  box-sizing: border-box; width: 100%; min-height: 46px; padding: 10px 14px; font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 4px; color-scheme: dark;
}
.event-form input:focus, .event-form select:focus, .event-form textarea:focus { outline: none; border-color: var(--khaki); }
.event-form .field > label, .event-form legend { font-size: 17px; margin-bottom: 0; }
.event-form fieldset { border: 0; padding: 0; margin: 0; }
.hint { font-size: 14px; color: var(--text-quiet); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.form-row[hidden] { display: none; }
.form-note { margin: -8px 0 0; }
.choice-box { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 4px; cursor: pointer; }
.choice-box:has(input:checked) { border-color: var(--khaki); background: #22251c; }
.when-choices { gap: 10px; margin-bottom: 12px; }
.form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.eyebrow-small { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-quiet); }
.discord-preview-wrap { align-self: start; }
.discord-fields .full { grid-column: 1 / -1; }
.discord-msg { display: flex; gap: 14px; background: #313338; border-radius: 8px; padding: 16px; color: #dbdee1; font-size: 15px; margin-bottom: 12px; }
.discord-avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.discord-body { min-width: 0; flex: 1; }
.discord-meta { margin: 0 0 4px; }
.discord-meta strong { color: #fff; }
.discord-app { font-size: 10px; font-weight: 700; background: #5865f2; color: #fff; padding: 1px 4px; border-radius: 3px; vertical-align: 1px; }
.discord-time { font-size: 12px; color: #949ba4; }
.discord-ping { display: inline-block; margin: 0 0 6px; padding: 0 3px; border-radius: 3px; background: rgba(88,101,242,.3); color: #c9cdfb; }
.discord-ping[hidden] { display: none; }
.discord-embed { display: flex; gap: 12px; border-left: 4px solid #c9b07a; background: #2b2d31; border-radius: 4px; padding: 12px 14px; }
.discord-embed-main { min-width: 0; flex: 1; }
.discord-title { margin: 0 0 6px; font-weight: 700; font-size: 16px; color: #fff; overflow-wrap: anywhere; }
.discord-desc { margin: 0 0 8px; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.discord-desc:empty { display: none; }
.discord-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; font-size: 14px; }
.discord-fields p { margin: 0; overflow-wrap: anywhere; }
.discord-fields .fname { font-weight: 700; color: #fff; }
.discord-fields [hidden] { display: none; }
.mention { color: #c9cdfb; }
.discord-footer { margin: 10px 0 0; font-size: 12px; color: #949ba4; }
.discord-thumb { width: 80px; height: 80px; object-fit: cover; border-radius: 4px; flex: none; }
.discord-thumb[hidden] { display: none; }
.discord-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.db { display: inline-flex; align-items: center; min-height: 32px; padding: 0 16px; border-radius: 4px; color: #fff; font-size: 14px; font-weight: 600; }
.db-green { background: #248046; } .db-grey { background: #4e5058; } .db-red { background: #da373c; }
.row-actions { white-space: nowrap; text-align: right; }
.row-actions form { display: inline; margin: 0 0 0 10px; }
.row-actions a { margin-left: 10px; }
.ev-draft { background: rgba(169,163,143,.14); color: var(--text-quiet); }
.ev-scheduled { background: rgba(201,176,122,.16); color: var(--khaki-link); }
.ev-posted { background: rgba(143,160,112,.18); color: #b9c99a; }
.ev-cancelled { background: rgba(224,32,28,.14); color: #ff8a80; }
.ev-past { background: rgba(169,163,143,.14); color: var(--text-quiet); }
.history { margin-top: 28px; }
.history summary { cursor: pointer; color: var(--khaki-link); margin-bottom: 12px; }
.signup-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.signup-h { margin: 0 0 10px; font-family: var(--display); font-weight: 800; font-size: 20px; text-transform: uppercase; color: #fff; }
.signup-name { margin: 0 0 4px; }
.nav-menu-list .nav-count { margin-left: auto; }

/* Phone fixes: closed menus take no space; menus and form rows fit the screen. */
.nav-menu:not([open]) .nav-menu-list { display: none; }
.nav-menu-list { max-width: calc(100vw - 32px); }
@media (max-width: 640px) {
  .nav-menu { position: static; }
  .site-nav { position: relative; }
  .nav-menu-list { left: 0; right: 0; min-width: 0; }
}
.form-row { grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); }
@media (max-width: 960px) { .events-grid { grid-template-columns: minmax(0, 1fr); } }
.event-form input[type="date"], .event-form input[type="time"] { min-width: 0; }
.when-choices { flex-wrap: wrap; }
.table-wrap { position: relative; }
@media (max-width: 640px) { .discord-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- Events: roles, banner, muster ---- */
.optional { font-family: var(--body); font-size: 12px; font-weight: 400; letter-spacing: 0.04em; text-transform: lowercase; color: var(--text-quiet); }
.banner-current { display: block; max-width: 100%; max-height: 200px; border-radius: 4px; border: 1px solid var(--line-strong); margin: 4px 0 8px; }
.check-row.small { font-size: 15px; margin-bottom: 6px; }
.event-form input[type="number"] { box-sizing: border-box; width: 100%; min-height: 42px; padding: 8px 12px; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 4px; }
.event-form input[type="file"] { font: inherit; font-size: 15px; color: var(--text-muted); max-width: 100%; }
.signup-setup .form-row { margin-bottom: 4px; }
.signup-setup > .hint { margin: 0 0 10px; }
.roles-box { border: 1px solid var(--line-strong); border-radius: 6px; padding: 10px 14px; }
.roles-box summary { cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 17px; text-transform: uppercase; letter-spacing: 0.04em; color: #fff; }
.roles-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.roles-table th { text-align: left; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-quiet); padding: 4px 6px; }
.roles-table td { padding: 4px 6px; border-top: 1px solid #22251c; }
.roles-table td:last-child { width: 110px; }
.role-check { display: flex; align-items: center; gap: 10px; cursor: pointer; min-height: 40px; }
.role-check input { width: 20px; height: 20px; accent-color: var(--olive); }
.discord-banner { display: block; width: 100%; max-height: 220px; object-fit: cover; border-radius: 4px; margin-top: 10px; }
.discord-banner[hidden] { display: none; }
.discord-select { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding: 9px 12px; border-radius: 4px; background: #1e1f22; color: #949ba4; font-size: 14px; max-width: 420px; }
.discord-select[hidden] { display: none; }
.db[hidden] { display: none; }
#pv-when div { margin: 0; }
#pv-when .pv-tz-note { font-style: italic; opacity: .75; font-size: .92em; }
.preset-row { border: 1px solid var(--line); border-radius: 6px; margin-bottom: 8px; }
.form-row-4 { grid-template-columns: repeat(auto-fit, minmax(min(165px, 100%), 1fr)); }

/* ---- Events queue: bulk actions ---- */
.bulk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 10px 14px; margin-bottom: 10px;
  background: #22251c; border: 1px solid var(--khaki); border-radius: 6px; }
.bulk-bar[hidden] { display: none; }
.bulk-count { font-weight: 600; color: #fff; margin-right: auto; }
.bulk-post { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bulk-post select { font: inherit; font-size: 14px; color: var(--text); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 4px; padding: 6px 8px; }
.check-col { width: 36px; }
.check-col input { width: 18px; height: 18px; accent-color: var(--olive); cursor: pointer; }

.toolbox-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.bulk-bar { position: sticky; top: 8px; z-index: 5; }

/* ---- Attendance / AWOL ---- */
.att { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 4px; font-weight: 700; font-size: 15px; }
.att-yes { background: rgba(143, 160, 112, 0.22); color: #b9c99a; }
.att-no { background: rgba(224, 32, 28, 0.18); color: #ff8a80; }
.att-none { background: transparent; color: var(--text-quiet); border: 1px dashed var(--line-strong); }
.att-skip { background: transparent; color: var(--text-quiet); }
.att-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.att-caption { margin-left: 8px; font-size: 14px; }
.att-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.att-legend .att { margin-left: 8px; }
.att-col { text-align: center !important; width: 64px; }
.missed-warn { color: #f2cc35; font-weight: 600; }
.missed-bad { color: #ff8a80; font-weight: 700; }
.member-loa { background: rgba(59, 130, 246, 0.18); color: #9cc3ff; }
.member-eloa { background: rgba(168, 85, 247, 0.2); color: #d4b4ff; }
.member-awol { background: rgba(224, 32, 28, 0.18); color: #ff8a80; }
.leave-until { font-size: 14px; white-space: nowrap; }

/* Chain of Command */
.oc { padding-top: 40px; padding-bottom: 64px; }
.oc-tier { text-align: center; }
.oc-tier-label { font-family: var(--eyebrow); font-weight: 500; text-transform: uppercase; letter-spacing: .14em; font-size: 14px; color: var(--khaki); margin: 0 0 14px; }
.oc-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.oc-card { background: var(--panel); border: 1px solid var(--line-strong); border-radius: 6px; padding: 14px 16px; width: 240px; display: flex; gap: 12px; align-items: center; text-align: left; }
.oc-card.lead { border-color: var(--khaki); box-shadow: 0 0 0 1px rgba(201, 176, 122, .25) inset; }
.oc-av { width: 48px; height: 48px; border-radius: 50%; flex: none; border: 2px solid var(--olive); background: #22251b; object-fit: cover; }
.oc-billet { font-family: var(--eyebrow); text-transform: uppercase; letter-spacing: .08em; font-size: 13px; color: var(--khaki); line-height: 1.2; }
.oc-name { font-weight: 600; color: var(--text); line-height: 1.25; overflow-wrap: anywhere; }
.oc-rank { font-size: 14px; color: var(--text-quiet); }
.oc-down { width: 2px; height: 34px; background: var(--line-strong); margin: 0 auto; }
.oc-branch { position: relative; height: 34px; }
.oc-branch::before { content: ""; position: absolute; left: calc(50% / var(--n)); right: calc(50% / var(--n)); top: 0; height: 2px; background: var(--line-strong); }
.oc-squads { display: grid; grid-template-columns: repeat(min(var(--n), 4), minmax(0, 1fr)); gap: 16px; }
.oc-squad { background: #13150f; border: 1px solid var(--line); border-radius: 6px; position: relative; }
.oc-branch + .oc-squads .oc-squad::before { content: ""; position: absolute; left: 50%; top: -35px; width: 2px; height: 34px; background: var(--line-strong); }
.oc-squad-head { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.oc-squad-name { font-family: var(--display); font-weight: 700; font-size: 22px; text-transform: uppercase; letter-spacing: .02em; margin: 0; }
.oc-squad .oc-card { width: auto; margin: 12px; }
.oc-list { list-style: none; margin: 0; padding: 0 12px 12px; }
.oc-list li { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-top: 1px solid var(--line); }
.oc-list li:first-child { border-top: 0; }
.oc-chip { font-family: var(--eyebrow); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; min-width: 44px; text-align: center; padding: 1px 6px; border-radius: 3px; background: rgba(75, 83, 32, .45); color: #d9d3bd; }
.oc-list .who { flex: 1; overflow-wrap: anywhere; }
.oc-li-title { display: block; font-family: var(--eyebrow); text-transform: uppercase; letter-spacing: .06em; font-size: 12px; color: var(--khaki); line-height: 1.2; }
.oc-pool { margin-top: 40px; }
.oc-pool .oc-list { columns: 3; padding: 0; }
.oc-pool .oc-list li { break-inside: avoid; }
@media (max-width: 900px) {
  .oc-squads { grid-template-columns: repeat(min(var(--n), 2), minmax(0, 1fr)); }
  .oc-branch, .oc-branch + .oc-squads .oc-squad::before { display: none; }
}
@media (max-width: 560px) {
  .oc-squads { grid-template-columns: 1fr; }
  .oc-card { width: 100%; }
  .oc-pool .oc-list { columns: 1; }
}

/* Resources */
.res-list { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 12px; }
.res-item { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 16px 18px; }
.res-title { margin: 0; font-size: 19px; font-weight: 600; }
.res-title a { text-decoration: none; }
.res-item .prose { margin-top: 6px; color: var(--text-muted); }
.res-item .prose > :last-child { margin-bottom: 0; }
.site-nav a.nav-keep-case { text-transform: none; }

/* Roster grouped by platoon and squad */
.roster-table tr.grp-platoon th { text-align: left; background: rgba(75, 83, 32, .28); color: var(--text); font-family: var(--display); font-weight: 700; font-size: 20px; text-transform: uppercase; letter-spacing: .03em; padding: 10px 14px; border-top: 2px solid var(--olive); }
.roster-table tr.grp-squad th { text-align: left; background: rgba(255, 255, 255, .025); color: var(--khaki); font-family: var(--eyebrow); font-weight: 500; font-size: 15px; text-transform: uppercase; letter-spacing: .1em; padding: 7px 14px 7px 24px; }
.roster-table tbody + tbody tr.grp-platoon th { border-top-width: 2px; }
.grp-count { font-family: var(--body); font-weight: 400; font-size: 14px; color: var(--text-quiet); letter-spacing: 0; text-transform: none; margin-left: 6px; }
.mates { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 8px; }
.mates li { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; }
.mates .oc-chip { min-width: 0; margin-right: 2px; }

/* Members directory */
.mbr-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.mbr-head .quiet { margin: 0; }
.mbr-filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.mbr-filters .roster-search { flex: 1 1 280px; }
.mbr-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; }
.mbr-chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
.mbr-chips a[aria-current="page"] { border-color: var(--khaki); background: var(--line); }
.mbr-platoon { margin-bottom: 40px; }
.mbr-platoon-name { font-family: var(--display); font-weight: 800; font-size: 30px; text-transform: uppercase; letter-spacing: .03em; margin: 0 0 6px; padding-bottom: 8px; border-bottom: 2px solid var(--olive); }
.mbr-squad-name { font-family: var(--eyebrow); font-weight: 600; font-size: 16px; text-transform: uppercase; letter-spacing: .12em; color: var(--khaki); margin: 22px 0 12px; }
.mbr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); gap: 14px; }
.mbr-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 14px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; text-decoration: none; color: var(--text); text-align: center; }
.mbr-card:hover { border-color: var(--khaki); background: #1c1e16; color: var(--text); }
.mbr-card.mbr-away { opacity: .7; }
.mbr-card-av { width: 84px; height: 84px; border-radius: 50%; border: 2px solid var(--line-strong); background: #22251b; object-fit: cover; margin-bottom: 4px; }
.mbr-card-rank { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--khaki); }
.mbr-card-name { font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.1; text-transform: uppercase; color: #fff; overflow-wrap: anywhere; }
.mbr-card-ign { font-size: 14px; color: var(--text-quiet); overflow-wrap: anywhere; }

/* Member profile */
.mbr-crumbs { padding-top: 28px; font-size: 15px; color: var(--text-quiet); }
.mbr-crumbs a { text-decoration: none; }
.mbr-hero { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 28px; padding: 34px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(90deg, rgba(23,25,18,1) 0%, rgba(23,25,18,.92) 55%, rgba(75,83,32,.35) 100%), var(--panel); }
.mbr-hero-av { width: 128px; height: 128px; border-radius: 50%; border: 3px solid var(--khaki); background: #22251b; object-fit: cover; flex: none; }
.mbr-hero-id { flex: 1 1 320px; min-width: 0; }
.mbr-hero-rank { margin: 0; font-family: var(--eyebrow); font-style: italic; font-weight: 700; font-size: 20px; letter-spacing: .08em; text-transform: uppercase; color: var(--khaki); }
.mbr-hero-name { margin: 2px 0 6px; font-family: var(--display); font-weight: 800; font-size: clamp(40px, 7vw, 64px); line-height: .95; text-transform: uppercase; color: #fff; overflow-wrap: anywhere; }
.mbr-hero-sub { margin: 0; color: var(--text-muted); overflow-wrap: anywhere; }
.mbr-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mbr-tag { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 3px; background: var(--line); color: var(--text); }
.mbr-facts { margin: 0; flex: 1 1 100%; min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line-strong); border-radius: 6px; background: rgba(15,16,13,.6); }
.mbr-facts > div { padding: 14px 16px; border-left: 1px solid var(--line-strong); min-width: 0; }
.mbr-facts > div:first-child { border-left: 0; }
.mbr-facts dt, .mbr-record dt, .mbr-stats dt { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-quiet); }
.mbr-facts dd { margin: 4px 0 0; font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.1; text-transform: uppercase; color: #fff; overflow-wrap: break-word; }
.mbr-staff-link { margin: 10px 0 0; text-align: right; font-size: 15px; }
.mbr-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.mbr-col { display: grid; gap: 20px; min-width: 0; }
.mbr-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 22px 24px; min-width: 0; }
.mbr-panel .eyebrow { margin: 0 0 12px; }
.mbr-panel-h { margin: -6px 0 14px; font-family: var(--display); font-weight: 800; font-size: 32px; text-transform: uppercase; color: #fff; }
.mbr-record, .mbr-stats { margin: 0; display: grid; gap: 0; }
.mbr-record > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid var(--line); }
.mbr-record > div:first-child { border-top: 0; }
.mbr-record dd { margin: 0; text-align: right; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.mbr-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mbr-stats > div { background: #13150f; border: 1px solid var(--line); border-radius: 4px; padding: 12px 14px; min-width: 0; }
.mbr-stats dd { margin: 4px 0 0; font-family: var(--display); font-weight: 800; font-size: 26px; color: #fff; overflow-wrap: anywhere; }
.mbr-placeholder { color: var(--line-strong); }
.mbr-note { margin: 12px 0 0; font-size: 14px; }
.mbr-mates { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mbr-mates a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 4px; text-decoration: none; color: var(--text); }
.mbr-mates a:hover { background: #1c1e16; color: #fff; }
.mbr-mates img { width: 40px; height: 40px; border-radius: 50%; background: #22251b; flex: none; }
.mbr-mate-rank { font-family: var(--eyebrow); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--khaki); }
.mbr-mate-ign { display: block; font-size: 14px; }
.mbr-shadowbox-empty { aspect-ratio: 1000 / 600; border-radius: 4px; border: 10px solid #3b2a1a; background: radial-gradient(ellipse at center, #2a0f12 0%, #170708 75%); box-shadow: inset 0 0 30px rgba(0,0,0,.7); display: flex; align-items: center; justify-content: center; gap: 8%; }
.mbr-shadowbox-empty span { width: 9%; aspect-ratio: 1 / 2.6; border-radius: 3px; border: 2px dashed rgba(201,176,122,.25); }
@media (max-width: 900px) {
  .mbr-sections { grid-template-columns: 1fr; }
  .mbr-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mbr-facts > div:nth-child(3) { border-left: 0; }
  .mbr-facts > div:nth-child(n+3) { border-top: 1px solid var(--line-strong); }
}
@media (max-width: 560px) {
  .mbr-hero { padding: 22px; }
  .mbr-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Account menu in the header */
.nav-account-menu .nav-menu-list { left: auto; right: 0; min-width: 200px; }
.nav-account-menu summary { text-transform: none; letter-spacing: 0; }
.nav-account-menu form { margin: 0; }
.nav-menu-button { display: flex; width: 100%; padding: 10px 12px; border: 0; border-radius: 4px; background: none; color: var(--text); cursor: pointer; text-align: left; font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: 0.06em; text-transform: uppercase; }
.nav-menu-button:hover { background: #22251c; color: var(--khaki); }
@media (max-width: 640px) { .nav-account-menu .nav-menu-list { right: auto; left: 0; } }

/* My dashboard */
.mbr-head-side { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.mbr-dash-label { font-family: var(--eyebrow); font-style: italic; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--khaki); }
.mbr-upcoming-wrap { margin-top: 20px; }
.mbr-upcoming { list-style: none; margin: 0; padding: 0; }
.mbr-upcoming li { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 12px 0; border-top: 1px solid var(--line); }
.mbr-upcoming li:first-child { border-top: 0; padding-top: 0; }
.mbr-up-when { width: 68px; flex: none; text-align: center; border: 1px solid var(--line-strong); border-radius: 4px; padding: 4px 0; background: #13150f; }
.mbr-up-day { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--khaki); }
.mbr-up-date { display: block; font-family: var(--display); font-weight: 800; font-size: 18px; line-height: 1.1; color: #fff; }
.mbr-up-what { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; }
.mbr-up-what .quiet { font-size: 15px; }
.mbr-up-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 15px; }
.signup-pill { font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; padding: 4px 10px; border-radius: 3px; background: var(--line); color: var(--text); white-space: nowrap; }
.signup-accepted { background: rgba(74, 144, 72, .25); color: #a9dba3; }
.signup-tentative, .signup-waitlist { background: rgba(201, 176, 122, .2); color: #e6d3a3; }
.signup-rejected { background: rgba(224, 32, 28, .18); color: #f2a6a3; }
.signup-none { background: transparent; border: 1px dashed var(--line-strong); color: var(--text-quiet); }
.oc-squad-only { padding: 18px 16px; text-align: center; border-color: var(--line-strong); }
.oc-squad-only .oc-squad-name { font-size: 24px; }
.oc-squad-platoon { margin: 4px 0 0; font-size: 14px; color: var(--text-quiet); }

/* Calendar */
.cal-page { padding-top: 36px; padding-bottom: 72px; }
.cal-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.cal-top .h2 { margin: 0; }
.cal-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cal-navbtn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--text); }
.cal-navbtn:hover { border-color: var(--khaki); color: var(--khaki); }
.cal-month { margin: 0; min-width: 190px; text-align: center; font-family: var(--display); font-weight: 800; font-size: 26px; text-transform: uppercase; color: #fff; }
.cal-today { font-size: 15px; }
.cal-tz { font-size: 14px; padding-left: 12px; border-left: 1px solid var(--line); }
.cal-layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.cal-main { flex: 999 1 680px; min-width: 0; }
.cal-grid { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--panel); }
.cal-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-dows { background: var(--bar); border-bottom: 1px solid var(--line-strong); }
.cal-dows div { padding: 10px 12px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-quiet); }
.cal-cell { min-height: 112px; padding: 8px; border-right: 1px solid #22251c; border-bottom: 1px solid #22251c; min-width: 0; }
.cal-row .cal-cell:last-child { border-right: 0; }
.cal-out { background: var(--bar); }
.cal-out .cal-day { color: #5c5a4e; }
.cal-day { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; border-radius: 50%; font-weight: 600; font-size: 14px; }
.cal-is-today { background: var(--khaki); color: #14150f; }
.cal-ev { display: block; margin-top: 6px; padding: 6px 8px; border-radius: 3px; background: rgba(201,176,122,.16); color: #e3cf9c; font-size: 13px; font-weight: 600; line-height: 1.25; text-decoration: none; overflow-wrap: anywhere; border-left: 3px solid transparent; }
.cal-ev:hover { background: rgba(201,176,122,.28); color: #fff; }
.cal-ev-on { box-shadow: inset 0 0 0 2px var(--khaki); }
.cal-ev-cancelled { text-decoration: line-through; opacity: .55; }
.cal-mine-accepted { border-left-color: #6fbf69; }
.cal-mine-tentative, .cal-mine-waitlist { border-left-color: #d9b45a; }
.cal-mine-rejected { border-left-color: #c9524f; }
.cal-agenda { display: none; list-style: none; margin: 0; padding: 0; }
.cal-agenda li a { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 8px; background: var(--panel); color: var(--text); text-decoration: none; }
.cal-agenda-what { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cal-panel { flex: 1 1 340px; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.cal-panel-img { height: 130px; background-color: #1d1f17; background-size: cover; background-position: center; }
.cal-panel-body { padding: 0 22px 24px; margin-top: -24px; position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.cal-panel-title { margin: 0; font-family: var(--display); font-weight: 800; font-size: 32px; line-height: 1.05; text-transform: uppercase; color: #fff; overflow-wrap: anywhere; }
.cal-facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 15px; }
.cal-facts dt { color: var(--text-quiet); }
.cal-facts dd { margin: 0; min-width: 0; }
.cal-briefing { color: var(--text-muted); font-size: 15px; }
.cal-briefing > :first-child { margin-top: 0; }
.cal-rsvp { align-self: stretch; border-top: 1px solid var(--line); padding-top: 16px; }
.cal-rsvp fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.cal-rsvp legend { padding: 0; margin-bottom: 10px; font-weight: 600; color: #fff; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cal-role { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--text-quiet); margin-bottom: 10px; }
.cal-role select { min-height: 44px; padding: 0 10px; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 4px; }
.cal-rsvp-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.cal-rsvp-btn { flex: 1 1 90px; min-height: 44px; padding: 0 12px; border-radius: 4px; border: 1px solid var(--line-strong); background: transparent; color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.cal-rsvp-btn:hover { border-color: var(--khaki); }
.cal-rsvp-btn.is-on { border-color: var(--khaki); background: var(--line); }
.cal-rsvp-btn.rsvp-accepted.is-on { background: var(--khaki); color: #14150f; }
.cal-hint { margin: 8px 0 0; font-size: 13px; }
.cal-who { align-self: stretch; }
.cal-who-h { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-quiet); }
.cal-people { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cal-people img, .cal-initial { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; }
@media (max-width: 760px) {
  .cal-grid { display: none; }
  .cal-agenda { display: block; }
  .cal-tz { border-left: 0; padding-left: 0; flex-basis: 100%; }
}
@media (min-width: 761px) {
  .nav-account-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.mbr-up-link { color: #fff; text-decoration: none; } .mbr-up-link:hover { color: var(--khaki); text-decoration: underline; }

/* Promotions */
.promo-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 8px; }
.promo-step { padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--panel); font-size: 15px; }
.promo-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.promo-form select { min-height: 44px; padding: 0 10px; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 4px; }
.promo-why { display: inline-block; margin: 2px 6px 2px 0; padding: 2px 8px; border-radius: 3px; background: var(--line); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.promo-history { list-style: none; margin: 0; padding: 0; }
.promo-history li { padding: 8px 0; border-top: 1px solid var(--line); }
.promo-history li:first-child { border-top: 0; }
.promo-next { margin: 0 0 10px; font-size: 18px; }
.promo-bar { height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; }
.promo-bar span { display: block; height: 100%; background: var(--khaki); }
.promo-choose { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.promo-choose fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.promo-choose legend { font-weight: 600; color: #fff; margin-bottom: 8px; }
.promo-option { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.promo-option input { width: 18px; height: 18px; accent-color: var(--khaki); }
.promo-nochoice { font-size: 13px; }
@media (min-width: 761px) {
  .site-nav { gap: 6px 14px; }
  .site-nav > a, .site-nav .nav-menu > summary { font-size: 16px; letter-spacing: 0.04em; }
}
.promo-dates { margin: 0 0 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.promo-dates > div { background: #13150f; border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; min-width: 0; }
.promo-dates dt { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-quiet); }
.promo-dates dd { margin: 4px 0 0; font-family: var(--display); font-weight: 800; font-size: 20px; line-height: 1.15; text-transform: uppercase; color: #fff; overflow-wrap: break-word; }
@media (max-width: 760px) { .promo-dates { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Red diamond (♦️ / :diamond: in any Markdown, and the Who We Are title) */
.red-diamond { display: inline-block; width: .62em; height: .62em; margin: 0 .3em; background: #d4141c; transform: rotate(45deg) scaleX(.78); vertical-align: .05em; border-radius: 1px; box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
.who-title { display: flex; align-items: center; gap: .35em; flex-wrap: wrap; }
.who-title .red-diamond { margin: 0; width: .5em; height: .5em; }
.who-body .prose { font-size: 18px; }
.who-body .prose h2 { margin-top: 1.8em; }
.who-cta { margin-top: 40px; }
.who-cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }

/* Servers */
.srv-card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 26px 28px; margin-bottom: 24px; }
.srv-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 10px; }
.srv-logo { display: block; max-height: 56px; max-width: min(240px, 70%); width: auto; height: auto; object-fit: contain; }
.srv-game, .srv-region { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 3px; background: var(--line); }
.srv-game { background: rgba(201,176,122,.18); color: #e3cf9c; }
.srv-name { margin: 0 0 12px; font-family: var(--display); font-weight: 800; font-size: clamp(24px, 4vw, 34px); line-height: 1.1; text-transform: uppercase; color: #fff; overflow-wrap: anywhere; }
.srv-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.srv-copy code { padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--bg); font-size: 15px; overflow-wrap: anywhere; min-width: 0; }
.srv-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.srv-tag { font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; padding: 4px 10px; border-radius: 3px; border: 1px solid var(--line-strong); }
.srv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; border-top: 1px solid var(--line); padding-top: 18px; }
.srv-h { margin: 0 0 8px; font-family: var(--eyebrow); font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--khaki); }
.srv-steps { margin: 0; padding-left: 1.2em; }
.srv-steps li { margin-bottom: 6px; }
.srv-joinid { margin: 12px 0 0; }
.srv-foot { margin-top: 8px; }
.site-footer .footer-legal { display: block; margin: 0 auto; padding-top: 0; padding-bottom: 22px; font-size: 13px; line-height: 1.5; color: #8f8a78; }
.footer-links { display: block; margin-top: 4px; font-size: 15px; }
.srv-label { margin: 0 0 6px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-quiet); }

/* Unit rep event requests */
.ereq-list { list-style: none; margin: 0; padding: 0; }
.ereq-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.ereq-list li:first-child { border-top: 0; }
.ereq-form { margin-bottom: 40px; }
.field input[type="date"], .field input[type="time"] { color-scheme: dark; max-width: 260px; }
.promo-why-hold { background: rgba(224, 32, 28, .18); color: #f2a6a3; }
.promo-hold-badge { background: rgba(224, 32, 28, .18); color: #f2a6a3; }
.hold-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hold-form input { min-height: 40px; min-width: min(320px, 100%); padding: 6px 12px; font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--line-strong); border-radius: 4px; }

/* Homepage: live Discord card */
.dw-card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 26px 28px; }
.dw-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin-bottom: 18px; }
.dw-head .h2 { margin: 0; }
.dw-stats { display: flex; flex-wrap: wrap; gap: 10px; }
.dw-stat { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 15px; }
.dw-stat strong { color: #fff; font-size: 17px; }
.dw-dot { width: 10px; height: 10px; border-radius: 50%; background: #3ba55d; box-shadow: 0 0 0 3px rgba(59, 165, 93, .25); }
.dw-voice { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 10px; }
.dw-voice li { background: #13150f; border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.dw-channel { font-weight: 600; color: #fff; overflow-wrap: anywhere; }
.dw-avatars { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dw-avatars img { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--line); }
.dw-more { font-size: 14px; color: var(--text-quiet); }
.dw-empty { margin: 0 0 20px; }
.dw-channel { display: flex; align-items: center; gap: 8px; }
.dw-channel svg { flex: none; color: var(--khaki); }
.dw-initial { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #fff; }

/* Resources: games, cards, guides, YouTube */
.rg-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(380px, 100%), 1fr)); gap: 20px; }
.rg-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--panel); color: var(--text); text-decoration: none; }
.rg-card:hover { border-color: var(--khaki); color: var(--text); }
.rg-cover { display: block; height: 170px; background: linear-gradient(135deg, #2b2e24, #171912); background-size: cover; background-position: center; }
.rg-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 22px 22px; margin-top: -40px; position: relative; }
.rg-name { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1; text-transform: uppercase; color: #fff; }
.rg-logo { display: block; max-width: min(260px, 80%); max-height: 84px; width: auto; height: auto; object-fit: contain; object-position: left bottom; filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)); }
.rg-tagline { color: var(--text-muted); }
.rg-count { color: var(--khaki); font-weight: 600; font-size: 15px; }
.res-tabs { margin: 18px 0 0; }
.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 18px; margin-bottom: 36px; align-items: start; }
.res-card { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.res-card .yt-embed { margin: 0; border-radius: 0; }
.res-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #13150f; }
.res-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.res-card-body .res-title { margin: 0; }
.res-card-body .prose { color: var(--text-muted); font-size: 15px; }
.res-card-body .prose > :last-child { margin-bottom: 0; }
.res-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.res-links:empty { display: none; }
.yt-embed { position: relative; aspect-ratio: 16 / 9; margin: 1.2em 0; border-radius: 6px; overflow: hidden; background: #000; }
.yt-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.guide .prose img, .guide-cover { display: block; max-width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--line); margin: 1.2em 0; }
.guide .prose { font-size: 18px; }
.guide-meta { margin-top: 32px; font-size: 15px; }
