/* Shared corrections; keep semantic structure independent of font sizes. */
#site-header-menu[hidden], .disclosure-navigation ul[hidden] { display: none !important; }
.disclosure-navigation .dropdown-toggle { display: block !important; width: 44px; height: 44px; }
.disclosure-navigation .dropdown-toggle::after { width: 44px; }
.disclosure-navigation .menu-item-has-children > a { padding-right: 0.5em; margin-right: 44px; }
.disclosure-navigation .menu-item-has-children > a::after { content: none; }
.disclosure-navigation ul ul:not([hidden]) { display: block; }
#site-navigation a:focus-visible, #site-navigation button:focus-visible, #menu-toggle:focus-visible,
.entry-content a:focus-visible, .wpcf7 input:focus-visible, .wpcf7 textarea:focus-visible,
.wpcf7 button:focus-visible, .footer-navigation a:focus-visible {
    outline: 3px solid #111; outline-offset: 2px; box-shadow: 0 0 0 5px #fff;
}
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 textarea { border: 2px solid #767676; }
.wpcf7 input[type="checkbox"] { width: 1.25em; height: 1.25em; accent-color: #1456c8; vertical-align: middle; }
.wpcf7 input[aria-invalid="true"], .wpcf7 textarea[aria-invalid="true"] { border-color: #a31515; }
.entry-content a, .entry-summary a, .textwidget a, .content-bottom-widgets p a, .content-bottom-widgets > h2 a { text-decoration: underline; text-underline-offset: 0.15em; }
.entry-content h2, .content-bottom-widgets > h2 { font-size: 1.4rem; line-height: 1.4; margin: 1.8em 0 0.75em; }
.entry-content h3, .content-bottom-widgets .widget-title { font-size: 1.15rem; line-height: 1.4; margin: 1.5em 0 0.65em; }
.entry-content h2:first-child { margin-top: 0; }
.content-bottom-widgets .widget-area { min-width: 0; }
.content-bottom-widgets > h2 { width: 100%; }
.page .site-main > article { margin-bottom: 2.5rem; }
.wsn-section-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 2rem; margin-bottom: 2rem; }
.wsn-section-grid::before, .wsn-section-grid::after { content: none; }
.wsn-section-grid > h2 { grid-column: 1 / -1; margin-bottom: 0; }
.wsn-section-grid > .widget-area { float: none !important; width: auto !important; margin: 0 !important; }
.wsn-section-grid .widget { margin-bottom: 1.75rem; padding-top: 1rem; }
.wsn-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.wsn-columns > *, .wsn-details > div { min-width: 0; }
.wsn-details { margin: 0 0 1.75em; }
.wsn-details > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1rem; padding: 0.5em 0; border-bottom: 1px solid #ccc; }
.wsn-details dt { font-weight: 700; }
.wsn-details dd { margin: 0; }
.entry-content, .textwidget { overflow-wrap: anywhere; }
.entry-content table.wsn-data-table { display: table; width: 100%; table-layout: auto; }
.entry-content table.wsn-data-table td, .entry-content table.wsn-data-table th { display: table-cell !important; width: auto !important; white-space: normal; overflow-wrap: anywhere; }
.footer-navigation > nav { display: inline; }
.footer-navigation ul { display: inline; list-style: none; margin: 0; padding: 0; }
.footer-navigation li { display: inline; margin-left: 1em; }
.footer-navigation li a { margin: 0; text-decoration: underline; white-space: normal; overflow-wrap: anywhere; }
.site-info { overflow-wrap: anywhere; }
.footer-navigation li a::before { content: none; }
.wsn-pdf-icon { width: 16px; height: auto; margin-right: 5px; vertical-align: text-top; }
@media (max-width: 44em) {
    .wsn-columns, .wsn-section-grid { grid-template-columns: minmax(0, 1fr); }
    .wsn-details > div { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
}
@media (min-width: 56.875em) {
    .disclosure-navigation .primary-menu { display: flex; flex-wrap: wrap; }
    .disclosure-navigation .primary-menu > li { float: none; }
    .disclosure-navigation ul ul:not([hidden]) { left: auto; right: 0; top: 100%; max-width: calc(100vw - 2rem); }
    .disclosure-navigation ul ul ul:not([hidden]) { right: 100%; top: 0; }
    .disclosure-navigation .dropdown-toggle { top: 0; }
    .disclosure-navigation ul ul a { max-width: 100%; }
}
/* Without JavaScript every navigation destination remains reachable. */
.no-js #site-header-menu { display: block; }
.no-js #site-navigation ul ul { display: block; position: static; margin-left: 1em; }
.no-js #site-navigation ul ul::before, .no-js #site-navigation ul ul::after { content: none; }

/* Keep the page-top action clear of the presentation controls. */
button.back-to-top { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; bottom: .75rem; right: .75rem; transform: none; -webkit-transform: none; background: #172a3a; color: #fff; border: 2px solid #fff; border-radius: .25rem; font-size: 24px; line-height: 1; z-index: 9990; }
button.back-to-top[hidden] { display: none !important; }
button.back-to-top:focus-visible { outline: 3px solid #005fcc; outline-offset: 2px; box-shadow: 0 0 0 5px #fff; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Preserve table semantics and confine two-dimensional scrolling to the table. */
.entry-content table { table-layout: auto; max-width: 100%; }
.entry-content table td, .entry-content table th { white-space: normal; overflow-wrap: anywhere; }
.table-scroll-shell { position: relative; max-width: 100%; min-width: 0; margin-bottom: 1.75em; }
.table-scroll-region { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-gutter: stable; padding: 3px; }
.table-scroll-region:focus-visible { outline: 3px solid #111; outline-offset: 2px; box-shadow: 0 0 0 5px #fff; }
.entry-content .table-scroll-region > table { display: table; width: 100%; max-width: none; margin: 0; }
.entry-content .table-scroll-region > table th, .entry-content .table-scroll-region > table td { min-width: 12em; padding: .75em; vertical-align: top; line-height: 1.55; white-space: normal; overflow-wrap: anywhere; word-break: normal; -webkit-hyphens: none; hyphens: none; }
.entry-content .table-scroll-region th > :last-child, .entry-content .table-scroll-region td > :last-child { margin-bottom: 0; }
.entry-content .table-scroll-region thead th { background: #eef2f6; }
.entry-content .table-scroll-region tbody tr:nth-child(even) { background: #f7f9fb; }
@media (max-width: 56.875em) {
  .page-id-337 .entry-content .table-scroll-region tr > :nth-child(2) { min-width: 14em; }
  .page-id-337 .entry-content .table-scroll-region tr > :nth-child(4) { min-width: 16em; }
}
.entry-content .wsn-data-table tbody th[scope="row"] { font-weight: 400; }
.entry-content .table-scroll-hint { font-size: .875rem; line-height: 1.5; margin: 0 0 .6em; color: #515151; }
.table-scroll-hint[hidden] { display: none !important; }
.table-scroll-shell::before, .table-scroll-shell::after { position: absolute; bottom: 0; height: var(--table-viewport-height, 0); width: 16px; z-index: 1; pointer-events: none; }
.can-scroll-start::before { content: ""; left: 0; background: linear-gradient(to right, #0004, transparent); }
.can-scroll-end::after { content: ""; right: 0; background: linear-gradient(to left, #0004, transparent); }
html.bf-high-contrast .can-scroll-start > .table-scroll-region { border-left: 3px solid #ffdf70 !important; }
html.bf-high-contrast .can-scroll-end > .table-scroll-region { border-right: 3px solid #ffdf70 !important; }
@media print {
  .table-scroll-region { overflow: visible; box-shadow: none !important; }
  .entry-content .table-scroll-region th, .entry-content .table-scroll-region td { min-width: 0 !important; overflow-wrap: anywhere; }
  .table-scroll-hint { display: none !important; }
  .table-scroll-shell::before, .table-scroll-shell::after { display: none; }
}

.wsn-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.75em; }
.wsn-gallery > *, .wsn-layout-row > * { min-width: 0; }
.wsn-layout-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1rem; margin-bottom: 1.75em; }
@media (max-width: 44em) { .wsn-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wsn-layout-row { grid-template-columns: minmax(0, 1fr); } }
html.bf-high-contrast body .wpbs-container .wpbs-date-inner { background: transparent !important; }
html.bf-high-contrast body .wpbs-container .wpbs-date-number { background: #111 !important; color: #fff !important; }
.wpbs-container button:focus-visible, .wpbs-container select:focus-visible { outline: 3px solid #111; outline-offset: 2px; box-shadow: 0 0 0 5px #fff; }
