/*
 * Press Kit base styles.
 * Everything visual is driven by the --pk-* tokens below. A client's theme.css
 * overrides tokens (and, if needed, specific selectors) — never edit this file per client.
 */
:root {
  --pk-bg: #ffffff;
  --pk-surface: #f6f8fa;
  --pk-surface-raised: #ffffff;
  --pk-border: #d1d9e0;
  --pk-text: #1f2328;
  --pk-muted: #59636e;
  --pk-link: #0969da;
  --pk-accent: #0969da;
  --pk-eyebrow: var(--pk-accent);

  --pk-btn-bg: #1f883d;
  --pk-btn-bg-hover: #1a7f37;
  --pk-btn-text: #ffffff;
  --pk-btn2-bg: #f6f8fa;
  --pk-btn2-bg-hover: #eff2f5;
  --pk-btn2-text: var(--pk-text);

  --pk-embargo-bg: #fff8c5;
  --pk-embargo-text: #3b2300;

  --pk-hero-bg: var(--pk-surface);
  --pk-cover-bg: linear-gradient(150deg, #0969da, #8250df);
  --pk-cover-text: #ffffff;
  --pk-avatar-bg: linear-gradient(135deg, #0969da, #8250df);

  --pk-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
  --pk-font-display: var(--pk-font);
  --pk-font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --pk-radius: 12px;
  --pk-radius-sm: 6px;
  --pk-max: 1200px;
  --pk-gutter: 16px;
  --pk-section-space: 64px;
  --pk-header-h: 64px;
}

@media (min-width: 720px) {
  :root { --pk-gutter: 32px; --pk-section-space: 96px; }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--pk-header-h) + 24px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--pk-bg);
  color: var(--pk-text);
  font: 16px/1.6 var(--pk-font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.pk-loading #app { visibility: hidden; }

img, video, iframe { display: block; max-width: 100%; }
a { color: var(--pk-link); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--pk-link); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--pk-font-display); line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; }

.pk-container { width: 100%; max-width: var(--pk-max); margin: 0 auto; padding: 0 var(--pk-gutter); }

.pk-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--pk-bg); padding: 8px 12px; }
.pk-skip:focus { left: 8px; }
main:focus { outline: none; }

.pk-icon { display: inline-flex; width: 1em; height: 1em; flex: none; }
.pk-icon svg { width: 100%; height: 100%; }

.pk-eyebrow {
  font: 600 13px/1.4 var(--pk-font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pk-eyebrow);
  margin-bottom: 12px;
}

.pk-prose p + p { margin-top: 0.9em; }

/* ---------- Embargo bar ---------- */
.pk-embargo { background: var(--pk-embargo-bg); color: var(--pk-embargo-text); font-size: 14px; }
.pk-embargo__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding-top: 10px; padding-bottom: 10px; }
.pk-embargo__note { opacity: 0.85; }

/* ---------- Header ---------- */
.pk-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--pk-bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--pk-border);
}
.pk-header__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "brand action" "nav nav";
  align-items: center;
  column-gap: 16px;
  padding-top: 12px;
}
.pk-brand { grid-area: brand; display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; min-width: 0; }
.pk-brand__logo { width: 32px; height: 32px; }
.pk-brand__name { font: 600 17px/1 var(--pk-font-display); }
.pk-brand__kit { color: var(--pk-muted); font-size: 15px; padding-left: 10px; border-left: 1px solid var(--pk-border); white-space: nowrap; }
.pk-header__action { grid-area: action; display: flex; align-items: center; gap: 8px; }
.pk-header__action .pk-btn__meta { display: none; }
.pk-nav {
  grid-area: nav;
  display: flex; gap: 4px;
  overflow-x: auto; scrollbar-width: none;
  margin: 8px calc(var(--pk-gutter) * -1) 0;
  padding: 0 var(--pk-gutter) 8px;
}
.pk-nav::-webkit-scrollbar { display: none; }
.pk-nav a {
  flex: none;
  color: var(--pk-muted); text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 6px 10px; border-radius: var(--pk-radius-sm);
}
.pk-nav a:hover { color: var(--pk-text); background: var(--pk-surface); }
.pk-nav a[aria-current] { color: var(--pk-text); background: var(--pk-surface); }

