/* DanMa marketing site — neo-brutalist, RTL, mobile-first.
   Tokens mirror the design source (oklch), with hex fallbacks for older WebViews. */

/* Self-hosted Vazirmatn (SIL OFL 1.1) — one variable file covers 400–800.
   Browsers too old for variable fonts fall back to Tahoma, which ships on Windows
   and renders Persian acceptably. */
@font-face {
  font-family: Vazirmatn;
  src: url("../fonts/Vazirmatn-var.f6d31671339d.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f7f0e6;          --paper: oklch(95% 0.02 75);
  --surface: #fdfbf7;        --surface: oklch(99% 0.004 75);
  --ink: #1d2029;            --ink: oklch(20% 0.02 260);
  --text: #22252f;           --text: oklch(22% 0.02 260);
  --body: #3c414d;           --body: oklch(30% 0.02 260);
  --muted: #6a6f7d;          --muted: oklch(48% 0.02 260);
  --line: #ebe7e0;           --line: oklch(93% 0.008 75);
  --line-strong: #e0dbd1;    --line-strong: oklch(89% 0.012 75);
  --chip: #efebe4;           --chip: oklch(94% 0.008 75);
  --soft: #f5f1ea;           --soft: oklch(96% 0.01 75);

  --coral: #e8685a;          --coral: oklch(64% 0.15 25);
  --coral-deep: #d24a3c;     --coral-deep: oklch(56% 0.15 25);
  --coral-soft: #fbe4de;     --coral-soft: oklch(92% 0.04 25);
  --teal: #2f8f86;           --teal: oklch(56% 0.10 195);
  --teal-deep: #1c5751;      --teal-deep: oklch(35% 0.07 195);
  --teal-soft: #d9f0ec;      --teal-soft: oklch(92% 0.04 195);
  --amber: #e2a640;          --amber: oklch(70% 0.13 85);
  --amber-deep: #8a6118;     --amber-deep: oklch(45% 0.09 85);
  --amber-soft: #f7e6c4;     --amber-soft: oklch(92% 0.05 85);
  --violet: #6b74c9;         --violet: oklch(58% 0.11 260);

  --accent: var(--coral);

  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-sm: 3px 3px 0 var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-lg: 9px 9px 0 var(--ink);
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: Vazirmatn, "Vazirmatn RD", Tahoma, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.8;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--coral-deep); }

h1, h2, h3 { line-height: 1.35; margin: 0; font-weight: 800; }
h1 { font-size: 28px; }
h2 { font-size: 22px; }
h3 { font-size: 17px; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--teal-deep); outline-offset: 2px; }

.skip-link {
  position: absolute; inset-inline-start: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { inset-inline-start: 0; color: #fff; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.stack { display: flex; flex-direction: column; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- animation ---------- */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pageIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes spinSlow { to { transform: rotate(405deg); } }

.page { animation: pageIn 0.45s ease both; }
.fade-1 { animation: fadeInUp 0.6s ease 0.08s both; }
.fade-2 { animation: fadeInUp 0.6s ease 0.16s both; }
.fade-3 { animation: fadeInUp 0.6s ease 0.24s both; }

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

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface);
  border-bottom: 2px solid var(--ink);
  padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; color: inherit; }
