/* ----------------------------------------------------------------------------
 * LiverCare AI — recipe-page styles
 * Warm-companion palette to match the rest of the site and the app.
 *
 * Used by lunches.html and dinners.html. The matching JS (lunches.js,
 * recipes.js) renders cards using these class names — keep them stable.
 * -------------------------------------------------------------------------- */

:root {
  --bg:        #FAF6EE;   /* page cream */
  --card:      #FBF8F0;   /* card surface, slightly warmer */
  --soft:      #F2EEDF;   /* secondary surface for chips, sections */
  --text:      #2c2a23;   /* primary copy */
  --muted:     #5c594d;   /* secondary copy */
  --tertiary:  #7a7669;   /* labels, hints */
  --brand:     #5C8A5A;   /* mossy green primary */
  --accent:    #D89A3A;   /* terracotta amber */
  --line:      #ECE5D2;   /* warm hairline border */
  --line-soft: rgba(60, 50, 35, 0.06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

/* ---------- Header ---------- */

.header {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 500;
  margin: 0;
  color: var(--text);
}

.sub {
  color: var(--muted);
  margin: 6px 0 0 0;
  font-size: 14px;
}

.controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.input,
select {
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 12px;
  outline: none;
  font: inherit;
}

.input:focus,
select:focus {
  border-color: var(--brand);
}

/* ---------- Buttons ---------- */

.btn {
  cursor: pointer;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 9px 14px;
  border-radius: 12px;
  font: inherit;
  font-weight: 500;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover {
  background: var(--soft);
  border-color: var(--brand);
}

/* ---------- Grid / cards ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.card {
  grid-column: span 12;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}
@media (min-width: 900px) {
  .card { grid-column: span 6; }
}

.kicker {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.badge {
  font-size: 12px;
  color: var(--brand);
  background: rgba(92, 138, 90, 0.10);
  border: 1px solid rgba(92, 138, 90, 0.18);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 500;
}

.title {
  font-family: 'Fraunces', Georgia, serif;
  margin: 0;
  font-size: 19px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.25;
}

.btnrow {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.section {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.h3 {
  font-family: 'Open Sans', sans-serif;
  margin: 0 0 8px 0;
  font-size: 12px;
  color: var(--tertiary);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  font-weight: 500;
}

ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}
li {
  margin: 6px 0;
  line-height: 1.5;
}

/* ---------- Notice / footer / counts ---------- */

.notice {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  color: var(--muted);
  margin-top: 14px;
  line-height: 1.55;
}
.notice strong {
  color: var(--text);
  font-weight: 500;
}

.footer {
  color: var(--tertiary);
  font-size: 12px;
  margin-top: 18px;
  line-height: 1.55;
}
