/* Generator safety pages live inside the technical-blog category shell. */
.blog-tree-branch li a.active,
.blog-tree-branch li a[aria-current="page"] {
  color: #00183f;
  background: #fff3cf;
  box-shadow: inset 3px 0 0 #f8b918;
}

.safety-library-section { padding-top: 38px; }
.safety-library-content { display: grid; gap: 0; }

.safety-page-header {
  padding: 30px 34px 32px;
  color: #fff;
  background: linear-gradient(110deg, rgba(0, 24, 63, .98), rgba(0, 46, 108, .9)), url('/materials/brand/engineer-service-entry.jpg') center / cover;
  border-radius: 8px 8px 0 0;
}

.safety-page-header .breadcrumb { margin-bottom: 28px; color: #c7d6eb; }
.safety-page-header .breadcrumb a { color: #fff; }
.safety-page-header .eyebrow { color: #f8b918; }
.safety-page-header h1 {
  max-width: 900px;
  margin: 9px 0 14px;
  color: #fff;
  font-size: clamp(34px, 4.4vw, 62px);
  line-height: 1.04;
}
.safety-page-header > p:not(.eyebrow):not(.blog-article-meta) {
  max-width: 820px;
  margin: 0;
  color: #dce7f5;
  font-size: 17px;
  line-height: 1.7;
}
.safety-page-header .blog-article-meta { margin: 22px 0 0; color: #aebfd5; }

.safety-center-content,
.safety-detail-content {
  min-width: 0;
  padding: 32px 34px 38px;
  background: #fff;
  border: 1px solid #d9e2ed;
  border-top: 0;
  border-radius: 0 0 8px 8px;
}
.safety-detail-content { max-width: none; }
.safety-detail-content > .safety-page-header { margin: -32px -34px 32px; }
.safety-content-section { margin-top: 42px; scroll-margin-top: 92px; }

.safety-section-heading {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.safety-section-heading > span {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #00183f;
  background: #f8b918;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}
.safety-section-heading h2 { margin: 0; color: #00183f; font-size: clamp(25px, 3vw, 36px); line-height: 1.14; }
.safety-section-heading p { margin: 7px 0 0; color: #637792; }

.safety-topic-grid,
.safety-article-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.safety-topic-card {
  display: flex;
  min-width: 0;
  min-height: 230px;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  color: #00183f;
  background: #f5f8fc;
  border: 1px solid #d9e2ed;
  border-top: 4px solid #f8b918;
  border-radius: 7px;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.safety-topic-card:hover,
.safety-topic-card:focus-visible {
  border-color: #9cb7dc;
  box-shadow: 0 12px 28px rgba(0, 34, 84, .11);
  outline: none;
  transform: translateY(-2px);
}
.safety-topic-card > span { color: #d88100; font-size: 12px; font-weight: 900; }
.safety-topic-card h3 { margin: 10px 0 9px; font-size: 21px; line-height: 1.3; }
.safety-topic-card p { margin: 0 0 18px; color: #637792; font-size: 14px; line-height: 1.62; }
.safety-topic-card strong { margin-top: auto; color: #0648c7; font-size: 13px; }

.safety-article-entry {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 18px 0;
  color: #00183f;
  border-top: 1px solid #d9e2ed;
}
.safety-article-entry h3 { margin: 0 0 8px; font-size: 17px; line-height: 1.4; }
.safety-article-entry p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 10px;
  color: #637792;
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.safety-article-entry strong { margin-top: auto; color: #0648c7; font-size: 12px; }

.safety-download-card,
.safety-engineering-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-top: 42px;
  padding: 26px;
  background: #eef4fb;
  border-left: 5px solid #f8b918;
  border-radius: 6px;
}
.safety-engineering-cta { color: #fff; background: #00183f; }
.safety-download-card h2,
.safety-engineering-cta h2 { margin: 0 0 8px; color: inherit; font-size: 24px; }
.safety-download-card p,
.safety-engineering-cta p { margin: 0; color: inherit; line-height: 1.6; opacity: .88; }

.safety-page-toc { margin: 24px 0 32px; padding: 20px 22px; background: #f5f8fc; border-left: 4px solid #f8b918; }
.safety-page-toc > strong { color: #00183f; }
.safety-page-toc ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 22px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.safety-page-toc a { color: #31577f; font-size: 13px; font-weight: 700; }
.safety-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 1180px) {
  .safety-topic-grid,
  .safety-article-list { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 800px) {
  .safety-library-section { padding-top: 24px; }
  .safety-page-header,
  .safety-center-content,
  .safety-detail-content { padding-right: 24px; padding-left: 24px; }
  .safety-detail-content > .safety-page-header { margin-right: -24px; margin-left: -24px; }
  .safety-download-card,
  .safety-engineering-cta { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .safety-page-header { padding: 24px 18px 26px; }
  .safety-page-header .breadcrumb { margin-bottom: 20px; }
  .safety-page-header h1 { font-size: 34px; }
  .safety-page-header > p:not(.eyebrow):not(.blog-article-meta) { font-size: 15px; }
  .safety-center-content,
  .safety-detail-content { padding: 26px 18px 30px; }
  .safety-detail-content > .safety-page-header { margin: -26px -18px 26px; }
  .safety-topic-card { min-height: 0; padding: 20px; }
  .safety-page-toc ul,
  .safety-overview-grid { grid-template-columns: minmax(0, 1fr); }
  .safety-download-card,
  .safety-engineering-cta { padding: 22px 18px; }
}
