/* Kitchen Tool Hub — printable recipe card. Loaded only on posts with recipe data.
   Markup contract: rendered by kth_tools_render_recipe_card() in
   kitchen-toolhub-tools.php from the `kth_recipe` post meta. */

.kth-recipe-card {
  --kth-green: #2f7d33;
  --kth-green-dark: #1f5c23;
  --kth-cream: #fdf9f2;
  --kth-orange: #d9732b;
  --kth-ink: #2b2620;
  --kth-muted: #6b6259;
  --kth-border: #e4d9c6;
  background: var(--kth-cream);
  border: 1px solid var(--kth-border);
  border-radius: 12px;
  color: var(--kth-ink);
  margin: 2rem 0;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.kth-recipe-card .kth-rc-title {
  font-size: 1.6rem;
  margin: 0 0 0.4rem;
}

.kth-recipe-card .kth-rc-desc {
  color: var(--kth-muted);
  margin: 0 0 1rem;
}

.kth-recipe-card .kth-rc-meta {
  border-bottom: 1px solid var(--kth-border);
  border-top: 1px solid var(--kth-border);
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  padding: 0.9rem 0;
}

.kth-recipe-card .kth-rc-meta-item {
  display: flex;
  flex-direction: column;
}

.kth-recipe-card .kth-rc-meta-label {
  color: var(--kth-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.kth-recipe-card .kth-rc-meta-value {
  font-size: 1.05rem;
  font-weight: 600;
}

.kth-recipe-card .kth-rc-h {
  color: var(--kth-green-dark);
  font-size: 1.2rem;
  margin: 1.25rem 0 0.6rem;
}

.kth-recipe-card .kth-rc-ingredients {
  list-style: disc;
  margin: 0 0 0.5rem;
  padding-left: 1.4rem;
}

.kth-recipe-card .kth-rc-ingredients li {
  margin-bottom: 0.35rem;
}

.kth-recipe-card .kth-rc-steps {
  margin: 0 0 0.5rem;
  padding-left: 1.4rem;
}

.kth-recipe-card .kth-rc-steps li {
  margin-bottom: 0.7rem;
}

.kth-recipe-card .kth-rc-notes {
  background: #fff;
  border-left: 4px solid var(--kth-orange);
  border-radius: 0 8px 8px 0;
  padding: 0.75rem 1rem;
}

.kth-recipe-card .kth-rc-actions {
  margin-top: 1.25rem;
}

.kth-recipe-card .kth-rc-print {
  background: var(--kth-green);
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.7rem 1.4rem;
}

.kth-recipe-card .kth-rc-print:hover {
  background: var(--kth-green-dark);
}

.kth-recipe-card .kth-rc-print:focus-visible {
  outline: 3px solid var(--kth-orange);
  outline-offset: 2px;
}

@media print {
  body.kth-printing-recipe .site-header,
  body.kth-printing-recipe .site-footer,
  body.kth-printing-recipe .comments-area,
  body.kth-printing-recipe .post-navigation,
  body.kth-printing-recipe .entry-meta,
  body.kth-printing-recipe #recipe-scaler {
    display: none !important;
  }
  body.kth-printing-recipe .entry-content > *:not(.kth-recipe-card) {
    display: none !important;
  }
  body.kth-printing-recipe .kth-recipe-card {
    border: none;
    margin: 0;
    padding: 0;
  }
  body.kth-printing-recipe .kth-rc-actions {
    display: none !important;
  }
}
