@font-face {
  font-family: Inter;
  src: url("../fonts/inter/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("../fonts/inter/InterVariable-Italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
:root {
  --bg: #f7fafb;
  --surface: #ffffff;
  --surface-2: #f1f6f7;
  --text: #162329;
  --muted: #5b6970;
  --soft: #dbe7ea;
  --line: #d7e4e8;
  --brand: #0093a5;
  --brand-dark: #006f7d;
  --orange: #f28d2f;
  --green: #2f9f6b;
  --blue: #3867d6;
  --red: #cf3b3b;
  --radius: 8px;
  --content: 760px;
}

[data-theme=dark] {
  color-scheme: dark;
  --bg: #101719;
  --surface: #152023;
  --surface-2: #1c2a2e;
  --text: #eef6f7;
  --muted: #b4c4c9;
  --soft: #314246;
  --line: #2b3b40;
  --brand: #28b8c8;
  --brand-dark: #7ddce6;
  --orange: #f7aa55;
  --green: #65c995;
  --blue: #8da8ff;
  --red: #ff8d8d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body,
button,
input,
select,
textarea {
  font-family: Inter, sans-serif;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  letter-spacing: 0;
}

#loading {
  position: fixed;
  inset: 0 0 auto;
  z-index: 9999;
  width: 100%;
  height: 2.5px;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
}
#loading #loader_line {
  width: 0;
  height: 100%;
  margin: auto;
  background: var(--brand);
}

body.is_loading #loading {
  visibility: visible;
  opacity: 1;
}
body.is_loading #loading #loader_line {
  animation: racinageLoadingBar 0.4s linear infinite;
}

@keyframes racinageLoadingBar {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}
body.is_loading .article {
  opacity: 0.35;
}

.racinage_announcements_mount {
  position: relative;
  z-index: 120;
}

.announcement_banner_stack {
  position: fixed;
  top: 14px;
  right: 0;
  left: 0;
  z-index: 120;
  display: grid;
  width: min(960px, 100vw - 24px);
  margin: 0 auto;
  gap: 8px;
  pointer-events: none;
}

.announcement_banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  pointer-events: auto;
}

.announcement_popup_backdrop {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.42);
}

