/* Help center (/help). Loads after styles.css, checklists.css and content.css; written by hand,
   the pages themselves come from content/help/*.mdx. */

.hc {
  --paper: #ffffff;
  --mist: #f5f6f8;
  --mist-2: #eceef2;
  --hc-line: rgba(30, 23, 40, 0.12);
  --shadow: 0 1px 2px rgba(30, 23, 40, 0.06), 0 12px 32px -12px rgba(30, 23, 40, 0.18);
}
.hc-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.hc kbd {
  display: inline-block;
  min-width: 1.5em;
  padding: 0 6px;
  border: 1px solid var(--hc-line);
  border-bottom-width: 2px;
  border-radius: 6px;
  font: 500 13px / 1.5 var(--sans);
  text-align: center;
  background: var(--paper);
}

/* ---------- Index ---------- */
.hc-hero {
  padding: 40px 0 48px;
  background: var(--mist);
  border-bottom: 1px solid var(--hc-line);
}
.hc-hero h1 {
  margin-top: 28px;
  font: 300 44px / 1.05 var(--display);
  letter-spacing: -0.02em;
}
.hc-hero-sub {
  max-width: 620px;
  margin-top: 16px;
  font-size: 18px;
  color: var(--muted);
}
@media (min-width: 768px) {
  .hc-hero {
    padding: 56px 0 72px;
  }
  .hc-hero h1 {
    font-size: 68px;
  }
}

