/* Mobile layout fixes. Does not change copy. */
@media (max-width: 640px) {
  .apply-journey article,
  .apply-join-card .apply-journey article {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .apply-step-mark { grid-column: auto; }
  .apply-join-card .apply-journey article > div { min-width: 0; }
  .apply-join-card .apply-journey article span {
    font-size: 14px;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }
  .dash-journeys { grid-template-columns: 1fr; }
  .dash-journeys-main .section-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .dash-journeys-main .section-head .btn { margin-right: 0; }
  .tmc-orders .section-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  body { font-size: 15px; }
  small, .small, .eyebrow, .booking-note, .meta, .kicker, .status, .tab,
  .notice, .alert, .sumrow, .legal-effective span, .dashboard-kpi small,
  .whatsapp-capsule, .field label, .traveller-count label, .club-pair p,
  .apply-stepper span, .legal-point, .cart-head > span:last-child {
    font-size: 12px;
    line-height: 1.4;
  }
  p, li, .section-sub, input, select, textarea, button, .btn { font-size: 15px; }
  .btn, button, .pill, .tab, .hamb, .cart-head, .dep-chip, .room-option,
  .apply-pill, .nav a, [data-order-filter], .store-category {
    min-height: 44px;
  }
  .nav a { display: flex; align-items: center; padding-top: 10px; padding-bottom: 10px; }
  .hamb { width: 44px; height: 44px; }
  .trav-line { grid-template-columns: 1fr; }
  .trav-line input,
  .trav-cell,
  .trav-cell input.locked-input {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
  .trav-cell input.locked-input {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
@media (max-width: 1280px) {
  .club-mosaic { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .club-pair { grid-template-columns: 1fr; }
  .club-pair img { width: 100%; height: 150px; min-height: 0; object-fit: cover; }
  .club-pair h3, .club-pair p { overflow-wrap: anywhere; }
  .club-pair p { font-size: 14px; line-height: 1.4; }
}
@media (max-width: 1180px) {
  .trip-layout, .cart-layout, .checkout-layout, .payment-stage-grid, .book-desk-grid {
    grid-template-columns: 1fr;
  }
  .sticky, .pay-rail, .booking-rail, .order-summary, .updates-side, .apply-photo-card {
    position: static;
    top: auto;
  }
}
@media (max-width: 400px) {
  .header-inner { width: calc(100% - 16px); gap: 8px; }
  .wordmark { width: 142px; min-width: 0; }
  .wordmark img { height: 26px; }
  .header-actions { gap: 4px; }
  .container, .container.narrow, .hero-inner, .footer-inner, .apply-banner .inner {
    width: calc(100% - 24px);
  }
  .legal-page { padding: 18px 14px; }
  .apply-stage, .desk-page, .desk-wide { width: calc(100% - 20px); }
  .apply-sheet { padding: 20px 14px 24px; }
}
.hamb span { display: block; transform-origin: center; transition: transform .18s ease, opacity .18s ease; }
.hamb.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamb.is-open span:nth-child(2) { opacity: 0; }
.hamb.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.legal-page, .legal-page h1, .legal-page h2, .legal-page p, .legal-page li {
  overflow-wrap: anywhere;
  max-width: 100%;
}
.legal-table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.legal-page .legal-table { width: max-content; min-width: 36rem; max-width: none; }
.legal-page .legal-table td { max-width: none; min-width: 11rem; overflow-wrap: break-word; }
.apply-stage-head { min-width: 0; flex-wrap: wrap; }
.apply-stage-head > div { min-width: 0; }
.apply-stepper { flex-wrap: wrap; row-gap: 6px; max-width: 100%; }
.apply-form .sumrow, .apply-sheet .sumrow { min-width: 0; }
.apply-form .sumrow b, .apply-sheet .sumrow b, .apply-form .sumrow span, .apply-sheet .sumrow span {
  min-width: 0;
  overflow-wrap: anywhere;
}
html, body { max-width: 100%; }
@media (max-width: 1023px) {
  html, body { overflow-x: clip; }
}
@media (max-width: 900px), (max-height: 500px) and (orientation: landscape) {
  .eyebrow,
  .site-footer .footer-links h4,
  .site-footer .footer-links a,
  .site-footer .footer-end,
  .site-footer .footer-end span,
  .trip-date-badge,
  .trip-date-badge small,
  .trip-date-badge b,
  .trip-category,
  .trip-status-v23,
  .trip-card-side .trip-gender-line,
  .trip-more-dates,
  .dep-chip,
  .dep-chip small,
  .passport-stamp b,
  .passport-stamp span,
  .passport-stamp small,
  .trip-card-v23 .trip-card-foot small,
  .trip-card-v23 .trip-card-foot span,
  .trip-card-v23 .trip-card-nights,
  .trip-card-v23 .tcap {
    font-size: 12px;
    line-height: 1.35;
  }
  .trip-card-v23 .trip-card-title h3 a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }
  .trip-card-v23 .btn.small,
  .trip-card-v23 .trip-card-go {
    font-size: 12px;
  }
  .store-hero:has(.hero-back) .inner { padding-top: calc(var(--header-h) + 72px); }
  .site-footer .footer-links a,
  .site-footer .footer-contact-row a,
  a.route-back,
  .cart-row .text-button {
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    min-height: 44px;
    min-width: 44px;
    padding: 10px 12px;
  }
  .site-footer .footer-links a { display: flex; margin: 0; }
}
@media (max-width: 380px) {
  .cart-row > .cart-meta { flex-wrap: wrap; row-gap: 6px; }
  .cart-row > .cart-meta form:last-child { flex: 1 0 100%; }
  .cart-row .text-button { padding: 8px 10px; justify-content: flex-start; }
}
@media (max-width: 640px) {
  .ways-row {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
}

/* UAT v16 — final-loaded customer card readability overrides. */
.feature-strip .feature-item span,
.ways-shell .way-card small,
.home-trip-grid .trip-card-date,
.home-trip-grid .trip-card-body small,
.home-trip-grid .trip-card-body span,
.club-mosaic .club-pair-copy p,
.club-teaser .mosaic-item .copy p {
  font-size: 12px;
  line-height: 1.5;
}

/* MONKIEE 2026-11 clean-up: accessible targets and small-screen checkout */
.event-photo-unavailable{width:100%;height:100%;min-height:125px;display:grid;place-items:center;background:#ebe7df;color:#554e43;font-size:13px;text-align:center;padding:16px}
@media (max-width: 900px){
  .hamb,.cart-head,.carousel-arrow,.dash-carousel-nav .carousel-arrow,.faq-q,
  .site-header button,.site-header .pill,.site-header .member-chip,
  button[data-accordion],.trip-card-go,.trip-card-foot .btn{min-height:44px;min-width:44px}
  .hamb{width:44px;height:44px}
  .faq-q{padding-top:12px;padding-bottom:12px}
  .booking-rail .btn,.book-mobile-bar .btn,.pay-balance-btn{min-height:44px;white-space:normal;text-align:center}
  .book-mobile-bar{flex-wrap:wrap;min-width:0}
  .book-mobile-bar > div{min-width:0;flex:1}
  .book-mobile-bar .btn{max-width:58vw;overflow-wrap:anywhere;white-space:normal}
}
@media (min-width: 700px) and (max-width: 850px){
 .trip-layout{grid-template-columns:minmax(0,1fr)}
 .book-mobile-bar{display:none !important}
 body:has(.book-mobile-bar){padding-bottom:0}
 .trip-hero-actions,.booking-rail form,.book-mobile-bar{min-width:0}
 .book-mobile-bar [type=submit]{max-width:50vw;white-space:normal}
}
@media (max-width: 420px){
 .dashboard-current .content .pay-balance-btn,.pay-balance-btn{width:100%;max-width:100%;min-height:44px;white-space:normal}
 .dashboard-current .content .actions,.dashboard-current .content .button-row{flex-wrap:wrap;min-width:0}
}

/* UAT v19: touchable visual controls and legible product previews on compact displays. */
@media (pointer: coarse), (max-width: 900px) {
  .footer-socials .social-icon,.footer-contact-row .footer-wa-icon{min-width:44px;min-height:44px;width:44px;height:44px;flex:0 0 44px;}
  .footer-links a{display:inline-flex;align-items:center;min-height:44px;padding-block:9px;}
  .store-category,.store-category a,.faq-q,.carousel-arrow,.hamb{min-height:44px;}
}
@media (max-width: 767px){
  .product-card > .img img,.store-category img{object-fit:contain;object-position:center center;background:#f3efe7;}
}

/* Final responsive UAT: hit areas, keyboard focus, and natural photo framing. */
@media (hover:none), (pointer:coarse), (max-width:767px){
  .social-icon,.footer-socials a,.footer-wa-icon,.footer-links a,
  .modal-close,.carousel-arrow,.text-button,.route-back,
  .pagination a,.tmc-pager a,.tabbar .tab,.book-mobile-bar button,
  .quantity-control button,.cart-meta button{min-height:44px;min-width:44px;}
  a:focus-visible,button:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #b89969;outline-offset:3px;}
  .cart-layout,.store-pay-box,.booking-review-grid,.book-desk-grid{min-width:0;}
  .cart-meta{flex-wrap:wrap;gap:8px;min-width:0;}
  .cart-row,.product-card,.store-category{min-width:0;overflow-wrap:anywhere;}
  .store-category img,.product-card img,.product-grid img{object-position:50% 50%;}
}
@media(max-width:600px){
 .store-category img,.product-card .img img{object-fit:contain!important;background:#f3efe7;}
 .store-category,.product-card .img{overflow:hidden;}
 .journey-card-v23 img{object-position:center center;}
}
/* Owner-configurable focal position for future authored hero imagery. */
.hero-media{background-position:var(--tmc-hero-position,center center);}

/* Final v20: keep actionable controls a full touch target in both fine/coarse simulators. */
@media (max-width: 900px){
  .footer-socials .social-icon,.footer-socials a.social-icon{width:44px!important;height:44px!important;min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px}
  .footer-contact-row a,.header-actions a,.header-actions button,.cart-head,.logout-link,.member-chip{min-height:44px;display:inline-flex;align-items:center}
  .store-category img,.product-card>.img img{object-fit:contain!important;object-position:center;background:#f3efe7}
  .profile-photo-frame{max-width:100%;min-width:0;overflow:visible}
  .profile-photo-frame img{max-width:100%;height:auto;object-fit:contain}
  .container>*{min-width:0}
}
@media (min-width: 768px) and (max-width: 900px){.store-category img{object-fit:contain}}

/* Trip booking CTA: separate booking action from its departure date. */
.trip-book-cta{display:inline-flex!important;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;line-height:1.35;text-align:center}
.trip-book-cta .trip-book-date{padding-left:10px;border-left:1px solid currentColor;white-space:normal}
@media(max-width:400px){.trip-book-cta{gap:6px;font-size:.88rem}.trip-book-cta .trip-book-date{padding-left:7px}}

/* v27: actual /clubhouse/members body class is route-member (singular).
   Keep entire identity photo visible within the image area and reserve a
   separate readable name band; never crop face to fill a landscape panel. */
.route-member .member-board .member-slab-photo,
.route-members .member-board .member-slab-photo {
  position:relative;
  display:grid;
  grid-template-rows:minmax(0,1fr) auto;
  min-width:0;
  overflow:hidden;
  background:#e7dfd2;
}
.route-member .member-board .member-slab-photo img,
.route-members .member-board .member-slab-photo img,
.route-member .member-board .member-slab-photo .member-slab-fallback,
.route-members .member-board .member-slab-photo .member-slab-fallback {
  position:relative!important;
  inset:auto!important;
  grid-row:1;
  width:100%!important;
  height:100%!important;
  min-height:0;
  max-height:100%;
  object-fit:contain!important;
  object-position:center center!important;
  background:#e7dfd2;
}
.route-member .member-board .member-slab-photo strong,
.route-members .member-board .member-slab-photo strong {
  position:relative!important;
  inset:auto!important;
  grid-row:2;
  min-height:44px;
  box-sizing:border-box;
  padding:8px 10px;
  display:flex;
  align-items:center;
  background:#514d45;
  color:#fff;
  text-shadow:none;
  font-size:clamp(14px,1.15vw,18px);
  line-height:1.2;
  overflow-wrap:anywhere;
}
/* In single-column mobile cards, provide sufficient photo height for square
   and portrait identities rather than squeezing them into a shallow strip. */
@media(max-width:640px){
 .route-member .member-board .member-slab-photo,
 .route-members .member-board .member-slab-photo { min-height:240px; }
}

/* Desktop hit areas: native icons remain the same size, clickable targets ≥44px. */
.site-footer .footer-socials .social-icon,
.site-footer .footer-contact-row .footer-wa-icon{
  box-sizing:border-box;width:44px;height:44px;min-width:44px;min-height:44px;
  display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;
}

/* v30: restore original vertical footer link stack, preserving 44px targets.
   Never use inline-flex here: each anchor must create its own row. */
.site-footer .footer-links a {
  display:flex;
  align-items:center;
  box-sizing:border-box;
  min-height:44px;
  min-width:44px;
  width:fit-content;
  max-width:100%;
  padding:8px 8px;
  margin:0;
  line-height:1.35;
  overflow-wrap:anywhere;
}
.site-footer .footer-contact-row a:not(.footer-wa-icon) {
  display:inline-flex;
  align-items:center;
  box-sizing:border-box;
  min-height:44px;
  padding:8px 8px;
  line-height:1.35;
}
.site-footer .footer-contact-row { row-gap:8px; }

/* v31: compact, TOP-aligned footer. Long 44px link lists must never
   vertically center the brand/logo or push it beneath the column headings. */
.site-footer { padding-top:32px; }
.site-footer .footer-top { align-items:start; gap:32px; padding-bottom:20px; }
.site-footer .footer-brand { align-self:start; margin:0; padding:0; }
.site-footer .footer-links { align-self:start; }
.site-footer .footer-links > div { align-self:start; }
@media(max-width:900px) {
  .site-footer { padding-top:28px; }
  .site-footer .footer-top { gap:22px; }
}

/* Dashboard hero on a phone: the trip facts and Pay button must stay
   inside the card. A 4-column max-content row was clipping the last chip. */
@media(max-width:700px){
  .dash-welcome{left:16px;right:16px}
  .dash-welcome h2{font-size:24px;overflow-wrap:anywhere}
  .dash-bleed .hero-inner{width:calc(100% - 32px);padding:100px 0 56px}
  .dash-bleed .hero-copy{max-width:100%;min-width:0}
  .dash-bleed .hero-copy h1{overflow-wrap:anywhere}
  .dash-bleed .dashboard-kpis,
  .dash-bleed .dashboard-kpis.kpis-3{
    grid-template-columns:1fr 1fr;
    width:100%;
    max-width:100%;
  }
  .dash-bleed .dashboard-kpi{min-width:0}
  .dash-bleed .dashboard-kpi strong,
  .dash-bleed .dashboard-kpi small{overflow-wrap:anywhere}
  .dash-bleed .dash-pay{grid-column:1 / -1;width:100%}
  .dash-bleed .dash-pay .btn{width:100%;justify-content:center}
}

/* V129 — Directory photo alignment: keep the standalone name ribbon but
   fill the entire image track. The previous contain rule letterboxed narrow
   portraits with a blank strip beneath the photograph. */
.route-member .member-board .member-slab-photo > img,
.route-members .member-board .member-slab-photo > img {
  object-fit:cover!important;
  object-position:center 30%!important;
  align-self:stretch;
  justify-self:stretch;
  display:block;
}

/* V139 — denser Member/Captain directory while retaining the photo/name ribbon. */
.clubhouse-shell .member-board {
  grid-template-columns:repeat(auto-fill,minmax(min(100%,350px),1fr));
  gap:10px;
}
.clubhouse-shell .member-board .member-slab {
  grid-template-columns:34% minmax(0,1fr);
  min-height:170px;
}
.clubhouse-shell .member-board .member-slab-photo {min-height:170px;}
.clubhouse-shell .member-board .member-slab-photo strong {
  left:0;
  right:0;
  bottom:0;
  font-size:clamp(13px,1.15vw,16px);
  line-height:1.15;
}
.clubhouse-shell .member-board .member-slab-body {min-width:0;padding:10px 12px 9px;gap:2px;}
.clubhouse-shell .member-board .member-slab-job {font-size:10px;letter-spacing:.09em;overflow-wrap:anywhere;}
.clubhouse-shell .member-board .member-slab-city {font-size:12px;}
.clubhouse-shell .member-board .member-slab-quote {font-size:14px;line-height:1.26;margin:4px 0 6px;overflow-wrap:anywhere;}
.clubhouse-shell .member-board .member-slab-foot {font-size:10px;padding-top:6px;gap:6px;}
.clubhouse-shell .member-board .trip-capsules {gap:4px;}
.clubhouse-shell .member-board .trip-capsules .tcap {font-size:10px;padding:4px 6px;}
@media(max-width:640px){
  .clubhouse-shell .member-board {grid-template-columns:1fr;gap:12px;}
  .clubhouse-shell .member-board .member-slab {grid-template-columns:1fr;min-height:0;}
  .clubhouse-shell .member-board .member-slab-photo {min-height:210px;}
  .clubhouse-shell .member-board .member-slab-body {padding:11px 13px;}
}
