/* ─────────────────────────────
   CSS VARIABLES
───────────────────────────── */
:root {
  --orange:      #FF6820;
  --green:       #1a6b3a;
  --green-mid:   #4a7c59;
  --green-light: #f0fdf4;
  --cream:       #faf9f6;
  --cream-mid:   #f0ece4;
  --black:       #111111;
  --grey-1:      #6b7280;
  --grey-2:      #6b7280;
  --grey-3:      #e5e7eb;
  --grey-4:      #f6f7f9;
  --white:       #ffffff;
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-ui:      'Raleway', 'Helvetica Neue', sans-serif;
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.06);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg:   0 10px 30px rgba(0,0,0,0.10);
}

/* ─────────────────────────────
   BASE RESET
───────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-ui);
  background: var(--cream);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
img { max-width: 100%; display: block; }

/* ─────────────────────────────
   LAYOUT
───────────────────────────── */
.whc-container { max-width: 1100px; margin: 0 auto; padding: 32px 16px; }

.whc-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
}

.whc-main { display: flex; flex-direction: column; min-width: 0; }
.whc-sidebar { display: flex; flex-direction: column; gap: 16px; }

/* ─────────────────────────────
   NAVBAR
───────────────────────────── */
.whc-navbar {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--grey-3);
  z-index: 999;
}

.whc-nav-inner {
  max-width: 1100px;
  margin: auto;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.whc-nav-left { display: flex; align-items: center; gap: 24px; }
.whc-nav-right { display: flex; align-items: center; gap: 12px; }

.whc-menu {
  display: flex;
  gap: 20px;
  list-style: none;
  font-size: 0.9rem;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.whc-menu li a { color: var(--grey-1); transition: color 0.15s; }
.whc-menu li a:hover { color: var(--black); }

.whc-logo {
  font-family: "Georgia", serif;
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--black);
}
.whc-logo img { height: 34px; width: auto; }

.whc-login-link {
  font-size: 0.875rem;
  color: var(--grey-1);
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  transition: color 0.15s;
}
.whc-login-link:hover { color: var(--black); }

/* ─────────────────────────────
   USER DROPDOWN
───────────────────────────── */
.whc-user-dropdown { position: relative; }

.whc-user-btn {
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  padding: 0;
}
.whc-user-btn img { border-radius: 50%; }

.whc-user-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 10px;
  display: none;
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--grey-3);
  z-index: 1000;
}

.whc-user-dropdown.active .whc-user-menu { display: block; }

.whc-user-info {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-bottom: 1px solid var(--grey-3);
  margin-bottom: 8px;
}
.whc-user-info img { border-radius: 50%; }
.whc-user-info strong { display: block; font-size: 0.875rem; }
.whc-user-info span { font-size: 0.78rem; color: var(--grey-1); }

.whc-menu-btn {
  display: block;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--black);
  transition: background 0.15s;
}
.whc-menu-btn:hover { background: var(--grey-4); }

.whc-logout {
  color: #dc2626;
  margin-top: 4px;
  border-top: 1px solid var(--grey-3);
  padding-top: 10px;
}

/* ─────────────────────────────
   HERO — smooth gradient
───────────────────────────── */
.whc-hero {
  padding: 80px 20px 64px;
  text-align: center;
  background: linear-gradient(160deg,
    #ffffff 0%,
    #f0fdf4 35%,
    #e8f5e9 65%,
    #f3f4f6 100%
  );
  border-radius: var(--radius-lg);
  margin-bottom: 36px;
  border: 1px solid var(--grey-3);
  position: relative;
  overflow: hidden;
}

/* Decorative soft blob */
.whc-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(74,124,89,0.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.whc-hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -40px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(74,124,89,0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.whc-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.whc-hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  line-height: 1.15;
  color: var(--black);
}

.whc-hero-sub {
  color: var(--grey-1);
  font-size: 1.05rem;
  margin-bottom: 28px;
  line-height: 1.6;
}

.whc-hero-cta {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.whc-social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--grey-2);
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  flex-wrap: wrap;
}

/* ─────────────────────────────
   BUTTONS
───────────────────────────── */
.whc-btn-primary {
  background: var(--black);
  color: var(--white);
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  transition: opacity 0.15s;
  display: inline-block;
  border: none;
  cursor: pointer;
}
.whc-btn-primary:hover { opacity: 0.82; color: var(--white); }

.whc-btn-secondary {
  border: 1px solid var(--grey-3);
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  background: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  display: inline-block;
  transition: border-color 0.15s;
  cursor: pointer;
}
.whc-btn-secondary:hover { border-color: var(--grey-1); }

/* ─────────────────────────────
   FEED NAV TABS
───────────────────────────── */
.whc-feed-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.whc-tab {
  background: var(--white);
  border: 1px solid var(--grey-3);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--grey-1);
  cursor: pointer;
  transition: all 0.15s;
}
.whc-tab:hover { border-color: var(--grey-1); color: var(--black); }
.whc-tab.active { background: var(--black); color: var(--white); border-color: var(--black); }

.whc-feed { display: none; }
.whc-feed.active { display: block; }

/* ─────────────────────────────
   FEATURED
───────────────────────────── */
.whc-featured { margin-bottom: 28px; }

.whc-featured h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey-1);
  margin-bottom: 12px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.whc-featured-card {
  background: linear-gradient(135deg, var(--green-light), var(--white));
  border: 1px solid var(--grey-3);
  border-left: 4px solid var(--green);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.whc-featured-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.whc-featured-card h3 a:hover { color: var(--green); }
.whc-featured-card p { color: var(--grey-1); font-size: 0.9rem; margin-bottom: 10px; }

/* ─────────────────────────────
   NOTE CARDS
───────────────────────────── */
.whc-note-card {
  background: var(--white);
  border: 1px solid var(--grey-3);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}
.whc-note-card:hover { box-shadow: var(--shadow-md); }

.whc-author {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}
.whc-author img { border-radius: 50%; }
.whc-meta { font-size: 0.75rem; color: var(--grey-2); font-family: -apple-system, BlinkMacSystemFont, sans-serif; }
.whc-note-body { margin-bottom: 10px; }

.whc-note-text { font-size: 0.95rem; line-height: 1.65; color: #222; }
.whc-note-text.collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.whc-read-more {
  font-size: 0.8rem;
  color: var(--grey-1);
  margin-top: 6px;
  display: inline-block;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  transition: color 0.15s;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.whc-read-more:hover { color: var(--black); }

.whc-note-open {
  font-size: 0.8rem;
  color: var(--green);
  margin-left: 12px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.whc-note-footer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--grey-3);
  display: flex;
  align-items: center;
  gap: 8px;
}

.whc-like-btn {
  border: 1px solid var(--grey-3);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--grey-1);
  background: var(--white);
  transition: all 0.15s;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  cursor: pointer;
}
.whc-like-btn:hover { border-color: #fca5a5; color: #dc2626; }

/* ─────────────────────────────
   SINGLE NOTE PAGE
───────────────────────────── */
.whc-note-single {
  background: var(--white);
  border: 1px solid var(--grey-3);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}

.whc-note-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--grey-3);
}
.whc-note-author img { border-radius: 50%; }
.whc-note-content { font-size: 1rem; line-height: 1.8; color: #222; }

/* ─────────────────────────────
   FOLLOW BUTTON
───────────────────────────── */
.whc-follow-btn {
  font-size: 0.78rem;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid var(--grey-3);
  background: var(--white);
  color: var(--black);
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  transition: all 0.15s;
  cursor: pointer;
}
.whc-follow-btn:hover { background: var(--black); color: var(--white); border-color: var(--black); }

/* ─────────────────────────────
   COMPOSER
───────────────────────────── */
.whc-composer {
  background: var(--white);
  border: 1px solid var(--grey-3);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.whc-composer textarea {
  width: 100%;
  border: none;
  outline: none;
  resize: none;
  font-family: "Georgia", serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--black);
  min-height: 80px;
  background: transparent;
}
.whc-composer textarea::placeholder { color: var(--grey-2); }
.whc-composer button {
  margin-top: 10px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  background: var(--black);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 500;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  transition: opacity 0.15s;
  border: none;
  cursor: pointer;
}
.whc-composer button:hover { opacity: 0.8; }
.whc-composer button:disabled { opacity: 0.5; cursor: not-allowed; }

.whc-composer-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--grey-3);
}
.whc-composer-label {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey-1);
  white-space: nowrap;
}
.whc-composer-select {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--black);
  background: var(--cream);
  border: 1px solid var(--grey-3);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}
