/* ============================================================================
   menu.css  —  Cliff Radar Capital slide-out navigation
   Shared by every public page (marketing site + public report builds).
   Self-contained and namespaced (.crcnav-*) so it never collides with
   styles.css or any inline report styles. Behaviour lives in menu.js.
   ============================================================================ */

/* The header trigger button (sits next to Subscribe in .mh-nav) */
.crcnav-btn{display:inline-flex;align-items:center;gap:9px;background:rgba(125,212,154,.10);
  border:1px solid #7dd49a;border-radius:3px;padding:8px 14px;color:#fff;cursor:pointer;
  font-family:'IBM Plex Mono',monospace;font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;
  line-height:1;transition:background .15s,color .15s}
.crcnav-btn:hover{background:rgba(125,212,154,.20)}
.crcnav-btn .crcnav-ic{font-size:14px;line-height:1;transform:translateY(-1px)}

/* Dim overlay behind the drawer */
.crcnav-scrim{position:fixed;inset:0;background:rgba(6,12,20,.55);backdrop-filter:blur(2px);
  -webkit-backdrop-filter:blur(2px);opacity:0;visibility:hidden;transition:opacity .22s ease;z-index:9998}
.crcnav-scrim.open{opacity:1;visibility:visible}

/* The slide-out panel */
.crcnav-drawer{position:fixed;top:0;right:0;height:100%;width:400px;max-width:92vw;z-index:9999;
  background:linear-gradient(180deg,#0e1c2f 0%,#132743 100%);color:#e8eef7;
  border-left:1px solid rgba(125,212,154,.28);box-shadow:-24px 0 60px rgba(0,0,0,.45);
  display:flex;flex-direction:column;overflow:hidden;
  transform:translateX(100%);transition:transform .26s cubic-bezier(.4,0,.2,1)}
.crcnav-drawer.open{transform:translateX(0)}

.crcnav-top{display:flex;align-items:center;justify-content:space-between;
  padding:20px 24px 14px;border-bottom:1px solid rgba(255,255,255,.09)}
.crcnav-k{font-family:'IBM Plex Mono',monospace;font-size:10px;letter-spacing:.28em;
  text-transform:uppercase;color:#9fb2c9}
.crcnav-close{background:none;border:0;color:#9fb2c9;font-size:22px;line-height:1;cursor:pointer;padding:2px 6px}
.crcnav-close:hover{color:#fff}

.crcnav-scroll{overflow-y:auto;padding:8px 0 4px}
/* 10px vertical (was 13px, slim-down 2026-08-22): with the tier accordions
   gone the drawer aims to fit one phone screen; 3px × 13 rows bought most of
   that back without touching type sizes. Tap targets stay ≥40px. */
.crcnav-item{display:block;text-decoration:none;color:#e8eef7;padding:10px 24px;
  border-left:2px solid transparent;transition:background .13s,border-color .13s}
.crcnav-item .crcnav-nm{font-family:'IBM Plex Mono',monospace;font-size:12px;letter-spacing:.1em;text-transform:uppercase}
.crcnav-item .crcnav-sub{font-family:'IBM Plex Serif',serif;font-style:italic;font-size:12.5px;color:#93a4ba;margin-top:3px}
.crcnav-item:hover{background:rgba(125,212,154,.10);border-left-color:#7dd49a}
.crcnav-item:hover .crcnav-sub{color:#b7c6d8}
.crcnav-item.active{border-left-color:#7dd49a;background:rgba(125,212,154,.06)}
.crcnav-item.active .crcnav-nm{color:#fff}

/* "coming soon" placeholder styling (applied to items with soon:true) */
.crcnav-item.soon{opacity:.5;pointer-events:none}
.crcnav-pill{font-family:'IBM Plex Mono',monospace;font-size:8px;letter-spacing:.1em;
  background:rgba(125,212,154,.18);color:#7dd49a;padding:2px 6px;border-radius:2px;margin-left:8px;
  text-transform:uppercase;vertical-align:middle}

.crcnav-foot{margin-top:auto;padding:16px 24px 22px;border-top:1px solid rgba(255,255,255,.09)}
.crcnav-cta{display:block;text-align:center;text-decoration:none;background:#7dd49a;color:#0e1c2f;
  font-family:'IBM Plex Mono',monospace;font-size:11px;letter-spacing:.14em;text-transform:uppercase;
  font-weight:600;padding:13px;border-radius:2px}
.crcnav-cta:hover{filter:brightness(1.05)}

/* member entrance (2026-08-08): green name on the Today's Brief item, and a
   secondary sign-in button under Subscribe in the drawer footer */
.crcnav-item.member .crcnav-nm{color:#7dd49a}
.crcnav-signin{display:block;text-align:center;text-decoration:none;margin-top:10px;color:#7dd49a;
  border:1px solid rgba(125,212,154,.45);font-family:'IBM Plex Mono',monospace;font-size:11px;
  letter-spacing:.14em;text-transform:uppercase;font-weight:600;padding:12px;border-radius:2px}
.crcnav-signin:hover{background:rgba(125,212,154,.12)}

/* lock page scroll while the drawer is open */
body.crcnav-lock{overflow:hidden}

/* ════════════════════════════════════════════════════════════════════════════
   TIERED MENU (2026-08-14)
   The flat list is now blocks: pinned member links, two collapsible tier
   groups, and a titled free section. Built to absorb 5–10 new products over
   the next 60 days without the drawer becoming a scroll of undifferentiated
   links — a reader should be able to tell what costs what at a glance.
   ════════════════════════════════════════════════════════════════════════════ */

/* pinned member links sit above everything, on a slightly lifted ground */
.crcnav-pinned{padding:6px 0 10px;border-bottom:1px solid rgba(255,255,255,.09);
  background:rgba(125,212,154,.035)}

/* ── tier group ───────────────────────────────────────────────────────────── */
.crcnav-tier{border-bottom:1px solid rgba(255,255,255,.09)}
.crcnav-tier-h{display:block;width:100%;text-align:left;background:none;border:0;cursor:pointer;
  padding:15px 24px 13px;color:#e8eef7;font:inherit;transition:background .13s}
.crcnav-tier-h:hover{background:rgba(125,212,154,.07)}
.crcnav-tier-h:focus-visible{outline:2px solid #7dd49a;outline-offset:-2px}
.crcnav-tier-top{display:flex;align-items:baseline;gap:10px}
.crcnav-tier-nm{font-family:'IBM Plex Mono',monospace;font-size:13px;font-weight:600;
  letter-spacing:.16em;text-transform:uppercase;color:#7dd49a}
.crcnav-tier-pr{font-family:'IBM Plex Mono',monospace;font-size:10.5px;letter-spacing:.08em;
  color:#8fa3ba;white-space:nowrap}
.crcnav-tier-note{display:block;font-family:'IBM Plex Serif',serif;font-style:italic;
  font-size:12.5px;color:#93a4ba;margin-top:4px;padding-right:26px}
.crcnav-tier-count{display:block;font-family:'IBM Plex Mono',monospace;font-size:9px;
  letter-spacing:.16em;text-transform:uppercase;color:#6f8299;margin-top:6px}

/* caret pinned to the right of the title row; rotates when the group opens */
.crcnav-caret{margin-left:auto;width:8px;height:8px;flex:0 0 auto;align-self:center;
  border-right:1.5px solid #7dd49a;border-bottom:1.5px solid #7dd49a;
  transform:rotate(45deg) translate(-2px,-2px);transition:transform .22s ease}
.crcnav-tier.open .crcnav-caret{transform:rotate(-135deg) translate(-2px,-2px)}

.crcnav-tier-body{height:0;overflow:hidden;transition:height .24s cubic-bezier(.4,0,.2,1)}
.crcnav-tier-body > .crcnav-item{padding-left:24px;
  border-left:2px solid transparent;background:rgba(0,0,0,.13)}
.crcnav-tier-body > a.crcnav-item:hover{background:rgba(125,212,154,.10)}

/* inclusion line — a benefit with no page of its own. Deliberately quieter
   than a link, and not clickable, so nobody taps it expecting to go somewhere. */
.crcnav-incl{cursor:default}
.crcnav-incl .crcnav-nm{color:#b7c6d8;font-weight:400;display:flex;align-items:baseline;gap:8px}
.crcnav-incl .crcnav-sub{color:#7f92a8}
.crcnav-tick{color:#7dd49a;font-size:11px;line-height:1;flex:0 0 auto}

/* ── free section ─────────────────────────────────────────────────────────── */
.crcnav-sect-h{font-family:'IBM Plex Mono',monospace;font-size:9.5px;letter-spacing:.24em;
  text-transform:uppercase;color:#6f8299;padding:12px 24px 4px}

/* When the drawer gets long, keep the footer CTA reachable without a hunt. */
.crcnav-scroll{-webkit-overflow-scrolling:touch}
@media(max-height:640px){
  .crcnav-tier-h{padding:12px 24px 10px}
  .crcnav-tier-note{display:none}
}

/* Honour reduced-motion: groups still open and close, just instantly. */
@media(prefers-reduced-motion:reduce){
  .crcnav-tier-body{transition:none}
  .crcnav-caret{transition:none}
}

/* Tighter rhythm inside a tier body than a top-level link: these are a list of
   what you get, not eight separate destinations, and the drawer has to stay
   one screen tall as products are added. */
.crcnav-tier-body > .crcnav-item{padding-top:10px;padding-bottom:10px}
.crcnav-tier-body > .crcnav-item .crcnav-sub{margin-top:2px}
