/*
Theme Name: Journal Purvival
Description: Le design de purvival.com/journal, dans le style de la boutique : Poppins, encre sur crème, bandes menthe et pêche, cartes blanches. Utilise les fonctions PHP de Détox Journal (thème parent), mais ni ses gabarits ni ses styles.
Template: detox-journal
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: purvival-journal
License: GPL-2.0-or-later
*/

/* ---------- Fonts (self-hosted, SIL OFL: see assets/fonts) ---------- */
@font-face { font-family: "Poppins"; src: url("assets/fonts/poppins-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; src: url("assets/fonts/poppins-latin-500.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; src: url("assets/fonts/poppins-latin-600.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Tokens (from purvival.com's :root) ---------- */
:root {
	--cream: #fffaf6;
	--mint: #eff9f1;
	--peach: #ffe0da;
	--card: #ffffff;
	--ink: #28262d;
	--ink-2: rgba(40, 38, 45, .75);
	--ink-3: rgba(40, 38, 45, .55);
	--line: rgba(40, 38, 45, .1);
	--btn: #2e2a39;
	--gold: #b48a3c;
	--green: #3f7d5a;
	--tc: var(--green);
	--tc-soft: #e3f1e8;

	--f-text: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
	--f-label: "Poppins", system-ui, sans-serif; /* labels: Poppins semibold (Gruppo was too thin to read) */
	--label: #7d5f24; /* darker gold for small text: 5:1 on cream, 4.6:1 on peach */

	--wrap: 1180px;
	--text: 700px;
	--gutter: clamp(16px, 4vw, 40px);
	--r: 1.2rem;
	--r-btn: 11px;
	--shadow: 1rem 1rem 3.5rem rgba(40, 38, 45, .05), 0 1px 2px rgba(40, 38, 45, .04);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 120px; }
/* overflow-x: clip, not hidden: hidden turns body into a scroll container and the sticky header stops sticking. */
body { margin: 0; background: var(--cream); color: var(--ink-2); font: 400 16px/1.7 var(--f-text); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--f-text); font-weight: 500; line-height: 1.15; letter-spacing: -.01em; color: var(--ink); margin: 0; overflow-wrap: anywhere; }
p { margin: 0 0 1em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { clip: auto; width: auto; height: auto; z-index: 1000; top: 8px; left: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-text { max-width: calc(var(--text) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-wide { max-width: calc(980px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* Small uppercase labels: Poppins semibold, darker gold. */
.label { font: 600 12.5px/1.2 var(--f-label); letter-spacing: .08em; text-transform: uppercase; color: var(--label); margin: 0 0 10px; }

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: var(--r-btn); border: 1px solid var(--btn);
	background: var(--btn); color: #fff; font: 500 15px/1.2 var(--f-text); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, color .15s;
}
.btn:hover { transform: translateY(-1px); background: #3d3849; border-color: #3d3849; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--btn); color: #fff; }
.btn--small { padding: 9px 16px; font-size: 14px; }
.link { font-weight: 500; color: var(--ink); text-decoration: none; border-bottom: 1.5px solid var(--gold); }

.pill {
	display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--tc-soft); color: var(--tc);
	font: 500 12px/1.2 var(--f-text); letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
}
a.pill:hover { background: var(--tc); color: #fff; }
.pill--neutral { background: var(--mint); color: var(--green); }
.meta { margin: 0; color: var(--ink-3); font-size: 13.5px; }

.section-title { margin-bottom: 28px; }
.section-title h2 { font-size: clamp(26px, 3.2vw, 36px); }
.section-title .label { margin-bottom: 8px; }

/* ---------- Header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(255, 250, 246, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.admin-bar .site-head { top: 32px; }
.site-head__in { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand__shop { display: block; flex: none; }
.brand__shop img { width: 150px; height: auto; }
.brand__journal { position: relative; padding-left: 14px; font: 500 20px/1 var(--f-text); color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand__journal::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 28px; margin-top: -14px; background: var(--line); }
.site-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.site-tools__link { font: 500 15px/1 var(--f-text); color: var(--ink); text-decoration: none; padding: 8px 10px; border-radius: 8px; }
.site-tools__link:hover { background: var(--mint); }
.round-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.round-btn:hover, .round-btn[aria-expanded="true"] { border-color: var(--ink); }
.round-btn svg { width: 18px; height: 18px; }

/* Pillars: a row that scrolls sideways on narrow screens, wraps on wide ones. */
.site-nav { border-top: 1px solid var(--line); }
.site-nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 6px 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.site-nav ul::-webkit-scrollbar { display: none; }
.site-nav li { flex: none; scroll-snap-align: start; }
.site-nav a { display: block; padding: 7px 12px; border-radius: 999px; font: 500 14px/1.2 var(--f-text); text-decoration: none; color: var(--ink-2); white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current] { background: var(--tc-soft); color: var(--tc); }
.site-nav__ingredients a { color: var(--ink); --tc: var(--green); --tc-soft: var(--mint); }
.site-nav__shop { display: none; }
.site-nav__shop a { color: var(--ink); font-weight: 500; --tc: var(--ink); --tc-soft: var(--peach); }

.search-panel { display: none; border-top: 1px solid var(--line); background: var(--card); }
.search-panel.is-open { display: block; }
.search-panel .wrap { padding-top: 18px; padding-bottom: 18px; }
.search-form { display: flex; gap: 8px; max-width: 640px; margin: 0 auto; }
.search-form input[type="search"] { flex: 1; min-width: 0; height: 50px; padding: 0 18px; border-radius: var(--r-btn); border: 1px solid rgba(40, 38, 45, .15); background: var(--cream); font: 400 16px var(--f-text); color: var(--ink); -webkit-appearance: none; appearance: none; }
.search-form input[type="search"]:focus { border-color: var(--ink); outline: none; }
.search-form .btn { height: 50px; }

/* Typeahead results (filled by blog-writer.php's script: a list of articles, ingredients and products). */
.pv-typeahead { max-width: 640px; margin: 0 auto; }
.pv-typeahead:empty { display: none; }
.pv-typeahead ul { list-style: none; margin: 10px 0 0; padding: 6px 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-btn); box-shadow: var(--shadow); }
.pv-typeahead li { margin: 0; }
.pv-typeahead a { display: flex; align-items: center; gap: 12px; padding: 10px 16px; color: var(--ink); text-decoration: none; }
.pv-typeahead a:hover, .pv-typeahead a:focus, .pv-typeahead li[aria-selected="true"] a { background: var(--mint); }
.pv-typeahead .pv-typeahead__kind, .pv-typeahead small { flex: none; min-width: 80px; font: 600 11px/1.4 var(--f-label); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.pv-typeahead .pv-typeahead__kind--produit, .pv-typeahead .is-produit small { color: var(--label); }
.pv-typeahead .pv-typeahead__kind--ingredient, .pv-typeahead .is-ingredient small { color: var(--green); }
.pv-typeahead .pv-typeahead__meta { margin-left: auto; font-size: 13px; color: var(--ink-3); }
.pv-typeahead .pv-typeahead__empty { padding: 12px 16px; color: var(--ink-3); font-size: 14px; }

/* ---------- Hero ---------- */
.hero { background: var(--mint); padding: clamp(40px, 7vw, 80px) 0 clamp(36px, 6vw, 64px); }
.hero__in { max-width: 860px; }
.hero h1 { font-size: clamp(34px, 5.6vw, 60px); line-height: 1.08; margin-bottom: 22px; }
.hero__lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--ink-2); max-width: 40em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }

/* ---------- Latest article (feature) ---------- */
.week { margin-top: clamp(-28px, -3vw, -40px); margin-bottom: clamp(48px, 7vw, 80px); position: relative; }
.feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: var(--card); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.feature__img { display: block; min-height: 320px; background: var(--tc-soft); }
.feature__img img { width: 100%; height: 100%; object-fit: cover; }
.feature__body { padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px; }
.feature__label { margin: 0; }
.feature__title { font-size: clamp(24px, 3vw, 36px); }
.feature__title a, .card__title a { text-decoration: none; }
.feature__title a:hover, .card__title a:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; text-decoration-color: var(--tc); }
.feature__excerpt { color: var(--ink-2); margin: 0; font-size: 16px; }
.noimg { display: flex; width: 100%; height: 100%; min-height: inherit; align-items: center; justify-content: center; font: 500 96px/1 var(--f-text); color: var(--tc); opacity: .6; }

/* ---------- Pillar tiles ---------- */
.pillars { padding: clamp(48px, 7vw, 80px) 0; }
.pillars__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile {
	position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 160px; padding: 22px 22px 20px; border-radius: var(--r);
	background: var(--card); border: 1px solid var(--line); text-decoration: none; overflow: hidden; transition: transform .2s, box-shadow .2s;
}
.tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--tc); }
.tile::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: var(--tc-soft); transition: transform .3s; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tile:hover::after { transform: scale(1.25); }
.tile > * { position: relative; z-index: 1; }
.tile__name { font: 500 20px/1.2 var(--f-text); color: var(--ink); }
.tile__desc { color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.tile__count { margin-top: auto; padding-top: 8px; font: 600 12px/1 var(--f-label); letter-spacing: .08em; text-transform: uppercase; color: var(--tc); }

/* ---------- Cards ---------- */
.journal { padding-top: clamp(8px, 2vw, 16px); padding-bottom: clamp(48px, 7vw, 80px); }
.cards { display: grid; gap: 24px; }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card__img { display: block; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--tc-soft); box-shadow: var(--shadow); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card__img img { transform: scale(1.04); }
.card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.card__title { font-size: 19px; line-height: 1.3; }
.card__excerpt { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.card--ingredient .card__body { padding: 20px; background: var(--card); border-radius: var(--r); border: 1px solid var(--line); width: 100%; }
.journal__more { text-align: center; margin: 36px 0 0; }
.empty { padding: 40px 0; text-align: center; font: 500 20px/1.4 var(--f-text); color: var(--ink-2); }

/* ---------- Bands ---------- */
.band { padding: clamp(40px, 6vw, 64px) 0; }
.band--peach { background: var(--peach); }
.band--mint { background: var(--mint); }
.band__in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(20px, 4vw, 48px); align-items: center; }
.band h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 10px; }
.band p { max-width: 44em; }
.band__action { margin: 0; }

.promise { padding: clamp(48px, 7vw, 80px) 0; }
.promise__in { max-width: 860px; background: var(--card); border-radius: var(--r); padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow); }
.promise h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 16px; }
.promise ul { list-style: none; margin: 0 0 18px; padding: 0; }
.promise li { position: relative; padding-left: 28px; margin-bottom: 10px; color: var(--ink-2); }
.promise li::before { content: ""; position: absolute; left: 0; top: 9px; width: 14px; height: 8px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.promise strong { color: var(--ink); font-weight: 500; }

/* ---------- Lists (pillars, search, ingredients) and pages ---------- */
.list-head { padding: clamp(40px, 7vw, 72px) 0 clamp(24px, 4vw, 40px); text-align: center; background: linear-gradient(180deg, var(--tc-soft), var(--cream)); margin-bottom: clamp(24px, 4vw, 40px); }
.list-head__label { margin: 0 0 6px; }
.list-head h1 { font-size: clamp(30px, 5vw, 52px); }
.list-head__intro { margin: 14px auto 0; max-width: 38em; color: var(--ink-2); font-size: 17px; }
.list-head .search-form, .list-head .az-filter { margin-top: 24px; }
.page-body { padding-bottom: 72px; }
.navigation.pagination { margin-top: 36px; }
.nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.page-numbers { display: inline-flex; min-width: 44px; height: 44px; padding: 0 14px; align-items: center; justify-content: center; border-radius: var(--r-btn); border: 1px solid var(--line); background: var(--card); text-decoration: none; font-weight: 500; color: var(--ink); }
.page-numbers.current { background: var(--btn); color: #fff; border-color: var(--btn); }
a.page-numbers:hover { border-color: var(--ink); }

/* ---------- Article ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--tc, var(--green)); z-index: 100; }
.article__head { padding-top: clamp(32px, 6vw, 64px); text-align: center; }
.article__head h1 { font-size: clamp(28px, 4.6vw, 48px); line-height: 1.15; margin: 16px 0 16px; }
.article__lead { font-size: clamp(17px, 1.7vw, 20px); color: var(--ink-2); line-height: 1.55; }
.byline { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 18px 0 0; color: var(--ink-3); font-size: 14px; }
.byline__author { font-weight: 500; color: var(--ink); }
.article__cover { margin: clamp(24px, 4vw, 40px) auto clamp(24px, 4vw, 44px); }
.article__cover img { width: 100%; border-radius: var(--r); box-shadow: var(--shadow); }
.article__cover figcaption { margin-top: 10px; text-align: center; font-size: 13px; color: var(--ink-3); }

.prose { font-size: 17px; line-height: 1.75; color: var(--ink-2); }
.article__head + .wrap-text > .prose { padding-top: clamp(24px, 4vw, 40px); }
.prose p, .prose ul, .prose ol, .prose figure, .prose details, .prose blockquote, .prose .table-wrap { margin: 0 0 1.15em; }
.prose h2 { font-size: clamp(23px, 2.8vw, 30px); margin: 1.6em 0 .5em; }
.prose h3 { font-size: 19px; font-weight: 500; margin: 1.5em 0 .5em; }
.prose h4 { font-size: 17px; font-weight: 600; margin: 1.4em 0 .4em; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--tc); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose a:hover { background: var(--tc-soft); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--tc); font-weight: 600; }
.prose strong { font-weight: 600; color: var(--ink); }
.prose blockquote { margin-left: 0; margin-right: 0; padding: 18px 22px; background: var(--mint); border-left: 4px solid var(--green); border-radius: 0 var(--r-btn) var(--r-btn) 0; color: var(--ink); }
.prose blockquote p:last-child { margin: 0; }
.prose img { border-radius: var(--r-btn); }
.prose figure img { margin: 0 auto; }
.prose figcaption { font-size: 13px; color: var(--ink-3); text-align: center; margin-top: 8px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose .table-wrap { overflow-x: auto; border-radius: var(--r-btn); border: 1px solid var(--line); background: var(--card); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 480px; margin: 0; }
.prose table:not(:has(td + td, th + th)) { min-width: 0; } /* one-column tables (« Points clés » boxes from the old blog) wrap like text */
.prose th { background: var(--tc-soft); color: var(--ink); text-align: left; padding: 10px 14px; font-weight: 500; }
.prose td { padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.prose pre { overflow-x: auto; }
.prose iframe, .prose video { max-width: 100%; }
.prose .bw-sources, .prose .dj-sources { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.prose .bw-sources a { text-decoration-thickness: 1px; }
.prose .bw-faq details, .prose details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-btn); padding: 12px 18px; }
.prose details summary { cursor: pointer; font-weight: 500; color: var(--ink); }
.toc { background: var(--card); border-radius: var(--r-btn); border: 1px solid var(--line); padding: 14px 20px; font-size: 15px; }
.toc summary { cursor: pointer; font: 500 15px/1.4 var(--f-text); color: var(--ink); }
.toc ol { margin: 10px 0 0; padding-left: 1.2em; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.partner-note { padding: 14px 18px; background: var(--mint); border-radius: var(--r-btn); font-size: 14.5px; color: var(--ink-2); }

/* What blog-writer.php adds under an article's text (appended to the_content, so inside .prose, or on pv_after_article):
   the product card (aside.bw-product-card), « Pour aller plus loin » (section.bw-related: chips p.bw-ingredient-links > a.bw-chip,
   then ul.bw-related__list > li > a > img + span). The same card is printed by pv_product_card() on the ingredient pages. */
.bw-product-card { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 20px; margin: 32px 0 0; padding: 20px; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); border: 1px solid var(--line); font-size: 15px; line-height: 1.55; }
.bw-product-card__img { display: block; border-radius: var(--r-btn); overflow: hidden; background: var(--mint); align-self: start; }
.bw-product-card img, .prose .bw-product-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-btn); margin: 0; }
.bw-product-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.bw-product-card p, .prose .bw-product-card p { margin: 0; }
.bw-product-card__label { font: 600 12px/1.4 var(--f-label); letter-spacing: .08em; text-transform: uppercase; color: var(--label); }
.bw-product-card__name, .bw-product-card h3 { font: 500 20px/1.25 var(--f-text); color: var(--ink); }
.bw-product-card__name a, .bw-product-card h3 a, .prose .bw-product-card__name a { text-decoration: none; }
.bw-product-card__name a:hover, .prose .bw-product-card__name a:hover { text-decoration: underline; text-underline-offset: 4px; background: transparent; }
.bw-product-card__comp, .bw-product-card__composition { font-size: 14px; color: var(--ink-2); }
.bw-product-card__summary { color: var(--ink-2); }
.bw-product-card__price { font-weight: 500; color: var(--ink); }
.bw-product-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 6px; }
.bw-product-card .btn, .bw-product-card__btn, .prose .bw-product-card .btn { display: inline-flex; align-items: center; padding: 11px 20px; border-radius: var(--r-btn); background: var(--btn); color: #fff; font: 500 14px/1.2 var(--f-text); text-decoration: none; border: 1px solid var(--btn); }
.bw-product-card .btn:hover, .prose .bw-product-card .btn:hover { background: #3d3849; color: #fff; }
.bw-product-card__note, .bw-product-card__precautions { font-size: 12.5px; line-height: 1.5; color: var(--ink-3); margin-top: 6px; }
.bw-products { display: flex; flex-direction: column; gap: 16px; }
.bw-products .bw-product-card { margin: 0; }

.bw-related { margin: 36px 0 0; }
.bw-related h2, .prose .bw-related h2 { font-size: 22px; margin: 0 0 14px; }
.bw-related__list, .prose .bw-related__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bw-related__list li, .prose .bw-related__list li { margin: 0; padding: 0; min-width: 0; }
.bw-related__list a, .prose .bw-related__list a { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); font-weight: 500; font-size: 15px; line-height: 1.35; }
.bw-related__list a:hover, .prose .bw-related__list a:hover { background: var(--card); border-color: var(--ink); }
.bw-related__list img, .prose .bw-related__list img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-btn); margin: 0; }

