* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Sofia Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: linear-gradient(135deg, #0077ff, #ff0000, #ff9900) fixed;
  color: #1d1d1f;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

header {
  background: linear-gradient(90deg, #0077ff, #ff0000);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 3vw, 1.5rem);
  height: 4rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 0.25rem 0.75rem rgba(255, 153, 0, 0.3);
}

.logo-text {
  font-weight: 700;
  font-size: clamp(1.4rem, 5vw, 1.75rem);
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.25rem, 1.5vw, 1rem);
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #ff9900;
  background: rgba(255, 255, 255, 0.1);
}

.hamburger {
  display: none;
  font-size: 1.5rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  width: 2.75rem;
  height: 2.75rem;
}

.wrap {
  width: 100%;
  max-width: 760px;
  margin: 2rem auto;
  padding: 0 16px;
}

article,
.related {
  background: #fff;
  border-radius: 1rem;
  padding: clamp(1.25rem, 5vw, 3rem);
  box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.15);
}

.breadcrumb {
  font-size: 0.875rem;
  color: #6e6e73;
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: #0062d1;
  text-decoration: none;
}

.tag {
  display: inline-block;
  background: #fff1e0;
  color: #b35900;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

article h1 {
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.meta {
  color: #6e6e73;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.lead {
  font-size: 1.15rem;
  color: #3a3a3c;
}

article h2 {
  font-size: clamp(1.3rem, 4.5vw, 1.6rem);
  line-height: 1.3;
  margin: 2rem 0 0.75rem;
  color: #0050b3;
}

article h3 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.5rem;
}

article p,
article ul,
article ol {
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

article ul,
article ol {
  padding-left: 1.4rem;
}

article li {
  margin-bottom: 0.4rem;
}

.toc {
  background: #f5f7fb;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.toc strong {
  display: block;
  margin-bottom: 0.4rem;
}

.toc ol {
  margin: 0;
}

.toc a {
  color: #0062d1;
}

.callout {
  border-left: 4px solid #ff9900;
  background: #fff8ef;
  padding: 1rem 1.25rem;
  border-radius: 0 0.5rem 0.5rem 0;
  margin: 1.5rem 0;
}

.disclaimer {
  font-size: 0.9rem;
  color: #6e6e73;
  border-top: 1px solid #e5e5ea;
  padding-top: 1rem;
  margin-top: 2rem;
}

.related {
  margin-top: 1.5rem;
}

.related h2 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.related ul {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.related a {
  color: #0062d1;
  font-weight: 600;
  text-decoration: none;
}

.related a:hover {
  text-decoration: underline;
}

footer {
  text-align: center;
  color: #fff;
  padding: 2rem 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 768px) {
  header {
    height: 3.5rem;
  }

  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 3.5rem;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: linear-gradient(90deg, #0077ff, #ff0000);
    padding: 0.5rem 1rem 1rem;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 0.75rem;
  }

  .wrap {
    margin: 1rem auto;
  }
}
