/* Vortex Forensic - Main Stylesheet */

@font-face {
  font-family: 'Fira Code';
  src: url('../assets/Fonts/Fira_Code/FiraCode-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
}

@font-face {
  font-family: 'Inter';
  src: url('../assets/Fonts/Inter/Inter-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
}

:root {
  --bg-color: #050505;
  --text-color: #e0e0e0;
  --accent-color: #ffffff;
  --secondary-bg: #0a0a0a;
  --border-color: #333333;
  --hover-color: #1a1a1a;
  --font-mono: 'Fira Code', 'JetBrains Mono', monospace;
  --font-sans: 'Inter', sans-serif;
  --transition-speed: 0.3s;
  --link-hover-color: #cccccc;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: #050505;
  /* Immediate paint for dark theme */
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-mono);
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--text-color);
  text-decoration: none;
  transition: color var(--transition-speed);
  position: relative;
}

a::before {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: var(--link-hover-color);
  transition: width var(--transition-speed) ease-in-out;
}

a:hover {
  color: var(--link-hover-color);
}

a:hover::before {
  width: 100%;
}

header {
  padding: 2rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* Glassmorphism subtle effect */
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-direction: row-reverse;
}

.brand-logo {
  height: 4.0rem;
  width: auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--accent-color);
  text-transform: uppercase;
  border: 1px solid var(--accent-color);
  padding: 0.5rem 1rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  font-size: 1rem;
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
}

main {
  flex: 1;
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3 {
  color: var(--accent-color);
  margin-bottom: 1rem;
  font-weight: 700;
}

h1 {
  font-size: 2.25rem;
  letter-spacing: -0.05em;
  line-height: 1.2;
}

h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
}

h3 {
  font-size: 1.25rem;
  margin-top: 2rem;
  padding-top: 0.5rem;
  margin-bottom: 0.5rem;
}

main ul {
  list-style: none;
  margin: 1.5rem 0;
}

main li {
  margin-bottom: 0.8rem;
  position: relative;
  padding-left: 1.5rem;
}

main li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-family: var(--font-mono);
  font-weight: bold;
}

/* Landing Page Specifics */
.hero {
  text-align: center;
  padding: 0;
  min-height: 70vh; /* Ensures hero takes up most of the view on landing */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 1rem auto 3rem;
  color: #888;
}

.cta-button {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--bg-color);
  padding: 1rem 2rem;
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid var(--accent-color);
  transition: all var(--transition-speed);
}

.cta-button:hover {
  background-color: transparent;
  color: var(--accent-color);
}

/* Grid for Programs */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.program-card {
  background-color: var(--secondary-bg);
  border: 1px solid var(--border-color);
  padding: 1.25rem;
  transition: transform var(--transition-speed), border-color var(--transition-speed);
  display: flex;
  flex-direction: column;
  position: relative;
}

.program-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color);
}

.centered-card {
  grid-column: 1 / -1;
  justify-self: center;
  width: 100%;
  max-width: 350px;
}

.program-card h3 {
  font-size: 1.05rem;
  margin-top: 0;
  padding-top: 0;
}

.program-card p {
  color: #aaa;
  font-size: 0.85rem;
  line-height: 1.4;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  flex: 1;
}

.card-link {
  align-self: flex-start;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  position: static;
}

.card-link::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
}

/* Program Detail Page */
.program-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 768px) {
  .program-detail {
    grid-template-columns: 1fr;
  }
}

.program-image-container {
  border: 1px solid var(--border-color);
  padding: 1rem;
  background: var(--secondary-bg);
  cursor: zoom-in;
  transition: transform var(--transition-speed), border-color var(--transition-speed);
  position: relative;
  overflow: hidden;
}

.program-image-container:hover {
  border-color: var(--accent-color);
}

.program-preview {
  width: 100%;
  height: auto;
  min-height: 200px;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  position: relative;
}

.program-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

