/* Sayhun ilmiy axborotnomasi — ommaviy sayt */
:root {
  --brand: #5b21b6;
  --brand-2: #7c3aed;
  --brand-ink: #3b0f7a;
  --brand-tint: #f3eefe;
  --ink: #1d1a2b;
  --ink-2: #4a4660;
  --muted: #706b84;
  --line: #e6e1ef;
  --paper: #fbfaf8;
  --card: #ffffff;
  --gold: #b7791f;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r: 10px;
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-ink); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.25; color: var(--ink); }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* Sarlavha */
.topbar { background: var(--brand-ink); color: #ddd2f7; font-size: .8125rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar-contact { display: flex; gap: 16px; }
.site-head { background: #fff; border-bottom: 1px solid var(--line); }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand img { width: 64px; height: 64px; flex: none; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; line-height: 1.15; color: var(--brand-ink); }
.brand-sub { font-size: .875rem; color: var(--muted); }
.search { display: flex; flex: 0 1 380px; }
.search input { flex: 1; min-width: 0; font: inherit; padding: 9px 12px; border: 1px solid var(--line); border-right: 0; border-radius: var(--r) 0 0 var(--r); background: var(--paper); }
.search input:focus { outline: none; border-color: var(--brand-2); background: #fff; }
.search button { font: inherit; font-weight: 600; padding: 9px 16px; border: 0; border-radius: 0 var(--r) var(--r) 0; background: var(--brand); color: #fff; cursor: pointer; }
.search button:hover { background: var(--brand-ink); }
.mainnav { border-top: 1px solid var(--line); }
.mainnav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.mainnav .wrap::-webkit-scrollbar { display: none; }
.mainnav a { padding: 12px 14px; white-space: nowrap; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .9375rem; border-bottom: 3px solid transparent; }
.mainnav a:hover { color: var(--brand); }
.mainnav a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); }

/* Tugmalar */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; text-decoration: none; font-size: .9375rem; }
.btn:hover { border-color: var(--brand-2); color: var(--brand); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; }
.btn-block { display: flex; width: 100%; margin-bottom: 8px; }

/* Bosh sahifa */
.hero { background: linear-gradient(135deg, #f6f1ff 0%, #fbfaf8 60%); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; padding-top: 48px; padding-bottom: 48px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; font-weight: 700; color: var(--brand-2); margin: 0 0 8px; }
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 16px; color: var(--brand-ink); }
.lead { font-size: 1.0625rem; color: var(--ink-2); max-width: 62ch; margin: 0 0 20px; }
.badges { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.badges li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: .8125rem; color: var(--ink-2); }
.badges b { color: var(--brand-ink); }
.cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-issue { display: flex; flex-direction: column; align-items: center; gap: 12px; text-decoration: none; color: var(--ink-2); text-align: center; }
.hero-issue:hover .cover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(59, 15, 122, .25); }
.hero-issue-label b { color: var(--ink); font-family: var(--serif); font-size: 1.125rem; }

.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; padding-top: 36px; padding-bottom: 56px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin-bottom: 4px; }
.sec-head h2 { margin: 0; font-size: 1.5rem; }
.sec-title { font-size: 1.5rem; border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin: 36px 0 4px; }

