/* ============================================================
   GALMS WAYS TO SUPPORT HUB — CLEAN V2
   Standalone template + standalone namespace (.gws2).
   Mobile card geometry intentionally mirrors the approved
   GALMS Objectives Hub Clean V2 system.
   ============================================================ */

.gws2 {
  --g-green:#007443;
  --g-teal:#39adaf;
  --g-text:#202124;
  --g-muted:#626a65;
  --g-border:#d9e5df;
  --g-soft:#eef8f2;
  --g-cream:#fbfaf6;
  --g-shadow:0 10px 26px rgba(20,74,53,.07);
  position:relative;
  box-sizing:border-box;
  width:100%;
  max-width:1320px;
  margin:0 auto;
  padding:0 24px;
  color:var(--g-text);
  font-family:inherit;
}
.gws2 *, .gws2 *::before, .gws2 *::after { box-sizing:border-box; }
.gws2 a { color:inherit; text-decoration:none; }

/* Page shell: exact full-width content release used by the approved Objectives Hub.
   Only the Ways to Support page content wrappers are changed; site header/footer stay native. */
body.galms-ways-v2-active {
  overflow-x:hidden;
}

body.galms-ways-v2-active #primary,
body.galms-ways-v2-active .content-area,
body.galms-ways-v2-active #inner-wrap .content-container,
body.galms-ways-v2-active .site-main,
body.galms-ways-v2-active article.page,
body.galms-ways-v2-active article.type-page,
body.galms-ways-v2-active .entry-content-wrap,
body.galms-ways-v2-active .entry-content,
body.galms-ways-v2-active .single-content {
  width:100% !important;
  max-width:none !important;
  margin-left:0 !important;
  margin-right:0 !important;
  padding-left:0 !important;
  padding-right:0 !important;
}

body.galms-ways-v2-active #inner-wrap .content-container {
  grid-template-columns:minmax(0,1fr) !important;
}

body.galms-ways-v2-active .gws2 {
  width:100% !important;
  max-width:1320px !important;
  margin-left:auto !important;
  margin-right:auto !important;
}

/* Focus cards have one destination; expand that semantic link over the card. */
.gws2-focus-card { position:relative; cursor:pointer; }
.gws2-focus-card a::after { content:""; position:absolute; inset:0; z-index:2; }
.gws2-focus-card a:focus-visible { outline:none; }
.gws2-focus-card a:focus-visible::after { outline:3px solid rgba(0,116,67,.34); outline-offset:-3px; border-radius:17px; }

