/* mytime. HOME */

.home .ml-site-main {
  width: 100%;
  max-width: none;
  padding-top: 0;
  padding-bottom: 0;
  background: var(--ml-color-background);
}

@media (min-width: 1025px) {
  .home .ml-site-header {
    position: absolute;
    z-index: 50;
    top: 0;
    left: 0;
    border-bottom: 0;
    background: transparent;
  }

  .home .ml-header-inner {
    min-height: 88px;
  }

  .home .ml-site-brand__picture {
    width: 10.25rem;
  }

  .home .ml-primary-nav a,
  .home .ml-header-tools summary {
    color: var(--ml-color-background);
  }

  .home .ml-primary-nav a,
  .home .ml-header-tools summary {
    text-shadow: 0 1px 10px rgba(42, 37, 54, 0.24);
  }

  .home .ml-primary-nav a:hover {
    color: var(--ml-color-white);
  }

  .home .ml-site-header a:focus-visible,
  .home .ml-site-header summary:focus-visible {
    outline-color: var(--ml-color-background);
  }

  .ml-home-hero__copy h1 {
    white-space: nowrap;
  }
}

.ml-home {
  width: 100%;
  padding-bottom: var(--ml-space-2xl);
  --ml-color-secondary: var(--ml-color-secondary-strong);
  --ml-home-section-gap: 7.5rem;
}

.ml-home h2,
.ml-home h3 {
  padding: 0;
  border: 0;
}

.ml-home h2 {
  margin: var(--ml-space-xs) 0 var(--ml-space-md);
  font-size: 2rem;
  line-height: 1.45;
}

.ml-home h3 {
  margin: 0;
}

.ml-home-section {
  width: min(calc(100% - (var(--ml-page-padding) * 2)), var(--ml-site-width));
  margin-right: auto;
  margin-left: auto;
  margin-top: var(--ml-home-section-gap);
}

.ml-home-section-heading {
  max-width: 680px;
  margin-bottom: var(--ml-space-lg);
}

.ml-home-section-heading--row {
  display: flex;
  max-width: none;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--ml-space-lg);
}

.ml-home-section-heading--row > p {
  max-width: 440px;
}

.ml-home-section-heading__label {
  margin: 0 0 var(--ml-space-sm);
  color: var(--ml-color-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.5;
}

.ml-home-section-heading > :last-child {
  margin-bottom: 0;
}

.ml-home-text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: var(--ml-space-xs);
  color: var(--ml-color-accent);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--ml-color-border);
  text-underline-offset: 0.35em;
}

.ml-home-text-link:hover {
  color: var(--ml-color-accent);
  text-decoration-color: currentColor;
}

.ml-home-button {
  display: inline-flex;
  width: fit-content;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: var(--ml-space-sm);
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--ml-color-accent);
  border-radius: 14px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.ml-home-button--primary {
  background: var(--ml-color-accent);
  color: var(--ml-color-white);
}

.ml-home-button--primary:hover {
  background: var(--ml-color-text);
  color: var(--ml-color-white);
}

.ml-home-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  width: 100%;
  max-width: none;
  min-height: clamp(580px, 44vw, 660px);
  aspect-ratio: auto;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "copy"
    "actions";
  grid-template-rows: auto auto;
  align-content: start;
  overflow: hidden;
  margin-right: auto;
  margin-left: auto;
  background: var(--ml-color-accent);
}

.ml-home-hero__visual {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 0;
  background: var(--ml-color-soft-accent);
}

.ml-home-hero__visual::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(54, 48, 69, 0.14) 0%,
    rgba(54, 48, 69, 0.06) 24%,
    rgba(54, 48, 69, 0) 46%
  );
  content: "";
  pointer-events: none;
}

.ml-home-hero__visual img,
.ml-home-feature__visual img,
.ml-practice-card__image img,
.ml-article-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ml-home-hero__visual img {
  object-position: 52% center;
}

