/* ═══════════════════════════════════════════════════════════════════
   ReasonOS Ghost Theme v2 — Dark Terminal Aesthetic
   Matches the landing page CTA / footer dark design system
   ═══════════════════════════════════════════════════════════════════ */

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

:root {
  /* Dark palette — matches the editor / landing page dark sections */
  --ros-bg: #0d1117;
  --ros-bg-raised: #161b22;
  --ros-bg-surface: #1c2128;
  --ros-bg-overlay: #21262d;
  --ros-border: #30363d;
  --ros-border-light: #21262d;

  /* Text */
  --ros-text-primary: #e6edf3;
  --ros-text-secondary: #8b949e;
  --ros-text-tertiary: #484f58;
  --ros-text-link: #58a6ff;

  /* Accent — green-500 from landing page */
  --ros-green: #10b981;
  --ros-green-hover: #34d399;

  /* Terminal dots */
  --ros-dot-red: #ff5f56;
  --ros-dot-yellow: #ffbd2e;
  --ros-dot-green: #27c93f;

  /* Syntax accent (for tags) */
  --ros-cyan: #79c0ff;
  --ros-purple: #d2a8ff;

  /* Fonts */
  --ros-heading: 'Helvetica Neue', Arial, sans-serif;
  --ros-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ros-mono: 'Courier New', monospace;

  /* Ghost custom font support */
  --ghost-font-family: var(--ros-body);
  --ghost-heading-font-family: var(--ros-heading);

  --ros-container: 1296px;
  --ros-container-narrow: 768px;
  --ros-radius: 8px;
  --ros-transition: 0.15s ease;
}

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

body {
  font-family: var(--ros-body);
  color: var(--ros-text-primary);
  background-color: var(--ros-bg);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ros-heading);
  color: var(--ros-text-primary);
}

/* ── Containers ──────────────────────────────────────────────────── */
.ros-container {
  width: 100%;
  max-width: var(--ros-container);
  margin: 0 auto;
  padding: 0 16px;
}

.ros-container-narrow {
  max-width: var(--ros-container-narrow);
}

.ros-main {
  min-height: 60vh;
}


/* ═══════════════════════════════════════════════════════════════════
   TERMINAL TITLEBAR — shared component for cards
   3 dots (red/yellow/green) + filename
   ═══════════════════════════════════════════════════════════════════ */
.ros-term-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background-color: var(--ros-bg-surface);
  border-bottom: 1px solid var(--ros-border-light);
  user-select: none;
}

.ros-term-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.ros-term-dot-red    { background-color: var(--ros-dot-red); }
.ros-term-dot-yellow { background-color: var(--ros-dot-yellow); }
.ros-term-dot-green  { background-color: var(--ros-dot-green); }

.ros-term-title {
  margin-left: 8px;
  font-family: var(--ros-mono);
  font-size: 0.75rem;
  color: var(--ros-text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* ═══════════════════════════════════════════════════════════════════
   NAVIGATION — dark nav matching the landing page
   ═══════════════════════════════════════════════════════════════════ */
.ros-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--ros-bg);
  border-bottom: 1px solid var(--ros-border);
}

.ros-nav-inner {
  max-width: var(--ros-container);
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo — Ghost admin managed */
.ros-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ros-nav-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: contain;
}

.ros-nav-logo-text {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ros-text-primary);
  font-family: var(--ros-body);
}

/* Desktop links */
.ros-nav-links {
  display: none;
  align-items: center;
  gap: 28px;
}

.ros-nav-link {
  color: var(--ros-text-secondary);
  transition: color var(--ros-transition);
  font-size: 0.875rem;
}

.ros-nav-link:hover,
.ros-nav-link.active {
  color: var(--ros-text-primary);
}

/* CTA buttons */
.ros-nav-actions {
  display: none;
  align-items: center;
  gap: 12px;
}

.ros-nav-btn-text {
  color: var(--ros-text-secondary);
  font-weight: 500;
  padding: 4px 8px;
  transition: color var(--ros-transition);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
}

.ros-nav-btn-text:hover {
  color: var(--ros-text-primary);
}

.ros-nav-btn-primary {
  background-color: #fff;
  color: #000;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.8125rem;
  transition: background-color var(--ros-transition);
}

.ros-nav-btn-primary:hover {
  background-color: #e5e7eb;
}

/* Hamburger */
.ros-nav-mobile-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--ros-text-secondary);
}

