/*
 * Vanta Members front end. Panels are light cards by default and dark when
 * Settings > Look is "Dark" (body.vm-scheme-dark). Text outside panels follows the theme.
 */
.vm {
  --vm-accent: #d9a75c; --vm-ink: #071827; --vm-mute: rgba(7,24,39,.62); --vm-line: rgba(7,24,39,.13);
  --vm-paper: #f3ede1; --vm-field: #fff; --vm-on-bg: #071827; --vm-on-fg: #fff; --vm-radius: 22px;
  font-size: 16px; line-height: 1.5;
}
.vm-scheme-dark .vm {
  --vm-ink: #fff; --vm-mute: rgba(255,255,255,.66); --vm-line: rgba(255,255,255,.14);
  --vm-paper: #0c2c4a; --vm-field: rgba(255,255,255,.07); --vm-on-bg: var(--vm-accent); --vm-on-fg: #1a1208;
}
.vm *, .vm *::before, .vm *::after { box-sizing: border-box; }
.vm-panel { padding: 30px; border-radius: var(--vm-radius); background: var(--vm-paper); color: var(--vm-ink); }
.vm-h { margin: 0 0 16px; font-size: 22px; font-weight: 800; letter-spacing: .01em; text-transform: uppercase; color: inherit; }
.vm-label { margin: 22px 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--vm-mute); }
.vm-fine { margin: 14px 0 0; font-size: 14px; color: var(--vm-mute); }
.vm-fine a, .vm-panel a { color: inherit; font-weight: 600; text-decoration-color: var(--vm-accent); text-underline-offset: 3px; }
.vm-note { margin: 0 0 18px; font-size: 15px; opacity: .8; }

.vm-btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--vm-accent); color: #1a1208; font: inherit; font-size: 16px; font-weight: 600; text-decoration: none !important; cursor: pointer; white-space: nowrap; }
.vm-btn:hover { filter: brightness(1.06); color: #1a1208; }
.vm-btn[disabled] { opacity: .5; cursor: wait; }
.vm .vm-btn-ghost, .vm .vm-btn-ghost:hover { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px var(--vm-line); filter: none; }
.vm .vm-btn-ghost:hover { box-shadow: inset 0 0 0 1.5px currentColor; }
.vm-link { background: none; border: 0; padding: 0; color: inherit; font: inherit; font-weight: 600; text-decoration: underline; text-decoration-color: var(--vm-accent); text-underline-offset: 3px; cursor: pointer; }

/* fields */
.vm-f { display: block; margin: 0 0 12px; }
.vm-f > span { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--vm-mute); }
.vm-f input, .vm-f select { width: 100%; height: 48px; margin: 0; padding: 0 16px; border: 0; border-radius: 12px; background: var(--vm-field); box-shadow: inset 0 0 0 1px var(--vm-line); color: var(--vm-ink); font: inherit; font-size: 16px; }
.vm-f select option { color: #071827; }
.vm-f input:focus, .vm-f select:focus, .vm-other:focus { outline: 2px solid var(--vm-accent); outline-offset: 1px; }
.vm-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.vm-grid3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 0 12px; }

/* levels */
.vm-levels { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin: 0 0 22px; }
.vm-level { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 20px; border: 0; border-radius: 18px; background: var(--vm-paper); color: var(--vm-ink); box-shadow: inset 0 0 0 1px var(--vm-line); font: inherit; text-align: left; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.vm-level:hover { transform: translateY(-2px); }
.vm-level.is-on { box-shadow: inset 0 0 0 2.5px var(--vm-accent); }
.vm-level-name { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--vm-mute); }
.vm-level.is-on .vm-level-name { color: var(--vm-accent); }
.vm-level-price { font-size: 34px; font-weight: 800; line-height: 1.1; }
.vm-level-price small { font-size: 15px; font-weight: 500; color: var(--vm-mute); }
.vm-level-covers { font-size: 14.5px; }
.vm-level-pass { font-size: 13px; color: var(--vm-mute); }

.vm-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 18px; align-items: start; margin-top: 18px; }
.vm-join .vm-cols { margin-top: 0; }
.vm-benefits { padding: 30px; border-radius: var(--vm-radius); box-shadow: inset 0 0 0 1px var(--vm-line); }
.vm-scheme-dark .vm-benefits { box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.vm-benefits ul { list-style: none; margin: 0; padding: 0; }
.vm-benefits li { position: relative; padding: 8px 0 8px 26px; border-bottom: 1px solid rgba(127,127,127,.2); font-size: 15.5px; }
.vm-benefits li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 10px; height: 6px; border-left: 2px solid var(--vm-accent); border-bottom: 2px solid var(--vm-accent); transform: rotate(-45deg); }

/* chips */
.vm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.vm-chip { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--vm-field); box-shadow: inset 0 0 0 1px var(--vm-line); color: var(--vm-ink); font: inherit; font-weight: 600; cursor: pointer; }
.vm-chip.is-on { background: var(--vm-on-bg); color: var(--vm-on-fg); box-shadow: none; }
.vm-chip-other { padding: 0 6px 0 16px; cursor: text; }
.vm-chip-other input { width: 80px; height: 36px; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 600; padding: 0 6px; }
.vm-chip-other input::placeholder { color: inherit; opacity: .6; }
.vm-chips-big .vm-chip { height: 56px; padding: 0 26px; font-size: 20px; }

.vm-check { display: flex; gap: 12px; align-items: flex-start; margin: 22px 0 0; cursor: pointer; }
.vm-check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--vm-accent); flex: none; }
.vm-check small { color: var(--vm-mute); font-size: 14px; }

