/* ==========================================================================
   vitorx86-garage — Official Ghost 5 Theme for blog.vitorx86.dev
   Design System: "The Hacker's Garage — Engineering Log"
   ========================================================================== */

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, 'Liberation Mono', 'Courier New', monospace;
  --gh-font-heading: var(--font-sans);
  --gh-font-body: var(--font-sans);

  /* Clean Reading Card Surfaces */
  --surface-card: #ffffff;
  --surface-card-muted: #f8fafc;
  --border-card: #e2e8f0;

  /* Core vitorx86.dev Tokens */
  --vitor-terminal-ink: #111827;
  --vitor-panel-graphite: #1f2937;
  --vitor-midnight-garage: #14142f;
  --vitor-blueprint-line: rgba(59, 59, 120, 0.35);
  --vitor-snow-paper: #fffafa;
  --vitor-prompt-teal: #0d9488;
  --vitor-prompt-teal-text: #0f766e;
  --vitor-prompt-teal-bright: #2dd4bf;
  --vitor-phosphor-green: #4ade80;
  --vitor-anime-indigo: #a5b4fc;
  --vitor-jacket-pink: #f9a8d4;

  /* Surface & Text Semantic Tokens (Light Mode Default) */
  --bg-page: #fffafa;
  --bg-header: rgba(255, 250, 250, 0.9);
  --text-heading: #111827;
  --text-body: #374151;
  --text-muted: #6b7280;
  --border-hairline: #e5e7eb;
  --grid-stroke: rgba(229, 231, 235, 0.55);

  /* Shadows (Intentional Offset, No Zero-Offset Halos) */
  --shadow-resting: 0 4px 6px -1px rgb(0 0 0 / 0.12),
    0 2px 4px -2px rgb(0 0 0 / 0.08);
  --shadow-hover: 0 12px 20px -4px rgb(0 0 0 / 0.18),
    0 4px 8px -4px rgb(0 0 0 / 0.12);
  --shadow-showcase: 0 20px 25px -5px rgb(0 0 0 / 0.16),
    0 8px 10px -6px rgb(0 0 0 / 0.1);
}

html.dark {
  --bg-page: #0f172a;
  --bg-header: rgba(15, 23, 42, 0.92);
  --surface-card: #1e293b;
  --surface-card-muted: #162032;
  --border-card: #334155;
  --vitor-prompt-teal-text: #2dd4bf;
  --text-heading: #f8fafc;
  --text-body: #cbd5e1;
  --text-muted: #94a3b8;
  --border-hairline: rgba(51, 65, 85, 0.8);
  --grid-stroke: rgba(59, 59, 120, 0.18);
}

/* ==========================================================================
   Reset & Base Typography ("The One Font Rule")
   ========================================================================== */

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

html {
  font-family: var(--font-mono);
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-page);
  color: var(--text-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body,
button,
input,
select,
textarea,
code,
kbd,
samp,
pre {
  font-family: var(--font-mono);
}

body.vitor-body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.75;
  background-image: linear-gradient(
      135deg,
      var(--grid-stroke) 1px,
      transparent 1px
    ),
    linear-gradient(45deg, var(--grid-stroke) 1px, transparent 1px);
  background-size: 64px 64px;
}

::selection {
  background-color: rgba(13, 148, 136, 0.25);
  color: var(--text-heading);
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  background-color: var(--vitor-terminal-ink);
  color: var(--vitor-phosphor-green);
  font-weight: 700;
  transition: top 150ms ease;
}

.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--vitor-prompt-teal-bright);
}

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

.site-main {
  flex: 1;
}

.container {
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   Terminal Grammar & Lockups
   ========================================================================== */

.eyebrow-lockup {
  margin: 0 0 0.5rem 0;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.75;
  color: var(--vitor-prompt-teal-text);
  letter-spacing: -0.01em;
}

.eyebrow-prefix {
  color: var(--text-muted);
  font-weight: 400;
}

.eyebrow-on-dark {
  color: var(--vitor-prompt-teal-bright);
}

.eyebrow-prefix-dark {
  color: #9ca3af;
  font-weight: 400;
}

.cursor-block {
  color: var(--vitor-prompt-teal);
  margin-left: 0.12em;
  display: inline-block;
  animation: terminalBlink 1.1s steps(2, start) infinite;
}

@keyframes terminalBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.15;
  }
}

.dollar-muted {
  color: #9ca3af;
  font-weight: 400;
}

.slash-prefix {
  color: var(--text-muted);
  transition: color 150ms ease;
}

.terminal-comment {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0.75rem 0 0 0;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: var(--bg-header);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-hairline);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.header-search-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  max-width: 25rem;
  min-height: 44px;
  padding: 0.35rem 0.85rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-hairline);
  background-color: var(--bg-page);
  color: var(--text-heading);
  font-size: 0.82rem;
  box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.04);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

html.dark .header-search-bar {
  background-color: var(--vitor-panel-graphite);
  border-color: #374151;
}

.header-search-bar:hover,
.header-search-bar:focus-within {
  border-color: var(--vitor-prompt-teal);
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.18);
}

.search-bar-icon {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.header-search-input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text-heading);
  font-size: 0.82rem;
  line-height: 1.4;
  outline: none;
}

.header-search-input::placeholder {
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .header-search-bar {
    display: inline-flex;
  }
  .mobile-search-trigger {
    display: none !important;
  }
}

.header-write-btn {
  display: none;
}

@media (min-width: 1024px) {
  .header-write-btn {
    display: inline-flex;
  }
}

