/* CGS Core: programs. Content measure is 900px on desktop (IT preference). */

/* Page header band for [cgs_program_hero]. */
.cgs-pgh { position: relative; overflow: hidden; background: var(--cgs-pgh-bg, #141212); color: #fff; }
.cgs-pgh-corner { position: absolute; top: 0; right: 0; width: 32%; max-width: 420px; height: auto; aspect-ratio: 400 / 280; display: block; pointer-events: none; z-index: 1; }
.cgs-pgh-inner { position: relative; z-index: 2; box-sizing: border-box; width: 90%; max-width: 900px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) 0; display: flex; align-items: center; gap: clamp(20px, 4vw, 48px); }
.cgs-pgh-copy { flex: 1 1 55%; min-width: 0; }
.cgs-pgh-media { flex: 1 1 45%; min-width: 0; }
.cgs-pgh-art { display: block; width: 100%; height: auto; }
.cgs-pgh .cgs-pgh-h1 { font-family: Montserrat, Helvetica, Arial, sans-serif; color: #fff !important; margin: 0 !important; padding: 0 !important; line-height: 1.05; text-transform: uppercase; font-size: clamp(40px, 6vw, 80px); }
.cgs-pgh .cgs-pgh-kicker { display: block; font-weight: 300; letter-spacing: 0.08em; font-size: 0.6em; color: #fff; }
.cgs-pgh .cgs-pgh-title { font-weight: 800; color: #fff; }
.cgs-pgh .cgs-pgh-text { color: #fff; opacity: 0.9; font-size: 18px; line-height: 1.55; max-width: 34em; margin: 16px 0 0 !important; padding: 0 !important; }
@media (max-width: 899px) {
    .cgs-pgh-inner { flex-direction: column; align-items: flex-start; }
    .cgs-pgh-media { width: 100%; }
}
@media (max-width: 599px) {
    .cgs-pgh-inner { padding: 48px 0 36px; }
    .cgs-pgh-corner { width: 44%; }
    .cgs-pgh .cgs-pgh-h1 { font-size: clamp(28px, 8.5vw, 40px); }
    .cgs-pgh .cgs-pgh-text { font-size: 16px; }
    .cgs-pgh--hide .cgs-pgh-media { display: none; }
}
.cgs-pgh .cgs-pgh-line { display: block; }

/* Global Conversations, after Global Convo_Site Art Wide: the bubble left of
   GLOBAL / CONVER / SATIONS, all one size, GLOBAL light and tracked wide.
   The art is short, so it stays beside the title down to 600px. */
.cgs-pgh--globalconv .cgs-pgh-inner { justify-content: flex-start; gap: clamp(24px, 4vw, 56px); }
.cgs-pgh--globalconv .cgs-pgh-media { order: -1; flex: 0 0 clamp(120px, 17vw, 180px); }
.cgs-pgh--globalconv .cgs-pgh-copy { flex: 0 1 auto; }
.cgs-pgh--globalconv .cgs-pgh-h1 { font-size: clamp(48px, 7.5vw, 96px); line-height: 0.95; }
/* The three lines are one justified block: every line's ink runs to the
   width of SATIONS (tracked 0.02em, as in Figma). Spacing per line from
   Montserrat's measured ink widths (300 GLOBAL 4.153em, 800 CONVER 4.443em,
   800 SATIONS 4.629em) over its letter gaps; the margins line up the ink's
   left edge, since each first letter has its own side bearing. */
.cgs-pgh--globalconv .cgs-pgh-kicker { font-size: 1em; white-space: nowrap; letter-spacing: 0.1192em; margin-left: -0.0339em; }
.cgs-pgh--globalconv .cgs-pgh-line { white-space: nowrap; }
.cgs-pgh--globalconv .cgs-pgh-line:first-child { letter-spacing: 0.0613em; margin-left: -0.0135em; }
.cgs-pgh--globalconv .cgs-pgh-line:last-child { letter-spacing: 0.02em; }
@media (max-width: 899px) {
    .cgs-pgh--globalconv .cgs-pgh-inner { flex-direction: row; align-items: center; }
    .cgs-pgh--globalconv .cgs-pgh-media { width: auto; }
}
@media (max-width: 599px) {
    .cgs-pgh--globalconv .cgs-pgh-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
    .cgs-pgh--globalconv .cgs-pgh-media { order: 0; flex: none; width: 96px; }
    .cgs-pgh--globalconv .cgs-pgh-h1 { font-size: clamp(36px, 11vw, 48px); }
}

/* [cgs_event_series]: the Lecture Series layout, on the 900px measure. */
.cgs-pgs-wrap { max-width: 900px; margin: 0 auto; padding: 8px 0 4px; }
.cgs-pgs-wrap p { padding: 0 !important; }
#main-content .container:before { display: none !important; }
.cgs-pgs-section { margin-bottom: 52px; }
.cgs-pgs-section:last-child { margin-bottom: 0; }
.cgs-pgs-section > h2 { font-size: 28px !important; font-weight: 700 !important; color: #27318B !important; margin: 0 0 10px !important; letter-spacing: -0.4px; }
.cgs-pgs-rule { display: block; width: 56px; height: 4px; border-radius: 2px; background: #F1C500; margin: 0 0 20px; }
.cgs-pgs-sub { font-size: 16px; color: #5a5f6e; margin: 0 0 22px !important; }
.cgs-pgs-feat { display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: center; background: #fff; border: 1px solid #e6e8ef; border-radius: 12px; overflow: hidden; }
.cgs-pgs-feat--portrait { grid-template-columns: 0.62fr 1.38fr; }
.cgs-pgs-feat-media { display: block; min-width: 0; align-self: start; }
.cgs-pgs-feat-body { padding: 26px 30px 28px; display: flex; flex-direction: column; }
.cgs-pgs-feat-title { font-size: 24px !important; line-height: 1.25 !important; margin: 0 !important; color: #1D2B47 !important; }
.cgs-pgs-feat-title a, .cgs-pgs-card-title a { color: #1D2B47 !important; text-decoration: none; }
.cgs-pgs-feat-title a:hover, .cgs-pgs-card-title a:hover { color: #27318B !important; }
.cgs-pgs-excerpt { font-size: 15px; line-height: 1.6; color: #333; margin: 14px 0 0 !important; }
.cgs-pgs-speakers { font-size: 16px; font-weight: 600; color: #27318B !important; margin: 8px 0 0 !important; }
.cgs-pgs-date, .cgs-pgs-format { font-size: 14px; color: #5a5f6e; margin: 4px 0 0 !important; }
.cgs-pgs-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.cgs-pgs-card { background: #fff; border: 1px solid #e6e8ef; border-radius: 12px; overflow: hidden; display: flex; align-items: stretch; transition: box-shadow 0.2s ease, transform 0.2s ease; }
.cgs-pgs-card:hover { box-shadow: 0 10px 24px rgba(29,43,71,0.12); transform: translateY(-2px); }
.cgs-pgs-card-media { display: block; flex: 0 0 340px; max-width: 340px; align-self: flex-start; }
.cgs-pgs-card-body { padding: 18px 22px 20px; display: flex; flex-direction: column; justify-content: center; flex: 1; min-width: 0; }
.cgs-pgs-card-title { font-size: 17px !important; line-height: 1.35 !important; margin: 0 !important; color: #1D2B47 !important; }
.cgs-pgs-badge-row { margin: 0 0 8px !important; }
.cgs-pgs-badge { display: inline-block; font-size: 11px; color: #fff !important; background: #27318B; padding: 3px 12px; border-radius: 999px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; }
.cgs-pgs-thumb { display: block; width: 100%; height: auto; background: transparent; }
.cgs-pgs-thumb-ph { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #27318B, #1D2B47); }
.cgs-pgs-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 18px; }
.cgs-pgs-card .cgs-pgs-actions { margin-top: 0; padding-top: 14px; }
.cgs-pgs-btn { display: inline-block; font-size: 15px; font-weight: 700; letter-spacing: 0.4px; text-decoration: none; padding: 11px 26px; border-radius: 30px; border: 2px solid #27318B; transition: all 0.15s ease; }
button.cgs-pgs-btn { font-family: inherit; line-height: normal; cursor: pointer; -webkit-appearance: none; appearance: none; }
.cgs-pgs-btn-solid { background: #27318B; color: #fff !important; }
.cgs-pgs-btn-solid:hover { background: #1f2870; border-color: #1f2870; color: #fff !important; }
.cgs-pgs-btn-outline { background: transparent; color: #27318B !important; }
.cgs-pgs-btn-outline:hover { background: #27318B; color: #fff !important; }
.cgs-pgs-pill { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; text-decoration: none; padding: 7px 16px; border-radius: 30px; border: 2px solid #27318B; white-space: nowrap; transition: all 0.15s ease; }
.cgs-pgs-pill-outline { background: transparent; color: #27318B !important; }
.cgs-pgs-pill-outline:hover, .cgs-pgs-pill-solid { background: #27318B; color: #fff !important; }
.cgs-pgs-pill-solid:hover { background: #1f2870; border-color: #1f2870; }
.cgs-pgs-wrap a:focus-visible, .cgs-pgs-wrap button:focus-visible { outline: 3px solid #27318B; outline-offset: 2px; }
.cgs-pgs-empty { padding: 24px; background: #f8f8fa; border: 1px solid #e6e8ef; border-radius: 12px; color: #5a5f6e; text-align: center; }
.cgs-pgs-empty a { color: #27318B !important; font-weight: 600; }
button.cgs-pgs-thumb.cgs-yt-play { position: relative; padding: 0; border: 0; cursor: pointer; overflow: hidden; background: transparent; }
button.cgs-pgs-thumb.cgs-yt-play img { display: block; width: 100%; height: auto; }
.cgs-yt-play-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(0,0,0,0.7); display: flex; align-items: center; justify-content: center; }
.cgs-yt-play-icon::before { content: ""; display: block; border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-left: 14px solid #fff; margin-left: 3px; }
.cgs-yt-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 2147483647; display: flex; align-items: center; justify-content: center; padding: 20px; max-height: 100vh; overflow-y: auto; }
.cgs-yt-modal-inner { position: relative; width: 100%; max-width: 1100px; }
.cgs-yt-modal-frame { position: relative; padding-bottom: 56.25%; height: 0; background: #000; border-radius: 8px; overflow: hidden; }
.cgs-yt-modal-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cgs-yt-modal-close { position: absolute; top: -44px; right: 0; background: transparent; border: 0; color: #fff; font-size: 34px; line-height: 1; cursor: pointer; padding: 4px 12px; }
@media (max-width: 980px) {
    .cgs-pgs-feat { grid-template-columns: 1fr; }
    .cgs-pgs-feat-body { padding: 22px 22px 24px; }
    .cgs-pgs-card-media { flex-basis: 280px; max-width: 280px; }
}
@media (max-width: 600px) {
    .cgs-pgs-card { flex-direction: column; }
    .cgs-pgs-card-media { flex: none; max-width: none; }
    .cgs-pgs-btn { width: 100%; text-align: center; box-sizing: border-box; }
}

/* [cgs_program_tiles]: three across on desktop, one on phones, the program
   colour as a corner triangle like the advocacy tiles. */
.cgs-pgt { max-width: 900px; margin: 0 auto 48px; }
.cgs-pgt .cgs-pgt-h2 { font-size: 28px !important; font-weight: 700 !important; color: #27318B !important; margin: 0 0 10px !important; scroll-margin-top: 90px; }
.cgs-pgt-grid { list-style: none !important; margin: 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cgs-pgt-tile { position: relative; background: #fff; border: 1px solid #e6e8ef; border-radius: 12px; overflow: hidden; transition: box-shadow 0.2s ease, transform 0.2s ease; padding: 0 !important; }
.cgs-pgt-tile--type::after { content: ""; position: absolute; top: 0; right: 0; width: 0; height: 0; border-top: 48px solid var(--cgs-pgt-color, #F1C500); border-left: 48px solid transparent; pointer-events: none; }
.cgs-pgt-tile:hover, .cgs-pgt-tile:focus-within { box-shadow: 0 10px 24px rgba(29,43,71,0.12); transform: translateY(-2px); }
.cgs-pgt-link { display: flex; flex-direction: column; height: 100%; text-decoration: none !important; color: inherit !important; }
.cgs-pgt-media { display: block; aspect-ratio: 16 / 9; background: #141212; overflow: hidden; }
.cgs-pgt-art { display: block; width: 100%; height: 100%; object-fit: cover; }
.cgs-pgt-type { display: flex; align-items: flex-end; height: 100%; box-sizing: border-box; padding: 16px; font-family: Montserrat, Helvetica, Arial, sans-serif; font-weight: 800; text-transform: uppercase; font-size: 20px; line-height: 1.1; color: #fff; border-bottom: 6px solid var(--cgs-pgt-color, #F1C500); }
.cgs-pgt-body { display: block; padding: 14px 16px 18px; }
.cgs-pgt-name { display: block; font-size: 17px; font-weight: 700; color: #1D2B47; }
.cgs-pgt-link:hover .cgs-pgt-name { color: #27318B; }
.cgs-pgt .cgs-pgt-for, .cgs-pgt .cgs-pgt-desc { display: block; font-size: 14px; line-height: 1.5; color: #5a5f6e; margin: 6px 0 0 !important; padding: 0 !important; }
.cgs-pgt-link:focus-visible { outline: 3px solid #27318B; outline-offset: -3px; }
.cgs-pgt-hub { margin: 20px 0 0 !important; }
.cgs-pgt.cgs-pgt--partners { margin-bottom: 8px; }
.cgs-pgt--partners .cgs-pgt-intro { margin: 0 0 8px !important; padding: 0 !important; font-size: 17px; line-height: 1.65; color: rgba(52,58,64,.9); }
@media (max-width: 980px) { .cgs-pgt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cgs-pgt-grid { grid-template-columns: 1fr; } }

/* The plain page header (Programs page), the About pages' text hero on the
   900px measure: values from about-pages.css. */
.cgs-pgp { padding: 24px 0 0; background: #fff; }
.cgs-pgp-wrap { box-sizing: border-box; width: 90%; max-width: 900px; margin: 0 auto; }
.cgs-pgp-crumb { font-size: 14px; line-height: 1.4; color: #646B78; }
.cgs-pgp-crumb ol { list-style: none !important; margin: 0 !important; padding: 0 !important; display: flex; flex-wrap: wrap; align-items: center; }
.cgs-pgp-crumb li { list-style: none !important; padding: 0 !important; }
.cgs-pgp-crumb li + li::before { content: "/"; content: "/" / ""; margin: 0 6px; }
.cgs-pgp-crumb a { display: inline-flex; align-items: center; min-height: 44px; color: #27318B !important; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.cgs-pgp-crumb [aria-current] { font-weight: 600; color: #1D2B47; }
.cgs-pgp .cgs-pgp-eyebrow { margin: 20px 0 0 !important; padding: 0 !important; font: 600 13px/1.3 Montserrat, Helvetica, Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #27318B; }
.cgs-pgp .cgs-pgp-h1 { margin: 14px 0 0 !important; padding: 0 !important; font-family: Montserrat, Helvetica, Arial, sans-serif; font-size: 32px !important; line-height: 1.12 !important; font-weight: 800 !important; letter-spacing: -.01em; color: #27318B !important; text-wrap: balance; }
.cgs-pgp .cgs-pgs-rule { width: 64px; margin: 22px 0 24px; }
.cgs-pgp .cgs-pgp-stand { margin: 0 !important; padding: 0 !important; font-size: 19px; line-height: 1.6; color: rgba(52,58,64,.9); }
@media (min-width: 981px) { .cgs-pgp { padding-top: 32px; } .cgs-pgp .cgs-pgp-h1 { font-size: 44px !important; } }
@media (max-width: 600px) { .cgs-pgp .cgs-pgp-stand { font-size: 17px; } }
