/* ============================================
   THGMC Family Membership Styles
   ============================================ */

/* --- Registration page: family member fields --- */

.thgmc-family-fields,
.thgmc-family-checkboxes {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fafafa;
}

.thgmc-family-fields-label,
.thgmc-family-checkboxes-label {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 10px;
  color: #1f2937;
}

.thgmc-family-fields-hint {
  font-weight: 400;
  font-size: 13px;
  color: #6b7280;
}

.thgmc-family-field-list {
  margin-bottom: 10px;
}

.thgmc-family-fields-help {
  margin: -4px 0 10px;
  font-size: 13px;
  color: #6b7280;
}

.thgmc-family-field-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.thgmc-family-field-row.is-invalid .thgmc-family-input,
.thgmc-family-field-row.is-invalid-dob .thgmc-family-dob,
.thgmc-own-dob-input.is-invalid {
  border-color: #ef4444;
  background: #fef2f2;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15);
}

/*
 * Inside the UM form, UM's input rules (and the register page's re-skin below) restyle every text input with
 * !important, which hid the red highlight on a flagged name. These selectors outrank both.
 */
.um .um-form .thgmc-family-field-row.is-invalid input.thgmc-family-input,
.um .um-form .thgmc-family-field-row.is-invalid input.thgmc-family-input:focus,
.um .um-form .thgmc-family-field-row.is-invalid-dob input.thgmc-family-dob,
.um .um-form .thgmc-own-dob input.thgmc-own-dob-input.is-invalid {
  border-color: #ef4444 !important;
  background: #fef2f2 !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15) !important;
}

/* Date-of-birth inputs (registration rows + primary member) */
.thgmc-family-dob {
  flex: 0 1 11.5em;
  min-width: 10em;
  padding: 8px 10px;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: #fff;
  color: #1f2937;
}

.thgmc-family-dob:focus,
.thgmc-family-input:focus {
  border-color: #2e7d32;
  outline: none;
  box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.2);
}

.thgmc-own-dob {
  margin: 16px 0 0;
}

.thgmc-own-dob .thgmc-family-fields-label {
  display: block;
  margin-bottom: 6px;
}

.thgmc-own-dob-input {
  display: block;
  max-width: 14em;
}

.thgmc-family-age {
  color: #6b7280;
  font-size: 0.9em;
  margin-left: 4px;
}

.thgmc-family-age--missing {
  color: #b45309;
}

/* RSVP: age-restricted trips */
.thgmc-rsvp-age {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 9px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  vertical-align: middle;
  white-space: nowrap;
}

/* 18+: adults only — stronger, unmistakable */
.thgmc-rsvp-age--adult {
  background: #7f1d1d;
  color: #fff;
  border: 1px solid #7f1d1d;
}

/* Badge inside the Field Trips list card title */
.thft-trip-age {
  margin-left: 8px;
  font-family: "Mulish", -apple-system, sans-serif;
  font-size: 0.7rem;
  padding: 2px 8px;
  position: relative;
  top: -2px;
}

.thgmc-family-checkbox-row.thgmc-age-blocked {
  opacity: 0.7;
  cursor: not-allowed;
  background: #faf8f3;
}

.thgmc-family-checkbox-row.thgmc-age-blocked:hover {
  border-color: #e5e7eb;
  background: #faf8f3;
}

.thgmc-family-checkbox-row.thgmc-age-blocked .thgmc-cb-status {
  color: #92400e;
  font-style: normal;
}

@media (max-width: 480px) {
  .thgmc-family-field-row .thgmc-family-input {
    flex-basis: 100%;
  }
  .thgmc-family-dob {
    flex: 1 1 auto;
  }
}

.thgmc-family-row-msg {
  flex-basis: 100%;
  margin: -2px 0 4px;
  font-size: 12.5px;
  line-height: 1.35;
  color: #b91c1c;
}

.thgmc-family-errors {
  margin: 10px 0 0;
  padding: 10px 14px;
  border: 1px solid #ef4444;
  border-radius: 4px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 14px;
}

.thgmc-family-fields.has-error {
  border-color: #ef4444;
}

.um #um-submit-btn.is-blocked,
.um input[type="submit"].is-blocked {
  opacity: 0.55;
  cursor: not-allowed;
}

.thgmc-family-input {
  flex: 1;
  padding: 8px 12px;
  font-size: 14px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
}

.thgmc-family-field-remove {
  background: none;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  width: 34px;
  height: 34px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: #9ca3af;
  transition: color 0.15s, border-color 0.15s;
}

.thgmc-family-field-remove:hover {
  color: #ef4444;
  border-color: #ef4444;
}

.thgmc-family-field-add {
  background: none;
  border: 1px dashed #9ca3af;
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 14px;
  cursor: pointer;
  color: #4b5563;
  transition: border-color 0.15s, color 0.15s;
}

.thgmc-family-field-add:hover {
  border-color: #2e7d32;
  color: #2e7d32;
}

/* --- Registration page: reCAPTCHA widget --- */

.thgmc-recaptcha-field {
  margin: 16px 0;
}

.thgmc-recaptcha-error {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: #b91c1c;
}

/* --- Registration page: hide UM Stripe static price (we show dynamic price instead) --- */