.bw-ingredient-links, .prose .bw-ingredient-links { margin: 0 0 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bw-chip, .bw-ingredient-links a, .prose .bw-ingredient-links a { display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--mint); color: var(--green); font: 500 13.5px/1.2 var(--f-text); text-decoration: none; border: 1px solid transparent; }
.bw-chip:hover, .prose .bw-ingredient-links a:hover { border-color: var(--green); background: var(--mint); }

.careful { margin: 36px 0 0; padding: 16px 20px; border: 1px dashed rgba(40, 38, 45, .25); border-radius: var(--r-btn); font-size: 14.5px; color: var(--ink-2); }
.careful p { margin: 0; }
.careful strong { color: var(--ink); font-weight: 500; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 24px 0 0; padding-bottom: clamp(40px, 7vw, 72px); font-size: 14px; }
.share span { font-weight: 500; color: var(--ink); margin-right: 6px; }
.share a, .share button { padding: 8px 14px; border-radius: var(--r-btn); border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; font: 500 13.5px var(--f-text); cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--ink); }
.copy-link.copied { background: var(--green); color: #fff; border-color: var(--green); }

.related { padding: clamp(40px, 7vw, 72px) 0; background: var(--mint); }

/* ---------- Ingredient pages ---------- */
.ingredient__names { margin: -6px 0 14px; color: var(--ink-2); font-size: 16px; }
.ingredient__latin { font-style: italic; }
.ingredient__subtitle { color: var(--ink-2); }
.ingredient__synonyms { color: var(--ink-3); }
.precautions { margin-top: 40px; padding: clamp(18px, 3vw, 26px); border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.precautions h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 0 0 12px; }
.precautions__list { margin: 0 0 14px; padding-left: 1.2em; font-size: 15.5px; }
.precautions__list li { margin: 4px 0; }
.precautions__table { margin: 0; display: grid; gap: 12px; }
.precautions__table div { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr); gap: 4px 16px; }
.precautions__table dt { font: 600 12.5px var(--f-label); letter-spacing: .06em; text-transform: uppercase; color: var(--label); padding-top: 3px; }
.precautions__table dd { margin: 0; font-size: 15px; line-height: 1.55; }
.precautions__source { margin: 12px 0 0; font-size: 13px; color: var(--ink-3); }
.precautions__source a { color: inherit; }
.precautions__note { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
@media (max-width: 560px) { .precautions__table div { grid-template-columns: 1fr; } }
.claims, .ingredient__products { margin-top: 40px; }
.claims h2, .ingredient__products h2 { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 10px; }
.claims__intro { font-size: 14.5px; color: var(--ink-3); }
.claims__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.claim { padding: 14px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-btn); border-left-width: 4px; }
.claim--ok { border-left-color: var(--green); }
.claim--pending { border-left-color: var(--gold); }
.claim__badge { display: inline-block; margin-bottom: 6px; font: 600 11px/1.4 var(--f-label); letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.claim--pending .claim__badge { color: var(--label); }
.claim__text { margin: 0; color: var(--ink); }
.claim__conditions { margin: 4px 0 0; font-size: 13.5px; color: var(--ink-3); }

.az-filter { max-width: 520px; margin-left: auto; margin-right: auto; }
.az-filter input { width: 100%; height: 50px; padding: 0 18px; border-radius: var(--r-btn); border: 1px solid rgba(40, 38, 45, .15); background: var(--card); font: 400 16px var(--f-text); color: var(--ink); -webkit-appearance: none; appearance: none; }
.az-filter input:focus { border-color: var(--ink); outline: none; }
.az { padding-bottom: clamp(48px, 7vw, 80px); }
.az__letters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; }
.az__letters a { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 8px; background: var(--card); border: 1px solid var(--line); text-decoration: none; font-weight: 500; font-size: 14px; }
.az__letters a:hover { border-color: var(--ink); }
.az__group { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.az__letter { font-size: 32px; font-weight: 500; color: var(--gold); line-height: 1; }
.az__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 24px; }
.az__list li { display: flex; flex-direction: column; min-width: 0; }
.az__list li.az__item--img { flex-direction: row; align-items: center; gap: 12px; }
.az__text { display: flex; flex-direction: column; min-width: 0; }
.az__thumb { flex: none; width: 96px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.az__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.az__list a { font-weight: 500; text-decoration: none; }
.az__list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.az__list em, .az__sub { font-size: 13px; color: var(--ink-3); }
/* The filter: a count under the box; while typing, only the matches (branded cards and plain names), no letters. */
.az-root [hidden], .az-status[hidden] { display: none !important; } /* the grid and flex rules below would otherwise keep hidden rows on screen */
.az-status { margin: 10px 0 0; font-size: 14px; color: var(--ink-3); min-height: 1.4em; }
.az-root.is-filtering .branded__intro, .az-root.is-filtering .az__letters, .az-root.is-filtering .az__letter { display: none; }
.az-root.is-filtering .az__group { display: block; padding: 0; border-top: 0; }
.az-root.is-filtering .az__group + .az__group { margin-top: 6px; }
.az-root.is-filtering .section-title { margin-bottom: 12px; }
.az-root.is-filtering .branded__list { margin-bottom: 24px; gap: 8px; }
.az-root.is-filtering .branded__item { flex-direction: row; align-items: center; gap: 12px; padding: 8px 12px; min-height: 0; }
.az-root.is-filtering .branded__logo { flex: none; width: 96px; height: 44px; margin: 0; padding: 4px 8px; }
.az-root.is-filtering .branded__desc, .az-root.is-filtering .section-title .label { display: none; }
.az-root.is-filtering .section-title h2 { font-size: 20px; }
.az__empty p { margin: 0 0 16px; }
.az__aka { display: none; font-size: 13px; color: var(--ink-3); }
.az-root.is-filtering .az__aka { display: block; } /* why « gin » found Eleuthérocoque: its other names */
.az__after { padding-bottom: clamp(48px, 7vw, 80px); }
.az__search { margin-top: 40px; padding: 24px; background: var(--card); border-radius: var(--r); border: 1px solid var(--line); }
.az__search .label { text-align: center; }

/* ---------- Footer ---------- */
.site-foot { background: var(--mint); color: var(--ink-2); padding: 56px 0 28px; margin-top: 0; border-top: 1px solid var(--line); } /* light, like the shop's footer */
.site-foot a { color: var(--ink); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-foot__top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.site-foot__logo img { width: 160px; margin-bottom: 14px; }
.site-foot__brand .label { color: var(--label); }
.site-foot__brand p { max-width: 34em; font-size: 14.5px; }
.site-foot h2 { font: 600 12px/1 var(--f-label); text-transform: uppercase; letter-spacing: .08em; color: var(--label); margin: 6px 0 14px; }
.site-foot h2 + ul + h2 { margin-top: 24px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 8px; font-size: 14.5px; }
.site-foot__legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(40, 38, 45, .12); display: flex; justify-content: space-between; gap: 24px; font-size: 12.5px; color: var(--ink-3); }
.site-foot__legal p { margin: 0; max-width: 60em; }
.social { display: flex; gap: 12px; margin-top: 16px; }
.social svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Responsive ---------- */
@media (min-width: 981px) {
	.site-nav ul { flex-wrap: wrap; justify-content: center; overflow: visible; }
}
@media (max-width: 980px) {
	.cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pillars__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.site-foot__top { grid-template-columns: 1fr 1fr; }
	.site-foot__brand { grid-column: 1 / -1; }
	.az__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
	.feature { grid-template-columns: 1fr; }
	.feature__img { min-height: 0; aspect-ratio: 16 / 9; }
	.cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bw-related ul, .bw-related ol, .bw-related__list, .bw-related .cards { grid-template-columns: 1fr; }
	.band__in { grid-template-columns: 1fr; }
	.site-tools__link { display: none; }
	.site-nav__shop { display: block; }
}
@media (max-width: 640px) {
	.site-head__in { min-height: 60px; gap: 10px; }
	.brand__shop img { width: 112px; }
	.brand__journal { font-size: 17px; padding-left: 10px; }
	.brand__journal::before { height: 22px; margin-top: -11px; }
	.site-tools__shop { display: none; }
	.site-nav ul { margin: 0 calc(-1 * var(--gutter)); padding: 6px var(--gutter); }
	.hero h1 { font-size: 30px; }
	.pillars__grid { gap: 10px; }
	.tile { min-height: 0; padding: 16px 16px 14px 18px; }
	.tile__name { font-size: 16px; }
	.tile__desc { display: none; }
	.cards { gap: 18px; }
	.cards--3, .cards--4 { grid-template-columns: 1fr; }
	.card { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 14px; align-items: start; }
	.card__img { aspect-ratio: 1; border-radius: 12px; }
	.card__title { font-size: 17px; }
	.card__excerpt { display: none; }
	.card__body { gap: 6px; }
	.card--ingredient { grid-template-columns: 1fr; }
	.prose { font-size: 16.5px; }
	.bw-product-card { grid-template-columns: 1fr; }
	.bw-product-card img { max-width: 220px; margin: 0 auto; }
	.search-form { flex-direction: column; }
	.share { gap: 6px; }
	.az__group { grid-template-columns: 1fr; gap: 8px; }
	.az__list { grid-template-columns: 1fr; }
	.site-foot__legal { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- The shop's shell (announcement, main menu, account and cart: read from purvival.com) ---------- */
.announcement { background: var(--mint); color: var(--ink); font: 500 13px/1.4 var(--f-text); text-align: center; padding: 8px 0; }
.site-head--shop .site-head__in { flex-wrap: wrap; min-height: 76px; row-gap: 0; }
.site-head--shop .brand__shop img { width: 170px; }
.shop-nav { flex: 1 1 auto; min-width: 0; }
.shop-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 4px; }
.shop-nav li { position: relative; }
.shop-nav a { display: block; padding: 10px 14px; font: 500 15px/1.2 var(--f-text); color: var(--ink); text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.shop-nav a:hover { border-bottom-color: var(--line); }
.shop-nav a[aria-current] { border-bottom-color: var(--ink); }
.shop-nav__sub { position: absolute; left: 0; top: 100%; min-width: 220px; list-style: none; margin: 0; padding: 8px 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-btn); box-shadow: var(--shadow); display: none; z-index: 60; }
.shop-nav li.has-sub:hover > .shop-nav__sub, .shop-nav li.has-sub:focus-within > .shop-nav__sub { display: block; }
.shop-nav__sub a { border: 0; padding: 8px 16px; font-weight: 400; }
.cart-link { position: relative; }
.cart-link__count { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--ink); color: #fff; font: 600 11px/18px var(--f-text); text-align: center; }
.site-nav__home a { font-weight: 600; }

/* Ingredient page: « En bref » and the claims grouped by function */
.brief { margin: 18px 0 6px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.brief .label { margin-bottom: 8px; }
.brief__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.chip { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--mint); color: var(--ink); font: 500 13.5px/1.2 var(--f-text); text-decoration: none; }
.chip:hover { background: var(--peach); }
.brief__note { margin: 0; font-size: 13.5px; color: var(--ink-3); }
.usages { margin-top: 40px; }
.usages h2 { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 10px; }
.usages__intro { font-size: 15px; color: var(--ink-2); }
.usages__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.usage { padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.usage__title { margin: 0; font-size: 17px; font-weight: 600; }
.usage__badge { margin: 0; font: 600 11px/1.4 var(--f-label); letter-spacing: .08em; text-transform: uppercase; }
.usage__badge--ok { color: var(--green); }
.usage__badge--pending { color: var(--label); }
.usage__claim { margin: 4px 0 0; color: var(--ink); font-size: 16px; }
.usage__conditions { margin: 0; font-size: 13px; color: var(--ink-3); }
.usage__more { margin-top: 6px; font-size: 14px; }
.usage__more summary { cursor: pointer; color: var(--ink-2); font-weight: 500; }
.usage__more ul { margin: 8px 0 0; padding-left: 18px; color: var(--ink-2); }
.usage__more li { margin-bottom: 6px; }
.usage__more li.is-ok::after { content: " (reconnu)"; color: var(--green); font-size: 12px; }
/* Narrow screens: the shop menu goes behind a ☰ button (a <details>, no script), the shop's sub-menus listed under
   their item; the journal row stays visible and fits a 375 px phone. */
.menu-mobile { display: none; }
.menu-mobile > summary { list-style: none; }
.menu-mobile > summary::-webkit-details-marker { display: none; }
.menu-mobile__panel { position: absolute; left: 0; right: 0; top: 100%; z-index: 70; max-height: calc(100vh - 140px); overflow-y: auto; background: var(--card); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px var(--gutter) 16px; }
.menu-mobile__panel ul { list-style: none; margin: 0; padding: 0; }
.menu-mobile__panel > ul > li { border-bottom: 1px solid var(--line); }
.menu-mobile__panel > ul > li:last-child { border-bottom: 0; }
.menu-mobile__panel a { display: block; padding: 14px 4px; font: 500 16px/1.3 var(--f-text); color: var(--ink); text-decoration: none; }
.menu-mobile__panel a[aria-current] { font-weight: 600; }
.menu-mobile__panel .shop-nav__sub { position: static; display: block; min-width: 0; padding: 0 0 8px 14px; background: none; border: 0; box-shadow: none; }
.menu-mobile__panel .shop-nav__sub a { padding: 9px 4px; font: 400 15px/1.3 var(--f-text); color: var(--ink-2); }
@media (max-width: 980px) {
	.shop-nav { display: none; }
	.menu-mobile { display: block; }
	.site-head--shop .site-head__in { flex-wrap: nowrap; min-height: 64px; gap: 10px; }
	.site-head--shop .brand__shop img { width: 130px; }
	.site-tools { gap: 8px; }
}
@media (max-width: 640px) {
	.site-head--shop .brand__shop img { width: 112px; }
	.round-btn { width: 38px; height: 38px; }
	.announcement { font-size: 12px; padding: 6px 0; }
}
@media (max-width: 360px) {
	.site-head--shop .brand__shop img { width: 96px; }
	.site-tools .round-btn:first-child { display: none; } /* the account link: still in the ☰ menu's shop pages */
}
@media (max-width: 640px) {
	.usages__grid { grid-template-columns: 1fr; }
	.site-foot__top { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 981px) {
	.site-foot__top { grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, 1fr)); gap: 32px; }
}

/* Journal row: Journal · Thèmes (a drop-down with the pillars) · Ingrédients · Tous les articles */
.site-nav ul { justify-content: flex-start; }
.themes { position: relative; }
.themes summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font: 500 14px/1.2 var(--f-text); color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.themes summary::-webkit-details-marker { display: none; }
.themes summary:hover, .themes[open] summary { background: var(--mint); color: var(--ink); }
.themes summary.is-on { background: var(--tc-soft); color: var(--tc); }
.themes__list { position: absolute; left: 0; top: calc(100% + 6px); z-index: 60; min-width: 260px; list-style: none; margin: 0; padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); display: grid; gap: 2px; }
.themes__list a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font: 500 14px/1.2 var(--f-text); color: var(--ink); text-decoration: none; white-space: normal; }
.themes__list a:hover, .themes__list a[aria-current] { background: var(--tc-soft); color: var(--tc); }
.themes__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--tc); flex: none; }
/* The row's own `.site-nav ul` rules (flex, sideways scroll) must not reach the drop-down's list. */
.site-nav .themes__list { display: grid; gap: 2px; overflow: visible; flex-wrap: nowrap; justify-content: normal; margin: 0; padding: 8px; scroll-snap-type: none; }
.site-nav .themes__list li { scroll-snap-align: none; }
@media (max-width: 640px) {
	.site-nav .themes__list { position: fixed; left: var(--gutter); right: var(--gutter); top: auto; min-width: 0; max-height: 70vh; overflow-y: auto; }
}

