
:root {
  --bg-base: #09090b;
  --bg-surface: #111113;
  --bg-elevated: #18181b;
  --bg-muted: #1e1e22;
  --bg-hover: #27272a;

  --border-default: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --border-active: rgba(99, 102, 241, 0.4);

  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --text-inverse: #09090b;

  --accent: #818cf8;
  --accent-hover: #6366f1;
  --accent-muted: rgba(99, 102, 241, 0.15);
  --accent-glow: rgba(99, 102, 241, 0.25);

  --success: #34d399;
  --success-muted: rgba(52, 211, 153, 0.15);
  --danger: #f87171;
  --danger-muted: rgba(248, 113, 113, 0.15);
  --warning: #fbbf24;

  --radius-xs: 0.375rem;
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.1);

  /* Shared modal / dialog scrim (confirm, AdSense, etc.) */
  --modal-scrim: rgba(0, 0, 0, 0.78);
  --modal-scrim-blur: 8px;

  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset ---- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
}

/* ---- Typography ---- */

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text-primary);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }

p {
  line-height: 1.7;
  color: var(--text-secondary);
}

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

a:hover {
  color: var(--accent-hover);
}

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

/* ---- Layout ---- */

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.page-main {
  flex: 1;
}

/* ---- Site Header ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-default);
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  z-index: -1;
  pointer-events: none;
}

.site-header > .container {
  display: flex;
  align-items: center;
  height: 64px;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand h1 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
  padding-left: 0.75rem;
  border-left: 1px solid var(--border-default);
}

.nav-wrapper {
  margin-left: auto;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 450;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
  text-decoration: none;
}

/* Mobile nav toggle */

.nav-toggle {
  display: none;
}

.nav-toggle-btn {
  display: none;
  width: 40px;
  height: 40px;
  margin: 0;
  flex-shrink: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-default);
  background: var(--bg-elevated);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.nav-toggle-btn:hover {
  border-color: var(--border-hover);
  background: var(--bg-hover);
}

.nav-toggle-btn span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: var(--radius-full);
  background: var(--text-secondary);
  transition: all var(--transition-base);
  transform-origin: center;
}

.nav-toggle:checked ~ .header-inner .nav-toggle-btn {
  background: var(--accent);
  border-color: var(--accent);
}

.nav-toggle:checked ~ .header-inner .nav-toggle-btn span {
  background: var(--text-inverse);
}

.nav-toggle:checked ~ .header-inner .nav-toggle-btn span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle:checked ~ .header-inner .nav-toggle-btn span:nth-child(2) {
  opacity: 0;
}

.nav-toggle:checked ~ .header-inner .nav-toggle-btn span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.nav-toggle:checked ~ .nav-wrapper {
  display: flex;
}

/* ---- Hero Section ---- */

.hero {
  padding: 4rem 0 2.5rem;
}

.hero-inner {
  position: relative;
  padding: 2.75rem 2.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-default);
  background: var(--bg-surface);
  overflow: hidden;
}

.hero-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 10% 0%, rgba(99, 102, 241, 0.12), transparent),
    radial-gradient(ellipse 50% 60% at 90% 100%, rgba(139, 92, 246, 0.08), transparent);
  pointer-events: none;
}

.hero-kicker {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  padding: 0.3rem 0.75rem;
  background: var(--accent-muted);
  border-radius: var(--radius-full);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.hero-title {
  position: relative;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  max-width: 600px;
}

.hero-title-link {
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.hero-title-link:hover {
  color: var(--accent);
  text-decoration: none;
}

.hero-subtitle {
  position: relative;
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.hero-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-meta {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.hero-meta-top span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

/* ---- Buttons ---- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-inverse);
  background: var(--accent);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.button:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--text-inverse);
}

.button:active {
  transform: translateY(0);
}

.button.secondary {
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
}

.button.secondary:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
}

.button.danger {
  color: #fef2f2;
  background: rgba(220, 38, 38, 0.8);
  border-color: rgba(248, 113, 113, 0.3);
}

.button.danger:hover {
  background: rgba(220, 38, 38, 1);
  box-shadow: 0 0 20px rgba(248, 113, 113, 0.2);
}

.button.ghost {
  color: var(--text-secondary);
  background: transparent;
  border: none;
  padding: 0.4rem 0.75rem;
}

.button.ghost:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
  box-shadow: none;
}

.button + .button {
  margin-left: 0.4rem;
}

/* ---- Text Helpers ---- */

.muted {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.text-secondary {
  color: var(--text-secondary);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}

.badge-live {
  color: var(--success);
  background: var(--success-muted);
  border-color: rgba(52, 211, 153, 0.25);
}

.badge-draft {
  color: var(--text-muted);
  background: var(--bg-hover);
  border-color: var(--border-default);
}

/* ---- Home Layout ---- */

.layout-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  padding-top: 0;
  padding-bottom: 4rem;
}

.layout-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-default);
}

.section-title {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.section-subtitle {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---- Post Cards ---- */

.post-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.post-card {
  position: relative;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-default);
  background: var(--bg-surface);
  transition: all var(--transition-base);
}

.post-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.04), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.post-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.post-card:hover::before {
  opacity: 1;
}

.post-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.post-meta-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.post-meta-top span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.post-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}

.post-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.post-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-muted);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.post-tag:hover {
  background: rgba(99, 102, 241, 0.25);
  text-decoration: none;
}

