/*
Theme Name: IWG TTP Global
Theme URI: https://iwgttp.org
Author: IWG TTP
Description: WordPress theme for the International Working Group on TTP.
Version: 1.4.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: iwgttp-global
*/

:root {
  --iwg-blue: #2878c4;
  --iwg-blue-dark: #16578f;
  --iwg-navy: #123247;
  --iwg-ink: #16222b;
  --iwg-slate: #4a5259;
  --iwg-sky: #9dd5ef;
  --iwg-cream: #e5e3dc;
  --iwg-paper: #f7f6f2;
  --iwg-white: #ffffff;
  --iwg-coral: #ef6b68;
  --iwg-gold: #f2c65f;
  --iwg-green: #9bc95d;
  --iwg-purple: #9e78c9;
  --iwg-radius: 22px;
  --iwg-shadow: 0 18px 50px rgba(18, 50, 71, .10);
  --iwg-max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--iwg-white);
  color: var(--iwg-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--iwg-blue-dark); text-underline-offset: 3px; }
a:hover { color: var(--iwg-blue); }

h1, h2, h3, h4, .display-type {
  margin-top: 0;
  color: var(--iwg-navy);
  font-family: "Arial Narrow", "Roboto Condensed", Impact, ui-sans-serif, sans-serif;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: .98;
  text-transform: uppercase;
}
h1 { font-size: clamp(3.2rem, 8vw, 7rem); }
h2 { font-size: clamp(2.4rem, 5vw, 4.6rem); }
h3 { font-size: clamp(1.55rem, 2.4vw, 2.1rem); line-height: 1.05; }

.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1; overflow: hidden; }

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  border-bottom: 1px solid rgba(18, 50, 71, .08);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
}
.header-inner {
  width: min(calc(100% - 40px), var(--iwg-max));
  min-height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-branding {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  min-width: 0;
}
.custom-logo-link {
  display: flex;
  align-items: center;
  line-height: 0;
  overflow: visible;
}
.custom-logo {
  display: block;
  max-height: 68px;
  width: auto;
  max-width: 210px;
  object-fit: contain;
}
.brand-fallback {
  color: var(--iwg-navy);
  font-size: 1.2rem;
  font-weight: 850;
  letter-spacing: .02em;
  text-decoration: none;
}
.primary-nav { margin-left: auto; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 26px; }
.primary-nav a { color: var(--iwg-navy); font-size: .9rem; font-weight: 700; text-decoration: none; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--iwg-blue); }
.header-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--iwg-blue);
  color: #fff;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(40,120,196,.22);
}
.header-cta:hover { background: var(--iwg-blue-dark); color: #fff; }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--iwg-navy); font-size: 1.5rem; cursor: pointer; }

.entry-content > *:not(.alignfull):not(.alignwide) { width: min(calc(100% - 40px), 920px); margin-left: auto; margin-right: auto; }
.entry-content > .alignwide { width: min(calc(100% - 40px), var(--iwg-max)); margin-left: auto; margin-right: auto; }
.entry-content > .alignfull { width: 100%; }
.entry-content p { margin-top: 0; margin-bottom: 1.3em; }
.entry-content .wp-block-group { margin-top: 0; margin-bottom: 0; }

.iwg-hero {
  position: relative;
  min-height: min(760px, 82vh);
  padding: clamp(70px, 10vw, 140px) 0 90px;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 18%, rgba(157,213,239,.85) 0 7%, transparent 30%),
    radial-gradient(circle at 76% 75%, rgba(242,198,95,.28), transparent 26%),
    linear-gradient(135deg, #f8fbfd 0%, #edf5fa 48%, #e7e4dc 100%);
}
.iwg-hero:before, .iwg-hero:after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: .9;
  filter: saturate(115%);
}
.iwg-hero:before {
  width: 520px; height: 520px; right: -170px; top: -180px;
  border: 74px solid rgba(40,120,196,.12);
  box-shadow: 0 0 0 28px rgba(239,107,104,.08), 0 0 0 58px rgba(155,201,93,.08);
}
.iwg-hero:after {
  width: 210px; height: 210px; right: 16%; bottom: -110px;
  border: 34px solid rgba(158,120,201,.12);
}
.iwg-hero .wp-block-group__inner-container { position: relative; z-index: 2; }
.iwg-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px !important;
  padding: 8px 12px;
  border: 1px solid rgba(40,120,196,.20);
  border-radius: 999px;
  background: rgba(255,255,255,.66);
  color: var(--iwg-blue-dark);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.iwg-kicker:before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--iwg-coral); box-shadow: 13px 0 0 var(--iwg-gold), 26px 0 0 var(--iwg-green), 39px 0 0 var(--iwg-blue); margin-right: 34px; }
