/* ============================================================
   Pipeline Temperature Decay — page-specific styles
   Builds on /tools/wall-thickness/css/styles.css
   ============================================================ */

/* ── Route section cards ─────────────────────────────────────── */
.section-item {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 10px;
  background: var(--bg);
}
.section-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.section-remove {
  background: none;
  border: none;
  padding: 2px 4px;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: #b03030;
  cursor: pointer;
}
.section-remove:hover { text-decoration: underline; }
.section-item .form-group { margin-bottom: 8px; }
.section-k-out { font-size: 11.5px; font-weight: 600; color: var(--blue); min-height: 0; }
.section-k-out:empty { display: none; }
.btn-add-section { width: 100%; justify-content: center; margin-bottom: 8px; }

/* ── Profile chart ───────────────────────────────────────────── */
.chart-wrap { position: relative; margin-bottom: 12px; }
#profileChart { display: block; width: 100%; height: auto; touch-action: none; }

.pc-grid     { stroke: #e6eaea; stroke-width: 1; }
.pc-axis     { stroke: #9aa9ad; stroke-width: 1; }
.pc-boundary { stroke: #c3cdcf; stroke-width: 1; stroke-dasharray: 3 3; }
.pc-ground   { stroke: #7d8f95; stroke-width: 1.5; stroke-dasharray: 6 4; }
.pc-line     { fill: none; stroke: var(--blue, #3F8E9F); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.pc-dot,
.pc-hover    { fill: var(--blue, #3F8E9F); stroke: #fff; stroke-width: 2; }
.pc-cross    { stroke: var(--text-muted, #4D6A75); stroke-width: 1; }
.pc-hit      { fill: transparent; cursor: crosshair; }

.pc-tick, .pc-title, .pc-seclabel, .pc-ref, .pc-label {
  font-family: inherit;
  fill: var(--text-muted, #4D6A75);
}
.pc-tick     { font-size: 11px; }
.pc-title    { font-size: 11.5px; font-weight: 600; }
.pc-seclabel { font-size: 10.5px; font-weight: 600; }
.pc-ref      { font-size: 11px; }
.pc-label    { font-size: 12px; font-weight: 700; fill: var(--text, #1C3B48); }

.chart-tip {
  position: absolute;
  pointer-events: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: var(--shadow);
  padding: 6px 10px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 5;
}
.chart-tip[hidden] { display: none; }
.chart-tip strong { display: block; font-size: 14px; color: var(--navy); }
.chart-tip span   { color: var(--text-muted); }

/* ── Chainage lookup ─────────────────────────────────────────── */
.chainage-lookup { margin-bottom: 14px; }
.chainage-lookup-row { display: flex; align-items: center; gap: 12px; }
.chainage-lookup-row input { max-width: 180px; }
.lookup-out { font-size: 15px; font-weight: 700; color: var(--navy); }
.lookup-out.is-error { font-size: 12px; font-weight: 500; color: #b03030; }

/* ── Method & limitations list ── */
.results-section h3.method-notes-heading { margin-top: 24px; }
.method-notes { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.55; color: var(--text-muted); }
.method-notes li + li { margin-top: 6px; }
.method-notes strong { color: var(--text); }

/* ── Print: chart colours without CSS variables from the screen sheet ── */
@media print {
  .method-notes { padding-left: 12pt; font-size: 8pt; line-height: 1.4; color: #333; }
  .method-notes li + li { margin-top: 2pt; }
  .method-notes strong { color: #1a3c50; }
  .pc-print .pc-line { stroke: #1a3c50; }
  .pc-print .pc-dot  { fill: #1a3c50; }
  .pc-print text     { font-family: Arial, Helvetica, sans-serif; }
}
