@import url("https://api.fontshare.com/v2/css?f[]=general-sans@400,500,600,700&display=swap");

:root {
  --brand-primary: #6a1018;
  --brand-dark: #4a0b10;
  --brand-light: #7c1620;
  --brand-accent: #c8102e;
  --annotation-color: #c8102e;
  --background: #f7f7f8;
  --surface: #ffffff;
  --text: #1a1a1a;
  --muted: #6b7280;
  --border: #e7e7ea;
  --info-bg: #e8f1fb;
  --info-text: #1e6fd9;
  --success-bg: #e7f5ec;
  --success-text: #1e8e4e;
  --warning-bg: #fdf3e3;
  --warning-text: #9b5d00;
  --danger-bg: #fceaea;
  --sidebar-width: 300px;
  --radius: 12px;
  --pill: 999px;
  --font: "General Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
.hidden, [hidden] { display: none !important; }

.reading-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 3px;
  pointer-events: none;
}
.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--brand-accent);
  transition: width .1s linear;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
  max-width: 1320px;
  margin: 0 auto;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  color: #fff;
  background: linear-gradient(180deg, var(--brand-dark), var(--brand-light));
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .25) transparent;
}

.brand {
  padding: 2px 4px 18px;
  display: block;
}
.brand img {
  width: 174px;
  height: 40px;
  margin-bottom: 8px;
  display: block;
}
.brand small {
  padding-left: 2px;
  display: block;
  color: rgba(255, 255, 255, .7);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .02em;
}

.role-selector { position: relative; margin-bottom: 6px; }
.role-selector > p,
.role-guides > h2 {
  margin: 0 2px 6px;
  color: rgba(255, 255, 255, .6);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.role-toggle {
  width: 100%;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 10px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  cursor: pointer;
  text-align: left;
  transition: background-color .15s ease, border-color .15s ease;
}
.role-toggle:hover { background: rgba(255, 255, 255, .17); }
.role-toggle > span:first-child { flex: 1; min-width: 0; }
.role-toggle strong {
  display: block;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.role-toggle small {
  display: block;
  color: rgba(255, 255, 255, .62);
  font-size: 10.5px;
  font-weight: 500;
}
.role-chevron { transition: transform .2s ease; }
.role-selector.open .role-chevron { transform: rotate(180deg); }

.role-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  z-index: 40;
  max-height: min(520px, calc(100vh - 210px));
  padding: 6px;
  display: block;
  overflow-y: auto;
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px) scale(.985);
  transform-origin: top center;
  visibility: hidden;
  transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s;
}
.role-selector.open .role-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  visibility: visible;
  transition-delay: 0s;
}
.role-option {
  width: 100%;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background-color .12s ease;
}
.role-option:hover { background: var(--background); }
.role-option[aria-selected="true"] { background: var(--danger-bg); }
.role-option-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--brand-primary);
}
.role-option[aria-selected="true"] .role-option-dot { background: var(--brand-accent); }
.role-option-copy { min-width: 0; flex: 1; }
.role-option-copy strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.25;
}
.role-option-copy small { display: block; color: var(--muted); font-size: 11px; }
.platform-tag {
  padding: 3px 8px;
  flex: 0 0 auto;
  border-radius: var(--pill);
  background: var(--background);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
}

.guide-search {
  position: relative;
  margin: 16px 0 14px;
  display: block;
}
.guide-search > span {
  position: absolute;
  top: 50%;
  left: 11px;
  color: rgba(255, 255, 255, .58);
  font-size: 20px;
  line-height: 1;
  transform: translateY(-52%);
}
.guide-search input {
  width: 100%;
  padding: 9px 12px 9px 36px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 10px;
  outline: 0;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 13.5px;
}
.guide-search input::placeholder { color: rgba(255, 255, 255, .55); }
.guide-search input:focus {
  border-color: rgba(255, 255, 255, .42);
  background: rgba(255, 255, 255, .15);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .15);
}

