/* ==========================================================================
   Denver Elks #17 — Member Area
   Loaded only on this plugin's front-end routes (Elks17M_Routes::enqueue).

   Deliberately plugin-owned rather than folded into the theme's main.css. The
   member pages are plugin-owned templates on plugin-owned routes, same as the
   events plugin's checkin.css — the theme should not have to ship styles for
   markup it does not render. Brand tokens (--p900, --gold, …) come from the
   theme, so this file inherits the palette without duplicating it and falls
   back to sane values if it is ever loaded on another theme.
   ========================================================================== */

.elks17m-main {
  background: #fff;
}

.elks17m-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 56px 48px 72px;
}

.elks17m-wrap--narrow {
  max-width: 720px;
}

/* Cards ------------------------------------------------------------------ */

.elks17m-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  align-items: start;
}

.elks17m-card {
  background: var(--p50, #eeedfe);
  border-radius: 12px;
  padding: 26px 28px;
  margin-bottom: 24px;
}

.elks17m-grid .elks17m-card {
  margin-bottom: 0;
}

.elks17m-card--wide {
  grid-column: 1 / -1;
}

.elks17m-card-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--p800, #3c3489);
  margin-bottom: 14px;
}

.elks17m-card p {
  color: var(--p900, #26215c);
  line-height: 1.6;
  margin-bottom: 12px;
}

.elks17m-muted {
  color: var(--p600, #534ab7);
  font-size: 14px;
}

.elks17m-hint {
  display: block;
  color: var(--p600, #534ab7);
  font-size: 13px;
}

/* Definition lists ------------------------------------------------------- */

.elks17m-dl {
  margin: 0 0 8px;
}

.elks17m-dl dt {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--p600, #534ab7);
  margin-top: 14px;
}

.elks17m-dl dt:first-child {
  margin-top: 0;
}

.elks17m-dl dd {
  font-size: 17px;
  color: var(--p900, #26215c);
  margin: 2px 0 0;
}

.elks17m-dl dd code {
  font-size: 16px;
  letter-spacing: 1px;
}

/* Badges and flags ------------------------------------------------------- */

.elks17m-badge {
  display: inline-block;
  background: var(--gold, #c59b3a);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 3px 7px;
  border-radius: 3px;
  vertical-align: 3px;
  margin-left: 6px;
}

.elks17m-flag {
  font-size: 15px;
  font-weight: 600;
}

.elks17m-flag--warn {
  color: #b32d2e;
}

/* Lists ------------------------------------------------------------------ */

.elks17m-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.elks17m-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(38, 33, 92, 0.12);
}

.elks17m-list li:last-child {
  border-bottom: 0;
}

.elks17m-meta {
  color: var(--p600, #534ab7);
  font-size: 14px;
  white-space: nowrap;
}

.elks17m-log {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
}

.elks17m-log li {
  display: flex;
  gap: 18px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(38, 33, 92, 0.1);
}

.elks17m-log li:last-child {
  border-bottom: 0;
}

.elks17m-log time {
  flex: 0 0 170px;
  color: var(--p600, #534ab7);
  font-size: 13px;
}

/* Tags ------------------------------------------------------------------- */

.elks17m-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.elks17m-tag {
  background: #fff;
  border: 1px solid var(--p200, #afa9ec);
  border-radius: 999px;
  color: var(--p800, #3c3489);
  font-size: 13px;
  padding: 5px 12px;
}

/* Forms ------------------------------------------------------------------ */

.elks17m-form {
  margin-top: 6px;
}

.elks17m-label {
  display: block;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--p600, #534ab7);
  margin-bottom: 6px;
}

.elks17m-input {
  width: 100%;
  max-width: 380px;
  font-size: 16px; /* 16px or iOS zooms the page on focus. */
  padding: 12px 14px;
  border: 1px solid var(--p200, #afa9ec);
  border-radius: 4px;
  background: #fff;
  color: var(--p900, #26215c);
}

.elks17m-input:focus {
  outline: 2px solid var(--p400, #7f77dd);
  outline-offset: 1px;
}

.elks17m-form--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.elks17m-form--inline .elks17m-input {
  max-width: 240px;
}

.elks17m-btn {
  display: inline-block;
  margin-top: 16px;
  background: var(--gold, #c59b3a);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px 28px;
  border: 0;
  border-radius: 3px;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .15s ease;
}

.elks17m-btn:hover {
  opacity: .88;
}

.elks17m-btn--small {
  margin-top: 0;
  padding: 11px 18px;
  font-size: 12px;
}

.elks17m-link {
  color: var(--p600, #534ab7);
  font-weight: 600;
}

.elks17m-linkbtn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--p600, #534ab7);
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
}

.elks17m-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 8px;
}

.elks17m-signout {
  margin-top: 32px;
}

/* Checkboxes ------------------------------------------------------------- */

.elks17m-checks {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 4px 20px;
}

.elks17m-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  font-size: 16px;
  color: var(--p900, #26215c);
  cursor: pointer;
}

.elks17m-check input {
  width: 20px;
  height: 20px;
  accent-color: var(--p600, #534ab7);
  flex: 0 0 auto;
}

/* Notices ---------------------------------------------------------------- */

.elks17m-notice {
  background: var(--p100, #cecbf6);
  border-left: 4px solid var(--p600, #534ab7);
  border-radius: 4px;
  padding: 14px 18px;
  margin-bottom: 24px;
  color: var(--p900, #26215c);
}

.elks17m-notice--warn {
  background: #fbeaea;
  border-left-color: #b32d2e;
}

/* Small screens ---------------------------------------------------------- */

@media (max-width: 700px) {
  .elks17m-wrap {
    padding: 32px 20px 48px;
  }

  .elks17m-card {
    padding: 22px 20px;
  }

  .elks17m-log li {
    flex-direction: column;
    gap: 2px;
  }

  .elks17m-log time {
    flex: none;
  }
}
