/*****************************************************/
/* CSS RESET */
/*****************************************************/

*:where(:not(html, iframe, canvas, img, svg, video, audio):not(svg *, symbol *)) {
    all: unset;
    display: revert;
}

/* Preferred box-sizing value */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Fix mobile Safari increase font-size on landscape mode */
html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
}

/* Reapply the pointer cursor for anchor tags */
a, button {
    cursor: revert;
}

/* Remove list styles (bullets/numbers) */
ol, ul, menu, summary {
    list-style: none;
}

/* For images to not be able to exceed their container */
img {
    max-inline-size: 100%;
    max-block-size: 100%;
}

[hidden] {
    display: none !important;
}

/* Restore focus outline for keyboard navigation accessibility */
:focus-visible {
    outline: revert;
}

/*****************************************************/
/* GENERAL TYPOGRAPHY */
/*****************************************************/

:root {
  --serif: Alegreya, Alegreya-fallback, serif;
  --sans-serif: "Alegreya Sans", "Alegreya Sans-fallback", sans-serif;
  font-family: var(--serif);
  font-size: clamp(22px, calc(0.41vw + 20.54px), 24px);
  font-feature-settings: 'liga', 'clig';
}


body {
  --xxx-large: 2rem;
  --xx-large: 1.682rem;
  --x-large: 1.414rem;
  --large: 1.189rem;
  --medium: 1rem;
  --small: 0.841rem;
  --x-small: 0.707rem;
}

body * {
  /* Slightly decrease relative line-height with font-size */
  --line-height: calc(1.2em + 5px);
  line-height: var(--line-height);
  text-wrap: pretty; /* reduce rag. Unsupported in Webkit below v26 */
}

h1,
h2,
h3 {
  text-wrap: pretty; /* fallback for all browsers */
}

p,
blockquote,
li,
dd,
td,
figcaption,
legend,
label {
  hyphens: auto;
  hyphenate-limit-chars: 8 3 3;
  /* iOS: */
  -webkit-hyphenate-limit-before: 3;
  -webkit-hyphenate-limit-after: 3;
}

@supports (text-wrap: balance) {
  h1,
  h2,
  h3 {
    text-wrap: balance; /* equal line lengths for browsers with proper support */
  }
  
  section.reviews section.approved-reviews p.none-received {
    text-wrap: balance; /* equal line lengths for browsers with proper support */
  }
  
  section.reviews section.new-review h3 + p {
    text-wrap: balance; /* equal line lengths for browsers with proper support */
  }
}


/*****************************************************/
/* FONTS */
/*****************************************************/

