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

body {
  font-family:
    "Roboto",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* -- HEADER -- */
header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 0 48px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 200;
}

header .logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
header img {
  height: 38px;
  width: auto;
}

header nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
header nav a {
  color: var(--muted);
  text-decoration: none;
  font-family: "Raleway", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.15s;
}
header nav a:hover {
  color: var(--navy);
}
header nav a.active {
  color: var(--navy);
  border-bottom: 2px solid var(--teal);
  padding-bottom: 2px;
}

.nav-dropdown {
  position: relative;
}
.nav-dropdown > span {
  color: var(--muted);
  font-family: "Raleway", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 0.15s;
}
.nav-dropdown > span::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-left: 5px;
  vertical-align: middle;
  transition: transform 0.15s;
}
.nav-dropdown:hover > span {
  color: var(--navy);
}
.nav-dropdown:hover > span::after {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  min-width: 200px;
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.15s,
    visibility 0.15s;
  z-index: 300;
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 18px;
  color: var(--muted) !important;
  font-size: 0.825rem !important;
  border-bottom: none !important;
  transition: background 0.1s;
}
.nav-dropdown-menu a:hover {
  background: var(--bg);
  color: var(--navy) !important;
}

/* -- MAIN -- */
main {
  max-width: 820px;
  margin: 56px auto;
  padding: 0 24px 100px;
  flex: 1;
}

.page-header {
  margin-bottom: 44px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 14px;
}
.breadcrumb a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
}
.breadcrumb a:hover {
  color: var(--teal);
}

h1 {
  font-family: "Raleway", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.meta {
  color: var(--muted);
  font-size: 0.875rem;
}

p {
  margin-bottom: 16px;
  color: #3a4350;
  font-size: 0.95rem;
}
a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
}
a:hover {
  color: var(--teal);
}

/* -- FAQ NAV -- */
.faq-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}
.faq-nav a {
  font-family: "Roboto Mono", monospace;
  font-size: 0.75rem;
  color: var(--navy);
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.15s;
  letter-spacing: 0.02em;
  font-weight: 500;
}
.faq-nav a:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: rgba(70, 172, 185, 0.06);
}

/* -- FAQ SECTIONS -- */
.faq-section {
  margin-bottom: 48px;
}
.faq-section-title {
  font-family: "Raleway", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 8px;
  background: var(--surface-raised);
  overflow: hidden;
  transition: border-color 0.15s;
}
.faq-item:hover {
  border-color: #d0d2d6;
}
.faq-item[open] {
  border-color: var(--teal);
  box-shadow: 0 2px 8px rgba(70, 172, 185, 0.1);
}
.faq-item summary {
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 5px solid var(--muted);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  flex-shrink: 0;
  transition: transform 0.15s;
}
.faq-item[open] summary::before {
  transform: rotate(90deg);
}

.faq-answer {
  padding: 0 18px 18px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  color: #5c6370;
  font-size: 0.875rem;
  line-height: 1.7;
}
.faq-answer code {
  font-family: "Roboto Mono", monospace;
  font-size: 0.8em;
  background: rgba(66, 91, 121, 0.08);
  color: var(--navy);
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid var(--border);
}
.faq-answer strong {
  color: var(--text);
}
.faq-answer ul,
.faq-answer ol {
  padding-left: 20px;
  margin: 8px 0;
}
.faq-answer li {
  margin-bottom: 4px;
}
.faq-answer p {
  margin-bottom: 10px;
}

/* -- FOOTER -- */
footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 48px 24px 32px;
  font-size: 0.8rem;
}
.footer-logo {
  margin-bottom: 24px;
}
.footer-logo img {
  height: 56px;
  width: auto;
  opacity: 0.85;
}
footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  margin: 0 12px;
  transition: color 0.15s;
}
footer a:hover {
  color: #fff;
}
.footer-links {
  margin-bottom: 12px;
}
.footer-copy {
  opacity: 0.5;
}

/* -- RESPONSIVE -- */
@media (max-width: 640px) {
  header {
    padding: 0 20px;
  }
  header nav {
    display: none;
  }
  main {
    margin: 32px auto;
  }
  .faq-nav {
    flex-direction: column;
  }
}
