:root {
  color-scheme: dark;

  --bg: #0b0d0f;
  --surface: #14181c;
  --surface-2: #1a2025;
  --surface-3: #20272d;
  --border: #2a3238;

  --text: #f3f5f6;
  --muted: #9aa5ad;

  --accent: #3b82f6;
  --accent-light: #7db2ff;
  --accent-soft: rgba(59, 130, 246, 0.14);

  --success: #56d37c;
  --danger: #ef5b5b;

  --page-width: 960px;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, #17304a 0, transparent 42rem),
    var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

button,
input,
select,
textarea,
a {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--accent-light);
}

.page {
  width: min(100% - 32px, var(--page-width));
  margin: 0 auto;
  padding: 32px 0 64px;
}

/* Navigation */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(20, 24, 28, 0.84);
  backdrop-filter: blur(12px);
}

.brand-mini {
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.brand-mini span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  border-radius: 9px;
  padding: 9px 12px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
  background: var(--surface-2);
  color: var(--text);
}

.nav-link.active {
  box-shadow: inset 0 -2px 0 var(--accent);
}

.mobile-nav {
  display: none;
}

/* General page sections */

.hero {
  margin: 44px 0 32px;
  text-align: center;
}

.hero--home {
  margin-top: 26px;
}

.hero-title {
  margin: 0;
  font-size: clamp(2.1rem, 8vw, 4rem);
  letter-spacing: -0.04em;
}

.hero-title span,
.logo span {
  color: var(--accent);
}

.logo {
  margin: 0;
  font-size: clamp(2rem, 8vw, 4.5rem);
  letter-spacing: 0.08em;
  line-height: 1;
}

.hero-description,
.subtitle {
  max-width: 680px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.subtitle {
  margin-top: 12px;
}

.card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(20, 24, 28, 0.94);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.28);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  padding: 0 20px;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 120ms ease,
    filter 120ms ease,
    opacity 120ms ease;
}

.button:hover {
  filter: brightness(1.08);
}

