:root {
  --bg: #f6f4ef;
  --ink: #17211c;
  --muted: #68726b;
  --line: #d9d4ca;
  --surface: #ffffff;
  --green: #196447;
  --green-dark: #0f3d2d;
  --gold: #c98b2e;
  --red: #a6483d;
}

* {
  box-sizing: border-box;
}

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

a {
  color: inherit;
}

.site-header {
  align-items: center;
  background: rgba(246, 244, 239, 0.94);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 5;
}

.brand {
  font-weight: 800;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 18px;
}

.site-nav a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.outing-public-footer {
  align-items: center;
  background: color-mix(in srgb, var(--site-primary, #196447) 92%, #000);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  padding: 22px 34px;
}

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

.public-footer-brand {
  font-weight: 800;
  text-decoration: none;
}

.outing-public-footer a {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.outing-public-footer a:hover {
  color: var(--site-accent, var(--gold));
}

.button {
  align-items: center;
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: 7px;
  color: #fff;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  text-decoration: none;
}

.button.secondary {
  background: transparent;
  color: var(--green-dark);
}

.button.small {
  min-height: 34px;
  padding: 0 12px;
}

.eyebrow {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.narrow-page,
.form-page {
  margin: 0 auto;
  max-width: 760px;
  padding: 80px 24px;
}

.messages {
  margin: 20px auto 0;
  max-width: 1180px;
  padding: 0 24px;
}

.message {
  background: #dcecdf;
  border: 1px solid #b9d5be;
  border-radius: 8px;
  color: var(--green-dark);
  margin: 0;
  padding: 12px 14px;
}

.narrow-page h1,
.form-page h1 {
  font-size: 40px;
  line-height: 1.05;
  margin: 0 0 14px;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: calc(100vh - 64px);
}

.sidebar {
  border-right: 1px solid var(--line);
  padding: 28px 18px;
}

.sidebar-link {
  border-radius: 7px;
  display: grid;
  gap: 2px;
  padding: 12px;
  text-decoration: none;
}

.sidebar-link.active {
  background: #e9eee5;
}

.sidebar-link small,
.muted {
  color: var(--muted);
}

.dashboard-main {
  padding: 34px;
}

.page-title-row,
.section-heading {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.page-title-row h1 {
  font-size: 34px;
  line-height: 1.1;
  margin: 0;
}

.metrics-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  margin: 28px 0;
}

.metric,
.group-panel,
.info-grid article,
.design-summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.metric span,
.info-grid article > span {
  color: var(--muted);
  display: block;
  font-size: 13px;
}

.metric strong,
.info-grid strong {
  display: block;
  font-size: 30px;
  line-height: 1.1;
  margin-top: 6px;
}

.table-section {
  margin-top: 30px;
}

.design-summary {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin: 0 0 30px;
}

.design-summary h2,
.design-summary p {
  margin: 0;
}

.design-summary p {
  color: var(--muted);
  margin-top: 4px;
}

.table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

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

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

.badge {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 9px;
}

.badge.paid {
  background: #dcecdf;
  color: var(--green-dark);
}

.badge.due {
  background: #f5ded9;
  color: var(--red);
}

.table-action {
  font-weight: 800;
}

.sr-only {
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.groups-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 28px;
}

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

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.public-template .button {
  background: var(--site-accent, var(--gold));
  border-color: var(--site-accent, var(--gold));
}

.public-template .button.secondary {
  background: transparent;
  border-color: var(--site-primary, var(--green-dark));
  color: var(--site-primary, var(--green-dark));
}

.info-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
}

.info-grid small {
  color: var(--muted);
  display: block;
  margin-top: 6px;
}

.photo-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.photo-grid figure {
  margin: 0;
}

.photo-grid img {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  display: block;
  object-fit: cover;
  width: 100%;
}

.photo-grid figcaption {
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}

.registration-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  margin-top: 28px;
  padding: 22px;
}

.registration-form label {
  display: grid;
  gap: 7px;
  font-weight: 700;
}

.registration-form input,
.registration-form textarea,
.registration-form select {
  border: 1px solid var(--line);
  border-radius: 7px;
  font: inherit;
  padding: 10px 12px;
}

.registration-form ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.registration-form li {
  display: inline-flex;
  margin-right: 16px;
}

.form-error {
  color: var(--red);
}

.editor-shell {
  margin: 0 auto;
  max-width: 1180px;
  padding: 34px;
}

.editor-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  margin-top: 26px;
}

.editor-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  padding: 22px;
}

.editor-panel h2 {
  font-size: 24px;
  line-height: 1.1;
  margin: 0;
}

.form-subsection {
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 16px;
}

.form-subsection h3 {
  font-size: 18px;
  margin: 0;
}

