/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

:root {
  --bg: #f7f5ef;
  --panel: #ffffff;
  --text: #1f2933;
  --muted: #667085;
  --line: #dedbd2;
  --accent: #2f6f5e;
  --accent-dark: #245548;
  --danger: #b42318;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.has-environment-indicator {
  padding-bottom: 56px;
}

body.admin-body {
  background: #e7f1edc9;
}

body.trips-index-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgb(15 23 20 / 28%), rgb(15 23 20 / 64%)),
    url("/assets/backgrounds/half-dome-ledge-db9b08c4.jpg") center / cover fixed;
}

body.session-new-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgb(15 23 20 / 22%), rgb(15 23 20 / 62%)),
    url("/assets/backgrounds/indian-creek-super-crack-efb293c4.jpg") center / cover fixed;
}

body.password-reset-new-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgb(15 23 20 / 22%), rgb(15 23 20 / 62%)),
    url("/assets/backgrounds/castle-valley-the-rectory-b278bead.jpg") center / cover fixed;
}

body.password-reset-edit-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgb(15 23 20 / 22%), rgb(15 23 20 / 62%)),
    url("/assets/backgrounds/yosemite-valley-arrowhead-arete-91075e36.jpg") 72% center / cover fixed;
}

body.not-found-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgb(15 23 20 / 18%), rgb(15 23 20 / 58%)),
    url("/assets/backgrounds/indian-creek-falling-5fe1e2a0.png") center / cover fixed;
}

body.registration-new-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgb(15 23 20 / 24%), rgb(15 23 20 / 64%)),
    url("/assets/backgrounds/tuolumne-meadows-cathedral-peak-8e576622.jpg") center / cover fixed;
}

body.trip-what-to-expect-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgb(15 23 20 / 24%), rgb(15 23 20 / 64%)),
    url("/assets/backgrounds/tuolumne-meadows-fairview-dome-b48a24d2.jpg") center / cover fixed;
}

body.help-request-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgb(15 23 20 / 24%), rgb(15 23 20 / 64%)),
    url("/assets/backgrounds/yosemite-national-park-the-rostrum-9baa4e36.jpg") center / cover fixed;
}

body.trip-show-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgb(15 23 20 / 24%), rgb(15 23 20 / 64%)),
    url("/assets/backgrounds/joshua-tree-irs-wall-396c5c87.jpg") center / cover fixed;
}

body.profile-show-page,
body.profile-edit-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgb(15 23 20 / 24%), rgb(15 23 20 / 64%)),
    url("/assets/backgrounds/castle-valley-castleton-tower-9a0c050f.jpg") center / cover fixed;
}

body.trips-index-page .site-name,
body.trips-index-page .site-name small,
body.session-new-page .site-name,
body.session-new-page .site-name small,
body.password-reset-new-page .site-name,
body.password-reset-new-page .site-name small,
body.password-reset-edit-page .site-name,
body.password-reset-edit-page .site-name small,
body.not-found-page .site-name,
body.not-found-page .site-name small,
body.registration-new-page .site-name,
body.registration-new-page .site-name small,
body.trip-what-to-expect-page .site-name,
body.trip-what-to-expect-page .site-name small,
body.help-request-page .site-name,
body.help-request-page .site-name small,
body.trip-show-page .site-name,
body.trip-show-page .site-name small,
body.profile-show-page .site-name,
body.profile-show-page .site-name small,
body.profile-edit-page .site-name,
body.profile-edit-page .site-name small {
  color: #fff;
  text-shadow: 0 2px 10px rgb(0 0 0 / 42%);
}

body.trips-index-page .public-nav a,
body.session-new-page .public-nav a,
body.password-reset-new-page .public-nav a,
body.password-reset-edit-page .public-nav a,
body.not-found-page .public-nav a,
body.registration-new-page .public-nav a,
body.trip-what-to-expect-page .public-nav a,
body.help-request-page .public-nav a,
body.trip-show-page .public-nav a,
body.profile-show-page .public-nav a,
body.profile-edit-page .public-nav a {
  border-color: rgb(255 255 255 / 72%);
  background: rgb(255 255 255 / 88%);
}

.background-image-caption {
  position: fixed;
  right: clamp(16px, 5vw, 48px);
  bottom: clamp(16px, 4vw, 36px);
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.trips-mobile-hero {
  display: none;
}

.public-mobile-hero {
  display: none;
}

.trip-show-mobile-hero {
  display: none;
}

.error-main {
  display: grid;
  min-height: calc(100svh - 160px);
  align-items: center;
}

.error-panel {
  width: fit-content;
  max-width: min(480px, 100%);
  margin-inline: 0 auto;
  background: rgb(255 255 255 / 90%);
  border-color: rgb(255 255 255 / 58%);
  box-shadow: 0 18px 48px rgb(0 0 0 / 24%);
  backdrop-filter: blur(2px);
}

.error-panel h1 {
  margin: 0;
  color: var(--accent-dark);
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 0.95;
}

.error-panel p {
  margin: 16px 0 0;
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  font-weight: 750;
}

a {
  color: var(--accent);
  font-weight: 650;
}

button,
input,
select,
textarea {
  font: inherit;
}

.admin-header,
.panel,
.flash-messages {
  width: min(1280px, calc(100% - 32px));
  margin-inline: auto;
}

.public-header,
.public-main {
  width: min(1280px, calc(100% - 32px));
  margin-inline: auto;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  padding: 32px 0 20px;
}

.admin-header h1 {
  margin: 0;
  font-size: 2rem;
}

.admin-brand {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-end;
}

.admin-body .admin-header h1,
.admin-body .admin-header .eyebrow {
  color: var(--accent-dark);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admin-nav form {
  margin: 0;
}

.public-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 24px 0 18px;
}

.public-brand {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.site-name {
  display: inline-grid;
  gap: 0;
  color: var(--text);
  line-height: 0.95;
  text-decoration: none;
}

.site-name span {
  font-size: 1.65rem;
  font-weight: 800;
}

.site-name small {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.public-beta-notice {
  display: flex;
  flex-wrap: wrap;
  flex: 1 1 280px;
  gap: 5px 10px;
  align-items: center;
  max-width: 620px;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, #fff);
  border-radius: 6px;
  padding: 10px 13px;
  background: color-mix(in srgb, var(--accent) 8%, #fff);
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.25;
}

.public-beta-notice strong {
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
  border-radius: 999px;
  padding: 3px 9px;
  color: var(--accent-dark);
  font-size: 0.83rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.public-beta-notice a {
  color: var(--accent-dark);
  font-weight: 800;
}

.panel-header .public-beta-notice {
  flex: 0 1 620px;
  margin-top: 4px;
}

body.trips-index-page .public-beta-notice,
body.trip-show-page .public-beta-notice {
  font-size: 0.9rem;
}

body.trips-index-page .public-beta-notice strong,
body.trip-show-page .public-beta-notice strong {
  border: 0;
  border-radius: 0;
  padding: 0;
  font-size: 0.83rem;
  line-height: inherit;
  text-transform: none;
}

body.trips-index-page .trips-index-notices .public-beta-notice,
body.trip-show-page .trip-summary-header .site-feedback-callout {
  flex: 0 0 auto;
  justify-content: flex-end;
  justify-self: end;
  max-width: 620px;
  text-align: right;
}

.trips-index-notices {
  display: grid;
  flex: 0 1 620px;
  gap: 6px;
  margin-top: 54px;
}

.trips-index-notices .public-beta-notice {
  box-sizing: border-box;
  justify-content: flex-start;
  justify-self: end;
  max-width: none;
  text-align: left;
  width: fit-content;
}

.trips-index-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.trips-index-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: baseline;
  margin-block: 0 10px;
}

.trips-index-title-row h1 {
  margin: 0;
}

.trips-index-title-row a {
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 850;
}

.trips-faq-callout {
  align-self: start;
  box-sizing: border-box;
  display: flex;
  flex: none;
  justify-content: flex-start;
  justify-self: start;
  margin-left: 0;
  margin-top: 12px;
  max-width: 720px;
  text-align: left;
  width: fit-content;
}

body.trips-index-page .trips-index-panel .trips-faq-callout {
  justify-content: flex-start;
  justify-self: start;
  text-align: left;
}

body.trip-show-page .trip-summary-header .trips-faq-callout {
  justify-content: flex-start;
  justify-self: start;
  text-align: left;
}

body.trip-show-page .trip-summary-notices {
  align-self: stretch;
  align-content: space-between;
  margin-top: 0;
}

.trip-summary-description,
.trip-summary-callouts {
  grid-column: 1 / -1;
}

.trip-summary-description.description {
  max-width: none;
  margin-top: 8px;
}

.trip-summary-callouts {
  display: grid;
  grid-template-columns: minmax(0, max-content) minmax(280px, 620px);
  gap: 16px;
  align-items: start;
  justify-content: space-between;
}

.trip-resource-links {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.trip-resource-link {
  justify-self: end;
  color: var(--accent-dark);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
}

.trip-title-resource-link {
  align-self: center;
  justify-self: start;
  font-size: 0.86rem;
}

.trip-mobile-resource-link {
  display: none;
}

body.trips-index-page .trips-index-panel .trips-faq-callout,
body.trips-index-page .trips-index-notices .public-beta-notice,
body.trip-show-page .trip-summary-header .trips-faq-callout,
body.trip-show-page .trip-summary-header .site-feedback-callout {
  height: 44px;
}

body.trips-index-page .trips-index-notices .public-beta-notice {
  justify-content: flex-start;
  justify-self: end;
  text-align: left;
  width: fit-content;
}

.public-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.public-nav-shell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.public-nav-checkbox,
.public-nav-toggle {
  display: none;
}

.public-nav a,
.public-admin-link,
.nav-button {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: #fff;
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
}

.public-nav span {
  color: var(--muted);
  font-weight: 700;
}

.nav-button {
  cursor: pointer;
}

.admin-nav a,
.admin-public-link,
.button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
}

.button.secondary,
.admin-nav a,
.admin-public-link {
  background: #fff;
  color: var(--accent-dark);
}

.button.danger {
  border-color: var(--danger);
  background: var(--danger);
}

.button.danger.secondary {
  background: #fff;
  color: var(--danger);
}

.button:disabled,
input[type="submit"]:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.public-main {
  padding-bottom: 32px;
}

.home-main {
  width: 100%;
  padding-bottom: 0;
}

.home-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: calc(100svh - 104px);
  overflow: hidden;
  isolation: isolate;
  background: #1f2933;
}

.home-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 19, 25, 0.72), rgba(12, 19, 25, 0.28) 54%, rgba(12, 19, 25, 0.1)),
    linear-gradient(0deg, rgba(12, 19, 25, 0.6), rgba(12, 19, 25, 0) 48%);
  content: "";
}

