@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&display=swap");
:root {
  --green: #123b31;
  --dark: #102d27;
  --soft: #f8f7f1;
  --cream: #f5f1e7;
  --line: #e5e6de;
  --red: #bb634d;
  --muted: #7c8780;
  --gold: #bc975d;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--dark);
  background: var(--soft);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 14px;
}
button,
input,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
a {
  color: inherit;
}
.hidden {
  display: none !important;
}
.topbar {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(6vw, 24px);
  border-bottom: 1px solid var(--line);
  background: #faf9f5;
}
.brand {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  text-decoration: none;
  font-size: 29px;
  letter-spacing: -1.5px;
}
.brand-icon {
  font-family: serif;
  color: #c06c53;
  font-size: 32px;
  margin-right: 9px;
}
.brand-end {
  color: var(--red);
}
.topright {
  display: flex;
  gap: 24px;
  align-items: center;
}
.season,
.eyebrow,
.auth-top,
.side-label {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
}
.season {
  color: var(--green);
}
.ghost {
  border: 1px solid #d9dfd7;
  background: transparent;
  border-radius: 50px;
  padding: 10px 18px;
  color: var(--green);
}
main {
  max-width: 1300px;
  margin: auto;
  min-height: calc(100vh - 150px);
  padding: 42px 32px;
}
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 11%;
  align-items: center;
  min-height: 670px;
}
.eyebrow {
  color: var(--red);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
}
h1 {
  font-size: clamp(44px, 5vw, 71px);
  line-height: 1.14;
  letter-spacing: -2.3px;
  font-weight: 600;
  margin: 21px 0 23px;
}
h1 em {
  color: #b5654f;
  font-weight: 500;
}
.hero > p {
  font-size: 17px;
  line-height: 1.9;
  max-width: 460px;
  color: #737f77;
}
.hero-card {
  margin-top: 60px;
  background: #e4ede5;
  border-radius: 8px;
  max-width: 470px;
  height: 140px;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 30px;
  font-family: "Playfair Display", serif;
  font-size: 20px;
  color: #39584a;
  position: relative;
}
.ornament {
  font-size: 65px;
  color: #b99159;
}
.mini-snow {
  position: absolute;
  top: 15px;
  right: 20px;
  color: #7b9b85;
}
.features {
  margin-top: 33px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  color: #6f8577;
  font-size: 12px;
}
.auth-card {
  background: #fff;
  border: 1px solid #e6e7df;
  border-radius: 13px;
  padding: 42px;
  box-shadow: 0 19px 65px #1e3b2920;
}
.auth-top {
  color: var(--red);
  margin-bottom: 18px;
}
.auth-card h2 {
  font-size: 38px;
  letter-spacing: -1px;
  margin-bottom: 9px;
}
.muted {
  color: var(--muted);
  line-height: 1.6;
}
.auth-card .muted {
  margin-bottom: 29px;
}
.auth-card label,
.modal label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin: 17px 0 8px;
  color: #385549;
}
.auth-card input,
.modal input,
.modal textarea {
  display: block;
  width: 100%;
  border: 1px solid #dce3da;
  background: #fdfdfb;
  padding: 14px 16px;
  border-radius: 7px;
  outline: 0;
  color: var(--green);
}
input:focus,
textarea:focus {
  border-color: #859e8b;
  box-shadow: 0 0 0 3px #a9c1a32b;
}
.primary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  background: var(--green);
  border: 1px solid var(--green);
  color: #fff;
  padding: 14px 21px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
}
.primary:hover {
  background: #1d5747;
}
.wide {
  width: 100%;
  margin-top: 26px;
  justify-content: space-between;
}
.auth-switch {
  text-align: center;
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 23px;
  font-size: 12px;
  color: var(--muted);
}
.text-button {
  border: 0;
  background: none;
  color: #b55f4a;
  font-weight: 700;
  padding: 4px;
}
.welcome-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 17px 0 45px;
}
.welcome-line h1 {
  font-size: clamp(35px, 4vw, 55px);
  margin: 13px 0 11px;
}
.welcome-line .muted {
  margin: 0;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 50px;
}
.sidebar {
  border-right: 1px solid var(--line);
  padding-right: 23px;
  min-height: 560px;
}
.side-block {
  margin-bottom: 36px;
}
.side-label {
  color: #969f94;
  margin-bottom: 18px;
}
.nav-btn {
  display: flex;
  width: 100%;
  border: 0;
  border-radius: 7px;
  padding: 14px;
  text-align: left;
  background: transparent;
  color: #607269;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}
.nav-btn.active {
  background: #e4ece4;
  color: var(--green);
}
.nav-btn span:nth-child(2) {
  flex: 1;
}
.nav-arrow {
  font-size: 19px;
}
.add-group {
  display: block;
  background: none;
  border: 0;
  color: #ae654c;
  padding: 11px 10px;
  font-size: 12px;
  font-weight: 700;
}
.side-note {
  margin-top: 65px;
  border: 1px solid #e3e7d9;
  background: #f0f2e8;
  border-radius: 8px;
  padding: 22px;
  color: #738673;
  line-height: 1.8;
  font-size: 12px;
}
.side-note:first-line {
  font-size: 30px;
  color: #bc9862;
}
.content {
  min-width: 0;
}
.list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 23px;
}
.list-header h2 {
  font-size: 34px;
  letter-spacing: -1px;
  margin: 10px 0 4px;
}
.list-header .muted {
  margin-bottom: 0;
}
.count {
  border: 1px solid #dce5d9;
  border-radius: 60px;
  padding: 10px 14px;
  font-size: 10px;
  letter-spacing: 1px;
  color: #64806b;
  white-space: nowrap;
}
.wish-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.wish-card {
  background: #fff;
  border: 1px solid #e5e8e0;
  border-radius: 9px;
  padding: 23px;
  display: flex;
  flex-direction: column;
  min-height: 185px;
}
.wish-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.wish-card h3 {
  font-size: 21px;
  line-height: 1.35;
  margin: 0 0 11px;
  overflow-wrap: anywhere;
}
.price {
  background: #f1f3e9;
  padding: 8px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  color: #47644c;
  white-space: nowrap;
}
.note {
  font-size: 12px;
  line-height: 1.6;
  color: #8b938a;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  flex: 1;
}
.wish-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 17px;
}
.small-link {
  font-size: 12px;
  font-weight: 700;
  color: #a95b48;
  text-decoration: none;
  border: 0;
  background: transparent;
  padding: 4px 0;
}
.small-link:hover {
  text-decoration: underline;
}
.purchased {
  border-radius: 5px;
  background: #eaf1e9;
  color: #416d53;
  padding: 9px 11px;
  font-size: 12px;
  font-weight: 700;
}
.reserved {
  font-size: 12px;
  color: #5e7964;
}
.buy-button {
  background: #e9f0e7;
  color: #2b6047;
  border: 1px solid #d5e5d5;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}
.buy-button:hover {
  background: #dbe9d9;
}
.empty {
  text-align: center;
  border: 1px dashed #cfdbcc;
  padding: 65px 25px;
  border-radius: 9px;
  background: #fcfdf9;
}
.empty-icon {
  font-size: 45px;
  margin-bottom: 14px;
}
.empty h3 {
  font-size: 26px;
  margin-bottom: 7px;
}
.empty p {
  color: var(--muted);
}
.empty .primary {
  margin-top: 9px;
}
.member-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.member-pill {
  background: #fff;
  border: 1px solid #dae4d9;
  border-radius: 30px;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #617567;
  cursor: pointer;
}
.member-pill.selected {
  background: var(--green);
  color: #fff;
}
.group-banner {
  background: #e8eee5;
  border: 1px solid #dae5d7;
  border-radius: 8px;
  padding: 19px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 25px;
}
.group-banner h3 {
  font-size: 23px;
  margin: 4px 0;
}
.group-banner .muted {
  margin: 0;
  font-size: 12px;
}
.outlined {
  border: 1px solid #bdcebe;
  color: var(--green);
  background: #ffffff9e;
  border-radius: 6px;
  padding: 11px 14px;
  font-weight: 700;
  font-size: 12px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #102d2799;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  padding: 20px;
}
.modal {
  background: #fff;
  border-radius: 12px;
  width: min(100%, 490px);
  padding: 32px;
  box-shadow: 0 30px 90px #0002;
  max-height: 90vh;
  overflow: auto;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
}
.modal h2 {
  font-size: 32px;
  margin: 8px 0;
}
.icon-btn {
  border: 0;
  background: #eff2ed;
  border-radius: 50%;
  width: 34px;
  height: 34px;
}
.modal textarea {
  min-height: 85px;
  resize: vertical;
}
.modal p {
  line-height: 1.7;
  color: var(--muted);
}
.modal form .primary {
  margin-top: 23px;
  width: 100%;
}
.invite-code {
  background: #edf2ec;
  word-break: break-all;
  padding: 15px;
  border-radius: 7px;
  font-size: 12px;
  margin: 15px 0;
}
.toast {
  position: fixed;
  right: 25px;
  bottom: 27px;
  background: #16392f;
  color: white;
  padding: 14px 22px;
  border-radius: 7px;
  box-shadow: 0 9px 35px #0003;
  z-index: 20;
  max-width: 340px;
}
footer {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
  gap: 25px;
  align-items: center;
  padding: 21px;
  color: #97a399;
  letter-spacing: 2px;
  font-size: 10px;
}
footer span {
  color: #ba705d;
  font-size: 18px;
}
@media (max-width: 850px) {
  .auth-layout {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .hero-card {
    margin-top: 25px;
  }
  .auth-card {
    max-width: 550px;
    width: 100%;
    margin: auto;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .sidebar {
    min-height: 0;
    padding: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .side-note {
    display: none;
  }
  .side-block {
    margin-bottom: 10px;
  }
}
@media (max-width: 580px) {
  .topbar {
    height: 74px;
  }
  .brand {
    font-size: 24px;
  }
  .season {
    display: none;
  }
  main {
    padding: 29px 17px;
  }
  .auth-card {
    padding: 27px;
  }
  .features {
    gap: 12px;
  }
  .welcome-line {
    align-items: start;
    flex-direction: column;
    margin-bottom: 25px;
  }
  .sidebar {
    grid-template-columns: 1fr;
  }
  .wish-grid {
    grid-template-columns: 1fr;
  }
  .list-header h2 {
    font-size: 27px;
  }
  .group-banner {
    align-items: flex-start;
    flex-direction: column;
  }
}

.price-lookup-hint {
  font-size: 12px;
  line-height: 1.5;
  color: #64806b;
  margin: 8px 0 2px;
}
.modal input:invalid:not(:placeholder-shown) {
  border-color: #bd8d76;
}

.product-image {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: #f8f7f1;
  border-radius: 10px;
  margin-bottom: 12px;
}
.group-tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
#list-nav {
  display: grid;
  gap: 4px;
  margin-bottom: 8px;
}

/* Wishing-Well: accessible navigation, legal and admin UI */
footer {
  flex-wrap: wrap;
  text-align: center;
}
footer a {
  color: #496452;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.admin-panel {
  margin-top: 8px;
}
.admin-description {
  font-size: 13px;
}
.modal:has(.admin-panel) {
  width: min(96vw, 900px);
}
.admin-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin: 22px 0 28px;
}
.admin-metric {
  border-radius: 10px;
  border: 1px solid #dfebe2;
  background: linear-gradient(145deg, #f4f8f3, #fff);
  padding: 19px 15px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.admin-metric strong {
  font:
    600 30px "Playfair Display",
    serif;
  color: var(--green);
}
.admin-metric span {
  font-size: 12px;
  color: #688271;
}
.admin-data-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.admin-data-title h3 {
  margin: 0;
  font-size: 22px;
}
.admin-data-title span,
.admin-status {
  color: #718679;
  font-size: 12px;
}
.admin-picker {
  display: flex !important;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}
.admin-picker select {
  border: 1px solid #d5e3d8;
  border-radius: 7px;
  padding: 10px;
  min-width: 180px;
  background: white;
  color: var(--dark);
}
.admin-table-wrap {
  max-height: 38vh;
  overflow: auto;
  border-radius: 8px;
  border: 1px solid #dce5da;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.admin-table th {
  position: sticky;
  top: 0;
  background: #eaf1e9;
  white-space: nowrap;
  text-align: left;
  color: #3c5e4d;
  font-weight: 700;
  text-transform: capitalize;
}
.admin-table td,
.admin-table th {
  padding: 12px;
  border-bottom: 1px solid #e9eee7;
  max-width: 320px;
  overflow-wrap: anywhere;
}
.admin-table tbody tr:nth-child(even) {
  background: #fafcf9;
}
.admin-empty {
  padding: 20px !important;
  margin: 0 !important;
}

.legal-page {
  max-width: 830px;
}
.legal-page h1 {
  margin-bottom: 15px;
}
.legal-card {
  padding: 25px 30px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 20px 0;
}
.legal-card h2 {
  font-size: 25px;
}
.legal-card p {
  line-height: 1.8;
}
.legal-card dl {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 13px;
}
.legal-card dt {
  font-weight: 700;
  color: var(--green);
}
.legal-card dd {
  margin: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 580px) {
  .legal-card dl {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .legal-card dd {
    margin-bottom: 14px;
  }
}

/* Optional persistent login */
.remember-choice {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  margin: 1rem 0;
  cursor: pointer;
}
.remember-choice input {
  width: 1rem;
  height: 1rem;
  accent-color: #245c4a;
}
.home-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.home-actions a {
  text-decoration: none;
}
.home-shell {
  max-width: 1000px;
  margin: 7vh auto;
  padding: 2.5rem;
}
.home-shell h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.12;
}
.home-shell p {
  max-width: 650px;
  font-size: 1.15rem;
  line-height: 1.7;
}

/* Preferences and lightweight essential-cookie notice */
.cookie-notice {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
  max-width: 520px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #fffaf1;
  color: #163331;
  border: 1px solid #b9c9bf;
  border-radius: 14px;
  box-shadow: 0 8px 30px #0002;
}
.cookie-notice.hidden {
  display: none;
}
.cookie-notice p {
  font-size: 13px;
  margin: 5px 0 0;
}
.cookie-notice button {
  white-space: nowrap;
}
.list-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.settings-panel {
  display: grid;
  gap: 12px;
}
.settings-panel h3 {
  margin: 12px 0 0;
}
.member-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  filter: none;
}
:root[data-theme="dark"] body {
  background: #0b1818;
  color: #edf7f2;
}
:root[data-theme="dark"] .topbar,
:root[data-theme="dark"] .sidebar,
:root[data-theme="dark"] .content,
:root[data-theme="dark"] .wish-card,
:root[data-theme="dark"] .modal,
:root[data-theme="dark"] .auth-card,
:root[data-theme="dark"] .group-banner {
  background: #142525 !important;
  color: #edf7f2 !important;
  border-color: #36534b !important;
}
:root[data-theme="dark"] input,
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea {
  background: #1c3230 !important;
  color: #fff !important;
  border-color: #456057 !important;
}
:root[data-theme="dark"] .muted,
:root[data-theme="dark"] .note {
  color: #b8c9c1 !important;
}
@media (max-width: 620px) {
  .cookie-notice {
    right: 12px;
    left: 12px;
    bottom: 12px;
    flex-direction: column;
    align-items: stretch;
  }
}

/* v12: soft midnight forest palette and accessible theme picker */
.theme-picker {
  position: relative;
  display: grid;
  gap: 7px;
}
.theme-picker label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.theme-select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 14px 43px 14px 16px;
  background: var(--soft);
  color: var(--dark);
  font-weight: 700;
  cursor: pointer;
  min-height: 48px;
}
.theme-chevron {
  position: absolute;
  pointer-events: none;
  right: 16px;
  bottom: 13px;
  font-size: 23px;
  color: var(--red);
}
.list-chooser {
  display: grid;
  gap: 10px;
}
.list-choice {
  text-align: left;
  width: 100%;
  padding: 14px;
}
.danger-action {
  border-color: #bd837d;
  color: #ae534b;
}
:root[data-theme="dark"] {
  --green: #85bd9d;
  --dark: #f4f0e4;
  --soft: #202b29;
  --cream: #202b29;
  --line: #3c514a;
  --red: #efaa8d;
  --muted: #b5c7bf;
  color-scheme: dark;
}
:root[data-theme="dark"] body {
  background: #151e1d !important;
  color: #f1f0e8 !important;
}
:root[data-theme="dark"] .topbar {
  background: #192522 !important;
  border-color: #354640 !important;
}
:root[data-theme="dark"] .sidebar,
:root[data-theme="dark"] .content {
  background: transparent !important;
  color: inherit !important;
  border-color: #354640 !important;
}
:root[data-theme="dark"] .wish-card,
:root[data-theme="dark"] .modal,
:root[data-theme="dark"] .auth-card {
  background: #202c29 !important;
  color: #f1f0e8 !important;
  border-color: #3c5047 !important;
}
:root[data-theme="dark"] .group-banner,
:root[data-theme="dark"] .side-note,
:root[data-theme="dark"] .hero-card {
  background: #25362f !important;
  color: #e4e9df !important;
  border-color: #425b4b !important;
}
:root[data-theme="dark"] .wish-card h3,
:root[data-theme="dark"] h1,
:root[data-theme="dark"] h2,
:root[data-theme="dark"] h3,
:root[data-theme="dark"] .brand {
  color: #f6f2e8;
}
:root[data-theme="dark"] .muted,
:root[data-theme="dark"] .note,
:root[data-theme="dark"] .hero > p,
:root[data-theme="dark"] .group-banner .muted {
  color: #b9cdc1 !important;
}
:root[data-theme="dark"] .nav-btn {
  color: #c2d2c7;
}
:root[data-theme="dark"] .nav-btn.active,
:root[data-theme="dark"] .nav-btn:hover {
  background: #31483b;
  color: #e5f6e8;
}
:root[data-theme="dark"] .member-pill,
:root[data-theme="dark"] .outlined,
:root[data-theme="dark"] .count {
  background: #273b32;
  color: #e0eee0;
  border-color: #496153;
}
:root[data-theme="dark"] .member-pill.selected,
:root[data-theme="dark"] .primary {
  background: #93bea0;
  color: #14271d;
  border-color: #93bea0;
}
:root[data-theme="dark"] .price,
:root[data-theme="dark"] .purchased,
:root[data-theme="dark"] .buy-button {
  background: #304438;
  color: #d9efdd;
  border-color: #4a6854;
}
:root[data-theme="dark"] .empty,
:root[data-theme="dark"] .invite-code,
:root[data-theme="dark"] .icon-btn {
  background: #283830;
  color: #e5eee2;
  border-color: #4b6051;
}
:root[data-theme="dark"] .admin-metric,
:root[data-theme="dark"] .admin-table tbody tr:nth-child(even),
:root[data-theme="dark"] .legal-card {
  background: #263530;
  color: #eee;
  border-color: #40584c;
}
:root[data-theme="dark"] .admin-metric strong {
  color: #c3e3be;
}
:root[data-theme="dark"] .admin-table th {
  background: #35463b;
  color: #e2f1df;
}
:root[data-theme="dark"] .cookie-notice {
  background: #26372f;
  color: #f1f0e8;
  border-color: #526c59;
}
:root[data-theme="dark"] input,
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea {
  background: #2a3934 !important;
  color: #f5f5ec !important;
  border-color: #597163 !important;
}
:root[data-theme="dark"] .theme-select {
  background: #30443a !important;
}
:root[data-theme="dark"] .danger-action {
  color: #ffc5b2;
  border-color: #a97066;
}
:root[data-theme="dark"] footer a {
  color: #c5e4bd;
}
/* Consistent navigation styling */
.nav-btn {
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

/* LIGHT MODE */

/* Hover */
:root:not([data-theme="dark"]) .nav-btn:not(.active):hover {
    background: #e4ede5;
    color: #123b31;
    transform: translateX(3px);
}

/* Active */
:root:not([data-theme="dark"]) .nav-btn.active {
    background: #dce9dd;
    color: #123b31;
}

/* DARK MODE */

/* Hover */
:root[data-theme="dark"] .nav-btn:not(.active):hover {
    background: #3a5546;
    color: #f0f8f0;
    transform: translateX(3px);
}

/* Active */
:root[data-theme="dark"] .nav-btn.active {
    background: #31483b;
    color: #e5f6e8;
}

/* Keyboard accessibility */
.nav-btn:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

/* ==================================
   MOBILE HEADER IMPROVEMENTS
   ================================== */

@media (max-width: 600px) {

    .topbar {
        height: auto;
        min-height: 85px;
        padding: 16px 20px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    /* Logo */
    .brand {
        font-size: 27px;
        white-space: nowrap;
        letter-spacing: -1px;
        line-height: 1.2;
    }

    .brand-icon {
        font-size: 27px;
        margin-right: 5px;
    }

    /* Navigation container */
    .topright {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 10px;
    }

    /* Hide decorative season text on mobile */
    .season {
        display: none;
    }

    /* Header buttons */
    .topright button,
    .topright .ghost {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 1 1 auto;
        min-width: 0;
        padding: 11px 14px;
        border-radius: 10px;
        font-size: 12px;
        white-space: nowrap;
        text-align: center;
        line-height: 1.3;
    }

    /* Avoid awkward button wrapping */
    .topright button span {
        white-space: nowrap;
    }
}