/**
 * Guppy Strains & Types — page-only polish, 2026-10-16.
 * Keeps the stored WordPress article, links, schema, image descriptions and
 * HGT6 renderer untouched. Loaded only for /guppy-strains-types/.
 */

/* Follow the owner's requested Nunito family on this page, while excluding
   icon glyphs; the shared reading contract uses important declarations in
   its own cascade layer. */
@layer hg-readable-type {
  body.higuppy-site-shell.hgt6-guppy-strains-types {
    --hg-font-family: "Nunito", system-ui, sans-serif !important;
    --hg-shared-body: "Nunito", system-ui, sans-serif !important;
    --hg-shared-heading: "Nunito", system-ui, sans-serif !important;
    --higuppy-font-primary: "Nunito", system-ui, sans-serif !important;
    --higuppy-font-heading: "Nunito", system-ui, sans-serif !important;
    font-family: "Nunito", system-ui, sans-serif !important;
  }

  body.higuppy-site-shell.hgt6-guppy-strains-types :not(:where(
    svg, svg *, #wpadminbar, #wpadminbar *,
    .dashicons, .dashicons *,
    .fa, .fa *, .fas, .fas *, .far, .far *, .fal, .fal *,
    .fab, .fab *, .fad, .fad *,
    .et-icon, .et-icon *, .et_b-icon, .et_b-icon *,
    .xstore-icon, .xstore-icon *,
    i.icon, i[class^="icon-"], i[class*=" icon-"]
  )) {
    font-family: "Nunito", system-ui, sans-serif !important;
  }
}

@layer hg-trust-v6 {
  body.hgt6-guppy-strains-types .hgt6-section {
    padding-block: 36px;
  }

  body.hgt6-guppy-strains-types .hgt6-section-lead {
    max-width: 900px;
    line-height: 1.65 !important;
  }

  /* Reference cards contain substantial text. Let desktop show a tidy row,
     and mobile browse horizontally instead of stacking eight long cards. */
  body.hgt6-guppy-strains-types #reference-catalog .hgt6-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
  }

  body.hgt6-guppy-strains-types #reference-catalog .hgt6-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 18px;
    background: #fff;
    border: 1px solid #d6e1d7;
    border-radius: 18px;
  }

  body.hgt6-guppy-strains-types #reference-catalog .hgt6-card p {
    line-height: 1.55 !important;
  }

  body.hgt6-guppy-strains-types #reference-catalog .hgt6-card a {
    overflow-wrap: anywhere;
  }

  /* Use the verified Tuxedo / Half Black fish photo for group card five. */
  body.hgt6-guppy-strains-types #groups .hgt6-card:nth-child(5)::before {
    background-image: url('https://higuppy.com/wp-content/uploads/2026/07/tuxedo-guppy-strain-guide-featured-768x403.webp') !important;
  }

  /* The 12 photographic examples come from a separate Gutenberg HGT6 block.
     Make their cards consistent and responsive without editing post_content. */
  body.hgt6-guppy-strains-types #strain-list {
    padding: 40px 0 46px !important;
    background: #f3f8f1 !important;
  }

  body.hgt6-guppy-strains-types #strain-list .hgt6-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    align-items: stretch;
    margin-top: 22px;
  }

  body.hgt6-guppy-strains-types #strain-list .hgt6-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    padding: 15px;
    border: 1px solid #d7e3d8;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 7px 20px rgba(25, 66, 48, .05);
  }

  body.hgt6-guppy-strains-types #strain-list .hgt6-card img {
    display: block;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    aspect-ratio: 3 / 2 !important;
    object-fit: cover !important;
    margin: 0 0 13px !important;
    border-radius: 11px !important;
    background: #e9f2eb;
  }

  body.hgt6-guppy-strains-types #strain-list .hgt6-card h3 {
    margin: 0 !important;
    font-size: 18px !important;
    line-height: 1.3 !important;
  }

  body.hgt6-guppy-strains-types #strain-list .hgt6-card p {
    margin: 7px 0 0 !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
  }

  body.hgt6-guppy-strains-types #strain-list .hgt6-card a {
    margin-top: auto !important;
    padding-top: 12px;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  body.hgt6-guppy-strains-types #strain-list .hgt6-wrap > h3 {
    margin: 29px 0 12px !important;
    font-size: clamp(22px, 2vw, 26px) !important;
    line-height: 1.25 !important;
  }

  /* Preserve all 30 rows. On smaller screens the comparison is horizontally
     scrollable rather than squeezed into unreadable narrow table columns. */
  body.hgt6-guppy-strains-types #strain-list figure.wp-block-table {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    overflow-x: auto;
    border: 1px solid #d7e3d8;
    border-radius: 14px;
    background: #fff;
    scrollbar-color: #85a99a #eef5ef;
  }

  body.hgt6-guppy-strains-types #strain-list table {
    width: 100% !important;
    min-width: 620px;
    margin: 0 !important;
    border-collapse: separate;
    border-spacing: 0;
  }

  body.hgt6-guppy-strains-types #strain-list :is(th, td) {
    padding: 6px 12px !important;
    border: 0 !important;
    border-bottom: 1px solid #e0e8e0 !important;
    color: #203d32;
    line-height: 1.35;
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
  }

  body.hgt6-guppy-strains-types #strain-list th {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background: #173f34 !important;
    font-weight: 800;
  }

  body.hgt6-guppy-strains-types #strain-list :is(th, td):first-child {
    min-width: 140px;
    font-weight: 750;
  }

  body.hgt6-guppy-strains-types #strain-list :is(th, td):nth-child(2) {
    min-width: 105px;
  }

  body.hgt6-guppy-strains-types #strain-list tbody tr:nth-child(even) {
    background: #f8fbf7;
  }

  body.hgt6-guppy-strains-types #strain-list .hgt6-wrap > p:last-child {
    max-width: 1000px;
    margin: 16px 0 0 !important;
  }
}

