/*
 * GhidaLab calculator dark mode (generated mirror of food-explorer.css).
 * Every colour declaration of the light stylesheet is repeated here under
 * html[data-theme="dark"] with mapped colours. Custom properties are set in the
 * hand-written block at the top. Light mode output is unchanged.
 */
html[data-theme="dark"] .ghidalab-food-explorer {
  color-scheme: dark;
  --fe-teal: #7FC4BF;
  --fe-blue-grey: #9DB8C6;
  --fe-ink: #E3EEED;
  --fe-muted: #A9BBBA;
  --fe-line: #26403E;
  --fe-surface: #162221;
}

html[data-theme="dark"] .ghidalab-food-explorer {
  color: var(--fe-ink);
}
html[data-theme="dark"] .ghidalab-food-explorer .eyebrow {
  color: var(--fe-muted);
}
html[data-theme="dark"] .ghidalab-food-explorer h1 {
  color: var(--fe-ink);
}
html[data-theme="dark"] .ghidalab-food-explorer .hero-copy {
  color: var(--fe-muted);
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-methodology {
  color: #cbd8da;
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-methodology summary {
  color: var(--fe-blue-grey);
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-methodology summary::marker {
  color: var(--fe-blue-grey);
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-methodology p {
  border-inline-start: 2px solid #273f3c;
}
html[data-theme="dark"] .ghidalab-food-explorer .catalog-status {
  border: 1px solid var(--fe-line);
  color: var(--fe-muted);
  background: var(--fe-surface);
}
html[data-theme="dark"] .ghidalab-food-explorer .catalog-status[data-state="error"] {
  border-color: #531e19;
  color: #e6bab7;
  background: #2d0f0b;
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-candidate {
  border: 1px solid #73561b;
  color: #f0dcbf;
  background: #32260c;
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-candidate-details summary:focus-visible {
  outline: 2px solid #bd8f4e;
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-controls {
  border: 1px solid var(--fe-line);
  background: #162020;
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-field {
  color: var(--fe-ink);
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-field input,
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-field select {
  border: 1px solid #314342;
  color: var(--fe-ink);
  background: #181b1b;
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-field input:focus-visible,
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-field select:focus-visible {
  outline: 3px solid rgb(108 140 151 / 0.28);
  border-color: var(--fe-blue-grey);
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-more-filters > summary {
  border: 1px solid #314342;
  color: var(--fe-teal);
  background: #181b1b;
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-more-filters > summary::after {
  color: var(--fe-blue-grey);
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-filter-count {
  color: #171c1c;
  background: var(--fe-blue-grey);
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-advanced-filters {
  border-top: 1px solid #263634;
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-reset {
  border: 1px solid #314342;
  color: #cbd8da;
  background: #181b1b;
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-more-filters > summary:focus-visible,
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-reset:focus-visible,
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-methodology summary:focus-visible {
  outline: 3px solid rgb(108 140 151 / 0.3);
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-count {
  color: var(--fe-muted);
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-empty {
  border: 1px dashed #374a46;
  color: var(--fe-muted);
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-table-wrap {
  border: 1px solid var(--fe-line);
  background: #181b1b;
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-table-wrap:focus-visible {
  outline: 3px solid rgb(108 140 151 / 0.3);
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-table th,
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-table td {
  border-bottom: 1px solid #263533;
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-table thead th {
  color: var(--fe-teal);
  background: #1c2726;
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-sort-button {
  border: 0;
  color: inherit;
  background: transparent;
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-sort-button:focus-visible {
  outline: 2px solid rgb(67 221 213 / 0.58);
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-table tbody tr:last-child > * {
  border-bottom: 0;
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-table tbody tr:nth-child(even) {
  background: #182121;
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-table tbody tr:hover,
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-table tbody tr:focus-within {
  background: #1a2624;
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-table tbody th {
  color: var(--fe-teal);
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-preparation {
  color: var(--fe-muted);
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-type-badge {
  border: 1px solid transparent;
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-type-badge--measured {
  border-color: #2d5349;
  color: #c7e9e4;
  background: #1c2925;
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-type-badge--derived {
  border-color: #6a551e;
  color: #f0dfc0;
  background: #332812;
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-type-badge--unavailable {
  border-color: #2f3c3c;
  color: #c6cfd0;
  background: #1e2222;
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-source-label {
  color: #c3cfd0;
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-qualifier {
  color: var(--fe-muted);
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-profile-count {
  color: var(--fe-muted);
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-evidence--eligible {
  color: #c4dee1;
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-evidence--related {
  color: #dfd1bc;
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-evidence--unavailable {
  color: #bec7c8;
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-card {
  border: 1px solid var(--fe-line);
  background: #181b1b;
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-card h2 {
  color: var(--fe-ink);
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-card-label {
  color: var(--fe-muted);
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-card-evidence {
  border-top: 1px solid #252f2f;
  color: #c7d3d3;
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-card-evidence .food-explorer-value-line {
  border-inline-start: 2px solid #293d3c;
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-card-evidence .food-explorer-evidence--eligible {
  border-inline-start-color: #577577;
  color: #c4dee1;
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-card-evidence .food-explorer-evidence--related {
  border-inline-start-color: #6e5529;
  color: #dfd1bc;
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-card-evidence .food-explorer-evidence--unavailable {
  border-inline-start-color: #2f3d3f;
  color: #bec7c8;
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-details-button {
  border: 1px solid #364f4c;
  color: var(--fe-teal);
  background: #181b1b;
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-details-button:hover {
  background: #1a2725;
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-details-button:focus-visible,
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-details-close:focus-visible {
  outline: 3px solid rgb(67 221 213 / 0.3);
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-details-dialog {
  border: 1px solid #314543;
  color: var(--fe-ink);
  background: #181b1b;
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-details-dialog::backdrop {
  background: rgb(73 149 157 / 0.46);
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-details-header {
  border-bottom: 1px solid var(--fe-line);
  background: #181b1b;
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-details-header h2 {
  color: var(--fe-teal);
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-details-close {
  border: 1px solid #314342;
  color: var(--fe-teal);
  background: #181b1b;
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-details-preparation {
  color: var(--fe-muted);
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-details-section {
  border: 1px solid #273836;
  background: #162020;
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-details-section h3 {
  color: var(--fe-teal);
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-details-scenario {
  border-top: 2px solid #263c39;
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-details-scenario > h3 {
  color: var(--fe-teal);
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-details-basis {
  color: #cbd8da;
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-details-metric {
  background: #1a2524;
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-details-summary-section {
  background: #18221f;
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-details-summary-note {
  color: #c3d0d1;
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-details-label {
  color: var(--fe-muted);
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-details-metric strong {
  color: var(--fe-ink);
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-details-source-name {
  color: #cbd8da;
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-details-source-description {
  color: var(--fe-muted);
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-details-muted {
  color: #c3d0d1;
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-details-warning {
  border-inline-start: 3px solid #89642f;
  color: #ead8c2;
  background: #30220c;
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-details-link {
  color: #c1f1ed;
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-details-table-wrap {
  border: 1px solid #283836;
  background: #181b1b;
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-details-table th,
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-details-table td {
  border-bottom: 1px solid #263333;
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-details-table th {
  color: #cbd8da;
  background: #1c2524;
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-details-table tbody tr:last-child > * {
  border-bottom: 0;
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-details-status {
  color: var(--fe-muted);
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-details-score-summary strong {
  color: var(--fe-teal);
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-details-score-summary span {
  color: #cbd8da;
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-details-comparison {
  background: #181b1b;
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-details-comparison > strong {
  color: #cbd8da;
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-details-comparison > span {
  color: var(--fe-ink);
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-details-reference {
  border-top: 1px solid #273634;
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-details-evidence-card {
  border: 1px solid #283533;
  background: #181b1b;
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-details-evidence-card.food-explorer-reference-preview {
  border-color: #675228;
  background: #2c220b;
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-details-study {
  border-top: 1px solid #28312c;
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-details-study > summary {
  color: var(--fe-blue-grey);
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-details-evidence-card h4 {
  color: #cbd8da;
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-details-subsection {
  background: #181b1b;
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-details-section ul {
  color: #c3d0d1;
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-details-technical {
  border-top: 1px solid #263333;
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-details-technical summary {
  color: var(--fe-blue-grey);
}
html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-details-technical > p {
  color: #c3d0d1;
}
@media (max-width: 760px) {
  html[data-theme="dark"] .ghidalab-food-explorer .food-explorer-details-dialog {
    border-block-end: 0;
  }
}
