/* ================================================================
   FADTERMINALV5 v1.5.0 — Main Stylesheet
   Performance-optimized, WCAG 2.2 AA compliant, RTL-ready
   ================================================================ */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  /* Primary palette — overridable via Customizer */
  --rt-green: #00ff41;
  --rt-green-dim: #00cc33;
  --rt-green-bright: #33ff66;
  --rt-green-glow: rgba(0, 255, 65, 0.12);
  --rt-green-border: #00ff41;

  /* Backgrounds */
  --rt-bg: #0a0a0a;
  --rt-bg-alt: #111111;
  --rt-bg-card: #0d0d0d;
  --rt-bg-elevated: #161616;

  /* Text hierarchy */
  --rt-text: #00ff41;
  --rt-text-dim: #00aa2a;
  --rt-text-muted: #00bb33; /* WCAG AA ≥4.5:1 on #0a0a0a — bumped from #008822 */
  --rt-text-faint: #009933; /* WCAG AA ≥4.5:1 on #0a0a0a — bumped from #005514 */

  /* Readable body text — warm light gray for long-form content */
  --rt-body-text: #d4d4d4;       /* primary reading text — 14.5:1 on #0a0a0a */
  --rt-body-text-dim: #a3a3a3;   /* secondary reading text — 8.5:1 on #0a0a0a */

  /* Typography */
  --rt-font-mono: 'IBM Plex Mono', 'Fira Code', 'Source Code Pro', 'Cascadia Code', 'Courier New', monospace;
  --rt-font-pixel: 'Press Start 2P', 'IBM Plex Mono', monospace;

  /* Spacing scale */
  --rt-space-xs: 0.25rem;
  --rt-space-sm: 0.5rem;
  --rt-space-md: 1rem;
  --rt-space-lg: 1.5rem;
  --rt-space-xl: 2rem;
  --rt-space-2xl: 3rem;
  --rt-space-3xl: 4rem;

  /* Borders */
  --rt-border: 2px;
  --rt-radius: 0px;

  /* Glows */
  --rt-glow-sm: 0 0 5px rgba(0, 255, 65, 0.25);
  --rt-glow-md: 0 0 10px rgba(0, 255, 65, 0.18), 0 0 20px rgba(0, 255, 65, 0.08);
  --rt-glow-lg: 0 0 15px rgba(0, 255, 65, 0.25), 0 0 30px rgba(0, 255, 65, 0.12), 0 0 45px rgba(0, 255, 65, 0.04);

  /* Transitions */
  --rt-transition: 0.2s ease;
  --rt-transition-slow: 0.4s ease;

  /* Layout */
  --rt-sidebar-width: 280px;
  --rt-content-max: 1200px;
}

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

/* ===== ACCESSIBILITY ===== */

/* Skip link — hidden until focused */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--rt-space-md);
  z-index: 100000;
  background: var(--rt-green);
  color: var(--rt-bg);
  font-family: var(--rt-font-mono);
  font-size: 1rem;
  font-weight: 700;
  padding: var(--rt-space-sm) var(--rt-space-md);
  text-decoration: none;
  outline: 3px solid var(--rt-green-bright);
  outline-offset: 2px;
}

.skip-link:focus {
  top: var(--rt-space-sm);
}

/* Focus styles for keyboard nav */
:focus-visible {
  outline: 2px solid var(--rt-green-bright);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .scanlines-overlay { display: none; }
  .rt-typing-cursor { animation: none; opacity: 1; }
}

/* Screen reader only */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background: var(--rt-green);
  color: var(--rt-bg);
  clip: auto !important;
  clip-path: none;
  display: block;
  font-size: 1rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* ===== BASE ===== */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--rt-bg);
  color: var(--rt-body-text);
  font-family: var(--rt-font-mono);
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: var(--rt-green);
  color: var(--rt-bg);
}

/* ===== SCANLINE OVERLAY (performance-optimized) ===== */
.scanlines-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100; /* reduced from 9999 — stays behind modals & focus indicators */
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.02) 0px,
    rgba(0, 0, 0, 0.02) 1px,
    transparent 1px,
    transparent 2px
  );
  will-change: auto;
}

@media (prefers-contrast: more) {
  .scanlines-overlay { display: none; }
}

/* ===== BOOT LOADER ===== */
.rt-boot-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--rt-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--rt-space-md);
  font-family: var(--rt-font-mono);
  color: var(--rt-green);
  font-size: 0.9rem;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  /* CSS-only fallback: auto-hide after 4s if JS fails to load/run */
  animation: rt-boot-css-fallback 0s 4s forwards;
}

@keyframes rt-boot-css-fallback {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

.rt-boot-loader.loaded {
  opacity: 0;
  visibility: hidden;
}

.rt-boot-loader .boot-text {
  text-shadow: var(--rt-glow-sm);
}

.rt-boot-progress {
  width: 300px;
  height: 2px;
  background: var(--rt-text-faint);
  overflow: hidden;
}

.rt-boot-progress-bar {
  width: 0;
  height: 100%;
  background: var(--rt-green);
  box-shadow: var(--rt-glow-sm);
  transition: width 0.3s ease;
}

/* ===== READING PROGRESS BAR ===== */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--rt-green);
  box-shadow: var(--rt-glow-sm);
  z-index: 10000;
  transition: width 0.1s linear;
}

