/* FFA ONE PAGE v1.0 — b0823a, 2026-08-23.
   Her ruling: one page, one story, one order, everywhere. The order and message
   are universal; only the compression is phone/tablet-sized (≤1024px).
   Desktop keeps its generous everything-visible presentation. */

/* ---------- universal: one locker pitch, not two ---------- */
#club-gift { display: none !important; }

/* ---------- universal: the value trio under the book title ---------- */
#ffmValueTrio { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 14px 12px 6px; }
#ffmValueTrio span {
  background: #fffdf6; border: 1.5px solid #a8842a; color: #a8842a;
  border-radius: 18px; padding: 7px 15px; font: 700 12px -apple-system, sans-serif;
  letter-spacing: .08em; text-transform: uppercase;
}

/* ---------- universal: the aerial of Whispering Pines ---------- */
#ffmAerial { display: block; margin: 14px auto 6px; width: min(560px, 92%); }
#ffmAerial img { width: 100%; border-radius: 18px; border: 2px solid #cfe0bd;
                 box-shadow: 0 6px 18px rgba(47,122,60,.18); display: block; }
#ffmAerial figcaption { text-align: center; font: italic 13px Georgia, serif;
                        color: #6f8f4e; margin-top: 6px; }

/* ================= phone & tablet compression (≤1024px) ================= */
@media (max-width: 1024px) {

  /* sticky buy door */
  #ffmBuyBar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    background: #24612e; color: #fff; padding: 13px 16px calc(13px + env(safe-area-inset-bottom));
    font-family: Georgia, serif; font-size: 17px; font-weight: bold;
    box-shadow: 0 -3px 14px rgba(0,0,0,.25); text-decoration: none;
    transform: translateY(0); transition: transform .25s ease;
  }
  #ffmBuyBar.ffm-hidden, body.ffm-menu-open #ffmBuyBar { transform: translateY(110%); }
  #ffmBuyBar .ffm-price { font-weight: normal; font-style: italic; opacity: .85; font-size: 14px; }
  body { padding-bottom: 64px; }

  /* compact song hero, readable lyric tape */
  #top .player-card img, #top .player-art { max-height: 190px; object-fit: cover; }
  #top .player-cta {
    font-size: 16px !important; padding: 16px 22px !important;
    font-family: Georgia, 'Times New Roman', serif !important;
    display: flex !important; align-items: center; gap: 16px; text-align: left;
  }
  #top .player-cta-ico {
    flex: 0 0 auto; width: 54px !important; height: 54px !important;
    font-size: 20px !important; align-self: flex-start; margin-top: 4px;
  }
  #top .player-cta-txt {
    font-size: 17px; line-height: 1.6; font-family: Georgia, 'Times New Roman', serif;
    letter-spacing: .01em; text-align: left;
  }
  #top .lh-crown { padding: 8px 0 10px; }
  #top { padding-top: 8px; padding-bottom: 8px; }
  #top .lyr-wrap { max-height: 110px; overflow: hidden; }
  #top .lyr-tape { font-size: 72% !important; animation-duration: 1290s !important; }

  /* bundles: every card owns its button, ribbons get air */
  #get-the-book .bundle {
    margin-top: 30px !important; padding-top: 18px !important;
    border: 1.5px solid #e3dcc6 !important; border-radius: 18px !important;
    background: #fffdf6;
  }
  #get-the-book .bundle-ribbon {
    position: static !important; display: block !important; width: fit-content;
    margin: 0 auto 12px !important; text-align: center;
    transform: none !important; left: auto !important; right: auto !important;
    box-shadow: none !important;
  }
  #get-the-book .bundle-quote { margin-top: 6px !important; }
  #get-the-book .bundle .btn.btn-green {
    display: block !important; width: fit-content; min-width: 62%;
    margin: 16px auto 18px !important; text-align: center;
  }
  #navLinks .btn-feedback { display: block !important; margin: 0 18px 24px !important; }

  /* the Clubhouse section in color */
  #ffclub { background: #eef3e4 !important; }

  /* explore tiles: 2×2 grid */
  #explore .ex-grid { display: grid !important; grid-template-columns: 1fr 1fr !important;
                      gap: 10px !important; }
  #explore .ex-tile { padding: 14px 12px !important; }
  #explore .ex-sub { display: none !important; }
  #explore .ex-title { font-size: 17px !important; line-height: 1.25 !important; }
  #reviews { margin-bottom: 0 !important; padding-bottom: 10px !important; }
  #explore { padding-top: 14px !important; }

  /* capped sections with See-more doors */
  .ffm-capped { position: relative; max-height: 72vh; overflow: hidden; }
  .ffm-capped::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 110px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), var(--ffm-fade, #ffffff));
    pointer-events: none;
  }
  .ffm-open { max-height: none !important; }
  .ffm-open::after { display: none; }
  .ffm-more {
    display: block; margin: 6px auto 26px; padding: 10px 26px;
    background: #fffdf6; color: #24612e; border: 1.5px solid #24612e;
    border-radius: 24px; font-family: Georgia, serif; font-size: 15px;
    font-weight: bold; cursor: pointer;
  }

  /* no side-scroll anywhere */
  #peek .ffm-swipe { display: block !important; }

  /* the menu: the same seven doors the desktop shows */
  #navLinks a.nav-more { display: none !important; }
  #navLinks { overflow-y: auto !important; max-height: calc(100dvh - 84px) !important;
              -webkit-overflow-scrolling: touch; }
  #navLinks a { text-align: left !important; line-height: 1.25 !important;
                padding-top: 9px !important; padding-bottom: 9px !important; }
  #navLinks a.btn, #navLinks a.btn-locker {
    display: block !important; margin: 10px 18px !important; text-align: center !important;
  }
  /* her half-and-half row: the two live side by side under Order Now */
  .ffm-pill-row {
    display: flex !important; gap: 10px; align-items: stretch !important;
    margin: 10px 18px 22px !important;
  }
  /* the labels must live INSIDE their pills: the site's pills are nowrap at 15px,
     which overflowed a half-width box. Smaller type, wrapping allowed, tighter gap. */
  #navLinks .ffm-pill-row > * {
    flex: 0 0 calc(50% - 5px) !important; width: calc(50% - 5px) !important;
    max-width: calc(50% - 5px) !important; box-sizing: border-box !important;
    min-height: 50px !important; height: 50px !important;
    align-self: stretch !important; min-width: 0; margin: 0 !important;
    display: flex !important; align-items: center; justify-content: center;
    gap: 6px !important; padding: 11px 8px !important;
    font-size: 12px !important; line-height: 1.1 !important;
    white-space: nowrap !important; text-align: center !important;
    border-radius: 999px !important;
  }
  #navLinks .ffm-pill-row .locker-ball { width: 15px !important; height: 15px !important; }
  #navLinks a.btn-locker { margin-bottom: 22px !important; }

  /* HER ORDER 2026-08-24 — the My Locker Room pill was drawn as a block, which
     collapsed its golf-ball icon into a sliver (the "vertical bar" on the M) and
     left the border unevenly rounded. A flex row restores the ball and the pill. */
  #navLinks a.btn-locker {
    display: flex !important; align-items: center; justify-content: center;
    gap: 9px; padding: 12px 18px !important;
    border: 2px solid #2E7D32 !important; border-radius: 999px !important;
  }
  #navLinks a.btn-locker .locker-ball {
    display: inline-block !important; flex: 0 0 auto; width: 20px; height: 20px;
  }
}

