/*
 * The help center's own stylesheet: plain CSS, no build step, nothing shared with
 * the application's Tailwind, so the module renders the same wherever it lives.
 * It reads like the application (Inter, its blue top bar over a white sheet), borrows
 * the landing page's codes (Lexend titles, its blue, its hand-drawn stroke, its
 * gradient) and lays pages out like help.shopify.com: one centred column, quiet
 * grey text, underlined links, tinted callouts.
 */

/* Lexend, the landing page's display face (apitail.com), served with the module. */
@font-face {
  font-family: "Lexend";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/help_center/lexend-500-2eb2b53b37b9ad6d7907250903cabc786ee3dc41b72b655683bc0ccfc00fb965.ttf) format("truetype");
}

:root {
  --hc-topbar: oklch(37.9% 0.146 265.522);
  --hc-brand: #2563eb;
  --hc-brand-deep: #1e40af;
  --hc-accent: #93c5fd;
  --hc-ink: #111827;
  --hc-text: #303030;
  --hc-muted: #616161;
  --hc-border: #e3e3e3;
  --hc-subtle: #f7f7f7;
  --hc-hover: #ebebeb;
  --hc-sheet: #ffffff;
  --hc-info-bg: #eaf4ff;
  --hc-info-ink: #00527c;
  --hc-warning-bg: #fff1e3;
  --hc-warning-ink: #8a4b00;
  --hc-column: 720px;
  --hc-wide: 1040px;
  --hc-radius: 12px;
  --hc-font: "Inter var", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --hc-display: Lexend, "Inter var", Inter, system-ui, sans-serif;
  --hc-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --hc-icon-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 1.5a8.5 8.5 0 1 1 0 17 8.5 8.5 0 0 1 0-17Zm0 1.5a7 7 0 1 0 0 14 7 7 0 0 0 0-14Zm0 5.25c.41 0 .75.34.75.75v4.5a.75.75 0 0 1-1.5 0V9c0-.41.34-.75.75-.75ZM10 5.5a1 1 0 1 1 0 2 1 1 0 0 1 0-2Z'/%3E%3C/svg%3E");
  --hc-icon-tip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 1.75a5.75 5.75 0 0 1 3.5 10.32V14a.75.75 0 0 1-.75.75h-5.5A.75.75 0 0 1 6.5 14v-1.93A5.75 5.75 0 0 1 10 1.75Zm0 1.5a4.25 4.25 0 0 0-2.31 7.82.75.75 0 0 1 .31.6v1.58h4V11.67c0-.24.12-.47.31-.6A4.25 4.25 0 0 0 10 3.25Zm-2.25 13h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5Z'/%3E%3C/svg%3E");
  --hc-icon-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M8.5 2.5a6 6 0 0 1 4.74 9.68l4.04 4.04a.75.75 0 1 1-1.06 1.06l-4.04-4.04A6 6 0 1 1 8.5 2.5Zm0 1.5a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9Z'/%3E%3C/svg%3E");
  --hc-icon-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 3.25c.2 0 .39.08.53.22l5 5a.75.75 0 1 1-1.06 1.06L10.75 5.81V16a.75.75 0 0 1-1.5 0V5.81L5.53 9.53a.75.75 0 0 1-1.06-1.06l5-5A.75.75 0 0 1 10 3.25Z'/%3E%3C/svg%3E");
  --hc-icon-warning: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M8.7 2.75a1.5 1.5 0 0 1 2.6 0l7 12.25a1.5 1.5 0 0 1-1.3 2.25H3a1.5 1.5 0 0 1-1.3-2.25l7-12.25Zm1.3.75L3 15.75h14L10 3.5Zm0 3.75c.41 0 .75.34.75.75v3a.75.75 0 0 1-1.5 0V8c0-.41.34-.75.75-.75Zm0 5.5a1 1 0 1 1 0 2 1 1 0 0 1 0-2Z'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; font-feature-settings: "cv11", "ss01"; }

body {
  margin: 0;
  background: var(--hc-topbar);
  color: var(--hc-text);
  font: 450 15px/1.6 var(--hc-font);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--hc-text); text-decoration: underline; text-decoration-color: #b5b5b5; text-underline-offset: 3px; }
a:hover { color: var(--hc-ink); text-decoration-color: currentColor; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--hc-topbar); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { color: var(--hc-ink); font-weight: 700; letter-spacing: -0.01em; }
h1, .hc-prose h2, .hc-toc h2, .hc-home__browse, .hc-banner__title { font-family: var(--hc-display); font-weight: 500; letter-spacing: -0.025em; }

.hc-visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.hc-skip-link { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 20; }
.hc-skip-link:focus { left: 8px; }

/* Top bar and sheet, as in the application */
.hc-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 56px; padding: 0 16px 0 20px; }
.hc-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.hc-brand:hover { color: #fff; }
.hc-brand__logo { height: 28px; width: auto; max-width: 128px; display: block; object-fit: contain; }
.hc-brand__name { font-weight: 600; font-size: 15px; padding-left: 10px; border-left: 1px solid rgb(255 255 255 / 35%); }

.hc-sheet { background: var(--hc-sheet); border-radius: var(--hc-radius) var(--hc-radius) 0 0; min-height: calc(100vh - 56px); display: flex; flex-direction: column; }
.hc-main { flex: 1; padding: 40px 20px 72px; }

/* Search: a plain GET form, large on the home and the results, compact in the top bar */
.hc-search { position: relative; display: flex; align-items: center; }
.hc-search::before {
  content: ""; position: absolute; left: 14px; width: 18px; height: 18px; pointer-events: none; background: currentColor;
  -webkit-mask: var(--hc-icon-search) center / contain no-repeat; mask: var(--hc-icon-search) center / contain no-repeat;
}
.hc-search__input { width: 100%; font: inherit; color: var(--hc-ink); border: 0; outline: 0; background: transparent; }
.hc-search__input::-webkit-search-cancel-button { cursor: pointer; }
.hc-search--hero {
  margin: 36px 0 0; padding: 0 6px 0 44px; color: var(--hc-muted);
  background: #fff; border: 1px solid #d4d4d4; border-radius: 12px;
  box-shadow: 0 1px 2px rgb(15 23 42 / 6%), 0 4px 16px rgb(15 23 42 / 5%);
}
.hc-search--hero:focus-within { border-color: var(--hc-brand); box-shadow: 0 0 0 3px rgb(37 99 235 / 15%); }
.hc-search--hero .hc-search__input { font-size: 16px; height: 48px; padding: 0; }
/* A round arrow, as on help.shopify.com: grey at rest, the brand blue while typing */
.hc-search__button {
  flex: none; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; background: #ececec; color: #8a8a8a;
}
.hc-search__button::before {
  content: ""; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: var(--hc-icon-arrow) center / contain no-repeat; mask: var(--hc-icon-arrow) center / contain no-repeat;
}
.hc-search--hero:focus-within .hc-search__button, .hc-search__button:hover { background: var(--hc-brand); color: #fff; }
.hc-search--compact { flex: 0 1 380px; margin: 0 auto; color: rgb(255 255 255 / 80%); }
.hc-search--compact::before { left: 11px; width: 16px; height: 16px; }
.hc-search--compact .hc-search__input {
  height: 34px; padding: 0 12px 0 34px; border-radius: 8px; font-size: 14px; color: #fff;
  background: rgb(255 255 255 / 14%); border: 1px solid rgb(255 255 255 / 18%);
}
.hc-search--compact .hc-search__input::placeholder { color: rgb(255 255 255 / 75%); }
.hc-search--compact .hc-search__input:focus { background: #fff; color: var(--hc-ink); }
.hc-search--compact:focus-within { color: var(--hc-muted); }

/* Search results */
.hc-results__title { margin-top: 36px; }
.hc-results__count { color: var(--hc-muted); margin: -8px 0 20px; font-size: 14px; }
.hc-results__section { margin: 0 0 2px !important; color: var(--hc-brand); font-size: 12px !important; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }

/* Home */
.hc-home { max-width: var(--hc-wide); margin: 0 auto; }
.hc-home__title { text-align: center; font-size: clamp(2.25rem, 4.4vw, 3.25rem); line-height: 1.12; letter-spacing: -0.04em; margin: 48px auto 16px; max-width: 920px; text-wrap: balance; }

/* The landing page's highlighted word: brand blue over a hand-drawn stroke */
.hc-highlight { position: relative; display: inline-block; color: var(--hc-brand); white-space: nowrap; }
.hc-highlight svg { position: absolute; top: 67%; left: 0; width: 100%; height: 0.58em; fill: var(--hc-accent); opacity: 0.7; }
.hc-highlight > span { position: relative; }

/* A Shopify Editions-like banner, on the landing page's gradient */
.hc-banner {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin: 40px 0 0; padding: 40px 40px 36px; min-height: 220px; border-radius: 16px;
  color: #fff; background: var(--hc-brand) url(/assets/help_center/banner-f64d44a6e87dc2ac2217e918bc7371ee7e14a384479487ffa23daa81476496cf.webp) center / cover no-repeat;
}
.hc-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(30 64 175 / 55%), rgb(30 64 175 / 0%) 70%); }
.hc-banner__copy { max-width: 560px; }
.hc-banner__eyebrow { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hc-accent); }
.hc-banner__title { margin: 0 0 8px; color: #fff; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.15; }
.hc-banner__text { margin: 0; color: rgb(255 255 255 / 85%); font-size: 15px; }
.hc-home__lead { text-align: center; color: #334155; font-size: 17px; margin: 0 auto 8px; max-width: 620px; }
.hc-home__intro { max-width: 620px; margin: 0 auto; text-align: center; color: var(--hc-muted); }
.hc-home__browse { font-size: 22px; margin: 64px 0 24px; }
.hc-topics { display: grid; gap: 36px 40px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.hc-topic__title { font-size: 15px; margin: 0 0 12px; }
.hc-topic__title a { color: var(--hc-ink); text-decoration: none; }
.hc-topic__title a:hover { text-decoration: underline; }
.hc-topic__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hc-topic__links a { text-decoration: none; font-size: 14px; }
.hc-topic__links a:hover { text-decoration: underline; }

/* Section and article: one centred column */
.hc-page { max-width: var(--hc-column); margin: 0 auto; }
.hc-page__nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }

.hc-contents { position: relative; }
.hc-contents summary {
  list-style: none; cursor: pointer; user-select: none;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border: 1px solid var(--hc-border); border-radius: 8px;
  font-weight: 600; font-size: 13px; color: var(--hc-ink); background: #fff;
  box-shadow: 0 1px 0 rgb(0 0 0 / 5%);
}
.hc-contents summary::-webkit-details-marker { display: none; }
.hc-contents summary::after { content: ""; width: 7px; height: 7px; border: solid var(--hc-ink); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translateY(-2px); }
.hc-contents[open] summary { background: var(--hc-subtle); }
.hc-contents__panel {
  position: absolute; z-index: 10; top: calc(100% + 6px); left: 0; width: min(340px, 85vw);
  max-height: 70vh; overflow-y: auto; padding: 14px 16px;
  background: #fff; border: 1px solid var(--hc-border); border-radius: var(--hc-radius);
  box-shadow: 0 8px 24px rgb(0 0 0 / 12%);
}

.hc-nav, .hc-nav ul { list-style: none; margin: 0; padding: 0; }
.hc-nav > li + li { margin-top: 12px; }
.hc-nav__section { font-weight: 650; color: var(--hc-ink); text-decoration: none; font-size: 14px; }
.hc-nav ul { margin-top: 4px; }
.hc-nav ul a { display: block; padding: 4px 8px; margin-left: -8px; border-radius: 6px; text-decoration: none; font-size: 14px; color: var(--hc-text); }
.hc-nav ul a:hover { background: var(--hc-subtle); }
.hc-nav a[aria-current="page"] { background: var(--hc-hover); color: var(--hc-ink); font-weight: 600; }

.hc-breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--hc-muted); }
.hc-breadcrumb a { color: var(--hc-muted); }
.hc-breadcrumb li + li::before { content: "›"; margin-right: 6px; }

