/* ═══════════════════════════════════════════════════════════════
   Gary Bozek — The Cynical Guru  |  Ghost Theme screen.css
   ═══════════════════════════════════════════════════════════════ */
/* 2026-06-01 - V1.0.9    - run through prettier to make it readable
 *                        - .headshot-img already had the code for picture formatting
 * 2026-06-23 - V1.0.11   - Use VSCodium
 *                        - Side Panel:  Fix font size, weight, and colors
 *                        - Main Panel:  Change text
 *                        - 
 */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --p1: #894ed3;
  --p2: #9058d7;
  --p3: #9966d9;
  --p4: #9f70da;
  --p5: #ab83de;
  --p6: #c1a1e9;
  --p7: #d4c2ea;     /* used for headshot-ring */
  --ink: #0d0c14;
  --ink-mid: #14121f;
  --ink-soft: #1c1829;
  --ink-muted: #2a2540;
  --smoke: #e8e4f4;
  --ash: #e0dee7;
  --ghost: #b5b0c5;
  --sect1-bg: #110f1d;
  --sect2-bg: #0e1320;
  --sect3-bg: #120e1a;
  --sect4-bg: #0f1512;
  --acc-blue: #4e8fd6;
  --acc-amber: #d6764e;
  --acc-teal: #4ec495;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-mono: "DM Mono", "Courier New", monospace;
  --panel-w: 25%;
  --panel-max: 320px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Light theme overrides ──────────────────────────────────── */
[data-theme="light"] {
  --ink:      #F4F2FC;
  --ink-mid:  #EAE6F8;
  --ink-soft: #DDD8F2;
  --ink-muted:#C8C0E8;
  --smoke:    #1A1630;
  --ash:      #3D3660;
  --ghost:    #7A72A0;

  /* Section backgrounds */
  --sect1-bg: #EDF1FB;
  --sect2-bg: #FBF0EB;
  --sect3-bg: #F3EEFB;
  --sect4-bg: #EBFAF4;
}

/* Invert the hero radial glow in light mode */
[data-theme="light"] .cover-hero::before {
  background: radial-gradient(ellipse 60% 60% at 60% 40%, rgba(137,78,211,0.06) 0%, transparent 70%);
}

/* Soften section glows in light mode */
[data-theme="light"] .sect-thought::before    { background: radial-gradient(ellipse 80% 60% at 80% 50%, rgba(78,143,214,0.04) 0%, transparent 70%); }
[data-theme="light"] .sect-challenge::before  { background: radial-gradient(ellipse 80% 60% at 20% 50%, rgba(214,118,78,0.04) 0%, transparent 70%); }
[data-theme="light"] .sect-uncommon::before   { background: radial-gradient(ellipse 80% 60% at 70% 40%, rgba(153,102,217,0.05) 0%, transparent 70%); }
[data-theme="light"] .sect-wisdom::before     { background: radial-gradient(ellipse 80% 60% at 30% 60%, rgba(78,196,149,0.04) 0%, transparent 70%); }