.whc-composer-select:focus { border-color: var(--green); }

/* Load more */
.whc-load-more-wrap { text-align: center; margin-top: 16px; }
#whc-load-more {
  background: var(--white);
  border: 1px solid var(--grey-3);
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--grey-1);
  cursor: pointer;
  transition: all 0.15s;
}
#whc-load-more:hover { border-color: var(--black); color: var(--black); }
#whc-load-more:disabled { opacity: 0.5; cursor: not-allowed; }

/* ─────────────────────────────
   SIDEBAR CARD
───────────────────────────── */
.whc-card {
  background: var(--white);
  border: 1px solid var(--grey-3);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.whc-card h4 { font-size: 0.9rem; margin-bottom: 10px; font-family: -apple-system, BlinkMacSystemFont, sans-serif; }

/* ─────────────────────────────
   SUBSCRIBE BOX
───────────────────────────── */
.whc-subscribe-box {
  background: var(--green-light);
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}
.whc-subscribe-box p { margin-bottom: 12px; font-size: 0.95rem; }
.whc-subscribe-box input[type="email"] {
  width: 100%;
  max-width: 300px;
  padding: 9px 14px;
  border: 1px solid var(--grey-3);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  outline: none;
  margin: 0 auto 10px;
  display: block;
  font-family: inherit;
}
.whc-subscribe-box input[type="email"]:focus { border-color: var(--green); }
.whc-subscribe-box button {
  background: var(--green);
  color: var(--white);
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  transition: opacity 0.15s;
  border: none;
  cursor: pointer;
}
.whc-subscribe-box button:hover { opacity: 0.85; }
.whc-subscribe-msg {
  margin-top: 10px;
  font-size: 0.875rem;
  color: var(--green);
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ─────────────────────────────
   PAYWALL GATE
───────────────────────────── */
.whc-content-teaser { color: var(--grey-1); margin-bottom: 16px; font-style: italic; }
.whc-paywall-gate {
  background: var(--white);
  border: 1px solid var(--grey-3);
  border-top: 3px solid var(--green);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
  margin-top: 16px;
}
.whc-paywall-gate h3 { font-size: 1.1rem; margin-bottom: 8px; }
.whc-paywall-gate p { color: var(--grey-1); font-size: 0.9rem; margin-bottom: 16px; }

/* ─────────────────────────────
   SPOTLIGHT
───────────────────────────── */
.whc-spotlight,
.whc-spotlight-inner { margin-top: 48px; text-align: center; }
.whc-spotlight-inner h2 { font-size: 1.5rem; margin-bottom: 6px; }
.whc-spotlight-inner > p { color: var(--grey-1); margin-bottom: 20px; font-size: 0.95rem; }

.whc-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.whc-spotlight-card {
  background: var(--white);
  border: 1px solid var(--grey-3);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.whc-spotlight-card img { border-radius: 50%; margin: 0 auto 10px; }
.whc-spotlight-card h4 { font-size: 0.9rem; margin-bottom: 6px; }
.whc-spotlight-card a { font-size: 0.8rem; color: var(--green); font-family: -apple-system, BlinkMacSystemFont, sans-serif; }

/* ─────────────────────────────
   COMMUNITY PAGE
───────────────────────────── */
.whc-community-header,
.whc-community-hero { text-align: center; padding: 48px 20px 32px; }
.whc-community-header h1,
.whc-community-hero h1 { font-size: 2rem; margin-bottom: 10px; }
.whc-community-header p,
.whc-community-hero p { color: var(--grey-1); font-size: 0.95rem; }

.whc-community-section { margin-top: 32px; }
.whc-community-feed { margin-top: 40px; }
.whc-community-feed h2 { font-size: 1.1rem; margin-bottom: 16px; font-family: -apple-system, BlinkMacSystemFont, sans-serif; }

.whc-topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.whc-topic-card {
  background: var(--white);
  border: 1px solid var(--grey-3);
  border-radius: var(--radius-md);
  padding: 18px;
  display: block;
  transition: box-shadow 0.2s, transform 0.2s;
}
.whc-topic-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.whc-topic-icon { font-size: 1.8rem; margin-bottom: 8px; }
.whc-topic-card h3 { font-size: 0.95rem; margin-bottom: 4px; }
.whc-topic-desc { font-size: 0.82rem; color: var(--grey-1); margin-bottom: 8px; font-family: -apple-system, BlinkMacSystemFont, sans-serif; }
.whc-topic-count { font-size: 0.78rem; color: var(--green); font-family: -apple-system, BlinkMacSystemFont, sans-serif; }

.whc-topic-header { padding: 40px 0 24px; border-bottom: 1px solid var(--grey-3); margin-bottom: 28px; }
.whc-topic-header h1 { font-size: 2rem; margin-bottom: 6px; }

/* ─────────────────────────────
   PROFILE / AUTHOR PAGE
───────────────────────────── */
.whc-profile-header {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 32px 0 28px;
  border-bottom: 1px solid var(--grey-3);
  margin-bottom: 24px;
}
.whc-profile-avatar img { border-radius: 50%; width: 90px; height: 90px; }
.whc-profile-info { flex: 1; }
.whc-profile-info h1 { font-size: 1.6rem; margin-bottom: 6px; }
.whc-profile-bio { color: var(--grey-1); font-size: 0.9rem; margin-bottom: 12px; }
.whc-profile-stats {
  display: flex;
  gap: 20px;
  font-size: 0.875rem;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--grey-1);
  margin-bottom: 14px;
}
.whc-profile-stats strong { color: var(--black); }

.whc-profile-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--grey-3);
  padding-bottom: 12px;
}
.whc-tab-content { display: none; }
.whc-tab-content.active { display: block; }

