/* Press listing + detail — siphtml.always49.co.uk/press */

.max-w-6xl {
  max-width: 72rem; /* 1152px — matches siphtml press layout */
}

.max-w-2xl {
  max-width: 42rem;
}

.press-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  min-height: 26rem;
}

.press-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.press-detail-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  height: 54vh;
  min-height: 440px;
}

.press-detail-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.press-detail-hero--logo {
  background: hsl(var(--secondary));
}

.press-detail-hero__logo-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  padding-bottom: 8rem;
}

.press-detail-hero__logo {
  width: min(18rem, 55%);
  height: auto;
  opacity: 0.95;
  filter: brightness(0) invert(1);
}

.press-hero__inner,
.press-detail-hero__inner {
  position: relative;
  z-index: 10;
  width: 100%;
  /* Clear fixed site nav + bottom breathing room (siphtml: pt-28 / pb-16) */
  padding-top: 8rem;
  padding-bottom: 4rem;
}

@media (min-width: 640px) {
  .press-hero {
    min-height: 28rem;
  }

  .press-hero__inner,
  .press-detail-hero__inner {
    padding-top: 9rem;
    padding-bottom: 4.5rem;
  }
}

.press-hero__glow {
  background: radial-gradient(ellipse at top right, rgba(245, 158, 11, 0.15), transparent 55%);
  pointer-events: none;
}

/* Card / featured media — always crop to the box so uploads don't stretch the layout */
.press-featured-grid {
  align-items: stretch;
}

.press-media {
  position: relative;
  overflow: hidden;
  background: hsl(var(--muted));
}

.press-media--card {
  aspect-ratio: 16 / 10;
}

.press-media--featured {
  aspect-ratio: 16 / 10;
  min-height: 14rem;
}

@media (min-width: 768px) {
  .press-media--featured {
    aspect-ratio: auto;
    min-height: 100%;
    height: 100%;
  }
}

.press-media__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.press-media__fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--muted-foreground));
  background: hsl(var(--muted));
  padding: 1.5rem;
}

.press-media__fallback-logo {
  width: min(14rem, 70%);
  height: auto;
  max-height: 45%;
  object-fit: contain;
}

.press-more-thumb {
  width: 5rem;
  height: 4rem;
  position: relative;
}

.press-more-thumb__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.press-more-thumb__logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0.55rem;
  background: hsl(var(--muted));
}

/* Keep rich text / uploaded embeds from blowing out the article column */
.press-release-body img,
.press-release-body iframe,
.press-release-body video {
  max-width: 100%;
  height: auto;
}

.text-amber-300 { color: #fcd34d; }
.bg-amber-300\/60 { background-color: rgb(252 211 77 / 0.6); }
.bg-amber-500 { background-color: #f59e0b; }
.bg-primary\/60 { background-color: hsl(var(--primary) / 0.6); }
.bg-primary\/40 { background-color: hsl(var(--primary) / 0.4); }
.bg-primary\/10 { background-color: hsl(var(--primary) / 0.1); }
.bg-primary\/\[0\.04\] { background-color: hsl(var(--primary) / 0.04); }
.text-primary\/20 { color: hsl(var(--primary) / 0.2); }
.text-muted-foreground\/40 { color: hsl(var(--muted-foreground) / 0.4); }
.text-white\/70 { color: rgb(255 255 255 / 0.7); }
.text-white\/75 { color: rgb(255 255 255 / 0.75); }
.bg-white\/90 { background-color: rgb(255 255 255 / 0.9); }
.from-secondary\/30 { --tw-gradient-from: hsl(var(--secondary) / 0.3) var(--tw-gradient-from-position); --tw-gradient-to: hsl(var(--secondary) / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-secondary\/40 { --tw-gradient-from: hsl(var(--secondary) / 0.4) var(--tw-gradient-from-position); --tw-gradient-to: hsl(var(--secondary) / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.via-secondary\/80 { --tw-gradient-to: hsl(var(--secondary) / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), hsl(var(--secondary) / 0.8) var(--tw-gradient-via-position), var(--tw-gradient-to); }
.to-secondary\/25 { --tw-gradient-to: hsl(var(--secondary) / 0.25) var(--tw-gradient-to-position); }
.to-secondary\/30 { --tw-gradient-to: hsl(var(--secondary) / 0.3) var(--tw-gradient-to-position); }
.from-secondary { --tw-gradient-from: hsl(var(--secondary)) var(--tw-gradient-from-position); --tw-gradient-to: hsl(var(--secondary) / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }

.aspect-\[16\/10\] { aspect-ratio: 16 / 10; }
.leading-\[1\.05\] { line-height: 1.05; }
.leading-\[1\.1\] { line-height: 1.1; }
.tracking-\[0\.2em\] { letter-spacing: 0.2em; }
.min-h-\[440px\] { min-height: 440px; }
.h-\[54vh\] { height: 54vh; }
.w-3\.5 { width: 0.875rem; }
.h-3\.5 { height: 0.875rem; }
.gap-2\.5 { gap: 0.625rem; }
.rounded-r-3xl { border-top-right-radius: 1.5rem; border-bottom-right-radius: 1.5rem; }
.border-l-4 { border-left-width: 4px; }
.backdrop-blur { backdrop-filter: blur(8px); }
.line-clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.press-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  transition: opacity 0.15s ease, background-color 0.15s ease, gap 0.15s ease;
}

/* Darker navy accents — default primary reads too light on press cards */
.press-accent,
.press-read-link {
  color: hsl(221 52% 20%);
}

a.group:hover .press-accent,
a.group:hover h2,
a.group:hover h3 {
  color: hsl(221 52% 16%);
}

.press-read-link svg {
  stroke: currentColor;
}

.press-pub-badge {
  background-color: rgb(255 255 255 / 0.95);
  backdrop-filter: blur(8px);
  color: hsl(221 52% 18%);
}

.press-hero-pub {
  color: #fbbf24; /* amber-400 — stronger over hero photos than amber-300 */
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.45);
}

.press-btn--primary {
  background-color: hsl(221 52% 22%);
  color: #fff;
  border: 1px solid transparent;
}

.press-btn--primary:hover {
  background-color: hsl(221 52% 18%);
  opacity: 1;
  color: #fff;
}

.press-btn--outline {
  background-color: transparent;
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
}

.press-btn--outline:hover {
  background-color: hsl(var(--muted));
}

.press-btn--full {
  width: 100%;
}

@media (min-width: 768px) {
  .md\:aspect-auto { aspect-ratio: auto; }
  .md\:min-h-\[20rem\] { min-height: 20rem; }
}

@media (min-width: 1024px) {
  .lg\:p-10 { padding: 2.5rem; }
  .lg\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
  .lg\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .lg\:text-5xl { font-size: 3rem; line-height: 1; }
  .lg\:text-6xl { font-size: 3.75rem; line-height: 1; }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
  .lg\:col-span-3 { grid-column: span 3 / span 3; }
  .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .lg\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
  .lg\:sticky { position: sticky; }
  .lg\:top-24 { top: 6rem; }
}
