    :root {
      --bg: #fdf7ec;
      --text: #213b45;
      --accent: #2c7370;
      --accent-light: #e8b04f;
      --card-bg: #ffffff;
      --btn-primary-bg: #2c7370;
      --btn-secondary-bg: #e46245;
    }
    * { box-sizing: border-box; }
    body { margin: 0; font-family: 'Inter', system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; padding: 2rem; }
    header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 2rem;
      flex-wrap: wrap;
    }
    header .logo {
      font-weight: 700;
      font-size: 1.5rem;
      color: var(--accent);
      user-select: none;
    }
    nav {
      display: flex;
      gap: 1.5rem;
      flex-wrap: wrap;
      font-weight: 600;
    }
    nav a {
      color: var(--accent);
      text-decoration: none;
      padding: 0.25rem 0.5rem;
      border-radius: 0.25rem;
      transition: background-color 0.3s ease;
    }
    nav a:hover, nav a:focus {
      background-color: var(--accent-light);
      color: #fff;
      outline: none;
    }
    h1 { font-size: 2.5rem; margin: .5rem 0; }
    .btn {
      display: inline-block;
      padding: .75rem 1.5rem;
      border-radius: .5rem;
      text-decoration: none;
      font-weight: 600;
      text-align: center;
      cursor: pointer;
      border: none;
      user-select: none;
      transition: background-color 0.3s ease, opacity 0.3s ease;
    }
    .btn.primary {
      background: var(--btn-primary-bg);
      color: #fff;
    }
    .btn.primary:hover, .btn.primary:focus {
      opacity: .9;
      outline: none;
    }
    .btn.secondary {
      background: var(--btn-secondary-bg);
      color: var(--text);
    }
    .btn.secondary:hover, .btn.secondary:focus {
      opacity: .85;
      outline: none;
    }
    .btn:hover {
      opacity: .9;
    }
    .hero {
      text-align: center;
      margin-bottom: 3rem;
    }

    .hero-header {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 1.25rem;
      flex-wrap: wrap;
    }

.hero-header h1 {
  font-size: 2.75rem;
  color: #2A6B6B;
  margin: 0;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
  position: relative;
  display: inline-block;
  letter-spacing: 0.05em;
  font-weight: 800;
}

.hero-header h1::after {
  content: '';
  position: absolute;
  height: 4px;
  width: 50%;
  background: var(--accent-light);
  bottom: -8px;
  left: 25%;
  border-radius: 2px;
}

    .hero-header img {
      height: 64px;
      width: auto;
      vertical-align: middle;
    }

    .hero-subtext {
      font-size: 1.125rem;
      margin-top: 1rem;
      color: #333;
    }
    #featured-game {
      background: var(--card-bg);
      border-radius: 0.75rem;
      padding: 2rem;
      box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
      margin-bottom: 3rem;
      display: flex;
      align-items: flex-start;
      gap: 2rem;
      text-align: left;
    }
    #featured-game h2 {
      margin-top: 0;
      margin-bottom: 1rem;
      color: var(--accent);
    }
    #featured-game p {
      margin-bottom: 1.5rem;
      font-size: 1.125rem;
    }
    #featured-game .features {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 2rem;
      margin-bottom: 1.5rem;
      font-weight: 600;
      font-size: 1rem;
      color: var(--accent);
    }
    #featured-game .features div {
      background: var(--accent-light);
      padding: 0.5rem 1rem;
      border-radius: 0.5rem;
      min-width: 0;          /* allow pills to shrink */
      flex: 1 1 auto;        /* enable flexible sizing */
      user-select: none;
    }