.home-hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-hero-caption {
  position: absolute;
  right: clamp(16px, 5vw, 48px);
  bottom: clamp(16px, 4vw, 36px);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.home-hero-copy {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
  padding-block: clamp(32px, 7vw, 72px);
}

.home-hero h1 {
  max-width: 680px;
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 0.92;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.home-hero p:not(.eyebrow) {
  max-width: 58ch;
  margin: 24px 0 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.1rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.home-hero .button {
  border-color: #fff;
  background: #fff;
  color: var(--accent-dark);
}

.public-liability-warning {
  width: min(960px, calc(100% - 32px));
  margin: 28px auto 36px;
  padding: 14px 18px;
  border: 1px solid rgb(255 255 255 / 44%);
  border-radius: 8px;
  background: rgb(255 255 255 / 78%);
  color: #52605a;
  font-size: 0.82rem;
  line-height: 1.45;
  box-shadow: 0 16px 40px rgb(0 0 0 / 18%);
  backdrop-filter: blur(6px);
}

.public-liability-warning p {
  margin: 0;
}

.public-liability-warning p + p {
  margin-top: 10px;
}

.home-main > .public-liability-warning {
  width: 100%;
  margin: 0;
  border-inline: 0;
  border-radius: 0;
}

body.trips-index-page .public-liability-warning,
body.trip-show-page .public-liability-warning {
  width: 100%;
}

.panel {
  margin-bottom: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.public-main > .panel {
  width: 100%;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
  margin-bottom: 20px;
}

.panel h2,
.panel h3,
.panel p {
  margin-top: 0;
}

.panel-header p,
.muted {
  color: var(--muted);
}

.admin-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.help-request-filter-form,
.trip-filter-form {
  margin: 0 0 18px;
}

.help-request-status-filters,
.trip-status-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
}

.help-request-status-filters legend,
.trip-status-filters legend {
  margin-right: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.help-status-filter,
.trip-status-filter {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #d8e1dc;
  border-radius: 6px;
  background: #fff;
  color: var(--accent-dark);
  cursor: pointer;
  font-weight: 750;
}

.help-status-filter input[type="checkbox"],
.trip-status-filter input[type="checkbox"] {
  width: 18px;
  height: 18px;
  padding: 0;
  accent-color: var(--accent);
}

.trip-status-filter:has(input[type="checkbox"]:checked),
.help-status-filter:has(input[type="checkbox"]:checked) {
  border-color: var(--accent);
  background: #eaf6f1;
  box-shadow: inset 0 0 0 1px rgb(47 111 94 / 18%);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 18px;
}

.pagination-summary {
  color: var(--muted);
  font-weight: 750;
}

.deleted-trip-banner {
  display: grid;
  gap: 4px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid #f0b36a;
  border-radius: 8px;
  background: #fff8ec;
  color: var(--text);
}

.deleted-trip-banner p {
  margin: 0;
  color: var(--muted);
}

.transactions-table {
  font-size: 0.95rem;
}

.transactions-table code {
  font-size: 0.86rem;
}

.transaction-status {
  width: fit-content;
}

.user-trip-history-table {
  font-size: 0.95rem;
}

.user-trip-history-table td {
  vertical-align: top;
}

.user-trip-transactions-cell {
  min-width: 260px;
}

.user-trip-transaction-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.user-trip-transaction-item {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.user-trip-transaction-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.transaction-details-modal {
  width: min(1120px, calc(100% - 32px));
}

.transaction-details-modal .signup-modal-content {
  gap: 12px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.transaction-details-modal h2 {
  margin-bottom: 0;
}

.refund-modal .refund-amount-field {
  width: min(260px, 100%);
  min-width: 0;
  max-width: 100%;
}

.refund-modal label {
  display: inline-flex;
  gap: 2px;
  align-items: baseline;
}

.refund-modal label .required-marker {
  margin-left: 0;
}

.refund-modal .checkbox-field {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 58px;
  padding: 12px 16px;
  border: 1px solid #d8e1dc;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  transition:
    border-color 120ms ease,
    background 120ms ease,
    box-shadow 120ms ease;
}

.refund-modal .checkbox-field input[type="checkbox"] {
  width: 28px;
  height: 28px;
  padding: 0;
  flex: 0 0 28px;
  accent-color: var(--accent);
  cursor: pointer;
}

.refund-modal .checkbox-field:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgb(47 111 94 / 10%);
}

.refund-modal .checkbox-field:has(input[type="checkbox"]:checked) {
  border-color: var(--accent);
  background: #eaf6f1;
  box-shadow: inset 0 0 0 1px rgb(47 111 94 / 18%);
}

.refund-modal .checkbox-field:has(input[type="checkbox"]:focus-visible) {
  outline: 3px solid rgb(47 111 94 / 22%);
  outline-offset: 3px;
}

.transaction-details-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.details-list.transaction-details-list {
  gap: 0;
  align-content: start;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.details-list.transaction-details-list > div {
  grid-template-columns: minmax(170px, 0.46fr) minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
  min-height: 44px;
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
}

.details-list.transaction-details-list > div:last-child {
  border-bottom: 0;
}

.details-list.transaction-details-list dt {
  white-space: normal;
}

.details-list.transaction-details-list dd {
  overflow-wrap: anywhere;
}

.details-list.transaction-details-list .refund-modal,
.refund-modal {
  width: min(640px, calc(100% - 32px));
}

.details-list.transaction-details-list .refund-modal .signup-modal-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.details-list.transaction-details-list .refund-modal .signup-modal-content > div,
.details-list.transaction-details-list .refund-modal form > div,
.details-list.transaction-details-list .refund-modal .currency-field,
.details-list.transaction-details-list .refund-modal .form-actions {
  display: block;
  grid-template-columns: none;
  gap: 0;
  min-height: 0;
  padding: 0;
  border-bottom: 0;
}

.details-list.transaction-details-list .refund-modal .currency-field {
  display: grid;
  grid-template-columns: auto 1fr;
}

.details-list.transaction-details-list .refund-modal .details-list.transaction-details-list > div {
  display: grid;
  grid-template-columns: minmax(170px, 0.46fr) minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
  min-height: 44px;
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
}

.details-list.transaction-details-list .refund-modal .details-list.transaction-details-list > div:last-child {
  border-bottom: 0;
}

.details-list.transaction-details-list .refund-modal .checkbox-field {
  display: flex;
  grid-template-columns: none;
  gap: 8px;
  min-height: 0;
  padding: 0;
  border-bottom: 0;
}

.details-list.transaction-details-list .refund-modal .form-actions {
  display: flex;
  gap: 10px;
  padding-top: 0;
}

.details-list.transaction-details-list code,
.transaction-refund-details code {
  display: inline-block;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.transaction-refund-details {
  display: grid;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.transaction-refund-details h3 {
  margin: 0;
}

.transaction-refund-details table {
  table-layout: fixed;
}

.transaction-refunds-table th,
.transaction-refunds-table td {
  padding: 7px 10px;
  overflow-wrap: anywhere;
  vertical-align: top;
}

.transaction-refunds-table tbody tr:last-child td {
  border-bottom: 0;
}

.transaction-refunds-table th:nth-child(1),
.transaction-refunds-table td:nth-child(1) {
  width: 12%;
}

.transaction-refunds-table th:nth-child(2),
.transaction-refunds-table td:nth-child(2) {
  width: 18%;
}

.transaction-refunds-table th:nth-child(3),
.transaction-refunds-table td:nth-child(3) {
  width: 20%;
}

.transaction-refunds-table th:nth-child(4),
.transaction-refunds-table td:nth-child(4) {
  width: 16%;
}

.transaction-refunds-table th:nth-child(5),
.transaction-refunds-table td:nth-child(5) {
  width: 34%;
}

.transaction-fee-details {
  display: grid;
  gap: 8px;
  padding: 10px 16px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.transaction-fee-details legend {
  padding: 0 8px;
  font-size: 1rem;
  font-weight: 800;
}

.transaction-fee-total {
  text-align: right;
}

.transaction-fee-table {
  table-layout: fixed;
}

.transaction-fee-table th,
.transaction-fee-table td {
  padding: 6px 10px;
}

.transaction-fee-table tfoot td {
  border-bottom: 0;
}

.transaction-fee-table tbody tr:last-child td {
  border-bottom: 0;
}

.transaction-fee-table th:not(:first-child),
.transaction-fee-table td:not(:first-child) {
  text-align: right;
}

.campsite-form-panel {
  padding-top: 18px;
}

.campsite-form-panel .panel-header {
  margin-bottom: 12px;
}

.campsite-form-panel .panel-header h2 {
  margin-bottom: 0;
}

.campsite-form-panel .trip-title-line p {
  margin-bottom: 0;
  font-size: 1.05rem;
}

.confirmed-signups-section,
.admin-campsite-parking-section,
.public-campsite-parking-section {
  padding: 16px;
  border: 1px solid;
  border-radius: 8px;
  border-color: #91d8bd;
  background: #fff;
}

.waitlisted-signups-section {
  padding: 16px;
  border: 1px solid;
  border-radius: 8px;
  border-color: #f1c84d;
  background: #fff;
}

.confirmed-signups-section h4,
.admin-campsite-parking-section h4,
.public-campsite-parking-section h4,
.waitlisted-signups-section h4,
.trip-waitlist-section h3 {
  margin: 0 0 10px;
}

.confirmed-signups-section h4,
.admin-campsite-parking-section h4,
.public-campsite-parking-section h4 {
  color: #006b12;
}

.waitlisted-signups-section h4,
.trip-waitlist-section h3 {
  color: #b47a00;
}

.trip-waitlist-section {
  margin-top: 28px;
  margin-left: 16px;
}

.trip-waitlist-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
  margin-bottom: 10px;
}

.trip-waitlist-heading h3,
.trip-waitlist-note {
  margin: 0;
}

.trip-waitlist-note {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.waitlist-table {
  margin-top: 12px;
}

.waitlist-priority-column {
  width: 96px;
  white-space: nowrap;
}

.waitlist-availability-column,
.waitlist-action-column {
  white-space: nowrap;
}

.trip-waitlist-section .waitlist-action-column > [data-controller~="modal"] > .button.danger {
  border-color: var(--danger);
  background: #fff;
  color: var(--danger);
}

.trip-overview {
  margin-bottom: 18px;
  padding-top: 18px;
  padding-bottom: 20px;
}

.trip-summary-header {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
  justify-content: stretch;
  margin-bottom: 8px;
  width: 100%;
}

.trip-summary-header > * {
  min-width: 0;
  justify-self: stretch;
}

.trip-summary-copy {
  display: grid;
  gap: 8px;
}

.trip-title-line.trip-admin-title-line {
  display: grid;
  grid-template-areas:
    "heading actions"
    "meta coordinator";
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: 8px 28px;
}

.trip-heading-status {
  grid-area: heading;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: baseline;
}

.trip-title-actions {
  grid-area: actions;
  display: flex;
  justify-self: end;
}

.trip-title-line.trip-admin-title-line h2 {
  margin: 0;
}

.trip-title-meta {
  grid-area: meta;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
  min-width: 0;
  color: var(--muted);
}

.trip-title-date,
.trip-title-location {
  overflow-wrap: anywhere;
}

.trip-title-coordinator {
  grid-area: coordinator;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: baseline;
  justify-content: flex-end;
  justify-self: end;
  min-width: min(100%, 430px);
  color: var(--text);
  text-align: right;
}

.trip-title-coordinator strong {
  color: var(--text);
}

body.trip-show-page .trip-summary-header {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 620px);
}

.trip-summary-top-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  width: 100%;
}

.trip-summary-bottom-row {
  display: grid;
  gap: 12px;
  width: 100%;
}

.trip-summary-copy h2,
.trip-summary-copy p {
  margin-bottom: 0;
}

.trip-admin-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 36px;
  align-items: flex-start;
  width: 100%;
}

.coordinator-summary {
  display: grid;
  gap: 4px;
}

.coordinator-summary.trip-title-coordinator {
  display: flex;
}

.coordinator-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.trip-reimbursement-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  justify-content: flex-end;
  margin-left: auto;
  color: var(--ink);
  text-align: right;
}

.trip-reimbursement-summary .status {
  display: inline-block;
}

.trip-management-panel {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.trip-management-header {
  margin-bottom: 0;
}

.trip-management-header h2 {
  margin-bottom: 0;
}

.trip-management-header p {
  margin-bottom: 0;
}

.trip-management-content {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
}

.trip-management-actions {
  flex: 1 1 640px;
}

.trip-management-reimbursement {
  flex: 0 1 auto;
  justify-content: flex-start;
  margin-left: 0;
  text-align: left;
}

.trip-location-line {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: baseline;
}

.trip-title-line {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.trip-title-line h1 {
  margin: 0;
}

.trip-location-line .eyebrow {
  margin: 0;
}

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

.trip-readiness-summary-button {
  gap: 10px;
}

.trip-readiness-summary-button-count {
  padding: 2px 7px;
  font-size: 0.82rem;
  line-height: 1;
}

.form-actions .danger-form-action {
  margin-left: auto;
}

.hidden-delete-form {
  display: none;
}

.disabled-modal-trigger {
  display: inline-flex;
  cursor: not-allowed;
}

.disabled-modal-trigger .button:disabled {
  pointer-events: none;
}

.table-actions {
  white-space: nowrap;
}

.table-actions a,
.table-actions form {
  display: inline-block;
}

.table-actions form {
  margin-left: 10px;
}

.table-actions [data-controller="modal"] {
  display: inline-block;
  margin-left: 10px;
}

.admin-campsite-card-header .table-actions > [data-controller="modal"]:first-child {
  margin-right: 10px;
  margin-left: 0;
}

.admin-campsite-card-header .campsite-registration {
  align-self: start;
  color: var(--muted);
  display: grid;
  gap: 6px;
  grid-area: registration;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
}

.admin-campsite-card-header .campsite-registration p {
  margin: 0;
}

.admin-campsite-card-header .campsite-registration .small-link {
  font-size: 0.9rem;
}

.campsite-card-actions {
  display: grid;
  gap: 12px;
  grid-area: actions;
  justify-self: end;
  justify-items: start;
}

.campsite-action-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.campsite-action-buttons.table-actions [data-controller="modal"] {
  margin: 0;
}

.admin-campsite-card-header .campsite-action-buttons.table-actions > [data-controller="modal"]:first-child {
  margin: 0;
}

.campsite-fee-summary {
  color: var(--muted);
  display: grid;
  gap: 6px;
  grid-area: fees;
  align-self: start;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
}

.campsite-fee-summary .campsite-registration-fee-line {
  display: flex;
  gap: 4px;
  align-items: baseline;
  margin: 0;
}

.campsite-fee-summary .admin-table-action-button {
  font-size: 0.95rem;
}

.reimbursement-status-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
}

.reimbursement-status-link:hover {
  color: var(--accent-dark);
}

.disabled-tooltip {
  position: relative;
  display: inline-block;
  margin-left: 10px;
  cursor: not-allowed;
}

.disabled-tooltip .button:disabled {
  pointer-events: none;
}

.disabled-tooltip::after {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  width: min(340px, 70vw);
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--accent-dark);
  box-shadow: 0 10px 28px rgb(31 41 51 / 20%);
  color: #fff;
  content: attr(aria-label);
  font-size: 0.95rem;
  font-weight: 750;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  text-align: left;
  transform: translateY(4px);
  transition: opacity 140ms ease, transform 140ms ease;
  white-space: normal;
}

.disabled-tooltip:hover::after,
.disabled-tooltip:focus::after,
.disabled-tooltip:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.campsites-panel {
  padding-top: 16px;
}

.campsites-panel-header {
  margin-bottom: 16px;
}

.campsites-panel-header h2 {
  margin-bottom: 0;
  line-height: 1.05;
}

.campsites-panel table {
  margin-top: 10px;
}

.admin-self-signup-cell {
  min-width: 170px;
}

.admin-self-signup-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.admin-self-signup-control form {
  margin: 0;
}

.admin-self-signup-control .admin-self-signup-status {
  font-size: 75%;
  font-weight: 750;
  line-height: 1.25;
}

.admin-table-action-button {
  min-height: 30px;
  padding: 4px 9px;
  font-size: 0.82rem;
  line-height: 1.1;
}

.admin-confirmed-signup-action-button {
  min-height: 31px;
  padding: 7px 12px;
  font-size: 0.75rem;
  line-height: 1.05;
}

.admin-reservation-change-actions {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  max-width: 360px;
}

.admin-reservation-change-actions .button {
  width: 100%;
  justify-content: center;
}

.admin-waitlist-campsite-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.admin-waitlist-campsite-name {
  color: var(--muted);
  font-size: 75%;
  font-weight: 750;
  line-height: 1.25;
}

.admin-payment-control {
  display: grid;
  grid-template-columns: max-content max-content;
  column-gap: 8px;
  gap: 6px;
  align-items: center;
  min-width: 150px;
}

.admin-payment-control > :not(.admin-payment-status, .admin-payment-amount-control, .admin-payment-covered-by) {
  grid-column: 1 / -1;
}

.admin-payment-status,
.admin-payment-amount {
  width: fit-content;
}

.admin-payment-amount-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.admin-payment-amount-link:hover,
.admin-payment-amount-link:focus {
  color: var(--accent-dark);
}

.admin-party-primary-row > td,
.admin-party-guest-row > td {
  background: #fcfffd;
}

.admin-party-primary-row > td {
  border-top: 2px solid #9bd0ba;
}

.admin-party-primary-row > td:first-child,
.admin-party-guest-row > td:first-child {
  border-left: 2px solid #9bd0ba;
}

.admin-party-primary-row > td:last-child,
.admin-party-guest-row > td:last-child {
  border-right: 2px solid #9bd0ba;
}

.admin-party-last-row > td {
  border-bottom: 2px solid #9bd0ba;
}

.admin-party-guest-row > td:first-child {
  padding-left: 28px;
}

.admin-party-guest-name {
  display: block;
  color: var(--text);
  font-size: inherit;
  font-weight: inherit;
}

.admin-party-empty-cell {
  display: block;
  min-height: 1.2em;
}

.trip-payment-requests-panel {
  display: grid;
  gap: 16px;
}

.trip-payment-requests-panel .panel-header {
  margin-bottom: 0;
}

.trip-payment-requests-table td {
  vertical-align: top;
}

.trip-payment-request-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.trip-payment-request-actions form,
.trip-payment-request-actions [data-controller="modal"] {
  margin: 0;
}

.trip-payment-request-actions .copy-link-button {
  gap: 5px;
}

.trip-revenue-table td:not(:first-child),
.trip-revenue-table th:not(:first-child) {
  text-align: right;
}

.trip-revenue-subtotal td,
.trip-revenue-total td,
.trip-expense-total td,
.trip-revenue-final td {
  font-weight: 800;
}

.trip-revenue-total td {
  border-top: 2px solid var(--line);
  border-bottom: 12px solid transparent;
}

.trip-revenue-expense td:last-child {
  color: var(--danger);
}

.trip-revenue-line-label {
  font-size: 16px;
  font-weight: 400;
  line-height: inherit;
}

.registration-fee-modal-trigger {
  display: inline;
}

.trip-expense-total td {
  border-top: 2px solid var(--line);
}

.trip-expense-total td:last-child {
  color: var(--danger);
}

.trip-revenue-final td {
  padding-top: 24px;
  padding-bottom: 24px;
  border-top: 4px solid var(--accent-dark);
  border-bottom: 1px solid var(--line);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.15;
}

.trip-revenue-final td:last-child {
  text-align: right;
}

.campsite-card-list,
.admin-campsite-list {
  display: grid;
  gap: 22px;
  padding-left: 16px;
}

.campsite-card,
.admin-campsite-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 3px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: #fff;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.admin-campsite-card {
  gap: 12px;
}

.campsite-card:hover,
.campsite-card:focus-within,
.admin-campsite-card:hover,
.admin-campsite-card:focus-within {
  border-color: #c7ddd4;
  border-left-color: var(--accent-dark);
  background: #fafafa;
  box-shadow: 0 8px 20px rgb(31 41 51 / 8%);
  transform: translateY(-1px);
}

.campsite-card-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.admin-campsite-card-header {
  display: grid;
  grid-template-columns: minmax(330px, 1fr) minmax(260px, 0.8fr) minmax(190px, auto) auto;
  grid-template-areas:
    "heading heading heading actions"
    "dates registration fees actions";
  column-gap: 18px;
  row-gap: 8px;
  align-items: start;
}

.admin-campsite-card-header .campsite-card-summary {
  grid-area: heading;
}

.admin-campsite-card-header .date-pair {
  grid-area: dates;
}

.campsite-card-header h3,
.admin-campsite-card-header h4,
.campsite-card-header p,
.admin-campsite-card-header p,
.campground-group h3,
.campground-group p {
  margin: 0;
}

.campsite-card-header p,
.admin-campsite-card-header p,
.campground-group p,
.campsite-notes {
  color: var(--muted);
}

.campsite-card-summary,
.admin-campsite-card-header > div:first-child {
  display: grid;
  gap: 4px;
}

.campsite-heading-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
}

.campsite-heading-line p {
  font-size: 0.95rem;
}

.campsite-card-summary .date-pair,
.admin-campsite-card-header .date-pair {
  margin-top: 16px;
}

.admin-campsite-card-header .date-pair {
  margin-top: 0;
}

.admin-campsite-card .campsite-stats {
  margin-top: 2px;
}

.campsite-lock-notice {
  color: darkgoldenrod;
  font-size: 0.95rem;
  font-weight: 750;
  line-height: 1.3;
}

.campsite-signup-action {
  display: grid;
  gap: 10px;
  justify-items: end;
  min-width: 220px;
}

.waitlisted-campsite-action {
  min-width: min(100%, 560px);
}

.waitlist-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  justify-content: flex-end;
}

.waitlist-direct-signup-control {
  max-width: 100%;
}

.waitlist-direct-signup-control > .button {
  justify-content: center;
  max-width: 100%;
  text-align: center;
}

.waitlist-confirm-action {
  display: grid;
  gap: 8px;
}

.spot-open-message {
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 850;
  line-height: 1.15;
  text-align: left;
}

.campsite-signup-action p {
  max-width: 28ch;
  margin: 0;
  text-align: right;
}

.campsite-signup-action .already-signed-up-note {
  text-align: left;
}

.waitlist-confirm-action .spot-open-message {
  max-width: none;
  text-align: left;
}

.campsite-card-details {
  display: grid;
  gap: 14px;
  padding-top: 2px;
}

.campsite-stats {
  margin-top: 0;
}

.campsite-card .stats > div,
.admin-campsite-card .stats > div {
  background: #fbfaf7;
}

.campsite-notes {
  margin: 0;
}

.campsite-notes strong {
  color: var(--text);
}

.campsite-participant-groups {
  display: grid;
  gap: 12px;
  padding-top: 2px;
}

.campsite-parking-section {
  display: grid;
  gap: 10px;
}

.admin-campsite-parking-section,
.public-campsite-parking-section {
  gap: 0;
}

.campsite-section-heading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.campsite-section-heading h4 {
  margin: 0 0 10px;
}

.admin-campsite-parking-section .campsite-section-heading h4,
.public-campsite-parking-section .campsite-section-heading h4 {
  margin: 0;
}

.campsite-parking-table {
  margin-top: 0;
  table-layout: fixed;
}

.campsite-parking-table th:first-child,
.campsite-parking-table td:first-child {
  width: 28%;
}

.campsite-parking-table th:last-child,
.campsite-parking-table td:last-child {
  width: 72%;
}

.campground-group {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.campground-group:first-of-type {
  margin-top: 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.stats > div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.stats strong {
  display: block;
  font-size: 1.8rem;
}

.day-trip-admin-details {
  margin-top: 18px;
}

.stats .parking-stat {
  display: grid;
  align-content: start;
  gap: 8px;
}

.parking-breakdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 18px;
}

.parking-breakdown-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.parking-breakdown-item strong {
  display: inline;
  flex: 0 0 auto;
  line-height: 1;
}

.parking-breakdown-item span {
  display: inline;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: inherit;
  line-height: 1.1;
}

.split-signup-stat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: center;
}

.split-signup-stat .under-13-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #9fc4d1;
  font-weight: 750;
}

.split-signup-stat .under-minor-tooltip.info-tooltip {
  display: inline-flex;
  color: var(--muted);
}

.split-signup-stat .under-minor-tooltip.info-tooltip .info-tooltip-icon {
  display: inline-flex;
  flex: 0 0 18px;
  color: currentColor;
  font-size: 0.78rem;
  line-height: 1;
  text-align: center;
  vertical-align: middle;
  box-sizing: border-box;
}

.split-signup-stat .under-minor-tooltip.info-tooltip .info-tooltip-box {
  color: #fff;
  font-size: 1rem;
}

.stats .availability-stat strong,
.stats .availability-stat span {
  color: inherit;
}

.stats .success-stat {
  border-color: #9bd0ba;
  background: #ecf8f2;
  color: var(--accent);
}

.stats .warning-stat {
  border-color: #efd77a;
  background: #fff8db;
  color: #936100;
}

.stats .danger-stat {
  border-color: #f4b6ae;
  background: #fff1f0;
  color: var(--danger);
}

.admin-open-spaces-cell {
  box-shadow: inset 4px 0 0 currentColor;
  font-weight: 850;
}

.admin-open-spaces-cell.success-stat {
  background: #ecf8f2;
  color: var(--accent);
}

.admin-open-spaces-cell.warning-stat {
  background: #fff8db;
  color: #936100;
}

.admin-open-spaces-cell.danger-stat {
  background: #fff1f0;
  color: var(--danger);
}

.stats span,
td span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.trip-cards {
  display: grid;
  gap: 14px;
}

.help-panel {
  max-width: 980px;
}

.help-layout,
.help-request-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 28px;
  align-items: start;
}

