/* Language menu shared by static pages and PHP templates. */
.language-menu{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px;min-width:276px;max-height:min(70vh,440px);overflow:auto;inset-inline-end:0;inset-inline-start:auto;z-index:1000}.language-menu a{font-size:12px;padding:9px 10px;white-space:normal;border-radius:5px}.language-menu a[aria-current="page"]{background:rgba(255,105,0,.14);color:#ff8b38}.language-switch summary{white-space:nowrap}.frp-featured-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.frp-featured h3{font-size:clamp(19px,2.2vw,26px);line-height:1.4}.frp-featured .feature{display:flex;flex-direction:column;gap:12px}.frp-featured .card-link{margin-top:auto}.frp-featured p{line-height:1.7}.hero h1{overflow-wrap:anywhere}.nav-actions{min-width:0}
@media(max-width:930px){.nav-actions .language-switch{display:block!important}.nav-actions{gap:8px}.nav-inner{position:relative}.language-switch{position:static}.language-menu{position:absolute;right:10px;left:auto;top:100%;width:min(300px,calc(100vw - 20px));min-width:0}.nav-actions .account-nav{display:none}}
@media(max-width:620px){.frp-featured-grid{grid-template-columns:1fr}.nav-actions .btn-primary{display:none}.nav-inner{gap:8px}.language-switch summary{font-size:12px;padding:8px}.hero h1{font-size:clamp(30px,8vw,44px)}}

.hero-reference{font-size:16px!important;margin-top:18px}.hero-reference a{color:var(--accent,#ff6900);text-decoration:underline;text-underline-offset:4px}

.hero h1{font-size:clamp(32px,4vw,48px);line-height:1.15;letter-spacing:-1px;overflow-wrap:normal;word-break:normal}@media(min-width:931px){.hero-grid{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr)}}

/* Explicit disclosure state and bounded overlays for touch/keyboard navigation. */
.nav{isolation:isolate;overflow:visible}
.nav-inner{overflow:visible}
.language-switch:not([open])>.language-menu{display:none}
.language-switch[open]>.language-menu{display:grid}
.language-switch summary,.menu-btn{touch-action:manipulation;cursor:pointer;min-height:44px}
.menu-btn{min-width:44px;flex-shrink:0}
.language-switch summary:focus-visible,.menu-btn:focus-visible,.language-menu a:focus-visible,.hero-actions a:focus-visible{outline:2px solid #ff9b59;outline-offset:4px}
.xfrp-app>.xfrp-demo-notice{display:block;margin:0!important;padding:12px 16px!important;max-width:none!important;background:#2a1c10;border-bottom:1px solid #805026;color:#ffe2bc!important;font-size:13px!important;line-height:1.6!important;font-weight:600;letter-spacing:normal}
.hero-actions .btn{text-align:center;white-space:normal;line-height:1.45;padding-top:12px;padding-bottom:12px}
@media(max-width:930px){
 .nav .language-menu{position:absolute;top:100%;left:10px!important;right:10px!important;width:auto;min-width:0;max-width:none;max-height:calc(100dvh - 100px);overflow-y:auto;overscroll-behavior:contain;grid-template-columns:repeat(2,minmax(0,1fr))}
 .nav .language-menu a{min-height:44px;display:flex;align-items:center}
 .nav .mobile-nav.open{display:grid;max-height:calc(100dvh - 90px);overflow-y:auto;overscroll-behavior:contain}
 .nav .mobile-nav a{min-height:44px}
}
@media(max-width:480px){.hero{padding-top:40px}.hero-actions{display:grid;grid-template-columns:1fr;width:100%}.hero-actions .btn{width:100%}.hero-grid{gap:28px}.hero .trust-note{font-size:13px;line-height:1.6;margin-top:16px}}
