/* ════════════════════════════════════════════════════════════
   JM RUN CLUB — MEMBERS AREA STYLES
   Shared across every /members/ page. Uses existing site tokens
   (--gold, --black, --surface, --border, --text, --muted,
   --font-display, --font-body) defined in site.css.
   All classes are prefixed mem- to avoid collisions.
════════════════════════════════════════════════════════════ */

/* ── App shell: left nav rail + main column ── */
.mem-app {
  --mem-rail-w: 246px;
  max-width: 1520px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: var(--mem-rail-w) minmax(0, 1fr);
}
.mem-label {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

/* ════════════════════════════════════════════════════════════
   LEFT NAV RAIL
════════════════════════════════════════════════════════════ */
.mem-rail {
  border-right: 1px solid var(--border);
  padding: 30px 22px 60px;
  position: sticky;
  top: 16px;
  align-self: start;
}
.mem-rail-group { margin-bottom: 30px; }
.mem-rail-heading {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(136,136,128,0.7);
  padding: 0 14px;
  margin-bottom: 12px;
}
.mem-rail-link {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.18s, background 0.18s;
}
.mem-rail-link svg { flex-shrink: 0; opacity: 0.85; }
.mem-rail-link:hover { color: var(--text); background: var(--surface); }
.mem-rail-link.is-active { color: var(--black); background: var(--gold); }
.mem-rail-link.is-active svg { opacity: 1; }
.mem-rail-link.is-active:hover { color: var(--black); background: var(--gold); }

/* Escape hatch back to the main site. Sits above the "Members" heading so
   it reads as "you're inside the app, here's the way out." */
.mem-rail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 16px;
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.18s;
}
.mem-rail-back:hover { color: var(--gold); }
.mem-rail-back svg { opacity: 0.85; }

/* ════════════════════════════════════════════════════════════
   MAIN COLUMN + TOP BAR
════════════════════════════════════════════════════════════ */
.mem-main { padding: 26px 40px 20px; min-width: 0; }
.mem-topbar {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.mem-search { position: relative; flex: 1 1 320px; min-width: 220px; }
.mem-search svg {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.mem-search input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 13px 20px 13px 48px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0.02em;
}
.mem-search input::placeholder { color: var(--muted); }
.mem-search input:focus { outline: none; border-color: rgba(255,201,61,0.5); }
.mem-greeting { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.mem-greeting-text { text-align: right; line-height: 1.2; }
.mem-greeting-hi {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}
.mem-greeting-hi em { font-style: normal; color: var(--gold); }
.mem-greeting-badge {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Page heading (used on inner pages) ── */
.mem-page-head { margin-bottom: 30px; }
.mem-page-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text);
  line-height: 1;
}
.mem-page-title em { font-style: normal; color: var(--gold); }
.mem-page-sub {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  margin-top: 14px;
  max-width: 680px;
}

/* Generic section header (title + see-all) */
.mem-sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.mem-sec-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
  line-height: 1;
}
.mem-sec-title em { font-style: normal; color: var(--gold); }
.mem-see-all {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.mem-see-all:hover { color: var(--gold); }

/* ════════════════════════════════════════════════════════════
   WELCOME VIDEO HERO (home)
   Two-column: text on the left, click-to-play MP4 on the right.
   The video is a native 16:9 panel; the yellow button vanishes on
   play so the frame is unobstructed for the 21-second intro.
════════════════════════════════════════════════════════════ */
.mem-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 40px;
  align-items: center;
  margin-bottom: 44px;
}
.mem-hero-text { padding: 4px 0; }
.mem-hero-eyebrow {
  display: block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.mem-hero-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 52px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  color: var(--text);
  line-height: 1.02;
  margin: 0;
  max-width: 460px;
}
.mem-hero-title em { font-style: normal; color: var(--gold); }

/* Video panel: locks the native 16:9 aspect and carries the card look. */
.mem-hero-video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 18px 60px rgba(0,0,0,0.45);
}
.mem-hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}
/* Soft radial vignette behind the play button so the yellow disc lifts
   off the poster image, then fades away once the video is playing. */
.mem-hero-video-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 55%);
  pointer-events: none;
  transition: opacity 0.35s;
}
.mem-hero.is-playing .mem-hero-video-wrap::after { opacity: 0; }

