/* Products hub (/products/) and product pages (/products/<product>/).
   Shared tokens, page intro, cards, gallery, trust bar and call-to-action band
   come from site.css. */

/* ---------- Hub: product line cards ---------- */

.lines {
  padding-bottom: 1.875rem;
}

.product-grid--lines {
  grid-template-columns: 1fr;
  gap: 1.125rem;
}

/* Phones: image beside the text. */
.product-grid--lines .product-card {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.875rem;
  padding-top: 0.875rem;
  border-top: 3px solid var(--gold-500);
}

.product-grid--lines .product-card__media {
  align-self: start;
  padding: 0.625rem;
}

.product-grid--lines .product-card__body {
  padding-top: 0;
  border-top: 0;
}

.product-grid--lines h2 {
  font-size: 1.3125rem;
}

.product-grid--lines p {
  margin-top: 0.3125rem;
  font-size: 0.84375rem;
  line-height: 1.5;
}

.product-card .product-card__forms {
  margin-top: 0.5625rem;
  font-size: 0.65625rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.product-card .product-card__spec {
  margin-top: 0.25rem;
  font: 400 1.1875rem/1.2 var(--font-serif);
  font-variant-numeric: lining-nums;
  color: var(--green-900);
}

.product-grid--lines .product-card__more {
  display: none;
}

.product-card__media .product-card__badge {
  position: absolute;
  top: 0.375rem;
  right: 0.375rem;
  width: auto;
  height: 1.875rem;
  mix-blend-mode: normal;
}

@media (min-width: 40rem) {
  .product-grid--lines {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }

  .product-grid--lines .product-card {
    display: flex;
    padding-top: 0;
    border-top: 0;
  }

  .product-grid--lines .product-card__media {
    align-self: stretch;
    padding: 1.5rem;
  }

  .product-grid--lines .product-card__body {
    padding-top: 1.125rem;
    border-top: 3px solid var(--gold-500);
  }

  .product-grid--lines h2 {
    font-size: 1.5625rem;
  }

  .product-grid--lines p {
    margin-top: 0.5rem;
    font-size: var(--fs-sm);
  }

  .product-card .product-card__forms {
    margin-top: 1rem;
    padding-top: 0.875rem;
    border-top: 1px solid var(--line);
    font-size: 0.75rem;
  }

  .product-card .product-card__spec {
    margin-top: 0.5rem;
    font-size: 1.5rem;
  }

  .product-grid--lines .product-card__more {
    display: block;
    margin-top: auto;
    padding-top: 1.125rem;
  }

  .product-card__media .product-card__badge {
    top: 1rem;
    right: 1rem;
    height: 2.875rem;
  }
}

@media (min-width: 64rem) {
  .lines {
    padding-block: 3.25rem 5.5rem;
  }

  .product-grid--lines {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Hub: forms at a glance ---------- */

.forms {
  background: var(--cream-50);
  border-block: 1px solid var(--line);
}

.forms__head {
  margin-bottom: 1.375rem;
}

.forms__head .eyebrow {
  margin-bottom: 0.625rem;
}

.forms__head h2 {
  font-size: clamp(1.6875rem, 1.2rem + 1.4vw, 2.375rem);
}

.forms__note {
  margin-top: 0.375rem;
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--ink-600);
}

/* Phones: each product becomes a stacked card. */
.forms-table,
.forms-table tbody,
.forms-table tr,
.forms-table th,
.forms-table td {
  display: block;
}

.forms-table {
  width: 100%;
  border-collapse: collapse;
}

.forms-table thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.forms-table tbody {
  margin-bottom: 0.875rem;
  background: var(--cream-100);
  border: 1px solid var(--line-strong);
}

.forms-table tbody:last-child {
  margin-bottom: 0;
}

.forms-table__group th {
  padding: 0.625rem 0.875rem;
  background: var(--green-900);
  color: var(--cream-50);
  font: 400 1.1875rem/1.2 var(--font-serif);
  text-align: left;
}

.forms-table__group a {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
}

.forms-table__group a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.forms-table__badge {
  width: auto;
  height: 1.75rem;
  padding: 2px;
  background: var(--cream-50);
}

.forms-table tr:not(.forms-table__group) {
  padding: 0.8125rem 0.875rem;
  border-top: 1px solid var(--line);
}

.forms-table__group + tr {
  border-top: 0;
}

.forms-table th[scope="row"] {
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: left;
  color: var(--ink-900);
}

.forms-table td {
  margin-top: 0.1875rem;
  font-size: 0.84375rem;
  line-height: 1.5;
  color: var(--ink-700);
}

/* Lines break between specs, never inside one like "62–67°C" or "off-white". */
.forms-table__spec {
  white-space: nowrap;
}

.forms-table .forms-table__apps {
  margin-top: 0.3125rem;
  font-size: 0.8125rem;
  color: var(--ink-600);
}

.forms-table__label {
  font-weight: 600;
  color: var(--amber-700);
}

.forms-table .forms-table__shared {
  display: none;
}

.forms-table tr.forms-table__shared-row {
  background: var(--cream-200);
}

.forms-table__shared-row td {
  margin-top: 0;
}

@media (min-width: 48rem) {
  .forms-table {
    display: table;
    background: var(--cream-100);
    border: 1px solid var(--line-strong);
  }

  .forms-table thead {
    position: static;
    display: table-header-group;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
  }

  .forms-table tbody {
    display: table-row-group;
    margin: 0;
    background: none;
    border: 0;
  }

  .forms-table tr {
    display: table-row;
  }

  .forms-table th,
  .forms-table td {
    display: table-cell;
  }

  .forms-table thead th {
    padding: 0.9375rem 1.375rem;
    background: var(--green-900);
    color: var(--paper);
    font-size: 0.71875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-align: left;
    text-transform: uppercase;
  }

  .forms-table thead th:first-child {
    width: 26%;
  }

  .forms-table thead th:nth-child(2) {
    width: 38%;
  }

  .forms-table__group th {
    padding: 0.75rem 1.375rem;
    background: var(--cream-200);
    border-top: 1px solid var(--line-strong);
    color: var(--green-900);
    font-size: 1.25rem;
  }

  .forms-table tr:not(.forms-table__group) {
    padding: 0;
    border: 0;
  }

  .forms-table tbody th[scope="row"],
  .forms-table td {
    padding: 1rem 1.375rem;
    border-top: 1px solid var(--line);
    vertical-align: top;
  }

  .forms-table tbody th[scope="row"] {
    font-size: 1rem;
  }

  .forms-table td,
  .forms-table .forms-table__apps {
    margin: 0;
    font-size: 0.96875rem;
    color: var(--ink-700);
  }

  .forms-table__label {
    display: none;
  }

  .forms-table .forms-table__shared {
    display: table-cell;
  }

  .forms-table tr.forms-table__shared-row {
    display: none;
  }
}

@media (min-width: 64rem) {
  .forms__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2.5rem;
    margin-bottom: 2.125rem;
  }

  .forms__head .eyebrow {
    margin-bottom: 0.875rem;
  }

  .forms__note {
    max-width: 26em;
    margin-top: 0;
    font-size: 0.96875rem;
    text-align: right;
  }
}

/* ---------- Hub: supply assurances ---------- */

.assurances {
  padding-block: 1.625rem;
  background: var(--cream-200);
  border-bottom: 1px solid var(--line);
}

.assurances__list {
  display: grid;
  gap: 1.125rem;
}

.assurance {
  display: flex;
  gap: 0.75rem;
}

.assurance + .assurance {
  padding-top: 1.125rem;
  border-top: 1px solid var(--line);
}

.assurance::before {
  content: "";
  flex: none;
  align-self: flex-start;
  width: 0.8125rem;
  aspect-ratio: 1.1547;
  margin-top: 0.375rem;
  background: var(--gold-500);
  clip-path: var(--hexagon);
}

.assurance__title {
  font: 400 1.25rem/1.25 var(--font-serif);
  color: var(--green-900);
}

.assurance__text {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-600);
}

