/* Global color palette */
@font-face {
  font-family: "Horatio D Medium";
  src: url("/assets/fonts/Horatio-D-Medium.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --gray: #5c5c5c;
  --yellow: #f3e03b;
  --blue: #31b0f4;
  --purple: #ab64f1;
  --pink: #fd46d6;
  --green: #88e600;
  --green-dark: #2f7d32;
  --ink: #1d2a32;
  --paper: #ffffff;
  --soft: #f0f9f4;
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.09);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: "Horatio D Medium", Arial, Helvetica, sans-serif;
  background: #f9f9f9;
  color: #222;
  line-height: 1.6;
}
img,
svg,
video,
iframe {
  max-width: 100%;
}
img {
  height: auto;
}
a {
  color: #1769a8;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}
main {
  display: block;
}
header {
  background: var(--green);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
  padding: 1rem;
}
.logo,
.logo a {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  text-decoration: none;
}
nav {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  flex-wrap: wrap;
}
nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
}
nav a:hover,
nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.2);
}
#navToggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
}
@media (max-width: 700px) {
  nav {
    display: none;
    flex-direction: column;
    background: var(--green);
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    padding: 1rem;
  }
  nav.show {
    display: flex;
  }
  #navToggle {
    display: block;
  }
}
.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: 0;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  font-weight: 700;
  cursor: pointer;
}
.btn:hover {
  background: #2295d6;
  transform: translateY(-1px);
}
.btn.secondary {
  background: var(--gray);
}
.btn.green {
  background: var(--green-dark);
}
footer,
.site-footer {
  background: var(--green-dark);
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 3rem;
}
footer a,
.site-footer a {
  color: #fff;
}
.footer-container {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}
.footer-brand strong {
  font-family: "Horatio D Medium", Arial, Helvetica, sans-serif;
  font-size: 1.35rem;
}
.footer-brand p,
.footer-credits p,
.footer-legal p {
  margin: 0.3rem 0;
}
.footer-links,
.footer-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1rem;
}
.footer-credits {
  max-width: 920px;
  margin: 0 auto;
  font-size: 0.95rem;
}
.hero {
  padding: clamp(3rem, 7vw, 6rem) 1rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(49, 176, 244, 0.95), rgba(47, 125, 50, 0.9));
  color: #fff;
}
.hero h1,
.page-hero h1 {
  font-size: clamp(2.1rem, 6vw, 4rem);
  line-height: 1.1;
}
.hero p {
  max-width: 900px;
  margin: 0 auto 1rem;
  font-size: clamp(1rem, 2vw, 1.2rem);
}
.content,
.section,
.sections,
.content-wrapper {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}
.content,
.section,
.sections {
  padding: 2rem 0;
}
.card-grid,
.sections-grid,
.games-grid,
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.card,
.game-card,
.plan-card,
.event,
.resource,
.step {
  background: var(--paper);
  border: 1px solid #e8eef3;
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1.25rem;
}
.card-link,
.game-card {
  color: inherit;
  text-decoration: none;
  display: block;
}
.card-link:hover,
.game-card:hover {
  transform: translateY(-3px);
}
.lead {
  max-width: 850px;
  color: #3a4a55;
}
.video-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.video-wrapper iframe,
.video-wrapper video {
  width: 100%;
  height: 100%;
  border: 0;
}
.notice {
  background: #fffbea;
  border: 1px solid #f0d35f;
  border-radius: 12px;
  padding: 1rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Shared page scaffolding for membership workflows */
.page-hero {
  background: linear-gradient(120deg, rgba(49, 176, 244, 0.12), rgba(136, 230, 0, 0.22));
  padding: 4rem 1rem;
  text-align: center;
  margin-bottom: 2rem;
}
.page-hero h1 {
  margin: 0 0 0.75rem;
  font-size: 2.5rem;
}
.page-hero p {
  margin: 0 auto;
  max-width: 700px;
  color: #333;
}
.content-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem 3rem;
}
.section-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  margin-bottom: 1.5rem;
}
.section-card h2 {
  margin-top: 0;
}
.highlight {
  background: rgba(136, 230, 0, 0.15);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px dashed var(--green);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem 1.25rem;
  margin-top: 1rem;
}
.input-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.input-group input,
.input-group select,
.input-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
}
.input-group small {
  color: #555;
}
.actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.alert {
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin: 0.75rem 0 0;
  border: 1px solid;
  font-weight: 600;
  background: #f7fbff;
  color: #0d3758;
}

