/**
 * CPT single — prosty styl kart na wszystkich wpisach.
 * Cienie i gradienty schodzą. Kolory CPT, red flags i relacje zostają.
 */

:is(
  .single-muscle,
  .single-bone,
  .single-nerve,
  .single-joint,
  .single-blood_vessel,
  .single-clinical_test,
  .single-pathology,
  .single-journal_watch,
  .single-anatomy_note,
  .single-uklad
) {
  --fe-card-bg: #fffaf4;
  --fe-card-line: #ecd4c8;
  --fe-card-radius: 12px;
}

html[data-fe-theme="dark"] :is(
  .single-muscle,
  .single-bone,
  .single-nerve,
  .single-joint,
  .single-blood_vessel,
  .single-blood-vessel,
  .single-clinical_test,
  .single-clinical-test,
  .single-pathology,
  .single-journal_watch,
  .single-anatomy_note,
  .single-uklad
) {
  --fe-card-bg: #1a1c18;
  --fe-card-line: rgba(190, 145, 120, 0.25);
  --fe-card-radius: 12px;
}

/* Keep the atlas table of contents readable when the site theme is dark.
   This follows the sidebar into its compact mobile presentation as well. */
html[data-fe-theme="dark"] :is(
  .single-muscle,
  .single-bone,
  .single-nerve,
  .single-joint,
  .single-blood_vessel,
  .single-clinical_test,
  .single-pathology,
  .single-journal_watch,
  .single-anatomy_note,
  .single-uklad
) .fe-toc-sidebar {
  background: #151713 !important;
  border-color: #3d4036 !important;
  color: #f5f1e8 !important;
}

html[data-fe-theme="dark"] :is(
  .single-muscle,
  .single-bone,
  .single-nerve,
  .single-joint,
  .single-blood_vessel,
  .single-clinical_test,
  .single-pathology,
  .single-journal_watch,
  .single-anatomy_note,
  .single-uklad
) :is(.fe-toc-sidebar__header, .fe-toc-sidebar__nav) {
  background: transparent !important;
  border-color: #3d4036 !important;
}

html[data-fe-theme="dark"] :is(
  .single-muscle,
  .single-bone,
  .single-nerve,
  .single-joint,
  .single-blood_vessel,
  .single-clinical_test,
  .single-pathology,
  .single-journal_watch,
  .single-anatomy_note,
  .single-uklad
) .fe-toc-sidebar :is(.fe-toc-sidebar__title, .fe-toc-sidebar__subtitle) {
  color: #c7d4ff !important;
}

html[data-fe-theme="dark"] :is(
  .single-muscle,
  .single-bone,
  .single-nerve,
  .single-joint,
  .single-blood_vessel,
  .single-clinical_test,
  .single-pathology,
  .single-journal_watch,
  .single-anatomy_note,
  .single-uklad
) .fe-toc-sidebar__link {
  background: transparent !important;
  color: #f5f1e8 !important;
}

html[data-fe-theme="dark"] :is(
  .single-muscle,
  .single-bone,
  .single-nerve,
  .single-joint,
  .single-blood_vessel,
  .single-clinical_test,
  .single-pathology,
  .single-journal_watch,
  .single-anatomy_note,
  .single-uklad
) .fe-toc-sidebar__link:is(:hover, :focus-visible, .active, .fe-toc-sidebar__link--active) {
  background: #263249 !important;
  border-left-color: #9bb4ff !important;
  color: #ffffff !important;
}

html[data-fe-theme="dark"] :is(
  .single-muscle,
  .single-bone,
  .single-nerve,
  .single-joint,
  .single-blood_vessel,
  .single-clinical_test,
  .single-pathology,
  .single-journal_watch,
  .single-anatomy_note,
  .single-uklad
) .fe-toc-sidebar__mobile-toggle {
  background: #1d211b !important;
  border-color: #4a4e43 !important;
  color: #f5f1e8 !important;
}

