/*
  Public content page (/content/{guid}): a property's content handed to a partner who enters it into an OTA by hand.

  One rule for type: the property's words (names, descriptions, values) are Newsreader; the page's own words
  (labels, buttons, counts, notes) are IBM Plex Sans. One accent, --key: everything to do with copying.
  Font URLs are relative so this file also works inlined in the zip download's index.html (fonts/ sits next to it).
*/

@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/newsreader-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/newsreader-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }

:root {
    --paper: #FFFFFF;
    --ink: #1E2524;
    --graphite: #5B6563;
    --rule: #DDE3E1;
    --mist: #F2F5F4;
    --key: #1B6A56;
    --key-ink: #FFFFFF;
    --key-wash: #E2EFEA;
    --night: #0F1514;
    --night-ink: #E7ECEA;
    --night-dim: #9BA7A4;

    --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --gutter: clamp(16px, 4vw, 48px);
    --measure: 68ch;
    --rail: 232px;

    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --paper: #141A19;
        --ink: #E7ECEA;
        --graphite: #9BA7A4;
        --rule: #2A3432;
        --mist: #1B2322;
        --key: #5CC3A4;
        --key-ink: #0F1514;
        --key-wash: #173029;
        --night: #0A0E0D;

        color-scheme: dark;
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

[hidden] {
    display: none !important;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: var(--key);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

a:hover {
    text-decoration-thickness: 2px;
}

button {
    font: inherit;
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--key);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip {
    position: absolute;
    left: var(--gutter);
    top: -48px;
    z-index: 30;
    padding: 8px 12px;
    background: var(--key);
    color: var(--key-ink);
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
}

.skip:focus {
    top: 12px;
}

.icon {
    width: 16px;
    height: 16px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ── Page frame ───────────────────────────────────────────────────────── */

.page {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.notice {
    margin: 16px 0 0;
    padding: 10px 14px;
    border-radius: 6px;
    background: var(--key-wash);
    color: var(--ink);
}

/* ── Masthead: the property's name, where it is, and the listing mosaic ── */

.masthead {
    padding-top: clamp(28px, 6vw, 64px);
}

.masthead__row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px 40px;
}

.masthead__id {
    min-width: 0;
    flex: 1 1 520px;
}

.masthead__name {
    margin: 0;
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.02;
    letter-spacing: -0.015em;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.masthead__where {
    margin: 12px 0 0;
    font-family: var(--serif);
    font-size: 1.25rem;
    line-height: 1.4;
}

.masthead__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.masthead__tools {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.langs {
    display: inline-flex;
    padding: 3px;
    border: 1px solid var(--rule);
    border-radius: 8px;
}

.langs__link {
    padding: 5px 12px;
    border-radius: 5px;
    color: var(--graphite);
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
}

.langs__link:hover {
    color: var(--ink);
}

.langs__link[aria-current] {
    background: var(--ink);
    color: var(--paper);
}

.download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 6px;
    background: var(--key);
    color: var(--key-ink);
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
}

.download:hover {
    filter: brightness(1.08);
}

.download__size {
    opacity: 0.8;
    font-weight: 400;
}

.mosaic {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin: clamp(24px, 4vw, 40px) 0 0;
    padding: 0;
    list-style: none;
    aspect-ratio: 20 / 8;
}

.mosaic--1 {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    aspect-ratio: 20 / 7;
}

.mosaic--2 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    aspect-ratio: 20 / 7;
}

.mosaic--3 {
    grid-template-columns: 2fr 1fr;
}

.mosaic--4 .mosaic__item:nth-child(2) {
    grid-row: span 2;
}

.mosaic__item {
    position: relative;
    min-height: 0;
}

.mosaic__item:first-child {
    grid-row: span 2;
}

.mosaic--1 .mosaic__item:first-child,
.mosaic--2 .mosaic__item:first-child {
    grid-row: auto;
}

.mosaic__more {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 6px 10px;
    border-radius: 6px;
    background: var(--paper);
    color: var(--ink);
    font-weight: 500;
    font-size: 13px;
    pointer-events: none;
    box-shadow: 0 1px 2px rgba(15, 21, 20, 0.2);
}

/* ── Photo tiles (mosaic and every gallery) ───────────────────────────── */

.tile {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 2px;
    overflow: hidden;
    background: var(--mist);
    cursor: zoom-in;
}

.tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tile__no {
    position: absolute;
    left: 8px;
    top: 8px;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 2px;
    background: var(--paper);
    color: var(--ink);
    font: 600 12px/24px var(--sans);
    font-variant-numeric: tabular-nums;
    text-align: center;
}

/* The main photo, the one search results show. */
.tile__lead {
    position: absolute;
    left: 8px;
    bottom: 8px;
    height: 24px;
    padding: 0 8px;
    border-radius: 2px;
    background: var(--ink);
    color: var(--paper);
    font: 600 12px/24px var(--sans);
}

.tile__done {
    position: absolute;
    right: 8px;
    top: 8px;
    display: none;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--key);
    color: var(--key-ink);
}

.tile.is-done .tile__done {
    display: inline-flex;
}

.photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 8px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.photos__item {
    aspect-ratio: 4 / 3;
}

/* ── Rail: the sections, and which ones are fully copied ──────────────── */

.shell {
    display: grid;
    grid-template-columns: var(--rail) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 72px);
    margin-top: clamp(32px, 5vw, 56px);
}

.rail {
    position: sticky;
    top: 24px;
    align-self: start;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding-bottom: 24px;
}

.rail__toggle {
    display: none;
}

.rail__list,
.rail__sub {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rail__sub {
    margin: 2px 0 6px 12px;
    padding-left: 8px;
    border-left: 1px solid var(--rule);
}

.rail__link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 6px;
    color: var(--graphite);
    font-weight: 500;
    font-size: 14px;
    line-height: 1.3;
    text-decoration: none;
}

.rail__sub .rail__link {
    font-weight: 400;
    font-size: 13.5px;
}

.rail__link:hover {
    color: var(--ink);
    background: var(--mist);
}

.rail__link[aria-current="true"] {
    color: var(--ink);
    background: var(--mist);
    box-shadow: inset 2px 0 0 var(--key);
}

.rail__name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rail__count {
    color: var(--graphite);
    font-size: 12px;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
}

.rail__tick {
    display: none;
    color: var(--key);
}

.rail__link.is-complete .rail__tick {
    display: inline-flex;
}

.rail__note {
    margin: 20px 10px 0;
    color: var(--graphite);
    font-size: 13px;
}

.rail__clear {
    display: none;
    margin: 8px 10px 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--graphite);
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 0.18em;
    cursor: pointer;
}