/* ===== TYPOGRAPHY ===== */
a {
  color: var(--rt-green);
  text-decoration: none;
  transition: color var(--rt-transition), text-shadow var(--rt-transition);
}

a:hover,
a:focus {
  color: var(--rt-green-bright);
  text-shadow: var(--rt-glow-sm);
}

a:visited {
  color: var(--rt-text-dim);
}

a:visited:hover,
a:visited:focus {
  color: var(--rt-green-bright);
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--rt-font-pixel);
  color: var(--rt-body-text);
  line-height: 1.5;
  letter-spacing: 0.5px;
  word-break: break-word;
  overflow-wrap: break-word;
}

h1 { font-size: clamp(1.3rem, 1.5vw + 0.7rem, 1.8rem); }
h2 { font-size: clamp(1.1rem, 1vw + 0.6rem, 1.5rem); }
h3 { font-size: clamp(0.95rem, 0.8vw + 0.5rem, 1.2rem); }
h4 { font-size: clamp(0.85rem, 0.6vw + 0.45rem, 1.05rem); }
h5, h6 { font-size: clamp(0.75rem, 0.4vw + 0.4rem, 0.9rem); }

/* ===== LAYOUT ===== */
.site-wrapper {
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== SIDEBAR ===== */
.site-sidebar {
  width: var(--rt-sidebar-width);
  min-width: var(--rt-sidebar-width);
  background: var(--rt-bg-alt);
  border-right: var(--rt-border) solid var(--rt-green-border);
  padding: var(--rt-space-xl) var(--rt-space-lg);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  word-break: break-word;
  box-shadow: 2px 0 20px rgba(0, 255, 65, 0.04);
  scrollbar-width: thin;
  scrollbar-color: var(--rt-text-muted) transparent;
}

.site-sidebar::-webkit-scrollbar { width: 4px; }
.site-sidebar::-webkit-scrollbar-track { background: transparent; }
.site-sidebar::-webkit-scrollbar-thumb { background: var(--rt-text-muted); }

/* Logo / Brand */
.site-branding {
  margin-bottom: var(--rt-space-xl);
  padding-bottom: var(--rt-space-lg);
  border-bottom: 1px solid var(--rt-text-faint);
}

.custom-logo-link {
  display: block;
  width: 120px;
  height: 120px;
  margin: 0 auto var(--rt-space-md);
  border: none;
  overflow: hidden;
}

.custom-logo-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) brightness(0.8) contrast(1.2);
  transition: filter var(--rt-transition);
}

.custom-logo-link:hover img {
  filter: grayscale(50%) brightness(1) contrast(1.1);
}

.site-title {
  font-family: var(--rt-font-pixel);
  font-size: 0.95rem;
  text-shadow: var(--rt-glow-md);
  line-height: 1.8;
  letter-spacing: 1px;
}

.site-title a {
  color: inherit;
}

.site-description {
  font-size: 0.95rem;
  color: var(--rt-body-text-dim);
  margin-top: var(--rt-space-xs);
  font-style: italic;
}

/* Sidebar bio */
.sidebar-bio {
  font-size: 0.9rem;
  color: var(--rt-body-text-dim);
  line-height: 1.6;
  margin-bottom: var(--rt-space-lg);
  padding-bottom: var(--rt-space-lg);
  border-bottom: 1px solid var(--rt-text-faint);
}

/* Navigation */
.main-navigation {
  margin-bottom: var(--rt-space-xl);
}

.nav-label {
  font-size: 0.8rem;
  color: var(--rt-body-text-dim);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--rt-space-sm);
  font-family: var(--rt-font-pixel);
}

.main-navigation ul {
  list-style: none;
}

.main-navigation li {
  margin-bottom: 2px;
}

.main-navigation a {
  display: block;
  padding: 0.35rem 0.75rem;
  color: var(--rt-body-text-dim);
  border-left: 2px solid transparent;
  font-size: 0.9rem;
  transition: all var(--rt-transition);
}

.main-navigation a::before {
  content: '> ';
  color: var(--rt-body-text-dim);
  transition: color var(--rt-transition);
}

.main-navigation a:hover,
.main-navigation a:focus,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
  color: var(--rt-green);
  border-left-color: var(--rt-green);
  background: var(--rt-green-glow);
  text-shadow: var(--rt-glow-sm);
}

.main-navigation a:hover::before,
.main-navigation .current-menu-item > a::before {
  color: var(--rt-green);
}

/* Sub-menus */
.main-navigation .sub-menu {
  list-style: none;
  padding-left: var(--rt-space-md);
}

.main-navigation .sub-menu a {
  font-size: 0.95rem;
  padding: 0.25rem 0.75rem;
}

.main-navigation .sub-menu a::before {
  content: '  > ';
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: transparent;
  border: var(--rt-border) solid var(--rt-body-text-dim);
  color: var(--rt-body-text);
  font-family: var(--rt-font-mono);
  font-size: 0.9rem;
  padding: var(--rt-space-sm) var(--rt-space-md);
  cursor: pointer;
  width: 100%;
  text-align: left;
  min-height: 44px;
}

.menu-toggle:focus {
  box-shadow: var(--rt-glow-md);
}

.menu-toggle::before {
  content: '$ ';
}

.menu-toggle[aria-expanded="true"]::after {
  content: ' [-]';
}

.menu-toggle[aria-expanded="false"]::after {
  content: ' [+]';
}

