/* GHOSTPAPER BLOG — Article Prose Styles
   Tactical Brutalism. System fonts only. Zero external deps. */

/* Blog pages need sticky sidebars without creating a scroll container */
html, body { overflow-x: clip; }

.blog-prose { color: #adaaaa; font-size: 0.875rem; line-height: 1.75; overflow-wrap: break-word; word-break: break-word; }
.blog-prose p { margin-bottom: 1.5rem; }
.blog-prose strong { color: #fff; font-weight: 700; }
.blog-prose img { max-width: 100%; margin: 1.5rem 0; }

/* Headings — h2=1rem(16px) white, h3=0.75rem(12px) cyan */
.blog-prose h2 { font-family: 'SF Mono',SFMono-Regular,Menlo,Consolas,monospace; text-transform: uppercase; font-size: 1rem; font-weight: 700; color: #fff; margin: 3rem 0 1rem; }
.blog-prose h3 { font-family: 'SF Mono',SFMono-Regular,Menlo,Consolas,monospace; text-transform: uppercase; font-size: 0.75rem; font-weight: 700; color: #15ffd1; margin: 2rem 0 0.75rem; }
.blog-prose h4 { font-family: 'SF Mono',SFMono-Regular,Menlo,Consolas,monospace; text-transform: uppercase; font-size: 0.75rem; font-weight: 700; color: #15ffd1; margin: 1.5rem 0 0.5rem; }

/* Links */
.blog-prose a { color: #15ffd1; text-decoration: none; }

/* Blockquote — left accent bar */
.blog-prose blockquote { border-left: 2px solid #15ffd1; background: #1a1919; padding: 1rem 1.25rem; margin: 1.5rem 0; }
.blog-prose blockquote p { margin: 0; }

/* Lists — cyan > prefix (matches join page pattern) */
.blog-prose ul { list-style: none; padding: 0; margin-bottom: 1.5rem; }
.blog-prose ul li { padding: 0.375rem 0 0.375rem 1.25rem; margin-bottom: 0.25rem; position: relative; }
.blog-prose ul li::before { content: '>'; position: absolute; left: 0; color: #15ffd1; font-family: 'SF Mono',SFMono-Regular,Menlo,Consolas,monospace; font-weight: 700; font-size: 0.875rem; }
.blog-prose ol { list-style: none; padding: 0; margin-bottom: 1.5rem; counter-reset: ol-counter; }
.blog-prose ol li { counter-increment: ol-counter; padding: 0.375rem 0 0.375rem 2.5rem; margin-bottom: 0.25rem; position: relative; }
.blog-prose ol li::before { content: counter(ol-counter, decimal-leading-zero); position: absolute; left: 0; color: #15ffd1; font-family: 'SF Mono',SFMono-Regular,Menlo,Consolas,monospace; font-size: 0.75rem; font-weight: 700; }

/* Code */
.blog-prose code { font-family: 'SF Mono',SFMono-Regular,Menlo,Consolas,monospace; background: #1a1919; color: #15ffd1; padding: 0.125rem 0.375rem; font-size: 0.85em; }
.blog-prose pre { background: #1a1919; padding: 1.25rem; margin: 1.5rem 0; overflow-x: auto; }
.blog-prose pre code { background: none; padding: 0; color: #adaaaa; font-size: 0.8125rem; line-height: 1.6; }

/* Table — horizontal scroll on mobile, thin scrollbar matching main site */
.blog-prose .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.5rem 0; }
.blog-prose .table-wrap::-webkit-scrollbar { height: 3px; }
.blog-prose .table-wrap::-webkit-scrollbar-track { background: transparent; }
.blog-prose .table-wrap::-webkit-scrollbar-thumb { background: #494847; }
.blog-prose .table-wrap table { margin: 0; min-width: 28rem; }
.blog-prose table { width: 100%; margin: 1.5rem 0; border-collapse: collapse; }
.blog-prose th { font-family: 'SF Mono',SFMono-Regular,Menlo,Consolas,monospace; text-transform: uppercase; font-size: 0.75rem; font-weight: 700; color: #15ffd1; text-align: left; padding: 0.75rem 1rem 0.75rem 0; white-space: nowrap; }
.blog-prose td { font-size: 0.875rem; padding: 0.75rem 1rem 0.75rem 0; color: #adaaaa; line-height: 1.5; }
.blog-prose thead tr { border-bottom: 1px solid #494847; }
.blog-prose tr + tr td { border-top: 1px solid rgba(73,72,71,0.2); }

/* Horizontal Rule */
.blog-prose hr { border: none; height: 1px; background: rgba(73,72,71,0.3); margin: 3.5rem 0; }

/* Article layout */
:root {
  --blog-mobile-fixed-cta-offset: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  --blog-mobile-fixed-cta-clearance: calc(var(--blog-mobile-fixed-cta-offset) + 5rem);
}

.blog-sidebar-shell { margin-top: 1.5rem; }
.blog-sidebar-trust { margin-bottom: 0.75rem; }
.blog-main { padding-bottom: 1.5rem; }
.blog-footer { padding-bottom: var(--blog-mobile-fixed-cta-clearance); }

.blog-cta-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  width: 100%;
  padding: 0.9rem 1.75rem;
  background: #15ffd1;
  color: #002b24;
  border: none;
  text-align: center;
  text-decoration: none;
  font-family: 'SF Mono',SFMono-Regular,Menlo,Consolas,monospace;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(21, 255, 209, 0.12);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  transition: background 0.12s ease, box-shadow 0.12s ease, transform 0.06s ease;
}

.blog-cta-main { line-height: 1.3; letter-spacing: 0.06em; }

.blog-cta-sub {
  font-size: 0.6875rem;
  font-weight: 500;
  color: #00503f;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.blog-cta-link:hover {
  background: #00f9cc;
  box-shadow: 0 0 28px rgba(21, 255, 209, 0.2);
}

.blog-cta-link:focus-visible {
  outline: 2px solid #15ffd1;
  outline-offset: 2px;
}

.blog-sidebar-cta { display: none; transition: transform 0.07s ease; }
.blog-sidebar-cta:active {
  transform: scale(0.97);
  background: #00e0b5;
}

@media (min-width: 1024px) {
  .blog-article-grid { align-items: start; }
  .blog-sidebar-shell {
    position: sticky;
    top: 9.5rem;
    align-self: start;
    margin-top: 9.5rem;
  }

  .blog-main { padding-bottom: 4rem; }
  .blog-footer { padding-bottom: 1.5rem; }
  .blog-sidebar-trust { margin-bottom: 2rem; }
  .blog-sidebar-cta { display: flex; }
}

/* Blog List Cards */
.blog-card { display: block; padding: 1.75rem 0; text-decoration: none; color: inherit; }
.blog-card + .blog-card { border-top: 1px solid rgba(73,72,71,0.2); }
.blog-card:first-child { padding-top: 0; }
.blog-card:hover .blog-card-title { color: #15ffd1; }
.blog-card-title { font-family: 'SF Mono',SFMono-Regular,Menlo,Consolas,monospace; font-size: 0.875rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; transition: color 0.15s; }
.blog-card-desc { color: #adaaaa; font-size: 0.875rem; line-height: 1.6; margin-bottom: 0.5rem; }
.blog-card-date { font-family: 'SF Mono',SFMono-Regular,Menlo,Consolas,monospace; font-size: 0.6875rem; color: rgba(173,170,170,0.8); }

.blog-heading-block {
  margin-bottom: 2rem;
}

.blog-heading-parent {
  font-family: 'SF Mono',SFMono-Regular,Menlo,Consolas,monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: #15ffd1;
  text-decoration: none;
  transition: color 0.15s ease;
}

.blog-heading-parent:hover {
  color: #00f9cc;
}

.blog-heading-title {
  margin-top: 0.75rem;
  font-family: 'SF Mono',SFMono-Regular,Menlo,Consolas,monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.blog-topic-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.blog-topic-link {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid rgba(73,72,71,0.35);
  color: #adaaaa;
  text-decoration: none;
  font-family: 'SF Mono',SFMono-Regular,Menlo,Consolas,monospace;
  font-size: 0.75rem;
  line-height: 1.2;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.blog-topic-link:hover {
  border-color: #15ffd1;
  color: #15ffd1;
}

.blog-topic-link:focus-visible {
  outline: 2px solid #15ffd1;
  outline-offset: 2px;
}

.blog-topic-link.is-active {
  border-color: #15ffd1;
  background: rgba(21,255,209,0.08);
  color: #15ffd1;
}

.blog-topic-count {
  color: rgba(173,170,170,0.85);
  font-size: 0.6875rem;
}

.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(73,72,71,0.2);
}

.blog-pagination-pages {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex: 1;
}

.blog-pagination-link {
  min-width: 2.5rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid rgba(73,72,71,0.35);
  color: #adaaaa;
  text-decoration: none;
  text-align: center;
  font-family: 'SF Mono',SFMono-Regular,Menlo,Consolas,monospace;
  font-size: 0.75rem;
  line-height: 1.2;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.blog-pagination-link:hover {
  border-color: #15ffd1;
  color: #15ffd1;
}

.blog-pagination-link:focus-visible {
  outline: 2px solid #15ffd1;
  outline-offset: 2px;
}

.blog-pagination-link.is-current {
  border-color: #15ffd1;
  background: #15ffd1;
  color: #002b24;
}

.blog-pagination-link.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.blog-pagination-arrow {
  min-width: 4.5rem;
}

.blog-pagination-desktop {
  display: none;
}

/* Tailwind classes missing from dist.css (blog-only, not in main site scan) */
.blog-mt-16 { margin-top: 3rem; }
.blog-pt-8 { padding-top: 2rem; }
.blog-pb-6 { padding-bottom: 1.5rem; }
@media (min-width: 768px) {
  .blog-h1 { font-size: 1.875rem; line-height: 2.25rem; }
  .blog-p-8 { padding: 2rem; }
  .blog-heading-title {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }
  .blog-pagination {
    gap: 1rem;
  }
  .blog-pagination-link {
    min-width: 2.75rem;
  }
  .blog-pagination-desktop {
    display: inline-flex;
  }
}

/* Mobile uses a fixed bottom CTA; desktop uses the inline sidebar CTA. */
.blog-mobile-fixed-cta {
  position: fixed;
  left: 1.5rem;
  right: 1.5rem;
  bottom: var(--blog-mobile-fixed-cta-offset);
  z-index: 40;
  opacity: 0;
  transform: translateY(0.5rem);
  pointer-events: none;
  transition: opacity 0.18s ease-out, transform 0.18s ease-out;
}

.blog-mobile-fixed-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.blog-mobile-fixed-cta__button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  filter: drop-shadow(0 0 24px rgba(21,255,209,0.15));
  transition: background 0.12s ease, box-shadow 0.12s ease, transform 0.06s ease;
}

.blog-mobile-fixed-cta__button:active {
  transform: scale(0.94);
  background: #00b898;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.25), 0 0 6px rgba(21, 255, 209, 0.04);
}

@media (min-width: 1024px) {
  .blog-mobile-fixed-cta { display: none; }
}
