/* ─────────────────────────────────────────────────────────────
   Central Asian Research Index — an editorial, scholarly look.
   Serif headings, Inter for interface text, one institutional blue,
   and one control system (40px, hairline border, 8px radius).
   ───────────────────────────────────────────────────────────── */
:root {
  --bg: #ffffff; --bg2: #f6f7f9; --card: #ffffff; --ink: #15191f; --ink2: #3a414b; --muted: #5d6572; --faint: #8b929d;
  --line: #dde1e7; --line2: #c3c9d2; --hair: #eceef2; --fill: rgba(15, 23, 42, .04); --fill2: rgba(15, 23, 42, .075);
  --logo: #2457d6; --logo2: #14b3a3; --blue: #1f5cb8; --blue-h: #1a4e9e; --link: #1f5cb8; --tint: #eef3fb; --nav: rgba(255, 255, 255, .9);
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 14px rgba(16, 24, 40, .06); --shadow-lg: 0 16px 48px rgba(16, 24, 40, .14);
  --ctl: 40px; --r: 8px;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Source Serif 4', 'Source Serif Pro', 'PT Serif', Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0f1115; --bg2: #161920; --card: #181b22; --ink: #eef0f3; --ink2: #c9ced6; --muted: #9aa2ae; --faint: #7a828e;
  --line: #2b3039; --line2: #3c434e; --hair: #22262e; --fill: rgba(255, 255, 255, .05); --fill2: rgba(255, 255, 255, .09);
  --logo: #6f9bff; --logo2: #2fd3c2; --blue: #6aa3f2; --blue-h: #8ab8f6; --link: #7aaef4; --tint: rgba(106, 163, 242, .14); --nav: rgba(15, 17, 21, .9);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 14px rgba(0, 0, 0, .35); --shadow-lg: 0 16px 48px rgba(0, 0, 0, .6); color-scheme: dark;
}}
:root[data-theme="dark"] {
  --bg: #0f1115; --bg2: #161920; --card: #181b22; --ink: #eef0f3; --ink2: #c9ced6; --muted: #9aa2ae; --faint: #7a828e;
  --line: #2b3039; --line2: #3c434e; --hair: #22262e; --fill: rgba(255, 255, 255, .05); --fill2: rgba(255, 255, 255, .09);
  --logo: #6f9bff; --logo2: #2fd3c2; --blue: #6aa3f2; --blue-h: #8ab8f6; --link: #7aaef4; --tint: rgba(106, 163, 242, .14); --nav: rgba(15, 17, 21, .9);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 14px rgba(0, 0, 0, .35); --shadow-lg: 0 16px 48px rgba(0, 0, 0, .6); color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 64px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--sans); letter-spacing: -.006em; font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; outline: none; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
button, input, select { font: inherit; color: inherit; letter-spacing: inherit; }
svg { width: 1em; height: 1em; flex-shrink: 0; }
h1, h2, h3 { font-family: var(--display); margin: 0; font-weight: 600; letter-spacing: -.018em; }
h1 em, h2 em { font-style: normal; color: var(--blue); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 780px; margin: 0 auto; padding: 0 22px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--card); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
mark { background: none; color: inherit; font-weight: 600; }
.muted { color: var(--muted); }
.ico { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ── nav ── */
.topbar { position: sticky; top: 0; z-index: 30; background: var(--nav); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--hair); }
.topbar-in { display: flex; align-items: center; gap: 36px; height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand svg { width: 28px; height: 28px; flex-shrink: 0; }
.brand-name { display: flex; flex-direction: column; font: 700 14px/1.12 var(--sans); letter-spacing: -.015em; white-space: nowrap; }
.brand-name span { font-weight: 500; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 500; align-self: stretch; }
.nav a { color: var(--muted); display: flex; align-items: center; padding: 0 12px; position: relative; white-space: nowrap; } .nav a:hover { color: var(--ink); text-decoration: none; }
.nav a.on { color: var(--ink); }
.nav a.on::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--blue); }
.saved-link b { font-weight: 600; color: var(--blue); margin-left: 4px; } .saved-link b:empty { display: none; }
.navright { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.topsearch { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 0 12px; height: 36px; width: 260px; transition: width .25s, border-color .15s; }
.topsearch:hover { border-color: var(--line2); }
.topsearch:focus-within { width: 320px; border-color: var(--blue); box-shadow: 0 0 0 3px var(--tint); }
.topsearch svg { color: var(--faint); }
.topsearch input { border: 0; background: none; outline: none; flex: 1; min-width: 0; font-size: 13.5px; }
body.r-home .topsearch, body.r-search .topsearch { display: none; }
.langsel { appearance: none; -webkit-appearance: none; border: 1px solid transparent; background: none; font-size: 14px; font-weight: 500; color: var(--muted); height: 36px; padding: 0 10px; border-radius: var(--r); cursor: pointer; }
.langsel:hover { color: var(--ink); border-color: var(--line); }
.icon-btn { border: 1px solid transparent; background: none; width: 36px; height: 36px; border-radius: var(--r); display: grid; place-items: center; cursor: pointer; color: var(--muted); font-size: 17px; }
.icon-btn:hover { color: var(--ink); border-color: var(--line); }

/* ── loader & toast ── */
.loader { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 40; display: flex; align-items: center; gap: 12px; padding: 10px 18px; font-size: 13px; color: var(--muted);
  background: var(--nav); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: 999px; box-shadow: var(--shadow-lg); white-space: nowrap; }
.loader[hidden] { display: none; }
.loader .bar { width: 110px; height: 4px; border-radius: 4px; background: var(--fill2); overflow: hidden; }
.loader .bar i { display: block; height: 100%; width: 0; background: var(--blue); transition: width .2s; }
.toast { position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: var(--bg); padding: 10px 20px; border-radius: 999px; font-size: 14px; transition: .3s cubic-bezier(.2, .8, .2, 1); pointer-events: none; z-index: 60; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); background: var(--card); color: var(--ink); height: var(--ctl); padding: 0 16px; border-radius: var(--r); font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { border-color: var(--line2); background: var(--bg2); text-decoration: none; }
.btn:active { background: var(--fill2); }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-h); border-color: var(--blue-h); }
.btn.lg { height: 46px; padding: 0 22px; font-size: 15px; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn.round { width: var(--ctl); height: var(--ctl); padding: 0; font-size: 17px; }
.btn.on { color: var(--blue); }
.btn.on svg { fill: currentColor; }
.tlink { color: var(--link); font-size: 15px; display: inline-flex; align-items: center; gap: 3px; }
.tlink::after { content: '›'; font-size: 1.15em; line-height: 1; transform: translateY(-1px); }

/* ── home ── */
.hero { text-align: center; padding: 96px 0 56px; border-bottom: 1px solid var(--hair);
  background: radial-gradient(1200px 400px at 50% -120px, var(--tint), transparent 70%); }
.hero h1 { font: 600 clamp(36px, 5.2vw, 58px)/1.1 var(--serif); letter-spacing: -.02em; max-width: 860px; margin: 0 auto; text-wrap: balance; }
.grad { color: var(--blue); }
.hero p.sub { font-size: clamp(17px, 1.8vw, 19px); line-height: 1.55; color: var(--muted); max-width: 640px; margin: 20px auto 36px; }
.spot { position: relative; max-width: 680px; margin: 0 auto; }
.spot svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--faint); pointer-events: none; }
.spot input { width: 100%; height: 56px; border: 1px solid var(--line2); border-radius: 12px; background: var(--card); padding: 0 20px 0 50px; font-size: 17px; outline: none; box-shadow: var(--shadow); transition: box-shadow .15s, border-color .15s; }
.spot input:hover { border-color: var(--faint); }
.spot input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px var(--tint), var(--shadow); }
.spot input::placeholder { color: var(--faint); }
.suggest { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 18px; font-size: 14px; }
.suggest a { color: var(--ink2); border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 4px 12px; }
.suggest a:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.suggest span { color: var(--faint); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 820px; margin: 44px auto 0; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font: 600 clamp(26px, 3.2vw, 34px)/1.1 var(--serif); letter-spacing: -.01em; font-variant-numeric: tabular-nums lining-nums; }
.stat span { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 500; }
.statx { margin: 14px 0 0; text-align: center; font-size: 14px; }
.statx a { color: var(--muted); text-decoration: none; border-bottom: 1px dotted currentColor; }
.statx a:hover { color: var(--ink, inherit); }