.help-copy {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid #d8e1dc;
  border-radius: 8px;
  background: #fbfdfc;
}

.help-copy p {
  margin: 0;
}

.help-screenshot-emphasis {
  font-size: 1.2em;
  font-weight: 800;
}

.help-request-form textarea {
  min-height: 170px;
}

.help-request-form input[type="file"] {
  padding: 14px;
  border-color: #a8b7ae;
  background: #fbfdfc;
  color: var(--text);
}

.help-request-form input[type="file"]::file-selector-button {
  min-height: 46px;
  margin-right: 14px;
  padding: 10px 18px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

.help-request-form input[type="file"]::file-selector-button:hover {
  background: var(--accent-dark);
}

.help-contact-label {
  color: var(--muted);
  font-weight: 800;
}

.help-contact-value {
  display: block;
  min-height: 46px;
  padding: 10px 0;
  color: var(--text);
  font-weight: 750;
}

.detail-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.detail-list div {
  display: grid;
  gap: 4px;
}

.detail-list dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-list dd {
  margin: 0;
}

.help-request-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  align-items: flex-start;
  margin: 0;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.help-request-meta-row div {
  display: grid;
  gap: 4px;
}

.help-request-meta-row dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.help-request-meta-row dd {
  margin: 0;
}

.help-request-title-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.help-request-title-line h1,
.help-request-title-line h2 {
  margin: 0;
}

.help-message,
.help-conversation,
.help-replies,
.help-reply-form {
  display: grid;
  gap: 12px;
}

.help-message h3,
.help-replies h3,
.help-reply-form h3 {
  margin: 0;
}

.help-screenshot-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.help-screenshot-list img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.help-admin-detail {
  display: grid;
  gap: 24px;
}

.help-admin-detail > .panel-header {
  margin-bottom: 0;
}

body.help-request-show-page .help-admin-detail > .panel-header {
  margin-bottom: 0;
}

body.help-request-show-page .help-admin-detail {
  gap: 12px;
  padding-top: 16px;
}

body.help-request-show-page .help-admin-detail h1 {
  margin: 0;
}

.help-reply {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}

.admin-help-reply {
  border-color: #9bd0ba;
  background: #ecf8f2;
}

.help-reply p {
  margin-top: 0;
}

.help-reply-heading {
  margin: 0;
  font-weight: 850;
}

.help-attachment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.help-attachment-list a,
.help-attachment-button {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #cfd8d3;
  border-radius: 8px;
  background: #fff;
  color: var(--accent-dark);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
}

.help-image-modal {
  width: min(1120px, calc(100% - 32px));
}

.help-image-modal-content {
  gap: 16px;
}

.help-image-modal img {
  max-width: 100%;
  max-height: calc(100vh - 190px);
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.help-subscriber-form {
  max-width: 520px;
  margin-bottom: 22px;
}

.status-pill {
  display: inline-flex;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.open-status {
  background: #fff8db;
  color: #936100;
}

.replied-status {
  background: #ecf8f2;
  color: var(--accent-dark);
}

.resolved-status {
  background: #eef4ff;
  color: #1f5fbf;
}

body.trips-index-page .trips-index-panel {
  margin-bottom: 100px;
  padding-block: 18px 20px;
  border-color: rgb(255 255 255 / 56%);
  background: rgb(255 255 255 / 88%);
  box-shadow: 0 24px 72px rgb(0 0 0 / 26%);
  backdrop-filter: blur(6px);
}

body.help-request-page .help-panel,
body.trip-what-to-expect-page .trip-what-to-expect-panel {
  border-color: rgb(255 255 255 / 56%);
  background: rgb(255 255 255 / 88%);
  box-shadow: 0 24px 72px rgb(0 0 0 / 26%);
  backdrop-filter: blur(6px);
}

body.trips-index-page .trips-index-panel .panel-header {
  margin-bottom: 14px;
}

body.trips-index-page .trips-index-panel h1,
body.trips-index-page .archived-trips-panel h1 {
  margin-block: 0 10px;
}

body.trips-index-page .trips-index-panel .muted {
  margin-bottom: 0;
}

.archived-trips-panel {
  padding-block: 18px 20px;
  background: rgb(255 255 255 / 82%);
}

.archived-trips-panel .panel-header {
  margin-bottom: 14px;
}

.archived-trips-panel h2 {
  margin-block: 0 8px;
}

.archived-trips-panel .panel-header .muted {
  margin-bottom: 0;
}

.archived-trip-list {
  display: grid;
  gap: 10px;
}

.archived-trip-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.75fr);
  gap: 16px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
  color: inherit;
  text-decoration: none;
}

.archived-trip-row h3,
.archived-trip-row p,
.archived-trip-row dl {
  margin: 0;
}

.archived-trip-row h3 {
  color: var(--accent);
  text-decoration: underline;
}

.archived-trip-row p,
.archived-trip-meta dt {
  color: var(--muted);
}

.archived-trip-meta {
  display: grid;
  gap: 4px;
}

.archived-trip-meta div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
}

.archived-trip-meta dt {
  font-weight: 750;
}

.archived-trip-meta dd {
  margin: 0;
}

.trip-what-to-expect-panel {
  max-width: 960px;
  padding-block: 18px 22px;
}

.trip-what-to-expect-panel .panel-header {
  margin-bottom: 14px;
}

.trip-what-to-expect-panel h1 {
  margin-block: 0 6px;
}

.trip-what-to-expect-panel .muted {
  margin-bottom: 0;
}

.trip-expectation-copy {
  display: grid;
  gap: 22px;
  max-width: 78ch;
}

.trip-expectation-intro,
.trip-expectation-question {
  display: grid;
  gap: 10px;
}

.trip-expectation-intro p,
.trip-expectation-question p,
.trip-expectation-question ul {
  margin-block: 0;
}

.trip-expectation-question h2 {
  margin-block: 0;
  color: var(--accent-dark);
  font-size: 1.15rem;
}

.trip-expectation-faq {
  display: grid;
  gap: 26px;
}

.trip-expectation-links {
  display: grid;
  gap: 6px;
  padding-left: 20px;
}

.trip-expectation-links span {
  color: var(--muted);
}

.content-page-markdown {
  display: block;
}

.content-page-markdown h2 {
  margin: 26px 0 10px;
  color: var(--accent-dark);
  font-size: 1.15rem;
}

.content-page-markdown h2:first-child {
  margin-top: 0;
}

.content-page-markdown p,
.content-page-markdown ul,
.content-page-markdown ol {
  margin: 0 0 14px;
}

.content-page-markdown ul,
.content-page-markdown ol {
  padding-left: 22px;
}

body.session-new-page .auth-panel,
body.password-reset-new-page .auth-panel,
body.password-reset-edit-page .auth-panel {
  border-color: rgb(255 255 255 / 56%);
  background: rgb(255 255 255 / 88%);
  box-shadow: 0 24px 72px rgb(0 0 0 / 26%);
  backdrop-filter: blur(6px);
}

body.password-reset-edit-page .public-main {
  display: flex;
  justify-content: flex-end;
}

body.password-reset-edit-page .auth-panel {
  margin-inline: 0;
}

body.registration-new-page .panel {
  border-color: rgb(255 255 255 / 56%);
  background: rgb(255 255 255 / 90%);
  box-shadow: 0 24px 72px rgb(0 0 0 / 26%);
  backdrop-filter: blur(6px);
}

body.trip-show-page .panel {
  border-color: rgb(255 255 255 / 52%);
  background: rgb(255 255 255 / 90%);
  box-shadow: 0 20px 60px rgb(0 0 0 / 22%);
  backdrop-filter: blur(6px);
}

.day-trip-plan-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 280px);
  gap: 18px 28px;
  align-items: start;
}

.day-trip-plan-main {
  display: grid;
  gap: 16px;
}

.day-trip-plan-main h2 {
  margin: 0;
}

.day-trip-details-panel .details-list > div {
  grid-template-columns: 190px 1fr;
}

.day-trip-details-panel .details-list dd p {
  margin: 0;
}

.day-trip-description-panel .panel-header {
  margin-bottom: 8px;
}

.class-trip-description-panel {
  padding-top: 18px;
  padding-bottom: 18px;
}

.class-trip-description-panel .panel-header {
  margin-bottom: 4px;
}

.class-trip-description-panel .content-page-markdown > :last-child {
  margin-bottom: 0;
}

.class-description-copy > h2 {
  margin: 0 0 8px;
}

.class-description-body.has-registration-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 16px 28px;
  align-items: start;
}

.class-description-body .class-registration-card {
  justify-self: end;
}

.class-registration-card {
  display: grid;
  min-height: 100%;
  align-items: start;
  justify-items: center;
  padding: 20px;
  border: 1px solid rgb(0 0 0 / 7%);
  border-radius: 8px;
  background: #fff;
}

.class-registration-card .day-trip-signup-action {
  width: min(100%, 360px);
  min-width: 0;
  justify-items: stretch;
}

.day-trip-signup-action .class-registration-note {
  line-height: 1.2;
  text-align: left;
}

.class-trip-details-panel > h2 {
  margin-bottom: 8px;
}

.class-trip-details-panel .details-list {
  gap: 4px;
}

.day-trip-location-image {
  margin-top: 18px;
  width: min(100%, 428px);
}

.day-trip-location-image-button {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f4ed;
  cursor: zoom-in;
}

.day-trip-location-image-button img {
  display: block;
  width: 100%;
  height: auto;
}

.location-image-modal {
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  max-width: 84vw;
  max-height: 84vh;
}

.location-image-modal::backdrop {
  background: rgb(0 0 0 / 62%);
}

.location-image-modal-content {
  position: relative;
  display: grid;
  place-items: center;
  max-width: 84vw;
  max-height: 84vh;
  overflow: hidden;
  border-radius: 8px;
  background: #111;
}

.location-image-modal-content img {
  display: block;
  max-width: 84vw;
  max-height: 84vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.modal-close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 72%);
  border-radius: 999px;
  background: rgb(0 0 0 / 58%);
  color: #fff;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.gear-needed-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.gear-needed-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.gear-needed-check {
  display: inline-grid;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 3px solid var(--muted);
  border-radius: 7px;
  color: var(--accent-dark);
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
}

.gear-needed-item.is-needed .gear-needed-check {
  border-color: var(--accent-dark);
}

.day-trip-signup-action {
  display: grid;
  justify-items: end;
  gap: 8px;
  min-width: min(320px, 100%);
}

.day-trip-signup-action p {
  margin: 0;
  text-align: right;
}

.class-registration-note {
  text-align: left;
}

.day-trip-signup-button {
  justify-content: center;
  min-width: 180px;
}

.day-trip-signup-button.is-waitlist {
  border-color: #f6c453;
  background: #ffd76a;
  color: #3f2f00;
}

.day-trip-signup-modal .signup-modal-content {
  width: min(920px, 100%);
}

.day-trip-resources-panel .panel-header {
  margin-bottom: 10px;
}

.additional-resources-list {
  display: grid;
  gap: 6px;
  justify-items: start;
}

.additional-resources-list .trip-resource-link {
  justify-self: start;
  font-size: 1rem;
}

.additional-resource-detail {
  margin: 0;
}

.additional-resource-detail strong {
  color: var(--muted);
}

.day-trip-participants-panel .panel-header {
  margin-bottom: 0;
}

.day-trip-participants-panel .confirmed-participants-table {
  margin-top: 0;
}

.day-trip-participants-panel .confirmed-participants-table th,
.day-trip-participants-panel .confirmed-participants-table td {
  padding-top: 8px;
  padding-bottom: 8px;
}

.class-trip-participants-panel > h2,
.class-reminder-panel > h2 {
  margin: 0 0 4px;
  line-height: 1;
}