.iwg-hero h1 { max-width: 1050px; margin-bottom: 28px; }
.iwg-hero .hero-lede { max-width: 780px; color: #2f4656; font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.55; }
.iwg-hero .wp-block-buttons { margin-top: 34px; gap: 12px; }
.wp-block-button__link {
  border-radius: 999px !important;
  padding: 14px 22px !important;
  background: var(--iwg-blue) !important;
  color: #fff !important;
  font-size: .86rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(40,120,196,.22);
}
.wp-block-button.is-style-outline .wp-block-button__link {
  border: 2px solid var(--iwg-navy) !important;
  background: transparent !important;
  color: var(--iwg-navy) !important;
  box-shadow: none;
}
.wp-block-button__link:hover { transform: translateY(-1px); }

.iwg-trust-strip { padding: 22px 0; background: var(--iwg-navy); color: #fff; }
.iwg-trust-strip .wp-block-columns { margin-bottom: 0; }
.iwg-trust-strip .wp-block-column { position: relative; text-align: center; }
.iwg-trust-strip .wp-block-column:not(:last-child):after { content: ""; position: absolute; top: 20%; right: 0; width: 1px; height: 60%; background: rgba(255,255,255,.18); }
.iwg-trust-strip strong { display: block; color: #fff; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.iwg-trust-strip span { color: rgba(255,255,255,.72); font-size: .78rem; }

.iwg-section { padding: clamp(72px, 9vw, 120px) 0; }
.iwg-section--cream { background: var(--iwg-paper); }
.iwg-section--blue { background: linear-gradient(135deg, var(--iwg-blue-dark), var(--iwg-navy)); color: #fff; }
.iwg-section--blue h2, .iwg-section--blue h3, .iwg-section--blue p { color: #fff; }
.iwg-section-title { max-width: 900px; margin-bottom: 18px !important; }
.iwg-section-lede { max-width: 760px; color: var(--iwg-slate); font-size: 1.12rem; }

.iwg-card-grid { gap: 22px; margin-top: 44px; }
.iwg-card {
  height: 100%;
  padding: 30px;
  border: 1px solid rgba(18, 50, 71, .08);
  border-radius: var(--iwg-radius);
  background: #fff;
  box-shadow: var(--iwg-shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.iwg-card:hover { transform: translateY(-5px); box-shadow: 0 24px 60px rgba(18,50,71,.14); }
.iwg-card .eyebrow { margin-bottom: 12px !important; color: var(--iwg-blue); font-size: .75rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.iwg-card h3 { margin-bottom: 14px; }
.iwg-card p:last-child { margin-bottom: 0; }
.iwg-card--accent { border-top: 5px solid var(--iwg-blue); }
.iwg-card--accent:nth-child(2) { border-top-color: var(--iwg-coral); }
.iwg-card--accent:nth-child(3) { border-top-color: var(--iwg-green); }
.iwg-card--accent:nth-child(4) { border-top-color: var(--iwg-purple); }

.iwg-priority-list { margin-top: 38px; }
.iwg-priority {
  position: relative;
  padding: 26px 26px 26px 78px;
  border-bottom: 1px solid rgba(18,50,71,.10);
}
.iwg-priority:before {
  content: attr(data-number);
  position: absolute;
  left: 0; top: 22px;
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--iwg-navy);
  color: #fff;
  font-size: .82rem;
  font-weight: 900;
}
.iwg-priority h3 { margin-bottom: 10px; }
.iwg-note {
  padding: 18px 22px;
  border-left: 4px solid var(--iwg-gold);
  border-radius: 0 14px 14px 0;
  background: #fff8e6;
  color: #5b4b20;
  font-size: .94rem;
}

.iwg-query .wp-block-post-template { gap: 22px; }
.iwg-query .wp-block-post {
  padding: 26px;
  border: 1px solid rgba(18,50,71,.08);
  border-radius: var(--iwg-radius);
  background: #fff;
  box-shadow: var(--iwg-shadow);
}
.iwg-query .wp-block-post-title { margin-bottom: 12px; font-size: 1.7rem; line-height: 1.02; }
.iwg-query .wp-block-post-title a { color: var(--iwg-navy); text-decoration: none; }
.iwg-query .wp-block-post-date { color: var(--iwg-blue); font-size: .78rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.iwg-query .wp-block-post-excerpt { color: var(--iwg-slate); }
.iwg-query .wp-block-post-excerpt__more-link { font-weight: 800; }

.iwg-cta-panel {
  position: relative;
  padding: clamp(44px, 7vw, 78px);
  border-radius: 32px;
  overflow: hidden;
  background: var(--iwg-navy);
  color: #fff;
}
.iwg-cta-panel:after {
  content: "";
  position: absolute;
  width: 320px; height: 320px; right: -130px; top: -150px;
  border-radius: 50%;
  border: 55px solid rgba(157,213,239,.17);
  box-shadow: 0 0 0 32px rgba(239,107,104,.08), 0 0 0 64px rgba(242,198,95,.07);
}
.iwg-cta-panel > * { position: relative; z-index: 2; }
.iwg-cta-panel h2 { color: #fff; }
.iwg-cta-panel p { max-width: 720px; color: rgba(255,255,255,.78); }
.iwg-cta-panel .wp-block-button.is-style-outline .wp-block-button__link { border-color: #fff !important; color: #fff !important; }

.iwg-page-hero { padding: clamp(76px, 10vw, 120px) 0 66px; background: linear-gradient(135deg, #f6fbfe, var(--iwg-paper)); }
.iwg-page-hero h1 { max-width: 1000px; font-size: clamp(3rem, 7vw, 6rem); }
.iwg-page-hero p { max-width: 780px; color: var(--iwg-slate); font-size: 1.2rem; }
.iwg-breadcrumb-label { color: var(--iwg-blue); font-size: .78rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }

.iwg-person-grid { gap: 20px; }
.iwg-person {
  padding: 28px;
  border-radius: var(--iwg-radius);
  background: #fff;
  box-shadow: var(--iwg-shadow);
}
.iwg-person .initials {
  width: 64px; height: 64px;
  margin-bottom: 18px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--iwg-blue), var(--iwg-sky));
  color: #fff;
  font-weight: 900;
}
.iwg-person:nth-child(2) .initials { background: linear-gradient(135deg, var(--iwg-coral), var(--iwg-gold)); }
.iwg-person:nth-child(3) .initials { background: linear-gradient(135deg, var(--iwg-green), var(--iwg-blue)); }
.iwg-person:nth-child(4) .initials { background: linear-gradient(135deg, var(--iwg-purple), var(--iwg-coral)); }
.iwg-person:nth-child(5) .initials { background: linear-gradient(135deg, var(--iwg-navy), var(--iwg-blue)); }
.iwg-person h3 { margin-bottom: 8px; }
.iwg-person .role { color: var(--iwg-blue); font-weight: 800; }

.iwg-contact-grid { gap: 28px; }
.iwg-contact-card { padding: 32px; border-radius: var(--iwg-radius); background: var(--iwg-paper); }
.iwg-contact-card a { font-size: 1.1rem; font-weight: 800; }

.site-footer { margin-top: 0; padding: 64px 0 28px; background: #0c2434; color: rgba(255,255,255,.78); }
.footer-inner { width: min(calc(100% - 40px), var(--iwg-max)); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 50px; }
.footer-brand { color: #fff; font-family: "Arial Narrow", Impact, sans-serif; font-size: 2.1rem; font-weight: 900; line-height: 1; text-transform: uppercase; }
.footer-copy { max-width: 520px; }
.footer-title { margin: 0 0 14px; color: #fff; font-size: .78rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,.76); text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-bottom { margin-top: 46px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 18px; font-size: .78rem; }

.iwg-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.iwg-reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .iwg-reveal { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .header-inner { min-height: 74px; }
  .site-branding { min-width: 0; flex: 1; }
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .primary-nav {
    display: none;
    position: absolute;
    left: 20px; right: 20px; top: 68px;
    padding: 20px;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--iwg-shadow);
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav li { border-bottom: 1px solid rgba(18,50,71,.08); }
  .primary-nav li:last-child { border-bottom: 0; }
  .primary-nav a { display: block; padding: 12px 4px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .header-inner { width: min(calc(100% - 28px), var(--iwg-max)); }
  .custom-logo { max-height: 50px; }
  .iwg-hero { min-height: auto; padding-top: 72px; padding-bottom: 68px; }
  .iwg-kicker { font-size: .68rem; }
  .iwg-trust-strip .wp-block-columns { gap: 16px; }
  .iwg-trust-strip .wp-block-column:not(:last-child):after { display: none; }
  .iwg-card { padding: 24px; }
  .iwg-priority { padding-left: 64px; }
  .iwg-priority:before { width: 44px; height: 44px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}


/* IWG TTP Visual Polish Patch v1.1
   Paste at the END of style.css if you do not install the updated theme zip. */

/* ---------- Layout + Gutenberg spacing fixes ---------- */
.entry-content .iwg-hero > .alignwide,
.entry-content .iwg-trust-strip > .alignwide,
.entry-content .iwg-section > .alignwide,
.entry-content .iwg-page-hero > .alignwide,
.entry-content .iwg-hero > .wp-block-group__inner-container > .alignwide,
.entry-content .iwg-trust-strip > .wp-block-group__inner-container > .alignwide,
.entry-content .iwg-section > .wp-block-group__inner-container > .alignwide,
.entry-content .iwg-page-hero > .wp-block-group__inner-container > .alignwide {
  width: min(calc(100% - 48px), var(--iwg-max));
  margin-inline: auto;
}

.entry-content > .alignfull,
.entry-content .alignfull + .alignfull,
.entry-content .wp-block-group,
.entry-content .wp-block-columns {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

.entry-content {
  overflow: clip;
}

::selection {
  background: rgba(40, 120, 196, .22);
  color: var(--iwg-navy);
}

/* ---------- Refined type scale ---------- */
h2 {
  font-size: clamp(2.5rem, 4.25vw, 4.65rem);
  line-height: .96;
  letter-spacing: -.035em;
  text-wrap: balance;
}

h3 {
  text-wrap: balance;
}

.iwg-section-title,
.iwg-section > .alignwide > h2,
.iwg-section > .wp-block-group__inner-container > .alignwide > h2 {
  max-width: 1040px;
}

.iwg-section-lede {
  max-width: 790px;
  font-size: clamp(1.05rem, 1.35vw, 1.18rem);
  line-height: 1.75;
}

/* ---------- Trust strip: more branded, less flat ---------- */
.iwg-trust-strip {
  position: relative;
  padding: 28px 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 0%, rgba(242,198,95,.13), transparent 18%),
    radial-gradient(circle at 8% 100%, rgba(157,213,239,.10), transparent 22%),
    linear-gradient(100deg, #102d41 0%, #123247 50%, #102b3e 100%);
}

.iwg-trust-strip .wp-block-columns {
  align-items: stretch;
  gap: 0;
}

.iwg-trust-strip .wp-block-column {
  padding: 2px 24px;
}

.iwg-trust-strip p {
  margin: 0;
}

.iwg-trust-strip strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: .82rem;
}

.iwg-trust-strip strong::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--iwg-blue);
  box-shadow: 0 0 0 4px rgba(255,255,255,.06);
}

.iwg-trust-strip .wp-block-column:nth-child(2) strong::before { background: var(--iwg-coral); }
.iwg-trust-strip .wp-block-column:nth-child(3) strong::before { background: var(--iwg-green); }
.iwg-trust-strip .wp-block-column:nth-child(4) strong::before { background: var(--iwg-gold); }

.iwg-trust-strip span {
  display: block;
  margin-top: 5px;
  line-height: 1.4;
}

/* ---------- Section polish ---------- */
.iwg-section {
  position: relative;
  padding: clamp(76px, 8vw, 112px) 0;
}

.iwg-section--cream {
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.40), rgba(255,255,255,0) 28%),
    var(--iwg-paper);
}

.iwg-section--cream::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 520px;
  height: 520px;
  right: -230px;
  top: -280px;
  border-radius: 50%;
  border: 78px solid rgba(40,120,196,.05);
  box-shadow:
    0 0 0 34px rgba(239,107,104,.035),
    0 0 0 72px rgba(242,198,95,.03);
  pointer-events: none;
}

.iwg-kicker {
  box-shadow: 0 6px 20px rgba(18,50,71,.045);
}

/* ---------- Scientific priorities: 2x2 editorial card grid ---------- */
.iwg-priority-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 46px;
}

.iwg-priority {
  --priority-accent: var(--iwg-blue);
  position: relative;
  min-height: 235px;
  padding: 84px 30px 30px;
  overflow: hidden;
  border: 1px solid rgba(18,50,71,.09);
  border-radius: 22px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 14px 38px rgba(18,50,71,.075);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.iwg-priority:nth-child(2) { --priority-accent: var(--iwg-coral); }
.iwg-priority:nth-child(3) { --priority-accent: var(--iwg-green); }
.iwg-priority:nth-child(4) { --priority-accent: var(--iwg-purple); }

.iwg-priority::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: var(--priority-accent);
}

.iwg-priority::before {
  content: attr(data-number);
  position: absolute;
  left: 30px;
  top: 28px;
  display: inline-grid;
  place-items: center;
  width: auto;
  height: 34px;
  min-width: 46px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--priority-accent);
  color: #fff;
  box-shadow: 0 8px 18px rgba(18,50,71,.11);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .06em;
}

.iwg-priority h3 {
  margin: 0 0 14px;
  color: var(--iwg-navy);
  font-size: clamp(1.55rem, 2vw, 2rem);
  line-height: 1.06;
}

.iwg-priority p {
  max-width: 670px;
  margin: 0;
  color: #3f5361;
  font-size: .98rem;
  line-height: 1.68;
}

.iwg-priority:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--priority-accent) 35%, transparent);
  box-shadow: 0 22px 54px rgba(18,50,71,.12);
}

/* ---------- Scientific work disclaimer ---------- */
.iwg-note {
  position: relative;
  margin-top: 28px !important;
  padding: 20px 22px 20px 54px;
  border: 1px solid rgba(242,198,95,.32);
  border-left: 4px solid var(--iwg-gold);
  border-radius: 14px;
  background: linear-gradient(90deg, #fff9e9, #fffdf8);
  box-shadow: 0 8px 24px rgba(80,68,25,.045);
}

.iwg-note::before {
  content: "i";
  position: absolute;
  left: 18px;
  top: 20px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--iwg-gold);
  color: #493b13;
  font-family: Georgia, serif;
  font-size: .9rem;
  font-weight: 700;
}

/* ---------- Cards: softer, richer interaction ---------- */
.iwg-card,
.iwg-query .wp-block-post,
.iwg-person {
  position: relative;
  overflow: hidden;
}

.iwg-card::after,
.iwg-query .wp-block-post::after,
.iwg-person::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -90px;
  bottom: -100px;
  border-radius: 50%;
  background: rgba(40,120,196,.05);
  pointer-events: none;
}

.iwg-card h3,
.iwg-query .wp-block-post-title,
.iwg-person h3 {
  position: relative;
  z-index: 1;
}

/* ---------- Buttons ---------- */
.wp-block-button__link {
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(40,120,196,.27);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--iwg-navy) !important;
  color: #fff !important;
  box-shadow: 0 12px 26px rgba(18,50,71,.16);
}


/* Header identity uses the uploaded IWG TTP logo without a duplicate text lockup. */
@media (max-width: 1100px) {
  .custom-logo { max-height: 60px; max-width: 180px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .entry-content .iwg-hero > .alignwide,
  .entry-content .iwg-trust-strip > .alignwide,
  .entry-content .iwg-section > .alignwide,
  .entry-content .iwg-page-hero > .alignwide,
  .entry-content .iwg-hero > .wp-block-group__inner-container > .alignwide,
  .entry-content .iwg-trust-strip > .wp-block-group__inner-container > .alignwide,
  .entry-content .iwg-section > .wp-block-group__inner-container > .alignwide,
  .entry-content .iwg-page-hero > .wp-block-group__inner-container > .alignwide {
    width: min(calc(100% - 36px), var(--iwg-max));
  }

  .iwg-priority-list {
    grid-template-columns: 1fr;
  }

  .iwg-priority {
    min-height: 0;
  }
}

@media (max-width: 700px) {
  h2 {
    font-size: clamp(2.25rem, 11vw, 3.5rem);
  }

  .iwg-trust-strip {
    padding: 20px 0;
  }

  .iwg-trust-strip .wp-block-column {
    padding: 10px 4px;
  }

  .iwg-priority {
    padding: 78px 22px 24px;
    border-radius: 18px;
  }

  .iwg-priority::before {
    left: 22px;
    top: 24px;
  }

  .iwg-note {
    padding-right: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .iwg-priority,
  .wp-block-button__link {
    transition: none !important;
  }
}


/* v1.3 header hardening: custom logo only; suppress legacy text lockups from older cached templates. */
.site-branding .brand-text,
.site-branding .brand-abbr,
.site-branding .brand-name,
.site-branding .site-title,
.site-branding .site-description,
.site-branding > a.brand-text,
.site-header .brand-text,
.site-header .brand-abbr,
.site-header .brand-name {
  display: none !important;
}

.site-branding:has(.custom-logo-link) .brand-fallback {
  display: none !important;
}

.site-branding {
  gap: 0 !important;
}

.custom-logo-link {
  margin: 0 !important;
  padding: 0 !important;
}


/* =========================================================
   v1.4 Primary navigation dropdown support
   WordPress child menu items such as About > Leadership
   ========================================================= */

.primary-nav {
  margin-left: auto;
  overflow: visible;
}

.primary-nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 26px;
}

.primary-nav li {
  position: relative;
}

.primary-nav > ul > li > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--iwg-navy);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
}

.primary-nav > ul > .menu-item-has-children > a::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 2px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s ease;
}

.primary-nav > ul > .menu-item-has-children:hover > a::after,
.primary-nav > ul > .menu-item-has-children:focus-within > a::after {
  transform: translateY(2px) rotate(225deg);
}

.primary-nav .sub-menu {
  position: absolute;
  z-index: 1200;
  top: calc(100% + 12px);
  left: 50%;
  min-width: 225px;
  margin: 0;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  border: 1px solid rgba(18, 50, 71, .10);
  border-radius: 14px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 18px 45px rgba(18, 50, 71, .14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.primary-nav .sub-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}

.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.primary-nav .sub-menu li {
  width: 100%;
  border: 0;
}

.primary-nav .sub-menu a {
  display: block;
  width: 100%;
  padding: 11px 13px;
  border-radius: 9px;
  color: var(--iwg-navy);
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  white-space: nowrap;
}

.primary-nav .sub-menu a:hover,
.primary-nav .sub-menu a:focus,
.primary-nav .sub-menu .current-menu-item > a {
  background: #eef6fb;
  color: var(--iwg-blue);
}

@media (max-width: 980px) {
  .primary-nav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .primary-nav > ul > li > a {
    display: flex;
    justify-content: space-between;
    padding: 12px 4px;
  }

  .primary-nav .sub-menu {
    position: static;
    min-width: 0;
    margin: -2px 0 8px;
    padding: 0 0 0 14px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
  }

  .primary-nav .sub-menu::before {
    display: none;
  }

  .primary-nav .sub-menu li {
    border: 0;
  }

  .primary-nav .sub-menu a {
    padding: 9px 12px;
    border-left: 2px solid rgba(40, 120, 196, .18);
    border-radius: 0;
    color: var(--iwg-slate);
    font-size: .84rem;
    white-space: normal;
  }

  .primary-nav .sub-menu a:hover,
  .primary-nav .sub-menu a:focus,
  .primary-nav .sub-menu .current-menu-item > a {
    border-left-color: var(--iwg-blue);
    background: rgba(40, 120, 196, .06);
    color: var(--iwg-blue);
  }

  .primary-nav > ul > .menu-item-has-children > a::after,
  .primary-nav > ul > .menu-item-has-children:hover > a::after,
  .primary-nav > ul > .menu-item-has-children:focus-within > a::after {
    transform: rotate(45deg);
  }
}

::selection {
  background: rgba(40, 120, 196, .22);
  color: var(--iwg-navy);
}

/* ---------- Refined type scale ---------- */
h2 {
  font-size: clamp(2.5rem, 4.25vw, 4.65rem);
  line-height: .96;
  letter-spacing: -.035em;
  text-wrap: balance;
}

h3 {
  text-wrap: balance;
}

.iwg-section-title,
.iwg-section > .alignwide > h2,
.iwg-section > .wp-block-group__inner-container > .alignwide > h2 {
  max-width: 1040px;
}

.iwg-section-lede {
  max-width: 790px;
  font-size: clamp(1.05rem, 1.35vw, 1.18rem);
  line-height: 1.75;
}

/* ---------- Trust strip: more branded, less flat ---------- */
.iwg-trust-strip {
  position: relative;
  padding: 28px 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 0%, rgba(242,198,95,.13), transparent 18%),
    radial-gradient(circle at 8% 100%, rgba(157,213,239,.10), transparent 22%),
    linear-gradient(100deg, #102d41 0%, #123247 50%, #102b3e 100%);
}

.iwg-trust-strip .wp-block-columns {
  align-items: stretch;
  gap: 0;
}

.iwg-trust-strip .wp-block-column {
  padding: 2px 24px;
}

.iwg-trust-strip p {
  margin: 0;
}

.iwg-trust-strip strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: .82rem;
}

.iwg-trust-strip strong::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--iwg-blue);
  box-shadow: 0 0 0 4px rgba(255,255,255,.06);
}