/* Mobile menu */
.ros-mobile-menu {
  display: none;
  flex-direction: column;
  background-color: var(--ros-bg-raised);
  border-top: 1px solid var(--ros-border);
  padding: 8px 16px;
}

.ros-mobile-menu.open {
  display: flex;
}

.ros-mobile-link {
  padding: 10px 12px;
  color: var(--ros-text-secondary);
  font-size: 0.9375rem;
}

.ros-mobile-link:hover,
.ros-mobile-link.active {
  color: var(--ros-text-primary);
}

.ros-mobile-actions {
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Search button in nav */
.ros-nav-search-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--ros-bg-surface);
  border: 1px solid var(--ros-border);
  border-radius: 6px;
  padding: 6px 12px;
  color: var(--ros-text-tertiary);
  font-family: var(--ros-body);
  font-size: 0.8125rem;
  cursor: pointer;
  transition: border-color var(--ros-transition), color var(--ros-transition);
}

.ros-nav-search-btn:hover {
  border-color: var(--ros-text-tertiary);
  color: var(--ros-text-secondary);
}

.ros-nav-search-btn kbd {
  font-family: var(--ros-mono);
  font-size: 0.625rem;
  padding: 1px 5px;
  border: 1px solid var(--ros-border);
  border-radius: 3px;
  background-color: var(--ros-bg-overlay);
  color: var(--ros-text-tertiary);
}

/* Mobile search button */
.ros-nav-mobile-search {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--ros-text-secondary);
}

@media (min-width: 1024px) {
  .ros-nav-links { display: flex; }
  .ros-nav-actions { display: flex; }
  .ros-nav-mobile-btn { display: none; }
  .ros-nav-mobile-search { display: none; }
}


/* ═══════════════════════════════════════════════════════════════════
   BLOG HERO — dark, matching the landing page
   Customizable from Ghost admin > Design > Custom
   ═══════════════════════════════════════════════════════════════════ */
.ros-blog-hero {
  position: relative;
  background-color: var(--ros-bg);
  padding: 80px 16px 64px;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid var(--ros-border);
}

/* Subtle grid lines */
.ros-blog-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ros-border), transparent);
}

.ros-blog-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ros-border), transparent);
}

.ros-blog-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.ros-blog-hero-title {
  font-family: var(--ros-heading);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 600;
  color: var(--ros-text-primary);
  line-height: 1.1;
  margin-bottom: 16px;
  text-wrap: balance;
}

.ros-blog-hero-desc {
  font-size: 1.125rem;
  color: var(--ros-text-secondary);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 28px;
}

.ros-blog-hero-cta {
  display: inline-block;
  background-color: #fff;
  color: #000;
  padding: 14px 32px;
  border-radius: var(--ros-radius);
  font-weight: 600;
  font-size: 1rem;
  transition: background-color var(--ros-transition);
}

.ros-blog-hero-cta:hover {
  background-color: #e5e7eb;
}


/* ═══════════════════════════════════════════════════════════════════
   FEATURED POST — large terminal card
   ═══════════════════════════════════════════════════════════════════ */
.ros-featured {
  padding: 48px 0;
}

.ros-featured-card {
  background-color: var(--ros-bg-raised);
  border: 1px solid var(--ros-border);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.ros-featured-card:hover {
  box-shadow: 0 0 0 1px var(--ros-green), 0 8px 32px rgba(16, 185, 129, 0.08);
}

.ros-featured-link {
  display: grid;
  grid-template-columns: 1fr;
}

.ros-featured-image {
  overflow: hidden;
}

.ros-featured-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ros-featured-card:hover .ros-featured-image img {
  transform: scale(1.02);
}

.ros-featured-content {
  padding: 24px;
}

.ros-featured-title {
  font-family: var(--ros-heading);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--ros-text-primary);
  margin-bottom: 12px;
  line-height: 1.25;
}

.ros-featured-excerpt {
  font-size: 1rem;
  color: var(--ros-text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .ros-featured-link {
    grid-template-columns: 1fr 1fr;
  }
}


/* ═══════════════════════════════════════════════════════════════════
   POST FEED — terminal-style card grid
   ═══════════════════════════════════════════════════════════════════ */
.ros-post-feed {
  padding: 24px 0 48px;
}

.ros-post-feed .ros-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .ros-post-feed .ros-container { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .ros-post-feed .ros-container { grid-template-columns: repeat(3, 1fr); }
}

/* Post card — terminal window */
.ros-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--ros-border);
  background-color: var(--ros-bg-raised);
  transition: transform var(--ros-transition), box-shadow var(--ros-transition), border-color var(--ros-transition);
}

