/* Generated by _build/rtl-css.mjs from assets/css/refresh-monograph.css for the Arabic (right-to-left) edition. Do not edit: edit the original. */
/* Design refresh 2026-11 (monograph): ideas from DESIGN-IDEAS-THEMEFOREST.md */
/* Ideas 1, 2, 3, 8, 11 and 16: evidence summary box, filter chips, specimen cards, recipe hero card,
   sticky summary card on ingredient pages, two compact cards per row on phones. Colors come from the
   site.css variables, so light and dark mode both follow them. */

/* Filtered cards and the chip bar before its script runs: [hidden] must win over .card { display: flex }. */
.cards > [hidden], .chipbar[hidden] { display: none !important; }

/* ---------- 1. "What the evidence says" summary box (ingredients and Learn guides) ---------- */
.ev-box { background: var(--paper); border: 1px solid var(--line); border-top: 2px solid var(--brass); padding: clamp(20px, 3vw, 34px); margin: 0 0 clamp(40px, 5vw, 64px); }
.ev-box .bl-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.ev-box h2.ev-title { font: 500 0.858rem/1.4 var(--ui); text-transform: uppercase; letter-spacing: normal; color: var(--brass-strong); margin: 0; padding: 0; border: 0; hyphens: none; }
.ev-main { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: 22px 30px; align-items: start; }
.ev-main > * { min-width: 0; }
.ev-seal { display: grid; justify-items: center; align-content: start; text-align: center; gap: 6px; padding-left: 26px; border-left: 1px solid var(--line); color: var(--g-d); }
.ev-seal[data-g="A"] { color: var(--g-a); } .ev-seal[data-g="B"] { color: var(--g-b); } .ev-seal[data-g="C"] { color: var(--g-c); }
.ev-seal-read { color: var(--brass-strong); }
.ev-cap { font: 500 0.78rem/1.4 var(--ui); text-transform: uppercase; letter-spacing: normal; color: var(--muted); }
.ev-letter { margin: 8px; display: grid; place-items: center; width: 84px; height: 84px; font: 400 2.5rem/1 var(--display); color: inherit; }
.ev-seal .ev-letter { --seal-ring: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M79.58 86.53A47 47 0 0 1 20.42 86.53M13.47 79.58A47 47 0 0 1 13.47 20.42M20.42 13.47A47 47 0 0 1 79.58 13.47M86.53 20.42A47 47 0 0 1 86.53 79.58' fill='none' stroke='%23000' stroke-width='6'/%3E%3C/svg%3E"); --seal-in: 10%; outline: 1px dashed color-mix(in srgb, currentColor 45%, transparent); outline-offset: 6px; }
.ev-label { font: 400 1.08rem/1.25 var(--display); color: var(--ink); }
.ev-stats { display: grid; gap: 2px; margin-top: 6px; font: 400 0.86rem/1.45 var(--ui); color: var(--muted); }
.ev-stats b { font: 400 1.12rem/1 var(--display); color: var(--ink); margin-left: .15em; }
.ev-note { font: 400 1.06rem/1.5 var(--latin); color: var(--muted); margin: 0 0 14px; }
.ev-lines { display: grid; margin: 0; }
.ev-lines > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 11px 0; border-top: 1px solid var(--line); min-width: 0; }
.ev-lines dt { font: 500 0.78rem/1.6 var(--ui); text-transform: uppercase; letter-spacing: normal; color: var(--brass-strong); }
.ev-lines dd { margin: 0; font-size: 1rem; line-height: 1.55; min-width: 0; overflow-wrap: break-word; }
.ev-g { display: inline-grid; place-items: center; width: 1.8em; height: 1.8em; font: 400 .8rem/1 var(--display); vertical-align: .08em; color: var(--g-d); }
.ev-g[data-g="A"] { color: var(--g-a); } .ev-g[data-g="B"] { color: var(--g-b); } .ev-g[data-g="C"] { color: var(--g-c); }
.ev-sep { color: var(--brass); }
.ev-takeaways { margin: 0 0 14px; padding-right: 1.1em; }
.ev-takeaways li { margin: 0 0 8px; }
.ev-takeaways li::marker { color: var(--brass); }
.ev-jump { display: flex; flex-wrap: wrap; align-items: center; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); font: 500 0.806rem/1.3 var(--ui); text-transform: uppercase; letter-spacing: normal; }
.ev-jump-k { color: var(--muted); margin-left: 6px; }
.ev-jump > a { color: var(--ink); text-decoration: none; padding: 9px 12px; border-right: 1px solid var(--line); }
.ev-jump > a:first-of-type { border-right: 0; }
.ev-jump a:hover { color: var(--brass-strong); }
.ev-jump-list { display: block; }
.ev-jump-list ol { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: evs; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 0 26px; }
.ev-jump-list li { counter-increment: evs; border-top: 1px solid var(--line); margin: 0; min-width: 0; }
.ev-jump-list li a { display: flex; gap: 12px; align-items: baseline; padding: 9px 0; color: var(--ink); text-decoration: none; text-transform: none; letter-spacing: normal; font: 400 .95rem/1.35 var(--body); }
.ev-jump-list li a::before { content: counter(evs, decimal-leading-zero); flex: 0 0 auto; min-width: 1.7em; font: 400 1.1rem/1 var(--display); color: var(--brass); }
.ev-method { margin: 14px 0 0; }
body.everyday .ev-jump a[href="#science"] { display: none; }
@media (max-width: 640px) {
  .ev-main { grid-template-columns: minmax(0, 1fr); }
  .ev-seal { grid-template-columns: auto minmax(0, 1fr); justify-items: start; text-align: right; align-items: center; column-gap: 16px; padding: 0 0 16px; border-left: 0; border-bottom: 1px solid var(--line); }
  .ev-seal .ev-letter { grid-row: 1 / span 3; width: 68px; height: 68px; font-size: 2rem; }
  .ev-seal .ev-cap, .ev-seal .ev-label, .ev-seal .ev-stats { grid-column: 2; }
  .ev-stats { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 0; }
  .ev-jump > a { padding: 9px 10px; }
}

