/* An event's own page (services/eventPages.js), in design tokens v2 (/tokens-v2.css, redesign 2026-10-05) with the
   shared header, footer and buttons (/site-v2.css): the flyer first, then what, when and where. A page with a flyer
   takes its background from the flyer's color (body.is-tinted). Two columns from tablet width, one on phones. */

/* The flyer beside the details */
.event { display: grid; gap: 24px; padding-block: 8px 48px; }
/* A one-column grid's column is as wide as its widest unbreakable child (a file field, a row of buttons) unless it may
   shrink, which pushed the details 24px off a phone's screen. Every one-column grid here may shrink, and so may file
   fields. */
.event, .flyer-col, .details, .facts, .block, .comments, .photos, .comment-form, .photo-form { grid-template-columns: minmax(0, 1fr); }
.event-page input[type="file"] { max-width: 100%; }
@media (min-width: 860px) {
  .event { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 48px; align-items: start; padding-block: 24px 72px; }
  .flyer-col { position: sticky; top: 84px; }
}
.flyer-col { display: grid; gap: 12px; }
.flyer { display: grid; gap: 10px; }
.flyer > a { display: block; }
/* The whole flyer at its own shape: as wide as the column, or as tall as the screen allows, never cropped. */
.flyer img { display: block; width: auto; max-width: 100%; height: auto; max-height: 82vh; margin-inline: auto; border-radius: var(--radius-image); background: var(--fill); box-shadow: var(--shadow-image); }
.flyer figcaption { color: var(--ink-3); font-size: 14px; }
.credit { padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 14px; }
.sightings { color: var(--ink-2); font-size: 14px; }