.prompt-prefix {
  color: var(--text-muted);
  font-weight: 400;
}

.prompt-cmd {
  color: var(--vitor-prompt-teal-text);
}

.prompt-path {
  color: var(--text-heading);
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 960px) {
  .desktop-nav {
    display: flex;
  }
}

.nav-exec-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.45rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-heading);
  transition: background-color 150ms ease, color 150ms ease;
}

.nav-exec-link:hover,
.nav-exec-link:focus-visible {
  background-color: var(--vitor-terminal-ink);
  color: var(--vitor-phosphor-green);
}

html.dark .nav-exec-link:hover,
html.dark .nav-exec-link:focus-visible {
  background-color: var(--vitor-panel-graphite);
  color: var(--vitor-phosphor-green);
}

.nav-exec-link:hover .slash-prefix,
.nav-exec-link:focus-visible .slash-prefix {
  color: #9ca3af;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.terminal-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.45rem 0.8rem;
  border-radius: 0.375rem;
  border: 1px solid #374151;
  background-color: var(--vitor-terminal-ink);
  color: var(--vitor-phosphor-green);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-resting);
  transition: background-color 150ms ease, transform 150ms ease;
}

.terminal-pill-btn:hover {
  background-color: var(--vitor-panel-graphite);
  transform: translateY(-1px);
}

.kbd-hint {
  display: none;
  padding: 0.05rem 0.35rem;
  border-radius: 0.25rem;
  background-color: #1f2937;
  border: 1px solid #4b5563;
  color: #9ca3af;
  font-size: 0.7rem;
}

@media (min-width: 640px) {
  .kbd-hint {
    display: inline-block;
  }
}

.mobile-menu-trigger {
  display: inline-flex;
}

@media (min-width: 960px) {
  .mobile-menu-trigger {
    display: none;
  }
}

.icon-sm {
  width: 1.15rem;
  height: 1.15rem;
}

.mobile-menu-drawer {
  padding-bottom: 1rem;
}

.terminal-links-panel {
  border-radius: 0.5rem;
  background-color: var(--vitor-terminal-ink);
  border: 1px solid #374151;
  padding: 1rem;
  box-shadow: var(--shadow-hover);
}

.terminal-panel-caption {
  margin: 0 0 0.5rem 0;
  padding: 0 0.5rem;
  font-size: 0.75rem;
  color: #9ca3af;
}

.mobile-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.terminal-panel-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  color: #d1d5db;
  transition: background-color 150ms ease, color 150ms ease;
}

.terminal-panel-link .slash-prefix {
  color: #9ca3af;
}

.terminal-panel-link:hover {
  background-color: var(--vitor-panel-graphite);
  color: var(--vitor-phosphor-green);
}

/* ==========================================================================
   Buttons & Interactive CTAs
   ========================================================================== */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.btn-terminal {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.7rem 1.2rem;
  border-radius: 0.5rem;
  border: 1px solid #374151;
  background-color: var(--vitor-terminal-ink);
  color: var(--vitor-phosphor-green);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-resting);
  transition: transform 180ms ease, background-color 180ms ease,
    box-shadow 180ms ease;
}

.btn-terminal:hover {
  background-color: var(--vitor-panel-graphite);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-terminal-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.7rem 1.15rem;
  border-radius: 0.5rem;
  border: 1px solid #374151;
  background-color: var(--vitor-panel-graphite);
  color: var(--vitor-prompt-teal-bright);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-resting);
  transition: transform 180ms ease, background-color 180ms ease,
    color 180ms ease;
}

.btn-terminal-secondary:hover {
  background-color: var(--vitor-terminal-ink);
  color: var(--vitor-phosphor-green);
  transform: translateY(-2px);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  padding: 3.5rem 0 3rem;
  border-bottom: 1px solid var(--border-hairline);
}

@media (min-width: 768px) {
  .hero-section {
    padding: 4.5rem 0 4rem;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 7fr 5fr;
    gap: 3rem;
  }
}

.hero-title {
  margin: 0.25rem 0 1.25rem;
  font-size: clamp(2rem, 4.2vw, 3.35rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text-heading);
}

.hero-subtitle {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  line-height: 1.78;
  color: var(--text-body);
  max-width: 65ch;
}

.hero-sysinfo-card {
  width: 100%;
}

.sysinfo-body {
  padding: 1.25rem 1.35rem;
}

.sysinfo-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.sysinfo-row {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.75rem;
  font-size: 0.82rem;
  line-height: 1.5;
}

.sysinfo-row dt {
  color: var(--vitor-prompt-teal-bright);
  font-weight: 700;
}

.sysinfo-row dd {
  margin: 0;
  color: #e5e7eb;
}

.sysinfo-row dd.sysinfo-green {
  color: var(--vitor-phosphor-green);
  font-weight: 600;
}

/* ==========================================================================
   Sections & Floating Terminal Cards
   ========================================================================== */

.section-block {
  padding: 3.5rem 0;
}

@media (min-width: 768px) {
  .section-block {
    padding: 4.5rem 0;
  }
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-title {
  margin: 0.2rem 0 0;
  font-size: clamp(1.6rem, 2.8vw, 2.15rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text-heading);
}

.section-subtitle {
  margin: 0.65rem 0 0;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-body);
  max-width: 68ch;
}

.section-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: 0.375rem;
  background-color: var(--vitor-terminal-ink);
  border: 1px solid #374151;
  color: var(--vitor-prompt-teal-bright);
  font-size: 0.78rem;
}

