/* OnMyLead Help Center. Same palette, type and buttons as the onmylead.com showcase
   (components/showcase.web.tsx); the trail blaze diamond marks each topic, as it marks
   waypoints in the app. */
@font-face { font-family: 'Barlow'; font-weight: 500; font-display: swap; src: url(/help/assets/fonts/Barlow_500Medium.ttf) format('truetype'); }
@font-face { font-family: 'Barlow'; font-weight: 700; font-display: swap; src: url(/help/assets/fonts/Barlow_700Bold.ttf) format('truetype'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-display: swap; src: url(/help/assets/fonts/BarlowCondensed_700Bold.ttf) format('truetype'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 800; font-display: swap; src: url(/help/assets/fonts/BarlowCondensed_800ExtraBold.ttf) format('truetype'); }

:root {
  --night: #0A1626; --panel: #12223A; --ridge: #1B2F4C; --line: #27406A;
  --red: #E5262E; --blue: #3B86F7; --text: #F1F4F8; --soft: #C9D3E1; --dust: #97A7BE; --sand: #E9B97A;
  --wrap: 1180px; --gutter: 28px;
  --body: 'Barlow', system-ui, sans-serif; --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--night); scroll-padding-top: 96px; }
body { margin: 0; background: var(--night); color: var(--text); font: 500 18px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: #6FA6FA; }
b, strong { font-weight: 700; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: 1.08; letter-spacing: 0.005em; margin: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 10px; background: var(--blue); color: #fff; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; padding-top: 40px; padding-bottom: 80px; }
.narrow h1 { font-size: 46px; margin: 10px 0 18px; }

/* Header and footer, as on the showcase */
.bar { position: sticky; top: 0; z-index: 20; height: 72px; display: flex; align-items: center; gap: 28px;
  padding: 0 max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
  background: rgba(10, 22, 38, 0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(39, 64, 106, 0.6); }
.brand img { height: 34px; width: auto; }
.bar nav { display: flex; gap: 26px; margin-left: 8px; }
.bar nav a { text-decoration: none; color: var(--soft); font-weight: 700; font-size: 16px; }
.bar nav a:hover, .bar nav a[aria-current='page'] { color: #fff; }
.bar nav a[aria-current='page'] { box-shadow: inset 0 -3px 0 var(--red); padding-bottom: 4px; }
.bar > .btn { margin-left: auto; }
.notice { margin: 0; padding: 10px var(--gutter); background: #2A2210; color: var(--sand); font-size: 15px; text-align: center; border-bottom: 1px solid #4A3A18; }
.foot { max-width: var(--wrap); margin: 40px auto 0; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding: 40px var(--gutter) 56px;
  color: var(--dust); font-size: 15px; border-top: 1px solid var(--ridge); }
.foot img { height: 30px; width: auto; }
.foot p { margin: 0; }
.foot nav { margin-left: auto; display: flex; gap: 22px; flex-wrap: wrap; }
.foot a { color: var(--dust); }
.foot a:hover { color: var(--text); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 14px; border: 0;
  font: 800 21px/1 var(--display); letter-spacing: 0.01em; text-decoration: none; cursor: pointer; color: #fff; }
.btn:hover { color: #fff; }
.btn-red { background: var(--red); }
.btn-red:hover { background: #F2353D; }
.btn-blue { background: var(--blue); }
.btn-line { background: transparent; border: 1.5px solid rgba(241, 244, 248, 0.45); }
.btn-line:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 18px; border-radius: 11px; }

/* Home: a topo-map trailhead with one big search */
.hero { position: relative; z-index: 2; padding: 72px 0 64px; border-bottom: 1px solid var(--ridge);
  background: radial-gradient(120% 90% at 85% 0%, #16304F 0%, var(--night) 62%); }
.topo { position: absolute; inset: 0; opacity: 0.22; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='420' viewBox='0 0 640 420' fill='none' stroke='%233B86F7' stroke-width='1.2'%3E%3Cpath d='M-20 300c80-40 140-10 210-50s90-120 180-110 120 70 200 40 80-60 110-60'/%3E%3Cpath d='M-20 330c90-40 150-14 225-56s100-118 175-106 115 74 205 44 70-50 90-52'/%3E%3Cpath d='M-20 360c100-38 160-16 238-60s108-112 168-102 112 78 210 48 60-40 70-42'/%3E%3Cpath d='M-20 390c110-36 170-18 250-64s116-106 162-98 108 82 214 52'/%3E%3Cpath d='M300 150c30-22 70-24 96-6s20 52-12 64-74 8-90-14 -16-30 6-44z'/%3E%3Cpath d='M318 158c20-14 46-14 62-2s12 32-8 40-46 4-56-10-10-18 2-28z'/%3E%3Cpath d='M-20 80c70 10 120 50 190 30s100-80 170-70'/%3E%3Cpath d='M-20 50c80 12 130 50 200 28s100-78 180-68'/%3E%3Cpath d='M440 30c40 30 90 40 140 20s60-30 80-30'/%3E%3C/svg%3E");
  background-size: 640px 420px; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 40%); mask-image: linear-gradient(90deg, transparent 0%, #000 40%); }
.hero .wrap { position: relative; }
.hero h1 { font-size: clamp(54px, 9vw, 112px); line-height: 0.92; max-width: 9em; }
.lede { color: var(--soft); font-size: 20px; margin: 16px 0 0; max-width: 40em; }
.hero .lede { font-size: 22px; max-width: 30em; }
.quick { margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; color: var(--dust); font-size: 15px; }
.quick a { padding: 6px 12px; border-radius: 999px; background: rgba(27, 47, 76, 0.7); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 15px; }
.quick a:hover { border-color: var(--blue); }

/* Search */
.search { position: relative; display: flex; align-items: center; gap: 10px; margin-top: 22px; max-width: 760px;
  padding: 6px 6px 6px 18px; border-radius: 18px; background: var(--panel); border: 1.5px solid var(--line); }
.search:focus-within { border-color: var(--blue); }
.search svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--dust); stroke-width: 2.2; stroke-linecap: round; }
.search input { flex: 1; min-width: 0; height: 48px; border: 0; background: transparent; color: var(--text); font: 500 18px var(--body); outline: none; }
.search input::placeholder { color: #6B7C95; }
.search input::-webkit-search-cancel-button { filter: invert(0.7); }
.search-big { margin-top: 34px; }
.search-big input { height: 58px; font-size: 20px; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30; padding: 6px; border-radius: 16px; background: var(--panel);
  border: 1px solid var(--line); box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.6); }
.suggest ul { list-style: none; margin: 0; padding: 0; }
.suggest a { display: flex; justify-content: space-between; gap: 16px; padding: 12px 14px; border-radius: 11px; color: var(--text); text-decoration: none; }
.suggest a span { color: var(--dust); font-size: 14px; white-space: nowrap; }
.suggest li.on a, .suggest a:hover { background: var(--ridge); }
.suggest .none { margin: 0; padding: 12px 14px; color: var(--dust); font-size: 16px; }

/* Topics */
.topics { padding: 56px 0 8px; }
.topics h2, .recent h2, .related h2 { font-size: 34px; }
.cat-grid { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.cat { display: flex; gap: 20px; align-items: flex-start; height: 100%; padding: 22px; border-radius: 18px; background: var(--panel);
  border: 1px solid transparent; color: var(--text); text-decoration: none; }
.cat:hover { border-color: var(--line); background: #152844; color: var(--text); }
.cat b { display: block; font: 800 25px/1.1 var(--display); }
.cat span span { display: block; margin-top: 6px; color: var(--soft); font-size: 16px; line-height: 1.45; }
.cat small { display: block; margin-top: 10px; color: var(--dust); font-size: 14px; }
.blaze { --s: 52px; flex: none; width: var(--s); height: var(--s); display: grid; place-items: center; position: relative; color: #fff; margin: 4px; }
.blaze::before { content: ''; position: absolute; inset: 14.6%; background: var(--blue); border-radius: 5px; transform: rotate(45deg); box-shadow: 0 0 0 2px var(--night), 0 0 0 3.5px rgba(59, 134, 247, 0.45); }
.blaze svg { position: relative; width: 44%; height: 44%; }
.cat:hover .blaze::before { background: var(--red); box-shadow: 0 0 0 2px var(--night), 0 0 0 3.5px rgba(229, 38, 46, 0.5); }

/* Article lists */
.list { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--ridge); }
.list a { display: block; padding: 16px 4px; border-bottom: 1px solid var(--ridge); color: var(--text); text-decoration: none; }
.list a:hover b { color: #fff; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.list b { display: block; font-size: 19px; }
.list span { display: block; color: var(--dust); font-size: 16px; margin-top: 2px; }
.list small { display: block; color: var(--blue); font-size: 13px; margin-top: 4px; }
.recent { padding: 48px 0 0; max-width: 820px; }
.still { margin: 56px 0 0; padding: 32px; border-radius: 20px; background: var(--panel); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 24px; }
.still h2 { font-size: 30px; }
.still p { margin: 0; color: var(--soft); grid-column: 1; }
.still .btn { grid-column: 2; grid-row: 1 / span 2; }

/* Category and article pages */
.with-side { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; padding-top: 32px; padding-bottom: 40px; }
.side { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); overflow: auto; font-size: 15px; padding-right: 6px; }
.side details { border-bottom: 1px solid var(--ridge); }
.side summary { cursor: pointer; padding: 11px 2px; font-weight: 700; color: var(--soft); list-style: none; }
.side summary::-webkit-details-marker { display: none; }
.side summary::after { content: '+'; float: right; color: var(--dust); }
.side details[open] summary::after { content: '−'; }
.side ul { list-style: none; margin: 0 0 10px; padding: 0; }
.side a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--dust); text-decoration: none; line-height: 1.35; }
.side a:hover { color: var(--text); background: var(--panel); }
.side a[aria-current='page'] { color: #fff; background: var(--ridge); box-shadow: inset 3px 0 0 var(--red); }
.content { min-width: 0; max-width: 780px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; font-size: 14px; color: var(--dust); }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--dust); }
.cat-head { display: flex; gap: 22px; align-items: center; }
.cat-head h1, .article h1 { font-size: clamp(40px, 6vw, 60px); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 18px 0 0; font-size: 14px; color: var(--dust); }
.tag { padding: 3px 10px; border-radius: 999px; background: var(--ridge); color: var(--soft); font-weight: 700; font-size: 13px; text-decoration: none; }
.tag-web { background: #13304F; color: #9CC3FF; }
.tag-pro { background: var(--red); color: #fff; }
.tag-pro:hover { color: #fff; }
.updated { margin-left: auto; }
.toc { margin: 28px 0 0; padding: 16px 20px; border-radius: 14px; background: var(--panel); font-size: 16px; }
.toc p { margin: 0 0 6px; font-weight: 700; color: var(--soft); }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.toc a { color: var(--text); }

/* Article text */
.prose { margin-top: 30px; }
.prose > * + * { margin-top: 18px; }
.prose p { margin-bottom: 0; }
.prose h2 { font-size: 34px; margin-top: 46px; padding-top: 4px; }
.prose h3 { font-size: 25px; margin-top: 32px; }
.prose h4 { font: 700 19px var(--body); margin-top: 26px; }
.prose ul, .prose ol { padding-left: 26px; margin-bottom: 0; }
.prose li + li { margin-top: 8px; }
.prose li > ul, .prose li > ol { margin-top: 8px; }
/* Numbered steps get the red step markers of the showcase's "How a Group Ride Works". */
.prose > ol { list-style: none; padding-left: 0; counter-reset: step; }
.prose > ol > li { counter-increment: step; position: relative; padding: 2px 0 0 52px; min-height: 36px; }
.prose > ol > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; background: var(--red); color: #fff; font: 800 20px/1 var(--display); }
.prose > ol > li + li { margin-top: 14px; }
.prose strong { color: #fff; }
.prose code { padding: 1px 6px; border-radius: 6px; background: var(--ridge); font-size: 0.9em; }
.prose pre { padding: 16px; border-radius: 12px; background: var(--panel); overflow: auto; font-size: 15px; }
.prose pre code { padding: 0; background: none; }
.prose blockquote { margin: 18px 0 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--line); color: var(--soft); }
.prose hr { border: 0; border-top: 1px solid var(--ridge); margin: 36px 0; }
.table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--ridge); }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--ridge); }
.prose th { background: var(--panel); font-weight: 700; color: var(--soft); }
.prose tr:last-child td { border-bottom: 0; }
.callout { padding: 16px 20px; border-radius: 14px; background: var(--panel); border-left: 4px solid var(--blue); }
.callout > * + * { margin-top: 10px; }
.callout p { margin: 0; }
.callout-label { font-weight: 700; color: #9CC3FF; font-size: 15px; }
.callout-warning { border-left-color: var(--red); background: #2A1418; }
.callout-warning .callout-label { color: #FF8C91; }
.callout-tip { border-left-color: var(--sand); }
.callout-tip .callout-label { color: var(--sand); }
.shot { margin: 26px 0 0; }
.shot img { width: auto; max-width: 100%; max-height: 640px; border-radius: 26px; border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8); }
.shot figcaption { margin-top: 10px; color: var(--dust); font-size: 15px; }
.related { margin-top: 56px; }
.helped { margin-top: 40px; padding: 18px 22px; border-radius: 14px; border: 1px dashed var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.helped p { margin: 0; color: var(--soft); }

/* Search page */
.results { margin-top: 28px; }
.count { color: var(--dust); margin: 0; }
.empty { color: var(--soft); }

/* Release notes: each version is a stop on a trail, newest at the top. The line is the route,
   the pin is a waypoint, the latest stop is where you are now (red, like the leader). */
.whats-new { margin: 56px 0 0; max-width: 820px; padding: 28px 30px; border-radius: 20px; border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(59, 134, 247, 0.12), rgba(18, 34, 58, 0.4) 60%); }
.whats-new h2 { font-size: 34px; }
.whats-new p { margin: 8px 0 18px; color: var(--soft); max-width: 40em; }
.notes-page { max-width: 900px; padding-top: 32px; padding-bottom: 40px; }
.notes-head h1 { font-size: clamp(48px, 8vw, 88px); line-height: 0.92; }
.notes-head .lede { max-width: 34em; }
.trail { --pin: 22px; --rail: 30px; list-style: none; margin: 48px 0 0; padding: 0; position: relative; }
.trail::before { content: ''; position: absolute; left: calc(var(--rail) / 2 - 1.5px); top: 18px; bottom: 0; width: 3px;
  background: repeating-linear-gradient(180deg, var(--sand) 0 14px, transparent 14px 24px); opacity: 0.55; }
.stop { position: relative; padding: 0 0 56px calc(var(--rail) + 30px); }
.stop:last-child { padding-bottom: 8px; }
.pin { position: absolute; left: calc(var(--rail) / 2 - var(--pin) / 2); top: 14px; width: var(--pin); height: var(--pin); border-radius: 5px;
  transform: rotate(45deg); background: var(--blue); box-shadow: 0 0 0 4px var(--night), 0 0 0 5.5px rgba(59, 134, 247, 0.45); }
.latest .pin { background: var(--red); box-shadow: 0 0 0 4px var(--night), 0 0 0 5.5px rgba(229, 38, 46, 0.55), 0 0 0 14px rgba(229, 38, 46, 0.12); }
.stop-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.stop-head h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; }
.ver { font-size: clamp(52px, 7vw, 72px); line-height: 0.9; color: #fff; letter-spacing: -0.01em; }
.stop-title { font-size: clamp(24px, 3vw, 30px); font-weight: 700; color: var(--soft); }
.tag-latest { background: var(--red); color: #fff; }
.stores { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.store { display: flex; flex-direction: column; padding: 9px 14px; border-radius: 12px; border: 1px dashed var(--line); font-size: 14px; line-height: 1.3; color: var(--dust); }
.store b { color: var(--soft); font-size: 15px; }
.store.on { border-style: solid; border-color: transparent; background: var(--panel); }
.store.on span { color: #8FE3A8; }
.stop-intro { margin: 20px 0 0; font-size: 20px; color: var(--text); max-width: 36em; }
.kind { margin-top: 26px; }
.kind h3 { display: flex; align-items: center; gap: 10px; font-size: 24px; }
.kind h3::before { content: ''; width: 12px; height: 12px; border-radius: 3px; transform: rotate(45deg); background: var(--k); }
.kind-new { --k: var(--blue); }
.kind-improved { --k: var(--sand); }
.kind-fixed { --k: #8FE3A8; }
.kind ul { list-style: none; margin: 10px 0 0; padding: 0; max-width: 40em; }
.kind li { position: relative; padding: 10px 0 10px 22px; border-top: 1px solid var(--ridge); color: var(--soft); }
.kind li:first-child { border-top: 0; }
.kind li::before { content: ''; position: absolute; left: 2px; top: 1.15em; width: 8px; height: 2px; background: var(--k); }
.kind .tag { margin-left: 4px; white-space: nowrap; }
.trail-end { margin: 24px 0 0; padding-left: calc(30px + 30px); color: var(--dust); }

@media (max-width: 920px) {
  .with-side { grid-template-columns: 1fr; gap: 0; }
  .side { display: none; }
  .toc ol { columns: 1; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 17px; }
  .bar { gap: 14px; height: 64px; }
  .brand img { height: 28px; }
  .bar nav { gap: 14px; margin-left: 0; }
  .bar nav a:first-child, .bar nav .nav-notes { display: none; }
  .bar > .btn { display: none; }
  .hero { padding: 44px 0 40px; }
  .hero .lede { font-size: 19px; }
  .search { padding-left: 14px; }
  .search .btn { display: none; }
  .cat-grid { grid-template-columns: 1fr; }
  .cat { padding: 18px; gap: 16px; }
  .still { grid-template-columns: 1fr; padding: 24px; }
  .still .btn { grid-column: 1; grid-row: auto; margin-top: 14px; justify-self: start; }
  .updated { margin-left: 0; width: 100%; }
  .prose h2 { font-size: 30px; }
  .helped { flex-direction: column; align-items: flex-start; }
  .foot nav { margin-left: 0; width: 100%; }
  .trail { --rail: 22px; --pin: 18px; margin-top: 36px; }
  .stop { padding-left: calc(var(--rail) + 18px); padding-bottom: 44px; }
  .trail-end { padding-left: 0; }
  .stop-intro { font-size: 18px; }
  .whats-new { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
