/* Editorial presentation shared by all editions. */
.journal-layout {
  --gallery-ink: #142b2a;
  --gallery-paper: #f9f7f0;
  --gallery-accent: #175b50;
  --gallery-line: #cbd7ce;
}

.journal-portal-header .journal-portal-bar {
  background: #eff3ed;
  border-block: 1px solid var(--gallery-line);
}

.journal-portal-header .journal-portal-links a {
  border-radius: .4rem;
  color: var(--gallery-ink);
}

.journal-news-home > .journal-hero-copy {
  position: relative;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, .85fr);
  gap: .5rem clamp(1rem, 5vw, 5rem);
  padding: clamp(1.25rem, 3vw, 2.5rem) 0 1rem;
  border-block-end: 0;
}

.journal-news-home .journal-hero-copy h1 {
  font-size: clamp(1.65rem, 3.3vw, 3rem);
  line-height: 1.18;
  color: var(--gallery-ink);
  letter-spacing: -.03em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.journal-news-home .journal-home-title-ja > span { display: inline-block; }
.journal-news-home .journal-hero-copy .portal-deck { display: none; }
.journal-news-home .journal-hero-copy .hero-copy {
  font-size: .95rem;
  line-height: 1.55;
  max-width: 64ch;
}

.journal-news-home .journal-hero-copy .journal-form {
  width: 100%;
  padding: .25rem;
  border-radius: .7rem;
  box-shadow: none;
  background: #f1f4ed;
}

.journal-news-home .journal-form :is(input, button) { border-radius: .45rem; }
.journal-news-home .journal-form button { padding-inline: 1rem; }
.journal-news-home .portal-directory-links { gap: .25rem .8rem; margin: 0; }
.journal-news-home .portal-directory-links a { min-height: 42px; font-weight: 650; }
.journal-news-home .portal-directory-links .gallery-buyer-link { color: var(--gallery-accent); }

.journal-news-home .journal-hero {
  align-items: start;
  gap: clamp(.8rem, 2.5vw, 2rem);
  margin-block: 0 clamp(1.7rem, 3vw, 3rem);
}

.journal-news-home .journal-hero > .portal-carousel {
  overflow: hidden;
  min-width: 0;
  padding: clamp(.55rem, 1.25vw, 1rem);
  border-radius: .9rem;
  background: #142e2a;
  box-shadow: 0 12px 26px #153d2d1a;
}

.journal-news-home .portal-carousel .portal-video-launch,
.journal-news-home .portal-carousel .lead-story .story-link > img { border-radius: .55rem; overflow: hidden; }
.journal-news-home .portal-carousel .story-link:hover h2 { text-underline-offset: .22em; }
.journal-news-home .journal-hero .lead-story h2 { text-wrap: pretty; line-height: 1.33; }
.journal-news-home .portal-carousel :is(.portal-story-date, .story-desc) { color: #d5e4da; }
.journal-news-home .portal-carousel-nav button { box-shadow: none; }
.journal-news-home .portal-carousel-nav button:hover { background: #31504a; color: white; }
.journal-news-home .portal-carousel-thumbnails button { border-radius: .4rem; }
.journal-news-home .portal-carousel-slides > [hidden] { display: none; }

.journal-news-home .portal-latest { border-color: var(--gallery-accent); }
.journal-news-home .portal-latest .portal-section-head { padding-block: .35rem; }
.journal-news-home .portal-category { border-radius: .7rem; overflow: hidden; }
.journal-news-home .portal-category-grid a { overflow-wrap: anywhere; }
.journal-news-home .portal-category li a:hover,
.journal-news-home .portal-latest li a:hover { transform: none; box-shadow: none; background: #eff4ee; }

.journal-news-home > .portal-buyer {
  border: 1px solid var(--gallery-line);
  border-inline-start: .3rem solid var(--gallery-accent);
  border-radius: .7rem;
  margin-block: 1.2rem 2rem;
  scroll-margin-block: 1rem;
}

.journal-news-home .portal-buyer-products img { border-radius: .35rem; }
.journal-news-home > .isc-chat-entry { margin-block: 1.2rem 2rem; }
.journal-news-home > .isc-chat-entry form { max-width: 56rem; }
.journal-layout .isc-chat-company { color: white; background: #175b50; border-color: #175b50; }
.journal-layout .isc-chat-company:hover { color: white; background: #12483f; }

.journal-layout .language-panel {
  width: min(34rem, calc(100vw - 2rem));
  padding: .45rem;
  gap: .2rem;
  background: #fffdf9;
  border: 1px solid var(--gallery-line);
  border-radius: .75rem;
  box-shadow: 0 .75rem 2rem #16352926;
}

.journal-layout .language-panel a { min-height: 44px; border-radius: .4rem; }
.journal-layout .language-panel a:hover { background: #ecf3ea; }
.journal-layout .language-panel a[aria-current="page"] { background: #e5efe6; color: #123d35; font-weight: 700; }
.journal-layout :is(a,button,summary,input):focus-visible { outline: 2px solid #207467; outline-offset: 2px; }
.journal-layout .portal-carousel :is(a,button):focus-visible { outline-color: #f4cc9e; outline-offset: -2px; }

.journal-layout .article-head h1 { color: var(--gallery-ink); line-height: 1.28; }
.journal-layout .article-guide {
  border: 1px solid var(--gallery-line);
  border-inline-start: .25rem solid var(--gallery-accent);
  border-radius: .7rem;
  overflow: hidden;
}

.journal-layout .article-guide .reference-summary { background: #f0f4ed; }
.journal-layout .article-guide h2 { color: #174d42; }
.journal-layout .article-guide .article-sources {
  background: #fffdf9;
  border-block-start: 1px solid var(--gallery-line);
  padding: .75rem clamp(.9rem, 3vw, 1.5rem);
}

.journal-layout .article-sources a { min-height: 44px; }
.journal-layout .article-guide .article-scope { margin-block: .6rem 0; }
.journal-layout .isc-article-consult { border-color: var(--gallery-line); border-radius: .7rem; }

@media (max-width: 690px) {
  .journal-portal-header .journal-portal-links {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    scrollbar-width: thin;
    scrollbar-color: #91a99c transparent;
  }

  .journal-portal-header .journal-portal-links a {
    flex: 0 0 auto;
    white-space: nowrap;
    min-height: 44px;
    padding-inline: .7rem;
    border: 0;
  }

  .journal-news-home > .journal-hero-copy { display: block; padding: 1rem 0 .7rem; }
  .journal-news-home .journal-hero-copy h1 { font-size: clamp(1.33rem, 6.3vw, 1.85rem); margin-block-end: .35rem; }
  .journal-news-home .journal-hero-copy .hero-copy { font-size: .85rem; }
  .journal-news-home .journal-hero-copy > :is(.journal-form, .journal-shortcuts) { display: none; }
  .journal-layout .journal-portal-header .topnav .journal-search-link { display: inline-flex; }
  .journal-news-home .portal-directory-links a { font-size: .8rem; }
  .journal-news-home .portal-directory-links a:not(.gallery-buyer-link) { display: none; }
  .journal-news-home .journal-hero { gap: 1.1rem; }
  .journal-news-home .portal-carousel .lead-story .portal-video { order: -2; }
  .journal-news-home .journal-hero .lead-story h2 { padding-inline-end: 1rem; font-size: 1.11rem; }
  .journal-news-home .portal-carousel .portal-video-launch img { aspect-ratio: 16 / 9; }
  .journal-news-home .portal-buyer-products { gap: .45rem; }
  .journal-layout .article-sources ul { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .journal-layout .journal-news-home :is(a, button), .journal-layout .language-panel a { transition: none; }
}

.journal-news-home .portal-carousel .portal-carousel-nav,
.journal-news-home .portal-carousel .portal-carousel-nav button { color: #dcebe1; }
.journal-news-home .portal-carousel .portal-carousel-nav button:disabled { color: #9eb5aa; }

@media (min-width: 691px) {
  .journal-portal-header .journal-portal-links { flex-wrap: nowrap; overflow-x: auto; }
  .journal-portal-header .journal-portal-links a { flex: 0 0 auto; padding-inline: clamp(.55rem, 1.05vw, .95rem); }
}

/* Make the featured-story selection and article action visible at a glance. */
.journal-news-home .portal-carousel .portal-carousel-thumbnails button {
  min-height: 48px;
  padding: .25rem;
  border-color: #69867f;
  background: #203c37;
  box-shadow: none;
}

.journal-news-home .portal-carousel .portal-carousel-thumbnails button:hover { background: #31504a; }
.journal-news-home .portal-carousel .portal-carousel-thumbnails button[aria-current="true"] {
  border-color: #f4cc9e;
  background: #3b5148;
}
.journal-news-home .portal-carousel [data-portal-prev],
.journal-news-home .portal-carousel [data-portal-next] {
  border: 1px solid #69867f;
  border-radius: .5rem;
}
.journal-news-home .portal-carousel .portal-carousel-nav {
  flex-wrap: wrap;
  margin-block-start: .55rem;
}
.journal-news-home .portal-carousel [data-portal-count] { font-variant-numeric: tabular-nums; }
.journal-news-home .portal-carousel [data-portal-pause] {
  border-radius: .5rem;
  padding-inline: .6rem;
  max-inline-size: 100%;
  white-space: normal;
}
.journal-news-home .portal-carousel[data-portal-manual] .portal-thumb-track { visibility: hidden; }
.journal-news-home .portal-carousel:dir(rtl) :is([data-portal-prev], [data-portal-next]) {
  scale: -1 1;
}

.journal-layout .article-head .isc-chat-article-jump {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-inline-size: 100%;
  margin-block: .15rem 1rem;
  padding: .5rem .8rem;
  border: 1px solid #8aaba0;
  border-radius: .55rem;
  background: #edf5ee;
  color: #175b50;
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  text-align: start;
  cursor: pointer;
}
.journal-layout .article-head .isc-chat-article-jump:hover { background: #dceee4; }

@media (max-width: 690px) {
  .journal-news-home .portal-carousel .portal-carousel-thumbnails button { grid-template-columns: 1fr; }
  .journal-news-home .portal-carousel .portal-thumb-photo { width: 100%; border-radius: .25rem; overflow: hidden; }
  .journal-news-home .portal-carousel .portal-thumb-title { font-size: .74rem; padding: .2rem; }
}

/* Use the rhythm of an editorial page for the home feature. */
.journal-news-home > .journal-hero-copy { border-block-end: 1px solid #d6cdbf; padding-block-end: .9rem; }
.journal-news-home .journal-hero-copy h1:lang(ja) {
  font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 700;
  letter-spacing: .025em;
}
.journal-news-home .journal-hero-copy .hero-copy { color: #4b5049; }
.journal-news-home .journal-hero { margin-block-start: 1rem; }
.journal-news-home .journal-hero > .portal-carousel {
  --feature-ink: #242a25;
  background: #f4f0e7;
  border: 1px solid #dbd3c6;
  border-radius: .45rem;
  color: var(--feature-ink);
  box-shadow: none;
}
.journal-news-home .feature-heading {
  border-inline-start: 3px solid #a64d38;
  color: var(--feature-ink);
  font-size: .95rem;
  line-height: 1.3;
  padding-inline-start: .55rem;
  margin: 0 0 .7rem;
}
.journal-news-home .portal-carousel .portal-video,
.journal-news-home .portal-carousel .portal-video-launch {
  border-radius: .2rem;
  overflow: hidden;
  background: #e6dfd1;
}
.journal-news-home .portal-carousel .portal-video-launch img { background: #e6dfd1; }
.journal-news-home .portal-carousel .lead-story .story-link h2 { color: var(--feature-ink); }
.journal-news-home .portal-carousel .lead-story .story-link .tag { color: #873a2a; }
.journal-news-home .portal-carousel .portal-story-date,
.journal-news-home .portal-carousel .feature-summary { color: #50564d; }
.journal-news-home .feature-summary { margin: .15rem 0 .65rem; font-size: .91rem; line-height: 1.6; }
.journal-news-home .portal-carousel .portal-carousel-controls { border-color: #d3c9b8; }
.journal-news-home .portal-carousel .portal-carousel-thumbnails button {
  background: #fffdf7;
  border-color: #c6bcac;
  color: #333d35;
}
.journal-news-home .portal-carousel .portal-carousel-thumbnails button:hover { background: #ece6d9; }
.journal-news-home .portal-carousel .portal-carousel-thumbnails button[aria-current="true"] {
  border-color: #a64d38;
  background: #f2e2d5;
  color: #49251e;
}
.journal-news-home .portal-carousel .portal-carousel-nav,
.journal-news-home .portal-carousel .portal-carousel-nav button { color: #353d35; }
.journal-news-home .portal-carousel .portal-carousel-nav button:hover { color: #353d35; background: #e8e3d9; }
.journal-news-home .portal-carousel .portal-carousel-nav :is([data-portal-prev],[data-portal-next]) { border-color: #c6bcac; }
.journal-news-home .portal-carousel :is(a,button):focus-visible { outline-color: #9a452f; }
.journal-news-home .portal-carousel img[src$="passton-red-pencil.jpg"] { object-fit: cover; object-position: right center; }
.journal-news-home .portal-video-launch img[src$="passton-red-pencil.jpg"] { transform: scale(1.38); transform-origin: right center; }

@media (max-width: 690px) {
  .journal-news-home .journal-hero { margin-block-start: .85rem; }
  .journal-news-home .feature-summary { font-size: .86rem; }
}
.journal-news-home .portal-carousel .portal-thumb-photo { overflow: hidden; }
.journal-news-home .portal-thumb-photo img[src$="passton-red-pencil.jpg"] {
  transform: scale(1.38);
  transform-origin: right center;
}

.journal-portal-header .journal-portal-bar .journal-portal-links {
  scrollbar-width: auto;
  scrollbar-color: #396859 #d8e5dc;
}

.journal-portal-header .journal-portal-bar .journal-portal-links::-webkit-scrollbar {
  display: block;
  height: 14px;
}

.journal-portal-header .journal-portal-bar .journal-portal-links::-webkit-scrollbar-track {
  background: #d8e5dc;
}

.journal-portal-header .journal-portal-bar .journal-portal-links::-webkit-scrollbar-thumb {
  background: #396859;
  border: 2px solid #d8e5dc;
  border-radius: 10px;
}

.journal-portal-header .journal-portal-bar .journal-portal-links::-webkit-scrollbar-thumb:hover {
  background: #204b3e;
}

@media (forced-colors: active) {
  .journal-portal-header .journal-portal-bar .journal-portal-links {
    scrollbar-color: auto;
  }
}