html :is(.single-muscle, .single-bone, .single-nerve, .single-joint, .single-blood_vessel, .single-clinical_test, .single-pathology, .single-journal_watch, .single-anatomy_note, .single-uklad)
  :is(
    .fe-muscle-summary-card,
    .fe-muscle-visual-card,
    .fe-anatomy-card,
    .fe-clinical-box,
    .fe-clinical-box--muscle,
    .fe-muscle-functional-card,
    .fe-muscle-biomechanics-table,
    .fe-network-section-container,
    .fe-network-section-container--collapsible,
    .fe-network-group,
    .fe-network-card,
    .fe-bib-item,
    .fe-toc-sidebar,
    .fe-clinical-purpose-lead,
    .fe-featured-media-container,
    .fe-hero,
    .fe-hero-new,
    .fe-hero__image,
    .fe-metric,
    .fe-panel,
    .fe-panel__inner,
    .fe-clinical-card,
    .fe-jw-editorial,
    .fe-jw-implication,
    .fe-jw-citation,
    .fe-reference-item,
    .fe-content-block
  ) {
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
}

html :is(.single-muscle, .single-bone, .single-nerve, .single-joint, .single-blood_vessel, .single-clinical_test, .single-pathology, .single-journal_watch, .single-anatomy_note, .single-uklad)
  :is(
    .fe-muscle-summary-card,
    .fe-muscle-visual-card,
    .fe-clinical-box:not(.fe-clinical-box--red-flags),
    .fe-clinical-box--muscle,
    .fe-muscle-functional-card,
    .fe-clinical-purpose-lead,
    .fe-network-section-container,
    .fe-toc-sidebar,
    .fe-panel__inner,
    .fe-jw-editorial,
    .fe-jw-implication
  ) {
  background: var(--fe-card-bg) !important;
  border-color: var(--fe-card-line) !important;
  border-radius: var(--fe-card-radius) !important;
}

html :is(.single-muscle, .single-bone, .single-nerve, .single-joint, .single-blood_vessel, .single-clinical_test, .single-pathology, .single-journal_watch, .single-anatomy_note, .single-uklad)
  :is(.fe-anatomy-card, .fe-clinical-box, .fe-muscle-functional-card, .fe-muscle-visual-card, .fe-network-group, .fe-network-card, .fe-bib-item, .fe-metric, .fe-clinical-card, .fe-differential-item__link):hover,
html :is(.single-muscle, .single-bone, .single-nerve, .single-joint, .single-blood_vessel, .single-clinical_test, .single-pathology, .single-journal_watch, .single-anatomy_note, .single-uklad)
  :is(.fe-anatomy-card, .fe-clinical-box, .fe-muscle-functional-card, .fe-muscle-visual-card, .fe-network-group, .fe-network-card, .fe-bib-item):focus-within {
  box-shadow: none !important;
  transform: none !important;
  filter: none !important;
}

html:not([data-fe-theme="dark"]) body.single-pathology .fe-clinical-box--red-flags {
  background: #fff5f5 !important;
  border-color: #f5b8b8 !important;
  box-shadow: none !important;
}

html:not([data-fe-theme="dark"]) body.single-muscle .fe-clinical-box--muscle,
html:not([data-fe-theme="dark"]) body.single-muscle .fe-muscle-summary-card,
html:not([data-fe-theme="dark"]) body.single-muscle .fe-muscle-functional-card,
html:not([data-fe-theme="dark"]) body.single-clinical_test .fe-clinical-purpose-lead {
  background: #fffaf4 !important;
  background-image: none !important;
  box-shadow: none !important;
}

html :is(.single-muscle, .single-bone, .single-nerve, .single-joint, .single-blood_vessel, .single-clinical_test, .single-pathology) .fe-muscle-visual-card {
  min-height: 0;
}

html :is(.single-muscle, .single-bone, .single-nerve, .single-joint, .single-blood_vessel, .single-clinical_test, .single-pathology) .fe-muscle-visual-card__image,
html :is(.single-muscle, .single-bone, .single-nerve, .single-joint, .single-blood_vessel, .single-clinical_test, .single-pathology) .fe-muscle-visual-card__fallback {
  min-height: 240px;
}