/* Hero title in light mode needs dark text */
[data-theme="light"] .hero-title-main   { color: #1A1630; }
[data-theme="light"] .section-title     { color: #1A1630; }
[data-theme="light"] .post-title        { color: #1A1630; }
[data-theme="light"] .archive-title     { color: #1A1630; }

/* Post card background in light mode */
[data-theme="light"] .post-card { background: #fff; border-color: rgba(137,78,211,0.12); }

/* gh-content text in light mode */
[data-theme="light"] .gh-content        { color: #2A2450; }
[data-theme="light"] .gh-content strong { color: #1A1630; }
[data-theme="light"] .gh-content h2,
[data-theme="light"] .gh-content h3     { color: #1A1630; }
[data-theme="light"] .gh-content pre    { background: #E8E4F8; border-color: rgba(137,78,211,0.15); }

/* Deco Number in light mode needs dark text */
[data-theme="light"] .deco-number       { color: #1A1630; }

/* Toggle button styling */
.nav-theme-toggle { 
  margin-top: 12px; 
  padding-top: 12px;
  border-top: 1px solid rgba(137, 78, 211, 0.65); 
}
[data-theme="light"] .nav-theme-toggle { 
  border-top-color: rgba(137, 78, 211, 0.65); 
}
.theme-toggle { 
  background: none; 
  border: none; 
  cursor: pointer; 
  width: 100%; 
  text-align: left; 
  font-family: var(--font-body); 
  font-size: 0.82rem; 
  color: var(--ash); 
}


html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--smoke);
  display: flex;
  min-height: 100vh;
  overflow: hidden;
}

/* ── Side Panel ─────────────────────────────────────────────── */
.side-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--panel-w);
  max-width: var(--panel-max);
  height: 100vh;
  background: var(--ink-mid);
  border-right: 1px solid rgba(137, 78, 211, 0.18);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow: hidden;
}
.side-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 200% 30% at 50% 0%,
      rgba(137, 78, 211, 0.12) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 150% 20% at 50% 100%,
      rgba(153, 102, 217, 0.08) 0%,
      transparent 70%
    );
  pointer-events: none;
}
.panel-top {
  padding: 32px 24px 24px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(137, 78, 211, 0.65);
}
.headshot-wrap {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto 20px;
}
.headshot-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(
    from 180deg,
    var(--p1),
    var(--p7),
    var(--acc-blue),
    var(--p1)
  );
  animation: spin 6s linear infinite; /* was 12s  */
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.headshot-placeholder,
.headshot-img {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--ink-soft);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--ink-mid);
  z-index: 1;
  object-fit: cover;
}
.headshot-placeholder svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.headshot-label {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--p6);
  letter-spacing: 0.05em;
}
.headshot-accent {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--acc-teal);
  border: 2px solid var(--ink-mid);
  z-index: 2;
}
.panel-identity {
  text-align: center;
}
.panel-title-small {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: var(--p5);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.panel-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 8px;
}
.panel-tagline {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--ghost);
  line-height: 1.6;
  font-style: italic;
}

.panel-nav {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 20px 24px 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--ink-muted) transparent;
}
.panel-nav::-webkit-scrollbar {
  width: 4px;
}
.panel-nav::-webkit-scrollbar-thumb {
  background: var(--ink-muted);
  border-radius: 2px;
}
.nav-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--p4);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(137, 78, 211, 0.65);
}
.panel-nav ul {
  list-style: none;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 6px;
  color: var(--ash);
  text-decoration: none;
  font-size: 0.82rem;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.15s;
  margin-bottom: 2px;
}
.nav-link:hover {
  background: rgba(153, 102, 217, 0.12);
  color: #fff;
  transform: translateX(3px);
}
.nav-link.active {
  background: rgba(153, 102, 217, 0.2);
  color: var(--p6);
}
.nav-icon {
  font-size: 0.55rem;
  color: var(--p3);
  flex-shrink: 0;
}

