@media screen and (min-width: 1500px) {
  /* Lock the hero headline once past the design width so it stops growing */
  .hero__heading-line--accent {
    font-size: 78px;
  }
  .hero__heading-line--main {
    font-size: 98px;
  }
}

@media screen and (max-width: 1300px) {
  :root {
    --page-pad: 60px;
  }

  .intro__text {
    font-size: 34px;
  }
  .mission__heading {
    font-size: 66px;
    line-height: 62px;
  }
  .mission__body {
    font-size: 21px;
  }
  .knowledge__heading {
    font-size: 66px;
    line-height: 65px;
  }
  .knowledge__heading-art {
    left: 258px;
    top: 68px;
    width: 246px;
    height: 84px;
  }
}

@media screen and (max-width: 1281px) {
  .knowledge__media {
    flex-basis: 400px;
  }
}

@media screen and (max-width: 1184px) {
  .mission__inner {
    gap: 40px;
  }
  .knowledge__inner {
    gap: 48px;
  }
  .signup__form {
    width: 100%;
  }
  .signup__photo {
    width: 280px;
    right: 20px;
  }
}

@media screen and (max-width: 1150px) {
  .vg-jump__links a {
    padding: 10px 16px;
    flex-grow: 1;
    text-align: center;
    font-size: 16px;
    justify-content: center;
  }
  .vg-jump__links {
    flex-wrap: wrap;
    justify-content: center;
  }
  .vg-jump__inner {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  .mission__heading br {
    display: none;
  }

  :root {
    --page-pad: 40px;
  }

  .mission__inner,
  .knowledge__inner {
    flex-direction: column;
    gap: 32px;
  }

  .mission__heading,
  .knowledge__body {
    flex: none;
    width: 100%;
  }

  .mission__body {
    width: 100%;
  }

  .knowledge__media {
    flex: none;
    width: 100%;
    max-width: 400px;
  }

  .knowledge__heading {
    font-size: 58px;
    line-height: 57px;
  }
  .knowledge__heading-art {
    left: 227px;
    top: 60px;
    width: 216px;
    height: 74px;
  }

  .signup__icon {
    display: none;
  }
  .signup__photo {
    width: 240px;
  }
}

@media screen and (max-width: 819px) {
  :root {
    --page-pad: 30px;
  }

  .site-header {
    top: 24px;
  }
  .site-header__nav {
    gap: 16px;
  }
  .site-header__nav a,
  .site-footer__nav a {
    font-size: 15px;
  }

  .intro__text {
    font-size: 26px;
  }

  .mission__heading {
    font-size: 52px;
    line-height: 49px;
  }
  .mission__body {
    font-size: 18px;
  }

  .knowledge__heading {
    font-size: 46px;
    line-height: 45px;
  }
  .knowledge__heading-art {
    left: 180px;
    top: 47px;
    width: 171px;
    height: 59px;
  }

  .signup__card {
    padding: 40px 24px 48px;
  }
  .signup__heading {
    font-size: 30px;
    line-height: 40px;
  }
  .signup__photo {
    display: none;
  }

  .site-footer {
    padding: 60px 30px;
  }
  .site-footer__logo {
    width: 74px;
    height: 120px;
  }

  .menu-header-container ul li {
    display: block;
    margin-bottom: 0;
  }
}

@media screen and (max-width: 667px) {
  .hero-desktop {
    display: none;
  }

  .layered-hero {
    aspect-ratio: 1000 / 949;
    margin-bottom: -30px;
    margin-top: -30px;
  }

  .hero-mobile {
    display: block;
  }
  .vg-office {
    text-align: center;
  }
  .vg-office__body {
    text-align: center;
    margin: 0 auto;
  }
  .vg-acc__label {
    width: fit-content;
    margin: 0 auto;
  }
  .vg-section ul {
    text-align: left;
  }
  .vg-jump__links a {
    font-size: 14px;
    padding: 8px 12px;
    flex-grow: 1;
    text-align: center;
    justify-content: center;
  }
  .vg-jump__inner {
    margin-bottom: 30px;
  }
  .vg-jump__links {
    flex-wrap: wrap;
    display: flex;
    width: 100%;
    text-align: center;
  }

  .vg-jump__label {
    margin: 0 auto 0 0;
    text-align: left;
  }

  /* Stack the hero in DOM order: header, then the composite art,
	   then the headline. */
  .hero {
    display: block;
  }

  /* --- Hamburger navigation --- */

  .site-header {
    position: relative;
    top: 0;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 24px 30px;
  }

  .site-header__toggle {
    display: block;
  }

  /* Collapsed panel drops out of the header */
  .site-header__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 25;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 30px;
    background-color: var(--color-black);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .site-header__nav[data-open="true"] {
    max-height: 220px;
    border-top: 1px solid rgba(221, 218, 210, 0.2);
    border-bottom: 1px solid rgba(221, 218, 210, 0.2);
  }

  .site-header__nav a {
    display: block;
    width: 100%;
    padding: 18px 0;
    font-size: 17px;
  }

  .site-header__nav a + a {
    border-top: 1px solid rgba(221, 218, 210, 0.12);
  }

  .hero__text {
    position: static;
    width: 100%;
    padding: 24px 30px 40px;
  }

  .hero__heading-line--accent {
    font-size: 44px;
    letter-spacing: -0.02em;
  }
  .hero__heading-line--main {
    font-size: 54px;
  }

  .intro {
    padding-bottom: 80px;
  }
  .intro__text {
    font-size: 22px;
  }

  .mission,
  .knowledge,
  .signup {
    padding-bottom: 80px;
  }

  .mission__heading {
    font-size: 42px;
    line-height: 40px;
  }

  /* Below this width the overlapping graffiti no longer fits inline */
  .knowledge__heading {
    font-size: 38px;
    line-height: 37px;
    white-space: normal;
  }
  .knowledge__heading-art {
    position: static;
    display: block;
    width: 200px;
    height: auto;
    margin-top: 4px;
  }

  .signup__row {
    flex-direction: column;
    gap: 12px;
  }
  .signup__row input,
  .signup__row input[name="zip_code"] {
    flex: none;
    width: 100%;
  }

  .site-footer__info {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media screen and (max-width: 420px) {
  :root {
    --page-pad: 20px;
  }

  .site-header {
    padding: 20px;
  }
  .site-header__nav {
    padding: 0 20px;
  }
  .hero__text {
    padding: 20px 20px 32px;
  }

  .hero__heading-line--accent {
    font-size: 36px;
  }
  .hero__heading-line--main {
    font-size: 44px;
  }

  .intro__text {
    font-size: 19px;
  }
  .mission__heading {
    font-size: 36px;
    line-height: 34px;
  }
  .knowledge__heading {
    font-size: 32px;
    line-height: 31px;
  }
  .knowledge__heading-art {
    width: 165px;
  }

  .signup__heading {
    font-size: 25px;
    line-height: 33px;
  }
  .site-footer {
    padding: 48px 20px;
  }
}

/* ==========================================================================
   Voter Guide (Page 02) responsive
   ========================================================================== */

@media screen and (max-width: 1300px) {
  .vg-hero__year {
    font-size: 132px;
    line-height: 76px;
  }
  .vg-hero__title {
    font-size: 80px;
    line-height: 78px;
  }
  .vg-hero__media {
    flex-basis: 520px;
  }
  .vg-office__title {
    flex-basis: 380px;
    font-size: 60px;
    line-height: 58px;
  }
  .vg-jump__links a {
    padding: 10px 16px;
    font-size: 16px;
  }
}

@media screen and (max-width: 1184px) {
  .vg-hero__media {
    flex-basis: 420px;
  }
  .vg-jump__links {
    flex-wrap: wrap;
  }
  .vg-band__rule {
    max-width: 200px;
  }
  .vg-band__inner {
    gap: 24px;
  }
}

@media screen and (max-width: 1050px) {
  #menu-header {
    gap: 5px;
    display: flex;
    flex-direction: column;
  }
  #menu-header li {
    padding: 10px 0;
  }

  footer #menu-header li {
    text-align: center;
    margin: 0 auto;
  }

  .vg-hero__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .vg-hero__media {
    flex: none;
    width: 100%;
    max-width: 644px;
  }

  .vg-office {
    flex-direction: column;
    gap: 24px;
  }
  .vg-office__left {
    flex: none;
    width: 100%;
  }
  .vg-office__title {
    flex: none;
    width: 100%;
  }

  .vg-resources {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 819px) {
  .vg-hero__year {
    font-size: 96px;
    line-height: 58px;
  }
  .vg-hero__title {
    font-size: 58px;
    line-height: 57px;
  }
  .vg-hero__intro {
    font-size: 19px;
  }

  .vg-office__title {
    font-size: 46px;
    line-height: 45px;
  }
  .vg-acc__label {
    font-size: 22px;
  }
  .vg-acc__content p {
    font-size: 19px;
  }

  .vg-band__title {
    font-size: 26px;
    line-height: 26px;
  }
  .vg-band__rule {
    display: none;
  }

  .vg-counties {
    grid-template-columns: 1fr;
  }
  .vg-section {
    padding: 48px var(--page-pad);
    gap: 48px;
  }
}

@media screen and (max-width: 667px) {
  #menu-header {
    gap: 0px;
  }

  /* The jump menu costs too much vertical space to pin on small screens */
  .vg-jump {
    position: static;
  }
  .vg-jump__inner {
    padding: 16px 20px;
  }
  .vg-jump__links a {
    font-size: 14px;
    padding: 8px 12px;
  }

  .vg-hero__year {
    font-size: 72px;
    line-height: 46px;
  }
  .vg-hero__title {
    font-size: 44px;
    line-height: 43px;
  }

  .vg-office__title {
    font-size: 36px;
    line-height: 35px;
  }
  .vg-acc__label {
    font-size: 19px;
  }
  .vg-acc__label--sm {
    font-size: 17px;
  }

  .vg-resources {
    grid-template-columns: 1fr;
  }
  .vg-county {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 28px;
  }
  .vg-county__map {
    width: 50%;

    margin: 0px auto 10px;
  }

  .vg-county__map img {
    max-width: unset;
    min-width: unset;
  }
  .vg-county__info {
    justify-content: center;
  }
  .vg-county__info * {
    text-align: center;
  }
}

