@font-face {
  font-family: VazirLocal;
  src: url("/assets/fonts/Farsi-Digits/Vazir-Thin-FD.woff2") format("woff2");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: VazirLocal;
  src: url("/assets/fonts/Farsi-Digits/Vazir-Light-FD.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: VazirLocal;
  src: url("/assets/fonts/Farsi-Digits/Vazir-Regular-FD.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: VazirLocal;
  src: url("/assets/fonts/Farsi-Digits/Vazir-Medium-FD.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: VazirLocal;
  src: url("/assets/fonts/Farsi-Digits/Vazir-Bold-FD.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: VazirLocal;
  src: url("/assets/fonts/Farsi-Digits/Vazir-Black-FD.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #070816;
  --bg-soft: rgba(13, 18, 41, 0.75);
  --surface: rgba(15, 20, 47, 0.8);
  --surface-strong: rgba(20, 27, 64, 0.95);
  --border: rgba(255, 255, 255, 0.11);
  --border-strong: rgba(255, 255, 255, 0.2);
  --text: #eff3ff;
  --muted: rgba(225, 232, 255, 0.72);
  --soft: rgba(180, 193, 255, 0.42);
  --accent: #9f7aea;
  --accent-2: #38bdf8;
  --accent-3: #22c55e;
  --accent-4: #f59e0b;
  --shadow: 0 24px 80px rgba(3, 5, 14, 0.42);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(140, 92, 255, 0.18), transparent 32%),
    radial-gradient(circle at 85% 18%, rgba(56, 189, 248, 0.16), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(34, 197, 94, 0.11), transparent 30%),
    linear-gradient(180deg, #050612 0%, #080b1a 40%, #050612 100%);
  color: var(--text);
  font-family: VazirLocal, "Vazir FD", "Vazirmatn", "Segoe UI", sans-serif;
  direction: rtl;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  display: block;
  max-width: 100%;
}

::selection {
  background: rgba(159, 122, 234, 0.36);
  color: white;
}

.page-background {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at 50% 10%, black 0%, transparent 76%);
  opacity: 0.3;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 48px;
}

.card-surface {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(22, 28, 62, 0.8), rgba(13, 18, 42, 0.78));
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(10, 15, 36, 0.62);
  backdrop-filter: blur(20px);
  position: sticky;
  top: 16px;
  z-index: 20;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 28px rgba(7, 11, 30, 0.35);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  display: grid;
  gap: 3px;
}

.brand-text strong {
  font-size: 1rem;
  line-height: 1.15;
}

.brand-text span {
  font-size: 0.84rem;
  color: var(--muted);
}

.brand-sub-mobile {
  display: none;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-toggle,
.nav-close,
.nav-overlay {
  display: none;
}

.topnav a {
  position: relative;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.topnav a::after {
  content: "";
  position: absolute;
  inset: auto 14px 8px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: scaleX(0);
  transition: transform 240ms ease;
}

.topnav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

.topnav a:hover::after {
  transform: scaleX(1);
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 22px;
  padding: 28px;
  margin-top: 22px;
  border-radius: 38px;
  position: relative;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(4px);
}

.hero::before {
  width: 320px;
  height: 320px;
  right: -120px;
  top: -110px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22), transparent 68%);
}

.hero::after {
  width: 280px;
  height: 280px;
  left: -110px;
  bottom: -120px;
  background: radial-gradient(circle, rgba(159, 122, 234, 0.18), transparent 68%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.eyebrow,
.section-label {
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(237, 241, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.08);
  letter-spacing: 0.01em;
  font-size: 0.85rem;
}

.hero h1,
.section-heading h2,
.footer h2 {
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 4.25rem);
  max-width: 18ch;
  margin-top: auto;
}

.assistants-page .hero h1 {
  max-width: 24ch;
}

.hero-text,
.section-heading p,
.feature-card p,
.footer p,
.panel-note p,
.accordion-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.95;
}

.hero-copy .hero-text {
  margin-bottom: auto;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
}

.button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  min-height: 52px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
  overflow: hidden;
}

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.03));
  transition: opacity 180ms ease;
  z-index: -2;
}

