/*
 * Homepage rhythm experiment.
 * Gives NEWS, BUY TIMING, and PRODUCT DATABASE different section grammar
 * without replacing the main CSS bundle.
 */

body.home-page #news.news-section,
body.home-page #buy-timing.section--buy-time {
  isolation: isolate;
}

body.home-page #news.news-section {
  padding-block: 64px 76px !important;
  background: #fff !important;
}

body.home-page main > .home-editor-note + #home-latest.home-section--paper {
  padding-top: 24px !important;
}

body.home-page main > .home-editor-note + #home-latest .hm-latest-articles.hm-latest-articles--paper {
  padding-top: 36px !important;
}

body.home-page #news .news-list--briefing .news-item__link::after {
  content: "\2192";
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  color: rgba(17, 17, 17, 0.28);
  font-family: var(--f-en, var(--font-display, sans-serif));
  font-size: 16px;
  font-weight: 780;
  line-height: 1;
  transition: color 180ms ease, transform 180ms ease;
}

body.home-page #news .news-list--briefing .news-item__link:hover::after,
body.home-page #news .news-list--briefing .news-item__link:focus-visible::after {
  color: var(--accent, #d97868);
  transform: translateX(4px);
}

body.home-page #news .news-list--briefing .news-item__title,
body.home-page #news .news-list--briefing .news-item:first-child .news-item__title {
  color: #111 !important;
  font-size: 18px !important;
  font-weight: 780 !important;
  line-height: 1.42 !important;
}

body.home-page #news .news-list--briefing .news-item__category,
body.home-page #news .news-list--briefing .news-item:first-child .news-item__category {
  color: var(--accent, #d97868) !important;
}

body.home-page #buy-timing.section--buy-time {
  padding-block: 72px 84px !important;
  border-block: 1px solid rgba(17, 17, 17, 0.08);
  background: #fff !important;
}

body.home-page #buy-timing .hm-buy-timing-panel--summary {
  overflow: visible;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #111 !important;
  box-shadow: none !important;
}

body.home-page #buy-timing .hm-buy-timing-panel__intro {
  margin: 0 !important;
  padding: 18px 0 0 !important;
  border-top: 1px solid rgba(17, 17, 17, 0.22);
  border-bottom: 0 !important;
}

body.home-page #buy-timing .hm-buy-timing-panel__lead {
  max-width: 34em !important;
  margin: 0 !important;
  color: rgba(17, 17, 17, 0.54) !important;
  font-size: 13px !important;
  font-weight: 620 !important;
  line-height: 1.8 !important;
}

body.home-page #buy-timing .hm-buy-timing-panel__grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
}

body.home-page #buy-timing .hm-buy-timing-card {
  display: grid !important;
  align-content: start !important;
  min-height: 232px !important;
  padding: 24px !important;
  border: 1px solid rgba(17, 17, 17, 0.14) !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #111 !important;
  box-shadow: none !important;
  transition: border-color 180ms ease, transform 180ms ease;
}

body.home-page #buy-timing .hm-buy-timing-card + .hm-buy-timing-card {
  border-top: 1px solid rgba(17, 17, 17, 0.14) !important;
}

body.home-page #buy-timing .hm-buy-timing-card::before {
  top: 0 !important;
  right: -1px !important;
  left: -1px !important;
  height: 4px !important;
  background: var(--hm-buy-status, #fff) !important;
  opacity: 0.88 !important;
}

body.home-page #buy-timing .hm-buy-timing-card:hover,
body.home-page #buy-timing .hm-buy-timing-card:focus-visible {
  border-color: rgba(17, 17, 17, 0.24) !important;
}

body.home-page #buy-timing .hm-buy-timing-card__head {
  display: block !important;
}

body.home-page #buy-timing .hm-buy-timing-card__mark {
  display: none !important;
}

body.home-page #buy-timing .hm-buy-timing-card__title-row {
  display: grid !important;
  gap: 7px !important;
}

body.home-page #buy-timing .hm-buy-timing-card h3 {
  color: #111 !important;
  font-family: var(--f-en, var(--font-display, sans-serif)) !important;
  font-size: 40px !important;
  font-weight: 820 !important;
  letter-spacing: 0 !important;
  line-height: 0.95 !important;
}

