/* Public area shared styles (header/footer extras, icons, flags, skip link, lang menu, accent tokens).
   Extracted from the page sections of public-home.html and public-results.html, deduplicated. */

/* shared public-page bits */
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.btn .ic { width: 16px; height: 16px; }

.fl { position: relative; display: inline-block; width: 20px; height: 14px; border-radius: 3px; overflow: hidden; flex: none; vertical-align: -2px; }

.fl svg { width: 20px; height: 14px; }

.fl::after { content: ""; position: absolute; inset: 0; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }

.skip { position: absolute; left: 16px; top: -48px; z-index: 50; background: var(--navy-700); color: #fff; padding: 10px 14px; border-radius: var(--r-md); font-size: var(--fs-sm); text-decoration: none; }

.skip:focus { top: 12px; }

.ic-spin { animation: spin .9s linear infinite; }

@keyframes spin { to { rotate: 360deg; } }

@media (prefers-reduced-motion: reduce) { .ic-spin { animation-duration: 2.4s; } }

/* header */
.site-header .logo-img { height: 26px; }

.brand-link { display: inline-flex; border-radius: var(--r-sm); }

.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.lang { position: relative; margin-left: var(--s-2); }

.lang-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--r-sm); font: 600 var(--fs-xs)/1 var(--font-ui); letter-spacing: .04em; cursor: pointer; }

.lang-btn:hover { border-color: var(--ink-2); }

.lang-btn .ic { width: 16px; height: 16px; }

.lang-btn .chev { width: 14px; height: 14px; color: var(--muted); transition: rotate .15s; }

.lang-btn[aria-expanded="true"] .chev { rotate: 180deg; }

.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 160px; margin: 0; padding: var(--s-1); list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-2); }

.lang-menu[hidden] { display: none; }

.lang-menu a { display: block; padding: 8px 12px; border-radius: var(--r-sm); color: var(--ink-2); font-size: var(--fs-sm); text-decoration: none; }

.lang-menu a:hover { background: var(--sunken); color: var(--ink); }

.lang-menu a[aria-current] { color: var(--ink); font-weight: 600; }

/* footer */
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--s-8); }

.foot-brand .logo-img { height: 24px; filter: brightness(0) invert(1); }

.foot-brand p { margin-top: var(--s-4); max-width: 30ch; line-height: 1.55; }

.site-footer h4 { font: 600 11px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: #8794AE; margin-bottom: var(--s-4); }

.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }

.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2) var(--s-6); margin-top: var(--s-10); padding-top: var(--s-5); border-top: 1px solid rgba(255,255,255,.1); font-size: var(--fs-xs); color: #8F9BB3; }

.foot-bottom .fresh { display: inline-flex; align-items: center; gap: 8px; }

.foot-bottom .fresh i { width: 7px; height: 7px; border-radius: 50%; background: #5FCB8B; }

@media (max-width: 720px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: var(--s-8) var(--s-5); }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 400px) { .lang { margin-left: 0; } .site-nav a { padding: 8px 10px; } }

:root { --accent-ink: var(--navy-600); --illus: var(--navy-700); }

@media (prefers-color-scheme: dark) { :root { --accent-ink: #8FB0E8; --illus: #8FB0E8; } }

/* sticky footer */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body > main { flex: 1 0 auto; width: 100%; min-width: 0; }
body > .site-header, body > .site-footer { flex: none; }