@media screen and (max-width: 420px) {
  .vg-hero__year {
    font-size: 58px;
    line-height: 38px;
  }
  .vg-hero__title {
    font-size: 34px;
    line-height: 34px;
  }
  .vg-office__title {
    font-size: 30px;
    line-height: 29px;
  }
  .vg-band__title {
    font-size: 21px;
    line-height: 22px;
    white-space: normal;
  }
  .vg-candidate {
    gap: 12px;
  }
  .vg-candidate__photo {
    flex-basis: 60px;
    height: 60px;
  }
}

/* ==========================================================================
   Candidates Table (Page 03) responsive
   ========================================================================== */

@media screen and (max-width: 1050px) {
  .ct-hero__heading {
    font-size: 72px;
  }
  .ct-hero__eyebrow {
    line-height: 72px;
  }
  .ct-hero__title {
    line-height: 76px;
  }

  /* Below the table's design width the columns scroll sideways together */
  .ct-table {
    height: auto;
    padding: 20px 12px;
  }
  .ct-table__body {
    max-height: 520px;
    overflow-x: auto;
  }
  .ct-row {
    min-width: 720px;
  }
  .ct-row__office {
    margin-left: auto;
  }
  .ct-row__party,
  .ct-row__district {
    margin-left: 48px;
  }
  .ct-table__filters {
    gap: 24px;
  }
}