html :is(.single-muscle, .single-bone, .single-nerve, .single-joint, .single-blood_vessel, .single-clinical_test, .single-pathology) .fe-muscle-visual-card__overlay,
html :is(.single-muscle, .single-bone, .single-nerve, .single-joint, .single-blood_vessel, .single-clinical_test, .single-pathology) .fe-featured-media-overlay {
  position: static !important;
  inset: auto !important;
  opacity: 1 !important;
  padding: 10px 14px !important;
  background: #fffaf4 !important;
  background-image: none !important;
}

html :is(.single-muscle, .single-bone, .single-nerve, .single-joint, .single-blood_vessel, .single-clinical_test, .single-pathology) .fe-featured-media-caption,
html :is(.single-muscle, .single-bone, .single-nerve, .single-joint, .single-blood_vessel, .single-clinical_test, .single-pathology) .fe-featured-media-caption a,
html :is(.single-muscle, .single-bone, .single-nerve, .single-joint, .single-blood_vessel, .single-clinical_test, .single-pathology) .fe-featured-media-attr {
  color: #475569 !important;
}

html :is(.single-muscle, .single-bone, .single-nerve, .single-joint, .single-blood_vessel, .single-clinical_test, .single-pathology) .fe-featured-media-zoom-icon {
  opacity: 1;
  background: #fffaf4;
  border: 1px solid #ecd4c8;
  box-shadow: none;
}

html :is(.single-muscle, .single-bone, .single-nerve, .single-joint, .single-blood_vessel, .single-clinical_test, .single-pathology) .fe-biomechanics-layout,
html body.single-muscle .fe-biomechanics-layout--muscle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 16px;
}

html body.single-muscle .fe-muscle-functional-card,
html body.single-muscle .fe-clinical-box--muscle,
html :is(.single-bone, .single-nerve, .single-joint, .single-blood_vessel, .single-clinical_test) .fe-biomechanics-layout > .fe-readability,
html :is(.single-bone, .single-nerve, .single-joint, .single-blood_vessel, .single-clinical_test) .fe-biomechanics-layout > .fe-clinical-box {
  height: 100%;
  display: flex;
  flex-direction: column;
}

html body.single-muscle .fe-muscle-biomechanics-aside {
  display: contents;
}

html body.single-muscle .fe-clinical-box--muscle .fe-clinical-box__title,
html body.single-muscle .fe-muscle-functional-card__head h3 {
  color: #c2410c;
}

.fe-biomech-issues {
  grid-column: 1 / -1;
  padding: 14px 18px;
  border: 1px solid #ecd4c8;
  border-radius: 12px;
  background: #fffaf4;
}

