:root {
  --wh-bg: #ece8d5;
  --wh-surface: #f7f4e7;
  --wh-border: #cbc2a2;
  --wh-text: #213a2c;
  --wh-muted: #5d675f;
  --wh-brand: #1d4a33;
  --wh-brand-hover: #173b29;
  --wh-radius: 18px;
  --wh-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--wh-bg);
  color: var(--wh-text);
  font-family: "Inter", "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
}

a {
  color: var(--wh-brand);
}

a:hover {
  color: var(--wh-brand-hover);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  z-index: 9999;
  background: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  border: 2px solid var(--wh-brand);
}

.wh-wrap {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  background: var(--wh-surface);
  border-bottom: 2px solid var(--wh-border);
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-link {
  text-decoration: none;
  color: var(--wh-text);
}

.brand-text {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 0.01em;
}

/* Match app-shell brand style on Ultimate Member account page header */
.brand-link.is-app-brand .brand-text {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--wh-brand);
  font-size: 1.15rem;
  letter-spacing: 0.4px;
  font-weight: 700;
}

.custom-logo {
  max-height: 64px;
  width: auto;
}

.menu-toggle {
  display: none;
  border: 2px solid var(--wh-brand);
  background: transparent;
  color: var(--wh-brand);
  border-radius: 12px;
  padding: 8px 14px;
  font-weight: 700;
}

.wh-account-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.wh-icon-pill {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 2px solid #b26f67;
  color: var(--wh-text);
  background: #f7f4e7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.wh-icon-pill .icon {
  width: 22px;
  height: 22px;
  stroke-width: 1.9;
}

.wh-profile-pill {
  border-radius: 12px;
  border-color: var(--wh-border);
  background: #f8f6ee;
}

.wh-logout-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 2px solid #b26f67;
  color: var(--wh-text);
  background: #f7f4e7;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
}

.wh-icon-pill:hover,
.wh-icon-pill:focus-visible,
.wh-logout-pill:hover,
.wh-logout-pill:focus-visible {
  background: #f0ece0;
  color: var(--wh-brand);
}

.primary-nav .menu-list,
.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.primary-nav .menu-list a,
.footer-menu a {
  display: inline-block;
  text-decoration: none;
  color: var(--wh-text);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 8px 14px;
  font-weight: 600;
}

.primary-nav .menu-list a:hover,
.footer-menu a:hover {
  border-color: var(--wh-border);
  background: #f1eedf;
}

.site-main {
  padding: 26px 0 40px;
}

.content-card {
  background: var(--wh-surface);
  border: 2px solid var(--wh-border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--wh-shadow);
}

.entry-card {
  padding: 16px;
  border: 2px solid var(--wh-border);
  border-radius: var(--wh-radius);
  background: #fbf8ec;
  margin-bottom: 14px;
}

.entry-title {
  margin: 0 0 8px;
  color: var(--wh-text);
  line-height: 1.2;
}

.entry-title a {
  text-decoration: none;
  color: inherit;
}

.entry-meta,
.muted {
  color: var(--wh-muted);
}

.entry-content {
  margin-top: 10px;
}

.entry-content p:first-child {
  margin-top: 0;
}

.pagination-wrap {
  margin-top: 16px;
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  border: 2px solid var(--wh-border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--wh-text);
  background: #fffdf6;
}

.pagination .current {
  background: var(--wh-brand);
  border-color: var(--wh-brand);
  color: #fff;
}

.btn-like,
.wp-block-button__link,
button,
input[type="submit"] {
  border-radius: 14px;
  border: 2px solid var(--wh-brand);
  background: var(--wh-brand);
  color: #fff;
  padding: 10px 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn-like:hover,
.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover {
  background: var(--wh-brand-hover);
  border-color: var(--wh-brand-hover);
}

input,
textarea,
select {
  width: 100%;
  border: 2px solid var(--wh-border);
  border-radius: 12px;
  background: #fffef8;
  color: var(--wh-text);
  padding: 10px 12px;
}

.site-footer {
  margin-top: 28px;
  border-top: 2px solid var(--wh-border);
  background: var(--wh-surface);
}

.wh-account-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  border-top: 1px solid var(--wh-border);
  background: rgba(252, 250, 245, 0.96);
  backdrop-filter: blur(6px);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(76px, 1fr);
  gap: 4px;
  padding: 8px 6px calc(10px + env(safe-area-inset-bottom));
  overflow-x: auto;
  scrollbar-width: thin;
}

