/* ═══════════════════════════════════════════════════════════════
   kroeker.cloud — Corporate Identity Ghost Theme
   Aurora design system. Inter + JetBrains Mono.
   Dark-mode-native. Indigo-violet accent.
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Backgrounds */
  --bg-base: #060608;
  --bg-deep: #040406;
  --bg-panel: rgba(255,255,255,0.025);
  --bg-elevated: rgba(255,255,255,0.045);
  --bg-hover: rgba(255,255,255,0.06);

  /* Text */
  --text-primary: #f5f5f7;
  --text-secondary: #a1a1aa;
  --text-tertiary: #71717a;
  --text-quaternary: #52525b;

  /* Accent */
  --accent: #6366f1;
  --accent-bright: #818cf8;
  --accent-violet: #a855f7;
  --accent-glow: rgba(99,102,241,0.35);
  --accent-soft: rgba(99,102,241,0.12);

  /* Status */
  --status-green: #10b981;
  --status-amber: #f59e0b;
  --status-red: #ef4444;

  /* Borders */
  --border-subtle: rgba(255,255,255,0.05);
  --border-standard: rgba(255,255,255,0.08);
  --border-bright: rgba(255,255,255,0.12);

  /* Gradients */
  --grad-accent: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  --grad-text: linear-gradient(135deg, #818cf8 0%, #c084fc 50%, #f472b6 100%);
  --grad-surface: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Radius */
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-full: 9999px;

  /* Transitions */
  --t-fast: 0.15s cubic-bezier(0.4,0,0.2,1);
  --t-base: 0.3s cubic-bezier(0.4,0,0.2,1);
  --t-slow: 0.6s cubic-bezier(0.16,1,0.3,1);
}

/* ── Reset ──────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

a { color: var(--accent-bright); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--text-primary); }

img { max-width: 100%; height: auto; }

/* ── Container ──────────────────────────────────────── */

.kr-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.kr-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Navigation ──────────────────────────────────────── */

.kr-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6,6,8,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--t-base);
}

.kr-nav.scrolled {
  background: rgba(6,6,8,0.95);
  border-bottom-color: var(--border-standard);
}

.kr-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 16px;
}

.kr-nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
  white-space: nowrap;
}

.kr-nav-brand-tld {
  color: var(--text-tertiary);
  font-weight: 400;
}

.kr-nav-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--r-full);
  background: var(--grad-accent);
  box-shadow: 0 0 12px var(--accent-glow);
  flex-shrink: 0;
}

.kr-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.kr-nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--t-fast);
}

.kr-nav-links a:hover {
  color: var(--text-primary);
}

.kr-nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-standard);
  border-radius: var(--r-md);
  padding: 7px 9px;
  cursor: pointer;
  color: var(--text-secondary);
  align-items: center;
  justify-content: center;
}

.kr-nav-toggle:hover { color: var(--text-primary); border-color: var(--accent); }

/* ── Hero ────────────────────────────────────────────── */

.site-head {
  padding: 80px 0 60px;
  background: var(--bg-base);
  position: relative;
  overflow: hidden;
}

.site-head::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center, var(--accent-soft) 0%, transparent 70%);
  pointer-events: none;
}

.site-head-content {
  position: relative;
  text-align: center;
}

.site-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ── Post Feed ───────────────────────────────────────── */

.kr-main {
  flex: 1;
  padding: 40px 0 80px;
}

.post-feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.post-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: all var(--t-base);
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  background: var(--bg-elevated);
  border-color: var(--border-standard);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 0 1px var(--accent-soft);
}

.post-card-image-link {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-deep);
}

.post-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}

.post-card:hover .post-card-image {
  transform: scale(1.05);
}

.post-card-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.post-card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.post-card-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-bright);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: var(--r-full);
}

.post-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.post-card-title a {
  color: var(--text-primary);
}

.post-card-title a:hover {
  color: var(--accent-bright);
}

.post-card-excerpt {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-tertiary);
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
  margin-top: auto;
}

.post-card-author {
  font-weight: 500;
  color: var(--text-secondary);
}

/* ── Post Full ───────────────────────────────────────── */

.post-full-header {
  padding: 60px 0 40px;
  text-align: center;
}

.post-full-tags {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.post-full-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-bright);
  background: var(--accent-soft);
  padding: 6px 14px;
  border-radius: var(--r-full);
}

.post-full-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-width: 800px;
  margin: 0 auto 20px;
}