.brand:hover { color: inherit; }
.brand__mark {
  width: 40px; height: 40px; border-radius: 999px; flex-shrink: 0;
  background: var(--teal-deep); color: #fff;
  border: 2px solid var(--ink); box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px;
}
.brand__name { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name b { font-size: 18px; font-weight: 800; }
.brand__name span { font-size: 11px; color: var(--muted); }

.nav { display: none; align-items: center; gap: 26px; }
.nav a {
  color: var(--text); font-size: 15px; font-weight: 500; padding: 6px 2px;
  border-bottom: 2px solid transparent; transition: transform 0.15s ease, color 0.15s ease;
}
.nav a:hover { color: var(--coral-deep); transform: translateY(-2px); }
.nav a[aria-current="page"] { color: var(--teal-deep); border-bottom-color: var(--coral); }

/* Hamburger with zero JS: native <details>. */
.navmenu > summary {
  list-style: none; cursor: pointer; padding: 8px;
  display: flex; flex-direction: column; gap: 5px; width: 40px;
}
.navmenu > summary::-webkit-details-marker { display: none; }
.navmenu > summary span { height: 2px; background: var(--text); border-radius: 2px; }
.navmenu[open] > summary span:first-child { transform: translateY(7px) rotate(45deg); }
.navmenu[open] > summary span:nth-child(2) { opacity: 0; }
.navmenu[open] > summary span:last-child { transform: translateY(-7px) rotate(-45deg); }
.navmenu > summary span { transition: transform 0.2s ease, opacity 0.2s ease; }
.navmenu__panel {
  position: absolute; inset-inline: 0; top: 100%;
  background: var(--surface); border-bottom: 2px solid var(--ink);
  box-shadow: 0 8px 0 -4px var(--ink);
  display: flex; flex-direction: column; padding: 8px 20px 16px;
}
.navmenu__panel a {
  color: var(--text); font-size: 16px; font-weight: 500;
  padding: 12px 4px; border-bottom: 1px solid var(--line);
}
.navmenu__panel a:last-child { border-bottom: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
  padding: 13px 26px; border-radius: var(--radius-sm);
  border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover, .btn:focus-visible { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--ink); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { color: #fff; }
.btn--ghost { background: var(--surface); color: var(--text); }
.btn--ghost:hover { color: var(--text); }
.btn--sm { padding: 9px 18px; font-size: 13.5px; border-radius: 10px; box-shadow: var(--shadow-sm); }
.btn--sm:hover, .btn--sm:focus-visible { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn--block { width: 100%; }

.link-more { font-weight: 700; font-size: 14px; color: var(--teal-deep); }

/* ---------- cards & bits ---------- */
.card {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 22px;
}
.card--lg { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 24px; }
.card--hover { transition: transform 0.15s ease, box-shadow 0.15s ease; }
.card--hover:hover { transform: translate(-4px, -4px); box-shadow: 10px 10px 0 var(--ink); }

.disc {
  border-radius: 999px; color: #fff; flex-shrink: 0;
  border: 2px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  width: 48px; height: 48px; font-size: 17px;
}
.disc--lg { width: 60px; height: 60px; font-size: 19px; box-shadow: var(--shadow-sm); }
.disc--xl { width: 72px; height: 72px; font-size: 24px; box-shadow: var(--shadow-sm); }

.accent-coral { background: var(--coral); }
.accent-teal { background: var(--teal); }
.accent-violet { background: var(--violet); }
.accent-amber { background: var(--amber); }

.pill {
  display: inline-block; background: var(--chip); color: var(--muted);
  font-size: 12.5px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line-strong);
}
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; }

.eyebrow {
  display: inline-block; background: var(--teal-soft); color: var(--teal-deep);
  font-size: 13px; font-weight: 600; padding: 6px 14px;
  border-radius: 999px; border: 2px solid var(--ink);
}

.muted { color: var(--muted); }
.lead { font-size: 16px; line-height: 1.9; color: var(--muted); }

.section { padding-block: 32px; }
.section__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }

.divider-dots { display: flex; align-items: center; justify-content: center; gap: 20px; padding: 28px 0 20px; }
.divider-dots i { display: block; }
.divider-dots i:nth-child(1) { width: 12px; height: 12px; border: 2px solid var(--teal); transform: rotate(45deg); }
.divider-dots i:nth-child(2) { width: 8px; height: 8px; border-radius: 999px; background: var(--coral); }
.divider-dots i:nth-child(3) { width: 12px; height: 12px; border: 2px solid var(--amber); transform: rotate(45deg); }

.placeholder-art {
  border-radius: var(--radius-sm); border: 2px solid var(--ink);
  background: repeating-linear-gradient(45deg, var(--line-strong), var(--line-strong) 10px, var(--surface) 10px, var(--surface) 20px);
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--muted); font-family: ui-monospace, monospace; font-size: 12px; padding: 12px;
}

