/* gc-purged */
/* Cookie consent banner and settings dialog for greencode.ai.
   Self-hosted, no dependencies. Colours follow the theme: navy #07294d,
   green #0c8b51, Exo. Injected by scripts/apply-site-fixes.py. */

.gc-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2147483000;
  background: #07294d;
  color: #fff;
  font-family: Exo, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, .25);
  transform: translateY(110%);
  transition: transform .3s ease;
}
.gc-consent[data-open="true"] { transform: none; }

.gc-consent__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
}
/* The theme sets its own colour on p, label and small; win on specificity. */
.gc-consent .gc-consent__text, .gc-consent p, .gc-consent label, .gc-consent span,
.gc-consent .gc-consent__option span small, .gc-consent h2 { color: #fff; }
.gc-consent__text { flex: 1 1 420px; margin: 0; }
.gc-consent__text strong { color: #fff; }
.gc-consent__text a { color: #fff; text-decoration: underline; }
.gc-consent__text a:hover { color: #9fe0bf; }

.gc-consent__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.gc-consent__btn {
  appearance: none;
  border: 2px solid #0c8b51;
  border-radius: 4px;
  background: #0c8b51;
  color: #fff;
  font: inherit;
  font-weight: 600;
  padding: 10px 20px;
  cursor: pointer;
  min-height: 44px;
}
.gc-consent__btn:hover, .gc-consent__btn:focus-visible { background: #0a7444; border-color: #0a7444; }
.gc-consent__btn--secondary { background: transparent; color: #fff; border-color: #9c9c9c; }
.gc-consent__btn--secondary:hover, .gc-consent__btn--secondary:focus-visible { background: rgba(255, 255, 255, .1); border-color: #fff; }
.gc-consent__btn:focus-visible { outline: 3px solid #9fe0bf; outline-offset: 2px; }

/* Settings view: one row per category */
.gc-consent__options { flex: 1 1 100%; display: grid; gap: 10px; margin: 4px 0 0; padding: 0; list-style: none; }
.gc-consent__option { display: flex; gap: 12px; align-items: flex-start; }
.gc-consent__option input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.gc-consent__option span small { display: block; opacity: .85; }

@media (max-width: 600px) {
  .gc-consent { font-size: 14px; }
  .gc-consent__inner { padding: 14px 16px; }
  .gc-consent__actions { width: 100%; }
  .gc-consent__btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .gc-consent { transition: none; }
}

/* Newsletter form response (overrides/assets/newsletter.js) */
.newsletter-form form[data-newsletter] .newsletter-fields { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.newsletter-form form[data-newsletter] input[type="email"] { flex: 1 1 240px; min-height: 50px; }
.form-response { margin: 12px 0 0; text-align: left; padding: 10px 14px; border-radius: 4px; font-size: 15px; }
.form-response[data-state="ok"] { background: #e3f6ec; color: #0a5a35; }
.form-response[data-state="error"] { background: #fde8e8; color: #8a1c1c; }
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.cf-turnstile { margin: 6px 0; }
.newsletter-form .cf-turnstile { margin-top: 10px; }

/* Publications list and pages (scripts/build-dissemination.py) */
.pub-timeline { list-style: none; margin: 30px 0 0; padding: 0; position: relative; }
.pub-timeline::before { content: ""; position: absolute; left: 50%; top: 8px; bottom: 8px; width: 3px; margin-left: -1.5px; background: #dbe3ec; border-radius: 2px; }
.pub-timeline__year { position: relative; text-align: center; margin: 30px 0 14px; z-index: 1; }
.pub-timeline__year:first-child { margin-top: 0; }
.pub-timeline__year span { display: inline-block; background: #07294d; color: #fff; font-weight: 700; font-size: 15px; letter-spacing: .04em; padding: 6px 16px; border-radius: 999px; box-shadow: 0 0 0 6px #fff; }
.pub-timeline__item { position: relative; width: 50%; padding: 0 44px 0 0; margin: 0 0 22px; box-sizing: border-box; }
.pub-timeline__item--right { margin-left: 50%; padding: 0 0 0 44px; }
.pub-timeline__marker { position: absolute; top: 24px; width: 14px; height: 14px; border-radius: 50%; background: #0c8b51; border: 3px solid #fff; box-shadow: 0 0 0 2px #0c8b51; }
.pub-timeline__item--left .pub-timeline__marker { right: -7px; }
.pub-timeline__item--right .pub-timeline__marker { left: -7px; }
.pub-timeline__item--deliverable .pub-timeline__marker { background: #07294d; box-shadow: 0 0 0 2px #07294d; }
.pub-timeline__date { display: block; font-size: 13px; font-weight: 600; color: #666; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.pub-timeline__item--left .pub-timeline__date { text-align: right; }
.pub-timeline__card { background: #fff; border: 1px solid #e6e6e6; border-radius: 8px; padding: 14px 18px; position: relative; }
.pub-timeline__card::before { content: ""; position: absolute; top: 20px; border: 10px solid transparent; }
.pub-timeline__item--left .pub-timeline__card::before { right: -20px; border-left-color: #e6e6e6; }
.pub-timeline__item--right .pub-timeline__card::before { left: -20px; border-right-color: #e6e6e6; }
.pub-timeline__item--deliverable .pub-timeline__card { border-top: 4px solid #07294d; }
.pub-timeline__item--paper .pub-timeline__card { border-top: 4px solid #0c8b51; }
@media (max-width: 767px) {
  .pub-timeline { padding-left: 28px; }
  .pub-timeline::before { left: 11px; margin-left: 0; }
  .pub-timeline__year { text-align: left; }
  .pub-timeline__year span { margin-left: -28px; box-shadow: none; }
  .pub-timeline__item, .pub-timeline__item--right { width: auto; margin-left: 0; padding: 0; }
  .pub-timeline__item--left .pub-timeline__marker, .pub-timeline__item--right .pub-timeline__marker { left: -24px; right: auto; }
  .pub-timeline__item--left .pub-timeline__date { text-align: left; }
  .pub-timeline__card::before { display: none; }
  .pub-card { gap: 12px; }
}
.pub-card { display: flex; gap: 18px; }
@media (max-width: 600px) { .pub-timeline { padding-left: 26px; } .pub-timeline__marker { left: -22px; } .pub-timeline__year span { margin-left: -26px; } .pub-card { gap: 12px; } }
.pub-card__icon { flex: none; width: 46px; height: 46px; border-radius: 8px; background: #e3f6ec; color: #0c8b51; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.pub-card__icon--deliverable { background: #e7eef8; color: #07294d; }
.pub-card__body { flex: 1 1 auto; min-width: 0; }
.pub-card__title { font-size: 18px; line-height: 1.35; margin: 0 0 6px; }
.pub-card__title a { color: #07294d; }
.pub-card__title a:hover { color: #0c8b51; }
.pub-card__partners { margin: 0 0 6px; }
.pub-partner { display: inline-block; background: #0c8b51; color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .02em; padding: 3px 9px; border-radius: 999px; margin: 0 6px 6px 0; }
.pub-partner--deliverable { background: #07294d; }
a.pub-partner { text-decoration: none; }
a.pub-partner:hover, a.pub-partner:focus-visible { background: #07294d; color: #fff; text-decoration: underline; }
a.pub-partner--deliverable:hover, a.pub-partner--deliverable:focus-visible { background: #0c8b51; }
.orcid-link { white-space: nowrap; color: inherit; text-decoration: underline; text-decoration-color: #A6CE39; text-underline-offset: 2px; }
.orcid-link:hover { color: #07294d; }
.orcid-icon { vertical-align: -2px; margin-left: 2px; }
.pub-card__meta { color: #555; font-size: 14px; margin: 0 0 6px; }
.pub-card__authors { font-size: 14px; color: #303030; margin: 0 0 8px; }
.pub-card__links { display: flex; flex-wrap: wrap; gap: 8px; }
.pub-card__links a { display: inline-block; padding: 6px 14px; border: 2px solid #0c8b51; border-radius: 4px; background: #fff; color: #0c8b51;
  font-size: 14px; font-weight: 600; line-height: 1.3; text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.pub-card__links a:first-child { background: #0c8b51; color: #fff; }
.pub-card__links a:hover, .pub-card__links a:focus-visible { background: #07294d; border-color: #0c8b51; color: #fff; }
.pub-kind { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #666; }
.pub-page .section-title-2 .title { font-size: 28px; line-height: 1.3; }
.pub-page .pub-facts { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 6px 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.pub-page .pub-facts li strong { color: #07294d; }
.pub-page .pub-facts__wide { grid-column: 1 / -1; }
.pub-page .pub-partners { display: inline; }
.pub-page .pub-partners .pub-partner { margin: 4px 6px 4px 0; }
.pub-page .pub-synopsis { font-size: 17px; line-height: 1.7; }
.pub-page .pub-synopsis--pending { color: #666; font-style: italic; }
.pub-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.pub-actions .main-btn { min-height: 44px; }
.pub-actions .main-btn--secondary { background: #fff; color: #07294d; border: 2px solid #07294d; }
.citation-box { background: #f7f7f7; border: 1px solid #e0e0e0; border-radius: 8px; padding: 16px 18px; margin: 24px 0; }
.citation-box__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 12px; }
.citation-box__label { font-weight: 600; color: #07294d; }
.cite-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.cite-btn { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 12px; border: 2px solid #07294d; border-radius: 6px; background: #fff; color: #07294d; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.cite-btn i { font-size: 15px; }
.cite-btn:hover, .cite-btn:focus-visible { background: #07294d; color: #fff; }
.cite-btn:focus-visible { outline: 3px solid #9fe0bf; outline-offset: 2px; }
.cite-btn[data-copied] { background: #0c8b51; border-color: #0c8b51; color: #fff; }
.cite-btn[data-copied]::after { content: attr(data-copied); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); white-space: nowrap; background: #151515; color: #fff; font-size: 12px; font-weight: 500; padding: 5px 9px; border-radius: 4px; pointer-events: none; z-index: 5; }
.cite-btn[data-copied]::before { content: ""; position: absolute; left: 50%; bottom: calc(100% + 3px); transform: translateX(-50%); border: 5px solid transparent; border-top-color: #151515; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.citation-text { font-size: 15px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; margin: 0; }
.citation-text--code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.citation-box [data-copy-status] { font-size: 13px; color: #0a5a35; margin-left: 6px; }

/* Page carbon badge (overrides/assets/co2-badge.js) */
/* Sits in .footer-copyright .copyright, so it inherits the theme's 14px / 500 weight; colour matches the copyright span. */
/* The theme's own rule (.footer-copyright .copyright p, 18px) outranks a lone class, so match its specificity. */
.footer-copyright .copyright p.gc-carbon, .footer-copyright .copyright p.gc-carbon * { font-size: 14px; line-height: 22px; }
.gc-carbon { font: inherit; color: inherit; margin: 4px 0 0; }
.gc-carbon a { color: inherit; text-decoration: underline; }
.gc-carbon strong { font-weight: 700; }

/* Benefit pages (scripts/build-benefits.py) */
.benefit-summary { font-size: 18px; line-height: 1.6; margin: 10px 0 24px; }
.benefit-body h3 { margin-top: 36px; margin-bottom: 12px; }
.benefit-body h4 { margin-top: 26px; margin-bottom: 10px; }
.benefit-body p, .benefit-body li { line-height: 1.75; }
.benefit-body ul, .benefit-body ol { margin: 0 0 18px 0; padding-left: 1.5em; }
.benefit-body ul { list-style: disc outside; }
.benefit-body ol { list-style: decimal outside; }
.benefit-body li { margin-bottom: 6px; }
.benefit-sources { margin-top: 40px; padding-top: 16px; border-top: 1px solid #e6e6e6; font-size: 14px; color: #555; }
.benefit-sources h4 { font-size: 15px; margin-bottom: 8px; }
.benefit-sources ul { margin: 0 0 0 1.2em; }
.benefit-card-summary { font-size: 14px; line-height: 1.55; margin: 8px 0 0; color: #fff; }
/* whole benefit card clickable (overrides/../build-benefits.py adds .gc-card-stretch) */
.single-courses-2 { position: relative; transition: transform .15s ease, box-shadow .15s ease; }
.single-courses-2:hover, .single-courses-2:focus-within { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(7, 41, 77, .25); }
.gc-card-stretch { position: absolute; inset: 0; z-index: 3; text-indent: -9999px; overflow: hidden; }
.gc-card-stretch:focus-visible { outline: 3px solid #9fe0bf; outline-offset: -3px; }

/* Breadcrumb (benefit and publication pages) */
.gc-breadcrumb { font-size: 14px; margin: 0 0 14px; }
.gc-breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.gc-breadcrumb li + li::before { content: "\203A"; margin-right: 6px; color: #9c9c9c; }
.gc-breadcrumb a { color: #07294d; }
.gc-breadcrumb a:hover { color: #0c8b51; }
.gc-breadcrumb [aria-current] { color: #555; }

/* Key facts sidebar on benefit pages */
.courses-features-items li { display: flex; justify-content: space-between; gap: 12px; }
.courses-features-items li strong { text-align: right; }
.courses-sidebar-cta { margin-top: 30px; padding: 22px 20px; background: #07294d; color: #fff; border-radius: 6px; text-align: center; }
.courses-sidebar-cta img { max-width: 140px; margin-bottom: 12px; }
.courses-sidebar-cta p { color: #dfe7f1; font-size: 14px; margin: 0 0 14px; }
.courses-sidebar-cta .main-btn { width: 100%; }
.benefit-publications__list { list-style: none; margin: 0; padding: 0; }
.benefit-publications__list li { padding: 8px 0; border-bottom: 1px solid #eee; line-height: 1.4; font-size: 14px; }
.benefit-publications__list li a { color: #07294d; font-weight: 600; }
.benefit-publications__list li a:hover { color: #0c8b51; }
.benefit-publications__list small { display: block; color: #666; font-size: 12px; margin-top: 2px; }
.benefit-publications__all { margin: 10px 0 0; font-size: 14px; }

/* Video lightbox (overrides/assets/lightbox.js) */
/* margin:auto is what centres a modal <dialog>; the theme's blanket margin reset cancels
   it, which pinned the dialog to the top left corner and put the close button, sitting at
   top:-44px, above the viewport where no mouse could reach it. */
.gc-lightbox { border: 0; padding: 0; background: transparent; margin: auto; max-width: min(960px, 92vw); width: 92vw; }
.gc-lightbox::backdrop { background: rgba(0, 0, 0, .85); }
.gc-lightbox__frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 6px; overflow: hidden; }
.gc-lightbox__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gc-lightbox__close { position: absolute; top: 8px; right: 8px; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff; color: #07294d; font-size: 26px; line-height: 40px; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.35); }
/* A diagram is not a 16:9 video. The fixed ratio and overflow:hidden belong to the film
   player and cropped a tall diagram by a third, so an image opens in a frame that takes
   the picture's own shape. */
.gc-lightbox--image { width: auto; max-width: 94vw; }
.gc-lightbox--image .gc-lightbox__frame { aspect-ratio: auto; overflow: visible; background: transparent; }

/* Accordion without Bootstrap JS (overrides/assets/collapse.js) */
.collapse:not(.show) { display: none; }

/* Overview film in the section below the hero (overrides/assets/film.js) */
.about-film { position: relative; }
.gc-film { position: relative; border-radius: 8px; overflow: hidden; background: #000; box-shadow: 0 12px 40px rgba(7, 41, 77, .25); margin: 0; }
.gc-film__video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.gc-film--ready:not(.gc-film--playing) { cursor: pointer; }
.gc-film--ready:not(.gc-film--playing)::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px;
  border-radius: 50%; background: rgba(12, 139, 81, .92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/46% no-repeat;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .4); transition: transform .15s ease;
}
.gc-film--ready:not(.gc-film--playing):hover::after, .gc-film--ready:not(.gc-film--playing):focus-visible::after { transform: scale(1.06); }
.gc-film--ready:focus-visible { outline: 3px solid #9fe0bf; outline-offset: 3px; }
@media (max-width: 991px) { .about-film { margin-top: 30px; } }

/* Funding page */
.gc-funding-intro { font-size: 18px; line-height: 1.6; }
.gc-funders { list-style: none; margin: 30px 0; padding: 0; }
.gc-funder { display: flex; gap: 28px; align-items: flex-start; padding: 26px 0; border-top: 1px solid #e6e6e6; }
.gc-funder__logo { flex: 0 0 200px; display: flex; align-items: center; justify-content: center; min-height: 80px; background: #fff; border: 1px solid #eee; border-radius: 6px; padding: 12px; }
.gc-funder__logo img { max-width: 176px; max-height: 72px; width: auto; height: auto; }
.gc-funder__body h3 { font-size: 20px; margin: 0 0 4px; }
.gc-funder__role { color: #0c8b51; font-weight: 600; margin: 0 0 8px; }
@media (max-width: 600px) { .gc-funder { flex-direction: column; } .gc-funder__logo { flex-basis: auto; width: 100%; } }

/* Partners grid (content/partners.json) */
.gc-partner .teacher-image { background: #fff; }
.gc-partner__logo { width: 100%; height: 215px; object-fit: contain; padding: 22px; background: #fff; border: 1px solid #eee; }
.gc-partner__logo--mark { padding: 0; }
.gc-partner .designation { color: #666; }
.gc-partner__logo--light { background: #07294d; border-color: #07294d; }

/* News cards and generated news pages */
.gc-news-card .blog-image img { display: block; }
.blog-details-content .pub-actions .main-btn { margin: 4px 8px 4px 0; }

/* Tables inside generated pages (climate case) */
.gc-table { overflow-x: auto; margin: 0 0 24px; }
.gc-table table { width: 100%; border-collapse: collapse; font-size: 13.5px; line-height: 1.4; }
.gc-table th, .gc-table td { padding: 7px 8px; border-bottom: 1px solid #e3e3e3; text-align: left; vertical-align: top; }
.gc-table th { background: #f4f7f4; font-weight: 600; color: #1d2b1f; }
.gc-table td.n { white-space: nowrap; }
.gc-table th { white-space: normal; }
.gc-table--text td, .gc-table--text th { white-space: normal !important; }
.benefit-body table + p { margin-top: 0; }
.gc-note { font-size: 14px; color: #555; border-left: 3px solid #8bc34a; padding: 8px 14px; margin: 24px 0; background: #f7faf5; }

/* Funding page: room between the closing note and the footer */
.gc-funders ~ p { margin: 24px 0 64px; }

/* Newsletter block on pages that had only a "Signup" button */
.gc-newsletter-contact { margin: 14px 0 0; font-size: 15px; }
.gc-newsletter-contact a { text-decoration: underline; }

/* Events grid: entries from the dissemination log */
.single-event .gc-event-partner { font-size: 14px; color: #6d6d6d; margin: 6px 0 12px; }
.single-event .event-title a { font-size: 17px; line-height: 1.35; }
.gc-events-intro { margin-bottom: 10px; }
.gc-training { padding-left: 1.2em; }
.gc-training li { margin-bottom: .6em; }

/* FAQ answers: links look like links at rest */
.faq-wrapper .accordion .card .card-body a { color: #07294d; text-decoration: underline; }
.faq-wrapper .accordion .card .card-body a:hover { color: #0c8b51; }
/* Benefit cards: one image shape whatever the source ratio */
.single-courses-2 .courses-image img { width: 100%; aspect-ratio: 1792 / 1024; object-fit: cover; height: auto; }

/* Publication pages: room between the Synopsis heading and its text */
.pub-page h3 + .pub-synopsis, .pub-page h3 + .pub-synopsis--pending { margin-top: 14px; }
.pub-page .pub-synopsis p + p { margin-top: 12px; }

/* Researchers page */
.gc-people { list-style: none; margin: 0 0 30px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; align-items: stretch; }
.gc-person { background: #f6f8f6; border-radius: 10px; padding: 18px 20px; }
.gc-person__head { display: flex; gap: 14px; align-items: center; }
.gc-person__photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: 0 0 72px; }
.gc-person__photo--initials { display: inline-flex; align-items: center; justify-content: center; background: #07294d; color: #fff; font-weight: 600; font-size: 22px; letter-spacing: .02em; }
.gc-person__name { font-size: 18px; margin: 0 0 4px; line-height: 1.3; }
.gc-person__name .orcid-icon { vertical-align: -2px; }
.gc-person__meta { margin: 0; font-size: 14px; color: #555; }
.gc-person__roles { margin: 4px 0 0; font-size: 14px; color: #0c8b51; }
.gc-person__bio { margin: 12px 0 0; font-size: 15px; line-height: 1.6; color: #333; }
.gc-person__pubs { margin: 10px 0 0; padding-left: 0 !important; font-size: 14px; list-style: none !important; }
.gc-person__pubs li { list-style: none !important; padding-left: 14px; position: relative; }
.gc-person__pubs li::before { content: "\203A"; position: absolute; left: 0; color: #0c8b51; }
.gc-person__pubs li::marker { content: ""; }
.gc-person__pubs li { margin-bottom: 4px; }
.benefit-body h3 + .gc-people { margin-top: 14px; }
/* Researcher cards are a grid, not a bulleted list (overrides .benefit-body ul) */
.benefit-body ul.gc-people { list-style: none; padding-left: 0; }
.benefit-body ul.gc-people > li.gc-person { list-style: none; margin-bottom: 0; }
.benefit-body ul.gc-people > li.gc-person::marker { content: ""; }

/* Researcher profile pages */
.gc-person__more { margin: 10px 0 0; font-size: 14px; }
.gc-profile__head { display: flex; gap: 22px; align-items: center; margin: 0 0 8px; }
.gc-profile__photo { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; flex: 0 0 140px; }
.gc-profile__photo--initials { display: inline-flex; align-items: center; justify-content: center; background: #07294d; color: #fff; font-weight: 600; font-size: 44px; }
.gc-profile__partner { font-size: 17px; margin: 0 0 6px; }
.gc-profile__roles { list-style: none !important; padding: 0 !important; margin: 0 0 6px; color: #0c8b51; font-size: 15px; }
.gc-profile__roles li { margin: 0 0 2px; }
.gc-profile__orcid { margin: 0; font-size: 14px; }
.gc-profile__orcid .orcid-icon { vertical-align: -2px; }
.pub-timeline--flat { padding-left: 0; margin-top: 10px; }
.pub-timeline--flat::before { display: none; }
.pub-timeline--flat .pub-timeline__item { width: 100%; padding: 0; margin: 0 0 16px; left: auto; }
.pub-timeline--flat .pub-timeline__item::before, .pub-timeline--flat .pub-timeline__item::after { display: none; }
.benefit-body ol.pub-timeline--flat { list-style: none; }
.benefit-body ol.pub-timeline--flat > li { list-style: none; }

/* Researchers: filter by institution */
.gc-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 26px; }
.gc-filter__btn { border: 1px solid #cfd8d2; background: #fff; color: #07294d; border-radius: 999px; padding: 6px 14px; font-size: 14px; line-height: 1.3; cursor: pointer; font-family: inherit; }
.gc-filter__btn span { color: #6d6d6d; font-size: 12px; margin-left: 4px; }
.gc-filter__btn:hover { border-color: #0c8b51; color: #0c8b51; }
.gc-filter__btn.is-active { background: #0c8b51; border-color: #0c8b51; color: #fff; }
.gc-filter__btn.is-active span { color: #e3f3e8; }
.gc-partner-group[hidden] { display: none; }
.gc-person[hidden] { display: none; }
.gc-person__meta a { color: #07294d; text-decoration: underline; }

/* Official event logos on event cards and event news items */
/* An event logo sits on its own tile. A white wordmark on transparency vanishes on a
   white tile and a dark mark vanishes on a navy one, so the tile follows the artwork:
   build-dissemination.logo_tone() reads the drawn pixels and picks the class. */
.single-event .gc-event-logo { display: flex; align-items: center; justify-content: center;
  height: 74px; margin: 0 auto 12px; padding: 10px; border-radius: 6px; box-sizing: border-box; }
.single-event .gc-event-logo img { max-height: 100%; max-width: 88%; width: auto; height: auto; object-fit: contain; }
.gc-event-logo--white { background: #fff; border: 1px solid #ececec; }
.gc-event-logo--navy { background: #07294d; border: 1px solid #07294d; }
.gc-news-logo { display: flex; align-items: center; justify-content: center; height: 220px; background: #fff; border: 1px solid #ececec; padding: 18px; }
.gc-news-logo--navy { background: #07294d; border-color: #07294d; }
.gc-news-logo img { max-width: 80%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.gc-news-logo--page { height: 260px; margin-bottom: 20px; }
.category-items .gc-cat-link { margin-top: 8px; font-size: 15px; }

/* Events map */
.gc-map { margin: 6px 0 10px; }
.gc-map svg { width: 100%; height: auto; display: block; background: #f4f8f5; border-radius: 12px; }
.gc-map__country { fill: #dfe6e1; stroke: #fff; stroke-width: .5; }
.gc-map__country.is-active { fill: #b8dcc4; cursor: pointer; }
.gc-map__country.is-active:hover, .gc-map__country.is-selected { fill: #0c8b51; }
.gc-map__spot circle { fill: #07294d; fill-opacity: .8; stroke: #fff; stroke-width: 1.2; cursor: pointer; transition: fill .15s; }
.gc-map__spot.is-upcoming circle { fill: #8bc34a; fill-opacity: .95; }
.gc-map__spot:hover circle, .gc-map__spot.is-selected circle { fill: #0c8b51; fill-opacity: 1; }
.gc-map__legend { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin: 12px 0 6px; font-size: 14px; }
.gc-map__key::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.gc-map__key--past::before { background: #07294d; }
.gc-map__key--upcoming::before { background: #8bc34a; }
.gc-map__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; }
.gc-map__chip { border: 1px solid #cfd8d2; background: #fff; color: #07294d; border-radius: 999px; padding: 4px 12px; font-size: 13px; line-height: 1.3; cursor: pointer; font-family: inherit; }
.gc-map__chip span { color: #6d6d6d; font-size: 12px; margin-left: 3px; }
.gc-map__chip:hover { border-color: #0c8b51; color: #0c8b51; }
.gc-map__chip.is-selected, .gc-map__chip.is-active { background: #0c8b51; border-color: #0c8b51; color: #fff; }
.gc-map__chip.is-selected span, .gc-map__chip.is-active span { color: #e3f3e8; }
.gc-map__status { margin: 4px 0 0; font-size: 14px; color: #0c8b51; min-height: 1.4em; }
.gc-event.gc-cc-hide { display: none !important; }

/* Event pages: their own sidebar */
.gc-event-facts { margin: 0; font-size: 15px; }
.gc-event-facts dt { font-weight: 600; color: #07294d; margin-top: 8px; }
.gc-event-facts dd { margin: 0; }
.gc-event-pub { font-weight: 600; line-height: 1.4; }
.gc-event-people { font-size: 14px; }
.gc-event-list { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.gc-event-list li { margin: 0 0 8px; }

/* Key feature items link to their pages */
.single-features-item .item-content p a { color: inherit; }
.single-features-item .item-content p a:hover { color: #0c8b51; }

/* Partner logos beside partner names (ITEA versions) */
.gc-inst-logo { height: 20px; width: auto; max-width: 90px; object-fit: contain; vertical-align: -5px; margin-right: 6px; background: #fff; border-radius: 3px; padding: 1px 3px; }
.gc-inst-logo--lg { height: 36px; max-width: 150px; vertical-align: -12px; margin-right: 10px; }

/* Researchers: filters in the sidebar, styled like Key Facts */
.gc-side-filter .courses-features-items li { padding: 0; }
.gc-side-filter__btn { width: 100%; text-align: left; background: none; border: 0; padding: 9px 0; font: inherit; color: #07294d; cursor: pointer; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eee; }
.gc-side-filter__btn strong { color: #6d6d6d; font-weight: 600; }
.gc-side-filter__btn:hover { color: #0c8b51; }
.gc-side-filter__btn.is-active { color: #0c8b51; font-weight: 600; }
.gc-side-filter__btn.is-active strong { color: #0c8b51; }
.gc-filter-status { font-size: 14px; color: #0c8b51; min-height: 1.4em; margin: 0 0 8px; }

/* Researcher profile links */
.gc-profile__links { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.gc-profile__link { display: inline-block; border: 1px solid #cfd8d2; border-radius: 999px; padding: 3px 12px; font-size: 13px; color: #07294d; background: #fff; }
.gc-profile__link:hover { border-color: #0c8b51; color: #0c8b51; }
.gc-profile__link--linkedin { border-color: #b9cfe4; }
.gc-profile__link--researchgate { border-color: #bfe3dc; }

/* Breathing room before the blue footer on every page */
.footer-area { margin-top: 72px; }

/* Teaching page */
.gc-teaching { list-style: none !important; padding: 0 !important; margin: 26px 0 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; align-items: stretch; }
.benefit-body ul.gc-teaching > li { list-style: none !important; margin: 0; }
.gc-teach { background: #f6f8f6; border-radius: 10px; padding: 20px 22px; }
.gc-teach__title { font-size: 19px; margin: 0 0 6px !important; line-height: 1.3; }
.gc-teach__partner { margin: 0 0 8px; font-size: 15px; }
.gc-teach__msg { font-size: 15px; color: #333; }
.gc-teach__facts { margin: 6px 0 12px; font-size: 14px; display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; }
.gc-teach__facts dt { font-weight: 600; color: #07294d; }
.gc-teach__facts dd { margin: 0; }
.gc-teach__links { margin: 0; }
.gc-teach__links .main-btn { font-size: 13px; padding: 8px 16px; }

/* Film stills floated beside the body text. The markdown line sits immediately before
   the paragraphs it belongs to, because a float is placed by the flow that follows it.
   Below 768px a float would leave a one-word column, so it becomes full width. */
.gc-fig { margin: 6px 0 22px; }
.gc-fig img { width: 100%; height: auto; border-radius: 10px; display: block; }
.gc-fig figcaption { font-size: 14px; line-height: 1.5; color: #5a6b7d; margin-top: 8px; }
.gc-fig--right { float: right; width: 44%; margin-left: 32px; clear: right; }
.gc-fig--left { float: left; width: 44%; margin-right: 32px; clear: left; }
.gc-fig--full { width: 100%; margin: 18px 0 26px; }
.benefit-body h3, .benefit-body h4 { clear: none; }
.benefit-body > *:last-child { margin-bottom: 0; }
.benefit-body::after { content: ""; display: block; clear: both; }
@media (max-width: 991px) { .gc-fig--right, .gc-fig--left { width: 50%; margin-left: 24px; margin-right: 24px; } }
@media (max-width: 767px) {
  .gc-fig--right, .gc-fig--left { float: none; width: 100%; margin-left: 0; margin-right: 0; }
}
.gc-fig__zoom { display: block; position: relative; }
.gc-fig__hint { position: absolute; right: 8px; bottom: 8px; background: rgba(7,41,77,.82); color: #fff;
  font-size: 11.5px; letter-spacing: .3px; padding: 3px 9px; border-radius: 20px; opacity: 0; transition: opacity .15s; }
.gc-fig__zoom:hover .gc-fig__hint, .gc-fig__zoom:focus-visible .gc-fig__hint { opacity: 1; }
.gc-lightbox__img { display: block; max-width: 94vw; max-height: 90vh; width: auto; height: auto; border-radius: 10px; }
/* A table beside a float shrinks to fit the narrowed column and stays narrow for its whole
   height, so a seven-column table lands in half the width with every cell wrapping. Tables
   take the full column and start below any float. */
.gc-table { clear: both; }

/* Generated page banners: 2048x640, shown 320px tall across the content column. The crop
   is the centre, which is where every banner prompt puts its subject. */
.gc-banner { display: block; width: 100%; height: 320px; object-fit: cover; object-position: center; border-radius: 6px; }
@media (max-width: 767px) { .gc-banner { height: 200px; } }
.pub-banner { margin: 6px 0 26px; }
.pub-card__thumb { flex: none; width: 132px; }
.pub-card__thumb img { display: block; width: 132px; height: 74px; object-fit: cover; border-radius: 6px; }
@media (max-width: 600px) { .pub-card__thumb, .pub-card__thumb img { width: 96px; height: 54px; } }

/* Home page news slider: every card the same height. The title area is always five lines
   tall (clamped with an ellipsis beyond that), so a short title no longer shortens its card
   and the "Read more" links line up across the row. */
.blog-active .gc-news-card { display: flex; flex-direction: column; min-height: 0 !important; height: 100%; }
.blog-active .gc-news-card .blog-content { display: flex; flex-direction: column; flex: 1 1 auto; }
.blog-active .gc-news-card .blog-title { font-size: 19px; line-height: 1.4; height: calc(5 * 1.4em); margin-bottom: 14px;
  display: -webkit-box; -webkit-line-clamp: 5; line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.blog-active .gc-news-card .more { margin-top: auto; }
.blog-active .slick-track { display: flex; }
.blog-active .slick-slide { height: auto; }
.blog-active .slick-slide > div, .blog-active .custom-col { height: 100%; }

/* "Get in touch" box under Key Facts: the logo on its own white tile, and a green button
   that turns navy with a green outline on hover. */
.courses-sidebar-cta img { background: #fff; padding: 10px; border-radius: 6px; box-sizing: content-box; }
.courses-sidebar-cta .main-btn { background: #0c8b51; border: 2px solid #0c8b51; color: #fff; transition: background .15s, border-color .15s; }
.courses-sidebar-cta .main-btn:hover, .courses-sidebar-cta .main-btn:focus-visible { background: #07294d; border-color: #0c8b51; color: #fff; }

/* FAQ: no "Q:"/"A:" labels; a drawn thumbnail sits beside each question and its answer.
   The theme padded the card and the answer to make room for the labels. */
.faq-wrapper .accordion .card.gc-faq { display: grid; grid-template-columns: 120px minmax(0, 1fr); column-gap: 26px;
  align-items: start; padding-left: 0; margin-top: 40px; }
.faq-wrapper .accordion .card.gc-faq > .card-header, .faq-wrapper .accordion .card.gc-faq > .collapse,
.faq-wrapper .accordion .card.gc-faq > .collapsing { grid-column: 2; }
.faq-wrapper .accordion .card.gc-faq .card-body { padding-left: 0; margin-top: 12px; }
.gc-faq-thumb { grid-column: 1; grid-row: 1 / span 2; width: 120px; height: 120px; border-radius: 12px; display: block; }
@media (max-width: 575px) {
  .faq-wrapper .accordion .card.gc-faq { grid-template-columns: 72px minmax(0, 1fr); column-gap: 16px; }
  .gc-faq-thumb { width: 72px; height: 72px; border-radius: 8px; }
}
/* Banner at the top of the contact and about pages. */
.gc-page-top { margin-bottom: 30px; }

/* Teaching page: reported activities, then verified courses by institution. */
.gc-teach-section { margin: 44px 0 10px; }
.gc-teach-tier { margin: 30px 0 6px; font-size: 20px; }
.gc-teach-tier__blurb { color: #555; margin-bottom: 14px; }
.gc-insts { display: grid; gap: 16px; }
.gc-inst { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 20px; align-items: start;
  padding: 18px 20px; border: 1px solid #e6e6e6; border-radius: 8px; background: #fff; }
.gc-inst__logo { width: 92px; height: auto; max-height: 64px; object-fit: contain; }
.gc-inst__logo--none { display: block; height: 1px; }
.gc-inst__name { font-size: 18px; margin: 0 0 2px; }
.gc-inst__name a { color: #07294d; }
.gc-inst__where, .benefit-body .gc-inst__where { color: #666; font-size: 14px; line-height: 1.4; margin: 0 0 10px; }
.benefit-body ul.gc-offers, ul.gc-offers { list-style: none; padding-left: 0; margin: 0; }
.gc-offer { padding: 8px 0; border-top: 1px solid #f0f0f0; }
.gc-offer:first-child { border-top: 0; padding-top: 0; }
.gc-offer__title { font-weight: 600; color: #0c8b51; text-decoration: underline; text-underline-offset: 2px; }
.gc-offer__gloss { font-weight: 400; color: #555; }
.gc-offer__meta, .gc-offer__note { display: block; font-size: 14px; color: #555; line-height: 1.5; }
.gc-offer__note { font-style: italic; }
@media (max-width: 575px) { .gc-inst { grid-template-columns: 1fr; gap: 8px; } .gc-inst__logo--none { display: none; } }
/* Teaching cards the same height in each row, with their links along the bottom. */
.gc-teach { display: flex; flex-direction: column; height: 100%; }
.gc-teach .gc-teach__links { margin-top: auto; padding-top: 6px; }
.gc-teaching { grid-auto-rows: 1fr; }   /* every row as tall as the tallest, so all cards match */
/* Every FAQ answer closes with one call to action. */
.faq-wrapper .accordion .card .card-body p.gc-faq-cta { margin-top: 12px; }
.gc-faq-cta a { font-weight: 600; color: #0c8b51; text-decoration: underline; text-underline-offset: 2px; }
.gc-faq-cta a:hover { color: #07294d; }
/* Contact page: an icon above each way of getting in touch. */
.gc-contact-icon { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin: 0 auto 16px;
  border-radius: 50%; background: #0c8b51; color: #fff; }
.gc-contact-icon svg { display: block; }

/* Results page */
.benefit-body ul.gc-results { list-style: none; padding-left: 0; }
.gc-results li { padding: 10px 0 10px 18px; border-left: 3px solid #0c8b51; margin-bottom: 10px; }
.gc-results li a { color: #0c8b51; font-weight: 600; }
.gc-software, .gc-deliv { border: 1px solid #e6e6e6; border-radius: 8px; padding: 18px 20px; margin: 16px 0; background: #fff; }
.gc-software__name { margin: 0 0 4px; font-size: 20px; }
.gc-software__meta, .gc-deliv__id { color: #666; font-size: 14px !important; margin-bottom: 8px !important; }
.gc-software__note { font-size: 14px !important; color: #555; }
.gc-software__links, .gc-deliv__links { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; }
.gc-software__links .main-btn, .gc-deliv__links .main-btn { height: 44px; line-height: 44px; padding: 0 20px; }
.main-btn--secondary { background: #fff; color: #07294d; border: 2px solid #07294d; }
.main-btn--secondary:hover { background: #07294d; color: #fff; }
.gc-deliv { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; align-items: start; }
.gc-deliv__img img { width: 200px; height: auto; border-radius: 6px; display: block; }
.gc-deliv__title { font-size: 19px; margin: 0 0 8px; }
.gc-deliv__title a { color: #07294d; }
@media (max-width: 575px) { .gc-deliv { grid-template-columns: 1fr; } .gc-deliv__img img { width: 100%; } }
.gc-page-top--clear { padding-top: 70px; }
.event-page .gc-page-top--clear { padding-top: 20px; }
@media (max-width: 991px) { .gc-page-top--clear { padding-top: 96px; } }
.gc-page-top__title { margin-top: 34px; }

/* Partner profile pages */
.gc-partner-logo { display: flex; align-items: center; justify-content: flex-start; padding: 18px 22px; margin: 4px 0 22px;
  border: 1px solid #e6e6e6; border-radius: 8px; background: #fff; max-width: 420px; }
.gc-partner-logo img { max-height: 90px; max-width: 100%; width: auto; height: auto; }
.gc-partner-logo--light { background: #07294d; border-color: #07294d; }
.benefit-body ul.gc-plist { list-style: none; padding-left: 0; margin-bottom: 18px; }
.gc-plist li { padding: 7px 0; border-top: 1px solid #f0f0f0; }
.gc-plist li:first-child { border-top: 0; }
.gc-plist li a { color: #07294d; font-weight: 600; }
.gc-plist li a:hover { color: #0c8b51; }
.gc-plist li span { color: #666; font-size: 14px; margin-left: 6px; }
.gc-plinks { display: flex; flex-wrap: wrap; gap: 10px; }
.gc-plinks .main-btn { height: 44px; line-height: 44px; padding: 0 18px; }
/* the theme lays the contact cards out as a row; stack the icon above the heading */
.single-contact-info { display: flex; flex-direction: column; align-items: center; text-align: center; }
.single-contact-info .gc-contact-icon { margin: 0 0 14px; }
.single-contact-info .info-content { padding-left: 0; }
/* Partner cards: the theme styles them as teacher profiles, with a 70px indent and a grey
   panel behind; without those the logo tile sits centred in its card. */
.single-teacher.gc-partner { padding-left: 0; }
.single-teacher.gc-partner::before { display: none; }
.gc-partner .teacher-image, .gc-partner .teacher-content { margin-left: auto; margin-right: auto; }
.gc-partner__logo { object-position: center; }
/* on a partner's own page the logo sits above the name */
.gc-partner-logo { margin: 0 0 18px; }

/* Footer social icons to the right of the email address, matching the theme's round outline icons */
.gc-footer-email { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; }
.gc-footer-email > p { margin: 0; }
.gc-footer-social { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; }
.gc-footer-social li { margin: 0 !important; }
.gc-footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border: 1px solid #fff; border-radius: 50%; color: #fff; font-size: 15px; transition: background-color .2s, border-color .2s; }
/* green fill on hover; the icon and the circle stay white (the theme's .link-list li a:hover would turn the icon green) */
.link-list li .gc-footer-social a:hover, .link-list li .gc-footer-social a:focus-visible,
.gc-footer-social a:hover, .gc-footer-social a:focus-visible { background-color: #0c8b51; border-color: #fff; color: #fff; }

/* Footer 150px shorter: 50px less above the columns (the newsletter box still overlaps the
   top 78px of the footer, so the headings keep clear of it) and 100px less below them */
.footer-area:not(.footer-02) { padding-top: 100px; }
.footer-area .footer-widget { padding-bottom: 50px; }
@media (max-width: 991px) { .footer-area .footer-widget { padding-bottom: 40px; } }
@media (max-width: 767px) { .footer-area .footer-widget { padding-bottom: 30px; } }

/* Links in running text are underlined so they read as links. Scoped to prose: paragraphs,
   plain lists and tables in page bodies, news posts and the funding page. Buttons, cards,
   badges, profile link rows and the sidebar are left as designed. */
.benefit-body > p a:not(.main-btn), .benefit-body > ul:not([class]) li a, .benefit-body > ol:not([class]) li a,
.benefit-body table a, .benefit-body blockquote a,
.blog-details-content p a:not(.main-btn), .blog-details-content li a:not(.main-btn),
.gc-funder__body p a, .gc-software__note a, .gc-results li a {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.benefit-body > p a:not(.main-btn):hover, .benefit-body > ul:not([class]) li a:hover, .benefit-body > ol:not([class]) li a:hover,
.benefit-body table a:hover, .blog-details-content p a:not(.main-btn):hover, .blog-details-content li a:not(.main-btn):hover,
.gc-funder__body p a:hover, .gc-software__note a:hover, .gc-results li a:hover { text-decoration-thickness: 2px; }

/* Events map follows the Upcoming / Past filter: places and countries with nothing in that view drop out */
.gc-map__spot.is-off { display: none; }
.gc-map__country.is-active.is-off { fill: #dfe6e1; cursor: default; }
.gc-map__chip.is-off { display: none; }
.gc-map__chip b { font-weight: inherit; }
/* Zooming the events map to a country: borders and marker outlines keep their width */
.gc-map svg path, .gc-map svg circle { vector-effect: non-scaling-stroke; }
/* a selected country is filled green, so its markers keep their own colours with a white ring */
.gc-map__spot.is-selected circle { fill: #07294d; fill-opacity: .9; stroke: #fff; stroke-width: 2; }
.gc-map__spot.is-selected.is-upcoming circle { fill: #8bc34a; }
.gc-map__spot.is-selected:hover circle, .gc-map__spot.is-selected:focus-visible circle { fill: #2f6ea8; }
.gc-map__spot.is-selected.is-upcoming:hover circle { fill: #a5d86b; }

/* Zoomed into a country: other countries' markers step aside, and a marker opens a popup of its events */
.gc-map { position: relative; }
.gc-map__spot.is-away { display: none; }
.gc-map__pop { position: absolute; z-index: 20; width: 300px; max-width: calc(100% - 8px); max-height: 280px; overflow: auto;
  background: #fff; border-radius: 6px; box-shadow: 0 8px 28px rgba(7, 41, 77, .22); padding: 14px 16px 10px; text-align: left; }
.gc-map__pop[hidden] { display: none; }
.gc-map__pop-close { position: absolute; top: 4px; right: 6px; border: 0; background: none; font-size: 22px; line-height: 1; color: #07294d; cursor: pointer; padding: 4px 6px; }
.gc-map__pop-close:hover { color: #0c8b51; }
.gc-map__pop-place { margin: 0 24px 8px 0; font-weight: 600; color: #07294d; font-size: 15px; }
.gc-map__pop ul { list-style: none; margin: 0; padding: 0; }
.gc-map__pop li { padding: 8px 0; border-top: 1px solid #e6ece8; }
.gc-map__pop-title { display: block; color: #07294d; font-weight: 600; line-height: 1.35; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.gc-map__pop-title:hover { color: #0c8b51; }
.gc-map__pop-meta { display: block; font-size: 13px; color: #6d6d6d; margin-top: 2px; }
.gc-map__pop-meta em { font-style: normal; color: #fff; background: #8bc34a; border-radius: 3px; padding: 0 5px; margin-left: 4px; font-size: 12px; }
.gc-map__pop-title:focus { text-decoration: underline; outline: none; }
.gc-map__pop-title:focus-visible { outline: 2px solid #0c8b51; outline-offset: 2px; }

/* "Show all countries" in the bottom right of the map while zoomed into a country */
.gc-map__stage { position: relative; }
.gc-map__reset { position: absolute; right: 12px; bottom: 12px; z-index: 10; border: 2px solid #0c8b51; background: #0c8b51; color: #fff;
  border-radius: 4px; padding: 7px 14px; font: inherit; font-size: 14px; line-height: 1.2; cursor: pointer;
  box-shadow: 0 4px 14px rgba(7, 41, 77, .2); transition: background-color .2s, color .2s; }
.gc-map__reset:hover, .gc-map__reset:focus-visible { background: #07294d; border-color: #0c8b51; color: #fff; }
.gc-map__reset[hidden] { display: none; }
@media (max-width: 575px) { .gc-map__reset { right: 8px; bottom: 8px; padding: 5px 10px; font-size: 13px; } }
.gc-teaching-teaser p { margin-top: 0; }
.gc-teaching-teaser a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* The legend doubles as the Past / Upcoming filter */
.gc-map__key { border: 1px solid transparent; background: none; font: inherit; font-size: 14px; color: #07294d; padding: 4px 10px 4px 8px;
  border-radius: 999px; cursor: pointer; transition: opacity .15s, border-color .15s, background-color .15s; }
.gc-map__key:hover, .gc-map__key:focus-visible { border-color: #0c8b51; }
.gc-map__key.is-on { border-color: #0c8b51; background: #e8f5ec; font-weight: 600; }
.gc-map__key.is-dim { opacity: .5; }

/* Past / Upcoming badge in the top corner of every event card */
.single-event { position: relative; }
.gc-event-status { position: absolute; top: 10px; right: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.4; letter-spacing: .02em; }
.gc-event-status i { font-size: 11px; }
.gc-event-status--upcoming { background: #8bc34a; color: #07294d; }
.gc-event-status--past { background: #e6ece8; color: #07294d; }

/* News sidebar: the post title sits below its thumbnail, not beside it */
.blog-sidebar-post .post-items li .single-post { display: block; padding: 15px 0; }
.blog-sidebar-post .post-items li .single-post .post-thumb,
.blog-sidebar-post .post-items li .single-post .post-thumb img { width: 100% !important; }
.blog-sidebar-post .post-items li .single-post .post-thumb img { height: auto !important; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; display: block; }
.blog-sidebar-post .post-items li .single-post .post-content { padding-left: 0; padding-top: 12px; }
.blog-sidebar-post .post-items li .single-post .post-content .post-title { margin: 0; line-height: 1.35; }

/* Event cards: "Read more" is the site's green button, navy with a green outline on hover */
.single-event .more { display: inline-block; margin-top: 15px; padding: 8px 18px; border: 2px solid #0c8b51; border-radius: 4px;
  background: #0c8b51; color: #fff; font-size: 14px; font-weight: 600; letter-spacing: .02em; line-height: 1.3; transition: background .15s, border-color .15s; }
.single-event .more:hover, .single-event .more:focus-visible { background: #07294d; border-color: #0c8b51; color: #fff; }
.single-event .more i { font-size: 11px; margin-left: 4px; }

/* Counter sections: smaller description text under each figure */
.single-counter p { font-size: 16px; line-height: 1.55; letter-spacing: .01em; }
@media only screen and (min-width: 768px) and (max-width: 991px) { .single-counter p { font-size: 15px; } }
@media (max-width: 767px) { .single-counter p { font-size: 14px; } }
.gc-funder { scroll-margin-top: 130px; }

/* Hand-written articles (/news/<slug>/): room under the title, and a tidy numbered source list */
.details-content h3.title + h3 { margin-top: 26px; }
.details-content h3:not(.title):not(.gc-sources-title) { margin-top: 30px; margin-bottom: 10px; font-size: 24px; }
.gc-sources-title { font-size: 20px; margin: 36px 0 10px; color: #07294d; }
.gc-sources { list-style: decimal; padding-left: 24px; margin: 0; font-size: 14px; line-height: 1.55; color: #3a4a42; }
.gc-sources li { margin: 0 0 8px; overflow-wrap: anywhere; }
.gc-sources a { text-decoration: underline; text-underline-offset: 2px; }
/* Page films hosted on YouTube (content/videos.json), right of the first paragraph. The poster
   stands in until the viewer presses play: nothing is fetched from YouTube before that, and the
   embed is youtube-nocookie. A film with no id yet shows its poster marked "coming soon". */
.gc-yt { float: right; width: 46%; margin: 4px 0 22px 32px; clear: right; }
.gc-yt--block { float: none; width: 100%; margin: 0; }
.gc-yt__frame { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #f1f1f1;
  box-shadow: 0 10px 32px rgba(7, 41, 77, .18); }
.gc-yt__frame img, .gc-yt__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; display: block; }
.gc-yt__play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background: transparent; cursor: pointer; }
.gc-yt__play::after { content: ""; position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%;
  background: rgba(12, 139, 81, .92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/46% no-repeat;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .3); transition: transform .15s ease; }
.gc-yt__play:hover::after, .gc-yt__play:focus-visible::after { transform: scale(1.07); }
.gc-yt__play:focus-visible { outline: 3px solid #9fe0bf; outline-offset: -3px; }
.gc-yt__soon { position: absolute; left: 12px; bottom: 12px; background: rgba(7, 41, 77, .88); color: #fff; font-size: 13px;
  font-weight: 600; letter-spacing: .2px; padding: 5px 12px; border-radius: 20px; }
.gc-yt__soon i { margin-right: 6px; color: #ff4e45; }
.gc-yt figcaption { font-size: 14px; line-height: 1.5; color: #5a6b7d; margin-top: 8px; }
@media (max-width: 991px) { .gc-yt { width: 50%; margin-left: 24px; } }
@media (max-width: 767px) { .gc-yt { float: none; width: 100%; margin: 4px 0 22px; } }

/* --- the site's own film player (assets/gc-player.js) ------------------------------------ */
.gc-player--on .gc-yt__frame { background: #000; }
.gc-player__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; cursor: pointer; }
.gc-player__bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px;
  padding: 18px 12px 10px; background: linear-gradient(transparent, rgba(7, 41, 77, 0.85)); color: #fff; font: 600 13px/1 sans-serif; }
.gc-player__btn { background: none; border: 0; color: #fff; cursor: pointer; padding: 4px 6px; font: 700 13px/1 sans-serif; border-radius: 4px; }
.gc-player__btn:focus-visible { outline: 2px solid #3ddc84; }
.gc-player__play::before { content: "\275A\275A"; font-size: 12px; letter-spacing: -2px; }
.gc-player__play.is-paused::before { content: "\25B6"; letter-spacing: 0; font-size: 14px; }
.gc-player__fs::before { content: "\26F6"; font-size: 16px; }
.gc-player__cc[aria-pressed="true"] { background: #fff; color: #07294d; }
.gc-player__time { min-width: 86px; font-variant-numeric: tabular-nums; }
.gc-player__seek { flex: 1; accent-color: #3ddc84; }
.gc-yt__frame:fullscreen .gc-player__video { object-fit: contain; }

/* "Made by Explain a Paper": an icon button in the control bar, beside CC, opening a short
   note just above the bar with a link out. */
.gc-player__eap { display: inline-flex; align-items: center; padding: 3px 5px; }
.gc-player__eap svg { display: block; }
.gc-player__eap[aria-expanded="true"] { background: #fff; color: #07294d; }
.gc-player__about { position: absolute; right: 12px; bottom: 52px; z-index: 3; max-width: 280px; padding: 12px 14px;
  background: rgba(7, 41, 77, 0.96); color: #fff; border-radius: 8px; border-top: 3px solid #3ddc84;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35); font: 400 13.5px/1.45 Exo, sans-serif; text-align: left; }
.gc-player__about p { margin: 0 0 6px; color: #fff; font-size: 13.5px; line-height: 1.45; }
.gc-player__about .gc-player__about-title { font-weight: 700; font-size: 14.5px; }
.gc-player__about a { color: #9fe0bf; font-weight: 600; text-decoration: underline; }
.gc-player__about[hidden] { display: none; }
.gc-yt figcaption a { color: inherit; text-decoration: underline; }
/* Newsletter result pages and the 404 page have no banner, so their text started under the
   absolutely positioned header; this clears it. */
.gc-result { padding: 190px 0 90px; max-width: 760px; }
.gc-result h1 { margin-bottom: 18px; }
.gc-result p { font-size: 18px; line-height: 1.6; margin-bottom: 14px; }
.gc-result__links a:not(.main-btn) { display: inline-block; margin: 10px 18px 0 0; font-weight: 600; }
.gc-result__links .main-btn { margin-right: 18px; }
@media (max-width: 991px) { .gc-result { padding-top: 150px; } }
/* The navy strip above the header is an accent only: a third of the theme's 25px. */
.header-top { height: 8px; padding: 0 !important; overflow: hidden; }
/* The film pop-up (film-dialog.js): every film opens here, large, over a dimmed page. */
.gc-film-dialog { margin: auto; padding: 0; border: 0; background: transparent; overflow: visible;
  width: min(92vw, calc((86vh - 70px) * 16 / 9)); max-width: 1440px; }
.gc-film-dialog::backdrop { background: rgba(4, 16, 32, 0.88); }
.gc-film-dialog__stage { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.gc-film-dialog__stage iframe, .gc-film-dialog__stage video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.gc-film-dialog__close { position: absolute; top: -46px; right: -4px; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12); color: #fff; font: 400 30px/40px Exo, sans-serif; cursor: pointer; }
.gc-film-dialog__close:hover, .gc-film-dialog__close:focus-visible { background: #fff; color: #07294d; outline: none; }
.gc-film-dialog__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; margin: 12px 2px 0; color: #dfe7ef;
  font: 400 15px/1.4 Exo, sans-serif; }
.gc-film-dialog__title { color: #fff; font-weight: 600; }
.gc-film-dialog__note a { color: #9fe0bf; text-decoration: underline; }
@media (max-width: 767px) { .gc-film-dialog { width: 100vw; max-width: 100vw; } .gc-film-dialog__stage { border-radius: 0; }
  .gc-film-dialog__close { right: 8px; } .gc-film-dialog__meta { margin: 10px 12px 0; } }
