/* Members area (members.php fills in members.html). Uses the shared tokens, buttons and fields from base.css. */

/* banner: same style as the shop's "The band shop." band */
.mem-hero { --hero-h: clamp(200px, 19vw, 310px); }
.mem-hero .hero__inner { padding-block: clamp(1.6rem, 3vw, 3rem) calc(var(--wave-h) + clamp(1rem, 2vw, 2rem)); position: relative; z-index: 1; }
.mem-hero .eyebrow { margin-bottom: .6rem; }
.mem-hero .display { margin: 0 0 .6rem; font-size: clamp(2.8rem, 1rem + 5vw, 5.8rem); }
.mem-hero__lede { font-size: clamp(1.05rem, .9rem + .45vw, 1.4rem); line-height: 1.3; color: var(--navy-800); max-width: 36ch; }
.mem-hero__plane { right: 4%; top: 10%; width: clamp(180px, 28vw, 420px); opacity: .7; z-index: 0; }

.mem-main { background: var(--paper-tex) 0 0 / 512px, var(--paper-warm); padding-block: clamp(1.8rem, 3.5vw, 3.4rem) clamp(3rem, 6vw, 5.5rem); }
.mem-main__inner { display: grid; gap: clamp(1rem, 2vw, 1.5rem); max-width: 1100px; }

