:root {
  color-scheme: light;
  --ink: #15201d;
  --muted: #5d6a65;
  --paper: #fbfaf6;
  --wash: #edf3eb;
  --line: #d7dfd3;
  --green: #225443;
  --green-2: #5c8c62;
  --gold: #c99a3d;
  --clay: #b7674b;
  --blue: #5c8ba0;
  --white: #ffffff;
  --shadow: 0 20px 55px rgba(24, 39, 34, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

button,
a,
label.upload-button {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(251, 250, 246, 0.9);
  border-bottom: 1px solid rgba(215, 223, 211, 0.82);
  backdrop-filter: blur(18px);
}

.main-nav {
  display: flex;
  justify-content: flex-start;
  flex: 1 1 520px;
  gap: clamp(8px, 2vw, 22px);
  flex-wrap: wrap;
}

.header-title-sponsor {
  flex: 0 1 280px;
  margin-left: auto;
  display: flex;
  justify-content: flex-end;
}

.main-nav a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--green);
}

.primary-button,
.primary-link,
.secondary-button,
.secondary-link,
.outline-link,
.ghost-button,
.upload-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
}

.primary-button,
.primary-link {
  background: var(--green);
  color: var(--white);
  padding: 0 16px;
}

.secondary-button,
.secondary-link,
.upload-button {
  background: var(--gold);
  color: #21190c;
  padding: 0 16px;
}

.outline-link {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
  padding: 0 16px;
}

.button-link {
  font: inherit;
}

.ghost-button {
  background: var(--white);
  color: var(--green);
  border-color: var(--line);
  padding: 0 14px;
}

.danger-button {
  color: #8d2c24;
}

.ghost-button.full {
  width: 100%;
}

.secondary-button.full {
  width: 100%;
}

.secondary-link.compact {
  min-height: 38px;
}

.hero {
  position: relative;
  min-height: min(760px, 88vh);
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  background: #16372f;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(15, 31, 26, 0.66), rgba(15, 31, 26, 0.18) 58%, rgba(15, 31, 26, 0.06)),
    linear-gradient(0deg, rgba(15, 31, 26, 0.62), rgba(15, 31, 26, 0) 42%);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("golf-cup.webp");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
  filter: brightness(0.96) saturate(1.03) contrast(1.02);
}

.hero-content {
  width: min(760px, calc(100% - 32px));
  margin: 0 clamp(16px, 6vw, 72px) clamp(72px, 15vh, 150px);
  color: var(--white);
  position: relative;
}

.hero-logo {
  width: min(620px, 100%);
  max-height: 210px;
  object-fit: contain;
  object-position: left center;
  display: block;
  margin: 0 0 24px;
  filter:
    drop-shadow(0 2px 0 rgba(255, 255, 255, 0.26))
    drop-shadow(0 18px 32px rgba(0, 0, 0, 0.4));
}

.hero-benefit {
  width: fit-content;
  max-width: min(520px, 100%);
  min-height: 70px;
  display: inline-flex;
  align-items: center;
  position: relative;
  padding: 10px 14px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.42) 58%, rgba(255, 255, 255, 0.08) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.34),
    0 14px 32px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(2px);
}

.hero-benefit img {
  width: min(500px, calc(100vw - 72px));
  height: auto;
  max-height: 92px;
  object-fit: contain;
  filter:
    brightness(1.02)
    contrast(1.06)
    drop-shadow(0 10px 24px rgba(0, 0, 0, 0.18))
    drop-shadow(0 0 18px rgba(255, 255, 255, 0.38));
}

.eyebrow,
.label {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.2rem, 8vw, 7.2rem);
  line-height: 0.88;
}

.hero-copy {
  width: min(610px, 100%);
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.04rem, 2vw, 1.32rem);
  line-height: 1.5;
}

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

.hero-actions > * {
  width: 164px;
  font-family: inherit;
  font-weight: 900;
}

.hero-action-map {
  background: #244f63;
}

.hero-action-gallery {
  background: #5f7f93;
  color: #ffffff;
}

.hero-action-memorial {
  background: #465760;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
}

.hero-action-checkin {
  background: #7893a6;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
}

