/* Approved night Boardroom, with live content and the shared cream header. */
#tablabInner#tablabInner {
 color-scheme: dark;
 color: #f3eee7 !important;
 background: #260c09 url('../assets/backgrounds/tablab-boardroom-night.webp') center / cover fixed no-repeat !important;
}
#tablabInner .page-shade {background: linear-gradient(90deg,rgba(12,3,2,.35),rgba(12,3,2,.10) 55%,rgba(12,3,2,.18));}
#tablabInner::after {box-shadow:none;}
#tablabInner h1 span {color:#fff8ee;}
#tablabInner .intro-copy {color:#fff8ee;}
#tablabInner .eyebrow,#tablabInner .board-label,#tablabInner .board-arrow {color:#eed4aa;}
#tablabInner .intro-rule {background:#f3eee7;box-shadow:none;}
#tablabInner .board-card {background:rgba(24,15,12,.76);}
#tablabInner .board-description {color:#eee2d2;}
#tablabInner .board-card:hover,#tablabInner .board-card:focus-visible {background:rgba(24,15,12,.88);}
/* 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;
  }
}

@media (min-width:901px) {
 #tablabInner .boardroom {padding-top:110px; padding-bottom:40px;}
}
@media (max-width:900px) {
 #tablabInner#tablabInner {height:auto;min-height:100dvh;overflow-y:auto !important;background-attachment:scroll !important;}
 #tablabInner#tablabInner .boardroom {height:auto !important;min-height:100dvh !important;overflow:visible !important;padding-top:92px !important;grid-template-rows:auto auto !important;}
 #tablabInner#tablabInner .intro {align-self:center !important;}
 #tablabInner#tablabInner #boardroom-title,
 #tablabInner#tablabInner #boardroom-title span,
 #tablabInner#tablabInner .boardroom-mobile-intro,
 #tablabInner#tablabInner .board-main strong,
 #tablabInner#tablabInner .board-label {color:#fff8ee !important;}
 #tablabInner#tablabInner .eyebrow,
 #tablabInner#tablabInner .board-number,
 #tablabInner#tablabInner .board-arrow {color:#eed4aa !important;}
 #tablabInner#tablabInner .boards {height:auto !important;grid-template-rows:repeat(2,minmax(155px,auto)) !important;}
 #tablabInner#tablabInner .board-card {background:rgba(24,15,12,.86) !important;color:#fff8ee !important;border-radius:14px !important;border-color:rgba(239,228,204,.45) !important;}
 #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;}
}
@media (max-width:900px) and (orientation:landscape) {
 #tablabInner#tablabInner .boardroom {grid-template-rows:1fr !important;}
 #tablabInner#tablabInner .boards {grid-template-rows:repeat(2,minmax(130px,auto)) !important;}
}
@media (max-width:350px) {
 #tablabInner#tablabInner .tablab-studio-brand {font-size:19px;padding:8px 10px;}
 #tablabInner#tablabInner .foundry-global-nav {gap:5px !important;}
}

/* Centre longer descriptions within the card instead of letting the grid
   row's automatic minimum push their midpoint below the card midpoint. */
@media (min-width:901px) {
  #tablabInner .board-card {
    grid-template-rows: minmax(0, 1fr);
    align-items: center;
  }
  #tablabInner .board-description {
    align-self: center;
  }
}

/* Routine check TL-01–03: contain card copy and allow real short-screen scrolling. */
@media (min-width:901px) {
  #tablabInner .board-card {
    grid-template-columns: 30px 48px minmax(135px,.75fr) minmax(0,1.25fr);
    gap:12px; padding:16px 44px 16px 16px;
  }
  #tablabInner .board-icon {width:48px;height:58px;}
  #tablabInner .board-main {padding-right:0;min-width:0;}
  #tablabInner .board-description {padding-left:0;min-width:0;font-size:14px;line-height:1.4;}
}
@media (max-width:900px) {
  html:has(> body#tablabInner) {height:auto !important;min-height:100%;overflow-y:auto !important;overscroll-behavior:auto;}
  #tablabInner#tablabInner {overflow-y:visible !important;overscroll-behavior:auto;}
  #tablabInner .board-label {white-space:normal !important;overflow-wrap:anywhere;letter-spacing:.08em !important;}
  #tablabInner .board-main {min-width:0;}
}