/* Terminal Card Windows */
.terminal-card {
  display: flex;
  flex-direction: column;
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: var(--vitor-terminal-ink);
  border: 1px solid rgba(75, 85, 99, 0.55);
  box-shadow: var(--shadow-resting);
  transition: transform 200ms ease, box-shadow 200ms ease,
    border-color 200ms ease;
}

.terminal-card:hover {
  transform: translateY(-4px);
  border-color: rgba(45, 212, 191, 0.55);
  box-shadow: var(--shadow-showcase);
}

.terminal-card-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  background-color: rgba(31, 41, 55, 0.8);
  border-bottom: 1px solid rgba(55, 65, 81, 0.75);
}

.terminal-dots {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.dot-red,
.dot-yellow,
.dot-green {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 9999px;
}

.dot-red {
  background-color: rgba(239, 68, 68, 0.85);
}

.dot-yellow {
  background-color: rgba(234, 179, 8, 0.85);
}

.dot-green {
  background-color: rgba(34, 197, 94, 0.85);
}

.terminal-card-path {
  font-size: 0.75rem;
  color: #9ca3af;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: auto;
  margin-left: 0.35rem;
}

.terminal-card-meta,
.topic-count-badge,
.terminal-status-badge {
  font-size: 0.72rem;
  color: var(--vitor-prompt-teal-bright);
  white-space: nowrap;
}

.terminal-card-image-link {
  display: block;
  overflow: hidden;
  border-bottom: 1px solid rgba(55, 65, 81, 0.6);
}

.terminal-card-image {
  width: 100%;
  height: 12.5rem;
  object-fit: cover;
  transition: transform 250ms ease;
}

.terminal-card:hover .terminal-card-image {
  transform: scale(1.02);
}

.terminal-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.25rem;
}

.terminal-card-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.72rem;
  line-height: 1.3;
}

.tag-teal {
  color: #5eead4;
  border: 1px solid rgba(45, 212, 191, 0.4);
}

.tag-indigo {
  color: var(--vitor-anime-indigo);
  border: 1px solid rgba(165, 180, 252, 0.4);
}

.tag-pink {
  color: var(--vitor-jacket-pink);
  border: 1px solid rgba(249, 168, 212, 0.4);
}

.tag-green {
  color: var(--vitor-phosphor-green);
  border: 1px solid rgba(74, 222, 128, 0.4);
}

.reading-time-chip {
  font-size: 0.72rem;
  color: #9ca3af;
  margin-left: auto;
}

.terminal-card-title {
  margin: 0 0 0.6rem;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  color: #f9fafb;
  letter-spacing: -0.02em;
}

.terminal-card-title-link:hover {
  color: var(--vitor-prompt-teal-bright);
}

.terminal-card-excerpt {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.68;
  color: #d1d5db;
}

.terminal-card-footer {
  margin-top: auto;
  padding-top: 1.1rem;
  margin-top: 1.2rem;
  border-top: 1px solid rgba(55, 65, 81, 0.55);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.terminal-card-action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--vitor-phosphor-green);
}

.action-arrow {
  display: inline-block;
  margin-left: 0.35rem;
  transition: transform 180ms ease;
}

.terminal-card-action:hover .action-arrow {
  transform: translateX(4px);
}

.terminal-card-author {
  font-size: 0.75rem;
  color: #9ca3af;
}

/* ==========================================================================
   dev.to Three-Column Blog Architecture (Left Nav | Center Stream | Right Rail)
   ========================================================================== */

.devto-workspace {
  padding: 1.75rem 0 3.5rem;
}

@media (min-width: 768px) {
  .devto-workspace {
    padding: 2.25rem 0 4rem;
  }
}

.devto-layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 820px) {
  .devto-layout-grid {
    grid-template-columns: 14.5rem minmax(0, 1fr);
  }
}

@media (min-width: 1140px) {
  .devto-layout-grid {
    grid-template-columns: 14.5rem minmax(0, 1fr) 19.5rem;
  }
}

.devto-left-rail,
.devto-right-rail {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (max-width: 819px) {
  .devto-left-rail {
    display: none;
  }
}

@media (min-width: 820px) {
  .devto-left-rail {
    position: sticky;
    top: 5.25rem;
  }
}

.rail-card:hover {
  transform: none;
}

.rail-nav-list {
  display: flex;
  flex-direction: column;
  padding: 0.5rem;
  gap: 0.15rem;
}

.rail-nav-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  min-height: 44px;
  padding: 0.45rem 0.65rem;
  border-radius: 0.375rem;
  border: 0;
  background: transparent;
  color: #e5e7eb;
  font-size: 0.82rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}

.rail-nav-item:hover,
.rail-nav-item.is-active {
  background-color: var(--vitor-panel-graphite);
  color: var(--vitor-phosphor-green);
}

.rail-nav-prefix {
  color: #9ca3af;
  font-size: 0.76rem;
}

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

.rail-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.1rem 0.45rem;
  border-radius: 9999px;
  background-color: rgba(31, 41, 55, 0.9);
  border: 1px solid rgba(75, 85, 99, 0.7);
  color: var(--vitor-prompt-teal-bright);
  font-size: 0.7rem;
  font-weight: 600;
}

.rail-tags-body {
  padding: 0.75rem;
}

.rail-section-heading {
  margin: 0 0 0.5rem;
  padding: 0 0.4rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: #9ca3af;
}

.rail-tags-list {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.rail-tag-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0.4rem 0.55rem;
  border-radius: 0.375rem;
  font-size: 0.8rem;
  color: #d1d5db;
  transition: background-color 150ms ease, color 150ms ease;
}

