/* 3.1.4 — recipe versions as tabs + white Nutrition Facts. Loaded on single recipes, after the theme styles. */

/* Version tabs: own strip under the green header (same gradient across both) */
html body.hg-recipe .recipe-card .rc-top { background: linear-gradient(110deg, #267301 0%, #40a717 100%); }
html body.hg-recipe .recipe-card .rc-top .rc-head { background: transparent !important; padding-bottom: 20px; }
html body.hg-recipe .rc-tabs { display: flex; align-items: flex-end; gap: 4px; padding: 0 36px; overflow-x: auto; scrollbar-width: none; }
html body.hg-recipe .rc-tabs::-webkit-scrollbar { display: none; }
html body.hg-recipe .rc-tabs-label { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff; opacity: .9; margin: 0 10px 13px 0; white-space: nowrap; }
html body.hg-recipe .rc-tab { flex: none; background: rgba(255,255,255,.16); color: #fff; border: 0; border-radius: 0; padding: 11px 22px; font-family: inherit; font-size: 15px; font-weight: 700; line-height: 1.2; cursor: pointer; }
html body.hg-recipe .rc-tab:hover { background: rgba(255,255,255,.26); }
html body.hg-recipe .rc-tab[aria-selected="true"] { background: #fff; color: #1f5c02; }
html body.hg-recipe .rc-tab:focus-visible { outline: 3px solid #ffd27a; outline-offset: -3px; }
html body.hg-recipe .rc-v[hidden], html body.hg-recipe .rc-v-meta[hidden] { display: none !important; }

/* Nutrition Facts: white, orange-dash heading like the other card headings */
html body.hg-recipe .recipe-card .nf { background: #fff !important; border: 0 !important; margin-top: 12px; }
html body.hg-recipe .recipe-card .nf-head { background: #fff !important; border-bottom: 0 !important; padding: 26px 0 14px !important; }
html body.hg-recipe .recipe-card .nf-head h3 { display: flex !important; align-items: center; gap: 10px; font-size: 20px !important; }
html body.hg-recipe .recipe-card .nf-head h3::before { display: block !important; content: ""; width: 22px; height: 3px; background: var(--orange); }
html body.hg-recipe .recipe-card .nf-grid,
html body.hg-recipe .recipe-card .nf-chart,
html body.hg-recipe .recipe-card .nf-list { background: #fff !important; }
html body.hg-recipe .recipe-card .nf-chart { border-right: 0 !important; padding: 10px 26px 10px 0 !important; }
html body.hg-recipe .recipe-card .nf-list { padding: 0 !important; }

@media (max-width: 760px) {
  html body.hg-recipe .rc-tabs-label { display: none; }
  html body.hg-recipe .rc-tabs { padding: 0 16px; }
  html body.hg-recipe .rc-tab { padding: 10px 16px; font-size: 14px; }
  html body.hg-recipe .recipe-card .nf-chart { padding: 10px 0 !important; }
}

/* Print from the page itself: only the open version */
@media print {
  html body.hg-recipe .rc-tabs { display: none; }
}
