/* Self-hosted web fonts (SIL OFL 1.1, see /public/fonts/OFL-*.txt).
   Variable woff2 files; weight ranges mirror
   the original font setup (Cinzel 500/700, Source Sans 3 400/600). No third-party font CDN. */
/* Cinzel — latin-ext */
@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/public/fonts/cinzel-latin-ext-wght.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Cinzel — latin */
@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/public/fonts/cinzel-latin-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Source Sans 3 — latin-ext */
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/public/fonts/source-sans-3-latin-ext-wght.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Source Sans 3 — latin */
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/public/fonts/source-sans-3-latin-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0b0a09;
  --bg-deep: #050403;
  --panel: rgba(22, 12, 10, 0.72);
  --horde: #b91c1c;
  --horde-bright: #e11d48;
  --ember: #f97316;
  --gold: #c9a227;
  --gold-soft: #e8d48b;
  --ash: #a8a29e;
  --ink: #f5f0e8;
  --line: rgba(201, 162, 39, 0.35);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  --font-display: "Cinzel", "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg-deep);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 55% at 50% -10%, rgba(185, 28, 28, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 40% at 85% 90%, rgba(201, 162, 39, 0.08), transparent 50%),
    radial-gradient(ellipse 40% 35% at 10% 80%, rgba(249, 115, 22, 0.07), transparent 45%),
    linear-gradient(180deg, #120c0a 0%, var(--bg) 45%, #070605 100%);
}

.embers {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 28%, rgba(249, 115, 22, 0.55), transparent),
    radial-gradient(1px 1px at 28% 72%, rgba(201, 162, 39, 0.4), transparent),
    radial-gradient(1.5px 1.5px at 68% 18%, rgba(225, 29, 72, 0.45), transparent),
    radial-gradient(1px 1px at 82% 62%, rgba(249, 115, 22, 0.35), transparent),
    radial-gradient(1px 1px at 44% 44%, rgba(232, 212, 139, 0.3), transparent);
  opacity: 0.7;
  animation: drift 18s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translateY(0); opacity: 0.55; }
  to { transform: translateY(-12px); opacity: 0.85; }
}

.topbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  letter-spacing: 0.08em;
  text-transform: none;
  font-size: 0.78rem;
  color: var(--ash);
}

.mark {
  flex: 0 0 auto;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--horde-bright), var(--horde));
  box-shadow: 0 0 12px rgba(225, 29, 72, 0.55);
  transform: rotate(45deg);
}

.realm {
  font-weight: 600;
  line-height: 1.35;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.25rem 1.5rem 3rem;
  width: 100%;
  max-width: 52rem;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.banner {
  width: min(42rem, 92vw);
  max-width: 100%;
  margin: 0 0 1.35rem;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55));
}

.banner picture,
.banner img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 7vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-wrap: balance;
  background: linear-gradient(180deg, #fff6e8 10%, var(--gold-soft) 45%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.divider {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: min(18rem, 70vw);
  margin: 1.35rem 0 0;
}

.divider span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.divider i {
  width: 0.55rem;
  height: 0.55rem;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(201, 162, 39, 0.35);
}

.foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem 1.75rem;
  text-align: center;
  color: #78716c;
  font-size: 0.85rem;
}

.foot-crest {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.45));
}

.foot p {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .embers {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}

@media (max-width: 480px) {
  .topbar {
    justify-content: flex-start;
  }
}


.cta {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 162, 39, 0.45);
  background:
    linear-gradient(180deg, rgba(185, 28, 28, 0.35), rgba(80, 12, 12, 0.55)),
    var(--panel);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.06em;
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.cta:hover {
  border-color: rgba(201, 162, 39, 0.8);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.6);
  transform: translateY(-1px);
}

.cta:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .cta {
    width: 100%;
  }
}

.events {
  margin-top: 2rem;
  width: min(28rem, 100%);
  padding: 1.1rem 1.15rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
  text-align: left;
}

.events h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-soft);
  text-align: center;
}

.events-note {
  margin: 0.35rem 0 0.9rem;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ash);
}

.events ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.events li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.55rem;
  padding: 0.7rem 0;
  border-top: 1px solid rgba(201, 162, 39, 0.18);
  color: var(--ink);
  font-size: 0.98rem;
}

.events time {
  color: var(--gold-soft);
  font-weight: 600;
}

.events-range {
  color: var(--ash);
  font-size: 0.85rem;
}

.events-name {
  margin-left: auto;
  font-weight: 600;
  letter-spacing: 0.04em;
}

@media (max-width: 480px) {
  .events-name {
    margin-left: 0;
    width: 100%;
  }
}