.iwg-trust-strip .wp-block-column:nth-child(2) strong::before { background: var(--iwg-coral); }
.iwg-trust-strip .wp-block-column:nth-child(3) strong::before { background: var(--iwg-green); }
.iwg-trust-strip .wp-block-column:nth-child(4) strong::before { background: var(--iwg-gold); }

.iwg-trust-strip span {
  display: block;
  margin-top: 5px;
  line-height: 1.4;
}

/* ---------- Section polish ---------- */
.iwg-section {
  position: relative;
  padding: clamp(76px, 8vw, 112px) 0;
}

.iwg-section--cream {
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.40), rgba(255,255,255,0) 28%),
    var(--iwg-paper);
}

.iwg-section--cream::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 520px;
  height: 520px;
  right: -230px;
  top: -280px;
  border-radius: 50%;
  border: 78px solid rgba(40,120,196,.05);
  box-shadow:
    0 0 0 34px rgba(239,107,104,.035),
    0 0 0 72px rgba(242,198,95,.03);
  pointer-events: none;
}

.iwg-kicker {
  box-shadow: 0 6px 20px rgba(18,50,71,.045);
}

/* ---------- Scientific priorities: 2x2 editorial card grid ---------- */
.iwg-priority-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 46px;
}

.iwg-priority {
  --priority-accent: var(--iwg-blue);
  position: relative;
  min-height: 235px;
  padding: 84px 30px 30px;
  overflow: hidden;
  border: 1px solid rgba(18,50,71,.09);
  border-radius: 22px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 14px 38px rgba(18,50,71,.075);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.iwg-priority:nth-child(2) { --priority-accent: var(--iwg-coral); }
.iwg-priority:nth-child(3) { --priority-accent: var(--iwg-green); }
.iwg-priority:nth-child(4) { --priority-accent: var(--iwg-purple); }

.iwg-priority::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: var(--priority-accent);
}

