/* 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;
}
/* Light theme only, also on phones set to dark mode (KREN NOC, 2026-10-27) */
:root { color-scheme: light; }
* { 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; }
nav.site { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
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); text-decoration: none; }
nav.site .lang-switch a:hover { background: var(--tint); color: var(--accent-ink); }
nav.site .lang-switch span { background: var(--accent); color: #fff; }
/* Header links: light tint pill on hover, same as the language switch */
nav.site > a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; padding: 4px 12px;
  border-radius: 999px; transition: background .15s, color .15s; }
nav.site > a:hover, nav.site > a:focus-visible, nav.site > a[aria-current="page"] { background: var(--tint); color: var(--accent-ink); }
.brand { padding: 6px 10px; margin: -6px -10px; border-radius: 12px; transition: background .15s; }
.brand:hover, .brand:focus-visible { background: var(--tint); }

.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; }
a.inst { text-decoration: none; }
/* Landing without hero: the whole chooser fits in the first view */
.chooser.plain { max-width: 980px; margin: 18px auto 0; }
.chooser.plain .card { padding: 16px 18px; }
.chooser .inst-grid { grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 8px; margin-top: 10px; }
.chooser .inst { padding: 8px 10px; font-size: .92rem; line-height: 1.25; }
.chooser .badge { width: 36px; height: 36px; font-size: .8rem; }
.badge.logo { background: #fff; border: 1px solid var(--border); padding: 3px; }
.badge.logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.chooser .ms-note { margin: 10px 0 0; }
/* Phones: a logo drop-down (<details>, works without JS) instead of the card grid */
.inst-drop { display: none; margin-top: 8px; }
.inst-drop summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer;
  border: 1px solid var(--border); border-radius: 14px; background: var(--card); font-weight: 600; box-shadow: var(--shadow);
  transition: border-color .15s; }
.inst-drop summary::-webkit-details-marker { display: none; }
.inst-drop summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent); transform: rotate(45deg); margin-top: -4px; transition: transform .2s, margin .2s; }
.inst-drop[open] summary { border-color: var(--accent); }
.inst-drop[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.inst-drop summary .badge img { width: 22px; height: 22px; }
.drop-list { display: grid; gap: 6px; margin-top: 8px; max-height: 62vh; overflow-y: auto; padding: 2px;
  animation: kren-drop .18s ease-out; }
.drop-list .inst { width: 100%; }
@keyframes kren-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.last-quick { display: none; }
@media (max-width: 640px) {
  .inst-drop { display: block; }
  .chooser .inst-grid, .chooser .search { display: none !important; }
  /* Modern one-row header: lockup left, language right, sticky */
  header.site { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .88);
    -webkit-backdrop-filter: saturate(160%) blur(10px); backdrop-filter: saturate(160%) blur(10px); }
  header.site .wrap { flex-wrap: nowrap; padding-top: 10px; padding-bottom: 10px; }
  /* Lockup at real size (a transform would keep the full width and overflow the screen) */
  header.site .wrap { gap: 8px; }
  .brand img { height: 26px; }
  .brand .brand-name { font-size: 16.2px; margin: 0 0 -2.3px 22px; }
  .brand .brand-name::before { left: -11px; bottom: 2.3px; height: 26px; width: 1.2px; }
  nav.site > a[href^="https://tiketa."] { display: none; }
  nav.site { flex-wrap: nowrap; align-items: center; gap: 2px; }
  nav.site > a { font-size: .9rem; white-space: nowrap; padding: 4px 6px; }
  nav.site .lang-switch { margin-left: 2px; }
  nav.site .lang-switch a, nav.site .lang-switch span { padding: 3px 8px; }
  .chooser label.muted { display: none; }
  .chooser.plain { margin-top: 14px; }
  /* Bigger touch targets in the drop-down */
  .inst-drop summary { padding: 14px 16px; font-size: 1.02rem; }
  .drop-list { gap: 8px; max-height: none; }
  .drop-list .inst { padding: 12px 14px; min-height: 60px; font-size: .98rem; }
  .drop-list .badge { width: 40px; height: 40px; }
  /* Last choice: one tap, above the drop-down */
  .last-quick { display: block; margin-top: 4px; }
  .last-quick .inst { padding: 12px 14px; min-height: 60px; font-size: .98rem; }
  .last-quick .badge { width: 40px; height: 40px; }
  .last-quick + .inst-drop summary { font-size: .95rem; padding: 12px 16px; }
  /* Whole page in the first view: dynamic viewport height, compact footer */
  body { min-height: 100dvh; }
  main.wrap { padding-bottom: 16px; }
}