.panel-actions {
  flex-shrink: 0;
  padding: 16px 24px 28px;
  border-top: 1px solid rgba(137, 78, 211, 0.65);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.btn-signin {
  background: transparent;
  border: 1px solid rgba(153, 102, 217, 0.4);
  color: var(--p5);
  padding: 9px 0;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s,
    color 0.2s;
  text-align: center;
  text-decoration: none;
  display: block;
}
.btn-signin:hover {
  border-color: var(--p3);
  background: rgba(153, 102, 217, 0.1);
  color: #fff;
}
.btn-subscribe {
  background: linear-gradient(135deg, var(--p1), var(--p3));
  border: none;
  border-radius: 6px;
  padding: 2px;
  cursor: pointer;
  transition:
    opacity 0.2s,
    transform 0.15s;
  text-decoration: none;
  display: block;
}
.btn-subscribe:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.btn-subscribe-inner {
  display: block;
  background: linear-gradient(135deg, var(--p1), var(--p2));
  border-radius: 5px;
  padding: 9px 0;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  text-align: center;
}
.subscribe-note {
  text-align: center;
  font-size: 0.65rem;
  color: var(--ghost);
}
.member-status {
  color: var(--p5);
  font-size: 0.72rem;
}

/* ── Main Cover ─────────────────────────────────────────────── */
.main-cover {
  margin-left: min(var(--panel-w), var(--panel-max));
  width: calc(100% - min(var(--panel-w), var(--panel-max)));
  height: 100vh;
  overflow-y: auto;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: var(--ink-muted) transparent;
}
.main-cover::-webkit-scrollbar {
  width: 6px;
}
.main-cover::-webkit-scrollbar-thumb {
  background: var(--ink-muted);
  border-radius: 3px;
}
.hamburger {
  display: none;
}
.mobile-nav {
  display: none;
}

/* ── Hero ───────────────────────────────────────────────────── */
.cover-hero {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0px 72px 80px 64px;
  background: var(--ink);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}
.cover-hero.revealed {
  opacity: 1;
  transform: none;
}
.cover-hero::before {
  content: "";
  position: absolute;
  top: 0%;    /* Changed from -40% to 0%  */
  right: -20%;
  width: 70vw;
  height: 100%;  /* Changed from 140% to 100%  */
  background: radial-gradient(
    ellipse 60% 60% at 60% 40%,
    rgba(137, 78, 211, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.cover-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5px;  /*  Test - makes it more visible */
  background: linear-gradient(
    90deg,
    transparent,
    rgba(153, 102, 217, 0.3),
    transparent
  );
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
}
.eyebrow-line {
  flex: 1;
  max-width: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--p1));
}
.eyebrow-line:last-child {
  background: linear-gradient(90deg, var(--p1), transparent);
}
.eyebrow-text {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--p4);
}
.hero-title {
  margin-bottom: 32px;
}
.hero-title-main {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 0.95;
  color: #fff;
  letter-spacing: -0.03em;
}
.hero-title-sub {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  font-weight: 400;
  font-style: italic;
  background: linear-gradient(135deg, var(--p4), var(--p6));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 4px;
}
.hero-description {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 300;
  line-height: 1.75;
  color: var(--ash);
  max-width: 560px;
  margin-bottom: 36px;
}
.hero-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.hero-rule span:not(.rule-gem) {
  flex: 1;
  max-width: 40px;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}
.rule-gem {
  color: var(--p3);
  font-size: 0.7rem;
}
.hero-benefit {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-style: italic;
  color: var(--p6);
  margin-bottom: 48px;
  max-width: 500px;
}
.hero-points {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 520px;
}
.hero-point {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.point-mark {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--p3);
  letter-spacing: 0.1em;
  padding-top: 3px;
  flex-shrink: 0;
}
.hero-point p {
  font-size: 0.9rem;
  color: var(--ash);
  line-height: 1.6;
}

/* ── Cover Sections ─────────────────────────────────────────── */
.cover-section {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}
.cover-section.revealed {
  opacity: 1;
  transform: none;
}
.section-inner {
  padding: 100px 64px;
  max-width: 680px;
}
.section-deco {
  padding: 0 48px 0 24px;
  display: flex;
  align-items: center;
}
.deco-number {
  font-family: var(--font-display);
  font-size: clamp(6rem, 12vw, 10rem);
  font-weight: 900;
  opacity: 0.05;
  color: #fff;
  user-select: none;
}
.section-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 28px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 28px;
}
.section-title em {
  font-style: italic;
  font-weight: 700;
}
.section-desc {
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  font-weight: 300;
  line-height: 1.8;
  color: var(--ash);
  margin-bottom: 28px;
  max-width: 520px;
}
.section-benefit {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 36px;
  padding: 16px 20px;
  border-left: 2px solid;
  border-radius: 0 4px 4px 0;
}
.section-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.section-points li {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--ash);
  padding-left: 20px;
  position: relative;
}
.section-points li::before {
  content: "—";
  position: absolute;
  left: 0;
  font-size: 0.75rem;
  opacity: 0.5;
}

