:root {
  --page-bg: #eef2f4;
  --page-ink: #12202c;
  --page-muted: #5f6d78;
  --panel-bg: rgba(255, 255, 255, 0.82);
  --panel-border: rgba(18, 32, 44, 0.1);
  --panel-shadow: 0 18px 38px rgba(18, 32, 44, 0.06);
  --accent: #1d4f80;
}

html {
  scroll-behavior: smooth;
}

body.support-page {
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.88), transparent 34%),
    linear-gradient(180deg, #f8f8f6 0%, #eef2f4 46%, #e8edf0 100%);
  color: var(--page-ink);
  font-family: "Aptos", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  min-height: 100vh;
  padding: 28px 28px 56px;
  position: relative;
}

body.support-page::before {
  background:
    linear-gradient(rgba(18, 32, 44, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 32, 44, 0.02) 1px, transparent 1px);
  background-size: 96px 96px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 85%);
  pointer-events: none;
  position: fixed;
}

body.support-page::after {
  background: radial-gradient(circle at center, transparent 58%, rgba(7, 18, 27, 0.06) 100%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: fixed;
}

.page-shell {
  margin: 0 auto;
  max-width: 1220px;
  position: relative;
  z-index: 1;
}

.site-nav {
  align-items: center;
  backdrop-filter: blur(12px);
  background: rgba(248, 250, 249, 0.76);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  box-shadow: 0 14px 32px rgba(18, 32, 44, 0.06);
  display: flex;
  justify-content: space-between;
  margin: 0 auto 14px;
  padding: 12px 16px;
}

.nav-mark {
  color: var(--page-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  letter-spacing: 0.06em;
  padding: 0;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-links a {
  border-radius: 999px;
  color: var(--page-muted);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 12px;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: rgba(29, 79, 128, 0.1);
  color: var(--accent);
  transform: translateY(-1px);
}

.support-shell {
  margin: 0 auto;
  max-width: 980px;
}

.support-hero {
  margin: 0 auto 18px;
  max-width: 840px;
  padding: 12px 12px 4px;
  text-align: center;
}

.support-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  margin: 0 0 10px;
}

.support-hero p {
  color: var(--page-muted);
  font-size: 1rem;
  line-height: 1.62;
  margin: 0 auto;
  max-width: 720px;
}

.support-content {
  display: grid;
  gap: 16px;
}

.justification {
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 249, 0.86));
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  box-shadow: var(--panel-shadow);
  overflow: hidden;
  padding: 20px 22px 22px;
}

.justification h2,
.justification h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
  margin: 0 0 10px;
}

.justification h2 {
  font-size: 2rem;
}

.justification h3 {
  font-size: 1.35rem;
  margin-top: 20px;
}

.justification p,
.justification li {
  color: #2d3d49;
  font-size: 1rem;
  line-height: 1.72;
}

.justification p {
  margin: 0 0 14px;
}

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

.justification ul,
.justification ol {
  margin: 0 0 14px;
  padding-left: 1.25rem;
}

.justification li + li {
  margin-top: 0.45rem;
}

.justification a {
  color: var(--accent);
  text-decoration: none;
}

.justification a:hover {
  text-decoration: underline;
}

.source-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.source-list li {
  background: rgba(248, 250, 249, 0.72);
  border: 1px solid rgba(18, 32, 44, 0.08);
  border-radius: 14px;
  margin: 0;
  padding: 13px 14px;
}

.source-list a {
  color: var(--page-ink);
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
}

.source-list a:hover {
  color: var(--accent);
}

.rss-link a {
  align-items: center;
  color: #d46a12;
  display: inline-flex;
  font-weight: 700;
  gap: 8px;
}

pre,
pre code {
  white-space: pre-wrap;
  word-break: break-word;
}

pre code {
  background: rgba(243, 247, 250, 0.96);
  border: 1px solid rgba(18, 32, 44, 0.08);
  border-radius: 14px;
  color: #20313f;
  display: block;
  font-family: Consolas, "SFMono-Regular", Menlo, Monaco, monospace;
  font-size: 0.92rem;
  line-height: 1.55;
  overflow-x: auto;
  padding: 16px;
}

.back-nav,
.floating-back-m {
  display: none !important;
}

@media (max-width: 768px) {
  body.support-page {
    padding: 16px 14px 64px;
  }

  .site-nav {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 8px;
    padding: 12px 14px;
  }

  .nav-mark {
    flex: 0 0 100%;
  }

  .nav-links {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .nav-links a {
    text-align: center;
  }

  .support-hero {
    margin-bottom: 14px;
    padding: 10px 2px 2px;
  }

  .support-hero p {
    font-size: 0.95rem;
  }

  .justification {
    border-radius: 18px;
    padding: 16px;
  }

  .justification h2 {
    font-size: 1.65rem;
  }

  .justification h3 {
    font-size: 1.2rem;
  }
}
