/* ============================================================
   THEME VARIABLES
   ============================================================ */

:root {
  /* Core background layers */
  --bg: #05060a;               /* deep blue‑black (not pure black) */
  --bg-alt: #0b0f16;           /* elevated panel with blue tint */
  --panel: #111622;            /* Tron‑like card background */
  --panel-alt: #0d121c;        /* subtle variation */

  /* Text (ultra‑soft whites) */
  --text: #a7b2bb;             /* ultra‑soft cool white */
  --muted: #8fa0b2;            /* cool grey‑blue */

  /* Neon accents */
  --brand: #00eaff;            /* neon cyan */
  --brand-soft: rgba(0, 234, 255, 0.18);

  --accent: #b400ff;           /* neon purple */

  /* Borders + shadows */
  --border: #1a1f2a;           /* blue‑grey border */
  --shadow: rgba(0, 0, 0, 0.7);

  /* Glow effects */
  --glow-cyan: 0 0 14px rgba(0, 234, 255, 0.45);
  --glow-purple: 0 0 14px rgba(180, 0, 255, 0.45);

  /* Layout */
  --max-width: 1180px;

  --gh-font-heading: 'Inter', system-ui, sans-serif;
  --gh-font-body: 'Inter', system-ui, sans-serif;
}

/* ============================================================
   GLOBAL LAYOUT
   ============================================================ */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--gh-font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 17px;
}

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

.site-footer {
    margin-top: auto;
}


a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: none;
  color: var(--brand);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 14px;
  text-transform: uppercase;
  font-family: var(--gh-font-heading);
}
.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--brand);
}

/* Navigation */
.site-nav { margin-left: 24px; }
.nav-list {
  display: flex;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-family: var(--gh-font-heading);
}
.nav-item.is-active .nav-link {
  color: var(--text);
  border-bottom: 2px solid var(--brand);
  padding-bottom: 2px;
}
.nav-link:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.icon-button {
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
}
.icon-button:hover {
  color: var(--brand);
}
.avatar-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand);
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
  padding: 30px 0 30px;
}
.hero-inner {
  text-align: center;
}
.hero-title {
  font-size: 38px;
  font-weight: 700;
  margin: 0 0 8px;
  font-family: var(--gh-font-heading);
}
.hero-tagline {
  margin: 0 0 24px;
  color: var(--muted);
}

/* Search Box */
.hero-search-box {
  max-width: 360px;
  margin: 0 auto;
  position: relative;
}
.search-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
}
.search-trigger .gh-search-icon {
  opacity: 1;
  pointer-events: none;
  color: var(--muted);
}
.search-trigger .search-text {
  color: var(--muted);
  font-size: 15px;
}
.search-trigger:hover {
  border-color: var(--brand);
}
.search-trigger:hover .search-text {
  color: var(--text);
}

/* Filter Buttons */
.hero-filters {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 12px;
}
.filter-button {
  padding: 6px 14px;
  border-radius: 6px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}
.filter-button:hover {
  border-color: var(--brand);
  color: var(--text);
}
.filter-button.is-active {
  background: var(--brand);
  color: #000;
  font-weight: 600;
}

/* ============================================================
   DASHBOARD CARDS
   ============================================================ */

.dashboard-section {
  padding: 30px 0 40px;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-title {
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-family: var(--gh-font-heading);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
}

.card-date {
  background: var(--brand);
  color: #000;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 8px;
}

.card-date:hover {
  color: var(--muted);
}

.card-tag {
  background: var(--brand-soft);
  color: var(--brand);
  padding: 3px 8px;
  font-size: 11px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  display: inline-block;
}

.card-title {
  font-size: 20px;
  margin: 0 0 6px;
  font-family: var(--gh-font-heading);
}

.card-excerpt {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 12px;
}

/* ============================================================
   POST HERO
   ============================================================ */

.post-hero {
  padding: 36px 0 12px;
}

.post-hero-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}

.post-title {
  font-size: 32px;
  margin: 0 0 6px;
  font-family: var(--gh-font-heading);
}

.post-subtitle {
  margin: 0 0 10px;
  color: var(--muted);
}