.um-stripe-price-title {
  display: none !important;
}

/* --- Registration page: price display box --- */

.thgmc-price-box {
  background: #f0f7f0;
  border: 2px solid #2e7d32;
  border-radius: 6px;
  padding: 14px 18px;
  margin: 16px 0;
  font-size: 15px;
  line-height: 1.6;
  color: #1b5e20;
}

.thgmc-price-box strong {
  color: #1b5e20;
}

/* --- RSVP page: family member checkboxes --- */

/* .thgmc-family-checkboxes and its -label share the registration box rules above. */

.thgmc-family-checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 4px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}

.thgmc-family-checkbox-row:hover {
  border-color: #2e7d32;
  background: #f0f7f0;
}

.thgmc-family-checkbox-row:has(input:checked) {
  border-color: #2e7d32;
  background: #e8f3e9;
}

.thgmc-rsvp-saved-state {
  margin: 0 0 12px;
  font-size: 14px;
  color: #2e7d32;
  font-weight: 600;
}

.thgmc-rsvp-unsaved {
  margin: 0 0 12px;
  padding: 10px 14px;
  border: 1px solid #f59e0b;
  border-radius: 4px;
  background: #fffbeb;
  color: #92400e;
  font-size: 14px;
}

.thgmc-rsvp-submit.is-dirty,
.thgmc-shifts-save.is-dirty {
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.45);
}

.thgmc-shifts-saved-state {
  margin: 0.25rem 0 0.5rem;
}

.thgmc-family-checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #2e7d32;
  cursor: pointer;
  flex-shrink: 0;
}

.thgmc-cb-name {
  font-size: 15px;
  color: #1f2937;
  flex: 1;
}

.thgmc-cb-status {
  font-size: 12px;
  color: #6b7280;
  font-style: italic;
}

/* --- RSVP form container --- */

.thgmc-rsvp-form {
  max-width: 500px;
  margin: 24px 0;
}

.thgmc-rsvp-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #1f2937;
}

.thgmc-rsvp-stats {
  font-size: 14px;
  color: #4b5563;
  margin-bottom: 12px;
}

.thgmc-rsvp-submit {
  display: inline-block;
  background: #2e7d32;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 10px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s;
}

.thgmc-rsvp-submit:hover {
  background: #1b5e20;
}

.thgmc-rsvp-submit:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.thgmc-rsvp-unpaid {
  color: #6b7280;
  font-style: italic;
  font-size: 14px;
}

.thgmc-rsvp-notice {
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 14px;
  border: 1px solid;
}

.thgmc-rsvp-notice-warning {
  background: #fffbeb;
  border-color: #f59e0b;
  color: #92400e;
}

.thgmc-rsvp-notice-error {
  background: #fef2f2;
  border-color: #ef4444;
  color: #991b1b;
}

.thgmc-family-checkboxes-hint {
  font-weight: 400;
  font-size: 13px;
  color: #6b7280;
  margin-left: 6px;
}

input[type="checkbox"]:disabled + .thgmc-cb-name {
  color: #9ca3af;
}

/* --- Account page: read-only family member display --- */

.thgmc-family-display {
  max-width: 500px;
}

.thgmc-family-primary {
  margin-bottom: 16px;
  font-size: 15px;
}

.thgmc-family-member-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
}

.thgmc-family-member-list li {
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  margin-bottom: 6px;
  font-size: 14px;
  background: #fff;
}

.thgmc-family-none {
  color: #6b7280;
  font-style: italic;
}

.thgmc-family-contact {
  color: #6b7280;
  font-size: 13px;
  margin-top: 12px;
}

.thgmc-family-expiry {
  margin-top: 6px;
}

.thgmc-expiry-flag {
  color: #b32d2e;
  font-weight: 500;
}

.thgmc-purchase-intro {
  color: #6b7280;
  font-size: 13px;
  margin-bottom: 12px;
}

.thgmc-purchase-none {
  color: #6b7280;
  font-style: italic;
}

/* The payment history is wider than a phone: scroll it, don't clip it. */
.thgmc-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.thgmc-purchase-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.thgmc-purchase-table th,
.thgmc-purchase-table td {
  text-align: left;
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
}

.thgmc-purchase-table thead th {
  background: #f9fafb;
  font-weight: 600;
}

.thgmc-purchase-table tbody tr:nth-child(even) {
  background: #fafafa;
}

/* ============================================
   REGISTER PAGE  (/register/, page #96)
   A designed wrapper around the Ultimate Member
   form — matches the site homepage palette/type.
   ============================================ */

/* The register page's Kadence chrome is neutralized with the system pages' (below). */

.thgmc-register {
  --paper: #f3eee3; --card: #fffefa; --ink: #211e19; --ink-soft: #5f584b;
  --malachite: #1f5e4d; --malachite-deep: #143f33;
  --citrine: #bf7d22; --citrine-bright: #d99a3a; --line: #ddd3bf;
  width: 100vw; margin-left: calc(50% - 50vw);
  background: var(--paper); color: var(--ink);
  font-family: "Mulish", -apple-system, sans-serif;
  overflow-x: clip;
}
.thgmc-register *,
.thgmc-register *::before,
.thgmc-register *::after { box-sizing: border-box; }