.hc-search {
  position: relative;
  max-width: 640px;
  margin-top: 28px;
}
.hc-search svg {
  position: absolute;
  top: 50%;
  left: 18px;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
  pointer-events: none;
}
.hc-search input {
  width: 100%;
  min-height: 56px;
  padding: 0 20px 0 50px;
  border: 1px solid var(--hc-line);
  border-radius: 9999px;
  background: var(--paper);
  font: 400 17px / 1.4 var(--sans);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.hc-search input:focus {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.hc-results {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 60vh;
  overflow: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--hc-line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.hc-results a {
  display: grid;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 10px;
}
.hc-results a.is-active,
.hc-results a:hover {
  background: var(--mist);
}
.hc-results strong {
  font-weight: 500;
  color: var(--ink);
}
.hc-results span {
  font-size: 14px;
  color: var(--muted);
}
.hc-results .hc-empty {
  padding: 12px 14px;
  color: var(--muted);
}

.hc-h {
  margin: 56px 0 20px;
  font: 500 14px / 1.4 var(--label);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.hc-start-grid {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) {
  .hc-start-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .hc-start-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.hc-start-grid a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 12px 12px 18px;
  border: 1px solid var(--hc-line);
  border-radius: 18px;
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}
.hc-start-grid a:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow);
}
.hc-start-grid strong {
  margin: 10px 6px 0;
  font: 500 18px / 1.3 var(--sans);
  color: var(--ink);
}
.hc-start-grid a > span:last-child {
  margin: 0 6px;
  font-size: 15px;
  color: var(--muted);
}
.hc-thumb {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  background: var(--mist);
}
.hc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}
.hc-thumb-phone img,
.hc-thumb-detail img {
  width: auto;
  height: 112%;
  margin: 6% auto 0;
  object-fit: contain;
  object-position: center top;
  border-radius: 12px 12px 0 0;
  box-shadow: var(--shadow);
}

.hc-cats {
  display: grid;
  gap: 40px 48px;
  margin-top: 64px;
}
@media (min-width: 720px) {
  .hc-cats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .hc-cats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.hc-cat {
  padding-top: 20px;
  border-top: 1px solid var(--ink);
  scroll-margin-top: 88px;
}
.hc-cat h2 {
  font: 400 24px / 1.25 var(--sans);
  letter-spacing: -0.01em;
}
.hc-cat > p {
  margin-top: 6px;
  color: var(--muted);
}
.hc-cat ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.hc-cat li a {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid var(--hc-line);
  color: var(--ink);
}
.hc-cat li a::after {
  content: " →";
  color: var(--soft);
}
.hc-cat li a:hover {
  color: var(--brand);
}

.hc-contact {
  display: grid;
  gap: 24px;
  align-items: center;
  margin: 88px 0 96px;
  padding: 32px;
  border-radius: 24px;
  background: var(--mist);
}
.hc-contact h2 {
  font: 300 32px / 1.15 var(--display);
}
.hc-contact p {
  max-width: 560px;
  margin-top: 10px;
}
.hc-contact a:not(.pill) {
  text-decoration: underline;
}
.hc-contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
@media (min-width: 900px) {
  .hc-contact {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 48px;
  }
}
/* ---------- Article ---------- */
.hc-article-wrap {
  display: grid;
  gap: 32px;
  padding-top: 32px;
  padding-bottom: 96px;
}
@media (min-width: 1024px) {
  .hc-article-wrap {
    grid-template-columns: 248px minmax(0, 1fr);
    gap: 56px;
    padding-top: 48px;
  }
}
.hc-side {
  display: none;
  font-size: 14px;
}
@media (min-width: 1024px) {
  .hc-side {
    display: block;
    position: sticky;
    top: 88px;
    align-self: start;
    max-height: calc(100vh - 104px);
    overflow: auto;
    padding-right: 8px;
  }
}
.hc-side-home {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--muted);
}
.hc-side-home:hover {
  color: var(--ink);
}
.hc-nav-group {
  border-top: 1px solid var(--hc-line);
}
.hc-nav-group summary {
  padding: 12px 0;
  font-weight: 500;
  color: var(--ink);
  list-style: none;
  cursor: pointer;
}
.hc-nav-group summary::-webkit-details-marker {
  display: none;
}
.hc-nav-group ul {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}
.hc-nav-group a {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  line-height: 1.35;
  color: var(--muted);
}
.hc-nav-group a:hover {
  color: var(--ink);
  background: var(--mist);
}
.hc-nav-group a[aria-current="page"] {
  color: var(--ink);
  background: var(--mist-2);
  font-weight: 500;
}

.hc-article {
  min-width: 0;
  max-width: 760px;
}
.hc-article h1 {
  margin-top: 24px;
  font: 300 38px / 1.1 var(--display);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
@media (min-width: 768px) {
  .hc-article h1 {
    font-size: 52px;
  }
}
.hc-meta {
  margin-top: 14px;
  font: 500 12px / 1.4 var(--label);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
/* On this page: a quiet rail to the right of the article, on screens wide enough to hold it. */
.hc-toc {
  display: none;
  font-size: 13px;
}
@media (min-width: 1280px) {
  .hc-article-wrap:has(.hc-toc) {
    grid-template-columns: 232px minmax(0, 1fr) 200px;
    gap: 56px;
  }
  .hc-toc {
    display: block;
    position: sticky;
    top: 88px;
    align-self: start;
    padding-top: 92px;
  }
}
.hc-toc p {
  font: 500 11px / 1.4 var(--label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
/* Hand-drawn marks (masks from @chaser/ink, defined in Document.astro). */
.hc-toc p::before,
.hc-callout strong:first-child::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 6px;
  vertical-align: -3px;
  background: currentColor;
  mask: var(--ink-list) center / contain no-repeat;
}
.hc-tip strong:first-child::before {
  mask-image: var(--ink-lightbulb);
}
.hc-note strong:first-child::before {
  mask-image: var(--ink-info);
}

.hc-toc ol {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--hc-line);
}
.hc-toc a {
  display: block;
  margin-left: -1px;
  padding: 5px 0 5px 14px;
  border-left: 1px solid transparent;
  line-height: 1.35;
  color: var(--muted);
}
.hc-toc a:hover {
  color: var(--ink);
}
.hc-toc a[aria-current="true"] {
  color: var(--ink);
  border-left-color: var(--ink);
}

.hc-body {
  margin-top: 32px;
  font-size: 17px;
  line-height: 1.65;
}
.hc-body > p,
.hc-body > ul,
.hc-body > ol,
.hc-body > aside,
.hc-body > h2 {
  max-width: 680px;
}
.hc-body > * + * {
  margin-top: 18px;
}
.hc-lede {
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink);
}
.hc-body h2 {
  margin-top: 48px;
  font: 400 26px / 1.25 var(--sans);
  letter-spacing: -0.01em;
  color: var(--ink);
  scroll-margin-top: 88px;
}
.hc-body strong {
  font-weight: 600;
  color: var(--ink);
}
.hc-body a,
.hc-faq a,
.hc-foot a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(184, 53, 90, 0.5);
  text-underline-offset: 3px;
}
.hc-body a:hover {
  text-decoration-color: var(--brand);
}
.hc-list {
  padding-left: 22px;
}
.hc-steps {
  counter-reset: step;
  padding: 0;
  list-style: none;
}
.hc-steps li {
  position: relative;
  padding-left: 44px;
  counter-increment: step;
}
.hc-list li + li {
  margin-top: 8px;
}
.hc-steps li + li {
  margin-top: 14px;
}
.hc-steps li::before {
  content: counter(step);
  position: absolute;
  top: 1px;
  left: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font: 500 14px / 1 var(--sans);
}
.hc-callout {
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--mist);
  font-size: 16px;
}
.hc-callout strong:first-child {
  margin-right: 6px;
  font: 500 12px / 1 var(--label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hc-tip strong:first-child {
  color: #1d6b45;
}
.hc-note {
  background: #fff4f1;
}
.hc-note strong:first-child {
  color: var(--brand);
}

/* Screenshots */
.hc-fig {
  margin: 32px 0 36px;
}
.hc-fig figcaption {
  max-width: 680px;
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}
.hc-zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.hc-zoom img {
  width: 100%;
  height: auto;
}
.hc-zoom:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
}
.hc-window {
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--hc-line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.hc-email {
  max-width: min(100%, 560px);
}
.hc-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-bottom: 1px solid var(--hc-line);
  background: var(--mist);
}
.hc-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d6d8de;
}
.hc-bar span {
  margin-left: 8px;
  font: 500 11px / 1 var(--label);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--soft);
}
.hc-detail {
  width: fit-content;
  max-width: min(100%, var(--w));
  overflow: hidden;
  border: 1px solid var(--hc-line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.hc-phone {
  width: min(100%, 300px);
  overflow: hidden;
  border: 7px solid var(--ink);
  border-radius: 38px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.hc-phone .hc-zoom img {
  border-radius: 31px;
}
.hc-phones {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 32px;
  margin: 32px 0 36px;
}
.hc-phones .hc-fig {
  flex: 0 1 300px;
  margin: 0;
}
.hc-fig-phone figcaption {
  max-width: 300px;
}
/* Questions, related, next */
.hc-faq {
  margin-top: 64px;
}
.hc-faq h2,
.hc-related h2 {
  margin-bottom: 12px;
  font: 400 26px / 1.25 var(--sans);
}
.hc-faq details {
  max-width: 680px;
  border-top: 1px solid var(--hc-line);
}
.hc-faq details:last-child {
  border-bottom: 1px solid var(--hc-line);
}
.hc-faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  font-weight: 500;
  color: var(--ink);
  list-style: none;
  cursor: pointer;
}
.hc-faq summary::-webkit-details-marker {
  display: none;
}
.hc-faq summary::after {
  content: "+";
  font: 300 24px / 1 var(--display);
  transition: transform 0.3s var(--ease);
}
.hc-faq details[open] summary::after {
  transform: rotate(45deg);
}
.hc-related {
  margin-top: 56px;
}
.hc-related ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) {
  .hc-related ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.hc-related a {
  display: grid;
  gap: 4px;
  height: 100%;
  padding: 16px 18px;
  border: 1px solid var(--hc-line);
  border-radius: 14px;
  transition: border-color 0.2s var(--ease);
}
.hc-related a:hover {
  border-color: var(--ink);
}
.hc-related strong {
  font-weight: 500;
  color: var(--ink);
}
.hc-related span {
  font-size: 15px;
  color: var(--muted);
}
.hc-foot {
  display: grid;
  gap: 20px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--hc-line);
}
.hc-foot p {
  max-width: 620px;
  color: var(--muted);
}
.hc-faq details p {
  padding-bottom: 18px;
  line-height: 1.6;
}
.hc-next {
  display: grid;
  justify-self: start;
  gap: 2px;
  padding: 14px 20px;
  border: 1px solid var(--ink);
  border-radius: 14px;
  font-weight: 500;
  color: var(--ink);
}
.hc-next span {
  font: 500 12px / 1.4 var(--label);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.hc-next:hover {
  background: var(--ink);
  color: #fff;
}

/* Enlarged screenshot */
.hc-lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  margin: 0;
  padding: max(16px, env(safe-area-inset-top)) 16px 16px;
  border: 0;
  background: rgba(30, 23, 40, 0.88);
  cursor: zoom-out;
}
.hc-lightbox[open] {
  display: grid;
  place-items: center;
}
.hc-lightbox::backdrop {
  background: transparent;
}
.hc-lightbox img {
  max-width: min(100%, 1600px);
  max-height: calc(100vh - 48px);
  width: auto;
  height: auto;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}
.hc-lightbox button {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  right: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.hc-list {
  list-style: disc;
}
.hc-list li::marker {
  color: var(--soft);
}

/* A small enlarge badge, so phones know the picture opens bigger. */
.hc-zoom {
  position: relative;
}
.hc-zoom::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background:
    rgba(30, 23, 40, 0.72)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M15 4h5v5M9 20H4v-5M20 4l-6 6M4 20l6-6'/%3E%3C/svg%3E")
    center / 15px no-repeat;
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}
.hc-zoom:hover::after,
.hc-zoom:focus-visible::after {
  opacity: 1;
}
@media (hover: none) {
  .hc-zoom::after {
    opacity: 0.85;
  }
}
