/* Alliance for Youth Action — "Your Vote. Your Voice. Verified."
   Clean-slate stylesheet. The aya2020 theme CSS is NOT loaded: it sets
   html { font-size: 62.5% } (a 10px root that shrank every shared
   stylesheet to 62.5%) and paints headings blue across the page, which
   fought returns.css/national.css constantly. This file recreates the
   partner chrome from the theme's own rules — with the theme's rem
   values converted from its 10px root to px — and leaves the content to
   returns.css and national.css, which now render it exactly the way the
   state sites do. */

/* ---- Triade-Upright: the theme's display face, served locally. The
   src paths point at the theme's own font directory so the kit's asset
   localization copies the files into the build. ---- */
@font-face {
  font-family: 'Triade-Upright';
  src: url('assets/Triade-Upright.woff2') format('woff2'),
       url('assets/Triade-Upright.woff') format('woff'),
       url('assets/Triade-Upright.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ---- Header chrome ---- */
header.site-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px 8px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  background: #fff;
}
.site-branding { max-width: 200px; flex: none; }
.custom-logo-link { display: inline-block; }
.custom-logo { width: 100%; height: auto; display: block; }
/* The theme hides these with a clip rule; keep it. */
.site-title, .site-description {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
.main-navigation { display: block; }
.main-navigation ul {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-navigation li { position: relative; padding-right: 30px; }
.main-navigation li:last-of-type { padding-right: 0; }
.main-navigation a {
  display: block;
  text-decoration: none;
  font-family: 'Triade-Upright', 'Libre Franklin', sans-serif;
  text-transform: uppercase;
  color: #0033CC;
  font-size: 16px;
  line-height: 15px;
  padding: 6px 0;
}
.main-navigation li:hover > a,
.main-navigation a:hover { color: #01A6C4; }
.main-navigation li.menu-item-has-children a::after {
  content: "▾";
  display: inline-block;
  color: #01D5F3;
  margin-left: 3px;
}
.main-navigation ul ul { display: none; }
.menu-toggle { display: none; }

/* ---- Footer chrome ---- */
.site-footer {
  margin: 3rem 0 0;
  background: #0033CC;
  padding: 40px 24px 24px;
}
.footer-wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}
.footer-wrap .footer-col-1 { width: 50%; }
.footer-wrap .footer-col-2 { width: 50%; }
.footer-wrap p, .footer-wrap a { color: #ffffff; }
.site-footer ul#about-menu {
  list-style: none;
  margin: 0 0 48px;
  padding: 0;
}
.site-footer ul#about-menu li { margin: 0 0 10px; }
.site-footer .menu a {
  text-decoration: none;
  font-family: 'Libre Franklin', sans-serif;
  font-weight: 700;
  font-size: 16px;
  border-bottom: 4px solid transparent;
  display: inline-block;
}
.site-footer .menu a:hover { border-bottom-color: #ffffff; }
.site-footer .logo {
  width: 100%;
  clear: both;
  margin: 16px 0 10px;
}
.site-footer .logo span {
  display: block;
  background: #01D5F3;
  margin-bottom: 10px;
}
.site-footer .logo svg {
  background: #0033CC;
  padding-right: 10px;
  display: block;
  height: 21px;
}
/* The wordmark paths carry .st0 { fill: #0033CC } from an inline style
   inside each svg — invisible on the blue footer; the theme whitens them. */
.site-footer .logo .st0 { fill: #ffffff !important; }
.site-footer .copyright { font-size: 12px; margin: 0; }

/* ---- The content slot ---- */
.shell-slot {
  max-width: 1140px;
  margin: 0 auto;
  padding: 2.5rem 24px 4rem;
  font-family: 'Noto Serif', Georgia, serif;
  color: #111;
}
.shell-slot h1 {
  font-family: 'Libre Franklin', sans-serif;
  font-weight: 800;
  color: #0033CC;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.08;
  margin: 0 0 1.1rem;
}
.shell-subtitle {
  font-family: 'Libre Franklin', sans-serif;
  font-weight: 800;
  font-size: 1.55rem;
  line-height: 1.4;
  color: #0033CC;
  margin: 0 0 1.75rem;
}
/* Two-class specificity: shell.html's inline .shell-content rule would
   otherwise win over the single-class rule below. */
.shell-slot .shell-content { max-width: 47rem; font-size: 1.25rem; line-height: 1.7; }
.shell-content p { margin: 0 0 1.15rem; }
.results-explainer { max-width: 47rem; margin: 2.75rem 0; }
.results-explainer h2 {
  font-family: 'Libre Franklin', sans-serif;
  font-weight: 800;
  font-size: 1.9rem;
  margin: 0 0 .75rem;
  color: #0033CC;
}
.results-explainer p { font-size: 1.25rem; line-height: 1.7; margin: 0; }
.shell-slot .us-map { margin: 1.5rem auto; }

/* ---- Small screens ---- */
@media (max-width: 820px) {
  header.site-header { flex-direction: column; align-items: center; }
  .main-navigation ul { justify-content: center; }
  .main-navigation li { padding-right: 18px; }
  .footer-wrap .footer-col-1, .footer-wrap .footer-col-2 { width: 100%; }
}