.band { background: var(--bg2); }
.section { padding: 72px 0 0; }
.band .section, .section.pb { padding-bottom: 72px; }
.band { border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.headline { font: 600 clamp(26px, 2.8vw, 32px)/1.2 var(--serif); letter-spacing: -.01em; margin-bottom: 28px; max-width: 820px; }
.headline span { display: block; font: 400 16px/1.5 var(--sans); letter-spacing: 0; color: var(--muted); margin-top: 6px; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.head-row .tlink { margin-bottom: 32px; flex-shrink: 0; font-weight: 500; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; justify-content: space-between; min-height: 96px; padding: 20px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.tile:hover { text-decoration: none; border-color: var(--line2); box-shadow: var(--shadow); }
.tile .glyph { display: none; }
.tile b { font: 600 16px/1.3 var(--sans); letter-spacing: -.01em; }
.tile small { font-size: 14px; color: var(--muted); margin-top: 4px; }

/* shelf (horizontal scrolling cards) */
.shelf { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 340px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 22px 30px; margin: 0 -22px; scrollbar-width: none; }
.shelf::-webkit-scrollbar { display: none; }
.scard { scroll-snap-align: start; display: flex; flex-direction: column; padding: 22px; min-height: 250px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.scard:hover { text-decoration: none; border-color: var(--line2); box-shadow: var(--shadow); }
.scard:hover h3 { color: var(--blue); }
.scard .eyebrow { font-size: 11.5px; font-weight: 600; color: var(--blue); text-transform: uppercase; letter-spacing: .05em; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.scard h3 { font: 600 18px/1.35 var(--serif); letter-spacing: -.005em; margin: 10px 0 10px; transition: color .15s; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.scard p { font-size: 14px; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.scard .foot { margin-top: auto; padding-top: 16px; font-size: 13px; color: var(--faint); }

/* countries */
.countries { display: flex; flex-wrap: wrap; gap: 12px; }
.ctry { display: flex; align-items: center; gap: 14px; padding: 14px 22px 14px 16px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.ctry:hover { text-decoration: none; border-color: var(--line2); box-shadow: var(--shadow); }
.ctry .flag { font-size: 30px; line-height: 1; }
.ctry b { display: block; font-weight: 600; font-size: 16px; } .ctry small { font-size: 13px; color: var(--muted); }

/* ── journal covers (Books-style) ── */
.covers { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 36px 24px; }
.jc { color: var(--ink); display: flex; flex-direction: column; }
.jc:hover { text-decoration: none; }
.cover { position: relative; aspect-ratio: 3 / 4; border-radius: 6px; padding: 16px 14px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; overflow: hidden;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .12), 0 6px 16px rgba(16, 24, 40, .1); transition: transform .25s ease, box-shadow .25s ease; }
.cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .18) 0, rgba(255, 255, 255, .08) 2.5%, transparent 5%); pointer-events: none; }
.cover::before { content: ''; position: absolute; left: 14px; right: 14px; top: 38px; height: 1px; background: rgba(255, 255, 255, .35); }
.jc:hover .cover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(16, 24, 40, .12), 0 14px 28px rgba(16, 24, 40, .16); }
.jc:hover .jt { color: var(--blue); }
.cover .ct { font: 600 16px/1.25 var(--serif); letter-spacing: -.005em; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 2px rgba(0, 0, 0, .15); }
.cover .cm { font-size: 10.5px; opacity: .8; letter-spacing: .07em; text-transform: uppercase; font-weight: 600; }
.cover.off { filter: grayscale(1) contrast(.8); opacity: .5; }
.jc .jt { font-size: 14px; font-weight: 600; line-height: 1.3; margin-top: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.jc .js { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ── page heads ── */
.phead { padding: 56px 0 28px; }
.phead h1 { font: 600 clamp(32px, 3.6vw, 42px)/1.15 var(--serif); letter-spacing: -.015em; }
.phead p { font-size: 17px; color: var(--muted); max-width: 680px; margin: 10px 0 0; line-height: 1.55; }

/* segmented & pills */
.seg { display: inline-flex; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 3px; gap: 2px; height: var(--ctl); }
.seg a, .seg button { display: inline-flex; align-items: center; gap: 6px; height: 100%; border: 0; background: none; padding: 0 13px; border-radius: 5px; font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; white-space: nowrap; }
.seg a:hover, .seg button:hover { text-decoration: none; color: var(--ink); background: var(--bg2); }
.seg .on, .seg .on:hover { background: var(--tint); color: var(--blue); font-weight: 600; }
.pills { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); padding-right: 48px; }
.pills::-webkit-scrollbar { display: none; }
.pill { flex-shrink: 0; border: 1px solid var(--line); background: var(--card); color: var(--ink2); height: 32px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; font-size: 13.5px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.pill:hover { border-color: var(--line2); color: var(--ink); text-decoration: none; }
.pill.on, .pill.on:hover { background: var(--tint); border-color: color-mix(in srgb, var(--blue) 45%, transparent); color: var(--blue); }
.controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.field { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 0 12px; height: var(--ctl); min-width: 280px; transition: border-color .15s, box-shadow .15s; }
.field:hover { border-color: var(--line2); }
.field:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--tint); }
.field svg { color: var(--faint); }
.field input { border: 0; background: none; outline: none; flex: 1; min-width: 0; font-size: 14px; }

/* ── search ── */
.shead { padding: 44px 0 10px; }
.shead .spot { margin: 0; max-width: 760px; }
.shead .spot input { height: 48px; font-size: 16px; border-radius: var(--r); box-shadow: none; }
.sbar { display: flex; gap: 10px; align-items: stretch; max-width: 900px; }
.sbar .spot { flex: 1; min-width: 0; }
.advbtn { height: 48px; padding: 0 18px; font-size: 14px; }
.advbtn svg { color: var(--muted); }
.advbtn:hover { color: var(--blue); } .advbtn:hover svg { color: var(--blue); }
.advlink { text-align: center; margin: 14px 0 0; font-size: 14px; font-weight: 500; }
.advlink a { display: inline-flex; align-items: center; gap: 6px; }
.ctrysel { appearance: none; -webkit-appearance: none; border: 1px solid var(--line); background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b929d' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.6 3.8 5.6 3.8 9s-1.3 6.4-3.8 9c-2.5-2.6-3.8-5.6-3.8-9S9.5 5.6 12 3z'/%3E%3C/svg%3E") no-repeat 12px center / 16px 16px; height: var(--ctl); border-radius: var(--r); padding: 0 36px 0 36px; font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer; min-width: 190px; transition: border-color .15s, box-shadow .15s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b929d' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.6 3.8 5.6 3.8 9s-1.3 6.4-3.8 9c-2.5-2.6-3.8-5.6-3.8-9S9.5 5.6 12 3z'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23888' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat, no-repeat; background-position: 12px center, right 13px center; background-size: 16px 16px, 10px 7px; }
.ctrysel:hover { border-color: var(--line2); }
.ctrysel:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--tint); }
.field.lg { height: 44px; min-width: 400px; padding: 0 14px; }
.field.lg input { font-size: 15px; }
.controls:has(.field.lg) .seg { height: 44px; }
.controls:has(.field.lg) .ctrysel { height: 44px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--tint); color: var(--blue); padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; }
.chip:hover { background: color-mix(in srgb, var(--blue) 18%, transparent); text-decoration: none; }
.chip .x { color: var(--faint); }
.layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding-top: 28px; padding-bottom: 80px; }
.facets { position: sticky; top: 76px; align-self: start; max-height: calc(100vh - 96px); overflow: auto; scrollbar-width: none; }
.facets::-webkit-scrollbar { display: none; }
.facets .close { display: none; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.facet { margin-bottom: 30px; }
.facet h4 { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.facet a.opt { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; font-size: 14px; color: var(--ink2); line-height: 1.3; }
.facet a.opt:hover { color: var(--blue); text-decoration: none; }
.facet a.opt span { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.facet a.opt em { font-style: normal; color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; padding-top: 2px; }
.facet a.opt.on { color: var(--blue); font-weight: 600; }
.facet a.opt.on span::before { content: '✓ '; }
.facet .more { border: 0; background: none; padding: 4px 0; color: var(--link); font-size: 14px; cursor: pointer; }
.hist { display: flex; align-items: flex-end; gap: 2px; height: 48px; margin: 6px 0 8px; }
.hist i { flex: 1; background: var(--fill2); border-radius: 2px; min-height: 2px; cursor: pointer; }
.hist i.in { background: var(--blue); }
.hist i:hover { opacity: .7; }
.yr { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--faint); }
.yr input { width: 76px; height: 32px; border: 1px solid var(--line); background: var(--card); border-radius: 6px; padding: 0 9px; font-size: 13px; outline: none; }
.yr input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--tint); }
.rbar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--hair); }
.rbar h2 { font-size: 24px; letter-spacing: -.03em; }
.rbar h2 small { font-size: 17px; font-weight: 400; color: var(--muted); letter-spacing: -.02em; }
.rbar .tools { display: flex; gap: 8px; align-items: center; }
.sortsel { border: 1px solid var(--line); background: var(--card); border-radius: 6px; height: 34px; padding: 0 10px; font-size: 13px; font-weight: 500; cursor: pointer; }
.sortsel:hover { border-color: var(--line2); }
.notice.subtle { background: none; padding: 8px 0 0; font-size: 13px; color: var(--faint); }
.notice { padding: 14px 18px; border-radius: 14px; background: var(--bg2); color: var(--muted); font-size: 15px; margin: 18px 0 0; }
.filter-toggle { display: none; }