/* Sidebar widgets */
.sidebar-widget-area .widget {
  margin-bottom: var(--rt-space-lg);
  padding-bottom: var(--rt-space-lg);
  border-bottom: 1px solid var(--rt-text-faint);
}

.sidebar-widget-area .widget:last-child {
  border-bottom: none;
}

.widget-title,
.sidebar-widget-area .widget h3 {
  font-family: var(--rt-font-pixel);
  font-size: 0.8rem;
  color: var(--rt-body-text);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--rt-space-sm);
}

.widget ul {
  list-style: none;
}

.widget li {
  padding: 0.25rem 0;
  border-bottom: 1px solid rgba(0, 255, 65, 0.04);
}

.widget li:last-child {
  border-bottom: none;
}

.widget li a {
  color: var(--rt-body-text-dim);
  font-size: 0.9rem;
}

.widget li a:hover {
  color: var(--rt-green);
}

/* Social links */
.social-links {
  display: flex;
  gap: var(--rt-space-sm);
  flex-wrap: wrap;
}

.social-links a {
  color: var(--rt-body-text-dim);
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--rt-body-text-dim);
  transition: all var(--rt-transition);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.social-links a:hover,
.social-links a:focus {
  border-color: var(--rt-green);
  color: var(--rt-green);
  box-shadow: var(--rt-glow-sm);
}

/* Sidebar system status */
.sidebar-system-status {
  margin-top: auto;
  padding-top: var(--rt-space-md);
  font-size: 0.8rem;
  color: var(--rt-body-text-dim);
}

/* ===== MAIN CONTENT ===== */
.site-content-area {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.site-content {
  flex: 1;
  padding: var(--rt-space-xl) var(--rt-space-2xl);
  max-width: var(--rt-content-max);
  width: 100%;
}

/* ===== TERMINAL WINDOW CHROME ===== */
.terminal-window {
  border: var(--rt-border) solid var(--rt-green-border);
  margin-bottom: var(--rt-space-xl);
}

.terminal-titlebar {
  display: flex;
  align-items: center;
  gap: var(--rt-space-sm);
  padding: var(--rt-space-sm) var(--rt-space-md);
  background: var(--rt-bg-alt);
  border-bottom: 1px solid var(--rt-text-faint);
  font-size: 0.9rem;
  color: var(--rt-body-text-dim);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

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

.terminal-dot--close { background: #ff5f56; }
.terminal-dot--minimize { background: #ffbd2e; }
.terminal-dot--maximize { background: #27c93f; }

.terminal-path {
  flex: 1;
  text-align: center;
  font-family: var(--rt-font-mono);
  opacity: 0.7;
}

.terminal-body {
  padding: var(--rt-space-xl);
  background: var(--rt-bg-card);
}

/* ===== PAGE HEADER / BREADCRUMBS ===== */
.page-header {
  margin-bottom: var(--rt-space-xl);
  padding-bottom: var(--rt-space-md);
  border-bottom: 1px solid var(--rt-text-faint);
}

.page-header h1 {
  margin-bottom: var(--rt-space-xs);
}

.rt-breadcrumbs {
  font-size: 0.9rem;
  color: var(--rt-body-text-dim);
}

.rt-breadcrumbs a {
  color: var(--rt-body-text-dim);
}

.rt-breadcrumbs .separator {
  margin: 0 0.3rem;
  color: var(--rt-text-faint);
}

/* ===== TYPING CURSOR ===== */
.rt-typing-cursor::after {
  content: '_';
  animation: rt-blink 1s step-end infinite;
  color: var(--rt-green);
}

@keyframes rt-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ===== POST GRID ===== */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--rt-space-lg);
}

/* ===== POST CARD ===== */
.post-card {
  border: var(--rt-border) solid var(--rt-green-border);
  background: var(--rt-bg-card);
  transition: box-shadow var(--rt-transition-slow), transform var(--rt-transition);
  overflow: hidden;
  container-type: inline-size;
}

.post-card:hover {
  box-shadow: var(--rt-glow-lg);
  transform: translateY(-2px);
}

.post-card:focus-within {
  box-shadow: var(--rt-glow-md);
}

.post-card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--rt-text-faint);
  position: relative;
}

.post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(80%) brightness(0.7) contrast(1.3) sepia(30%);
  transition: filter var(--rt-transition-slow);
}

.post-card:hover .post-card__image img {
  filter: grayscale(50%) brightness(0.8) contrast(1.2) sepia(15%);
}

.post-card__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 255, 65, 0.06);
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Sticky post indicator */
.post-card.sticky .post-card__image::before {
  content: 'PINNED';
  position: absolute;
  top: var(--rt-space-sm);
  right: var(--rt-space-sm);
  z-index: 2;
  font-family: var(--rt-font-pixel);
  font-size: 0.6rem;
  background: var(--rt-green);
  color: var(--rt-bg);
  padding: 2px 6px;
  letter-spacing: 1px;
}

.post-card__body {
  padding: var(--rt-space-md) var(--rt-space-lg);
}

.post-card__meta {
  font-size: 0.85rem;
  color: var(--rt-body-text-dim);
  margin-bottom: var(--rt-space-sm);
  display: flex;
  gap: var(--rt-space-md);
  flex-wrap: wrap;
}

.post-card__meta span::before { content: '['; }
.post-card__meta span::after { content: ']'; }

.post-card__title {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: var(--rt-space-sm);
  letter-spacing: 0.5px;
}

