/* Shared mobile header, copied from the approved opening screens. */
.tablab-inner-browserbar { display:none; }
@media (max-width:820px) and (orientation:portrait),
       (max-width:1100px) and (max-height:700px) and (orientation:landscape) {
  #tablabInner { --chrome-height:104px; }
  #tablabInner#tablabInner .tablab-inner-browserbar {
    display:block; position:fixed; inset:0 0 auto; z-index:10019;
    padding:0; border:0; margin:0; pointer-events:none;
  }
  #tablabInner#tablabInner .mobile-browser-brand { z-index:10021; }
  #tablabInner#tablabInner .foundry-about-header,
  #tablabInner#tablabInner .foundrycare-header,
  #tablabInner#tablabInner .boardroom-mobile-wordmark,
  #tablabInner#tablabInner .why-foundry-wordmark { display:none !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 .tablab-inner-browserbar { height: 48px !important; background: linear-gradient(110deg,#cbb9a6,#d8cabc) !important; }
  #tablabInner#tablabInner .tablab-inner-browserbar::before, #tablabInner#tablabInner .tablab-inner-browserbar::after { display: none !important; }
  #tablabInner#tablabInner .mobile-browser-brand {
    position: fixed; z-index: 160; inset: 0 auto auto 0; height: 48px;
    display: flex; align-items: end; font-family: Arial,sans-serif; color: #080807;
  }
  #tablabInner#tablabInner .mobile-lights { display:flex; align-self:center; gap:10px; padding:0 16px 0 20px; }
  #tablabInner#tablabInner .mobile-lights i { width:14px; height:14px; border-radius:50%; background:#ff4035; }
  #tablabInner#tablabInner .mobile-lights i:nth-child(2) { background:#f6a400; }
  #tablabInner#tablabInner .mobile-lights i:nth-child(3) { background:#00bb19; }
  #tablabInner#tablabInner .mobile-brand-name { display:grid; place-items:center; height:40px; width:122px; border-radius:12px 12px 0 0; background:linear-gradient(#fffaf2,#f4ecdf); font-family:Georgia,'Times New Roman',serif; font-size:20px; font-weight:400; color:#2a1d17; }
  #tablabInner#tablabInner .mobile-brand-name strong { font-weight:700; }
  #tablabInner#tablabInner .mobile-brand-name em { font-weight:400; font-style:italic; }
  #tablabInner#tablabInner .mobile-brand-plus { display:grid; place-items:center; width:54px; height:40px; border-radius:12px 12px 0 0; background:linear-gradient(#eee2d1,#dfccb4); border:1px solid #ad9277; border-bottom:0; box-sizing:border-box; box-shadow:inset 0 1px 0 #fff; color:#080807; font-size:30px; font-weight:300; }
  #tablabInner#tablabInner .foundry-global-nav {
    position:fixed !important; z-index:10020 !important; inset:48px 0 auto !important; width:100% !important; min-width:0 !important;
    height:56px !important; box-sizing:border-box !important; display:flex !important;
    flex-direction:row !important; align-items:center !important; gap:12px !important;
    padding:6px 28px !important; margin:0 !important; border:0 !important; border-radius:0 !important;
    background:#fbf3e6 !important; box-shadow:0 1px 0 #e0cfb9 !important;
    transform:none !important; clip-path:none !important; backdrop-filter:none !important; overflow:visible !important;
  }
  #tablabInner#tablabInner .foundry-global-nav .foundry-global-control {
    position:static !important; inset:auto !important; display:flex !important; flex:1 1 0 !important;
    justify-content:center !important; align-items:center !important; width:auto !important; min-width:0 !important;
    height:44px !important; min-height:44px !important; padding:0 !important; margin:0 !important;
    border:1px solid #d3bea6 !important; border-radius:18px !important;
    background:linear-gradient(#fffaf2,#f3e7d5) !important; color:#080807 !important;
    box-shadow:inset 0 1px 1px #fff,0 2px 1px #c8b297,0 5px 7px #72523226 !important;
    transform:none !important; filter:none !important; clip-path:none !important;
  }
  #tablabInner#tablabInner .foundry-global-control svg { visibility:visible !important; width:28px !important; height:28px !important; fill:none !important; stroke:#080807 !important; filter:none !important; }
  #tablabInner#tablabInner .foundry-global-back svg path { fill:none !important; stroke:#080807 !important; stroke-width:3 !important; }
  #tablabInner#tablabInner .foundry-global-home svg path { fill:#080807 !important; stroke:none !important; }
  /* Reuse the drawer's existing open state for the original uneven-cross motion. */
  #tablabInner#tablabInner .foundry-global-nav .foundry-global-menu { position:relative !important; }
  #tablabInner#tablabInner .foundry-global-menu::after { content:none !important; display:none !important; }
  #tablabInner#tablabInner .foundry-global-menu span {
    display:block !important; visibility:visible !important; position:absolute !important;
    top:50% !important; left:50% !important; right:auto !important; bottom:auto !important;
    width:26px !important; height:3px !important; margin:0 !important; padding:0 !important;
    border:0 !important; border-radius:2px !important; background:#080807 !important;
    box-shadow:none !important; filter:none !important; opacity:1 !important;
    transform:translate(-50%,-50%) !important; transform-origin:center !important;
    transition:transform 420ms cubic-bezier(.2,.8,.2,1),opacity 220ms ease,width 320ms ease !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) { width:24px !important; transform:translate(calc(-50% + 1px),-50%) rotate(46deg) !important; }
  #tablabInner#tablabInner.foundry-global-open .foundry-global-menu span:nth-child(2) { opacity:0 !important; transform:translate(-50%,-50%) scaleX(.2) !important; }
  #tablabInner#tablabInner.foundry-global-open .foundry-global-menu span:nth-child(3) { width:27px !important; transform:translate(calc(-50% - 2px),-50%) rotate(-43deg) !important; }
  #tablabInner#tablabInner .foundry-global-control:focus-visible, #tablabInner#tablabInner .hero-button:focus-visible, #tablabInner#tablabInner .explore-choice:focus-visible { outline:3px solid #a64523 !important; outline-offset:3px !important; }

  #tablabInner#tablabInner .foundry-global-drawer {
    top:var(--chrome-height) !important;
    max-width:calc(100vw - 24px) !important;
    max-height:calc(100dvh - var(--chrome-height) - 12px) !important;
    overflow:auto !important;
  }
}
@media (max-width:820px) and (orientation:portrait) {
  #tablabInner#tablabInner .boardroom { padding-top:124px !important; }
  #tablabInner#tablabInner .whywebsite-mobile-inner { padding-top:114px !important; overflow-y:auto; }
  #tablabInner#tablabInner .foundry-about-layout { padding-top:130px !important; }
  #tablabInner#tablabInner .foundrycare-content { padding-top:126px !important; }
}
@media (max-width:1100px) and (max-height:700px) and (orientation:landscape) {
  #tablabInner { --chrome-height:52px; }
  #tablabInner#tablabInner .tablab-inner-browserbar { height:52px !important; }
  #tablabInner#tablabInner .mobile-browser-brand { height:52px; }
  #tablabInner#tablabInner .mobile-brand-name,
  #tablabInner#tablabInner .mobile-brand-plus { height:43px; }
  #tablabInner#tablabInner .foundry-global-nav {
    inset:0 2.5% auto auto !important; width:27% !important;
    height:52px !important; padding:4px 0 !important;
    background:none !important; box-shadow:none !important; gap:8px !important;
  }
  #tablabInner#tablabInner .foundry-global-nav .foundry-global-control { height:44px !important; }
}
@media (prefers-reduced-motion:reduce) {
  #tablabInner#tablabInner .foundry-global-menu span { transition:none !important; }
}