.post-full-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--text-tertiary);
}

.post-full-author {
  font-weight: 500;
  color: var(--text-secondary);
}

.post-full-image {
  max-width: 1100px;
  margin: 0 auto 40px;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border-standard);
}

.post-full-image img {
  width: 100%;
  display: block;
}

.post-full-content {
  padding: 20px 0 60px;
}

.post-full-body {
  max-width: 720px;
  margin: 0 auto;
}

.post-full-body h1,
.post-full-body h2,
.post-full-body h3,
.post-full-body h4 {
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 2em;
  margin-bottom: 0.6em;
  line-height: 1.3;
}

.post-full-body h1 { font-size: 2rem; }
.post-full-body h2 { font-size: 1.5rem; color: var(--text-primary); }
.post-full-body h3 { font-size: 1.25rem; color: var(--text-primary); }
.post-full-body h4 { font-size: 1rem; color: var(--text-secondary); }

.post-full-body p {
  margin-bottom: 1.5em;
  color: var(--text-secondary);
  line-height: 1.8;
}

.post-full-body a {
  color: var(--accent-bright);
  text-decoration: underline;
  text-decoration-color: var(--accent-soft);
  text-underline-offset: 3px;
}

.post-full-body a:hover {
  text-decoration-color: var(--accent);
}

.post-full-body blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  margin: 1.5em 0;
  font-style: italic;
  color: var(--text-tertiary);
}

.post-full-body pre {
  background: var(--bg-deep);
  border: 1px solid var(--border-standard);
  border-radius: var(--r-lg);
  padding: 20px;
  overflow-x: auto;
  margin: 1.5em 0;
}

.post-full-body code {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

.post-full-body p code,
.post-full-body li code {
  background: var(--bg-elevated);
  padding: 2px 6px;
  border-radius: var(--r-sm);
  color: var(--accent-bright);
}

.post-full-body pre code {
  color: var(--text-primary);
  background: none;
  padding: 0;
}

.post-full-body ul,
.post-full-body ol {
  padding-left: 24px;
  margin-bottom: 1.5em;
  color: var(--text-secondary);
}

.post-full-body li {
  margin-bottom: 0.5em;
}

.post-full-body img {
  border-radius: var(--r-lg);
  margin: 1.5em 0;
}

.post-full-body hr {
  border: none;
  border-top: 1px solid var(--border-standard);
  margin: 2em 0;
}

.post-full-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
}

.post-full-body th,
.post-full-body td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
}

.post-full-body th {
  font-weight: 600;
  color: var(--text-primary);
}

.post-full-body td {
  color: var(--text-secondary);
}

/* ── Share ───────────────────────────────────────────── */

.post-full-share {
  display: flex;
  gap: 12px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border-subtle);
}

.kr-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--border-standard);
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--t-fast);
}

.kr-share-btn:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
  background: var(--accent-soft);
}

/* ── Related ─────────────────────────────────────────── */

.kr-related {
  padding: 40px 0;
  border-top: 1px solid var(--border-subtle);
}

.kr-related-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text-primary);
}

/* ── Pagination ──────────────────────────────────────── */

.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border-subtle);
}

.pagination a,
.pagination span {
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--r-full);
  color: var(--text-secondary);
}

.pagination a:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.pagination .page.current {
  background: var(--accent-soft);
  color: var(--accent-bright);
}

/* ── Tag/Author pages ────────────────────────────────── */

.kr-tag-header,
.kr-author-header {
  text-align: center;
  padding: 60px 0 40px;
}

.kr-tag-title,
.kr-author-name {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.kr-tag-description,
.kr-author-bio {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 8px;
}

.kr-tag-count,
.kr-author-count {
  font-size: 14px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

.kr-author-avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--r-full);
  margin: 0 auto 20px;
  border: 2px solid var(--border-bright);
}

.kr-author-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* ── Page ────────────────────────────────────────────── */

.page-full-header {
  padding: 60px 0 40px;
  text-align: center;
}

.page-full-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ── Footer ──────────────────────────────────────────── */

.kr-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0;
  background: var(--bg-deep);
}

.kr-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.kr-footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
}

.kr-footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.kr-footer-links a {
  font-size: 13px;
  color: var(--text-tertiary);
}

.kr-footer-links a:hover {
  color: var(--text-primary);
}

.kr-footer-copy {
  font-size: 13px;
  color: var(--text-quaternary);
  text-align: center;
}

