/* Alpine editorial: one typeface and quiet surfaces. */

html { scroll-behavior: smooth; }
body {
  color: var(--text);
  font: 400 1rem/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif;
}
button, input, select, textarea, .participant-email-address-list { font-family: inherit; }
body.admin-body { background: #e7f1ed; }
body.club-page, body.trip-safety-page, body.profile-waiver-new-page {
  min-height: 100vh;
  background: linear-gradient(180deg, rgb(15 23 20 / 55%), transparent 180px),
    linear-gradient(180deg, rgb(15 23 20 / 30%), rgb(15 23 20 / 65%)),
    url("/assets/backgrounds/tuolumne-meadows-fairview-dome-b48a24d2.jpg") center / cover fixed;
}
body:is(.trips-index-page, .session-new-page, .password-reset-new-page,
  .password-reset-edit-page, .not-found-page, .registration-new-page,
  .trip-what-to-expect-page, .help-request-page, .trip-show-page,
  .profile-show-page, .profile-edit-page, .trip-safety-page, .profile-waiver-new-page) {
  background-attachment: scroll;
}

:is(h1, h2, h3, h4) {
  font-family: inherit;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.12;
}
h1 { font-size: clamp(2.7rem, 5vw, 4.6rem); }
h2 { font-size: clamp(1.65rem, 2.8vw, 2.25rem); }
h3 { font-size: 1.4rem; font-weight: 500; }
@media (min-width: 901px) {
  .trip-summary-copy h1 { font-size: clamp(2.208rem, 4.048vw, 3.68rem); }
  .trip-summary-copy > h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
}
a { color: var(--accent); font-weight: 500; text-underline-offset: .2em; }
:is(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.muted, .eyebrow, .panel-header p { color: var(--muted); }
.eyebrow { font-size: .9rem; font-weight: 600; letter-spacing: .12em; }

/* Navigation sits on the photograph where a page has one. */
.public-header, .admin-header {
  width: min(1280px, calc(100% - 48px));
  min-height: 90px;
  padding: 15px 0;
  align-items: center;
}
.public-brand { gap: 28px; flex-wrap: nowrap; }
.public-nav { gap: clamp(14px, 2vw, 30px); }
.public-nav form { margin: 0; }
.public-nav-group { position: relative; }
.public-nav-group summary, .public-nav-toggle { -webkit-user-select: none; user-select: none; }
.public-nav-group summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 10px;
  border-radius: var(--ui-radius);
  cursor: pointer;
  color: var(--accent-dark);
  font-weight: 500;
  list-style: none;
}
.public-nav-group summary::-webkit-details-marker { display: none; }
/* A drawn chevron centers on the text; the "⌄" glyph sat below it. Points up while open. */
.public-nav-group summary::after { content: ""; width: .4em; height: .4em; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-25%) rotate(45deg); }
.public-nav-group[open] summary::after { transform: translateY(25%) rotate(-135deg); }
.public-nav-group:not([open]) .public-nav-dropdown { display: none; }
.public-nav-dropdown {
  position: absolute;
  z-index: 50;
  top: 100%;
  left: -16px;
  display: grid;
  min-width: 190px;
  margin-top: 8px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--ui-radius);
  background: var(--panel);
  box-shadow: 0 8px 20px rgb(11 25 19 / 15%);
}
.account-nav .public-nav-dropdown { right: 0; left: auto; }
.public-nav-group .public-nav-dropdown :is(a, .nav-button) {
  display: flex;
  width: 100%;
  min-height: 42px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  text-align: left;
  text-shadow: none;
}
.public-nav-dropdown form { width: 100%; }
.public-nav-group .public-nav-dropdown > :last-child,
.public-nav-group .public-nav-dropdown > :last-child .nav-button { border-bottom: 0; }
.public-nav a.nav-auth { padding: 8px 14px; border: 1px solid var(--accent); border-radius: var(--ui-radius); }
.public-nav a.nav-auth-signup { background: var(--accent); color: #fff; }
.public-nav a, .public-admin-link, .nav-button,
.admin-nav a, .admin-public-link, .admin-nav .button {
  min-height: 44px;
  padding: 9px 0 6px;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--accent-dark);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.public-nav a:hover, .nav-button:hover,
.admin-nav a:hover, .admin-public-link:hover { opacity: .78; }
body:is(.club-page, .home-page, .trips-index-page, .session-new-page, .password-reset-new-page,
  .password-reset-edit-page, .not-found-page, .registration-new-page,
  .trip-what-to-expect-page, .help-request-page, .trip-show-page,
  .profile-show-page, .profile-edit-page, .trip-safety-page, .profile-waiver-new-page)
  :is(.site-name, .site-name small, .public-nav a, .public-admin-link, .nav-button) {
  color: #fff;
  background: transparent;
  border-color: transparent;
  text-shadow: 0 1px 8px rgb(0 0 0 / 45%);
  backdrop-filter: none;
}
body:is(.club-page, .home-page, .trips-index-page, .session-new-page, .password-reset-new-page,
  .password-reset-edit-page, .not-found-page, .registration-new-page,
  .trip-what-to-expect-page, .help-request-page, .trip-show-page,
  .profile-show-page, .profile-edit-page, .trip-safety-page, .profile-waiver-new-page)
  .public-nav-group summary { color: #fff; text-shadow: 0 1px 8px rgb(0 0 0 / 45%); }
.public-nav-group[open] > summary {
  background: var(--accent);
  color: #fff;
  text-shadow: none;
}
body:is(.club-page, .home-page, .trips-index-page, .session-new-page, .password-reset-new-page,
  .password-reset-edit-page, .not-found-page, .registration-new-page,
  .trip-what-to-expect-page, .help-request-page, .trip-show-page,
  .profile-show-page, .profile-edit-page, .trip-safety-page, .profile-waiver-new-page)
  .public-nav a.nav-auth-login { border-color: #fff; color: #fff; }
body:is(.club-page, .home-page, .trips-index-page, .session-new-page, .password-reset-new-page,
  .password-reset-edit-page, .not-found-page, .registration-new-page,
  .trip-what-to-expect-page, .help-request-page, .trip-show-page,
  .profile-show-page, .profile-edit-page, .trip-safety-page, .profile-waiver-new-page)
  .public-nav a.nav-auth-signup { background: #fff; border-color: #fff; color: var(--accent-dark); text-shadow: none; }
body:is(.club-page, .home-page, .trips-index-page, .session-new-page, .password-reset-new-page,
  .password-reset-edit-page, .not-found-page, .registration-new-page,
  .trip-what-to-expect-page, .help-request-page, .trip-show-page,
  .profile-show-page, .profile-edit-page, .trip-safety-page, .profile-waiver-new-page)
  :is(.public-nav a, .nav-button):hover { opacity: .78; }
/* Focus rings over a photograph are white; menus that open on a light panel keep the green ring. */
body:is(.club-page, .home-page, .trips-index-page, .session-new-page, .password-reset-new-page,
  .password-reset-edit-page, .not-found-page, .registration-new-page,
  .trip-what-to-expect-page, .help-request-page, .trip-show-page,
  .profile-show-page, .profile-edit-page, .trip-safety-page, .profile-waiver-new-page) .public-header :focus-visible,
body:is(.club-page, .home-page, .trips-index-page, .session-new-page, .password-reset-new-page,
  .password-reset-edit-page, .not-found-page, .registration-new-page,
  .trip-what-to-expect-page, .help-request-page, .trip-show-page,
  .profile-show-page, .profile-edit-page, .trip-safety-page, .profile-waiver-new-page) .public-nav-checkbox:focus-visible + .public-nav-toggle,
:is(.home-hero, .trips-mobile-hero, .trip-show-mobile-hero, .public-mobile-hero) :focus-visible {
  outline-color: #fff;
}
body:is(.club-page, .home-page, .trips-index-page, .session-new-page, .password-reset-new-page,
  .password-reset-edit-page, .not-found-page, .registration-new-page,
  .trip-what-to-expect-page, .help-request-page, .trip-show-page,
  .profile-show-page, .profile-edit-page, .trip-safety-page, .profile-waiver-new-page)
  :is(.public-nav-dropdown, .public-nav-checkbox:checked ~ .public-nav) :focus-visible {
  outline-color: var(--accent);
}
/* Dropdowns open on a light panel, so they drop the white photo-header text. */
body:is(.club-page, .home-page, .trips-index-page, .session-new-page, .password-reset-new-page,
  .password-reset-edit-page, .not-found-page, .registration-new-page,
  .trip-what-to-expect-page, .help-request-page, .trip-show-page,
  .profile-show-page, .profile-edit-page, .trip-safety-page, .profile-waiver-new-page)
  .public-nav-dropdown a { color: var(--text); text-shadow: none; }
.admin-header { flex-wrap: wrap; gap: 12px 28px; border-bottom: 1px solid var(--line); }
.admin-brand { flex-shrink: 0; flex-wrap: nowrap; gap: 28px; align-items: center; }
.admin-body .site-name, .admin-body .site-name small { color: var(--text); text-shadow: none; }
.admin-nav-shell { flex-shrink: 0; max-width: 100%; }
.admin-nav { gap: clamp(12px, 1.4vw, 24px); }
.admin-nav-checkbox, .admin-nav-toggle { display: none; }

/* The homepage keeps the image and composition, with calmer type and CTA. */
.home-hero h1 {
  font: 400 clamp(3.1rem, 6vw, 5.6rem)/1.04 "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: -.055em;
}
.home-hero-copy { width: min(1120px, calc(100% - 48px)); }
.home-destinations { font-size: 1.05rem; font-weight: 400; line-height: 1.5; }
.home-hero .button {
  border-color: #fff;
  border-radius: var(--ui-radius);
  background: #fff;
  box-shadow: none;
  color: var(--accent-dark);
}
/* Common controls and content surfaces drive both public and admin pages. */
.home-hero .button:hover { color: #fff; }
.admin-nav .button.secondary { border-color: transparent; color: var(--accent); }
.public-main { position: relative; z-index: 2; }
body:is(.trips-index-page, .not-found-page,
  .trip-what-to-expect-page, .help-request-page, .trip-show-page,
  .profile-show-page, .profile-edit-page, .trip-safety-page, .profile-waiver-new-page)
  .panel { background: var(--panel); backdrop-filter: none; }
.public-main > .auth-panel { max-width: 600px; padding: 32px; }
.auth-panel > h1, body.registration-new-page .panel > h1 {
  margin: 0 0 24px;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
}
body.session-new-page .auth-panel .form-actions {
  display: grid;
  grid-template-columns: .9fr 1.1fr 1.25fr;
}
body.session-new-page .auth-panel .form-actions :is(.button, input[type="submit"]) {
  justify-content: center;
  width: 100%;
  min-width: 0;
  padding-inline: 10px;
  white-space: nowrap;
}
@media (max-width: 600px) {
  body.session-new-page .auth-panel .form-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.session-new-page .auth-panel .form-actions .button:last-child { grid-column: 1 / -1; }
}
.panel-header { align-items: baseline; }
body.trips-index-page .trips-index-panel > .panel-header { flex-wrap: wrap; }
body.trips-index-page .trips-index-panel .trips-index-notices { flex: 0 1 auto; width: 100%; margin-top: 0; }
body.trips-index-page .trips-index-notices .calendar-subscription-notice {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  padding: 16px 20px;
  justify-self: stretch;
  line-height: 1.45;
}
.calendar-subscription-notice p { margin: 0; color: var(--text); }
.calendar-subscription-notice p + p { margin-top: 6px; }
.public-beta-notice, .public-liability-warning, .empty-state,
.form-errors, .user-form-section, .note,
.trip-card, .campsite-card, .admin-campsite-card {
  border-radius: var(--ui-radius);
  box-shadow: none;
}
.public-beta-notice { background: #edf1eb; border-color: var(--line); font-size: 1rem; }
.public-beta-notice strong { border-radius: 0; font-weight: 600; }
.public-liability-warning { background: var(--panel); font-size: .88rem; }
.club-main { max-width: 1040px; }
.club-page .background-image-caption { display: block; position: static; margin: 24px; text-align: right; }
.club-panel { padding: clamp(24px, 4vw, 52px); }
.club-panel h1 { margin: 0 0 22px; }
.club-copy { max-width: 76ch; font-size: 1.05rem; line-height: 1.65; }
.club-copy .club-lead { font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.5; }
.club-copy h2 { margin-top: 32px; font-size: 1.55rem; }
.club-requirements li { margin-bottom: 18px; padding-left: 6px; }
.club-requirements strong { display: block; color: var(--accent-dark); }
.club-timeline section { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 24px; border-top: 1px solid var(--line); padding: 22px 0; }
.club-timeline h2 { margin-top: 0; }
.club-timeline .club-year { color: var(--accent-dark); font-weight: 600; }
.club-source { color: var(--muted); font-size: .95rem; }
.club-history-article { margin-top: 40px; padding-top: 36px; border-top: 1px solid var(--line); }
.club-history-article h2 { margin: 0 0 18px; font-size: clamp(2rem, 3vw, 2.7rem); }
.club-history-article h3 { margin: 32px 0 12px; }
.club-history-byline { color: var(--muted); font-size: .95rem; }
.club-history-sources { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .95rem; }
.club-history-sources h3 { margin-top: 0; }
.club-form { display: block; width: 100%; height: 1600px; margin-top: 20px; border: 1px solid var(--line); border-radius: var(--ui-radius); }
.trips-index-panel, .club-archive { position: relative; z-index: 2; }
.club-archive { margin-top: 24px; }
.club-archive > .muted { margin-bottom: 24px; }
.club-archive h1 { margin: 0 0 16px; }
.club-report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 32px; }
.club-report { min-width: 0; padding-bottom: 24px; border-bottom: 1px solid var(--line); transform-origin: top left; }
.club-report:has(.club-report-details[open]) { grid-column: 1 / -1; }
.club-report h2 { margin: 16px 0 8px; font-size: 1.4rem; font-weight: 500; }
.club-report-gallery a { display: block; border-radius: var(--ui-radius); overflow: hidden; }
.club-report-gallery img { display: block; width: 100%; height: auto; max-height: 280px; aspect-ratio: 3 / 2; object-fit: contain; background: #d5ddd73b; }
.club-report-gallery-placeholder img { object-fit: cover; border-radius: var(--ui-radius); }
.club-report-gallery a:focus-visible { outline-offset: 4px; }
.club-report-details { margin-top: 12px; }
.club-report-details summary { cursor: pointer; color: var(--accent); font-weight: 600; min-height: 44px; align-content: center; }
.club-report-copy { max-width: 76ch; margin-top: 16px; line-height: 1.65; }
.club-report-copy p { margin: 0 0 14px; }
.report-page-title { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 24px 0; }
.report-photo-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 10px; }
.club-report-gallery figure { margin: 0; min-width: 0; }
.club-report-gallery figcaption { font-size: .85rem; margin-top: 6px; overflow-wrap: anywhere; }
.report-album-card { display: block; background: #e7f1ed; padding: 24px; margin: 16px 0; border-radius: var(--ui-radius); }
.report-meta { color: var(--muted); font-size: .95rem; }
.trip-report-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin: 12px 0; }
.report-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 16px; margin-bottom: 24px; }
.report-management-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.report-management-row:last-child { border-bottom: 0; }
.report-management-row h3, .report-management-row p { margin: 0 0 8px; }
.report-management-row > :first-child { min-width: 0; overflow-wrap: anywhere; }
.report-management-row > .actions { flex-shrink: 0; }
.report-editor-columns { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; }
.report-write, .report-preview { min-width: 0; }
.report-write .field { margin: 0; }
.report-write > p, .report-write .field > p { margin: 0; }
.report-preview { padding: 20px; background: #f7f5ef; border: 1px solid var(--line); border-radius: var(--ui-radius); align-self: start; overflow-wrap: anywhere; }
.report-preview h3 { margin-top: 0; }
.report-editor .report-editor-tabs { display: none; }
.report-editor-actions { position: sticky; bottom: 0; z-index: 3; padding: 14px 0 calc(14px + env(safe-area-inset-bottom)); background: var(--panel); border-top: 1px solid var(--line); }
.report-formatting { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.report-formatting .button { min-width: 44px; min-height: 44px; padding: 6px 12px; }
.resource-list { margin: 0; padding: 0; list-style: none; }
.resource-entry { padding: 20px 0; border-top: 1px solid var(--line); }
.resource-entry h2 { margin: 0 0 6px; font-size: 1.4rem; font-weight: 500; overflow-wrap: anywhere; }
.resource-entry .report-meta { margin: 0; overflow-wrap: anywhere; }
.resource-actions { margin-top: 12px; }
.resource-form .radio-field label { min-height: 44px; }
.resource-form .radio-field legend { padding: 0; }
.resource-kind-fields { min-width: 0; margin: 0; padding: 0; border: 0; }
.report-edit-photo { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.report-edit-photo img { width: 120px; height: 90px; object-fit: cover; border-radius: var(--ui-radius); }
.report-edit-photo .actions { gap: 6px; margin-top: 8px; }
.report-edit-photo .button { min-width: 44px; min-height: 44px; font-size: .85rem; padding: 6px 10px; }
.report-auto-setting { flex-basis: 100%; }
.report-auto-setting .checkbox-field { align-items: flex-start; }
.report-auto-setting input[type="checkbox"] { flex: 0 0 18px; margin: 3px 0 0; }
.report-auto-setting > p { margin: 0; padding-left: 26px; }
.report-editor [role="alert"] { color: var(--danger); }
@media (max-width: 900px) {
  .trip-report-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .trip-report-actions > .button { min-width: 0; justify-content: center; text-align: center; padding-inline: 12px; white-space: normal; }
  .trip-report-actions > .button:only-child { grid-column: 1 / -1; }
  .report-editor-columns { display: block; }
  .report-editor > .panel-header { display: block; }
  .report-editor .report-editor-actions,
  .report-editor .report-editor-navigation,
  .report-editor .report-editor-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 10px; width: 100%; }
  .report-editor .report-editor-tabs { margin: 16px 0; }
  .report-editor-actions .button,
  .report-editor-navigation .button,
  .report-editor-tabs .button { min-width: 0; justify-content: center; text-align: center; padding-inline: 12px; white-space: normal; }
  .report-editor-navigation > .button:only-child { grid-column: 1 / -1; }
  .report-editor .report-editor-tabs .button[aria-pressed="true"] { background: var(--accent); color: white; }
  .report-editor:not(.show-preview) .report-preview, .report-editor.show-preview .report-write { display: none; }
  .report-management-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .report-editor-actions { position: static; }
  .report-edit-photo { grid-template-columns: 1fr; }
  .report-editor .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .club-report-grid { grid-template-columns: 1fr; gap: 24px; }
  .club-timeline section { grid-template-columns: 1fr; gap: 0; }
  .club-form { height: 1900px; }
}
.trip-card, .campsite-card, .admin-campsite-card {
  background: var(--panel);
  border: 1px solid var(--line);
}
.trip-card:hover, .campsite-card:hover, .admin-campsite-card:hover {
  border-color: var(--accent);
  box-shadow: none;
  transform: none;
}
.trip-card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.trip-card h2, .trip-card h3, .row-title { font-weight: 500; }
.trip-card h2 { text-decoration: none; }
.trip-card:hover h2, .trip-card:focus-visible h2 { color: var(--accent-dark); }

label, legend { font-weight: 500; }
.required-marker { color: var(--danger); font-weight: 700; }
.field :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea),
input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
select, textarea {
  min-height: 48px;
  border-color: #7f9289;
  border-radius: var(--ui-radius);
  background-color: var(--panel);
  box-shadow: none;
  color: var(--text);
  font-weight: 400;
}
textarea { min-height: 112px; }
.admin-form select { border-radius: var(--ui-radius); background-color: var(--panel); box-shadow: none; font-weight: 400; }
.currency-field, .user-role-option, .trip-status-filter { border-radius: var(--ui-radius); box-shadow: none; }
.details-list > div { grid-template-columns: 140px minmax(0, 1fr); }
.details-list dd { min-width: 0; overflow-wrap: anywhere; }
.admin-resource-link .resource-name { display: none; }
.campground-website { min-width: 0; overflow-wrap: anywhere; }
th { border-bottom-color: var(--text); color: var(--muted); font-size: .88rem; font-weight: 600; letter-spacing: .06em; }
td { border-bottom-color: var(--line); }
table { max-width: 100%; }
.admin-table-action-button, .trip-status-filters legend { font-size: .9rem; }
.table-actions a.button { display: inline-flex; align-items: center; justify-content: center; }
.admin-user-phone { white-space: nowrap; }

.trip-filter-disclosure {
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: var(--ui-radius);
}
.trip-filter-disclosure > summary { padding: 12px 16px; cursor: pointer; color: var(--accent); }
.trip-filter-disclosure > summary span { color: var(--text); }
.trip-filter-form { display: grid; gap: 12px; margin: 0; padding: 12px 16px 16px; border-top: 1px solid var(--line); }
.trip-filter-form > .button { justify-self: start; }
.trip-status-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 640px; gap: 4px 16px; }
.trip-status-filters legend { padding: 0 0 4px; text-transform: none; color: var(--muted); }
.trip-status-filter { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.campsite-reimbursement-filter-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.campsite-reimbursement-filter-form > .form-field { flex: 0 1 280px; min-width: 0; margin: 0; }

@media (max-width: 1280px) {
  .admin-body table.admin-trips-table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }
  .admin-body table.admin-trips-table.is-scrollable::before {
    content: "Swipe for more columns →";
    display: block;
    padding: 8px 12px;
    color: var(--muted);
    font-size: .88rem;
  }
  body.admin-body table.admin-trips-table td:first-child { min-width: 14rem; }
  .admin-campsite-card { min-width: 0; width: 100%; }
  .admin-campsite-card > *, .admin-campsite-card-header > *,
  .campsite-participant-groups > *, .admin-campsite-parking-section { min-width: 0; }
  .admin-campsite-card table { width: 100%; max-width: 100%; }
  .admin-campsite-card-header {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "heading" "dates" "registration" "fees" "actions";
  }
  .admin-campsite-card-header > *,
  .admin-campsite-card .stats { min-width: 0; }
  .admin-campsite-card .campsite-card-actions { justify-self: start; }
  .admin-campsite-card .campsite-action-buttons { flex-wrap: wrap; white-space: normal; }
}

@media (min-width: 1101px) and (max-width: 1280px) {
  .admin-body .trip-waitlist-section th:last-child .info-tooltip-box {
    right: 0;
    left: auto;
    transform: translateY(4px);
  }
  .admin-body .trip-waitlist-section th:last-child .info-tooltip:is(:hover, :focus, :focus-visible) .info-tooltip-box {
    transform: none;
  }
}

@media (max-width: 1100px) {
  .admin-body table,
  body.profile-show-page .public-card-table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }
  .admin-body table.is-scrollable::before,
  .transaction-fee-table.is-scrollable::before {
    content: "Swipe for more columns →";
    display: block;
    padding: 8px 12px;
    color: var(--muted);
    font-size: .88rem;
  }
  body.admin-body table.user-trip-history-table > tbody > tr > td:first-child,
  body.profile-show-page table.user-trip-history-table > tbody > tr > td:first-child { min-width: 14rem; }
  body.admin-body table.participant-email-table,
  body.admin-body table.campsite-parking-table,
  body.admin-body .help-subscriber-table table,
  body.admin-body .trip-details-email-recipient-panel table.trip-details-email-recipient-table {
    display: table;
    width: 100%;
    overflow: visible;
  }
  body.admin-body table.participant-email-table :is(th, td),
  body.admin-body table.campsite-parking-table :is(th, td),
  body.admin-body .help-subscriber-table table :is(th, td),
  body.admin-body .trip-details-email-recipient-panel table.trip-details-email-recipient-table :is(th, td) { min-width: 0; }
  .help-subscriber-table td:first-child { overflow-wrap: anywhere; }
  .campsite-reimbursement-groups, .campsite-reimbursement-trip,
  .campsite-reimbursement-trip .table-wrapper { min-width: 0; }
  .campsite-reimbursement-trip .table-wrapper { width: 100%; max-width: 100%; }
  .campsite-reimbursement-trip-heading h3 { min-width: 0; overflow-wrap: anywhere; }
}

@media (max-width: 980px) {
  .admin-header { flex-direction: row; align-items: center; min-height: 76px; gap: 10px; }
  .admin-brand { gap: 12px; justify-content: flex-start; min-width: 0; }
  .admin-nav-shell { position: relative; margin-left: auto; }
  .admin-nav-checkbox {
    position: absolute;
    display: block;
    width: 1px !important;
    height: 1px;
    opacity: 0;
  }
  .admin-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid var(--accent);
    border-radius: var(--ui-radius);
    font-weight: 500;
  }
  .admin-nav-checkbox:focus-visible + .admin-nav-toggle { outline: 3px solid var(--accent); outline-offset: 3px; }
  .admin-nav {
    position: absolute;
    z-index: 30;
    top: calc(100% + 8px);
    right: 0;
    display: none;
    width: min(280px, calc(100vw - 32px));
    max-height: calc(100dvh - 84px);
    overflow-y: auto;
    padding: 10px 18px;
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: 0 8px 20px rgb(11 25 19 / 15%);
  }
  .admin-nav-checkbox:checked ~ .admin-nav { display: grid; gap: 0; }
  .admin-nav :is(a, .button) { display: flex; min-height: 46px; width: 100%; border-bottom: 1px solid var(--line); justify-content: flex-start; text-align: left; }
  .admin-nav form { width: 100%; }
  .admin-nav form .button { border: 0; padding-inline: 0; }

  /* Record lists reflow; dense comparison tables keep their scroll behavior. */
  body.admin-body table.admin-record-table {
    display: block;
    width: 100%;
    min-width: 0;
    overflow: visible;
  }
  body.admin-body .trip-details-email-recipient-panel table.trip-details-email-recipient-table.admin-record-table { display: block; }
  body.admin-body table.admin-record-table::before,
  body.admin-body table.admin-record-table.is-scrollable::before { display: none; }
  body.admin-body table.admin-record-table > thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .admin-record-table > tbody { display: grid; gap: 12px; }
  .admin-record-table > tbody > tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) fit-content(40%);
    gap: 6px 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--ui-radius);
    background: var(--panel);
  }
  body.admin-body table.admin-record-table > tbody > tr > td {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 7rem minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    width: auto;
    min-width: 0;
    padding: 2px 0;
    border: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .admin-record-table > tbody > tr > td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: .9rem; font-weight: 500; }
  .admin-record-table > tbody > tr > td > * { min-width: 0; }
  .admin-record-table > tbody > tr > td > .status { justify-self: start; }
  body.admin-body table.admin-record-table > tbody > tr > .admin-record-title {
    display: block;
    margin-bottom: 4px;
    font-size: 1.15rem;
    font-weight: 500;
  }
  .admin-record-title > span { display: block; color: var(--muted); font-size: 1rem; font-weight: 400; }
  body.admin-body table.campsite-reimbursement-table > tbody > tr > .admin-record-title { grid-column: 1; }
  body.admin-body table.campsite-reimbursement-table > tbody > tr > .admin-record-site {
    display: flex;
    grid-column: 2;
    gap: 4px;
    font-weight: 500;
  }
  .admin-record-table .date-pair div { grid-template-columns: 1fr; gap: 0; }
  body.admin-body table.admin-record-table > tbody > tr > .table-actions {
    display: flex;
    order: 1;
    flex-wrap: wrap;
    padding-top: 8px;
  }
  .admin-record-table > tbody > tr > td.table-actions::before { content: none; }
  body.admin-body table.admin-record-table > tbody > tr > .table-actions:empty { display: none; }
  .admin-record-table .table-actions :is(a, form) { margin: 0; }
  .admin-record-table .reimbursement-status-link { min-height: 44px; text-align: left; }
  body.admin-body table.admin-signups-table.admin-record-table > tbody > tr > .admin-record-empty,
  body.admin-body table.trip-revenue-table.admin-record-table > tbody > tr > td:empty { display: none; }
  body.admin-body table.admin-signups-table > tbody > tr > td[data-label] { display: block; }
  .admin-signups-table > tbody > tr > td[data-label]::before { display: block; margin-bottom: 4px; }
  .admin-campsite-card .confirmed-signups-section { padding: 10px; }
  body.admin-body table.admin-confirmed-participants-table > tbody > tr { padding: 12px; gap: 6px; }
  body.admin-body table.admin-confirmed-participants-table > tbody > tr > td[data-label]:not(.admin-record-empty) {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }
  .admin-confirmed-participants-table > tbody > tr > td[data-label]::before { flex-shrink: 0; margin: 0 auto 0 0; }
  .admin-confirmed-participants-table .admin-payment-control { min-width: 0; grid-template-columns: minmax(0, max-content) minmax(0, max-content); }
  .admin-confirmed-participants-table .admin-payment-status { white-space: normal; }
  body.admin-body table.admin-confirmed-participants-table > tbody > tr > .table-actions > [data-controller="modal"]:has(> .button) { width: 100%; margin: 0; }
  body.admin-body table.admin-confirmed-participants-table > tbody > tr > .table-actions > [data-controller="modal"]:not(:has(> .button)) { display: contents; }
  .admin-confirmed-participants-table > tbody > tr > .table-actions > [data-controller="modal"] > .button { width: 100%; justify-content: center; }
  .admin-users-table .user-name-cell { grid-template-columns: 18px minmax(0, 1fr); max-width: 100%; }
  .admin-users-table .user-name-cell a { overflow-wrap: anywhere; }
  body.admin-body table.admin-user-trip-history > tbody > tr > td:first-child { min-width: 0; }
  body.admin-body table.admin-user-trip-history > tbody > tr > .user-trip-transactions-cell { display: block; }
  .admin-user-trip-history .user-trip-transactions-cell::before { display: block; margin-bottom: 8px; }
  body.admin-body table.transaction-fee-table.admin-record-table > tfoot { display: block; }
  body.admin-body table.transaction-fee-table.admin-record-table > tfoot > tr {
    display: block;
    margin-top: 12px;
    padding: 12px 14px;
    border-top: 1px solid var(--line);
  }
  body.admin-body table.transaction-fee-table.admin-record-table > tfoot > tr > td { display: none; }
  body.admin-body table.transaction-fee-table.admin-record-table > tfoot > tr > td:last-child {
    display: grid;
    grid-template-columns: 7rem minmax(0, 1fr);
    gap: 8px;
    width: auto;
    min-width: 0;
    padding: 0;
    text-align: left;
  }
  .transaction-fee-table.admin-record-table > tfoot > tr > td:last-child::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: .9rem;
    font-weight: 500;
  }
  .campsite-reimbursement-status { align-items: start; flex-direction: column; gap: 0; }
  .admin-trips-table > tbody > tr { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-trips-table > tbody > tr > td:nth-child(n + 2):nth-child(-n + 5) { text-align: right; }
  .admin-trips-table > tbody > tr > td[data-label]::before { text-align: left; }
  .admin-trips-table > tbody > tr > td > :is(.status, .date-pair, .coordinator-contact) { justify-self: end; }
  body.admin-body table.admin-trips-table > tbody > tr > td:nth-child(n + 6):nth-child(-n + 8) {
    display: flex;
    flex-direction: column;
    grid-column: auto;
    gap: 4px;
    margin-top: 4px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--ui-radius);
    font-size: 1.2rem;
    font-weight: 500;
    box-shadow: none;
  }
  .admin-trips-table > tbody > tr > td:nth-child(n + 6):nth-child(-n + 8)::before { min-height: 2.8em; font-size: .8rem; line-height: 1.4; }

  .trip-management-content, .trip-management-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; width: 100%; }
  .trip-management-actions > a.button {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 8px;
    gap: 12px;
    min-height: 48px;
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    color: var(--accent);
    font-size: 1rem;
    text-align: left;
    white-space: normal;
    box-shadow: none;
  }
  .trip-management-actions > a.button:last-child { border-bottom: 0; }
  .trip-management-actions > a.button:hover { background: var(--bg); }
  .trip-management-actions > a > .status { grid-column: 2; }
  .trip-management-actions > a::after {
    content: "";
    grid-column: 3;
    width: 6px;
    height: 6px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
  }
  .trip-management-reimbursement { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
}