.rail-tag-link:hover {
  background-color: var(--vitor-panel-graphite);
  color: #ffffff;
}

.rail-tag-hash {
  font-weight: 800;
}

.hash-teal {
  color: var(--vitor-prompt-teal-bright);
}

.hash-indigo {
  color: var(--vitor-anime-indigo);
}

.hash-pink {
  color: var(--vitor-jacket-pink);
}

.rail-tag-slug {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rail-social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.75rem;
}

.rail-social-pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.65rem;
  border-radius: 0.375rem;
  background-color: var(--vitor-panel-graphite);
  border: 1px solid rgba(75, 85, 99, 0.6);
  color: #d1d5db;
  font-size: 0.75rem;
  transition: color 150ms ease, border-color 150ms ease;
}

.rail-social-pill:hover {
  color: var(--vitor-phosphor-green);
  border-color: var(--vitor-prompt-teal-bright);
}

/* Center Feed Stream Column */
.devto-feed-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.devto-feed-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.devto-feed-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.feed-tab {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.45rem 0.9rem;
  border-radius: 0.375rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease,
    border-color 150ms ease;
}

.feed-tab:hover {
  color: var(--text-heading);
  background-color: rgba(17, 24, 39, 0.06);
}

html.dark .feed-tab:hover {
  background-color: rgba(255, 255, 255, 0.06);
}

.feed-tab.is-active {
  background-color: var(--vitor-terminal-ink);
  border-color: #374151;
  color: var(--vitor-phosphor-green);
  font-weight: 700;
  box-shadow: var(--shadow-resting);
}

.devto-topic-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  padding-bottom: 0.25rem;
}

.topic-pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.75rem;
  border-radius: 0.375rem;
  border: 1px solid var(--border-hairline);
  background-color: var(--vitor-terminal-ink);
  color: #d1d5db;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease;
}

.topic-pill:hover,
.topic-pill.is-active {
  border-color: var(--vitor-prompt-teal-bright);
  color: var(--vitor-prompt-teal-bright);
}

.devto-feed-stream {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.devto-feed-card .terminal-card-image {
  height: 15.5rem;
}

.devto-card-body {
  padding: 1.25rem 1.35rem;
}

.devto-author-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.devto-author-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background-color: var(--vitor-panel-graphite);
  border: 1px solid rgba(45, 212, 191, 0.45);
  color: var(--vitor-phosphor-green);
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
  overflow: hidden;
}

.devto-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.devto-author-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.devto-author-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #f9fafb;
  line-height: 1.3;
}

.devto-author-name:hover {
  color: var(--vitor-prompt-teal-bright);
}

.devto-post-date {
  font-size: 0.74rem;
  color: #9ca3af;
  line-height: 1.35;
}

.devto-pinned-badge {
  margin-left: auto;
}

@media (min-width: 640px) {
  .devto-card-indented {
    padding-left: 3.25rem;
  }
}

.feed-card-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #f9fafb;
}

.devto-tag-row {
  margin-bottom: 0.75rem;
}

.devto-card-footer {
  margin-top: 1rem;
  padding-top: 0.85rem;
}

.devto-card-Utils {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.feed-save-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0.35rem 0.75rem;
  border-radius: 0.375rem;
  border: 1px solid rgba(75, 85, 99, 0.7);
  background-color: var(--vitor-panel-graphite);
  color: #e5e7eb;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease;
}

.feed-save-btn:hover,
.feed-save-btn.is-saved {
  border-color: var(--vitor-phosphor-green);
  color: var(--vitor-phosphor-green);
}

/* Right Rail Widgets */
.rail-profile-body {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rail-profile-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.rail-avatar-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  background-color: var(--vitor-panel-graphite);
  border: 1px solid rgba(45, 212, 191, 0.5);
  color: var(--vitor-phosphor-green);
  font-size: 0.95rem;
  font-weight: 800;
  flex-shrink: 0;
}

.rail-profile-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #f9fafb;
}

.rail-profile-handle {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: var(--vitor-prompt-teal-bright);
}

.rail-profile-bio {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.65;
  color: #d1d5db;
}

.rail-sysinfo {
  padding: 0.75rem;
  border-radius: 0.375rem;
  background-color: rgba(31, 41, 55, 0.65);
  border: 1px solid rgba(55, 65, 81, 0.7);
}

.rail-profile-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.rail-btn-full {
  width: 100%;
  justify-content: center;
}

.rail-widget-body {
  padding: 1rem 1.15rem;
}

.rail-widget-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(55, 65, 81, 0.65);
}

.rail-widget-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 800;
  color: #f9fafb;
}

.rail-widget-subtitle,
.rail-widget-more {
  font-size: 0.72rem;
  color: var(--vitor-prompt-teal-bright);
}

.rail-channel-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.rail-channel-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.375rem;
  background-color: rgba(31, 41, 55, 0.55);
  border: 1px solid rgba(55, 65, 81, 0.6);
  transition: border-color 150ms ease, background-color 150ms ease;
}

.rail-channel-item:hover {
  background-color: var(--vitor-panel-graphite);
  border-color: rgba(45, 212, 191, 0.5);
}

.rail-channel-tag {
  align-self: flex-start;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 0.25rem;
}

.rail-repo-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--vitor-phosphor-green);
}

.rail-channel-desc {
  font-size: 0.76rem;
  line-height: 1.5;
  color: #d1d5db;
}

/* dev.to Three-Column Single Post Layout */
.devto-article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .devto-article-grid {
    grid-template-columns: 4.25rem minmax(0, 1fr);
  }
}