/* ── Responsive ──────────────────────────────────────── */

@media (max-width: 768px) {
  .kr-nav-toggle { display: inline-flex; }
  .kr-nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-base);
    border-bottom: 1px solid var(--border-standard);
    padding: 16px 20px;
    gap: 12px;
  }
  .kr-nav.menu-open .kr-nav-links { display: flex; }
  .post-feed { grid-template-columns: 1fr; }
  .post-full-body { padding: 0 8px; }
  .site-head { padding: 50px 0 40px; }
}

/* ── Koenig editor width classes ────────────────────── */

.kg-width-wide {
  width: 100%;
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}

.kg-width-full {
  width: 100vw;
  max-width: none;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

.kg-gallery-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 1.5em 0;
}

.kg-gallery-row {
  display: flex;
  gap: 8px;
}

.kg-gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r-md);
}

.kg-bookmark-card,
.kg-bookmark-container {
  display: flex;
  text-decoration: none;
  border: 1px solid var(--border-standard);
  border-radius: var(--r-md);
  overflow: hidden;
  margin: 1.5em 0;
  color: var(--text-secondary);
}

.kg-bookmark-content {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.kg-bookmark-thumbnail {
  width: 160px;
  flex-shrink: 0;
}

.kg-bookmark-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Scrollbar ──────────────────────────────────────── */

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--border-standard); border-radius: var(--r-full); }
::-webkit-scrollbar-thumb:hover { background: var(--border-bright); }

/* ── Selection ──────────────────────────────────────── */

::selection {
  background: var(--accent-soft);
  color: var(--accent-bright);
}


/* ═══════════════════════════════════════════════════════════════
   Design Variants — Editorial (dark amber) & Piano (light ivory/ebony)
   Matching ai.kroeker.cloud corporate identity
   ═══════════════════════════════════════════════════════════════ */

/* ── Editorial (dark amber) ── */
[data-theme="editorial"] {
  --bg-base: #0a0b0d;
  --bg-deep: #040506;
  --bg-panel: #111419;
  --bg-elevated: #161a20;
  --bg-hover: #1b1f26;
  --text-primary: #f3f4f6;
  --text-secondary: #c7ccd4;
  --text-tertiary: #717782;
  --text-quaternary: #40454e;
  --accent: #e0a44a;
  --accent-bright: #f0c060;
  --accent-violet: #d4923a;
  --accent-glow: rgba(224,164,74,0.28);
  --accent-soft: rgba(224,164,74,0.12);
  --border-subtle: #1b1f26;
  --border-standard: #262b34;
  --border-bright: #40454e;
  --grad-accent: linear-gradient(135deg, #e0a44a 0%, #d4923a 100%);
  --grad-text: linear-gradient(135deg, #f0c060 0%, #e0a44a 100%);
  --grad-surface: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
}

[data-theme="editorial"] .kr-nav { background: rgba(10,11,13,0.8); }
[data-theme="editorial"] .kr-nav.scrolled { background: rgba(10,11,13,0.95); }
[data-theme="editorial"] .site-head { background: var(--bg-base); }
[data-theme="editorial"] .site-head::before {
  background: radial-gradient(ellipse at center, var(--accent-soft) 0%, transparent 70%);
}
[data-theme="editorial"] body { background: var(--bg-base); color: var(--text-primary); }
[data-theme="editorial"] ::selection { background: var(--accent-soft); color: var(--accent-bright); }
[data-theme="editorial"] ::-webkit-scrollbar-track { background: var(--bg-deep); }

/* ── Piano (light ivory/ebony) ── */
[data-theme="piano"] {
  --bg-base: #faf8f5;
  --bg-deep: #f3efe9;
  --bg-panel: #ffffff;
  --bg-elevated: #f3efe9;
  --bg-hover: #e5e0d8;
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-tertiary: #7a7a7a;
  --text-quaternary: #b0b0b0;
  --accent: #1a1a1a;
  --accent-bright: #333333;
  --accent-violet: #555555;
  --accent-glow: rgba(26,26,26,0.12);
  --accent-soft: rgba(26,26,26,0.06);
  --border-subtle: #e5e0d8;
  --border-standard: #d5cfc6;
  --border-bright: #b0a89d;
  --grad-accent: linear-gradient(135deg, #1a1a1a 0%, #4a4a4a 100%);
  --grad-text: linear-gradient(135deg, #333333 0%, #1a1a1a 100%);
  --grad-surface: linear-gradient(180deg, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0.01) 100%);
}

[data-theme="piano"] .kr-nav { background: rgba(250,248,245,0.8); }
[data-theme="piano"] .kr-nav.scrolled { background: rgba(250,248,245,0.95); }
[data-theme="piano"] .site-head { background: var(--bg-base); }
[data-theme="piano"] .site-head::before {
  background: radial-gradient(ellipse at center, var(--accent-soft) 0%, transparent 70%);
}
[data-theme="piano"] body { background: var(--bg-base); color: var(--text-primary); }
[data-theme="piano"] .kr-nav-dot { box-shadow: 0 0 8px var(--accent-glow); }
[data-theme="piano"] ::selection { background: var(--accent-soft); color: var(--accent); }
[data-theme="piano"] ::-webkit-scrollbar-track { background: var(--bg-deep); }
[data-theme="piano"] ::-webkit-scrollbar-thumb { background: var(--border-standard); }

/* ── Theme switcher pills ── */
.kr-theme-switch {
  display: flex;
  gap: 4px;
  align-items: center;
  margin-left: 16px;
}

.kr-theme-pill {
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-family: var(--font-sans);
  font-weight: 500;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: all var(--t-fast);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.kr-theme-pill:hover {
  border-color: var(--border-bright);
  color: var(--text-primary);
}

.kr-theme-pill.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

[data-theme="piano"] .kr-theme-pill.active {
  color: #fff;
}

/* Responsive: hide theme switcher on mobile */
@media (max-width: 768px) {
  .kr-theme-switch { display: none; }
}


/* ── Hero CTA Button ────────────────────────────────── */

.kr-btn-primary {
  display: inline-block;
  padding: 12px 28px;
  background: var(--grad-accent);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--r-full);
  border: none;
  transition: all var(--t-fast);
  box-shadow: 0 4px 20px var(--accent-glow);
  text-decoration: none;
}

.kr-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px var(--accent-glow);
  color: #fff;
}

/* ── Ghost Portal / Search overrides ────────────────── */



.gh-search-trigger {
  display: none !important;
}

/* ── Pagination link styling ────────────────────────── */

.pagination .nav-left,
.pagination .nav-right {
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--r-full);
  border: 1px solid var(--border-standard);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--t-fast);
}

