/* Shared DE/EN layout: keep illustrated cards aligned at every screen size. */
.layout > article { min-width: 0; }
/* Preserve the existing text measure and typography; wrap only when needed. */
.copy {
  width: 100%;
  max-width: 780px;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: normal;
}
.explore-head > div { min-width: 0; }
.explore-head h1,
.lead,
figcaption { overflow-wrap: anywhere; }
.root-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.root-card,
.path-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  min-width: 0;
}
.root-card img,
.path-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  max-height: 280px;
  object-fit: contain;
  object-position: left top;
  margin: 0 0 14px;
  flex: none;
}
.root-card h2,
.path-card h2 {
  min-height: 2.5em;
  overflow-wrap: anywhere;
}
.root-card h2 { display: block; }
.root-card p,
.path-card p { overflow-wrap: anywhere; }
figure img {
  display: block;
  max-width: 100%;
  object-position: center;
}
/* Share image, heading and description tracks across each card row.
   Contain preserves the complete illustration; left/top matches the text edge. */
@supports (grid-template-rows: subgrid) {
  .root-card,
  .path-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: subgrid;
    grid-row: span 3;
    row-gap: 0;
    align-items: start;
  }
}
@media (max-width: 1100px) {
  .root-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .layout { display: flex; flex-direction: column; gap: 25px; }
  aside { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 15px; }
  aside > .eyebrow { display: none; }
  #history { display: flex; overflow: auto; margin-bottom: 0; gap: 18px; }
  #history button { min-width: 110px; }
}
@media (max-width: 600px) {
  .root-grid,
  .path-cards { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .root-card h2 { font-size: 18px; }
  .root-card p { font-size: 13px; }
  .root-card h2,
  .path-card h2 { min-height: 0; }
}
