/* DentVision user guide. The base below is the original layout; the lively layer at the
   end gives it the clinic app's palette, colour per category and the tooth mascot. */
:root {
  --ink: #0f172a;
  --text: #1f2937;
  --muted: #5b6474;
  --line: #e3e8ee;
  --bg: #f5f7f6;
  --card: #fff;
  --teal: #0f766e;
  --teal-2: #14b8a6;
  --mint: #ccfbf1;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
  font-family:
    -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto,
    'Noto Sans', sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  line-height: 1.55;
}
a {
  color: var(--teal);
}
img,
video {
  max-width: 100%;
  display: block;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 10;
}
.skip:focus {
  left: 8px;
}
:focus-visible {
  outline: 3px solid var(--teal-2);
  outline-offset: 2px;
}

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
}
.brand img {
  border-radius: 8px;
}
.brand small {
  font-weight: 500;
  color: var(--muted);
  margin-left: 6px;
  font-size: 14px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lang {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: #fff;
}
.lang button,
.roles button {
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
}
.lang button[aria-pressed='true'],
.roles button[aria-pressed='true'] {
  background: var(--ink);
  color: #fff;
}
.btn {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 10px;
  white-space: nowrap;
}

/* Hero */
.hero {
  background:
    radial-gradient(
      1200px 400px at 85% -10%,
      rgba(20, 184, 166, 0.28),
      transparent 60%
    ),
    linear-gradient(135deg, #0f172a, #134e4a);
  color: #fff;
  padding: clamp(36px, 6vw, 72px) clamp(16px, 4vw, 40px);
}
.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
}
.kicker {
  margin: 0 0 10px;
  color: #5eead4;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 13px;
}
.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4.6vw, 48px);
  line-height: 1.12;
}
.lead {
  margin: 0 0 26px;
  max-width: 640px;
  color: #cbd5e1;
  font-size: 18px;
}
.tools {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.search {
  flex: 1 1 320px;
  max-width: 520px;
}
.search input {
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
}
.roles {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 4px;
}
.roles button {
  color: #e2e8f0;
}
.roles button[aria-pressed='true'] {
  background: #fff;
  color: var(--ink);
}

/* What's new */
.news {
  margin: 18px 0 0;
  max-width: 900px;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.6;
}
.news strong {
  color: #5eead4;
}
.news a {
  color: #fff;
}

/* Layout */
.layout {
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px clamp(16px, 4vw, 40px) 16px;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 36px;
}
.toc {
  position: sticky;
  top: 80px;
  align-self: start;
  max-height: calc(100vh - 100px);
  overflow: auto;
  font-size: 14px;
}
.toc-group {
  margin-bottom: 18px;
}
.toc-group p {
  margin: 0 0 6px;
  font-weight: 700;
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.toc a {
  display: block;
  padding: 5px 10px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
}
.toc a:hover {
  background: #fff;
  color: var(--ink);
}
main:focus {
  outline: none;
}
.cat {
  margin-bottom: 40px;
}
.cat > h2 {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 14px;
}
.guide {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(18px, 2.4vw, 28px);
  margin-bottom: 22px;
  scroll-margin-top: 90px;
}
.guide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.guide h3 {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 24px);
  color: var(--ink);
}
.link {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
}
.link.done {
  background: var(--mint);
  color: var(--teal);
}
.tags {
  display: flex;
  gap: 6px;
  margin: 8px 0 6px;
  flex-wrap: wrap;
}
.tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
  background: #ecfdf8;
  border: 1px solid #c7f0e6;
  padding: 2px 9px;
  border-radius: 999px;
}
.summary {
  margin: 0 0 16px;
  color: var(--muted);
}
.guide-body {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(220px, 1fr);
  gap: 22px;
  align-items: start;
}
.video {
  border-radius: 12px;
  overflow: hidden;
  background: #0b1220;
  border: 1px solid var(--line);
}
.video video {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #0b1220;
}
.video.mobile video {
  aspect-ratio: 430 / 900;
  max-height: 640px;
  margin: 0 auto;
}
.video.soon {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  color: #94a3b8;
  font-weight: 600;
}
.video-note {
  margin: 0;
  padding: 8px 12px;
  font-size: 13px;
  color: #cbd5e1;
  background: #111827;
}
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: s;
}
.steps li {
  position: relative;
  padding: 8px 0 8px 42px;
  border-bottom: 1px dashed var(--line);
}
.steps li:last-child {
  border-bottom: 0;
}
.steps li.step,
.steps li:not(.chapter) {
  counter-increment: s;
}
.steps li:not(.chapter)::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: 7px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--teal-2);
  color: #04201c;
  font-weight: 700;
  font-size: 14px;
}
.empty {
  padding: 40px;
  text-align: center;
  color: var(--muted);
  background: #fff;
  border-radius: var(--radius);
  border: 1px dashed var(--line);
}