/* Lightbox / Zoomed State */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  cursor: zoom-out;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-image {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.lightbox-overlay.active .lightbox-image {
  transform: scale(1);
}

.program-info h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.download-section {
  margin-top: 3rem;
  position: relative;
  display: inline-block;
}

.download-group {
  display: flex;
}

.download-main {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--bg-color);
  padding: 1rem 2rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid var(--accent-color);
  cursor: pointer;
  transition: all var(--transition-speed);
  letter-spacing: 0.02em;
  text-decoration: none;
  /* For <a> tags */
}

.download-main:hover {
  background-color: transparent;
  color: var(--accent-color);
  text-decoration: none;
}

.download-main::before {
  display: none;
  /* Disable the standard link underline */
}

.external-links {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.external-link {
  font-size: 0.9rem;
  color: #888;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color var(--transition-speed);
}

.external-link:hover {
  color: var(--accent-color);
}

.external-link::before {
  display: none;
}

.download-dropdown-toggle {
  background-color: var(--accent-color);
  color: var(--bg-color);
  padding: 1rem 1rem;
  border: 1px solid var(--accent-color);
  border-left: 1px solid rgba(0, 0, 0, 0.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: all var(--transition-speed);
}

.download-dropdown-toggle:hover {
  background-color: transparent;
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-top: none;
  list-style: none;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.2s ease;
  z-index: 100;
  margin: 0; /* Reset global main ul margin */
}

.dropdown-menu.show {
  max-height: 200px;
  opacity: 1;
}

.dropdown-menu li {
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 0;
  padding-left: 0;
}

.dropdown-menu li::before {
  content: none;
}

.dropdown-menu li:last-child {
  border-bottom: none;
}

.dropdown-menu a {
  display: block;
  padding: 0.85rem 1rem;
  color: var(--text-color);
  font-size: 0.9rem;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.dropdown-menu a:hover {
  background-color: var(--hover-color);
  color: var(--link-hover-color);
}

/* Footer */
footer {
  padding: 2rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  margin-top: auto;
}

.disclaimer {
  color: #666;
  font-style: italic;
  font-size: 0.85rem;
  line-height: 1.6;
  margin-top: 4rem;
  display: block;
}

footer a {
  color: #888;
  margin: 0 1rem;
}

footer a:hover {
  color: var(--link-hover-color);
}

/* Index Page Specific Locked Footer */
.index-page footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-top: 1px solid var(--border-color);
  padding: 1.5rem 2rem;
}

.index-page main {
  padding-bottom: 10rem;
}

/* Glitch/Scanline placeholder for effect */
.scanline {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom,
      rgba(255, 255, 255, 0),
      rgba(255, 255, 255, 0) 50%,
      rgba(0, 0, 0, 0.1) 50%,
      rgba(0, 0, 0, 0.1));
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.3;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.program-preview {
  width: 100%;
  height: 300px;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #333;
  color: #555;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  position: relative;
  overflow: hidden;
}

.program-preview::before {
  content: "PREVIEW_NO_SIGNAL";
  letter-spacing: 2px;
}

/* Documentation / Repository Layout */
.doc-layout {
  display: flex;
  min-height: 100vh;
}

.doc-sidebar {
  width: 300px;
  background-color: var(--secondary-bg);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  top: 0;
  left: 0;
  z-index: 100;
}

.sidebar-scroll-area {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
  padding-bottom: 2rem;
}

.doc-sidebar h3 {
  color: var(--accent-color);
  font-size: 1.0rem;
  margin: 0;
  text-transform: uppercase;
}

.doc-sidebar h4 {
  color: #ccc;
  font-size: 0.85rem;
  margin: 0;
  font-weight: 500;
}

.category-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 0.5rem;
  margin-top: 1rem;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.category-row.sub {
  margin-top: 0.5rem;
  padding-left: 1rem;
}

.category-row:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.category-icon {
  font-family: var(--font-mono);
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--accent-color);
  user-select: none;
}

.category-content {
  display: none;
  padding-left: 0.5rem;
}

.category-content.active {
  display: block;
}

.doc-sidebar ul {
  list-style: none;
}

.doc-sidebar li {
  margin-bottom: 0.5rem;
}

.doc-sidebar a {
  color: #888;
  text-decoration: none;
  font-size: 0.95rem;
  display: block;
  padding: 0.25rem 0;
}

.doc-sidebar a::before {
  display: none;
}

.doc-sidebar a:hover,
.doc-sidebar a.active {
  color: var(--link-hover-color);
  padding-left: 0.5rem;
  border-left: 2px solid var(--link-hover-color);
}

.sidebar-home-link {
  margin-bottom: 2rem;
  display: block;
  color: var(--accent-color) !important;
  font-weight: bold;
  border: 1px solid var(--accent-color);
  text-align: center;
  padding: 0.5rem;
}

.sidebar-home-link:hover {
  background-color: rgba(255, 255, 255, 0.05);
  padding-left: 0.5rem;
  border-left: 1px solid var(--accent-color);
}

/* Sub-group li: no bottom margin so sub-rows are tight */
.doc-sidebar li.sub-group {
  margin-bottom: 0;
}

.doc-content {
  margin-left: 300px;
  /* Width of sidebar */
  padding: 4rem;
  flex: 1;
  max-width: 900px;
  /* Readable line length */
}

/* License Page Specifics */
.license-block {
  background-color: #0d0d0d;
  border: 1px solid #222;
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  color: #aaa;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
}

.license-block p {
  margin: 0;
  color: inherit;
}

.doc-content ul,
.doc-content ol {
  padding-left: 2.5rem;
  margin-bottom: 1rem;
}

.doc-content li {
  margin-bottom: 0.5rem;
}

.eli5-box {
  background-color: #111;
  border: 1px dashed #444;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 4px;
  position: relative;
}

.eli5-box::before {
  content: "ELI5 (Explain Like I'm 5)";
  position: absolute;
  top: -10px;
  left: 1rem;
  background-color: var(--bg-color);
  padding: 0 0.5rem;
  font-size: 0.8rem;
  color: var(--accent-color);
  font-weight: bold;
}

.eli5-hidden .eli5-box {
  display: none;
}

/* Sidebar Toggle for ELI5 */
.eli5-toggle-container {
  background-color: var(--secondary-bg);
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #fff;
  z-index: 10;
}

.eli5-toggle-container input {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background-color: #000;
  border: 2px solid #fff;
  border-radius: 2px;
  position: relative;
  display: inline-block;
}

.eli5-toggle-container input:checked::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 5px;
  width: 4px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Mobile Responsiveness for Docs */
@media (max-width: 900px) {
  .doc-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .doc-sidebar.open {
    transform: translateX(0);
  }

  .doc-content {
    margin-left: 0;
    padding: 2rem;
  }

  .mobile-menu-toggle {
    display: block;
    /* Visible on mobile */
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--accent-color);
    color: var(--bg-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 200;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    cursor: pointer;
  }
}

/* ── Code Block (repository pages) ── */
.code-block {
  background: #111;
  padding: 1rem;
  border: 1px solid #333;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  color: #ddd;
}

/* SEO Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.note-box {
  border-left: 3px solid var(--accent-color);
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #ccc;
}

/* ── Registry Setcard ── */
.setcard {
  background: #0d0d0d;
  border: 1px solid #2a2a2a;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
}

.setcard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, #888 0%, #222 100%);
}

