/* The ONE site footer (site-footer.js writes the markup). Same markup, same tokens on every page and in every theme: four short link columns,
   a small side block (27 years seal and QR), one slim bottom bar. Footers are always a dark band, so the ink tokens are light in every theme.
   Selectors start with "html footer.xf" so they win over the older per-theme footer rules in index.html, themes.css and brite.css. */
footer.xf{--xf-bg:#0b1c2d;--xf-ink:rgba(255,255,255,.9);--xf-mute:rgba(255,255,255,.74);--xf-head:#ffd166;--xf-line:rgba(255,255,255,.18);--xf-hover:#fff;--xf-focus:#ffd166;--xf-field:#fff;--xf-field-ink:#0b1c2d;--xf-btn:#f5b800;--xf-btn-ink:#1a1100;--xf-max:none}
html[data-theme="glass"] footer.xf{--xf-bg:linear-gradient(180deg,#163a7a,#123066);--xf-line:rgba(127,208,255,.3)}
html footer.xf{display:block;background:var(--xf-bg)!important;color:var(--xf-ink);border-top:1px solid var(--xf-line);padding:1.4rem 1rem 1rem;margin:0;text-align:left;font:400 .78rem/1.5 Calibri,"Segoe UI",system-ui,-apple-system,Roboto,"Noto Sans Thai","Noto Sans SC","Noto Sans KR","Microsoft YaHei",sans-serif;box-sizing:border-box;max-width:100%}
html footer.xf *{box-sizing:border-box}
html footer.xf .xf-wrap,html footer.xf>.xp-news,html footer.xf>.xag-principles{max-width:var(--xf-max);margin-left:auto;margin-right:auto}
html footer.xf .xf-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.1rem 1.25rem;align-items:start}
html footer.xf nav.xf-col{display:block;margin:0;padding:0;border:0}
html footer.xf .xf-col ul{list-style:none;margin:0;padding:0}
html footer.xf .xf-col li{margin:0}
html footer.xf .xf-h{margin:0 0 .4rem;font:700 .74rem/1.3 Calibri,"Segoe UI",system-ui,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:var(--xf-head)}
html footer.xf a.xf-a,html footer.xf .xf-tools .ft-a,html footer.xf .xf-tools .xp,html footer.xf .xf-tools button{display:inline-block;color:var(--xf-ink)!important;text-decoration:none;font:400 .78rem/1.5 Calibri,"Segoe UI",system-ui,sans-serif;padding:.12rem 0;min-height:0;background:none;border:0;text-wrap:balance;cursor:pointer}
html footer.xf a.xf-a:hover,html footer.xf .xf-tools .ft-a:hover,html footer.xf .xf-tools button:hover{color:var(--xf-hover)!important;text-decoration:underline}
html footer.xf a:focus-visible,html footer.xf button:focus-visible,html footer.xf select:focus-visible,html footer.xf input:focus-visible{outline:2px solid var(--xf-focus);outline-offset:2px;border-radius:3px}
/* side block: 27 years seal and QR, tucked to one side */
html footer.xf .xf-side{grid-column:1 / -1;display:flex;align-items:center;gap:.9rem;padding-top:.2rem}
html footer.xf .xf-side .xag-seal27.ft-seal{margin:0;width:auto;display:inline-flex;flex:none}
html footer.xf .xf-side .ft-seal svg{width:52px;height:52px}
html footer.xf .xf-qr{display:inline-flex;align-items:center;gap:.5rem;color:var(--xf-mute)!important;text-decoration:none}
html footer.xf .ft-tools .ft-a::before,html footer.xf .ft-qr-cap::before{display:none!important}
html footer.xf .xf-qr .ft-qr-img{display:inline-block;width:52px;height:52px;background:#fff;border-radius:6px;padding:3px;line-height:0}
html footer.xf .xf-qr .ft-qr-img:empty{display:none}
html footer.xf .xf-qr .ft-qr-img svg,html footer.xf .xf-qr .ft-qr-img img,html footer.xf .xf-qr .ft-qr-img canvas{width:100%;height:100%}
html footer.xf .xf-qr .ft-qr-cap{font-size:.7rem;line-height:1.3;max-width:7rem;color:var(--xf-mute)}
html footer.xf .ft-trust:empty{display:none}
html footer.xf .ft-trust{margin:.8rem 0 0;display:flex;flex-wrap:wrap;gap:.4rem;font-size:.72rem}
/* the two principle lines (child privacy, professional standards): one small quiet block, no coloured bar */
html footer.xf>.xag-principles{display:block;margin-top:.9rem;margin-bottom:0;padding:.55rem 0 0;border-top:1px solid var(--xf-line);text-align:left;font-size:.72rem;line-height:1.4;color:var(--xf-mute)!important;--xp-c:var(--xf-mute)}
html footer.xf .xag-principles .xp-line{background:none!important;border:0!important;border-radius:0!important;padding:0!important;min-height:0!important;min-width:0!important;color:var(--xf-mute)!important;font:inherit!important;display:block}
/* slim bottom bar */
html footer.xf .xf-bar{flex:none!important;order:0!important;width:auto;display:flex;flex-wrap:wrap;align-items:center;gap:.35rem 1rem;margin:.9rem 0 0;padding:.65rem 0 0;border-top:1px solid var(--xf-line);font-size:.72rem;opacity:1;justify-content:flex-start}
html footer.xf .xf-copy{color:var(--xf-mute);margin-right:auto}
html footer.xf .ft-pay{display:flex;flex-wrap:wrap;gap:.3rem;align-items:center;margin:0}
html footer.xf .ft-pay[hidden]{display:none}
html footer.xf .ft-pay img,html footer.xf .ft-pay svg{height:18px;width:auto}
html footer.xf .xf-tools{flex:0 1 auto!important;order:0!important;display:flex;flex-wrap:wrap;align-items:center;gap:.1rem .9rem;margin:0;max-width:none}
html footer.xf .xf-tools .ft-fx{margin:0!important;text-align:left!important}
html footer.xf #xfxToggle{background:none;border:1px solid var(--xf-line);color:var(--xf-ink);border-radius:999px;padding:.1rem .6rem;font:inherit;font-size:.72rem;cursor:pointer}
html footer.xf .xf-lang{display:inline-flex;align-items:center;margin:0}
html footer.xf .xf-lang select{font:inherit;font-size:.72rem;min-height:26px;padding:0 .4rem;border-radius:6px;border:1px solid var(--xf-line);background:rgba(255,255,255,.08);color:var(--xf-ink)}
html footer.xf .xf-lang select option{color:#0b1c2d;background:#fff}
html footer.xf .xf-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* newsletter box: the same box on every page, drawn in the footer's own tokens */
html footer.xf>.xp-news{display:grid;grid-template-columns:minmax(0,1fr);gap:.45rem;padding:0 0 1rem;margin-bottom:1rem;background:none;color:var(--xf-ink);border:0;border-bottom:1px solid var(--xf-line);border-radius:0;max-width:var(--xf-max)}
html footer.xf .xp-news-h{margin:0;font:700 1rem/1.3 Calibri,"Segoe UI",system-ui,sans-serif;color:var(--xf-head)}
html footer.xf .xp-news-b,html footer.xf .xp-news-m,html footer.xf .xp-news-l,html footer.xf .xp-news-c{margin:0;font-size:.78rem;line-height:1.45;color:var(--xf-ink)}
html footer.xf .xp-news input[type=email]{width:100%;max-width:26rem;font:inherit;font-size:.9rem;min-height:40px;padding:.4rem .7rem;border-radius:10px;border:1.5px solid var(--xf-line);background:var(--xf-field);color:var(--xf-field-ink)}
html footer.xf .xp-news-c{display:flex;gap:.5rem;align-items:flex-start;min-height:0}
html footer.xf .xp-news-c input{width:18px;height:18px;margin-top:.1rem;flex:none;accent-color:var(--xf-btn)}
html footer.xf .xp-news .xp-yes{align-self:start;justify-self:start;min-height:40px;padding:.4rem 1.2rem;border-radius:999px;border:0;background:var(--xf-btn);color:var(--xf-btn-ink);font:700 .85rem/1 Calibri,"Segoe UI",system-ui,sans-serif;cursor:pointer}
html footer.xf .xp-news .xp-yes:hover{filter:brightness(1.07)}
html footer.xf .xp-news-m{min-height:1.2em;color:var(--xf-head)}
@media (min-width:720px){
  html footer.xf{padding:1.6rem 1.5rem 1.1rem}
  html footer.xf>.xp-news{padding-top:0}
  html footer.xf .xf-grid{grid-template-columns:repeat(4,minmax(0,1fr)) auto;gap:1.2rem 1.75rem}
  html footer.xf .xf-side{grid-column:auto;flex-direction:column;align-items:flex-start;gap:.7rem;padding-top:0}
  html footer.xf>.xp-news{grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);column-gap:2rem}
  html footer.xf>.xp-news .xp-news-h,html footer.xf>.xp-news .xp-news-b{grid-column:1}
  html footer.xf>.xp-news .xp-news-l,html footer.xf>.xp-news input,html footer.xf>.xp-news .xp-news-c,html footer.xf>.xp-news .xp-yes,html footer.xf>.xp-news .xp-news-m{grid-column:2}
  html footer.xf>.xp-news .xp-news-h{grid-row:1}
  html footer.xf>.xp-news .xp-news-b{grid-row:2 / span 3}
  html footer.xf>.xp-news .xp-news-l{grid-row:1}
  html footer.xf>.xp-news input[type=email]{grid-row:2}
  html footer.xf>.xp-news .xp-news-c{grid-row:3}
  html footer.xf>.xp-news .xp-yes{grid-row:4}
  html footer.xf>.xp-news .xp-news-m{grid-row:5}
  html footer.xf>.xp-news .xp-trap{grid-column:1;grid-row:5}
}
@media (prefers-reduced-motion:no-preference){html footer.xf a.xf-a{transition:color .15s}}
@media print{html footer.xf{display:none}}
/* the Newsletter heading and its link (added by plugins/plug-newsletter.js; the sign-up form itself opens in a pop-up) */
html footer.xf .xp-news-link{margin:.9rem 0 0;padding:0;display:block}
html footer.xf .xp-news-link .xf-h{margin:0 0 .25rem}
/* the paired logo: face logo + 27 years seal, always together */
.xag-logo-pair{display:inline-flex;align-items:center;gap:12px;flex:none}
.xag-logo-pair .xag-face-logo{display:block;height:52px;width:auto}
.xag-logo-pair .xag-face-logo[hidden]{display:none}
/* footer QR: ONE white version in every footer and every theme (white modules on the navy tile); never a dark code */
html .ft-qr-img,html footer.xf .ft-qr-img,html footer.xf .xf-qr .ft-qr-img{background:#0b1c2d!important;border:1.5px solid rgba(255,255,255,.7);box-sizing:border-box;padding:4px!important;border-radius:8px}
html .ft-qr-img svg path,html footer.xf .ft-qr-img svg path,html footer.xf .xf-qr .ft-qr-img svg path{fill:#fff!important}
/* the 27 years seal: ONE dark version in every theme (the pale-disc variants of the Brite and glass themes are removed) */
html .xag-seal27 .s27-bg,html[data-theme] .xag-seal27 .s27-bg{fill:#0b1c2d!important;stroke:none!important}
/* brand block: face logo, then in ONE row under it the dark seal, the white QR and the chat button, then the copyright */
html footer.xf .xf-side{display:flex;flex-direction:column;align-items:flex-start;gap:.5rem}
html footer.xf .xf-side .xag-logo-pair{display:flex;flex-direction:column;align-items:flex-start;gap:.5rem}
html footer.xf .xf-brand-row{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem 1rem}
html footer.xf .xf-brand-row .xf-qr{flex-direction:row;margin:0;order:0}
html footer.xf .xf-brand-row .xf-qr .ft-qr-cap{max-width:6rem}
html footer.xf .xf-chat-slot{display:inline-flex;align-items:center;position:relative}
html footer.xf .xf-chat-slot:empty{display:none}
html footer.xf .xf-side .xag-logo-pair .xf-chat-slot{margin-top:.5rem}   /* flex gap .5rem + .5rem = 16px under the logo group */
html footer.xf .xf-chat-slot .xp-chat{position:relative;left:auto;bottom:auto;display:block}
html footer.xf .xf-chat-slot .xp-chat-panel{position:absolute;left:0;bottom:calc(100% + 8px);min-width:220px;z-index:5}
html footer.xf .xf-side .xf-copy{margin:0}
/* "We accept": left-justified, one line (wraps only on narrow screens) */
html footer.xf .xf-bar{justify-content:flex-start}
html footer.xf .ft-pay{flex:1 1 100%;justify-content:flex-start}
html footer.xf .ft-pay .xpl-strip{flex-wrap:nowrap;justify-content:flex-start;margin:0;gap:.25rem .5rem;font-size:.72rem}
html footer.xf .ft-pay .xpl-item{min-height:22px;padding:1px 5px}
html footer.xf .ft-pay .xpl-logo{height:16px;max-width:60px}
html footer.xf .ft-pay .xpl-badge{padding:1px 4px;font-size:.7rem}
@media(max-width:700px){html footer.xf .ft-pay .xpl-strip{flex-wrap:wrap}}
html footer.xf .xf-brand-row .ft-seal{order:-1}
/* QR caption directly under the code; breathing space under the XAG logo; Newsletter stays inside the Trust column at every width */
html footer.xf .xf-brand-row .xf-qr{flex-direction:column;align-items:flex-start;gap:.3rem}
html footer.xf .xf-brand-row .xf-qr .ft-qr-cap{max-width:9rem;font-size:.7rem;line-height:1.3}
html footer.xf .xf-side .xag-logo-pair .xf-brand-row{margin-top:1.25rem}
/* ONE Help pill (the chat plug-in's button, in the brand block): the other help triggers are folded into its panel */
html body footer.xf .xf-tools button[data-xag-help-btn],html body footer.xf .xf-tools button[data-xag-feedback-btn],html body footer.xf [data-xag-help-btn],html body footer.xf [data-xag-feedback-btn]{display:none!important;visibility:hidden!important}
html body .xag-as-btn{display:none!important}
