/* Ingredient pages */

.ing-breadcrumb {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 24px;
}
.ing-breadcrumb a { color: var(--brand); text-decoration: none; }
.ing-breadcrumb a:hover { text-decoration: underline; }

.ing-detail { max-width: 720px; }

.ing-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.ing-header h1 { margin: 0; font-size: 2rem; }

.ing-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ing-category {
    color: var(--muted);
    font-size: 0.9rem;
    font-style: italic;
}

.ing-section { margin-bottom: 28px; }
.ing-section h2 { font-size: 1.1rem; margin: 0 0 10px; }

.ing-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0 0 8px;
}

.ing-source { font-size: 0.8rem; color: var(--muted); margin: 0; }

.ing-aliases {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.ing-alias {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 0.82rem;
    color: var(--muted);
}

.ing-reg { list-style: none; padding: 0; margin: 0; }
.ing-reg li {
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.92rem;
}
.ing-reg li:last-child { border-bottom: none; }
.ing-reg a { color: var(--brand); text-decoration: none; font-size: 0.82rem; }

.ing-concern {
    margin-top: 12px;
    padding: 12px 16px;
    background: #fff5f5;
    border-left: 3px solid #f97316;
    border-radius: 4px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.ing-cta {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 28px;
    text-align: center;
    margin: 36px 0;
}
.ing-cta h2 { margin: 0 0 8px; font-size: 1.2rem; }
.ing-cta p { margin: 0 0 16px; color: var(--muted); }

.ing-download {
    display: inline-block;
    background: var(--brand);
    color: #fff;
    padding: 12px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: opacity 0.2s;
}
.ing-download:hover { opacity: 0.85; }

.ing-privacy {
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 10px;
}

.ing-footer {
    text-align: center;
    padding: 28px 0 0;
    border-top: 1px solid var(--line);
    margin-top: 36px;
    font-size: 0.82rem;
    color: var(--muted);
}
.ing-footer a { color: var(--brand); text-decoration: none; }

/* Index page */
.ing-index-hero {
    text-align: center;
    margin-bottom: 36px;
}
.ing-index-hero h1 { font-size: 2.2rem; margin: 0 0 8px; }
.ing-index-hero p { color: var(--muted); font-size: 1.05rem; margin: 0 0 16px; }

.ing-stats {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.ing-stat {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
}
.ing-stat.ing-safe { background: #22c55e; }
.ing-stat.ing-caution { background: #eab308; }
.ing-stat.ing-avoid { background: #f97316; }

.ing-index-section { margin-bottom: 32px; }
.ing-index-section h2 {
    font-size: 1.2rem;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}

.ing-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ing-link {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    text-decoration: none;
    border: 1px solid var(--line);
    transition: background 0.15s;
}
.ing-link:hover { background: var(--bg); }
.ing-link.ing-safe { color: #15803d; border-color: #bbf7d0; }
.ing-link.ing-safe:hover { background: #f0fdf4; }
.ing-link.ing-caution { color: #a16207; border-color: #fef08a; }
.ing-link.ing-caution:hover { background: #fefce8; }
.ing-link.ing-avoid { color: #c2410c; border-color: #fed7aa; }
.ing-link.ing-avoid:hover { background: #fff7ed; }