@layer hg-header {
  /* Keep in-page destinations clear of the shared sticky-header offset. */
  body.higuppy-site-shell.hgt6-guppy-strains-types :is(
    #traits, #groups, #photographed-examples, #strain-list,
    #photos, #choose, #hgt6-faq
  ) {
    scroll-margin-top: 130px !important;
  }
}

/* The six-photograph explanation and final FAQ are Gutenberg siblings OUTSIDE
   .hgt6; make them part of the same centered, readable page surface. */
body.hgt6-guppy-strains-types .entry-content {
  padding-bottom: 0 !important;
}

body.hgt6-guppy-strains-types .entry-content > :is(
  h2.wp-block-heading, h3.wp-block-heading, p.wp-block-paragraph,
  figure.wp-block-image, #rank-math-faq
) {
  box-sizing: border-box;
  width: calc(100% - 32px) !important;
  max-width: 1050px !important;
  margin-inline: auto !important;
}

body.hgt6-guppy-strains-types .entry-content > h2.wp-block-heading {
  margin-block: 36px 12px !important;
  color: #203d32 !important;
  font-size: clamp(28px, 3vw, 38px) !important;
  line-height: 1.17 !important;
  letter-spacing: -.02em;
}

body.hgt6-guppy-strains-types .entry-content > h3.wp-block-heading {
  margin-block: 25px 12px !important;
  color: #203d32 !important;
  font-size: clamp(22px, 2vw, 26px) !important;
  line-height: 1.3 !important;
}

body.hgt6-guppy-strains-types .entry-content > p.wp-block-paragraph {
  margin-block: 11px !important;
  color: #51655a;
  font-size: 16px !important;
  line-height: 1.65 !important;
}

body.hgt6-guppy-strains-types .entry-content > figure.wp-block-image {
  max-width: 890px !important;
  margin-block: 20px 18px !important;
  padding: 12px !important;
  border: 1px solid #d7e3d8;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(23, 63, 52, .07);
  overflow: hidden;
}

body.hgt6-guppy-strains-types .entry-content > figure.wp-block-image img {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 auto !important;
  border-radius: 12px;
  object-fit: contain;
}

