        .nav-links a:hover,
        .nav-links a.active {
            color: var(--amber-gold);
        }

        .nav-links a:hover::after,
        .nav-links a.active::after {
            width: 100%;
        }

        

        
    

    
    

    

    

    

    

    

    
    .nav-cta-btn {
        background: var(--amber-gold) !important;
        color: var(--deep-green) !important;
        padding: 0.5rem 1.2rem;
        border-radius: 6px;
        font-weight: 700;
        font-size: 0.85rem;
        transition: all 0.3s ease;
    }

    

    

        
        .hero {
            margin-top: 72px;
            background: linear-gradient(135deg, var(--deep-green) 0%, #1a2912 40%, #3d5a2a 100%);
            position: relative;
            overflow: hidden;
            padding: 3rem 2rem 4rem;
            min-height: 520px;
            display: flex;
            align-items: center;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -20%;
            width: 70%;
            height: 200%;
            background: radial-gradient(ellipse, rgba(200,169,110,0.08) 0%, transparent 70%);
            pointer-events: none;
        }

        .hero::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 120px;
            background: linear-gradient(to top, var(--cream), transparent);
            pointer-events: none;
        }

        .hero-inner {
            max-width: 1200px;
            margin: 0 auto;
            width: 100%;
            display: grid;
            grid-template-columns: 1fr 380px;
            gap: 3rem;
            align-items: center;
            position: relative;
            z-index: 2;
        }

        .breadcrumb {
            font-size: 0.85rem;
            color: rgba(255,255,255,0.55);
            margin-bottom: 1.5rem;
            font-weight: 400;
        }

        .breadcrumb a {
            color: rgba(255,255,255,0.55);
        }

        .breadcrumb 

        .breadcrumb span {
            margin: 0 0.5rem;
        }

        .hero-badge {
            display: inline-block;
            background: rgba(200,169,110,0.15);
            border: 1px solid rgba(200,169,110,0.3);
            color: var(--amber-gold);
            font-size: 0.75rem;
            font-weight: 600;
            letter-spacing: 0.15em;
            text-transform: uppercase;
            padding: 0.4rem 1rem;
            border-radius: 50px;
            margin-bottom: 1.2rem;
        }

        .hero h1 {
            font-size: 3.2rem;
            color: var(--white);
            font-weight: 700;
            margin-bottom: 0.5rem;
            letter-spacing: -0.01em;
        }

        .hero .scientific-name {
            font-family: 'Playfair Display', serif;
            font-style: italic;
            font-size: 1.3rem;
            color: var(--amber-gold);
            margin-bottom: 0.5rem;
            font-weight: 400;
        }

        .hero .common-names {
            font-size: 0.95rem;
            color: rgba(255,255,255,0.82);
            margin-bottom: 2rem;
        }

        .hero-image {
            border-radius: var(--radius-lg);
            overflow: hidden;
            box-shadow: var(--shadow-lg);
            border: 3px solid rgba(200,169,110,0.2);
        }

        .hero-image img {
            width: 100%;
            height: auto;
            aspect-ratio: 1 / 1;
            object-fit: cover;
            display: block;
        }

        /* Bitter-melon page additions (scoped via dedicated classes; do not affect siblings) */
        .key-facts-box {
            background: var(--white);
            border: 2px solid var(--border-light);
            border-radius: var(--radius-md);
            padding: 2rem 2.5rem;
            margin: 0 auto 2.5rem;
            max-width: 800px;
        }
        .key-facts-box h2 {
            font-family: 'Playfair Display', serif;
            font-size: 1.4rem;
            color: var(--deep-green);
            margin-bottom: 1.2rem;
            text-align: center;
        }
        .key-facts-list {
            list-style: none;
            padding: 0;
            margin: 0;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0.8rem 2rem;
            font-size: 0.92rem;
            color: var(--text-medium);
            line-height: 1.7;
        }
        .key-facts-list strong { color: var(--deep-green); }
        @media (max-width: 640px) {
            .key-facts-list { grid-template-columns: 1fr; }
            .key-facts-box { padding: 1.4rem 1.4rem; }
        }
        .pubmed-link { color: #7e632a; }
        .section--deep-green .pubmed-link,
        .mechanism-section .pubmed-link,
        .hero-banner .pubmed-link,
        .key-facts-box .pubmed-link { color: #e6c585; }

        /* .quick-answer-collapsible moved to diabec-base.css for site-wide use. */
        .last-reviewed {
            font-size: 0.85rem;
            color: rgba(255,255,255,0.65);
            margin: -0.25rem 0 1.25rem;
            letter-spacing: 0.01em;
        }

        .stats-bar {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1px;
            background: rgba(255,255,255,0.1);
            border-radius: var(--radius-md);
            overflow: hidden;
            margin-top: 0;
        }

        .stat-item {
            background: rgba(255,255,255,0.05);
            padding: 1.2rem 1rem;
            text-align: center;
            transition: background 0.3s;
        }

        .stat-item:hover {
            background: rgba(255,255,255,0.08);
        }

        .stat-label {
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 0.12em;
            color: var(--amber-gold);
            font-weight: 600;
            margin-bottom: 0.3rem;
        }

        .stat-value {
            font-size: 0.9rem;
            color: var(--white);
            font-weight: 500;
        }

        /* ========== CONTENT SECTIONS ========== */
        .content-wrap {
            max-width: 900px;
            margin: 0 auto;
            padding: 0 2rem;
        }

        .section {
            padding: 4rem 0;
        }

        .section-label {
            display: inline-block;
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 0.18em;
            color: #7e632a;
            font-weight: 700;
            margin-bottom: 0.8rem;
        }
        .section--deep-green .section-label,
        .hero-banner .section-label,
        .formula-section .section-label,
        .mechanism-section .section-label { color: #e6c585; }

        .section h2 {
            font-size: 2.2rem;
            color: var(--deep-green);
            margin-bottom: 1.5rem;
            font-weight: 700;
        }

        .section p {
            color: var(--text-medium);
            font-size: 1.05rem;
            margin-bottom: 1.2rem;
        }

        .divider {
            width: 60px;
            height: 3px;
            background: linear-gradient(90deg, var(--amber-gold), transparent);
            border: none;
            margin: 0 0 2rem;
        }

        /* ========== LEGEND SECTION ========== */
        .legend-section {
            background: var(--white);
            border-radius: var(--radius-lg);
            padding: 3rem;
            margin-top: -2rem;
            position: relative;
            z-index: 3;
            box-shadow: var(--shadow-md);
            border: 1px solid var(--border-light);
        }

        .legend-section .dropcap {
            float: left;
            font-family: 'Playfair Display', serif;
            font-size: 4.5rem;
            line-height: 0.8;
            margin: 0.1rem 0.8rem 0 0;
            color: var(--deep-green);
            font-weight: 700;
        }

        .legend-section p {
            font-size: 1.08rem;
            line-height: 1.85;
            color: var(--text-medium);
        }

        .legend-quote {
            border-left: 3px solid var(--amber-gold);
            padding: 1.5rem 2rem;
            margin: 2rem 0;
            background: linear-gradient(90deg, rgba(200,169,110,0.06), transparent);
            border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
        }

        .legend-quote p {
            font-family: 'Playfair Display', serif;
            font-style: italic;
            font-size: 1.15rem;
            color: var(--deep-green);
            margin: 0;
        }

        .legend-quote cite {
            display: block;
            margin-top: 0.5rem;
            font-family: 'Inter', sans-serif;
            font-style: normal;
            font-size: 0.85rem;
            color: var(--text-light);
        }

        /* ========== WHAT IS SECTION ========== */
        .info-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1.5rem;
            margin-top: 2rem;
        }

        .info-card {
            background: var(--white);
            border-radius: var(--radius-md);
            padding: 1.8rem;
            border: 1px solid var(--border-light);
            transition: transform 0.3s, box-shadow 0.3s;
        }

        .info-card:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-md);
        }

        .info-card h4 {
            font-size: 1rem;
            color: var(--deep-green);
            margin-bottom: 0.6rem;
            font-weight: 600;
        }

        .info-card p {
            font-size: 0.92rem;
            color: var(--text-medium);
            margin: 0;
            line-height: 1.6;
        }

        .compound-tag {
            display: inline-block;
            background: rgba(90,110,74,0.1);
            color: var(--accent-green);
            font-size: 0.8rem;
            font-weight: 600;
            padding: 0.3rem 0.8rem;
            border-radius: 50px;
            margin: 0.2rem 0.3rem 0.2rem 0;
            position: relative;
            cursor: help;
        }
        .compound-tag .compound-tooltip {
            visibility: hidden;
            opacity: 0;
            position: absolute;
            bottom: calc(100% + 12px);
            left: 50%;
            transform: translateX(-50%);
            background: #2c3e1f;
            color: #fff;
            font-size: 13px;
            font-weight: 400;
            padding: 12px 16px;
            border-radius: 8px;
            max-width: 280px;
            min-width: 220px;
            width: max-content;
            box-shadow: 0 4px 20px rgba(0,0,0,0.25);
            line-height: 1.5;
            text-align: left;
            z-index: 100;
            transition: opacity 0.25s ease, visibility 0.25s ease;
            pointer-events: none;
        }
        .compound-tag .compound-tooltip::after {
            content: '';
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            border: 6px solid transparent;
            border-top-color: #2c3e1f;
        }
        .compound-tag:hover .compound-tooltip,
        .compound-tag:focus .compound-tooltip,
        .compound-tag:active .compound-tooltip {
            visibility: visible;
            opacity: 1;
        }
        @media (max-width: 600px) {
            .compound-tag .compound-tooltip {
                left: 0;
                transform: none;
                max-width: 260px;
            }
            .compound-tag .compound-tooltip::after {
                left: 20px;
                transform: none;
            }
        }

        /* ========== MECHANISM SECTION ========== */
        .mechanism-section {
            background: var(--deep-green);
            margin: 0 -50vw;
            padding: 5rem 50vw;
            color: var(--white);
            position: relative;
        }

        .mechanism-section .section-label {
            color: #e6c585;
        }

        .mechanism-section h2 {
            color: var(--white);
        }

        .mechanism-section p {
            color: rgba(255,255,255,0.75);
        }

        .mechanism-steps {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 2rem;
            margin-top: 2.5rem;
        }

        .mechanism-step {
            background: rgba(255,255,255,0.06);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: var(--radius-md);
            padding: 2rem 1.5rem;
            text-align: center;
            position: relative;
            transition: background 0.3s;
        }

        .mechanism-step:hover {
            background: rgba(255,255,255,0.1);
        }

        .mechanism-step .step-number {
            width: 48px;
            height: 48px;
            background: linear-gradient(135deg, var(--amber-gold), #b8944e);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1.2rem;
            font-family: 'Playfair Display', serif;
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--deep-green);
        }

        .mechanism-step h4 {
            font-size: 1.05rem;
            color: var(--white);
            margin-bottom: 0.8rem;
            font-weight: 600;
        }

        .mechanism-step p {
            font-size: 0.9rem;
            color: rgba(255,255,255,0.65);
            margin: 0;
            line-height: 1.6;
        }

        .mechanism-connector {
            display: none;
        }

        /* ========== BENEFITS SECTION ========== */
        .benefits-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1.5rem;
            margin-top: 2rem;
        }

        .benefit-card {
            background: var(--white);
            border-radius: var(--radius-md);
            padding: 2rem;
            border: 1px solid var(--border-light);
            position: relative;
            overflow: hidden;
            transition: transform 0.3s, box-shadow 0.3s;
        }

        .benefit-card:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-md);
        }

        .benefit-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 4px;
            height: 100%;
            background: linear-gradient(to bottom, var(--amber-gold), var(--accent-green));
        }

        .benefit-card .benefit-icon {
            width: 44px;
            height: 44px;
            background: rgba(90,110,74,0.08);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
            font-weight: 700;
            color: #c8a96e;
            font-family: 'Playfair Display', serif;
            margin-bottom: 1rem;
        }

        .benefit-card h4 {
            font-size: 1.05rem;
            color: var(--deep-green);
            margin-bottom: 0.6rem;
            font-weight: 600;
        }

        .benefit-card p {
            font-size: 0.9rem;
            color: var(--text-medium);
            margin-bottom: 0.8rem;
            line-height: 1.6;
        }

        .benefit-card .evidence-link {
            font-size: 0.8rem;
            font-weight: 600;
            color: var(--accent-green);
            display: inline-flex;
            align-items: center;
            gap: 0.3rem;
        }

        .benefit-card .evidence-link:hover {
            color: var(--amber-gold);
        }

        /* ========== RESEARCH SECTION ========== */
        .research-section {
            background: var(--white);
            border-radius: var(--radius-lg);
            padding: 3rem;
            margin-top: 1rem;
            border: 1px solid var(--border-light);
            box-shadow: var(--shadow-sm);
        }

        .study-cards {
            display: grid;
            gap: 1.5rem;
            margin-top: 2rem;
        }

        .study-card {
            background: var(--cream);
            border-radius: var(--radius-md);
            padding: 2rem;
            border: 1px solid var(--border-light);
            display: grid;
            grid-template-columns: auto 1fr auto;
            gap: 1.5rem;
            align-items: start;
            transition: box-shadow 0.3s;
        }

        .study-card:hover {
            box-shadow: var(--shadow-sm);
        }

        .study-type-badge {
            writing-mode: vertical-rl;
            text-orientation: mixed;
            transform: rotate(180deg);
            font-size: 0.7rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.15em;
            color: var(--white);
            background: var(--accent-green);
            padding: 0.8rem 0.5rem;
            border-radius: 6px;
            text-align: center;
            white-space: nowrap;
        }

        .study-type-badge.meta {
            background: var(--deep-green);
        }

        .study-type-badge.rct {
            background: var(--accent-green);
        }

        .study-type-badge.review {
            background: var(--amber-gold);
            color: var(--deep-green);
        }

        .study-content h3 {
            font-family: 'Inter', sans-serif;
            font-size: 1rem;
            font-weight: 600;
            color: var(--deep-green);
            margin-bottom: 0.5rem;
        }

        .study-content p {
            font-size: 0.9rem;
            color: var(--text-medium);
            margin-bottom: 0.5rem;
            line-height: 1.6;
        }

        .study-meta {
            display: flex;
            gap: 1.2rem;
            flex-wrap: wrap;
            margin-top: 0.5rem;
        }

        .study-meta span {
            font-size: 0.78rem;
            color: var(--text-light);
            font-weight: 500;
        }

        .study-meta strong {
            color: var(--text-medium);
        }

        .study-link {
            align-self: center;
        }

        .study-link a {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            font-size: 0.82rem;
            font-weight: 600;
            color: var(--accent-green);
            padding: 0.5rem 1rem;
            border: 1px solid var(--accent-green);
            border-radius: 50px;
            white-space: nowrap;
            transition: all 0.3s;
        }

        .study-link a:hover {
            background: var(--accent-green);
            color: var(--white);
        }

        /* ========== SIDE EFFECTS SECTION ========== */
        .precautions-box {
            background: linear-gradient(135deg, #fefbf4, #fff9ee);
            border: 1px solid #e8dcc4;
            border-radius: var(--radius-md);
            padding: 2.5rem;
            margin-top: 1.5rem;
        }

        .precautions-box .warning-header {
            display: flex;
            align-items: center;
            gap: 0.8rem;
            margin-bottom: 1.5rem;
        }

        .precautions-box .warning-icon {
            width: 40px;
            height: 40px;
            background: rgba(200,169,110,0.2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            flex-shrink: 0;
        }

        .precautions-box .warning-header h4 {
            font-family: 'Inter', sans-serif;
            font-size: 0.95rem;
            font-weight: 600;
            color: var(--deep-green);
        }

        .precautions-list {
            list-style: none;
            padding: 0;
        }

        .precautions-list li {
            padding: 0.7rem 0 0.7rem 2rem;
            font-size: 0.95rem;
            color: var(--text-medium);
            position: relative;
            border-bottom: 1px solid rgba(200,169,110,0.15);
        }

        .precautions-list li:last-child {
            border-bottom: none;
        }

        .precautions-list li::before {
            content: '';
            position: absolute;
            left: 0;
            top: 1.1rem;
            width: 8px;
            height: 8px;
            background: var(--amber-gold);
            border-radius: 50%;
        }

        /* ========== FAQ SECTION ========== */
        .faq-section {
            background: var(--white);
            border-radius: var(--radius-lg);
            padding: 3rem;
            border: 1px solid var(--border-light);
        }

        .faq-item {
            border-bottom: 1px solid var(--border-light);
            overflow: hidden;
        }

        .faq-item:last-child {
            border-bottom: none;
        }

        .faq-question {
            width: 100%;
            background: none;
            border: none;
            padding: 1.3rem 2.5rem 1.3rem 0;
            font-family: 'Inter', sans-serif;
            font-size: 1.02rem;
            font-weight: 600;
            color: var(--deep-green);
            text-align: left;
            cursor: pointer;
            position: relative;
            display: block;
            transition: color 0.3s;
        }

        .faq-question:hover {
            color: var(--accent-green);
        }

        .faq-question::after {
            content: '+';
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            font-size: 1.5rem;
            font-weight: 300;
            color: var(--amber-gold);
            transition: transform 0.3s;
        }

        .faq-item.open .faq-question::after {
            content: '-';
        }

        .faq-answer {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.4s ease, padding 0.4s ease;
        }

        .faq-item.open .faq-answer {
            max-height: 300px;
            padding-bottom: 1.3rem;
        }

        .faq-answer p {
            font-size: 0.95rem;
            color: var(--text-medium);
            line-height: 1.7;
        }

        /* ========== DIABEC FORMULA SECTION ========== */
        .formula-section {
            background: linear-gradient(135deg, var(--deep-green), #3d5a2a);
            border-radius: var(--radius-lg);
            padding: 3rem;
            color: var(--white);
            position: relative;
            overflow: hidden;
        }

        .formula-section::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -30%;
            width: 60%;
            height: 200%;
            background: radial-gradient(ellipse, rgba(200,169,110,0.1), transparent 70%);
            pointer-events: none;
        }

        .formula-section .section-label {
            color: #e6c585;
        }

        .formula-section h2 {
            color: var(--white);
            font-size: 1.8rem;
        }

        .formula-section p {
            color: rgba(255,255,255,0.75);
        }

        .formula-highlights {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1.5rem;
            margin-top: 2rem;
        }

        .formula-highlight {
            background: rgba(255,255,255,0.08);
            border: 1px solid rgba(255,255,255,0.12);
            border-radius: var(--radius-md);
            padding: 2rem 2.5rem;
            text-align: center;
        }

        .formula-highlight .fh-icon {
            font-size: 1.1rem;
            margin-bottom: 0.8rem;
        }

        .formula-highlight h4 {
            font-family: 'Inter', sans-serif;
            font-size: 0.9rem;
            font-weight: 600;
            color: var(--amber-gold);
            margin-bottom: 0.4rem;
        }

        .formula-highlight p {
            font-size: 0.85rem;
            color: rgba(255,255,255,0.82);
            margin: 0;
        }

        .formula-cta {
            text-align: center;
            margin-top: 2.5rem;
        }

        .btn-gold {
            display: inline-block;
            background: linear-gradient(135deg, var(--amber-gold), #b8944e);
            color: var(--deep-green);
            font-weight: 700;
            font-size: 0.95rem;
            padding: 0.9rem 2.5rem;
            border-radius: 50px;
            letter-spacing: 0.03em;
            transition: transform 0.3s, box-shadow 0.3s;
            box-shadow: 0 4px 15px rgba(200,169,110,0.3);
        }

        .btn-gold:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 25px rgba(200,169,110,0.45);
            color: var(--deep-green);
        }

        /* ========== RELATED INGREDIENTS ========== */
        .related-section {
            padding: 4rem 0;
        }

        .related-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 1.2rem;
            margin-top: 2rem;
        }

        .related-card {
            background: var(--white);
            border-radius: var(--radius-md);
            padding: 1.8rem 1.2rem;
            text-align: center;
            border: 1px solid var(--border-light);
            transition: transform 0.3s, box-shadow 0.3s;
            text-decoration: none;
            display: block;
        }

        .related-card:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-md);
        }

        .related-card .related-img {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            object-fit: cover;
            margin: 0 auto 12px;
            font-size: 1.5rem;
        }

        .related-card h4 {
            font-family: 'Inter', sans-serif;
            font-size: 0.9rem;
            font-weight: 600;
            color: var(--deep-green);
            margin-bottom: 0.3rem;
        }

        .related-card p {
            font-size: 0.78rem;
            color: var(--text-light);
            margin: 0;
        }

        
        .footer {
            background: var(--deep-green);
            padding: 3rem 2rem;
            text-align: center;
        }

        .footer-disclaimer {
            max-width: 900px;
            margin: 0 auto 2rem;
            padding: 2rem 2.5rem;
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: var(--radius-sm);
        }

        .footer-disclaimer p {
            font-size: 0.8rem;
            color: rgba(255,255,255,0.80);
            line-height: 1.7;
        }

        .footer-copyright {
            font-size: 0.82rem;
            color: rgba(255,255,255,0.65);
        }

        /* ========== RESPONSIVE ========== */
        @media (max-width: 1024px) {
            .hero-inner {
                grid-template-columns: 1fr;
            }

            .hero-image {
                max-width: 400px;
                margin: 0 auto;
            }

            .mechanism-steps {
                grid-template-columns: 1fr;
            }

            .formula-highlights {
                grid-template-columns: 1fr 1fr;
            }

            .related-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        @media (max-width: 768px) {
            .footer > div[style*="grid-template-columns"] {
                grid-template-columns: 1fr !important;
                text-align: center !important;
                gap: 1.5rem !important;
            }

            .navbar {
                padding: 0 1rem;
            }

            .nav-links {
                display: none;
                position: absolute;
                top: 72px;
                left: 0;
                right: 0;
                background: var(--deep-green);
                flex-direction: column;
                padding: 1rem 1.5rem 1.5rem;
                gap: 0.5rem;
                box-shadow: 0 8px 20px rgba(0,0,0,0.2);
            }

            .nav-links.open {
                display: flex;
            }

            .nav-toggle {
                display: block;
            }

    .nav-dropdown-menu {
        position: static;
        background: rgba(255,255,255,0.05);
        box-shadow: none;
        border-radius: 0;
        display: none;
        min-width: auto;
    }

    

            .hero {
                padding: 2rem 1.2rem 3rem;
            }

            .hero h1 {
                font-size: 2.2rem;
            }

            .hero .scientific-name {
                font-size: 1.1rem;
            }

            .stats-bar {
                grid-template-columns: repeat(2, 1fr);
            }

            .hero-image img {
                height: 280px;
            }

            .section h2 {
                font-size: 1.7rem;
            }

            .legend-section {
                padding: 2rem 1.5rem;
            }

            .legend-section .dropcap {
                font-size: 3.5rem;
            }

            .info-grid {
                grid-template-columns: 1fr;
            }

            .benefits-grid {
                grid-template-columns: 1fr;
            }

            .study-card {
                grid-template-columns: 1fr;
            }

            .study-type-badge {
                writing-mode: horizontal-tb;
                transform: none;
                display: inline-block;
                width: auto;
            }

            .study-link {
                align-self: start;
            }

            .research-section,
            .faq-section {
                padding: 2rem 1.5rem;
            }

            .formula-section {
                padding: 2rem 1.5rem;
            }

            .formula-highlights {
                grid-template-columns: 1fr;
            }

            .related-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .content-wrap {
                padding: 0 1.2rem;
            }

            .mechanism-section {
                margin: 0 -1.2rem;
                padding: 3rem 1.2rem;
            }
        }

        @media (max-width: 480px) {
            .hero h1 {
                font-size: 1.8rem;
            }

            .stats-bar {
                grid-template-columns: repeat(2, 1fr);
            }

            .related-grid {
                grid-template-columns: 1fr 1fr;
            }
        }

/* ========== QUICK ANSWER (AEO / GEO — Pass 10) ========== */
.quick-answer {
    max-width: 780px;
    margin: 0 auto 2.5rem;
    padding: 1.4rem 1.6rem 1.4rem 1.8rem;
    background: linear-gradient(135deg, rgba(200,169,110,0.10), rgba(90,110,74,0.07));
    border-left: 4px solid var(--amber-gold);
    border-radius: 0 12px 12px 0;
}
.quick-answer .qa-label {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--amber-gold);
    margin-bottom: 0.5rem;
}
.quick-answer p {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-dark);
    margin: 0;
}
.quick-answer em {
    font-style: italic;
    color: var(--text-medium);
}
@media (max-width: 600px) {
    .quick-answer {
        margin: 0 1rem 2rem;
        padding: 1.1rem 1.2rem 1.1rem 1.4rem;
    }
    .quick-answer p { font-size: 0.95rem; }
}

