/* ===========================================================
   AugustaGo — retro pixel HUD theme (2026-05-13 redesign)
   Dark-mode infographic style. Cream-on-teal with rainbow.
     teal-deep    #072525   (page bg)
     teal         #0e3b3b   (frame bg)
     teal-lite    #1a5959   (subtle separators)
     cream        #f6efd9   (text + borders)
     yellow       #f4c542   (heading accents)
     orange       #f08a2c   (numbers / hover)
     red-orange   #e64a3b   (alerts / CTAs)
     green        #5fb05a   (success / FREE)
   =========================================================== */

:root {
  --teal-deep:  #072525;
  --teal:       #0e3b3b;
  --teal-mid:   #143f3f;
  --teal-lite:  #1a5959;
  --cream:      #f6efd9;
  --ink:        #0b1d1d;
  --red-orange: #e64a3b;
  --orange:     #f08a2c;
  --yellow:     #f4c542;
  --green:      #5fb05a;
  --shadow:     0 4px 0 rgba(0,0,0,.35);
  --pixel-font: 'Press Start 2P', system-ui, sans-serif;
  --body-font:  'VT323', 'Courier New', monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--teal-deep);
  color: var(--cream);
  font-family: var(--body-font);
  font-size: 22px;
  line-height: 1.5;
  image-rendering: pixelated;
}
body {
  background:
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,255,255,.015) 3px 4px),
    radial-gradient(ellipse at top, var(--teal-mid) 0%, var(--teal-deep) 70%);
  min-height: 100vh;
}

/* ============ Rainbow stair-step bar (new) ============ */
.rainbow {
  height: 14px;
  background: linear-gradient(to right,
    var(--red-orange) 0 16.6%, var(--orange) 16.6% 33.3%, var(--yellow) 33.3% 50%,
    var(--green) 50% 66.6%, #3c7ab8 66.6% 83.3%, #7a4ea8 83.3% 100%);
  image-rendering: pixelated;
  box-shadow: var(--shadow);
}

/* ============ Top loading bar (sits above rainbow when shown) ============ */
#loading-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--teal-deep);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  overflow: hidden;
}
#loading-bar.show     { opacity: 1; }
#loading-bar.fade-out { opacity: 0; }

.loading-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(
    to right,
    var(--red-orange) 0%,
    var(--orange)     35%,
    var(--yellow)     65%,
    var(--green)      100%
  );
  animation: loading-fill 1.4s steps(16, end) infinite;
}
@keyframes loading-fill {
  from { width: 0%; }
  to   { width: 100%; }
}

/* ============ Header / nav ============ */
.hidden { display: none !important; }

.site-header {
  background: transparent;
  border-bottom: 2px dashed var(--teal-lite);
  padding: 20px 0 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.logo-link {
  display: block;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

/* ============ Pixel Logo ============ */
.pixel-logo {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--teal);
  color: var(--cream);
  padding: 24px 20px 20px;
  border: 4px solid var(--cream);
  box-shadow: 6px 6px 0 rgba(0,0,0,.4);
  font-family: var(--pixel-font);
  line-height: 1;
  image-rendering: pixelated;
  box-sizing: border-box;
}

.pixel-logo__row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(8px, 1.2vw, 16px);
}