.post-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  line-height: 1.4;
}

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

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

.post-excerpt {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.85rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  transition: gap var(--transition-fast);
}

.post-read-more:hover {
  gap: 0.55rem;
  text-decoration: none;
}

.post-read-more svg {
  width: 14px;
  height: 14px;
}

/* ---- Sidebar ---- */

.layout-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 88px;
  align-self: start;
}

.sidebar-card {
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-default);
  background: var(--bg-surface);
}

.ad-unit {
  max-width: 100%;
}

.home-ad-banner {
  padding: 1.5rem 1.5rem 3rem;
}

.home-ad-in-content {
  margin-bottom: 1.5rem;
}

ins.adsbygoogle {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.article-content .ad-unit + .ad-unit {
  margin-top: 1rem;
}

.ads-wrapper-item {
  position: static;
}

.ads-wrapper .ads-wrapper-item {
  position: relative;
}

.ads-wrapper .ads-wrapper-item.ad-unfilled .ad-unit,
.ads-wrapper .ads-wrapper-item.ad-unfilled .ad-placeholder {
}

.ad-overlay {
  cursor: pointer;
}

.article-content .ad-unit {
  margin: 1.5rem 0;
  min-height: 333px;
}

.ad-placeholder {
  min-height: 333px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.06);
  border: 1px dashed var(--accent);
}

.ad-placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-muted);
}

.ad-placeholder-label {
  font-size: 0.8rem;
  font-weight: 500;
}

.tag-ad-banner {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Category listing: back link + pagination share one row; pagination stays visually centered */
.category-page-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 1.5rem;
  /* Clears site footer for both back link and pagination (same row or stacked) */
  margin-bottom: 3rem;
}

.category-page-footer-back {
  grid-column: 1;
  justify-self: start;
}

.category-page-footer-pagination {
  grid-column: 2;
  justify-self: center;
  min-width: 0;
}

.category-page-footer-pagination .pagination {
  padding: 0;
  margin: 0;
}

.category-page-footer-spacer {
  grid-column: 3;
  width: 0;
  height: 0;
  justify-self: end;
  pointer-events: none;
}

/* Only “Back to home” — avoid an empty center column */
.category-page-footer--no-pagination {
  grid-template-columns: 1fr;
}

.category-page-footer--no-pagination .category-page-footer-pagination,
.category-page-footer--no-pagination .category-page-footer-spacer {
  display: none;
}

.category-page-footer--no-pagination .category-page-footer-back {
  grid-column: 1;
  justify-self: start;
}

@media (max-width: 640px) {
  .category-page-footer {
    grid-template-columns: 1fr;
    justify-items: stretch;
    gap: 1.25rem;
  }

  .category-page-footer-back {
    grid-column: 1;
    justify-self: stretch;
    text-align: center;
  }

  .category-page-footer-pagination {
    grid-column: 1;
  }

  .category-page-footer-pagination .pagination {
    justify-content: center;
  }

  .category-page-footer-spacer {
    display: none;
  }
}

.search-page-ad {
  margin: 1.5rem 0;
  max-width: 100%;
  min-width: 0;
}

.search-page-ad .ad-unit {
  margin-top: 0;
}

.adsense-section {
  margin-bottom: 1.5rem;
}

.adsense-section:last-of-type {
  margin-bottom: 0;
}

.adsense-section-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text-primary);
}

.adsense-section-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  line-height: 1.5;
}

.adsense-toggles {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.adsense-toggle-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.adsense-toggle-label {
  font-weight: 500;
  min-width: 8rem;
}

.adsense-toggle-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  width: 100%;
  margin-left: 9rem;
}