.ros-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  border-color: var(--ros-text-tertiary);
}

.ros-card-featured {
  border-color: var(--ros-green);
}

.ros-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ros-card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--ros-border-light);
}

.ros-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ros-card:hover .ros-card-image img {
  transform: scale(1.03);
}

.ros-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Tag — cyan mono */
.ros-card-tag {
  font-family: var(--ros-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ros-cyan);
  margin-bottom: 10px;
}

/* Title */
.ros-card-title {
  font-family: var(--ros-heading);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 8px;
  color: var(--ros-text-primary);
}

/* Excerpt */
.ros-card-excerpt {
  font-size: 0.9375rem;
  color: var(--ros-text-secondary);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}

/* Meta */
.ros-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--ros-text-tertiary);
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid var(--ros-border-light);
}

.ros-card-author-img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--ros-border);
}

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

.ros-card-date::before,
.ros-card-reading-time::before {
  content: "\00B7";
  margin-right: 8px;
}


/* ═══════════════════════════════════════════════════════════════════
   ARTICLE — single post / page
   ═══════════════════════════════════════════════════════════════════ */
.ros-article-header {
  padding: 64px 16px 32px;
  text-align: center;
}

.ros-article-tag {
  display: inline-block;
  font-family: var(--ros-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ros-cyan);
  margin-bottom: 16px;
}

.ros-article-tag:hover {
  text-decoration: underline;
}

.ros-article-title {
  font-family: var(--ros-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--ros-text-primary);
  text-wrap: balance;
}

.ros-article-excerpt {
  font-family: var(--ros-heading);
  font-size: 1.25rem;
  color: var(--ros-text-secondary);
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto 24px;
}

.ros-article-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--ros-text-tertiary);
  padding-top: 24px;
  border-top: 1px solid var(--ros-border);
}

.ros-article-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ros-article-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ros-article-author-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ros-border);
}

.ros-article-author a {
  font-weight: 500;
  color: var(--ros-text-secondary);
}

.ros-article-author a:hover {
  color: var(--ros-text-primary);
}

.ros-article-meta-right {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ros-mono);
  font-size: 0.8125rem;
}

.ros-article-reading-time::before {
  content: "\00B7";
  margin-right: 12px;
}

/* Feature image */
.ros-article-feature-image {
  max-width: 1200px;
  margin: 0 auto 48px;
  padding: 0 16px;
}

.ros-article-feature-image img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--ros-border);
}

.ros-article-feature-image figcaption {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--ros-text-tertiary);
  margin-top: 8px;
  font-family: var(--ros-mono);
}

/* Article body */
.ros-article-body {
  padding-bottom: 64px;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--ros-text-secondary);
}

.ros-article-body h2 {
  font-family: var(--ros-heading);
  font-size: 1.75rem;
  font-weight: 600;
  margin: 48px 0 16px;
  color: var(--ros-text-primary);
}

.ros-article-body h3 {
  font-family: var(--ros-heading);
  font-size: 1.375rem;
  font-weight: 600;
  margin: 40px 0 12px;
  color: var(--ros-text-primary);
}

.ros-article-body h4 {
  font-family: var(--ros-heading);
  font-size: 1.125rem;
  font-weight: 600;
  margin: 32px 0 8px;
  color: var(--ros-text-primary);
}

.ros-article-body p {
  margin-bottom: 20px;
}

.ros-article-body a {
  color: var(--ros-text-link);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(88, 166, 255, 0.3);
  transition: text-decoration-color var(--ros-transition);
}

.ros-article-body a:hover {
  text-decoration-color: var(--ros-text-link);
}

.ros-article-body strong {
  font-weight: 600;
  color: var(--ros-text-primary);
}

.ros-article-body blockquote {
  border-left: 3px solid var(--ros-green);
  padding: 4px 0 4px 20px;
  margin: 24px 0;
  font-style: italic;
  color: var(--ros-text-secondary);
}

.ros-article-body ul,
.ros-article-body ol {
  margin: 16px 0;
  padding-left: 24px;
}

.ros-article-body li {
  margin-bottom: 8px;
}

.ros-article-body hr {
  border: none;
  border-top: 1px solid var(--ros-border);
  margin: 48px 0;
}

