/* Resource hero. Split 55/45 layout hosting a type pill, title,
   sub-head, body, meta row, and two CTAs on the left; a cover widget
   on the right. Chrome comes from the shared glass-strip rule in
   base.css - we only wire layout, typography, and spacing here. */

.resource-hero {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.resource-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

/* --- Left column ------------------------------------------------- */

.resource-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.125rem;
  min-width: 0;
}

.resource-hero__type {
  /* No pulse dot on resource type - it's a taxonomy tag, not a live
     status beacon. Keeps the pill tight against the title above. */
  padding: 0.375rem 0.75rem;
}

.resource-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: var(--font-weight-display);
  letter-spacing: -0.03em;
  line-height: 1.04;
  color: var(--color-foreground);
  text-wrap: balance;
}

.resource-hero__title-accent {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

.resource-hero__sub {
  margin: 0;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  color: var(--color-foreground);
  line-height: var(--lh-snug);
  max-width: 46ch;
}

.resource-hero__body {
  margin: 0;
  font-size: var(--fs-base);
  color: var(--color-muted-foreground);
  line-height: var(--lh-normal);
  max-width: 54ch;
}

/* Inline meta row. Plain dotted separators between items. */
.resource-hero__meta {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: var(--fs-xs);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
}
.resource-hero__meta li { display: inline-flex; align-items: center; gap: 0.625rem; }
.resource-hero__meta li + li::before {
  content: "";
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 999px;
  background: color-mix(in oklch, var(--color-muted-foreground) 70%, transparent);
  margin-right: 0.625rem;
}

.resource-hero__actions {
  margin-top: 0.5rem;
}

/* --- Right column ------------------------------------------------ */

.resource-hero__cover {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

/* --- Responsive -------------------------------------------------- */

@media (max-width: 960px) {
  .resource-hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .resource-hero__cover {
    order: -1;
    max-width: 18rem;
    margin-inline: auto;
  }
}

@media (max-width: 480px) {
  .resource-hero__actions.btn-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .resource-hero__actions .btn { width: 100%; }
}