.mem-hero-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--gold);
  border: 0;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 34px rgba(0,0,0,0.45), 0 0 0 6px rgba(255,201,61,0.16);
  transition: transform 0.2s, box-shadow 0.2s;
}
.mem-hero-play:hover {
  transform: translate(-50%, -50%) scale(1.06);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 10px rgba(255,201,61,0.20);
}
.mem-hero-play svg { color: var(--black); margin-left: 4px; }
/* Once the member clicks play, hide the button so the video plays clean
   through to its natural end. It never reappears (no pause, no loop). */
.mem-hero.is-playing .mem-hero-play { display: none; }

/* ════════════════════════════════════════════════════════════
   VIDEO LIBRARY (home + videos page)
════════════════════════════════════════════════════════════ */
.mem-videos { margin-bottom: 44px; }
.mem-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.mem-chip {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}
.mem-chip:hover { color: var(--text); border-color: rgba(255,201,61,0.4); }
.mem-chip.is-active { color: var(--black); background: var(--gold); border-color: var(--gold); }

.mem-vid-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mem-vid-card { text-decoration: none; display: block; }
.mem-vid-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #17160f 0%, #0c0c0a 100%);
  margin-bottom: 12px;
  transition: border-color 0.2s;
}
.mem-vid-card:hover .mem-vid-thumb { border-color: rgba(255,201,61,0.5); }
.mem-vid-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 90% at 30% 25%, rgba(255,201,61,0.10), transparent 60%);
}
.mem-vid-thumb img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 1;
}
.mem-vid-duration {
  position: absolute; right: 10px; bottom: 10px; z-index: 2;
  font-family: var(--font-display);
  font-size: 11px; font-weight: 700; letter-spacing: 0.05em;
  color: var(--text);
  background: rgba(6,6,4,0.8);
  border-radius: 5px; padding: 3px 8px;
}
.mem-vid-playicon {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); z-index: 2;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,201,61,0.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s;
}
.mem-vid-card:hover .mem-vid-playicon { opacity: 1; }
.mem-vid-playicon svg { margin-left: 3px; color: var(--black); }
.mem-vid-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 10px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 6px;
}
.mem-vid-name {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--text); line-height: 1.2;
  transition: color 0.18s;
}
.mem-vid-card:hover .mem-vid-name { color: var(--gold); }
.mem-vid-hidden { display: none !important; }

/* ── Coming-soon placeholder cards (used while the real videos are in
      production; swap back to normal .mem-vid-card entries later). ── */
.mem-vid-soon { cursor: default; }
.mem-vid-soon .mem-vid-thumb {
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse 60% 70% at 50% 40%, rgba(255,201,61,0.08), transparent 70%),
    linear-gradient(135deg, #17160f 0%, #0c0c0a 100%);
}
.mem-vid-soon .mem-vid-thumb::after { background: none; }
.mem-vid-soon:hover .mem-vid-thumb { border-color: var(--border); }
.mem-vid-soon-badge {
  position: relative; z-index: 2;
  font-family: var(--font-display);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(255,201,61,0.55);
  border-radius: 999px;
  padding: 8px 18px;
  background: rgba(0,0,0,0.45);
}
.mem-vid-soon .mem-vid-name { color: var(--muted); }
.mem-vid-soon:hover .mem-vid-name { color: var(--muted); }

/* ── Curated YouTube picks. Small red badge on the thumb makes the
      "hosted on YouTube by the original creator" fact obvious at a glance,
      and the channel line reinforces attribution below the title. ── */
