/* Timeline + photo gallery additions; reuses the existing palette and .timeline styles */
.events-timeline { background: var(--off-white); }
.events-timeline h2 { margin: 0.65rem 0 2rem; color: var(--navy); }
.event-timeline .timeline-item { grid-template-columns: 12.5rem 1fr; gap: 1.5rem; }
.event-timeline .tbc { display:inline-block; margin-left:.5rem; padding:.05rem .45rem; font-size:.72rem; font-weight:600;
  text-transform:uppercase; letter-spacing:.06em; color:var(--burgundy); border:1px solid var(--burgundy); border-radius:var(--radius); }
.event-timeline h4 { margin: 0; font-family: var(--font-display); font-size: 1.2rem; color: var(--navy); }
.photos { background: #fff; }
.photos h2 { margin: 0.65rem 0 2rem; color: var(--navy); }
.photos-inner { display: grid; grid-template-columns: minmax(0, 360px) 1fr; gap: 2.5rem; align-items: start; }
.upload-form { display: grid; gap: 1rem; padding: 1.5rem; background: var(--off-white); border: 1px solid var(--border); border-radius: var(--radius); }
.upload-form h3 { margin: 0; color: var(--navy); }
.upload-form label { display: grid; gap: .35rem; font-weight: 500; font-size: .95rem; }
.upload-form input[type=text], .upload-form textarea, .upload-form input[type=file] {
  width: 100%; min-width: 0;
  font: inherit; padding: .6rem .7rem; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; color: var(--ink); }
.form-status { margin: 0; min-height: 1.4em; font-weight: 500; color: var(--burgundy); }
.form-note { margin: 0; font-size: .85rem; color: var(--muted); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.photo-grid figure { margin: 0; background: var(--off-white); border: 1px solid var(--border); }
.photo-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.photo-grid figcaption { padding: .6rem .75rem; font-size: .9rem; }
.photo-grid figcaption strong { display: block; color: var(--navy); }
.photo-empty { grid-column: 1 / -1; margin: 0; color: var(--muted); }
@media (max-width: 760px) { .photos-inner { grid-template-columns: 1fr; } .event-timeline .timeline-item { grid-template-columns: 1fr; gap: .25rem; } }

/* Contrast: gold kicker labels on light backgrounds only (>= 4.5:1). Dark sections keep the original gold. */
:root { --gold-text: #7d5308; }
.celebration .section-kicker,
.five-k .section-kicker,
.events-timeline .section-kicker,
.photos .section-kicker,
.gallery .section-kicker { color: var(--gold-text); }

/* Gallery cards link to the full photo */
.photo-grid a { display: block; color: inherit; text-decoration: none; }
.photo-grid a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.photo-empty small { display: block; margin-top: .35rem; font-size: .9rem; }

/* Compact phone header with larger tap targets */
@media (max-width: 720px) {
  .site-header .header-inner { gap: .1rem; padding: .45rem 0 0; min-height: 0; }
  .site-header .brand { font-size: 1rem; }
  .site-header .btn { display: none; } /* hero already has "Add to calendar" */
  .site-nav {
    gap: 0; justify-content: flex-start; overflow-x: auto; scrollbar-width: none;
    margin-inline: -.75rem; width: calc(100% + 1.5rem);
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .75rem; white-space: nowrap; }
  .upload-form input[type=text], .upload-form textarea { font-size: 16px; } /* prevents iOS zoom on focus */
  .upload-form input[type=file] { min-height: 44px; }
}

/* Keep anchored sections clear of the sticky header */
main section[id] { scroll-margin-top: 5rem; }