.iwg-priority::before {
  content: attr(data-number);
  position: absolute;
  left: 30px;
  top: 28px;
  display: inline-grid;
  place-items: center;
  width: auto;
  height: 34px;
  min-width: 46px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--priority-accent);
  color: #fff;
  box-shadow: 0 8px 18px rgba(18,50,71,.11);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .06em;
}

.iwg-priority h3 {
  margin: 0 0 14px;
  color: var(--iwg-navy);
  font-size: clamp(1.55rem, 2vw, 2rem);
  line-height: 1.06;
}

.iwg-priority p {
  max-width: 670px;
  margin: 0;
  color: #3f5361;
  font-size: .98rem;
  line-height: 1.68;
}

.iwg-priority:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--priority-accent) 35%, transparent);
  box-shadow: 0 22px 54px rgba(18,50,71,.12);
}

/* ---------- Scientific work disclaimer ---------- */
.iwg-note {
  position: relative;
  margin-top: 28px !important;
  padding: 20px 22px 20px 54px;
  border: 1px solid rgba(242,198,95,.32);
  border-left: 4px solid var(--iwg-gold);
  border-radius: 14px;
  background: linear-gradient(90deg, #fff9e9, #fffdf8);
  box-shadow: 0 8px 24px rgba(80,68,25,.045);
}

.iwg-note::before {
  content: "i";
  position: absolute;
  left: 18px;
  top: 20px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--iwg-gold);
  color: #493b13;
  font-family: Georgia, serif;
  font-size: .9rem;
  font-weight: 700;
}