/* Optional: Responsive feature pills for very small screens */
@media (max-width: 500px) {
  #featured-game .features div {
    flex: 1 1 100%;
    text-align: center;
  }
}
    #game-directory-preview {
      margin-bottom: 3rem;
    }
    #game-directory-preview h2,
    #game-directory-preview .directory-subhead {
      text-align: center;
      margin-bottom: 1rem;
      color: var(--accent);
    }
    #game-directory-preview .grid {
      display: grid;
      gap: 1rem;
      grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
      margin-bottom: 1rem;
    }
    .game-card {
      background: var(--card-bg);
      border-radius: .75rem;
      padding: 1.25rem;
      box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
      display: flex;
      flex-direction: column;
      transition: transform 0.2s ease;
      cursor: default;
    }
    .game-card:hover, .game-card:focus-within {
      transform: translateY(-5px);
      box-shadow: 0 6px 12px rgba(0,0,0,0.15);
      outline: none;
    }
    .game-card h3 {
      margin: 0 0 .5rem;
      font-size: 1.125rem;
      color: var(--accent);
    }
    .game-card p {
      margin: 0 0 .75rem;
      font-size: .9rem;
      flex: 1;
      color: var(--text);
    }
    .game-card .grade-bands {
      margin: 0 0 .75rem;
      font-size: .9rem;
      color: var(--text);
    }
    .game-card a {
      align-self: flex-start;
      color: var(--accent);
      font-weight: 600;
      text-decoration: none;
      margin-top: auto;
      user-select: none;
    }
    .game-card a:hover, .game-card a:focus {
      text-decoration: underline;
      outline: none;
    }
    #educator-resources {
      background: var(--card-bg);
      border-radius: 0.75rem;
      padding: 2rem;
      box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
      margin-bottom: 3rem;
    }
    #educator-resources h2 {
      text-align: center;
      margin-bottom: 2rem;
      color: var(--accent);
    }
    #educator-resources .resources-grid {
      display: grid;
      gap: 1.5rem;
      grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
    #educator-resources .resource-block {
      background: var(--bg);
      border-radius: 0.5rem;
      padding: 1rem 1.25rem;
      box-shadow: 0 1px 4px rgba(0,0,0,0.1);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }
    #educator-resources .resource-block h3 {
      margin-top: 0;
      margin-bottom: 0.5rem;
      color: var(--accent);
      font-size: 1.125rem;
    }
    #educator-resources .resource-block p {
      flex-grow: 1;
      font-size: 0.9rem;
      margin-bottom: 1rem;
      color: var(--text);
    }
    #educator-resources .resource-block a {
      align-self: flex-start;
      color: var(--accent);
      font-weight: 600;
      text-decoration: none;
      user-select: none;
    }
    #educator-resources .resource-block a:hover, #educator-resources .resource-block a:focus {
      text-decoration: underline;
      outline: none;
    }
    #newsletter-signup {
      background: var(--card-bg);
      border-radius: 0.75rem;
      padding: 2rem;
      box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
      text-align: center;
      margin-bottom: 3rem;
    }
    #newsletter-signup h2 {
      margin-top: 0;
      margin-bottom: 1rem;
      color: var(--accent);
    }
    #newsletter-signup form {
      display: flex;
      justify-content: center;
      gap: 0.5rem;
      flex-wrap: wrap;
    }
    #newsletter-signup input[type="email"] {
      padding: 0.75rem 1rem;
      font-size: 1rem;
      border: 1px solid #ccc;
      border-radius: 0.5rem;
      width: 250px;
      max-width: 100%;
      outline-offset: 2px;
      transition: border-color 0.3s ease;
    }
    #newsletter-signup input[type="email"]:focus {
      border-color: var(--accent);
      outline: none;
    }
    #newsletter-signup button {
      padding: 0.75rem 1.5rem;
      font-size: 1rem;
      border: none;
      border-radius: 0.5rem;
      background-color: var(--btn-primary-bg);
      color: #fff;
      font-weight: 600;
      cursor: pointer;
      user-select: none;
      transition: background-color 0.3s ease;
    }
    #newsletter-signup button:hover, #newsletter-signup button:focus {
      background-color: var(--accent-light);
      outline: none;
    }
    footer {
      margin-top: 3rem;
      text-align: center;
      font-size: .875rem;
      color: #718096;
    }

    /* --- Thinklings Brand Identity Styling --- */
    body {
      font-family: 'Poppins', 'Nunito', sans-serif;
      background-color: #FFFBEF;
      color: #1A6B6B;
    }

    h1, h2, h3, h4 {
      font-family: 'Nunito', sans-serif;
      font-weight: 700;
      color: #1A6B6B;
    }

    .btn-primary {
      background-color: #E85C45;
      color: #fff;
      border: none;
      padding: 0.75em 1.5em;
      border-radius: 6px;
      font-weight: bold;
    }

    .btn-secondary {
      background-color: #E7B13D;
      color: #1A6B6B;
      border: none;
      padding: 0.75em 1.5em;
      border-radius: 6px;
      font-weight: bold;
    }

    .card {
      background-color: #ECD7A0;
      border: 1px solid #1A6B6B;
      border-radius: 8px;
      padding: 1em;
      margin: 1em 0;
    }

    nav {
      background-color: #1A6B6B;
      color: #fff;
    }

    nav a {
      color: #fff;
      text-decoration: none;
      margin: 0 1em;
    }

    footer {
      background-color: #1A6B6B;
      color: #fff;
      padding: 1em;
      text-align: center;
    }



