/* ============================================================
   GALMS OBJECTIVES HUB — CLEAN V3.2 THEME SHELL
   Keep the normal WordPress/Kadence template so the real site header
   and footer render exactly as the theme expects. Only the Objectives
   page CONTENT wrappers are released to full width.
   ============================================================ */
body.galms-objectives-clean-v32-active {
  overflow-x:hidden;
}

/* Objectives page content shell only — do NOT touch #page, .site,
   header, footer, or global theme containers. */
body.galms-objectives-clean-v32-active #primary,
body.galms-objectives-clean-v32-active .content-area,
body.galms-objectives-clean-v32-active #inner-wrap .content-container,
body.galms-objectives-clean-v32-active .site-main,
body.galms-objectives-clean-v32-active article.page,
body.galms-objectives-clean-v32-active article.type-page,
body.galms-objectives-clean-v32-active .entry-content-wrap,
body.galms-objectives-clean-v32-active .entry-content,
body.galms-objectives-clean-v32-active .single-content {
  width:100% !important;
  max-width:none !important;
  margin-left:0 !important;
  margin-right:0 !important;
}

body.galms-objectives-clean-v32-active #primary,
body.galms-objectives-clean-v32-active .content-area,
body.galms-objectives-clean-v32-active #inner-wrap .content-container,
body.galms-objectives-clean-v32-active .site-main,
body.galms-objectives-clean-v32-active article.page,
body.galms-objectives-clean-v32-active article.type-page,
body.galms-objectives-clean-v32-active .entry-content-wrap,
body.galms-objectives-clean-v32-active .entry-content,
body.galms-objectives-clean-v32-active .single-content {
  padding-left:0 !important;
  padding-right:0 !important;
}

/* Remove only the theme's content-column max width when Kadence uses
   a grid/content wrapper. Header and footer are outside this scope. */
body.galms-objectives-clean-v32-active #inner-wrap .content-container {
  grid-template-columns:minmax(0,1fr) !important;
}

.galms-objectives-clean-v32-active .goh3 {
  width:100% !important;
  max-width:1320px !important;
  margin-left:auto !important;
  margin-right:auto !important;
}

@media (max-width:767px) {
  /* Full-viewport content breakout. This releases ONLY the Objectives Hub
     from the theme content column while leaving the site header/footer alone. */
  body.galms-objectives-clean-v32-active .entry-content-wrap,
  body.galms-objectives-clean-v32-active .entry-content,
  body.galms-objectives-clean-v32-active .single-content {
    overflow:visible !important;
  }

  .galms-objectives-clean-v32-active .goh3 {
    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;
  }
}

/* ============================================================
   GALMS OBJECTIVES HUB — CLEAN V3
   Standalone namespace. No legacy .galms-objectives-hub selectors.
   Mobile targets:
   - How objectives connect = compact 2 x 2 cards like homepage
   - Objective cards = 2 per row, image top + white body
   - Accordions = slim rows
   - Focus areas = 2 per row
   - Featured reading = 2 per row
   ============================================================ */

.goh3 {
  --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;
}
.goh3 *, .goh3 *::before, .goh3 *::after { box-sizing:border-box; }
.goh3 a { color:inherit; text-decoration:none; }



/* WHOLE-CARD LINKS — each of these cards contains one unique destination.
   The existing visible link remains the semantic/keyboard link; its pseudo
   element safely expands the hit target over the whole card. */
