:root {
  color-scheme: light;
  --ink: #16243b;
  --muted: #617086;
  --blue: #123fa1;
  --blue-dark: #08256a;
  --red: #c81624;
  --surface: #ffffff;
  --soft: #f1f4f8;
  --line: #d8e0ea;
  --shadow: 0 18px 45px rgba(22, 36, 59, .12);
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body.lc-site {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: #edf2f7;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
}

.lc-site img {
  max-width: 100%;
}

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 22px auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 10px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
}

.site-logo {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}

.site-logo img {
  display: block;
  width: 229px;
  height: 84px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 11px 16px;
  border-radius: 999px;
  color: var(--blue-dark);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  outline: 0;
  background: var(--blue);
  color: #fff;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 2px;
  background: var(--blue-dark);
}

.hero-slider {
  position: relative;
  aspect-ratio: 1680 / 450;
  overflow: hidden;
  background: #d9e2ed;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity .8s ease, transform 5s ease;
}

.hero-slide.is-active {
  z-index: 1;
  opacity: 1;
  transform: scale(1);
}

.hero-dots {
  position: absolute;
  right: 18px;
  bottom: 14px;
  z-index: 3;
  display: flex;
  gap: 7px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 50%;
  background: rgba(6, 29, 76, .55);
  cursor: pointer;
}

.hero-dot.is-active { background: #fff; }

.page-grid {
  display: grid;
  grid-template-columns: minmax(245px, 290px) minmax(0, 1fr);
  gap: 28px;
  padding: 30px;
}

.search-panel {
  align-self: start;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--soft);
}

.search-panel > head,
.search-panel > body,
.content-panel > head,
.content-panel > body {
  display: contents;
}

.search-panel form,
.search-panel table,
.search-panel tbody {
  width: 100% !important;
  max-width: 100% !important;
}

.search-panel table {
  height: auto !important;
  margin: 0;
  border-collapse: collapse;
  background: transparent !important;
}

.search-panel td {
  width: auto !important;
  height: auto !important;
  padding: 7px 10px;
  vertical-align: middle;
}

.search-panel tr:first-child td {
  padding-top: 16px;
}

.search-panel font,
.search-panel span,
.search-panel p {
  font-family: Arial, Helvetica, sans-serif !important;
}

.search-panel p { margin: 0; }

.search-panel input[type="text"],
.search-panel select {
  width: 100% !important;
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid #abb8c8;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.search-panel input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.search-panel input[type="submit"] {
  width: 100% !important;
  min-height: 40px;
  border: 0;
  border-radius: 9px;
  background: var(--blue);
  color: #fff !important;
  font: 700 14px Arial, Helvetica, sans-serif !important;
  cursor: pointer;
}

.search-panel input[type="submit"]:hover,
.search-panel input[type="submit"]:focus-visible {
  outline: 3px solid rgba(18, 63, 161, .22);
  background: var(--blue-dark);
}

.search-panel hr {
  height: 1px;
  border: 0;
  background: #c5cfdb;
}

.content-panel {
  min-width: 0;
  color: var(--ink);
}

.content-panel > div,
.content-panel > table,
.content-panel table {
  max-width: 100% !important;
}

.company-intro {
  margin: 4px 0 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, #f8fbff, #fff);
  color: var(--blue-dark);
  text-align: center;
}

.company-intro font {
  font-family: "Trebuchet MS", Arial, sans-serif !important;
}

.listing-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  min-height: 190px;
  margin: 0 0 20px;
  overflow: hidden;
  border: 1px solid #cad5e2;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 9px 24px rgba(22, 36, 59, .08);
}

.listing-copy {
  min-width: 0;
  padding: 17px 19px;
}

.listing-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 11px;
  border-bottom: 1px solid #e4e9f0;
}

.listing-title {
  color: var(--red);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.listing-title:hover,
.listing-title:focus-visible { text-decoration: underline; }

.listing-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 14px;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.listing-meta a {
  color: var(--red);
  font-weight: 700;
}

.listing-description {
  margin: 14px 0 0;
  color: #25354a;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.listing-photo {
  display: block;
  min-height: 190px;
  overflow: hidden;
  background: #e8eef5;
}

.listing-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
}

.listing-photo img.is-unavailable { display: none; }

.results-summary {
  margin: 8px 0 0;
  padding: 15px 17px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--blue-dark);
  font-size: 13px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.pagination a,
.pagination strong {
  display: inline-flex;
  min-width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #e5ebf3;
  color: var(--blue-dark);
  text-decoration: none;
}

.pagination strong {
  background: var(--blue);
  color: #fff;
}

.content-panel img[width="300"] {
  width: min(100%, 300px) !important;
  height: auto !important;
  object-fit: cover;
}

.content-panel input[type="button"],
.content-panel input[type="submit"] {
  min-height: 40px;
  padding: 8px 16px;
  border: 0;
  border-radius: 9px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.site-footer {
  padding: 18px 24px;
  background: #061a3d;
  color: #dce7f8;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 820px) {
  .site-shell {
    width: min(100% - 20px, 720px);
    margin: 10px auto;
    border-radius: 18px;
  }

  .site-header {
    min-height: 78px;
    padding: 8px 14px;
  }

  .site-logo img {
    width: 174px;
    height: 64px;
  }

  .menu-toggle { display: block; }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 14px 25px rgba(22, 36, 59, .13);
  }

  .site-nav.is-open { display: flex; }
  .site-nav a { border-radius: 10px; }

  .hero-slider { aspect-ratio: 16 / 7; }

  .page-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 20px;
  }

  .listing-card { grid-template-columns: minmax(0, 1fr) 190px; }
}

@media (max-width: 560px) {
  .site-shell {
    width: 100%;
    margin: 0;
    border-width: 0;
    border-radius: 0;
  }

  .hero-slider { aspect-ratio: 16 / 9; }

  .page-grid { padding: 15px; }

  .company-intro {
    padding: 16px 12px;
  }

  .listing-card { grid-template-columns: 1fr; }

  .listing-photo {
    min-height: 0;
    aspect-ratio: 4 / 3;
    grid-row: 1;
  }

  .listing-photo img { min-height: 0; }

  .listing-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .listing-meta {
    justify-content: flex-start;
    text-align: left;
  }

  .content-panel #table2,
  .content-panel #table2 tbody,
  .content-panel #table2 tr,
  .content-panel #table2 td[width="33%"] {
    display: block;
    width: 100% !important;
  }

  .site-footer { padding: 16px 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