/* universal: sign-up gifts headline in bigger letters (her order) */
.ffj-starter > b { font-size: 19px; }

/* desktop: the band photo is a square at least as tall as the song button (her order) */
@media (min-width: 1025px) {
  #top .player-card img, #top .player-art {
    width: 200px; height: 200px; aspect-ratio: 1 / 1; object-fit: cover;
    align-self: center; border-radius: 14px;
  }
}

/* iPad tier: same flow, more air */
@media (min-width: 701px) and (max-width: 1024px) {
  #ffmValueTrio span { font-size: 14px; padding: 9px 20px; }
  #top .player-card img, #top .player-art { max-height: 260px; }
  .ffm-capped { max-height: 48vh; }
}

/* ============================================================================
   THE MEMBERS' DOOR — her order 2026-08-24, after opening the site in a fresh
   incognito window and being asked to sign up all over again:
   "There has to be something in here at the top: if you are a member, enter
    your email for your magic link. That should be at the very top and in nice
    and big bold letters in a square of some kind, pulsating."
   It sits above everything else on the sign-up card, because a member who is
   already a member should never have to read the invitation again.
   ========================================================================== */
.ffm-magic {
  border: 2.5px solid #a8842a; border-radius: 14px;
  background: linear-gradient(#fffdf3, #fdf6e0);
  padding: 16px 16px 14px; margin: 0 0 18px; text-align: center;
  animation: ffmMagicPulse 2.4s ease-in-out infinite;
}
@keyframes ffmMagicPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(168,132,42,.42); border-color: #a8842a; }
  50%      { box-shadow: 0 0 0 9px rgba(168,132,42,0); border-color: #d8b45a; }
}
@media (prefers-reduced-motion: reduce) { .ffm-magic { animation: none; } }
.ffm-magic-h {
  font: bold 19px Georgia, 'Times New Roman', serif; color: #24612e;
  margin: 0 0 4px; line-height: 1.25;
}
.ffm-magic-sub {
  font: italic 13px Georgia, serif; color: #8a8272; margin: 0 0 11px;
}
.ffm-magic-row { display: flex; gap: 8px; }
.ffm-magic-row input {
  flex: 1; min-width: 0; box-sizing: border-box;
  border: 1.5px solid #d9cfa8; border-radius: 10px;
  padding: 12px; font: 400 16px -apple-system, sans-serif; background: #fff;
}
.ffm-magic-row button {
  background: #2f7a3c; color: #fff; border: none; border-radius: 10px;
  padding: 12px 18px; font: 700 14px -apple-system, sans-serif;
  cursor: pointer; white-space: nowrap;
}
.ffm-magic-row button:disabled { opacity: .65; cursor: default; }
.ffm-magic-said {
  margin: 10px 0 0; font: 500 14px Georgia, serif; color: #24612e; line-height: 1.5;
}
.ffm-magic-or {
  margin: 16px 0 2px; text-align: center; font: italic 13px Georgia, serif; color: #8a8272;
}
@media (max-width: 420px) {
  .ffm-magic-row { flex-direction: column; }
  .ffm-magic-h { font-size: 17.5px; }
}