.ml-home-hero__copy {
  position: relative;
  z-index: 1;
  grid-area: copy;
  align-self: start;
  min-width: 0;
  max-width: min(42%, 560px);
  margin-left: clamp(3rem, 8vw, 7rem);
  padding: clamp(8rem, 10.5vw, 9.5rem) 0 0;
}

.ml-home-hero__copy h1 {
  margin: 0 0 1.25rem;
  color: var(--ml-color-background);
  font-family: "Hiragino Maru Gothic ProN", "Hiragino Maru Gothic Pro", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  font-size: clamp(2.375rem, 3.5vw, 3.375rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.4;
  text-shadow: 0 1px 10px rgba(42, 37, 54, 0.16);
}

.ml-home-hero__sub {
  margin-bottom: 0.75rem;
  color: var(--ml-color-background);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.7;
  text-shadow: 0 1px 8px rgba(42, 37, 54, 0.18);
}

.ml-home-hero__description {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--ml-color-background);
  font-size: 0.9375rem;
  line-height: 1.75;
  text-shadow: 0 1px 8px rgba(42, 37, 54, 0.18);
}

.ml-home-hero__actions {
  position: relative;
  z-index: 1;
  grid-area: actions;
  display: flex;
  min-width: 0;
  align-items: flex-start;
  margin-left: clamp(3rem, 8vw, 7rem);
  padding: 1.25rem 0 0;
}

.ml-home-hero .ml-home-button--primary {
  min-height: 48px;
  padding: 0.75rem 1.625rem;
  border-color: rgba(250, 248, 243, 0.9);
  border-radius: 13px;
  background: rgba(250, 248, 243, 0.9);
  color: var(--ml-color-accent);
}

.ml-home-hero .ml-home-button--primary:hover {
  border-color: var(--ml-color-white);
  background: var(--ml-color-white);
  color: var(--ml-color-text);
}

@media (min-width: 1025px) {
  .ml-home-hero {
    background: #74637b;
  }

  .ml-home-hero::before {
    position: absolute;
    inset: 0 auto 0 0;
    z-index: -3;
    width: 56%;
    background-image: url("../images/brand/home-hero-parent-child-v4.webp");
    background-repeat: no-repeat;
    background-position: left top;
    background-size: auto 1240px;
    content: "";
    opacity: 0.18;
    -webkit-mask-image: linear-gradient(to right, #000 0%, #000 58%, transparent 100%);
    mask-image: linear-gradient(to right, #000 0%, #000 58%, transparent 100%);
    pointer-events: none;
  }

  .ml-home-hero__visual {
    right: 0;
    left: auto;
    width: min(65.625%, 930px);
    background: transparent;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 18%);
    mask-image: linear-gradient(to right, transparent, #000 18%);
  }

  .ml-home-hero__visual::after {
    content: none;
  }

  .ml-home-hero__visual img {
    object-fit: contain;
    object-position: right center;
  }

  .ml-home-hero__copy {
    max-width: min(36%, 490px);
    margin-left: 8.5%;
    padding-top: clamp(9.375rem, 11.1vw, 10.625rem);
  }

  .ml-home-hero__copy h1 {
    margin-bottom: 1.75rem;
    font-size: clamp(38px, 3vw, 46px);
    line-height: 1.35;
  }

  .ml-home-hero__sub {
    margin-bottom: 0.875rem;
  }

  .ml-home-hero__description {
    line-height: 1.55;
  }

  .ml-home-hero__actions {
    margin-left: 8.5%;
    padding-top: 1.75rem;
  }
}

.ml-home-concept {
  max-width: 760px;
  text-align: center;
}

.ml-home-concept__motif {
  margin-bottom: var(--ml-space-md);
  color: var(--ml-color-lamp-gold);
  font-size: 1.5rem;
  line-height: 1;
}

.ml-home-concept h2 {
  font-size: 2.25rem;
}

.ml-home-concept > p:not(.ml-home-section-heading__label) {
  max-width: 640px;
  margin-right: auto;
  margin-left: auto;
  color: var(--ml-color-secondary);
}

.ml-home-themes .ml-home-section-heading,
.ml-home-latest .ml-home-section-heading {
  margin-bottom: 2rem;
}

.ml-theme-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--ml-space-md);
}

