/* Site colours: change them here only */
:root {
  --background: #ffffff;     /* page background */
  --text: #222222;           /* normal text */
  --main: #336666;           /* dark teal: header */
  --on-main: #ffffff;        /* text on top of the main colour */
  --button: #1a5fb4;         /* blue button */
  --button-hover: #144a8c;   /* darker blue */
  --accent: #1f7a7a;   /* brighter teal for text and lines on the page */
  --logo-bg: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --background: #1a1a1a;     /* very dark grey, not pure black */
    --text: #e8e8e8;           /* light grey text */
    --main: #244d4d;           /* darker teal, so it is not glaring */
    --on-main: #ffffff;
    --button: #3584e4;         /* lighter blue, easier to see on dark */
    --button-hover: #62a0ea;
    --accent: #86b3b3;       /* lighter teal, readable on dark */
  } 
}
/* Header: flex row, sticky on phones */
header {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  background-color: var(--background);   /* was var(--main) */
  color: var(--text);                    /* was var(--on-main) */
  /*border-bottom: 1px solid var(--accent);*/
}
/* Photos: hidden on phones */
.header-photos {
  display: none;
  flex-wrap: wrap;
  gap: 10px;
}
img {
  max-width: 100%;
  height: auto;
}
.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-brand img {
  background-color: var(--logo-bg);
  padding: 6px;
  border-radius: 4px;
  width: 180px;
}
h1 {
  font-size: 1.2rem;
  font-weight: 500;
}
nav {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: var(--background);
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
}
nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: center;
  flex: 1; 
}
.nav-logo { 
	width: 60px;
	background-color: var(--logo-bg);
    padding: 3px; border-radius: 4px;
    visibility: hidden; 
}
nav.stuck .nav-logo { visibility: visible; }
nav.stuck { border-bottom: 1px solid var(--accent); }
nav a {
  color: var(--text);
  text-decoration: none;
}
nav a:hover,
nav a:focus {
  text-decoration: underline;
}
hr {
  border: none;
  border-top: 1px solid var(--accent);
  margin: 20px 0;
}
/* Page: never wider than 1200px, centred */
body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
  background-color: var(--background);
  color: var(--text);  
  font-size: 1.125rem;   /* 18px for most visitors */
}

@media (min-width: 768px) {
  main {
    display: flex;
    gap: 20px;
  }

  h1 {
    font-size: 1.5rem;
  }
/* Show photos on wide screens */
	.header-photos {
    display: flex;
  }
  /*Header sticky on phone*/
  nav {
    position: static;
  }
nav a {
  color: var(--text);    /*color: var(--on-main);*/
}
.nav-logo      { display: none; }
}
/* "Book the centre" button */
.cta a {
  display: inline-block;
  background-color: #1a5fb4;
  color: #ffffff;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}
/* News strip */
marquee {
  color: var(--accent);
  font-family: "Times New Roman", Times, serif;
  font-size: 1.3rem;
  font-style: italic;
}
.bottom-photos figure {
  margin: 0 0 1rem 0;
}

@media (min-width: 768px) {
  .bottom-photos {
    display: flex;
    gap: 10px;
  }

 .bottom-photos figure {
    flex: 1;
    margin: 0 0 1rem 0;
  }
}
a {
  color: var(--accent);
}

address {
  font-style: normal;
}

.registration {
  font-style: italic;
}
.calendar       { flex: 1; }
iframe          { width: 100%; height: 600px; border: 0; }