.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; }
.result.plain { margin-top: 18px; }
.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; }
/* Identity card: dark brand band with the institution logo, compact body */
.result.plain { max-width: 560px; }
.id-card { padding: 0; overflow: hidden; }
.id-head { display: flex; gap: 14px; align-items: center; padding: 18px 20px; color: var(--hero-text);
  background: radial-gradient(420px 160px at 100% 0%, rgba(123, 92, 255, .45), transparent 65%),
    radial-gradient(300px 140px at 0% 120%, rgba(79, 209, 255, .16), transparent 60%),
    linear-gradient(135deg, var(--hero-1), var(--hero-2)); }
.avatar { flex: none; width: 58px; height: 58px; border-radius: 16px; background: #fff; padding: 6px;
  display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0, 0, 0, .28); }
.avatar img { width: 100%; height: 100%; object-fit: contain; display: block; }
.avatar.initials { color: #fff; font: 700 1.25rem var(--head); background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.avatar.icon { background: linear-gradient(135deg, var(--accent), var(--accent-2)); padding: 14px; }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: .74rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: #8ff0b5; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor;
  box-shadow: 0 0 0 3px rgba(143, 240, 181, .22); }
.status.err { color: #ffb4b4; }
.status.err::before { box-shadow: 0 0 0 3px rgba(255, 180, 180, .22); }
.id-name { font-size: clamp(1.35rem, 3.5vw, 1.7rem); line-height: 1.1; margin: 3px 0 2px; color: #fff; }
.id-org { color: var(--hero-muted); font-size: .92rem; line-height: 1.35; }
.id-body { padding: 14px 20px 18px; }
.chooser .card.id-card { padding: 0; }
.chooser .id-body { padding: 12px 16px 16px; }
.id-org strong { color: #fff; }
.chips.roles { margin: 0 0 12px; }
.chips.roles li { background: var(--tint); border-color: transparent; color: var(--accent-ink); font-weight: 600; padding: 3px 12px; }
.chips.roles li.none { background: var(--soft); color: var(--muted); }
dl.attrs.rows { gap: 0; margin: 0 0 10px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; font-size: .95rem; }
dl.attrs.rows dt, dl.attrs.rows dd { padding: 8px 12px; border-top: 1px solid var(--border); }
dl.attrs.rows dt:first-of-type, dl.attrs.rows dd:first-of-type { border-top: 0; }
dl.attrs.rows dt { background: var(--soft); }
.hint { font-size: .86rem; color: var(--muted); margin: 0 0 4px; }
.btn-row.tight { margin-top: 14px; gap: 8px; }
.btn-sm { padding: 8px 18px; font-size: .95rem; }
.btn-primary.btn-sm { box-shadow: 0 6px 16px rgba(90, 79, 207, .3); }
@media (max-width: 640px) {
  /* Phones: light header instead of the dark band, less purple on a small screen */
  .id-head { padding: 16px 16px 4px; gap: 12px; background: var(--card); color: var(--ink); }
  .id-name { color: var(--ink); font-size: 1.3rem; }
  .id-org { color: var(--muted); }
  .id-org strong { color: var(--ink); }
  .status { color: #1e7a45; } .status.err { color: #a12828; }
  .avatar { box-shadow: none; border: 1px solid var(--border); }
  .avatar.icon, .avatar.initials { border: 0; }
  .id-body { padding: 12px 16px 16px; }
  .avatar.icon { background: var(--tint); padding: 12px; }
  .inst-drop summary .badge { background: var(--tint); }
  .avatar.icon img, .inst-drop summary .badge img { content: url("inst-accent.svg"); }
  .avatar { width: 50px; height: 50px; border-radius: 14px; }
  dl.attrs.rows { grid-template-columns: 1fr; }
  dl.attrs.rows dd { border-top: 0; padding-top: 0; }
  dl.attrs.rows dt { background: transparent; padding-bottom: 2px; font-size: .82rem; }
}

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 lockup "KREN | eduGAIN": the header lockup scaled from a 34px to a 28px logo */
footer.site .foot-brand { display: flex; align-items: flex-end; }
footer.site .foot-logo { height: 28px; width: auto; display: block; }
footer.site .foot-name { position: relative; font: 450 17.46px/1 "Archivo", Arial, sans-serif; font-stretch: 112%;
  letter-spacing: .02em; color: #fff; margin: 0 0 -2.5px 24px; }
footer.site .foot-name::before { content: ""; position: absolute; left: -12px; bottom: 2.5px; width: 1.25px; height: 28px;
  background: #fff; opacity: .35; }
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; }
.prose { max-width: 760px; } .prose h2 { margin-top: 1.2em; }

/* Phones: compact footer so the whole page fits the first view */
@media (max-width: 640px) {
  footer.site .foot-row { padding-top: 16px; padding-bottom: 14px; gap: 8px 18px; }
  footer.site .foot-copy { padding-top: 8px; font-size: 12px; }
  main.wrap { padding-top: 14px; padding-bottom: 16px; }
}