.button::after {
  content: "";
  position: absolute;
  inset: -40% -20%;
  z-index: -1;
  opacity: 0;
  transform: translateY(20px) rotate(0deg);
  background: #1e40af;
  filter: blur(18px);
  transition: opacity 200ms ease, transform 250ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.22);
}

.button:hover::before,
.button:hover::after {
  opacity: 1;
}

.button:hover::after {
  transform: translateY(0) rotate(8deg);
}

.button.primary {
  background: linear-gradient(135deg, rgba(159, 122, 234, 0.28), rgba(56, 189, 248, 0.22));
  color: white;
}

.button.ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
}

.icon-left {
  transform: scaleX(-1);
}

.button[aria-disabled="true"] {
  pointer-events: none;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-facts article,
.feature-card,
.footer-meta > div,
.panel-card,
.search-box,
.results-pill {
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.hero-facts article {
  border-radius: 22px;
  padding: 14px 16px;
  display: grid;
  gap: 6px;
}

.hero-facts span,
.panel-header span,
.panel-note span,
.footer-meta span,
.workshop-meta span,
.feature-card h3 + p,
.accordion-summary small {
  color: var(--soft);
}

.hero-facts strong,
.footer-meta strong,
.panel-list strong,
.workshop-meta strong {
  font-size: 0.98rem;
  line-height: 1.6;
}

.hero-panel {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 100%;
}

.panel-glow {
  position: absolute;
  inset: 8% 10% 12%;
  border-radius: 34px;
  background: conic-gradient(from 140deg, rgba(56, 189, 248, 0.2), rgba(159, 122, 234, 0.28), rgba(34, 197, 94, 0.18), rgba(245, 158, 11, 0.2), rgba(56, 189, 248, 0.2));
  filter: blur(30px);
  opacity: 0.9;
}

.panel-card {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 30px;
  padding: 22px;
  display: grid;
  gap: 18px;
  background: linear-gradient(180deg, rgba(13, 18, 44, 0.96), rgba(17, 23, 53, 0.86));
}

.panel-header,
.section-heading,
.workshops-heading,
.footer,
.footer-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.panel-header {
  align-items: center;
}

.panel-kicker {
  font-size: 0.92rem;
}

.panel-badge,
.results-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(245, 247, 255, 0.88);
  white-space: nowrap;
}

.panel-list {
  display: grid;
  gap: 12px;
}

.panel-list > div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 15px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
}

.panel-list > div .icon {
  color: #a78bfa;
}

.role-icon {
  width: 20px;
  height: 20px;
  flex: none;
  filter: brightness(0) saturate(100%) invert(79%) sepia(35%) saturate(6264%) hue-rotate(210deg) brightness(95%) contrast(93%);
}

.panel-list span {
  display: block;
  font-size: 0.84rem;
  margin-bottom: 2px;
  color: var(--soft);
}

.panel-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-radius: 20px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(159, 122, 234, 0.1));
}

.pulse {
  display: inline-block;
  width: 12px;
  height: 12px;
  min-width: 12px;
  min-height: 12px;
  border-radius: 50%;
  margin-top: 7px;
  background: radial-gradient(circle, #7dd3fc, #8b5cf6);
  box-shadow: 0 0 0 0 rgba(125, 211, 252, 0.3);
  animation: pulse 2.2s infinite;
}

.section {
  padding-top: 68px;
}

.section-heading {
  align-items: end;
  margin-bottom: 20px;
}

.section-heading > div {
  display: grid;
  gap: 14px;
}

.section-heading h2,
.footer h2 {
  font-size: clamp(1.55rem, 3vw, 2.3rem);
}

.section-heading p {
  max-width: 52ch;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: 20px;
  min-height: 100%;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.feature-card::before,
.workshop-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 30%, rgba(255, 255, 255, 0.03));
  transition: opacity 180ms ease;
  pointer-events: none;
}

.feature-card:hover,
.workshop-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.18);
}

