.h5w-safety-hub {
  --h5w-safety-ink: #101735;
  --h5w-safety-muted: #5c6680;
  --h5w-safety-purple: #6337e6;
  --h5w-safety-purple-dark: #4e27c9;
  --h5w-safety-purple-soft: #f3f0ff;
  --h5w-safety-coral: #ff6f61;
  --h5w-safety-line: #e2e5ef;
  --h5w-safety-cream: #fff8f4;
  --h5w-safety-shell: 1160px;
  color: var(--h5w-safety-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
}

.h5w-safety-hub *,
.h5w-safety-hub *::before,
.h5w-safety-hub *::after {
  box-sizing: border-box;
}

.page-id-476 .entry-content-wrap {
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.page-id-476 .content-area {
  margin-bottom: 0;
  margin-top: 0;
}

.page-id-476 .entry-content {
  margin: 0;
}

.h5w-safety-hub :focus-visible {
  outline: 3px solid #ff9f84;
  outline-offset: 4px;
}

.h5w-safety-hub__hero {
  background-color: #f8f7ff;
  background-image: url("h5w-guides-hero-bg.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 72px 24px 70px;
  text-align: center;
}

.h5w-safety-hub__hero-inner {
  margin: 0 auto;
  max-width: 920px;
}

.h5w-safety-hub__eyebrow,
.h5w-safety-hub__kicker,
.h5w-safety-card__question {
  color: var(--h5w-safety-purple);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.15em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.h5w-safety-hub__hero h1 {
  color: var(--h5w-safety-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 5vw, 70px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.98;
  margin: 0 auto 22px;
  max-width: 860px;
  text-wrap: balance;
}

.h5w-safety-hub__hero-inner > p:last-child {
  color: var(--h5w-safety-muted);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.5;
  margin: 0 auto;
  max-width: 780px;
  text-wrap: balance;
}

.h5w-safety-hub__shell {
  margin: 0 auto;
  max-width: calc(var(--h5w-safety-shell) + 48px);
  padding: 76px 24px 92px;
  width: 100%;
}

.h5w-safety-hub__section-heading {
  margin: 0 0 32px;
  max-width: 760px;
}

.h5w-safety-hub__section-heading h2,
.h5w-safety-checklist h2,
.h5w-safety-hub__next h2 {
  color: var(--h5w-safety-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 3.6vw, 48px);
  letter-spacing: -0.04em;
  line-height: 1.04;
  margin: 0 0 14px;
  text-wrap: balance;
}

.h5w-safety-hub__section-heading > p:last-child,
.h5w-safety-checklist__intro > p:last-child,
.h5w-safety-hub__next p {
  color: var(--h5w-safety-muted);
  font-size: 17px;
  line-height: 1.6;
  margin: 0;
}

.h5w-safety-hub__guide-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.h5w-safety-card {
  background: #fff;
  border: 1px solid var(--h5w-safety-line);
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(16, 23, 53, 0.06);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.h5w-safety-card:hover,
.h5w-safety-card:focus-within {
  border-color: #cfc5f8;
  box-shadow: 0 18px 42px rgba(78, 39, 201, 0.11);
  transform: translateY(-3px);
}

.h5w-safety-card__image {
  display: block;
  height: 186px;
  overflow: hidden;
}

.h5w-safety-card__image img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease;
  width: 100%;
}

.h5w-safety-card:hover .h5w-safety-card__image img,
.h5w-safety-card:focus-within .h5w-safety-card__image img {
  transform: scale(1.025);
}

.h5w-safety-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px 24px 26px;
}

.h5w-safety-card__question {
  color: var(--h5w-safety-coral);
  font-size: 11px;
  margin-bottom: 9px;
}

.h5w-safety-card h3 {
  color: var(--h5w-safety-ink);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.22;
  margin: 0 0 11px;
}

.h5w-safety-card h3 a,
.h5w-safety-card__read {
  color: inherit;
  text-decoration: none;
}

.h5w-safety-card h3 a:hover,
.h5w-safety-card h3 a:focus-visible,
.h5w-safety-card__read:hover,
.h5w-safety-card__read:focus-visible {
  color: var(--h5w-safety-purple-dark);
}

.h5w-safety-card__summary {
  color: var(--h5w-safety-muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 22px;
}

.h5w-safety-card__read {
  color: var(--h5w-safety-purple);
  font-size: 14px;
  font-weight: 850;
  margin-top: auto;
}

.h5w-safety-checklist {
  align-items: start;
  background: var(--h5w-safety-cream);
  border: 1px solid #f1d8cf;
  border-radius: 22px;
  display: grid;
  gap: 54px;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  margin: 84px 0;
  padding: 52px;
}

.h5w-safety-checklist ol {
  counter-reset: safety-check;
  list-style: none;
  margin: 0;
  padding: 0;
}

.h5w-safety-checklist li {
  border-bottom: 1px solid #eadbd4;
  counter-increment: safety-check;
  display: grid;
  gap: 3px 15px;
  grid-template-columns: 34px minmax(0, 1fr);
  padding: 16px 0;
}

.h5w-safety-checklist li:first-child {
  padding-top: 0;
}

.h5w-safety-checklist li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.h5w-safety-checklist li::before {
  align-items: center;
  background: var(--h5w-safety-purple-soft);
  border-radius: 50%;
  color: var(--h5w-safety-purple-dark);
  content: counter(safety-check);
  display: flex;
  font-size: 13px;
  font-weight: 850;
  grid-row: 1 / span 2;
  height: 30px;
  justify-content: center;
  margin-top: 1px;
  width: 30px;
}

.h5w-safety-checklist strong {
  color: var(--h5w-safety-ink);
  font-size: 16px;
  line-height: 1.35;
}

.h5w-safety-checklist span {
  color: var(--h5w-safety-muted);
  font-size: 14px;
  line-height: 1.5;
}

.h5w-safety-tool-check__grid {
  border-top: 1px solid var(--h5w-safety-line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.h5w-safety-tool-check__grid > div {
  border-bottom: 1px solid var(--h5w-safety-line);
  min-width: 0;
  padding: 24px 28px 25px 0;
}

.h5w-safety-tool-check__grid > div:not(:nth-child(3n + 1)) {
  border-left: 1px solid var(--h5w-safety-line);
  padding-left: 28px;
}

.h5w-safety-tool-check dt {
  color: var(--h5w-safety-ink);
  font-size: 17px;
  font-weight: 850;
  line-height: 1.3;
  margin: 0 0 7px;
}

.h5w-safety-tool-check dd {
  color: var(--h5w-safety-muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

.h5w-safety-hub__next {
  align-items: center;
  background: var(--h5w-safety-purple-soft);
  border-radius: 20px;
  display: flex;
  gap: 36px;
  justify-content: space-between;
  margin-top: 76px;
  padding: 38px 42px;
}

.h5w-safety-hub__next h2 {
  font-size: clamp(29px, 3vw, 40px);
  margin-bottom: 9px;
}

.h5w-safety-hub__next > a {
  background: var(--h5w-safety-purple);
  border-radius: 10px;
  box-shadow: 0 12px 25px rgba(78, 39, 201, 0.18);
  color: #fff;
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 850;
  min-height: 50px;
  padding: 13px 23px;
  text-decoration: none;
  transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.h5w-safety-hub__next > a:hover,
.h5w-safety-hub__next > a:focus,
.h5w-safety-hub__next > a:focus-visible {
  background: var(--h5w-safety-purple-dark);
  box-shadow: 0 15px 30px rgba(78, 39, 201, 0.24);
  color: #fff;
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .h5w-safety-hub__guide-grid,
  .h5w-safety-tool-check__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .h5w-safety-tool-check__grid > div:nth-child(n) {
    border-left: 0;
    padding-left: 0;
    padding-right: 24px;
  }

  .h5w-safety-tool-check__grid > div:nth-child(even) {
    border-left: 1px solid var(--h5w-safety-line);
    padding-left: 24px;
  }

  .h5w-safety-checklist {
    gap: 38px;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .h5w-safety-hub__hero {
    padding: 50px 20px 48px;
  }

  .h5w-safety-hub__hero h1 {
    font-size: clamp(42px, 12vw, 54px);
  }

  .h5w-safety-hub__hero-inner > p:last-child {
    font-size: 17px;
  }

  .h5w-safety-hub__shell {
    padding: 58px 18px 66px;
  }

  .h5w-safety-hub__guide-grid,
  .h5w-safety-tool-check__grid {
    grid-template-columns: 1fr;
  }

  .h5w-safety-card__image {
    height: 176px;
  }

  .h5w-safety-card__body {
    padding: 22px 20px 24px;
  }

  .h5w-safety-checklist {
    border-radius: 18px;
    margin: 62px 0;
    padding: 32px 22px;
  }

  .h5w-safety-tool-check__grid > div:nth-child(n) {
    border-left: 0;
    padding: 20px 0;
  }

  .h5w-safety-hub__next {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 58px;
    padding: 30px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .h5w-safety-hub *,
  .h5w-safety-hub *::before,
  .h5w-safety-hub *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
