/* ============================================================================
   CONTENT SECTION STYLES v2
   Alle Styles sind unter #contentSection gescopet, um Konflikte mit tool.css
   zu vermeiden. Einbinden in quiz-template.php:
   <link rel="stylesheet" href="../../css/content.css" />
   ============================================================================ */

/* --- Layout & Grundstruktur --- */

#contentSection {
  max-width: 860px;
  margin: 0 auto;
  padding-bottom: 2rem;
}

#contentSection .content-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

#contentSection .content-header h1 {
  font-size: 2rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

#contentSection .content-header p {
  font-size: 1.05rem;
  color: var(--grey-2);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* --- Content Card (Hauptbaustein) --- */

#contentSection .content-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 1.5rem;
}

#contentSection .content-card h2 {
  font-size: 1.4rem;
  color: var(--shade-2);
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--tint-2);
}

#contentSection .content-card h3 {
  font-size: 1.15rem;
  color: var(--grey-5);
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

#contentSection .content-card h4 {
  font-size: 1rem;
  color: var(--grey-5);
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

#contentSection .content-card p {
  color: var(--grey-4);
  line-height: 1.7;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

#contentSection .content-card p:last-child {
  margin-bottom: 0;
}

/* --- Inline-Text-Hervorhebungen --- */

#contentSection strong {
  color: var(--grey-5);
  font-weight: 600;
}

#contentSection em {
  color: var(--primary);
  font-style: italic;
}

#contentSection .highlight {
  background: var(--tint-2);
  color: var(--shade-2);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9em;
}

/* --- Listen innerhalb von Content Cards --- */

#contentSection .content-card ul,
#contentSection .content-card ol {
  margin: 0.75rem 0 1rem 0;
  padding-left: 0;
  list-style: none;
}

#contentSection .content-card ul li,
#contentSection .content-card ol li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.5rem;
  color: var(--grey-4);
  line-height: 1.6;
  font-size: 0.95rem;
}

#contentSection .content-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

#contentSection .content-card ol {
  counter-reset: content-counter;
}

#contentSection .content-card ol li {
  counter-increment: content-counter;
}

#contentSection .content-card ol li::before {
  content: counter(content-counter) ".";
  position: absolute;
  left: 0;
  top: 0.5rem;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
}

/* --- Info-Box / Hinweis-Box --- */

#contentSection .info-box {
  background: var(--tint-1);
  border-left: 4px solid var(--primary);
  border-radius: 0 12px 12px 0;
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
}

#contentSection .info-box p {
  color: var(--grey-4);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

#contentSection .info-box p:last-child {
  margin-bottom: 0;
}

#contentSection .info-box strong {
  color: var(--primary);
}

#contentSection .info-box.tip {
  border-left-color: #27ae60;
}

#contentSection .info-box.tip strong {
  color: #27ae60;
}

#contentSection .info-box.warning {
  border-left-color: #e74c3c;
}

#contentSection .info-box.warning strong {
  color: #e74c3c;
}

/* --- Tabellen --- */

#contentSection .content-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0;
  border-radius: 12px;
  border: 1px solid var(--tint-2);
}

#contentSection .content-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 400px;
}

#contentSection .content-table thead {
  background: var(--primary);
}

#contentSection .content-table th {
  padding: 0.875rem 1rem;
  text-align: left;
  font-weight: 600;
  color: white;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

#contentSection .content-table th:first-child {
  border-radius: 11px 0 0 0;
}

#contentSection .content-table th:last-child {
  border-radius: 0 11px 0 0;
}

#contentSection .content-table td {
  padding: 0.75rem 1rem;
  color: var(--grey-4);
  border-bottom: 1px solid var(--tint-2);
  vertical-align: top;
  line-height: 1.5;
}

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

#contentSection .content-table tbody tr:nth-child(even) {
  background: var(--tint-1);
}

#contentSection .content-table tbody tr:hover {
  background: var(--tint-2);
}

/* ============================================================================
   BILDER & MEDIEN
   ============================================================================ */

/* --- Einzelbild mit Beschriftung --- */

#contentSection .content-image {
  margin: 1.5rem 0;
  text-align: center;
}

#contentSection .content-image img {
  display: inline-block;
  max-width: 100%;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#contentSection .content-image img:hover {
  transform: scale(1.01);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

#contentSection .content-image figcaption,
#contentSection .content-image .image-caption {
  display: block;
  font-size: 0.8rem;
  color: var(--grey-2);
  margin-top: 0.75rem;
  font-style: italic;
  line-height: 1.4;
}

/* Groessen-Varianten */
#contentSection .content-image.small img {
  max-width: 300px;
}

