.home-slideshow-section { padding: 1rem 0 2rem; }
.home-slideshow { min-width: 0; border: 1px solid #dce8df; border-radius: 24px; background: #fff; padding: 12px; box-shadow: 0 14px 45px #1b5e2010; }
.slideshow-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 12px 12px 20px; }
.slideshow-heading h2 { font-size: clamp(1.1rem, 2.2vw, 1.5rem); font-weight: 750; margin: 0; }
.slideshow-pause { border: 1px solid #bccfc1; background: #fff; color: #285334; border-radius: 12px; min-height: 44px; padding: 8px 14px; font-size: .875rem; }
.slideshow-track { display: flex; direction: ltr; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 16px; background: #edf3ef; }
.homepage-slide { direction: rtl; flex: 0 0 100%; min-width: 0; margin: 0; position: relative; scroll-snap-align: start; aspect-ratio: 16 / 8; }
.homepage-slide img { width: 100%; height: 100%; object-fit: contain; display: block; }
.homepage-slide[data-fit="cover"] img { object-fit: cover; }
.homepage-slide figcaption { position: absolute; inset: auto 0 0; padding: 16px 24px; color: #fff; background: #102318de; line-height: 1.85; font-size: 1rem; max-height: 55%; overflow-y: auto; white-space: pre-line; overflow-wrap: anywhere; }
.home-slideshow.is-enhanced .slideshow-track { overflow: hidden; touch-action: pan-y pinch-zoom; }
.home-slideshow.is-enhanced .homepage-slide:not([hidden]) { animation: homepage-photo-reveal .24s ease; }
@keyframes homepage-photo-reveal { from { opacity: .25; } to { opacity: 1; } }
.slideshow-controls { display: flex; align-items: center; justify-content: center; gap: 14px; padding-top: 12px; }
.slideshow-controls[hidden], .slideshow-pause[hidden], .home-slideshow [hidden] { display: none !important; }
.slideshow-arrow { border: 1px solid #c8dacf; background: #fff; color: #2e7d32; border-radius: 50%; width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; }
.slideshow-arrow svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; }
.slideshow-choices { display: flex; align-items: center; gap: 0; direction: ltr; flex-wrap: wrap; justify-content: center; }
.slideshow-choices button { background: transparent; border: 0; width: 44px; height: 44px; padding: 0; display: grid; place-items: center; }
.slideshow-choices button::after { content: ''; height: 7px; width: 7px; border-radius: 8px; background: #bdcfc3; transition: width .2s, background-color .2s; }
.slideshow-choices button[aria-disabled="true"]::after { background: #2e7d32; width: 24px; }
.slideshow-count { font-size: .875rem; color: #395642; white-space: nowrap; font-variant-numeric: tabular-nums; }
.slideshow-picker { display: none; font-size: 16px; min-height: 44px; border: 1px solid #c8dacf; border-radius: 10px; background: #fff; color: #285334; padding: 4px 12px; max-width: 100%; }
.slideshow-status { margin: 0; padding-inline: 10px; color: #395642; line-height: 1.8; }
.slideshow-status[data-state="error"] { color: #8a331c; }
.slideshow-status:not(:empty) { margin-top: 12px; }
.home-slideshow :focus-visible, .homepage-panel :focus-visible { outline: 3px solid #1565c0; outline-offset: 4px; }
.home-slideshow button { cursor: pointer; }
.home-page { overflow-wrap: anywhere; }
#about .biography-portrait-link { gap: 16px; padding: 8px; padding-inline-end: 24px; border-radius: 56px; max-width: 100%; text-align: start; }
.biography-link-portrait { display: block; overflow: hidden; width: 80px; height: 80px; flex: 0 0 80px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px #a6c7af; background: #edf3ef; }
.biography-link-photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.biography-portrait-link > span { min-width: 0; overflow-wrap: anywhere; }
.homepage-panel { color: #183323; }
.homepage-panel h1 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; }
.homepage-panel p { color: #4e6256; line-height: 1.9; }
.homepage-panel-heading { display: flex; align-items: start; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; }
.homepage-panel-heading h2 { font-size: 1.4rem; font-weight: 750; }
.homepage-panel-heading p { margin: .5rem 0 0; max-width: 65ch; }
.homepage-photo-entry { display: flex; justify-content: space-between; gap: 24px; align-items: center; background: #eaf5ed; border: 1px solid #bedbc5; border-radius: 20px; padding: 28px; color: #1a4f27; }
.homepage-photo-entry h2 { font-size: 1.35rem; font-weight: 800; }
.homepage-photo-entry p { margin-bottom: 10px; }
.homepage-photo-entry > span svg { width: 50px; height: 50px; }
.homepage-panel-note { margin: 24px 0; color: #526759; line-height: 1.9; max-width: 80ch; }
.homepage-text-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.homepage-text-group { color: inherit; border: 1px solid #d8e4db; background: #fff; border-radius: 18px; padding: 24px; min-width: 0; }
.homepage-text-group h2 { display: flex; align-items: center; justify-content: space-between; font-size: 1.1rem; font-weight: 750; gap: 10px; }
.homepage-text-group h2 svg { width: 22px; height: 22px; }
.homepage-text-group p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; margin-block: 12px; }
.homepage-text-group > span { font-size: .85rem; color: #326c41; }
.homepage-existing-editors { margin-top: 32px; border-top: 1px solid #d8e4db; padding-top: 24px; }
.homepage-existing-editors h2 { font-size: 1.2rem; font-weight: 750; }
.homepage-edit-surface { max-width: 880px; margin-inline: auto; padding: 32px; background: #fff; border: 1px solid #d8e4db; border-radius: 20px; }
.homepage-edit-surface h2 { font-size: 1.4rem; font-weight: 750; }
.homepage-field { margin: 24px 0; }
.homepage-field label { display: block; font-weight: 700; margin-bottom: 10px; }
.homepage-field input:not([type="checkbox"]), .homepage-field select { min-height: 48px; }
.homepage-field .form-control, .homepage-field .form-select { font-size: 16px; line-height: 1.9; }
.homepage-field textarea { resize: vertical; }
.homepage-field .errorlist { color: #a52424; padding-inline-start: 22px; margin-top: 8px; }
.homepage-checkbox { display: flex; align-items: center; gap: 14px; min-height: 48px; }
.homepage-checkbox label { margin: 0; }
.homepage-checkbox input { width: 24px; height: 24px; accent-color: #2e7d32; }
.homepage-form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; border-top: 1px solid #e2eae4; padding-top: 20px; }
.homepage-panel .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.homepage-photo-preview { border-radius: 16px; background: #edf3ef; overflow: hidden; aspect-ratio: 16/8; }
.homepage-photo-preview img { width: 100%; height: 100%; object-fit: contain; }
.homepage-photo-preview[data-fit="cover"] img { object-fit: cover; }
.homepage-slide-list { display: grid; gap: 18px; }
.homepage-slide-entry { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; border: 1px solid #d8e4db; padding: 20px; border-radius: 18px; background: #fff; }
.homepage-slide-entry > img { width: 192px; height: 128px; object-fit: contain; border-radius: 10px; background: #edf3ef; }
.homepage-slide-description { flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; }
.homepage-slide-description h3 { font-size: 1.1rem; font-weight: 750; }
.homepage-slide-description p { margin-bottom: 8px; }
.homepage-slide-description > span { font-size: .85rem; color: #326c41; }
.homepage-slide-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.homepage-slide-order { display: flex; gap: 8px; align-items: center; }
.homepage-slide-order button, .homepage-slide-delete { min-width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid #d5dfd7; border-radius: 10px; background: #fff; color: #36583f; }
.homepage-slide-delete { color: #a32424; }
.homepage-slide-delete svg { width: 20px; height: 20px; }
.homepage-empty { text-align: center; background: #fff; border: 1px dashed #b2ccbb; padding: 44px 24px; border-radius: 18px; }
.homepage-delete-preview { max-width: 100%; max-height: 350px; display: block; margin: 24px auto; }
.homepage-panel .site-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; }
.homepage-panel .pagination-total { color: #526759; }
@media (hover:hover) { .homepage-text-group:hover, .homepage-photo-entry:hover { border-color: #2e7d32; color: #183323; } .slideshow-arrow:hover { background: #edf7ef; } }
@media (max-width: 575px) {
  .home-slideshow { border-radius: 18px; padding: 8px; }
  .slideshow-heading { padding: 8px 6px 14px; }
  .slideshow-pause { font-size: .8rem; }
  .slideshow-track { border-radius: 12px; }
  .homepage-slide { aspect-ratio: 4/3; }
  .homepage-slide figcaption { font-size: .875rem; padding: 12px 16px; }
  .slideshow-controls { gap: 8px; flex-wrap: wrap; }
  .slideshow-choices { display: none; }
  .slideshow-picker { display: block; order: 4; flex-basis: 100%; min-width: 0; }
  .homepage-text-groups { grid-template-columns: minmax(0,1fr); }
  .homepage-photo-entry, .homepage-text-group, .homepage-edit-surface { padding: 20px; }
  .homepage-slide-entry > img { width: 100%; height: 180px; }
  .homepage-panel .panel-navigation { flex-wrap: nowrap !important; overflow-x: auto; padding-block: 6px; }
  .homepage-panel .panel-navigation a { flex-shrink: 0; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .slideshow-choices button::after { transition: none; } .home-slideshow.is-enhanced .homepage-slide:not([hidden]) { animation: none; } }
