/*
 * ISTOÉ NEGÓCIOS | Home mobile premium v2.1
 * Editorial hierarchy only. No changes to desktop, post data, PRNews or Distributor.
 * This stylesheet intentionally loads after the existing responsive packages.
 */
@media (max-width: 767px) {
  body.home .in-home {
    background: #ffffff;
  }

  /* Main editorial cover: strong hierarchy without an oversized first screen. */
  body.home .in-home__hero.in-home__wrap {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 10px 16px 7px !important;
    background: #f5f6f6 !important;
  }
  body.home .in-home__hero-main {
    display: block !important;
    height: 365px !important;
    min-height: 365px !important;
    max-height: 365px !important;
    border-radius: 2px;
    background: #0c1822 !important;
  }
  body.home .in-home__hero-main::after {
    background: linear-gradient(180deg,rgba(6,15,22,.05) 12%,rgba(6,15,22,.32) 40%,rgba(6,15,22,.94) 100%) !important;
  }
  body.home .in-home__hero-main .in-home__hero-copy {
    left: 17px !important;
    right: 17px !important;
    bottom: 18px !important;
    width: auto !important;
    max-width: none !important;
  }
  body.home .in-home__hero-main h1 {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 5 !important;
    line-clamp: 5 !important;
    overflow: hidden !important;
    max-height: none !important;
    margin: 8px 0 7px !important;
    font-size: clamp(25px, 6.45vw, 29px) !important;
    line-height: 1.08 !important;
    letter-spacing: -.024em !important;
  }
  body.home .in-home__hero-main p {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    overflow: hidden !important;
    font-size: 12px !important;
    line-height: 1.48 !important;
    margin: 0 0 12px !important;
    color: #f0f2f3 !important;
  }
  body.home .in-home__hero-main .in-home__read {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 40px !important;
    padding: 9px 13px !important;
    border: 1px solid #e4bc73 !important;
    background: #e4bc73 !important;
    color: #0f1b25 !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: .055em !important;
    text-decoration: none !important;
  }
  body.home .in-home__hero-main .in-home__read:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
  }

  /* Three additional headlines behave as compact news cards. */
  body.home .in-home__hero-side {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) !important;
    grid-template-rows: none !important;
    gap: 8px !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }
  body.home .in-home__hero-side > .in-home__mini {
    display: grid !important;
    grid-template-columns: 112px minmax(0,1fr) !important;
    align-items: stretch !important;
    height: 100px !important;
    min-height: 100px !important;
    max-height: 100px !important;
    padding: 0 !important;
    border: 1px solid #e5e7e9 !important;
    border-left: 2px solid #d5a756 !important;
    border-radius: 2px;
    background: #fff !important;
    overflow: hidden !important;
    text-decoration: none !important;
  }
  body.home .in-home__hero-side > .in-home__mini > img {
    display: block !important;
    width: 112px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    max-height: 100px !important;
    object-fit: cover !important;
  }
  body.home .in-home__hero-side > .in-home__mini > img[src*="capa-"] {
    object-fit: contain !important;
    background: #101a24 !important;
  }
  body.home .in-home__mini-copy {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 7px 10px !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }
  body.home .in-home__mini .in-home__tag {
    padding: 3px 6px !important;
    font-size: 9px !important;
    line-height: 1.2 !important;
  }
  body.home .in-home__mini h2 {
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    font-size: 13px !important;
    line-height: 1.19 !important;
    font-weight: 700 !important;
    margin: 0 !important;
  }
  body.home .in-home__mini p {
    display: none !important;
  }

  /* Editorias: clear tap targets and concise labels rather than cramped copy. */
  body.home .in-home__cats {
    display: grid !important;
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap: 7px !important;
    margin: 13px 0 13px !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
  }
  body.home .in-home__cats .in-home__cat {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    min-height: 55px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 9px 9px !important;
    border: 1px solid #e5e8ea !important;
    border-left: 3px solid #d4a856 !important;
    border-radius: 2px;
    background: #f7f8f8 !important;
    text-decoration: none !important;
  }
  body.home .in-home__cat-icon {
    min-width: 19px !important;
    font-size: 19px !important;
    color: #aa792b !important;
  }
  body.home .in-home__cat strong {
    font: 700 12px/1.2 'DM Sans',Arial,sans-serif !important;
    overflow-wrap: anywhere;
  }
  body.home .in-home__cat small {
    display: none !important;
  }
  body.home .in-home__cat:focus-visible,
  body.home .in-home__mini:focus-visible {
    outline: 2px solid #9c732c !important;
    outline-offset: 2px;
  }

  /* Tight, readable headlines list. Never hide published story links. */
  body.home .in-home__main-grid {
    grid-template-columns: minmax(0,1fr) !important;
    gap: 17px !important;
    margin: 9px 0 12px !important;
  }
  body.home .in-home__main-grid .in-home__section-head {
    margin-bottom: 8px !important;
  }
  body.home .in-home__section-head h2 {
    font-size: 17px !important;
    letter-spacing: -.015em !important;
  }
  body.home .in-home__latest-list {
    display: block !important;
  }
  body.home .in-home__latest-list li {
    display: grid !important;
    grid-template-columns: 42px minmax(0,1fr) !important;
    gap: 10px !important;
    padding: 10px 0 !important;
  }
  body.home .in-home__latest-list time {
    font-size: 10px !important;
    color: #886625 !important;
  }
  body.home .in-home__latest-list a {
    font-size: 12px !important;
    line-height: 1.39 !important;
    color: #29333b !important;
  }
  body.home .in-home__latest-more {
    display: block !important;
    margin-top: 8px !important;
    min-height: 39px !important;
    padding: 11px 14px !important;
    border: 1px solid #e3e6e8;
    background: #f3f4f4 !important;
  }

  /* One large featured story followed by smaller editorial brief cards. */
  body.home .in-home__feature-grid {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) !important;
    gap: 13px !important;
  }
  body.home .in-home__feature-grid .in-home__card:first-child {
    display: block !important;
    padding: 0 0 12px !important;
    border-bottom: 1px solid #dfe4e6 !important;
  }
  body.home .in-home__feature-grid .in-home__card:first-child .in-home__card-image {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/9 !important;
  }
  body.home .in-home__feature-grid .in-home__card:first-child h3 {
    margin: 9px 0 5px !important;
    font-size: 21px !important;
    line-height: 1.14 !important;
  }
  body.home .in-home__feature-grid .in-home__card:nth-child(n+2) {
    display: grid !important;
    grid-template-columns: minmax(104px,33%) minmax(0,1fr) !important;
    grid-template-rows: minmax(0,auto) !important;
    column-gap: 12px !important;
    align-items: center !important;
    padding: 0 0 13px !important;
    border-bottom: 1px solid #e2e6e8 !important;
    background: #fff !important;
  }
  body.home .in-home__feature-grid .in-home__card:nth-child(n+2) .in-home__card-image {
    grid-column: 1 !important;
    grid-row: 1 !important;
    display: block !important;
    width: 100% !important;
    height: 108px !important;
    min-height: 108px !important;
    aspect-ratio: auto !important;
    overflow: hidden !important;
  }
  body.home .in-home__feature-grid .in-home__card:nth-child(n+2) h3 {
    grid-column: 2 !important;
    grid-row: 1 !important;
    margin: 0 !important;
    font-size: 15px !important;
    line-height: 1.23 !important;
    align-self: center !important;
    -webkit-line-clamp: 4 !important;
  }
  body.home .in-home__feature-grid .in-home__card:nth-child(n+2) p {
    display: none !important;
  }

  /* More news: preserve all six linked articles but reduce visual repetition. */
  body.home .in-home__secondary-grid {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) !important;
    gap: 13px !important;
    margin: 17px 0 12px !important;
  }
  body.home .in-home__secondary-grid::before {
    content: 'MAIS NOTÍCIAS';
    grid-column: 1 / -1;
    display: block;
    font: 700 17px/1.2 'Playfair Display',Georgia,serif;
    color: #18212a;
    padding: 0 0 10px;
    border-bottom: 1px solid #dfe4e6;
  }
  body.home .in-home__secondary-grid .in-home__card:first-child {
    display: block !important;
    padding: 0 0 14px !important;
    border-bottom: 1px solid #e3e6e8 !important;
  }
  body.home .in-home__secondary-grid .in-home__card:first-child .in-home__card-image {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/9 !important;
  }
  body.home .in-home__secondary-grid .in-home__card:first-child h3 {
    font-size: 20px !important;
    line-height: 1.16 !important;
    margin: 9px 0 5px !important;
  }
  body.home .in-home__secondary-grid .in-home__card:nth-child(n+2) {
    display: grid !important;
    grid-template-columns: minmax(104px,33%) minmax(0,1fr) !important;
    grid-template-rows: minmax(0,auto) !important;
    column-gap: 12px !important;
    align-items: center !important;
    min-width: 0 !important;
    padding: 0 0 13px !important;
    border-bottom: 1px solid #e3e6e8 !important;
    background: #fff !important;
  }
  body.home .in-home__secondary-grid .in-home__card:nth-child(n+2) .in-home__card-image {
    display: block !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    height: 108px !important;
    min-height: 108px !important;
    aspect-ratio: auto !important;
    overflow: hidden !important;
  }
  body.home .in-home__secondary-grid .in-home__card:nth-child(n+2) h3 {
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: center !important;
    margin: 0 !important;
    font-size: 15px !important;
    line-height: 1.24 !important;
    -webkit-line-clamp: 4 !important;
  }
  body.home .in-home__secondary-grid .in-home__card:nth-child(n+2) p {
    display: none !important;
  }
  body.home .in-home__card-image .in-home__tag {
    left: 6px !important;
    bottom: 6px !important;
    padding: 3px 6px !important;
    font-size: 9px !important;
    max-width: calc(100% - 12px);
    line-height: 1.2 !important;
  }
  body.home .in-home__card-image img {
    height: 100% !important;
    object-fit: cover !important;
  }
  /* Portrait cover on the lead in More News: keep the author's face visible. */
  body.home .in-home__secondary-grid .in-home__card:first-child .in-home__card-image img {
    object-position: center 20% !important;
  }
  body.home .in-home__card-image img[src*="capa-"] {
    object-fit: contain !important;
    background: #101b25;
  }

  /* Compact the accessibility trigger without removing keyboard or screen-reader access. */
  body.home .mdp-readabler-trigger-button-box.bottom-right {
    right: 10px !important;
    bottom: 12px !important;
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
  }
  body.home #mdp-readabler-trigger-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 !important;
    border-radius: 50% !important;
  }
  body.home #mdp-readabler-trigger-button .mdp-readabler-trigger-button-caption {
    display: none !important;
  }
  body.home #mdp-readabler-trigger-button .mdp-readabler-trigger-button-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  body.home #mdp-readabler-trigger-button:focus-visible {
    outline: 3px solid #e4bd74 !important;
    outline-offset: 3px !important;
  }
}
@media (max-width: 359px) {
  body.home .in-home__hero-main {
    height: 360px !important;
    min-height: 360px !important;
  }
  body.home .in-home__hero-main h1 {
    font-size: 24px !important;
  }
  body.home .in-home__hero-side > .in-home__mini {
    grid-template-columns: 103px minmax(0,1fr) !important;
  }
  body.home .in-home__hero-side > .in-home__mini > img {
    width: 103px !important;
  }
}

