/* ══════════════════════════════════════════
   REFERENCE — Process parameters, heat colour, comparisons
══════════════════════════════════════════ */

/* Page layout */
.page { max-width: 1200px; margin: 0 auto; padding: 0 48px 80px; }

/* Hero strip */
.hero-strip {
  border-bottom: 1px solid var(--rule);
  padding: 56px 0 48px;
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end;
}
.hero-eyebrow {
  font-family: var(--mono); font-size: 10px; color: var(--accent);
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px;
}
.hero-strip h1 {
  font-size: clamp(28px, 4vw, 42px); font-weight: 300;
  color: var(--ink); line-height: 1.15; letter-spacing: -0.02em;
}
.hero-strip h1 strong { font-weight: 700; }
.hero-strip p {
  font-size: 14px; color: var(--ink2); line-height: 1.7;
  margin-top: 12px; max-width: 520px;
}
.section-nav { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.section-pill {
  font-family: var(--mono); font-size: 11px; color: var(--ink2);
  border: 1px solid var(--rule2); padding: 6px 16px; border-radius: 2px;
  text-decoration: none; letter-spacing: 0.04em;
  transition: all 0.15s; text-align: right;
}
.section-pill:hover { color: var(--ink); border-color: var(--ink2); }

/* ══ SECTION 1 — HEAT COLOUR TEMPERATURE CHART ══ */
.temp-tool { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }

.temp-bar-label-row {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 10px; color: var(--ink3);
  margin-bottom: 10px; letter-spacing: 0.06em;
}
.temp-bar {
  position: relative; height: 64px; border-radius: 3px; overflow: hidden;
  background: linear-gradient(90deg,
    #0a0a0a 0%, #1a0800 4%, #3d0c00 8%, #6b1500 12%, #9e2200 17%,
    #c73800 22%, #e05a00 27%, #f07800 32%, #f5960a 37%, #f7aa20 42%,
    #f8bc3a 47%, #f9cc55 52%, #fad970 57%, #fce490 62%, #fdf0b8 70%,
    #fef8e0 80%, #ffffff 90%, #e8f0ff 100%
  );
  cursor: crosshair;
}
.temp-bar-indicator {
  position: absolute; top: 0; bottom: 0; width: 2px;
  background: white; box-shadow: 0 0 8px rgba(255,255,255,0.8);
  pointer-events: none; transition: left 0.05s;
}
.temp-bar-ticks { position: relative; height: 24px; margin-top: 2px; }
.temp-tick {
  position: absolute; transform: translateX(-50%);
  font-family: var(--mono); font-size: 9px; color: var(--ink3);
  letter-spacing: 0.04em;
}
.temp-tick::before {
  content: ''; position: absolute; top: -6px; left: 50%;
  width: 1px; height: 5px; background: var(--rule2);
}

/* Colour bands reference table */
.color-bands { margin-top: 28px; }
.color-bands-label {
  font-family: var(--mono); font-size: 10px; color: var(--ink3);
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px;
  padding-bottom: 8px; border-bottom: 1px solid var(--rule);
}
.band-row {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 0; border-bottom: 1px solid var(--rule);
  cursor: pointer; transition: background 0.1s; border-radius: 2px;
}
.band-row:hover { background: var(--bg2); padding-left: 8px; }
.band-row:last-child { border-bottom: none; }
.band-swatch {
  width: 28px; height: 20px; border-radius: 2px; flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.08);
}
.band-temp { font-family: var(--mono); font-size: 12px; color: var(--ink); font-weight: 500; min-width: 100px; }
.band-color-name { font-size: 12px; color: var(--ink2); flex: 1; }
.band-uses { font-family: var(--mono); font-size: 10px; color: var(--ink3); text-align: right; }

