/* Account (account.js, glance.js, decision 0115): the notices, the summary, the classes, then the tabs. Its own file
   beside site.css and pages.css only to keep each file small; the same page loads all three. Roles only (site.css). */

/* What needs the member now: a tinted band with its one button, by how urgent it is. */
.notices { display: grid; gap: 8px; }
.notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 16px;
  border-radius: var(--r); background: var(--color-info-bg); color: var(--ink); }
.notice.warn { background: var(--color-warning-bg); }
.notice.error { background: var(--color-error-bg); }
.notice p { flex: 1 1 260px; font-weight: 500; }
.notice button { min-height: 44px; background: var(--bg); }

/* The summary: a tile for each membership, then the credits, side by side where there is room, one per row on a phone.
   The big line is in the heading's type, as the Buy page's prices are. */
.glance { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; }
.glance .tile { flex: 1 1 260px; display: grid; gap: 6px; align-content: start; padding: 20px 24px; min-width: 0; background: var(--bg); }
.glance .big { font-family: var(--sala-heading-font, var(--font-heading)); font-weight: 400; font-size: 1.75em; line-height: 1.15; }
.glance .tile a { justify-self: start; font-weight: 500; padding: 10px 0 0; min-height: 44px; }
.pill { display: inline-block; vertical-align: middle; font-family: var(--sala-font, var(--font-body)); font-size: .5em; font-weight: 500;
  padding: 2px 12px; border-radius: var(--radius-pill); background: var(--color-success-bg); color: var(--color-success); }
.pill:is(.pause_booked, .paused, .cancelling) { background: var(--color-feature); color: var(--ink); }
.pill.owing { background: var(--color-error-bg); color: var(--color-error); }

/* The classes ahead: My bookings' own rows. */
.classes h3 { font-size: 1em; margin: 8px 0 0; }
.more-link { justify-self: start; font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; }

/* The tabs sit under the summary and the classes, with a little more room above them than between parts. */
main > nav.tabs { margin-top: 16px; }
main > .panels { padding-top: 4px; }
@media (max-width: 640px) {
  .glance .tile { padding: 16px; }
  .glance .big { font-size: 1.5em; }
}

/* Leaving: under the membership's own buttons, quieter than they are. */
.card .leave { max-width: none; padding-top: 6px; border-top: 1px solid var(--line); margin-top: 4px; }
.card .leave button.link { min-height: 44px; }

/* An empty birthday reads as empty, not as today's date drawn in grey by Safari (profile.js). */
input[type="date"].empty:not(:focus)::-webkit-datetime-edit { color: transparent; }
