/* John James for Michigan — shared base styles */
:root {
  --navy: #0a2240;
  --red: #c41230;
  --red2: #c8102e;
  --blue2: #121961;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family:
    "Lato",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  color: #333333;
  background: #ffffff;
}
h1,
h2,
h3,
h4,
h5,
h6,
.font-head {
  font-family: "Montserrat", system-ui, sans-serif;
}
.nav-link {
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 0;
  background: #c41230;
  transition: width 0.25s ease;
}
.nav-link:hover::after {
  width: 100%;
}
.hero-overlay {
  background: linear-gradient(
    90deg,
    rgba(10, 34, 64, 0.92) 0%,
    rgba(10, 34, 64, 0.78) 45%,
    rgba(10, 34, 64, 0.35) 100%
  );
}
.stripe-top {
  background: linear-gradient(
    90deg,
    #c41230 0 33.33%,
    #ffffff 33.33% 66.66%,
    #0a2240 66.66% 100%
  );
}
.card-hover {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -18px rgba(10, 34, 64, 0.45);
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.fade-up {
  animation: fadeUp 0.7s ease both;
}
.placeholder-note {
  background: repeating-linear-gradient(
    45deg,
    #f8f9fa,
    #f8f9fa 10px,
    #f2f3f5 10px,
    #f2f3f5 20px
  );
}

body.admin-bar header.sticky {
  top: 32px;
}
@media (max-width: 782px) {
  body.admin-bar header.sticky {
    top: 46px;
  }
}
@media (max-width: 600px) {
  body.admin-bar header.sticky {
    top: 0;
  }
}
.jj-skip {
  position: absolute;
  left: -10000px;
  top: 0;
  z-index: 999999;
  background: white;
  color: #0a2240;
  padding: 12px;
}
.jj-skip:focus {
  left: 0;
}
.jj-menu {
  display: contents;
  list-style: none;
  margin: 0;
  padding: 0;
}
#mobileMenu .jj-menu {
  display: block;
}
#mobileMenu .jj-menu a {
  display: block;
  padding: 0.5rem 0;
}
.current-menu-item > a,
.nav-link[aria-current="page"] {
  color: #c41230;
}
fieldset[data-preview-fields] {
  min-width: 0;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Dynamic news and migrated press releases. */
.jj-news-list h2,
.jj-news-list h3 {
  overflow-wrap: anywhere;
}
.jj-news-list a:hover,
.jj-news-back:hover {
  color: #c41230;
}
.jj-news-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}
.jj-news-pagination .page-numbers {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid #ddd;
}
.jj-news-pagination .current {
  background: #0a2240;
  color: white;
}
.jj-article {
  max-width: 864px;
  margin: 0 auto;
  padding: 48px 32px 64px;
}
.jj-news-back {
  display: inline-block;
  color: #0a2240;
  font-weight: 700;
  margin-bottom: 24px;
}
.jj-article-meta {
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}
.jj-article-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  color: #0a2240;
  line-height: 1.2;
  margin-bottom: 24px;
}
.jj-article-content {
  overflow-wrap: anywhere;
  line-height: 1.8;
  margin-bottom: 32px;
}
.jj-article-content > div {
  max-width: 100% !important;
  padding: 0 !important;
}
.jj-article-content img {
  max-width: 100%;
  height: auto;
}
.jj-article-content iframe,
.jj-article-content video {
  max-width: 100%;
}
.jj-article-content p {
  margin-bottom: 1em;
}
.jj-article-content ul {
  list-style: disc;
  margin: 1em 0;
  padding-left: 24px;
}
.jj-article-content ol {
  list-style: decimal;
  margin: 1em 0;
  padding-left: 24px;
}
.jj-article-content a {
  text-decoration: underline;
}
@media (max-width: 640px) {
  .jj-article {
    padding: 32px 20px;
  }
  .jj-article-content h1 {
    font-size: 26px !important;
  }
  .jj-article-content h2 {
    font-size: 23px !important;
  }
}

/* Supplied coalition artwork and explicit prototype labels. */
.jj-coalition-logo {
  width: clamp(110px, 18vw, 190px);
  height: auto;
  max-width: 40%;
  object-fit: contain;
  flex-shrink: 0;
  background: #fff;
  border-radius: 4px;
  padding: 8px;
}
.jj-demo-notice {
  margin-top: 16px;
  padding: 12px 16px;
  border: 1px dashed currentColor;
  font-size: 14px;
}

/* ---------- SITE FOOTER ---------- */
.jj-footer {
  background: #0a2240;
  color: #e6ebf2;
  border-top: 6px solid #c41230;
}
.jj-footer a {
  color: inherit;
  text-decoration: none;
}
.jj-footer a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}
.jj-footer-main {
  display: grid;
  grid-template-columns: 1.4fr 0.95fr 0.95fr 1.4fr;
  padding: 50px 0 50px;
}
.jj-footer-main > * {
  padding-right: clamp(20px, 2.6vw, 44px);
}
.jj-footer-main > * + * {
  padding-left: clamp(26px, 3.2vw, 54px);
}
.jj-footer-main > *:last-child {
  padding-right: 0;
}
.jj-footer-logo {
  display: inline-block;
}
.jj-footer-logo img {
  width: 180px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
.jj-footer-statement {
  margin: 10px 0 0 0;
  font-size: 15px;
  line-height: 1.45;
  color: #fff;
  letter-spacing: 0.02em;
}
.jj-footer-motto {
  margin: 16px 0 0;
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8b9cb2;
}
.jj-footer-head {
  margin: 0 0 18px;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8b9cb2;
  line-height: 1.3;
}
.jj-footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.jj-footer-nav li {
  margin: 0;
}
.jj-footer-nav a {
  display: block;
  padding: 6px 0;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 400;
  color: #cdd7e4;
  transition: color 0.15s;
}
.jj-footer-nav a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.jj-footer-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
  font-family: Montserrat, Arial, sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 17px;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}
