/* 4Core Energy & Maintenance - OHS Program Styles */
/* Color Variables - 4Core Brand Colors */
/* Industrial Heat Meets Forged Steel */
:root {
  /* 5-Color Brand Palette */
  --molten-orange: #f05f00;     /* Primary brand - fire, hot steel, thermal energy */
  --steel-grey: #424648;        /* Primary neutral - industrial equipment, precision */
  --light-steel: #838a8d;       /* Secondary neutral - subtle backgrounds, secondary text */
  --safety-yellow: #FFB700;     /* WorkSafe BC standard - caution, warnings */
  --alert-red: #DC2F02;         /* WorkSafe BC standard - danger, critical */

  /* Semantic Assignments */
  --primary-color: var(--steel-grey);
  --primary-brand: var(--molten-orange);
  --accent-color: var(--molten-orange);
  --warning-bg: var(--safety-yellow);
  --warning-color: var(--alert-red);

  /* Text Colors */
  --text-primary: #1F2937;      /* Near-black for maximum readability */
  --text-secondary: var(--light-steel);

  /* Backgrounds */
  --bg-white: #FFFFFF;
  --bg-light: #F9FAFB;          /* Off-white, subtle */
  --border-color: #E5E7EB;      /* Light neutral border */
  --table-stripe: #F9FAFB;      /* Subtle table striping */
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background: var(--bg-light);
  color: var(--text-primary);
}
.container {
  background: var(--bg-white);
  padding: 40px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.controlled-doc {
  background: var(--safety-yellow);
  border-left: 4px solid var(--alert-red);
  padding: 15px;
  margin: 20px 0;
  font-weight: bold;
  color: var(--text-primary);
}
.header {
  background: var(--steel-grey);
  color: white;
  padding: 20px;
  margin: -40px -40px 30px -40px;
  text-align: center;
}
.header h1 {
  color: var(--molten-orange);
  margin: 10px 0;
}
.header-logo {
  max-width: 250px;
  height: auto;
  margin-bottom: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  margin: 20px 0;
}
th, td {
  border: 1px solid var(--border-color);
  padding: 12px;
  text-align: left;
}
th {
  background-color: var(--steel-grey);
  color: white;
}
tr:nth-child(even) {
  background-color: var(--table-stripe);
}
a {
  color: var(--molten-orange);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  color: #E55300; /* Slightly darker on hover */
}
.footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 2px solid var(--steel-grey);
  font-size: 0.9em;
  color: var(--light-steel);
}

/* ISO 7010 Safety Icons */
img[src*="iso7010"] {
  width: 32px;
  height: 32px;
  vertical-align: middle;
  margin-right: 8px;
}

/* Icon in headers */
h2 img, h3 img {
  width: 48px;
  height: 48px;
  margin-right: 12px;
}

/* Inline icons in text */
p img[src*="iso7010"],
li img[src*="iso7010"] {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  margin-right: 6px;
}

/* Warning/callout boxes */
.warning-callout {
  background: var(--warning-bg);
  border-left: 4px solid var(--warning-color);
  padding: 15px;
  margin: 20px 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.warning-callout img {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

/* PPE requirement boxes */
.ppe-required {
  background: var(--bg-light);
  border-left: 4px solid var(--accent-color);
  padding: 15px;
  margin: 20px 0;
}

.ppe-list {
  list-style: none;
  padding-left: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.ppe-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ppe-list img {
  width: 32px;
  height: 32px;
}

/* Hazard identification section */
.hazard-list {
  margin: 15px 0;
}

.hazard-list img {
  width: 32px;
  height: 32px;
  vertical-align: middle;
  margin-right: 8px;
}

/* Emergency response section */
.emergency-response {
  background: #E8F5E9;
  border-left: 4px solid #2E7D32;
  padding: 15px;
  margin: 20px 0;
}

/* STOP WORK section highlighting */
h2:has(img[src*="warning"]) {
  color: var(--warning-color);
  background: var(--warning-bg);
  padding: 10px 15px;
  margin: 20px -15px;
}
