/* Support: the knowledge base at /support/ and its articles */

.help-main {
  padding-bottom: 112px;
}

/* The bar under the navigation on every article: the way back to Support, and search. */

.help-bar {
  border-bottom: 1px solid var(--hairline);
}

.help-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  min-height: 64px;
  padding-block: 10px;
}

.help-bar-title {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.011em;
  color: var(--text);
}

.help-bar-title:hover {
  text-decoration: none;
}

.help-bar-search {
  flex: 0 1 340px;
}

.search-input.compact {
  height: 38px;
  padding-left: 38px;
  border-radius: 10px;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.help-bar-search .search-field svg {
  left: 12px;
  width: 16px;
  height: 16px;
}

/* Index */

.help-hero {
  padding-block: 80px 48px;
  text-align: center;
}

.help-hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.015em;
}

.help-search-page {
  width: min(100%, 640px);
  margin: 34px auto 0;
}

.search-input.large {
  height: 58px;
  padding-left: 52px;
  border-radius: 14px;
  font-size: 19px;
  letter-spacing: -0.012em;
}

.help-search-page .search-field svg {
  left: 18px;
  width: 20px;
  height: 20px;
}

.help-popular {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  max-width: 640px;
  margin: 20px auto 0;
  font-size: 15px;
  color: var(--text-2);
}

.help-popular-title {
  font-size: inherit;
  font-weight: 400;
  color: inherit;
}

.help-popular-title::after {
  content: ":";
}

.help-popular ul {
  display: contents;
  list-style: none;
}

.help-results {
  padding-block: 8px 24px;
}

.results-title {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.009em;
}

.results-lead {
  margin-top: 10px;
  color: var(--text-2);
}

.results-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.results-list li {
  border-bottom: 1px solid var(--line);
}

.results-list a {
  display: block;
  padding: 18px 0;
  color: var(--text);
}

.results-list a:hover {
  text-decoration: none;
}

.results-list a:hover .result-title {
  color: var(--link);
}

.results-list .result-title {
  display: block;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color var(--dur-press) var(--ease-standard);
}

.results-list .result-summary {
  display: block;
  margin-top: 4px;
  color: var(--text-2);
}

.results-list .result-path {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-2);
}

/* Three columns: the eight sections and Contact support fill three rows. */
.help-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.help-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  min-height: 212px;
  padding: 26px 24px 22px;
  border-radius: 22px;
  background: var(--bg-alt);
  color: var(--text);
  transition: background-color var(--dur-press) var(--ease-standard), transform var(--dur-state) var(--ease-settle);
}

.help-tile:hover {
  text-decoration: none;
}

.help-tile:active {
  transform: scale(0.985);
}

.tile-emblem svg {
  display: block;
  width: 38px;
  height: 38px;
  margin-bottom: 10px;
  fill: none;
  stroke: var(--text);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

.tile-emblem .em {
  fill: transparent;
  transition: fill 0.2s var(--ease-standard), stroke 0.2s var(--ease-standard);
}

.tile-emblem .em-link {
  stroke-dasharray: 2 3;
  transition: stroke-dasharray 0.2s var(--ease-standard), stroke 0.2s var(--ease-standard);
}

/* The page's one gesture: a hairline emblem fills, as the app's menu bar icon fills when connected. */
.help-tile:hover .tile-emblem svg,
.help-tile:focus-visible .tile-emblem svg {
  stroke: var(--accent);
}

.help-tile:hover .em,
.help-tile:focus-visible .em {
  fill: var(--accent-soft);
  stroke: var(--accent);
}

.help-tile:hover .em-link,
.help-tile:focus-visible .em-link {
  stroke-dasharray: 2 0;
}

.tile-title {
  font-size: 19px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: 0.012em;
}

.tile-text {
  font-size: 14px;
  line-height: 1.43;
  letter-spacing: -0.016em;
  color: var(--text-2);
}

.tile-count {
  margin-top: auto;
  padding-top: 8px;
  font-size: 13px;
  color: var(--text-2);
}

.help-all {
  margin-top: 96px;
}

.help-all-title {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.1;
  letter-spacing: 0;
}

.help-category {
  padding-top: 44px;
}

.help-category h3 {
  font-size: 24px;
  line-height: 1.17;
  font-weight: 600;
  letter-spacing: 0.009em;
}

.article-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 44px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.article-list a {
  display: block;
  height: 100%;
  padding: 16px 0 18px;
  border-top: 1px solid var(--line);
  color: var(--text);
}

.article-list a:hover {
  text-decoration: none;
}

.article-list a:hover .al-title {
  color: var(--link);
}

.al-title {
  display: block;
  font-weight: 600;
  transition: color var(--dur-press) var(--ease-standard);
}

.al-summary {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--text-2);
}

