/* =============================================================================
   TIDEBOUND PACT — World of Warcraft Guild Template
   Deep ocean slate + teal / coral. Schedule-first. Distinct from Ashen Covenant.
   ============================================================================= */

:root {
  --bg: #061018;
  --bg-2: #0a1822;
  --bg-3: #0f2430;
  --surface: #122a38;
  --surface-2: #163445;
  --text: #e8f4f6;
  --muted: #8aadb8;
  --muted-2: #5e7f8c;
  --teal: #2dd4bf;
  --teal-deep: #14b8a6;
  --coral: #ff7a59;
  --coral-soft: #ff9a7f;
  --online: #5eead4;
  --line: rgba(232, 244, 246, 0.08);
  --line-teal: rgba(45, 212, 191, 0.35);
  --line-coral: rgba(255, 122, 89, 0.4);
  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, sans-serif;
  --radius: 4px;
  --max: 1160px;
  --header-h: 68px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero__tide,
  .status-dot {
    animation: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  color: var(--coral-soft);
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.6rem;
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

p:last-child {
  margin-bottom: 0;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible,
.copy-btn:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 1000;
  padding: 0.65rem 1rem;
  background: var(--teal);
  color: #04201c;
  font-weight: 700;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ---------- Demo banner ---------- */
.demo-banner {
  position: relative;
  z-index: 300;
  background: #07151e;
  border-bottom: 1px solid var(--line-teal);
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
  padding: 0.55rem 1rem;
}

.demo-banner a {
  color: var(--coral);
  font-weight: 600;
  margin-left: 0.35rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(6, 16, 24, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  color: var(--text);
  text-decoration: none;
  min-width: 0;
}

.logo:hover {
  color: var(--text);
}

.logo strong {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
}

.logo span {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-top: 0.2rem;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--bg-3);
  border-radius: var(--radius);
  padding: 0;
  flex-shrink: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px 0;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

#site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.2rem 1.15rem;
}

.nav-link {
  color: var(--muted);
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--teal);
}

.nav-actions {
  display: flex;
  gap: 0.5rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.68rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn--sm {
  padding: 0.42rem 0.85rem;
  font-size: 0.9rem;
}

.btn--lg {
  padding: 0.85rem 1.45rem;
  font-size: 1.1rem;
}

.btn--primary {
  background: var(--teal-deep);
  color: #04201c !important;
  border-color: var(--teal-deep);
}

.btn--primary:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: #04201c !important;
}

.btn--coral {
  background: var(--coral);
  color: #1a0a06 !important;
  border-color: var(--coral);
}

.btn--coral:hover {
  background: var(--coral-soft);
  border-color: var(--coral-soft);
  color: #1a0a06 !important;
}

.btn--ghost {
  background: transparent;
  border-color: rgba(232, 244, 246, 0.2);
  color: var(--text) !important;
}

.btn--ghost:hover {
  border-color: var(--teal);
  color: var(--teal) !important;
}

.btn--block {
  width: 100%;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line-teal);
  background: rgba(45, 212, 191, 0.1);
  color: var(--teal);
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.copy-btn:hover {
  background: rgba(45, 212, 191, 0.22);
  color: var(--text);
}

/* ---------- Schedule-first hero ---------- */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 4rem 0 2.5rem;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(6, 16, 24, 0.55) 0%, rgba(6, 16, 24, 0.35) 35%, rgba(6, 16, 24, 0.88) 72%, #061018 100%),
    linear-gradient(90deg, rgba(6, 16, 24, 0.75) 0%, rgba(6, 16, 24, 0.25) 55%, rgba(6, 16, 24, 0.55) 100%);
}

.hero__tide {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  z-index: 1;
  background: linear-gradient(90deg, transparent, var(--teal), var(--coral), var(--teal), transparent);
  background-size: 200% 100%;
  animation: tide-flow 8s linear infinite;
}

@keyframes tide-flow {
  from { background-position: 0% 0; }
  to { background-position: 200% 0; }
}

.hero__top {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto 2rem;
  max-width: 40rem;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.85rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--online);
  box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.55);
  animation: pulse-dot 2.2s ease-out infinite;
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(94, 234, 212, 0); }
  100% { box-shadow: 0 0 0 0 rgba(94, 234, 212, 0); }
}