@media (min-width: 1024px) {
  .pk-header__inner { grid-template-columns: auto 1fr auto; grid-template-areas: "brand nav action"; height: var(--pk-header-h); padding-top: 0; }
  .pk-nav { margin: 0; padding: 0; justify-content: center; }
}

/* ---------- Buttons ---------- */
.pk-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.pk-actions .pk-actions { display: contents; }
.pk-btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 8px 14px;
  border: 1px solid var(--pk-border); border-radius: var(--pk-radius-sm);
  font: 500 14px/1.2 var(--pk-font); text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.pk-btn__meta { font-size: 12px; opacity: 0.7; font-weight: 400; }
.pk-btn--primary { background: var(--pk-btn-bg); color: var(--pk-btn-text); border-color: transparent; }
.pk-btn--primary:hover { background: var(--pk-btn-bg-hover); text-decoration: none; }
.pk-btn--secondary { background: var(--pk-btn2-bg); color: var(--pk-btn2-text); }
.pk-btn--secondary:hover { background: var(--pk-btn2-bg-hover); text-decoration: none; }
.pk-btn--ghost { background: transparent; color: var(--pk-text); }
.pk-btn--ghost:hover { background: var(--pk-surface); }
.pk-btn--pending {
  background: transparent; color: var(--pk-muted);
  border-style: dashed; cursor: default;
}