@media (min-width: 64rem) {
  .assurances {
    padding-block: 2.875rem;
  }

  .assurances__list {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }

  .assurance {
    gap: 1rem;
  }

  .assurance + .assurance {
    padding: 0 0 0 3rem;
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .assurance::before {
    width: 0.875rem;
    margin-top: 0.4375rem;
  }

  .assurance__title {
    font-size: 1.5rem;
  }

  .assurance__text {
    margin-top: 0.375rem;
    font-size: 0.9375rem;
  }
}

/* ---------- Hub: OEM band ---------- */

.oem-band {
  color: var(--paper);
}

.oem-band__inner {
  display: grid;
  gap: 2rem;
}

.oem-band .eyebrow {
  margin-bottom: 0.75rem;
}

.oem-band h2 {
  color: inherit;
}

.oem-band .lead {
  max-width: 34em;
  margin-top: 0.75rem;
  color: var(--sage-200);
}

.oem-band .btn {
  width: 100%;
  margin-top: 1.125rem;
}

.oem-band__photos {
  display: none;
}

@media (min-width: 40rem) {
  .oem-band .btn {
    width: auto;
  }
}

@media (min-width: 64rem) {
  .oem-band__inner {
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 4rem;
  }

  .oem-band .eyebrow {
    margin-bottom: 1.125rem;
  }

  .oem-band .lead {
    margin-top: 1.125rem;
  }

  .oem-band .btn {
    margin-top: 1.75rem;
  }

  .oem-band__photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .oem-band__photos img {
    width: 100%;
    height: 11.875rem;
    object-fit: cover;
  }
}

/* ---------- Product page: breadcrumb and switcher component ---------- */

product-nav {
  display: block;
  min-height: 2.5rem;
}

.product-nav {
  background: var(--cream-50);
  border-bottom: 1px solid var(--line);
}

.product-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: calc(2.5rem - 1px);
}