.help-contact {
  margin-top: 96px;
  padding: 52px 32px;
  border-radius: 24px;
  background: var(--bg-alt);
  text-align: center;
}

.help-contact h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.1;
}

.help-contact p {
  max-width: 32em;
  margin: 12px auto 0;
  color: var(--text-2);
}

.help-contact .help-contact-actions {
  margin-top: 24px;
}

/* Articles */

.article-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 72px;
  padding-top: 48px;
}

.article-rail {
  position: sticky;
  top: 84px;
  align-self: start;
  font-size: 14px;
  letter-spacing: -0.016em;
}

.rail-title {
  margin-bottom: 10px;
  font-weight: 600;
}

.rail-title a {
  color: var(--text);
}

.rail-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--line);
}

.rail-list a {
  display: block;
  margin-left: -1px;
  padding: 7px 0 7px 14px;
  border-left: 2px solid transparent;
  color: var(--text-2);
  line-height: 1.35;
}

.rail-list a:hover {
  color: var(--text);
  text-decoration: none;
}

.rail-list a[aria-current="page"] {
  border-left-color: var(--accent);
  color: var(--text);
  font-weight: 600;
}

.article {
  max-width: var(--narrow);
  min-width: 0;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  letter-spacing: -0.016em;
}

.breadcrumb li + li::before {
  content: "›";
  margin-right: 8px;
  color: var(--text-2);
}

.breadcrumb a {
  color: var(--text-2);
}

.article h1 {
  font-size: clamp(34px, 4.6vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.012em;
}

.lede {
  margin-top: 16px;
  font-size: clamp(19px, 2.1vw, 22px);
  line-height: 1.4;
  letter-spacing: 0.006em;
  color: var(--text-2);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 18px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  letter-spacing: -0.01em;
  color: var(--text-2);
}

.article-meta span + span::before {
  content: "·";
  margin-right: 16px;
}

.article-body {
  margin-top: 28px;
}

.article-body h2 {
  margin-top: 40px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.009em;
}

.article-body > :first-child {
  margin-top: 0;
}

.article-body p,
.article-body ul,
.article-body ol,
.article-body table,
.article-body dl {
  margin-top: 14px;
  margin-bottom: 0;
}

.article-body ul {
  padding-left: 1.25em;
}

.article-body li + li {
  margin-top: 8px;
}

.ui {
  font-weight: 600;
  color: var(--text);
}

.msg {
  color: var(--text);
}

.article-body ol.steps {
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.article-body ol.steps > li {
  position: relative;
  min-height: 32px;
  padding-left: 48px;
  counter-increment: step;
}

.article-body ol.steps > li + li {
  margin-top: 16px;
}

.article-body ol.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}

.article-body ol.steps p {
  margin: 0;
}

.tip {
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--bg-alt);
  font-size: 15px;
  line-height: 1.47;
  color: var(--text-2);
}

.article-body .tip {
  margin-top: 24px;
}

.facts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.45;
}

.facts-table th,
.facts-table td {
  padding: 12px 16px 12px 0;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.facts-table tbody tr:last-child th,
.facts-table tbody tr:last-child td {
  border-bottom: 1px solid var(--line);
}

.facts-table th {
  font-weight: 600;
}

.facts-table tbody th {
  width: 32%;
}

.facts-table td {
  color: var(--text-2);
}

.messages dt {
  margin-top: 22px;
  font-weight: 600;
}

.messages dt:first-child {
  margin-top: 0;
}

.messages dd {
  margin: 6px 0 0;
  color: var(--text-2);
}

.article-action {
  margin-bottom: 8px;
}

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

.related h2,
.still-help h2 {
  font-size: 19px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: 0.012em;
}

.related ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.related li + li {
  margin-top: 8px;
}

.related a::after {
  content: "\00a0\203a";
}

.still-help {
  margin-top: 40px;
  padding: 26px 28px;
  border-radius: 20px;
  background: var(--bg-alt);
}

.still-help p {
  margin-top: 6px;
  color: var(--text-2);
}

/* Guides: the download and the price under the lede, and again at the end */

.guide-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 24px;
}

