:root {
  color-scheme: light;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-wrap: anywhere;
}

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

table {
  max-width: 100%;
}

td,
th {
  overflow-wrap: anywhere;
}

object,
embed {
  display: none !important;
}

input,
select,
textarea,
button {
  max-width: 100%;
}

.mylinks-category-img {
  height: 50px;
  width: auto;
  max-width: none;
}

.mylinks-category-table {
  border-collapse: separate;
  border-spacing: 8px 10px;
}

.mylinks-category-icon {
  width: 56px;
  white-space: nowrap;
}

.mylinks-category-title {
  min-width: 6.5em;
  width: auto !important;
  white-space: normal;
  overflow-wrap: normal;
}

.archive-search-page {
  max-width: 860px;
  margin: 24px auto;
  padding: 0 16px 48px;
  font-size: 14px;
  line-height: 1.6;
}

.archive-search-form {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 18px 0;
}

.archive-search-form input[type="search"] {
  flex: 1 1 18em;
  min-width: 0;
  padding: 5px 7px;
}

.archive-search-form button {
  padding: 5px 12px;
}

.archive-search-status {
  color: #666;
  margin: 12px 0;
}

.archive-search-results {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.archive-search-result {
  border-top: 1px solid #d0d0d0;
  padding-top: 12px;
}

.archive-search-result h2 {
  font-size: 16px;
  margin: 0 0 5px;
}

.archive-search-result p {
  margin: 0 0 4px;
}

.archive-search-url {
  color: #666;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.marimba-archive-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

.marimba-archive-table-scroll > table {
  max-width: none;
}

.legacy-amazon-search {
  line-height: 1.6;
}

.legacy-amazon-search form {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.legacy-amazon-search input[type="search"] {
  width: 14em;
}

body.tinyd0-letter-page #content img[src$="nat.jpg"] {
  height: auto;
  max-width: none;
  width: 225px;
}

body.tinyd0-letter-page #content img[src$="gif/logo.gif"] {
  height: 55px;
  max-width: none;
  width: 142px;
}

.bbs2-frame {
  width: 100%;
  display: block;
  border: 1px solid #999;
  box-sizing: border-box;
  background: #fff;
}

.bbs2-tree-frame {
  height: 330px;
}

.bbs2-body-frame {
  height: 1200px;
  margin-top: 8px;
}

.bbs2-pagefind-text {
  height: 1px;
  left: -9999px;
  overflow: hidden;
  position: absolute;
  top: auto;
  width: 1px;
}

body.bbs2-page #main_area {
  box-sizing: border-box;
  overflow: hidden;
}

body.bbs2-page .bbs2-tree-frame {
  height: 360px;
}

body.bbs2-page .bbs2-body-frame {
  height: 1500px;
}

@media (max-width: 560px) {
  .archive-search-form {
    align-items: stretch;
    flex-direction: column;
  }

  .archive-search-form button {
    width: 100%;
  }
}

@media (max-width: 760px) {
  body {
    min-width: 0 !important;
    width: auto !important;
  }

  div.page {
    width: auto !important;
    max-width: 100%;
    float: none !important;
    margin: 0 !important;
  }

  #header,
  #content_area {
    margin-left: 10px !important;
    margin-right: 10px !important;
  }

  #sub_menu,
  #header_menu,
  #main_img_,
  #main_area,
  #side_area,
  .page > #side_area,
  #right_column {
    float: none !important;
    position: static !important;
    width: auto !important;
    max-width: 100%;
    box-sizing: border-box;
  }

  #content_area {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  #main_area {
    order: 1;
  }

  #main_img_ {
    clear: both;
    margin-top: 8px;
    text-align: center;
  }

  #main_img_ img {
    height: auto !important;
    max-width: 42vw;
    position: static !important;
  }

  #side_area {
    order: 2;
  }

  a {
    overflow-wrap: anywhere;
  }
}

@media (min-width: 761px) {
  div.page {
    position: relative;
  }

  .page > #side_area {
    position: absolute;
    top: 321px;
    left: 26px;
  }

  #content_area {
    display: block;
    position: relative;
    min-height: 650px;
  }

  #content_area #side_area {
    position: absolute;
    top: 10px;
    left: 0;
  }

  #main_area {
    float: none !important;
    margin-left: 206px;
    max-width: 540px;
    box-sizing: border-box;
  }
}