/* Section themes */
.sect-thought {
  background: var(--sect1-bg);
}
.sect-thought::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 80% 50%,
    rgba(78, 143, 214, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.sect-thought::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(78, 143, 214, 0.25),
    transparent
  );
}
.sect-thought .section-tag {
  background: rgba(78, 143, 214, 0.1);
  color: var(--acc-blue);
  border: 1px solid rgba(78, 143, 214, 0.2);
}
.sect-thought .section-title em {
  color: var(--acc-blue);
}
.sect-thought .section-benefit {
  border-color: var(--acc-blue);
  background: rgba(78, 143, 214, 0.06);
  color: rgba(78, 143, 214, 0.85);
}
.sect-thought .section-points li::before {
  color: var(--acc-blue);
}

.sect-challenge {
  background: var(--sect2-bg);
}
.sect-challenge::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 20% 50%,
    rgba(214, 118, 78, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.sect-challenge::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(214, 118, 78, 0.25),
    transparent
  );
}
.sect-challenge .section-tag {
  background: rgba(214, 118, 78, 0.1);
  color: var(--acc-amber);
  border: 1px solid rgba(214, 118, 78, 0.2);
}
.sect-challenge .section-title em {
  color: var(--acc-amber);
}
.sect-challenge .section-benefit {
  border-color: var(--acc-amber);
  background: rgba(214, 118, 78, 0.06);
  color: rgba(214, 118, 78, 0.85);
}
.sect-challenge .section-points li::before {
  color: var(--acc-amber);
}

.sect-uncommon {
  background: var(--sect3-bg);
}
.sect-uncommon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 70% 40%,
    rgba(153, 102, 217, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.sect-uncommon::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(153, 102, 217, 0.3),
    transparent
  );
}
.sect-uncommon .section-tag {
  background: rgba(153, 102, 217, 0.12);
  color: var(--p6);
  border: 1px solid rgba(153, 102, 217, 0.25);
}
.sect-uncommon .section-title em {
  background: linear-gradient(135deg, var(--p4), var(--p6));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sect-uncommon .section-benefit {
  border-color: var(--p3);
  background: rgba(153, 102, 217, 0.07);
  color: var(--p6);
}
.sect-uncommon .section-points li::before {
  color: var(--p4);
}

.sect-wisdom {
  background: var(--sect4-bg);
}
.sect-wisdom::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 30% 60%,
    rgba(78, 196, 149, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.sect-wisdom .section-tag {
  background: rgba(78, 196, 149, 0.1);
  color: var(--acc-teal);
  border: 1px solid rgba(78, 196, 149, 0.2);
}
.sect-wisdom .section-title em {
  color: var(--acc-teal);
}
.sect-wisdom .section-benefit {
  border-color: var(--acc-teal);
  background: rgba(78, 196, 149, 0.06);
  color: rgba(78, 196, 149, 0.85);
}
.sect-wisdom .section-points li::before {
  color: var(--acc-teal);
}

/* ── Latest Posts Section ───────────────────────────────────── */
.sect-posts {
  background: var(--ink-mid);
  min-height: auto;
  grid-template-columns: 1fr;
}
.posts-section-inner {
  max-width: 100%;
  padding: 80px 64px;
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.posts-view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  color: var(--p5);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition:
    color 0.2s,
    gap 0.2s;
}
.posts-view-all:hover {
  color: #fff;
  gap: 12px;
}

/* ── Post Card ──────────────────────────────────────────────── */
.post-card {
  background: var(--ink-soft);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  overflow: hidden;
  transition:
    border-color 0.2s,
    transform 0.2s;
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  border-color: rgba(153, 102, 217, 0.3);
  transform: translateY(-3px);
}
.post-card-image-link {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.post-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.post-card:hover .post-card-image {
  transform: scale(1.03);
}
.post-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-card-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--p5);
  text-decoration: none;
  margin-bottom: 10px;
  display: block;
}
.post-card-tag:hover {
  color: var(--p6);
}
.post-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
  flex: 1;
}
.post-card-title a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}
.post-card-title a:hover {
  color: var(--p6);
}
.post-card-excerpt {
  font-size: 0.83rem;
  color: var(--ash);
  line-height: 1.65;
  margin-bottom: 16px;
}
.post-card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--ghost);
  margin-top: auto;
}
.post-card-sep {
  opacity: 0.4;
}
.post-card-locked {
  font-size: 0.7rem;
}
.post-card--featured {
  border-color: rgba(153, 102, 217, 0.25);
}