.hero h1 {
  font-size: clamp(2.8rem, 8vw, 4.6rem);
  color: var(--text);
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 24px rgba(6, 16, 24, 0.6);
}

.hero-lead {
  font-size: 1.05rem;
  max-width: 36rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.hero__realm {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  margin-bottom: 1.35rem;
  font-size: 0.85rem;
  color: var(--muted-2);
}

.hero__realm strong {
  color: var(--text);
  font-weight: 600;
}

/* Raid board — first-viewport schedule dock */
.raid-board {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  background: rgba(10, 24, 34, 0.88);
  border: 1px solid var(--line-teal);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.raid-board__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(20, 184, 166, 0.12), transparent 55%);
}

.raid-board__head h2 {
  font-size: 1.55rem;
  margin: 0;
}

.raid-board__head p {
  margin: 0;
  font-size: 0.88rem;
}

.raid-board__badge {
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral);
  border: 1px solid var(--line-coral);
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius);
}

.raid-board__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.raid-night {
  padding: 1.15rem 1.2rem 1.3rem;
  border-right: 1px solid var(--line);
  border-top: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.raid-night:last-child {
  border-right: none;
}

.raid-night:hover {
  background: rgba(45, 212, 191, 0.06);
}

.raid-night--focus {
  background: rgba(255, 122, 89, 0.08);
  border-top: 2px solid var(--coral);
}

.raid-night__day {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.raid-night__time {
  font-size: 0.95rem;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 0.55rem;
}

.raid-night__meta {
  font-size: 0.8rem;
  color: var(--muted-2);
  line-height: 1.4;
}

.raid-night__tag {
  display: inline-block;
  margin-top: 0.65rem;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral);
}

/* ---------- Sections ---------- */
.section {
  padding: 4.5rem 0;
}

.section--tide {
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(20, 184, 166, 0.08), transparent 55%),
    var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section--deep {
  background: var(--bg-3);
  border-top: 1px solid var(--line);
}

.section-header {
  margin-bottom: 2rem;
  max-width: 40rem;
}

.section-header--center {
  text-align: center;
  margin-inline: auto;
}

.section-label {
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}

/* Class needs */
.need-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.need-card {
  padding: 1.35rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.need-card:hover {
  border-color: var(--line-teal);
  transform: translateY(-2px);
}

.need-card--hot {
  border-left-color: var(--coral);
}

.need-card__role {
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.4rem;
}

.need-card--hot .need-card__role {
  color: var(--coral);
}

.need-card h3 {
  font-size: 1.45rem;
  margin-bottom: 0.45rem;
}

.need-card p {
  font-size: 0.92rem;
}

/* Apply panel */
.apply-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0;
  border: 1px solid var(--line-teal);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.apply-panel__copy {
  padding: 2rem 2.1rem;
}

.apply-panel__copy h2 {
  font-size: 2.1rem;
}

.apply-steps {
  margin: 1.25rem 0 1.5rem;
  display: grid;
  gap: 0.85rem;
}

.apply-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
}

.apply-steps__n {
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  background: rgba(45, 212, 191, 0.15);
  color: var(--teal);
  border-radius: 50%;
}

.apply-panel__aside {
  padding: 2rem 1.75rem;
  background:
    linear-gradient(160deg, rgba(255, 122, 89, 0.16), transparent 50%),
    var(--bg-3);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.apply-panel__aside h3 {
  font-size: 1.5rem;
}

.apply-panel__aside dl {
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.apply-panel__aside dt {
  font-family: var(--display);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.apply-panel__aside dd {
  margin: 0.15rem 0 0;
  color: var(--text);
  font-weight: 600;
}

/* Officer board */
.officer-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.officer {
  padding: 1.4rem 1.15rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.officer__mark {
  width: 3.2rem;
  height: 3.2rem;
  margin: 0 auto 0.85rem;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: #04201c;
  background: linear-gradient(145deg, var(--teal), var(--teal-deep));
  border-radius: 50%;
}

.officer:nth-child(even) .officer__mark {
  background: linear-gradient(145deg, var(--coral-soft), var(--coral));
  color: #1a0a06;
}

.officer__name {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.officer__role {
  font-size: 0.85rem;
  color: var(--teal);
  font-weight: 600;
}

/* Atmosphere strip */
.atmosphere {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 0.75rem;
}

.atmosphere__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 200px;
  border: 1px solid var(--line);
}

.atmosphere__item--wide {
  min-height: 280px;
}

.atmosphere__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.atmosphere__item:hover img {
  transform: scale(1.04);
}

.atmosphere__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem 1rem;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  background: linear-gradient(transparent, rgba(6, 16, 24, 0.9));
}

/* CTA */
.cta {
  padding: 4.5rem 0;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 80% at 50% 100%, rgba(20, 184, 166, 0.14), transparent 60%),
    var(--bg);
  border-top: 1px solid var(--line);
}

.cta h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 0.75rem;
}

.cta p {
  max-width: 34rem;
  margin: 0 auto 1.5rem;
}

.cta .btn-group {
  justify-content: center;
}

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  padding: 5rem 0 3.5rem;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 16, 24, 0.7), #061018 95%);
}

