/* Footer "Our Office" tabs on the older exported pages.
   Radio inputs inside labels, so the tabs work without JavaScript.
   Singapore is first and selected by default. */
.ofc-tab{position:relative}
.ofc-tab input{position:absolute;width:1px;height:1px;margin:0;opacity:0;pointer-events:none}
.ofc-tab:has(input:checked){background:#fff;border-color:rgba(228,231,236,.6);color:#101828;font-weight:500;box-shadow:0 1px 2px rgba(0,0,0,.05)}
.ofc-tab:has(input:focus-visible){outline:2px solid #1352bf;outline-offset:2px}
.ofc-pane{display:none!important}
.ofc:has(input[value="sg"]:checked) .ofc-pane--sg,
.ofc:has(input[value="id"]:checked) .ofc-pane--id,
.ofc:has(input[value="my"]:checked) .ofc-pane--my{display:grid!important}
/* Mobile: the three office tabs sit side by side in one row under the
   "Our Office" label instead of Malaysia wrapping onto a second line. */
@media (max-width:639px){
  .ofc > div:has(> .ofc-tab){
    display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
    gap:4px;width:100%;max-width:400px;margin-left:auto;margin-right:auto;
    box-sizing:border-box;
  }
  .ofc > div:has(> .ofc-tab) > span{grid-column:1 / -1}
  .ofc-tab{
    min-width:0;justify-content:center;gap:4px;padding:7px 4px;font-size:13px;white-space:nowrap;
  }
}
/* Stacked footer (below 1024px): center the "Our Office" pill and the
   office card(s) under the centered logo and socials. One card sits in the
   middle; Jakarta + Tangerang sit side by side as a centered pair. */
@media (max-width:1023px){
  .ofc{align-items:center}
  .ofc > div:has(> .ofc-tab){margin-left:auto;margin-right:auto;justify-content:center}
  .ofc > div:has(> .ofc-pane){width:100%;text-align:center}
  .ofc-pane > div{min-width:0}
  .ofc-pane > div > p{margin-left:auto;margin-right:auto}
}
@media (min-width:640px) and (max-width:1023px){
  .ofc-pane{
    grid-template-columns:none!important;grid-auto-flow:column;
    grid-auto-columns:minmax(0,20rem);justify-content:center;
  }
}
