:root {
  --legacy-canvas: #eef2ee;
  --legacy-surface: #fbfcf8;
  --legacy-surface-alt: #dce8e2;
  --legacy-ink: #172a27;
  --legacy-muted: #566864;
  --legacy-line: #b8c9c2;
  --legacy-brand: #174f48;
  --legacy-brand-deep: #103a35;
  --legacy-link: #12665e;
  --legacy-accent: #d85f32;
  --legacy-focus: #e36d39;
  --legacy-radius: .75rem;
  --legacy-shadow: 0 18px 50px rgba(23, 52, 47, .11);
  --legacy-max: 76rem;
}

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

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

html,
body {
  min-width: 0;
  margin: 0;
  background: var(--legacy-canvas);
  color: var(--legacy-ink);
  font: 16px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: left;
}

body {
  overflow-wrap: anywhere;
}

img,
iframe,
object,
embed,
video {
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--legacy-link);
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

a:hover {
  color: var(--legacy-accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--legacy-focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: .75rem;
  left: .75rem;
  padding: .75rem 1rem;
  transform: translateY(-180%);
  border-radius: .4rem;
  background: #fff;
  color: #111;
  font-weight: 700;
}

.skip-link:focus {
  transform: none;
}

#pagewidth {
  width: min(100%, var(--legacy-max));
  max-width: var(--legacy-max);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0;
  background: var(--legacy-surface);
  box-shadow: var(--legacy-shadow);
}

#site-header-row {
  display: flex;
  min-height: 5.25rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: .75rem clamp(1rem, 3vw, 2rem);
  border-bottom: 1px solid var(--legacy-line);
}

#logo,
#upperright {
  float: none;
  display: block;
  margin: 0;
  padding: 0;
}

#logo img {
  display: block;
  width: 200px;
  max-width: 100%;
}

#upperright {
  color: var(--legacy-muted);
  font-size: .8rem;
}

#upperright p {
  margin: .15rem 0;
  padding: 0;
  line-height: 1.5;
}

#upperright a {
  padding: .3rem;
  color: var(--legacy-ink);
  font-size: inherit;
  font-weight: 700;
}

ul#header {
  display: flex;
  float: none;
  width: 100%;
  height: auto;
  min-height: 3rem;
  margin: 0;
  padding: 0 clamp(.5rem, 2vw, 1.5rem);
  overflow: visible;
  background: var(--legacy-brand-deep);
  font-size: .9rem;
  list-style: none;
}

ul#header li {
  float: none;
  display: flex;
  margin: 0;
  border: 0;
}

ul#header li a {
  display: flex;
  min-height: 3rem;
  align-items: center;
  padding: .7rem clamp(.7rem, 1.8vw, 1.15rem);
  color: #fff;
  font-weight: 700;
  line-height: 1.25;
}

ul#header li:hover,
#home #nav-home a,
#specs #nav-specs a,
#fars #nav-fars a,
#pics #nav-pics a,
#links #nav-links a,
#tests #nav-tests a {
  background: var(--legacy-brand);
}

#undermenu {
  float: none;
  display: block;
  width: 100%;
  height: auto;
  min-height: 2.25rem;
  padding: .45rem clamp(1rem, 3vw, 2rem);
  background: var(--legacy-brand);
}

#undermenu ul {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

#undermenu li {
  float: none;
  position: relative;
  padding: 0 0 0 .8rem;
  background: none;
}

#undermenu li::before {
  position: absolute;
  left: 0;
  content: "›";
  color: rgba(255, 255, 255, .72);
}

#undermenu a {
  display: inline-block;
  padding: .2rem 0;
  color: #fff;
  font-size: .78rem;
}

#main-content {
  display: flow-root;
  width: 100%;
}

#thecontent {
  float: left;
  width: calc(100% - 18rem);
  min-width: 0;
  margin: 0;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  background: var(--legacy-surface);
  color: var(--legacy-ink);
  font: inherit;
}

#contenthead {
  float: none;
  display: block;
  width: 100%;
  font: inherit;
}

h1.masthead {
  margin: 0;
  padding: 0;
  color: var(--legacy-brand-deep);
  font: 750 clamp(1.5rem, 3.5vw, 2.2rem)/1.18 Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -.025em;
  text-transform: none;
}