.hc-title { font-size: 30px; line-height: 1.3; margin: 0 0 16px; }
.hc-lead { color: var(--hc-text); font-size: 15px; margin: 0 0 32px; }

/* On this page */
.hc-toc { margin: 0 0 40px; }
.hc-toc h2 { font-size: 22px; margin: 0 0 12px; }
.hc-toc ul { margin: 0; padding-left: 1.25em; }
.hc-toc li { margin: 6px 0; }
.hc-toc li::marker { color: #8a8a8a; }

/* Section: its articles */
.hc-article-list { list-style: none; margin: 8px 0 0; padding: 0; }
.hc-article-list li { border-top: 1px solid var(--hc-border); padding: 18px 0; }
.hc-article-list li:last-child { border-bottom: 1px solid var(--hc-border); }
.hc-article-list__title { font-weight: 600; color: var(--hc-ink); }
.hc-article-list p { margin: 4px 0 0; color: var(--hc-muted); font-size: 14px; }

/* The Markdown body */
.hc-prose > :first-child { margin-top: 0; }
.hc-prose h2 { font-size: 22px; line-height: 1.35; margin: 48px 0 16px; scroll-margin-top: 24px; }
.hc-prose h3 { font-size: 17px; line-height: 1.4; margin: 32px 0 10px; scroll-margin-top: 24px; }
.hc-prose h4 { font-size: 15px; margin: 24px 0 8px; }
.hc-prose p { margin: 0 0 14px; }
.hc-prose strong { color: var(--hc-ink); font-weight: 650; }
.hc-prose ul, .hc-prose ol { margin: 0 0 16px; padding-left: 1.5em; }
.hc-prose li { margin: 6px 0; padding-left: 2px; }
.hc-prose li > p { margin-bottom: 8px; }
.hc-prose ol > li::marker { color: var(--hc-muted); font-weight: 600; }
.hc-prose ul > li::marker { color: #8a8a8a; }
.hc-prose img { max-width: 100%; height: auto; }
.hc-prose hr { border: 0; border-top: 1px solid var(--hc-border); margin: 32px 0; }
.hc-prose code { font-family: var(--hc-mono); font-size: 0.88em; background: var(--hc-subtle); padding: 1px 5px; border-radius: 4px; }
.hc-prose pre { background: var(--hc-subtle); padding: 14px; border-radius: 8px; overflow-x: auto; }
.hc-prose pre code { padding: 0; background: none; }
.hc-prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; margin: 16px 0 20px; font-size: 14px; }
.hc-prose th, .hc-prose td { border-bottom: 1px solid var(--hc-border); padding: 10px 12px 10px 0; text-align: left; vertical-align: top; }
.hc-prose th { color: var(--hc-ink); font-weight: 650; border-bottom-color: #cfcfcf; }

/* Title anchors, shown on hover */
.hc-anchor { margin-left: 8px; color: #a0a0a0; text-decoration: none; opacity: 0; font-weight: 400; }
.hc-prose h2:hover .hc-anchor, .hc-prose h3:hover .hc-anchor, .hc-anchor:focus { opacity: 1; }

/* Figures: an image alone in its paragraph */
.hc-figure { margin: 16px 0 22px; }
.hc-figure a { display: block; }
.hc-figure img { display: block; margin: 0; border: 1px solid var(--hc-border); border-radius: 8px; }
.hc-figure figcaption { margin-top: 8px; color: var(--hc-muted); font-size: 13px; }

/* Callouts: `> **Attention** …`, `> **Astuce** …`; any other quote is informative */
.hc-callout { margin: 20px 0 24px; padding: 12px 16px; border-radius: var(--hc-radius); background: var(--hc-info-bg); font-size: 14px; }
.hc-callout > :first-child { margin-top: 0; }
.hc-callout > :last-child { margin-bottom: 0; }
.hc-callout > p:first-child > strong:first-child {
  display: flex; align-items: center; gap: 8px; margin-bottom: 4px; color: var(--hc-info-ink); font-weight: 650;
}
.hc-callout > p:first-child > strong:first-child::before {
  content: ""; flex: none; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: var(--hc-icon-info) center / contain no-repeat; mask: var(--hc-icon-info) center / contain no-repeat;
}
.hc-callout--tip > p:first-child > strong:first-child::before { -webkit-mask-image: var(--hc-icon-tip); mask-image: var(--hc-icon-tip); }
.hc-callout--warning { background: var(--hc-warning-bg); }
.hc-callout--warning > p:first-child > strong:first-child { color: var(--hc-warning-ink); }
.hc-callout--warning > p:first-child > strong:first-child::before { -webkit-mask-image: var(--hc-icon-warning); mask-image: var(--hc-icon-warning); }

/* End of an article */
.hc-related { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--hc-border); }
.hc-related h2 { font-size: 17px; margin: 0 0 12px; }
.hc-related ul { margin: 0; padding-left: 1.25em; }
.hc-related li { margin: 6px 0; }
.hc-support { margin-top: 32px; padding: 16px 18px; border: 1px solid var(--hc-border); border-radius: var(--hc-radius); font-size: 14px; }
.hc-support p { margin: 0; }
.hc-support__title { font-weight: 650; color: var(--hc-ink); margin-bottom: 2px !important; }

/* Footer */
.hc-footer { border-top: 1px solid var(--hc-border); color: var(--hc-muted); font-size: 13px; }
.hc-footer p { max-width: var(--hc-wide); margin: 0 auto; padding: 20px; }

@media (max-width: 640px) {
  .hc-main { padding: 24px 16px 56px; }
  .hc-home__title { margin-top: 16px; }
  .hc-banner { padding: 28px 22px; min-height: 0; }
  .hc-title { font-size: 26px; }
  .hc-topbar { padding: 0 12px 0 16px; }
  .hc-search--compact { display: none; }
  .hc-search--hero { padding-left: 40px; }
}
