/* Public Help Centre. It extends the main Turtle design system in styles.css. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.help-body {
  background: #fbf8f2;
}

.help-body .nav {
  background: rgba(251, 248, 242, .94);
  border-bottom-color: var(--line);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}

.help-body .nav__links a[aria-current="page"] {
  color: var(--brand);
  font-weight: 700;
}

.help-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 34px;
  color: rgba(35, 32, 71, .58);
  font-size: .84rem;
}

.help-breadcrumb a {
  color: inherit;
}

.help-breadcrumb span:last-child {
  overflow: hidden;
  max-width: 56ch;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.help-hero {
  position: relative;
  padding: 76px 0 88px;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 8%, rgba(88, 86, 214, .14), transparent 30%),
    radial-gradient(circle at 4% 100%, rgba(224, 121, 90, .11), transparent 34%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}

.help-hero__inner {
  max-width: 920px;
}

.help-hero h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(2.65rem, 6vw, 4.65rem);
  letter-spacing: 0;
}

.help-hero__inner > p:not(.kicker) {
  max-width: 690px;
  margin-bottom: 30px;
  color: var(--ink-soft);
  font-size: 1.12rem;
}

.help-search {
  display: flex;
  width: min(100%, 760px);
  min-height: 64px;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
  background: #fff;
  border: 1px solid rgba(88, 86, 214, .28);
  border-radius: 8px;
  box-shadow: 0 18px 46px -28px rgba(35, 32, 71, .52);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.help-search:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(88, 86, 214, .12), 0 18px 46px -28px rgba(35, 32, 71, .52);
}

.help-search svg {
  width: 23px;
  height: 23px;
  flex: none;
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.help-search input {
  width: 100%;
  min-width: 0;
  padding: 18px 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font: 500 1rem/1.4 var(--body);
}

.help-search input::placeholder {
  color: rgba(35, 32, 71, .48);
}

.help-platform {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 20px;
}

.help-platform > span {
  margin-right: 4px;
  color: var(--ink-soft);
  font-size: .84rem;
  font-weight: 600;
}

.help-platform button {
  min-height: 36px;
  padding: 7px 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font: 600 .8rem/1 var(--body);
}

.help-platform button[aria-pressed="true"] {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.help-directory {
  padding: 88px 0 108px;
}

.help-directory__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  margin-bottom: 34px;
}

.help-directory__heading h2 {
  margin: 0;
}

.help-directory__heading > p {
  margin: 0 0 4px;
  color: var(--ink-soft);
  font-size: .94rem;
}

.help-directory__heading > p strong {
  color: var(--brand-deep);
  font-size: 1.08rem;
}

.help-category-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.help-filter {
  min-height: 104px;
  padding: 20px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.help-filter:hover {
  background: #fff;
}

.help-filter[aria-pressed="true"] {
  color: #fff;
  background: var(--brand);
}

.help-filter span {
  display: block;
  font: 700 1rem/1.2 var(--display);
  letter-spacing: 0;
}

.help-filter small {
  display: block;
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: .78rem;
  line-height: 1.45;
}

.help-filter[aria-pressed="true"] small {
  color: rgba(255, 255, 255, .76);
}

.help-filter--compact {
  min-height: 104px;
}

.help-results {
  margin-top: 54px;
  border-top: 1px solid var(--ink);
}

.help-result {
  border-bottom: 1px solid var(--line);
}

.help-result[hidden] {
  display: none;
}

.help-result > a {
  position: relative;
  display: grid;
  min-height: 154px;
  padding: 28px 80px 28px 0;
  grid-template-columns: 190px minmax(240px, .9fr) minmax(280px, 1.35fr);
  gap: 30px;
  align-items: center;
  color: var(--ink);
  transition: padding-left .2s ease, background .2s ease;
}

.help-result > a:hover {
  padding-left: 16px;
  text-decoration: none;
  background: rgba(255, 255, 255, .7);
}

.help-result__category {
  color: var(--brand);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.help-result h2 {
  margin: 0;
  font-size: clamp(1.28rem, 2vw, 1.68rem);
  letter-spacing: 0;
}

.help-result p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .92rem;
  line-height: 1.55;
}

.help-result__arrow {
  position: absolute;
  right: 18px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--brand);
  border: 1px solid var(--lilac-deep);
  border-radius: 50%;
  font-size: 1.2rem;
  transition: color .2s ease, background .2s ease;
}

.help-result > a:hover .help-result__arrow {
  color: #fff;
  background: var(--brand);
}

.help-empty {
  padding: 64px 0;
  border-top: 1px solid var(--ink);
}

.help-empty h2 {
  margin-bottom: 12px;
}

.help-empty p {
  max-width: 570px;
  color: var(--ink-soft);
}

.help-support-band {
  padding: 86px 0;
  color: #fff;
  background: var(--ink);
}

.help-support-band__inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 72px;
  align-items: center;
}

.help-support-band h2 {
  max-width: 13ch;
  margin-bottom: 14px;
  font-size: clamp(2.1rem, 4.6vw, 3.3rem);
  letter-spacing: 0;
}

.help-support-band p:not(.kicker) {
  max-width: 610px;
  margin: 0;
  color: rgba(255, 255, 255, .72);
}

.help-store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.help-support-band .help-store-actions {
  flex-direction: column;
}

.help-support-band .btn--outline {
  color: #fff;
  border-color: rgba(255, 255, 255, .38);
}

.help-email {
  display: inline-block;
  margin-top: 18px;
  color: rgba(255, 255, 255, .72);
  font-size: .9rem;
}

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

/* Article pages */
.help-article {
  padding: 62px 0 96px;
}

