/* Shared foundation: design tokens, element normalization and site-wide layout. */
:root {
  --navy: #07316c;
  --blue: #0756ad;
  --blue-strong: #0452a8;
  --blue-soft: #eaf2ff;
  --gold: #f2b900;
  --ink: #1f2630;
  --muted: #747d8c;
  --line: #dfe5ef;
  --canvas: #f3f6fc;
  --card: #fff;
  --safe: 1462px;
  --radius: 9px;
  --shadow: 0 4px 18px rgba(28, 52, 91, .05);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-width: none; }
html::-webkit-scrollbar { width: 0; height: 0; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  color: var(--ink);
  background: var(--canvas);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.material-symbols-rounded {
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
  line-height: 1;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

.main-height {
  min-height: calc(100vh - 60px);
  display: flex;
  width: 100%;
  overflow-x: hidden;
}

.main-height > main {
  overflow-x: hidden !important;
  flex: 1 1 auto;
  min-width: 0;
}

body.overflow-hidden { overflow: hidden; }

/* Injected mobile menu styles. */
#mobile-menu {
  position: fixed;
  z-index: 60;
  inset: 0;
}

#mobile-menu.hidden { display: none; }

#mobile-menu > button {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(2, 6, 23, .4);
}

#mobile-menu > aside {
  position: relative;
  width: min(100vw, 456px);
  height: 100%;
  overflow-y: auto;
  padding: 18px;
  background: #fff;
  box-shadow: 12px 0 28px rgba(15, 23, 42, .22);
}

#mobile-menu > aside > div:first-child,
#mobile-menu summary {
  display: flex;
  align-items: center;
}

#mobile-menu > aside > div:first-child > span { color: #2d66a9; font-size: 16px; font-weight: 600; }
#mobile-menu-close { display: grid; width: 36px; height: 36px; place-items: center; border: 0; border-radius: 6px; background: transparent; color: #64748b; font-size: 24px; }
#mobile-menu-close:hover { background: #f1f5f9; }
#mobile-menu form { display: flex; height: 40px; margin-top: 20px; }
#mobile-menu input { min-width: 0; flex: 1; border: 1px solid #e2e8f0; border-radius: 6px 0 0 6px; padding: 0 12px; color: #334155; }
#mobile-menu form button { border-radius: 0 6px 6px 0; padding: 0 12px; border: 0; font-size: 14px; font-weight: 500; }
#mobile-menu > aside > div[class*="my-5"] { margin: 20px 0; border-top: 1px solid #e2e8f0; }
#mobile-menu > aside > a { display: block; border-radius: 6px; padding: 12px 16px; color: #334155; font-size: 16px; font-weight: 500; }
#mobile-menu > aside > a:first-of-type { background: #2d66a9; color: #fff; text-align: center; }
#mobile-menu > aside > a:hover, #mobile-menu summary:hover, #mobile-menu nav a:hover { background: #f8fafc; color: #2d66a9; }
#mobile-menu details { margin-top: 4px; }
#mobile-menu summary { cursor: pointer; list-style: none; border-radius: 6px; padding: 12px 16px; color: #334155; font-size: 16px; font-weight: 500; }
#mobile-menu details > div { margin-left: 16px; border-left: 1px solid #e2e8f0; padding: 4px 0; }
#mobile-menu details > div a, #mobile-menu nav a { display: block; padding: 8px 12px; color: #475569; font-size: 14px; line-height: 24px; }
#mobile-menu nav { margin-top: 12px; }
#mobile-menu nav > * { margin-top: 4px; }
.mobile-user-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(0, 1fr);
  gap: 10px;
  margin: 20px 0 6px;
}
.mobile-user-action {
  display: grid;
  height: 48px;
  place-items: center;
  border: 1px solid #075db9;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.mobile-user-action--primary {
  background: #075db9;
  color: #fff;
}
.mobile-user-action--primary:hover {
  border-color: #004d9f;
  background: #004d9f;
}
.mobile-user-action--logout {
  background: #fff;
  color: #075db9;
}
.mobile-user-action--logout:hover {
  background: #eef6ff;
}
.shared-v4-nav-row > span:first-child { display: inline-flex; align-items: center; gap: 8px; }

@media (min-width: 1024px) {
  .page-shell { height: 100%; overflow-y: auto; }
}

/* V4 shared desktop shell */
.shared-v4-header {
  position: relative;
  z-index: 50;
  width: 100%;
  background: transparent;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  pointer-events: none;
}

