:root {
  --fr--color-sapphire-blue: #014371;
  --fr--color-sea-blue: #00639a;
  --fr--color-independence: #4e5a71;
  --fr--color-gainsborough: #d2dce3;
  --fr--color-platinum: #e4e8eb;
  --fr--color-sky-white: #fbfeff;
  --fr--color-yankees-blue: #161d39;

  --top-header-margin: 3rem;

  --bg-page: #f7f6f2;
}

html,
body {
  font-family: Lato, sans-serif;
  background-image: url("../images/header.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top center;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

hr.header-separator {
  margin: 0;
  border: none;
  border-top: 1px solid rgb(255, 255, 255);
}

.header {
  display: flex;
  align-items: center;
  align-content: center;
  color: rgba(255, 255, 255, 0.633);
  padding: 0.5em 1em;
  height: var(--top-header-margin);
}

.header > * {
  flex: 0 0 auto;
}

.header .header__link {
  align-self: baseline;
}

.header a,
.header button.button,
.header a:link,
.header a:visited,
.header a:hover,
.header a:active,
.header .header__link > a {
  display: inline-block;
  color: var(--fr--color-sky-white);
  margin-bottom: 0;
  transition:
    background-color 0.25s ease-out,
    color 0.25s ease-out;
}

.header__navigation {
  flex-shrink: 1;
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  margin: 0;
  padding: 0 0.5ch;
  gap: 0.5ch;
  scrollbar-width: none;
}

.header__navigation > ul {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5ch;
  margin: 0;
  padding: 0;
}

.header__navigation > ul > li {
  display: inline-flex;
}

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

.header__navigation a,
.header__navigation button.button {
  margin: 0.1rem 0.25rem;
  border-bottom: 1px solid transparent;
}

.header__navigation a:hover,
.header__navigation button.button:hover {
  border-bottom-color: currentColor;
}

.header__search {
  flex: 1;
}

.header__search input,
.header__search button {
  margin: 0;
}

main {
  flex: 1;
  background-color: var(--bg-page);
  overflow: hidden;
}

footer {
  border-top: 1px solid #ddd;
  background: rgba(225, 225, 225, 0.8);
  min-height: 25px;
  line-height: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
}

#tree-container svg {
  position: relative;
  display: block;
}

#tooltip {
  position: absolute;
  background: rgba(19, 28, 46, 0.96);
  color: #f6f8fb;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  font-size: 12px;
  line-height: 1.35;
  padding: 10px 12px;
  max-width: 460px;
  display: none;
  pointer-events: none;
  z-index: 1000;
}

.tooltip-card {
  display: grid;
  gap: 8px;
}

.tooltip-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.tooltip-subtitle {
  font-size: 11px;
  color: #c8d3e1;
  word-break: break-word;
}

.tooltip-meta-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  align-items: start;
}

.tooltip-key {
  color: #a6b7cc;
  font-weight: 600;
  white-space: nowrap;
}

.tooltip-value {
  color: #f6f8fb;
  word-break: break-word;
}

.tooltip-taxonomy-label {
  color: #a6b7cc;
  font-weight: 600;
}

.tooltip-taxonomy {
  color: #e8eef7;
  max-width: 430px;
  word-break: break-word;
}

.tree-label {
  cursor: pointer;
  fill: black;
}

.tree-label:hover {
  fill: #1f77b4;
  font-weight: bold;
}

.tree-match {
  fill: #f0a52c;
  font-weight: bold;
}

.tree-dim {
  fill: #ccc;
  opacity: 0.3;
}

/* . class selctor
   # id selector */