/* Secondary CTA: raid roster manager (below events) */
.cta-item {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-item .cta {
  margin-top: 0;
}

.cta--alt {
  border-color: rgba(201, 162, 39, 0.7);
  background:
    linear-gradient(180deg, rgba(201, 162, 39, 0.32), rgba(20, 110, 100, 0.45)),
    var(--panel);
}

.cta--alt:hover {
  border-color: var(--gold);
}

.cta-note {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  opacity: 0.75;
}

@media (max-width: 480px) {
  .cta-item {
    align-self: stretch;
    align-items: stretch;
  }
}

/* Countdown (WoW Forever style) */
.countdown {
  margin-top: 2rem;
  text-align: center;
}

.countdown-label {
  margin: 0 0 0.75rem;
  font-family: "Cinzel", serif;
  color: var(--gold-soft);
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.countdown-boxes {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-start;
  gap: 0.5rem;
}

.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cd-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  height: 4.5rem;
  padding: 0 0.4rem;
  border: 1px solid var(--gold);
  border-radius: 8px;
  background: linear-gradient(180deg, #f8f1e0, #e9dcbc);
  color: #141110;
  font-family: "Cinzel", serif;
  font-size: 2.4rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.cd-sep {
  height: 4.5rem;
  display: flex;
  align-items: center;
  color: var(--gold);
  font-size: 2rem;
  font-weight: 700;
}

.cd-name {
  margin-top: 0.4rem;
  color: var(--ash);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.countdown-when {
  margin: 0.75rem 0 0;
  color: var(--ash);
  font-size: 0.85rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 480px) {
  .countdown-boxes { gap: 0.25rem; }
  .cd-box { min-width: 3.1rem; height: 3.1rem; font-size: 1.55rem; padding: 0 0.2rem; }
  .cd-sep { height: 3.1rem; font-size: 1.3rem; }
  .cd-name { font-size: 0.6rem; letter-spacing: 0.1em; }
}

@media (max-width: 340px) {
  .cd-box { min-width: 2.6rem; height: 2.6rem; font-size: 1.25rem; }
  .cd-sep { height: 2.6rem; }
}

/* Raid progress (0.1.5) */
.raids {
  margin-top: 2rem;
  width: min(28rem, 100%);
  padding: 1.1rem 1.15rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
  text-align: left;
}
.raids h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-soft);
  text-align: center;
}
.raids-fallback { list-style: none; margin: 0; padding: 0; }
.raids-fallback li { display: flex; justify-content: space-between; padding: 0.4rem 0; border-bottom: 1px solid var(--line); font-family: var(--font-display); }
.raids-note { margin: 0.6rem 0 0; color: var(--ash); font-size: 0.85rem; text-align: center; }
.raid { border: 1px solid var(--line); border-radius: 10px; margin: 0 0 0.6rem; background: rgba(0, 0, 0, 0.25); }
.raid summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem 0.75rem;
  align-items: center;
  padding: 0.7rem 0.9rem;
  cursor: pointer;
  list-style: none;
}
.raid summary::-webkit-details-marker { display: none; }
.raid summary::before { content: "▸"; color: var(--gold); position: absolute; margin-left: -0.75rem; transition: transform .2s; }
.raid[open] summary::before { transform: rotate(90deg); }
.raid summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 10px; }
.raid-name { font-family: var(--font-display); font-weight: 700; color: var(--ink); padding-left: 0.5rem; }
.raid-count { font-family: var(--font-display); color: var(--gold); font-variant-numeric: tabular-nums; }
.raid-bar { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: rgba(201, 162, 39, 0.15); overflow: hidden; }
.raid-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--horde), var(--ember), var(--gold)); }
.raid--done .raid-count { color: var(--gold-soft); }
.bosses { list-style: none; margin: 0; padding: 0 0.9rem 0.6rem; counter-reset: boss; }
.boss { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0; border-top: 1px solid rgba(201, 162, 39, 0.15); counter-increment: boss; }
.boss-shot { flex: 0 0 auto; display: block; width: 96px; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.boss-shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
a.boss-shot:hover, a.boss-shot:focus-visible { border-color: var(--gold); outline: none; }
.boss-shot--empty { opacity: 0.75; }
.boss-info { display: flex; flex-direction: column; min-width: 0; }
.boss-name { font-weight: 600; }
.boss-name::before { content: counter(boss) ". "; color: var(--gold); }
.boss-status { font-size: 0.85rem; color: var(--ash); }
.boss--killed .boss-status { color: var(--gold-soft); }
.boss--killed .boss-name { color: var(--ink); }
@media (max-width: 480px) {
  .raids { padding: 1rem 0.75rem 0.75rem; }
  .bosses { padding: 0 0.6rem 0.5rem; }
  .boss-shot { width: 72px; }
}
.raid-size { margin-left: 0.5rem; font-family: var(--font-body); font-weight: 400; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ash); }
.boss--tba { color: var(--ash); font-style: italic; }