body.hgt6-guppy-strains-types .entry-content > figure.wp-block-image figcaption {
  margin: 10px 0 0 !important;
  padding: 9px 6px 3px;
  color: #566a5f;
  font-size: 14px !important;
  line-height: 1.5;
  text-align: left;
}

/* The six trait descriptions each contain a bold strain label. Style those
   only when they precede #strain-list; don't touch the separate final FAQ. */
body.hgt6-guppy-strains-types .entry-content > #photographed-example-traits ~ p.wp-block-paragraph:has(> strong):has(~ #strain-list) {
  margin-block: 8px !important;
  padding: 12px 16px !important;
  border: 1px solid #dbe6dc;
  border-left: 3px solid #41816a;
  border-radius: 11px;
  background: #f7faf5;
}

body.hgt6-guppy-strains-types .entry-content > #photographed-example-traits ~ p.wp-block-paragraph:has(> strong):has(~ #strain-list) strong {
  display: block;
  margin-bottom: 3px;
  color: #173f34;
}

/* Rank Math's visible FAQ currently follows the final strain table. */
body.hgt6-guppy-strains-types .entry-content > #rank-math-faq {
  margin-block: 16px 23px !important;
  padding: 8px 18px;
  border: 1px solid #d7e3d8;
  border-radius: 17px;
  background: #f7faf5;
}

body.hgt6-guppy-strains-types .entry-content > #rank-math-faq .rank-math-faq-item {
  padding-block: 12px;
  border-bottom: 1px solid #dbe5da;
}

body.hgt6-guppy-strains-types .entry-content > #rank-math-faq .rank-math-faq-item:last-child {
  border-bottom: 0;
}

body.hgt6-guppy-strains-types .entry-content > #rank-math-faq .rank-math-question {
  margin: 0 0 6px !important;
  color: #173f34 !important;
  font-size: 18px !important;
  font-weight: 800;
  line-height: 1.4;
}

body.hgt6-guppy-strains-types .entry-content > #rank-math-faq .rank-math-answer {
  margin: 0 !important;
  color: #566a5f;
  line-height: 1.6;
}

@media (min-width: 901px) {
  @layer hg-trust-v6 {
    body.hgt6-guppy-strains-types #strain-list :is(th, td) {
      padding-block: 4px !important;
    }

    /* Keep the traits illustration beside its heading. The cards follow it
       on their own row, even if the shared section rule spans the figure
       through row 3. */
    body.higuppy-site-shell.hgt6-guppy-strains-types #traits[id="traits"] > .hgt6-wrap > figure.wp-block-image {
      grid-row: 1 / span 3 !important;
    }

    body.higuppy-site-shell.hgt6-guppy-strains-types #traits[id="traits"] > .hgt6-wrap > .hgt6-cards {
      grid-row: 4 !important;
    }
  }

  /* A square six-panel photo reads better alongside its descriptive caption
     than above a full-width, very tall block of labels. */
  body.hgt6-guppy-strains-types .entry-content > figure.wp-block-image.size-full {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(270px, .8fr);
    align-items: center;
    gap: 18px;
    max-width: 1130px !important;
  }

  body.hgt6-guppy-strains-types .entry-content > figure.wp-block-image.size-full figcaption {
    align-self: stretch;
    display: flex;
    align-items: center;
    margin: 0 !important;
    padding: 18px;
    border-radius: 12px;
    background: #f3f8f1;
    color: #3f5649;
    line-height: 1.65;
  }

  /* This montage caption contains inline link markup. Keep its text in one
     normal paragraph flow instead of turning each text node into a flex item.
     Override the shared desktop stretch so the card fits its text and centers. */
  body.hgt6-guppy-strains-types .entry-content > figure.wp-block-image.size-full:has(> img.wp-image-991639) > figcaption {
    display: block;
    align-self: center;
    min-width: 0;
  }
}

