/* Original visual identity, with local interactions and responsive layout. */
:root { color-scheme: light; }
html { scroll-behavior: smooth; }
body { overflow-wrap: break-word; }
.skip-link { position: fixed; top: -100px; left: 12px; z-index: 100; padding: 12px; background: #fff; }
.skip-link:focus { top: 12px; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, .table-scroll:focus-visible {
  outline: 3px solid #4c740b; outline-offset: 3px;
}
#maincolumn:focus { outline: none; }
#maincolumn { min-height: 240px; }
#content.two-column #maincolumn { width: 735px; }
#maincolumn img { max-width: 100%; height: auto; }
.static-site #content { overflow: visible; display: flow-root; }
.static-site #maincolumn .nopad { overflow: visible; }
.site-breadcrumb { font-size: 12px; color: #666; margin: 3px 10px 12px; }
.empty-state { padding: 14px; margin: 10px; background: #f5f5f0; color: #555; }
#sgf { clear: both; }
.static-site #footer { max-width: 100%; box-sizing: border-box; }
[hidden] { display: none !important; }
.table-scroll { max-width: 100%; overflow-x: auto; margin-bottom: 12px; }
.data-table { border-collapse: collapse; width: 99%; font-size: 13px; }
.data-table td, .data-table th { border: 1px solid #c7cfc1; padding: 9px 7px; vertical-align: top; }
.data-table th { background: #99ccff; font-weight: bold; text-align: center; }
.data-table p { margin: 0; }
.data-table tbody tr:nth-child(even) { background: #f8faf3; }
.local-filter { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 12px 10px; font-size: 12px; }
.local-filter input { min-width: 100px; width: 175px; max-width: 100%; border: 1px solid #91a760; border-radius: 3px; padding: 7px; font: inherit; }
.local-filter button, .viewer-controls button { border: 1px solid #829f34; background: #eef5d8; color: #334a09; padding: 7px 12px; border-radius: 3px; cursor: pointer; font: inherit; }
#filter-count { color: #666; }
#pillmenu a[aria-current] { background-image: url(source/templates/siteground-j25-59/images/pillmenu_bg_hover.png); }
.photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 10px; }
.photo-grid a { display: block; border: 1px solid #d5dfbd; background: #f7faee; padding: 4px; border-radius: 3px; }
.photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.photo-grid a:hover { border-color: #688625; }
#photo-viewer { border: 0; border-radius: 6px; padding: 46px 16px 16px; width: min(960px, 92vw); max-height: 94vh; box-sizing: border-box; background: #fff; }
#photo-viewer::backdrop { background: rgb(0 0 0 / 80%); }
#photo-viewer figure { margin: 0; text-align: center; }
#viewer-image { max-width: 100%; max-height: 70vh; object-fit: contain; }
#viewer-caption { margin: 10px 0; font-size: 14px; line-height: 1.5; color: #333; }
.viewer-close { position: absolute; right: 12px; top: 10px; padding: 7px 12px; border: 1px solid #aaa; border-radius: 3px; background: #fff; cursor: pointer; }
.viewer-controls { display: flex; justify-content: center; align-items: center; gap: 20px; }
details { margin: 16px 10px; }
summary { cursor: pointer; font-weight: bold; padding: 8px; }
@media (max-width: 979px) {
  #page_bg { background: #fff; }
  div.center, #topw, #content, #footer { width: calc(100% - 24px); max-width: 940px; }
  #wrapper { width: 100%; }
  #topw { padding-top: 10px; }
  #logo { width: 100% !important; height: auto; min-height: 30px; }
  #search { display: none; }
  #tabarea, #tabarea_l, #tabarea_r, #tabmenu { width: 100%; }
  .pill, .pill_m { width: 100%; }
  .pill_m { height: auto; min-height: 90px; background-size: auto 100%; }
  #pillmenu { padding: 6px 8px 6px 120px; }
  #pillmenu ul { display: flex; flex-wrap: wrap; justify-content: flex-end; }
  #pillmenu li { float: none; }
  #pillmenu li a { height: auto; line-height: 1.5; padding: 10px 8px; margin: 1px; font-size: 13px; min-height: 22px; }
  #header { width: calc(100% - 24px); background-size: cover; height: clamp(120px, 20vw, 188px); }
  #newsflash { max-width: calc(100% - 24px); margin: 10px auto; }
  #newsflash, #newsflash div, #newsflash .module div div div { width: auto !important; max-width: 100%; }
  #content { display: flex !important; flex-wrap: wrap; gap: 15px; }
  .static-site #content div#maincolumn { width: calc(100% - 215px); float: none; min-width: 0; }
  #content > .cpathway { width: 100%; flex-basis: 100%; }
  #leftcolumn { width: 200px; float: none; }
  #rightcolumn { width: 100%; float: none; }
  #rightcolumn .module div div div { width: auto; }
  #rightcolumn .module div div div div { width: auto; }
  #rightcolumn p { display: inline-block; margin: 4px; }
  #rightcolumn .module { background: #eef6ce; border: 1px solid #d6e5ad; border-radius: 5px; padding: 12px; }
  #rightcolumn .module div { background: none !important; width: auto !important; padding: 0 !important; }
  #rightcolumn .module h3 { width: auto; background: #bfde58; border-radius: 3px; padding: 3px 8px; height: auto; }
  #rightcolumn .custom p { display: grid; grid-template-columns: repeat(auto-fit, minmax(74px, 1fr)); gap: 10px; align-items: center; justify-items: center; margin: 12px 0 0; }
  #rightcolumn .custom p a { display: block; }
  #rightcolumn .custom img { width: 74px; height: 60px; object-fit: contain; }
  #sgf { padding: 10px 12px; line-height: 1.7; }
}
@media (max-width: 650px) {
  body { font-size: 14px; line-height: 1.65; }
  #content { display: flex; flex-direction: column; }
  #leftcolumn, .static-site #content div#maincolumn, #rightcolumn { width: 100%; }
  #content > .cpathway { flex-basis: auto; }
  #header { height: auto; padding-top: 150px; background-position: left top; background-size: auto 150px; }
  #header > div { width: 100% !important; float: none !important; margin: 0 !important; }
  #header #newsflash { height: auto; max-width: 100%; overflow: visible; margin: 10px 0; font-size: 13px; }
  #header #newsflash h3 { width: auto; }
  #header #newsflash ul { padding-left: 22px; }
  #maincolumn { order: 1; }
  #leftcolumn { order: 2; }
  #rightcolumn { order: 3; }
  #leftcolumn div.module, #leftcolumn div.module div, #leftcolumn div.module div div, #leftcolumn div.module div div div { width: 100%; box-sizing: border-box; }
  #leftcolumn h3, #rightcolumn h3 { width: auto; }
  #leftcolumn .module { background: #eef6ce; border: 1px solid #d6e5ad; border-radius: 5px; padding: 12px; }
  #leftcolumn .module div { background: none !important; padding: 0 !important; }
  #leftcolumn .module h3 { background: #bfde58; height: auto; border-radius: 3px; padding: 3px 8px; }
  #pillmenu { padding-left: 104px; }
  #pillmenu ul { justify-content: flex-start; }
  #pillmenu li a { padding: 8px 7px; }
  .pill_m { min-height: 116px; background-position: top left; }
  #newsflash li { padding-left: 0; }
  #maincolumn h2 { height: auto; line-height: 1.6; font-size: 18px; }
  #maincolumn p { letter-spacing: normal !important; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .data-table { min-width: 520px; }
  .site-breadcrumb { margin-left: 0; }
  .local-filter { margin-left: 0; margin-right: 0; }
}
/* Let wrapped navigation and the full mission text determine their own height. */
.static-site .pill_m { height: auto; min-height: 116px; background-size: auto 116px; background-position: left center; background-color: #c3e34c; }
.static-site #pillmenu { padding-left: 160px; }
.static-site #pillmenu ul { display: flex; flex-wrap: wrap; justify-content: flex-end; }
.static-site #pillmenu li { float: none; display: flex; }
.static-site #pillmenu li a { float: none; display: flex; align-items: center; justify-content: center; height: auto; min-height: 116px; line-height: 1.5; padding: 0 16px; box-sizing: border-box; }
.static-site #header { height: auto; min-height: 188px; display: flow-root; box-sizing: border-box; }
.static-site #header > div { width: min(450px, calc(100% - 32px)) !important; margin: 20px 16px 16px 0 !important; }
.static-site #header #newsflash { height: auto; overflow: visible; margin: 0; max-width: 100%; }
.static-site #header #newsflash div { width: auto !important; max-width: 100%; box-sizing: border-box; }
.static-site #header #newsflash h3 { width: auto; height: auto; min-height: 26px; }
@media (max-width: 979px) {
  .static-site #pillmenu { padding: 6px 8px 6px 120px; }
  .static-site #pillmenu li a { min-height: 44px; padding: 10px 8px; }
  .static-site #header { display: grid; grid-template-columns: minmax(120px, .9fr) minmax(0, 1.4fr); background-size: auto 188px; background-position: left top; }
  .static-site #header > div { grid-column: 2; float: none !important; width: auto !important; min-width: 0; margin: 16px !important; }
}
@media (max-width: 650px) {
  .static-site #pillmenu { padding-left: 104px; }
  .static-site #pillmenu ul { justify-content: flex-start; }
  .static-site #pillmenu li a { padding: 8px 7px; }
  .static-site #header { display: flow-root; padding-top: 150px; background-size: auto 150px; }
  .static-site #header > div { width: 100% !important; margin: 10px 0 !important; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
