/* PTArescue "classic" site theme. Brand colors come from --brand and --accent, set per site. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: #1f2328;
    background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.muted { color: #5b636b; }

.preview-bar { background: #111; color: #fff; text-align: center; font-size: 14px; font-weight: 600; padding: 6px; }

/* Header and menu */
.site-header { background: var(--brand); color: var(--brand-text); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--brand-text); text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.brand-logo { height: 48px; width: auto; border-radius: 6px; background: #fff; padding: 3px; }
.menu-toggle { display: none; background: transparent; color: var(--brand-text); border: 2px solid currentColor; border-radius: 6px; padding: 6px 14px; font: inherit; font-weight: 600; cursor: pointer; }
.site-menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.site-menu a { color: var(--brand-text); text-decoration: none; padding: 8px 12px; border-radius: 6px; font-weight: 600; display: block; }
.site-menu a:hover, .site-menu a[aria-current="page"] { background: color-mix(in srgb, var(--brand-text) 18%, transparent); }
@media (max-width: 720px) {
    .menu-toggle { display: inline-block; }
    .site-menu { display: none; width: 100%; padding-bottom: 12px; }
    .site-menu.open { display: block; }
    .site-menu ul { flex-direction: column; }
}

/* Blocks */
.block { padding: 48px 0; }
.block + .block { padding-top: 8px; }
.block-hero { position: relative; padding: 80px 0; background: color-mix(in srgb, var(--brand) 12%, #fff); text-align: center; overflow: hidden; }
.block-hero.has-image { color: #fff; background: #111; }
.block-hero .hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero-inner { position: relative; }
.hero-sub { font-size: 1.25rem; margin: 0 auto 1.4em; max-width: 640px; }
.button { display: inline-block; background: var(--brand); color: var(--brand-text); text-decoration: none; font-weight: 700; padding: 12px 22px; border-radius: 8px; border: 2px solid var(--brand); }
.button:hover { filter: brightness(1.08); }
.button-accent { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.button-plain { background: #fff; color: #1f2328; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.prose p { margin: 0 0 1em; }
.split { display: grid; gap: 32px; align-items: center; grid-template-columns: 1fr 1fr; }
.split.no-image { grid-template-columns: 1fr; max-width: 760px; }
.split.image-right .split-image { order: 2; }
.split-image { border-radius: 10px; width: 100%; }
@media (max-width: 720px) { .split { grid-template-columns: 1fr; } .split.image-right .split-image { order: 0; } }

.card-grid, .sponsor-grid, .gallery, .event-list, .date-list, .doc-list { list-style: none; margin: 0; padding: 0; }
.card-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.person { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 20px; border: 1px solid #e3e6ea; border-radius: 10px; }
.person-photo, .person-initial { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin-bottom: 8px; }
.person-initial { display: flex; align-items: center; justify-content: center; background: var(--brand); color: var(--brand-text); font-size: 2rem; font-weight: 700; }

.event { display: flex; gap: 18px; padding: 16px 0; border-bottom: 1px solid #e3e6ea; }
.event-date { flex: none; width: 64px; text-align: center; background: var(--brand); color: var(--brand-text); border-radius: 8px; padding: 6px 0; display: flex; flex-direction: column; }
.event-month { font-size: .8rem; text-transform: uppercase; font-weight: 700; }
.event-day { font-size: 1.6rem; font-weight: 800; line-height: 1.1; }
.event-body h3 { margin: 0 0 .2em; }
.event-body p { margin: 0 0 .4em; }
.date-list li { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px solid #e3e6ea; }
.date-list strong { min-width: 70px; color: var(--brand); }
.doc-list li { padding: 10px 0; border-bottom: 1px solid #e3e6ea; }

.gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.gallery figcaption { font-size: .9rem; color: #5b636b; margin-top: 4px; }
.lightbox-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.85); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 50; cursor: zoom-out; }
.lightbox-overlay img { max-height: 90vh; max-width: 95vw; width: auto; }

.sponsor-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: center; }
.sponsor-grid img { max-height: 80px; width: auto; }
.sponsor-name { font-weight: 700; font-size: 1.1rem; }

.faq-item { border-bottom: 1px solid #e3e6ea; padding: 12px 0; }
.faq-item summary { font-weight: 700; cursor: pointer; }
.faq-item p { margin: .6em 0 0; }

.contact-list { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; }
.contact-list dt { font-weight: 700; }
.contact-list dd { margin: 0; }

/* Footer */
.site-footer { margin-top: 48px; background: #1f2328; color: #e6e8eb; padding: 32px 0; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.footer-inner p { margin: .4em 0 0; }
.powered { color: #a8b0b8; }