body.home-page #buy-timing .hm-buy-timing-card p,
body.home-page #buy-timing .hm-buy-timing-card__scope {
  color: rgba(17, 17, 17, 0.58) !important;
}

body.home-page #buy-timing .hm-buy-timing-card__scope {
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  letter-spacing: 0.04em !important;
}

body.home-page #buy-timing .hm-buy-timing-card ul {
  display: grid !important;
  gap: 10px !important;
  margin: 22px 0 20px !important;
  padding: 0 !important;
  list-style: none !important;
}

body.home-page #buy-timing .hm-buy-timing-card li {
  color: #111 !important;
  font-size: 14px !important;
  font-weight: 720 !important;
  line-height: 1.35 !important;
}

body.home-page #buy-timing .hm-buy-timing-card li::before {
  color: var(--hm-buy-status, #fff) !important;
}

body.home-page #buy-timing .hm-buy-timing-card__cta {
  align-self: end !important;
  color: color-mix(in srgb, var(--hm-buy-status, #111) 78%, #111) !important;
  font-size: 12px !important;
}

body.home-page #buy-timing .hm-buy-timing-card:hover .hm-buy-timing-card__cta,
body.home-page #buy-timing .hm-buy-timing-card:focus-visible .hm-buy-timing-card__cta {
  color: var(--hm-buy-status, #111) !important;
}

@media (min-width: 900px) {
  body.home-page #news.news-section {
    padding-block: 70px 86px !important;
  }

  body.home-page #news.news-section .container {
    display: grid !important;
    grid-template-columns: minmax(190px, 0.34fr) minmax(0, 1fr) !important;
    align-items: start !important;
    column-gap: 48px !important;
  }

  body.home-page #news .section-header--with-link {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  body.home-page #news .section-header--with-link::after {
    content: none !important;
  }

  body.home-page #news .section-header__title,
  body.home-page #news .section-header__title-link {
    max-width: 3.4em !important;
    font-size: 72px !important;
    line-height: 0.86 !important;
  }

  body.home-page #news .section-header__sub {
    max-width: 15em !important;
    margin: 2px 0 0 !important;
    color: rgba(17, 17, 17, 0.48) !important;
  }

  body.home-page #news .section-header__view-all {
    justify-self: start !important;
    margin-top: 26px !important;
    padding: 12px 0 !important;
    border-width: 1px 0 !important;
    border-style: solid !important;
    border-color: rgba(17, 17, 17, 0.2) !important;
    border-radius: 0 !important;
    background: transparent !important;
  }

  body.home-page #news .news-list--briefing {
    margin-top: 4px !important;
  }

  body.home-page #news .news-list--briefing .news-item__link,
  body.home-page #news .news-list--briefing .news-item:first-child .news-item__link {
    grid-template-columns: 74px minmax(0, 1fr) 32px !important;
    gap: 18px !important;
    padding: 14px 0 !important;
  }

  body.home-page #news .news-list--briefing .news-item__thumb,
  body.home-page #news .news-list--briefing .news-item:first-child .news-item__thumb,
  body.home-page #news .news-list--briefing .news-item__thumb--rail {
    width: 74px !important;
  }

  body.home-page #buy-timing .hm-buy-timing-panel--summary {
    display: grid !important;
    grid-template-columns: minmax(210px, 0.48fr) minmax(0, 2.1fr) !important;
    gap: 16px !important;
  }

  body.home-page #buy-timing .hm-buy-timing-panel__intro {
    display: flex !important;
    align-items: start !important;
    min-height: 100% !important;
    padding: 18px 18px 0 0 !important;
    border-top: 1px solid rgba(17, 17, 17, 0.22) !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
  }

  body.home-page #buy-timing .hm-buy-timing-panel__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  body.home-page #buy-timing .hm-buy-timing-card + .hm-buy-timing-card {
    border-top: 1px solid rgba(17, 17, 17, 0.14) !important;
    border-left: 1px solid rgba(17, 17, 17, 0.14) !important;
  }

}

