/* banalyst static site — Cento-inspired theme */

:root {
  --text: #3e3e3e;
  --heading: #000;
  --muted: #b9b9b9;
  --nav-active: #333;
  --border: #f7f7f7;
  --footer: #777;
  --link: #5a7a9a;
  --mandatory: #a82e2e;
  --container: 960px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: "Quattrocento Sans", "Lato", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--nav-active);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

/* Header / nav */
.site-header {
  background: #fff;
  padding: 28px 0 0;
}

.site-brand {
  display: none;
}

.nav-wrap {
  width: 100%;
  padding: 10px 0 14px;
  border-bottom: 2px solid var(--border);
  background: #fff;
}

.nav {
  position: relative;
  text-align: center;
}

.nav-toggle {
  display: none;
  margin: 0 auto;
  padding: 8px 14px;
  border: 1px solid #ccc;
  background: #fff;
  color: #333;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.nav-list {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list > li {
  position: relative;
  display: inline-block;
  padding: 0 2px;
}

.nav-list a,
.nav-more-btn {
  display: block;
  padding: 5px 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 13px;
  font-weight: 400;
  line-height: 19px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.nav-list a:hover,
.nav-list a[aria-current="page"],
.nav-more-btn:hover,
.nav-more.open > .nav-more-btn {
  color: var(--nav-active);
}

.nav-more-btn::after {
  content: " ▾";
  font-size: 0.75em;
}

.nav-dropdown {
  display: none;
  position: absolute;
  left: 50%;
  top: 100%;
  z-index: 20;
  min-width: 220px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--muted);
  text-align: left;
}

.nav-more.open > .nav-dropdown {
  display: block;
}

.nav-dropdown li a {
  border-bottom: 1px solid var(--muted);
  white-space: nowrap;
}

.nav-dropdown li:last-child a {
  border-bottom: 0;
}

.nav-dropdown a:hover {
  color: var(--nav-active);
}

/* Main */
.site-main {
  padding: 24px 0 48px;
}

.banner {
  display: block;
  width: 100%;
  margin: 0 0 1.5rem;
  text-align: center;
}

.banner img {
  display: inline-block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.tool {
  margin: 0 0 0.5rem;
}

.tool-title {
  margin: 1.5rem 0 1rem;
  color: var(--heading);
  font-family: "Quattrocento", "Montserrat", serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
}

.tool-media {
  margin: 0 0 1rem;
}

.tool-media img.static-tool {
  display: block;
  width: 100%;
  height: auto;
}

.tool-source {
  margin: 0.75rem 0 1.5rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text);
}

.tool-source a {
  color: var(--link);
  text-decoration: underline;
}

.tool-source em {
  font-style: italic;
}

.tool-divider {
  border: 0;
  border-top: 1px solid #ddd;
  margin: 1.5rem 0;
}

.page-title {
  margin: 0.5rem 0 1.25rem;
  color: var(--heading);
  font-family: "Quattrocento", "Montserrat", serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
}

.page-title .mandatory {
  color: var(--mandatory);
  text-decoration: underline;
}

.report-body,
.refs-body {
  font-size: 1rem;
  line-height: 1.65;
  color: #2a2a2a;
}

.report-body .mandatory,
.refs-body .mandatory {
  color: var(--mandatory);
  font-weight: 700;
  text-decoration: underline;
}

.site-footer {
  padding: 28px 16px 40px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--footer);
  font-size: 0.9rem;
  line-height: 1.5;
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav-list {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    margin-top: 10px;
  }

  .nav.is-open .nav-list {
    display: flex;
  }

  .nav-list > li {
    display: block;
    border-bottom: 1px solid #eee;
  }

  .nav-dropdown {
    position: static;
    transform: none;
    border: 0;
    border-top: 1px solid #eee;
    min-width: 0;
  }

  .nav-more.open > .nav-dropdown {
    display: block;
  }

  .nav-dropdown li a {
    padding-left: 1.5rem;
  }
}
