:root {
  --ink: #102e36;
  --ink-2: #31535b;
  --muted: #698087;
  --teal: #0f5360;
  --teal-2: #0a7280;
  --teal-soft: #e5f2f3;
  --yellow: #f4c400;
  --yellow-soft: #fff8cf;
  --bg: #f3f8f9;
  --paper: #fff;
  --line: #d9e7e9;
  --line-dark: #bfd3d6;
  --danger: #a7463b;
  --shadow: 0 18px 50px rgba(15, 64, 73, .09);
  --radius: 22px;
  --shell: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Vazirmatn, IRANSans, Tahoma, Arial, sans-serif; font-size: 16px; line-height: 1.85; }
img { max-width: 100%; }
a { color: var(--teal-2); text-decoration: none; }
a:hover { color: var(--ink); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.45; letter-spacing: -.025em; }
h1 { font-size: clamp(2rem, 5vw, 4.25rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2.3rem); }
h3 { font-size: 1.05rem; }
mark { color: var(--teal); background: linear-gradient(transparent 66%, rgba(244,196,0,.55) 0); }

.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.narrow { max-width: 920px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; z-index: 1000; top: -80px; right: 20px; padding: 10px 18px; background: var(--yellow); color: var(--ink); border-radius: 0 0 10px 10px; }
.skip-link:focus { top: 0; }
:focus-visible { outline: 3px solid rgba(10,114,128,.4); outline-offset: 3px; }

