/* Who we help band (homepage) */
.x-help {
  background: var(--paper-soft);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 2.5rem 0 2.75rem;
}

.x-help-head {
  margin-bottom: 1.25rem;
}

.x-help-head h2 {
  margin: 0;
  font-family: Inter, Barlow, sans-serif;
  font-size: clamp(1.45rem, 3.2vw, 1.9rem);
  line-height: 1.2;
  color: var(--navy);
}

.x-help-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.x-help-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--cyan);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem 1.4rem;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.x-help-card:hover,
.x-help-card:focus-within {
  box-shadow: 0 10px 24px rgba(0, 38, 62, 0.12);
  transform: translateY(-2px);
}

.x-help-label {
  margin: 0 0 0.5rem;
  font-family: Inter, Barlow, sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--royal);
}

.x-help-card h3 {
  margin: 0 0 0.5rem;
  font-family: Inter, Barlow, sans-serif;
  font-size: 1.3rem;
  line-height: 1.25;
}

.x-help-card h3 a {
  color: var(--navy);
  text-decoration: none;
}

.x-help-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}

.x-help-card h3 a:focus-visible {
  outline: none;
}

.x-help-card:focus-within {
  outline: 3px solid var(--royal);
  outline-offset: 3px;
}

.x-help-card p {
  margin: 0 0 0.9rem;
  font-family: Barlow, sans-serif;
  color: var(--muted);
}

.x-help-more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: Inter, Barlow, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--royal);
}

@media (min-width: 720px) {
  .x-help-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .x-help { padding: 3rem 0 3.25rem; }
}

.site-header .brand { flex: none; }
.site-header .brand img { width: auto; }

/* Offerings dropdown */
.nav-group { position: relative; }

.nav-group-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0;
  border: 0;
  background: none;
  color: var(--navy);
  font-family: Barlow, Inter, sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: inherit;
  white-space: nowrap;
  cursor: pointer;
}

.nav-group-toggle:hover,
.nav-group-toggle[aria-expanded="true"] { color: var(--royal); }

.nav-group-toggle:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.nav-caret {
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.15s ease;
}

.nav-group-toggle[aria-expanded="true"] .nav-caret { transform: translateY(1px) rotate(-135deg); }

.nav-submenu { display: none; }
.nav-group.is-open .nav-submenu { display: flex; }

.site-nav .nav-submenu a { font-family: Barlow, Inter, sans-serif; }

@media (min-width: 801px) {
  .nav-submenu {
    position: absolute;
    top: 100%;
    left: -1rem;
    z-index: 60;
    flex-direction: column;
    min-width: 13rem;
    margin-top: 0.35rem;
    padding: 0.4rem 0;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-top: 3px solid var(--cyan);
    border-radius: var(--radius);
    box-shadow: 0 12px 28px rgba(0, 38, 62, 0.14);
  }

  /* bridge the gap so hover is not lost between button and panel */
  .nav-submenu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: calc(-0.35rem - 3px);
    height: 0.35rem;
  }

  .site-nav .nav-submenu a {
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
  }

  .site-nav .nav-submenu a:hover,
  .site-nav .nav-submenu a:focus-visible {
    background: var(--paper-soft);
    color: var(--royal);
  }
}

@media (max-width: 800px) {
  .nav-group { border-bottom: 1px solid var(--rule); }

  .nav-group-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 0.75rem 0.25rem;
    font-size: 1rem;
  }

  .nav-submenu {
    flex-direction: column;
    padding: 0 0 0.5rem 1rem;
    border-left: 3px solid var(--cyan);
    margin: 0 0 0.5rem 0.25rem;
  }

  .site-nav .nav-submenu a { border-bottom: 0; padding: 0.6rem 0.25rem; }
}

@media (min-width: 801px) and (max-width: 1240px) {
  .site-nav { gap: 1rem; }
  .site-nav a, .nav-group-toggle { font-size: 0.9rem; }
  .site-header .brand img { height: 3.6rem; }
}

@media (min-width: 801px) and (max-width: 980px) {
  .site-nav { gap: 0.85rem; }
  .site-nav a, .nav-group-toggle { font-size: 0.88rem; }
  .site-nav .btn { padding-inline: 0.9rem; }
  .site-header .brand img { height: 2.6rem; }
}

@media (min-width: 801px) and (max-width: 860px) {
  .site-nav { gap: 0.7rem; }
  .site-nav a, .nav-group-toggle { font-size: 0.85rem; }
  .site-header .brand img { height: 2.3rem; }
}

/* Keep the right-most dropdown (About) inside the viewport */
@media (min-width: 801px) {
  .site-nav > .nav-group:last-of-type .nav-submenu { left: auto; right: -1rem; }
}

/* From Insights strip (homepage) */
.x-insights { background: var(--paper); border-top: 0; }
.x-insights .x-help-card h3 { margin: 0; }
.x-insights-all { margin: 1rem 0 0; }
.x-insights-all .x-help-more { text-decoration: none; }
.x-insights-all .x-help-more:hover,
.x-insights-all .x-help-more:focus-visible { text-decoration: underline; }

/* Related reading (articles) and method link (/smb/) */
.article-related ul { margin: 0; padding-left: 1.2rem; }
.article-related li { margin: 0 0 0.5rem; }
.x-method-link { margin-top: 1.25rem; }
.x-method-link a { font-weight: 600; }
