/* Avoid hiding all page text during the entrance animation. */
.site-container { animation: none !important; }

/* Preserve the visual identity; improve focus, contrast and native control semantics. */
.th-skip-link { position: fixed; top: -100px; left: 12px; z-index: 100000000; background: #fff; color: #111; padding: 12px 20px; border: 2px solid #111; }
.th-skip-link:focus { top: 12px; }
:where(a, button, input, select, textarea, [tabindex]):focus-visible { outline: 3px solid #111 !important; outline-offset: 3px !important; box-shadow: 0 0 0 6px #fff !important; }
/* The skip link can focus the content landmark without outlining the whole page. */
main#th-main-content:focus { outline: none !important; box-shadow: none !important; }
.viztech-header .th-icon-button { appearance: none; background: transparent; border: 0; border-radius: 0; color: #fff; padding: 0; margin: 0; line-height: 1; cursor: pointer; flex-shrink: 0; }
.viztech-header .th-shop-toggle { margin-left: 8px; min-width: 24px; min-height: 24px; }
.viztech-header .shop-first { white-space: nowrap; }
.viztech-header .second-level-main { white-space: normal; }
.viztech-header .th-menu-toggle i { margin-right: 0; }
.viztech-header .second-level-main li a:hover, .viztech-header .second-level-main li a:focus-visible { color: #176c68; }
.viztech-header .ws-search-form { display: flex; gap: 10px; padding: 12px 5%; }
.viztech-header .ws-search-field { flex: 1; min-width: 0; }
.viztech-header .th-search-submit { background: #49beb7; color: #111; }
/* Keep the original teal banner, change only its lettering. */
.banner-360-text, .banner-360-text a, .header-top-banner p, .header-top-banner a { color: #111 !important; }
/* Teal links on white require a deeper shade. */
.townehaus-post-content p a, .townehaus-post-content li a { text-decoration: underline; text-underline-offset: .15em; }
.th-video-trigger { display: block; width: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; line-height: 0; }
.th-video-trigger:hover, .th-video-trigger:focus { background: transparent; }
.th-video-trigger img { display: block; }
.popup .th-video-close { background: #fff; color: #111; border: 0; padding: 4px 12px; line-height: 1; }
.popup iframe { max-width: 100%; }
.th-slider-pause { position: absolute; bottom: 12px; right: 12px; z-index: 5; background: #111; color: #fff; border: 1px solid #fff; padding: 8px 12px; font-size: 14px; line-height: 1.3; }
@media (max-width:800px) {
  .viztech-header .th-menu-toggle { display: none; }
  .viztech-header .header-main .left-icon { display: none; }
  .viztech-header .header-main .right-main > a { display: none; }
  .viztech-header .header-main .left-icon i { color: #fff; font-size: 28px; margin-right: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .wp-block-eedee-block-gutenslider *, .swiper-slide * { animation: none !important; transition-duration: 0s !important; }
}
.site-footer a, .townehaus-post-content a, a.townehaus-post-category { color: #145c59 !important; }
.site-footer a:hover, .townehaus-post-content a:hover, a.townehaus-post-category:hover { color: #0b403e !important; }
.footer-widgets .wp-block-button__link { background-color: #176c68 !important; color: #fff !important; }

/* White hero captions must remain readable over the brightest product photos. */
.home #gutenslider-uuiq52dcj .eedee-background-div__overlay { background: rgba(0,0,0,.60) !important; opacity: 1 !important; }
/* Shared filled calls to action retain teal, using a shade suitable for white text. */
.wp-block-button.is-style-fill > .wp-block-button__link { background-color: #176c68 !important; color: #fff !important; }
.see-more-reviews a { color: #145c59 !important; }
.has-theme-primary-background-color > .gb-layout-column-wrap > .gb-block-layout-column > .gb-block-layout-column-inner > :is(h2, p) { color: #111 !important; }

/* The media viewer keeps the original overlay and fits the player inside the viewport. */
dialog.th-video-dialog {
    position: fixed;
    inset: 0;
    box-sizing: border-box;
    width: min(1000px, calc(100% - 32px));
    max-height: calc(100% - 32px);
    padding: 42px 20px 16px;
    border: 0;
    border-radius: 10px;
    background: #fff;
    color: #111;
}
dialog.th-video-dialog::backdrop { background: rgb(0 0 0 / 80%); }
.th-video-dialog #video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; }
.th-video-dialog .th-video-close { top: 4px; right: 10px; background: #fff; color: #111; line-height: 1; padding: 4px 12px; }
.th-video-dialog .th-video-links { margin: 12px 0 0; font-size: 16px; }
.th-video-dialog .th-video-links a { color: #145c59; text-decoration: underline; }
