/* S302 (addendum-2 section 3): the r1 menu. Linked at the end of the body while STOREFRONT_SKIN is
   r1 (shell/skin-sheet.tsx), so it is never on a first paint: the drawer is closed until a tap,
   and skin-r1.css hides it until then. The drawer opens in the flow under the header, as the
   shared drawer does (shell.css: a fixed panel inside the sticky header broke on WebKit). */
html[data-skin='r1'] .tv-drawer[open] ~ .r1-drawer {
  display: block;
  order: 99;
  flex: 1 0 100%;
  max-height: 70svh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 0 env(safe-area-inset-bottom);
  background: #ffffff;
  border-top: 1px solid #eef1ec;
  color: #1e2a22;
}
html[data-skin='r1'] .r1-drawer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
html[data-skin='r1'] .r1-drawer__nav a,
html[data-skin='r1'] .r1-drawer__big {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 20px;
  font-size: var(--tv-fs-16);
  font-weight: 600;
  color: #1e2a22;
  text-decoration: none;
  border-bottom: 1px solid #eef1ec;
}
html[data-skin='r1'] .r1-drawer__big {
  min-height: 56px;
}
html[data-skin='r1'] .r1-drawer a:active {
  background: #f4f6f2;
}
html[data-skin='r1'] .r1-drawer a[aria-current='page'] {
  box-shadow: inset 3px 0 0 #2b6644;
}
html[data-skin='r1'] .r1-drawer__h {
  margin: 0;
  padding: 18px 20px 6px;
  font-size: var(--tv-fs-12);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #5b6b60;
}
html[data-skin='r1'] .r1-drawer .tv-drawer__lang {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid #eef1ec;
}
html[data-skin='r1'] .r1-drawer .tv-header__badge {
  position: static;
}
@media (max-width: 1299px) {
  html[data-skin='r1'] .tv-drawer[open] ~ .tv-drawer__panel:not(.r1-drawer) {
    display: none;
  }
}
@media (min-width: 1300px) {
  html[data-skin='r1'] .tv-header__in:has(.tv-drawer[open]) {
    flex-wrap: wrap;
  }
  html[data-skin='r1'] .tv-drawer {
    flex: 0 0 44px;
  }
  html[data-skin='r1'] .tv-drawer__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
  }
  html[data-skin='r1'] .tv-drawer__open,
  html[data-skin='r1'] .tv-drawer__close {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  html[data-skin='r1'] .tv-drawer[open] ~ .r1-drawer {
    max-width: 360px;
  }
  html[data-skin='r1'] .r1-acct {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    color: #1e2a22;
  }
}
/* S302 fix 3: while the menu is open the page behind does not scroll (touch or wheel, on the
   panel or beside it); the panel keeps its own scroll (overscroll-behavior above). Pure CSS, no
   position trick (it breaks the sticky header on WebKit). Scroll anchoring stays on: it keeps the
   view still when the panel opens in the flow and brings scrollY back exactly on close. */
@media (max-width: 1299px) {
  html[data-skin='r1']:has(.tv-drawer[open]) {
    overflow: hidden;
  }
}
/* S302 fix 6: the r1 footer is light, so its leaf pill takes the page ink (the dark footer's pale
   ink measured 1.2:1 there) */
html[data-skin='r1'] .tv-footer .pg-natural--dark {
  color: #1e2a22;
  background: #e7f0e9;
}
html[data-skin='r1'] .tv-footer .pg-natural--dark svg {
  color: #2b6644;
}

/* S303: the trust row at the top of the footer's legal lines, every r1 page */
html[data-skin='r1'] .tv-footer .tv-trustrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}
html[data-skin='r1'] .tv-footer .tv-trustrow li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  max-width: 100%;
  padding: 4px 10px;
  border: 1px solid #2b6644;
  border-radius: 6px;
  color: #1e2a22;
  font-size: var(--tv-fs-12);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
html[data-skin='r1'] .tv-footer .tv-trustrow__i {
  flex: none;
  color: #2b6644;
}
