@font-face {
  font-family: Bungee;
  src: url('/fonts/bungee.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url('/fonts/inter-var.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --guide-ink: #18191c;
  --guide-muted: #565a63;
  --guide-line: #dedfe3;
  --guide-blue: #174d96;
  --guide-selected: #edf4ff;
  --guide-display: Bungee, system-ui, sans-serif;
  --guide-reading: Inter, system-ui, sans-serif;
}
.guide-library, .guide-library * { box-sizing: border-box; }
body.guide-library {
  margin: 0;
  background: white;
  color: var(--guide-ink);
  font: 16px/1.55 var(--guide-reading);
}
.guide-library [hidden] { display: none !important; }
.guide-library a { color: inherit; }
.guide-library :is(a, summary, input, button):focus-visible {
  outline: 3px solid #3376cc;
  outline-offset: 3px;
}
.visually-hidden, .skip-content:not(:focus) {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-content:focus { position: absolute; z-index: 10; padding: 12px; background: white; }
.guides-header { border-bottom: 1px solid var(--guide-line); }
.guides-header-inner, .guide-layout {
  max-width: 1480px;
  margin-inline: auto;
  padding-inline: clamp(20px, 3.75vw, 56px);
}
.guides-header-inner {
  min-height: 67px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.guides-brand, .guides-header nav { display: flex; align-items: center; gap: 10px; }
.guides-brand {
  font: clamp(15px, 1.5vw, 20px)/1.2 var(--guide-display);
  text-decoration: none;
}
.guides-header nav a {
  padding: 8px 13px;
  border-radius: 7px;
  font: 12px/1.4 var(--guide-display);
  text-decoration: none;
}
.guides-header nav .app-link { border: 1px solid var(--guide-ink); }
html:lang(en) .guides-header .app-link { white-space: nowrap; }
.guides-header nav a:hover { background: #f2f3f5; }

.guide-layout {
  display: grid;
  grid-template-columns: minmax(190px, 245px) minmax(0, 1fr);
  column-gap: clamp(26px, 4.6vw, 72px);
  align-items: start;
  min-height: 74vh;
  padding-block: clamp(22px, 3vw, 44px) 80px;
}
.guide-sidebar, .guide-outline {
  position: sticky;
  top: 16px;
  min-width: 0;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.guide-sidebar {
  border-inline-end: 1px solid var(--guide-line);
  padding-block: 3px 12px;
  padding-inline: 0 clamp(14px, 1.8vw, 26px);
}
.mobile-nav[open] > .browse-toggle { display: none; }
.browse-toggle { cursor: pointer; }
.guide-layout :is(p, a, span, small, label, input, button, strong, li, h2, h3, summary, figcaption) {
  font-family: var(--guide-reading) !important;
}
.guide-layout :is(h1, h2, h3, p, a, summary, input, button) { overflow-wrap: anywhere; }
.guide-search {
  position: relative;
  display: flex;
  gap: 7px;
  align-items: center;
  margin: 0 0 17px;
  padding: 8px 10px;
  border: 1px solid #c4c7ce;
  border-radius: 8px;
  background: white;
}
.guide-search::before {
  content: '';
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23565a63' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='8.4' cy='8.4' r='5.6'/%3E%3Cpath d='m12.6 12.6 4.3 4.3'/%3E%3C/svg%3E");
}
.guide-search:focus-within { border-color: #3270ba; }
.guide-search svg { flex: 0 0 auto; width: 17px; height: 17px; color: var(--guide-muted); }
.guide-search input {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 2px;
  border: 0;
  background: transparent;
  color: var(--guide-ink);
  font-size: 14px;
  line-height: 1.3;
}
.guide-search input:focus-visible { outline: none; }
.guide-search:has(input:focus-visible) { outline: 2px solid #3376cc; outline-offset: 2px; }
.guide-search input::placeholder { color: #626772; opacity: 1; }
.guide-search button {
  padding: 2px 4px;
  border: 0;
  background: none;
  color: var(--guide-blue);
  font-size: 12px;
  cursor: pointer;
}
.guide-nav { display: grid; gap: 3px; }
.guide-nav a, #search-results a {
  display: block;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #383d46;
  font-size: 14px;
  line-height: 1.35;
  text-decoration: none;
}
.guide-nav :is(.nav-overview, .nav-single, .nav-category, .nav-utility) { font-weight: 630; }
.guide-nav .nav-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.nav-category::after {
  content: '';
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  margin-inline-end: 3px;
  border-inline-end: 1.5px solid currentColor;
  border-block-end: 1.5px solid currentColor;
  transform: rotate(-45deg);
}
[dir="rtl"] .nav-category::after { transform: rotate(45deg); }
.nav-category[aria-expanded="true"]::after { transform: rotate(45deg); }
[dir="rtl"] .nav-category[aria-expanded="true"]::after { transform: rotate(-45deg); }
.guide-nav a:hover, #search-results a:hover { background: #f3f4f6; color: var(--guide-ink); }
.guide-nav a[aria-current="page"], .guide-nav a[aria-current="page"]:hover {
  border-color: #c4d9f4;
  background: var(--guide-selected);
  color: var(--guide-blue);
  font-weight: 720;
}
.topic-set .topic-children {
  margin: 3px 0 8px;
  margin-inline-start: 11px;
  padding-inline-start: 6px;
  border-inline-start: 1px solid var(--guide-line);
}
.topic-children .nav-guide { padding-block: 7px; font-size: 13.5px; }
#search-results { min-width: 0; }
#search-results :is(p, small) { color: var(--guide-muted); font-size: 13px; }
#search-results small { display: block; margin-top: 2px; }
#search-results a { margin-block: 2px; font-weight: 610; }

.guide-content {
  width: 100%;
  max-width: 930px;
  min-width: 0;
  padding-block-start: 1px;
}
.crumbs {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px 8px;
  margin: 0 0 17px;
  color: var(--guide-muted);
  font-size: 13px;
  font-weight: 550;
  line-height: 1.45;
}
.crumbs a { color: var(--guide-muted); text-decoration: none; }
.crumbs a:hover { color: var(--guide-blue); text-decoration: underline; }
.guide-content h1 {
  margin: 0;
  font: 400 clamp(34px, 3.15vw, 48px)/1.13 var(--guide-display) !important;
  letter-spacing: -.032em;
}
.guide-content .guide-intro {
  max-width: 68ch;
  margin: 13px 0 25px;
  color: var(--guide-muted);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.55;
}
.guide-content h2 {
  margin: 28px 0 12px;
  color: var(--guide-ink);
  font-size: 21px;
  line-height: 1.35;
  letter-spacing: -.022em;
}
.start-link, .guide-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 100%;
  padding: 10px 16px;
  border: 1px solid var(--guide-ink);
  border-radius: 7px;
  font-size: 15px;
  font-weight: 680;
  line-height: 1.4;
  text-decoration: none;
}
.guide-content .start-link, .guide-content .guide-action { background: var(--guide-ink); color: white; }
.guide-content :is(.start-link, .guide-action):hover { background: #363940; }
.category-grid, .topic-entries {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(18px, 2.4vw, 36px);
  padding: 0;
  list-style: none;
}
.category-link, .topic-link {
  position: relative;
  display: block;
  height: 100%;
  padding: 15px 4px;
  padding-inline-end: 23px;
  border-bottom: 1px solid var(--guide-line);
  text-decoration: none;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.35;
}
/* Topic pages group tools by their role, so the right-hand index can be scanned. */
.guide-subtopic + .guide-subtopic { margin-top: 26px; }
.guide-subtopic h2 { margin: 0 0 3px; font-size: 18px; }
.guide-content .guide-subtopic .topic-entries { max-width: 70ch; grid-template-columns: minmax(0,1fr); }
.guide-subtopic .topic-link { padding-block: 10px; }
.guide-steps .step-action { display: inline-block; margin-top: 5px; color: var(--guide-blue); font-size: 14px; text-underline-offset: 3px; }
.guide-steps .step-image { max-width: min(100%, 530px); height: auto; max-height: 280px; object-fit: contain; object-position: left center; }
[dir="rtl"] .guide-steps .step-image { object-position: right center; }
.category-link::after, .topic-link::after {
  content: '';
  position: absolute;
  inset-inline-end: 6px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-top: 1.6px solid currentColor;
  border-inline-end: 1.6px solid currentColor;
  color: #6a7080;
  transform: translateY(-50%) rotate(45deg);
}
.category-link strong, .topic-link strong { font-size: 16px; font-weight: 670; }
.category-link [aria-hidden], .topic-link [aria-hidden] { display: none; }
.category-link small, .topic-link small {
  display: block;
  margin-top: 4px;
  color: var(--guide-muted);
  font-size: 13px;
  font-weight: 450;
}
.category-link:hover, .topic-link:hover { background: #f5f8fc; color: var(--guide-blue); }
.category-grid { margin-top: 18px; }
.topic-entries:has(.video-link) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.video-link { display: flex; flex-direction: column; gap: 10px; padding: 0 0 12px; }
.video-link::after { display: none; }
.video-link img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--guide-line);
  border-radius: 6px;
}
.guide-media {
  margin: 25px 0 24px;
}
.guide-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 1px solid #d4d6db;
  border-radius: 9px;
  background: #14161c;
}
.guide-media figcaption { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 7px 0 0; color: var(--guide-muted); font-size: 13px; }
.guide-steps {
  list-style: none;
  counter-reset: guide-step;
  margin: 22px 0;
  padding: 0;
  border-top: 1px solid var(--guide-line);
}
.guide-steps li {
  position: relative;
  counter-increment: guide-step;
  padding-block: 21px;
  padding-inline-start: 45px;
  border-bottom: 1px solid var(--guide-line);
  scroll-margin-top: 20px;
}
.guide-steps li::before {
  content: counter(guide-step);
  position: absolute;
  inset-inline-start: 0;
  top: 20px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--guide-selected);
  color: var(--guide-blue);
  font-size: 15px;
  line-height: 1;
  font-weight: 730;
}
.guide-steps h2 { margin: 0 0 5px; font-size: clamp(19px, 1.7vw, 24px); scroll-margin-top: 20px; }
.guide-steps p { max-width: 70ch; margin: 0; font-size: 16px; line-height: 1.55; }
.step-image {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 380px;
  margin-top: 13px;
  border-radius: 6px;
}
.guide-outline {
  border-inline-start: 1px solid var(--guide-line);
  padding-inline-start: 16px;
}
.guide-outline :is(h2, h3, strong, p) {
  display: block;
  margin: 2px 0 8px;
  font-size: 13px;
  font-weight: 700;
}
.guide-outline a {
  display: block;
  padding-block: 5px;
  color: var(--guide-muted);
  font-size: 13px;
  line-height: 1.45;
  text-decoration: none;
}
.guide-outline a:hover, .guide-outline a[aria-current] { color: var(--guide-blue); text-decoration: underline; }

.guide-archive { margin: 24px 0 0; }
.guide-archive > summary { cursor: pointer; font-size: 15px; font-weight: 640; }
.archive-search { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.archive-search label { font-size: 14px; }
.archive-search input { min-width: 0; max-width: 100%; padding: 6px 10px; border: 1px solid #c4c7ce; border-radius: 6px; font-size: 16px; }
.guide-archive .st-row { margin-block: 20px; }
.guide-archive h2 { font-size: 17px; }
.hub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 20px; }
.hub-link { padding-block: 3px; color: var(--guide-muted); font-size: 13px; text-decoration: none; }
.hub-link:hover { text-decoration: underline; }

html:is(:lang(ar),:lang(he),:lang(fa),:lang(ps),:lang(ur)) .guide-layout { direction: rtl; }
html:is(:lang(ar),:lang(he),:lang(fa),:lang(ps),:lang(ur)) :is(.category-link,.topic-link)::after {
  transform: translateY(-50%) rotate(-45deg);
}

@media (min-width: 1120px) {
  .guide-layout:has(> .guide-outline) {
    grid-template-columns: minmax(190px, 235px) minmax(0, 1fr) minmax(145px, 195px);
    column-gap: clamp(25px, 3.6vw, 55px);
  }
}
@media (max-width: 1119px) {
  .guide-outline { display: none; }
}
@media (max-width: 760px) {
  .guides-header-inner { min-height: 54px; }
  .guides-brand { gap: 6px; }
  .guides-header nav { gap: 2px; }
  .guides-header nav a { padding: 6px 9px; font-size: 11px; }
  .guide-layout { display: block; min-height: 65vh; padding-block: 14px 52px; }
  .guide-sidebar { position: static; max-height: none; overflow: visible; margin-bottom: 24px; padding: 0; border: 0; }
  .mobile-nav { border: 1px solid #cbced5; border-radius: 7px; }
  .mobile-nav > .browse-toggle, .mobile-nav[open] > .browse-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 12px;
    font-size: 14px;
    font-weight: 670;
    cursor: pointer;
    list-style: none;
  }
  .browse-toggle::-webkit-details-marker { display: none; }
  .browse-toggle::after {
    content: '';
    width: 8px;
    height: 8px;
    margin-inline: 5px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    flex-shrink: 0;
  }
  .mobile-nav[open] > .browse-toggle::after { transform: translateY(2px) rotate(225deg); }
  .sidebar-body { padding: 4px 10px 12px; }
  .guide-search { margin-bottom: 9px; }
  .guide-search input { font-size: 16px; }
  .guide-nav a, #search-results a { padding-block: 9px; }
  .crumbs { margin-bottom: 11px; }
  .guide-content h1 { font-size: clamp(30px, 7.6vw, 42px); }
  .guide-content .guide-intro { margin-block: 9px 20px; }
  .guide-media { margin-block: 18px; }
}
@media (max-width: 540px) {
  .guides-header-inner, .guide-layout { padding-inline: 16px; }
  html:not(:lang(en)) .guides-header nav > a:first-child { display: none; }
  .guides-header nav { min-width: 0; }
  .guides-header .app-link { max-width: 100%; text-align: center; overflow-wrap: anywhere; }
  .guides-header .app-link span { display: none; }
  .guides-header-inner { gap: 6px; }
  .guides-header nav a { padding-inline: 7px; }
  .category-grid, .topic-entries, .hub-grid { grid-template-columns: minmax(0, 1fr); }
  .category-link, .topic-link { padding-block: 12px; }
  .topic-entries:has(.video-link) { grid-template-columns: 1fr; gap: 0; }
  .video-link { flex-direction: row; gap: 12px; align-items: center; }
  .video-link img { width: 96px; flex-shrink: 0; }
  .guide-steps { margin-block: 18px; }
  .guide-steps li { padding-block: 16px; padding-inline-start: 37px; }
  .guide-steps li::before { top: 16px; width: 26px; height: 26px; font-size: 14px; }
}

@media (max-width: 350px) {
  .guides-header nav > a:first-child { display: none; }
}