/* ---------- Cards: softer, richer interaction ---------- */
.iwg-card,
.iwg-query .wp-block-post,
.iwg-person {
  position: relative;
  overflow: hidden;
}

.iwg-card::after,
.iwg-query .wp-block-post::after,
.iwg-person::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -90px;
  bottom: -100px;
  border-radius: 50%;
  background: rgba(40,120,196,.05);
  pointer-events: none;
}

.iwg-card h3,
.iwg-query .wp-block-post-title,
.iwg-person h3 {
  position: relative;
  z-index: 1;
}

/* ---------- Buttons ---------- */
.wp-block-button__link {
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(40,120,196,.27);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--iwg-navy) !important;
  color: #fff !important;
  box-shadow: 0 12px 26px rgba(18,50,71,.16);
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .entry-content .iwg-hero > .alignwide,
  .entry-content .iwg-trust-strip > .alignwide,
  .entry-content .iwg-section > .alignwide,
  .entry-content .iwg-page-hero > .alignwide,
  .entry-content .iwg-hero > .wp-block-group__inner-container > .alignwide,
  .entry-content .iwg-trust-strip > .wp-block-group__inner-container > .alignwide,
  .entry-content .iwg-section > .wp-block-group__inner-container > .alignwide,
  .entry-content .iwg-page-hero > .wp-block-group__inner-container > .alignwide {
    width: min(calc(100% - 36px), var(--iwg-max));
  }

  .iwg-priority-list {
    grid-template-columns: 1fr;
  }

  .iwg-priority {
    min-height: 0;
  }
}