.pixel-rainbow {
  height: clamp(24px, 5vw, 48px);
  width: auto;
  flex-shrink: 0;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.pixel-logo__augusta,
.pixel-logo__go {
  font-size: clamp(24px, 5vw, 48px);
  letter-spacing: 4px;
  color: var(--cream);
  text-shadow: 3px 3px 0 var(--ink);
}

.pixel-flower {
  display: none;
}

.pixel-logo__text-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pixel-logo__text-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 24px);
}
.pixel-logo__sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1vw, 12px);
  font-size: clamp(9px, 1.6vw, 14px);
  letter-spacing: clamp(2px, 0.6vw, 6px);
  color: var(--yellow);
  text-shadow: 1px 1px 0 var(--ink);
}
.pixel-flower-sm {
  width: clamp(10px, 1.4vw, 16px);
  height: clamp(10px, 1.4vw, 16px);
  flex-shrink: 0;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

@media (max-width: 800px) {
  .pixel-logo { padding: 12px 10px 10px; }
  .pixel-logo__text-group { gap: 3px; }
  .pixel-logo__row { gap: clamp(4px, 1.5vw, 8px); }
  .pixel-logo__augusta, .pixel-logo__go {
    font-size: clamp(16px, 5vw, 24px);
    letter-spacing: 2px;
  }
  .pixel-rainbow { height: clamp(16px, 5vw, 24px); }
  .pixel-logo__sub { font-size: clamp(7px, 2vw, 10px); }
  .pixel-flower-sm { width: 8px; height: 8px; }

  .view-banner {
    flex-direction: column;
    text-align: center;
    gap: 10px;
    padding: 12px;
  }
  .view-banner {
    flex-direction: column;
    padding: 12px;
  }
  .view-banner span {
    font-size: clamp(12px, 3vw, 16px);
    font-family: 'VT323', monospace;
    line-height: 1.3;
  }
  .view-banner .action-btn,
  .view-banner .action-btn-alt {
    font-size: 11px;
    padding: 8px 14px;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }

  .main-nav { gap: 6px; }
  .nav-link { font-size: 9px; padding: 8px 10px; }

  .share-prompt { padding: 12px 14px 10px; }
  .share-prompt__heading { font-size: 11px; }
  .share-btn { font-size: 16px; padding: 10px 16px; }

  .quick-actions .action-btn { font-size: 18px; padding: 10px 16px; }

  #p-contact-section h2 { font-size: 14px; }
  .place-section h2 { font-size: 14px; }
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.nav-link {
  font-family: var(--pixel-font);
  font-size: 11px;
  letter-spacing: 1px;
  text-decoration: none;
  color: var(--cream);
  background: var(--teal);
  border: 3px solid var(--cream);
  padding: 10px 14px;
  box-shadow: var(--shadow);
  transition: transform 0.05s ease;
}
.nav-link:hover:not(.disabled) {
  background: var(--yellow);
  color: var(--ink);
  transform: translateY(-2px);
}
.nav-link.active {
  background: var(--yellow);
  color: var(--ink);
}
.nav-link.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* ============ HUD frame (new) — wraps page content ============ */
.frame {
  max-width: 1100px;
  margin: 0 auto;
  border: 4px solid var(--cream);
  background: var(--teal);
  box-shadow: var(--shadow), inset 0 0 0 2px var(--teal-deep), inset 0 0 0 6px var(--cream);
  padding: 0;
  position: relative;
}
.frame::before, .frame::after {
  content: ""; position: absolute; width: 14px; height: 14px;
  background: var(--yellow); border: 2px solid var(--ink);
  z-index: 2;
}
.frame::before { top: -9px; left: -9px; }
.frame::after  { top: -9px; right: -9px; }
.frame .corner-bl,
.frame .corner-br {
  position: absolute; bottom: -9px; width: 14px; height: 14px;
  background: var(--yellow); border: 2px solid var(--ink); z-index: 2;
}
.frame .corner-bl { left: -9px; }
.frame .corner-br { right: -9px; }

.frame-wrap { padding: 16px 16px 32px; }

/* ============ Main content ============ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.hero {
  text-align: center;
  margin-bottom: 40px;
}
.hero h1 {
  font-family: var(--pixel-font);
  font-size: 28px;
  color: var(--yellow);
  margin: 0 0 16px;
  letter-spacing: 2px;
  text-shadow: 3px 3px 0 var(--ink);
}
.hero .lead {
  font-size: 26px;
  margin: 0;
  color: var(--cream);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--teal-deep);
  border: 3px solid var(--cream);
  box-shadow: inset 0 0 0 2px var(--teal-lite), var(--shadow);
  padding: 22px 24px;
  color: var(--cream);
}
.card h2 {
  font-family: var(--pixel-font);
  font-size: 13px;
  margin: 0 0 12px;
  color: var(--yellow);
  letter-spacing: 1px;
  line-height: 1.4;
  border-bottom: 2px dashed var(--teal-lite);
  padding-bottom: 10px;
}
.card p { margin: 0 0 16px; color: var(--cream); }

.btn {
  display: inline-block;
  font-family: var(--pixel-font);
  font-size: 11px;
  letter-spacing: 1px;
  text-decoration: none;
  color: var(--ink);
  background: var(--yellow);
  border: 3px solid var(--cream);
  padding: 10px 14px;
  box-shadow: var(--shadow);
}
.btn:hover {
  background: var(--orange);
  color: var(--ink);
}

/* ============ Footer ============ */
.site-footer {
  background: transparent;
  color: var(--cream);
  text-align: center;
  padding: 22px 24px 28px;
  border-top: 2px dashed var(--teal-lite);
  font-size: 18px;
  opacity: 0.75;
}

/* ============ FAQ-specific ============ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-item {
  border: 3px solid var(--cream);
  background: var(--teal-deep);
  box-shadow: var(--shadow);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 18px;
  font-family: var(--pixel-font);
  font-size: 12px;
  color: var(--ink);
  background: var(--yellow);
  border-bottom: 3px solid var(--cream);
  letter-spacing: 1px;
  line-height: 1.5;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ' [+]';
  color: var(--red-orange);
}
.faq-item[open] summary::after { content: ' [-]'; }
.faq-item[open] summary { background: var(--orange); }
.faq-answer { padding: 18px 20px; color: var(--cream); }
.faq-answer p { color: var(--cream); }

/* ============ Place listing page (directory viewer) ============ */
.place-page { max-width: 960px; }

.place-breadcrumb {
  font-family: var(--body-font);
  font-size: 18px;
  margin: 0 0 20px;
  color: var(--cream);
  opacity: 0.85;
}
.place-breadcrumb a { color: var(--yellow); text-decoration: underline; }
.place-breadcrumb a:hover { color: var(--orange); }

.place-hero {
  border: 3px solid var(--cream);
  box-shadow: var(--shadow);
  background: var(--teal-deep);
  padding: 22px 26px;
  margin-bottom: 28px;
}
.place-name {
  font-family: var(--pixel-font);
  font-size: 22px;
  letter-spacing: 2px;
  line-height: 1.3;
  color: var(--yellow);
  margin: 0 0 16px;
  text-shadow: 2px 2px 0 var(--ink);
}
.place-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.type-badge {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-family: var(--pixel-font);
  font-size: 10px;
  letter-spacing: 1.5px;
  background: var(--red-orange);
  color: var(--cream);
  padding: 6px 10px;
  border: 3px solid var(--cream);
  text-transform: uppercase;
}
.tag-pill {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-family: var(--pixel-font);
  font-size: 9px;
  letter-spacing: 1px;
  background: var(--cream);
  color: var(--ink);
  border: 3px solid var(--ink);
  padding: 6px 10px;
  text-transform: lowercase;
}
.tag-pill::before { content: '#'; color: var(--orange); margin-right: 2px; }
.place-tagline {
  font-style: italic;
  font-size: 22px;
  margin: 0;
  color: var(--cream);
}

/* ============ Photos: retro "choose-your-character" frame ============ */
.place-photos { margin-bottom: 28px; }

.photo-frame {
  background: var(--teal-deep);
  border: 3px solid var(--cream);
  box-shadow: 8px 8px 0 rgba(0,0,0,.5);
  position: relative;
}

.photo-frame__titlebar {
  background: var(--yellow);
  border-bottom: 3px solid var(--cream);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--pixel-font);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--ink);
}
.photo-frame__title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.title-arrow {
  color: var(--red-orange);
  font-size: 13px;
  line-height: 1;
}
.photo-count {
  background: var(--cream);
  border: 2px solid var(--ink);
  padding: 2px 6px;
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--ink);
}

.photo-frame__buttons {
  display: flex;
  gap: 4px;
}
.photo-frame__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 2px solid var(--ink);
  background: var(--cream);
  font-family: var(--pixel-font);
  font-size: 10px;
  line-height: 1;
  color: var(--ink);
}

.photo-frame__inner { padding: 14px; }

.photo-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 150px 150px;
  gap: 10px;
}

.photo-tile {
  position: relative;
  background: var(--orange);
  border: 3px solid var(--cream);
  box-shadow:
    inset 3px 3px 0 rgba(246, 239, 217, 0.35),
    inset -3px -3px 0 rgba(0, 0, 0, 0.45);
}

.photo-tile::after {
  content: attr(data-label);
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: var(--teal-deep);
  color: var(--yellow);
  padding: 3px 7px;
  font-family: var(--pixel-font);
  font-size: 9px;
  letter-spacing: 1px;
  border: 2px solid var(--cream);
  box-shadow: 2px 2px 0 rgba(0,0,0,.5);
}

