/* Press kit, in the 2.0 design (after assets/home/site.css).
 *
 * Shared by press.html (uk) and press-en.html, generated by
 * tools/genpress.mjs and given the site's header and footer by
 * tools/genchrome.mjs. Colours come from the 2.0 tokens, so both themes work.
 */

/* the kit is wider than prose: galleries want the room */
.doc-body:has(.press-grid) { max-width: 1400px; }
.doc-body:has(.press-grid) > p,
.doc-body:has(.press-grid) > h3,
.doc-body:has(.press-grid) > .copyblock,
.doc-body:has(.press-grid) > .permission,
.doc-body:has(.press-grid) > .pending,
.doc-body:has(.press-grid) > table { max-width: 68ch; }

/* a plate: hairline, top-left corner cut */
.press-item, .copyblock, .permission {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--hair);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut));
}

/* Logos and icons: a few large items, each shown whole. */
.press-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 1.2em 0 2em; }
.press-item { display: flex; flex-direction: column; padding: 14px 14px 16px; }
.press-item img { width: 100%; height: 140px; object-fit: contain; background: #0B0B0A; }
.press-item.on-paper img { background: #F8F6F1; }
.press-item .name { margin: 12px 0 2px; font-weight: 700; font-size: .9em; }
.press-item .meta { color: var(--text2); font-size: .78em; }
.doc-body .press-item a { margin-top: 10px; font-size: .82em; }
.zip-item { padding: 20px; }
.zip-item .name { margin-top: 0; font: 800 1.2em/1.1 var(--display); font-stretch: 78%; text-transform: uppercase; }

/* Screenshots: many tall phone images; the thumbnail keeps its own ratio and
   carries width/height so the grid doesn't reflow as they load. */
.shot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 18px; margin: 1em 0 2em; }
.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; background: #0B0B0A; box-shadow: 0 0 0 1px var(--hair); }
.shot a:hover img { box-shadow: 0 0 0 2px var(--accent-line); }
.shot figcaption { padding: 8px 2px 0; }
.shot .name { display: block; font-size: .8em; font-weight: 700; line-height: 1.35; }
.shot .meta { display: block; color: var(--text2); font-size: .72em; }
.doc-body .shot figcaption a { font-size: .75em; }

/* Photos of the developer: wider columns, one shared ratio, whole frames. */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 320px)); gap: 18px; margin: 1em 0 2em; }
.photo-grid .shot img { aspect-ratio: 3 / 4; object-fit: contain; }

/* ready-to-use copy */
.copyblock { margin: .8em 0 1.4em; padding: 18px 22px; box-shadow: inset 0 0 0 1px var(--hair), inset 3px 0 0 var(--accent); }
[dir='rtl'] .copyblock { box-shadow: inset 0 0 0 1px var(--hair), inset -3px 0 0 var(--accent); }
.copyblock p { margin: 0 0 .8em; }
.copyblock p:last-child { margin-bottom: 0; }

.permission { margin: 0 0 2em; padding: 18px 22px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }

/* promised but not here yet, said plainly */
.pending { padding-inline-start: 14px; border-inline-start: 2px solid var(--control); color: var(--text2); font-size: .9em; }