.button:active {
  transform: translateY(1px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.button-primary {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.button-secondary {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
}

.footer {
  margin-top: 30px;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

/* Server status */

.status-header {
  position: relative;
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  gap: 20px;
  overflow: hidden;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(
      135deg,
      rgba(39, 47, 55, 0.98) 0%,
      rgba(28, 34, 40, 0.99) 55%,
      rgba(22, 27, 32, 1) 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 7px 20px rgba(0, 0, 0, 0.12);
}

.status-label {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  gap: 10px;
  margin: 0;
  color: #f2f5f7;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

.status-dot {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 0 4px rgba(154, 165, 173, 0.12);
}

.status-dot.online {
  background: var(--success);
  box-shadow:
    0 0 0 4px rgba(62, 207, 142, 0.10),
    0 0 13px rgba(62, 207, 142, 0.30);
}

.status-dot.offline {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(235, 87, 87, 0.08);
}

.last-update {
  flex: 0 0 auto;
  margin: 0 0 0 auto;
  color: rgba(220, 226, 231, 0.68);
  font-size: 0.78rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
  text-align: right;
  white-space: nowrap;
}

.server-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
}

.metric {
  min-width: 0;
  padding: 20px;
  background: var(--surface);
}

.metric-label {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-value {
  overflow: hidden;
  font-size: 1.15rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.actions {
  display: flex;
  gap: 12px;
  padding: 20px;
  border-top: 1px solid var(--border);
}

.actions .button-primary {
  flex: 1;
}

.players-section {
  margin-top: 20px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
}

.players {
  display: grid;
}

.player {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
}

.player:last-child {
  border-bottom: 0;
}

.player-name {
  min-width: 0;
  overflow: hidden;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-stat {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.empty,
.error-message {
  padding: 32px 20px;
  color: var(--muted);
  text-align: center;
}

.error-message {
  color: #ffaaaa;
}

/* How to play */

.quick-connect {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  max-width: 620px;
  margin: 28px auto 0;
}

.command {
  display: flex;
  min-height: 52px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 16px;
  background: #080a0c;
  color: #dcecff;
  font-family: Consolas, Monaco, monospace;
  text-align: left;
  white-space: nowrap;
}

.guide {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

.guide-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  background: rgba(20, 24, 28, 0.94);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.24);
}

.step-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px;
  font-size: 1.25rem;
}

.step-number,
.rule-number {
  display: inline-flex;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-light);
  font-size: 0.9rem;
  font-weight: 800;
}

.guide-card p,
.guide-card li {
  color: var(--muted);
  line-height: 1.65;
}

.guide-card p:last-child {
  margin-bottom: 0;
}

.guide-card ul {
  margin-bottom: 0;
  padding-left: 22px;
}

code {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 6px;
  background: #090b0d;
  color: #dcecff;
  font-family: Consolas, Monaco, monospace;
}

.key-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.key-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--surface-2);
  color: var(--muted);
}

.key-row strong {
  color: var(--text);
}

.notice {
  margin-top: 18px;
  border-left: 3px solid var(--accent);
  border-radius: 5px;
  padding: 14px 16px;
  background: rgba(59, 130, 246, 0.08);
  color: var(--muted);
  line-height: 1.55;
}

/* Rules */

.rules {
  display: grid;
  gap: 16px;
  margin-top: 34px;
}

.rule {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  background: rgba(20, 24, 28, 0.94);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.22);
}

.rule-number {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}

.rule h2 {
  margin: 2px 0 8px;
  font-size: 1.15rem;
}

.rule p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.support {
  margin-top: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  background: rgba(20, 24, 28, 0.94);
  text-align: center;
}

.support h2 {
  margin-top: 0;
}

.support p {
  color: var(--muted);
  line-height: 1.6;
}

/* Mobile layout */

@media (max-width: 700px) {
  .page {
    width: min(100% - 20px, var(--page-width));
    padding-top: 22px;
    padding-bottom: 100px;
  }

  .topbar {
    display: none;
  }

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

  .actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .quick-connect {
    grid-template-columns: 1fr;
  }

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

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

  .mobile-nav {
    position: fixed;
    z-index: 100;
    right: 10px;
    bottom: 10px;
    left: 10px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(20, 24, 28, 0.96);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(16px);
  }

  .mobile-nav a {
    display: flex;
    min-height: 62px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 700;
    text-decoration: none;
  }

  .mobile-nav a.active {
    background: var(--surface-2);
    color: var(--text);
    box-shadow: inset 0 2px 0 var(--accent);
  }

  .mobile-nav-icon {
    color: var(--accent);
    font-size: 1rem;
  }
}

@media (max-width: 430px) {
  .player {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .player-ping {
    display: none;
  }
}


/* Keyboard diagram */

.keyboard-figure {
  margin: 22px 0 0;
}

.keyboard-diagram {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  background:
    radial-gradient(circle at center, rgba(59, 130, 246, 0.08), transparent),
    #090b0d;
}

.keyboard-svg {
  display: block;
  width: min(100%, 620px);
  height: auto;
  margin: 0 auto;
}

.keyboard-caption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  text-align: center;
}

.keyboard-caption strong {
  color: var(--text);
}

/* Version connection commands */

.version-commands {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.version-command {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  background: var(--surface-2);
}

.version-command h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.version-command code {
  display: block;
  overflow-x: auto;
  margin-bottom: 14px;
  padding: 12px;
  white-space: nowrap;
}

.version-command .button {
  width: 100%;
}

/* Downloads page */

.downloads-intro {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  margin-top: 34px;
}

.download-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  background: rgba(20, 24, 28, 0.94);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.22);
}

.download-panel h2 {
  margin: 12px 0 10px;
  font-size: 1.45rem;
}

.download-panel p {
  color: var(--muted);
  line-height: 1.65;
}

.download-badge {
  display: inline-flex;
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(59, 130, 246, 0.11);
  color: var(--accent-light);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.download-badge--demo {
  border-color: rgba(240, 181, 77, 0.4);
  background: rgba(240, 181, 77, 0.09);
  color: #f2c76e;
}

.download-meta {
  display: grid;
  gap: 9px;
  margin: 20px 0;
}

.download-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 9px;
  color: var(--muted);
  font-size: 0.9rem;
}

.download-meta-row:last-child {
  border-bottom: 0;
}

.download-meta-row strong {
  color: var(--text);
  text-align: right;
}

.download-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.download-actions .button {
  flex: 1;
}

.download-note {
  border-left: 3px solid #f0b54d;
  border-radius: 5px;
  padding: 13px 15px;
  background: rgba(240, 181, 77, 0.08);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.client-section {
  margin-top: 18px;
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.client-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  background: var(--surface-2);
}

.client-card h3 {
  margin: 0 0 8px;
}

.client-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.client-protocol {
  display: inline-block;
  margin-top: 14px;
  border-radius: 7px;
  padding: 5px 8px;
  background: #090b0d;
  color: var(--accent-light);
  font-family: Consolas, Monaco, monospace;
  font-size: 0.82rem;
}

.download-support {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  background: rgba(20, 24, 28, 0.94);
}

.download-support h2 {
  margin: 0 0 7px;
}

.download-support p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.download-support-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

@media (max-width: 700px) {
  .version-commands,
  .downloads-intro,
  .client-grid {
    grid-template-columns: 1fr;
  }

  .download-actions,
  .download-support,
  .download-support-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .keyboard-diagram {
    padding: 14px;
  }
}

/* Full controls diagram */

.controls-figure {
  margin: 22px 0 0;
}

.controls-image {
  display: block;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #090c10;
}

.controls-image img {
  display: block;
  width: 100%;
  height: auto;
}


.compatibility-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.compatibility-badge {
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(59, 130, 246, 0.11);
  color: var(--accent-light);
  font-size: 0.82rem;
  font-weight: 700;
}

@media (max-width: 700px) {
  .controls-image {
    overflow-x: auto;
  }

  .controls-image img {
    min-width: 850px;
  }
}

/* Controls and downloads refinements */

.controls-image {
  cursor: default;
}

.controls-image img {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
}

.controls-mobile-legend {
  display: none;
}

.downloads-main-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.download-simple-card,
.nemesis-section,
.nemesis-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(20, 24, 28, 0.94);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.22);
}

.download-simple-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 26px;
}

