/* ==========================================================================
   OpenPress — Hero + Category Pills
   ========================================================================== */

.hero {
  padding: calc(var(--nav-height) + 56px) 0 32px;
}

.hero__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.hero__date {
  font-size: var(--fs-caption);
  color: var(--color-text-tertiary);
  font-weight: 500;
}

/* Featured story grid: one big + two stacked */
.hero__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
}

.hero__main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: flex-end;
}

.hero__main-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-apple);
}

.hero__main:hover .hero__main-img {
  transform: scale(1.035);
}

.hero__main::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.25) 45%, transparent 75%);
  z-index: 1;
}

.hero__main-content {
  position: relative;
  z-index: 2;
  padding: clamp(24px, 4vw, 48px);
  color: #fff;
}

.hero__main-content .type-eyebrow { color: rgba(255,255,255,0.75); }

.hero__main-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  margin: 10px 0 12px;
  max-width: 26ch;
}

.hero__main-excerpt {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  max-width: 48ch;
  line-height: var(--lh-relaxed);
}

.hero__side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero__side-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface);
  flex: 1;
  display: flex;
  align-items: flex-end;
  min-height: 168px;
}

.hero__side-card img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero__side-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent 70%);
  z-index: 1;
}

.hero__side-content {
  position: relative;
  z-index: 2;
  padding: 18px 20px;
  color: #fff;
}

.hero__side-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: var(--lh-snug);
  margin-top: 6px;
  max-width: 28ch;
}

.hero__side-content .type-eyebrow { color: rgba(255,255,255,0.75); font-size: 0.72rem; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__side { flex-direction: row; }
  .hero__side-card { min-height: 140px; }
}

@media (max-width: 560px) {
  .hero__side { flex-direction: column; }
}

/* ---- Category pill bar ---- */
.pillbar {
  position: sticky;
  top: var(--nav-height);
  z-index: 90;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-divider);
  padding: 14px 0;
}

.pillbar__scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
}
.pillbar__scroll::-webkit-scrollbar { display: none; }

.pill {
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  transition: background var(--dur-fast) var(--ease-apple), color var(--dur-fast) var(--ease-apple);
  white-space: nowrap;
}

.pill:hover {
  background: var(--color-surface-hover);
}

.pill.is-active {
  background: var(--color-text-primary);
  color: var(--color-bg);
}
