/* نظام طراحی سامانهٔ همایش: رنگ، فاصله، اندازهٔ متن، گوشه، سایه و اجزای مشترک */

/* IRANSansX with the Dot4 dots (Persian digits) for the whole site; its Latin-digit cut for emails, links and English.
   The round-dot cut is kept in fonts/iransansx; point these URLs back there to switch. */
@font-face { font-family: "IRANSansXFaNum"; src: url("../fonts/iransansx-d4/IRANSansXFaNum-Thin.2093b273e0e2.woff2") format("woff2"); font-weight: 100; font-style: normal; font-display: swap; }
@font-face { font-family: "IRANSansXFaNum"; src: url("../fonts/iransansx-d4/IRANSansXFaNum-UltraLight.e137969937b6.woff2") format("woff2"); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: "IRANSansXFaNum"; src: url("../fonts/iransansx-d4/IRANSansXFaNum-Light.3db970c1f3c2.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "IRANSansXFaNum"; src: url("../fonts/iransansx-d4/IRANSansXFaNum-Regular.9ffe42c53b50.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IRANSansXFaNum"; src: url("../fonts/iransansx-d4/IRANSansXFaNum-Medium.781981b7e185.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IRANSansXFaNum"; src: url("../fonts/iransansx-d4/IRANSansXFaNum-DemiBold.fc7d1a46adae.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "IRANSansXFaNum"; src: url("../fonts/iransansx-d4/IRANSansXFaNum-Bold.c5f9bbe488e3.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "IRANSansXFaNum"; src: url("../fonts/iransansx-d4/IRANSansXFaNum-ExtraBold.66f81a782153.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "IRANSansXFaNum"; src: url("../fonts/iransansx-d4/IRANSansXFaNum-Black.34aeb85a34a8.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "IRANSansXFaNum"; src: url("../fonts/iransansx-d4/IRANSansXFaNum-ExtraBlack.ea867eaa2868.woff2") format("woff2"); font-weight: 950; font-style: normal; font-display: swap; }
@font-face { font-family: "IRANSansXFaNum"; src: url("../fonts/iransansx-d4/IRANSansXFaNum-Heavy.0d4392ffaa38.woff2") format("woff2"); font-weight: 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "IRANSansX"; src: url("../fonts/iransansx-d4/IRANSansX-Regular.2a21fbfeee5c.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IRANSansX"; src: url("../fonts/iransansx-d4/IRANSansX-Medium.909b1285612a.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IRANSansX"; src: url("../fonts/iransansx-d4/IRANSansX-Bold.06ccda6b9bab.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* Poster palette: navy tokens hold the maroon, teal tokens the olive green. */
  --navy-900: #3a0b0e;
  --navy-800: #521014;
  --navy-700: #6b1418;
  --navy-100: #f5e6e1;
  --teal-700: #56702a;
  --teal-600: #7a9a3a;
  --teal-100: #eef2dc;
  --stone-700: #4f4b45;
  --stone-500: #77716a;
  --stone-300: #c9c4bc;
  --stone-200: #e8e4dd;
  --stone-100: #f3f1ec;
  --sand-50: #faf6ec;
  --line: rgba(58, 11, 14, 0.09);
  --white: #ffffff;
  --text: #2b1c19;
  --muted: #5f5550;
  --danger-700: #a02c2c;
  --danger-100: #fbe9e7;
  --warning-700: #8a5a00;
  --warning-100: #fdf3dc;
  --success-700: #1d6b3a;
  --success-100: #e3f3e8;
  --info-700: #6b1418;
  --info-100: #f8ece8;

  --font: "IRANSansXFaNum", "IRANSansX", Tahoma, "Segoe UI", sans-serif;
  --font-latin: "IRANSansX", "IRANSansXFaNum", "Segoe UI", Tahoma, sans-serif;
  --fs-xs: 0.9rem;
  --fs-sm: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: 1.75rem;
  --fs-2xl: 2.25rem;
  --fs-3xl: 2.9rem;

  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4.5rem;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(58, 11, 14, 0.05), 0 2px 6px rgba(58, 11, 14, 0.04);
  --shadow: 0 4px 10px rgba(58, 11, 14, 0.05), 0 12px 28px rgba(58, 11, 14, 0.08);
  --shadow-lg: 0 10px 24px rgba(58, 11, 14, 0.08), 0 28px 56px rgba(58, 11, 14, 0.12);
  --focus: 0 0 0 4px rgba(122, 154, 58, 0.28);
  --container: 1180px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
button, input, select, textarea, optgroup { font-family: inherit; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 85% -120px, rgba(122, 154, 58, 0.08), transparent 60%),
    radial-gradient(900px 400px at 0% -80px, rgba(107, 20, 24, 0.07), transparent 60%),
    var(--sand-50);
  background-attachment: fixed;
  line-height: 1.85;
  direction: rtl;
  text-align: right;
}
img, svg { max-width: 100%; }
a { color: var(--teal-700); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--navy-700); }
h1, h2, h3, h4 { color: var(--navy-900); line-height: 1.45; margin: 0 0 var(--sp-3); font-weight: 700; }
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
p { margin: 0 0 var(--sp-3); }
section[id], [id="decision"], [id="messages"] { scroll-margin-top: 110px; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.nowrap { white-space: nowrap; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link { position: absolute; right: var(--sp-4); top: -60px; background: var(--navy-800); color: #fff; padding: var(--sp-2) var(--sp-4); border-radius: var(--radius-sm); z-index: 100; }
.skip-link:focus { top: var(--sp-3); }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--sp-4); }
.stack > * + * { margin-top: var(--sp-4); }
.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.row { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
.row-between { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; justify-content: space-between; }
.mt-0 { margin-top: 0; } .mt-4 { margin-top: var(--sp-4); } .mt-6 { margin-top: var(--sp-6); }
.mb-0 { margin-bottom: 0; } .mb-4 { margin-bottom: var(--sp-4); }
.icon { width: 1.2em; height: 1.2em; vertical-align: -0.2em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.account-menu { position: relative; }
.account-menu summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-3); border-radius: 12px; border: 1px solid var(--stone-200); background: var(--white);
  font-size: var(--fs-sm);
}
.account-menu summary { white-space: nowrap; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu[open] summary { border-color: var(--teal-600); }
.account-menu .menu {
  position: absolute; left: 0; top: calc(100% + 8px); min-width: 230px; background: var(--white);
  border: 1px solid var(--stone-200); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: var(--sp-2);
  z-index: 60;
}
.account-menu .menu a, .account-menu .menu button {
  display: flex; width: 100%; align-items: center; gap: var(--sp-2); padding: var(--sp-2) var(--sp-3); border-radius: 10px;
  color: var(--text); text-decoration: none; font: inherit; font-size: var(--fs-sm); background: none; border: 0; cursor: pointer; text-align: right;
}
.account-menu .menu a:hover, .account-menu .menu button:hover { background: var(--stone-100); }
.account-menu .menu hr { border: 0; border-top: 1px solid var(--stone-200); margin: var(--sp-1) 0; }
.count-pill {
  display: inline-grid; place-items: center; min-width: 1.5em; height: 1.5em; padding: 0 0.35em; border-radius: 999px;
  background: var(--teal-600); color: #fff; font-size: 0.8rem; line-height: 1;
}

/* Buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: 0.55rem 1.3rem; border-radius: 14px; border: 1px solid transparent; font: inherit; font-size: var(--fs-sm);
  font-weight: 700; cursor: pointer; text-decoration: none; line-height: 1.6; min-height: 46px; white-space: nowrap;
  transition: background 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.15s var(--ease), color 0.2s, border-color 0.2s;
}
.btn .icon { width: 1.15em; height: 1.15em; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-primary {
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900)); color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 6px 16px rgba(58, 11, 14, 0.22);
}
.btn-primary:hover { color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 10px 22px rgba(58, 11, 14, 0.28); }
.btn-accent {
  background: linear-gradient(160deg, var(--teal-600), var(--teal-700)); color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 6px 16px rgba(86, 112, 42, 0.25);
}
.btn-accent:hover { color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 10px 22px rgba(86, 112, 42, 0.3); }
.btn-ghost { background: var(--white); color: var(--navy-800); border-color: var(--stone-200); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { background: var(--white); border-color: var(--stone-300); color: var(--navy-900); box-shadow: var(--shadow); }
.btn-danger { background: #fff6f5; color: var(--danger-700); border-color: #f2cdc8; }
.btn-danger:hover { background: var(--danger-100); border-color: #e8b3ac; color: var(--danger-700); }
.btn-sm { min-height: 38px; padding: 0.3rem 0.95rem; font-size: var(--fs-xs); border-radius: 12px; }
.btn-lg { min-height: 54px; padding: 0.7rem 1.8rem; font-size: var(--fs-md); border-radius: 16px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-busy { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn.is-busy::after {
  content: ""; width: 1em; height: 1em; border-radius: 50%; border: 2px solid currentColor; border-top-color: transparent;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--teal-700); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }

/* Cards and surfaces */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--sp-5); box-shadow: var(--shadow-sm);
}
.card h2, .card h3 { margin-top: 0; }
.card-link { text-decoration: none; color: inherit; display: block; transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease); }
.card-link:hover { box-shadow: var(--shadow); transform: translateY(-3px); color: inherit; border-color: rgba(122, 154, 58, 0.25); }
.surface-muted { background: var(--stone-100); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-4); }
.section { padding: var(--sp-7) 0; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.section-head p { margin: 0; color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: var(--sp-2); color: var(--teal-700); font-weight: 700; font-size: var(--fs-sm); }
.page-head {
  margin: var(--sp-5) 0 var(--sp-5); padding: var(--sp-6) var(--sp-6); border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(230, 236, 245, 0.9), rgba(225, 240, 238, 0.75)); border: 1px solid var(--line);
}
.page-head > a:first-child { font-size: var(--fs-sm); text-decoration: none; }
.page-head p:last-child { margin-bottom: 0; }
.page-head h1 { margin-bottom: var(--sp-2); }
.page-head p { color: var(--muted); max-width: 70ch; }
.prose { max-width: 75ch; }
.prose h2 { font-size: var(--fs-lg); margin-top: var(--sp-5); }

/* Hero */
.hero { padding: var(--sp-6) 0 var(--sp-5); }
.hero-card {
  position: relative; overflow: hidden; border-radius: 28px; padding: var(--sp-7) var(--sp-6);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(122, 154, 58, 0.35), transparent 55%),
    linear-gradient(150deg, var(--navy-900), var(--navy-700));
  color: #fff; box-shadow: var(--shadow-lg);
}
.hero-card::after {
  content: ""; position: absolute; inset: auto -10% -45% -10%; height: 70%;
  background: repeating-linear-gradient(170deg, rgba(255,255,255,0.05) 0 18px, transparent 18px 46px);
  pointer-events: none;
}
.hero-card > * { position: relative; z-index: 1; }
.hero-card > .hero-logo { position: absolute; top: var(--sp-6); left: var(--sp-6); width: 120px; height: auto; opacity: 0.95; filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.35)); }
.hero h1, .hero .eyebrow { max-width: calc(100% - 150px); }
@media (max-width: 760px) {
  .hero-card > .hero-logo { position: static; display: block; width: 84px; margin-bottom: var(--sp-3); }
  .hero h1, .hero .eyebrow { max-width: none; }
}
.hero h1 { color: #fff; font-size: var(--fs-3xl); max-width: 22ch; margin-bottom: var(--sp-4); }
.hero-meta { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5); margin-bottom: var(--sp-5); color: #f2e4db; }
.hero-meta span { display: inline-flex; gap: var(--sp-2); align-items: center; }
.hero .eyebrow { color: #f2df3c; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.hero .btn-ghost { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.35); }
.hero .btn-ghost:hover { background: rgba(255,255,255,0.2); }
.hero .btn-primary { background: #fff; color: var(--navy-900); }
.hero .btn-primary:hover { background: var(--teal-100); color: var(--navy-900); }
/* Compact: each box is only as wide as its four cells. */
.countdowns { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }
.countdown {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.22); border-radius: var(--radius);
  padding: var(--sp-3); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); flex: 0 1 auto;
}
.countdown h2 { color: #fff; font-size: var(--fs-sm); margin-bottom: 2px; }
.countdown .target { color: #ecd8cc; font-size: var(--fs-xs); margin-bottom: var(--sp-2); }
.countdown .units { display: grid; grid-template-columns: repeat(4, 54px); gap: 6px; }
.countdown .unit { background: rgba(34, 5, 7, 0.35); border-radius: 10px; text-align: center; padding: 5px 0; }
.countdown .unit b { display: block; font-size: var(--fs-lg); line-height: 1.25; color: #fff; font-variant-numeric: tabular-nums; }
.countdown .unit span { font-size: var(--fs-xs); color: #ecd8cc; }
.countdown .done { font-weight: 700; color: #fff; margin: 0; }

/* Announcement bar */
.newsbar { padding: 0 0 var(--sp-2); }
.newsbar-inner { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 6px 6px 6px var(--sp-4); box-shadow: 0 6px 18px rgba(58, 11, 14, 0.06); font-size: var(--fs-sm); }
.newsbar-label { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; color: #fff; background: linear-gradient(150deg, var(--teal-600), var(--navy-700)); font-weight: 700; text-decoration: none; }
.newsbar-label:hover { color: #fff; }
.newsbar-label .icon { width: 16px; height: 16px; }
.newsbar-list { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 0; }
.newsbar-list li { display: none; }
.newsbar-list li.is-on { display: block; animation: news-in 0.45s var(--ease); }
.newsbar-list a { display: flex; align-items: center; gap: var(--sp-2); min-width: 0; color: var(--navy-900); text-decoration: none; }
.newsbar-list a:hover .newsbar-title { color: var(--teal-700); }
.newsbar-list time { flex: none; color: var(--muted); font-size: var(--fs-xs); padding-left: var(--sp-2); border-left: 1px solid var(--line); }
.newsbar-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.newsbar-new { flex: none; font-size: 0.72rem; font-weight: 700; color: var(--success-700); background: var(--success-100); border-radius: 999px; padding: 1px 8px; }
.newsbar-all { flex: none; font-size: var(--fs-xs); color: var(--teal-700); }
@keyframes news-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .newsbar-list li.is-on { animation: none; } }
@media (max-width: 640px) {
  .newsbar-inner { border-radius: var(--radius); padding: 6px 8px; gap: var(--sp-2); }
  .newsbar-label span, .newsbar-all { display: none; }
  .newsbar-label { padding: 6px; }
  .newsbar-list a { flex-wrap: wrap; row-gap: 0; }
  .newsbar-list time { border: 0; padding: 0; }
  .newsbar-title { white-space: normal; flex-basis: 100%; order: 3; font-size: var(--fs-xs); line-height: 1.6; }
}

/* Poster */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, 1fr) 260px; align-items: start; } .poster-card { position: sticky; top: 96px; } }
.poster-card { display: grid; gap: var(--sp-3); align-content: start; background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: var(--sp-3); box-shadow: var(--shadow); }
@media (max-width: 999px) { .poster-card { grid-template-columns: 130px minmax(0, 1fr); align-items: center; } }
.poster-thumb { position: relative; display: block; line-height: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 24px rgba(58, 11, 14, 0.22); cursor: zoom-in; }
.poster-thumb img { width: 100%; height: auto; transition: transform 0.35s var(--ease); }
.poster-thumb:hover img, .poster-thumb:focus-visible img { transform: scale(1.03); }
.poster-zoom { position: absolute; left: 8px; bottom: 8px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--navy-900); background: rgba(255, 255, 255, 0.92); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); }
.poster-zoom .icon { width: 17px; height: 17px; }
.poster-body h2 { font-size: var(--fs-md); margin-bottom: 2px; }
.poster-body p { margin: 0 0 var(--sp-2); }
.poster-body .btn { white-space: normal; text-align: center; }
.hero .poster-body .btn-ghost { color: var(--navy-900); background: var(--teal-100); border-color: rgba(122, 154, 58, 0.35); }
.hero .poster-body .btn-ghost:hover { color: var(--navy-900); background: #e2ebc8; }
.poster-meta { display: block; margin-top: 6px; font-size: 0.75rem; color: var(--muted); }

/* Lightbox */
dialog.lightbox { width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; padding: 0; border: 0; background: transparent; color: #fff; }
dialog.lightbox[open] { display: flex; flex-direction: column; }
dialog.lightbox::backdrop { background: rgba(30, 6, 8, 0.9); }
.lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-3); }
.lightbox-bar form { margin: 0; }
.lightbox-hint { font-size: var(--fs-xs); color: #ecd8cc; }
.lightbox-btn { color: #fff; background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.35); }
.lightbox-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.24); }
.lightbox-stage { flex: 1; min-height: 0; overflow: auto; display: grid; place-items: center; padding: 0 var(--sp-3) var(--sp-3); overscroll-behavior: contain; }
.lightbox-stage img { width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 80px); border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); cursor: zoom-in; }
.lightbox.is-zoomed .lightbox-stage { place-items: start center; }
.lightbox.is-zoomed .lightbox-stage img { max-width: none; max-height: none; width: 1600px; cursor: zoom-out; }
@media (max-width: 640px) { .lightbox-hint { display: none; } }


/* Badges and status */
.badge {
  display: inline-flex; align-items: center; gap: 0.4em; padding: 0.1rem 0.7rem; border-radius: 999px;
  font-size: var(--fs-xs); font-weight: 700; border: 1px solid rgba(0, 0, 0, 0.04); white-space: nowrap; line-height: 1.8;
}
.badge::before { content: ""; width: 0.5em; height: 0.5em; border-radius: 50%; background: currentColor; }
.badge-draft, .badge-not_issued, .badge-withdrawn, .badge-cancelled { background: var(--stone-100); color: var(--stone-700); border-color: var(--stone-200); }
.badge-submitted, .badge-initial_review, .badge-revised, .badge-pending, .badge-sending, .badge-pending_approval, .badge-assigned { background: var(--info-100); color: var(--info-700); }
.badge-under_review, .badge-approved_inactive, .badge-simulated { background: var(--warning-100); color: var(--warning-700); }
.badge-revision_required, .badge-failed, .badge-disabled, .badge-rejected { background: var(--danger-100); color: var(--danger-700); }
.badge-accepted, .badge-available, .badge-sent, .badge-completed, .badge-ok { background: var(--success-100); color: var(--success-700); }

/* Alerts */
.messages { list-style: none; padding: 0; margin: var(--sp-4) 0; display: grid; gap: var(--sp-2); }
.alert {
  display: flex; gap: var(--sp-3); align-items: flex-start; padding: var(--sp-3) var(--sp-4); border-radius: var(--radius);
  border: 1px solid transparent; border-inline-start-width: 4px; animation: fade-in 0.3s var(--ease); box-shadow: var(--shadow-sm);
}
.alert .icon { margin-top: 0.3em; }
.alert-success { background: #f1f9f3; color: var(--success-700); border-color: #cfe7d6; border-inline-start-color: var(--success-700); }
.alert-error { background: #fdf4f2; color: var(--danger-700); border-color: #f3d3ce; border-inline-start-color: var(--danger-700); }
.alert-warning { background: #fefaf0; color: var(--warning-700); border-color: #f3e4bd; border-inline-start-color: #c88a12; }
.alert-info { background: #fbf3ef; color: var(--info-700); border-color: #eed6cd; border-inline-start-color: var(--info-700); }
.alert ul { margin: 0; padding-right: var(--sp-4); }

/* Forms */
.form { display: grid; gap: var(--sp-4); }
.form-section { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-5) var(--sp-5) var(--sp-6); background: var(--white); box-shadow: var(--shadow-sm); }
.form-section > legend, .form-section > h2 { font-size: var(--fs-lg); font-weight: 700; color: var(--navy-900); padding: 0 var(--sp-2); }
.form-grid { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.form-grid .span-all { grid-column: 1 / -1; }
.field { display: grid; gap: var(--sp-1); align-content: start; }
.field > label, .field > .label { font-weight: 700; font-size: var(--fs-sm); color: var(--navy-900); }
.req { color: var(--danger-700); font-weight: 400; font-size: var(--fs-xs); }
.input {
  width: 100%; font: inherit; font-size: var(--fs-md); color: var(--text); background: #fcfbf9;
  border: 1.5px solid var(--stone-200); border-radius: 14px; padding: 0.5rem 0.9rem; min-height: 50px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.input::placeholder { color: #a39d95; }
textarea.input { min-height: 0; line-height: 1.9; resize: vertical; }
.input:hover { border-color: var(--stone-300); background: var(--white); }
.input:focus { border-color: var(--teal-600); box-shadow: var(--focus); outline: none; background: var(--white); }
.input[dir="ltr"] { text-align: left; }
.select {
  appearance: none; padding-left: 2.2rem;
  background: #fcfbf9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2377716a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat left 0.7rem center / 1rem 1rem;
}
.input.file { padding: 0.5rem; }
.file-picker { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); border: 1.5px dashed var(--stone-300); border-radius: 14px; padding: var(--sp-3); background: #fcfbf9; transition: border-color 0.2s, background 0.2s; }
.file-picker:hover { border-color: var(--teal-600); background: var(--white); }
.file-picker .file-button { display: none; }
.file-picker .file-name { font-size: var(--fs-sm); color: var(--muted); overflow-wrap: anywhere; }
.js .file-picker input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.js .file-picker .file-button { display: inline-flex; pointer-events: none; }
.js .file-picker:focus-within { border-color: var(--teal-600); box-shadow: var(--focus); }
.no-js .file-picker .file-name { display: none; }
.field.has-error .file-picker { border-color: var(--danger-700); }
.field-help { font-size: var(--fs-xs); color: var(--muted); line-height: 1.7; }
.field-errors { list-style: none; margin: 0; padding: 0; color: var(--danger-700); font-size: var(--fs-sm); }
.field-errors li { display: flex; gap: var(--sp-1); align-items: flex-start; }
.field-errors li::before { content: "⚠"; font-size: 0.9em; }
.field.has-error .input { border-color: var(--danger-700); background: #fffafa; }
.choice-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); }
.choice-list label, .check-row { display: inline-flex; gap: var(--sp-2); align-items: center; font-weight: 400; cursor: pointer; }
.choice-list.vertical { flex-direction: column; }
input[type="checkbox"], input[type="radio"] { width: 1.2rem; height: 1.2rem; accent-color: var(--teal-700); cursor: pointer; }
.confirm-box { border: 1.5px solid rgba(122, 154, 58, 0.45); background: linear-gradient(135deg, #f6f8ec, #eef2dc); border-radius: var(--radius); padding: var(--sp-4) var(--sp-5); }
.confirm-box label { display: flex; gap: var(--sp-3); align-items: flex-start; font-weight: 700; color: var(--navy-900); }
.confirm-box input { margin-top: 0.45em; flex: none; }
.form-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
.char-count { font-size: var(--fs-xs); color: var(--muted); }
.char-count.is-over { color: var(--danger-700); font-weight: 700; }
.file-current { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; font-size: var(--fs-sm); background: var(--stone-100); border-radius: 10px; padding: var(--sp-2) var(--sp-3); }
.order-input { max-width: 7rem; }
.coauthor { border: 1px dashed var(--stone-300); border-radius: var(--radius); padding: var(--sp-4); position: relative; }
.coauthor + .coauthor { margin-top: var(--sp-3); }
.coauthor-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--sp-3); }
.coauthor.is-removed { opacity: 0.55; }

/* Tables */
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-sm); }
table.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table th, .table td { padding: var(--sp-3) var(--sp-4); text-align: right; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { background: #f8f7f4; color: var(--muted); font-weight: 700; font-size: var(--fs-xs); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background 0.15s; }
.table tbody tr:hover { background: #fbf8f1; }
.table .actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.empty-state { text-align: center; padding: var(--sp-7) var(--sp-4); color: var(--muted); }
.empty-state .icon { width: 48px; height: 48px; color: var(--stone-300); margin-bottom: var(--sp-3); }
.empty-state h3 { color: var(--stone-700); }

/* Key/value lists */
dl.kv { display: grid; grid-template-columns: minmax(140px, max-content) 1fr; gap: var(--sp-2) var(--sp-5); margin: 0; }
dl.kv dt { color: var(--navy-900); font-size: var(--fs-sm); font-weight: 700; }
dl.kv dd { margin: 0; }

/* Stats */
.stat { position: relative; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-4) var(--sp-5); box-shadow: var(--shadow-sm); }
.stat::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--teal-600), var(--navy-700)); opacity: 0.8; }
.stat b { display: block; font-size: var(--fs-2xl); color: var(--navy-900); line-height: 1.3; }
.stat span { color: var(--muted); font-size: var(--fs-sm); }

/* Topics */
.topic-card { display: flex; gap: var(--sp-4); align-items: flex-start; }
.topic-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--teal-100); color: var(--teal-700); flex: none; }
.topic-icon .icon { width: 28px; height: 28px; }
.placeholder-card {
  border: 2px dashed var(--stone-300); border-radius: var(--radius-lg); padding: var(--sp-6); text-align: center; background: rgba(255,255,255,0.6);
}
.placeholder-card .icon { width: 44px; height: 44px; color: var(--teal-600); }

/* People */
.person { display: flex; gap: var(--sp-3); align-items: center; }
.avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-100); color: var(--navy-800); font-weight: 700; flex: none; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; right: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--stone-200); }
.timeline li { position: relative; padding: 0 var(--sp-6) var(--sp-5) 0; }
.timeline li::before { content: ""; position: absolute; right: 4px; top: 10px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 3px solid var(--teal-600); }
.timeline li.is-key::before { background: var(--teal-600); }
.timeline .when { color: var(--teal-700); font-weight: 700; font-size: var(--fs-sm); }