.whc-profile-about {
  background: var(--white);
  border: 1px solid var(--grey-3);
  border-radius: var(--radius-md);
  padding: 24px;
  max-width: 480px;
}
.whc-profile-about p { margin-bottom: 10px; font-size: 0.9rem; color: var(--grey-1); }

/* ─────────────────────────────
   PAGE CONTENT
───────────────────────────── */
.whc-page-content {
  background: var(--white);
  border: 1px solid var(--grey-3);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 720px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
  line-height: 1.8;
}
.whc-page-content h1,
.whc-page-content h2,
.whc-page-content h3 { margin-bottom: 14px; margin-top: 28px; }
.whc-page-content p { margin-bottom: 16px; color: #333; }

/* ─────────────────────────────
   FOOTER — black, white text
───────────────────────────── */
.whc-footer {
  background: var(--black);
  color: var(--white);
  padding: 52px 20px 32px;
  margin-top: 64px;
}

.whc-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.whc-footer-brand h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--white); }
.whc-footer-brand p { font-size: 0.875rem; color: #9ca3af; line-height: 1.6; }

.whc-footer-links { font-family: -apple-system, BlinkMacSystemFont, sans-serif; }
.whc-footer-menu { list-style: none; }
.whc-footer-menu li { margin-bottom: 8px; }

.whc-footer a { color: #9ca3af; font-size: 0.875rem; transition: color 0.15s; }
.whc-footer a:hover { color: var(--white); }

.whc-footer-cta p {
  color: #9ca3af;
  font-size: 0.875rem;
  margin-bottom: 12px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Dark subscribe box inside footer */
.whc-footer .whc-subscribe-box {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
}
.whc-footer .whc-subscribe-box p { color: #d1d5db; }

.whc-footer-bottom {
  max-width: 1100px;
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid #222;
  text-align: center;
  font-size: 0.78rem;
  color: #6b7280;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ─────────────────────────────
   MOBILE BOTTOM NAV
───────────────────────────── */
.whc-mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0,0,0,0.07);
  z-index: 999;
  display: none;
  justify-content: space-around;
  align-items: center;
}

.whc-mobile-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 11px;
  color: #888;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  transition: all 0.2s;
  text-decoration: none;
  padding: 4px 10px;
  gap: 2px;
}
.whc-mobile-item span { font-size: 20px; line-height: 1.3; }
.whc-mobile-item small { font-size: 10px; }
.whc-mobile-item img { border-radius: 50%; width: 24px; height: 24px; }
.whc-mobile-item.active { color: var(--black); }
.whc-mobile-item:active { transform: scale(0.9); }

/* FAB */
.whc-fab {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  font-size: 22px;
  line-height: 48px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.22);
  border: none;
  cursor: pointer;
  transition: transform 0.15s;
  position: relative;
  top: -8px;
  flex-shrink: 0;
}
.whc-fab:hover { transform: scale(1.08); }

/* ─────────────────────────────
   TOAST
───────────────────────────── */
.whc-notice {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--black);
  color: var(--white);
  padding: 10px 22px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.25s;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: var(--shadow-lg);
}
.whc-notice.show { opacity: 1; }

/* ─────────────────────────────
   RESPONSIVE — TABLET
───────────────────────────── */
@media (max-width: 900px) {
  .whc-grid { grid-template-columns: 1fr; }
  .whc-spotlight-grid { grid-template-columns: repeat(2, 1fr); }
  .whc-topics-grid { grid-template-columns: repeat(2, 1fr); }
  .whc-footer-inner { grid-template-columns: repeat(2, 1fr); }
}

/* ─────────────────────────────
   RESPONSIVE — MOBILE
───────────────────────────── */
@media (max-width: 768px) {
  body { padding-bottom: 72px; }

  .whc-hero { padding: 52px 16px 40px; }
  .whc-hero h1 { font-size: 1.9rem; }
  .whc-hero-cta { flex-direction: column; align-items: center; }

  .whc-btn-primary,
  .whc-btn-secondary { width: 100%; text-align: center; }

  .whc-nav-links { display: none; }
  .whc-mobile-nav { display: flex; }

  .whc-spotlight-grid,
  .whc-topics-grid { grid-template-columns: 1fr; }

  .whc-footer-inner { grid-template-columns: 1fr; }
  .whc-footer-brand,
  .whc-footer-links,
  .whc-footer-cta { text-align: center; }

  .whc-profile-header { flex-direction: column; align-items: center; text-align: center; }
  .whc-profile-stats { justify-content: center; }

  .whc-community-header h1,
  .whc-community-hero h1 { font-size: 1.5rem; }

  .whc-note-single { padding: 20px 16px; }
  .whc-page-content { padding: 24px 16px; }
}

/* ─────────────────────────────
   AUTH PAGES (Login + Register)
───────────────────────────── */
.whc-auth-wrap {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.whc-auth-card {
  background: var(--white);
  border: 1px solid var(--grey-3);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
}

.whc-auth-brand {
  text-align: center;
  margin-bottom: 28px;
}

.whc-auth-brand img {
  margin: 0 auto 12px;
  max-height: 48px;
  width: auto;
}

.whc-auth-brand h2 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.whc-auth-brand p {
  font-size: 0.875rem;
  color: var(--grey-1);
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.whc-auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.whc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.whc-field label {
  font-size: 0.85rem;
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--black);
}

.whc-field input {
  padding: 11px 14px;
  border: 1px solid var(--grey-3);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: var(--white);
  color: var(--black);
}

.whc-field input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(74,124,89,0.1);
}

.whc-field input::placeholder {
  color: var(--grey-2);
}

