/* One website-language grid. All geometry is scoped; the shared shell stays intact. */
.footer-page--public-choose-country-region{max-width:960px}
.footer-page.footer-page--public-choose-country-region .page-intro{padding-top:52px;padding-bottom:32px!important}
.footer-page.footer-page--public-choose-country-region .page-lead{margin-top:16px;font-size:19px}
/* Fill the body grid track instead of auto-margin shrink wrapping. */
.footer-page .public-sections--choose-country-region{width:100%;min-width:0;margin-inline:0;padding-bottom:32px}
.public-sections--choose-country-region .country-language-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:32px;list-style:none;padding:0;margin:0}
.public-sections--choose-country-region .country-language-grid li{display:flex;align-items:center;min-width:0;min-height:116px;padding:24px 0;border-top:1px solid #d7d7d2}
.public-sections--choose-country-region .country-language-grid .country-language-available{padding:0;align-items:stretch}
.public-sections--choose-country-region .country-language-name{font:400 22px/1.5 var(--sans);overflow-wrap:anywhere;color:#252d26}
.public-sections--choose-country-region .country-entry{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-width:0;min-height:116px;padding:16px 12px;border-radius:6px;background:#f3f4ef;color:#263a26;text-decoration:none}
.public-sections--choose-country-region .country-entry-copy{display:grid;gap:2px;min-width:0}
.public-sections--choose-country-region .country-entry-context{font:400 13px/1.5 var(--sans);color:#46583f;overflow-wrap:anywhere}
.public-sections--choose-country-region .country-entry-status{font:400 12px/1.5 var(--sans);color:#46583f}
@media(max-width:760px){
  .footer-page.footer-page--public-choose-country-region .page-intro{padding-top:36px;padding-bottom:28px!important}
  .public-sections--choose-country-region .country-language-grid{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:24px}
  .public-sections--choose-country-region .country-language-grid li{min-height:108px;padding:20px 0}
  .public-sections--choose-country-region .country-entry{min-height:108px}
  .public-sections--choose-country-region .country-language-name{font-size:21px}
}
@media(max-width:360px){
  .public-sections--choose-country-region .country-language-grid{grid-template-columns:minmax(0,1fr)}
  .public-sections--choose-country-region .country-language-grid li{min-height:80px;padding:20px 0}
  .public-sections--choose-country-region .country-language-grid .country-language-available{min-height:108px;padding:0}
}
@media(forced-colors:active){
  .public-sections--choose-country-region .country-entry,.public-sections--choose-country-region .country-entry .country-language-name{color:CanvasText}
  .public-sections--choose-country-region .country-entry[aria-current="true"]{outline:1px solid Highlight;outline-offset:-1px}
  .public-sections--choose-country-region .country-entry-context,.public-sections--choose-country-region .country-entry-status,.public-sections--choose-country-region .country-language-name{color:CanvasText}
  .public-sections--choose-country-region .country-language-grid li{border-color:CanvasText}
}

/* Region labels apply only to unavailable languages; English remains unchanged. */
.public-sections--choose-country-region .country-language-copy{display:grid;gap:2px;min-width:0}
.public-sections--choose-country-region .country-language-region{font:400 14px/1.5 var(--sans);color:#596154;overflow-wrap:anywhere}
@media(forced-colors:active){
  .public-sections--choose-country-region .country-language-region{color:CanvasText}
}

/* Decorative icons keep physical right placement, including Arabic text. */
.public-sections--choose-country-region .country-language-grid li{justify-content:space-between;gap:12px;direction:ltr}
.public-sections--choose-country-region .country-entry{direction:ltr}
.public-sections--choose-country-region .country-language-icon{display:block;width:26px;height:26px;flex:0 0 26px;color:#263a26;pointer-events:none;overflow:visible;transform-origin:center;transform:translateY(0) scale(1)}
.public-sections--choose-country-region .country-icon-motion{transform-box:view-box;transform-origin:10px 10px}
/* Reversible transitions track enter/leave from the current rendered position.
   They settle without looping; no timers or script are needed. */
.public-sections--choose-country-region .country-icon-motion{transform:translate(0,0) scale(1) rotateY(0deg)}
.public-sections--choose-country-region .country-language-icon--fr .country-icon-motion,.public-sections--choose-country-region .country-language-icon--it .country-icon-motion{stroke-dasharray:1;stroke-dashoffset:0}
@media(min-width:761px) and (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
  .public-sections--choose-country-region .country-language-icon{transition:transform .3s cubic-bezier(.2,.7,.2,1)}
  .public-sections--choose-country-region .country-icon-motion{transition:transform .6s cubic-bezier(.2,.7,.2,1),stroke-dashoffset .6s ease-in-out}
  .public-sections--choose-country-region li:hover .country-language-icon{transform:translateY(-4px) scale(1.15)}
  .public-sections--choose-country-region li:hover .country-language-icon--en .country-icon-motion{transform:rotateY(180deg)}
  .public-sections--choose-country-region li:hover .country-language-icon--es .country-icon-motion{transform:translateY(-2px)}
  .public-sections--choose-country-region li:hover .country-language-icon--fr .country-icon-motion{transform:scale(.85);stroke-dashoffset:.5}
  .public-sections--choose-country-region li:hover .country-language-icon--de .country-icon-motion{transform:scaleX(.72)}
  .public-sections--choose-country-region li:hover .country-language-icon--zh-Hant .country-icon-motion{transform:translateX(2px)}
  .public-sections--choose-country-region li:hover .country-language-icon--ja .country-icon-motion{transform:translateY(2.4px) scaleX(1.12)}
  .public-sections--choose-country-region li:hover .country-language-icon--ko .country-icon-motion{transform:translateY(-2px) scaleX(1.15)}
  .public-sections--choose-country-region li:hover .country-language-icon--it .country-icon-motion{transform:translateY(-2px);stroke-dashoffset:.5}
  .public-sections--choose-country-region li:hover .country-language-icon--ar .country-icon-motion{transform:translateY(-2.2px) scaleX(.85)}
}
@media(forced-colors:active){
  .public-sections--choose-country-region .country-language-icon{color:CanvasText}
}

/* Keep all labels shrinkable beside fixed-size icons at narrow widths and zoom. */
.public-sections--choose-country-region .country-language-copy,.public-sections--choose-country-region .country-entry-copy{flex:1 1 0;overflow-wrap:anywhere}
.public-sections--choose-country-region .country-language-name[dir="rtl"]{unicode-bidi:isolate;text-align:left}
@media(prefers-reduced-motion:reduce){
  .public-sections--choose-country-region .country-language-icon,.public-sections--choose-country-region .country-icon-motion{animation:none;transition:none;transform:none}
}
