/* AGPL-3.0. Adapted Mealie meal-day panels, recipe cards, section headings and checked-step states. */
:root {
  font:
    15px/1.5 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #282522;
  background: white;
  --primary: #a94f00;
  --accent: #fff3e6;
  --border: #dedad5;
  --muted: #68615a;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
main {
  max-width: 1160px;
  margin: auto;
  padding: 24px;
  min-width: 0;
}
header {
  margin: 0 0 24px;
  max-width: 750px;
}
h1 {
  font-size: clamp(1.8rem, 4vw, 2.65rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 650;
}
h2 {
  font-size: 1.45rem;
  line-height: 1.3;
}
h3 {
  font-size: 1.1rem;
  line-height: 1.4;
  margin: 0 0 12px;
}
p,
h1,
h2,
h3,
li {
  overflow-wrap: anywhere;
}
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.13em;
  font-weight: 700;
  color: var(--primary);
}
a {
  color: var(--primary);
}
button,
.file-button {
  font: inherit;
  min-height: 42px;
  max-width: 100%;
  border: 1px solid #b8a28b;
  border-radius: 6px;
  padding: 8px 13px;
  cursor: pointer;
  background: white;
  color: #743b0b;
  overflow-wrap: anywhere;
}
button:hover {
  background: var(--accent);
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
.primary,
nav button[aria-current="page"] {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.primary:hover {
  background: #853e00;
}
:focus-visible {
  outline: 3px solid #c66a14;
  outline-offset: 3px;
}
nav,
.toolbar,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.toolbar {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
label {
  display: grid;
  gap: 6px;
  min-width: 0;
  font-size: 0.9rem;
  font-weight: 600;
}
input,
textarea,
select {
  font: inherit;
  max-width: 100%;
  min-width: 0;
  width: 100%;
  min-height: 42px;
  border: 1px solid #b8b1aa;
  border-radius: 5px;
  padding: 9px;
  background: white;
  color: inherit;
}
textarea {
  min-height: 90px;
  resize: vertical;
}
input[type="checkbox"] {
  width: 20px;
  min-height: 20px;
  flex: 0 0 20px;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
  margin: 10px 0;
}
.file-button {
  position: relative;
  overflow: hidden;
}
.file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0;
}
.fields.small {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.panel,
.recipe-card,
.day,
.step-card,
fieldset {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px;
  background: white;
  margin: 18px 0;
  min-width: 0;
}
.recipe-card,
.step-card {
  box-shadow: 0 2px 4px #34200c12;
}
.cards,
.days {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.cards > .recipe-card,
.days > .day {
  margin: 0;
}
.day h3 {
  border-left: 5px solid #ed851b;
  box-shadow: 0 1px 3px #0002;
  padding: 12px;
  margin: -4px -4px 16px;
}
.day .recipe-card {
  border-left: 3px solid #d6bfa8;
  padding: 14px;
}
.meal-slot {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.summary {
  background: var(--accent);
  padding: 14px 18px;
  border-radius: 6px;
  margin: 16px 0;
}
.meta {
  font-size: 0.86rem;
  color: var(--muted);
}
.notice {
  border-left: 4px solid #4b8062;
  padding: 10px 14px;
  background: #f0f7f2;
  overflow-wrap: anywhere;
}
.notice.error {
  border-color: #b64b25;
  background: #fff3ed;
}
.ingredient-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.ingredient-row .fields {
  grid-template-columns: 110px 160px minmax(0, 1fr);
  align-items: end;
}
.ingredient-row .fields.extra {
  grid-template-columns: 1fr 1fr;
}
.section-heading {
  background: var(--primary);
  color: white;
  padding: 12px;
  border-radius: 6px;
}
.step-card.disabled-card {
  background: #f7f5f2;
  color: var(--muted);
}
.step-card.disabled-card .instruction {
  text-decoration: line-through;
}
.cooking {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(0, 2fr);
  gap: 24px;
}
.instruction {
  white-space: pre-wrap;
  font-size: 1.15rem;
}
.timer {
  font-size: 2rem;
  font-variant-numeric: tabular-nums;
}
.scroll {
  overflow: auto;
  max-width: 100%;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 540px;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 12px;
  border-bottom: 1px solid var(--border);
  overflow-wrap: anywhere;
}
th {
  font-size: 0.83rem;
  background: #faf8f5;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font:
    13px/1.5 ui-monospace,
    monospace;
}
footer {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted);
}
details {
  margin: 12px 0;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
fieldset legend {
  font-weight: 650;
  padding: 0 8px;
}
.inline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
}
.inline > label {
  flex: 1;
  min-width: 160px;
}
.muted {
  color: var(--muted);
}
.empty {
  padding: 36px 24px;
  background: #faf8f5;
  border-radius: 6px;
}
.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tag {
  font-size: 0.8rem;
  padding: 3px 8px;
  background: #f8eddf;
  border-radius: 4px;
}
@media (max-width: 700px) {
  main {
    padding: 16px;
  }
  .days,
  .cards,
  .fields,
  .fields.small,
  .cooking {
    grid-template-columns: 1fr;
  }
  .panel,
  .day,
  .recipe-card,
  .step-card,
  fieldset {
    padding: 15px;
  }
  .ingredient-row .fields,
  .ingredient-row .fields.extra {
    grid-template-columns: 1fr;
  }
  nav button {
    flex: 1 1 40%;
  }
  .toolbar button,
  .toolbar .file-button {
    flex: 1 1 42%;
  }
  .inline > label {
    min-width: 0;
    width: 100%;
    flex-basis: 100%;
  }
}
@media print {
  nav,
  .toolbar,
  button,
  .file-button,
  footer {
    display: none;
  }
  main {
    max-width: none;
  }
  .panel,
  .day,
  .step-card,
  .recipe-card {
    break-inside: avoid;
    box-shadow: none;
  }
}
