/* Ranger Hot Chocolate page. Page-specific styles; shared tokens live in
   ../assets/css/ranger-core.css. */

.hc-mug { object-position: 50% 50%; }

/* The shared hero sets display: grid, which would override [hidden]. */
.ranger-content-hero[hidden] { display: none; }

.hc-when {
  max-width: 31rem;
  margin: 1.4rem 0 0;
  font-weight: 600;
  line-height: 1.6;
}

.hc-when a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .25em;
}

.hc-hero-action { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- recipe section ---------- */
.hc-recipe-title {
  max-width: 18ch;
  font-size: clamp(2.5rem, 4.2vw, 4rem);
}

/* Prep, cook and serving as three big numbers. */
.hc-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem clamp(2rem, 5vw, 4rem);
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding: clamp(1.4rem, 3vw, 2rem) 0;
  list-style: none;
  border-block: 1px solid var(--ranger-line);
}

.hc-stats li {
  display: flex;
  align-items: baseline;
  gap: .7rem;
}

.hc-stats strong {
  font-family: var(--ranger-serif);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 400;
  line-height: 1;
  color: var(--ranger-rust-deep);
}

.hc-stats span {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.hc-recipe-grid {
  margin-top: clamp(2rem, 4vw, 3.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.hc-recipe-grid h3,
.hc-var-title {
  margin: 0 0 1.2rem;
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
}

.hc-ingredients {
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--ranger-cream);
  border-top: 3px solid var(--ranger-rust-deep);
}

.hc-ingredient-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hc-ingredient-list li {
  display: grid;
  grid-template-columns: 5.2rem minmax(0, 1fr);
  gap: .8rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--ranger-line);
  line-height: 1.45;
}

.hc-ingredient-list li:last-child { border-bottom: 0; }

.hc-qty {
  font-family: var(--ranger-serif);
  font-size: 1.35rem;
  line-height: 1.1;
  color: var(--ranger-rust-deep);
}

.hc-step-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: hc-step;
}

.hc-step-list li {
  counter-increment: hc-step;
  position: relative;
  padding: 1.1rem 0 1.1rem 3.6rem;
  border-bottom: 1px solid var(--ranger-line);
  font-size: 1.08rem;
  line-height: 1.55;
}

.hc-step-list li:first-child { padding-top: 0; }
.hc-step-list li:first-child::before { top: 0; }
.hc-step-list li:last-child { border-bottom: 0; }

.hc-step-list li::before {
  content: counter(hc-step);
  position: absolute;
  left: 0;
  top: 1.1rem;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--ranger-green);
  color: var(--ranger-paper);
  font-family: var(--ranger-serif);
  font-size: 1.3rem;
  line-height: 1;
}

.hc-var-title { margin-top: clamp(2.5rem, 5vw, 4rem); }

.hc-var-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

@media (min-width: 1180px) {
  .hc-var-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .hc-var-grid { grid-template-columns: minmax(0, 1fr); }
}

.hc-var {
  padding: 1.5rem;
  border: 1px solid var(--ranger-line);
  background: var(--ranger-paper);
}

.hc-var h4 {
  margin: 0 0 .6rem;
  font-family: var(--ranger-sans);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ranger-rust-deep);
}

.hc-var p { margin: 0; line-height: 1.6; }

.hc-var--favorite {
  background: var(--ranger-green);
  border-color: var(--ranger-green);
  color: var(--ranger-paper);
}

.hc-var--favorite h4 { color: var(--ranger-gold); }

.hc-print-action { margin: clamp(2rem, 4vw, 3rem) 0 0; }

.hc-print-title { display: none; }

@media (max-width: 860px) {
  .hc-recipe-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 480px) {
  .hc-step-list li { padding-left: 3.3rem; }
  .hc-ingredient-list li { grid-template-columns: 4.6rem minmax(0, 1fr); }
}

/* ---------- print: just the recipe, as a clean card ---------- */
@media print {
  @page { size: Letter; margin: .6in; }

  .skip-link,
  .festival-banner,
  .site-header,
  .site-footer,
  .ranger-content-hero,
  .ranger-content-callout,
  .ranger-product-purchase,
  .hc-recipe-head,
  .hc-print-action { display: none !important; }

  body { background: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .site-shell { min-height: 0; }
  .ranger-content-section { padding: 0; background: none; }

  .hc-print-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: .5rem;
    margin-bottom: .5rem;
    border-bottom: 2px solid var(--ranger-green);
  }
  .hc-print-title img { width: 1.6in; height: auto; }
  .hc-print-title p { margin: 0; font-family: var(--ranger-serif); font-size: 22pt; }

  .hc-stats { margin-top: .2in; padding: .12in 0; }
  .hc-stats strong { font-size: 26pt; }
  .hc-recipe-grid { margin-top: .22in; gap: .3in; grid-template-columns: 1fr 1.5fr; }
  .hc-recipe-grid h3, .hc-var-title { font-size: 15pt; margin-bottom: .1in; }
  .hc-ingredients { background: none; padding: .12in 0 0; }
  .hc-step-list li { font-size: 10.5pt; padding: .09in 0 .09in .4in; }
  .hc-step-list li::before { width: .26in; height: .26in; font-size: 11pt; top: .09in; }
  .hc-step-list li:first-child::before { top: 0; }
  .hc-var-title { margin-top: .26in; }
  .hc-var-grid { gap: .12in; grid-template-columns: 1fr 1fr; }
  .hc-var { padding: .12in; break-inside: avoid; font-size: 9.5pt; }
  .hc-var--favorite { background: none; border-color: var(--ranger-line); color: inherit; }
  .hc-var--favorite h4 { color: var(--ranger-rust-deep); }
}
