

/* Make images flexible */
img {
  max-width: 100%;
  height: auto;
}

/* Make the fixed-width wrapper fluid */
.pagewidth {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Stack floated columns on mobile */
@media (max-width: 768px) {
  .polaroid,
  .polaroidlt,
  .pullquote,
  .contentborder,
  .sidebar,
  .navlist li {
    float: none !important;
    width: 100% !important;
    display: block;
    margin: 1rem 0;
  }

  ul.navlist,
  ul#navlist {
    flex-direction: column; /* stack vertically */
    align-items: stretch; /* make items full width */ /* horizontal center for desktop */

  }

  ul.navlist li,
  ul#navlist li {
    padding: 0.5rem;
    width:100%;
  }
    ul.navlist a {
    text-align: center; /* center the link text */
    border-left: none;
    border-right: none;
  }

  .vertnavlist {
    width: 100% !important;
    padding: 0;
  }

  .vertnavlist li {
    background-position: 0px 0.2em;
    padding-left: 2rem;
  }
    .front a {
    flex: 1 1 100%;
    max-width: none;
  }
}

/* Improve base text readability */
body {
  font-size: 1rem;
  line-height: 1.6;
  padding: 0;
  margin: 0;
}

a {
  word-break: break-word;
}


/* Responsive grid layout for 2-column sections - Valdez index */
.grid-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem 0;
}

.grid-left,
.grid-right {
  flex: 1 1 100%;
}

@media (min-width: 768px) {
  .grid-left,
  .grid-right {
    flex: 1 1 48%;
  }
}

/* Optional styling to match old table appearance */

.section-box {
  background-color: #fff;
  border: 3px solid #000;
  padding: 1rem;
  margin-bottom: 2rem;
}

/* Optional image border (matches original border="1") */
.img-border {
  border: 1px solid #000;
  max-width: 100%;
  height: auto;
}
.noborder {
  border: none !important;
}

.section-header {
  background-color: #99CC99;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  text-align: center;
}



.section-box img {
  max-width: 100%;
  height: auto;
  border: 1px solid #000;
}


.footer-container {
  background-color: #f2f2f2;
  background-color: #e8d3a3;
  border-top: 4px solid #000;
  padding: 1rem;
  margin-top: 0rem;
  
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.footer-column {
  flex: 1 1 100%;
}


@media (min-width: 768px) {
  .footer-column {
    flex: 1 1 30%;
  }
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 1.5rem;
  margin-top: 0;
}


.footer-links li strong {
  margin-left: -1.5rem;
}

.footer-center {
  text-align: center;
  font-size: 0.9rem;
}

.footer a,
.footer a:visited {
  text-decoration: none;
}

.footer a:hover,
.footer a:active,
.footer a:focus {
  text-decoration: underline;
}