.post-card__title a { color: var(--rt-body-text); }
.post-card__title a:hover { color: var(--rt-green); text-shadow: var(--rt-glow-sm); }

.post-card__excerpt {
  font-size: 0.95rem;
  color: var(--rt-body-text-dim);
  line-height: 1.6;
  margin-bottom: var(--rt-space-md);
}

.rt-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9rem;
  font-family: var(--rt-font-mono);
  color: var(--rt-body-text-dim);
  border: 1px solid var(--rt-body-text-dim);
  padding: 0.5rem 1rem;
  transition: all var(--rt-transition);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
}

.rt-btn::before { content: '$ '; }

.rt-btn:hover,
.rt-btn:focus {
  color: var(--rt-green);
  border-color: var(--rt-green);
  box-shadow: var(--rt-glow-sm);
  background: transparent;
}

.rt-btn--primary {
  border-color: var(--rt-green);
  color: var(--rt-green);
}

.rt-btn--primary:hover {
  background: var(--rt-green);
  color: var(--rt-bg);
  box-shadow: var(--rt-glow-md);
}

/* ===== SINGLE POST ===== */
.single-post-content {
  max-width: 800px;
}

.entry-header {
  margin-bottom: var(--rt-space-xl);
}

.entry-title {
  font-size: 1.1rem;
  line-height: 1.8;
  letter-spacing: 1px;
  margin-bottom: var(--rt-space-md);
}

.entry-meta {
  font-size: 0.9rem;
  color: var(--rt-body-text-dim);
  display: flex;
  gap: var(--rt-space-lg);
  flex-wrap: wrap;
}

.entry-meta span::before { content: '[ '; }
.entry-meta span::after { content: ' ]'; }
.entry-meta a { color: var(--rt-body-text-dim); }
.entry-meta a:hover { color: var(--rt-green); }

/* Featured image */
.featured-image {
  margin-bottom: var(--rt-space-xl);
  border: var(--rt-border) solid var(--rt-green-border);
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  filter: grayscale(60%) brightness(0.8) contrast(1.2);
}

/* Entry content — readable light text for long-form reading */
.entry-content {
  color: var(--rt-body-text);
  line-height: 1.85;
  font-size: 1.05rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  margin: var(--rt-space-xl) 0 var(--rt-space-md);
}

.entry-content p {
  margin-bottom: 1.25rem;
}

.entry-content a {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}

.entry-content blockquote {
  border-left: 3px solid var(--rt-green);
  padding: var(--rt-space-md) var(--rt-space-lg);
  margin: var(--rt-space-lg) 0;
  background: var(--rt-green-glow);
  color: var(--rt-body-text);
  font-style: italic;
}

.entry-content blockquote cite {
  display: block;
  margin-top: var(--rt-space-sm);
  font-style: normal;
  font-size: 0.95rem;
  color: var(--rt-body-text-dim);
}

.entry-content pre,
.entry-content code {
  font-family: var(--rt-font-mono);
}

.entry-content code {
  background: var(--rt-bg-alt);
  border: 1px solid var(--rt-text-faint);
  padding: 0.1rem 0.35rem;
  font-size: 0.85em;
}

.entry-content pre {
  background: var(--rt-bg-alt);
  border: 1px solid var(--rt-text-faint);
  padding: var(--rt-space-lg);
  overflow-x: auto;
  margin: var(--rt-space-lg) 0;
}

.entry-content pre code {
  background: none;
  border: none;
  padding: 0;
}

.entry-content ul,
.entry-content ol {
  margin: var(--rt-space-md) 0 var(--rt-space-lg) var(--rt-space-lg);
}

.entry-content li {
  margin-bottom: 0.35rem;
}

.entry-content li::marker {
  color: var(--rt-green);
}

.entry-content img {
  border: var(--rt-border) solid var(--rt-green-border);
  margin: var(--rt-space-lg) 0;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--rt-space-lg) 0;
}

.entry-content th,
.entry-content td {
  border: 1px solid var(--rt-text-faint);
  padding: var(--rt-space-sm) var(--rt-space-md);
  text-align: left;
  font-size: 0.9rem;
  color: var(--rt-body-text);
}

.entry-content th {
  background: var(--rt-bg-alt);
  color: var(--rt-green);
  font-family: var(--rt-font-pixel);
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.entry-content hr {
  border: none;
  border-top: 1px solid var(--rt-text-faint);
  margin: var(--rt-space-xl) 0;
}

/* Gutenberg alignments */
.entry-content .alignwide {
  margin-left: -2rem;
  margin-right: -2rem;
  max-width: calc(100% + 4rem);
}

.entry-content .alignfull {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  max-width: 100%;
  width: 100vw;
}

.entry-content .aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.entry-content .wp-block-image figcaption {
  font-size: 0.8rem;
  color: var(--rt-body-text-dim);
  text-align: center;
  margin-top: var(--rt-space-sm);
}

/* ===== TAGS ===== */
.tag-list {
  display: flex;
  gap: var(--rt-space-sm);
  flex-wrap: wrap;
  margin-top: var(--rt-space-lg);
  padding-top: var(--rt-space-md);
  border-top: 1px solid var(--rt-text-faint);
}

.tag-list a {
  font-size: 0.85rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--rt-body-text-dim);
  color: var(--rt-body-text-dim);
  transition: all var(--rt-transition);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.tag-list a::before { content: '#'; }

.tag-list a:hover,
.tag-list a:focus {
  border-color: var(--rt-green);
  color: var(--rt-green);
}

/* ===== POST NAVIGATION ===== */
.post-navigation {
  margin-top: var(--rt-space-xl);
  display: flex;
  justify-content: space-between;
  gap: var(--rt-space-md);
  padding-top: var(--rt-space-lg);
  border-top: 1px solid var(--rt-text-faint);
}

.post-navigation .nav-subtitle {
  font-size: 0.85rem;
  color: var(--rt-body-text-dim);
  display: block;
  margin-bottom: var(--rt-space-xs);
}

.post-navigation .nav-title {
  font-family: var(--rt-font-pixel);
  font-size: 0.8rem;
  color: var(--rt-body-text-dim);
}

.post-navigation a:hover .nav-title {
  color: var(--rt-green);
}

/* ===== RELATED POSTS ===== */
.related-posts {
  margin-top: var(--rt-space-2xl);
  padding-top: var(--rt-space-xl);
  border-top: var(--rt-border) solid var(--rt-green-border);
}

.related-posts__title {
  font-size: 0.95rem;
  margin-bottom: var(--rt-space-lg);
  color: var(--rt-body-text);
}

.related-posts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--rt-space-md);
}

