/* Compact masthead and controls for phones while keeping the agency brand. */
.news-ticker .ticker-brand {
  display: none;
}

.logo-box {
  height: auto;
  aspect-ratio: 21 / 32;
  overflow: visible;
}

@media (max-width: 520px) {
  .wrap {
    width: min(1040px, calc(100% - 24px));
  }

  header.hero {
    padding: 14px 0 16px;
  }

  .hero-inner {
    justify-items: stretch;
    gap: 9px;
    text-align: right;
  }

  .brand-lockup {
    width: 100%;
    gap: 10px;
    align-items: center;
  }

  .logo-box {
    width: 38px;
    padding: 2px;
    border-radius: 12px;
  }

  .brand-copy {
    flex: 1;
  }

  .brand {
    font-size: 1.28rem;
    line-height: 1.2;
  }

  .brand-sub {
    font-size: 0.69rem;
    line-height: 1.35;
  }

  .certified {
    max-width: 100%;
    margin-top: 4px;
    padding: 3px 7px;
    border-radius: 9px;
    font-size: 0.56rem;
    line-height: 1.35;
    white-space: normal;
  }

  .certified svg {
    width: 12px;
    height: 12px;
  }

  .hero-content {
    padding-top: 7px;
  }

  .hero-kicker {
    margin-bottom: 1px;
    font-size: 0.66rem;
  }

  .hero-title {
    font-size: 1.13rem;
    line-height: 1.32;
  }

  .slogan {
    margin-top: 1px;
    font-size: 0.72rem;
  }

  .news-ticker {
    min-height: 46px;
    gap: 7px;
    padding: 6px 10px;
  }

  .ticker-live {
    gap: 6px;
    padding: 5px 7px;
    font-size: 0.67rem;
  }

  .ticker-group {
    gap: 12px;
    padding: 0 10px;
    font-size: 0.75rem;
  }

  .ticker-group svg {
    width: 17px;
    height: 17px;
  }

  .navbar-in {
    gap: 2px;
  }

  .chip {
    padding: 10px 11px;
    border-bottom-width: 3px;
    font-size: 0.82rem;
  }

  .actions {
    padding-inline-start: 2px;
  }

  .icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .hero-news,
  .hero-side,
  .grid {
    gap: 10px;
  }

  .hero-card {
    min-height: 164px;
  }

  .hero-card.main {
    min-height: 230px;
  }

  .hero-body {
    padding: 13px;
  }

  .hero-card.main h3 {
    font-size: 1.08rem;
    line-height: 1.5;
  }
}

@media (max-width: 360px) {
  .logo-box {
    width: 34px;
    padding: 2px;
  }

  .brand {
    font-size: 1.16rem;
  }

  .brand-sub {
    font-size: 0.63rem;
  }

  .certified {
    font-size: 0.51rem;
  }

  .hero-card.main {
    min-height: 210px;
  }

  .chip {
    padding-inline: 9px;
  }

  .icon-btn {
    width: 34px;
    height: 34px;
  }
}

@media (min-width: 521px) and (max-width: 899px) {
  .hero-inner {
    justify-items: stretch;
    gap: 10px;
    text-align: right;
  }

  .brand-lockup {
    width: 100%;
    gap: 11px;
  }

  .brand-copy {
    flex: 1;
  }

  .hero-content {
    text-align: right;
  }

  .certified {
    width: fit-content;
    max-width: 100%;
    white-space: normal;
    border-radius: 10px;
  }

  .logo-box {
    width: 42px;
    padding: 2px;
  }
}

@media (min-width: 900px) {
  .brand-lockup {
    gap: 16px;
  }

  .logo-box {
    width: 50px;
    padding: 2px;
    border-radius: 16px;
  }
}
