:root {
  color-scheme: dark;
  --guide-page: #000;
  --guide-text: #f5f5f5;
  --guide-muted: #9b9b9b;
  --guide-muted-strong: #c7c7c7;
  --guide-line: rgba(255, 255, 255, .14);
  --guide-line-strong: rgba(255, 255, 255, .24);
  --guide-purple: #a987ff;
  --guide-blue: #67d8ff;
  --guide-green: #70dc78;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--guide-page);
  color: var(--guide-text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: .75rem .5rem .5rem;
  display: flex;
  justify-content: center;
}

.navbar {
  box-sizing: border-box;
  min-height: 62px;
  align-items: center;
}

.navbar-brand > div,
#nav-menu,
.navbar .order-1 {
  align-items: center;
}

.actionclip-logo-img,
.navbar-brand img,
.footer-logo-img {
  width: 40px !important;
  height: 40px !important;
  border: 0 !important;
  border-radius: 9px;
  box-shadow: none !important;
  background: transparent !important;
  outline: 0 !important;
}

.btn-header {
  min-height: 42px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding-top: .65rem !important;
  padding-bottom: .65rem !important;
}

.apple,
.dark .apple {
  display: inline-flex;
  width: 1.12rem;
  height: 1.12rem;
  align-items: center;
  justify-content: center;
  margin-right: .62rem;
  background-image: none;
  color: #000;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1;
}

.nav-link-external {
  display: flex;
  align-items: center;
  gap: .3rem;
}

.nav-external-icon {
  width: .85rem;
  height: .85rem;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 1.8;
  opacity: .65;
}

/* Guide index */

.guides-main {
  width: min(100%, 880px);
  min-height: calc(100vh - 260px);
  margin: 0 auto;
  padding: clamp(76px, 9vw, 116px) 24px 124px;
}

.guides-hero {
  max-width: 720px;
  margin-bottom: 64px;
}

.guide-eyebrow {
  margin: 0 0 16px;
  color: var(--guide-green);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.guides-hero h1,
.article-header h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.45rem, 5vw, 3.35rem);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.guides-hero > p:not(.guide-eyebrow) {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--guide-muted-strong);
  font-size: 1.1rem;
  line-height: 1.7;
}

.guides-list {
  border-top: 1px solid var(--guide-line);
}

.guide-list-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 32px;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid var(--guide-line);
}

.guide-list-item:focus-visible {
  outline: 2px solid var(--guide-blue);
  outline-offset: 5px;
}

.guide-list-meta {
  display: flex;
  gap: 14px;
  margin-bottom: 11px;
  color: var(--guide-muted);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .025em;
}

.guide-list-item h2,
.guides-coming h2 {
  margin: 0;
  color: #fff;
  font-size: 1.48rem;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -.02em;
}

.guide-list-item p,
.guides-coming p {
  max-width: 700px;
  margin: 9px 0 0;
  color: var(--guide-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.guide-list-item:hover h2 {
  color: var(--guide-blue);
}

.guide-list-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--guide-line);
  border-radius: 8px;
}

.guide-list-image-themed {
  display: grid;
  place-items: center;
  padding: 16px;
  background:
    radial-gradient(circle at 20% 20%, rgba(111, 81, 255, .38), transparent 46%),
    radial-gradient(circle at 80% 78%, rgba(0, 188, 255, .18), transparent 46%),
    #0c0b13;
}

.guide-list-image-themed img {
  display: block;
  width: auto;
  max-width: 72%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .45);
}

.guide-list-image-wide {
  padding: 10px;
}

.guide-screenshot-frame {
  position: relative;
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  aspect-ratio: 1320 / 692;
}

.guide-screenshot-frame-compact {
  aspect-ratio: 470 / 551;
}

.guide-screenshot-frame img,
.guide-list-image-wide .guide-screenshot-frame img {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  object-fit: contain;
}

.guide-focus-ring {
  position: absolute;
  z-index: 2;
  left: var(--focus-left);
  top: var(--focus-top);
  width: var(--focus-width);
  height: var(--focus-height);
  border: 2px solid rgba(255, 132, 31, .96);
  border-radius: 8px;
  box-shadow:
    0 0 0 3px rgba(255, 132, 31, .2),
    0 10px 30px rgba(80, 36, 0, .28);
  pointer-events: none;
}

.guides-coming {
  padding: 30px 0;
  border-bottom: 1px solid var(--guide-line);
}

/* Article pages */

.article-main {
  width: 100%;
  min-height: calc(100vh - 260px);
  padding: clamp(64px, 8vw, 104px) 24px 120px;
}

.article-main > article {
  display: grid;
  grid-template-columns: 176px minmax(0, 700px);
  column-gap: 64px;
  justify-content: center;
}

.article-header {
  grid-column: 2;
  margin-bottom: 58px;
}

.article-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
  color: #7f7f7f;
  font-size: .85rem;
  line-height: 1.5;
}

.article-breadcrumbs a {
  color: #b6b6b6;
}

.article-breadcrumbs a:hover {
  color: #fff;
}

.article-intro {
  max-width: 680px;
  margin: 23px 0 0;
  color: var(--guide-muted-strong);
  font-size: 1.12rem;
  line-height: 1.68;
}

.article-featured-image {
  margin: 38px 0 0;
  overflow: hidden;
  border: 1px solid var(--guide-line);
  border-radius: 10px;
}

.article-featured-image img {
  display: block;
  width: 100%;
  height: auto;
}

.release-guide-feature {
  display: grid;
  place-items: center;
  min-height: 360px;
  padding: clamp(24px, 5vw, 52px);
  background:
    radial-gradient(circle at 18% 18%, rgba(111, 81, 255, .42), transparent 42%),
    radial-gradient(circle at 82% 74%, rgba(0, 188, 255, .23), transparent 44%),
    #0c0b13;
}

