/* Accessibility corrections preserve the original camp palette and artwork. */
.nav-link { color: #716253; }
.nav-previews-dismissed .nav-preview { visibility: hidden !important; opacity: 0 !important; }
.site-footer { color: #192a08; }
.site-footer a { color: #192a08; }
.footer-item h2 { font: 700 16px/1.4 Aleo, Georgia, serif; margin: 0 0 20px; text-transform: none; }
.site-footer a:not(:has(img)):not(.socials a), .camp-list a { text-decoration: underline; text-underline-offset: .2em; }
.socials a { color: #412a0d; }
.socials a:hover { color: #fff; }
.testimonials > .script { color: #765000; }
.country h3 { color: #0060a3; }
.pattern-gold { color: #362004; }
.pattern-gold h1, .pattern-gold h2, .pattern-gold h3, .pattern-gold .script { color: #362004; }
.hero .script { color: #fff; text-shadow: 0 2px 6px #000; }
main, h1, h2, h3, summary, [id] { scroll-margin-top: calc(var(--header) + 24px); }
:where(a,button,input,textarea,select,summary,[tabindex]):focus-visible { outline: 3px solid #111; outline-offset: 3px; box-shadow: 0 0 0 6px #fff; }
:where(.lightbox,.video-dialog) :focus-visible { outline-color: #fff; box-shadow: 0 0 0 6px #111; }
#main:focus { outline: none; box-shadow: none; }
.program-image-help { max-width: 840px; margin: 0 auto 18px; }
.program-text { width: min(1050px,100%); margin: 26px auto 0; text-align: left; border: 2px solid #3b69a3; border-radius: 8px; background: #fff; color: #412a0d; padding: 18px 22px; }
.program-text summary { cursor: pointer; font-weight: 700; padding: 5px; }
.program-text > p { margin: 20px 0; }
.program-days { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.program-day { min-width: 0; }
.program-day h2 { font-size: 24px; margin: 15px 0; }
.program-day table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.55; table-layout: fixed; }
.program-day th, .program-day td { text-align: left; vertical-align: top; border: 1px solid #b7c9c1; padding: 9px 10px; overflow-wrap: anywhere; }
.program-day th:first-child { width: 43%; }
.program-day thead { background: #3b69a3; color: #fff; }
.program-day tbody th { font-weight: 400; }
.program-day tbody tr:nth-child(even) { background: #eff9f5; }
.footer-item p a, .copyright a, .contact-dialog, .program-text { overflow-wrap: anywhere; }
@media (max-width:600px) { .footer-item h2 { font-size: 17px; margin-bottom: 15px; } .program-text { padding: 12px; } .program-days { grid-template-columns: minmax(0,1fr); } .program-day th,.program-day td { padding: 8px; } .member-caption h2 { font-size: 12px; } }
body.a11y-text-enlarged .program-days { grid-template-columns: minmax(0,1fr); }
body.a11y-text-enlarged .team-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
body.a11y-text-enlarged .member { aspect-ratio: auto; }
body.a11y-text-enlarged .member-photo { aspect-ratio: 1; }
body.a11y-text-enlarged .member-caption { position: relative; left: auto; right: auto; bottom: auto; background: #000; padding: 8px; }
body.a11y-text-enlarged .member-caption h2, body.a11y-text-enlarged .member-caption p { max-width: 100%; overflow-wrap: anywhere; }
body.a11y-text-enlarged .member-preview { bottom: auto; height: 100%; }
@media (max-width:420px) { .footer-grid { grid-template-columns: minmax(0,1fr); } body.a11y-text-enlarged .team-grid, body.a11y-text-enlarged .wfdys-grid, body.a11y-text-enlarged .country-grid { grid-template-columns: minmax(0,1fr); } body.a11y-text-enlarged .team-grid > .member:last-child { grid-column: auto; width: 100%; } .lightbox-tools { gap: 4px; } body.a11y-text-enlarged .lightbox-tools { right: 45px; } body.a11y-text-enlarged .lightbox { padding-top: 140px; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
body.reduce-motion * { scroll-behavior: auto !important; }

.nav-preview { pointer-events: auto; }

/* Narrow views must retain the whole forest without aspect-ratio intrinsic overflow. */
.forest { width: 100%; min-width: 0; min-height: 0; }
.story-copy, .registration-zones, .zone { min-width: 0; }
.story-copy, .zone h2, .camp-list li, .camp-list a { overflow-wrap: anywhere; }
.stars-rating { display: flex; flex-wrap: wrap; justify-content: center; font-size: clamp(20px,7vw,40px); }

main :is(h1,h2,h3) { overflow-wrap: anywhere; }

/* Enlarged names and roles remain in the card's normal document flow. */
body.a11y-text-enlarged .member { display: flex; flex-direction: column; }
body.a11y-text-enlarged .member-photo { height: auto; aspect-ratio: 1; object-fit: cover; }
body.a11y-text-enlarged .member-caption { flex: 0 0 auto; }
body.a11y-text-enlarged .member-sign { bottom: auto; height: auto; aspect-ratio: 1; }
body.a11y-text-enlarged .member-preview { height: auto; bottom: 0; }

.hero .script { display: table; margin-inline: auto; padding: 4px 14px; border-radius: 4px; background: #08111ccc; }
.socials a:hover svg path[stroke="none"] { fill: #3b69a3; }

body.a11y-text-enlarged .team-grid > .member:last-child:nth-child(odd) { grid-column: 1 / -1; width: 50%; justify-self: center; }
@media (max-width:420px) { body.a11y-text-enlarged .team-grid > .member:last-child { grid-column: auto; width: 100%; } }

#access-dialog .access-help a { overflow-wrap: anywhere; }
.nav-previews-dismissed .nav-preview { transition: none !important; }