.shared-v4-header > * { pointer-events: auto; }

.shared-v4-utility {
  height: 60px;
  background: #07316c;
  color: #fff;
}

.shared-v4-utility-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  margin-left: 200px;
  padding: 0 max(24px, calc((100vw - 200px - 1462px) / 2));
  font-size: 13px;
}

.shared-v4-utility-inner > span {
  margin: 0 15px;
  opacity: 0.55;
}

.shared-v4-utility-inner > a:hover {
  text-decoration: underline;
}

.shared-v4-language {
  position: relative;
  width: 92px;
  height: 36px;
  margin-left: 24px;
  border-radius: 3px;
  background: #f2b900;
}

.shared-v4-language summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 100%;
  cursor: pointer;
  list-style: none;
}

.shared-v4-language summary::-webkit-details-marker { display: none; }
.shared-v4-language summary svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.shared-v4-language > div {
  position: absolute;
  top: 42px;
  right: 0;
  z-index: 80;
  width: 118px;
  overflow: hidden;
  border-radius: 4px;
  background: #fff;
  color: #384153;
  box-shadow: 0 12px 30px rgba(0, 30, 80, 0.18);
}
.shared-v4-language > div a { display: block; padding: 10px 14px; }
.shared-v4-language > div a:hover { background: #f2f6fc; color: #0756ad; }

.shared-v4-mainbar {
  height: 72px;
  margin-left: 200px;
  border-bottom: 1px solid #eef1f6;
  background: #fff;
}

.shared-v4-mainbar-inner {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 max(24px, calc((100vw - 200px - 1462px) / 2)) 0 25px;
}

.shared-v4-brand { flex: 0 0 auto; }
.shared-v4-brand img { display: block; width: 297px; height: auto; }
.shared-v4-location {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: 30px;
  color: #495266;
  font-size: 16px;
}
.shared-v4-location svg { width: 24px; height: 24px; fill: none; stroke: #0756ad; stroke-width: 1.9; }
.shared-v4-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.shared-v4-search { display: flex; width: 322px; height: 36px; }
.shared-v4-search input {
  min-width: 0;
  flex: 1;
  border: 1px solid #cdd5e1;
  border-right: 0;
  border-radius: 3px 0 0 3px;
  padding: 0 12px;
  color: #485164;
  outline: none;
}
.shared-v4-search input:focus { border-color: #0756ad; box-shadow: inset 0 0 0 1px #0756ad; }
.shared-v4-search button {
  display: grid;
  width: 42px;
  place-items: center;
  border: 0;
  border-radius: 0 3px 3px 0;
  background: #0756ad;
  color: #fff;
  cursor: pointer;
}
.shared-v4-search button svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.shared-v4-login {
  display: grid;
  min-width: 92px;
  height: 36px;
  place-items: center;
  border-radius: 3px;
  background: #0756ad;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.shared-v4-login:hover { background: #003d8f; }
.shared-v4-user-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.shared-v4-user-actions .shared-v4-login {
  height: 36px;
  border: 1px solid #075db9;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
}
.shared-v4-personal {
  min-width: 92px;
  background: #075db9;
}
.shared-v4-logout {
  min-width: 62px;
  background: #fff;
  color: #075db9;
}
.shared-v4-logout:hover {
  background: #eef6ff;
}
.shared-v4-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  place-items: center;
  border: 0;
  border-radius: 5px;
  background: #0756ad;
  color: #fff;
}
.shared-v4-menu-button svg { width: 25px; fill: none; stroke: currentColor; stroke-width: 2; }

.shared-v4-sidebar {
  position: relative;
  z-index: 45;
  display: flex;
  width: 200px;
  height: calc(100vh - 60px);
  flex: 0 0 200px;
  margin-top: -72px;
  overflow-y: auto;
  border-right: 1px solid #dfe5ef;
  background: #f5f7fb;
  color: #4f596a;
}
.shared-v4-sidebar nav { width: 100%; padding: 20px 8px 28px; }
.shared-v4-nav-section {
  min-height: 32px;
  padding: 7px 12px 6px;
  color: #0756ad;
  font-size: 14px;
  font-weight: 700;
  line-height: 19px;
}
.shared-v4-mobile-nav-section {
  padding: 8px 12px 5px;
  color: #0756ad;
  font-size: 15px;
  font-weight: 700;
}
.shared-v4-nav-row {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 38px;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 3px;
  padding: 9px 12px;
  background: transparent;
  color: #4f596a;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.shared-v4-nav-row .sidebar-menu-label {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shared-v4-nav-row:hover,
.shared-v4-nav-row.is-active { background: #e9effa; color: #0756ad; }
.shared-v4-sidebar svg { width: 17px; height: 17px; color: #536071; }
.shared-v4-submenu { margin: 0 0 4px 18px; padding: 0 0 0 16px; border-left: 1px solid #dce2eb; list-style: none; }
.shared-v4-submenu.hidden { display: none; }
.shared-v4-submenu a {
  display: block;
  overflow: hidden;
  min-height: 34px;
  padding: 8px 9px;
  border-radius: 3px;
  color: #6d7583;
  font-size: 12px;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shared-v4-submenu a:hover,
.shared-v4-submenu a.is-active { background: #e9effa; color: #0756ad; }
.shared-v4-nav-divider { height: 1px; margin: 16px 8px; background: #dfe5ef; }

@media (min-width: 1024px) {
  .main-height {
    height: calc(100vh - 132px) !important;
    min-height: calc(100vh - 132px);
    overflow: visible !important;
  }
}

@media (min-width: 1024px) and (max-width: 1320px) {
  .shared-v4-mainbar-inner { padding-right: 20px; padding-left: 20px; }
  .shared-v4-brand img { width: 250px; }
  .shared-v4-location { margin-left: 18px; font-size: 14px; }
  .shared-v4-search { width: 250px; }
}

@media (max-width: 1023px) {
  html,
  body { overflow-x: clip; }
  .shared-v4-header {
    position: sticky;
    top: 0;
  }
  .shared-v4-utility { display: none; }
  .shared-v4-mainbar { height: 64px; margin-left: 0; }
  .shared-v4-mainbar-inner { padding: 0 16px; }
  .shared-v4-brand img { width: min(250px, 66vw); }
  .shared-v4-location,
  .shared-v4-actions { display: none; }
  .shared-v4-menu-button {
    display: grid;
    background: #f2b900;
  }
  .shared-v4-menu-button:hover { background: #d9a600; }
  .shared-v4-sidebar { display: none; }
  .main-height { min-height: calc(100vh - 64px); }
}

#visa-article-table tbody tr {
  cursor: pointer;
  transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

#visa-article-table tbody tr:hover {
  background-color: #f8fafc;
  box-shadow: inset 4px 0 0 #00338d;
}

#notice-list time {
  width: 76px;
  white-space: nowrap;
}

.shared-login-button,
.shared-search-button {
  background: #e1b53f !important;
  color: #fff !important;
}

.shared-login-button:hover,
.shared-search-button:hover {
  background: #c99c25 !important;
}

.content-footer {
  position: relative;
  width: 100%;
  min-height: 321px;
  margin-top: 0;
  border-top: 1px solid #d2d2d2;
  background: #f6f8fd;
  color: #626979;
}

.content-footer-inner {
  position: relative;
  display: grid;
  min-height: 320px;
  width: min(calc(100% - 44px), 1462px);
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 0 auto;
  padding: 60px 0 0;
}

.content-footer-brand {
  min-width: 0;
}

.content-footer-brand img {
  display: block;
  width: 300px;
  height: auto;
  margin-bottom: 36px;
  object-fit: contain;
  object-position: left center;
}

.content-footer-brand p {
  max-width: 405px;
  margin: 0;
  color: #626979;
  font-size: 16px;
  line-height: 1.5;
}

.content-footer-links {
  display: grid;
  grid-template-columns: 80px 76px 74px;
  gap: 71px;
}

.content-footer-column h2 {
  margin: 7px 0 25px;
  color: #626979;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.content-footer-column ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.content-footer-column li + li {
  margin-top: 12px;
}

.content-footer-column a {
  color: #626979;
  font-size: 16px;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.content-footer-column a:hover {
  color: #056eb7;
}

.content-footer-copyright {
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  color: #626979;
  font-size: 14px;
  line-height: 1.2;
  text-align: center;
}

@media (max-width: 1023px) {
  .content-footer {
    min-height: 0;
  }

  .content-footer-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 32px;
    padding: 42px 24px 28px;
  }

  .content-footer-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }

  .content-footer-copyright {
    position: static;
    padding-top: 14px;
  }
}

@media (max-width: 640px) {
  .content-footer-brand img {
    width: 250px;
  }

  .content-footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
