/* BOA Food: Le Mag front end (listing, category and article pages).
   Built from the approved mockup (design/le-mag/style.css); tokens come from the live Elementor kit.
   Everything is scoped to main.boa-mag so nothing leaks into the rest of the site. The site's
   Elementor header and footer are untouched. Mobile breakpoint 767px = Elementor's. */

.boa-mag {
  --ink: #2b2b2b;
  --red: #E53935;
  --text: #7A7A7A;
  --green: #2F4737;
  --gold: #C59956;
  --cream: #FFFCF6;
  --peach: #FFF9F5;
  --peach-2: #FFF0E4;
  --sage: #EFF1EF;
  --pill: #FEF4E3;
  --line: #E3E3E3;
  display: block;
  background: #fff;
  color: var(--ink);
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
.boa-mag *, .boa-mag *::before, .boa-mag *::after { box-sizing: border-box; }
.boa-mag :where(h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote, dl, dd) { margin: 0; padding: 0; }
.boa-mag :where(ul, ol) { list-style: none; }
.boa-mag :where(h1, h2, h3, h4, h5, h6) { font-family: "Poppins", sans-serif; color: #000; font-weight: 600; line-height: 1.3; }
.boa-mag img { display: block; max-width: 100%; height: auto; border: 0; }
/* Link reset: one plain selector on purpose. With no :hover/:focus/:visited weight here, every
   component colour (.btn, .vcard, .link-more, ...) wins in every state, a visited link included
   (a weighted a:visited turned the white text on red/green buttons dark). front.css prints after
   the theme's reset.css (enqueued at priority 20), so this still beats its a:hover colour. */
.boa-mag a { color: inherit; text-decoration: none; }
.boa-mag button, .boa-mag button:hover, .boa-mag button:focus { font: inherit; background: none; border: 0; color: inherit; padding: 0; margin: 0; border-radius: 0; cursor: pointer; text-transform: none; box-shadow: none; }
.boa-mag :focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.boa-mag .bg-green :focus-visible, .boa-mag .side-cta :focus-visible { outline-color: #fff; } /* green ring would vanish on green */
.boa-mag .screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal; }
.boa-mag .ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; display: inline-block; vertical-align: middle; }
.boa-mag .container { width: 100%; max-width: 1170px; margin: 0 auto; padding: 0 15px; }

/* ---------- Preview banner (team only) ---------- */
.boa-mag .boa-preview { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 16px; background: #FFF4D6; border-bottom: 1px solid #F0D58A; color: #5C4400; font-size: 14px; line-height: 1.4; text-align: left; }
.boa-mag .boa-preview .ic { width: 18px; height: 18px; }
.boa-mag .boa-preview a { text-decoration: underline; font-weight: 600; }

/* ---------- Type ---------- */
.boa-mag .eyebrow { font: 600 22px/1.4 "Poppins", sans-serif; color: var(--gold); }
.boa-mag .h1 { font: 700 56px/1.15 "Poppins", sans-serif; color: #000; letter-spacing: -0.5px; }
.boa-mag .h2 { font: 600 48px/1.05 "Poppins", sans-serif; color: #000; }
.boa-mag .lead { font: 400 18px/27px "Poppins", sans-serif; color: var(--text); }
.boa-mag .sec-head { margin-bottom: 44px; }
.boa-mag .sec-head.center { text-align: center; max-width: 900px; margin-left: auto; margin-right: auto; }
.boa-mag .sec-head .h2 { margin-top: 12px; }
.boa-mag .sec-head .lead { margin-top: 18px; }
.boa-mag .sec-head.split { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.boa-mag .link-more { display: inline-flex; align-items: center; gap: 8px; font: 600 15px/1 "Poppins", sans-serif; color: var(--green); white-space: nowrap; }
.boa-mag .link-more:hover { color: var(--red); }

/* ---------- Buttons ---------- */
.boa-mag .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 20px; font: 500 12px/1 "Poppins", sans-serif; padding: 14px 24px; color: #fff; background: var(--green); white-space: nowrap; transition: background-color .2s, transform .2s; }
.boa-mag .btn:hover, .boa-mag .btn:focus { color: #fff; background: #223428; }
.boa-mag .btn.red { background: var(--red); }
.boa-mag .btn.red:hover, .boa-mag .btn.red:focus { background: #C62828; }
.boa-mag .btn.lg { font-size: 15px; padding: 16px 28px; border-radius: 24px; }
.boa-mag .btn .ic { width: 16px; height: 16px; }
.boa-mag .btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Hero (same gradient family as the home hero) ---------- */
.boa-mag .hero { background: radial-gradient(ellipse 55% 85% at 12% 35%, #FBE2E2 0%, rgba(251, 226, 226, 0) 75%), linear-gradient(90deg, #FDF2F2 0%, #FAFAFA 52%, #ECEEEC 100%); }
.boa-mag .hero .container { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; padding-top: 80px; padding-bottom: 96px; }
.boa-mag .hero.no-media .container { grid-template-columns: minmax(0, 820px); }
.boa-mag .hero .h1 { margin: 14px 0 26px; }
/* Listing title: the Le Mag name, large and in the site green, then the headline (one <h1>) */
.boa-mag .mag-title { margin: 0 0 24px; font-weight: 400; color: #000; }
.boa-mag .hero .container > div:first-child { container-type: inline-size; }
/* As large as the column allows on one line (up to 64px): "Le Mag BOA Food" is about 8.5em wide in Poppins 800. */
.boa-mag .mag-name { display: block; font: 800 50px/1.05 "Poppins", sans-serif; font-size: min(64px, 11cqi); color: var(--green); letter-spacing: -1px; }
.boa-mag .mag-headline { display: block; margin-top: 16px; font: 600 32px/1.25 "Poppins", sans-serif; font-size: clamp(22px, 6.4cqi, 36px); color: #000; letter-spacing: -0.3px; }
.boa-mag .hero .lead { margin-bottom: 30px; max-width: 600px; }
.boa-mag .hero-media { position: relative; padding: 34px 0 34px 30px; }
.boa-mag .hero-media > img { width: 100%; height: 420px; object-fit: cover; border-radius: 24px; box-shadow: 0 25px 35px -15px rgba(229, 57, 53, .45); }
.boa-mag .chip { position: absolute; display: flex; align-items: center; gap: 12px; max-width: 80%; background: #fff; border: 2px solid var(--line); border-radius: 22px; padding: 9px 22px 9px 9px; box-shadow: 0 0 10px rgba(0, 0, 0, .12); }
.boa-mag .chip .ci { width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; flex: none; }
.boa-mag .chip .ci.red { background: var(--red); }
.boa-mag .chip small { display: block; font: 300 12px/1.4 "Poppins", sans-serif; color: var(--text); }
.boa-mag .chip b { display: block; font: 600 14px/1.4 "Poppins", sans-serif; color: #000; }
.boa-mag .chip.tl { top: 0; left: 0; }
.boa-mag .chip.br { bottom: 0; right: -10px; }
.boa-mag a.chip:hover b { color: var(--green); }

/* ---------- Category pills ---------- */
.boa-mag .cats-bar { background: #fff; padding: 34px 0; border-bottom: 1px solid #F0F0F0; }
.boa-mag .cats { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.boa-mag .cats .label { font: 600 14px/1 "Poppins", sans-serif; color: #000; margin-right: 6px; }
.boa-mag .cat { display: inline-flex; align-items: center; gap: 10px; background: var(--pill); border-radius: 24px; padding: 6px 20px 6px 6px; font: 600 14px/1 "Poppins", sans-serif; color: #000; white-space: nowrap; transition: background-color .2s; }
.boa-mag .cat:hover { background: #FBE7C8; color: #000; }
.boa-mag .cat .ci { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--c, var(--red)); flex: none; }
.boa-mag .cat .ci .ic { width: 16px; height: 16px; }
.boa-mag .cat .n { font-weight: 400; color: var(--text); font-size: 13px; }
.boa-mag .cat.on, .boa-mag .cat.on:hover { background: var(--green); color: #fff; }
.boa-mag .cat.on .ci { background: #fff; color: var(--green); }
.boa-mag .cat.on .n { color: rgba(255, 255, 255, .75); }

/* ---------- Listing: article filters (same pills, on the peach section) ---------- */
.boa-mag .mag-articles .sec-head { margin-bottom: 28px; }
.boa-mag .mag-filters { margin-bottom: 34px; }
.boa-mag .mag-filters .cat { background: #fff; box-shadow: inset 0 0 0 1px #F0E4D2; }
.boa-mag .mag-filters .cat:hover { background: #FBE7C8; }
.boa-mag .mag-filters .cat.on, .boa-mag .mag-filters .cat.on:hover { background: var(--green); box-shadow: none; }
.boa-mag .mag-articles .container { transition: opacity .15s; }
.boa-mag .mag-articles.is-loading .container { opacity: .5; }

/* ---------- Sections ---------- */
.boa-mag .section { padding: 100px 0; }
.boa-mag .bg-peach { background: var(--peach); }
.boa-mag .bg-peach-2 { background: var(--peach-2); }
.boa-mag .bg-sage { background: var(--sage); }
.boa-mag .bg-cream { background: var(--cream); }
.boa-mag .bg-green { background: var(--green); }

/* ---------- Tags, meta, placeholders ---------- */
.boa-mag .tag { display: inline-block; font: 600 12px/1 "Poppins", sans-serif; color: #fff; background: var(--c, var(--red)); border-radius: 20px; padding: 7px 13px; }
.boa-mag .meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font: 400 12px/1.2 "Poppins", sans-serif; color: var(--text); }
.boa-mag .meta > span { display: inline-flex; gap: 6px; align-items: center; }
.boa-mag .meta .ic { width: 14px; height: 14px; }
.boa-mag .ph { display: grid; place-items: center; width: 100%; height: 100%; min-height: 70px; background: #F4F1EC; background: color-mix(in srgb, var(--c, #2F4737) 12%, #fff); color: var(--c, var(--green)); }
.boa-mag .ph .ic { width: 34%; height: 34%; max-width: 56px; max-height: 56px; stroke-width: 1.5; }

/* ---------- Article cards ---------- */
.boa-mag .grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.boa-mag .card { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 15px; box-shadow: 0 0 10px rgba(0, 0, 0, .07); display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
.boa-mag .card:hover { box-shadow: 0 10px 28px rgba(0, 0, 0, .1); }
.boa-mag .thumb { position: relative; display: block; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 11; background: #eee; }
.boa-mag .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.boa-mag .card:hover .thumb img, .boa-mag .feature:hover .thumb img { transform: scale(1.04); }
.boa-mag .thumb .tag { position: absolute; top: 14px; left: 14px; z-index: 1; }
.boa-mag .card .body { padding: 18px 8px 6px; display: flex; flex-direction: column; flex: 1; }
.boa-mag .card h3 { font: 600 19px/1.38 "Poppins", sans-serif; color: #000; margin: 12px 0 10px; }
.boa-mag .card h3 a:hover, .boa-mag .feature h3 a:hover, .boa-mag .pfeature h3 a:hover { color: var(--green); }
.boa-mag .card p { font: 400 14px/1.65 "Poppins", sans-serif; color: var(--text); }
.boa-mag .facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.boa-mag .fact { display: inline-flex; align-items: center; gap: 6px; background: var(--pill); border-radius: 16px; padding: 6px 12px; font: 500 12px/1 "Poppins", sans-serif; color: #000; }
.boa-mag .fact .ic { width: 14px; height: 14px; color: var(--red); }
.boa-mag .more { margin-top: auto; padding-top: 18px; font: 600 14px/1 "Poppins", sans-serif; color: var(--green); display: inline-flex; gap: 8px; align-items: center; align-self: flex-start; }
.boa-mag .more:hover { color: var(--red); }
.boa-mag .more .ic { width: 16px; height: 16px; }

/* ---------- Featured (à la une) + most read ---------- */
.boa-mag .feature-row { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.boa-mag .feature-row.solo { grid-template-columns: minmax(0, 1fr); }
.boa-mag .feature { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 15px; box-shadow: 0 0 10px rgba(0, 0, 0, .1); display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.boa-mag .feature .thumb { aspect-ratio: auto; height: 100%; min-height: 420px; }
.boa-mag .feature .thumb img { position: absolute; inset: 0; object-position: 50% 60%; }
.boa-mag .feature .body { padding: 20px 16px 12px; display: flex; flex-direction: column; }
.boa-mag .feature h3 { font: 600 27px/1.28 "Poppins", sans-serif; color: #000; margin: 16px 0 14px; }
.boa-mag .feature p { font: 400 15px/1.7 "Poppins", sans-serif; color: var(--text); }
.boa-mag .author { display: flex; align-items: center; gap: 12px; margin: 22px 0 24px; }
.boa-mag .author img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); background: #fff; flex: none; }
.boa-mag .author b { display: block; font: 600 14px/1.3 "Poppins", sans-serif; color: #000; }
.boa-mag .author small { display: block; font: 400 12px/1.4 "Poppins", sans-serif; color: var(--text); }
.boa-mag .feature .btn { align-self: flex-start; margin-top: auto; }

.boa-mag .panel { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 26px 24px; box-shadow: 0 0 10px rgba(0, 0, 0, .07); }
.boa-mag .panel-title { display: flex; align-items: center; gap: 10px; font: 600 18px/1.3 "Poppins", sans-serif; color: #000; margin-bottom: 8px; }
.boa-mag .panel-title .ci { width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; flex: none; }
.boa-mag .panel-title .ci .ic { width: 16px; height: 16px; }
.boa-mag .rank li { display: flex; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid #EFEFEF; }
.boa-mag .rank li:last-child { border-bottom: 0; padding-bottom: 0; }
.boa-mag .num { width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: #fff; font: 600 16px/40px "Poppins", sans-serif; text-align: center; flex: none; }
.boa-mag .rank .t { flex: 1; min-width: 0; }
.boa-mag .rank small { display: block; font: 600 11px/1.3 "Poppins", sans-serif; color: var(--c, var(--red)); text-transform: uppercase; letter-spacing: .4px; }
.boa-mag .rank b { display: block; font: 600 14px/1.4 "Poppins", sans-serif; color: #000; margin-top: 4px; }
.boa-mag .rank a:hover b { color: var(--green); }
.boa-mag .rank .rimg { width: 70px; height: 70px; border-radius: 16px; overflow: hidden; flex: none; display: block; }
.boa-mag .rank .rimg img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Pagination (paginate_links) ---------- */
.boa-mag .pager { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 56px; }
.boa-mag .pager .page-numbers, .boa-mag .pager > a, .boa-mag .pager > span { min-width: 46px; height: 46px; border-radius: 23px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 500 15px/1 "Poppins", sans-serif; border: 1px solid var(--line); background: #fff; color: #000; padding: 0 16px; }
.boa-mag .pager a.page-numbers:hover { border-color: var(--green); color: var(--green); }
.boa-mag .pager .current, .boa-mag .pager > span.current { background: var(--green); color: #fff; border-color: var(--green); }
.boa-mag .pager .dots { border: 0; background: none; min-width: 20px; padding: 0; color: var(--text); }
.boa-mag .pager .next, .boa-mag .pager .prev { padding: 0 22px; }
.boa-mag .pager .ic { width: 16px; height: 16px; }

/* ---------- Videos (dark green, like "Comment ça fonctionne") ---------- */
.boa-mag .bg-green .h2 { color: #fff; }
.boa-mag .bg-green .lead { color: rgba(255, 255, 255, .78); }
.boa-mag .vcard { display: block; background: rgba(255, 255, 255, .06); border-radius: 28px; padding: 15px; color: #fff; transition: background-color .2s; }
.boa-mag .vcard:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.boa-mag .vthumb { position: relative; display: block; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 10; background: rgba(0, 0, 0, .2); }
.boa-mag .vthumb img { width: 100%; height: 100%; object-fit: cover; }
.boa-mag .vthumb::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .2); }
.boa-mag .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; background: var(--red); display: grid; place-items: center; z-index: 2; box-shadow: 0 10px 25px rgba(0, 0, 0, .3); transition: transform .2s; }
.boa-mag .vcard:hover .play { transform: translate(-50%, -50%) scale(1.08); }
.boa-mag .play::before { content: ""; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; margin-left: 5px; }
.boa-mag .vcard .h { display: block; color: #fff; font: 600 19px/1.4 "Poppins", sans-serif; margin: 18px 8px 8px; }
.boa-mag .vcard .meta { color: rgba(255, 255, 255, .7); margin: 0 8px 8px; }

/* ---------- Category tiles ---------- */
.boa-mag .grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.boa-mag .ctile { position: relative; border-radius: 24px; overflow: hidden; height: 320px; display: block; background: var(--c, var(--green)); }
.boa-mag .ctile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.boa-mag .ctile:hover img { transform: scale(1.05); }
.boa-mag .ctile .ph { color: rgba(255, 255, 255, .5); background: var(--c, var(--green)); }
.boa-mag .ctile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .72) 100%); }
.boa-mag .ctile .lab { position: absolute; left: 22px; right: 22px; bottom: 22px; z-index: 2; color: #fff; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.boa-mag .ctile .h { display: block; font: 600 24px/1.2 "Poppins", sans-serif; }
.boa-mag .ctile small { display: block; font: 400 13px/1.4 "Poppins", sans-serif; opacity: .85; margin-top: 4px; }
.boa-mag .ctile .go { width: 44px; height: 44px; border-radius: 50%; background: var(--red); display: grid; place-items: center; flex: none; transition: transform .2s; }
.boa-mag .ctile:hover .go { transform: translateX(3px); }

/* ---------- CTA band (like "Pensé pour tous") ---------- */
.boa-mag .band { background: #fff; border-radius: 28px; padding: 30px 32px; display: flex; align-items: center; gap: 20px; }
.boa-mag .band .sq { width: 46px; height: 46px; border-radius: 14px; background: var(--green); color: #fff; display: grid; place-items: center; flex: none; }
.boa-mag .band .txt { flex: 1; }
.boa-mag .band .h3 { font: 600 24px/1.3 "Poppins", sans-serif; color: #000; }
.boa-mag .band p { font: 400 16px/1.5 "Poppins", sans-serif; color: var(--text); margin-top: 4px; }

/* ---------- Newsletter band + signup popup (template-tags.php boa_mag_newsletter, front.js) ---------- */
.boa-mag .nl-band { background: var(--green); }
.boa-mag .nl-band .sq { background: var(--gold); }
.boa-mag .nl-band .h3 { color: #fff; }
.boa-mag .nl-band p { color: rgba(255, 255, 255, .82); }
.boa-mag .nl-band :focus-visible { outline-color: #fff; }
.boa-mag .btn.light { background: #fff; color: var(--green); }
.boa-mag .btn.light:hover, .boa-mag .btn.light:focus { background: var(--pill); color: var(--green); }
.boa-mag .boa-nl { width: min(520px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 0; border-radius: 28px; background: #fff; color: var(--ink); box-shadow: 0 24px 70px rgba(15, 20, 17, .35); overflow: auto; overscroll-behavior: contain; }
.boa-mag .boa-nl::backdrop { background: rgba(15, 20, 17, .6); }
.boa-mag .boa-nl-box { position: relative; padding: 30px 28px 18px; }
.boa-mag .boa-nl .sq { width: 46px; height: 46px; border-radius: 14px; background: var(--green); color: #fff; display: grid; place-items: center; }
.boa-mag .boa-nl .h3 { font: 600 24px/1.3 "Poppins", sans-serif; color: #000; margin: 14px 44px 0 0; }
.boa-mag .boa-nl-box > p { font: 400 15px/1.5 "Poppins", sans-serif; color: var(--text); margin: 6px 0 0; }
.boa-mag .boa-nl-close, .boa-mag .boa-nl-close:hover, .boa-mag .boa-nl-close:focus { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; background: var(--sage); color: var(--green); display: grid; place-items: center; transition: background-color .2s; }
.boa-mag .boa-nl-close:hover { background: #E1E5E2; }
.boa-mag .boa-nl-close .ic { width: 18px; height: 18px; }
/* The iframe holds the GoHighLevel form (its own 16px padding); heights measured on the form, with room for error messages. */
.boa-mag .boa-nl-frame { position: relative; margin: 10px -16px 0; min-height: 340px; }
/* Hidden until it loads (front.js adds .is-ready on load, or after 2.5 s at the latest), then opaque above the loading text. */
.boa-mag .boa-nl-frame iframe { position: relative; z-index: 1; display: block; width: 100%; height: 340px; border: 0; background: #fff; opacity: 0; transition: opacity .2s; }
.boa-mag .boa-nl-frame iframe.is-ready { opacity: 1; }
.boa-mag .boa-nl-loading { position: absolute; inset: 0 16px auto; padding-top: 24px; font: 400 14px/1.5 "Poppins", sans-serif; color: var(--text); }
html.boa-nl-open { overflow: hidden; }
@media (max-width: 480px) {
  .boa-mag .boa-nl-box { padding: 24px 20px 14px; }
  .boa-mag .boa-nl .h3 { font-size: 21px; }
  .boa-mag .boa-nl-frame { margin: 8px -16px 0; min-height: 390px; }
  .boa-mag .boa-nl-frame iframe { height: 390px; }
}
@media (max-width: 340px) {
  .boa-mag .boa-nl-frame { min-height: 430px; }
  .boa-mag .boa-nl-frame iframe { height: 430px; }
}

/* ---------- Empty states ---------- */
.boa-mag .empty { max-width: 640px; margin: 0 auto; text-align: center; background: #fff; border: 1px dashed #D9D2C5; border-radius: 28px; padding: 46px 30px; color: var(--text); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.boa-mag .empty > .ic { width: 40px; height: 40px; color: var(--gold); stroke-width: 1.6; }
.boa-mag .empty p { font: 500 17px/1.6 "Poppins", sans-serif; color: #333; }

/* ---------- Category hero ---------- */
.boa-mag .cat-hero .container { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; padding-top: 50px; padding-bottom: 90px; }
.boa-mag .cat-hero.no-media .container, .boa-mag .cat-hero.compact .container { grid-template-columns: minmax(0, 820px); }
.boa-mag .cat-hero.compact .container { padding-bottom: 54px; }
.boa-mag .crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font: 400 13px/1.4 "Poppins", sans-serif; color: var(--text); }
.boa-mag .crumbs a { color: #000; }
.boa-mag .crumbs a:hover { color: var(--green); text-decoration: underline; }
.boa-mag .crumbs .ic { width: 14px; height: 14px; }
.boa-mag .cat-hero .crumbs { grid-column: 1 / -1; margin-bottom: -20px; }
.boa-mag .cat-hero .h1 { margin: 12px 0 22px; font-size: 64px; }
.boa-mag .stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.boa-mag .stat { display: inline-flex; align-items: center; gap: 10px; background: #fff; border-radius: 24px; padding: 6px 18px 6px 6px; font: 600 14px/1.2 "Poppins", sans-serif; color: #000; }
.boa-mag .stat .ci { width: 34px; height: 34px; border-radius: 50%; background: var(--c, var(--red)); color: #fff; display: grid; place-items: center; flex: none; }
.boa-mag .stat .ci .ic { width: 16px; height: 16px; }
.boa-mag .collage { display: grid; grid-template-columns: 275px 200px; gap: 20px; justify-content: center; }
.boa-mag .collage img { border-radius: 24px; object-fit: cover; width: 100%; }
.boa-mag .collage .tall { height: 320px; }
.boa-mag .collage .col { display: flex; flex-direction: column; gap: 20px; padding-top: 122px; }
.boa-mag .collage .col img { height: 200px; }
.boa-mag .collage-1 { grid-template-columns: minmax(0, 460px); }
.boa-mag .collage-1 .tall { height: 360px; }
.boa-mag .results { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 30px; font: 400 15px/1.4 "Poppins", sans-serif; color: var(--text); }
.boa-mag .results b { color: #000; font-weight: 600; }

/* ---------- Portrait feature ---------- */
.boa-mag .pfeature { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 15px; box-shadow: 0 0 10px rgba(0, 0, 0, .1); display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.boa-mag .pfeature .thumb { aspect-ratio: auto; height: auto; min-height: 480px; }
.boa-mag .pfeature .thumb img { position: absolute; inset: 0; }
.boa-mag .pfeature .body { padding: 30px 26px 20px 10px; display: flex; flex-direction: column; }
.boa-mag .role { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font: 500 13px/1.3 "Poppins", sans-serif; color: var(--text); }
.boa-mag .role .ic { width: 15px; height: 15px; color: var(--red); }
.boa-mag .pfeature h3 { font: 600 32px/1.25 "Poppins", sans-serif; color: #000; margin: 14px 0 20px; }
.boa-mag .quote { background: var(--pill); border-radius: 24px; padding: 24px 26px; font: 500 18px/1.6 "Poppins", sans-serif; color: #000; position: relative; border: 0; }
.boa-mag .quote::before { content: "\201C"; display: block; font: 700 54px/0.6 "Poppins", sans-serif; color: var(--gold); margin-bottom: 4px; padding-top: 14px; }
.boa-mag .pfeature p { font: 400 15px/1.7 "Poppins", sans-serif; color: var(--text); margin: 20px 0 24px; }
.boa-mag .pfeature .btn { align-self: flex-start; margin-top: auto; }

/* ---------- Article page ---------- */
.boa-mag .art-hero { padding: 56px 0 0; }
.boa-mag .back { display: inline-flex; gap: 12px; align-items: center; font: 400 14px/1.2 "Poppins", sans-serif; color: #000; margin-bottom: 26px; }
.boa-mag .back:hover { color: var(--green); }
.boa-mag .back .ic { width: 16px; height: 16px; }
.boa-mag .art-hero .crumbs { margin-bottom: 22px; }
.boa-mag .art-title { font: 700 48px/1.18 "Poppins", sans-serif; color: #000; max-width: 940px; margin: 18px 0 20px; overflow-wrap: anywhere; }
.boa-mag .standfirst { font: 400 20px/1.6 "Poppins", sans-serif; color: var(--text); max-width: 880px; }
.boa-mag .byline { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 30px; padding-top: 26px; border-top: 1px solid #ECE6DA; }
.boa-mag .byline .author { margin: 0; }
.boa-mag .share { display: flex; align-items: center; gap: 10px; font: 500 13px/1 "Poppins", sans-serif; color: var(--text); }
.boa-mag .share a, .boa-mag .share button, .boa-mag .share button:hover, .boa-mag .share button:focus { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--green); transition: background-color .2s, color .2s; }
.boa-mag .share a:hover, .boa-mag .share button:hover { background: var(--green); color: #fff; border-color: var(--green); }
.boa-mag .share button.copied { background: var(--green); color: #fff; border-color: var(--green); }
.boa-mag .share .ic { width: 17px; height: 17px; }
.boa-mag .cover { margin-top: 34px; }
.boa-mag .cover img { width: 100%; height: 580px; object-fit: cover; border-radius: 28px; }
.boa-mag .cover figcaption { font: 400 13px/1.5 "Poppins", sans-serif; color: var(--text); margin-top: 12px; }
.boa-mag .recipe-facts { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 12px; margin-top: 34px; }
.boa-mag .rfact { display: flex; align-items: center; gap: 12px; background: var(--pill); border-radius: 24px; padding: 8px 14px 8px 8px; min-width: 0; }
.boa-mag .rfact .ci { width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; flex: none; }
.boa-mag .rfact .ci.green { background: var(--green); }
.boa-mag .rfact .ci.black { background: #000; }
.boa-mag .rfact .ci.gold { background: var(--gold); }
.boa-mag .rfact small { display: block; font: 400 11px/1.3 "Poppins", sans-serif; color: var(--text); }
.boa-mag .rfact b { display: block; font: 600 14px/1.3 "Poppins", sans-serif; color: #000; overflow-wrap: anywhere; }
.boa-mag .art-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; padding: 56px 15px 100px; align-items: start; }
.boa-mag .endshare { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 50px; padding: 22px 26px; background: #fff; border: 1px solid var(--line); border-radius: 24px; }
.boa-mag .endshare b { font: 600 16px/1.4 "Poppins", sans-serif; color: #000; }
.boa-mag .side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.boa-mag .toc li a { display: flex; align-items: center; gap: 10px; font: 500 14px/1.4 "Poppins", sans-serif; color: #333; padding: 10px 0 10px 14px; border-left: 3px solid #EFEFEF; transition: color .2s, border-color .2s; }
.boa-mag .toc li a:hover { color: var(--green); }
.boa-mag .toc li a.on { color: var(--green); font-weight: 600; border-left-color: var(--green); }
.boa-mag .mini li { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid #EFEFEF; }
.boa-mag .mini li:last-child { border-bottom: 0; padding-bottom: 0; }
.boa-mag .mini .mimg { width: 68px; height: 68px; border-radius: 16px; overflow: hidden; flex: none; display: block; }
.boa-mag .mini .mimg img { width: 100%; height: 100%; object-fit: cover; }
.boa-mag .mini b { display: block; font: 600 14px/1.4 "Poppins", sans-serif; color: #000; }
.boa-mag .mini a:hover b { color: var(--green); }
.boa-mag .mini small { display: block; font: 400 12px/1.4 "Poppins", sans-serif; color: var(--text); margin-top: 4px; }
.boa-mag .side-cta { background: var(--green); border-radius: 28px; padding: 30px 26px; color: #fff; }
.boa-mag .side-cta .ci { width: 44px; height: 44px; border-radius: 14px; background: rgba(255, 255, 255, .12); display: grid; place-items: center; margin-bottom: 18px; }
.boa-mag .side-cta .h { font: 600 22px/1.3 "Poppins", sans-serif; color: #fff; }
.boa-mag .side-cta p:not(.h) { font: 400 14px/1.65 "Poppins", sans-serif; color: rgba(255, 255, 255, .8); margin: 10px 0 22px; }

/* ---------- Article body (block editor content) ---------- */
.boa-mag .prose { min-width: 0; color: #333; overflow-wrap: break-word; }
.boa-mag .prose > * { margin: 0 0 22px; }
.boa-mag .prose > *:last-child { margin-bottom: 0; }
.boa-mag .prose p { font: 400 17px/1.85 "Poppins", sans-serif; color: #333; }
.boa-mag .prose > p:first-of-type { font: 500 19px/1.8 "Poppins", sans-serif; color: #000; }
.boa-mag .prose :where(p, li, td, figcaption) a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.boa-mag .prose :where(p, li, td, figcaption) a:hover { color: var(--red); }
.boa-mag .prose strong, .boa-mag .prose b { font-weight: 600; color: #000; }
.boa-mag .prose h2 { font: 600 30px/1.3 "Poppins", sans-serif; color: #000; margin: 50px 0 20px; scroll-margin-top: 110px; }
.boa-mag .prose > h2:first-child { margin-top: 0; }
.boa-mag .prose h3 { font: 600 21px/1.35 "Poppins", sans-serif; color: #000; margin: 34px 0 12px; }
.boa-mag .prose h4 { font: 600 17px/1.4 "Poppins", sans-serif; color: #000; margin: 26px 0 10px; }
.boa-mag .prose > .lead-quote { margin-bottom: 30px; }
.boa-mag .prose hr, .boa-mag .prose .wp-block-separator { border: 0; border-top: 1px solid #E8E0D2; margin: 40px 0; opacity: 1; }

/* Lists: bullets = red dots (ingredients), numbers = step cards */
.boa-mag .prose ul:not(.blocks-gallery-grid) li { position: relative; padding: 6px 0 6px 26px; font: 400 16px/1.65 "Poppins", sans-serif; color: #333; }
.boa-mag .prose ul:not(.blocks-gallery-grid) > li::before { content: ""; position: absolute; left: 0; top: 13px; width: 14px; height: 14px; border-radius: 50%; background: var(--red); box-shadow: inset 0 0 0 4px var(--red), inset 0 0 0 7px #FFB5B3; }
.boa-mag .prose ol { counter-reset: boa-step; }
.boa-mag .prose ol > li { counter-increment: boa-step; position: relative; padding: 4px 0 4px 40px; font: 400 16px/1.65 "Poppins", sans-serif; color: #333; }
.boa-mag .prose ol > li::before { content: counter(boa-step); position: absolute; left: 0; top: 3px; width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #fff; font: 600 13px/28px "Poppins", sans-serif; text-align: center; }
.boa-mag .prose ol.is-style-boa-steps { display: flex; flex-direction: column; gap: 14px; }
.boa-mag .prose ol.is-style-boa-steps > li { display: block; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px 24px 20px 82px; font: 400 15px/1.65 "Poppins", sans-serif; color: var(--text); min-height: 82px; }
.boa-mag .prose ol.is-style-boa-steps > li::before { left: 24px; top: 20px; width: 40px; height: 40px; font: 600 16px/40px "Poppins", sans-serif; }
.boa-mag .prose ol.is-style-boa-steps > li > strong:first-child, .boa-mag .prose ol.is-style-boa-steps > li > b:first-child { display: block; font: 600 17px/1.4 "Poppins", sans-serif; color: #000; margin-bottom: 2px; }
.boa-mag .prose ol.is-style-boa-steps > li > strong:first-child + br { display: none; }

/* Groups: "Encadré" and "Conseil du chef" */
.boa-mag .prose .wp-block-columns { display: flex; gap: 20px; margin-bottom: 22px; }
.boa-mag .prose .wp-block-column { min-width: 0; }
.boa-mag .prose .wp-block-column > * { margin: 0 0 16px; }
.boa-mag .prose .wp-block-column > *:last-child { margin-bottom: 0; }
.boa-mag .prose .is-style-boa-box { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 24px 26px; }
.boa-mag .prose .wp-block-column > .is-style-boa-box:only-child { height: 100%; }
.boa-mag .prose .is-style-boa-box > * { margin: 0 0 12px; }
.boa-mag .prose .is-style-boa-box > *:last-child { margin-bottom: 0; }
.boa-mag .prose .is-style-boa-box h3, .boa-mag .prose .is-style-boa-box h2 { font: 600 17px/1.3 "Poppins", sans-serif; margin-top: 0; }
.boa-mag .prose .is-style-boa-box p { font-size: 15px; line-height: 1.7; }
.boa-mag .prose .is-style-boa-box ul li { font-size: 15px; }
.boa-mag .prose .is-style-boa-tip { background: var(--pill); border-radius: 28px; padding: 30px 34px; margin-top: 50px; margin-bottom: 30px; }
.boa-mag .prose .is-style-boa-tip > * { margin: 0 0 14px; }
.boa-mag .prose .is-style-boa-tip > *:last-child { margin-bottom: 0; }
.boa-mag .prose .boa-eyebrow { font: 600 16px/1.4 "Poppins", sans-serif; color: var(--gold); }
.boa-mag .prose .is-style-boa-tip .wp-block-quote { background: none; padding: 0; border: 0; margin: 0; }
.boa-mag .prose .is-style-boa-tip .wp-block-quote::before { display: none; }
.boa-mag .prose .is-style-boa-tip .wp-block-quote p { font: 500 21px/1.6 "Poppins", sans-serif; color: #000; }
.boa-mag .prose .is-style-boa-tip .wp-block-quote cite { margin-top: 16px; }

/* Quotes */
.boa-mag .prose .wp-block-quote, .boa-mag .prose blockquote:not(.quote) { background: var(--pill); border: 0; border-radius: 24px; padding: 24px 28px; margin-left: 0; margin-right: 0; quotes: none; }
.boa-mag .prose .wp-block-quote::before { content: "\201C"; display: block; font: 700 54px/0.6 "Poppins", sans-serif; color: var(--gold); padding-top: 14px; margin-bottom: 4px; }
.boa-mag .prose .wp-block-quote p { font: 500 18px/1.6 "Poppins", sans-serif; color: #000; margin: 0 0 10px; }
.boa-mag .prose .wp-block-quote p:last-of-type { margin-bottom: 0; }
.boa-mag .prose .wp-block-quote cite { display: block; margin-top: 12px; font: 600 14px/1.4 "Poppins", sans-serif; font-style: normal; color: var(--green); }
.boa-mag .prose .wp-block-pullquote { border: 0; padding: 30px 0; text-align: center; }
.boa-mag .prose .wp-block-pullquote blockquote { background: none; padding: 0; }

/* Images, captions, tables */
.boa-mag .prose .wp-block-image img { border-radius: 20px; }
.boa-mag .prose figcaption, .boa-mag .prose .wp-element-caption { font: 400 13px/1.5 "Poppins", sans-serif; color: var(--text); margin-top: 12px; text-align: left; }
.boa-mag .prose .wp-block-table { overflow-x: auto; }
.boa-mag .prose table { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; border-radius: 16px; overflow: hidden; }
.boa-mag .prose th, .boa-mag .prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.boa-mag .prose th { background: var(--pill); font-weight: 600; color: #000; }

/* Gallery: big photo + 4 small, "+N photos" on the 5th, all in the lightbox (front.js).
   #content raises specificity above WordPress's gallery rules (which use :not(#individual-image)). */
#content.boa-mag .wp-block-gallery.boa-gallery { display: grid; gap: 12px; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 210px 210px; grid-auto-rows: auto; align-items: stretch; margin: 0 0 22px; padding: 0; }
#content.boa-mag .wp-block-gallery.boa-gallery > figure.wp-block-image { width: auto; max-width: none; margin: 0; position: relative; display: block; border-radius: 20px; overflow: hidden; cursor: zoom-in; min-height: 0; flex: none; }
#content.boa-mag .wp-block-gallery.boa-gallery figure.wp-block-image img { width: 100%; height: 100%; max-width: none; object-fit: cover; border-radius: 0; flex: none; transition: transform .5s; }
#content.boa-mag .wp-block-gallery.boa-gallery figure.wp-block-image:hover img { transform: scale(1.04); }
#content.boa-mag .wp-block-gallery.boa-gallery figure.wp-block-image figcaption { font: 400 12px/1.4 "Poppins", sans-serif; color: #fff; margin: 0; }
#content.boa-mag .wp-block-gallery.boa-gallery > figure.wp-block-image:first-of-type { grid-row: span 2; }
#content.boa-mag .wp-block-gallery.boa-gallery-1 { grid-template-columns: 1fr; grid-template-rows: 440px; }
#content.boa-mag .wp-block-gallery.boa-gallery-2 { grid-template-columns: 1fr 1fr; grid-template-rows: 320px; }
#content.boa-mag .wp-block-gallery.boa-gallery-1 > figure.wp-block-image:first-of-type,
#content.boa-mag .wp-block-gallery.boa-gallery-2 > figure.wp-block-image:first-of-type { grid-row: auto; }
#content.boa-mag .wp-block-gallery.boa-gallery-3 { grid-template-columns: 2fr 1fr; }
#content.boa-mag .wp-block-gallery.boa-gallery-4 > figure.wp-block-image:nth-of-type(2) { grid-column: span 2; }
#content.boa-mag .wp-block-gallery.boa-gallery-5 > figure.wp-block-image:nth-of-type(n+6) { display: none; }
#content.boa-mag .wp-block-gallery.boa-gallery > .blocks-gallery-caption { grid-column: 1 / -1; font: 400 13px/1.5 "Poppins", sans-serif; color: var(--text); margin: 0; text-align: left; }
.boa-mag .moreph { position: absolute; inset: 0; z-index: 2; background: rgba(47, 71, 55, .72); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font: 600 18px/1.2 "Poppins", sans-serif; pointer-events: none; }
.boa-mag .moreph .ic { width: 26px; height: 26px; }
.boa-mag .boa-gallery-hint { font: 400 13px/1.5 "Poppins", sans-serif; color: var(--text); margin-top: -10px; }

/* YouTube: thumbnail + play button; the player loads on click (front.js) */
.boa-mag .prose .wp-block-embed { margin-left: 0; margin-right: 0; }
.boa-mag .prose .wp-block-embed__wrapper { position: relative; }
.boa-mag .prose .wp-block-embed iframe { display: block; width: 100%; max-width: 100%; border: 0; border-radius: 24px; }
.boa-mag .prose .wp-block-embed.is-type-video iframe, .boa-mag .prose .wp-has-aspect-ratio iframe { height: auto; aspect-ratio: 16 / 9; }
.boa-mag .boa-yt { position: relative; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: #000; }
.boa-mag .boa-yt > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.boa-mag .boa-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.boa-mag .boa-yt-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 12px; padding: 16px 20px 40px; background: linear-gradient(180deg, rgba(0, 0, 0, .65), rgba(0, 0, 0, 0)); color: #fff; pointer-events: none; }
.boa-mag .boa-yt-top .ttl { flex: 1; min-width: 0; font: 500 17px/1.3 Roboto, Arial, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.boa-mag .boa-yt .boa-yt-play, .boa-mag .boa-yt .boa-yt-play:hover, .boa-mag .boa-yt .boa-yt-play:focus { position: absolute; inset: 0; width: 100%; height: 100%; background: none; z-index: 1; }
.boa-mag .boa-yt-play::before { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 68px; height: 48px; border-radius: 14px; background: #FF0000; transition: transform .2s, background-color .2s; }
.boa-mag .boa-yt-play::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-35%, -50%); border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.boa-mag .boa-yt-play:hover::before, .boa-mag .boa-yt-play:focus-visible::before { transform: translate(-50%, -50%) scale(1.08); background: #CC0000; }
.boa-mag .boa-yt-bottom { position: absolute; left: 14px; bottom: 14px; z-index: 2; display: flex; align-items: center; gap: 8px; background: rgba(23, 23, 23, .82); color: #fff; border-radius: 6px; padding: 9px 12px; font: 500 14px/1 Roboto, Arial, sans-serif; }
.boa-mag a.boa-yt-bottom, .boa-mag a.boa-yt-bottom:hover { color: #fff; text-decoration: none; }
.boa-mag .boa-yt-bottom i { width: 22px; height: 15px; border-radius: 4px; background: #FF0000; display: grid; place-items: center; }
.boa-mag .boa-yt-bottom i::before { content: ""; border-style: solid; border-width: 4px 0 4px 7px; border-color: transparent transparent transparent #fff; margin-left: 1px; }
.boa-mag .boa-yt.is-playing > :not(iframe) { display: none; }
.boa-mag .boa-yt-note { font: 400 12px/1.5 "Poppins", sans-serif; color: var(--text); margin-top: 10px; }
.boa-mag .prose .boa-video > p.boa-yt-note { font-size: 12px; line-height: 1.5; color: var(--text); }

/* ---------- Lightbox (photo galleries) ---------- */
.boa-lb { position: fixed; inset: 0; z-index: 100000; background: rgba(15, 20, 17, .94); display: flex; align-items: center; justify-content: center; padding: 60px 70px; font-family: "Poppins", sans-serif; }
.boa-lb[hidden] { display: none; }
.boa-lb figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.boa-lb img { max-width: 100%; max-height: calc(100vh - 160px); width: auto; height: auto; object-fit: contain; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.boa-lb figcaption { color: rgba(255, 255, 255, .85); font-size: 14px; text-align: center; max-width: 720px; }
.boa-lb .boa-lb-count { position: absolute; top: 22px; left: 26px; color: rgba(255, 255, 255, .8); font-size: 14px; }
.boa-lb button, .boa-lb button:hover, .boa-lb button:focus { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; transition: background-color .2s; }
.boa-lb button:hover { background: rgba(255, 255, 255, .24); }
.boa-lb button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.boa-lb button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.boa-lb .boa-lb-close { top: 16px; right: 16px; }
.boa-lb .boa-lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.boa-lb .boa-lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
html.boa-lb-open { overflow: hidden; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .boa-mag .h1 { font-size: 44px; }
  .boa-mag .h2 { font-size: 38px; }
  .boa-mag .hero .container, .boa-mag .cat-hero .container { gap: 36px; }
  .boa-mag .feature-row { grid-template-columns: minmax(0, 1fr); }
  .boa-mag .art-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; }
  .boa-mag .recipe-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .boa-mag .collage { grid-template-columns: 1.3fr 1fr; gap: 14px; }
  .boa-mag .collage-1 { grid-template-columns: minmax(0, 1fr); }
  .boa-mag .cover img { height: 460px; }
}
@media (max-width: 900px) {
  .boa-mag .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .boa-mag .art-layout { grid-template-columns: minmax(0, 1fr); }
  .boa-mag .side { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .boa-mag .toc-panel { display: none; }
}

/* ---------- Mobile (Elementor mobile breakpoint: 767px) ---------- */
@media (max-width: 767px) {
  .boa-mag .container { padding: 0 16px; }
  .boa-mag .eyebrow { font-size: 18px; }
  .boa-mag .h1 { font-size: 34px; line-height: 1.2; }
  .boa-mag .h2 { font-size: 30px; line-height: 1.15; }
  .boa-mag .lead { font-size: 16px; line-height: 1.65; }
  .boa-mag .section { padding: 64px 0; }
  .boa-mag .sec-head { margin-bottom: 30px; }
  .boa-mag .sec-head.split { flex-direction: column; align-items: flex-start; gap: 16px; }
  .boa-mag .hero .container, .boa-mag .cat-hero .container { grid-template-columns: minmax(0, 1fr); gap: 34px; padding-top: 44px; padding-bottom: 60px; }
  .boa-mag .hero .h1 { margin: 10px 0 18px; }
  .boa-mag .mag-title { margin-bottom: 18px; }
  .boa-mag .mag-name { letter-spacing: -.5px; }
  .boa-mag .mag-headline { margin-top: 10px; }
  .boa-mag .mag-filters { margin-bottom: 26px; }
  .boa-mag .hero-media { padding: 30px 0 34px; }
  .boa-mag .hero-media > img { height: 280px; }
  .boa-mag .chip { padding: 7px 16px 7px 7px; border-radius: 18px; max-width: 88%; }
  .boa-mag .chip .ci { width: 34px; height: 34px; }
  .boa-mag .chip b { font-size: 13px; }
  .boa-mag .chip.tl { left: -4px; }
  .boa-mag .chip.br { right: -4px; }
  .boa-mag .cats-bar { padding: 22px 0; }
  .boa-mag .cats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; -webkit-overflow-scrolling: touch; }
  .boa-mag .cats::-webkit-scrollbar { display: none; }
  .boa-mag .cats .label { display: none; }
  .boa-mag .grid3 { grid-template-columns: minmax(0, 1fr); }
  .boa-mag .grid4 { grid-template-columns: minmax(0, 1fr); }
  .boa-mag .feature { grid-template-columns: minmax(0, 1fr); }
  .boa-mag .feature .thumb { min-height: 0; height: 240px; }
  .boa-mag .feature .body { padding: 14px 8px 8px; }
  .boa-mag .feature h3 { font-size: 24px; }
  .boa-mag .ctile { height: 210px; }
  .boa-mag .band { flex-direction: column; align-items: flex-start; padding: 26px 22px; }
  .boa-mag .band .h3 { font-size: 21px; }
  .boa-mag .pager { gap: 6px; margin-top: 40px; }
  .boa-mag .pager .page-numbers { min-width: 42px; height: 42px; }
  .boa-mag .pager .next, .boa-mag .pager .prev { padding: 0 16px; }
  .boa-mag .cat-hero .h1 { font-size: 42px; }
  .boa-mag .cat-hero .crumbs { margin-bottom: -14px; }
  .boa-mag .collage { grid-template-columns: 1.3fr 1fr; gap: 12px; }
  .boa-mag .collage .tall { height: 230px; }
  .boa-mag .collage .col { padding-top: 70px; gap: 12px; }
  .boa-mag .collage .col img { height: 140px; }
  .boa-mag .collage-1 .tall { height: 240px; }
  .boa-mag .results { margin-bottom: 22px; font-size: 14px; }
  .boa-mag .results span + span { display: none; }
  .boa-mag .pfeature { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .boa-mag .pfeature .thumb { height: 300px; min-height: 0; }
  .boa-mag .pfeature .body { padding: 16px 8px 8px; }
  .boa-mag .pfeature h3 { font-size: 24px; }
  .boa-mag .quote { font-size: 16px; padding: 20px; }
  .boa-mag .art-hero { padding-top: 34px; }
  .boa-mag .art-title { font-size: 31px; line-height: 1.25; }
  .boa-mag .standfirst { font-size: 17px; }
  .boa-mag .byline { flex-direction: column; align-items: flex-start; gap: 18px; }
  .boa-mag .cover img { height: 250px; border-radius: 22px; }
  .boa-mag .recipe-facts { grid-template-columns: 1fr 1fr; gap: 10px; }
  .boa-mag .recipe-facts .rfact:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .boa-mag .art-layout { gap: 40px; padding: 40px 16px 70px; }
  .boa-mag .side { display: flex; }
  .boa-mag .prose p { font-size: 16px; line-height: 1.8; }
  .boa-mag .prose > p:first-of-type { font-size: 17px; }
  .boa-mag .prose h2 { font-size: 24px; margin: 40px 0 16px; }
  .boa-mag .prose .wp-block-columns { flex-direction: column; gap: 14px; }
  .boa-mag .prose ol.is-style-boa-steps > li { padding: 18px 18px 18px 70px; }
  .boa-mag .prose ol.is-style-boa-steps > li::before { left: 18px; top: 18px; }
  .boa-mag .prose .is-style-boa-tip { padding: 24px 22px; }
  .boa-mag .prose .is-style-boa-tip .wp-block-quote p { font-size: 18px; }
  #content.boa-mag .wp-block-gallery.boa-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 220px; grid-auto-rows: 130px; gap: 10px; }
  #content.boa-mag .wp-block-gallery.boa-gallery > figure.wp-block-image:first-of-type { grid-row: auto; grid-column: 1 / -1; }
  #content.boa-mag .wp-block-gallery.boa-gallery-4 > figure.wp-block-image:nth-of-type(2) { grid-column: auto; }
  #content.boa-mag .wp-block-gallery.boa-gallery-4 > figure.wp-block-image:nth-of-type(4) { grid-column: 1 / -1; }
  #content.boa-mag .wp-block-gallery.boa-gallery-1 { grid-template-columns: 1fr; grid-template-rows: 240px; }
  #content.boa-mag .wp-block-gallery.boa-gallery-2 { grid-template-rows: 200px; }
  #content.boa-mag .wp-block-gallery.boa-gallery-2 > figure.wp-block-image:first-of-type { grid-column: auto; }
  .boa-mag .boa-yt, .boa-mag .prose .wp-block-embed iframe { border-radius: 18px; }
  .boa-mag .boa-yt-top { padding: 10px 12px 30px; gap: 8px; }
  .boa-mag .boa-yt-top .ttl { font-size: 13px; }
  .boa-mag .boa-yt-play::before { width: 56px; height: 40px; border-radius: 11px; }
  .boa-mag .boa-yt-bottom { left: 10px; bottom: 10px; padding: 7px 9px; font-size: 12px; }
  .boa-mag .endshare { flex-direction: column; align-items: flex-start; }
  .boa-lb { padding: 56px 10px 70px; }
  .boa-lb .boa-lb-prev, .boa-lb .boa-lb-next { top: auto; bottom: 12px; transform: none; }
  .boa-lb .boa-lb-prev { left: calc(50% - 60px); }
  .boa-lb .boa-lb-next { right: calc(50% - 60px); }
}

@media (prefers-reduced-motion: reduce) {
  .boa-mag *, .boa-mag *::before, .boa-mag *::after { transition: none !important; }
  .boa-mag .card:hover .thumb img, .boa-mag .feature:hover .thumb img, .boa-mag .ctile:hover img,
  #content.boa-mag .wp-block-gallery.boa-gallery figure.wp-block-image:hover img { transform: none; }
}
