/* Single product-category page. Structurally parallel to
   partner-single.css's hero/body split, but the hero has no blur — these
   are real product photos meant to be seen clearly, not an abstracted
   flag color field. */

/* Hero band ------------------------------------------------------------- */

.product-hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-7) var(--space-6);
  background: var(--color-slate-900);   /* fallback when there's no featured image */
  color: var(--color-paper);
}

.product-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.product-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(38, 50, 67, 0.45) 0%, rgba(38, 50, 67, 0.85) 100%);
}

.product-hero__inner {
  position: relative;
  z-index: 1;
}

.product-hero .eyebrow {
  color: var(--color-paper);
}

.product-hero__title {
  font-size: var(--fs-hero);
  color: var(--color-paper);
  margin-block: var(--space-2) var(--space-3);
}

.product-hero__subtitle {
  font-size: var(--fs-lead);
  color: var(--color-slate-100);
  max-width: 680px;
}

/* Body -------------------------------------------------------------------- */

.product-single__body {
  padding-block: var(--space-6);
}

.product-single__content {
  /* max-width: 760px; */
  color: var(--color-slate-700);
}

.product-single__content > * + * {
  margin-top: var(--space-2);
}

.product-single__content h2,
.product-single__content h3 {
  color: var(--color-slate-900);
  margin-top: var(--space-4);
}

.product-single__content h2 {
  font-size: var(--fs-h3);
}

.product-single__content h3 {
  font-size: 1.125rem;
}

.product-single__content ul,
.product-single__content ol {
  list-style: revert;
  padding-left: 1.25rem;
}

.product-single__content a {
  color: var(--color-red-600);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.product-single__content img {
  max-width: 100%;
  border-radius: var(--radius-md);
  margin-block: var(--space-3);
}

/* Sub-topic grid ---------------------------------------------------------- */

.product-single__subtopics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.subtopic-card {
  position: relative;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-paper-muted);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.subtopic-card__link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.subtopic-card--linked:hover {
  border-color: var(--color-slate-600);
  box-shadow: var(--shadow-sm);
}

.subtopic-card__media {
  height: 160px;
  overflow: hidden;
  background: var(--color-slate-50);
}

.subtopic-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.subtopic-card__media svg {
  width: 100%;
  height: 100%;
  padding: var(--space-4);
  color: var(--color-slate-300);
}

.subtopic-card__body {
  padding: var(--space-3);
}

.subtopic-card__name {
  font-size: 1.125rem;
  color: var(--color-slate-900);
  margin-bottom: var(--space-1);
}

@media (max-width: 640px) {
  .product-hero {
    padding-block: var(--space-5) var(--space-4);
  }
}
