@media (max-width: 540px) {
  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    min-height: 34px;
    padding: 0 10px;
    font: 800 11px/1 Inter, system-ui, sans-serif;
    cursor: pointer;
  }
  .top .links { display: none !important; }
  .top.mobile-menu-open .links {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    z-index: 30;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 8px 16px 14px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 22px #10182718;
  }
  .top.mobile-menu-open .links a {
    padding: 11px 5px;
    font-size: 13px;
  }
  .hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 126px !important;
    grid-template-areas:
      "eyebrow eyebrow"
      "title title"
      "summary score"
      "action action";
    gap: 12px 14px !important;
  }

  .hero > div { display: contents; }
  .hero .eyebrow { grid-area: eyebrow; }

  .hero h1 {
    grid-area: title;
    font-size: 34px !important;
    line-height: 1.03 !important;
    letter-spacing: -2px !important;
    max-width: none !important;
    margin: 0 !important;
  }

  /* A quebra é removida no celular para aproveitar a largura, mas o espaço
     entre as duas partes do título precisa continuar existindo. */
  .hero h1 br { display: none; }
  .hero h1 > span:first-child::after { content: ' '; white-space: pre; }
  .hero h1 em { white-space: normal; }

  .hero > div > p {
    grid-area: summary;
    margin: 0 !important;
    align-self: center;
    font-size: 15px !important;
    line-height: 1.42;
  }

  .hero > div > .action { grid-area: action; justify-self: start; }

  .pulse {
    grid-area: score;
    align-self: stretch;
    margin: 0 !important;
    padding: 13px 10px !important;
    border-radius: 13px !important;
  }

  .pulse small { display: block; white-space: normal; font-size: 8px; line-height: 1.2; }
  .pulse .score { display: flex; align-items: baseline; gap: 3px; white-space: nowrap; margin: 8px 0 0; font-size: 32px; line-height: 1; }
  .pulse .score span { display: inline; white-space: nowrap; font-size: 11px; }
}

@media (min-width: 541px) {
  .mobile-menu-toggle { display: none; }
}
