/* Park page: the park at a glance and its landscape as one block. A sticky
   dossier column on the left, the photo mosaic and the prose on the right,
   on white and kept to about one screen: tighter band padding, a wide
   mosaic, the prose in two columns. Tokens from park-prose.css (--pk-*). */

.pk-overview.pk-section { padding: clamp(36px, 4vw, 52px) 0; }
.pk-ov__header { max-width: 68ch; margin-bottom: 24px; }

.pk-ov {
    display: grid;
    grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
    grid-template-areas:
        "facts photos"
        "facts prose";
    gap: 24px clamp(24px, 3.5vw, 48px);
    align-items: start;
}
.pk-overview--no-facts .pk-ov {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "photos"
        "prose";
}
.pk-overview--no-photos .pk-ov {
    grid-template-areas: "facts prose";
}
.pk-overview--no-facts.pk-overview--no-photos .pk-ov {
    grid-template-areas: "prose";
}

/* ── The dossier ───────────────────────────────────────────────────── */
.pk-ov__facts {
    grid-area: facts;
    position: sticky;
    /* The fixed header plus a breath. */
    top: 104px;
    min-width: 0;
}
.pk-ov__card {
    background: var(--pk-white);
    border: 1px solid var(--pk-line);
    border-radius: 8px;
    overflow: hidden;
}
.pk-ov__card-title {
    margin: 0;
    padding: 14px 20px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--pk-ink);
    border-bottom: 1px solid var(--pk-line);
    display: flex;
    align-items: center;
    gap: 12px;
}
.pk-ov__card-title::before {
    content: '';
    display: block;
    width: 22px;
    height: 3px;
    background: var(--pk-orange);
    flex-shrink: 0;
}
.pk-ov__rows { margin: 0; }
.pk-ov__row {
    padding: 10px 20px;
    border-top: 1px solid var(--pk-line);
}
.pk-ov__row:first-child { border-top: 0; }
.pk-ov__label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--pk-muted);
    margin: 0 0 2px;
}
.pk-ov__value {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
    color: var(--pk-ink);
    margin: 0;
    overflow-wrap: anywhere;
}
/* The headline figures read a size up. */
.pk-ov__row--area .pk-ov__value,
.pk-ov__row--species .pk-ov__value { font-size: 17px; }

/* ── The photographs ───────────────────────────────────────────────── */
.pk-ov__photos {
    grid-area: photos;
    margin: 0;
    min-width: 0;
}
.pk-ov__mosaic {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    aspect-ratio: 21 / 9;
}
/* Four: the first leads two by two, the other three share the right-hand
   column, one on top and two beneath it; a wide strip, not a tall block. */
.pk-ov__mosaic > .pk-ov__tile:first-child {
    grid-column: span 2;
    grid-row: span 2;
}
.pk-ov__mosaic--n4 {
    grid-template-columns: 2fr 1fr 1fr;
}
.pk-ov__mosaic--n4 > .pk-ov__tile:first-child {
    grid-column: 1;
    grid-row: 1 / 3;
}
.pk-ov__mosaic--n4 > .pk-ov__tile:nth-child(2) { grid-column: 2 / 4; }
/* Three: one leading, two stacked beside it. */
.pk-ov__mosaic--n3 {
    aspect-ratio: 21 / 9;
}
/* Two: side by side, neither dominant. */
.pk-ov__mosaic--n2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: minmax(0, 1fr);
    aspect-ratio: 2 / 1;
}
.pk-ov__mosaic--n2 > .pk-ov__tile:first-child,
.pk-ov__mosaic--n1 > .pk-ov__tile:first-child {
    grid-column: span 1;
    grid-row: span 1;
}
/* One: a single wide photograph. */
.pk-ov__mosaic--n1 {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    aspect-ratio: 21 / 9;
}
.pk-ov__tile {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #c8bfb5;
    min-height: 0;
}
.pk-ov__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}
.pk-ov__tile:hover .pk-ov__img { transform: scale(1.04); }
.pk-ov__caption {
    margin: 8px 4px 0;
    font-size: 12px;
    line-height: 1.6;
    color: var(--pk-text-50);
}

/* ── The prose ─────────────────────────────────────────────────────── */
/* Two columns, a size down from the page prose: a single long paragraph
   runs half as tall this way and the block stays near one screen. */
.pk-ov__prose {
    grid-area: prose;
    min-width: 0;
    max-width: none;
    font-size: 15px;
    line-height: 1.7;
    column-count: 2;
    column-gap: 32px;
}
.pk-ov__prose p { margin: 0 0 14px; }
.pk-ov__prose p:last-child { margin-bottom: 0; }
.pk-overview--no-facts .pk-ov__prose { column-gap: 48px; }

/* ── Narrow ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    /* One column: the photographs first, the dossier, then the prose. */
    .pk-ov,
    .pk-overview--no-facts .pk-ov,
    .pk-overview--no-photos .pk-ov {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "photos"
            "facts"
            "prose";
        gap: 24px;
    }
    .pk-ov__facts { position: static; }
    .pk-ov__mosaic,
    .pk-ov__mosaic--n3,
    .pk-ov__mosaic--n1 { aspect-ratio: 16 / 9; }
    .pk-ov__prose { column-count: 1; }
    /* The rows pair up so the card does not run a screen long. */
    .pk-ov__rows {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .pk-ov__row { border-top: 1px solid var(--pk-line); }
    .pk-ov__row:nth-child(-n+2) { border-top: 0; }
    .pk-ov__row:nth-child(odd) { border-right: 1px solid var(--pk-line); }
    .pk-ov__row:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }
}
@media (max-width: 600px) {
    .pk-ov__mosaic { gap: 6px; }
    .pk-ov__tile { border-radius: 6px; }
    .pk-ov__row { padding: 12px 16px; }
    .pk-ov__card-title { padding: 14px 16px; }
    .pk-ov__value,
    .pk-ov__row--area .pk-ov__value,
    .pk-ov__row--species .pk-ov__value { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
    .pk-ov__img { transition: none; }
}