.adsense-placement-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.adsense-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  cursor: pointer;
  background: var(--bg-default);
  transition: border-color 0.15s, background 0.15s;
}

.adsense-chip:hover {
  border-color: var(--accent);
  background: var(--bg-muted);
}

.adsense-chip input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
}

.adsense-chip input:checked + span {
  font-weight: 500;
}

.adsense-chip:has(input:checked) {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.adsense-accounts-wrapper {
  position: relative;
  min-height: 120px;
  margin-bottom: 1rem;
}

.adsense-accounts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 340px));
  gap: 0.75rem;
}

.adsense-account-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  transition: border-color 0.15s, background 0.15s;
}

.adsense-account-tile:hover {
  border-color: var(--border-hover);
}

.adsense-tile-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.adsense-tile-row {
  font-size: 0.8rem;
  line-height: 1.35;
}

.adsense-tile-label {
  color: var(--text-muted);
}

.adsense-tile-name {
  font-weight: 500;
  color: var(--text-primary);
}

.adsense-tile-value {
  color: var(--text-secondary);
}

.adsense-tile-status {
  font-weight: 500;
  font-size: 0.75rem;
}

.adsense-tile-status-active {
  color: var(--success);
}

.adsense-tile-status-inactive {
  color: var(--text-muted);
}

.adsense-tile-maestro {
  font-weight: 500;
  font-size: 0.75rem;
}

.adsense-tile-maestro-on {
  color: var(--accent);
}

.adsense-tile-maestro-off {
  color: var(--text-muted);
}

.adsense-tile-actions {
  display: flex;
  gap: 0.25rem;
  flex-shrink: 0;
}

.adsense-tile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.adsense-tile-btn:hover {
  color: var(--accent);
  background: var(--accent-muted);
}

.adsense-tile-btn.adsense-remove-btn:hover {
  color: var(--danger);
  background: color-mix(in srgb, var(--danger) 12%, transparent);
}

.adsense-grid-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  border: 1px dashed var(--border-default);
  border-radius: var(--radius-md);
  background: var(--bg-muted);
}

.adsense-grid-empty p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}

.adsense-add-btn {
  margin-bottom: 1rem;
}

/* AdSense account modal */
.adsense-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--modal-scrim);
  backdrop-filter: blur(var(--modal-scrim-blur));
  -webkit-backdrop-filter: blur(var(--modal-scrim-blur));
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.adsense-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.adsense-modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  max-width: 420px;
  width: calc(100% - 2rem);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.2s ease;
}

.adsense-modal-overlay.open .adsense-modal-dialog {
  transform: scale(1) translateY(0);
}

.adsense-modal-title {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.adsense-modal-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.adsense-modal-form .adsense-field {
  margin: 0;
}

.adsense-modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-default);
}

.adsense-account-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem 1.25rem;
}

.adsense-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0;
}

.adsense-field-wide {
  grid-column: 1 / -1;
}

.adsense-field-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.adsense-field-hint {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.adsense-input {
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text-primary);
  background: var(--bg-default);
  transition: border-color 0.15s;
}

.adsense-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent);
}

.adsense-input::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.adsense-input-numeric {
  width: 4.5rem;
  text-align: right;
  -moz-appearance: textfield;
}

.adsense-input-numeric::-webkit-outer-spin-button,
.adsense-input-numeric::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.adsense-weight-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.adsense-weight-suffix {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.adsense-field-active {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.adsense-field-active .adsense-field-hint {
  width: 100%;
  margin-top: -0.2rem;
}

.sidebar-title {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.sidebar-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-radius: var(--radius-xs);
  transition: all var(--transition-fast);
}

.sidebar-link:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
  text-decoration: none;
}

.sidebar-link::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-muted);
  border: 1.5px solid var(--accent);
  flex-shrink: 0;
}

.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.sidebar-tag {
  padding: 0.25rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.sidebar-tag:hover {
  color: var(--accent);
  border-color: var(--accent-muted);
  background: var(--accent-muted);
  text-decoration: none;
}

/* ---- Article / Post Page ---- */

.article-header {
  border-bottom: 1px solid var(--border-default);
  background: var(--bg-surface);
}

.article-header .container {
  display: flex;
  align-items: center;
  height: 56px;
}

.article-logo {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  transition: color var(--transition-fast);
}

.article-logo:hover {
  color: var(--accent);
  text-decoration: none;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-left: auto;
  transition: color var(--transition-fast);
}

.article-back:hover {
  color: var(--text-primary);
  text-decoration: none;
}

.article-main {
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.media-player-section {
  max-width: 720px;
  margin: 0 auto 2rem;
}

.media-player-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.media-player-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-elevated);
}

