/* Blog posts, event pages, Donate, Support, Sponsors and Resources.
   Sponsors and Resources. Loaded after styles.css and kit.css on those pages only. */

/* ---------- Blog posts ---------- */
.post-wrap { max-width: 780px; }
.post-hero { padding-bottom: 30px; }
.page-hero .post-title { font-size: clamp(2rem, 5vw, 3.4rem); max-width: none; line-height: 1.1; }
.post-body { font-size: 1.1rem; line-height: 1.75; }
.post-body p, .post-body li { color: #c9d1de; }
.post-body h2, .post-body h3, .post-body h4 { margin: 1.6em 0 .6em; line-height: 1.2; }
.post-body h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.post-body h3 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); }
.post-body h4 { font-size: 1.15rem; }
.post-body a { color: var(--accent-2); text-underline-offset: 3px; overflow-wrap: anywhere; }
.post-body a.btn { color: var(--ink); }
.post-body ul, .post-body ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.post-body li { margin-bottom: .4em; }
.post-body blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent);
  font-size: 1.15rem; font-style: italic;
}
.post-media { margin: 1.8em 0; }
.post-media img { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); }
.post-media figcaption { margin-top: 10px; font-size: .9rem; color: var(--muted); text-align: center; }
.post-video video, .post-video iframe {
  width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 16px; background: #000;
}
.post-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 1.8em 0; }
.post-gallery img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); }
.post-file a, .post-button { margin: 1.4em 0; }
.post-file a { font-weight: 600; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.post-nav-link {
  display: block; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-2);
  text-decoration: none; font: 600 1rem/1.35 var(--display); transition: border-color .3s;
}
.post-nav-link:hover { border-color: rgba(var(--accent-2-rgb), .45); }
.post-nav-link span { display: block; margin-bottom: 6px; font: 700 .72rem/1 var(--display); text-transform: uppercase; letter-spacing: .12em; color: var(--accent-2); }
.post-nav-link.older { text-align: right; grid-column: 2; }

/* ---------- Forms on Support and Resources ---------- */
.field-note { margin: 4px 0 0; font-size: .9rem; font-style: italic; }
.field-note a, .form-alt a { color: var(--accent-2); }
.form-alt { margin: 0; font-size: .9rem; }
fieldset.checks { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
fieldset.checks legend { font-weight: 600; font-size: .95rem; color: #dbe2ee; margin-bottom: 10px; padding: 0; }

/* ---------- Donate and Support ---------- */
.jump-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.give-option { padding: 22px 0; border-top: 1px solid var(--line); }
.give-option:first-of-type { border-top: 0; padding-top: 6px; }
.give-option h4 { font-size: 1.1rem; margin-bottom: 6px; }
.small-note { font-size: .92rem; }
.social-links { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.social-links a {
  display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line);
  text-decoration: none; font-weight: 600; font-size: .95rem; transition: border-color .3s, color .3s;
}
.social-links a:hover { border-color: var(--accent-2); color: var(--accent-2); }

/* ---------- Sponsors ---------- */
.sponsor-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sponsor {
  padding: 22px 24px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg-2);
  display: grid; gap: 4px; align-content: start;
}
.sponsor strong { font: 600 1.1rem/1.25 var(--display); }
.sponsor span { color: var(--muted); font-size: .92rem; }
.panel-photo { margin: 0; }
.panel-photo img { width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--line); }

/* ---------- Event pages ---------- */
.event-detail { margin-bottom: 8px; }
.event-detail .card p:last-child { margin-bottom: 0; }
.event-status { margin: 24px 0 0; font-weight: 600; color: var(--accent-2); }

@media (max-width: 1024px) { .sponsor-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .sponsor-grid { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-link.older { grid-column: auto; text-align: left; }
  .post-body { font-size: 1.02rem; }
}

/* ---------- Live forms, RSVP and card donations ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.field-label, .field legend { font-weight: 600; font-size: .95rem; color: #dbe2ee; }
.field legend { margin-bottom: 8px; padding: 0; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.choice-group .check { margin-top: 6px; }
.err-msg { font-size: .85rem; color: #ff8a7a; margin: 0; }
.field [aria-invalid="true"] { border-color: #ff8a7a; }
.other-input { margin-top: 8px; width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: inherit; font: inherit; }
.form .btn[disabled] { opacity: .6; cursor: not-allowed; }
.pick-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pick {
  font: 600 .95rem/1 var(--display); padding: 12px 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: inherit;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.pick:hover { border-color: var(--accent); color: var(--accent); }
.pick[aria-pressed="true"] { background: var(--accent); border-color: transparent; color: var(--on-accent); }
.donate-form { margin-top: 18px; }
.rsvp-panel { margin-top: 28px; }
.rsvp-panel:empty { display: none; }
.rsvp-panel h3 { margin-top: 0; }
.event-status { margin: 0; font-weight: 600; color: var(--muted); }
.post-cover img { max-height: 460px; object-fit: cover; }
.related-title { font-size: 1.4rem; margin: 2.4em 0 1em; }

/* Memberships and sponsorships */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 28px; }
.plan-grid .tier { display: flex; flex-direction: column; padding: 28px 26px; }
.plan-grid .tier h3 { margin: 0; }
.plan-grid .tier .price { font-size: 2.2rem; }
.plan-grid .tier p { color: var(--muted); }
.plan-grid .tier ul { margin: 6px 0 18px; padding-left: 20px; color: var(--muted); }
.plan-grid .tier .btn { margin-top: auto; align-self: flex-start; }
.plan-grid .form-status { margin-top: 12px; }