.class-participant-signup-action {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.class-participant-signup-action p {
  margin: 0;
}

.day-trip-safety-panel .panel-header {
  margin-bottom: 6px;
}

.day-trip-safety-panel .content-page-markdown p:last-child {
  margin-bottom: 0;
}

.class-reminder-panel {
  padding-top: 12px;
  padding-bottom: 12px;
}

.class-reminder-panel .panel-header {
  margin-bottom: 0;
}

.class-reminder-panel .content-page-markdown h2 {
  margin: 0 0 6px;
}

.class-reminder-panel .content-page-markdown p {
  margin-bottom: 8px;
  line-height: 1.35;
}

body.profile-show-page .panel,
body.profile-edit-page .panel {
  border-color: rgb(255 255 255 / 52%);
  background: rgb(255 255 255 / 90%);
  box-shadow: 0 20px 60px rgb(0 0 0 / 22%);
  backdrop-filter: blur(6px);
}

body.trips-index-page .trip-card {
  background: rgb(255 255 255 / 82%);
}

.trip-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
  gap: 20px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
  color: inherit;
  text-decoration: none;
}

.trip-card h2,
.trip-card p,
.trip-card dl {
  margin: 0;
}

.trip-card-title-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.trip-card-title-line h2,
.trip-card-title-line h3 {
  margin: 0;
}

.trip-card h2 {
  color: var(--accent);
  text-decoration: underline;
}

.trip-card:hover,
.trip-card:focus-visible,
.archived-trip-row:hover,
.archived-trip-row:focus-visible {
  border-color: #c7ddd4;
  background: #fff;
  box-shadow: 0 8px 20px rgb(31 41 51 / 8%);
  outline: none;
  transform: translateY(-1px);
}

.trip-card:focus-visible,
.archived-trip-row:focus-visible {
  box-shadow:
    0 0 0 3px rgb(47 111 94 / 20%),
    0 8px 20px rgb(31 41 51 / 8%);
}

.trip-card p,
.trip-card-meta dt {
  color: var(--muted);
}

.trip-card-meta {
  display: grid;
  gap: 6px;
}

.trip-card-meta div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
}

.trip-card-meta dt {
  font-weight: 750;
}

.trip-card-meta dd {
  margin: 0;
}

.date-range-mobile {
  display: none;
}

.signup-panel {
  min-width: 240px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.signup-panel p {
  margin: 8px 0 0;
}

.signup-panel form {
  margin-top: 12px;
}

.signup-modal,
.confirmation-modal {
  width: min(960px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 20px 60px rgb(31 41 51 / 20%);
  white-space: normal;
}

.signup-modal::backdrop,
.confirmation-modal::backdrop {
  background: rgb(31 41 51 / 45%);
}

.signup-modal-content {
  padding: 24px;
}

.signup-modal-content,
.confirmation-modal-content {
  display: grid;
  gap: 20px;
  padding: 24px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  white-space: normal;
}

.signup-modal-content *,
.confirmation-modal-content * {
  min-width: 0;
}

.signup-modal h2,
.signup-modal p,
.confirmation-modal h2,
.confirmation-modal p {
  margin: 0;
}

.signup-modal-title-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
}

.signup-modal-title-line p {
  font-weight: 700;
}

.waitlist-transition-note {
  color: var(--accent);
  font-size: 1.25rem;
}

.admin-refund-choice-spacer {
  min-height: 1rem;
}

.participant-details-campsite-summary {
  display: grid;
  gap: 2px;
  margin-top: 14px;
}

.signup-modal .participant-details-waiver-prompt {
  font-size: 1.5rem;
}

.participant-details-campsite-summary span {
  color: var(--muted);
}

.signup-modal p,
.confirmation-modal p {
  max-width: none;
  color: var(--muted);
  text-align: left;
}

dialog.signup-modal.refund-modal {
  width: min(640px, calc(100% - 32px));
}

dialog.signup-modal.refund-modal .signup-modal-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 24px;
}

dialog.signup-modal.refund-modal .signup-modal-content > div,
dialog.signup-modal.refund-modal form > div,
dialog.signup-modal.refund-modal .form-actions {
  display: block;
  grid-template-columns: none;
  gap: 0;
  min-height: 0;
  padding: 0;
  border-bottom: 0;
}

dialog.signup-modal.refund-modal .details-list.transaction-details-list {
  padding: 10px 16px;
}

dialog.signup-modal.refund-modal .details-list.transaction-details-list > div {
  display: grid;
  grid-template-columns: minmax(170px, 0.46fr) minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
  min-height: 44px;
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
}

dialog.signup-modal.refund-modal .details-list.transaction-details-list > div:last-child {
  border-bottom: 0;
}

dialog.signup-modal.refund-modal .refund-amount-field {
  width: min(260px, 100%);
  min-width: 0;
  max-width: 100%;
}

dialog.signup-modal.refund-modal .currency-field {
  display: grid;
  grid-template-columns: auto 1fr;
  min-height: 56px;
  overflow: hidden;
  border: 1px solid #cfd8d3 !important;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 0 rgb(31 41 51 / 4%);
  transition:
    border-color 120ms ease,
    box-shadow 120ms ease,
    background-color 120ms ease;
}

dialog.signup-modal.refund-modal .currency-field span {
  display: inline-flex;
  align-self: stretch;
  align-items: center;
  padding: 0 14px;
  border-right: 1px solid #d8e1dc;
  background: #fbfdfc;
  color: var(--muted);
  font-weight: 850;
}

dialog.signup-modal.refund-modal .currency-field input:not([type="submit"]) {
  min-height: 54px;
  padding: 12px 14px;
  border: 0;
}

dialog.signup-modal.refund-modal .currency-field:hover {
  border-color: var(--accent) !important;
  background: #fbfdfc;
}

dialog.signup-modal.refund-modal .currency-field:focus-within {
  border-color: var(--accent) !important;
  outline: 3px solid rgb(47 111 94 / 18%);
  outline-offset: 2px;
  box-shadow: 0 0 0 1px rgb(47 111 94 / 18%);
}

dialog.signup-modal.refund-modal .form-actions {
  display: flex;
  gap: 10px;
  justify-content: end;
  padding-top: 0;
}

.signup-modal .form-actions,
.confirmation-modal .form-actions {
  justify-content: end;
}

.confirmation-modal .delete-account-actions {
  margin-top: 18px;
}

.admin-campsite-choice-list {
  display: grid;
  gap: 10px;
}

.admin-campsite-choice-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.admin-waitlist-campsite-add-form {
  display: grid;
  gap: 14px;
}

.admin-waitlist-campsite-choice-row {
  grid-template-columns: 42px minmax(220px, 1fr) minmax(160px, auto) minmax(320px, 0.9fr);
  align-items: center;
}

.admin-move-campsite-choice-row {
  grid-template-columns: 42px minmax(220px, 1fr) minmax(160px, auto);
  align-items: center;
}

.admin-waitlist-campsite-choice-row.is-selected,
.admin-move-campsite-choice-row.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgb(45 129 105 / 20%);
}

.admin-campsite-choice-selector {
  display: flex;
  justify-content: center;
  align-items: center;
}

.admin-campsite-choice-selector input[type="radio"] {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 2px solid #a8b7ae;
  border-radius: 50%;
  appearance: none;
  background: #fff;
  cursor: pointer;
  transition:
    border-color 120ms ease,
    box-shadow 120ms ease,
    background 120ms ease;
}

.admin-campsite-choice-selector input[type="radio"]:checked {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 7px #fff;
}

.admin-campsite-choice-selector input[type="radio"]:focus-visible {
  outline: 3px solid rgb(47 111 94 / 22%);
  outline-offset: 3px;
}

.admin-waitlist-waive-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 10px;
}

.admin-waitlist-waive-options legend {
  font-size: 0.9rem;
}

.admin-waitlist-waive-options label {
  min-width: 0;
  min-height: 58px;
  padding: 10px 14px;
}

.admin-waitlist-waive-options input[type="radio"] {
  width: 26px;
  height: 26px;
  flex-basis: 26px;
}

.admin-waitlist-waive-fields {
  grid-column: 2 / -1;
  padding: 16px;
}

.admin-waitlist-waive-fields select {
  min-height: 54px;
  border-radius: 8px;
}

.admin-campsite-choice-copy,
.admin-campsite-choice-stats {
  display: grid;
  gap: 2px;
}

.admin-campsite-choice-stats {
  grid-template-columns: repeat(2, auto);
  gap: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.admin-campsite-choice-stats strong {
  color: var(--text);
}

.admin-add-participant-form {
  gap: 16px;
}

.admin-add-participant-options {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px;
}

.admin-add-participant-options legend {
  grid-column: 1 / -1;
}

.admin-add-participant-options label {
  width: 100%;
  min-height: 66px;
}

.admin-add-participant-options input[type="radio"] {
  width: 28px;
  height: 28px;
  padding: 0;
  flex: 0 0 28px;
  accent-color: var(--accent);
  cursor: pointer;
}

.admin-add-participant-options label:has(input[type="radio"]:checked) {
  border-color: var(--accent);
  background: #eaf6f1;
  box-shadow: inset 0 0 0 1px rgb(47 111 94 / 18%);
}

.admin-add-participant-options label:has(input[type="radio"]:focus-visible) {
  outline: 3px solid rgb(47 111 94 / 22%);
  outline-offset: 3px;
}

.admin-add-participant-options.admin-waitlist-waive-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-add-participant-options.admin-waitlist-waive-options label {
  min-height: 58px;
  padding: 10px 14px;
}

.admin-add-participant-options.admin-waitlist-waive-options input[type="radio"] {
  width: 26px;
  height: 26px;
  flex-basis: 26px;
}

.admin-add-participant-fields {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.admin-add-participant-fields[hidden] {
  display: none;
}

.admin-add-participant-fields h3 {
  margin: 0;
}

.participant-picker {
  position: relative;
}

.participant-picker-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  border: 1px solid #cfd8d3;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 650;
  text-align: left;
  box-shadow: 0 1px 0 rgb(31 41 51 / 4%);
  transition:
    border-color 120ms ease,
    box-shadow 120ms ease,
    background-color 120ms ease;
}

.participant-picker-button:hover {
  border-color: var(--accent);
  background: #fbfdfc;
}

.participant-picker-button:focus-visible {
  border-color: var(--accent);
  outline: 3px solid rgb(47 111 94 / 18%);
  outline-offset: 2px;
  box-shadow: 0 0 0 1px rgb(47 111 94 / 18%);
}

.participant-picker-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.participant-picker-chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--accent-dark);
  border-bottom: 2px solid var(--accent-dark);
  justify-self: center;
  transform: translateY(-2px) rotate(45deg);
}

.participant-picker-panel {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  display: grid;
  gap: 8px;
  max-height: min(420px, 52vh);
  padding: 10px;
  border: 1px solid #cfd8d3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgb(31 41 51 / 22%);
}

.participant-picker-panel[hidden] {
  display: none;
}

.participant-picker-search {
  min-height: 46px;
  padding: 10px 12px;
  border-color: #cfd8d3;
  border-radius: 8px;
}

.participant-picker-list {
  display: grid;
  gap: 4px;
  max-height: 330px;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}

.participant-picker-option {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 650;
  text-align: left;
}

.participant-picker-option:hover,
.participant-picker-option:focus-visible {
  border-color: rgb(47 111 94 / 28%);
  background: #eaf6f1;
  outline: 0;
}

.participant-picker-option[aria-selected="true"] {
  border-color: var(--accent);
  background: #eaf6f1;
  color: var(--accent-dark);
}

.participant-picker-option:disabled {
  color: #8a9490;
  cursor: not-allowed;
  opacity: 0.72;
}

.participant-picker-option:disabled:hover {
  border-color: transparent;
  background: transparent;
}

.participant-picker-empty {
  padding: 12px;
  color: var(--muted);
  font-weight: 650;
}

.admin-add-participant-fields select {
  min-height: 54px;
  padding: 12px 48px 12px 16px;
  border-color: #cfd8d3;
  border-radius: 8px;
  appearance: none;
  background-color: #fff;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--accent-dark) 50%),
    linear-gradient(135deg, var(--accent-dark) 50%, transparent 50%);
  background-position:
    calc(100% - 24px) 50%,
    calc(100% - 17px) 50%;
  background-size:
    8px 8px,
    8px 8px;
  background-repeat: no-repeat;
  color: var(--text);
  cursor: pointer;
  font-weight: 650;
  box-shadow: 0 1px 0 rgb(31 41 51 / 4%);
  transition:
    border-color 120ms ease,
    box-shadow 120ms ease,
    background-color 120ms ease;
}

.admin-add-participant-fields select:hover {
  border-color: var(--accent);
  background-color: #fbfdfc;
}

.admin-add-participant-fields select:focus,
.admin-add-participant-fields select:focus-visible {
  border-color: var(--accent);
  outline: 3px solid rgb(47 111 94 / 18%);
  outline-offset: 2px;
  box-shadow: 0 0 0 1px rgb(47 111 94 / 18%);
}

.admin-add-participant-form .form-actions {
  margin-top: 12px;
}

.signup-modal form,
.confirmation-modal form {
  margin: 0;
}

.waiver-form {
  display: grid;
  gap: 18px;
}

.waitlist-form {
  display: grid;
  gap: 18px;
}

.signup-kind-step {
  display: grid;
  gap: 18px;
}

.capacity-warning {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  background: #fff7ed;
  color: #92400e;
  font-weight: 750;
}

.capacity-warning[hidden] {
  display: none;
}

.attendance-fields {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.attendance-fields h3,
.attendance-fields p {
  margin: 0;
}

.attendance-date-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.fee-fields {
  display: grid;
  gap: 10px;
  padding: 14px 16px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.fee-fields h3,
.fee-fields p {
  margin: 0;
}

.fee-fields-header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
}

.fee-section-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.fee-section {
  display: grid;
  align-content: start;
  gap: 4px;
  margin: 0;
  padding: 4px 12px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-inline-size: 0;
}

.fee-section legend {
  padding-inline: 6px;
  margin-bottom: 2px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.fee-rate {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-block: 2px;
  color: var(--muted);
}

.fee-rate strong {
  color: var(--ink);
  white-space: nowrap;
}

.fee-note {
  font-size: 0.75em;
}

.payment-line-items {
  display: grid;
  gap: 8px;
  width: 100%;
}

.payment-line-item {
  display: grid;
  gap: 2px;
  color: var(--muted);
}

.payment-line-item-label {
  color: var(--ink);
  font-weight: 700;
}

.payment-line-item-details {
  display: grid;
  gap: 2px;
}

.payment-line-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding-left: 14px;
  color: var(--muted);
}

.payment-line-detail strong {
  color: var(--ink);
  white-space: nowrap;
}

.fee-fields .payment-summary {
  margin-top: 10px;
  font-size: 1.5rem;
  font-weight: 700;
}

.refund-policy-section {
  color: var(--muted);
}

.refund-policy-section p + p {
  margin-top: 6px;
}

.signup-kind-options {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.signup-kind-options legend {
  padding: 0 4px;
  font-weight: 750;
}

.signup-kind-options label {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  width: min(420px, 100%);
  min-height: 58px;
  padding: 12px 16px;
  border: 1px solid #d8e1dc;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
  transition:
    border-color 120ms ease,
    background 120ms ease,
    box-shadow 120ms ease;
}

.signup-kind-options input[type="checkbox"] {
  width: 28px;
  height: 28px;
  padding: 0;
  flex: 0 0 28px;
  accent-color: var(--accent);
  cursor: pointer;
}

.signup-kind-options label:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgb(47 111 94 / 10%);
}

.signup-kind-options label:has(input[type="checkbox"]:checked) {
  border-color: var(--accent);
  background: #eaf6f1;
  box-shadow: inset 0 0 0 1px rgb(47 111 94 / 18%);
}

.signup-kind-options label:has(input[type="checkbox"]:focus-visible) {
  outline: 3px solid rgb(47 111 94 / 22%);
  outline-offset: 3px;
}

.signup-kind-options label span {
  font-size: 1.08rem;
  line-height: 1.2;
}

.signup-kind-options .gear-with-number {
  flex-wrap: wrap;
  align-items: center;
}

.gear-number-field {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-left: auto;
}

.gear-number-field label {
  display: inline;
  width: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: default;
  font-size: 0.95rem;
  font-weight: 750;
}

.gear-number-field input {
  width: 82px;
  min-height: 42px;
  padding: 8px 10px;
}

.signup-field-subtext {
  margin: -4px 0 4px;
  color: var(--muted);
  font-size: 0.95rem;
}

.climbing-ability-options {
  gap: 16px;
}

.climbing-ability-choice {
  display: block;
}

.signup-kind-options .climbing-ability-card {
  display: grid;
  gap: 10px;
  width: 100%;
  min-height: 0;
  align-items: start;
}

.climbing-ability-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.climbing-ability-card-heading {
  display: inline-flex;
  gap: 12px;
  align-items: center;
}

.climbing-ability-check {
  display: inline-grid;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 3px solid var(--muted);
  border-radius: 7px;
  color: #fff;
  line-height: 1;
}

.climbing-ability-check::after {
  content: "✓";
  opacity: 0;
  font-size: 1.25rem;
  font-weight: 900;
}

.climbing-ability-card:has(input:checked) {
  border-color: var(--accent);
  background: #eaf6f1;
  box-shadow: inset 0 0 0 1px rgb(47 111 94 / 18%);
}

.climbing-ability-card:has(input:checked) .climbing-ability-check {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
}

.climbing-ability-card:has(input:checked) .climbing-ability-check::after {
  opacity: 1;
}

.climbing-ability-card:has(input:focus-visible) {
  outline: 3px solid rgb(47 111 94 / 22%);
  outline-offset: 3px;
}

.climbing-ability-definition {
  display: grid;
  gap: 6px;
}

.climbing-ability-definition p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.42;
}

