/* 4Core SOPs - Same Brand Colors as OHS Manual */
/* 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;
  --alert-red: #DC2F02;

  /* 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;
  --text-secondary: var(--light-steel);

  /* Backgrounds */
  --bg-white: #FFFFFF;
  --bg-light: #F9FAFB;
  --border-color: #E5E7EB;
  --table-stripe: #F9FAFB;
}

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);
}

/* SOP-specific banner */
.doc-type-banner {
  padding: 12px 20px;
  margin: -40px -40px 20px -40px;
  text-align: center;
  font-weight: bold;
  font-size: 14px;
  letter-spacing: 1px;
}
.sop-banner {
  background: var(--molten-orange);
  color: white;
}

.header {
  background: var(--steel-grey);
  color: white;
  padding: 20px;
  margin: 0 -40px 30px -40px;
  text-align: center;
}
.header h1 {
  color: var(--molten-orange);
  margin: 10px 0;
}
.header-logo {
  height: 60px;
  width: auto;
  margin: 0 auto 15px auto;
  display: block;
}

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;
}

.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;
}

h2 img, h3 img {
  width: 48px;
  height: 48px;
  margin-right: 12px;
}

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

.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;
}

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

/* Mobile optimization */
@media (max-width: 768px) {
  .container {
    padding: 20px;
  }
  table {
    font-size: 14px;
  }
  img[src*="iso7010"] {
    width: 24px;
    height: 24px;
  }
}

/* Print optimization */
@media print {
  .header, .footer, nav, .doc-type-banner {
    display: none;
  }
  a {
    color: black;
    text-decoration: none;
  }
  a::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }
}