.breadcrumb ol,
.switcher ul {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb ol {
  gap: 0.5rem;
  font-size: 0.78125rem;
  color: var(--ink-600);
}

.breadcrumb li + li::before {
  content: "/";
  content: "/" / "";
  margin-right: 0.5rem;
  color: #c2b8a3;
}

.breadcrumb a:hover {
  color: var(--green-900);
}

.breadcrumb [aria-current] {
  font-weight: 600;
  color: var(--green-900);
}

.switcher {
  display: none;
  align-items: center;
  gap: 0.375rem;
}

.switcher__label {
  margin-right: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-600);
}

.switcher ul {
  gap: 0.5rem;
}

.switcher__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3125rem 0.75rem 0.3125rem 0.375rem;
  background: var(--cream-100);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 0.84375rem;
  color: var(--green-900);
  transition: border-color 0.2s;
}

.switcher__link:hover {
  border-color: var(--green-900);
}

.switcher__link img {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
  mix-blend-mode: multiply;
}

@media (min-width: 48rem) {
  product-nav {
    min-height: 3.375rem;
  }

  .product-nav__inner {
    height: calc(3.375rem - 1px);
  }

  .breadcrumb ol {
    font-size: 0.84375rem;
  }

  .switcher {
    display: flex;
  }
}

/* ---------- Product page: hero ---------- */

.product-hero {
  padding-block: 1.5rem 1.75rem;
}

.product-hero__inner {
  display: grid;
  gap: 1.375rem;
}

.product-hero__info .eyebrow {
  display: none;
}

.product-hero h1 {
  font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.375rem);
  line-height: 1.04;
}

.product-hero .lead {
  max-width: none;
  margin-top: 0.75rem;
}

.facts {
  margin: 1.375rem 0 0;
  border-top: 1px solid var(--green-900);
}