/* FAQ */
.faq details { background: var(--white); border: 1px solid var(--stone-200); border-radius: var(--radius); padding: var(--sp-3) var(--sp-4); }
.faq details + details { margin-top: var(--sp-3); }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy-900); list-style-position: inside; }
.faq details[open] summary { margin-bottom: var(--sp-2); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); counter-reset: step; }
.steps li { counter-increment: step; background: var(--white); border: 1px solid var(--stone-200); border-radius: var(--radius); padding: var(--sp-4); }
/* Steps: the number sits beside the title, so each card stays short. */
.steps { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--sp-3); }
.steps li { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: var(--sp-2); align-items: center; padding: var(--sp-3) var(--sp-4); }
.steps li p { grid-column: 1 / -1; margin-top: var(--sp-2); }
.steps-justify p, ul.justify li { text-align: justify; text-justify: inter-word; hyphens: auto; }
.committee-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); }
.committee-cta > div { flex: 1 1 260px; }
.steps li::before { content: counter(step, persian); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy-800); color: #fff; font-weight: 700; font-size: var(--fs-sm); }

/* Auth layout */
.auth-wrap { max-width: 520px; margin: var(--sp-6) auto var(--sp-8); }
.auth-wrap .card { padding: var(--sp-6); box-shadow: var(--shadow); }
.auth-wrap hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-5) 0 var(--sp-4); }
.auth-wrap .form-actions .btn-block { flex: 1 1 100%; }

/* Account layout */
.layout-side > * { min-width: 0; }
.layout-side { display: grid; grid-template-columns: 250px 1fr; gap: var(--sp-5); align-items: start; padding: var(--sp-5) 0 var(--sp-8); }
.side-nav { position: sticky; top: 100px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-3); box-shadow: var(--shadow-sm); max-height: calc(100vh - 120px); overflow-y: auto; }
.side-nav h2 { font-size: var(--fs-sm); color: var(--muted); margin: var(--sp-2) var(--sp-3); }
.side-nav ul { list-style: none; padding: 0; margin: 0 0 var(--sp-2); }
.side-nav a { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-2) var(--sp-3); border-radius: 10px; color: var(--stone-700); text-decoration: none; font-size: var(--fs-sm); }
.side-nav a { transition: background 0.15s, color 0.15s; }
.side-nav a:hover { background: var(--stone-100); color: var(--navy-900); }
.side-nav a[aria-current="page"] { background: linear-gradient(90deg, rgba(245,230,225,0.6), var(--navy-100)); color: var(--navy-900); font-weight: 700; box-shadow: inset -3px 0 0 var(--teal-600); }
.content-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.content-head h1 { margin: 0; font-size: var(--fs-xl); }

/* Pagination */
.pagination { display: flex; gap: var(--sp-2); justify-content: center; margin-top: var(--sp-5); align-items: center; }

/* Dialog */
dialog.confirm-dialog { border: 0; border-radius: var(--radius-lg); padding: var(--sp-5); max-width: 440px; width: calc(100% - 2rem); box-shadow: var(--shadow-lg); }
dialog.confirm-dialog::backdrop { background: rgba(58, 11, 14, 0.45); }

