* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: #1f2933;
  background: #f6f8fb;
  line-height: 1.6;
}

a {
  color: #0f5f8f;
}

.topbar {
  background: #12355b;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 12px rgba(18, 53, 91, 0.18);
}

.nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 650;
  font-size: 0.94rem;
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.25rem;
}

.hero {
  background: #0f766e;
  color: #fff;
  border-radius: 10px;
  padding: 2.4rem 1.6rem;
  margin: 1rem 0 1.25rem;
}

.hero h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.12;
  margin: 0 0 0.75rem;
  max-width: 880px;
}

.hero p {
  margin: 0;
  max-width: 850px;
  font-size: 1.08rem;
}

.quick-answer {
  background: #fff;
  border-left: 5px solid #0f766e;
  border-radius: 8px;
  padding: 1.1rem 1.2rem;
  margin: 1rem 0;
  box-shadow: 0 4px 14px rgba(15, 35, 60, 0.08);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.panel {
  background: #fff;
  border-radius: 8px;
  padding: 1.25rem;
  margin: 1rem 0;
  box-shadow: 0 4px 14px rgba(15, 35, 60, 0.08);
}

.panel h2,
.panel h3 {
  color: #12355b;
  margin-top: 0;
}

.metric {
  background: #eef6f5;
  border-radius: 8px;
  padding: 1rem;
}

.metric strong {
  display: block;
  color: #0f766e;
  font-size: 1.35rem;
}

.link-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.75rem;
  padding: 0;
  list-style: none;
}

.link-list a {
  display: block;
  background: #f2f6fb;
  border: 1px solid #dce6f0;
  border-radius: 8px;
  padding: 0.8rem;
  text-decoration: none;
  font-weight: 700;
}

.note {
  background: #fff8e6;
  border: 1px solid #ecd08a;
  border-radius: 8px;
  color: #493800;
  padding: 1rem;
}

.faq-item {
  border-top: 1px solid #e5edf5;
  padding: 1rem 0;
}

.faq-item:first-child {
  border-top: 0;
}

footer {
  margin-top: 2rem;
  background: #12355b;
  color: #fff;
  text-align: center;
  padding: 1.5rem 1rem;
}

footer a {
  color: #fff;
}

@media (max-width: 720px) {
  .topbar {
    min-height: 88px;
  }

  .nav {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0;
    min-height: 88px;
    padding: 0;
    max-width: 100%;
    overflow-x: visible;
    overflow-y: visible;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .brand {
    display: flex;
    width: 100%;
    max-width: none;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    overflow: visible;
    padding: 0.72rem 0.75rem 0.56rem;
    white-space: nowrap;
    text-align: center;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0;
  }

  .brand::before {
    content: "\1F687";
    display: inline-block;
    line-height: 1;
  }

  .brand::after {
    content: none;
    display: none;
  }

  .nav-links {
    width: 100%;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    min-width: 0;
    justify-content: stretch;
    gap: 0.22rem;
    margin: 0;
    padding: 0.28rem 0.35rem 0.48rem;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }

  .nav-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    min-width: 0;
    min-height: 32px;
    width: 100%;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    white-space: nowrap;
    text-align: center;
    font-size: 0.64rem;
    font-weight: 800;
    line-height: 1.1;
    padding: 0.34rem 0.06rem;
    overflow: hidden;
    text-overflow: clip;
  }

  .nav-links a::after {
    content: none;
    display: none;
  }

  main {
    padding: 0.8rem;
  }

  .hero {
    padding: 1.5rem 1rem;
  }
}