.media-player-image-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-muted);
}

.media-player-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-player-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.media-player-play {
  color: rgba(255, 255, 255, 0.95);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.media-player-play svg {
  width: 48px;
  height: 48px;
}

.media-player-duration {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  padding: 0.2rem 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, 0.75);
  border-radius: var(--radius-xs);
}

.media-player-title {
  margin: 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

body.media-loading {
  position: relative;
}

body.media-loading::before {
  content: "";
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9998;
  pointer-events: none;
}

body.media-loading::after {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  margin-left: -20px;
  border-radius: 50%;
  border: 3px solid rgba(161, 161, 170, 0.4);
  border-top-color: var(--accent);
  animation: media-loading-spin 0.8s linear infinite;
  z-index: 9999;
  pointer-events: none;
}

@keyframes media-loading-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.article-content {
  max-width: 720px;
  margin: 0 auto;
}

.article-content h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

.article-featured-image {
  margin: 0 0 1.25rem;
}

.article-featured-img {
  display: block;
  width: 100%;
  max-height: 28rem;
  object-fit: cover;
  border-radius: var(--radius-md, 8px);
}

.article-content > .muted {
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0 0 0.75rem;
  color: var(--text-secondary);
}

.article-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-default);
}

.article-meta-top {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.article-meta-top span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.article-meta .dot {
  width: 3px;
  height: 3px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--text-muted);
}

.article-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.article-content > div {
  margin-top: 0;
}

.article-content p {
  margin: 1rem 0;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
}

.article-content ul,
.article-content ol {
  padding-left: 1.5rem;
  margin: 1rem 0;
  color: var(--text-secondary);
}

.article-content li {
  margin: 0.35rem 0;
  line-height: 1.7;
}

.article-content h2 {
  font-size: 1.45rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.article-content h3 {
  font-size: 1.15rem;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}

.article-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--accent-muted);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-secondary);
  font-style: italic;
}

.article-content pre {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.25rem 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.65;
}

.article-content code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  padding: 0.15rem 0.4rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xs);
  color: var(--accent);
}

.article-content pre code {
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  color: inherit;
}

.article-content a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.article-content a:hover {
  color: var(--accent-hover);
}

.article-content img {
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
}

.article-content hr {
  border: none;
  height: 1px;
  background: var(--border-default);
  margin: 2rem 0;
}

/* Article content tables – responsive */
.article-content .table-outer,
.article-content .table-container,
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.article-content .table-outer,
.article-content .table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
}

.article-content .table-outer table,
.article-content .table-container table,
.article-content table {
  min-width: 320px;
}

.article-content .table-outer th,
.article-content .table-outer td,
.article-content .table-container th,
.article-content .table-container td,
.article-content table th,
.article-content table td {
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--border-default);
  text-align: left;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.article-content .table-outer thead th,
.article-content .table-container thead th,
.article-content table thead th {
  background: var(--bg-elevated);
  font-weight: 600;
  color: var(--text-primary);
}

/* Custom article elements (compliance-deep-dive, sovereign-focus, etc.) */
.article-content .lead-intro {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.article-content .regulatory-context,
.article-content aside.regulatory-context {
  padding: 1rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
}

.article-content .regulatory-context h3,
.article-content aside.regulatory-context h3 {
  margin-top: 0;
  font-size: 1rem;
}

.article-content .architecture-visual {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 1rem;
  margin: 1.5rem 0;
}

.article-content .node-box {
  flex: 1 1 200px;
  padding: 1rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
}

.article-content .node-box.global-hub {
  border-color: var(--accent);
  background: var(--accent-muted);
}

.article-content .connector-arrow {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.article-content .connector-arrow span {
  white-space: nowrap;
}

.article-content .challenge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.article-content .challenge-item {
  padding: 1rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
}

.article-content .expert-opinion blockquote {
  margin: 2rem 0;
}

.article-content .article-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-default);
}

.article-content .final-thought h3 {
  margin-top: 0;
}

/* Enterprise / predictive article elements */
.article-content .hero-section {
  margin-bottom: 2rem;
}

.article-content .header-wrap {
  display: block;
}

.article-content .category-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.article-content .lead-text {
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0.75rem 0 0;
  color: var(--text-secondary);
}