@media (max-width: 700px) {
  h2 {
    font-size: clamp(2.25rem, 11vw, 3.5rem);
  }

  .iwg-trust-strip {
    padding: 20px 0;
  }

  .iwg-trust-strip .wp-block-column {
    padding: 10px 4px;
  }

  .iwg-priority {
    padding: 78px 22px 24px;
    border-radius: 18px;
  }

  .iwg-priority::before {
    left: 22px;
    top: 24px;
  }

  .iwg-note {
    padding-right: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .iwg-priority,
  .wp-block-button__link {
    transition: none !important;
  }
}
/* IWG TTP Leadership Profiles */

.iwg-person-profile {
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(18, 50, 71, 0.10);
    border-radius: 24px;
    padding: 30px;
    overflow: hidden;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.iwg-person-profile:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 45px rgba(18, 50, 71, 0.10);
}

.iwg-person-photo {
    display: block;
    width: 150px;
    height: 150px;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    margin: 0 0 24px;
    border: 5px solid #eef6fb;
}

.iwg-person-profile h3 {
    margin: 0 0 6px;
}

.iwg-person-profile .role {
    margin: 0 0 22px;
    color: #3478c9;
    font-weight: 700;
}

.iwg-person-bio {
    border-top: 1px solid rgba(18, 50, 71, 0.10);
    padding-top: 16px;
}

.iwg-person-bio summary {
    cursor: pointer;
    color: #123247;
    font-weight: 700;
    list-style: none;
}

.iwg-person-bio summary::-webkit-details-marker {
    display: none;
}

.iwg-person-bio summary::after {
    content: "+";
    float: right;
    width: 26px;
    height: 26px;
    line-height: 24px;
    text-align: center;
    border-radius: 50%;
    background: #eef6fb;
    color: #3478c9;
}

.iwg-person-bio[open] summary::after {
    content: "−";
}

.iwg-person-bio-content {
    padding-top: 16px;
    line-height: 1.65;
    color: #4d5963;
}

.iwg-person-bio-content p:last-child {
    margin-bottom: 0;
}
/* Leadership grid cleanup */

.wp-block-column:has(.iwg-person-profile) {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    min-height: 0 !important;
}

.iwg-person-profile {
    background: #ffffff;
    border: 1px solid rgba(18, 50, 71, 0.10);
    border-radius: 22px;
    padding: 32px;
    height: 100%;
    min-height: 0;
    box-shadow: 0 12px 32px rgba(18, 50, 71, 0.07);
    transition: transform .25s ease, box-shadow .25s ease;
}

.iwg-person-profile:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(18, 50, 71, 0.11);
}

.iwg-person-photo {
    width: 138px;
    height: 138px;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
    border: 5px solid #edf5fb;
    margin: 0 0 24px;
}

.iwg-person-profile h3 {
    font-size: clamp(1.75rem, 2vw, 2.3rem);
    line-height: 1.05;
    margin: 0 0 10px;
}

.iwg-person-profile .role {
    font-size: 1.05rem;
    margin: 0 0 28px;
}

.iwg-person-bio {
    margin-top: 0;
    padding-top: 18px;
    border-top: 1px solid rgba(18, 50, 71, 0.10);
}

.iwg-person-bio summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
/* IWG TTP primary navigation dropdowns */

.primary-menu,
.primary-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-menu > li {
    position: relative;
}

/* Hidden submenu */
.primary-menu .sub-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 220px;
    background: #ffffff;
    border: 1px solid rgba(18, 50, 71, 0.10);
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 18px 45px rgba(18, 50, 71, 0.14);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity .2s ease,
        transform .2s ease,
        visibility .2s ease;
    z-index: 9999;
}

/* Show dropdown */
.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.primary-menu .sub-menu li {
    width: 100%;
}

.primary-menu .sub-menu a {
    display: block;
    padding: 11px 14px;
    border-radius: 9px;
    color: #123247;
    text-decoration: none;
    white-space: nowrap;
    font-weight: 600;
}

.primary-menu .sub-menu a:hover,
.primary-menu .sub-menu a:focus {
    background: #eef6fb;
    color: #3478c9;
}

/* Dropdown indicator */
.primary-menu > .menu-item-has-children > a::after {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-left: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform .2s ease;
}

.primary-menu > .menu-item-has-children:hover > a::after {
    transform: translateY(2px) rotate(225deg);
}
.iwg-upcoming-meeting {
    background: #123247 !important;
    padding: 50px !important;
    border-radius: 28px !important;
    color: white !important;
}
/* IWG TTP Upcoming Meeting - simple styling */

.iwg-upcoming-meeting {
    background: #123247 !important;
    padding: 48px !important;
    border-radius: 28px !important;
    color: #ffffff !important;
    max-width: 1180px !important;
    margin: 30px auto 0 !important;
    box-shadow: 0 20px 50px rgba(18, 50, 71, 0.18) !important;
}

/* Small label */
.iwg-upcoming-label {
    color: #9dd5ef !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin-bottom: 14px !important;
}

/* Main title inside card */
.iwg-upcoming-meeting h2,
.iwg-upcoming-meeting h3,
.iwg-upcoming-subtitle {
    color: #ffffff !important;
    font-size: 38px !important;
    line-height: 1.08 !important;
    margin-top: 0 !important;
    margin-bottom: 22px !important;
    max-width: 950px !important;
}

/* Date/location line */
.iwg-upcoming-location {
    display: inline-block !important;
    color: #ffffff !important;
    background: rgba(255,255,255,0.08) !important;
    border: 1px solid rgba(255,255,255,0.18) !important;
    border-radius: 30px !important;
    padding: 8px 14px !important;
    margin-bottom: 24px !important;
    font-weight: 700 !important;
}

/* Paragraph text */
.iwg-upcoming-meeting p {
    color: rgba(255,255,255,0.85) !important;
    line-height: 1.65 !important;
}

/* Date / time / location / program container */
.iwg-meeting-details {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 14px !important;
    margin: 30px 0 !important;
}

/* Individual detail boxes */
.iwg-meeting-detail {
    background: rgba(255,255,255,0.08) !important;
    border: 1px solid rgba(255,255,255,0.14) !important;
    border-radius: 14px !important;
    padding: 18px !important;
}

/* Detail labels */
.iwg-meeting-detail strong {
    display: block !important;
    color: #9dd5ef !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin-bottom: 6px !important;
}