.ml-theme-card {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 265px;
  align-content: start;
  gap: var(--ml-space-sm);
  padding: 1.75rem;
  overflow: hidden;
  border: 1px solid rgb(61 58 64 / 8%);
  border-radius: 16px;
  color: var(--ml-color-text);
  text-decoration: none;
}

.ml-theme-card--star {
  background: #e8eef3;
}

.ml-theme-card--moon {
  background: #eeeaf3;
}

.ml-theme-card--book {
  background: #f1e8dc;
}

.ml-theme-card--cup {
  background: #e8eee7;
}

a.ml-theme-card:hover {
  border-color: rgb(93 88 111 / 34%);
}

.ml-theme-card--static {
  cursor: default;
}

.ml-theme-card__number {
  color: var(--ml-color-secondary);
  font-size: 0.75rem;
  letter-spacing: 0;
}

.ml-theme-card__motif {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  line-height: 1;
}

.ml-theme-card__motif img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ml-theme-card__title {
  max-width: 100%;
  margin-top: 96px;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.55;
}

.ml-theme-card__description {
  max-width: 16rem;
  color: var(--ml-color-secondary);
  font-size: 0.875rem;
  line-height: 1.8;
}

.ml-theme-card__arrow {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 50%;
  background: rgb(255 255 255 / 70%);
  color: var(--ml-color-accent);
}

.ml-home-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--ml-color-border);
  border-radius: 18px;
  background: var(--ml-color-white);
}

.ml-home-feature__visual {
  min-width: 0;
  min-height: 0;
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  background: var(--ml-color-soft-accent);
}

.ml-home-feature__visual a {
  display: block;
  width: 100%;
  height: 100%;
}

.ml-home-feature__visual img {
  object-fit: contain;
  object-position: center;
}

.ml-home-feature__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--ml-space-lg);
}

.ml-home-feature__body p:not(.ml-home-section-heading__label) {
  max-width: 380px;
  color: var(--ml-color-secondary);
}

.ml-home-feature__body h2 a {
  color: inherit;
  text-decoration-color: transparent;
}

.ml-home-feature__body h2 a:hover {
  text-decoration-color: var(--ml-color-accent);
}

.ml-home-practice .ml-home-section-heading {
  max-width: 760px;
}

.ml-practice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-bottom: var(--ml-space-lg);
}

.ml-practice-card {
  min-width: 0;
  padding-bottom: var(--ml-space-md);
  border-bottom: 1px solid var(--ml-color-border);
}

.ml-practice-card__body {
  min-width: 0;
}

.ml-practice-card__image {
  display: block;
  aspect-ratio: 4 / 3;
  margin-bottom: var(--ml-space-md);
  overflow: hidden;
  border-radius: 16px;
  background: var(--ml-color-soft-accent);
}

.ml-practice-card h3 {
  margin-bottom: var(--ml-space-xs);
  font-size: 1.125rem;
  line-height: 1.6;
}

.ml-practice-card h3 a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--ml-color-text);
  text-decoration-color: var(--ml-color-border);
}

.ml-practice-card p {
  margin: 0;
  color: var(--ml-color-secondary);
  font-size: 0.875rem;
  line-height: 1.8;
}

.ml-home-problems {
  padding: 4.5rem;
  border-radius: 18px;
  background: var(--ml-color-soft-accent);
}

.ml-problem-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--ml-space-sm);
  margin: 0 0 var(--ml-space-lg);
  padding: 0;
  list-style: none;
}