/* ── Post / Page Layout ─────────────────────────────────────── */
.post-layout,
.page-layout {
  max-width: 780px;
  margin: 0 auto;
  /* padding: 0 0 80px;  Removed padding at bottom of article - too big from member signup */
}
.post-header {
  background: var(--ink);
  padding: 60px 64px 0px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.post-header-inner {
  max-width: 680px;
}
.page-header {
  /* padding-bottom: 40px;  */
  padding-bottom: none;
}
.post-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
}
.breadcrumb-link {
  color: var(--ghost);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb-link:hover {
  color: var(--p5);
}
.breadcrumb-sep {
  color: var(--ink-muted);
}
.breadcrumb-tag {
  color: var(--p4);
}
.breadcrumb-current {
  color: var(--ash);
}
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.post-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  background: rgba(153, 102, 217, 0.12);
  color: var(--p5);
  text-decoration: none;
  border: 1px solid rgba(153, 102, 217, 0.2);
  transition:
    background 0.2s,
    color 0.2s;
}
.post-tag:hover {
  background: rgba(153, 102, 217, 0.22);
  color: var(--p6);
}
.post-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.post-excerpt {
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ash);
  /* margin-bottom: 24px;  */
  font-style: italic;
}
.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.67rem;
  color: var(--ghost);
  letter-spacing: 0.05em;
}
.meta-sep {
  opacity: 0.4;
}
.post-author-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.post-author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(153, 102, 217, 0.3);
}
.post-author-name {
  color: var(--p5);
  text-decoration: none;
  font-weight: 400;
}
.post-author-name:hover {
  color: var(--p6);
}

