@font-face {
  font-family: 'APVarW05-Regular';
  src:
    url('https://www.dianomi.com/partner/apnews/fonts/APVarW05-Regular.woff2') format('woff2'),
    url('https://www.dianomi.com/partner/apnews/fonts/APVarW05-Regular.woff') format('woff');
}

/* Layout containers */
#dianomi_ad_4,
#dianomi_ad_5 {
  width: 50%;
  min-height: 300px;
}

body {
  padding: 0;
  margin: 0;
  background-color: #ffffff;
  height: auto;
  overflow: hidden;
}

/* Links */
a {
  color: #464646;
  text-decoration: none;
}

.action:hover,
.dianomi_provider_short:hover {
  text-decoration: none;
}

.maintext:hover {
  text-decoration: none;
  color: #a9a9aa;
}

/* Hero image */
.hero img {
  float: none;
  border: none;
  width: 100%;
  height: auto;
  max-height: 315px;
  max-width: 100%;
  margin: 0 0 10px;
  object-fit: cover;
  border-radius: 3px;
}

/* Wrapper */
.wrapper {
  position: relative;
  display: table;
  width: 103%;
  height: auto;
  margin-left: -3%;
  margin-top: 30px;
  padding-bottom: 15px;
  background-color: #ffffff;
  font-family: sans-serif;
}

/* Hero card */
.hero {
  position: relative;
  float: left;
  width: 50%;
  min-height: 240px;
  margin: 0 0 20px;
  padding-left: 3%;
  box-sizing: border-box;
}

.hero::before {
  content: "";
  position: absolute;
  top: 5px;
  right: 5px;
  width: 25px;
  height: 29px;
  background: url(https://www.dianomi.com/img/uploads/Z77kNKiqpgegPZy9kZyWDAAAABA.png)
    no-repeat;
  background-size: 100%;
  background-position: 0;
  background-color: transparent;
}

/* Sub hero */
.subhero {
  width: 100%;
  height: auto;
  margin: 0;
  padding-top: 0;
  text-align: left;
}

/* Text container */
.text {
  float: none;
  width: 100%;
  height: 88px;
  margin: 0;
  padding-left: 0;
  padding-top: 0;
  box-sizing: border-box;
  text-decoration: none;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 18px;
}

/* Headings (hidden) */
.heading_top,
.heading {
  display: none;
  visibility: hidden;
}

/* Main headline */
.maintext {
  display: block;
  width: 100%;
  margin: 0 0 3px;
  padding: 0;
  font-size: 18px;
  line-height: 1.4em;
  font-weight: 500;
  color: #191919;
  text-align: left;
  vertical-align: middle;
  transition: all 0.3s ease;
  font-family: 'APVarW05-Regular', -apple-system, Arial, Helvetica, 'Roboto',
    system-ui, sans-serif;
  font-variation-settings: "wdth" 100, "wght" 600;
}

/* Action (hidden) */
.action {
  display: none;
  visibility: hidden;
}

/* Provider + date */
.dianomi_provider_short,
.article_date {
  display: block !important;
  max-width: 100%;
  margin-top: 5px;
  font-size: 12px;
  font-weight: 500;
  font-style: normal;
  color: #ff322e;
  text-decoration: none;
  font-family: 'APVarW05-Regular', -apple-system, Arial, Helvetica, 'Roboto',
    system-ui, sans-serif;
}

/* Secondary lines (hidden) */
.wrapper .line2 {
  display: none;
  margin-left: 3%;
  margin-top: 0;
  margin-bottom: 15px;
  padding-bottom: 9px;
  font-size: 19px;
  font-weight: bold;
  letter-spacing: 0;
  color: #000;
  border-bottom: none;
  font-family: Helvetica, Arial, sans-serif;
}

.wrapper .sub-line2 {
  position: absolute;
  top: 8px;
  right: 5px;
  z-index: 1;
  display: none;
  width: 55px;
  height: 12px;
  overflow: hidden;
  padding-bottom: 0;
  font-size: 10px;
  font-weight: 300;
  color: #666;
  font-family: FaktSmConPro-SemiBold, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wrapper .sub-line2 a {
  color: #666;
}

.sub-line2 img {
  border: none;
  outline: none;
}

/* Small desktop and below */
@media screen and (max-width: 1024px) {
  .maintext {
    font-size: 16px;
  }
}

/* Mobile */
@media screen and (max-width: 460px) {
  .hero {
    float: none;
    width: 100% !important;
    min-height: 100px !important;
    height: auto;
    margin-bottom: 15px;
  }

  .subhero {
    max-height: 500px;
  }

  .line2 {
    margin-bottom: 20px;
  }

  .sub-line2 {
    top: 550px;
    right: 5px;
    bottom: 0;
  }

  .text {
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  .maintext {
    min-height: 0;
    font-size: 17px;
    padding: 0;
  }

  .dianomi_provider_short {
    margin: 0;
  }

  .hero img {
    float: none;
    max-width: 100%;
    margin-right: 0;
    object-fit: cover;
  }
}

/* Forced label */
.article_date::before,
.dianomi_provider_short::before {
  content: "AP News";
  color: #ff322e;
  opacity: 1;
  visibility: visible;
}

.article_date,
.dianomi_provider_short {
  color: white;
  visibility: hidden;
}