.jj-footer-btn svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.jj-footer-btn--donate {
  background: #c41230;
  color: #fff;
}
.jj-footer-btn--donate:hover {
  background: #e0163a;
  color: #fff;
}
.jj-footer-btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.75);
  color: #fff;
  margin-top: 14px;
  padding: 16px 17px;
}
.jj-footer-btn--ghost:hover {
  background: #fff;
  color: #0a2240;
}
.jj-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  justify-content: center;
}
.jj-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}
.jj-social a:hover {
  background: #fff;
  color: #0a2240;
  border-color: #fff;
}
.jj-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}
.jj-footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  padding: 26px 0 42px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px 48px;
  justify-content: space-between;
  align-items: flex-start;
}
.jj-footer-legal p {
  margin: 0;
}
.jj-paid-disclaimer {
  font-size: 11px;
  margin-bottom: 5px;
  color: #fff;
  line-height: 1.5;
}
.jj-military-disclaimer {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.6;
  color: #93a3b8;
  max-width: 66ch;
}
.jj-footer-legal-right {
  margin-left: auto;
  text-align: right;
}
.jj-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  font-size: 14px;
  margin-bottom: 10px;
}
.jj-legal-links a {
  padding: 2px 0;
}
.jj-legal-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.jj-legal-links a:not(:last-child)::after {
  content: "|";
  margin: 0 18px;
  color: rgba(255, 255, 255, 0.28);
}
.jj-copyright {
  margin-top: 10px;
  font-size: 13px;
  color: #93a3b8;
}
@media (max-width: 1024px) {
  .jj-footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 46px 0 42px;
  }
  .jj-footer-main > * {
    padding-right: 0;
  }
  .jj-footer-main > * + * {
    border-left: 0;
    padding-left: 0;
  }
  .jj-footer-brand {
    order: 1;
  }
  .jj-footer-action {
    order: 2;
  }
  .jj-footer-nav {
    order: 3;
  }
}
@media (max-width: 640px) {
  .jj-footer-main {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 40px 0 34px;
  }
  .jj-footer-statement {
    font-size: 18px;
  }
  .jj-footer-nav a {
    padding: 11px 0;
  }
  .jj-footer-legal {
    flex-direction: column;
    gap: 22px;
    padding-bottom: 36px;
  }
  .jj-footer-legal-right {
    margin-left: 0;
    text-align: left;
  }
  .jj-legal-links {
    justify-content: flex-start;
  }
  .jj-legal-links a:not(:last-child)::after {
    margin: 0 14px;
  }
}
.jj-legal-heading {
  background: #0a2240;
  color: white;
  padding: 64px 24px;
}
.jj-legal-heading > div {
  max-width: 900px;
  margin: auto;
}
.jj-legal-heading h1 {
  font:
    800 clamp(30px, 5vw, 48px) / 1.2 Montserrat,
    Arial,
    sans-serif;
}
.jj-legal-copy {
  max-width: 948px;
  margin: auto;
  padding: 48px 24px 72px;
  font-size: 17px;
  line-height: 1.8;
  color: #24344a;
  overflow-wrap: anywhere;
}
.jj-legal-copy p {
  margin-bottom: 20px;
}
.jj-legal-copy ul {
  list-style: disc;
  padding-left: 24px;
  margin: 20px 0;
}
.jj-legal-copy li {
  margin: 8px 0;
}
.jj-legal-copy a {
  color: #a70d29;
  text-decoration: underline;
}
.jj-legal-copy strong {
  font-weight: 700;
}

/* Scroll reveal (assets/js/reveal.js). Scoped to html.js so nothing is hidden without JavaScript. */
html.js [data-reveal]:not([data-reveal="stagger"]),
html.js [data-reveal="stagger"] > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
html.js [data-reveal].is-visible:not([data-reveal="stagger"]),
html.js [data-reveal="stagger"].is-visible > * {
  opacity: 1;
  transform: none;
}
html.js [data-reveal="stagger"] > :nth-child(2) { transition-delay: 0.07s; }
html.js [data-reveal="stagger"] > :nth-child(3) { transition-delay: 0.14s; }
html.js [data-reveal="stagger"] > :nth-child(4) { transition-delay: 0.21s; }
html.js [data-reveal="stagger"] > :nth-child(5) { transition-delay: 0.28s; }
html.js [data-reveal="stagger"] > :nth-child(n + 6) { transition-delay: 0.35s; }
/* Once settled, hover effects (card-hover) get their own faster transition back. */
html.js [data-reveal].is-settled:not([data-reveal="stagger"]),
html.js [data-reveal="stagger"].is-settled > * {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  transition-delay: 0s;
}
@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal],
  html.js [data-reveal="stagger"] > * {
    opacity: 1 !important;
    transform: none !important;
  }
}