.ml-problem-grid__item {
  min-width: 0;
}

.ml-problem-chip {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: var(--ml-space-sm);
  padding: 0.8rem 1rem;
  border: 1px solid rgb(93 88 111 / 14%);
  border-radius: 12px;
  background: rgb(255 255 255 / 62%);
  color: var(--ml-color-text);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

a.ml-problem-chip:hover {
  border-color: rgb(93 88 111 / 36%);
  background: var(--ml-color-white);
}

.ml-problem-chip--static {
  cursor: default;
}

.ml-article-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 1.5rem;
  align-items: start;
}

.ml-article-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--ml-color-border);
  border-radius: 16px;
  background: var(--ml-color-white);
}

.ml-article-card__image {
  display: block;
  aspect-ratio: 40 / 21;
  overflow: hidden;
  background: var(--ml-color-soft-accent);
}

.ml-article-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ml-article-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: var(--ml-space-md);
}

.ml-article-card--no-image .ml-article-card__body {
  min-height: 0;
}

.ml-article-card__category {
  width: fit-content;
  margin-bottom: var(--ml-space-sm);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  background: #f4e9eb;
  color: var(--ml-color-accent);
  font-size: 0.75rem;
  line-height: 1.6;
}

.ml-article-card h3 {
  margin-bottom: var(--ml-space-md);
  font-size: 1.125rem;
  line-height: 1.65;
}

.ml-article-card h3 a {
  color: inherit;
  text-decoration-color: transparent;
}

.ml-article-card h3 a:hover {
  text-decoration-color: var(--ml-color-accent);
}

.ml-article-card time {
  margin-top: auto;
  color: var(--ml-color-secondary);
  font-size: 0.75rem;
  line-height: 1.6;
}

.ml-home-quiet {
  margin: 0;
  padding: var(--ml-space-lg);
  border-top: 1px solid var(--ml-color-border);
  border-bottom: 1px solid var(--ml-color-border);
  color: var(--ml-color-secondary);
  text-align: center;
}

.ml-home-resources {
  padding: 4.5rem;
  border-top: 1px solid var(--ml-color-border);
  border-bottom: 1px solid var(--ml-color-border);
  background: rgb(255 255 255 / 42%);
}

.ml-home-resources__body {
  max-width: 760px;
}

.ml-home-resources__body > p:not(.ml-home-section-heading__label) {
  max-width: 620px;
  color: var(--ml-color-secondary);
}

.ml-home-author {
  display: grid;
  max-width: 920px;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  align-items: center;
  gap: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--ml-color-border);
}

.ml-home-author__visual {
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  background: var(--ml-color-soft-accent);
}

.ml-home-author__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ml-home-author__body > p:not(.ml-home-section-heading__label) {
  max-width: 560px;
  color: var(--ml-color-secondary);
  font-size: 1.125rem;
  line-height: 1.9;
}

