/* Homepage layout only; shared header, navigation and article styles stay intact. */
.home .cotton-map-hero { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.home .cotton-map-copy { padding-bottom: 40px; }
.home .cotton-map-copy h1 { max-width: 100%; font-size: min(var(--text-display), 4.5rem); overflow-wrap: normal; text-wrap: balance; }
.home .hero-deck { max-width: 40rem; text-wrap: balance; }
.home .cotton-map { padding-bottom: 24px; }
.home .cotton-map li { padding-right: 20px; }
.home .cotton-map li:not(:last-child)::after { position: static; display: block; margin-top: 8px; }
.home .promise-strip p { text-wrap: balance; }
.home .library-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; border: 0; }
.home .library-grid > a:nth-child(n) { grid-column: span 2; display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 16px; padding: 24px; border: 1px solid var(--color-rule); min-width: 0; }
.home .library-grid > a:nth-child(n+4) { grid-column: span 3; }
.home .library-grid h3 { font-size: 1.5rem; text-wrap: balance; }
.home .library-grid p { text-wrap: pretty; }
.home .decoder-section { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.home .decoder-copy h2, .home .quality-intro h2, .home .evidence-band h2, .home .section-heading h2, .home .latest-grid h3 { text-wrap: balance; overflow-wrap: normal; }
.home .decoder-copy > p, .home .quality-intro p, .home .evidence-band p, .home .latest-grid p { text-wrap: pretty; }
.home .editor-note p { text-wrap: balance; }
.home .quality-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.home .quality-intro, .home .quality-stages { min-width: 0; }
.home .quality-intro > p:not(.eyebrow) { max-width: none; text-wrap: balance; }
.home .quality-stage-list { margin: 0 0 24px; padding: 0; list-style: none; border-top: 1px solid currentColor; }
.home .quality-stage-list li { display: grid; grid-template-columns: 3rem minmax(5rem, 1fr) minmax(0, 1.5fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--color-rule-2); }
.home .quality-stage-list b { font-family: var(--font-outlier); font-size: var(--text-xs); }
.home .evidence-band > .wrap { grid-template-columns: 76px minmax(0, 1fr) minmax(0, .85fr); }
.home .evidence-band h2 { margin-top: 0; font-size: var(--text-3xl); }
.home .evidence-band .button { margin-top: 8px; }
.home .latest-grid { gap: 24px; align-items: stretch; }
.home .latest-grid article { display: flex; min-width: 0; }
.home .latest-grid article > a { display: flex; flex-direction: column; width: 100%; }
.home .latest-grid h3 { font-size: var(--text-md); }
.home .latest-grid p { text-wrap: balance; }
.home .latest-grid img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.home .latest-grid img[src$=".svg"] { object-fit: contain; }
.home .latest-grid .arrow { margin-top: auto; padding-top: 16px; }
.home .site-footer { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.home .site-footer > div > p { max-width: 45rem; text-wrap: pretty; }
@media (max-width: 1023px) {
  .home .cotton-map-hero { grid-template-columns: minmax(0, 1fr); }
  .home .library-grid { grid-template-columns: 1fr; }
  .home .library-grid > a:nth-child(n) { grid-column: auto; }
}
@media (max-width: 767px) {
  .home .site-header .header-main { height: 68px; min-height: 68px; }
  .home .cotton-map-hero, .home .decoder-section, .home .quality-layout { grid-template-columns: minmax(0, 1fr); }
  .home .cotton-map-copy { padding-bottom: 32px; }
  .home .cotton-map-copy h1 { max-width: none; font-size: var(--text-2xl); }
  .home .cotton-map { grid-template-columns: 1fr; }
  .home .cotton-map li { display: grid; grid-template-columns: minmax(7rem, 1fr) minmax(0, 1.5fr) auto; gap: 8px; align-items: center; padding-right: 0; }
  .home .cotton-map li:not(:last-child)::after { margin: 0; }
  .home .cotton-map span { margin: 0; }
  .home .promise-strip .wrap { grid-template-columns: 1fr; }
  .home .evidence-band > .wrap { grid-template-columns: minmax(0, 1fr); }
  .home .evidence-band h2 { font-size: var(--text-xl); }
  .home .evidence-band > .wrap > div:last-child { grid-column: auto; }
  .home .quality-stage-list li { grid-template-columns: 2.5rem minmax(4rem, 1fr) minmax(0, 1.5fr); gap: 8px; }
  .home .site-footer { grid-template-columns: minmax(0, 1fr); }
}