#breadcrumb_div {
  width: 100%;
  margin: .65rem 0 1.5rem;
  padding: 0 0 .85rem;
  border-bottom: 1px solid var(--legacy-line);
  color: var(--legacy-muted);
  font: 400 .8rem/1.5 Inter, ui-sans-serif, system-ui, sans-serif;
}

#breadcrumb_div a,
#breadcrumb_div a:hover {
  color: var(--legacy-muted);
  font: inherit;
}

#thecontent h2,
#thecontent h3,
#thecontent h4 {
  color: var(--legacy-brand-deep);
  line-height: 1.3;
}

#thecontent h2 {
  margin: 1.75rem 0 .65rem;
  font: 700 1.25rem/1.3 Inter, ui-sans-serif, system-ui, sans-serif;
}

#thecontent h3 {
  margin: 1.4rem 0 .55rem;
  font: 700 1.05rem/1.35 Inter, ui-sans-serif, system-ui, sans-serif;
}

#thecontent p,
#thecontent li,
#thecontent td,
#thecontent th,
#thecontent label {
  font-size: .95rem;
}

#thecontent p {
  max-width: 76ch;
}

#thecontent ul,
#thecontent ol {
  padding-left: 1.5rem;
}

#thecontent li {
  margin-block: .25rem;
}

#rightcol {
  float: right;
  display: block;
  width: 18rem;
  margin: 0;
  padding: 2.25rem 1.25rem 2rem 0;
  text-align: left;
}

#main-content:not(.has-sidebar) #thecontent {
  float: none;
  width: 100%;
}

#main-content:not(.has-sidebar) #rightcol {
  display: none;
}

.left_tower {
  float: none;
  width: 100%;
  margin: 0;
  padding: 0 0 .4rem;
  border: 1px solid var(--legacy-line);
  border-radius: var(--legacy-radius);
  background: var(--legacy-surface-alt);
  font: inherit;
  overflow: hidden;
}

.left_tower h5 {
  margin: 0;
  padding: .75rem 1rem;
  border: 0;
  background: var(--legacy-brand);
  color: #fff;
  font: 700 .82rem/1.3 Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.left_tower ul {
  margin: .85rem 0 .45rem;
  padding: 0 1rem 0 2rem;
}

.left_tower li {
  margin: 0 0 .55rem;
  font: 400 .8rem/1.45 Inter, ui-sans-serif, system-ui, sans-serif;
  list-style: disc;
}

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

input[type="text"],
input[type="search"],
input[type="number"],
input[type="email"],
select,
textarea {
  min-height: 2.65rem;
  padding: .55rem .65rem;
  border: 1px solid var(--legacy-line);
  border-radius: .4rem;
  background: #fff;
  color: var(--legacy-ink);
}

input[type="submit"],
input[type="button"],
button {
  min-height: 2.65rem;
  padding: .55rem .9rem;
  border: 1px solid var(--legacy-brand);
  border-radius: .4rem;
  background: var(--legacy-brand);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

table {
  max-width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: .45rem .55rem;
  vertical-align: top;
}

pre,
code {
  max-width: 100%;
}

pre {
  overflow-x: auto;
}

div.linkdisplay {
  float: none;
  width: auto;
  max-width: 100%;
  min-height: 0;
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid var(--legacy-line);
  border-radius: var(--legacy-radius);
  background: var(--legacy-surface-alt);
  box-shadow: none;
}

div.linkdisplay div.leftlinkdiv,
div.linkdisplay div.rightlinkdiv {
  float: none;
  width: auto;
  max-width: 100%;
  padding: 0;
}

div.linkdisplay div.rightlinkdiv {
  margin-top: .75rem;
}

div.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  margin: 1rem 0;
  padding: 0;
}

div.pagination a,
div.pagination span.current,
div.pagination span.disabled {
  display: inline-flex;
  min-width: 2.25rem;
  min-height: 2.25rem;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: .35rem .55rem;
}

#home #thecontent {
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

#home #thecontent table.xs {
  width: 100%;
  margin: .75rem 0 0;
  border-collapse: separate;
  border-spacing: 1rem;
  table-layout: fixed;
  background: transparent;
}

