/* A rail in a catalog sample must expose every card at the current width. */
body[data-template-width="wide"] .site-section[data-composition="rail"] :is(.content-columns,.store-products) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  overflow: visible;
  scroll-snap-type: none;
  padding-bottom: 0;
}
body[data-template-width="wide"] .site-section[data-composition="rail"] :is(.content-columns,.store-products) > * {
  min-inline-size: 0;
  overflow-wrap: anywhere;
}
body[data-template-width="wide"] [data-anchor]:is(#home-field-guide,#home-reading-room) .content-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: clamp(32px, 6vw, 108px);
  margin-block-start: clamp(32px, 5vw, 80px);
}
body[data-template-width="wide"] :is(#home-field-guide,#home-reading-room) .content-card-link {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  grid-template-rows: 1fr auto auto 1fr;
  column-gap: clamp(24px, 6vw, 100px);
  align-items: start;
  text-align: start;
}
body[data-template-width="wide"] :is(#home-field-guide,#home-reading-room) article:nth-child(even) .content-card-link {
  direction: rtl;
}
body[data-template-width="wide"] :is(#home-field-guide,#home-reading-room) .content-card-link > * {direction: ltr}
body[data-template-width="wide"] :is(#home-field-guide,#home-reading-room) .content-card-link > :is(.chapter-photo419,img) {
  grid-column: 1;
  grid-row: 1 / 5;
  display: block;
  width: 100%;
  height: clamp(370px, 62svh, 840px);
  background: color-mix(in srgb, var(--brand) 7%, #fff);
  object-fit: cover;
}
body[data-template-width="wide"] :is(#home-field-guide,#home-reading-room) .chapter-photo419 img {
  width: 100%; max-width: none; height: 100%; object-fit: cover; margin: 0;
}
body[data-template-width="wide"] :is(#home-field-guide,#home-reading-room) .content-card-link h3 {
  grid-column: 2; grid-row: 2; margin: 0;
  font-size: clamp(26px, 3.1vw, 62px); line-height: 1.14; letter-spacing: -.045em;
}
body[data-template-width="wide"] :is(#home-field-guide,#home-reading-room) .content-card-link p {
  grid-column: 2; grid-row: 3; max-width: 49ch; line-height: 1.8;
}
body[data-template-width="wide"] :is(#home-field-guide,#home-reading-room) .content-card-more {grid-column: 2; grid-row: 4}
@media(max-width: 700px) {
  body[data-template-width="wide"] :is(#home-field-guide,#home-reading-room) .content-card-link {
    display: flex; flex-direction: column; align-items: stretch; gap: 10px;
  }
  body[data-template-width="wide"] :is(#home-field-guide,#home-reading-room) .content-card-link > :is(.chapter-photo419,img) {height: clamp(240px, 44svh, 480px)}
  body[data-template-width="wide"] :is(#home-field-guide,#home-reading-room) .content-card-link p {margin: 0}
}

/* Photo panels absorb the available row height while titles retain their full height. */
body[data-template-width="wide"] :is(#home-field-guide,#home-reading-room) .content-card-link {
  min-height: var(--chapter-row419, auto);
}
body[data-template-width="wide"] :is(#home-field-guide,#home-reading-room) .content-card-link > :is(.chapter-photo419,img) {
  height: var(--chapter-row419, clamp(370px, 62svh, 840px));
}
@media(max-width: 700px) {
  body[data-template-width="wide"] :is(#home-field-guide,#home-reading-room) .content-card-link {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(130px, 1fr) auto auto auto;
    height: var(--chapter-row419, auto);
  }
  body[data-template-width="wide"] :is(#home-field-guide,#home-reading-room) .content-card-link > :is(.chapter-photo419,img) {
    grid-area: 1/1; height: 100%; min-height: 0;
  }
  body[data-template-width="wide"] :is(#home-field-guide,#home-reading-room) .content-card-link > :is(h3,p,.content-card-more) {
    grid-column: 1;
  }
}
