/* HeatSafe — secondary pages */

.page-header {
  position: sticky;
  top: 0;
  background: #f7f7f5;
  z-index: 100;
  margin-bottom: 0;
  padding: 14px 0;
  border-bottom: 1px solid #e5e5e5;
}

[id] {
  scroll-margin-top: 65px;
}

.back-link {
  font-size: 14px;
  color: #005599;
  text-decoration: none;
  font-weight: 500;
}

.back-link:hover {
  text-decoration: underline;
}

.page-content {
  max-width: 600px;
}

.page-content h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
  color: #1a1a1a;
}

.page-content h2 {
  font-size: 17px;
  font-weight: 700;
  margin-top: 28px;
  margin-bottom: 10px;
  color: #1a1a1a;
}

.page-content p {
  font-size: 15px;
  color: #333;
  line-height: 1.7;
  margin-bottom: 12px;
}

.page-content ul {
  margin: 0 0 16px 20px;
}

.page-content ul li {
  font-size: 15px;
  color: #333;
  line-height: 1.7;
  margin-bottom: 6px;
}

.page-content a {
  color: #0077cc;
  text-decoration: none;
}

.page-content a:hover {
  text-decoration: underline;
}

.intro {
  font-size: 16px;
  color: #444;
  font-style: italic;
  margin-bottom: 24px;
  padding: 12px 16px;
  background: #f7f7f5;
  border-left: 3px solid #1a1a1a;
  border-radius: 0 8px 8px 0;
}

.caveat {
  background: #fff8e1;
  border-left: 4px solid #f57f17;
  padding: 12px 16px;
  border-radius: 4px;
  margin: 12px 0;
  font-size: 14px;
  line-height: 1.5;
}

.last-updated {
  margin-top: 32px;
  color: #999;
  font-size: 13px;
  font-style: italic;
}

section {
  margin-bottom: 8px;
}

.faq-toc {
  margin: 24px 0 32px 0;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.03);
  border-left: 3px solid #2e7d32;
  border-radius: 4px;
}

.faq-toc ul {
  margin: 0;
  padding-left: 20px;
}

.faq-toc li {
  margin: 6px 0;
  line-height: 1.4;
}

.faq-toc a {
  color: #444;
  text-decoration: none;
  border-bottom: 1px dotted #888;
}

.faq-toc a:hover {
  color: #1a1a1a;
  border-bottom-color: #444;
}

.back-to-toc {
  margin-top: 16px;
  font-size: 13px;
}

.back-to-toc a {
  color: #888;
  text-decoration: none;
  border-bottom: 1px dotted #aaa;
}

.back-to-toc a:hover {
  color: #444;
  border-bottom-color: #666;
}

.humidity-table {
  margin: 16px 0;
  border-collapse: collapse;
  width: 100%;
  max-width: 520px;
  font-size: 14px;
}
.humidity-table th,
.humidity-table td {
  border: 1px solid rgba(0, 0, 0, 0.15);
  padding: 8px 12px;
  text-align: left;
}
.humidity-table thead th {
  background: rgba(0, 0, 0, 0.04);
  font-weight: 600;
}
.humidity-table tbody td:first-child {
  font-weight: 600;
}

.emergency-callout {
  background: #fff5f5;
  border-left: 4px solid #c62828;
  padding: 12px 16px;
  margin: 14px 0;
  font-size: 1.05em;
  border-radius: 4px;
}

.tier-manageable { color: #2e7d32; }
.tier-caution    { color: #f57f17; }
.tier-danger     { color: #e64a19; }
.tier-critical   { color: #b71c1c; }

/* Feedback form */
.feedback-form { max-width: 540px; }
.feedback-form .form-row { margin-bottom: 14px; }
.feedback-form label { display: block; font-weight: 600; margin-bottom: 6px; }
.feedback-form .optional { font-weight: 400; color: #888; font-size: 0.9em; }
.feedback-form .required { color: #c62828; }
.feedback-form input[type="text"],
.feedback-form input[type="email"],
.feedback-form select,
.feedback-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d4d4d4;
  border-radius: 6px;
  font: inherit;
  background: #fff;
  color: #1a1a1a;
  box-sizing: border-box;
}
.feedback-form textarea { resize: vertical; min-height: 90px; }
@media (min-width: 600px) {
  .feedback-form textarea { min-height: 120px; }
}
.feedback-form input:focus,
.feedback-form select:focus,
.feedback-form textarea:focus {
  outline: 2px solid #2e7d32;
  border-color: #2e7d32;
}
.feedback-form .hp-field { position: absolute; left: -9999px; }
.form-submit {
  background: #2e7d32; color: #fff; border: 0;
  padding: 12px 22px; border-radius: 6px;
  font-weight: 600; cursor: pointer;
}
.form-submit:hover { background: #256528; }
.form-status { margin-top: 10px; min-height: 1.2em; }
.form-status.success { color: #2e7d32; font-weight: 600; }
.form-status.error { color: #c62828; }

.page-content h1 + .intro {
  margin-top: 0.4em;
}

/* Methodology — citations and table */
.citation {
  margin: 14px 0;
  padding: 12px 16px;
  border-left: 3px solid #888;
  background: #fafafa;
  font-size: 0.95em;
  line-height: 1.55;
}
.citation a { color: #555; }
.citation a:hover { color: #1a1a1a; }

.threshold-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 0.95em;
}
.threshold-table th,
.threshold-table td {
  border: 1px solid #e0e0e0;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.threshold-table thead th {
  background: #f5f5f5;
  font-weight: 600;
}

/* Humidity table title center-align */
.humidity-table th,
.humidity-table td {
  text-align: center;
}
.humidity-table thead th:first-child,
.humidity-table tbody td:first-child {
  text-align: left;
}