@media (max-width: 1024px) {
  .ml-home-hero {
    isolation: auto;
    width: min(calc(100% - (var(--ml-page-padding) * 2)), var(--ml-site-width));
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "visual"
      "actions";
    grid-template-rows: auto auto auto;
    align-content: normal;
    aspect-ratio: auto;
    overflow: visible;
    background: var(--ml-color-background);
  }

  .ml-home-hero__visual {
    position: relative;
    inset: auto;
    z-index: auto;
    grid-area: visual;
    min-height: 0;
    aspect-ratio: 3 / 2;
    border-radius: 0;
  }

  .ml-home-hero__visual::after {
    content: none;
  }

  .ml-home-hero__visual img {
    object-fit: contain;
    object-position: center;
  }

  .ml-home-hero__copy {
    width: 100%;
    max-width: 680px;
    margin-left: 0;
    padding: 4.5rem 0 2.5rem;
  }

  .ml-home-hero__copy h1 {
    font-size: 2.5rem;
  }

  .ml-home-hero__copy h1,
  .ml-home-hero__sub {
    color: var(--ml-color-accent);
    text-shadow: none;
  }

  .ml-home-hero__description {
    color: var(--ml-color-secondary);
    text-shadow: none;
  }

  .ml-home-hero__actions {
    margin-left: 0;
    padding: var(--ml-space-md) 0 0;
  }

  .ml-home-hero .ml-home-button--primary {
    border-color: var(--ml-color-accent);
    background: var(--ml-color-accent);
    color: var(--ml-color-white);
  }

  .ml-theme-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ml-theme-card {
    min-height: 245px;
  }

  .ml-home-feature {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
  }

  .ml-home-feature__visual {
    min-height: 0;
  }

  .ml-home-feature__body {
    padding: var(--ml-space-lg);
  }

  .ml-practice-grid,
  .ml-article-card-grid,
  .ml-problem-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ml-practice-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc(50% - 1rem);
  }

  .ml-home-problems,
  .ml-home-resources {
    padding: 3.5rem;
  }
}