@media screen and (max-width: 819px) {
  .ct-hero__inner {
    padding-top: 64px;
  }
  .ct-hero__heading {
    font-size: 52px;
  }
  .ct-hero__eyebrow {
    line-height: 52px;
  }
  .ct-hero__title {
    line-height: 56px;
  }
  .ct-hero__intro {
    font-size: 19px;
  }

  .ct-section {
    padding: 48px var(--page-pad);
    gap: 48px;
  }
  .ct-table__title {
    font-size: 26px;
    line-height: 26px;
  }
  .ct-table__filters button {
    padding: 8px 14px;
    font-size: 15px;
  }
  .ct-row__name {
    flex-basis: 220px;
    font-size: 20px;
  }
}

@media screen and (max-width: 667px) {
  .ct-table__grid tbody td {
    font-size: 16px !important;
    line-height: 1.3;
  }

  .signup__form {
    gap: 10px;
  }
  .signup__form .btn {
    margin-top: 10px;
  }
  .ct-hero__heading {
    font-size: 38px;
  }
  .ct-hero__eyebrow {
    line-height: 38px;
  }
  .ct-hero__title {
    line-height: 41px;
  }

  .ct-table__head-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .ct-table__filters {
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
  }
  .ct-info__heading {
    font-size: 22px;
  }
  .btn {
    text-align: center;
    font-size: 15px !important;
  }
  .hero .btn {
    margin-top: 5px;
  }
}

@media screen and (max-width: 420px) {
  .ct-hero__heading {
    font-size: 30px;
  }
  .ct-hero__eyebrow {
    line-height: 30px;
  }
  .ct-hero__title {
    line-height: 33px;
  }
  .ct-table__filters button {
    padding: 7px 11px;
    font-size: 14px;
  }
}

/* ==========================================================================
   Interior template responsive
   ========================================================================== */

@media screen and (max-width: 1050px) {
  .int-title__heading {
    font-size: 60px;
    line-height: 58px;
  }
  .int-prose h2 {
    font-size: 36px;
  }
  .vg-office__title br {
    display: none;
  }
}

@media screen and (max-width: 819px) {
  .int-title {
    padding-top: 56px;
  }
  .int-title__heading {
    font-size: 46px;
    line-height: 45px;
  }
  .int-body {
    padding-bottom: 80px;
  }
  .int-prose {
    font-size: 17px;
  }
  .int-prose h2 {
    font-size: 30px;
  }
  .int-prose h3 {
    font-size: 23px;
  }
}

@media screen and (max-width: 667px) {
  .animate {
    opacity: 1 !important;
    transform: none !important;
  }
  .int-header {
    padding-top: 24px;
  }
  .int-title {
    padding-top: 40px;
  }
  .int-title__heading {
    font-size: 36px;
    line-height: 35px;
  }
  .int-prose h2 {
    font-size: 26px;
  }
  .int-prose h3 {
    font-size: 20px;
  }
}

@media screen and (max-width: 420px) {
  .ct-table__grid tbody td {
    font-size: 14px !important;
    line-height: 1.2 !important;
    padding: 4px 2px;
  }
  .ct-table__inner {
    min-width: max(100%, calc(140px + var(--ct-cols, 3) * 110px));
  }
  .ct-table__grid thead th {
    font-size: 20px;
    padding: 2px 2px;
  }
  .int-title__heading {
    font-size: 30px;
    line-height: 29px;
  }
  .int-prose {
    font-size: 16px;
  }
  .int-prose h2 {
    font-size: 23px;
  }
}
