/* Press kit page (press.php). Uses the shared --ds-* tokens, so light and dark themes follow the site. */
.press-kit { width: min(var(--ds-container), calc(100% - 32px)); margin: 0 auto; padding: var(--ds-space-6) 0 var(--ds-space-5); color: var(--ds-text); }
.press-kit h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); line-height: 1.05; margin: 0 0 var(--ds-space-3); color: var(--ds-heading); text-align: left; }
.press-kit h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.15; margin: 0 0 var(--ds-space-3); color: var(--ds-heading); text-align: left; }
.press-kit h3 { font-size: 1.08rem; line-height: 1.3; margin: 0; color: var(--ds-heading); text-align: left; }
.press-kit p { margin: 0 0 var(--ds-space-3); }
.press-kit code { font-size: .92em; padding: .1em .35em; border-radius: 5px; background: var(--ds-surface-strong); }
.press-small { font-size: .9rem; color: var(--ds-text-muted); }

.press-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--ds-space-6); align-items: center; }
.press-lead { font-size: 1.15rem; line-height: 1.55; max-width: 34rem; }
.press-actions { display: flex; flex-wrap: wrap; gap: var(--ds-space-2); align-items: center; margin: var(--ds-space-4) 0 var(--ds-space-2); }
.press-actions a { margin: 0; }
.press-hero-shot { margin: 0; }
.press-hero-shot img, .press-shot img { display: block; width: 100%; height: auto; border-radius: var(--ds-radius); border: 1px solid var(--ds-border); box-shadow: var(--ds-shadow-md); }

.press-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--ds-space-3); margin: var(--ds-space-6) 0 0; padding: var(--ds-space-4) 0; border-top: 1px solid var(--ds-border); border-bottom: 1px solid var(--ds-border); }
.press-facts dt { font-size: .85rem; font-weight: 700; color: var(--ds-text-muted); }
.press-facts dd { margin: 4px 0 0; font-weight: 600; color: var(--ds-heading); }

.press-section { margin-top: var(--ds-space-7); }
.press-section-intro { max-width: var(--ds-readable); color: var(--ds-text-muted); }

.press-card { background: var(--ds-surface); border: 1px solid var(--ds-border); border-radius: var(--ds-radius); padding: var(--ds-space-4); box-shadow: var(--ds-shadow-xs); }
.press-card > :last-child, .press-card > div > :last-child { margin-bottom: 0; }
.press-card-head { display: flex; justify-content: space-between; align-items: center; gap: var(--ds-space-3); margin-bottom: var(--ds-space-3); }
.press-copy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ds-space-3); margin-bottom: var(--ds-space-3); }
.press-card--wide { grid-column: 1 / -1; }

.press-copy { flex: none; font: inherit; font-size: .85rem; font-weight: 600; padding: 6px 12px; border-radius: var(--ds-radius-sm); border: 1px solid var(--ds-border-strong); background: var(--ds-surface-muted); color: var(--ds-heading); cursor: pointer; }
.press-copy:hover { border-color: var(--ds-primary); color: var(--ds-primary); }
.press-copy:focus-visible, .press-asset-preview:focus-visible, .press-shot a:focus-visible { outline: 3px solid var(--ds-primary); outline-offset: 2px; }

.press-features { list-style: none; padding: 0; margin: var(--ds-space-5) 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ds-space-4) var(--ds-space-5); }
.press-features li { margin: 0; padding: 0; }
.press-features li::before { content: none; }
.press-features h3 { margin-bottom: 6px; }
.press-features p { margin: 0; color: var(--ds-text-muted); }