/* --- header band --- */
.threg-head {
  background:
    linear-gradient(150deg, var(--malachite-deep), var(--malachite) 75%);
  padding: 68px 28px 60px; text-align: center;
}
.threg-head-inner { max-width: 640px; margin: 0 auto; }
.threg-eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-weight: 700; font-size: 12.5px; letter-spacing: .19em;
  text-transform: uppercase; color: var(--citrine-bright);
}
.threg-eyebrow svg { width: 14px; height: 14px; }
.threg-head h1 {
  font-family: "Fraunces", Georgia, serif; font-weight: 600;
  font-size: clamp(2.3rem, 5vw, 3.4rem); line-height: 1.05;
  letter-spacing: -.015em; color: #fbf7ec; margin: 16px 0 0;
}
.threg-head p {
  color: #c9d2c6; font-size: 1.08rem; line-height: 1.6;
  margin: 16px auto 0; max-width: 520px;
}

/* --- two-column body --- */
.threg-grid {
  max-width: 1080px; margin: 0 auto; padding: 60px 28px 96px;
  display: grid; grid-template-columns: .82fr 1fr; gap: 46px;
  align-items: start;
}

/* --- benefits aside --- */
.threg-aside {
  background: var(--malachite); color: #e7e3d4;
  border-radius: 6px; padding: 38px 34px;
  position: sticky; top: 28px;
}
.threg-aside h2 {
  font-family: "Fraunces", Georgia, serif; font-weight: 600;
  font-size: 1.5rem; color: #fbf7ec; margin: 0 0 22px;
}
.threg-perks { list-style: none; margin: 0 0 28px; padding: 0; }
.threg-perks li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 0; border-bottom: 1px solid rgba(231,227,212,.14);
}
.threg-perks li:last-child { border-bottom: 0; }
.threg-perk-ic {
  flex: none; width: 38px; height: 38px; border-radius: 4px;
  background: rgba(217,154,58,.16); color: var(--citrine-bright);
  display: grid; place-items: center;
}
.threg-perk-ic svg { width: 20px; height: 20px; }
.threg-perks span strong {
  display: block; color: #fbf7ec; font-weight: 700;
  font-size: .98rem; margin-bottom: 2px;
}
.threg-perks li > span:last-child {
  font-size: .92rem; line-height: 1.5; color: #bcc6ba;
}