.mem-videos-curated { margin-top: 44px; }
.mem-page-head-sm { margin-bottom: 22px; }
.mem-page-title-sm { font-size: clamp(24px, 3vw, 32px); }
.mem-vid-yt-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-family: var(--font-display);
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: #ff0000;
  border-radius: 3px;
  padding: 3px 7px;
  line-height: 1;
}
.mem-vid-channel {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ── News aggregator (members/news/). Cards link out to publishers, so
      the source badge and "Read on X →" CTA make attribution unmissable. ── */
.mem-news-chips { margin-bottom: 22px; }
.mem-news { margin-bottom: 18px; }
.mem-news-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
}
.mem-news-item { display: block; }
.mem-news-card {
  display: flex; flex-direction: column; gap: 10px;
  height: 100%;
  padding: 18px 20px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none; color: inherit;
  transition: border-color 0.18s, transform 0.18s, background 0.18s;
}
.mem-news-card:hover {
  border-color: rgba(255,201,61,0.5);
  transform: translateY(-1px);
}
.mem-news-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: var(--font-display);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.mem-news-source {
  color: var(--gold);
  border: 1px solid rgba(255,201,61,0.55);
  border-radius: 999px;
  padding: 3px 10px;
  line-height: 1.4;
}
.mem-news-when { color: var(--muted); letter-spacing: 0.1em; }
.mem-news-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 19px; font-weight: 800;
  letter-spacing: 0.01em; line-height: 1.22;
  color: var(--text);
  transition: color 0.18s;
}
.mem-news-card:hover .mem-news-title { color: var(--gold); }
.mem-news-excerpt {
  margin: 0;
  font-size: 14px; color: var(--muted); line-height: 1.55;
}
.mem-news-cta {
  margin-top: auto;
  font-family: var(--font-display);
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.mem-news-foot {
  font-size: 12px; color: var(--muted); line-height: 1.55;
  margin: 22px 0 0; max-width: 780px;
}
.mem-news-empty-hit {
  font-size: 14px; color: var(--muted); margin: 20px 0;
}

/* ── Latest-headlines strip on the members home page. Compact 3-up grid
      that gives members a reason to come back between coaching syncs. ── */
.mem-news-strip { margin: 56px 0 48px; }
.mem-news-strip-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin-top: 6px;
}
.mem-news-strip .mem-news-card { padding: 14px 16px; gap: 8px; }
.mem-news-strip .mem-news-title { font-size: 16px; }
.mem-news-strip .mem-news-excerpt {
  font-size: 13px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Coming-soon notice strip that lives above the grid so members who
      close the modal still see the message + link to old videos. ── */
.mem-notice {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 18px 22px;
  margin-bottom: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
}
.mem-notice-text {
  flex: 1 1 320px; min-width: 0;
  font-size: 14px; color: var(--muted); line-height: 1.55;
}
.mem-notice-text strong { color: var(--text); font-weight: 700; }
.mem-notice a {
  color: var(--gold); text-decoration: underline; text-underline-offset: 3px;
}
.mem-notice .btn-outline { flex-shrink: 0; }

/* ── Coming-soon modal (auto-opens on the Videos page). Reuses the
      feature-dialog card look, just without a form. ── */
.mem-notice-dialog {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 32px 30px 28px;
  border-radius: 12px;
  max-width: 480px;
  width: calc(100vw - 32px);
}
.mem-notice-dialog::backdrop { background: rgba(0,0,0,0.75); }
.mem-notice-dialog h3 {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.03em;
  color: var(--gold); margin: 0 0 10px;
}
.mem-notice-dialog p {
  font-size: 14px; color: var(--text); line-height: 1.6;
  margin: 0 0 14px;
}
.mem-notice-dialog p.mem-notice-dialog-sub { color: var(--muted); font-size: 13px; }
.mem-notice-dialog-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 18px;
}
.mem-notice-dialog-actions .cancel {
  background: transparent; color: var(--muted);
  border: 1px solid var(--border);
  padding: 10px 16px; border-radius: 7px;
  font: inherit; cursor: pointer;
  font-family: var(--font-display);
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase;
}
.mem-notice-dialog-actions .cancel:hover { color: var(--text); }

/* View plan CTA (home) */
.mem-plan-cta {
  margin-top: 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.mem-plan-cta-text {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text);
}
.mem-plan-cta-text span {
  display: block; font-size: 13px; letter-spacing: 0.02em;
  color: var(--muted); text-transform: none; font-weight: 400; margin-top: 4px;
}

/* ════════════════════════════════════════════════════════════
   NEW MEMBER ESSENTIALS (home — PDF downloads)
════════════════════════════════════════════════════════════ */
.mem-pdfs { margin: 8px 0 44px; }
.mem-pdfs-intro {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 780px;
  margin: -4px 0 22px;
}
.mem-pdf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mem-pdf-card {
  display: flex;
  flex-direction: column;
  padding: 26px 26px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, transform 0.2s;
}
.mem-pdf-card:hover { border-color: rgba(255,201,61,0.45); transform: translateY(-3px); }
.mem-pdf-icon { color: var(--gold); opacity: 0.85; margin-bottom: 16px; line-height: 0; }
.mem-pdf-title {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text); line-height: 1.2;
  margin: 0 0 8px;
  transition: color 0.18s;
}
.mem-pdf-card:hover .mem-pdf-title { color: var(--gold); }
.mem-pdf-desc {
  font-size: 13px; color: var(--muted); line-height: 1.6;
  margin: 0 0 16px; flex: 1;
}
.mem-pdf-meta {
  margin-top: auto;
  font-family: var(--font-display);
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold);
}

