/* ==========================================================================
   ALPA Journal of Interdisciplinary Studies — design system
   Palette draws on Afghan material culture: lapis lazuli from Badakhshan,
   saffron from Herat, pomegranate from Kandahar, and paper-white manuscript.
   Layout uses logical properties throughout so Dari / Pashto render RTL.
   ========================================================================== */

:root {
  --lapis-950: #07112b;
  --lapis-900: #0b1a40;
  --lapis-800: #122759;
  --lapis-700: #1a3578;
  --lapis-600: #24479b;
  --lapis-100: #e6ebf6;
  --lapis-50: #f2f5fb;

  --saffron: #c9922f;
  --saffron-soft: #e9c77f;
  --saffron-50: #fbf4e6;
  --pomegranate: #9e2a38;
  --turquoise: #1f7a7a;

  --ink: #141a24;
  --ink-2: #3a4252;
  --muted: #667085;
  --line: #e3e1da;
  --line-2: #eeece6;
  --paper: #fbfaf7;
  --white: #ffffff;

  --serif: "Newsreader", "Vazirmatn", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", "Vazirmatn", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --persian: "Vazirmatn", "Noto Naskh Arabic", "Segoe UI", Tahoma, sans-serif;

  --radius: 6px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(11, 26, 64, 0.06);
  --shadow: 0 6px 24px -8px rgba(11, 26, 64, 0.18);
  --shadow-lg: 0 24px 60px -20px rgba(7, 17, 43, 0.45);
  --container: 1240px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--lapis-700); text-decoration: none; }
a:hover { color: var(--lapis-600); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; letter-spacing: -0.01em; color: var(--ink); }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--saffron); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--saffron-soft); color: var(--lapis-950); }

html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4 { font-family: var(--persian); font-weight: 700; letter-spacing: 0; line-height: 1.45; }
.fa, [lang="fa"], [lang="ps"] { font-family: var(--persian); }
.fa, [lang="fa"], [lang="ps"] { direction: rtl; }
/* Text in the author's language aligns with the page, whichever way the page reads */
html[dir="ltr"] .aligned[dir="rtl"] { text-align: left; }
html[dir="rtl"] .aligned[dir="ltr"] { text-align: right; }
html[dir="rtl"] .prose[dir="ltr"] { font-family: var(--serif); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 200; background: var(--saffron); color: var(--lapis-950); padding: 10px 16px; border-radius: var(--radius); font-weight: 600; }
.skip-link:focus { top: 12px; }