.setcard-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  font-size: 0.875rem;
}

.setcard-row {
  display: contents;
}

.setcard-row:not(:last-child) .setcard-label,
.setcard-row:not(:last-child) .setcard-value {
  border-bottom: 1px solid #1e1e1e;
}

/* Index Page Setcards */
.index-sections {
  margin-top: 4rem;
  padding-bottom: 4rem;
}

.index-sections .setcard {
  margin-bottom: 4rem;
  background: linear-gradient(165deg, #0a0a0a 0%, #050505 100%);
  border: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: border-color 0.3s ease;
}

.index-sections .setcard:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.index-sections .setcard-label {
  color: var(--accent-color);
  background: rgba(255, 255, 255, 0.01);
  font-weight: 700;
}

.index-sections .setcard-value p {
  margin-bottom: 1rem;
}

.index-sections .setcard-value ul {
  margin: 1rem 0;
}

.index-sections .setcard-value li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
}

.index-sections .setcard-value a {
  color: var(--accent-color);
  font-weight: 600;
}


.setcard-label {
  padding: 0.85rem 1.2rem;
  color: #555;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  background: #0a0a0a;
  display: flex;
  align-items: flex-start;
  padding-top: 0.95rem;
}

.setcard-value {
  padding: 0.85rem 1.4rem;
  color: #ccc;
  line-height: 1.55;
  border-left: 1px solid #1e1e1e;
}