@media (max-width: 760px) {
  .trip-card-meta dd { min-width: 0; text-align: right; }
  .admin-trip-resources-panel .admin-resource-link { grid-template-columns: minmax(0, 1fr); }
  .admin-resource-link > dt, .admin-resource-link .resource-url { display: none; }
  .admin-resource-link .resource-name { display: inline; }
  .admin-resource-link a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; }
  .trip-status-filters { grid-template-columns: 1fr; }
  .trip-filter-form > .button { width: 100%; }
  .campsite-reimbursement-filter-form > .form-field { flex-basis: 100%; }
  .campsite-reimbursement-filter-actions { width: 100%; }
  .campsite-reimbursement-filter-actions > .button { flex: 1 1 auto; }
  .public-header, .admin-header, .public-main {
    width: min(100% - 32px, 1280px);
  }
  .public-header { min-height: 76px; padding: 12px 0; }
  /* The base rule hides this input; it must render (invisibly) so keyboard users can reach the Menu toggle. */
  .public-nav-checkbox { display: block; width: 1px !important; }
  .public-nav-checkbox:focus-visible + .public-nav-toggle { outline: 3px solid var(--accent); outline-offset: 3px; }
  body:is(.home-page, .trips-index-page, .session-new-page, .password-reset-new-page,
    .registration-new-page, .help-request-page, .trip-show-page) .public-header {
    padding: 12px 16px;
  }
  .public-brand { gap: 16px; }
  .site-name span { font-size: 1.5rem; }
  .site-name small { font-size: .91rem; }
  .public-nav-toggle { border-radius: var(--ui-radius); font-weight: 500; }
  .public-nav {
    max-height: calc(100dvh - 84px);
    overflow-y: auto;
    border-radius: var(--ui-radius);
    background: var(--panel);
    box-shadow: 0 8px 20px rgb(11 25 19 / 15%);
  }
  .public-nav-checkbox:checked ~ .public-nav .public-nav-group summary { width: 100%; color: var(--text); text-shadow: none; }
  .public-nav-checkbox:checked ~ .public-nav .public-nav-group[open] > summary { background: var(--accent); color: #fff; }
  .public-nav-dropdown { position: static; min-width: 0; padding: 0 0 0 14px; border: 0; box-shadow: none; }
  .public-nav .public-nav-dropdown a { width: 100%; border-radius: 0; }
  .public-nav-checkbox:checked ~ .public-nav a.nav-auth-login { border-color: var(--accent); color: var(--accent-dark); }
  .public-nav-checkbox:checked ~ .public-nav a.nav-auth-signup { background: var(--accent); border-color: var(--accent); color: #fff; text-shadow: none; }
  .public-nav a, .public-nav .nav-button,
  body:is(.home-page, .trips-index-page, .session-new-page, .password-reset-new-page,
    .registration-new-page, .help-request-page, .trip-show-page) :is(.public-nav a, .nav-button) {
    color: var(--text);
    text-shadow: none;
  }
  .public-nav-checkbox:checked ~ .public-nav :is(a, .nav-button) {
    color: var(--text);
    text-shadow: none;
  }
  :is(.public-mobile-hero-session, .public-mobile-hero-password-reset, .public-mobile-hero-registration) { min-height: 180px; }
  .public-main > .auth-panel { padding: 20px; }
  .home-hero-copy { width: min(100% - 32px, 1120px); padding-top: 150px; }
  .home-main { width: 100%; }
  .home-hero h1 { font-size: clamp(2.8rem, 11vw, 4.5rem); }
  .home-destinations { font-size: 1rem; }
  .home-hero-caption, .trips-mobile-hero-caption,
  .public-mobile-hero-caption, .trip-show-mobile-hero-caption { font-size: .88rem; }
  body.trip-show-page .confirmed-participants-table.public-card-table > tbody > tr > td::before { font-size: .75rem; }
  .panel { padding: 20px; }
  body.trip-show-page .public-main > .panel { background: transparent; }
  body.trip-show-page .trip-show-mobile-hero h1,
  body.trip-show-page .public-main h2 { font-weight: 700; }
  body:not(.admin-body) .public-card-table > tbody > tr { border-radius: var(--ui-radius); background: var(--panel); }
  body.trip-show-page .confirmed-participants-table.public-card-table .public-party-primary-row,
  body.trip-show-page .confirmed-participants-table.public-card-table .public-party-last-row { border-radius: var(--ui-radius); }
  body.profile-show-page .public-card-table { display: grid; overflow: visible; }
  body.profile-show-page .user-trip-history-table.public-card-table > tbody > tr > td > * { grid-column: 2; }
  body.profile-show-page .user-trip-history-table.public-card-table .date-pair div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
  .admin-body table :is(th, td) { min-width: 108px; }
  .admin-body table :is(th, td):first-child { min-width: 170px; }
  body.profile-show-page table.user-trip-history-table.public-card-table > tbody > tr > td:first-child { min-width: 0; }
}

.participant-emails-panel .panel-header,
.participant-email-section-header { flex-wrap: wrap; }
.participant-emails-panel .button,
.participant-email-copy-button { white-space: nowrap; }

@media (max-width: 360px) {
  .details-list > div,
  .date-pair div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .details-list dt, .date-pair dt { white-space: normal; }
  .details-list dd, .date-pair dd { overflow-wrap: anywhere; }
  /* Stack profile cards so badges like "Confirmed" don't break mid-word. */
  body.profile-show-page .public-card-table > tbody > tr > td { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  body.profile-show-page .user-trip-history-table.public-card-table > tbody > tr > td > * { grid-column: 1; }
  .public-header { gap: 8px; }
  .public-brand { gap: 10px; }
  .site-name span { font-size: 1.28rem; }
  .site-name small { font-size: .776rem; letter-spacing: 0; }
  .public-nav-toggle { min-width: 54px; padding: 8px; }
  .public-nav-toggle-icon { display: none; }
  .home-hero-copy { padding-top: 125px; }
  .home-hero h1 { font-size: clamp(2.35rem, 11vw, 3rem); }
  .home-destinations { font-size: .95rem; gap: 4px 0; }
  .panel { padding: 16px; }
  .button, input[type="submit"] { white-space: normal; }
  .admin-nav a { white-space: normal; }
  .admin-nav-toggle { min-width: 54px; padding: 8px; }
}

@media (max-width: 900px) {
  body.trip-show-page .campsite-card-header { flex-direction: column; align-items: stretch; }
  body.trip-show-page .campsite-signup-action { min-width: 0; justify-items: start; }
  body.trip-show-page .campsite-signup-action p { text-align: left; }
  body.trip-show-page .campsite-card-list { padding-left: 0; }
  body.trip-show-page .campsite-card,
  body.trip-show-page .campsite-card > *,
  body.trip-show-page .campsite-participant-groups > *,
  body.trip-show-page .public-campsite-parking-section { min-width: 0; }
  body.trip-show-page table { display: block; width: 100%; max-width: 100%; overflow-x: auto; }
  body.trip-show-page .date-pair div { grid-template-columns: 84px minmax(0, 1fr); }
  body.trip-show-page .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.admin-campsite-card .campsite-card-actions { justify-self: stretch; justify-items: stretch; }
.admin-campsite-card .campsite-signup-mode { justify-items: stretch; }
.admin-campsite-card .campsite-action-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.admin-campsite-card .campsite-action-buttons > [data-controller="modal"] { display: flex; min-width: 0; }
.admin-campsite-card .campsite-action-buttons > :only-child { grid-column: 1 / -1; }
.admin-campsite-card .campsite-action-buttons > .button,
.admin-campsite-card .campsite-action-buttons > [data-controller="modal"] > .button,
.admin-campsite-card .campsite-signup-mode-button { width: 100%; min-width: 0; padding-inline: 10px; white-space: normal; justify-content: center; text-align: center; }
@media (min-width: 981px) and (max-width: 1280px) {
  .admin-campsite-card .campsite-card-actions { width: 100%; max-width: 26rem; justify-self: start; }
}

/* Club review: quieter metadata, clear modes, and grouped campsite content. */
.public-admin-link { display: inline-flex; align-items: center; }
.admin-mode-label { margin: 0; font-size: 1.1rem; font-weight: 700; }
.admin-api-note { margin-top: 32px; font-size: .85rem; }
.trip-card-meta div { grid-template-columns: minmax(max-content, 7.5rem) minmax(0, 1fr); }
.trip-card-meta dt { white-space: nowrap; }
.admin-trips-table .admin-table-action-button { font-size: .8rem; padding: 6px 10px; min-height: 36px; }
.campsite-card, .admin-campsite-card { border-left: 4px solid var(--accent); }
.report-section-divider { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.club-history-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 28px 0; }
.club-history-photos img { width: auto; max-width: 100%; height: auto; justify-self: center; align-self: center; }
@media (min-width: 901px) {
  .trip-summary-copy .trip-title-line { align-items: center; }
  .trip-summary-copy .trip-title-line h1 { flex-basis: auto; text-box-trim: trim-both; text-box-edge: cap alphabetic; }
  .trip-summary-copy .trip-title-line > .status { align-self: center; margin-block: 0; }
}
@media (max-width: 980px) {
  .admin-trips-table .admin-table-action-button { min-height: 44px; }
  .admin-trips-table .table-actions { gap: 8px; }
  .admin-trips-table .table-actions > :is(.button, form),
  .admin-trips-table .table-actions form .button { width: 100%; }
  .admin-mode-label { flex-basis: 100%; order: 3; font-size: .95rem; }
  .admin-brand { gap: 16px; }
}
@media (max-width: 900px) {
  body.trip-show-page .campsite-card-list { margin-left: 0; margin-right: 0; }
  body.trip-show-page .campsite-card { border-radius: var(--ui-radius); }
}
@media (max-width: 600px) {
  .club-history-photos { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .panel > .admin-form > .form-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
  .panel > .admin-form > .form-actions > :is(.button, input[type="submit"]) { width: 100%; min-width: 0; padding-inline: 10px; white-space: normal; }
  .panel > .admin-form > .form-actions > .danger-form-action { grid-column: 1 / -1; width: 100%; margin-left: 0; }
  .panel > .admin-form > .form-actions > .danger-form-action :is(.button, [data-controller="modal"], .disabled-tooltip, .disabled-modal-trigger) { width: 100%; margin-inline: 0; }
  .panel > .admin-form > .form-actions > :only-child { grid-column: 1 / -1; }
  :is(.signup-modal, .confirmation-modal) .form-actions > form { width: 100%; margin: 0; }
  body.trips-index-page .trips-index-panel { background: transparent; }
  body.trips-index-page #archived-trips > .panel-header { margin-bottom: 0; }
  .trip-list-empty {
    margin: 0;
    padding: 12px 14px;
    border: 1px solid rgb(255 255 255 / 44%);
    border-radius: var(--ui-radius);
    background: var(--panel);
  }
}