/* Mascot beside the Hero headline */
.hero-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-header .hero-mascot {
  width: 80px;
  height: auto;
}

/* Filters container styling */
.filters {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* Filter dropdown styling */
.filter-dropdown {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 2px solid var(--accent);
  border-radius: 0.5rem;
  background: #fff;
  color: var(--text);
  appearance: none;
  cursor: pointer;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.filter-dropdown:hover,
.filter-dropdown:focus {
  border-color: var(--accent-light);
  outline: none;
  background-color: var(--bg);
}
/* Responsive navbar for small screens */
@media (max-width: 1200px) {
  /* Stack logo and navigation vertically */
  header {
    flex-direction: column;
    align-items: center;
  }

  /* Center the nav links and add spacing */
  nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
  }

  /* Increase padding for easier tapping */
  nav a {
    padding: 0.5rem 1rem;
  }
}

/* Featured Game clean-up */
#featured-game .featured-game-container {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

#featured-game .featured-game-image .featured-game-img {
  flex-shrink: 0;
  width: 720px;
  max-width: 80%;
  height: auto;
}

#featured-game .featured-game-content {
  flex: 1;
  text-align: left;
}

#featured-game .featured-game-content p {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

#featured-game .features-inline {
  font-weight: 600;
  color: var(--accent);
  margin: 1rem 0;
}

#featured-game .features-inline {
  line-height: 1.4;
}

#featured-game .btn.secondary {
  display: inline-block;
  margin-top: 1rem;
}
/* Featured Game: stack image above content on small screens */
@media (max-width: 768px) {
  #featured-game .featured-game-container {
    flex-direction: column;
  }

  /* Center-align the image when stacked */
  #featured-game .featured-game-image,
  #featured-game .featured-game-image .featured-game-img {
    width: 100%;
    max-width: 100%;
    margin-bottom: 1.5rem;
  }
}
/* Educator Resources: one-column layout on narrow screens */
@media (max-width: 600px) {
  #educator-resources .resources-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }

  #educator-resources .resource-block {
    width: 100%;
    max-width: 100%;
  }
}
/* Stack and size filters for narrow viewports */
@media (max-width: 600px) {
  .filters {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .filter-dropdown {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}



/* Utility for print-only elements */
.print-only {
  display: none !important;
}

@media print {
  .print-only {
    display: block !important;
  }
}

/* Print layout enhancements */
@media print {
  /* Hide elements marked as no-print */
  .no-print {
    display: none !important;
  }
  /* Force each worksheet to start on a new page */
  .page-break {
    display: block;
    page-break-before: always;
    break-before: page;
  }
}