/* Phase A11a: the globe button next to the language switch, the footer link and the worldwide page. Loaded only when the build has two
   countries or more (tools/build-pages.mjs WORLD_ON), so a build with Germany alone is unchanged. Colours, fonts and radii of style.css. */
.globe { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 47px; height: 47px; border: 1.5px solid var(--line);
  border-radius: 99px; background: var(--surface); color: var(--muted); text-decoration: none; }
.globe:hover, .globe:focus-visible { color: var(--accent); border-color: var(--accent); }
.globe svg { width: 24px; height: 24px; }
/* the switch and the globe sit together at the right end; the brand takes the free room */
.top .in > .brand { margin-right: auto; }
@media (max-width: 370px) { .globe { width: 44px; height: 44px; } .globe svg { width: 22px; height: 22px; } }
.cmenu li.wall { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
.cmenu li.wall a { font-weight: 650; }
.wfoot { display: flex; align-items: center; gap: 6px; }
.wfoot svg { flex: none; color: var(--muted); }

/* the worldwide page: one group per language, a card per country */
.whead { display: flex; align-items: center; gap: 14px; }
.whead svg { flex: none; width: 56px; height: 56px; color: var(--accent); }
.whead h1 { margin: 0; }
.wlist { display: flex; flex-direction: column; gap: 28px; }
.wgrp { display: flex; flex-direction: column; gap: 12px; }
.page .wgrp h2 { margin: 0; padding-bottom: 6px; border-bottom: 1px solid var(--line); font-family: var(--body); font-size: .95rem; font-weight: 650; color: var(--muted); }
.wcards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14.5rem), 1fr)); gap: 12px; }
.wcards > li { display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s); box-shadow: var(--shadow); }
.wcards > li.here { border-left: 4px solid var(--accent); }
.wcard { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 12px; color: var(--ink); text-decoration: none; border-radius: var(--r-s); }
.wcard:hover .wname, .wcard:focus-visible .wname { color: var(--accent); }
.wname { font-family: var(--display); font-size: 1.2rem; font-weight: 600; line-height: 1.2; }
.wbrand { font-size: .95rem; line-height: 1.3; }
.whost { font-size: .8rem; color: var(--muted); overflow-wrap: anywhere; }
.page .wlangs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: -2px 0 0; padding: 0 12px 12px 16px; font-size: .8rem; color: var(--muted); }
.wlangs span { flex-basis: 100%; margin: 0 0 2px; }
.wlangs a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border: 1.5px solid var(--line); border-radius: 99px;
  font-weight: 650; color: var(--muted); text-decoration: none; }
.wlangs a:hover, .wlangs a:focus-visible { color: var(--accent); border-color: var(--accent); }
/* Phase A13 (A12 review section 5): four language pills plus the globe leave the brand less room than its longest word (fr-CH, de-CH,
   it-CH at 320 to 375 px). Such a route (class hstack on <html>, set by the build) puts the brand on its own row; switch and globe share
   the next row at the right, the country menu the one after. Here and not in style.css: this file loads only with the globe, so a live
   build with Germany alone keeps style.css unchanged. */
@media (max-width: 480px) {
  .hstack .top .in { flex-wrap: wrap; row-gap: 2px; }
  .hstack .top .in > .brand, .hstack.hnarrow .top .in.hasc > .brand { flex: 1 0 100%; margin-right: 0; }
  .hstack .top .in > .langsw { margin-left: auto; }
}
