/* Fonts are served from this site (static/fonts/), not from Google,
   so visitors' browsers don't contact any third party. */
@font-face {
  font-family: "Poppins";
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/Poppins-Regular.woff") format("woff");
}
@font-face {
  font-family: "Poppins";
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/Poppins-Medium.woff") format("woff");
}
/* Open Sans: see the "Fonts" section of the README. Until the file is added,
   body text uses Open Sans if the visitor has it installed, otherwise their
   system font. */

/* OSC-W colours, taken from the old Elementor theme */
:root {
  --navy: #002060;
  --teal: #005172;
  --green: #34b233;
  --text: #56595f;
  --nav: #324a6d;
  --light: #f3f5f9;
  --line: #dfe4ec;
  --max: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--navy);
  font: 400 16px/1.65 "Open Sans", system-ui, sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: var(--teal); text-underline-offset: 2px; }
a:hover { color: var(--green); }
h1, h2, h3 { line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; margin: 2.5rem 0 1.25rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 500; margin: 2.5rem 0 1rem; }
h3 { font-size: 1.2rem; font-weight: 600; margin: 1.5rem 0 .5rem; }
p, li { color: var(--text); }
strong { color: var(--navy); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.small { font-size: .875rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 10; }

/* Buttons */
.button {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-family: Poppins, sans-serif;
  font-weight: 500;
  text-decoration: none;
  padding: .7rem 1.5rem;
  border-radius: 6px;
  border: 2px solid var(--green);
}
.button:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.button.ghost { background: transparent; color: var(--teal); border-color: var(--teal); }
.button.ghost:hover { background: var(--teal); color: #fff; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 84px; }
.logo img { display: block; width: 200px; height: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.site-nav a {
  display: block;
  padding: .5rem .9rem;
  font: 400 15px Poppins, sans-serif;
  color: var(--nav);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current] { color: var(--navy); border-bottom-color: var(--green); }
.menu-toggle, .menu-button { display: none; }

@media (max-width: 860px) {
  .header-inner { flex-wrap: wrap; }
  .logo img { width: 160px; }
  .menu-button {
    display: block; width: 44px; height: 44px; cursor: pointer; position: relative;
  }
  .menu-button span, .menu-button span::before, .menu-button span::after {
    position: absolute; left: 10px; width: 24px; height: 2px; background: var(--navy); content: "";
  }
  .menu-button span { top: 21px; }
  .menu-button span::before { left: 0; top: -7px; }
  .menu-button span::after { left: 0; top: 7px; }
  .site-nav { display: none; width: 100%; padding-bottom: .75rem; }
  .menu-toggle:checked ~ .site-nav { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: .7rem .5rem; border-bottom: 1px solid var(--line); }
}

/* Home */
.hero { background: var(--light); }
.hero-inner { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 2rem; padding-top: 2rem; padding-bottom: 2rem; }
.hero-inner img { justify-self: center; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.split { display: grid; grid-template-columns: 300px 1fr; gap: 3rem; align-items: center; margin: 3.5rem 0; }
.split.reverse { grid-template-columns: 1fr 300px; }
.split > p:first-child { margin: 0; justify-self: center; }
.split.reverse > p:first-child { order: 2; }
.split h2 { margin-top: 0; }
@media (max-width: 760px) {
  .hero-inner, .split, .split.reverse { grid-template-columns: 1fr; gap: 1.5rem; }
  .split.reverse > p:first-child { order: 0; }
  .split > p:first-child { max-width: 220px; }
  .hero-inner img { max-width: 220px; }
}

/* Prose */
.prose img { display: block; margin: 1.5rem auto; border-radius: 6px; }

/* Team */
.team {
  list-style: none; padding: 0; margin: 0 0 3rem;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2rem 1.5rem;
  text-align: center;
}
.team img { width: 160px; height: 160px; object-fit: cover; border-radius: 50%; display: block; margin: 0 auto .75rem; }
.team h3 { margin: 0 0 .25rem; font-size: 1.05rem; }
.team p { margin: 0; font-size: .9rem; line-height: 1.5; }
.team .role { color: var(--green); font-weight: 600; margin-top: .25rem; }

/* Cards (funding) */
.card { border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 6px; padding: .25rem 1.5rem 1rem; margin: 1.25rem 0; }
.card h3 { margin-top: 1rem; }
.deadline { font-weight: 600; color: var(--teal); }

/* Newsletters */
.newsletters { list-style: none; padding: 0; }
.newsletters li { padding: .6rem 0; border-bottom: 1px solid var(--line); }
.newsletters .num { color: var(--green); font-weight: 700; margin-right: .35rem; }

/* Events */
.event-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.event-card {
  display: grid; grid-template-columns: 72px 1fr 220px; gap: 1.25rem; align-items: start;
  padding: 1.5rem 0; border-bottom: 1px solid var(--line);
}
.event-card h3 { margin: 0 0 .25rem; }
.event-card h3 a { color: var(--navy); text-decoration: none; }
.event-card h3 a:hover { color: var(--teal); text-decoration: underline; }
.event-card p { margin: .25rem 0; }
.meta { font-size: .9rem; color: var(--teal); font-weight: 600; }
.datebox { text-align: center; border: 1px solid var(--line); border-radius: 6px; padding: .4rem 0; line-height: 1.1; }
.datebox span { display: block; }
.datebox .month { font-size: .8rem; text-transform: uppercase; color: var(--green); font-weight: 700; }
.datebox .day { font-size: 1.7rem; font-weight: 700; color: var(--navy); }
.datebox .year { font-size: .75rem; color: var(--text); }
.event-thumb img { border-radius: 6px; display: block; }
.past .event-card { opacity: .85; }
@media (max-width: 760px) {
  .event-card { grid-template-columns: 60px 1fr; }
  .event-thumb { grid-column: 1 / -1; }
}
.event-details { list-style: none; padding: 1rem 1.25rem; background: var(--light); border-radius: 6px; }
.event-banner { display: block; width: 100%; border-radius: 6px; margin: 1.5rem 0; }
.notice { display: inline-block; background: var(--light); padding: .3rem .8rem; border-radius: 4px; font-size: .9rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 4rem; padding: 2rem 0; background: var(--light); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer-inner img { display: block; width: 160px; height: auto; }
.footer-inner p { margin: 0; font-size: .9rem; text-align: right; }
@media (max-width: 600px) { .footer-inner p { text-align: left; } }
@media (max-width: 480px) {
  .team { grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; }
  .team img { width: 120px; height: 120px; }
}