/* ════════════════════════════════════════════════════════════
   FUEL CALCULATOR PROMO (videos page — mirrors pace-calculator)
════════════════════════════════════════════════════════════ */
.mem-fuel { margin: 8px 0 44px; }
.mem-fuel-card {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
}
.mem-fuel-media {
  position: relative;
  min-height: 320px;
  background: linear-gradient(135deg, #1a1810 0%, #0c0c0a 100%);
}
.mem-fuel-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.mem-fuel-body { padding: 48px 52px; align-self: center; }
.mem-fuel-eyebrow {
  font-family: var(--font-display);
  font-size: 11px; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 16px;
}
.mem-fuel-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 40px); font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.02em;
  color: var(--text); line-height: 1; margin-bottom: 16px;
}
.mem-fuel-text {
  font-size: 15px; color: var(--muted); line-height: 1.65;
  margin-bottom: 28px; max-width: 460px;
}

/* ════════════════════════════════════════════════════════════
   GUIDE / BLOG CARDS (guides page + home blog strip)
════════════════════════════════════════════════════════════ */
.mem-post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mem-post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}
.mem-post-card:hover { border-color: rgba(255,201,61,0.45); transform: translateY(-3px); }
.mem-post-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #17160f 0%, #0c0c0a 100%);
}
.mem-post-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.mem-post-inner { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.mem-post-tag {
  font-family: var(--font-display);
  font-size: 10px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 10px;
}
.mem-post-title {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--text); line-height: 1.2; margin-bottom: 8px;
  transition: color 0.18s;
}
.mem-post-card:hover .mem-post-title { color: var(--gold); }
.mem-post-date {
  font-size: 11px; color: rgba(136,136,128,0.75); letter-spacing: 0.04em; margin-bottom: 12px;
}
.mem-post-excerpt { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 18px; }
.mem-post-more {
  margin-top: auto;
  font-family: var(--font-display);
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold);
}

/* ════════════════════════════════════════════════════════════
   TRAINING PANEL (home)
════════════════════════════════════════════════════════════ */
.mem-training { margin-bottom: 44px; }
.mem-training-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 12px;
  padding: 40px 44px;
  display: grid; grid-template-columns: 1fr auto;
  gap: 28px 48px; align-items: center;
}
.mem-training-plan {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px); font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.02em;
  color: var(--text); line-height: 1; margin-bottom: 10px;
}
.mem-training-meta { font-size: 14px; color: var(--muted); margin-bottom: 26px; letter-spacing: 0.04em; }
.mem-progress-track { width: 100%; height: 2px; background: rgba(255,255,255,0.07); position: relative; margin-bottom: 8px; }
.mem-progress-fill { position: absolute; inset: 0 auto 0 0; background: var(--gold); width: 25%; }
.mem-progress-caption {
  font-family: var(--font-display);
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 30px;
}
.mem-training-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.mem-training-week { text-align: right; user-select: none; }
.mem-training-week-num {
  font-family: var(--font-display);
  font-size: clamp(72px, 9vw, 104px); font-weight: 800;
  color: rgba(255,201,61,0.10); line-height: 1; letter-spacing: -0.03em;
}
.mem-training-week-caption {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(136,136,128,0.45);
}

/* ════════════════════════════════════════════════════════════
   ASK YOUR COACH (home)
════════════════════════════════════════════════════════════ */
.mem-ask {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px 44px; margin-bottom: 44px;
  display: grid; grid-template-columns: 1fr auto;
  gap: 24px 48px; align-items: center;
}
.mem-ask-heading {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 38px); font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--text); line-height: 1; margin-bottom: 10px;
}
.mem-ask-heading em { font-style: normal; color: var(--gold); }
.mem-ask-body { font-size: 15px; color: var(--muted); line-height: 1.65; max-width: 540px; }

