/* UK Militia Forces theme: near-black panels, wide display headings,
   blue primary actions, category colours (red/green/orange/purple/blue). */
:root {
  color-scheme: dark;
  --bg: #121212;
  --header: #0a0a0a;
  --card: #1a1a1a;
  --inset: #141414;
  --border: #2c2c2c;
  --text: #f2f2f2;
  --muted: #a3a3a3;
  --blue: #54acfa;
  --blue-hover: #7bc0fb;
  --red: #e5484d;
  --green: #2fb344;
  --orange: #f59f00;
  --purple: #9d3df0;
  --display: "Audiowide", "Arial Black", system-ui, sans-serif;
  --brand: "Michroma", "Arial", system-ui, sans-serif;
  --body: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  /* aliases used by the feature pages */
  --accent: var(--orange);
  --accent2: var(--blue);
  --ok: var(--green);
  --bad: var(--red);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  /* the old site's page background: a small tiled texture over a very dark red-black */
  background: #0a0405 url("/static/site/bg.png") repeat left top;
  color: var(--text);
  font: 16px/1.6 var(--body);
}
a { color: var(--blue); }
code { background: var(--inset); border: 1px solid var(--border); padding: 1px 6px; border-radius: 4px; font-size: .9em; }
em { color: var(--text); }
.muted, .muted a { color: var(--muted); }
.small { font-size: .85rem; }
.ok { color: var(--green); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- site header */
.site-header { background: var(--header); border-bottom: 1px solid #1f1f1f; position: sticky; top: 0; z-index: 10; }
.site-bar {
  max-width: 1240px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); white-space: nowrap; }
.brand-logo { width: 40px; height: 40px; }
.title-logo { display: inline-flex; align-items: center; gap: 14px; }
.title-logo img { width: 64px; height: 64px; }
.brand-uk { font-family: var(--display); color: var(--blue); font-size: 1.5rem; letter-spacing: .06em; }
.brand-name { font-family: var(--brand); font-size: 1.05rem; letter-spacing: .14em; }
.mainnav { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.mainnav a {
  color: #d6d6d6; text-decoration: none; font-weight: 500; padding: 8px 10px;
  border-bottom: 2px solid transparent;
}
.mainnav a:hover, .mainnav a:focus-visible { color: #fff; outline: none; }
.mainnav a.on { color: #fff; font-weight: 700; border-bottom-color: var(--blue); }
.account { display: flex; align-items: center; gap: 10px; }
.account form { margin: 0; }
.account-portrait { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--blue); }
.account-name { display: flex; flex-direction: column; line-height: 1.2; font-size: .9rem; }
.account-name span { color: var(--muted); font-size: .75rem; }

/* ---- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--blue); color: #fff; text-decoration: none; border: 1px solid var(--blue);
  padding: 9px 18px; border-radius: 4px; font: 700 .95rem var(--body); cursor: pointer; white-space: nowrap;
}
.btn:hover, .btn:focus-visible { background: var(--blue-hover); border-color: var(--blue-hover); outline: none; }
.btn img { height: 18px; }
.btn-orange { background: var(--orange); border-color: var(--orange); color: #111; }
.btn-orange:hover, .btn-orange:focus-visible { background: #ffb224; border-color: #ffb224; }
.btn-ghost { background: transparent; color: var(--text); border-color: #444; padding: 7px 14px; font-weight: 500; }
.btn-ghost:hover, .btn-ghost:focus-visible { background: #222; border-color: var(--blue); }
.btn-danger { background: transparent; color: var(--red); border-color: rgba(229, 72, 77, .5); padding: 6px 12px; font-weight: 500; }
.btn-danger:hover, .btn-danger:focus-visible { background: rgba(229, 72, 77, .12); border-color: var(--red); }

/* ---- page layout */
main { max-width: 960px; margin: 0 auto; padding: 40px 24px 72px; }
main.wide { max-width: 1240px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: .02em; text-wrap: balance; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0; line-height: 1.2; }
h2 { font-size: 1.25rem; margin: 0 0 10px; }
.hero { text-align: center; margin-bottom: 28px; }
.hero .sub { max-width: 60ch; margin: 12px auto 0; }
main > header { margin-bottom: 8px; }
.sub { color: #cfcfcf; margin: 8px 0 0; }
.sub strong { color: #fff; }

.card { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 22px 24px; margin: 20px 0; }
.notice { background: rgba(61, 157, 242, .1); border: 1px solid var(--blue); padding: 10px 14px; border-radius: 6px; margin: 16px 0; }
.notice.warn { border-color: var(--orange); background: rgba(245, 159, 0, .1); }

/* category cards, like the corp site's leaderboard tiles */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin: 28px 0; }
.steps .card { margin: 0; position: relative; display: flex; flex-direction: column; padding-top: 30px; }
.steps .card p { color: #cfcfcf; flex: 1; }
.steps .card .btn { align-self: flex-start; }
.tag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  font: 700 .7rem var(--body); letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 12px; border-radius: 4px; color: #fff; white-space: nowrap;
}
.tone-blue { border: 2px solid var(--blue); background: linear-gradient(180deg, rgba(61, 157, 242, .10), var(--card) 60%); }
.tone-blue .tag { background: var(--blue); }
.tone-green { border: 2px solid var(--green); background: linear-gradient(180deg, rgba(47, 179, 68, .10), var(--card) 60%); }
.tone-green .tag { background: var(--green); }
.tone-orange { border: 2px solid var(--orange); background: linear-gradient(180deg, rgba(245, 159, 0, .10), var(--card) 60%); }
.tone-orange .tag { background: var(--orange); color: #111; }

/* ---- characters */
.chars { list-style: none; padding: 0; margin: 0 0 12px; }
.chars li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.chars li:last-child { border-bottom: 0; }
.chars form { margin: 0; }
.portrait { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--border); }
.who { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.who span { color: var(--muted); font-size: .9rem; }
.badge { align-self: flex-start; margin-top: 4px; font-size: .75rem !important; color: var(--green) !important;
  border: 1px solid var(--green); border-radius: 4px; padding: 0 8px; }
.badge.bad { color: var(--red) !important; border-color: var(--red); }
.who .main-tag { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 4px; vertical-align: 2px;
  background: var(--blue); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.char-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---- EVE time in the header */
.eve-clock { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; padding: 4px 10px;
  border: 1px solid #333; border-radius: 6px; color: var(--text); font-variant-numeric: tabular-nums; }
.eve-clock-label { color: var(--blue); font-family: var(--display); font-size: .75rem; letter-spacing: .08em; }
.eve-clock time { font-weight: 700; font-size: .95rem; }

/* ---- moon calendar */
.cal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.cal-head h2 { margin: 0; min-width: 12ch; text-align: center; }
.nav-btn { background: var(--inset); color: var(--text); border: 1px solid var(--border); border-radius: 4px;
  padding: 4px 12px; font: inherit; font-size: 1.1rem; cursor: pointer; }
.nav-btn:hover, .nav-btn:focus-visible { border-color: var(--blue); outline: none; }
.today-btn { font-size: .85rem; margin-left: auto; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.dow { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; padding: 0 6px 4px; }
.day { min-height: 96px; background: var(--inset); border: 1px solid var(--border); border-radius: 6px; padding: 4px 6px; min-width: 0; }
.day.other { opacity: .4; }
.day.today { border-color: var(--blue); }
.day.today .num { color: var(--blue); font-weight: 700; }
.num { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.day ul { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 3px; }
.chip { font-size: .72rem; line-height: 1.3; padding: 2px 5px; border-radius: 4px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.chip.arrival { background: rgba(157, 61, 240, .22); border-left: 3px solid var(--purple); }
.chip.decay { background: rgba(245, 159, 0, .15); border-left: 3px solid var(--orange); }
.legend { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 0; font-size: .85rem; }
.dot { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.dot.arrival { background: var(--purple); }
.dot.decay { background: var(--orange); margin-left: 10px; }

.pulls { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.pull { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 18rem); gap: 16px; padding: 14px;
  border: 1px solid var(--border); border-left: 4px solid var(--purple); border-radius: 8px; background: var(--inset); }
.pull.ready { border-left-color: var(--green); }
.pull.fractured { border-left-color: var(--muted); opacity: .7; }
.pull-main { min-width: 0; }
.pull-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.state { font-size: .72rem; border-radius: 4px; padding: 1px 8px; border: 1px solid; }
.state.upcoming { color: #c08bf5; border-color: var(--purple); }
.state.ready { color: var(--green); border-color: var(--green); }
.state.fractured { color: var(--muted); border-color: var(--muted); }
.ores { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 2px; max-width: 22rem; font-size: .9rem; }
.ores li { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.times { margin: 0; display: grid; gap: 6px; }
.times dt { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.times dd { margin: 0 0 4px; display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }

/* ---- structures / fuel */
.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 24px 0; }
.stat { border: 2px solid var(--border); border-radius: 8px; padding: 10px 14px; display: flex; flex-direction: column; background: var(--card); }
.stat b { font: 400 1.7rem var(--display); line-height: 1.3; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: .85rem; }
.stat.out, .stat.critical { border-color: var(--red); background: linear-gradient(180deg, rgba(229, 72, 77, .12), var(--card)); }
.stat.low { border-color: #f76b15; background: linear-gradient(180deg, rgba(247, 107, 21, .12), var(--card)); }
.stat.warn { border-color: var(--orange); background: linear-gradient(180deg, rgba(245, 159, 0, .12), var(--card)); }
.stat.good { border-color: var(--green); background: linear-gradient(180deg, rgba(47, 179, 68, .12), var(--card)); }
.stat.out b, .stat.critical b { color: var(--red); }
.stat.low b { color: #f76b15; }
.stat.warn b { color: var(--orange); }
.stat.good b { color: var(--green); }
.stat.zero { opacity: .5; }
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.list-head h2 { margin: 0; }
.filter input { background: var(--inset); color: var(--text); border: 1px solid var(--border); border-radius: 4px;
  padding: 7px 10px; font: inherit; min-width: 0; width: 16rem; max-width: 100%; }
.filter input:focus-visible { outline: none; border-color: var(--blue); }
.structs { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.struct { display: grid; grid-template-columns: 40px minmax(0, 1fr) minmax(0, 17rem); gap: 14px; align-items: center;
  padding: 12px 14px; border: 1px solid var(--border); border-left: 4px solid var(--green); border-radius: 8px; background: var(--inset); }
.struct.warn { border-left-color: var(--orange); }
.struct.low { border-left-color: #f76b15; }
.struct.critical, .struct.out { border-left-color: var(--red); }
.type-icon { width: 40px; height: 40px; border-radius: 4px; }
.struct-main { min-width: 0; }
.fuel { display: flex; flex-direction: column; gap: 2px; font-variant-numeric: tabular-nums; min-width: 0; }
.bar { height: 6px; background: var(--border); border-radius: 999px; overflow: hidden; margin-top: 6px; }
.bar span { display: block; height: 100%; background: var(--green); border-radius: 999px; }
.struct.warn .bar span { background: var(--orange); }
.struct.low .bar span { background: #f76b15; }
.struct.critical .bar span, .struct.out .bar span { background: var(--red); }
.fuel-pill { font-size: .72rem; border-radius: 4px; padding: 1px 8px; border: 1px solid; color: var(--green); }
.fuel-pill.warn { color: var(--orange); }
.fuel-pill.low { color: #f76b15; }
.fuel-pill.critical, .fuel-pill.out { color: var(--red); }

/* ---- small screens */
.site-menu { display: flex; align-items: center; gap: 18px; margin-left: auto; min-width: 0; }
.site-bar { flex-wrap: nowrap; }
.mainnav { gap: 2px; flex-wrap: nowrap; }
.mainnav a { padding: 8px 9px; white-space: nowrap; }
/* desktop: the account button is just the portrait; the name heads the drop-down instead */
@media (min-width: 1261px) { .site-menu .account-name { display: none; } }
.account-head { display: flex; flex-direction: column; padding: 8px 12px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--border); line-height: 1.3; }
.account-head span { color: var(--muted); font-size: .8rem; }
@media (max-width: 1260px) { .account-head { display: none; } }
.site-menu .mainnav { margin-left: 0; }
.menu-toggle { display: none; }
@media (max-width: 1260px) {
  .site-bar { padding: 10px 16px; gap: 12px; flex-wrap: nowrap; }
  .eve-clock { margin-left: auto; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 10px; padding: 6px 10px;
    background: transparent; color: var(--text); border: 1px solid #444; border-radius: 6px; cursor: pointer;
  }
  .menu-toggle:hover, .menu-toggle:focus-visible { border-color: var(--blue); outline: none; }
  .menu-toggle .account-portrait { width: 30px; height: 30px; }
  .menu-icon { display: grid; gap: 4px; width: 20px; }
  .menu-icon span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
  .menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .site-menu {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--header); border-bottom: 1px solid var(--border); box-shadow: 0 12px 24px rgba(0, 0, 0, .5);
    padding: 8px 16px 16px; max-height: calc(100vh - 64px); overflow-y: auto;
  }
  .js .site-menu:not(.open) { display: none; }
  .site-menu .mainnav { flex-direction: column; flex-wrap: nowrap; gap: 0; width: 100%; }
  .site-menu .mainnav a { padding: 12px 6px; border-bottom: 1px solid var(--border); border-left: 3px solid transparent; font-size: 1.05rem; }
  .site-menu .mainnav a.on { border-bottom-color: var(--border); border-left-color: var(--blue); padding-left: 12px; }
  .site-menu .account { margin: 14px 0 0; justify-content: flex-start; gap: 12px; }
  .site-menu .account-name { display: flex; flex: 1; }
  .site-header { position: sticky; }
  .site-bar { position: relative; }
  main { padding: 28px 16px 56px; }
  .brand-name { font-size: .85rem; letter-spacing: .08em; }
}
@media (max-width: 380px) {
  .brand-name { display: none; }
}
@media (max-width: 700px) {
  .day { min-height: 52px; padding: 3px; }
  .chip { font-size: 0; padding: 0; height: 6px; border-left-width: 0; }
  .chip b { display: none; }
  .chip.arrival { background: var(--purple); }
  .chip.decay { background: var(--orange); }
  .pull { grid-template-columns: 1fr; }
  .struct { grid-template-columns: 40px minmax(0, 1fr); }
  .fuel { grid-column: 1 / -1; }
  .filter, .filter input { width: 100%; }
  .brand-name { font-size: .85rem; letter-spacing: .08em; }
  .chars li { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .mainnav a, .nav-btn { transition: background-color .15s, border-color .15s, color .15s; }
}

/* ---- recruitment */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.count { font: 500 .85rem var(--body); color: var(--muted); background: var(--inset); border: 1px solid var(--border);
  border-radius: 4px; padding: 1px 8px; margin-left: 6px; vertical-align: middle; }
.tickets { list-style: none; padding: 0; margin: 0; }
.tickets li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.tickets li:last-child { border-bottom: 0; }
.tickets .portrait { width: 40px; height: 40px; }
.table-wrap { overflow-x: auto; }
table.archive { width: 100%; border-collapse: collapse; font-size: .92rem; }
.archive th { text-align: left; color: var(--muted); font-weight: 500; font-size: .75rem; text-transform: uppercase;
  letter-spacing: .08em; padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.archive td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.archive tr:hover td { background: var(--inset); }
.archive td a { color: var(--text); text-decoration: none; font-weight: 500; }
.archive td a:hover { color: var(--blue); }
.archive .reason { color: #cfcfcf; max-width: 28rem; }
.num-col { text-align: right; font-variant-numeric: tabular-nums; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; }

.settings .field { display: flex; flex-direction: column; gap: 6px; margin: 16px 0; }
.settings label { font-weight: 500; }
.settings input:not([type=checkbox]), .settings select, .settings textarea {
  background: var(--inset); color: var(--text); border: 1px solid var(--border); border-radius: 4px;
  padding: 9px 10px; font: inherit; width: 100%; max-width: 40rem; }
.settings textarea { resize: vertical; }
.settings input:focus-visible, .settings select:focus-visible, .settings textarea:focus-visible { outline: none; border-color: var(--blue); }
.hint { color: var(--muted); font-size: .85rem; margin: 0; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 400 !important; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--blue); }
.roles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-bottom: 16px; }
.roles-grid fieldset { border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px; margin: 0; min-width: 0; }
.roles-grid legend { font-family: var(--display); padding: 0 6px; }
.role-list { display: grid; gap: 4px; max-height: 18rem; overflow-y: auto; margin-top: 10px; }
.role-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

.ticket-meta dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px 20px; margin: 0; }
.ticket-meta dt, .answers dt { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.ticket-meta dd { margin: 2px 0 0; }
.ticket-meta .wide-item { grid-column: 1 / -1; }
.ticket-meta h3 { font-size: 1rem; margin: 20px 0 8px; }
.char-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.ticket-meta dl.answers { display: block; margin: 0; }
.answers dt { margin-top: 10px; }
.answers dd { margin: 2px 0 0; white-space: pre-line; }

.messages { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.msg { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 8px 6px; border-radius: 6px; }
.msg:hover { background: var(--inset); }
.msg .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--border); }
.msg .meta { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.msg .meta time { color: var(--muted); font-size: .75rem; }
.msg.applicant .meta strong { color: var(--orange); }
.bot-tag, .applicant-tag { font-size: .65rem; font-weight: 700; padding: 0 5px; border-radius: 3px; letter-spacing: .04em; }
.bot-tag { background: #5865f2; color: #fff; }
.applicant-tag { border: 1px solid var(--orange); color: var(--orange); }
.msg .content { overflow-wrap: anywhere; }
.msg .content pre { background: var(--inset); border: 1px solid var(--border); padding: 8px; border-radius: 4px; overflow-x: auto; }
.embed-card { margin-top: 6px; border-left: 4px solid var(--c, var(--border)); background: var(--inset); border-radius: 4px;
  padding: 8px 12px; max-width: 34rem; font-size: .9rem; display: grid; gap: 4px; }
.embed-field b { display: block; font-size: .8rem; }
.attachment-img { display: block; max-width: min(100%, 400px); max-height: 320px; border-radius: 6px; margin-top: 6px; border: 1px solid var(--border); }
.attachment { display: inline-block; margin-top: 6px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 20px; }
.settings input[type=color] { width: 64px; height: 38px; padding: 2px; cursor: pointer; }
.settings input[type=file] { padding: 6px; }
.image-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin: 8px 0 12px; }
.image-choices fieldset { border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px; margin: 0; min-width: 0;
  display: flex; flex-direction: column; gap: 8px; }
.image-choices legend { font-family: var(--display); padding: 0 6px; }
.check input[type=radio] { width: 16px; height: 16px; accent-color: var(--blue); }
.preview { min-height: 64px; display: flex; align-items: center; justify-content: flex-start; background: var(--inset);
  border: 1px dashed var(--border); border-radius: 6px; padding: 8px; }
.preview img { max-height: 120px; max-width: 100%; }
.buttons-setup { border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px; margin: 16px 0; min-width: 0; }
.buttons-setup legend { font-family: var(--display); padding: 0 6px; }
.button-row { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: start; }
.button-row .field { margin: 10px 0; }
.button-num { margin-top: 12px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue); color: #fff; font-weight: 700; font-size: .85rem; }
.btn-discord { background: #5865f2; border-color: #5865f2; }
.btn-discord:hover, .btn-discord:focus-visible { background: #6d78f5; border-color: #6d78f5; }
.account-portrait.discord { border-color: #5865f2; }
.account { flex-wrap: wrap; justify-content: flex-end; }
.btn-small { padding: 6px 12px; font-size: .85rem; }
.members-only { position: relative; padding-top: 30px; margin-top: 28px; }
.members-only ul { margin: 0 0 12px; padding-left: 20px; }

/* ---- killboard */
.segmented { display: inline-flex; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.segmented a { padding: 6px 12px; color: var(--muted); text-decoration: none; font-size: .9rem; border-left: 1px solid var(--border); }
.segmented a:first-child { border-left: 0; }
.segmented a:hover, .segmented a:focus-visible { color: var(--text); background: var(--inset); outline: none; }
.segmented a.on { background: var(--blue); color: #fff; }
.kb-summary .stat b { font-size: 1.5rem; }
.kb-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.kb-layout .card { margin: 0; }
.kills { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.kill { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px;
  background: var(--inset); border: 1px solid var(--border); border-left: 4px solid var(--green); border-radius: 8px; }
.kill.loss { border-left-color: var(--red); }
.kill .ship { width: 40px; height: 40px; border-radius: 4px; }
.kill-main { display: flex; flex-direction: column; min-width: 0; line-height: 1.4; }
.kill-title { color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kill-title:hover { color: var(--blue); }
.kill .ours { color: #9fd8a7; overflow-wrap: anywhere; }
.kill-side { display: flex; flex-direction: column; align-items: flex-end; text-align: right; font-variant-numeric: tabular-nums; }
.kill .value { color: var(--green); }
.kill.loss .value { color: var(--red); }
.sec { font-weight: 700; font-variant-numeric: tabular-nums; }
.top-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; counter-reset: top; }
.top-list li { display: grid; grid-template-columns: 20px 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; counter-increment: top; }
.top-list li::before { content: counter(top); color: var(--muted); font-variant-numeric: tabular-nums; }
.top-list .portrait { width: 36px; height: 36px; }
.top-list a { color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-list a:hover { color: var(--blue); }
.top-count { font: 400 1.1rem var(--display); }

/* ---- incursions */
.incursions { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.incursion { margin: 0; border-top: 3px solid var(--green); display: flex; flex-direction: column; gap: 12px; }
.incursion.mobilizing { border-top-color: var(--orange); }
.incursion.withdrawing { border-top-color: var(--red); }
.inc-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.inc-head h2 { margin: 0; }
.inc-tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pill { font-size: .72rem; border: 1px solid; border-radius: 4px; padding: 1px 8px; white-space: nowrap; }
.pill.watched { color: var(--blue); }
.pill.state { color: var(--green); }
.pill.state.mobilizing { color: var(--orange); }
.pill.state.withdrawing { color: var(--red); }
.inc-row { display: flex; justify-content: space-between; font-size: .9rem; }
.inc-influence .bar span { background: var(--blue); }  /* UK Militia blue, like the Discord card */
.inc-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin: 0; }
.inc-facts dt { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.inc-facts dd { margin: 0; }
.boss { color: var(--red); }
.systems { margin: 0; font-size: .9rem; }

@media (max-width: 860px) {
  .kb-layout { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .kill { grid-template-columns: 40px minmax(0, 1fr); }
  .kill-side { grid-column: 2; flex-direction: row; gap: 10px; align-items: baseline; flex-wrap: wrap; }
}
.current { display: flex; flex-direction: column; gap: 2px; background: var(--inset); border: 1px solid var(--border);
  border-radius: 6px; padding: 10px 14px; margin: 12px 0; }

/* archive table becomes cards on phones */
@media (max-width: 640px) {
  table.archive, .archive tbody, .archive tr, .archive td { display: block; width: 100%; }
  .archive thead { display: none; }
  .archive tr { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; margin-bottom: 10px;
    display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; background: var(--inset); }
  .archive td { border: 0; padding: 2px 0; }
  .archive td.cell-num, .archive td.cell-applicant { grid-row: 1; font-size: 1.05rem; padding-bottom: 6px; }
  .archive td[data-label] { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .archive td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: .8rem; text-align: left; }
  .archive .reason { max-width: none; }
  .archive tr:hover td { background: transparent; }
  .tickets li { flex-wrap: wrap; }
  .tickets .btn { width: 100%; }
}

/* ---- lottery */
.lotteries { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-bottom: 20px; }
.lottery-card { margin: 0; color: var(--text); text-decoration: none; border-top: 3px solid #f5b700; display: flex;
  flex-direction: column; gap: 10px; transition: border-color .15s; }
.lottery-card:hover, .lottery-card:focus-visible { border-color: var(--blue); outline: none; }
.lottery-card.drawn { border-top-color: var(--green); }
.lottery-card.closed { border-top-color: var(--orange); }
.lot-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.lot-head h2 { margin: 0; }
.lot-state { color: #f5b700; }
.lot-state.closed { color: var(--orange); }
.lot-state.drawn { color: var(--green); }
.lot-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lot-stats div { display: flex; flex-direction: column; }
.lot-stats b { font: 400 1.15rem var(--display); }
.lot-stats span { color: var(--muted); font-size: .8rem; }
.lot-winner { margin: 0; color: var(--green); font-weight: 700; }
.winner-card { display: flex; gap: 18px; align-items: center; border: 2px solid var(--green);
  background: linear-gradient(180deg, rgba(47, 179, 68, .14), var(--card)); }
.winner-card h2 { margin: 2px 0 4px; font-size: 1.6rem; }
.winner-card p { margin: 0; }
.winner-card .portrait { width: 72px; height: 72px; border-color: var(--green); }
.standings tr.won td { background: rgba(47, 179, 68, .12); }
.transfers { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.transfers li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: baseline;
  padding: 8px 10px; background: var(--inset); border-radius: 6px; }
.transfers li > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.ranges { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-variant-numeric: tabular-nums; max-height: 30rem; overflow-y: auto; }
.ranges li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 8px; border-radius: 4px; }
.ranges li.won { background: rgba(47, 179, 68, .18); color: var(--green); font-weight: 700; }
form.stack { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
@media (max-width: 640px) {
  .transfers li { grid-template-columns: 1fr; gap: 2px; }
  .winner-card { flex-direction: column; text-align: center; }
}

/* ---- alerts */
.alert-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 4px; }
.alert-list li { border-bottom: 1px solid var(--border); }
.alert-list li:last-child { border-bottom: 0; }
.switch { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 0; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.slider { width: 46px; height: 26px; border-radius: 999px; background: #3a3a3a; position: relative; transition: background .15s; }
.slider::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; transition: transform .15s; }
.switch input:checked + .slider { background: var(--green); }
.switch input:checked + .slider::after { transform: translateX(20px); }
.switch input:focus-visible + .slider { outline: 2px solid var(--blue); outline-offset: 2px; }
.switch:has(input:disabled) { cursor: not-allowed; opacity: .55; }
.alert-text { display: flex; flex-direction: column; }

/* ---- account drop-down */
.account-menu { position: relative; }
.account-toggle { display: flex; align-items: center; gap: 10px; background: transparent; color: var(--text);
  border: 1px solid transparent; border-radius: 6px; padding: 4px 8px; font: inherit; cursor: pointer; text-align: left; }
.account-toggle:hover, .account-toggle:focus-visible, .account-toggle[aria-expanded="true"] { border-color: #444; background: #161616; outline: none; }
.caret { width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.account-toggle[aria-expanded="true"] .caret { transform: rotate(225deg) translateY(-2px); }
.account-dropdown { position: absolute; right: 0; top: calc(100% + 6px); min-width: 210px; z-index: 20;
  background: var(--card); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 12px 28px rgba(0, 0, 0, .55);
  padding: 6px; display: flex; flex-direction: column; }
.js .account-dropdown:not(.open) { display: none; }
.account-dropdown a, .account-dropdown .logout { display: block; width: 100%; padding: 9px 12px; border-radius: 6px;
  color: var(--text); text-decoration: none; background: none; border: 0; font: inherit; text-align: left; cursor: pointer; }
.account-dropdown a:hover, .account-dropdown a:focus-visible, .account-dropdown .logout:hover,
.account-dropdown .logout:focus-visible { background: var(--inset); outline: none; }
.account-dropdown a.on { color: var(--blue); }
.account-dropdown form { margin: 0; border-top: 1px solid var(--border); margin-top: 4px; padding-top: 4px; }
.account-dropdown .logout { color: var(--red); }
@media (max-width: 1260px) {
  /* inside the phone menu: show the account items as a plain list under the character */
  .site-menu .account { flex-direction: column; align-items: stretch; }
  .site-menu .account-menu { width: 100%; }
  .site-menu .account-toggle { pointer-events: none; padding: 4px 0; border: 0; background: none; }
  .site-menu .caret { display: none; }
  .js .site-menu .account-dropdown, .site-menu .account-dropdown { display: flex; position: static; box-shadow: none;
    border: 0; background: none; padding: 6px 0 0; min-width: 0; }
  .site-menu .account-dropdown a, .site-menu .account-dropdown .logout { padding: 12px 6px; border-bottom: 1px solid var(--border); border-radius: 0; font-size: 1.05rem; }
  .site-menu .account-dropdown form { border-top: 0; margin-top: 0; padding-top: 0; }
}

/* ---- characters + Discord cards on the home page */
.account-cards { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.account-cards .card { margin: 20px 0 0; }
.discord-card { border-top: 3px solid #5865f2; }
.discord-who { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.portrait.discord { border-color: #5865f2; }
.discord-card .actions { align-items: center; }
.discord-card .actions form { margin: 0; }
@media (max-width: 860px) {
  .account-cards { grid-template-columns: 1fr; gap: 0; }
}

/* phone header: brand, EVE clock and menu button on one line */
@media (max-width: 520px) {
  .site-bar { gap: 8px; }
  .eve-clock { padding: 3px 7px; gap: 4px; }
  .eve-clock-label { font-size: .65rem; }
  .eve-clock time { font-size: .85rem; }
  .brand { gap: 6px; min-width: 0; }
  .brand-logo { width: 32px; height: 32px; }
  .brand-uk { font-size: 1.2rem; }
  .brand-name { font-size: .7rem; letter-spacing: .04em; }
  .menu-toggle { padding: 5px 8px; gap: 8px; }
}
@media (max-width: 380px) { .brand-name { display: none; } }
@media (max-width: 520px) {
  .chars li { flex-wrap: wrap; }
  .char-actions { width: 100%; padding-left: 62px; }
}

/* ---- Campaigns drop-down in the nav */
.nav-menu { position: relative; display: flex; }
.nav-toggle { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; border-bottom: 2px solid transparent;
  color: #d6d6d6; font: inherit; font-weight: 500; padding: 8px 9px; cursor: pointer; white-space: nowrap; }
.nav-toggle:hover, .nav-toggle:focus-visible, .nav-toggle[aria-expanded="true"] { color: #fff; outline: none; }
.nav-toggle.on { color: #fff; font-weight: 700; border-bottom-color: var(--blue); }
.nav-toggle[aria-expanded="true"] .caret { transform: rotate(225deg) translateY(-2px); }
.nav-dropdown { position: absolute; left: 0; top: calc(100% + 6px); min-width: 180px; z-index: 20;
  background: var(--card); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 12px 28px rgba(0, 0, 0, .55);
  padding: 6px; display: flex; flex-direction: column; }
.js .nav-dropdown:not(.open) { display: none; }
.mainnav .nav-dropdown a { padding: 9px 12px; border-radius: 6px; border-bottom: 0; color: var(--text); }
.mainnav .nav-dropdown a:hover, .mainnav .nav-dropdown a:focus-visible { background: var(--inset); }
.mainnav .nav-dropdown a.on { color: var(--blue); }
@media (max-width: 1260px) {
  /* inside the phone menu: Campaigns is a heading with its pages listed under it */
  .site-menu .nav-menu { flex-direction: column; }
  .site-menu .nav-toggle { pointer-events: none; padding: 14px 6px 4px; border: 0; color: var(--muted);
    font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
  .site-menu .nav-toggle .caret { display: none; }
  .js .site-menu .nav-dropdown, .site-menu .nav-dropdown { display: flex; position: static; box-shadow: none;
    border: 0; background: none; padding: 0; min-width: 0; }
  .site-menu .mainnav .nav-dropdown a { padding: 12px 6px 12px 18px; border-radius: 0; border-bottom: 1px solid var(--border);
    border-left: 3px solid transparent; }
  .site-menu .mainnav .nav-dropdown a.on { border-left-color: var(--blue); color: #fff; }
}
.account-name strong, .account-name span { white-space: nowrap; }

/* ---- bot status (admin) */
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 20px; }
.block { display: block; }
table.status-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.status-table th { text-align: left; color: var(--muted); font-weight: 500; font-size: .75rem; text-transform: uppercase;
  letter-spacing: .08em; padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.status-table td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.status-table tr:last-child td { border-bottom: 0; }
.status-table .who-cell { display: flex; align-items: center; gap: 10px; }
.status-table .portrait { width: 32px; height: 32px; }
.status-table .cell-action form { margin: 0; }
.status-table .cell-action { white-space: nowrap; }
.status-table .cell-action > * { display: inline-flex; vertical-align: middle; }
.status-table .cell-action > * + * { margin-left: 6px; }
.state { display: inline-block; margin: 0 4px 4px 0; font-size: .8rem; border: 1px solid; border-radius: 4px; padding: 1px 8px; }
.state.good { color: var(--green); }
.state.bad { color: var(--red); }
.state.unknown, .state.muted { color: var(--muted); }
#feeds, #tokens { margin-bottom: 20px; }
@media (max-width: 860px) {
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .status-table thead { display: none; }
  .status-table, .status-table tbody, .status-table tr, .status-table td { display: block; width: 100%; }
  .status-table tr { border-bottom: 1px solid var(--border); padding: 8px 0; }
  .status-table tr:last-child { border-bottom: 0; }
  .status-table td { border: 0; padding: 4px 0; }
  .status-table td[data-label]:not(.who-cell) { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 8px; }
  .status-table td[data-label]:not(.who-cell)::before { content: attr(data-label); color: var(--muted);
    font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; padding-top: 3px; }
  .status-table td[data-label]:not(.who-cell) > * { grid-column: 2; justify-self: start; }
  .status-table td[data-label="Feed"] { font-size: 1.05rem; }
}

/* ---- Join Message: form beside a Discord-style preview */
.join-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 24px; align-items: start; }
.join-preview { position: sticky; top: 90px; }
.join-preview h2 { font-family: inherit; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 8px; }
.dc-message { background: #313338; border-radius: 8px; padding: 16px; color: #dbdee1; font-family: "gg sans", Roboto, sans-serif; }
.dc-embed { background: #2b2d31; border-left: 4px solid var(--blue); border-radius: 4px; padding: 12px 16px 14px 12px; }
.dc-body { display: flex; gap: 16px; align-items: flex-start; }
.dc-text { flex: 1; min-width: 0; }
.dc-title { font-weight: 700; color: #f2f3f5; margin-bottom: 6px; overflow-wrap: anywhere; }
.dc-desc { font-size: .9rem; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.dc-thumb { width: 80px; height: 80px; object-fit: contain; border-radius: 4px; flex: none; }
.dc-image { display: block; max-width: 100%; max-height: 300px; border-radius: 4px; margin-top: 14px; }
.dc-image[hidden], .dc-thumb[hidden] { display: none; }
.dc-footer { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: .75rem; color: #b5bac1; }
.dc-footer img { border-radius: 50%; }
.dc-mention { background: rgba(88, 101, 242, .3); color: #c9cdfb; border-radius: 3px; padding: 0 2px; }
.dc-link { color: #00a8fc; }
.dc-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.dc-button { background: #4e5058; color: #fff; border-radius: 4px; padding: 6px 14px; font-size: .85rem; font-weight: 500; }
.dc-button[hidden] { display: none; }
@media (max-width: 1000px) {
  .join-layout { grid-template-columns: 1fr; }
  .join-preview { position: static; order: -1; }
}

.kind-fields { border: 0; padding: 0; margin: 0; min-width: 0; }
.kind-fields[hidden] { display: none; }
#add-feed { margin-bottom: 20px; }

/* a card that folds away behind its heading (<details>) */
.collapsible > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.collapsible > summary::-webkit-details-marker { display: none; }
.collapsible > summary h2 { margin: 0; }
.collapsible > summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-3px); transition: transform .15s; flex: none; }
.collapsible[open] > summary::after { transform: rotate(225deg) translateY(-1px); }
.collapsible[open] > summary { margin-bottom: 16px; }
.collapsible > summary:hover h2, .collapsible > summary:focus-visible h2 { color: var(--blue); }
.collapsible > summary:focus-visible { outline: none; }

/* jumping to #feeds, #add-feed ... lands below the sticky header */
main [id] { scroll-margin-top: 90px; }

/* in-game corporation roles under a character */
.corp-roles { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.who .role-tag { font-size: .72rem; color: #cfd6de; background: var(--inset); border: 1px solid var(--border);
  border-radius: 4px; padding: 0 7px; line-height: 1.6; }
.who .role-tag.key { color: #fff; border-color: var(--orange); background: rgba(245, 159, 0, .14); }
.who .role-tag.muted-tag { color: var(--muted); }

/* Discord roles on the Discord card */
.discord-roles { margin: 14px 0 4px; }
.discord-role-list { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.discord-role-list li { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; background: var(--inset);
  border: 1px solid var(--border); border-radius: 12px; padding: 2px 10px 2px 8px; }
.structure-access { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 8px; }
.structure-access .btn img { width: 16px; height: 16px; }
.more-roles { margin-top: 4px; }
.more-roles > summary { cursor: pointer; color: var(--blue); font-size: .8rem; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.more-roles > summary::-webkit-details-marker { display: none; }
.more-roles > summary::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.more-roles[open] > summary::after { transform: rotate(225deg) translateY(-1px); }
.more-roles[open] > summary { margin-bottom: 2px; }

/* ---- reinforcement timer board */
.timers { list-style: none; padding: 0; margin: 8px 0 0; }
.timers li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; gap: 14px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--border); }
.timers li:last-child { border-bottom: 0; }
.timers img { border-radius: 4px; }
.timer-who { display: flex; flex-direction: column; min-width: 0; }
.timer-kind { color: var(--orange); }
.timers li.hull .timer-kind { color: var(--red); }
.timer-when { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.timer-when strong { font-variant-numeric: tabular-nums; font-size: 1.1rem; }
.timers li.ended { opacity: .5; }
@media (max-width: 640px) {
  .timers li { grid-template-columns: 40px minmax(0, 1fr); }
  .timer-kind, .timer-when { grid-column: 2; justify-self: start; align-items: flex-start; text-align: left; }
}
.collapsible > summary .summary-note { margin-left: auto; margin-right: 6px; }
.plain-list { margin: 0 0 12px; padding-left: 18px; color: #cfcfcf; }
.plain-list li { margin: 3px 0; }
#admin-alerts { margin-bottom: 20px; }

/* ---- home dashboard */
.dashboard { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin: 0 0 24px; align-items: stretch; }  /* cards in a row share its height: no holes under short ones */
.dash-card { margin: 0; }
.dash-card.dash-alert { border: 2px solid var(--red); background: linear-gradient(180deg, rgba(229, 72, 77, .10), var(--card) 60%); }
.dash-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.dash-head h2 { margin: 0; font-size: 1.1rem; }
.dash-head a { color: var(--blue); text-decoration: none; white-space: nowrap; }
.dash-list { list-style: none; padding: 0; margin: 0; }
.dash-list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.dash-list li:last-child { border-bottom: 0; }
.dash-list li > div:first-child { display: flex; flex-direction: column; min-width: 0; }
.dash-when { display: flex; flex-direction: column; align-items: flex-end; text-align: right; white-space: nowrap; }
.dash-when strong { font-variant-numeric: tabular-nums; }
.dash-when .bad, .dash-card .bad { color: var(--red); }
.dash-when .warn { color: var(--orange); }
.dash-kill { display: flex; gap: 14px; align-items: center; text-decoration: none; color: var(--text); }
.dash-kill img { border-radius: 6px; background: var(--inset); flex: none; }
.dash-kill > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dash-isk { font-family: var(--display); font-size: 1.4rem; color: var(--green); }
.dash-kill:hover .dash-isk { color: #fff; }
.audit-table td:first-child { white-space: nowrap; }
.audit-details { color: #cfcfcf; overflow-wrap: anywhere; max-width: 36rem; }
.settings input[readonly] { opacity: .55; cursor: not-allowed; }
.title-with-edit { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.edit-pencil { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%;
  color: var(--muted); border: 1px solid var(--border); background: var(--card); text-decoration: none; flex: none; }
.edit-pencil:hover, .edit-pencil:focus-visible, .edit-pencil[aria-expanded="true"] { color: #fff; border-color: var(--blue); background: rgba(61, 157, 242, .15); outline: none; }
.edit-card { border: 1px solid var(--blue); }
.edit-card[hidden] { display: none; }
/* the two kill cards sit side by side at the same height (one per row on phones) */
.dash-pair { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.dash-pair .dash-kill-card { height: 100%; box-sizing: border-box; }
.dash-ours { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; }
.ours-faces { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.ours-faces img { border-radius: 50%; border: 2px solid var(--border); background: var(--inset); }
.ours-faces img.fb { border-color: var(--orange); }
.more-faces { font-size: .8rem; color: var(--muted); padding-left: 4px; }
.ours-names { color: #cfcfcf; }
.dash-pair .dash-kill-card { display: flex; flex-direction: column; }
.dash-pair .dash-ours { margin-top: auto; }
.dash-pair .dash-kill { margin-bottom: 14px; }
a.stat-link { text-decoration: none; color: inherit; }
a.stat-link:hover { border-color: var(--blue); }
.ping-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 20px; }
#pings { margin-bottom: 20px; }
/* a feed's Ping dropdown, in its row on Alert Feeds */
.ping-form { margin: 0; }
.ping-form select { width: 100%; max-width: 16rem; box-sizing: border-box; background: var(--inset); color: var(--text);
  border: 1px solid var(--border); border-radius: 4px; padding: 5px 8px; font: inherit; font-size: .85rem; cursor: pointer; }
.ping-form select:hover, .ping-form select:focus-visible { border-color: var(--blue); outline: none; }
@media (max-width: 860px) { .ping-form select { max-width: 100%; } .status-table td[data-label="Pings"] > * { min-width: 0; width: 100%; } }
@media (min-width: 861px) { .ping-form select { min-width: 12rem; } }
.danger-zone { border: 1px solid rgba(229, 72, 77, .45); }
.danger-zone h2 { color: var(--red); }
.danger-zone form { margin: 0; }
#fuel { margin-bottom: 20px; }

/* ---- Fleet Manager */
#plan, #fleets, #setup { margin-bottom: 20px; }
.fleet-list { list-style: none; padding: 0; margin: 8px 0 0; }
.fleet-row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.fleet-row:last-child { border-bottom: 0; }
.fleet-row.started { opacity: .6; }
.fleet-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fleet-title { font-size: 1.05rem; }
.fleet-when [data-countdown] { color: var(--blue); font-weight: 700; font-variant-numeric: tabular-nums; }
.fleet-notes { color: #cfcfcf; white-space: pre-wrap; font-size: .9rem; }
.fleet-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; justify-content: flex-end; flex: none; }
.fleet-actions form { margin: 0; }
.plain-fieldset { border: 0; padding: 0; margin: 8px 0 16px; min-width: 0; }
.plain-fieldset legend { font-weight: 500; padding: 0; }
@media (max-width: 640px) {
  .fleet-row { flex-direction: column; }
  .fleet-actions { justify-content: flex-start; }
}
.chip.fleet { background: rgba(61, 157, 242, .2); border-left: 3px solid var(--blue); }
.dot.fleet { background: var(--blue); margin-right: 2px; }
.legend .dot.arrival { margin-left: 10px; }
.fleet-time { display: flex; flex-direction: column; align-items: flex-end; text-align: right; white-space: nowrap; flex: none; }
#fleets-card { margin-bottom: 20px; }
@media (max-width: 700px) { .chip.fleet { background: var(--blue); } }
@media (max-width: 640px) { .fleet-time { align-items: flex-start; text-align: left; } }
.btn.btn-waiting, .btn.btn-waiting:hover { background: var(--inset); color: var(--muted); border: 1px solid var(--border); cursor: not-allowed; }
.fleet-actions .btn:disabled:not(.btn-waiting) { opacity: .5; cursor: not-allowed; }
/* an odd card out at the end of the dashboard takes the whole row instead of leaving a hole beside it */
.dashboard > section.dash-card:nth-child(odd):nth-last-child(2) { grid-column: 1 / -1; }

/* ---- Settings -> Access control */
.access-list { list-style: none; margin: 16px 0; padding: 0; border-top: 1px solid var(--border); }
.access-list > li { border-bottom: 1px solid var(--border); }
.access-row > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  padding: 12px 22px 12px 0; position: relative; }
.access-row > summary::-webkit-details-marker { display: none; }
.access-row > summary::after { content: ""; position: absolute; right: 4px; top: 18px; width: 7px; height: 7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; }
.access-row[open] > summary::after { transform: rotate(225deg); }
.access-row > summary:hover strong { color: var(--blue); }
.access-row[open] { padding-bottom: 12px; }
.access-name { min-width: 12rem; }
.access-default { color: var(--muted); margin-left: 4px; }
.access-who { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; }
.access-chip { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; padding: 2px 8px; border-radius: 4px;
  border: 1px solid var(--border); background: var(--inset); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.access-chip.game { border-color: rgba(245, 159, 0, .45); color: var(--orange); }
.access-chip.fixed { color: var(--muted); }
.access-pickers { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.access-pickers .role-list { max-height: 14rem; }
.access-fixed { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 12px 0; }
.access-fixed .muted { flex: 1; min-width: 14rem; }
.access-check { margin-top: 8px; }
.inline-field { display: flex; gap: 8px; }
.inline-field input { flex: 1; min-width: 0; }
.access-result { background: var(--inset); border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px; }
.access-result > p:first-child { margin-top: 0; }
.access-results { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.access-results li { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; }
@media (max-width: 640px) {
  .access-pickers { grid-template-columns: 1fr; }
  .access-name { min-width: 0; width: 100%; }
}
#cleanup { margin-bottom: 20px; }
.access-sub { margin: 28px 0 4px; font-size: 1.05rem; }
.access-chip.everyone { border-color: rgba(47, 179, 68, .5); color: var(--green); }
.access-everyone { margin: 4px 0 2px; }

/* ---- Settings -> Bot activity */
#presence { margin-bottom: 20px; }
.presence-preview { display: flex; align-items: center; gap: 12px; position: relative; background: #2b2d31; border-radius: 8px;
  padding: 10px 14px; margin: 4px 0 18px; max-width: 360px; }
.presence-preview img { border-radius: 50%; background: #1e1f22; }
.presence-dot { position: absolute; left: 42px; top: 38px; width: 14px; height: 14px; border-radius: 50%; border: 3px solid #2b2d31; background: #23a55a; }
.presence-dot.idle { background: #f0b232; }
.presence-dot.dnd { background: #f23f43; }
.presence-preview .block { display: block; }

/* Public front page and old-site pages (home, blog, About / Join / FAQ ...) */
@font-face { font-family: "Anurati"; src: url("/static/fonts/Anurati-Regular.otf") format("opentype"); font-display: swap; }
main.landing, main.prose-page { max-width: none; padding: 0; }
.land-h { font-family: "Anurati", "Arial Black", sans-serif; font-weight: 700; letter-spacing: .04em; line-height: 1.25; }
.center { text-align: center; }
.land-hero { position: relative; min-height: min(72vh, 680px); display: grid; place-items: center; overflow: hidden; background: #000; }
.land-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.land-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.7)); }
.land-hero-inner { position: relative; text-align: center; padding: 48px 16px; }
.land-logo { display: block; margin: 0 auto 28px; width: min(450px, 86vw); height: auto; }
.land-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn.outline { background: rgba(0,0,0,.35); border: 2px solid var(--blue); color: var(--blue); padding: 12px 28px; }
.btn.outline:hover { background: var(--blue); color: #fff; }
.btn.ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.land-section { max-width: 1100px; margin: 0 auto; padding: 72px 16px 40px; }
.land-section > h2.land-h { font-size: clamp(1.4rem, 3.4vw, 2.1rem); margin: 0 0 16px; }
.lead { color: var(--muted); max-width: 900px; margin: 0 auto 56px; }
.land-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; text-align: center; margin-bottom: 72px; }
.land-cols h3 { font-size: 1.4rem; margin: 0 0 10px; }
.land-cols p { color: var(--muted); margin: 0; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.post-card { background: #000; border: 1px solid var(--border); border-radius: 14px; padding: 16px; text-align: center; }
.post-img { position: relative; display: block; aspect-ratio: 16 / 9; background: #050505; border-radius: 8px; overflow: hidden; }
.post-img img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 12px; transition: transform .25s, box-shadow .25s; }
.post-img:hover img { transform: scale(1.02); box-shadow: 0 0 14px rgba(0, 0, 0, .55); }
.post-date { position: absolute; top: 0; right: 0; background: rgba(40,40,40,.92); color: #fff; padding: 6px 12px; text-align: center; line-height: 1.1; font-size: .8rem; }
.post-date b { display: block; font-size: 1.1rem; }
.post-card h3 { font: 600 1.6rem/1.2 "Yanone Kaffeesatz", "Arial Narrow", var(--body); margin: 16px 0 10px; }
.post-card h3 a { color: #4cb4ff; text-decoration: none; transition: color .25s; }
.post-card h3 a:hover { color: #00d4ff; }
.post-card p { color: var(--muted); font-size: .95rem; margin: 0 0 12px; }
.post-by { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: .85rem; margin-bottom: 14px; }
.post-by img { border-radius: 50%; }
.small-btn { padding: 8px 18px; font-size: .9rem; background: #1e63b4; color: #fff; border: 1px solid #fff; border-radius: 8px; transition: background .25s, transform .2s, color .25s, border-color .25s; }
.small-btn:hover { transform: translateY(-2px); background: #fff; color: #00d4ff; border-color: #00d4ff; }
.land-about-row { max-width: 1100px; margin: 56px auto 40px; padding: 40px 16px 0; border-top: 1px solid var(--border); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.panel { background: #050505; border: 1px solid var(--border); border-radius: 10px; padding: 24px; }
.panel p { margin: 0 0 16px; } .panel p:last-child { margin: 0; }
.panel.awards { display: grid; place-items: center; }
.panel.awards img { max-width: 100%; height: auto; }
.prose-page .prose { max-width: 1100px; margin: 0 auto; padding: 48px 16px; }
.prose img { max-width: 100%; height: auto; }
.prose h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
.wide-page { max-width: 1100px; margin: 0 auto; padding: 48px 16px; }
.pager { display: flex; justify-content: center; gap: 24px; margin: 32px 0; }
.site-footer { border-top: 1px solid var(--border); padding: 24px 16px; margin-top: 32px; color: var(--muted); font-size: .85rem; }
.site-footer .foot-bar, .site-footer .eve-disclaimer { max-width: 1100px; margin-left: auto; margin-right: auto; }
.foot-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; }
.foot-bar p { margin: 0; }
.foot-bar nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot-bar nav a { color: var(--muted); text-decoration: none; }
.foot-bar nav a:hover { color: var(--text); }
.eve-disclaimer { font-size: .72rem; margin-top: 12px; margin-bottom: 0; opacity: .8; }
@media (max-width: 800px) {
  .land-cols, .post-grid, .land-about-row { grid-template-columns: 1fr; }
    .land-section { padding-top: 48px; }
  .foot-bar { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .land-video { display: none; } }

/* WordPress block layouts used by the old pages (Leadership, Join, FAQ ...) */
.page-title { text-align: center; font-size: clamp(2rem, 6vw, 3.4rem); margin: 0 0 24px; }
.page-title .colored { color: var(--blue); }
.prose { overflow-wrap: anywhere; }
.prose h2, .prose h3 { font-family: "Anurati", "Arial Black", sans-serif; font-weight: 700; letter-spacing: .03em; line-height: 1.3; }
.prose h2 { font-size: clamp(1.4rem, 3.4vw, 2rem); }
.prose p, .prose li { color: #d6d6d6; }
.has-text-align-center { text-align: center; } .has-text-align-left { text-align: left; } .has-text-align-right { text-align: right; }
.wp-block-spacer { display: block; }
.wp-block-columns { display: flex; flex-wrap: wrap; gap: 32px; margin: 24px 0; }
.wp-block-column { flex: 1 1 0; min-width: 0; }
.wp-block-columns .wp-block-image img { width: 256px; max-width: 100%; height: auto; border-radius: 8px; }
.wp-block-image { margin: 0 0 16px; } .wp-block-image figure { margin: 0; }
.aligncenter, .wp-block-image .aligncenter { margin-left: auto; margin-right: auto; text-align: center; display: block; }
.alignleft { float: left; margin: 0 16px 8px 0; } .alignright { float: right; margin: 0 0 8px 16px; }
.wp-block-group, .wp-block-cover { margin: 24px 0; }
.wp-block-separator, .prose hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 24px 0; }
.wp-block-button__link, .wp-element-button { display: inline-block; background: var(--blue); color: #fff; padding: 10px 22px; border-radius: 6px; text-decoration: none; font-weight: 500; }
.wp-block-quote, .prose blockquote { border-left: 3px solid var(--blue); margin: 24px 0; padding: 4px 20px; color: var(--muted); }
.wp-block-gallery { display: flex; flex-wrap: wrap; gap: 12px; } .wp-block-gallery figure { flex: 1 1 200px; margin: 0; }
.prose table { border-collapse: collapse; width: 100%; margin: 16px 0; } .prose th, .prose td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.prose details { border: 1px solid var(--border); border-radius: 8px; padding: 10px 16px; margin: 10px 0; }
@media (max-width: 800px) { .wp-block-columns { flex-direction: column; gap: 24px; } .alignleft, .alignright { float: none; margin: 0 auto 12px; display: block; } }
.prose h3 { font-size: 1.8rem; margin: 20px 0 8px; }

/* UK Dashboard */
.dash-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; }
.dash-chars { display: flex; flex-direction: column; gap: 8px; }
.dash-char { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); color: var(--text); text-decoration: none; }
.dash-char.on { border-color: var(--blue); }
.dash-char img { border-radius: 50%; }
.dash-char span { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.dash-title { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.dash-title img { border-radius: 8px; }
.dash-title h2 { margin: 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.tabs a { padding: 8px 14px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; }
.tabs a.on { color: var(--text); border-bottom-color: var(--blue); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat-grid .card { margin: 0; }
.stat { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; }
.stat strong { font-size: 1.2rem; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 800px) {
  .dash-layout { grid-template-columns: 1fr; }
  .dash-chars { flex-direction: row; flex-wrap: wrap; }
  .dash-char { flex: 1 1 200px; }
}

/* Top Capsuleers (same look and hover as the old site) */
.motm-title { text-align: center; }
.motm-winners-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; margin-top: 28px; }
.motm-winner-card { background: linear-gradient(135deg, #1a1f2e 0%, #12141c 100%); border: 2px solid #3a3f48; border-radius: 12px; padding: 25px 20px 20px;
  text-align: center; min-width: 160px; max-width: 200px; flex: 1 1 160px; position: relative; transition: all .3s ease; margin-top: 12px; }
.motm-winner-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0, 0, 0, .4); }
.motm-winner-card.motm-pvp { border-color: #dc3545; background: linear-gradient(135deg, #2a1a1a 0%, #12141c 100%); }
.motm-winner-card.motm-pvp:hover { box-shadow: 0 8px 25px rgba(220, 53, 69, .3); }
.motm-winner-card.motm-pve { border-color: #28a745; background: linear-gradient(135deg, #1a2a1a 0%, #12141c 100%); }
.motm-winner-card.motm-pve:hover { box-shadow: 0 8px 25px rgba(40, 167, 69, .3); }
.motm-winner-card.motm-mining { border-color: #ff9800; background: linear-gradient(135deg, #2a251a 0%, #12141c 100%); }
.motm-winner-card.motm-mining:hover { box-shadow: 0 8px 25px rgba(255, 152, 0, .3); }
.motm-winner-card.motm-industry { border-color: #9333ea; background: linear-gradient(135deg, #1f1a2a 0%, #12141c 100%); }
.motm-winner-card.motm-industry:hover { box-shadow: 0 8px 25px rgba(147, 51, 234, .3); }
.motm-winner-card.motm-market { border-color: #5a9de8; background: linear-gradient(135deg, #1a1f2a 0%, #12141c 100%); }
.motm-winner-card.motm-market:hover { box-shadow: 0 8px 25px rgba(90, 157, 232, .3); }
.motm-category-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); padding: 4px 16px; border-radius: 12px; font-size: 11px; font-weight: 700; letter-spacing: 1px; white-space: nowrap; color: #fff; }
.motm-pvp .motm-category-badge { background: linear-gradient(135deg, #dc3545 0%, #ff6b6b 100%); }
.motm-pve .motm-category-badge { background: linear-gradient(135deg, #28a745 0%, #5dd879 100%); }
.motm-mining .motm-category-badge { background: linear-gradient(135deg, #ff9800 0%, #ffb84d 100%); color: #1a1a1a; }
.motm-industry .motm-category-badge { background: linear-gradient(135deg, #9333ea 0%, #b366f9 100%); }
.motm-market .motm-category-badge { background: linear-gradient(135deg, #5a9de8 0%, #8ab8f0 100%); }
.motm-portrait { width: 100px; height: 100px; margin: 5px auto 12px; border-radius: 50%; overflow: hidden; border: 3px solid #3a3f48; box-shadow: 0 4px 15px rgba(0, 0, 0, .3); display: flex; align-items: center; justify-content: center; }
.motm-pvp .motm-portrait { border-color: #dc3545; } .motm-pve .motm-portrait { border-color: #28a745; } .motm-mining .motm-portrait { border-color: #ff9800; }
.motm-industry .motm-portrait { border-color: #9333ea; } .motm-market .motm-portrait { border-color: #5a9de8; }
.motm-portrait img { margin-top: -50px; width: 100%; height: 100%; }
.motm-portrait.motm-empty { background: #2a2f38; }
.motm-portrait.motm-empty span { font-size: 48px; color: #5a5a5a; font-weight: 700; }
.motm-info { margin-top: 8px; }
.motm-name { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (prefers-reduced-motion: reduce) { .motm-winner-card, .post-img img, .small-btn { transition: none; } .motm-winner-card:hover, .small-btn:hover { transform: none; } }
.motm { margin-bottom: 72px; }

/* ---- Matched to the live ukmilitia.com (measured values) ---- */
.site-header { background: rgba(0, 0, 0, .85); }
.site-bar { max-width: 1400px; padding: 16px 20px; }
.brand-logo { width: auto; height: 48px; }
.mainnav a { color: #fff; padding: 8px 14px; font-weight: 500; }
.btn { border-radius: 6px; font: 600 1rem var(--body); padding: 8px 20px; }
.land-h { letter-spacing: normal; line-height: 1.2; }

/* home */
.land-hero { min-height: calc(100vh - 97px); }
.land-logo { width: min(500px, 86vw); height: auto; margin: 0 auto 40px; }
.btn.outline { background: transparent; border: 2px solid var(--blue); color: var(--blue); font: 600 1.1rem var(--body); padding: 15px 40px; border-radius: 6px; }
.btn.outline:hover { background: var(--blue); color: #000; }
.land-section { max-width: 1232px; padding: 60px 16px; }
.land-section > h2.land-h { font-size: 40px; line-height: 48px; margin: 32px 0 16px; }
.lead { max-width: none; color: rgba(255, 255, 255, .8); margin: 0 0 24px; line-height: 1.8; }
.land-cols { gap: 32px; margin: 40px 0 100px; }
.land-cols h3 { font-size: 32px; line-height: 1.2; margin: 32px 0 16px; }
.land-cols p { color: rgba(255, 255, 255, .8); line-height: 1.8; margin: 0 0 24px; }
.motm { margin: 0 0 120px; }
.motm .land-h { font-size: 28px; line-height: 1.2; letter-spacing: .5px; margin: 32px 0 16px; }
.motm .muted { font-size: 15px; line-height: 27px; color: #8ca0c0; margin: 0 0 24px; }
.motm-winners-grid { margin-top: 0; }
.posts-h { margin: 32px 0 16px; }
.post-grid { gap: 37px; }
.post-card { padding: 25px; }
.post-img { aspect-ratio: auto; background: transparent; border-radius: 0; overflow: visible; margin-top: 20px; }
.post-img img { height: auto; aspect-ratio: 3 / 2; margin: 4px 0 24px; }
.post-date { top: -20px; right: -3px; width: 70px; height: 74px; display: grid; place-content: center; padding: 0; font-size: 1rem; border-radius: 0; }
.post-date b { font-size: 1.5rem; }
.post-card h3 { font-size: 28px; line-height: 1.3; font-weight: 700; margin: 18px 0 10px; }
.post-card p { color: #d5dae3; font-size: 15px; line-height: 24px; margin: 10px 0; }
.post-by { color: #9ba3b0; font-size: 14px; margin: 24px 0; }
.post-by img { width: 50px; height: 50px; border-radius: 8px; }
.small-btn { padding: 10px 20px; font: 400 14px/25px var(--body); }
.land-about-row { max-width: 1440px; padding: 40px 30px 0; gap: 32px; }
.panel { padding: 24px; }
.site-footer { color: #fff; font-size: 16px; }
.site-footer .foot-bar, .site-footer .eve-disclaimer { max-width: 1380px; }
.foot-bar nav a { font-size: 14px; color: rgba(255, 255, 255, .5); }
.eve-disclaimer { font-size: 12px; line-height: 1.6; color: #6c757d; margin-top: 8px; opacity: 1; }

/* inner pages: a black card in the middle, like the old theme */
main.prose-page { padding: 60px 16px 40px; }
.prose-page .prose { max-width: 910px; background: rgba(0, 0, 0, .8); border-radius: 12px; padding: 48px; margin: 0 auto; }
.page-title { font-size: 56px; line-height: 1.2; letter-spacing: normal; margin: 0 0 16px; }
.prose h2, .prose h3 { letter-spacing: normal; }
.prose h2 { font-size: 40px; line-height: 1.2; margin: 32px 0 16px; }
.prose h3 { font-size: 32px; line-height: 1.2; margin: 32px 0 16px; }
.prose p, .prose li { color: rgba(255, 255, 255, .8); line-height: 1.8; }
.prose p { margin: 0 0 24px; }
.prose li { margin-bottom: 8px; }
.share { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); color: #fff; font-size: .9rem; }
.share a { border: 1px solid var(--blue); color: var(--blue); border-radius: 4px; padding: 3px 10px; text-decoration: none; font-size: .85rem; }
.share a:hover { background: var(--blue); color: #000; }
@media (max-width: 800px) {
  .prose-page .prose { padding: 24px 20px; }
  .page-title { font-size: 2.2rem; }
  .prose h2, .land-section > h2.land-h { font-size: 1.8rem; }
  .land-cols h3, .prose h3 { font-size: 1.6rem; }
  .land-cols { margin-bottom: 60px; }
  .brand-logo { height: 36px; }
  .site-bar { padding: 10px 14px; }
}

.prose h1.page-title { font-size: 56px; line-height: 1.2; }
.account .btn { line-height: 1.6; }
/* visitors and non-members get the exact public header; members' header stays compact so their longer menu fits */
.site-header.public .brand-logo { height: 64px; }
.site-header.public .mainnav a { padding: 8px 16px; }
@media (max-width: 800px) { .prose h1.page-title { font-size: 2.2rem; } .site-header.public .brand-logo { height: 36px; } }
.prose h1.page-title { margin-bottom: 32px; }
.prose ul, .prose ol { padding-left: 32px; }
.account .btn { border: 0; }
.site-header.public .site-menu { margin: 0 auto; }

/* home: the header floats over the video and the page chrome steps aside, like the old site */
body.is-landing .brand, body.is-landing .eve-clock { display: none; }
body.is-landing .site-header { position: fixed; left: 0; right: 0; top: 0; }
.land-hero { margin-top: 0; min-height: 100vh; padding-top: 97px; }
@media (max-width: 800px) { .land-hero { padding-top: 60px; } }
.prose .wp-block-columns { flex-wrap: nowrap; }
.wp-block-column[style*="flex-basis"] { flex-grow: 0; }
/* pages that use the full-width template: no card, wide content */
main.prose-page .prose.plain { max-width: 1200px; background: none; padding: 0; border-radius: 0; }
.prose.plain .page-title { margin-top: 0; }
/* blog list + sidebar */
main.blog-page { max-width: 1440px; padding: 60px 30px 40px; }
.blog-layout { display: grid; grid-template-columns: minmax(0, 910px) minmax(0, 1fr); gap: 5px 5px; align-items: start; }
.blog-card, .widget { background: rgba(0, 0, 0, .8); border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; }
.blog-card { padding: 32px; margin-bottom: 24px; }
.blog-hero { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 24px; }
.blog-title { font: 700 40px/48px "Anurati", "Arial Black", sans-serif; text-align: center; margin: 0; }
.blog-title a { color: var(--blue); text-decoration: none; }
.blog-meta { text-align: center; color: rgba(255, 255, 255, .5); font-size: 14px; line-height: 22.4px; margin: 8px 0 24px; }
.blog-excerpt { color: rgba(255, 255, 255, .8); line-height: 1.8; margin: 0 0 24px; }
.blog-card .btn { padding: 12px 30px; line-height: 24px; }
.blog-side { padding-left: 5px; }
.widget { padding: 24px; margin-bottom: 32px; }
.widget.awards { display: grid; place-items: center; }
.widget img { max-width: 100%; height: auto; }
.widget.discord { display: block; padding: 0; overflow: hidden; }
.widget-title { font: 700 20px/24px "Anurati", "Arial Black", sans-serif; margin: 0 0 16px; }
.latest { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.latest a { display: block; color: var(--blue); text-decoration: none; }
.latest img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; margin-bottom: 8px; }
.latest p { color: rgba(255, 255, 255, .7); font-size: .85rem; line-height: 1.5; margin: 4px 0 0; }
@media (max-width: 1100px) { .blog-layout { grid-template-columns: minmax(0, 1fr); } .blog-side { padding-left: 0; } }
@media (max-width: 800px) { main.blog-page { padding: 30px 14px; } .blog-card { padding: 20px; } .blog-title { font-size: 1.8rem; line-height: 1.2; } }
.prose h1.page-title + h2, .prose h1.page-title + h3 { margin-top: 48px; }
.prose h1.page-title { margin-bottom: 16px; }
.prose.plain h1.page-title + h2, .prose.plain h1.page-title + h3 { margin-top: 32px; }
.prose .wp-block-columns { margin: 0; }
.wp-block-image img { margin-top: 24px; margin-bottom: 24px; }
.land-h, .prose h1, .prose h2, .prose h3, .blog-title, .post-card h3, .widget-title { text-wrap: wrap; }
/* section spacing, from the live page's measured positions */
.land-cols { margin: 64px 0 132px; }
.motm .land-h { margin-top: 0; }
.motm-winners-grid { margin-top: 6px; }
.motm { margin-bottom: 120px; }
.land-section { padding-top: 75px; }
.post-img img { margin-bottom: 50px; }
.site-header:not(.public) .mainnav a { padding: 8px 10px; }
@media (max-width: 1380px) { .site-header.public .eve-clock { display: none; } }