.page-hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
}

.page-hero p {
  max-width: 36rem;
}

/* Charter / content list */
.content-list {
  display: grid;
  gap: 1rem;
  max-width: 48rem;
}

.content-item {
  padding: 1.35rem 1.4rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
}

.content-item h2 {
  font-size: 1.45rem;
  margin-bottom: 0.4rem;
}

/* Roster (staff page) */
.roster {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.roster__card {
  padding: 1.6rem 1.25rem;
  text-align: center;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.roster__mark {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 0.9rem;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  color: #04201c;
  background: linear-gradient(145deg, var(--teal), var(--teal-deep));
  border-radius: 50%;
}

.roster__card:nth-child(3n) .roster__mark {
  background: linear-gradient(145deg, var(--coral-soft), var(--coral));
  color: #1a0a06;
}

.roster__name {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.roster__role {
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.55rem;
}

.roster__bio {
  font-size: 0.88rem;
}

/* Footer */
.site-footer {
  padding: 3rem 0 1.5rem;
  background: #040c12;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-grid > div > p {
  margin-top: 0.85rem;
  font-size: 0.9rem;
}

.footer-col h3 {
  font-size: 1rem;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.footer-col a {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  padding: 0.25rem 0;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted-2);
}

.footer-bottom p {
  color: var(--muted-2);
  margin: 0;
}

.footer-credit a {
  color: var(--muted);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .raid-board__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .raid-night:nth-child(2n) {
    border-right: none;
  }

  .raid-night:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .need-grid,
  .officer-board {
    grid-template-columns: repeat(2, 1fr);
  }

  .apply-panel {
    grid-template-columns: 1fr;
  }

  .apply-panel__aside {
    border-left: none;
    border-top: 1px solid var(--line);
  }

  .atmosphere {
    grid-template-columns: 1fr 1fr;
  }

  .atmosphere__item--wide {
    grid-column: 1 / -1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .roster {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
  }

  #site-nav {
    position: fixed;
    inset: calc(var(--header-h) + 2.2rem) 0 0 0;
    flex-direction: column;
    align-items: stretch;
    background: #061018;
    padding: 1.25rem;
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    overflow-y: auto;
    z-index: 190;
  }

  #site-nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-link {
    padding: 0.95rem 0.35rem;
    font-size: 1.15rem;
    border-bottom: 1px solid var(--line);
  }

  .nav-actions {
    flex-direction: column;
    margin-top: 1rem;
  }

  .nav-actions .btn {
    width: 100%;
  }

  .hero {
    min-height: auto;
    padding-top: 3rem;
  }

  .raid-board__grid,
  .need-grid,
  .officer-board,
  .roster,
  .atmosphere,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .raid-night {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .raid-night:last-child {
    border-bottom: none;
  }

  .atmosphere__item,
  .atmosphere__item--wide {
    min-height: 180px;
  }
}
