* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --fp-blue: #1a8ac9;
    --fp-text: #1c1c1c;
    --fp-muted: #6b6b6b;
    --fp-track: #e6e6e6;
}

body {
    background: #f1f1f1;
    color: var(--fp-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    padding: 16px;
}

.footprint {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.fp-header { padding: 28px clamp(16px, 7%, 64px) 24px; }

.fp-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px 24px;
    margin-bottom: 20px;
}

.fp-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 260px;
    margin-top: 6px;
}

.fp-arrow {
    color: var(--fp-blue);
    font-size: 0.9rem;
    text-decoration: none;
}

.fp-arrow-off { visibility: hidden; }

.fp-progress,
.fp-progress-empty {
    position: relative;
    flex: 1 1 auto;
    height: 3px;
    background: var(--fp-track);
}

.fp-progress-fill {
    height: 100%;
    background: var(--fp-blue);
}

.fp-day {
    position: absolute;
    top: 8px;
    transform: translateX(-50%);
    padding: 2px 8px;
    border-radius: 3px;
    background: var(--fp-blue);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

.fp-day::before {
    content: "";
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top: 0;
    border-bottom-color: var(--fp-blue);
}

.fp-map {
    flex: 0 0 auto;
    width: 150px;
    text-align: center;
}

.fp-map-frame {
    height: 110px;
    overflow: hidden;
    border-radius: 6px;
    background: var(--fp-track);
}

/* Taller and shifted up so the embed's attribution bar falls outside the frame */
.fp-map iframe {
    display: block;
    width: 100%;
    height: 150px;
    margin-top: -20px;
    border: 0;
    pointer-events: none;
}

.fp-coords {
    display: block;
    margin-top: 4px;
    color: var(--fp-blue);
    font-size: 0.6rem;
    text-decoration: none;
}

.fp-title {
    font-size: clamp(1.4rem, 4vw, 1.7rem);
    font-weight: 800;
    line-height: 1.2;
}

.fp-subtitle {
    margin: 4px 0 16px;
    font-size: 0.75rem;
    font-weight: 700;
}

.fp-flag { margin-right: 6px; font-size: 0.95rem; }

.fp-text {
    color: #333;
    font-size: 0.9rem;
    line-height: 1.55;
}

.fp-text p + p { margin-top: 0.8em; }
.fp-text a { color: var(--fp-blue); }

.fp-references {
    list-style: none;
    margin-top: 14px;
}

.fp-references li {
    margin-bottom: 10px;
    overflow-wrap: anywhere;
    font-size: 0.85rem;
    line-height: 1.4;
}

.fp-references a {
    color: var(--fp-muted);
    text-decoration: none;
}

.fp-references a:hover { text-decoration: underline; }

.fp-lock {
    margin-right: 6px;
    font-size: 0.7rem;
    filter: grayscale(1);
}

.fp-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 32px;
    margin-top: 18px;
}

.fp-facts dt {
    color: var(--fp-blue);
    font-size: 0.65rem;
    font-weight: 700;
}

.fp-facts dd {
    margin-top: 2px;
    font-size: 0.95rem;
}

/* The first photo takes two thirds of the width, the others share the rest */
.fp-media {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding-top: 4px;
}

.fp-media a { display: block; overflow: hidden; }

.fp-media img,
.fp-media video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fp-media img { aspect-ratio: 4 / 3; }

.fp-media video {
    grid-column: 1 / -1;
    height: auto;
    background: #000;
}

.fp-media-1 a { grid-column: 1 / -1; }
.fp-media-2 a:first-child,
.fp-media-3 a:first-child { grid-column: span 2; }

.fp-back {
    display: block;
    margin: 24px 0;
    color: var(--fp-blue);
    text-align: center;
    text-decoration: none;
}

@media (max-width: 600px) {
    body { padding: 0; }
    .footprint { box-shadow: none; }
    .fp-map { width: 120px; }
    .fp-media { grid-template-columns: 1fr; }
    .fp-media a,
    .fp-media a:first-child { grid-column: 1 / -1 !important; }
}

.fp-files { list-style: none; margin-top: 14px; font-size: 0.85rem; }
.fp-files li { margin-bottom: 6px; overflow-wrap: anywhere; }
.fp-files a { color: var(--fp-blue); text-decoration: none; }

.fp-trip { margin-top: -10px; }
.fp-trip a { color: inherit; text-decoration: none; }
.fp-trip a:hover { text-decoration: underline; }
