/* Isolated enhancement: loaded only by the eleven modernized RapidWeaver pages. */
body.ah-responsive #container { max-width: 100%; }
.ah-responsive #content { overflow-wrap: anywhere; }
.ah-responsive #content img { max-width: 100%; height: auto; }
.ah-responsive #content iframe { max-width: 100%; }
.ah-responsive #content iframe[src*="youtube.com/embed/"] { width: 504px; height: auto; aspect-ratio: 504 / 284; border: 0; }
.ah-responsive #content audio, .ah-responsive #content video { max-width: 100%; }
.ah-responsive #navcontainer a { height: auto; min-height: 25px; }
.ah-responsive #navcontainer ul ul a { color: #666; }
.ah-responsive #breadcrumbcontainer, .ah-responsive #footer { clear: both; }
.ah-responsive #footer { height: auto; min-height: 50px; }
.ah-responsive #footer p { padding-right: 20px; padding-bottom: 15px; }
.ah-responsive a:focus-visible, .ah-responsive button:focus-visible, .ah-responsive summary:focus-visible { outline: 3px solid #0074d8; outline-offset: 3px; }
.ah-menu-toggle { display: none; }
.ah-skip { position: absolute; left: 12px; top: -100px; z-index: 10000; background: white; padding: 10px; }
.ah-skip:focus { top: 8px; }
.ah-audio-fallback { margin: 12px 0; text-align: left; }
.ah-audio-fallback summary { cursor: pointer; color: #0074d8; }
.ah-audio-fallback audio { display: block; width: 100%; margin: 12px 0; }
@media screen and (max-width: 840px) {
 body.ah-responsive { margin: 16px; }
 .ah-responsive #container { width: 100%; }
 .ah-responsive #pageHeader { height: auto; min-height: 110px; }
 .ah-responsive #pageHeader h2 { padding-right: 20px; padding-bottom: 18px; }
}
@media screen and (max-width: 700px) {
 body.ah-responsive { margin: 12px; font-size: 16px; line-height: 1.8; letter-spacing: .5px; }
 .ah-responsive #pageHeader h1 { font-size: clamp(20px, 5vw, 28px); padding: 22px 16px 6px; letter-spacing: 1px; line-height: 1.4; overflow-wrap: anywhere; }
 .ah-responsive #pageHeader h2 { font-size: 15px; padding: 0 16px 20px; letter-spacing: 1px; line-height: 1.7; }
 .ah-responsive #sidebarContainer { float: none; width: auto; margin: 0 0 15px; }
 .ah-responsive #sidebar { display: none; }
 .ah-responsive #contentContainer { margin: 0 0 15px; width: auto; }
 .ah-responsive #contentContainer #content { padding: 18px 16px; }
 .ah-responsive #content span[style*="font-size"], .ah-responsive #content span[style*="font:"] { font-size: inherit !important; }
 .ah-responsive #navcontainer a { min-height: 44px; box-sizing: border-box; padding: 8px 14px; line-height: 1.7; }
 .ah-responsive #navcontainer ul ul a { padding-left: 28px; }
 .ah-menu-toggle { width: 100%; border: 0; background: #fff; color: #333; font: inherit; padding: 12px 14px; text-align: left; cursor: pointer; min-height: 48px; }
 .ah-menu-toggle::after { content: '+'; float: right; font-size: 22px; line-height: 1.2; }
 .ah-menu-toggle[aria-expanded="true"]::after { content: '−'; }
 .ah-menu-ready .ah-menu-toggle { display: block; }
 .ah-menu-ready #navcontainer { display: none; }
 .ah-menu-ready.ah-menu-open #navcontainer { display: block; }
 .ah-responsive #breadcrumbcontainer { font-size: 13px; overflow-wrap: anywhere; }
 .ah-responsive #breadcrumbcontainer ul { padding-right: 12px; }
 .ah-responsive #footer p { font-size: 13px; line-height: 1.8; padding-left: 16px; }
}
@media print { .ah-menu-toggle, .ah-skip { display: none !important; } }

/* Let the fixed SoundCloud controls layer above the mobile ShareThis toolbar.
   The player already supplies its own z-index and mobile ShareThis override. */
@media screen and (max-width: 768px) {
  body.ah-responsive #contentContainer { z-index: auto; }
}
