/* Country switcher + country landing (26-nov-2026). Mobile first: 44px targets. */
.cs { position: relative; display: inline-block; }
.cs > summary { list-style: none; }
.cs > summary::-webkit-details-marker { display: none; }
.cs-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; cursor: pointer;
  color: var(--text2); font-size: 14px; font-weight: 500; border-radius: 10px; -webkit-tap-highlight-color: transparent; }
.cs-btn:hover, .cs[open] > .cs-btn { color: var(--text); background: var(--surface); }
.cs-menu { position: absolute; right: 0; top: 100%; z-index: 2000; min-width: 190px; margin: 4px 0 0; padding: 6px; list-style: none;
  background: var(--surface2); border: 1px solid var(--line, var(--border)); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.cs-menu a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; color: var(--text2); font-size: 14px; text-decoration: none; }
.cs-menu a:hover, .cs-menu a[aria-current] { color: var(--text); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.cs--nav { margin-left: auto; margin-right: 4px; }
.cs--home-top { display: none; }
.cs--home-profile { display: block; text-align: center; margin: 4px 0; }
@media (min-width: 768px) { .cs--home-top { display: inline-block; } .cs--home-profile { display: none; } }
@media (max-width: 768px) { .cs--nav .cs-btn span { max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }

.country-foot { margin: 12px 0 0; font-size: 13px; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 4px; align-items: center; }
.country-foot a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; }

/* Chooser on the home and the country pages: centred chip under the logo, list opens centred below it. */
.cs-caret { transition: transform .15s var(--ease, ease); }
.cs[open] .cs-caret { transform: rotate(180deg); }
.cs-menu a { justify-content: space-between; gap: 12px; }
.cs-menu a[aria-current] { color: var(--text); font-weight: 600; }
.cs-menu a[aria-current] svg { color: var(--lime); }
.cs-menu a:focus-visible, .cs-btn:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.cs--home-profile { margin: 0 0 4px; }
.cs--home-profile .cs-btn { font-size: 15px; }
.cs--home-profile .cs-menu { right: auto; left: 50%; transform: translateX(-50%); width: min(18rem, calc(100vw - 32px)); text-align: left; }

/* The country name lives in the page's real <h1>, set in the tagline's own type so it reads as part of the profile header. */
.lc h1.lc-tagline { font-family: var(--font-body); font-size: 1rem; line-height: 1.5rem; font-weight: 500; max-width: 22rem; text-wrap: balance; }
/* Quick links under the logo: real 44px tap targets without moving the layout (padding + negative margin). */
.lc-profile .lc-tagline a { display: inline-block; padding: 12px 2px; margin: -12px 0; }
/* Empty country: the honest card, in the home's own style. */
.lc-empty .lc-empty-sub { margin: 0 auto 20px; max-width: 22rem; line-height: 1.5; }
.lc-empty .lc-empty-title { text-wrap: balance; }
.lc-empty .lc-btn-white { width: auto; max-width: 100%; margin: 0 auto; padding: 12px 24px; min-height: 48px; }
.lc-footer .ceiba-network a { display: inline-block; padding: 14px 2px; margin: -14px 0; }

/* Tablet: the top bar (nav + country chip + Entrar) overflowed at 768px; show the four main links there. */
.lc-nav a { white-space: nowrap; }
@media (min-width: 768px) and (max-width: 1099px) {
  .lc-nav { gap: 16px; }
  .lc-nav a:nth-child(2), .lc-nav a:nth-child(3), .lc-nav a:nth-child(7), .lc-nav a:nth-child(8) { display: none; }
  .lc-topbar { gap: 12px; padding-left: 20px; padding-right: 20px; }
}