/* result rows */
.results { display: flex; flex-direction: column; }
.res { padding: 24px 0; border-bottom: 1px solid var(--hair); display: grid; grid-template-columns: 1fr auto; gap: 0 20px; }
.res .meta { grid-column: 1; font-size: 13px; color: var(--muted); margin-bottom: 6px; display: flex; flex-wrap: wrap; gap: 0 6px; }
.res .meta a { color: inherit; } .res .meta a:hover { color: var(--blue); }
.res .meta .dot::before { content: '·'; margin-right: 6px; }
.res .meta .new { color: #b45309; font-weight: 600; }
.res h3 { grid-column: 1; font: 600 19px/1.35 var(--serif); letter-spacing: -.005em; }
.res h3 a { color: var(--ink); } .res h3 a:hover { color: var(--blue); text-decoration: none; }
.res .au { grid-column: 1; font-size: 15px; color: var(--ink2); margin-top: 6px; }
.res .au a { color: inherit; } .res .au a:hover { color: var(--blue); }
.res .snip { grid-column: 1; font-size: 15px; line-height: 1.5; color: var(--muted); margin: 8px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.res .side { grid-column: 2; grid-row: 1 / span 4; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; padding-top: 18px; }
.res .side a { font-size: 14px; white-space: nowrap; }
.bm { border: 0; background: none; cursor: pointer; color: var(--faint); font-size: 19px; padding: 4px; border-radius: 8px; line-height: 0; }
.bm:hover { color: var(--ink); background: var(--fill); }
.bm.on { color: var(--blue); }
.bm svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.bm.on svg { fill: currentColor; }
.empty { text-align: center; padding: 90px 20px; color: var(--muted); }
.empty h3 { color: var(--ink); font-size: 28px; margin-bottom: 8px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 4px; margin: 40px 0 0; flex-wrap: wrap; }
.pager button { min-width: 36px; height: 36px; border: 0; background: none; border-radius: 980px; cursor: pointer; padding: 0 10px; font-size: 15px; color: var(--ink); }
.pager button:hover { background: var(--fill); }
.pager button.on { background: var(--ink); color: var(--bg); }
.pager button:disabled { opacity: .3; cursor: default; background: none; }
.pager span { color: var(--faint); padding: 0 4px; }
.live { margin-top: 48px; padding: 28px; border-radius: 22px; background: var(--bg2); }
.live h3 { font-size: 21px; }
.live p { margin: 6px 0 18px; color: var(--muted); font-size: 15px; }

/* ── article ── */
.art { padding-top: 56px; padding-bottom: 100px; }
.art-head { max-width: 880px; }
.art-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.art-grid.solo { grid-template-columns: minmax(0, 760px); }
.art-main { min-width: 0; }
.art-side { border-left: 1px solid var(--hair); padding-left: 32px; }
.art-side .blk { margin-top: 0; }
.art-side .blk + .blk { margin-top: 40px; }
.art-side .list a { padding: 12px 0; }
.art-side .list b { font-size: 15px; }
.art-side .list small { font-size: 12.5px; line-height: 1.4; display: block; margin-top: 3px; }
@media (max-width: 960px) {
  .art-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .art-side { border-left: 0; padding-left: 0; }
  .art-side .blk, .art-side .blk + .blk { margin-top: 56px; }
}
.art .eyebrow { font-size: 15px; font-weight: 600; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0 8px; }
.art .eyebrow a { color: var(--blue); }
.art h1 { font: 600 clamp(28px, 3.4vw, 40px)/1.2 var(--serif); letter-spacing: -.012em; margin: 14px 0 0; text-wrap: balance; }
.art .ot { font-size: 19px; color: var(--muted); margin-top: 12px; line-height: 1.4; }
.art .authors { font-size: 19px; color: var(--ink2); margin-top: 22px; line-height: 1.5; }
.art .authors a { color: inherit; } .art .authors a:hover { color: var(--blue); text-decoration: none; }
.art .authors .orc { display: inline-block; vertical-align: -2px; margin-left: 3px; width: 15px; height: 15px; }
.art .actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 32px 0 44px; align-items: center; }
.abstract { font-family: var(--serif); font-size: 20px; line-height: 1.68; letter-spacing: -.005em; color: var(--ink); }
.abstract p { margin: 0 0 1em; }
.abstract.missing { font-family: var(--sans); font-size: 17px; color: var(--muted); padding: 22px 24px; background: var(--bg2); border-radius: 18px; }
.label { font-size: 13px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 14px; }
.group { background: var(--bg2); border-radius: 16px; overflow: hidden; margin: 0; }
.group > div { display: flex; justify-content: space-between; gap: 24px; padding: 13px 18px; font-size: 15px; border-bottom: 1px solid var(--hair); }
.group > div:last-child { border-bottom: 0; }
.group dt { color: var(--muted); flex-shrink: 0; }
.group dd { margin: 0; text-align: right; word-break: break-word; }
.blk { margin-top: 56px; }
.list a { display: block; padding: 14px 0; border-bottom: 1px solid var(--hair); color: var(--ink); }
.list a:hover { text-decoration: none; } .list a:hover b { color: var(--blue); }
.list b { font-weight: 600; font-size: 16px; line-height: 1.35; display: block; letter-spacing: -.02em; }
.list small { color: var(--muted); font-size: 13px; }

/* sheet (cite modal) */
dialog.sheet { border: 0; padding: 0; border-radius: 22px; background: var(--card); color: var(--ink); width: min(620px, calc(100vw - 32px)); box-shadow: var(--shadow-lg); }
dialog.sheet::backdrop { background: rgba(0, 0, 0, .36); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
dialog.sheet[open] { animation: up .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes up { from { transform: translateY(24px) scale(.98); opacity: 0; } }
.sheet-in { padding: 26px; }
.sheet-in header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.sheet-in h3 { font-size: 21px; }
.cite-box { margin: 16px 0; padding: 16px 18px; border-radius: 14px; background: var(--bg2); font-size: 14px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; max-height: 260px; overflow: auto; font-family: var(--sans); }
.cite-box.code { font: 12.5px/1.55 ui-monospace, 'SF Mono', Menlo, monospace; }
.sheet .seg { flex-wrap: wrap; }

/* ── journal page ── */
.jhero { display: grid; grid-template-columns: 200px 1fr; gap: 44px; align-items: center; padding: 64px 0 40px; }
.jhero .cover { width: 200px; }
.jhero .eyebrow { font-size: 15px; font-weight: 600; color: var(--muted); }
.jhero h1 { font: 600 clamp(28px, 3.4vw, 40px)/1.15 var(--serif); letter-spacing: -.012em; margin: 8px 0 6px; }
.jhero .alt { font-size: 17px; color: var(--muted); }
.jstats { display: flex; flex-wrap: wrap; gap: 36px; margin: 26px 0; }
.jstats b { display: block; font: 600 28px/1.1 var(--display); letter-spacing: -.035em; }
.jstats span { font-size: 13px; color: var(--muted); }
.jhero .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.years { margin: 10px 0 14px; }
.issues-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }

/* ── prose ── */
.prose { padding-top: 10px; padding-bottom: 100px; font-size: 19px; line-height: 1.6; }
.prose h2 { font-size: 32px; letter-spacing: -.035em; margin: 56px 0 14px; }
.prose p, .prose li { color: var(--ink2); }
.prose li { margin: 8px 0; }
.prose code { background: var(--fill); padding: 2px 7px; border-radius: 6px; font-size: .85em; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 34px 0; }
.steps div { padding: 22px; border-radius: 18px; background: var(--bg2); font-size: 15px; line-height: 1.45; color: var(--muted); }
.steps b { display: block; color: var(--ink); font: 600 19px/1.2 var(--display); margin-bottom: 6px; }
.steps i { font-style: normal; color: var(--blue); font-weight: 600; font-size: 13px; display: block; margin-bottom: 10px; }

.skeleton { background: linear-gradient(90deg, var(--fill), var(--fill2), var(--fill)); background-size: 200% 100%; animation: sk 1.3s infinite; border-radius: 8px; height: 16px; margin: 14px 0; }
@keyframes sk { to { background-position: -200% 0; } }

/* ── footer ── */
footer.foot { background: var(--bg2); border-top: 1px solid var(--hair); padding: 28px 0 32px; font-size: 13px; color: var(--muted); line-height: 1.6; margin-top: 56px; }
.foot-in { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot a { color: var(--ink2); }


/* ── advanced search ── */
.advform { padding-bottom: 90px; }
.advrow { display: grid; grid-template-columns: 92px 150px 190px 1fr 36px; gap: 8px; align-items: center; margin-bottom: 10px; }
.sel, .advrow .txt, .group.form input, .group.form select { border: 1px solid var(--line); background: var(--card); border-radius: var(--r); height: 40px; padding: 0 12px; font-size: 15px; color: var(--ink); min-width: 0; }
.sel.ghost { background: none; display: flex; align-items: center; color: var(--muted); font-weight: 600; padding-left: 4px; }
.advrow .txt { outline: none; } .advrow .txt:focus, .sel:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 30%, transparent); }
.tlink.plain { border: 0; background: none; cursor: pointer; padding: 6px 0; font-size: 15px; }
.tlink.plain::after { content: none; }
.group.form > div { align-items: center; }
.group.form label { color: var(--muted); flex-shrink: 0; }
.group.form select, .group.form input { height: 34px; max-width: 360px; background: var(--card); }
.group.form input[type=number] { width: 100px; }
.group.form .checks { display: flex; gap: 18px; flex-wrap: wrap; }
.group.form .checks label { color: var(--ink); display: flex; gap: 6px; align-items: center; }
.advbtns { display: flex; gap: 10px; margin-top: 30px; }
.advhelp { margin-top: 44px; font-size: 15px; color: var(--muted); }
.advhelp ul { margin: 0; padding-left: 18px; } .advhelp li { margin: 6px 0; }
.advsum { background: var(--bg2); border-radius: 16px; padding: 18px 20px; font-size: 16px; line-height: 1.6; }
.advsum .label { margin-bottom: 6px; }
.advsum .op { font-size: 12px; font-weight: 700; color: var(--blue); letter-spacing: .04em; }
.advsum .tlink { margin-top: 8px; font-size: 14px; }
.hbadge { display: inline-block; vertical-align: middle; margin-left: 10px; font: 600 13px/1 var(--sans); letter-spacing: 0; color: var(--blue); background: var(--tint); padding: 5px 9px; border-radius: 6px; cursor: help; }
.hsup { font-size: 10px; font-weight: 600; color: var(--blue); margin-left: 2px; vertical-align: super; }
.ahits { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.ahits a { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 14px; background: var(--bg2); color: var(--ink); }
.ahits a:hover { text-decoration: none; box-shadow: var(--shadow); }
.ahits b { font-weight: 600; } .ahits small { color: var(--muted); font-size: 13px; } .ahits span { font-size: 13px; color: var(--blue); margin-top: 4px; }

/* ── rankings ── */
details.method { margin-top: 18px; font-size: 15px; color: var(--muted); max-width: 900px; }
details.method summary { cursor: pointer; color: var(--link); list-style: none; }
details.method summary::-webkit-details-marker { display: none; }
details.method summary::after { content: ' ›'; }
details.method[open] summary::after { content: ' ⌄'; }
details.method p { margin: 10px 0 0; line-height: 1.55; }
/* the points: label column + text on wide screens, stacked on narrow ones */
dl.mth { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 0 24px; margin: 14px 0 0; font-size: 14.5px; line-height: 1.55; border-top: 1px solid var(--hair); }
dl.mth dt, dl.mth dd { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--hair); }
dl.mth dt { font-weight: 600; color: var(--ink); }
dl.mth dd { color: var(--ink2); }
@media (max-width: 640px) { dl.mth { grid-template-columns: 1fr; } dl.mth dt { padding-bottom: 2px; border-bottom: 0; } dl.mth dd { padding-top: 0; } }
table.rank { width: 100%; border-collapse: collapse; font-size: 15px; }
table.rank th { text-align: left; font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--bg2); }
table.rank td { padding: 13px 12px; border-bottom: 1px solid var(--hair); vertical-align: top; }
table.rank td.hide-s { white-space: nowrap; }
table.rank td a { color: var(--ink); } table.rank td a:hover { color: var(--blue); text-decoration: none; }
table.rank td:first-child { width: 44px; font-variant-numeric: tabular-nums; }
table.rank .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.rank td.num b { font-weight: 600; font-size: 15px; color: var(--ink); }
table.rank .orc { width: 14px; height: 14px; vertical-align: -2px; }
table.rank tbody tr:hover { background: var(--bg2); }