/* Less text: tiles and cards keep one size whatever their title and description */
.tile__desc { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile__name { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__title { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Branded ingredients, apart from the base ones */
.branded { padding-top: 8px; }
.branded__intro { max-width: 60ch; color: var(--ink-2); margin: 0 0 16px; }
.branded__list { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.branded__item { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); min-height: 86px; }
.branded__item:hover { border-color: var(--ink); }
.branded__name { font-weight: 600; }
.branded__desc { font-size: 13.5px; color: var(--ink-3); }
/* Brand logos, as the supplier gives them: on white (most come on white), on ink for a white logo. */
.brand-logo { display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.brand-logo--dark { background: var(--ink); border-color: var(--ink); }
.brand-logo img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.ingredient__logo { display: flex; width: fit-content; height: 76px; max-width: min(260px, 70vw); margin: 20px auto 4px; }
.bw-product-card__via { margin: 2px 0 6px; font-size: 13.5px; color: var(--ink-2); }
.bw-product-card__check { margin: 2px 0 6px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.bw-product-card__check--ok::before, .bw-product-card__check--partial::before { content: "✓ "; color: var(--green); font-weight: 600; }
.brand-logo--text { font: 600 19px/1.1 var(--f-text); letter-spacing: -.01em; color: var(--ink); background: var(--mint); border-color: transparent; container-type: inline-size; overflow: hidden; }
.brand-logo--text > span { font-size: min(19px, 11cqw); white-space: nowrap; } /* the trade name fits its frame, from the card to the compact filter row */
.branded__logo { height: 64px; width: 100%; margin-bottom: 10px; padding: 8px 14px; box-sizing: border-box; }
.usages h2, .ingredient__products h2 { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 14px; }
@media (max-width: 760px) { .branded__list { grid-template-columns: 1fr; } }

.bw-product-card__dose { margin: 2px 0 6px; font-weight: 600; color: var(--ink); font-size: 14.5px; }
.bw-product-card__precautions { margin-top: 10px; font-size: 13.5px; color: var(--ink-2); }
.bw-product-card__precautions summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.bw-product-card__precautions p { margin: 6px 0 0; }
.prose .mention { margin-top: 18px; font-size: 13px; line-height: 1.5; color: var(--ink-3); } /* trademark lines the suppliers require */
.studies { margin-top: 40px; }
.studies h2 { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 14px; }
.studies__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.study { padding: 14px 18px; border-radius: var(--r-btn); background: var(--card); border: 1px solid var(--line); }
.study__result { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--ink); }
.study__facts { margin: 6px 0 0; font: 600 12px var(--f-label); letter-spacing: .04em; text-transform: uppercase; color: var(--label); }
.study__cite { margin: 6px 0 0; font-size: 13px; color: var(--ink-3); }
.study__cite a { color: inherit; }
.ingredient__mention { margin: 28px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }
.usage__dose { margin: auto 0 0; padding-top: 10px; font-size: 14px; line-height: 1.45; color: var(--ink); }
.usage__dose-label { display: inline-block; margin-right: 6px; padding: 2px 8px; border-radius: 999px; background: var(--mint); color: var(--green); font: 600 11px/1.6 var(--f-label); letter-spacing: .06em; text-transform: uppercase; vertical-align: 1px; }
.usage__cond { margin: 8px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-3); }
.article.ingredient { padding-bottom: clamp(48px, 8vw, 96px); } /* the page ends on the product cards: room before the footer or the related articles */
.ingredient__mention a, .bw-mentions a { color: inherit; }
.bw-mentions { margin: 24px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }
.bw-mentions span + span::before { content: " · "; }

/* The journal row on a phone: its four entries fit the width, no sideways scroll (after the row's own rules above). */
@media (max-width: 640px) {
	.site-nav .wrap > ul { gap: 0; justify-content: space-between; padding-left: 8px; padding-right: 8px; }
	.site-nav a, .themes summary { padding: 7px 5px; font-size: 13px; }
	.themes summary { gap: 3px; }
}
@media (max-width: 360px) {
	.site-nav a, .themes summary { padding: 7px 5px; font-size: 12.5px; }
}
/* On a pillar the drop-down shows the pillar's name; on a phone it keeps « Thèmes » (in the pillar's colour) so the row fits. */
.themes__label { display: none; }
@media (max-width: 640px) {
	.themes__current { display: none; }
	.themes__label { display: inline; }
	.search-form input[type="search"] { flex: none; }
}
