@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap');

:root {
  --brand: #11b981;
  --ink: #0a0a0a;
  --muted: #737373;
  --line: #e5e5e5;
  --paper: #ffffff;
  --wash: #fafafa;
  --emerald-50: #ecfdf5;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Vazirmatn, ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
}
a { color: var(--brand); }
img { max-width: 100%; height: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: max(1rem, env(safe-area-inset-top)) 1.25rem 0.75rem;
  background: color-mix(in srgb, white 86%, transparent);
  backdrop-filter: blur(12px);
}
.site-header-inner {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1.25rem;
  background: #fff;
  border-radius: 999px;
  box-shadow: 7px 10px 38px 0 rgba(165, 186, 202, 0.4);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: inherit;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.25rem;
}
.brand img { width: 2.5rem; height: 2.5rem; }
.header-nav { display: none; gap: 0.15rem; align-items: center; }
.header-nav a,
.header-cta {
  text-decoration: none;
  border-radius: 999px;
  padding: 0.4rem 0.6rem;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}
.header-nav a { color: #262626; }
.header-nav a[aria-current='page'] { background: #f5f5f5; }
.header-cta { background: var(--brand); color: #fff; }

.wrap { width: min(72rem, calc(100% - 2rem)); margin: 0 auto; }
.article { padding: 2rem 0 5rem; }
.crumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}
.crumb a { color: inherit; text-decoration: none; }
.crumb a:hover { color: var(--brand); }

.hero-copy { text-align: center; max-width: 48rem; margin: 0 auto 1.75rem; }
.hero-copy h1 {
  margin: 0;
  font-size: clamp(1.85rem, 4vw, 3.25rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.hero-en { margin: 0.6rem 0 0; color: var(--muted); font-weight: 700; }
.byline { margin: 1rem 0 0; color: var(--muted); font-size: 0.95rem; }
.byline strong { color: var(--ink); }

.player {
  position: relative;
  width: 100%;
  max-width: 52rem;
  margin: 1.25rem auto 0;
  aspect-ratio: 16 / 9;
  background: #0a0a0a;
  border: 1px solid #f5f5f5;
  border-radius: 1.25rem;
  overflow: hidden;
}
.player video,
.player img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.player-angles {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  height: 2rem;
  padding: 0 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(8px);
  color: #fff;
}
.player-angles button {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  padding: 0;
}
.player-angles button[aria-pressed='true'] { color: #fff; }
.player-angles span {
  width: 1px;
  height: 0.85rem;
  background: rgba(255, 255, 255, 0.35);
}

.howto {
  list-style: none;
  margin: 0;
  padding: 0;
}
.howto li {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  margin: 0;
}
.howto li + li { margin-top: 0.15rem; }
.howto-n {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 2rem;
  flex-shrink: 0;
}
.howto-n b {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
}
.howto li:not(:last-child) .howto-n::after {
  content: '';
  position: absolute;
  top: 1.75rem;
  bottom: 0;
  width: 0;
  border-left: 2px dashed #6ee7b7;
}
.howto p {
  flex: 1;
  min-width: 0;
  margin: 0 0 0.75rem;
  padding: 0.75rem 0.9rem;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 1rem;
  font-size: 0.98rem;
  line-height: 1.85;
  font-weight: 600;
}

.anatomy {
  margin: 2rem auto 0;
  width: min(100%, 24rem);
}
.anatomy-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 0.5rem;
  width: 100%;
  height: 17.5rem;
  align-items: stretch;
}
.anatomy-canvas {
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}
.anatomy-canvas .body-chart-container,
.anatomy-canvas svg {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
}
.anatomy-legend {
  margin: 0.4rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}
.prose h2:first-of-type { margin-top: 1.75rem; }

.prose {
  max-width: 46rem;
  margin: 0 auto;
  font-size: 1.125rem;
  line-height: 2.05;
  color: #262626;
}
.prose h2 {
  margin: 2.75rem 0 0.9rem;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--ink);
  scroll-margin-top: 6rem;
}
.prose p { margin: 0 0 1rem; }

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 1.1rem 0 1.5rem;
  padding: 0;
}
.facts div {
  margin: 0;
  padding: 0.85rem 1rem;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 1rem;
}
.facts dt { font-size: 0.8rem; font-weight: 800; color: #525252; }
.facts dd { margin: 0.15rem 0 0; font-weight: 700; }

.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.4rem 0 1rem; }
.chips span {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}


.callout {
  margin: 1.5rem 0;
  padding: 1.1rem 1.2rem;
  border: 1px solid #d1fae5;
  background: var(--emerald-50);
  border-radius: 1.1rem;
}
.callout a { font-weight: 800; text-decoration: none; }

.faq details {
  background: #f5f5f5;
  border-radius: 1.1rem;
  padding: 0.15rem 1.1rem;
  margin: 0.55rem 0;
}
.faq summary { cursor: pointer; font-weight: 700; padding: 0.9rem 0; }
.faq p { margin: 0 0 1rem; color: #525252; }

.related { display: grid; gap: 0.75rem; }
.related a {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 0.85rem;
  align-items: center;
  padding: 0.7rem;
  border: 1px solid #f5f5f5;
  border-radius: 1rem;
  text-decoration: none;
  color: inherit;
}
.related a:hover { border-color: #a7f3d0; }
.related img {
  width: 5rem;
  height: 5rem;
  object-fit: cover;
  border-radius: 0.75rem;
  background: #f5f5f5;
}
.related strong { display: block; }
.related span { color: var(--muted); font-size: 0.85rem; }

.site-footer {
  background: #e5e5e5;
  padding: 2.5rem 1.25rem;
  text-align: center;
  color: #525252;
}
.site-footer a { color: inherit; text-decoration: none; margin: 0 0.4rem; }

.hub-hero { padding: 2.5rem 0 1.5rem; text-align: center; }
.hub-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.hub-hero p { max-width: 38rem; margin: 1rem auto 0; color: var(--muted); }

.search-box {
  width: min(36rem, 100%);
  margin: 1.5rem auto 2rem;
  display: block;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
}
.groups {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 2rem;
}
.groups a {
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 700;
  background: #fff;
}
.group-block { margin: 0 0 2.5rem; }
.group-block h2 { margin: 0 0 0.9rem; font-size: 1.4rem; }
.card-grid { display: grid; grid-template-columns: 1fr; gap: 1.4rem; }
.card { color: inherit; text-decoration: none; }
.card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 1.25rem;
  background: #f4f4f5;
}
.card h3 { margin: 0.8rem 0 0.3rem; font-size: 1.2rem; line-height: 1.4; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.hidden { display: none !important; }

@media (min-width: 700px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-nav { display: flex; }
}
@media (min-width: 1200px) {
  .header-nav a,
  .header-cta { padding: 0.45rem 0.8rem; font-size: 0.875rem; }
}
@media (min-width: 1024px) {
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
