/* ==========================================================================
   doodoofart.net - fmhy-inspired stylesheet
   Modern, Dark Mode, Family & Friends Dashboard
   ========================================================================== */

:root {
  --bg-color: #111217;
  --bg-radial: radial-gradient(circle at 50% -20%, #1c202d 0%, #111217 65%);
  --card-bg: #181920;
  --card-hover-bg: #1e202a;
  --card-border: #242632;
  --card-border-hover: #3d4257;

  --text-primary: #f3f4f8;
  --text-secondary: #9ba1b4;
  --text-muted: #6b7280;

  --accent-cyan: #38bdf8;
  --accent-blue: #60a5fa;
  --accent-purple: #b785f6;
  --accent-pink: #f472b6;
  --accent-green: #34d399;
  --accent-yellow: #facc15;
  --accent-amber: #fbbf24;

  --nav-height: 68px;
  --content-max-width: 1180px;
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html, body {
  min-height: 100vh;
  background-color: var(--bg-color);
  background-image: var(--bg-radial);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* --- NAVBAR --- */
.nav-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(17, 18, 23, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  width: 100%;
}

.nav-container {
  max-width: var(--content-max-width);
  margin: 0 auto;
  height: var(--nav-height);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  transition: opacity 0.2s ease;
}

.brand-link:hover {
  opacity: 0.9;
}

.brand-icon {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 7px;
  display: block;
}

.search-pill {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #171821;
  border: 1px solid #282a38;
  border-radius: 9999px;
  padding: 0.38rem 0.85rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-pill:hover {
  border-color: #3e4256;
  color: var(--text-secondary);
}

.search-icon {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

.search-kbd {
  background: #232532;
  border: 1px solid #333647;
  color: #a0a6b8;
  font-size: 0.7rem;
  padding: 1px 6px;
  border-radius: 4px;
  font-family: inherit;
  font-weight: 600;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s ease;
  padding: 0.4rem 0;
  cursor: pointer;
}

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

.nav-chevron {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
  stroke: var(--text-muted);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown:hover .nav-chevron {
  transform: rotate(180deg);
  stroke: var(--text-primary);
}

.dropdown-pane {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 230px;
  background: #171821;
  border: 1px solid #2c2f40;
  border-radius: 12px;
  padding: 0.5rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  z-index: 1100;
  animation: fadeInDown 0.15s ease-out;
}

.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 12px;
}

.nav-dropdown:hover .dropdown-pane {
  display: flex;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.dropdown-item:hover {
  background: #222432;
  color: var(--text-primary);
}

.dropdown-item-icon {
  width: 18px;
  height: 18px;
  opacity: 0.85;
}

.dropdown-badge {
  margin-left: auto;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  font-weight: 600;
}

.nav-socials {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-left: 0.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.social-icon-btn {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, transform 0.2s ease;
}

.social-icon-btn:hover {
  color: var(--text-primary);
  transform: translateY(-1px);
}

.social-icon-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}


/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 4.5rem 1.5rem 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: #ffffff;
  margin-bottom: 0.65rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* Glowing Triangle Hero Graphic */
.hero-art {
  flex-shrink: 0;
  position: relative;
  width: 290px;
  height: 290px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Atmospheric neon radial aura */
.hero-glow {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(56, 189, 248, 0.6) 0%,
    rgba(168, 85, 247, 0.55) 45%,
    rgba(244, 114, 182, 0.35) 70%,
    transparent 100%
  );
  filter: blur(45px);
  opacity: 0.85;
  pointer-events: none;
  animation: pulseGlow 6s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  0% {
    transform: scale(0.95);
    opacity: 0.75;
  }
  100% {
    transform: scale(1.05);
    opacity: 0.95;
  }
}

/* The Glossy Triangle Play Badge */
.triangle-badge {
  position: relative;
  z-index: 2;
  width: 175px;
  height: 175px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.65));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.triangle-badge:hover {
  transform: scale(1.05) rotate(1deg);
}

.triangle-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Glowing Rocket Logo Card */
.hero-rocket-wrap {
  position: relative;
  z-index: 2;
  width: 210px;
  height: 210px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.7), 0 0 35px rgba(56, 189, 248, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #14151a;
}

.hero-rocket-wrap:hover {
  transform: scale(1.05) translateY(-4px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.8), 0 0 50px rgba(183, 133, 246, 0.45);
}

.hero-rocket-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Coming Soon Page Component */
.coming-soon-container {
  min-height: calc(100vh - var(--nav-height) - 100px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
  max-width: 650px;
  margin: 0 auto;
}

.coming-soon-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.coming-soon-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  padding: 12px;
}

.coming-soon-icon img,
.coming-soon-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.coming-soon-icon svg {
  width: 36px;
  height: 36px;
  fill: currentColor;
}

.coming-soon-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.coming-soon-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #252836;
  border: 1px solid #3d4257;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: #2f3345;
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   PAGE BROWSE SECTION & CARD GRID
   ========================================================================== */

.content-section {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
  width: 100%;
}

.section-label {
  text-align: center;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.section-label span {
  color: #ffd166;
}

/* Grid: 4 columns on desktop */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

/* Card Component */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 1.35rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
  min-height: 154px;
}

.card:hover {
  background: var(--card-hover-bg);
  border-color: var(--card-border-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

/* Card Icon Box */
.card-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.2s ease;
}

.card:hover .card-icon-wrap {
  transform: scale(1.06);
}

.card-icon-wrap svg {
  width: 22px;
  height: 22px;
}


/* Icon Color Accents */
.icon-privacy {
  color: var(--accent-pink);
  background: rgba(244, 114, 182, 0.08);
  border-color: rgba(244, 114, 182, 0.15);
}

.icon-ai {
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.15);
}

.icon-streaming {
  color: var(--accent-blue);
  background: rgba(96, 165, 250, 0.08);
  border-color: rgba(96, 165, 250, 0.15);
}

.icon-listening {
  color: var(--accent-purple);
  background: rgba(183, 133, 246, 0.08);
  border-color: rgba(183, 133, 246, 0.15);
}

.icon-games {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.15);
}

.icon-downloading {
  color: var(--accent-yellow);
  background: rgba(250, 204, 21, 0.08);
  border-color: rgba(250, 204, 21, 0.15);
}

.icon-files {
  color: var(--accent-amber);
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.15);
}
.icon-free {
  color: var(--accent-green);
  background: rgba(52, 211, 153, 0.08);
  border-color: rgba(52, 211, 153, 0.15);
}


.card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.card-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.45;
  font-weight: 400;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2.2rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin-bottom: 0.25rem;
}

.footer-links a {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

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

/* ==========================================================================
   RESPONSIVE DESIGN (Tablets & Mobile)
   ========================================================================== */

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

@media (max-width: 768px) {
  .hero-section {
    flex-direction: column-reverse;
    text-align: center;
    padding: 3rem 1.5rem 2.5rem;
    gap: 2rem;
  }

  .hero-content {
    max-width: 100%;
  }

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

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

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .nav-container {
    padding: 0 1rem;
  }

  .search-pill {
    display: none;
  }

  .nav-links {
    gap: 0.9rem;
  }

  .nav-socials {
    display: none;
  }
}

@media (max-width: 520px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .hero-art {
    width: 200px;
    height: 200px;
  }

  .hero-glow {
    width: 190px;
    height: 190px;
  }

  .triangle-badge {
    width: 130px;
    height: 130px;
  }

  .hero-rocket-wrap {
    width: 160px;
    height: 160px;
    border-radius: 24px;
  }

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


/* ==========================================================================
   WIKI / DOCUMENTATION LAYOUT (FMHY Style)
   ========================================================================== */

.doc-page {
  display: flex;
  min-height: calc(100vh - var(--nav-height));
  width: 100%;
  position: relative;
}

/* Left Sidebar */
.doc-sidebar-left {
  width: 290px;
  flex-shrink: 0;
  position: sticky;
  top: var(--nav-height);
  height: calc(100vh - var(--nav-height));
  overflow-y: auto;
  padding: 1.75rem 1rem 3rem 1.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(17, 18, 23, 0.4);
}

.sidebar-category-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0.6rem 0.65rem 0.35rem;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-category-title:first-child {
  margin-top: 0;
}

.sidebar-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0.5rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.15s ease;
  line-height: 1.35;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.sidebar-link.active {
  background: #1c202d;
  color: var(--accent-cyan);
  font-weight: 600;
  box-shadow: inset 2px 0 0 var(--accent-cyan);
}

.sidebar-item-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-item-icon svg {
  width: 16px;
  height: 16px;
}
.sidebar-item-icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
  border-radius: 4px;
}


/* Center Content */
.doc-main {
  flex: 1;
  min-width: 0;
  padding: 2.75rem 3.5rem 5rem 3.5rem;
  max-width: 860px;
  margin: 0 auto;
}

.doc-header {
  margin-bottom: 2rem;
}

.doc-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent-blue);
  text-decoration: underline;
  text-decoration-color: rgba(96, 165, 250, 0.35);
  text-underline-offset: 6px;
  margin-bottom: 0.5rem;
}

.doc-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
}
/* Quick Launch Link Banner (Near Top) */
.doc-quick-link-banner {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.08) 0%, rgba(168, 85, 247, 0.08) 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.quick-link-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.quick-link-badge {
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-cyan);
}

