/* eduID Kosovo – KREN brand (tokens from kren-ks.eu: kren-modern / kren-lite).
   Fonts self-hosted (SIL OFL) so visitors make no requests to third parties. */
@font-face { font-family: "Sofia Sans Condensed"; font-style: normal; font-weight: 600 700; font-display: swap;
  src: url("fonts/sofia-sans-condensed-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Sofia Sans Condensed"; font-style: normal; font-weight: 600 700; font-display: swap;
  src: url("fonts/sofia-sans-condensed-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
/* Closest match to the KREN wordmark letterforms (Archivo, variable width/weight) */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url("fonts/archivo-var-latin.woff2") format("woff2"); unicode-range: U+0000-00FF; }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("fonts/roboto-condensed-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("fonts/roboto-condensed-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --accent: #5a4fcf; --accent-ink: #3f35a8; --accent-2: #7b5cff; --tint: #f1effd;
  --ink: #212934; --muted: #5b6172; --soft: #f5f6f8; --border: #e5e7ec; --card: #ffffff;
  --hero-1: #110d2c; --hero-2: #1b1546; --hero-text: #e8e9ff; --hero-muted: #b9b0ff;
  --warn-bg: #fff4d6; --warn: #6b4d00; --code: #eef0f6;
  --shadow: 0 10px 30px rgba(29, 34, 48, 0.08);
  --head: "Sofia Sans Condensed", Arial, Helvetica, sans-serif;
  --body: "Roboto Condensed", Arial, Helvetica, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #e8e9ff; --muted: #a6a9d6; --soft: #070a1f; --card: #0d1233; --border: rgba(140, 123, 255, .22);
    --accent: #8c7bff; --accent-ink: #b9b0ff; --tint: #1b1546; --warn-bg: #3a2f0f; --warn: #f3d27a; --code: #1b1546;
    --shadow: none; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--soft); color: var(--ink); font: 17.6px/1.6 var(--body);
  min-height: 100vh; display: flex; flex-direction: column; }
/* Footer stays at the bottom on short pages */
body > main { flex: 1 0 auto; width: 100%; }
body > footer.site { flex-shrink: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
h1, h2, h3 { font-family: var(--head); font-weight: 700; letter-spacing: .005em; }
.wrap { max-width: 980px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }

.banner { background: var(--warn-bg); color: var(--warn); font-size: .92rem; }
.banner .wrap { padding-top: 7px; padding-bottom: 7px; }

header.site { background: var(--card); border-bottom: 1px solid var(--border); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 12px; padding-bottom: 12px; }
/* Lockup "KREN | eduGAIN": eduGAIN matches the KREN wordmark (same cap height
   14.8px at a 34px logo, same ink, light wide face, shared baseline). */
.brand { display: flex; align-items: flex-end; gap: 0; color: inherit; text-decoration: none; }
.brand img { height: 34px; width: auto; display: block; }
.brand .brand-name { position: relative; font: 450 21.2px/1 "Archivo", Arial, sans-serif; font-stretch: 112%; color: #171d28;
  letter-spacing: .02em; border-left: 0; padding-left: 0; margin: 0 0 -3px 29px; }
.brand .brand-name::before { content: ""; position: absolute; left: -15px; bottom: 3px; width: 1.5px; height: 34px;
  background: #171d28; opacity: .25; }
/* The official wordmark is dark ink on transparent; keep it legible in dark mode */
@media (prefers-color-scheme: dark) { .brand img { background: #fff; border-radius: 6px; padding: 4px 7px; height: 42px; } }
@media (prefers-color-scheme: dark) { .brand .brand-name { color: #e8e9ff; } .brand .brand-name::before { background: #e8e9ff; } }
nav.site { display: flex; flex-wrap: wrap; gap: 4px 18px; }
nav.site .lang-switch { display: inline-flex; align-items: stretch; border: 1px solid var(--border); border-radius: 999px;
  overflow: hidden; margin-left: 6px; line-height: 1.5; }
nav.site .lang-switch a, nav.site .lang-switch span { display: block; padding: 3px 11px; font: 600 .82rem/1.5 var(--body);
  border: 0; color: var(--ink); }
nav.site .lang-switch a:hover { background: var(--tint); color: var(--accent-ink); }
nav.site .lang-switch span { background: var(--accent); color: #fff; }
nav.site a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; padding: 4px 0;
  border-bottom: 2px solid transparent; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }

.hero { background: linear-gradient(135deg, var(--hero-1), var(--hero-2)); color: var(--hero-text); }
.hero .wrap { padding-top: 40px; padding-bottom: 40px; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.1; margin: 0 0 12px; }
.hero p { max-width: 64ch; margin: 0 0 8px; }
.hero .en { color: var(--hero-muted); }
.pill { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--hero-muted); border: 1px solid rgba(185, 176, 255, .4); border-radius: 999px; padding: 3px 10px; margin-bottom: 14px; }

main.wrap { padding-top: 24px; padding-bottom: 48px; }
h1 { font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1.1; margin: .2em 0 .5em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.15; letter-spacing: .0069em; margin: 1.5em 0 .5em; }
h3 { font-size: 1.15rem; margin: 1.3em 0 .4em; }
p, li { max-width: 74ch; }
.lead { font-size: 1.1rem; color: var(--muted); }
.en { color: var(--muted); font-size: .95em; }

.card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px;
  box-shadow: var(--shadow); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin: 14px 0; }
.card h3 { margin-top: 0; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--border); font-size: .97rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--tint); font-family: var(--head); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .86em;
  background: var(--code); padding: 1px 5px; border-radius: 5px; overflow-wrap: anywhere; }
ol.steps { padding-left: 1.3em; }
ol.steps li { margin: .45em 0; }
.note { border-left: 4px solid var(--accent); background: var(--tint); padding: 10px 14px; border-radius: 0 10px 10px 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 1rem var(--body); border-radius: 999px;
  padding: 11px 22px; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 24px rgba(90, 79, 207, .35); }
.btn-primary:hover { background: var(--accent-ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--hero-text); border-color: rgba(185, 176, 255, .45); }
.btn-ghost:hover { border-color: var(--hero-text); color: #fff; }
.btn:not(.btn-primary):not(.btn-ghost) { color: var(--ink); border-color: var(--border); background: var(--card); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* Landing hero (full-height, minimal) */
.hero.big .wrap { padding-top: 56px; padding-bottom: 56px; }
.hero.big h1 { font-size: clamp(2.4rem, 6vw, 4.32rem); line-height: 1.02; }
.hero.glow { background:
  radial-gradient(1200px 420px at 85% -10%, rgba(123, 92, 255, .38), transparent 60%),
  radial-gradient(800px 320px at 0% 120%, rgba(79, 209, 255, .18), transparent 60%),
  linear-gradient(135deg, var(--hero-1), var(--hero-2)); }
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 28px 0 8px; }
.flow .card { display: flex; gap: 14px; align-items: flex-start; }
.num { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--tint); color: var(--accent-ink); font: 700 1.05rem var(--head); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.chips li { background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; font-size: .9rem; }
.muted { color: var(--muted); }

/* Institution chooser */
.chooser { max-width: 760px; margin: -36px auto 0; position: relative; }
.chooser .card { padding: 22px; }
.search { width: 100%; font: 1.05rem var(--body); padding: 12px 14px 12px 42px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--soft) url("search.svg") no-repeat 14px center / 18px; color: var(--ink); }
.search:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.inst-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 14px; }
.inst { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer;
  background: var(--card); color: var(--ink); border: 1px solid var(--border); border-radius: 12px; padding: 12px;
  font: 600 .98rem var(--body); transition: border-color .15s, transform .15s, box-shadow .15s; }
.inst:hover, .inst:focus-visible { border-color: var(--accent); transform: translateY(-1px); box-shadow: var(--shadow); outline: none; }
.inst small { display: block; font-weight: 400; color: var(--muted); font-size: .82rem; }
.inst.last { border-color: var(--accent); background: var(--tint); }
.badge { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  color: #fff; font: 700 .95rem var(--head); background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.to-service { font-size: 1.05rem; }
.to-service strong { color: #fff; }
.ms-note { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); margin-top: 14px; }

/* Result page */
.result { max-width: 640px; margin: -36px auto 0; position: relative; }
.ok-mark { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 28px;
  background: #e5f6ec; color: #1e7a45; margin-bottom: 8px; }
.err-mark { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 28px;
  background: #fde8e8; color: #a12828; margin-bottom: 8px; }
dl.attrs { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 14px 0; }
dl.attrs dt { color: var(--muted); }
dl.attrs dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

/* Footer – same look as kren-ks.eu (km-foot) */
footer.site { color: rgba(255, 255, 255, .72); font-size: 14px; line-height: 1.6;
  background:
    radial-gradient(900px 320px at 8% 0%, rgba(89, 71, 253, .38), transparent 60%),
    radial-gradient(700px 300px at 100% 100%, rgba(0, 214, 201, .10), transparent 60%),
    linear-gradient(#1b1546 0%, #110d2c 100%); }
footer.site .foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 28px; padding-top: 26px; padding-bottom: 26px; }
footer.site .foot-brand { display: flex; align-items: center; gap: 14px; }
footer.site .foot-logo { height: 28px; width: auto; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
footer.site a { color: #fff; text-decoration: none; }
footer.site a:hover { text-decoration: underline; }
footer.site .foot-copy { font-size: 13px; width: 100%; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 12px; }

/* Compact variants */
.hero.compact .wrap { padding-top: 28px; padding-bottom: 30px; }
.hero.compact h1 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); margin-bottom: 8px; }
.hero.compact .pill { margin-bottom: 10px; }
.compact-card dl.attrs { margin: 0; }
main.wrap { padding-top: 20px; padding-bottom: 32px; }
