@charset "utf-8";
/* ── RESET & BASE (from css-3.txt) ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background-color: #F8F3E7;
  color: #2F3437;
  font-size: 16px;
}

a { text-decoration: none; color: inherit; }

.square-logo { width: 74px; height: 64px; margin: 5px; }

/* ── BREADCRUMB ── */
.breadcrumb {
  background-color: #e8e2d6;
  padding: 10px 24px;
  font-size: 0.85rem;
  color: #555;
  border-bottom: 1px solid #d5cfc5;
}
.breadcrumb a { color: #1D3557; font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.bc-sep { margin: 0 6px; color: #aaa; }
.bc-current { color: #2F3437; font-weight: 600; }

/* ── PAGE WRAPPER ── */
.page-wrapper { max-width: 960px; margin: 0 auto; padding: 24px 20px 40px; }

/* ── PAGE TITLE BLOCK ── */
.page-title-block {
  background: linear-gradient(135deg, #1D3557 0%, #2a4d73 100%);
  color: #F8F3E7;
  border-radius: 8px;
  padding: 36px 32px;
  margin-bottom: 28px;
}
.page-title-label {
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #F5B041; margin-bottom: 8px;
}
.page-title-main { font-size: 2rem; font-weight: 700; line-height: 1.2; margin-bottom: 12px; }
.page-title-sub  { font-size: 1rem; opacity: 0.85; line-height: 1.6; max-width: 680px; }

/* ── ARTICLE / SECTION ── */
.section-art-txt {
  margin: 0 0 28px 0;
  padding: 28px 28px 24px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.section-art-title {
  font-size: 1.2rem; font-weight: 700; color: #1D3557;
  border-left: 4px solid #E63946;
  padding-left: 12px; margin-bottom: 20px; line-height: 1.3;
}
.section-art-txt > p { font-size: 1rem; color: #2F3437; line-height: 1.6; margin-bottom: 16px; }

/* ── DEFINITION CARDS ── */
.definition-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px; margin-top: 8px;
}
.def-card { border-radius: 8px; padding: 20px 18px; border-top: 5px solid transparent; }
.def-card--blue { background: #EBF2FA; border-top-color: #1D3557; }
.def-card--red  { background: #FEF0F0; border-top-color: #E63946; }
.def-card--gold { background: #FEF9EC; border-top-color: #F5B041; }
.def-card-icon  { font-size: 1.8rem; margin-bottom: 8px; }
.def-card h4    { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: #1D3557; }
.def-card p     { font-size: 0.9rem; line-height: 1.55; color: #3a3f42; }

/* ── REGULATION BLOCKS ── */
.reg-block { border: 1px solid #e0dbd2; border-radius: 8px; overflow: hidden; margin-bottom: 14px; }
.reg-block--featured { border-color: #F5B041; box-shadow: 0 0 0 3px rgba(245,176,65,0.25); }
.reg-block-header { display: flex; align-items: center; gap: 12px; padding: 14px 18px; position: relative; }
.reg-hdr--blue   { background-color: #1D3557; color: #F8F3E7; }
.reg-hdr--red    { background-color: #E63946; color: #F8F3E7; }
.reg-hdr--green  { background-color: #2E7D52; color: #F8F3E7; }
.reg-hdr--orange { background-color: #E67E22; color: #F8F3E7; }
.reg-hdr--slate  { background-color: #455A64; color: #F8F3E7; }
.reg-hdr--gold   { background-color: #D4890A; color: #fff; }
.reg-icon        { font-size: 1.3rem; flex-shrink: 0; }
.reg-block-header h4 { font-size: 1rem; font-weight: 700; flex: 1; line-height: 1.3; }
.featured-badge {
  background-color: #fff; color: #D4890A;
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 3px 8px; border-radius: 20px; white-space: nowrap;
}
.reg-block-body { padding: 18px 20px; background-color: #fdfcfa; }
.reg-block-body p { font-size: 0.95rem; line-height: 1.6; color: #2F3437; margin-bottom: 12px; }

/* ── CHECK LIST ── */
.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.check-list li {
  font-size: 0.95rem; color: #2F3437;
  padding-left: 24px; position: relative; line-height: 1.5;
}
.check-list li::before { content: '✓'; position: absolute; left: 0; color: #2E7D52; font-weight: 700; }

/* ── RIGHTS & RESPONSIBILITIES GRID ── */
.rights-resp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 12px; }
.rr-col { border-radius: 6px; padding: 14px 16px; }
.rr-col--rights { background-color: #EBF2FA; border-left: 3px solid #1D3557; }
.rr-col--resp   { background-color: #FEF9EC; border-left: 3px solid #F5B041; }
.rr-col h5 {
  font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  margin-bottom: 10px; color: #1D3557;
}
.rr-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rr-col ul li { font-size: 0.9rem; line-height: 1.5; color: #2F3437; padding-left: 16px; position: relative; }
.rr-col ul li::before { content: '•'; position: absolute; left: 0; color: #888; }

/* ── WHMIS GRID ── */
.whmis-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.whmis-item { display: flex; gap: 12px; align-items: flex-start; background: #FEF9EC; border-radius: 6px; padding: 12px 14px; }
.whmis-icon { font-size: 1.4rem; flex-shrink: 0; }
.whmis-item strong { display: block; font-size: 0.9rem; color: #1D3557; margin-bottom: 4px; }
.whmis-item p { font-size: 0.85rem; line-height: 1.45; color: #555; margin: 0; }

/* ── SKILL PILLS ── */
.skill-pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 24px; }
.skill-pill {
  background-color: #1D3557; color: #F8F3E7;
  font-size: 0.85rem; font-weight: 600;
  padding: 8px 14px; border-radius: 20px; line-height: 1.3;
}

/* ── CALLOUT ── */
.callout { display: flex; gap: 14px; align-items: flex-start; border-radius: 8px; padding: 16px 18px; margin-top: 4px; }
.callout--tip { background-color: #EBF2FA; border-left: 4px solid #1D3557; }
.callout-icon { font-size: 1.4rem; flex-shrink: 0; }
.callout strong { display: block; font-size: 0.9rem; color: #1D3557; margin-bottom: 4px; }
.callout p { font-size: 0.9rem; line-height: 1.55; color: #2F3437; margin: 0; }


/* QUIZ NAV */
.quiz-nav-container {
  text-align: center;
  margin-bottom: 0.75rem;
}

.quiz-nav {
  display: flex;
  justify-content: center;
}

.quiz-nav-btn {
  display: inline-block;
  background-color: #E63946;
  color: #F8F3E7;
  text-decoration: none;
  padding: 0.85rem 1.4rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(29, 53, 87, 0.18);
  border: 2px solid transparent;
}

.quiz-nav-btn:hover {
  background-color: #C92F3B;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(29, 53, 87, 0.24);
}

.quiz-nav-btn:focus {
  outline: none;
  border-color: #F1C40F;
}

/* FOOTER NAV */
.main-footer-nav {
  background-color: #1D3557; display: flex;
  justify-content: center; gap: 12px;
  padding: 16px 24px; flex-wrap: wrap;
}
.main-footer-nav-btn {
  display: inline-block; background-color: #F5B041;
  color: #2F3437; font-weight: 700; font-size: 0.9rem;
  padding: 10px 24px; border-radius: 4px;
  transition: background-color 0.2s; text-decoration: none;
}
.main-footer-nav-btn:hover { background-color: #F8C471; }

/* ── SITE FOOTER ── */
.site-footer { background-color: #2F3437; color: #F8F3E7; padding: 40px 24px 24px; }
.footer-container { display: flex;
  align-items: flex-start;
  justify-content: center;
  color: #F1C40F; gap: 32px; max-width: 1200px; margin: 0 auto; }
.footer-col {
  text-align: left;
  color: #F1C40F;
  margin: 0 50px;
}
.footer-col a { color: #F1C40F; text-decoration: underline; transition: opacity 0.2s; }
.footer-col a:hover { opacity: 0.5; }
.footer-col h3 { font-size: 1.05rem; color: #F1C40F; margin-bottom: 10px; }
.footer-col p  { font-size: 0.9rem; opacity: 0.8; line-height: 1.7; }
.footer-credit {
  text-align: center; font-size: 0.8rem; opacity: 0.6;
  margin-top: 24px; padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.15);
  max-width: 1200px; margin-left: auto; margin-right: auto;
}


/* ═══════════════════════════════════════
   NEW COMPONENTS — SECTION 1.4
═══════════════════════════════════════ */

/* ── HAZARD NAVIGATION GRID ── */
.hazard-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.hazard-nav-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 10px 14px;
  border-radius: 10px;
  border-bottom: 4px solid transparent;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
}
.hazard-nav-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.hazard-nav-card--red    { background: #FEF0F0; border-bottom-color: #E63946; }
.hazard-nav-card--orange { background: #FEF3E8; border-bottom-color: #E67E22; }
.hazard-nav-card--gold   { background: #FEF9EC; border-bottom-color: #D4890A; }
.hazard-nav-card--blue   { background: #EBF2FA; border-bottom-color: #1D3557; }
.hazard-nav-card--slate  { background: #ECEFF1; border-bottom-color: #455A64; }
.hazard-nav-card--green  { background: #E8F5EE; border-bottom-color: #2E7D52; }

.hazard-nav-icon  { font-size: 1.8rem; margin-bottom: 6px; }
.hazard-nav-num   { font-size: 0.7rem; font-weight: 700; color: #888; letter-spacing: 0.06em; margin-bottom: 4px; }
.hazard-nav-label { font-size: 0.82rem; font-weight: 700; color: #2F3437; line-height: 1.3; }

/* ── SUBSECTION HEADINGS ── */
.subsection-h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1D3557;
  margin: 20px 0 10px;
  padding-bottom: 5px;
  border-bottom: 2px solid #e0dbd2;
}

.subsection-h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #455A64;
  margin: 12px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── CURRENT EFFECTS TABLE ── */
.current-effects-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0 8px;
}

.ce-row {
  display: grid;
  grid-template-columns: 90px 1fr 260px;
  align-items: center;
  gap: 10px;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.9rem;
}

.ce-level   { font-weight: 700; color: #2F3437; white-space: nowrap; }
.ce-bar-wrap { background: #e8e2d6; border-radius: 4px; height: 10px; overflow: hidden; }
.ce-bar      { height: 100%; border-radius: 4px; transition: width 0.3s; }
.ce-desc     { color: #2F3437; line-height: 1.4; }

.ce-row--safe     { background: #E8F5EE; }
.ce-row--safe     .ce-bar { background: #2E7D52; }

.ce-row--caution  { background: #FEF9EC; }
.ce-row--caution  .ce-bar { background: #F5B041; }

.ce-row--warning  { background: #FEF3E8; }
.ce-row--warning  .ce-bar { background: #E67E22; }

.ce-row--danger   { background: #FEF0F0; }
.ce-row--danger   .ce-bar { background: #E63946; }

.ce-row--critical { background: #2F0000; color: #fff; }
.ce-row--critical .ce-level { color: #ff9a9a; }
.ce-row--critical .ce-desc  { color: #ffd0d0; }
.ce-row--critical .ce-bar   { background: #E63946; }

/* ── STEPS ORDERED LIST ── */
.steps-ol {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-reset: steps-counter;
}

.steps-ol li {
  counter-increment: steps-counter;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fdfcfa;
  border: 1px solid #e8e2d6;
  border-radius: 8px;
  padding: 14px 16px;
}

.steps-ol li::before {
  content: counter(steps-counter);
  background: #1D3557;
  color: #F8F3E7;
  font-size: 0.85rem;
  font-weight: 700;
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.step-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1D3557;
  margin-bottom: 4px;
}

.step-body {
  display: block;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #555;
}

/* ── TEMPERATURE SPLIT GRID ── */
.temp-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 12px;
}

.temp-col {
  border-radius: 8px;
  padding: 18px 16px;
}

.temp-col--hot {
  background: #FFF5F5;
  border-top: 5px solid #E63946;
}

.temp-col--cold {
  background: #EBF2FA;
  border-top: 5px solid #1D3557;
}

.temp-col-header {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1D3557;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

/* ── FALL PROTECTION HIERARCHY GRID ── */
.fall-protection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 12px 0;
}

.fp-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border-radius: 8px;
  padding: 16px;
  border-left: 5px solid transparent;
}

.fp-card--1 { background: #E8F5EE; border-left-color: #2E7D52; }
.fp-card--2 { background: #EBF2FA; border-left-color: #1D3557; }
.fp-card--3 { background: #FEF9EC; border-left-color: #D4890A; }
.fp-card--4 { background: #FEF0F0; border-left-color: #E63946; }

.fp-rank {
  background: #1D3557;
  color: #F8F3E7;
  font-size: 1rem;
  font-weight: 700;
  min-width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fp-card--1 .fp-rank { background: #2E7D52; }
.fp-card--3 .fp-rank { background: #D4890A; }
.fp-card--4 .fp-rank { background: #E63946; }

.fp-content strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1D3557;
  margin-bottom: 5px;
}
.fp-content p { font-size: 0.88rem; line-height: 1.5; color: #3a3f42; margin: 0; }

/* ── NOISE TABLE ── */
.noise-table {
  border: 1px solid #e0dbd2;
  border-radius: 8px;
  overflow: hidden;
  margin: 12px 0;
}

.noise-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 10px 16px;
  font-size: 0.9rem;
  align-items: center;
}

.noise-row + .noise-row { border-top: 1px solid #e0dbd2; }

.noise-row--header {
  background: #1D3557;
  color: #F8F3E7;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.noise-row--safe   { background: #E8F5EE; }
.noise-row--caution{ background: #FEF9EC; }
.noise-row--danger { background: #FEF0F0; }

.noise-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}
.noise-badge--low  { background: #2E7D52; color: #fff; }
.noise-badge--med  { background: #D4890A; color: #fff; }
.noise-badge--high { background: #E63946; color: #fff; }


/* ═══════════════════════════════════════
   RESPONSIVE — SECTION 1.4 ADDITIONS
═══════════════════════════════════════ */
@media (max-width: 768px) {
  .page-title-main    { font-size: 1.5rem; }
  .page-title-block   { padding: 24px 20px; }
  .section-art-txt    { padding: 20px 16px; }
  .section-art-title  { font-size: 1rem; }

  .definition-cards   { grid-template-columns: 1fr; }
  .rights-resp-grid   { grid-template-columns: 1fr; }
  .whmis-grid         { grid-template-columns: 1fr; }

  .hazard-nav-grid    { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
  .temp-split-grid    { grid-template-columns: 1fr; }
  .fall-protection-grid { grid-template-columns: 1fr; }
  .noise-table        { font-size: 0.85rem; }

  .ce-row {
    grid-template-columns: 80px 1fr;
    grid-template-rows: auto auto;
  }
  .ce-desc { grid-column: 1 / -1; }

  .footer-container   { flex-direction: column; gap: 20px; }
}

@media (max-width: 480px) {
  .skill-pills  { gap: 8px; }
  .skill-pill   { font-size: 0.8rem; padding: 6px 12px; }
  .reg-block-header h4 { font-size: 0.9rem; }
  .hazard-nav-grid { grid-template-columns: repeat(3, 1fr); }
  .noise-row    { grid-template-columns: 1fr 1fr; }
  .noise-row span:last-child { display: none; }
  .noise-row--header span:last-child { display: none; }
}
/* ── Back to Top Button ── */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 999;
  padding: 10px 18px;
  font-size: 0.85rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateY(10px);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
/* ── Scroll Margin for Quick Nav Anchor Targets ── */
.section-art-txt[id],
.ppe-category[id],
.subsection-block[id],
.hazard-nav-card[id],
div[id].section-art-txt,
article[id] {
  scroll-margin-top: 80px;
}