/* The approved Tab Lab studio scene, with content-led spacing. */
#tablabInner.whywebsite-page .whywebsite-photo-hero {
  min-height: 100dvh;
  padding: clamp(90px, 12dvh, 130px) 0 48px;
  box-sizing: border-box;
}
#tablabInner.whywebsite-page .whywebsite-photo {
  position: absolute; inset: 0; height: 100%; object-fit: cover;
  object-position: right center;
}
#tablabInner.whywebsite-page .whywebsite-copy {
  position: relative; top: auto; left: auto; transform: none;
  margin-left: 14%; width: 44%; max-width: 640px;
}
#tablabInner.whywebsite-page .whywebsite-kicker { color: #5a3824; }
#tablabInner.whywebsite-page .whywebsite-copy h1 {
  font-size: clamp(42px, 4.8vw, 80px); line-height: 1.02;
}
#tablabInner.whywebsite-page .whywebsite-copy p {
  font-size: clamp(16px, 1.18vw, 21px); line-height: 1.48;
}
@media (max-width: 820px) and (orientation: portrait),
       (max-width: 1100px) and (max-height: 700px) and (orientation: landscape) {
  #tablabInner.whywebsite-page .whywebsite-desktop { display: none !important; }
  #tablabInner.whywebsite-page .whywebsite-mobile-story {
    display: block !important; position: fixed !important;
    inset: var(--chrome-height) 0 0 !important;
    height: calc(100dvh - var(--chrome-height)) !important;
    min-height: 0 !important; padding: 0 !important;
    background: linear-gradient(135deg,#fff8ed,#efdbc1) !important;
    overflow-y: auto !important; overflow-x: hidden !important;
  }
  #tablabInner#tablabInner.whywebsite-page .whywebsite-mobile-inner {
    height: auto !important; min-height: 100% !important;
    width: 100% !important; box-sizing: border-box !important;
    padding: clamp(20px,4dvh,40px) 7% !important;
    border: 0 !important; box-shadow: none !important;
    background: transparent !important; overflow: visible !important;
    display: flex !important; flex-direction: column !important;
  }
  #tablabInner#tablabInner.whywebsite-page .whywebsite-mobile-story h1 {
    font-size: clamp(28px,8.2vw,46px); line-height: 1.03;
    white-space: normal; margin: 0;
  }
  #tablabInner#tablabInner.whywebsite-page .whywebsite-mobile-pill {
    display: block; min-height: 0; padding: 12px 16px;
  }
  #tablabInner#tablabInner.whywebsite-page .whywebsite-mobile-pill p { margin: 0; }
  #tablabInner#tablabInner.whywebsite-page .whywebsite-steps,
  #tablabInner#tablabInner.whywebsite-page .whywebsite-steps li {
    min-width: 0;
  }
  #tablabInner#tablabInner.whywebsite-page p { overflow-wrap: anywhere; }
}
@media (max-width:1100px) and (max-height:700px) and (orientation:landscape) {
  #tablabInner#tablabInner.whywebsite-page .whywebsite-mobile-inner {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) minmax(0,1.35fr);
    grid-template-rows: max-content max-content max-content max-content;
    gap: 8px 24px; padding: 18px 5% !important;
  }
  #tablabInner#tablabInner.whywebsite-page .whywebsite-mobile-story h1 {
    font-size: clamp(24px,4.6vw,38px);
  }
}

/* Tall desktop/tablet windows show the complete studio above the copy. */
@media (min-width:821px) and (max-aspect-ratio:4/3) {
  #tablabInner.whywebsite-page .whywebsite-photo-hero { padding: 0 0 40px; }
  #tablabInner.whywebsite-page .whywebsite-photo { position: static; height: auto; }
  #tablabInner.whywebsite-page .whywebsite-copy { margin: 32px auto 0; width: 84%; }
}

