/* ============================
   Global Variables
   ============================ */
:root {
  --color-primary: #004d26;   /* dark green */
  --color-accent: #ffcc00;    /* gold */
  --color-bg-light: #dcefe6;  /* pale green */
  --color-text: #222;
  --color-error: #b00020;
  --color-success: #006400;
  --font-family-base: Arial, Helvetica, sans-serif;
  --radius: 8px;
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* ============================
   Base Layout
   ============================ */
html, body {
  max-width: 100%;
  overflow-x: hidden;   /* ✅ prevent sideways scroll */
}

body {
  margin: 0;
  font-family: var(--font-family-base);
  line-height: 1.6;
  background: linear-gradient(
    to bottom,
    var(--color-primary) 0%,
    #1a6640 40%,
    var(--color-bg-light) 100%
  );
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 16px;
  width: 100%;
  box-sizing: border-box;
}

/* ============================
   Header
   ============================ */
header {
  padding: 8px 30px;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header__logo {
  max-height: 100px;
  height: auto;
  width: auto;
}

/* ============================
   Navigation Menu (Hamburger default)
   ============================ */
.nav-menu {
  margin-left: auto;
  position: relative;
}

.nav-menu__toggle {
  display: none;
}

.nav-menu__icon {
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--color-accent);
  display: block;
  user-select: none;
}

.nav-menu__list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  position: absolute;
  right: 0;
  top: 100%;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  display: none;
  min-width: 200px;
  z-index: 1000;
  text-align: left;
}

.nav-menu__item {
  border-bottom: 1px solid #eee;
}

.nav-menu__item:last-child {
  border-bottom: none;
}

.nav-menu__link {
  display: block;
  padding: 0.75rem 1rem;
  text-decoration: none;
  font-weight: bold;
  color: var(--color-primary);
}

.nav-menu__link:hover {
  background: var(--color-bg-light);
  color: var(--color-accent);
}

/* Show menu when hamburger is toggled */
.nav-menu__toggle:checked + .nav-menu__icon + .nav-menu__list {
  display: block;
}

/* Active link */
.nav-menu__link.active {
  text-decoration: underline;
  color: var(--color-accent);
}

/* ============================
   Card (Global Container)
   ============================ */
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  margin: 20px auto;
  width: 100%;
  max-width: 1100px;    /* ✅ balanced desktop readability */
  box-sizing: border-box;
}

/* ============================
   Buttons (Global)
   ============================ */
.btn {
  display: inline-block;
  margin: 6px;
  padding: 10px 20px;
  border-radius: 6px;
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s ease;
}

.btn:hover {
  background: #1a6640;
  color: #fff;
}

/* ============================
   Footer
   ============================ */
footer {
  padding: 10px;
  text-align: center;
  font-size: 0.8rem;
  color: #333;
  background: var(--color-bg-light);
  border-top: 2px solid var(--color-accent);
  line-height: 1.4;
  margin-top: auto;
}
.beta-tag {
  color: #cc9900;   /* darker gold */
  font-weight: normal;
  font-size: 0.85rem;
}



/* ============================
   Utilities
   ============================ */
.hidden { display: none !important; }
.error { color: var(--color-error); font-weight: bold; }
.success { color: var(--color-success); font-weight: bold; }
