.menu-rail {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  display: flex;
  align-items: center;
}
.menu-rail > nav, .menu-rail > #regions {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  justify-content: flex-start;
  order: 0;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}
.menu-rail nav::-webkit-scrollbar { display: none; }
.menu-rail nav > * { flex: none; white-space: nowrap; }
.menu-rail nav > :focus-visible { outline-offset: -2px; }
.menu-rail > .rail-arrow {
  display: none;
  flex: 0 0 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.menu-rail.has-overflow > .rail-arrow { display: grid; }
.rail-arrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-inline-end: 2px solid currentColor;
  border-block-start: 2px solid currentColor;
  transform: rotate(45deg);
}
.rail-arrow:first-child::before { transform: rotate(-135deg); }
[dir="rtl"] .rail-arrow::before { transform: rotate(-45deg); }
[dir="rtl"] .rail-arrow:first-child::before { transform: rotate(135deg); }
.menu-rail > .rail-arrow:disabled { opacity: .28; cursor: default; }
@media (max-width: 1100px) {
  header:has(.menu-rail), header:has(>nav) { flex-wrap: wrap; }
  header > .menu-rail, header > nav { order: 3; flex: 1 0 100%; }
  header nav, #regions { min-width: 0; flex-wrap: nowrap; overflow-x: auto; }
  header nav { gap: 1rem; }
  header nav a, #regions > * { white-space: nowrap; }
}
button.reader-back-to-top {
  position: fixed;
  inset-inline-end: max(14px, env(safe-area-inset-right), env(safe-area-inset-left));
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 9;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 50%;
  background: rgba(20,48,39,.80);
  color: white;
  box-shadow: 0 1px 5px rgba(0,0,0,.24);
  cursor: pointer;
}
button.reader-back-to-top::before {
  content: '';
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: translateY(3px) rotate(45deg);
}
button.reader-back-to-top:focus-visible { outline: 3px solid #b7dc66; outline-offset: 2px; }
button.reader-back-to-top[hidden],
body:has(dialog[open], [aria-modal="true"]:not([hidden]), .privacy-dock:not([hidden])) button.reader-back-to-top { display: none; }

header .edition-account{position:relative;flex:none;z-index:12;order:0}
header .edition-account summary{display:grid;place-items:center;box-sizing:border-box;width:44px;height:44px;list-style:none;cursor:pointer;color:#21473f}
.edition-account summary::-webkit-details-marker{display:none}
.edition-account summary svg{width:22px;height:22px}
.edition-account[open] summary,.edition-account summary:hover{background:#e8eddd;border-radius:50%}
.edition-account>div{position:absolute;inset-inline-end:0;top:100%;min-width:max-content;max-width:90vw;padding:.35rem;background:#fff;color:#15352e;border:1px solid #abbab3;border-radius:.65rem;box-shadow:0 8px 20px #17352d22}
header .edition-account>div>a{display:flex;align-items:center;min-height:44px;padding-inline:.75rem;color:inherit;font:inherit;font-size:.9rem;text-decoration:none}
.edition-account a:hover{background:#eef2e6}
.edition-account :focus-visible{outline:2px solid #236256;outline-offset:2px}
header .edition-account>div>a[hidden]{display:none}

.edition-account [data-owner] strong{display:block;color:#26453c;padding:.6rem .75rem;border-bottom:1px solid #d6dfd0}
.edition-account [data-owner] form{margin:0}
.edition-account [data-owner] button{min-height:44px;background:transparent;color:inherit;width:100%;text-align:start;border:0;padding:0 .75rem;font:inherit;cursor:pointer}

@media (max-width: 650px) {
  header:has(> #saved-button) {
    display:grid;
    grid-template-columns:minmax(0,1fr) max-content 40px max-content;
    gap:.3rem .1rem;
    align-items:center;
    padding-inline:clamp(8px,2.4vw,16px);
  }
  header:has(> #saved-button) > a:first-child {
    grid-area:1/1;min-width:0;justify-self:start;max-width:100%;
  }
  header:has(> #saved-button) > a:first-child img {
    display:block;max-width:100%;width:clamp(68px,23vw,126px);height:auto;
  }
  header:has(> #saved-button) > .language-label {grid-area:1/2;margin-inline:0;width:max-content;}
  header:has(> #saved-button) > .language-label select {
    inline-size:auto;min-inline-size:0;min-height:44px;padding-inline:.35rem;font-size:.78rem;
  }
  header:has(> #saved-button) > .edition-account {grid-area:1/3;}
  header:has(> #saved-button) > .edition-account summary {width:40px;height:44px;}
  header:has(> #saved-button) > #saved-button {
    grid-area:1/4;justify-self:end;width:auto;min-height:44px;
    padding-inline:.36rem;white-space:nowrap;font-size:.78rem;
  }
  header:has(> #saved-button) > :is(nav,.menu-rail) {grid-area:2/1/3/-1;min-width:0;}
}
@media (max-width: 650px) {
  body header:not([hidden]):has(> #saved-button) {
    column-gap:1px;
    grid-template-columns:minmax(0,1fr) max-content 38px max-content;
  }
  header:has(> #saved-button) > .edition-account summary {width:38px;}
  header:has(> #saved-button) > .language-label select {
    padding-inline:2px;font-size:12px;
  }
  header:has(> #saved-button) > #saved-button {padding-inline:4px;}
  header:has(> #saved-button) #saved-count {margin-inline:2px 0;padding-inline:4px;}
}