.guide-end {
  margin-top: 56px;
  padding: 32px 32px 30px;
  border-radius: 20px;
  background: var(--bg-alt);
}

.guide-end h2 {
  font-size: clamp(24px, 3vw, 28px);
  line-height: 1.15;
  letter-spacing: 0.004em;
}

.guide-end p {
  margin-top: 10px;
  color: var(--text-2);
}

.guide-end .guide-cta {
  margin-top: 22px;
}

.guide-end + .related {
  margin-top: 40px;
}

.still-help a,
.messages dd a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.pager {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
  font-size: 15px;
}

.pager a {
  max-width: 48%;
  line-height: 1.35;
}

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

/* An inline block on its own line: the link's hover underline stays on the title and never reaches the label. */
.pager-label {
  display: inline-block;
  width: 100%;
  margin-bottom: 2px;
  font-size: 13px;
  color: var(--text-2);
}

/* The reading line under the navigation follows the scroll where the browser can link the two. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .help .read-progress {
      opacity: 1;
      animation: read-progress linear both;
      animation-timeline: scroll(root block);
    }
  }
}

@keyframes read-progress {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

/* Small screens */

@media (max-width: 1023px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-top: 36px;
  }

  .article-rail {
    display: none;
  }

  .help-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Two columns would leave Contact support alone under the sections, so it takes the whole row, as one line. */
  .help-tiles .tile-row {
    grid-column: 1 / -1;
  }

  .tile-row .help-tile {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-content: center;
    gap: 4px 18px;
    min-height: 0;
  }

  .tile-row .tile-emblem {
    grid-row: 1 / span 3;
    align-self: center;
  }

  .tile-row .tile-emblem svg {
    margin-bottom: 0;
  }

  .tile-row :is(.tile-title, .tile-text, .tile-count) {
    grid-column: 2;
  }

  .tile-row .tile-count {
    margin-top: 0;
    padding-top: 0;
  }
}

@media (max-width: 734px) {
  .help-main {
    padding-bottom: 80px;
  }

  .help-hero {
    padding-block: 52px 32px;
  }

  .help-popular {
    display: block;
    margin-top: 24px;
    text-align: left;
  }

  .help-popular-title {
    padding-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
  }

  .help-popular-title::after {
    content: none;
  }

  .help-popular ul {
    display: block;
    margin: 0;
    padding: 0;
  }

  .help-popular a {
    display: block;
    padding: 10px 0;
    border-top: 1px solid var(--line);
  }

  .help-tiles {
    gap: 10px;
  }

  .help-tile {
    gap: 4px;
    min-height: 0;
    padding: 16px 14px 14px;
    border-radius: 18px;
  }

  .tile-emblem svg {
    width: 28px;
    height: 28px;
    margin-bottom: 6px;
  }

  .tile-title {
    font-size: 16px;
  }

  .tile-text {
    display: none;
  }

  .tile-count {
    padding-top: 2px;
  }

  .help-bar-search {
    flex: 1 1 100%;
  }

  .help-bar-inner {
    padding-block: 12px 14px;
  }

  .article-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .help-all {
    margin-top: 72px;
  }

  .help-contact {
    margin-top: 72px;
    padding: 40px 22px;
  }

  .pager {
    flex-direction: column;
  }

  .pager a {
    max-width: none;
  }

  .pager-next {
    text-align: left;
  }

  .facts-table tbody th {
    width: auto;
  }

  .article-meta {
    flex-direction: column;
    gap: 2px;
  }

  .article-meta span + span::before {
    content: none;
  }
}

/* Below 360 px two columns are narrower than "Troubleshooting": every tile becomes a line of its own. */
@media (max-width: 359px) {
  .help-tiles {
    grid-template-columns: minmax(0, 1fr);
  }

  .help-tiles .help-tile {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-content: center;
    gap: 2px 16px;
  }

  .help-tiles .tile-emblem {
    grid-row: 1 / span 3;
    align-self: center;
  }

  .help-tiles .tile-emblem svg {
    margin-bottom: 0;
  }

  .help-tiles :is(.tile-title, .tile-text, .tile-count) {
    grid-column: 2;
  }

  .help-tiles .tile-count {
    margin-top: 0;
    padding-top: 0;
  }
}

@media (forced-colors: active) {
  .help-tile {
    border: 1px solid CanvasText;
  }
}