.rail__clear.is-shown {
    display: inline;
}

/* ── Parts (Property, Photos, Rooms…) and their items ─────────────────── */

.main {
    min-width: 0;
    padding-bottom: 64px;
}

.part {
    padding-top: 8px;
}

.part + .part {
    margin-top: clamp(48px, 7vw, 88px);
}

.part__title {
    margin: 0;
    padding-top: 14px;
    border-top: 2px solid var(--ink);
    font-weight: 600;
    font-size: 1.375rem;
    line-height: 1.25;
}

.part__note {
    max-width: var(--measure);
    margin: 8px 0 0;
    color: var(--graphite);
}

.item {
    padding-top: 36px;
}

.item + .item {
    margin-top: 36px;
    border-top: 1px solid var(--rule);
}

.item__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 16px;
}

.item__title {
    margin: 0;
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(1.625rem, 3vw, 1.875rem);
    line-height: 1.15;
    letter-spacing: -0.005em;
    overflow-wrap: anywhere;
}

.item__title--small {
    font-size: 1.375rem;
}

.item__title--label {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 1.0625rem;
    letter-spacing: 0;
}

/* ── Facts: each value in a field of its own, like the form it's going into ── */

.facts {
    margin-top: 20px;
}

.facts__title {
    margin: 24px 0 8px;
    color: var(--graphite);
    font-weight: 500;
    font-size: 13px;
}

.facts__title:first-child {
    margin-top: 0;
}

.facts__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
    gap: 6px;
    margin: 0;
}

.fact {
    position: relative;
    min-width: 0;
    padding: 10px 44px 12px 14px;
    border-radius: 4px;
    background: var(--mist);
}

.fact:has(.copy.is-done) {
    background: var(--key-wash);
}

.fact--wide {
    grid-column: span 2;
}

.fact__label {
    color: var(--graphite);
    font-size: 13px;
    line-height: 1.3;
}

.fact__value {
    margin: 4px 0 0;
    font-family: var(--serif);
    font-size: 1.25rem;
    line-height: 1.3;
    overflow-wrap: break-word;
}

