/* General Styles */
body {
  color: #333;
  display: grid;
  font-family: Lato, sans-serif;
  line-height: 1.1875;
}

p {
  font-size: 20px;
}

/* Form Styles */
form {
  margin: 3.5rem auto;
}

.form-container {
  margin: 0 auto;
  padding: 1rem 2.75rem;
  position: relative;
}

.input-container {
  margin: 2rem auto;
  max-width: 600px;
}

.input-container2 {
  margin: 2rem auto;
  max-width: 900px;
  display: flex;
  justify-content: center;
  border-bottom: 1px solid rgba(201, 201, 201, 0.7);
}

.input-container2:last-child {
  border-bottom: none;
}

/* Typography */
.title {
  font-size: 24px;
  text-align: center;
  line-height: 1.17;
  font-weight: 900;
  font-family: Lato, sans-serif;
  padding-top: 1rem;
}

.subtitle {
  font-size: 22px;
  text-align: center;
  line-height: 1.17;
  font-weight: 400;
  font-family: Lato, sans-serif;
}

label {
  font-weight: 900;
  margin: 0.5rem;
  vertical-align: middle;
}

/* Input Styles */
input[type="email"] {
  border: 0.0625rem solid #333;
  display: block;
  font-family: Lato, sans-serif;
  font-size: 1rem;
  height: 2.5rem;
  width: 100%;
  padding: 0 7px;
}

input[type="checkbox"] {
  appearance: none;
  width: 1.5em;
  height: 1.5em;
  border: 1px solid #000;
  background-color: white;
  vertical-align: middle;
  margin-left: 1rem;
}

input[type="checkbox"]::before {
  content: '✓';
  font-size: 2em;
  position: relative;
  bottom: 10px;
  visibility: hidden;
}

input[type="checkbox"]:checked::before {
  visibility: visible;
}

/* Button Styles */
.submit-button {
  /*background-color: {% if newspaper.newspaper_shortname == 'TFP' %} rgb(216, 35, 14) {% else %} #0274b7 {% endif %};*/
    background-color: #0274b7;
  border: none;
  border-radius: 3px;
  color: white;
  display: inline-block;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  transition: background-color 0.1s ease-in, box-shadow 0.1s ease-in;
  box-shadow: 0 0 0.25rem rgba(51, 51, 51, 0.2);
  margin: 0.5rem 0;
}

.submit-button:active {
  /*background-color: {% if newspaper.newspaper_shortname == 'TFP' %} rgb(234, 11, 11) {% else %} #0274b7 {% endif %};*/
  background-color: #0274b7;
}

a.headless-subscribe {
  background-color: #0274b7;
  border: none;
  border-radius: 3px;
  color: white;
  display: inline-block;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.5rem 1rem;
  text-decoration: none;
  transition: background-color 0.1s ease-in, box-shadow 0.1s ease-in;
  box-shadow: 0 0 0.25rem rgba(51, 51, 51, 0.2);
  margin: 0 1rem;
  width: 5rem;
}

/* Logo Styles */
.logo-wrap {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  margin: 1em auto;
}

.logo {
  flex-shrink: 2;
}

/* Card Styles */
.cards {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  margin: 0 auto;
}

.other {
  max-width: 900px;
}

.featured {
  max-width: 1200px;
}

.card-item {
  display: flex;
  width: 16rem;
  padding: 0.5em;
}

.card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 100%;
  border-radius: 3px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
  padding: 1rem 0.5rem;
  margin: 1rem 0;
}

.card-body p {
  flex: 1 0 auto;
  font-size: 14px;
}

.card-img {
  width: 40%;
  border-radius: 3px 3px 0 0;
  margin: 1rem 0 0 1rem;
}

.card-img:hover {
  opacity: 0.8;
}

.card-pretitle {
  text-transform: uppercase;
  font-size: 12px;
  margin: 0.5rem 1rem;
}

.card-title,
.card-text,
.card-footer {
  margin: 0.5rem 1rem;
}

/* Utility Classes */
.shadeGray {
  background-color: rgba(201, 201, 201, 0.2);
}

.fade {
  opacity: 0.2;
}

/* Responsive Design */
@media (max-width: 1194px) {
  .cards {
    max-width: 850px;
  }
}

@media (max-width: 647px) {
  .card-item {
    width: 18rem;
  }
  .title {
    padding: 0.3rem;
    font-size: 20px;
    font-weight: 700;
  }
  .subtitle {
    font-size: 18px;
  }
  .logo {
    max-width: 240px;
  }
  form {
    max-width: 320px;
  }
  .cards {
    max-width: 450px;
  }
  .card-item {
    width: 19rem;
  }
  .mob-hor {
    display: flex;
    flex-direction: row;
    align-items: center;
  }
  .card-img {
    width: 25%;
  }
  .card-body p {
    flex: auto;
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  .logo {
    max-width: 400px;
  }
}

@media (min-width: 768px) {
  p {
    font-size: 16px;
  }
  .logo {
    max-width: 700px;
  }
  .title {
    font-size: 32px;
  }
}