/* Detail values */
.iwg-meeting-detail span {
    display: block !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

/* Topic pills */
.iwg-meeting-highlights {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 9px !important;
    margin: 0 0 26px !important;
}

.iwg-meeting-highlights span {
    display: inline-block !important;
    background: rgba(255,255,255,0.08) !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    border-radius: 30px !important;
    padding: 8px 12px !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

/* Bottom note */
.iwg-meeting-status {
    border-top: 1px solid rgba(255,255,255,0.15) !important;
    padding-top: 20px !important;
    margin-top: 5px !important;
    color: rgba(255,255,255,0.65) !important;
    font-size: 13px !important;
    font-style: italic !important;
}

/* Tablet */
@media screen and (max-width: 900px) {
    .iwg-meeting-details {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .iwg-upcoming-meeting {
        padding: 32px !important;
    }
}

/* Phone */
@media screen and (max-width: 600px) {
    .iwg-meeting-details {
        grid-template-columns: 1fr !important;
    }

    .iwg-upcoming-meeting h2,
    .iwg-upcoming-meeting h3,
    .iwg-upcoming-subtitle {
        font-size: 28px !important;
    }
}
/* =========================================================
   IWG TTP MEMBERSHIP PAGE - FULL WIDTH FIX
   Page ID 62
   ========================================================= */


/* Break membership layout out of narrow theme content column */

.page-id-62 .iwg-membership-page {
    width: 100vw !important;
    max-width: none !important;

    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;

    overflow: hidden;
}


/* Proper centered content width */

.page-id-62 .iwg-membership-inner {
    width: calc(100% - 64px) !important;
    max-width: 1180px !important;

    margin-left: auto !important;
    margin-right: auto !important;
}


/* =========================================================
   HERO
   ========================================================= */

.page-id-62 .iwg-membership-hero {
    padding: 90px 0 85px !important;

    background:
        radial-gradient(
            circle at 88% 18%,
            rgba(157,213,239,.42),
            transparent 28%
        ),
        radial-gradient(
            circle at 76% 100%,
            rgba(155,201,93,.13),
            transparent 24%
        ),
        linear-gradient(
            135deg,
            #f7fbfd 0%,
            #edf5fa 55%,
            #f7f6f2 100%
        ) !important;
}


.page-id-62 .iwg-membership-hero h1 {
    max-width: 880px !important;

    margin: 0 0 22px !important;

    color: #123247 !important;

    font-size: clamp(46px, 6vw, 82px) !important;
    line-height: .98 !important;
    letter-spacing: -.035em !important;
}


.page-id-62 .iwg-membership-lede {
    max-width: 800px !important;

    margin: 0 0 30px !important;

    color: #405563 !important;

    font-size: 19px !important;
    line-height: 1.65 !important;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.page-id-62 .iwg-membership-button {
    display: inline-flex !important;

    align-items: center !important;
    justify-content: center !important;

    min-height: 50px !important;

    padding: 0 24px !important;

    border-radius: 999px !important;

    background: #2878c4 !important;

    color: #ffffff !important;

    font-size: 13px !important;
    font-weight: 900 !important;
    letter-spacing: .05em !important;

    text-decoration: none !important;
    text-transform: uppercase !important;

    box-shadow: 0 10px 24px rgba(40,120,196,.22) !important;
}


.page-id-62 .iwg-membership-button:hover {
    background: #16578f !important;

    transform: translateY(-2px);
}


.page-id-62 .iwg-membership-secure-note {
    margin: 12px 0 0 !important;

    color: #697780 !important;

    font-size: 12px !important;
}


/* =========================================================
   GENERAL SECTIONS
   ========================================================= */

.page-id-62 .iwg-membership-section {
    padding: 85px 0 !important;
}


.page-id-62 .iwg-membership-section-soft {
    background: #f7f6f2 !important;
}


.page-id-62 .iwg-membership-section h2 {
    max-width: 800px !important;

    margin: 0 0 18px !important;

    color: #123247 !important;

    font-size: clamp(34px, 4vw, 54px) !important;
    line-height: 1 !important;
}


.page-id-62 .iwg-membership-intro {
    max-width: 780px !important;

    margin: 0 0 38px !important;

    color: #4a5259 !important;

    font-size: 17px !important;
    line-height: 1.7 !important;
}


/* =========================================================
   WHO CAN PARTICIPATE CARDS
   ========================================================= */

.page-id-62 .iwg-membership-grid {
    display: grid !important;

    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;

    gap: 22px !important;
}


.page-id-62 .iwg-membership-card {
    display: block !important;

    padding: 30px !important;

    border: 1px solid rgba(18,50,71,.09) !important;
    border-radius: 22px !important;

    background: #ffffff !important;

    box-shadow: 0 14px 36px rgba(18,50,71,.07) !important;
}


.page-id-62 .iwg-membership-card h3 {
    margin: 0 0 10px !important;

    color: #123247 !important;

    font-size: 24px !important;
    line-height: 1.1 !important;
}


.page-id-62 .iwg-membership-card p {
    margin: 0 !important;

    color: #56626a !important;

    font-size: 15px !important;
    line-height: 1.65 !important;
}


.page-id-62 .iwg-membership-number {
    display: grid !important;

    place-items: center !important;

    width: 40px !important;
    height: 40px !important;

    margin: 0 0 18px !important;

    border-radius: 50% !important;

    background: #2878c4 !important;

    color: #ffffff !important;

    font-size: 12px !important;
    font-weight: 900 !important;
}


.page-id-62 .iwg-membership-card:nth-child(2) .iwg-membership-number {
    background: #ef6b68 !important;
}


.page-id-62 .iwg-membership-card:nth-child(3) .iwg-membership-number {
    background: #9bc95d !important;
}


.page-id-62 .iwg-membership-card:nth-child(4) .iwg-membership-number {
    background: #9e78c9 !important;
}


/* =========================================================
   WHAT WE'LL ASK YOU
   ========================================================= */

.page-id-62 .iwg-application-grid {
    display: grid !important;

    grid-template-columns: repeat(2, minmax(0,1fr)) !important;

    gap: 16px !important;

    margin-top: 36px !important;
}


.page-id-62 .iwg-application-item {
    display: block !important;

    padding: 26px !important;

    border: 1px solid rgba(18,50,71,.08) !important;
    border-radius: 18px !important;

    background: #ffffff !important;
}


.page-id-62 .iwg-application-item strong {
    display: block !important;

    margin-bottom: 8px !important;

    color: #123247 !important;

    font-size: 17px !important;
}


.page-id-62 .iwg-application-item span {
    display: block !important;

    color: #56626a !important;

    font-size: 14px !important;
    line-height: 1.6 !important;
}


/* =========================================================
   PRIVACY PANEL
   ========================================================= */

.page-id-62 .iwg-membership-privacy {
    padding: 45px !important;

    border-left: 6px solid #2878c4 !important;
    border-radius: 20px !important;

    background: #eef6fb !important;
}


.page-id-62 .iwg-membership-privacy h2 {
    max-width: 700px !important;
}


.page-id-62 .iwg-membership-privacy p {
    max-width: 850px !important;

    color: #4a5259 !important;

    font-size: 15px !important;
    line-height: 1.7 !important;
}


/* =========================================================
   FINAL JOIN CTA
   ========================================================= */

.page-id-62 .iwg-membership-cta {
    position: relative !important;

    overflow: hidden !important;

    padding: 58px !important;

    border-radius: 28px !important;

    background:
        radial-gradient(
            circle at 98% 5%,
            rgba(157,213,239,.19),
            transparent 30%
        ),
        #123247 !important;

    color: #ffffff !important;
}


.page-id-62 .iwg-membership-cta h2 {
    color: #ffffff !important;
}


.page-id-62 .iwg-membership-cta > p:not(.iwg-kicker):not(.iwg-membership-secure-note) {
    max-width: 720px !important;

    color: rgba(255,255,255,.78) !important;

    font-size: 16px !important;
    line-height: 1.65 !important;
}


.page-id-62 .iwg-membership-cta .iwg-kicker {
    color: #9dd5ef !important;
}


.page-id-62 .iwg-membership-cta .iwg-membership-secure-note {
    color: rgba(255,255,255,.58) !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media screen and (max-width: 800px) {

    .page-id-62 .iwg-membership-inner {
        width: calc(100% - 30px) !important;
    }

    .page-id-62 .iwg-membership-grid,
    .page-id-62 .iwg-application-grid {
        grid-template-columns: 1fr !important;
    }

    .page-id-62 .iwg-membership-hero,
    .page-id-62 .iwg-membership-section {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }

    .page-id-62 .iwg-membership-privacy,
    .page-id-62 .iwg-membership-cta {
        padding: 30px 24px !important;
    }

}
/* =========================================================
   IWG TTP CONTACT FORM
   ========================================================= */

.iwg-contact-form-layout {
    width: min(calc(100% - 48px), 1180px);
    margin: 80px auto;

    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr);

    gap: 38px;

    align-items: start;
}


/* FORM PANEL */

.iwg-contact-form-panel {
    padding: 42px;

    border: 1px solid rgba(18,50,71,.09);
    border-radius: 26px;

    background: #ffffff;

    box-shadow:
        0 18px 48px rgba(18,50,71,.08);
}


.iwg-contact-form-panel h2 {
    margin: 0 0 15px;

    color: #123247;

    font-size: clamp(34px, 4vw, 52px);
    line-height: 1;
}


.iwg-contact-intro {
    max-width: 700px;

    margin-bottom: 30px;

    color: #52616a;

    font-size: 16px;
    line-height: 1.65;
}


/* ROWS */

.iwg-contact-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));

    gap: 18px;
}


/* FIELDS */

.iwg-contact-field {
    margin-bottom: 20px;
}


.iwg-contact-field label {
    display: block;

    margin-bottom: 7px;

    color: #123247;

    font-size: 13px;
    font-weight: 800;
}


.iwg-contact-field label span {
    color: #2878c4;
}


.iwg-contact-field input,
.iwg-contact-field select,
.iwg-contact-field textarea {
    display: block;

    width: 100%;

    box-sizing: border-box;

    padding: 13px 14px;

    border: 1px solid #d6e0e6;
    border-radius: 10px;

    background: #fbfcfd;

    color: #243746;

    font-family: inherit;
    font-size: 15px;

    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        background .18s ease;
}


.iwg-contact-field input,
.iwg-contact-field select {
    min-height: 48px;
}


.iwg-contact-field textarea {
    resize: vertical;
}


.iwg-contact-field input:focus,
.iwg-contact-field select:focus,
.iwg-contact-field textarea:focus {
    outline: none;

    border-color: #2878c4;

    background: #ffffff;

    box-shadow:
        0 0 0 4px rgba(40,120,196,.10);
}


.iwg-contact-field small {
    display: block;

    margin-top: 7px;

    color: #74818a;

    font-size: 12px;
    line-height: 1.5;
}


/* CONSENT */

.iwg-contact-consent {
    margin: 6px 0 24px;
    padding: 16px 18px;

    border-radius: 12px;

    background: #f3f7fa;
}


.iwg-contact-consent label {
    display: flex;

    gap: 11px;
    align-items: flex-start;

    color: #52616a;

    font-size: 13px;
    line-height: 1.55;
}


.iwg-contact-consent input {
    margin-top: 4px;
}


/* SUBMIT */

.iwg-contact-submit {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 50px;

    padding: 0 25px;

    border: 0;
    border-radius: 999px;

    background: #2878c4;

    color: #ffffff;

    cursor: pointer;

    font-family: inherit;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .05em;

    text-transform: uppercase;

    box-shadow:
        0 10px 24px rgba(40,120,196,.22);

    transition:
        transform .18s ease,
        background .18s ease;
}


.iwg-contact-submit:hover {
    transform: translateY(-2px);

    background: #16578f;
}


/* SIDEBAR */

.iwg-contact-sidebar {
    display: grid;

    gap: 18px;
}


.iwg-contact-person,
.iwg-contact-route {
    padding: 27px;

    border: 1px solid rgba(18,50,71,.09);
    border-radius: 20px;

    background: #ffffff;

    box-shadow:
        0 12px 30px rgba(18,50,71,.06);
}


.iwg-contact-person {
    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(157,213,239,.26),
            transparent 35%
        ),
        #ffffff;
}


