/* The dispatch and its space are present in the initial HTML and CSS. */
body:has(> .manifesto-dispatch) {
  --manifesto-dispatch-height: calc(2.5rem + env(safe-area-inset-top));
  padding-block-start: var(--manifesto-dispatch-height);
}
.manifesto-dispatch {
  position: fixed;
  z-index: 90;
  inset: 0 0 auto;
  display: grid;
  place-items: center;
  min-height: var(--manifesto-dispatch-height);
  box-sizing: border-box;
  padding: env(safe-area-inset-top) 1rem 0;
  border-bottom: 1px solid #79504b;
  background: #141313;
  color: #f2dfc5;
  font: 600 .825rem/1.28 var(--sans, system-ui, sans-serif);
  letter-spacing: .025em;
  text-align: center;
  text-decoration: none;
}
.manifesto-dispatch:hover { color: #fff4e4; text-decoration: underline; text-underline-offset: .23em; }
.manifesto-dispatch:focus-visible { outline: 2px solid #e5ba8e; outline-offset: -3px; }
.manifesto-dispatch-compact { display: none; }
body > .manifesto-dispatch ~ .bar,
body > .manifesto-dispatch ~ .nav { top: var(--manifesto-dispatch-height); }
body > .manifesto-dispatch ~ .bar { padding-block-start: .9rem; }
body > .manifesto-dispatch ~ .app { height: calc(100dvh - var(--manifesto-dispatch-height)); }
body:has(> .manifesto-dispatch) .skip:focus { top: var(--manifesto-dispatch-height); }
body:has(> .manifesto-dispatch) .article-content h2[id] { scroll-margin-top: calc(100px + var(--manifesto-dispatch-height)); }
body:has(> .manifesto-dispatch) [id]:target:not(.article-content h2) { scroll-margin-top: calc(72px + var(--manifesto-dispatch-height)); }

.bar .sheet {
  top: calc(var(--manifesto-dispatch-height, env(safe-area-inset-top)) + 44px + 1.8rem);
  height: auto;
  max-height: none;
}
[data-menu="more"] > .drop-panel { right: 0; left: auto; }
.bar [data-manifesto-link="nav"], .nav [data-manifesto-link="nav"] { color: #e6c29a; }
.drop-panel .manifesto-appliance-link,
.nav-dropdown-menu .manifesto-appliance-link,
.sheet .sheet-sub .manifesto-appliance-link {
  grid-column: 1 / -1;
  border-top: 1px solid #79504b;
  color: #e6c29a;
}
.sheet .sheet-sub .manifesto-appliance-link { margin-top: .25rem; }
.mobile-more > summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: .35rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  cursor: pointer;
}
.mobile-more > summary::-webkit-details-marker { display: none; }
.mobile-more > .mobile-more-panel { padding-inline-start: 1rem; }
.mobile-more[open] > summary .caret { transform: rotate(180deg); }
.manifesto-footer-nav { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-block: .6rem; }
.manifesto-footer-nav a, .site-footer [data-manifesto-link="footer"] { color: #e6c29a; }
.dossier-manifesto-link { display: inline-block; margin-top: .9rem; text-decoration: underline; text-underline-offset: .22em; }
.manifesto-dossier-callout { margin: 2rem 0 0; padding: 1.1rem 1.3rem; border-left: 2px solid #a6625d; background: #201919; }
.manifesto-dossier-callout a { color: #e6c29a; font-weight: 650; }

@media (max-width: 63.99rem) {
  body:has(> .manifesto-dispatch) { --manifesto-dispatch-height: calc(3rem + env(safe-area-inset-top)); }
  .manifesto-dispatch-wide { display: none; }
  .manifesto-dispatch-compact { display: inline; }
}
@media (min-width: 80rem) and (max-width: 83.99rem) {
  .bar .nav-links { display: flex; align-items: center; gap: .8rem; }
  .bar .menu { display: none; }
  .bar .nav-links .nav-assistant { display: none; }
  .bar nav a, .bar summary { letter-spacing: .12em; }
}
@media (min-width: 80rem) {
  #nav .nav-links { display: flex; align-items: center; gap: .8rem; }
  #nav .nav-toggle { display: none; }
}

@media (min-width: 80rem) {
  .bar:has(.nav-links) { padding-inline: clamp(1rem, 2.4vw, 2rem); }
  .bar:has(.nav-links) nav { gap: 1.1rem; }
  .bar .nav-links { gap: clamp(.75rem, 1vw, .95rem); }
}

#mobileMenu.is-open { max-height: calc(100dvh - 90px - var(--manifesto-dispatch-height, 0px)); }
#mobileMenu .mobile-more > summary { padding-inline: 32px; }
#mobileMenu .mobile-more-panel { display: flex; flex-direction: column; }
