:root {
  --mr-accent: #e4572e;
  --mr-accent-dark: #b9411d;
  --mr-ink: #2b2118;
  --mr-cream: #fff8f0;
}

html { font-size: 14px; position: relative; min-height: 100%; }
@media (min-width: 768px) { html { font-size: 16px; } }

body { margin-bottom: 60px; background: var(--mr-cream); color: var(--mr-ink); }
.footer { position: absolute; bottom: 0; width: 100%; white-space: nowrap; line-height: 60px; }

.navbar-brand { font-weight: 800; letter-spacing: -.5px; color: var(--mr-accent) !important; font-size: 1.4rem; }
.navbar-brand span { color: var(--mr-ink); }

.btn-accent { background: var(--mr-accent); border-color: var(--mr-accent); color: #fff; }
.btn-accent:hover, .btn-accent:focus { background: var(--mr-accent-dark); border-color: var(--mr-accent-dark); color: #fff; }
.btn-outline-accent { border-color: var(--mr-accent); color: var(--mr-accent); }
.btn-outline-accent:hover { background: var(--mr-accent); color: #fff; }
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 .1rem white, 0 0 0 .25rem #e4572e66;
}

.hero { padding: 4rem 1rem; text-align: center; }
.hero h1 { font-weight: 800; letter-spacing: -1px; }

/* Recipe cards */
.recipe-card { transition: transform .15s, box-shadow .15s; border: 0; box-shadow: 0 1px 4px rgba(0,0,0,.12); overflow: hidden; }
.recipe-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.recipe-thumb { height: 180px; width: 100%; object-fit: cover; background: #f0e3d3; display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.recipe-hero { max-height: 340px; width: 100%; object-fit: cover; border-radius: .5rem; }

/* Gantt chart */
.gantt-wrap { overflow-x: auto; background: #fff; border: 1px solid #e5d9cb; border-radius: .5rem; padding: .75rem; }
.gantt { min-width: 640px; }
.gantt-axis { position: relative; height: 28px; border-bottom: 2px solid #d8c8b4; }
.gantt-tick { position: absolute; transform: translateX(-50%); font-size: .75rem; color: #6b5d50; top: 4px; white-space: nowrap; }
.gantt-tick:first-child { transform: none; }
.gantt-body { position: relative; }
.gantt-gridline { position: absolute; top: 0; bottom: 0; width: 1px; background: #f0e6da; }
.gantt-laneline { position: absolute; left: 0; right: 0; height: 1px; background: #f0e6da; }
.gantt-bar {
  position: absolute; height: 46px; border-radius: 6px; color: #fff; padding: 3px .45rem;
  display: flex; flex-direction: column; justify-content: center; overflow: hidden; white-space: nowrap;
  text-shadow: 0 1px 1px rgba(0,0,0,.4); box-shadow: 0 1px 2px rgba(0,0,0,.25); min-width: 6px; line-height: 1.2;
}
.gantt-bar-title { font-size: .8rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.gantt-bar-ing { font-size: .7rem; opacity: .95; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.gantt-bar[tabindex="0"] { cursor: grab; touch-action: none; user-select: none; }
.gantt-bar.selected { outline: 3px solid var(--mr-ink); outline-offset: 1px; z-index: 2; }
.gantt-handle { position: absolute; right: 0; top: 0; bottom: 0; width: 9px; cursor: ew-resize; background: rgba(0,0,0,.2); }
.gantt-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 1rem; pointer-events: none; }
.gantt-now { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #d00; z-index: 3; pointer-events: none; display: none; }
.gantt-now::before { content: ""; position: absolute; top: -4px; left: -4px; border: 5px solid transparent; border-top-color: #d00; }
.gantt-bar.done { opacity: .45; }
.gantt-bar.active { outline: 3px solid #d00; outline-offset: 1px; z-index: 2; }
.cook-bar { background: #fff; border: 2px solid var(--mr-accent); border-radius: .75rem; padding: .75rem 1rem; }
.cook-clock { font-variant-numeric: tabular-nums; font-size: 2rem; font-weight: 800; line-height: 1; }
.vote-box { display: inline-flex; align-items: center; gap: .35rem; }
.vote-score { min-width: 2ch; text-align: center; font-weight: 700; }
.comment { border-bottom: 1px solid #eadfce; padding: .6rem 0; }
.gantt-panel { margin-top: .75rem; padding: .75rem; background: #faf3ea; border-radius: .5rem; }

.plan-card { border: 2px solid #e5d9cb; border-radius: .75rem; }
.plan-card.featured { border-color: var(--mr-accent); }
.plan-price { font-size: 2.5rem; font-weight: 800; }