.setcard-value code {
  font-family: var(--font-mono);
  background: #111;
  padding: 0.1em 0.4em;
  border: 1px solid #333;
  font-size: 0.8rem;
  color: #e0e0e0;
}

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid #444;
  padding: 0.15em 0.55em;
  color: #bbb;
  vertical-align: middle;
}

.badge-yes {
  border-color: #1e3a1e;
  color: #5cb85c;
}

.badge-partial {
  border-color: #3a3010;
  color: #c8a030;
}

.badge-no {
  border-color: #3a2a2a;
  color: #c06060;
}

/* ── Data Tables (repository pages) ── */
.doc-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.875rem;
  font-family: var(--font-mono);
}

.doc-content table thead tr {
  background: #0d0d0d;
  border-bottom: 1px solid #333;
}

.doc-content table th {
  padding: 0.75rem 1rem;
  text-align: left;
  color: #555;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  border: 1px solid #1e1e1e;
}

.doc-content table td {
  padding: 0.75rem 1rem;
  color: #ccc;
  border: 1px solid #1e1e1e;
  vertical-align: top;
  line-height: 1.55;
}

.doc-content table td:first-child {
  color: var(--accent-color);
  white-space: nowrap;
  font-weight: 600;
  width: 110px;
}

.doc-content table tbody tr:hover {
  background-color: #111;
}

/* Hash Display Block */
.hash-container {
  margin-top: 1.5rem;
  background: var(--secondary-bg);
  border: 1px solid var(--border-color);
  padding: 1rem;
  position: relative;
}

.hash-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 0.5rem;
  letter-spacing: 0.1em;
  font-family: var(--font-mono);
  font-weight: 700;
}

.hash-value {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-color);
  word-break: break-all;
  display: block;
  background: #000;
  padding: 0.75rem;
  border: 1px solid #222;
}

/* ── Process List Table (Memory Repository) ── */
.process-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.875rem;
  font-family: var(--font-mono);
}

.process-table thead tr {
  background: #0d0d0d;
  border-bottom: 1px solid #333;
}

.process-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  color: #555;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  border: 1px solid #1e1e1e;
}

.process-table td {
  padding: 0.75rem 1rem;
  color: #ccc;
  border: 1px solid #1e1e1e;
  vertical-align: top;
  line-height: 1.55;
}

.process-table td.proc-name {
  color: var(--accent-color);
  white-space: nowrap;
  font-weight: 600;
  width: 140px;
}

.process-table td.proc-type {
  white-space: nowrap;
  width: 100px;
  vertical-align: top;
}

.process-table tbody tr:hover {
  background-color: #111;
}

.badge-service {
  border-color: #1a2a3a !important;
  color: #5080a0 !important;
}

.badge-process {
  border-color: #2a2a2a !important;
  color: #888 !important;
}

.desc-cell {
  cursor: pointer;
  position: relative;
  user-select: none;
}

.desc-preview {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.desc-preview-text {
  color: #aaa;
  max-width: 100%;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.desc-toggle-icon {
  flex-shrink: 0;
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--accent-color);
  font-family: var(--font-mono);
  line-height: 1;
  padding-top: 0.1rem;
}

.desc-full {
  display: none;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #222;
  white-space: normal;
  color: #ccc;
  line-height: 1.65;
}

.desc-full.open {
  display: block;
}

.desc-full code {
  font-family: var(--font-mono);
  background: #111;
  padding: 0.1em 0.4em;
  border: 1px solid #333;
  font-size: 0.8rem;
  color: #e0e0e0;
}

.desc-full .proc-note {
  display: block;
  margin-top: 0.6rem;
  font-style: italic;
  color: #555;
  font-size: 0.82rem;
}