/* ---------- hero ---------- */
.hero { position: relative; }
.hero__inner { display: flex; flex-direction: column; gap: 28px; align-items: center; }
.hero__copy { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.hero__copy h1 { font-size: 30px; }
.hero__art { flex: 1; width: 100%; min-width: 0; position: relative; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__age { font-size: 14px; font-weight: 700; color: var(--teal-deep); }
.hero__media { margin-top: 20px; position: relative; height: 190px; }
.hero__media > .placeholder-art, .hero__media > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border-radius: var(--radius-sm); border: 2px solid var(--ink);
}
.blob {
  position: absolute; border-radius: 999px; border: 2px solid var(--ink);
  animation: floatY 4.5s ease-in-out infinite;
}
.blob--a { bottom: -16px; inset-inline-end: -16px; width: 46px; height: 46px; background: var(--amber); }
.blob--b { top: -14px; inset-inline-start: -12px; width: 32px; height: 32px; background: var(--coral); animation-delay: 0.4s; }
.deco { display: none; }

.catrow { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.catrow a {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  width: 84px; color: var(--muted); font-size: 12px; font-weight: 500; text-align: center;
  transition: transform 0.15s ease;
}
.catrow a:hover { transform: translateY(-4px); color: var(--muted); }

/* ---------- grids ---------- */
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.grid--gap-lg { gap: 20px; }

.why { border-radius: var(--radius-md); border: 2px solid var(--ink); box-shadow: 7px 7px 0 var(--ink); padding: 22px; display: flex; flex-direction: column; gap: 10px; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.why:hover { transform: translate(-4px, -4px); box-shadow: 11px 11px 0 var(--ink); }
.why p { font-size: 14.5px; color: var(--body); }
.why__num {
  width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--surface);
  border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px;
}
.why--1 { background: var(--coral-soft); } .why--1 .why__num { color: var(--coral-deep); }
.why--2 { background: var(--teal-soft); } .why--2 .why__num { color: var(--teal-deep); }
.why--3 { background: var(--amber-soft); } .why--3 .why__num { color: var(--amber-deep); }

/* ---------- course cards ---------- */
.course-card { display: flex; flex-direction: column; gap: 12px; }
.course-card__head { display: flex; align-items: center; gap: 12px; }
.course-card__head h3 { margin: 0; }
.course-card__head span { font-size: 13px; color: var(--muted); }
.course-card p { font-size: 14px; color: var(--muted); }
.course-card__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line);
}
.price { font-size: 14.5px; font-weight: 700; color: var(--text); }

/* ---------- syllabus ---------- */
.session {
  display: flex; align-items: center; gap: 12px;
  background: var(--soft); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); padding: 14px 16px;
}
.session__num {
  width: 30px; height: 30px; border-radius: 999px; flex-shrink: 0;
  background: var(--teal-soft); color: var(--teal-deep); border: 2px solid var(--ink);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px;
}
.session span:last-child { font-size: 14.5px; }

/* ---------- pricing table ---------- */
.table-scroll { overflow-x: auto; }
.price-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 420px; }
.price-table th, .price-table td { padding: 13px 10px; }
.price-table thead th { border-bottom: 2px solid var(--ink); font-weight: 700; text-align: center; }
.price-table thead th:first-child { text-align: start; }
.price-table tbody td { border-bottom: 1px solid var(--line); text-align: center; }
.price-table tbody th {
  border-bottom: 1px solid var(--line); text-align: start;
  color: var(--muted); font-weight: 500;
}
.price-table tbody tr:last-child > * { border-bottom: 0; }
.price-table .is-price { font-weight: 700; }