@media (max-width: 1024px) {
  @layer hg-trust-v6 {
    body.hgt6-guppy-strains-types #reference-catalog .hgt6-cards {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.hgt6-guppy-strains-types #strain-list .hgt6-cards {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }
}

@media (min-width: 1025px) {
  @layer hg-trust-v6 {
    body.hgt6-guppy-strains-types .hgt6-jump .hgt6-wrap {
      grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    }
  }
}

@media (min-width: 701px) and (max-width: 1024px) {
  @layer hg-trust-v6 {
    body.hgt6-guppy-strains-types .hgt6-jump .hgt6-wrap {
      grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
  }
}

@media (max-width: 700px) {
  @layer hg-trust-v6 {
    body.hgt6-guppy-strains-types .hgt6-section {
      padding-block: 28px;
    }

    body.hgt6-guppy-strains-types #reference-catalog .hgt6-cards {
      display: flex !important;
      gap: 12px;
      width: calc(100% + 16px);
      margin-top: 18px;
      padding: 0 16px 12px 0;
      overflow-x: auto;
      overflow-y: hidden;
      scroll-snap-type: x mandatory;
      scrollbar-width: thin;
    }

    body.hgt6-guppy-strains-types #reference-catalog .hgt6-card {
      flex: 0 0 min(82vw, 310px);
      padding: 18px;
      scroll-snap-align: start;
    }

    body.hgt6-guppy-strains-types #strain-list {
      padding-block: 31px 35px !important;
    }

    body.hgt6-guppy-strains-types #strain-list .hgt6-cards {
      display: grid !important;
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      gap: 10px !important;
      margin-top: 16px;
    }

    body.hgt6-guppy-strains-types #strain-list .hgt6-card {
      padding: 10px;
      border-radius: 13px;
    }

    body.hgt6-guppy-strains-types #strain-list .hgt6-card img {
      margin-bottom: 9px !important;
    }

    body.hgt6-guppy-strains-types #strain-list .hgt6-card h3 {
      font-size: 17px !important;
    }

    body.hgt6-guppy-strains-types #strain-list .hgt6-card p {
      margin-top: 6px !important;
      font-size: 16px !important;
      line-height: 1.4 !important;
    }

    body.hgt6-guppy-strains-types #strain-list .hgt6-card a {
      padding-top: 9px;
      line-height: 1.35;
    }

    body.hgt6-guppy-strains-types #strain-list .hgt6-wrap > h3 {
      margin-top: 25px !important;
    }

    body.hgt6-guppy-strains-types #strain-list figure.wp-block-table::before {
      content: "↔ Swipe sideways to view all 30 strains";
      display: block;
      padding: 10px 12px;
      color: #2e5b48;
      background: #ecf5eb;
      font-size: 14px;
      font-weight: 800;
    }
  }

  body.hgt6-guppy-strains-types .entry-content > h2.wp-block-heading {
    margin-top: 28px !important;
    font-size: 29px !important;
  }

  body.hgt6-guppy-strains-types .entry-content > figure.wp-block-image {
    margin-block: 14px 16px !important;
    padding: 8px !important;
    border-radius: 15px;
  }

  body.hgt6-guppy-strains-types .entry-content > figure.wp-block-image img {
    border-radius: 10px;
  }

  body.hgt6-guppy-strains-types .entry-content > #rank-math-faq {
    padding-inline: 14px;
  }
}

@media (max-width: 350px) {
  @layer hg-trust-v6 {
    body.hgt6-guppy-strains-types #strain-list .hgt6-cards {
      grid-template-columns: 1fr !important;
    }
  }
}

@media (max-width: 700px) {
  @layer hg-trust-v6 {
    body.hgt6-guppy-strains-types .hg-whatsapp-widget {
      left: auto !important;
      right: 16px !important;
      bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
    }

    body.hgt6-guppy-strains-types .hg-whatsapp-widget > a.hg-whatsapp-launcher {
      width: 56px !important;
      min-width: 56px !important;
      height: 56px !important;
      min-height: 56px !important;
      gap: 0 !important;
      padding: 0 !important;
      border-radius: 50% !important;
    }

    body.hgt6-guppy-strains-types .hg-whatsapp-widget > a.hg-whatsapp-launcher .hg-whatsapp-launcher-label {
      display: none !important;
    }
  }
}