.hero-action-info {
  background: #e4ebef;
  color: #243943;
  border-color: rgba(255, 255, 255, 0.4);
}

.status-strip {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(140px, 220px);
  gap: 14px;
  padding: 16px clamp(16px, 5vw, 64px);
  border-top: 1px solid var(--line);
  background: #f3f6ef;
}

.status-strip article {
  min-height: 104px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 35px rgba(24, 39, 34, 0.08);
}

.status-strip article:last-child {
  border-right: 0;
}

.status-strip strong {
  display: block;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  line-height: 1.05;
}

.status-strip small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.title-sponsor-card {
  width: 100%;
  min-height: 0;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 14px 35px rgba(24, 39, 34, 0.08);
}

.title-sponsor-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto;
  place-items: center;
  padding: 10px 12px 9px;
}

.title-sponsor-card h3 {
  margin: 4px 0 2px;
  color: var(--green);
  font-size: 0.88rem;
  text-transform: uppercase;
}

.title-sponsor-card img {
  width: min(170px, 100%);
  height: 62px;
  object-fit: contain;
}

.title-sponsor-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 900;
  font-size: 0.78rem;
  text-align: center;
}

.title-sponsor-card.compact {
  min-height: 0;
}

.title-sponsor-card.compact img {
  width: min(160px, 100%);
  height: 56px;
}

.sponsor-day {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 9px;
  border-radius: 6px;
  background: var(--green);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 900;
}

.section {
  padding: clamp(48px, 8vw, 92px) clamp(16px, 5vw, 64px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section h2 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1;
}

.section-actions,
.quick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 380px);
  gap: 18px;
  align-items: stretch;
}

.course-map {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid #c9d8c6;
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 26%, rgba(255, 255, 255, 0.38) 0 1.5%, transparent 1.7%),
    radial-gradient(circle at 73% 72%, rgba(255, 255, 255, 0.36) 0 1.2%, transparent 1.5%),
    linear-gradient(135deg, #c8ddb7, #92bf7d 44%, #6e9f66 100%);
  box-shadow: var(--shadow);
}

.provider-map {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: none;
}

.course-map.real-map-enabled .provider-map {
  display: block;
}

.course-map.real-map-enabled .course-water,
.course-map.real-map-enabled .fairway,
.course-map.real-map-enabled .green,
.course-map.real-map-enabled .path,
.course-map.real-map-enabled #sponsorMarkers,
.course-map.real-map-enabled #playerMarkers {
  display: none;
}

.course-water {
  position: absolute;
  left: 56%;
  top: 10%;
  width: 30%;
  height: 24%;
  border-radius: 48% 52% 45% 55%;
  background: linear-gradient(135deg, #7fbcce, #4c8195);
  opacity: 0.88;
}

.fairway {
  position: absolute;
  background: rgba(226, 238, 199, 0.85);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.26);
}

.fairway-one {
  left: 8%;
  top: 13%;
  width: 36%;
  height: 72%;
  border-radius: 48% 42% 50% 44%;
  transform: rotate(-16deg);
}

.fairway-two {
  left: 37%;
  top: 33%;
  width: 46%;
  height: 24%;
  border-radius: 48%;
  transform: rotate(10deg);
}

.fairway-three {
  right: 10%;
  bottom: 8%;
  width: 34%;
  height: 54%;
  border-radius: 54% 44% 48% 50%;
  transform: rotate(18deg);
}

.green {
  position: absolute;
  width: 9%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #d8f1b7;
  border: 4px solid rgba(34, 84, 67, 0.16);
}

.green-one {
  left: 18%;
  top: 12%;
}

.green-two {
  left: 69%;
  top: 39%;
}

.green-three {
  right: 17%;
  bottom: 12%;
}

.path {
  position: absolute;
  height: 10px;
  border-radius: 999px;
  background: rgba(115, 91, 63, 0.32);
}

.path-one {
  left: 19%;
  top: 55%;
  width: 62%;
  transform: rotate(-8deg);
}

.path-two {
  left: 44%;
  top: 30%;
  width: 44%;
  transform: rotate(42deg);
}

.marker {
  position: absolute;
  z-index: 5;
  transform: translate(-50%, -50%);
  border: 0;
  cursor: pointer;
}