/* ── profiles ── */
.prof { padding-top: 60px; padding-bottom: 90px; max-width: 980px; }
.prof .eyebrow { font-size: 15px; font-weight: 600; color: var(--muted); }
.prof h1 { font: 600 clamp(30px, 3.6vw, 42px)/1.15 var(--serif); letter-spacing: -.012em; margin: 8px 0 8px; }
.prof .alt { font-size: 17px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.prof .aka { font-size: 14px; color: var(--muted); margin: 10px 0 0; }
.prof .alt .orc { width: 16px; height: 16px; vertical-align: -3px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 34px 0 0; }
.kpis > div { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; }
.kpis b { display: block; font: 600 30px/1.1 var(--serif); letter-spacing: -.01em; font-variant-numeric: tabular-nums lining-nums; }
.kpis span { font-size: 13px; color: var(--muted); }
.kpis sup { font-size: 10px; color: var(--faint); }
.kpis .hero { background: var(--blue); border-color: var(--blue); color: #fff; }
.kpis .hero span, .kpis .hero sup { color: rgba(255, 255, 255, .8); }
.kpis .hero b { font-size: 46px; }
.kpis:has(.hero2) { grid-template-columns: repeat(5, 1fr); }
.kpis .hero2 { background: var(--tint); border-color: color-mix(in srgb, var(--blue) 25%, var(--line)); color: var(--blue); }
.kpis .hero2 b { font-size: 46px; }
/* outside publications */
.xhead { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.xhead .label { margin: 0; }
.seg.sm { height: 34px; } .seg.sm button { font-size: 13px; padding: 0 11px; } .seg.sm span { color: var(--faint); font-weight: 500; }
.res.xw h3 { font-size: 17px; }
/* search: the switch for Scopus/RSCI articles of authors from Central Asia (assets/js/app.js extIndex) */
.extsw { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0 0 14px; font-size: 14px; }
.extsw label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--ink); }
.extsw input { width: 16px; height: 16px; accent-color: var(--blue); margin: 0; }
.extsw small { flex-basis: 100%; line-height: 1.5; }
.res .meta .scb { margin-left: 8px; font-size: 11px; font-weight: 600; letter-spacing: .02em; color: var(--blue); background: var(--tint); border-radius: 4px; padding: 1px 6px; }
.res .xab { grid-column: 1; margin-top: 6px; }
.res .xab .lnk { border: 0; background: none; padding: 0; font: 500 14px var(--sans); color: var(--blue); cursor: pointer; }
.res .xab .lnk:hover { text-decoration: underline; } .res .xab .lnk:disabled { color: var(--muted); cursor: default; text-decoration: none; }
.res .xab .abs { font-size: 15px; line-height: 1.55; color: var(--ink2); margin: 4px 0 4px; }
table.rank th a.sorth { color: inherit; } table.rank th a.sorth.on { color: var(--blue); } table.rank th a.sorth:hover { text-decoration: none; color: var(--blue); }
.hsent { font-size: 17px; color: var(--ink2); margin: 0 0 14px; max-width: 680px; }
.hchart { margin: 0; }
.hchart svg { width: 100%; height: 220px; display: block; background: var(--bg2); border-radius: 16px; overflow: hidden; }
.hchart rect { fill: var(--fill2); }
.hchart rect.in { fill: var(--blue); }
.hchart rect.hsq { fill: color-mix(in srgb, var(--blue) 10%, transparent); stroke: var(--blue); stroke-width: 1.5; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
.hchart line.diag { stroke: #ff9f0a; stroke-width: 2; vector-effect: non-scaling-stroke; }
.hchart figcaption { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13px; color: var(--ink2); margin-top: 10px; }
.hchart .sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 6px; }
.hchart .sw.in { background: var(--blue); } .hchart .sw.diag { background: #ff9f0a; height: 3px; vertical-align: 3px; }
.pills.wrapp { flex-wrap: wrap; overflow: visible; }
.bars { display: flex; flex-direction: column; gap: 4px; }
.bars a { display: grid; grid-template-columns: minmax(0, 1fr) 140px 52px; gap: 12px; align-items: center; padding: 6px 0; color: var(--ink); font-size: 15px; }
.bars a:hover { text-decoration: none; color: var(--blue); }
.bars span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bars i { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--blue) var(--w), var(--fill) var(--w)); }
.bars em { font-style: normal; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.small { font-size: 13px; margin-top: 40px; }
@media (max-width: 760px) {
  .advrow { grid-template-columns: 1fr 1fr; padding: 12px; background: var(--bg2); border-radius: 14px; }
  .advrow .sel, .advrow .txt { background: var(--card); }
  .advrow .txt { grid-column: 1 / -1; }
  .advrow .rm { grid-column: 2; justify-self: end; grid-row: 1; }
  .advrow .sel.op { grid-column: 1; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpis b { font-size: 26px; } .kpis .hero b { font-size: 36px; }
  .cols2 { grid-template-columns: 1fr; gap: 0; }
  .bars a { grid-template-columns: minmax(0, 1fr) 70px 44px; }
  table.rank .hide-s { display: none; }
  table.rank td, table.rank th { padding: 11px 6px; }
}

/* ── responsive ── */
@media (max-width: 900px) {
  .topsearch { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 26px 0; }
  .steps { grid-template-columns: 1fr 1fr; }
}
/* medium screens: the menu keeps one line; the search box gives way first */
@media (max-width: 1500px) and (min-width: 761px) {
  .topbar-in { gap: 20px; }
  .nav a { padding: 0 9px; } .nav a.on::after { left: 9px; right: 9px; }
  .topsearch { width: 190px; } .topsearch:focus-within { width: 240px; }
}
/* narrower still: the search box becomes its magnifier icon; tapping it opens the box, and the menu steps aside while typing */
@media (max-width: 1400px) and (min-width: 761px) {
  .topbar-in { gap: 14px; }
  .nav a { padding: 0 7px; } .nav a.on::after { left: 7px; right: 7px; }
  .topsearch { position: relative; width: 36px; min-width: 36px; padding: 0; justify-content: center; cursor: pointer; }
  .topsearch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
  .topsearch:focus-within { width: 260px; padding: 0 12px; justify-content: flex-start; }
  .topsearch:focus-within input { position: static; opacity: 1; cursor: text; }
  .topbar-in:has(.topsearch:focus-within) .nav { display: none; }
}
/* Kyrgyz, Tajik and Uzbek menu labels are the longest: the compact header at every desktop width (content is at most 1120px wide) */
@media (min-width: 761px) {
  html:is([lang=ky], [lang=tg], [lang=uz]) .topbar-in { gap: 14px; }
  html:is([lang=ky], [lang=tg], [lang=uz]) .nav a { padding: 0 7px; } html:is([lang=ky], [lang=tg], [lang=uz]) .nav a.on::after { left: 7px; right: 7px; }
  html:is([lang=ky], [lang=tg], [lang=uz]) .topsearch { position: relative; width: 36px; min-width: 36px; padding: 0; justify-content: center; cursor: pointer; }
  html:is([lang=ky], [lang=tg], [lang=uz]) .topsearch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
  html:is([lang=ky], [lang=tg], [lang=uz]) .topsearch:focus-within { width: 260px; padding: 0 12px; justify-content: flex-start; }
  html:is([lang=ky], [lang=tg], [lang=uz]) .topsearch:focus-within input { position: static; opacity: 1; cursor: text; }
  html:is([lang=ky], [lang=tg], [lang=uz]) .topbar-in:has(.topsearch:focus-within) .nav { display: none; }
}
/* if the labels still do not fit (longer languages), the menu scrolls rather than the page */
@media (max-width: 1100px) and (min-width: 761px) { .brand-name { display: none; } }   /* the logo alone */
@media (min-width: 761px) { .nav { flex: 0 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; } .nav::-webkit-scrollbar { display: none; } .nav a.on::after { bottom: 0; } }
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap, .narrow { padding: 0 16px; }
  .topbar-in { gap: 14px; height: 48px; }
  .nav { gap: 16px; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a[href="#/about"] { display: none; }
  .navright { flex: none; }
  .langsel { max-width: 92px; }
  .hero { padding: 64px 0 40px; }
  .spot input { height: 54px; font-size: 17px; border-radius: 14px; }
  .section { padding-top: 60px; } .band .section, .section.pb { padding-bottom: 60px; }
  .head-row { display: block; } .head-row .tlink { margin: -24px 0 24px; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile { min-height: 120px; padding: 18px; border-radius: 18px; } .tile b { font-size: 17px; margin-top: 18px; }
  .shelf { grid-auto-columns: 82%; padding: 4px 16px 24px; margin: 0 -16px; }
  .covers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .layout { grid-template-columns: 1fr; gap: 0; padding-top: 16px; }
  .facets { position: fixed; inset: auto 0 0 0; top: auto; z-index: 50; max-height: 78vh; overflow-y: auto; background: var(--card); border-radius: 22px 22px 0 0; padding: 22px 20px 40px; box-shadow: var(--shadow-lg); transform: translateY(105%); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
  .facets.open { transform: none; }
  .facets .close { display: flex; }
  .filter-toggle { display: inline-flex; }
  .res { grid-template-columns: 1fr; }
  .res .side { grid-column: 1; grid-row: auto; flex-direction: row; align-items: center; padding-top: 10px; gap: 16px; }
  .res h3 { font-size: 18px; }
  .abstract { font-size: 18px; }
  .jhero { grid-template-columns: 110px 1fr; gap: 20px; padding-top: 36px; align-items: start; }
  .jhero .cover { width: 110px; padding: 10px; } .jhero .cover .ct { font-size: 11px; }
  .jstats { gap: 22px; } .jstats b { font-size: 22px; }
  .group > div { flex-direction: column; gap: 2px; } .group dd { text-align: left; }
  .prose { font-size: 17px; }
  .steps { grid-template-columns: 1fr; }
  .field, .field.lg { min-width: 0; flex: 1 1 100%; }
  .sbar { flex-wrap: wrap; } .sbar .spot { flex: 1 1 100%; }
  .advbtn { height: 44px; font-size: 15px; }
  .ctrysel { flex: 1 1 100%; }
}
/* author page: export the list of publications */
.prof .phtop { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.prof .phtop .btn { flex: none; margin-top: 12px; }
.xchk { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 15px; cursor: pointer; }
.xchk input { width: 16px; height: 16px; accent-color: var(--blue); }
.xgo { display: flex; gap: 12px; align-items: center; margin-top: 18px; }
.sheet .seg { height: auto; min-height: var(--ctl); }
.sheet .seg a, .sheet .seg button { height: 32px; }

/* ── author profile: compact header, stats strip, publications first, sidebar ── */
.ap { padding-top: 40px; padding-bottom: 90px; }
.aphead { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.aphead .eyebrow { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.aphead h1 { font: 600 clamp(26px, 3vw, 34px)/1.15 var(--serif); letter-spacing: -.012em; margin: 4px 0 6px; }
.aphead .alt { font-size: 15px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; }
.aphead .alt .orc { width: 15px; height: 15px; vertical-align: -3px; }
.aphead .aka { font-size: 13px; color: var(--faint); margin: 6px 0 0; }
.aphead .btn { flex-shrink: 0; }
.lnk { border: 0; background: none; padding: 0; font: 500 13px var(--sans); color: var(--blue); cursor: pointer; }
.lnk:hover { text-decoration: underline; }
.apstats { display: flex; flex-wrap: wrap; margin: 22px 0 0; border: 1px solid var(--line); border-radius: 10px; background: var(--card); overflow: hidden; }
.apstats > div { flex: 1 1 0; min-width: 110px; padding: 12px 16px; border-left: 1px solid var(--hair); }
.apstats > div:first-child { border-left: 0; }
.apstats b { display: block; font: 600 22px/1.15 var(--serif); font-variant-numeric: tabular-nums lining-nums; color: var(--ink); }
.apstats span { display: block; font-size: 12px; line-height: 1.3; color: var(--muted); margin-top: 2px; }
.apstats .k b { color: var(--blue); }
.apstats [title] { cursor: help; }
.apstats > .apcitk { flex: 1 1 0; min-width: 110px; padding: 12px 16px; border: 0; border-left: 1px solid var(--hair); background: none; font: inherit; text-align: left; cursor: pointer; color: inherit; transition: background .15s; }
.apstats > .apcitk:hover { background: var(--tint); }
.apstats > .apcitk:hover b, .apstats > .apcitk span { color: var(--blue); }
.apgrid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; margin-top: 28px; align-items: start; }
.aptools { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.aptabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.aptabs::-webkit-scrollbar { display: none; }
.aptabs button { border: 0; background: none; padding: 10px 12px; margin-bottom: -1px; border-bottom: 2px solid transparent; font: 500 14px var(--sans); color: var(--muted); cursor: pointer; white-space: nowrap; display: inline-flex; gap: 7px; align-items: center; }
.aptabs button span { font-size: 12px; font-weight: 600; color: var(--faint); background: var(--bg2); border-radius: 999px; padding: 1px 7px; font-variant-numeric: tabular-nums; }
.aptabs button:hover { color: var(--ink); }
.aptabs button.on { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600; }
.aptabs button.on span { color: var(--blue); background: var(--tint); }
.apsort { appearance: none; -webkit-appearance: none; border: 1px solid var(--line); background: var(--card); color: var(--ink2); font: 500 13px var(--sans); height: 32px; border-radius: 6px; padding: 0 28px 0 10px; margin-bottom: 6px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b929d' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; background-size: 14px; }
.apnote { margin: 10px 0 0; }
.apl .res { padding: 14px 0; }
.apl .res .meta { font-size: 12.5px; margin-bottom: 3px; }
.apl .res h3, .apl .res.xw h3 { font-size: 16px; line-height: 1.35; }
.apl .res .au { font-size: 13.5px; margin-top: 3px; }
.apl .res .snip { display: none; }
.apl .res .side { padding-top: 14px; gap: 6px; }
.apl .res .side a { font-size: 13px; }
.apl .res .xab { margin-top: 3px; } .apl .res .xab .lnk { font-size: 13px; }
.apl .res .xab .abs { font-size: 14px; }
.apl .skeleton { margin-top: 18px; }
.apmore { text-align: center; margin-top: 18px; }
.apmain, .apside { min-width: 0; }
.apside { display: flex; flex-direction: column; gap: 14px; }
.apcard { border: 1px solid var(--line); border-radius: 10px; background: var(--card); padding: 14px 16px; }
.apcard h2 { font: 600 13px var(--sans); color: var(--ink2); margin: 0 0 10px; display: flex; justify-content: space-between; }
.apcard h2 span { color: var(--faint); font-weight: 500; }
.apcard .hsent { font-size: 13px; color: var(--muted); margin: -4px 0 10px; line-height: 1.45; }
.apcard .hchart svg { height: 96px; border-radius: 6px; }
.apcard .hchart figcaption { font-size: 11.5px; gap: 4px 12px; margin-top: 6px; }
.apcard .hchart figcaption .muted { display: none; }
.apcard .notice { margin: 0; font-size: 13px; padding: 10px 12px; border-radius: 8px; }
.aplst { list-style: none; margin: 0; padding: 0; }
.aplst li { position: relative; display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 13.5px; border-top: 1px solid var(--hair); }
.aplst li:first-child { border-top: 0; }
.aplst li[style]::after { content: ''; position: absolute; left: 0; bottom: -1px; height: 2px; width: var(--w); background: color-mix(in srgb, var(--blue) 35%, transparent); border-radius: 2px; }
.aplst a { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.aplst a:hover { color: var(--blue); text-decoration: none; }
.aplst em { font-style: normal; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.apcard > div > .lnk { margin-top: 8px; }
@media (max-width: 900px) {
  .apgrid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .apside { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (max-width: 640px) {
  .ap { padding-top: 24px; }
  .aphead { flex-direction: column; gap: 12px; }
  .apstats > *, .apstats > .apcitk { min-width: 33.33%; flex-basis: 33.33%; padding: 10px 12px; border-top: 1px solid var(--hair); margin-top: -1px; }
  .apstats > :nth-child(3n+1) { border-left: 0; }
  .apstats b { font-size: 19px; }
  .apl .res { grid-template-columns: minmax(0, 1fr); }
  .apstats span { white-space: normal; }
  .aptools { border-bottom: 0; }
  .aptabs { flex-wrap: wrap; gap: 6px; }
  .aptabs button { padding: 6px 10px; margin: 0; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; }
  .aptabs button.on { background: var(--tint); border-color: color-mix(in srgb, var(--blue) 45%, transparent); }
  .apsort { margin: 4px 0 0; }
  .apl .res .side { grid-column: 1; grid-row: auto; flex-direction: row; align-items: center; padding-top: 6px; }
}

/* ── community: claim line, report form, user menu, moderation ── */
.apclaim { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13.5px; margin-top: 8px; min-height: 0; }
.apclaim:empty { display: none; }
.apclaim .sep { color: var(--faint); }
.apclaim .lnk, .repline .lnk { font-size: 13.5px; display: inline-flex; align-items: center; gap: 5px; }
.apclaim .lnk .ico, .repline .lnk .ico { width: 14px; height: 14px; }
.vbadge { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: #1a7f37; background: color-mix(in srgb, #1a7f37 10%, transparent); border-radius: 999px; padding: 2px 9px 2px 6px; }
.vbadge .ico { width: 13px; height: 13px; stroke-width: 2.4; }
.repline { margin: 28px 0 0; }
.sheet-in.cm p { line-height: 1.5; }
.rep-target { font: 600 15px/1.35 var(--serif); color: var(--ink2); margin: -8px 0 16px; }
.rep-types { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.rep-types label { display: flex; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 8px; cursor: pointer; font-size: 14.5px; }
.rep-types label:hover { background: var(--bg2); }
.rep-types label:has(input:checked) { background: var(--tint); color: var(--blue); }
.rep-f { display: block; margin-top: 14px; }
.rep-f > span { display: block; font-size: 13px; font-weight: 600; color: var(--ink2); margin-bottom: 6px; }
.rep-f input, .rep-f textarea, .admitem textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); font: 14px/1.4 var(--sans); padding: 9px 11px; }
.rep-f textarea, .admitem textarea { resize: vertical; }
.rep-f input:focus, .rep-f textarea:focus, .admitem textarea:focus { outline: 2px solid color-mix(in srgb, var(--blue) 40%, transparent); border-color: var(--blue); }
.rep-list { max-height: 230px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; margin-top: 6px; }
.rep-list label { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-top: 1px solid var(--hair); font-size: 13.5px; cursor: pointer; }
.rep-list label:first-child { border-top: 0; }
.rep-list label[hidden] { display: none; }
.rep-list input { margin-top: 3px; }
.rep-list i { display: block; font-style: normal; color: var(--muted); font-size: 12px; margin-top: 2px; }
.rep-pick { display: flex; flex-direction: column; margin-top: 4px; }
.rep-pick button { text-align: left; border: 0; background: none; padding: 7px 10px; border-radius: 6px; cursor: pointer; color: var(--ink); font: 14px var(--sans); }
.rep-pick button:hover { background: var(--bg2); }
.rep-pick small { display: block; color: var(--muted); font-size: 12px; }
.rep-pick .chosen { color: #1a7f37; display: flex; align-items: center; gap: 5px; margin: 4px 0 0; }
.rep-pick .chosen .ico { width: 14px; height: 14px; }
#tsBox { margin-top: 12px; }
#userSlot { display: contents; }
.umenu { position: relative; }
.umenu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--ink2); background: var(--card); }
.umenu summary::-webkit-details-marker { display: none; }
.umenu summary .orc { width: 16px; height: 16px; }
.umenu-in { position: absolute; right: 0; top: 42px; z-index: 50; min-width: 220px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.umenu-in p { margin: 0 0 4px; }
.umenu-in .lnk { text-align: left; font-size: 14px; }
.adm { padding-bottom: 90px; }
.admlist { display: flex; flex-direction: column; gap: 12px; max-width: 820px; }
.admitem { border: 1px solid var(--line); border-radius: 10px; background: var(--card); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.admitem.done { opacity: .55; }
.admtop { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.admtop > * { white-space: nowrap; }
.admtype { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--blue); }
.admtgt { font: 600 16px/1.35 var(--serif); }
.admwhat { font-size: 14px; } .admwhat ul { margin: 0; padding-left: 18px; }
.admitem blockquote { margin: 2px 0; padding: 6px 12px; border-left: 3px solid var(--line2); color: var(--ink2); font-size: 14px; white-space: pre-wrap; }
.admitem textarea { font-size: 13px; padding: 6px 9px; }
.admact { display: flex; gap: 8px; }
@media (max-width: 640px) { .umenu summary span { display: none; } }

/* ── cross-language search line, article translation ── */
.xl { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-size: 13.5px; }
.xl > .ico { flex-shrink: 0; width: 17px; height: 17px; margin-top: 3px; color: var(--blue); }
.xl > div { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.xlt { display: inline-flex; gap: 5px; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; color: var(--ink); background: var(--bg2); }
.xlt b { font-weight: 600; color: var(--muted); font-size: 12px; }
.xlt .x { color: var(--faint); font-size: 11px; }
.xlt:hover { border-color: var(--line2); text-decoration: none; } .xlt:hover .x { color: var(--ink); }
.xlt.off { background: none; color: var(--faint); } .xlt.off s { text-decoration: line-through; }
.xlonly { font-size: 13px; }
.xl small { flex-basis: 100%; font-size: 12px; }
.xl.off { align-items: center; padding: 8px 14px; }
.trline { margin: 0 0 12px; }
.trline .lnk { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; }
.trline .lnk .ico { width: 16px; height: 16px; }
.trbox { border: 1px solid color-mix(in srgb, var(--blue) 25%, var(--line)); background: var(--tint); border-radius: 12px; padding: 14px 18px; margin: 0 0 18px; }
.trbox .label { margin-bottom: 8px; }
.trbox h2 { font: 600 19px/1.35 var(--serif); margin: 0 0 10px; }
.trbox p:not(.label) { font-size: 15.5px; line-height: 1.6; color: var(--ink2); margin: 0; }

/* ── who cites the author (citedby.js, author page tab) ── */
.aptools { scroll-margin-top: 76px; }
.cbbar { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; padding: 16px 0 6px; }
.cbsum { margin: 0; font-size: 15px; }
.cbsum b { font-weight: 600; }
.cbctl { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; }
.cbsel { max-width: 340px; }
.cbself { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--ink2); cursor: pointer; white-space: nowrap; }
.cbself input { accent-color: var(--blue); margin: 0; }
.res .au b { font-weight: 600; color: var(--ink); }
.cbcites { grid-column: 1; margin: 8px 0 0; font-size: 14px; color: var(--ink2); line-height: 1.45; padding-left: 10px; border-left: 2px solid var(--line2); }
.cbcites span { color: var(--muted); }
.cbcites em { font-style: normal; color: var(--faint); white-space: nowrap; }
.res .meta .cbselfb { margin-left: 8px; font-size: 11px; font-weight: 600; color: #9a5b00; background: rgba(214, 140, 0, .12); border-radius: 4px; padding: 1px 6px; }
.cbload, .cbmsg { margin: 18px 0 4px; font-size: 14px; }
.cbnote { margin: 18px 0 0; }
@media (max-width: 640px) { .cbctl { flex: 1 1 100%; min-width: 0; } .cbsel { max-width: none; width: 100%; min-width: 0; flex: 1 1 100%; } }

/* ── report forms (#/report/<author>) ── */
.aphbtns { display: flex; gap: 10px; flex-wrap: wrap; flex-shrink: 0; }
.rp { padding-top: 36px; padding-bottom: 90px; }
.rphead { max-width: 760px; margin-bottom: 30px; }
.rphead .rpback { font-size: 14px; color: var(--muted); text-decoration: none; }
.rphead .eyebrow { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 14px; }
.rphead h1 { font: 600 clamp(26px, 3vw, 34px)/1.15 var(--serif); letter-spacing: -.012em; margin: 4px 0 8px; }
.rphead p { margin: 0; font-size: 15px; }
.rpsec { margin-top: 40px; }
.rpsec:first-of-type { margin-top: 0; }
.rpsh { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; margin-bottom: 14px; }
.rpsh h2 { font: 600 21px/1.25 var(--serif); margin: 0; }
.rpsh p { margin: 0; flex: 1 1 100%; }
.rpuni { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.rpuni .rpin { width: auto; max-width: 260px; padding: 5px 8px; font-size: 13px; }
/* the documents, in groups: the group's name on the left, its cards on the right */
.rpgrp { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px 28px; padding: 22px 0; border-top: 1px solid var(--hair); }
.rpgrp:first-of-type { border-top: 0; padding-top: 4px; }
.rpgh h3 { font: 600 17px/1.3 var(--serif); margin: 0 0 6px; }
.rpgh p { margin: 0; line-height: 1.45; }
.rpcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-content: start; }
.rpkick { font: 600 11.5px/1.2 var(--sans); letter-spacing: .03em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.rpctop h4 { font: 600 16px/1.3 var(--serif); margin: 0; }
.rpgo { align-self: flex-start; text-align: left; }
a.rpcard.rpcheck { color: inherit; text-decoration: none; border-style: dashed; background: transparent; }
a.rpcard.rpcheck:hover { border-color: var(--blue); }
.rpfmt.chk { background: var(--tint); color: var(--blue); padding: 4px; }
.rpfmt.chk .ico { width: 16px; height: 16px; display: block; }
.rpcard { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 18px; transition: border-color .15s, box-shadow .15s; }
.rpcard:hover { border-color: var(--line2); box-shadow: 0 2px 10px rgba(15, 23, 42, .05); }
.rpctop { display: flex; align-items: flex-start; gap: 12px; }
.rpctop h3 { font: 600 16px/1.3 var(--serif); margin: 0; }
.rpfmt { flex-shrink: 0; font: 700 10.5px/1 var(--sans); letter-spacing: .04em; padding: 6px 6px; border-radius: 6px; color: #fff; background: #2b579a; margin-top: 1px; }
.rpfmt.xlsx { background: #217346; }
.rpcard > p { margin: 0; flex: 1; line-height: 1.45; }
.rpcfoot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 12px; margin-top: 2px; border-top: 1px solid var(--hair); }
.rpn { font-size: 13px; font-weight: 600; color: var(--ink2); }
.rpcard > p.rpmiss { flex: 0; font-size: 12.5px; line-height: 1.45; color: #9a5b00; }
.rpmiss::before { content: '⚠ '; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rpmiss { color: #f0b860 !important; } }
:root[data-theme="dark"] .rpmiss { color: #f0b860 !important; }
.rphint { grid-column: 1 / -1; margin: 6px 0 0; }
.rpn.zero { color: var(--faint); font-weight: 500; }
.rperr { color: #c0392b; margin: 12px 0 0; }
.rpcav { margin: 14px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--tint); color: var(--ink2); line-height: 1.5; }
/* your details */
.rpset { padding: 18px; }
.rpfields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 16px; align-items: end; }
.rpfields.two { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 12px 0 8px; }
.rpfields .w2 { grid-column: span 2; }
.rpfields .w3 { grid-column: span 3; }
.rpfields .w4 { grid-column: 1 / -1; }
.rpedit label, .rpset label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.rpyr { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.rpvolf { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; }
.rpvolf legend { padding: 0; margin-bottom: 9px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.rpset label.rprad { flex-direction: row; align-items: center; gap: 8px; font-size: 14px; font-weight: 400; color: var(--ink); cursor: pointer; height: 34px; }
.rprad input { accent-color: var(--blue); }
.rpmore { display: flex; flex-direction: column; margin-top: 18px; border-top: 1px solid var(--hair); }
.rphd { border-bottom: 1px solid var(--hair); }
.rphd:last-child { border-bottom: 0; }
.rphd summary { cursor: pointer; font-size: 14px; font-weight: 500; color: var(--blue); padding: 12px 0 0; }
.rphd:last-child summary { padding-bottom: 0; }
.rphd[open] { padding-bottom: 8px; }
.rphd > p { margin: 0 0 6px; }
/* publications */
.rptools { position: sticky; top: 60px; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 0; background: var(--bg); border-bottom: 1px solid var(--line); }
.rptools b { font-size: 15px; font-weight: 600; }
.rpbtns { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; }
.rpbtns .lnk { height: 32px; margin: 0; display: inline-flex; align-items: center; }
.rpbtns .lnk + .btn { margin-left: 6px; }
.rpdoi[hidden] { display: none; }
.rpdoi { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.rpdoi .rpin { width: 280px; max-width: 100%; }
.rpin { font: inherit; font-size: 14px; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; width: 100%; box-sizing: border-box; }
textarea.rpin { resize: vertical; line-height: 1.4; }
.rpin:focus { outline: 2px solid var(--blue); outline-offset: -1px; border-color: transparent; }
.rpin:disabled { color: var(--ink2); opacity: 1; }
.rpcat { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 26px 0 4px; }
.rpcat span { font-weight: 500; color: var(--faint); margin-left: 4px; }
.rpit { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rpit.off .rpt, .rpit.off .rpm { opacity: .45; }
.rpchk { width: 17px; height: 17px; margin-top: 3px; flex-shrink: 0; accent-color: var(--blue); cursor: pointer; }
.rpbody { flex: 1; min-width: 0; max-width: 980px; }
.rpt { font: 600 16px/1.35 var(--serif); }
.rpm { font-size: 13.5px; color: var(--muted); margin-top: 4px; overflow-wrap: anywhere; }
.rprow { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.rpsel { font: inherit; font-size: 13px; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 7px; padding: 4px 8px; max-width: 100%; }
.rpsrc { font-size: 12.5px; color: var(--faint); }
.rpedit { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 12px; margin-top: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.rpedit label.w { grid-column: 1 / -1; }
.rpedbtns { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
.rpend { display: flex; justify-content: flex-end; padding-top: 18px; }
@media (max-width: 760px) { .rptools { top: 48px; } }
@media (max-width: 960px) {
  .rpgrp { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .rpcards { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .rpcard .rpuni { flex-wrap: wrap; }
  .rpcard .rpuni .rpin { max-width: 100%; min-width: 0; }
  .rpfields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rpfields .w3 { grid-column: 1 / -1; }
  .rpedit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .rpfields, .rpfields.two { grid-template-columns: 1fr; }
  .rpfields .w2 { grid-column: auto; }
  .rpuni { flex: 1 1 100%; }
  .rpuni .rpin { max-width: none; flex: 1; }
}
/* rankings: second row of filters (period, field, institution) */
.controls.rkmore { margin-top: 12px; }
.ctrysel.noico { padding-left: 14px; min-width: 170px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23888' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-position: right 13px center; background-size: 10px 7px; }
.rkmore .field { min-width: 280px; }
/* rankings: "Central Asian journals only" switch; * = CARI h without outside works */
.rktog { display: inline-flex; align-items: center; gap: 8px; height: var(--ctl); padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.rktog:has(input:checked) { border-color: var(--blue); color: var(--blue); background: var(--tint); }
.rktog input { accent-color: var(--blue); margin: 0; }
sup.rkj { color: var(--faint); font-weight: 400; margin-left: 1px; cursor: help; }
@media (max-width: 640px) { .rktog { flex: 1 1 100%; } }

/* ── accounts: country + consent sheet, "Your data", privacy notice ── */
.rep-f select { width: 100%; height: var(--ctl); border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); font: 14px var(--sans); padding: 0 10px; }
.ac-ok { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 4px; font-size: 14px; line-height: 1.45; cursor: pointer; }
.ac-ok input { margin-top: 3px; flex-shrink: 0; }
.kvl { list-style: none; padding: 0; margin: 6px 0 14px; }
.kvl li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--hair); font-size: 14px; }
.kvl li span { color: var(--muted); }
.xgo { flex-wrap: wrap; }
.btn.danger { color: #c62828; }
.btn.danger:hover { border-color: #c62828; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.danger { color: #ff8a80; } }
:root[data-theme="dark"] .btn.danger { color: #ff8a80; }
.privacy { padding-top: 40px; padding-bottom: 80px; }
/* About (#/about, text in assets/js/about.js) */
.about { padding-top: 44px; padding-bottom: 90px; }
.abhead { padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.abkick { margin: 0 0 12px; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.abhead h1 { font-family: var(--serif); font-size: clamp(30px, 4.4vw, 44px); line-height: 1.12; letter-spacing: -.01em; margin: 0 0 18px; }
.ablede { font-size: 19px; line-height: 1.6; color: var(--ink); margin: 0; }
.about h2 { font-family: var(--serif); font-size: 26px; letter-spacing: -.01em; margin: 46px 0 14px; }
.about p { line-height: 1.7; }
.abaims { counter-reset: aim; list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.abaims li { counter-increment: aim; position: relative; padding-left: 52px; line-height: 1.65; }
.abaims li::before { content: counter(aim, decimal-leading-zero); position: absolute; left: 0; top: 1px; font: 600 15px/1.6 var(--sans); color: var(--blue); }
.abaims b, .abprin b { color: var(--ink); }
.abfor { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.abfor section { padding: 20px 22px; border-radius: 16px; background: var(--bg2); }
.abfor h3 { font-size: 16.5px; margin: 0 0 8px; }
.abfor p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.abprin { padding-left: 20px; display: grid; gap: 10px; }
.abprin li { line-height: 1.65; }
@media (max-width: 640px) { .abfor { grid-template-columns: minmax(0, 1fr); } .ablede { font-size: 17px; } .abaims li { padding-left: 40px; } }
.privacy h1 { font-family: var(--serif); font-size: 34px; margin-bottom: 4px; }
.privacy h2 { font-size: 18px; margin-top: 30px; }
.usignin { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink2); font-size: 13.5px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.usignin:hover { border-color: var(--line2); background: var(--bg2); }
.usignin .orc, .usignin svg { width: 16px; height: 16px; }
@media (max-width: 560px) { .usignin span { display: none; } .usignin { padding: 0 9px; } }
.umprof { display: flex; flex-direction: column; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--hair); }
.umcard { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg2); color: var(--ink); min-width: 240px; }
.umcard:hover { border-color: var(--blue); text-decoration: none; }
.umcard b { font-size: 15px; }
.umcard span { font-size: 13px; color: var(--ink2); }
.umcard small { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }

/* #/following — new articles from followed authors, journals and institutions */
.fwsec { border-top: 1px solid var(--line); padding: 26px 0 8px; }
.fwsec:first-of-type { border-top: 0; }
.fwhead { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.fwhead > div { flex: 1 1 260px; min-width: 0; }
.fwhead h2 { margin: 4px 0 0; font-size: 22px; }
.fwhead h2 a { color: inherit; }
.fwn { font-size: 13px; font-weight: 600; color: var(--blue); white-space: nowrap; }

/* defence readiness (defence.js) */
.dfverd { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); margin-bottom: 14px; }
.dfverd b { font: 600 18px/1.3 var(--serif); }
.dfverd span { color: var(--ink2); font-size: 14px; }
.dfverd.met { border-color: #2e8b57; background: color-mix(in srgb, #2e8b57 9%, var(--card)); }
.dfverd.met b { color: #1f6f43; }
.dfverd.no b { color: #9a5b00; }
.dfopts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.dfopt { border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 14px 16px; }
.dfopt.best:not(.met) { border-color: var(--blue); }
.dfopt.met { border-color: #2e8b57; }
.dfopt.info { background: var(--bg2); }
.dfopt h3 { font: 600 15px/1.3 var(--serif); margin: 0 0 8px; }
.dfopt ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dfopt li { display: grid; grid-template-columns: 18px 1fr auto; gap: 8px; align-items: start; font-size: 13.5px; line-height: 1.4; color: var(--ink2); }
.dfopt li.ok .dfmk { color: #2e8b57; font-weight: 700; }
.dfopt li.no .dfmk { color: var(--faint); }
.dfopt .dfn { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }
.dfopt li.no .dfn { color: #9a5b00; }
.dfopt p { margin: 10px 0 0; color: var(--ink2); }
.dfk { font-size: 12.5px; color: var(--muted); }
.dfc { font-size: 12px; line-height: 1; padding: 4px 7px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink2); background: var(--bg2); white-space: nowrap; }
.dfc.l { border-color: color-mix(in srgb, var(--blue) 45%, var(--line)); color: var(--blue); }
.dfc.s { border-color: color-mix(in srgb, #e9711c 45%, var(--line)); }
.dfc.w { border-color: color-mix(in srgb, #5e35b1 40%, var(--line)); }
.dfc.x { border-color: color-mix(in srgb, #c0392b 40%, var(--line)); color: #b03a2e; white-space: normal; }
.dfsl { margin: 0 0 10px; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; }
.df .rpset label.rprad { height: auto; align-items: flex-start; font-size: 13.5px; color: var(--ink2); }
.df .rprad input { margin-top: 3px; }
@media (max-width: 760px) { .dfopts { grid-template-columns: 1fr; } }

/* requirements check: defence / academic title tabs */
.dftabs { display: inline-flex; gap: 4px; margin-top: 16px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); flex-wrap: wrap; }
.dftab { font: 500 14px/1 var(--sans); color: var(--ink2); background: transparent; border: 0; border-radius: 7px; padding: 9px 14px; cursor: pointer; }
.dftab:hover { background: var(--tint); }
.dftab.on { background: var(--blue); color: #fff; }
.rpit.pre { opacity: .55; }
.dfhint { font-weight: 500; font-size: 12.5px; color: var(--faint); }
.dffill { font-weight: 500; font-size: 12.5px; color: var(--blue); margin-left: 4px; }
.dfverd .dffill { margin-left: auto; font-size: 13.5px; }
.dfmein { display: flex; align-items: center; gap: 8px; }
.dfmein .rpin { flex: 1; min-width: 0; }
.dfyrs { font-size: 12.5px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dfsrc { display: inline-block; font-size: 11px; font-weight: 500; color: #3d7a1d; background: color-mix(in srgb, #a6ce39 22%, var(--card)); border-radius: 999px; padding: 0 7px; margin-left: 2px; }
.dforc .rpin { border-color: color-mix(in srgb, #a6ce39 70%, var(--line)); }
.dforcn, .dfmenote { margin: 0; }
.dfsep { border: 0; border-top: 1px solid var(--hair); margin: 4px 0; }
.dfflash .rpin { outline: 2px solid var(--blue); outline-offset: 1px; transition: outline-color .3s; }
.dffound { margin: 2px 0 0; }
.rpgl { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--blue); text-decoration: none; font-weight: 500; }
.rpgl:hover { text-decoration: underline; }
.rpgl .ico { width: 14px; height: 14px; }
/* list of works: the document heading, confirmed in the card */
.rphb { border: 1px solid #e8c77a; background: #fffaf0; border-radius: 10px; }
.rphb.ok { border-color: var(--line); background: var(--bg); }
.rphb > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 7px; padding: 9px 12px; font-size: 13px; line-height: 1.35; color: var(--ink2); }
.rphb > summary::-webkit-details-marker { display: none; }
.rphb > summary::after { content: '▾'; margin-left: auto; color: var(--faint); padding-left: 8px; }
.rphb[open] > summary::after { content: '▴'; }
.rphb > summary span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.rphb > summary .ico { width: 15px; height: 15px; color: #1f8a4c; flex-shrink: 0; }
.rphbw { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: #d08a00; color: #fff; font: 700 11px/1 var(--sans); flex-shrink: 0; }
.rphbf { display: grid; gap: 10px; padding: 2px 12px 12px; }
.rphbf p { margin: 0; }
.rphbf label { display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); }
.rphbf .rpin { padding: 6px 8px; font-size: 13.5px; }
.rphbb { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 4px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rphb:not(.ok) { background: rgba(208, 138, 0, .08); border-color: rgba(208, 138, 0, .45); } }
:root[data-theme="dark"] .rphb:not(.ok) { background: rgba(208, 138, 0, .08); border-color: rgba(208, 138, 0, .45); }
.rpcard:has(.rphb[open]) { grid-column: 1 / -1; }
.rphb[open] .rphbf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.rphbf > p, .rphbb, .rphbf > label.rphbsh { grid-column: 1 / -1; }
.rphbf > label.rphbsh { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; }
.rphbsh input { margin: 2px 0 0; flex-shrink: 0; }
@media (max-width: 560px) { .rphb[open] .rphbf { grid-template-columns: minmax(0, 1fr); } }
.rphb > summary b { white-space: nowrap; }
.rphbf > p.rphbkk { grid-column: 1 / -1; padding-top: 6px; border-top: 1px dashed var(--line); }
.apfail { margin: 14px 0; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 8px; }
/* requirements check: which publication counts for which line */
.dfno { display: inline-block; min-width: 18px; height: 18px; padding: 0 4px; box-sizing: border-box; margin-right: 6px; border-radius: 9px; background: var(--tint); color: var(--blue); font: 600 11px/18px var(--sans, inherit); font-style: normal; text-align: center; vertical-align: 1px; }
.dfwhich { margin-top: 2px; }
.dfopt li.sub { margin-left: 26px; padding-left: 10px; border-left: 2px solid var(--line); }
.dfopt li.sub2 { margin-left: 52px; }
.dfwhich summary { cursor: pointer; font-size: 12.5px; color: var(--blue); list-style: none; }
.dfwhich summary::-webkit-details-marker { display: none; }
.dfwhich summary::before { content: '▸ '; }
.dfwhich[open] summary::before { content: '▾ '; }
.dfwhich ol { margin: 4px 0 2px; padding-left: 18px; font-size: 12.5px; color: var(--ink2); }
.dfwhich ol li { display: list-item; margin: 2px 0; }
.dfusenote { margin: 10px 0 0; }
.dfgrp { font: 600 15px/1.3 var(--serif); margin: 18px 0 6px; padding-bottom: 6px; border-bottom: 1px solid var(--hair); }
.dfgrp span { color: var(--muted); font: 500 13px var(--sans, inherit); margin-left: 4px; }
.dfuse { font-size: 12.5px; margin-top: 4px; }
.dfuse.on { color: #1f6f43; }
.dfuse.on::before { content: '✓ '; }
.dfuse.off { color: var(--muted); }
.rpit.dfnot .rpt { color: var(--ink2); }
.dfopts > .dfopt:only-child { grid-column: 1 / -1; max-width: 760px; }
/* documents page: the country filter hides cards, groups and settings of other countries */
.rpforms [hidden], .rpmore [hidden] { display: none !important; }
.rpsh .rpcc { margin-top: 10px; flex: 1 1 100%; width: fit-content; max-width: 100%; }
