/* Diner card and sign-in controls also appear on larger screens. */
.member-hero .food { background: #9e7355; }
.member-hero .food img { display: block; width: 100%; height: 100%; object-fit: cover; }
.member-hero .balance strong { font: inherit; }
.member-hero .member-line b { font-weight: 600; }
.member-login-form .pass-field { position: relative; margin: 14px 0; }
.member-login-form .pass-field label { display: grid; gap: 5px; font-size: .88rem; font-weight: 600; }
.member-login-form .pass-field input { width: 100%; min-height: 46px; padding-inline-end: 4.25rem; }
.member-login-form .show-pass {
  position: absolute; bottom: 1px; right: 1px; min-width: 3.9rem; min-height: 44px; padding: .3rem .65rem;
  background: transparent; border: 0; border-radius: 5px; color: var(--green); font-size: .88rem; font-weight: 600;
}
.member-login-form .show-pass:focus-visible { outline-offset: -4px; }

@media (max-width: 740px) {
  .welcome-caption { padding: 17px 20px; }
  .welcome-photo { min-height: 145px; }
  .welcome-caption p { font-size: .91rem; line-height: 1.45; }
  .welcome-signin { padding: 20px; min-width: 0; }
  .welcome-signin > p { line-height: 1.5; }
  .welcome-signin .member-login-form { margin-top: 16px; }
  .member-login-form input { font-size: max(1rem,16px); min-height: 48px; }
  .member-login-form .pass-field input { min-height: 48px; }
  .member-login-form .show-pass { min-height: 46px; }
  .member-login-form button[type="submit"], .welcome-preview button { min-height: 46px; }
  .welcome-preview { margin-top: 18px; padding-top: 16px; gap: 5px; }
  .welcome-preview button { width: 100%; }
}

@media (max-width: 680px) {
  .member-heading {
    display: grid; align-items: center; grid-template-columns: minmax(0,1fr) auto; gap: 1px .6rem;
  }
  .member-heading > div:first-child { display: contents; }
  .member-heading .heading-kicker { grid-column: 1; grid-row: 1; margin: 0; font-size: .73rem; }
  .member-heading .demo-switch { grid-column: 2; grid-row: 1; min-height: 44px; font-size: .78rem; }
  .member-heading h1 { grid-column: 1 / -1; grid-row: 2; overflow-wrap: anywhere; }

  .member-hero { grid-template-columns: 70% 30%; min-height: 220px; }
  .member-hero .food { left: 68%; }
  .member-hero .food img { object-position: 54% center; }
  .member-hero .pass-face { min-width: 0; padding: 19px 16px 25px; container-type: inline-size; }
  .member-hero .hero-label { font-size: .72rem; line-height: 1.3; letter-spacing: .07em; }
  .member-hero .balance { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 .38rem; max-width: 100%; margin: 7px 0; line-height: .97; }
  .member-hero .balance strong {
    font-size: clamp(1.2rem, calc(145cqw / var(--digits)), 3.65rem);
    max-width: 100%; overflow-wrap: anywhere; line-height: 1;
  }
  .member-hero .balance span { font-size: 1.11rem; }
  .member-hero .member-line { max-width: 100%; font-size: .83rem; line-height: 1.45; overflow-wrap: anywhere; }
  .member-hero .member-id { display: block; font-size: .79rem; }
  .member-hero .member-id span { display: none; }
  .member-hero .hero-actions { max-width: 100%; margin-top: 12px; }
  .member-hero .hero-actions button { min-height: 46px; max-width: 100%; padding: 8px 10px; font-size: .84rem; }
  .member-hero .club-seal { width: clamp(55px,16vw,82px); height: auto; aspect-ratio: 1; right: 6px; }
  .member-hero .seal-ring small { font: 700 clamp(4.5px,1.25vw,7px)/1 Arial,sans-serif; letter-spacing: .03em; }

  .reward-grid { gap: 12px; }
  .reward-grid .reward { grid-template-columns: clamp(82px,24vw,115px) minmax(0,1fr); }
  .reward-grid .reward-info { min-width: 0; padding: .83rem .8rem .55rem; }
  .reward-grid h3, .reward-info p, .earn-rules li { overflow-wrap: anywhere; }
  .reward-grid h3 { line-height: 1.08; }
  .reward-grid .reward-info p { font-size: .84rem; line-height: 1.45; }
  .reward-grid .points-tag { max-width: calc(100% - 8px); left: 4px; top: 5px; padding: 4px 5px; gap: 2px; font-size: .75rem; line-height: 1.2; overflow-wrap: anywhere; }
  .reward-grid .points-tag .ico { width: .9em; height: .9em; }
  .reward-grid .reward-action { min-height: 46px; gap: .3rem; padding: 7px .8rem; font-size: .87rem; line-height: 1.35; }
  .reward-grid .reward-action > span { min-width: 0; }
  .earn-rules li { margin: .45rem 0; }

  .claims { min-width: 0; }
  .claims .claim-row { align-items: start; flex-wrap: wrap; gap: .65rem 1rem; padding: .86rem; }
  .claims .claim-row > div { min-width: min(100%,9rem); flex: 1; overflow-wrap: anywhere; }
  .claims .claim-row small { margin-top: .22rem; font-size: .82rem; }
  .claims .claim-code { padding: .45rem .55rem; border: 1px dashed #b5a580; border-radius: 4px; background: #fff9e2; font-size: 1.07rem; user-select: all; }
  .pass-card { padding: 16px 9px; overflow-wrap: anywhere; }
  .pass-card .barcode { width: 100%; max-width: 325px; height: auto; }

  .two-col:has(.entry-label), .member-activity, .two-col:has(.visit-spot) { grid-template-columns: minmax(0,1fr); }
  .two-col .panel:has(.entry), .two-col .panel:has(.visit-spot) { min-width: 0; }
  .entry { min-width: 0; align-items: start; gap: 8px; }
  .entry-label { min-width: 0; overflow-wrap: anywhere; }
  .entry-icon { width: 30px; height: 32px; }
  .entry-label small { font-size: .81rem; }
  .points-num { max-inline-size: 46%; text-align: end; overflow-wrap: anywhere; font-size: .9rem; }
  .section-title .linkish, .panel-heading .linkish {
    display: inline-flex; align-items: center; justify-content: flex-end; min-height: 44px; flex: none; font-size: .83rem;
  }
  .panel:has(.visit-spot) .stats { grid-template-columns: minmax(0,.7fr) minmax(0,1.3fr); }
  .panel:has(.visit-spot) .stats.has-long-total { grid-template-columns: minmax(0,1fr); }
  .panel:has(.visit-spot) .stat { min-width: 0; padding: 10px; }
  .panel:has(.visit-spot) .stat b { font-size: clamp(1.32rem,5.6vw,1.8rem); overflow-wrap: anywhere; }
  .member-activity .filters { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
  .member-activity .filter { min-height: 44px; padding: .45rem; font-size: .88rem; }
  .summary-metric.long-value { grid-column: 1 / -1; }
  .summary-breakdown dl div { align-items: baseline; }
  .summary-breakdown dt { min-width: 0; }
  .summary-breakdown dd { overflow-wrap: anywhere; text-align: end; }
}

@media (max-width: 355px) {
  .welcome-signin { padding: 16px; }
  .welcome-caption { padding: 15px; }
  .member-hero .pass-face { padding-inline: 12px; }
  .summary-metrics { grid-template-columns: minmax(0,1fr); }
  .summary-metric { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); align-items: start; gap: 10px; }
  .summary-metric dd strong { margin-top: 0; }
}

@media (pointer: coarse) and (max-width: 1024px) {
  .member-heading .demo-switch, .member-hero .hero-actions .btn, .reward-grid .reward-action,
  .member-activity .filter, .welcome-preview .btn-outline, .member-login-form button[type="submit"] { min-height: 44px; }
  .member-hero .hero-statement, .section-title .linkish, .panel-heading .linkish { align-content: center; min-height: 44px; }
  .section-title .linkish, .panel-heading .linkish { display: inline-flex; align-items: center; }
  .member-login-form input { font-size: max(1rem,16px); min-height: 48px; }
}