.alert.success {
  border-color: #8fd19e;
  background: #f0fbf4;
  color: #1b5d35;
}

.alert.error {
  border-color: #f0b0b0;
  background: #fff4f4;
  color: #7a1f1f;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.toolbar .btn.secondary {
  background: #e5e8eb;
  color: #1d2a32;
}
.tag {
  display: inline-block;
  background: #eef6ff;
  color: #1e7acb;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}
.ticker {
  background: var(--gray);
  color: #fff;
  overflow: hidden;
  border-radius: 10px;
  position: relative;
}
.ticker-track {
  display: flex;
  gap: 2rem;
  padding: 0.85rem 1rem;
  animation: ticker-slide 28s linear infinite;
}
.ticker-track span {
  white-space: nowrap;
}
@keyframes ticker-slide {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.news-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}
.news-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.news-card .card-body {
  padding: 1rem;
  flex: 1;
}
.news-card h3 {
  margin: 0 0 0.5rem;
}
.news-card p {
  margin: 0 0 0.75rem;
}
.article-image {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 1rem;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.dialog-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1200;
}
.dialog-backdrop.show {
  display: flex;
}
.dialog {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.dialog header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.dialog header h3 {
  margin: 0;
}
.dialog .close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}
.topic-board {
  display: grid;
  gap: 1rem;
}
.topic-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #eee;
  padding: 1rem;
}
.topic-card h3 {
  margin-top: 0;
}
.comment {
  background: #f6f6f6;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin: 0.5rem 0;
}
.event-list {
  display: grid;
  gap: 1rem;
}
.event-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #eee;
  padding: 1rem;
  display: grid;
  gap: 0.35rem;
}
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}
.admin-grid .section-card {
  height: 100%;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
}
.admin-table th,
.admin-table td {
  border: 1px solid #ddd;
  padding: 0.6rem;
  text-align: left;
}
.admin-table th {
  background: #f2f2f2;
}
.inline-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.inline-form select,
.inline-form input {
  padding: 0.45rem 0.6rem;
  border: 1px solid #ddd;
  border-radius: 8px;
}
.inline-form .btn {
  padding: 0.45rem 0.8rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}
.stat-card {
  background: #f7fbff;
  border: 1px solid #d7e8f8;
  border-radius: 16px;
  padding: 1rem;
  text-align: center;
}
.stat-card strong {
  display: block;
  font-size: 2rem;
  color: var(--green-dark);
}
.stat-card span {
  font-weight: 700;
}
@media (max-width: 640px) {
  .page-hero h1 {
    font-size: 2rem;
  }
  .dialog {
    padding: 1rem;
  }
  .content,
  .section,
  .sections,
  .content-wrapper {
    width: min(100% - 1rem, 1120px);
  }
  .actions,
  .frequency {
    flex-direction: column;
  }
  .btn {
    width: 100%;
    text-align: center;
  }
}

/* Brand system reset: calm, editorial, premium environmental platform */
:root {
  --forest-950: #0b1f17;
  --forest-900: #10281d;
  --forest-800: #173829;
  --forest-700: #24513c;
  --forest-600: #376b4d;
  --moss-500: #7e9b62;
  --sage-300: #c9d6c1;
  --sage-200: #dfe8da;
  --sage-100: #eef3ea;
  --earth-500: #9b7f62;
  --clay-100: #f1e8dc;
  --paper: #fffdf8;
  --cream: #f7f3ea;
  --mist: #eef1ec;
  --ink: #14251d;
  --muted: #5e6b62;
  --line: rgba(20, 37, 29, 0.14);
  --line-soft: rgba(20, 37, 29, 0.08);
  --focus: #d5a932;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --shadow-subtle: 0 1px 2px rgba(20, 37, 29, 0.04), 0 14px 34px rgba(20, 37, 29, 0.08);
  --shadow-lift: 0 20px 46px rgba(20, 37, 29, 0.12);
  --max: 1320px;
  --max-text: 760px;
  --space-1: 0.35rem;
  --space-2: 0.65rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.25rem;
  --space-6: 3.25rem;
  --space-7: 5rem;
  --font-brand: "Horatio D Medium", Arial, Helvetica, sans-serif;
  --font-body: "Horatio D Medium", Arial, Helvetica, sans-serif;
}