.threg-price {
  background: var(--malachite-deep); border-radius: 5px;
  padding: 18px 20px; margin-bottom: 22px;
}
.threg-price-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 5px 0; font-size: .95rem; color: #cdd6cb;
}
.threg-price-head {
  font-weight: 700; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--citrine-bright, #d99a3a); margin-bottom: 6px;
}
.threg-price-row strong {
  font-family: "Fraunces", serif; font-size: 1.15rem; color: #fbf7ec;
}
.threg-price-row strong small {
  font-family: "Mulish", sans-serif; font-size: .72rem; font-weight: 600; color: #9fb0a3; margin-left: 2px;
}
.threg-price-note {
  margin: 8px 0 0; font-size: .8rem; font-style: italic; color: #9fb0a3;
}
.threg-trust {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: .86rem; line-height: 1.5; color: #b3bdb1; margin: 0;
}
.threg-trust svg { flex: none; width: 19px; height: 19px; color: var(--citrine-bright); }
.threg-trust strong { color: #e7e3d4; }

/* --- form card --- */
.threg-formcard {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 6px; padding: 44px 42px;
  box-shadow: 0 24px 46px -32px rgba(33,30,25,.5);
}

/* ===== Ultimate Member form re-skin (scoped to register) ===== */
.thgmc-register .um,
.thgmc-register .um .um-form { max-width: none !important; width: 100% !important; }
.thgmc-register .um { margin: 0 !important; }

.thgmc-register .um-field { margin-bottom: 18px !important; padding: 0 !important; }
.thgmc-register .um-field-label label {
  font-family: "Mulish", sans-serif !important;
  font-weight: 700 !important; font-size: 13.5px !important;
  letter-spacing: .01em; color: var(--ink) !important;
  margin-bottom: 7px !important;
}

/* extra .threg-formcard qualifier outranks UM's own !important input border */
.thgmc-register .threg-formcard .um-form input[type="text"],
.thgmc-register .threg-formcard .um-form input[type="email"],
.thgmc-register .threg-formcard .um-form input[type="password"],
.thgmc-register .threg-formcard .um-form input[type="tel"],
.thgmc-register .threg-formcard .um-form input[type="number"] {
  width: 100% !important; height: auto !important;
  padding: 12px 14px !important;
  font-family: "Mulish", sans-serif !important; font-size: 16px !important;
  color: var(--ink) !important;
  background: #fff !important;
  border: 1.5px solid var(--line) !important;
  border-radius: 4px !important; box-shadow: none !important;
  transition: border-color .15s, box-shadow .15s;
}
.thgmc-register .threg-formcard .um-form input[type="text"]:focus,
.thgmc-register .threg-formcard .um-form input[type="email"]:focus,
.thgmc-register .threg-formcard .um-form input[type="password"]:focus,
.thgmc-register .threg-formcard .um-form input[type="tel"]:focus,
.thgmc-register .threg-formcard .um-form input[type="number"]:focus {
  border-color: var(--malachite) !important;
  box-shadow: 0 0 0 3px rgba(31,94,77,.16) !important;
  outline: none !important;
}

/* the single membership-plan row (UM Stripe) — recolor off its default blue */
.thgmc-register .um-stripe-col { border-color: var(--line) !important; }
.thgmc-register .um-stripe-plan-item {
  border-color: var(--line) !important; border-radius: 4px !important;
}
.thgmc-register .um-stripe-plan-item.selected {
  border-color: var(--malachite) !important; background: #eef3ee !important;
}
.thgmc-register .um input[type="radio"] { accent-color: var(--malachite); }

/* buttons row */
.thgmc-register .um-button,
.thgmc-register .um-form input.um-button {
  font-family: "Mulish", sans-serif !important;
  font-weight: 700 !important; font-size: 16px !important;
  letter-spacing: .01em; text-transform: none !important;
  padding: 14px 30px !important; height: auto !important;
  border-radius: 3px !important; border: 1.5px solid transparent !important;
  box-shadow: none !important;
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}
.thgmc-register .um-button:not(.um-alt) {
  background: var(--citrine) !important; color: #fffdf6 !important;
  box-shadow: 0 8px 20px -10px rgba(191,125,34,.85) !important;
}
.thgmc-register .um-button:not(.um-alt):hover {
  background: var(--citrine-bright) !important; transform: translateY(-2px);
}
.thgmc-register .um-button.um-alt {
  background: transparent !important; color: var(--malachite) !important;
  border-color: var(--line) !important;
}
.thgmc-register .um-button.um-alt:hover {
  background: #fff !important; border-color: var(--malachite) !important;
  color: var(--malachite-deep) !important; transform: translateY(-2px);
}

/* --- harmonize our own family-member section with the new palette --- */
.thgmc-register .thgmc-family-fields {
  background: #fbf8f0; border-color: var(--line);
}
.thgmc-register .thgmc-family-fields-label { color: var(--ink); }
.thgmc-register .thgmc-family-input:focus {
  border-color: var(--malachite);
  box-shadow: 0 0 0 3px rgba(31,94,77,.16);
}
.thgmc-register .thgmc-family-field-add:hover {
  border-color: var(--malachite); color: var(--malachite);
}
.thgmc-register .thgmc-family-field-remove:hover {
  border-color: #b3402f; color: #b3402f;
}
.thgmc-register .thgmc-price-box {
  background: #eef3ee; border-color: var(--malachite); color: var(--malachite-deep);
}
.thgmc-register .thgmc-price-box strong { color: var(--malachite-deep); }
.thgmc-register .thgmc-recaptcha-field { display: flex; flex-direction: column; align-items: center; }

/* --- responsive --- */
@media (max-width: 860px) {
  .threg-grid { grid-template-columns: 1fr; gap: 28px; padding: 38px 20px 64px; }
  .threg-aside { position: static; padding: 30px 26px; }
  .threg-formcard { padding: 32px 24px; }
  .threg-head { padding: 52px 22px 46px; }
}

/* ============================================
   SYSTEM PAGES (see THGMC_System_Pages)
   Shared header band + centered card wrapping
   Ultimate Member / UM Stripe shortcode output.
   ============================================ */

/* --- neutralize Kadence chrome (title band, white card) on register and every system page
   (body class from THGMC_System_Pages::body_class()) --- */
body.thgmc-syspage-body .entry-hero,
body.thgmc-syspage-body .page-hero-section { display: none; }
body.thgmc-syspage-body .content-area { margin-top: 0; }
body.thgmc-syspage-body .entry-content-wrap { padding-top: 0; }
body.thgmc-syspage-body .content-bg,
body.thgmc-syspage-body .content-bg .entry-content {
  background: transparent; box-shadow: none; border: 0; padding: 0;
}

.thgmc-syspage {
  --paper: #f3eee3; --card: #fffefa; --ink: #211e19; --ink-soft: #5f584b;
  --malachite: #1f5e4d; --malachite-deep: #143f33;
  --citrine: #bf7d22; --citrine-bright: #d99a3a; --line: #ddd3bf;
  width: 100vw; margin-left: calc(50% - 50vw);
  background: var(--paper); color: var(--ink);
  font-family: "Mulish", -apple-system, sans-serif;
  overflow-x: clip;
  min-height: calc(100vh - 220px);
  display: flex; flex-direction: column;
}
.thgmc-syspage *,
.thgmc-syspage *::before,
.thgmc-syspage *::after { box-sizing: border-box; }

.thsys-head {
  background: linear-gradient(150deg, var(--malachite-deep), var(--malachite) 75%);
  padding: 72px 28px 58px; text-align: center;
}
.thsys-head-inner { max-width: 560px; margin: 0 auto; }
.thsys-eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-weight: 700; font-size: 12.5px; letter-spacing: .19em;
  text-transform: uppercase; color: var(--citrine-bright);
}
.thsys-eyebrow svg { width: 14px; height: 14px; flex: none; }
.thsys-head h1 {
  font-family: "Fraunces", Georgia, serif; font-weight: 600;
  font-size: clamp(2.1rem, 4.6vw, 3rem); line-height: 1.1;
  letter-spacing: -.015em; color: #fbf7ec; margin: 14px 0 0;
}
.thsys-head p {
  color: #c9d2c6; font-size: 1.05rem; line-height: 1.6;
  margin: 14px auto 0; max-width: 460px;
}