.related-posts__item {
  border: 1px solid var(--rt-text-faint);
  padding: var(--rt-space-md);
  transition: border-color var(--rt-transition);
}

.related-posts__item:hover {
  border-color: var(--rt-green);
}

.related-posts__item-title {
  font-family: var(--rt-font-pixel);
  font-size: 0.8rem;
  line-height: 1.6;
  margin-bottom: var(--rt-space-xs);
  color: var(--rt-body-text);
}

.related-posts__item-date {
  font-size: 0.85rem;
  color: var(--rt-body-text-dim);
}

/* ===== AUTHOR BOX ===== */
.author-box {
  margin-top: var(--rt-space-xl);
  padding: var(--rt-space-lg);
  border: 1px solid var(--rt-text-faint);
  background: var(--rt-bg-alt);
  display: flex;
  gap: var(--rt-space-lg);
  align-items: flex-start;
}

.author-box__avatar {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border: var(--rt-border) solid var(--rt-green-border);
  overflow: hidden;
}

.author-box__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) brightness(0.8) contrast(1.2);
}

.author-box__name {
  font-family: var(--rt-font-pixel);
  font-size: 0.85rem;
  color: var(--rt-body-text);
  margin-bottom: var(--rt-space-xs);
}

.author-box__bio {
  font-size: 0.95rem;
  color: var(--rt-body-text-dim);
  line-height: 1.6;
}

/* ===== PAGINATION ===== */
.pagination,
.nav-links {
  margin-top: var(--rt-space-2xl);
  display: flex;
  justify-content: center;
  gap: var(--rt-space-sm);
  flex-wrap: wrap;
}

.pagination a,
.pagination span,
.nav-links a,
.nav-links span {
  padding: 0.6rem 1rem;
  border: 1px solid var(--rt-body-text-dim);
  color: var(--rt-body-text-dim);
  font-size: 0.95rem;
  transition: all var(--rt-transition);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.pagination .current,
.pagination a:hover,
.nav-links .current,
.nav-links a:hover {
  border-color: var(--rt-green);
  color: var(--rt-green);
  box-shadow: var(--rt-glow-sm);
}

/* ===== COMMENTS ===== */
.comments-area {
  margin-top: var(--rt-space-2xl);
  padding-top: var(--rt-space-xl);
  border-top: var(--rt-border) solid var(--rt-green-border);
}

.comments-title {
  font-size: 0.95rem;
  margin-bottom: var(--rt-space-lg);
  color: var(--rt-body-text);
}

.comment-list {
  list-style: none;
}

.comment {
  border: 1px solid var(--rt-text-faint);
  padding: var(--rt-space-md);
  margin-bottom: var(--rt-space-md);
  background: var(--rt-bg-alt);
}

.comment .children {
  list-style: none;
  padding-left: var(--rt-space-lg);
  margin-top: var(--rt-space-md);
}

.comment-author {
  font-size: 0.95rem;
  color: var(--rt-body-text);
  margin-bottom: var(--rt-space-sm);
}

.comment-author .says { display: none; }

.comment-metadata {
  font-size: 0.85rem;
  color: var(--rt-body-text-dim);
  margin-bottom: var(--rt-space-sm);
}

.comment-content {
  font-size: 0.95rem;
  color: var(--rt-body-text);
}

.reply a {
  font-size: 0.85rem;
  color: var(--rt-body-text-dim);
  margin-top: var(--rt-space-sm);
  display: inline-block;
}

.comment-respond .comment-reply-title {
  font-family: var(--rt-font-pixel);
  font-size: 0.9rem;
  color: var(--rt-body-text);
  margin-bottom: var(--rt-space-md);
}

/* ===== FORMS ===== */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="password"],
input[type="tel"],
input[type="number"],
textarea,
select {
  width: 100%;
  background: var(--rt-bg);
  border: 1px solid var(--rt-text-muted);
  color: var(--rt-green);
  font-family: var(--rt-font-mono);
  font-size: 0.9rem;
  padding: var(--rt-space-sm) 0.75rem;
  outline: none;
  transition: border-color var(--rt-transition), box-shadow var(--rt-transition);
  border-radius: 0;
  -webkit-appearance: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--rt-green);
  box-shadow: var(--rt-glow-sm);
}