/* ---------- callouts ---------- */
.cta {
  border: 2px solid var(--ink); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 36px 20px; text-align: center;
  position: relative; overflow: hidden;
}
.cta--coral { background: var(--coral); }
.cta--teal { background: var(--teal-deep); }
.cta h2, .cta h3 { color: #fff; }
.cta p { color: rgba(255, 255, 255, 0.88); font-size: 15px; }
.cta__inner { max-width: 600px; margin-inline: auto; display: flex; flex-direction: column; align-items: center; gap: 16px; position: relative; }
.cta__ring {
  position: absolute; top: -20px; inset-inline-start: -20px;
  width: 70px; height: 70px; border-radius: 999px; border: 3px solid #fff; opacity: 0.45;
  animation: floatY 5s ease-in-out infinite;
}
.cta__diamond {
  position: absolute; bottom: -18px; inset-inline-end: 30px;
  width: 40px; height: 40px; border: 3px solid #fff; opacity: 0.45; transform: rotate(45deg);
}

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field > label { font-size: 14px; font-weight: 700; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15px; color: var(--text);
  background: var(--surface); border: 2px solid var(--ink);
  border-radius: 10px; padding: 12px 14px; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; box-shadow: var(--shadow-sm);
}
.field textarea { resize: vertical; }
.field .helptext { font-size: 12.5px; color: var(--muted); }
.errorlist { list-style: none; margin: 0; padding: 0; color: var(--coral-deep); font-size: 13px; font-weight: 600; }
.required-mark { color: var(--coral-deep); }

.alert {
  border: 2px solid var(--ink); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm); padding: 14px 16px; margin-bottom: 20px; font-weight: 600;
}
.alert--success { background: var(--teal-soft); color: var(--teal-deep); }
.alert--error { background: var(--coral-soft); color: var(--coral-deep); }

/* ---------- accordion (FAQ) ---------- */
.faq-item { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); padding: 4px 18px; }
.faq-item + .faq-item { margin-top: 12px; }
.faq-item > summary {
  cursor: pointer; list-style: none; font-weight: 700; font-size: 15.5px;
  padding: 14px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after { content: "+"; color: var(--teal-deep); font-size: 20px; font-weight: 800; }
.faq-item[open] > summary::after { content: "−"; }
.faq-item__body { padding-bottom: 16px; color: var(--body); font-size: 14.5px; white-space: pre-line; }

/* ---------- breadcrumbs ---------- */
.breadcrumbs { margin-bottom: 20px; font-size: 13px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "›"; color: var(--muted); margin-inline-end: 8px; }
.breadcrumbs span { color: var(--muted); }

/* ---------- blog ---------- */
.pill--active { background: var(--teal-soft); color: var(--teal-deep); border-color: var(--teal-deep); font-weight: 700; }
a.pill:hover { background: var(--coral-soft); color: var(--coral-deep); }

.post-card { display: flex; flex-direction: column; gap: 12px; }
.post-card__media { display: block; }
.post-card__media img, .post-card__media .placeholder-art {
  width: 100%; height: 160px; object-fit: cover;
  border-radius: var(--radius-sm); border: 2px solid var(--ink);
}
.post-card__title { font-size: 17px; margin: 0; }
.post-card__title a { color: var(--text); }
.post-card__title a:hover { color: var(--coral-deep); }
.post-card__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--muted);
}

.post-meta { font-size: 13px; color: var(--muted); }
.post-cover {
  width: 100%; height: auto; border: 2px solid var(--ink);
  border-radius: var(--radius-md); box-shadow: var(--shadow);
}

.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 36px; flex-wrap: wrap; }

