/* Guides, halal checks, FAQ, about and glossary pages. Built by tools/seo/build.py */
:root { --emerald: #017B51; --forest: #032D1C; --cream: #FFF6E6; --bg: #EDF5ED; --ink: #14231B; --muted: #4B6055; --line: #CDDDD2; --green: #1F7A4D; --green-bg: #E5F3EA; --amber-bg: #FFF3C4; --amber-line: #F0D48A; --emerald-deep: #006743; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; cursor: url(/cursor-pin.png) 16 30, auto; cursor: image-set(url(/cursor-pin.png) 1x, url(/cursor-pin@2x.png) 2x) 16 30, auto; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif; font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
::selection { background: var(--emerald); color: #fff; }
a { color: var(--forest); text-decoration: underline; text-decoration-color: var(--emerald); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--emerald); }
:focus-visible { outline: 3px solid var(--emerald); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; }

.top { background: var(--forest); position: sticky; top: 0; z-index: 10; }
.top .in { max-width: 1040px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--cream); font-weight: 750; font-size: 18px; text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.top nav { display: flex; align-items: center; gap: 18px; font-size: 15px; }
.top nav a { color: #F3E6D6; text-decoration: none; white-space: nowrap; }
.top nav a:hover, .top nav a[aria-current="page"] { color: #fff; text-decoration: underline; text-decoration-color: var(--emerald); }
.top nav a.cta { background: var(--emerald-deep); color: #fff; padding: 7px 14px; border-radius: 999px; text-decoration: none; font-weight: 650; }
.top nav a.cta:hover { background: #9c3815; }

main { max-width: 820px; margin: 0 auto; padding: 28px 24px 64px; }
main.wide { max-width: 1040px; }
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 18px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--muted); }
.crumbs a { color: var(--muted); }
h1 { font-size: clamp(1.9rem, 5vw, 2.7rem); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 12px; color: var(--forest); }
.lede { font-size: 1.14rem; color: #3b2f26; margin: 0 0 14px; }
.meta { color: var(--muted); font-size: 14.5px; margin: 0 0 26px; }
h2 { font-size: 1.4rem; line-height: 1.25; letter-spacing: -0.01em; color: var(--forest); margin: 38px 0 10px; scroll-margin-top: 80px; }
h3 { font-size: 1.08rem; margin: 22px 0 6px; color: var(--forest); }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 14px; padding-left: 22px; }
li { margin: 0 0 6px; }
blockquote { margin: 0 0 16px; padding: 12px 18px; border-left: 4px solid var(--emerald); background: #fff; border-radius: 0 12px 12px 0; }
blockquote p:last-child { margin: 0; }
blockquote cite { display: block; font-size: 14px; color: var(--muted); font-style: normal; margin-top: 6px; }

.answer { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; margin: 0 0 26px; }
.answer .label { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--emerald-deep); margin-bottom: 4px; }
.answer p:last-child { margin: 0; }
.verdict { display: inline-block; font-size: 14px; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin: 0 0 8px; }
.verdict.yes { background: var(--green-bg); color: var(--green); }
.verdict.part { background: var(--amber-bg); color: #7a5600; }
.verdict.no { background: #F9E1DA; color: #9a2f12; }
.note { background: var(--amber-bg); border: 1px solid var(--amber-line); border-radius: 14px; padding: 12px 16px; font-size: 15.5px; margin: 0 0 18px; }

table { width: 100%; border-collapse: collapse; margin: 6px 0 18px; font-size: 15px; background: #fff; border-radius: 12px; overflow: hidden; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { background: var(--cream); color: var(--forest); font-weight: 650; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 10px 0 26px; padding: 0; list-style: none; }
.cards li { margin: 0; }
.card { display: block; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; text-decoration: none; color: var(--ink); transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(43,22,8,.10); color: var(--ink); }
.card strong { display: block; color: var(--forest); font-size: 1.02rem; margin-bottom: 4px; }
.card span { display: block; font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.card .tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-bottom: 8px; }

.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; margin: 0 0 10px; }
.faq summary { cursor: pointer; font-weight: 650; color: var(--forest); padding: 10px 0; list-style-position: outside; }
.faq details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.faq details p:last-child { margin-bottom: 12px; }

.related { margin-top: 42px; }
.chain-list { margin-top: 30px; font-size: 15px; color: var(--muted); }
.chain-list h2 { font-size: 1.05rem; margin: 0 0 6px; }
.chain-list a { white-space: nowrap; }
.sources { font-size: 14.5px; color: var(--muted); }
.sources a { color: var(--muted); }
.cta-band { margin-top: 44px; background: var(--forest); color: var(--cream); border-radius: 20px; padding: 24px 26px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.cta-band p { margin: 0; max-width: 520px; }
.cta-band strong { color: #fff; display: block; font-size: 1.15rem; margin-bottom: 2px; }
.cta-band a { background: var(--emerald-deep); color: #fff; text-decoration: none; padding: 11px 20px; border-radius: 999px; font-weight: 700; white-space: nowrap; }
.cta-band a:hover { background: #9c3815; color: #fff; }

.toc { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 20px 6px; margin: 0 0 26px; font-size: 15.5px; }
.toc p { font-weight: 700; color: var(--forest); margin: 0 0 6px; }
dl.terms dt { font-weight: 700; color: var(--forest); margin-top: 18px; scroll-margin-top: 80px; }
dl.terms dd { margin: 4px 0 0; }

.foot { background: var(--forest); color: #F3E6D6; font-size: 14.5px; margin-top: 20px; }
.foot .in { max-width: 1040px; margin: 0 auto; padding: 36px 24px 26px; }
.foot .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 22px; }
.foot h2 { color: #fff; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 10px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin: 0 0 7px; }
.foot a { color: #F3E6D6; text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--emerald); }
.foot .base { border-top: 1px solid rgba(255,255,255,.14); margin-top: 26px; padding-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: 13.5px; color: #d9c8b6; }
.foot .base img { width: 22px; height: 22px; border-radius: 6px; vertical-align: -6px; margin-right: 6px; }

@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .top .in { padding: 12px 16px; gap: 10px; }
  .top nav { gap: 12px; font-size: 14px; }
  .top nav .hide-sm { display: none; }
  main { padding: 22px 16px 52px; }
  .foot .in { padding: 30px 16px 22px; }
  table { font-size: 14px; }
  th, td { padding: 8px 9px; }
  .cta-band { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { .card { transition: none; } .card:hover { transform: none; } }

/* Area pages, status chips and wide tables (added for programmatic SEO pages) */
.tw { overflow-x: auto; margin: 6px 0 18px; }
.tw table { margin: 0; min-width: 520px; }
.st { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.st-cert { background: var(--green-bg); color: var(--green); }
.st-opt { background: var(--amber-bg); color: #7a5600; }
.st-rep { background: #E9ECEA; color: #46524B; }
td small { display: block; color: var(--muted); font-size: 13px; line-height: 1.45; margin-top: 2px; }
.plist td:first-child { min-width: 160px; }
.clist { list-style: none; padding: 0; }
.clist li { margin: 0 0 8px; font-size: 15px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 24px; padding: 0; list-style: none; }
.facts li { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 0; }
.facts b { display: block; font-size: 1.5rem; color: var(--forest); line-height: 1.1; }
.facts span { font-size: 14px; color: var(--muted); }