@media (min-width: 1160px) {
  .devto-article-grid {
    grid-template-columns: 4.25rem minmax(0, 1fr) 19.5rem;
  }
}

.devto-article-actions {
  display: none;
}

@media (min-width: 900px) {
  .devto-article-actions {
    display: block;
    position: sticky;
    top: 6rem;
  }
}

.article-action-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.action-rail-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  min-height: 3.5rem;
  padding: 0.45rem;
  border-radius: 0.5rem;
  border: 1px solid #374151;
  background-color: var(--vitor-terminal-ink);
  color: #d1d5db;
  font-size: 0.72rem;
  cursor: pointer;
  box-shadow: var(--shadow-resting);
  transition: border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.action-rail-btn:hover {
  border-color: var(--vitor-prompt-teal-bright);
  color: var(--vitor-phosphor-green);
  transform: translateY(-2px);
}

.action-rail-icon {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--vitor-prompt-teal-bright);
}

.action-rail-label {
  font-size: 0.68rem;
  margin-top: 0.15rem;
}

.devto-article-main {
  min-width: 0;
}

.article-cover-figure {
  margin: 0;
  border-bottom: 1px solid rgba(55, 65, 81, 0.65);
}

.article-cover-figure .article-feature-image {
  border-radius: 0;
  border: 0;
  max-height: 24rem;
  object-fit: cover;
}

.article-author-row {
  margin-bottom: 1.15rem;
}

.article-tag-row {
  margin-bottom: 1rem;
}

.devto-prose-card {
  padding: 1.75rem 1.5rem;
  border-radius: 0.65rem;
  background-color: var(--bg-page);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-resting);
}

@media (min-width: 768px) {
  .devto-prose-card {
    padding: 2.5rem 3rem;
  }
}

.devto-article-sidebar {
  position: sticky;
  top: 5.25rem;
}

.article-sticky-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.devto-context-banner {
  margin-bottom: 0.5rem;
}

.author-banner-title {
  margin: 0;
}

.empty-author-row {
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(55, 65, 81, 0.6);
}

/* Grids */
.post-feed-grid,
.topic-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

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

/* ==========================================================================
   Zero-Article Diagnostic Console (Empty State)
   ========================================================================== */

.terminal-empty-window {
  border-radius: 0.65rem;
  overflow: hidden;
  background-color: var(--vitor-terminal-ink);
  border: 1px solid rgba(45, 212, 191, 0.4);
  box-shadow: var(--shadow-showcase);
}

.terminal-empty-body {
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .terminal-empty-body {
    padding: 2rem 2.25rem;
  }
}

.log-cmd {
  margin: 0 0 0.4rem;
  font-size: 0.875rem;
  font-weight: 700;
}

.cmd-teal {
  color: var(--vitor-prompt-teal-bright);
}

.log-output {
  margin: 0 0 1.35rem;
  padding: 0.85rem 1rem;
  border-radius: 0.375rem;
  background-color: rgba(31, 41, 55, 0.7);
  border: 1px solid rgba(55, 65, 81, 0.7);
  color: #9ca3af;
  font-size: 0.8rem;
  line-height: 1.6;
  overflow-x: auto;
}

.empty-status-box {
  padding: 1.15rem 1.35rem;
  border-radius: 0.5rem;
  background-color: rgba(31, 41, 55, 0.65);
  border: 1px solid rgba(75, 85, 99, 0.6);
  margin-bottom: 1.5rem;
}

.empty-status-title {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #f9fafb;
}

.empty-status-desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.75;
  color: #d1d5db;
  max-width: 68ch;
}

.empty-status-desc strong {
  color: var(--vitor-prompt-teal-bright);
}

.empty-actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(55, 65, 81, 0.6);
}

/* ==========================================================================
   Full-Bleed Dark Showcase Panel ("Midnight Garage")
   ========================================================================== */

.garage-showcase-panel {
  margin: 2rem 0 0;
  padding: 4rem 0;
  background-color: var(--vitor-midnight-garage);
  border-top: 1px solid rgba(156, 163, 175, 0.15);
  border-bottom: 1px solid rgba(156, 163, 175, 0.15);
  background-image: linear-gradient(
      135deg,
      var(--vitor-blueprint-line) 1px,
      transparent 1px
    ),
    linear-gradient(45deg, var(--vitor-blueprint-line) 1px, transparent 1px);
  background-size: 36px 36px;
}

.showcase-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .showcase-inner {
    grid-template-columns: 7fr 5fr;
  }
}

.showcase-title {
  margin: 0.25rem 0 1rem;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.025em;
}

.showcase-desc {
  margin: 0 0 1.75rem;
  font-size: 0.98rem;
  line-height: 1.78;
  color: #d1d5db;
  max-width: 64ch;
}

.showcase-code {
  margin: 0;
  padding: 1.25rem;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--vitor-phosphor-green);
  overflow-x: auto;
}

/* ==========================================================================
   Single Post / Page & Long-Form Prose (68ch Measure)
   ========================================================================== */

.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  height: 3px;
  width: 0%;
  background-color: var(--vitor-prompt-teal-bright);
  transition: width 80ms linear;
}

.article-shell {
  padding: 2.5rem 0 4rem;
}

.article-terminal-header {
  border-radius: 0.65rem;
  overflow: hidden;
  background-color: var(--vitor-terminal-ink);
  border: 1px solid rgba(75, 85, 99, 0.6);
  box-shadow: var(--shadow-showcase);
  margin-bottom: 2.5rem;
}