/* HERO */
.gws2-hero {
  min-height:440px;
  border-radius:22px;
  overflow:hidden;
  background:
    linear-gradient(90deg,rgba(251,250,246,.98) 0%,rgba(251,250,246,.93) 40%,rgba(251,250,246,.52) 67%,rgba(251,250,246,.08) 100%),
    var(--galms-ways-hero-image);
  background-size:cover;
  background-position:center;
  box-shadow:var(--g-shadow);
}
.gws2-hero-inner { width:min(720px,60%); padding:54px 56px; }
.gws2-kicker,.gws2-small-label { display:inline-block; margin:0 0 14px; color:var(--g-green); font-size:13px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.gws2 h1 { margin:0 0 16px; color:var(--g-green); font-size:clamp(46px,4.2vw,66px); font-weight:400; line-height:1.02; letter-spacing:-.04em; }
.gws2-lead { margin:0 0 12px; max-width:620px; color:#18202b; font-size:20px; font-weight:800; line-height:1.3; }
.gws2-copy { margin:0 0 22px; max-width:620px; color:#3d4741; font-size:16px; line-height:1.48; }
.gws2-actions,.gws2-cta-actions { display:flex; flex-wrap:wrap; gap:10px; }
.gws2-button { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:12px 20px; border:1px solid var(--g-teal); border-radius:13px; background:var(--g-teal); color:#fff!important; font-size:15px; font-weight:800; line-height:1.2; text-align:center; }
.gws2-button.secondary { border-color:#a9cbbb; background:#fff; color:var(--g-green)!important; }

/* SECTIONS */
.gws2-section { margin:46px 0 56px; }
.gws2-section-head { display:flex; align-items:flex-end; justify-content:space-between; gap:22px; margin:0 0 18px; }
.gws2-section-head h2 { margin:0 0 7px; color:var(--g-green); font-size:34px; font-weight:400; line-height:1.1; letter-spacing:-.02em; }
.gws2-section-head p { max-width:820px; margin:0; color:var(--g-muted); font-size:16px; line-height:1.45; }
.gws2-section-head>a { flex:0 0 auto; color:var(--g-green); font-size:15px; font-weight:800; white-space:nowrap; }

/* HOW IT WORKS — exact Objectives Hub rhythm. */
.gws2-flow { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.gws2-flow article { min-width:0; min-height:132px; padding:20px; border:1px solid var(--g-border); border-radius:17px; background:#fff; box-shadow:0 7px 18px rgba(20,74,53,.05); }
.gws2-flow span { display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; margin:0 0 13px; border-radius:999px; background:var(--g-soft); color:var(--g-green); font-size:13px; font-weight:800; }
.gws2-flow h3 { margin:0 0 8px; font-size:21px; font-weight:500; line-height:1.15; }
.gws2-flow p { margin:0; color:var(--g-muted); font-size:14px; line-height:1.4; }

/* PATHWAY CARDS — same structural logic as approved Objective cards. */
.gws2-featured-grid,.gws2-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; align-items:stretch; }
.gws2-grid { padding:16px 18px 18px; }
.gws2-card { display:flex; flex-direction:column; min-width:0; overflow:hidden; border:1px solid var(--g-border); border-radius:17px; background:#fff; box-shadow:0 8px 18px rgba(15,23,42,.06); }
.gws2-card-link { display:flex; flex:1 1 auto; min-width:0; flex-direction:column; color:inherit!important; }
.gws2-card-img { display:block; width:100%; height:138px; object-fit:cover; }
.gws2-card-body { display:flex; flex:1 1 auto; min-width:0; flex-direction:column; padding:18px; }
.gws2-card-body span { display:inline-flex; align-self:flex-start; width:fit-content; max-width:100%; margin:0 0 11px; padding:5px 10px; border-radius:999px; background:var(--g-soft); color:var(--g-green); font-size:10.5px; font-weight:800; line-height:1.1; }
.gws2-card-body h3 { margin:0 0 8px; font-size:20px; font-weight:500; line-height:1.18; }
.gws2-card-body p { margin:0 0 13px; color:var(--g-muted); font-size:14px; line-height:1.38; }
.gws2-card-body strong { display:inline-flex; width:fit-content; margin-top:auto; color:var(--g-green); font-size:15px; font-weight:800; line-height:1.2; }

/* FOCUS AREAS — exact approved Objectives Hub system. */
.gws2-focus-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.gws2-focus-card { display:grid; grid-template-columns:50px minmax(0,1fr); gap:15px; min-width:0; padding:19px; border:1px solid var(--g-border); border-radius:17px; background:#fff; box-shadow:0 7px 18px rgba(20,74,53,.045); }
.gws2-focus-icon { display:block; width:46px; height:46px; min-width:46px; min-height:46px; max-width:46px; max-height:46px; aspect-ratio:1/1; padding:7px; border-radius:999px!important; background:var(--g-soft); object-fit:contain; object-position:center; }
.gws2-focus-body { display:flex; flex-direction:column; min-width:0; }
.gws2-focus-card h3 { margin:0 0 7px; font-size:20px; font-weight:500; line-height:1.18; }
.gws2-focus-card p { margin:0 0 12px; color:var(--g-muted); font-size:14px; line-height:1.38; }
.gws2-focus-card a { display:inline-flex; width:fit-content; margin-top:auto; color:var(--g-green)!important; font-size:15px; font-weight:800; }

/* ACCORDIONS */
.gws2-group-list { display:grid; gap:10px; }
.gws2-group { overflow:hidden; border:1px solid var(--g-border); border-radius:16px; background:#fff; box-shadow:0 5px 14px rgba(15,23,42,.035); }
.gws2-group summary { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:16px; min-height:54px; padding:14px 18px; cursor:pointer; list-style:none; }
.gws2-group summary::-webkit-details-marker { display:none; }
.gws2-group summary span { color:var(--g-green); font-size:18px; font-weight:500; line-height:1.2; }
.gws2-group summary em { color:var(--g-muted); font-size:13px; font-style:normal; white-space:nowrap; }
.gws2-group[open] summary { border-bottom:1px solid var(--g-border); }
.gws2-group-intro { padding:15px 18px 0; color:var(--g-muted); font-size:14.5px; line-height:1.4; }
.gws2-group .gws2-grid { padding:16px 18px 18px; }

/* CTA */
.gws2-cta { margin:42px 0 18px; padding:30px; border:1px solid var(--g-border); border-radius:19px; background:var(--g-soft); }
.gws2-cta h2 { margin:0 0 10px; color:var(--g-green); font-size:32px; font-weight:400; line-height:1.12; }
.gws2-cta p { margin:0 0 18px; color:var(--g-muted); font-size:15px; line-height:1.45; }
.gws2-disclaimer { margin:18px 0 0; color:var(--g-muted); font-size:13px; font-style:italic; line-height:1.45; }

@media (max-width:1100px) {
  .gws2-featured-grid,.gws2-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .gws2-flow,.gws2-focus-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width:767px) {
  /* Exact approved Objectives Hub viewport breakout.
     Parent content wrappers are released above so this cannot be clipped or shifted. */
  body.galms-ways-v2-active .entry-content-wrap,
  body.galms-ways-v2-active .entry-content,
  body.galms-ways-v2-active .single-content {
    overflow:visible !important;
  }

  body.galms-ways-v2-active .gws2 {
    width:100vw !important;
    max-width:100vw !important;
    margin-left:calc(50% - 50vw) !important;
    margin-right:calc(50% - 50vw) !important;
    padding-left:10px !important;
    padding-right:10px !important;
  }

  .gws2-hero { display:flex; flex-direction:column; min-height:0; background:var(--g-cream); border-radius:19px; }
  .gws2-hero::before { content:""; display:block; width:100%; height:170px; flex:0 0 170px; background:var(--galms-ways-hero-image) center/cover no-repeat; }
  .gws2-hero-inner { width:100%; padding:22px 16px 24px; }
  .gws2-kicker,.gws2-small-label { margin-bottom:10px; font-size:10.5px; }
  .gws2 h1 { max-width:98%; margin-bottom:13px; font-size:clamp(33px,8.7vw,40px); line-height:1.03; }
  .gws2-lead { margin-bottom:10px; font-size:15px; line-height:1.34; }
  .gws2-copy { margin-bottom:15px; font-size:14px; line-height:1.4; }
  .gws2-actions,.gws2-cta-actions { display:grid; grid-template-columns:1fr; gap:8px; width:100%; }
  .gws2-button { width:100%; min-height:44px; padding:11px 14px; border-radius:14px; font-size:15px; }

  .gws2-section { margin:30px 0 36px; }
  .gws2-section-head { display:block; margin-bottom:13px; }
  .gws2-section-head h2 { margin-bottom:7px; font-size:clamp(29px,7.6vw,34px); line-height:1.06; }
  .gws2-section-head p { font-size:14px; line-height:1.36; }
  .gws2-section-head>a { display:inline-flex; margin-top:7px; font-size:13.5px; }

  /* 2 x 2 process cards — exact Objectives Hub dimensions. */
  .gws2-flow { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .gws2-flow article { height:100px; min-height:100px; padding:13px; border-radius:15px; overflow:hidden; }
  .gws2-flow span { width:30px; height:30px; margin-bottom:9px; font-size:12px; }
  .gws2-flow h3 { margin:0; font-size:16px; line-height:1.13; }
  .gws2-flow p { display:none; }

  /* Pathway cards = approved Objectives cards: 92px image + compact body.
     No fixed card height; content itself defines the compact height. */
  .gws2-featured-grid,.gws2-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; align-items:stretch; }
  .gws2-group .gws2-grid { padding:10px 10px 12px; }
  .gws2-card { min-height:0; height:auto; border-radius:15px; }
  .gws2-card-link { height:100%; min-height:0; }
  .gws2-card-img { height:92px; min-height:92px; max-height:92px; }
  .gws2-card-body { min-height:150px; height:auto; padding:12px 11px 13px; }
  .gws2-card-body span { margin-bottom:8px; padding:4px 8px; border-radius:999px; font-size:9px; line-height:1.1; }
  .gws2-card-body h3 { display:-webkit-box; overflow:hidden; margin-bottom:6px; font-size:16.5px; line-height:1.14; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
  .gws2-card-body p { display:-webkit-box; overflow:hidden; margin-bottom:9px; font-size:11.8px; line-height:1.31; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
  .gws2-card-body strong { font-size:12.5px; line-height:1.2; }

  /* Focus cards = approved Objectives focus cards, including true circles. */
  .gws2-focus-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .gws2-focus-card { display:flex; flex-direction:column; min-height:175px; padding:11px; gap:0; border-radius:15px; }
  .gws2-focus-icon { width:38px!important; height:38px!important; min-width:38px!important; min-height:38px!important; max-width:38px!important; max-height:38px!important; aspect-ratio:1/1!important; margin:0 0 10px; padding:6px; border-radius:999px!important; }
  .gws2-focus-body { flex:1 1 auto; }
  .gws2-focus-card h3 { margin-bottom:5px; font-size:15.5px; line-height:1.14; }
  .gws2-focus-card p { display:-webkit-box; overflow:hidden; margin-bottom:8px; font-size:11.3px; line-height:1.3; -webkit-box-orient:vertical; -webkit-line-clamp:3; }
  .gws2-focus-card a { margin-top:auto; font-size:13px; line-height:1.22; }

  /* Slim accordion = approved Objectives Hub. */
  .gws2-group-list { gap:8px; }
  .gws2-group { border-radius:15px; }
  .gws2-group summary { min-height:48px; padding:10px 12px; gap:8px; }
  .gws2-group summary span { font-size:14.5px; line-height:1.18; }
  .gws2-group summary em { font-size:11px; }
  .gws2-group-intro { padding:10px 12px 0; font-size:12.5px; line-height:1.34; }

  .gws2-cta { margin-top:32px; padding:20px 16px; border-radius:18px; }
  .gws2-cta h2 { font-size:29px; }
  .gws2-cta p { font-size:14px; }
  .gws2-disclaimer { font-size:12px; }
}

@media (max-width:390px) {
  body.galms-ways-v2-active .gws2 {
    width:100vw !important;
    max-width:100vw !important;
    padding-left:8px !important;
    padding-right:8px !important;
  }
  .gws2-flow,.gws2-featured-grid,.gws2-grid,.gws2-focus-grid { gap:8px; }
  .gws2-card-body h3 { font-size:15.5px; }
  .gws2-focus-card h3 { font-size:14.5px; }
}
