/* The member dashboard in glass (2026-11-18): /account and /account/email.
   Linked by layout.php after account-ui.css (the shared member layout, base
   theme) and only restyles it. Every colour and face comes from this theme's
   own custom properties (style.css :root and the pill tokens), so a palette
   change there carries this page with it. Siblings: member-help.js (the "i"
   notes), account.php, account-email.php.

   Glass: a light frosted card over a soft wash of the theme's cream and blue,
   hairline rim, inner top highlight, the theme's own layered shadow. Text sits
   on a near-opaque surface (ink 12:1, slate 6.5:1 measured), so the blur never
   reaches the words. Solid cards where backdrop-filter is missing or the
   visitor asks for less transparency.

   Motion: transform and opacity only, 150-280ms, nothing pinned to scroll.
   Content is visible with no script (motion.css fails visible; the notes print
   inline until member-help.js marks the page). */

.member,.acct-nav+.acct-sec{
  --mg-white:var(--pill-on-ink,#fff);
  --mg-surface:color-mix(in srgb,var(--mg-white) 74%,transparent);
  --mg-surface-solid:var(--mg-white);
  --mg-rim:color-mix(in srgb,var(--line) 80%,var(--mg-white));
  --mg-hi:inset 0 1px 0 color-mix(in srgb,var(--mg-white) 85%,transparent);
  --mg-field:color-mix(in srgb,var(--paper) 82%,transparent);
  --mg-radius:var(--r-lg,20px);
  --mg-ease:cubic-bezier(.23,1,.32,1);
}

/* the wash the glass sits on: two broad, faint pools of the theme's own cream
   and blue, behind everything, scrolling with the page (never fixed: iOS) */
.member,.acct-sec.em{position:relative;isolation:isolate}
.member::before,.acct-sec.em::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:
    radial-gradient(70% 45% at 8% 0%,var(--cream) 0%,transparent 70%),
    radial-gradient(55% 40% at 100% 38%,color-mix(in srgb,var(--rose) 11%,transparent) 0%,transparent 72%),
    radial-gradient(60% 40% at 0% 78%,color-mix(in srgb,var(--rose) 8%,transparent) 0%,transparent 70%)}

/* ── the cards ──────────────────────────────────────────────────────────── */
.member .intake.acct,.member .mempty,.member .acct-searches .ss-row,.acct-sec.em .em-form{
  background:var(--mg-surface);
  border:1px solid var(--mg-rim);
  border-radius:var(--mg-radius);
  box-shadow:var(--mg-hi),var(--shadow-1);
  -webkit-backdrop-filter:blur(18px) saturate(1.15);backdrop-filter:blur(18px) saturate(1.15)}
.member .acct-searches .ss-row{border-radius:var(--r-md,14px)}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .member .intake.acct,.member .mempty,.member .acct-searches .ss-row,.acct-sec.em .em-form{background:var(--mg-surface-solid)}
}
@media (prefers-reduced-transparency:reduce){
  .member .intake.acct,.member .mempty,.member .acct-searches .ss-row,.acct-sec.em .em-form{
    background:var(--mg-surface-solid);-webkit-backdrop-filter:none;backdrop-filter:none}
}
.member .intake.acct h2{margin:0 0 4px}
/* the email page: its pause block is a pane inside the card, not a second fill */
.acct-sec.em .em-pause{background:color-mix(in srgb,var(--cream) 70%,transparent);border:1px solid var(--mg-rim)}

/* ── one grid, one baseline ─────────────────────────────────────────────── */
/* a cell is a label row of fixed height, then the field; the label row holds
   the "i" when there is one, so every input in a row starts on one line */
.member .mg-grid{display:grid;gap:18px 20px;grid-template-columns:minmax(0,1fr);margin-top:14px}
.member .mg-f{min-width:0;position:relative}
.member .mg-lab{position:relative;display:flex;align-items:center;gap:4px;min-height:24px;margin:0 0 6px}
.member .mg-lab label{margin:0;line-height:1.3}
.member .mg-f input,.member .mg-f textarea{display:block;font-size:16px;min-height:50px;
  background:var(--mg-field);border-color:var(--mg-rim);
  transition:background-color 150ms ease-out,border-color 150ms ease-out}