.article-content .market-shift,
.article-content aside.market-shift {
  padding: 1rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
}

.article-content .market-shift h3,
.article-content aside.market-shift h3 {
  margin-top: 0;
  font-size: 1rem;
}

.article-content .process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.article-content .step-box {
  padding: 1rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
}

.article-content .step-box h4 {
  margin-top: 0;
  font-size: 0.95rem;
}

.article-content .expert-insight blockquote {
  margin: 2rem 0;
}

.article-content .conclusion-box h3 {
  margin-top: 0;
}

.article-content .cta-section {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
}

/* Fintech / enterprise article elements */
.article-content .article-header {
  margin-bottom: 2rem;
}

.article-content .metadata-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.article-content .metadata-top .category {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.article-content .metadata-top .read-time {
  color: var(--text-muted);
}

.article-content .economic-context,
.article-content aside.economic-context {
  padding: 1rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
}

.article-content .economic-context h3,
.article-content aside.economic-context h3 {
  margin-top: 0;
  font-size: 1rem;
}

.article-content .pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.article-content .pillar-card {
  padding: 1rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
}

.article-content .pillar-card h4 {
  margin-top: 0;
  font-size: 0.95rem;
}

.article-content .next-steps {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
}

/* ---- Admin ---- */

.admin-shell {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */

.admin-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-default);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.admin-sidebar-brand {
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid var(--border-default);
}

.admin-sidebar-brand a {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.admin-sidebar-brand a:hover {
  text-decoration: none;
}

.admin-sidebar-label {
  padding: 1.25rem 1.25rem 0.4rem;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.admin-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0.35rem 0.75rem;
}

.admin-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.65rem;
  font-size: 0.85rem;
  font-weight: 450;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.admin-sidebar-link:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
  text-decoration: none;
}

.admin-sidebar-link.active {
  color: var(--text-primary);
  background: var(--accent-muted);
}

.admin-sidebar-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.7;
}

.admin-sidebar-link.active svg {
  opacity: 1;
  color: var(--accent);
}

.sidebar-count {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
  background: var(--bg-hover);
  color: var(--text-muted);
}

.admin-sidebar-link.active .sidebar-count {
  background: rgba(99, 102, 241, 0.25);
  color: var(--accent);
}

.admin-sidebar-footer {
  margin-top: auto;
  padding: 0.75rem;
  border-top: 1px solid var(--border-default);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Main content area */

.admin-content {
  flex: 1;
  min-width: 0;
  padding: 2rem 2.5rem 3rem;
}

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

.admin-page-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
}

.admin-page-header .muted {
  margin-top: 0.2rem;
}

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

/* Mobile admin sidebar toggle */

.admin-sidebar-toggle {
  display: none;
}

.admin-sidebar-check {
  display: none;
}

.admin-mobile-bar {
  display: none;
}

.admin-mobile-brand {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-right: auto;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.admin-mobile-brand:hover {
  text-decoration: none;
}

@media (max-width: 768px) {
  .admin-mobile-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    height: 56px;
    padding: 0 1rem;
    margin: 0 -1rem 1.5rem;
    border-bottom: 1px solid var(--border-default);
    position: sticky;
    top: 0;
    z-index: 50;
  }

  .admin-mobile-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    z-index: -1;
    pointer-events: none;
  }
  .admin-sidebar {
    position: fixed;
    left: -240px;
    top: 0;
    z-index: 200;
    transition: left var(--transition-slow);
  }

  .admin-sidebar-check:checked ~ .admin-sidebar {
    left: 0;
  }

  .admin-sidebar-check:checked ~ .admin-sidebar-overlay {
    display: block;
  }

  .admin-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--modal-scrim);
    backdrop-filter: blur(var(--modal-scrim-blur));
    -webkit-backdrop-filter: blur(var(--modal-scrim-blur));
    z-index: 199;
  }

  .admin-sidebar-toggle {
    display: inline-flex;
  }

  .admin-content {
    padding: 0 1rem 2rem;
  }

  .admin-page-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Tables */

.table-wrapper {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-surface);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table thead {
  background: var(--bg-elevated);
}

.table thead th {
  font-weight: 500;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-default);
}

.table td {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border-default);
  color: var(--text-secondary);
}

.table tbody tr {
  transition: background var(--transition-fast);
}

.table tbody tr:hover {
  background: var(--bg-elevated);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.table td:first-child {
  color: var(--text-primary);
  font-weight: 500;
}

/* Content cards (mobile alternative to tables) */

.content-cards {
  display: none;
}

.content-card {
  padding: 1rem;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  margin-bottom: 0.75rem;
}

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

.content-card-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.content-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.content-card-meta code {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-muted);
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
}

