/* Styles that used to sit inside the page, moved out so the site can refuse inline styles. */
:root {
      --navy: #1C348C;
      --navy-dark: #152868;
      --yellow: #FAD21E;
      --yellow-hover: #e6c01a;
      --sky: #77A0D5;
      --bg: #EEF3FA;
      --white: #ffffff;
      --text: #1a2332;
      --text-muted: #4a5568;
      --border: #d0dbe8;
      --radius: 12px;
      --shadow: 0 2px 8px rgba(28, 52, 140, 0.08);
      --shadow-lg: 0 8px 24px rgba(28, 52, 140, 0.12);
    }
    * { box-sizing: border-box; margin: 0; padding: 0; }
    body {
      font-family: "Atkinson Hyperlegible", "Segoe UI", Verdana, sans-serif;
      background: var(--bg);
      color: var(--text);
      font-size: 1.125rem;
      line-height: 1.55;
    }
    /* On tall screens the footer colour fills whatever space is left, so there's no gap. */
    html { background: var(--navy-dark); }
    a { color: var(--navy); }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0.7rem 1.35rem;
      border-radius: 10px;
      font-family: inherit;
      font-size: 1rem;
      font-weight: 700;
      text-decoration: none;
      border: 2px solid transparent;
      min-height: 48px;
    }
    .btn-yellow { background: var(--yellow); color: var(--navy-dark); border-color: var(--yellow); }
    .btn-yellow:hover { background: var(--yellow-hover); }
    .nav-desktop a.btn-yellow { color: var(--navy-dark); padding: 0.55rem 1.1rem; min-height: 44px; }
    .nav-desktop a.btn-yellow:hover { background: var(--yellow-hover); }
    .btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.75); }
    .btn-outline-white:hover { background: rgba(255, 255, 255, 0.12); }

    /* Content */
    .page {
      max-width: 1100px;
      width: 100%;
      margin: 0 auto;
      padding: 2rem 1.25rem 2.5rem;
      display: grid;
      gap: 1.5rem;
      align-content: start;
    }
    .about {
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      padding: 1.75rem;
      display: grid;
      gap: 0.9rem;
    }
    .about h2 { color: var(--navy); font-size: 1.45rem; }
    .about p, .about li { color: var(--text-muted); }
    .about ul { padding-left: 1.3rem; display: grid; gap: 0.45rem; }
    .split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 1.25rem; }

    /* Four boxes, all the same size: every row as tall as the tallest box. */
    .home-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      grid-auto-rows: 1fr;
      gap: 1.25rem;
      align-items: stretch;
    }
    .home-grid > * { margin: 0; min-height: 0; }
    .media {
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }
    .media video, .media iframe {
      display: block;
      width: 100%;
      flex: 1 1 auto;
      min-height: 0;
      border: 0;
      background: #000;
    }
    .media video { object-fit: cover; }
    .media figcaption { padding: 0.7rem 1rem; color: var(--text-muted); font-size: 1.0625rem; flex: 0 0 auto; }
    @media (max-width: 800px) {
      /* One column on phones: boxes fit their content, videos keep their shape. */
      .home-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
      .media video, .media iframe { flex: none; aspect-ratio: 16 / 9; height: auto; }
    }
    /* Membership banner at the bottom */
    .cta-band {
      background: var(--navy);
      color: var(--white);
      padding: 2.25rem 1.25rem;
    }
    .cta-band-in {
      max-width: 1100px;
      margin: 0 auto;
      text-align: center;
      display: grid;
      gap: 0.6rem;
      justify-items: center;
    }
    .cta-band h2 { font-size: 1.6rem; }
    .cta-band p { opacity: 0.92; max-width: 36rem; }
    .cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 0.5rem; }

    .site-footer { background: var(--navy-dark); color: rgba(255, 255, 255, 0.8); padding: 1.5rem 1.25rem; }
    .footer-inner { max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; font-size: 1rem; }
    .site-footer a { color: rgba(255, 255, 255, 0.85); }
    .footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }

    @media (max-width: 960px) {
      .nav-desktop { display: none; }
      .menu-toggle { display: flex; }
      body { font-size: 1.0625rem; }
    }
    @media (max-width: 600px) {
      .top-banner-in { min-height: 150px; padding: 1.25rem; gap: 1rem; }
      .top-banner::before { background: url("images/banner-plane.jpg") center / cover no-repeat; }
      .top-banner img { width: 80px; height: 80px; padding: 4px; }
      .cta-actions { flex-direction: column; width: 100%; }
      .cta-actions .btn { width: 100%; }
    }
