/* The home journal has its own editorial rhythm; other content feeds keep theirs. */
body[data-page="home"] .home-field-content {
  margin-top: 42px;
  padding-top: 36px;
}

body[data-page="home"] .home-field-content .home-section-heading {
  margin-bottom: 26px;
  gap: 24px;
}

body[data-page="home"] .home-field-content .home-section-heading h3 {
  max-width: 690px;
  margin: 0;
  font-size: clamp(28px, 2.7vw, 36px);
  line-height: 1.25;
  letter-spacing: -.035em;
}

body[data-page="home"] .home-field-content .home-section-heading .eyebrow {
  margin-bottom: 10px;
  letter-spacing: .12em;
}

body[data-page="home"] #homeContentStatus {
  max-width: 340px;
  margin: 0;
  color: #667064;
  font-size: 12px;
  line-height: 1.7;
}

body[data-page="home"] #homeContentAction {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--home-green);
  font-size: 13px;
  text-underline-offset: 5px;
}

body[data-page="home"] #homeContentPreview.home-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 0;
  align-items: stretch;
}

body[data-page="home"] #homeContentPreview .home-story-card {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(130px, .85fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 20px;
  overflow: visible;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

body[data-page="home"] #homeContentPreview .home-story-card.is-featured {
  grid-column: 1;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  gap: 0;
}

body[data-page="home"] #homeContentPreview .home-story-card:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
  padding-bottom: 24px;
}

body[data-page="home"] #homeContentPreview .home-story-card:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
  padding-top: 26px;
  border-top: 1px solid var(--home-line);
}

body[data-page="home"] #homeContentPreview .content-card-media {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 6px;
  background: #e8e6db;
  color: inherit;
}

body[data-page="home"] #homeContentPreview .is-featured .content-card-media {
  flex: none;
  max-height: 340px;
}

body[data-page="home"] #homeContentPreview[data-story-count="3"] .home-story-card:not(.is-featured) .content-card-media {
  aspect-ratio: 1;
}

body[data-page="home"] #homeContentPreview .is-featured .content-card-media img {
  object-position: center 65%;
}

body[data-page="home"] #homeContentPreview[data-story-count="0"] {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto;
}

body[data-page="home"] #homeContentPreview > .empty-state { grid-column: 1 / -1; }

body[data-page="home"] #homeContentPreview .content-card-media img,
body[data-page="home"] #homeContentPreview .content-card-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

body[data-page="home"] #homeContentPreview .content-card-media a,
body[data-page="home"] #homeContentPreview .content-card-media .content-card-story {
  min-height: 100%;
}

body[data-page="home"] #homeContentPreview a.content-card-media:hover img,
body[data-page="home"] #homeContentPreview .content-card-media-link:hover img {
  transform: scale(1.025);
}

body[data-page="home"] #homeContentPreview .content-card-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
}

body[data-page="home"] #homeContentPreview .is-featured .content-card-body {
  padding-top: 19px;
}

body[data-page="home"] .home-story-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--home-red);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.65;
  letter-spacing: .035em;
}

body[data-page="home"] .home-story-launch-label {
  display: inline-block;
  padding-left: 9px;
  border-left: 1px solid #d5d8cc;
  color: #687166;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .01em;
}

body[data-page="home"] #homeContentPreview .content-card-body h3,
body[data-page="home"] #homeContentPreview .content-card-body h3 {
  margin: 9px 0 10px;
  color: var(--home-ink);
  font-size: clamp(18px, 1.55vw, 21px);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -.025em;
  text-wrap: pretty;
}

body[data-page="home"] #homeContentPreview .is-featured .content-card-body h3,
body[data-page="home"] #homeContentPreview .is-featured .content-card-body h3 {
  margin-top: 8px;
  font-size: clamp(24px, 2.2vw, 29px);
  line-height: 1.35;
}

body[data-page="home"] #homeContentPreview .content-card-body h3 a,
body[data-page="home"] #homeContentPreview .content-card-body h3 a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

body[data-page="home"] #homeContentPreview .content-card-body h3 a:hover,
body[data-page="home"] #homeContentPreview .content-card-body h3 a:hover {
  color: var(--home-green);
  text-decoration: underline;
}

body[data-page="home"] #homeContentPreview .content-card-body > p {
  display: block;
  overflow: visible;
  margin: 0;
  color: #5b655d;
  font-size: 13px;
  line-height: 1.8;
  -webkit-line-clamp: unset;
}

body[data-page="home"] #homeContentPreview .is-featured .content-card-body > p {
  max-width: 600px;
  font-size: 14px;
}

body[data-page="home"] #homeContentPreview .home-story-read,
body[data-page="home"] #homeContentPreview .content-card-detail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: 9px;
  color: var(--home-green);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  text-underline-offset: 5px;
}