@font-face {
  font-family: 'Alegreya';
  src: url('/assets/fonts/Alegreya/Alegreya-VariableFont_wght-subset.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+20, U+21, U+24-26, U+28-3B, U+3D-3F, U+41-5B, U+5D, U+61-7B, U+7D, U+A9, U+AE, U+C7, U+E0-E2, U+E4, U+E7-EF, U+F2-F4, U+F6, U+F9-FC, U+FF, U+2013, U+2018, U+2019, U+201C, U+201D, U+2022, U+20AC, U+2122, U+2190;
}

@font-face {
  font-family: 'Alegreya';
  src: url('/assets/fonts/Alegreya/Alegreya-Italic-VariableFont_wght-subset.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
  unicode-range: U+20, U+21, U+24-26, U+28-3B, U+3D-3F, U+41-5B, U+5D, U+61-7B, U+7D, U+A9, U+AE, U+C7, U+E0-E2, U+E4, U+E7-EF, U+F2-F4, U+F6, U+F9-FC, U+FF, U+2013, U+2018, U+2019, U+201C, U+201D, U+2022, U+20AC, U+2122, U+2190;
}

@font-face {
  font-family: "Alegreya-fallback";
  font-style: normal;
  size-adjust: 100.99%;
  ascent-override: 110%;
  src: local("Times New Roman");
}

@font-face {
  font-family: "Alegreya-fallback";
  font-style: italic;
  /* Adjust size-adjust to account for the ~10% difference in average glyph width */
  size-adjust: 90.3%;
  ascent-override: 110%;
  src: local("Times New Roman Italic");
}

@font-face {
  font-family: 'Alegreya Sans';
  src: url('/assets/fonts/Alegreya_Sans/AlegreyaSans-Regular-subset.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+20, U+21, U+24-26, U+28-3B, U+3D-3F, U+41-5B, U+5D, U+61-7B, U+7D, U+A9, U+AE, U+C7, U+E0-E2, U+E4, U+E7-EF, U+F2-F4, U+F6, U+F9-FC, U+FF, U+2013, U+2018, U+2019, U+201C, U+201D, U+2022, U+20AC, U+2122, U+2190;
}

@font-face {
  font-family: 'Alegreya Sans';
  src: url('/assets/fonts/Alegreya_Sans/AlegreyaSans-Italic-subset.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+20, U+21, U+24-26, U+28-3B, U+3D-3F, U+41-5B, U+5D, U+61-7B, U+7D, U+A9, U+AE, U+C7, U+E0-E2, U+E4, U+E7-EF, U+F2-F4, U+F6, U+F9-FC, U+FF, U+2013, U+2018, U+2019, U+201C, U+201D, U+2022, U+20AC, U+2122, U+2190;
}

@font-face {
  font-family: 'Alegreya Sans';
  src: url('/assets/fonts/Alegreya_Sans/AlegreyaSans-Thin-subset.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
  unicode-range: U+20, U+21, U+24-26, U+28-3B, U+3D-3F, U+41-5B, U+5D, U+61-7B, U+7D, U+A9, U+AE, U+C7, U+E0-E2, U+E4, U+E7-EF, U+F2-F4, U+F6, U+F9-FC, U+FF, U+2013, U+2018, U+2019, U+201C, U+201D, U+2022, U+20AC, U+2122, U+2190;
}

@font-face {
  font-family: 'Alegreya Sans';
  src: url('/assets/fonts/Alegreya_Sans/AlegreyaSans-ThinItalic-subset.ttf') format('truetype');
  font-weight: 100;
  font-style: italic;
  font-display: swap;
  unicode-range: U+20, U+21, U+24-26, U+28-3B, U+3D-3F, U+41-5B, U+5D, U+61-7B, U+7D, U+A9, U+AE, U+C7, U+E0-E2, U+E4, U+E7-EF, U+F2-F4, U+F6, U+F9-FC, U+FF, U+2013, U+2018, U+2019, U+201C, U+201D, U+2022, U+20AC, U+2122, U+2190;
}

@font-face {
  font-family: 'Alegreya Sans';
  src: url('/assets/fonts/Alegreya_Sans/AlegreyaSans-Light-subset.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  unicode-range: U+20, U+21, U+24-26, U+28-3B, U+3D-3F, U+41-5B, U+5D, U+61-7B, U+7D, U+A9, U+AE, U+C7, U+E0-E2, U+E4, U+E7-EF, U+F2-F4, U+F6, U+F9-FC, U+FF, U+2013, U+2018, U+2019, U+201C, U+201D, U+2022, U+20AC, U+2122, U+2190;
}

@font-face {
  font-family: 'Alegreya Sans';
  src: url('/assets/fonts/Alegreya_Sans/AlegreyaSans-LightItalic-subset.ttf') format('truetype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
  unicode-range: U+20, U+21, U+24-26, U+28-3B, U+3D-3F, U+41-5B, U+5D, U+61-7B, U+7D, U+A9, U+AE, U+C7, U+E0-E2, U+E4, U+E7-EF, U+F2-F4, U+F6, U+F9-FC, U+FF, U+2013, U+2018, U+2019, U+201C, U+201D, U+2022, U+20AC, U+2122, U+2190;
}

@font-face {
  font-family: 'Alegreya Sans';
  src: url('/assets/fonts/Alegreya_Sans/AlegreyaSans-Medium-subset.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+20, U+21, U+24-26, U+28-3B, U+3D-3F, U+41-5B, U+5D, U+61-7B, U+7D, U+A9, U+AE, U+C7, U+E0-E2, U+E4, U+E7-EF, U+F2-F4, U+F6, U+F9-FC, U+FF, U+2013, U+2018, U+2019, U+201C, U+201D, U+2022, U+20AC, U+2122, U+2190;
}

@font-face {
  font-family: 'Alegreya Sans';
  src: url('/assets/fonts/Alegreya_Sans/AlegreyaSans-MediumItalic-subset.ttf') format('truetype');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
  unicode-range: U+20, U+21, U+24-26, U+28-3B, U+3D-3F, U+41-5B, U+5D, U+61-7B, U+7D, U+A9, U+AE, U+C7, U+E0-E2, U+E4, U+E7-EF, U+F2-F4, U+F6, U+F9-FC, U+FF, U+2013, U+2018, U+2019, U+201C, U+201D, U+2022, U+20AC, U+2122, U+2190;
}

@font-face {
  font-family: 'Alegreya Sans';
  src: url('/assets/fonts/Alegreya_Sans/AlegreyaSans-Bold-subset.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+20, U+21, U+24-26, U+28-3B, U+3D-3F, U+41-5B, U+5D, U+61-7B, U+7D, U+A9, U+AE, U+C7, U+E0-E2, U+E4, U+E7-EF, U+F2-F4, U+F6, U+F9-FC, U+FF, U+2013, U+2018, U+2019, U+201C, U+201D, U+2022, U+20AC, U+2122, U+2190;
}

@font-face {
  font-family: 'Alegreya Sans';
  src: url('/assets/fonts/Alegreya_Sans/AlegreyaSans-BoldItalic-subset.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
  unicode-range: U+20, U+21, U+24-26, U+28-3B, U+3D-3F, U+41-5B, U+5D, U+61-7B, U+7D, U+A9, U+AE, U+C7, U+E0-E2, U+E4, U+E7-EF, U+F2-F4, U+F6, U+F9-FC, U+FF, U+2013, U+2018, U+2019, U+201C, U+201D, U+2022, U+20AC, U+2122, U+2190;
}

@font-face {
  font-family: "Alegreya Sans-fallback";
  size-adjust: 86.56%;
  ascent-override: 117%;
  src: local("Arial");
}

/*****************************************************/
/* COLOR SCHEME */
/*****************************************************/

:root {
  --accessible-grey: #767676;
  --cyan: #63c6d5;
  --dark-cyan: #007fa6;
  --dark-grey: #333;
  --dark-magenta: #d43a57;
  --darker-magenta: #d43a57cc;
  --desaturated-cyan: #d7e0e1;
  --grey: #666;
  --lighter-cyan: #A5DFE8;
  --light-cyan: #e6f8fb;
  --lighter-grey: #757575;
  --light-grey: #ccc;
  --lighter-magenta: #ffcac4;
  --light-magenta: #fdf6f7;
  --magenta: #efb6c1;
  color: var(--dark-grey);
}


/*****************************************************/
/* IMAGES */
/*****************************************************/

img {
  display: block;
}


/*****************************************************/
/* INLINE STYLES */
/*****************************************************/

a {
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--cyan);
  text-underline-offset: .3ex;
}

.button {
  background-color: var(--dark-cyan);
  border-radius: .25em;
  color: white;
  padding: .25em .5em;
  text-decoration: none;
}

b,
strong {
  font-weight: bold;
}

mark {
  background-color: lightyellow;
}


/*****************************************************/
/* COMPATIBILITY WARNING */
/*****************************************************/

@supports not selector(&) {
  div.browser-warning[hidden] {
    background-color: lightyellow;
    color: black;
    display: block !important;
    font-family: system-ui, sans-serif;
    margin-bottom: 2rem;
    padding: 1em;
    text-align: center;
    hyphens: none;
  }
}


/*****************************************************/
/* BASE LAYOUT */
/*****************************************************/

:root {
  --page-margin: 20px;
  --page-min-width: 360px;
}


body {
  margin: 0 auto;
  max-width: min(100%, 853px);
  min-width: var(--page-min-width);
}


/*****************************************************/
/* SKIP LINK FOR KEYBOARD NAVIGATION */
/*****************************************************/

.skip-link {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;

  &:focus {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    height: auto;
    padding: 1rem 1.5rem;
    background-color: var(--dark-cyan);
    color: white;
    text-decoration: none;
    border-radius: 0 0 0.5rem 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    font-family: var(--sans-serif);
    font-size: var(--small);
    font-weight: 500;
  }
}


/*****************************************************/
/* EXPAND, BREAKOUT */
/*****************************************************/

div.breakout {
  margin: 0 calc(50% - 50vw);
}

div.breakout-image {
  margin: 0 calc(50% - 50vw);
}

.breakout-textbox {
  margin-left: calc(50% - 50vw);
  padding-left: var(--page-margin);
  padding-right: var(--page-margin);
  width: 100vw;
}

.bleed-image-container {
  margin: 0 calc(-1 * var(--page-margin));
}



/*****************************************************/
/* PRIMARY NAV */
/*****************************************************/

.primary-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;

  font-size: var(--small);
  font-family: var(--sans-serif);

  margin: 1em auto 1.25em auto;
  max-width: min(100%, 1000px);

  div.logo-container {
    display: flex;
    align-items: center;

    .site-logo {
      height: 1.66667rem;
      width: auto;
    }
  }

  div.menu-toggle-container {
    button {
      vertical-align: middle;
    }
    .hamburger-icon {
      vertical-align: middle;
    }
  }

  div.menu-contents {
    padding: .75rem 0;
    width: 100%;

    a {
      display: block;
      padding: .25rem 0;
      text-align: center;
    }

    img {
      display: inline-block;
      height: .75em;
      vertical-align: -.1em;
    }
  }

}



/*****************************************************/
/* PAGE FOOTER */
/*****************************************************/

footer.page-footer {

  background: url('/assets/texture.avif') center / cover no-repeat;
  padding: 2em 0;
  font-family: var(--sans-serif);
  font-size: var(--small);
  margin-top: 4rem;
  padding: 2.5rem;
  text-align: center;

  .site-logo {
    display: inline-block;
    height: 2rem;
    width: auto;
  }

  .pinterest-follow {
    display: inline-block;
    height: 1.5rem;
    margin: 1em 0;
    width: auto;
  }

  nav {
    display: block;

    a {
      display: inline-block;

      &:not(:first-child)::before {
        color: var(--cyan);
        content: '•';
        display: inline-block;
        margin-right: .33em;
        text-decoration: unset !important;
      }
    }
  }

  .copyright {
    color: var(--grey);
    font-size: var(--x-small);
  }
}


/*****************************************************/
/* ARTICLE */
/*****************************************************/

article {

  header {
    footer {
      color: var(--grey);
      font-family: var(--sans-serif);
      font-size: var(--x-small);
      margin: -1.5em 0 3em 0;
      text-align: center;
    }
  }

  p {
    margin-bottom: 1em;
  }

  dl {
    dt {
      font-weight: bold;
      margin-bottom: .33em;
    }
    dd {
      margin-bottom: 1.5em;
    }
  }

  ul {
    margin-bottom: 1.5em;
  }

  ol {
    list-style: decimal;
    margin-left: 1.5em;

    li::marker {
      font-weight: bold;
    }

    .header {
      font-weight: bold;
      margin-bottom: .33em;
    }
    .text {
      margin-bottom: 1.5em;
    }
  }

}


/*****************************************************/
/* TEXTURED PAGE HEADER */
/*****************************************************/

header.textured {
  background: url('/assets/texture.avif') center / cover no-repeat;
  padding: 2em 0;

  h1 {
    font-style: italic;
    font-size: var(--x-large);
    text-align: center;

    &::before,
    &::after {
      content: ' – ';
    }
  }
}


/*****************************************************/
/* BODY.PAGE (ABOUT, PRIVACY ETC) */
/*****************************************************/

body.page {

  h2 {
    font-size: var(--large);
    font-weight: 500;
    margin: 1.5em 0 .75em 0;
  }

  h3 {
    font-weight: 500;
    margin: 1.5em 0 .75em 0;
  }

  blockquote {
    border-left: 3px solid var(--light-grey);
    font-family: var(--sans-serif);
    margin: 1em 0;
    padding-left: 1em;
  }

  ul {
    list-style: disc;
    margin-left: 1.5em;
  }

  li {
    margin: 0.5em 0
  }
}


/*****************************************************/
/* BODY.INDEX (HOME PAGE) */
/*****************************************************/

body.index {

  article.featured {
    h2 {
      font-family: var(--sans-serif);
      font-feature-settings: 'smcp';
      font-weight: 300;
    }
  }

  figure.featured-image {
    height: 100%;
    margin: 0 auto;
    overflow: hidden;
    img {
      object-fit: cover;
      object-position: center;
      width: 100%;
    }
  }
}

@media (max-width: 853px) {
  body.index {
    div.breakout-image {
      figure.featured-image {
        height: 100vw;
        max-height: 50vh;
      }
    }
  }
}

@media (min-width: 854px) {
  body.index {
    div.breakout-image {
      figure.featured-image {
        height: 500px;
        max-height: 50vh;
      }
    }
  }
}

/*****************************************************/
/* ABOUT-INTRO */
/*****************************************************/

div.about-intro-container {
  margin: 0.5rem var(--page-margin) 4rem var(--page-margin);
  
  .about-intro {
    display: block;
    padding: 0 var(--page-margin);
    text-decoration: none;

    &:hover {
      background-color: var(--light-cyan);
      color: black;

      .read-more .button {
        background-color: black;
      }
    }

    h2 {
      font-family: var(--sans-serif);
      font-feature-settings: 'smcp';
      font-weight: 300;
    }
  }
  div.photos {
    display: flex;
    justify-content: space-between;
    margin: 1.5rem auto 1.1rem auto;
    min-width: 304px;
    max-width: calc(304px + var(--page-margin));
  }

  p.read-more {
    font-size: var(--small);
    margin-top: 2em;
    text-align: center;
  }
}


/*****************************************************/
/* INSET CONTAINER */
/*****************************************************/

.inset-container {
  background-color: white;
  display: block;
  inset: -7rem 0;
  margin: 0 auto -5rem auto; /* compensate for the inset while adding a margin to the bottom */
  max-width: 90%;
  padding: 0.25em 2em;
  position: relative;
  text-decoration: none;
  width: 32em;

  &:hover {
    background-color: var(--light-cyan);
    color: black;

    .read-more .button {
      background-color: black;
    }
  }

  header {
    text-align: center;
    margin: 1.25em 0;
  }

  h3 {
    font-size: var(--xx-large);
    margin: .75em 0 .5em 0;
  }

  time {
    color: var(--grey);
    font-family: var(--sans-serif);
    font-size: var(--x-small);
  }

  p.read-more {
    font-size: var(--small);
    margin-top: 2em;
    text-align: center;
  }
}


/*****************************************************/
/* (RECIPE) ACTIONS MENU */
/*****************************************************/

menu.actions {
  display: block;
  font-family: var(--sans-serif);
  font-size: var(--x-small);
  font-weight: 500;
  margin: 2rem 0;
  text-align: center;

  button,
  .button-link {
    background-color: #fdf6f78f;
    border: 1px solid var(--magenta);
    display: inline-flex;
    align-items: center;
    gap: .33em;
    padding: .3333em .75em;
    text-decoration: none;
    color: inherit;

    .button-icon {
      display: inline-block;
      width: 1.25em;
      height: 1.25em;
      opacity: 0.7;
    }
  }

  /* Both save buttons get left rounded corners (only one visible at a time) */
  #save-recipe-button,
  #unsave-recipe-button {
    border-top-left-radius: .5em;
    border-bottom-left-radius: .5em;
  }

  /* Last button gets right rounded corners */
  .button-link:last-child {
    border-top-right-radius: .5em;
    border-bottom-right-radius: .5em;
  }

  [data-save-recipe-action] {
    transition: background-color 0.3s ease;
  }

  [data-save-recipe-action="unsave"] {
    background-color: #e6f8fb59;
    border-color: var(--cyan);

    .button-icon {
      content: url('/assets/favorite-selected.svg');
    }
  }

  [data-save-recipe-action].just-saved {
    animation: highlight 0.6s ease;
  }

  @keyframes highlight {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); background-color: var(--light-cyan); }
  }
}

/* Save notification toast */
.save-recipe-notification {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: var(--dark-cyan);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  font-family: var(--sans-serif);
  font-size: var(--small);
  max-width: 90%;
  width: max-content;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9999;
}

.save-recipe-notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/*****************************************************/
/* RECIPE INDEX */
/*****************************************************/

div.recipe-index-container {
  display: flex;
  justify-content: center;
  margin: 1rem auto 3rem auto;
  padding: 0 28px;

}

div.ad-sidebar {
  background-color: #f0f0f0;
  display: none; /* hidden by default */
  flex: 0 0 300px; /* Prevents the sidebar from shrinking */
  margin-bottom: 2.5em;
  margin-left: 42px; /* extra gap between content and sidebar */
  min-height: 600px;
  position: sticky;
}


@media (min-width: 1034px) {
  div.ad-sidebar {
    display: block;
  }
}

.recipe-index {

  max-width: 968px;

  h2 {
    font-family: var(--sans-serif);
    font-feature-settings: 'smcp';
    font-weight: 300;
    margin-bottom: 2.5em;
  }

  .previews {

    --column-gap: 28px;
    --hover-bleed: calc(var(--column-gap) / 2);
    --hover-bleed-margin: calc(var(--column-gap) / -2);
    --preview-width: 304px;

    display: flex;
    flex: 1;
    flex-wrap: wrap;
    font-size: var(--small);
    gap: var(--column-gap);
    justify-content: center;
    max-width: calc(4 * var(--preview-width) + 3 * var(--column-gap)); /* = 1300px */

    h3 {
      font-size: var(--large);
      margin: .75em 0;
      text-align: center;
    }

    .preview {
      box-sizing: content-box;
      content-visibility: auto;
      contain-intrinsic-size: auto 304px auto 650px; /* 'auto' remembers the actual size once rendered */
      margin: var(--hover-bleed-margin);
      margin-bottom: 2em;
      padding: var(--hover-bleed);
      text-decoration: none;
      width: var(--preview-width);

      figure {
        aspect-ratio: 1 / 1;
      }

      .textblock {
        padding: .5em;

        .rating {
          color: var(--dark-magenta);
          font-size: var(--x-small);
          margin-left: 0.5em;
          /* vertical-align: .167em; */
        }
      }

      .read-more {
        font-size: var(--small);
        margin-top: 2em;
        text-align: center;

        img.link-out {
          opacity: .7;
          vertical-align: -0.3em;
        }
      }

      &:hover {
        background-color: var(--light-cyan);
        color: black;

        .read-more .button {
          background-color: black;
        }
      }

      footer {
        text-align: center;
      }
    }
  }
}


/*****************************************************/
/* CATEGORY INDEX */
/*****************************************************/

div.recipe-categories-container {
  --number-of-columns: 5;
  --gap-size: 28px;
  max-width: calc(var(--number-of-columns) * 9rem + calc(var(--number-of-columns) + 1) * 28px);
  margin: 4rem auto;

  .recipe-categories {
    font-family: var(--sans-serif);
    margin: 2rem var(--gap-size);
  }

  .grouping-container {
    columns: 9rem var(--number-of-columns);
    gap: var(--gap-size);
    content-visibility: auto;
    contain-intrinsic-height: clamp(1292.5px, calc(7617.204px - 506.7872vw), 5792.77px);

    .grouping {
      font-size: var(--small);
      margin-bottom: 1.5em;
    }
  }

  h2 {
    font-family: var(--sans-serif);
    font-weight: 300;
    font-feature-settings: 'smcp';
    margin: 1.5em auto;
    text-align: center;
  }

  h3 {
    break-after: avoid-column;
    font-weight: bold;
    margin-bottom: .5em;
  }

  ul.categories {

    li {
      margin: .25em 0;

      /* Avoid widows and orphans */
      &:nth-child(-n + 2) {
        break-after: avoid-column;                
      }
      &:nth-last-child(-n + 2) {
        break-before: avoid-column;       
      }
    }

    a {
      text-decoration-color: var(--lighter-cyan);
    }

    span.count {
      color: var(--lighter-grey);
      font-size: var(--small);
      margin-left: .25em;
    }
  }
}


/*****************************************************/
/* BODY CATEGORY */
/*****************************************************/

body.category {

  header {
    margin-top: 1rem;
    margin-bottom: 1.5rem;

    h1 {
      font-size: var(--xxx-large);
      margin: 0;
      margin-bottom: .75em;
      text-align: center;
    }

    div.subheader {
      padding: 0 var(--page-margin);
      font-size: var(--small);
      line-height: 2;
      margin-top: -1rem;
      margin-bottom: 1rem;
      text-align: center;

      span.collection {
        display: inline-block;
        margin-left: .25em;
      }
    }
  }

  figure.featured-image {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .recipe-index-container {
    margin-top: 2rem;
  }

  section.introduction {
    margin: 2rem var(--page-margin) 2.67rem var(--page-margin);
  }

}


/*****************************************************/
/* BODY INGREDIENT-CLASS-INDEX */
/*****************************************************/

body.ingredient-class-index {

  header {
    margin: 1.5rem;

    h1 {
      font-size: var(--xxx-large);
      margin: 0;
      margin-bottom: .75em;
      text-align: center;
    }
  }

  .ingredient-index-container {
    --number-of-columns: 5;
    --gap-size: 28px;
    max-width: calc(var(--number-of-columns) * 9rem + calc(var(--number-of-columns) + 1) * 28px);
    margin: 2.5rem auto;
  }

  .recipe-ingredient-classes {
    ul {
      columns: 9rem var(--number-of-columns);
      gap: var(--gap-size);
    }
  }

}


/*****************************************************/
/* BODY RECIPE */
/*****************************************************/

body.recipe {

  article {

    margin-bottom: 4rem;

    header {
      margin-top: 1rem;
      margin-bottom: 1.5rem;
      padding: 0 calc(var(--page-margin) / 2);

      h1 {
        font-size: var(--xxx-large);
        margin: 0;
        margin-bottom: .75em;
        text-align: center;

        .rating {
          color: var(--dark-magenta);
          font-size: 40%;
          margin-left: 0.5em;
          vertical-align: .167em;
          margin-left: 0.5em;
        }

        a[href="#reviews"] {
          display: inline-block;
          border: 1px solid var(--lighter-magenta);
          border-radius: 0.5em;
          padding: 0 .5em;
          text-decoration: none;
          vertical-align: .1167em;
        }
      }

      .subheader {
        color: var(--grey);
        font-family: var(--sans-serif);
        font-size: var(--small);
        padding: 0 var(--page-margin);
        margin-top: -.75rem;
        margin-bottom: 1.67rem;
        text-align: center;
        text-wrap: balance;

        img.clock-icon {
          display: inline-block;
          height: 1em;
          margin-right: .33em;
          opacity: .4;
          width: auto;
          vertical-align: -5px;
        }

        .total-time {
          color: var(--dark-cyan);
        }

        .dietary-patterns {
          .dietary-pattern {
            white-space: nowrap;

            &:not(:first-child) {
              margin-left: .25em;
            }
          }
        }

        .separator {
          color: var(--light-grey);
          margin: 0 .5em 0 .5em;
        }

      }
    }

    h2 {
      font-size: var(--xx-large);
      margin: 1.25em 0;
      text-align: center;

      small {
        font-size: var(--medium);
      }
    }

    h3 {
      font-weight: bold;
      margin-bottom: 0.75em;
    }

    nav.toc {
      border: 1px solid var(--cyan);
      border-radius: .5em;
      font-family: var(--sans-serif);
      font-size: var(--small);
      margin: 3rem calc(var(--page-margin) / 2) 2rem calc(var(--page-margin) / 2);
      padding: 1.25rem .5rem;
      text-align: center;
      text-wrap: balance;

      h2 {
        font-size: var(--medium);
        font-weight: 500;
        margin-top: -2em;
        margin-bottom: .5em;

        span.white-fill {
          background-color: white;
          padding-left: .75em;
          padding-right: .75em;
        }
      }

      a {
        display: inline-block;
        padding: .25em .5em .25em 0;
        white-space: nowrap;

        &:not(:first-of-type)::before {
          color: var(--cyan);
          content: "●";
          display: inline-block;
          margin-right: .75em;
          text-decoration: none;
        }
      }

    }

    section {
      margin: 3rem var(--page-margin) 2.67rem var(--page-margin);

      section {
        margin: 3rem 0;
      }
    }

    section.metadata {
      margin: 2rem calc(var(--page-margin) / 2);

      p.metadata {
        color: var(--grey);
        font-family: var(--sans-serif);
        font-style: normal;
        font-size: var(--x-small);
        margin: 2rem 0;
        padding: .5em 0;
        text-align: center;

        .author-line, .date-line {
          display: inline-block;
        }

        strong {
          color: var(--dark-cyan);
          margin: 0 .167em;
        }
      }

      .avatar {
        display: inline-block;
        margin: 0 .5rem;
        vertical-align: middle;

        img {
          width: 60px;
          height: auto;
        }
      }

      .date {
        white-space: nowrap;
      }
    }

    section.introduction {
      div.textblock {
        font-style: italic;
      }

      figure.story-image {
        margin: 1.5em auto;
        text-align: center;
  
        img {
          border: 3px dotted var(--light-grey);
          box-sizing: content-box;
          display: inline-block;
          padding: .5em;
          rotate: 2.5deg;
        }
  
        figcaption {
          font-size: var(--small);
          margin-top: .5em;
          font-style: italic;
        }
      }
    }

    section.ingredients {

      .components {

        column-width: 16em;
        column-gap: 28px;
        column-fill: balance;

        font-family: var(--sans-serif);

        .component {

          break-inside: avoid-column;

          .component-name {
            font-weight: 500;
          }

          .ingredients {

            li {
              list-style-type: disc;
              margin-left: 1.5em;
              padding: 0.167em 0 0.167em 0;

              &::marker {
                color: var(--cyan);
              }

              &.has-description::after {
                content: '*';
              }
            }
          }
        }
      }

      div.order-with-instacart {

        margin-top: -.5em;
        margin-bottom: 2em;
        text-align: center;

        a.instacart-cta {
          background-color: #faf1e54d;
          border: 1px solid #efe9e1;
          border-radius: 2em;
          color: #003D29;
          font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
          font-size: 16px;
          font-weight: 500;
          padding: .75em 1.33em; 
          text-decoration: none;
        }

        img.instacart-logo {
          display: inline-block;
          height: 22px;
          margin-right: 5px;
          vertical-align: -4px;
          width: auto;
        }

        p.note {
          color: var(--accessible-grey);
          font-family: var(--sans-serif);
          font-size: var(--x-small);
          font-style: italic;
          margin-top: -.5em;
        }
      }

      .ingredient-descriptions {
        color: var(--grey);
        font-size: var(--x-small);
        margin-top: 1.5rem;

        h3 {
          color: var(--dark-grey);
          margin-bottom: .75rem;
        }

        li {
          margin-bottom: .5rem;
        }
      }
    }
  }

  section.instructions {
    .instructions-steps {
      .header {
        margin-top: 1.5em;
      }
      .header, .text p {
        margin-bottom: .75em;
      }
    }    
  }

  section.serving-suggestions {
    h3 {
      margin-top: 1.5em;
      margin-bottom: .75em;
    }

    ul.recipe-pairings {
      list-style: disc;
      margin-left: 1.5em;

      li {
        margin: 0.33em;

        &::marker {
          color: var(--cyan);
        }
      }
    }
  }


  div.recipe-image {
    contain: strict;
    content-visibility: auto;
    contain-intrinsic-size: min(calc(150vw), 1279px);

    img {
      height: auto;
      width: 100%;
    }

    position: relative;

    .pin-button {
      display: block;
      position: absolute;
      top: 8px;
      right: 8px;
      padding: 4px;
      cursor: pointer;

      img {
        display: block;
        height: 2em;
        width: auto;
      }
    }
  }

  table.nutrition {
    border-spacing: .33em 0;
    display: block;
    font-family: var(--sans-serif);
    font-size: var(--small);
    margin: 1rem auto;
    width: fit-content;

    th {
      padding-right: 1em;
    }

    td {
      &.value {
        text-align: right;
      }
    }
  }

  .nutrition-facts {
    h2 {
      margin-bottom: .75em;
    }

    .disclaimer {
      font-style: italic;
      font-size: var(--x-small);
      text-align: center;
    }
  }

}

@media (max-width: 1706px) {
  body.recipe, body.category {
    div.breakout-image {
      max-height: 853px;
      figure.featured-image {
        height: 100vw;
        margin: 0 auto;
        max-width: 853px;
        img {
          aspect-ratio: 1 / 1;
        }
      }
    }
  }
}

@media (min-width: 1707px) {
  body.recipe, body.category {
    figure.featured-image {
      margin: 0 auto;
      height: 853px;
      width: 1706px;
      img {
        aspect-ratio: 2 / 1;
      }
    }
  }
}



/*****************************************************/
/* HOVERABLE ARTICLE TITLE */
/*****************************************************/

a .article-title {
  text-decoration: underline;
  text-decoration-color: var(--cyan);
}


/*****************************************************/
/* LINES ON SIDES */
/*****************************************************/

.lines-on-sides {
  overflow: hidden;
  text-align: center;
  text-wrap: wrap; /* Safari will wrap the line by default without this */

  &::before,
  &::after {
    background-color: var(--light-grey);
    content: '';
    display: inline-block;
    height: 1px;
    position: relative;
    vertical-align: middle;
    width: 50%;
  }

  &::before {
    right: .5em;
    margin-left: -50%;
  }

  &::after {
    left: .5em;
    margin-right: -50%;
  }
}


/*****************************************************/
/* BODY.SEARCH */
/*****************************************************/

body.search {
  .search-container {
    margin: 2em 0;
  }

  .search-form {
    display: flex;
    gap: 0.5em;
  }

  #site-search {
    flex: 1;
    padding: .25em .75em;
    font-size: var(--medium);
    border: 1px solid #ddd;
    border-radius: 0.5em;
    font-family: var(--sans-serif);
  }

  .search-button {
    padding: .25em .75em;
    background-color: var(--light-cyan);
    border: 1px solid var(--cyan);
    border-radius: 0.5em;
    font-family: var(--sans-serif);
    font-size: var(--medium);
    cursor: pointer;
    white-space: nowrap;
  }

  .search-button:hover {
    background-color: #1a7a7a;
  }

  .search-instructions {
    color: #666;
    font-size: var(--small);
    font-style: italic;
    margin-top: .5em;
  }

  .search-results {
    margin-top: 2em;
  }

  .search-status {
    padding: 1.5em;
    text-align: center;
    color: #666;
    font-style: italic;
    background-color: #f9f9f9;
    border-radius: 0.5em;
  }

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

  .search-result-item a {
    text-decoration: none;
    color: inherit;
    display: block;
  }

  .search-result-title {
    font-size: var(--large);
    font-weight: 600;
    color: var(--dark-cyan);
    margin: 0 0 0.25em 0;
  }

  .search-result-type {
    display: inline-block;
    padding: 0.25em 0.5em;
    background-color: #f0f0f0;
    border-radius: 0.25em;
    font-size: var(--x-small);
    font-family: var(--sans-serif);
    text-transform: uppercase;
    color: #666;
  }

  .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
  }

  @media (max-width: 600px) {
    .search-form {
      flex-direction: column;
    }

    .search-button {
      width: 100%;
    }
  }
}

/*****************************************************/
/* BODY.PAGE */
/*****************************************************/

body.page {
  h1 {
    font-size: var(--xxx-large);
    margin: 0.75em 0;
    text-align: center;
  }

  article {
    margin: 0 1em;
  }  
}



/*****************************************************/
/* FIGURE.AUTHOR */
/*****************************************************/

figure.author {
  display: block;
  margin-bottom: 1rem;

  img {
    display: block;
    margin: 0 auto;
  }
}

@media (min-width: 600px) {
  figure.author {
    float: left;
    margin-bottom: 0.5rem;
    margin-right: 1rem;
    margin-top: 7px;
  }
}


/*****************************************************/
/* WAKE LOCK */
/*****************************************************/

div.wakelock-control {
  margin: -1.5rem 0 1.5rem 0;

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

  color: var(--dark-grey);
  font-family: var(--sans-serif);
  font-size: var(--small);

  user-select: none;

  .wakelock-toggle {
    position: absolute;
    appearance: none;
    width: 0;
    height: 0;
    opacity: 0;
  }

  .toggle-icon {
    display: flex;
    align-items: center;
    gap: .4rem;

    cursor: pointer;
    transition: transform .2s ease;

    &::before {
      content: '';
      width: 2.2em;
      height: 2.2em;
      background: url('/assets/toggle_off.svg') center/contain no-repeat;
      flex-shrink: 0;
    }
  }

  .wakelock-toggle:checked + .toggle-icon {
    transform: scale(1.05);

    &::before {
      background-image: url('/assets/toggle_on.svg');
    }
  }
}


/*****************************************************/
/* SHOP MODE */
/*****************************************************/

.ingredients li {

  &.is-pantry-staple .store-bought-product,
  &.has-null-retail .store-bought-product {
    opacity: 0.5;
    
    & > .ingredient-name {
      font-weight: normal;
    }

    & > .ingredient-name ~ * {
      display: none;
    }
  }

  .store-bought-product {

    .ingredient-name {
      font-weight: 500;
    }
    
    .quantity-unit {
      white-space: nowrap;
      margin: 0 0 0 .33em;
    }
    
    .unit, .modifier, .original-ingredient {
      font-size: var(--small);
    }

    .unit {
      margin-left: 0.1em;
    }

    .modifier {
      margin-left: 0.15em;
      font-weight: 300;
    }
    
    .original-ingredient {
      color: var(--grey);
      font-style: italic;
      margin-left: 0.33em;
    }

  }

}

section.reviews {

  header {
    text-align: center;

    h2 + p {
      color: var(--grey);
      font-family: var(--sans-serif);
      font-size: var(--small);
      margin-top: -1.5rem;
    }

    a.add-new {
      white-space: nowrap;
    }
  }

  section.approved-reviews {
    margin: 1.67em 0 2em 0;

    p.none-received {
      font-style: italic;
      margin-top: -1.25em;
      text-align: center;
      text-wrap: pretty; /* fallback for all browsers */
    }
  }

  ul.reviews {
    li.review {
      margin-bottom: 1.5em;
    }
  }

  .reader, .author {
    font-weight: bold;
  }

  blockquote.reader-comment {

    p {
      margin-bottom: 0;
    }

    .rating {
      white-space: nowrap;
    }
  }

  blockquote.author-response {
    font-style: italic;
    margin-top: .5em;
    margin-left: 2em;

    p {
      margin-bottom: 0;
    }
  }

  section.new-review {
    margin: 2em 0;

    h3 {
      font-size: var(--large);
      margin-bottom: 0.33em;
    }

    h3 + p {
      font-style: italic;
      text-wrap: pretty; /* fallback for all browsers */
    }
  }

  details.feedback-form {
    font-family: var(--sans-serif);
  }

  summary {
    all: revert;
    color: var(--dark-cyan);
    cursor: pointer;
    font-size: var(--small);
    font-weight: bold;
    text-align: center;
    text-decoration: underline;
    text-decoration-color: var(--cyan);
  }

  .reviews-container {
    font-family: var(--sans-serif);
  }

  fieldset {
    margin: 1em 0;
  }

  legend {
    font-weight: bold;
  }

  label {
    cursor: pointer;
  }

  .notes {
    color: var(--grey);
    font-size: var(--small);
    font-style: italic;
    font-weight: normal;
    white-space: nowrap;
  }

  input[type="text"] {
    border: 1px solid var(--light-grey);
    border-radius: 0.25em;
    padding: 0.25em 0.5em;
    width: 100%;
  }

  div.radio-option {
    margin: .5em 0 .5em 1.5em;
    text-indent: -1.5em;

    input[type="radio"] {
      all: revert;
      margin-right: 0.33em;
    }
  }

  textarea {
    border: 1px solid var(--light-grey);
    display: block;
    height: 4em;
    padding: .25em;
    width: 100%;
  }

  ::placeholder {
    color: var(--accessible-grey);
  }

  div.footer {
    margin-top: 1.5em;
    text-align: right;
  }

  button[type="submit"] {
    background-color: var(--dark-cyan);
    border-radius: .5em;
    color: white;
    font-size: var(--small);
    padding: .15em .75em;
  }

}


/*****************************************************/
/* YOUR RECIPES */
/*****************************************************/

a.saved-recipe-card {
  position: relative;

  .unsave-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--light-grey);
    border-radius: 0.25em;
    font-family: var(--sans-serif);
    font-size: var(--x-small);
    padding: 0.25em 0.5em;
    cursor: pointer;
    z-index: 10;
  }

  .unsave-button:hover {
    background-color: var(--dark-magenta);
    color: white;
    border-color: var(--dark-magenta);
  }
}
/* Calculator page styles */

body.calculator-tdee {
  article {
    margin: 0 var(--page-margin);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }

  h1 {
    font-size: var(--xxx-large);
    margin: 0.75em 0 0.5em 0;
    text-align: center;
  }

  h2 {
    font-size: var(--xx-large);
    margin: 0 0 0.75em 0;
  }

  h3 {
    font-size: var(--large);
    font-weight: 500;
    margin: 1.25em 0 0.5em 0;
  }

  h4 {
    font-weight: bold;
    margin: 1em 0 0.5em 0;
  }
}

.calculator-intro {
  font-style: italic;
  margin: 2em 0;
  text-align: center;
}

.calculator-form {
  background-color: var(--light-cyan);
  border-radius: 0.5em;
  margin: 2em 0;
  padding: 1.5em;

  h2 {
    margin-top: 0;
  }
}

.form-row {
  display: flex;
  gap: 1em;
  margin-bottom: 1em;

  .form-group {
    flex: 1;
  }
}

.form-group {
  margin-bottom: 1em;

  label {
    display: block;
    font-family: var(--sans-serif);
    font-weight: 500;
    margin-bottom: 0.25em;
  }

  input[type="number"],
  select {
    all: revert;
    border: 1px solid var(--light-grey);
    border-radius: 0.25em;
    font-family: var(--sans-serif);
    font-size: var(--medium);
    padding: 0.5em;
    width: 100%;
  }

  input[type="number"]:focus,
  select:focus {
    border-color: var(--cyan);
    outline: none;
  }
}

.height-inputs {
  display: flex;
  align-items: center;
  gap: 0.5em;

  input {
    flex: 1;
    width: auto;
  }

  span {
    font-family: var(--sans-serif);
    font-size: var(--small);
  }
}

.checkboxes {
  label {
    display: flex;
    align-items: center;
    font-weight: normal;
    margin-bottom: 0.5em;

    input[type="checkbox"] {
      all: revert;
      margin-right: 0.5em;
      width: auto;
    }
  }
}

.radio-buttons {
  label {
    display: flex;
    align-items: center;
    font-weight: normal;
    margin-bottom: 0.5em;

    input[type="radio"] {
      all: revert;
      margin-right: 0.5em;
      width: auto;
    }
  }
}

.calculator-results {
  margin: 2em 0;

  .placeholder {
    color: var(--grey);
    font-style: italic;
    text-align: center;
  }
}

.targets-grid {
  display: grid;
  gap: 1em;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin: 1.5em 0;

  .target-card {
    background-color: var(--light-magenta);
    border-radius: 0.5em;
    padding: 1em;
    text-align: center;

    .label {
      color: var(--grey);
      font-family: var(--sans-serif);
      font-size: var(--small);
      margin-bottom: 0.25em;
    }

    .value {
      font-family: var(--sans-serif);
      font-size: var(--xx-large);
      font-weight: bold;
    }

    .unit {
      font-family: var(--sans-serif);
      font-size: var(--small);
    }
  }
}

.meal-target {
  background-color: var(--light-cyan);
  border-radius: 0.5em;
  margin: 1.5em 0;
  padding: 1.5em;
  text-align: center;

  .label {
    font-family: var(--sans-serif);
    font-size: var(--medium);
    margin-bottom: 0.5em;
  }

  .value {
    font-family: var(--sans-serif);
    font-size: var(--xxx-large);
    font-weight: bold;
  }

  .macros {
    font-family: var(--sans-serif);
    font-size: var(--small);
    margin-top: 0.5em;
  }
}

.recipe-matches {
  margin: 2em 0;

  .placeholder {
    color: var(--grey);
    font-style: italic;
    text-align: center;
  }
}

.recipe-list {
  display: grid;
  gap: 1.5em;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  margin: 1.5em 0;
}

.recipe-card {
  border: 1px solid var(--light-grey);
  border-radius: 0.5em;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s;

  &:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: var(--light-cyan);
  }

  .card-content {
    padding: 1em;
  }

  .recipe-title {
    font-family: var(--sans-serif);
    font-size: var(--medium);
    font-weight: 500;
    margin-bottom: 0.5em;
  }

  .recipe-meta {
    color: var(--grey);
    font-family: var(--sans-serif);
    font-size: var(--small);
    margin-bottom: 0.5em;
  }

  .badge {
    background-color: var(--light-cyan);
    border-radius: 0.25em;
    color: var(--dark-cyan);
    display: inline-block;
    font-family: var(--sans-serif);
    font-size: var(--x-small);
    font-weight: 500;
    margin-top: 0.5em;
    padding: 0.25em 0.5em;
  }

  .badge.great-fit {
    background-color: #d4edda;
    color: #155724;
  }

  .badge.good-fit {
    background-color: #d1ecf1;
    color: #0c5460;
  }

  .portion-note {
    color: var(--grey);
    font-family: var(--sans-serif);
    font-size: var(--x-small);
    font-style: italic;
    margin-top: 0.5em;
  }
}

.how-it-works {
  border: 1px solid var(--cyan);
  border-radius: 0.5em;
  margin: 3em 0;
  padding: 1.5em;

  summary {
    cursor: pointer;
    font-family: var(--sans-serif);
    font-size: var(--large);
    font-weight: 500;
    margin-bottom: 1em;
  }

  .details-content {
    margin-top: 1em;

    ul {
      list-style: disc;
      margin-left: 1.5em;

      li {
        margin: 0.5em 0;
      }
    }

    p {
      margin-bottom: 1em;
    }
  }
}

.related-collections {
  margin: 3em 0;

  h2 {
    margin-bottom: 0.5em;
  }

  p {
    margin-bottom: 1em;
  }

  ul {
    list-style: disc;
    margin-left: 1.5em;

    li {
      margin: 0.5em 0;
    }
  }
}

@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
  }

  .targets-grid {
    grid-template-columns: 1fr;
  }

  .recipe-list {
    grid-template-columns: 1fr;
  }
}