.release-shot-frame {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
}

.release-shot-frame-compact {
  width: min(100%, 443px);
}

.release-shot-frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .48);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 24px;
  color: var(--guide-muted);
  font-size: .8rem;
  font-weight: 600;
}

.guide-tag {
  color: var(--guide-muted);
  font: inherit;
}

.guide-tag + span::before {
  content: "·";
  margin: 0 12px;
}

.article-layout {
  display: contents;
}

.article-toc {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  position: sticky;
  top: 104px;
  padding-left: 16px;
  border-left: 1px solid var(--guide-line);
}

.article-toc-title {
  margin: 0 0 12px;
  color: #d4d4d4;
  font-size: .78rem;
  font-weight: 700;
}

.article-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.article-toc a {
  display: block;
  color: #858585;
  font-size: .78rem;
  line-height: 1.45;
}

.article-toc a:hover {
  color: #e8e8e8;
}

.article-body {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  color: var(--guide-muted-strong);
  font-size: 1.04rem;
  line-height: 1.75;
}

.article-body h2,
.article-body h3 {
  scroll-margin-top: 112px;
  color: #fff;
  letter-spacing: -.02em;
}

.article-body h2 {
  margin: 64px 0 18px;
  font-size: 1.65rem;
  font-weight: 650;
  line-height: 1.3;
}

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

.article-body h3 {
  margin: 36px 0 12px;
  font-size: 1.18rem;
  font-weight: 650;
  line-height: 1.42;
}

.article-body p {
  margin: 0 0 20px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 24px;
  padding-left: 1.4em;
}

.article-body ul {
  list-style: disc outside;
}

.article-body ol {
  list-style: decimal outside;
}

.article-body ul ul {
  list-style-type: circle;
}

.article-body ol ol {
  list-style-type: lower-alpha;
}

.article-body li::marker {
  color: #8b8b8b;
  font-weight: 600;
}

.article-body li {
  padding-left: .28em;
}

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

.article-body strong {
  color: #f1f1f1;
  font-weight: 650;
}

.article-body a:not(.action-settings-image-link):not(.related-action):not(.article-back-link) {
  color: var(--guide-blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .17em;
}

.article-body a:not(.action-settings-image-link):not(.related-action):not(.article-back-link):hover {
  color: #b7efff;
}

.article-body code {
  color: #e2d8ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .87em;
  overflow-wrap: anywhere;
}

.article-section-number {
  display: none;
}

.article-note {
  margin: 30px 0;
  padding: 1px 0 1px 18px;
  border-left: 2px solid var(--guide-purple);
  color: #d3d3d3;
}

.article-note p:last-child {
  margin-bottom: 0;
}

.article-screenshot,
.widget-order-flow {
  margin: 32px 0 42px;
}

.article-screenshot a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--guide-line-strong);
  border-radius: 8px;
  background: #eee;
}

.article-screenshot img,
.widget-order-flow img {
  display: block;
  width: 100%;
  height: auto;
}

.article-screenshot figcaption,
.widget-order-flow figcaption {
  margin-top: 10px;
  color: #858585;
  font-size: .8rem;
  line-height: 1.55;
}

.article-screenshot figcaption a {
  display: inline;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: none;
}

.widget-order-flow {
  padding: 20px 0;
  border-top: 1px solid var(--guide-line);
  border-bottom: 1px solid var(--guide-line);
}

.widget-order-flow figcaption {
  margin: 0 0 14px;
}

.widget-order-image-scroll {
  overflow-x: auto;
  border-radius: 6px;
}

.widget-order-image-scroll img {
  min-width: 720px;
}

.article-table-wrap {
  overflow-x: auto;
  margin: 30px 0 38px;
}

.article-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  color: var(--guide-muted-strong);
  font-size: .9rem;
  line-height: 1.55;
}

.article-table-wrap th,
.article-table-wrap td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--guide-line);
  text-align: left;
  vertical-align: top;
}

.article-table-wrap th {
  border-top: 1px solid var(--guide-line);
  color: #fff;
  font-weight: 650;
}

.article-end {
  margin-top: 68px;
  padding-top: 24px;
  border-top: 1px solid var(--guide-line);
}

.article-back-link {
  color: #d1d1d1;
  font-size: .9rem;
  font-weight: 600;
}

.article-back-link:hover {
  color: var(--guide-blue);
}

@media (max-width: 920px) {
  .article-main > article {
    display: block;
    width: min(100%, 700px);
    margin: 0 auto;
  }

  .article-header {
    margin-bottom: 42px;
  }

  .article-layout {
    display: block;
  }

  .article-toc {
    position: static;
    margin-bottom: 46px;
    padding: 20px 0;
    border-top: 1px solid var(--guide-line);
    border-right: 0;
    border-bottom: 1px solid var(--guide-line);
    border-left: 0;
  }

  .article-toc ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 24px;
  }

  .article-toc li + li {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .guides-main,
  .article-main {
    padding-right: 20px;
    padding-left: 20px;
  }

  .guides-hero {
    margin-bottom: 46px;
  }

  .guide-list-item {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px 0;
  }

  .guide-list-image {
    order: -1;
  }

  .release-guide-feature {
    min-height: 220px;
    padding: 20px;
  }

  .article-breadcrumbs {
    margin-bottom: 32px;
  }

  .article-toc ol {
    grid-template-columns: 1fr;
  }

  .article-body {
    font-size: 1rem;
    line-height: 1.72;
  }

  .article-body h2 {
    margin-top: 52px;
    font-size: 1.48rem;
  }
}
