:root {
  --fore-color: #666;

  --back-color: #ffffff;
  --back-color-lightgray: #fafafa;
  --back-color-gray: #f2f2f2;
  --back-color-darkgray: #dddada;
  --back-color-dark: #465666;

  --blue-color: rgb(69, 109, 164);
  --orange-color: rgb(231, 87, 52);

  --nav-bg: #f2f2f2;
  --nav-fg: #666;
  --nav-fg-hover: rgb(75, 123, 164);
  --nav-fg-dim: #666; /* slate-300 */
  --nav-accent: #22d3ee; /* cyan-400 */
  --submenu-bg: #f2f2f2; /* gray-900 */
  --border: #1f2937; /* gray-800 */
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.25);

  --radius: 10px;
  --speed: 0.16s;
}

body {
  color: var(--fore-color);
  background-color: var(--back-color);
  font-family: 'roboto slab';
  font-size: 14px;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.7rem;
  margin: 0;
  padding: 0;
}

.main-header {
  position: fixed;
  z-index: 99999;
  top: 0;
  left: 0;
  right: 0;
  -webkit-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
  -moz-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
  font-weight: 500;
  line-height: 2rem;
  background: #f2f2f2 !important;
  display: flex;
  justify-content: center;
}
.main-header-content {
  display: flex;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.main-header-logo {
  width: 213px;
  height: 78px;
  min-width: 213px;
  min-height: 78px;
  max-width: 213px;
  max-height: 78px;

  background-image: url(/resources/img/ms_2840.png);
  background-position: center center;
  background-repeat: none;
}

.main-footer {
  font-family: 'PT Sans', Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  font-weight: bold;
  color: var(--blue-color);
  text-align: center;
  padding: 0.5rem 0;
  background: linear-gradient(to bottom, #f2f2f2, #e6e6e6);
}

.main-footer a {
  color: var(--blue-color);
  text-decoration: none;
}

.main-footer a:hover,
a:visited {
  color: var(--blue-color);
  text-decoration: underline;
}

.main-content {
  padding-top: 6rem;
  min-height: calc(100vh - 1.5rem - 8em);
  display: none;
}

.content-blue {
  color: var(--blue-color);
}

.content-header {
  background-image: url(/resources/img/pgbk.jpg);
  color: white;
  text-align: center;
  font-size: 3rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  line-height: 2.8rem;
}

.content-footer {
  background: #f2f2f2;
  padding-top: 2rem;
  padding-bottom: 0rem;
}

.content-centered {
  text-align: center;
}

.content-central-image {
  width: max(80%, 1000px);
  max-width: 80vw;
  border-radius: 10px;
  /* box-shadow: 0 4px 8px rgba(0,0,0,0.1); */
}

.content-column {
  flex: 1;
  max-width: 1000px;
  min-width: 300px;
}

.content-panel {
  padding: 2rem;
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}
.content-panel h1 {
  margin: 0px;
  padding-bottom: 1rem;
  font-size: 2rem;
  color: var(--orange-color);
  font-weight: 500;
}

.content-panel h2 {
  margin: 0px;
  padding-bottom: 0.5rem;
  font-size: 1.6rem;
  color: rgb(51, 51, 51);
  font-weight: 500;
}

.content-panel p + h2 {
  padding-top: 0.75rem;
}

.content-panel h3 {
  margin: 0px;
  padding-bottom: 0.5rem;
  font-size: 1.3rem;
  color: rgb(51, 51, 51);
  font-weight: 500;
}

.content-panel p {
  margin: 0;
  padding-bottom: 1rem;
  font-size: 1.3rem;
  font-weight: 500;
}

.content-panel ul {
  margin: 0;
  padding-bottom: 1rem;
  font-size: 1.3rem;
  list-style: disc;
  line-height: 1.5rem;
  padding-inline-start: 1.3rem;
  font-weight: 500;
}

.content-panel ol {
  margin: 0;
  padding-bottom: 1rem;
  font-size: 1.3rem;

  line-height: 1.5rem;
  padding-inline-start: 1.3rem;
  font-weight: 500;
}

.content-panel li {
  margin: 0;
  padding-bottom: 0.4rem;
  font-weight: 500;
}

.content-panel a,
a:visited {
  color: var(--blue-color);
  text-decoration: none;
}
.content-panel a:hover {
  color: var(--blue-color);
  text-decoration: underline;
}

.content-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-direction: row;
  margin-bottom: 1rem;
  gap: 2rem;
}
.content-card-reverse {
  flex-direction: row-reverse;
}
.content-card-topdown {
  flex-direction: column;
}
.content-card-text {
  flex-grow: 1;
}
.content-card-image {
  width: 40%;
  max-width: 9rem;
}
.content-card-image img {
  width: 100%;
  height: 100%;
  border-radius: 5px;
}

.content-table-2 {
  display: grid;
  grid-template-columns: auto auto;
  gap: 2rem;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.content-table-2 div:nth-child(2n-1) {
  text-align: right;
  font-weight: bold;
}

.collapsable-list {
  display: flex;
  gap: 1rem;
  flex-direction: column;
}

.content-collapsible {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: var(--nav-bg);
  font-size: 1.3rem;
  font-weight: 500;
}

.content-collapsible[open] {
  border: 1px solid var(--blue-color);
}

.content-collapsible[open] summary {
  color: var(--blue-color);
  font-weight: bold;
}

.content-collapsible summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.3rem;
  outline: none;
  padding: 0.5rem;
}
/* Remove default marker and add your own */
.content-collapsible summary::-webkit-details-marker {
  display: none;
}
.content-collapsible summary::after {
  content: '▾';
  float: right;
  transition: transform 0.2s ease;
  font-size: 2em;
}
.content-collapsible[open] summary::after {
  transform: rotate(180deg);
}
.content-collapsible .content-collapsible-content {
  padding: 0.5rem;
  background: var(--back-color);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

details[open] summary ~ * {
  animation: sweep 0.5s ease-in-out;
}

@keyframes sweep {
  0% {
    opacity: 0;
    transform: translateX(-10px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.page-header {
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  min-height: 6rem;
  max-height: 6rem;
  height: 6rem;
  align-items: center;
  justify-content: center;
  background: var(--back-color-gray);
  font-family: 'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu,
    Cantarell, 'Helvetica Neue', Arial;
}

.page-header-logo {
  height: 5rem;
  min-width: 12rem;
  background-image: url(/resources/img/ms_2840.png);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
}
.page-header-menu-items {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  padding-left: 1rem;
  position: relative;
}

.page-header-menu-items > li {
  position: relative;
}

.page-header-menu-items > li > button {
  /* text-transform: uppercase; */
  font-weight: 600;
  font-size: 1rem;
  border: none;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: var(--back-color-gray);
}

.page-header-menu-items > li > button:hover {
  background: var(--back-color-darkgray);
}

.page-header-menu-items > li a {
  color: var(--fore-color);
  text-decoration: none;
}
.page-header-menu-items > li a:visited {
  color: var(--fore-color);
  text-decoration: none;
}

.page-header-toggle {
  text-decoration: none;
  cursor: pointer;
  transition: background var(--speed) ease, color var(--speed) ease,
    box-shadow var(--speed) ease;
  outline-offset: 5px;
}

.page-header-toggle[aria-expanded='true'] {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.page-header-menu-item
  > .page-header-toggle[aria-expanded='true']
  + .page-header-submenu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Submenu panel */
.page-header-submenu {
  font-size: 1rem;
  position: absolute;
  /* right: 0; */
  top: 100%;
  margin-top: 0.4rem;
  padding: 0.35rem;
  background: var(--submenu-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  list-style: none;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity var(--speed) ease, transform var(--speed) ease;
  z-index: 50;
}

.page-header-submenu-left {
  right: auto;
  left: 0;
}
.page-header-submenu-right {
  right: 0;
  left: auto;
}

.page-header-submenu[hidden] {
  display: block; /* keep layout but still hidden/aria accurate */
}

.page-header-submenu li {
  margin: 0;
}

.page-header-sublink-mobile {
  margin-left: 1rem;
}

.page-header-submenu-mobile {
  display: none;
}

.page-header-submenu-mobile > button > a {
  font-size: 2rem;
}

.page-header-submenu-mobile .page-header-sublink {
  padding-top: 0.15rem;
  padding-bottom: 0.15rem;
}

.page-header-sublink {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  color: var(--fore-color);
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--speed) ease, color var(--speed) ease;
  font-weight: bold;
}
.page-header-sublink:hover,
.page-header-sublink:focus {
  color: var(--fore-color);
  background: var(--back-color-darkgray);
  outline: none;
}

.page-header-sublink a {
  color: var(--fore-color);
}
.page-header-sublink a:hover {
  color: var(--fore-color);
}
.page-header-sublink a:visited {
  color: var(--fore-color);
}

pre {
  background: var(--back-color-gray);
  padding: 1rem;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 1.1rem;
  line-height: 1.5rem;
}

.home-top-panel {
  background-image: url(/resources/img/banner-resized.jpg);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 15rem;
  display: flex;
  justify-content: center;
}
.home-top-panel-textbox {
  max-width: 70%;
  width: 70%;
  color: var(--back-color);
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: end;
}
.home-top-panel-title {
  font-size: 2rem;
  line-height: 2rem;
  background-color: var(--back-color-dark);
  padding: 0.75rem;
  text-align: right;
}
.home-top-panel-subtitle {
  font-family: 'PT Sans', Arial, Helvetica, sans-serif;
  font-size: 5rem;
  font-weight: bold;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  color: white;

  line-height: 4rem;
  padding: 0.75rem;
}

.home-middle-panel {
  background-image: url(/resources/img/bg.jpg);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 15rem;
  display: flex;
  justify-content: center;
}

.home-middle-panel p {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  /* font-weight: 600; */
}

.home-middle-panel .home-middle-accent {
  color: var(--orange-color);
  padding-top: 0;
  padding-bottom: 0;
  font-size: 1.1rem;
}

.home .content-panel {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  flex-wrap: wrap;
}

.home .content-column {
  min-width: 16em;
  max-width: 25rem;
}

.home .content-card {
  background-color: var(--back-color-gray);
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.home .content-image img {
  max-width: 8rem;
}

.home .content-column h1 {
  font-size: 1.5rem;
}

.home .content-column h2 {
  font-size: 1.3rem;
  color: var(--orange-color);
}

.ab-grid {
  display: grid;
  /* grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); */
  /* grid-template-columns: auto auto auto auto; */
  grid-template-columns:
    minmax(150px, 1fr) minmax(250px, 3fr) minmax(250px, 1fr)
    minmax(100px, 1fr);
  max-width: 1000px;
  width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding: 1rem;
  font-size: 1.3rem;
}

.ab-grid .ab-header {
  display: contents;
  background-color: var(--blue-color);
  color: var(--back-color);
}

.ab-grid .ab-header-col {
  font-weight: bold;
  background-color: var(--blue-color);
  padding: 0.5rem;
  position: sticky;
  top: 5.7rem;
  z-index: 150;
}

.ab-grid .ab-row {
  display: contents;
}

.ab-grid .ab-col {
  padding: 0.5rem;
  border: 1px solid var(--back-color-darkgray);
  position: relative;
  opacity: 0.8;
}

.ab-grid :nth-child(5n) {
  grid-column: 1 / span 4;
  display: none;
  font-size: 1.2rem;
}

.ab-grid .ab-expand .abn-memo {
  display: block;
}

.ab-grid .ab-expand .ab-col {
  /* border: 1px solid red; */
  opacity: 1;
  background-color: var(--back-color-lightgray);
}

.ab-grid .ab-col:nth-child(5n-4) {
  padding-left: 2rem;
  cursor: pointer;
}
.ab-grid .ab-col:nth-child(5n-4)::before {
  content: '▾';
  position: absolute;
  left: 0.2rem;
  top: 0.2rem;
  transition: transform 0.2s ease;
  font-size: 1.5em;
}

.ab-grid .ab-col:nth-child(5n-4)::before {
  content: '▾';
  position: absolute;
  left: 0.2rem;
  top: 0.2rem;
  transition: transform 0.2s ease;
  font-size: 1.5em;
}
.ab-expand .ab-col:nth-child(5n-4)::before {
  transform: rotate(180deg);
  top: 0.6rem;
}

.search-block {
 
}
.search-block .search {
  font-size: 1.3rem;
  float: right;
}

.form input, select, textarea {
  font-size: 1.3rem;
  font-weight: 500;
  width: 500px;
  max-width: 500px;
}

.form ul {
  margin: 0;
  padding-bottom: 1rem;
  font-size: 1.3rem;
  list-style: none;
  line-height: 1.5rem;
  font-weight: 500;
}
.form li{
  padding-bottom: 1rem;
}
.form label{
  font-weight: 600;
  font-size: 1.1rem;
}
.form .form-field-container{
  padding-top: 0.5rem;
}
.form .form-field-required{
  color: var(--orange-color);
  padding-left:0.5rem;
}

.form input[type=submit]{
  margin-top: 2rem;
  padding: 0.5rem;
  max-width: 280px;
}

/* Small screens: stack top-level items horizontally but allow wrap */
@media (max-width: 700px) {
  .page-header {
    justify-content: space-between;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .page-header-submenu-desktop {
    display: none;
  }
  .page-header-submenu-mobile {
    display: block;
  }
}

@media (max-width: 550px) {
  .home-top-panel-subtitle {
    font-size: 3rem;
  }
  .home-top-panel-title {
    font-size: 1.5rem;
  }
}