.post-feature-image {
  margin: 0;
  background: var(--ink-soft);
}
.post-feature-image img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}
.post-feature-image figcaption {
  padding: 10px 64px;
  font-size: 0.75rem;
  color: var(--ghost);
  font-style: italic;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
/* Make the Link on the caption readable */
.post-feature-image figcaption a {
  color: var(--p5);
  text-decoration: underline;
  text-decoration-color: rgba(171, 131, 222, 0.4);
  text-underline-offset: 3px;
  transition: color 0.2s;
}

/* ── Post Content (gh-content) ──────────────────────────────── */
.post-content {
  padding: 56px 64px;
}
.page-content {
  padding: 48px 64px;
}
.gh-content {
  color: var(--smoke);
  font-size: 1.05rem;
  line-height: 1.85;
}
.gh-content h2 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: #fff;
  /* margin: 2.2em 0 0.7em;  */
  margin: 0 0 0.7em;
  letter-spacing: -0.02em;
}
.gh-content h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  margin: 1.8em 0 0.6em;
}
.gh-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--smoke);
  margin: 1.5em 0 0.5em;
}
.gh-content p {
  margin-bottom: 1.5em;
}
.gh-content a {
  color: var(--p5);
  text-decoration: underline;
  text-decoration-color: rgba(171, 131, 222, 0.4);
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.gh-content a:hover {
  color: var(--p6);
}
.gh-content strong {
  color: #fff;
  font-weight: 600;
}
.gh-content em {
  font-style: italic;
  /* color: #fff;
  color: var(--acc-blue);  */
}
.gh-content a em {
  font-style: italic;
  color: var(--p5);
  text-decoration: underline;
  text-decoration-color: rgba(171, 131, 222, 0.4);
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.gh-content a:hover em {
  color: var(--p6);
}
.gh-content blockquote {
  color: var(--p3);
  border-left: 3px solid var(--p3);
  padding: 16px 24px;
  margin: 2em 0;
  background: rgba(153, 102, 217, 0.06);
  border-radius: 0 6px 6px 0;
}
.gh-content blockquote em {
  color: var(--p3);
  font-style: italic;
}
.gh-content blockquote p {
  color: var(--p3);
  font-style: italic;
  font-size: 1.1rem;
  margin: 0;
}
.gh-content ul,
.gh-content ol {
  padding-left: 1.5em;
  margin-bottom: 1.5em;
}
.gh-content li {
  margin-bottom: 0.5em;
  line-height: 1.7;
}
.gh-content ul li::marker {
  color: var(--p4);
}
.gh-content ol li::marker {
  color: var(--p4);
  font-family: var(--font-mono);
  font-size: 0.85em;
}
.gh-content hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 3em 0;
}
.gh-content pre {
  background: var(--ink-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 24px;
  overflow-x: auto;
  margin-bottom: 1.5em;
}
.gh-content code {
  font-family: var(--font-mono);
  font-size: 0.88em;
}
.gh-content pre code {
  color: var(--p6);
  font-size: 0.85rem;
  line-height: 1.7;
}
.gh-content :not(pre) > code {
  background: rgba(153, 102, 217, 0.15);
  color: var(--p5);
  padding: 2px 6px;
  border-radius: 3px;
}
.gh-content img {
  max-width: 100%;
  border-radius: 8px;
  margin: 1em 0;
}
.gh-content figure {
  margin: 2em 0;
}
.gh-content figcaption {
  text-align: center;
  font-size: 0.8rem;
  color: var(--ghost);
  margin-top: 8px;
  font-style: italic;
}
.gh-content .kg-callout-card {
  border-radius: 8px;
  padding: 20px 24px;
  margin: 1.5em 0;
  background: rgba(153, 102, 217, 0.1);
  border: 1px solid rgba(153, 102, 217, 0.2);
}
.gh-content .kg-callout-card.kg-callout-card-accent a {
  color: var(--p5);
  text-decoration: underline;
  text-decoration-color: rgba(171, 131, 222, 0.4);
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.gh-content .kg-callout-card a:hover {
  color: var(--p6);
}
.gh-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5em;
  font-size: 0.9rem;
}
.gh-content th {
  background: rgba(153, 102, 217, 0.12);
  color: var(--p6);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(153, 102, 217, 0.2);
}
.gh-content td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--ash);
}
.gh-content tr:last-child td {
  border-bottom: none;
}


/* ── My custom changes ──────────────────────────────────────── */
.kg-btn {
  margin: 6px
}

/* The following -width definitions are required to remove error messages 
     See {{@page)) for additional impact.
*/
.kg-width-wide {
  position: relative;
  width: 85vw;
  min-width: 100%;
  margin: auto calc(50% - 50vw);
  transform: translateX(calc(50vw - 50%));
}

.kg-width-full {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.kg-width-wide img {
  max-width: 85vw;
}

.kg-width-full img {
  max-width: 100vw;
}

summary::marker {
  color: var(--p1);
}

.arrow {
    font-size: 1.5em;      /* 150% of surrounding text */
    vertical-align: middle;
    line-height: 1;
}

/* ── Share ──────────────────────────────────────────────────── */
.post-share {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 28px 64px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.share-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ghost);
  margin-right: 4px;
}
.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--ash);
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.share-btn:hover {
  background: rgba(153, 102, 217, 0.15);
  color: var(--p5);
  border-color: rgba(153, 102, 217, 0.3);
}

/* ── Tags footer ────────────────────────────────────────────── */
.post-tags-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 24px 64px;
}
.tags-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ghost);
}

/* ── Author bio ─────────────────────────────────────────────── */
.post-author-bio {
  display: flex;
  gap: 20px;
  padding: 32px 64px;
  background: rgba(153, 102, 217, 0.05);
  border-top: 1px solid rgba(153, 102, 217, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.author-bio-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(153, 102, 217, 0.3);
}
.author-bio-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.author-bio-text {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--ash);
  margin-bottom: 8px;
}
.author-bio-link {
  font-size: 0.8rem;
  color: var(--p5);
  text-decoration: none;
}
.author-bio-link:hover {
  color: var(--p6);
}