/* Temp readout panel */
.temp-readout {
  background: var(--bg2); border: 1px solid var(--rule);
  border-radius: 3px; padding: 24px; position: sticky; top: 72px;
}
.readout-label { font-family: var(--mono); font-size: 10px; color: var(--ink3); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; }
.readout-swatch {
  width: 100%; height: 80px; border-radius: 3px; margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,0.06);
  transition: background-color 0.15s;
}
.readout-temp {
  font-family: var(--mono); font-size: 36px; font-weight: 500;
  color: var(--ink); line-height: 1; margin-bottom: 4px;
}
.readout-temp span { font-size: 18px; color: var(--ink3); }
.readout-color { font-size: 14px; color: var(--ink2); margin-bottom: 20px; }
.readout-divider { height: 1px; background: var(--rule); margin: 16px 0; }
.readout-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 6px 0; border-bottom: 1px solid var(--rule); font-size: 12px;
}
.readout-row:last-child { border-bottom: none; }
.readout-key { color: var(--ink3); font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; }
.readout-val { color: var(--ink); font-family: var(--mono); font-weight: 500; font-size: 12px; }

/* Temp input slider */
.temp-input-row {
  display: flex; gap: 10px; align-items: center; margin-top: 16px;
}
.temp-input-row label {
  font-family: var(--mono); font-size: 10px; color: var(--ink3);
  text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap;
}
.temp-slider {
  flex: 1; -webkit-appearance: none; appearance: none;
  height: 4px; background: var(--rule2); border-radius: 2px; outline: none;
  cursor: pointer;
}
.temp-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px;
  border-radius: 50%; background: var(--accent); cursor: pointer;
  border: 2px solid var(--bg);
}
.temp-number {
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  color: var(--ink); background: var(--bg3); border: 1px solid var(--rule2);
  padding: 4px 10px; border-radius: 2px; width: 72px; text-align: right;
}
.temp-number:focus { outline: none; border-color: var(--accent); }

/* ══ SECTION 2 — PROCESS PARAMETER CHEAT SHEET ══ */
.cheat-filter-row {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px;
}

.cheat-table { width: 100%; border-collapse: collapse; }
.cheat-table th {
  font-family: var(--mono); font-size: 10px; color: var(--ink3);
  letter-spacing: 0.08em; text-transform: uppercase; text-align: left;
  padding: 10px 14px; border-bottom: 1px solid var(--rule2);
  background: var(--bg2); font-weight: 400;
}
.cheat-table td {
  padding: 12px 14px; border-bottom: 1px solid var(--rule);
  font-size: 12.5px; vertical-align: top;
}
.cheat-table tr:last-child td { border-bottom: none; }
.cheat-table tr { transition: background 0.1s; }
.cheat-table tr:hover td { background: var(--bg2); }
.cheat-table tr.hidden { display: none; }