.content-card-action {
  display: inline-flex;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
}

.content-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

@media (max-width: 768px) {
  .table-wrapper {
    display: none;
  }
  .content-cards {
    display: block;
  }
}

/* Admin card wrapper */

.admin-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

@media (max-width: 768px) {
  .admin-card {
    padding: 1.25rem;
  }
}

/* Forms */

.form-group {
  margin-bottom: 1.25rem;
}

label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

label.inline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Settings / forms: label + narrow number on one row */
label.admin-field-compact-number {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.35rem 1.25rem;
  align-items: center;
}

label.admin-field-compact-number .admin-field-compact-number-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.45;
}

label.admin-field-compact-number input[type="number"] {
  margin-top: 0;
  width: 5.5rem;
  min-width: 4.75rem;
  text-align: center;
}

@media (max-width: 480px) {
  label.admin-field-compact-number {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 0.35rem;
  }

  label.admin-field-compact-number input[type="number"] {
    width: 100%;
    max-width: 7rem;
    text-align: left;
  }
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="url"],
input[type="datetime-local"],
input[type="number"],
select,
textarea {
  display: block;
  width: 100%;
  padding: 0.6rem 0.85rem;
  margin-top: 0.35rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--text-primary);
  background: var(--bg-base);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-muted);
}

input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

input[type="file"] {
  display: block;
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.35rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: var(--bg-base);
  border: 1px dashed var(--border-default);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

input[type="file"]:hover {
  border-color: var(--accent);
}

textarea {
  resize: vertical;
  min-height: 60px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-default);
}

/* ---- Footer ---- */

.site-footer {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border-default);
  background: var(--bg-surface);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 0;
}

.footer-inner p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---- Pagination ---- */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 2rem 0 0.5rem;
  flex-wrap: wrap;
}

.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.pagination-link:hover:not(.disabled):not(.active) {
  color: var(--text-primary);
  border-color: var(--border-strong);
  background: var(--bg-elevated);
}

.pagination-link.active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.pagination-link.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination-info {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0 0.5rem;
}

.pagination-ellipsis {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0 0.25rem;
}

/* ---- Search ---- */

.search-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  max-width: 600px;
}

.search-input {
  flex: 1;
  display: block;
  width: 100%;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-muted);
}

@media (max-width: 480px) {
  .search-form {
    flex-direction: column;
  }
}

/* ---- Login Page ---- */

.login-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.login-card {
  width: 100%;
  max-width: 400px;
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-default);
  background: var(--bg-surface);
  box-shadow: var(--shadow-lg);
}

.login-card h1 {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.35rem;
}

.login-card .login-subtitle {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.login-card .form-actions {
  border-top: none;
  padding-top: 0.5rem;
}

.login-card .button {
  width: 100%;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
}

/* 16px+ on login fields — iOS Safari avoids auto-zoom on focus */
.login-card .login-password-label {
  display: block;
}

.login-password-wrap {
  position: relative;
  margin-top: 0.35rem;
}

.login-password-wrap input[type="password"],
.login-password-wrap input[type="text"] {
  margin-top: 0;
  padding-right: 2.75rem;
  font-size: 1rem;
}

.login-password-toggle {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 0;
  -webkit-tap-highlight-color: transparent;
}

.login-password-toggle:hover {
  color: var(--text-primary);
}

.login-password-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.login-password-toggle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.login-password-toggle-icon svg {
  display: block;
}

/* ---- Empty States ---- */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  text-align: center;
  border: 1px dashed var(--border-default);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
}

.empty-state p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---- Responsive ---- */

