/* Help centre: marketing.css + Pure layout; replaces Geekdoc bundled CSS. */

:root {
  --help-text: #6f6f6f;
  --help-heading: #212121;
  --help-brand: #073b3a;
  --help-border: #efefef;
  --help-code-bg: #f7f5f6;
  --help-code-color: #333;
  --help-max-code-height: 32rem;
  --help-sidebar-max: min(75vh, 42rem);
  --help-nav-break: 64em;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--help-text);
  background: #fff;
  line-height: 1.5;
}

/* Skip link */
.help-skip-wrap {
  position: relative;
}

.help-skip {
  position: absolute;
  left: -9999px;
  z-index: 10000;
  padding: 0.5rem 1rem;
  background: var(--help-brand);
  color: #fff;
  text-decoration: none;
  border-radius: 3px;
}

.help-skip:focus {
  left: 1rem;
  top: 0.5rem;
}

/* Shell */
.help-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.help-main {
  flex: 1;
  padding: 1.5rem 0 3rem;
}

.help-layout {
  align-items: flex-start;
}

.help-sidebar__inner {
  margin-top: 0;
}

/* Sidebar column: mobile collapsible + desktop sticky scroll */
.help-sidebar-column {
  position: relative;
}

.help-nav-cb {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
}

.help-nav-mobile-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  background: #fff;
  border: 1px solid var(--help-border);
  border-radius: 6px;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--help-brand);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.help-nav-mobile-bar:hover {
  background: var(--help-code-bg);
}

.help-nav-mobile-bar__icon {
  flex-shrink: 0;
  font-size: 0.75rem;
  transition: transform 0.25s ease;
  opacity: 0.85;
}

.help-nav-cb:checked ~ .help-nav-mobile-bar .help-nav-mobile-bar__icon {
  transform: rotate(180deg);
}

.help-sidebar {
  min-width: 0;
}

@media screen and (max-width: 63.9375em) {
  .help-nav-mobile-bar {
    display: flex;
  }

  .help-sidebar {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    transition:
      max-height 0.35s ease,
      opacity 0.2s ease,
      margin 0.2s ease;
    pointer-events: none;
  }

  .help-nav-cb:checked ~ .help-sidebar {
    max-height: var(--help-sidebar-max);
    opacity: 1;
    margin-bottom: 1rem;
    padding-top: 0;
    padding-bottom: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    pointer-events: auto;
    border-bottom: 1px solid var(--help-border);
  }

  .help-sidebar .help__box {
    border-radius: 0 0 6px 6px;
  }
}

@media screen and (min-width: 64em) {
  .help-nav-mobile-bar {
    display: none !important;
  }

  .help-sidebar {
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 2rem);
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .help-sidebar .help__box {
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: calc(100vh - 2rem);
    overflow: hidden;
    margin-bottom: 0;
  }

  .help-sidebar .help-nav {
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding-right: 0.25rem;
    flex: 1 1 auto;
    scrollbar-gutter: stable;
  }

  .help-sidebar .help-nav::-webkit-scrollbar {
    width: 6px;
  }

  .help-sidebar .help-nav::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
  }

  .help-sidebar .help-nav::-webkit-scrollbar-track {
    background: transparent;
  }
}

.help-page {
  box-sizing: border-box;
  padding-left: 0;
  min-width: 0;
}

@media screen and (min-width: 64em) {
  .help-page {
    padding-left: 1.5rem;
  }
}

