/* UI-IMPROVE-20261121: One Design tokens and the outer frame (globe top-left, "Airffic" and "you" top-right),
   shared by every Architect page: the site pages through site.css, and /guard, /editor, and /fly directly. */
:root {
  --ink: #1c2431;
  --muted: #55718d;
  --surface: #f8fbfd;
  --paper: #ffffff;
  --line: #d7e3ee;
  --brass: #b4530a;
  --orange: #ea6f0a;
  --orange-ink: #b4530a;
  --ok: #016630;
  --bad: #bf000f;
  --shadow: 0 1px 2px rgba(28, 36, 49, 0.05);
  --sans: "Geist", "Avenir Next", "Segoe UI", sans-serif;
  --display: "Playfair Display", "Iowan Old Style", Palatino, serif;
  --mono: "Geist Mono", "IBM Plex Mono", ui-monospace, monospace;
  color-scheme: light;
}

/* Outer frame: fixed globe top-left, "you" top-right. */
.world-globe, .me summary {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 999px;
}
.world-globe {
  position: fixed; z-index: 40; top: 16px; left: 16px;
  color: var(--ink); background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(8px);
}
.world-globe svg { transition: transform 0.15s ease; }
.world-globe:hover svg { transform: scale(1.05); }
.me { position: fixed; z-index: 40; top: 16px; right: 16px; }
/* HEADER-20261030-01: "Airffic" goes back to the Airffic Flight world, 8px left of "you" (alone at top-right when a page has no "you"). */
.aw-mark {
  position: fixed; z-index: 40; top: 16px; right: 68px;
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 4px;
  border-radius: 999px; background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(8px);
  font-family: var(--display); font-weight: 900; font-size: 17px; line-height: 1; color: #1c2431; text-decoration: none; white-space: nowrap;
}
.aw-mark.solo { right: 16px; }
.aw-mark:hover { color: #b4530a; text-decoration: none; }
.me summary {
  list-style: none; cursor: pointer; background: #fff; border: 1px solid var(--line); color: var(--ink);
  box-shadow: var(--shadow);
}
.me summary::-webkit-details-marker { display: none; }
.me summary:hover, .me[open] summary { border-color: var(--orange); }
.me-menu {
  position: absolute; right: 0; top: 52px; width: min(260px, calc(100vw - 32px));
  display: flex; flex-direction: column; padding: 6px 0;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
}
.me-menu a { display: flex; align-items: center; min-height: 44px; padding: 0 16px; text-decoration: none; font-size: 15px; }
.me-menu a:hover { background: var(--surface); color: var(--orange-ink); }
.me-menu a[aria-current="page"] { font-weight: 600; }
.me-account { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; padding: 0 16px 4px 0; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.me-account:empty { display: none; }
.me-account .chip { padding-left: 16px; font-size: 13px; }
/* Language switch at the foot of the account menu (i18n.js adds it). */
.me-lang { display: flex; gap: 4px; padding: 6px 12px 2px; margin-top: 4px; border-top: 1px solid var(--line); }
.me-lang a { min-height: 44px; padding: 0 10px; border-radius: 999px; font-size: 14px; }
.me-lang a[aria-current="true"] { font-weight: 600; background: var(--surface); }
