/* Hide scrollbar, prevent horizontal overflow */
html,
body {
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

.section-label {
  letter-spacing: 0.12em;
}

/* Small stat / topic cards: centered content */
.card-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.card-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card-lift:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -10px rgb(41 51 61 / 0.18);
  border-color: #8fa3b5;
}

.btn-hover {
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-hover:hover {
  transform: translateY(-1px);
}

.link-hover {
  transition: color 0.15s ease, opacity 0.15s ease;
}

.link-hover:hover {
  color: #29333D;
  opacity: 0.9;
}

footer a {
  transition: color 0.15s ease;
}

footer a:hover {
  color: #29333D;
  text-decoration: underline;
}

#site-header a[aria-label="Financemavio home"] {
  transition: opacity 0.15s ease;
}

#site-header a[aria-label="Financemavio home"]:hover {
  opacity: 0.85;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:not([type="checkbox"]):not([type="radio"]):hover,
select:hover,
textarea:hover {
  border-color: #8fa3b5;
}

input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #40566B;
  box-shadow: 0 0 0 2px rgb(64 86 107 / 0.2);
}

button,
[type="submit"],
[type="button"] {
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

button:hover:not(:disabled),
[type="submit"]:hover:not(:disabled),
[type="button"]:hover:not(:disabled) {
  transform: translateY(-1px);
}