body[data-page="home"] #homeContentPreview .home-story-read:hover,
body[data-page="home"] #homeContentPreview .content-card-detail:hover {
  text-decoration: underline;
}

body[data-page="home"] #homeContentPreview .home-story-read i {
  font-size: 17px;
}

body[data-page="home"] #homeContentPreview[data-story-count="1"] {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto;
}

body[data-page="home"] #homeContentPreview[data-story-count="1"] .home-story-card.is-featured {
  grid-column: auto;
  grid-row: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: 36px;
}

body[data-page="home"] #homeContentPreview[data-story-count="1"] .is-featured .content-card-body {
  padding: 0;
}

body[data-page="home"] #homeContentPreview[data-story-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto;
}

body[data-page="home"] #homeContentPreview[data-story-count="2"] .home-story-card {
  grid-column: auto;
  grid-row: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
}

body[data-page="home"] #homeContentPreview[data-story-count="2"] .content-card-body {
  padding-top: 19px;
}

body[data-page="home"] #homeContentPreview[data-story-count="2"] .content-card-media {
  max-height: 340px;
}

body[data-page="home"] #homeContentPreview[data-story-count="2"] .content-card-body h3,
body[data-page="home"] #homeContentPreview[data-story-count="2"] .content-card-body h3 {
  font-size: clamp(22px, 2vw, 27px);
}

body[data-page="home"] .home-story-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--home-line);
  color: #687166;
  font-size: 13px;
  line-height: 1.7;
}

body[data-page="home"] .home-story-footer p { margin: 0; }
body[data-page="home"] .home-story-footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--home-green);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  text-underline-offset: 5px;
}

body[data-page="home"] .home-story-footer a:hover { text-decoration: underline; }
body[data-page="home"] .home-story-footer i { font-size: 18px; }

body[data-page="home"].home-story-dialog-open { overflow: hidden; }
body[data-page="home"] .home-story-dialog {
  width: min(820px, calc(100% - 40px));
  max-width: 820px;
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #d7d5c9;
  border-radius: 12px;
  background: var(--home-surface);
  color: var(--home-ink);
  box-shadow: 0 24px 100px rgb(0 20 12 / 28%);
}

body[data-page="home"] .home-story-dialog::backdrop {
  background: rgb(11 30 21 / 65%);
  backdrop-filter: blur(4px);
}

body[data-page="home"] .home-story-dialog-toolbar {
  position: sticky;
  z-index: 3;
  top: 0;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 12px;
  border-bottom: 1px solid var(--home-soft-line);
  background: var(--home-surface);
}

body[data-page="home"] .home-story-dialog-toolbar > span {
  padding-left: 8px;
  color: #627063;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .035em;
}

body[data-page="home"] .home-story-dialog-close {
  position: static;
  width: 44px;
  height: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #d5d9ce;
  border-radius: 50%;
  background: transparent;
  color: var(--home-green);
  font-size: 24px;
  cursor: pointer;
}

body[data-page="home"] .home-story-dialog-close:hover {
  background: #edf1e9;
  border-color: var(--home-green);
}

body[data-page="home"] .home-story-dialog-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

body[data-page="home"] .home-story-dialog-copy {
  padding: 32px clamp(24px, 6vw, 64px) 42px;
}

body[data-page="home"] .home-story-dialog-copy h2 {
  margin: 12px 0 20px;
  color: var(--home-ink);
  font-size: clamp(26px, 3.5vw, 36px);
  line-height: 1.35;
  letter-spacing: -.03em;
  text-wrap: pretty;
  scroll-margin-top: 80px;
}

body[data-page="home"] .home-story-dialog-intro {
  margin: 0 0 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--home-line);
  color: #627063;
  font-size: 16px;
  line-height: 1.9;
}

body[data-page="home"] .home-story-prose p {
  margin: 0 0 21px;
  color: #36473b;
  font-size: 16px;
  line-height: 2;
}

body[data-page="home"] .home-story-dialog .button {
  min-height: 44px;
  font-size: 13px;
}

body[data-page="home"] #homeContentPreview a:focus-visible,
body[data-page="home"] .home-story-footer a:focus-visible,
body[data-page="home"] .home-story-dialog a:focus-visible,
body[data-page="home"] .home-story-dialog button:focus-visible {
  outline: 3px solid var(--home-yellow);
  outline-offset: 4px;
}

body[data-page="home"] #homeContentPreview a.content-card-media:focus-visible {
  outline-offset: 3px;
}