::placeholder {
  color: var(--rt-text-muted);
  opacity: 1;
}

input:invalid,
textarea:invalid {
  border-color: #ff5555;
}

input:invalid:focus,
textarea:invalid:focus {
  border-color: #ff5555;
  box-shadow: 0 0 5px rgba(255, 85, 85, 0.3);
}

label {
  display: block;
  font-size: 0.95rem;
  color: var(--rt-body-text-dim);
  margin-bottom: var(--rt-space-xs);
}

/* ===== SEARCH FORM ===== */
.search-form {
  display: flex;
  gap: var(--rt-space-sm);
}

.search-form .search-field {
  flex: 1;
}

/* ===== 404 ===== */
.error-404 {
  text-align: center;
  padding: var(--rt-space-3xl) var(--rt-space-xl);
}

.error-404 h1 {
  font-size: 2.5rem;
  text-shadow: var(--rt-glow-lg);
  margin-bottom: var(--rt-space-sm);
}

.error-404 .error-subtitle {
  font-family: var(--rt-font-pixel);
  font-size: 0.95rem;
  margin-bottom: var(--rt-space-sm);
}

.error-404 p {
  color: var(--rt-body-text-dim);
  margin-bottom: var(--rt-space-xl);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--rt-bg-alt);
  border-top: var(--rt-border) solid var(--rt-green-border);
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--rt-space-xl);
  padding: var(--rt-space-xl) var(--rt-space-2xl);
  border-bottom: 1px solid var(--rt-text-faint);
}

.footer-widgets .widget {
  font-size: 0.9rem;
}

.footer-widgets .widget-title {
  font-family: var(--rt-font-pixel);
  font-size: 0.8rem;
  color: var(--rt-body-text);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--rt-space-md);
}

.footer-widgets .widget ul {
  list-style: none;
}

.footer-widgets .widget li {
  padding: 0.2rem 0;
}

.footer-widgets .widget li a {
  color: var(--rt-body-text-dim);
  font-size: 0.95rem;
}

.footer-widgets .widget li a:hover {
  color: var(--rt-green);
}

.footer-info {
  padding: var(--rt-space-lg) var(--rt-space-2xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--rt-space-md);
  font-size: 0.9rem;
  color: var(--rt-body-text-dim);
}

.footer-info a {
  color: var(--rt-body-text-dim);
}

.footer-info a:hover {
  color: var(--rt-green);
}

.footer-nav ul {
  list-style: none;
  display: flex;
  gap: var(--rt-space-md);
}

.footer-nav a {
  font-size: 0.9rem;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: var(--rt-space-xl);
  right: var(--rt-space-xl);
  z-index: 1000;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: var(--rt-border) solid var(--rt-green);
  background: var(--rt-bg);
  color: var(--rt-green);
  font-family: var(--rt-font-mono);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--rt-transition);
  text-decoration: none;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--rt-green);
  color: var(--rt-bg);
  box-shadow: var(--rt-glow-md);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--rt-green-bright);
  outline-offset: 2px;
  box-shadow: var(--rt-glow-md);
}

/* ===== ARCHIVE PAGES ===== */
.archive-description {
  font-size: 0.9rem;
  color: var(--rt-body-text-dim);
  margin-top: var(--rt-space-sm);
  line-height: 1.6;
}

/* ===== AUTHOR PAGE ===== */
.author-header {
  display: flex;
  gap: var(--rt-space-xl);
  align-items: flex-start;
  margin-bottom: var(--rt-space-xl);
  padding-bottom: var(--rt-space-xl);
  border-bottom: 1px solid var(--rt-text-faint);
}

.author-header__avatar {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  border: var(--rt-border) solid var(--rt-green-border);
  overflow: hidden;
  box-shadow: var(--rt-glow-sm);
}

.author-header__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) brightness(0.8) contrast(1.2);
}

.author-header__name {
  font-size: 0.9rem;
  margin-bottom: var(--rt-space-sm);
}

.author-header__bio {
  font-size: 0.9rem;
  color: var(--rt-body-text-dim);
  line-height: 1.6;
}

.author-header__url {
  font-size: 0.85rem;
  margin-top: var(--rt-space-sm);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .site-content {
    padding: var(--rt-space-xl) var(--rt-space-lg);
  }

  .post-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }

  .footer-info {
    padding: var(--rt-space-lg);
  }

  .footer-widgets {
    padding: var(--rt-space-xl) var(--rt-space-lg);
  }
}