/* Footer: deep navy backdrop, soft glows and a frosted glass panel */
.site-footer {
  position: relative; overflow: hidden; isolation: isolate; color: #e7d2c8;
  margin-top: var(--sp-8); padding: var(--sp-7) 0 var(--sp-4);
  background: linear-gradient(170deg, #4a0e12 0%, var(--navy-900) 55%, #24060a 100%);
  border-radius: 36px 36px 0 0;
}
.footer-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.footer-glow::before, .footer-glow::after { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; }
.footer-glow::before { width: 460px; height: 460px; top: -180px; right: -120px; background: radial-gradient(circle, rgba(122, 154, 58, 0.85), transparent 70%); }
.footer-glow::after { width: 520px; height: 520px; bottom: -260px; left: -160px; background: radial-gradient(circle, rgba(190, 160, 20, 0.7), transparent 70%); }
.footer-glass {
  display: grid; grid-template-columns: minmax(240px, 1.1fr) 2fr; gap: var(--sp-6);
  padding: var(--sp-6); border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 24px 60px rgba(22, 3, 4, 0.35);
  backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
}
.footer-brand { display: flex; flex-direction: column; gap: var(--sp-3); align-items: flex-start; }
.footer-brand img { width: 96px; height: auto; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35)); }
.footer-brand h2 { color: #fff; font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.footer-brand p { margin: 0; color: #dcc4b9; font-size: var(--fs-sm); }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); }
.site-footer h3 { color: #fff; font-size: var(--fs-md); margin-bottom: var(--sp-3); display: flex; align-items: center; gap: var(--sp-2); }
.site-footer h3::before { content: ""; width: 18px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #f5e400, #a6c25a); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-2); }
.site-footer a { color: #f4e9e2; text-decoration: none; transition: color 0.2s, opacity 0.2s; }
.site-footer a:hover { color: #f2df3c; }
.footer-cols nav a { display: inline-flex; align-items: center; gap: var(--sp-2); padding: 2px 0; }
.footer-contact li { display: flex; gap: var(--sp-2); align-items: flex-start; font-size: var(--fs-sm); overflow-wrap: anywhere; }
.footer-contact .icon { color: #f2df3c; margin-top: 0.35em; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--sp-3);
  margin-top: var(--sp-5); padding: var(--sp-3) var(--sp-2) 0; font-size: var(--fs-xs); color: #f1e2d8;
}
.footer-links { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); align-items: center; }
.footer-links .admin-link {
  display: inline-flex; align-items: center; gap: var(--sp-1); padding: 0.15rem 0.8rem; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.06);
}
.footer-links .admin-link:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

/* Receipt */
.receipt { max-width: 760px; margin: 0 auto; }
.tracking { font-size: var(--fs-2xl); font-weight: 700; color: var(--navy-900); letter-spacing: 0.05em; }

/* Motion */
@keyframes fade-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.reveal { animation: fade-in 0.4s var(--ease) both; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Responsive */
.avatar-sm { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-100); color: var(--navy-800); }
.avatar-sm .icon { width: 18px; height: 18px; }
.account-menu .menu-head { display: grid; gap: 2px; padding: var(--sp-2) var(--sp-3) var(--sp-3); border-bottom: 1px solid var(--stone-200); margin-bottom: var(--sp-1); line-height: 1.6; }
.account-menu .menu-head strong { font-size: var(--fs-sm); color: var(--navy-900); }

@media (max-width: 1320px) {
}
@media (max-width: 1180px) {
  html { font-size: 15.5px; }
  .layout-side { grid-template-columns: 1fr; }
  .side-nav { position: static; }
  .side-nav ul { display: flex; flex-wrap: wrap; gap: var(--sp-1); }
}
@media (max-width: 640px) {
  .hero-card { padding: var(--sp-6) var(--sp-4); border-radius: 22px; }
  .hero h1 { font-size: var(--fs-2xl); }
  .section { padding: var(--sp-6) 0; }
  .page-head { padding: var(--sp-5) var(--sp-4); }
  h1 { font-size: var(--fs-xl); }
  h2 { font-size: var(--fs-lg); }
  .form-actions .btn { flex: 1 1 auto; }
  .site-footer { border-radius: 26px 26px 0 0; padding-top: var(--sp-5); margin-top: var(--sp-7); }
  .footer-glass { padding: var(--sp-5) var(--sp-4); border-radius: 22px; gap: var(--sp-5); }
  .footer-brand { flex-direction: row; align-items: center; }
  .footer-brand img { width: 72px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  dl.kv { grid-template-columns: 1fr; gap: 0 0; }
  dl.kv dd { margin-bottom: var(--sp-3); }
  .card, .form-section { padding: var(--sp-4); }
  .table-wrap.stack-mobile { border: 0; background: transparent; }
  .stack-mobile table, .stack-mobile thead, .stack-mobile tbody, .stack-mobile tr, .stack-mobile td { display: block; width: 100%; }
  .stack-mobile thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .stack-mobile tr { background: var(--white); border: 1px solid var(--stone-200); border-radius: var(--radius); margin-bottom: var(--sp-3); padding: var(--sp-2) 0; }
  .stack-mobile td { border: 0; padding: var(--sp-1) var(--sp-4); }
  .stack-mobile td::before { content: attr(data-label); display: block; color: var(--muted); font-size: var(--fs-xs); }
}

/* Management panel: work queues, tabs, paper header, decisions, messages; author progress tracker */
.queue-grid { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.queue-card {
  display: flex; flex-direction: column; gap: var(--sp-1); padding: var(--sp-4); border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--stone-200); border-top: 4px solid var(--info-700);
  text-decoration: none; color: var(--text); transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.queue-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.queue-card b { font-size: var(--fs-2xl); line-height: 1.2; color: var(--navy-900); }
.queue-card .queue-label { font-weight: 700; }
.queue-card .queue-hint { font-size: var(--fs-xs); color: var(--muted); line-height: 1.7; }
.queue-card.tone-warning { border-top-color: var(--warning-700); }
.queue-card.tone-danger { border-top-color: var(--danger-700); }
.queue-card.tone-success { border-top-color: var(--success-700); }
.count-pill.tone-danger { background: var(--danger-700); }
.count-pill.tone-warning { background: var(--warning-700); }
.count-pill.tone-success { background: var(--success-700); }
.count-pill.tone-info { background: var(--info-700); }

.tabs { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.tabs a {
  display: inline-flex; align-items: center; gap: var(--sp-1); padding: var(--sp-1) var(--sp-3); border-radius: 999px;
  border: 1px solid var(--stone-300); background: var(--white); color: var(--stone-700); text-decoration: none; font-size: var(--fs-sm);
}
.tabs a:hover { background: var(--stone-100); }
.tabs a[aria-current="page"] { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.filters summary { cursor: pointer; }
.sort-select { width: auto; min-height: 38px; padding-top: 0.2rem; padding-bottom: 0.2rem; font-size: var(--fs-sm); }
.inline-form { display: inline; margin-inline-start: var(--sp-2); }

.paper-no {
  display: inline-block; direction: ltr; unicode-bidi: isolate; font-weight: 700; color: var(--navy-900);
  background: var(--navy-100); border-radius: 8px; padding: 0 0.5rem; text-decoration: none; letter-spacing: 0.04em;
}
a.paper-no:hover { background: var(--teal-100); color: var(--navy-900); }
.paper-head { display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center; }
.paper-head-main { flex: 1 1 320px; min-width: 0; }
.paper-head-main h1 { font-size: var(--fs-xl); margin-bottom: var(--sp-2); }
.paper-number {
  display: grid; place-items: center; text-align: center; min-width: 130px; padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius); background: linear-gradient(150deg, var(--navy-900), var(--navy-700)); color: #fff;
}
.paper-number span { font-size: var(--fs-xs); color: #ecd8cc; }
.paper-number b { font-size: var(--fs-2xl); line-height: 1.3; letter-spacing: 0.06em; }
.paper-nav { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.next-steps .alert + .alert { margin-top: var(--sp-2); }

.decision-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); }
.decision-choice {
  display: flex; align-items: center; justify-content: center; gap: var(--sp-2); padding: var(--sp-3);
  border: 2px solid var(--stone-200); border-radius: var(--radius); cursor: pointer; font-weight: 700; background: var(--white);
  transition: border-color 0.2s, background 0.2s;
}
.decision-choice:hover { background: var(--stone-100); }
.decision-choice:focus-within { box-shadow: var(--focus); }
.decision-choice.choice-accepted:has(input:checked) { border-color: var(--success-700); background: var(--success-100); color: var(--success-700); }
.decision-choice.choice-revision_required:has(input:checked) { border-color: var(--warning-700); background: var(--warning-100); color: var(--warning-700); }
.decision-choice.choice-rejected:has(input:checked) { border-color: var(--danger-700); background: var(--danger-100); color: var(--danger-700); }

.thread { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }
.bubble { max-width: 85%; border-radius: var(--radius); padding: var(--sp-3) var(--sp-4); border: 1px solid var(--stone-200); }
.bubble.from-staff { background: var(--navy-100); justify-self: start; }
.bubble.from-author { background: var(--white); justify-self: end; }
.bubble-meta { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; margin-bottom: var(--sp-1); font-size: var(--fs-sm); }
.bubble-body { overflow-wrap: anywhere; }

.stepper { list-style: none; margin: 0; padding: var(--sp-4); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sp-2); background: var(--white); border: 1px solid var(--stone-200); border-radius: var(--radius-lg); }
.stepper li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--sp-1); position: relative; }
.stepper li + li::before { content: ""; position: absolute; top: 17px; right: calc(-50% + 22px); left: calc(50% + 22px); height: 2px; background: var(--stone-200); }
.stepper li.step-done + li::before, .stepper li.step-done + li.step-current::before { background: var(--teal-600); }
.step-dot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--stone-100); color: var(--stone-500); border: 2px solid var(--stone-200); }
.step-done .step-dot { background: var(--teal-600); border-color: var(--teal-600); color: #fff; }
.step-current .step-dot { background: var(--white); border-color: var(--navy-800); color: var(--navy-800); box-shadow: var(--focus); }
.step-label { font-size: var(--fs-sm); font-weight: 700; }
.step-todo .step-label { color: var(--muted); font-weight: 400; }
.step-note { font-size: var(--fs-xs); color: var(--teal-700); }

@media (max-width: 640px) {
  .decision-choices { grid-template-columns: 1fr; }
  .stepper { grid-template-columns: 1fr; justify-items: start; }
  .stepper li { flex-direction: row; text-align: right; }
  .stepper li + li::before { display: none; }
  .bubble { max-width: 100%; }
  .paper-number { min-width: 0; width: 100%; }
}


/* Panel search, statistics bars and bulk bar */
.side-search { display: flex; gap: var(--sp-2); margin: var(--sp-1) 0 var(--sp-3); }
.side-search .input { min-height: 40px; padding: 0.3rem 0.7rem; font-size: var(--fs-sm); }
.side-search .btn { min-height: 40px; padding: 0 0.7rem; }
.search-input { flex: 1 1 260px; }
.h-small { font-size: var(--fs-lg); }
.col-title { min-width: 280px; }
@media (max-width: 640px) { .col-title { min-width: 0; } }
.bulk-bar { background: linear-gradient(135deg, #fdfbf6, #f7f2e6); }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.bars li { display: grid; grid-template-columns: minmax(110px, 38%) 1fr auto; gap: var(--sp-3); align-items: center; font-size: var(--fs-sm); }
.bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 10px; background: var(--stone-100); border-radius: 999px; overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--teal-600), var(--navy-700)); }
.bar-value { font-weight: 700; color: var(--navy-900); min-width: 2ch; text-align: left; }
.spark { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(30, 1fr); gap: 3px; align-items: end; height: 120px; }
.spark li { height: 100%; display: flex; align-items: flex-end; }
.spark-bar { display: block; width: 100%; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--teal-600), var(--navy-700)); }
.w-0 { width: 0%; }
.w-1 { width: 1%; }
.w-2 { width: 2%; }
.w-3 { width: 3%; }
.w-4 { width: 4%; }
.w-5 { width: 5%; }
.w-6 { width: 6%; }
.w-7 { width: 7%; }
.w-8 { width: 8%; }
.w-9 { width: 9%; }
.w-10 { width: 10%; }
.w-11 { width: 11%; }
.w-12 { width: 12%; }
.w-13 { width: 13%; }
.w-14 { width: 14%; }
.w-15 { width: 15%; }
.w-16 { width: 16%; }
.w-17 { width: 17%; }
.w-18 { width: 18%; }
.w-19 { width: 19%; }
.w-20 { width: 20%; }
.w-21 { width: 21%; }
.w-22 { width: 22%; }
.w-23 { width: 23%; }
.w-24 { width: 24%; }
.w-25 { width: 25%; }
.w-26 { width: 26%; }
.w-27 { width: 27%; }
.w-28 { width: 28%; }
.w-29 { width: 29%; }
.w-30 { width: 30%; }
.w-31 { width: 31%; }
.w-32 { width: 32%; }
.w-33 { width: 33%; }
.w-34 { width: 34%; }
.w-35 { width: 35%; }
.w-36 { width: 36%; }
.w-37 { width: 37%; }
.w-38 { width: 38%; }
.w-39 { width: 39%; }
.w-40 { width: 40%; }
.w-41 { width: 41%; }
.w-42 { width: 42%; }
.w-43 { width: 43%; }
.w-44 { width: 44%; }
.w-45 { width: 45%; }
.w-46 { width: 46%; }
.w-47 { width: 47%; }
.w-48 { width: 48%; }
.w-49 { width: 49%; }
.w-50 { width: 50%; }
.w-51 { width: 51%; }
.w-52 { width: 52%; }
.w-53 { width: 53%; }
.w-54 { width: 54%; }
.w-55 { width: 55%; }
.w-56 { width: 56%; }
.w-57 { width: 57%; }
.w-58 { width: 58%; }
.w-59 { width: 59%; }
.w-60 { width: 60%; }
.w-61 { width: 61%; }
.w-62 { width: 62%; }
.w-63 { width: 63%; }
.w-64 { width: 64%; }
.w-65 { width: 65%; }
.w-66 { width: 66%; }
.w-67 { width: 67%; }
.w-68 { width: 68%; }
.w-69 { width: 69%; }
.w-70 { width: 70%; }
.w-71 { width: 71%; }
.w-72 { width: 72%; }
.w-73 { width: 73%; }
.w-74 { width: 74%; }
.w-75 { width: 75%; }
.w-76 { width: 76%; }
.w-77 { width: 77%; }
.w-78 { width: 78%; }
.w-79 { width: 79%; }
.w-80 { width: 80%; }
.w-81 { width: 81%; }
.w-82 { width: 82%; }
.w-83 { width: 83%; }
.w-84 { width: 84%; }
.w-85 { width: 85%; }
.w-86 { width: 86%; }
.w-87 { width: 87%; }
.w-88 { width: 88%; }
.w-89 { width: 89%; }
.w-90 { width: 90%; }
.w-91 { width: 91%; }
.w-92 { width: 92%; }
.w-93 { width: 93%; }
.w-94 { width: 94%; }
.w-95 { width: 95%; }
.w-96 { width: 96%; }
.w-97 { width: 97%; }
.w-98 { width: 98%; }
.w-99 { width: 99%; }
.w-100 { width: 100%; }
.h-0 { height: 2%; }
.h-1 { height: 2%; }
.h-2 { height: 2%; }
.h-3 { height: 3%; }
.h-4 { height: 4%; }
.h-5 { height: 5%; }
.h-6 { height: 6%; }
.h-7 { height: 7%; }
.h-8 { height: 8%; }
.h-9 { height: 9%; }
.h-10 { height: 10%; }
.h-11 { height: 11%; }
.h-12 { height: 12%; }
.h-13 { height: 13%; }
.h-14 { height: 14%; }
.h-15 { height: 15%; }
.h-16 { height: 16%; }
.h-17 { height: 17%; }
.h-18 { height: 18%; }
.h-19 { height: 19%; }
.h-20 { height: 20%; }
.h-21 { height: 21%; }
.h-22 { height: 22%; }
.h-23 { height: 23%; }
.h-24 { height: 24%; }
.h-25 { height: 25%; }
.h-26 { height: 26%; }
.h-27 { height: 27%; }
.h-28 { height: 28%; }
.h-29 { height: 29%; }
.h-30 { height: 30%; }
.h-31 { height: 31%; }
.h-32 { height: 32%; }
.h-33 { height: 33%; }
.h-34 { height: 34%; }
.h-35 { height: 35%; }
.h-36 { height: 36%; }
.h-37 { height: 37%; }
.h-38 { height: 38%; }
.h-39 { height: 39%; }
.h-40 { height: 40%; }
.h-41 { height: 41%; }
.h-42 { height: 42%; }
.h-43 { height: 43%; }
.h-44 { height: 44%; }
.h-45 { height: 45%; }
.h-46 { height: 46%; }
.h-47 { height: 47%; }
.h-48 { height: 48%; }
.h-49 { height: 49%; }
.h-50 { height: 50%; }
.h-51 { height: 51%; }
.h-52 { height: 52%; }
.h-53 { height: 53%; }
.h-54 { height: 54%; }
.h-55 { height: 55%; }
.h-56 { height: 56%; }
.h-57 { height: 57%; }
.h-58 { height: 58%; }
.h-59 { height: 59%; }
.h-60 { height: 60%; }
.h-61 { height: 61%; }
.h-62 { height: 62%; }
.h-63 { height: 63%; }
.h-64 { height: 64%; }
.h-65 { height: 65%; }
.h-66 { height: 66%; }
.h-67 { height: 67%; }
.h-68 { height: 68%; }
.h-69 { height: 69%; }
.h-70 { height: 70%; }
.h-71 { height: 71%; }
.h-72 { height: 72%; }
.h-73 { height: 73%; }
.h-74 { height: 74%; }
.h-75 { height: 75%; }
.h-76 { height: 76%; }
.h-77 { height: 77%; }
.h-78 { height: 78%; }
.h-79 { height: 79%; }
.h-80 { height: 80%; }
.h-81 { height: 81%; }
.h-82 { height: 82%; }
.h-83 { height: 83%; }
.h-84 { height: 84%; }
.h-85 { height: 85%; }
.h-86 { height: 86%; }
.h-87 { height: 87%; }
.h-88 { height: 88%; }
.h-89 { height: 89%; }
.h-90 { height: 90%; }
.h-91 { height: 91%; }
.h-92 { height: 92%; }
.h-93 { height: 93%; }
.h-94 { height: 94%; }
.h-95 { height: 95%; }
.h-96 { height: 96%; }
.h-97 { height: 97%; }
.h-98 { height: 98%; }
.h-99 { height: 99%; }
.h-100 { height: 100%; }