@media (max-width: 880px) {
  body[data-page="home"] #homeContentPreview.home-story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
    gap: 28px 24px;
  }

  body[data-page="home"] #homeContentPreview .home-story-card.is-featured {
    grid-column: 1 / -1;
    grid-row: auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center;
    gap: 24px;
  }

  body[data-page="home"] #homeContentPreview .home-story-card:nth-child(n+2) {
    grid-column: auto;
    grid-row: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 24px 0 0;
    border-top: 1px solid var(--home-line);
  }

  body[data-page="home"] #homeContentPreview .content-card-body {
    padding-top: 16px;
  }

  body[data-page="home"] #homeContentPreview .is-featured .content-card-body {
    padding-top: 0;
  }

  body[data-page="home"] #homeContentPreview[data-story-count="1"] {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-page="home"] #homeContentPreview[data-story-count="2"] .home-story-card.is-featured {
    grid-column: auto;
    display: flex;
    gap: 0;
  }

  body[data-page="home"] #homeContentPreview[data-story-count="2"] .home-story-card:nth-child(2) {
    padding-top: 0;
    border-top: 0;
  }

  body[data-page="home"] #homeContentPreview[data-story-count="2"] .is-featured .content-card-body {
    padding-top: 16px;
  }
}

@media (max-width: 600px) {
  body[data-page="home"] .home-field-content { margin-top: 30px; padding-top: 28px; }
  body[data-page="home"] .home-field-content .home-section-heading { gap: 12px; margin-bottom: 22px; }
  body[data-page="home"] .home-field-content .home-section-heading h3 { font-size: 28px; line-height: 1.3; }
  body[data-page="home"] .home-field-content .home-heading-action { gap: 0; }
  body[data-page="home"] #homeContentStatus { max-width: none; font-size: 12px; }

  body[data-page="home"] #homeContentPreview.home-story-grid,
  body[data-page="home"] #homeContentPreview[data-story-count="2"] {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  body[data-page="home"] #homeContentPreview .home-story-card.is-featured,
  body[data-page="home"] #homeContentPreview[data-story-count="1"] .home-story-card.is-featured {
    grid-column: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  body[data-page="home"] #homeContentPreview .is-featured .content-card-media { max-height: none; }
  body[data-page="home"] #homeContentPreview .is-featured .content-card-body,
  body[data-page="home"] #homeContentPreview[data-story-count="1"] .is-featured .content-card-body { padding-top: 16px; }

  body[data-page="home"] #homeContentPreview .home-story-card:nth-child(n+2),
  body[data-page="home"] #homeContentPreview[data-story-count="2"] .home-story-card:nth-child(2) {
    display: grid;
    grid-template-columns: minmax(92px, .7fr) minmax(0, 1.45fr);
    align-items: start;
    gap: 15px;
    padding: 22px 0 0;
    border-top: 1px solid var(--home-line);
  }

  body[data-page="home"] #homeContentPreview .home-story-card:nth-child(n+2) .content-card-body { padding-top: 0; }
  body[data-page="home"] #homeContentPreview .home-story-card:nth-child(n+2) .content-card-body h3,
  body[data-page="home"] #homeContentPreview .home-story-card:nth-child(n+2) .content-card-body h3 { font-size: 18px; line-height: 1.45; }
  body[data-page="home"] #homeContentPreview .content-card-body > p { font-size: 13px; line-height: 1.8; }
  body[data-page="home"] #homeContentPreview .home-story-read { margin-top: 5px; }
  body[data-page="home"] .home-story-meta { gap: 7px; font-size: 10px; }
  body[data-page="home"] .home-story-launch-label { padding-left: 7px; }
  body[data-page="home"] .home-story-footer { margin-top: 24px; gap: 2px 18px; padding-top: 14px; }
  body[data-page="home"] .home-story-footer p { flex-basis: 100%; }

  body[data-page="home"] .home-story-dialog {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 24px);
    border-radius: 9px;
  }

  body[data-page="home"] .home-story-dialog-toolbar { min-height: 54px; padding: 4px 8px; }
  body[data-page="home"] .home-story-dialog-image { max-height: none; }
  body[data-page="home"] .home-story-dialog-copy { padding: 25px 22px 30px; }
  body[data-page="home"] .home-story-dialog-copy h2 { margin: 10px 0 16px; font-size: 26px; }
  body[data-page="home"] .home-story-dialog-intro { font-size: 15px; }
  body[data-page="home"] .home-story-prose p { font-size: 15px; line-height: 1.95; }
  body[data-page="home"] .home-story-dialog .home-story-meta { font-size: 11px; }
  body[data-page="home"] .home-story-dialog .button { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] #homeContentPreview .content-card-media img,
  body[data-page="home"] #homeContentPreview .content-card-media video { transition: none; }
  body[data-page="home"] #homeContentPreview a.content-card-media:hover img,
  body[data-page="home"] #homeContentPreview .content-card-media-link:hover img { transform: none; }
}
