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

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

.h5w-context-hub-page .entry-content-wrap {
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.h5w-context-hub-page .content-area {
  margin-bottom: 0;
  margin-top: 0;
}

.h5w-context-hub-page .entry-content {
  margin: 0;
}

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

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

.h5w-context-hub__hero-inner {
  margin: 0 auto;
  max-width: 980px;
}

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

.h5w-context-hub__hero h1 {
  color: var(--h5w-context-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;
  text-wrap: balance;
}

.h5w-context-hub__hero-inner > p:last-child {
  color: var(--h5w-context-muted);
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.55;
  margin: 24px auto 0;
  max-width: 800px;
}

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

.h5w-context-hub__switcher {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding: 28px 0 0;
}

.h5w-context-hub__switcher a {
  background: var(--h5w-context-purple-soft);
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--h5w-context-ink);
  font-size: 14px;
  font-weight: 750;
  line-height: 1;
  min-height: 44px;
  padding: 14px 22px;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.h5w-context-hub__switcher a:hover,
.h5w-context-hub__switcher a:focus-visible,
.h5w-context-hub__switcher a.is-active {
  background: var(--h5w-context-purple);
  color: #fff;
  transform: translateY(-1px);
}

.h5w-context-hub__start,
.h5w-context-hub__latest,
.h5w-context-hub__tools {
  padding-top: 90px;
}

.h5w-context-hub__section-heading {
  max-width: 780px;
}

.h5w-context-hub__section-heading h2,
.h5w-context-hub__latest-intro h2,
.h5w-context-hub__safety h2,
.h5w-context-hub__next h2 {
  color: var(--h5w-context-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
}

.h5w-context-hub__section-heading > p:last-child,
.h5w-context-hub__latest-intro > p:last-child,
.h5w-context-hub__safety > div:first-child > p:last-child,
.h5w-context-hub__next > div > p:last-child {
  color: var(--h5w-context-muted);
  font-size: 18px;
  margin: 16px 0 0;
  max-width: 760px;
}

.h5w-context-hub__featured-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 42px;
}

.h5w-context-card {
  background: #fff;
  border: 1px solid var(--h5w-context-line);
  border-radius: 16px;
  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-context-card:hover,
.h5w-context-card:focus-within {
  border-color: #c9c0ee;
  box-shadow: 0 18px 50px rgba(50, 40, 100, 0.09);
  transform: translateY(-3px);
}

.h5w-context-card__image {
  aspect-ratio: 1.9 / 1;
  display: block;
  overflow: hidden;
}

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

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

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

.h5w-context-card h3,
.h5w-context-row h3 {
  color: var(--h5w-context-ink);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin: 0;
}

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

.h5w-context-card h3 a:hover,
.h5w-context-row h3 a:hover {
  color: var(--h5w-context-purple-dark);
}

.h5w-context-card__body > p:not(.h5w-context-card__type),
.h5w-context-row p {
  color: var(--h5w-context-muted);
  font-size: 15px;
  margin: 13px 0 0;
}

.h5w-context-hub__text-link {
  color: var(--h5w-context-purple-dark);
  display: inline-flex;
  font-size: 14px;
  font-weight: 850;
  gap: 7px;
  margin-top: auto;
  padding-top: 20px;
  text-decoration: none;
  white-space: nowrap;
}

.h5w-context-hub__text-link:hover,
.h5w-context-hub__text-link:focus-visible {
  color: var(--h5w-context-purple);
}

.h5w-context-hub__latest {
  display: grid;
  gap: clamp(40px, 6vw, 76px);
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
}

.h5w-context-hub__latest-intro {
  align-self: start;
  position: sticky;
  top: 32px;
}

.h5w-context-hub__guide-list {
  border-top: 1px solid var(--h5w-context-line);
}

.h5w-context-row {
  align-items: center;
  border-bottom: 1px solid var(--h5w-context-line);
  display: grid;
  gap: 22px;
  grid-template-columns: 155px minmax(0, 1fr) auto;
  padding: 20px 0;
}

.h5w-context-row__image {
  aspect-ratio: 1.65 / 1;
  border-radius: 10px;
  display: block;
  overflow: hidden;
}

.h5w-context-row__image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.h5w-context-row .h5w-context-hub__text-link {
  margin-top: 0;
  padding-top: 0;
}

.h5w-context-hub__tools {
  background: #fbfbfd;
  border-radius: 22px;
  margin-top: 96px;
  padding: 58px;
}

.h5w-context-hub__tool-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 36px;
}

.h5w-context-hub__tool-grid .h5w-tool-card {
  background: #fff;
}

.h5w-context-hub__safety {
  align-items: start;
  background: var(--h5w-context-cream);
  border: 1px solid #f0dfd6;
  border-radius: 22px;
  display: grid;
  gap: clamp(40px, 6vw, 80px);
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  margin-top: 96px;
  padding: 58px;
}

.h5w-context-hub__safety-links {
  border-top: 1px solid #ead7cc;
}

.h5w-context-hub__safety-links a {
  border-bottom: 1px solid #ead7cc;
  color: var(--h5w-context-ink);
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 18px 0;
  text-decoration: none;
}

.h5w-context-hub__safety-links a:hover strong,
.h5w-context-hub__safety-links a:focus-visible strong {
  color: var(--h5w-context-purple-dark);
}

.h5w-context-hub__safety-links span {
  color: var(--h5w-context-purple-dark);
  font-size: 13px;
  font-weight: 800;
}

.h5w-context-hub__next {
  align-items: center;
  background: var(--h5w-context-purple-soft);
  border-radius: 22px;
  display: flex;
  gap: 32px;
  justify-content: space-between;
  margin-top: 96px;
  padding: 52px 58px;
}

.h5w-context-hub__next > div {
  max-width: 760px;
}

.h5w-context-hub__next > a {
  align-items: center;
  background: var(--h5w-context-purple);
  border-radius: 10px;
  box-shadow: 0 12px 26px rgba(78, 39, 201, 0.18);
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 850;
  gap: 8px;
  justify-content: center;
  min-height: 50px;
  padding: 14px 20px;
  text-decoration: none;
}

.h5w-context-hub__next > a:hover,
.h5w-context-hub__next > a:focus-visible {
  background: var(--h5w-context-purple-dark);
  color: #fff;
}

.h5w-context-hub__empty {
  background: #fbfbfd;
  border: 1px solid var(--h5w-context-line);
  border-radius: 16px;
  color: var(--h5w-context-muted);
  margin: 40px 0 0;
  padding: 28px;
}

@media (max-width: 900px) {
  .h5w-context-hub__featured-grid,
  .h5w-context-hub__tool-grid {
    grid-template-columns: 1fr 1fr;
  }

  .h5w-context-hub__latest,
  .h5w-context-hub__safety {
    grid-template-columns: 1fr;
  }

  .h5w-context-hub__latest-intro {
    position: static;
  }

  .h5w-context-hub__tools,
  .h5w-context-hub__safety {
    padding: 44px;
  }
}

@media (max-width: 640px) {
  .h5w-context-hub__hero {
    padding: 58px 20px 60px;
  }

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

  .h5w-context-hub__shell {
    padding: 0 18px 72px;
  }

  .h5w-context-hub__switcher {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
  }

  .h5w-context-hub__switcher a {
    text-align: center;
  }

  .h5w-context-hub__start,
  .h5w-context-hub__latest,
  .h5w-context-hub__tools {
    padding-top: 68px;
  }

  .h5w-context-hub__featured-grid,
  .h5w-context-hub__tool-grid {
    grid-template-columns: 1fr;
  }

  .h5w-context-row {
    align-items: start;
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .h5w-context-row .h5w-context-hub__text-link {
    grid-column: 2;
  }

  .h5w-context-hub__tools,
  .h5w-context-hub__safety,
  .h5w-context-hub__next {
    border-radius: 16px;
    margin-top: 72px;
    padding: 30px 24px;
  }

  .h5w-context-hub__next {
    align-items: flex-start;
    flex-direction: column;
  }
}

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