/* ============================================================================
   United Way of Rhode Island — Get Help / 211
   Built 1:1 to the client comp: a photo hero with a floating call card, one
   long navy expanse (why call / categories / focused help / fine print), then
   the shared "United is the Way" + newsroom close and the wave footer.
   Sits on styles.v2 + v3 + pages.css + rail.css + news.css.
   ========================================================================== */

.help-page { background: var(--uw-navy); }

/* ── the navy body: ONE continuous ground for why / cats / focus / usda ──
   The gradient lives here, not on each section, so there are no seams or
   colour steps where the sections meet.

   Its top edge is the wave. Rather than lay a separate shape over the hero
   and try to match its fill to this gradient — which can only ever be an
   approximation, and read as a seam — the element itself is cut to that
   curve with a mask, so the curve IS this gradient. Two mask layers: the
   wave across the top, a solid block for everything below it. */
.uwh-body {
  --uwh-wave: clamp(44px, 5vw, 78px);
  position: relative;
  z-index: 2;
  margin-top: calc(-1 * var(--uwh-wave));
  color: #fff;
  background:
    radial-gradient(90% 40% at 88% 2%, #34419C 0%, rgba(52, 65, 156, 0) 60%),
    linear-gradient(180deg, #202972 0%, #21296B 46%, #1B2360 100%);
  -webkit-mask-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0 46 C 360 6 1080 6 1440 46 L1440 91 L0 91 Z' fill='%23fff'/%3E%3C/svg%3E"),
    linear-gradient(#000, #000);
          mask-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0 46 C 360 6 1080 6 1440 46 L1440 91 L0 91 Z' fill='%23fff'/%3E%3C/svg%3E"),
    linear-gradient(#000, #000);
  -webkit-mask-size: 100% var(--uwh-wave), 100% calc(100% - var(--uwh-wave) + 1px);
          mask-size: 100% var(--uwh-wave), 100% calc(100% - var(--uwh-wave) + 1px);
  -webkit-mask-position: top center, bottom center;
          mask-position: top center, bottom center;
  -webkit-mask-repeat: no-repeat, no-repeat;
          mask-repeat: no-repeat, no-repeat;
}
.uwh-why,
.uwh-cats,
.uwh-focus,
.uwh-usda { position: relative; background: transparent; color: #fff; }

/* ═══════════════════════════════════════════════════════════════════════════
   HERO — full-bleed photo, brand rings, floating call card
   ═══════════════════════════════════════════════════════════════════════════ */
.uwh-hero {
  position: relative;
  isolation: isolate;
  background: var(--uw-navy);
  /* top: room for the fixed header; bottom: room for the card to fully clear
     the wave, so its own last line is never the thing the wave cuts across */
  padding: clamp(150px, 20vw, 300px) 0 clamp(76px, 9vw, 128px);
}
.uwh-hero__photo {
  position: absolute; inset: 0 0 auto auto;
  width: min(72%, 1040px); height: 100%;
  z-index: 0;
}
.uwh-hero__photo::after {                    /* fade the photo's left edge into navy */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(95deg, var(--uw-navy) 2%, rgba(33, 41, 107, .35) 26%, rgba(33, 41, 107, 0) 58%);
}
.uwh-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 32%; }

/* one soft brand ring, its arc curving up from behind the card — not the busy
   double ring, which only ever showed as vertical slivers this far off-edge */
.uwh-hero__rings {
  position: absolute; z-index: 1; pointer-events: none;
  left: clamp(-300px, -18vw, -180px); bottom: clamp(-160px, -12vw, -100px);
  width: clamp(360px, 34vw, 560px); aspect-ratio: 1; border-radius: 50%;
  border: clamp(14px, 1.6vw, 22px) solid rgba(255, 255, 255, .06);
  box-shadow: 0 0 0 clamp(10px, 1.2vw, 16px) rgba(255, 186, 0, .12);
}

.uwh-hero > .uw-wrap { position: relative; z-index: 2; }

.uwh-hero__card {
  width: min(100%, 468px);
  background: #fff;
  border-radius: 26px;
  padding: clamp(26px, 3vw, 40px);
  box-shadow: 0 40px 90px rgba(6, 12, 44, .5);
}
.uwh-hero__mark { display: block; width: clamp(96px, 9vw, 128px); height: auto; margin-bottom: clamp(16px, 2vw, 24px); }
.uwh-hero__card h1 {
  font-family: var(--uw-display); font-weight: 700; text-transform: uppercase;
  color: var(--uw-navy); font-size: clamp(30px, 3.5vw, 48px); line-height: 1.02;
  margin: 0 0 clamp(20px, 2.4vw, 30px); max-width: 12ch;
}
.uwh-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.uwh-pill {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 22px; border-radius: 40px;
  font-family: var(--uw-display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(13px, 1.05vw, 15px); letter-spacing: .02em;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.uwh-pill svg { flex: none; }
.uwh-pill__sep { width: 1px; height: 18px; background: currentColor; opacity: .4; }
.uwh-pill--call { background: var(--uw-blue); color: #fff; }
.uwh-pill--call:hover { background: #0039A0; transform: translateY(-2px); box-shadow: 0 12px 24px rgba(0, 68, 181, .34); }
.uwh-pill--text { background: var(--uw-gold); color: var(--uw-navy); }
.uwh-pill--text:hover { background: #EDB412; transform: translateY(-2px); box-shadow: 0 12px 24px rgba(255, 186, 0, .34); }
.uwh-hero__fine {
  margin: clamp(16px, 2vw, 22px) 0 0;
  font-size: 13px; line-height: 1.5; color: rgba(35, 31, 32, .6); font-weight: 700;
}
.uwh-hero__fine a { color: var(--uw-blue); }



@media (max-width: 900px) {
  /* the photo leads here instead of being a backdrop, so the deep top padding
     the desktop layout needs would just be a dead navy band above it */
  .uwh-hero { padding-top: 0; }
  .uwh-hero__photo { position: relative; width: 100%; height: clamp(280px, 60vw, 420px); }
  .uwh-hero__photo::after { background: linear-gradient(180deg, rgba(33,41,107,0) 40%, var(--uw-navy) 99%); }
  .uwh-hero__rings { top: 34%; }
  .uwh-hero > .uw-wrap { margin-top: clamp(-90px, -16vw, -60px); }
  .uwh-hero__card { width: min(100%, 520px); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   WHY CALL — copy at left, white checklist card at right
   ═══════════════════════════════════════════════════════════════════════════ */
.uwh-why { padding: clamp(48px, 6vw, 100px) 0 clamp(40px, 4.6vw, 76px); }
.uwh-why__grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1fr);
  gap: clamp(28px, 4.4vw, 76px);
  align-items: center;
}
.uwh-why__intro h2 {
  font-family: var(--uw-display); font-weight: 700; text-transform: uppercase;
  color: #fff; font-size: clamp(30px, 4vw, 58px); line-height: 1.0;
  margin: 0; position: relative; padding-top: clamp(16px, 1.8vw, 24px);
}
.uwh-why__intro h2::before {
  content: ""; position: absolute; left: 0; top: 0;
  width: clamp(46px, 5vw, 68px); height: 4px; border-radius: 2px; background: var(--uw-gold);
}
.uwh-why__lead {
  margin: clamp(16px, 1.8vw, 24px) 0 0;
  font-size: clamp(16px, 1.35vw, 21px); line-height: 1.5; color: rgba(255, 255, 255, .82);
  max-width: 30ch;
}

/* the checklist card — a connected timeline of gold/blue check discs */
.uwh-check {
  list-style: none; margin: 0; padding: clamp(24px, 3vw, 44px);
  background: #fff; border-radius: 22px;
  box-shadow: 0 34px 74px rgba(6, 12, 44, .34);
  display: grid; gap: clamp(14px, 1.7vw, 22px);
}
.uwh-check li {
  position: relative;
  display: grid; grid-template-columns: 30px 1fr; gap: 16px; align-items: start;
  font-size: clamp(14px, 1.06vw, 17px); line-height: 1.5; color: var(--uw-navy);
  font-weight: 700;
}

.uwh-check li::before {                      /* the check disc */
  content: "";
  width: 28px; height: 28px; border-radius: 50%; z-index: 1;
  background: var(--uw-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.uwh-check li::after {                       /* the connector line to the next disc */
  content: ""; position: absolute; left: 14px; top: 28px; bottom: calc(-1 * clamp(14px, 1.7vw, 22px) - 1px);
  width: 2px; background: rgba(0, 68, 181, .2);
}
.uwh-check li:last-child::after { display: none; }
.uwh-check li:first-child::before {          /* the comp lights the first disc gold */
  background-color: var(--uw-gold);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2321296B' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
}
@media (max-width: 780px) {
  .uwh-why__grid { grid-template-columns: 1fr; align-items: start; }
  .uwh-why__lead { max-width: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   NOT SURE WHETHER TO CALL — masonry of white resource cards
   ═══════════════════════════════════════════════════════════════════════════ */
.uwh-cats { padding: clamp(32px, 4vw, 60px) 0 clamp(40px, 5vw, 84px); overflow: hidden; }
.uwh-cats::before {                          /* a faint ring ghost, low-right */
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: clamp(440px, 46vw, 780px); aspect-ratio: 1; border-radius: 50%;
  right: clamp(-320px, -18vw, -200px); bottom: clamp(-260px, -18vw, -160px);
  background: radial-gradient(circle at 50% 50%,
    transparent 0 44%, rgba(167, 210, 255, .12) 44% 57%,
    transparent 57% 70%, rgba(167, 210, 255, .08) 70% 84%, transparent 84%);
}
.uwh-cats > .uw-wrap { position: relative; z-index: 1; }
.uwh-cats__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 18px 32px; margin-bottom: clamp(28px, 3.4vw, 50px);
}
.uwh-cats__head h2 {
  font-family: var(--uw-display); font-weight: 700; text-transform: uppercase;
  color: #fff; font-size: clamp(28px, 3.8vw, 54px); line-height: 1.0; margin: 0;
}
.uwh-cats__head p { margin: clamp(14px, 1.6vw, 22px) 0 0; font-weight: 700; color: rgba(255, 255, 255, .72); font-size: clamp(14px, 1.1vw, 17px); }

/* the gold arrow pill from the comp */
.uwh-dirbtn {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--uw-gold); color: var(--uw-navy);
  font-family: var(--uw-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(13px, 1.05vw, 15px); letter-spacing: .02em;
  padding: 10px 12px 10px 22px; border-radius: 40px;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.uwh-dirbtn:hover { background: #EDB412; transform: translateY(-2px); box-shadow: 0 14px 28px rgba(255, 186, 0, .32); }
.uwh-dirbtn__go {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%; background: #fff; color: var(--uw-navy); flex: none;
}

/* masonry: real column flow so cards stagger like the comp */
.uwh-cats__grid { columns: 3 260px; column-gap: clamp(16px, 1.8vw, 26px); }
.uwh-cat {
  break-inside: avoid;
  margin: 0 0 clamp(16px, 1.8vw, 26px);
  background: #fff;
  border-radius: 18px;
  padding: clamp(20px, 2.2vw, 30px);
  box-shadow: 0 18px 38px rgba(6, 12, 44, .26);
  position: relative; overflow: hidden;
  transition: transform .4s cubic-bezier(.22, 1, .36, 1), box-shadow .4s ease;
}
.uwh-cat:hover { transform: translateY(-5px); box-shadow: 0 30px 56px rgba(6, 12, 44, .38); }
.uwh-cat::after {                            /* pointer-tracked sheen, like the board cards */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 0%), rgba(0, 68, 181, .1), transparent 62%);
  transition: opacity .35s ease;
}
.uwh-cat:hover::after { opacity: 1; }
.uwh-cat__top { display: flex; align-items: flex-start; gap: 14px; margin-bottom: clamp(12px, 1.4vw, 18px); }
.uwh-cat__top h3 {
  font-family: var(--uw-body); font-weight: 900; text-transform: none; letter-spacing: 0;
  font-size: clamp(15px, 1.25vw, 19px); line-height: 1.22; color: var(--uw-navy); margin: 0; flex: 1;
}
.uwh-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.uwh-cat__icon {
  width: 44px; height: 44px; flex: none; padding: 9px; border-radius: 50%;
  background: rgba(0, 68, 181, .1); color: var(--uw-blue);
  transition: background-color .3s ease, color .3s ease, transform .4s cubic-bezier(.22, 1, .36, 1);
}
.uwh-cat:hover .uwh-cat__icon { background: var(--uw-blue); color: #fff; transform: rotate(-6deg) scale(1.06); }
.uwh-cat ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.uwh-cat li {
  padding-left: 18px; position: relative;
  font-size: clamp(13px, 1vw, 15px); line-height: 1.45; color: rgba(35, 31, 32, .82);
}
.uwh-cat li::before {
  content: ""; position: absolute; left: 3px; top: .62em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--uw-blue);
}
.uwh-cat a { color: var(--uw-blue); text-underline-offset: 2px; }

/* the Point card carries a paragraph rather than a list, but stays a white card */
.uwh-cat--point p { margin: 0; font-size: clamp(13px, 1vw, 15px); line-height: 1.55; color: rgba(35, 31, 32, .82); }

@media (max-width: 560px) { .uwh-cats__grid { columns: 1; } }

/* ═══════════════════════════════════════════════════════════════════════════
   FOCUSED HELP — two white cards on navy (opioid, gambling)
   ═══════════════════════════════════════════════════════════════════════════ */
.uwh-focus { padding: clamp(8px, 2vw, 24px) 0 clamp(44px, 5.4vw, 92px); }
.uwh-focus__grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 40px);
  max-width: min(var(--uw-max), 1180px); margin: 0 auto;
}
.uwh-focus .uw-workcard { background: #fff; box-shadow: 0 24px 50px rgba(6, 12, 44, .3); }
/* v2 gives every workcard body a pale-blue ground; on navy these read as white
   cards in the comp, so the body has to be told otherwise */
.uwh-focus .uw-workcard__body {
  background: #fff;
  display: flex; flex-direction: column; gap: clamp(12px, 1.4vw, 18px);
}
.uwh-focus .uw-workcard__body p { margin: 0; flex: 1; }
@media (max-width: 720px) { .uwh-focus__grid { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════════════════════════════
   USDA — the pale-blue fine-print box floating on navy
   ═══════════════════════════════════════════════════════════════════════════ */
.uwh-usda { padding: 0 0 clamp(48px, 6vw, 96px); }
.uwh-usda__box {
  background: var(--uw-blue-pale);
  border-radius: clamp(20px, 2.4vw, 34px);
  padding: clamp(28px, 3.6vw, 54px) clamp(24px, 3.4vw, 60px);
  max-width: min(var(--uw-max), 1240px); margin: 0 auto;
  color: var(--uw-navy);
}
.uwh-usda__cols { columns: 2 300px; column-gap: clamp(28px, 3vw, 52px); margin-bottom: 1em; }
.uwh-usda__cols p:first-child { margin-top: 0; }
.uwh-usda p { font-size: clamp(11.5px, .9vw, 13.5px); line-height: 1.62; margin: 0 0 1em; }
.uwh-usda a { color: var(--uw-blue); }
.uwh-usda__contact {
  display: flex; flex-wrap: wrap; gap: clamp(16px, 2.4vw, 40px);
  margin: 0 0 1em; padding: clamp(14px, 1.6vw, 20px) 0; border-block: 1px solid rgba(33, 41, 107, .22);
}
.uwh-usda__contact > div { display: flex; gap: 12px; align-items: baseline; max-width: 30ch; }
.uwh-usda__contact dt {
  font-family: var(--uw-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(12px, 1vw, 14px); letter-spacing: .03em; flex: none;
}
.uwh-usda__contact dd { margin: 0; font-size: clamp(11.5px, .9vw, 13.5px); line-height: 1.5; }
.uwh-usda__eq { margin-bottom: 0 !important; font-weight: 700; }

/* ═══════════════════════════════════════════════════════════════════════════
   CLOSE — the navy body hands to the white "United is the Way" on a clean
   straight seam (the comp changes ground here on purpose). The straddling
   card + newsroom band are the shared component and lap themselves.
   ═══════════════════════════════════════════════════════════════════════════ */
/* the white close rises out of the navy on a curved shoulder rather than
   meeting it on a hard horizontal line — the navy simply runs on behind it */
.uwh-body + .uwn-outro {
  position: relative; z-index: 1;
  margin-top: clamp(-44px, -4vw, -26px);
  border-radius: clamp(30px, 4vw, 58px) clamp(30px, 4vw, 58px) 0 0;
}
@media (max-width: 640px) {
  .uwh-body + .uwn-outro { margin-top: 0; border-radius: 0; }
}

/* ── each reason appears on its own, as that row scrolls into view — not
   the whole card firing together (see the inline script) ─────────────── */
.uw-js .uwh-check li { opacity: 0; transform: translateY(16px) scale(.98); }
.uw-js .uwh-check li.is-in {
  opacity: 1; transform: none;
  transition: opacity .5s ease, transform .55s cubic-bezier(.22, 1, .36, 1);
}

@media (prefers-reduced-motion: reduce) {
  .uw-js .uwh-check li { opacity: 1 !important; transform: none !important; transition: none; }
  .uwh-cat, .uwh-pill, .uwh-dirbtn { transition: none; }
}