#contentSection .content-image.medium img {
  max-width: 500px;
}

#contentSection .content-image.full img {
  max-width: 100%;
  width: 100%;
}

/* --- Bild-Galerie (Grid) --- */

#contentSection .image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

#contentSection .gallery-item {
  text-align: center;
}

#contentSection .gallery-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#contentSection .gallery-item img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

#contentSection .gallery-item .gallery-caption {
  font-size: 0.8rem;
  color: var(--grey-2);
  margin-top: 0.5rem;
  line-height: 1.4;
}

/* --- Technik-Showcase (Bild/GIF + Beschreibung nebeneinander) --- */

#contentSection .technique-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--tint-1);
  border-radius: 12px;
  margin: 1rem 0;
  border: 1px solid var(--tint-2);
}

#contentSection .technique-media {
  flex-shrink: 0;
  width: 240px;
}

#contentSection .technique-media img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

#contentSection .technique-media .media-caption {
  font-size: 0.75rem;
  color: var(--grey-2);
  margin-top: 0.5rem;
  text-align: center;
  font-style: italic;
}

#contentSection .technique-info {
  flex: 1;
  min-width: 0;
}

#contentSection .technique-info h4 {
  font-size: 1.05rem;
  color: var(--grey-5);
  font-weight: 600;
  margin-bottom: 0.5rem;
  margin-top: 0;
}

#contentSection .technique-info p {
  font-size: 0.9rem;
  color: var(--grey-4);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

#contentSection .technique-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: var(--primary);
  color: white;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

/* --- Vorher / Nachher Vergleich --- */

#contentSection .compare-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
}

#contentSection .compare-side {
  text-align: center;
  padding: 1rem;
  background: var(--tint-1);
  border-radius: 12px;
  border: 1px solid var(--tint-2);
}

#contentSection .compare-label {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

#contentSection .compare-side.before .compare-label {
  background: var(--tint-2);
  color: var(--grey-4);
}

#contentSection .compare-side.after .compare-label {
  background: var(--primary);
  color: white;
}

#contentSection .compare-side img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

#contentSection .compare-desc {
  font-size: 0.85rem;
  color: var(--grey-4);
  margin-top: 0.75rem;
  line-height: 1.5;
}

/* --- Anatomie-Figur mit Legende --- */

#contentSection .anatomy-figure {
  position: relative;
  margin: 1.5rem 0;
  text-align: center;
}

#contentSection .anatomy-figure img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

#contentSection .anatomy-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.5rem;
  margin-top: 1rem;
  text-align: left;
}

#contentSection .legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--grey-4);
  line-height: 1.4;
}

#contentSection .legend-number {
  width: 24px;
  height: 24px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* --- Media Embed (GIF mit Label) --- */

#contentSection .media-embed {
  margin: 1.5rem 0;
  text-align: center;
}

#contentSection .media-embed img {
  display: inline-block;
  max-width: 100%;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

#contentSection .media-embed .media-label {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: var(--grey-5);
  color: white;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#contentSection .media-embed .media-description {
  font-size: 0.85rem;
  color: var(--grey-2);
  margin-top: 0.75rem;
  line-height: 1.5;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Video (iframe 16:9) --- */

#contentSection .video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  margin: 1.5rem 0;
}

#contentSection .video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
}

/* ============================================================================
   MEDIZIN-SPEZIFISCHE BAUSTEINE
   ============================================================================ */

/* --- Indikation / Kontraindikation --- */

#contentSection .indication-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
}

#contentSection .indication-box {
  padding: 1.25rem;
  border-radius: 12px;
  border: 1px solid;
}

#contentSection .indication-box.positive {
  background: #f0faf4;
  border-color: #c3e6cb;
}

#contentSection .indication-box.negative {
  background: #fdf0ef;
  border-color: #f5c6cb;
}

#contentSection .indication-title {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#contentSection .indication-box.positive .indication-title {
  color: #27ae60;
}

#contentSection .indication-box.negative .indication-title {
  color: #e74c3c;
}

#contentSection .indication-box ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

#contentSection .indication-box li {
  position: relative;
  padding: 0.3rem 0 0.3rem 1.25rem;
  font-size: 0.88rem;
  color: var(--grey-4);
  line-height: 1.5;
}

#contentSection .indication-box.positive li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: #27ae60;
  font-weight: 700;
}

#contentSection .indication-box.negative li::before {
  content: "-";
  position: absolute;
  left: 0;
  color: #e74c3c;
  font-weight: 700;
  font-size: 1.1em;
}