/* Footer links (0.2.0) */
.foot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.25rem;
}

.foot-links a {
  color: var(--ash);
  text-decoration: underline;
  text-decoration-color: rgba(168, 162, 158, 0.45);
  text-underline-offset: 0.2em;
}

.foot-links a:hover,
.foot-links a[aria-current="page"] {
  color: var(--gold-soft);
  text-decoration-color: var(--gold);
}

.foot-links a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Legal pages, e.g. privacy notice (0.2.0) */
.legal {
  flex: 1;
  width: min(52rem, 100%);
  margin: 0 auto;
  padding: 1.25rem 1.5rem 3rem;
}

.legal article {
  padding: 2rem 2.25rem 2.25rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
  font-size: 1.02rem;
  line-height: 1.65;
  color: #e7e0d6;
  overflow-wrap: break-word;
}

.legal article > header {
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.legal h1 {
  font-size: clamp(1.45rem, 5.2vw, 2.15rem);
  line-height: 1.25;
}

.legal article > header p {
  margin: 0.75rem 0 0;
  color: var(--ash);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.legal h2 {
  margin: 2.25rem 0 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(201, 162, 39, 0.18);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.05em;
  color: var(--gold-soft);
}

.legal h3 {
  margin: 1.75rem 0 0.6rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.03em;
  color: var(--gold);
}

.legal section,
.legal h2,
.legal h3 {
  scroll-margin-top: 1rem;
}

.legal p {
  margin: 0 0 1rem;
}

.legal strong {
  font-weight: 600;
  color: var(--ink);
}

.legal ul {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.legal li {
  margin: 0 0 0.5rem;
  padding-left: 0.2rem;
}

.legal li::marker {
  color: var(--gold);
}

.legal a {
  color: var(--gold-soft);
  text-decoration: underline;
  text-decoration-color: rgba(201, 162, 39, 0.55);
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}

.legal a:hover {
  color: #fff6e8;
  text-decoration-color: var(--gold);
}

.legal a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}

.legal code {
  padding: 0.05em 0.35em;
  border: 1px solid rgba(201, 162, 39, 0.25);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.88em;
}

.legal table {
  width: 100%;
  margin: 0.5rem 0 1.25rem;
  border-collapse: collapse;
  font-size: 0.92rem;
  line-height: 1.5;
}

.legal th,
.legal td {
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(201, 162, 39, 0.22);
  text-align: left;
  vertical-align: top;
}

.legal th {
  background: rgba(185, 28, 28, 0.22);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold-soft);
}

.legal tbody tr:nth-child(even) td {
  background: rgba(0, 0, 0, 0.2);
}

.legal td:first-child {
  font-weight: 600;
  color: var(--ink);
}

@media (max-width: 640px) {
  .legal {
    padding: 0.75rem 0.75rem 2rem;
  }

  .legal article {
    padding: 1.35rem 1rem 1.5rem;
    font-size: 1rem;
  }

  .legal h2 {
    font-size: 1.1rem;
  }

  /* Tables keep all columns and scroll sideways instead of squeezing */
  .legal table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 0.88rem;
  }

  .legal th,
  .legal td {
    min-width: 9rem;
    padding: 0.5rem 0.6rem;
  }

  .legal td:nth-child(2) {
    min-width: 14rem;
  }
}