.player-marker {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #ffffff 0 18%, transparent 19%),
    radial-gradient(circle at 65% 62%, rgba(20, 31, 27, 0.12) 0 4%, transparent 5%),
    #f7f8f1;
  color: var(--green);
  border: 2px solid #ffffff;
  box-shadow: 0 14px 28px rgba(20, 31, 27, 0.24);
  font-size: 0.8rem;
  font-weight: 900;
}

.sponsor-marker {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #2d483f;
  color: var(--gold);
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 24px rgba(20, 31, 27, 0.22);
  font-size: 0.72rem;
  font-weight: 900;
}

.marker:hover,
.marker:focus-visible {
  outline: 3px solid rgba(201, 154, 61, 0.52);
  outline-offset: 3px;
}

.provider-marker {
  min-width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 2px solid #ffffff;
  cursor: pointer;
  color: var(--green);
  box-shadow: 0 12px 24px rgba(20, 31, 27, 0.22);
  font-size: 0.76rem;
  font-weight: 900;
}

.provider-marker-player {
  border-radius: 50%;
  background: #f7f8f1;
}

.provider-marker-sponsor {
  border-radius: 8px;
  background: #2d483f;
  color: var(--gold);
  font-size: 0.9rem;
}

.provider-marker-waypoint {
  border-radius: 8px;
  background: var(--gold);
  color: #21190c;
}

.static-map-provider {
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}

.static-map-provider.is-dragging {
  cursor: grabbing;
}

.static-map-shell,
.static-map-tiles,
.static-map-marker-layer {
  position: absolute;
  inset: 0;
}

.static-map-controls {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 5;
  display: grid;
  gap: 8px;
}

.static-map-zoom {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(18, 53, 47, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--green);
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(20, 31, 28, 0.14);
  cursor: pointer;
}

.static-map-zoom:hover,
.static-map-zoom:focus-visible {
  background: #ffffff;
  border-color: rgba(18, 53, 47, 0.32);
}

.static-map-tile {
  position: absolute;
  width: 256px;
  height: 256px;
  object-fit: cover;
}

.static-map-marker-layer {
  pointer-events: none;
}

.static-map-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}

.static-map-popup {
  position: absolute;
  transform: translate(-50%, -100%);
  z-index: 4;
  width: min(280px, calc(100vw - 48px));
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 34px rgba(21, 32, 29, 0.24);
  pointer-events: auto;
}

.map-popup-card {
  display: grid;
  gap: 8px;
  color: var(--ink);
}

.map-popup-card strong {
  color: var(--green);
  font-size: 1.08rem;
  font-weight: 950;
  line-height: 1.2;
}

.map-popup-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.42;
}

.map-popup-logo {
  max-width: 150px;
  max-height: 64px;
  object-fit: contain;
}

.map-popup-logo-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.map-popup-logo-row .map-popup-logo {
  max-width: 128px;
  max-height: 58px;
}

.map-popup-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.map-popup-photos img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  object-fit: cover;
}

.hole-logo {
  max-width: 170px;
  max-height: 82px;
  display: block;
  object-fit: contain;
  margin: 0 0 14px;
}

.hole-logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}

.hole-logo-inline {
  margin: 0;
  max-width: min(170px, 100%);
}

.hole-photo-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.hole-photo-strip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
}

.map-panel {
  display: grid;
  align-content: start;
  gap: 14px;
}

.panel-block,
.info-grid article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 14px 35px rgba(24, 39, 34, 0.08);
}

.panel-block h3 {
  margin: 0 0 10px;
  font-size: 1.45rem;
}

.panel-block p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.tracking-status {
  margin-top: 10px !important;
  font-weight: 900;
}

.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.tab {
  min-width: 100px;
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.tab.active {
  background: var(--green);
  color: var(--white);
}

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

.gallery-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: 8px;
  border: 0;
  background: var(--wash);
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.gallery-card:focus-visible {
  outline: 3px solid rgba(201, 154, 61, 0.72);
  outline-offset: 3px;
}

.gallery-card img,
.gallery-card .placeholder-art {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
  display: block;
}

.gallery-caption {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 10px;
  border-radius: 6px;
  background: rgba(21, 32, 29, 0.78);
  color: var(--white);
  font-weight: 800;
}

.placeholder-art {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(34, 84, 67, 0.82), rgba(92, 139, 160, 0.72)),
    url("assets/background_dsc.jpg");
  background-size: cover;
  color: var(--white);
  font-size: 2.3rem;
  font-weight: 900;
}

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