@media (max-width: 1024px) {
  .layout-grid {
    grid-template-columns: 1fr 260px;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .brand-tagline {
    display: none;
  }

  .site-header > .container {
    height: 56px;
  }

  .header-inner {
    flex: 1;
    justify-content: space-between;
  }

  .nav-toggle-btn {
    display: inline-flex;
  }

  .nav-wrapper {
    display: none;
    position: fixed;
    inset: 0;
    top: 56px;
    padding: 1.5rem;
    margin-left: 0;
    background: rgba(9, 9, 11, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 90;
    overflow-y: auto;
  }

  .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .nav-link {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: var(--radius-md);
  }

  .hero {
    padding: 2.5rem 0 1.5rem;
  }

  .hero-inner {
    padding: 2rem 1.5rem;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .layout-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 3rem;
  }

  /** Space between home AdSense banner and “Latest Posts” on narrow screens */
  .home-ad-banner + .layout-grid .layout-main > .section-header {
    margin-top: 1.5rem;
  }

  .layout-aside {
    position: static;
  }

  .post-card {
    padding: 1.25rem;
  }

  .post-meta {
    gap: 0.4rem;
  }

  .post-meta-top span,
  .post-meta-tags .post-tag {
    font-size: 0.75rem;
  }

  .article-content h1 {
    font-size: 1.75rem;
  }

  .article-meta {
    gap: 0.4rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
  }

  .article-meta-top span,
  .article-meta-tags .post-tag {
    font-size: 0.78rem;
  }

  .article-main {
    padding-top: 2rem;
    padding-bottom: 3rem;
  }

  .article-other-posts {
    margin-top: 2.5rem;
    padding-top: 1.75rem;
  }

  /* Article content: stack architecture and tighten tables on mobile */
  .article-content .architecture-visual {
    flex-direction: column;
    gap: 0.75rem;
  }

  .article-content .connector-arrow {
    justify-content: center;
    padding: 0.25rem 0;
  }

  .article-content .connector-arrow span::before {
    content: "↓ ";
  }

  .article-content .table-outer th,
  .article-content .table-outer td,
  .article-content .table-container th,
  .article-content .table-container td,
  .article-content table th,
  .article-content table td {
    padding: 0.5rem 0.65rem;
    font-size: 0.82rem;
  }

  .admin-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero-inner {
    padding: 1.5rem 1.25rem;
  }

  .post-meta {
    gap: 0.35rem;
  }

  .post-meta-top span,
  .post-meta-tags .post-tag {
    font-size: 0.72rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .footer-inner {
    justify-content: center;
  }

  .article-content h1 {
    font-size: 1.5rem;
  }

  .article-meta {
    gap: 0.35rem;
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
  }

  .article-meta-top span,
  .article-meta-tags .post-tag {
    font-size: 0.75rem;
  }

  h1 {
    font-size: 1.5rem;
  }
}

/* ---- Animations ---- */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.post-card {
  animation: fadeIn 0.4s ease both;
}

.post-card:nth-child(1) { animation-delay: 0ms; }
.post-card:nth-child(2) { animation-delay: 60ms; }
.post-card:nth-child(3) { animation-delay: 120ms; }
.post-card:nth-child(4) { animation-delay: 180ms; }
.post-card:nth-child(5) { animation-delay: 240ms; }
.post-card:nth-child(6) { animation-delay: 300ms; }
.post-card:nth-child(7) { animation-delay: 360ms; }
.post-card:nth-child(8) { animation-delay: 420ms; }

.hero-inner {
  animation: fadeIn 0.5s ease both;
}

.sidebar-card {
  animation: fadeIn 0.4s ease both;
  animation-delay: 150ms;
}

/* ---- Scrollbar ---- */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-hover);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ---- Image upload widget ---- */

.image-upload-widget {
  margin-bottom: 1rem;
}

.image-upload-widget .image-upload-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

/* ---- Icon upload (settings) ---- */

.icon-preview {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--bg-muted);
  margin-bottom: 1rem;
}

.icon-preview-img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-default);
  object-fit: contain;
  background: var(--bg-base);
}

.icon-preview-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.icon-preview-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem;
  border: 1px dashed var(--border-default);
  border-radius: var(--radius-md);
  background: var(--bg-muted);
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.icon-upload-form {
  margin-top: 0.5rem;
}

.icon-dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1.25rem;
  border: 2px dashed var(--border-default);
  border-radius: var(--radius-md);
  background: var(--bg-muted);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.icon-dropzone:hover {
  border-color: var(--accent);
  background: rgba(99, 102, 241, 0.05);
}

.icon-dropzone svg {
  opacity: 0.5;
  margin-bottom: 0.25rem;
}

.icon-dropzone-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.icon-dropzone-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.icon-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.icon-upload-status {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  min-height: 1.25rem;
}

.icon-upload-status.success {
  color: var(--success);
}

.icon-upload-status.error {
  color: var(--danger);
}


/* ---- Cache control ---- */

.cache-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.cache-stat-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
}

.cache-stat-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.cache-stat-small {
  font-size: 0.8rem;
  font-weight: 500;
}

.cache-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.cache-global-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-default);
}

