/* Press kit page (press.html, served at /press; server/press.mjs fills it from press/manifest.json).
   Loaded after css/landing.css, which provides the colour tokens, the top bar, the brand, the buttons and the footer.
   The logo panes keep their own light or dark background in both themes (the logo files are made for one of them). */
.press-main { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: calc(var(--top-h) + 36px) var(--gutter) 64px; }
.press-card, .press-facts, .press-stats {
  border: 1px solid var(--border-accent); background: linear-gradient(180deg, var(--glass-top), var(--glass-bottom));
  box-shadow: inset 0 0 0 1px var(--frame-hi), var(--shadow-2);
}

/* ------------------------------------------------------------------ facts, download */
.press-top { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 28px 44px; align-items: start; }
.press-intro h1 { margin: 0 0 14px; font-family: var(--title); font-weight: 800; font-size: clamp(32px, 5vw, 46px); line-height: 1.12; letter-spacing: 0.4px; color: var(--text-title); }
.press-about { max-width: 62ch; margin: 0 0 22px; font-size: 17px; line-height: 1.65; color: var(--text-soft); }
.press-zip { margin: 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.press-zip .btn { min-height: 52px; padding: 0 26px; border-radius: 12px; font-size: 16.5px; }
.press-usage { max-width: 62ch; margin: 14px 0 0; font-size: 14px; line-height: 1.5; color: var(--text-muted); }
.press-facts { margin: 0; padding: 8px 22px; border-radius: 16px; }
.press-facts div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 9px 0; }
.press-facts div + div { border-top: 1px solid var(--border-soft); }
.press-facts dt { padding-top: 2px; font-size: 12px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-muted); }
.press-facts dd { margin: 0; font-weight: 700; color: var(--text-strong); overflow-wrap: anywhere; }
.press-facts a { font-weight: 800; text-decoration: none; }
.press-facts a:hover { text-decoration: underline; }
.press-stats { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); margin: 32px 0 0; padding: 14px 6px; border-radius: 16px; list-style: none; }
.press-stats li { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2px 6px; text-align: center; }
.press-stats li + li { border-left: 1px solid var(--border-soft); }
.press-stats b { font-family: var(--title); font-weight: 800; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; color: var(--text-title); }
.press-stats span { font-size: 11.5px; font-weight: 800; letter-spacing: 0.8px; line-height: 1.3; text-transform: uppercase; color: var(--text-muted); }

/* ------------------------------------------------------------------ sections */
.press-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 0; }
.press-chips a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: var(--radius-pill); border: 1px solid var(--border);
  background: var(--glass-clear); color: var(--text-soft); font-size: 14px; font-weight: 800; text-decoration: none;
}
.press-chips a:hover { color: var(--text-strong); border-color: var(--sel-line); background: var(--sel-soft); }
.press-sec { margin-top: 44px; }
.press-sec h2 { margin: 0 0 16px; font-family: var(--title); font-weight: 800; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; color: var(--text-title); }
.press-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.press-grid.screenshots, .press-grid.gifs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.press-card { display: flex; flex-direction: column; margin: 0; overflow: hidden; border-radius: 14px; }
.press-card figcaption { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 12px 14px 14px; }
.press-card figcaption b { font-size: 14.5px; font-weight: 800; line-height: 1.4; color: var(--text-strong); }
.press-pane { height: 150px; padding: 22px 26px; border-bottom: 1px solid var(--border-soft); }
.press-pane img { display: block; width: 100%; height: 100%; object-fit: contain; }
.press-pane.light { background: linear-gradient(180deg, #ffffff, #e9eff8); }
.press-pane.dark { background: linear-gradient(180deg, #1d2536, #0b0e15); }
.press-pic { display: block; background: var(--surface-sunken); border-bottom: 1px solid var(--border-soft); }
.press-pic img { display: block; width: 100%; height: auto; }
a.press-pic:hover img { opacity: 0.92; }
/* banners come in many shapes: one box size, the picture fitted inside */
.press-grid.banners .press-pic { aspect-ratio: 16 / 10; padding: 10px; }
.press-grid.banners .press-pic img { width: 100%; height: 100%; object-fit: contain; }
.press-files { display: flex; flex-wrap: wrap; gap: 6px; margin: auto 0 0; }
.press-files a {
  display: inline-flex; align-items: center; gap: 4px; min-height: 30px; padding: 0 11px; border-radius: var(--radius-pill); border: 1px solid var(--border);
  background: var(--surface-2); color: var(--primary-text); font-size: 13px; font-weight: 800; text-decoration: none; white-space: nowrap;
}
.press-files a span { font-weight: 700; color: var(--text-muted); }
.press-files a:hover { border-color: var(--sel-line); background: var(--sel-soft); color: var(--link-hover); }

/* ------------------------------------------------------------------ smaller screens */
@media (max-width: 960px) {
  .press-top { grid-template-columns: minmax(0, 1fr); }
  .press-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 12px; }
  .press-stats li:nth-child(4n + 1) { border-left: 0; }
  .press-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .press-main { padding-top: calc(var(--top-h) + 22px); padding-bottom: 48px; }
  .press-about { font-size: 16px; }
  .press-zip .btn { width: 100%; }
  .press-facts { padding: 4px 16px; }
  .press-facts div { grid-template-columns: 82px minmax(0, 1fr); gap: 10px; }
  .press-stats { padding: 12px 2px; }
  .press-stats li { padding: 2px 3px; }
  .press-stats span { font-size: 10px; letter-spacing: 0.3px; }
  .press-sec { margin-top: 36px; }
  .press-grid { gap: 12px; }
  .press-grid.screenshots, .press-grid.gifs { grid-template-columns: minmax(0, 1fr); }
  .press-pane { height: 104px; padding: 14px 12px; }
  .press-card figcaption { padding: 10px 10px 12px; }
  .press-card figcaption b { font-size: 13.5px; }
  /* two cards a row: a long chip breaks before its size */
  .press-files a { flex-wrap: wrap; column-gap: 4px; row-gap: 0; min-height: 28px; padding: 3px 9px; border-radius: 12px; font-size: 12px; line-height: 1.3; white-space: normal; }
  .press-files a span { white-space: nowrap; }
}
