/* TORMIN Tool-to-Product & RFQ Bridge + Reference Tables + Blog CTAs (Aligned with design.md) */

/* --- 2-Column Workspace Layout for ATEX Zone <-> NEC Class/Division Converter --- */
.tormin-specs.calculator-detail [data-zd-form] .zd-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 1001px) {
  .tormin-specs.calculator-detail [data-zd-form] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px 32px;
    align-items: start;
  }
  .tormin-specs.calculator-detail [data-zd-form] > .calc-toolbar {
    grid-column: 1 / -1;
  }
  .tormin-specs.calculator-detail [data-zd-form] > .zd-fields {
    grid-column: 1;
    min-width: 0;
  }
  .tormin-specs.calculator-detail [data-zd-form] > .quantity-results {
    grid-column: 2;
    min-width: 0;
  }
  .tormin-specs.calculator-detail [data-zd-form] > .tormin-tool-rec,
  .tormin-specs.calculator-detail [data-quantity-form] > .tormin-tool-rec {
    grid-column: 1 / -1;
    min-width: 0;
  }
}

/* --- Full-Width Dynamic Product Recommendation Band (Sharp 0px Architectural Style) --- */
.tormin-tool-rec {
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid #d8dee4;
  background: transparent;
  border-radius: 0;
}
#tormin-gas-rec.tormin-tool-rec {
  margin-top: 20px;
}
.tormin-tool-rec__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}
.tormin-tool-rec__title {
  margin: 0 !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  color: #202830 !important;
}
.tormin-tool-rec__badge {
  font-size: 12px;
  font-weight: 600;
  color: #015198;
  background: #f3f4f5;
  border: 1px solid #d8dee4;
  padding: 4px 10px;
  border-radius: 0;
  letter-spacing: 0.01em;
}
.tormin-tool-rec__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
@media (max-width: 900px) {
  .tormin-tool-rec__grid {
    grid-template-columns: 1fr;
  }
}
.tormin-tool-rec__card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #d8dee4;
  border-radius: 0;
  padding: 16px 18px;
  text-decoration: none !important;
  color: #46515c;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.tormin-tool-rec__card:hover {
  border-color: #015198;
  background: #f8fbfe;
}
.tormin-tool-rec__sku {
  font-size: 12px;
  font-weight: 700;
  color: #015198;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.tormin-tool-rec__name {
  font-size: 15px;
  font-weight: 600;
  color: #202830;
  line-height: 1.35;
  margin-bottom: 8px;
}
.tormin-tool-rec__meta {
  font-size: 13px;
  color: #687482;
  line-height: 1.5;
}
.tormin-tool-rec__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}
/* Primary Pill CTA inherits 100% from color-system.css official homepage button system */
.tormin-rfq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.tormin-rfq-catlink {
  font-size: 14px;
  font-weight: 600;
  color: #015198;
  text-decoration: none;
}
.tormin-rfq-catlink:hover {
  text-decoration: underline;
}

/* --- Static SEO Reference Tables (Borderless Architectural Reading Style, Immune to .tormin-specs td 37.5% Leak) --- */
.tormin-static-ref,
.tormin-specs .tormin-static-ref {
  margin-top: 40px;
  padding: 32px 0 0 0 !important;
  background: transparent;
  border: 0;
  border-top: 1px solid #d8dee4;
  border-radius: 0;
}
.tormin-static-ref h2,
.tormin-specs .tormin-static-ref h2 {
  margin: 0 0 12px 0 !important;
  font-size: 24px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  color: #202830 !important;
  letter-spacing: -0.01em;
}
.tormin-static-ref > p,
.tormin-specs .tormin-static-ref > p {
  margin: 0 0 20px 0;
  max-width: 78ch;
  font-size: 15px;
  color: #46515c;
  line-height: 1.7;
}
.tormin-static-ref .table-wrap {
  overflow-x: auto;
  border: 1px solid #d8dee4;
  background: #ffffff;
}
.tormin-static-ref table,
.tormin-specs .tormin-static-ref table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  table-layout: auto;
}
.tormin-static-ref table th,
.tormin-static-ref table td,
.tormin-specs .tormin-static-ref table th,
.tormin-specs .tormin-static-ref table td {
  width: auto !important;
  min-width: 0 !important;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid #e1e6ec;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
  line-height: 1.55;
  color: #46515c;
}
.tormin-static-ref table thead th,
.tormin-specs .tormin-static-ref table thead th {
  background: #f3f4f5;
  color: #202830;
  font-size: 13px;
  font-weight: 600;
  border-bottom: 1px solid #d8dee4;
  white-space: nowrap;
}
.tormin-static-ref table tbody tr:last-child td,
.tormin-specs .tormin-static-ref table tbody tr:last-child td {
  border-bottom: 0;
}
.tormin-static-ref table tbody tr:nth-child(even) {
  background: #fafbfc;
}
.tormin-static-ref table tbody tr:hover {
  background: #f8fbfe;
}

/* --- Blog-to-Tool Callout Strip (Architectural 0px Sharp + Top Blue Hairline + Pill CTA) --- */
.tormin-tool-cta {
  margin: 28px 0;
  padding: 20px 24px;
  background: #f5f7fa;
  border: 1px solid #d8dee4;
  border-top: 2px solid #015198;
  border-radius: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.tormin-tool-cta__copy {
  flex: 1 1 320px;
}
.tormin-tool-cta__eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #015198;
  margin-bottom: 6px;
}
.tormin-tool-cta__title {
  margin: 0 0 6px 0 !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  color: #202830 !important;
  line-height: 1.3;
}
.tormin-tool-cta__desc {
  margin: 0 !important;
  font-size: 14px;
  color: #46515c;
  line-height: 1.55;
}
.tormin-tool-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
