:root {
  --navy: #06184d;
  --blue: #173f8f;
  --light-blue: #edf3ff;
  --line: #c7d1e5;
  --text: #1c2430;
  --muted: #5a6577;
  --paper: #ffffff;
}
* { box-sizing: border-box; }
html { min-width: 320px; }
body {
  margin: 0;
  color: var(--text);
  background: #eef1f6;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.55;
}
a { color: #113f91; }
a:hover { color: #8b0000; }
.site-shell {
  width: min(980px, calc(100% - 24px));
  margin: 18px auto;
  background: var(--paper);
  border: 1px solid #b9c3d6;
  box-shadow: 0 6px 24px rgba(17, 35, 70, .12);
}
.topbar {
  display: grid;
  grid-template-columns: minmax(0, 680px) 1fr;
  align-items: stretch;
  background: #fff;
}
.header-image {
  display: block;
  width: 100%;
  max-width: 680px;
  height: 105px;
  object-fit: cover;
}
.contact-box {
  min-width: 250px;
  padding: 15px 18px 12px;
  background: linear-gradient(135deg, #f9fbff, #dce7fb);
  color: var(--navy);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.contact-box strong { font-size: 17px; }
.contact-box a { color: var(--navy); text-decoration: none; overflow-wrap: anywhere; }
.contact-box a:hover { text-decoration: underline; }

/* Top navigation */
.top-nav {
  position: relative;
  z-index: 20;
  color: #fff;
  background: linear-gradient(90deg, #163d83, #071b50 70%, #061640);
  border-top: 1px solid rgba(255,255,255,.14);
  border-bottom: 4px solid #c6d4ef;
}
.main-nav-list {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  margin: 0;
  padding: 0 12px;
  list-style: none;
}
.main-nav-list > li { position: relative; margin: 0; }
.main-nav-link,
.dropdown-toggle {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 16px;
  border: 0;
  border-right: 1px solid rgba(255,255,255,.16);
  color: #fff;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.main-nav-list > li:first-child .main-nav-link { border-left: 1px solid rgba(255,255,255,.16); }
.main-nav-link:hover,
.main-nav-link:focus-visible,
.dropdown-toggle:hover,
.dropdown-toggle:focus-visible,
.main-nav-link.active,
.dropdown.active > .dropdown-toggle,
.dropdown.open > .dropdown-toggle {
  color: #fff;
  background: rgba(255,255,255,.17);
  outline: none;
}
.dropdown-arrow {
  width: 8px;
  height: 8px;
  margin: -4px 0 0 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .18s ease, margin .18s ease;
}
.dropdown.open .dropdown-arrow {
  margin-top: 4px;
  transform: rotate(225deg);
}
.dropdown-menu {
  position: absolute;
  top: calc(100% - 1px);
  right: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  width: min(610px, calc(100vw - 48px));
  padding: 9px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-6px);
  background: #fff;
  border: 1px solid #aebbd3;
  border-top: 4px solid #173f8f;
  box-shadow: 0 12px 28px rgba(12, 28, 62, .24);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.dropdown:hover > .dropdown-menu,
.dropdown:focus-within > .dropdown-menu,
.dropdown.open > .dropdown-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}
.dropdown-link {
  display: block;
  padding: 9px 11px;
  border-bottom: 1px solid #e1e6ef;
  color: #102f70;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.3;
}
.dropdown-link:hover,
.dropdown-link:focus-visible,
.dropdown-link.active {
  color: #102f70;
  background: #edf3ff;
  outline: none;
}
.dropdown-link.external::after { content: ' ↗'; opacity: .65; }

.layout { display: block; min-height: 420px; }
.content { padding: 24px 30px 32px; min-width: 0; }
.page-title {
  margin: 0 0 20px;
  padding: 7px 12px;
  color: white;
  background: linear-gradient(90deg, #0c2d72, #5277b7);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 22px;
  font-weight: normal;
  border-radius: 2px;
}
.content h2 { color: #102f70; font-family: Georgia, 'Times New Roman', serif; font-size: 19px; }
.content p { margin: 0 0 15px; }
.home-logo { display: block; width: min(470px, 92%); margin: 4px auto 24px; }
.contact-card {
  max-width: 560px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: #f8faff;
}
.contact-card address { font-style: normal; }
.contact-card a { font-weight: bold; }
.tips { margin: 0; padding-left: 25px; }
.tips li { margin-bottom: 13px; padding-left: 3px; }
.deal-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.deal-card {
  display: block;
  padding: 13px 15px;
  border: 1px solid var(--line);
  background: #f7f9fd;
  text-decoration: none;
  font-weight: bold;
}
.deal-card:hover { background: #edf3ff; }
.login-card { max-width: 440px; padding: 20px; border: 1px solid var(--line); background: #f8faff; }
.form-row { margin: 0 0 13px; }
.form-row label { display: block; font-weight: bold; margin-bottom: 4px; }
.form-row input { width: 100%; padding: 9px; border: 1px solid #8b98af; }
.button { border: 1px solid #091d54; background: #173f8f; color: white; padding: 9px 18px; cursor: pointer; }
.notice { padding: 12px 14px; background: #fff7d8; border: 1px solid #e2ca75; color: #5a4610; }
.license { padding: 12px 18px 8px; text-align: center; color: #333; font-size: 12px; border-top: 1px solid #d5dbe7; }
.logo-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 22px; padding: 10px 18px 14px; }
.logo-strip img { display: block; max-height: 50px; max-width: 145px; width: auto; height: auto; object-fit: contain; }
.footer { text-align: center; background: var(--navy); color: #fff; padding: 8px 12px; font-size: 12px; }
.small { color: var(--muted); font-size: 12px; }

@media (max-width: 790px) {
  .site-shell { width: 100%; margin: 0; border: 0; }
  .topbar { grid-template-columns: 1fr; }
  .header-image { max-width: none; height: auto; }
  .contact-box { min-width: 0; padding: 10px 15px; flex-direction: row; flex-wrap: wrap; justify-content: space-between; }
  .main-nav-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0;
  }
  .main-nav-list > li { min-width: 0; }
  .main-nav-link,
  .dropdown-toggle {
    width: 100%;
    min-height: 42px;
    justify-content: center;
    padding: 0 9px;
    border: 0;
    border-right: 1px solid rgba(255,255,255,.15);
    border-bottom: 1px solid rgba(255,255,255,.15);
    white-space: normal;
    text-align: center;
  }
  .main-nav-list > li:first-child .main-nav-link { border-left: 0; }
  .dropdown { grid-column: 1 / -1; }
  .dropdown-menu {
    position: static;
    display: none;
    grid-template-columns: 1fr;
    width: 100%;
    padding: 6px 10px 10px;
    visibility: visible;
    opacity: 1;
    transform: none;
    border: 0;
    border-top: 1px solid rgba(255,255,255,.18);
    box-shadow: none;
    background: #f8faff;
    transition: none;
  }
  .dropdown:hover > .dropdown-menu,
  .dropdown:focus-within > .dropdown-menu { display: none; }
  .dropdown.open > .dropdown-menu { display: grid; }
  .dropdown-link { padding: 10px 12px; }
  .content { padding: 20px 18px 28px; }
}
@media (max-width: 520px) {
  .contact-box { display: block; }
  .contact-box > * { display: block; margin: 2px 0; }
  .deal-grid { grid-template-columns: 1fr; }
  .page-title { font-size: 20px; }
  .main-nav-list { grid-template-columns: 1fr 1fr; }
  .main-nav-link, .dropdown-toggle { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .dropdown-menu, .dropdown-arrow { transition: none; }
}