.photo-tile::before {
  content: '';
  position: absolute;
  top: 6px;
  right: 6px;
  width: 10px;
  height: 10px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  transform: rotate(45deg);
  box-shadow: 1px 1px 0 rgba(0,0,0,.5);
}

.photo-main { grid-column: 1 / 2; grid-row: 1 / 3; background: var(--green); }
.photo-2    { background: var(--red-orange); }
.photo-3    { background: var(--yellow); }
.photo-4    { background: var(--teal); }
.photo-5    { background: var(--orange); }

.photo-note {
  font-size: 18px;
  font-style: italic;
  opacity: 0.7;
  margin: 14px 0 0;
  color: var(--cream);
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 28px;
}
.quick-actions .action-btn {
  font-size: 18px;
  padding: 18px 32px;
  letter-spacing: 3px;
  font-family: 'Press Start 2P', monospace;
  color: var(--ink);
}
#p-contact-section {
  text-align: center;
}
#p-contact-section h2 {
  border-bottom: none;
  text-align: center;
  font-size: 24px;
  letter-spacing: 4px;
  text-shadow: 3px 3px 0 var(--ink);
}
#p-contact-section .action-btn {
  font-family: 'Press Start 2P', monospace;
  font-size: 18px;
  padding: 18px 32px;
  letter-spacing: 3px;
}
.action-btn {
  display: inline-block;
  font-family: var(--pixel-font);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-decoration: none;
  color: var(--ink);
  background: var(--yellow);
  border: 3px solid var(--cream);
  padding: 12px 16px;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.action-btn:hover {
  background: var(--orange);
  border-color: var(--cream);
  color: var(--ink);
}
.action-btn-alt {
  background: var(--teal-deep);
  color: var(--cream);
}
.action-btn-alt:hover {
  background: var(--teal-lite);
  border-color: var(--yellow);
  color: var(--cream);
}
.action-btn.small {
  font-size: 10px;
  padding: 8px 12px;
}

.place-section {
  background: var(--teal-deep);
  border: 3px solid var(--cream);
  box-shadow: var(--shadow);
  padding: 22px 26px;
  margin-bottom: 24px;
  color: var(--cream);
}
.place-section h2 {
  font-family: var(--pixel-font);
  font-size: 18px;
  letter-spacing: 3px;
  color: var(--yellow);
  margin: 0 0 16px;
  border-bottom: 2px dashed var(--teal-lite);
  padding-bottom: 10px;
}
.place-section p {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.55;
  color: var(--cream);
}
.place-section p:last-child { margin-bottom: 0; }

.where-when-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.retro-map {
  display: block;
  position: relative;
  border: 3px solid var(--cream);
  background: var(--teal-deep);
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  height: 160px;
  box-shadow: 4px 4px 0 rgba(0,0,0,.5);
  transition: transform 0.08s ease;
}
.retro-map:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 rgba(0,0,0,.5); }
.retro-map:active { transform: translate(1px, 1px); box-shadow: 3px 3px 0 rgba(0,0,0,.5); }

.retro-map__svg {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.retro-map__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--teal-deep);
  color: var(--yellow);
  font-family: var(--pixel-font);
  font-size: 10px;
  letter-spacing: 2px;
  padding: 6px 8px;
  text-align: center;
  border-top: 2px solid var(--cream);
}
.address-block {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}
.address-line {
  font-size: 22px;
  margin: 0;
  line-height: 1.4;
  color: var(--cream);
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--body-font);
  font-size: 20px;
  color: var(--cream);
}
.hours-table th, .hours-table td {
  text-align: left;
  padding: 6px 10px;
  border-bottom: 2px dashed var(--teal-lite);
}
.hours-table th {
  font-family: var(--pixel-font);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--yellow);
  width: 80px;
}
.hours-table tr.closed td {
  color: var(--red-orange);
  font-style: italic;
}

.involve-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.involve-card {
  background: var(--teal);
  border: 3px solid var(--cream);
  padding: 16px 18px;
  color: var(--cream);
}
.involve-card h3 {
  font-family: var(--pixel-font);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--yellow);
  margin: 0 0 12px;
}
.involve-card p {
  font-size: 20px;
  margin: 0 0 14px;
  line-height: 1.5;
  color: var(--cream);
}

.event-list, .news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.event-list li {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 2px dashed var(--teal-lite);
  font-size: 19px;
  color: var(--cream);
}
.event-list li:last-child { border-bottom: none; }
.event-date {
  font-family: var(--pixel-font);
  font-size: 10px;
  color: var(--orange);
  letter-spacing: 1px;
}
.event-name { color: var(--cream); }
.event-link {
  font-family: var(--pixel-font);
  font-size: 9px;
  color: var(--yellow);
  text-decoration: none;
  letter-spacing: 1px;
}
.event-link:hover { color: var(--orange); }

.news-list li {
  padding: 6px 0;
  border-bottom: 2px dashed var(--teal-lite);
  font-size: 19px;
  color: var(--cream);
}
.news-list li:last-child { border-bottom: none; }
.news-date {
  font-family: var(--pixel-font);
  font-size: 10px;
  color: var(--green);
  letter-spacing: 1px;
  margin-right: 10px;
}

.place-footer-note {
  text-align: center;
  font-style: italic;
  font-size: 18px;
  opacity: 0.75;
  margin: 24px 0 0;
  color: var(--cream);
}
.place-footer-note a {
  color: var(--yellow);
  text-decoration: underline;
}
.place-footer-note a:hover { color: var(--orange); }

@media (max-width: 720px) {
  .photo-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 140px 140px 140px;
  }
  .photo-main { grid-column: 1 / 3; grid-row: 1 / 2; }
  .where-when-grid { grid-template-columns: 1fr; }
  .involve-grid { grid-template-columns: 1fr; }
}

/* ============ Mock test page ============ */
.mock-page { max-width: 1400px; }