.sidebar-guides { flex: 0 0 auto; }
.role-guides > h2 { margin: 6px 8px 10px; }
.guide-block { margin-bottom: 1px; }
.guide-nav-item {
  width: 100%;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-radius: 9px;
  color: rgba(255, 255, 255, .82);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.guide-nav-item:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.guide-nav-item.active { background: rgba(255, 255, 255, .12); color: #fff; }
.guide-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  opacity: .82;
}
.guide-icon svg { width: 18px; height: 18px; display: block; }
.guide-nav-item.active .guide-icon { opacity: 1; }
.guide-nav-label {
  min-width: 0;
  flex: 1;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.25;
}
.guide-nav-chevron { width: 15px; height: 15px; flex: 0 0 15px; opacity: .55; transition: transform .2s ease; }
.guide-nav-chevron svg { display: block; }
.guide-nav-item.active .guide-nav-chevron { opacity: .9; transform: rotate(180deg); }
.step-nav {
  position: relative;
  max-height: 0;
  margin: 0 0 0 27px;
  padding-left: 14px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  visibility: hidden;
  transition: max-height .2s ease, margin .2s ease, opacity .14s ease, transform .2s ease, visibility 0s linear .2s;
}
.step-nav.open {
  max-height: 620px;
  margin-top: 2px;
  margin-bottom: 8px;
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  transition-delay: 0s;
}
.step-nav::before {
  content: "";
  position: absolute;
  top: 2px;
  bottom: 15px;
  left: 0;
  width: 1.5px;
  background: rgba(255, 255, 255, .2);
}
.step-nav-item {
  position: relative;
  width: 100%;
  padding: 7px 8px;
  display: block;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: rgba(255, 255, 255, .62);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.25;
  text-align: left;
  transition: background-color .12s ease, color .12s ease;
}
.step-nav-item::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -14px;
  width: 11px;
  height: 1.5px;
  background: rgba(255, 255, 255, .2);
}
.step-nav-item:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.step-nav-item.active { color: #fff; }
.step-nav-item.active::before { height: 2px; background: #fff; }
.sidebar-footer {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .6);
  font-size: 11.5px;
}

.main-content { min-width: 0; padding: 40px 56px 80px; }
.annotation-toolbar {
  margin: 0 0 18px;
  display: flex;
  justify-content: flex-end;
}
.annotation-toggle {
  min-height: 28px;
  padding: 3px 5px 3px 9px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border);
  border-radius: var(--pill);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 600;
  user-select: none;
}
.annotation-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.annotation-switch {
  position: relative;
  width: 28px;
  height: 16px;
  flex: 0 0 28px;
  border-radius: var(--pill);
  background: #c7c9ce;
  transition: background-color .16s ease;
}
.annotation-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
  transition: transform .16s ease;
}
.annotation-toggle input:checked + .annotation-switch { background: var(--annotation-color); }
.annotation-toggle input:checked + .annotation-switch::after { transform: translateX(12px); }
.annotation-toggle input:focus-visible + .annotation-switch { outline: 2px solid var(--brand-accent); outline-offset: 2px; }
.annotations-hidden .annotations,
.annotations-hidden .annotation-caption { display: none; }
.annotation-fallback { display: none; }
.annotations-hidden .annotation-fallback { display: block; }
.guide { display: none; max-width: 720px; }
.guide.active { display: block; animation: guide-enter .18s ease-out both; }
.role-guides:not(.hidden) { animation: nav-enter .16s ease-out both; }