.download-simple-card h2,
.nemesis-card h3 {
  margin: 12px 0 10px;
}

.download-simple-card p,
.nemesis-section p,
.nemesis-card p,
.install-steps {
  color: var(--muted);
  line-height: 1.65;
}

.download-type {
  align-self: flex-start;
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(59, 130, 246, 0.11);
  color: var(--accent-light);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.download-type--demo {
  border-color: rgba(240, 181, 77, 0.4);
  background: rgba(240, 181, 77, 0.09);
  color: #f2c76e;
}

.download-warning {
  margin-top: 16px;
  border-left: 3px solid #f0b54d;
  border-radius: 5px;
  padding: 13px 15px;
  background: rgba(240, 181, 77, 0.08);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.download-card-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 22px;
}

.download-card-actions .button {
  flex: 1;
}

.nemesis-section {
  margin-top: 18px;
  padding: 26px;
}

.nemesis-section > h2 {
  margin: 0 0 8px;
}

.nemesis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.nemesis-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 22px;
  background: var(--surface-2);
  box-shadow: none;
}

.folder-name {
  display: block;
  overflow-x: auto;
  margin: 12px 0;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 11px 12px;
  background: #090b0d;
  color: var(--accent-light);
  font-family: Consolas, Monaco, monospace;
  white-space: nowrap;
}

.install-steps {
  margin: 8px 0 0;
  padding-left: 21px;
}

.install-steps li + li {
  margin-top: 8px;
}

.nemesis-card .button {
  width: 100%;
  margin-top: auto;
}

