/* Language switcher (all pages) and language-page support. Loaded after site.css. */
.lang-switch { position: relative; flex: none; }
.lang-switch summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px;
  padding: .45em .6em; border: 1px solid var(--line); border-radius: 6px;
  color: var(--ink-2); font-size: .9rem; font-weight: 600; line-height: 1.2;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary::after { content: "\25BE"; font-size: .75em; }
.lang-switch summary:hover { background: var(--surface-2); color: var(--ink); }
.lang-switch ul {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; margin: 0; padding: 6px;
  list-style: none; min-width: 10rem; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-sm); box-shadow: 0 6px 20px rgba(24, 24, 27, .12);
}
.lang-switch li a { display: block; padding: .4em .7em; border-radius: 6px; color: var(--ink-2); text-decoration: none; }
.lang-switch li a:hover { background: var(--surface-2); color: var(--ink); }
.lang-switch li a[aria-current] { font-weight: 700; color: var(--accent); }

@media (max-width: 480px) {
  .topbar-row { gap: 8px; }
  .brand { font-size: 1.05rem; gap: 6px; }
  .brand-mark { width: 30px; height: 30px; }
  .btn-top { margin-left: 0; }
  .topnav a { padding: .45em .55em; }
}

/* The language pages load the live site.css, which (2026-11-23) predates these
   rules in site.css v9. Same rules as there; drop them once v9 is live. */
#result { scroll-margin-top: 84px; }
.formats { margin-top: 14px; font-size: .95rem; }
.formats summary { cursor: pointer; color: var(--ink-2); padding: 6px 0; }
.formats p, .formats ul { margin: 8px 0; line-height: 1.55; }
.formats ul { padding-left: 1.2em; }
.formats code { font-size: .9em; }
.csv-example {
  overflow-x: auto;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-size: .82rem;
}