.var-list { list-style: none; padding: 0; margin: 0 0 var(--sp-4); display: grid; gap: var(--sp-1); grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); font-size: var(--fs-sm); }
.var-list code { background: var(--stone-100); border-radius: 6px; padding: 0 0.4rem; margin-inline-end: var(--sp-2); }

/* Print: receipts */
@media print {
  .brandband, .site-header, .site-footer, .no-print, .newsbar, .side-nav { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border-color: #999; }
}

/* Panel: plain-text email body */
.pre-text { white-space: pre-wrap; word-break: break-word; background: var(--stone-100); border: 1px solid var(--stone-200); border-radius: var(--radius); padding: var(--sp-4); font-size: var(--fs-sm); line-height: 1.9; }
.panel-content { min-width: 0; }


/* Large phones and tablets */
@media (max-width: 960px) {
  .footer-glass { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-contact { grid-column: 1 / -1; }
}
@media (max-width: 380px) {
  html { font-size: 15px; }
  .container { padding: 0 var(--sp-3); }
  .hero-card { padding: var(--sp-5) var(--sp-3); }
}

/* Auth pages */
.auth-wide { max-width: 860px; }
.auth-head { display: flex; gap: var(--sp-4); align-items: center; margin-bottom: var(--sp-5); padding-bottom: var(--sp-4); border-bottom: 1px solid var(--line); }
.auth-head h1 { font-size: var(--fs-xl); }
.auth-logo { width: 72px; height: auto; flex: none; }
.auth-logo-row { display: flex; justify-content: center; margin-bottom: var(--sp-3); }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
@media (max-width: 480px) {
  .auth-head { flex-direction: column; align-items: flex-start; gap: var(--sp-3); }
  .auth-wrap { margin-top: var(--sp-4); }
  .auth-wrap .card { padding: var(--sp-4); }
}

/* Read-only information grid (profile, corresponding author) */
dl.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--sp-3); margin: 0; }
dl.info-grid > div { background: var(--stone-100); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-3) var(--sp-4); min-width: 0; }
dl.info-grid dt { font-size: var(--fs-xs); color: var(--muted); margin-bottom: 2px; }
dl.info-grid dd { margin: 0; font-weight: 700; color: var(--navy-900); overflow-wrap: anywhere; }

/* Revision request shown to the author */
.revision-box {
  border-radius: var(--radius-lg); padding: var(--sp-5); border: 1.5px solid #efd59a; border-inline-start-width: 6px;
  border-inline-start-color: #c88a12; background: linear-gradient(135deg, #fffaf0, #fdf3dc);
}
.revision-box h2 { font-size: var(--fs-lg); color: var(--warning-700); display: flex; gap: var(--sp-2); align-items: center; }
.revision-box .prose { background: rgba(255, 255, 255, 0.7); border-radius: var(--radius); padding: var(--sp-3) var(--sp-4); margin-bottom: var(--sp-3); max-width: none; }

/* Panel: status management */
.anchor { display: block; position: relative; top: -110px; visibility: hidden; }
.status-panel { border-top: 4px solid var(--teal-600); }
.status-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: var(--sp-3); margin-bottom: var(--sp-4); }
.status-choice {
  display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-3) var(--sp-4); border-radius: var(--radius);
  border: 2px solid var(--stone-200); background: var(--white); cursor: pointer; font-weight: 700; transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.status-choice:hover { background: var(--stone-100); }
.status-choice:focus-within { box-shadow: var(--focus); }
.status-choice:has(input:checked) { box-shadow: var(--shadow-sm); }
.status-choice.choice-initial:has(input:checked), .status-choice.choice-review:has(input:checked) { border-color: var(--info-700); background: var(--info-100); color: var(--info-700); }
.status-choice.choice-review:has(input:checked) { border-color: var(--warning-700); background: var(--warning-100); color: var(--warning-700); }
.status-choice.choice-revision:has(input:checked) { border-color: #c88a12; background: #fff4dc; color: var(--warning-700); }
.status-choice.choice-reject:has(input:checked) { border-color: var(--danger-700); background: var(--danger-100); color: var(--danger-700); }
.status-choice.choice-accept:has(input:checked) { border-color: var(--success-700); background: var(--success-100); color: var(--success-700); }
.note-item { background: #fffdf6; border: 1px solid #f0e6c8; border-radius: var(--radius); padding: var(--sp-3) var(--sp-4); }
.note-item + .note-item { margin-top: var(--sp-2); }
.version-item { border: 1px solid var(--stone-200); border-radius: var(--radius); padding: var(--sp-3) var(--sp-4); background: var(--white); }
.version-item + .version-item { margin-top: var(--sp-2); }
.version-item summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }

/* Paper templates (format downloads). Cards wrap, so any number of buttons fits. */
.formats {
  margin: var(--sp-5) 0; padding: var(--sp-5); border-radius: 26px; border: 1px solid rgba(122, 154, 58, 0.22);
  background: linear-gradient(135deg, #f4efdc, #efe6d2);
  box-shadow: var(--shadow-sm);
}
.formats-head { display: flex; gap: var(--sp-3); align-items: center; margin-bottom: var(--sp-4); }
.formats-head h2 { font-size: var(--fs-xl); }
.formats-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex: none; color: #fff; background: linear-gradient(150deg, var(--teal-600), var(--navy-700)); box-shadow: 0 8px 18px rgba(86, 112, 42, 0.28); }
.formats-icon .icon { width: 26px; height: 26px; }
.format-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--sp-3); }
.format-card {
  display: flex; flex-direction: column; gap: var(--sp-1); min-width: 0; padding: var(--sp-4); border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); text-decoration: none; color: var(--text);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s;
}
a.format-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(122, 154, 58, 0.45); color: var(--text); }
.format-type { align-self: flex-start; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.04em; color: var(--teal-700); background: var(--teal-100); border-radius: 999px; padding: 0 0.7rem; }
.format-title { font-weight: 700; font-size: var(--fs-md); color: var(--navy-900); line-height: 1.6; overflow-wrap: anywhere; }
.format-desc { font-size: var(--fs-xs); color: var(--muted); line-height: 1.7; }
.format-action {
  margin-top: auto; padding-top: var(--sp-2); display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 42px; border-radius: 12px; font-weight: 700; font-size: var(--fs-sm); color: #fff;
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
}
.format-card.is-pending { opacity: 0.75; background: rgba(255, 255, 255, 0.7); border-style: dashed; }
.format-card.is-pending .format-type { color: var(--stone-700); background: var(--stone-200); }
.format-card.is-pending .format-action { background: var(--stone-200); color: var(--stone-700); font-weight: 400; font-size: var(--fs-xs); }
@media (max-width: 640px) {
  .formats { padding: var(--sp-4); border-radius: 20px; }
  .format-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
  .format-card { padding: var(--sp-3); }
  .format-title { font-size: var(--fs-sm); }
  .formats-head h2 { font-size: var(--fs-lg); }
}

/* Small screens: keep everything inside the viewport */
@media (max-width: 640px) {
  .table-wrap:not(.stack-mobile) { -webkit-overflow-scrolling: touch; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: var(--sp-1); scrollbar-width: thin; }
  .tabs a { flex: none; }
  .side-nav ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
  .side-nav a { white-space: nowrap; }
  .layout-side { padding-top: var(--sp-3); gap: var(--sp-4); }
  .content-head { margin-bottom: var(--sp-4); }
  .content-head .btn { flex: 1 1 auto; }
  .bars li { grid-template-columns: minmax(80px, 34%) 1fr auto; gap: var(--sp-2); }
  .file-current { font-size: var(--fs-xs); }
}
@media (max-width: 300px) {
  .footer-cols { grid-template-columns: 1fr; }
}

/* Panel numbers strip: one compact row that wraps on phones */
.overview { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 var(--sp-4); }
.ov {
  display: inline-flex; align-items: baseline; gap: 6px; padding: 4px 12px; border-radius: 999px; text-decoration: none;
  background: var(--white); border: 1px solid var(--stone-200); color: var(--stone-700); font-size: var(--fs-xs); line-height: 1.7;
  box-shadow: var(--shadow-sm); transition: border-color 0.15s, transform 0.15s;
}
a.ov:hover { border-color: var(--teal-600); color: var(--navy-900); transform: translateY(-1px); }
.ov b { font-size: var(--fs-md); color: var(--navy-900); font-variant-numeric: tabular-nums; }
.ov.tone-warning b { color: var(--warning-700); }
.ov.tone-danger b { color: var(--danger-700); }
.ov.tone-success b { color: var(--success-700); }
@media (max-width: 640px) {
  .overview { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  .ov { flex-direction: column; align-items: center; gap: 0; border-radius: 12px; padding: 4px 6px; text-align: center; }
}

/* Registration fee choices in the paper form */
.fee-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--sp-3); }
.fee-option {
  position: relative; display: flex; gap: var(--sp-2); align-items: flex-start; padding: var(--sp-3) var(--sp-4);
  border: 2px solid var(--stone-200); border-radius: var(--radius); background: var(--white); cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.fee-option:hover { background: var(--stone-100); }
.fee-option:focus-within { box-shadow: var(--focus); }
.fee-option:has(input:checked) { border-color: var(--teal-600); background: #f6f8ec; }
.fee-option input { margin-top: 0.4em; flex: none; }
.fee-body { display: grid; gap: 2px; min-width: 0; }
.fee-label { font-weight: 700; color: var(--navy-900); line-height: 1.6; }
.fee-amount { font-size: var(--fs-lg); font-weight: 700; color: var(--teal-700); }
.fee-note { font-size: var(--fs-xs); color: var(--muted); line-height: 1.6; }
.pay-box {
  display: flex; gap: var(--sp-3); align-items: flex-start; margin-top: var(--sp-4); padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius); background: #fbf3ef; border: 1px solid #eed6cd; color: var(--info-700); font-size: var(--fs-sm);
}
.pay-box .icon { margin-top: 0.3em; }
.pay-box p:last-child { margin-bottom: 0; }

/* Certificates on the author's paper page */
.cert-panel { border-top: 4px solid var(--success-700); }
.cert-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--sp-4); }
.cert-option { border: 1px solid var(--stone-200); border-radius: var(--radius); padding: var(--sp-4); background: #fbfcfb; display: flex; flex-direction: column; gap: var(--sp-2); }
.cert-option h3 { font-size: var(--fs-md); margin: 0; }
.cert-option .btn { align-self: flex-start; }
.request-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-2); }
.request-item { border: 1px solid var(--stone-200); border-radius: var(--radius); padding: var(--sp-3) var(--sp-4); background: var(--white); overflow-wrap: anywhere; }
.request-head { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }
.request-note { display: flex; gap: var(--sp-2); align-items: flex-start; margin-top: var(--sp-2); background: var(--success-100); color: var(--success-700); border-radius: 10px; padding: var(--sp-2) var(--sp-3); }
.badge-approved { background: var(--success-100); color: var(--success-700); }

/* Fee table on the guide page */
.fee-table { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--sp-3); }
.fee-table .fee-option { cursor: default; }

/* ===== Author area ===== */
.d-block { display: block; }

/* Paper cards ("my papers") */
.paper-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.paper-card {
  position: relative; display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-4) var(--sp-4) var(--sp-3);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  border-inline-start: 5px solid var(--info-700); transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease); min-width: 0;
}
.paper-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.paper-card.status-draft, .paper-card.status-withdrawn { border-inline-start-color: var(--stone-300); }
.paper-card.status-under_review { border-inline-start-color: #c88a12; }
.paper-card.status-revision_required { border-inline-start-color: var(--danger-700); }
.paper-card.status-accepted { border-inline-start-color: var(--success-700); }
.paper-card.status-rejected { border-inline-start-color: var(--stone-500); }
.paper-card-top { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; justify-content: space-between; }
.paper-card-title { font-weight: 700; color: var(--navy-900); text-decoration: none; line-height: 1.7; overflow-wrap: anywhere; }
.paper-card-title:hover { color: var(--teal-700); }
.paper-card-meta { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-4); margin: 0; font-size: var(--fs-xs); color: var(--muted); }
.paper-card-meta div { display: flex; gap: 6px; }
.paper-card-meta dt::after { content: ":"; }
.paper-card-meta dd { margin: 0; color: var(--text); }
.paper-card-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: auto; padding-top: var(--sp-2); border-top: 1px dashed var(--stone-200); }

