/*
 * GIRI – Home Interface
 * [giri_home] / [giri_supplement_checker]
 * All classes prefixed .gh- to avoid theme conflicts.
 */
.giri-home{max-width:760px;margin:0 auto;padding:2rem 1rem 4rem;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Helvetica,sans-serif;color:#1a1a1a}
.giri-home *{box-sizing:border-box}

/* ── Hero ───────────────────────────────────────────────── */
.gh-hero{text-align:center;margin-bottom:2.5rem}
.gh-hero-eyebrow{display:inline-block;font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#5f5e5a;background:#f1efe8;border-radius:999px;padding:4px 14px;margin-bottom:12px}
.gh-hero-title{font-size:26px;font-weight:800;letter-spacing:-.03em;margin:0 0 8px;color:#1a1a1a}
.gh-hero-sub{font-size:15px;color:#6b7280;line-height:1.6;margin:0;max-width:500px;margin-left:auto;margin-right:auto}

/* ── Two-column layout ──────────────────────────────────── */
.gh-two-col{display:grid;grid-template-columns:1fr 1fr;gap:16px}
@media(max-width:580px){.gh-two-col{grid-template-columns:1fr}}

/* ── Direction cards ────────────────────────────────────── */
.gh-card{background:#fff;border:1px solid #e5e5e2;border-radius:16px;padding:24px;display:flex;flex-direction:column;gap:12px;position:relative;overflow:visible}
.gh-card-icon{width:44px;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.gh-card-icon--ing{background:#eaf3de;color:#3b6d11}
.gh-card-icon--prod{background:#e6f1fb;color:#185fa5}
.gh-card-title{font-size:16px;font-weight:700;margin:0;color:#1a1a1a}
.gh-card-desc{font-size:13px;color:#6b7280;margin:0;line-height:1.55}

/* ── Search inputs ──────────────────────────────────────── */
.gh-search-wrap{position:relative}
.gh-search-icon{position:absolute;left:11px;top:50%;transform:translateY(-50%);color:#9ca3af;pointer-events:none}
.gh-search-input{width:100%;height:42px;padding:0 32px 0 35px;border:1.5px solid #d1d1ce;border-radius:10px;font-size:14px;color:#1a1a1a;background:#f9f9f7;outline:none;font-family:inherit;transition:border-color .15s,background .15s}
.gh-search-input:focus{border-color:#378add;background:#fff;box-shadow:0 0 0 3px rgba(55,138,221,.1)}
.gh-search-input::placeholder{color:#9ca3af}
.gh-search-clear{position:absolute;right:9px;top:50%;transform:translateY(-50%);background:none;border:none;cursor:pointer;color:#9ca3af;font-size:18px;line-height:1;padding:2px 5px;display:none;align-items:center}
.gh-search-clear:hover{color:#1a1a1a}

/* ── Add product button ─────────────────────────────────── */
.gh-add-btn{width:100%;height:40px;background:none;border:1.5px dashed #d1d1ce;border-radius:10px;font-size:13px;font-weight:600;color:#6b7280;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:6px;transition:all .15s;font-family:inherit}
.gh-add-btn:hover{border-color:#378add;color:#185fa5;background:#f0f7ff}

/* ── Dropdowns ──────────────────────────────────────────── */
.gh-dropdown{position:absolute;left:0;right:0;top:calc(100% + 4px);background:#fff;border:1px solid #d1d1ce;border-radius:10px;box-shadow:0 8px 28px rgba(0,0,0,.12);z-index:9999;max-height:280px;overflow-y:auto;display:none}
.gh-dropdown.open{display:block}
.gh-dd-item{padding:10px 14px;cursor:pointer;display:flex;align-items:center;gap:10px;border-bottom:1px solid #f1efe8}
.gh-dd-item:last-child{border-bottom:none}
.gh-dd-item:hover,.gh-dd-item.focused{background:#f9f9f7}
.gh-dd-main{flex:1;min-width:0}
.gh-dd-name{font-size:14px;font-weight:500;color:#1a1a1a}
.gh-dd-sci{font-size:12px;color:#9ca3af;font-style:italic;margin-top:1px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gh-dd-pill{font-size:10px;font-weight:600;letter-spacing:.05em;padding:3px 9px;border-radius:999px;border:1px solid;white-space:nowrap;flex-shrink:0}
.gh-dd-empty{padding:14px;text-align:center;color:#9ca3af;font-size:13px}
.gh-dd-load{padding:12px;display:flex;align-items:center;justify-content:center;gap:8px;color:#9ca3af;font-size:13px}

/* ── Modals ─────────────────────────────────────────────── */
.gh-modal-bd{display:none;position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:99999;align-items:center;justify-content:center;padding:1rem}
.gh-modal-bd.open{display:flex}
.gh-modal{background:#fff;border-radius:16px;width:100%;max-width:500px;max-height:90vh;overflow-y:auto}
.gh-modal--wide{max-width:580px}
.gh-modal-head{display:flex;align-items:flex-start;justify-content:space-between;padding:18px 22px 14px;border-bottom:1px solid #e5e5e2;position:sticky;top:0;background:#fff;z-index:1}
.gh-modal-head h3{font-size:16px;font-weight:700;margin:0 0 6px;color:#1a1a1a}
.gh-x-btn{background:none;border:none;cursor:pointer;font-size:22px;color:#9ca3af;padding:0;line-height:1;flex-shrink:0;margin-left:10px}
.gh-x-btn:hover{color:#1a1a1a}
.gh-modal-body{padding:20px 22px}
.gh-modal-foot{padding:14px 22px;border-top:1px solid #e5e5e2;display:flex;gap:10px;justify-content:flex-end;position:sticky;bottom:0;background:#fff}

/* ── Steps ──────────────────────────────────────────────── */
.gh-steps{display:flex;align-items:center;gap:0;margin-top:4px}
.gh-step{display:flex;align-items:center;gap:5px}
.gh-step-dot{width:22px;height:22px;border-radius:50%;border:2px solid #d1d1ce;background:#fff;font-size:11px;font-weight:700;color:#9ca3af;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:all .2s}
.gh-step span{font-size:11px;color:#9ca3af;font-weight:500;white-space:nowrap}
.gh-step.active .gh-step-dot{border-color:#378add;background:#378add;color:#fff}
.gh-step.active span{color:#185fa5}
.gh-step.done .gh-step-dot{border-color:#3b6d11;background:#3b6d11;color:#fff}
.gh-step.done span{color:#3b6d11}
.gh-step-line{flex:1;height:1.5px;background:#e5e5e2;min-width:14px;max-width:28px}

/* ── Form ───────────────────────────────────────────────── */
.gh-field{margin-bottom:14px}
.gh-field label{display:block;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.07em;color:#6b7280;margin-bottom:5px}
.gh-field-input{width:100%;height:42px;padding:0 12px;border:1.5px solid #d1d1ce;border-radius:10px;font-size:14px;color:#1a1a1a;background:#f9f9f7;outline:none;font-family:inherit;transition:border-color .15s}
.gh-field-input:focus{border-color:#378add;background:#fff;box-shadow:0 0 0 3px rgba(55,138,221,.1)}
.gh-field-input::placeholder{color:#9ca3af}
.gh-step-intro{font-size:13px;color:#6b7280;margin:0 0 12px;line-height:1.5}

/* ── Tag list ───────────────────────────────────────────── */
.gh-tag-list{display:flex;flex-wrap:wrap;gap:6px;min-height:44px;padding:8px;border:1.5px solid #d1d1ce;border-radius:10px;background:#f9f9f7;align-items:center;transition:border-color .15s;cursor:text}
.gh-tag-list:focus-within{border-color:#378add;background:#fff;box-shadow:0 0 0 3px rgba(55,138,221,.1)}
.gh-ing-tag{display:inline-flex;align-items:center;gap:5px;background:#fff;border:1px solid #d1d1ce;border-radius:999px;padding:3px 10px;font-size:13px;color:#1a1a1a}
.gh-ing-tag button{background:none;border:none;cursor:pointer;color:#9ca3af;font-size:15px;padding:0;line-height:1}
.gh-ing-tag button:hover{color:#1a1a1a}
.gh-tag-input{border:none;outline:none;background:transparent;font-size:13px;min-width:140px;flex:1;color:#1a1a1a;font-family:inherit;padding:2px 4px}
.gh-tag-hint{font-size:12px;color:#9ca3af;margin:6px 0 0}

/* ── Buttons ────────────────────────────────────────────── */
.gh-btn-primary{background:#141820;color:#fff;border:none;border-radius:10px;padding:10px 22px;font-size:14px;font-weight:600;cursor:pointer;transition:opacity .15s;font-family:inherit}
.gh-btn-primary:hover{opacity:.85}
.gh-btn-primary:disabled{opacity:.4;cursor:not-allowed}
.gh-btn-ghost{background:none;border:1px solid #d1d1ce;border-radius:10px;padding:10px 18px;font-size:14px;font-weight:500;color:#6b7280;cursor:pointer;font-family:inherit}
.gh-btn-ghost:hover{background:#f9f9f7}

/* ── Ingredient profile modal ───────────────────────────── */
.gh-ip-sci{font-size:13px;color:#6b7280;font-style:italic;margin:0 0 10px}
.gh-ip-row{font-size:13px;margin:0 0 10px;color:#1a1a1a}
.gh-ip-row b{color:#6b7280;font-weight:600}
.gh-ip-summary{font-size:14px;line-height:1.65;margin:0 0 14px;color:#1a1a1a}
.gh-link{font-size:13px;color:#185fa5;text-decoration:none}
.gh-link:hover{text-decoration:underline}

/* ── Product profile modal ──────────────────────────────── */
.gh-pp-verdict{padding:20px 22px;border-bottom:1px solid #e5e5e2}
.gh-pp-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.gh-pp-name{font-size:18px;font-weight:800;color:#1a1a1a}
.gh-pp-brand{font-size:14px;color:#6b7280;margin-top:2px}
.gh-pp-score-box{display:flex;flex-direction:column;align-items:flex-end;gap:6px;flex-shrink:0}
.gh-pp-score{font-size:44px;font-weight:800;letter-spacing:-2px;line-height:1}
.gh-pp-denom{font-size:18px;font-weight:400;opacity:.4}
.gh-pp-badge{font-size:11px;font-weight:700;letter-spacing:.08em;padding:4px 12px;border-radius:999px;color:#fff;white-space:nowrap}
.gh-pp-desc{font-size:13px;line-height:1.6;margin:10px 0 0}
.gh-pp-flags{padding:14px 22px 0}
.gh-pp-ings{padding:14px 22px}
.gh-sec-label{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.07em;color:#6b7280;margin:0 0 10px}

/* ── Ingredient rows ────────────────────────────────────── */
.gh-ing-row{display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid #f1efe8}
.gh-ing-row:last-child{border-bottom:none}
.gh-ing-info{flex:1;min-width:0}
.gh-ing-name{font-size:14px;font-weight:500;color:#1a1a1a}
.gh-ing-name a{color:inherit;text-decoration:none}
.gh-ing-name a:hover{color:#185fa5}
.gh-ing-sci{font-size:11px;color:#9ca3af;font-style:italic;margin-top:1px}
.gh-ing-bar-wrap{display:flex;align-items:center;gap:7px;width:120px;flex-shrink:0}
.gh-ing-bar{flex:1;height:5px;background:#f1efe8;border-radius:999px;overflow:hidden}
.gh-ing-score{font-size:13px;font-weight:600;min-width:28px;text-align:right}

/* ── Risk scale ─────────────────────────────────────────── */
.gh-scale{margin:10px 0 2px}
.gh-scale-track{height:8px;border-radius:999px;display:flex;overflow:hidden}
.gh-scale-track div{flex:1}
.gh-scale-pins{position:relative;height:12px}
.gh-scale-pin{position:absolute;width:10px;height:10px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1.5px rgba(0,0,0,.12);transform:translateX(-50%);top:1px}
.gh-scale-labels{display:flex;justify-content:space-between;font-size:10px;color:#9ca3af;margin-top:2px}

/* ── Flags ──────────────────────────────────────────────── */
.gh-flag{display:flex;align-items:flex-start;gap:8px;background:#fcebeb;border:1px solid #f09595;border-radius:8px;padding:10px 12px;font-size:13px;color:#791f1f;line-height:1.5;margin-bottom:8px}
.gh-flag svg{flex-shrink:0;margin-top:1px}

/* ── Analysis result ────────────────────────────────────── */
.gh-result-banner{border-radius:12px;padding:16px 18px;margin-bottom:12px}
.gh-result-score-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:8px}
.gh-result-score{font-size:44px;font-weight:800;line-height:1;letter-spacing:-2px}
.gh-result-denom{font-size:18px;font-weight:400;opacity:.4}
.gh-result-badge{font-size:11px;font-weight:700;letter-spacing:.08em;padding:5px 13px;border-radius:999px;color:#fff}
.gh-result-desc{font-size:13px;line-height:1.6;margin:8px 0 0}
.gh-result-method{font-size:11px;opacity:.6;margin:4px 0 0}

/* ── Misc ───────────────────────────────────────────────── */
.gh-note{font-size:12px;color:#9ca3af;font-style:italic;margin:8px 0 0}
.gh-disclaimer{font-size:11px;color:#9ca3af;line-height:1.5;margin-top:10px;text-align:center}

/* ── Spinner ────────────────────────────────────────────── */
.gh-spinner{width:28px;height:28px;border:3px solid rgba(0,0,0,.1);border-top-color:#6b7280;border-radius:50%;animation:gh-spin .7s linear infinite;margin:0 auto 10px}
.gh-spinner--sm{width:14px;height:14px;border-width:2px;margin:0;display:inline-block;vertical-align:middle}
.gh-loading-block{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:2rem 0;text-align:center;color:#6b7280;font-size:14px;gap:8px}
@keyframes gh-spin{to{transform:rotate(360deg)}}

/* ── Product Builder card ───────────────────────────────────── */
.gh-builder-card{background:#fff;border:1.5px solid #2271b1;border-radius:16px;padding:24px;margin-bottom:0}
.gh-builder-head{display:flex;align-items:flex-start;gap:12px;margin-bottom:18px}
.gh-card-icon--saved{background:#f0f0fa;color:#534ab7}

/* Meta row — name / brand / dosage */
.gh-meta-row{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:16px}
@media(max-width:580px){.gh-meta-row{grid-template-columns:1fr}}
.gh-meta-field label{display:block;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.07em;color:#6b7280;margin-bottom:5px}
.gh-opt{font-weight:400;text-transform:none;letter-spacing:0;color:#9ca3af;font-size:11px}

/* Ingredient counter label */
.gh-builder-ings-label{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}
.gh-builder-ings-label span:first-child{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.07em;color:#6b7280}
.gh-ing-counter{font-size:12px;font-weight:600;color:#9ca3af;background:#f1efe8;padding:2px 10px;border-radius:999px}

/* Analyse button */
.gh-analyse-btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:48px;background:#141820;color:#fff;border:none;border-radius:10px;font-size:15px;font-weight:700;cursor:pointer;transition:opacity .15s;font-family:inherit;margin-top:14px}
.gh-analyse-btn:hover:not(:disabled){opacity:.85}
.gh-analyse-btn:disabled{opacity:.35;cursor:not-allowed}

/* Inline result */
.gh-builder-result{margin-top:18px;border-top:1px solid #e5e5e2;padding-top:18px}
.gh-result-wrap{}
.gh-result-product-head{margin-bottom:12px}
.gh-result-product-name{font-size:17px;font-weight:800;color:#1a1a1a}
.gh-result-product-sub{font-size:13px;color:#6b7280;margin-top:2px}
.gh-result-banner{border-radius:12px;padding:16px 18px;margin-bottom:12px}
.gh-result-score-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:8px}
.gh-result-score{font-size:44px;font-weight:800;line-height:1;letter-spacing:-2px}
.gh-result-denom{font-size:18px;font-weight:400;opacity:.4}
.gh-result-badge{font-size:11px;font-weight:700;letter-spacing:.08em;padding:5px 14px;border-radius:999px;color:#fff}
.gh-result-desc{font-size:13px;line-height:1.6;margin:8px 0 0}
.gh-result-method{font-size:11px;opacity:.6;margin:4px 0 0}

/* ── Brand Catalog Card ─────────────────────────────────────────── */
.gh-card--brand{padding:22px 22px 18px}
.gh-card-icon--brand{background:#f0ede4;color:#5a4a2a}

.gh-brand-search-row{margin:14px 0 16px}

/* Product grid */
.gh-brand-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px}
@media(max-width:580px){.gh-brand-grid{grid-template-columns:1fr}}

.gh-bp-card{display:flex;align-items:stretch;background:#faf9f5;border:1px solid #e5e5e2;border-radius:10px;overflow:hidden;cursor:pointer;transition:box-shadow .15s,border-color .15s}
.gh-bp-card:hover{border-color:#c8c8be;box-shadow:0 2px 8px rgba(0,0,0,.08)}

.gh-bp-cat-bar{width:4px;flex-shrink:0}
.gh-bp-body{flex:1;padding:10px 10px 10px 12px;min-width:0}
.gh-bp-name{font-size:13px;font-weight:700;color:#1a1a1a;line-height:1.35;margin-bottom:3px}
.gh-bp-sub{font-size:11px;color:#9ca3af;margin-bottom:6px;text-transform:uppercase;letter-spacing:.05em}
.gh-bp-ings{display:flex;flex-wrap:wrap;gap:4px}
.gh-bp-ing{font-size:10px;background:#eeedea;color:#555;padding:2px 7px;border-radius:999px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:140px}
.gh-bp-more{font-size:10px;color:#9ca3af;padding:2px 4px;align-self:center}

.gh-bp-action{display:flex;align-items:center;padding:0 10px;color:#c8c8be;flex-shrink:0}
.gh-bp-card:hover .gh-bp-action{color:#639922}

/* Loading / empty states */
.gh-brand-load{display:flex;justify-content:center;padding:24px}
.gh-brand-empty{padding:20px;text-align:center;color:#9ca3af;font-size:13px}

/* Brand pill + meta row inside card */
.gh-bp-meta{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin-bottom:5px}
.gh-bp-brand-pill{font-size:10px;font-weight:700;letter-spacing:.04em;background:#141820;color:#fff;padding:2px 7px;border-radius:999px;white-space:nowrap}
.gh-bp-sub{font-size:10px;color:#9ca3af;text-transform:uppercase;letter-spacing:.05em}

/* ── Unified search dropdown — section labels & divider ─────── */
.gh-dd-section-label{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:#9ca3af;padding:6px 14px 3px;pointer-events:none}
.gh-dd-divider{height:1px;background:#e5e5e2;margin:4px 0}
.gh-dd-brand-pill{font-size:10px;font-weight:700;letter-spacing:.04em;color:#fff;padding:2px 8px;border-radius:999px;white-space:nowrap;flex-shrink:0;margin-left:6px}

/* ── Builder product dropdown (spans full meta-row width) ───── */
.gh-dropdown--builder{
    position:absolute;
    top:calc(100% + 4px);
    left:0; right:0;
    z-index:200;
}

/* ── Builder dropdown — scrollable, taller ──────────────────── */
.gh-dropdown--builder{
    max-height:360px;
    overflow-y:auto;
}

/* ── Brand Catalog: Level 1 — brand tiles ───────────────────── */
.gh-brand-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px;margin-top:16px}
@media(max-width:580px){.gh-brand-tiles{grid-template-columns:1fr}}

.gh-brand-tile{display:flex;align-items:stretch;background:#faf9f5;border:1.5px solid #e5e5e2;border-radius:12px;overflow:hidden;cursor:pointer;transition:box-shadow .15s,border-color .15s}
.gh-brand-tile:hover{box-shadow:0 3px 12px rgba(0,0,0,.1);border-color:#c8c8be}
.gh-bt-color-bar{width:5px;flex-shrink:0}
.gh-bt-body{flex:1;padding:14px 12px 12px 14px}
.gh-bt-name{font-size:16px;font-weight:800;color:#1a1a1a;margin-bottom:3px}
.gh-bt-count{font-size:12px;color:#9ca3af;margin-bottom:8px}
.gh-bt-cats{display:flex;flex-wrap:wrap;gap:4px}
.gh-bt-cat{font-size:10px;font-weight:600;padding:2px 8px;border-radius:999px;border:1px solid;white-space:nowrap}
.gh-bt-arrow{display:flex;align-items:center;padding:0 14px;color:#c8c8be;flex-shrink:0}
.gh-brand-tile:hover .gh-bt-arrow{color:#639922}

/* ── Brand Catalog: Level 2 — product list header ───────────── */
.gh-brand-products-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:14px;padding-bottom:14px;border-bottom:1px solid #e5e5e2}
.gh-back-btn{display:flex;align-items:center;gap:4px;font-size:13px;font-weight:600;color:#6b7280;background:none;border:1px solid #e5e5e2;border-radius:8px;padding:5px 12px;cursor:pointer;transition:all .15s;font-family:inherit;white-space:nowrap}
.gh-back-btn:hover{color:#1a1a1a;border-color:#c8c8be}
.gh-brand-products-meta{display:flex;align-items:center;gap:8px;flex:1}
.gh-brand-products-title{font-size:16px;font-weight:800}
.gh-brand-products-count{font-size:12px;color:#9ca3af;background:#f1efe8;padding:2px 10px;border-radius:999px}
.gh-brand-prod-search{flex:1;min-width:160px;max-width:260px}

/* ── Legal disclaimer footer ────────────────────────────────── */
.gh-legal-footer{margin-top:24px;padding:14px 18px;border-top:1px solid #e5e5e2;border-radius:0 0 12px 12px}
.gh-legal-badge{display:inline-block;font-size:9px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#9ca3af;background:#f1efe8;padding:2px 8px;border-radius:999px;margin-bottom:8px}
.gh-legal-text{font-size:9.5px;line-height:1.6;color:#b0aea6;margin:0 0 5px;font-style:normal}
.gh-legal-text strong{font-weight:600;color:#9ca3af}
.gh-legal-liability{color:#c8c8be;font-size:9px}
.gh-legal-link{color:#9ca3af;text-decoration:none}
.gh-legal-link:hover{text-decoration:underline}

/* ═══════════════════════════════════════════════════════
   GIRI v4 — New design (checker card with dark header)
═══════════════════════════════════════════════════════ */

.giri-home--v4 { max-width: 860px; margin: 0 auto; }

/* ── Main checker card ── */
.gh-checker-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #ddd9d2;
}

/* ── Dark header — v4.2 responsive ── */
.gh-card-header {
    background: #0f1e0f;
    padding: 20px 28px 0;
}
/* Row 1: logo + org name (full width) */
.gh-card-header-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}
.gh-brand-block {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
    min-width: 0;
}
.gh-logo-wrap {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    box-shadow: none;
    overflow: hidden;
}
.gh-logo-img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 10px;
}
.gh-logo-fallback {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gh-org-name {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 3px;
}
.gh-org-sub {
    font-size: 11px;
    color: #ffffff;
    line-height: 1.4;
}
/* Badges: full row under brand block */
.gh-header-badges {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    padding-top: 2px;
}
.gh-hbadge {
    font-size: 9px;
    color: #8ab88a;
    border: 0.5px solid #2d5c2d;
    background: rgba(138,184,138,.08);
    border-radius: 3px;
    padding: 3px 9px;
    letter-spacing: .05em;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}
/* Hero text */
.gh-card-header-hero {
    padding: 0;
}
.gh-card-header h1.gh-header-h1 {
    font-size: 34px;
    font-weight: 500;
    color: #f0f5f0;
    line-height: 1.15;
    margin-bottom: 11px;
    letter-spacing: -.03em;
}
.gh-card-header h1.gh-header-h1 em {
    color: #4ec966;
    font-style: normal;
}
.gh-header-sub {
    font-size: 15px;
    color: #ffffff !important;
    line-height: 1.65;
    max-width: 600px;
    margin-bottom: 0;
}
.gh-header-inst {
    padding: 10px 0 22px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.gh-header-inst p {
    font-size: 11px;
    color: #cce8cc !important;
    line-height: 1.5;
    margin: 0;
    letter-spacing: .01em;
}
.gh-card-bar {
    height: 3px;
    background: #52c46a;
}

/* ── Body ── */
.gh-card-body {
    padding: 22px 28px 24px;
}
.gh-checker-col {
    width: 100%;
}

/* ── Stats strip (horizontal, above footer) ── */
.gh-stats-strip {
    border-top: 0.5px solid #e0ddd6;
    background: #f9f8f6;
    padding: 14px 28px;
}
.gh-stats-strip-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}
.gh-strip-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px 0 0;
    margin-right: 4px;
}
.gh-strip-val {
    font-size: 18px;
    font-weight: 600;
    color: #1a2a19;
    line-height: 1.1;
}
.gh-strip-lab {
    font-size: 10px;
    color: #8a877f;
    letter-spacing: .03em;
    text-transform: uppercase;
    margin-top: 1px;
}
.gh-strip-divider {
    width: 1px;
    height: 28px;
    background: #ddd9d2;
    margin: 0 16px 0 0;
    flex-shrink: 0;
}
.gh-strip-pillar {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 500;
    color: #3a8f54;
    margin-right: 16px;
    padding: 4px 8px;
    background: #eaf5ec;
    border-radius: 4px;
}
.gh-strip-pillar svg {
    color: #2e8b47;
    flex-shrink: 0;
}
@media (max-width: 480px) {
    .gh-stats-strip-inner { gap: 8px; }
    .gh-strip-stat { padding: 0; margin: 0; }
    .gh-strip-divider { display: none; }
}


@media (max-width: 640px) {
    .gh-card-header { padding: 16px 18px 0; }
    .gh-card-body { padding: 16px 18px 18px; }
    .gh-stats-strip { padding: 12px 18px; }
    .gh-legal-footer { padding: 14px 18px; }
    .gh-card-header h1.gh-header-h1 { font-size: 24px; }
    .gh-header-sub { font-size: 13px; }
}

/* ── Checker column ── */
.gh-checker-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 3px;
}
.gh-checker-icon {
    width: 26px;
    height: 26px;
    border-radius: 4px;
    background: #eaf5ec;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #2e8b47;
}
.gh-checker-title {
    font-size: 13px;
    font-weight: 500;
    color: #1a2a19;
}
.gh-checker-subtitle {
    font-size: 12px;
    color: #8a877f;
    margin-bottom: 14px;
    margin-left: 34px;
}

/* ── Micro safety ── */
.gh-micro-safety {
    font-size: 11px;
    color: #8a877f;
    line-height: 1.55;
    margin-top: 10px;
    padding: 9px 11px;
    background: #f6f4f0;
    border-left: 2px solid #b8d4bc;
    border-radius: 0 4px 4px 0;
}

/* ── Risk scale row ── */
.gh-risk-row {
    display: flex;
    gap: 5px;
    margin-top: 11px;
    padding-top: 9px;
    border-top: 0.5px solid #eae5de;
    align-items: center;
    flex-wrap: wrap;
}
.gh-rp {
    font-size: 9px;
    padding: 3px 7px;
    border-radius: 3px;
    font-weight: 500;
}
.gh-rp--low  { color: #1e6b30; background: #e4f5e8; }
.gh-rp--mod  { color: #7a4a0a; background: #fef3e2; }
.gh-rp--hi   { color: #7a1f1e; background: #fde8e8; }
.gh-rp--crit { color: #3c3489; background: #eeedfe; }
.gh-risk-scale-lab {
    font-size: 10px;
    color: #aca8a0;
    margin-left: auto;
}

/* ── Stats column ── */
.gh-stats-box {
    background: #f6f4f0;
    border-radius: 4px;
    padding: 14px;
    margin-bottom: 9px;
    border: 0.5px solid #e0ddd6;
}
.gh-stats-title {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #9a968e;
    margin-bottom: 8px;
}
.gh-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    border-bottom: 0.5px solid #e8e4de;
}
.gh-stat-row:last-child { border: none; }
.gh-stat-lab { font-size: 11px; color: #6b6560; }
.gh-stat-val { font-size: 11px; font-weight: 500; color: #1a2a19; }

/* ── Pillars ── */
.gh-pillars {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.gh-pillar {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #f6f4f0;
    border-radius: 4px;
    padding: 8px 10px;
    border: 0.5px solid #e0ddd6;
}
.gh-pillar-icon {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: #e4f5e8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #1e6b30;
}
.gh-pillar strong {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: #1a2a19;
}
.gh-pillar span {
    font-size: 10px;
    color: #8a877f;
}

/* ── New legal footer ── */
.gh-legal-footer {
    border-top: 0.5px solid #e0ddd6;
    background: #f6f4f0;
    padding: 16px 36px;
}
.gh-legal-badges {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.gh-legal-badge {
    font-size: 9px;
    color: #6b6560;
    background: #edeae4;
    border: 0.5px solid #d8d4cc;
    border-radius: 4px;
    padding: 3px 9px;
    white-space: nowrap;
    font-weight: 500;
    letter-spacing: .03em;
}
.gh-legal-badge--green {
    color: #1e6b30;
    background: #e4f5e8;
    border-color: #a8d8b4;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.gh-legal-text {
    font-size: 10px;
    color: #7a7670;
    line-height: 1.75;
    margin: 0;
}
.gh-legal-div {
    display: inline-block;
    width: 1px;
    height: 10px;
    background: #c8c4bc;
    margin: 0 5px;
    vertical-align: middle;
}
.gh-legal-text strong { font-weight: 500; color: #5a5650; }


/* ── Search Ingredients card — compact override ── */
.gh-card.gh-card--ing {
    padding: 16px 20px;
    gap: 8px;
    border-radius: 10px;
    border: 0.5px solid #e0ddd6;
}
.gh-card.gh-card--ing .gh-card-icon {
    width: 30px;
    height: 30px;
    border-radius: 7px;
}
.gh-card.gh-card--ing .gh-card-title {
    font-size: 13px;
    font-weight: 600;
}
.gh-card.gh-card--ing .gh-card-desc {
    font-size: 12px;
    color: #8a877f;
}
.gh-card.gh-card--ing .gh-search-input {
    height: 36px;
    font-size: 12px;
    border-radius: 6px;
    border-width: 0.5px;
}
.gh-two-col {
    margin-top: 12px !important;
}
