/* Digest minimal style */
:root{
  --digest-black:#111;
  --digest-gray:#6c757d;
}

body{
  font-family: 'Roboto', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  font-feature-settings:"ss01" on;
}
.navbar-brand{letter-spacing:0.04em;}
.navbar-brand .nav-logo{display:inline-block;}
/* Increase spacing between centered menu items */
.navbar .navbar-nav{gap:0.75rem;}
@media (min-width: 768px){
  .navbar .navbar-nav{gap:1.1rem;}
}
@media (min-width: 992px){
  .navbar .navbar-nav{gap:1.4rem;}
}
/* Tone down the logo in dark mode for balance */
.placeholder{border:1px dashed rgba(0,0,0,.1);} 
.object-fit-cover{object-fit:cover;}

.recipe-detail p{font-size:1.05rem; line-height:1.7;}

/* Dark theme overrides */
body[data-theme='dark']{background-color:#121212; color:#e6e6e6;}
/* Ensure muted text is readable in dark mode */
body[data-theme='dark'] .text-muted,
body[data-theme='dark'] .text-body-secondary{
  color: rgba(230,230,230,0.72) !important;
}
body[data-theme='dark'] .text-dark {
  color: rgb(255,255,255) !important;
}
body[data-theme='dark'] .border-bottom{border-bottom-color:rgba(255,255,255,.15) !important;}
body[data-theme='dark'] .list-group-item{background-color:#1e1e1e; color:#e6e6e6; border-color:rgba(255,255,255,.15);}
body[data-theme='dark'] .card{background-color:#1e1e1e; color:#e6e6e6; border-color:rgba(255,255,255,.15);} 
body[data-theme='dark'] .navbar.navbar-dark{border-bottom-color:rgba(255,255,255,.15) !important;}
body[data-theme='dark'] .placeholder{border-color:rgba(255,255,255,.2);} 

/* Use Bootstrap link color variables for dark mode links, but keep brand text as navbar brand color */
/* Do not override anchor buttons with link color */
body[data-theme='dark'] a:not(.navbar-brand):not(.btn){color: var(--bs-link-color);} 
body[data-theme='dark'] a:not(.navbar-brand):not(.btn):hover{color: var(--bs-link-hover-color);} 
body[data-theme='dark'] .navbar .navbar-brand,
body[data-theme='dark'] .navbar .navbar-brand:hover{
  color: var(--bs-navbar-brand-color, rgba(255,255,255,.9)) !important;
}

/* Clear, high-contrast dark button */
body[data-theme='dark'] .btn-dark{
  color:#fff !important;
  background-color:#2b2b2b;
  border-color:#3a3a3a;
  box-shadow: 0 1px 2px rgba(0,0,0,.6);
}
body[data-theme='dark'] .btn-dark:hover,
body[data-theme='dark'] .btn-dark:focus{
  color:#fff !important;
  background-color:#3a3a3a;
  border-color:#4a4a4a;
}
body[data-theme='dark'] .btn-dark:active,
body[data-theme='dark'] .btn-dark.active,
body[data-theme='dark'] .show>.btn-dark.dropdown-toggle{
  color:#fff !important;
  background-color:#484848;
  border-color:#5a5a5a;
}
body[data-theme='dark'] .btn-dark:focus{
  outline:0;
  box-shadow: 0 0 0 .2rem rgba(255,255,255,.15);
}

/* Improve ingredient row clarity */
.recipe-detail ul.list-unstyled.small li{gap:.75rem;}
