/* Shared reading layouts for PupMarks guides. */
.guide-page {
  hyphens: none;
}
.guide-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
  color: var(--blue);
  font-size: 14px;
}
.guide-breadcrumb a,
.guide-copy a,
.guide-text-link {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  align-items: center;
  gap: 64px;
  padding: 42px;
  border-radius: 32px;
  background: #e8f0f6;
}
/* Contrast: the shared --muted grey is 4.1:1 on the hero's blue-grey card; this keeps the intro at 5.1:1. */
.guide-hero .legal-lede { color: #586576; }
.guide-hero h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -2px;
}
.guide-byline {
  margin-top: 24px;
  color: #526477;
  font-size: 14px;
}
.guide-phone {
  margin: 0;
}
.guide-phone img {
  width: 100%;
  height: auto;
  border: 5px solid #fff;
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}
.guide-phone figcaption {
  margin-top: 12px;
  color: #526477;
  font-size: 12px;
  text-align: center;
}
.guide-copy {
  max-width: 740px;
  margin: 58px auto;
  font-size: 18px;
  line-height: 1.8;
}
.guide-copy h2 {
  margin: 42px 0 14px;
  font-size: clamp(25px, 3vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.6px;
}
.guide-copy h3 {
  margin: 28px 0 8px;
  font-size: clamp(19px, 2.2vw, 22px);
  line-height: 1.3;
  letter-spacing: -0.3px;
}
.guide-copy h3 + p {
  margin-bottom: 18px;
}
.guide-copy p {
  margin: 0 0 22px;
}
.guide-copy ul,
.guide-copy ol {
  padding-left: 24px;
  margin: 20px 0;
}
.guide-copy li + li {
  margin-top: 10px;
}
.guide-copy a {
  color: var(--blue);
}
.guide-cta {
  padding: 38px;
  border-radius: 28px;
  background: #e8f1fa;
}
.guide-cta h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.2;
}
.guide-cta p:not(.legal-kicker) {
  max-width: 600px;
  margin: 16px 0 24px;
}
.guide-button {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--blue-dark);
  color: #fff;
  font-weight: 700;
}
.guide-text-link {
  display: inline-block;
  margin: 12px 20px;
  color: var(--blue-dark);
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 42px;
}
.guide-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
}
.guide-card-art {
  display: flex;
  justify-content: center;
  height: 250px;
  overflow: hidden;
  padding: 25px 24px 0;
  background: #e8f0f6;
}
.guide-card:nth-child(2) .guide-card-art {
  background: #eee7f6;
}
.guide-card:nth-child(3) .guide-card-art {
  background: #e3eee6;
}
.guide-card-art img {
  width: 170px;
  height: auto;
  align-self: flex-start;
  border: 4px solid #fff;
  border-radius: 20px;
}
.guide-card-copy {
  padding: 26px;
}
.guide-card h2 {
  margin: 12px 0;
  font-size: 27px;
  line-height: 1.15;
  letter-spacing: -0.5px;
}
.guide-card-copy > p:not(.legal-kicker) {
  color: #526477;
}
.guide-card-link {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.guide-page a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 5px;
}
@media (max-width: 800px) {
  .guide-hero {
    gap: 26px;
    padding: 28px;
    grid-template-columns: minmax(0, 1fr) 180px;
  }
  .guide-grid {
    grid-template-columns: 1fr;
  }
  .guide-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
  }
  .guide-card-art {
    height: 100%;
    min-height: 250px;
  }
}
@media (max-width: 560px) {
  .guide-hero {
    grid-template-columns: 1fr;
    padding: 26px 22px;
  }
  .guide-hero h1 {
    letter-spacing: -1.5px;
  }
  .guide-hero .legal-lede {
    font-size: 18px;
  }
  .guide-phone {
    width: 180px;
    margin: 0 auto;
  }
  .guide-copy {
    margin: 36px auto;
    font-size: 17px;
  }
  .guide-cta {
    padding: 28px 24px;
  }
  .guide-card {
    display: block;
  }
  .guide-card-art {
    height: 240px;
    min-height: 0;
  }
}