.whc-field-hint {
  font-size: 0.78rem;
  color: var(--grey-2);
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.whc-auth-btn {
  width: 100%;
  padding: 12px;
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  cursor: pointer;
  transition: opacity 0.15s;
  margin-top: 4px;
}

.whc-auth-btn:hover { opacity: 0.82; }
.whc-auth-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.whc-auth-footer-link {
  text-align: center;
  font-size: 0.82rem;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.whc-auth-footer-link a {
  color: var(--grey-1);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.whc-auth-footer-link a:hover { color: var(--black); }

.whc-auth-benefits {
  list-style: none;
  margin-top: 20px;
  padding: 16px;
  background: var(--green-light);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.whc-auth-benefits li {
  font-size: 0.875rem;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  color: #166534;
}

.whc-auth-switch {
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--grey-3);
  font-size: 0.875rem;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--grey-1);
}

.whc-auth-switch a {
  color: var(--green);
  font-weight: 600;
}

.whc-auth-switch a:hover { text-decoration: underline; }

@media (max-width: 480px) {
  .whc-auth-card {
    padding: 28px 20px;
  }
}

/* ─────────────────────────────
   SUBSCRIBE BOX — additions
───────────────────────────── */
.whc-subscribe-box--loggedin {
  background: var(--green-light);
  border-color: #bbf7d0;
  padding: 16px 20px;
}

.whc-subscribe-box--loggedin p {
  color: #166534;
  margin: 0;
  font-size: 0.9rem;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.whc-subscribe-terms {
  font-size: 0.75rem;
  color: var(--grey-2);
  margin-top: 8px !important;
  margin-bottom: 0 !important;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Subscribe box inside auth card (register page) */
.whc-auth-card .whc-subscribe-box {
  background: var(--grey-4);
  border-color: var(--grey-3);
  border-radius: var(--radius-md);
  margin-bottom: 0;
}

/* ─────────────────────────────
   ARCHIVE PAGE
───────────────────────────── */
.whc-archive-header {
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--grey-3);
  margin-bottom: 28px;
}

.whc-archive-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  margin-bottom: 8px;
}

.whc-archive-header h1 {
  font-size: 2rem;
  margin-bottom: 10px;
  line-height: 1.2;
}

.whc-archive-desc {
  color: var(--grey-1);
  font-size: 0.95rem;
  max-width: 560px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.whc-archive-meta {
  font-size: 0.8rem;
  color: var(--grey-2);
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Author archive header */
.whc-archive-author-info {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.whc-archive-author-info img {
  border-radius: 50%;
  flex-shrink: 0;
}

.whc-archive-author-info h1 {
  font-size: 1.6rem;
  margin-bottom: 6px;
}

/* Feed */
.whc-archive-feed {
  min-height: 200px;
}

/* Pagination */
.whc-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
  flex-wrap: wrap;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.whc-pagination a,
.whc-pagination span {
  padding: 8px 14px;
  border: 1px solid var(--grey-3);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--grey-1);
  background: var(--white);
  transition: all 0.15s;
}

.whc-pagination a:hover {
  border-color: var(--black);
  color: var(--black);
}

.whc-pagination .current {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

/* Empty state */
.whc-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--grey-1);
}

.whc-empty-state span {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 16px;
}

.whc-empty-state h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--black);
}

.whc-empty-state p {
  font-size: 0.9rem;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .whc-archive-header h1 { font-size: 1.5rem; }
  .whc-archive-author-info { flex-direction: column; align-items: center; text-align: center; }
}

/* ─────────────────────────────
   ANALYTICS — TRENDING + TOPICS
───────────────────────────── */
.whc-trending-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.whc-trending-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
  text-decoration: none;
  color: var(--black);
}

.whc-trending-item:hover {
  background: var(--grey-4);
}

.whc-trending-rank {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--grey-3);
  min-width: 24px;
  line-height: 1.4;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.whc-trending-content { flex: 1; min-width: 0; }

.whc-trending-text {
  font-size: 0.875rem;
  line-height: 1.4;
  margin-bottom: 4px;
  color: var(--black);
}

.whc-trending-meta {
  font-size: 0.75rem;
  color: var(--grey-2);
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Popular topics tags */
.whc-popular-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.whc-popular-topic-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--grey-4);
  border: 1px solid var(--grey-3);
  border-radius: 20px;
  font-size: 0.8rem;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--black);
  transition: all 0.15s;
  text-decoration: none;
}

.whc-popular-topic-tag:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.whc-popular-topic-tag span {
  background: var(--grey-3);
  border-radius: 10px;
  padding: 1px 6px;
  font-size: 0.7rem;
  color: var(--grey-1);
  transition: all 0.15s;
}

.whc-popular-topic-tag:hover span {
  background: rgba(255,255,255,0.2);
  color: var(--white);
}

/* ─────────────────────────────
   TOP CREATORS
───────────────────────────── */
.whc-creators-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.whc-creator-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.whc-creator-info {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--black);
  flex: 1;
  min-width: 0;
}

.whc-creator-info img {
  border-radius: 50%;
  flex-shrink: 0;
}

.whc-creator-info strong {
  display: block;
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.whc-creator-info span {
  display: block;
  font-size: 0.75rem;
  color: var(--grey-2);
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.whc-creator-info:hover strong {
  color: var(--green);
}

.whc-follow-btn.is-following {
  background: var(--grey-4);
  color: var(--grey-1);
  border-color: var(--grey-3);
}

.whc-follow-btn.is-following:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}
/* ═══════════════════════════
   LOGO — ABSOLUTE FINAL OVERRIDE
   Always keep these at the bottom of the file
═══════════════════════════ */
a.custom-logo-link,
.whc-logo a.custom-logo-link {
  display: flex !important;
  align-items: center !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
}

a.custom-logo-link img.custom-logo,
.whc-logo img,
.whc-logo a img {
  height: 40px !important;
  width: auto !important;
  max-height: 40px !important;
  max-width: 150px !important;
  object-fit: contain !important;
  display: block !important;
}

@media (max-width: 768px) {
  a.custom-logo-link img.custom-logo,
  .whc-logo img,
  .whc-logo a img {
    height: 30px !important;
    max-height: 30px !important;
    max-width: 120px !important;
  }
}
/* ═══════════════════════════════════════════════════════
   LIGHT SCORE LEADERBOARD
   ═══════════════════════════════════════════════════════ */

.wtl-leaderboard {
  max-width: 640px;
  margin: 0 auto;
  font-family: inherit;
}

.wtl-leaderboard-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.wtl-leaderboard-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: #1a1a1a;
}

.wtl-leaderboard-sub {
  font-size: 0.8rem;
  color: #9ca3af;
  margin: 0;
}

.wtl-board-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wtl-board-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  padding: 10px 14px;
  transition: box-shadow 0.15s;
}

.wtl-board-row:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.wtl-board-row.is-me {
  background: #fefce8;
  border-color: #fde68a;
}

