/* ═══════════════════════════════════════════════════════════════════════════
   fa_data.css — styles extracted from FA_Data PHP classes' inline style="..."
   ---------------------------------------------------------------------------
   Each section below corresponds to one class in assets/classes/FA_Data/.
   Reuses the tokens in fa.css and the shared vocabulary in ui.css wherever an
   exact match exists; anything bespoke gets a class prefixed by its owner
   (met-*, fad-ox-*, fad-mem-*, fad-energy-*, fad-bio-*, fad-mech-*,
   fad-mf-*, fad-ma-*, fad-mm-*, fad-assoc-*, fad-hs-*, fad-id-*, fad-base-*,
   fad-fap-*, fad-iso-*, ifr-*).

   Loaded globally from assets/header_footer/header_js_css.php, right after
   ui.css.
   ═══════════════════════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════════════════
   Metabolism/Metabolites.php
   ═══════════════════════════════════════════════════════════════════════ */

/* Chemical subtype badge colour variants (base layout lives in met_tabs.css) */
.met-subtype--aldehyde   { background: #fee2e2; color: #991b1b; }
.met-subtype--dialdehyde { background: #ede9fe; color: #5b21b6; }
.met-subtype--dienal     { background: #fef3c7; color: #92400e; }
.met-subtype--saturated  { background: #e2e8f0; color: #334155; }
.met-subtype--default    { background: #f1f5f9; color: #64748b; }
body.dark-mode .met-subtype--aldehyde   { background: #7f1d1d; color: #fecaca; }
body.dark-mode .met-subtype--dialdehyde { background: #4c1d95; color: #ddd6fe; }
body.dark-mode .met-subtype--dienal     { background: #78350f; color: #fde68a; }
body.dark-mode .met-subtype--saturated  { background: #334155; color: #cbd5e1; }
body.dark-mode .met-subtype--default    { background: #334155; color: #94a3b8; }

/* Primary / Secondary source badges (sourceFaTable + tabTable) */
.met-badge-primary   { background: #b91c1c; color: #fff; }
.met-badge-secondary { background: #e2e8f0; color: #334155; }
body.dark-mode .met-badge-primary   { background: #7f1d1d; color: #fecaca; }
body.dark-mode .met-badge-secondary { background: #334155; color: #cbd5e1; }

/* "No" state of the admin overview yes/no badge (the "Yes" side reuses .badge-ok) */
.met-badge-no { background: #f1f5f9; color: #94a3b8; }
body.dark-mode .met-badge-no { background: #334155; color: #94a3b8; }

/* Table column-width helpers (px / narrow % widths not covered by ui.css .u-w-*) */
.met-col-75    { width: 75px; }
.met-col-80    { width: 80px; }
.met-col-95    { width: 95px; }
.met-col-100   { width: 100px; }
.met-col-105   { width: 105px; }
.met-col-110   { width: 110px; }
.met-col-120   { width: 120px; }
.met-col-140   { width: 140px; }
.met-col-150   { width: 150px; }
.met-col-11pct { width: 11%; }
.met-col-14pct { width: 14%; }
.met-col-16pct { width: 16%; }
.met-col-24pct { width: 24%; }

/* "No data" cells whose colour comes from the (non-global) .rt-muted class,
   so only layout is set here — do not add color, or it changes on pages
   where .rt-muted currently has no effect. */
.met-empty-note { text-align: center; font-style: italic; padding: 1rem; }
.met-empty-row  { text-align: center; padding: 1rem; }

.met-ext-icon { font-size: .75em; opacity: .6; }
.met-id-sub   { font-size: .75rem; }
.met-fa-cell  { font-size: .82rem; }


/* ═══════════════════════════════════════════════════════════════════════
   Metabolism/FAD_Oxidation.php
   ═══════════════════════════════════════════════════════════════════════ */

/* Susceptibility bands (also reused on rt-status pills in the all-FA table) */
.fad-ox-band--low      { background: #dcfce7; color: #15803d; }
.fad-ox-band--high     { background: #ffedd5; color: #c2410c; }
.fad-ox-band--veryhigh { background: #fee2e2; color: #b91c1c; }
body.dark-mode .fad-ox-band--low      { background: #14532d; color: #bbf7d0; }
body.dark-mode .fad-ox-band--high     { background: #7c2d12; color: #fed7aa; }
body.dark-mode .fad-ox-band--veryhigh { background: #7f1d1d; color: #fecaca; }

.fad-ox-body { padding: 0 1rem 1rem; }
.fad-ox-risk-row { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; margin-bottom: .85rem; }
.fad-ox-risk-badge { font-size: 1rem; padding: .35rem .8rem; }
.fad-ox-stat { font-size: .9rem; color: var(--text-muted); }
.fad-ox-stat-num { color: var(--text-main, inherit); }
.fad-ox-why { font-size: .9rem; line-height: 1.5; margin: 0; color: var(--text-muted); }
.fad-ox-topiclink { margin-top: .85rem; }

.fad-ox-count { font-size: .8rem; color: var(--text-muted); font-weight: 400; }
.fad-ox-note { padding: 0 1rem; margin: .25rem 0 .75rem; font-size: .88rem; color: var(--text-muted); }
.fad-ox-unresolved-note { font-size: .88rem; color: var(--text-muted); margin: .25rem 0 .6rem; }
.fad-ox-chips { display: flex; gap: .35rem; flex-wrap: wrap; }
.fad-ox-chip { background: var(--bg-level-3); color: var(--text-muted); }

.fad-ox-col-14pct { width: 14%; }
.fad-ox-col-18pct { width: 18%; }
.fad-ox-col-26pct { width: 26%; }
.fad-ox-col-42pct { width: 42%; }

.fad-ox-kind-primary   { background: var(--accent-primary, #1d4ed8); color: #fff; }
.fad-ox-kind-secondary { background: var(--bg-level-3); }
.fad-ox-abbr       { color: var(--text-muted); font-size: .85em; }
.fad-ox-class-cell { font-size: .85em; }
.fad-ox-react-cell { font-size: .85em; line-height: 1.45; color: var(--text-muted); }


/* ═══════════════════════════════════════════════════════════════════════
   Metabolism/FAD_Membrane.php
   ═══════════════════════════════════════════════════════════════════════ */

/* "no / not a structural membrane lipid" state (yes/trace reuse .badge-ok / .badge-warn) */
.fad-mem-status-no { background: #f3f4f6; color: #6b7280; }
body.dark-mode .fad-mem-status-no { background: #374151; color: #d1d5db; }

/* "inferred" tag — reuses tokens that exactly match the old hardcoded pair */
.fad-mem-inferred { background: var(--bg-surface-2); color: var(--text-muted); }

.fad-mem-topic-link { font-size: .82rem; }
.fad-mem-topic-link-icon { font-size: .85em; opacity: .6; }
.fad-mem-summary { margin: 0 0 1rem; line-height: 1.5; }
.fad-mem-group-h4 { margin: 1.1rem 0 .4rem; font-size: .9rem; }
.fad-mem-table { margin-bottom: .5rem; }

.fad-mem-col-9pct  { width: 9%; }
.fad-mem-col-10pct { width: 10%; }
.fad-mem-col-16pct { width: 16%; }
.fad-mem-col-18pct { width: 18%; }
.fad-mem-col-22pct { width: 22%; }
.fad-mem-col-25pct { width: 25%; }

.fad-mem-capitalize   { text-transform: capitalize; }
.fad-mem-lc-cell      { font-size: .85em; }
.fad-mem-notes-cell   { font-size: .85em; line-height: 1.4; }
.fad-mem-refs-cell    { font-size: .78em; }
.fad-mem-not-incorporated { padding: .75rem 1rem; color: var(--text-muted); font-style: italic; }

.fad-mem-section        { margin-top: 1rem; }
.fad-mem-section-title  { font-size: .9rem; }
.fad-mem-roles-list     { margin: .4rem 0 0; padding-left: 1.2rem; line-height: 1.5; }
.fad-mem-turnover       { margin-top: 1rem; font-size: .88rem; }
.fad-mem-turnover-body  { margin-top: .3rem; line-height: 1.5; }
.fad-mem-turnover-notes { color: var(--text-muted); margin-top: 2px; }
.fad-mem-turnover-refs  { font-size: .82em; margin-top: 3px; }


/* ═══════════════════════════════════════════════════════════════════════
   Metabolism/FAD_Energy.php
   ═══════════════════════════════════════════════════════════════════════ */

/* "no" status pill (yes/other reuse .badge-ok / .badge-warn) */
.fad-energy-status-no { background: #f3f4f6; color: #6b7280; }
body.dark-mode .fad-energy-status-no { background: #374151; color: #d1d5db; }

.fad-energy-h4-capability { margin: 0.25rem 1rem 0.75rem; }
.fad-energy-h4-atp        { margin: 1.5rem 1rem 0.5rem; }
.fad-energy-h4-roles      { margin: 1.5rem 1rem 0.75rem; }
.fad-energy-table         { margin-bottom: 2rem; }

.fad-energy-col-13pct { width: 13%; }
.fad-energy-col-22pct { width: 22%; }
.fad-energy-col-25pct { width: 25%; }
.fad-energy-col-28pct { width: 28%; }
.fad-energy-col-40pct { width: 40%; }
.fad-energy-col-47pct { width: 47%; }

.fad-energy-note-cell { font-size: .9em; line-height: 1.45; }
.fad-energy-refs-cell { font-size: .82em; }
.fad-energy-loc        { margin-top: .4rem; font-size: .85em; color: var(--text-muted); }
.fad-energy-flag-wrap  { margin-top: .3rem; }
.fad-energy-center     { text-align: center; }

/* Topic-link modifier for the "How this is calculated" chip next to the ATP heading */
.fad-energy-calc-link-extra { font-size: .8rem; font-weight: 400; margin-left: .4rem; }


/* ═══════════════════════════════════════════════════════════════════════
   Metabolism/FAD_Biosynthesis.php
   ═══════════════════════════════════════════════════════════════════════ */

.fad-bio-header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.fad-bio-title  { margin: 0; }
.fad-bio-topic-link      { font-size: .82rem; }
.fad-bio-topic-link-icon { font-size: .85em; opacity: .6; }
.fad-bio-summary  { margin: 0 0 1rem; line-height: 1.5; }
.fad-bio-eyebrow  { font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin-bottom: .4rem; }
.fad-bio-pills    { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .6rem; }
.fad-bio-src-notes { margin: 0 0 1rem; font-size: .85rem; color: var(--text-muted); font-style: italic; }
.fad-bio-empty-conv { padding: .75rem 1rem; color: var(--text-muted); font-style: italic; }
.fad-bio-conv-h4  { margin: .75rem 0 .4rem; font-size: .9rem; }
.fad-bio-table    { margin-bottom: 1rem; }

.fad-bio-col-24pct { width: 24%; }
.fad-bio-col-26pct { width: 26%; }
.fad-bio-cell-88 { font-size: .88em; }
.fad-bio-cell-80 { font-size: .8em; }

/* Sourcing pills (on = has this route, off = doesn't) */
.fad-bio-pill {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .3rem .7rem; border-radius: 999px;
    font-size: .82rem; font-weight: 600;
}
.fad-bio-pill--on  { background: #dcfce7; color: #166534; }
.fad-bio-pill--off { background: #f3f4f6; color: #9ca3af; }
body.dark-mode .fad-bio-pill--on  { background: #14532d; color: #bbf7d0; }
body.dark-mode .fad-bio-pill--off { background: #374151; color: #d1d5db; }

/* Conversion direction badges */
.fad-bio-dir-from { background: #eff6ff; color: #1e40af; }
.fad-bio-dir-to   { background: #f0fdf4; color: #166534; }
body.dark-mode .fad-bio-dir-from { background: #1e3a5f; color: #bfdbfe; }
body.dark-mode .fad-bio-dir-to   { background: #14532d; color: #bbf7d0; }


/* ═══════════════════════════════════════════════════════════════════════
   Metabolism/FAD_Mechanisms.php
   ═══════════════════════════════════════════════════════════════════════ */

.fad-mech-loc  { margin-top: .4rem; font-size: .85em; color: var(--text-muted); }
.fad-mech-pathway-badge {
    background: #e2e8f0; color: #1e293b;
    text-transform: capitalize; margin-top: .25rem; display: inline-block;
}
body.dark-mode .fad-mech-pathway-badge { background: #334155; color: #e2e8f0; }

/* Uses tokens directly — no dark override needed */
.fad-mech-stage-badge { background: var(--bg-level-3); color: var(--text-muted); margin-left: .35rem; font-size: .75em; }

.fad-mech-role-cell { font-size: .9em; line-height: 1.45; }
.fad-mech-refs-cell { font-size: .82em; }
.fad-mech-note  { padding: 0 1rem; margin: .25rem 0 .75rem; font-size: .88rem; color: var(--text-muted); }
.fad-mech-count { font-size: .8rem; color: var(--text-muted); font-weight: 400; }

.fad-mech-col-25pct { width: 25%; }
.fad-mech-col-28pct { width: 28%; }
.fad-mech-col-47pct { width: 47%; }


/* ═══════════════════════════════════════════════════════════════════════
   Metabolism/FAD_MetaboliteFormation.php
   ═══════════════════════════════════════════════════════════════════════ */

/* Route-type badge colours (finite set from the TYPES map) */
.fad-mf-type--nonenz    { background: #fee2e2; color: #991b1b; }
.fad-mf-type--enz       { background: #dcfce7; color: #166534; }
.fad-mf-type--thermal   { background: #fef3c7; color: #92400e; }
.fad-mf-type--auto      { background: #e2e8f0; color: #334155; }
.fad-mf-type--photo     { background: #fef9c3; color: #854d0e; }
.fad-mf-type--microbial { background: #e0e7ff; color: #3730a3; }
.fad-mf-type--default   { background: #f1f5f9; color: #64748b; }
body.dark-mode .fad-mf-type--nonenz    { background: #7f1d1d; color: #fecaca; }
body.dark-mode .fad-mf-type--enz       { background: #14532d; color: #bbf7d0; }
body.dark-mode .fad-mf-type--thermal   { background: #78350f; color: #fde68a; }
body.dark-mode .fad-mf-type--auto      { background: #334155; color: #cbd5e1; }
body.dark-mode .fad-mf-type--photo     { background: #4d3b09; color: #fde68a; }
body.dark-mode .fad-mf-type--microbial { background: #312e81; color: #c7d2fe; }
body.dark-mode .fad-mf-type--default   { background: #334155; color: #94a3b8; }

.fad-mf-icon-muted { opacity: .6; }
.fad-mf-col-12pct { width: 12%; }
.fad-mf-col-14pct { width: 14%; }
.fad-mf-col-16pct { width: 16%; }
.fad-mf-col-24pct { width: 24%; }
.fad-mf-col-34pct { width: 34%; }


/* ═══════════════════════════════════════════════════════════════════════
   Metabolism/FAD_MetaboliteAssociations.php
   ═══════════════════════════════════════════════════════════════════════ */

.fad-ma-icon-muted { opacity: .6; }
.fad-ma-col-16pct { width: 16%; }
.fad-ma-col-34pct { width: 34%; }
.fad-ma-refs-wrap { margin-top: .5rem; }

/* Promotes / Protective direction badges */
.fad-ma-dir-pos { background: #b91c1c; color: #fff; }
.fad-ma-dir-neg { background: #15803d; color: #fff; }


/* ═══════════════════════════════════════════════════════════════════════
   Metabolism/FAD_MetaboliteMechanisms.php
   ═══════════════════════════════════════════════════════════════════════ */

/* Pathway badge colours (finite set from the PATHWAY_COLORS map) */
.fad-mm-path--adduction   { background: #fee2e2; color: #991b1b; }
.fad-mm-path--genotoxicity { background: #fce7f3; color: #9d174d; }
.fad-mm-path--signalling  { background: #dbeafe; color: #1e40af; }
.fad-mm-path--receptor    { background: #e0e7ff; color: #3730a3; }
.fad-mm-path--redox       { background: #fef3c7; color: #92400e; }
.fad-mm-path--celldeath   { background: #ede9fe; color: #5b21b6; }
.fad-mm-path--metabolism  { background: #dcfce7; color: #166534; }
.fad-mm-path--biomarker   { background: #e2e8f0; color: #334155; }
.fad-mm-path--default     { background: #f3f4f6; color: #6b7280; }
body.dark-mode .fad-mm-path--adduction    { background: #7f1d1d; color: #fecaca; }
body.dark-mode .fad-mm-path--genotoxicity { background: #831843; color: #fbcfe8; }
body.dark-mode .fad-mm-path--signalling   { background: #1e3a8a; color: #bfdbfe; }
body.dark-mode .fad-mm-path--receptor     { background: #312e81; color: #c7d2fe; }
body.dark-mode .fad-mm-path--redox        { background: #78350f; color: #fde68a; }
body.dark-mode .fad-mm-path--celldeath    { background: #4c1d95; color: #ddd6fe; }
body.dark-mode .fad-mm-path--metabolism   { background: #14532d; color: #bbf7d0; }
body.dark-mode .fad-mm-path--biomarker    { background: #334155; color: #cbd5e1; }
body.dark-mode .fad-mm-path--default      { background: #374151; color: #d1d5db; }

.fad-mm-icon-muted { opacity: .6; }
.fad-mm-badge-wrap { margin-top: .35rem; }
.fad-mm-col-20pct { width: 20%; }
.fad-mm-col-28pct { width: 28%; }
.fad-mm-col-52pct { width: 52%; }


/* ═══════════════════════════════════════════════════════════════════════
   FAD_Associations.php
   ═══════════════════════════════════════════════════════════════════════ */

.fad-assoc-count-pos { font-size: .8rem; color: #15803d; }
.fad-assoc-count-neg { font-size: .8rem; color: #b91c1c; }
body.dark-mode .fad-assoc-count-pos { color: #4ade80; }
body.dark-mode .fad-assoc-count-neg { color: #f87171; }

/* Tab strip (lifted from the old inline <style> block in tabBar()).
   --tab-col is set inline per button/panel — it is genuinely dynamic
   (pos/neg colour chosen per call). */
.fad-assoc-tabs-bar {
    display: flex; gap: .35rem; padding: .75rem .75rem 0;
    border-bottom: 1px solid var(--border-color);
}
.fa-assoc-tab {
    appearance: none; background: transparent; border: 1px solid transparent; border-bottom: none;
    border-radius: 6px 6px 0 0; padding: .45rem .9rem; font: inherit; font-size: .88rem; font-weight: 600;
    color: var(--text-muted); cursor: pointer; margin-bottom: -1px; display: inline-flex; align-items: center; gap: .4rem;
}
.fa-assoc-tab:hover { color: var(--tab-col); background: color-mix(in srgb, var(--tab-col) 7%, transparent); }
.fa-assoc-tab.is-active {
    color: var(--tab-col); border-color: var(--border-color);
    border-bottom: 1px solid var(--card-bg); background: var(--card-bg);
}
.fa-assoc-tab.is-active .fa-assoc-tab-n { background: var(--tab-col); color: #fff; }
.fa-assoc-tab-n {
    background: var(--border-color); color: var(--text-muted);
    border-radius: 999px; padding: .02rem .42rem; font-size: .76em; line-height: 1.5;
}

.fad-assoc-empty-panel { padding: 1.25rem; color: var(--text-muted); font-style: italic; text-align: center; }
.fad-assoc-col-42pct { width: 42%; }
.fad-assoc-col-58pct { width: 58%; }

.fad-assoc-mech      { margin-top: 4px; font-size: .8em; }
.fad-assoc-mech-icon { opacity: .55; }
.fad-assoc-role      { font-size: .85em; color: var(--text-muted); line-height: 1.4; }
.fad-assoc-refs-cell { font-size: .82em; }

.fad-assoc-controversy { background: #fee2e2; color: #991b1b; }
.fad-assoc-emerging    { background: #fef3c7; color: #92400e; }
body.dark-mode .fad-assoc-controversy { background: #7f1d1d; color: #fecaca; }
body.dark-mode .fad-assoc-emerging    { background: #78350f; color: #fde68a; }

.fad-assoc-dir-neg { background: #fee2e2; color: #991b1b; }
body.dark-mode .fad-assoc-dir-neg { background: #7f1d1d; color: #fecaca; }

.fad-assoc-celldeath-note {
    margin: .6rem .75rem 0; padding: .5rem .65rem; border-left: 3px solid #831843;
    background: #83184310; color: var(--text-muted); font-size: .8rem; line-height: 1.45;
    border-radius: 0 4px 4px 0;
}
.fad-assoc-celldeath-icon { opacity: .7; margin-right: .3rem; }

.fad-assoc-chip-icon    { font-size: .9em; opacity: .85; }
.fad-assoc-chip-divider { width: 1px; align-self: stretch; background: var(--border-color); margin: 0 .15rem; }
.fad-assoc-chipbar      { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; padding: .75rem .75rem 0; }

/* Base layout for the per-system colour chip; colour/tint set inline per row */
.hs-chip {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .18rem .5rem; border-radius: 999px; font-size: .78rem; white-space: nowrap;
}


/* ═══════════════════════════════════════════════════════════════════════
   FAD_HealthSystems.php
   ---------------------------------------------------------------------
   --hs-col is set inline per call (health_systems.json colour, arbitrary
   per-system hex) — everything else here is static layout.
   ═══════════════════════════════════════════════════════════════════════ */

.fad-hs-group-cell {
    background: color-mix(in srgb, var(--hs-col) 8%, transparent);
    border-left: 4px solid var(--hs-col);
    padding: .45rem .6rem;
    font-weight: 600;
    color: var(--hs-col);
}
.fad-hs-group-icon  { margin-right: .45rem; opacity: .85; }
.fad-hs-group-count { font-weight: 400; opacity: .65; font-size: .85em; }
.fad-hs-nonclinical {
    font-weight: 400; font-size: .72em; background: #e2e8f0; color: #475569;
    padding: .1rem .4rem; border-radius: 3px; margin-left: .35rem;
}
body.dark-mode .fad-hs-nonclinical { background: #334155; color: #cbd5e1; }

.hs-pill {
    display: inline-flex; align-items: center; gap: .3rem;
    background: color-mix(in srgb, var(--hs-col) 8%, transparent);
    color: var(--hs-col);
    padding: .12rem .45rem; border-radius: 3px; font-size: .8em; white-space: nowrap;
}
.fad-hs-pill-icon { font-size: .9em; opacity: .85; }


/* ═══════════════════════════════════════════════════════════════════════
   ID/FAD_IDs.php
   ═══════════════════════════════════════════════════════════════════════ */

.fad-id-mono    { font-family: ui-monospace, Menlo, Consolas, monospace; }
.fad-id-mono-sm { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .8em; }


/* ═══════════════════════════════════════════════════════════════════════
   ID/FAD_Isomers.php
   ═══════════════════════════════════════════════════════════════════════ */

.fad-iso-missing-chip { border-style: dashed; color: #9ca3af; background: var(--bg-card); }
body.dark-mode .fad-iso-missing-chip { color: #9ca3af; }


/* ═══════════════════════════════════════════════════════════════════════
   FAD_Base.php
   ---------------------------------------------------------------------
   .fad-base-group-header is the shared FA-type sub-header row used by
   every faTable_getHtml() across the FA_Data classes.
   ═══════════════════════════════════════════════════════════════════════ */

.fad-base-group-header {
    background: var(--bg-surface-2);
    font-weight: 700;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: .03em;
    font-size: .72rem;
    padding: 6px 8px;
}
body.dark-mode .fad-base-group-header { color: #cbd5e1; }


/* ═══════════════════════════════════════════════════════════════════════
   InfantFormulaRegulations.php
   ---------------------------------------------------------------------
   Lifted from the class's own one-off <style> block (previously emitted
   inline on first render); InfantFormulaRegulations::css() is now a no-op.
   ═══════════════════════════════════════════════════════════════════════ */

.ifr-th-left { text-align: left; }
.ifr-wrap { overflow-x: auto; margin: 1rem 0; }
.ifr-table { border-collapse: collapse; width: 100%; font-size: 0.9rem; min-width: 820px; }
.ifr-table th, .ifr-table td { border: 1px solid var(--border-color); padding: 0.55rem 0.7rem; text-align: center; vertical-align: middle; }
.ifr-table thead th { background: var(--bg-body); font-weight: 700; }
.ifr-table th.ifr-unit { font-weight: 500; font-size: 0.72rem; color: var(--text-muted); }
.ifr-table td.ifr-juris { text-align: left; white-space: nowrap; }
.ifr-table tbody tr:nth-child(even) { background: rgba(0, 0, 0, 0.02); }
body.dark-mode .ifr-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.04); }
.ifr-flag { font-size: 1.1rem; margin-right: 0.35rem; }
.ifr-juris a { text-decoration: none; color: inherit; font-weight: 700; }
.ifr-juris a:hover { color: var(--primary-color); text-decoration: underline; }
.ifr-instr { display: block; font-size: 0.72rem; color: var(--text-muted); font-weight: 400; margin-top: 0.15rem; max-width: 230px; white-space: normal; }
.ifr-val { font-weight: 600; }
.ifr-na { color: var(--text-muted); }
.ifr-note { font-size: 0.72rem; color: var(--primary-color); cursor: help; text-decoration: underline dotted; }
.ifr-badge { display: inline-block; font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; background: #dcfce7; color: #166534; border-radius: 999px; padding: 0.05rem 0.4rem; vertical-align: middle; }
body.dark-mode .ifr-badge { background: #14532d; color: #bbf7d0; }
.ifr-caption { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.5rem; line-height: 1.5; }