.guest-climbing-ability-options {
  padding: 0;
  border: 0;
}

.guest-climbing-ability-cards {
  display: grid;
  gap: 10px;
}

.minor-fields,
.guest-fields {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.minor-fields[hidden],
.guest-fields[hidden] {
  display: none;
}

.minor-fields h3,
.guest-fields h3 {
  margin: 0;
}

.section-limit {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.add-person-link {
  justify-self: start;
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  cursor: pointer;
  font: inherit;
  font-size: 0.625em;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

[data-party-row][hidden] {
  display: none;
}

.minor-field-row,
.guest-field-row {
  display: grid;
  grid-template-columns: 32px 1fr 1fr 88px 1fr;
  gap: 12px;
  align-items: end;
}

.guest-field-row {
  grid-template-columns: 32px repeat(4, minmax(0, 1fr));
}

.day-trip-minor-field-row {
  grid-template-columns: minmax(180px, 1.4fr) minmax(180px, 1.4fr) minmax(90px, 0.7fr) minmax(180px, 1.2fr);
}

.remove-person-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 6px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--danger);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 850;
  line-height: 1;
}

.minor-field-row label,
.guest-field-row label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 750;
}

.minor-field-row input,
.guest-field-row input {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.waiver-intro {
  display: grid;
  gap: 20px;
}

.signup-kind-step[hidden],
.waiver-intro[hidden],
[data-signature-target="waiverStep"][hidden] {
  display: none;
}

.waiver-intro-copy {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
  
  font-size: 1.05rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

.waiver-intro-copy p {
  margin: 0;
  color: black;
}

.minor-responsibility-note {
  font-weight: 750;
}

.waiver-text {
  max-height: 520px;
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.waiver-document {
  display: grid;
  gap: 10px;
  width: 100%;
  color: #40512b;
  line-height: 1.42;
  overflow-wrap: break-word;
}

.waiver-document p {
  margin: 0;
  font-size: 1.3rem;
  color: black;
}

.waiver-title {
  margin: 0;
  text-align: center;
  font-size: 1.5rem;
}

.waiver-warning,
.waiver-summary-heading {
  margin: 0;
  text-align: center;
  font-weight: 750;
  line-height: 1.25;
}

.signup-modal .waiver-warning {
  justify-self: center;
  width: min(100%, 48rem);
  text-align: center;
}

.waiver-summary-heading {
  font-size: 1.1rem;
}

.signature-field {
  display: grid;
  gap: 10px;
}

.signature-label-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.signature-label-row label {
  font-weight: 750;
}

.signature-label-row span {
  color: var(--muted);
  font-size: 0.95rem;
}

.signature-pad {
  width: 100%;
  height: 120px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: crosshair;
  touch-action: none;
}

.signature-pad.disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.signup-modal .waiver-signature-actions {
  justify-content: space-between;
  margin-top: 8px;
}

.waiver-signature-submit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: end;
}

.waiver-form button[type="submit"]:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.participant-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.participant-list li {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbfaf7;
  font-weight: 700;
}

.confirmed-participants-table {
  margin-top: 10px;
  table-layout: fixed;
}

.confirmed-participants-table th:nth-child(1),
.confirmed-participants-table td:nth-child(1) {
  width: 22%;
}

.confirmed-participants-table th:nth-child(2),
.confirmed-participants-table td:nth-child(2) {
  width: 17%;
}

.confirmed-participants-table th:nth-child(3),
.confirmed-participants-table td:nth-child(3) {
  width: 18%;
}

.confirmed-participants-table th:nth-child(4),
.confirmed-participants-table td:nth-child(4) {
  width: 13%;
}

.confirmed-participants-table th:nth-child(5),
.confirmed-participants-table td:nth-child(5) {
  width: 13%;
}

.confirmed-participants-table th:nth-child(6),
.confirmed-participants-table td:nth-child(6) {
  width: 17%;
}

.public-party-primary-row > td,
.public-party-guest-row > td {
  background: #fcfffd;
}

.public-party-primary-row > td {
  border-top: 2px solid #9bd0ba;
}

.public-party-primary-row > td:first-child,
.public-party-guest-row > td:first-child {
  border-left: 2px solid #9bd0ba;
}

.public-party-primary-row > td:last-child,
.public-party-guest-row > td:last-child {
  border-right: 2px solid #9bd0ba;
}

.public-party-last-row > td {
  border-bottom: 2px solid #9bd0ba;
}

.public-party-guest-row > td:first-child {
  padding-left: 28px;
}

.public-party-participant-name {
  display: inline;
  color: inherit;
  font-size: inherit;
}

.public-participant-mobile-status-line {
  display: none;
}

.admin-parking-spot-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0;
}

.admin-parking-spot-form select {
  width: auto;
  min-width: 0;
  max-width: 100%;
  padding: 5px 8px;
  font-size: 0.86rem;
}

.admin-parking-spot-save-status {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.public-added-by {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.admin-minor-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.admin-minor-list .info-link-button {
  font-weight: inherit;
  white-space: nowrap;
}

.participant-info-control .info-link-button {
  font-weight: inherit;
}

.admin-linked-party-summary {
  display: block;
  margin-top: 4px;
}

.user-name-cell {
  display: inline-grid;
  grid-template-columns: 18px auto;
  gap: 6px;
  align-items: center;
}

.member-icon,
.member-icon-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

.member-icon {
  color: var(--accent-dark);
}

.member-icon svg {
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.waiver-check-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, #fff);
  border-radius: 999px;
  color: var(--accent);
  text-decoration: none;
}

.waiver-check-icon {
  display: block;
}

dialog.signup-modal.waiver-document-modal {
  width: min(920px, calc(100vw - 32px));
}

.waiver-document-modal .signup-modal-content {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  height: min(900px, calc(100vh - 48px));
  max-height: calc(100vh - 32px);
  overflow: hidden;
}

.waiver-document-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}

.waiver-document-frame {
  display: block;
  grid-template-columns: none;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.waiver-document-iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.waiver-document-modal .form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: end;
  padding-top: 0;
}

.waiver-document-modal .form-actions .button,
.waiver-document-modal .form-actions button {
  width: auto;
  min-width: 0;
  white-space: nowrap;
}

.waitlist {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.waitlist h3 {
  margin: 0 0 10px;
}

.auth-panel {
  max-width: 520px;
}

.auth-primary-action {
  min-width: 130px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.tooltip-heading {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
}

.info-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-dark);
  cursor: help;
}

.info-tooltip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1;
  text-transform: none;
}

.info-tooltip-box {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 50%;
  width: min(300px, 70vw);
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--accent-dark);
  box-shadow: 0 10px 28px rgb(31 41 51 / 20%);
  color: #fff;
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  text-align: left;
  text-transform: none;
  transform: translate(-50%, 4px);
  transition: opacity 140ms ease, transform 140ms ease;
  white-space: normal;
}

.info-tooltip:hover .info-tooltip-box,
.info-tooltip:focus .info-tooltip-box,
.info-tooltip:focus-visible .info-tooltip-box {
  opacity: 1;
  transform: translate(-50%, 0);
}

.parking-tooltip.info-tooltip {
  color: var(--muted);
}

.parking-tooltip.info-tooltip .info-tooltip-box {
  white-space: pre-line;
}

.parking-status-with-tooltip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 1rem;
}

.parking-status-with-tooltip .parking-status-label {
  display: inline;
  color: inherit;
  font-size: inherit;
}

.stats .parking-tooltip.info-tooltip {
  display: inline-flex;
  justify-content: flex-start;
  font-size: 0.9rem;
}

.stats .parking-tooltip.info-tooltip .info-tooltip-box {
  color: #fff;
  font-size: 1rem;
}

.stats .parking-tooltip.info-tooltip .info-tooltip-icon {
  display: inline-flex;
  flex: 0 0 18px;
  color: currentColor;
  font-size: 0.78rem;
  line-height: 1;
  text-align: center;
  vertical-align: middle;
  box-sizing: border-box;
}

.status {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e7f1ed;
  color: var(--accent-dark);
  font-size: 0.85rem;
  font-weight: 750;
}

.trip-type-badge.external-class-badge {
  background: #fff3bf;
  color: #7c4a03;
}

.trip-type-badge.day-trip-badge {
  background: #dbeafe;
  color: #1d4ed8;
}

.missing-value {
  color: var(--danger);
  font-weight: 750;
}

.missing-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--danger);
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.missing-details-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.admin-participant-link-share {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.admin-participant-link-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.admin-participant-link-action-form {
  display: inline-flex;
  margin: 0;
}

.admin-participant-link-action,
.admin-participant-link-action.copy-link-button {
  justify-content: center;
  min-width: 210px;
  min-height: 40px;
  padding: 8px 14px;
  font-size: 1rem;
}

.missing-details-link {
  color: var(--accent-dark);
  font-weight: 750;
}

.copy-link-button {
  gap: 5px;
  min-height: 28px;
  padding: 4px 8px;
  font-size: 0.85rem;
  transition: box-shadow 120ms ease, transform 120ms ease;
}

.copy-link-button:active {
  box-shadow: inset 0 2px 5px rgb(31 41 51 / 16%);
  transform: translateY(1px);
}

.copy-link-icon {
  display: inline-flex;
  align-items: center;
}

.copy-link-button .check-icon {
  display: none;
}

.copy-link-button.is-copied .copy-icon {
  display: none;
}

.copy-link-button.is-copied .check-icon {
  display: inline-flex;
}

.payment-success-waiver-links {
  margin-top: 22px;
  font-size: 1rem;
}

.payment-success-waiver-links li {
  display: grid;
  gap: 14px;
  justify-items: start;
  margin-bottom: 34px;
  padding-left: 4px;
}

.payment-success-waiver-links li:last-child {
  margin-bottom: 0;
}

.payment-success-waiver-link-text {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  margin-right: 12px;
  font-size: 1.125rem;
  line-height: 1.25;
}

.payment-success-waiver-links .copy-link-button {
  vertical-align: middle;
}

.danger-status {
  background: #fff1f0;
  color: var(--danger);
}

.success-status {
  background: #ecf8f2;
  color: var(--accent);
}

.warning-status {
  background: #fff8db;
  color: #936100;
}

.trip-readiness-overview,
.trip-readiness-category {
  margin-bottom: 16px;
  padding: 18px 20px;
  --readiness-status-column: 78px;
  --readiness-copy-column: minmax(420px, 520px);
  --readiness-action-column: 145px;
  width: fit-content;
  max-width: 100%;
}

.trip-readiness-overview {
  padding-block: 12px;
}

.trip-readiness-header,
.trip-readiness-category-header,
.trip-readiness-summary {
  align-items: center;
}

.trip-readiness-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.trip-readiness-header {
  margin-bottom: 0;
}

.trip-readiness-category-header {
  margin-bottom: 10px;
}

.trip-readiness-header h2,
.trip-readiness-category-header h2 {
  margin-bottom: 0;
  line-height: 1.1;
}

.trip-readiness-category-title-row .status {
  padding: 5px 12px;
  font-size: 1.275rem;
}

.trip-readiness-header {
  display: grid;
  grid-template-columns: var(--readiness-status-column) var(--readiness-copy-column) var(--readiness-action-column);
  gap: 14px;
  align-items: center;
  padding-left: 36px;
}

.trip-readiness-category-header {
  display: grid;
  grid-template-columns: var(--readiness-status-column) var(--readiness-copy-column) var(--readiness-action-column);
  gap: 14px;
  padding-left: 36px;
}

.trip-readiness-header > div,
.trip-readiness-category-header > div {
  grid-column: 1 / 3;
}

.trip-readiness-category-title-row {
  display: grid;
  grid-template-columns: var(--readiness-copy-column) max-content;
  column-gap: 12px;
  align-items: center;
}

.trip-readiness-category-header > .button,
.trip-readiness-category-header > .muted {
  grid-column: 3;
  justify-self: start;
}

.trip-readiness-category-header > .trip-readiness-header-actions {
  grid-column: 3;
  justify-self: start;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trip-readiness-category-title-row.has-trip-heading {
  grid-template-columns: max-content minmax(0, 1fr) max-content;
}

.trip-readiness-trip-heading {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  font-size: 1.05rem;
  font-weight: 800;
}

.trip-readiness-header .trip-readiness-summary {
  display: contents;
}

.trip-readiness-header .trip-readiness-summary .button {
  grid-column: 3;
  justify-self: start;
}

.trip-readiness-task-list {
  display: grid;
  gap: 8px;
}

.trip-readiness-task {
  display: grid;
  grid-template-columns: var(--readiness-status-column) var(--readiness-copy-column) var(--readiness-action-column);
  gap: 12px;
  align-items: center;
  padding: 4px 0 4px 36px;
}

.trip-readiness-task.is-complete {
  background: transparent;
}

.trip-readiness-task-status {
  display: flex;
  justify-content: center;
}

.trip-readiness-checkmark,
.trip-readiness-open-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
}

.trip-readiness-checkmark {
  gap: 5px;
  min-width: 58px;
  padding: 0 12px;
  background: #ecf8f2;
  color: var(--accent);
}

.trip-readiness-checkmark-icon {
  font-size: 0.85rem;
  line-height: 1;
}

.trip-readiness-open-circle {
  width: 30px;
  border: 2px solid #e7ddd2;
  background: #fff;
}

.trip-readiness-task-copy {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.trip-readiness-task-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.trip-readiness-task h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.15;
}

.trip-readiness-task-subtext {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.2;
}

.trip-readiness-task-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-self: start;
}

.trip-readiness-overview .button,
.trip-readiness-category .button,
.trip-readiness-overview input[type="submit"],
.trip-readiness-category input[type="submit"] {
  white-space: nowrap;
}

.trip-readiness-toggle-form {
  margin: 0;
}

.trip-readiness-campsite-group,
.trip-readiness-trip-group {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.trip-readiness-campsite-header,
.trip-readiness-trip-header,
.trip-readiness-campsite-check {
  display: grid;
  grid-template-columns: var(--readiness-status-column) var(--readiness-copy-column) var(--readiness-action-column);
  gap: 12px;
  align-items: center;
}

.trip-readiness-campsite-header,
.trip-readiness-trip-header {
  padding-left: 20px;
}

.trip-readiness-campsite-header .trip-readiness-campsite-title-row,
.trip-readiness-trip-header .trip-readiness-campsite-title-row {
  grid-column: 1 / 3;
}

.trip-readiness-campsite-header .button,
.trip-readiness-trip-header .button {
  grid-column: 3;
  justify-self: start;
}

.trip-readiness-campsite-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.trip-readiness-campsite-title-row h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.15;
}

.trip-readiness-trip-date {
  font-size: 0.95rem;
}

.trip-readiness-campsite-checks,
.trip-readiness-trip-checks {
  display: grid;
  gap: 2px;
  padding-left: 20px;
}

.trip-readiness-trip-checks {
  padding-left: 0;
}

.trip-readiness-campsite-check {
  grid-template-columns: var(--readiness-status-column) var(--readiness-copy-column) var(--readiness-action-column);
  justify-content: start;
  padding: 4px 0;
}