/* Muqova */
.cover { display: block; width: 150px; aspect-ratio: 210 / 297; object-fit: contain; object-position: top; border-radius: 4px; box-shadow: 0 8px 24px rgba(29, 26, 43, .16); background: #fff; transition: transform .2s, box-shadow .2s; }
.cover-lg { width: 200px; }
.cover-gen { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 14px; text-align: center; color: #fff;
  background: radial-gradient(circle at 30% 20%, #8b5cf6 0, transparent 55%), linear-gradient(160deg, #6d28d9, #3b0f7a); }
.cover-gen img { width: 34%; height: auto; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); margin-bottom: 6px; }
.cg-name { font-family: var(--serif); font-weight: 700; letter-spacing: .14em; font-size: .95rem; }
.cg-sub { font-size: .6875rem; opacity: .85; }
.cg-num { white-space: nowrap; margin-top: 10px; font-family: var(--serif); font-size: 1.05rem; border-top: 1px solid rgba(255, 255, 255, .4); padding-top: 6px; }
.cover-lg .cg-name { font-size: 1.2rem; }
.cover-lg .cg-num { font-size: 1.35rem; }

/* Maqolalar ro'yxati */
.art-list { list-style: none; padding: 0; margin: 0; counter-reset: art; }
.art { padding: 18px 0 18px 44px; border-bottom: 1px solid var(--line); position: relative; counter-increment: art; }
.art::before { content: counter(art); position: absolute; left: 0; top: 19px; width: 30px; text-align: right; font-family: var(--serif); color: var(--muted); font-size: .9375rem; }
.art-title { font-family: var(--serif); font-size: 1.125rem; font-weight: 700; color: var(--ink); text-decoration: none; line-height: 1.35; }
.art-title:hover { color: var(--brand); text-decoration: underline; }
.art-authors { color: var(--ink-2); margin-top: 4px; font-size: .9375rem; }
.art-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 6px; font-size: .8125rem; color: var(--muted); }
.dir-h { list-style: none; font-family: var(--sans); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .75rem; color: var(--brand); padding: 22px 0 6px; border-bottom: 1px solid var(--line); }
.tag { display: inline-block; background: var(--brand-tint); color: var(--brand-ink); border-radius: 4px; padding: 1px 8px; font-size: .75rem; font-weight: 600; }
.pdf-link { font-weight: 700; text-decoration: none; border: 1px solid currentColor; border-radius: 4px; padding: 0 6px; font-size: .75rem; }

/* Kartochkalar */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; margin-bottom: 20px; }
.card h3 { margin: 0 0 12px; font-size: 1.125rem; }
.card.accent { border-color: #d9c9fb; background: var(--brand-tint); }
.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .9rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; color: var(--ink); }
.facts.inline { margin: 12px 0 18px; }
.dirs { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.dirs li { padding: 5px 0; border-bottom: 1px dashed var(--line); }
.dirs li:last-child { border: 0; }
.code { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .8125rem; margin-right: 4px; }
.news-mini, .news-list { list-style: none; padding: 0; margin: 0; }
.news-mini li, .news-list li { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.news-mini time, .news-list time { font-size: .75rem; color: var(--muted); }
.news-mini a, .news-list a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9375rem; }
.news-mini a:hover, .news-list a:hover { color: var(--brand); }
.news-list a { font-family: var(--serif); font-size: 1.125rem; }
.more { display: inline-block; margin-top: 10px; font-size: .875rem; font-weight: 600; }
.empty { background: #fff; border: 1px dashed var(--line); border-radius: var(--r); padding: 36px; text-align: center; color: var(--ink-2); }
.empty h2 { margin-top: 0; }

/* Ichki sahifalar */
.narrow-top { padding-top: 24px; padding-bottom: 64px; }
.crumbs { font-size: .8125rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.crumbs .sep { opacity: .5; }
.page-h { font-size: clamp(1.75rem, 3vw, 2.25rem); margin: 0 0 18px; color: var(--brand-ink); }
.year h2 { font-size: 1.5rem; border-bottom: 2px solid var(--ink); padding-bottom: 6px; margin: 32px 0 20px; }
.issue-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 28px 24px; }
.issue-card { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); }
.issue-card .cover { width: 100%; margin-bottom: 8px; }
.issue-card:hover .cover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(59, 15, 122, .22); }
.ic-label { font-family: var(--serif); font-weight: 700; font-size: 1.0625rem; }
.ic-meta { font-size: .8125rem; color: var(--muted); }
.issue-head { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }

/* Maqola sahifasi */
.article { margin-top: 4px; }
.art-head { border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 24px; }
.art-head h1 { font-size: clamp(1.5rem, 3vw, 2.125rem); margin: 10px 0 8px; color: var(--ink); }
.title-en { font-family: var(--serif); font-style: italic; color: var(--ink-2); font-size: 1.125rem; margin: 0 0 14px; }
.authors { list-style: none; padding: 0; margin: 12px 0 6px; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.au-name { font-weight: 700; }
.authors sup { color: var(--brand); font-weight: 700; margin-left: 1px; }
.orcid { font-size: .6875rem; font-weight: 700; color: #4d7c0f; text-decoration: none; border: 1px solid #a3c96b; border-radius: 3px; padding: 0 4px; }
.orgs { margin: 0; padding-left: 20px; color: var(--muted); font-size: .875rem; }
.orgs.single { list-style: none; padding-left: 0; }
.art-body { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 40px; }
.art-main section { margin-bottom: 28px; }
.art-main h2 { font-size: 1.125rem; font-family: var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--brand-ink); margin: 0 0 10px; }
.prose { max-width: 72ch; }
.prose p { margin: 0 0 12px; }
.prose h2 { font-size: 1.375rem; margin: 28px 0 10px; }
.prose ul { padding-left: 22px; margin: 0 0 12px; }
.art-main .prose { text-align: justify; hyphens: auto; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li, .chips a { font-size: .8125rem; }
.chips li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.chips a { text-decoration: none; color: var(--ink-2); }
.chips a:hover { color: var(--brand); }
.refs { padding-left: 22px; font-size: .9rem; color: var(--ink-2); }
.refs li { margin-bottom: 6px; }
.cite { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px 12px 70px; margin-bottom: 10px; }
.cite-k { position: absolute; left: 14px; top: 13px; font-size: .6875rem; font-weight: 800; letter-spacing: .06em; color: var(--brand); }
.cite p { margin: 0 0 6px; font-size: .875rem; word-break: break-word; }
.copy { font: inherit; font-size: .75rem; font-weight: 600; border: 1px solid var(--line); background: var(--paper); border-radius: 6px; padding: 3px 10px; cursor: pointer; color: var(--ink-2); }
.copy:hover { border-color: var(--brand-2); color: var(--brand); }
.art-side { align-self: start; position: sticky; top: 16px; }
.art-side .facts { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin: 12px 0 16px; }
.prevnext { display: flex; flex-direction: column; gap: 10px; }
.prevnext a { display: block; font-size: .875rem; color: var(--ink); text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; line-height: 1.35; }
.prevnext a:hover { border-color: var(--brand-2); }
.prevnext span { display: block; font-size: .75rem; color: var(--brand); font-weight: 700; margin-bottom: 2px; }

/* Tahririyat */
.editors { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-bottom: 8px; }
.editor { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 2px; }
.editor .role { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); font-weight: 700; }
.editor .nm { font-family: var(--serif); font-size: 1.125rem; font-weight: 700; }
.editor .dg { font-size: .875rem; color: var(--muted); }
.board-group h3 { font-size: 1rem; font-family: var(--sans); color: var(--brand-ink); margin: 26px 0 8px; }
.board-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 0 28px; }
.board-list li { padding: 9px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.board-list .nm { font-weight: 600; }
.board-list .dg { font-size: .8125rem; color: var(--muted); }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; }
.doc { margin: 0 0 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 10px; }
.doc img { display: block; border-radius: 4px; }
.doc figcaption { font-size: .8125rem; color: var(--muted); text-align: center; margin-top: 6px; }
.search-big { max-width: 640px; margin-bottom: 18px; }
.news-item time { color: var(--muted); font-size: .875rem; }

/* Pastki qism */
.site-foot { background: #1d1530; color: #c9c1dc; font-size: .875rem; }
.site-foot a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-top: 36px; padding-bottom: 24px; }
.foot-name { font-family: var(--serif); font-size: 1.25rem; color: #fff; margin-top: 0; }
.foot-h { color: #fff; font-weight: 700; margin-top: 0; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 14px; padding-bottom: 18px; font-size: .8125rem; color: #9d94b5; }

/* Moslashuvchan */
@media (max-width: 960px) {
  .page-grid, .art-body, .two-col { grid-template-columns: 1fr; }
  .art-side { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .masthead { flex-direction: column; align-items: stretch; gap: 14px; }
  .search { flex-basis: auto; }
  .brand img { width: 52px; height: 52px; }
  .brand-name { font-size: 1.3rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; padding-bottom: 32px; }
  .hero-issue { flex-direction: row; text-align: left; }
  .hero-issue .cover-lg { width: 110px; }
  .issue-head { grid-template-columns: 1fr; padding: 18px; }
  .issue-head .cover-lg { width: 140px; }
  .issue-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 16px; }
  .art { padding-left: 34px; }
  .art::before { width: 24px; }
  .topbar-contact a:first-child { display: none; }
  .board-list { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media print {
  .site-head, .site-foot, .art-side, .copy { display: none; }
  body { background: #fff; }
}

/* Qaytarib olingan maqola (retraction) */
.tag-retracted { background: #fdecea; color: #a4231b; border: 1px solid #f3b8b2; }
.retraction { border: 1px solid #f3b8b2; border-left: 5px solid #b42318; background: #fef3f2; border-radius: var(--r); padding: 14px 18px; margin: 0 0 22px; color: #5c1410; }
.retraction p { margin: 0 0 6px; }
.retraction .rt-h { font-weight: 700; font-size: 1.0625rem; color: #a4231b; }
.retraction a { color: #a4231b; }
.retraction .rt-small { font-size: .8125rem; color: #7a2a24; margin: 4px 0 0; }