/* Selected floating header: page-scoped, with the existing navigation actions. */
#tablabInner#tablabInner .tablab-inner-browserbar { display: none !important; }
#tablabInner#tablabInner .tablab-studio-brand {
  position: fixed; z-index: 10021; top: 22px; left: 3%;
  display: flex; align-items: center; justify-content: center;
  padding: 12px 30px; border-radius: 18px;
  background: linear-gradient(#fffdf7,#f5eadb); color: #34251c;
  font: 32px/1.1 Georgia,serif; text-decoration: none;
  box-shadow: inset 0 1px 1px #fff,0 5px 14px #72523235;
}
#tablabInner#tablabInner .tablab-studio-brand strong { font-weight: 700; white-space: pre; }
#tablabInner#tablabInner .foundry-global-nav {
  position: fixed !important; inset: 22px 3% auto auto !important;
  width: auto !important; height: auto !important; min-width: 0 !important;
  display: flex !important; gap: 12px !important; padding: 0 !important;
  background: none !important; border: 0 !important; border-radius: 0 !important;
  box-shadow: none !important; backdrop-filter: none !important;
  transform: none !important; filter: none !important; overflow: visible !important;
}
#tablabInner#tablabInner .foundry-global-nav::before,
#tablabInner#tablabInner .foundry-global-nav::after,
#tablabInner#tablabInner .foundry-global-control::before,
#tablabInner#tablabInner .foundry-global-control::after { display: none !important; }
#tablabInner#tablabInner .foundry-global-nav .foundry-global-control {
  position: relative !important; inset: auto !important; flex: none !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  width: 60px !important; height: 60px !important; min-width: 44px !important;
  min-height: 44px !important; margin: 0 !important; padding: 0 !important;
  border: 1px solid #ddcab2 !important; border-radius: 16px !important;
  background: linear-gradient(#fffdf7,#f5eadb) !important; color: #34251c !important;
  box-shadow: inset 0 1px 1px #fff,0 5px 14px #72523235 !important;
  transform: none !important; filter: none !important; clip-path: none !important;
}
#tablabInner#tablabInner .foundry-global-control svg {
  width: 28px !important; height: 28px !important; stroke: #34251c !important;
  filter: none !important; fill: none !important;
}
#tablabInner#tablabInner .foundry-global-home svg path { fill: #34251c !important; stroke: none !important; }
#tablabInner#tablabInner .foundry-global-menu span {
  display: block !important; position: absolute !important; top: 50% !important;
  left: 50% !important; width: 26px !important; height: 3px !important;
  margin: 0 !important; border-radius: 2px !important; background: #34251c !important;
  box-shadow: none !important; opacity: 1 !important;
  transform: translate(-50%,-50%) !important;
}
#tablabInner#tablabInner .foundry-global-menu span:nth-child(1) { transform: translate(-50%,calc(-50% - 8px)) !important; }
#tablabInner#tablabInner .foundry-global-menu span:nth-child(3) { transform: translate(-50%,calc(-50% + 8px)) !important; }
#tablabInner#tablabInner.foundry-global-open .foundry-global-menu span:nth-child(1) { transform: translate(-50%,-50%) rotate(46deg) !important; }
#tablabInner#tablabInner.foundry-global-open .foundry-global-menu span:nth-child(2) { opacity: 0 !important; }
#tablabInner#tablabInner.foundry-global-open .foundry-global-menu span:nth-child(3) { transform: translate(-50%,-50%) rotate(-43deg) !important; }
#tablabInner#tablabInner .tablab-studio-brand:focus-visible { outline: 3px solid #a64523; outline-offset: 3px; }
@media (max-width:820px) and (orientation:portrait),
       (max-width:1100px) and (max-height:700px) and (orientation:landscape) {
  #tablabInner#tablabInner { --chrome-height: 76px; }
  #tablabInner#tablabInner .tablab-studio-brand {
    top: 14px; left: 12px; height: 44px; box-sizing: border-box;
    padding: 8px 14px; border-radius: 12px; font-size: 22px;
  }
  #tablabInner#tablabInner .foundry-global-nav { inset: 14px 12px auto auto !important; gap: 8px !important; }
  #tablabInner#tablabInner .foundry-global-nav .foundry-global-control {
    width: 44px !important; height: 44px !important; border-radius: 12px !important;
  }
}

#tablabInner#tablabInner.whywebsite-page { background: #fff8ed !important; }

/* Phone landscape: read the steps in one vertical sequence. */
@media (max-width:1100px) and (max-height:700px) and (orientation:landscape) {
  #tablabInner#tablabInner.whywebsite-page .whywebsite-steps {
    display:grid;
    grid-template-columns:minmax(0,1fr);
    align-self:start;
    gap:10px;
  }
  #tablabInner#tablabInner.whywebsite-page .whywebsite-steps li {
    grid-template-columns:36px minmax(0,1fr);
    min-height:36px;
    gap:12px;
  }
  #tablabInner#tablabInner.whywebsite-page .whywebsite-steps span {
    width:36px; height:36px;
  }
  #tablabInner#tablabInner.whywebsite-page .whywebsite-steps p {
    font-size:clamp(16px,2.1vw,20px);
    line-height:1.2;
    overflow-wrap:normal;
  }
}