#home #thecontent table.xs td {
  width: 33.333%;
  padding: 1.3rem;
  border: 1px solid var(--legacy-line);
  border-top: 3px solid var(--legacy-accent);
  border-radius: var(--legacy-radius);
  background: linear-gradient(145deg, var(--legacy-surface), var(--legacy-surface-alt));
  box-shadow: 0 10px 25px rgba(23, 52, 47, .07);
  vertical-align: top;
}

#home #thecontent table.xs td a {
  display: inline-block;
  margin-bottom: .4rem;
  color: var(--legacy-brand-deep);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
}

#home #thecontent table.xs tr:last-child td:last-child {
  visibility: hidden;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#footer {
  clear: both;
  margin: 0;
  padding: 0 0 1rem;
  background: var(--legacy-brand-deep);
  color: rgba(255, 255, 255, .75);
  font: 400 .78rem/1.55 Inter, ui-sans-serif, system-ui, sans-serif;
}

#footer .legal {
  display: flow-root;
  padding: 1rem clamp(1rem, 3vw, 2rem);
  background: var(--legacy-brand);
  color: #fff;
}

#footer p {
  margin: .9rem 0 0;
  padding: 0 clamp(1rem, 3vw, 2rem);
}

#footer a,
#footer .legal a {
  color: #fff;
}

@media (max-width: 52rem) {
  #site-header-row {
    align-items: flex-start;
  }

  ul#header {
    flex-wrap: wrap;
    padding: 0;
  }

  ul#header li {
    flex: 1 1 33.333%;
    border-right: 1px solid rgba(255, 255, 255, .12);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
  }

  ul#header li a {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  #thecontent,
  #rightcol {
    float: none;
    width: 100%;
  }

  #rightcol {
    padding: 0 1.25rem 2rem;
  }

  .left_tower ul {
    columns: 2;
    column-gap: 2rem;
  }

  .left_tower li {
    break-inside: avoid;
  }

  #thecontent table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 34rem) {
  html,
  body {
    font-size: 16px;
  }

  #pagewidth {
    box-shadow: none;
  }

  #site-header-row {
    flex-direction: column;
    gap: .65rem;
    padding: .85rem 1rem;
  }

  #upperright,
  #upperright p {
    width: 100%;
    text-align: left !important;
  }

  #upperright a:first-child {
    padding-left: 0;
  }

  ul#header li {
    flex-basis: 50%;
  }

  #undermenu {
    padding-inline: 1rem;
  }

  #undermenu ul {
    display: block;
  }

  #undermenu li {
    margin: .15rem 0;
  }

  #thecontent {
    padding: 1.25rem 1rem 1.75rem;
  }

  #rightcol {
    padding: 0 1rem 1.75rem;
  }

  #home #thecontent table.xs,
  #home #thecontent table.xs tbody,
  #home #thecontent table.xs tr,
  #home #thecontent table.xs td {
    display: block;
    width: 100%;
  }

  #home #thecontent table.xs {
    overflow: visible;
    border-spacing: 0;
  }

  #home #thecontent table.xs tr {
    margin: 0;
  }

  #home #thecontent table.xs td {
    height: auto !important;
    min-height: 0;
    margin: 0 0 .75rem;
    padding: 1rem;
    border: 1px solid var(--legacy-line);
    border-radius: var(--legacy-radius);
    background: var(--legacy-surface-alt);
  }

  #home #thecontent table.xs td:empty {
    display: none;
  }

  #home #thecontent table.xs tr:last-child td:last-child {
    display: none;
    visibility: visible;
  }

  #pics #thecontent table table,
  #pics #thecontent table table tbody {
    display: block;
    width: 100%;
    overflow: visible;
  }

  #pics #thecontent table table tr {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
  }

  #pics #thecontent table table td {
    display: block;
    flex: 1 1 50%;
    width: 50%;
    padding: .5rem;
  }

  .left_tower ul {
    columns: 1;
  }

  input[type="text"],
  input[type="search"],
  input[type="number"],
  input[type="email"],
  select,
  textarea {
    font-size: 16px;
  }

  #footer .legal > div {
    float: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