html {
  background: var(--cream);
}

body {
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 8% 0%, rgba(126, 155, 98, 0.18), transparent 28rem),
    radial-gradient(circle at 90% 8%, rgba(201, 214, 193, 0.28), transparent 30rem),
    linear-gradient(180deg, #fbf8f1 0%, var(--cream) 42%, #f4f0e7 100%);
  color: var(--ink);
  font-size: clamp(1rem, 0.25vw + 0.95rem, 1.08rem);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body,
button,
input,
select,
textarea {
  font-family: var(--font-body);
}

h1,
h2,
h3,
h4,
h5,
h6,
.logo,
.btn {
  font-family: var(--font-brand);
  color: var(--ink);
  letter-spacing: -0.035em;
  line-height: 1.08;
}

h1 {
  font-size: clamp(3rem, 7vw, 6.8rem);
  max-width: 12ch;
}

h2 {
  font-size: clamp(2rem, 3.6vw, 4rem);
  max-width: 14ch;
}

h3 {
  font-size: clamp(1.25rem, 1.5vw, 1.75rem);
}

p,
li {
  color: var(--muted);
}

p {
  max-width: var(--max-text);
}

a {
  color: var(--forest-700);
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--forest-950);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

header {
  background: rgba(255, 253, 248, 0.88) !important;
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: none;
  backdrop-filter: blur(18px);
}

.nav-container {
  width: min(var(--max), calc(100% - clamp(1.25rem, 4vw, 4rem)));
  max-width: none;
  padding: 0.8rem 0;
}

.logo a {
  color: var(--forest-950) !important;
  font-size: clamp(1.35rem, 1.4vw, 1.75rem);
  letter-spacing: -0.04em;
}

.logo a::after {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-left: 0.45rem;
  border-radius: 999px;
  background: var(--moss-500);
  vertical-align: middle;
}

nav {
  gap: 0.1rem;
  align-items: center;
}

nav a {
  color: rgba(20, 37, 29, 0.74) !important;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.55rem 0.78rem;
  border-radius: 999px;
  transition: background-color 180ms ease, color 180ms ease;
}

nav a:hover,
nav a[aria-current="page"] {
  background: var(--sage-100) !important;
  color: var(--forest-950) !important;
}

#navToggle {
  color: var(--forest-950) !important;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.7);
}

.hero,
.page-hero {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  text-align: left !important;
  color: var(--ink) !important;
  background:
    linear-gradient(120deg, rgba(255, 253, 248, 0.94), rgba(238, 243, 234, 0.86)),
    radial-gradient(circle at 82% 18%, rgba(126, 155, 98, 0.26), transparent 22rem),
    linear-gradient(135deg, var(--cream), var(--sage-100)) !important;
  padding: clamp(5rem, 10vw, 9rem) clamp(1.25rem, 4vw, 4rem) clamp(4rem, 7vw, 7rem) !important;
  border-bottom: 1px solid var(--line-soft);
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: auto clamp(1.25rem, 5vw, 5rem) clamp(1rem, 2vw, 2rem) auto;
  width: min(34vw, 28rem);
  aspect-ratio: 1;
  border: 1px solid rgba(20, 37, 29, 0.1);
  border-radius: 42% 58% 48% 52%;
  background: linear-gradient(145deg, rgba(255, 253, 248, 0.15), rgba(126, 155, 98, 0.16));
  pointer-events: none;
  z-index: -1;
}

.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  left: clamp(1.25rem, 4vw, 4rem);
  right: clamp(1.25rem, 4vw, 4rem);
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--forest-800), transparent 72%);
  opacity: 0.28;
}