.td-process { font-weight: 700; color: var(--ink); font-size: 13px; }
.td-mat { color: var(--ink2); font-size: 12px; }
.td-freq { font-family: var(--mono); color: #4a9eff; font-weight: 500; }
.td-power { font-family: var(--mono); color: #f5a623; font-weight: 500; }
.td-temp { font-family: var(--mono); color: #e05a00; }
.td-time { font-family: var(--mono); color: var(--ink2); }
.td-note { color: var(--ink3); font-size: 11px; line-height: 1.5; }

/* ══ SECTION 3 — INDUCTION VS OTHER HEATING ══ */
.comp-filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }

.comp-table { width: 100%; border-collapse: collapse; }
.comp-table th {
  font-family: var(--mono); font-size: 10px; color: var(--ink3);
  letter-spacing: 0.08em; text-transform: uppercase; text-align: left;
  padding: 10px 14px; border-bottom: 1px solid var(--rule2);
  background: var(--bg2); font-weight: 400;
}
.comp-table th.highlight { color: #4a9eff; }
.comp-table td {
  padding: 11px 14px; border-bottom: 1px solid var(--rule);
  font-size: 12.5px; vertical-align: middle;
}
.comp-table tr:last-child td { border-bottom: none; }
.comp-table tr:hover td { background: var(--bg2); }

.comp-criterion { font-weight: 700; color: var(--ink); font-size: 13px; }
.comp-sub { font-size: 11px; color: var(--ink3); margin-top: 2px; }

.rating { display: flex; gap: 3px; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-fill { background: #4a9eff; }
.dot-empty { background: var(--rule2); }
.dot-fill-orange { background: #f5a623; }
.dot-fill-green  { background: #50c878; }
.dot-fill-red    { background: #e05a00; }

.score-label { font-family: var(--mono); font-size: 10px; color: var(--ink3); margin-top: 3px; }
.comp-table tr.highlighted td { background: rgba(74,158,255,0.05); }

.comp-disclaimer {
  margin-top: 16px; font-family: var(--mono); font-size: 10px;
  color: var(--ink3); line-height: 1.6;
}

/* ══ SECTION 4 — EFFICIENCY & POWER FACTOR CHART ══ */
.eff-filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }

.eff-tool { display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: start; }
.eff-chart-col { min-width: 0; }

.eff-canvas-wrap {
  background: #ffffff; border: 1px solid var(--rule);
  border-radius: 3px; overflow: hidden; cursor: crosshair;
}
.eff-canvas-wrap canvas { display: block; width: 100%; }

.eff-legend {
  display: flex; gap: 20px; flex-wrap: wrap;
  margin-top: 12px; font-family: var(--mono); font-size: 10px; color: var(--ink3);
  letter-spacing: 0.06em;
}
.eff-legend-item { display: flex; align-items: center; gap: 6px; }
.eff-legend-swatch { width: 14px; height: 3px; border-radius: 1px; flex-shrink: 0; }
.eff-legend-marker-item .eff-legend-swatch { width: 8px; height: 8px; }

.eff-readout .readout-temp { font-size: 32px; }

.eff-interpretation {
  font-size: 12px; color: var(--ink2); line-height: 1.65;
  margin-top: 4px;
}

/* Reverse lookup */
.eff-lookup {
  margin-top: 32px; padding: 24px; background: var(--bg2);
  border: 1px solid var(--rule); border-radius: 3px;
}
.eff-lookup-label {
  font-family: var(--mono); font-size: 10px; color: var(--ink3);
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px;
  padding-bottom: 10px; border-bottom: 1px solid var(--rule);
}
.eff-lookup-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 12px;
  align-items: end;
}
.eff-lookup-field label {
  display: block; font-family: var(--mono); font-size: 10px;
  color: var(--ink3); letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 6px;
}
.eff-lookup-field select,
.eff-lookup-field input[type="number"] {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  color: var(--ink); background: var(--white); border: 1px solid var(--rule2);
  padding: 7px 10px; border-radius: 2px; width: 100%;
}
.eff-lookup-field select:focus,
.eff-lookup-field input:focus { outline: none; border-color: var(--accent); }
.eff-lookup-input-row {
  display: flex; gap: 6px; align-items: center;
}
.eff-lookup-input-row span {
  font-family: var(--mono); font-size: 10px; color: var(--ink3); white-space: nowrap;
}
.eff-lookup-input-row input { flex: 1; }
.eff-lookup-result {
  margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--rule);
}

/* ══ REFERENCE LANDING PAGE ══ */
.ref-landing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px; margin-top: 32px;
}
.ref-landing-card {
  display: block; text-decoration: none;
  padding: 32px; border: 1px solid var(--rule);
  border-radius: 3px; background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ref-landing-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(0,71,255,0.08);
}
.ref-landing-num {
  font-family: var(--mono); font-size: 11px; color: var(--accent);
  letter-spacing: 0.08em; margin-bottom: 12px;
}
.ref-landing-card h3 {
  font-size: 18px; font-weight: 700; color: var(--ink);
  margin-bottom: 10px; line-height: 1.3;
}
.ref-landing-card p {
  font-size: 13px; color: var(--ink2); line-height: 1.7;
}
.ref-landing-cta {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--rule);
  font-family: var(--mono); font-size: 11px; color: var(--accent);
  letter-spacing: 0.04em;
}
.ref-landing-arrow { font-size: 14px; }

/* Responsive */
@media (max-width: 900px) {
  .page { padding: 0 24px 60px; }
  .temp-tool { grid-template-columns: 1fr; }
  .eff-tool { grid-template-columns: 1fr; }
  .temp-readout { position: static; }
  .eff-readout { position: static; }
  .hero-strip { grid-template-columns: 1fr; }
  .section-nav { display: none; }
  .eff-lookup-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .eff-lookup-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .cheat-table th:nth-child(6), .cheat-table td:nth-child(6) { display: none; }
}
