/* Service wayfinding for the continuous-flow fork.
   No new section: the original hero -> ISO -> Community sequence is untouched. Services are reached
   two ways, both built from the page's own parts (mega-menu pattern, kicker triangle, hairlines,
   the two-tone lead-in bar and the ↗ marker):
   1. a "Services" menu in the header
   2. a compact typographic index at the foot of the Community copy column */

/* ---------- 1. Header: Services menu ---------- */
.site-header .services-dropdown .mega-menu{grid-template-columns:1fr}
.site-header .services-dropdown .mega-menu>li>.sub-menu{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px 32px}
.site-header .services-dropdown .mega-menu .sub-menu>li{margin:0 0 12px}
/* One more top-level item: tighten the gaps slightly where the bar is narrowest. */
@media (min-width:1081px) and (max-width:1340px){
  .site-header .main-menu{gap:clamp(12px,1.4vw,20px)}
}
@media (max-width:1080px){
  .site-header .services-dropdown .mega-menu>li>.sub-menu{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 28px}
}
@media (max-width:640px){
  .site-header .services-dropdown .mega-menu>li>.sub-menu{grid-template-columns:1fr}
}

/* ---------- 2. Community: compact service index ---------- */
.impact-copy .sway{max-width:600px;margin-top:clamp(26px,2.6vw,38px)}

/* Label: the page's kicker (two-tone triangle + caps) as a link down to the full Services section,
   followed by the blue/green lead-in bar and a hairline. */
.impact-copy .sway .sway-label{margin:0 0 4px;color:var(--blue,#0d5a92);text-decoration:none}
.impact-copy .sway .sway-label svg{flex:none;width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s}
.impact-copy .sway .sway-label:hover svg,.impact-copy .sway .sway-label:focus-visible svg{transform:translateY(2px)}
.impact-copy .sway .sway-label span{text-decoration:underline;text-decoration-color:transparent;text-decoration-thickness:2px;text-underline-offset:5px;transition:text-decoration-color .2s}
.impact-copy .sway .sway-label:hover span,.impact-copy .sway .sway-label:focus-visible span{text-decoration-color:var(--green-bright,#7cc242)}
.impact-copy .sway .sway-label::after{
  content:"";flex:1 1 24px;height:6px;margin-left:4px;
  background:
    linear-gradient(var(--blue-bright,#1b8bd0),var(--blue-bright,#1b8bd0)) 0 50% / 40px 6px no-repeat,
    linear-gradient(var(--green-bright,#7cc242),var(--green-bright,#7cc242)) 46px 50% / 20px 6px no-repeat,
    linear-gradient(var(--line,#d5dee5),var(--line,#d5dee5)) 0 50% / 100% 1px no-repeat
}

/* Four links, two columns, filled top-to-bottom so reading and tab order match. */
.impact-copy .sway ul{display:grid;grid-auto-flow:column;grid-template-rows:repeat(2,auto);grid-template-columns:minmax(0,.9fr) minmax(0,1.3fr);column-gap:clamp(20px,2.4vw,32px);margin:0;padding:0;list-style:none}
.impact-copy .sway li{--accent:var(--blue,#0d5a92);--accent-bright:var(--blue-bright,#1b8bd0);min-width:0;margin:0;padding:0}
.impact-copy .sway li:nth-child(even){--accent:var(--green,#2c7a1c);--accent-bright:var(--green-bright,#7cc242)}
.impact-copy .sway li a{
  display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:9px 0;
  border-bottom:1px solid var(--line,#d5dee5);color:var(--ink,#0d1a22);
  font-size:clamp(15px,1.15vw,17px);font-weight:720;line-height:1.25;letter-spacing:-.015em;text-decoration:none;
  transition:border-color .2s
}
.impact-copy .sway li a span{
  background:linear-gradient(transparent 86%,var(--accent-bright) 86%,var(--accent-bright) 97%,transparent 97%) 0 0 / 0 100% no-repeat;
  transition:background-size .28s ease
}
.impact-copy .sway li a svg{flex:none;width:15px;height:15px;color:var(--accent);fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s}
.impact-copy .sway li a:hover,.impact-copy .sway li a:focus-visible{border-bottom-color:var(--accent-bright)}
.impact-copy .sway li a:hover span,.impact-copy .sway li a:focus-visible span{background-size:100% 100%}
.impact-copy .sway li a:hover svg,.impact-copy .sway li a:focus-visible svg{transform:translate(2px,-2px)}
.impact-copy .sway a:focus-visible{outline:3px solid var(--blue,#0d5a92);outline-offset:3px}

/* The index adds a little height to the copy column, so trim its vertical padding on the desktop
   spread (the photo column simply follows the row height). */
@media (min-width:901px){
  .impact .recipients .recipients-inner{padding-top:clamp(24px,2.8vw,44px);padding-bottom:clamp(24px,2.8vw,44px)}
}
@media (max-width:900px){
  .impact-copy .sway{margin-top:28px}
}
@media (max-width:520px){
  .impact-copy .sway ul{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:20px}
  .impact-copy .sway li a{gap:8px;font-size:15px}
  .impact-copy .sway li a svg{width:13px;height:13px}
}
@media (prefers-reduced-motion:reduce){
  .impact-copy .sway .sway-label svg,.impact-copy .sway .sway-label span,
  .impact-copy .sway li a,.impact-copy .sway li a span,.impact-copy .sway li a svg{transition:none}
  .impact-copy .sway .sway-label:hover svg,.impact-copy .sway li a:hover svg,
  .impact-copy .sway li a:focus-visible svg{transform:none}
}