/* Compact numbers on the author dashboard */
.mini-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: var(--sp-2); }
.ministat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-2) var(--sp-3); text-align: center; box-shadow: var(--shadow-sm); }
.ministat b { display: block; font-size: var(--fs-xl); line-height: 1.3; color: var(--navy-900); }
.ministat span { font-size: var(--fs-xs); color: var(--muted); }
.ministat.tone-info b { color: var(--info-700); }
.ministat.tone-warning b { color: var(--warning-700); }
.ministat.tone-success b { color: var(--success-700); }
.ministat.tone-danger b { color: var(--danger-700); }
.recent-row { display: flex; gap: var(--sp-2); align-items: center; justify-content: space-between; padding: var(--sp-2) 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.recent-row:last-child { border-bottom: 0; }
a.recent-row:hover .recent-title { color: var(--teal-700); }
.recent-title { min-width: 0; overflow-wrap: anywhere; line-height: 1.7; }
.recent-row.is-new .recent-title { font-weight: 700; }

/* ===== Paper submission form ===== */
.submit-hero {
  display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center; justify-content: space-between;
  padding: var(--sp-5); margin-bottom: var(--sp-4); border-radius: var(--radius-lg); color: #fff;
  background: radial-gradient(120% 160% at 100% 0%, rgba(122, 154, 58, 0.45), transparent 55%), linear-gradient(150deg, var(--navy-900), var(--navy-700));
  box-shadow: var(--shadow);
}
.submit-hero h1 { color: #fff; font-size: var(--fs-xl); margin: var(--sp-1) 0 var(--sp-2); }
.submit-hero p { color: #ecd8cc; font-size: var(--fs-sm); max-width: 60ch; }
.submit-hero .eyebrow { color: #f2df3c; }
.submit-hero-text { flex: 1 1 320px; min-width: 0; }
.submit-hero-meta {
  display: grid; justify-items: center; gap: 4px; padding: var(--sp-3) var(--sp-4); border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.22); text-align: center;
}
.submit-hero-meta b { font-size: var(--fs-xl); letter-spacing: 0.06em; }
.submit-hero-meta .small { color: #ecd8cc; }

.submit-progress { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-4); margin-bottom: var(--sp-4); box-shadow: var(--shadow-sm); }
.submit-progress h2 { font-size: var(--fs-md); }
.progress-track { height: 8px; border-radius: 999px; background: var(--stone-100); overflow: hidden; margin: var(--sp-3) 0; }
.progress-fill { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--teal-600), var(--success-700)); transition: width 0.3s var(--ease); }
.check-chips { list-style: none; padding: 0; margin: 0 0 var(--sp-2); display: flex; flex-wrap: wrap; gap: 6px; }
.check-chips a {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 12px; border-radius: 999px; font-size: var(--fs-xs); text-decoration: none;
  background: var(--stone-100); color: var(--stone-700); border: 1px solid var(--stone-200);
}
.check-chips a::before { content: ""; width: 0.6em; height: 0.6em; border-radius: 50%; border: 2px solid var(--stone-300); }
.check-chips .is-done a { background: var(--success-100); color: var(--success-700); border-color: #cfe7d6; }
.check-chips .is-done a::before { background: var(--success-700); border-color: var(--success-700); }

.submit-form { counter-reset: step; }
.submit-form > .step { position: relative; scroll-margin-top: 110px; }
.submit-form > .step > legend {
  display: flex; align-items: center; gap: var(--sp-3); float: right; width: 100%; padding: 0; margin: 0 0 var(--sp-3);
  font-size: var(--fs-lg);
}
.submit-form > .step > legend + * { clear: both; }
.submit-form > .step > legend::before {
  counter-increment: step; content: counter(step, persian); flex: none; display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 12px; font-size: var(--fs-md); color: #fff;
  background: linear-gradient(150deg, var(--teal-600), var(--navy-700)); box-shadow: 0 6px 14px rgba(86, 112, 42, 0.25);
}
.step-hint { font-size: var(--fs-sm); color: var(--muted); margin-bottom: var(--sp-4); }
.sub-head { font-size: var(--fs-md); margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px dashed var(--stone-200); }
.author-card {
  display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius); background: linear-gradient(135deg, #fbf6ec, #f3eedc); border: 1px solid var(--line);
}
.author-avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--navy-800); color: #fff; }
.author-main { flex: 1 1 220px; min-width: 0; line-height: 1.8; overflow-wrap: anywhere; }
.author-more { flex: 1 1 100%; }
.author-more summary { cursor: pointer; font-size: var(--fs-sm); color: var(--teal-700); font-weight: 700; }
.add-coauthor { margin-top: var(--sp-3); }
.submit-form .file-picker { min-height: 64px; border-radius: var(--radius); }

.submit-bar {
  position: sticky; bottom: 0; z-index: 30; display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; justify-content: space-between;
  padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: rgba(255, 255, 255, 0.92); border: 1px solid var(--line); border-bottom: 0;
  box-shadow: 0 -8px 24px rgba(58, 11, 14, 0.1); backdrop-filter: blur(12px) saturate(150%); -webkit-backdrop-filter: blur(12px) saturate(150%);
}
.submit-bar-status { color: var(--muted); }
.submit-bar-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

@media (max-width: 640px) {
  .submit-hero { padding: var(--sp-4); }
  .submit-hero-meta { width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--sp-2); text-align: right; }
  .submit-form > .step > legend { font-size: var(--fs-md); }
  .submit-form > .step > legend::before { width: 32px; height: 32px; border-radius: 10px; }
  .submit-bar { padding: var(--sp-2) var(--sp-3) calc(var(--sp-2) + env(safe-area-inset-bottom)); }
  .submit-bar-status { display: none; }
  .submit-bar-actions { width: 100%; }
  .submit-bar-actions .btn { flex: 1 1 0; min-height: 44px; padding-inline: var(--sp-2); font-size: var(--fs-xs); }
  .paper-list { grid-template-columns: 1fr; }
  .mini-stats { grid-template-columns: repeat(3, 1fr); }
  .ministat b { font-size: var(--fs-lg); }
}

/* Side menus on small screens: one compact, swipeable row instead of a tall card */
@media (max-width: 1180px) {
  .side-nav { display: flex; flex-wrap: nowrap; align-items: center; gap: var(--sp-1); overflow-x: auto; padding: var(--sp-2); scrollbar-width: none; max-height: none; }
  .side-nav::-webkit-scrollbar { display: none; }
  .side-nav h2 { display: none; }
  .side-nav ul { display: contents; }
  .side-nav li { flex: none; }
  .side-nav a { white-space: nowrap; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--stone-200); background: #fbfbfa; }
  .side-nav a[aria-current="page"] { background: var(--navy-800); color: #fff; border-color: var(--navy-800); box-shadow: none; }
  .side-nav a[aria-current="page"] .count-pill { background: #fff; color: var(--navy-800); }
  .side-nav .side-search { flex: 0 0 auto; margin: 0; }
  .side-nav .side-search .input { width: 150px; }
}

/* ===== Compact paper form ===== */
.en-text { direction: ltr; text-align: left; unicode-bidi: isolate; font-family: "Segoe UI", Tahoma, Arial, sans-serif; }
textarea.input[dir="ltr"], input.input[dir="ltr"] { font-family: "Segoe UI", Tahoma, Arial, sans-serif; font-size: var(--fs-sm); }
.submit-form { gap: var(--sp-3); }
.submit-form > .form-section { padding: var(--sp-4) var(--sp-5); }
.submit-form > .step > legend { font-size: var(--fs-md); margin-bottom: var(--sp-2); }
.submit-form > .step > legend::before { width: 32px; height: 32px; border-radius: 10px; font-size: var(--fs-sm); }
.submit-form .step-hint { font-size: var(--fs-xs); margin-bottom: var(--sp-3); }
.submit-form .field { gap: 2px; }
.submit-form .field-help { font-size: 0.82rem; }
.submit-form .input { min-height: 42px; padding: 0.35rem 0.75rem; font-size: var(--fs-sm); border-radius: 12px; }
.submit-form textarea.input { line-height: 1.8; }
.submit-hero { padding: var(--sp-4) var(--sp-5); margin-bottom: var(--sp-3); }
.submit-hero h1 { font-size: var(--fs-lg); margin: 0 0 var(--sp-1); }
.submit-progress { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); padding: var(--sp-3) var(--sp-4); margin-bottom: var(--sp-3); }
.submit-progress .progress-track { flex: 1 1 100%; margin: 0; height: 6px; }
.submit-progress .check-chips { margin: 0; }

.paper-meta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-3) var(--sp-4); align-items: end; margin-bottom: var(--sp-3); }
.seg { display: inline-flex; padding: 3px; gap: 3px; border-radius: 12px; background: var(--stone-100); border: 1px solid var(--stone-200); }
.seg-item { position: relative; cursor: pointer; }
.seg-item input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg-item span { display: block; padding: 6px 18px; border-radius: 9px; font-size: var(--fs-sm); font-weight: 700; color: var(--stone-700); }
.seg-item input:checked + span { background: var(--white); color: var(--navy-900); box-shadow: var(--shadow-sm); }
.seg-item input:focus-visible + span { box-shadow: var(--focus); }
.bi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3) var(--sp-4); }

.author-list { display: grid; gap: var(--sp-2); }
.author-row { border: 1px solid var(--stone-200); border-radius: var(--radius); padding: var(--sp-2) var(--sp-3) var(--sp-3); background: #fcfcfb; }
.author-row.is-removed { opacity: 0.5; }
.author-row:has(input[name="corresponding_author"]:checked) { border-color: rgba(122, 154, 58, 0.55); background: #f7f9ee; }
.author-row-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-4); margin-bottom: var(--sp-2); font-size: var(--fs-sm); }
.author-row-head strong { color: var(--navy-900); }
.corr-pick { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); cursor: pointer; color: var(--teal-700); font-weight: 700; }
.remove-author, .author-row-head [data-remove-row] { margin-inline-start: auto; color: var(--danger-700); }
.author-fields { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sp-2); }
.mini { display: grid; gap: 2px; min-width: 0; }
.mini > span { font-size: 0.8rem; color: var(--muted); font-weight: 700; }
.mini .input { min-height: 38px; }
.mini-error { font-style: normal; font-size: 0.8rem; color: var(--danger-700); }
.mini.has-error .input { border-color: var(--danger-700); }

.fmt-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: var(--sp-2); margin: 0 0 var(--sp-4); }
.fmt-chip { display: flex; gap: var(--sp-2); align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(122, 154, 58, 0.3); background: rgba(122, 154, 58, 0.06); color: var(--navy-900); text-decoration: none; min-width: 0; transition: border-color 0.15s, background 0.15s, transform 0.15s; }
.fmt-chip > .icon { flex: none; width: 20px; height: 20px; color: var(--teal-600); }
.fmt-chip > span { display: grid; min-width: 0; line-height: 1.5; }
.fmt-chip strong { font-size: var(--fs-sm); }
.fmt-chip small { font-size: 0.78rem; color: var(--muted); }
a.fmt-chip:hover { border-color: var(--teal-600); background: rgba(122, 154, 58, 0.12); transform: translateY(-1px); color: var(--navy-900); }
.fmt-chip.is-pending { border-style: dashed; border-color: var(--stone-200); background: transparent; opacity: 0.8; }
.fmt-chip.is-pending > .icon { color: var(--muted); }
@media (max-width: 560px) { .fmt-strip { grid-template-columns: 1fr 1fr; } .fmt-chip { padding: 8px 10px; } .fmt-chip small { display: none; } }
.kw-chips { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 6px; }
.kw-chips:empty { display: none; }
.kw-chip { font-size: 0.78rem; padding: 1px 10px; border-radius: 999px; background: var(--teal-100); color: var(--navy-900); border: 1px solid rgba(122, 154, 58, 0.25); }
.kw-warn { flex-basis: 100%; font-size: 0.78rem; color: var(--danger-700); }
.bulk-select { display: flex; align-items: center; gap: var(--sp-2); }
.bulk-grid { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: var(--sp-3); align-items: start; }
@media (max-width: 640px) { .bulk-grid { grid-template-columns: 1fr; } }
.file-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); }
.fpick { display: grid; gap: 4px; min-width: 0; }
.fpick-head { display: flex; flex-wrap: wrap; gap: 4px var(--sp-2); align-items: baseline; }
.fpick-head label { font-weight: 700; font-size: var(--fs-sm); color: var(--navy-900); }
.fpick-help { font-size: 0.8rem; color: var(--muted); }
.fpick .file-picker { padding: 6px var(--sp-2); gap: var(--sp-2); min-height: 48px; flex-wrap: nowrap; }
.fpick .file-name { font-size: var(--fs-xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.fpick .file-button { flex: none; }
.fpick-current { display: flex; flex-wrap: wrap; gap: 4px var(--sp-3); align-items: center; color: var(--success-700); }
.fpick.has-error .file-picker { border-color: var(--danger-700); }

.fee-options { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-2); }
.fee-option { padding: var(--sp-2) var(--sp-3); }
.fee-label { font-size: var(--fs-xs); line-height: 1.6; }
.fee-amount { font-size: var(--fs-md); }
.fee-note { font-size: 0.78rem; }
.pay-box { margin-top: var(--sp-3); padding: var(--sp-2) var(--sp-3); font-size: var(--fs-xs); }

@media (max-width: 1100px) {
  .author-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mini.wide { grid-column: 1 / -1; }
  .fee-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .submit-form > .form-section { padding: var(--sp-3); border-radius: 16px; }
  .submit-hero { padding: var(--sp-3) var(--sp-4); }
  .submit-hero p { display: none; }
  .submit-progress { padding: var(--sp-2) var(--sp-3); }
  .submit-progress .check-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .submit-progress .check-chips a { white-space: nowrap; }
  .submit-progress [data-progress-text] { display: none; }
  .paper-meta, .bi-grid, .file-grid { grid-template-columns: 1fr; }
  .bi-grid { gap: var(--sp-2); }
  .author-row { padding: var(--sp-2); }
  .fee-options { gap: 6px; }
  .fee-option { padding: 6px var(--sp-2); gap: 6px; }
  .fee-amount { font-size: var(--fs-sm); }
}

/* Faint watermark of the society's logo (vector) on a few page backgrounds */
.page-head, .auth-wrap .card, .submit-hero, .formats, .empty-state, .section-alt { position: relative; isolation: isolate; }
.page-head::after, .auth-wrap .card::after, .formats::after, .empty-state::after, .section-alt::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  background: url("../img/gsi-logo.f82566b010dc.svg") no-repeat center / contain; opacity: 0.045;
}
.page-head::after { width: 220px; height: 175px; left: var(--sp-5); top: 50%; transform: translateY(-50%) rotate(-8deg); }
.auth-wrap .card::after { width: 260px; height: 205px; left: -40px; bottom: -40px; opacity: 0.035; }
.formats::after { width: 200px; height: 158px; left: var(--sp-4); bottom: var(--sp-3); }
.empty-state::after { width: 180px; height: 142px; left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: 0.03; }
.section-alt { overflow-x: clip; }
.section-alt::after { width: 340px; height: 268px; left: -60px; top: 40px; opacity: 0.03; }
.auth-wrap .card { overflow: hidden; }
@media (max-width: 640px) {
  .page-head::after { width: 130px; height: 102px; left: var(--sp-2); }
  .section-alt::after { width: 220px; height: 173px; }
}