.vm-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--vm-line); }
.vm-total span { display: block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--vm-mute); }
.vm-total strong { font-size: 32px; font-weight: 800; }
.vm-error { margin: 14px 0 0; padding: 12px 16px; border-radius: 12px; background: #fbe3dd; color: #8a2a17; font-size: 15px; }
.vm-alert { margin: 0 0 16px; padding: 14px 18px; border-radius: 14px; background: rgba(217,167,92,.22); font-size: 15.5px; }
.vm-alert-ok { background: rgba(78,170,110,.2); }
.vm-demo { margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: #e6eef6; color: #123; font-size: 13.5px; }
.vm-ok { margin: 10px 0 0; font-weight: 600; }

/* donate */
.vm-donate { max-width: 760px; }
.vm-seg { display: inline-flex; padding: 4px; margin: 0 0 18px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--vm-line); }
.vm-seg button { height: 40px; padding: 0 22px; border: 0; border-radius: 999px; background: transparent; color: var(--vm-ink); font: inherit; font-weight: 600; cursor: pointer; }
.vm-seg button.is-on { background: var(--vm-on-bg); color: var(--vm-on-fg); }
.vm-donate .vm-chips { margin-bottom: 22px; }

/* sign in */
.vm-signin { max-width: 560px; }
.vm-login { display: flex; gap: 10px; align-items: flex-end; }
.vm-login .vm-f { flex: 1; margin: 0; }

/* account */
.vm-renew-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 18px; padding: 18px 22px; border-radius: 18px; background: var(--vm-accent); color: #1a1208; }
.vm-renew-bar span { display: block; font-size: 15px; }
.vm-renew-bar .vm-btn { background: #1a1208; color: #fff; }
.vm-acct-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 18px; align-items: start; }

.vm-card { position: relative; overflow: hidden; width: 100%; max-width: 480px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; aspect-ratio: 1.586; padding: 24px; border-radius: 20px; background: radial-gradient(120% 100% at 100% 0%, rgba(217,167,92,.35), transparent 55%), linear-gradient(160deg, #0f3a63, #071827 70%); color: #fff; box-shadow: 0 24px 50px rgba(7,24,39,.35); }
.vm-card.is-grace, .vm-card.is-lapsed, .vm-card.is-cancelled { filter: grayscale(.8); }
.vm-card-head { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.vm-card-level { color: var(--vm-accent); }
.vm-card-body { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.vm-card-body > div:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vm-card-name { font-size: 22px; font-weight: 800; line-height: 1.15; }
.vm-card-extra { font-size: 15px; opacity: .85; }
.vm-card-num { margin-top: 10px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 16px; letter-spacing: .08em; }
.vm-card-exp { font-size: 13px; opacity: .8; }
.vm-qr { flex: none; width: 104px; height: 104px; padding: 6px; border-radius: 10px; background: #fff; }
.vm-qr svg { display: block; width: 100%; height: 100%; }

.vm-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; align-content: start; padding: 22px; border-radius: var(--vm-radius); background: var(--vm-paper); color: var(--vm-ink); }
.vm-fact { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--vm-field); box-shadow: inset 0 0 0 1px var(--vm-line); }
.vm-fact > span { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--vm-mute); }
.vm-fact strong { font-size: 20px; }
.vm-fact-wide { grid-column: 1 / -1; }
.vm-facts > .vm-fine { margin: 2px 2px 0; }
.vm-status.vm-st-active { color: #2e9a5c; }
.vm-status.vm-st-grace { color: #b7791f; }
.vm-status.vm-st-lapsed, .vm-status.vm-st-cancelled { color: #c0392b; }
.vm-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.vm-switch { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.vm-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vm-switch-ui { position: relative; flex: none; width: 50px; height: 30px; border-radius: 999px; background: var(--vm-line); transition: background .15s ease; }
.vm-switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .15s ease; }
.vm-switch input:checked + .vm-switch-ui { background: #2e9a5c; }
.vm-switch input:checked + .vm-switch-ui::after { transform: translateX(20px); }
.vm-switch input:focus-visible + .vm-switch-ui { outline: 2px solid var(--vm-accent); outline-offset: 2px; }
.vm-switch small { color: var(--vm-mute); }

.vm-edit summary { cursor: pointer; list-style: none; margin: 0; }
.vm-edit summary::-webkit-details-marker { display: none; }
.vm-edit summary::after { content: " +"; color: var(--vm-accent); }
.vm-edit[open] summary { margin-bottom: 16px; }
.vm-edit[open] summary::after { content: " \2212"; }
.vm-saved { margin-left: 12px; font-weight: 600; color: #2e9a5c; }
.vm-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.vm-table td { padding: 10px 0; border-bottom: 1px solid var(--vm-line); vertical-align: top; }
.vm-table .vm-r { text-align: right; white-space: nowrap; padding-left: 12px; }
.vm-table td:first-child { white-space: nowrap; padding-right: 12px; }

@media (max-width: 560px) {
  .vm-panel, .vm-benefits { padding: 22px 18px; }
  .vm-levels { grid-template-columns: 1fr; gap: 8px; }
  .vm-level { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 12px; padding: 16px 18px; }
  .vm-level-name { width: 100%; }
  .vm-level-price { font-size: 26px; }
  .vm-grid2, .vm-grid3 { grid-template-columns: 1fr; }
  .vm-foot { flex-direction: column; align-items: stretch; }
  .vm-foot .vm-btn { width: 100%; height: 54px; }
  .vm-login { flex-direction: column; align-items: stretch; }
  .vm-renew-bar { flex-direction: column; align-items: flex-start; }
  .vm-card-name { font-size: 19px; }
  .vm-qr { width: 88px; height: 88px; }
}