/* A web address shows on one line (a map embed link runs to 300 characters); Copy and the link keep all of it. */
.fact__value--url {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fact__value a {
    color: inherit;
    text-decoration-color: var(--rule);
}

.fact__value a:hover {
    color: var(--key);
    text-decoration-color: currentColor;
}

.fact .copy--icon {
    position: absolute;
    right: 6px;
    top: 6px;
}

/* ── Copy buttons ─────────────────────────────────────────────────────── */

.copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border: 1px solid color-mix(in srgb, var(--key) 45%, transparent);
    border-radius: 6px;
    background: transparent;
    color: var(--key);
    font-weight: 500;
    font-size: 13px;
    line-height: 1.4;
    white-space: nowrap;
    cursor: pointer;
}

.copy:hover {
    background: var(--key-wash);
}

.copy .icon--done,
.copy.is-done .icon--copy {
    display: none;
}

.copy.is-done .icon--done {
    display: inline;
}

.copy.is-done {
    border-color: transparent;
    background: var(--key-wash);
}

.copy.is-fresh .icon--done {
    animation: tick 0.28s ease-out;
}

.copy--icon {
    width: 32px;
    height: 32px;
    justify-content: center;
    padding: 0;
    border-color: transparent;
    color: var(--graphite);
}

.copy--icon:hover {
    color: var(--key);
    background: var(--paper);
}

.copy--icon.is-done {
    color: var(--key);
    background: transparent;
}

@keyframes tick {
    from {
        transform: scale(0.4);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ── Texts: the property's own words, exactly as entered ──────────────── */

.text {
    max-width: var(--measure);
    margin-top: 28px;
}

.text__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
}

.text__label {
    margin: 0;
    font-weight: 500;
    font-size: 15px;
}

.text__count {
    color: var(--graphite);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.prose {
    margin: 10px 0 0;
    font-family: var(--serif);
    font-size: 1.125rem;
    line-height: 1.62;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.amenities {
    columns: 3 12rem;
    column-gap: 32px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    font-family: var(--serif);
    font-size: 1.0625rem;
    line-height: 1.45;
}

.amenities li {
    break-inside: avoid;
    padding: 3px 0 3px 14px;
    text-indent: -14px;
}

.amenities li::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-right: 9px;
    border-radius: 50%;
    background: var(--graphite);
    vertical-align: 0.2em;
}

/* ── Tables: rate plans, fees, taxes ──────────────────────────────────── */

.table-wrap {
    max-width: var(--measure);
    margin-top: 28px;
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table caption {
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 15px;
    text-align: left;
}

.table th {
    padding: 6px 16px 6px 0;
    border-bottom: 1px solid var(--rule);
    color: var(--graphite);
    font-weight: 400;
    font-size: 13px;
    text-align: left;
}

.table td {
    padding: 10px 16px 10px 0;
    border-bottom: 1px solid var(--rule);
    font-family: var(--serif);
    font-size: 1.0625rem;
    line-height: 1.35;
    vertical-align: top;
}

.table td.table__num {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.table td.table__note {
    color: var(--graphite);
    font-family: var(--sans);
    font-size: 14px;
}

/* ── Not provided ─────────────────────────────────────────────────────── */

.missing {
    max-width: var(--measure);
    margin: 24px 0 0;
    color: var(--graphite);
    font-size: 14px;
}

.missing__label {
    color: var(--ink);
    font-weight: 500;
}

.empty {
    max-width: var(--measure);
    margin: 16px 0 0;
    padding: 16px 18px;
    border: 1px dashed var(--rule);
    border-radius: 4px;
    color: var(--graphite);
}

/* ── Footer ───────────────────────────────────────────────────────────── */

.foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 32px;
    padding: 20px 0 40px;
    border-top: 1px solid var(--rule);
    color: var(--graphite);
    font-size: 13px;
}

.foot p {
    margin: 0;
}

.foot a {
    color: inherit;
}

/* ── Photo viewer ─────────────────────────────────────────────────────── */

.viewer {
    width: 100vw;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: var(--night);
    color: var(--night-ink);
}

.viewer[open] {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    animation: viewer-in 0.18s ease-out;
}

.viewer::backdrop {
    background: rgba(10, 14, 13, 0.7);
}

@keyframes viewer-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.viewer__stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 56px 72px 16px;
    touch-action: pan-y;
}

.viewer__img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 2px;
}

.viewer__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px 32px;
    padding: 14px 24px 20px;
    border-top: 1px solid rgba(231, 236, 234, 0.12);
}

.viewer__text {
    min-width: 0;
    flex: 1 1 360px;
}