/* Designer credit */
.footer-credit { margin: var(--sp-3) 0 0; text-align: center; font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-weight: 300; font-size: 0.74rem; letter-spacing: 0.04em; color: #8f9db4; }
.footer-credit a { color: #c9d6ea; font-weight: 400; text-decoration: none; border-bottom: 1px solid rgba(201, 214, 234, 0.35); }
.footer-credit a:hover { color: #f2df3c; }

/* ===== Small interface helpers ===== */
.nav-progress { position: fixed; top: 0; right: 0; left: 0; height: 3px; z-index: 200; pointer-events: none; transform-origin: right; transform: scaleX(0); opacity: 0;
  background: linear-gradient(270deg, var(--teal-600), #a6c25a); }
.nav-progress.is-loading { opacity: 1; transform: scaleX(0.85); transition: transform 8s cubic-bezier(0.1, 0.8, 0.2, 1); }
.nav-progress.is-done { opacity: 0; transform: scaleX(1); transition: transform 0.2s, opacity 0.4s 0.2s; }
.to-top {
  position: fixed; left: var(--sp-4); bottom: var(--sp-5); z-index: 60; width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--stone-200);
  background: rgba(255, 255, 255, 0.92); box-shadow: var(--shadow); cursor: pointer; display: grid; place-items: center; color: var(--navy-800);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.to-top:hover { color: var(--teal-700); }
body:has(.submit-bar) .to-top { bottom: 96px; }
.messages .alert { position: relative; padding-inline-end: 2.6rem; transition: opacity 0.4s, transform 0.4s; }
.messages .alert.is-leaving { opacity: 0; transform: translateY(-6px); }
.msg-close { position: absolute; left: 8px; top: 6px; width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: inherit; font-size: 1.3rem; line-height: 1; cursor: pointer; opacity: 0.6; }
.msg-close:hover { opacity: 1; background: rgba(0, 0, 0, 0.05); }
.copyable { cursor: copy; }
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 210; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--navy-900); color: #fff; padding: 8px 18px; border-radius: 999px; font-size: var(--fs-sm); box-shadow: var(--shadow-lg);
  transition: opacity 0.25s, transform 0.25s;
}
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .nav-progress { display: none; } }

/* Home page: a tighter rhythm between sections */
.page-home .hero { padding: var(--sp-5) 0 var(--sp-3); }
.page-home .formats { margin: var(--sp-3) 0 var(--sp-5); }
.page-home .section { padding: var(--sp-6) 0; }
.page-home .section:not(.section-alt) + .section:not(.section-alt) { padding-top: var(--sp-2); }
.page-home .section-head { margin-bottom: var(--sp-4); }
.page-home .section h2 { margin-bottom: var(--sp-3); }
.page-home .grid { gap: var(--sp-4); }
.page-home .card { padding: var(--sp-4); }
.page-home .card-link.mb-4 { margin-bottom: var(--sp-3); }
.page-home .placeholder-card { padding: var(--sp-4); }
.page-home .placeholder-card .icon { width: 32px; height: 32px; }
.page-home .timeline li { padding-bottom: var(--sp-3); }
.page-home .org-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
@media (max-width: 640px) {
  .page-home .section { padding: var(--sp-5) 0; }
  .page-home .card { padding: var(--sp-3) var(--sp-4); }
}


/* 3: the label of a format that is not uploaded yet sits in the middle of its box */
.format-action { padding: var(--sp-2) var(--sp-3); text-align: center; line-height: 1.6; }

/* 8: home hero on phones, centred with matching buttons */
@media (max-width: 640px) {
  .hero-card { text-align: center; }
  .hero-card > .hero-logo { margin-inline: auto; }
  .hero h1, .hero .eyebrow { margin-inline: auto; }
  .hero-meta { flex-direction: column; align-items: center; gap: var(--sp-2); }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
  .hero-actions .btn { width: 100%; justify-content: center; white-space: normal; text-align: center; }
  .hero-actions .btn:nth-child(3) { grid-column: 1 / -1; justify-self: center; width: auto; min-width: 62%; }
  .countdowns { justify-content: center; }
  .countdown { text-align: right; }
}

/* 6: about page introduction */
.about-intro h2 { margin-bottom: var(--sp-3); }
.about-text { max-width: none; font-size: var(--fs-md); line-height: 2.1; text-align: justify; text-justify: inter-word; color: var(--text); }
.about-text p { margin: 0 0 var(--sp-3); }
.about-text p:last-child { margin-bottom: 0; }

/* 7: both certificate notes in the guide look the same */
.cert-notes { list-style: none; margin: var(--sp-4) 0 0; padding: 0; display: grid; gap: var(--sp-1); }
.cert-notes li { display: flex; gap: var(--sp-2); align-items: baseline; font-size: var(--fs-sm); line-height: 1.9; color: var(--text); }
.cert-notes li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--teal-600); transform: translateY(-2px); }

/* 5: organisers and secretaries as two groups */
.people-group + .people-group { margin-top: var(--sp-5); }
.people-group h3 { font-size: var(--fs-md); margin-bottom: var(--sp-3); color: var(--teal-700); }

/* 12: the faint society logo in more places */
.committee-cta, .about-intro, .contact-card, .guide-fees, .footer-glass, .dash-welcome { position: relative; isolation: isolate; overflow: hidden; }
.committee-cta::after, .about-intro::after, .contact-card::after, .guide-fees::after, .footer-glass::after, .side-nav::after,
.dash-welcome::after, .page-home .steps-section::after, .page-home .faq-section::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  background: url("../img/gsi-logo.f82566b010dc.svg") no-repeat center / contain; opacity: 0.04;
}
.committee-cta::after { width: 170px; height: 134px; left: 18%; top: 50%; transform: translateY(-50%) rotate(-6deg); }
.about-intro::after { width: 240px; height: 189px; left: -30px; bottom: -30px; opacity: 0.035; }
.contact-card::after { width: 210px; height: 166px; left: var(--sp-5); top: 50%; transform: translateY(-50%); opacity: 0.035; }
.guide-fees::after { width: 200px; height: 158px; left: var(--sp-4); bottom: var(--sp-4); opacity: 0.035; }
.footer-glass::after { width: 300px; height: 236px; left: -40px; bottom: -50px; opacity: 0.05; filter: invert(1); }
.side-nav { isolation: isolate; }
@media (max-width: 1180px) { .side-nav::after { display: none; } }  /* the strip of pills on phones scrolls sideways */
.side-nav::after { width: 150px; height: 118px; left: -20px; bottom: -16px; opacity: 0.045; }
.dash-welcome::after { width: 160px; height: 126px; left: var(--sp-3); top: 50%; transform: translateY(-50%); opacity: 0.04; }
.page-home .steps-section, .page-home .faq-section { position: relative; isolation: isolate; overflow-x: clip; }
.page-home .steps-section::after { width: 300px; height: 236px; right: -50px; bottom: 10px; opacity: 0.03; }
.page-home .faq-section::after { width: 240px; height: 189px; left: -40px; top: 20px; opacity: 0.03; }
@media (max-width: 640px) {
  .committee-cta::after { left: auto; right: -20px; }
  .page-home .steps-section::after { width: 200px; height: 158px; }
}


/* ===== Header: brand band with the title, then a sticky glass menu bar ===== */
@font-face { font-family: "Vazirmatn"; src: url("../fonts/vazirmatn/Vazirmatn-Medium.dd2193b32cbe.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/vazirmatn/Vazirmatn-SemiBold.9260c1927872.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/vazirmatn/Vazirmatn-Bold.7958481fe611.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
:root { --font-head: "IRANSansXFaNum", "IRANSansX", Tahoma, sans-serif; }  /* Dot4 everywhere, headings included */

.brandband {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(70% 220% at 100% 0%, rgba(122, 154, 58, 0.55), transparent 60%),
    radial-gradient(60% 200% at 0% 100%, rgba(122, 154, 58, 0.25), transparent 55%),
    linear-gradient(120deg, #2c070a 0%, #4a0e12 50%, #5b1a12 100%);
}
.brandband::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(168deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 24px);
}
.brandband::after {
  content: ""; position: absolute; right: 0; left: 0; bottom: 0; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(245, 228, 0, 0.9), transparent);
}
.brandband-inner { position: relative; display: flex; justify-content: center; padding: 14px 0; }
.brandband-link { padding: 0 var(--sp-2); display: inline-flex; align-items: center; justify-content: center; gap: 14px; max-width: 100%; min-width: 0; color: #fff; text-decoration: none; }
.brandband-link:hover { color: #fff; }
.brandband-link:hover .brandband-title { color: #fff3a8; }
.brandband-logo { width: 46px; height: auto; flex: none; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.35)); }
.brandband-title {
  display: block; min-width: 0; overflow: hidden; white-space: nowrap; line-height: 1.6;
  font-family: var(--font-head); font-weight: 700; font-size: 1.32rem; letter-spacing: -0.01em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3); transition: color 0.2s;
}

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 249, 246, 0.82);
  backdrop-filter: saturate(170%) blur(16px); -webkit-backdrop-filter: saturate(170%) blur(16px);
  border-bottom: 1px solid rgba(82, 16, 20, 0.08);
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.site-header.is-scrolled { background: rgba(255, 255, 255, 0.93); box-shadow: 0 10px 28px rgba(58, 11, 14, 0.09); }
.site-header .bar { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--sp-3); min-height: 62px; }
.bar-start { grid-column: 1; display: flex; align-items: center; gap: var(--sp-2); min-width: 0; }
.main-nav { grid-column: 2; font-family: var(--font-head); }
.header-actions { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: var(--sp-2); }
.bar-mark { display: inline-flex; opacity: 0; transform: translateY(-4px) scale(0.92); pointer-events: none; transition: opacity 0.25s var(--ease), transform 0.25s var(--ease); }
.bar-mark img { display: block; width: 42px; height: auto; }
.site-header.is-scrolled .bar-mark { opacity: 1; transform: none; pointer-events: auto; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.main-nav a {
  position: relative; display: block; padding: 8px 12px; border-radius: 10px; white-space: nowrap;
  color: #4a3430; text-decoration: none; font-size: 0.84rem; font-weight: 500; transition: color 0.2s, background 0.2s;
}
.main-nav a::after {
  content: ""; position: absolute; right: 12px; left: 12px; bottom: 2px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--teal-600), #c9b800); transform: scaleX(0); transition: transform 0.25s var(--ease);
}
.main-nav a:hover { color: var(--navy-900); background: rgba(82, 16, 20, 0.05); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--navy-900); font-weight: 700; }
.main-nav .nav-cta, .nav-toggle, .lbl-short { display: none; }

.login-btn { font-family: var(--font-head); font-weight: 600; min-height: 42px; padding: 0.35rem 1.1rem; border-radius: 12px; }
.account-menu summary { font-family: var(--font-head); font-weight: 500; min-height: 42px; }
.account-menu .menu { font-family: var(--font-head); }
.account-menu .menu a, .account-menu .menu button { font-weight: 500; }
.newsbar { padding-top: var(--sp-3); }

