/* Added on top of the original styles/StyleSheet.css: keeps the 2009 look on desktop,
   makes the fixed 760px table layout usable on phones, and styles the replacements
   for the Flash and JS menus. */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #000; }
img { max-width: 100%; height: auto; }
table { max-width: 100%; }
video.clip { max-width: 100%; height: auto; background: #000; }

/* ---- generated menu (replaces the Sothink JS menu) ---- */
.menu-toggle { display: none; }
.sitemenu ul { list-style: none; margin: 0; padding: 0; }
.sitemenu > ul > li { border-bottom: 1px solid #555; }
.sitemenu a, .sitemenu span, .sitemenu summary {
  display: block; padding: 6px 10px; color: #E6EFF9; text-decoration: none;
  font: 10pt Tahoma, Arial, sans-serif; cursor: pointer;
}
.sitemenu summary { list-style: none; }
.sitemenu summary::-webkit-details-marker { display: none; }
.sitemenu summary::after { content: "\25BE"; float: left; color: #999; }
.lang-en .sitemenu summary::after { float: right; }
.sitemenu summary > a { display: inline; padding: 0; }
.sitemenu details[open] > summary { color: #FFD602; }
.sitemenu details ul { background: #2b2b2b; }
.sitemenu details ul a, .sitemenu details ul span, .sitemenu details ul summary {
  font: 8pt Tahoma, Arial, sans-serif; padding: 5px 18px; color: #ddd;
}
.sitemenu a:hover, .sitemenu a:focus, .sitemenu summary:hover { color: #FFD602; background: #4E4E4E; }
.sitemenu a:focus-visible, .sitemenu summary:focus-visible, .menu-toggle:focus-visible { outline: 2px solid #FFD602; outline-offset: -2px; }

/* ---- slideshow (replaces imgs.swf) ---- */
.slideshow { position: relative; margin: 0 auto; }
.slideshow img { display: block; width: 100%; transition: opacity .6s ease; }
.slideshow img.fade { opacity: 0; }

/* ---- search page ---- */
.search-layout { display: flex; gap: 0; width: 760px; max-width: 100%; background: #333; text-align: start; }
.search-menu { width: 192px; flex: none; background: #424242; }
.search-main { flex: 1; padding: 16px; background: #232323; color: #ddd; font: 10pt Tahoma, Arial, sans-serif; min-height: 420px; }
.search-main h1 { font-size: 13pt; color: #FFD602; margin: 0 0 12px; }
.search-main form { display: flex; gap: 6px; margin-bottom: 14px; }
.search-main input[type=search] { flex: 1; padding: 6px; font: inherit; }
.search-main button { padding: 6px 12px; font: inherit; cursor: pointer; }
.search-main ol { padding-inline-start: 20px; }
.search-main li { margin-bottom: 12px; }
.search-main li a { color: #FFD602; font-weight: bold; }
.search-main li p { margin: 4px 0 0; line-height: 1.6; }
.search-main mark { background: #FFD602; color: #000; }

/* ---- phones and narrow windows ---- */
@media (max-width: 780px) {
  center > table, center > div > table, body > table { width: 100% !important; }
  /* stack the 3 layout columns (menu | content | pictures) */
  center > table > tbody > tr > td,
  center > table > tr > td { display: block; width: auto !important; }
  td:has(> table > tbody > tr > td > img[src*="picture_left"]),
  td:has(> table img[src*="picture_left"]) { display: none !important; }
  table[width="760"] img[src*="header_"] { width: 100%; }
  td[width], th[width] { width: auto !important; }
  table[width] { width: 100% !important; }
  td[height] { height: auto !important; }
  .text, .text p, p { word-wrap: break-word; overflow-wrap: anywhere; }
  img[src*="top_menu"], img[src*="bottom_menu"] { display: none; }
  /* old menu column: drop the spacer paragraphs and the 10px spacer cell */
  td:has(> .sitemenu) > p, td:has(> .menu-toggle) > p,
  td:has(> table .menu-toggle) > p { display: none; }
  td:has(> .menu-toggle) { display: block; }
  tr:has(> td > .menu-toggle) > td:not(:has(> .menu-toggle)) { display: none; }
  /* breathing room for the article text */
  center > table > tbody > tr > td:not(:has(.sitemenu)) { padding-left: 12px; padding-right: 12px; }

  .menu-toggle {
    display: block; width: 100%; padding: 10px 14px; border: 0; background: #4E4E4E; color: #FFD602;
    font: bold 11pt Tahoma, Arial, sans-serif; text-align: start; cursor: pointer;
  }
  .menu-toggle::before { content: "\2630  "; }
  .sitemenu { display: none; }
  .sitemenu.open { display: block; }
  .sitemenu a, .sitemenu span, .sitemenu summary { padding: 10px 14px; font-size: 11pt; }
  .sitemenu details ul a, .sitemenu details ul span, .sitemenu details ul summary { padding: 9px 26px; font-size: 10pt; }

  .search-layout { flex-direction: column; width: 100%; }
  .search-menu { width: auto; }
}
