/*
Theme Name: Webreed Help
Theme URI: https://help.webreed.pet/
Author: Webreed
Description: Thème du centre d'aide Webreed (help.webreed.pet) : tutoriels classés par rubrique, recherche instantanée, sommaire adapté au mobile, français et anglais (Polylang).
Version: 1.0.0
Requires at least: 6.9
Requires PHP: 8.1
Text Domain: webreed-help
License: Propriétaire
*/

/* Fredoka, self-hosted (SIL OFL, assets/fonts/LICENSE-OFL.txt): nothing is loaded from Google. */

@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 300 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("assets/fonts/fredoka-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 300 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("assets/fonts/fredoka-latin.woff2") format('woff2');
  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;
}
:root {
  color-scheme: light;
  --ink: #24151e;
  --muted: #675763;
  --accent: #952257;
  --accent-dark: #732041;
  --pale: #fce5f1;
  --wash: #fff8fc;
  --line: #eddee7;
  --white: #fff;
  --wrap: 1120px;
  --font: 'Fredoka', 'Trebuchet MS', sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--white); font: 400 1.0625rem/1.5 var(--font); }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(var(--wrap), calc(100% - 2.75rem)); margin-inline: auto; }
.icon { width: 1.35rem; height: 1.35rem; flex: 0 0 auto; }
.skip { position: fixed; top: .65rem; left: .65rem; z-index: 3; padding: .75rem 1rem; background: white; transform: translateY(-180%); }
.skip:focus { transform: none; }
.topbar { border-bottom: 1px solid var(--line); }
.topbar .wrap { min-height: 4.75rem; display: flex; justify-content: space-between; align-items: center; gap: .85rem 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; }
.brand img { display: block; width: 2.45rem; height: 2.45rem; object-fit: contain; }
.wordmark { font-size: 1.72rem; font-weight: 700; color: #171116; letter-spacing: -.045em; line-height: 1; }
.brand-context { border-left: 1px solid var(--line); padding-left: .85rem; margin-left: .45rem; color: var(--muted); font-size: .975rem; white-space: nowrap; }
.nav { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .5rem 1.6rem; }
.nav a { font-size: .975rem; text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: .25em; }
.nav .outline { border: 1px solid #d981aa; color: var(--accent-dark); padding: .57rem 1rem; border-radius: 999px; }
.nav .outline:hover { background: var(--wash); text-decoration: none; }
.hero { position: relative; isolation: isolate; overflow: visible; margin-top: 1.65rem; padding: 3.25rem 1.5rem 2.7rem; border-radius: 1.65rem; background: radial-gradient(ellipse at 96% 105%, #eaf0de 0, transparent 43%), linear-gradient(120deg, #fae0ee, #fcedf5 72%); text-align: center; }
.hero h1 { font-size: clamp(2.35rem, 5.35vw, 4.15rem); letter-spacing: -.036em; font-weight: 600; line-height: 1.02; }
.hero p { font-size: clamp(1.05rem, 2vw, 1.22rem); color: #513b4b; margin: .9rem auto 1.55rem; max-width: 37rem; }
.search { display: flex; align-items: center; gap: .5rem; padding: .42rem; background: var(--white); border: 1px solid #ecc2d9; border-radius: .9rem; box-shadow: 0 5px 16px #731c4811; text-align: left; }
.search .icon { margin-left: .55rem; color: var(--accent); }
.search input { flex: 1; min-width: 0; padding: .52rem .2rem; background: transparent; color: var(--ink); border: 0; }
.search input::placeholder { color: var(--muted); opacity: 1; }
.primary { display: inline-flex; align-items: center; justify-content: center; gap: .48rem; border: 1px solid transparent; border-radius: .65rem; padding: .62rem 1rem; text-decoration: none; color: white; background: var(--accent); font-weight: 500; line-height: 1.35; }
.primary:hover { background: var(--accent-dark); }
.suggestions { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: .25rem .85rem; margin-top: .85rem; color: #654456; font-size: .96rem; }
.suggestions button, .text-button { background: transparent; border: 0; padding: .18rem 0; color: var(--accent-dark); text-decoration: underline; text-underline-offset: .2em; font-weight: 500; }
.suggestions button:hover, .text-button:hover { color: var(--accent); }
section[id] { scroll-margin-top: 1.25rem; }
.section { margin-block: 2.55rem; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .35rem 1rem; margin-bottom: .9rem; }
h2 { font-size: clamp(1.65rem, 3vw, 2.08rem); letter-spacing: -.02em; font-weight: 550; line-height: 1.16; }
.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .73rem; }
.topic { display: flex; width: 100%; align-items: center; gap: .8rem; min-height: 5.25rem; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: .9rem; background: var(--white); color: var(--ink); text-align: left; }
.topic:hover, .topic[aria-pressed=true] { border-color: #d575a1; background: var(--wash); }
.topic-icon, .panel-icon { display: grid; place-items: center; flex: 0 0 auto; width: 2.6rem; height: 2.6rem; border-radius: .7rem; background: var(--pale); color: var(--accent); }
.topic strong { display: block; font-size: 1.12rem; font-weight: 550; line-height: 1.25; }
.topic small { display: block; font-size: .91rem; font-weight: 400; color: var(--muted); line-height: 1.25; margin-top: .18rem; }
.catalog { background: var(--wash); border-block: 1px solid var(--line); padding: 2.25rem 0 2.65rem; }
.catalog .section-head { margin-bottom: 1rem; }
.catalog-nav { display: flex; align-items: baseline; flex-wrap: wrap; gap: .7rem 1.1rem; }
.results-info { color: var(--muted); font-size: .95rem; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.card { min-width: 0; }
.card a { display: flex; flex-direction: column; height: 100%; overflow: hidden; text-decoration: none; background: white; border: 1px solid var(--line); border-radius: .95rem; transition: border-color .15s, box-shadow .15s; }
.card a:hover { border-color: #d575a1; box-shadow: 0 4px 14px #731c4812; }
.card a:hover h3 { text-decoration: underline; text-underline-offset: .15em; }
.card-visual { display: grid; place-items: center; aspect-ratio: 16/9; background: var(--pale); color: var(--accent); overflow: hidden; }
.card-visual .icon { grid-area: 1/1; width: 2.55rem; height: 2.55rem; }
.card-visual img { grid-area: 1/1; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: .85rem 1rem 1rem; }
.card-kind { color: var(--accent-dark); font-size: .88rem; font-weight: 500; margin-bottom: .3rem; }
.card h3 { font-size: 1.2rem; font-weight: 550; line-height: 1.22; }
.empty { padding: 1rem 1.1rem; background: white; border: 1px solid var(--line); border-radius: .75rem; }
.panels { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-block: 2.65rem; }
.panel { padding: 1.5rem; border: 1px solid var(--line); border-radius: 1.05rem; }
.panel h2 { font-size: 1.62rem; }
.panel-title { display: flex; align-items: center; gap: .75rem; margin-bottom: .62rem; }
.panel p { color: #584856; }
.panel.news { background: var(--pale); border-color: #f0cfe1; }
.panel.news .panel-icon { background: #fff5fa; }
.panel-links { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.3rem; margin-top: .95rem; }
.panel-links a:not(.primary) { display: inline-flex; align-items: center; gap: .42rem; color: var(--accent-dark); text-underline-offset: .17em; font-weight: 500; min-height: 2.3rem; }
.panel .note { font-size: .9rem; margin-top: .65rem; }
footer { border-top: 1px solid var(--line); background: var(--wash); }
footer .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem 1.5rem; padding-block: 1.25rem; }
footer .brand img { width: 1.85rem; height: 1.85rem; }
footer .wordmark { font-size: 1.35rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; color: var(--muted); font-size: .92rem; }
.footer-links a { text-underline-offset: .2em; }
@media (max-width: 850px) {
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { gap: .5rem 1rem; }
}
@media (max-width: 650px) {
  .wrap { width: calc(100% - 2rem); }
  .topbar .wrap { min-height: auto; flex-wrap: wrap; padding-block: .65rem; }
  .brand-context { display: none; }
  .nav { justify-content: flex-start; gap: .3rem .8rem; }
  .nav a { font-size: .91rem; }
  .nav .outline { padding: .45rem .65rem; }
  .hero { margin-top: 1rem; padding: 2.2rem .95rem 1.75rem; border-radius: 1.12rem; }
  .search { gap: .32rem; }
  .search .icon { margin-left: .15rem; }
  .search input { font-size: 1rem; padding-inline: 0; }
  .search .primary { font-size: .95rem; padding-inline: .65rem; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .card-body { padding: .65rem .7rem .8rem; }
  .panels { grid-template-columns: 1fr; }
  .section { margin-block: 1.8rem; }
}
@media (max-width: 420px) {
  .topic-grid, .cards { grid-template-columns: 1fr; }
  .topic { min-height: 4.5rem; }
  .search .icon { display: none; }
  .card a { display: grid; grid-template-columns: 36% minmax(0, 1fr); align-items: center; }
  .card h3 { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
.hero-pattern { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; z-index: -1; pointer-events: none; }
.hero-pattern::before, .hero-pattern::after { content: ''; position: absolute; width: 24rem; aspect-ratio: 1; border-radius: 50%; border: 2.6rem solid #f7c9e1; opacity: .51; }
.hero-pattern::before { left: -18.25rem; top: -12.75rem; }
.hero-pattern::after { right: -15.6rem; bottom: -18.4rem; }
.hero-animals { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.hero-animals img {
  position: absolute;
  bottom: 1.4rem;
  width: clamp(6.5rem, calc((100% - 39.5rem) / 2 - 1.5rem), 15.5rem);
  height: auto;
  filter: drop-shadow(0 5px 4px #4f332c20);
}
.hero-kittens { left: 1.2rem; }
.hero-puppies { right: 1.2rem; }
.search-widget { position: relative; width: min(100%, 39.5rem); margin-inline: auto; z-index: 2; }
.search-widget .search { width: 100%; }
.search-menu { z-index: 2; position: absolute; top: calc(100% + .4rem); inset-inline: 0; background: white; border: 1px solid #e6c4d8; border-radius: .85rem; box-shadow: 0 12px 28px #54203926; overflow: hidden; text-align: left; }
.hero .search-no-suggestions { margin: 0; padding: .65rem .85rem; font-size: 1rem; }
.search-menu ul { padding: .3rem; margin: 0; max-height: min(23rem, 55vh); overflow: auto; list-style: none; }
.search-menu li { border-radius: .55rem; padding: .57rem .7rem; line-height: 1.28; cursor: pointer; }
.search-menu li:not(:last-child) { border-bottom: 1px solid var(--line); }
.search-menu li:hover, .search-menu li[aria-selected=true] { background: var(--pale); }
.search-menu li span { display: block; color: var(--ink); font-weight: 500; }
.search-menu li small { display: block; margin-top: .16rem; color: var(--muted); font-size: .875rem; }
.brevo-mount { margin-top: .8rem; }
.brevo-mount iframe { display: block; width: 100%; border: 0; border-radius: .65rem; background: white; }
.breadcrumbs { padding-block: 1.15rem .9rem; color: var(--accent-dark); font-size: .95rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .35rem .65rem; align-items: center; list-style: none; padding: 0; margin: 0; }
.breadcrumbs a { text-underline-offset: .18em; }
.breadcrumbs li + li::before { content: '/'; color: var(--muted); margin-right: .65rem; }
.article-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(14rem, 31%); align-items: center; gap: 1.45rem; padding: 1.75rem 2rem; background: var(--pale); border-radius: 1.3rem; }
.article-intro h1 { max-width: 23ch; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.04; font-weight: 600; letter-spacing: -.024em; overflow-wrap: anywhere; }
.article-intro img { display: block; width: 100%; aspect-ratio: 16/9; height: auto; object-fit: cover; border-radius: .8rem; }
.reading-time { margin-top: .75rem; color: #5d3c50; font-size: .94rem; }
.article-columns {
  display: grid;
  grid-template-columns: minmax(0, 47.5rem) minmax(12rem, 1fr);
  grid-template-areas: "reading sidebar";
  gap: 1rem clamp(1.5rem, 4.5vw, 4.1rem);
  margin-block: 2.25rem 2.65rem;
}
.article-sidebar {
  grid-area: sidebar;
  align-self: start;
  display: grid;
  gap: 1rem;
  min-width: 0;
}
.article-columns.has-toc .article-sidebar {
  position: sticky;
  top: 1rem;
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  overscroll-behavior: contain;
}
.article-body { grid-area: reading; min-width: 0; font-size: 1.125rem; color: #372732; line-height: 1.66; overflow-wrap: anywhere; }
.article-body > :first-child { margin-top: 0; }
.article-body :is(h2,h3,h4) { color: var(--ink); margin: 1.8em 0 .52em; line-height: 1.2; font-weight: 550; scroll-margin-top: 1rem; }
.article-body h2 { font-size: clamp(1.55rem, 3.3vw, 2rem); }
.article-body h3 { font-size: 1.38rem; }
.article-body h4 { font-size: 1.17rem; }
.article-body p { margin-block: .82em; }
.article-body li + li { margin-top: .23em; }
.article-body :is(ol,ul) { padding-left: 1.5em; }
.article-body a, .article-aside a { color: var(--accent-dark); text-underline-offset: .16em; }
.article-body strong { font-weight: 600; }
.article-body figure { margin: 1.25rem 0; }
.article-body img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: .65rem; background: var(--wash); }
.article-body .aligncenter img, .article-body .aligncenter .capture-link { margin-inline: auto; }
.capture-link { position: relative; display: block; width: fit-content; max-width: 100%; border-radius: .65rem; }
.capture-zoom {
  position: absolute;
  right: .5rem;
  bottom: .5rem;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: .65rem;
  color: var(--accent-dark);
  background: white;
  border: 1px solid #d9b5ca;
  box-shadow: 0 1px 5px #24151e20;
}
.capture-link:hover .capture-zoom { background: var(--pale); }
.capture-zoom .icon { width: 1.18rem; height: 1.18rem; }
.article-body figcaption { padding-top: .45rem; color: var(--muted); font-size: .94rem; }
.article-body :is(.is-style-wr-conseil,.is-style-wr-attention,.is-style-wr-situation,.is-style-wr-etapes,.aide-julie,blockquote) { margin: 1.15rem 0; padding: .6rem 1.05rem; border: 1px solid var(--line); border-left: .25rem solid #c25185; border-radius: .65rem; background: var(--wash); }
.article-body .is-style-wr-attention { background: #fff6e9; border-color: #eedbb5; border-left-color: #9c621e; }
.article-body .wp-block-table { overflow-x: auto; }
.article-body table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.article-body :is(th,td) { padding: .5rem; border: 1px solid var(--line); text-align: left; }
.article-body th { background: var(--pale); }
.article-body code { background: var(--wash); border-radius: .28rem; padding: .08em .22em; font-size: .9em; }
.article-body iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: .65rem; margin: 1.1rem 0; background: var(--wash); }
.article-aside { min-width: 0; border: 1px solid #e7cddc; border-radius: .85rem; background: white; }
.article-aside summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: 3rem;
  padding: .6rem .95rem;
  border-radius: .8rem;
  color: var(--ink);
  background: #fbf0f6;
  font-size: 1.145rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.article-aside summary::-webkit-details-marker { display: none; }
.article-aside summary::after {
  content: '';
  width: .55rem;
  height: .55rem;
  flex: 0 0 auto;
  margin: 0 .2rem .22rem 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
.article-aside[open] summary::after { transform: rotate(225deg); margin-bottom: -.22rem; }
.article-aside[open] summary { border-radius: .8rem .8rem 0 0; border-bottom: 1px solid #ebd6e3; }
.article-aside ul { margin: 0; padding: .3rem .42rem; list-style: none; }
.article-aside li + li { border-top: 1px solid var(--line); }
.article-aside a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .57rem .56rem;
  border-radius: .4rem;
  color: #672044;
  font-size: 1rem;
  line-height: 1.28;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.article-aside .toc-h3 a { padding-left: 1.15rem; }
.article-aside a:hover { background: var(--wash); text-decoration: underline; }
.article-aside a[aria-current] {
  background: #f8e3ef;
  box-shadow: inset 3px 0 #a63266;
  font-weight: 550;
}
.article-aside :is(a,summary):focus-visible { outline-offset: -3px; }
.article-bottom { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1rem; margin-top: 1.65rem; padding-block: .95rem; border-block: 1px solid var(--line); font-size: .98rem; }
.article-bottom a { color: var(--accent-dark); text-underline-offset: .18rem; }
.webreed-promo {
  border: 1px solid #efd4e3;
  border-radius: 1.05rem;
  background: #faeaf3;
}
.webreed-promo p { color: #5d4353; }
.webreed-promo .primary { margin-top: .85rem; }
.webreed-promo--footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(13rem, 28%);
  align-items: center;
  gap: 1rem 2rem;
  margin-block: -1.4rem 2.65rem;
  padding: 1.1rem 1.5rem 1.1rem clamp(1.5rem, 4vw, 2.5rem);
  background: linear-gradient(105deg, #fbe8f2, #f9dfed);
}
.webreed-promo--footer p { margin-top: .35rem; }
.webreed-promo-product { display: block; justify-self: center; width: min(100%, 16rem); height: auto; border-radius: .7rem; }
.webreed-promo--article { padding: 1rem; }
.webreed-promo-brand { display: flex; align-items: center; gap: .35rem; margin-bottom: .65rem; }
.webreed-promo-brand .wordmark { font-size: 1.35rem; }
.webreed-promo--article h2 { font-size: 1.38rem; }
.webreed-promo--article p { margin-top: .4rem; font-size: .975rem; line-height: 1.4; }
.webreed-promo--article .primary { font-size: .95rem; }
@media (max-width: 860px) {
  .hero-animals { position: static; display: flex; justify-content: center; align-items: flex-end; gap: .7rem; margin: 1rem auto 0; width: min(100%, 23rem); }
  .hero-animals img { position: static; width: calc(50% - .35rem); }
}
@media (max-width: 850px) {
  .article-intro { padding: 1.25rem; gap: 1rem; grid-template-columns: minmax(0, 1fr) 32%; }
  .article-columns { display: block; margin-block: 1.45rem 1.85rem; }
  .article-columns.has-toc .article-sidebar {
    display: block;
    top: 0;
    z-index: 3;
    max-height: none;
    margin-bottom: 1.2rem;
    overflow: visible;
  }
  .article-sidebar > .webreed-promo--article { display: none; }
  .article-columns > .webreed-promo--article { margin-top: 1.15rem; }
  .article-aside { position: relative; box-shadow: 0 4px 12px #59274111; }
  .article-aside[open] summary { border-radius: .8rem; border-bottom: 0; }
  .article-aside nav {
    position: absolute;
    inset-inline: -1px;
    top: calc(100% + .35rem);
    border: 1px solid #e7cddc;
    border-radius: .75rem;
    background: white;
    box-shadow: 0 9px 21px #59274125;
  }
  .article-aside ul {
    max-height: min(26rem, 56vh);
    max-height: min(26rem, 56dvh);
    overflow: auto;
    overscroll-behavior: contain;
  }
  .article-columns.has-toc .article-body :is(h2,h3,h4) { scroll-margin-top: 4.65rem; }
  .article-body { font-size: 1.0625rem; }
  .article-bottom { column-gap: 1.25rem; row-gap: 0; }
  .article-bottom a, .nav a, .panel-links a:not(.primary), .footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
  }
  .search :is(input,button), .suggestions button, .search-menu li, .primary { min-height: 2.75rem; }
  .search-menu ul { max-height: min(17rem, 44vh); max-height: min(17rem, 44dvh); }
  .suggestions { align-items: center; gap: 0 .7rem; margin-top: .55rem; }
  .webreed-promo--footer { margin-block: -1.4rem 2rem; }
}
@media (max-width: 650px) {
  .topbar .wrap { gap: .05rem .85rem; }
  .hero { padding-block: 1.7rem 1.2rem; }
  .hero-animals { margin-top: .5rem; }
  .footer-links { column-gap: .9rem; row-gap: 0; }
}
@media (max-width: 530px) {
  .webreed-promo--footer { grid-template-columns: 1fr; padding: 1.25rem; }
  .webreed-promo-product { width: min(100%, 13rem); }
}
@media (max-width: 500px) {
  .article-intro { grid-template-columns: 1fr; padding: 1rem; }
  .article-intro img { max-width: 13.5rem; }
  .article-body :is(th,td) { padding: .4rem; vertical-align: top; }
  .reading-time { margin-top: .55rem; }
  .hero-pattern::before, .hero-pattern::after { opacity: .16; }
}

body.admin-bar { --webreed-toolbar: 32px; }
body.admin-bar .article-columns.has-toc .article-sidebar {
  top: calc(1rem + var(--webreed-toolbar));
  max-height: calc(100dvh - 2rem - var(--webreed-toolbar));
}
body.admin-bar .article-body :is(h2,h3,h4) { scroll-margin-top: calc(1rem + var(--webreed-toolbar)); }
@media (max-width: 850px) {
  body.admin-bar .article-columns.has-toc .article-sidebar { top: var(--webreed-toolbar); max-height: none; }
  body.admin-bar .article-columns.has-toc .article-body :is(h2,h3,h4) { scroll-margin-top: calc(4.65rem + var(--webreed-toolbar)); }
}
@media (max-width: 782px) { body.admin-bar { --webreed-toolbar: 46px; } }
@media (max-width: 600px) { body.admin-bar { --webreed-toolbar: 0px; } }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }
.pagination .page-numbers { padding: .55rem; }
.article-intro.no-featured-image { grid-template-columns: 1fr; }
.capture-zoom::before {
  content: '';
  width: .7rem;
  height: .7rem;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  transform: translate(-2px,-2px);
}
.capture-zoom::after {
  content: '';
  position: absolute;
  width: .45rem;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transform: translate(5px,5px) rotate(45deg);
}

/* Language switcher (Polylang). */
.lang-switch a { display: inline-grid; place-items: center; min-width: 2.75rem; min-height: 2.75rem; padding: 0 .6rem; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; font-weight: 600; text-decoration: none; }
.lang-switch a:hover { border-color: #d981aa; background: var(--wash); text-decoration: none; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