@media (max-width: 899px) {
  body.home-page #news.news-section,
  body.home-page #buy-timing.section--buy-time {
    padding-block: 52px 62px !important;
  }

  body.home-page #buy-timing.section--buy-time {
    background: #fff !important;
  }

  body.home-page #news .news-list--briefing .news-item__link,
  body.home-page #news .news-list--briefing .news-item:first-child .news-item__link {
    grid-template-columns: 58px minmax(0, 1fr) 24px !important;
    gap: 12px !important;
  }

  body.home-page #news .news-list--briefing .news-item__thumb,
  body.home-page #news .news-list--briefing .news-item:first-child .news-item__thumb,
  body.home-page #news .news-list--briefing .news-item__thumb--rail {
    width: 58px !important;
  }

  body.home-page #news .news-list--briefing .news-item__title,
  body.home-page #news .news-list--briefing .news-item:first-child .news-item__title {
    font-size: 15px !important;
  }

  body.home-page #news .news-list--briefing {
    border-top-color: rgba(17, 17, 17, 0.34) !important;
  }

  body.home-page #news .news-list--briefing .news-item:first-child .news-item__link {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    padding: 16px 0 20px !important;
  }

  body.home-page #news .news-list--briefing .news-item:first-child .news-item__thumb,
  body.home-page #news .news-list--briefing .news-item:first-child .news-item__thumb--rail {
    order: 1 !important;
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    grid-column: auto !important;
    grid-row: auto !important;
  }

  body.home-page #news .news-list--briefing .news-item:first-child .news-item__meta {
    order: 2 !important;
    grid-column: auto !important;
    grid-row: auto !important;
  }

  body.home-page #news .news-list--briefing .news-item:first-child .news-item__title {
    order: 3 !important;
    grid-column: auto !important;
    grid-row: auto !important;
    font-size: clamp(21px, 6vw, 27px) !important;
    line-height: 1.34 !important;
  }

  body.home-page #news .news-list--briefing .news-item:first-child .news-item__link::after {
    content: "READ \2192" !important;
    order: 4 !important;
    align-self: flex-start !important;
    margin-top: 2px !important;
    color: #111 !important;
    font-size: 12px !important;
    letter-spacing: 0.08em !important;
    transform: none !important;
  }

  body.home-page #news .news-list--briefing .news-item:not(:first-child) .news-item__link {
    grid-template-columns: 50px minmax(0, 1fr) 18px !important;
    min-height: 74px !important;
    padding: 12px 0 !important;
  }

  body.home-page #news .news-list--briefing .news-item:not(:first-child) .news-item__thumb,
  body.home-page #news .news-list--briefing .news-item:not(:first-child) .news-item__thumb--rail {
    width: 50px !important;
  }

  body.home-page #news .news-list--briefing .news-item:not(:first-child) .news-item__title {
    font-size: 14px !important;
    line-height: 1.42 !important;
  }

  body.home-page #buy-timing .hm-buy-timing-card {
    display: grid !important;
    gap: 14px !important;
    min-height: 0 !important;
    padding: 18px 0 20px !important;
    border-width: 0 0 1px !important;
    border-color: rgba(17, 17, 17, 0.14) !important;
    background: #fff !important;
  }

  body.home-page #buy-timing .hm-buy-timing-card + .hm-buy-timing-card {
    border-top: 0 !important;
  }

  body.home-page #buy-timing .hm-buy-timing-card::before {
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    height: 3px !important;
  }

  body.home-page #buy-timing .hm-buy-timing-card__title-row {
    display: flex !important;
    align-items: baseline !important;
    gap: 10px !important;
  }

  body.home-page #buy-timing .hm-buy-timing-card h3 {
    font-size: 32px !important;
  }

  body.home-page #buy-timing .hm-buy-timing-card p {
    margin-top: 2px !important;
  }

  body.home-page #buy-timing .hm-buy-timing-card ul {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px 14px !important;
    margin: 6px 0 0 !important;
  }

  body.home-page #buy-timing .hm-buy-timing-card__cta {
    margin-top: 0 !important;
  }

}
