html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .recipe-top-layout {
      flex-direction: column;
  }

  .recipe-image img {
      width: 100%;
      max-width: 400px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin: 0;
  padding: 0;
  margin-bottom: 60px;
}

h1 {
  font-size: 1.9rem;
}

h2 {
  font-size: 1.5rem;
}

.navbar-layout {
    position: relative;
    min-height: 80px;
}

.navbar-row {
    min-height: 80px;
    position: relative;
}

.navbar-left {
    z-index: 3;
}

.navbar-center {
    z-index: 1;
    pointer-events: auto;
}

.navbar-right {
    z-index: 3;
    white-space: nowrap;
}

.banner-image {
    width: 343px;
    height: 80px;
    display: block;
}

.banner-image-mobile {
    width: 343px;
    height: 80px;
    max-width: 100%;
    display: block;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Recipe list row formatting */
.recipe-row {
  background-color: var(--bs-light);
  transition: background-color .15s ease;
  border: 1px solid var(--bs-border-color);
}

.recipe-row:hover {
  background-color: var(--bs-secondary-bg);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.recipe-top-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.recipe-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 12px;
}

.recipe-ingredients {
    flex: 1;
    min-width: 0;
}

.recipe-image {
    flex-shrink: 0;
}

.recipe-image img {
    width: 350px;
    height: auto;
    border-radius: 12px;
    display: block;
}

.recipe-instructions {
    width: 100%;
}

.ingredient-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ingredient-list li {
    background: #fffaf5;
    border: 1px solid #f1e5d8;
    margin-bottom: 5px;
    padding: 12px 16px;
    border-radius: 10px;
    border-left: 4px solid #d97706;

    font-size: 1rem;
    line-height: 1.4;

    transition: background-color 0.15s ease;
}

.ingredient-list li:hover {
    background: #eef2f5;
}

.instruction-list {
    padding-left: 0;
    margin: 0;
    list-style: none;
    counter-reset: step;
}

.instruction-list li {
    position: relative;
    background: #fffaf5;
    border: 1px solid #f1e5d8;
    border-radius: 12px;

    padding: 14px 14px 14px 48px;
    margin-bottom: 12px;

    line-height: 1.5;
}

/* number bubble */
.instruction-list li::before {
    counter-increment: step;
    content: counter(step);

    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);

    width: 26px;
    height: 26px;
    border-radius: 50%;

    background: #d97706;
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: bold;
    font-size: 0.85rem;
}

.recipe-notes {
    position: relative;
    background: #fffaf5;
    border: 1px solid #f1e5d8;
    border-radius: 12px;

    padding: 14px 14px 14px 14px;
    margin-bottom: 12px;

    line-height: 1.5;
}

a.footer-link{
  text-decoration: none;
}

a.footer-link:hover{
  text-decoration: underline; 
}