/* Additions for the static (Astro) version of the STORK layout */
#page-top { bottom: 20px; opacity: 0; pointer-events: none; transition: opacity .3s; }
#page-top.is-visible { opacity: 1; pointer-events: auto; }
.sp-overlay { position: fixed; inset: 0; z-index: 100000; background: rgba(0,0,0,.85); padding: 60px 24px 24px; overflow-y: auto; }
.sp-overlay[hidden] { display: none; }
.sp-overlay .sp_g_nav { list-style: none; margin: 0; padding: 0; }
.sp-overlay .sp_g_nav a { color: #fff; display: block; padding: .8em 0; border-bottom: 1px solid rgba(255,255,255,.2); text-decoration: none; }
.sp-overlay .sub-menu { list-style: none; padding-left: 1.2em; }
.sp-overlay .sp-close { position: absolute; top: 12px; right: 16px; background: none; border: 1px solid #fff; color: #fff; padding: 6px 12px; cursor: pointer; }
.sp-search { display: flex; margin-top: 24px; }
.sp-search input { flex: 1; margin: 0; }
.sp-search button { width: 48px; border: 0; background: #1BB4D3; color: #fff; }
.entry-content video { max-width: 100%; height: auto; }
.entry-content img { max-width: 100%; height: auto; }
.draft-notice { background: #fff3cd; padding: .5em 1em; }
#comments { margin: 2em 0; }
#comments .commentlist { list-style: none; padding: 0; }
#comments .commentlist li:before { content: none; }
#comments .comment article { border-bottom: 1px solid #eee; padding: 1em 0; }
#comments .comment-author { display: flex; gap: 1em; align-items: baseline; font-size: .9em; color: #888; }
#comments .comment-author .fn { font-style: normal; font-weight: bold; color: #3E3E3E; }
#comments .children { list-style: none; padding-left: 2em; }
.comments-closed { color: #888; font-size: .9em; }
#search { margin: 1em 0 3em; }
/* home carousel (replaces slick) */
#top_carousel { position: relative; margin-top: 1.2em; margin-bottom: 1.5em; padding: 0 28px; }
#top_carousel .car-track { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; list-style: none; margin: 0; padding: 0; opacity: 1 !important; }
#top_carousel .car-track::-webkit-scrollbar { display: none; }
#top_carousel .car-track li { flex: 0 0 calc((100% - 40px) / 6); scroll-snap-align: start; }
@media (max-width: 1024px) { #top_carousel .car-track li { flex-basis: calc((100% - 16px) / 3); } }
@media (max-width: 600px) { #top_carousel .car-track li { flex-basis: calc((100% - 8px) / 2); } }
#top_carousel .car-track a { display: block; text-decoration: none; color: inherit; }
#top_carousel .eyecatch { position: relative; margin: 0; overflow: hidden; }
#top_carousel .eyecatch img { width: 100%; height: auto; display: block; }
#top_carousel .entry-title { font-size: .75em; line-height: 1.4; margin: .5em 0 0; font-weight: normal; }
#top_carousel .car-arrow { position: absolute; top: 35%; background: none; border: 0; font-size: 2em; color: #444; cursor: pointer; padding: 0 4px; }
#top_carousel .car-prev { left: 0; }
#top_carousel .car-next { right: 0; }
/* no trailing gap inside STORK boxes (autop wraps their text in <p>) */
.c_box > p:last-child, .supplement > p:last-child, .voicecomment > p:last-child { margin-bottom: 0; }