.goh3-objective-card,
.goh3-focus-card,
.goh3-reading-card {
  position:relative;
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.goh3-objective-card .goh3-card-link::after,
.goh3-focus-card .goh3-card-link::after,
.goh3-reading-card .goh3-card-link::after {
  content:"";
  position:absolute;
  inset:0;
  z-index:2;
}

.goh3-objective-card:hover,
.goh3-focus-card:hover,
.goh3-reading-card:hover {
  transform:translateY(-1px);
  border-color:#bdd4c8;
  box-shadow:0 10px 22px rgba(15,23,42,.09);
}

.goh3-objective-card .goh3-card-link:focus-visible,
.goh3-focus-card .goh3-card-link:focus-visible,
.goh3-reading-card .goh3-card-link:focus-visible {
  outline:none;
}

.goh3-objective-card .goh3-card-link:focus-visible::after,
.goh3-focus-card .goh3-card-link:focus-visible::after,
.goh3-reading-card .goh3-card-link:focus-visible::after {
  outline:3px solid rgba(0,116,67,.34);
  outline-offset:-3px;
  border-radius:17px;
}

/* HERO */
.goh3-hero {
  min-height:440px;
  border-radius:22px;
  overflow:hidden;
  background:
    linear-gradient(90deg,rgba(251,250,246,.98) 0%,rgba(251,250,246,.93) 38%,rgba(251,250,246,.52) 64%,rgba(251,250,246,.08) 100%),
    var(--hero);
  background-size:cover;
  background-position:center;
  box-shadow:var(--g-shadow);
}
.goh3-hero-inner { width:min(660px,56%); padding:54px 56px; }
.goh3-kicker { display:inline-block; margin:0 0 14px; color:var(--g-green); font-size:13px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.goh3 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; }
.goh3-lead { margin:0 0 22px; max-width:590px; color:#18202b; font-size:20px; font-weight:800; line-height:1.3; }
.goh3-actions { display:flex; flex-wrap:wrap; gap:10px; }
.goh3-btn { 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; }
.goh3-btn.secondary { border-color:#a9cbbb; background:#fff; color:var(--g-green)!important; }

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

/* HOW IT CONNECTS — same visual logic as homepage */
.goh3-flow { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.goh3-flow-card { 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); }
.goh3-num { 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; }
.goh3-flow-card h3 { margin:0 0 8px; font-size:21px; font-weight:500; line-height:1.15; }
.goh3-flow-card p { margin:0; color:var(--g-muted); font-size:14px; line-height:1.4; }

/* OBJECTIVE CARDS — structural image top, white body */
.goh3-objective-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; align-items:stretch; }
.goh3-objective-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); }
.goh3-objective-img { display:block; width:100%; height:138px; object-fit:cover; }
.goh3-objective-body { display:flex; flex:1 1 auto; flex-direction:column; min-width:0; padding:18px; }
.goh3-pill { 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; text-transform:uppercase; }
.goh3-objective-body h3, .goh3-reading-body h3 { margin:0 0 8px; font-size:20px; font-weight:500; line-height:1.18; }
.goh3-objective-body p, .goh3-reading-body p { margin:0 0 13px; color:var(--g-muted); font-size:14px; line-height:1.38; }
.goh3-card-link { display:inline-flex; width:fit-content; margin-top:auto; color:var(--g-green)!important; font-size:15px; font-weight:800; }

/* ACCORDIONS */
.goh3-theme-list { display:grid; gap:10px; }
.goh3-theme { overflow:hidden; border:1px solid var(--g-border); border-radius:16px; background:#fff; box-shadow:0 5px 14px rgba(15,23,42,.035); }
.goh3-theme 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; }
.goh3-theme summary::-webkit-details-marker { display:none; }
.goh3-theme summary strong { color:var(--g-green); font-size:18px; font-weight:500; line-height:1.2; }
.goh3-theme summary em { color:var(--g-muted); font-size:13px; font-style:normal; white-space:nowrap; }
.goh3-theme[open] summary { border-bottom:1px solid var(--g-border); }
.goh3-theme-intro { padding:15px 18px 0; color:var(--g-muted); font-size:14.5px; line-height:1.4; }
.goh3-theme .goh3-objective-grid { padding:16px 18px 18px; }