.viewer__where {
    margin: 0;
    color: var(--night-dim);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.viewer__caption {
    margin: 4px 0 0;
    font-family: var(--serif);
    font-size: 1.125rem;
    line-height: 1.45;
}

.viewer__alt {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    margin: 6px 0 0;
    color: var(--night-dim);
    font-size: 14px;
}

.viewer__alt-text {
    color: var(--night-ink);
    font-family: var(--serif);
    font-size: 1rem;
}

.viewer__side {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
}

.viewer__size {
    color: var(--night-dim);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.viewer .copy {
    border-color: rgba(231, 236, 234, 0.3);
    color: var(--night-ink);
}

.viewer .copy:hover,
.viewer .copy.is-done {
    background: rgba(231, 236, 234, 0.12);
}

.viewer__full {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 6px;
    background: var(--night-ink);
    color: var(--night);
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
}

.viewer__nav,
.viewer__close {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(231, 236, 234, 0.1);
    color: var(--night-ink);
    cursor: pointer;
}

.viewer__nav:hover,
.viewer__close:hover {
    background: rgba(231, 236, 234, 0.2);
}

.viewer__nav .icon,
.viewer__close .icon {
    width: 22px;
    height: 22px;
}

.viewer__nav--prev {
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.viewer__nav--next {
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.viewer__close {
    right: 16px;
    top: 12px;
}

.viewer :focus-visible {
    outline-color: var(--night-ink);
}

/* ── A link that doesn't answer ───────────────────────────────────────── */

.lost {
    max-width: 40rem;
    padding: clamp(64px, 14vh, 160px) 0 96px;
}

.lost__title {
    margin: 0;
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.08;
    letter-spacing: -0.01em;
}

.lost__text {
    margin: 16px 0 0;
    color: var(--graphite);
    font-size: 1.0625rem;
}

/* ── Smaller screens ──────────────────────────────────────────────────── */

@media (max-width: 1023px) {
    .shell {
        display: block;
        margin-top: 24px;
    }

    .rail {
        position: sticky;
        top: 0;
        z-index: 20;
        max-height: none;
        overflow: visible;
        margin: 0 calc(var(--gutter) * -1);
        padding: 0 var(--gutter);
        border-bottom: 1px solid var(--rule);
        background: var(--paper);
    }

    .rail__toggle {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        padding: 12px 0;
        border: 0;
        background: none;
        font-weight: 500;
        font-size: 14px;
        text-align: left;
        cursor: pointer;
    }

    .rail__current {
        flex: 1;
        min-width: 0;
        overflow: hidden;
        color: var(--graphite);
        font-weight: 400;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .rail__toggle .icon {
        transition: transform 0.2s ease;
    }

    .rail__toggle[aria-expanded="true"] .icon {
        transform: rotate(180deg);
    }

    .rail__body {
        display: none;
        max-height: 70vh;
        overflow-y: auto;
        padding-bottom: 16px;
    }

    .rail.is-open .rail__body {
        display: block;
    }

    .main {
        padding-top: 16px;
    }

    html {
        scroll-padding-top: 64px;
    }
}

@media (max-width: 759px) {
    .masthead__tools {
        align-items: flex-start;
    }

    .masthead__where {
        font-size: 1.125rem;
    }

    /* The mosaic becomes one swipeable row, still in the property's order. */
    .mosaic,
    .mosaic--1,
    .mosaic--2,
    .mosaic--3 {
        display: flex;
        gap: 8px;
        margin-right: calc(var(--gutter) * -1);
        margin-left: calc(var(--gutter) * -1);
        padding: 0 var(--gutter);
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 var(--gutter);
        aspect-ratio: auto;
        scrollbar-width: none;
    }

    .mosaic__item,
    .mosaic__item:first-child {
        flex: 0 0 82%;
        aspect-ratio: 4 / 3;
        scroll-snap-align: start;
    }

    .mosaic--1 .mosaic__item:first-child {
        flex-basis: 100%;
    }

    .photos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .facts__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fact--wide {
        grid-column: 1 / -1;
    }

    .fact {
        padding-right: 40px;
    }

    .fact__value {
        font-size: 1.125rem;
    }

    .viewer__stage {
        padding: 56px 8px 8px;
    }

    .viewer__nav {
        top: auto;
        bottom: 8px;
        transform: none;
    }

    .viewer__bar {
        padding: 12px 16px 16px;
    }
}

@media (max-width: 420px) {
    .facts__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

@media print {
    .rail,
    .copy,
    .download,
    .langs,
    .viewer,
    .skip,
    .masthead__actions {
        display: none !important;
    }

    .shell {
        display: block;
    }

    .fact {
        break-inside: avoid;
    }
}
