/*
 * Twinkle Lights: press kit page (press.html, de/press.html). Loaded after base.css and prose.css.
 *
 * The page is wider than the other prose pages because of the screenshot grid; text blocks
 * keep the reading measure.
 */

.prose.press { max-width: none; }
.press section { margin-bottom: 0.5rem; }
.press h2 { scroll-margin-top: 1rem; }

/* Texts meant for copying: a raised card; one click selects all of it. */
.copy-text {
    max-width: 44rem;
    padding: 1rem 1.2rem;
    border: 1px solid var(--rule); border-radius: var(--radius);
    background: var(--night-raised);
    -webkit-user-select: all; user-select: all;
    cursor: text;
}
.copy-hint { color: var(--frost); font-size: 0.92rem; margin-top: -0.4rem; }

/* Fact sheet: label column and value column; stacked in the phone layout. */
.facts {
    display: grid; grid-template-columns: minmax(8rem, max-content) 1fr;
    gap: 0.55rem 1.5rem; max-width: 44rem; margin: 0 0 1rem;
}
.facts dt { color: var(--frost); font-weight: 600; }
.facts dd { margin: 0; overflow-wrap: anywhere; }

.icon-row { display: flex; align-items: center; gap: 1.25rem; }
.icon-row img { width: 128px; height: 128px; flex: none; }
.icon-row p { margin: 0; }

/* Screenshots: previews in a grid, each linked to its full-size JPEG. */
.shots {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
    gap: 1.5rem 1.25rem; list-style: none; margin: 1.25rem 0 1rem; padding: 0;
}
/* iPhone screenshots (portrait): four in a row, two in the phone layout (fixed counts, so
   no width leaves one shot alone on its own row). */
.shots-portrait {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem 1.25rem; margin: 1.25rem 0 1rem;
}
.shots figure, .shots-portrait figure { margin: 0; }
.shots a, .shots-portrait a { display: block; border-radius: 8px; }
.shots img, .shots-portrait img {
    width: 100%; aspect-ratio: 16 / 10;
    border-radius: 8px; border: 1px solid var(--rule);
}
.shots-portrait img { aspect-ratio: 1320 / 2868; }
.shots a:hover img, .shots-portrait a:hover img { border-color: var(--gold); }
.shots figcaption, .shots-portrait figcaption { margin-top: 0.5rem; color: var(--frost); font-size: 0.95rem; }

.press-video {
    display: block; width: 100%; max-width: 44rem; height: auto; margin: 0.5rem 0 1rem;
    border-radius: var(--radius); background: #000;
}
/* Vertical (9:16) short: narrow, so it does not fill the screen. */
.press-video--vertical { max-width: 20rem; aspect-ratio: 9 / 16; }
/* Several vertical shorts side by side: three in a row, one per row in the phone layout
   (fixed counts, so no width leaves one short alone on its own row). */
.press-video-row {
    display: grid; grid-template-columns: repeat(3, minmax(0, 20rem));
    gap: 1.5rem 1.25rem; margin: 0.5rem 0 1rem;
}
.press-video-row figure { margin: 0; }
.press-video-row .press-video { margin: 0 0 0.5rem; }
.press-video-row figcaption { color: var(--frost); font-size: 0.95rem; }
.downloads { max-width: 44rem; padding-inline-start: 1.2rem; margin: 0 0 1rem; }

@media (max-width: 40rem) {
    .facts { grid-template-columns: 1fr; gap: 0.1rem; }
    .facts dd { margin-bottom: 0.6rem; }
    .icon-row { flex-direction: column; align-items: flex-start; }
    .shots-portrait { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 0.75rem; }
    .press-video-row { grid-template-columns: minmax(0, 20rem); }
}