/* Inline code */
.ros-article-body code {
  font-family: var(--ros-mono);
  font-size: 0.875em;
  background-color: var(--ros-bg-overlay);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--ros-cyan);
}

/* Code blocks — matching editor's Tokyo Night theme */
.ros-article-body pre {
  background-color: #1a1b26;
  color: #a9b1d6;
  padding: 20px 24px;
  border-radius: 12px;
  overflow-x: auto;
  margin: 24px 0;
  font-size: 0.875rem;
  line-height: 1.7;
  border: 1px solid var(--ros-border);
}

.ros-article-body pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  color: inherit;
  font-size: inherit;
}

/* Ghost card styles */
.ros-article-body figure {
  margin: 32px 0;
}

.ros-article-body figure img {
  border-radius: var(--ros-radius);
  border: 1px solid var(--ros-border);
}

.ros-article-body figcaption {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--ros-text-tertiary);
  margin-top: 8px;
}

.ros-article-body .kg-width-wide {
  max-width: calc(var(--ros-container-narrow) + 200px);
  margin-left: calc(50% - (var(--ros-container-narrow) + 200px) / 2);
  margin-right: calc(50% - (var(--ros-container-narrow) + 200px) / 2);
}

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

.ros-article-body .kg-width-full img {
  border-radius: 0;
}

/* Ghost bookmark card */
.ros-article-body .kg-bookmark-card {
  border: 1px solid var(--ros-border);
  border-radius: var(--ros-radius);
  overflow: hidden;
  background-color: var(--ros-bg-surface);
}

.ros-article-body .kg-bookmark-container {
  display: flex;
  text-decoration: none;
  color: inherit;
}

.ros-article-body .kg-bookmark-content {
  flex: 1;
  padding: 16px 20px;
}

.ros-article-body .kg-bookmark-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--ros-text-primary);
}

.ros-article-body .kg-bookmark-description {
  font-size: 0.875rem;
  color: var(--ros-text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.ros-article-body .kg-bookmark-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

/* Article footer — tags */
.ros-article-footer {
  padding-bottom: 48px;
}

.ros-article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--ros-border);
}

.ros-article-tag-chip {
  font-family: var(--ros-mono);
  font-size: 0.8125rem;
  background-color: var(--ros-bg-overlay);
  color: var(--ros-text-secondary);
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--ros-border);
  transition: all var(--ros-transition);
}

.ros-article-tag-chip:hover {
  border-color: var(--ros-text-tertiary);
  color: var(--ros-text-primary);
}


/* ═══════════════════════════════════════════════════════════════════
   ARCHIVE — tag + author pages
   ═══════════════════════════════════════════════════════════════════ */
.ros-archive-header {
  padding: 64px 16px;
  text-align: center;
  border-bottom: 1px solid var(--ros-border);
}

.ros-archive-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 2px solid var(--ros-border);
}

.ros-archive-label {
  display: block;
  font-family: var(--ros-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ros-text-tertiary);
  margin-bottom: 8px;
}

.ros-archive-title {
  font-family: var(--ros-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--ros-text-primary);
  margin-bottom: 12px;
}

.ros-archive-description {
  font-family: var(--ros-heading);
  font-size: 1.0625rem;
  color: var(--ros-text-secondary);
  max-width: 560px;
  margin: 0 auto 16px;
}

.ros-archive-count {
  font-family: var(--ros-mono);
  font-size: 0.8125rem;
  color: var(--ros-text-tertiary);
}

.ros-archive-author-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
}

.ros-archive-author-links a {
  font-size: 0.875rem;
  color: var(--ros-text-link);
}

.ros-archive-author-links a:hover {
  text-decoration: underline;
}


/* ═══════════════════════════════════════════════════════════════════
   RELATED POSTS
   ═══════════════════════════════════════════════════════════════════ */
.ros-related {
  padding: 48px 0 64px;
  border-top: 1px solid var(--ros-border);
}

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

.ros-related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .ros-related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .ros-related-grid { grid-template-columns: repeat(3, 1fr); }
}


/* ═══════════════════════════════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════════════════════════════ */
.ros-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 32px 16px 64px;
}

.ros-pagination-btn {
  font-family: var(--ros-mono);
  font-size: 0.875rem;
  color: var(--ros-text-secondary);
  padding: 8px 16px;
  border: 1px solid var(--ros-border);
  border-radius: var(--ros-radius);
  transition: all var(--ros-transition);
}

