/* Shared page surfaces */
main {
  --interior-blue: var(--brand, #2c6196);
  --interior-ink: #33404d;
  --interior-surface: #f7f9fa;
  --interior-border: #9eb5ca;
  --interior-line: #dce6ee;
}

main .breadcrumb__container {
  width: min(var(--site-width), 100% - 40px);
  padding-block: clamp(10.5px, 1.9vw, 18px) clamp(7px, 1.35vw, 12.5px);
}

main .page-title {
  position: relative;
  display: inline-block;
  max-width: 100%;
  margin: 0 0 5.5px;
  padding: clamp(10.5px, 1.8vw, 15.5px) clamp(20px, 3vw, 32px);
  border-radius: 0 58px 62px 0;
  background: linear-gradient(270deg, #f7f9fa, #fafcff);
  color: var(--interior-blue);
  font-size: 30px;
  font-weight: 300;
  line-height: 1.04;
}

main .page-title::before {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 100%;
  width: max(20px, calc((100vw - var(--site-width)) / 2));
  background: #fafcff;
  content: "";
}

[dir="rtl"] main .page-title { border-radius: 58px 0 0 62px; }

main .breadcrumb {
  margin: 0 0 10px clamp(20px, 3.2vw, 40px);
  color: #9b9b9b;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
}

main .breadcrumb__link { color: var(--brand); text-decoration: none; transition: .3s; }
main .breadcrumb__link:hover { text-decoration: underline; }
main .breadcrumb__active { color: #4f4f4f; }
@media (min-width: 701px) and (max-width: 950px) {
  main .page-title { font-size: 28px; }
}

.page-blog main .page-title { font-size: 24.5px; }
.page-blog main .breadcrumb { font-size: 12.8px; line-height: 1.25; }
main .anchor-section { scroll-margin-block-start: 24px; }

main .z-anchor-strip,
main .product-card-actions,
main .product-detail-actions,
main .z-route-actions,
main .tool-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

main .z-anchor-strip { margin-block: 18px 24px; }

main .z-cta-link,
main .z-anchor-strip a,
main .tool-card__link,
main .z-doc-button,
main .team-gallery-load,
main .default-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 15px;
  border: 1px solid var(--interior-blue);
  border-radius: 8px;
  background: var(--interior-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

main .z-anchor-strip a,
main .z-cta-link--secondary {
  border-color: var(--interior-border);
  background: var(--interior-surface);
  color: var(--interior-blue);
}

main .z-anchor-strip a:is(:hover, [aria-current]),
main .z-cta-link--secondary:hover { background: var(--interior-blue); color: #fff; }
main .z-cta-link:not(.z-cta-link--secondary):hover,
main .tool-card__link:hover,
main .default-btn:hover { background: #204e7d; }
main [hidden] { display: none !important; }

main .z-brief-panel,
main .z-tools-cta-panel,
main .clean-sport-action-center,
main .article-meta-block,
main .sources-review-notes,
main .tool-result-next-steps,
main .tool-page-overview,
main .product-detail-note {
  margin-block: 24px;
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid var(--interior-border);
  border-radius: 8px;
  background: var(--interior-surface);
  color: var(--interior-ink);
}

main .z-action-grid,
main .z-route-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 16px;
}

main .z-action-grid a,
main .z-route-grid a {
  display: block;
  padding: 16px;
  border: 1px solid var(--interior-line);
  border-radius: 8px;
  background: #fff;
  color: var(--interior-ink);
  text-decoration: none;
}

main :is(.z-action-grid, .z-route-grid) :is(strong, span) { display: block; }
main :is(.z-action-grid, .z-route-grid) strong { color: var(--interior-blue); }

/* Product families and detail pages */
.product-gallery-section,
.blog-index-section,
.tools-main,
.anti-wrap,
.contact-form,
.trust-main { padding-block-end: 48px; }

.product-gallery-section { padding-block: 10px 0; }
.product-container { padding-inline: 20px; }

main .product-compliance-route { text-align: center; }
.product-compliance-route h2 { margin: 0 auto 5px; font-size: 30px; font-weight: 300; line-height: 1.2; }
.product-compliance-route p { max-width: 680px; margin: 0 auto 10px; }
.product-compliance-route p:has(.z-cta-link) { display: flex; justify-content: center; }
main .product-compliance-route .z-cta-link {
  min-width: 80px;
  min-height: 34px;
  margin: 3.5px auto 0;
  padding: 5.8px 14.5px;
  border-radius: 999px;
  font-size: 11.6px;
  line-height: 1;
  white-space: nowrap;
}

.product-gallery-section .custom-h2,
.blog-index-section .custom-h2 {
  max-width: 1050px;
  margin: 0 auto 12px;
  color: var(--interior-blue);
  font-size: clamp(24px, 3.15vw, 40px);
  line-height: 1.15;
  text-align: center;
  text-wrap: balance;
}

.product-gallery-section .custom-h2 {
  max-width: 920px;
  margin-bottom: 9px;
  font-size: 26px;
  line-height: 1.18;
}

.products-lead {
  max-width: 920px;
  margin: 0 auto 22px;
  color: var(--interior-blue);
  font-size: 12.5px;
  line-height: 1.45;
  text-align: center;
}

main .product-family-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 8px;
  width: min(100%, 680px);
  margin: 12px auto 24px;
}

main .product-family-nav a {
  min-height: 32px;
  padding: 5px 9px;
  border-color: #b6c8d7;
  border-radius: 99px;
  background: linear-gradient(180deg, #fff, var(--family-tint, #e8f4fc));
  box-shadow: 0 2px 7px rgb(44 97 150 / 8%);
  font-size: 11.2px;
  font-weight: 800;
  line-height: 1.12;
}

.product-family-nav a:nth-child(2) { --family-tint: #eaf8f1; }
.product-family-nav a:nth-child(3) { --family-tint: #fcf5de; }
.product-family-nav a:nth-child(4) { --family-tint: #f2eefe; }
.product-family-nav a:nth-child(5) { --family-tint: #faedf2; }
.product-family-nav a:nth-child(6) { --family-tint: #f2f8e5; }
.product-family-nav a:nth-child(7) { --family-tint: #fdf1e1; }
.product-family-nav a:nth-child(9) { --family-tint: #e8f9f9; }
main .product-family-nav a:hover { background: var(--interior-blue); color: #fff; }

.new-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 32px;
}

.product-family-card {
  min-width: 0;
  overflow: hidden;
  scroll-margin-block-start: 20px;
  border: 1px solid var(--interior-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgb(44 97 150 / 9%);
  transition: box-shadow 180ms, border-color 180ms;
}

.product-family-card:is(:hover, :focus-within, :target) {
  border-color: var(--interior-border);
  box-shadow: 0 12px 28px rgb(44 97 150 / 19%);
}

.product-family-frame {
  position: relative;
  height: 280px;
  min-height: 0;
  overflow: hidden;
  background: var(--interior-surface);
  cursor: pointer;
}

.product-family-frame:focus-visible { outline-offset: -5px; }

.product-family-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 230ms;
}

.product-family-frame:hover img { transform: scale(1.03); }

.product-slider-badge {
  position: absolute;
  inset-inline-end: 12px;
  inset-block-end: 12px;
  padding: 3px 9px;
  border-radius: 99px;
  background: rgb(44 97 150 / 88%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.product-copy { padding: 13.5px 14.5px 15.5px; color: var(--interior-blue); }
.product-copy h2 { margin: 0 0 6.5px; font-size: 14.8px; line-height: 1.22; }
.product-copy p { margin: 0 0 7px; font-size: 10.2px; line-height: 1.42; }

.product-copy .product-family-tag,
.product-family-tag,
.z-chip,
.tool-card__category {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 99px;
  background: var(--interior-surface);
  color: var(--interior-blue);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .04em;
  text-transform: uppercase;
}

main .product-copy .product-family-tag { display: block; margin-bottom: 10px; padding: 7px 10px; font-size: 10.2px; line-height: 1.42; letter-spacing: .06em; }
main .product-card-actions a {
  min-height: 51px;
  padding: 11px 18px;
  border-radius: 99px;
  background: var(--button-blue, var(--interior-blue));
  font-size: 16.2px;
  line-height: 1.15;
}
.product-card-actions .z-cta-link--secondary { border-color: var(--interior-blue); background: #fff; }
.product-card-actions .z-cta-link--secondary:hover { background: var(--interior-blue); }
.product-miniatures { display: none; }

.product-family-card.is-open .product-miniatures {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(55px, 1fr));
  gap: 8px;
  padding: 12px 15px 15px;
  border-top: 1px solid var(--interior-line);
}

.product-thumbnail-button {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 2px solid var(--interior-line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.product-thumbnail-button[aria-pressed="true"] { border-color: var(--interior-blue); }
.product-thumbnail-button img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.product-detail-page { padding: 42px 15px; }

.product-detail-hero {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(300px, 520px);
  align-items: center;
  gap: 34px;
}

.product-detail-hero h1 {
  margin-block: 10px 18px;
  color: var(--interior-blue);
  font-size: clamp(22px, 4vw, 38px);
  line-height: 1.08;
}

.product-detail-lead { max-width: 760px; font-size: 11.8px; line-height: 1.55; }
.product-detail-hero .product-detail-actions { margin-top: 16px; }
.product-detail-page .z-cta-link { min-height: 44px; border-radius: 999px; font-size: 12.2px; line-height: 1.12; }
.product-detail-gallery { padding-block: 50px; }
.product-detail-page :is(.product-detail-gallery, .product-detail-note, .product-detail-related) h2 { font-size: 20px; line-height: 1.2; }

.product-detail-figure { margin: 0; }

.product-detail-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--interior-line);
  border-radius: 8px;
  object-fit: cover;
}

.product-detail-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 12px;
}

.product-detail-thumb {
  display: block;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--interior-line);
  border-radius: 8px;
  background: #fff;
}

.product-detail-thumb img { display: block; width: 100%; height: 110px; object-fit: cover; }

.product-detail-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
  margin-block: 24px;
}

.product-detail-sections section,
.product-detail-faq details,
.product-detail-related {
  padding: 18px;
  border: 1px solid var(--interior-line);
  border-radius: 8px;
  background: #fff;
}

.product-detail-faq summary { color: var(--interior-blue); font-weight: 700; cursor: pointer; }
.product-detail-faq details + details { margin-top: 10px; }
.product-detail-page .product-detail-note { margin-block: 26px; padding: 20px; }
.product-detail-related { margin-bottom: 28px; }

.gallery-preview {
  max-width: min(94vw, 950px);
  max-height: 92vh;
  padding: 12px;
  border: 1px solid var(--interior-border);
  border-radius: 12px;
  background: #fff;
}

.gallery-preview::backdrop { background: rgb(9 29 51 / 74%); }
.gallery-preview img { display: block; width: auto; max-width: 100%; max-height: 77vh; object-fit: contain; }
.gallery-preview button {
  display: block;
  min-width: 36px;
  min-height: 34px;
  border: 1px solid #9eb5ca;
  border-radius: 6px;
  background: #f7f9fa;
  color: var(--brand, #2c6196);
  font: 700 20px / 1.1 sans-serif;
  cursor: pointer;
}

.gallery-preview form button { margin: 0 0 8px auto; }
.gallery-preview__navigation { display: flex; justify-content: center; align-items: center; gap: 10px; padding-block-start: 8px; }
.gallery-preview__navigation output { color: var(--brand, #2c6196); font-size: 14px; }

/* Editorial and policy documents */
main .document-style,
main .legal-extension,
main .team-welcome-expanded,
main .anti_doping,
main .v19-team-links,
main .v19-team-references {
  width: min(100% - 40px, 980px);
  margin-inline: auto;
  padding: 26px 28px 40px;
  border-top: 1px solid var(--surface);
  background: rgb(255 255 255 / 96%);
  color: #4b4f55;
  font-size: 12px;
  line-height: 1.76;
  overflow-wrap: break-word;
}

main .document-style,
main .legal-extension,
main .v19-team-references { margin-block-end: 50px; }

main.legal-main :is(.legal-document, .legal-extension) { width: min(var(--site-width), 100% - 40px); }
main.legal-main .legal-document { margin-bottom: 11.5px; padding-bottom: 22px; }
main.legal-main .legal-extension { margin-bottom: 30px; padding-top: 18px; }

main :is(.document-style, .anti_doping, .team-welcome-expanded) :is(h1, .modal__h1) {
  margin: 0 0 20px;
  color: var(--interior-blue);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.32;
  text-align: center;
}

main :is(.article-lead, .modal__h1-subtitle) {
  max-width: 840px;
  margin: 0 auto 22px;
  font-style: italic;
  text-align: center;
}

main :is(.document-style, .legal-extension, .anti_doping, .team-welcome-expanded) :is(h2, .anti-section-title) {
  display: inline-block;
  max-width: 100%;
  margin: 24px 0 12px;
  padding: 4.5px 7px;
  border-radius: 3px;
  background: var(--interior-blue);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .01em;
  text-transform: uppercase;
}

main :is(.document-style, .legal-extension, .anti_doping, .team-welcome-expanded) :is(ul, ol) {
  margin-block: 10px 20px;
  margin-inline-start: 28px;
  padding-inline-start: 14px;
  font-size: 12.8px;
  line-height: 1.72;
}

main :is(.document-style, .legal-extension, .team-welcome-expanded) p {
  margin-block: 0 11.2px;
  color: #4b4f55;
  font-size: 13.6px;
  line-height: 1.78;
  text-align: start;
}
main .article-body .article-lead { margin-block-end: 25px; }
main .article-body .article-meta-block {
  border-color: rgb(44 97 150 / 28%);
  background: #f7fbff;
  color: #24384f;
  box-shadow: 0 9px 20px rgb(44 97 150 / 8%);
}
main .article-body .article-meta-block :is(p, time) { color: #24384f; }
main .anti-wrap { padding-block: 10px 13.5px; }
main .anti-wrap .anti_doping {
  width: min(var(--site-width), 100% - 40px);
  margin: 0 auto 13.5px;
  padding: 0 20px 18px;
  border: 0;
  background: rgb(255 255 255 / 92%);
  line-height: 1.72;
}
main .anti_doping::before { display: block; height: 1px; margin: 0 0 20px; background: var(--surface); content: ""; }
main .anti-wrap .modal__h1 { margin: 0 auto 10px; font-size: 19.5px; line-height: 1.35; }
main .anti_doping .modal__h1-subtitle { margin: 0 auto 20px; color: #4b4f55; font-size: 12px; line-height: 1.65; }
main .anti_doping .modal__p { margin: 0 0 10.5px; color: #4b4f55; line-height: 1.75; }
main .anti_doping .modal__p.-mod { margin: 10px auto; color: var(--brand); font-weight: 700; line-height: 1.65; text-align: center; }
main .anti_doping .anti-section-title { margin: 23.5px 0 11.5px; padding-inline: 6.5px; font-size: 13.2px; }
main .anti_doping :is(.modal__list, .anti-list) { padding-inline-start: 16px; font-size: 12.5px; font-style: italic; line-height: 1.7; }
main .anti_doping :is(.modal__list, .anti-list) li { margin-block-end: 6.5px; }
main .clean-sport-action-center { padding: 24px; border-color: var(--surface); box-shadow: 0 10px 28px rgb(44 97 150 / 6%); }

main :is(.document-style, .legal-extension, .anti_doping) img { max-width: 100%; height: auto; }
main :is(.document-style, .legal-extension, .anti_doping) :is(th, td) { padding: 8px 10px; border: 1px solid var(--interior-line); }
main :is(.document-style, .legal-extension, .anti_doping) table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.references { margin-block-start: 24px; padding-block-start: 10px; border-top: 1px solid var(--interior-line); }
.article-date { color: var(--interior-blue); font-weight: 700; text-align: center; }
.article-topic-visual {
  width: min(100%, 440px);
  margin: 20px auto 26px;
  overflow: hidden;
  border: 1px solid var(--surface);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgb(44 97 150 / 8%);
  text-align: center;
}
.article-topic-visual img { display: block; width: 100%; max-height: 320px; background: white; object-fit: contain; }
.article-topic-visual figcaption { padding: 8px 10px; color: var(--brand); font-size: 11px; line-height: 1.45; }
.article-note { padding: 12px 14px; border-inline-start: 3px solid var(--interior-blue); background: var(--interior-surface); }
.authority-link-box { margin-block: 18px; padding: 14px; border: 1px solid var(--interior-line); border-radius: 8px; }

.article-meta-block dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: 12px;
  margin: 0;
}

.article-meta-block dt { color: var(--interior-blue); font-weight: 700; }
.article-meta-block dd { margin: 0; }

/* Team gallery */
.team-intro { padding-block: 10px 16px; }
main .team-welcome-expanded { margin-bottom: 20px; padding-block: 15.5px 22px; }
main .team-welcome-expanded h1 { margin-bottom: 11.5px; }
.team-gallery-wrap { width: min(100%, 1280px); padding-inline: 15px; margin-inline: auto; }
.team-rotation { margin: 0 auto 22px; }

.team-rotation__stage {
  position: relative;
  aspect-ratio: 4 / 3;
  max-height: 780px;
  overflow: hidden;
  border: 1px solid var(--interior-border);
  border-radius: 12px;
  background: linear-gradient(135deg, #fff, var(--interior-surface));
  box-shadow: 0 12px 25px rgb(44 97 150 / 10%);
}

.team-rotation__img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 8px;
  opacity: 0;
  object-fit: contain;
  transition: opacity 700ms ease;
}

.team-rotation__img.is-active { opacity: 1; }

.team-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 14px;
}

.team-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgb(158 181 202 / 28%);
  border-radius: 12px;
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 8px 20px rgb(44 97 150 / 8%);
}

.team-frame { position: relative; aspect-ratio: 4 / 3; background: var(--interior-surface); perspective: 1000px; }
.team-frame[role="button"] { cursor: pointer; }
.team-frame:focus-visible { outline-offset: -5px; }
.team-frame :is(picture, .team__img) { display: block; width: 100%; height: 100%; object-fit: cover; }
.team-frame .flip-face { position: absolute; inset: 0; backface-visibility: hidden; transition: transform 500ms ease; }
.team-frame .flip-back { transform: rotateY(180deg); }
.team-frame.is-flipped .flip-front { transform: rotateY(-180deg); }
.team-frame.is-flipped .flip-back { transform: rotateY(0); }

.team-caption {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5.5px 8px;
  padding: 10px 11px 11.5px;
  background: linear-gradient(rgb(255 255 255 / 98%), rgb(247 249 250 / 94%));
  color: var(--interior-blue);
  font-size: 10.8px;
  line-height: 1.35;
  overflow-wrap: break-word;
}

.team-caption strong { display: block; font-size: 8.6px; line-height: 1.1; letter-spacing: .02em; text-transform: uppercase; }
.team-caption__context { grid-column: 1 / -1; }
.team-gallery-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; padding: 20px 0; }
.team-gallery-status { color: var(--interior-blue); font-size: 13px; font-weight: 700; }
.team-join-route { margin-block: 20px; }

/* Article and tool indexes */
.blog-intro,
.tools-index-lead { max-width: 980px; margin: 10px auto 18px; color: var(--interior-blue); text-align: center; }

.page-tools-index main .breadcrumb__container { padding-block: 14.5px 3.6px; }
.page-tools-index main .page-title { margin-bottom: 3.8px; }
.page-tools-index main .breadcrumb { margin-block: 3.5px 0; }
.tools-main { padding-block-start: 11px; }
.tools-main > .container { width: min(calc(100% - 52px), 1160px); }
.tools-main > .container > .tool-privacy-note { display: none; }
.tools-index-lead { max-width: 1000px; margin: 8px auto 10px; font-size: 14.5px; font-weight: 600; line-height: 1.38; }

.z-featured-guide,
.z-blog-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--interior-line);
  border-radius: 8px;
  background: #fff;
  color: var(--interior-ink);
}

.z-featured-guide { grid-template-columns: 96px minmax(0, 1fr); margin: 0 0 19px; padding: 18px; }
.z-blog-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 12px; }
.z-blog-card__thumb, .z-featured-guide__thumb { overflow: hidden; margin: 0; border-radius: 6px; }
.z-blog-card__thumb img, .z-featured-guide__thumb img { display: block; width: 100%; height: auto; aspect-ratio: 1.38; object-fit: cover; }
.z-blog-card h2, .z-featured-guide h2 { margin: 4px 0; color: var(--interior-blue); font-size: 17px; line-height: 1.2; }
.z-featured-guide h2 { font-size: 21px; }
.z-blog-card p, .z-featured-guide p { margin: 4px 0; font-size: 13px; line-height: 1.47; }
.z-blog-card :is(a, time), .z-featured-guide :is(a, time) { overflow-wrap: anywhere; }
.z-blog-card :is(h2 a, .z-blog-card__text-link), .z-featured-guide :is(h2 a, .z-featured-guide__text-link) { color: inherit; text-decoration: none; }
.z-blog-card a:hover, .z-featured-guide a:hover { text-decoration: underline; }
.z-blog-card .z-cta-link, .z-featured-guide .z-cta-link { min-height: 35px; padding: 6px 10px; font-size: 12px; }

.z-related-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-block-start: 8px; }
.z-related-tools strong { width: 100%; color: var(--interior-blue); font-size: 13px; }

.z-related-tools a,
.tool-card__related {
  display: inline-block;
  padding: 5px 8px;
  border: 1px solid var(--interior-line);
  border-radius: 99px;
  background: #fff;
  color: var(--interior-blue);
  font-size: 12px;
  line-height: 1.3;
  text-decoration: none;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12.5px;
  margin-block-start: 10px;
}

.tools-popular {
  margin-block: 1px 10px;
  padding: 9.5px;
  border: 1px solid var(--interior-border);
  border-radius: 12px;
  background: var(--interior-surface);
  box-shadow: 0 8px 18px rgb(44 97 150 / 7%);
}

.tools-popular h2 {
  display: table;
  margin: 0 0 8px;
  padding: 4px 8px;
  border: 1px solid var(--interior-line);
  border-radius: 99px;
  background: #fff;
  color: var(--interior-blue);
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.tools-popular__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }

.tools-popular__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 96px;
  padding: 10px 8px;
  border: 1px solid var(--interior-border);
  border-radius: 8px;
  background: #fff;
  color: var(--interior-blue);
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}

.tools-popular__card:hover { border-color: var(--interior-blue); }
.tools-popular__card span { font-size: 9px; font-weight: 800; text-transform: uppercase; }
.tools-popular__card strong { font-size: 12px; overflow-wrap: anywhere; }
.tools-popular__card small { padding: 6px 12px; border-radius: 99px; background: var(--button-blue, var(--interior-blue)); color: #fff; font-size: 10px; font-weight: 700; }

.tools-filter {
  margin-block: 0 10px;
  padding: 10.5px 10px;
}

.tools-filter__title { margin: 0 0 5px; color: var(--interior-blue); font-size: 20px; line-height: 1.25; }
.tools-filter__buttons { display: flex; flex-wrap: wrap; gap: 6px; }

.tools-filter__button {
  min-height: 33px;
  padding: 6.6px 11.4px;
  border: 1px solid var(--filter-edge, #b6c8d7);
  border-radius: 99px;
  background: linear-gradient(#fff, var(--filter-tint, #edf5fa));
  color: var(--interior-blue);
  font-size: 15.6px;
  font-weight: 800;
  line-height: 1.12;
  cursor: pointer;
}

.tools-filter__button:nth-child(3) { --filter-tint: #edf8f1; --filter-edge: #bad7c7; }
.tools-filter__button:nth-child(4) { --filter-tint: #fff6df; --filter-edge: #e5d8ae; }
.tools-filter__button:nth-child(5) { --filter-tint: #edf7fc; --filter-edge: #c3dbe7; }
.tools-filter__button:nth-child(6) { --filter-tint: #fff1f4; --filter-edge: #e3c5cd; }
.tools-filter__button:nth-child(7) { --filter-tint: #f4f1fb; --filter-edge: #d8cee9; }
.tools-filter__button:nth-child(8) { --filter-tint: #fff4e8; --filter-edge: #ead5bc; }
.tools-filter__button:nth-child(9) { --filter-tint: #f4fae8; --filter-edge: #d5e1ba; }
.tools-filter__button:nth-child(10) { --filter-tint: #edf9f8; --filter-edge: #bad5d3; }
.tools-filter__button[aria-pressed="true"] { border-color: var(--interior-blue); }
.tools-filter__button:hover { background: var(--interior-blue); color: #fff; }

.tool-card[data-tool="protein-target-calculator"] { --tool-photo: url("/images/blog/heavy-duty-vs-high-volume/07-nutrition.webp"); }
.tool-card[data-tool="training-volume-calculator"] { --tool-photo: url("/images/blog/heavy-duty-vs-high-volume/06-training-log.webp"); }
.tool-card[data-tool="saturated-fat-budget-calculator"] { --tool-photo: url("/images/blog/heavy-duty-vs-high-volume/08-hydration-break.webp"); }
.tool-card[data-tool="one-rep-max-plate-loader"] { --tool-photo: url("/images/blog/heavy-duty-vs-high-volume/02-leg-press.webp"); }
.tool-card[data-tool="calorie-weight-loss-planner"] { --tool-photo: url("/images/blog/walking-after-meals/04-zphc-flexible-post-meal-walking-routine.webp"); }
.tool-card[data-tool="bmi-waist-health-check"] { --tool-photo: url("/images/blog/heavy-duty-vs-high-volume/09-hero-athlete.webp"); }
.tool-card[data-tool="rehab-red-flag-checker"] { --tool-photo: url("/images/blog/heavy-duty-vs-high-volume/05-coaching.webp"); }
.tool-card[data-tool="glp1-nutrition-risk-checker"] { --tool-photo: url("/images/blog/walking-after-meals/07-zphc-indoor-walking-option-older-adult.webp"); }
.tool-card[data-tool="post-meal-walk-planner"] { --tool-photo: url("/images/blog/walking-after-meals/01-zphc-walking-after-meals-article-hero.webp"); }
.tool-card[data-tool="supplement-risk-checklist"] { --tool-photo: url("/images/blog/creatine-monohydrate-guide/creatine-clean-sport-gym-hq.webp"); }

.tool-card,
.tool-panel,
.tool-info-box {
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--interior-border);
  border-radius: 12px;
  background: #fff;
  color: var(--interior-ink);
}

.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 250px;
  padding: 13.5px;
  overflow: hidden;
  isolation: isolate;
}
.tool-card[data-tool]::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--tool-photo, none) top right / cover no-repeat;
  mask-image: linear-gradient(to bottom left, #000 7%, #0008 33%, transparent 76%);
  opacity: .72;
  pointer-events: none;
  content: "";
}
[dir="rtl"] .tool-card[data-tool]::before {
  background-position: top left;
  mask-image: linear-gradient(to bottom right, #000 7%, #0008 33%, transparent 76%);
}
.tool-card h2, .tool-card h3 { margin: 5.5px 0 3.4px; color: var(--interior-blue); font-size: 14.8px; font-weight: 300; line-height: 1.16; }
.tool-card p { margin: 4px 0; font-size: 11.5px; line-height: 1.42; }
.tool-card .tool-privacy-note { margin-block: 6px; padding: 6px 8px; background: rgb(255 255 255 / 84%); font-size: 10px; }
.tool-card__miniature { display: block; width: 100%; max-height: 120px; margin-bottom: 10px; object-fit: contain; }
main .tool-card__link {
  min-height: 27px;
  margin-block: 10px 0;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--button-blue, var(--interior-blue));
  font-size: 11px;
  line-height: 1.08;
}
.tool-card__related { margin-inline-end: auto; }

main .tool-card__actions {
  align-items: baseline;
  justify-content: flex-end;
  width: 100%;
  margin-block: auto 22px;
}
.tool-privacy-note, .tool-disclaimer, .tool-result {
  padding: 12px 14px;
  border-inline-start: 4px solid var(--interior-blue);
  background: var(--interior-surface);
  color: var(--interior-ink);
}

.tool-main { padding-block: 16px 42px; }
.tool-page-hero { padding-block: 24px 15px; }
.tool-page-hero h1 { margin: 0; color: var(--interior-blue); font-size: clamp(25px, 3.5vw, 39px); line-height: 1.12; }
.tool-page-hero p { max-width: 720px; color: var(--interior-ink); }
.tool-page-hero .tools-kicker { margin: 0 0 8px; color: var(--interior-blue); font-size: 12px; font-weight: 700; }

.tool-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: start;
  gap: 14px;
}

.tool-panel, .tool-info-box, .tool-result { margin-block: 16px; }
.tool-panel h2, .tool-info-box h2, .tool-result h2 { margin: 0 0 10px; color: var(--interior-blue); font-size: 19px; }
.tool-inputs, .tool-fields, .tool-form, .tool-form-grid, .tool-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 10px;
}

.tool-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tool-panel :is(label, legend), .tool-form :is(label, legend) { color: var(--interior-blue); font-weight: 700; }
.tool-panel label, .tool-form label { display: block; }
.tool-form .tool-field { display: grid; gap: 4px; align-content: start; }
.tool-form :is(.tool-check, .tool-fieldset, .tool-submit, .tool-browser-note) { grid-column: 1 / -1; }
.tool-form .tool-check { display: flex; align-items: flex-start; gap: 7px; }
.tool-fieldset { min-width: 0; margin: 0; padding: 10px; border: 1px solid var(--interior-border); border-radius: 8px; }
.tool-fieldset legend { padding-inline: 4px; }
.tool-fieldset input { accent-color: var(--interior-blue); }
.tool-browser-note { padding: 8px 10px; border-radius: 8px; background: var(--interior-surface); }

.tool-submit {
  min-height: 42px;
  padding: 9px;
  border: 1px solid var(--interior-blue);
  border-radius: 8px;
  background: var(--interior-blue);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.tool-result { min-height: 110px; border: 1px solid var(--interior-border); border-radius: 10px; }
.tool-result.is-error { border-color: #d19445; background: #fff7eb; }
.tool-result table { width: 100%; border-collapse: collapse; }
.tool-result th, .tool-result td { padding: 5px; border-block-end: 1px solid var(--interior-line); text-align: start; }

/* Contact and form fields */
.contact-form .form { width: min(calc(100% - 20px), 920px); margin-inline: auto; color: var(--interior-blue); }
.contact-form .input__row { margin-block: 0 18px; }
.contact-form .input__label { display: block; margin-bottom: 7px; font-size: 15px; font-weight: 700; }
.contact-form .input__label span { color: #a32f36; }

main :is(.input__data, .textarea, .tool-panel input, .tool-panel select, .tool-form input, .tool-form select):not([type="checkbox"], [type="radio"], [type="hidden"], [type="button"], [type="submit"]) {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 2px solid #b6c8d7;
  border-radius: 8px;
  background: #fff;
  color: #222;
  font: inherit;
}

.contact-form .textarea { min-height: 280px; resize: vertical; }
.contact-form .contact-optional-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.contact-form .input-checkbox__row { margin: 8px 0; color: var(--interior-ink); font-size: 14px; }
.contact-form .input__data-check { margin-inline-end: 4px; accent-color: var(--interior-blue); }
.contact-form .contact-message-help { margin-bottom: 10px; padding: 10px 14px; border: 1px solid var(--interior-line); border-radius: 8px; background: var(--interior-surface); font-size: 14px; }
.contact-form .contact-message-help p { margin-block: 0 5px; }
.contact-form .contact-message-help ul { margin: 4px 0; padding-inline-start: 22px; }

@media (min-width: 1280px) {
  .tools-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .new-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tools-popular__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  main .breadcrumb__container { width: 100%; padding: 7.8px 16px 6.2px; }
  main .page-title { margin-bottom: 4px; padding: 7.6px 15.5px; font-size: 19.5px; }
  main .breadcrumb { margin-left: 15.5px; font-size: 12.4px; line-height: 1.25; }
  .page-blog main .breadcrumb__container { padding-inline: 0; }
  .page-blog main .page-title { font-size: 19.5px; }
  .page-blog main .breadcrumb { font-size: 12.4px; }
  .product-gallery-section { padding-block-start: 2px; }
  main .product-compliance-route { padding: 18px; }
  .product-compliance-route p { font-size: 14.8px; line-height: 1.68; }
  main .product-compliance-route .z-cta-link { min-width: 72px; min-height: 31.5px; padding: 4.8px 12.5px; font-size: 10.4px; }
  .product-container { width: 100%; padding-inline: 16px; }
  .product-gallery-section .custom-h2 { max-width: calc(100% - 32px); margin-bottom: 7px; font-size: 20.5px; }
  .products-lead { max-width: calc(100% - 20px); margin-bottom: 14.5px; }
  main .product-family-nav { gap: 6px; }
  main .product-family-nav a { font-size: 9.8px; }
  .new-product-grid { grid-template-columns: 1fr; gap: 24px; }
  .product-family-frame { height: 230px; }
  main .product-card-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5.2px; }
  main .product-card-actions a { min-height: 32px; padding: 4.6px 3.4px; font-size: 10px; font-weight: 800; }
  .product-detail-page { width: 100%; padding-inline: 16px; }
  .product-detail-hero { grid-template-columns: 1fr; }
  .product-detail-hero .product-detail-actions { flex-direction: column; }
  .product-detail-hero .z-cta-link { width: 100%; }
  main :is(.article-body, .legal-extension, .legal-document),
  main.legal-main :is(.legal-document, .legal-extension) { width: 100%; }
  main :is(.article-body, .legal-extension, .legal-document, .team-welcome-expanded) { padding: 16px; border-radius: 10px; }
  main.legal-main .legal-document { margin-bottom: 9px; padding-bottom: 15.5px; }
  main.legal-main .legal-extension { padding-top: 12.5px; }
  main .anti-wrap { padding-block: 2px 9.5px; }
  main .anti-wrap .anti_doping { width: 100%; padding: 0 16px 12.5px; margin-bottom: 9px; }
  main .clean-sport-action-center { padding: 18px; }
  main.legal-main p,
  main .anti-wrap .anti_doping p,
  main .team-welcome-expanded p { font-size: 14.8px; line-height: 1.68; }
  .article-topic-visual { max-width: 340px; }
  .article-topic-visual img { max-height: 240px; }
  .team-intro { padding-block: 2px 16px; }
  .team-intro .custom-container { width: 100%; }
  main .team-welcome-expanded { width: calc(100% - 32px); margin-bottom: 13.5px; padding-block: 11.5px 16.5px; }
  main .team-welcome-expanded h1 { margin-bottom: 8.2px; font-size: 19.5px; line-height: 1.22; }
  .team-rotation { margin-bottom: 16px; }
  .team-rotation__stage { aspect-ratio: 4 / 5; }
  .team-rotation__img { padding: 4px; }
  .team-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-caption { grid-template-columns: 1fr; padding: 8.5px 9px 10px; font-size: 9.6px; }
  .team-caption strong { font-size: 7.8px; }
  .contact-form .contact-optional-grid { grid-template-columns: 1fr; gap: 0; }
  .z-blog-card-grid, .tools-grid, .tool-shell, .tool-form { grid-template-columns: 1fr; }
  .page-tools-index main .breadcrumb__container { padding-block: 5.8px 1.8px; }
  .page-tools-index main .page-title { margin-bottom: 2.6px; }
  .page-tools-index main .breadcrumb { margin-block: 0; }
  .tools-main { padding-block-start: 2px; }
  .tools-popular { margin: 1px 16px 5px; padding: 0; border: 0; background: none; box-shadow: none; }
  .tools-popular h2 { margin-bottom: 4px; font-size: 8px; }
  .tools-popular__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; }
  .tools-popular__card { min-height: 63px; gap: 3px; padding: 3px 2px; border-radius: 5px; }
  .tools-popular__card span { font-size: 5.8px; }
  .tools-popular__card strong { font-size: 7px; line-height: 1.16; }
  .tools-popular__card small { padding: 3px 5px; font-size: 5.8px; }
  .tools-filter { margin: 5.8px 16px 8.2px; padding: 0; }
  .tools-filter__title { margin-bottom: 3px; font-size: 10px; }
  .tools-filter__buttons { justify-content: center; gap: 4px 5px; }
  .tools-filter__button { min-height: 29px; padding: 3.4px 7.6px; font-size: 8px; }
  .tools-filter__button[aria-pressed="true"] { background: var(--interior-blue); color: #fff; }
  .tools-index-lead { margin: 6.5px 16px 11.5px; padding-inline: 8px; font-size: 12.8px; font-weight: 800; line-height: 1.42; }
  .tools-main > .container > .tool-privacy-note { display: block; margin-inline: 16px; color: var(--interior-blue); line-height: 1.56; }
  .tools-grid { gap: 8.5px; margin-block-start: 0; }
  .tool-card { min-height: 206px; padding: 10px; border-radius: 8.5px; }
  .tool-card h2, .tool-card h3 { font-size: 13px; }
  main .tool-card__link { font-size: 9.6px; }
  main .tool-card__actions { justify-content: flex-start; margin-block-end: 19px; }
  main .tool-card__actions .tool-card__link { min-width: min(48%, 165px); }
}

@media (prefers-reduced-motion: reduce) {
  main :is(.product-family-card, .product-family-frame img, .team-rotation__img, .team-frame .flip-face) { transition: none; }
  main .product-family-frame:hover img { transform: none; }
}
