/* The one header and footer of the Gully ID site (ui/site-chrome.ts), on the kit's dark theme. Every colour, radius and
   font comes from gid/ui.css (--ui-*). Same on the landing, the developer pages, the info pages and the sign-in cards. */
html { scroll-padding-top: 72px; }
.gs-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gid-gutter, 16px); box-sizing: border-box; }
.gs-skip { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 8px 12px; border-radius: var(--ui-r-sm); background: var(--ui-cyan); font: 700 14px var(--ui-font); }
a.gs-skip, a.gs-skip:hover { color: var(--ui-on-cyan); }
.gs-skip:focus { top: 8px; }
#gs-main { display: block; height: 0; outline: 0; }

/* ---- header ---- */
.gs-top { position: sticky; top: 0; z-index: 40; flex: none; background: rgba(5, 8, 13, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--ui-line); padding-top: env(safe-area-inset-top, 0px); }
.gs-top > .gs-wrap { display: flex; align-items: center; gap: 12px; height: 56px; }
.gs-brand { display: inline-flex; flex: none; line-height: 0; border-radius: 6px; margin: 0; }
.gs-brand img { display: block; width: auto; height: 28px; }
.gs-nav { display: none; gap: 2px; margin-left: 16px; padding: 3px; border: 1px solid var(--ui-line); border-radius: var(--ui-r); background: var(--ui-ink); }
.gs-top .gs-nav a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border-radius: var(--ui-r-sm); color: var(--ui-muted); text-decoration: none; font: 600 13px/1 var(--ui-font); white-space: nowrap; transition: color var(--ui-dur) var(--ui-ease), background-color var(--ui-dur) var(--ui-ease); }
.gs-top .gs-nav a:hover { color: var(--ui-text); background: var(--ui-ink-2); }
.gs-top .gs-nav a[aria-current="page"] { color: var(--ui-white); background: var(--ui-ink-2); }
.gs-nav .nav-ic { width: 16px; height: 16px; }
.gs-cta { margin-left: auto; display: flex; align-items: center; gap: 6px; flex: none; }
.gs-top a.gs-signin { display: none; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: var(--ui-r-sm); color: var(--ui-text); text-decoration: none; font: 600 14px/1 var(--ui-font); white-space: nowrap; }
.gs-top a.gs-signin:hover { background: var(--ui-ink); color: var(--ui-white); }
.gs-signin .nav-ic { width: 16px; height: 16px; color: var(--ui-cyan); }
.gs-top a.ui-btn { width: auto; color: var(--ui-on-cyan); }
.gs-top a.ui-btn .nav-ic { width: 16px; height: 16px; color: inherit; }
.gs-top a:focus-visible, .gs-foot a:focus-visible { outline: 2px solid var(--ui-cyan); outline-offset: 2px; }
@media (min-width: 600px) { .gs-top a.gs-signin { display: inline-flex; } }
@media (min-width: 900px) { .gs-nav { display: flex; } }
/* 900-1059 px: the five items and the buttons share one row without touching */
@media (min-width: 900px) and (max-width: 1059px) { .gs-nav { margin-left: 6px; } .gs-top .gs-nav a { padding: 0 8px; } .gs-nav .nav-ic { display: none; } }
@media (pointer: coarse), (max-width: 899px) { .gs-top a.ui-btn, .gs-top a.gs-signin, .gs-brand, .gs-badge { min-height: 44px; align-items: center; } }

/* ---- footer ---- */
.gs-foot { flex: none; margin-top: auto; padding: 14px 0 12px; border-top: 1px solid var(--ui-line); background: var(--ui-night); color: var(--ui-muted); font: 400 13px/1.5 var(--ui-font); }
.gs-foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.gs-foot .gs-brand img { height: 24px; }
.gs-footnav { display: flex; flex-wrap: wrap; gap: 0 2px; }
.gs-foot .gs-footnav a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 8px; color: var(--ui-text-2); text-decoration: none; font-size: 13px; }
.gs-foot .gs-footnav a:hover { color: var(--ui-white); }
.gs-footnav .nav-ic { width: 16px; height: 16px; }
.gs-badge { display: inline-flex; line-height: 0; margin-left: auto; }
.gs-badge img { display: block; width: auto; height: 44px; }
.gs-foot .gid-trust { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--ui-line); justify-content: flex-start; text-align: left; }
.gs-foot .gid-trust a { min-height: 44px; }
.gs-foot .gid-trust-nav { justify-content: flex-start; }
.gs-foot p.gs-legal { margin: 2px 0 0; color: var(--ui-muted); font-size: 12px; }
@media (min-width: 900px) { .gs-foot .gid-trust a { min-height: 32px; } .gs-foot .gs-footnav a { min-height: 36px; } }
@media (max-width: 599px) { .gs-badge { margin-left: 0; } }

/* ---- the card pages (sign-in, consent, recovery, about, security, privacy, terms): header on top, card in the middle ---- */
body.gs-page { display: flex; flex-direction: column; align-items: stretch; min-height: 100vh; min-height: 100dvh; padding: 0; }
body.gs-page > main.card { align-self: center; width: calc(100% - 32px); margin: 20px 16px 24px; }
@media (max-width: 520px) { body.gs-page > main.card { width: calc(100% - 24px); margin: 12px 12px 20px; } }