/* ---------- 11. Sticky summary card on ingredient pages (wide screens only, no script) ---------- */
.mono-sum { display: none; }
@media (min-width: 1000px) {
  /* The side column runs the full height of the article so the card can stay in view; it never overlaps the text. */
  .monograph .mono-side { position: static; align-self: stretch; display: flex; flex-direction: column; gap: 22px; }
  .mono-sum { display: block; position: sticky; top: 150px; max-height: calc(100vh - 170px); overflow: auto; background: var(--paper); border: 1px solid var(--line); border-top: 2px solid var(--brass); padding: 20px 22px 22px; }
}
.mono-sum .eyebrow { margin: 0 0 8px; }
.mono-sum h2.sum-name { font: 400 1.55rem/1.1 var(--display); letter-spacing: normal; margin: 0; }
.sum-latin { font: italic 400 1.02rem/1.35 var(--latin); color: var(--muted); margin: 4px 0 12px; }
.sum-grade { margin: 0; }
.sum-grade .grade { white-space: normal; line-height: 1.4; }
.sum-k { font: 500 0.78rem var(--ui); text-transform: uppercase; letter-spacing: normal; color: var(--brass-strong); margin: 14px 0 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.sum-for { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sum-for a { display: inline-block; font: 400 0.86rem/1.2 var(--ui); padding: .45em .75em; border: 1px solid var(--line-strong); color: var(--ink); text-decoration: none; }
.sum-for a:hover { border-color: var(--brass); color: var(--brass-strong); }
.sum-patch { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; padding: 11px 13px; border: 1px solid var(--brass); color: var(--brass-strong); font: 500 0.832rem/1.3 var(--ui); text-transform: uppercase; letter-spacing: normal; text-decoration: none; }
.sum-patch::after { content: "←"; }
.sum-patch:hover { background: var(--brass-soft); }

/* ---------- 2. One-tap filter chips (Ingredients and Concerns hubs) ---------- */
.chipbar { display: grid; gap: 12px; margin: 0 0 24px; padding: 0 0 20px; border-bottom: 1px solid var(--line); }
.chip-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.chip-group-l { flex: 0 0 9.5em; font: 500 0.78rem/1.3 var(--ui); text-transform: uppercase; letter-spacing: normal; color: var(--muted); }
.fchip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; max-width: 100%; padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--paper); color: var(--ink); font: 500 .84rem/1.2 var(--ui); cursor: pointer; transition: background-color .18s, border-color .18s, color .18s; }
.fchip:hover { border-color: var(--brass); }
.fchip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.fchip-l { display: inline-block; }
.fchip-l::first-letter { text-transform: uppercase; }
.fchip-n { font: 400 .95rem/1 var(--display); color: var(--muted); }
.fchip[aria-pressed="true"] .fchip-n { color: inherit; opacity: .75; }
.fchip-g { display: inline-grid; place-items: center; width: 1.7em; height: 1.7em; margin-right: -6px; border-radius: 50%; border: 1px solid currentColor; font: 500 .85rem/1 var(--latin); color: var(--g-d); }
.fchip-g[data-g="A"] { color: var(--g-a); } .fchip-g[data-g="B"] { color: var(--g-b); } .fchip-g[data-g="C"] { color: var(--g-c); }
.fchip[aria-pressed="true"] .fchip-g { color: inherit; }
.chip-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding-top: 4px; }
.chip-status .result-count { margin: 0; }
.fchip-clear { border-style: dashed; color: var(--muted); }
.fchip-clear[aria-disabled="true"] { opacity: .5; cursor: default; }
.fchip-clear[aria-disabled="true"]:hover { border-color: var(--line-strong); }
@media (max-width: 600px) {
  .chip-group { gap: 6px; }
  .chip-group-l { flex-basis: 100%; }
  .fchip { min-height: 38px; padding: 5px 12px; font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) { .fchip { transition: none; } }

/* ---------- 3. Specimen cards: one mount, small-caps name, italic Latin, grade pill ---------- */
.spec-card .mount .plate-mini, .spec-card .mount-img { aspect-ratio: 4 / 5; width: 100%; height: auto; object-fit: cover; }
.spec-card .card-t { font-family: var(--display); font-variant-caps: all-small-caps; letter-spacing: normal; font-size: 1.6rem; line-height: 1.08; }
.spec-card .latin { font: italic 400 1rem/1.3 var(--latin); color: var(--muted); }
.grade-pill { gap: .55em; padding: 3px 3px 3px 11px; border: 1px solid color-mix(in srgb, currentColor 40%, transparent); border-radius: 999px; font-size: 0.78rem; letter-spacing: normal; white-space: normal; line-height: 1.25; }
.grade-pill b { width: 1.95em; height: 1.95em; font-size: .86rem; }
.spec-card .card-meta { padding-top: 12px; }

/* ---------- 16. Two compact cards per row on phones (Ingredients and Recipes A–Z grids) ---------- */
@media (max-width: 599px) {
  body:not([data-section="home"]) .cards.cards-az { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 12px; }
  body:not([data-section="home"]) .cards.cards-az > :is(.herb-card, .recipe-card) { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
  body:not([data-section="home"]) .cards.cards-az .herb-card .mount { padding: 6px; }
  body:not([data-section="home"]) .cards.cards-az .herb-card .card-body { padding-top: 10px; gap: 4px; }
  body:not([data-section="home"]) .cards.cards-az :is(.herb-card, .recipe-card) .card-t { font-size: 1.08rem; line-height: 1.15; overflow-wrap: anywhere; hyphens: auto; }
  body:not([data-section="home"]) .cards.cards-az .spec-card .card-t { font-size: 1.22rem; }
  body:not([data-section="home"]) .cards.cards-az :is(.herb-card, .recipe-card) .card-d { display: none; }
  body:not([data-section="home"]) .cards.cards-az .latin { font-size: .86rem; overflow-wrap: anywhere; }
  body:not([data-section="home"]) .cards.cards-az .card-meta { padding-top: 6px; gap: 6px; }
  body:not([data-section="home"]) .cards.cards-az .grade-pill { font-size: 0.78rem; letter-spacing: normal; padding-left: 8px; }
  body:not([data-section="home"]) .cards.cards-az .recipe-card > .vis { width: 100%; height: auto; aspect-ratio: 4 / 3; margin: 0 0 8px; }
  body:not([data-section="home"]) .cards.cards-az .recipe-card .recipe-kind { font-size: 0.78rem; letter-spacing: normal; }
  body:not([data-section="home"]) .cards.cards-az .recipe-card .tag { font-size: 0.78rem; letter-spacing: normal; padding: .3em .5em; }
}

/* ---------- 8. Recipe pages: a paper card overlapping the hero photo ---------- */
.rc-media { display: block; min-width: 0; }
.rc-media > .vis { width: 100%; }
/* The photo credit moves to the top edge so the overlapping card never covers it. */
.rc-media > .vis .vis-credit { top: 0; bottom: auto; }
.rc-card { position: relative; z-index: 1; margin: -104px 22px 0; background: var(--paper); border: 1px solid var(--line); border-top: 2px solid var(--brass); box-shadow: var(--shadow); padding: 18px 22px 20px; }
.rc-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; margin: 0; }
.rc-facts > div { padding: 9px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.rc-facts .rc-wide { grid-column: 1 / -1; }
.rc-facts dt, .rc-k { font: 500 0.78rem/1.4 var(--ui); text-transform: uppercase; letter-spacing: normal; color: var(--brass-strong); margin: 0 0 4px; }
.rc-facts dd { margin: 0; font: 400 1.08rem/1.3 var(--display); overflow-wrap: break-word; }
.rc-facts .rc-wide dd { font: 400 .92rem/1.5 var(--body); color: var(--muted); }
.rc-num { font-variant-numeric: lining-nums; }
.rc-need { padding-top: 12px; }
.rc-need ul { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; font-size: .95rem; line-height: 1.6; }
.rc-need li:not(:last-child)::after { content: "·"; margin: 0 .5em; color: var(--brass); }
.rc-link { font: 500 0.806rem var(--ui); text-transform: uppercase; letter-spacing: normal; color: var(--brass-strong); }
.rc-link::after { content: " ↓"; }
.rc-for { padding-top: 12px; margin-top: 10px; border-top: 1px solid var(--line); }
.rc-for .chips { margin: 0; }
@media (max-width: 760px) {
  .rc-card { margin: -40px 12px 0; padding: 16px 16px 18px; }
  .rc-facts { gap: 0 14px; }
}
@media print { .rc-card { margin: 12px 0 0; box-shadow: none; } }
/* Small seals (inline grades, pills): no inner rule, which would crowd the letter at this size. */
:is(.ev-g, .grade-pill b, .grade-steps-key .grade b) { --seal-in: 10%; }
:is(.ev-g, .grade-pill b, .grade-steps-key .grade b)::after { border-color: transparent; background: color-mix(in srgb, currentColor 16%, transparent); }