.facts > div {
  display: grid;
  grid-template-columns: 40% 1fr;
  column-gap: 1rem;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  padding-block: 0.6875rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-600);
}

.facts dd {
  margin: 0;
  padding-block: 0.6875rem;
  font-size: 0.9375rem;
}

.facts strong {
  font-weight: 600;
}

.facts > .facts__wide {
  display: block;
  padding-block: 0.75rem;
}

.facts__wide dt {
  padding: 0 0 0.625rem;
}

.facts__wide dd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0;
  color: var(--ink-700);
}

.facts__wide img {
  width: auto;
  height: 1.875rem;
}

.facts__organic dd {
  flex-wrap: nowrap;
}

.facts__organic img {
  flex: none;
  height: 2.5rem;
}

.fda-chip--sm {
  padding: 0.375rem 0.5625rem;
  background: var(--cream-50);
  letter-spacing: 0.08em;
}

.product-hero__actions {
  display: grid;
  gap: 0.625rem;
  margin-top: 1.375rem;
}

@media (min-width: 40rem) {
  .product-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
  }
}

/* Tablet: photo and details side by side so the image doesn't fill the screen. */
@media (min-width: 48rem) {
  .product-hero__inner {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 2rem;
  }
}

@media (min-width: 64rem) {
  .product-hero {
    padding-block: 3.625rem 4.375rem;
  }

  .product-hero__inner {
    grid-template-columns: 1.02fr 1fr;
    align-items: start;
    gap: 4rem;
  }

  .product-hero__info .eyebrow {
    display: block;
    margin-bottom: 0.875rem;
  }

  .product-hero .lead {
    margin-top: 1rem;
  }

  .facts {
    margin-top: 1.875rem;
  }

  .facts > div {
    grid-template-columns: 34% 1fr;
  }

  .facts dt {
    padding-block: 0.8125rem;
    font-size: 0.75rem;
  }

  .facts dd {
    padding-block: 0.8125rem;
    font-size: 1rem;
  }

  .facts > .facts__wide {
    display: grid;
    align-items: center;
    padding-block: 0;
  }

  .facts__wide dt {
    padding: 0.8125rem 0;
  }

  .facts__wide dd {
    gap: 0.875rem;
    padding: 0.6875rem 0;
  }

  .facts__wide img {
    height: 2.125rem;
  }

  .facts__organic img {
    height: 2.875rem;
  }

  .fda-chip--sm {
    padding: 0.375rem 0.625rem;
    font-size: 0.8125rem;
  }

  .product-hero__actions {
    margin-top: 1.875rem;
  }
}

/* ---------- Product page: overview and composition ---------- */

.product-about {
  background: var(--cream-50);
  border-block: 1px solid var(--line);
}

.product-about__inner {
  display: grid;
  gap: 1.625rem;
}

.product-about h2,
.related h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.6875rem, 1.35rem + 1vw, 2rem);
}

.product-about p {
  font-size: clamp(0.96875rem, 0.9rem + 0.3vw, 1.09375rem);
  line-height: 1.7;
  color: var(--ink-700);
}

@media (min-width: 64rem) {
  .product-about__inner {
    grid-template-columns: 1.35fr 1fr;
    gap: 4.5rem;
  }

  .product-about h2 {
    margin-bottom: 1.125rem;
  }

  .related h2 {
    margin-bottom: 1.75rem;
  }
}

/* ---------- Product page: specifications ---------- */

.specs__head {
  margin-bottom: 1.125rem;
}

.specs__head h2,
.industries h2,
.docs h2 {
  font-size: clamp(1.6875rem, 1.25rem + 1.3vw, 2.25rem);
}

.specs__head p {
  margin-top: 0.375rem;
  font-size: 0.875rem;
  color: var(--ink-600);
}

.spec-grid {
  display: grid;
  gap: 0.875rem;
}