.form-subsection h2 {
  font-size: 20px;
  line-height: 1.1;
  margin: 0;
}

.form-field {
  display: grid;
  gap: 7px;
  font-weight: 700;
}

.form-field input,
.form-field textarea,
.form-field select {
  border: 1px solid var(--line);
  border-radius: 7px;
  font: inherit;
  padding: 10px 12px;
}

.form-field input[type="color"] {
  height: 44px;
  padding: 4px;
}

.form-field small {
  color: var(--muted);
  font-weight: 500;
}

.choice-field ul {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.choice-field li {
  align-items: center;
  background: #f8f7f3;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: flex;
  min-height: 42px;
  padding: 8px 10px;
}

.checkbox-field {
  align-items: center;
  display: flex;
  gap: 9px;
  font-weight: 700;
}

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

.tournament-form-page {
  max-width: 1120px;
}

.tournament-form-grid {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 340px;
  margin-top: 26px;
}

.tournament-form-grid .registration-form {
  margin-top: 0;
}

.setup-guide-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 22px;
  position: sticky;
  top: 88px;
}

.setup-guide-panel h2,
.setup-guide-panel p {
  margin: 0;
}

.setup-guide-panel p,
.setup-guide-panel li {
  color: var(--muted);
}

.setup-guide-panel ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.editable-list article {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 13px;
}

.editable-list small {
  color: var(--muted);
  display: block;
  margin-top: 3px;
}

.message-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.message {
  border-radius: 8px;
  font-weight: 700;
  margin: 0;
  padding: 12px 14px;
}

.message.success {
  background: #dcecdf;
  color: var(--green-dark);
}

.gallery-editor {
  margin-top: 18px;
}

.dropzone {
  display: grid;
  gap: 14px;
}

.dropzone-box {
  align-items: center;
  background: #f8f7f3;
  border: 2px dashed var(--line);
  border-radius: 8px;
  display: grid;
  gap: 7px;
  justify-items: center;
  min-height: 150px;
  padding: 24px;
  text-align: center;
}

.dropzone-box span {
  color: var(--muted);
}

.dropzone-input {
  max-width: 100%;
}

.asset-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  margin-top: 18px;
}

.asset-grid figure {
  margin: 0;
}

.asset-grid img {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  display: block;
  object-fit: cover;
  width: 100%;
}

.asset-grid figcaption {
  display: grid;
  gap: 2px;
  margin-top: 7px;
}

.asset-grid figcaption span {
  color: var(--muted);
  font-size: 13px;
}

.featured-photo-form {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
}

.page-editor-page {
  max-width: 1120px;
}

.page-editor-grid {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 380px;
}

.block-builder-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  margin-top: 28px;
  padding: 22px;
}

.block-builder-panel h2 {
  font-size: 24px;
  line-height: 1.1;
  margin: 0;
}

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

.block-list article {
  align-items: center;
  background: #f8f7f3;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 13px;
}

.block-list strong,
.block-list span,
.block-list small {
  display: block;
}

.block-list span {
  margin-top: 2px;
}

.block-list small {
  color: var(--muted);
  margin-top: 3px;
}

.empty-block-state {
  background: #f8f7f3;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 16px;
}

.empty-block-state p {
  color: var(--muted);
  margin: 6px 0 0;
}

.page-blocks {
  display: grid;
  gap: 18px;
}

.page-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr);
  padding: 22px;
}

.page-block:has(.page-block-image) {
  grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr);
}

.page-block-callout {
  background: color-mix(in srgb, var(--site-accent, var(--gold)) 14%, #fff);
  border-color: color-mix(in srgb, var(--site-accent, var(--gold)) 42%, var(--line));
}

.page-block-gallery {
  background: #f8f7f3;
}

.page-block-image {
  margin: 0;
}

.page-block-image img {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  display: block;
  object-fit: cover;
  width: 100%;
}

.page-block-copy h2 {
  font-size: 28px;
  line-height: 1.1;
  margin: 0 0 10px;
}

.page-block-copy p {
  margin: 0 0 12px;
}

.page-block-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-block-list li {
  border-left: 4px solid var(--site-accent, var(--gold));
  padding: 3px 0 3px 12px;
}

.sponsor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sponsor-list span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-weight: 800;
  padding: 10px 12px;
}