.info-grid h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.info-grid li {
  color: var(--muted);
  line-height: 1.55;
}

.memorial-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(13, 22, 17, 0.84), rgba(13, 22, 17, 0.5)),
    linear-gradient(135deg, #f0f4ec 0%, #e4eadf 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.memorial-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 211, 119, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(5, 13, 10, 0.06), rgba(5, 13, 10, 0.14));
  pointer-events: none;
}

.memorial-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 42px);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(251, 250, 246, 0.88);
  box-shadow: 0 20px 42px rgba(12, 20, 16, 0.26);
  backdrop-filter: blur(6px);
}

.memorial-intro {
  max-width: 760px;
  margin: -8px 0 24px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.memorial-list {
  column-count: 3;
  column-gap: clamp(24px, 4vw, 54px);
}

.memorial-name {
  break-inside: avoid;
  border-bottom: 1px solid rgba(21, 32, 29, 0.14);
  padding: 10px 0;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 850;
  letter-spacing: 0.01em;
}

.sponsors-section {
  background: #f3f6ef;
  overflow-x: clip;
}

.sponsor-wall {
  margin: 0;
  width: min(100%, 1120px);
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid rgba(34, 84, 67, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 34px rgba(24, 39, 34, 0.08);
}

.sponsor-wall img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.info-grid ul {
  margin: 0;
  padding-left: 18px;
}

.info-grid a {
  color: var(--green);
  font-weight: 900;
}

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

.admin-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 14px 35px rgba(24, 39, 34, 0.08);
}

.admin-card h3 {
  margin: 0 0 14px;
}

.admin-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.admin-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.admin-card input,
.admin-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.admin-card textarea {
  resize: vertical;
  font: inherit;
}

.admin-card select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--white);
}

.admin-unlock {
  display: grid;
  align-content: start;
  gap: 14px;
}

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

.admin-list li {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.admin-inline-actions {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-list small {
  display: block;
  color: var(--muted);
}

.tiny-danger {
  min-height: 34px;
  border: 1px solid #e0b9b4;
  border-radius: 8px;
  background: #fff7f5;
  color: #8d2c24;
  cursor: pointer;
  font-weight: 900;
  padding: 0 10px;
}

.tiny-button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--green);
  cursor: pointer;
  font-weight: 900;
  padding: 0 10px;
}

.placement-output {
  padding: 12px;
  border-radius: 8px;
  background: #f3f6ef;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.placement-textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.84rem;
}

.hole-media-controls {
  display: grid;
  gap: 10px;
}

.hole-media-controls:empty {
  display: none;
}

.hole-media-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf6;
}

.hole-media-item img {
  width: 64px;
  height: 52px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--white);
}

.hole-media-item strong {
  color: var(--green);
  font-size: 0.9rem;
}

