/* Panda's Kitchen — shared styles */
:root {
  --ink: #1f2421;
  --muted: #6b7570;
  --accent: #2e7d52;
  --accent-soft: #e7f3ec;
  --line: #e3e8e4;
  --bg: #fafbfa;
  --card: #ffffff;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.5;
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px 64px;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
}
.site-header img.logo { width: 48px; height: 48px; }
.site-header .site-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.site-header .site-name a { color: var(--ink); text-decoration: none; }
.site-header .tagline { font-size: 13px; color: var(--muted); margin-top: -2px; }

/* Recipe hero */
.hero {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
}
.hero img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }

h1.recipe-title { font-size: 28px; line-height: 1.2; margin: 16px 0 4px; }
.recipe-meta { color: var(--muted); font-size: 15px; margin-bottom: 12px; }

h2 { font-size: 20px; margin: 28px 0 10px; }

p.intro { color: var(--muted); font-size: 15px; margin: 4px 0 0; }

/* Serves selector */
.serves {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.serves .label { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.serves-buttons { display: flex; gap: 6px; flex-wrap: wrap; }
.serves-buttons button {
  flex: 1 1 0;
  min-width: 44px;
  min-height: 44px;
  font-size: 17px;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
}
.serves-buttons button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.serves-other {
  margin-top: 8px;
  display: none;
  align-items: center;
  gap: 8px;
}
.serves-other.show { display: flex; }
.serves-other input {
  width: 90px;
  min-height: 44px;
  font-size: 17px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

/* Ingredients checklist */
ul.checklist { list-style: none; margin: 0; padding: 0; }
ul.checklist li { border-bottom: 1px solid var(--line); }
ul.checklist label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 4px;
  cursor: pointer;
}
ul.checklist input[type="checkbox"] {
  width: 24px; height: 24px;
  margin-top: 2px;
  accent-color: var(--accent);
  flex: none;
}
ul.checklist .amt { font-weight: 700; white-space: nowrap; }
ul.checklist .hint { color: var(--muted); font-weight: 400; }
ul.checklist input:checked ~ span { text-decoration: line-through; color: var(--muted); }
.group-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent);
  font-weight: 700;
  padding: 16px 4px 4px;
}

/* Steps */
ol.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
ol.steps > li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px 14px 56px;
  margin-bottom: 12px;
  position: relative;
}
ol.steps > li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 14px; top: 14px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
ol.steps .step-title { font-weight: 700; }
ol.steps .equip {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 7px;
  margin-left: 6px;
  vertical-align: middle;
}
ol.steps ul { margin: 8px 0 0; padding-left: 18px; }
ol.steps ul li { margin-bottom: 4px; }
.note { color: var(--muted); font-size: 15px; }
span[data-amt] { font-weight: 700; }

/* Gold star — a recipe that has actually been cooked and eaten */
.star { color: #d9a018; font-size: 17px; line-height: 1; }
.tested {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #8a6410;
  background: #fdf3dc;
  border: 1px solid #f0dcae;
  border-radius: 999px;
  padding: 4px 12px 4px 10px;
  margin-bottom: 10px;
}
.tested .star { font-size: 15px; }

/* Nutrition panel */
.nutrition {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.nut-energy {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.nut-energy strong { font-size: 26px; color: var(--accent); }
.nut-energy-note { flex-basis: 100%; font-size: 13px; color: var(--muted); }

table.nut-table { width: 100%; border-collapse: collapse; }
table.nut-table th {
  text-align: left;
  font-weight: 600;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
table.nut-table td {
  text-align: right;
  padding: 9px 0 9px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.nut-table tr.sub th { font-weight: 400; color: var(--muted); padding-left: 8px; }
table.nut-table tr.sub td { color: var(--muted); }
table.nut-table tr.warn th, table.nut-table tr.warn td { color: #a2521f; }
table.nut-table tr:last-child th, table.nut-table tr:last-child td { border-bottom: 0; }

.nut-sub {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--accent);
  font-weight: 700;
  margin: 20px 0 2px;
}
table.nut-table.micros th { font-weight: 400; }
table.nut-table.micros td { padding-left: 8px; }
table.nut-table.micros td.pct { font-weight: 700; width: 46px; }
.bar {
  display: inline-block;
  width: 74px;
  height: 8px;
  border-radius: 4px;
  background: var(--line);
  overflow: hidden;
  vertical-align: middle;
}
.bar > span { display: block; height: 100%; background: var(--accent); border-radius: 4px; }

.nut-more { margin-top: 6px; }
.nut-more summary {
  cursor: pointer;
  padding: 10px 0;
  font-weight: 600;
  color: var(--accent);
}
.nut-note { font-size: 13px; color: var(--muted); margin-top: 12px; line-height: 1.45; }
.nut-note strong { color: var(--ink); }

/* Index recipe list */
ul.recipe-list { list-style: none; margin: 16px 0 0; padding: 0; }
ul.recipe-list li { margin-bottom: 12px; }
ul.recipe-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  text-decoration: none;
  color: var(--ink);
}
ul.recipe-list img {
  width: 96px; height: 64px;
  object-fit: cover;
  border-radius: 8px;
  flex: none;
}
ul.recipe-list .r-name { font-weight: 700; font-size: 18px; }
ul.recipe-list .r-desc { color: var(--muted); font-size: 14px; }
ul.recipe-list li.list-divider {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
  font-weight: 700;
  padding: 14px 4px 6px;
  border-top: 1px solid var(--line);
  margin-top: 10px;
}

footer { margin-top: 40px; text-align: center; color: var(--muted); font-size: 13px; }

@media (min-width: 700px) {
  h1.recipe-title { font-size: 34px; }
}

/* hosted at kitchen.pnda.lol */