/* ============ Saved test entries panel ============ */
.saved-entries {
  margin: 0 0 24px;
  padding: 16px 18px 18px;
  border: 3px solid var(--cream);
  background: var(--teal-deep);
  box-shadow: var(--shadow);
}
.saved-entries h2 {
  font-family: var(--pixel-font);
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--yellow);
  margin: 0 0 4px;
}
.saved-entries-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.saved-entry {
  background: var(--teal);
  border: 3px solid var(--cream);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.saved-entry__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.saved-entry__name {
  font-family: var(--pixel-font);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--yellow);
  text-decoration: none;
  word-break: break-word;
}
.saved-entry__name:hover { color: var(--orange); }
.saved-entry__rm {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--red-orange);
  color: var(--cream);
  border: 2px solid var(--cream);
  font-family: var(--pixel-font);
  font-size: 11px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.saved-entry__rm:hover { background: var(--ink); }
.saved-entry__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  align-items: center;
}
.saved-entry__meta .type-badge { font-size: 8px; padding: 4px 6px; }
.saved-entry__meta .tag-pill   { font-size: 8px; padding: 4px 6px; }
.saved-more {
  font-family: var(--pixel-font);
  font-size: 9px;
  color: var(--cream);
  opacity: 0.7;
}
body.viewing-mode .saved-entries { display: none; }

.view-banner {
  position: sticky;
  top: 8px;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background: var(--yellow);
  border: 3px solid var(--cream);
  box-shadow: 4px 4px 0 rgba(0,0,0,.5);
  padding: 12px 16px;
  margin: 0 0 24px;
  text-align: center;
  font-family: var(--body-font);
  font-size: 20px;
  color: var(--ink);
}
.view-banner[hidden] { display: none !important; }
.saved-entries[hidden] { display: none !important; }
body.viewing-mode .mock-intro,
body.viewing-mode .mock-form { display: none !important; }
body.viewing-mode .mock-layout { grid-template-columns: 1fr; }

body.viewing-mode .photo-tile--filled { cursor: default; }
body.viewing-mode .photo-tile--filled:hover { outline: none; }
body.viewing-mode .mock-preview {
  position: static;
  max-height: none;
  overflow: visible;
  border: none;
  background: transparent;
  padding: 0;
  max-width: 960px;
  margin: 0 auto;
}
body.viewing-mode .preview-label { display: none; }

body.viewing-mode .place-page-preview { font-size: 22px; }
body.viewing-mode .place-page-preview .place-name      { font-size: 22px; letter-spacing: 2px; }
body.viewing-mode .place-page-preview .place-tagline   { font-size: 22px; }
body.viewing-mode .place-tagline.is-placeholder        { display: none; }
body.viewing-mode .place-page-preview .place-section h2{ font-size: 14px; }
body.viewing-mode .place-page-preview .photo-frame__title { font-size: 11px; }
body.viewing-mode .place-page-preview .photo-grid      { grid-template-rows: 150px 150px; }
body.viewing-mode .place-page-preview .retro-map       { height: 180px; }
body.viewing-mode .place-page-preview .involve-card h3 { font-size: 11px; }
body.viewing-mode .place-page-preview .involve-card p,
body.viewing-mode .place-page-preview .news-list li,
body.viewing-mode .place-page-preview .event-list li   { font-size: 20px; }
body.viewing-mode .place-page-preview .place-section p { font-size: 22px; line-height: 1.55; }
body.viewing-mode .place-page-preview .address-line    { font-size: 22px; }
body.viewing-mode .place-page-preview .hours-table     { font-size: 20px; }
.mock-intro { margin-bottom: 28px; }
.mock-intro h1 {
  font-family: var(--pixel-font);
  font-size: 18px;
  letter-spacing: 2px;
  margin: 0 0 12px;
  color: var(--yellow);
  text-shadow: 2px 2px 0 var(--ink);
}
.mock-intro p { color: var(--cream); }

.login-gate {
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--teal-deep);
  padding: 20px;
}
.login-gate:not([hidden]) {
  display: flex;
}
.login-box {
  background: var(--teal);
  border: 4px solid var(--cream);
  padding: 30px 28px;
  max-width: 400px;
  width: 100%;
  box-shadow: 6px 6px 0 rgba(0,0,0,.4);
  text-align: center;
}
.login-box h1 {
  font-family: var(--pixel-font);
  font-size: 24px;
  color: var(--yellow);
  margin: 0 0 12px;
  text-shadow: 2px 2px 0 var(--ink);
}
.login-box p { color: var(--cream); margin: 0 0 16px; }
.login-box label {
  display: block;
  text-align: left;
  color: var(--cream);
  margin-bottom: 12px;
  font-family: 'VT323', monospace;
  font-size: 18px;
}
.login-box input {
  width: 100%;
  padding: 10px;
  margin-top: 4px;
  font-size: 16px;
  box-sizing: border-box;
}
.login-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}
.login-error {
  color: var(--red-orange);
  font-family: var(--pixel-font);
  font-size: 10px;
  min-height: 1.2em;
  margin: 8px 0 0;
}

.share-prompt {
  background: var(--teal-deep);
  border: 3px solid var(--cream);
  padding: 18px 20px 14px;
  margin-bottom: 20px;
  text-align: center;
  box-shadow: var(--shadow);
}
.share-prompt__heading {
  font-family: var(--pixel-font);
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--yellow);
  margin: 0 0 14px;
  text-shadow: 2px 2px 0 var(--ink);
}
.share-prompt__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}
.share-btn {
  font-size: 20px;
  font-family: 'VT323', monospace;
  padding: 14px 24px;
  letter-spacing: 2px;
}
.share-prompt__hint {
  font-size: 15px;
  color: var(--cream);
  opacity: 0.8;
  margin: 0;
}
.mock-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: flex-start;
}
.mock-form  { min-width: 0; }
.mock-preview {
  position: sticky;
  top: 16px;
  min-width: 0;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  border: 3px dashed var(--yellow);
  padding: 12px;
  background: rgba(0,0,0,0.25);
}
.preview-label {
  font-family: var(--pixel-font);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--yellow);
  text-align: center;
  margin-bottom: 12px;
}
.place-page-preview { font-size: 18px; }
.place-page-preview .place-name { font-size: 16px; }
.place-page-preview .place-section h2,
.place-page-preview .photo-frame__title { font-size: 11px; }
.place-page-preview .photo-grid { grid-template-rows: 100px 100px; }
.place-page-preview .map-placeholder { height: 100px; }

