/* Responsive finishing layer for the supplied Cup S application. */
html { scroll-padding-top: 100px; }
body { overflow-x: clip; }
#root { overflow-x: clip; min-width: 0; }
#root main { min-width: 0; }
/* Top hero (hero-coffee.mp4): a touch below full viewport; phones use svh for browser chrome. */
#root main section:has(video source[src*="hero-coffee.mp4"]) {
  min-height: 93dvh;
}
@media (max-width: 767px) {
  #root main section:has(video source[src*="hero-coffee.mp4"]) {
    min-height: 88svh;
  }
}
#root button, #root a, .cups-touch-menu summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
#root :focus-visible { outline: 3px solid #835236; outline-offset: 4px; }
#root input, #root textarea, #root select { font-size: 16px; }
#root header nav a { min-height: 44px; }
#root header > div { position:relative; padding:.45rem 1rem .85rem !important; align-items:flex-start !important; }
.cups-header-brand { position:relative; display:flex; flex-direction:column; align-items:flex-start; max-width:min(100%, 240px); flex-shrink:0; min-width:0; }
.cups-header-brand > a[aria-label="Cup S"] { display:block; line-height:0; }
.cups-header-context {
  position:absolute;
  z-index:30;
  top:calc(100% + 5px);
  inset-inline-start:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  width:178px;
  margin:0;
}
.cups-header-context-card {
  position:relative;
  display:grid;
  place-items:center;
  width:178px;
  height:52px;
  padding:8px 10px;
  overflow:hidden;
  border:1px solid #8f5a4038;
  border-radius:18px;
  background:linear-gradient(145deg,#fffdf8f2,#faf7f0e8);
  box-shadow:0 10px 28px #60462d1a,inset 0 1px 0 #fff;
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}
.cups-header-context-card::before {
  content:"";
  position:absolute;
  inset:35% -15% -65%;
  background:radial-gradient(ellipse at center,#c59c7238,transparent 68%);
  pointer-events:none;
}
.cups-header-context-card:hover {
  transform:translateY(-2px);
  border-color:#8f5a4070;
  box-shadow:0 14px 32px #60462d26,inset 0 1px 0 #fff;
}
.cups-header-context-logo {
  position:relative;
  z-index:1;
  display:block;
  width:156px;
  height:34px;
  object-fit:cover;
  object-position:center;
}
.cups-header-context-back {
  display:flex;
  align-items:center;
  justify-content:center;
  width:30px;
  min-height:30px;
  margin-top:3px;
  padding:0;
  border:0;
  border-radius:50%;
  background:transparent;
  color:#813a20 !important;
  transition:transform .2s ease;
}
.cups-header-context-back-arrow {
  display:grid;
  place-items:center;
  width:26px;
  height:26px;
  flex:0 0 26px;
  border-radius:50%;
  background:#a04720;
  color:#fff;
  font-size:1rem;
  line-height:1;
  transition:transform .2s ease,background .2s ease;
}
.cups-header-context-back:hover { transform:translateY(-1px); }
.cups-header-context-back:hover .cups-header-context-back-arrow { transform:translateX(-2px); background:#813a20; }
html[dir="rtl"] .cups-header-context-back:hover .cups-header-context-back-arrow { transform:translateX(2px); }
.cups-mobile-company-context { display:grid; gap:4px; margin-top:20px; padding:18px 8px 0; border-top:1px solid #ffffff1f; }
.cups-mobile-company-context p { margin:0 0 8px; color:#6d6259; font-size:.72rem; font-weight:700; line-height:1.5; text-transform:uppercase; }
.cups-mobile-company-context a { min-height:44px; display:flex; align-items:center; color:#ffad72; font-size:.85rem; font-weight:800; }
.cups-company-footer-context { margin:18px 0 0; padding-left:12px; border-left:2px solid #b66c4a; color:#6d6259; font-size:.76rem; line-height:1.65; }
.cups-company-footer-context a { color:#9d5436; font-weight:800; }
.cups-touch-menu { padding-bottom: 16px; }
.cups-menu-hint { margin: 0 0 20px; color: #655b50; font-size: 13px; text-align: center; }
.cups-drink-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 12px; }
.cups-drink { min-width: 0; overflow: hidden; border: 1px solid #8f5a4033; border-radius: 20px; background: #faf7f0aa; box-shadow: 0 8px 25px #60462d08; }
.cups-drink summary { display: grid; cursor: pointer; list-style: none; min-height: 44px; }
.cups-drink summary::-webkit-details-marker { display: none; }
.cups-drink-photo { display: grid; place-items: center; aspect-ratio: 1; padding: 14px; background: radial-gradient(ellipse at bottom,#c59c7225,transparent 65%); }
.cups-drink-photo img { width: 100%; height: 100%; max-height: 190px; object-fit: contain; }
.cups-drink-name { padding: 8px 12px 0; color: #443b34; font-weight: 800; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; white-space:normal; text-overflow:clip; }
.cups-drink-more { padding: 8px 12px 14px; color: #865030; font-size: 12px; font-weight: 700; }
.cups-drink[open] { background: #faf7f0; border-color: #8f5a4080; }
.cups-drink-description { margin: 0; padding: 0 12px 16px; color: #60554a; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
@media (max-width: 767px) {
  #root header > div { padding:.45rem .75rem 1.1rem !important; }
  .cups-header-brand { max-width:min(100%, 210px); }
  .cups-header-context { width:154px; }
  .cups-header-context-card { width:154px; height:46px; padding:7px 9px; border-radius:16px; }
  .cups-header-context-logo { width:136px; height:30px; }
  /* An unpaired drink keeps one card's width, centered on the final row. */
  .cups-drink-grid > .cups-drink:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc((100% - 12px) / 2);
    justify-self: center;
  }
  #root .section { padding-top: 64px; padding-bottom: 64px; }
  #root header { padding-top: max(12px,env(safe-area-inset-top)); }
  #root header img { max-width: 135px; object-fit: contain; }
  #root .container-page { min-width: 0; }
  #root .cursor-ring, #root .cursor-orb { display: none; }
  #root [aria-label='Toggle language'], #root .btn-primary, #root .btn-ghost { min-height: 44px; }
  #root .h-display { overflow-wrap: anywhere; }
  #root footer { margin-top: 28px; }
  #root [aria-hidden='true'].fixed { visibility: hidden; }
  #root .fixed.inset-0 > .absolute.right-0 { overflow-y: auto; overscroll-behavior: contain; padding-bottom: env(safe-area-inset-bottom); }
}
@media (max-height: 540px) and (max-width: 900px) {
  #root .fixed.inset-0 > .absolute.right-0 { padding-top: 80px; overflow-y: auto; }
}
@media (prefers-reduced-motion: reduce) {
  #root .reveal-up { opacity: 1 !important; transform: none !important; }
  #root .marquee-track { animation-play-state: paused !important; }
}