.member .mg-f input:focus,.member .mg-f textarea:focus{background:var(--paper);border-color:var(--rose-deep)}
.member .mg-f input[disabled]{color:var(--slate);background:color-mix(in srgb,var(--cream) 55%,transparent);-webkit-text-fill-color:var(--slate);opacity:1}
.member .mg-acts{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
.member .acct-two .intake .mg-acts .btn{margin:0}
.member .acct-contact .mg-f{margin-top:10px}

/* State and ZIP pair up on the same two columns at every width under 900 */
.member .mg-grid .fgrid-half{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.6fr);gap:0 14px}
@media(min-width:621px) and (max-width:899px){
  .member .acct-two .fgrid.mg-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(min-width:900px){
  .member .acct-two .fgrid.mg-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .member .mg-grid .fgrid-half{display:contents}
}
/* the password row: three fields across from 760, their inputs on one line
   whether or not the rule ticks sit under them; the button starts the next row
   on the left, where Save details sits */
.member .acct-pw-grid.mg-grid{align-items:start}
@media(min-width:760px){
  .member .acct-pw-grid.mg-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
.member .acct-pw .vd-rules{margin-top:8px}

/* the Email settings card: same surface as its siblings; the heading's link
   covers the card, the chevron says it goes somewhere */
.member .acct-em{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:16px;position:relative}
.member .acct-em .mg-head,.member .acct-em .acct-lead{grid-column:1}
.member .acct-em-go{grid-column:2;grid-row:1/span 2;color:var(--ink);transition:transform 160ms var(--mg-ease)}
.member .acct-em-link{color:inherit;text-decoration:none}
.member .acct-em-link::after{content:"";position:absolute;inset:0;border-radius:inherit}
.member .acct-em-link:focus-visible{outline:none}
.member .acct-em:has(.acct-em-link:focus-visible){outline:2px solid var(--pill-focus,var(--rose-deep));outline-offset:2px}
.member .acct-em:active .acct-em-go{transform:translateX(3px)}
@media(hover:hover) and (pointer:fine){
  .member .acct-em:hover{background:var(--mg-surface-solid)}
  .member .acct-em:hover .acct-em-go{transform:translateX(3px)}
}

/* ── the "i" and its note ───────────────────────────────────────────────── */
.member .mg-head{position:relative;display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.member .acct-row .mg-head h2{margin:0}
/* a 44px target drawn as an 18px glyph; the negative margin keeps the label row
   at its own height */
.mh-i{position:relative;z-index:2;flex:none;display:inline-flex;align-items:center;justify-content:center;
  width:44px;height:44px;margin:-10px -12px -10px -8px;padding:0;border:0;background:none;border-radius:50%;
  color:var(--slate);cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.mh-i svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;transition:transform 140ms var(--mg-ease)}
.mh-i:active svg{transform:scale(.9)}
.mh-i[aria-expanded="true"]{color:var(--rose-deep)}
.mh-i:focus-visible{outline:2px solid var(--pill-focus,var(--rose-deep));outline-offset:-8px}
@media(hover:hover) and (pointer:fine){.mh-i:hover{color:var(--ink)}}

/* no script: the note is a plain line under the label, as the old hint was */
.mh-pop{display:block;flex:0 0 100%;margin:2px 0 0;font-size:13.5px;line-height:1.5;color:var(--slate);font-weight:400;letter-spacing:0}
.mg-lab .mh-pop{order:3}
.mg-lab:has(.mh-pop){flex-wrap:wrap}
/* with member-help.js: a small card that grows from the "i" */
html.mh .mg-lab:has(.mh-pop){flex-wrap:nowrap}
html.mh .mh-pop{position:absolute;z-index:5;top:calc(100% + 8px);left:0;width:max-content;max-width:min(300px,calc(100vw - 48px));
  margin:0;padding:11px 14px;border-radius:var(--r-md,14px);
  background:var(--mg-surface-solid);border:1px solid var(--mg-rim);box-shadow:var(--shadow-2);
  color:var(--ink);font-size:14px;
  transform-origin:var(--mh-ox,16px) 0;
  opacity:0;visibility:hidden;transform:translateY(-4px) scale(.96);pointer-events:none;
  transition:opacity 110ms ease-out,transform 110ms ease-out,visibility 0s linear 110ms}
html.mh .mh-pop[data-open]{opacity:1;visibility:visible;transform:none;pointer-events:auto;
  transition:opacity 180ms var(--mg-ease),transform 180ms var(--mg-ease),visibility 0s}
/* the card holding an open note rises over the card below it */
.member .mh-up{z-index:4}
.member .intake.acct,.member .acct-row{position:relative}

/* ── motion ─────────────────────────────────────────────────────────────── */
/* the shared reveal (core/assets/motion.css), shortened for a working page:
   8px and 280ms instead of 22px and 700ms; the 50ms ladder comes from
   data-stagger on .acct-two */
html.js .member .fade{transform:translateY(8px);transition-duration:280ms,280ms}
html.js .member .fade.in{transform:none}
/* a saved form's confirmation arrives rather than appears */
.member .acct-flash,.acct-sec .acct-flash{animation:mg-in 240ms var(--mg-ease) both}
/* Close my account opens in place */
.member #close-block:not([hidden]){animation:mg-in 220ms var(--mg-ease) both}
.member .acct-delete-toggle svg{transition:transform 180ms var(--mg-ease)}
@keyframes mg-in{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){
  html.js .member .fade{transform:none}
  .member .acct-flash,.acct-sec .acct-flash,.member #close-block:not([hidden]){animation:none}
  html.mh .mh-pop,html.mh .mh-pop[data-open]{transform:none;transition:opacity 120ms linear,visibility 0s}
  .member .acct-em-go,.mh-i svg{transition:none}
}

/* the saved search list's grid track took the rows' min-content (the pace
   select's line) and pushed the page sideways at 390; one shrinkable track,
   and the select may narrow to the row */
.member .acct-searches .ss-list{grid-template-columns:minmax(0,1fr)}
.member .acct-searches .ss-row,.member .acct-searches .ss-cad,.member .acct-searches .ss-cad select{min-width:0}
/* the pace select is a finger target like every other control; WebKit's native
   menulist ignores height, so it takes the theme's drawn chevron (as .hfbar) */
.member .acct-searches .ss-cad select{flex:1 1 0;width:0;min-height:44px;padding:10px 40px 10px 14px;color:var(--ink);cursor:pointer;
  background:var(--mg-field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%234A5A72' stroke-width='1.8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E") no-repeat right 16px center;
  border-color:var(--mg-rim);-webkit-appearance:none;appearance:none}
.member .acct-searches .ss-cad select:focus{outline:2px solid var(--rose-deep);outline-offset:1px}