.fe-clinical-box__issues-label {
  margin: 0 0 10px;
  font-family: var(--fe-font-sans, "Plus Jakarta Sans", sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c2410c;
}

html :is(.single-bone, .single-pathology, .single-nerve, .single-joint, .single-clinical_test, .single-blood_vessel) .fe-clinical-box__issues-label {
  color: var(--fe-accent, #c2410c);
}

.fe-network-chip--muted {
  border-color: #ecd4c8;
  color: #7c2d12;
  background: #fff7ed;
  cursor: default;
}

html :is(.single-muscle, .single-bone, .single-nerve, .single-joint, .single-blood_vessel, .single-clinical_test, .single-pathology) .fe-differential-item__link:hover {
  box-shadow: none !important;
  transform: none !important;
}

@media (max-width: 820px) {
  html :is(.single-muscle, .single-bone, .single-nerve, .single-joint, .single-blood_vessel, .single-clinical_test, .single-pathology) .fe-biomechanics-layout,
  html body.single-muscle .fe-biomechanics-layout--muscle {
    grid-template-columns: 1fr;
  }
}

/* Keep this override after the shared card rules so the light card token cannot
   repaint the table of contents in dark mode. */
html[data-fe-theme="dark"] body:is(
  .single-muscle,
  .single-bone,
  .single-nerve,
  .single-joint,
  .single-blood_vessel,
  .single-blood-vessel,
  .single-clinical_test,
  .single-clinical-test,
  .single-pathology,
  .single-journal_watch,
  .single-anatomy_note,
  .single-uklad
) .fe-toc-sidebar {
  background: #151713 !important;
  border-color: #3d4036 !important;
  color: #f5f1e8 !important;
}

html[data-fe-theme="dark"] body:is(
  .single-muscle,
  .single-bone,
  .single-nerve,
  .single-joint,
  .single-blood_vessel,
  .single-blood-vessel,
  .single-clinical_test,
  .single-clinical-test,
  .single-pathology,
  .single-journal_watch,
  .single-anatomy_note,
  .single-uklad
) .fe-toc-sidebar :is(.fe-toc-sidebar__header, .fe-toc-sidebar__nav) {
  background: transparent !important;
  border-color: #3d4036 !important;
}

/* ==========================================================================
   Kompleksowe wsparcie trybu ciemnego (Dark Mode) dla wszystkich CPT
   ========================================================================== */

html[data-fe-theme="dark"] :is(
  .single-muscle,
  .single-bone,
  .single-nerve,
  .single-joint,
  .single-blood_vessel,
  .single-blood-vessel,
  .single-clinical_test,
  .single-clinical-test,
  .single-pathology,
  .single-journal_watch,
  .single-anatomy_note,
  .single-uklad
) :is(
  .fe-muscle-summary-card,
  .fe-muscle-visual-card,
  .fe-clinical-box:not(.fe-clinical-box--red-flags):not(.fe-refer-card--urgent):not(.fe-refer-card--planned),
  .fe-clinical-box--muscle,
  .fe-muscle-functional-card,
  .fe-clinical-purpose-lead,
  .fe-network-section-container,
  .fe-network-section-container--collapsible,
  .fe-panel__inner,
  .fe-jw-editorial,
  .fe-jw-implication,
  .fe-anatomy-card:not(.fe-refer-card--urgent):not(.fe-refer-card--planned)
) {
  background: #1a1c18 !important;
  border-color: rgba(190, 145, 120, 0.25) !important;
  color: #ded9d2 !important;
  box-shadow: none !important;
}

/* Nagłówki sekcji na ciemnym tle — wysoki kontrast i czytelność */
html[data-fe-theme="dark"] :is(
  .single-muscle,
  .single-bone,
  .single-nerve,
  .single-joint,
  .single-blood_vessel,
  .single-blood-vessel,
  .single-clinical_test,
  .single-clinical-test,
  .single-pathology,
  .single-journal_watch,
  .single-anatomy_note,
  .single-uklad
) .fe-section-new__title {
  color: #f2efe9 !important;
}

html[data-fe-theme="dark"] :is(
  .single-muscle,
  .single-bone,
  .single-nerve,
  .single-joint,
  .single-blood_vessel,
  .single-blood-vessel,
  .single-clinical_test,
  .single-clinical-test,
  .single-pathology,
  .single-journal_watch,
  .single-anatomy_note,
  .single-uklad
) .fe-section-new__head {
  border-bottom-color: rgba(190, 145, 120, 0.25) !important;
}

html[data-fe-theme="dark"] :is(
  .single-muscle,
  .single-bone,
  .single-nerve,
  .single-joint,
  .single-blood_vessel,
  .single-blood-vessel,
  .single-clinical_test,
  .single-clinical-test,
  .single-pathology,
  .single-journal_watch,
  .single-anatomy_note,
  .single-uklad
) .fe-section-new__icon {
  color: var(--fe-accent, #e39a67) !important;
}

/* Tekst zasadniczy w kartach CPT */
html[data-fe-theme="dark"] :is(
  .single-muscle,
  .single-bone,
  .single-nerve,
  .single-joint,
  .single-blood_vessel,
  .single-blood-vessel,
  .single-clinical_test,
  .single-clinical-test,
  .single-pathology,
  .single-journal_watch,
  .single-anatomy_note,
  .single-uklad
) :is(
  .fe-muscle-summary-card,
  .fe-clinical-box:not(.fe-refer-card--urgent):not(.fe-refer-card--planned),
  .fe-muscle-functional-card,
  .fe-anatomy-card:not(.fe-refer-card--urgent):not(.fe-refer-card--planned),
  .fe-network-section-container,
  .fe-biomechanics-layout > .fe-readability
) :is(p, li, dd, span:not(.material-symbols-outlined):not(.fe-network-group__summary-icon):not(.fe-badge-type)) {
  color: #ded9d2 !important;
}

/* Tytuły bloków i wytłuszczenia */
html[data-fe-theme="dark"] :is(
  .single-muscle,
  .single-bone,
  .single-nerve,
  .single-joint,
  .single-blood_vessel,
  .single-blood-vessel,
  .single-clinical_test,
  .single-clinical-test,
  .single-pathology,
  .single-journal_watch,
  .single-anatomy_note,
  .single-uklad
) :is(
  .fe-muscle-summary-card,
  .fe-clinical-box:not(.fe-refer-card--urgent):not(.fe-refer-card--planned),
  .fe-muscle-functional-card,
  .fe-anatomy-card:not(.fe-refer-card--urgent):not(.fe-refer-card--planned),
  .fe-biomechanics-layout > .fe-readability
) :is(h2, h3, h4, strong, dt, .fe-anatomy-card__title, .fe-clinical-box__title) {
  color: #f2efe9 !important;
}

/* Tabela szybkiego kontekstu */
html[data-fe-theme="dark"] :is(
  .single-muscle,
  .single-bone,
  .single-nerve,
  .single-joint,
  .single-blood_vessel,
  .single-blood-vessel,
  .single-clinical_test,
  .single-clinical-test,
  .single-pathology,
  .single-journal_watch,
  .single-anatomy_note,
  .single-uklad
) .fe-muscle-context-table {
  background: #141613 !important;
  border-color: rgba(190, 145, 120, 0.25) !important;
}

html[data-fe-theme="dark"] :is(
  .single-muscle,
  .single-bone,
  .single-nerve,
  .single-joint,
  .single-blood_vessel,
  .single-blood-vessel,
  .single-clinical_test,
  .single-clinical-test,
  .single-pathology,
  .single-journal_watch,
  .single-anatomy_note,
  .single-uklad
) .fe-muscle-context-table dt {
  color: #aaa099 !important;
}

html[data-fe-theme="dark"] :is(
  .single-muscle,
  .single-bone,
  .single-nerve,
  .single-joint,
  .single-blood_vessel,
  .single-blood-vessel,
  .single-clinical_test,
  .single-clinical-test,
  .single-pathology,
  .single-journal_watch,
  .single-anatomy_note,
  .single-uklad
) .fe-muscle-context-table dd {
  color: #f2efe9 !important;
}

/* Czerwone flagi (Red Flags) */
html[data-fe-theme="dark"] body.single-pathology .fe-clinical-box--red-flags {
  background: #331d1c !important;
  border-color: #8d413b !important;
  color: #ffaaa3 !important;
}

html[data-fe-theme="dark"] body.single-pathology .fe-clinical-box--red-flags :is(p, li, span) {
  color: #ffdcd8 !important;
}

/* Karty skierowań (Referral cards) w patologii */
.fe-refer-card--urgent {
  background: #fff1f2;
  border-color: #fecaca;
}
.fe-refer-card--urgent .fe-anatomy-card__title {
  color: #b91c1c;
  display: flex;
  align-items: center;
  gap: 6px;
}
.fe-refer-card--urgent .fe-anatomy-card__content {
  color: #9f1239;
}

.fe-refer-card--planned {
  background: #fffbeb;
  border-color: #fef3c7;
}
.fe-refer-card--planned .fe-anatomy-card__title {
  color: #d97706;
  display: flex;
  align-items: center;
  gap: 6px;
}
.fe-refer-card--planned .fe-anatomy-card__content {
  color: #92400e;
}

.fe-refer-card--nophysio {
  background: #f8fafc;
  border-color: #e2e8f0;
}
.fe-refer-card--nophysio .fe-anatomy-card__title {
  color: #475569;
  display: flex;
  align-items: center;
  gap: 6px;
}
.fe-refer-card--nophysio .fe-anatomy-card__content {
  color: #334155;
}

html[data-fe-theme="dark"] .fe-refer-card--urgent {
  background: #331d1c !important;
  border-color: #8d413b !important;
}
html[data-fe-theme="dark"] .fe-refer-card--urgent .fe-anatomy-card__title {
  color: #ffaaa3 !important;
}
html[data-fe-theme="dark"] .fe-refer-card--urgent .fe-anatomy-card__content {
  color: #ffdcd8 !important;
}

html[data-fe-theme="dark"] .fe-refer-card--planned {
  background: #2c2314 !important;
  border-color: #78541a !important;
}
html[data-fe-theme="dark"] .fe-refer-card--planned .fe-anatomy-card__title {
  color: #f5d485 !important;
}
html[data-fe-theme="dark"] .fe-refer-card--planned .fe-anatomy-card__content {
  color: #faeec7 !important;
}

html[data-fe-theme="dark"] .fe-refer-card--nophysio {
  background: #1a1c18 !important;
  border-color: rgba(190, 145, 120, 0.25) !important;
}
html[data-fe-theme="dark"] .fe-refer-card--nophysio .fe-anatomy-card__title {
  color: #ded9d2 !important;
}
html[data-fe-theme="dark"] .fe-refer-card--nophysio .fe-anatomy-card__content {
  color: #c8bdb4 !important;
}

/* Różnicowanie (Diagnosis differentialis) w patologii */
html[data-fe-theme="dark"] .fe-differential-item__link {
  background: #22231f !important;
  border-color: rgba(190, 145, 120, 0.25) !important;
  color: #f2efe9 !important;
}
html[data-fe-theme="dark"] .fe-differential-item__link:hover {
  background: #2b2e28 !important;
  border-color: rgba(190, 145, 120, 0.45) !important;
}
html[data-fe-theme="dark"] .fe-differential-item__static {
  background: #1a1c18 !important;
  border-color: rgba(190, 145, 120, 0.2) !important;
  color: #ded9d2 !important;
}

/* Featured Media i nakładki */
html[data-fe-theme="dark"] :is(
  .single-muscle,
  .single-bone,
  .single-nerve,
  .single-joint,
  .single-blood_vessel,
  .single-clinical_test,
  .single-pathology
) .fe-muscle-visual-card__overlay,
html[data-fe-theme="dark"] :is(
  .single-muscle,
  .single-bone,
  .single-nerve,
  .single-joint,
  .single-blood_vessel,
  .single-clinical_test,
  .single-pathology
) .fe-featured-media-overlay {
  background: #141613 !important;
}

html[data-fe-theme="dark"] :is(
  .single-muscle,
  .single-bone,
  .single-nerve,
  .single-joint,
  .single-blood_vessel,
  .single-clinical_test,
  .single-pathology
) .fe-featured-media-caption,
html[data-fe-theme="dark"] :is(
  .single-muscle,
  .single-bone,
  .single-nerve,
  .single-joint,
  .single-blood_vessel,
  .single-clinical_test,
  .single-pathology
) .fe-featured-media-caption a {
  color: #ded9d2 !important;
}

html[data-fe-theme="dark"] :is(
  .single-muscle,
  .single-bone,
  .single-nerve,
  .single-joint,
  .single-blood_vessel,
  .single-clinical_test,
  .single-pathology
) .fe-featured-media-attr {
  color: #aaa099 !important;
}

html[data-fe-theme="dark"] :is(
  .single-muscle,
  .single-bone,
  .single-nerve,
  .single-joint,
  .single-blood_vessel,
  .single-clinical_test,
  .single-pathology
) .fe-featured-media-zoom-icon {
  background: #22231f !important;
  border-color: rgba(190, 145, 120, 0.25) !important;
  color: #f2efe9 !important;
}

/* Częste rozpoznania i pułapki */
html[data-fe-theme="dark"] .fe-biomech-issues {
  background: #141613 !important;
  border-color: rgba(190, 145, 120, 0.25) !important;
}

html[data-fe-theme="dark"] .fe-clinical-box__issues-label {
  color: #f0a875 !important;
}

html[data-fe-theme="dark"] .fe-network-chip--muted {
  border-color: rgba(190, 145, 120, 0.2) !important;
  color: #c8bdb4 !important;
  background: #171915 !important;
}

/* Sieć powiązań (Clinical Network) */
html[data-fe-theme="dark"] :is(.single-muscle, .single-bone, .single-nerve, .single-joint, .single-blood_vessel, .single-clinical_test, .single-pathology) .fe-network-section-container--collapsible {
  background: #141613 !important;
  border-color: rgba(190, 145, 120, 0.25) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35) !important;
}

html[data-fe-theme="dark"] :is(.single-muscle, .single-bone, .single-nerve, .single-joint, .single-blood_vessel, .single-pathology, .single-clinical_test) .fe-network-group--collapsible {
  border-bottom-color: rgba(190, 145, 120, 0.2) !important;
}

html[data-fe-theme="dark"] :is(.single-muscle, .single-bone, .single-nerve, .single-joint, .single-blood_vessel, .single-pathology, .single-clinical_test) .fe-network-group__summary {
  background: #1a1c18 !important;
  color: #f2efe9 !important;
}

html[data-fe-theme="dark"] :is(.single-muscle, .single-bone, .single-nerve, .single-joint, .single-blood_vessel, .single-pathology, .single-clinical_test) .fe-network-group__summary:hover {
  background: #22231f !important;
}

html[data-fe-theme="dark"] :is(.single-muscle, .single-bone, .single-nerve, .single-joint, .single-blood_vessel, .single-pathology, .single-clinical_test) .fe-network-group__label {
  color: #f2efe9 !important;
}

html[data-fe-theme="dark"] :is(.single-muscle, .single-bone, .single-nerve, .single-joint, .single-blood_vessel, .single-pathology, .single-clinical_test) .fe-network-group__count {
  background: #252822 !important;
  color: #f2efe9 !important;
  border: 1px solid rgba(190, 145, 120, 0.25) !important;
}

html[data-fe-theme="dark"] :is(.single-muscle, .single-bone, .single-nerve, .single-joint, .single-blood_vessel, .single-pathology, .single-clinical_test) .fe-network-chip {
  background: #22231f !important;
  border-color: rgba(190, 145, 120, 0.3) !important;
  color: #f2efe9 !important;
}

html[data-fe-theme="dark"] :is(.single-muscle, .single-bone, .single-nerve, .single-joint, .single-blood_vessel, .single-pathology, .single-clinical_test) .fe-network-chip:hover {
  background: #2a2d26 !important;
  border-color: rgba(190, 145, 120, 0.5) !important;
}

html[data-fe-theme="dark"] .fe-network-chips__more summary {
  color: #f0a875 !important;
}

/* Bibliografia & EBM */
html[data-fe-theme="dark"] :is(
  .single-muscle, .single-bone, .single-nerve, .single-joint,
  .single-blood_vessel, .single-clinical_test, .single-pathology,
  .single-journal_watch, .single-anatomy_note, .single-uklad
) .fe-bib-item {
  background: #1a1c18 !important;
  border-color: rgba(190, 145, 120, 0.25) !important;
  color: #ded9d2 !important;
}

html[data-fe-theme="dark"] :is(
  .single-muscle, .single-bone, .single-nerve, .single-joint,
  .single-blood_vessel, .single-clinical_test, .single-pathology
) .fe-bib-item__citation strong,
html[data-fe-theme="dark"] :is(
  .single-muscle, .single-bone, .single-nerve, .single-joint,
  .single-blood_vessel, .single-clinical_test, .single-pathology
) .fe-bib-item__citation em {
  color: #ffffff !important;
}

html[data-fe-theme="dark"] :is(
  .single-muscle, .single-bone, .single-nerve, .single-joint,
  .single-blood_vessel, .single-clinical_test, .single-pathology
) .fe-bib-item__meta {
  color: #aaa099 !important;
}

html[data-fe-theme="dark"] :is(
  .single-muscle, .single-bone, .single-nerve, .single-joint,
  .single-blood_vessel, .single-clinical_test, .single-pathology
) .fe-bib-item__icon-box {
  background: #141613 !important;
  border: 1px solid rgba(190, 145, 120, 0.25) !important;
  color: var(--fe-accent, #e39a67) !important;
}

html[data-fe-theme="dark"] :is(
  .single-muscle, .single-bone, .single-nerve, .single-joint,
  .single-blood_vessel, .single-clinical_test, .single-pathology
) .fe-bib-item__link {
  color: #f0a875 !important;
}

/* Testy kliniczne — metryki EBM i wskaźnik wiarygodności */
html[data-fe-theme="dark"] .fe-ebm-summary {
  background: #1a1c18 !important;
  border-color: rgba(190, 145, 120, 0.25) !important;
}
html[data-fe-theme="dark"] .fe-ebm-summary__label {
  color: #aaa099 !important;
}
html[data-fe-theme="dark"] .fe-ebm-pill {
  background: #141613 !important;
  border-color: rgba(190, 145, 120, 0.25) !important;
}
html[data-fe-theme="dark"] .fe-ebm-pill__value {
  color: #f2efe9 !important;
}
html[data-fe-theme="dark"] .fe-ebm-pill__label {
  color: #aaa099 !important;
}
html[data-fe-theme="dark"] .fe-no-ebm-banner {
  background: #1a1c18 !important;
  border-color: rgba(190, 145, 120, 0.25) !important;
  color: #ded9d2 !important;
}
html[data-fe-theme="dark"] .fe-no-ebm-banner strong {
  color: #f2efe9 !important;
}
html[data-fe-theme="dark"] .fe-clinical-confidence {
  background: #141613 !important;
  border: 1px solid rgba(190, 145, 120, 0.25) !important;
}
html[data-fe-theme="dark"] .fe-clinical-confidence__label {
  color: #aaa099 !important;
}
html[data-fe-theme="dark"] .fe-clinical-confidence strong {
  color: #f2efe9 !important;
}

.fe-badge-type--complex {
  margin-bottom: 0;
  background: #fdf6ed;
  border-color: #fbd38d;
  color: #c05621;
}
html[data-fe-theme="dark"] .fe-badge-type--complex {
  background: #2c2314 !important;
  border-color: #78541a !important;
  color: #f5d485 !important;
}

.fe-single .fe-layout--full-content {
  grid-template-columns: minmax(0, 1fr);
}

html :is(.single-bone, .single-joint) .fe-biomechanics-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--fe-card-line);
  border-radius: var(--fe-card-radius);
  background: var(--fe-card-bg);
}

.fe-biomechanics-card > h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--fe-accent);
}