.thsys-body {
  flex: 1; padding: 54px 28px 88px;
  display: flex; justify-content: center;
}
.thsys-body-inner {
  width: 100%; max-width: 540px;
  display: flex; flex-direction: column; gap: 20px;
}
.thsys-body-inner.thsys-wide { max-width: 860px; }

.thsys-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 6px; padding: 40px 38px;
  box-shadow: 0 24px 46px -32px rgba(33,30,25,.5);
}
.thsys-card.thsys-center { text-align: center; }
.thsys-card.thsys-center h2 {
  font-family: "Fraunces", Georgia, serif; font-weight: 600;
  font-size: 1.5rem; color: var(--ink); margin: 0 0 12px;
}

.thsys-icon {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; margin: 0 auto 18px;
}
.thsys-icon svg { width: 30px; height: 30px; }
.thsys-icon-ok    { background: rgba(31,94,77,.12); color: var(--malachite); }
.thsys-icon-warn  { background: rgba(191,125,34,.14); color: var(--citrine); }
.thsys-icon-info  { background: rgba(31,94,77,.10); color: var(--malachite); }

.thsys-message {
  font-size: 1.04rem; color: var(--ink); line-height: 1.65;
}
.thsys-message p { margin: 0 0 14px; }
.thsys-message p:last-child { margin-bottom: 0; }
.thsys-message a, .thsys-foot a {
  color: var(--malachite); font-weight: 700; text-decoration: none;
}
.thsys-message a:hover, .thsys-foot a:hover { color: var(--citrine); text-decoration: underline; }

.thsys-pricebox {
  background: #eef3ee; border: 1px solid #cdddd1;
  border-left: 4px solid var(--malachite);
  border-radius: 4px; padding: 16px 18px; margin: 18px 0 24px;
  font-size: 1rem; color: var(--malachite-deep);
}
.thsys-pricebox strong { color: var(--malachite-deep); }

.thsys-foot {
  text-align: center; font-size: .95rem; color: var(--ink-soft);
}
.thsys-foot-actions {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin-top: 12px;
}
.thsys-btn-ghost {
  display: inline-flex; align-items: center; gap: .45em;
  padding: 11px 22px; border-radius: 3px; text-decoration: none;
  font-family: "Mulish", sans-serif; font-weight: 700; font-size: 14px;
  border: 1.5px solid var(--line); color: var(--malachite); background: var(--card);
  transition: border-color .15s, color .15s, transform .15s;
}
.thsys-btn-ghost:hover {
  border-color: var(--malachite); color: var(--malachite-deep);
  transform: translateY(-2px);
}
.thsys-btn-primary {
  display: inline-flex; align-items: center; gap: .45em;
  padding: 12px 24px; border-radius: 3px; text-decoration: none;
  font-family: "Mulish", sans-serif; font-weight: 700; font-size: 14.5px;
  background: var(--citrine); color: #fffdf6 !important;
  box-shadow: 0 8px 20px -10px rgba(191,125,34,.85);
  transition: background .15s, transform .15s;
}
.thsys-btn-primary:hover { background: var(--citrine-bright); transform: translateY(-2px); }

/* ===== Ultimate Member re-skin (system pages) ===== */
.thgmc-syspage .um,
.thgmc-syspage .um .um-form { max-width: none !important; width: 100% !important; }
.thgmc-syspage .um { margin: 0 !important; }
.thgmc-syspage .um-field { margin-bottom: 18px !important; padding: 0 !important; }
.thgmc-syspage .um-field-label label {
  font-family: "Mulish", sans-serif !important;
  font-weight: 700 !important; font-size: 13.5px !important;
  letter-spacing: .01em; color: var(--ink) !important;
  margin-bottom: 7px !important;
}
.thgmc-syspage .thsys-card .um-form input[type="text"],
.thgmc-syspage .thsys-card .um-form input[type="email"],
.thgmc-syspage .thsys-card .um-form input[type="password"],
.thgmc-syspage .thsys-card .um-form input[type="tel"],
.thgmc-syspage .thsys-card .um-form input[type="number"],
.thgmc-syspage .thsys-card .um-form input[type="search"] {
  width: 100% !important; height: auto !important;
  padding: 12px 14px !important;
  font-family: "Mulish", sans-serif !important; font-size: 16px !important;
  color: var(--ink) !important;
  background: #fff !important;
  border: 1.5px solid var(--line) !important;
  border-radius: 4px !important; box-shadow: none !important;
  transition: border-color .15s, box-shadow .15s;
}
.thgmc-syspage .thsys-card .um-form input[type="text"]:focus,
.thgmc-syspage .thsys-card .um-form input[type="email"]:focus,
.thgmc-syspage .thsys-card .um-form input[type="password"]:focus,
.thgmc-syspage .thsys-card .um-form input[type="tel"]:focus,
.thgmc-syspage .thsys-card .um-form input[type="number"]:focus,
.thgmc-syspage .thsys-card .um-form input[type="search"]:focus {
  border-color: var(--malachite) !important;
  box-shadow: 0 0 0 3px rgba(31,94,77,.16) !important;
  outline: none !important;
}
.thgmc-syspage .um input[type="radio"],
.thgmc-syspage .um input[type="checkbox"] { accent-color: var(--malachite); }

