/* Mobile type refinements for the restored public site. */
@media (max-width: 800px) {
  main .page-intro h1,
  main .prose :is(h2,h3,h4),
  main .pak-reading-note h2,
  main .kh-related :is(h2,h3),
  main .availability-copy h2,
  main .buyer-section h2,
  main .kh-card h3,
  main .pak-blog-card h3,
  main .closing h2 {
    text-wrap: balance;
  }

  .pak-poster #hero-title {
    text-wrap: balance;
  }

  main bdi.pak-type-phrase {
    display: inline-block;
    max-inline-size: 100%;
    text-wrap: balance;
  }

  .dog-card .card-copy h2 {
    text-wrap: pretty;
  }

  /* The empty-state paragraph belongs to the whole list. */
  main .cards.puppy-cards > p:only-child {
    grid-column: 1 / -1;
    font-size: 16px !important;
    line-height: 1.55 !important;
  }

  .pak-application .pa-hint,
  main .pak-reading-note p,
  main .kh-topic-copy p {
    text-wrap: pretty;
  }

  main .pa-fields .pa-field > label:not(.pa-check),
  #content #pak-training .tr-contact label {
    font-size: 15px !important;
    line-height: 1.45 !important;
    margin-bottom: 5px;
  }

  #content #pak-training .tr-p-rate > span,
  #content #pak-training .tr-secondary-rate span {
    font-size: 14px;
    line-height: 1.45;
    letter-spacing: normal;
  }

  #content #pak-training .tr-p-rate .tr-action {
    font-size: 14px;
    line-height: 1.45;
  }

  #content #pak-training .tr-amount {
    font-variant-numeric: lining-nums tabular-nums;
  }
}

@media (max-width: 500px) {
  /* Keep both photo columns and give the registered names more of each card. */
  main .dog-card .card-copy {
    padding-inline: 9px !important;
  }

  body main .dog-card .card-copy h2 {
    font-size: clamp(17px, 4.6vw, 19px) !important;
    line-height: 1.24 !important;
    letter-spacing: normal;
  }

  main .kh-topic-copy p {
    font-size: 15px !important;
    line-height: 1.45 !important;
  }

  main .kh-topics > a .kh-topic-copy {
    padding-inline: 10px;
  }

  main .prose p.kh-answer,
  main .pak-application {
    padding-inline: 14px;
  }

  .pak-poster p.journal-hero-description {
    max-inline-size: 34ch;
    text-wrap: pretty;
  }
}

@media (max-width: 359px) {
  #content #pak-training .tr-hero-actions {
    column-gap: 6px;
  }

  #content #pak-training .tr-hero-actions .tr-btn {
    padding-inline: 8px;
    column-gap: 5px;
    white-space: nowrap;
  }
}

@media (min-width: 360px) and (max-width: 800px) {
  .dog-card h2 bdi.pak-type-surname {
    display: inline-block;
    max-inline-size: 100%;
  }
}

@media (max-width: 800px) {
  main .location-cards .card-copy h2,
  main .kh-paths > h2,
  main .kh-editorial > h2,
  #main .pg-feature h3 {
    text-wrap: balance;
  }
}

@media (max-width: 400px) {
  main .puppy-cards > article.card:not(.puppy-card) .card-copy {
    padding-inline: 9px !important;
  }
}

@media (max-width: 359px) {
  #main .pg-home-head { column-gap: 7px; }
  #main .pg-home-head .pak-cta { padding-inline: 7px !important; gap: 5px !important; }
  #main .pak-blog-card h3 { padding-inline: 7px; }
}

@media (max-width: 800px) {
  main .puppy-cards > article.card:not(.puppy-card) h3,
  main .pa-fields .pa-field > label:not(.pa-check) {
    text-wrap: balance;
  }

  main .pa-fields .pa-check {
    font-size: 15px !important;
    line-height: 1.5 !important;
  }
}