/* Small additions for the static version (replaces the old WordPress plugins) */
.home-bxslider, .duper-bn { display: block; margin: 0; padding: 0; }
.slider-section .bx-viewport { position: relative; overflow: hidden; height: 365px; }
.home-bxslider > li { position: absolute; inset: 0 auto auto 0; width: 100%; list-style: none; opacity: 0; transition: opacity .7s ease; z-index: 1; }
.home-bxslider > li.is-active { opacity: 1; z-index: 2; position: relative; }
.home-bxslider > li img { width: 100%; object-fit: cover; }
.slider-section .bx-controls-direction { z-index: 5; }
.slider-section .bx-controls-direction a { line-height: 28px !important; text-align: left; color: #fff; }

.bn-wrapper .bx-viewport { position: relative; height: 40px; overflow: hidden; }
.duper-bn > li.bn-content { position: absolute; left: 0; top: 0; list-style: none; display: none; }
.duper-bn > li.bn-content.is-active { display: block; }

.slicknav_nav[hidden] { display: none !important; }
.slicknav_nav { list-style: none; margin: 48px 0 0; padding: 0; background: #2d2d2d; position: relative; z-index: 20; }

.single .single-feat { float: none; width: 100%; max-width: 100%; margin: 15px 0; }
.single-feat img { width: 100%; height: auto; display: block; }
.single .entry-content p { margin: 0 0 1em; }

@media (prefers-reduced-motion: reduce) {
  .home-bxslider > li { transition: none; }
  .slider-section .bx-wrapper img:hover { transform: none; }
}

/* Archive notice: wrap text like the original */
.wp-block-code { white-space: pre-wrap; font-family: inherit; overflow-wrap: break-word; }
.wp-block-code code { white-space: pre-wrap; font-family: inherit; }
/* Tag cloud and notice sit at the same width as the rest of the site */
#page > aside.widget { max-width: 1170px; margin: 0 auto; padding: 15px; box-sizing: border-box; }

/* Pictures chosen in the Article Maker are cropped to fit, like WordPress did */
.slider-section .home-bxslider img { height: 365px; object-fit: cover; }
.beside-thumb img { width: 100%; aspect-ratio: 240 / 172; object-fit: cover; display: block; }
.single .single-feat img { width: 100%; height: auto; }
.single .entry-content h2, .single .entry-content h3 { margin: 1.2em 0 .5em; }
@media screen and (max-width:640px) { .slider-section .home-bxslider img { height: auto; aspect-ratio: 3 / 2; } }

/* Imported articles: pictures and tables inside the text */
.single .entry-content .article-pic { text-align: center; margin: 1.2em 0 .4em; }
.single .entry-content .article-pic img { display: inline-block; max-width: 100%; height: auto; }
.single .entry-content .table-wrap { overflow-x: auto; margin: 1em 0 1.4em; -webkit-overflow-scrolling: touch; }
.single .entry-content table { border-collapse: collapse; width: 100%; font-size: 13px; }
.single .entry-content td, .single .entry-content th { border: 1px solid #ddd; padding: 6px 8px; vertical-align: top; }
.single .entry-content td p { margin: 0; }
.single .entry-content td img { max-width: 220px; height: auto; }
.single .entry-content ul, .single .entry-content ol { margin: 0 0 1em 1.5em; }
.single .entry-content .pic-caption { text-align: center; color: #555; font-size: 13px; margin: 0 auto 1.4em; max-width: 650px; }
.section-count { clear: both; color: #666; font-size: 13px; padding-top: 8px; margin: 0 0 10px; }

/* Footer notice and contact button */
.site-notice .notice-title { font-size: 15px; font-weight: 700; margin: 0 0 10px; color: #222; }
.site-notice p { margin: 0 0 10px; }
.contact-btn { display: inline-block; background: #289dcc; color: #fff; border: 0; border-radius: 3px; padding: 8px 16px; font: inherit; font-weight: 600; cursor: pointer; }
.contact-btn:hover { background: #1d7aa1; }
.contact-btn:focus-visible, .contact-copy:focus-visible { outline: 3px solid #f0b400; outline-offset: 2px; }
.contact-reveal { font-size: 13px; color: #444; }
.contact-copy { margin-left: 4px; padding: 2px 8px; font-size: 12px; border: 1px solid #bbb; background: #fff; border-radius: 3px; cursor: pointer; }
.fh-appeal p { margin: 0 0 8px; } .fh-appeal p:last-child { margin: 0; }

/* Dedication box in the sidebar */
.site-dedication p { margin: 0 0 6px; clear: both; }
.site-dedication .ded-line { padding-top: 6px; }
.site-dedication .ded-head { font-weight: 600; margin-top: 8px; }
.site-dedication .ded-list { list-style: none; margin: 0 0 8px; padding: 0; }
.site-dedication .ded-list li { margin: 0 0 4px; }
.contact-link { background: none; border: 0; padding: 0; color: #289dcc; font: inherit; cursor: pointer; text-decoration: underline; }
.contact-link:hover { color: #1d7aa1; }
.contact-link:focus-visible { outline: 3px solid #f0b400; outline-offset: 2px; }
.site-dedication .contact-reveal { display: block; font-size: 12px; word-break: break-all; }

/* Stop phone browsers from enlarging some blocks of text ("text boosting") */
html { -webkit-text-size-adjust: 100%; -moz-text-size-adjust: 100%; text-size-adjust: 100%; }

/* Thin blue line closing the dedication box, matching the heading lines */
.site-dedication { border-bottom: 1px solid #289dcc; padding-bottom: 12px; margin-bottom: 22px; }