@media (prefers-color-scheme: dark) {
  .guide-hero,
  .guide-card-art { background: #203448; }
  .guide-card:nth-child(2) .guide-card-art { background: #302a43; }
  .guide-card:nth-child(3) .guide-card-art { background: #203b32; }
  .guide-cta { background: #203448; }
  .guide-card { background: var(--paper); }
  .guide-phone img,
  .guide-card-art img { border-color: var(--line); }
  .guide-byline,
  .guide-phone figcaption,
  .guide-card-copy > p:not(.legal-kicker) { color: var(--muted); }
  .guide-text-link { color: var(--blue); }
  .guide-hero .legal-lede { color: var(--muted); }
  .guide-button { background: var(--blue); color: #142131; }
}

.guide-store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
}

.guide-video {
  margin: 8px 0 28px;
  max-width: 360px;
}
.guide-video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  border-radius: 24px;
  background: #f1f4f8;
  object-fit: contain;
}
.guide-video figcaption {
  margin-top: 10px;
  font-size: 14px;
  opacity: 0.8;
}

/* Store crops already contain their own phone: no second frame around them. */
.guide-phone[data-framed] img {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.guide-card-art img[data-framed] {
  width: auto;
  height: 225px;
  max-width: 100%;
  border: 0;
  border-radius: 0;
}

/* Cutout heroes: the whole phone fills the visual column, sized to the viewport so nothing is cut. */
.guide-hero:has(.guide-phone[data-framed]) {
  grid-template-columns: minmax(0, 1fr) auto;
  padding-block: 28px;
}
.guide-phone[data-framed] {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.guide-phone[data-framed] img {
  width: auto;
  height: clamp(440px, calc(100vh - 200px), 780px);
  max-width: 100%;
  object-fit: contain;
}
@media (max-width: 800px) {
  .guide-hero:has(.guide-phone[data-framed]) { grid-template-columns: minmax(0, 1fr) minmax(0, 42%); }
  .guide-phone[data-framed] { width: auto; }
  .guide-phone[data-framed] img { height: auto; width: 100%; max-height: calc(100vh - 160px); }
}
@media (max-width: 560px) {
  .guide-hero:has(.guide-phone[data-framed]) { grid-template-columns: 1fr; }
  .guide-phone[data-framed] { width: min(100%, 330px); margin: 0 auto; }
  .guide-phone[data-framed] img { width: 100%; height: auto; max-height: none; }
}

.guide-inline {
  margin: 28px auto;
  max-width: 340px;
  text-align: center;
}
.guide-inline img {
  display: block;
  width: 100%;
  height: auto;
}
.guide-inline figcaption {
  margin-top: 8px;
  font-size: 14px;
  opacity: 0.8;
}

/* Replay guide hero: the video plays inside the phone frame (screen window is transparent). */
.guide-phone[hidden] { display: none; }
.guide-replay { display: flex; flex-direction: column; align-items: center; }
.guide-replay-stage {
  position: relative;
  height: clamp(440px, calc(100vh - 200px), 780px);
  aspect-ratio: 944 / 1518;
  max-width: 100%;
}
.guide-replay-stage video {
  position: absolute;
  left: 11.86%;
  top: 6.85%;
  width: 76.27%;
  height: 84.32%;
  border-radius: 11.5% / 6.5%;
  object-fit: cover;
  background: #f1f4f8;
}
.guide-phone .guide-replay-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  pointer-events: none;
}
.guide-replay-sound {
  position: absolute;
  left: 63%;
  top: 83%;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(22, 32, 46, 0.62);
  color: #fff;
  cursor: pointer;
}
.guide-replay-sound .sound-on { display: none; }
.guide-replay-sound[aria-pressed="true"] .sound-on { display: block; }
.guide-replay-sound[aria-pressed="true"] .sound-off { display: none; }
@media (max-width: 800px) {
  .guide-replay-stage { height: auto; width: 100%; max-height: calc(100vh - 160px); }
}
@media (max-width: 560px) {
  .guide-replay { width: min(100%, 330px); margin: 0 auto; }
  .guide-replay-stage { width: 100%; max-height: none; }
}
@media (prefers-reduced-motion: reduce) {
  .guide-replay-sound { display: none; }
}

/* Memorial guide card: a calm brand-mark card, no phone. */
.guide-card .guide-card-art.guide-card-art-mark {
  align-items: center;
  padding: 0;
  background: #f1f4f8 url("/assets/pawpin-mark.png") center / 112px 112px no-repeat;
}
@media (prefers-color-scheme: dark) {
  .guide-card .guide-card-art.guide-card-art-mark {
    background: #203448 url("/assets/pawpin-mark-ondark.png") center / 112px 112px no-repeat;
  }
}

/* PupMarks Universe: the episode still is the hero, so it gets a wider column. */
.guide-hero.universe-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 48px; }
@media (max-width: 800px) {
  .guide-hero.universe-hero { grid-template-columns: 1fr; }
  .guide-hero.universe-hero .guide-phone { width: min(100%, 360px); margin: 0 auto; }
}
