/* victorngeno.com overrides for the elections map. story.css is a verbatim copy of the standalone
   story project's stylesheet; everything site-specific lives here so the two stay in sync.
   Loaded after Bootstrap, styles.css and story.css. */

/* ---- site palette and fonts (styles.css: navbar #2C3E50, accent #18BC9C, Lato / Montserrat).
   Map data colours (candidates, ramps) stay as they are: they encode data, not chrome. */
:root {
  --navy: #2C3E50;
  --navy-2: #34495e;
  --ink: #2C3E50;
  --muted: #5d6d7e;
  --accent: #18BC9C;
  --focus: #18BC9C;
  --font: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ---- one-screen app below the fixed site navbar (--nav-h is measured by the template script) */
.elections-map .app {
  margin-top: var(--nav-h, 70px);
  height: calc(100vh - var(--nav-h, 70px));
  height: calc(100dvh - var(--nav-h, 70px));
}

/* the map title is the navbar brand (no masthead); keep it on one line on phones.
   This stylesheet only loads on the map page, so #mainNav rules don't leak to other pages. */
@media (max-width: 767px) {
  #mainNav .navbar-brand { font-size: 14px; letter-spacing: 0; padding-right: 0; }
}
@media (max-width: 359px) {
  #mainNav .navbar-brand { font-size: 12px; }
  /* icon-only Menu button so the title still fits on one row */
  #mainNav .navbar-toggle { font-size: 0; padding: 8px 11px; }
  #mainNav .navbar-toggle .fa { font-size: 16px; }
}
.elections-map .explore { padding-top: 14px; }

/* Bootstrap sets html to 10px and Leaflet sizes its controls in rem */
.elections-map .leaflet-container { font-size: 12px; }

/* styles.css sets every <p> to 20px */
.elections-map .foot p { font-size: inherit; }

/* selected year/period: site accent instead of light blue */
.elections-map .seg-subs button[aria-pressed="true"] { background: #e8f8f5; border-color: #18BC9C; color: var(--ink); }
.elections-map .seg button:hover { border-color: #18BC9C; }

/* Bootstrap's .panel adds a bottom margin and its own border colour */
.elections-map .panel { margin-bottom: 0; border-color: var(--line); }

/* the site's slim footer follows directly */
.elections-map .foot { margin-bottom: 0; padding-bottom: 20px; grid-template-columns: 1fr; }
