@font-face { font-family: Geist; src: url("geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("geist-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

        /* ── Color Tokens ── */
        :root {
            --bg:            #14171a;
            --surface:       #1c2024;
            --elevated:      #262b30;
            --sunken:        #101316;
            --green:         #a9c8e8;
            --green-dim:     #293b4c;
            --green-dark:    #202f3d;
            --green-border:  #496581;
            --gold:          #e9c672;
            --gold-bg:       #383021;
            --gold-border:   #665636;
            --border-dim:    #30363c;
            --border-mid:    #46515c;
            --border-bright: #a9c8e8;
            --fg:            #eef0f2;
            --fg2:           #a7afb7;
            --fg3:           #8b959f;
            --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
        }

        /* ── Base ── */
        *, *::before, *::after { box-sizing: border-box; }
        body {
            background: var(--bg);
            color: var(--fg);
            font-family: 'Geist', 'Helvetica Neue', sans-serif;
            font-size: 14px;
            line-height: 1.5;
            -webkit-font-smoothing: antialiased;
            min-height: 100vh;
        }
        ::-webkit-scrollbar { width: 6px; }
        ::-webkit-scrollbar-track { background: var(--bg); }
        ::-webkit-scrollbar-thumb { background: var(--border-dim); }
        ::-webkit-scrollbar-thumb:hover { background: var(--border-mid); }

        /* ── Typography ── */
        .h-display { font-family: 'Geist', Georgia, serif; font-size: clamp(52px, 8vw, 88px); font-weight: 300; line-height: 1; letter-spacing: -0.02em; color: var(--fg); }
        .h1 { font-family: 'Geist', Georgia, serif; font-size: 3rem; font-weight: 300; line-height: 1.2; letter-spacing: -0.02em; color: var(--fg); }
        .h2 { font-family: 'Geist', Georgia, serif; font-size: 1.875rem; font-weight: 400; line-height: 1.35; color: var(--fg); }
        .h3 { font-family: 'Geist', sans-serif; font-size: 1.25rem; font-weight: 600; line-height: 1.35; color: var(--fg); }
        .label { font-family: 'Geist Mono', monospace; font-size: 9px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg2); }
        .label-green { font-family: 'Geist Mono', monospace; font-size: 9px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--green); }

        /* ── Badges ── */
        .badge-green { font-family: 'Geist Mono', monospace; font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; padding: 2px 7px; border: 1px solid var(--green-border); color: var(--green); background: var(--green-dark); border-radius: 2px; display: inline-block; }
        .badge-gold  { font-family: 'Geist Mono', monospace; font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; padding: 2px 7px; border: 1px solid var(--gold-border); color: var(--gold); background: var(--gold-bg); border-radius: 2px; display: inline-block; }
        .badge-dim   { font-family: 'Geist Mono', monospace; font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; padding: 2px 7px; border: 1px solid var(--border-dim); color: var(--fg3); background: transparent; border-radius: 2px; display: inline-block; }

        /* ── Buttons ── */
        .btn-primary { font-family: 'Geist', sans-serif; font-size: 13px; font-weight: 500; color: var(--bg); background: var(--green); border: 1px solid var(--green); padding: 9px 20px; border-radius: 2px; cursor: pointer; letter-spacing: 0.02em; display: inline-block; transition: opacity 120ms var(--ease-out); text-decoration: none; }
        .btn-primary:hover { opacity: 0.88; }
        .btn-outline { font-family: 'Geist', sans-serif; font-size: 13px; font-weight: 500; color: var(--fg2); background: transparent; border: 1px solid var(--border-mid); padding: 9px 20px; border-radius: 2px; cursor: pointer; display: inline-block; transition: border-color 120ms, color 120ms; text-decoration: none; }
        .btn-outline:hover { border-color: var(--green); color: var(--green); }
        .btn-gold { font-family: 'Geist', sans-serif; font-size: 13px; font-weight: 500; color: var(--bg); background: var(--gold); border: 1px solid var(--gold); padding: 9px 20px; border-radius: 2px; cursor: pointer; display: inline-block; transition: opacity 120ms var(--ease-out); text-decoration: none; }
        .btn-gold:hover { opacity: 0.88; }

        /* ── Cards ── */
        .aic-card { background: var(--surface); border: 1px solid var(--border-dim); border-top: 2px solid var(--border-dim); padding: 20px; transition: border-color 120ms var(--ease-out); }
        .aic-card:hover { border-color: var(--border-mid); border-top-color: var(--green); }

        /* ── Nav ── */
        .aic-nav { background: var(--bg); border-bottom: 1px solid var(--border-dim); position: sticky; top: 0; z-index: 100; }
        .aic-nav-inner { max-width: 1280px; margin: 0 auto; padding: 0 32px; height: 60px; display: flex; align-items: center; gap: 32px; }
        .aic-nav-brand { display: flex; align-items: center; gap: 10px; cursor: pointer; flex-shrink: 0; text-decoration: none; }
        .aic-nav-brand-name { font-family: 'Geist Mono', monospace; font-size: 14px; font-weight: 600; color: var(--green); letter-spacing: 0.08em; }
        .aic-nav-brand-sub { font-family: 'Geist Mono', monospace; font-size: 9px; color: var(--fg3); letter-spacing: 0.14em; text-transform: uppercase; }
        .aic-nav-link { font-family: 'Geist', sans-serif; font-size: 14px; font-weight: 400; color: var(--fg2); background: none; border: none; padding: 6px 12px; cursor: pointer; border-radius: 2px; transition: color 120ms; text-decoration: none; display: inline-block; }
        .aic-nav-link:hover, .aic-nav-link.active { color: var(--fg); }

        /* ── Footer ── */
        .aic-footer { background: var(--surface); border-top: 1px solid var(--border-dim); }
        .aic-footer-inner { max-width: 1280px; margin: 0 auto; padding: 48px 32px; }
        .aic-footer-brand { font-family: 'Geist Mono', monospace; font-size: 13px; font-weight: 600; color: var(--green); letter-spacing: 0.08em; margin-bottom: 8px; }
        .aic-footer-sub { font-family: 'Geist', sans-serif; font-size: 13px; color: var(--fg2); line-height: 1.6; max-width: 320px; }
        .aic-footer-heading { font-family: 'Geist Mono', monospace; font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg3); margin-bottom: 16px; }
        .aic-footer-link { font-family: 'Geist', sans-serif; font-size: 13px; color: var(--fg2); text-decoration: none; transition: color 120ms; display: block; padding: 3px 0; }
        .aic-footer-link:hover { color: var(--green); }
        .aic-footer-bottom { border-top: 1px solid var(--border-dim); margin-top: 32px; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
        .aic-footer-copy { font-family: 'Geist Mono', monospace; font-size: 10px; letter-spacing: 0.1em; color: var(--fg3); text-transform: uppercase; }

        /* ── Section dividers ── */
        .aic-section { padding: 64px 0; }
        .aic-section-inner { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

        /* ── Circuit pattern ── */
        .circuit-bg {
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Crect width='80' height='80' fill='none'/%3E%3Cpath d='M0 40 L20 40 L20 20 L40 20' stroke='%231c2e1c' stroke-width='1' fill='none'/%3E%3Cpath d='M80 40 L60 40 L60 60 L40 60' stroke='%231c2e1c' stroke-width='1' fill='none'/%3E%3Ccircle cx='20' cy='40' r='2.5' fill='%231c2e1c'/%3E%3Ccircle cx='60' cy='40' r='2.5' fill='%231c2e1c'/%3E%3Ccircle cx='40' cy='20' r='2.5' fill='%231c2e1c'/%3E%3Ccircle cx='40' cy='60' r='2.5' fill='%231c2e1c'/%3E%3C/svg%3E");
            background-size: 80px 80px;
        }

        /* ── Form elements ── */
        .aic-input { background: var(--sunken); border: 1px solid var(--border-dim); color: var(--fg); font-family: 'Geist', sans-serif; font-size: 14px; padding: 10px 14px; border-radius: 2px; outline: none; width: 100%; transition: border-color 120ms; }
        .aic-input:focus { border-color: var(--border-mid); }
        .aic-input::placeholder { color: var(--fg3); }
        select.aic-input { cursor: pointer; }

        /* ── Utility ── */
        .aic-sep { color: var(--fg3); }
        .text-green { color: var(--green) !important; }
        .text-gold { color: var(--gold) !important; }
        .text-fg { color: var(--fg) !important; }
        .text-fg2 { color: var(--fg2) !important; }
        .text-fg3 { color: var(--fg3) !important; }
        .border-aic { border-color: var(--border-dim) !important; }
        .bg-surface { background: var(--surface) !important; }
        .bg-elevated { background: var(--elevated) !important; }

        /* Prose overrides for AIC dark theme */
        .aic-prose p { font-family: 'Geist', sans-serif; font-size: 15px; color: var(--fg2); line-height: 1.7; margin-bottom: 16px; }
        .aic-prose a { color: var(--green); text-decoration: none; }
        .aic-prose a:hover { text-decoration: underline; }
        .aic-prose strong { color: var(--fg); font-weight: 600; }

        @media (max-width: 767px) {
            .aic-nav-inner { padding: 0 20px; gap: 16px; }
            .aic-nav-brand-sub { display: none; }
            .aic-nav-inner > nav.hidden,
            .aic-nav-inner > div.hidden { display: none !important; }
            .aic-section-inner, .aic-footer-inner { padding-left: 20px; padding-right: 20px; }
            .aic-footer-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
            .aic-footer-bottom { flex-direction: column; align-items: flex-start; }
            .aic-sponsor-cta-inner {
                grid-template-columns: 1fr !important;
                padding-left: 20px !important;
                padding-right: 20px !important;
            }
            .aic-sponsor-cta-inner > div {
                min-width: 0 !important;
            }
        }

/* Shared primitives for directory, editorial and account pages. */
:root { --radius: 2px; --background: var(--bg); --foreground: var(--fg); --card: var(--surface); --card-foreground: var(--fg); --primary: var(--green); --primary-foreground: var(--bg); --secondary: var(--elevated); --secondary-foreground: var(--fg); --muted: var(--elevated); --muted-foreground: var(--fg2); --border: var(--border-dim); --input: var(--border-mid); --ring: var(--green); }
html { scroll-padding-top: 5rem; }
body { font-size: 16px; line-height: 1.6; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 200; padding: .6rem 1rem; background: var(--green); color: var(--bg); }
.skip-link:focus { top: .5rem; }
.h-display, .h1, .h2 { font-family: Geist, sans-serif; font-weight: 560; letter-spacing: -.035em; }
.h-display { font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.06; }
.h1 { line-height: 1.12; }
.aic-card { border-top-width: 1px; }
.aic-card:hover { background: var(--elevated); border-color: var(--border-mid); }
.aic-input:focus { border-color: var(--green); outline: 2px solid var(--green); outline-offset: 2px; }
.circuit-bg { background-image: none; }
.label, .label-green, .badge-green, .badge-gold, .badge-dim { font-size: 11px; letter-spacing: .08em; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }

/* Navigation is shared by every public page. */
.aic-nav-brand img { object-fit: contain; }
.aic-nav-brand-text { display: flex; flex-direction: column; }
.aic-desktop-nav { display: flex; gap: 4px; flex: 1; margin-left: 16px; }
.aic-nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.aic-menu-button { display: none; margin-left: auto; padding: 8px; background: transparent; border: 0; color: var(--fg2); cursor: pointer; }
.aic-mobile-nav { border-top: 1px solid var(--border-dim); background: var(--surface); padding: 12px 20px; }
.aic-mobile-nav[hidden] { display: none; }
.aic-mobile-nav .aic-nav-link { display: block; padding: 10px 0; }
.aic-mobile-nav .btn-gold { display: block; margin-top: 10px; text-align: center; }
@media (max-width: 767px) {
    .aic-desktop-nav, .aic-nav-actions { display: none; }
    .aic-menu-button { display: block; }
}
@media (min-width: 768px) { .aic-mobile-nav { display: none; } }

/* Bridge older utility-based pages to the same palette while they migrate to
   the shared primitives. Keep semantic text and form controls readable. */
main .bg-gradient-to-br, main .bg-gradient-to-r, main .bg-gradient-to-b {
    background: var(--surface) !important;
}
main .bg-white, main .bg-gray-50, main .bg-gray-100,
main .bg-blue-50, main .bg-indigo-50, main .bg-indigo-100,
main .bg-purple-50, main .bg-green-50, main .bg-emerald-50,
main .bg-orange-50, main .bg-yellow-50 { background: var(--surface) !important; }
main .text-gray-900, main .text-gray-800, main .text-gray-700 { color: var(--fg) !important; }
main .text-gray-600, main .text-gray-500 { color: var(--fg2) !important; }
main .text-blue-600, main .text-blue-700, main .text-indigo-600,
main .text-indigo-700, main .text-purple-600, main .text-green-600,
main .text-emerald-600 { color: var(--green) !important; }
main .border-gray-100, main .border-gray-200, main .border-gray-300 { border-color: var(--border-dim) !important; }
main .shadow, main .shadow-sm, main .shadow-md, main .shadow-lg, main .shadow-xl { box-shadow: none !important; }
@media (max-width: 640px) {
    main .flex.justify-center.gap-8 { flex-wrap: wrap; gap: 1rem; }
    main .flex.justify-center.gap-8 > * { flex: 1 1 8rem; }
}

/* Shared sponsorship components retain an explicit paid-placement label. */
.sponsorship-disclosure { border: 1px solid var(--gold-border); background: var(--gold-bg); padding: 1.25rem 1.375rem; margin-bottom: 2.5rem; }
.sponsorship-disclosure p { margin: 0; color: var(--fg); font-size: .875rem; line-height: 1.65; }
.sponsorship-disclosure .sponsorship-disclosure-label { margin-bottom: .5rem; color: var(--gold); font: 500 .6875rem/1.4 'Geist Mono', monospace; letter-spacing: .1em; text-transform: uppercase; }
.sponsorship-disclosure a { color: var(--gold); text-decoration: underline; text-underline-offset: .15em; }
.sponsor-cta { border-top: 1px solid var(--gold-border); border-bottom: 1px solid var(--border-dim); background: var(--surface); }
.aic-sponsor-cta-inner { max-width: 1280px; margin-inline: auto; padding: 2.25rem 2rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem; align-items: center; }
.sponsor-cta-copy { display: grid; gap: .625rem; }
.sponsor-cta-label { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.sponsor-cta-label > span + span { color: var(--fg3); font: .6875rem/1.4 'Geist Mono', monospace; letter-spacing: .08em; text-transform: uppercase; }
.sponsor-cta h2 { margin: 0; color: var(--fg); font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 550; line-height: 1.1; letter-spacing: -.03em; }
.sponsor-cta p { max-width: 45rem; margin: 0; color: var(--fg2); font-size: .9375rem; line-height: 1.6; }
.sponsor-cta-actions { display: flex; gap: .625rem; flex-wrap: wrap; }

/* Company result cards are shared between categories and search. */
.company-listing { display: flex; flex-direction: column; gap: .75rem; color: var(--fg); text-decoration: none; }
.company-listing-sponsored { border-color: var(--gold-border); }
.company-listing-badge { align-self: flex-start; }
.company-listing-heading { display: flex; align-items: center; gap: .875rem; }
.company-listing h3 { margin: 0; color: var(--fg); font-size: 1.25rem; font-weight: 550; line-height: 1.2; }
.company-listing p { flex: 1; margin: 0; color: var(--fg2); font-size: .875rem; line-height: 1.55; }
.company-listing-logo { width: 2.75rem; height: 2.75rem; flex-shrink: 0; overflow: hidden; display: grid; place-items: center; border: 1px solid var(--border-mid); background: var(--sunken); color: var(--green); font: 500 1rem 'Geist Mono', monospace; }
.company-listing-logo.has-logo { background: #fff; }
.company-listing-logo img { width: 100%; height: 100%; object-fit: contain; }
.company-listing-tags { display: flex; flex-wrap: wrap; gap: .25rem; }
.company-listing-footer { display: flex; align-items: center; justify-content: space-between; gap: .5rem; color: var(--green); font-size: .8125rem; }
.company-listing-verified { font: .6875rem 'Geist Mono', monospace; }

/* Compatibility for older guides and calculators using utility classes. */
.aic-dark-page :is(.bg-primary-50, .bg-secondary-50, .bg-accent-50) { background: var(--surface) !important; }
.aic-dark-page .text-primary-900 { color: var(--fg) !important; }
.aic-dark-page :is(.divide-gray-200, .divide-gray-300) > :not([hidden]) ~ :not([hidden]) { border-color: var(--border-dim) !important; }
.aic-dark-page a:not(.btn):not(.sponsorship-disclosure a) { color: var(--green); }
.aic-dark-page a:hover { color: var(--fg); }
.aic-kicker { color: var(--gold); font: .75rem 'Geist Mono', monospace; letter-spacing: .08em; text-transform: uppercase; }

/* Allauth uses the same shell while keeping account pages out of search. */
.account-layout { width: min(100% - 2rem, 32rem); margin: 0 auto; padding: clamp(3rem, 8vw, 6rem) 0; }
.account-card { padding: clamp(1.25rem, 4vw, 2rem); border: 1px solid var(--border-dim); background: var(--surface); }
.account-card h1 { margin: 0 0 1rem; font-size: 2rem; font-weight: 550; line-height: 1.15; letter-spacing: -.03em; }
.account-card p { margin: .75rem 0; color: var(--fg2); }
.account-card a, .account-nav a { color: var(--green); text-decoration: underline; text-underline-offset: .15em; }
.account-card form { display: grid; gap: .75rem; margin-top: 1.5rem; }
.account-card label { display: block; margin-bottom: .375rem; color: var(--fg); font-size: .875rem; }
.account-card input:not([type=checkbox]):not([type=radio]):not([type=hidden]), .account-card textarea { width: 100%; padding: .625rem .75rem; background: var(--sunken); border: 1px solid var(--border-mid); color: var(--fg); }
.account-card input[type=checkbox], .account-card input[type=radio] { accent-color: var(--green); margin-right: .5rem; }
.account-card input[type=checkbox] + label, .account-card input[type=radio] + label { display: inline; }
.account-card button { justify-self: start; padding: .625rem 1rem; background: var(--green); color: var(--bg); border: 1px solid var(--green); font-weight: 600; cursor: pointer; }
.account-card .errorlist, .account-messages { color: #f39a90; }
.account-nav { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; font-size: .875rem; }
.account-messages { margin-bottom: 1rem; }
@media (max-width: 1023px) {
    .company-overview-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 2rem !important; }
    .company-overview-grid > * { min-width: 0; }
}
/* Repeated evidence metrics in editorial guides. */
.guide-metric { background: var(--elevated); border: 1px solid var(--border-dim); padding: .75rem; text-align: center; }
.guide-metric-value { color: var(--green); font: 700 1rem 'Geist Mono', monospace; }
.guide-metric-label { color: var(--fg3); font-size: .75rem; }
/* Legacy pages use inline grids and stat rows; keep them within narrow viewports. */
@media (max-width: 640px) {
    main [style*="grid-template-columns:repeat(auto-fill,minmax("],
    main [style*="grid-template-columns:repeat(auto-fit,minmax("] {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)) !important;
    }
    main [style*="grid-template-columns:1fr 1fr"],
    main [style*="grid-template-columns:minmax(0,0.85fr) minmax(320px,1fr)"] {
        grid-template-columns: minmax(0, 1fr) !important;
    }
    main [style*="display:flex;gap:0"],
    main [style*="display:flex;border-top:1px solid var(--border-dim)"] { flex-wrap: wrap; }
    main .prose, main .prose * { overflow-wrap: anywhere; }
    main .grid > * { min-width: 0; }
}

/* ── Market intelligence (computed pages) ── */
.mi { max-width: 1180px; margin: 0 auto; padding: 48px 20px 80px; }
.mi-hero { border-bottom: 1px solid var(--border-dim); padding-bottom: 28px; margin-bottom: 8px; }
.mi-hero .h1 { margin: 10px 0 14px; font-size: clamp(30px, 4.2vw, 46px); }
.mi-lede { color: var(--fg2); max-width: 820px; font-size: 15px; line-height: 1.65; }
.mi-lede strong { color: var(--fg); font-weight: 600; }
.mi-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--border-dim); border: 1px solid var(--border-dim); margin-top: 24px; }
.mi-metrics > div { background: var(--surface); padding: 14px 16px; }
.mi-metrics dt { font-family: 'Geist Mono', monospace; font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--fg3); }
.mi-metrics dd { margin: 6px 0 0; font-size: 26px; font-weight: 300; color: var(--fg); font-variant-numeric: tabular-nums; }
.mi-metrics dd span { font-size: 13px; color: var(--fg3); margin-left: 2px; }
.mi-section { padding: 36px 0 8px; border-bottom: 1px solid var(--border-dim); }
.mi-section .h2 { font-size: 1.6rem; margin-bottom: 10px; }
.mi-section .h3 { font-size: 1.05rem; margin: 18px 0 8px; }
.mi-note { color: var(--fg2); max-width: 860px; margin: 0 0 16px; line-height: 1.6; }
.mi-small { color: var(--fg3); font-size: 12px; line-height: 1.5; }
.mi a { color: var(--green); text-decoration: none; border-bottom: 1px solid var(--green-dim); }
.mi a:hover { border-bottom-color: var(--green); }
.mi-scenarios, .mi-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; margin: 8px 0 20px; }
.mi-card { background: var(--surface); border: 1px solid var(--border-dim); padding: 16px 18px; border-radius: 2px; }
.mi-big { font-size: 28px; font-weight: 300; margin: 6px 0; font-variant-numeric: tabular-nums; }
.mi-form { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: flex-end; background: var(--sunken); border: 1px solid var(--border-dim); padding: 14px 16px; margin: 0 0 16px; scroll-margin-top: 80px; }
.mi-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--fg2); }
.mi-form input { width: 150px; }
.mi-table-wrap { overflow-x: auto; border: 1px solid var(--border-dim); }
.mi-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mi-table caption { text-align: left; padding: 10px 12px; color: var(--fg3); font-size: 12px; caption-side: top; }
.mi-table th { text-align: left; font-family: 'Geist Mono', monospace; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg3); background: var(--sunken); padding: 10px 12px; border-bottom: 1px solid var(--border-dim); white-space: nowrap; }
.mi-table td { padding: 10px 12px; border-bottom: 1px solid var(--border-dim); vertical-align: top; }
.mi-table tr:hover td { background: var(--surface); }
.mi-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mi-matrix td:not(:first-child), .mi-matrix th:not(:first-child) { text-align: center; }
.mi-unknown { color: var(--fg3); font-style: italic; }
.mi-yes { color: #9fd3a8; font-weight: 600; cursor: help; }
.mi-no { color: #e0a39a; font-weight: 600; cursor: help; }
.mi-dash { color: var(--fg3); }
.mi-bars { list-style: none; padding: 0; margin: 0 0 12px; max-width: 760px; }
.mi-bars li { display: grid; grid-template-columns: 200px 1fr 36px; align-items: center; gap: 12px; padding: 5px 0; font-size: 13px; }
.mi-bar { height: 10px; background: linear-gradient(90deg, var(--green) var(--w), var(--border-dim) var(--w)); border-radius: 1px; }
.mi-bar-n { text-align: right; color: var(--fg2); font-variant-numeric: tabular-nums; }
.mi-edges { margin: 0 0 12px 18px; color: var(--fg2); line-height: 1.8; }
.mi-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mi-offering { border: 1px solid var(--border-dim); background: var(--surface); padding: 18px; margin: 16px 0; }
@media (max-width: 640px) { .mi-bars li { grid-template-columns: 120px 1fr 28px; } .mi-form input { width: 120px; } }
.mi-indep { color: var(--gold); font-weight: 600; border-bottom-color: var(--gold-border) !important; }