.help-article__layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(210px, 1fr);
  gap: 88px;
  align-items: start;
}

.help-article__header {
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}

.help-article__header h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(2.5rem, 5.4vw, 4.4rem);
  letter-spacing: 0;
}

.help-article__header > p:not(.kicker):not(.help-platform-note) {
  max-width: 690px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 1.16rem;
  line-height: 1.65;
}

.help-platform-note {
  display: inline-flex;
  margin: 22px 0 0;
  padding: 8px 12px;
  color: var(--brand-deep);
  background: var(--lilac);
  border: 1px solid var(--lilac-deep);
  border-radius: 4px;
  font-size: .82rem;
  font-weight: 600;
}

.help-steps {
  padding: 54px 0 16px;
}

.help-steps h2 {
  margin-bottom: 28px;
  font-size: 1.75rem;
  letter-spacing: 0;
}

.help-steps ol {
  counter-reset: help-step;
}

.help-steps li {
  display: grid;
  min-height: 86px;
  padding: 20px 0;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.help-steps li:last-child {
  border-bottom: 1px solid var(--line);
}

.help-steps li > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #fff;
  background: var(--brand);
  border-radius: 50%;
  font-size: .82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.help-steps li p {
  margin: 4px 0 0;
  color: var(--ink);
  line-height: 1.58;
}

.help-video-note {
  margin-top: 32px;
  padding: 22px 24px;
  background: var(--lilac);
  border-left: 4px solid var(--brand);
}

.help-video-note strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--display);
}

.help-video-note p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .92rem;
}