/* ════════════════════════════════════════════════════════════
   SUGGEST A FEATURE (home)
   Same card shape as .mem-ask so the two strips visually pair.
════════════════════════════════════════════════════════════ */
.mem-feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px 44px; margin-bottom: 44px;
  display: grid; grid-template-columns: 1fr auto;
  gap: 24px 48px; align-items: center;
}
.mem-feature-heading {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 38px); font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--text); line-height: 1; margin-bottom: 10px;
}
.mem-feature-heading em { font-style: normal; color: var(--gold); }
.mem-feature-body { font-size: 15px; color: var(--muted); line-height: 1.65; max-width: 540px; }

/* Feature-request modal */
.mem-feature-dialog {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 30px 28px;
  border-radius: 12px;
  max-width: 460px;
  width: calc(100vw - 32px);
}
.mem-feature-dialog::backdrop { background: rgba(0,0,0,0.75); }
.mem-feature-dialog h3 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--gold);
  margin: 0 0 6px;
}
.mem-feature-dialog-sub {
  font-size: 13px; color: var(--muted);
  margin: 0 0 20px; line-height: 1.5;
}
.mem-feature-dialog form { display: grid; gap: 12px; }
.mem-feature-dialog label {
  display: block;
  font-family: var(--font-display);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 4px;
}
.mem-feature-dialog input[type="text"],
.mem-feature-dialog input[type="email"],
.mem-feature-dialog textarea {
  width: 100%; box-sizing: border-box;
  padding: 10px 12px;
  background: var(--black);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: inherit; font-size: 14px;
}
.mem-feature-dialog textarea { min-height: 110px; resize: vertical; }
.mem-feature-honey { position: absolute; left: -9999px; width: 1px; height: 1px; }
.mem-feature-actions {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; margin-top: 6px;
}
.mem-feature-actions .cancel {
  background: transparent; color: var(--muted);
  border: 1px solid var(--border);
  padding: 10px 14px; border-radius: 6px;
  font: inherit; cursor: pointer;
}
.mem-feature-actions .cancel:hover { color: var(--text); }
.mem-feature-errors {
  background: rgba(200, 60, 60, 0.10);
  border: 1px solid rgba(200, 60, 60, 0.35);
  color: #f0c0c0;
  padding: 10px 12px; border-radius: 6px; font-size: 13px;
  margin-bottom: 12px;
}

/* ════════════════════════════════════════════════════════════
   DISCOUNTS — HERO ADVERTS
════════════════════════════════════════════════════════════ */
.mem-ads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 52px; }
.mem-ad {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 380px;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  background: linear-gradient(150deg, #17160f 0%, #0c0c0a 100%);
  transition: border-color 0.2s, transform 0.2s;
}
.mem-ad:hover { border-color: rgba(255,201,61,0.5); transform: translateY(-4px); }
.mem-ad-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.mem-ad::after {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(6,6,4,0.92) 0%, rgba(6,6,4,0.45) 50%, rgba(6,6,4,0.25) 100%);
}
.mem-ad-content { position: relative; z-index: 2; padding: 32px 30px; }
.mem-ad-brand {
  font-family: var(--font-display);
  font-size: 11px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 12px;
}
.mem-ad-head {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 25px); font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.02em;
  color: var(--text); line-height: 1.1; margin-bottom: 18px;
}
.mem-ad-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold);
}
.mem-ad-code {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  color: var(--black); background: var(--gold);
  border-radius: 5px; padding: 4px 10px; margin-bottom: 16px;
}