.thgmc-syspage .um-button,
.thgmc-syspage .um-form input.um-button,
.thgmc-syspage .um-form button.um-button {
  font-family: "Mulish", sans-serif !important;
  font-weight: 700 !important; font-size: 16px !important;
  letter-spacing: .01em; text-transform: none !important;
  padding: 14px 30px !important; height: auto !important;
  border-radius: 3px !important; border: 1.5px solid transparent !important;
  box-shadow: none !important;
  transition: transform .16s ease, background .16s ease;
}
.thgmc-syspage .um-button:not(.um-alt):not(.um-button-secondary) {
  background: var(--citrine) !important; color: #fffdf6 !important;
  box-shadow: 0 8px 20px -10px rgba(191,125,34,.85) !important;
}
.thgmc-syspage .um-button:not(.um-alt):not(.um-button-secondary):hover {
  background: var(--citrine-bright) !important; transform: translateY(-2px);
}
.thgmc-syspage .um-button.um-alt,
.thgmc-syspage .um-button.um-button-secondary {
  background: transparent !important; color: var(--malachite) !important;
  border-color: var(--line) !important;
}
.thgmc-syspage .um-button.um-alt:hover {
  background: #fff !important; border-color: var(--malachite) !important;
  color: var(--malachite-deep) !important;
}

/* UM links & headings inside the card */
.thgmc-syspage .um a:not(.um-button) {
  color: var(--malachite) !important; text-decoration: none !important;
}
.thgmc-syspage .um a:not(.um-button):hover { color: var(--citrine) !important; }

/* UM account: tabs + body */
.thgmc-syspage .um-account-side {
  background: #faf6ec !important; border-right: 1px solid var(--line) !important;
}
.thgmc-syspage .um-account-tab {
  font-family: "Mulish", sans-serif !important; font-size: 14.5px !important;
  border-bottom: 1px solid rgba(221,211,191,.55) !important;
}
.thgmc-syspage .um-account-tab.current {
  background: var(--card) !important;
  border-left: 3px solid var(--citrine) !important;
}
.thgmc-syspage .um-account-tab a { color: var(--ink) !important; }
.thgmc-syspage .um-account-name,
.thgmc-syspage .um-profile-name,
.thgmc-syspage .um-name { color: var(--ink) !important; }
.thgmc-syspage .um-account-heading,
.thgmc-syspage .um-profile-headericon { color: var(--malachite) !important; }
.thgmc-syspage .um-header,
.thgmc-syspage .um-profile-photo { border-radius: 0 !important; }

/* UM notices */
.thgmc-syspage .um-notice {
  border-radius: 4px !important; padding: 12px 16px !important;
  font-family: "Mulish", sans-serif !important; font-size: 14.5px !important;
}
.thgmc-syspage .um-notice.err {
  background: #fdecea !important; border: 1px solid #f1bcb5 !important;
  color: #882b22 !important;
}
.thgmc-syspage .um-notice.success {
  background: #eef3ee !important; border: 1px solid #b9cfc1 !important;
  color: var(--malachite-deep) !important;
}

/* ===== UM Stripe (renew / checkout) ===== */
.thgmc-syspage .um-stripe-button,
.thgmc-syspage a.um-stripe-button,
.thgmc-syspage button.um-stripe-button {
  font-family: "Mulish", sans-serif !important;
  font-weight: 700 !important; font-size: 16px !important;
  padding: 14px 30px !important;
  border-radius: 3px !important;
  background: var(--citrine) !important; color: #fffdf6 !important;
  border: 0 !important;
  box-shadow: 0 8px 20px -10px rgba(191,125,34,.85) !important;
  text-decoration: none !important;
  display: inline-flex !important; align-items: center !important;
  transition: background .15s, transform .15s;
}
.thgmc-syspage .um-stripe-button:hover {
  background: var(--citrine-bright) !important; transform: translateY(-2px);
}

@media (max-width: 600px) {
  .thsys-head { padding: 54px 22px 44px; }
  .thsys-body { padding: 36px 18px 60px; }
  .thsys-card { padding: 30px 24px; }
}

/* ==========================================================================
   Show volunteer shift grid
   ========================================================================== */

.thgmc-shifts {
  margin: 1.5rem 0;
  font-family: 'Mulish', sans-serif;
}

.thgmc-shifts-title {
  font-family: 'Fraunces', serif;
  margin-bottom: 0.5rem;
}

.thgmc-shifts-person {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0.75rem 0 1rem;
  padding: 0.85rem 1rem;
  background: #f7f4ec;
  border: 1px solid #e4ded2;
  border-radius: 8px;
}

