/* ── GAS BLENDING HERO ── */
.gas-blending-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.gas-blending-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../pictures/gas-blending-station.jpeg');
  background-size: cover;
  background-position: center 60%;
  filter: brightness(0.3) saturate(0.6);
  z-index: 0;
}

.gas-blending-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, var(--black) 100%);
}

.gas-blending-hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 2rem;
  max-width: 700px;
}

.gas-blending-hero-content h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
  margin: 0.75rem 0 1.2rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.8);
}

.gas-blending-hero-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: #bbb;
}

/* ── DISCLAIMER ── */
.gas-blending-disclaimer {
  max-width: 860px;
  margin: -3rem auto 0;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.disclaimer-box {
  background: rgba(192, 57, 43, 0.08);
  border: 1px solid rgba(192, 57, 43, 0.3);
  border-radius: 4px;
  padding: 1rem 1.5rem;
  font-size: 0.85rem;
  color: #aaa;
  line-height: 1.6;
}

.disclaimer-box strong {
  color: var(--red);
}

/* ── PAGE BODY ── */
.gas-blending-body {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* ── SECTIONS ── */
.gb-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.gb-section-title {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.25rem;
}

.gb-section h2 {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gb-section p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #aaa;
}

/* ── FORMULA BOX ── */
.gb-formula {
  background: var(--mid);
  border: 1px solid #2a2a2a;
  border-left: 3px solid var(--red);
  border-radius: 2px;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow-x: auto;
}

.gb-formula-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0.25rem 0 0;
}

/* ── DALTON TRIANGLE ── */
.gb-dalton-triangle {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.gb-dalton-legend {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: #aaa;
  line-height: 1.6;
}

.gb-dalton-legend strong {
  color: var(--light);
}

/* KaTeX display blocks */
.math-block {
  color: var(--light);
}

.math-block .katex-display {
  margin: 0;
}

/* KaTeX inline */
.math .katex {
  color: var(--light);
}

/* ── STEPS ── */
.gb-steps {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.gb-step {
  background: var(--mid);
  border: 1px solid #222;
  border-radius: 2px;
  padding: 1rem 1.25rem;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.75rem;
  align-items: start;
}

.gb-step-num {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--red);
  text-transform: uppercase;
  padding-top: 0.1rem;
}

.gb-step-content {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #aaa;
}

.gb-step-content code {
  display: block;
  margin-top: 0.5rem;
  font-family: 'Courier New', monospace;
  color: var(--light);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ── CONVERSION / REFERENCE TABLE ── */
.gb-table-wrap {
  overflow-x: auto;
}

.gb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.gb-table th {
  text-align: left;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  border-bottom: 1px solid #2a2a2a;
  padding: 0.5rem 1rem 0.5rem 0;
}

.gb-table td {
  padding: 0.55rem 1rem 0.55rem 0;
  color: #aaa;
  border-bottom: 1px solid #1a1a1a;
  vertical-align: top;
}

.gb-table td:first-child {
  color: var(--light);
  font-family: 'Courier New', monospace;
  white-space: nowrap;
}

/* ── FILL RATE TABLE ── */
.gb-fill-table td:first-child {
  font-family: inherit;
  font-weight: 600;
  color: var(--light);
}

/* ── VARS LEGEND ── */
.gb-vars {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.5rem;
}

.gb-var {
  display: flex;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: #888;
}

.gb-var code {
  font-family: 'Courier New', monospace;
  color: var(--red);
  white-space: nowrap;
}
