
:root {
  --bg: #0f1115;
  --fg: #e7e9ee;
  --muted: #a7adba;
  --accent: #0197B2; /* base brand blue */
  --card: #151924;
  --border: #23283a;
  --focus: #a9d1ff;
  --shadow: 0 10px 30px rgba(0,0,0,.18);

  /* Brand button colours – dark mode */
  --btn-bg: linear-gradient(90deg, #0197B2, #0098AD);
  --btn-text: #ffffff;
  --btn-hover: linear-gradient(90deg, #163dcc, #5e9cff);
}
:root[data-theme="light"]{
  --bg: #ffffff;
  --fg: #0c1222;
  --muted: #4b5568;
  --accent: #0197B2;
  --card: #f7f8fb;
  --border: #e6e9f2;
  --focus: #8ab6ff;
  --shadow: 0 10px 24px rgba(14, 20, 35, .08);
  /* Button colours for light theme */
  --btn-bg: linear-gradient(90deg, #0197B2, #0098AD);
  --btn-text: #ffffff;
  --btn-hover: linear-gradient(90deg, #163dcc, #5e9cff);
}
@media (prefers-color-scheme: light){
  :root:not([data-theme]){
    --bg: #ffffff;
    --fg: #0c1222;
    --muted: #4b5568;
    --accent: #0197B2;
    --card: #f7f8fb;
    --border: #e6e9f2;
    --focus: #8ab6ff;
    --shadow: 0 10px 24px rgba(14, 20, 35, .08);
    /* Brand button colours – light mode */
    --btn-bg: linear-gradient(90deg, #0197B2, #0098AD);
    --btn-text: #ffffff;
    --btn-hover: linear-gradient(90deg, #163dcc, #5e9cff);
  }
}
:root[data-theme="light"] .tagline {
  color: #3c3c3c;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(1200px 600px at 50% -10%, rgba(106,176,255,.18), transparent 60%), var(--bg);
  color: var(--fg);
  line-height: 1.55;
  transition: background-color .25s ease, color .25s ease;
}
img {max-width:100%; height:auto}
.wrap {width:min(980px,92vw); margin: 0 auto; padding: 28px 20px 64px}
.header { display:flex; align-items:center; justify-content:space-between; flex-wrap: wrap; gap:20px; margin-bottom: 20px; padding: 6px 0 8px; }
.brand { display:flex; align-items:center; gap:16px;}
.logo { height: 165px; width: auto; }
.brand-text { display: flex; flex-direction: column; justify-content: center; max-height: 165px; /* keeps text vertically sligned with logo */ }
.badge{ font-size: 42px; font-weight: 800; colour: var(--fg); line-height: 1.1; letter-spacing: 0.5px; }
.tagline { font-size: 18px; font-weight: 500; color: var(--muted); margin: 6px 0 0; line-height:; 1.3;letter-spacing: 0.3px; }
.header-right { display: flex; align-items: center; gap: 8px; }
.social-header { display: flex; align-items: center; gap: 10px; }
/* Small circular outline icons */
.social-header .cta-outline {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding: 0;
  border: 1px solid var(--accent);
  box-shadow: 0 4px 10px rgba(0,0,0,.25);
  color: var(--accent);
  transition: all .2s ease;
}
.social-header .cta-outline:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}
.social-header svg {
  width: 18px;
  height: 18px;
}
.toggle{
  display:inline-flex; align-items:center; gap:8px;
  border:1px solid var(--border); border-radius: 20px; padding:8px 10px; cursor:pointer;
  background: var(--card); color: var(--fg); box-shadow: var(--shadow);
  transition: transform .06s ease, border-color .15s ease;
}
.toggle:hover{ transform: translateY(-1px); border-color: var(--focus) }
.toggle .icon{ font-size: 16px }
main .card{
  background: var(--card);
  border:1px solid var(--border);
  border-radius:16px;
  padding:28px;
  margin-top: 18px;
  box-shadow: var(--shadow);
}
h1{ font-size: clamp(30px,5vw,42px); margin:.2em 0 .1em }
h2{ font-size: clamp(20px,3vw,26px); margin: 1.2em 0 .4em }
.lede{ color: var(--muted); font-size: clamp(16px,2.4vw,19px) }
.section{ margin-top: 18px }
ul.meetings{ list-style:none; padding:0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap:12px }
.meeting{
  border:1px solid var(--border); border-radius:14px; padding:14px;
  display:flex; flex-direction:column; gap:4px; background: rgba(255,255,255,.02);
}
.meeting .name{ font-weight: 700 }
.meeting .meta{ color: var(--muted); font-size: 14px }
.row{ display:flex; gap:10px; flex-wrap:wrap; align-items:center }
.cta {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  background: var(--btn-bg);
  color: var(--btn-text);
  border: none;
  box-shadow: 0 4px 10px rgba(0,0,0,.25);
  transition: transform .08s ease, box-shadow .15s ease, opacity .2s ease;
}
.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,.3);
  opacity: .95;
}
.cta-outline {
  background: none;
  border: 1px solid var(--accent);
  color: var(--accent);
}
.cta-outline:hover {
  background: var(--accent);
  color: #fff;
}


/* Layout for logo + title + tagline */

.age-badge {
 background: var(--accent);
 color: #fff;
 font-size: 13px;
 font-weight: 700;
 padding: 8px 8px;
 border-radius: 8px;
 margin-left: 8px;
 vertical-align: middle;
}
:root[data-theme="light"] .age-badge {
 background: #0197B2;
}

.social a{ text-decoration:none; border:1px solid var(--border); padding:10px 12px; border-radius:12px; display:inline-flex; gap:10px; align-items:right }
.social svg{ width:18px; height:18px }
.footer{ margin-top: 22px; font-size: 13px; color: var(--muted); display:flex; justify-content:space-between; gap:8px; flex-wrap:wrap }
.small a{ color: var(--muted); text-decoration:none; border-bottom: 1px dotted var(--border) }
.small a:hover{ color: var(--fg); border-color: var(--focus) }
.noscript.hidden{ display:none !important; }
.noscript{ background: #b91c1c; color:#fff; padding:10px 12px; border-radius:10px; margin-top:12px; font-size:14px }

/* Hyperlink styling for body content (privacy/terms/etc.) */
.page-content a {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.15s ease;
}

.page-content a:hover,
.page-content a:focus-visible {
  color: var(--muted);
}

.announcement {
  background: linear-gradient(90deg, var(--accent), #3479c7); /* MIM blues */
  color: #fff;
  padding: 14px 20px;
  border-radius: 12px;
  margin: 0 0 20px 0;
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 3px 14px rgba(0,0,0,0.15);
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  text-align: center;
}

.announcement a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
}

.announcement a:hover {
  opacity: 0.9;
}


/* ---------- Mobile layout fixes ---------- */
@media (max-width: 640px){
  /* Let the header wrap to new lines and stop overlapping */
  .header{
    flex-direction: column;
    align-items:center;
    text-align: center;
    flex-wrap:wrap;              /* key: allow wrapping */
    gap:12px;
  }

  /* Brand block (logo + title + tagline) on its own row */
  .brand { flex-direction: column; }
  .brand-text { max-height: none; }
  .header-right { flex-direction: row; justify-content: center; }
  .social-header { gap:12px; }
  .logo { height:90px; }          /* slightly smaller logo on mobile */
  .badge { font-size:32px; }
  .tagline { font-size:14px; margin-top:6px; }
  
  /* Theme toggle goes to the top-right */
  .toggle{
    margin-left:auto;
    order:2;
  }
}
 


