/* Bunny Fonts Import */
@import url('https://fonts.bunny.net/css2?family=Roboto:wght@400;500&display=swap');

html {
  font-size: 62.5%;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

*, ::after, ::before {
  box-sizing: inherit;
}

body {
  margin: 0;
  background-color: #faffff;
  font-family: 'Roboto', sans-serif;
  font-size: 1.6rem;
  line-height: 1.4;
  font-weight: 400;
  color: #101b1b;
  overflow-x: hidden;
}

.container {
  margin-right: auto;
  margin-left: auto;
  padding-right: 30px;
  padding-left: 30px;
  width: 100%;
  max-width: 1200px;
  box-sizing: border-box;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}

.col {
  position: relative;
  width: 100%;
  min-height: 1px;
  padding-right: 15px;
  padding-left: 15px;
  flex-basis: 0;
  flex-grow: 1;
  max-width: 100%;
}

.col-6 {
  flex: 0 0 50%;
  max-width: 50%;
}

/* Type */
h1, h2, h3, h4 {
  font-weight: 500;
}

h1 {
  margin: 6rem 0 2rem;
  font-size: 4rem;
}

h2 {
  margin: 5rem 0 2rem;
  font-size: 2.8rem;
  line-height: 1.2;
}

h3 {
  margin: 3rem 0 1rem;
  font-size: 2rem;
  line-height: 1.2;
}

.em {
  font-weight: 500;
}

@media screen and (max-width: 596px) {
  .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  h1 {
    font-size: 3rem;
  }
  h2 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.8rem;
  }
}

p {
  margin: 1.2rem 0;
}

a {
  color: #222323;
  text-decoration: none;
  transition: box-shadow 0.2s ease-out;
}

a:hover, a:focus {
  box-shadow: inset 0 -18px 0 0 rgba(48, 82, 82, 0.3);
  transition-timing-function: ease-in;
}

/* Intro - LEFT ALIGNED (no auto margins) */
.intro {
  max-width: 900px;
  margin-bottom: 15px;
}

/* Sources - LEFT ALIGNED (no auto margins) */
.source {
  max-width: 900px;
  margin: 50px 0 30px;
  font-size: 1.4rem;
}

/* legend */
.text-legend {
  display: inline-block;
  padding: 0px 3px;
  color: #f8ffff;
  font-weight: 500;
  border-radius: 2px;
}

.text-legend.women {
  background-color: #826C7F;
}

.text-legend.men {
  background-color: #FA7E61;
}

/* Top navigation */
body { 
  padding-top: 78px; 
  min-width: 320px;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #faffff;
  border-bottom: 1px solid rgba(16,27,27,0.10);
  width: 100%;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.topbar-title {
  font-size: 2.6rem;
  font-weight: 500;
  line-height: 1.2;
}

.topbar-authors {
  font-size: 1.3rem;
  color: rgba(16,27,27,0.70);
  margin-top: 2px;
}

.topbar-nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media screen and (max-width: 700px) {
  body { padding-top: 98px; }
  .topbar-inner { 
    align-items: flex-start;
    padding-left: 15px;
    padding-right: 15px;
  }
  .topbar-title { font-size: 1.5rem; }
}

.nav-dropdown {
  position: relative;
}

.nav-toggle {
  font-size: 1.4rem;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(16,27,27,0.15);
  background: transparent;
  color: rgba(16,27,27,0.85);
  cursor: pointer;
  font-family: inherit;
}

.nav-toggle:focus {
  outline: none;
  border-color: rgba(16,27,27,0.35);
}

.nav-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  background: #faffff;
  border: 1px solid rgba(16,27,27,0.12);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 10px 30px rgba(16,27,27,0.08);
  display: none;
  z-index: 2000;
  max-height: 80vh;
  overflow-y: auto;
}

.nav-menu.open {
  display: block;
}

.nav-menu .nav-link {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  color: rgba(16,27,27,0.85);
}

.nav-menu .nav-link:hover {
  background: rgba(16,27,27,0.06);
}

.nav-menu .nav-link.active {
  background: rgba(16,27,27,0.08);
}

/* remove global anchor highlight for nav */
.topbar .nav-link,
.topbar .nav-link:hover,
.topbar .nav-link:focus {
  box-shadow: none !important;
}

section {
  width: 100%;
  box-sizing: border-box;
}

.container > * {
  max-width: 100%;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-btn {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  background: #1f2937;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.2s ease;
}

.topbar-btn:hover {
  background: #111827;
}