.upload-button input {
  width: 1px;
  height: 1px;
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.modal {
  width: min(560px, calc(100% - 24px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.modal::backdrop {
  background: rgba(9, 20, 17, 0.58);
  backdrop-filter: blur(6px);
}

.modal-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  background: var(--paper);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal h2 {
  margin: 0;
}

.icon-button {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  font-weight: 900;
}

.modal label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 800;
}

.modal input,
.modal select,
.modal textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  padding: 12px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.message-thread {
  max-height: 180px;
  overflow: auto;
  display: grid;
  gap: 8px;
}

.message-bubble {
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
}

.message-bubble strong {
  display: block;
  margin-bottom: 2px;
  color: var(--green);
}

.photo-modal {
  width: min(920px, calc(100% - 24px));
}

.photo-preview {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 8px;
  background: #101815;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 50;
  max-width: min(420px, calc(100% - 24px));
  transform: translate(-50%, 120px);
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
  font-weight: 800;
  transition: transform 180ms ease;
}

.toast.show {
  transform: translate(-50%, 0);
}

.site-footer {
  display: flex;
  justify-content: center;
  padding: 22px 16px 34px;
}

.admin-golf-link {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 35% 30%, rgba(21, 43, 37, 0.16) 0 2px, transparent 3px),
    radial-gradient(circle at 60% 30%, rgba(21, 43, 37, 0.16) 0 2px, transparent 3px),
    radial-gradient(circle at 45% 52%, rgba(21, 43, 37, 0.16) 0 2px, transparent 3px),
    radial-gradient(circle at 65% 58%, rgba(21, 43, 37, 0.16) 0 2px, transparent 3px),
    #ffffff;
  box-shadow: 0 10px 26px rgba(24, 39, 34, 0.12);
}

.admin-golf-link:hover,
.admin-golf-link:focus-visible {
  outline: 3px solid rgba(140, 192, 65, 0.32);
}

@media (max-width: 980px) {
  .status-strip,
  .map-layout,
  .admin-grid,
  .gallery-grid,
  .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .memorial-list {
    column-count: 2;
  }

  .memorial-shell {
    padding: 20px;
  }

  .map-panel {
    grid-column: 1 / -1;
  }

  .header-title-sponsor {
    flex: 1 1 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 10px 10px 12px;
  }

  .main-nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(24, 39, 34, 0.08);
  }

  .hero {
    min-height: 560px;
  }

  .hero-content {
    width: calc(100% - 24px);
    margin: 0 12px 28px;
  }

  .hero-logo {
    width: min(420px, 100%);
    max-height: 148px;
    margin-bottom: 14px;
  }

  .hero-benefit {
    min-height: 0;
    margin-bottom: 12px;
    padding: 6px 8px;
    border-radius: 14px;
  }

  .hero-benefit img {
    width: min(340px, calc(100vw - 56px));
    max-height: 68px;
  }

  .hero h1 {
    font-size: clamp(2rem, 10vw, 3.2rem);
    line-height: 0.94;
  }

  .hero-copy {
    margin-top: 14px;
    font-size: 0.98rem;
    line-height: 1.42;
  }

  .hero-actions {
    gap: 8px;
    margin-top: 18px;
  }

  .hero-actions > * {
    width: calc(50% - 4px);
    min-width: 0;
    min-height: 40px;
    font-size: 0.88rem;
  }

  .status-strip,
  .admin-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .gallery-card {
    min-height: 156px;
  }

  .gallery-card img,
  .gallery-card .placeholder-art {
    min-height: 156px;
  }

  .gallery-caption {
    left: 6px;
    right: 6px;
    bottom: 6px;
    padding: 8px;
    font-size: 0.86rem;
  }

  .memorial-list {
    column-count: 2;
    column-gap: 18px;
  }

  .memorial-name {
    font-size: 0.96rem;
    padding: 8px 0;
  }

  .memorial-shell {
    padding: 16px;
  }

  .status-strip article {
    min-height: 96px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }

  .section-actions,
  .quick-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .section-actions > *,
  .quick-row > * {
    width: 100%;
  }

  .map-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .course-map {
    min-height: 430px;
  }

  .map-panel {
    gap: 10px;
  }

  .panel-block,
  .info-grid article {
    padding: 14px;
  }

  .panel-block h3 {
    margin-bottom: 6px;
    font-size: 1.1rem;
  }

  .panel-block p {
    font-size: 0.94rem;
    line-height: 1.42;
  }

  .admin-grid {
    gap: 10px;
  }

  .admin-card {
    padding: 14px;
  }

  .admin-card h3 {
    margin-bottom: 10px;
    font-size: 1.08rem;
  }

  .admin-card label {
    gap: 6px;
    font-size: 0.92rem;
  }

  .admin-card input,
  .admin-card textarea,
  .admin-card select {
    padding: 10px;
  }

  .admin-list li {
    min-height: 40px;
    padding-bottom: 8px;
  }

  .modal-actions {
    flex-direction: column-reverse;
  }

  .modal-actions button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .memorial-list {
    column-count: 2;
    column-gap: 14px;
  }
}

@media (max-width: 360px) {
  .memorial-list {
    column-count: 1;
  }
}