@media (max-width: 1280px) {
  .main-nav a { padding: 8px 9px; font-size: 0.8rem; }
  .main-nav a::after { right: 9px; left: 9px; }
}
@keyframes nav-drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (max-width: 1180px) {
  .site-header .bar { grid-template-columns: 1fr auto 1fr; min-height: 60px; }
  .nav-toggle {
    display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 12px; cursor: pointer;
    border: 1px solid rgba(82, 16, 20, 0.12); background: var(--white); color: var(--navy-900); box-shadow: var(--shadow-sm);
  }
  .nav-toggle .icon { width: 22px; height: 22px; }
  .nav-toggle .icon-close, .nav-toggle[aria-expanded="true"] .icon-open { display: none; }
  .nav-toggle[aria-expanded="true"] .icon-close { display: inline; }
  .nav-toggle[aria-expanded="true"] { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
  .bar-mark { position: absolute; left: 50%; top: 50%; opacity: 1; transform: translate(-50%, -50%); pointer-events: auto; }
  .site-header.is-scrolled .bar-mark { transform: translate(-50%, -50%); }
  .bar-mark img { width: 40px; }
  .main-nav {
    grid-column: 1 / -1; grid-row: 1;  /* span the whole bar so the card is full width */
    position: absolute; top: calc(100% + 8px); right: 0; left: 0; z-index: 60;
    background: var(--white); border: 1px solid var(--stone-200); border-radius: 18px; box-shadow: var(--shadow-lg);
    padding: 10px; max-height: calc(100vh - 140px); overflow-y: auto;
  }
  .js .main-nav { display: none; }
  .js .main-nav.is-open { display: block; animation: nav-drop 0.22s var(--ease); }
  .main-nav ul { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .main-nav a { padding: 12px 8px; text-align: center; font-size: 0.9rem; border-radius: 12px; background: var(--stone-100); color: var(--navy-900); }
  .main-nav a::after { display: none; }
  .main-nav a:hover { background: var(--navy-100); }
  .main-nav a[aria-current="page"] { background: var(--navy-800); color: #fff; }
  .main-nav .nav-cta {
    display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; padding: 12px;
    border-radius: 12px; color: #fff; font-weight: 700; text-decoration: none;
    background: linear-gradient(160deg, var(--teal-600), var(--navy-700));
  }
  .nav-cta:hover { color: #fff; }
  .account-menu { position: static; }
  .account-menu .menu { position: absolute; top: calc(100% + 8px); left: 0; right: auto; min-width: 270px; }
  .header-actions .btn-label { display: none; }
  .account-menu summary { padding: 4px 8px; }
}
@media (max-width: 640px) {
  .brandband-inner { padding: 9px 0; }
  .brandband-logo { display: none; }
  .brandband-title { font-size: 1.02rem; }
  .site-header .bar { min-height: 58px; }
  .lbl-long { display: none; }
  .lbl-short { display: inline; }
  .login-btn { min-height: 44px; padding-inline: 0.9rem; }
  .account-menu .menu { left: 0; right: 0; min-width: 0; }
}


/* LTR text keeps Latin digits: emails, web addresses, English titles and abstracts */
.ltr, .en-text, [lang="en"], input[type="email"], input[type="url"], .footer-credit { font-family: var(--font-latin); }
.footer-credit { font-weight: 300; }
strong, b { font-weight: 700; }

/* Home: the introduction is justified */
.about-copy p { text-align: justify; text-justify: inter-word; }

/* Organisers and secretaries: compact cards that do not stretch across the row */
.page-home .org-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 250px)); justify-content: start; gap: var(--sp-3); }
.page-home .people-group .card { padding: var(--sp-3) var(--sp-4); }
.page-home .people-group .card h3 { font-size: var(--fs-sm); }
.page-home .people-group .person { gap: var(--sp-2); }
.page-home .people-group .avatar { width: 38px; height: 38px; }
@media (max-width: 640px) { .page-home .org-grid { grid-template-columns: 1fr; gap: var(--sp-2); } .page-home .people-group .card { padding: var(--sp-3); } }

/* Home: scientific committee band */
.committee-band {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--sp-4) var(--sp-6);
  padding: var(--sp-5) var(--sp-6); border-radius: 24px;
  background:
    radial-gradient(80% 140% at 100% 0%, rgba(122, 154, 58, 0.55), transparent 60%),
    linear-gradient(135deg, #2c070a, var(--navy-800) 55%, #5b1a12);
  box-shadow: var(--shadow-lg);
}
.committee-band::after {
  content: ""; position: absolute; z-index: -1; width: 230px; height: 181px; left: 30%; bottom: -60px; opacity: 0.07;
  background: url("../img/gsi-logo.f82566b010dc.svg") no-repeat center / contain; filter: invert(1); pointer-events: none;
}
.committee-band-head { display: flex; align-items: center; gap: var(--sp-3); }
.committee-band-icon { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2); }
.committee-band-icon .icon { width: 26px; height: 26px; }
.committee-band h2 { color: #fff; margin: 0; font-size: var(--fs-lg); }
.committee-band p { margin: 2px 0 0; color: #ecd8cc; font-size: var(--fs-xs); }
.committee-chips { grid-column: 1; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.committee-chips li { font-size: 0.8rem; padding: 3px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18); color: #f8eee8; white-space: nowrap; }
.committee-chips li.more { background: transparent; border-style: dashed; color: #f2df3c; }
.committee-band .btn { grid-column: 2; grid-row: 1 / span 2; background: #fff; color: var(--navy-900); }
.committee-band .btn:hover { background: var(--teal-100); color: var(--navy-900); }
@media (max-width: 760px) {
  .committee-band { grid-template-columns: 1fr; padding: var(--sp-5) var(--sp-4); text-align: center; }
  .committee-band-head { flex-direction: column; text-align: center; gap: var(--sp-2); }
  .committee-chips { justify-content: center; }
  .committee-band .btn { grid-column: 1; grid-row: auto; width: 100%; }
}

/* Steps: tighter cards */
.steps { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.steps li { padding: 10px 14px 12px; column-gap: 8px; border-radius: 14px; }
.steps li::before { width: 26px; height: 26px; font-size: 0.8rem; }
.steps li strong { font-size: var(--fs-sm); line-height: 1.6; }
.steps li p { margin-top: 4px; font-size: 0.86rem; line-height: 1.8; }

/* ===== IRANSansX weight scale: a clear hierarchy from Light to ExtraBlack ===== */
h1 { font-weight: 900; letter-spacing: -0.01em; }
h2 { font-weight: 800; letter-spacing: -0.005em; }
h3, h4 { font-weight: 700; }
.hero h1 { font-weight: 950; font-size: clamp(1.9rem, 3.3vw, 2.65rem); max-width: 15em; line-height: 1.5; }
.hero-meta { font-weight: 500; }
.page-head p, .section-head p, .formats-head p, .committee-band p { font-weight: 300; }
.eyebrow { font-weight: 600; }
.btn { font-weight: 600; }
.badge { font-weight: 500; }
.field > label, .field > .label, .fpick-head label, .mini > span { font-weight: 600; }
.table th { font-weight: 600; }
.stat b, .ministat b { font-weight: 900; }
.countdown h2 { font-weight: 700; }
.countdown .unit b { font-weight: 950; }
.countdown .unit span, .countdown .target { font-weight: 300; }
.footer-cols h3, .site-footer h2 { font-weight: 800; }
.footer-cols a, .footer-bottom { font-weight: 300; }
.format-title { font-weight: 700; }
.format-type, .newsbar-label { font-weight: 600; }
.steps li strong { font-weight: 800; }
.kw-chip, .committee-chips li { font-weight: 500; }
.steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps li { align-content: start; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }


/* One-line announcements: the latest two at the top, each in its own colour */
.news-teal { --nc: #1f6e69; --nb: rgba(122, 154, 58, 0.08); }
.news-navy { --nc: #1c3050; --nb: rgba(28, 48, 80, 0.07); }
.news-crimson { --nc: #8b1e2d; --nb: rgba(139, 30, 45, 0.07); }
.news-amber { --nc: #a35409; --nb: rgba(213, 125, 20, 0.1); }
.news-green { --nc: #2e6b33; --nb: rgba(46, 125, 50, 0.08); }
.news-gray { --nc: #4b5563; --nb: rgba(75, 85, 99, 0.07); }
.newsbar-inner { border-radius: 18px; align-items: stretch; padding: 6px; }
.newsbar-label { align-self: center; }
.newsbar-list { display: grid; gap: 4px; }
.newsbar-list li, .news-list li { display: flex; }
.news-line {
  align-items: center; gap: var(--sp-2); min-width: 0; padding: 4px 12px; border-radius: 10px;
  background: var(--nb, transparent); border-inline-start: 3px solid var(--nc, var(--teal-600));
}
.news-line time { flex: none; color: var(--muted); font-size: var(--fs-xs); }
.news-line .newsbar-title { color: var(--nc, var(--navy-900)); font-weight: 700; }
.news-list { list-style: none; margin: 0 0 var(--sp-5); padding: 0; display: grid; gap: var(--sp-2); }
.news-list .news-line { padding: 12px 16px; background: var(--white); box-shadow: var(--shadow-sm); border: 1px solid var(--line); border-inline-start: 4px solid var(--nc); }
@media (max-width: 640px) {
  .newsbar-inner { border-radius: var(--radius); }
  .news-line { flex-wrap: wrap; row-gap: 0; padding: 4px 10px; }
  .news-line .newsbar-title { white-space: normal; flex-basis: 100%; order: 3; font-size: var(--fs-xs); line-height: 1.7; }
}


/* Indexing seals in the footer: the ISC frame and the CIVILICA badge, the same size side by side */
.footer-seals { margin-top: var(--sp-5); text-align: center; }
.footer-seals h3 { color: #fff; font-size: var(--fs-sm); margin-bottom: var(--sp-3); }
.seal-row { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3); }
.seal-card { width: 160px; height: 150px; background: #fff; border-radius: 12px; overflow: hidden; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); }
.seal-card iframe { border: 0; width: 160px; height: 150px; display: block; }
.seal-civilica { align-content: center; justify-items: center; gap: 2px; font-family: Tahoma, sans-serif; }
.seal-civilica img { width: 132px; height: 79px; display: block; }
.seal-caption { color: #761313; font-size: 14px; font-weight: bold; line-height: 1.5; }
.seal-sub { color: #000; font-size: 9px; line-height: 1.4; direction: ltr; }

/* Poster downloads */
.poster-downloads { list-style: none; margin: var(--sp-2) 0 0; padding: 0; display: grid; gap: 6px; }
.poster-downloads a { display: flex; align-items: center; gap: var(--sp-2); padding: 8px 10px; border-radius: 12px; border: 1px solid rgba(122, 154, 58, 0.3); background: rgba(122, 154, 58, 0.06); color: var(--navy-900); text-decoration: none; font-size: var(--fs-xs); font-weight: 600; }
.poster-downloads a:hover { background: var(--teal-100); color: var(--navy-900); }
.poster-downloads .icon { flex: none; color: var(--teal-700); }
.poster-downloads span { display: grid; line-height: 1.6; }
.poster-downloads small { font-weight: 300; color: var(--muted); font-size: 0.72rem; }

/* Payment box */
.pay-body { display: grid; gap: 4px; min-width: 0; }
.iban-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px var(--sp-2); }
.iban-label { color: var(--muted); }
.iban { font-family: var(--font-latin); font-weight: 700; letter-spacing: 0.04em; color: var(--navy-900); word-break: break-all; }
.copy-btn { min-height: 30px; padding: 2px 12px; }

/* Student registration: who counts as a student */
.note-crimson { color: #7a1428; font-weight: 700; background: rgba(122, 20, 40, 0.06); border: 1px solid rgba(122, 20, 40, 0.25); border-radius: 12px; padding: 10px 14px; margin: 0 0 var(--sp-3); line-height: 1.9; }

/* Topics on the home page: all of them, numbered, compact */
.topic-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.topic-list a { display: flex; align-items: center; gap: 10px; height: 100%; padding: 10px 12px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); color: var(--navy-900); text-decoration: none; box-shadow: var(--shadow-sm); transition: border-color 0.2s, transform 0.2s; }
.topic-list a:hover { border-color: rgba(122, 154, 58, 0.45); transform: translateY(-2px); color: var(--navy-900); }
.topic-no { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-800); color: #fff; font-size: 0.78rem; font-weight: 700; }
.topic-list .topic-icon { flex: none; color: var(--teal-700); display: grid; }
.topic-list .topic-icon .icon { width: 20px; height: 20px; }
.topic-name { font-size: var(--fs-xs); font-weight: 600; line-height: 1.7; }
@media (max-width: 1000px) { .topic-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .topic-list { grid-template-columns: 1fr; } }

/* Account states */
.status-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: flex-start; }
.status-box summary { list-style: none; cursor: pointer; }
.status-box summary::-webkit-details-marker { display: none; }
.status-box[open] { flex-basis: 100%; }
.banned-card { text-align: center; }
.banned-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(139, 30, 45, 0.1); color: #8b1e2d; margin-bottom: var(--sp-2); }
.banned-icon .icon { width: 30px; height: 30px; }
.banned-card h1 { color: #8b1e2d; }
.banned-lead { font-weight: 600; }
.banned-message { text-align: right; background: rgba(139, 30, 45, 0.06); border: 1px solid rgba(139, 30, 45, 0.25); border-radius: 12px; padding: 12px 16px; }
.frozen-banner { margin-top: var(--sp-3); }


/* User editor: current value above, correction box below */
.edit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3) var(--sp-4); }
.edit-row { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fcfbf9; }
.edit-row.has-error { border-color: var(--danger-700); }
.edit-label { font-weight: 700; font-size: var(--fs-sm); color: var(--navy-900); }
.edit-current { font-size: var(--fs-sm); padding: 4px 8px; border-radius: 8px; background: var(--stone-100); }
.edit-row .input, .edit-row input, .edit-row select, .edit-row textarea { width: 100%; }
@media (max-width: 760px) { .edit-grid { grid-template-columns: 1fr; } }


/* Countdown: days, hours, minutes, seconds from left to right */
.countdown .units { direction: ltr; }

/* Phones: both hero buttons the same size, colour and shape, each on one line */
@media (max-width: 640px) {
  .hero-actions .btn:nth-child(-n+2) {
    background: #fff; color: var(--navy-900); border-color: #fff;
    white-space: nowrap; font-size: 0.8rem; padding-inline: 0.5rem; min-height: 46px;
  }
  .hero-actions .btn:nth-child(-n+2):hover { background: var(--teal-100); color: var(--navy-900); }
}


/* Hero buttons: narrower, all three with the same type size */
.hero-actions .btn { padding-inline: 1rem; min-height: 42px; font-size: 0.9rem; }
@media (max-width: 640px) {
  .hero-actions { grid-template-columns: repeat(2, 142px); justify-content: center; }
  .hero-actions .btn { font-size: 0.8rem; min-height: 42px; padding-inline: 0.5rem; white-space: nowrap; }
  .hero-actions .btn:nth-child(3) { width: 180px; min-width: 0; }
}

/* Countdowns: two boxes of exactly the same size, centred text, four fixed cells in the middle */
.countdowns { display: grid; grid-template-columns: repeat(auto-fit, 228px); grid-auto-rows: 1fr; gap: var(--sp-3); }
.countdown {
  width: 228px; padding: 10px 8px; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.countdown h2 { font-size: 0.85rem; font-weight: 700; margin: 0 0 2px; }
.countdown .target { font-size: 0.7rem; margin: 0 0 8px; line-height: 1.6; white-space: nowrap; }
.countdown .units { grid-template-columns: repeat(4, 44px); gap: 5px; justify-content: center; margin-inline: auto; }
.countdown .unit { width: 44px; height: 46px; padding: 0; display: grid; align-content: center; justify-items: center; border-radius: 9px; }
.countdown .unit b { font-size: 1.05rem; font-weight: 800; line-height: 1.2; }
.countdown .unit span { font-size: 0.66rem; line-height: 1.4; }
.countdown .done { font-size: 0.85rem; }
@media (max-width: 640px) {
  .countdowns { justify-content: center; }
  .countdown { text-align: center; }
}

/* Announcement bar: only the coloured lines, the same space above and below */
.newsbar { padding: var(--sp-3) 0 0; }
.newsbar-inner { background: none; border: 0; box-shadow: none; padding: 0; border-radius: 0; }
.newsbar + main .hero, .page-home .newsbar + main .hero { padding-top: var(--sp-3); }
.newsbar + main .page-head { margin-top: var(--sp-3); }
@media (max-width: 640px) { .newsbar-inner { border-radius: 0; } }

/* Topics: plain items (no detail pages), the special topic on its own line without a number */
.topic-list li {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 14px;
  background: var(--white); border: 1px solid var(--line); color: var(--navy-900); box-shadow: var(--shadow-sm);
}
.topic-special {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 10px 0 0; padding: 10px 14px; border-radius: 14px;
  background: linear-gradient(120deg, var(--navy-800), var(--navy-700)); color: #fff; box-shadow: var(--shadow-sm);
}
.topic-special .topic-name { font-size: var(--fs-sm); font-weight: 700; }
.topic-special-tag {
  flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px;
  background: #f5e400; color: #3a0b0e; font-size: 0.78rem; font-weight: 800;
}
.topic-special-tag .icon { width: 15px; height: 15px; }
@media (max-width: 560px) {
  .topic-list { gap: 5px; }
  .topic-list li { padding: 6px 10px; gap: 8px; border-radius: 11px; box-shadow: none; }
  .topic-no { width: 22px; height: 22px; font-size: 0.7rem; }
  .topic-list .topic-icon .icon { width: 17px; height: 17px; }
  .topic-name { font-size: 0.82rem; line-height: 1.6; }
  .topic-special { padding: 8px 10px; gap: 6px; }
  .topic-special .topic-name { font-size: 0.85rem; line-height: 1.7; }
}

/* Organisers and secretaries: one compact panel */
.people-panel {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: var(--sp-5);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-4) var(--sp-5); box-shadow: var(--shadow-sm);
}
.people-col + .people-col { border-inline-start: 1px solid var(--line); padding-inline-start: var(--sp-5); }
.people-col h3 { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--teal-700); margin: 0 0 var(--sp-3); }
.people-col h3 .icon { width: 18px; height: 18px; }
.org-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.org-chips li {
  padding: 6px 14px; border-radius: 12px; font-size: 0.88rem; font-weight: 700; color: var(--navy-800);
  background: var(--navy-100); border: 1px solid rgba(107, 20, 24, 0.12);
}
.people-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px 14px; }
.people-list li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.people-list .avatar { width: 34px; height: 34px; background: var(--teal-100); color: var(--teal-700); }
.people-list .avatar .icon { width: 18px; height: 18px; }
.people-list strong { display: block; font-size: 0.9rem; line-height: 1.6; color: var(--navy-900); }
.people-list small { display: block; font-size: 0.76rem; color: var(--muted); line-height: 1.6; }
@media (max-width: 760px) {
  .people-panel { grid-template-columns: 1fr; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); }
  .people-col + .people-col { border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid var(--line); padding-top: var(--sp-3); }
  .people-col h3 { margin-bottom: var(--sp-2); }
  .org-chips li { padding: 4px 10px; font-size: 0.8rem; }
  .people-list { grid-template-columns: 1fr; gap: 6px; }
}

/* Poster palette accents: yellow highlights on the maroon bands */
.hero .eyebrow, .committee-chips li.more { color: #f5e400; }
.brandband-title { color: #f5e400; }
.brandband-link:hover .brandband-title { color: #fff; }
.topic-list .topic-icon { width: auto; height: auto; background: none; border-radius: 0; }


/* Account area: the container's side gutter is kept on every screen */
.layout-side { padding-inline: var(--sp-4); }

/* Paper type switch: only as wide as its two options */
.seg { width: max-content; max-width: 100%; justify-self: start; align-self: flex-start; }

/* Announcements: solid colour lines with light text */
.news-teal { --nc: #56702a; } .news-navy { --nc: #1c3050; } .news-crimson { --nc: #8b1e2d; }
.news-amber { --nc: #a35409; } .news-green { --nc: #2e6b33; } .news-gray { --nc: #4b5563; }
.newsbar-list .news-line { background: var(--nc, var(--navy-800)); border-inline-start: 0; }
.newsbar-list .news-line .newsbar-title { color: #fff; }
.newsbar-list .news-line time { color: rgba(255, 255, 255, 0.85); }
.newsbar-list .newsbar-new { background: #f5e400; color: #3a0b0e; }

/* Footer bottom: organisers, links and credit in readable cream */
.footer-bottom { color: #f1e2d8; }
.footer-bottom strong { color: #f2df3c; }
.footer-bottom a { color: #f4e9e2; }
.footer-credit { color: #dcc4b9; }
.footer-credit a { color: #f4e9e2; border-bottom-color: rgba(244, 233, 226, 0.4); }

/* Calendar: every point has the same dot; the label under the date is lighter */
.timeline li::before, .timeline li.is-key::before { background: var(--teal-600); border-color: var(--teal-600); box-shadow: 0 0 0 3px var(--teal-100); }
.timeline li strong { font-weight: 500; }

/* Page title boxes: a maroon band, clearly set apart from the page */
.page-head {
  background:
    radial-gradient(90% 160% at 100% 0%, rgba(122, 154, 58, 0.35), transparent 60%),
    linear-gradient(135deg, var(--navy-900), var(--navy-700));
  border-color: transparent; color: #fff; box-shadow: var(--shadow);
}
.page-head h1 { color: #fff; }
.page-head p { color: #f1e2d8; }
.page-head a, .page-head > a:first-child { color: #f2df3c; }
.page-head a:hover { color: #fff; }
.page-head::after { filter: invert(1); opacity: 0.08; }
.page-head .eyebrow { color: #f2df3c; }
.page-head .btn-ghost { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.page-head .muted { color: #ecd8cc; }

/* Corresponding author check against the account */
.corr-account { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); margin: 0 0 var(--sp-3); }
.corr-warn { flex: 1 1 260px; margin: 0; padding: 6px 12px; border-radius: 10px; background: var(--danger-100); color: var(--danger-700); font-size: var(--fs-xs); font-weight: 600; line-height: 1.8; }
.corr-warn[hidden] { display: none; }
.author-fields input.is-mismatch { border-color: var(--danger-700); background: #fff6f5; }

/* A cancelled paper in the author's list */
.paper-card-title.is-closed { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }

/* Home hero: the first two buttons keep one size whether the visitor is signed in or not */
.hero-actions .btn:nth-child(-n+2) { width: 200px; }
@media (max-width: 640px) {
  .hero-actions { grid-template-columns: repeat(2, 154px); }
  .hero-actions .btn:nth-child(-n+2) { width: 154px; height: 44px; }
  .hero-actions .btn:nth-child(3) { width: 200px; }
}
@media (max-width: 640px) { .hero-actions .btn { min-height: 44px; height: 44px; } }

/* Scientific committee on phones: one compact line per member, no column labels */
@media (max-width: 640px) {
  .committee-table tbody { display: grid; gap: 6px; }
  .committee-table tr {
    display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: center; gap: 0 10px;
    margin: 0; padding: 7px 12px; border-radius: 12px;
  }
  .committee-table td { width: auto; padding: 0; }
  .committee-table td::before { display: none; }
  .committee-table td:first-child {
    grid-row: 1 / span 2; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
    background: var(--navy-100); color: var(--navy-800); font-size: 0.72rem; font-weight: 700;
  }
  .committee-table td:nth-child(2) { font-size: 0.9rem; line-height: 1.6; }
  .committee-table td:nth-child(3) { font-size: 0.76rem; line-height: 1.6; color: var(--muted); }
}

/* Frequently asked questions: tighter, lighter questions, justified answers */
.faq details { padding: 8px 14px; border-radius: 12px; }
.faq details + details { margin-top: 6px; }
.faq summary { font-size: 0.92rem; font-weight: 600; line-height: 1.8; }
.faq details[open] summary { margin-bottom: 4px; }
.faq details > :not(summary) { font-size: 0.86rem; line-height: 1.95; text-align: justify; text-justify: inter-word; }
.faq details p:last-child { margin-bottom: 0; }

/* Announcements on the home page: coloured text only, no background */
.newsbar-list .news-line { background: none; padding: 2px 0; border-radius: 0; }
.newsbar-list .news-line .newsbar-title { color: var(--nc, var(--navy-900)); }
.newsbar-list .news-line time { color: var(--muted); }
.newsbar-list .news-line::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--nc, var(--navy-800)); }
@media (max-width: 640px) {
  .newsbar { padding-top: var(--sp-2); }
  .newsbar-inner { gap: 8px; }
  .newsbar-label { padding: 5px; }
  .newsbar-label .icon { width: 14px; height: 14px; }
  .newsbar-list { gap: 2px; }
  .newsbar-list .news-line { padding: 0; row-gap: 0; column-gap: 6px; }
  .newsbar-list .news-line time, .newsbar-list .newsbar-new { font-size: 0.68rem; }
  .newsbar-list .news-line .newsbar-title { font-size: 0.78rem; line-height: 1.6; }
}

/* Justified explanations: final confirmation, student note, notes in the author area */
.confirm-box label, .note-crimson,
.layout-side p, .layout-side .step-hint, .layout-side .field-help, .layout-side .alert > span {
  text-align: justify; text-justify: inter-word;
}
.layout-side .empty-state p, .layout-side .guide-link { text-align: start; }
.guide-link { margin: 0 0 var(--sp-3); }
.guide-link a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }

/* Footer bottom: softer and all one colour */
.footer-bottom, .footer-bottom strong, .footer-bottom a { color: rgba(241, 226, 216, 0.62); }
.footer-bottom strong { font-weight: 500; }
.footer-bottom a:hover { color: #f1e2d8; }
.footer-credit { color: rgba(220, 196, 185, 0.55); }
.footer-credit a { color: rgba(244, 233, 226, 0.68); border-bottom-color: rgba(244, 233, 226, 0.25); }

/* Author panel on phones: account, deadline and my papers in their tightest form */
@media (max-width: 640px) {
  .dash-top { gap: var(--sp-2); margin-bottom: var(--sp-3); }
  .dash-top .card { padding: 10px 14px; }
  .dash-top h2 { font-size: 0.95rem; margin-bottom: 6px; }
  .dash-account dl.kv { grid-template-columns: max-content minmax(0, 1fr); gap: 3px 12px; align-items: center; font-size: 0.82rem; }
  .dash-account dl.kv dt { font-size: 0.76rem; }
  .dash-account dl.kv dd { margin: 0; overflow-wrap: anywhere; }
  .dash-account .badge { font-size: 0.72rem; padding: 1px 8px; }
  .dash-deadline p { font-size: 0.82rem; margin-bottom: 6px; }
  .dash-deadline .badge { font-size: 0.72rem; }
  .dash-papers { margin-bottom: var(--sp-3); }
  .dash-papers .row-between { margin-bottom: 6px; }
  .dash-papers h2 { font-size: 0.95rem; }
  .dash-papers .mini-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .dash-papers .ministat { padding: 4px 2px; border-radius: 10px; box-shadow: none; }
  .dash-papers .ministat b { font-size: 1rem; line-height: 1.4; }
  .dash-papers .ministat span { display: block; font-size: 0.62rem; line-height: 1.4; }
}

/* Calls for the year's best student, book and photo: one plain box, tight lines */
.award-list { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 16px; }
.award-item { padding: 10px 0; }
.award-item + .award-item { border-top: 1px solid var(--line); }
.award-item h3 { display: flex; align-items: center; gap: 6px; font-size: 0.92rem; line-height: 1.6; margin: 0 0 2px; color: var(--navy-800); }
.award-item h3 .icon { flex: none; width: 16px; height: 16px; color: var(--teal-700); }
.award-item p { font-size: 0.82rem; line-height: 1.75; margin: 0; text-align: justify; text-justify: inter-word; }
.award-item .award-note { font-size: 0.76rem; color: var(--muted); margin-top: 2px; }
.award-item .award-note .icon { width: 13px; height: 13px; }
@media (max-width: 640px) { .award-list { padding: 2px 12px; } .award-item { padding: 8px 0; } .award-item h3 { font-size: 0.86rem; } .award-item p { font-size: 0.78rem; line-height: 1.7; } }

/* Organisers page: the same compact panel as the home page */
.organizers-page .people-col h2 { display: flex; align-items: center; gap: 8px; font-size: var(--fs-md); color: var(--teal-700); margin: 0 0 var(--sp-3); }
.organizers-page .people-col h2 .icon { width: 20px; height: 20px; }
.org-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.org-list li { padding: 8px 12px; border-radius: 12px; background: var(--navy-100); border: 1px solid rgba(107, 20, 24, 0.1); }
.org-list strong { display: block; font-size: 0.92rem; color: var(--navy-800); line-height: 1.7; }
.org-list .small p { margin: 2px 0 0; }
@media (max-width: 640px) { .organizers-page .people-col h2 { font-size: 0.95rem; } .org-list li { padding: 6px 10px; } }

/* Phone menu: the author sign-up button in the site's maroon, not full width */
@media (max-width: 1180px) {
  .main-nav .nav-cta {
    width: fit-content; margin: 10px auto 0; padding: 8px 20px; font-size: 0.85rem; font-weight: 600;
    background: var(--navy-800); box-shadow: none;
  }
  .main-nav .nav-cta:hover { background: var(--navy-700); }
}

/* Secretariat contact: a compact strip instead of a tall list */
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 0.88rem; line-height: 1.8; }
.contact-list li { display: flex; align-items: flex-start; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.contact-list li.wide { flex-basis: 100%; }
.contact-list .icon { flex: none; width: 16px; height: 16px; margin-top: 0.3em; color: var(--teal-700); }
.page-home .contact-card { padding: 14px 18px; }
.page-home .contact-card h2 { font-size: var(--fs-md); margin-bottom: 8px; }
@media (max-width: 640px) {
  .contact-list { flex-direction: column; gap: 4px; font-size: 0.8rem; }
  .page-home .contact-card { padding: 12px 14px; }
}

/* About page: the main sections beside a column of facts and dates */
.about-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--sp-4); align-items: start; }
.about-main, .about-side { display: grid; gap: var(--sp-3); }
.about-page .card { padding: var(--sp-4) var(--sp-5); }
.about-page .card h2 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.about-block p, .about-text p { text-align: justify; text-justify: inter-word; line-height: 2; margin: 0 0 var(--sp-2); }
.about-block p:last-child { margin-bottom: 0; }
.about-topics { margin: var(--sp-2) 0; padding-inline-start: 1.4em; columns: 2; column-gap: var(--sp-5); font-size: 0.9rem; line-height: 1.9; }
.about-topics li { break-inside: avoid; }
.about-special { padding: 6px 12px; border-radius: 10px; background: var(--navy-100); color: var(--navy-800); }
.about-kv { grid-template-columns: max-content minmax(0, 1fr); gap: 6px 14px; font-size: 0.88rem; }
.about-kv dt { font-size: 0.82rem; }
.about-dates { list-style: none; margin: 0 0 var(--sp-2); padding: 0; display: grid; gap: 4px; font-size: 0.86rem; }
.about-dates li { display: flex; justify-content: space-between; gap: var(--sp-3); padding: 4px 0; border-bottom: 1px dashed var(--line); }
.about-dates b { font-weight: 600; color: var(--teal-700); white-space: nowrap; }
@media (max-width: 960px) { .about-layout { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .about-page .card { padding: 12px 14px; }
  .about-page .card h2 { font-size: var(--fs-md); }
  .about-topics { columns: 1; font-size: 0.84rem; }
  .about-block p, .about-text p { font-size: 0.88rem; line-height: 1.95; }
  .about-kv { font-size: 0.82rem; }
  .about-dates { font-size: 0.8rem; }
}
.about-side .about-kv { grid-template-columns: 1fr; gap: 0; }
.about-side .about-kv dt { margin-top: 8px; color: var(--muted); }
.about-side .about-kv dt:first-child { margin-top: 0; }
.about-side .about-kv dd { color: var(--navy-900); font-weight: 600; }

/* Text pages (privacy, FAQ, guide notes, announcements) use the full width of the page, justified */
.card.prose, .faq.prose { max-width: none; }
.card.prose p, .card.prose li { text-align: justify; text-justify: inter-word; }

/* Home hero: date, venue and deadline in smaller, tighter type */
.hero-meta { font-size: 0.9rem; gap: 6px 18px; margin-bottom: var(--sp-4); }
.hero-meta .icon { width: 1.05em; height: 1.05em; }
@media (max-width: 640px) { .hero-meta { font-size: 0.82rem; gap: 2px; margin-bottom: var(--sp-3); } }

/* Submission steps on phones: tighter boxes and gaps, same type size */
@media (max-width: 560px) {
  .steps { gap: 6px; }
  .steps li { padding: 8px 12px 9px; column-gap: 8px; }
  .steps li p { margin-top: 4px; margin-bottom: 0; line-height: 1.8; }
}

/* Electronic certificate on the paper page and the public verification page */
.cert-preview { margin: var(--sp-4) 0 0; max-width: 520px; }
.cert-preview img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.cert-preview figcaption { margin-top: 6px; }
.verify-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: var(--sp-4); }
.verify-form label { font-weight: 600; }
.verify-form .input { flex: 1 1 220px; max-width: 320px; letter-spacing: 0.08em; }
.verify-result h2 { display: flex; align-items: center; gap: 8px; font-size: var(--fs-lg); }
.verify-result.is-valid { border-inline-start: 5px solid var(--success-700); }
.verify-result.is-valid h2 { color: var(--success-700); }
.verify-result.is-revoked { border-inline-start: 5px solid var(--danger-700); }
.verify-result.is-revoked h2 { color: var(--danger-700); }
@media (max-width: 640px) { .cert-preview { max-width: none; } }

/* Permanent account deletion in the management panel */
.danger-zone { border: 1px solid #f2cdc8; background: #fffaf9; }
.danger-zone h2 { display: flex; align-items: center; gap: 8px; color: var(--danger-700); font-size: var(--fs-lg); }
.danger-zone .input { max-width: 260px; }

/* Home hero on wide screens: the poster card is exactly as tall as the conference card beside it */
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 250px; align-items: stretch; }
  .poster-card { position: static; display: flex; flex-direction: column; gap: 10px; padding: 12px; }
  .poster-thumb { flex: 0 0 auto; }
  .poster-body { margin-top: auto; }
  .poster-body h2 { font-size: 0.95rem; margin-bottom: 6px; text-align: center; }
  .poster-body p { display: none; }
  .poster-downloads { margin: 0; grid-template-columns: 1fr 1fr; gap: 6px; }
  .poster-downloads a { justify-content: center; gap: 4px; padding: 6px 4px; font-size: 0.74rem; }
  .poster-downloads small { display: none; }
  .poster-downloads .icon { width: 14px; height: 14px; }
}

/* Author paper page: all published results, newest first */
.decision-item + .decision-item { margin-top: var(--sp-3); padding-top: var(--sp-3); border-top: 1px dashed var(--line); }
.decision-item.is-older { opacity: 0.85; }
.decision-item .surface-muted { margin-top: 6px; text-align: justify; }

/* Host sign in buttons in the panel menu look like the other menu links */
.host-links button.link-btn { display: flex; align-items: center; gap: var(--sp-2); width: 100%; padding: var(--sp-2) var(--sp-3); border-radius: 10px; color: var(--stone-700); font-size: var(--fs-sm); text-align: start; text-decoration: none; }
.host-links button.link-btn:hover { background: var(--navy-100); color: var(--navy-900); }

/* No focus box around the page itself (main takes focus only for "skip to content"); a thin maroon loading bar */
main:focus, main:focus-visible, [tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; box-shadow: none; }
.nav-progress { background: linear-gradient(270deg, var(--navy-700), var(--navy-800)); height: 2px; }

/* Paper conversation as a chat: my messages on one side, theirs on the other, time and read status under each */
.thread { gap: 8px; max-height: 560px; overflow-y: auto; padding: 4px 2px; overscroll-behavior: contain; }
.bubble { max-width: 78%; padding: 8px 12px; border-radius: 16px; box-shadow: var(--shadow-sm); }
.bubble.is-mine { justify-self: start; background: var(--navy-100); border-color: rgba(107, 20, 24, 0.12); border-end-start-radius: 4px; }
.bubble.is-theirs { justify-self: end; background: var(--white); border-end-end-radius: 4px; }
.bubble-meta { font-size: 0.78rem; margin-bottom: 2px; }
.bubble-body { font-size: 0.92rem; line-height: 1.9; }
.bubble-foot { display: flex; flex-wrap: wrap; gap: 4px 10px; justify-content: flex-end; margin-top: 4px; font-size: 0.7rem; color: var(--muted); }
.read-mark { display: inline-flex; align-items: center; gap: 2px; color: var(--teal-700); }
.read-mark .icon { width: 12px; height: 12px; }
.read-mark.is-unread { color: var(--muted); }
.thread-day { justify-self: center; font-size: 0.72rem; color: var(--muted); }
.thread-day span { display: inline-block; padding: 1px 10px; border-radius: 999px; background: var(--stone-100); }
.thread-note { margin: 8px 0 0; }
@media (max-width: 640px) { .bubble { max-width: 92%; } }
