/* Guides (2026-10-30): /guides and the guide articles. Built on
   css/marketing.css like How it Works and Features; this adds only what an
   article needs: a reading width, prose, screenshots, the founder's story
   placeholder, related guides and the list page. */

/* Guides match the marketing pages (founder, 2026-10-30): no eyebrow, a
   real headline on the same light blue as How it Works, then the article
   on white at a reading width. */
.guide-page { background: #fff; }

.guide-hero {
  padding: 64px 0 52px;
  background: linear-gradient(180deg, #f7faff 0%, #f3f7ff 100%);
}

.container.guide-shell {
  width: min(760px, calc(100% - 40px));
  margin-inline: auto;
}

/* Words on the left, the product on the right - like How it Works
   (founder, 2026-10-30: "each one of these heroes needs some kind of
   image next to it"). */
.guide-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 52px;
  align-items: center;
}

.guide-hero-copy {
  min-width: 0;
}

.guide-hero h1 {
  margin: 0;
  color: #071735;
  font-size: clamp(36px, 3.9vw, 52px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.05em;
  text-wrap: balance;
}

.guide-hero p {
  max-width: 520px;
  margin: 18px 0 0;
  color: #4b5b73;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.6;
  text-wrap: pretty;
}

.guide-hero-pic {
  margin: 0;
  min-width: 0;
}

.guide-hero-pic img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(7, 23, 53, .05), 0 28px 54px -30px rgba(7, 23, 53, .55);
}

.container.guide-shell {
  padding: 44px 0 24px;
}

.guide-body h2 {
  margin: 46px 0 6px;
  color: #071735;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -.035em;
}

.guide-body h3 {
  margin: 26px 0 4px;
  color: #172943;
  font-size: 18px;
}

.guide-body p,
.guide-body li {
  color: #3f4f66;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.75;
}

.guide-body p {
  margin: 14px 0 0;
}

.guide-body strong {
  color: #172943;
}

.guide-body a {
  color: var(--blue);
  font-weight: 700;
}

.guide-body ul,
.guide-body ol {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.guide-body li {
  position: relative;
  margin: 0;
  padding-left: 28px;
}

.guide-body li::before {
  position: absolute;
  left: 0;
  top: .5em;
  margin: 0;
}

.guide-body ol {
  counter-reset: guide-step;
}

.guide-body ol > li {
  counter-increment: guide-step;
}

.guide-body ol > li::before {
  content: counter(guide-step);
  top: .35em;
  width: 19px;
  height: 19px;
  font-size: 11px;
  font-weight: 900;
}

/* Screenshots: shadow only, never a border box. */
.guide-shot {
  margin: 32px 0 8px;
}

.guide-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(7, 25, 63, .12);
}

.guide-shot figcaption {
  margin-top: 12px;
  color: #7a8799;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.guide-related {
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid #e5ebf3;
}

.guide-related h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.guide-body .guide-related li,
.guides-list li {
  padding-left: 0;
}

.guide-body .guide-related li::before,
.guides-list li::before {
  content: none;
}

.guide-shell + .cta,
.guide-page .cta {
  padding-bottom: 72px;
}

/* The list page. */
.guides-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #e5ebf3;
}

.guides-list li {
  margin: 0;
  padding: 26px 0;
  border-bottom: 1px solid #e5ebf3;
}

.guides-list h2 {
  margin: 0;
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -.03em;
}

.guides-list h2 a {
  color: #071735;
  text-decoration: none;
}

.guides-list h2 a:hover {
  color: var(--blue);
}

.guides-list p {
  margin: 8px 0 0;
  color: #4f5f76;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.65;
}

.guides-list small {
  display: block;
  margin-top: 8px;
  color: #7a8799;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 700px) {
  .guide-hero {
    padding: 40px 0 34px;
  }

  .container.guide-shell {
    width: calc(100% - 32px);
  }

  .guide-hero-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .guide-hero h1 {
    font-size: 34px;
    line-height: 1.02;
  }

  .guide-hero-pic img {
    border-radius: 12px;
  }

  .guide-hero p {
    font-size: 16px;
  }

  .container.guide-shell {
    padding-top: 30px;
  }

  .guide-body h2 {
    margin-top: 38px;
    font-size: 23px;
  }

  .guide-body p,
  .guide-body li {
    font-size: 16px;
  }

  .guide-shot {
    margin: 26px 0 6px;
  }
}

/* A headline's key words in BookMyLesson blue, like the other marketing pages. */
.guide-hero h1 .blue-text { color: var(--blue, #0b55ff); }

/* A wide screenshot (the Day view) runs past the text column so it reads. */
.guide-shot.is-wide {
  position: relative;
  left: 50%;
  width: min(1120px, calc(100vw - 40px));
  transform: translateX(-50%);
}

.guide-shot.is-wide figcaption {
  width: min(760px, 100%);
  margin-inline: auto;
}

@media (max-width: 700px) {
  .guide-shot.is-wide {
    width: calc(100vw - 32px);
  }
}
