/* Custom dark, modern theme for Alpha Navy Honkit docs */

:root {
  --an-bg: #020617;          /* near-black */
  --an-bg-elevated: #020617; /* content background */
  --an-sidebar-bg: #020617;  /* sidebar background */
  --an-border-subtle: #1f2933;
  --an-text: #f9fafb;        /* almost white for better contrast */
  --an-text-muted: #d1d5db;  /* lighter gray for body text */
  --an-accent: #38bdf8;      /* cyan */
  --an-accent-soft: rgba(56, 189, 248, 0.16);
}

body {
  background: radial-gradient(circle at top left, #0b1120, #020617 55%, #000 100%);
}

/* Layout: dark shell */
.book {
  background: transparent;
}

.book .book-summary {
  background: var(--an-sidebar-bg);
  border-right: 1px solid var(--an-border-subtle);
}

/* Sidebar / menu links */
.summary,
.book-summary ul.summary {
  color: #e5e7eb;
}

.book-summary ul.summary li a {
  color: #e5e7eb;
}

.book-summary ul.summary li a:hover {
  color: #f9fafb;
}

.book-summary ul.summary li.active > a {
  color: #38bdf8;
  font-weight: 600;
}

/* Hide "Published with HonKit" credit link in sidebar */
.book-summary .gitbook-link,
.book-summary .honkit-link,
.book-summary a[href*="honkit"],
.book-summary a[href*="gitbook"] {
  display: none !important;
}

.book .book-body {
  background: transparent;
}

/* Content card */
.book .book-body .page-wrapper .page-inner {
  max-width: 900px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--an-text);
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.12), transparent 60%),
              var(--an-bg-elevated);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.85);
  padding: 2.2rem 2.6rem;
  margin-top: 2.4rem;
  margin-bottom: 3rem;
}

/* Headings */
.page-inner h1 {
  font-size: 2.1rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  margin-bottom: 1.2rem;
  color: #ffffff;
}

.page-inner h2,
.page-inner h3,
.page-inner h4 {
  font-weight: 650;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  color: #e5e7eb;
}

.page-inner p,
.page-inner li {
  color: var(--an-text-muted);
  line-height: 1.7;
}

/* Links */
.page-inner a {
  color: #e0f2fe;              /* very bright default link */
}

.page-inner a:hover {
  color: #f0f9ff;              /* almost white on hover */
}

/* Alpha Navy primary call-to-action */
.page-inner a[href^="https://alpha.navy"] {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: #0b1120 !important;
  text-decoration: none;
  font-weight: 650;
  box-shadow: 0 18px 40px rgba(8, 47, 73, 0.7);
}

.page-inner a[href^="https://alpha.navy"]:hover {
  background: linear-gradient(135deg, #7dd3fc, #38bdf8);
}

/* Make images look nicer */
.page-inner img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.2rem auto;
  border-radius: 16px;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

/* Sidebar logo injected via CSS */
.book-summary {
  padding-top: 80px; /* leave space for the logo */
  position: relative;
}

.book-summary::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  height: 48px;
  background: url("../.gitbook/assets/logo.jpeg") center left / contain no-repeat;
}