.wtl-board-row.rank-1 { border-left: 3px solid #f59e0b; }
.wtl-board-row.rank-2 { border-left: 3px solid #94a3b8; }
.wtl-board-row.rank-3 { border-left: 3px solid #b45309; }

.wtl-board-rank {
  width: 32px;
  text-align: center;
  flex-shrink: 0;
}

.wtl-rank-num {
  font-size: 0.85rem;
  font-weight: 600;
  color: #9ca3af;
}

.wtl-medal { font-size: 1.2rem; }

.wtl-board-avatar {
  flex-shrink: 0;
}

.wtl-board-avatar img {
  border-radius: 50%;
  display: block;
}

.wtl-board-name {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.wtl-board-name a {
  font-weight: 600;
  font-size: 0.9rem;
  color: #111;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wtl-board-name a:hover { text-decoration: underline; }

.wtl-board-you {
  font-size: 0.7rem;
  color: #9ca3af;
  font-style: normal;
  background: #f3f4f6;
  padding: 1px 6px;
  border-radius: 99px;
}

.wtl-board-tier {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: #6b7280;
  flex-shrink: 0;
}

.wtl-board-score {
  font-size: 0.85rem;
  font-weight: 700;
  color: #374151;
  flex-shrink: 0;
  white-space: nowrap;
}

.wtl-leaderboard-empty {
  text-align: center;
  color: #9ca3af;
  font-size: 0.9rem;
  padding: 2rem 0;
}

.wtl-leaderboard-my-rank {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 14px;
  background: #f0fdf4;
  border: 1px dashed #bbf7d0;
  border-radius: 10px;
  font-size: 0.85rem;
}

.wtl-rank-number {
  font-weight: 700;
  font-size: 1rem;
  color: #15803d;
}

.wtl-rank-label { color: #6b7280; flex: 1; }

.wtl-rank-score { font-weight: 600; color: #374151; }

/* My Score chip (profile page) */
.wtl-my-score-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fefce8;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 10px 16px;
}

.wtl-score-flame { font-size: 1.4rem; line-height: 1; }

.wtl-score-details {
  display: flex;
  flex-direction: column;
}

.wtl-score-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
}

.wtl-score-number {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111;
}

.wtl-score-rank {
  font-size: 0.8rem;
  color: #6b7280;
  border-left: 1px solid #fde68a;
  padding-left: 10px;
}

/* Like button active state */
.whc-like-btn.is-liked {
  color: #ef4444;
}

@media (max-width: 480px) {
  .wtl-board-tier { display: none; }
  .wtl-board-row { padding: 10px; gap: 8px; }
}

/* ─────────────────────────────
   ACCOUNT PAGE — QUAD GRID
   Used by page-account.php
───────────────────────────── */
.wtl-quad-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.2rem;
  background: #faf9f6;
  font-family: 'Raleway', sans-serif;
  position: relative;
}

.wtl-quad-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0;
  width: min(540px, 100%);
  aspect-ratio: 1;
  position: relative;
}

/* Centre logo — absolutely positioned over the grid intersection */
.wtl-quad-logo-centre {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: #faf9f6;
  border-radius: 50%;
  border: 1px solid #e0dbd4;
}

.wtl-quad-logo-centre img {
  max-width: 56px;
  max-height: 56px;
  object-fit: contain;
}

.wtl-quad-site-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #7a7060;
  text-align: center;
}

/* Individual quadrant */
.wtl-quad {
  border: 1px solid #e8e4dd;
  display: flex;
  flex-direction: column;
  padding: 1.4rem;
  position: relative;
  background: #fff;
  transition: background 0.2s;
  overflow: hidden;
}

.wtl-quad:nth-child(1) { border-right: none; border-bottom: none; }
.wtl-quad:nth-child(2),
.wtl-quad-name         { border-bottom: none; }
.wtl-quad:nth-child(3) { border-right: none; }

/* Expandable quad */
.wtl-quad-label {
  font-family: 'Raleway', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #FF6820;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-align: left;
  transition: opacity 0.2s;
  line-height: 1;
}
.wtl-quad-label:hover { opacity: 0.6; }
[aria-expanded="true"].wtl-quad-label { opacity: 0.6; }

.wtl-quad-panel {
  margin-top: 1rem;
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1.7;
  color: #444;
  overflow-y: auto;
  flex: 1;
}
.wtl-quad-panel h4 {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6b7280;
  margin: 1rem 0 0.5rem;
}
.wtl-quad-panel ol {
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.wtl-quad-panel p { margin-bottom: 0.5rem; }

/* Name quadrant (top-right, link) */
.wtl-quad-name {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 1.4rem;
  background: #faf9f6;
  border: 1px solid #e8e4dd;
  transition: background 0.2s;
}
.wtl-quad-name:hover { background: #f0ece4; }

.wtl-quad-name-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  font-weight: 300;
  color: #1a6b3a;
  text-align: right;
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.wtl-quad-name-sub {
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #7a7060;
  margin-top: 4px;
}

/* Contact list inside quad-panel */
.wtl-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wtl-contact-list li a {
  font-size: 0.78rem;
  font-weight: 300;
  color: #1a6b3a;
  text-decoration: underline;
  text-underline-offset: 3px;
  letter-spacing: 0.04em;
  transition: opacity 0.2s;
}
.wtl-contact-list li a:hover { opacity: 0.6; }

/* Mobile — stack the quadrants vertically */
@media (max-width: 520px) {
  .wtl-quad-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    aspect-ratio: auto;
  }

  .wtl-quad,
  .wtl-quad-name {
    border: 1px solid #e8e4dd !important;
    border-radius: 0;
    min-height: 100px;
  }

  .wtl-quad:nth-child(1) { border-radius: 8px 8px 0 0; }
  .wtl-quad:last-child   { border-radius: 0 0 8px 8px; }

  .wtl-quad-name {
    align-items: flex-start;
    justify-content: flex-start;
  }
  .wtl-quad-name-text { text-align: left; }

  .wtl-quad-logo-centre {
    display: none; /* Centre logo doesn't work in stacked layout */
  }
}

/* ─────────────────────────────
   LOGO BLOCK
   Used across auth, profile-setup, home, and landing fallback
───────────────────────────── */
.wtl-logo-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

/* When WordPress outputs the_custom_logo() */
.wtl-logo-block .custom-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
}

.wtl-logo-block .custom-logo {
  max-height: 52px;
  max-width: 180px;
  width: auto;
  object-fit: contain;
}

/* Text placeholder — shown when no logo is uploaded */
.wtl-logo-text {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #1a1a1a;
  line-height: 1.2;
}
.wtl-logo-text.is-dark { color: rgba(255,255,255,0.88); }

.wtl-logo-sub {
  font-family: 'Raleway', sans-serif;
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #7a7060;
}
.wtl-logo-sub.is-dark { color: rgba(255,255,255,0.35); }

/* Corner logo variant (landing page top-right) */
.wtl-logo-corner {
  position: fixed;
  top: 28px;
  right: 32px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}
.wtl-logo-corner .wtl-logo-block {
  align-items: flex-end;
}
.wtl-logo-corner .custom-logo { max-height: 36px; }
.wtl-logo-corner .wtl-logo-text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.78);
}
.wtl-logo-corner .wtl-logo-sub {
  color: rgba(255,255,255,0.32);
}

/* Top-centre logo variant (home dashboard, inner pages) */
.wtl-logo-centre-top {
  position: fixed;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  pointer-events: none;
}
.wtl-logo-centre-top .wtl-logo-block { align-items: center; }
.wtl-logo-centre-top .custom-logo { max-height: 30px; }
.wtl-logo-centre-top .wtl-logo-text {
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  color: #1a6b3a;
}
.wtl-logo-centre-top .wtl-logo-sub { display: none; }

@media (max-width: 480px) {
  .wtl-logo-corner { top: 20px; right: 20px; }
  .wtl-logo-centre-top { top: 20px; }
}

/* ─────────────────────────────
   AUTH PAGES — LOGIN + REGISTER
   Template: page-login.php, page-register.php
───────────────────────────── */
.wtl-auth-body {
  font-family: 'Raleway', sans-serif;
  background: #faf9f6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.2rem;
  color: #1a1a1a;
}

.wtl-auth-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 400px;
  gap: 2rem;
}

/* Logo above the card */
.wtl-auth-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.wtl-auth-logo .custom-logo-link { display: flex; }
.wtl-auth-logo .custom-logo {
  max-height: 52px;
  max-width: 160px;
  width: auto;
  object-fit: contain;
}

.wtl-auth-logo-name {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #1a6b3a;
  text-align: center;
}

.wtl-auth-logo-sub {
  font-family: 'Raleway', sans-serif;
  font-size: 0.70rem;
  font-weight: 300;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #7a7060;
  text-align: center;
}