.quick-link-url {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.btn-launch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-blue);
  color: #0b0c10;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn-launch:hover {
  background: #93c5fd;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(96, 165, 250, 0.4);
  color: #0b0c10;
}


/* Feedback Card */
.doc-feedback {
  background: #171821;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.doc-feedback-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.doc-feedback-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.doc-feedback-icon svg {
  width: 18px;
  height: 18px;
}

.doc-feedback-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.doc-feedback-text strong {
  color: var(--text-primary);
  display: block;
  font-size: 0.92rem;
  margin-bottom: 2px;
}

.doc-feedback-btn {
  background: #232532;
  border: 1px solid #36394c;
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.doc-feedback-btn:hover {
  border-color: var(--accent-cyan);
  background: #2a2c3d;
}


/* Tip Callout Box */
.doc-tip {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 2.25rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #d1fae5;
}

.doc-tip-title {
  font-weight: 700;
  color: #34d399;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
}

.doc-h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin: 2.25rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.doc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.doc-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.doc-bullet {
  color: var(--accent-cyan);
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 2px;
}

.doc-list-item strong {
  color: var(--text-primary);
}

.doc-list-item a {
  color: var(--accent-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.doc-card-block {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.doc-card-block h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.doc-card-block p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Right Sidebar (On this page) */
.doc-sidebar-right {
  width: 230px;
  flex-shrink: 0;
  position: sticky;
  top: var(--nav-height);
  height: calc(100vh - var(--nav-height));
  overflow-y: auto;
  padding: 2.75rem 1.5rem 2rem 1rem;
}

.toc-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.toc-link {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
  display: block;
}

.toc-link:hover {
  color: var(--accent-cyan);
}

@media (max-width: 1200px) {
  .doc-sidebar-right {
    display: none;
  }
}

@media (max-width: 860px) {
  .doc-page {
    flex-direction: column;
  }
  .doc-sidebar-left {
    position: static;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--card-border);
    padding: 1rem 1.25rem;
  }
  .doc-main {
    padding: 2rem 1.25rem 4rem;
  }
}