/* Staff-authored HTML lands here — style by element, not class. */
.prose { color: var(--body); font-size: 16px; line-height: 2; }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: 21px; margin-top: 34px; color: var(--text); }
.prose h3 { font-size: 18px; margin-top: 26px; color: var(--text); }
.prose ul, .prose ol { padding-inline-start: 22px; }
.prose li + li { margin-top: 8px; }
.prose img { border: 2px solid var(--ink); border-radius: var(--radius-sm); }
.prose blockquote {
  margin: 0; padding: 14px 18px; background: var(--teal-soft);
  border-inline-start: 4px solid var(--teal-deep); border-radius: var(--radius-sm);
}
.prose code {
  font-family: ui-monospace, monospace; font-size: 0.9em; direction: ltr;
  background: var(--chip); padding: 2px 6px; border-radius: 6px;
}
.prose pre {
  direction: ltr; text-align: left; overflow-x: auto; padding: 16px;
  background: var(--text); color: #e8e9ec; border-radius: var(--radius-sm);
}
.prose pre code { background: none; padding: 0; color: inherit; }
.prose table { width: 100%; border-collapse: collapse; }
.prose th, .prose td { border: 1px solid var(--line-strong); padding: 10px; text-align: start; }

/* ---------- testimonials / people ---------- */
.quote { display: flex; flex-direction: column; gap: 12px; }
.quote__text { font-size: 14.5px; color: var(--body); }
.quote__who { font-size: 13px; color: var(--muted); font-weight: 600; }

.person { display: flex; gap: 16px; align-items: flex-start; }
.person__photo { width: 72px; height: 72px; border-radius: 999px; border: 2px solid var(--ink); box-shadow: var(--shadow-sm); object-fit: cover; flex-shrink: 0; }