.press-asset-grid { display: grid; gap: var(--ds-space-3); }
.press-asset-grid--logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.press-asset-grid--icons { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.press-asset { display: flex; flex-direction: column; padding: var(--ds-space-3); }
.press-asset h3 { margin-top: var(--ds-space-3); }
.press-asset .press-small { margin: 4px 0 var(--ds-space-2); }
.press-asset-preview { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; border-radius: var(--ds-radius-sm); border: 1px solid var(--ds-border); padding: 12%; }
.press-asset-grid--icons .press-asset-preview { aspect-ratio: 1; padding: 18%; }
.press-asset-preview img { max-width: 100%; max-height: 100%; }
.press-downloads { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: auto 0 0; font-size: .9rem; font-weight: 600; }

/* Fixed preview backgrounds so each logo variant shows on the background it is made for, in both themes. */
.press-bg-light { background: #ffffff; }
.press-bg-dark { background: #121826; }
.press-bg-blue { background: #4074bd; }

.press-selfhosted { display: flex; justify-content: space-between; align-items: center; gap: var(--ds-space-5); background: var(--ds-surface-muted); border: 1px solid var(--ds-border); border-radius: var(--ds-radius-lg); padding: var(--ds-space-5); }
.press-selfhosted p { margin: 0; max-width: 44rem; }
.press-selfhosted-icons { display: flex; gap: var(--ds-space-2); flex: none; }
.press-selfhosted-icons span { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 20px; border: 1px solid var(--ds-border); }

.press-colors { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--ds-space-3); }
.press-colors li { margin: 0; padding: 0; display: grid; gap: var(--ds-space-2); align-content: start; }
.press-colors li::before { content: none; }
.press-colors strong { display: block; color: var(--ds-heading); }
.press-swatch { height: 72px; border-radius: var(--ds-radius-sm); border: 1px solid var(--ds-border); }
.press-colors .press-copy { justify-self: start; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }

.press-shot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ds-space-4); }
.press-shot { padding: 0; overflow: hidden; }
.press-shot img { border: 0; border-bottom: 1px solid var(--ds-border); border-radius: 0; box-shadow: none; }
.press-shot-info { display: flex; justify-content: space-between; align-items: center; gap: var(--ds-space-3); padding: var(--ds-space-3) var(--ds-space-4); }
.press-shot-info a { font-size: .9rem; font-weight: 600; white-space: nowrap; }

.press-list { margin: var(--ds-space-3) 0 0; padding-left: 1.2em; }
.press-list li { margin-bottom: 6px; }

.press-contact { display: flex; justify-content: space-between; align-items: center; gap: var(--ds-space-5); padding: var(--ds-space-5); border-radius: var(--ds-radius-lg); background: var(--ds-hero); color: #e9edf5; }
.press-contact h2 { color: #ffffff; }
.press-contact p { max-width: 40rem; }
.press-contact a { color: #ffffff; }
.press-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; font-weight: 600; }
.press-contact-actions { flex: none; }
.press-email { font-size: 1.1rem; font-weight: 700; color: #ffffff; }
.press-updated { margin-top: var(--ds-space-4); }

.press-lightbox { width: min(1200px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: var(--ds-space-3); border: 1px solid var(--ds-border); border-radius: var(--ds-radius); background: var(--ds-surface); color: var(--ds-text); }
.press-lightbox::backdrop { background: rgba(5, 10, 20, .78); }
.press-lightbox-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--ds-space-2); }
.press-lightbox h2 { font-size: 1.2rem; margin: 0; }
.press-lightbox-close { font-size: 1.8rem; line-height: 1; width: 44px; height: 44px; border: 0; border-radius: var(--ds-radius-sm); background: transparent; color: var(--ds-heading); cursor: pointer; }
.press-lightbox-close:hover { background: var(--ds-surface-strong); }
.press-lightbox-image { display: flex; justify-content: center; border-radius: var(--ds-radius-sm); }
.press-lightbox-image:not(.press-bg-none) { padding: 6%; }
/* Leave room for the heading and download row so nothing is clipped in short windows. */
.press-lightbox-image img { max-width: 100%; max-height: calc(100vh - 200px); height: auto; }
.press-kit .press-lightbox-actions { display: flex; justify-content: flex-end; margin: var(--ds-space-3) 0 0; }
.press-lightbox-actions a { display: inline-flex; align-items: center; padding: 0 20px; margin: 0; text-decoration: none; }

.press-status { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); margin: 0; padding: 8px 16px; border-radius: 999px; background: var(--ds-heading); color: var(--ds-page); font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 1000; }
.press-status.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 960px) {
  .press-hero { grid-template-columns: 1fr; gap: var(--ds-space-5); }
  .press-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .press-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .press-asset-grid--icons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .press-colors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .press-kit { padding-top: var(--ds-space-5); }
  .press-section { margin-top: var(--ds-space-6); }
  .press-copy-grid, .press-features, .press-asset-grid--logos, .press-shot-grid { grid-template-columns: 1fr; }
  .press-colors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .press-selfhosted, .press-contact { flex-direction: column; align-items: flex-start; padding: var(--ds-space-4); }
  .press-card { padding: var(--ds-space-3); }
}