.site-header { position: sticky; top: 0; z-index: 100; padding: 13px 0; background: rgba(243,248,249,.9); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(191,211,214,.65); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img { display: block; width: 137px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a { color: var(--ink-2); font-size: .91rem; font-weight: 700; padding: 9px 10px; border-radius: 10px; white-space: nowrap; }
.main-nav a:hover, .main-nav a.active { background: var(--teal-soft); color: var(--teal); }
.header-search { position: relative; display: flex; margin-right: auto; width: min(300px, 25vw); background: var(--paper); border: 1px solid var(--line-dark); border-radius: 13px; }
.header-search input { width: 100%; min-width: 0; height: 45px; padding: 0 14px; background: none; border: 0; outline: 0; color: var(--ink); }
.header-search button { width: 45px; border: 0; background: transparent; color: var(--teal); font-size: 1.5rem; }
.nav-toggle { display: none; margin-right: auto; border: 1px solid var(--line); background: var(--paper); border-radius: 10px; padding: 7px 11px; }
.account-nav { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.account-nav a { padding: 8px 11px; color: var(--teal); border: 1px solid var(--line-dark); border-radius: 10px; font-size: .76rem; font-weight: 900; white-space: nowrap; }
.account-nav a.active, .account-nav a:hover { background: var(--teal-soft); }
.account-nav .account-register { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.flash-stack { position: relative; z-index: 20; display: grid; gap: 8px; padding-top: 14px; }
.flash { padding: 12px 16px; background: #e8f7ef; color: #17643f; border: 1px solid #b8e4cc; border-radius: 12px; font-size: .86rem; font-weight: 700; }
.flash-warning { background: var(--yellow-soft); color: #665b0a; border-color: #ecdc7d; }

.suggestions { position: absolute; z-index: 120; top: calc(100% + 8px); right: 0; left: 0; padding: 7px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); text-align: right; }
.suggestions a { display: grid; grid-template-columns: 64px 1fr; gap: 8px; padding: 10px; color: var(--ink); border-radius: 10px; line-height: 1.5; }
.suggestions a:hover, .suggestions a.active { background: var(--teal-soft); }
.suggestions a small { color: var(--teal-2); font-size: .72rem; font-weight: 800; }
.suggestions a span { font-size: .83rem; }
.suggestions .suggestion-empty { padding: 12px; color: var(--muted); font-size: .85rem; }

.hero { position: relative; overflow: hidden; padding: 90px 0 80px; background: radial-gradient(circle at 16% 4%, rgba(244,196,0,.18), transparent 28%), radial-gradient(circle at 84% 20%, rgba(13,117,130,.15), transparent 26%), var(--bg); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .22; background-image: linear-gradient(rgba(15,83,96,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(15,83,96,.08) 1px, transparent 1px); background-size: 36px 36px; mask-image: linear-gradient(to bottom, #000, transparent); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(360px, .65fr); align-items: center; gap: 70px; }
.eyebrow { display: inline-block; margin-bottom: 12px; color: var(--teal-2); font-size: .78rem; font-weight: 900; letter-spacing: .02em; }
.hero h1 { max-width: 740px; margin-bottom: 22px; font-weight: 950; }
.hero-copy > p { max-width: 700px; color: var(--ink-2); font-size: 1.12rem; }
.hero-search { position: relative; margin-top: 30px; }
.hero-search > label { display: block; margin-bottom: 9px; color: var(--ink-2); font-size: .84rem; font-weight: 700; }
.search-box { display: flex; padding: 7px; background: var(--paper); border: 1px solid var(--line-dark); border-radius: 17px; box-shadow: var(--shadow); }
.search-box input { flex: 1; min-width: 0; height: 56px; padding: 0 17px; border: 0; outline: 0; background: none; color: var(--ink); font-size: 1rem; }
.search-box button, .filter-search button { border: 0; border-radius: 12px; padding: 0 23px; background: var(--yellow); color: #172d31; font-weight: 900; }
.hero-suggestions { top: calc(100% + 8px); }
.quick-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; color: var(--muted); font-size: .78rem; }
.quick-links a { padding: 2px 8px; color: var(--teal); background: rgba(255,255,255,.8); border-radius: 8px; }
.hero-panel { position: relative; padding: 26px; background: linear-gradient(150deg, #103c47, #0b5965); color: #fff; border: 1px solid rgba(255,255,255,.12); border-radius: 30px; box-shadow: 0 30px 80px rgba(7,54,64,.24); transform: rotate(-1deg); }
.hero-panel::after { content: ""; position: absolute; width: 70px; height: 70px; top: -15px; left: -15px; background: var(--yellow); border-radius: 22px; z-index: -1; }
.signal { display: flex; align-items: center; gap: 9px; margin-bottom: 22px; color: #d5eff2; font-size: .8rem; }
.signal span { width: 8px; height: 8px; background: #5bea9d; border-radius: 50%; box-shadow: 0 0 0 5px rgba(91,234,157,.12); }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.stat-grid div { padding: 18px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); border-radius: 17px; }
.stat-grid strong { display: block; font-size: 1.55rem; font-weight: 950; }
.stat-grid span { color: #c5e2e6; font-size: .78rem; }
.hero-panel > p { margin: 20px 0 0; color: #b9d6da; font-size: .74rem; }

.section { padding-block: 78px; }
.section-tint { background: #e7f1f2; border-block: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-head h2 { margin-bottom: 0; }
.section-head.small { align-items: center; margin-bottom: 22px; }
.section-head.small h2 { font-size: 1.4rem; }
.text-link { font-weight: 900; font-size: .88rem; white-space: nowrap; }

.article-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.conference-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.conference-grid.wide { grid-template-columns: repeat(4, minmax(0,1fr)); }
.authors-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.card:hover { transform: translateY(-4px); border-color: var(--line-dark); box-shadow: var(--shadow); }
.card-link { position: absolute; z-index: 2; inset: 0; border-radius: inherit; }
.card-body { padding: 20px; }
.card h3 { margin-bottom: 10px; color: var(--ink); font-weight: 900; }
.card p { margin-bottom: 0; color: var(--muted); font-size: .83rem; }
.card-icon { display: grid; place-items: center; width: 44px; height: 44px; margin: 20px 20px 0; background: var(--yellow-soft); color: #695900; border-radius: 13px; font-weight: 950; }
.article-card { min-height: 285px; overflow: hidden; }
.article-card::before { content: ""; position: absolute; top: 0; right: 0; width: 5px; height: 100%; background: var(--yellow); opacity: 0; transition: opacity .2s; }
.article-card:hover::before { opacity: 1; }
.article-card.compact { min-height: 0; display: grid; grid-template-columns: 58px 1fr; align-items: start; }
.article-card.compact .card-icon { margin: 17px 15px 0 0; }
.article-card.compact .card-body { padding: 16px; }
.article-card.compact .card-body > p:not(.byline), .article-card.compact .tag-row { display: none; }
.meta-row { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 11px; color: var(--teal-2); font-size: .7rem; font-weight: 800; }
.meta-row span + span::before, .meta-row a + span::before { content: "•"; margin-left: 10px; color: var(--line-dark); }
.meta-row.light, .meta-row.light a { color: #c9e6e9; }
.byline { color: var(--ink-2) !important; font-weight: 700; }
.tag-row { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 15px; }
.tag-row span { padding: 2px 8px; background: var(--bg); color: var(--muted); border-radius: 8px; font-size: .66rem; }
.poster-wrap { position: relative; height: 205px; overflow: hidden; background: var(--teal-soft); border-radius: var(--radius) var(--radius) 0 0; }
.poster-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.conference-card:hover .poster-wrap img { transform: scale(1.035); }
.status-badge { position: absolute; z-index: 1; right: 13px; bottom: 12px; padding: 4px 10px; background: rgba(14,56,66,.9); color: #fff; border-radius: 8px; font-size: .68rem; font-weight: 800; }
.date-line { padding-top: 10px; border-top: 1px solid var(--line); }
.author-card { display: grid; grid-template-columns: 74px 1fr; align-items: center; gap: 15px; min-height: 128px; padding: 18px; }
.author-card img { width: 74px; height: 74px; object-fit: cover; background: var(--teal-soft); border-radius: 20px; }
.author-card h3 { margin-bottom: 2px; }
.author-card p { direction: ltr; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.count-pill { display: inline-block; margin-top: 7px; padding: 2px 8px; background: var(--yellow-soft); color: #5d5108; border-radius: 8px; font-size: .68rem; font-weight: 900; }

.taxonomy-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.taxonomy-panel { padding: 27px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.taxonomy-panel h3 { margin-bottom: 18px; }
.cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.cloud a, .cloud span { position: relative; z-index: 3; padding: 7px 12px; color: var(--ink-2); background: var(--bg); border: 1px solid var(--line); border-radius: 11px; font-size: .8rem; }
.cloud a:hover { background: var(--teal-soft); border-color: var(--line-dark); }
.cloud small { margin-right: 7px; color: var(--teal-2); font-weight: 900; }

.discovery { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 70px; }
.discovery p { max-width: 610px; color: var(--ink-2); }
.primary-button, .source-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 8px 18px; border-radius: 12px; font-weight: 900; }
.primary-button { background: var(--yellow); color: var(--ink); }
.primary-button:hover { background: #e6b900; color: var(--ink); }
.primary-button.full { display: flex; margin-top: 18px; }
.source-button { display: flex; margin-top: 10px; background: var(--teal-soft); color: var(--teal); }
.network-visual { position: relative; min-height: 340px; border-radius: 30px; background: radial-gradient(circle, rgba(15,83,96,.08) 1px, transparent 1px), var(--paper); background-size: 17px 17px; border: 1px solid var(--line); }
.network-visual::before, .network-visual::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 60%; height: 1px; background: var(--line-dark); transform: translate(-50%,-50%) rotate(27deg); }
.network-visual::after { transform: translate(-50%,-50%) rotate(-32deg); }
.node { position: absolute; z-index: 2; display: grid; place-items: center; min-width: 88px; min-height: 44px; padding: 8px 12px; background: var(--paper); border: 1px solid var(--line-dark); border-radius: 14px; box-shadow: 0 9px 25px #1742; font-size: .76rem; font-weight: 900; }
.main-node { top: 42%; right: 39%; min-width: 100px; min-height: 100px; background: var(--teal); color: #fff; border-radius: 50%; }
.node-a { top: 15%; right: 12%; }.node-b { bottom: 13%; left: 13%; }.node-c { top: 12%; left: 13%; }.node-d { bottom: 10%; right: 9%; }
.ranked-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; }
.ranked-list article { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.ranked-list article > span { display: grid; place-items: center; width: 40px; height: 40px; background: var(--yellow-soft); border-radius: 12px; font-weight: 950; }
.ranked-list h3, .ranked-list p { margin: 0; }
.ranked-list h3 a { color: var(--ink); }
.ranked-list p { color: var(--muted); font-size: .76rem; }
.logo-strip { padding: 28px 0; overflow: hidden; background: var(--paper); border-block: 1px solid var(--line); }
.logo-track { display: flex; align-items: center; gap: 36px; overflow: hidden; filter: grayscale(1); opacity: .6; }
.logo-track img { flex: 0 0 auto; width: 65px; height: 65px; object-fit: contain; }

.page-hero { padding: 66px 0; background: linear-gradient(145deg,#0d3b46,#0c5965); color: #fff; }
.compact-hero { background: radial-gradient(circle at 15% 10%, rgba(244,196,0,.14), transparent 27%), linear-gradient(145deg,#113f49,#0b5b67); }
.compact-hero h1 { margin-bottom: 12px; font-size: clamp(2rem,4vw,3.4rem); }
.compact-hero p { max-width: 770px; color: #cbe1e4; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; color: #b7d3d7; font-size: .75rem; }
.breadcrumbs a { color: #d8ecee; }
.entity-hero h1 { max-width: 980px; margin-bottom: 18px; font-size: clamp(1.8rem,4vw,3.25rem); }
.english-title { color: #bdd8dc; font-size: .95rem; text-align: right; }
.hero-authors { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-authors a { padding: 5px 11px; background: rgba(255,255,255,.09); color: #fff; border: 1px solid rgba(255,255,255,.13); border-radius: 10px; font-size: .79rem; }
.filter-search { display: flex; width: min(700px,100%); margin-top: 24px; padding: 6px; background: var(--paper); border-radius: 14px; }
.filter-search.large { width: min(850px,100%); }
.filter-search input { flex: 1; min-width: 0; height: 50px; padding: 0 14px; border: 0; outline: 0; background: none; }
.filter-search button { min-width: 95px; }
.listing-summary { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 24px; color: var(--muted); }
.listing-summary strong { color: var(--ink); font-size: 1.15rem; }
.listing-summary a { font-weight: 800; }
.listing-section { min-height: 420px; }
.pagination { margin-top: 38px; }
.pagination ul { display: flex; justify-content: center; gap: 6px; padding: 0; list-style: none; }
.pagination a { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 11px; background: var(--paper); border: 1px solid var(--line); border-radius: 11px; color: var(--ink-2); font-weight: 800; }
.pagination a.active { background: var(--teal); color: #fff; border-color: var(--teal); }
.empty-state { max-width: 680px; margin: 40px auto; padding: 55px 30px; text-align: center; background: var(--paper); border: 1px dashed var(--line-dark); border-radius: 26px; }
.empty-state > div { color: var(--teal); font-size: 2rem; font-weight: 950; }
.empty-state p { color: var(--muted); }
.error-state > div { font-size: 4.5rem; }

.content-layout { display: grid; grid-template-columns: minmax(0,1fr) 330px; align-items: start; gap: 24px; }
.content-card, .side-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.content-card { padding: clamp(24px,4vw,44px); }
.article-content > section + section { margin-top: 42px; padding-top: 38px; border-top: 1px solid var(--line); }
.article-content h2, .side-card h2 { font-size: 1.3rem; }
.long-text, .lead-text { color: var(--ink-2); line-height: 2.15; }
.lead-text { font-size: 1.05rem; }
.data-note { padding: 16px 18px; background: var(--yellow-soft); color: #5f560c; border: 1px solid #efe094; border-radius: 13px; font-size: .86rem; }
.sidebar { display: grid; gap: 18px; }
.side-card { padding: 23px; }
.sticky-card { position: sticky; top: 106px; }
.detail-list { margin: 0; }
.detail-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.detail-list dt { color: var(--muted); font-size: .78rem; }
.detail-list dd { margin: 0; text-align: left; font-size: .79rem; font-weight: 900; }
.source-note { margin: 14px 0 0; color: var(--muted); font-size: .7rem; line-height: 1.8; }
.section-inline { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.copy-button { padding: 6px 11px; color: var(--teal); background: var(--teal-soft); border: 0; border-radius: 9px; font-size: .72rem; font-weight: 900; }
.citation { margin: 0; padding: 20px; background: var(--bg); border-right: 4px solid var(--yellow); border-radius: 12px; color: var(--ink-2); font-size: .86rem; }
.author-detail-list { display: grid; gap: 10px; }
.author-detail-list article { display: grid; grid-template-columns: 60px 1fr; align-items: center; gap: 14px; padding: 13px; background: var(--bg); border-radius: 14px; }
.author-detail-list img { width: 60px; height: 60px; object-fit: cover; border-radius: 15px; }
.author-detail-list h3, .author-detail-list p { margin: 0; }
.author-detail-list p { color: var(--muted); font-size: .74rem; }
.event-callout { position: relative; z-index: 3; display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 16px; padding: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; }
.event-callout img { width: 110px; height: 82px; object-fit: cover; border-radius: 11px; }
.event-callout strong, .event-callout small { display: block; color: var(--ink); }
.event-callout small { margin-top: 6px; color: var(--muted); }
.article-list { display: grid; gap: 11px; }

.profile-head { display: flex; align-items: center; gap: 24px; }
.profile-head img { width: 132px; height: 132px; object-fit: cover; background: var(--teal-soft); border: 4px solid rgba(255,255,255,.18); border-radius: 32px; }
.profile-head h1, .profile-head p { margin-bottom: 3px; }
.profile-stats { display: flex; gap: 10px; margin-top: 25px; }
.profile-stats div { min-width: 120px; padding: 10px 15px; background: rgba(255,255,255,.08); border-radius: 13px; }
.profile-stats strong, .profile-stats span { display: block; }
.profile-stats span { color: #c4e0e3; font-size: .72rem; }
.verified-badge { display: inline-flex; align-items: center; width: fit-content; padding: 3px 9px; background: #e3f7ec; color: #147245; border: 1px solid #b5e3cb; border-radius: 999px; font-size: .7rem; font-weight: 900; }
.verified-badge.light { margin-right: 8px; background: rgba(91,234,157,.12); color: #8ff2ba; border-color: rgba(143,242,186,.28); }
.profile-headline { color: #fff; font-weight: 800; }
.profile-location { color: #c4e0e3; font-size: .78rem; }
.researcher-bio { margin-bottom: 34px; }
.researcher-section { margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--line); }
.public-profile-items { display: grid; gap: 10px; }
.public-profile-items article { display: grid; grid-template-columns: 92px 1fr; gap: 16px; padding: 17px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; }
.public-profile-items h3, .public-profile-items p { margin-bottom: 3px; }
.public-profile-items p, .public-profile-items small { color: var(--muted); }
.profile-item-year { color: var(--teal); font-weight: 950; }
.profile-links { display: grid; gap: 7px; margin-top: 16px; }
.profile-links a { padding: 6px 9px; background: var(--bg); border-radius: 8px; font-size: .76rem; font-weight: 800; }
.claim-profile-card p { color: var(--muted); font-size: .8rem; }
.plain-list { padding: 0; list-style: none; }
.plain-list li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .82rem; }
.plain-list small { display: block; color: var(--muted); }
.organizer-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; padding: 0; list-style: none; }
.organizer-list li { padding: 11px 13px; background: var(--bg); border: 1px solid var(--line); border-radius: 11px; color: var(--ink-2); }
.compact-authors { grid-template-columns: repeat(3,minmax(0,1fr)); }

.conference-hero-grid { display: grid; grid-template-columns: 1fr 300px; align-items: center; gap: 50px; }
.hero-poster { width: 300px; height: 360px; object-fit: cover; background: var(--teal-soft); border: 5px solid rgba(255,255,255,.13); border-radius: 24px; box-shadow: 0 25px 60px #041f2877; }
.status-large { display: inline-block; margin-bottom: 14px; padding: 6px 12px; background: rgba(244,196,0,.14); color: #ffe66c; border: 1px solid rgba(244,196,0,.23); border-radius: 10px; font-size: .78rem; font-weight: 900; }
.event-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.event-facts > span { min-width: 155px; padding: 11px 14px; background: rgba(255,255,255,.08); border-radius: 13px; }
.event-facts small, .event-facts strong { display: block; }
.event-facts small { color: #b7d4d8; font-size: .68rem; }
.event-facts strong { font-size: .82rem; }
.timeline { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px,1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.timeline a { display: grid; gap: 6px; padding: 20px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; }
.timeline a.current { border: 2px solid var(--yellow); }
.timeline span { color: var(--teal); font-weight: 950; }
.timeline small { color: var(--muted); }
.timeline.vertical { grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; }
.timeline.vertical a { grid-template-columns: 85px 1fr; align-items: center; }
.timeline.vertical small { grid-column: 2; }
.series-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.series-card { display: grid; grid-template-columns: 60px 1fr; gap: 15px; padding: 22px; }
.series-number { display: grid; place-items: center; width: 56px; height: 56px; background: var(--yellow-soft); border-radius: 17px; color: #5a5007; font-weight: 950; }
.series-card h2 { margin-bottom: 7px; font-size: 1rem; }
.series-card p { margin: 0; color: var(--muted); font-size: .76rem; }

.search-results { display: grid; gap: 65px; }
.result-group + .result-group { padding-top: 55px; border-top: 1px solid var(--line); }
.prose { font-size: 1rem; }
.prose h2 { margin-top: 36px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); line-height: 2.1; }

.auth-shell { display: grid; place-items: center; }
.form-card, .dashboard-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.form-card { width: min(100%,620px); padding: clamp(24px,5vw,44px); }
.stack-form { display: grid; gap: 17px; }
.stack-form label, .form-grid label { display: grid; gap: 7px; color: var(--ink-2); font-size: .82rem; font-weight: 800; }
.stack-form input, .stack-form textarea, .stack-form select, .form-grid input, .form-grid textarea, .form-grid select, .profile-search-form input, .review-form textarea { width: 100%; padding: 11px 13px; color: var(--ink); background: #fbfdfd; border: 1px solid var(--line-dark); border-radius: 11px; outline: 0; }
.stack-form input:focus, .stack-form textarea:focus, .stack-form select:focus, .form-grid input:focus, .form-grid textarea:focus, .form-grid select:focus { border-color: var(--teal-2); box-shadow: 0 0 0 3px rgba(10,114,128,.1); }
.form-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .8rem; }
.form-errors { margin-bottom: 20px; padding: 15px 18px; background: #fff0ee; color: #89372f; border: 1px solid #efc2bc; border-radius: 13px; }
.form-errors ul { margin: 7px 0 0; }
.secondary-button, .approve-button, .reject-button { display: inline-flex; align-items: center; justify-content: center; min-height: 43px; padding: 8px 16px; border-radius: 11px; font-weight: 900; }
.secondary-button { color: var(--teal); background: var(--teal-soft); border: 1px solid var(--line-dark); }
.approve-button { color: #fff; background: #178153; border: 0; }
.reject-button { color: #8d342c; background: #fff0ee; border: 1px solid #edb9b3; }
.dashboard-grid { display: grid; grid-template-columns: 245px minmax(0,1fr); align-items: start; gap: 23px; }
.dashboard-nav { position: sticky; top: 106px; display: grid; gap: 5px; }
.dashboard-nav h2 { margin-bottom: 10px; }
.dashboard-nav a, .dashboard-nav .link-button { display: block; width: 100%; padding: 9px 11px; color: var(--ink-2); background: transparent; border: 0; border-radius: 9px; text-align: right; font-size: .82rem; font-weight: 800; }
.dashboard-nav a.active, .dashboard-nav a:hover { color: var(--teal); background: var(--teal-soft); }
.dashboard-nav .danger-link { margin-top: 9px; color: var(--danger); border-top: 1px solid var(--line); border-radius: 0; }
.dashboard-main { display: grid; gap: 20px; }
.dashboard-card { padding: clamp(22px,4vw,36px); box-shadow: none; }
.dashboard-card h2 { font-size: 1.45rem; }
.dashboard-card-head { display: flex; align-items: start; justify-content: space-between; gap: 25px; }
.warning-card { background: var(--yellow-soft); border-color: #eddf91; }
.score-ring { display: grid; place-items: center; flex: 0 0 100px; width: 100px; height: 100px; background: radial-gradient(circle at center,#fff 59%,transparent 60%), conic-gradient(var(--teal) calc(var(--score)*1%),var(--line) 0); border-radius: 50%; }
.score-ring strong, .score-ring span { grid-area: 1/1; }
.score-ring strong { transform: translateY(-8px); color: var(--teal); }
.score-ring span { transform: translateY(13px); color: var(--muted); font-size: .64rem; }
.claim-list { display: grid; gap: 10px; }
.claim-list article { display: grid; grid-template-columns: 58px 1fr; gap: 13px; padding: 13px; background: var(--bg); border-radius: 13px; }
.claim-list img { width: 58px; height: 58px; object-fit: cover; border-radius: 13px; }
.claim-list strong, .claim-list small { display: block; }
.claim-list small { color: var(--teal-2); }
.profile-search-form { display: flex; gap: 8px; padding: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 15px; }
.profile-search-form input { border: 0; }
.claim-candidates { display: grid; gap: 10px; margin-top: 22px; }
.claim-candidates article { display: grid; grid-template-columns: 76px 1fr auto; align-items: center; gap: 16px; padding: 17px; }
.claim-candidates img { width: 76px; height: 76px; object-fit: cover; border-radius: 17px; }
.claim-candidates h2, .claim-candidates p { margin-bottom: 2px; font-size: 1rem; }
.claim-proof-card { margin-top: 28px; }
.profile-editor h3 { margin: 30px 0 16px; padding-top: 25px; border-top: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.form-grid .full-field { grid-column: 1/-1; }
.form-grid label small { color: var(--muted); font-weight: 500; }
.check-label { display: flex !important; grid-template-columns: auto 1fr; align-items: center; justify-content: start; gap: 9px !important; }
.check-label input { width: 18px !important; height: 18px; }
.score-pill { padding: 6px 11px; background: var(--yellow-soft); color: #665a08; border-radius: 10px; font-size: .75rem; font-weight: 900; }
.managed-items { display: grid; gap: 9px; margin-bottom: 28px; }
.managed-items > article { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px; background: var(--bg); border: 1px solid var(--line); border-radius: 13px; }
.managed-items span { color: var(--teal-2); font-size: .67rem; font-weight: 900; }
.managed-items h3, .managed-items p { margin-bottom: 0; }
.managed-items p { color: var(--muted); font-size: .75rem; }
.item-actions { display: flex; gap: 7px; }
.item-actions a, .item-actions button { padding: 5px 9px; color: var(--teal); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; font-size: .7rem; }
.item-actions button { color: var(--danger); }
.item-form { padding-top: 26px; border-top: 1px solid var(--line); }
.status-tabs { display: flex; gap: 8px; margin-bottom: 24px; }
.status-tabs a { padding: 8px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; font-weight: 800; }
.status-tabs a.active { color: #fff; background: var(--teal); border-color: var(--teal); }
.admin-claims { display: grid; gap: 16px; }
.claim-admin-head { display: flex; justify-content: space-between; gap: 20px; }
.claim-admin-head h2, .claim-admin-head p { margin-bottom: 2px; }
.review-form { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; margin-top: 18px; }
.review-form textarea { grid-column: 1/-1; }

.site-footer { padding-top: 60px; background: #0d3540; color: #c4dadd; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 60px; padding-bottom: 42px; }
.footer-logo { width: 145px; height: auto; padding: 7px; background: #fff; border-radius: 10px; }
.footer-grid p { max-width: 450px; color: #a9c6ca; font-size: .82rem; }
.footer-grid h2 { color: #fff; font-size: .98rem; }
.footer-grid a { display: block; margin: 8px 0; color: #c4dadd; font-size: .8rem; }
.footer-grid a:hover { color: var(--yellow); }
.footer-bottom { display: flex; justify-content: space-between; gap: 25px; padding-block: 20px; border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom p { margin: 0; color: #8eafb4; font-size: .7rem; }

@media (max-width: 1100px) {
  .header-row { flex-wrap: wrap; }
  .nav-toggle { display: block; }
  .main-nav { display: none; order: 4; width: 100%; flex-direction: column; align-items: stretch; padding: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
  .main-nav.open { display: flex; }
  .header-search { margin-right: 0; width: min(350px,45vw); }
  .account-nav { margin-right: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { width: min(560px,100%); transform: none; }
  .article-grid, .conference-grid.wide { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .authors-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .content-layout { grid-template-columns: minmax(0,1fr) 290px; }
}

@media (max-width: 820px) {
  .section { padding-block: 58px; }
  .article-grid, .conference-grid, .conference-grid.wide, .authors-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .taxonomy-panels, .discovery, .ranked-list { grid-template-columns: 1fr; }
  .content-layout { grid-template-columns: 1fr; }
  .sticky-card { position: static; }
  .conference-hero-grid { grid-template-columns: 1fr; }
  .hero-poster { width: 230px; height: 300px; }
  .series-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1/-1; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-nav { position: static; grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 580px) {
  .shell { width: min(calc(100% - 24px),var(--shell)); }
  .site-header { padding: 8px 0; }
  .brand img { width: 114px; }
  .header-search { order: 3; width: 100%; }
  .account-nav { order: 2; margin-right: auto; }
  .account-nav .account-register { display: none; }
  .nav-toggle { margin-right: auto; }
  .hero { padding: 58px 0; }
  .hero-grid { gap: 40px; }
  .hero h1 { font-size: 2.35rem; }
  .search-box { display: grid; }
  .search-box button { height: 49px; }
  .hero-panel { padding: 19px; border-radius: 22px; }
  .section-head { align-items: start; flex-direction: column; gap: 8px; }
  .article-grid, .conference-grid, .conference-grid.wide, .authors-grid, .series-grid { grid-template-columns: 1fr; }
  .article-card { min-height: 0; }
  .compact-authors { grid-template-columns: 1fr; }
  .network-visual { min-height: 300px; }
  .page-hero { padding: 44px 0; }
  .filter-search { display: grid; }
  .filter-search button { height: 48px; }
  .listing-summary { align-items: start; flex-direction: column; }
  .content-card { padding: 22px; }
  .profile-head { align-items: start; }
  .profile-head img { width: 92px; height: 92px; border-radius: 24px; }
  .event-facts { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-poster { width: 180px; height: 240px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .timeline.vertical a { grid-template-columns: 65px 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full-field { grid-column: auto; }
  .claim-candidates article { grid-template-columns: 62px 1fr; }
  .claim-candidates article > a { grid-column: 1/-1; }
  .claim-candidates img { width: 62px; height: 62px; }
  .dashboard-card-head, .managed-items > article { align-items: start; flex-direction: column; }
  .review-form { grid-template-columns: 1fr; }
  .review-form textarea { grid-column: auto; }
  .public-profile-items article { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
