/* Long-form pages: articles, About and "How we check food". Matches the product pages' look. */
#main-nav { background: #fff; box-shadow: 0 0 15px rgba(0,0,0,.05); }
#main-nav .nav-link, #main-nav .nav-button a { color: #333 !important; }
#main-nav .hamburger span { background: #333 !important; }
#main-nav .navbar-brand .white-text, #main-nav .navbar-brand .white-logo { display: none !important; }
#main-nav .navbar-brand .color-text, #main-nav .navbar-brand .color-logo { display: inline-block !important; }

.ar-page {
    --ink: #0b1220; --ink-2: #374151; --ink-3: #6b7280; --line: #e6ebf0; --canvas: #f5f7f6; --brand: #00704a; --brand-2: #00a36c;
    --display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    background: var(--canvas); color: var(--ink-2); font-family: 'Inter', system-ui, sans-serif; padding: 140px 0 80px; -webkit-font-smoothing: antialiased;
}
.ar-wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.ar-page a { color: var(--brand); font-weight: 600; }
.ar-page a:hover, .ar-page a:focus { color: #005a3c; }
.ar-crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .9rem; color: var(--ink-3); margin-bottom: 18px; }
.ar-crumbs .fa { font-size: .8rem; }

/* Header */
.ar-head { position: relative; overflow: hidden; border-radius: 32px; padding: 52px 56px 44px; color: #e2f5ec;
    background: radial-gradient(60% 90% at 0% 0%, rgba(52, 211, 153, .3) 0%, transparent 60%), linear-gradient(150deg, #052e21 0%, #064e3b 60%, #00704a 100%);
    box-shadow: 0 30px 60px -32px rgba(6, 78, 59, .6); }
.ar-eyebrow { display: inline-block; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
    color: #a7f3d0; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.ar-head h1 { margin: 0 0 14px; color: #fff; font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 4.4vw, 3.2rem); letter-spacing: -.035em; line-height: 1.08; max-width: 820px; }
.ar-lead { margin: 0; max-width: 720px; font-size: 1.12rem; line-height: 1.65; color: rgba(226, 245, 236, .85); }
.ar-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; font-size: .9rem; color: rgba(226, 245, 236, .75); }
.ar-meta span { display: inline-flex; gap: 8px; align-items: center; }

/* Body */
.ar-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; align-items: start; margin-top: 28px; }
.ar-body { background: #fff; border-radius: 28px; padding: 48px 56px; box-shadow: 0 1px 2px rgba(15, 23, 42, .05), inset 0 0 0 1px rgba(15, 23, 42, .05); min-width: 0;
    font-size: 1.06rem; line-height: 1.8; }
.ar-body > :first-child { margin-top: 0; }
.ar-body h2 { margin: 2.2em 0 .6em; color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 1.6rem; letter-spacing: -.02em; line-height: 1.25; scroll-margin-top: 120px; }
.ar-body h3 { margin: 1.6em 0 .4em; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 1.18rem; }
.ar-body p { margin: 0 0 1.1em; }
.ar-body ul, .ar-body ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.ar-body li { margin: .35em 0; }
.ar-body li::marker { color: var(--brand); }
.ar-body strong { color: var(--ink); }
.ar-body table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 0 0 1.4em; font-size: .95rem; line-height: 1.5; border-radius: 16px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.ar-body th, .ar-body td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.ar-body th { background: var(--canvas); color: var(--ink); font-weight: 700; }
.ar-body tr:last-child td { border-bottom: 0; }
.ar-table { overflow-x: auto; }

