/* Shared layout fixes for the reconstructed site. */
iframe.site-header, iframe.site-footer { display: block; width: 100%; border: 0; }
iframe.site-header { height: 150px; }
body[data-nav-key="header"] .navbar-default { min-height: 0; }
body[data-nav-key="header"] .navbar-default .navbar-nav { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); height: auto !important; }
body[data-nav-key="header"] .navbar-default .navbar-nav::before,
body[data-nav-key="header"] .navbar-default .navbar-nav::after { display: none; }
body[data-nav-key="header"] .navbar-default .navbar-nav > li { width: auto; height: auto; min-width: 0; }
body[data-nav-key="header"] .navbar-default .navbar-nav > li > a { display: flex; align-items: center; justify-content: center; height: 50px; padding: 4px; line-height: 1.25; }
a:focus-visible, button:focus-visible { outline: 2px solid #0a63ab; outline-offset: 3px; }
body[data-nav-key="home"] .banner_height { height: auto; margin-top: 18px; margin-bottom: 32px; }
body[data-nav-key="home"] .wheel { height: auto; }
body[data-nav-key="home"] .aside_right { min-height: 550px; height: auto !important; float: none; margin-top: 0; }
body[data-nav-key="home"] .aside_img video { display: block; width: 100% !important; }
body[data-nav-key="home"] .wheel .carousel .carousel-inner .carousel-caption { inset: auto 0 0; display: flex; align-items: center; justify-content: center; height: auto; min-height: 40px; padding: 6px 80px; box-sizing: border-box; text-align: center; }
body[data-nav-key="home"] .wheel .carousel-caption h4 { position: relative; top: 1px; margin: 0; line-height: 1.35; overflow-wrap: anywhere; }
body[data-nav-key="home"] .wheel .carousel .carousel-indicators { display: flex; align-items: center; gap: 4px; width: auto; height: 40px; bottom: 0; margin: 0; }
body[data-nav-key="home"] .wheel .carousel-indicators li { flex-shrink: 0; margin: 0; }
.home-carousel-toggle { position: absolute; inset: 12px 12px auto auto; z-index: 16; width: 34px; height: 34px; padding: 0; border: 1px solid #fff; border-radius: 4px; background: rgba(0, 0, 0, .65); color: #fff; }
.home-carousel-toggle:focus-visible { outline-color: #fff; }
[data-home-carousel] .carousel-inner .item > a, [data-home-carousel] .carousel-inner .item > a > img { display: block; width: 100%; height: 100%; border-radius: 8px; }
[data-home-carousel] .carousel-inner .item > a > img { object-fit: cover; }
.banner_height:has([data-home-carousel]:not(:has(.carousel-inner > .item))) .wheel { display: none; }
.banner_height:has([data-home-carousel]:not(:has(.carousel-inner > .item))) > :last-child { width: 100%; }
.banner_height:has([data-home-carousel]:not(:has(.carousel-inner > .item))) .aside_right { min-height: 0; }
body[data-nav-key="home"] .wheel .carousel:has(.carousel-indicators > li:nth-child(5)) .carousel-indicators { bottom: 43px; left: 50%; right: auto !important; height: 22px; padding: 3px 6px; border-radius: 12px; background: #163c62b8; transform: translateX(-50%); }
body[data-nav-key="home"] .aside_img video { max-height: 270px; }
.home-video { margin: 0; }
.home-video-caption { margin: 0 0 6px; padding: 8px 12px; border-radius: 0 0 4px 4px; background: #0b5c92; color: #f4faff; font-size: 14px; line-height: 1.5; text-align: center; overflow-wrap: anywhere; }
.aside_li[data-home-overflow] { max-height: 280px; overflow-y: auto; scrollbar-color: #c5e3f8 #016fb8; }
.aside_li[data-home-overflow]:focus-visible, .aside_li li > a:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.aside_right .aside_layout .aside_li[data-home-entries] > li > a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 8px; padding-inline: 2px; }
.home-entry-main { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.home-entry-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.home-entry-date { color: #e0f1fd; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.home-entry-new { flex: 0 0 auto; padding: 0 4px; border-radius: 3px; background: #ffdf8a; color: #513500; font-size: 12px; font-weight: 700; line-height: 1.45; }
.home-entry-new[hidden] { display: none; }
.home-announcement { margin-bottom: 32px; }
.home-announcement-panel { padding: 20px clamp(14px, 3vw, 28px); border: 1px solid #d7e3ee; border-radius: 6px; }
.home-announcement h2 { margin: 0 0 12px; border-bottom: 2px solid #0a63ab; padding-bottom: 8px; color: #163c62; font-size: 22px; }
.home-announcement-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 16px; line-height: 1.65; }
.home-announcement-images { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0; }
.home-announcement-images img { max-width: min(100%, 360px); max-height: 300px; object-fit: contain; }
.home-announcement-files { margin: 12px 0 0; padding-left: 20px; }
.home-announcement-files li { margin-top: 6px; list-style: disc; }
.main_left h4 > .site-sidebar-title { position: absolute; left: 0; bottom: 0; padding-bottom: 5px; border-bottom: 2px solid #0a63ab; color: #333; }
.main_left .nav-tabs > li { position: relative; padding: 0 !important; height: auto; line-height: normal; }
.main_left .nav-tabs > li.active::before { position: absolute; inset: 0 auto 0 0; width: 4px; height: auto; padding: 0; background: #245c98; pointer-events: none; }
.main_left .nav-tabs > li > a,
.main_left .nav-tabs > li.active > a { display: flex; align-items: center; min-height: 50px; height: auto; box-sizing: border-box; margin: 0; border: 0; border-radius: 0; font-size: 16px !important; line-height: 1.45; }
.main_left .nav-tabs > li > a:focus:not(:focus-visible) { outline: none; }
.main_left .nav-tabs > li > a:focus-visible { outline-offset: -3px; }
.main_left .ul_left1 > li > .glyphicon-menu-right { pointer-events: none; }
.local-member-notice { box-sizing: border-box; max-width: 100%; padding: 10px 16px; margin: 10px auto; background: #f0f7fc; border: 1px solid #d3e6f5; color: #315b78; font-size: 14px; line-height: 1.7; }
body[data-nav-key="member"] > .container { flex-direction: column; }
.main_right .site-activity-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; gap: 16px; padding: 10px 0 0; margin: 0 0 22px; }
.site-activity-grid::before, .site-activity-grid::after { display: none; }
.main_right .travel_img > li.site-activity-card { width: auto; height: auto; min-width: 0; margin: 0; float: none; border: 1px solid #d7e3ee; background: #fff; }
.main_right .site-activity-card[hidden], .main_right .site-activity-pagination[hidden] { display: none; }
.main_right [data-content-pagination] > [hidden] { display: none; }
.site-activity-link { display: flex; flex-direction: column; height: 100%; color: #163c62; text-decoration: none; }
.site-activity-link:hover, .site-activity-link:focus { color: #163c62; text-decoration: none; }
.site-activity-link:focus-visible { outline-offset: -3px; }
.main_right .site-activity-grid .site-activity-cover { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #e5f1fb; }
.site-activity-copy { display: flex; flex: 1; flex-direction: column; justify-content: space-between; gap: 12px; padding: 12px; }
.site-activity-copy h3 { margin: 0; color: inherit; font-size: 16px; line-height: 1.45; overflow-wrap: anywhere; }
.site-activity-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 12px; }
.site-activity-date { color: #4a657e; font-size: 13px; white-space: nowrap; }
.site-activity-action { display: inline-flex; align-items: center; margin-left: auto; gap: 6px; padding: 6px 10px; border: 1px solid #b5d0e6; border-radius: 4px; background: #edf5fb; color: #1c568b; font-size: 13px; line-height: 1.3; white-space: nowrap; }
.site-activity-link:hover .site-activity-action, .site-activity-link:focus-visible .site-activity-action { background: #1c568b; border-color: #1c568b; color: #fff; }
.main_right .content nav.site-activity-pagination { height: auto; text-align: center; }
.main_right .content nav.site-activity-pagination ul { position: static; transform: none; margin: 0 0 14px; }
.main_right .content nav.site-content-pagination { height: auto; text-align: center; }
.main_right .content nav.site-content-pagination ul { position: static; transform: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 0 0 14px; }
.site-history-link { text-align: center; margin-bottom: 22px; }
@media (max-width: 991px) {
  .wheel .carousel .carousel-inner { height: clamp(280px, 58vw, 550px) !important; }
  body[data-nav-key="home"] .aside_right { min-height: 0; margin-top: 16px; float: none; }
  .aside_right .aside_layout .aside_li > li { height: auto; min-height: 40px; padding: 5px 0; line-height: 1.7; }
  .aside_right .aside_layout .aside_li > li > a { white-space: normal; line-height: 1.7; }
  .home-entry-title { overflow-wrap: anywhere; }
  .aside_img video { width: 100%; max-height: 320px; }
  .top > .container .col-xs-4 { max-width: 100%; }
  .main_right .site-activity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  html, body { min-width: 0; max-width: 100%; }
  body { overflow-x: hidden; }
  .container { width: 100%; }
  iframe.site-header { height: 174px; }
  .top { height: 86px; line-height: 86px; }
  .top > .container .col-xs-4 { width: 100% !important; height: 86px !important; }
  .top img { width: min(100%, 360px) !important; height: auto !important; max-height: 86px; object-fit: contain; }
  .navbar-header { display: none; }
  .navbar-default .navbar-collapse { display: block !important; border: 0; padding: 0; max-height: none; }
  body[data-nav-key="header"] .navbar-default .navbar-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
  body[data-nav-key="header"] .navbar-default .navbar-nav > li { float: none; width: 100%; height: auto; border-radius: 0 !important; }
  body[data-nav-key="header"] .navbar-default .navbar-nav > li > a { height: 44px; padding: 4px 2px; border-radius: 0 !important; font-size: 14px; }
  body[data-nav-key="home"] .banner_height { margin-top: 12px; margin-bottom: 24px; }
  body[data-nav-key="home"] .wheel .carousel .carousel-inner .carousel-caption { padding-inline: 65px; }
  body[data-nav-key="home"] .wheel .carousel-caption h4 { font-size: 15px; }
  .col-sm-3.hidden-xs { display: block !important; width: 100%; }
  .col-sm-3.hidden-xs .main_left { padding: 0; margin: 12px 0; }
  .main_left .left_nav, .main_left ul.nav-tabs { display: flex; flex-wrap: wrap; border-bottom: 1px solid #d7e2ec; }
  .main_left .left_nav::before, .main_left .left_nav::after,
  .main_left ul.nav-tabs::before, .main_left ul.nav-tabs::after { display: none; }
  .main_left .left_nav > li, .main_left ul.nav-tabs > li { flex: 1 1 50%; margin: 0; float: none; text-align: center; height: auto !important; }
  .main_left .left_nav > li > a, .main_left ul.nav-tabs > li > a { height: auto !important; min-height: 44px; line-height: 1.5 !important; padding: 10px 12px 10px 25px !important; font-size: 15px !important; }
  .main_right img, .tab-content img { max-width: 100%; height: auto; }
  .main_right embed, .tab-content embed { width: 100%; max-width: 100%; height: 70vh; }
  .main_right .travel_img { padding: 10px 0; }
  .main_right .travel_img > li { width: 48%; height: 170px; margin-right: 2%; }
  .main_right .travel_img > li:nth-child(2n) { margin-right: 0; }
  .main_right .site-activity-grid { padding: 10px 0 0; gap: 12px; }
  .site-activity-copy { gap: 9px; padding: 10px; }
  .site-activity-copy h3 { font-size: 15px; }
  .site-activity-meta { column-gap: 8px; }
  .site-activity-date, .site-activity-action { font-size: 12px; }
  .site-activity-action { gap: 4px; padding: 5px 6px; }
  .row-footer { flex-wrap: wrap; padding: 10px 16px; gap: 10px; text-align: center; }
  .row-footer > div { max-width: 100%; }
  body[data-nav-key="links"] .container img { max-width: calc(100vw - 60px); height: auto; }
  body[data-nav-key="member"] #app { width: 100%; }
  body[data-nav-key="member"] .register-pane, body[data-nav-key="member"] .login-pane { width: 100% !important; margin-left: 0 !important; padding: 0 6px; }
  body[data-nav-key="member"] .el-tabs__item { padding: 0 10px; font-size: 14px; }
  .local-member-notice { margin-left: 15px; margin-right: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  body { opacity: 1; animation: none; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}


.wheel .item > .cms-banner-link, .wheel .item > .cms-banner-link img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}
.cms-page-body { line-height: 2; overflow-wrap: anywhere; }
.cms-page-body img { max-width: 100%; height: auto; }
body[data-nav-key="about"] .cms-page-body figure { margin: 20px 0; text-align: center; }
body[data-nav-key="about"] .cms-page-body figure > img { display: block; width: auto; height: auto; margin: 0 auto; }
.cms-page-body ul, .cms-page-body ol { padding-left: 2em; }
.cms-page-body li { list-style: inherit; }
.cms-page-body table { width: 100%; border-collapse: collapse; }
.cms-page-body td, .cms-page-body th { border: 1px solid #ddd; padding: 8px; }
.article-attachments, .article-file, .home-announcement-files, .member-template-link {
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.article-attachments { margin-top: 16px; padding-top: 10px; border-top: 1px solid #dce6ef; }
section.article-attachments > h2 { margin: 0 0 6px; color: #193d5f; font-size: 16px; font-weight: 600; line-height: 1.5; }
.article-attachments > ul { margin: 0; padding-left: 20px; }
.article-attachments > ul > li { margin: 0 0 4px; list-style: disc; }
.cms-accordion-body { overflow-wrap: anywhere; }
.cms-accordion-body figure { margin: 18px auto; text-align: center; }
.main_right .tab-content .cms-accordion-body img { display: block; width: auto; height: auto; margin: 0 auto; }
.cms-feature-cover { width: min(200px, 35%); height: 100px; object-fit: cover; }
.party-activity-card { border: 1px solid #c5d6e6; border-radius: 6px; margin-bottom: 18px; background: #fff; }
.party-activity-heading { display: grid; grid-template-columns: minmax(100px, 26%) minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 16px; cursor: pointer; list-style: none; }
.party-activity-heading::-webkit-details-marker { display: none; }
.party-activity-heading:hover { background: #f3f8fc; }
.party-activity-heading:focus-visible { outline: 2px solid #21639c; outline-offset: -3px; }
.main_right .tab-content .party-activity-cover { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }
.party-activity-copy { display: grid; min-width: 0; gap: 6px; padding-top: 8px; overflow-wrap: anywhere; }
.main_right .content .party-activity-copy .party-activity-title { color: #173f64; font-size: 18px; font-weight: 600; line-height: 1.45; }
.main_right .content .party-activity-copy .party-activity-summary { color: #465b6d; font-size: 14px; line-height: 1.6; white-space: pre-line; }
.party-activity-toggle { align-self: center; color: #236296; font-size: 13px; white-space: nowrap; }
.party-activity-toggle span:last-child, .party-activity-card[open] .party-activity-toggle span:first-child { display: none; }
.party-activity-card[open] .party-activity-toggle span:last-child { display: inline; }
.party-activity-body { border-top: 1px solid #dce6ef; padding: 18px 20px; }
.party-activity-body figure { margin: 18px auto; text-align: center; }
.main_right .tab-content .party-activity-body img { width: auto; height: auto; }
.party-activity-date { color: #506476; font-size: 13px; margin-bottom: 8px; }
@media (max-width: 600px) {
  .party-activity-heading { grid-template-columns: minmax(80px, 30%) minmax(0, 1fr); gap: 8px 12px; padding: 12px; }
  .party-activity-copy { padding-top: 0; }
  .main_right .content .party-activity-copy .party-activity-title { font-size: 16px; }
  .party-activity-toggle { grid-column: 2; }
  .party-activity-body { padding: 14px; }
}

[data-activity-subsection] .pagination > li > button,
.site-content-pagination .pagination > li > button {
  background: #fff;
  border: 1px solid #ddd;
  color: #1c568b;
  padding: 6px 12px;
}
[data-activity-subsection] .pagination > li.active > button,
.site-content-pagination .pagination > li.active > button {
  background: #1c568b;
  border-color: #1c568b;
  color: #fff;
}
.site-content-pagination .pagination > li > button:disabled { color: #687b8e; cursor: default; }