.post-meta {
  font-size: 13px;
  color: var(--muted);
}

.post-tag {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

/* ============================================================
   WIZARD LAYOUT
   ============================================================ */

.post-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  align-items: flex-start;
  padding-bottom: 40px;
}

/* Sidebar */
.wizard-sidebar {
  position: sticky;
  top: 80px;
}

.wizard-nav {
  background: var(--bg-alt);
  border-radius: 12px;
  padding: 14px;
  border: 1px solid var(--border);
}

.wizard-heading {
  margin: 0 0 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-family: var(--gh-font-heading);
}

.wizard-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wizard-step-item + .wizard-step-item {
  margin-top: 6px;
}

.wizard-step-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 10px;
  font-size: 15px;
  color: var(--muted);
  border: 1px solid transparent;
  cursor: pointer;
}

.wizard-step-num {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 14px;
}

.wizard-step-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wizard-step-link:hover {
  border-color: var(--border);
  color: var(--text);
}

.wizard-step-link.active {
  background: var(--panel);
  border-color: var(--brand);
  color: var(--text);
}

/* Content panel */
.dashboard-panel {
  background: var(--bg-alt);
  border-radius: 12px;
  padding: 18px 20px;
  border: 1px solid var(--border);
}

/* Steps visibility */
.step {
  display: none;
}

.step.active {
  display: block;
}

.step h2 {
  margin: 0 0 10px;
  font-size: 22px;
  font-family: var(--gh-font-heading);
}

.step p {
  margin: 0 0 10px;
  color: var(--text);
}

.step ul,
.step ol {
  padding-left: 20px;
  margin: 0 0 10px;
}

.step li {
  margin-bottom: 4px;
}

/* Code Blocks */
pre {
  background: var(--panel);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  overflow: auto;
}

code {
  font-family: inherit;
}

/* Blockquote */
blockquote {
  margin: 10px 0;
  padding: 10px 12px;
  border-left: 3px solid var(--brand);
  background: var(--panel);
  color: var(--muted);
  border-radius: 4px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-inner {
  padding: 16px 20px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .post-layout {
    grid-template-columns: 1fr;
  }

  .wizard-sidebar {
    position: static;
    order: -1;
    margin-bottom: 16px;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 28px;
  }
  .post-title {
    font-size: 24px;
  }
}

.brand-logo {
  height: 80px;
  max-width: 180px;
  object-fit: contain;
  padding: 4px 0;
}
@media (max-width: 900px) {
  .card-grid {
    padding: 0 16px;
  }
}

@media (max-width: 640px) {
  .section-header {
    padding-left: 16px;
  }
}

.search-trigger {
  justify-content: center;
  gap: 8px;
}

/* Ghost required Koenig editor classes */
.kg-width-wide {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.kg-width-full {
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
}

/* Card layout: ensures tag pills sit at the bottom */
.card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Container for multiple tag pills */
.card-tags {
    margin-top: auto;      /* pushes tags to bottom */
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.card-tag-pill {
    background: var(--brand-soft);
    color: var(--brand);
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.card-tag-pill:hover {
    background: var(--brand);
    color: #000;
}

/* ============================================================
   PAGINATION
   ============================================================ */

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    color: var(--muted);
    transition: all 0.2s ease;
}

/* Hover state */
.pagination a:hover {
    border-color: var(--brand);
    color: var(--text);
}

/* Active page */
.pagination .page-number.current,
.pagination span.current {
    background: var(--brand);
    color: #000;
    border-color: var(--brand);
}

/* Disabled (e.g., no next page) */
.pagination .disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* Images inside dashboard panels */
.dashboard-panel img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 12px 0;
    object-fit: contain;
}

.dashboard-panel a {
  text-decoration: underline;
}

.page-about .post-content {
    column-count: 2;
    column-gap: 40px;
}
@media (max-width: 800px) {
    .page-about .post-content {
        column-count: 1;
    }
}
.page-about .post-content p:first-child {
    margin-top: 0;
}

.kg-callout-card,
.kg-cta-card {
  margin: 15px 0 0 0;
}
