/* =============================================================
   portal.css: the Member Login menu (desktop and phone drawer)
   and the /portal sign-in page. This is the file to ship.
   site-shell.css is the mockup-only copy of the live header,
   drawer and footer. Pixel, 2026-10-12.
   ============================================================= */

/* ---------- Desktop: Member Login opens a small menu ----------
   Same quiet look as today's link (thin divider, 0.78 opacity),
   plus a chevron. It's a disclosure button: click or Enter opens
   it, Esc or a click outside closes it. Not a hover menu, so it
   works the same on touch screens and tablets. */
.wf-nav ul li.member-login { position: relative; margin-left: auto; }
.ml-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 0 4px 14px; border: 0; border-left: 1px solid rgba(28,25,28,.18); background: transparent; font: 500 14px 'DM Sans', sans-serif; color: var(--ink); opacity: .78; cursor: pointer; line-height: 1.2; }
.ml-btn svg { width: 12px; height: 12px; transition: transform .15s; }
.ml-btn:hover, .ml-btn:focus-visible, .ml-btn[aria-expanded="true"] { opacity: 1; }
.ml-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.ml-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 4px; }
.ml-menu { position: absolute; right: -8px; top: calc(100% + 16px); width: 344px; padding: 8px; background: var(--paper); border: 1.8px solid var(--ink); border-radius: 18px; box-shadow: 5px 6px 0 rgba(28,25,28,.2); z-index: 600; }
.ml-menu[hidden] { display: none; }
.ml-menu::before { content: ''; position: absolute; top: -8px; right: 30px; width: 14px; height: 14px; background: var(--paper); border-left: 1.8px solid var(--ink); border-top: 1.8px solid var(--ink); transform: rotate(45deg); }
.wf-nav ul .ml-menu a.ml-item { display: grid; grid-template-columns: 40px 1fr 16px; gap: 12px; align-items: center; padding: 10px 10px; min-height: 60px; border-radius: 12px; text-decoration: none; color: var(--ink); border: 0; opacity: 1; }
.ml-item:hover, .ml-item:focus-visible { background: var(--cream); outline: none; }
.ml-item i { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; }
.ml-item i svg { width: 18px; height: 18px; }
.ml-item i.crm { background: var(--paper-2); }
.ml-item i.portal { background: var(--yellow); }
.ml-item b { display: block; font-size: 15px; font-weight: 700; line-height: 1.2; }
.ml-item small { display: block; font-size: 12.5px; font-weight: 500; color: var(--ink-3); margin-top: 2px; }
.ml-item > svg { width: 16px; height: 16px; color: var(--ink-3); }
.ml-item + .ml-item { margin-top: 2px; }

/* ---------- Phone drawer: the two links sit under a small label ----------
   No extra tap to expand. The group keeps today's quiet look
   below the Join button. */
.ml-group { margin-top: 14px; padding-top: 10px; border-top: 1px solid rgba(28,25,28,.12); }
.ml-group .lbl { margin: 0; padding: 6px 8px 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.mobile-drawer .ml-group a { display: grid; grid-template-columns: 36px 1fr 16px; gap: 12px; align-items: center; min-height: 58px; padding: 8px; font-size: 16px; font-weight: 600; border-bottom: 1px solid rgba(28,25,28,.08); }
.mobile-drawer .ml-group a:last-child { border-bottom: none; }
.ml-group a i { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; }
.ml-group a i svg { width: 16px; height: 16px; }
.ml-group a i.crm { background: var(--paper-2); }
.ml-group a i.portal { background: var(--yellow); }
.ml-group a small { display: block; font-size: 12.5px; font-weight: 500; color: var(--ink-3); margin-top: 1px; }
.ml-group a > svg { width: 15px; height: 15px; color: var(--ink-3); }

/* ---------- /portal sign-in (the Reports sign-in look) ---------- */
.pt { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; }
.pt-left { position: relative; overflow: hidden; isolation: isolate; background: var(--paper-2); border-right: 1.5px solid var(--ink); padding: 56px; display: flex; flex-direction: column; justify-content: center; }
.pt-left .shape { position: absolute; border-radius: 50%; z-index: -1; }
.pt-back { position: absolute; top: 28px; left: 56px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: 4px; }
.pt-back svg { width: 16px; height: 16px; }
.pt-left img { width: 72px; height: 72px; border-radius: 50%; border: 1.5px solid var(--ink); }
.pt-left h1 { font-family: 'Fraunces', serif; font-weight: 900; font-size: clamp(56px, 6.6vw, 92px); line-height: .92; letter-spacing: -.025em; margin: 26px 0 14px; }
.pt-left p { font-size: 19px; color: var(--ink-2); margin: 0; max-width: 30ch; }
.pt-tools { display: flex; gap: 10px; margin-top: 30px; flex-wrap: wrap; }
.pt-tools span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--paper); font-size: 14px; font-weight: 600; }
.pt-tools span i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--ink); }
.pt-right { display: grid; place-items: center; padding: 40px; }
.pt-card { width: 400px; max-width: 100%; border: 1.8px solid var(--ink); border-radius: 22px; padding: 30px 28px 24px; background: var(--paper); box-shadow: var(--shadow-paper-lg); }
.pt-card h2 { font-family: 'Fraunces', serif; font-weight: 900; font-size: 28px; margin-bottom: 18px; }
.pt-card .w-btn { width: 100%; }
.pt-card .w-lock { margin-top: 18px; }

@media (max-width: 767px) {
  .pt { grid-template-columns: 1fr; min-height: 0; }
  .pt-left { border-right: 0; border-bottom: 1.5px solid var(--ink); padding: 76px 20px 30px; }
  /* smaller shapes, kept to the top right so they never sit behind the text (same as the Reports phone sign-in) */
  .pt-left .shape:nth-of-type(1) { width: 190px !important; height: 190px !important; right: -90px !important; top: -80px !important; }
  .pt-left .shape:nth-of-type(2) { width: 54px !important; height: 54px !important; right: 112px !important; top: 26px !important; }
  .pt-left .shape:nth-of-type(3) { width: 30px !important; height: 30px !important; right: 40px !important; top: 92px !important; }
  .pt-left .shape:nth-of-type(4) { display: none; }
  .pt-back { top: 22px; left: 20px; }
  .pt-left img { width: 56px; height: 56px; }
  .pt-left h1 { font-size: 44px !important; margin: 18px 0 10px; }
  .pt-left p { font-size: 17px; }
  .pt-tools { margin-top: 20px; }
  .pt-right { padding: 24px 18px 40px; }
  .pt-card { width: 100%; padding: 24px 20px 20px; box-shadow: var(--shadow-paper); }
}