.details { display: grid; gap: 20px; min-width: 0; align-content: start; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.state, .town { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 650; }
.state { background: var(--good-bg); color: var(--good); }
.state.state-now, .state.state-today { background: var(--note-bg); color: var(--note); }
.state.state-ended { background: var(--fill); color: var(--ink-2); font-weight: 500; }
.town { background: var(--fill); color: var(--ink-2); }
.event-page h1 { font-size: clamp(32px, 5vw, 46px); line-height: 1.06; font-weight: 650; letter-spacing: -0.03em; text-wrap: balance; overflow-wrap: anywhere; }
.event-page h2 { font-size: 13px; font-weight: 650; color: var(--ink-3); }

/* When and where, each beside its tile */
.facts { display: grid; gap: 14px; }
.fact dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fact dd { display: flex; align-items: center; gap: 14px; }
.fact-text { display: grid; min-width: 0; overflow-wrap: anywhere; }
.fact-text strong { font-size: 16px; font-weight: 600; }
.fact-text span { color: var(--ink-2); font-size: 15px; }
.fact-text .where-note { color: var(--ink-3); font-size: 14px; }
.fact-text .where-verified { color: var(--ink-2); font-size: 14px; font-weight: 600; }
.date-tile, .icon-tile { flex: none; width: 48px; height: 48px; overflow: hidden; border-radius: var(--radius-tile); border: 1px solid var(--line); }
.date-tile { display: grid; grid-template-rows: 17px 1fr; text-align: center; }
.date-tile small { background: var(--fill); color: var(--ink-2); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; line-height: 17px; text-transform: uppercase; }
.date-tile span { display: grid; place-items: center; font-size: 19px; font-weight: 650; }
.icon-tile { display: grid; place-items: center; color: var(--ink-2); }
.icon-tile svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* The same event's other dates */
.other-dates, .repeats { color: var(--ink-2); font-size: 15px; }
.repeats { font-weight: 600; color: var(--ink); }
.other-dates a { font-weight: 600; }

/* What people can do */
.action-card { overflow: hidden; border-radius: 22px; background: var(--card); border: 1px solid var(--card-edge); }
.terms { padding: 10px 16px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 14px; font-weight: 600; }
.actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; padding: 16px; }
.actions .primary { grid-column: 1 / -1; }
.share-status { padding: 0 16px 14px; color: var(--ink-2); font-size: 14px; }
.share-status:empty { display: none; }
/* Sharing on social media (services/shareKit.js) */
.share-kit { border-radius: 22px; background: var(--card); border: 1px solid var(--card-edge); }
.share-kit summary { display: flex; align-items: center; min-height: 52px; padding: 0 16px; cursor: pointer; font-weight: 600; list-style: none; }
.share-kit summary::-webkit-details-marker { display: none; }
.share-kit summary::after { content: "+"; margin-left: auto; color: var(--ink-3); font-size: 20px; }
.share-kit[open] summary::after { content: "\2212"; }
.share-body { display: grid; gap: 12px; padding: 0 16px 16px; }
.share-pictures { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.share-pictures figure { display: grid; gap: 6px; }
.share-pictures a { display: block; }
.share-pictures img { display: block; width: 100%; height: auto; max-height: 300px; object-fit: contain; border-radius: 12px; background: var(--fill); }
.share-pictures figcaption, .share-how { color: var(--ink-2); font-size: 14px; }
.share-buttons { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.share-label { font-weight: 600; }
.share-caption { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--fill); color: var(--ink); font: inherit; font-size: 15px; resize: vertical; }
.share-kit-status { color: var(--ink-2); font-size: 14px; }
.share-kit-status:empty { display: none; }
.people { display: grid; gap: 8px; }
.people div { display: grid; grid-template-columns: 8em minmax(0, 1fr); gap: 12px; }
.people dt { color: var(--ink-3); font-size: 14px; font-weight: 600; }
.people dd { overflow-wrap: anywhere; }

.block { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.about { white-space: pre-line; color: var(--ink-2); font-size: 17px; }
.event-map { position: relative; z-index: 0; height: 260px; overflow: hidden; border-radius: 18px; background: var(--fill); }
.flyer-text summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 600; list-style: none; }
.flyer-text summary::-webkit-details-marker { display: none; }
.flyer-text summary::after { content: "+"; margin-left: auto; color: var(--ink-3); font-size: 20px; }
.flyer-text[open] summary::after { content: "\2212"; }
.flyer-text p { padding: 14px; border-radius: 14px; background: var(--fill); color: var(--ink-2); font: 14px/1.6 ui-monospace, "SF Mono", Menlo, Consolas, monospace; white-space: pre-line; overflow-wrap: anywhere; }
.provenance { color: var(--ink-3); font-size: 14px; }

/* Comments (services/eventComments.js): the list, the form members see, and Report and Delete from the page's script. */
/* Photos' heading, form and notes; comments, reports and the date-of-birth step are in /comments.css. */
.photos { display: grid; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.photos h2 { display: flex; align-items: center; gap: 10px; }
.photo-total { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; background: var(--fill); color: var(--ink-2); font-size: 13px; }
.photos-empty { color: var(--ink-3); }
.photo-form { display: grid; gap: 8px; }
.photo-form label { font-weight: 600; }
.photo-form input[name="caption"] { width: 100%; border: 1px solid transparent; border-radius: 14px; background: var(--fill); color: var(--ink); font: inherit; }
.photo-note, .photo-status { color: var(--ink-3); font-size: 14px; }
.photo-join { margin: 0; display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; color: var(--ink-3); font-size: 15px; }
.photo-status:empty { display: none; }

/* Photos (services/eventPhotos.js): square thumbnails linking to the full photo, and the form anyone can use. */
.photo-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.photo-grid:empty { display: none; }
.photo figure { display: grid; gap: 6px; min-width: 0; }
.photo img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 14px; background: var(--fill); }
.photo.own img { outline: 2px solid var(--ink-3); outline-offset: 2px; }
.photo figcaption { color: var(--ink-3); font-size: 13px; overflow-wrap: anywhere; }
.photo-credit { color: var(--ink); font-weight: 600; }
.photo-tools { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: center; color: var(--ink-3); font-size: 13px; }
.photo-form { padding: 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--card-edge); }
.photo-form input[type="file"] { max-width: 100%; font: inherit; }
.photo-form input[name="caption"] { min-height: 44px; padding: 0 12px; }
.photo-form .photo-rights { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.photo-form button { justify-self: start; }

@media (max-width: 420px) {
  .people div { grid-template-columns: 1fr; gap: 2px; }
}

/* Check it (owner decisions 2026-10-14, plan P13): is it still on, happening, or did it happen? */
.check-it { display: grid; gap: 8px; padding: 16px; border: 1px solid var(--card-edge); border-radius: var(--radius-card); background: var(--card); }
.check-it h2 { margin: 0; }
.check-question { margin: 0; font-size: 18px; font-weight: 600; }
.check-count { margin: 0; color: var(--ink-2); font-size: 14px; }
.check-answers { display: flex; flex-wrap: wrap; gap: 8px; }
.check-answers .button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink) !important; }
.check-join { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; color: var(--ink-3); font-size: 14px; }
.check-status, .check-note { margin: 0; color: var(--ink-2); font-size: 14px; }
