/* 2.1.9: complete story details, visible mobile inquiry and anchored return button. */
@media (max-width:1100px), (hover:none) and (pointer:coarse) {
  #lsr #ls-stories-detail[open] {
    display:grid;
    grid-template-rows:auto minmax(0,1fr);
    position:fixed;
    inset:0;
    width:100%;
    height:100vh;
    height:100dvh;
    min-width:0;
    min-height:0;
    max-width:none;
    max-height:none;
    margin:0;
    padding:0;
    border:0;
    border-radius:0;
    background:#fff;
    overflow:hidden;
    overscroll-behavior:none;
  }
  #lsr #ls-stories-detail > .ls-stories-toolbar {
    min-width:0;
    min-height:52px;
    gap:8px;
    padding:4px max(16px,env(safe-area-inset-right)) 4px max(16px,env(safe-area-inset-left));
  }
  #lsr #ls-stories-detail > .ls-stories-toolbar .ls-stories-toolbar-label {
    font-size:12px;
  }
  #lsr #ls-stories-detail > .ls-stories-toolbar .ls-stories-close {
    flex:0 0 auto;
    min-height:44px;
    white-space:nowrap;
  }
  #lsr #ls-stories-detail > .ls-stories-body {
    width:100%;
    height:100%;
    min-width:0;
    min-height:0;
    overflow-x:hidden;
    overflow-y:auto;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    padding:20px max(20px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));
  }
}
@media (max-width:1100px), (hover:none) and (pointer:coarse) and (max-height:700px) {
  #lsr .ls-app[data-design=atelier] .header .header-inner {
    gap:6px;
  }
  #lsr .ls-app[data-design=atelier] .header .header-inner .brand {
    flex:1 1 0;
    min-width:0;
    max-width:none;
    gap:6px;
  }
  #lsr .ls-app[data-design=atelier] .header .header-inner .brand > span {
    flex:1 1 auto;
    min-width:0;
  }
  #lsr .ls-app[data-design=atelier] .header .header-inner .brand > span > img.brand-wordmark {
    display:block;
    width:13.782em;
    max-width:100%;
    height:auto;
    object-fit:contain;
  }
  #lsr .ls-app[data-design=atelier] .header .header-inner .header-inquiry {
    display:inline-flex;
    position:static;
    inset:auto;
    flex:0 0 110px;
    align-items:center;
    justify-content:center;
    width:110px;
    min-width:0;
    max-width:110px;
    height:44px;
    min-height:44px;
    margin:0;
    padding:5px 8px;
    box-sizing:border-box;
    border-radius:8px;
    background:#005f4e;
    color:#fff;
    font:600 12px/1.2 Arial,Helvetica,sans-serif;
    text-align:center;
    white-space:normal;
    text-decoration:none;
  }
  #lsr .ls-app[data-design=atelier] .header .header-inner .header-inquiry-arrow {
    display:none;
  }
}
@media (max-width:480px) {
  #lsr .ls-app[data-design=atelier] .header .header-inner {
    width:calc(100% - 24px);
  }
  #lsr .ls-app[data-design=atelier] .header .header-inner .header-inquiry {
    flex-basis:90px;
    width:90px;
    max-width:90px;
  }
  #lsr .ls-app[data-design=atelier].has-js .header .header-inner .menu-toggle {
    width:44px;
    min-width:44px;
    padding:8px;
  }
  #lsr .ls-app[data-design=atelier].has-js .header .header-inner .menu-toggle .menu-label {
    display:none;
  }
}
/* The existing button is moved outside the container-query layout by the addon. */
#lsr > .ls-scroll-top {
  position:fixed!important;
  inset:auto max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) auto!important;
  width:auto;
  height:auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-width:112px;
  min-height:48px;
  max-width:calc(100vw - 24px);
  padding:10px 18px;
  box-sizing:border-box;
  border:1px solid #fff;
  border-radius:26px;
  background:#145f4e;
  color:#fff;
  box-shadow:0 3px 12px #102b2433;
  font:650 14px/1.4 Arial,Helvetica,sans-serif;
  cursor:pointer;
  margin:0!important;
  transform:none!important;
  z-index:80;
}
#lsr > .ls-scroll-top:hover { background:#104d40;color:#fff; }
#lsr > .ls-scroll-top:focus-visible { outline:3px solid #145f4e;outline-offset:3px; }
#lsr > .ls-scroll-top span { font-size:20px;line-height:1; }
#lsr > .ls-scroll-top[hidden],
#lsr.ls-stories-open > .ls-scroll-top,
#lsr:has(dialog[open]) > .ls-scroll-top {
  display:none!important;
}