/* ── Comments ───────────────────────────────────────────────── */
.post-comments {
  padding: 40px 64px;
}

/* ── Related Posts ──────────────────────────────────────────── */
.related-posts {
  padding: 48px 64px 64px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.related-posts-header {
  margin-bottom: 32px;
}
.related-posts-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
}
.related-posts-title em {
  font-style: italic;
  color: var(--p5);
}
.post-grid--related {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* ── Paywall ────────────────────────────────────────────────── */
.paywall {
  padding: 0 64px 64px;
}
.paywall-inner {
  background: linear-gradient(
    135deg,
    rgba(137, 78, 211, 0.1),
    rgba(153, 102, 217, 0.05)
  );
  border: 1px solid rgba(153, 102, 217, 0.25);
  border-radius: 12px;
  padding: 56px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.paywall-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--p3), transparent);
}
.paywall-gem {
  font-size: 2rem;
  color: var(--p5);
  margin-bottom: 20px;
}
.paywall-title {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}
.paywall-desc {
  font-size: 1rem;
  color: var(--ash);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto 32px;
}
.paywall-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.paywall-subscribe {
  width: 100%;
  max-width: 280px;
}
.paywall-signin {
  font-size: 0.82rem;
  color: var(--ghost);
  text-decoration: none;
  transition: color 0.2s;
}
.paywall-signin:hover {
  color: var(--p5);
}

/* ── Archive Layout ─────────────────────────────────────────── */
.archive-layout {
  min-height: 100vh;
}
.archive-header {
  background: var(--ink);
  padding: 60px 64px 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.archive-header-inner {
  max-width: 600px;
}
.archive-tag-image img,
.author-profile-image img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(153, 102, 217, 0.3);
  margin-bottom: 16px;
}
.archive-tag-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--p4);
  margin-bottom: 8px;
}
.archive-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 16px;
}
.archive-desc {
  font-size: 1rem;
  color: var(--ash);
  line-height: 1.7;
  margin-bottom: 16px;
}
.archive-count {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ghost);
  letter-spacing: 0.1em;
}
.author-social {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.author-social-link {
  font-size: 0.82rem;
  color: var(--p5);
  text-decoration: none;
}
.author-social-link:hover {
  color: var(--p6);
}
.author-location {
  font-size: 0.8rem;
  color: var(--ghost);
}
.archive-posts {
  padding: 48px 64px 80px;
}
.post-grid--archive {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* ── Pagination ─────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.pagination-btn {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--p5);
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid rgba(153, 102, 217, 0.3);
  border-radius: 5px;
  transition:
    background 0.2s,
    color 0.2s;
}
.pagination-btn:hover {
  background: rgba(153, 102, 217, 0.12);
  color: #fff;
}
.pagination-info {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ghost);
  letter-spacing: 0.1em;
}

/* ── Error Page ─────────────────────────────────────────────── */
.error-layout {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
}
.error-inner {
  text-align: center;
  max-width: 480px;
}
.error-code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 12vw, 9rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--p3), var(--p6));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.error-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}
.error-desc {
  font-size: 0.95rem;
  color: var(--ash);
  line-height: 1.7;
  margin-bottom: 36px;
}
.error-home-btn {
  display: inline-block;
  text-decoration: none;
}

/* ── Footer ─────────────────────────────────────────────────── */
.cover-footer {
  padding: 25px 64px;
  text-align: center;
  background: var(--ink-mid);
  border-top: 1px solid rgba(137, 78, 211, 0.65);
}
.footer-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}
/* 2026-07-06 - was overriding the bar
.footer-rule span:not(.rule-gem) {
  width: 48px;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}
*/
.footer-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ash);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 20px;
  /* margin-bottom: 16px;  */
  border-top: 1px solid rgba(137, 78, 211, 0.65);
}
.footer-nav-link {
  font-size: 0.78rem;
  color: var(--ghost);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-nav-link:hover {
  color: var(--p5);
  background: rgba(153, 102, 217, 0.12);
  color: #fff;
  transform: translateX(3px);
}
.footer-link.active {
  background: rgba(153, 102, 217, 0.2);
  color: var(--p6);
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--ghost);
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}
.footer-social a {
  font-size: 0.75rem;
  color: var(--p4);
  text-decoration: none;
}
.footer-social a:hover {
  color: var(--p5);
  background: rgba(153, 102, 217, 0.12);
  /*transform: translateX(3px);   ??? Doesn't seem to work - background changes... */
}