.article-header-body {
  padding: 1.75rem 1.5rem;
}

@media (min-width: 768px) {
  .article-header-body {
    padding: 2.25rem 2.5rem;
  }
}

.article-title {
  margin: 0.35rem 0 1rem;
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #f9fafb;
}

.article-excerpt {
  margin: 0 0 1.25rem;
  font-size: 1.02rem;
  line-height: 1.75;
  color: #d1d5db;
  max-width: 68ch;
}

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(55, 65, 81, 0.65);
}

.article-author-line {
  font-size: 0.82rem;
  color: #9ca3af;
}

.author-inline-link {
  color: var(--vitor-phosphor-green);
  font-weight: 600;
}

.article-feature-figure {
  margin: 0 0 2.5rem;
}

.article-feature-image {
  width: 100%;
  border-radius: 0.65rem;
  border: 1px solid var(--border-hairline);
}

.article-feature-caption {
  margin-top: 0.65rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

.article-layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 1100px) {
  .article-layout-grid {
    grid-template-columns: minmax(0, 68ch) 18rem;
    justify-content: space-between;
  }
}

.article-sidebar {
  position: sticky;
  top: 5.5rem;
}

.toc-body {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.toc-link {
  font-size: 0.78rem;
  line-height: 1.45;
  color: #d1d5db;
  padding: 0.25rem 0;
  transition: color 150ms ease;
}

.toc-link:hover {
  color: var(--vitor-phosphor-green);
}

.toc-link-h3 {
  padding-left: 0.85rem;
  color: #9ca3af;
}

/* Long-form Reading Measure & Hierarchy (Clean Sans-Serif Typography) */
.gh-content {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-body);
  max-width: 68ch;
}

.gh-content h1,
.gh-content h2,
.gh-content h3,
.gh-content h4 {
  font-family: var(--font-sans);
  color: var(--text-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.gh-content h2 {
  font-size: 1.6rem;
  margin-top: 2.5rem;
  margin-bottom: 0.85rem;
}

.gh-content h3 {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 0.65rem;
}

.gh-content p,
.gh-content ul,
.gh-content ol {
  margin-top: 0;
  margin-bottom: 1.35rem;
}

.gh-content a {
  color: var(--vitor-prompt-teal-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gh-content pre {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 1.75rem 0;
  padding: 1.25rem;
  border-radius: 0.5rem;
  background-color: #0f172a;
  border: 1px solid #334155;
  color: #f8fafc;
  overflow-x: auto;
}

.gh-content code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  padding: 0.15rem 0.35rem;
  border-radius: 0.25rem;
  background-color: rgba(15, 23, 42, 0.08);
}

html.dark .gh-content code {
  background-color: rgba(255, 255, 255, 0.1);
}

.gh-content pre code {
  padding: 0;
  background: transparent;
}

.gh-content blockquote {
  margin: 1.75rem 0;
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  background-color: var(--surface-card-muted);
  border: 1px solid var(--border-card);
  color: var(--text-body);
  font-style: italic;
}

/* Clean dev.to Feed Card & Post View Styles */
.clean-feed-card,
.clean-article-card,
.clean-sidebar-card,
.clean-share-card,
.clean-adjacent-card {
  font-family: var(--font-sans);
  background-color: var(--surface-card);
  border: 1px solid var(--border-card);
  border-radius: 0.65rem;
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.06), 0 1px 2px -1px rgb(0 0 0 / 0.04);
}

.clean-feed-card {
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.clean-feed-card:hover {
  border-color: var(--vitor-prompt-teal);
  box-shadow: 0 4px 12px -2px rgb(0 0 0 / 0.08);
}

.clean-feed-card-body {
  padding: 1.35rem 1.5rem;
}

.clean-author-name {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-heading);
  line-height: 1.3;
}

.clean-author-name:hover {
  color: var(--vitor-prompt-teal-text);
}

.clean-post-date {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.clean-pinned-badge {
  margin-left: auto;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  background-color: rgba(13, 148, 136, 0.12);
  color: var(--vitor-prompt-teal-text);
  font-size: 0.75rem;
  font-weight: 600;
}

.clean-feed-title {
  font-family: var(--font-sans);
  margin: 0 0 0.55rem;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--text-heading);
}

.clean-feed-title-link:hover {
  color: var(--vitor-prompt-teal-text);
}

.clean-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.clean-tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border-radius: 0.375rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-muted);
  background-color: transparent;
  border: 1px solid transparent;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.clean-tag-chip:hover {
  background-color: var(--surface-card-muted);
  border-color: var(--border-card);
  color: var(--text-heading);
}

.clean-feed-excerpt {
  font-family: var(--font-sans);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-body);
}

.clean-feed-footer {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.clean-read-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--vitor-prompt-teal-text);
}

.clean-read-link:hover .action-arrow {
  transform: translateX(4px);
}

.clean-reading-time {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.clean-save-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0.35rem 0.7rem;
  border-radius: 0.375rem;
  border: 1px solid var(--border-card);
  background-color: var(--surface-card-muted);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease;
}

.clean-save-btn:hover,
.clean-save-btn.is-saved {
  border-color: var(--vitor-prompt-teal);
  color: var(--vitor-prompt-teal-text);
}

.save-icon-svg,
.action-rail-svg {
  width: 1.1rem;
  height: 1.1rem;
}

/* Clean Article View */
.clean-page-wrapper {
  max-width: 52rem;
  margin: 0 auto;
}

.clean-article-inner {
  padding: 1.75rem 1.5rem 2.25rem;
}