@media (min-width: 760px) {
  .wh-account-bottom-nav {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(760px, 100%);
    border-left: 1px solid var(--wh-border);
    border-right: 1px solid var(--wh-border);
    border-radius: 14px 14px 0 0;
  }
}

.wh-account-bottom-nav .tab-btn {
  border: 0;
  background: transparent;
  color: var(--wh-muted);
  font-size: 0.72rem;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 6px 4px;
  border-radius: 8px;
  min-height: 44px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  min-width: 76px;
  text-decoration: none;
}

.wh-account-bottom-nav .tab-btn .icon {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.wh-account-bottom-nav .tab-btn span {
  text-decoration: underline;
}

.wh-account-bottom-nav .tab-btn:hover,
.wh-account-bottom-nav .tab-btn:focus-visible {
  color: var(--wh-brand);
  background: #f0ece0;
}

.wh-account-bottom-nav .tab-btn.is-current {
  color: var(--wh-brand);
  background: #f0ece0;
  font-weight: 700;
}

.wh-account-bottom-nav .tab-btn.is-current span {
  text-decoration-thickness: 2px;
}

.wh-account-bottom-nav .tab-btn:focus-visible {
  outline: 3px solid #5b8e69;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px rgba(91, 142, 105, 0.15);
}

.wh-account-bottom-nav a {
  text-decoration: none;
  white-space: nowrap;
}

body.page-id-42 .site-footer,
body.page-account .site-footer,
body.page-account .site-main {
  padding-bottom: 96px;
}

.site-footer-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 0;
}

/* Ultimate Member theme integration */
.um {
  max-width: 860px !important;
  margin: 20px auto !important;
}

.um .um-form,
.um .um-account-main {
  border: 2px solid var(--wh-border) !important;
  border-radius: 22px !important;
  background: var(--wh-surface) !important;
  padding: 24px !important;
}

.um .um-form input[type="text"],
.um .um-form input[type="tel"],
.um .um-form input[type="number"],
.um .um-form input[type="password"],
.um .um-form textarea,
.um .um-form select,
.um .um-form input[type="email"] {
  border: 2px solid var(--wh-border) !important;
  border-radius: 12px !important;
  background: #fffef8 !important;
  color: var(--wh-text) !important;
  padding: 12px !important;
}

.um .um-field-label label,
.um .um-col-alt,
.um .um-left,
.um .um-right,
.um .um-notice {
  color: var(--wh-text) !important;
}

.um .um-button,
.um input[type="submit"].um-button {
  border: 2px solid var(--wh-brand) !important;
  background: var(--wh-brand) !important;
  color: #fff !important;
  border-radius: 14px !important;
  font-weight: 700 !important;
  padding: 12px 16px !important;
}

.um .um-button:hover,
.um input[type="submit"].um-button:hover {
  background: var(--wh-brand-hover) !important;
  border-color: var(--wh-brand-hover) !important;
}

.um .um-button.um-alt,
.um a.um-button.um-alt {
  background: transparent !important;
  color: var(--wh-brand) !important;
  border: 2px solid var(--wh-brand) !important;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
  }

  .primary-nav {
    display: none;
    width: 100%;
  }

  .primary-nav.open {
    display: block;
  }

  .primary-nav .menu-list {
    margin-top: 10px;
  }

  .site-header-inner {
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 12px 0;
  }

  .wh-account-header-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .wh-icon-pill {
    width: 50px;
    height: 50px;
  }

  .wh-logout-pill {
    min-height: 50px;
    padding: 0 18px;
  }

  .wh-account-bottom-nav {
    grid-auto-columns: minmax(72px, 1fr);
    padding: 7px 4px calc(10px + env(safe-area-inset-bottom));
  }

  .wh-account-bottom-nav .tab-btn {
    min-width: 70px;
    padding: 6px 4px;
    font-size: 0.95rem;
  }

  .content-card {
    padding: 16px;
    border-radius: 18px;
  }

  .wh-wrap {
    width: min(1160px, calc(100% - 20px));
  }
}