@keyframes guide-enter {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes nav-enter {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}
.back-to-guides {
  margin: 0 0 22px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}
.back-to-guides:hover { color: var(--brand-accent); }
.eyebrow {
  margin: 0;
  color: var(--brand-accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.guide-hero h1 {
  margin: 8px 0 12px;
  font-size: clamp(2rem, 4vw, 2.32rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.12;
}
.guide-summary {
  margin: 0 0 20px;
  color: #3a3a3a;
  font-size: 18px;
  line-height: 1.55;
}
.guide-meta { margin-bottom: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.role-pill,
.meta-badge {
  min-height: 34px;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: var(--pill);
  font-size: 12.5px;
  font-weight: 600;
}
.role-pill { padding-inline: 14px; background: var(--brand-primary); color: #fff; }
.role-pill > span { width: 7px; height: 7px; border-radius: 50%; background: #fff; opacity: .85; }
.meta-badge { border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-weight: 500; }

.support-card {
  margin: 22px 0;
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.support-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--background);
  color: var(--muted);
}
.support-icon svg { display: block; }
.support-card > div > strong { display: block; margin-bottom: 3px; font-size: 14.5px; font-weight: 600; }
.support-card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.support-card p strong { display: inline; margin: 0; font-size: inherit; font-weight: 600; }
.support-card a { color: var(--brand-accent); font-weight: 600; }

.prerequisites {
  margin: 22px 0;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.prerequisites h2 {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.prerequisites ul { margin: 0; padding: 0; list-style: none; }
.prerequisites li { padding: 4px 0; display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; }
.prerequisites li span { color: var(--success-text); font-weight: 700; }

.steps { margin-top: 34px; }
.step {
  position: relative;
  padding-bottom: 38px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 18px;
  scroll-margin-top: 24px;
}
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 40px;
  bottom: 6px;
  left: 17px;
  width: 2px;
  background: var(--border);
}
.step-number {
  width: 36px;
  height: 36px;
  z-index: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}
.step-body { min-width: 0; }
.step-body h2 { margin: 4px 0 8px; font-size: 20px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.step-body > p:first-of-type { margin: 0 0 14px; font-size: 15px; }
.step-body > p:first-of-type strong { color: var(--ink); font-weight: 700; }
.screenshot {
  position: relative;
  margin: 6px 0 2px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #f4f5f7;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
}
.screenshot img { width: 100%; height: auto; display: block; }
.annotations {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.annotation-box {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  border: clamp(2px, .22vw, 3px) dashed var(--annotation-color);
  border-radius: clamp(7px, 1vw, 13px);
  background: color-mix(in srgb, var(--annotation-color) 4%, transparent);
  box-shadow: 0 0 0 2px color-mix(in srgb, #fff 65%, transparent);
}
.annotation-number {
  position: absolute;
  left: var(--pin-x);
  top: var(--pin-y);
  width: clamp(20px, 2.15vw, 28px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--annotation-color);
  color: #fff;
  font-size: clamp(9px, .9vw, 12px);
  font-weight: 700;
  line-height: 1;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}
.annotation-arrow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.annotation-arrow line {
  stroke: var(--annotation-color);
  stroke-width: .65;
  stroke-dasharray: 4 2.5;
  vector-effect: non-scaling-stroke;
}
.annotation-arrow circle {
  fill: #fff;
  stroke: var(--annotation-color);
  stroke-width: .65;
  vector-effect: non-scaling-stroke;
}
.screenshot.phone-shot {
  position: relative;
  padding: 4px 0;
  display: flex;
  justify-content: center;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.screenshot.phone-shot .annotations {
  left: 50%;
  width: min(320px, 100%);
  transform: translateX(-50%);
}
.screenshot.phone-shot img {
  width: min(320px, 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.screenshot-caption { margin: 8px 2px 0 !important; color: var(--muted); font-size: 12px !important; line-height: 1.45; }
.note {
  margin: 14px 0;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  border-radius: 10px;
  background: var(--warning-bg);
  color: #3d3428;
  font-size: 13.5px;
}
.note-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  display: grid;
  place-items: center;
  border: 1px solid var(--warning-text);
  border-radius: 50%;
  color: var(--warning-text);
  font-size: 11px;
  font-weight: 700;
}
.note p { margin: 0; }

.done-card {
  margin: 8px 0 6px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: var(--radius);
  background: var(--success-bg);
}
.done-card > span {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--success-text);
  color: #fff;
  font-weight: 700;
}
.done-card p { margin: 0; font-size: 14.5px; }
.done-card strong { color: var(--success-text); }

.troubleshooting > h2 { margin: 44px 0 10px; font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.trouble-list { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.trouble-item { border-top: 1px solid var(--border); }
.trouble-item:first-child { border-top: 0; }
.trouble-item summary {
  padding: 15px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 600;
}
.trouble-item summary::-webkit-details-marker { display: none; }
.question-mark {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--background);
  color: var(--muted);
  font-size: 13px;
}
.trouble-chevron { margin-left: auto; color: var(--muted); font-size: 20px; transition: transform .2s ease; }
.trouble-item[open] .trouble-chevron { transform: rotate(90deg); }
.trouble-item > p { margin: 0; padding: 0 18px 16px 52px; color: #444; font-size: 14px; }
.support-card-bottom { margin-top: 24px; }

.pager { margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pager a {
  padding: 14px 16px;
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.pager a:hover { border-color: var(--brand-accent); }
.pager a.next { text-align: right; }
.pager small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 500; }
.pager strong { display: block; margin-top: 2px; font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.pager-empty { visibility: hidden; }

.mobile-header,
.navigation-scrim { display: none; }

@media (max-width: 820px) {
  .app-shell { grid-template-columns: 1fr; }
  .mobile-header {
    position: sticky;
    top: 0;
    z-index: 70;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(180deg, var(--brand-dark), var(--brand-light));
    color: #fff;
  }
  .mobile-header strong { font-size: 15px; font-weight: 700; }
  .mobile-header > span { margin-left: auto; color: rgba(255, 255, 255, .7); font-size: 11px; font-weight: 500; }
  .mobile-menu-toggle {
    width: 38px;
    height: 38px;
    padding: 9px;
    display: grid;
    align-content: center;
    gap: 4px;
    border: 0;
    border-radius: 9px;
    background: rgba(255, 255, 255, .14);
    cursor: pointer;
  }
  .mobile-menu-toggle span { height: 2px; border-radius: 2px; background: #fff; }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 90;
    width: var(--sidebar-width);
    transform: translateX(-100%);
    transition: transform .25s ease;
  }
  .sidebar.open { transform: none; }
  .navigation-scrim.show {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: block;
    border: 0;
    background: rgba(0, 0, 0, .42);
    cursor: pointer;
  }
  .main-content { padding: 24px 20px 64px; }
  .annotation-toolbar { margin-bottom: 14px; }
  .guide-hero h1 { font-size: 29px; }
  .guide-summary { font-size: 16px; }
}

@media (max-width: 520px) {
  .main-content { padding-inline: 16px; }
  .step { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; }
  .step-number { width: 32px; height: 32px; font-size: 13px; }
  .step:not(:last-child)::before { top: 36px; left: 15px; }
  .step-body h2 { margin-top: 2px; font-size: 18px; }
  .pager { grid-template-columns: 1fr; }
  .pager-empty { display: none; }
}

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

:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
}