/* messages */
.mem-flash { font-family: var(--font-ui); font-size: .95rem; font-weight: 600; line-height: 1.45; padding: .9rem 1.15rem; border-radius: 10px; }
.mem-flash--ok { background: #e6f5ea; color: #145a2a; }
.mem-flash--info { background: var(--sky-100); color: var(--navy-800); }
.mem-flash--error { background: #fdeceb; color: #8a1622; }

/* cards and forms */
.mem-card { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: clamp(1.3rem, 3vw, 2.4rem); }
.mem-card--narrow { width: 100%; max-width: 560px; margin-inline: auto; }
.mem-card__title { font-family: var(--font-serif); font-weight: 400; color: var(--ink); font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.3rem); line-height: 1.08; margin-bottom: .6rem; }
.mem-card__intro, .mem-card > p { font-size: var(--fs-small); line-height: 1.45; color: var(--text-soft); }
.mem-card > p + p { margin-top: .8rem; }
.mem-card a { color: var(--navy-700); font-weight: 600; }
.mem-card__links { margin-top: 1rem; font-family: var(--font-ui); font-size: .9rem; }
.mem-card__badge { display: block; width: 3rem; height: 3rem; margin-bottom: .8rem; color: #1d6b3a; }
.mem-card__badge .icon { width: 100%; height: 100%; }
.mem-back { margin-bottom: .8rem; font-family: var(--font-ui); font-size: .9rem; }
.mem-back a { text-decoration: none; }
.mem-form { display: grid; gap: 1rem; margin-top: 1.2rem; }
.mem-form .btn { justify-self: start; }
.mem-form .btn .icon { width: 1.05em; height: 1.05em; }
.mem-optional { font-weight: 600; color: var(--slate); }
.mem-consent { color: var(--text-soft); line-height: 1.45; }
.mem-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* login page: login card beside the "new to the members area" panel */
.mem-auth { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1rem, 2.4vw, 1.75rem); align-items: stretch; }
.mem-side { display: grid; align-content: start; gap: .9rem; padding: clamp(1.3rem, 3vw, 2.4rem); border-radius: var(--radius-lg); background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); color: #eaf2fb; box-shadow: var(--shadow-sm); }
.mem-side__title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.45rem, 1.1rem + 1vw, 2rem); line-height: 1.1; color: #fff; }
.mem-side p { font-size: var(--fs-small); line-height: 1.45; }
.mem-side__list { display: grid; gap: .55rem; margin-bottom: .4rem; font-family: var(--font-ui); font-weight: 700; font-size: .95rem; }
.mem-side__list li { display: flex; align-items: center; gap: .65rem; }
.mem-side__list .icon { width: 1.35rem; height: 1.35rem; color: #b8d6f5; }
.mem-side .btn { justify-self: start; }

/* library: account bar, section tabs, file lists */
.mem-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1.5rem; font-family: var(--font-ui); font-size: .92rem; color: var(--text-soft); }
.mem-bar__hello { display: inline-flex; align-items: center; gap: .5rem; }
.mem-bar__hello .icon { width: 1.5rem; height: 1.5rem; color: var(--navy-700); }
.mem-bar__hello strong { color: var(--ink); }
.mem-bar__links { display: flex; align-items: center; gap: 1.1rem; font-weight: 700; }
.mem-bar__links a { color: var(--navy-700); }
.mem-bar__links button { display: inline-flex; align-items: center; gap: .4rem; padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: var(--navy-700); text-decoration: underline; text-underline-offset: .18em; }
.mem-bar__links .icon { width: 1.1em; height: 1.1em; }
.mem-tabs { display: flex; flex-wrap: wrap; gap: .5rem; }
.mem-tab { display: inline-flex; align-items: center; gap: .55rem; min-height: 48px; padding: .5rem 1.15rem; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-family: var(--font-ui); font-weight: 700; font-size: .98rem; color: var(--navy-800); text-decoration: none; transition: border-color .2s, background-color .2s; }
.mem-tab:hover { border-color: var(--navy-600); }
.mem-tab .icon { width: 1.25rem; height: 1.25rem; }
.mem-tab__count { display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.6rem; padding: 0 .45rem; border-radius: 999px; background: var(--ice); font-size: .8rem; }
.mem-tab[aria-current="page"] { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.mem-tab[aria-current="page"] .mem-tab__count { background: rgb(255 255 255 / .2); }
.mem-section { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: clamp(1.2rem, 3vw, 2.4rem); }
.mem-section__title { font-family: var(--font-serif); font-weight: 400; color: var(--ink); font-size: clamp(1.7rem, 1.2rem + 1.5vw, 2.6rem); line-height: 1.05; }
.mem-section__intro { margin-top: .5rem; font-size: var(--fs-small); line-height: 1.45; color: var(--text-soft); max-width: 60ch; }
.mem-empty { margin-top: 1.2rem; padding: 1.1rem 1.2rem; border-radius: 10px; background: var(--ice); font-family: var(--font-ui); font-size: .95rem; color: var(--navy-800); }
.mem-group { margin-top: clamp(1.2rem, 2.4vw, 1.8rem); }
.mem-group__title { font-family: var(--font-ui); font-weight: 800; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--navy-500); padding-bottom: .5rem; border-bottom: 1px solid var(--line-soft); }
.mem-section__intro + .mem-group > .mem-files { margin-top: 1rem; }
.mem-files { display: grid; }
.mem-file { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .6rem 1rem; padding-block: .9rem; border-bottom: 1px solid var(--line-soft); }
.mem-file:last-child { border-bottom: 0; }
.mem-file__icon { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 10px; background: var(--ice); color: var(--navy-700); }
.mem-file__icon .icon { width: 1.4rem; height: 1.4rem; }
.mem-file__text { display: grid; gap: .15rem; min-width: 0; }
.mem-file__title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.08rem, 1rem + .3vw, 1.3rem); line-height: 1.2; color: var(--ink); overflow-wrap: anywhere; }
.mem-file__meta { font-family: var(--font-ui); font-size: .82rem; color: var(--slate); }
.mem-file__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; }
.mem-file__actions .icon { width: 1.05em; height: 1.05em; }
.mem-file--audio { grid-template-columns: auto minmax(0, 1fr) minmax(220px, 320px) auto; }
.mem-file__player { width: 100%; height: 40px; }

@media (max-width: 900px) {
  .mem-hero__plane { opacity: .3; }
  .mem-auth { grid-template-columns: minmax(0, 1fr); }
  .mem-file--audio { grid-template-columns: auto minmax(0, 1fr) auto; }
  .mem-file--audio .mem-file__player { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 640px) {
  .mem-hero__plane { display: none; }
  .mem-file, .mem-file--audio { grid-template-columns: auto minmax(0, 1fr); }
  .mem-file__actions { grid-column: 1 / -1; justify-content: flex-start; }
  .mem-file--audio .mem-file__player { grid-row: auto; }
  .mem-tab { flex: 1 1 auto; justify-content: center; padding-inline: .8rem; font-size: .9rem; }
}