.help-app-action {
  margin-top: 42px;
  padding: 34px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.help-app-action h2 {
  margin-bottom: 10px;
  font-size: 1.75rem;
  letter-spacing: 0;
}

.help-app-action > p:not(.kicker) {
  margin-bottom: 22px;
  color: var(--ink-soft);
}

.help-still-stuck {
  margin-top: 58px;
  padding-top: 36px;
  border-top: 1px solid var(--ink);
}

.help-still-stuck h2 {
  margin-bottom: 10px;
  font-size: 1.75rem;
  letter-spacing: 0;
}

.help-still-stuck p {
  max-width: 650px;
  color: var(--ink-soft);
}

.help-article__aside {
  position: sticky;
  top: 112px;
  padding-top: 4px;
  border-top: 1px solid var(--ink);
}

.help-article__aside > div {
  display: flex;
  padding: 18px 0;
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px solid var(--line);
}

.help-article__aside span {
  color: var(--ink-soft);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.help-article__aside strong {
  font-size: .92rem;
}

.help-article__aside > a {
  display: inline-block;
  margin-top: 18px;
  font-size: .88rem;
  font-weight: 700;
}

.help-related {
  padding: 86px 0 104px;
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
}

.help-related h2 {
  margin-bottom: 28px;
  letter-spacing: 0;
}

.help-related__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(35, 32, 71, .26);
  border-left: 1px solid rgba(35, 32, 71, .26);
}

.help-related__list a {
  position: relative;
  display: flex;
  min-height: 180px;
  padding: 26px 56px 26px 26px;
  flex-direction: column;
  color: var(--ink);
  border-right: 1px solid rgba(35, 32, 71, .26);
  border-bottom: 1px solid rgba(35, 32, 71, .26);
}

.help-related__list a:hover {
  background: #fff;
  text-decoration: none;
}

.help-related__list span {
  color: var(--brand);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.help-related__list strong {
  margin-top: 14px;
  font: 700 1.12rem/1.3 var(--display);
}

.help-related__list em {
  position: absolute;
  right: 22px;
  bottom: 22px;
  color: var(--brand);
  font-style: normal;
}

@media (max-width: 980px) {
  .help-result > a {
    grid-template-columns: 140px minmax(220px, .9fr) minmax(240px, 1.2fr);
    gap: 22px;
  }

  .help-article__layout {
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 48px;
  }
}

@media (max-width: 820px) {
  .help-category-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .help-result > a {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .help-result__category {
    margin-bottom: 4px;
  }

  .help-support-band__inner,
  .help-article__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .help-article__aside {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
  }

  .help-article__aside > a {
    grid-column: 1 / -1;
  }

  .help-related__list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .help-hero {
    padding: 42px 0 56px;
  }

  .help-hero h1 {
    font-size: 2.55rem;
  }

  .help-hero__inner > p:not(.kicker) {
    font-size: 1rem;
  }

  .help-breadcrumb {
    margin-bottom: 24px;
  }

  .help-search {
    min-height: 58px;
  }

  .help-directory {
    padding: 62px 0 78px;
  }

  .help-directory__heading {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .help-category-controls {
    display: flex;
    margin-right: -24px;
    overflow-x: auto;
    border: 0;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .help-category-controls::-webkit-scrollbar {
    display: none;
  }

  .help-filter,
  .help-filter--compact {
    width: 180px;
    min-width: 180px;
    min-height: 92px;
    padding: 16px;
    border: 1px solid var(--line);
    border-right: 0;
    scroll-snap-align: start;
  }

  .help-filter:first-child {
    width: 112px;
    min-width: 112px;
  }

  .help-filter:nth-child(2) {
    width: 132px;
    min-width: 132px;
  }

  .help-results {
    margin-top: 38px;
  }

  .help-result > a {
    min-height: 0;
    padding: 24px 54px 24px 0;
  }

  .help-result > a:hover {
    padding-left: 0;
  }

  .help-result p {
    font-size: .88rem;
  }

  .help-result__arrow {
    right: 2px;
    width: 36px;
    height: 36px;
  }

  .help-support-band {
    padding: 64px 0;
  }

  .help-support-band__inner {
    gap: 34px;
  }

  .help-support-band h2 {
    font-size: 2.25rem;
  }

  .help-article {
    padding: 36px 0 68px;
  }

  .help-article__layout {
    gap: 42px;
  }

  .help-article__header {
    padding-bottom: 34px;
  }

  .help-article__header h1 {
    font-size: 2.45rem;
  }

  .help-article__header > p:not(.kicker):not(.help-platform-note) {
    font-size: 1rem;
  }

  .help-article__aside {
    grid-template-columns: 1fr;
  }

  .help-steps {
    padding-top: 38px;
  }

  .help-steps li {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
  }

  .help-app-action {
    padding: 24px 20px;
  }

  .help-app-action .help-store-actions {
    flex-direction: column;
  }

  .help-app-action .btn {
    width: 100%;
  }

  .help-related {
    padding: 62px 0 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .help-result > a,
  .help-result__arrow,
  .help-search {
    transition: none;
  }
}
