/* Guides and comparison pages. Loaded after styles.css (tokens, nav, buttons, footer). */

.page {
  padding: clamp(28px, 4vw, 48px) 0 clamp(56px, 7vw, 88px);
}
.page-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
  font-size: 13.5px;
  color: var(--ink-3);
}
.crumbs a {
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.crumbs span[aria-hidden] {
  color: var(--line-2);
}

/* The article */
.prose {
  max-width: 720px;
  min-width: 0;
}
.prose h1 {
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.prose .lede {
  margin-top: 16px;
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-2);
}
.prose .meta {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--ink-3);
}
.prose h2 {
  margin-top: 48px;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  scroll-margin-top: 80px;
}
.prose h3 {
  margin-top: 28px;
  font-size: 19px;
  line-height: 1.3;
  scroll-margin-top: 80px;
}
.prose p,
.prose ul,
.prose ol,
.prose pre,
.prose table,
.prose .callout,
.prose .prompt {
  margin-top: 14px;
}
.prose ul,
.prose ol {
  padding-left: 22px;
}
.prose li + li {
  margin-top: 6px;
}
.prose a {
  color: var(--ink);
  text-decoration-color: var(--line-2);
}
.prose a:hover {
  text-decoration-color: var(--ink);
}
.prose code {
  font-size: 0.92em;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
}
.prose pre {
  overflow-x: auto;
  padding: 16px 18px;
  background: #0f1626;
  color: #e6e9f0;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.6;
}
.prose pre code {
  background: none;
  border: 0;
  padding: 0;
  font-size: inherit;
  color: inherit;
}

/* Tables (comparisons) */
.table-wrap {
  overflow-x: auto;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  margin-top: 0;
}
.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.prose thead th {
  background: var(--tint);
  font-weight: 650;
}
.prose tbody tr:last-child td,
.prose tbody tr:last-child th {
  border-bottom: 0;
}

/* A prompt to paste into an agent, with a copy button (content.js) */
.prompt {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--tint);
  padding: 16px 18px 16px;
}
.prompt-label {
  display: block;
  font-size: 13px;
  font-weight: 650;
  color: var(--ink-2);
  margin-bottom: 8px;
}
.prompt-text {
  white-space: pre-wrap;
  font-size: 15px;
  line-height: 1.55;
}
.prompt .btn {
  margin-top: 12px;
  height: 36px;
  font-size: 14px;
}

.callout {
  border-left: 3px solid var(--c, var(--blue));
  padding: 4px 0 4px 16px;
  color: var(--ink-2);
}

/* Sidebar: what's on this page, and the services */
.aside {
  position: sticky;
  top: 84px;
  display: grid;
  gap: 22px;
  font-size: 14px;
}
.aside h2 {
  font-size: 13px;
  font-weight: 650;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.aside ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 7px;
}
.aside a:not(.btn) {
  text-decoration: none;
  color: var(--ink-2);
}
.aside a:not(.btn):hover {
  color: var(--ink);
  text-decoration: underline;
}
.aside .btn {
  width: 100%;
}

/* Related pages and the guides hub */
.prose .cards li + li {
  margin-top: 0;
}
.prose .cards,
.cards {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
}
.card:hover {
  border-color: var(--ink-3);
}
.card b {
  font-size: 16px;
  line-height: 1.3;
}
.card span {
  font-size: 14px;
  color: var(--ink-2);
}
.card .svc {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ink-3);
}
.card .svc::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--c, var(--ink));
}
.svc-analytics {
  --c: var(--orange);
}
.svc-tags {
  --c: var(--yellow);
}
.svc-mail {
  --c: var(--blue);
}
.svc-replay {
  --c: var(--green);
}

@media (max-width: 900px) {
  .page-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .aside {
    position: static;
  }
}