/* ====================================================================
   Mobile overflow + readability fixes (2026-05-27)
   Additive only — fixes shared classes site-wide without changing
   desktop behaviour. Pairs with diabec-mobile.css safety-net rules.
   ==================================================================== */

/* Inline-style refactors (bitter-melon page) */
.fh-icon {
    font-size: 1.1rem;
    color: #c8a96e;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}
.study-cite {
    font-size: 0.75rem;
    margin-top: 0.8rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.78);
}
.study-cite strong { color: rgba(255,255,255,0.82); }

.research-note {
    background: rgba(200,148,62,0.08);
    border: 1px solid rgba(200,148,62,0.35);
    border-radius: 10px;
    padding: 14px 18px;
    margin: 0 0 22px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.78);
    line-height: 1.55;
}
.research-note strong:first-child { color: #c8a96e; }

.section .research-disclaimer {
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.legend-quote--science {
    border-left-color: var(--amber-gold);
    background: rgba(200,169,110,0.06);
    margin: 0 0 2.5rem;
}
.legend-quote--science p { color: var(--white); }
.legend-quote--science cite { color: rgba(255,255,255,0.80); }
.legend-quote--science cite strong { color: rgba(255,255,255,0.85); }

.warning-icon {
    font-size: 1.2rem;
    color: #c8a96e;
    font-weight: 700;
}

/* Supplement Facts panel (used on how-it-works page).
   Replaces ~30 inline styles previously on the table + cells. */
.supplement-facts-panel {
    margin: 3.5rem auto 0;
    max-width: 720px;
    background: var(--deep-green);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.supplement-facts-panel h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.6rem;
    color: var(--cream);
    text-align: center;
    margin-bottom: 0.5rem;
}
.supplement-facts-panel .sf-meta-lg {
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0.3rem;
}
.supplement-facts-panel .sf-meta-sm {
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 1.5rem;
}
.supplement-facts-panel .sf-table-wrap {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.supplement-facts-panel table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Inter', sans-serif;
}
.supplement-facts-panel thead tr {
    border-bottom: 2px solid rgba(200,169,110,0.3);
}
.supplement-facts-panel th {
    text-align: left;
    padding: 1rem 1.5rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--amber-gold);
    font-weight: 700;
}
.supplement-facts-panel th.sf-num,
.supplement-facts-panel td.sf-num {
    text-align: right;
    padding-right: 1rem;
}
.supplement-facts-panel th.sf-amt,
.supplement-facts-panel td.sf-amt {
    text-align: right;
}
.supplement-facts-panel tbody tr {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.supplement-facts-panel tbody tr:last-child {
    border-bottom: 0;
}
.supplement-facts-panel td {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
}
.supplement-facts-panel td.sf-ratio {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.72);
}
.supplement-facts-panel td.sf-amt {
    color: var(--cream);
    font-weight: 600;
}
.supplement-facts-panel td.sf-dv {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.45);
    padding: 0.8rem 1rem;
}
.supplement-facts-panel .sf-note {
    text-align: center;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.8);
    margin-top: 0.4rem;
}
.supplement-facts-panel .sf-note--first { margin-top: 0.8rem; }
.supplement-facts-panel .sf-note strong { color: rgba(255,255,255,0.72); }

/* compound-tooltip — popover that overflowed viewport at ≤500px.
   Constrain width and switch to static block on small screens so the
   definition stays visible (better for AEO/mobile reading anyway). */
.compound-tag .compound-tooltip {
    max-width: min(280px, calc(100vw - 2rem));
}
@media (max-width: 480px) {
    .compound-tag { display: block; width: 100%; }
    .compound-tag .compound-tooltip {
        visibility: visible;
        opacity: 1;
        position: static;
        transform: none;
        display: block;
        max-width: 100%;
        width: auto;
        min-width: 0;
        margin: 0.4rem 0 0.6rem;
        box-shadow: none;
        font-size: 0.85rem;
        pointer-events: auto;
    }
    .compound-tag .compound-tooltip::after { display: none; }
}

/* Last-reviewed line — bump contrast on mobile so it remains WCAG-AA. */
@media (max-width: 640px) {
    .last-reviewed {
        font-size: 0.8rem;
        color: rgba(255,255,255,0.78);
    }
}

/* Quick Answer collapsible mobile rules moved to diabec-base.css. */
