﻿/* Lean-concrete products share the category configurator and calculator. */
.lean-product-page [hidden] { display: none !important; }

.lean-product-page .product-hero .hero-copy { align-items: flex-start; }
.lean-product-page .product-hero-prices { align-items: stretch; }
.lean-product-page .product-hero-price { min-width: 0; }
.lean-product-page .product-hero-price > strong {
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}
.lean-product-page .product-hero-price:only-child { max-width: 330px; }
.lean-product-page .product-hero-price-note { max-width: 68ch; }

.lean-product-page .lean-category .lean-table th:first-child { width: 90px; }
.lean-product-page .lean-field { grid-template-columns: minmax(0, 1fr); }
.lean-product-page .lean-field > span { overflow-wrap: anywhere; }
.lean-product-page .lean-mark { font-weight: 700; white-space: nowrap; }

.lean-product-page .lean-base-badge {
  display: inline-block;
  justify-self: start;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 7px;
  padding: 2px 7px;
  border-radius: 5px;
  background: #fff0dc;
  color: #8c4c09;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
}

.lean-product-page .lean-product-note {
  max-width: 86ch;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.lean-product-page .lean-product-note p { margin: 0; }
.lean-product-page .lean-product-note p + p { margin-top: 6px; }

.lean-product-page .lean-other-grades h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.35;
}
.lean-product-page .lean-other-grades .grade-grid { margin-top: 20px; }
.lean-product-page .lean-category-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--accent);
  font-size: 13px;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lean-product-page .lean-category-link:focus-visible {
  outline: 2px solid var(--brand-dark);
  outline-offset: 3px;
}

@container lean-price (min-width: 761px) {
  .lean-product-page .lean-category .lean-class { padding-top: 17px; }
}

@media (max-width: 600px) {
  .lean-product-page .product-hero-price > strong { font-size: clamp(18px, 4.5vw, 23px); }
  .lean-product-page .lean-product-note { font-size: 12px; }
}