@media print {
  .bg,
  .embers,
  .topbar,
  .foot {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  .legal article {
    border: 0;
    box-shadow: none;
    background: none;
    color: #000;
  }

  .legal h1 {
    background: none;
    color: #000;
  }

  .legal h2,
  .legal h3,
  .legal th,
  .legal strong,
  .legal a,
  .legal td:first-child {
    color: #000;
  }
}

/* Privacy page: back-to-home button and linked top bar (0.2.1) */
.topbar-home {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
  border-radius: 4px;
  transition: color 0.2s ease;
}

.topbar-home:hover {
  color: var(--gold-soft);
}

.topbar-home:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.legal-back {
  margin: 0 0 1rem;
}

.cta.cta--back {
  margin-top: 0;
  min-height: 2.75rem;
  padding: 0.6rem 1.3rem;
  gap: 0.55rem;
  font-size: 0.95rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.cta--back .cta-arrow {
  display: inline-block;
  color: var(--gold-soft);
  font-size: 1.1em;
  line-height: 1;
  transition: transform 0.15s ease;
}

.cta--back:hover .cta-arrow,
.cta--back:focus-visible .cta-arrow {
  transform: translateX(-3px);
}

/* The back button sits inside .legal: keep the button look, not the text-link look */
.legal a.cta--back {
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: normal;
}

.legal a.cta--back:hover {
  color: #fff6e8;
}

.legal a.cta--back:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 999px;
}

@media (max-width: 480px) {
  .cta.cta--back {
    width: auto;
    min-height: 2.75rem;
    padding: 0.55rem 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta--back,
  .cta--back .cta-arrow,
  .topbar-home {
    transition: none;
  }

  .cta--back:hover,
  .cta--back:hover .cta-arrow,
  .cta--back:focus-visible .cta-arrow {
    transform: none;
  }
}

@media print {
  .legal-back {
    display: none;
  }
}

/* Open PUG events from /api/events.json (0.3.0) */
.events-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.75rem;
  width: 100%;
  color: var(--ash);
  font-size: 0.85rem;
}

.events-signup {
  margin-left: auto;
  color: var(--gold-soft);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(201, 162, 39, 0.55);
  text-underline-offset: 0.18em;
}

.events-signup:hover {
  color: #fff6e8;
  text-decoration-color: var(--gold);
}

.events-signup:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}

.events-pugs-status {
  margin: 0.6rem 0 0;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(201, 162, 39, 0.18);
  color: var(--ash);
  font-size: 0.88rem;
  text-align: center;
}

.events-pugs-status--loading {
  font-style: italic;
  opacity: 0.75;
}

.events-pugs-status--error {
  color: #d9a066;
}

@media (max-width: 480px) {
  .events-signup {
    margin-left: 0;
  }
}

/* Recruiting table: one column per spec, grouped by class.
   Built by public/recruiting.js from public/recruiting.json. One class per row
   (icon, then its specs) at every width: the same table markup laid out with
   CSS grid, as wide as the other panels. */
.recruit {
  margin-top: 2rem;
  width: min(28rem, 100%);
  padding: 1.1rem 1.15rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
  text-align: left;
}

.recruit h2 {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-soft);
  text-align: center;
}

.recruit-status {
  margin: 0;
  color: var(--ash);
  font-size: 0.9rem;
  text-align: center;
}

.recruit-grid {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid rgba(201, 162, 39, 0.22);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.22);
}

.recruit-grid th,
.recruit-grid td {
  padding: 0;
  text-align: center;
  font-weight: 400;
}

.recruit-class {
  padding: 0.6rem 0.15rem 0.45rem;
  border-bottom: 1px solid rgba(201, 162, 39, 0.22);
  vertical-align: top;
}

.recruit-icon {
  display: block;
  width: 32px;
  height: 32px;
  margin: 0.35rem auto 0.3rem;
  border: 1px solid rgba(201, 162, 39, 0.65);
  border-radius: 7px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 4px 10px rgba(0, 0, 0, 0.5);
}

.recruit-cname {
  display: block;
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-soft);
  white-space: nowrap;
}

.recruit-spec {
  padding: 0.65rem 0 0.45rem;
  vertical-align: bottom;
  border-bottom: 1px solid rgba(201, 162, 39, 0.14);
}

.recruit-sname {
  display: inline-block;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.78rem;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--ink);
  white-space: nowrap;
}

.recruit-cell {
  padding: 0.5rem 0 0.55rem;
}

.recruit-mark {
  display: block;
  width: 22px;
  height: 22px;
  margin: 0 auto;
  filter: drop-shadow(0 0 6px rgba(201, 162, 39, 0.28));
}

.recruit-cell.is-closed .recruit-mark {
  filter: none;
  opacity: 0.85;
}

.recruit-cell.is-closed,
.recruit-spec.rc-closed {
  background: rgba(185, 28, 28, 0.08);
}

/* class groups: a gold rule between classes, every other class lightly shaded */
.recruit-class:not(.rc-g0),
.rc-first:not(.rc-g0) {
  border-left: 1px solid rgba(201, 162, 39, 0.28);
}

.rc-g1, .rc-g3, .rc-g5, .rc-g7 {
  background-color: rgba(232, 212, 139, 0.04);
}

/* one class per row (icon, then its specs) at every width */
.recruit {
  padding: 1rem 0.75rem 0.75rem;
}

.recruit-grid {
  display: grid;
  grid-template-columns: 4.75rem repeat(12, minmax(0, 1fr));
}

.recruit-grid colgroup {
  display: none;
}

.recruit-grid thead,
.recruit-grid tbody,
.recruit-grid tr {
  display: contents;
}