.ros-pagination-btn:hover {
  border-color: var(--ros-text-tertiary);
  color: var(--ros-text-primary);
}

.ros-pagination-info {
  font-family: var(--ros-mono);
  font-size: 0.8125rem;
  color: var(--ros-text-tertiary);
}


/* ═══════════════════════════════════════════════════════════════════
   ERROR PAGE
   ═══════════════════════════════════════════════════════════════════ */
.ros-error-code {
  font-family: var(--ros-heading);
  font-size: 6rem;
  font-weight: 700;
  color: var(--ros-border);
  line-height: 1;
  margin-bottom: 16px;
}

.ros-error-message {
  font-size: 1.125rem;
  color: var(--ros-text-secondary);
}


/* ═══════════════════════════════════════════════════════════════════
   FOOTER — matches Footer.jsx (already dark)
   ═══════════════════════════════════════════════════════════════════ */
.ros-footer {
  background-color: #000;
  border-top: 1px solid var(--ros-border);
  color: var(--ros-text-primary);
}

.ros-footer-inner {
  max-width: var(--ros-container);
  margin: 0 auto;
  padding: 48px 16px;
}

.ros-footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .ros-footer-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .ros-footer-grid { grid-template-columns: repeat(4, 1fr); }
}

.ros-footer-heading {
  font-family: var(--ros-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  color: var(--ros-text-secondary);
  margin-bottom: 12px;
}

.ros-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ros-footer-links a {
  font-size: 0.875rem;
  color: var(--ros-text-tertiary);
  transition: color var(--ros-transition);
}

.ros-footer-links a:hover {
  color: var(--ros-green);
}

/* Footer CTA — sits above the footer grid */
.ros-footer-cta {
  text-align: center;
  padding: 48px 0;
  border-bottom: 1px solid var(--ros-border);
  margin-bottom: 40px;
}

.ros-footer-cta-heading {
  font-family: var(--ros-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  color: var(--ros-text-primary);
  margin-bottom: 24px;
  line-height: 1.1;
  text-wrap: balance;
}

.ros-footer-cta-btn {
  display: inline-block;
  background-color: #fff;
  color: #000;
  padding: 14px 32px;
  border-radius: var(--ros-radius);
  font-weight: 600;
  font-size: 1rem;
  transition: background-color var(--ros-transition);
}

.ros-footer-cta-btn:hover {
  background-color: #e5e7eb;
}

/* Bottom bar */
.ros-footer-bottom {
  display: flex;
  flex-direction: column-reverse;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--ros-border);
}

@media (min-width: 768px) {
  .ros-footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.ros-footer-social {
  display: flex;
  gap: 16px;
}

.ros-footer-social a {
  color: var(--ros-text-tertiary);
  transition: color var(--ros-transition);
}

.ros-footer-social a:hover {
  color: var(--ros-text-primary);
}

.ros-footer-copy {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Ghost-managed logo in footer */
.ros-footer-logo-sm {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  object-fit: contain;
}

.ros-footer-copy p {
  font-family: var(--ros-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--ros-text-tertiary);
}


/* ═══════════════════════════════════════════════════════════════════
   PAGE — static pages
   ═══════════════════════════════════════════════════════════════════ */
.ros-page .ros-article-header {
  padding-bottom: 48px;
}


/* ═══════════════════════════════════════════════════════════════════
   GHOST MEMBERS — upgrade CTA
   ═══════════════════════════════════════════════════════════════════ */
.gh-post-upgrade-cta {
  border: 1px solid var(--ros-border) !important;
  border-radius: 12px !important;
  background-color: var(--ros-bg-raised) !important;
}


/* ═══════════════════════════════════════════════════════════════════
   SCROLLBAR — dark
   ═══════════════════════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ros-bg); }
::-webkit-scrollbar-thumb { background: var(--ros-border); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--ros-text-tertiary); }


/* ═══════════════════════════════════════════════════════════════════
   SELECTION — green on black
   ═══════════════════════════════════════════════════════════════════ */
::selection {
  background: var(--ros-green);
  color: #000;
}


/* ═══════════════════════════════════════════════════════════════════
   GHOST SODO SEARCH — dark theme overrides
   Ghost injects its search portal as a web component / iframe.
   We style the outer wrapper and set accent color for the portal.
   ═══════════════════════════════════════════════════════════════════ */

/* Tell Sodo Search to use our green accent */
:root {
  --ghost-accent-color: #10b981;
}
