/* ═══════════════════════════════════════════════════════════════════
 * EEINA Magazine Blog Shared Styles · v1.0 · 2026-05-28
 * Extracted from cholesterol/BP/insulin articles for shared reuse
 * ═══════════════════════════════════════════════════════════════════ */

/* Typography with chapter counter */
.ar-content { counter-reset: chap; max-width: 760px; }
.ar-content h2 { counter-increment: chap; font-size: clamp(26px, 3.2vw, 36px) !important; font-weight: 700 !important; line-height: 1.15 !important; color: var(--text) !important; letter-spacing: -0.025em; margin-block: clamp(56px, 7vw, 80px) 18px !important; padding-block-start: clamp(36px, 4vw, 52px); position: relative; border-block-start: 1px solid var(--border); }
.ar-content h2::before { content: "٠" counter(chap, arabic-indic); position: absolute; top: clamp(12px, 1.5vw, 18px); inset-inline-start: 0; font-size: clamp(28px, 3.5vw, 40px); font-weight: 700; color: var(--olive); opacity: 0.25; line-height: 1; font-feature-settings: "tnum"; letter-spacing: -0.04em; }
.ar-content h2:first-of-type { border-block-start: none; padding-block-start: clamp(28px, 3vw, 40px); }
.ar-content h2 + p, .ar-content h2 + .vd-fig + p { font-size: 17px !important; line-height: 1.85 !important; color: var(--text-soft); margin-block-end: 24px; }
.ar-content > p { font-size: 16px !important; line-height: 1.9 !important; }
.ar-content h3 { font-size: clamp(17px, 1.9vw, 20px) !important; font-weight: 600 !important; color: var(--olive-darker) !important; margin-block: 32px 12px !important; }
.ar-content .ar-cta-box h3, .ar-cta-box h3 { color: var(--white) !important; }

