html {
  scroll-behavior: smooth;
}

body {
  background-color: #ffffff;
  font-family: 'Nunito Sans', sans-serif;
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 10vh 10vw;
  background-image: url('media/radioscouts_large_scottish.svg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  z-index: -1;
  opacity: 0.2;
  filter: none;
}

.navbar {
  display: flex;
  position: sticky;
  align-items: center;
  top: 0;
  background-color: #003982;
  color: #fff;
  font: 100% 'Nunito Sans', sans-serif;
  padding: 10px 20px;
  z-index: 20;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.nav-list {
  display: flex;
  list-style: none;
  order: 2;
  margin-left: auto;
  flex-wrap: wrap;
  gap: 20px;
  padding: 0;
}

.nav-list li {
  margin: 0;
}

.nav-list li a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #ffffff;
  font-size: 18px;
  transition: color 0.3s ease-in-out;
}

.nav-list li a:hover,
.nav-list li a:focus-visible {
  color: #ff912a;
}

.nav-list li a.ext-link::after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  background: url('media/external-link.svg') center / contain no-repeat;
  flex-shrink: 0;
}

.leftNav {
  order: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  font: 100% 'Nunito Sans', sans-serif;
  font-weight: 300;
  font-size: 36px;
  color: #fff;
}

.logo {
  height: 50px;
  width: auto;
  margin-right: 20px;
}

.page-shell {
  width: 100%;
  height: calc(100vh - 68px - 32px);
  display: block;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(0, 57, 130, 0.14);
  border-bottom: 1px solid rgba(0, 57, 130, 0.14);
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  z-index: 1;
}

.page-shell.visible {
  display: block;
}

.page-inner {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 40px;
}

.page-panel {
  width: 100%;
  margin: 0 auto;
  padding: 28px 32px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(0, 57, 130, 0.25);
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 26, 54, 0.08);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  filter: none;
}

.page-panel h2 {
  margin-top: 0;
  color: #003982;
  font-size: clamp(1.8rem, 2.8vw, 2.8rem);
}

.page-panel p {
  color: #1d315d;
  font-size: 1.05rem;
  line-height: 1.7;
}

.intro-block {
  max-width: 760px;
  padding: 32px 36px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 16px 38px rgba(13, 55, 112, 0.12);
  backdrop-filter: blur(12px);
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #006ee1;
}

.intro-block h1 {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 4vw, 4rem);
  color: #003982;
}

.intro-block p:last-child {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.7;
  color: #1b355c;
}

.content-panel {
  display: none;
}

.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #003982;
  color: #fff;
  height: 32px;
  overflow: hidden;
  z-index: 30;
  transition: height 0.25s ease;
}

.site-footer.expanded {
  height: 120px;
}

.footer-compact,
.footer-expanded {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.footer-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 32px;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.footer-expanded {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 18px;
  padding: 10px 0 16px;
  font-size: 14px;
}

.footer-expanded ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-expanded li + li {
  margin-top: 8px;
}

.footer-expanded a {
  color: #fff;
  text-decoration: none;
}

.footer-expanded a:hover,
.footer-expanded a:focus-visible {
  color: #ff912a;
}

.ext-link {
  font-weight: 700;
}

#search,
.btn {
  padding: 8px;
  font-size: 16px;
  border: 2px solid #fff;
  border-radius: 5px;
}

.btn {
  background-color: #ffd700;
  color: #000;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
}

.btn:hover {
  background-color: #000;
  color: #ff912a;
}

.quicksand-bold {
  font-family: "Quicksand", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}

.quicksand-light {
  font-family: "Quicksand", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
}

.nunito-sans-light {
  font-family: "Nunito Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
}

.nunito-sans-bold {
  font-family: "Nunito Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}

@media (max-width: 840px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .nav-list {
    margin-left: 0;
    gap: 12px 16px;
  }

  .leftNav {
    font-size: 1.5rem;
  }

  .modal-overlay {
    padding: 8vh 5vw;
  }

  .modal-window {
    width: min(90vw, 700px);
    padding: 20px 18px 18px;
  }

  .modal-content {
    padding: 20px 18px;
  }
}