/* FOCUS AREAS */
.goh3-focus-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.goh3-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); }
.goh3-focus-card img { width:46px; height:46px; padding:7px; border-radius:999px; background:var(--g-soft); object-fit:contain; }
.goh3-focus-card>div { display:flex; flex-direction:column; min-width:0; }
.goh3-focus-card h3 { margin:0 0 7px; font-size:20px; font-weight:500; line-height:1.18; }
.goh3-focus-card p { margin:0 0 12px; color:var(--g-muted); font-size:14px; line-height:1.38; }

/* READING */
.goh3-reading-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; }
.goh3-reading-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); }
.goh3-reading-card img { width:100%; height:150px; object-fit:cover; }
.goh3-reading-body { display:flex; flex:1 1 auto; flex-direction:column; min-width:0; padding:18px; }

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

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

@media (max-width:767px) {
  /* The theme shell stays native; .goh3 itself is already broken out to 100vw above. */
  .goh3 {
    width:100vw;
    max-width:100vw;
    padding-left:10px;
    padding-right:10px;
  }

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

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

  /* 2 x 2 exactly like homepage rhythm */
  .goh3-flow { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .goh3-flow-card { height:100px; min-height:100px; padding:13px; border-radius:15px; overflow:hidden; }
  .goh3-num { width:30px; height:30px; margin-bottom:9px; font-size:12px; }
  .goh3-flow-card h3 { margin:0; font-size:16px; line-height:1.13; }
  .goh3-flow-card p { display:none; }

  /* Objective cards stay 2 across on phone */
  .goh3-objective-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .goh3-objective-img { height:92px; }
  .goh3-objective-body { min-height:150px; padding:12px 11px 13px; }
  .goh3-pill { margin-bottom:8px; padding:4px 8px; font-size:9px; }
  .goh3-objective-body h3 { margin-bottom:6px; font-size:16.5px; line-height:1.14; }
  .goh3-objective-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; }
  .goh3-card-link { font-size:12.5px; line-height:1.2; }

  /* Slim accordion */
  .goh3-theme-list { gap:8px; }
  .goh3-theme summary { min-height:48px; padding:10px 12px; gap:8px; }
  .goh3-theme summary strong { font-size:14.5px; }
  .goh3-theme summary em { font-size:11px; }
  .goh3-theme-intro { padding:10px 12px 0; font-size:12.5px; line-height:1.34; }
  .goh3-theme .goh3-objective-grid { padding:10px 10px 12px; }

  /* 2 focus cards across */
  .goh3-focus-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .goh3-focus-card { display:flex; flex-direction:column; min-height:175px; padding:11px; border-radius:15px; }
  .goh3-focus-card img { width:38px; height:38px; margin-bottom:10px; padding:6px; }
  .goh3-focus-card>div { flex:1 1 auto; }
  .goh3-focus-card h3 { margin-bottom:5px; font-size:15.5px; line-height:1.14; }
  .goh3-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; }
  .goh3-focus-card .goh3-card-link { margin-top:auto; }

  /* Featured reading always 2 across on phone */
  .goh3-reading-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .goh3-reading-card img { height:94px; }
  .goh3-reading-body { min-height:150px; padding:12px 11px 13px; }
  .goh3-reading-body h3 { display:-webkit-box; overflow:hidden; margin-bottom:6px; font-size:15.5px; line-height:1.14; -webkit-box-orient:vertical; -webkit-line-clamp:3; }
  .goh3-reading-body p { display:-webkit-box; overflow:hidden; margin-bottom:8px; font-size:11.3px; line-height:1.3; -webkit-box-orient:vertical; -webkit-line-clamp:2; }

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

@media (max-width:390px) {
  .goh3 {
    width:100vw;
    max-width:100vw;
    padding-left:8px;
    padding-right:8px;
  }
  .goh3-flow { gap:8px; }
  .goh3-objective-grid,.goh3-focus-grid,.goh3-reading-grid { gap:8px; }
  .goh3-objective-body h3 { font-size:15.5px; }
  .goh3-focus-card h3,.goh3-reading-body h3 { font-size:14.5px; }
}
