/* Guides (articles and the /guides/ hub). Builds on site.css tokens and doc.css. No JS needed. */
.guide__main { width: min(100% - 2 * var(--gutter), 720px); padding: 130px 0 90px; }
.guide__crumbs { flex-wrap: wrap; row-gap: 4px; }
.guide__crumbs span[aria-current] { color: var(--ink-2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.guide__head { margin: 22px 0 26px; display: grid; gap: 14px; }
.guide__title { font-size: clamp(34px, 5.4vw, 58px); line-height: 1.05; letter-spacing: -.045em; font-weight: 700; text-wrap: balance; overflow-wrap: break-word; }
.guide__updated { color: var(--ink-3); font-size: 14px; font-weight: 600; }
.guide__lede { color: var(--ink-2); font-size: 19px; line-height: 1.6; max-width: 62ch; }

/* the self-contained answer: the block answer engines lift */
.guide__answer {
  position: relative; margin: 0 0 40px; padding: 22px 24px 22px 26px; border-radius: 22px;
  background: rgba(255, 255, 255, .78); border: 1px solid rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}
.guide__answer::before {
  content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--sky), var(--mint-bright));
}
.guide__answer p { font-size: 18.5px; line-height: 1.6; color: var(--ink); font-weight: 500; }

/* body copy: a ~70ch measure */
.guide__body { max-width: 68ch; }
.guide__body h2 { scroll-margin-top: 100px; }
.guide__body h3 { margin: 30px 0 10px; font-size: 20px; letter-spacing: -.02em; line-height: 1.3; color: var(--ink); font-weight: 700; scroll-margin-top: 100px; }
.guide__body h4 { margin: 24px 0 8px; font-size: 17px; color: var(--ink); font-weight: 700; }
.guide__body ol { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 10px; }
.guide__body li::marker { color: var(--ink-3); font-weight: 700; }
.guide__body em { font-style: italic; color: inherit; }
.guide__body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em;
  padding: .12em .4em; border-radius: 6px; background: rgba(15, 18, 34, .06); color: var(--ink); overflow-wrap: anywhere;
}
.guide__body a { overflow-wrap: anywhere; }

/* tables scroll sideways inside their own box on narrow screens */
.guide__table {
  margin: 8px 0 22px; overflow-x: auto; border-radius: 18px;
  border: 1px solid var(--line-soft); background: var(--paper); box-shadow: 0 12px 30px -24px rgba(30, 37, 72, .4);
}
.guide__table:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.guide__table table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.guide__table th, .guide__table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
.guide__table th { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); background: rgba(244, 245, 251, .7); }
.guide__table td:first-child { color: var(--ink); font-weight: 600; }
.guide__table tr:last-child td { border-bottom: 0; }

/* > blockquote: a callout */
.guide__note {
  margin: 8px 0 22px; padding: 18px 20px; border-radius: 18px;
  background: rgba(37, 99, 235, .06); border: 1px solid rgba(37, 99, 235, .14); color: var(--ink-2);
}
.guide__note p:last-child, .guide__note ul:last-child { margin-bottom: 0; }

/* the call to action, inline in the article and on the hub */
.guide__cta {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px 22px;
  margin: 36px 0; padding: 22px; border-radius: var(--radius);
  background: linear-gradient(150deg, #FFFFFF, #EEF1FF 60%, #E4F7EF);
  border: 1px solid rgba(255, 255, 255, .95); box-shadow: var(--shadow);
}
.guide__cta img { width: 56px; height: 56px; border-radius: 15px; box-shadow: 0 0 0 1px rgba(30, 37, 72, .08), 0 8px 18px -8px rgba(37, 99, 235, .5); }
.guide__cta-copy p { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
.guide__cta .guide__cta-title { color: var(--ink); font-size: 20px; font-weight: 800; letter-spacing: -.025em; margin-bottom: 4px; }
.guide__cta .btn { text-decoration: none; color: var(--fg); }
.guide__cta .btn--play span { font-size: 17px; }

/* header photo */
.guide__figure { margin: 0 0 34px; }
.guide__figure img {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--radius); background: var(--line-soft); box-shadow: 0 18px 40px -30px rgba(30, 37, 72, .55);
}
.guide__figure figcaption { margin-top: 8px; color: var(--ink-3); font-size: 12.5px; }
.guide__figure figcaption a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* hub list */
.guide-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 14px; }
.guide-card a {
  display: grid; gap: 8px; padding: 24px 26px; border-radius: 24px;
  background: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: 0 14px 34px -26px rgba(30, 37, 72, .45);
  transition: background .3s, box-shadow .4s var(--ease), transform .4s var(--ease);
}
.guide-card a:hover { background: #fff; box-shadow: var(--shadow); transform: translateY(-2px); }
.guide-card__img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; margin-bottom: 6px; }
.guide-card h2 { font-size: 22px; line-height: 1.25; letter-spacing: -.03em; font-weight: 700; }
.guide-card p { color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
.guide-card__more { font-size: 14px; font-weight: 700; color: var(--blue); }

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

@media (max-width: 640px) {
  .guide__main { padding-top: 104px; }
  .guide__answer { padding: 18px 18px 18px 22px; }
  .guide__answer p { font-size: 17px; }
  .guide__cta { grid-template-columns: auto minmax(0, 1fr); padding: 18px; }
  .guide__cta .btn { grid-column: 1 / -1; justify-self: start; }
  .guide-card a { padding: 20px; }
}
