/* Quick member actions, shared with the RSVP dialog on older event links. */
.page-index.home-member .home-hero {
  display: block;
  min-height: 0;
  padding: 22px 28px;
  margin-bottom: 24px;
}
.page-index.home-member .home-hero .hero-copy { padding: 0; }
.page-index.home-member .home-hero h1 { font-size: clamp(1.6rem, 4vw, 2.25rem); margin: 5px 0 0; line-height: 1.15; }
.page-index.home-member .home-hero .season-panel,
.page-index.home-member .home-hero .hero-copy > p:not(.eyebrow),
.page-index.home-member .home-hero .actions,
.page-index.home-member .home-hero .season-chips { display: none; }
.page-index.home-member .home-hero .eyebrow { margin: 0; font-size: .67rem; }
.page-index.home-member .home-hero + .section { margin-top: 0; }
#nextEvent.has-event { position: relative; isolation: isolate; overflow: hidden; background: var(--surface); }
#nextEvent.has-event > :not(.home-event-cover) { position: relative; z-index: 1; }
#nextEvent .home-event-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .14; pointer-events: none; }
.home-availability { min-width: 0; }
.home-players-toggle { display: inline-flex; align-items: center; gap: 6px; margin-top: 9px; padding: 3px 0; min-height: 30px; border: 0; background: none; color: var(--green); font-size: .83rem; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.home-players-toggle:hover { color: var(--ink); }
.home-players-toggle:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.home-players-toggle[aria-expanded="true"] span { transform: rotate(180deg); }
.home-playing-list { margin: 10px 0 18px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--surface) 90%, transparent); }
.home-playing-list[hidden] { display: none; }
.home-playing-list h3 { font-size: 1rem; margin: 0 0 10px; }
.home-playing-list h3:not(:first-child) { margin-top: 18px; }
.home-playing-list ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 7px 20px; list-style: none; padding: 0; margin: 0; }
.home-playing-list li { min-width: 0; overflow-wrap: anywhere; padding: 7px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.home-playing-list li .event-payment-status { display: flex; margin-top: 4px; font-weight: 500; }
.home-playing-list li small { font-weight: 400; color: var(--muted); }
.home-playing-list p { margin: 0; }
.home-event-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
.home-rsvp-controls { display: grid; justify-items: start; gap: 9px; }
.home-rsvp-controls > button { min-height: 44px; }
.home-rsvp-confirmation { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 9px 14px; border: 1px solid #a3ccb6; border-radius: 9px; background: #e4f5e8; color: #174d32; font-weight: 800; }
.home-rsvp-confirmation span { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: #267d4e; color: #fff; font-size: .85rem; }
.home-rsvp-cutoff { max-width: 42ch; margin: 0; color: var(--muted); font-size: .87rem; line-height: 1.45; }
.home-event-fee { margin: 0; font-size: .9rem; }
.home-event-fee strong { margin-left: 6px; color: var(--ink); font-size: 1.25rem; }
.home-payment-action { display: grid; justify-items: start; gap: 10px; padding-top: 4px; }
.home-payment-action button { min-height: 44px; }
.dark-mode .home-rsvp-confirmation { border-color: #3e7857; background: #204432; color: #e3f9e8; }
.home-event-actions button { min-height: 48px; flex: 0 1 auto; }
.home-event-details { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; padding: 8px 0 4px; }
.home-invite-note { margin: 8px 0 14px; font-size: .88rem; }
[data-home-status]:empty { display: none; }
.home-invite-management { border-top: 1px solid var(--line); padding: 16px 0; margin-top: 18px; }
.home-invite-management summary { font-weight: 750; cursor: pointer; }
.home-invite-management .response-row { min-width: 0; flex-wrap: wrap; gap: 10px; }
.home-invite-management .response-row > span { flex-basis: 100%; }
#homeBuggy[hidden], .home-hole-action[hidden] { display: none; }
#homeOperations .booking-status h2 { font-size: 1.35rem; }
#homeOperations .booking-status { margin-bottom: 10px; }
#homeOperations [data-guest-invites][hidden] { display: none; }
#homeOperations[hidden] { display: none; }
.has-published-tee > .next-event-heading,
.has-published-tee > .next-event-facts,
.has-published-tee > .home-playing-list,
.has-published-tee .home-rsvp-confirmation,
.has-published-tee .home-event-fee { display: none; }
.has-published-tee #homeTeeGroup { margin: 0 0 16px; }
.has-published-tee .home-member-grid:has(#homeOperations[hidden]) { display: none; }
.has-published-tee .home-event-actions:empty { display: none; }
.home-day-hub[hidden] { display: none; }
.home-day-hub { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }
.home-day-hub > *, .home-day-hub [data-day-weather], .home-day-hub #homeTeeGroup { min-width: 0; max-width: 100%; }
.home-day-hub .home-hole-action { margin: 0; }
.home-round-review { border-color: #78b6a8; }
.round-review-field { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; }
.round-review-field .section-heading { margin-bottom: 10px; }
.round-review-field h3, .round-review-field p { margin: 0; }
.round-review-list { list-style: none; padding: 0; margin: 0; }
.round-review-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--line); padding: 11px 5px; }
.round-review-list li > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.round-review-list li > span:last-child { white-space: nowrap; font-weight: 800; }
.round-review-list li.is-you { background: var(--soft); border-radius: 8px; padding-inline: 10px; }
.round-review-list small { color: var(--muted); font-weight: 600; }
.home-day-directions, .home-day-weather { padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.home-day-directions h3, .home-day-weather h2 { margin: 0 0 10px; font-size: 1.2rem; }
.home-day-directions .address { margin: 0 0 10px; }
.home-day-directions .event-links { margin-top: 10px; gap: 10px 16px; }
.home-day-weather .weather-hours { max-width: 100%; }
.home-day-hub #homeTeeGroup { margin: 0; }
.is-event-day > .next-event-heading, .is-event-day > .next-event-facts, .is-event-day > .home-playing-list,
.is-event-day .home-rsvp-confirmation, .is-event-day .home-event-fee,
.is-event-day .home-rsvp-cutoff, .is-event-day .status-pill { display: none; }
@media (max-width: 600px) {
  .page-index.home-member .home-day-hub { gap: 10px; }
  .home-day-directions, .home-day-weather { padding: 15px 14px; }
  .home-day-directions .event-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .home-day-directions .event-links a { display: flex; justify-content: center; align-items: center; min-height: 42px; padding: 7px 5px; border: 1px solid var(--line); border-radius: 9px; text-align: center; font-size: .83rem; }
  .home-day-weather .weather-summary { font-size: 1rem; line-height: 1.45; }
  .home-day-weather .weather-hours { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; gap: 6px; margin: 12px 0; }
  .home-day-weather .weather-hours > div { min-width: 0; padding: 8px 3px; gap: 3px; font-size: .8rem; }
  .home-day-hub #homeTeeGroup { padding: 15px 12px; }
  .home-day-hub .member-tee-card { padding: 12px; }
  .home-day-hub .member-tee-players li { gap: 9px; }
  .home-day-hub .portrait-button, .home-day-hub .portrait-initials { flex-basis: 44px; width: 44px; height: 44px; }
  .home-day-hub .home-hole-action button { flex: 1 1 100%; }
}
.home-member-grid:has(#homeOperations[hidden]) { grid-template-columns: 1fr; }
.rsvp-dialog {
  width: min(540px, calc(100% - 24px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--ink);
  background: var(--surface);
}
.rsvp-dialog::backdrop { background: rgb(9 26 43 / .62); }
.rsvp-dialog .rsvp-form { margin: 0; padding: 0; border: 0; background: none; }
.rsvp-dialog h2 { margin: 0 0 6px; font-size: 1.7rem; }
.rsvp-dialog .rsvp-event-name { margin: 0 0 14px; color: var(--muted); font-size: .95rem; }
.rsvp-dialog .identity { margin: 0 0 20px; font-size: .85rem; }
.rsvp-dialog fieldset { min-width: 0; margin-bottom: 20px; }
.rsvp-dialog legend { margin-bottom: 9px; font-weight: 750; }
.rsvp-dialog .choices { display: flex; flex-wrap: wrap; gap: 8px; }
.rsvp-dialog .choices > label { flex: 1 1 40%; min-width: 0; }
.rsvp-dialog .choices span { padding: 11px 12px; text-align: center; min-height: 44px; }
.rsvp-dialog [data-playing] > fieldset:nth-child(2) .choices > label { flex-basis: calc(50% - 8px); }
.rsvp-dialog .check { line-height: 1.45; align-items: flex-start; }
.rsvp-dialog .check input { flex-shrink: 0; margin-top: 4px; }
.rsvp-dialog small { display: block; color: var(--muted); margin: 10px 0 16px; }
.rsvp-dialog .actions { margin-top: 22px; gap: 10px; }
.rsvp-dialog .actions button { min-height: 48px; flex: 1; }
.rsvp-dialog [hidden] { display: none !important; }
.rsvp-dialog .form-status:empty { display: none; }
@media (max-width: 600px) {
  .page-index.home-member .home-hero { padding: 18px 20px; margin: 16px 0 22px; border-radius: 18px; }
  .page-index.home-member .home-hero h1 { font-size: 1.7rem; }
  .page-index.home-member #nextEvent { padding: 20px 16px; }
  .home-playing-list { padding: 14px 16px; }
  .home-playing-list ul { grid-template-columns: 1fr 1fr; gap: 4px 14px; }
  .home-event-actions button { flex: 1 1 110px; padding: 12px 14px; }
  .home-rsvp-controls { width: 100%; }
  .home-rsvp-controls > button { width: 100%; }
  .home-payment-action, .home-payment-action button { width: 100%; }
  .home-event-actions { gap: 8px; }
  .home-member-grid > .panel { padding: 18px 15px; }
  .rsvp-dialog { padding: 22px 18px; }
}
@media (max-width: 380px) {
  .home-playing-list ul { grid-template-columns: 1fr; }
}