.pagination .nav-left:hover,
.pagination .nav-right:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
  background: var(--accent-soft);
}

/* ── Ghost Card markup overrides ────────────────────── */

.kg-card.kg-image-card {
  margin: 1.5em 0;
}

.kg-card.kg-image-card img {
  border-radius: var(--r-lg);
}

.kg-card.kg-callout-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-standard);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  margin: 1.5em 0;
}

.kg-card.kg-callout-card .kg-callout-text {
  color: var(--text-primary);
}

.kg-card.kg-toggle-card .kg-toggle-heading-text {
  color: var(--text-primary);
  font-weight: 600;
}

.kg-card.kg-toggle-card {
  border: 1px solid var(--border-standard);
  border-radius: var(--r-lg);
  padding: 16px 20px;
  margin: 1.5em 0;
}

/* ── Reading progress bar ───────────────────────────── */

.kr-reading-progress {
  position: fixed;
  top: 60px;
  left: 0;
  height: 2px;
  background: var(--grad-accent);
  z-index: 99;
  transition: width 0.1s linear;
}

/* ── Post body image captions ────────────────────────── */

.post-full-body figcaption {
  text-align: center;
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 8px;
  font-style: italic;
}

/* ── Ghost portal trigger styling ────────────────────── */



/* ── Mobile responsive fixes ────────────────────────── */

@media (max-width: 768px) {
  .kr-hero-actions {
    margin-top: 8px;
  }
  .kr-btn-primary {
    padding: 10px 20px;
    font-size: 14px;
  }
  .post-full-header {
    padding: 40px 0 30px;
  }
  .post-full-content {
    padding: 10px 0 40px;
  }
  .kr-related {
    padding: 30px 0;
  }
}

/* Fix excerpt display - clamp to 2 lines */
.post-card-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Fix post-card image aspect ratio */
.post-card-image-link {
  aspect-ratio: 16/9;
}


/* Ghost Portal trigger - styled to match theme */
.gh-portal-triggerbtn-wrapper {
  display: block !important;
}
.gh-portal-triggerbtn-iframe {
  z-index: 1000;
}