@media (max-width: 700px) {
  .guide-card {
    padding: 18px;
  }

  .version-command {
    padding: 15px;
  }

  .version-command code {
    overflow-wrap: anywhere;
    font-size: 0.8rem;
    white-space: normal;
  }

  /*
   * Keep the keyboard readable instead of shrinking the whole SVG.
   * The embedded SVG legend is cropped on mobile and replaced by the
   * responsive HTML legend below.
   */
  .controls-image {
    height: 350px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .controls-image img {
    width: 820px;
    max-width: none;
    min-width: 820px;
  }

  .controls-mobile-legend {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
  }

  .control-legend-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    min-height: 44px;
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 7px;
    background: var(--surface-2);
  }

  .control-legend-key {
    display: flex;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(59, 130, 246, 0.5);
    border-radius: 7px;
    background: rgba(59, 130, 246, 0.14);
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 800;
    text-align: center;
  }

  .control-legend-action {
    color: var(--muted);
    font-size: 0.75rem;
    line-height: 1.25;
  }

  .downloads-main-grid,
  .nemesis-grid {
    grid-template-columns: 1fr;
  }

  .download-card-actions {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .controls-mobile-legend {
    grid-template-columns: 1fr;
  }
}

/* Mobile layout finalization */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.controls-image picture,
.controls-image img {
  display: block;
  width: 100%;
}

.mobile-nav {
  grid-template-columns:
    repeat(var(--mobile-nav-count, 5), minmax(0, 1fr));
}

.mobile-nav a {
  min-width: 0;
}

.mobile-nav a span:last-child {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .controls-figure {
    width: 100%;
    margin: 18px 0 0;
  }

  .controls-image {
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 14px;
  }

  .controls-image img {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: auto;
  }

  .controls-mobile-legend {
    display: none;
  }

  .mobile-nav {
    right: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    left: 8px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .mobile-nav a {
    min-height: 58px;
    padding: 4px 1px;
    font-size: 0.6rem;
  }

  .mobile-nav-icon {
    font-size: 0.95rem;
  }

  .page {
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 370px) {
  .mobile-nav a {
    font-size: 0.56rem;
  }

  .mobile-nav-icon {
    font-size: 0.88rem;
  }
}

/* Server status link and responsive refinements */

.map-link {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 5px;
  width: fit-content;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(110, 174, 255, 0.40);
  transition:
    color 150ms ease,
    border-color 150ms ease;
}

.map-link::after {
  content: "↗";
  flex: 0 0 auto;
  font-size: 0.72em;
  opacity: 0.58;
}

.map-link:hover,
.map-link:focus-visible {
  color: #82b7ff;
  border-bottom-color: currentColor;
}

.map-link:focus-visible {
  outline: 2px solid rgba(110, 174, 255, 0.52);
  outline-offset: 4px;
  border-radius: 2px;
}

.download-file-meta {
  min-height: 1.4em;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.download-file-meta[data-state="unavailable"] {
  color: #ffaaaa;
}

.button[aria-disabled="true"] {
  cursor: not-allowed;
  filter: none;
  opacity: 0.52;
  pointer-events: none;
}

@media (max-width: 700px) {
  .status-header {
    min-height: 60px;
    gap: 12px;
    padding: 12px 14px;
  }

  .status-label {
    gap: 8px;
    font-size: 0.9rem;
  }

  .last-update {
    font-size: 0.7rem;
  }
}

@media (max-width: 380px) {
  .status-header {
    gap: 8px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .status-label {
    font-size: 0.84rem;
  }

  .last-update {
    font-size: 0.64rem;
  }
}

/* SUFNI custom wordmark: start */

.sufni-wordmark-host {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.sufni-wordmark {
  display: block;
  height: auto;
  max-width: 100%;
  user-select: none;
}

/* Navigation logo */

.sufni-wordmark--nav {
  width: 112px;
}

/* Main server-page logo */

h1.sufni-wordmark-host {
  display: flex;
  justify-content: center;
  width: 100%;
}

.sufni-wordmark--hero {
  width: clamp(250px, 43vw, 440px);
}

/* Prevent old text styles affecting the SVG */

.sufni-wordmark-host,
.sufni-wordmark-host:hover,
.sufni-wordmark-host:focus {
  text-decoration: none;
}

@media (max-width: 700px) {
  .sufni-wordmark--nav {
    width: 100px;
  }

  .sufni-wordmark--hero {
    width: clamp(230px, 76vw, 360px);
  }
}

/* SUFNI custom wordmark: end */