.hero > *,
.page-hero > * {
  width: min(var(--max), 100%);
  margin-left: auto !important;
  margin-right: auto !important;
  position: relative;
  z-index: 1;
}

.hero h1,
.page-hero h1 {
  margin: 0.45rem auto 1.2rem !important;
  color: var(--forest-950) !important;
}

.hero p,
.page-hero p {
  margin: 0 auto 0 0 !important;
  max-width: 760px;
  color: var(--muted) !important;
  font-size: clamp(1.15rem, 1vw + 0.9rem, 1.55rem);
  line-height: 1.55;
}

.kicker {
  display: inline-flex;
  width: auto;
  align-items: center;
  gap: 0.55rem;
  background: transparent !important;
  border: 0 !important;
  color: var(--forest-700) !important;
  border-radius: 0;
  padding: 0 !important;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.content,
.section,
.sections,
.content-wrapper {
  width: min(var(--max), calc(100% - clamp(1.25rem, 4vw, 4rem))) !important;
  max-width: none !important;
  margin-inline: auto !important;
}

.content,
.section,
.sections,
.content-wrapper {
  padding-top: clamp(3rem, 6vw, 6rem) !important;
  padding-bottom: clamp(3rem, 6vw, 6rem) !important;
}

main > .section-card:first-child,
main > .brand-panel:first-child {
  margin-top: 0;
}

.section-card,
.brand-panel {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: clamp(2rem, 5vw, 4.5rem) 0 !important;
  margin: 0 !important;
  border-bottom: 1px solid var(--line-soft) !important;
}

.section-card h2,
.brand-panel h2 {
  margin: 0 0 var(--space-4);
}

.section-card > p,
.brand-panel > p {
  font-size: clamp(1.05rem, 0.45vw + 0.95rem, 1.28rem);
}

.card-grid,
.sections-grid,
.games-grid,
.plan-grid,
.stats-grid,
.news-grid,
.event-list {
  gap: clamp(1rem, 2vw, 1.75rem) !important;
}

.card-grid,
.sections-grid,
.plan-grid,
.news-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

.games-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
}

.card,
.game-card,
.news-card,
.plan-card,
.event,
.resource,
.step,
.topic-card,
.event-card,
.stat-card,
.team-card,
.mini-card,
.learning-card,
.retrofit-card,
.role-card,
.glossary-card,
.metric-card,
.dashboard-card,
.status-card {
  background: rgba(255, 253, 248, 0.72) !important;
  border: 1px solid var(--line-soft) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: none !important;
  padding: clamp(1.15rem, 2vw, 1.6rem) !important;
  transition: border-color 180ms ease, transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.card:hover,
.game-card:hover,
.news-card:hover,
.plan-card:hover,
.event:hover,
.resource:hover,
.step:hover,
.topic-card:hover,
.event-card:hover,
.team-card:hover {
  transform: translateY(-2px);
  border-color: rgba(36, 81, 60, 0.24) !important;
  box-shadow: var(--shadow-subtle) !important;
}

.card h3,
.game-card h3,
.news-card h3,
.plan-card h3,
.event h3,
.team-card h3 {
  margin-top: 0;
  color: var(--forest-950) !important;
}

.card p,
.game-card p,
.news-card p,
.plan-card p,
.event p,
.team-card p {
  color: var(--muted) !important;
}

.game-card {
  min-height: 15rem;
  display: flex !important;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,253,248,0.86), rgba(238,243,234,0.76)),
    var(--paper) !important;
}

.game-card::before {
  content: "";
  position: absolute;
  inset: 1rem 1rem auto auto;
  width: 4rem;
  height: 4rem;
  border-radius: 999px;
  border: 1px solid rgba(36, 81, 60, 0.16);
  opacity: 0.7;
}

.btn,
button.btn,
input[type="submit"],
.checkout-button,
.reset-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.78rem 1.25rem !important;
  border: 1px solid var(--forest-800) !important;
  border-radius: 999px !important;
  background: var(--forest-900) !important;
  color: var(--paper) !important;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow: none !important;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.btn:hover,