@media (max-width: 860px) {
  .ml-home-feature {
    grid-template-columns: 1fr;
  }

  .ml-home-feature__visual {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 767px) {
  .ml-home {
    padding-bottom: var(--ml-space-xl);
    --ml-home-section-gap: 4.5rem;
  }

  .ml-home h2 {
    font-size: 1.625rem;
  }

  .ml-home-section {
    margin-top: var(--ml-home-section-gap);
  }

  .ml-home-section-heading {
    margin-bottom: var(--ml-space-md);
  }

  .ml-home-section-heading--row {
    display: block;
  }

  .ml-home-section-heading--row > p {
    max-width: none;
    margin-top: var(--ml-space-sm);
  }

  .ml-home-hero__visual {
    width: 100vw;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    aspect-ratio: 3 / 2;
    border-radius: 0;
  }

  .ml-home-hero__visual img {
    object-fit: contain;
    object-position: center;
  }

  .ml-home-hero__copy {
    max-width: none;
    padding: 3.5rem 0 2.5rem;
  }

  .ml-home-hero__copy h1 {
    margin-bottom: var(--ml-space-md);
    font-size: 2.25rem;
  }

  .ml-home-hero__sub {
    font-size: 1.125rem;
  }

  .ml-home-hero__description {
    font-size: 1rem;
  }

  .ml-home-hero__actions {
    justify-content: center;
    padding: var(--ml-space-md) 0 0;
  }

  .ml-home-concept h2 {
    font-size: 1.75rem;
  }

  .ml-theme-grid,
  .ml-home-feature,
  .ml-practice-grid,
  .ml-problem-grid,
  .ml-article-card-grid,
  .ml-home-author {
    grid-template-columns: 1fr;
  }

  .ml-theme-grid {
    gap: var(--ml-space-sm);
  }

  .ml-theme-card {
    min-height: 185px;
    padding: 1.25rem;
  }

  .ml-theme-card__motif {
    top: 1rem;
    right: 1rem;
    width: 96px;
    height: 96px;
  }

  .ml-theme-card__title {
    max-width: calc(100% - 96px);
    margin-top: 1.5rem;
    font-size: 1.125rem;
  }

  .ml-theme-card__description {
    max-width: calc(100% - 2.5rem);
  }

  .ml-theme-card__arrow {
    right: 1rem;
    bottom: 1rem;
  }

  .ml-home-feature {
    border-radius: 16px;
  }

  .ml-home-feature__visual {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .ml-home-feature__body {
    padding: 2rem var(--ml-space-md);
  }

  .ml-practice-card:last-child:nth-child(odd) {
    grid-column: auto;
    max-width: none;
  }

  .ml-home-problems {
    padding: 2rem var(--ml-space-md);
    border-radius: 16px;
  }

  .ml-problem-grid {
    gap: var(--ml-space-xs);
  }

  .ml-problem-chip {
    min-height: 54px;
  }

  .ml-home-resources {
    padding: 3rem var(--ml-space-md);
  }

  .ml-home-author {
    gap: var(--ml-space-md);
    padding-top: 2rem;
  }

  .ml-home-author__visual {
    width: min(180px, 100%);
    justify-self: center;
  }

  .ml-home-author__body > p:not(.ml-home-section-heading__label) {
    font-size: 1rem;
  }
}

@media (max-width: 390px) {
  .ml-home-hero__copy {
    padding-top: 3rem;
  }

  .ml-home-hero__copy h1 {
    font-size: 1.75rem;
  }

  .ml-home-hero .ml-home-button--primary {
    width: fit-content;
  }

  .ml-home-button {
    width: 100%;
  }

  .ml-home-problems,
  .ml-home-resources {
    padding-right: var(--ml-space-md);
    padding-left: var(--ml-space-md);
  }
}

@media (max-width: 414px) {
  .ml-home-concept h2 {
    white-space: nowrap;
  }

  .ml-home-concept__line {
    display: block;
  }
}

@media (max-width: 320px) {
  .ml-home-hero__copy h1 {
    font-size: 1.5rem;
  }

  .ml-home-hero__description {
    font-size: 0.9375rem;
  }

  .ml-theme-card,
  .ml-article-card__body {
    padding-right: 1rem;
    padding-left: 1rem;
  }
}

/* Reading-first HOME candidate. All overrides stay inside the HOME wrapper. */
.ml-home--reader {
  --ml-home-section-gap: 5rem;
}

.ml-home--reader #ml-new-articles {
  scroll-margin-top: 2rem;
}

.ml-home--reader .ml-home-section-heading {
  margin-bottom: 1.75rem;
}

.ml-home--reader .ml-article-card__link {
  display: flex;
  height: 100%;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.ml-home--reader .ml-article-card:focus-within {
  outline: 2px solid var(--ml-color-accent);
  outline-offset: 3px;
}

.ml-home--reader .ml-article-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.75rem;
}

.ml-home--reader .ml-article-card__title {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.ml-home--reader .ml-article-card__category,
.ml-home--reader .ml-article-card__date {
  margin: 0;
}

.ml-home--reader .ml-article-card__date {
  margin-top: auto;
  padding-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--ml-color-secondary);
}

.ml-home--reader .ml-article-card--no-image {
  min-height: 0;
}

.ml-home--reader .ml-home-theme-list {
  margin-top: 2rem;
}

.ml-home--reader .ml-home-theme-list__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.ml-home--reader .ml-home-theme-list__heading h3 {
  margin: 0;
  font-size: 1.375rem;
  line-height: 1.6;
}

.ml-home--reader .ml-home-theme-list__heading .ml-home-text-link {
  flex-shrink: 0;
  margin: 0;
  font-size: 0.875rem;
}

.ml-home--reader .ml-home-reading-themes .ml-article-card__link {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
  padding: 1rem;
}

.ml-home--reader .ml-home-reading-themes .ml-article-card__image {
  border-radius: 8px;
  overflow: hidden;
}

.ml-home--reader .ml-home-reading-themes .ml-article-card__body {
  padding: 0;
}

.ml-home--reader .ml-home-reading-themes .ml-article-card__category {
  display: none;
}

.ml-home--reader .ml-home-reading-themes .ml-article-card__title {
  font-size: 1rem;
}

.ml-home--reader .ml-home-reading-themes .ml-article-card--no-image .ml-article-card__link {
  grid-template-columns: minmax(0, 1fr);
}

.ml-home--reader .ml-home-theme-list--empty {
  margin-top: 0;
  padding: 1rem 0;
  border-top: 1px solid var(--ml-color-border);
}

.ml-home--reader .ml-home-theme-list:not(.ml-home-theme-list--empty) + .ml-home-theme-list--empty {
  margin-top: 1.5rem;
}

.ml-home--reader .ml-home-theme-list--empty .ml-home-theme-list__heading {
  margin-bottom: 0;
}

.ml-home--reader .ml-home-empty {
  margin: 0;
  color: var(--ml-color-secondary);
  font-size: 0.9375rem;
}

.ml-home--reader .ml-home-reading-themes__empty-note {
  margin-top: 1rem;
}

.ml-home--reader .ml-home-pickup {
  padding: 2.5rem;
  border-radius: 16px;
  background: var(--ml-color-soft-accent);
}

.ml-home--reader .ml-home-pickup__more {
  margin: 1.5rem 0 0;
  text-align: right;
}

.ml-home--reader .ml-home-pickup .ml-article-card-grid:has(> article:only-child) {
  grid-template-columns: minmax(0, 1fr);
}

.ml-home--reader .ml-home-pickup .ml-article-card:only-child .ml-article-card__link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
}