/* --- Befund-Zusammenfassung --- */

#contentSection .finding-card {
  border-left: 4px solid var(--primary);
  background: white;
  border-radius: 0 12px 12px 0;
  padding: 1.25rem 1.5rem;
  margin: 0.75rem 0;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}

#contentSection .finding-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

#contentSection .finding-text {
  font-size: 0.9rem;
  color: var(--grey-4);
  line-height: 1.6;
}

/* --- Parameter-Box (Dosierung, Werte) --- */

#contentSection .param-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

#contentSection .param-item {
  text-align: center;
  padding: 1rem;
  background: var(--tint-1);
  border-radius: 10px;
  border: 1px solid var(--tint-2);
}

#contentSection .param-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

#contentSection .param-label {
  font-size: 0.8rem;
  color: var(--grey-3);
  font-weight: 500;
}

/* ============================================================================
   AKKORDEON
   ============================================================================ */

#contentSection .accordion {
  margin: 1rem 0;
}

#contentSection .accordion-item {
  border: 1px solid var(--tint-2);
  border-radius: 12px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

#contentSection .accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: white;
  cursor: pointer;
  transition: background 0.2s ease;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--grey-5);
}

#contentSection .accordion-header:hover {
  background: var(--tint-1);
}

#contentSection .accordion-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  color: var(--primary);
  flex-shrink: 0;
  margin-left: 1rem;
}

#contentSection .accordion-item.open .accordion-icon {
  transform: rotate(180deg);
}

#contentSection .accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

#contentSection .accordion-item.open .accordion-body {
  max-height: 5000px;
}

#contentSection .accordion-content {
  padding: 0 1.25rem 1.25rem;
  color: var(--grey-4);
  line-height: 1.7;
  font-size: 0.9rem;
}

#contentSection .accordion-content p {
  margin-bottom: 0.75rem;
}

#contentSection .accordion-content p:last-child {
  margin-bottom: 0;
}

/* Bilder und Technique-Cards innerhalb von Akkordeons */
#contentSection .accordion-content .content-image,
#contentSection .accordion-content .technique-card,
#contentSection .accordion-content .media-embed {
  margin: 1rem 0;
}

/* ============================================================================
   WEITERE STANDARD-BAUSTEINE
   ============================================================================ */

/* --- Definitions-Liste --- */

#contentSection .definition-list {
  margin: 1rem 0;
}

#contentSection .definition-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--tint-2);
  align-items: flex-start;
}

#contentSection .definition-item:last-child {
  border-bottom: none;
}

#contentSection .definition-term {
  min-width: 140px;
  font-weight: 700;
  color: var(--primary);
  font-size: 0.9rem;
  flex-shrink: 0;
}

#contentSection .definition-desc {
  color: var(--grey-4);
  line-height: 1.6;
  font-size: 0.9rem;
}

/* --- Step-by-Step --- */

#contentSection .steps {
  margin: 1rem 0;
  padding-left: 0;
  list-style: none;
}

#contentSection .step-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  align-items: flex-start;
}

#contentSection .step-number {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

#contentSection .step-content {
  flex: 1;
}

#contentSection .step-content h4 {
  font-size: 1rem;
  color: var(--grey-5);
  font-weight: 600;
  margin-bottom: 0.25rem;
  margin-top: 0;
}

#contentSection .step-content p {
  color: var(--grey-4);
  font-size: 0.9rem;
  margin-bottom: 0;
  line-height: 1.6;
}

#contentSection .step-content img {
  display: block;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  margin-top: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

/* --- Tags --- */

#contentSection .tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

#contentSection .tag {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: var(--tint-1);
  border: 1px solid var(--tint-2);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--grey-4);
  font-weight: 500;
}

#contentSection .tag.primary {
  background: var(--tint-2);
  border-color: var(--tint-3);
  color: var(--shade-1);
}

/* --- Spalten-Layouts --- */

#contentSection .two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1rem 0;
}

#contentSection .three-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1rem 0;
}

/* --- Trennlinie --- */

#contentSection .content-divider {
  border: none;
  height: 2px;
  background: var(--tint-2);
  margin: 2rem 0;
  border-radius: 1px;
}

/* --- Merksatz --- */

#contentSection .content-quote {
  background: linear-gradient(135deg, var(--tint-1) 0%, white 100%);
  border-left: 4px solid var(--primary);
  border-radius: 0 16px 16px 0;
  padding: 1.5rem 2rem;
  margin: 1.5rem 0;
  font-size: 1.05rem;
  color: var(--grey-5);
  font-weight: 500;
  line-height: 1.6;
  font-style: italic;
}