button.btn:hover,
input[type="submit"]:hover,
.checkout-button:hover,
.reset-btn:hover {
  background: var(--forest-700) !important;
  border-color: var(--forest-700) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.btn.secondary,
button.secondary,
.toolbar .btn.secondary {
  background: transparent !important;
  color: var(--forest-900) !important;
  border-color: var(--line) !important;
}

.btn.secondary:hover,
button.secondary:hover,
.toolbar .btn.secondary:hover {
  background: var(--sage-100) !important;
  border-color: rgba(36, 81, 60, 0.28) !important;
}

.btn.green {
  background: var(--forest-700) !important;
  border-color: var(--forest-700) !important;
}

.actions,
.frequency,
.toolbar {
  gap: 0.8rem !important;
  align-items: center;
}

.highlight,
.notice,
.alert {
  border-radius: var(--radius-md) !important;
  border: 1px solid rgba(155, 127, 98, 0.28) !important;
  background: rgba(241, 232, 220, 0.58) !important;
  color: var(--ink) !important;
  box-shadow: none !important;
}

.form-grid {
  gap: 1.25rem clamp(1rem, 2vw, 1.75rem) !important;
}

.input-group label {
  color: var(--forest-950);
  font-weight: 800;
}

.input-group input,
.input-group select,
.input-group textarea,
.inline-form input,
.inline-form select,
textarea,
input,
select {
  min-height: 3rem;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-sm) !important;
  background: rgba(255, 253, 248, 0.86) !important;
  color: var(--ink) !important;
  padding: 0.8rem 0.9rem !important;
  box-shadow: none !important;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus,
.inline-form input:focus,
.inline-form select:focus,
textarea:focus,
input:focus,
select:focus {
  border-color: var(--forest-700) !important;
}

.brand-band {
  height: 1px !important;
  min-height: 1px !important;
  border-radius: 0 !important;
  background: linear-gradient(90deg, transparent, rgba(36, 81, 60, 0.42), transparent) !important;
  margin: 0 !important;
}

.feature-list li {
  background: transparent !important;
  border: 0 !important;
  border-left: 2px solid rgba(36, 81, 60, 0.28) !important;
  border-radius: 0 !important;
  padding: 0.35rem 0 0.35rem 1rem !important;
}

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
}

.stat-card {
  text-align: left !important;
}

.stat-card strong {
  color: var(--forest-800) !important;
  font-size: clamp(1.8rem, 3vw, 3rem) !important;
}

.admin-table {
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
}

.admin-table th,
.admin-table td {
  border: 0 !important;
  border-bottom: 1px solid var(--line-soft) !important;
  padding: 0.85rem !important;
}

.admin-table th {
  background: var(--sage-100) !important;
  color: var(--forest-950);
}

.video-wrapper,
.article-image,
.archive-tile,
.lightbox img {
  border-radius: var(--radius-md) !important;
  box-shadow: none !important;
  border: 1px solid var(--line-soft);
}

.meta,
.date,
.category,
.input-group small {
  color: var(--muted) !important;
}

.ticker {
  background: var(--forest-900) !important;
  border-radius: var(--radius-md) !important;
}

.site-footer,
footer {
  margin-top: clamp(3rem, 7vw, 7rem) !important;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 4vw, 4rem) !important;
  background:
    radial-gradient(circle at 88% 8%, rgba(126, 155, 98, 0.16), transparent 24rem),
    linear-gradient(180deg, var(--forest-900), var(--forest-950)) !important;
  color: rgba(255, 253, 248, 0.84) !important;
  text-align: left !important;
}

.footer-container {
  width: min(var(--max), 100%);
  max-width: none !important;
  display: grid !important;
  grid-template-columns: minmax(16rem, 1.6fr) repeat(3, minmax(10rem, 1fr));
  gap: clamp(1.75rem, 4vw, 4rem) !important;
  align-items: start;
}

.footer-brand strong {
  display: block;
  color: var(--paper);
  font-size: clamp(1.65rem, 2vw, 2.4rem) !important;
  letter-spacing: -0.05em;
  margin-bottom: 0.8rem;
}