/* ── DISCOUNTS — PARTNER OFFERS GRID ── */
.mem-offers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.mem-offer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 30px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px 28px;
  align-items: center;
  text-decoration: none;
  transition: border-color 0.2s;
}
.mem-offer:hover { border-color: rgba(255,201,61,0.45); }
.mem-offer-brand {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text); margin-bottom: 6px;
}
.mem-offer-brand em { font-style: normal; color: var(--gold); }
.mem-offer-desc { font-size: 13px; color: var(--muted); line-height: 1.6; }
.mem-offer-right { text-align: right; }
.mem-offer-deal {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px); font-weight: 800;
  color: var(--gold); line-height: 1; letter-spacing: -0.01em; margin-bottom: 8px;
}
.mem-offer-code {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  color: var(--muted); border: 1px dashed rgba(255,201,61,0.4);
  border-radius: 5px; padding: 3px 10px;
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════ */
@media (max-width: 1180px) {
  .mem-vid-grid  { grid-template-columns: repeat(3, 1fr); }
  .mem-post-grid { grid-template-columns: repeat(2, 1fr); }
  .mem-ads       { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .mem-app { grid-template-columns: 1fr; }

  /* Rail becomes a horizontal scroll strip below the site header. Members
     kept missing that this WAS a menu, so we pin a "MENU >" label to the
     left edge and dress the links as tappable chips with a visible gold
     hairline scrollbar to hint at swipeability. */
  .mem-rail {
    position: static; border-right: none;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    display: flex; gap: 6px; overflow-x: auto; padding: 14px 16px 12px 12px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,201,61,0.55) transparent;
  }
  .mem-rail::-webkit-scrollbar { height: 4px; }
  .mem-rail::-webkit-scrollbar-track { background: transparent; }
  .mem-rail::-webkit-scrollbar-thumb {
    background: rgba(255,201,61,0.55);
    border-radius: 2px;
  }

  /* The label. It's a sticky flex item, so it stays put on the left edge
     while the chips slide underneath. The fading background on the right
     avoids a hard line where the pills disappear behind it. */
  .mem-rail::before {
    content: 'Menu \203A';
    position: sticky;
    left: 0;
    z-index: 3;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 0 14px 0 6px;
    margin: -14px 4px -12px -12px;
    background: linear-gradient(
      to right,
      var(--surface) 0,
      var(--surface) 68%,
      rgba(20, 20, 15, 0) 100%
    );
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    user-select: none;
  }

  .mem-rail-group { margin-bottom: 0; display: flex; gap: 6px; }
  .mem-rail-heading { display: none; }
  /* Slim footer already carries the escape link on mobile. */
  .mem-rail-back { display: none; }
  .mem-rail-link {
    white-space: nowrap;
    padding: 9px 14px;
    border: 1px solid var(--border);
    background: rgba(0,0,0,0.35);
    scroll-snap-align: start;
  }
  .mem-rail-link.is-active {
    border-color: var(--gold);
    background: var(--gold);
  }

  .mem-main { padding: 22px 20px 20px; }
  .mem-fuel-card { grid-template-columns: 1fr; }
  .mem-fuel-media { min-height: 220px; }
  .mem-offers { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .mem-vid-grid  { grid-template-columns: repeat(2, 1fr); }
  .mem-post-grid { grid-template-columns: 1fr; }
  .mem-pdf-grid  { grid-template-columns: repeat(2, 1fr); }
  .mem-news-list { grid-template-columns: 1fr; }
  .mem-news-strip-grid { grid-template-columns: 1fr; }
  .mem-training-panel { grid-template-columns: 1fr; padding: 30px 26px; gap: 0; }
  .mem-training-week { text-align: left; margin-top: 6px; }
  .mem-ask { grid-template-columns: 1fr; }
  .mem-feature { grid-template-columns: 1fr; padding: 32px 26px; }
  .mem-hero { grid-template-columns: 1fr; gap: 20px; }
  .mem-hero-text { text-align: center; padding: 4px 12px 0; }
  .mem-hero-title { margin-left: auto; margin-right: auto; }
  .mem-greeting { display: none; }
  .mem-offer { grid-template-columns: 1fr; }
  .mem-offer-right { text-align: left; }
}
@media (max-width: 440px) {
  .mem-vid-grid { grid-template-columns: 1fr; }
  .mem-pdf-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .mem-hero-play, .mem-vid-playicon, .mem-post-card, .mem-ad { transition: none; }
}

/* ════════════════════════════════════════════════════════════
   AUTH SCREENS (login / verify)
════════════════════════════════════════════════════════════ */
.mem-auth-wrap {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}
.mem-auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 44px 40px;
}
.mem-auth-eyebrow {
  font-family: var(--font-display);
  font-size: 11px; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
}
.mem-auth-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 42px); font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.02em;
  color: var(--text); line-height: 1; margin-bottom: 14px;
}
.mem-auth-title em { font-style: normal; color: var(--gold); }
.mem-auth-lead { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 26px; }
.mem-auth-msg {
  font-size: 13px; line-height: 1.55;
  border-radius: 8px; padding: 14px 16px; margin-bottom: 22px;
}
.mem-auth-msg.is-good { color: #cfe9c9; background: rgba(120,190,110,0.10); border: 1px solid rgba(120,190,110,0.35); }
.mem-auth-msg.is-bad  { color: #f0d9b0; background: rgba(255,201,61,0.08); border: 1px solid rgba(255,201,61,0.32); }
.mem-auth-form { display: flex; flex-direction: column; }
.mem-auth-label {
  font-family: var(--font-display);
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
  margin: 14px 0 8px;
}
.mem-auth-label span { color: rgba(136,136,128,0.7); letter-spacing: 0.06em; }
.mem-auth-input {
  width: 100%;
  background: var(--black);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 13px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
}
.mem-auth-input::placeholder { color: rgba(136,136,128,0.7); }
.mem-auth-input:focus { outline: none; border-color: rgba(255,201,61,0.55); }
.mem-auth-submit { margin-top: 24px; width: 100%; text-align: center; }
.mem-auth-foot { font-size: 12px; color: var(--muted); line-height: 1.6; margin-top: 22px; }
.mem-auth-foot a { color: var(--gold); }


/* ════════════════════════════════════════════════════════════
   Distance Guides rail (expandable nav item)
════════════════════════════════════════════════════════════ */
.mem-rail-sub { display: flex; flex-direction: column; }
.mem-rail-cbx { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.mem-rail-toggle { cursor: pointer; }
.mem-rail-chev { margin-left: auto; opacity: 0.6; transition: transform 0.2s; }
.mem-rail-cbx:checked ~ .mem-rail-toggle .mem-rail-chev { transform: rotate(180deg); }
.mem-rail-cbx:focus-visible ~ .mem-rail-toggle { outline: 2px solid var(--gold); outline-offset: 2px; }
.mem-rail-children { display: none; flex-direction: column; gap: 2px; margin: 2px 0 4px; }
.mem-rail-cbx:checked ~ .mem-rail-children { display: flex; }
.mem-rail-child {
  padding-top: 9px; padding-bottom: 9px; padding-left: 44px;
  font-size: 13px; letter-spacing: 0.1em; position: relative;
}
.mem-rail-child::before {
  content: ''; position: absolute; left: 26px; top: 50%;
  width: 5px; height: 5px; border-radius: 50%;
  background: currentColor; opacity: 0.4; transform: translateY(-50%);
}
@media (max-width: 980px) {
  .mem-rail-sub { flex-direction: row; align-items: center; }
  .mem-rail-toggle { display: none; }
  .mem-rail-children { display: flex !important; flex-direction: row; gap: 6px; margin: 0; }
  .mem-rail-child { padding: 9px 14px; font-size: 11px; }
  .mem-rail-child::before { display: none; }
}

@media (max-width: 980px) { .mem-rail-sub { display: contents; } }

/* ════════════════════════════════════════════════════════════
   RAIL — GOOGLE REVIEW CTA (bottom of the rail)
════════════════════════════════════════════════════════════ */
.mem-rail-review {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 26px 6px 0;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, transform 0.2s;
}
.mem-rail-review:hover {
  border-color: rgba(255,201,61,0.5);
  transform: translateY(-1px);
}
.mem-rail-review-g { flex-shrink: 0; }
.mem-rail-review-text { min-width: 0; }
.mem-rail-review-title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.2;
  margin: 0 0 4px;
}
.mem-rail-review-meta {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
  margin: 0;
  letter-spacing: 0.02em;
}
.mem-rail-review-stars {
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-right: 3px;
}
@media (max-width: 980px) {
  /* Rail becomes a horizontal scroll strip on mobile; hide the card
     to keep it clean. Consider adding a matching main-column CTA later. */
  .mem-rail-review { display: none; }
}

/* ════════════════════════════════════════════════════════════
   REVIEWS (members/reviews)
════════════════════════════════════════════════════════════ */
.mem-rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mem-rev-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}
.mem-rev-card:hover { border-color: rgba(255,201,61,0.45); transform: translateY(-3px); }
.mem-rev-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #17160f 0%, #0c0c0a 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
}
.mem-rev-media img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
}
.mem-rev-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.mem-rev-cat {
  font-family: var(--font-display);
  font-size: 10px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 10px;
}
.mem-rev-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.mem-rev-stars {
  --rev-rating: 0;
  display: inline-block;
  font-size: 15px;
  line-height: 1;
  font-family: Arial, sans-serif;
  letter-spacing: 2px;
}
.mem-rev-stars::before {
  content: "\2605\2605\2605\2605\2605";
  background: linear-gradient(90deg,
      var(--gold) calc(var(--rev-rating) / 5 * 100%),
      rgba(136,136,128,0.35) calc(var(--rev-rating) / 5 * 100%));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.mem-rev-score { font-size: 12px; font-weight: 700; color: var(--muted); }
.mem-rev-title {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--text); line-height: 1.2; margin-bottom: 9px;
}
.mem-rev-excerpt { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 20px; }
.mem-rev-actions {
  margin-top: auto;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.mem-rev-read {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 700; letter-spacing: 0.10em;
  text-transform: uppercase; color: var(--muted); text-decoration: none;
  transition: color 0.18s;
}
.mem-rev-read:hover { color: var(--text); }
.mem-rev-buy {
  margin-left: auto;
  display: inline-block;
  background: var(--gold); color: #14140f;
  font-family: var(--font-display);
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; text-decoration: none;
  padding: 9px 16px; border-radius: 7px;
  transition: filter 0.18s, transform 0.18s;
}
.mem-rev-buy:hover { filter: brightness(1.08); transform: translateY(-1px); }
.mem-rev-disclosure {
  margin-top: 30px;
  font-size: 12px; color: rgba(136,136,128,0.8); line-height: 1.6;
  max-width: 720px;
}
@media (max-width: 1100px) { .mem-rev-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px)  { .mem-rev-grid { grid-template-columns: 1fr; } }

/* Hide cookie/consent banner + modal on members pages */
#jmc-consent-banner,
#jmc-cookie-modal { display: none !important; }

/* Become-a-partner note on the discounts page */
.mem-partner-cta {
  margin: 40px 0 8px;
  padding: 22px 26px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
}
.mem-partner-cta p {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  max-width: 820px;
}
.mem-partner-cta a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mem-partner-cta a:hover { filter: brightness(1.1); }

/* ════════════════════════════════════════════════════════════
   SLIM MEMBERS FOOTER
   Replaces the big multi-column site footer inside /members/.
   Kept tiny so it doesn't compete with the app's content.
════════════════════════════════════════════════════════════ */
.mem-footer {
  border-top: 1px solid var(--border);
  padding: 22px 40px;
  text-align: center;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.mem-footer p { margin: 0; }
.mem-footer a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,201,61,0.35);
  transition: color 0.18s, border-color 0.18s;
}
.mem-footer a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
@media (max-width: 760px) {
  .mem-footer { padding: 20px 18px; font-size: 12px; }
}

