/* The guides (/guides): long reads built on the Help and legal pages' .doc look. Colours come from site.css's variables only. */

.guide { max-width: 760px; }
.crumb { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--text-3); text-decoration: none !important; }
.crumb:hover { color: var(--text); }
.crumb::before { content: "‹"; font-size: 18px; line-height: 1; }
.guide h1 { margin-top: 18px; }
.guide .updated span + span::before { content: " · "; }

/* The short answer, right under the title. */
.answer-box {
  margin-top: 30px;
  padding: 22px 24px;
  border-radius: 16px;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--line);
}
.answer-box h2 { margin: 0 0 8px !important; font-family: var(--font); font-size: 13px !important; font-weight: 600; letter-spacing: 0 !important; color: var(--accent); }
.answer-box p { margin: 0; color: var(--text) !important; font-size: 17px !important; line-height: 1.6 !important; }

/* Pictures of the real app. */
.shot { margin: 32px 0 0; }
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  background: var(--surface-2);
  box-shadow: 0 0 0 1px var(--line-strong), var(--shadow-float);
}
.shot figcaption { margin-top: 12px; font-size: 14.5px; line-height: 1.5; color: var(--text-3); }

/* Numbered steps. */
.steps { list-style: none; padding: 0 !important; counter-reset: step; display: grid; gap: 22px !important; }
.steps > li { position: relative; padding-left: 46px !important; counter-increment: step; }
.steps > li::before {
  content: counter(step);
  position: absolute; left: 0; top: 1px;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--text); font-size: 14px; font-weight: 600;
}
.steps .shot { margin-top: 18px; }
.guide .ui { color: var(--text); font-weight: 500; }
.guide .file { color: var(--text); font-weight: 500; overflow-wrap: anywhere; }
.guide ul ul { margin-top: 10px; }

/* A table of jobs. */
.jobs { width: 100%; margin-top: 18px; border-collapse: collapse; font-size: 15.5px; }
.jobs th, .jobs td { padding: 14px 14px 14px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.jobs th { width: 34%; color: var(--text); font-weight: 600; }
.jobs td { color: var(--text-2); line-height: 1.6; }
.jobs tr:first-child th, .jobs tr:first-child td { border-top: 1px solid var(--line); }

/* Try it, at the end of a guide. */
.guide-cta {
  margin-top: 64px;
  padding: 28px;
  border-radius: 20px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 0 0 1px var(--line-strong);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px 22px;
  align-items: center;
}
.guide-cta img { width: 64px; height: 64px; }
.guide-cta h2 { margin: 0 !important; font-size: 1.35rem !important; }
.guide-cta p { margin-top: 6px !important; font-size: 15.5px !important; }
.guide-cta .actions { grid-column: 1 / -1; margin-top: 0 !important; }
@media (max-width: 559px) {
  .guide-cta { grid-template-columns: minmax(0, 1fr); padding: 22px; }
  .guide-cta .actions { flex-direction: column; align-items: stretch; }
}

/* More guides. */
.more-guides { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.more-guides h2 { margin-top: 0 !important; }

/* The guides list (/guides). */
.guide-list { list-style: none; padding: 0 !important; margin-top: 18px; display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px !important; }
.guide-list.full { margin-top: clamp(40px, 5vw, 64px); grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px !important; }
.guide-card {
  display: flex; flex-direction: column; height: 100%;
  border-radius: 16px; overflow: hidden;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  text-decoration: none !important;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.guide-card:hover { box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-float); transform: translateY(-2px); }
.guide-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center top; background: var(--surface-2); }
.guide-card span { display: block; padding: 16px 18px 0; color: var(--text); font-weight: 600; font-size: 16.5px; line-height: 1.35; letter-spacing: -0.01em; }
.guide-card small { display: block; padding: 6px 18px 18px; color: var(--text-3); font-size: 14px; line-height: 1.5; }
.guide-index { padding-bottom: var(--section); }
.guide-index .lede { max-width: 36em; }
@media (max-width: 959px) { .guide-list.full { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .guide-list, .guide-list.full { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .guide-card { transition: none; } .guide-card:hover { transform: none; } }

/* .doc underlines and recolours every link; buttons keep their own look. */
.guide a.btn { text-decoration: none; }
.guide a.btn-primary, .guide a.btn-primary:hover { color: var(--accent-ink); }
.guide a.btn-quiet, .guide a.btn-quiet:hover { color: var(--text); }
