:root { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #20242a; background: #fff; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; min-inline-size: 280px; }
a { color: inherit; text-underline-offset: .2em; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; min-block-size: 44px; border: 1px solid #ccd0d5; border-radius: .5rem; background: #fff; padding: .55rem .8rem; }
button:hover, .popup a:hover { background: #f2f4f6; }
button:disabled { color: #656b73; cursor: default; }
:focus-visible { outline: 3px solid #245cba; outline-offset: 3px; }
[hidden] { display: none !important; }
.header { max-inline-size: 960px; margin-inline: auto; padding: 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.brand { font-weight: 650; text-decoration: none; min-block-size: 44px; display: inline-flex; align-items: center; }
.controls { margin-inline-start: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .5rem; min-inline-size: 0; }
.dropdown { position: relative; min-inline-size: 0; }
#account-button { max-inline-size: min(260px, calc(100vw - 7rem)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#language-button { display: flex; align-items: center; justify-content: center; inline-size: 44px; padding: 0; color: #000; }
#globe { display: inline-flex; width: 32px; height: 32px; }
.popup { z-index: 10; position: absolute; inset-block-start: calc(100% + .5rem); inset-inline-end: 0; inline-size: 192px; max-inline-size: calc(100vw - 2rem); padding: 0; background: #fff; border: 0; border-radius: .5rem; box-shadow: 0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a; }
.popup a, .popup button { display: flex; align-items: center; inline-size: 100%; min-block-size: 44px; text-align: start; padding: .5rem 1rem; border: 0; text-decoration: none; }
.popup button[aria-pressed="true"] { background: #edf2fa; font-weight: 650; }
main { max-inline-size: 760px; margin-inline: auto; padding: clamp(2rem, 8vw, 5rem) 1rem; }
h1 { font-size: clamp(2rem, 6vw, 3rem); line-height: 1.2; margin-block: 0 1.5rem; font-weight: 600; letter-spacing: -.025em; }
h2 { font-size: 1.2rem; margin-block-start: 2rem; }
p, li { line-height: 1.65; overflow-wrap: anywhere; }
#status { font-size: .9375rem; line-height: 1.5; color: #545b65; }
#status:empty { display: none; }
.skip { position: absolute; inset-block-start: -100px; inset-inline-start: 1rem; padding: .75rem; background: #fff; z-index: 20; }
.skip:focus { inset-block-start: .5rem; }

.header { direction: ltr; }
.brand { inline-size: 44px; justify-content: center; }
.controls { flex-wrap: nowrap; }
.login-box { display: flex; align-items: center; gap: 2px; }
#language-button, #account-button { border: 0; background: transparent; }
#account-button { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .25rem; color: #1a1a1a; }
#account-button.signed-in { padding: .5rem .75rem; }
.nav-menu-icon { flex-shrink: 0; stroke: currentColor; stroke-width: .3; paint-order: stroke fill; }
#avatar { border-radius: 50%; object-fit: cover; }
#account-name { display: block; padding: .7rem; font-weight: 700; overflow-wrap: anywhere; }
/* Kvasir's pill and two-line Google label, with its inline styles moved here for CSP. */
#login { position: relative; display: inline-flex; align-items: center; justify-content: center; min-block-size: 40px; block-size: 40px; margin: 0; padding: 2px .6rem; border: 0; border-radius: 999px; background: #7c3aed; color: #fff; font-size: .84rem; font-weight: 800; line-height: 1.05; box-shadow: 0 4px 14px rgb(124 58 237 / 30%); align-self: center; transition: box-shadow .16s ease, background .16s ease; }
#login::before { content: ""; position: absolute; inset: -2px 0; }
.login-label { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; line-height: 1; height: 100%; }
.login-main { line-height: 1.05; }
.login-provider { display: flex; flex-direction: row; align-items: center; gap: 2px; line-height: 1; white-space: nowrap; }
.login-provider > span { font-size: .62em; opacity: 1; font-weight: 400; }
.login-google-icon { width: .8em; height: .8em; vertical-align: middle; margin-inline-end: 2px; flex-shrink: 0; }
#login:hover { background: #6d28d9; box-shadow: 0 6px 18px rgb(124 58 237 / 42%); }
#login:disabled { cursor: default; }
#login:disabled:hover { background: #7c3aed; box-shadow: 0 4px 14px rgb(124 58 237 / 30%); }
#account-button:hover, #language-button:hover { color: #000; }
#language-popup { padding: .5rem; box-shadow: 0 20px 25px -5px #0000001a, 0 8px 10px -6px #0000001a; }
.popup { inset-inline-end: auto; right: 0; direction: ltr; }
[lang="he"] .popup { direction: rtl; }
.popup a[aria-current="true"] { background: #edf2fa; font-weight: 650; }
body[data-page="home"] main { text-align: center; padding-block-start: 2rem; }
body[data-page="home"] h1 { color: #6d28d9; background: linear-gradient(110deg, #2563eb, #7c3aed, #be185d); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.welcome-picture { display: block; width: min(100%, 280px); height: auto; margin: 0 auto 1.5rem; }
.public-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }
.public-links a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 480px) { .header { padding: .65rem; gap: .4rem; } main { padding-inline: .75rem; } }