.place-page-preview .photo-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.place-page-preview .photo-hero {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 320px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--teal-deep);
  cursor: pointer;
}
body.viewing-mode .place-page-preview .photo-hero {
  max-height: 480px;
  cursor: zoom-in;
}
.place-page-preview .photo-thumb-strip {
  display: flex;
  flex-direction: row;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--cream) transparent;
  padding-bottom: 4px;
}
.place-page-preview .photo-thumb-strip::-webkit-scrollbar { height: 6px; }
.place-page-preview .photo-thumb-strip::-webkit-scrollbar-thumb { background: var(--cream); }
.place-page-preview .photo-thumb {
  flex: 0 0 60px;
  height: 60px;
  background-size: cover;
  background-position: center;
  background-color: var(--orange);
  border: 3px solid var(--cream);
  cursor: pointer;
  scroll-snap-align: start;
  padding: 0;
  box-shadow: inset 2px 2px 0 rgba(246,239,217,0.35), inset -2px -2px 0 rgba(0,0,0,0.45);
}
.place-page-preview .photo-thumb.is-active,
.place-page-preview .photo-thumb:hover {
  outline: 3px solid var(--yellow);
  outline-offset: -3px;
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(7, 37, 37, 0.95);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.photo-lightbox[hidden] { display: none; }
.photo-lightbox__image {
  width: 100%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.photo-lightbox__close,
.photo-lightbox__nav {
  position: absolute;
  background: var(--teal-deep);
  color: var(--cream);
  border: 3px solid var(--cream);
  cursor: pointer;
  font-family: 'Press Start 2P', monospace;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-lightbox__close {
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  font-size: 22px;
}
.photo-lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 64px;
  font-size: 16px;
}
.photo-lightbox__nav--prev { left: 16px; }
.photo-lightbox__nav--next { right: 16px; }
.photo-lightbox__count {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--cream);
  background: var(--teal-deep);
  border: 3px solid var(--cream);
  padding: 6px 12px;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  letter-spacing: 1px;
}
body.lightbox-open { overflow: hidden; }

@media (max-width: 980px) {
  .mock-layout { grid-template-columns: 1fr; }
  .mock-preview { position: static; max-height: none; }
}

/* ============ Form blocks ============
   Form INPUTS stay light (cream bg, dark text) for readability of typed text.
   The surrounding form-block panel is dark with cream border.
   =================================== */
.form-block {
  border: 3px solid var(--cream);
  background: var(--teal-deep);
  box-shadow: var(--shadow);
  padding: 18px 22px;
  margin: 0 0 24px;
}
.form-block legend {
  font-family: var(--pixel-font);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--yellow);
  background: var(--teal-deep);
  padding: 0 8px;
}
.form-block label {
  display: block;
  margin: 0 0 14px;
  font-size: 18px;
  font-family: var(--body-font);
  color: var(--cream);
}
.form-block label.block-mt { margin-top: 18px; }
.form-block input[type="text"],
.form-block input[type="tel"],
.form-block input[type="email"],
.form-block input[type="url"],
.form-block input[type="time"],
.form-block input[type="file"],
.form-block select,
.form-block textarea {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: none;
  border-radius: 0;

  display: block;
  width: 100%;
  margin-top: 6px;
  font-family: var(--body-font);
  font-size: 20px;
  padding: 10px 12px;

  border-style: solid;
  border-color: var(--cream);
  border-top-width: 3px;
  border-right-width: 3px;
  border-bottom-width: 3px;
  border-left-width: 3px;

  background: var(--cream);
  color: var(--ink);
  box-sizing: border-box;
}
.form-block input:focus,
.form-block select:focus,
.form-block textarea:focus {
  border-color: var(--yellow);
  background: #fff;
}
.form-block textarea {
  font-family: var(--body-font);
  resize: vertical;
  line-height: 1.5;
}
.form-block input[type="file"] {
  font-family: var(--body-font);
  font-size: 18px;
}
.form-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
}
.form-row label { margin-bottom: 0; }
.form-hint {
  font-size: 16px;
  font-style: italic;
  margin: 4px 0 8px;
  opacity: 0.8;
  color: var(--cream);
}

.tag-input-row {
  display: flex;
  gap: 8px;
  margin: 8px 0 8px;
}
.tag-input-row input { flex: 1; }
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 26px;
  margin-bottom: 6px;
}
.tag-chip {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-family: var(--pixel-font);
  font-size: 9px;
  letter-spacing: 1px;
  background: var(--yellow);
  color: var(--ink);
  border: 3px solid var(--ink);
  padding: 5px 8px;
  cursor: pointer;
}
.tag-chip:hover {
  background: var(--red-orange);
  color: var(--cream);
}
.tag-chip::before { content: '#'; color: var(--orange); margin-right: 2px; }
.tag-chip:hover::before { color: var(--cream); }

.hours-form { display: grid; gap: 6px; }
.hours-day-block { display: grid; gap: 2px; padding-bottom: 6px; border-bottom: 1px dashed var(--teal-lite); }
.hours-day-block:last-child { border-bottom: none; }
.hours-row {
  display: grid;
  grid-template-columns: 50px 1fr auto 1fr auto;
  gap: 8px;
  align-items: center;
  font-size: 18px;
}
.hours-break-toggle-lbl {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body-font);
  font-size: 16px;
  color: var(--cream);
  opacity: 0.85;
  padding: 2px 0 2px 50px;
  margin: 0;
}
.hours-break-toggle-lbl input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; }
.hours-second-row {
  display: grid;
  grid-template-columns: 50px 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  font-size: 16px;
  padding: 2px 0 4px;
}
.hours-second-row .hours-second-label {
  grid-column: 1 / 2;
  font-family: var(--pixel-font);
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--yellow);
  white-space: normal;
  line-height: 1.3;
}
.hours-second-row input[type="time"] { padding: 6px 8px; }

/* Character-bio block (People profile) — RPG-style character card with the
   primary photo floated to the left, name/title/tagline/bio text wrapping
   around it like a magazine layout, and text flowing under the photo when
   the bio is long. Upper-right corner holds an optional role indicator for
   site-team members (creator / ambassador / photographer). */
.character-bio {
  background: var(--teal-deep);
  border: 3px solid var(--cream);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  margin: 0 0 24px;
  position: relative;
}

/* Role indicator (creator / ambassador / photographer) — hidden for regular users.
   Floats to the upper-right of the character-bio block so name + bio text wraps
   AROUND it instead of being covered. Color-coded per role. Creator variant
   contains the 5-heart pixel row stacked under the CREATOR label. */