/* ── Topbar search dropdown ──────────────────────────────────────────── */
.mem-search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.55);
  z-index: 80;
  max-height: 60vh;
  overflow-y: auto;
}
.mem-search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.35;
}
.mem-search-item:hover,
.mem-search-item.is-active {
  background: var(--gold);
  color: var(--black);
}
.mem-search-item-t { flex: 1 1 auto; }
.mem-search-item-k {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
}
.mem-search-item:hover .mem-search-item-k,
.mem-search-item.is-active .mem-search-item-k {
  color: var(--black);
  background: rgba(10,10,10,0.12);
  border-color: rgba(10,10,10,0.2);
}
.mem-search-empty {
  padding: 14px 16px;
  color: var(--muted);
  font-size: 13px;
  font-family: var(--font-body);
}

/* ── What's New banner ────────────────────────────────────────────────── */
.mem-whats-new {
  background: linear-gradient(90deg, rgba(255,201,61,0.14), rgba(255,201,61,0.04));
  border-bottom: 1px solid rgba(255,201,61,0.35);
}
.mem-whats-new-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.4;
}
.mem-whats-new-pill {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--gold);
  border-radius: 999px;
  padding: 4px 10px;
}
.mem-whats-new-text { flex: 1 1 auto; margin: 0; }
.mem-whats-new-text a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mem-whats-new-text a:hover { filter: brightness(1.15); }
.mem-whats-new-close {
  flex: 0 0 auto;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  padding: 4px 8px;
  cursor: pointer;
  transition: color 0.18s;
}
.mem-whats-new-close:hover { color: var(--gold); }
@media (max-width: 760px) {
  .mem-whats-new-inner { padding: 10px 16px; font-size: 12px; gap: 10px; }
  .mem-whats-new-pill  { font-size: 9px; padding: 3px 8px; letter-spacing: 0.16em; }
}