.trip-readiness-group-check {
  display: grid;
  grid-template-columns: var(--readiness-status-column) var(--readiness-copy-column) var(--readiness-action-column);
  gap: 12px;
  align-items: center;
  padding: 4px 0;
}

.trip-readiness-campsite-check h4,
.trip-readiness-group-check h4 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.15;
}

.trip-readiness-auto-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 5px;
  border-radius: 999px;
  background: #eef4ff;
  color: #1f5fbf;
  font-size: 0.42rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.trip-readiness-small-button {
  min-height: 24px;
  padding: 2px 7px;
  font-size: 0.7rem;
}

@media (max-width: 700px) {
  .trip-readiness-header {
    grid-template-columns: 1fr;
    padding-left: 0;
  }

  .trip-readiness-header > div,
  .trip-readiness-header .trip-readiness-summary .button,
  .trip-readiness-header .trip-readiness-summary .status {
    grid-column: auto;
    justify-self: start;
  }

  .trip-readiness-header .trip-readiness-summary {
    display: flex;
  }

  .trip-readiness-category-title-row {
    grid-template-columns: minmax(0, 1fr) max-content;
  }

  .trip-readiness-task {
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 16px;
  }

  .trip-readiness-task-actions {
    grid-column: auto;
    justify-self: start;
  }

  .trip-readiness-task > .trip-readiness-task-actions {
    grid-column: 2;
  }

  .trip-readiness-campsite-header,
  .trip-readiness-trip-header,
  .trip-readiness-group-check,
  .trip-readiness-campsite-check {
    grid-template-columns: 1fr;
    padding-left: 0;
  }

  .trip-readiness-campsite-header .trip-readiness-campsite-title-row,
  .trip-readiness-trip-header .trip-readiness-campsite-title-row,
  .trip-readiness-campsite-header .button,
  .trip-readiness-trip-header .button {
    grid-column: auto;
    justify-self: start;
  }

  .trip-readiness-campsite-checks,
  .trip-readiness-trip-checks {
    padding-left: 0;
  }
}

.draft-status {
  background: #fff8db;
  color: #936100;
}

.waitlisted-status {
  background: #fff8db;
  color: #936100;
}

.archived-status {
  background: #eef4ff;
  color: #1f5fbf;
}

.deleted-status {
  background: #fff1f0;
  color: var(--danger);
}

.admin-form {
  display: grid;
  gap: 18px;
}

.admin-form-top-actions {
  display: flex;
  justify-content: flex-end;
  align-self: start;
}

.admin-form-top-actions input[type="submit"] {
  width: auto;
}

.climbing-type-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.climbing-type-option {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 10px 15px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  transition:
    border-color 120ms ease,
    background-color 120ms ease,
    color 120ms ease,
    box-shadow 120ms ease;
}

.climbing-type-option:hover {
  border-color: var(--accent);
  background: #f5fbf8;
}

.climbing-type-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.climbing-type-option-mark {
  display: inline-grid;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 3px solid var(--muted);
  border-radius: 7px;
  color: #fff;
  line-height: 1;
}

.climbing-type-option-mark::after {
  content: "✓";
  opacity: 0;
  font-size: 1.1rem;
  font-weight: 900;
}

.climbing-type-option:has(input:checked) {
  border-color: var(--accent-dark);
  background: #e9f7f1;
  color: var(--accent-dark);
  box-shadow: 0 0 0 3px rgb(47 111 94 / 12%);
}

.climbing-type-option:has(input:checked) .climbing-type-option-mark {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
}

.climbing-type-option:has(input:checked) .climbing-type-option-mark::after {
  opacity: 1;
}

.climbing-type-option:has(input:focus-visible) {
  outline: 3px solid rgb(47 111 94 / 22%);
  outline-offset: 2px;
}

.content-action-list {
  display: grid;
  max-width: 520px;
  gap: 12px;
}

.content-action-list .button {
  justify-content: flex-start;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.admin-day-trip-top-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-areas:
    "name name name name name name participants participants participants actions actions actions"
    "date date date date date date coordinator coordinator coordinator coordinator coordinator coordinator"
    "location location location location location location image image image image image image"
    "status status status status status status . . . . . ."
    "description description description description description description description description description description description description";
  align-items: start;
}

.admin-day-trip-top-grid .admin-trip-name-field {
  grid-area: name;
}

.admin-day-trip-top-grid .admin-trip-participant-capacity-field {
  grid-area: participants;
}

.admin-day-trip-top-grid .admin-form-top-actions {
  grid-area: actions;
}

.admin-day-trip-top-grid .admin-trip-date-field {
  grid-area: date;
}

.admin-day-trip-top-grid .admin-trip-coordinator-field {
  grid-area: coordinator;
}

.admin-day-trip-top-grid .admin-trip-location-field {
  grid-area: location;
}

.admin-day-trip-top-grid .admin-trip-location-image-field {
  grid-area: image;
}

.admin-day-trip-top-grid .admin-trip-status-field {
  grid-area: status;
}

.admin-day-trip-top-grid .admin-trip-description-field {
  grid-area: description;
}

.form-grid-full {
  grid-column: 1 / -1;
}

.checkbox-field {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 750;
}

.checkbox-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.campsite-form-sections {
  display: grid;
  gap: 34px;
}

.campsite-form-section {
  display: grid;
  gap: 18px;
}

.campsite-form-section .form-grid {
  align-items: start;
}

.campsite-form-section .field:only-child {
  max-width: none;
}

.campsite-form-section textarea {
  width: 100%;
}

.admin-class-form-sections {
  display: grid;
  gap: 22px;
}

.admin-trip-form-section {
  display: grid;
  gap: 18px;
  min-width: 0;
  margin: 0;
  padding: 18px;
  border: 1px solid #cfd8d3;
  border-radius: 8px;
  background: #fbfdfc;
}

.admin-trip-form-section > legend {
  padding: 0 8px;
  color: var(--accent-dark);
  font-size: 1.05rem;
  font-weight: 850;
  line-height: 1.2;
}

.admin-class-discount-toggle-field {
  align-self: end;
}

.admin-class-discount-fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.campsite-date-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.content-page-editor {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(340px, 3fr);
  gap: 18px;
  align-items: start;
}

.content-page-editor-field {
  display: grid;
  gap: 14px;
}

.markdown-formatting-guide,
.content-page-preview-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.markdown-formatting-guide h3,
.content-page-preview-header h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.markdown-formatting-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

.markdown-formatting-heading h3 {
  margin: 0;
}

.markdown-formatting-heading a {
  font-size: 0.9rem;
}

.markdown-formatting-guide ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.markdown-formatting-guide code {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 5px;
  border-radius: 4px;
  background: #eef4f1;
  color: var(--accent-dark);
  font-size: 0.9rem;
}

.content-page-preview-header {
  margin-bottom: 14px;
}

.content-page-preview-header p {
  margin: 0;
}

.content-page-preview {
  min-height: 320px;
  padding: 18px;
  border: 1px solid #e7e0d2;
  border-radius: 8px;
  background: #fffaf0;
}

.trip-details-email-panel {
  margin-bottom: 20px;
}

.trip-details-email-form textarea {
  min-height: 520px;
}

.trip-details-email-preview-panel {
  max-height: 760px;
  overflow: auto;
}

.trip-details-email-markdown h1,
.trip-details-email-markdown h2,
.trip-details-email-markdown h3,
.trip-details-email-markdown h4 {
  color: var(--accent-dark);
  font-weight: 800;
}

.trip-details-email-markdown h1 {
  font-size: 1.55rem;
}

.trip-details-email-markdown h2 {
  font-size: 1.25rem;
}

.trip-details-email-markdown h3 {
  font-size: 1.08rem;
}

.trip-details-email-markdown hr {
  height: 1px;
  margin: 24px 0;
  border: 0;
  background: var(--line);
}

.trip-details-email-blockers,
.trip-details-email-ready {
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid #f4b7b0;
  border-radius: 8px;
  background: #fff1f0;
  color: var(--danger);
}

.trip-details-email-ready {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  border-color: #9bd4c0;
  background: #e9f7f1;
  color: var(--accent-dark);
}

.trip-details-email-blockers h3,
.trip-details-email-blockers ul {
  margin: 0;
}

.trip-details-email-blockers ul {
  padding-left: 20px;
}

.trip-details-email-preview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
  gap: 20px;
  align-items: start;
}

.trip-details-email-rendered,
.trip-details-email-recipient-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.trip-details-email-subject-preview {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-weight: 750;
}

.trip-details-email-recipient-table {
  margin-top: 10px;
  table-layout: auto;
  width: 100%;
}

.trip-details-email-recipient-contact {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.trip-details-email-recipient-name {
  font-weight: 750;
}

.trip-details-email-recipient-email {
  color: var(--green);
  font-size: 0.92em;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.trip-details-email-recipient-email.is-missing {
  color: var(--danger);
}

.trip-details-email-sent-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.trip-details-email-sent-summary > div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.participant-emails-panel,
.participant-email-section {
  margin-bottom: 20px;
}

.participant-email-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 20px;
  align-items: start;
}

.participant-email-section-header {
  align-items: flex-start;
}

.participant-email-copy-button {
  min-height: 40px;
  padding: 8px 12px;
  font-size: 0.95rem;
}

.participant-email-copy-area {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.participant-email-copy-area label {
  color: var(--muted);
  font-size: 0.92rem;
}

.participant-email-address-list {
  min-height: 92px;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.participant-email-table {
  table-layout: fixed;
  width: 100%;
}

.participant-email-contact {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.participant-email-name {
  font-weight: 750;
}

.participant-email-address {
  color: var(--green);
  font-size: 0.94em;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.participant-email-address.is-missing {
  color: var(--danger);
}

.field {
  display: grid;
  gap: 6px;
}

.admin-form select {
  min-height: 54px;
  padding: 12px 48px 12px 16px;
  border-color: #cfd8d3;
  border-radius: 8px;
  appearance: none;
  background-color: #fff;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--accent-dark) 50%),
    linear-gradient(135deg, var(--accent-dark) 50%, transparent 50%);
  background-position:
    calc(100% - 24px) 50%,
    calc(100% - 17px) 50%;
  background-size:
    8px 8px,
    8px 8px;
  background-repeat: no-repeat;
  color: var(--text);
  cursor: pointer;
  font-weight: 650;
  box-shadow: 0 1px 0 rgb(31 41 51 / 4%);
  transition:
    border-color 120ms ease,
    box-shadow 120ms ease,
    background-color 120ms ease;
}

.admin-form select:hover {
  border-color: var(--accent);
  background-color: #fbfdfc;
}

.admin-form select:focus,
.admin-form select:focus-visible {
  border-color: var(--accent);
  outline: 3px solid rgb(47 111 94 / 18%);
  outline-offset: 2px;
  box-shadow: 0 0 0 1px rgb(47 111 94 / 18%);
}

.password-visibility-field {
  position: relative;
}

.password-visibility-field input {
  width: 100%;
  padding-right: 54px;
}

.password-visibility-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  cursor: pointer;
  transform: translateY(-50%);
}

.password-visibility-toggle:hover,
.password-visibility-toggle:focus-visible {
  color: var(--accent);
}

.password-visibility-icon {
  display: inline-flex;
}

label {
  font-weight: 700;
}

.required-marker {
  margin-left: 2px;
  color: var(--danger);
  font-weight: 850;
}

.required-inline-label {
  display: inline-flex;
  gap: 2px;
  align-items: baseline;
  width: fit-content;
}

.radio-field {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 0;
  border: 0;
}

.radio-field legend {
  width: 100%;
  margin-bottom: 2px;
  font-weight: 700;
}

.radio-field label {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.radio-field input {
  width: auto;
}

.user-form {
  gap: 22px;
}

.user-form-section {
  display: grid;
  gap: 18px;
  min-width: 0;
  margin: 0;
  padding: 22px;
  border: 1px solid #cfd8d3;
  border-radius: 8px;
  background: #fbfdfc;
}

.user-form-section > legend {
  padding: 0 8px;
  color: var(--accent-dark);
  font-size: 1.15rem;
  font-weight: 850;
  line-height: 1.2;
}

.user-form-section-compact.radio-field {
  display: flex;
  gap: 14px;
  align-items: center;
}

.user-form-section-compact.radio-field legend {
  width: auto;
  margin-bottom: 0;
}

.user-form-section-compact.radio-field label {
  font-size: 1rem;
}

.user-form-section-compact.radio-field input[type="radio"] {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  accent-color: var(--accent);
}

.user-form-roles-section {
  gap: 14px;
}

.user-role-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.user-role-option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #d8e1dc;
  border-radius: 8px;
  background: #fff;
}

.user-role-option span {
  line-height: 1.2;
}

.user-role-checkbox {
  accent-color: var(--accent);
}

input:not([type="submit"]),
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #b9c0c8;
  border-radius: 6px;
  background: #fff;
}

.user-role-checkbox {
  width: 22px;
  height: 22px;
  padding: 0;
  flex: 0 0 22px;
  border-radius: 5px;
}

.currency-field {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  border: 1px solid #b9c0c8;
  border-radius: 6px;
  background: #fff;
}

.currency-field span {
  padding-left: 12px;
  color: var(--muted);
  font-weight: 700;
}

.currency-field input:not([type="submit"]) {
  border: 0;
  padding-left: 6px;
}

.currency-field:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

textarea {
  resize: vertical;
}

.form-errors,
.empty-state,
.flash {
  padding: 14px 16px;
  border-radius: 8px;
}

.form-errors {
  border: 1px solid #f4b6ae;
  background: #fff4f2;
}

.form-errors p {
  margin: 10px 0 0;
  line-height: 1.5;
}

.form-errors a {
  color: var(--accent-dark);
  font-weight: 800;
}

.empty-state {
  border: 1px dashed var(--line);
  background: #fbfaf7;
}

.flash-messages {
  margin-top: 16px;
}

.flash.notice {
  border: 1px solid #9bd0ba;
  background: #ecf8f2;
}

.flash.alert {
  border: 1px solid #f4b6ae;
  background: #fff4f2;
}

.environment-indicator {
  position: fixed;
  left: 16px;
  bottom: 14px;
  z-index: 30;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid #9bd0ba;
  border-radius: 6px;
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 8px 22px rgb(31 41 51 / 12%);
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 750;
}

.environment-indicator a {
  color: var(--accent);
  font-size: 0.75rem;
}

.link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--danger);
  font-weight: 700;
  cursor: pointer;
}

.info-link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 750;
  text-decoration: underline;
  cursor: pointer;
}

.campground-group {
  margin-top: 28px;
}

.campground-group h3 {
  margin-bottom: 4px;
}

.campground-group > p {
  margin-bottom: 10px;
}

.description {
  max-width: 72ch;
  margin-top: 12px;
}

.description p {
  margin: 0;
}

.details-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.details-list > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
}

.details-list dt {
  color: var(--muted);
  font-weight: 750;
  white-space: nowrap;
}

.details-list dd {
  margin: 0;
}

.admin-trip-resources-panel .details-list > div {
  grid-template-columns: 180px minmax(0, 1fr);
  column-gap: 24px;
}

.admin-trip-resources-panel .details-list dd {
  min-width: 0;
}

.admin-trip-resources-panel .details-list a {
  overflow-wrap: anywhere;
}

.campsite-notes-row td {
  padding-top: 0;
  color: var(--muted);
}

.campsite-row-with-notes td {
  border-bottom: 0;
}

.campsite-notes-row strong {
  color: var(--text);
}

.date-pair {
  display: grid;
  gap: 4px;
  margin: 0;
}

.date-pair div {
  display: grid;
  grid-template-columns: 84px max-content;
  gap: 10px;
  align-items: baseline;
}

.date-pair dt {
  color: var(--muted);
  font-weight: 750;
}

.date-pair dd {
  margin: 0;
}