/* ---------- Preview notice ---------- */
.preview-notice { background: var(--saffron-50); border-bottom: 1px solid #efdcb5; color: #6b4b12; font-size: 13px; }
.preview-notice .container { display: flex; align-items: center; gap: 12px; padding-block: 8px; }
.preview-notice button { margin-inline-start: auto; background: none; border: 0; color: inherit; font-size: 18px; line-height: 1; padding: 2px 6px; }

/* ---------- Utility bar ---------- */
.utility { background: var(--lapis-950); color: #c8d0e4; font-size: 12.5px; }
.utility .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.utility-left { display: flex; gap: 18px; align-items: center; }
.utility-left span { display: inline-flex; align-items: center; gap: 6px; }
.utility-left svg { width: 13px; height: 13px; color: var(--saffron-soft); }
.utility-right { display: flex; align-items: center; gap: 18px; }
.utility a { color: #dfe5f2; }
.utility a:hover { color: #fff; }
.lang-switch { display: inline-flex; border: 1px solid rgba(255,255,255,0.18); border-radius: 999px; padding: 2px; }
.lang-switch button { background: none; border: 0; color: #c8d0e4; font-size: 12px; padding: 3px 11px; border-radius: 999px; line-height: 1.5; }
.lang-switch button[lang] { font-family: var(--persian); font-size: 12.5px; }
.lang-switch button[aria-pressed="true"] { background: var(--saffron); color: var(--lapis-950); font-weight: 600; }
.lang-switch button:hover:not([aria-pressed="true"]) { color: #fff; }

/* ---------- Masthead ---------- */
.masthead { background: var(--white); border-bottom: 1px solid var(--line); }
.masthead .container { display: flex; align-items: center; gap: 24px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); min-width: 0; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 52px; height: 52px; flex: none; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-family: var(--serif); font-size: 25px; line-height: 1.1; font-weight: 500; letter-spacing: -0.015em; }
.brand-name b { font-weight: 700; color: var(--lapis-800); letter-spacing: 0.02em; }
.brand-sub { font-size: 12px; color: var(--muted); letter-spacing: 0.02em; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[dir="rtl"] .brand-name { font-size: 21px; }
.masthead-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink-2); transition: all .2s var(--ease); }
.icon-btn:hover { border-color: var(--lapis-700); color: var(--lapis-700); }
.icon-btn svg { width: 18px; height: 18px; }
.search-trigger { display: inline-flex; align-items: center; gap: 10px; height: 42px; padding-inline: 14px 10px; min-width: 260px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--muted); font-size: 14px; transition: all .2s var(--ease); }
.search-trigger:hover { border-color: var(--lapis-700); background: var(--white); }
.search-trigger svg { width: 16px; height: 16px; }
.search-trigger kbd { margin-inline-start: auto; font: 11px var(--sans); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; background: var(--white); color: var(--muted); }
.menu-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding-inline: 20px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 14.5px; letter-spacing: 0.005em; transition: all .2s var(--ease); white-space: nowrap; }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--lapis-800); color: #fff; }
.btn-primary:hover { background: var(--lapis-700); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-gold { background: var(--saffron); color: var(--lapis-950); }
.btn-gold:hover { background: #d6a043; color: var(--lapis-950); transform: translateY(-1px); box-shadow: 0 10px 30px -10px rgba(201,146,47,.7); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--lapis-700); color: var(--lapis-700); }
.btn-light { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.35); backdrop-filter: blur(6px); }
.btn-light:hover { background: rgba(255,255,255,0.2); color: #fff; }
.btn-sm { height: 36px; padding-inline: 14px; font-size: 13.5px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
html[dir="rtl"] .btn .arrow { transform: scaleX(-1); }

/* ---------- Primary navigation ---------- */
#site-header { display: contents; } /* lets the nav stick relative to <body> */
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }
.more svg { width: 15px; height: 15px; flex: none; }
.primary-nav { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; transition: box-shadow .2s var(--ease); }
.primary-nav.is-stuck { box-shadow: 0 6px 20px -12px rgba(11,26,64,.25); }
.primary-nav .container { display: flex; align-items: center; gap: 4px; }
.primary-nav ul { list-style: none; display: flex; margin: 0; padding: 0; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.primary-nav ul::-webkit-scrollbar { display: none; }
.primary-nav a.nav-link { display: block; padding: 15px 14px 13px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); border-bottom: 2px solid transparent; white-space: nowrap; }
.primary-nav a.nav-link:hover { color: var(--lapis-700); }
.primary-nav a.nav-link[aria-current="page"] { color: var(--lapis-800); border-bottom-color: var(--saffron); font-weight: 600; }
.primary-nav .nav-cta { margin-inline-start: auto; display: none; }
.primary-nav.is-stuck .nav-cta { display: inline-flex; }
.nav-mini-brand { display: none; align-items: center; gap: 8px; margin-inline-end: 12px; font-family: var(--serif); font-weight: 700; color: var(--lapis-800); }
.nav-mini-brand svg { width: 28px; height: 28px; }
.primary-nav.is-stuck .nav-mini-brand { display: inline-flex; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--lapis-950); isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; transform: scale(1.04); animation: heroZoom 18s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(7,17,43,.94) 0%, rgba(7,17,43,.78) 38%, rgba(7,17,43,.25) 70%, rgba(7,17,43,.35) 100%),
    linear-gradient(0deg, rgba(7,17,43,.85) 0%, rgba(7,17,43,0) 40%); }
html[dir="rtl"] .hero::before { background:
    linear-gradient(270deg, rgba(7,17,43,.94) 0%, rgba(7,17,43,.78) 38%, rgba(7,17,43,.25) 70%, rgba(7,17,43,.35) 100%),
    linear-gradient(0deg, rgba(7,17,43,.85) 0%, rgba(7,17,43,0) 40%); }
.hero .container { padding-block: 104px 132px; min-height: 640px; display: flex; align-items: center; }
.hero-copy { max-width: 760px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--saffron-soft); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
html[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: 14px; }
.hero h1 { font-size: clamp(40px, 5.2vw, 68px); line-height: 1.03; color: #fff; margin: 20px 0 22px; font-weight: 400; letter-spacing: -0.025em; }
.hero h1 em { font-style: italic; color: var(--saffron-soft); }
html[dir="rtl"] .hero h1 { font-size: clamp(32px, 4vw, 52px); line-height: 1.4; }
html[dir="rtl"] .hero h1 em { font-style: normal; }
.hero-lede { font-size: 18px; line-height: 1.65; color: #d7ddeb; max-width: 580px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-langs { margin-top: 48px; display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.hero-langs-label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #aeb8d0; font-weight: 600; margin-inline-end: 6px; }
html[dir="rtl"] .hero-langs-label { letter-spacing: 0; font-size: 13.5px; }
.hero-langs strong { color: #fff; font-family: var(--serif); font-size: 24px; font-weight: 400; }
.hero-langs strong.fa { font-family: var(--persian); font-size: 21px; font-weight: 600; }
.hero-langs .sep { width: 1px; height: 24px; background: rgba(255,255,255,.25); }
.hero .eyebrow { transition: color .2s; }
.hero .eyebrow:hover { color: #fff; }


.photo-credit { position: absolute; inset-inline-end: 20px; bottom: 14px; font-size: 11px; color: rgba(255,255,255,.62); display: flex; gap: 6px; align-items: center; }
.photo-credit a { color: rgba(255,255,255,.8); text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); }
.photo-credit svg { width: 12px; height: 12px; }

/* ---------- Stats strip ---------- */
.facts { background: var(--white); border-bottom: 1px solid var(--line); position: relative; z-index: 2; }
.facts .container { display: grid; grid-template-columns: repeat(6, 1fr); }
.fact { padding: 26px 18px; border-inline-end: 1px solid var(--line-2); }
.fact:last-child { border-inline-end: 0; }
.fact .value { font-family: var(--serif); font-size: 30px; line-height: 1; color: var(--lapis-800); font-weight: 500; }
.fact .value small { font-size: 16px; color: var(--muted); }
.fact .key { font-size: 12.5px; color: var(--muted); margin-top: 8px; line-height: 1.4; }

/* ---------- Section scaffolding ---------- */
.section { padding-block: 80px; }
.section-tight { padding-block: 56px; }
.section-alt { background: var(--white); border-block: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; padding-bottom: 16px; border-bottom: 1px solid var(--ink); }
.section-head h2 { font-size: 34px; }
.section-head .kicker { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--pomegranate); font-weight: 700; margin-bottom: 8px; display: block; }
html[dir="rtl"] .section-head .kicker { letter-spacing: 0; font-size: 13px; }
.section-head .more { font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.section-head .more svg { width: 15px; height: 15px; }
html[dir="rtl"] .section-head .more svg, html[dir="rtl"] .arrow { transform: scaleX(-1); }

.layout-main { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; }

/* ---------- Article list (Nature-style) ---------- */
.article-list { list-style: none; margin: 0; padding: 0; }
.article-item { padding: 24px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0,1fr); gap: 8px; }
.article-item:first-child { padding-top: 0; }
.article-meta-top { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 12.5px; color: var(--muted); }
.type-label { font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 11.5px; color: var(--lapis-700); }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--lapis-50); color: var(--lapis-700); border: 1px solid var(--lapis-100); }
.badge svg { width: 11px; height: 11px; }
.badge-oa { background: #fdf3e2; color: #8a5a0b; border-color: #f2dfb8; }
.badge-lang { background: #edf6f5; color: var(--turquoise); border-color: #cfe6e3; }
.article-item h3 { font-size: 22px; line-height: 1.28; font-weight: 500; }
.article-item h3 a { color: var(--ink); background-image: linear-gradient(var(--saffron), var(--saffron)); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .3s var(--ease), color .2s; }
.article-item h3 a:hover { color: var(--lapis-700); background-size: 100% 1px; }
.article-item h3[lang] { font-size: 23px; line-height: 1.6; }
.article-item .title-en { font-family: var(--serif); font-style: italic; color: var(--ink-2); font-size: 16px; }
.article-item .authors { font-size: 14px; color: var(--ink-2); }
.article-item .snippet { font-size: 14.5px; color: var(--muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.article-actions { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; margin-top: 4px; }
.article-actions a, .article-actions button { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); background: none; border: 0; padding: 0; font-weight: 500; }
.article-actions a:hover, .article-actions button:hover { color: var(--lapis-700); }
.article-actions svg { width: 14px; height: 14px; }

/* ---------- Featured article ---------- */
.featured { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--lapis-900); color: #fff; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 40px; box-shadow: var(--shadow); }
.featured-media { position: relative; min-height: 340px; }
.featured-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.featured-media .tag { position: absolute; top: 18px; inset-inline-start: 18px; background: var(--saffron); color: var(--lapis-950); font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 4px; }
.featured-body { padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.featured-body .type-label { color: var(--saffron-soft); }
.featured-body h3 { color: #fff; font-size: 28px; line-height: 1.2; }
.featured-body h3 a { color: #fff; }
.featured-body h3 a:hover { color: var(--saffron-soft); }
.featured-body p { color: #c6cee0; font-size: 15px; margin: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.featured-body .authors { color: #e3e8f3; font-size: 14px; }
.featured-body .btn { align-self: flex-start; margin-top: auto; }

/* ---------- Sidebar ---------- */
.sidebar { display: flex; flex-direction: column; gap: 28px; }
.side-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.side-card h3 { font-size: 20px; margin-bottom: 14px; }
.side-card .kicker { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--pomegranate); font-weight: 700; display: block; margin-bottom: 6px; }
.side-card-dark { background: var(--lapis-900); border-color: var(--lapis-900); color: #d3daea; position: relative; overflow: hidden; }
.side-card-dark h3 { color: #fff; }
.side-card-dark .kicker { color: var(--saffron-soft); }
.side-card-dark::after { content: ""; position: absolute; inset-inline-end: -60px; top: -60px; width: 200px; height: 200px; background: var(--girih-gold) center/60px; opacity: .25; border-radius: 50%; }
.side-card-dark > * { position: relative; z-index: 1; }
.side-issue { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: start; }
.side-issue .cover { border-radius: 4px; overflow: hidden; box-shadow: var(--shadow); }
.side-issue p { font-size: 13.5px; color: var(--muted); margin: 4px 0 10px; }
.side-issue strong { font-family: var(--serif); font-size: 18px; font-weight: 500; display: block; line-height: 1.25; }
.news-list { list-style: none; padding: 0; margin: 0; }
.news-list li { padding: 12px 0; border-top: 1px solid var(--line-2); }
.news-list li:first-child { border-top: 0; padding-top: 0; }
.news-list time { font-size: 12px; color: var(--muted); display: block; }
.news-list a { font-family: var(--serif); font-size: 16.5px; color: var(--ink); line-height: 1.35; }
.news-list a:hover { color: var(--lapis-700); }
.check-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; font-size: 14px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list svg { width: 18px; height: 18px; flex: none; color: var(--saffron); margin-top: 2px; }

/* ---------- Subjects ---------- */
.subjects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.subject { background: var(--white); padding: 30px; display: flex; flex-direction: column; gap: 10px; color: var(--ink); transition: background .25s var(--ease); position: relative; }
.subject:hover { background: var(--lapis-50); color: var(--ink); }
.subject .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--lapis-50); color: var(--lapis-700); display: grid; place-items: center; transition: all .25s var(--ease); }
.subject:hover .ico { background: var(--lapis-800); color: var(--saffron-soft); }
.subject .ico svg { width: 22px; height: 22px; }
.subject h3 { font-size: 21px; margin-top: 6px; }
.subject p { font-size: 14px; color: var(--muted); margin: 0; }
.subject .count { font-size: 12.5px; color: var(--lapis-700); font-weight: 600; margin-top: auto; padding-top: 8px; display: flex; align-items: center; gap: 6px; }
.subject .count svg { width: 14px; height: 14px; transition: transform .2s; }
.subject:hover .count svg { transform: translateX(4px); }
html[dir="rtl"] .subject:hover .count svg { transform: scaleX(-1) translateX(4px); }

/* ---------- Heritage band ---------- */
.heritage { position: relative; color: #fff; isolation: isolate; overflow: hidden; background: var(--lapis-950); }
.heritage-media { position: absolute; inset: 0; z-index: -2; }
.heritage-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.heritage::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7,17,43,.9) 0%, rgba(7,17,43,.62) 50%, rgba(7,17,43,.78) 100%); }
.heritage .container { padding-block: 120px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.verse { text-align: center; }
.verse .persian { font-family: var(--persian); font-size: clamp(24px, 2.6vw, 34px); line-height: 2; color: #fff; font-weight: 500; direction: rtl; }
.verse .persian span { display: block; }
.verse .translation { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--saffron-soft); margin-top: 18px; line-height: 1.55; }
.verse cite { display: block; font-style: normal; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #aeb8d0; margin-top: 16px; }
.heritage-copy h2 { color: #fff; font-size: clamp(30px, 3.2vw, 44px); margin: 14px 0 18px; }
.heritage-copy p { color: #cdd4e4; font-size: 17px; }
.star-rule { display: flex; align-items: center; gap: 14px; color: var(--saffron); justify-content: center; margin: 22px auto; }
.star-rule::before, .star-rule::after { content: ""; height: 1px; width: 70px; background: linear-gradient(90deg, transparent, currentColor); }
.star-rule::after { transform: scaleX(-1); }
.star-rule span { width: 7px; height: 7px; background: currentColor; transform: rotate(45deg); }
.verse { margin: 0; }

/* ---------- Process timeline ---------- */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; position: relative; }
.process::before { content: ""; position: absolute; top: 27px; inset-inline: 10% 10%; height: 1px; background: repeating-linear-gradient(90deg, var(--saffron) 0 6px, transparent 6px 12px); }
.step { text-align: center; padding: 0 14px; position: relative; }
.step .num { width: 54px; height: 54px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--white); border: 1px solid var(--line); color: var(--lapis-800); font-family: var(--serif); font-size: 22px; position: relative; z-index: 1; box-shadow: 0 0 0 6px var(--paper); }
.section-alt .step .num { box-shadow: 0 0 0 6px var(--white); }
.step:last-child .num { background: var(--lapis-800); color: var(--saffron-soft); border-color: var(--lapis-800); }
.step h4 { font-size: 18px; margin-bottom: 6px; }
.step p { font-size: 13.5px; color: var(--muted); margin: 0; }

/* ---------- Board preview ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.person { display: flex; gap: 14px; align-items: center; padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); transition: all .25s var(--ease); }
.person:hover { border-color: var(--lapis-100); box-shadow: var(--shadow); transform: translateY(-2px); }
.avatar { width: 54px; height: 54px; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: var(--serif); font-size: 19px; color: var(--saffron-soft); background: var(--lapis-800); position: relative; overflow: hidden; }
.avatar::after { content: ""; position: absolute; inset: 0; background: var(--girih-gold) center/34px; opacity: .18; }
.person .role { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--pomegranate); font-weight: 700; }
.person .name { font-family: var(--serif); font-size: 18.5px; line-height: 1.25; }
.person .aff { font-size: 13px; color: var(--muted); }

/* ---------- Newsletter ---------- */
.alerts { background: var(--lapis-900); color: #fff; border-radius: var(--radius-lg); padding: 48px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; position: relative; overflow: hidden; isolation: isolate; }
.alerts::before { content: ""; position: absolute; inset: 0; background: var(--girih-gold) center/90px; opacity: .08; z-index: -1; }
.alerts h2 { color: #fff; font-size: 32px; margin-bottom: 10px; }
.alerts p { color: #c6cee0; margin: 0; }
.inline-form { display: flex; gap: 10px; }
.inline-form input { flex: 1; min-width: 0; height: 50px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; padding-inline: 20px; }
.inline-form input::placeholder { color: #9fabc6; }
.inline-form input:focus { outline: none; border-color: var(--saffron); background: rgba(255,255,255,.12); }
.inline-form .btn { height: 50px; }
.form-note { font-size: 12.5px; color: #9fabc6; margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--lapis-950); color: #aab5cf; font-size: 14px; margin-top: 0; position: relative; }
.site-footer::before { content: ""; display: block; height: 6px; background: var(--girih-band); background-size: auto 6px; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 48px; padding-block: 64px 48px; }
.footer-brand p { margin: 16px 0 0; line-height: 1.7; max-width: 360px; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand-sub { color: #8f9bb8; }
.site-footer .brand-name b { color: var(--saffron-soft); }
.site-footer .share-row a { background: transparent; border-color: rgba(255,255,255,.2); color: #cfd6e6; }
.site-footer .share-row a:hover { border-color: var(--saffron); color: #fff; }
.site-footer h4 { font-family: var(--sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--saffron-soft); margin-bottom: 16px; font-weight: 600; }
html[dir="rtl"] .site-footer h4 { letter-spacing: 0; font-size: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: #cfd6e6; }
.site-footer a:hover { color: #fff; }
.footer-meta { border-top: 1px solid rgba(255,255,255,.08); padding-block: 22px; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; font-size: 12.5px; color: #7f8bab; }
.footer-meta .cc { display: inline-flex; gap: 8px; align-items: center; }
.footer-meta .cc svg { width: 18px; height: 18px; }
.footer-credits { font-size: 11.5px; color: #6f7b99; padding-bottom: 26px; line-height: 1.7; }
.footer-credits a { color: #8e9aba; }

/* ---------- Page header (interior) ---------- */
.page-hero { position: relative; color: #fff; background: var(--lapis-900); isolation: isolate; overflow: hidden; }
.page-hero-media { position: absolute; inset: 0; z-index: -2; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7,17,43,.95), rgba(7,17,43,.7) 55%, rgba(7,17,43,.45)); }
.page-hero.plain::before { background: var(--lapis-900); }
.page-hero.plain::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--girih-gold) center/80px; opacity: .07; }
.page-hero .container { padding-block: 64px 58px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: #aeb8d0; margin-bottom: 18px; }
.breadcrumb a { color: #dfe5f2; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span[aria-hidden] { opacity: .5; }
.page-hero h1 { color: #fff; font-size: clamp(34px, 4vw, 52px); font-weight: 400; max-width: 860px; }
.page-hero .lede { color: #cdd4e4; font-size: 18px; max-width: 720px; margin: 16px 0 0; }
.page-hero .photo-credit { bottom: 10px; }

/* ---------- Prose & policy pages ---------- */
.prose { font-family: var(--serif); font-size: 19px; line-height: 1.7; color: var(--ink); }
.prose p { margin-bottom: 1.1em; }
.prose h2 { font-size: 30px; margin: 1.8em 0 .6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 22px; margin: 1.5em 0 .5em; }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--saffron); }
.prose .lead { font-size: 22px; line-height: 1.55; color: var(--ink-2); }
.prose a { text-decoration: underline; text-decoration-color: var(--saffron); text-underline-offset: 3px; }
html[dir="rtl"] .prose:not([dir="ltr"]) { font-family: var(--sans); }

.layout-doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; align-items: start; }
.toc { position: sticky; top: 80px; font-size: 14px; }
.toc h4 { font-family: var(--sans); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; font-weight: 600; }
.toc ol, .toc ul { list-style: none; padding: 0; margin: 0; border-inline-start: 1px solid var(--line); }
.toc a { display: block; padding: 7px 16px; color: var(--ink-2); margin-inline-start: -1px; border-inline-start: 2px solid transparent; line-height: 1.4; }
.toc a:hover { color: var(--lapis-700); }
.toc a.active { color: var(--lapis-800); border-inline-start-color: var(--saffron); font-weight: 600; }

.policy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 32px 0; }
.policy-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; }
.policy-card .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--saffron-50); color: #9b6a14; display: grid; place-items: center; margin-bottom: 14px; }
.policy-card .ico svg { width: 20px; height: 20px; }
.policy-card h3 { font-size: 20px; margin-bottom: 8px; }
.policy-card p { font-size: 14.5px; color: var(--ink-2); margin: 0; font-family: var(--sans); line-height: 1.6; }

.callout { border-inline-start: 3px solid var(--saffron); background: var(--saffron-50); padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--sans); font-size: 15px; color: #5b4414; margin: 24px 0; }
html[dir="rtl"] .callout { border-radius: var(--radius) 0 0 var(--radius); }
.callout strong { color: #3f2e0a; }

/* ---------- Article page ---------- */
.article-header { background: var(--white); border-bottom: 1px solid var(--line); }
.article-header .container { padding-block: 40px 36px; }
.article-header .breadcrumb { color: var(--muted); }
.article-header .breadcrumb a { color: var(--lapis-700); }
.article-title { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.12; font-weight: 400; max-width: 960px; margin: 14px 0 10px; }
.article-title[lang] { line-height: 1.6; font-weight: 700; }
.article-subtitle { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--ink-2); margin-bottom: 18px; }
.author-line { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 16px; margin: 18px 0 8px; }
.author-line button { background: none; border: 0; padding: 0; color: var(--lapis-700); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.author-line button sup { color: var(--muted); }
.affiliations { font-size: 13.5px; color: var(--muted); list-style: none; padding: 0; margin: 0 0 18px; }
.article-dates { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 13.5px; color: var(--muted); padding-top: 16px; border-top: 1px solid var(--line-2); }
.article-dates b { color: var(--ink-2); font-weight: 600; }
.article-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.layout-article { display: grid; grid-template-columns: 220px minmax(0, 1fr) 300px; gap: 48px; padding-block: 48px 80px; align-items: start; }
.article-body section { margin-bottom: 44px; }
.article-body h2 { font-size: 26px; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.abstract p { font-family: var(--serif); font-size: 19px; line-height: 1.72; }
.abstract-local { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 24px; margin-top: 20px; }
.abstract-local p { font-family: var(--persian); font-size: 17px; line-height: 2.1; margin: 0; }
.abstract-local h3 { font-family: var(--persian); font-size: 15px; font-weight: 700; margin-bottom: 8px; color: var(--pomegranate); }
.keywords { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.keywords a { display: inline-block; font-size: 13.5px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink-2); }
.keywords a:hover { border-color: var(--lapis-700); color: var(--lapis-700); }
.outline-list { counter-reset: sec; list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); overflow: hidden; }
.outline-list li { counter-increment: sec; padding: 14px 20px; border-top: 1px solid var(--line-2); display: flex; gap: 14px; font-family: var(--serif); font-size: 17px; }
.outline-list li:first-child { border-top: 0; }
.outline-list li::before { content: counter(sec); font-family: var(--sans); font-size: 12px; font-weight: 700; color: var(--saffron); min-width: 18px; padding-top: 4px; }
.outline-list[dir="rtl"] li { font-family: var(--persian); }
.pdf-cta { display: flex; gap: 20px; align-items: center; background: var(--lapis-50); border: 1px solid var(--lapis-100); border-radius: var(--radius-lg); padding: 22px 24px; margin-top: 20px; }
.pdf-cta .ico { width: 48px; height: 58px; flex: none; background: var(--white); border: 1px solid var(--lapis-100); border-radius: 6px; display: grid; place-items: center; color: var(--pomegranate); font-weight: 700; font-size: 12px; }
.pdf-cta p { margin: 0; font-size: 14px; color: var(--ink-2); }
.pdf-cta strong { display: block; font-family: var(--serif); font-size: 18px; font-weight: 500; }
.pdf-cta .btn { margin-inline-start: auto; }
.cite-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 22px; font-size: 15px; line-height: 1.65; }
.cite-box .cite-text { font-family: var(--serif); font-size: 16.5px; }
.cite-box .row { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.info-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.info-table th, .info-table td { text-align: start; padding: 10px 0; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.info-table th { color: var(--muted); font-weight: 500; width: 40%; }
.aside-block { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 20px; }
.aside-block h4 { font-family: var(--sans); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; font-weight: 600; }
.aside-related { list-style: none; padding: 0; margin: 0; }
.aside-related li { padding: 12px 0; border-top: 1px solid var(--line-2); }
.aside-related li:first-child { border-top: 0; padding-top: 0; }
.aside-related a { font-family: var(--serif); font-size: 16px; line-height: 1.35; color: var(--ink); }
.aside-related a:hover { color: var(--lapis-700); }
.aside-related a[lang] { font-family: var(--persian); }
.aside-related span { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.share-row { display: flex; gap: 8px; }
.share-row a, .share-row button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-2); background: var(--white); }
.share-row a:hover, .share-row button:hover { border-color: var(--lapis-700); color: var(--lapis-700); }
.share-row svg { width: 16px; height: 16px; }
.cc-block { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--ink-2); }
.cc-block svg { width: 36px; height: 36px; flex: none; color: var(--ink); }

/* ---------- Issue page ---------- */
.issue-hero { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: center; }
.issue-hero .cover { border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-lg); }
.issue-toc-group { margin-bottom: 40px; }
.issue-toc-group > h3 { font-family: var(--sans); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--pomegranate); margin-bottom: 8px; font-weight: 700; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.pages { font-size: 12.5px; color: var(--muted); }

/* ---------- Archive ---------- */
.volume { display: grid; grid-template-columns: 120px 1fr; gap: 32px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.volume-year { font-family: var(--serif); font-size: 44px; color: var(--lapis-800); line-height: 1; }
.volume-year small { display: block; font-family: var(--sans); font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.issue-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; }
.issue-tile { color: var(--ink); }
.issue-tile .cover { border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s; }
.issue-tile:hover .cover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.issue-tile strong { display: block; margin-top: 14px; font-family: var(--serif); font-weight: 500; font-size: 18px; }
.issue-tile span { font-size: 13px; color: var(--muted); }
.issue-tile.upcoming .cover { opacity: .5; filter: grayscale(.5); }

/* ---------- Browse ---------- */
.browse-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; align-items: start; }
.filters { position: sticky; top: 80px; display: grid; gap: 26px; }
.filter-group h4 { font-family: var(--sans); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; font-weight: 600; }
.filter-group label { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 5px 0; cursor: pointer; color: var(--ink-2); }
.filter-group label .n { margin-inline-start: auto; font-size: 12px; color: var(--muted); }
.filter-group input[type="checkbox"], .filter-group input[type="radio"] { accent-color: var(--lapis-800); width: 16px; height: 16px; }
.search-field { position: relative; }
.search-field svg { position: absolute; inset-inline-start: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search-field input { width: 100%; height: 52px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); padding-inline: 46px 20px; font-size: 16px; }
.search-field input:focus { outline: none; border-color: var(--lapis-700); box-shadow: 0 0 0 4px var(--lapis-50); }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 22px 0 8px; font-size: 14px; color: var(--muted); }
.results-bar select { height: 36px; border-radius: 8px; border: 1px solid var(--line); background: var(--white); padding-inline: 10px; }
.empty-state { text-align: center; padding: 64px 20px; color: var(--muted); }
.empty-state svg { width: 48px; height: 48px; margin: 0 auto 14px; color: var(--line); }
mark { background: var(--saffron-50); color: inherit; padding: 0 2px; border-radius: 2px; box-shadow: inset 0 -2px 0 var(--saffron-soft); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label, .field .label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: var(--ink-2); }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--white); padding: 12px 14px; font-size: 15px; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--lapis-700); box-shadow: 0 0 0 4px var(--lapis-50); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--pomegranate); }
.field .error { color: var(--pomegranate); font-size: 12.5px; margin-top: 6px; display: none; }
.field.invalid .error { display: block; }
.req { color: var(--pomegranate); }
.checkbox { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); cursor: pointer; }
.checkbox input { accent-color: var(--lapis-800); width: 18px; height: 18px; margin-top: 2px; flex: none; }
.checkbox:has(input:checked) { border-color: var(--lapis-100); background: var(--lapis-50); }
.dropzone { border: 1.5px dashed #c9cfdc; border-radius: var(--radius-lg); padding: 36px; text-align: center; background: var(--white); cursor: pointer; transition: all .2s; }
.dropzone:hover, .dropzone.drag { border-color: var(--lapis-700); background: var(--lapis-50); }
.dropzone svg { width: 36px; height: 36px; margin: 0 auto 10px; color: var(--lapis-700); }
.dropzone strong { display: block; font-size: 15px; }
.dropzone span { font-size: 13px; color: var(--muted); }
.file-error { color: var(--pomegranate); font-size: 13.5px; margin: 10px 0 0; }
.file-chip { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--lapis-100); background: var(--lapis-50); border-radius: 10px; margin-top: 12px; font-size: 14px; }
.file-chip button { margin-inline-start: auto; background: none; border: 0; color: var(--muted); }

.wizard { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.wizard-steps { display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--line); background: var(--paper); }
.wizard-steps li { list-style: none; padding: 16px 12px; font-size: 13px; color: var(--muted); display: flex; gap: 10px; align-items: center; border-inline-end: 1px solid var(--line-2); }
.wizard-steps li:last-child { border-inline-end: 0; }
.wizard-steps .dot { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--white); flex: none; }
.wizard-steps li.active { color: var(--ink); font-weight: 600; background: var(--white); box-shadow: inset 0 -2px 0 var(--saffron); }
.wizard-steps li.active .dot { background: var(--lapis-800); border-color: var(--lapis-800); color: #fff; }
.wizard-steps li.done .dot { background: var(--saffron); border-color: var(--saffron); color: var(--lapis-950); }
.wizard-body { padding: 32px; }
.wizard-body h3 { font-size: 24px; margin-bottom: 6px; }
.wizard-body > p.sub { color: var(--muted); margin-bottom: 24px; font-size: 15px; }
.wizard-panel { display: none; }
.wizard-panel.active { display: block; animation: fadeUp .35s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.wizard-foot { display: flex; justify-content: space-between; gap: 12px; padding: 18px 32px; border-top: 1px solid var(--line); background: var(--paper); }
.author-row { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 12px; align-items: end; padding: 14px; border: 1px solid var(--line-2); border-radius: 10px; margin-bottom: 10px; }
.author-row .remove { height: 46px; width: 46px; border-radius: 10px; border: 1px solid var(--line); background: var(--white); color: var(--muted); }
.review-summary { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.review-summary div { background: var(--white); padding: 12px 16px; display: grid; grid-template-columns: 180px 1fr; gap: 16px; font-size: 14px; }
.review-summary dt { color: var(--muted); }
.review-summary dd { margin: 0; }
.success-panel { text-align: center; padding: 30px 10px; }
.success-panel .tick { width: 72px; height: 72px; border-radius: 50%; background: var(--lapis-50); color: var(--lapis-800); display: grid; place-items: center; margin: 0 auto 18px; }
.success-panel .tick svg { width: 34px; height: 34px; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 28px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 12px 16px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--lapis-800); border-bottom-color: var(--saffron); font-weight: 600; }
.tab-panel[hidden] { display: none; }

/* ---------- Green book ---------- */
.book-feature { display: grid; grid-template-columns: 320px 1fr; gap: 64px; align-items: center; }
.book-3d { perspective: 1200px; }
.book-3d .book { width: 100%; aspect-ratio: 3/4.2; border-radius: 4px 10px 10px 4px; background: linear-gradient(135deg, #1f5e45, #0f3a2a); box-shadow: inset 8px 0 12px -6px rgba(0,0,0,.5), 22px 30px 50px -20px rgba(7,17,43,.55); transform: rotateY(-16deg); transition: transform .5s var(--ease); position: relative; overflow: hidden; color: #f4ecd6; padding: 34px 28px; display: flex; flex-direction: column; }
.book-3d:hover .book { transform: rotateY(-4deg); }
.book::before { content: ""; position: absolute; inset: 0; background: var(--girih-gold) center/70px; opacity: .14; }
.book::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(233,199,127,.55); border-radius: 4px; pointer-events: none; }
.book > * { position: relative; z-index: 1; }
.book .b-top { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--saffron-soft); }
.book .b-title { font-family: var(--serif); font-size: 36px; line-height: 1.05; margin-top: auto; }
.book .b-fa { font-family: var(--persian); font-size: 22px; color: var(--saffron-soft); margin-top: 10px; direction: rtl; }
.book .b-author { font-size: 13px; margin-top: 18px; color: #d9d0b8; }

/* ---------- Announcements ---------- */
.news-feed { display: grid; gap: 20px; }
.news-card { display: grid; grid-template-columns: 110px 1fr; gap: 28px; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.news-date { text-align: center; border-inline-end: 1px solid var(--line); padding-inline-end: 24px; }
.news-date .d { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--lapis-800); }
.news-date .m { font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-top: 6px; }
.news-card .tag { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--pomegranate); }
.news-card h3 { font-size: 24px; margin: 6px 0 10px; }
.news-card p { color: var(--ink-2); margin-bottom: 12px; }
.news-card a.more { font-weight: 600; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.news-card a.more svg { width: 15px; height: 15px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.contact-card { display: flex; gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); margin-bottom: 16px; }
.contact-card .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--lapis-50); color: var(--lapis-700); display: grid; place-items: center; flex: none; }
.contact-card .ico svg { width: 20px; height: 20px; }
.contact-card h3 { font-size: 18px; margin-bottom: 4px; }
.contact-card p { margin: 0; font-size: 14.5px; color: var(--ink-2); }

/* ---------- Search overlay ---------- */
.search-overlay { position: fixed; inset: 0; z-index: 300; background: rgba(7,17,43,.6); backdrop-filter: blur(6px); display: none; align-items: flex-start; justify-content: center; padding: 10vh 20px 20px; }
.search-overlay.open { display: flex; animation: fadeIn .2s; }
@keyframes fadeIn { from { opacity: 0; } }
.search-panel { width: 100%; max-width: 720px; background: var(--white); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; animation: fadeUp .25s var(--ease); }
.search-panel .search-input { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.search-panel .search-input svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.search-panel .search-input input { flex: 1; border: 0; font-size: 19px; outline: none; background: none; }
.search-panel .search-input kbd { font: 11px var(--sans); border: 1px solid var(--line); border-radius: 4px; padding: 2px 6px; color: var(--muted); }
.search-results { max-height: 55vh; overflow: auto; padding: 8px; }
.search-results .group { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 12px 14px 6px; font-weight: 600; }
.search-results a { display: block; padding: 12px 14px; border-radius: 10px; color: var(--ink); }
.search-results a:hover, .search-results a.focused { background: var(--lapis-50); }
.search-results a strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 17px; line-height: 1.35; }
.search-results a strong[lang] { font-family: var(--persian); }
.search-results a span { font-size: 13px; color: var(--muted); }
.search-empty { padding: 28px; text-align: center; color: var(--muted); font-size: 14px; }
.search-hints { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); align-items: center; }
.search-hints button { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 13px; color: var(--ink-2); }
.search-hints button:hover { border-color: var(--lapis-700); color: var(--lapis-700); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 310; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(7,17,43,.6); backdrop-filter: blur(4px); }
.modal.open { display: flex; animation: fadeIn .2s; }
.modal-panel { width: 100%; max-width: 640px; background: var(--white); border-radius: 16px; box-shadow: var(--shadow-lg); animation: fadeUp .25s var(--ease); max-height: 90vh; overflow: auto; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 22px; }
.modal-body { padding: 24px; }
.modal-body .tabs { margin-bottom: 18px; }
.cite-output { font-family: var(--serif); font-size: 16px; line-height: 1.65; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 18px; white-space: pre-wrap; word-break: break-word; }
.cite-output.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--lapis-950); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 14px; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: all .3s var(--ease); z-index: 400; display: flex; gap: 10px; align-items: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast svg { width: 16px; height: 16px; color: var(--saffron-soft); }

/* Content is always shown immediately (no scroll animations, as on major journal sites). */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Patterns: Afghan carpet gul lattice and a lozenge border ---------- */
:root {
  --girih-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23e9c77f' stroke-width='1.2'%3E%3Cpath d='M33 23h14l10 10v14L47 57H33L23 47V33z'/%3E%3Cpath d='M40 30l10 10-10 10-10-10z'/%3E%3Cpath d='M57 40h23M0 40h23M40 0v23M40 57v23'/%3E%3Cpath d='M0 4l4-4M76 0l4 4M0 76l4 4M80 76l-4 4'/%3E%3C/g%3E%3C/svg%3E");
  --girih-band: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 6'%3E%3Crect width='24' height='6' fill='%230b1a40'/%3E%3Cpath d='M0 3h24' stroke='%23c9922f' stroke-width='.6'/%3E%3Cpath d='M12 0l3 3-3 3-3-3z' fill='%23c9922f'/%3E%3Ccircle cx='0' cy='3' r='1' fill='%239e2a38'/%3E%3Ccircle cx='24' cy='3' r='1' fill='%239e2a38'/%3E%3C/svg%3E");
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .layout-article { grid-template-columns: minmax(0, 1fr) 280px; }
  .layout-article .toc { display: none; }
  .facts .container { grid-template-columns: repeat(3, 1fr); }
  .fact:nth-child(3) { border-inline-end: 0; }
  .fact:nth-child(-n+3) { border-bottom: 1px solid var(--line-2); }
  .search-trigger { min-width: 0; }
  .search-trigger .label, .search-trigger kbd { display: none; }
}
@media (max-width: 960px) {
  .hero .container { min-height: 0; padding-block: 72px 96px; }
  .layout-main, .layout-doc, .browse-layout, .contact-grid, .heritage .container, .alerts, .book-feature { grid-template-columns: 1fr; }
  .layout-doc .toc, .filters { position: static; }
  .layout-doc .toc { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .subjects { grid-template-columns: repeat(2, 1fr); }
  .featured { grid-template-columns: 1fr; }
  .featured-media { min-height: 240px; }
  .process { grid-template-columns: 1fr; gap: 22px; }
  .process::before { display: none; }
  .step { display: grid; grid-template-columns: 54px 1fr; gap: 16px; text-align: start; padding: 0; }
  .step .num { margin: 0; }
  .layout-article { grid-template-columns: 1fr; }
  .issue-hero { grid-template-columns: 180px 1fr; gap: 28px; }
  .book-feature { max-width: 560px; }
  .book-3d { max-width: 300px; }
  .utility-left span:nth-child(n+2) { display: none; }
}
@media (max-width: 760px) {
  .container { padding-inline: 18px; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-name { font-size: 19px; }
  .brand-sub { display: none; }
  .masthead .btn-submit { display: none; }
  .menu-toggle { display: inline-flex; }
  .primary-nav { position: static; }
  .primary-nav .container { display: none; }
  .primary-nav.open .container { display: block; padding-block: 8px 16px; }
  .primary-nav.open ul { flex-direction: column; }
  .primary-nav.open a.nav-link { border-bottom: 1px solid var(--line-2); padding: 14px 4px; }
  .primary-nav.open .nav-cta { margin: 14px 0 0; width: 100%; display: inline-flex; height: 44px; }
  .search-trigger { width: 42px; padding: 0; justify-content: center; }
  .photo-credit { inset-inline-start: 18px; font-size: 10.5px; }
  .facts .container { grid-template-columns: repeat(2, 1fr); }
  .fact { border-inline-end: 0 !important; border-bottom: 1px solid var(--line-2); }
  .fact:nth-child(odd) { border-inline-end: 1px solid var(--line-2) !important; }
  .section { padding-block: 56px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head h2 { font-size: 28px; }
  .subjects { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .alerts { padding: 30px; }
  .inline-form { flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .wizard-steps { grid-template-columns: repeat(5, 1fr); }
  .wizard-steps li { justify-content: center; }
  .wizard-steps li .txt { display: none; }
  .wizard-body { padding: 22px; }
  .wizard-foot { padding: 16px 22px; }
  .author-row { grid-template-columns: 1fr; }
  .review-summary div { grid-template-columns: 1fr; gap: 2px; }
  .policy-grid { grid-template-columns: 1fr; }
  .news-card { grid-template-columns: 1fr; gap: 12px; }
  .news-date { text-align: start; border: 0; padding: 0; display: flex; gap: 8px; align-items: baseline; }
  .news-date .d { font-size: 24px; }
  .volume { grid-template-columns: 1fr; gap: 16px; }
  .issue-hero { grid-template-columns: 1fr; }
  .issue-hero .cover { max-width: 200px; }
  .pdf-cta { flex-direction: column; align-items: flex-start; }
  .pdf-cta .btn { margin-inline-start: 0; }
  .hero-langs .sep { display: none; }
  .utility-right .util-link { display: none; }
}

/* ---------- Print (article pages) ---------- */
@media print {
  .utility, .masthead, .primary-nav, .site-footer, .preview-notice, .article-toolbar, aside, .toc, .toast, .pdf-cta { display: none !important; }
  body { background: #fff; }
  .layout-article { display: block; padding: 0; }
  .article-header { border: 0; }
}


/* ---------- Issue covers (photographic) ---------- */
.cover-art { aspect-ratio: 3 / 4.1; display: flex; flex-direction: column; background: var(--lapis-900); color: #fff; overflow: hidden; container-type: inline-size; }
.cover-top { padding: 9% 9% 7%; display: flex; flex-direction: column; gap: 4px; border-bottom: 2px solid var(--saffron); }
.cover-mast { font-family: var(--serif); font-weight: 700; font-size: 17cqi; line-height: .95; letter-spacing: .06em; color: var(--saffron-soft); }
.cover-name { font-size: 4.6cqi; line-height: 1.35; color: #dfe5f2; letter-spacing: .02em; }
.cover-photo { flex: 1; background-size: cover; background-position: center 60%; }
.cover-foot { padding: 7% 9% 8%; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; background: var(--lapis-950); }
.cover-vol { font-family: var(--serif); font-size: 7.4cqi; }
.cover-year { font-size: 4.6cqi; letter-spacing: .12em; color: var(--saffron-soft); font-weight: 600; text-transform: uppercase; }
html[dir="rtl"] .cover-year { letter-spacing: 0; }
.cover-art.is-upcoming .cover-photo { filter: grayscale(.85) brightness(.8); }
.cover-art.is-upcoming .cover-top { border-color: #8a93a6; }
.issue-tile.upcoming .cover { opacity: 1; filter: none; }

/* ---------- Small components ---------- */
.side-text { font-size: 14px; color: var(--muted); }
.side-card-dark .side-text { color: #c6cee0; }
.kicker-inline { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--pomegranate); font-weight: 700; }
html[dir="rtl"] .kicker-inline { letter-spacing: 0; font-size: 13px; }
.gb-title { font-size: 38px; margin: 10px 0 18px; }
.policy-grid.three { grid-template-columns: repeat(3, 1fr); }
.form-card { font-family: var(--sans); margin-top: 24px; }
.form-card > h3 { margin-bottom: 18px; }
.form-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 22px; }
.form-actions > span { font-size: 13px; color: var(--muted); }
.check-row { display: flex; gap: 10px; flex-wrap: wrap; }
.decl-list { display: grid; gap: 10px; margin-bottom: 26px; }
.decl-list .field .error { margin-inline-start: 16px; }
.review-summary { margin: 0; }
.wizard-steps { margin: 0; padding: 0; }
.wizard-steps .dot svg { width: 13px; height: 13px; stroke-width: 2.4; }
.success-panel p#done-title { color: var(--ink-2); max-width: 560px; margin: 10px auto 0; }
.success-panel .callout { text-align: start; max-width: 620px; margin: 24px auto 0; }
.issue-meta { color: #aeb8d0; font-size: 13.5px; margin-top: 18px; }
.body-text { color: var(--ink-2); }
.facts-compact .value { font-size: 22px; }
.issue-hero .cover, .issue-tile .cover { border-radius: 6px; overflow: hidden; }
.issue-hero .cover { box-shadow: var(--shadow-lg); }

/* Dari & Pashto typography: headings in RTL read better a touch heavier and looser */
html[dir="rtl"] .hero h1 em { font-style: normal; }
html[dir="rtl"] .prose .lead { line-height: 1.9; }
html[dir="rtl"] .prose { line-height: 2; font-size: 18px; }
html[dir="rtl"] .type-label, html[dir="rtl"] .section-head .kicker, html[dir="rtl"] .side-card .kicker, html[dir="rtl"] .person .role,
html[dir="rtl"] .news-card .tag, html[dir="rtl"] .toc h4, html[dir="rtl"] .aside-block h4, html[dir="rtl"] .filter-group h4,
html[dir="rtl"] .issue-toc-group > h3, html[dir="rtl"] .featured-media .tag { letter-spacing: 0; text-transform: none; font-size: 13px; }

@media (max-width: 960px) { .policy-grid.three { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .gb-title { font-size: 30px; } .hero-langs-label { width: 100%; } }
html[dir="rtl"] :is(h1, h2, h3, h4)[lang="en"] { font-family: var(--serif); font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; }

/* ==========================================================================
   Editorial portal, author tracking and reviewer pages
   ========================================================================== */
.util-login { display: inline-flex; align-items: center; gap: 6px; }
.util-login svg { width: 13px; height: 13px; color: var(--saffron-soft); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.callout-error { border-inline-start-color: var(--pomegranate); background: #fbeef0; color: #7a1f2b; }
.callout-success { border-inline-start-color: var(--turquoise); background: #e9f5f3; color: #145656; }
.callout.soft { background: var(--lapis-50); border-inline-start-color: var(--lapis-600); color: var(--ink-2); }
.callout svg { width: 16px; height: 16px; display: inline-block; vertical-align: -3px; margin-inline-end: 4px; }
.done-text { color: var(--ink-2); max-width: 600px; margin: 10px auto 0; line-height: 1.7; }
.btn-block { width: 100%; }
.btn-danger-text { color: var(--pomegranate) !important; }
.btn svg { flex: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--lapis-700); font-size: 13px; font-weight: 600; cursor: pointer; }
.link-btn.danger { color: var(--pomegranate); }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.container.narrow { max-width: 860px; }
.portal-loading { padding: 60px 0; color: var(--muted); text-align: center; }

/* Status pills */
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--lapis-50); color: var(--lapis-700); white-space: nowrap; }
.pill-new { background: #fdf3e2; color: #8a5a0b; }
.pill-in_review { background: var(--lapis-50); color: var(--lapis-700); }
.pill-revisions_requested { background: #f3ecfb; color: #5b3a8c; }
.pill-published { background: #e6f4f1; color: var(--turquoise); }
.pill-accepted { background: #eef6e6; color: #3f6b1f; }
.pill-rejected { background: #f7e9eb; color: var(--pomegranate); }
.pill-rec-accept { background: #e6f4f1; color: var(--turquoise); }
.pill-rec-minor { background: var(--lapis-50); color: var(--lapis-700); }
.pill-rec-major { background: #fdf3e2; color: #8a5a0b; }
.pill-rec-reject { background: #f7e9eb; color: var(--pomegranate); }
.pill-inv-submitted, .pill-member-active, .pill-mail-sent { background: #e6f4f1; color: var(--turquoise); }
.pill-inv-declined, .pill-inv-cancelled, .pill-member-inactive, .pill-mail-failed { background: #f7e9eb; color: var(--pomegranate); }
.pill-member-pending, .pill-mail-logged, .pill-mail-queued { background: #fdf3e2; color: #8a5a0b; }
.tag-soft { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--paper); border: 1px solid var(--line); color: var(--ink-2); }
.count-badge { font-family: var(--sans); font-size: 12px; background: var(--lapis-50); color: var(--lapis-700); padding: 2px 8px; border-radius: 999px; vertical-align: middle; margin-inline-start: 6px; }

/* Sign-in */
.auth-wrap { min-height: calc(100vh - 320px); display: grid; place-items: center; padding: 64px 20px; background: linear-gradient(180deg, var(--lapis-50), var(--paper)); position: relative; isolation: isolate; }
.auth-wrap::before { content: ""; position: absolute; inset: 0; background: var(--girih-gold) center/90px; opacity: .035; filter: invert(1) brightness(.3); z-index: -1; }
.auth-card { width: 100%; max-width: 440px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 40px 36px; box-shadow: var(--shadow); text-align: center; }
.auth-card form { text-align: start; display: grid; gap: 16px; margin-top: 26px; }
.auth-logo .brand-mark { width: 64px; height: 64px; margin: 0 auto 16px; }
.auth-card h1 { font-size: 30px; }
.auth-lede { color: var(--muted); margin: 8px 0 0; font-size: 15px; }
.auth-links { margin: 18px 0 0; font-size: 14px; }
.auth-note { display: flex; gap: 8px; align-items: flex-start; justify-content: center; font-size: 12.5px; color: var(--muted); margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line-2); }
.auth-note svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--saffron); }

/* Portal frame */
.portal-head { background: var(--lapis-900); color: #fff; position: relative; isolation: isolate; }
.portal-head::after { content: ""; position: absolute; inset: 0; background: var(--girih-gold) center/80px; opacity: .07; z-index: -1; }
.portal-head .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 30px; flex-wrap: wrap; }
.portal-head h1 { color: #fff; font-size: 30px; margin-top: 8px; }
.portal-user { display: flex; align-items: center; gap: 12px; }
.portal-user .avatar { width: 44px; height: 44px; font-size: 16px; }
.portal-user strong { display: block; color: #fff; font-weight: 600; }
.portal-user span { font-size: 12.5px; color: #aeb8d0; }
.portal-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; padding-block: 36px 80px; align-items: start; }
.portal-nav { position: sticky; top: 80px; display: grid; gap: 4px; }
.portal-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; color: var(--ink-2); font-weight: 500; font-size: 14.5px; }
.portal-nav a svg { width: 17px; height: 17px; color: var(--muted); }
.portal-nav a:hover { background: var(--white); color: var(--lapis-700); }
.portal-nav a[aria-current="page"] { background: var(--white); color: var(--lapis-800); font-weight: 600; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.portal-nav a[aria-current="page"] svg { color: var(--saffron); }
.portal-toolbar { display: flex; justify-content: flex-end; margin: 0 0 16px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px; }
.panel > h3 { font-size: 20px; margin-bottom: 14px; }
.panel h4 { font-family: var(--sans); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 22px 0 8px; font-weight: 600; }
html[dir="rtl"] .panel h4 { letter-spacing: 0; font-size: 13px; text-transform: none; }

/* Dashboard */
.dash-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 22px; }
.stat { text-align: start; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--muted); cursor: pointer; transition: all .2s var(--ease); }
.stat:hover { border-color: var(--lapis-100); box-shadow: var(--shadow-sm); }
.stat-n { font-family: var(--serif); font-size: 30px; color: var(--ink); line-height: 1.1; }
.stat-new .stat-n { color: #8a5a0b; } .stat-accepted .stat-n { color: #3f6b1f; } .stat-published .stat-n { color: var(--turquoise); } .stat-revisions_requested .stat-n { color: #5b3a8c; }
.dash-tools { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 14px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13px; color: var(--ink-2); }
.chip span { color: var(--muted); font-size: 12px; margin-inline-start: 4px; }
.chip[aria-pressed="true"] { background: var(--lapis-800); border-color: var(--lapis-800); color: #fff; }
.chip[aria-pressed="true"] span { color: var(--saffron-soft); }
.search-field.compact input { height: 40px; font-size: 14px; }
.search-field.compact { min-width: 260px; }
.sub-row { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 20px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin-bottom: 10px; color: var(--ink); transition: all .2s var(--ease); }
.sub-row:hover { border-color: var(--lapis-100); box-shadow: var(--shadow); color: var(--ink); transform: translateY(-1px); }
.sub-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 12.5px; color: var(--muted); }
.ref { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--ink-2); font-weight: 600; }
.sub-row h3 { font-size: 19px; margin: 6px 0 2px; line-height: 1.3; }
.sub-en, .det-en { font-family: var(--serif); font-style: italic; color: var(--ink-2); font-size: 15px; }
.sub-foot { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.sub-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 12.5px; color: var(--muted); text-align: end; }
.sub-side .you { display: inline-flex; gap: 4px; align-items: center; color: var(--turquoise); font-weight: 600; }
.sub-side .you svg { width: 14px; height: 14px; }
.dots { display: flex; gap: 5px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--line); display: block; }
.dots i.on { background: var(--saffron); box-shadow: 0 0 0 3px var(--saffron-50); }
.dots.big i { width: 22px; height: 22px; }
.dots.big { gap: 10px; margin: 6px 0 10px; }

/* Submission page */
.back-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; margin-bottom: 18px; }
.back-link svg { width: 15px; height: 15px; transform: scaleX(-1); }
html[dir="rtl"] .back-link svg { transform: none; }
.det-head { margin-bottom: 24px; }
.det-head h2 { font-size: 30px; margin: 10px 0 6px; line-height: 1.2; }
.det-date { color: var(--muted); font-size: 13.5px; margin: 6px 0 0; }
.det-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.det-side { position: sticky; top: 80px; }
.kv { display: grid; gap: 1px; margin: 0; background: var(--line-2); border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.kv > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 14px; padding: 10px 14px; background: var(--white); font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.det-abstract { font-family: var(--serif); font-size: 17px; line-height: 1.7; }
.file-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.file-list li { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; }
.file-list li > svg { width: 20px; height: 20px; color: var(--lapis-700); flex: none; }
.file-list li > div { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13px; color: var(--muted); }
.file-list strong { color: var(--ink); font-size: 14px; }
.review-card { border: 1px solid var(--line-2); border-radius: 12px; padding: 16px 18px; margin-bottom: 12px; }
.review-card header { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; font-size: 13px; }
.review-card h5 { font-family: var(--sans); font-size: 12px; color: var(--muted); margin: 10px 0 4px; font-weight: 600; display: flex; gap: 6px; align-items: center; }
.review-card h5 svg { width: 14px; height: 14px; }
.review-card p { margin: 0; font-size: 15px; line-height: 1.65; }
.confidential { background: var(--saffron-50); border-radius: 8px; padding: 8px 12px; margin-top: 10px; }
.form-details { border: 1px solid var(--line); border-radius: 12px; margin-top: 14px; }
.form-details summary { cursor: pointer; padding: 12px 16px; font-weight: 600; font-size: 14px; color: var(--lapis-700); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.form-details summary::-webkit-details-marker { display: none; }
.form-details summary::after { content: "+"; font-size: 18px; color: var(--muted); }
.form-details[open] summary::after { content: "–"; }
.form-details form, .form-details > p { padding: 0 16px 16px; display: grid; gap: 14px; }
.form-details > p { margin: 0; }
.form-details.danger summary { color: var(--pomegranate); }
.rec-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.timeline { list-style: none; padding: 0; margin: 0 0 18px; position: relative; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 15px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.tl { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 8px 0; position: relative; }
.tl-dot { width: 32px; height: 32px; border-radius: 50%; background: var(--white); border: 1px solid var(--line); display: grid; place-items: center; color: var(--lapis-700); z-index: 1; }
.tl-dot svg { width: 15px; height: 15px; }
.tl-approval .tl-dot, .tl-published .tl-dot { background: var(--saffron); border-color: var(--saffron); color: var(--lapis-950); }
.tl-rejected .tl-dot { color: var(--pomegranate); }
.tl p { margin: 5px 0 0; font-size: 14.5px; }
.tl-msg { background: var(--paper); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 14px; margin-top: 6px; font-size: 14.5px; line-height: 1.6; }
.tl time { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.comment-form { display: grid; gap: 10px; justify-items: start; }
.comment-form .field { width: 100%; }
.comment-form textarea { min-height: 90px; }
.approval-count { font-weight: 600; margin: 0 0 8px; }
.approver-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 6px; font-size: 14px; }
.approver-list li { display: flex; gap: 8px; align-items: center; }
.approver-list svg { width: 15px; height: 15px; color: var(--turquoise); }
.panel-approvals .btn { margin-top: 8px; }
.invite-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.invite-list li { display: flex; gap: 10px; align-items: center; justify-content: space-between; font-size: 13px; flex-wrap: wrap; }
.invite-list li > div { display: flex; flex-direction: column; color: var(--muted); min-width: 0; }
.invite-list strong { color: var(--ink); }

/* Announcements, team, email log */
.ann-form .tabs { margin: 18px 0; }
.ann-form .form-grid { margin-bottom: 4px; }
.ann-list, .team-list, .mail-list { list-style: none; padding: 0; margin: 0; }
.ann-list li { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 18px; align-items: start; }
.ann-date { font-size: 13px; color: var(--muted); padding-top: 2px; }
.ann-body .tag { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--pomegranate); }
.ann-body h4 { font-family: var(--serif); font-size: 19px; text-transform: none; letter-spacing: 0; color: var(--ink); margin: 4px 0 6px; font-weight: 500; }
.ann-body p { color: var(--ink-2); font-size: 14.5px; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ann-langs { display: flex; gap: 6px; margin-top: 8px; }
.ann-actions { display: flex; gap: 12px; align-items: center; }
.team-row { display: flex; gap: 16px; align-items: flex-start; }
.team-row .avatar { width: 48px; height: 48px; }
.team-info { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 14px; color: var(--ink-2); }
.team-info strong { font-family: var(--serif); font-size: 19px; font-weight: 500; color: var(--ink); }
.team-email { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.team-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.team-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.member-form { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line-2); display: grid; gap: 14px; }
.mail-list li { margin-bottom: 10px; }
.mail-list details.panel { padding: 0; margin: 0; }
.mail-list summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; padding: 14px 18px; cursor: pointer; list-style: none; }
.mail-list summary::-webkit-details-marker { display: none; }
.mail-list summary strong { font-weight: 600; font-size: 14.5px; }
.mail-list .mail-to { grid-column: 2; font-size: 12.5px; color: var(--muted); }
.mail-list summary time { grid-row: 1; grid-column: 3; font-size: 12px; color: var(--muted); }
.mail-list pre { margin: 0; padding: 16px 18px; border-top: 1px solid var(--line-2); white-space: pre-wrap; word-break: break-word; font: 13.5px/1.6 var(--sans); background: var(--paper); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.mail-list .callout { margin: 0 18px 12px; }

/* Author tracking & reviewer pages */
.track-head h2 { font-size: 28px; margin: 10px 0 4px; }
.stepper { list-style: none; padding: 0; margin: 24px 0 14px; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; counter-reset: st; }
.stepper li { counter-increment: st; position: relative; text-align: center; font-size: 13px; color: var(--muted); padding-top: 38px; }
.stepper li::before { content: counter(st); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--white); border: 1px solid var(--line); display: grid; place-items: center; font-weight: 700; font-size: 12px; z-index: 1; }
.stepper li::after { content: ""; position: absolute; top: 14px; inset-inline-start: 50%; width: 100%; height: 2px; background: var(--line); }
.stepper li:last-child::after { display: none; }
.stepper li.done { color: var(--ink); font-weight: 600; }
.stepper li.done::before { content: "✓"; background: var(--saffron); border-color: var(--saffron); color: var(--lapis-950); }
.stepper li.done::after { background: var(--saffron); }
.stepper li.skipped { text-decoration: line-through; opacity: .5; }
.track-help { color: var(--ink-2); margin: 0 0 16px; }
.lead-text { font-size: 17px; }
#revise-form, #rv-form { display: grid; gap: 16px; }

@media (max-width: 1100px) {
  .det-grid { grid-template-columns: 1fr; }
  .det-side { position: static; }
  .dash-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .portal-layout { grid-template-columns: 1fr; gap: 18px; }
  .portal-nav { position: static; display: flex; overflow-x: auto; gap: 6px; }
  .portal-nav a { white-space: nowrap; }
  .sub-row { grid-template-columns: 1fr; }
  .sub-side { align-items: flex-start; text-align: start; flex-direction: row; flex-wrap: wrap; }
  .kv > div { grid-template-columns: 1fr; gap: 2px; }
  .ann-list li { grid-template-columns: 1fr; gap: 8px; }
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
  .rec-options { grid-template-columns: 1fr; }
  .stepper li { font-size: 11.5px; }
  .team-row { flex-wrap: wrap; }
}
#revise-form > button, #review-form > button, .comment-form > button { justify-self: start; }
.dash-tools .search-field.compact { flex: 1 1 280px; max-width: 380px; }

/* Featured research from other journals */
.fr-note { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-size: 14.5px; margin: -14px 0 24px; max-width: 820px; }
.fr-note svg { width: 18px; height: 18px; flex: none; color: var(--saffron); margin-top: 2px; }
.fr-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fr-card { display: flex; flex-direction: column; gap: 8px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; color: var(--ink); transition: all .2s var(--ease); text-align: left; }
.fr-card:hover { border-color: var(--lapis-100); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.fr-meta { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--lapis-700); font-family: var(--sans); }
.fr-card h3 { font-family: var(--serif); font-size: 17px; line-height: 1.3; font-weight: 500; }
.fr-authors { font-size: 13px; color: var(--ink-2); }
.fr-source { font-size: 12.5px; color: var(--muted); }
.fr-foot { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.fr-link { display: inline-flex; gap: 4px; align-items: center; font-size: 12.5px; font-weight: 600; color: var(--lapis-700); }
.fr-link svg { width: 13px; height: 13px; }
@media (max-width: 1100px) { .fr-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .fr-grid { grid-template-columns: 1fr; } }

/* Profile photos */
.avatar.has-photo { background: var(--lapis-100); padding: 0; }
.avatar.has-photo::after { display: none; }
.avatar.has-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.avatar-xl { width: 96px !important; height: 96px !important; font-size: 30px; flex: none; }
.photo-row { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.portal-toolbar .btn svg { width: 16px; height: 16px; }
.team-actions .btn svg { width: 14px; height: 14px; }

/* Article catalogue & journal settings */
.art-list { list-style: none; padding: 0; margin: 0; }
.art-list li h4 { font-family: var(--serif); font-size: 18px; text-transform: none; letter-spacing: 0; color: var(--ink); margin: 8px 0 2px; font-weight: 500; }
.art-list .ann-actions { margin-top: 10px; flex-wrap: wrap; }
.author-row.two { grid-template-columns: 1fr 1fr auto; }
.checklist { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.checklist svg { width: 20px; height: 20px; flex: none; border-radius: 50%; padding: 3px; color: #fff; }
.checklist li.ok svg { background: var(--turquoise); }
.checklist li.todo svg { background: #c4a26a; }
.journal-info { display: grid; gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; margin: 18px 0 0; font-family: var(--sans); }
.journal-info > div { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; padding: 11px 16px; background: var(--white); font-size: 15px; }
.journal-info dt { color: var(--muted); }
.journal-info dd { margin: 0; }
.util-issn { font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .author-row.two, .journal-info > div { grid-template-columns: 1fr; } }
.journal-info { margin-bottom: 44px; }

/* Alert-list subscribers (portal settings) */
.subs-list { list-style: none; margin: 12px 0 0; padding: 0; max-height: 320px; overflow: auto; border: 1px solid var(--line, #e5e7eb); border-radius: 10px; }
.subs-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 14px; border-bottom: 1px solid var(--line, #e5e7eb); font-size: 14px; }
.subs-list li:last-child { border-bottom: 0; }

/* Homepage "Journal at a glance" */
.facts { margin: 4px 0 16px; }
.facts > div { display: grid; grid-template-columns: 112px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; line-height: 1.45; }
.facts > div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted, #6b7280); }
.facts dd { margin: 0; color: var(--ink); font-weight: 500; }

/* Editorial workflow (submission page) */
.wf-steps { list-style: none; margin: 4px 0 14px; padding: 0; display: grid; gap: 2px; }
.wf-steps li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); padding: 5px 0; position: relative; }
.wf-steps li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 11px; top: 28px; height: 10px; width: 2px; background: var(--line); }
.wf-n { width: 24px; height: 24px; flex: none; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--white); }
.wf-n svg { width: 13px; height: 13px; }
.wf-steps li.done { color: var(--ink-2); }
.wf-steps li.done .wf-n { background: var(--turquoise); border-color: var(--turquoise); color: #fff; }
.wf-steps li.current { color: var(--ink); font-weight: 600; }
.wf-steps li.current .wf-n { border-color: var(--lapis-700); color: var(--lapis-700); box-shadow: 0 0 0 3px var(--lapis-50); }
.wf-handler { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.panel-highlight { border-color: var(--saffron, #c9a45c); box-shadow: 0 0 0 3px rgba(233, 199, 127, .25); }
.checklist.compact { gap: 6px; }
.checklist.compact li { font-size: 13.5px; }
.checklist.compact svg { width: 18px; height: 18px; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.inline-form select { flex: 1; min-width: 160px; }
.action-badge { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; padding: 2px 9px; border-radius: 999px; background: #fdf3e2; color: #8a5a0b; }
.dash-next { display: flex; align-items: center; gap: 8px; margin: -6px 0 14px; }
.dash-next svg { width: 16px; height: 16px; }
.rv-due { display: flex; align-items: center; gap: 8px; margin: 10px 0; }
.rv-due svg { width: 18px; height: 18px; color: var(--pomegranate); }

/* AI-use disclosure (submission form) */
.ai-box { background: var(--lapis-50); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px 4px; margin-bottom: 18px; }
.ai-box .rec-options { display: flex; gap: 10px; flex-wrap: wrap; }

/* Homepage: about the journal and policy summaries */
.home-about-copy { max-width: 880px; }
.home-about-copy p { font-size: 17px; line-height: 1.75; color: var(--ink-2); }
.home-about-copy p.lead { font-family: var(--serif); font-size: 21px; color: var(--ink); line-height: 1.6; }
.policy-grid-4 { grid-template-columns: repeat(4, 1fr); margin-top: 36px; }
.policy-link { display: flex; flex-direction: column; color: inherit; text-decoration: none; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.policy-link:hover { border-color: var(--lapis-100); box-shadow: var(--shadow-sm); }
.policy-link p { flex: 1; font-size: 14.5px; }
.policy-link .more { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--lapis-700); margin-top: 10px; }
.policy-link .more svg { width: 14px; height: 14px; }
html[dir="rtl"] .policy-link .more svg { transform: scaleX(-1); }
.section-lede { max-width: 820px; font-size: 16.5px; line-height: 1.7; color: var(--ink-2); margin: -6px 0 26px; }
.section-lede-after { margin: 26px 0 0; font-size: 15.5px; color: var(--muted); }
@media (max-width: 1100px) { .policy-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .policy-grid-4 { grid-template-columns: 1fr; } }

/* Policy pages: sub-headings inside long sections */
.prose section h3 { font-family: var(--serif); font-size: 21px; margin: 28px 0 8px; color: var(--ink); }

/* Submission: author rows with ORCID, gate, checklist */
.author-row { position: relative; grid-template-columns: 1fr 1fr; padding: 18px 16px 8px; }
.author-row > span:empty { display: none; }
.author-row .remove { position: absolute; top: -14px; inset-inline-end: -14px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.author-row .remove svg { width: 15px; height: 15px; }
.gate-card { text-align: center; max-width: 640px; margin: 0 auto; padding: 36px 32px; }
.gate-card .ico { margin: 0 auto 14px; }
.gate-card .hero-actions { justify-content: center; margin-top: 20px; }
.decl-intro { margin: 22px 0 10px; }

/* Author account */
.acct-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; margin-bottom: 20px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.acct-head > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.acct-head strong { font-family: var(--serif); font-size: 20px; }
.acct-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.acct-list .sub-row { align-items: center; }
.acct-open { color: var(--muted); }
.acct-open svg { width: 18px; height: 18px; }
html[dir="rtl"] .acct-open svg { transform: scaleX(-1); }
.auth-panel { max-width: 560px; margin: 0 auto; }
.auth-panel h2 { font-size: 28px; margin-bottom: 6px; }
.auth-panel .btn-block { margin-top: 8px; }
.auth-links { text-align: center; margin: 16px 0 0; font-size: 14.5px; }
.news-card p { white-space: pre-line; }
.policy-grid-home { grid-template-columns: repeat(2, 1fr); margin-top: 36px; }
@media (max-width: 760px) { .policy-grid-home { grid-template-columns: 1fr; } }
.util-link { display: inline-flex; align-items: center; gap: 6px; }
.util-link svg { width: 13px; height: 13px; flex: none; color: var(--saffron-soft); }

/* Editorial Board: clickable profiles */
button.person { width: 100%; font: inherit; color: inherit; text-align: start; cursor: pointer; }
button.person:focus-visible { outline: 2px solid var(--lapis-700); outline-offset: 2px; }
.person .bio-link { display: inline-block; margin-top: 4px; font-size: 12.5px; font-weight: 600; color: var(--lapis-700); }
.person-dialog { max-width: 620px; width: calc(100% - 32px); border: 0; border-radius: 18px; padding: 32px 34px 30px; box-shadow: var(--shadow-lg, 0 20px 60px rgba(0,0,0,.25)); color: var(--ink); }
.person-dialog::backdrop { background: rgba(11, 26, 64, .55); }
.person-dialog-head { display: flex; gap: 20px; align-items: center; margin-bottom: 18px; }
.person-dialog-head .role { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--pomegranate); font-weight: 700; }
.person-dialog-head h2 { font-size: 28px; margin: 2px 0 4px; }
.person-dialog-head .aff { color: var(--muted); font-size: 14.5px; }
.person-bio { font-size: 16px; line-height: 1.75; color: var(--ink-2); margin: 0; }
.person-bio[dir="rtl"] { font-family: var(--rtl-font, inherit); }
.avatar.avatar-lg { width: 96px; height: 96px; font-size: 30px; flex: none; }
.dialog-close { position: absolute; top: 14px; inset-inline-end: 14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); display: grid; place-items: center; cursor: pointer; }
.dialog-close svg { width: 16px; height: 16px; }
.bio-fields { margin-top: 6px; }
@media (max-width: 560px) { .person-dialog-head { flex-direction: column; align-items: flex-start; } .person-dialog { padding: 26px 22px; } }