.role-indicator {
  float: right;
  margin: 0 0 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 8px;
  background: var(--teal-deep);
  border: 2px solid var(--yellow);
  font-family: var(--pixel-font);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--yellow);
  text-transform: uppercase;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.4);
}
.role-indicator[hidden] { display: none !important; }
.role-indicator--creator      { border-color: var(--yellow);     color: var(--yellow); }
.role-indicator--ambassador   { border-color: var(--green);      color: var(--green); }
.role-indicator--photographer { border-color: #3c7ab8;           color: #3c7ab8; }
.role-indicator__hearts {
  display: flex;
  gap: 3px;
}
.role-indicator__hearts .heart-pixel {
  width: 18px;
  height: 16px;
}
.character-bio::after { content: ''; display: block; clear: both; }
.character-bio__photo {
  float: left;
  width: 220px;
  margin: 0 20px 12px 0;
}
.character-bio__photo:empty { display: none; }
.character-bio .place-name { margin-top: 0; }
.character-bio .where-label {
  font-family: var(--pixel-font);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--yellow);
  text-transform: uppercase;
  margin-right: 6px;
}
.character-bio .cb-about-heading {
  font-family: var(--pixel-font);
  font-size: 14px;
  color: var(--yellow);
  letter-spacing: 2px;
  margin: 16px 0 10px;
  border-bottom: 2px dashed var(--teal-lite);
  padding-bottom: 8px;
}
@media (max-width: 720px) {
  .character-bio__photo {
    float: none;
    width: 100%;
    max-width: 240px;
    margin: 0 auto 14px;
  }
}

/* Primary-photo wrapper (square photo + heart bar retainer below).
   When used inside .character-bio__photo, fills the floated column. */
.photo-primary-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.photo-primary {
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  background-color: var(--teal-deep);
  border: 3px solid var(--cream);
  box-shadow: 4px 4px 0 rgba(0,0,0,0.45);
  cursor: pointer;
  transition: outline 0.05s ease;
}
.photo-primary:hover { outline: 3px solid var(--yellow); outline-offset: -3px; }
/* Pixel-art heart shared rule — sized by context (currently used only inside
   .role-indicator__hearts on the CREATOR badge). */
.heart-pixel {
  display: block;
  width: 28px;
  height: 26px;
  image-rendering: pixelated;
}

/* Horizontal scroll strip of secondary photos beneath the primary */
.photo-strip {
  display: flex;
  flex-direction: row;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--cream) transparent;
  padding-bottom: 6px;
  max-width: 320px;
  margin: 0 auto;
}
.photo-strip::-webkit-scrollbar { height: 6px; }
.photo-strip::-webkit-scrollbar-thumb { background: var(--cream); }
.photo-thumb {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  background-size: cover;
  background-position: center;
  background-color: var(--teal-deep);
  border: 2px solid var(--cream);
  box-shadow: 2px 2px 0 rgba(0,0,0,0.4);
  cursor: pointer;
  scroll-snap-align: start;
  position: relative;
}
.photo-thumb:hover { outline: 2px solid var(--yellow); outline-offset: -2px; }
/* Small × button on each thumbnail — visible in edit mode for removing photos.
   Hidden in viewing mode so visitors can't accidentally tap to delete. */
