/* Nevada Legislature — Base Styles
   Single source of truth for CSS variables and base element styles.
   Link this file on any page using LCB web components. */

/* ─── Color & Design Variables ─────────────────────────────────────────────── */
:root {
  /* Primary Colors */
  --nevada-blue: #25408f;
  --silver: #c9c3bd;
  --light-yellow: #f9d173;
  --dark-green: #546425;
  --navy: #1b2f5a;
  --gray: #757575;
  /* Secondary Colors */
  --mustard-yellow: #c6a05d;
  --burnt-orange: #b66128;
  --sage-green: #9b9f88;
  --plum: #681f28;
  /* Primary Fonts */
  --font-primary: 'verdana-pro', Verdana, sans-serif;
  /* Animation timing */
  --transition: all 0.3s ease;
}

/* ─── Base Element Styles ───────────────────────────────────────────────────── */
html,
body {
  font-family: var(--font-primary);
  line-height: 1.6;
}

/* Clears the fixed lcb-navbar */
main {
  padding-top: 8rem;
}

/* ─── Typography ────────────────────────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--navy);
  margin: 0.5rem 0;
  letter-spacing: -0.02em;
  font-weight: 600;
  line-height: 1.5;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--nevada-blue);
  margin: 1.5rem 0 1rem 0;
}

h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--nevada-blue);
  margin-top: 0.5rem;
  border-radius: 2px;
}

h2.no-after::after {
  content: none;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
  margin: 1.25rem 0 0.75rem 0;
  border-left: 4px solid var(--nevada-blue);
  padding-left: 1rem;
}

dt {
  font-weight: 600;
}

ul {
  list-style-position: inside;
}

/* ─── Links ─────────────────────────────────────────────────────────────────── */
a:link,
a:visited {
  color: var(--nevada-blue);
  transition: var(--transition);
}

a:hover {
  color: var(--navy);
}

/* ─── Accessibility ─────────────────────────────────────────────────────────── */
a:focus,
button:focus {
  outline: 2px solid var(--nevada-blue);
  outline-offset: 2px;
}

.skip {
  background-color: white;
  position: absolute;
  top: -40px;
  left: 0;
  padding: 8px;
  z-index: 1050;
  transition: top 0.3s;
}

.skip:focus {
  top: 0;
  color: var(--navy);
  text-decoration: none;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}