.iwg-contact-person h3,
.iwg-contact-route h3 {
    margin: 0 0 7px;

    color: #123247;
}


.iwg-contact-role {
    margin-bottom: 4px;

    color: #2878c4;

    font-weight: 800;
}


.iwg-contact-email {
    display: inline-block;

    margin-top: 8px;

    color: #2878c4 !important;

    font-weight: 800;

    text-decoration: none !important;
}


.iwg-contact-route p {
    color: #56626a;

    font-size: 14px;
    line-height: 1.6;
}


.iwg-contact-secondary-button {
    display: inline-flex;

    margin-top: 8px;
    padding: 10px 15px;

    border: 1px solid #2878c4;
    border-radius: 999px;

    color: #2878c4 !important;

    font-size: 12px;
    font-weight: 800;

    text-decoration: none !important;
}


/* SUCCESS / ERROR */

.iwg-contact-success,
.iwg-contact-error {
    margin-bottom: 28px;
    padding: 18px 20px;

    border-radius: 12px;
}


.iwg-contact-success {
    border-left: 5px solid #6eae3b;

    background: #f2f8ee;
}


.iwg-contact-error {
    border-left: 5px solid #c84b4b;

    background: #fbf1f1;
}


.iwg-contact-success strong,
.iwg-contact-error strong {
    display: block;

    margin-bottom: 4px;

    color: #123247;
}


.iwg-contact-success span,
.iwg-contact-error span {
    color: #56626a;

    font-size: 14px;
}


/* HONEYPOT */

.iwg-contact-hp {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    overflow: hidden !important;

    clip: rect(0,0,0,0) !important;
}


/* MOBILE */

@media screen and (max-width: 850px) {

    .iwg-contact-form-layout {
        grid-template-columns: 1fr;

        width: calc(100% - 30px);

        margin: 55px auto;
    }

}


@media screen and (max-width: 600px) {

    .iwg-contact-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .iwg-contact-form-panel {
        padding: 28px 22px;
        border-radius: 20px;
    }

}