.feature-card:hover::before,
.workshop-card:hover::before {
  opacity: 1;
}

.feature-icon {
  color: #7dd3fc;
  width: 24px;
  height: 24px;
  margin-bottom: 12px;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.workshops-section {
  position: relative;
}

.workshops-heading {
  align-items: center;
}

.workshops-heading > div {
  display: grid;
  gap: 12px;
}

.workshop-tools {
  display: grid;
  gap: 10px;
  min-width: min(100%, 440px);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border-radius: 18px;
  padding: 0 14px;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.search-box:focus-within {
  border-color: rgba(125, 211, 252, 0.36);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
  transform: translateY(-1px);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  padding: 14px 0;
}

.search-box input::placeholder {
  color: rgba(225, 232, 255, 0.42);
}

.results-pill {
  justify-self: end;
}

.workshop-grid {
  display: grid;
  gap: 18px;
}

.workshop-card {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: 18px;
  background: linear-gradient(180deg, rgba(17, 23, 52, 0.92), rgba(11, 15, 35, 0.88));
}

.workshop-media {
  position: relative;
  min-height: 260px;
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(159, 122, 234, 0.14), rgba(56, 189, 248, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.workshop-media img,
.workshop-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.workshop-media-link {
  display: block;
  width: 100%;
  height: 100%;
}

.workshop-media-link::after {
  content: "مشاهده‌ی ویدیوی کارگاه";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 10px 12px;
  text-align: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.75), rgba(139, 92, 246, 0.75));
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(8px);
  transition: transform 180ms ease, opacity 180ms ease;
  opacity: 0.95;
}

.workshop-media-link:hover::after {
  transform: translateY(-2px);
  opacity: 1;
}

.workshop-media .fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
  color: rgba(238, 243, 255, 0.8);
  background:
    radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.24), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(159, 122, 234, 0.2), transparent 24%),
    radial-gradient(circle at 50% 80%, rgba(34, 197, 94, 0.14), transparent 26%),
    linear-gradient(145deg, rgba(8, 13, 33, 0.92), rgba(21, 29, 66, 0.88));
}