.footer-brand p,
.footer-credits p,
.footer-legal p {
  color: rgba(255, 253, 248, 0.66) !important;
  margin: 0 0 0.65rem !important;
}

.footer-links,
.footer-social {
  display: grid !important;
  justify-content: start !important;
  gap: 0.55rem !important;
}

.footer-links::before,
.footer-social::before,
.footer-credits::before {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--paper);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-links::before { content: "Information"; }
.footer-social::before { content: "Social"; }
.footer-credits::before { content: "Partners"; }

.site-footer a,
footer a {
  color: rgba(255, 253, 248, 0.86) !important;
  text-decoration-color: rgba(255, 253, 248, 0.28);
}

.site-footer a:hover,
footer a:hover {
  color: #fff !important;
}

.footer-credits,
.footer-legal {
  max-width: none !important;
  font-size: 0.94rem !important;
}

.footer-legal {
  grid-column: 1 / -1;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 253, 248, 0.12);
}

@media (max-width: 900px) {
  nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 1rem;
    right: 1rem;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    background: rgba(255, 253, 248, 0.96) !important;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-subtle);
  }

  nav.show {
    display: flex;
  }

  nav a {
    padding: 0.82rem 1rem;
  }

  #navToggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero,
  .page-hero {
    padding-top: 4rem !important;
  }

  h1 {
    font-size: clamp(2.6rem, 13vw, 4.2rem);
  }

  h2 {
    font-size: clamp(2rem, 9vw, 3.1rem);
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand,
  .footer-credits,
  .footer-legal {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .content,
  .section,
  .sections,
  .content-wrapper {
    width: min(100% - 1.25rem, var(--max)) !important;
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  .section-card,
  .brand-panel {
    padding: 2.25rem 0 !important;
  }

  .btn,
  button.btn,
  input[type="submit"],
  .checkout-button,
  .reset-btn {
    width: 100%;
  }

  .actions,
  .frequency {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }
}

/* Official Envirolution Riso brand layer */
:root {
  --riso-yellow: #F5EA14;
  --riso-blue: #2D6FBB;
  --riso-pink: #F15BB5;
  --riso-orange: #FF5A2A;
  --community-green: #4CB963;
  --rich-black: #222222;
  --paper-bg: #F3F3F1;
  --gray: #5f5f5b;
  --yellow: var(--riso-yellow);
  --blue: var(--riso-blue);
  --purple: var(--riso-pink);
  --pink: var(--riso-pink);
  --green: var(--community-green);
  --green-dark: #287f42;
  --ink: var(--rich-black);
  --paper: #fffdf6;
  --cream: var(--paper-bg);
  --soft: #f8f6ed;
  --muted: #5f5f5b;
  --line: rgba(34, 34, 34, 0.16);
  --line-soft: rgba(34, 34, 34, 0.08);
  --focus: var(--riso-yellow);
  --shadow-subtle: 0 10px 24px rgba(34, 34, 34, 0.08);
  --shadow-lift: 0 16px 36px rgba(34, 34, 34, 0.13);
}

body {
  background:
    radial-gradient(circle at 8% 6%, rgba(245, 234, 20, 0.34), transparent 18rem),
    radial-gradient(circle at 92% 4%, rgba(241, 91, 181, 0.16), transparent 20rem),
    radial-gradient(circle at 82% 80%, rgba(76, 185, 99, 0.16), transparent 24rem),
    var(--paper-bg) !important;
  color: var(--rich-black) !important;
}

p,
li {
  color: #555550 !important;
}

a {
  color: var(--riso-blue) !important;
}

a:hover {
  color: var(--rich-black) !important;
}

header {
  background: rgba(243, 243, 241, 0.88) !important;
  border-bottom: 2px solid rgba(34, 34, 34, 0.08) !important;
}

.logo a {
  color: var(--rich-black) !important;
}

.logo a::after {
  background: var(--riso-orange) !important;
  box-shadow: 0 0 0 0.35rem rgba(245, 234, 20, 0.6);
}

nav a {
  color: rgba(34, 34, 34, 0.75) !important;
}

nav a:hover,
nav a[aria-current="page"] {
  background: var(--riso-yellow) !important;
  color: var(--rich-black) !important;
}

#navToggle {
  color: var(--rich-black) !important;
  background: var(--paper-bg) !important;
  border: 2px solid var(--rich-black) !important;
}

.hero,
.page-hero {
  background:
    radial-gradient(circle at 88% 18%, rgba(241, 91, 181, 0.22), transparent 16rem),
    radial-gradient(circle at 76% 70%, rgba(255, 90, 42, 0.18), transparent 18rem),
    linear-gradient(115deg, rgba(243, 243, 241, 0.96) 0%, rgba(243, 243, 241, 0.88) 54%, rgba(245, 234, 20, 0.34) 54%, rgba(245, 234, 20, 0.34) 100%) !important;
  border-bottom: 2px solid rgba(34, 34, 34, 0.08) !important;
}

.hero::before,
.page-hero::before {
  border: 0 !important;
  border-radius: 0 !important;
  background:
    radial-gradient(circle, var(--riso-blue) 0 18%, transparent 19%),
    radial-gradient(circle, var(--community-green) 0 18%, transparent 19%),
    radial-gradient(circle, var(--riso-pink) 0 18%, transparent 19%);
  background-size: 38px 38px, 52px 52px, 44px 44px;
  background-position: 0 0, 14px 22px, 28px 4px;
  opacity: 0.2;
  width: min(28vw, 18rem) !important;
  transform: rotate(-6deg);
}

.hero::after,
.page-hero::after {
  height: 10px !important;
  left: clamp(1.25rem, 4vw, 4rem) !important;
  right: auto !important;
  width: min(34rem, 46vw) !important;
  background: linear-gradient(90deg, var(--riso-yellow), var(--riso-orange), var(--riso-pink), var(--riso-blue), var(--community-green)) !important;
  opacity: 1 !important;
}

.hero h1,
.page-hero h1,
h1,
h2,
h3 {
  color: var(--rich-black) !important;
}

.hero p,
.page-hero p {
  color: #464642 !important;
}

.kicker {
  color: var(--rich-black) !important;
}

.kicker::before {
  height: 0.55rem !important;
  width: 2.8rem !important;
  background: var(--riso-yellow) !important;
  opacity: 1 !important;
  transform: rotate(-2deg);
}

.section-card,
.brand-panel {
  border-bottom: 2px solid rgba(34, 34, 34, 0.08) !important;
}

.card,
.game-card,
.news-card,
.plan-card,
.event,
.resource,
.step,
.topic-card,
.event-card,
.stat-card,
.team-card,
.mini-card,
.learning-card,
.retrofit-card,
.role-card,
.glossary-card,
.metric-card,
.dashboard-card,
.status-card {
  background: rgba(255, 253, 246, 0.9) !important;
  border: 2px solid rgba(34, 34, 34, 0.1) !important;
  border-radius: 18px !important;
}

.card:hover,
.game-card:hover,
.news-card:hover,
.plan-card:hover,
.event:hover,
.resource:hover,
.step:hover,
.topic-card:hover,
.event-card:hover,
.team-card:hover {
  border-color: var(--rich-black) !important;
  box-shadow: 8px 8px 0 rgba(245, 234, 20, 0.75) !important;
}

.game-card {
  background:
    linear-gradient(145deg, rgba(255,253,246,0.96), rgba(255,253,246,0.88)),
    radial-gradient(circle at 90% 12%, rgba(241, 91, 181, 0.18), transparent 7rem),
    var(--paper) !important;
}

.game-card:nth-child(4n+1)::before { border: 0 !important; background: var(--riso-yellow) !important; border-radius: 999px 999px 0 999px !important; }
.game-card:nth-child(4n+2)::before { border: 0 !important; background: var(--riso-pink) !important; border-radius: 0 999px 999px 999px !important; }
.game-card:nth-child(4n+3)::before { border: 0 !important; background: var(--community-green) !important; border-radius: 999px !important; }
.game-card:nth-child(4n+4)::before { border: 0 !important; background: var(--riso-orange) !important; border-radius: 999px 0 999px 999px !important; }

.btn,
button.btn,
input[type="submit"],
.checkout-button,
.reset-btn {
  background: var(--riso-blue) !important;
  border: 2px solid var(--rich-black) !important;
  color: #fff !important;
  box-shadow: 4px 4px 0 var(--rich-black) !important;
}

.btn:hover,
button.btn:hover,
input[type="submit"]:hover,
.checkout-button:hover,
.reset-btn:hover {
  background: var(--community-green) !important;
  color: var(--rich-black) !important;
  transform: translate(2px, 2px) !important;
  box-shadow: 2px 2px 0 var(--rich-black) !important;
}

.btn.secondary,
button.secondary,
.toolbar .btn.secondary {
  background: transparent !important;
  color: var(--rich-black) !important;
  border: 2px solid var(--rich-black) !important;
  box-shadow: none !important;
}

.btn.secondary:hover,
button.secondary:hover,
.toolbar .btn.secondary:hover {
  background: var(--riso-yellow) !important;
  color: var(--rich-black) !important;
}

.btn.green {
  background: var(--community-green) !important;
  color: var(--rich-black) !important;
}

.highlight,
.notice,
.alert {
  background: rgba(245, 234, 20, 0.22) !important;
  border: 2px solid rgba(34, 34, 34, 0.12) !important;
}

.input-group input,
.input-group select,
.input-group textarea,
.inline-form input,
.inline-form select,
textarea,
input,
select {
  background: #fffdf6 !important;
  border: 2px solid rgba(34, 34, 34, 0.2) !important;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus,
.inline-form input:focus,
.inline-form select:focus,
textarea:focus,
input:focus,
select:focus {
  border-color: var(--riso-blue) !important;
  box-shadow: 0 0 0 4px rgba(245, 234, 20, 0.55) !important;
}

.brand-band {
  height: 10px !important;
  min-height: 10px !important;
  background: linear-gradient(90deg, var(--riso-yellow), var(--riso-orange), var(--riso-pink), var(--riso-blue), var(--community-green)) !important;
}

.feature-list li {
  border-left: 8px solid var(--riso-yellow) !important;
}

.feature-list li:nth-child(5n+2) { border-left-color: var(--riso-blue) !important; }
.feature-list li:nth-child(5n+3) { border-left-color: var(--riso-pink) !important; }
.feature-list li:nth-child(5n+4) { border-left-color: var(--riso-orange) !important; }
.feature-list li:nth-child(5n+5) { border-left-color: var(--community-green) !important; }

.stat-card strong,
.price {
  color: var(--riso-blue) !important;
}

.tag {
  background: var(--riso-yellow) !important;
  color: var(--rich-black) !important;
}

.ticker {
  background: var(--rich-black) !important;
  color: var(--paper-bg) !important;
}

.site-footer,
footer {
  background:
    radial-gradient(circle at 8% 14%, rgba(245, 234, 20, 0.18), transparent 15rem),
    radial-gradient(circle at 92% 12%, rgba(241, 91, 181, 0.16), transparent 15rem),
    var(--rich-black) !important;
  color: var(--paper-bg) !important;
}

.site-footer::before,
footer::before {
  content: "";
  display: block;
  height: 10px;
  width: min(48rem, 100%);
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  background: linear-gradient(90deg, var(--riso-yellow), var(--riso-orange), var(--riso-pink), var(--riso-blue), var(--community-green));
}

.footer-brand strong,
.footer-links::before,
.footer-social::before,
.footer-credits::before {
  color: var(--paper-bg) !important;
}

.footer-brand p,
.footer-credits p,
.footer-legal p {
  color: rgba(243, 243, 241, 0.72) !important;
}

.site-footer a,
footer a {
  color: var(--paper-bg) !important;
  text-decoration-color: rgba(245, 234, 20, 0.48) !important;
}

.site-footer a:hover,
footer a:hover {
  color: var(--riso-yellow) !important;
}

@media (max-width: 900px) {
  nav {
    background: var(--paper-bg) !important;
    border: 2px solid var(--rich-black) !important;
    box-shadow: 6px 6px 0 rgba(245, 234, 20, 0.75) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}