/* Patch 18: pointer focus, WAF-safe language picker, static pages. */
:where(a,button,[role="button"],[tabindex]):focus:not(:focus-visible),
.btn:focus:not(:focus-visible),.action-btn:focus:not(:focus-visible){outline:none!important;box-shadow:none!important}
button::-moz-focus-inner{border:0}
:where(a,button,[role="button"],[tabindex]):focus-visible{outline:2px solid #f5a623;outline-offset:3px}

/* phimcity-base sets overflow-x:hidden on every .custom-container and its direct
   child. A footer dropdown that opens upward is therefore clipped on mobile.
   The footer is safe to let overflow because it has no horizontal carousel. */
.pc-footer,.pc-footer>div,.pc-footer .gp-language-wrap{overflow:visible!important}
.gp-language-wrap{position:relative;display:inline-block;z-index:70}
.gp-language-button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-width:132px;height:48px;padding:0 18px;border:0;border-radius:999px;background:#1e293b;color:#d8e1ed;font-size:14px;line-height:1;cursor:pointer}
.gp-language-button:hover{background:#273449;color:#fff}.gp-language-button svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.6}
.gp-language-menu{position:absolute;left:0;bottom:calc(100% + 12px);width:210px;max-height:min(430px,calc(100vh - 96px));overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:10px;border:1px solid #334155;border-radius:9px;background:#1f2a3a;box-shadow:0 22px 50px rgba(0,0,0,.34);z-index:100}
.gp-language-menu[hidden]{display:none!important}
.gp-language-item{display:flex;align-items:center;gap:12px;min-height:46px;padding:8px 10px;border-radius:7px;color:#d8e1ed!important;text-decoration:none!important;font-size:14px;line-height:1.2}
.gp-language-item:hover,.gp-language-item[aria-current="true"]{background:#2b394d;color:#fff!important}
.gp-language-flag{display:inline-flex;flex:0 0 24px;width:24px;height:24px;align-items:center;justify-content:center}
.gp-language-flag img{display:block;width:24px;height:24px;border-radius:50%;object-fit:cover;box-shadow:0 0 0 1px rgba(255,255,255,.14)}
.gp-language-name{white-space:nowrap}
.gp-language-menu::-webkit-scrollbar{width:6px}.gp-language-menu::-webkit-scrollbar-track{background:transparent}.gp-language-menu::-webkit-scrollbar-thumb{background:#475569;border-radius:999px}
[dir="rtl"] .gp-language-menu{left:auto;right:0}

.pc-static-page{width:100%;padding:58px 24px 74px;color:#d6dfec}.pc-static-page-inner{width:min(1440px,100%);margin:0 auto}.pc-static-page h1{margin:0 0 32px;color:#fff;font-size:clamp(34px,3vw,48px);line-height:1.15;font-weight:700;letter-spacing:-.03em}.pc-static-content{max-width:100%;color:#f0f4fa;font-size:18px;line-height:1.75;overflow-wrap:anywhere}.pc-static-content>*{margin-top:0;margin-bottom:22px}.pc-static-content h2{font-size:30px;line-height:1.35;font-weight:650;color:#fff;margin-top:34px}.pc-static-content h3{font-size:24px;line-height:1.4;font-weight:600;color:#fff;margin-top:30px}.pc-static-content h4{font-size:20px;font-weight:600;color:#fff}.pc-static-content a{color:#92b9eb;text-decoration:none}.pc-static-content a:hover{text-decoration:underline;color:#fff}.pc-static-content ul{list-style:disc;padding-left:24px}.pc-static-content ol{list-style:decimal;padding-left:24px}.pc-static-content blockquote{padding:14px 20px;border-left:3px solid #f5a623;background:#101827;color:#d5deea}.pc-static-content img{max-width:100%;height:auto;border-radius:8px}.pc-static-content table{width:100%;border-collapse:collapse}.pc-static-content th,.pc-static-content td{border:1px solid #26344a;padding:10px 12px;text-align:left}.pc-static-content hr{border:0;border-top:1px solid #26344a;margin:30px 0}

@media(max-width:767px){
  .gp-language-button{height:44px;min-width:124px;padding:0 15px}
  /* Use the viewport rather than the footer as the clipping context on phones. */
  .gp-language-menu,[dir="rtl"] .gp-language-menu{position:fixed!important;left:14px!important;right:14px!important;bottom:14px!important;width:auto!important;max-height:min(420px,calc(100vh - 28px));transform:none!important;margin:0!important;z-index:10050}
  .pc-static-page{padding:32px 16px 52px}.pc-static-page h1{margin-bottom:24px}.pc-static-content{font-size:16px;line-height:1.7}.pc-static-content h2{font-size:25px}.pc-static-content h3{font-size:21px}
}