/* Keep the complete Why page visible when phone browser chrome reduces height. */
@media (max-width:1100px) and (max-height:700px) and (orientation:landscape) {
  #tablabInner#tablabInner.whywebsite-page .whywebsite-mobile-inner {
    box-sizing:border-box;
    padding:58px max(16px,env(safe-area-inset-right)) 10px max(16px,env(safe-area-inset-left));
    grid-template-columns:minmax(0,1fr) minmax(0,1.45fr);
    grid-template-rows:auto auto minmax(0,1fr) auto;
    column-gap:20px;
    overflow-y:auto;
  }
  #tablabInner#tablabInner.whywebsite-page .whywebsite-mobile-story h1 {
    font-size:clamp(24px,8dvh,38px); line-height:.98; white-space:nowrap;
  }
  #tablabInner#tablabInner.whywebsite-page .whywebsite-copper-rule { margin:6px 0; }
  #tablabInner#tablabInner.whywebsite-page .whywebsite-mobile-intro {
    font-size:clamp(16px,5dvh,20px); line-height:1.1;
  }
  #tablabInner#tablabInner.whywebsite-page .whywebsite-steps { gap:8px 14px; }
  #tablabInner#tablabInner.whywebsite-page .whywebsite-steps li {
    grid-template-columns:28px minmax(0,1fr); gap:8px; min-height:28px;
  }
  #tablabInner#tablabInner.whywebsite-page .whywebsite-steps span { width:28px; height:28px; font-size:14px; }
  #tablabInner#tablabInner.whywebsite-page .whywebsite-steps p { font-size:14px; line-height:1.12; }
  #tablabInner#tablabInner.whywebsite-page .whywebsite-mobile-value {
    padding-top:8px; font-size:13px; line-height:1.2;
  }
  #tablabInner#tablabInner.whywebsite-page .whywebsite-mobile-pill { min-height:44px; }
  #tablabInner#tablabInner.whywebsite-page .whywebsite-mobile-pill p { font-size:14px; line-height:1.12; }
}
