/*   dilemna css - layout adjustments   */

*, *::before, *::after { box-sizing: border-box; }

body { margin: 0; background-color: #ffffff; }

img { max-width: 100%; height: auto; }

h1.pagetitle {
  font-family: arial, verdana, serif;
  font-size: 15px;
  font-weight: bold;
  color: #003300;
  margin: 0;
  padding: 0;
  display: block;
}

table.toplinks td:first-child, table.toplinks td:last-child { width: 8px; }

.cmtbox { border: 1px solid #cccccc; border-radius: 6px; padding: 12px; margin: 0 0 14px 0; background-color: #f6f8f6; max-width: 640px; }
.cmtbox label { display: block; font-family: arial, verdana, serif; font-size: 14px; color: #003300; margin: 8px 0 3px 0; }
.cmtbox input, .cmtbox textarea { width: 100%; font-family: arial, verdana, serif; font-size: 15px; padding: 9px; border: 1px solid #b5c3b5; border-radius: 4px; background-color: #ffffff; color: #003300; }
.cmtbox textarea { min-height: 96px; resize: vertical; }
.cmtbox button { margin-top: 10px; min-height: 44px; padding: 10px 22px; font-family: arial, verdana, serif; font-size: 15px; color: #ffffff; background-color: #3da324; border: 0; border-radius: 6px; cursor: pointer; }
.cmtnote { font-family: arial, verdana, serif; font-size: 13px; color: #660000; margin-top: 8px; }

.cmtlist { margin: 0; padding: 0; list-style: none; max-width: 820px; }
.cmtitem { border-top: 1px solid #d8e0d8; padding: 10px 0; overflow-wrap: break-word; word-wrap: break-word; }
.cmtwho { font-family: arial, verdana, serif; font-size: 15px; font-weight: bold; color: #003300; }
.cmtwhen { font-family: arial, verdana, serif; font-size: 12px; color: #557055; }
.cmtbody { font-family: arial, verdana, serif; font-size: 15px; color: #003300; margin-top: 4px; }
.cmtnav { padding: 12px 0 4px 0; }
.cmtnav button { min-width: 44px; min-height: 44px; font-size: 18px; line-height: 1; color: #ffffff; background-color: #3da324; border: 0; border-radius: 6px; cursor: pointer; }
.cmtnav button[disabled] { opacity: .45; cursor: default; }
.cmtnav span { font-family: arial, verdana, serif; font-size: 13px; color: #003300; padding: 0 10px; }

@media (max-width: 1119px) {
  table.toplinks a.topnav {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    font-size: 16px;
    text-align: center;
  }
}

@media (max-width: 740px) {
  span.c1, span.c1red, .cmtbody, .cmtwho { font-size: 16px; }
  span.c2 { font-size: 15px; }
  A:link, A:hover, A:visited, A:visited:hover { font-size: 16px; }

  table.toplinks, table.toplinks tbody, table.toplinks tr { display: block; }
  table.toplinks td { display: block; width: auto; }
  table.toplinks tr { display: flex; flex-wrap: wrap; gap: 4px; }
  table.toplinks td:first-child, table.toplinks td:last-child { display: none; }
  table.toplinks td { flex: 1 1 46%; }
  table.toplinks a.topnav { padding: 10px 6px; }

  table.bottom, table.bottom tbody, table.bottom tr, table.bottom td { display: block; width: 100%; }
  table.bottom td:nth-child(1), table.bottom td:nth-child(4), table.bottom td:nth-child(7) { display: none; }
  A:link.bottomlink, A:hover.bottomlink, A:visited.bottomlink, A:visited:hover.bottomlink {
    font-size: 14px;
    display: block;
    min-height: 34px;
    line-height: 34px;
  }

  a.topnav {
    font-size: 16px;
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 8px;
  }

  .leftimage, .rightimage {
    display: block;
    float: none;
    margin: 8px 0 12px 0;
  }

  a[href*="facebook.com"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }

  .cmtnote { font-size: 14px; }
  .cmtwhen { font-size: 13px; }
  .cmtnav span { font-size: 14px; }
  .cmtbox label { font-size: 15px; }
}

/* nav button contrast (white text needs a darker green than the original #3da324) */
A:link.topnav, A:visited.topnav, A:hover.topnav, A:visited:hover.topnav { background-color: #3da324; }
.cmtbox button, .cmtnav button { background-color: #3da324; }

/* footer links: keep the original 11px type but give each link a 24px hit area */
A:link.bottomlink, A:visited.bottomlink, A:hover.bottomlink, A:visited:hover.bottomlink {
  display: inline-block;
  padding: 6px 0;
  line-height: 12px;
}
