/* Product grades, comparison and technical data. */

/* Thermal comparison */
.comparison-section { background: #faf9f5; }
.comparison-intro {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 60px;
  align-items: center;
  margin: 14px 0 38px;
}
.range-feature { padding: 28px 30px; background: #f0ede2; border-left: 3px solid var(--orange); }
.range-feature .eyebrow { display: block; font-size: 11px; letter-spacing: 1.5px; }
.range-feature > p { margin: 16px 0 10px; font-size: clamp(45px, 4.7vw, 67px); line-height: 1.1; letter-spacing: -3px; white-space: nowrap; }
.range-feature > p > span { font-size: 24px; margin-left: 7px; letter-spacing: -.6px; }
.range-feature > span { font-size: 11px; color: #5b6c62; }
.comparison-intro h3 { font-size: 21px; letter-spacing: -.5px; font-weight: 500; }
.comparison-intro > div > p:not(:first-child) { margin-top: 15px; }
.comparison-intro > div:not(.range-feature) > p { font-size: 14px; color: #5d6f65; line-height: 1.85; }
.thermal-comparison-figure {
  --label-width: clamp(12rem, 23vw, 17rem);
  --chart-gap: 22px;
  --water: #4c7f78;
  --carbon: #d48936;
  --processing: #dee7dd;
  margin: 0;
  padding: clamp(16px, 3vw, 36px);
  background: #f4f3ec;
  border: 1px solid var(--line);
}
.thermal-comparison-figure h3 { font-size: clamp(1.25rem, 2.3vw, 1.75rem); font-weight: 550; }
.thermal-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 12px 0 20px; }
.thermal-legend > span { display: inline-flex; align-items: center; gap: 7px; font-size: .85rem; }
.thermal-legend i { width: 16px; height: 9px; border-radius: 9px; }
.processing-key { background: var(--processing); border: 1px solid #9eafa1; }
.water-key { background: var(--water); }
.carbon-key { background: var(--carbon); }
.mixed-key { background: linear-gradient(90deg, var(--water) 15%, var(--carbon) 85%); }
.thermal-rows { list-style: none; margin: 0; padding: 0; }
.thermal-row { display: grid; grid-template-columns: var(--label-width) minmax(0, 1fr); gap: var(--chart-gap); }
.thermal-label { padding: 11px 0; }
.thermal-label strong { display: block; font-size: .95rem; font-weight: 600; }
.thermal-label > span { display: block; margin-top: 3px; font-size: .85rem; color: #4c6358; }
.thermal-row-huntite .thermal-label > span { font-weight: 600; color: #873f17; }
.thermal-track {
  position: relative;
  min-height: 20px;
  background:
    repeating-linear-gradient(90deg, #103b3d25 0 1px, transparent 1px calc(100% / 7)),
    linear-gradient(90deg, transparent calc(50% / 7), var(--processing) calc(50% / 7) calc(190% / 7), transparent calc(190% / 7));
  border-right: 1px solid #103b3d25;
}
.thermal-bar {
  position: absolute;
  top: 50%;
  left: calc((var(--first) - 100) * 100% / 700);
  width: calc((var(--last) - var(--first)) * 100% / 700);
  height: 13px;
  transform: translateY(-50%);
  border-radius: 20px;
}
.thermal-row-huntite .thermal-bar { height: 18px; }
.thermal-axis { position: relative; margin: 7px 0 0 calc(var(--label-width) + var(--chart-gap)); height: 1.35rem; font-size: .78rem; color: #4c6358; }
.thermal-axis > span { position: absolute; white-space: nowrap; }
.thermal-axis > :nth-child(2) { left: calc(200% / 7); transform: translateX(-50%); }
.thermal-axis > :nth-child(3) { left: calc(400% / 7); transform: translateX(-50%); }
.thermal-axis > :nth-child(4) { left: calc(600% / 7); transform: translateX(-50%); }
.thermal-axis > :last-child { right: 0; }
.thermal-comparison-figure figcaption { margin-top: 12px; color: #4c6358; font-size: .85rem; line-height: 1.6; }

/* Application details */
.other-applications.expanded-applications { grid-template-columns: 1fr 1fr; gap: 0 28px; }
.expanded-applications > div, .expanded-applications > div + div {
  align-items: flex-start;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 23px 0;
  gap: 18px;
}
.expanded-applications .science-icon { flex: 0 0 30px; margin-top: 3px; }
.expanded-applications h3 { font-size: 14px; font-weight: 600; }
.expanded-applications p { font-size: 12px; color: #5e7066; line-height: 1.8; margin-top: 8px; max-width: 430px; }
.status-label { display: inline-block; margin-left: 5px; padding: 3px 5px; font-size: 7px; color: #5d513b; border: 1px solid #bdb49d; letter-spacing: .6px; vertical-align: middle; }

/* Technical tables */
.data-badge { display: inline-block; color: #224b3e; background: #e1e9dc; padding: 2px 5px; font-size: 10px; line-height: 1.6; font-weight: 650; letter-spacing: .4px; margin-right: 4px; }
.sample-detail { font-size: .85rem; line-height: 1.6; color: #4c6358; margin-top: 17px; }
.technical-grid, .analysis-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.analysis-grid { display: grid; gap: 60px; margin-top: 45px; padding-top: 35px; border-top: 1px solid #bdc9bd; }
.technical-section table { margin-top: 16px; font-size: .9rem; }
.technical-section thead th { font-size: .75rem; }
.technical-section table th > span { font-size: .8rem; color: #4c6358; font-weight: 400; margin-left: 7px; }
.technical-section td { white-space: nowrap; }
.technical-section .composition-panel tbody td:nth-child(2) { font-size: inherit; }
.oxide-panel .highlight-row { background: #e5e9df; }
.oxide-panel .highlight-row th { padding-left: 10px; }
.oxide-panel .highlight-row td { font-weight: 650; padding-right: 10px; }
.trace-results { border-bottom: 1px solid #d8dfd5; margin-top: 12px; }
.trace-results summary { padding: 12px 0; font-size: .875rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.trace-results summary::-webkit-details-marker { display: none; }
.trace-results summary > span { transition: transform .2s; }
.trace-results[open] summary > span { transform: rotate(45deg); }
.technical-section .trace-results table { margin: 0 0 16px; }
.trace-results th, .trace-results td { padding-top: 10px; padding-bottom: 10px; }
.technical-document-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 32px; margin-top: 32px; }
.technical-document-actions .text-link { font-size: .875rem; }

/* Grades and supply */
.grades-section { background: #faf9f5; }
.grade-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grade-card {
  --grade-accent: #315d58;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--grade-accent);
  padding: clamp(22px, 3vw, 40px);
}
.grade-card-purified { --grade-accent: #b56329; }
.grade-card .eyebrow { display: block; color: var(--grade-accent); font-size: .875rem; margin-bottom: 14px; }
.grade-card h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 550; letter-spacing: -.025em; }
.grade-card > p:not(.eyebrow, .grade-value) { max-width: 48ch; font-size: 1rem; line-height: 1.65; }
.grade-value { color: var(--ink); font-size: clamp(3rem, 6vw, 5.15rem); font-weight: 450; line-height: 1; margin: 24px 0 8px; letter-spacing: -.055em; }
.grade-value > span { margin-left: .12em; font-size: .45em; color: var(--grade-accent); }
.grade-basis { color: #4c6358; margin-bottom: 18px; }
.grade-details dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 20px; padding: 0 24px; background: #eeeee6; }
.grade-details dl > div { padding: 18px 0; }
.grade-details dl > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.grade-details dt { color: #4c6358; font-size: .875rem; }
.grade-details dd { margin: 4px 0 0; font-weight: 600; }
.grade-details > p { margin-top: 16px; font-size: .9rem; line-height: 1.65; }
.grade-details a { text-decoration: underline; text-underline-offset: 3px; }

.supply-section { background: #fff; }
.supply-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.supply-grid > article { padding: 26px 30px 0 0; border-top: 1px solid #a4b5a9; }
.supply-grid > article + article { padding-left: 30px; border-left: 1px solid #d1dbd0; }
.supply-grid h3 { font-size: 1.35rem; font-weight: 550; margin-bottom: 12px; }
.supply-grid p { font-size: 1rem; line-height: 1.65; color: #4c6358; }
.supply-grid strong { color: var(--ink); font-weight: 600; }
.supply-grid .text-link { font-size: .875rem; margin-top: 16px; }

@media (max-width: 1150px) {
  .desktop-nav { gap: 18px; }
  .comparison-intro, .analysis-grid { gap: 35px; }
  .supply-grid > article { padding-right: 24px; }
  .supply-grid > article + article { padding-left: 24px; }
}
@media (max-width: 1000px) {
  .comparison-intro { gap: 30px; }
  .range-feature { padding: 24px; }
  .range-feature > p { font-size: 43px; letter-spacing: -2px; }
  .range-feature > p > span { font-size: 20px; }
}
@media (max-width: 850px) {
  .analysis-grid { gap: 30px; }
  .technical-section table th > span { display: block; margin-left: 0; }
  .supply-grid { grid-template-columns: 1fr; }
  .supply-grid > article, .supply-grid > article + article { padding: 20px 0; border-left: 0; }
  .supply-grid > article:last-child { padding-bottom: 0; }
}
@media (max-width: 650px) {
  .thermal-row { grid-template-columns: 1fr; gap: 0; }
  .thermal-label { padding: 12px 0 5px; }
  .thermal-axis { margin-left: 0; }
  .thermal-axis > :nth-child(4) { display: none; }
}
@media (max-width: 600px) {
  .comparison-intro, .grade-grid, .technical-grid, .analysis-grid { grid-template-columns: 1fr; }
  .comparison-intro { gap: 25px; }
  .range-feature { padding: 25px; }
  .range-feature > p { font-size: 50px; }
  .range-feature > p > span { font-size: 21px; }
  .other-applications.expanded-applications { grid-template-columns: 1fr; gap: 0; }
  .expanded-applications p { font-size: 13px; }
  .analysis-grid { gap: 35px; margin-top: 35px; padding-top: 30px; }
  .grade-details dl { grid-template-columns: 1fr; padding: 0 18px; }
  .grade-details dl > div { padding: 12px 0; }
  .grade-details dl > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}
@media print {
  .comparison-intro, .analysis-grid { gap: 25px; }
  .thermal-comparison-figure, .grade-card { break-inside: avoid; }
  .thermal-comparison-figure { print-color-adjust: exact; }
}