/* ---------- events ---------- */
.event-card { display: flex; flex-direction: column; gap: 14px; }
.event-card__poster { width: 100%; height: 180px; object-fit: cover; border-radius: var(--radius-sm); border: 2px solid var(--ink); }
.tag-upcoming { background: var(--teal-soft); color: var(--teal-deep); border-color: var(--teal-deep); font-weight: 700; }
.tag-past { background: var(--chip); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--text); color: #d3d5da; margin-top: 32px;
  padding: 44px 20px 22px;
}
.site-footer a, .site-footer p, .site-footer span { color: #adafb6; font-size: 13.5px; }
.site-footer a:hover { color: #fff; }
.site-footer h4 { margin: 0; color: #fff; font-size: 14px; font-weight: 700; }
.site-footer__grid { display: grid; grid-template-columns: 1fr; gap: 28px; max-width: 1080px; margin-inline: auto; }
.site-footer__col { display: flex; flex-direction: column; gap: 10px; }
.site-footer__brand { display: flex; align-items: center; gap: 8px; }
.site-footer__brand b { color: #fff; font-size: 16px; }
.site-footer__mark {
  width: 32px; height: 32px; border-radius: 999px; background: var(--teal); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px;
}
.site-footer__bottom {
  border-top: 1px solid #4b4d54; margin-top: 30px; padding-top: 18px;
  text-align: center; font-size: 12.5px; color: #92949b;
  max-width: 1080px; margin-inline: auto;
}

/* ---------- desktop ---------- */
@media (min-width: 860px) {
  body { font-size: 15px; }
  h1 { font-size: 34px; }
  .hero__copy h1 { font-size: 40px; }
  .navmenu { display: none; }
  .nav { display: flex; }
  .card, .card--lg { padding: 40px; }
  .card.why { padding: 22px; }
  .section { padding-block: 40px; }
  .hero__inner { flex-direction: row; gap: 48px; }
  .catrow { justify-content: flex-start; gap: 18px; }
  .hero__media { height: 220px; }
  .deco { display: block; position: absolute; }
  .deco--diamond { top: 12px; inset-inline-start: 60px; width: 26px; height: 26px; border: 3px solid var(--coral); transform: rotate(45deg); animation: spinSlow 22s linear infinite; }
  .deco--circle { bottom: -10px; inset-inline-end: 40px; width: 34px; height: 34px; border-radius: 999px; border: 3px dashed var(--teal); opacity: 0.6; }
  .grid--2 { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .site-footer__grid { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .cta { padding: 40px 20px; }
  .person__photo { width: 88px; height: 88px; }
}

/* ---------- signed-in areas (dashboard, portal) ---------- */
.app-bar {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink); color: #fff;
  border-bottom: 2px solid var(--ink);
  padding: 10px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.app-bar .brand, .app-bar .brand:hover { color: #fff; }
.app-bar .brand__name span { color: #b9bcc6; }
.app-bar .brand__mark { background: var(--coral); box-shadow: none; border-color: #fff; }

.app-nav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.app-nav a { color: #d3d5da; font-size: 14px; font-weight: 600; }
.app-nav a:hover { color: #fff; }
.app-nav .btn--ghost { background: transparent; color: #fff; border-color: #fff; box-shadow: 3px 3px 0 var(--coral); }
.app-nav__logout { margin: 0; }
.badge-count {
  display: inline-block; min-width: 20px; margin-inline-start: 6px; padding: 0 6px;
  background: var(--coral); color: #fff; border-radius: 999px;
  font-size: 12px; font-weight: 700; text-align: center;
}

.stat {
  background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm); padding: 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.stat b { font-size: 24px; }
.stat span { font-size: 12.5px; color: var(--muted); }
.stat--warn { background: var(--amber-soft); }
.stat--danger { background: var(--coral-soft); }

.session-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; color: inherit;
}
.session-row:hover { color: inherit; }

.plain-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; }
.plain-list li { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.plain-list li:last-child { border-bottom: 0; }

.thumb-row { display: flex; gap: 8px; flex-wrap: wrap; }
.thumb-row img {
  width: 96px; height: 96px; object-fit: cover;
  border: 2px solid var(--ink); border-radius: 10px;
}

/* Roll call: whole roster on one screen, thumb-sized targets, one submit. */
.rollcall-row {
  border: 2px solid var(--ink); border-radius: var(--radius-sm);
  background: var(--surface); box-shadow: var(--shadow-sm);
  margin: 0; padding: 10px 14px 14px;
}
.rollcall-row legend { font-weight: 700; font-size: 15px; padding-inline: 4px; }
.rollcall-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rollcall-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.rollcall-option span {
  display: block; text-align: center; cursor: pointer;
  padding: 12px 4px; border: 2px solid var(--line-strong); border-radius: 10px;
  font-size: 14px; font-weight: 600; color: var(--muted);
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.rollcall-option input:focus-visible + span { outline: 3px solid var(--teal-deep); outline-offset: 2px; }
.rollcall-option--present input:checked + span { background: var(--teal-soft); color: var(--teal-deep); border-color: var(--teal-deep); }
.rollcall-option--absent input:checked + span { background: var(--coral-soft); color: var(--coral-deep); border-color: var(--coral-deep); }
.rollcall-option--late input:checked + span { background: var(--amber-soft); color: var(--amber-deep); border-color: var(--amber-deep); }

.grid-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.grid-table th, .grid-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: start; }
.grid-table thead th { background: var(--soft); font-weight: 700; border-bottom: 2px solid var(--ink); white-space: nowrap; }
.grid-table tbody th { font-weight: 600; }
.grid-table tr:last-child td, .grid-table tr:last-child th { border-bottom: 0; }
.row--overdue { background: var(--coral-soft); }

.mark { display: inline-block; width: 24px; height: 24px; line-height: 22px; text-align: center; border-radius: 999px; font-weight: 800; }
.mark--present { background: var(--teal-soft); color: var(--teal-deep); }
.mark--absent { background: var(--coral-soft); color: var(--coral-deep); }
.mark--late { background: var(--amber-soft); color: var(--amber-deep); }

.status--paid, .status--att-present { background: var(--teal-soft); color: var(--teal-deep); border-color: var(--teal-deep); font-weight: 700; }
.status--partial, .status--att-late { background: var(--amber-soft); color: var(--amber-deep); border-color: var(--amber-deep); font-weight: 700; }
.status--unpaid, .status--att-absent { background: var(--coral-soft); color: var(--coral-deep); border-color: var(--coral-deep); font-weight: 700; }

.notification { display: flex; flex-direction: column; gap: 6px; }
.notification--unread { border-inline-start: 6px solid var(--coral); }