.ar-answer { margin: 0 0 2em; padding: 22px 24px; border-radius: 20px; background: linear-gradient(180deg, #ecfdf5, #fff); box-shadow: inset 0 0 0 1px rgba(5, 150, 105, .22); }
.ar-answer strong:first-child { display: block; margin-bottom: 6px; color: #047857; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.ar-answer p:last-child { margin: 0; }
.ar-note { display: flex; gap: 14px; margin: 1.6em 0; padding: 18px 20px; border-radius: 18px; background: #fffbeb; box-shadow: inset 0 0 0 1px rgba(217, 119, 6, .22); font-size: .98rem; line-height: 1.65; }
.ar-note .fa { color: #d97706; margin-top: 5px; }
.ar-note p { margin: 0; }
.ar-steps { counter-reset: s; list-style: none; padding: 0 !important; }
.ar-steps li { counter-increment: s; position: relative; padding: 4px 0 4px 48px; margin: 0 0 14px; }
.ar-steps li::before { content: counter(s); position: absolute; left: 0; top: 2px; width: 32px; height: 32px; border-radius: 10px; background: var(--ink); color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .9rem; }
.ar-faq details { border-radius: 16px; padding: 0 18px; background: var(--canvas); margin-bottom: 10px; }
.ar-faq details[open] { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.ar-faq summary { cursor: pointer; list-style: none; padding: 16px 0; color: var(--ink); font-weight: 700; font-family: var(--display); display: flex; justify-content: space-between; gap: 12px; }
.ar-faq summary::-webkit-details-marker { display: none; }
.ar-faq summary::after { content: "+"; color: var(--brand); font-weight: 800; }
.ar-faq details[open] summary::after { content: "\2013"; }
.ar-faq details p { margin: 0 0 16px; }
.ar-sources { margin-top: 2.4em; padding-top: 1.4em; border-top: 1px solid var(--line); font-size: .92rem; color: var(--ink-3); }
.ar-sources h2 { font-size: 1.1rem; margin-top: 0; }

/* Sidebar */
.ar-aside { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 16px; }
.ar-card { background: #fff; border-radius: 22px; padding: 22px; box-shadow: 0 1px 2px rgba(15, 23, 42, .05), inset 0 0 0 1px rgba(15, 23, 42, .05); }
.ar-card h2 { margin: 0 0 12px; color: var(--ink); font-family: var(--display); font-size: 1rem; font-weight: 800; }
.ar-toc { list-style: none; margin: 0; padding: 0; font-size: .9rem; line-height: 1.4; }
.ar-toc li { margin: 0 0 8px; }
.ar-page .ar-toc a { color: var(--ink-2); font-weight: 500; }
.ar-page .ar-toc a:hover { color: var(--brand); }
.ar-card p { margin: 0 0 14px; font-size: .92rem; line-height: 1.6; }
.ar-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 12px; font-weight: 700; font-size: .92rem; text-decoration: none !important; }
.ar-page .ar-btn--primary { color: #fff; background: linear-gradient(135deg, var(--brand-2), var(--brand)); box-shadow: 0 10px 22px -12px rgba(0, 112, 74, .8); }
.ar-page .ar-btn--primary:hover { color: #fff; }

/* More reading */
.ar-more { margin-top: 44px; }
.ar-more h2 { margin: 0 0 16px; color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 1.4rem; }
.ar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.ar-page .ar-tile { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 22px; background: #fff; color: var(--ink-2); text-decoration: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .05), inset 0 0 0 1px rgba(15, 23, 42, .06); transition: transform .2s, box-shadow .2s; }
.ar-page .ar-tile:hover { transform: translateY(-3px); box-shadow: 0 20px 36px -24px rgba(15, 23, 42, .4), inset 0 0 0 1px rgba(15, 23, 42, .08); color: var(--ink-2); }
.ar-tile strong { color: var(--ink); font-family: var(--display); font-size: 1.02rem; line-height: 1.35; }
.ar-tile span { font-size: .9rem; font-weight: 500; line-height: 1.55; }
.ar-tile em { margin-top: auto; padding-top: 8px; font-style: normal; color: var(--brand); font-size: .85rem; font-weight: 700; }
.ar-badge { align-self: flex-start; padding: 3px 9px; border-radius: 999px; background: #ecfdf5; color: #047857; font-size: .7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }

/* Info grids for About / How we check */
.ar-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 0 0 1.6em; }
.ar-cards > div { padding: 20px; border-radius: 18px; background: var(--canvas); font-size: .95rem; line-height: 1.6; }
.ar-cards h3 { margin: 10px 0 4px !important; font-size: 1.02rem !important; }
.ar-cards .fa { width: 40px; height: 40px; border-radius: 12px; background: #fff; color: var(--brand); display: inline-flex; align-items: center; justify-content: center; font-size: 17px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .06); }
.ar-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 800; white-space: nowrap; }
.ar-pill.is-cert { background: #d1fae5; color: #047857; }
.ar-pill.is-ok { background: #d1fae5; color: #059669; }
.ar-pill.is-doubt { background: #fef3c7; color: #b45309; }
.ar-pill.is-haram { background: #ffe4e6; color: #e11d48; }
.ar-pill.is-unknown { background: #e2e8f0; color: #475569; }

@media (max-width: 991px) {
    .ar-layout { grid-template-columns: 1fr; }
    .ar-aside { position: static; }
}
@media (max-width: 640px) {
    .ar-page { padding-top: 108px; }
    .ar-wrap { padding: 0 12px; }
    .ar-head { border-radius: 24px; padding: 32px 20px 28px; }
    .ar-lead { font-size: 1rem; }
    .ar-body { border-radius: 22px; padding: 26px 18px; font-size: 1rem; line-height: 1.75; }
    .ar-body h2 { font-size: 1.35rem; }
    .ar-body th, .ar-body td { padding: 10px; }
}