.home-section-template {
  --site-surface: #fff;
  --site-muted-surface: color-mix(in srgb, var(--site-primary, #196447) 5%, #fff);
  --site-primary-ink: color-mix(in srgb, var(--site-primary, #196447) 92%, #000);
  background: var(--site-muted-surface);
  align-items: stretch;
  display: flex;
  flex-wrap: wrap;
}

.public-template .eyebrow {
  color: var(--site-accent, var(--gold));
}

.public-template .home-layout-hero .button.secondary {
  background: var(--site-accent, var(--gold));
  border-color: var(--site-accent, var(--gold));
  color: #fff;
}

.public-template .home-layout-section:not(.home-layout-hero) h2 {
  color: var(--site-primary-ink);
}

.public-template .info-grid article {
  border-color: color-mix(in srgb, var(--site-primary, #196447) 20%, var(--line));
  border-top: 3px solid var(--site-accent, var(--gold));
}

.public-template .info-grid article[data-detail-card="date"],
.public-template .info-grid article[data-detail-card="location"] {
  background: transparent;
  border: 0;
  border-left: 3px solid var(--site-accent, var(--gold));
  border-radius: 0;
  padding: 4px 0 4px 12px;
}

.home-section-template > .home-layout-section:not(.resizable-box-section) {
  flex: 0 0 100%;
  width: 100%;
}

.home-section-template > .home-layout-featured-photo {
  flex: 0 0 100%;
  width: 100%;
}

.home-section-template > .outing-public-footer {
  flex: 0 0 100%;
  width: 100%;
}

.home-layout-section {
  --default-section-content-width: 760px;
  position: relative;
}

.resizable-box-section {
  flex: 0 0 min(100%, var(--section-content-width, 100%));
  max-width: 100%;
  width: min(100%, var(--section-content-width, 100%));
}

.resizable-content {
  position: relative;
}

.home-layout-hero {
  align-items: end;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--site-primary, #0f3d2d) 90%, #000), rgba(0, 0, 0, 0.38)),
    url("https://images.unsplash.com/photo-1535131749006-b7f58c99034b?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
  color: #fff;
  display: flex;
  min-height: 58vh;
  padding: 56px 34px;
}

.home-layout-hero-with-photo {
  align-items: end;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.6fr);
}

.home-hero-featured-photo {
  align-self: stretch;
  margin: 0;
  overflow: hidden;
  position: relative;
}

.home-hero-featured-photo img {
  display: block;
  height: 100%;
  max-height: 500px;
  object-fit: cover;
  width: 100%;
}

.home-hero-featured-photo::after {
  background: linear-gradient(90deg, color-mix(in srgb, var(--site-primary, #0f3d2d) 88%, #000), transparent 42%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.home-hero-copy {
  max-width: 100%;
  width: min(100%, var(--section-content-width, var(--default-section-content-width)));
}

.home-hero-copy h1 {
  font-size: 64px;
  line-height: 1;
  margin: 0 0 16px;
  max-width: 900px;
}

.home-hero-copy .eyebrow {
  font-size: 18px;
}

.home-hero-copy p:not(.eyebrow) {
  font-size: 20px;
  max-width: 640px;
}

.hero-schedule {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 22px;
}

.hero-schedule-item {
  border-left: 3px solid var(--site-accent, var(--gold));
  display: grid;
  gap: 2px;
  min-width: 112px;
  padding-left: 10px;
}

.hero-schedule-item strong {
  font-size: 18px;
  line-height: 1.1;
}

.hero-schedule-item span {
  font-size: 14px;
  font-weight: 700;
}

.hero-schedule-item-label-only span {
  font-size: 18px;
  line-height: 1.1;
}

.hero-price-item {
  border-left: 0;
  padding-left: 0;
}

.hero-payment-options {
  display: grid;
  gap: 14px 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 20px;
  max-width: 440px;
  width: 100%;
}

@media (min-width: 861px) {
  .home-layout-hero-with-photo .home-hero-copy {
    align-self: center;
  }

  .hero-schedule {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    max-width: 540px;
    width: 100%;
  }

  .hero-schedule-item {
    min-width: 0;
  }

  .hero-schedule-item-label-only::before {
    content: "";
    height: 20px;
  }

  .hero-payment-options {
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    max-width: 390px;
    padding-top: 16px;
  }
}

.home-layout-details,
.home-layout-welcome,
.home-layout-photos,
.home-layout-custom,
.home-layout-featured-photo {
  padding: var(--section-padding-y, 28px) 34px;
}

.home-layout-featured-photo {
  background: var(--site-muted-surface);
}

.home-layout-featured-photo figure {
  margin: 0 auto;
  max-width: 960px;
}

.home-layout-featured-photo img {
  aspect-ratio: 16 / 9;
  background: var(--site-primary-ink);
  display: block;
  max-height: 720px;
  object-fit: contain;
  width: 100%;
}

.home-layout-featured-photo figcaption {
  color: var(--muted);
  font-size: 13px;
  margin-top: 8px;
}

.home-layout-details {
  background: var(--site-surface);
}

.home-layout-welcome,
.home-layout-custom {
  align-items: center;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
}

.home-layout-welcome:not(:has(.home-section-image)),
.home-layout-custom:not(:has(.home-section-image)) {
  grid-template-columns: minmax(0, 1fr);
}

.home-section-copy {
  max-width: 100%;
  width: min(100%, var(--section-content-width, var(--default-section-content-width)));
}

.home-layout-details .info-grid,
.home-layout-photos .photo-grid {
  max-width: 100%;
  width: min(100%, var(--section-content-width, 100%));
}

.pricing-option-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin-top: 16px;
}

.pricing-option-card {
  background: transparent;
  border: 0;
  border-left: 3px solid var(--site-accent, var(--gold));
  border-radius: 0;
  display: grid;
  gap: 8px;
  padding: 4px 0 4px 12px;
  position: relative;
}

.pricing-option-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.pricing-option-card strong {
  color: var(--site-primary-ink, var(--green-dark));
  font-size: 30px;
  line-height: 1;
}

.pricing-option-card small {
  color: var(--muted);
  font-size: 14px;
}

.pricing-option-add,
.pricing-option-remove {
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.pricing-option-add {
  background: transparent;
  border: 1px dashed color-mix(in srgb, var(--site-primary, #196447) 45%, var(--line));
  border-radius: 7px;
  color: var(--site-primary-ink, var(--green-dark));
  margin-top: 14px;
  min-height: 42px;
  padding: 0 14px;
}

.pricing-option-remove {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--red);
  font-size: 11px;
  opacity: 0;
  padding: 5px 7px;
  position: absolute;
  right: 10px;
  top: 10px;
  transition: opacity 0.12s ease;
}

.pricing-option-card:hover .pricing-option-remove,
.pricing-option-remove:focus-visible {
  opacity: 1;
}

.pricing-summary-card strong {
  font-size: 26px;
}

.home-preview-panel .info-grid article {
  position: relative;
}

.detail-card-hidden {
  display: none;
}

.detail-card-remove,
.detail-card-add-list button {
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.detail-card-remove {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--red);
  font-size: 11px;
  opacity: 0;
  padding: 5px 7px;
  position: absolute;
  right: 10px;
  top: 10px;
  transition: opacity 0.12s ease;
}

.home-preview-panel .info-grid article:hover .detail-card-remove,
.detail-card-remove:focus-visible {
  opacity: 1;
}

.detail-card-add-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.detail-card-add-list button {
  background: transparent;
  border: 1px dashed color-mix(in srgb, var(--site-primary, #196447) 45%, var(--line));
  border-radius: 6px;
  color: var(--site-primary-ink, var(--green-dark));
  min-height: 36px;
  padding: 0 10px;
}

.home-section-copy h2 {
  font-size: 34px;
  line-height: 1.1;
  margin: 0 0 12px;
}

.section-text-align-center {
  text-align: center;
}

.section-text-align-right {
  text-align: right;
}

.section-has-text-color,
.section-has-text-color :is(h1, h2, h3, p, strong, small, span) {
  color: var(--section-text-color);
}

.section-has-heading-size .home-hero-copy h1 {
  font-size: var(--section-heading-size);
}

.section-has-heading-size .home-section-copy h2 {
  font-size: var(--section-heading-size);
}

.section-has-heading-size .info-grid strong {
  font-size: var(--section-heading-size);
}

.section-has-body-size .home-hero-copy .eyebrow,
.section-has-body-size .home-hero-copy p:not(.eyebrow),
.section-has-body-size .home-section-copy p,
.section-has-body-size .home-section-copy li,
.section-has-body-size .info-grid small,
.section-has-body-size .hero-schedule-item span {
  font-size: var(--section-body-size);
}

.home-section-image {
  margin: 0;
}

.home-section-image img {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  display: block;
  object-fit: cover;
  width: 100%;
}

.home-template-player_guide .home-layout-welcome,
.home-template-player_guide .home-layout-custom {
  background: var(--site-muted-surface);
}

.home-template-player_guide .home-layout-custom .home-section-copy {
  --default-section-content-width: 900px;
}

.home-template-player_guide .home-layout-photos {
  background: var(--site-surface);
}

.home-template-fundraiser {
  background: var(--site-muted-surface);
}

.home-template-fundraiser .home-layout-hero {
  background:
    linear-gradient(110deg, color-mix(in srgb, var(--site-primary, #263f4c) 95%, #000) 0%, color-mix(in srgb, var(--site-primary, #263f4c) 78%, transparent) 48%, color-mix(in srgb, var(--site-primary, #263f4c) 20%, transparent) 100%),
    url("https://images.unsplash.com/photo-1592919505780-303950717480?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  min-height: 64vh;
}

.home-template-fundraiser .home-layout-hero .eyebrow {
  color: color-mix(in srgb, var(--site-accent, #d49b3b) 62%, #fff);
}

.home-template-fundraiser .home-layout-welcome,
.home-template-fundraiser .home-layout-custom {
  background: var(--site-surface);
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1fr);
}

.home-template-fundraiser .home-layout-welcome:not(:has(.home-section-image))::before,
.home-template-fundraiser .home-layout-custom:not(:has(.home-section-image))::before {
  align-self: stretch;
  background:
    linear-gradient(180deg, var(--site-accent, #d49b3b), color-mix(in srgb, var(--site-primary, #263f4c) 70%, #fff)),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(255, 255, 255, 0.18) 18px 20px);
  border-radius: 8px;
  content: "";
  min-height: 180px;
}

.home-template-fundraiser .home-section-copy {
  border-left: 4px solid var(--site-accent, #d49b3b);
  padding-left: 22px;
}

.home-template-fundraiser .home-layout-details {
  background: color-mix(in srgb, var(--site-primary, #263f4c) 9%, #fff);
}

.home-template-fundraiser .info-grid article {
  background: color-mix(in srgb, var(--site-primary, #263f4c) 94%, #000);
  border-color: rgba(255, 255, 255, 0.16);
  border-top-color: var(--site-accent, #d49b3b);
  color: #fff;
}

.home-template-fundraiser .info-grid article > span,
.home-template-fundraiser .info-grid small {
  color: rgba(255, 255, 255, 0.72);
}

.home-template-fundraiser .home-layout-photos {
  background: var(--site-muted-surface);
}

.home-template-photo_story {
  background: var(--site-muted-surface);
}

.home-template-photo_story .home-layout-hero {
  align-items: center;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), color-mix(in srgb, var(--site-primary, #365346) 86%, #000)),
    url("https://images.unsplash.com/photo-1587174486073-ae5e5cff23aa?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  justify-content: center;
  min-height: 56vh;
  text-align: center;
}

.home-template-photo_story .home-hero-copy {
  margin: 0 auto;
}

.home-template-photo_story .home-hero-copy p:not(.eyebrow) {
  margin-left: auto;
  margin-right: auto;
}

.home-template-photo_story .hero-actions {
  justify-content: center;
}

.home-template-photo_story .home-layout-photos {
  background: var(--site-surface);
  display: grid;
  gap: 28px;
  grid-template-columns: 320px minmax(0, 1fr);
}

.home-template-photo_story .home-layout-photos .home-section-copy {
  align-self: start;
}

.home-template-photo_story .photo-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.home-template-photo_story .photo-grid figure:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.home-template-photo_story .photo-grid figure:first-child img {
  aspect-ratio: 1 / 1;
}

.home-template-photo_story .home-layout-details {
  background: color-mix(in srgb, var(--site-accent, #b85f46) 10%, #fff);
}

.home-template-photo_story .home-layout-welcome,
.home-template-photo_story .home-layout-custom {
  background: var(--site-muted-surface);
}

.home-editor-shell {
  margin: 0 auto;
  max-width: 1480px;
  padding: 34px;
}

.inline-builder-shell {
  max-width: 1320px;
}

.builder-topbar {
  margin-bottom: 24px;
}

.builder-control-panel {
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(260px, 1.1fr) 240px minmax(320px, 1fr);
  margin-bottom: 18px;
  padding: 14px;
}

.builder-control-group {
  border-right: 1px solid var(--line);
  display: grid;
  gap: 10px;
  min-width: 0;
  padding-right: 14px;
}

.builder-control-group:last-child {
  border-right: 0;
  padding-right: 0;
}

.builder-color-controls,
.block-choice-list,
.color-preset-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.builder-color-controls label {
  align-items: center;
  background: #f8f7f3;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: flex;
  gap: 8px;
  min-height: 42px;
  padding: 6px 8px;
}

.builder-color-controls span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.builder-color-controls input {
  border: 0;
  cursor: pointer;
  height: 28px;
  padding: 0;
  width: 34px;
}

.section-text-controls label {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 92px minmax(0, 1fr);
}

.section-text-controls label > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.section-text-controls select,
.section-text-controls input[type="range"] {
  margin: 0;
  width: 100%;
}

.section-text-controls input[type="color"] {
  border: 0;
  cursor: pointer;
  height: 28px;
  padding: 0;
  width: 40px;
}

.color-preset {
  border: 1px solid var(--line);
  border-radius: 5px;
  cursor: pointer;
  height: 28px;
  padding: 3px;
  position: relative;
  width: 48px;
}

.color-preset::before,
.color-preset::after {
  content: "";
  inset-block: 3px;
  position: absolute;
}

.color-preset::before {
  border-radius: 2px 0 0 2px;
  left: 3px;
  right: 50%;
}

.color-preset::after {
  border-radius: 0 2px 2px 0;
  left: 50%;
  right: 3px;
}

.color-preset:hover,
.color-preset:focus-visible {
  border-color: var(--ink);
  outline: 2px solid var(--site-accent, var(--gold));
  outline-offset: 2px;
}

.color-preset-black-red::before { background: #0b0b0d; }
.color-preset-black-red::after { background: #dc2626; }
.color-preset-evergreen::before { background: #196447; }
.color-preset-evergreen::after { background: #c98b2e; }
.color-preset-navy-gold::before { background: #172b4d; }
.color-preset-navy-gold::after { background: #d49b3b; }
.color-preset-plum-coral::before { background: #3f2d46; }
.color-preset-plum-coral::after { background: #e66750; }

.block-choice-list form {
  margin: 0;
}

.block-choice {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--green-dark);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  min-height: 38px;
  padding: 0 11px;
}

.block-choice:hover {
  border-color: var(--green);
}

.template-starter-panel {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 18px;
  grid-template-columns: 180px minmax(0, 1fr);
  margin-bottom: 18px;
  padding: 16px;
}

.template-starter-panel h2 {
  font-size: 20px;
  line-height: 1.1;
  margin: 0;
}

.template-choice-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compact-template-list {
  gap: 8px;
}

.template-choice-list form {
  margin: 0;
}

.template-choice {
  background: #f8f7f3;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  font: inherit;
  gap: 4px;
  min-height: 78px;
  padding: 12px;
  text-align: left;
  width: 100%;
}

.compact-template-list .template-choice {
  align-content: start;
  min-height: 118px;
  padding: 10px;
}

.compact-template-list .template-choice::before {
  height: 24px;
  margin-bottom: 0;
}

.template-choice::before {
  border-radius: 6px;
  content: "";
  display: block;
  height: 34px;
  margin-bottom: 3px;
}

.template-choice-player_guide::before {
  background:
    linear-gradient(90deg, #196447 0 58%, #c98b2e 58% 64%, #f8f7f3 64%),
    linear-gradient(#fff, #fff);
}

.template-choice-fundraiser::before {
  background:
    linear-gradient(90deg, #263f4c 0 48%, #d49b3b 48% 53%, #ffffff 53%),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(0, 0, 0, 0.08) 18px 20px);
}

.template-choice-photo_story::before {
  background:
    linear-gradient(90deg, #365346 0 34%, #b85f46 34% 40%, #ffffff 40% 70%, #f7f3ef 70%),
    linear-gradient(#fff, #fff);
}

.template-choice:hover {
  border-color: var(--green);
}

.template-choice span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.template-choice em {
  color: var(--green-dark);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0;
  margin-top: 2px;
  text-transform: uppercase;
}

.home-editor-grid {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 360px;
  margin-top: 26px;
}

.home-section-list-panel,
.home-inspector-panel {
  position: sticky;
  top: 88px;
}

.preview-first-editor {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.home-section-list {
  display: grid;
  gap: 8px;
}

.home-section-editor {
  background: #f8f7f3;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.home-section-editor.dragging {
  opacity: 0.42;
}

.home-section-editor summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  list-style: none;
  padding: 10px 12px;
}

.home-section-editor summary::-webkit-details-marker {
  display: none;
}

.home-section-list span,
.home-section-list small {
  display: block;
}

.home-section-list small {
  color: var(--muted);
  margin-top: 3px;
}

.drag-handle {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  cursor: grab;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  padding: 5px 7px;
  text-transform: uppercase;
}

.compact-edit-label {
  color: var(--green-dark);
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
}

.muted-section {
  opacity: 0.62;
}

.inline-section-form {
  background: #fff;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  padding: 14px;
}

.inline-section-form .form-field {
  font-size: 14px;
  gap: 5px;
}

.inline-section-form input,
.inline-section-form textarea,
.inline-section-form select {
  font-size: 14px;
  min-width: 0;
  padding: 8px 10px;
  width: 100%;
}

.inline-section-form textarea {
  min-height: 92px;
  resize: vertical;
}

.home-preview-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.inline-builder-canvas {
  margin: 0 auto 80px;
}

.home-preview-panel .outing-public-footer {
  display: none;
}

.home-preview-panel .home-layout-hero {
  min-height: 430px;
}

.home-preview-panel .home-layout-section {
  cursor: grab;
  transition: box-shadow 0.12s ease, outline-color 0.12s ease, opacity 0.12s ease;
}

.home-preview-panel .home-layout-section.resizing-section {
  user-select: none;
}

.home-preview-panel .home-layout-section.resizing-section.resize-height {
  cursor: ns-resize;
}

.home-preview-panel .home-layout-section.resizing-section.resize-width {
  cursor: ew-resize;
}

.home-preview-panel .home-layout-section:active:not(.resizing-section) {
  cursor: grabbing;
}

.home-preview-panel .home-layout-section.dragging {
  opacity: 0.38;
}

.home-preview-panel .home-layout-section.selected-section {
  outline: 3px solid color-mix(in srgb, var(--site-accent, var(--gold)) 85%, #fff);
  outline-offset: -3px;
}

.home-preview-panel .home-layout-section.dirty-section {
  box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--site-accent, var(--gold)) 70%, transparent);
}

.section-resize-handle {
  background: color-mix(in srgb, var(--site-accent, var(--gold)) 82%, #fff);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(23, 33, 28, 0.18);
  opacity: 0;
  padding: 0;
  position: absolute;
  touch-action: none;
  transition: height 0.12s ease, left 0.12s ease, opacity 0.12s ease, transform 0.12s ease, width 0.12s ease;
  z-index: 3;
}

.section-remove-button {
  background: var(--red);
  border: 0;
  border-radius: 5px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  padding: 7px 9px;
  position: absolute;
  right: 12px;
  top: 12px;
  transition: opacity 0.12s ease;
  z-index: 4;
}

.section-placement-button {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--site-primary, var(--green-dark));
  border-radius: 5px;
  color: var(--site-primary, var(--green-dark));
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  padding: 7px 9px;
  position: absolute;
  right: 86px;
  top: 12px;
  transition: opacity 0.12s ease;
  z-index: 4;
}

.section-placement-button:focus-visible {
  opacity: 1;
  outline: 3px solid color-mix(in srgb, var(--site-accent, var(--gold)) 72%, #fff);
  outline-offset: 2px;
}

.section-placement-button:disabled {
  cursor: wait;
}

.section-remove-button:focus-visible {
  opacity: 1;
  outline: 3px solid color-mix(in srgb, var(--site-accent, var(--gold)) 72%, #fff);
  outline-offset: 2px;
}

.section-remove-button:disabled {
  cursor: wait;
}

.section-resize-height-handle {
  bottom: 8px;
  cursor: ns-resize;
  height: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 58px;
}

.section-resize-width-handle {
  cursor: ew-resize;
  height: 58px;
  right: -6px;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
}

.section-resize-height-handle::before {
  background: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  content: "";
  height: 2px;
  left: 12px;
  position: absolute;
  right: 12px;
  top: 5px;
}

.section-resize-width-handle::before {
  background: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  bottom: 12px;
  content: "";
  left: 5px;
  position: absolute;
  top: 12px;
  width: 2px;
}

.home-preview-panel .home-layout-section:hover .section-resize-handle,
.home-preview-panel .home-layout-section.selected-section .section-resize-handle,
.home-preview-panel .home-layout-section.resizing-section .section-resize-handle {
  opacity: 1;
}

.home-preview-panel .home-layout-section:hover .section-remove-button,
.home-preview-panel .home-layout-section.selected-section .section-remove-button,
.home-preview-panel .home-layout-section:hover .section-placement-button,
.home-preview-panel .home-layout-section.selected-section .section-placement-button {
  opacity: 1;
}

.home-preview-panel .home-layout-section:hover .section-resize-height-handle,
.home-preview-panel .home-layout-section.selected-section .section-resize-height-handle,
.home-preview-panel .home-layout-section.resizing-section .section-resize-height-handle {
  width: 76px;
}

.home-preview-panel .home-layout-section:hover .section-resize-width-handle,
.home-preview-panel .home-layout-section.selected-section .section-resize-width-handle,
.home-preview-panel .home-layout-section.resizing-section .section-resize-width-handle {
  height: 76px;
}

[contenteditable="true"] {
  border-radius: 6px;
  outline: 0;
}

[contenteditable="true"]:hover {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.36);
}

[contenteditable="true"]:focus {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 3px var(--site-accent, var(--gold));
  color: var(--ink);
}

.hero-actions [contenteditable="true"]:focus {
  color: var(--ink);
}

.editable-rich-text {
  min-height: 36px;
  white-space: pre-wrap;
}

.inline-fact-input {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: inherit;
  font: inherit;
  font-size: 24px;
  font-weight: 800;
  max-width: 100%;
  padding: 0;
}

.inline-fact-input:focus {
  background: #fff;
  box-shadow: 0 0 0 3px var(--site-accent, var(--gold));
  color: var(--ink);
  outline: 0;
  padding: 2px 4px;
}

.builder-save-bar {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  bottom: 20px;
  box-shadow: 0 12px 40px rgba(23, 33, 28, 0.16);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  left: 50%;
  min-width: min(480px, calc(100vw - 36px));
  padding: 12px;
  position: fixed;
  transform: translateX(-50%);
  z-index: 10;
}

.builder-save-bar[hidden] {
  display: none;
}

.builder-save-bar span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.home-inspector-panel {
  min-height: 360px;
}

.home-inspector-panel > .eyebrow {
  margin-bottom: 6px;
}

.inspector-section {
  display: none;
}

.inspector-section.active {
  display: grid;
  gap: 14px;
}

.inspector-heading {
  align-items: start;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding-bottom: 14px;
}

.inspector-heading h2 {
  font-size: 24px;
  line-height: 1.1;
  margin: 0;
}

.inspector-heading small {
  color: var(--muted);
  display: block;
  margin-top: 4px;
}

.status-dot {
  background: var(--red);
  border-radius: 999px;
  display: block;
  flex: 0 0 auto;
  height: 10px;
  margin-top: 7px;
  width: 10px;
}

.status-dot.visible {
  background: var(--green);
}

.compact-inspector-form {
  border-top: 0;
  padding: 0;
}

.preview-hidden-section {
  opacity: 0.55;
}

.preview-hidden-section::after {
  border: 2px dashed var(--red);
  border-radius: 8px;
  content: "";
  inset: 8px;
  pointer-events: none;
  position: absolute;
}

.content-page-hero {
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--site-primary, #196447) 88%, #000), rgba(0, 0, 0, 0.72)),
    url("https://images.unsplash.com/photo-1593111774240-d529f12cf4bb?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
  color: #fff;
  padding: 70px 34px;
}

.page-template {
  --site-surface: #fff;
  --site-muted-surface: color-mix(in srgb, var(--site-primary, #196447) 5%, #fff);
  background: var(--site-muted-surface);
  padding-bottom: 1px;
}

.page-template .page-block {
  border-color: color-mix(in srgb, var(--site-primary, #196447) 18%, var(--line));
}

.page-template .page-block-copy h2 {
  color: color-mix(in srgb, var(--site-primary, #196447) 92%, #000);
}

.content-page-hero h1 {
  font-size: 52px;
  line-height: 1;
  margin: 0 0 16px;
  max-width: 840px;
}

.content-page-hero p:not(.eyebrow) {
  font-size: 20px;
  max-width: 760px;
}

.content-page-body {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 18px;
  margin: 34px auto;
  max-width: 840px;
  padding: 30px;
}

.content-page-body p:first-child {
  margin-top: 0;
}

.content-page-body p:last-child {
  margin-bottom: 0;
}

.content-page-body.page-blocks {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

@media (max-width: 860px) {
  .dashboard-shell,
  .metrics-grid,
  .info-grid,
  .editor-grid,
  .tournament-form-grid,
  .builder-control-panel,
  .page-editor-grid,
  .page-block:has(.page-block-image),
  .home-editor-grid,
  .home-layout-welcome,
  .home-layout-custom,
  .home-layout-hero-with-photo,
  .home-template-photo_story .home-layout-photos {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-bottom: 1px solid var(--line);
    border-right: 0;
  }

  .page-title-row,
  .section-heading,
  .design-summary {
    align-items: start;
    flex-direction: column;
  }

  .builder-control-group {
    border-right: 0;
    padding-right: 0;
  }

  .dashboard-main,
  .editor-shell,
  .home-editor-shell {
    padding: 24px;
  }

  .home-hero-copy h1 {
    font-size: 36px;
    line-height: 1.04;
  }

  .home-layout-hero {
    min-height: 0;
    padding: 28px 24px;
  }

  .hero-schedule {
    display: grid;
    gap: 12px 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 16px;
  }

  .hero-payment-options {
    gap: 12px 16px;
    margin-top: 16px;
  }

  .hero-schedule-item {
    min-width: 0;
  }

  .hero-actions {
    margin-top: 16px;
  }

  .home-layout-details,
  .home-layout-welcome,
  .home-layout-photos,
  .home-layout-custom {
    padding: var(--section-padding-y, 20px) 24px;
  }

  .home-section-list-panel {
    position: static;
  }

  .preview-section-toolbar {
    align-items: start;
    flex-direction: column;
  }

  .content-page-hero {
    padding: 48px 24px;
  }

  .content-page-hero h1 {
    font-size: 38px;
  }

  .content-page-body {
    border-left: 0;
    border-radius: 0;
    border-right: 0;
    margin: 0;
    padding: 24px;
  }

  .home-template-photo_story .photo-grid figure:first-child {
    grid-column: auto;
    grid-row: auto;
  }

  .outing-public-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
  }
}
