@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap');

:root {
  --tz-bg-start: #f5f1e8;
  --tz-bg-end: #ece7de;
  --tz-text: #1a1a1a;
  --tz-muted: #6b6258;
  --tz-primary: #2d5016;
  --tz-secondary: #8b7355;
  --tz-accent: #d4af37;
  --tz-card: #ffffff;
  --tz-card-border: rgba(139, 115, 85, 0.2);
  --tz-focus: #d4af37;
}

[data-theme="dark"] {
  --tz-bg-start: #121212;
  --tz-bg-end: #1a1a1a;
  --tz-text: #f0ead8;
  --tz-muted: #bfb6ab;
  --tz-primary: #5a9e2e;
  --tz-secondary: #b89a72;
  --tz-accent: #e8c84a;
  --tz-card: #252525;
  --tz-card-border: rgba(232, 200, 74, 0.22);
  --tz-focus: #e8c84a;
}

body.tz-theme {
  font-family: 'Outfit', Georgia, serif;
  background: linear-gradient(135deg, var(--tz-bg-start) 0%, var(--tz-bg-end) 100%);
  color: var(--tz-text);
}

body.tz-theme .tz-shell-header {
  background: linear-gradient(135deg, var(--tz-primary), color-mix(in srgb, var(--tz-primary) 80%, black 20%));
  color: #f5f1e8;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  padding: 2rem;
  text-align: center;
}

body.tz-theme .tz-shell-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

body.tz-theme .tz-shell-header p {
  font-size: 0.95rem;
}

body.tz-theme .tz-shell-nav {
  background: color-mix(in srgb, var(--tz-secondary) 88%, black 12%);
  padding: 1rem;
}

body.tz-theme .tz-shell-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

body.tz-theme .tz-shell-nav a {
  color: #f5f1e8;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background 0.3s;
}

body.tz-theme .tz-shell-nav a:hover,
body.tz-theme .tz-shell-nav a.active {
  background: var(--tz-accent);
  color: var(--tz-text);
}

body.tz-theme .mobile-nav {
  display: none;
}

body.tz-theme .mobile-nav-toggle {
  border: none;
  background: rgba(45, 80, 22, 0.94);
  color: #f5f1e8;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

body.tz-theme .mobile-nav-panel {
  display: none;
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  width: min(250px, calc(100vw - 1.5rem));
  background: color-mix(in srgb, var(--tz-card) 94%, white 6%);
  border: 1px solid var(--tz-card-border);
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
  overflow: hidden;
}

body.tz-theme .mobile-nav-panel.open {
  display: block;
}

body.tz-theme .mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0.4rem;
}

body.tz-theme .mobile-nav-list li + li {
  margin-top: 0.2rem;
}

body.tz-theme .mobile-nav-link {
  display: block;
  color: var(--tz-text);
  text-decoration: none;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  font-size: 0.92rem;
}

body.tz-theme a,
body.tz-theme button,
body.tz-theme input,
body.tz-theme select,
body.tz-theme textarea,
body.tz-theme summary {
  min-height: 44px;
}

body.tz-theme a:focus-visible,
body.tz-theme button:focus-visible,
body.tz-theme input:focus-visible,
body.tz-theme select:focus-visible,
body.tz-theme textarea:focus-visible,
body.tz-theme summary:focus-visible {
  outline: 2px solid var(--tz-focus);
  outline-offset: 2px;
  border-radius: 6px;
}

body.tz-theme .tz-shell-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

body.tz-theme .card {
  background: var(--tz-card);
  border-top: 1px solid var(--tz-card-border);
  border-right: 1px solid var(--tz-card-border);
  border-bottom: 1px solid var(--tz-card-border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border-radius: 12px;
}

body.tz-theme .mobile-nav-link:hover,
body.tz-theme .mobile-nav-link.active {
  background: color-mix(in srgb, var(--tz-accent) 24%, transparent);
  color: var(--tz-primary);
}

body.tz-theme .btn,
body.tz-theme .nav-link-btn,
body.tz-theme .mobile-nav-toggle {
  border-radius: 10px;
}

body.tz-theme .dark-mode-btn {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 2100;
  width: 2.9rem;
  height: 2.9rem;
  border: none;
  border-radius: 999px;
  background: var(--tz-primary);
  color: #f5f1e8;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  font-size: 1.15rem;
}

body.tz-theme .dark-mode-btn:hover {
  transform: translateY(-1px) scale(1.03);
  background: var(--tz-secondary);
}

body.tz-theme .dark-mode-btn:focus-visible {
  outline: 2px solid var(--tz-focus);
  outline-offset: 3px;
}

body.tz-theme .tz-shell-footer {
  background: var(--tz-text);
  color: #f5f1e8;
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
  border-top: 1px solid var(--tz-card-border);
}

@media (max-width: 768px) {
  body.tz-theme .tz-shell-header h1 {
    font-size: 1.75rem;
  }

  body.tz-theme .tz-shell-header p {
    font-size: 0.85rem;
  }

  body.tz-theme .tz-shell-nav {
    display: none;
  }

  body.tz-theme .mobile-nav {
    display: block;
    position: fixed;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 2000;
  }

  body.tz-theme .tz-shell-main {
    padding: 0.9rem 0.8rem 1.4rem;
  }

  body.tz-theme .card {
    border-radius: 10px;
  }

  body.tz-theme .dark-mode-btn {
    right: 0.9rem;
    bottom: 0.9rem;
  }

  body.tz-theme .tz-shell-footer {
    padding: 1rem;
  }

  body.tz-theme .tz-shell-footer p {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  body.tz-theme .tz-shell-header {
    padding: 0.75rem;
  }

  body.tz-theme .tz-shell-header h1 {
    font-size: 1.2rem;
    line-height: 1.3;
  }

  body.tz-theme .tz-shell-main {
    padding: 0.5rem 0.5rem 1.5rem;
  }

  body.tz-theme .tz-shell-header img {
    height: 48px !important;
  }
}