.fe-single .fe-hero-new__title {
  font-family: var(--fe-font-sans, 'Plus Jakarta Sans', sans-serif);
}

.fe-single .fe-network-chips__more {
  flex-basis: 100%;
  min-width: 0;
  margin-top: 8px;
}

.fe-single .fe-network-chips__more > summary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--fe-card-line);
  border-radius: var(--fe-card-radius);
  background: var(--fe-card-bg);
  color: var(--fe-accent);
  font: 600 .875rem/1.4 var(--fe-font-sans, sans-serif);
  cursor: pointer;
  list-style: none;
}

.fe-single .fe-network-chips__more > summary::-webkit-details-marker { display: none; }
.fe-single .fe-network-chips__more > summary::after { content: '+'; font-size: 1.25rem; }
.fe-single .fe-network-chips__more[open] > summary::after { content: '−'; }
.fe-single .fe-network-chips__more > summary:hover { background: var(--fe-surface-hover); }
.fe-single .fe-network-chips__more > summary:focus-visible { outline: 2px solid var(--fe-accent); outline-offset: 3px; }
.fe-single .fe-network-chips--more { margin-top: 12px; }

/* Ścieżka nauki w single-uklad */
html[data-fe-theme="dark"] .fe-learning-step {
  background: #1a1c18 !important;
  border-color: rgba(190, 145, 120, 0.25) !important;
  color: #ded9d2 !important;
}
html[data-fe-theme="dark"] .fe-learning-step__content h3 {
  color: #f2efe9 !important;
}
html[data-fe-theme="dark"] .fe-learning-step__content p {
  color: #ded9d2 !important;
}

body.single-journal_watch .fe-jw-editorial { max-width: none; }