/* ============================================================================
   KOMPAKTE NAVIGATION
   ============================================================================ */

.nav-menu .nav-group-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 1rem 0.25rem;
  margin-top: 0.5rem;
}

.nav-menu .nav-group-title:first-of-type {
  margin-top: 0;
}

.nav-menu.compact a {
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
}

.nav-menu.compact {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--tint-2) transparent;
}

.nav-menu.compact::-webkit-scrollbar {
  width: 4px;
}

.nav-menu.compact::-webkit-scrollbar-track {
  background: transparent;
}

.nav-menu.compact::-webkit-scrollbar-thumb {
  background: var(--tint-2);
  border-radius: 2px;
}

.nav-menu .nav-sub {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-menu .nav-sub a {
  padding-left: 1.75rem;
  font-size: 0.82rem;
  color: var(--grey-3);
}

.nav-menu .nav-sub a:hover {
  color: var(--primary);
}

.nav-menu a.active {
  background: var(--tint-1);
  color: var(--primary);
  font-weight: 600;
}

/* ============================================================================
   MOBILE RESPONSIVE
   ============================================================================ */

@media (max-width: 768px) {
  #contentSection {
    padding-bottom: 1rem;
  }

  #contentSection .content-header h1 {
    font-size: 1.5rem;
  }

  #contentSection .content-header p {
    font-size: 0.95rem;
  }

  #contentSection .content-card {
    padding: 1.25rem;
    border-radius: 12px;
    margin-bottom: 1rem;
  }

  #contentSection .content-card h2 {
    font-size: 1.2rem;
  }

  #contentSection .content-card h3 {
    font-size: 1.05rem;
  }

  #contentSection .two-columns,
  #contentSection .indication-grid,
  #contentSection .compare-card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  #contentSection .three-columns {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  #contentSection .definition-item {
    flex-direction: column;
    gap: 0.25rem;
  }

  #contentSection .definition-term {
    min-width: unset;
  }

  #contentSection .content-quote {
    padding: 1.25rem 1.5rem;
    font-size: 1rem;
  }

  #contentSection .info-box {
    padding: 1rem 1.25rem;
  }

  #contentSection .accordion-header {
    padding: 0.875rem 1rem;
    font-size: 0.9rem;
  }

  #contentSection .accordion-content {
    padding: 0 1rem 1rem;
  }

  #contentSection .step-item {
    gap: 0.75rem;
  }

  #contentSection .step-number {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  #contentSection .technique-card {
    flex-direction: column;
  }

  #contentSection .technique-media {
    width: 100%;
  }

  #contentSection .image-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  #contentSection .gallery-item img {
    height: 150px;
  }

  #contentSection .anatomy-legend {
    grid-template-columns: 1fr;
  }

  #contentSection .param-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  #contentSection .step-content img {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  #contentSection .content-card {
    padding: 1rem;
  }

  #contentSection .content-table {
    font-size: 0.8rem;
  }

  #contentSection .content-table th,
  #contentSection .content-table td {
    padding: 0.6rem 0.75rem;
  }

  #contentSection .image-gallery {
    grid-template-columns: 1fr;
  }

  #contentSection .gallery-item img {
    height: 200px;
  }
}

/* ============================================================================
   DARK MODE
   ============================================================================ */