/* CTA cards */
.cta-cards { display: grid; gap: 16px; margin-block: 28px; }
@media (min-width: 720px) { .cta-cards { grid-template-columns: repeat(3, 1fr); } }
.cta-card { background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 24px 22px; text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 12px; transition: transform 200ms, border-color 200ms, box-shadow 200ms; }
.cta-card:hover { transform: translateY(-3px); border-color: var(--olive); box-shadow: 0 12px 24px rgba(20,40,15,0.08); }
.cta-card-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--olive-tint); color: var(--olive-dark); display: flex; align-items: center; justify-content: center; }
.cta-card-icon svg { width: 26px; height: 26px; }
.cta-card h4 { font-size: 17px; font-weight: 600; color: var(--text); margin: 0; }
.cta-card p { font-size: 13.5px; line-height: 1.75; color: var(--text-soft); margin: 0; }
.cta-card-link { font-size: 13px; font-weight: 600; color: var(--olive-dark); margin-block-start: auto; display: inline-flex; align-items: center; gap: 6px; }
.cta-card.featured { background: #234D10; color: #FFFFFF; border-color: #234D10; }
.cta-card.featured h4 { color: #FFFFFF; }
.cta-card.featured .cta-card-link { color: #FFFFFF; }
.cta-card.featured p { color: rgba(255,255,255,0.92); }
.cta-card.featured .cta-card-icon { background: rgba(255,255,255,0.16); color: #FFFFFF; }
.cta-card.featured:hover { background: #1A3A0C; border-color: #1A3A0C; }

/* Related grid */
.ar-related-grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .ar-related-grid { grid-template-columns: repeat(3, 1fr); } }
.ar-related-card { background: var(--white); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--text); display: flex; flex-direction: column; transition: transform 200ms, border-color 200ms; }
.ar-related-card:hover { transform: translateY(-3px); border-color: var(--olive); }
.ar-related-thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--olive-tint); }
.ar-related-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ar-related-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ar-related-card .cat { font-size: 11px; font-weight: 600; color: var(--olive-dark); letter-spacing: 0.06em; text-transform: uppercase; }
.ar-related-card h3 { font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.5; margin: 0; }
.ar-related-card .read-time { font-size: 12px; color: var(--text-soft); margin-block-start: auto; padding-block-start: 8px; }

/* Weekly CTA button */
.weekly-cta { text-align: center; margin-block-start: 28px; }
.weekly-cta-btn { display: inline-flex; align-items: center; gap: 12px; background: #1A3A0C !important; color: #FFFFFF !important; padding: 16px 36px; border-radius: 999px; font: inherit; font-size: 15.5px; font-weight: 700; text-decoration: none !important; transition: transform 200ms, background 200ms, box-shadow 200ms; box-shadow: 0 8px 20px rgba(26,58,12,0.45), 0 2px 4px rgba(0,0,0,0.1); border: 2px solid #0F2807; letter-spacing: 0.01em; }
.weekly-cta-btn:hover { transform: translateY(-2px); background: #0F2807 !important; }
.weekly-cta-btn svg { width: 18px; height: 18px; color: #FFFFFF; }

/* EEINA Footer */
.eeina-footer { background: var(--cream, #FBF8F3); color: var(--text, #1C1C1E); padding: clamp(56px, 7vw, 96px) 0 28px; margin-block-start: 0; border-block-start: 1px solid var(--border, #E8E8E6); font-size: 13.5px; line-height: 1.7; font-family: 'IBM Plex Sans Arabic', -apple-system, sans-serif; }
.ftr-inner { max-width: 1180px; margin: 0 auto; padding-inline: var(--gutter); }
.ftr-top { display: grid; grid-template-columns: 1fr; gap: 28px; margin-block-end: clamp(40px, 5vw, 64px); padding-block-end: clamp(32px, 4vw, 48px); border-block-end: 1px solid var(--border, #E8E8E6); }
@media (min-width: 880px) { .ftr-top { grid-template-columns: 1.4fr 1fr; align-items: end; gap: 48px; } }
.ftr-top-brand img { height: 32px; margin-block-end: 18px; opacity: 0.95; width: auto; }
.ftr-top-brand .tagline { font-size: clamp(20px, 2.4vw, 26px); font-weight: 500; letter-spacing: -0.015em; color: var(--olive-darker, #234D10); line-height: 1.3; margin-block-end: 8px; max-width: 480px; }
.ftr-top-brand p { font-size: 14px; color: var(--text-soft, #6E6E73); line-height: 1.75; max-width: 440px; }
.ftr-newsletter { max-width: 380px; }
.ftr-newsletter label { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; color: var(--olive-dark, #3D7A1F); text-transform: uppercase; margin-block-end: 10px; }
.ftr-newsletter-form { display: flex; gap: 8px; }
.ftr-newsletter-form input { flex: 1; background: #FFFFFF; border: 1px solid var(--border, #E8E8E6); border-radius: 8px; padding: 11px 14px; font: inherit; font-size: 13.5px; color: var(--text, #1C1C1E); outline: none; transition: all 180ms; }
.ftr-newsletter-form input::placeholder { color: #98989D; }
.ftr-newsletter-form input:focus { border-color: var(--olive, #6AB240); box-shadow: 0 0 0 3px rgba(106,178,64,0.12); }
.ftr-newsletter-form button { padding: 11px 18px; background: #234D10; color: #FFFFFF; border: 0; border-radius: 8px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background 180ms, transform 180ms; white-space: nowrap; }
.ftr-newsletter-form button:hover { background: #1A3A0C; transform: translateY(-1px); }
.ftr-newsletter .note { font-size: 11.5px; color: #98989D; margin-block-start: 8px; }
.ftr-newsletter .ok { font-size: 12px; color: var(--olive-dark, #3D7A1F); margin-block-start: 8px; display: none; align-items: center; gap: 6px; }
.ftr-newsletter .ok.show { display: flex; }
.ftr-newsletter .ok svg { width: 12px; height: 12px; }
.ftr-cols { display: grid; grid-template-columns: 1fr; gap: 36px 32px; margin-block-end: clamp(40px, 5vw, 56px); }
@media (min-width: 560px) { .ftr-cols { grid-template-columns: 1fr 1fr; } }
@media (min-width: 880px) { .ftr-cols { grid-template-columns: repeat(3, 1fr); } }
.ftr-col h4 { font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em; color: var(--olive-darker, #234D10); text-transform: uppercase; margin-block-end: 18px; }
.ftr-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.ftr-col a { font-size: 13.5px; color: var(--text-soft, #6E6E73); transition: color 180ms; text-decoration: none; }
.ftr-col a:hover { color: var(--olive-darker, #234D10); }
.ftr-trust { display: flex; flex-wrap: wrap; gap: 14px 28px; padding-block: 26px; border-block: 1px solid var(--border, #E8E8E6); margin-block-end: 24px; align-items: center; }
.ftr-trust-item { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-soft, #6E6E73); }
.ftr-trust-item svg { width: 14px; height: 14px; color: var(--olive-dark, #3D7A1F); flex-shrink: 0; }
.ftr-trust-item strong { color: var(--text, #1C1C1E); font-weight: 600; }
.ftr-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 12px; color: #98989D; }
.ftr-copy { font-feature-settings: "tnum"; }
.ftr-social { display: flex; gap: 14px; align-items: center; }
.ftr-social a { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; color: var(--text-soft, #6E6E73); transition: color 180ms, transform 180ms; }
.ftr-social a:hover { color: var(--olive-darker, #234D10); transform: translateY(-1px); }
.ftr-social a svg { width: 18px; height: 18px; }
.ftr-legal { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.ftr-legal a { color: #98989D; transition: color 180ms; text-decoration: none; }
.ftr-legal a:hover { color: var(--olive-darker, #234D10); }

/* Olive Close section override */
.olive-close { background: var(--olive-darker) !important; color: var(--white) !important; padding-block: clamp(56px, 6vw, 80px) !important; text-align: center; }
.olive-close h2 { color: var(--white) !important; max-width: 20ch; margin-inline: auto; line-height: 1.3; }
.olive-close p { color: color-mix(in srgb, var(--white) 88%, transparent) !important; max-width: 56ch; margin-inline: auto; }
.olive-close-disclaimer { color: color-mix(in srgb, var(--white) 72%, transparent) !important; }
.olive-close-btn { display: inline-flex; align-items: center; gap: 12px; background: var(--white) !important; color: var(--olive-darker) !important; padding: 18px 52px; border-radius: 999px; font: inherit; font-size: 16.5px; font-weight: 700; text-decoration: none !important; transition: transform 200ms ease, background 200ms ease, box-shadow 200ms ease; box-shadow: 0 12px 28px color-mix(in srgb, var(--olive-darker) 55%, transparent), 0 2px 6px color-mix(in srgb, var(--olive-darker) 30%, transparent); border: 0; letter-spacing: 0.01em; }
.olive-close-btn:hover { transform: translateY(-2px); background: var(--cream) !important; box-shadow: 0 18px 36px color-mix(in srgb, var(--olive-darker) 65%, transparent), 0 2px 6px color-mix(in srgb, var(--olive-darker) 35%, transparent); }

/* Magazine Hero */
.mag-hero { position: relative; min-height: 88vh; overflow: hidden; margin-block-end: 0; background: #1C1C1E; }
.mag-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.mag-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,28,30,0.15) 0%, rgba(28,28,30,0.35) 50%, rgba(28,28,30,0.85) 100%); }
.mag-hero-content { position: relative; z-index: 2; padding-block: clamp(80px, 12vh, 140px) clamp(56px, 8vh, 80px); padding-inline: var(--gutter); max-width: 1180px; margin: 0 auto; min-height: 88vh; display: flex; flex-direction: column; justify-content: flex-end; color: var(--white); }
.mag-eyebrow { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; padding: 6px 14px; background: rgba(255,255,255,0.14); backdrop-filter: blur(8px); border-radius: 999px; margin-block-end: 24px; align-self: flex-start; color: var(--white); }
.mag-title { font-size: clamp(40px, 7vw, 76px); font-weight: 700; line-height: 1.08; letter-spacing: -0.035em; margin-block-end: 28px; max-width: 16ch; color: var(--white); text-shadow: 0 2px 40px rgba(0,0,0,0.35); text-wrap: balance; }
.mag-lede { font-size: clamp(17px, 2vw, 22px); line-height: 1.7; max-width: 620px; color: rgba(255,255,255,0.88); margin-block-end: 36px; font-weight: 400; letter-spacing: 0.005em; }
.mag-meta { display: flex; gap: 32px; flex-wrap: wrap; padding-block-start: 24px; border-block-start: 1px solid rgba(255,255,255,0.2); font-size: 13px; color: rgba(255,255,255,0.75); }
.mag-meta-item { display: inline-flex; align-items: center; gap: 8px; }
.mag-meta-item svg { width: 16px; height: 16px; color: rgba(255,255,255,0.6); }
.mag-meta strong { color: var(--white); font-weight: 600; }
.mag-scroll-hint { position: absolute; bottom: 32px; inset-inline-start: 50%; transform: translateX(50%); color: rgba(255,255,255,0.6); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; z-index: 3; animation: mag-bounce 2s infinite; }
@keyframes mag-bounce { 0%,100% { transform: translateX(50%) translateY(0); } 50% { transform: translateX(50%) translateY(8px); } }

/* Progress + Chapters */
.mag-progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 100; background: transparent; }
.mag-progress-fill { height: 100%; background: var(--olive-dark); width: 0; transition: width 80ms linear; }
.mag-chapters { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.96); backdrop-filter: blur(12px); border-block-end: 1px solid var(--border); padding: 12px 0; }
.mag-chapters-inner { max-width: 1180px; margin: 0 auto; padding-inline: var(--gutter); display: flex; gap: 18px; overflow-x: auto; align-items: center; scrollbar-width: none; }
.mag-chapters-inner::-webkit-scrollbar { display: none; }
.mag-chapters a { font-size: 13px; color: var(--text-soft); text-decoration: none; padding: 6px 0; white-space: nowrap; font-weight: 500; transition: color 200ms; }
.mag-chapters a:hover { color: var(--olive-dark); }
.mag-chapters-num { font-size: 11px; color: var(--olive-dark); font-weight: 700; margin-inline-end: 4px; font-feature-settings: "tnum"; }

/* Magazine Section */
.mag-section { padding-block: clamp(48px, 6vw, 72px); padding-inline: var(--gutter); }
.mag-section.zone-cream { background: var(--cream); }
.mag-section-inner { max-width: 1180px; margin: 0 auto; }
.mag-section-head { display: grid; gap: 8px; margin-block-end: clamp(32px, 5vw, 48px); }
@media (min-width: 720px) { .mag-section-head { grid-template-columns: 1fr 3fr; gap: 32px; align-items: baseline; } }
.mag-section-num { font-size: clamp(40px, 6vw, 64px); font-weight: 700; color: var(--olive); line-height: 0.9; font-feature-settings: "tnum"; letter-spacing: -0.04em; opacity: 0.4; }
.mag-section-num small { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--olive-dark); margin-block-start: 4px; opacity: 1; }
.mag-section h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; line-height: 1.15; color: var(--text); letter-spacing: -0.025em; margin: 0; }
.mag-section h2.tight { max-width: 22ch; }
.mag-section .lede-body { font-size: 18px; line-height: 1.85; color: var(--text-soft); max-width: 720px; margin-block: 24px; }
.mag-quote { font-size: clamp(20px, 2.5vw, 28px); font-weight: 600; line-height: 1.55; max-width: 820px; margin-block: clamp(28px, 4vw, 44px); color: var(--olive-darker); letter-spacing: -0.005em; padding: 22px 28px; background: var(--olive-tint); border-radius: 14px; position: relative; }
.mag-quote::before { content: "❝"; position: absolute; top: 8px; inset-inline-start: 16px; font-size: 28px; color: var(--olive-dark); opacity: 0.4; line-height: 1; }
.mag-stat-row { display: grid; gap: clamp(20px, 4vw, 48px); margin-block: clamp(32px, 5vw, 56px); }
@media (min-width: 720px) { .mag-stat-row { grid-template-columns: repeat(3, 1fr); } }
.mag-stat { padding-block-start: 18px; border-block-start: 2px solid var(--olive-dark); }
.mag-stat-num { font-size: clamp(36px, 5vw, 56px); font-weight: 700; line-height: 1; color: var(--olive-darker); font-feature-settings: "tnum"; letter-spacing: -0.03em; margin-block-end: 8px; }
.mag-stat-label { font-size: 13.5px; line-height: 1.6; color: var(--text-soft); max-width: 26ch; }
.mag-stat-label strong { color: var(--text); font-weight: 600; }

/* Figure + Callouts */
.vd-fig { margin-block: 28px; border-radius: 16px; overflow: hidden; background: var(--bg-section); }
.vd-fig img { width: 100%; height: auto; display: block; aspect-ratio: 16/9; object-fit: cover; }
.vd-fig figcaption { font-size: 12px; color: var(--text-soft); padding: 10px 14px; background: var(--bg-soft); text-align: center; }
.ar-callout { background: var(--cream); border: 1px solid #E8DDC4; padding: 20px 24px; border-radius: 12px; margin-block: 22px; }
.ar-callout h4 { font-size: 14.5px; font-weight: 600; color: var(--olive-darker); margin-block-end: 8px; display: flex; align-items: center; gap: 8px; }
.ar-callout h4::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--olive-dark); flex-shrink: 0; }
.ar-callout p { font-size: 13.5px; line-height: 1.85; color: var(--text); margin: 0; }
.ar-callout em { font-style: normal; color: var(--olive-darker); font-weight: 600; }
.ar-callout.warn { background: #FDF5E2; border-color: #E8D38A; }
.ar-callout.warn h4 { color: #8A5C18; }
.ar-callout.warn h4::before { background: #E5A538; }

.vis-block { background: var(--white); border: 1px solid var(--border); border-radius: 18px; padding: clamp(24px, 4vw, 36px); margin-block: clamp(24px, 4vw, 36px); }
.vis-block.olive { background: var(--olive-tint); }
.vis-eyebrow { font-size: 11px; font-weight: 600; color: var(--olive-dark); letter-spacing: 0.1em; text-transform: uppercase; margin-block-end: 10px; }
.vis-caption { font-size: 12.5px; color: var(--text-soft); margin-block-start: 14px; text-align: center; line-height: 1.7; }

/* Calculator (HOMA-IR / BP / etc) */
.bp-dashboard { background: var(--white); border: 1px solid var(--border); border-radius: 18px; padding: 28px 24px; margin-block: 24px; }
.bp-input-row { display: grid; gap: 14px; margin-block: 18px; }
@media (min-width: 720px) { .bp-input-row { grid-template-columns: 1fr 1fr; } }
/* Quad layout for 4 inputs — always 2x2 grid */
.bp-input-quad { display: grid; gap: 14px 16px; margin-block: 20px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .bp-input-quad { grid-template-columns: 1fr 1fr; } }
.bp-input-cell { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bp-input-cell label { font-size: 12.5px; font-weight: 600; color: var(--text-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-input-cell input { padding: 14px 14px; border: 1px solid var(--border); border-radius: 10px; font: inherit; font-size: 22px; font-weight: 700; text-align: center; font-feature-settings: "tnum"; background: var(--white); min-width: 0; }
.bp-input-cell input:focus { outline: none; border-color: var(--olive-dark); }
.bp-input-cell .unit { font-size: 11px; color: var(--text-soft); text-align: center; }
.bp-helper { background: var(--olive-tint); border-radius: 10px; padding: 12px 18px; margin-block-end: 14px; font-size: 13px; color: var(--olive-darker); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bp-helper > span { flex: 1; min-width: 200px; }
.bp-helper svg { width: 18px; height: 18px; color: var(--olive-dark); flex-shrink: 0; }
.bp-helper button { background: transparent; border: none; color: var(--olive-darker); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; text-decoration: underline; padding: 0; margin-inline-start: auto; }
.bp-result { margin-block-start: 18px; padding: 18px 22px; border-radius: 12px; font-size: 15px; line-height: 1.75; display: none; border: 2px solid transparent; }
.bp-result.show { display: block; }
.bp-result .stage-name { font-size: 22px; font-weight: 700; display: block; margin-block-end: 6px; }
.bp-result.normal { background: var(--olive-tint); color: var(--olive-darker); border-color: var(--olive-dark); }
.bp-result.elevated { background: #F5F2E0; color: #6E5C18; border-color: #C9B95A; }
.bp-result.stage1 { background: #FDF5E2; color: #8A5C18; border-color: #E5A538; }
.bp-result.stage2 { background: #FBE5DD; color: #A23A2A; border-color: var(--error); }
.bp-result.crisis { background: #8A2A2A; color: #FFFFFF; border-color: #6A1A1A; }
.bp-result.crisis .stage-name { color: #FFFFFF; }
.bp-scale { display: grid; gap: 8px; margin-block: 18px; }
@media (min-width: 720px) { .bp-scale { grid-template-columns: repeat(4, 1fr); } }
.bp-scale-tier { padding: 12px 10px; border-radius: 10px; text-align: center; font-size: 11.5px; line-height: 1.5; }
.bp-scale-tier strong { display: block; font-size: 13px; font-weight: 700; margin-block-end: 4px; }
.bp-scale-tier.t-normal { background: var(--olive-tint); color: var(--olive-darker); }
.bp-scale-tier.t-elevated { background: #F5F2E0; color: #6E5C18; }
.bp-scale-tier.t-stage1 { background: #FDF5E2; color: #8A5C18; }
.bp-scale-tier.t-stage2 { background: #FBE5DD; color: #A23A2A; }
.bp-scale-tier.t-crisis { background: #8A2A2A; color: #FFFFFF; }

/* Risk self-check */
.risk-check { background: var(--cream); border-radius: 16px; padding: 26px 24px; margin-block: 24px; }
.risk-check-grid { display: grid; gap: 12px; margin-block: 18px; }
@media (min-width: 720px) { .risk-check-grid { grid-template-columns: repeat(2, 1fr); } }
.risk-check-item { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; background: var(--white); border: 1px solid var(--border); border-radius: 10px; cursor: pointer; transition: border-color 200ms; }
.risk-check-item:hover { border-color: var(--olive); }
.risk-check-item.checked { border-color: var(--olive-dark); background: var(--olive-tint); }
.risk-check-item input { margin-block-start: 3px; accent-color: var(--olive-dark); }
.risk-check-item label { font-size: 13.5px; line-height: 1.7; cursor: pointer; color: var(--text); flex: 1; }
.risk-check-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-block-start: 16px; }
.risk-check-btn { background: var(--olive-dark); color: var(--white); border: none; padding: 10px 22px; border-radius: 999px; font: inherit; font-size: 13px; cursor: pointer; }
.risk-check-btn.reset { background: transparent; color: var(--text-soft); border: 1px solid var(--border); }
.risk-result { display: none; margin-block-start: 18px; padding: 16px 18px; border-radius: 12px; font-size: 14px; line-height: 1.7; }
.risk-result.show { display: block; }
.risk-result.low { background: var(--olive-tint); color: var(--olive-darker); }
.risk-result.medium { background: #FDF5E2; color: #8A5C18; }
.risk-result.high { background: #FBE5DD; color: var(--error); }

/* Risk cards */
.risk-cards { display: grid; gap: 14px; margin-block: 22px; }
@media (min-width: 720px) { .risk-cards { grid-template-columns: repeat(2, 1fr); } }
.risk-card { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 22px; transition: border-color 200ms, box-shadow 200ms; }
.risk-card:hover { border-color: var(--error); box-shadow: 0 8px 18px rgba(20,40,15,0.06); }
.risk-card-icon { width: 48px; height: 48px; border-radius: 12px; background: #FBE5DD; color: var(--error); display: flex; align-items: center; justify-content: center; margin-block-end: 12px; }
.risk-card-icon svg { width: 26px; height: 26px; }
.risk-card h4 { font-size: 16px; font-weight: 600; color: var(--text); margin-block-end: 6px; }
.risk-card-stat { font-size: 12px; color: var(--error); font-weight: 600; margin-block-end: 10px; padding-block-end: 10px; border-block-end: 1px solid var(--border); }
.risk-card p { font-size: 13px; line-height: 1.75; color: var(--text-soft); margin: 0; }

/* Food bars */
.food-chart { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 24px; margin-block: 22px; }
.food-chart-title { font-size: 12.5px; color: var(--text-soft); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-block-end: 18px; }
.food-row { display: grid; grid-template-columns: 1fr; gap: 6px; margin-block-end: 14px; }
@media (min-width: 720px) { .food-row { grid-template-columns: 220px 1fr; gap: 12px; align-items: center; } }
.food-row:last-child { margin-block-end: 0; }
.food-row-label { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--text); }
.food-bar-wrap { height: 28px; background: var(--bg-section); border-radius: 6px; overflow: hidden; position: relative; }
.food-bar { height: 100%; background: linear-gradient(90deg, var(--olive), var(--olive-dark)); border-radius: 6px; display: flex; align-items: center; justify-content: flex-end; padding-inline-end: 12px; transition: width 1100ms cubic-bezier(0.22, 1, 0.36, 1); width: 0; }
.food-bar.is-bad { background: linear-gradient(90deg, #E5A538, var(--error)); }
.food-bar-val { font-size: 11.5px; font-weight: 600; color: var(--white); font-feature-settings: "tnum"; white-space: nowrap; }
.food-bar.is-tiny .food-bar-val { position: absolute; inset-inline-start: 10px; top: 50%; transform: translateY(-50%); color: var(--text); }

/* Myths */
.myth-grid { display: grid; gap: 14px; margin-block: 22px; }
@media (min-width: 720px) { .myth-grid { grid-template-columns: repeat(2, 1fr); } }
.myth-card { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 22px; }
.myth-card-tag { display: inline-block; font-size: 10.5px; font-weight: 700; color: var(--error); background: #FBE5DD; padding: 3px 10px; border-radius: 999px; letter-spacing: 0.04em; margin-block-end: 10px; }
.myth-card h4 { font-size: 15px; font-weight: 600; color: var(--text); margin-block-end: 10px; line-height: 1.5; }
.myth-card-truth { font-size: 13px; line-height: 1.8; color: var(--text); padding-block-start: 12px; border-block-start: 1px solid var(--border); }
.myth-card-truth strong { color: var(--olive-darker); }

/* 3-tier Protocol */
.bp-protocol { background: #FAFAF7; border: 1px solid var(--border); border-radius: 20px; padding: clamp(32px, 5vw, 48px) clamp(24px, 4vw, 40px); margin-block: 32px; }
.bp-protocol-intro { font-size: 13.5px; color: var(--text-soft); margin-block-end: 28px; line-height: 1.8; text-align: center; max-width: 680px; margin-inline: auto; }
.bp-pillars { display: grid; gap: 18px; margin-block: 24px; }
@media (min-width: 880px) { .bp-pillars { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.bp-pillar { background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 26px 24px 22px; display: flex; flex-direction: column; gap: 16px; transition: all 240ms; }
.bp-pillar:hover { border-color: var(--olive-dark); transform: translateY(-3px); box-shadow: 0 14px 32px rgba(20,40,15,0.1); }
.bp-pillar-head { display: flex; align-items: center; gap: 12px; }
.bp-pillar-badge { width: 32px; height: 32px; border-radius: 50%; background: var(--olive-darker); color: #FFFFFF; font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-feature-settings: "tnum"; flex-shrink: 0; box-shadow: 0 2px 6px rgba(35,77,16,0.25); }
.bp-pillar-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--olive-dark); }
.bp-pillar-title { font-size: 18.5px; font-weight: 700; color: var(--text); line-height: 1.4; margin: 0; letter-spacing: -0.01em; }
.bp-pillar-sub { font-size: 13px; color: var(--text-soft); line-height: 1.7; margin: 0; }
.bp-pillar-targets { display: flex; flex-direction: column; padding-block-start: 14px; margin-block-start: 4px; border-block-start: 1px solid var(--border); }
.bp-target { padding-block: 12px; border-block-end: 1px solid rgba(0,0,0,0.05); }
.bp-target:last-child { border-block-end: 0; padding-block-end: 4px; }
.bp-target-num { font-size: 16.5px; font-weight: 700; color: var(--olive-darker); line-height: 1.25; font-feature-settings: "tnum"; margin-block-end: 4px; }
.bp-target-label { font-size: 12.5px; color: var(--text-soft); line-height: 1.65; }
.bp-pillar-footer { font-size: 11.5px; color: var(--olive-dark); padding-block: 14px 4px; margin-block-start: auto; border-block-start: 1px solid var(--border); display: flex; align-items: center; gap: 8px; font-weight: 600; }
.bp-pillar-footer svg { width: 14px; height: 14px; flex-shrink: 0; }
.bp-protocol-note { background: var(--olive-tint); border-radius: 14px; padding: 16px 22px; margin-block-start: 28px; font-size: 13.5px; line-height: 1.8; color: var(--olive-darker); text-align: center; border: 1px solid rgba(35,77,16,0.12); }
.bp-protocol-note strong { color: var(--olive-darker); font-weight: 700; }

/* FAQ */
.vd-faq-list { list-style: none; padding: 0; margin-block: 18px; display: grid; gap: 8px; }
.vd-faq-item { background: var(--white); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.vd-faq-q { background: none; border: 0; width: 100%; padding: 16px 20px; text-align: start; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--text); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.vd-faq-q[aria-expanded="true"] { color: var(--olive-dark); }
.vd-faq-icon { width: 16px; height: 16px; flex-shrink: 0; transition: transform 200ms; color: var(--olive-dark); }
.vd-faq-q[aria-expanded="true"] .vd-faq-icon { transform: rotate(45deg); }
.vd-faq-a { max-height: 0; overflow: hidden; transition: max-height 320ms cubic-bezier(0.22, 1, 0.36, 1); }
.vd-faq-a-inner { padding: 0 20px 18px; font-size: 13.5px; line-height: 1.85; color: var(--text); }

.ar-pullquote { font-size: 17px; line-height: 1.9; color: var(--olive-darker); border-inline-start: 3px solid var(--olive-dark); padding: 14px 22px; margin-block: 24px; font-weight: 500; background: var(--olive-tint); border-radius: 0 10px 10px 0; }

/* Collapsible References Accordion */
.ar-refs-details { background: var(--white); border: 1px solid var(--border); border-radius: 14px; margin-block: 32px; overflow: hidden; transition: border-color 200ms; }
.ar-refs-details:hover { border-color: var(--olive); }
.ar-refs-details[open] { border-color: var(--olive); }
.ar-refs-details summary { padding: 20px 26px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; list-style: none; gap: 16px; transition: background 180ms; }
.ar-refs-details summary:hover { background: var(--olive-tint); }
.ar-refs-details summary::-webkit-details-marker { display: none; }
.ar-refs-details summary::marker { display: none; }
.ar-refs-details summary h2 { margin: 0 !important; padding: 0 !important; border: 0 !important; font-size: clamp(20px, 2.4vw, 26px) !important; font-weight: 700 !important; color: var(--text) !important; letter-spacing: -0.01em; }
.ar-refs-details summary h2::before { display: none !important; }
.ar-refs-toggle-icon { width: 22px; height: 22px; color: var(--olive-dark); flex-shrink: 0; transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1); }
.ar-refs-details[open] .ar-refs-toggle-icon { transform: rotate(180deg); }
.ar-refs-toggle-label { font-size: 12px; font-weight: 600; color: var(--olive-dark); margin-inline-end: 8px; letter-spacing: 0.04em; }
.ar-refs-details[open] .ar-refs-toggle-label::before { content: "إِخفاء"; }
.ar-refs-details:not([open]) .ar-refs-toggle-label::before { content: "إِظهار"; }
.ar-refs-details .ar-refs-list { padding: 4px 28px 24px; margin: 0; list-style: decimal; font-feature-settings: "tnum"; }
.ar-refs-details .ar-refs-list li { margin-block: 10px; line-height: 1.85; font-size: 13.5px; color: var(--text); padding-inline-start: 8px; }
.ar-refs-details .ar-refs-list li::marker { color: var(--olive-dark); font-weight: 700; }
.ar-refs-details .ar-refs-list li a { color: var(--olive-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color 180ms; }
.ar-refs-details .ar-refs-list li a:hover { color: var(--olive-darker); text-decoration-thickness: 2px; }

/* Inline cross-link button — connects related articles */
.inline-next-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--olive-tint); color: var(--olive-darker) !important; padding: 10px 18px; border-radius: 999px; font: inherit; font-size: 13.5px; font-weight: 600; text-decoration: none !important; margin-block-start: 12px; border: 1.5px solid var(--olive); transition: all 200ms; }
.inline-next-btn:hover { background: var(--olive-dark); color: #FFFFFF !important; border-color: var(--olive-dark); transform: translateY(-1px); box-shadow: 0 6px 14px rgba(35,77,16,0.25); }
.inline-next-btn svg { width: 14px; height: 14px; transition: transform 200ms; }
.inline-next-btn:hover svg { transform: translateX(-3px); }
.inline-next-btn.disabled { opacity: 0.55; pointer-events: none; background: #F2F2EF; border-color: var(--border); color: var(--text-soft) !important; }
.inline-next-btn.disabled::after { content: " (قَريباً)"; font-size: 11px; opacity: 0.7; }
