/* ============================================================
   Global reset & base
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1a1a2e;
  background: #f8f9fa;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============================================================
   Site header / nav
   ============================================================ */
.site-header {
  background: #0d1b2a;
  border-bottom: 3px solid #E60073;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-nav {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  min-height: 52px;
}

.nav-home {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav-logo {
  height: 28px;
  width: auto;
  vertical-align: middle;
  flex-shrink: 0;
  border-radius: 4px;
}

.nav-home:hover {
  color: #3FA5DC;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  margin-left: auto;
}

.nav-links li a {
  color: #c8d6e5;
  text-decoration: none;
  font-size: 0.875rem;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}

.nav-links li a:hover {
  background: #1e3a5f;
  color: #ffffff;
}

/* ============================================================
   Main content
   ============================================================ */
.page-content {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  flex: 1;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.06);
}

/* ============================================================
   Home page
   ============================================================ */
.home-hero {
  text-align: center;
  padding: 3rem 1.5rem 2.5rem;
  background: #f2f4f6;
  margin: -2.5rem -1.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home-hero .hero-logo {
  height: 350px !important;
  width: auto !important;
  margin: 0 auto 1.5rem !important;
  display: block;
}

.home-hero h1 {
  font-size: 2.25rem;
  color: #0d1b2a;
  margin-bottom: 0.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  border-bottom: none;
  padding-bottom: 0;
}

.tagline {
  color: #4b5563;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.guide-list {
  margin-bottom: 2.5rem;
}

.guide-list h2 {
  font-size: 1.35rem;
  color: #E60073;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #f0e0ea;
}

.guide-list ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.guide-list li {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-left: 4px solid #E60073;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.guide-list li:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.card-icon {
  display: block;
  margin-bottom: 0.6rem;
  color: #E60073;
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.guide-list li a {
  display: block;
  font-weight: 600;
  font-size: 1.05rem;
  color: #0d1b2a;
  text-decoration: none;
  margin-bottom: 0.35rem;
}

.guide-list li a:hover {
  color: #E60073;
}

.guide-desc {
  display: block;
  font-size: 0.82rem;
  color: #4b5563;
  line-height: 1.45;
}

.about {
  padding: 2rem;
  background: #f0f7ff;
  border-radius: 8px;
}

.about h2 {
  font-size: 1.2rem;
  color: #0d1b2a;
  margin-bottom: 0.75rem;
}

.about p {
  color: #333;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

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

/* ============================================================
   Typography for Markdown-rendered guides
   ============================================================ */
.page-content h1 {
  font-size: 1.9rem;
  color: #0d1b2a;
  margin: 1.5rem 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #E60073;
}

.page-content h2 {
  font-size: 1.4rem;
  color: #0d1b2a;
  margin: 2rem 0 0.75rem;
}

.page-content h3 {
  font-size: 1.15rem;
  color: #1a1a2e;
  margin: 1.5rem 0 0.6rem;
}

.page-content p {
  margin-bottom: 1rem;
}

.page-content a {
  color: #0073b1;
  text-decoration: none;
}

.page-content a:hover {
  text-decoration: underline;
  color: #E60073;
}

.page-content ul,
.page-content ol {
  margin: 0.75rem 0 1rem 1.5rem;
}

.page-content li {
  margin-bottom: 0.35rem;
}

.page-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem 0;
}

/* ============================================================
   Code blocks
   ============================================================ */
.page-content pre {
  background: #1e2d3d;
  color: #cdd6f4;
  padding: 1rem 1.25rem;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 0.875rem;
  margin: 1rem 0 1.5rem;
}

.page-content code {
  font-family: "Fira Code", "Cascadia Code", Consolas, "Courier New", monospace;
  font-size: 0.875em;
}

.page-content p code,
.page-content li code {
  background: #eef2f7;
  color: #c0392b;
  padding: 0.1em 0.4em;
  border-radius: 3px;
}

/* ============================================================
   Tables — standard guide tables
   ============================================================ */
.page-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 1rem 0 1.5rem;
  font-size: 0.8rem;
  table-layout: fixed;
  background: #ffffff;
}

.page-content th {
  background: #3FA5DC;
  color: #ffffff;
  text-align: center;
  padding: 0.5rem 0.5rem;
  font-weight: 600;
  word-wrap: break-word;
  word-break: break-word;
}

.page-content td {
  padding: 0.4rem 0.5rem;
  border: 1.5px solid lightgrey;
  vertical-align: top;
  background: #ffffff;
  word-wrap: break-word;
  word-break: break-word;
}

.page-content tr:nth-child(even) td {
  background: #f5f5f5;
}

/* ============================================================
   .heatMap — custom table style used in guides
   ============================================================ */
.heatMap {
  text-align: left;
  background: #ffffff;
  table-layout: fixed;
}

.heatMap thead {
  position: sticky;
  top: 52px;
}

.heatMap th {
  background: #3FA5DC;
  word-wrap: break-word;
  word-break: break-word;
  text-align: center;
  border: 0px solid lightgrey;
  color: white;
  padding: 0.5rem 0.5rem;
}

.heatMap td {
  border: 1.5px solid lightgrey;
  background: #ffffff;
  word-wrap: break-word;
  word-break: break-word;
  padding: 0.4rem 0.5rem;
}

.heatMap tr:nth-child(even) td {
  background: #f0f0f0;
}

.heatMap td:first-child {
  font-weight: bold;
}

/* ============================================================
   Site footer
   ============================================================ */
.site-footer {
  background: #0d1b2a;
  color: #8899aa;
  text-align: center;
  padding: 1rem 1.5rem;
  font-size: 0.825rem;
}

.site-footer a {
  color: #3FA5DC;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 700px) {
  .site-nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 1rem;
    gap: 0.5rem;
  }

  .nav-links {
    margin-left: 0;
  }

  .page-content {
    padding: 1.5rem 1rem;
  }

  .home-hero h1 {
    font-size: 1.5rem;
  }

  .guide-list ul {
    grid-template-columns: 1fr;
  }
}