.fallback-card {
  width: min(100%, 240px);
  border-radius: 24px;
  padding: 22px;
  background: rgba(6, 10, 26, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.fallback-card strong {
  display: block;
  margin-top: 12px;
  font-size: 1rem;
}

.fallback-card span {
  color: var(--soft);
  line-height: 1.8;
}

.workshop-body {
  display: grid;
  gap: 16px;
  align-content: start;
}

.workshop-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.workshop-badge,
.workshop-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  color: rgba(241, 245, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.workshop-title {
  margin: 0;
  font-size: clamp(1.28rem, 2vw, 1.8rem);
}

.workshop-summary {
  margin: 0;
  color: var(--muted);
  line-height: 1.95;
}

.workshop-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.workshop-meta > div {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.workshop-meta .icon {
  color: #a78bfa;
}

.workshop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.workshop-video {
  display: grid;
  gap: 12px;
}

.workshop-video video {
  width: 100%;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(3, 7, 18, 0.8);
}

.workshop-video-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.workshop-video-note strong,
.workshop-video-note span {
  display: block;
}

.workshop-video-note strong {
  margin-bottom: 4px;
}

.workshop-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.workshop-link:hover {
  transform: translateY(-2px);
  border-color: rgba(125, 211, 252, 0.24);
}

.accordion {
  border-radius: 22px;
  overflow: clip;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.accordion + .accordion {
  margin-top: 8px;
}

.accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background 180ms ease, color 180ms ease;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion[open] summary {
  background: rgba(255, 255, 255, 0.04);
}

.accordion-summary {
  display: grid;
  gap: 4px;
}

.accordion-summary strong {
  font-size: 0.98rem;
}

.chevron {
  width: 18px;
  height: 18px;
  color: rgba(225, 232, 255, 0.72);
  transform: rotate(0deg);
  transition: transform 180ms ease;
}

.accordion[open] .chevron {
  transform: rotate(-90deg);
}

.accordion-body {
  padding: 0 18px 18px;
}

.markdown > *:first-child {
  margin-top: 0;
}

.markdown > *:last-child {
  margin-bottom: 0;
}

.markdown p {
  margin: 0 0 12px;
  line-height: 1.95;
  color: var(--muted);
}

.markdown ul {
  margin: 0;
  padding: 0 18px 0 0;
  display: grid;
  gap: 10px;
}

.markdown li {
  line-height: 1.9;
  color: var(--muted);
}

.markdown strong {
  color: var(--text);
}

.footer {
  align-items: flex-start;
  margin-top: 72px;
  padding: 24px 26px;
  border-radius: 30px;
}

.footer > div:first-child {
  display: grid;
  gap: 12px;
  max-width: 52ch;
}

.footer-meta {
  flex-wrap: wrap;
  justify-content: flex-start;
}

.footer-meta > div {
  min-width: 180px;
  border-radius: 22px;
  padding: 16px 18px;
  display: grid;
  gap: 4px;
}

.site-footer {
  margin-top: 64px;
  padding: 14px 4px 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer p {
  margin: 0;
  color: rgba(225, 232, 255, 0.62);
  font-size: 0.88rem;
  line-height: 1.9;
  text-align: center;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.empty-state,
.loading-state,
.error-state {
  border-radius: 28px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  line-height: 1.9;
}

.loading-state {
  text-align: center;
}

.error-state {
  border-color: rgba(248, 113, 113, 0.24);
  color: #fecaca;
}

.assistants-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.assistant-card {
  border-radius: 22px;
  padding: 18px;
  display: grid;
  gap: 8px;
}

.assistant-card h3,
.phase-card h3 {
  margin: 0;
  font-size: 1rem;
}

.assistant-card p,
.phase-card p {
  margin: 0;
  color: var(--muted);
}

.table-wrap {
  border-radius: 24px;
  overflow: auto;
}

.assistants-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

.assistants-table th,
.assistants-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  text-align: right;
  vertical-align: top;
  line-height: 1.8;
}

.assistants-table thead th {
  font-weight: 700;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.assistants-table tbody th {
  width: 150px;
  color: var(--soft);
  font-weight: 500;
  background: rgba(255, 255, 255, 0.02);
}

.phase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.phase-card {
  border-radius: 22px;
  padding: 18px;
  display: grid;
  gap: 10px;
}

.project-members {
  border-radius: 22px;
  margin-top: 14px;
  padding: 16px;
  display: grid;
  gap: 10px;
}

.project-members h3 {
  margin: 0;
  font-size: 1rem;
}

.project-members-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.project-members-grid span {
  display: block;
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
}

.phase-card ul {
  margin: 0;
  padding: 0 18px 0 0;
  display: grid;
  gap: 8px;
}

.phase-card li {
  color: var(--muted);
  line-height: 1.8;
}

.exam-list {
  border-radius: 22px;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.exam-list span {
  display: block;
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(125, 211, 252, 0.36);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(125, 211, 252, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(125, 211, 252, 0);
  }
}

@media (max-width: 1080px) {
  .hero,
  .workshop-card,
  .section-heading,
  .footer {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .hero {
    padding: 22px;
  }

  .hero h1 {
    max-width: 100%;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-facts {
    grid-template-columns: 1fr;
  }

  .workshop-tools {
    min-width: 100%;
  }

  .assistants-grid,
  .phase-grid,
  .exam-list,
  .project-members-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body.nav-open {
    overflow: hidden;
  }

  .page-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 12px;
  }

  .topbar {
    position: relative;
    z-index: 45;
    border-radius: 26px;
    padding: 14px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .brand-sub-full {
    display: none;
  }

  .brand-sub-mobile {
    display: inline;
  }

  .topbar > .brand,
  .topbar > .nav-toggle {
    position: relative;
    z-index: 46;
  }

  .nav-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    padding: 0;
    color: var(--text);
  }

  .nav-toggle span {
    width: 18px;
    height: 1.6px;
    border-radius: 2px;
    background: rgba(236, 241, 255, 0.95);
  }

  .topnav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(88vw, 320px);
    height: 100dvh;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 14px;
    border-left: 0;
    box-shadow: -18px 0 44px rgba(2, 6, 20, 0.46);
    background: linear-gradient(180deg, rgba(11, 16, 38, 0.98), rgba(8, 12, 29, 0.98));
    backdrop-filter: blur(14px);
    transform: translateX(calc(100% + 10px));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 220ms ease, opacity 200ms ease, visibility 0s linear 220ms;
    flex-wrap: nowrap;
  }

  .topnav a {
    padding: 12px 14px;
    border-radius: 12px;
  }

  .topnav a::after {
    inset: auto 14px 10px;
  }

  .nav-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
    min-height: 38px;
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    margin-bottom: 6px;
  }

  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(2, 4, 12, 0.56);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    border: 0;
    z-index: 44;
    transition: opacity 220ms ease, visibility 0s linear 220ms;
  }

  .topbar.nav-open .topnav {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
  }

  .topbar.nav-open .nav-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
  }

  .hero,
  .panel-card,
  .footer {
    border-radius: 28px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .workshop-card {
    padding: 14px;
  }

  .workshop-media {
    min-height: 220px;
  }

  .assistants-grid,
  .phase-grid,
  .exam-list,
  .project-members-grid {
    grid-template-columns: 1fr;
  }

  .assistants-page .section-heading,
  .assistants-page .section-heading > div {
    align-items: flex-start;
    text-align: right;
  }

  .assistants-page .section-heading p,
  .assistants-page .section-heading h2,
  .assistants-page .section-label {
    text-align: right;
  }

  .workshops-heading,
  .workshops-heading > div {
    align-items: flex-start;
    text-align: right;
  }

  .workshops-heading h2,
  .workshops-heading .section-label {
    text-align: right;
  }

  .results-pill {
    justify-self: stretch;
  }

  .footer-meta {
    width: 100%;
  }

  .footer-meta > div {
    width: 100%;
    min-width: 0;
  }
}

/* Archive page styles */
.archive-page .section {
  padding-top: 34px;
}

.archive-topic {
  padding: 14px;
  border-radius: 18px;
  margin-bottom: 14px;
  background: linear-gradient(180deg, rgba(18, 24, 58, 0.76), rgba(10, 14, 34, 0.72));
}

.archive-topic-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 12px;
  text-align: right;
}

.archive-topic-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.exercise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.exercise-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(16, 21, 48, 0.8), rgba(10, 14, 32, 0.78));
  box-shadow: 0 6px 18px rgba(3, 7, 20, 0.28);
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.exercise-card:hover {
  transform: translateY(-2px);
  border-color: rgba(159, 122, 234, 0.2);
  box-shadow: 0 8px 22px rgba(2, 8, 24, 0.35);
}

.exercise-thumb {
  display: none;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.exercise-thumb img {
  width: 100%;
  height: 140px;
  display: block;
  object-fit: cover;
}

.exercise-title {
  margin: 12px 10px 6px 10px;
  font-size: 0.96rem;
  line-height: 1.55;
  font-weight: 600;
}

.exercise-meta {
  padding: 4px 10px 6px 10px;
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 0.81rem;
}

.exercise-meta > div {
  line-height: 1.5;
}

.exercise-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px 10px 10px;
}

.exercise-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  border-radius: 9px;
  padding: 5px 8px;
  font-size: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.exercise-link .icon {
  width: 13px;
  height: 13px;
}

.exercise-link:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.22);
}

.exercise-link-primary {
  color: #fff;
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.24), rgba(139, 92, 246, 0.25));
}

.exercise-link-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 1080px) {
  .exercise-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .archive-topic {
    padding: 12px;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
  }

  .archive-topic-header {
    justify-content: flex-start;
    text-align: right;
  }

  .archive-topic-title {
    font-size: 0.95rem;
  }

  .exercise-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .exercise-thumb img {
    height: 140px;
  }
}