@media (min-width: 768px) {
  .clean-article-inner {
    padding: 2.5rem 3.25rem 3rem;
  }
}

.clean-article-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-card);
}

.clean-article-title {
  font-family: var(--font-sans);
  margin: 0.5rem 0 1rem;
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text-heading);
}

.clean-article-lead {
  font-family: var(--font-sans);
  margin: 0.75rem 0 0;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 65ch;
}

.action-rail-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  min-height: 3.5rem;
  padding: 0.45rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-card);
  background-color: var(--surface-card);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  cursor: pointer;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
  transition: border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.action-rail-btn:hover,
.action-rail-btn.is-saved {
  border-color: var(--vitor-prompt-teal);
  color: var(--vitor-prompt-teal-text);
  transform: translateY(-2px);
}

.clean-sidebar-accent {
  height: 1.75rem;
  background-color: var(--vitor-terminal-ink);
}

.clean-sidebar-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.clean-sidebar-author-name {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-heading);
}

.clean-sidebar-author-role {
  margin: 0.15rem 0 0;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.clean-sidebar-bio {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-body);
}

.clean-toc-heading {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-heading);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-card);
}

.clean-toc-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.clean-toc-link {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-body);
  padding: 0.25rem 0;
  transition: color 150ms ease;
}

.clean-toc-link:hover {
  color: var(--vitor-prompt-teal-text);
}

.clean-toc-link-h3 {
  padding-left: 0.85rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.clean-share-card {
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.clean-share-title {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-heading);
}

.clean-share-copy {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.clean-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.6rem 1.15rem;
  border-radius: 0.5rem;
  background-color: var(--vitor-prompt-teal);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  transition: opacity 150ms ease;
}

.clean-btn-primary:hover {
  opacity: 0.92;
}

.clean-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.6rem 1.15rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-card);
  background-color: var(--surface-card-muted);
  color: var(--text-heading);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  transition: border-color 150ms ease;
}

.clean-btn-secondary:hover {
  border-color: var(--vitor-prompt-teal);
}

.clean-adjacent-card {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: border-color 150ms ease;
}

.clean-adjacent-card:hover {
  border-color: var(--vitor-prompt-teal);
}

.clean-adjacent-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--vitor-prompt-teal-text);
}

.clean-adjacent-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.35;
}

/* ==========================================================================
   Ghost Koenig Editor Cards (Required for Ghost 5 / gscan compliance)
   ========================================================================== */

.kg-card {
  margin: 2rem 0;
}

.kg-width-wide {
  position: relative;
  width: 100%;
  max-width: 76ch;
}

.kg-width-full {
  position: relative;
  width: 100%;
  max-width: 100%;
}

.kg-image-card,
.kg-embed-card,
.kg-code-card,
.kg-callout-card,
.kg-toggle-card,
.kg-button-card,
.kg-audio-card,
.kg-video-card,
.kg-file-card,
.kg-header-card,
.kg-signup-card,
.kg-product-card {
  margin: 1.75rem 0;
}

.kg-image {
  border-radius: 0.5rem;
  max-width: 100%;
  height: auto;
}

.kg-gallery-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.kg-gallery-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 0.75rem;
}

.kg-gallery-image img {
  display: block;
  margin: 0;
  width: 100%;
  height: 100%;
  border-radius: 0.375rem;
  object-fit: cover;
}

.kg-bookmark-card {
  width: 100%;
  background: var(--vitor-terminal-ink);
  border: 1px solid #374151;
  border-radius: 0.5rem;
  overflow: hidden;
}

.kg-bookmark-container {
  display: flex;
  color: #f9fafb;
  text-decoration: none;
  min-height: 140px;
}

.kg-bookmark-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 1.25rem;
}

.kg-bookmark-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f9fafb;
}

.kg-bookmark-description {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: #d1d5db;
}

.kg-bookmark-metadata {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 0.75rem;
  color: #9ca3af;
}

.kg-bookmark-icon {
  width: 20px;
  height: 20px;
}

.kg-bookmark-author,
.kg-bookmark-publisher {
  color: var(--vitor-prompt-teal-bright);
}

.kg-bookmark-thumbnail {
  position: relative;
  min-width: 30%;
  max-height: 100%;
}

.kg-bookmark-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Article Footer, Pagination & Site Footer
   ========================================================================== */

.article-footer {
  margin-top: 3.5rem;
}

.article-share-card {
  margin-bottom: 2rem;
}

.article-share-body {
  padding: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.share-copy {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
  color: #d1d5db;
}

.post-adjacent-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

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

.terminal-pagination {
  margin-top: 2.5rem;
}

.pagination-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  background-color: var(--vitor-terminal-ink);
  border: 1px solid #374151;
}

.pagination-info {
  font-size: 0.85rem;
  color: #e5e7eb;
}

.pagination-disabled {
  font-size: 0.8rem;
  color: #6b7280;
}

.site-footer {
  padding: 4rem 0 3rem;
  border-top: 1px solid var(--border-hairline);
}

.footer-intro {
  max-width: 44rem;
}

.footer-heading {
  margin: 0.25rem 0 1rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.025em;
}

.footer-copy {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-body);
}

.footer-links-panel {
  margin-top: 2.5rem;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
}