.recruit-grid th,
.recruit-grid td {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-left: 0;
}

.recruit-class {
  grid-column: 1;
  padding: 0.5rem 0.25rem;
  border-bottom: 0;
  border-right: 1px solid rgba(201, 162, 39, 0.22);
}

.recruit-class:not(.rc-g0),
.recruit-spec:not(.rc-g0) {
  border-top: 1px solid rgba(201, 162, 39, 0.28);
}

.recruit-class:not(.rc-g0),
.rc-first:not(.rc-g0) {
  border-left: 0;
}

.recruit-spec {
  padding: 0.55rem 0.2rem 0.1rem;
  border-bottom: 0;
}

.recruit-spec {
  min-width: 0;
}

.recruit-sname {
  max-width: 100%;
  writing-mode: horizontal-tb;
  transform: none;
  font-size: 0.74rem;
  letter-spacing: 0;
  white-space: normal;
  line-height: 1.15;
}

.recruit-cell {
  padding: 0.3rem 0 0.55rem;
}

/* 12 tracks: 3-spec classes span 4 each, 4-spec classes (Druid) span 3 each */
.rc-s0 { grid-column: 2 / span 4; }
.rc-s1 { grid-column: 6 / span 4; }
.rc-s2 { grid-column: 10 / span 4; }
.rc-n4.rc-s0 { grid-column: 2 / span 3; }
.rc-n4.rc-s1 { grid-column: 5 / span 3; }
.rc-n4.rc-s2 { grid-column: 8 / span 3; }
.rc-n4.rc-s3 { grid-column: 11 / span 3; }
.recruit-class.rc-g0 { grid-row: 1 / span 2; } .recruit-spec.rc-g0 { grid-row: 1; } .recruit-cell.rc-g0 { grid-row: 2; }
.recruit-class.rc-g1 { grid-row: 3 / span 2; } .recruit-spec.rc-g1 { grid-row: 3; } .recruit-cell.rc-g1 { grid-row: 4; }
.recruit-class.rc-g2 { grid-row: 5 / span 2; } .recruit-spec.rc-g2 { grid-row: 5; } .recruit-cell.rc-g2 { grid-row: 6; }
.recruit-class.rc-g3 { grid-row: 7 / span 2; } .recruit-spec.rc-g3 { grid-row: 7; } .recruit-cell.rc-g3 { grid-row: 8; }
.recruit-class.rc-g4 { grid-row: 9 / span 2; } .recruit-spec.rc-g4 { grid-row: 9; } .recruit-cell.rc-g4 { grid-row: 10; }
.recruit-class.rc-g5 { grid-row: 11 / span 2; } .recruit-spec.rc-g5 { grid-row: 11; } .recruit-cell.rc-g5 { grid-row: 12; }
.recruit-class.rc-g6 { grid-row: 13 / span 2; } .recruit-spec.rc-g6 { grid-row: 13; } .recruit-cell.rc-g6 { grid-row: 14; }
.recruit-class.rc-g7 { grid-row: 15 / span 2; } .recruit-spec.rc-g7 { grid-row: 15; } .recruit-cell.rc-g7 { grid-row: 16; }
.recruit-class.rc-g8 { grid-row: 17 / span 2; } .recruit-spec.rc-g8 { grid-row: 17; } .recruit-cell.rc-g8 { grid-row: 18; }

/* Raid nights line and "How to join" steps, under the recruiting table */
.recruit-raids {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink);
}

.recruit-raids[hidden] {
  display: none;
}

.recruit-raids-label {
  margin-right: 0.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.recruit-raids-tz {
  color: var(--ash);
  font-size: 0.8rem;
}

.recruit-join-title {
  margin: 1.05rem 0 0.55rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-soft);
  text-align: center;
}

.recruit-join {
  margin: 0;
  padding: 0;
  /* not "none": Safari/VoiceOver drops list semantics for list-style: none */
  list-style-type: "\200B";
  counter-reset: join;
  display: grid;
  gap: 0.4rem;
}

.recruit-join li {
  counter-increment: join;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid rgba(201, 162, 39, 0.18);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.22);
  font-size: 0.95rem;
  color: var(--ink);
}

.recruit-join li::before {
  content: counter(join);
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(232, 212, 139, 0.35), rgba(122, 90, 14, 0.35));
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--gold-soft);
  box-shadow: 0 0 8px rgba(201, 162, 39, 0.25);
}

.recruit-join a {
  color: var(--gold-soft);
  font-weight: 600;
  text-decoration-color: var(--gold);
  text-underline-offset: 0.18em;
}

.recruit-join a:hover {
  color: #fff6e8;
}

.recruit-join a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 3px;
}