@media (prefers-color-scheme: dark) {
  :root:not(.light-mode) #contentSection .content-card {
    background: #252525;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  }

  :root:not(.light-mode) #contentSection .content-card h2 {
    border-bottom-color: #3a3a3a;
    color: var(--shade-2);
  }

  :root:not(.light-mode) #contentSection .info-box {
    background: #2a2a2a;
  }

  :root:not(.light-mode) #contentSection .content-table thead {
    background: var(--primary);
  }

  :root:not(.light-mode) #contentSection .content-table td {
    border-bottom-color: #3a3a3a;
  }

  :root:not(.light-mode) #contentSection .content-table tbody tr:nth-child(even) {
    background: #2a2a2a;
  }

  :root:not(.light-mode) #contentSection .content-table tbody tr:hover {
    background: #333;
  }

  :root:not(.light-mode) #contentSection .content-table-wrapper {
    border-color: #3a3a3a;
  }

  :root:not(.light-mode) #contentSection .accordion-item {
    border-color: #3a3a3a;
  }

  :root:not(.light-mode) #contentSection .accordion-header {
    background: #252525;
    color: #e8e8e8;
  }

  :root:not(.light-mode) #contentSection .accordion-header:hover {
    background: #2a2a2a;
  }

  :root:not(.light-mode) #contentSection .definition-item {
    border-bottom-color: #3a3a3a;
  }

  :root:not(.light-mode) #contentSection .tag {
    background: #2a2a2a;
    border-color: #3a3a3a;
    color: #ccc;
  }

  :root:not(.light-mode) #contentSection .tag.primary {
    background: #3a2a1a;
    border-color: var(--primary);
    color: var(--tint-3);
  }

  :root:not(.light-mode) #contentSection .content-quote {
    background: linear-gradient(135deg, #2a2a2a 0%, #252525 100%);
  }

  :root:not(.light-mode) #contentSection .content-divider {
    background: #3a3a3a;
  }

  :root:not(.light-mode) #contentSection .highlight {
    background: #3a2a1a;
    color: var(--tint-3);
  }

  :root:not(.light-mode) #contentSection .technique-card {
    background: #2a2a2a;
    border-color: #3a3a3a;
  }

  :root:not(.light-mode) #contentSection .indication-box.positive {
    background: #1a3d2a;
    border-color: #2d5a3d;
  }

  :root:not(.light-mode) #contentSection .indication-box.negative {
    background: #3d1a1a;
    border-color: #5a2d2d;
  }

  :root:not(.light-mode) #contentSection .finding-card {
    background: #252525;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
  }

  :root:not(.light-mode) #contentSection .param-item {
    background: #2a2a2a;
    border-color: #3a3a3a;
  }

  :root:not(.light-mode) #contentSection .compare-side {
    background: #2a2a2a;
    border-color: #3a3a3a;
  }

  :root:not(.light-mode) #contentSection .compare-side.before .compare-label {
    background: #3a3a3a;
    color: #ccc;
  }

  :root:not(.light-mode) .nav-menu .nav-group-title {
    color: var(--tint-3);
  }

  :root:not(.light-mode) .nav-menu .nav-sub a {
    color: #888;
  }
}

html.dark-mode #contentSection .content-card {
  background: #252525;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

html.dark-mode #contentSection .content-card h2 {
  border-bottom-color: #3a3a3a;
  color: var(--shade-2);
}

html.dark-mode #contentSection .info-box {
  background: #2a2a2a;
}

html.dark-mode #contentSection .content-table thead {
  background: var(--primary);
}

html.dark-mode #contentSection .content-table td {
  border-bottom-color: #3a3a3a;
}

html.dark-mode #contentSection .content-table tbody tr:nth-child(even) {
  background: #2a2a2a;
}

html.dark-mode #contentSection .content-table tbody tr:hover {
  background: #333;
}

html.dark-mode #contentSection .content-table-wrapper {
  border-color: #3a3a3a;
}

html.dark-mode #contentSection .accordion-item {
  border-color: #3a3a3a;
}

html.dark-mode #contentSection .accordion-header {
  background: #252525;
  color: #e8e8e8;
}

html.dark-mode #contentSection .accordion-header:hover {
  background: #2a2a2a;
}

html.dark-mode #contentSection .definition-item {
  border-bottom-color: #3a3a3a;
}

html.dark-mode #contentSection .tag {
  background: #2a2a2a;
  border-color: #3a3a3a;
  color: #ccc;
}

html.dark-mode #contentSection .tag.primary {
  background: #3a2a1a;
  border-color: var(--primary);
  color: var(--tint-3);
}

html.dark-mode #contentSection .content-quote {
  background: linear-gradient(135deg, #2a2a2a 0%, #252525 100%);
}

html.dark-mode #contentSection .content-divider {
  background: #3a3a3a;
}

html.dark-mode #contentSection .highlight {
  background: #3a2a1a;
  color: var(--tint-3);
}

html.dark-mode #contentSection .technique-card {
  background: #2a2a2a;
  border-color: #3a3a3a;
}

html.dark-mode #contentSection .indication-box.positive {
  background: #1a3d2a;
  border-color: #2d5a3d;
}

html.dark-mode #contentSection .indication-box.negative {
  background: #3d1a1a;
  border-color: #5a2d2d;
}

html.dark-mode #contentSection .finding-card {
  background: #252525;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
}

html.dark-mode #contentSection .param-item {
  background: #2a2a2a;
  border-color: #3a3a3a;
}

html.dark-mode #contentSection .compare-side {
  background: #2a2a2a;
  border-color: #3a3a3a;
}

html.dark-mode #contentSection .compare-side.before .compare-label {
  background: #3a3a3a;
  color: #ccc;
}

html.dark-mode .nav-menu .nav-group-title {
  color: var(--tint-3);
}

html.dark-mode .nav-menu .nav-sub a {
  color: #888;
}