/* Utilities (replacing Geekdoc flex helpers) */
.flex {
  display: flex;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-even > * {
  flex: 1 1 0;
}

.flex-inline {
  display: inline-flex;
}

.no-wrap {
  white-space: nowrap;
}

.justify-between {
  justify-content: space-between;
}

.justify-end {
  justify-content: flex-end;
}

.align-center {
  align-items: center;
}

.gap-8 {
  gap: 0.5rem;
}

.hidden {
  display: none !important;
}

@media screen and (max-width: 45rem) {
  .hidden-mobile {
    display: none !important;
  }
}

.text--right {
  text-align: right;
}

/* SVG icon symbols (search + nav tree; do not hide globally) */
.gdoc-icon {
  display: none;
}

.help-search .gdoc-icon {
  width: 1.125rem;
  height: 1.125rem;
  opacity: 0.55;
}

.help-nav .gdoc-icon.toggle {
  width: 0.875rem;
  height: 0.875rem;
  opacity: 0.65;
}

/* Sidebar nav (checkbox expand/collapse - from Geekdoc behaviour) */
.help-nav h2 {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #989696;
  margin: 1rem 0 0.4rem;
  font-weight: 600;
}

.help-nav .gdoc-nav--main > h2:first-child {
  margin-top: 0;
}

@media screen and (max-width: 63.9375em) {
  .help-nav .gdoc-nav--main > h2:first-of-type {
    margin-top: 0.25rem;
  }
}

.gdoc-nav nav {
  width: 100%;
}

.gdoc-nav__list {
  padding-left: 0.5rem;
  margin: 0;
  list-style: none;
  user-select: none;
}

.gdoc-nav__list ul {
  padding-left: 0.5rem;
  border-left: 1px solid #f0f0f0;
  margin-left: 0.15rem;
}

.gdoc-nav__list li {
  margin: 0.2rem 0;
}

.gdoc-nav__toggle {
  display: none;
}

.gdoc-nav__toggle ~ label {
  cursor: pointer;
}

.gdoc-nav__toggle:not(:checked) ~ ul,
.gdoc-nav__toggle:not(:checked) ~ label svg.gdoc-icon.gdoc_keyboard_arrow_down {
  display: none;
}

.gdoc-nav__toggle:not(:checked) ~ label svg.gdoc-icon.gdoc_keyboard_arrow_left {
  display: block;
}

.gdoc-nav__toggle:checked ~ ul,
.gdoc-nav__toggle:checked ~ label svg.gdoc-icon.gdoc_keyboard_arrow_down {
  display: block;
}

.gdoc-nav__toggle:checked ~ label svg.gdoc-icon.gdoc_keyboard_arrow_left {
  display: none;
}

.gdoc-nav--main > ul > li > span,
.gdoc-nav--main > ul > li > span > a,
.gdoc-nav--main > ul > li > label,
.gdoc-nav--main > ul > li > label > a {
  font-weight: 600;
}

.gdoc-nav__entry,
.gdoc-language__entry {
  flex: 1;
  color: var(--help-text);
}

.gdoc-nav__entry:hover,
.gdoc-nav__entry.is-active,
.gdoc-nav__entry.menu__item--active {
  color: var(--help-brand);
}

.gdoc-nav__entry:visited {
  color: var(--help-text);
}

.help-nav-label {
  gap: 0.25rem;
}

/* Search */
.help-search {
  position: relative;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  gap: 0.5rem;
}

.gdoc-search__input {
  flex: 1;
  min-width: 0;
  margin-bottom: 0 !important;
}

.gdoc-search__list {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 50;
  max-height: 70vh;
  overflow: auto;
  margin: 0.25rem 0 0;
  padding: 0.25rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--help-border);
  border-radius: 3px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.gdoc-search__list:empty {
  display: none;
}

/* Page header & breadcrumb */
.help-page-header {
  margin-bottom: 1.25rem;
  align-items: flex-end;
}

.help-breadcrumb {
  display: inline;
  padding: 0;
  margin: 0;
  list-style: none;
}

.help-breadcrumb li {
  display: inline;
  font-size: 0.875rem;
}

.help-breadcrumb a {
  color: var(--help-brand);
  text-decoration: none;
}

.help-breadcrumb a:hover {
  text-decoration: underline;
}

.help-breadcrumb-icon {
  margin-right: 0.35rem;
  opacity: 0.6;
}

.help-edit a {
  font-size: 0.875rem;
  color: var(--help-brand);
}

/* Prev / next */
.help-prevnext {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--help-border);
}

.gdoc-page__nav {
  display: inline-block;
  margin-right: 1rem;
  margin-bottom: 0.5rem;
}

.gdoc-page__nav a {
  color: var(--help-brand);
  text-decoration: none;
  gap: 0.35rem;
}

.gdoc-page__nav a:hover {
  text-decoration: underline;
}

/* Markdown article */
.gdoc-markdown {
  line-height: 1.65;
  max-width: 52rem;
}

.gdoc-markdown > h1 {
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 600;
  color: var(--help-heading);
  margin: 0 0 1rem;
}

.gdoc-markdown h2,
.gdoc-markdown h3,
.gdoc-markdown h4,
.gdoc-markdown h5,
.gdoc-markdown h6 {
  font-weight: 600;
  color: var(--help-heading);
  margin: 1.5rem 0 0.75rem;
}

.gdoc-markdown h2 {
  font-size: 1.5rem;
  line-height: 1.3;
}

.gdoc-markdown h3 {
  font-size: 1.25rem;
  line-height: 1.35;
}

.gdoc-markdown h4 {
  font-size: 1.1rem;
}

.gdoc-markdown p,
.gdoc-markdown li {
  font-size: 1rem;
  line-height: 22px;
}

.gdoc-markdown p {
  margin: 0 0 1rem;
}

.gdoc-markdown ul,
.gdoc-markdown ol {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
  list-style: disc;
}

.gdoc-markdown ol {
  list-style: decimal;
}

.gdoc-markdown li {
  margin-bottom: 0.35rem;
}

.gdoc-markdown blockquote {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--help-brand);
  background: var(--help-code-bg);
  border-radius: 0 3px 3px 0;
}

.gdoc-markdown img {
  max-width: 100%;
  height: auto;
  border-radius: 3px;
}

.gdoc-markdown table {
  border-collapse: collapse;
  width: 100%;
  margin: 1rem 0;
  font-size: 0.9375rem;
}