.cache-global-toggle h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.cache-global-toggle p {
  margin: 0;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: 26px;
  transition: background 0.2s, border-color 0.2s;
}

.toggle-slider::before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: transform 0.2s, background 0.2s;
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--accent);
  border-color: var(--accent);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(22px);
  background: #fff;
}

.cache-resources {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1rem;
}

.cache-resource-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-default);
  gap: 1rem;
}

.cache-resource-row:last-child {
  border-bottom: none;
}

.cache-resource-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.cache-resource-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.cache-resource-name {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.cache-resource-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.cache-resource-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cache-ttl-select {
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  background: var(--bg-base);
  color: var(--text-primary);
  font-size: 0.85rem;
  min-width: 140px;
  cursor: pointer;
}

.cache-ttl-select:focus {
  border-color: var(--accent);
  outline: none;
}

.cache-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cache-status-dot.active {
  background: var(--success, #22c55e);
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.4);
}

.cache-status-dot.inactive {
  background: var(--text-muted);
  opacity: 0.5;
}

@media (max-width: 768px) {
  .cache-resource-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .cache-resource-controls {
    width: 100%;
  }

  .cache-ttl-select {
    flex: 1;
    width: 100%;
  }

  .cache-global-toggle {
    gap: 1rem;
  }
}

/* ---- Toast ---- */

.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  background: var(--accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Reading time ---- */

.reading-time {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ---- Confirm Modal ---- */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--modal-scrim);
  backdrop-filter: blur(var(--modal-scrim-blur));
  -webkit-backdrop-filter: blur(var(--modal-scrim-blur));
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 1rem;
  padding: 2rem;
  max-width: 420px;
  width: calc(100% - 2rem);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.2s ease;
}

.modal-overlay.open .modal-dialog {
  transform: scale(1) translateY(0);
}

.modal-title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: var(--text-primary);
}

.modal-msg {
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.modal-actions .button {
  min-width: 100px;
  justify-content: center;
}

/* ---- Install page ---- */

.install-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.install-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}

.install-icon {
  color: var(--accent);
  margin-bottom: 1rem;
}

.install-card h1 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.install-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.install-card {
  text-align: left;
}

.install-card .install-icon,
.install-card h1,
.install-card .install-desc {
  text-align: center;
}

/* ---- Maestro ---- */

.maestro-toggle-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.maestro-toggle-label {
  font-weight: 500;
}

.maestro-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.maestro-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  margin-bottom: 1rem;
}

.maestro-toggle input {
  display: none;
}

.maestro-toggle-slider {
  width: 2.5rem;
  height: 1.25rem;
  background: var(--bg-muted);
  border-radius: var(--radius-full);
  position: relative;
  transition: background var(--transition-fast);
}

.maestro-toggle-slider::after {
  content: '';
  position: absolute;
  width: 1rem;
  height: 1rem;
  background: var(--text-primary);
  border-radius: 50%;
  top: 0.125rem;
  left: 0.125rem;
  transition: transform var(--transition-fast);
}

.maestro-toggle input:checked + .maestro-toggle-slider {
  background: var(--accent-muted);
}

.maestro-toggle input:checked + .maestro-toggle-slider::after {
  transform: translateX(1.25rem);
  background: var(--accent);
}

.maestro-context-preview {
  font-size: 0.85rem;
  padding: 0.5rem 0;
}

.maestro-label {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.maestro-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.maestro-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.maestro-chip:hover {
  border-color: var(--accent);
  background: var(--bg-muted);
}

.maestro-chip input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
}

.maestro-chip:has(input:checked) {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.maestro-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.maestro-field-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

.maestro-select {
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--bg-base);
  color: var(--text-primary);
  max-width: 8rem;
}

.maestro-field input[type="range"] {
  width: 100%;
  max-width: 12rem;
  margin-top: 0.25rem;
}

.maestro-slider-value {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}


.site-header-nav-hidden .header-inner {
  width: 100%;
}

.site-header-compact {
  display: none;
}

body.maestro-nav-hidden .site-header {
  display: none;
}

body.maestro-fp-pending .page-main,
body.maestro-fp-pending .site-footer {
  visibility: hidden;
  opacity: 0;
}


.article-other-posts {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-default);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.article-other-posts .section-header {
  margin-bottom: 1rem;
}

.article-other-posts .section-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  color: var(--text-primary);
}

.article-other-posts .section-subtitle {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.article-other-posts .post-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ---- Selection ---- */

::selection {
  background: rgba(99, 102, 241, 0.6);
  color: #fff;
}