.thgmc-shifts-person label {
  font-weight: 700;
  margin: 0;
}

/* Own chevron and right padding so the arrow never sits under the text. */
.thgmc-shifts-person select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  min-width: 16rem;
  max-width: 100%;
  padding: 0.55rem 2.6rem 0.55rem 0.85rem;
  border: 1px solid #b9b1a2;
  border-radius: 6px;
  background: #fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%232e6b34' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3 6l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 0.85rem center;
  background-size: 16px 16px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: #211e19;
  line-height: 1.3;
  cursor: pointer;
}

.thgmc-shifts-person select:focus {
  outline: 2px solid #bf7d22;
  outline-offset: 1px;
}

.thgmc-shifts-person-hint {
  flex-basis: 100%;
  color: #6b6457;
  font-size: 0.88rem;
}

.thgmc-shifts-help {
  color: #6b6457;
  font-size: 0.92rem;
  margin: 0.25rem 0 1rem;
}

.thgmc-shifts-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #e4ded2;
  border-radius: 10px;
}

.thgmc-shifts-grid {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
  background: #fff;
}

.thgmc-shifts-grid th,
.thgmc-shifts-grid td {
  border: 1px solid #e4ded2;
  padding: 0.55rem 0.7rem;
  text-align: center;
  font-size: 0.92rem;
}

.thgmc-shifts-day {
  background: #2f2a22;
  color: #f5efe2;
  font-family: 'Fraunces', serif;
  letter-spacing: 0.02em;
}

.thgmc-shifts-block {
  background: #f5efe2;
  font-weight: 700;
  white-space: nowrap;
}

.thgmc-shifts-area {
  background: #faf7f0;
  text-align: left !important;
  font-weight: 700;
  white-space: nowrap;
  position: sticky;
  left: 0;
}

.thgmc-shifts-cell {
  cursor: pointer;
  user-select: none;
  min-width: 64px;
  transition: background-color 0.12s ease;
}

/* Hover only on devices with a real pointer: on touch it sticks after a tap and paints a selected cell beige.
   Selected (is-mine) always wins. */
@media (hover: hover) {
  .thgmc-shifts-cell:hover:not(.is-full):not(.is-mine) {
    background: #f0e9d8;
  }
  .thgmc-shifts-cell.is-mine:hover {
    background: #255a2b;
  }
}

.thgmc-shifts-cell.is-mine {
  background: #2e6b34;
  color: #fff;
  font-weight: 700;
}

.thgmc-shifts-cell:focus-visible {
  outline: 2px solid #bf7d22;
  outline-offset: -2px;
}

.thgmc-shifts-cell.is-mine::after {
  content: ' ✓';
}

.thgmc-shifts-cell.is-full {
  background: #eee9df;
  color: #b0a896;
  cursor: not-allowed;
}

/* Same person already holds another position in this time block. */
.thgmc-shifts-cell.is-busy {
  background: repeating-linear-gradient(135deg, #f7f4ec 0 6px, #ede8dc 6px 12px);
  color: #a39a88;
  cursor: not-allowed;
}

.thgmc-shifts-cell.is-busy-flash {
  outline: 2px solid #bf7d22;
  outline-offset: -2px;
}

.thgmc-shifts-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1rem;
}

.thgmc-shifts-actions--top {
  margin: 0 0 0.5rem;
}

.thgmc-shifts-link {
  margin-left: auto;
  color: #2e6b34;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid #d8d2c7;
}

.thgmc-shifts-link:hover {
  color: #bf7d22;
  border-color: #bf7d22;
}

/* --- Full roster (read-only, everyone's shifts) --- */

.thgmc-roster-grid td,
.thgmc-roster-grid th {
  vertical-align: top;
}

.thgmc-roster-cell {
  min-width: 110px;
  cursor: default;
}

.thgmc-roster-cell .thgmc-shifts-count {
  display: block;
  font-size: 0.75rem;
  color: #8a8170;
  margin-bottom: 0.2rem;
}

.thgmc-roster-cell.is-staffed .thgmc-shifts-count {
  color: #2e6b34;
  font-weight: 700;
}

.thgmc-roster-cell.is-empty {
  background: #fdf6ec;
}

.thgmc-roster-names {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  line-height: 1.3;
  text-align: left;
}

.thgmc-roster-names li {
  margin: 0 0 0.15rem;
  padding: 0;
}