@media (max-width: 768px) {
  .site-wrapper {
    flex-direction: column;
  }

  .site-sidebar {
    width: 100%;
    min-width: 100%;
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: var(--rt-border) solid var(--rt-green-border);
    padding: var(--rt-space-lg);
    max-height: none;
  }

  .menu-toggle {
    display: block;
    margin-bottom: var(--rt-space-md);
  }

  /* JS-dependent mobile nav: hide only when JS is available */
  .js .main-navigation ul {
    display: none;
  }

  .js .main-navigation.toggled ul {
    display: block;
  }

  /* No-JS fallback: nav stays visible when JS fails */
  .no-js .main-navigation ul {
    display: block;
  }

  .site-content {
    padding: var(--rt-space-lg) var(--rt-space-md);
  }

  .terminal-body {
    padding: var(--rt-space-md);
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .footer-info {
    flex-direction: column;
    text-align: center;
    padding: var(--rt-space-lg) var(--rt-space-md);
  }

  .footer-widgets {
    grid-template-columns: 1fr;
    padding: var(--rt-space-lg) var(--rt-space-md);
  }

  .author-box,
  .author-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .post-navigation {
    flex-direction: column;
  }

  .back-to-top {
    bottom: var(--rt-space-md);
    right: var(--rt-space-md);
  }

  .entry-content .alignwide {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  :root {
    --rt-sidebar-width: 100%;
  }

  .site-content {
    padding: var(--rt-space-md) var(--rt-space-sm);
  }

  .post-card__body {
    padding: var(--rt-space-sm) var(--rt-space-md);
  }

  .featured-image__placeholder-text {
    font-size: 0.8rem;
  }

  .entry-meta {
    flex-direction: column;
    gap: var(--rt-space-xs);
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .site-sidebar,
  .scanlines-overlay,
  .rt-boot-loader,
  .reading-progress,
  .back-to-top,
  .menu-toggle,
  .post-navigation,
  .comments-area,
  .related-posts,
  .site-footer {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }

  .site-content {
    padding: 0;
    max-width: 100%;
  }

  a { color: #000; text-decoration: underline; }
  a[href]::after { content: ' (' attr(href) ')'; font-size: 0.8em; }
}

/* ===== NO-THUMBNAIL PLACEHOLDER ===== */
.post-card__placeholder {
  width: 100%;
  height: 100%;
  background: var(--rt-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rt-text-faint);
  position: relative;
}

.post-card__placeholder svg {
  opacity: 0.5;
}

/* ===== FEATURED IMAGE PLACEHOLDER (single post) ===== */
.featured-image__placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--rt-bg-alt);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--rt-space-md);
  color: var(--rt-text-faint);
}

.featured-image__placeholder svg {
  opacity: 0.4;
}

.featured-image__placeholder-text {
  font-family: var(--rt-font-mono);
  font-size: 0.9rem;
  color: var(--rt-text-faint);
  letter-spacing: 1px;
}

/* ===== READING TIME ===== */
.reading-time {
  font-size: 0.85rem;
  color: var(--rt-body-text-dim);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.reading-time::before {
  content: '[';
}

.reading-time::after {
  content: ']';
}

/* ===== SHARE LINKS ===== */
.share-links {
  margin-top: var(--rt-space-lg);
  padding-top: var(--rt-space-md);
  border-top: 1px solid var(--rt-text-faint);
  display: flex;
  gap: var(--rt-space-sm);
  align-items: center;
  flex-wrap: wrap;
}

.share-links__label {
  font-size: 0.8rem;
  color: var(--rt-body-text-dim);
  font-family: var(--rt-font-pixel);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.share-links a {
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--rt-body-text-dim);
  color: var(--rt-body-text-dim);
  transition: all var(--rt-transition);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.share-links a:hover,
.share-links a:focus {
  border-color: var(--rt-green);
  color: var(--rt-green);
  box-shadow: var(--rt-glow-sm);
}

/* ===== FULL WIDTH TEMPLATE ===== */
.page-template-template-full-width .site-content {
  max-width: 100%;
}

.page-template-template-full-width .single-post-content {
  max-width: 100%;
}

/* ===== PASSWORD PROTECTED ===== */
.post-password-form {
  max-width: 400px;
}

.post-password-form label {
  display: block;
  margin-bottom: var(--rt-space-sm);
  color: var(--rt-body-text-dim);
  font-size: 0.9rem;
}

.post-password-form input[type="password"] {
  margin-bottom: var(--rt-space-md);
}

/* ===== ATTACHMENT PAGE ===== */
.attachment-content {
  text-align: center;
}

.attachment-content img {
  max-width: 100%;
  border: var(--rt-border) solid var(--rt-green-border);
  margin-bottom: var(--rt-space-lg);
}

.attachment-meta {
  font-size: 0.85rem;
  color: var(--rt-body-text-dim);
  margin-top: var(--rt-space-md);
}

/* ===== HELPER CLASSES (replace inline styles) ===== */
.rt-search-results-count {
  font-size: 0.85rem;
  color: var(--rt-body-text-dim);
  margin-top: var(--rt-space-sm);
}

.rt-search-form-container {
  max-width: 400px;
  margin: var(--rt-space-xl) auto;
}

.rt-comments-closed {
  color: var(--rt-body-text-dim);
  font-size: 0.85rem;
  font-style: italic;
}

.rt-comment-notes {
  color: var(--rt-body-text-dim);
  font-size: 0.8rem;
  margin-bottom: var(--rt-space-md);
}

.rt-mt-xl {
  margin-top: var(--rt-space-xl);
}

.rt-recent-posts-section {
  margin-top: var(--rt-space-2xl);
  padding-top: var(--rt-space-xl);
  border-top: var(--rt-border) solid var(--rt-green-border);
}

.rt-recent-posts-section h2 {
  margin-bottom: var(--rt-space-lg);
}

/* ===== HONEYPOT FIELD ===== */
.rt-honeypot {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ===== CONTENT LINK FOCUS ===== */
.entry-content a:focus-visible {
  outline: 2px solid var(--rt-green-bright);
  outline-offset: 2px;
  text-shadow: var(--rt-glow-sm);
}

/* ===== RTL SUPPORT ===== */
[dir="rtl"] .site-sidebar {
  border-right: none;
  border-left: var(--rt-border) solid var(--rt-green-border);
  box-shadow: -2px 0 20px rgba(0, 255, 65, 0.04);
}

[dir="rtl"] .main-navigation a {
  border-left: none;
  border-right: 2px solid transparent;
  padding: 0.35rem 0.75rem;
}

[dir="rtl"] .main-navigation a:hover,
[dir="rtl"] .main-navigation a:focus,
[dir="rtl"] .main-navigation .current-menu-item > a,
[dir="rtl"] .main-navigation .current_page_item > a {
  border-left-color: transparent;
  border-right-color: var(--rt-green);
}

[dir="rtl"] .main-navigation .sub-menu {
  padding-left: 0;
  padding-right: var(--rt-space-md);
}

[dir="rtl"] .rt-breadcrumbs .separator {
  margin: 0 0.3rem;
}

[dir="rtl"] .entry-content blockquote {
  border-left: none;
  border-right: 3px solid var(--rt-green);
}

[dir="rtl"] .back-to-top {
  right: auto;
  left: var(--rt-space-xl);
}

[dir="rtl"] .skip-link {
  left: auto;
  right: var(--rt-space-md);
}

[dir="rtl"] .tag-list a::before { content: '#'; }

[dir="rtl"] .menu-toggle { text-align: right; }

@media (max-width: 768px) {
  [dir="rtl"] .site-sidebar {
    border-left: none;
    border-bottom: var(--rt-border) solid var(--rt-green-border);
  }

  [dir="rtl"] .back-to-top {
    left: var(--rt-space-md);
  }
}

/* ===== REMAINING UTILITY CLASSES ===== */
.comment-awaiting-moderation {
  color: var(--rt-body-text-dim);
  font-size: 0.8rem;
}

.rt-no-posts-notice {
  color: var(--rt-body-text-dim);
}

.post-navigation__next {
  text-align: right;
}

/* ===== ATTACHMENT PAGE (full) ===== */
.attachment-media {
  margin-bottom: var(--rt-space-xl);
}

.attachment-image {
  display: inline-block;
  max-width: 100%;
}

.attachment-image img {
  border: var(--rt-border) solid var(--rt-green-border);
}

.attachment-caption {
  font-size: 0.8rem;
  color: var(--rt-body-text-dim);
  text-align: center;
  margin-top: var(--rt-space-sm);
  font-style: italic;
}

.attachment-file {
  padding: var(--rt-space-xl);
  text-align: center;
}

.attachment-file-meta {
  font-size: 0.8rem;
  color: var(--rt-body-text-dim);
  margin-top: var(--rt-space-sm);
}

.attachment-navigation {
  display: flex;
  justify-content: space-between;
  gap: var(--rt-space-md);
  margin-top: var(--rt-space-xl);
  padding-top: var(--rt-space-lg);
  border-top: 1px solid var(--rt-text-faint);
}

.attachment-navigation a {
  font-size: 0.85rem;
  color: var(--rt-body-text-dim);
}

.attachment-navigation a:hover {
  color: var(--rt-green);
}

/* ===== PAGE LINKS (paginated posts) ===== */
.page-links {
  margin-top: var(--rt-space-xl);
  padding-top: var(--rt-space-md);
  border-top: 1px solid var(--rt-text-faint);
  font-size: 0.85rem;
  color: var(--rt-body-text-dim);
}

.page-links span {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--rt-body-text-dim);
  margin: 0 0.15rem;
  transition: all var(--rt-transition);
}

.page-links > span {
  border-color: var(--rt-green);
  color: var(--rt-green);
}

.page-links a span {
  color: var(--rt-body-text-dim);
}

.page-links a:hover span {
  border-color: var(--rt-green);
  color: var(--rt-green);
}

/* ===== WP CAPTIONS & GALLERIES (legacy) ===== */
.wp-caption {
  max-width: 100%;
  border: var(--rt-border) solid var(--rt-green-border);
  margin-bottom: var(--rt-space-lg);
}

.wp-caption img {
  display: block;
  width: 100%;
}

.wp-caption-text {
  font-size: 0.8rem;
  color: var(--rt-body-text-dim);
  padding: var(--rt-space-sm) var(--rt-space-md);
  text-align: center;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--rt-space-sm);
  margin: var(--rt-space-lg) 0;
}

.gallery-item {
  margin: 0;
}

.gallery-item img {
  border: 1px solid var(--rt-text-faint);
  transition: border-color var(--rt-transition);
}

.gallery-item img:hover {
  border-color: var(--rt-green);
}

.gallery-caption {
  font-size: 0.85rem;
  color: var(--rt-body-text-dim);
  padding-top: var(--rt-space-xs);
}

/* ===== STICKY POST + NO-THUMBNAIL FIX ===== */
.post-card.sticky .post-card__image .post-card__placeholder::after {
  content: 'PINNED';
  font-family: var(--rt-font-pixel);
  font-size: 0.6rem;
  color: var(--rt-bg);
  background: var(--rt-green);
  padding: 2px 6px;
  letter-spacing: 1px;
  position: absolute;
  top: var(--rt-space-sm);
  right: var(--rt-space-sm);
  z-index: 2;
}

/* ===== RTL ADDITIONS ===== */
[dir="rtl"] .post-navigation__next {
  text-align: left;
}

[dir="rtl"] .attachment-navigation {
  flex-direction: row-reverse;
}