.ml-home--reader .ml-home-pickup .ml-article-card-grid:has(> article:nth-child(2):last-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ml-home--reader .ml-home-reading-themes__more {
  margin: 2rem 0 0;
  text-align: right;
}

.ml-home--reader .ml-home-concept {
  padding: 1rem 0;
}

.ml-home--reader .ml-home-author--story {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.5rem;
  padding-top: 0;
}

.ml-home--reader .ml-home-author--story .ml-home-author__visual {
  width: 100%;
  aspect-ratio: auto;
  margin: 0;
  border-radius: 14px;
}

.ml-home--reader .ml-home-author--story .ml-home-author__visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (min-width: 1025px) {
  .ml-home--reader .ml-home-hero {
    /* The visual is min(65.625vw, 930px) wide, with its native 3:2 ratio.
       Match that height instead of centering it in a taller coloured box. */
    min-height: 0;
    height: min(43.75vw, 620px);
  }

  .ml-home--reader .ml-home-hero__copy {
    padding-top: clamp(80px, 8vw, 120px);
  }

  .ml-home--reader .ml-home-hero__copy h1 {
    margin-bottom: 1.25rem;
    font-size: clamp(32px, 3.2vw, 46px);
  }

  .ml-home--reader .ml-home-hero__sub {
    font-size: clamp(16px, 1.25vw, 18px);
    margin-bottom: 0.75rem;
  }

  .ml-home--reader .ml-home-hero__actions {
    padding-top: 1.25rem;
  }
}

@media (max-width: 767px) {
  .ml-home--reader {
    --ml-home-section-gap: 3.5rem;
  }

  .ml-home--reader .ml-home-section-heading h2 {
    font-size: 1.5rem;
  }

  .ml-home--reader .ml-home-themes__title-tail {
    display: inline-block;
    white-space: nowrap;
  }

  .ml-home--reader .ml-home-theme-list__heading h3 {
    font-size: 1.125rem;
  }

  .ml-home--reader .ml-home-reading-themes .ml-article-card__link {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 0.875rem;
  }

  .ml-home--reader .ml-home-pickup {
    padding: 1.5rem 1rem;
  }

  .ml-home--reader .ml-home-pickup .ml-article-card-grid,
  .ml-home--reader .ml-home-pickup .ml-article-card-grid:has(> article:nth-child(2):last-child),
  .ml-home--reader .ml-home-pickup .ml-article-card:only-child .ml-article-card__link {
    grid-template-columns: minmax(0, 1fr);
  }

  .ml-home--reader .ml-home-concept h2 {
    white-space: normal;
    font-size: 1.5rem;
  }

  .ml-home--reader .ml-home-author--story {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .ml-home--reader .ml-home-author__body > p:not(.ml-home-section-heading__label) {
    line-height: 1.9;
  }
}

@media (max-width: 414px) {
  .ml-home--reader .ml-home-concept h2 > br {
    display: none;
  }
}