.gdoc-markdown th,
.gdoc-markdown td {
  border: 1px solid var(--help-border);
  padding: 0.5rem 0.75rem;
  text-align: left;
}

.gdoc-markdown th {
  background: var(--help-code-bg);
  font-weight: 600;
}

.table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
}

/* Links in prose - marketing defaults */
.gdoc-markdown a,
.gdoc-markdown__link {
  color: #6f6f6f;
  text-decoration: underline;
  border-bottom: none;
  line-height: inherit;
}

.gdoc-markdown a:hover,
.gdoc-markdown a:focus,
.gdoc-markdown__link:hover,
.gdoc-markdown__link:focus {
  color: var(--help-brand);
  text-decoration: underline;
}

.gdoc-markdown a:visited,
.gdoc-markdown__link:visited {
  color: #6f6f6f;
}

.gdoc-markdown a:visited:hover,
.gdoc-markdown__link:visited:hover {
  color: var(--help-brand);
}

.gdoc-markdown__link--raw,
.gdoc-markdown__link--raw:visited {
  color: #6f6f6f !important;
}

.gdoc-markdown__link--raw:hover {
  color: var(--help-brand) !important;
}

.gdoc-markdown__link--code,
.gdoc-markdown__link--code:visited,
.gdoc-markdown__link--code:visited:hover {
  color: #6f6f6f !important;
}

.gdoc-markdown__link--code:hover {
  color: var(--help-brand) !important;
  background: none !important;
  text-decoration: underline !important;
}

/* Code */
.gdoc-markdown pre,
.gdoc-markdown code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.875rem;
}

.gdoc-markdown :not(pre) > code {
  padding: 0.125rem 0.35rem;
  background: var(--help-code-bg);
  border-radius: 3px;
  color: var(--help-code-color);
}

.gdoc-markdown pre {
  padding: 1rem;
  background: var(--help-code-bg);
  border-radius: 3px;
  overflow: auto;
  max-height: var(--help-max-code-height);
  border: 1px solid var(--help-border);
}

.gdoc-markdown pre code {
  padding: 0;
  background: none;
  border-radius: 0;
}

/* Chroma / highlight */
.chroma {
  color: var(--help-code-color);
  background: transparent !important;
}

.highlight pre.chroma {
  margin: 0;
}

/* TOC */
#TableOfContents {
  padding: 1rem;
  margin: 1rem 0 1.5rem;
  background: var(--help-code-bg);
  border: 1px solid var(--help-border);
  border-radius: 3px;
  font-size: 0.9375rem;
}

#TableOfContents ul {
  list-style: none;
  padding-left: 1rem;
  margin: 0.25rem 0 0;
}

#TableOfContents > ul {
  padding-left: 0;
}

#TableOfContents a {
  color: var(--help-brand);
  text-decoration: none;
}

#TableOfContents a:hover {
  text-decoration: underline;
}

/* Shortcodes - minimal */
.gdoc-hint {
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 3px;
  border: 1px solid var(--help-border);
}

.gdoc-hint.note {
  border-left: 3px solid var(--help-brand);
}

.gdoc-hint.warning {
  border-left: 3px solid #cc8400;
}

.gdoc-hint.danger {
  border-left: 3px solid #d40303;
}

.gdoc-tabs {
  margin: 1rem 0;
}

.gdoc-tabs__label {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  margin-right: 0.25rem;
  cursor: pointer;
  border: 1px solid var(--help-border);
  border-radius: 3px 3px 0 0;
  background: var(--help-code-bg);
}

.gdoc-expand {
  margin: 1rem 0;
  border: 1px solid var(--help-border);
  border-radius: 3px;
}

.gdoc-expand__head {
  padding: 0.75rem 1rem;
  cursor: pointer;
  background: var(--help-code-bg);
}

.gdoc-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem 0;
}

@media screen and (max-width: 45rem) {
  .flex-mobile-column {
    flex-direction: column;
  }
}

.gdoc-button__link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--help-brand);
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 3px;
  font-size: 0.875rem;
}

.gdoc-button__link:hover {
  opacity: 0.9;
}

/* Posts (if used) */
.gdoc-post__title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.gdoc-paging {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
}

.gdoc-paging a {
  color: var(--help-brand);
  text-decoration: none;
  gap: 0.35rem;
}

.gdoc-paging a:hover {
  text-decoration: underline;
}

/* Print */
@media print {
  .help-sidebar,
  .help-sidebar-column,
  .help-nav-mobile-bar,
  .help-search,
  .gdoc-page__header .help-edit,
  header,
  footer {
    display: none !important;
  }

  .help-page {
    padding: 0 !important;
  }
}

.help__box .menu a.menu__item {
  padding: 0.45rem 0.65rem;
  font-size: 0.9375rem;
  line-height: 1.35;
  text-decoration: none;
  border-radius: 4px;
}

@media screen and (min-width: 64em) {
  .help__box .menu a.menu__item {
    padding: 0.35rem 0.5rem;
    font-size: 0.875rem;
  }
}

strong {
  font-weight: 600;
}