:root {
  --ek-cream: #fbf6ef;
  --ek-ink: #3e4a38;
  --ek-sage: #7d9474;
  --ek-sage-dark: #5c7354;
  --ek-blush: #f8e6e4;
  --ek-line: rgba(125, 148, 116, .28);
}
body {
  background: var(--ek-cream);
  color: var(--ek-ink);
  font-family: Nunito, system-ui, sans-serif;
}
h1, h2, .navbar-brand { color: var(--ek-sage-dark); font-family: Fraunces, Georgia, serif; font-weight: 560; }
.navbar {
  background: #fffdfb !important;
  border: 0 !important;
  border-bottom: 1px solid var(--ek-line) !important;
  box-shadow: 0 0.35rem 1.1rem rgba(90, 62, 40, 0.04);
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}
.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.navbar-brand .brand-mark {
  display: block;
  height: 1.9rem;
  width: auto;
}
.navbar-brand .brand-word {
  color: #6e7b55;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.45rem;
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}
.home-more {
  color: #8a4d55;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.home-more:hover { color: #6d3940; }
.navbar .btn {
  border-radius: 999px;
  background: #fffdfb;
  border-color: var(--ek-line);
  color: var(--ek-ink);
}
.navbar .btn.is-active,
.navbar .dropdown-toggle.show { background: var(--ek-blush); border-color: transparent; color: #8a4d55; }
.navbar .dropdown-toggle::after { margin-left: .45rem; vertical-align: .2em; }
.import-hint {
  background: var(--ek-cream);
  border: 1px solid var(--ek-line);
  border-radius: 1rem;
  padding: 1rem;
}
.import-example {
  background: #fffdfb;
  border-radius: .7rem;
  color: var(--ek-ink);
  font-size: .8rem;
  padding: .75rem;
  white-space: pre-wrap;
}
.navbar .dropdown-menu {
  background: #fffdfb;
  border: 1px solid var(--ek-line);
  border-radius: 1rem;
  box-shadow: 0 .35rem 1.1rem rgba(90, 62, 40, .05);
  padding: .35rem;
}
.navbar .dropdown-item {
  border: 0;
  border-radius: .7rem;
  background: transparent;
  color: var(--ek-ink);
}
.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus { background: var(--ek-blush); color: #8a4d55; }
.navbar .dropdown-item .bi { margin-right: .45rem; }
.list-preview { margin: 0; padding: 0; list-style: none; }
.list-preview li { display: flex; align-items: center; gap: .55rem; }
.list-preview li + li { margin-top: .2rem; }
.list-preview li::before {
  content: "";
  width: .72rem;
  height: .72rem;
  border: 1.5px solid #c4b2a4;
  border-radius: 50%;
  flex: none;
}
.list-card-date {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  color: var(--bs-secondary-color);
  font-size: .875rem;
}
.list-card-date .bi { margin-right: .35rem; }
.recipe-card-facts { flex: 1 1 auto; min-width: 0; }
.recipe-card-facts .recipe-facts { justify-content: space-between; }
.btn-primary {
  --bs-btn-bg: var(--ek-sage);
  --bs-btn-border-color: #6f8666;
  --bs-btn-hover-bg: #6d8464;
  --bs-btn-hover-border-color: var(--ek-sage-dark);
  --bs-btn-active-bg: var(--ek-sage-dark);
  --bs-btn-active-border-color: var(--ek-sage-dark);
  --bs-btn-disabled-bg: var(--ek-sage);
  --bs-btn-disabled-border-color: #6f8666;
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-color: #fff;
  border-radius: 999px;
}
.btn-outline-secondary, .btn-outline-danger {
  --bs-btn-color: var(--ek-ink);
  --bs-btn-border-color: var(--ek-line);
  --bs-btn-hover-bg: #f3ece4;
  --bs-btn-hover-border-color: var(--ek-line);
  --bs-btn-hover-color: var(--ek-ink);
  --bs-btn-active-bg: #efe4da;
  --bs-btn-active-border-color: var(--ek-line);
  --bs-btn-active-color: var(--ek-ink);
  border-radius: 999px;
}
.btn-outline-danger { --bs-btn-color: #8a4d55; --bs-btn-hover-color: #8a4d55; --bs-btn-active-color: #8a4d55; }
.card, .modal-content {
  background: #fffdfb;
  border: 1px solid var(--ek-line);
  border-radius: 1.25rem;
  box-shadow: 0 .35rem 1.1rem rgba(90, 62, 40, .05);
}
.card-header { background: #f4ece3; border-bottom: 1px solid var(--ek-line); }
.card-footer, .modal-header, .modal-footer { background: transparent; border-color: var(--ek-line); }
.list-card { overflow: hidden; }
.badge.text-bg-light { background: #f3ece4 !important; color: var(--ek-ink); }
body:not(.editing) .edit-only { display: none !important; }
body.editing .view-only { display: none !important; }
.btn-group.edit-actions { --ek-action-btn-radius: 999px; }
body:not(.editing) .btn-group.edit-actions:not(:has(.view-only)) > .btn[data-edit-toggle] {
  border-radius: var(--ek-action-btn-radius) !important;
}
body:not(.editing) .btn-group.edit-actions:has(.view-only) > .btn[data-edit-toggle] {
  border-top-left-radius: var(--ek-action-btn-radius) !important;
  border-bottom-left-radius: var(--ek-action-btn-radius) !important;
}
body:not(.editing) .btn-group.edit-actions > .btn.view-only:not(:has(~ .view-only)) {
  border-top-right-radius: var(--ek-action-btn-radius) !important;
  border-bottom-right-radius: var(--ek-action-btn-radius) !important;
}
body.editing .btn-group.edit-actions > .btn[data-edit-toggle] {
  border-top-left-radius: var(--ek-action-btn-radius) !important;
  border-bottom-left-radius: var(--ek-action-btn-radius) !important;
}
body.editing .btn-group.edit-actions > .btn.edit-only:last-child {
  border-top-right-radius: var(--ek-action-btn-radius) !important;
  border-bottom-right-radius: var(--ek-action-btn-radius) !important;
}
@media (max-width: 575.98px) {
  .navbar-brand .brand-word { display: none; }
  body.editing .detail-header-toolbar {
    flex-wrap: wrap;
    row-gap: .75rem;
  }
  body.editing .detail-header-toolbar > .edit-actions {
    display: flex;
    flex: 0 0 100%;
    justify-content: flex-end;
    max-width: 100%;
  }
  body.editing .edit-actions > .btn {
    --bs-btn-padding-x: .55rem;
  }
  body.editing .shopping-item .item-title-toggle {
    min-width: 0;
  }
  body.editing .shopping-item .item-name {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  body.editing .shopping-item .drag-handle {
    --bs-btn-padding-x: .2rem;
  }
  body.editing .recipe-line .recipe-line-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  body.editing .recipe-line .drag-handle {
    --bs-btn-padding-x: .2rem;
  }
}
.list-card { transition: box-shadow .15s ease; }
.list-card:hover { box-shadow: 0 .6rem 1.2rem rgba(90, 62, 40, .1) !important; }
.list-back-button { --bs-btn-padding-x: .75rem; }
.list-detail-header { background-color: #fffdfb; border-left: .35rem solid var(--ek-blush) !important; }
.shopping-item.checked { opacity: .62; }
.shopping-item.checked .item-name,
.shopping-item.checked .item-quantity { text-decoration: line-through; }
.item-title-toggle { background: transparent; border: 0; color: inherit; cursor: pointer; min-height: 2.75rem; padding: .25rem .5rem; text-align: start; }
.article-field,
.recipe-field { position: relative; }
.article-field:not(:focus-within) .article-suggestions {
  display: none !important;
}
.article-suggestions,
.recipe-suggestions {
  position: absolute;
  z-index: 30;
  inset-inline-start: 0;
  top: calc(100% + .125rem);
  width: max-content;
  max-width: 100%;
  max-height: 16rem;
  margin: 0;
  padding: .25rem 0;
  overflow: auto;
  list-style: none;
  background: #fffdfb;
  border: 1px solid var(--ek-line);
  border-radius: .375rem;
  box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .12);
}
.article-suggestion,
.recipe-suggestion {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: .375rem .75rem;
  text-align: start;
}
.article-suggestion:hover,
.article-suggestion:focus,
.article-suggestion[aria-selected="true"],
.recipe-suggestion:hover,
.recipe-suggestion[aria-selected="true"] { background: var(--ek-blush); }
.recipe-suggestions { width: 100%; overflow-wrap: anywhere; }
.recipe-suggestion { display: flex; align-items: center; gap: .75rem; }
.recipe-suggestion-picture,
.planner-recipe-picture {
  width: 6rem;
  height: 6rem;
  flex: 0 0 6rem;
  object-fit: cover;
  border-radius: .375rem;
  background-color: #f3ece4;
}
.recipe-suggestion-title { min-width: 0; }
.recipe-field [hidden] { display: none !important; }
.planner-day a { overflow-wrap: anywhere; }
.planner-recipe { display: flex; align-items: flex-start; gap: .75rem; min-width: 0; }
.planner-recipe-picture-link { flex: 0 0 6rem; }
.planner-recipe-title,
.planner-recipe-title:hover,
.planner-recipe-title:focus { color: inherit; text-decoration: none; min-width: 0; }
.hide-completed .shopping-item.checked { display: none; }
.drag-handle { cursor: grab; font-size: 1.1rem; line-height: 1; }
.checkmark { font-size: 1.3rem; }
input:not([type="radio"]):not([type="checkbox"]):not(.form-control),
select:not(.form-select),
textarea:not(.form-control) {
  display: block;
  width: 100%;
  padding: .375rem .75rem;
  border: 1px solid var(--ek-line);
  border-radius: .8rem;
  background: #fffdfb;
  color: var(--ek-ink);
}
.form-control,
.form-select {
  border-color: var(--ek-line);
  background-color: #fffdfb;
  color: var(--ek-ink);
  border-radius: .8rem;
}
.list-icon-choices { display: flex; flex-wrap: wrap; gap: .6rem; }
.list-icon-choice { position: relative; margin: 0; cursor: pointer; }
.list-icon-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.list-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  flex: none;
  font-size: 1.15rem;
}
.list-icon-choice input:focus-visible + .list-icon,
.list-icon-choice input:checked + .list-icon { outline: 2px solid var(--ek-sage-dark); outline-offset: 2px; }
.list-icon-basket { background: #e7efe3; color: #5c7354; }
.list-icon-cart { background: #e3ebe8; color: #4d635c; }
.list-icon-bag { background: #efe6dc; color: #7a6248; }
.list-icon-egg { background: #f8e6e4; color: #8a4d55; }
.list-icon-cup { background: #f3ece4; color: #8a6240; }
.list-icon-apple { background: #fbe4e6; color: #9a4450; }
.list-icon-cookie { background: #f6ead6; color: #8a6230; }
.list-icon-cake { background: #f8e4ea; color: #8d4d62; }
.list-icon-droplet { background: #e4eef3; color: #3f6480; }
.list-icon-flower { background: #e8f0e4; color: #4f6b48; }
.list-icon-fire { background: #fbe8dc; color: #a15a32; }
.list-icon-snow { background: #e8eef2; color: #4d6578; }
.list-icon-house { background: #efe8df; color: #6d5a48; }
.list-icon-gift { background: #f8e6ef; color: #8a4d6a; }
.list-icon-heart { background: #f8e0e4; color: #a14d5c; }
.list-accent {
  border-left-width: .4rem;
  border-left-color: var(--list-accent);
  box-shadow: 0 .35rem 1.1rem rgba(90, 62, 40, .05);
}
.list-accent-basket { --list-accent: #c9dcc3; }
.list-accent-cart { --list-accent: #c5d4ce; }
.list-accent-bag { --list-accent: #e6d3c4; }
.list-accent-egg { --list-accent: #f0d0cc; }
.list-accent-cup { --list-accent: #e4d2c2; }
.list-accent-apple { --list-accent: #f3c9ce; }
.list-accent-cookie { --list-accent: #edd4b4; }
.list-accent-cake { --list-accent: #f0d0da; }
.list-accent-droplet { --list-accent: #c5d8e4; }
.list-accent-flower { --list-accent: #c3d9ba; }
.list-accent-fire { --list-accent: #f6d4c2; }
.list-accent-snow { --list-accent: #d0dce4; }
.list-accent-house { --list-accent: #e2d4c6; }
.list-accent-gift { --list-accent: #f0d0e0; }
.list-accent-heart { --list-accent: #f3c9d0; }
.recipe-picture, .recipe-card-picture { display: block; width: 100%; max-height: 18rem; object-fit: cover; background-color: #f3ece4; }
.recipe-card-picture { height: 11rem; }
.recipe-picture { border-bottom-left-radius: var(--bs-border-radius); border-bottom-right-radius: var(--bs-border-radius); }
#steps { counter-reset: step; }
#steps .step-number::before { counter-increment: step; content: counter(step) "."; margin-inline-end: .35rem; }
.errorlist { color: #b02a37; list-style: none; padding: 0; font-size: .875rem; }
.alert[data-autohide] {
  overflow: hidden;
  max-height: 8rem;
  animation: ek-alert-autohide .8s ease 3s forwards;
}
@keyframes ek-alert-autohide {
  to {
    opacity: 0;
    max-height: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0;
  }
}

.recipe-card-actions {
  position: absolute;
  top: .75rem;
  right: .75rem;
  z-index: 3;
  display: flex;
  gap: .5rem;
}
.recipe-card-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  line-height: 1;
  background: #fffdfb;
  box-shadow: 0 .15rem .5rem rgba(0, 0, 0, .15);
}
.recipe-card-actions .btn:hover { background: #f3ece4; }

.recipe-card-actions .bi { display: flex; line-height: 1; }
.recipe-card-actions .bi::before { display: block; vertical-align: 0; }

.recipe-editor-footer, .list-editor-footer, .article-editor-footer, .department-editor-footer { position: sticky; bottom: 1rem; z-index: 4; background: #fffdfb; }
.editor-line[hidden] { display: none !important; }
.editor-line .editor-drag { cursor: grab; }
.editor-line textarea { resize: vertical; }