.photo-thumb__rm {
  position: absolute;
  top: 2px; right: 2px;
  width: 18px; height: 18px;
  background: var(--red-orange);
  color: var(--cream);
  border: 2px solid var(--cream);
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  line-height: 1;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.photo-thumb__rm:hover { background: var(--ink); }
body.viewing-mode .photo-thumb__rm { display: none; }

/* In viewing mode: primary photo is non-interactive (no remove), but thumbnails
   stay clickable so visitors can open the carousel lightbox. */
body.viewing-mode .photo-primary-wrap,
body.viewing-mode .photo-strip { max-width: 480px; }
body.viewing-mode .photo-primary {
  cursor: default;
  pointer-events: none;
}
body.viewing-mode .photo-primary:hover { outline: none; }

/* "What's new with me" feed (People preview) — clickable items: artist site,
   upcoming events, AugustaGo cross-links. Each item gets its own bordered card. */
.whats-new-item {
  border: 3px solid var(--cream);
  background: var(--teal-deep);
  padding: 12px 16px 14px;
  margin: 0 0 12px;
  box-shadow: var(--shadow);
}
.whats-new-item:last-child { margin-bottom: 0; }
.whats-new-item__title {
  font-family: var(--pixel-font);
  font-size: 12px;
  color: var(--yellow);
  letter-spacing: 1px;
  margin: 0 0 6px;
  line-height: 1.4;
}
.whats-new-item__title a {
  color: var(--yellow);
  text-decoration: underline;
}
.whats-new-item__title a:hover { color: var(--orange); }
.whats-new-item__desc {
  margin: 0;
  font-size: 18px;
  color: var(--cream);
}

/* Donation-project cards on the People preview */
.donation-project {
  border: 3px solid var(--cream);
  background: var(--teal-deep);
  padding: 14px 16px 16px;
  margin: 0 0 14px;
  box-shadow: var(--shadow);
}
.donation-project:last-child { margin-bottom: 0; }
.donation-project h3 {
  font-family: var(--pixel-font);
  font-size: 12px;
  color: var(--yellow);
  margin: 0 0 8px;
  letter-spacing: 1px;
}
.donation-project p { margin: 0 0 10px; }
.donation-project p:last-child { margin-bottom: 0; }
.donation-project a { color: var(--yellow); text-decoration: underline; }
.donation-project a:hover { color: var(--orange); }
.donation-note {
  font-style: italic;
  font-size: 17px;
  color: var(--cream);
  opacity: 0.85;
  padding: 6px 10px;
  border-left: 3px solid var(--yellow);
}
.donation-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.donation-methods .action-btn {
  font-family: 'VT323', monospace;
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
}

/* People profile: title line under the display name */
.person-title {
  font-family: var(--pixel-font);
  font-size: 11px;
  color: var(--yellow);
  letter-spacing: 1px;
  margin: 0 0 10px;
  text-transform: uppercase;
}
.person-title:empty { display: none; }

/* Service-time windows (lunch / dinner / happy hour) shown under the hours table */
.service-times {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 2px dashed var(--teal-lite);
}
.service-times[hidden] { display: none !important; }
.service-times h3 {
  font-family: var(--pixel-font);
  font-size: 11px;
  color: var(--yellow);
  margin: 0 0 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.service-times ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.service-times li {
  font-size: 19px;
  margin: 0 0 4px;
  color: var(--cream);
  line-height: 1.4;
}
.service-times .sw-lbl {
  color: var(--yellow);
  font-weight: bold;
}
.hours-row .hours-day {
  font-family: var(--pixel-font);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--yellow);
}
.hours-row .hours-dash { font-size: 22px; color: var(--cream); }
.hours-row input[type="time"] { width: 100%; padding: 6px 8px; }
.hours-closed-lbl {
  display: flex !important;
  align-items: center;
  gap: 6px;
  margin: 0 !important;
  font-size: 15px !important;
  color: var(--cream);
}
.hours-closed-lbl input { margin: 0; }

.row-pair {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 8px;
  margin-bottom: 8px;
}
.row-pair input { width: 100%; }
.row-rm {
  background: var(--red-orange);
  color: var(--cream);
  border: 3px solid var(--cream);
  font-family: var(--pixel-font);
  font-size: 12px;
  cursor: pointer;
  padding: 0 10px;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}
.row-rm:hover { background: var(--ink); }

.event-card {
  border: 3px solid var(--cream);
  background: var(--teal);
  margin: 0 0 16px;
  box-shadow: 4px 4px 0 rgba(0,0,0,.5);
}
.event-card__head {
  background: var(--orange);
  border-bottom: 3px solid var(--cream);
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.event-card__num {
  font-family: var(--pixel-font);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--ink);
}
.event-card__body {
  padding: 14px 16px 8px;
}
.event-card__body label { margin-bottom: 12px; }
.event-flyer-thumb {
  margin-top: 8px;
  border: 3px solid var(--cream);
  display: inline-block;
  max-width: 200px;
}
.event-flyer-thumb img {
  display: block;
  width: 100%;
  height: auto;
}

.event-list .event-item {
  display: block;
  padding: 0;
  border-bottom: 2px dashed var(--teal-lite);
}
.event-list .event-item:last-child { border-bottom: none; }

.event-item__head {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 2px;
  align-items: start;
  width: 100%;
  text-align: left;
  padding: 10px 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  color: var(--cream);
  -webkit-appearance: none;
  appearance: none;
}
.event-item__head .event-date {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  word-break: break-word;
  line-height: 1.3;
}
.event-item__head .event-name {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  word-break: break-word;
  line-height: 1.4;
}
.event-item__head .event-toggle {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  align-self: center;
}
.event-item__head:hover { background: rgba(244, 197, 66, 0.12); }
.event-item__head .event-toggle {
  font-family: var(--pixel-font);
  font-size: 11px;
  color: var(--yellow);
}

.event-item__details {
  display: none;
  padding: 8px 12px 14px;
  background: rgba(244, 197, 66, 0.10);
  border-top: 2px solid var(--cream);
}
.event-item.is-open .event-item__details { display: block; }
.event-time {
  font-family: var(--pixel-font);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--green);
  margin: 0 0 8px;
}
.event-flyer {
  display: block;
  max-width: 100%;
  border: 3px solid var(--cream);
  margin: 0 0 10px;
}
.event-desc {
  margin: 0 0 12px;
  font-size: 19px;
  line-height: 1.5;
  color: var(--cream);
}
.event-item__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.photo-tile--filled {
  background-size: cover;
  background-position: center;
  cursor: pointer;
}
.photo-tile--filled:hover {
  outline: 3px solid var(--yellow);
  outline-offset: -2px;
}

.empty-line {
  font-style: italic;
  opacity: 0.5;
  text-align: center;
  margin: 12px 0;
  color: var(--cream);
}
.photo-empty {
  font-style: italic;
  opacity: 0.5;
  text-align: center;
  margin: 12px 0;
  color: var(--cream);
}

.quick-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.quick-socials[hidden] { display: none !important; }
.social-pill {
  display: inline-block;
  padding: 7px 12px;
  background: var(--teal-deep);
  color: var(--cream);
  border: 3px solid var(--cream);
  text-decoration: none;
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  letter-spacing: 1px;
  box-shadow: 2px 2px 0 rgba(0,0,0,.5);
}
.social-pill:hover {
  background: var(--yellow);
  color: var(--ink);
}

.social-form .row-pair { gap: 8px; }
.social-form .sc-platform {
  flex: 0 0 auto;
  min-width: 130px;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
}
.social-form .sc-url { flex: 1 1 auto; }

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  margin-top: 4px;
  color: var(--cream);
}
.checkbox-label input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; }
.checkbox-label span { font-family: 'VT323', monospace; font-size: 18px; color: var(--cream); }
.event-free-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 6px;
  background: var(--green);
  color: var(--ink);
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  letter-spacing: 1px;
  border: 2px solid var(--cream);
  vertical-align: middle;
}

.service-form .service-card {
  border: 3px solid var(--cream);
  background: var(--teal);
  padding: 10px 12px;
  margin-bottom: 12px;
}
.service-form .service-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.service-form .service-card__num {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: var(--yellow);
  letter-spacing: 1px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.service-pill {
  border: 3px solid var(--cream);
  background: var(--teal-deep);
  padding: 14px 14px 16px;
  box-shadow: 4px 4px 0 rgba(0,0,0,.5);
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--cream);
}
.service-pill h3 {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  margin: 0;
  color: var(--yellow);
  letter-spacing: 1px;
  line-height: 1.4;
}
.service-pill .service-provider {
  margin: 0;
  font-size: 17px;
  font-style: italic;
  color: var(--cream);
  opacity: 0.85;
}
.service-pill__actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 6px;
}
.service-pill__actions .action-btn { align-self: flex-start; }

.affil-form .affil-card {
  border: 3px solid var(--cream);
  background: var(--teal);
  padding: 10px 12px;
  margin-bottom: 12px;
}
.affil-form .affil-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.affil-form .affil-card__num {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: var(--yellow);
  letter-spacing: 1px;
}
.affil-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.affil-list li {
  font-family: 'VT323', monospace;
  font-size: 20px;
  line-height: 1.4;
  color: var(--cream);
}
.affil-list .affil-kind {
  display: inline-block;
  padding: 2px 8px;
  margin-right: 8px;
  background: var(--yellow);
  color: var(--ink);
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  letter-spacing: 1px;
  border: 2px solid var(--cream);
  box-shadow: 2px 2px 0 rgba(0,0,0,.5);
  vertical-align: middle;
}
.affil-list a {
  color: var(--yellow);
  text-decoration: underline;
}
.affil-list a:hover {
  color: var(--orange);
}