/* The card */
.wtl-auth-card {
  background: #fff;
  border: 1px solid #e0dbd4;
  border-radius: 10px;
  padding: 2.4rem 2rem;
  width: 100%;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.wtl-auth-heading {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  color: #1a6b3a;
  text-align: center;
  margin-bottom: 0.3rem;
}

.wtl-auth-sub {
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6b7280;
  text-align: center;
  margin-bottom: 2rem;
}

/* Form fields */
.wtl-auth-field {
  margin-bottom: 1.2rem;
}

.wtl-auth-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.wtl-auth-input {
  width: 100%;
  padding: 13px 16px;
  background: #faf9f6;
  border: 1px solid #e0dbd4;
  border-radius: 6px;
  color: #111;
  font-family: 'Raleway', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.wtl-auth-input:focus {
  border-color: #1a6b3a;
  background: #fff;
}
.wtl-auth-input::placeholder { color: #c8c2ba; }

/* Submit button */
.wtl-auth-submit {
  width: 100%;
  margin-top: 0.6rem;
  padding: 14px;
  background: #1a6b3a;
  border: none;
  border-radius: 6px;
  color: #fff;
  font-family: 'Raleway', sans-serif;
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}
.wtl-auth-submit:hover:not(:disabled) { background: #0f4a28; }
.wtl-auth-submit:disabled { opacity: 0.45; cursor: not-allowed; }

/* Inline feedback */
.wtl-auth-msg {
  min-height: 1.2em;
  margin-top: 0.8rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: #6b7280;
}
.wtl-auth-msg.is-error   { color: #dc2626; }
.wtl-auth-msg.is-success { color: #1a6b3a; }

/* Bottom links */
.wtl-auth-switch {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: #6b7280;
}
.wtl-auth-switch a {
  color: #1a6b3a;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}
.wtl-auth-switch a:hover { opacity: 0.7; }

@media (max-width: 420px) {
  .wtl-auth-card { padding: 1.8rem 1.4rem; }
}

/* ─────────────────────────────
   GLOBAL MOBILE POLISH
   Touch targets, safe areas, fonts
───────────────────────────── */

/* Minimum tap target size (WCAG 2.5.5) */
@media (max-width: 768px) {
  button, [role="button"], a, input[type="submit"] {
    min-height: 44px;
  }

  /* Override for decorative/inline links that shouldn't be 44px tall */
  .wtl-c,
  .whc-read-more,
  .whc-note-open,
  .wtl-score-rank { min-height: unset; }
}

/* Safe area padding for notched iPhones */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  body { padding-bottom: env(safe-area-inset-bottom); }

  .wtl-c-bl { bottom: calc(28px + env(safe-area-inset-bottom)); }
  .wtl-c-br { bottom: calc(28px + env(safe-area-inset-bottom)); }

  @media (max-width: 640px) {
    .wtl-c-bl { bottom: calc(22px + env(safe-area-inset-bottom)); }
    .wtl-c-br { bottom: calc(22px + env(safe-area-inset-bottom)); }
  }
}

/* Prevent horizontal scroll on all custom pages */
.wtl-truth-wrap,
.wtl-home-wrap,
.wtl-hub-wrap {
  overflow-x: hidden;
}

/* Fruit pills — prevent overflow on very small screens */
@media (max-width: 360px) {
  .wtl-fruits-grid,
  .wtl-fruit-pills,
  .wtl-fruit-pick-pills {
    gap: 5px;
  }
  .wtl-fruit-btn,
  .wtl-fruit-pill,
  .wtl-fruit-pick-pill {
    font-size: 0.62rem;
    padding: 5px 10px;
  }
}

/* Scripture overlay — full-screen on small phones */
@media (max-width: 480px) {
  .wtl-overlay { padding: 0; }
  .wtl-overlay-card {
    border-radius: 0;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 5rem 1.2rem 2rem;
    justify-content: center;
  }
}

/* CRE-ART carousel — correct aspect ratio on narrow screens */
@media (max-width: 400px) {
  .wtl-carousel { aspect-ratio: 4/3; }
}

/* Home portals — tighten gap on small phones */
@media (max-width: 380px) {
  .wtl-portals {
    gap: 1.2rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .wtl-portal { max-width: 180px; }
}

/* ═══════════════════════════════════════════════════════
   LEADERBOARD PAGE
   ═══════════════════════════════════════════════════════ */

.wtl-lb-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.wtl-lb-page-header {
  text-align: center;
  margin-bottom: 2rem;
}

.wtl-lb-page-header h1 {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
}

.wtl-lb-page-header p {
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.wtl-lb-how {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
}

.wtl-lb-how summary {
  cursor: pointer;
  font-weight: 600;
  color: #374151;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.wtl-lb-how summary::before {
  content: '▸';
  font-size: 0.75rem;
  color: #9ca3af;
  transition: transform 0.15s;
}

.wtl-lb-how[open] summary::before {
  transform: rotate(90deg);
}

.wtl-lb-point-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wtl-lb-point-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
}

.wtl-lb-point-list li:last-child { border-bottom: none; }

.wtl-pt-action { color: #374151; }
.wtl-pt-val { font-weight: 700; color: #15803d; white-space: nowrap; }

.wtl-lb-my-rank-banner {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.wtl-lb-join-cta {
  text-align: center;
  margin-top: 2rem;
}

/* ═══════════════════════════════════════════════════════
   TOPIC / COMMUNITY PAGE — TWO COLUMN
   ═══════════════════════════════════════════════════════ */

.whc-topic-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: start;
}

.whc-topic-feed { min-width: 0; }

.wtl-sidebar-widget {
  background: #fafafa;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  position: sticky;
  top: 80px;
}

.wtl-sidebar-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 2px;
  color: #111;
}

.wtl-sidebar-sub {
  font-size: 0.75rem;
  color: #9ca3af;
  margin: 0 0 12px;
}

.wtl-sidebar-more {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 12px;
  text-decoration: none;
}

.wtl-sidebar-more:hover { color: #111; }

/* Compact board inside sidebar */
.wtl-sidebar-widget .wtl-board-list { gap: 6px; }
.wtl-sidebar-widget .wtl-board-row { padding: 8px 10px; gap: 8px; }
.wtl-sidebar-widget .wtl-board-tier { display: none; }
.wtl-sidebar-widget .wtl-board-score { font-size: 0.78rem; }
.wtl-sidebar-widget .wtl-board-name a { font-size: 0.82rem; }
.wtl-sidebar-widget .wtl-leaderboard-title,
.wtl-sidebar-widget .wtl-leaderboard-sub { display: none; }

@media (max-width: 768px) {
  .whc-topic-layout {
    grid-template-columns: 1fr;
  }
  .wtl-sidebar-widget {
    position: static;
    order: -1;
  }
}

/* ═══════════════════════════════════════════════════════
   PROFILE — SCORE CHIP & SCORE TAB
   ═══════════════════════════════════════════════════════ */

.wtl-profile-score {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fefce8;
  border: 1px solid #fde68a;
  border-radius: 99px;
  padding: 4px 12px 4px 8px;
  margin-top: 10px;
  font-size: 0.82rem;
}

.wtl-score-icon { font-size: 1rem; }
.wtl-score-tier { color: #92400e; font-weight: 600; }
.wtl-score-pts  { color: #374151; }

.wtl-score-rank-badge {
  background: #f3f4f6;
  color: #374151;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
  margin-left: 4px;
}

/* Score panel (own profile tab) */
.wtl-score-panel {
  max-width: 520px;
  padding: 1rem 0;
}

.wtl-score-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fefce8;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 1.5rem;
}

.wtl-score-big {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wtl-big-icon { font-size: 2rem; line-height: 1; }

.wtl-big-pts {
  font-size: 1.4rem;
  font-weight: 800;
  color: #111;
  line-height: 1.2;
}

.wtl-big-pts small {
  font-size: 0.75rem;
  font-weight: 400;
  color: #9ca3af;
}

.wtl-big-tier {
  font-size: 0.82rem;
  color: #6b7280;
  margin-top: 2px;
}

.wtl-view-lb-link {
  font-size: 0.82rem;
  color: #6b7280;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.wtl-view-lb-link:hover { color: #111; }

.wtl-log-heading {
  font-size: 0.9rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 10px;
}

.wtl-activity-log {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.wtl-log-entry {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.85rem;
}

.wtl-log-entry:last-child { border-bottom: none; }

.wtl-log-label { flex: 1; color: #374151; }
.wtl-log-pts   { font-weight: 700; color: #15803d; white-space: nowrap; }
.wtl-log-time  { color: #9ca3af; font-size: 0.75rem; white-space: nowrap; }

.wtl-log-empty {
  color: #9ca3af;
  font-size: 0.88rem;
  text-align: center;
  padding: 1.5rem 0;
}

/* ═══════════════════════════════════════════════════════
   LANDING PAGE
   ═══════════════════════════════════════════════════════ */

.wtl-landing-body {
  margin: 0;
  background: #fafaf8;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.wtl-landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 0;
}

.wtl-landing-logo {
  padding: 2.5rem 0 2rem;
}

.wtl-landing-site-name {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #111;
}

/* Continuous ticker */
.wtl-ticker-wrap {
  width: 100%;
  overflow: hidden;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  padding: 14px 0;
  background: #fff;
}

.wtl-ticker-track {
  display: inline-flex;
  white-space: nowrap;
  animation: wtl-ticker 18s linear infinite;
}

.wtl-ticker-text {
  font-size: clamp(1rem, 3vw, 1.35rem);
  font-weight: 500;
  color: #1a1a1a;
  letter-spacing: 0.01em;
  padding: 0 1.5rem;
}

.wtl-ticker-sep {
  color: #9ca3af;
  font-size: 1.2rem;
  line-height: 1;
  align-self: center;
}

@keyframes wtl-ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-33.333%); }
}

.wtl-landing-invite {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 3rem 1.5rem 4rem;
  text-align: center;
}

.wtl-landing-sub {
  font-size: 0.95rem;
  color: #6b7280;
  max-width: 340px;
  margin: 0;
  line-height: 1.6;
}

.wtl-landing-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.wtl-btn-create {
  background: #1a1a1a;
  color: #fff;
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}

.wtl-btn-create:hover { background: #333; color: #fff; }

.wtl-btn-enter {
  background: transparent;
  color: #1a1a1a;
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid #d1d5db;
  transition: border-color 0.15s;
}

.wtl-btn-enter:hover { border-color: #9ca3af; color: #111; }

/* ═══════════════════════════════════════════════════════
   AUTH PAGES (Login / Register) — shared
   ═══════════════════════════════════════════════════════ */

.wtl-auth-body {
  margin: 0;
  background: #fafaf8;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.wtl-auth-wrap {
  width: 100%;
  max-width: 400px;
  padding: 1.5rem;
}

.wtl-auth-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.wtl-auth-logo {
  display: block;
  text-decoration: none;
  color: #111;
  font-weight: 700;
}

.wtl-auth-heading {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  color: #111;
  text-align: center;
}

.wtl-auth-sub {
  font-size: 0.875rem;
  color: #6b7280;
  margin: -0.75rem 0 0;
  text-align: center;
}

.wtl-auth-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wtl-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.wtl-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
}

.wtl-field input {
  padding: 10px 12px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #111;
  background: #fafaf8;
  transition: border-color 0.15s;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.wtl-field input:focus {
  border-color: #1a1a1a;
  background: #fff;
}

.wtl-auth-btn {
  width: 100%;
  padding: 12px;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 4px;
}

.wtl-auth-btn:hover:not(:disabled) { background: #333; }
.wtl-auth-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.wtl-auth-note {
  font-size: 0.78rem;
  color: #9ca3af;
  text-align: center;
  margin: 0;
}

.wtl-auth-note a { color: #6b7280; }

.wtl-auth-switch {
  font-size: 0.85rem;
  color: #6b7280;
  text-align: center;
  margin: 0;
}

.wtl-auth-switch a { color: #111; font-weight: 600; text-decoration: none; }
.wtl-auth-switch a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════
   PROFILE SETUP — 4-QUADRANT PAGE
   ═══════════════════════════════════════════════════════ */

.wtl-profile-setup-body {
  margin: 0;
  background: #fafaf8;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.wtl-quad-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.wtl-quad-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0;
  width: min(640px, 100%);
  aspect-ratio: 1;
  position: relative;
  border: 1.5px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

/* Each quadrant */
.wtl-quad {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background 0.15s;
  position: relative;
  text-align: center;
}

.wtl-quad:hover { background: #fafaf8; }

/* Active (has open panel) */
.wtl-quad:has(.wtl-quad-panel:not([hidden])) {
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  background: #f9fafb;
}

.wtl-quad-label {
  background: none;
  border: none;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #374151;
  cursor: pointer;
  padding: 0;
  text-transform: uppercase;
  display: block;
  width: 100%;
  text-align: inherit;
}

.wtl-quad-panel {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: #4b5563;
  line-height: 1.6;
  overflow-y: auto;
  max-height: 160px;
  text-align: left;
  width: 100%;
}

.wtl-quad-panel h4 {
  font-size: 0.8rem;
  font-weight: 700;
  margin: 0.75rem 0 0.25rem;
  color: #111;
}

.wtl-quad-panel ol,
.wtl-quad-panel ul {
  padding-left: 1rem;
  margin: 0;
}

.wtl-quad-panel li { margin-bottom: 0.35rem; }

/* NAME quadrant (top-right) — always a link */
.wtl-quad-name {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
  color: #fff;
  border: none;
  transition: background 0.15s;
}

.wtl-quad-name:hover { background: #2d2d2d; }

.wtl-quad-name-text {
  font-size: clamp(1rem, 4vw, 1.4rem);
  font-weight: 800;
  color: #fff;
  display: block;
}

.wtl-quad-name-sub {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
  display: block;
}

/* Centre logo overlay */
.wtl-quad-logo-centre {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
}

.wtl-quad-logo-centre img {
  width: 60px;
  height: auto;
  object-fit: contain;
}

.wtl-quad-site-name {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: center;
  color: #374151;
  padding: 4px;
}

.wtl-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wtl-contact-list li { margin-bottom: 8px; }
.wtl-contact-list a { color: #374151; text-decoration: none; font-size: 0.82rem; }
.wtl-contact-list a:hover { text-decoration: underline; }

@media (max-width: 480px) {
  .wtl-quad-grid { aspect-ratio: auto; }
  .wtl-quad, .wtl-quad-name { min-height: 140px; }
  .wtl-quad-logo-centre { width: 56px; height: 56px; }
}

/* ═══════════════════════════════════════════════════════
   HOME DASHBOARD — THREE SECTIONS
   ═══════════════════════════════════════════════════════ */

.wtl-home-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fafaf8;
}

.wtl-home-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.wtl-home-username {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111;
  text-decoration: none;
}

.wtl-home-username:hover { text-decoration: underline; }

.wtl-home-welcome {
  font-size: 0.82rem;
  color: #9ca3af;
  font-style: italic;
}

.wtl-home-sections {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  min-height: calc(100vh - 65px);
}

.wtl-home-section {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-right: 1px solid #e5e7eb;
  padding: 3rem 2rem;
  transition: background 0.2s;
  position: relative;
}

.wtl-home-section:last-child { border-right: none; }

.wtl-section-truth { background: #fefce8; }
.wtl-section-truth:hover { background: #fef9c3; }

.wtl-section-life { background: #f0fdf4; }
.wtl-section-life:hover { background: #dcfce7; }

.wtl-section-way { background: #eff6ff; }
.wtl-section-way:hover { background: #dbeafe; }

.wtl-section-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  max-width: 220px;
}

.wtl-section-icon {
  font-size: 2rem;
  line-height: 1;
  display: block;
}

.wtl-section-title {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 800;
  color: #111;
  margin: 0;
}

.wtl-section-desc {
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

.wtl-section-cta {
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
  opacity: 0.6;
  margin-top: 4px;
  display: block;
}

.wtl-home-section:hover .wtl-section-cta { opacity: 1; }

@media (max-width: 768px) {
  .wtl-home-sections {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .wtl-home-section {
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
    padding: 2.5rem 1.5rem;
    min-height: 180px;
  }
  .wtl-home-section:last-child { border-bottom: none; }
  .wtl-home-bar { padding: 1rem 1.25rem; }
}

/* ═══════════════════════════════════════════════════
   PROFILE SETUP — quadrant page
═══════════════════════════════════════════════════ */
.wtl-profile-setup-body {
  font-family: var(--font-ui);
  background: var(--cream);
  overflow: hidden;
}

.wtl-quad-page {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wtl-quad-grid {
  width: 100vw;
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  position: relative;
}

/* Cross-hair dividers */
.wtl-quad-grid::before,
.wtl-quad-grid::after {
  content: '';
  position: absolute;
  background: #d6d0c8;
  pointer-events: none;
  z-index: 5;
}
.wtl-quad-grid::before {
  top: 0; bottom: 0;
  left: 50%; width: 1px;
  transform: translateX(-50%);
}
.wtl-quad-grid::after {
  left: 0; right: 0;
  top: 50%; height: 1px;
  transform: translateY(-50%);
}

.wtl-quad {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
}

.wtl-quad-label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--orange);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.2s;
}
.wtl-quad-label:hover { opacity: 0.65; }

.wtl-quad-panel {
  margin-top: 1.2rem;
  max-width: 260px;
  text-align: center;
}

.wtl-quad-panel p,
.wtl-quad-panel li {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--grey-1);
  line-height: 1.8;
}

.wtl-quad-panel ol {
  text-align: left;
  padding-left: 1.2rem;
  margin-top: 0.75rem;
}

.wtl-quad-panel h4 {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--grey-2);
  margin: 1rem 0 0.5rem;
}

.wtl-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.wtl-contact-list a {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--grey-1);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.wtl-contact-list a:hover { color: var(--black); }

/* Name quadrant (top-right) */
.wtl-quad-name {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem;
  transition: opacity 0.2s;
}
.wtl-quad-name:hover { opacity: 0.75; }

.wtl-quad-name-text {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--green);
}

.wtl-quad-name-sub {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--grey-2);
}

/* Centre logo */
.wtl-quad-logo-centre {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  background: var(--cream);
  padding: 0.6rem 1rem;
  text-align: center;
}

.wtl-quad-site-name {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--green);
}

@media (max-width: 640px) {
  .wtl-quad-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 1fr);
    overflow-y: auto;
    height: auto;
    min-height: 100vh;
  }
  .wtl-quad-grid::before { display: none; }
  .wtl-quad-grid::after {
    top: 25%; height: 1px;
    width: 100%; left: 0;
    transform: none;
  }
  .wtl-quad-logo-centre { display: none; }
  .wtl-quad { padding: 1.5rem 1rem; min-height: 25vh; }
  .wtl-quad-panel { max-width: 90%; }
}

/* ═══════════════════════════════════════════════════
   AUTH PAGES (login / register)
═══════════════════════════════════════════════════ */
.wtl-auth-body {
  font-family: var(--font-ui);
  background: var(--cream);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wtl-auth-wrap {
  width: 100%;
  max-width: 400px;
  padding: 2rem 1.5rem;
}

.wtl-auth-logo {
  text-align: center;
  margin-bottom: 2.5rem;
}

.wtl-auth-logo-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  color: var(--green);
}

.wtl-auth-logo-sub {
  font-size: 0.70rem;
  font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--grey-2);
  margin-top: 4px;
}

.wtl-auth-card {
  background: var(--white);
  border: 1px solid #e8e3dc;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  box-shadow: 0 2px 20px rgba(0,0,0,0.04);
}

.wtl-auth-heading {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--black);
  text-align: center;
  margin-bottom: 0.4rem;
}

.wtl-auth-sub {
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.16em;
  color: var(--grey-2);
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.wtl-auth-field {
  margin-bottom: 1rem;
}

.wtl-auth-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey-1);
  margin-bottom: 0.5rem;
}

.wtl-auth-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--cream);
  border: 1px solid #e0dbd4;
  border-radius: 6px;
  color: var(--black);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 300;
  outline: none;
  transition: border-color 0.2s;
}
.wtl-auth-input:focus { border-color: var(--green); background: var(--white); }
.wtl-auth-input::placeholder { color: var(--grey-2); }

.wtl-auth-submit {
  width: 100%;
  margin-top: 1.4rem;
  padding: 13px;
  background: var(--green);
  border: none;
  border-radius: 6px;
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
.wtl-auth-submit:hover:not(:disabled) { background: #0f4a28; }
.wtl-auth-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.wtl-auth-msg {
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--grey-1);
  text-align: center;
  margin-top: 1rem;
  min-height: 1.2em;
}
.wtl-auth-msg.is-error { color: #dc2626; }
.wtl-auth-msg.is-success { color: var(--green); }

.wtl-auth-switch {
  margin-top: 1.6rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--grey-2);
}

.wtl-auth-switch a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ═══════════════════════════════════════════════════
   COMMUNITY / NOTES FEED — updated typography
═══════════════════════════════════════════════════ */
.whc-note-text {
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.75;
}

.whc-composer textarea {
  font-family: var(--font-ui);
  font-weight: 300;
}


/* ── COMPOSER SECTION SPACING ── */
.whc-community-compose {
  margin-bottom: 24px;
}

.whc-load-more-btn {
  display: block;
  margin: 20px auto 0;
  padding: 10px 28px;
  background: none;
  border: 1px solid var(--grey-3);
  border-radius: 6px;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--grey-1);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.whc-load-more-btn:hover { border-color: var(--black); color: var(--black); }
.whc-load-more-btn:disabled { opacity: 0.5; cursor: not-allowed; }