.announcement_popup {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(520px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}

.announcement_tone_success {
  border-color: var(--green);
}

.announcement_tone_warning {
  border-color: var(--orange);
}

.announcement_tone_critical {
  border-color: var(--red);
}

.announcement_media {
  width: 86px;
  max-width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.announcement_popup .announcement_media {
  width: 100%;
  max-height: 220px;
}

.announcement_copy {
  min-width: 0;
}
.announcement_copy strong {
  display: block;
  margin-bottom: 3px;
  font-size: 0.98rem;
}
.announcement_copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.announcement_actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.announcement_cta,
.announcement_pdf,
.announcement_close,
.announcement_undo button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: 700 0.84rem/1 Inter, Arial, sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.announcement_cta {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.announcement_close {
  width: 34px;
  padding: 0;
  font-size: 1.2rem;
}

.announcement_popup > .announcement_close {
  position: absolute;
  top: 10px;
  right: 10px;
}

.announcement_undo_stack {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 140;
  display: grid;
  gap: 8px;
}

.announcement_undo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}

a {
  color: var(--brand-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.site_shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 250px;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 18px;
  overflow: auto;
  background: var(--surface);
  border-right: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.brand img {
  width: 148px;
}

.mobile_topbar {
  display: none;
}

.docs_tools {
  display: flex;
  align-items: center;
  gap: 4px;
  width: max-content;
  max-width: 100%;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
}

.sidebar_tools {
  margin: -8px 0 16px;
}

.tool_btn,
.menu_btn,
.docs_tools > button,
.docs_tools > a {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 7px 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.tool_btn:hover,
.menu_btn:hover,
.docs_tools > button:hover,
.docs_tools > a:hover {
  background: var(--surface);
  color: var(--brand-dark);
  text-decoration: none;
}

[data-theme-toggle] {
  background: var(--brand) !important;
  color: white !important;
}

[data-theme-toggle]:hover {
  background: var(--brand-dark) !important;
  color: white !important;
}

.nav_search {
  width: 100%;
  margin: 0 0 16px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
}

.nav_group {
  margin: 18px 0;
}

.nav_contact_group {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.nav_group_title {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.nav_link {
  display: block;
  padding: 9px 10px;
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
}
.nav_link[hidden] {
  display: none;
}

.nav_link:focus-visible,
.tool_btn:focus-visible,
.menu_btn:focus-visible,
.docs_tools > button:focus-visible,
.docs_tools > a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.nav_link:hover,
.nav_link.active {
  background: var(--surface-2);
  color: var(--brand-dark);
  text-decoration: none;
}

.doc_main {
  min-width: 0;
  padding: 56px 32px 80px;
}

.article {
  max-width: var(--content);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin: 46px 0 14px;
  padding-top: 12px;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: 0;
}

h3 {
  margin: 26px 0 10px;
  font-size: 20px;
  letter-spacing: 0;
}

p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
}

ul,
ol {
  margin: 0 0 18px;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.7;
}

li + li {
  margin-top: 6px;
}

code {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-2);
  color: var(--text);
  font-family: Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

pre {
  margin: 18px 0;
  padding: 16px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #10262c;
  color: #e8f6f7;
}

pre code {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.lead {
  font-size: 19px;
  line-height: 1.72;
}

.doc_updated {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: -8px 0 24px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
}
.doc_updated span {
  color: var(--brand-dark);
  font-weight: 760;
}

.hero_panel,
.callout,
.article_card,
.step,
.next_panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.hero_panel {
  margin: 28px 0 30px;
  overflow: hidden;
}

.hero_panel img {
  display: block;
  width: 100%;
}

.hero_caption {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.article_grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0 28px;
}

.article_card {
  display: block;
  padding: 18px;
  color: var(--text);
}

.article_card:hover {
  border-color: #a9dce4;
  text-decoration: none;
}

.article_card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 17px;
}

.article_card span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.callout {
  margin: 22px 0;
  padding: 18px;
  border-left: 4px solid var(--brand);
  background: color-mix(in srgb, var(--brand) 10%, var(--surface));
}

.callout.warning {
  border-left-color: var(--orange);
  background: color-mix(in srgb, var(--orange) 12%, var(--surface));
}

.callout.success {
  border-left-color: var(--green);
  background: color-mix(in srgb, var(--green) 12%, var(--surface));
}

.step_list {
  display: grid;
  gap: 12px;
  margin: 18px 0 26px;
}

.step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
}

.step_num {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  font-weight: 800;
}

.step strong {
  display: block;
  margin-bottom: 4px;
}

.screenshot {
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.screenshot img {
  display: block;
  width: 100%;
}

.screenshot figcaption {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.pill_row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 22px;
}

.pill {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.next_panel {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 52px;
  padding: 18px;
}

.next_panel span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.next_panel strong {
  display: block;
  margin-top: 4px;
}

.toc {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 56px 18px 24px;
  overflow: auto;
  border-left: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 86%, var(--bg));
}

.toc_title {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.toc a {
  display: block;
  padding: 6px 0;
  color: var(--muted);
  font-size: 13px;
}

.toc a.h3 {
  padding-left: 12px;
}

.toc a.active {
  color: var(--brand-dark);
  font-weight: 750;
}

.empty_search {
  display: none;
  color: var(--muted);
  font-size: 14px;
}

.docs_contact_form {
  display: grid;
  gap: 14px;
  margin: 26px 0 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.docs_contact_form label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-size: 14px;
  font-weight: 750;
}

.docs_contact_form input,
.docs_contact_form textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 15px;
}

.docs_contact_form textarea {
  min-height: 160px;
  resize: vertical;
}

.docs_contact_form input:focus,
.docs_contact_form textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--brand) 34%, transparent);
  border-color: var(--brand);
}

.docs_hp {
  position: absolute;
  left: -9999px;
  width: 1px !important;
  height: 1px;
  opacity: 0;
}

.docs_turnstile {
  margin-top: 2px;
}

.docs_submit_btn {
  appearance: none;
  justify-self: start;
  padding: 11px 16px;
  border: 0;
  border-radius: var(--radius);
  background: var(--brand);
  color: white;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.docs_submit_btn:hover,
.docs_submit_btn:focus {
  background: var(--brand-dark);
}

.docs_form_feedback {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  font-size: 14px;
  line-height: 1.5;
}

.docs_form_feedback.success {
  border-color: color-mix(in srgb, var(--green) 50%, var(--line));
  color: var(--green);
}

.docs_form_feedback.fail {
  border-color: color-mix(in srgb, var(--red) 50%, var(--line));
  color: var(--red);
}

.kbd {
  padding: 2px 6px;
  border: 1px solid var(--soft);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
}

@media (max-width: 1100px) {
  .site_shell {
    grid-template-columns: 260px minmax(0, 1fr);
  }
  .toc {
    display: none;
  }
}
@media (max-width: 760px) {
  .announcement_banner {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .announcement_banner .announcement_media {
    width: 100%;
    max-height: 160px;
  }
  .announcement_banner .announcement_actions {
    justify-content: flex-start;
  }
  .announcement_popup_backdrop {
    align-items: flex-end;
    padding: 12px;
  }
  .announcement_popup {
    max-height: calc(100vh - 24px);
  }
  .announcement_undo_stack {
    right: 8px;
    bottom: 8px;
    left: 8px;
  }
  .announcement_undo {
    justify-content: space-between;
  }
  .site_shell {
    display: block;
  }
  .mobile_topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 69px;
    box-sizing: border-box;
    padding: 7px 14px;
    gap: 8px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
  }
  .mobile_topbar img {
    width: 128px;
    min-width: 0;
    max-width: 30%;
  }
  .sidebar {
    position: fixed;
    inset: 69px 0 auto 0;
    z-index: 30;
    display: none;
    height: calc(100vh - 69px);
    height: calc(100dvh - 69px);
    overscroll-behavior: contain;
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }
  .nav_link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .menu_btn, .tool_btn, .docs_tools > button, .docs_tools > a {
    min-height: 44px;
  }
  .sidebar_tools {
    display: none;
  }
  body:has(.sidebar.open) {
    overflow: hidden;
  }
  .sidebar.open {
    display: block;
  }
  .sidebar .brand {
    display: none;
  }
  .doc_main {
    padding: 32px 18px 60px;
  }
  .article_grid {
    grid-template-columns: 1fr;
  }
  .next_panel {
    display: block;
  }
  .next_panel a + a {
    display: block;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
  }
}
@media (prefers-reduced-motion: reduce) {
  body.is_loading #loading #loader_line {
    width: 100%;
    animation: none;
  }
}
