:root {
  --bg: #f2f4f7;
  --surface: #ffffff;
  --surface-alt: #e9edf2;
  --ink: #15202b;
  --ink-soft: #445565;
  --line: #c6d1dc;
  --brand: #123250;
  --brand-strong: #0d2740;
  --accent: #2f5d86;
  --max: 1140px;
  --radius: 8px;
  --shadow: 0 6px 18px rgba(15, 35, 55, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Aptos", "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top right, #eef3f8 0%, var(--bg) 38%, var(--bg) 100%);
  line-height: 1.52;
}

a {
  color: var(--brand);
}

a:hover,
a:focus-visible {
  color: var(--brand-strong);
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.03), 0 4px 14px -2px rgba(15, 35, 55, 0.04);
  transition: all 0.2s ease;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1.25rem;
}

.topbar-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(18, 50, 80, 0.18);
  border-radius: 6px;
  padding: 7px 6px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 38px;
  height: 36px;
  transition: all 0.2s ease;
  touch-action: manipulation;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: rgba(18, 50, 80, 0.05);
  border-color: var(--brand);
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: #123250;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 980px) {
  .topbar-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 0.65rem 0;
    gap: 0;
  }

  .topbar-brand-row {
    width: 100%;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    display: none;
    width: 100%;
    padding: 0.75rem 0 0.5rem;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    margin-top: 0.65rem;
    animation: fadeIn 0.15s ease-out;
  }

  .nav-menu.is-open {
    display: block;
  }

  .tabs {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    width: 100%;
  }

  .tabs a {
    display: flex;
    width: 100%;
    padding: 0.65rem 0.85rem;
    font-size: 0.94rem;
    border-radius: 6px;
  }

  .tabs a[href="contact-us.html"] {
    margin-left: 0;
    margin-top: 0.3rem;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

.brand:hover {
  opacity: 0.94;
}

.brand-mark-img {
  width: 38px;
  height: auto;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 2px 4px rgba(15, 35, 55, 0.12));
}

.brand:hover .brand-mark-img {
  transform: scale(1.06) rotate(-2deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title {
  font-weight: 750;
  font-size: 1.3rem;
  letter-spacing: -0.025em;
  color: #0b1d2e;
}

.brand-subtitle {
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #64748b;
  margin-top: 2px;
}

.tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 0.25rem;
}

.tabs a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 550;
  color: #475569;
  border-radius: 6px;
  padding: 0.42rem 0.7rem;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.18s ease-in-out;
  white-space: nowrap;
}

.tabs a:hover {
  color: #0f2337;
  background: rgba(15, 35, 55, 0.05);
}

.tabs a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.tabs .active {
  color: #ffffff;
  background: #123250;
  border-color: #123250;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(18, 50, 80, 0.22);
}

.tabs a[href="contact-us.html"] {
  border: 1px solid rgba(18, 50, 80, 0.22);
  background: rgba(18, 50, 80, 0.03);
  color: #123250;
  font-weight: 600;
  margin-left: 0.25rem;
}

.tabs a[href="contact-us.html"]:hover {
  background: #123250;
  color: #ffffff;
  border-color: #123250;
  box-shadow: 0 2px 8px rgba(18, 50, 80, 0.2);
}

.tabs .active[href="contact-us.html"] {
  background: #123250;
  color: #ffffff;
  border-color: #123250;
}

.hero {
  padding: 3.6rem 0 3rem;
  background: radial-gradient(circle at 50% 0%, rgba(219, 234, 254, 0.4) 0%, rgba(248, 250, 252, 0.7) 50%, #ffffff 90%);
  border-bottom: 1px solid var(--line);
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(147, 197, 253, 0.7);
  box-shadow: 0 1px 4px rgba(15, 35, 55, 0.04);
  color: #1e40af;
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2563eb;
  box-shadow: 0 0 6px #3b82f6;
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #0c1e33;
}

h1 {
  margin: 0.4rem 0 0.9rem;
  font-size: clamp(2rem, 3.8vw, 2.9rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.prose h1 {
  font-size: clamp(1.9rem, 3.5vw, 2.5rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--line);
  position: relative;
  margin-bottom: 1.2rem;
}

.prose h1::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--accent);
}

.lead {
  margin: 0 0 1.5rem;
  max-width: 74ch;
  color: #475569;
  font-size: 1.12rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.62rem 1.25rem;
  border-radius: 7px;
  text-decoration: none;
  transition: all 0.2s ease;
  line-height: 1.3;
}

.btn-primary {
  background: #123250;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(18, 50, 80, 0.25);
  border: 1px solid #123250;
}

.btn-primary:hover {
  background: #1a4269;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(18, 50, 80, 0.3);
}

.btn-secondary {
  background: #ffffff;
  color: #123250;
  border: 1px solid rgba(18, 50, 80, 0.25);
  box-shadow: 0 1px 3px rgba(15, 35, 55, 0.05);
}

.btn-secondary:hover {
  background: #f8fafc;
  color: #0b1a2c;
  border-color: #123250;
  transform: translateY(-1px);
}

.section {
  padding: 2rem 0;
}

.section-alt {
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.05rem 1.1rem;
  box-shadow: var(--shadow);
}

.card h2,
.prose h1,
.prose h2 {
  margin-top: 0;
}

.section-intro {
  color: var(--ink-soft);
  margin-top: -0.2rem;
}

.announcement-list {
  display: grid;
  gap: 0.8rem;
}

.announcement {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  box-shadow: var(--shadow);
}

.announcement h3 {
  margin: 0;
  font-size: 1.02rem;
}

.announcement time {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 0.2rem;
}

.announcement .content {
  margin-top: 0.52rem;
}

.prose {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.prose p,
.prose li {
  max-width: 78ch;
}

.prose pre {
  background: #0f2133;
  color: #e8eff7;
  padding: 0.75rem 0.85rem;
  border-radius: 6px;
  overflow-x: auto;
}

.prose code {
  font-family: "IBM Plex Mono", "Consolas", "Courier New", monospace;
}

.footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  padding: 1rem 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.footer-inner p {
  margin: 0.2rem 0;
}

@media (max-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.contact-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 1rem 0 1.75rem;
  flex-wrap: wrap;
}

.contact-logo {
  max-width: 95px;
  height: auto;
  flex-shrink: 0;
}

.diagram-figure {
  max-width: 520px;
  margin: 1.5rem auto 2rem;
  padding: 0;
}

.diagram-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 4px 14px rgba(15, 35, 55, 0.08);
  display: block;
  background: #ffffff;
}

figcaption {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.4;
}

code {
  word-break: break-word;
  overflow-wrap: break-word;
}

@media (max-width: 640px) {
  .hero {
    padding: 2.2rem 0 1.8rem;
  }

  .eyebrow {
    font-size: 0.72rem;
    line-height: 1.35;
    padding: 0.35rem 0.75rem;
    white-space: normal;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .brand-title {
    font-size: 1.2rem;
  }

  .brand-subtitle {
    font-size: 0.66rem;
  }

  .section {
    padding: 1.5rem 0;
  }
}