/* ---------- Sections ---------- */
.pk-section { padding: var(--pk-section-space) 0; border-top: 1px solid var(--pk-border); }
.pk-section__head { max-width: 720px; margin-bottom: 40px; }
.pk-section__title { font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -0.02em; }
.pk-section__intro { color: var(--pk-muted); font-size: 18px; margin-top: 12px; }
.pk-source { color: var(--pk-muted); font-size: 14px; margin-top: 20px; }
.pk-error { color: #cf222e; }

/* ---------- Hero ---------- */
.pk-hero { background: var(--pk-hero-bg); padding: clamp(72px, 12vw, 160px) 0 clamp(64px, 10vw, 128px); position: relative; overflow: hidden; }
.pk-hero__inner { position: relative; }
.pk-hero__title { font-size: clamp(44px, 9vw, 104px); font-weight: 800; letter-spacing: -0.035em; line-height: 1; max-width: 14ch; }
.pk-hero__dek { font-size: clamp(18px, 2.2vw, 22px); color: var(--pk-muted); max-width: 640px; margin-top: 24px; }
.pk-hero__meta { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font: 500 14px/1.4 var(--pk-font-mono); color: var(--pk-muted); }
.pk-hero .pk-actions { margin-top: 36px; }

/* ---------- Cards & grids ---------- */
.pk-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.pk-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.pk-grid--videos, .pk-grid--images { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.pk-grid--people { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.pk-grid--brand { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.pk-grid--contacts { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }

.pk-card {
  background: var(--pk-surface-raised);
  border: 1px solid var(--pk-border);
  border-radius: var(--pk-radius);
  padding: 24px;
  display: flex; flex-direction: column;
  min-width: 0;
}
.pk-card__title { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.pk-card__meta { color: var(--pk-muted); font-size: 14px; margin-top: 6px; }
.pk-card__text { color: var(--pk-muted); margin-top: 12px; }
.pk-card > .pk-actions { margin-top: auto; padding-top: 20px; }

.pk-tag {
  align-self: flex-start;
  font: 600 12px/1 var(--pk-font-mono); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--pk-eyebrow);
  border: 1px solid currentColor; border-radius: 999px; padding: 6px 10px; margin-bottom: 16px;
}

/* ---------- Stats ---------- */
.pk-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 1px; margin: 0; background: var(--pk-border); border: 1px solid var(--pk-border); border-radius: var(--pk-radius); overflow: hidden; }
/* column-reverse shows each number above its label; flex-end packs both to the top so the
   numbers line up across a row even when one label wraps to fewer lines. */
.pk-stat { background: var(--pk-bg); padding: 28px 24px; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; }
.pk-stat__value { margin: 0; font: 800 clamp(36px, 5vw, 56px)/1 var(--pk-font-display); letter-spacing: -0.03em; }
.pk-stat__label { color: var(--pk-muted); font-size: 15px; }
/* Four numbers wrap 4 → 2 × 2 → 1. Where three 200px columns fit but four don't (a 604–804px
   wide grid), auto-fit would leave 3 + 1 and show the empty cells in the border colour. */
.pk-section--stats > .pk-container { container-type: inline-size; }
@container (604px <= width < 805px) {
  .pk-stats:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Report ---------- */
.pk-report { display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px) { .pk-report { grid-template-columns: minmax(280px, 400px) 1fr; gap: 64px; } }
.pk-report__cover { max-width: min(400px, 72%); }
@media (min-width: 860px) { .pk-report__cover { max-width: 400px; } }
.pk-report__img { width: 100%; border-radius: var(--pk-radius); box-shadow: 0 24px 60px -20px rgb(0 0 0 / 0.45); }
.pk-cover {
  aspect-ratio: 8.5 / 11;
  border-radius: var(--pk-radius);
  background: var(--pk-cover-bg);
  color: var(--pk-cover-text);
  padding: 28px;
  display: flex; flex-direction: column;
  box-shadow: 0 24px 60px -20px rgb(0 0 0 / 0.45);
  position: relative; overflow: hidden;
}
.pk-cover__label { font: 600 13px/1 var(--pk-font-mono); letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; }
.pk-cover__title { margin-top: auto; font: 800 clamp(40px, 6vw, 56px)/0.95 var(--pk-font-display); letter-spacing: -0.03em; }
.pk-cover__year { font: 300 clamp(40px, 6vw, 56px)/1 var(--pk-font-display); letter-spacing: -0.03em; opacity: 0.85; }
.pk-report__name { font-size: clamp(26px, 3vw, 32px); font-weight: 700; letter-spacing: -0.02em; }
.pk-report__subtitle { color: var(--pk-muted); font-size: 18px; margin: 8px 0 20px; }
.pk-checklist { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.pk-checklist li { padding-left: 28px; position: relative; }
.pk-checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.45em; width: 14px; height: 8px;
  border-left: 2px solid var(--pk-eyebrow); border-bottom: 2px solid var(--pk-eyebrow);
  transform: rotate(-45deg);
}

/* ---------- Documents ---------- */
.pk-doclist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.pk-doc {
  display: grid; grid-template-columns: auto 1fr; gap: 16px 20px; align-items: start;
  padding: 24px; border: 1px solid var(--pk-border); border-radius: var(--pk-radius); background: var(--pk-surface-raised);
}
.pk-doc__icon { width: 40px; height: 40px; padding: 9px; border-radius: 10px; background: var(--pk-surface); color: var(--pk-eyebrow); }
.pk-doc__title { font-size: 19px; font-weight: 600; }
.pk-doc__text { color: var(--pk-muted); margin-top: 6px; }
.pk-doc > .pk-actions { grid-column: 1 / -1; margin-top: 0; }
@media (min-width: 760px) {
  .pk-doc { grid-template-columns: auto 1fr auto; align-items: center; }
  .pk-doc > .pk-actions { grid-column: auto; justify-content: flex-end; }
}

/* ---------- Videos ---------- */
.pk-video { padding: 0; overflow: hidden; }
.pk-video__media { position: relative; aspect-ratio: 16 / 9; min-height: 0; background: #000; }
.pk-video__el, .pk-video__media iframe { width: 100%; height: 100%; border: 0; }
.pk-video__play, .pk-video__pending {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; padding: 0; margin: 0; cursor: pointer;
  background: var(--pk-cover-bg); color: #fff;
  display: grid; place-items: center;
}
.pk-video__play img, .pk-video__pending img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pk-video__playicon {
  position: relative; width: 64px; height: 64px; border-radius: 50%;
  background: rgb(0 0 0 / 0.55); display: grid; place-items: center; font-size: 24px;
  transition: transform 0.15s;
}
.pk-video__play:hover .pk-video__playicon { transform: scale(1.08); }
.pk-video__pending { cursor: default; font-size: 14px; font-weight: 500; }
.pk-video__pending > span { position: relative; display: inline-flex; align-items: center; gap: 6px; background: rgb(0 0 0 / 0.5); padding: 8px 14px; border-radius: 999px; }
.pk-video__duration {
  position: absolute; right: 10px; bottom: 10px;
  font: 600 12px/1 var(--pk-font-mono); color: #fff; background: rgb(0 0 0 / 0.7);
  padding: 5px 7px; border-radius: 4px; pointer-events: none;
}
/* Self-hosted videos have the browser's control bar along the bottom. */
.pk-video__media:has(> video) .pk-video__duration { top: 10px; bottom: auto; }
.pk-video__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.pk-video__body > .pk-actions { margin-top: auto; padding-top: 20px; }

/* ---------- Images ---------- */
.pk-image { padding: 0; overflow: hidden; }
.pk-image__preview { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--pk-surface); }
.pk-image__preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.pk-image__empty { font-size: 40px; opacity: 0.35; }
.pk-image__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.pk-image__body > .pk-actions { margin-top: auto; padding-top: 20px; }

/* ---------- People ---------- */
.pk-person { padding: 0; overflow: hidden; }
.pk-person__photo { position: relative; aspect-ratio: 1 / 1; background: var(--pk-surface); overflow: hidden; }
.pk-person__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pk-person__placeholder {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: var(--pk-avatar-bg); color: #fff;
  font: 700 64px/1 var(--pk-font-display); letter-spacing: -0.02em;
}
.pk-person__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.pk-person__role { color: var(--pk-eyebrow); font-weight: 500; font-size: 15px; margin-top: 4px; }
.pk-person__body > .pk-actions { margin-top: auto; padding-top: 20px; }
.pk-details { margin-top: 12px; }
.pk-details summary { cursor: pointer; color: var(--pk-link); font-size: 14px; font-weight: 500; }
.pk-details .pk-card__text { margin-top: 8px; }
.pk-clamp { max-height: calc(1.6em * 5); overflow: hidden; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.pk-clamp--open { max-height: none; -webkit-mask-image: none; mask-image: none; }
.pk-clamp__toggle { align-self: flex-start; margin-top: 8px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--pk-link); font: 500 14px/1.4 var(--pk-font); }

/* ---------- Brand assets ---------- */
.pk-brandasset { padding: 0; overflow: hidden; }
.pk-brandasset__preview { aspect-ratio: 16 / 10; display: grid; place-items: center; padding: 32px; border-bottom: 1px solid var(--pk-border); }
.pk-brandasset__preview img { max-height: 96px; width: auto; }
.pk-bg--dark { background: #0d1117; color: #fff; }
.pk-bg--light { background: #ffffff; color: #1f2328; }
.pk-brandasset__empty { font-size: 40px; opacity: 0.35; }
.pk-brandasset__body { padding: 20px 24px 24px; }
.pk-brandasset__body .pk-actions { margin-top: 14px; }
.pk-brand__guidelines { margin-top: 24px; }

/* ---------- Contacts ---------- */
.pk-contact__lines { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.pk-contact__lines li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pk-contact__lines a { overflow-wrap: anywhere; }
.pk-contact__lines .pk-icon { color: var(--pk-muted); }

/* ---------- Footer ---------- */
.pk-footer { border-top: 1px solid var(--pk-border); padding: 40px 0 56px; color: var(--pk-muted); font-size: 14px; }
.pk-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.pk-footer__brand { color: var(--pk-text); font-weight: 500; }
.pk-footer__note { margin-top: 6px; max-width: 560px; }
.pk-footer__links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.pk-footer__links a { color: var(--pk-muted); }

.pk-fatal { padding-top: 80px; }
.pk-fatal h1 { margin-bottom: 12px; }