@media (min-width: 640px) {
  .footer-links-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .footer-links-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-copyright,
.footer-signoff {
  margin: 0;
}

.prompt-teal-inline {
  color: var(--vitor-prompt-teal-text);
  font-weight: 700;
}

.inline-exec-link {
  color: var(--vitor-prompt-teal-text);
  font-weight: 600;
}

.inline-exec-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   ARC P1 Industrial Robot Datasheet Sidebar (Right Rail)
   ========================================================================== */

.arc-datasheet {
  display: grid;
  grid-template-columns: 2.35rem minmax(0, 1fr);
  background-color: #f4f4f1;
  color: #141414;
  border: 1px solid #18181b;
  border-radius: 0.25rem;
  overflow: hidden;
  box-shadow: var(--shadow-resting);
}

.arc-orange-spine {
  background-color: #ff4814;
  color: #141414;
  border-right: 1px solid #18181b;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0;
  user-select: none;
}

.arc-spine-logo {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-align: center;
  padding: 0 0.2rem;
}

.arc-spine-vertical {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.arc-spine-arrow {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
}

.arc-sheet-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.arc-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  background-color: #e2e3df;
  border-bottom: 1px solid #18181b;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #18181b;
}

.arc-hero-block {
  padding: 0.9rem 0.85rem;
  border-bottom: 1px solid #18181b;
}

.arc-hero-title {
  margin: 0 0 0.55rem;
  font-family: var(--font-sans);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: #141414;
}

.arc-hero-desc {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  line-height: 1.55;
  color: #27272a;
}

.arc-diagram-block {
  padding: 0.85rem;
  border-bottom: 1px solid #18181b;
}

.arc-diagram-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.arc-diagram-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #141414;
}

.arc-diagram-kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.54rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-align: right;
  color: #27272a;
}

.arc-robot-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.35rem 0;
}

.arc-robot-img {
  width: 88%;
  max-width: 14.5rem;
  height: auto;
  display: block;
  margin: 0.25rem auto;
}

.arc-callout {
  display: flex;
  flex-direction: column;
  font-family: var(--font-mono);
  line-height: 1.25;
}

.arc-callout-tl,
.arc-callout-bl {
  align-self: flex-start;
}

.arc-callout-tr,
.arc-callout-br {
  align-self: flex-end;
  text-align: right;
}

.arc-callout-title {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #141414;
}

.arc-callout-sub {
  font-size: 0.52rem;
  color: #52525b;
}

.arc-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid #18181b;
}

.arc-split-cell {
  padding: 0.75rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: background-color 150ms ease;
}

.arc-split-cell:first-child {
  border-right: 1px solid #18181b;
}

.arc-split-cell:hover {
  background-color: #e8e8e3;
}

.arc-cell-kicker {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #3f3f46;
}

.arc-cell-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #141414;
}

.arc-cell-desc {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  line-height: 1.45;
  color: #3f3f46;
}

.arc-spec-section {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
}

.arc-spec-header {
  display: grid;
  grid-template-columns: 4.1rem 1fr 5.2rem;
  gap: 0.35rem;
  padding: 0.35rem 0.45rem;
  background-color: #141414;
  color: #f4f4f1;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.arc-spec-row {
  display: grid;
  grid-template-columns: 4.1rem 1fr 5.2rem;
  gap: 0.35rem;
  align-items: center;
  padding: 0.38rem 0.25rem;
  border-bottom: 1px solid #18181b;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  line-height: 1.3;
  color: #141414;
  transition: background-color 150ms ease;
}

a.arc-spec-row:hover {
  background-color: #e8e8e3;
}

.arc-spec-key {
  font-weight: 600;
  color: #3f3f46;
}

.arc-spec-val {
  font-weight: 700;
  color: #141414;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.arc-spec-out {
  font-weight: 600;
  color: #27272a;
  text-align: right;
  white-space: nowrap;
}

/* ==========================================================================
   Boxy Industrial Terminal & Post Card Geometry
   ========================================================================== */

.terminal-card,
.terminal-empty-window,
.article-terminal-header,
.terminal-links-panel,
.pagination-inner,
.arc-datasheet,
.devto-prose-card,
.clean-feed-card,
.clean-article-card,
.clean-sidebar-card,
.clean-share-card,
.clean-adjacent-card {
  border-radius: 0;
}

.clean-feed-card,
.clean-article-card,
.clean-sidebar-card,
.clean-share-card,
.clean-adjacent-card {
  border: 1px solid #cbd5e1;
  box-shadow: 0 2px 6px -1px rgb(0 0 0 / 0.06), 0 1px 3px -1px rgb(0 0 0 / 0.04);
}

html.dark .clean-feed-card,
html.dark .clean-article-card,
html.dark .clean-sidebar-card,
html.dark .clean-share-card,
html.dark .clean-adjacent-card {
  border-color: #334155;
  box-shadow: 0 2px 8px -1px rgb(0 0 0 / 0.25);
}

.clean-feed-card:hover {
  border-color: var(--vitor-prompt-teal);
  box-shadow: 0 6px 16px -3px rgb(0 0 0 / 0.09), 0 2px 6px -2px rgb(0 0 0 / 0.05);
}

.terminal-card,
.terminal-empty-window,
.article-terminal-header,
.terminal-links-panel {
  border: 1px solid #374151;
  box-shadow: var(--shadow-resting);
}

.terminal-card:hover {
  transform: translateY(-2px);
  border-color: var(--vitor-prompt-teal-bright);
  box-shadow: var(--shadow-hover);
}

.rail-card:hover {
  transform: none;
  box-shadow: var(--shadow-resting);
}

.terminal-card-bar {
  background-color: #18212f;
  border-bottom: 1px solid #374151;
  padding: 0.55rem 0.85rem;
}

.arc-datasheet {
  box-shadow: var(--shadow-resting);
}