.thgmc-shifts-print {
  display: inline-block;
  background: #fff;
  color: #2e7d32;
  border: 1px solid #2e7d32;
  border-radius: 4px;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

.thgmc-shifts-print:hover {
  background: #2e7d32;
  color: #fff;
}

.thgmc-shifts-dayhead {
  font-family: 'Fraunces', serif;
  margin: 1.4rem 0 0.5rem;
}

.thgmc-shifts-na {
  color: #c9c2b2;
  background: #faf8f3;
  cursor: default;
}

/* ==========================================================================
   Show shifts — phone layout (< 700px)
   Each position becomes a card of tappable hour chips. The <table> markup
   is kept so the print/collect JS still works.
   ========================================================================== */
@media (max-width: 700px) {
  .thgmc-shifts-person select {
    min-width: 0;
    width: 100%;
  }

  .thgmc-shifts-actions {
    gap: 0.5rem;
  }

  .thgmc-shifts-actions .thgmc-shifts-save,
  .thgmc-shifts-actions .thgmc-shifts-print {
    flex: 1 1 45%;
    padding: 12px 10px;
    font-size: 15px;
  }

  .thgmc-shifts-link {
    margin-left: 0;
    flex-basis: 100%;
  }

  .thgmc-shifts-dayhead {
    position: sticky;
    top: 0;
    z-index: 2;
    margin: 1.25rem 0 0.5rem;
    padding: 0.5rem 0.25rem;
    background: #f3eee3;
    border-bottom: 2px solid #2e6b34;
  }

  .thgmc-shifts-scroll {
    overflow: visible;
    border: 0;
    border-radius: 0;
  }

  .thgmc-shifts-grid,
  .thgmc-shifts-grid tbody {
    display: block;
    width: 100%;
    min-width: 0;
    background: transparent;
  }

  /* Column headers become redundant (chips carry their own time). */
  .thgmc-shifts-grid thead {
    display: none;
  }

  .thgmc-shifts-grid tr {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    background: #fff;
    border: 1px solid #e4ded2;
    border-radius: 10px;
    padding: 10px 10px 12px;
    margin-bottom: 10px;
  }

  .thgmc-shifts-grid .thgmc-shifts-area {
    display: block;
    flex-basis: 100%;
    border: 0;
    padding: 0 2px 6px;
    text-align: left;
    font-size: 1rem;
    font-weight: 700;
    background: transparent;
  }

  .thgmc-shifts-grid .thgmc-shifts-na {
    display: none;
  }

  .thgmc-shifts-grid .thgmc-shifts-cell,
  .thgmc-roster-grid .thgmc-roster-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1 1 30%;
    min-width: 0;
    min-height: 52px;
    padding: 8px 6px;
    border: 1px solid #d8d2c7;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.2;
  }

  .thgmc-shifts-grid .thgmc-shifts-cell::before,
  .thgmc-roster-grid .thgmc-roster-cell::before {
    content: attr(data-time);
    display: block;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #6b6457;
    margin-bottom: 2px;
    white-space: nowrap;
  }

  .thgmc-shifts-grid .thgmc-shifts-cell.is-mine::before {
    color: rgba(255, 255, 255, 0.85);
  }

  .thgmc-shifts-grid .thgmc-shifts-cell.is-mine {
    border-color: #2e6b34;
  }

  .thgmc-shifts-grid .thgmc-shifts-cell.is-full,
  .thgmc-shifts-grid .thgmc-shifts-cell.is-busy {
    border-style: dashed;
  }

  /* Roster cards: names list under the time/count, full-width chips. */
  .thgmc-roster-grid .thgmc-roster-cell {
    flex-basis: 47%;
    align-items: flex-start;
    text-align: left;
  }

  .thgmc-roster-grid .thgmc-roster-cell::before {
    align-self: flex-start;
  }

  .thgmc-roster-grid .thgmc-roster-cell .thgmc-shifts-count {
    margin-bottom: 4px;
  }
}

/* ==========================================================================
   Members forum (wpForo) — typography to match the site
   ========================================================================== */
#wpforo #wpforo-wrap,
#wpforo #wpforo-wrap input,
#wpforo #wpforo-wrap select,
#wpforo #wpforo-wrap textarea,
#wpforo #wpforo-wrap button {
  font-family: "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#wpforo #wpforo-wrap h1,
#wpforo #wpforo-wrap h2,
#wpforo #wpforo-wrap h3,
#wpforo #wpforo-wrap .wpforo-cat-title,
#wpforo #wpforo-wrap .wpfl-1 .wpforo-forum-title,
#wpforo #wpforo-wrap .wpforo-topic-title {
  font-family: "Fraunces", Georgia, serif;
  letter-spacing: -0.005em;
}

/* Keep the hero/title band tidy under the Kadence header */
#wpforo #wpforo-wrap .wpforo-content-wrap {
  margin-top: 0.5rem;
}

/* RSVP: a member already going who no longer meets the trip's age rule (minimum age raised or date moved).
   Still tickable (untick and save removes them), but flagged. */
/* Beats the green .thgmc-family-checkbox-row:has(input:checked) rule. */
.thgmc-family-checkbox-row.thgmc-age-flagged,
.thgmc-family-checkbox-row.thgmc-age-flagged:has(input:checked) {
  border-color: #f59e0b;
  background: #fffbeb;
}

.thgmc-family-checkbox-row.thgmc-age-flagged .thgmc-cb-status {
  color: #92400e;
  font-style: normal;
  font-weight: 600;
  /* The flag text is longer than most names: its own line under the name.
     28px = 18px checkbox + 10px gap. */
  flex-basis: 100%;
  padding-left: 28px;
}

/* ...so the row wraps rather than squeezing names word by word. */
.thgmc-family-checkbox-row.thgmc-age-flagged {
  flex-wrap: wrap;
  row-gap: 2px;
}

/* Several notices can stack (expired session + age flag + last save). */
.thgmc-rsvp-notice + .thgmc-rsvp-notice {
  margin-top: -4px;
}