/* Timed steps: jump to the moment in the video, highlight while playing */
.steps.timed li:not(.chapter) {
  padding: 0 0 0 42px;
}
.steps.timed li:not(.chapter)::before {
  top: 9px;
}
.jump {
  display: flex;
  width: 100%;
  gap: 10px;
  justify-content: space-between;
  align-items: baseline;
  text-align: left;
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 9px 8px;
  margin-left: -8px;
  border-radius: 8px;
  cursor: pointer;
}
.jump:hover {
  background: #f0fdfa;
}
.jump time {
  flex: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.steps li.now .jump {
  background: var(--mint);
  color: var(--ink);
}
.steps li.now::before {
  background: var(--teal);
  color: #fff;
}
.steps li.chapter {
  padding: 14px 0 6px;
  border-bottom: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}
.steps li.chapter:first-child {
  padding-top: 0;
}
.workflow .steps {
  max-height: 560px;
  overflow: auto;
  padding-right: 4px;
}

/* Start here: what each role watches first */
.path-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.path {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  border-radius: 14px;
  padding: 16px 18px;
}
.path h3 {
  margin: 0 0 10px;
  font-size: 18px;
}
.path h4 {
  margin: 12px 0 6px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.path ol,
.path ul {
  margin: 0;
  padding-left: 20px;
  line-height: 1.55;
  font-size: 14px;
}
.path a {
  color: var(--teal);
}

/* Workflows */
.cat-lead {
  margin: -6px 0 18px;
  color: var(--muted);
  max-width: 760px;
}
.guide.workflow {
  border-top: 4px solid var(--teal-2);
}
.now-playing {
  margin: 0;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  background: #111827;
}
.side-note {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--muted);
}
.parts {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: p;
}
.parts li {
  counter-increment: p;
}
.parts button {
  display: grid;
  grid-template-columns: 28px 1fr;
  column-gap: 12px;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  border-bottom: 1px dashed var(--line);
  padding: 9px 8px;
  cursor: pointer;
}
.parts button::before {
  content: counter(p);
  grid-row: span 2;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e6fffa;
  color: var(--teal);
  font-weight: 700;
  font-size: 14px;
}
.parts button small {
  color: var(--muted);
}
.parts button:hover,
.parts button[aria-current='true'] {
  background: #f0fdfa;
}
.parts button[aria-current='true']::before {
  background: var(--teal);
  color: #fff;
}
.flow-wrap {
  margin-top: 18px;
}
.flow-wrap h4,
.note-box h4 {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.flow li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.flow li + li::before {
  content: '→';
  color: var(--muted);
}
.flow a {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid #c7f0e6;
  background: #ecfdf8;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

/* Before you start / tips / troubleshooting */
.support {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.note-box {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  background: #fbfcfc;
}
.note-box ul {
  margin: 0;
  padding-left: 18px;
}
.note-box li {
  margin: 4px 0;
}
.note-box.before {
  background: #f8fafc;
}
.note-box.tips {
  background: #f0fdfa;
  border-color: #c7f0e6;
}
.note-box.trouble {
  background: #fffbeb;
  border-color: #fde68a;
}
.note-box details {
  padding: 6px 0;
  border-bottom: 1px dashed #fde68a;
}
.note-box details:last-child {
  border-bottom: 0;
}
.note-box summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
}
.note-box details p {
  margin: 6px 0 0;
  color: var(--muted);
}

/* FAQ + footer */
.faq {
  max-width: 1240px;
  margin: 0 auto;
  padding: 8px clamp(16px, 4vw, 40px) 32px;
}
.faq h2 {
  font-size: 22px;
  color: var(--ink);
}
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 10px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
}
.faq details p {
  margin: 10px 0 0;
  color: var(--muted);
}
.foot {
  border-top: 1px solid var(--line);
  background: #fff;
  text-align: center;
  padding: 28px 16px 36px;
  color: var(--muted);
  font-size: 14px;
}
.foot p {
  margin: 6px 0;
}
.foot .links a {
  margin: 0 10px;
}
.foot .note {
  font-size: 13px;
}

@media (max-width: 960px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .toc {
    display: none;
  }
  .guide-body {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .brand small,
  .top .btn {
    display: none;
  }
  .lead {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

/* ------------------------------------------------------------------ */
/* Lively layer: the same look as the clinic app (brand blue, cyan and */
/* mint, a colour per category, soft cards, the tooth mascot).         */
/* ------------------------------------------------------------------ */
:root {
  --ink: #0b1d33;
  --text: #22324a;
  --muted: #5a6a7d;
  --line: #e4eaf1;
  --bg: #f5f8fb;
  --teal: #0b6bdc;
  --teal-2: #22c3b6;
  --mint: #e8f1fc;
  --radius: 20px;
  --tone: #0b6bdc;
  --brand-gradient: linear-gradient(
    135deg,
    #0b6bdc 0%,
    #1596d6 55%,
    #22c3b6 100%
  );
  --shadow: 0 1px 2px #0b1d330a, 0 14px 30px -20px #0b1d3347;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'SF Pro Text',
    'Segoe UI',
    Roboto,
    'Noto Sans',
    sans-serif;
}
body {
  background:
    radial-gradient(620px 300px at 92% 420px, #0b6bdc12, transparent 70%)
      no-repeat,
    var(--bg);
}
.top {
  background: #fffffff2;
}
.btn {
  border-radius: 12px;
  background: linear-gradient(180deg, #2c88ef 0%, #0b6bdc 100%);
  box-shadow:
    0 1px 2px #0b1d3326,
    0 8px 16px -8px #0b6bdcb3,
    inset 0 1px 0 #ffffff3d;
  transition:
    transform 140ms ease,
    box-shadow 160ms ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 2px 4px #0b1d3326,
    0 12px 22px -8px #0b6bdcc7;
}
.lang button[aria-pressed='true'] {
  background: var(--brand-gradient);
}

/* Hero: the app's Today banner, with the tooth saying hello. */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(420px 260px at 84% -20%, #ffffff40, transparent 70%),
    radial-gradient(360px 240px at 4% 130%, #ffffff29, transparent 70%),
    linear-gradient(120deg, #0a57c2 0%, #1389d8 52%, #23c2b4 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
}
.hero-mascot {
  position: absolute;
  right: clamp(16px, 7vw, 120px);
  bottom: clamp(8px, 3vw, 36px);
  width: clamp(120px, 15vw, 190px);
  height: auto;
  filter: drop-shadow(0 16px 22px #0b1d3352);
  pointer-events: none;
}
.kicker {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: #ffffff26;
  box-shadow: inset 0 0 0 1px #ffffff40;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.1em;
}
.lead {
  color: #ffffffe0;
}
.search input {
  padding: 14px 18px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px -12px #0b1d3366;
}
.roles {
  background: #ffffff24;
  box-shadow: inset 0 0 0 1px #ffffff33;
}
.roles button {
  color: #fff;
}
.roles button[aria-pressed='true'] {
  color: #0a4fae;
}
.news {
  padding: 12px 16px;
  border-radius: 14px;
  background: #ffffff1f;
  box-shadow: inset 0 0 0 1px #ffffff2e;
  color: #ffffffe6;
}
.news strong {
  color: #fff;
}

/* A colour for each part of the clinic's work. */
#cat-workflows {
  --tone: #0b6bdc;
}
#cat-start {
  --tone: #0d9488;
}
#cat-front-desk {
  --tone: #e0650d;
}
#cat-clinical {
  --tone: #059669;
}
#cat-billing {
  --tone: #d97706;
}
#cat-team {
  --tone: #4f46e5;
}
#cat-reports {
  --tone: #7c3aed;
}
#cat-marketing {
  --tone: #c026d3;
}
.cat > h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: color-mix(in srgb, var(--tone) 80%, var(--ink));
  font-size: 13.5px;
}
.cat > h2::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(
    135deg,
    var(--tone),
    color-mix(in srgb, var(--tone) 55%, #fff)
  );
  box-shadow: 0 4px 8px -3px color-mix(in srgb, var(--tone) 80%, transparent);
}
.toc {
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}
.toc-group p {
  color: var(--muted);
}
.toc a {
  border-radius: 10px;
  transition:
    background 140ms ease,
    color 140ms ease;
}
.toc a:hover {
  background: var(--mint);
  color: #0a4fae;
}

/* Guide cards */
.guide {
  position: relative;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--tone) 12%, var(--line));
}
.guide::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--tone),
    color-mix(in srgb, var(--tone) 45%, #22c3b6)
  );
}
.guide.workflow::before {
  background: var(--brand-gradient);
}
.link {
  border-radius: 10px;
}
.link:hover {
  border-color: color-mix(in srgb, var(--tone) 40%, var(--line));
  color: var(--tone);
}
.tag {
  padding: 3px 10px;
  border-color: color-mix(in srgb, var(--tone) 18%, #fff);
  background: color-mix(in srgb, var(--tone) 9%, #fff);
  color: color-mix(in srgb, var(--tone) 78%, var(--ink));
}
.video {
  border-radius: 16px;
  box-shadow: 0 18px 34px -22px #0b1d3380;
}
.steps li:not(.chapter)::before {
  background: linear-gradient(
    135deg,
    var(--tone),
    color-mix(in srgb, var(--tone) 62%, #fff)
  );
  color: #fff;
  box-shadow: 0 6px 10px -6px color-mix(in srgb, var(--tone) 85%, transparent);
}
.jump:hover {
  color: var(--tone);
}
.flow li,
.parts li {
  border-radius: 12px;
}

/* Before you start, tips and troubleshooting each have their own colour and sign. */
.note-box {
  position: relative;
  padding: 16px 18px 16px 58px;
  border-radius: 16px;
}
.note-box::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 14px;
  width: 32px;
  height: 32px;
  border-radius: 11px;
  background: var(--note) var(--sign) center / 17px no-repeat;
  box-shadow: 0 6px 10px -6px var(--note);
}
.note-box.before {
  --note: #0b6bdc;
  --sign: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 11l3 3L22 4'/%3E%3Cpath d='M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11'/%3E%3C/svg%3E");
  border-color: #cfe1f9;
  background: #f3f8ff;
}
.note-box.tips {
  --note: #059669;
  --sign: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.200 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.200 1.5 3.5.7.7 1.300 1.5 1.5 2.5'/%3E%3Cpath d='M9 18h6'/%3E%3Cpath d='M10 22h4'/%3E%3C/svg%3E");
  border-color: #c5ecd9;
  background: #f1fbf6;
}
.note-box.trouble {
  --note: #d97706;
  --sign: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.300a1 1 0 0 0 0 1.400l1.600 1.600a1 1 0 0 0 1.400 0l3.770-3.770a6 6 0 0 1-7.940 7.940l-6.910 6.910a2.120 2.120 0 0 1-3-3l6.910-6.910a6 6 0 0 1 7.940-7.940l-3.760 3.760z'/%3E%3C/svg%3E");
}

.empty {
  padding: 150px 40px 40px;
  border-radius: 20px;
  background: #fff url('assets/mascot/search.svg') center 28px / 104px no-repeat;
}
.faq details {
  border-radius: 16px;
  box-shadow: 0 1px 2px #0b1d330a;
  transition: border-color 140ms ease;
}
.faq details[open],
.faq details:hover {
  border-color: #b9d3f6;
}
.faq summary::marker {
  color: #0b6bdc;
}
@media (max-width: 960px) {
  .hero-mascot {
    width: 96px;
    right: 14px;
    bottom: 10px;
    opacity: 0.9;
  }
  .toc {
    padding: 10px;
  }
}
@media (max-width: 560px) {
  .hero-mascot {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .btn,
  .toc a {
    transition: none;
  }
  .btn:hover {
    transform: none;
  }
}

/* System version picker (Хялбар · Дунд · Өргөтгөсөн) */
.version-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0 0 8px;
  color: #fff;
  font-weight: 600;
}
#version-label {
  font-size: 16px;
}
.versions-pick {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: #ffffff24;
  box-shadow: inset 0 0 0 1px #ffffff40;
}
.versions-pick button {
  border: 0;
  background: none;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  border-radius: 999px;
  padding: 8px 18px;
  min-height: 40px;
  cursor: pointer;
}
.versions-pick button[aria-pressed='true'] {
  background: #fff;
  color: #0a4fae;
  box-shadow: 0 2px 8px #0b1d3333;
}
.all-levels {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}
.all-levels input {
  width: 18px;
  height: 18px;
  accent-color: #fff;
}
.versions-link {
  color: #fff;
  font-size: 14px;
}
.version-note {
  margin: 0 0 18px;
  color: #ffffffd9;
  font-size: 14px;
}
.tag.level {
  --tone: #7c3aed;
}
.tag.level.off {
  --tone: #b45309;
}

/* The three versions explained */
.versions {
  max-width: 1240px;
  margin: 0 auto;
  padding: 8px clamp(16px, 4vw, 40px) 24px;
  scroll-margin-top: 80px;
}
.versions h2 {
  font-size: 22px;
  color: var(--ink);
}
.version-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.version-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid #8fb6ea;
  border-radius: 16px;
  padding: 16px 18px;
}
.version-card.current {
  border-top-color: #0b6bdc;
  box-shadow: 0 10px 28px -18px #0b1d3380;
}
.version-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  font-size: 19px;
  color: var(--ink);
}
.version-card .badge {
  font-size: 12px;
  font-weight: 700;
  color: #0a4fae;
  background: #e8f1fd;
  border-radius: 999px;
  padding: 2px 9px;
}
.version-card p {
  margin: 0 0 8px;
  color: var(--muted);
}
.version-card .menu {
  color: var(--text);
  font-size: 14px;
}
.version-card ul {
  margin: 0 0 10px;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.55;
}
.link-button {
  border: 1px solid #b9d3f6;
  background: #f3f8ff;
  color: #0a4fae;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
}
.version-how {
  margin-top: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 18px;
}
.version-how h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--ink);
}
.version-how ol {
  margin: 0 0 8px;
  padding-left: 22px;
  line-height: 1.6;
}
.version-how a {
  color: #0b6bdc;
  font-weight: 600;
}
@media (max-width: 560px) {
  .version-bar {
    gap: 8px 10px;
  }
  .versions-pick {
    width: 100%;
  }
  .versions-pick button {
    flex: 1;
    padding: 8px 6px;
    font-size: 15px;
  }
}