.spec-card {
  background: var(--cream-50);
  border: 1px solid var(--line-strong);
}

.spec-card h3 {
  padding: 0.75rem 1rem;
  background: var(--green-900);
  color: var(--cream-50);
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.spec-card dl {
  margin: 0;
}

.spec-card dl > div {
  display: grid;
  grid-template-columns: 42% 1fr;
  border-top: 1px solid var(--line);
}

.spec-card dl > div:first-child {
  border-top: 0;
}

.spec-card dt {
  padding: 0.75rem 1rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-600);
}

.spec-card dd {
  margin: 0;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
}

.spec-card strong {
  font-weight: 600;
}

.organic-card {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding: 1.5rem;
  background: var(--cream-200);
  border: 1px solid var(--line);
}

.organic-card img {
  align-self: flex-start;
  width: auto;
  height: 4rem;
}

.organic-card h3 {
  font-size: 1.375rem;
  line-height: 1.2;
}

.organic-card p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-700);
}

@media (min-width: 48rem) {
  .spec-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 64rem) {
  .specs__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.75rem;
  }

  .specs__head p {
    margin-top: 0;
  }

  .spec-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .spec-card h3 {
    padding: 0.9375rem 1.5rem;
    font-size: 1.4375rem;
  }

  .spec-card dl > div {
    grid-template-columns: 38% 1fr;
  }

  .spec-card dt {
    padding: 0.9375rem 1.5rem;
    font-size: 0.75rem;
  }

  .spec-card dd {
    padding: 0.9375rem 1.5rem;
    font-size: 1.03125rem;
  }

  .spec-grid--3 .spec-card dt,
  .spec-grid--3 .spec-card dd {
    padding-inline: 1.375rem;
  }
}

/* ---------- Product page: applications by industry ---------- */

.industries {
  background: var(--cream-200);
  border-block: 1px solid var(--line);
}

.industries h2 {
  margin-bottom: 1.125rem;
}

.industry-grid {
  display: grid;
  gap: 0.75rem;
}

.industry-card {
  padding: 1.125rem;
  background: var(--cream-50);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold-500);
}

.industry-card h3 {
  font-size: 1.375rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4375rem;
  margin-top: 0.75rem;
}

.chips li {
  padding: 0.3125rem 0.625rem;
  background: var(--cream-100);
  border: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--ink-700);
}

@media (min-width: 48rem) {
  .industry-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.625rem;
  }
}

@media (min-width: 64rem) {
  .industries h2 {
    margin-bottom: 1.875rem;
  }

  .industry-card {
    padding: 1.75rem;
  }

  .industry-card h3 {
    font-size: 1.625rem;
  }

  .chips {
    gap: 0.5rem;
    margin-top: 1rem;
  }

  .chips li {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
  }
}

/* ---------- Product page: documentation and supply ---------- */

.docs {
  color: var(--paper);
}

.docs__inner {
  display: grid;
  grid-template-areas: "intro" "list" "cta";
  gap: 1rem;
}

.docs__intro {
  grid-area: intro;
}

.docs h2 {
  color: inherit;
}

.docs__intro p {
  max-width: 26em;
  margin-top: 0.75rem;
  font-size: clamp(0.9375rem, 0.88rem + 0.3vw, 1.0625rem);
  line-height: 1.65;
  color: var(--sage-200);
}

.docs .hex-list {
  grid-area: list;
}

.docs__cta {
  grid-area: cta;
  margin-top: 0.25rem;
}

@media (min-width: 40rem) {
  .docs__cta {
    justify-self: start;
  }
}

@media (min-width: 64rem) {
  .docs__inner {
    grid-template-columns: 1fr 1.25fr;
    grid-template-rows: auto 1fr;
    grid-template-areas: "intro list" "cta list";
    gap: 1.625rem 4.375rem;
  }

  .docs__intro p {
    margin-top: 1rem;
  }

  .docs__cta {
    align-self: start;
    margin-top: 0;
  }
}