@media (max-width: 760px) {
  body.trips-index-page,
  body.session-new-page,
  body.password-reset-new-page,
  body.password-reset-edit-page,
  body.not-found-page,
  body.registration-new-page,
  body.trip-what-to-expect-page,
  body.help-request-page,
  body.trip-show-page,
  body.profile-show-page,
  body.profile-edit-page {
    background-attachment: scroll;
  }

  body.trips-index-page,
  body.session-new-page,
  body.password-reset-new-page,
  body.registration-new-page,
  body.help-request-page,
  body.trip-show-page {
    background: var(--bg);
  }

  body.home-page .site-name,
  body.home-page .site-name small,
  body.trips-index-page .site-name,
  body.trips-index-page .site-name small,
  body.session-new-page .site-name,
  body.session-new-page .site-name small,
  body.password-reset-new-page .site-name,
  body.password-reset-new-page .site-name small,
  body.registration-new-page .site-name,
  body.registration-new-page .site-name small,
  body.help-request-page .site-name,
  body.help-request-page .site-name small,
  body.trip-show-page .site-name,
  body.trip-show-page .site-name small {
    color: #fff;
    text-shadow: 0 2px 10px rgb(0 0 0 / 62%);
  }

  .public-header,
  .public-main,
  .flash-messages {
    width: min(100% - 20px, 1280px);
  }

  body.home-page .flash-messages,
  body.trips-index-page .flash-messages,
  body.session-new-page .flash-messages,
  body.password-reset-new-page .flash-messages,
  body.registration-new-page .flash-messages,
  body.help-request-page .flash-messages,
  body.trip-show-page .flash-messages {
    position: absolute;
    z-index: 18;
    top: 82px;
    left: 10px;
    right: 10px;
    width: auto;
    margin: 0;
  }

  body.home-page .flash-messages .flash,
  body.trips-index-page .flash-messages .flash,
  body.session-new-page .flash-messages .flash,
  body.password-reset-new-page .flash-messages .flash,
  body.registration-new-page .flash-messages .flash,
  body.help-request-page .flash-messages .flash,
  body.trip-show-page .flash-messages .flash {
    padding: 12px 14px;
  }

  .public-header {
    position: relative;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 16px 0 12px;
  }

  body.home-page .public-header,
  body.trips-index-page .public-header,
  body.session-new-page .public-header,
  body.password-reset-new-page .public-header,
  body.registration-new-page .public-header,
  body.help-request-page .public-header,
  body.trip-show-page .public-header {
    position: absolute;
    z-index: 20;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    margin-inline: 0;
    padding: 16px 10px 12px;
  }

  .public-brand {
    flex: 1 1 auto;
    gap: 10px;
    min-width: 0;
  }

  .site-name span {
    font-size: 1.35rem;
  }

  .site-name small {
    font-size: 0.82rem;
  }

  .public-admin-link {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 0.9rem;
  }

  .public-nav-shell {
    position: relative;
    flex: 0 0 auto;
  }

  .public-nav-checkbox {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
  }

  .public-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid rgb(255 255 255 / 72%);
    border-radius: 6px;
    background: rgb(255 255 255 / 92%);
    color: var(--accent-dark);
    cursor: pointer;
    font-weight: 800;
    line-height: 1;
  }

  .public-nav-checkbox:focus-visible + .public-nav-toggle {
    outline: 3px solid rgb(47 111 94 / 22%);
    outline-offset: 2px;
  }

  .public-nav-toggle-icon,
  .public-nav-toggle-icon::before,
  .public-nav-toggle-icon::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    content: "";
  }

  .public-nav-toggle-icon {
    position: relative;
  }

  .public-nav-toggle-icon::before,
  .public-nav-toggle-icon::after {
    position: absolute;
    left: 0;
  }

  .public-nav-toggle-icon::before {
    top: -6px;
  }

  .public-nav-toggle-icon::after {
    top: 6px;
  }

  .public-nav {
    position: absolute;
    z-index: 40;
    top: calc(100% + 8px);
    right: 0;
    display: none;
    width: min(260px, calc(100vw - 20px));
    padding: 10px;
    border: 1px solid rgb(255 255 255 / 58%);
    border-radius: 8px;
    background: rgb(255 255 255 / 96%);
    box-shadow: 0 18px 44px rgb(0 0 0 / 22%);
    backdrop-filter: blur(8px);
  }

  .public-nav-checkbox:checked ~ .public-nav {
    display: grid;
    gap: 8px;
  }

  .public-nav form {
    margin: 0;
  }

  .public-nav a,
  .public-nav .nav-button {
    justify-content: flex-start;
    width: 100%;
    min-height: 44px;
  }

  .public-main {
    padding-bottom: 20px;
  }

  .home-main {
    width: 100%;
  }

  body.home-page .home-main {
    padding-top: 0;
  }

  .public-main > .panel,
  .panel {
    padding: 16px;
  }

  .background-image-caption {
    display: none;
  }

  body.home-page .home-hero-caption {
    right: 10px;
    bottom: 10px;
    display: block;
    max-width: 180px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: right;
    text-shadow: 0 2px 8px rgb(0 0 0 / 58%);
  }

  .trips-mobile-hero {
    position: relative;
    display: block;
    min-height: clamp(150px, 38vw, 220px);
    margin: 0 0 14px;
    background:
      linear-gradient(180deg, rgb(15 23 20 / 58%), rgb(15 23 20 / 16%) 52%, rgb(15 23 20 / 38%)),
      url("/assets/backgrounds/half-dome-ledge-db9b08c4.jpg") center 58% / cover;
  }

  body.trips-index-page:has(.flash-messages) .trips-mobile-hero {
    min-height: clamp(230px, 56vw, 300px);
  }

  .public-mobile-hero {
    position: relative;
    display: block;
    min-height: clamp(200px, 52vw, 280px);
    margin: 0 0 14px;
    background:
      linear-gradient(180deg, rgb(15 23 20 / 60%), rgb(15 23 20 / 14%) 48%, rgb(15 23 20 / 42%)),
      var(--public-mobile-hero-image) center / cover;
  }

  body.session-new-page:has(.flash-messages) .public-mobile-hero,
  body.password-reset-new-page:has(.flash-messages) .public-mobile-hero,
  body.registration-new-page:has(.flash-messages) .public-mobile-hero,
  body.help-request-page:has(.flash-messages) .public-mobile-hero {
    min-height: clamp(280px, 68vw, 360px);
  }

  .public-mobile-hero-help {
    --public-mobile-hero-image: url("/assets/backgrounds/yosemite-national-park-the-rostrum-9baa4e36.jpg");
    background-position: center 50%;
  }

  .public-mobile-hero-session {
    --public-mobile-hero-image: url("/assets/backgrounds/indian-creek-super-crack-efb293c4.jpg");
    background-position: center 50%;
  }

  .public-mobile-hero-password-reset {
    --public-mobile-hero-image: url("/assets/backgrounds/castle-valley-the-rectory-b278bead.jpg");
    background-position: center 50%;
  }

  .public-mobile-hero-registration {
    --public-mobile-hero-image: url("/assets/backgrounds/tuolumne-meadows-cathedral-peak-8e576622.jpg");
    background-position: center 48%;
  }

  body.home-page .public-admin-link,
  body.home-page .public-nav-toggle,
  body.trips-index-page .public-admin-link,
  body.trips-index-page .public-nav-toggle,
  body.session-new-page .public-admin-link,
  body.session-new-page .public-nav-toggle,
  body.password-reset-new-page .public-admin-link,
  body.password-reset-new-page .public-nav-toggle,
  body.registration-new-page .public-admin-link,
  body.registration-new-page .public-nav-toggle,
  body.help-request-page .public-admin-link,
  body.help-request-page .public-nav-toggle,
  body.trip-show-page .public-admin-link,
  body.trip-show-page .public-nav-toggle {
    border-color: rgb(255 255 255 / 78%);
    background: rgb(15 23 20 / 18%);
    color: #fff;
    text-shadow: 0 2px 8px rgb(0 0 0 / 54%);
    backdrop-filter: blur(4px);
  }

  .trips-mobile-hero-title {
    position: absolute;
    left: 10px;
    bottom: 18px;
    margin: 0;
    color: #fff;
    font-size: 2.25rem;
    line-height: 1;
    text-shadow: 0 3px 12px rgb(0 0 0 / 62%);
  }

  .public-mobile-hero-title {
    position: absolute;
    left: 10px;
    bottom: 18px;
    max-width: calc(100% - 130px);
    margin: 0;
    color: #fff;
    font-size: 2.25rem;
    line-height: 1;
    text-shadow: 0 3px 12px rgb(0 0 0 / 62%);
  }

  .public-mobile-hero-title-stacked {
    max-width: 220px;
    line-height: 0.96;
  }

  .trips-mobile-hero-caption {
    position: absolute;
    right: 12px;
    bottom: 10px;
    color: rgb(255 255 255 / 88%);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgb(0 0 0 / 58%);
  }

  .public-mobile-hero-caption {
    position: absolute;
    right: 12px;
    bottom: 10px;
    display: block;
    max-width: min(180px, calc(100% - 24px));
    color: rgb(255 255 255 / 88%);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
    text-align: right;
    text-shadow: 0 2px 8px rgb(0 0 0 / 58%);
  }

  body.session-new-page .auth-panel > h1,
  body.password-reset-new-page .auth-panel > h1,
  body.registration-new-page .public-main > .panel > h1,
  body.help-request-page .help-panel .panel-header h1 {
    display: none;
  }

  .trip-show-mobile-hero {
    position: relative;
    display: grid;
    align-items: end;
    min-height: clamp(230px, 64vw, 320px);
    margin: 0 0 14px;
    padding: 88px 10px 18px;
    background:
      linear-gradient(180deg, rgb(15 23 20 / 60%), rgb(15 23 20 / 12%) 46%, rgb(15 23 20 / 52%)),
      url("/assets/backgrounds/joshua-tree-irs-wall-396c5c87.jpg") center 58% / cover;
    color: #fff;
  }

  body.day-trip-show-page .trip-show-mobile-hero {
    margin-bottom: 0;
  }

  body.trip-show-page:has(.flash-messages) .trip-show-mobile-hero {
    min-height: clamp(300px, 76vw, 390px);
  }

  .trip-show-mobile-hero-copy {
    display: grid;
    gap: 7px;
    padding-right: 92px;
  }

  .trip-show-mobile-hero .trip-title-line {
    gap: 8px;
  }

  .trip-show-mobile-hero h1 {
    margin: 0;
    color: #fff;
    font-size: 2.25rem;
    line-height: 1;
    text-shadow: 0 3px 12px rgb(0 0 0 / 62%);
  }

  .trip-show-mobile-location,
  .trip-show-mobile-dates {
    margin: 0;
    color: rgb(255 255 255 / 92%);
    font-size: 0.96rem;
    font-weight: 750;
    line-height: 1.25;
    text-shadow: 0 2px 8px rgb(0 0 0 / 58%);
  }

  .trip-mobile-resource-link {
    display: inline;
    justify-self: start;
    color: #fff;
    font-size: 1rem;
    text-shadow: 0 2px 8px rgb(0 0 0 / 58%);
  }

  .trip-show-mobile-hero-caption {
    position: absolute;
    right: 10px;
    bottom: 10px;
    max-width: 108px;
    color: rgb(255 255 255 / 88%);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: right;
    text-shadow: 0 2px 8px rgb(0 0 0 / 58%);
  }

  .home-hero {
    min-height: 100svh;
  }

  .home-hero::after {
    background:
      linear-gradient(180deg, rgba(12, 19, 25, 0.6), rgba(12, 19, 25, 0.08) 34%, rgba(12, 19, 25, 0)),
      linear-gradient(90deg, rgba(12, 19, 25, 0.75), rgba(12, 19, 25, 0.38) 68%, rgba(12, 19, 25, 0.18)),
      linear-gradient(0deg, rgba(12, 19, 25, 0.66), rgba(12, 19, 25, 0) 54%);
  }

  .home-hero-copy {
    width: min(100% - 28px, 1120px);
    padding-block: 28px 36px;
  }

  .home-hero h1 {
    font-size: 2.4rem;
    line-height: 0.96;
  }

  .home-hero p:not(.eyebrow) {
    margin-block: 20px;
    font-size: 1rem;
  }

  .home-hero .button {
    min-height: 46px;
  }

  body:not(.admin-body) input:not([type="submit"]),
  body:not(.admin-body) select,
  body:not(.admin-body) textarea {
    min-height: 44px;
    font-size: 16px;
  }

  .public-liability-warning,
  body.trips-index-page .public-liability-warning,
  body.trip-show-page .public-liability-warning {
    width: min(100% - 20px, 960px);
    margin-block: 18px 24px;
    padding: 12px 14px;
  }

  body.trips-index-page .trips-index-panel {
    width: 100%;
    margin-bottom: 28px;
    padding: 0 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  body.trips-index-page .public-main {
    width: 100%;
  }

  body.trip-show-page .public-main {
    width: 100%;
  }

  body.trips-index-page .trips-index-panel .panel-header {
    gap: 10px;
    margin-bottom: 10px;
  }

  body.trips-index-page .trips-index-copy {
    flex: none;
  }

  body.trips-index-page .trips-index-panel h1 {
    display: none;
  }

  body.trips-index-page .trips-index-panel .trips-faq-callout {
    margin-top: 4px;
  }

  body.trips-index-page .trips-index-panel .trips-faq-callout,
  body.trips-index-page .trips-index-notices .public-beta-notice,
  body.trip-show-page .trip-summary-header .public-beta-notice {
    height: auto;
  }

  body.trips-index-page .trips-index-notices .public-beta-notice,
  body.trips-index-page .trips-index-panel .trips-faq-callout,
  body.trip-show-page .trip-summary-header .public-beta-notice {
    justify-self: stretch;
    width: 100%;
    text-align: left;
  }

  body.trips-index-page .trips-index-notices .public-beta-notice {
    margin-top: 0;
  }

  body.trips-index-page .archived-trips-panel {
    width: 100%;
    padding: 0 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  body.trip-show-page .panel {
    width: 100%;
    padding: 0 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  body.trip-show-page .trip-overview,
  body.trip-show-page .campsites-panel {
    margin-bottom: 24px;
  }

  body.trip-show-page .trip-summary-copy > .trip-title-line,
  body.trip-show-page .trip-summary-copy > h2,
  body.trip-show-page .trip-summary-copy > p {
    display: none;
  }

  body.trip-show-page .trip-summary-header {
    gap: 10px;
    grid-template-columns: 1fr;
    margin-bottom: 22px;
  }

  .day-trip-plan-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .day-trip-plan-main {
    gap: 6px;
  }

  .day-trip-details-panel .details-list > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .day-trip-details-panel .details-list dt {
    white-space: normal;
  }

  .day-trip-details-panel .details-list dd {
    margin-bottom: 14px;
  }

  .day-trip-details-panel .details-list > div:last-child dd {
    margin-bottom: 0;
  }

  .class-trip-details-panel > h2,
  body.day-trip-show-page .class-trip-participants-panel h2,
  body.day-trip-show-page .class-reminder-panel h2 {
    margin-bottom: 4px;
  }

  .class-trip-details-panel .details-list {
    gap: 6px;
  }

  .class-trip-details-panel .details-list > div {
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 0 6px;
    align-items: baseline;
  }

  .class-trip-details-panel .details-list dt {
    white-space: nowrap;
  }

  .class-trip-details-panel .details-list dt::after {
    content: ":";
  }

  .class-trip-details-panel .details-list dd {
    margin-bottom: 0;
  }

  .class-trip-participants-panel > .muted {
    margin-bottom: 18px;
  }

  .class-participant-signup-action {
    gap: 6px;
    margin-top: 12px;
  }

  body.day-trip-show-page .class-reminder-panel {
    margin-top: 22px;
  }

  .class-reminder-panel .content-page-markdown h2 {
    margin-bottom: 4px;
  }

  .class-reminder-panel .content-page-markdown p {
    margin-bottom: 6px;
    line-height: 1.25;
  }

  body.day-trip-show-page .day-trip-description-panel,
  body.day-trip-show-page .day-trip-participants-panel,
  body.day-trip-show-page .day-trip-coordinator-panel,
  body.day-trip-show-page .day-trip-safety-panel {
    margin-bottom: 4px;
    padding-top: 4px;
    padding-bottom: 4px;
  }

  body.day-trip-show-page .day-trip-description-panel .panel-header,
  body.day-trip-show-page .day-trip-participants-panel .panel-header,
  body.day-trip-show-page .day-trip-coordinator-panel .panel-header,
  body.day-trip-show-page .day-trip-safety-panel .panel-header {
    margin-bottom: 2px;
  }

  body.day-trip-show-page .day-trip-participants-panel .panel-header {
    margin-bottom: -8px;
  }

  body.day-trip-show-page .day-trip-description-panel h2,
  body.day-trip-show-page .day-trip-participants-panel h2,
  body.day-trip-show-page .day-trip-coordinator-panel h2,
  body.day-trip-show-page .day-trip-safety-panel h2 {
    margin-bottom: 0;
  }

  body.day-trip-show-page .additional-resources-list {
    gap: 2px;
  }

  .class-description-body.has-registration-action {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .class-description-body .class-registration-card {
    order: -1;
    justify-self: stretch;
  }

  .class-registration-card {
    padding: 12px;
  }

  body.day-trip-show-page .day-trip-participants-panel .confirmed-participants-table th,
  body.day-trip-show-page .day-trip-participants-panel .confirmed-participants-table td {
    padding-top: 2px;
    padding-bottom: 2px;
  }

  body.day-trip-show-page .day-trip-participants-panel .public-card-table {
    gap: 6px;
  }

  body.day-trip-show-page .day-trip-participants-panel .public-card-table tbody {
    gap: 6px;
  }

  body.day-trip-show-page .day-trip-participants-panel .public-card-table tr {
    padding: 6px 0;
    border: 0;
    background: transparent;
  }

  body.day-trip-show-page .day-trip-participants-panel .confirmed-participants-table.public-card-table td {
    grid-template-columns: minmax(118px, 0.38fr) minmax(0, 1fr);
    gap: 12px;
    align-items: baseline;
    padding-top: 3px;
    padding-bottom: 3px;
  }

  body.day-trip-show-page .day-trip-participants-panel .confirmed-participants-table.public-card-table td:first-child,
  body.day-trip-show-page .day-trip-participants-panel .confirmed-participants-table.public-card-table td:nth-child(2) {
    grid-template-columns: minmax(118px, 0.38fr) minmax(0, 1fr);
  }

  body.day-trip-show-page .day-trip-participants-panel .confirmed-participants-table.public-card-table td:first-child::before,
  body.day-trip-show-page .day-trip-participants-panel .confirmed-participants-table.public-card-table td:nth-child(2)::before {
    content: attr(data-label);
  }

  .day-trip-location-image {
    width: 100%;
  }

  .location-image-modal,
  .location-image-modal-content,
  .location-image-modal-content img {
    max-width: 92vw;
    max-height: 84vh;
  }

  .day-trip-signup-action {
    justify-items: stretch;
    min-width: 0;
  }

  .day-trip-signup-action p {
    text-align: left;
  }

  .class-registration-note {
    text-align: left;
  }

  .day-trip-signup-button {
    width: 100%;
  }

  .trip-summary-notices .trip-resource-link {
    display: none;
  }

  body.trip-show-page .campsites-panel > h2,
  body.trip-show-page .public-main > .panel > h2 {
    margin-bottom: 10px;
  }

  body.trip-show-page .public-main > .class-trip-participants-panel > h2,
  body.trip-show-page .public-main > .class-reminder-panel > h2 {
    margin-bottom: 2px;
    line-height: 1;
  }

  body.trip-show-page .campsite-card-list {
    margin-left: -5px;
    margin-right: -10px;
  }

  body.trip-show-page .campsite-card,
  body.trip-show-page .trip-waitlist-section {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }

  body.trip-show-page .trip-waitlist-section {
    margin-left: -5px;
    margin-right: -10px;
    border-left: 4px solid #b47a00;
  }

  body.trip-show-page .trip-waitlist-note {
    flex-basis: 100%;
  }

  .trip-title-line {
    gap: 8px;
  }

  .trip-title-line.trip-admin-title-line {
    grid-template-areas:
      "heading"
      "meta"
      "coordinator"
      "actions";
    grid-template-columns: 1fr;
  }

  .trip-title-actions,
  .trip-title-coordinator {
    justify-self: start;
  }

  .trip-title-coordinator {
    justify-content: flex-start;
    min-width: 0;
    text-align: left;
  }

  .trip-title-line h1 {
    font-size: 1.75rem;
    line-height: 1.08;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .stats > div {
    padding: 12px;
  }

  .stats strong {
    font-size: 1.45rem;
  }

  .split-signup-stat {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .parking-breakdown {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .campsite-card {
    gap: 10px;
    padding: 14px;
  }

  .campsite-card-header h3 {
    font-size: 1.12rem;
    line-height: 1.2;
  }

  .campsite-card-summary .date-pair {
    margin-top: 8px;
  }

  body.trip-show-page .campsite-card-header {
    gap: 8px;
  }

  body.trip-show-page .campsite-signup-action {
    gap: 4px;
  }

  body.trip-show-page .campsite-signup-action .already-signed-up-note {
    line-height: 1.24;
  }

  body.trip-show-page .campsite-card-details {
    gap: 10px;
    padding-top: 0;
  }

  .campsite-signup-action > [data-controller~="modal"],
  .campsite-signup-action > [data-controller~="modal"] > .button,
  .campsite-signup-action > .button,
  .waitlist-action-buttons,
  .waitlist-confirm-action,
  .waitlist-direct-signup-control {
    width: 100%;
  }

  .campsite-signup-action .button,
  .waitlist-action-buttons .button {
    justify-content: center;
    width: 100%;
  }

  .signup-modal,
  .confirmation-modal {
    width: min(100vw - 16px, 960px);
    max-height: calc(100dvh - 16px);
  }

  .signup-modal-content,
  .confirmation-modal-content {
    gap: 16px;
    padding: 16px;
    max-height: calc(100dvh - 16px);
  }

  .signup-modal .form-actions,
  .confirmation-modal .form-actions,
  body:not(.admin-body) .form-actions {
    align-items: stretch;
  }

  .signup-modal .form-actions .button,
  .signup-modal .form-actions button,
  .signup-modal .form-actions input[type="submit"],
  .confirmation-modal .form-actions .button,
  .confirmation-modal .form-actions button,
  body:not(.admin-body) .form-actions .button,
  body:not(.admin-body) .form-actions button,
  body:not(.admin-body) .form-actions input[type="submit"] {
    justify-content: center;
    width: 100%;
    min-height: 44px;
  }

  .attendance-fields,
  .fee-fields,
  .signup-kind-options,
  .minor-fields,
  .guest-fields,
  .waiver-intro-copy,
  .waiver-text {
    padding: 14px;
  }

  .signup-kind-options label {
    width: 100%;
  }

  .fee-rate,
  .payment-line-detail {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .fee-rate strong,
  .payment-line-detail strong {
    white-space: normal;
  }

  .waiver-text {
    max-height: min(420px, 42dvh);
  }

  .waiver-document p {
    font-size: 1.05rem;
  }

  .waiver-title {
    font-size: 1.25rem;
  }

  .signature-pad {
    height: 150px;
  }

  .minor-field-row,
  .guest-field-row {
    gap: 10px;
  }

  .remove-person-button {
    justify-self: end;
    margin-bottom: 0;
  }

  .help-layout {
    gap: 18px;
  }

  .help-request-form textarea {
    min-height: 160px;
  }

  .admin-header,
  .panel-header,
  .campsite-card-header,
  .admin-campsite-card-header {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-campsite-card-header {
    grid-template-columns: 1fr;
    grid-template-areas:
      "heading"
      "dates"
      "registration"
      "actions"
      "fees";
  }

  .campsite-card-actions {
    justify-self: stretch;
  }

  .public-beta-notice {
    flex: none;
    flex-basis: auto;
    max-width: none;
    padding: 13px 24px 16px;
    line-height: 1.32;
  }

  .trips-index-notices {
    flex: none;
    gap: 10px;
    margin-top: 0;
  }

  .panel-header .public-beta-notice {
    flex: none;
  }

  .content-page-editor {
    grid-template-columns: 1fr;
  }

  .trip-details-email-preview-layout,
  .trip-details-email-sent-summary {
    grid-template-columns: 1fr;
  }

  .campsite-signup-action {
    justify-items: start;
    min-width: 0;
  }

  .waitlist-action-buttons {
    justify-content: flex-start;
  }

  .campsite-signup-action p {
    text-align: left;
  }

  .campsite-card-list,
  .admin-campsite-list {
    padding-left: 0;
  }

  .trip-waitlist-section {
    margin-left: 0;
  }

  .admin-campsite-choice-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .admin-campsite-choice-stats {
    grid-template-columns: 1fr;
  }

  .form-grid,
  .stats,
  .attendance-date-row,
  .campsite-date-row,
  .fee-section-row,
  .minor-field-row,
  .guest-field-row,
  .help-layout,
  .help-request-detail-grid,
  .trip-card,
  .archived-trip-row {
    grid-template-columns: 1fr;
  }

  .admin-day-trip-top-grid {
    grid-template-areas: none;
  }

  .admin-day-trip-top-grid .field,
  .admin-day-trip-top-grid .admin-form-top-actions {
    grid-area: auto;
  }

  body:not(.admin-body) .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .date-range-desktop {
    display: none;
  }

  .date-range-mobile {
    display: inline;
  }

  .payment-due-section {
    width: 100%;
  }

  .transaction-details-sections {
    grid-template-columns: 1fr;
  }

  body.password-reset-edit-page .public-main {
    display: block !important;
  }

  body.password-reset-edit-page .auth-panel {
    margin-inline: auto;
  }

  .details-list.transaction-details-list > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  table {
    display: block;
    overflow-x: auto;
  }

  body:not(.admin-body) .public-card-table {
    display: grid;
    gap: 12px;
    overflow: visible;
    border-collapse: separate;
    table-layout: auto;
  }

  body:not(.admin-body) .public-card-table thead {
    display: none;
  }

  body:not(.admin-body) .public-card-table tbody {
    display: grid;
    gap: 12px;
  }

  body:not(.admin-body) .public-card-table tr {
    display: grid;
    gap: 0;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfaf7;
  }

  body:not(.admin-body) .public-card-table td {
    display: grid;
    grid-template-columns: minmax(104px, 0.4fr) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    min-width: 0;
    padding: 9px 0;
    border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
    overflow-wrap: anywhere;
    width: auto !important;
  }

  body:not(.admin-body) .public-card-table td:last-child {
    border-bottom: 0;
  }

  body:not(.admin-body) .public-card-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 850;
    line-height: 1.25;
    text-transform: uppercase;
  }

  body:not(.admin-body) .public-card-table td .button,
  body:not(.admin-body) .public-card-table td button {
    justify-content: center;
    width: 100%;
  }

  body:not(.admin-body) .confirmed-participants-table td,
  body:not(.admin-body) .waitlist-table td {
    grid-template-columns: minmax(104px, 0.4fr) minmax(0, 1fr);
  }

  body.trip-show-page .public-campsite-parking-section .campsite-parking-table.public-card-table {
    display: grid;
    gap: 0;
    overflow: visible;
  }

  body.trip-show-page .public-campsite-parking-section {
    padding: 10px 12px;
  }

  body.trip-show-page .public-campsite-parking-section .campsite-section-heading {
    margin-bottom: 0;
  }

  body.trip-show-page .public-campsite-parking-section .campsite-parking-table.public-card-table tbody {
    display: grid;
    gap: 0;
  }

  body.trip-show-page .public-campsite-parking-section .campsite-parking-table.public-card-table tr {
    display: grid;
    grid-template-columns: minmax(72px, 0.34fr) minmax(0, 1fr);
    gap: 10px;
    padding: 4px 0;
    border: 0;
    border-bottom: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
    border-radius: 0;
    background: transparent;
  }

  body.trip-show-page .public-campsite-parking-section .campsite-parking-table.public-card-table tr:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  body.trip-show-page .public-campsite-parking-section .campsite-parking-table.public-card-table td {
    display: block;
    min-width: 0;
    padding: 0;
    border-bottom: 0;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  body.trip-show-page .public-campsite-parking-section .campsite-parking-table.public-card-table td::before {
    content: none;
  }

  body:not(.admin-body) .public-party-guest-row > td:first-child {
    padding-left: 0;
  }

  body:not(.admin-body) .public-party-guest-row .public-party-participant-name::before {
    content: "Guest: ";
    color: var(--muted);
    font-weight: 750;
  }

  body.trip-show-page .confirmed-participants-table.public-card-table {
    gap: 0;
  }

  body.trip-show-page .confirmed-participants-table.public-card-table tbody {
    gap: 0;
  }

  body.trip-show-page .confirmed-participants-table.public-card-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 12px;
    align-items: start;
    padding: 0;
    border: 0;
    border-bottom: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
    border-radius: 0;
    background: transparent;
  }

  body.trip-show-page .confirmed-participants-table.public-card-table tr:last-child {
    border-bottom: 0;
  }

  body.trip-show-page .confirmed-participants-table.public-card-table td {
    grid-template-columns: minmax(82px, 0.36fr) minmax(0, 1fr);
    gap: 10px;
    padding: 5px 0;
    border-bottom: 0;
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.25;
  }

  body.trip-show-page .confirmed-participants-table.public-card-table td:first-child {
    grid-column: 1;
    grid-template-columns: 1fr;
    padding-top: 10px;
    padding-bottom: 2px;
  }

  body.trip-show-page .confirmed-participants-table.public-card-table td:nth-child(2) {
    grid-column: 2;
    grid-template-columns: 1fr;
    justify-self: end;
    padding-top: 11px;
    padding-bottom: 2px;
    text-align: right;
    white-space: nowrap;
  }

  body.trip-show-page .confirmed-participants-table.public-card-table .public-participant-mobile-status-line {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    justify-content: flex-start;
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: inherit;
    line-height: 1.2;
  }

  body.trip-show-page .confirmed-participants-table.public-card-table td:nth-child(n + 3) {
    grid-column: 1 / -1;
  }

  body.trip-show-page .confirmed-participants-table.public-card-table td:nth-child(3),
  body.trip-show-page .confirmed-participants-table.public-card-table td:nth-child(4) {
    display: none;
  }

  body.trip-show-page .confirmed-participants-table.public-card-table td:last-child {
    padding-bottom: 10px;
  }

  body.trip-show-page .confirmed-participants-table.public-card-table td:empty {
    display: none;
  }

  body.trip-show-page .confirmed-participants-table.public-card-table td.public-empty-value {
    display: none;
  }

  body.trip-show-page .confirmed-participants-table.public-card-table td:first-child::before,
  body.trip-show-page .confirmed-participants-table.public-card-table td:nth-child(2)::before {
    content: none;
  }

  body.trip-show-page .confirmed-participants-table.public-card-table td::before {
    font-size: 0.68rem;
    line-height: 1.2;
  }

  body.trip-show-page .confirmed-participants-table .public-party-participant-name {
    color: var(--text);
    font-size: 1rem;
    font-weight: 850;
    line-height: 1.2;
  }

  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-guest-row {
    background: #fff;
  }

  body.trip-show-page .confirmed-participants-table.public-card-table .public-party-primary-row {
    margin-top: 8px;
    padding: 8px 10px 0;
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
  }

  body.trip-show-page .confirmed-participants-table.public-card-table .public-party-guest-row {
    padding: 0 10px;
    border-right: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }

  body.trip-show-page .confirmed-participants-table.public-card-table .public-party-guest-row.public-party-last-row {
    border-bottom: 1px solid var(--line);
  }

  body.trip-show-page .confirmed-participants-table.public-card-table .public-party-last-row {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
    border-radius: 0 0 8px 8px;
  }

  body.trip-show-page .confirmed-participants-table.public-card-table .public-party-primary-row > td,
  body.trip-show-page .confirmed-participants-table.public-card-table .public-party-guest-row > td,
  body.trip-show-page .confirmed-participants-table.public-card-table .public-party-last-row > td {
    border: 0;
    background: transparent;
  }

  body.trip-show-page .confirmed-participants-table.public-card-table .public-party-primary-row > td:first-child,
  body.trip-show-page .confirmed-participants-table.public-card-table .public-party-guest-row > td:first-child {
    padding-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .campsite-card,
  .admin-campsite-card {
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  }

  .campsite-card:hover,
  .campsite-card:focus-within,
  .admin-campsite-card:hover,
  .admin-campsite-card:focus-within {
    transform: none;
  }
}