.saved-search {
  width: 100%;
  margin: 8px 0 16px;
  padding: 10px 12px;
  font-family: 'VT323', monospace;
  font-size: 18px;
  border: 3px solid var(--cream);
  background: var(--cream);
  color: var(--ink);
  box-shadow: inset 2px 2px 0 rgba(0,0,0,0.18);
}
.saved-search::placeholder { color: var(--ink); opacity: 0.5; }

.saved-entry__buttons {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.saved-entry__edit {
  background: var(--cream);
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 4px 8px;
  cursor: pointer;
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  letter-spacing: 1px;
  box-shadow: 2px 2px 0 rgba(0,0,0,.5);
}
.saved-entry__edit:hover { background: var(--yellow); }
.saved-entry.is-editing {
  outline: 3px solid var(--yellow);
  outline-offset: -3px;
}

.hidden { display: none !important; }

/* ============ Email-contacts panel (revealed by the ✉ Email top button) ============ */
.emails-panel {
  margin: 12px 0 24px;
  padding: 14px 18px 16px;
  border: 3px solid var(--cream);
  background: var(--teal-deep);
  box-shadow: var(--shadow);
}
.emails-panel[hidden] { display: none !important; }
.emails-panel h3 {
  font-family: var(--pixel-font);
  font-size: 11px;
  color: var(--yellow);
  letter-spacing: 1px;
  margin: 0 0 10px;
  text-transform: uppercase;
}
.emails-panel .email-entry {
  margin: 0 0 14px;
  padding: 0 0 12px;
  border-bottom: 2px dashed var(--teal-lite);
}
.emails-panel .email-entry:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.emails-panel .email-purpose {
  margin: 0 0 6px;
  font-size: 19px;
  color: var(--cream);
}
.emails-panel .email-person {
  margin: 0 0 8px;
  font-style: italic;
  font-size: 18px;
  color: var(--cream);
  opacity: 0.85;
}
.emails-panel .email-entry .action-btn {
  font-family: 'VT323', monospace;
  font-size: 17px;
  letter-spacing: 0;
  text-transform: none;
}

/* ============ Staff list on the place preview ============ */
.staff-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.staff-list li {
  padding: 10px 0;
  border-bottom: 2px dashed var(--teal-lite);
}
.staff-list li:last-child { border-bottom: none; }
.staff-name {
  margin: 0 0 4px;
  font-size: 21px;
  color: var(--cream);
}
.staff-name strong { color: var(--yellow); }
.staff-contact,
.staff-profile-link {
  margin: 2px 0 0;
  font-size: 18px;
}
.staff-contact a,
.staff-profile-link a {
  color: var(--yellow);
  text-decoration: underline;
}
.staff-contact a:hover,
.staff-profile-link a:hover { color: var(--orange); }
.staff-profile-pending {
  font-size: 16px;
  font-style: italic;
  opacity: 0.7;
  color: var(--cream);
}
/* Owner sees "Link pending"; visitors do not — affiliation name still renders. */
body.viewing-mode .staff-profile-link { display: none; }

/* Tags are stored on the profile and used for search, but visitors never see
   them as chips — they're visual clutter for someone who didn't write them.
   The owner still sees their tags in the form section where they enter them;
   the preview reflects what a visitor sees, so tags are hidden there too. */
#p-tags { display: none; }

/* Each support-me entry stacks a small pixel treasure chest above its button.
   inline-flex + align-items: center handles the chest/button centering. */
.support-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.pixel-chest, .pixel-star {
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.pixel-chest {
  width: 44px;
  height: 33px;
}
.pixel-star {
  width: 40px;
  height: 40px;
}
#p-donations-methods {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 18px;
  align-items: flex-start;
}
/* The info-link button sits in a <p>; text-align centers the inline-flex stack. */
#p-donations-section { text-align: center; }
#p-donations-info { margin-bottom: 16px; text-align: center; }
/* Inside Support me, .donation-methods .action-btn forces VT323 — bring the
   platform-name buttons back to the base .action-btn font so they read as
   buttons. Same specificity as the override; this rule comes later in the
   cascade, which is what makes it win. */
.support-stack .action-btn {
  font-family: var(--pixel-font);
  font-size: 10px;
  letter-spacing: 1.5px;
  padding: 8px 12px;
}
#p-donations-info .support-stack {
  gap: 10px;
}
#p-donations-info .action-btn {
  font-size: 14px;
  padding: 12px 22px;
  letter-spacing: 2px;
}
#p-donations-info .pixel-star {
  width: 52px;
  height: 52px;
}

/* Payment-info chip — used when a payment method has no openable URL (Zelle,
   bare handle on "Other"). Looks distinct from the clickable .action-btn so
   visitors don't try to click and get nothing. */
.payment-info-chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--pixel-font);
  font-size: 10px;
  letter-spacing: 1px;
  padding: 6px 10px;
  background: transparent;
  color: var(--cream);
  border: 2px dashed var(--cream);
  cursor: default;
  user-select: text;
}

/* Offering description expand/collapse */
.offering-desc { margin: 0 0 8px; }
.offering-desc__toggle {
  margin-top: 6px;
  background: transparent;
  border: 1px dashed var(--cream);
  color: var(--cream);
  padding: 4px 10px;
  font-family: var(--pixel-font);
  font-size: 10px;
  letter-spacing: 1px;
  cursor: pointer;
}
.offering-desc__toggle:hover { border-style: solid; color: var(--yellow); }

/* Tag list expand/collapse — top 3 visible, rest hidden behind a +N more chip.
   The full list always renders in the DOM (helps search), the toggle only
   affects visual clutter. */
.place-tags[data-state="collapsed"] .tag-pill--extra { display: none; }
.tag-more-toggle {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-family: var(--pixel-font);
  font-size: 9px;
  letter-spacing: 1px;
  background: transparent;
  color: var(--cream);
  border: 3px dashed var(--cream);
  padding: 6px 10px;
  cursor: pointer;
  text-transform: lowercase;
}
.tag-more-toggle:hover { border-style: solid; color: var(--yellow); }