/* ── Mobile hamburger ───────────────────────────────────────── */
@media (max-width: 768px) {
  body {
    overflow: auto;
  }
  .side-panel {
    display: none;
  }
  .main-cover {
    margin-left: 0;
    width: 100%;
    height: auto;
    overflow-y: visible;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 900;
    width: 44px;
    height: 44px;
    background: rgba(20, 18, 31, 0.85);
    border: 1px solid rgba(153, 102, 217, 0.3);
    border-radius: 8px;
    cursor: pointer;
    backdrop-filter: blur(12px);
    transition:
      background 0.2s,
      border-color 0.2s;
    padding: 0;
  }
  .hamburger:hover {
    background: rgba(137, 78, 211, 0.2);
    border-color: var(--p3);
  }
  .hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--p5);
    border-radius: 1px;
    transition:
      transform 0.3s var(--ease),
      opacity 0.3s;
    transform-origin: center;
  }
  .hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .mobile-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 90vw);
    height: 100vh;
    background: var(--ink-mid);
    border-left: 1px solid rgba(153, 102, 217, 0.2);
    z-index: 800;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    overflow-y: auto;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
  }
  .mobile-nav.open {
    transform: translateX(0);
  }
  .mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
  }
  .mobile-nav-close {
    background: none;
    border: none;
    color: var(--ghost);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.2s;
  }
  .mobile-nav ul {
    list-style: none;
    flex: 1;
    padding: 16px 0;
  }
  .mobile-nav ul li a {
    display: block;
    padding: 12px 24px;
    color: var(--ash);
    text-decoration: none;
    font-size: 0.95rem;
    transition:
      background 0.2s,
      color 0.2s;
  }
  .mobile-nav ul li a:hover {
    background: rgba(153, 102, 217, 0.1);
    color: #fff;
  }
  .mobile-nav-actions {
    padding: 16px 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
  }

  .cover-hero {
    padding: 80px 28px 64px;
    min-height: 100svh;
  }
  .cover-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .section-inner {
    padding: 64px 28px 56px;
  }
  .section-deco {
    display: none;
  }
  .posts-section-inner {
    padding: 64px 28px;
  }

  .post-header,
  .archive-header {
    padding: 64px 24px 36px;
  }
  .post-feature-image figcaption {
    padding: 10px 24px;
  }
  .post-content,
  .page-content {
    padding: 36px 24px;
  }
  .post-share,
  .post-tags-footer,
  .post-author-bio,
  .post-comments,
  .related-posts {
    padding-left: 24px;
    padding-right: 24px;
  }
  .paywall {
    padding: 0 24px 48px;
  }
  .paywall-inner {
    padding: 40px 28px;
  }
  .archive-posts {
    padding: 36px 24px 60px;
  }
  .cover-footer {
    padding: 48px 24px;
  }
  .post-layout,
  .page-layout {
    max-width: 100%;
  }
}

@media (min-width: 769px) and (max-width: 1100px) {
  :root {
    --panel-w: 28%;
  }
  .cover-hero,
  .section-inner,
  .posts-section-inner {
    padding-left: 40px;
    padding-right: 40px;
  }
  .post-header,
  .archive-header,
  .post-content,
  .page-content,
  .post-share,
  .post-tags-footer,
  .post-author-bio,
  .post-comments,
  .related-posts,
  .archive-posts,
  .paywall {
    padding-left: 40px;
    padding-right: 40px;
  }
}

@media (min-width: 1600px) {
  .cover-hero {
    padding: 100px 100px 100px 80px;
  }
  .section-inner {
    padding: 120px 100px;
  }
}
