/* Main CSS for KindOfParadox - Cleaned Version */

:root {
    --color-top-bar: #becdd4;
    --color-left-aside: #dcdcdc; /* Changed to Thomas Gainsborough from #e3e3e3 */
    --color-link: #4a6572;
    --color-link-visited: #7a5a8a;
    --color-ink: #421dce; /*#390be9;*/
    --color-black: #000000;
    --color-white: #ffffff;
    --color-success: #28a745;
    --color-warning: #ffc107;
    --color-danger: #dc3545;
    --color-info: #17a2b8;
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --dark-color: #343a40;
    --light-color: #f8f9fa;

    --font-trebuchet: 'Trebuchet MS', Arial, sans-serif;
    --font-arial-black: 'Arial Black', Arial, sans-serif;

    --letter-spacing-tight: -0.06rem;
    --border-radius: 0.25rem;

    --height-top-bar: 1.61rem;
    --width-logo: 121px;
    --width-aside-right: 3.75rem;
    --text-margin: 3rem;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: var(--font-trebuchet);
    line-height: 1.6;
    color: var(--color-black);
    background-color: var(--color-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;

    background-color: #fff;
    background-image:
        /* Darker lines every 150px (every 10th line) */
        linear-gradient(to right, #ebf1f8 1px, transparent 2px),
        linear-gradient(to bottom, #e3e8f0 1px, transparent 2px),
        /* Lighter lines every 15px */
        linear-gradient(to right, #f6f6f6 1px, transparent 1px),
        linear-gradient(to bottom, #f4f0f0 1px, transparent 1px);
    background-size:
        150px 150px, 150px 150px, /* Darker lines */
        15px 15px, 15px 15px;     /* Lighter lines */
    background-position:
        0 0, 0 0, 0 0, 0 0;
}

main {
    flex: 1;
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

header h1 {
    font-size: 2rem;
    text-transform: capitalize;
    margin-bottom: 0.5rem;
}
header p {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}
header:has(nav){
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 2rem;
}
a {
    color: var(--color-link);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
a:visited {
    color: var(--color-link-visited);
}
button {
    font-size: 1.21rem;
    cursor: pointer;
    border-radius: var(--border-radius);
    border: 2px solid var(--color-left-aside);
    padding: 0.5rem 1rem;
}

details {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #6c757d;
    background: var(--light-color);
}
details > summary {
    cursor: pointer;
    color: var(--color-link);
}
details > pre {
    margin-top: 0.5rem;
    padding: 1rem;
    overflow-x: auto;
}

button[type="submit"] {
    width: 100%;
    padding: 0.75rem;
    margin: 1rem 0;
    background: var(--primary-color);
    color: white;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    font-family: inherit;
    border-radius: var(--border-radius);
}
button[type="submit"]:hover {
    background: #0056b3;
}

input[type="number"],
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
textarea,
select {
    font-family: inherit;
    font-size: 1rem;
    padding: 0.5rem;
    width: 100%;
    border-radius: var(--border-radius);
    border: 2px solid var(--color-left-aside);
}
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--color-link);
    outline-offset: -2px;
}


table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}
th {
    text-align: left;
    padding: 0.75rem;
    border-bottom: 2px solid var(--dark-color);
    font-weight: 600;
}
td {
    padding: 0.75rem;
    border-bottom: 2px solid var(--light-color);
}

nav {
    font-size: 1.125rem;
}
nav a {
    color: var(--color-link);
    text-decoration: none;
}
nav a:hover {
    text-decoration: underline;
}
nav > ul {
    list-style: none;
    padding: 0;
}
nav > ul > li {
    margin-bottom: 0.5rem;
}
article > nav > a,
section > nav > a,
nav > ul > li > a {
    display: inline-block;
    padding: 0.75rem;
    color: var(--color-link);
    text-decoration: none;
    border-radius: var(--border-radius);
}
main article > nav > a,
main section > nav > a{
    padding: 0.25rem;
    background: rgba(237, 199, 137, 0.5);
    box-shadow: 0 0 1rem rgb(237, 199, 137);
    border-radius: 2rem;
    transition: background-color 0.2s, box-shadow 0.2s;
}
main article > nav > a:nth-child(5n+2),
main section > nav > a:nth-child(5n+2) {
    background: rgba(168, 213, 186, 0.5);
    box-shadow: 0 0 1rem rgb(168, 213, 186);
}
main article > nav > a:nth-child(5n+3),
main section > nav > a:nth-child(5n+3) {
    background: rgba(174, 198, 232, 0.5);
    box-shadow: 0 0 1rem rgb(174, 198, 232);
}
main article > nav > a:nth-child(5n+4),
main section > nav > a:nth-child(5n+4) {
    background: rgba(219, 178, 214, 0.5);
    box-shadow: 0 0 1rem rgb(219, 178, 214);
}
main article > nav > a:nth-child(5n+5),
main section > nav > a:nth-child(5n+5) {
    background: rgba(237, 187, 170, 0.5);
    box-shadow: 0 0 1rem rgb(237, 187, 170);
}
main article > nav > a:hover,
main section > nav > a:hover {
    background: #dcdc0077;
    box-shadow: 0 0 1rem #dcdc00;
}

dl {
  display: grid;
  grid-template-columns: max-content auto;
  gap: 0.5rem 1rem;
}
dt {
  grid-column-start: 1;
  font-weight: 600;
  color: var(--secondary-color);
}
dd {
  grid-column-start: 2;
  margin: 0;
}


fieldset {
    border: none;
    padding: 0;
    margin: 0 0 1rem 0;
}
fieldset label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: var(--color-black);
    white-space: nowrap;
}
fieldset small {
    display: block;
    margin-top: 0.25rem;
    color: #6c757d;
    font-size: 0.875rem;
}
fieldset > input,
fieldset > textarea,
fieldset > select {
    width: 100%;
    padding: 0.5rem;
    border: 2px solid var(--color-left-aside);
    font-size: 1rem;
}
input[type="checkbox"]{
    width: auto;
    vertical-align: middle;
    height: 1.5rem;
}
fieldset:has(> input[type="checkbox"]) {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
fieldset:has(>input[type="checkbox"]) > label {
    margin-bottom: 0;
    font-weight: normal;
}
section:has(>fieldset) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

output[role="alert"] {
    display: block;
    color: var(--color-danger);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}
form aside[role="alert"] {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--color-danger);
    border: 2px solid var(--color-danger);
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

dialog {
    padding: 0;
    border: none;
    background: transparent;
    max-width: none;
    max-height: none;

    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    display: none;
}
dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.5);
}
dialog[open] {
    display: flex;
    align-items: center;
    justify-content: center;
}
/* For browsers that don't support ::backdrop */
dialog > section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}
dialog > article {
    background-color: var(--color-white);
    margin: 1rem;
    padding: 0;
    border-radius: var(--border-radius);
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.3);
    max-width: 30rem;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}
dialog > article.modal-wide {
    max-width: 45rem;
}
dialog header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-left-aside);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
dialog h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--color-black);
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: var(--color-black);
    opacity: 0.5;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-close:hover {
    opacity: 1;
}

dialog > article > section {
    padding: 1.5rem;
}
dialog section > aside {
    /* background-color: rgba(23, 162, 184, 0.1); */
    color: var(--color-info);
    padding: 0.75rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}
dialog fieldset{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
section > fieldset { /* Fieldsets already side-by-side */
    grid-template-columns: 1fr;
}
dialog footer {
    margin-top: 1.5rem;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-left-aside);
}
dialog footer p {
    margin: 0.5rem 0;
}
@keyframes modalSlideIn {
    from {
        transform: translateY(-2rem);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Search form */
fieldset:has(input[type="search"]) {
    display: flex;
    align-items: center;
    margin-left: auto;
    position:relative;
}
input[type="search"] {
    border: 2px solid var(--color-left-aside);
    min-width: 200px;
    padding-right: 2.5rem;
}
input[type="search"]:focus {
    outline: 2px solid var(--color-link);
    outline-offset: -2px;
}
input[type="search"] + button[type="submit"] {
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.57rem 0.75rem;
    width: auto;

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

    border: none;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    background-color: var(--color-link);
    transition: color 0.2s;
    color: var(--color-white);
    cursor: pointer;
}
input[type="search"] + button[type="submit"]:hover {
    background-color: var(--color-link-visited);
    border-color: var(--color-link-visited);
}


.small-page {
    max-width: 600px;
    margin: 2rem auto;
    padding: 0 1rem;
}
.small-page > header {
    text-align: center;
    margin-bottom: 2rem;
}
.small-page > header > h1 {
    margin-bottom: 0.5rem;
}
.small-page > header > p {
    color: var(--secondary-color);
}
.small-page > section {
    background: white;
    padding: 2rem;
    border: 1px solid var(--color-left-aside);
    border-radius: 10px;
}
.small-page section > h2 {
    font-size: 1.125rem;
    text-align: center;
    margin: 2rem 0 1rem;
    position: relative;
}
.small-page section > h2::before,
.small-page section > h2::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 4rem);
    height: 1px;
    background: var(--color-left-aside);
}
.small-page section > h2::before {
    left: 0;
}
.small-page section > h2::after {
    right: 0;
}
.small-page aside {
    padding: 2rem;
}
.small-page aside h2{
    text-align:center;
    margin: 0 0 1rem;
}

#chat-room {
    display: grid;
    grid-template-columns: 3fr 1fr;
    grid-template-areas:
        "header header"
        "main aside";
    gap: 2rem;
}
#chat-room > header {
    grid-area: header;
    width: 100%;
}
#chat-room > section {
    grid-area: main;
}
#chat-room > aside {
    grid-area: aside;
}

#messages-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow-y: auto;
    padding: 1rem;
    height: 500px;
    overflow-y: auto;
    padding: 1rem;
    background-color: #f8f9fa;
}
#chat-messages,
#typing-indicator {
    flex-shrink: 0;
}
#chat-messages li{
    list-style: none;
}

#chat-container form {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--color-white);
    align-items: center;
    position:relative;
}
#chat-container form textarea {
    flex: 1;
    resize: none;
    min-height: 2.5rem;
    max-height: 10rem;
}
#chat-container form button {
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.57rem 0.75rem;
    width: auto;

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

    border: none;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    background-color: var(--color-link);
    transition: color 0.2s;
    color: var(--color-white);
    cursor: pointer;
}


.message {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    max-width: 70%;
}
.message.own {
    margin-left: auto;
    background-color: #007bff;
    color: white;
}
.message.other {
    background-color: white;
    border: 2px solid #dee2e6;
}
.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
    opacity: 0.8;
}
.message-sender {
    font-weight: 600;
}
.message-time {
    font-size: 0.75rem;
}
.message-content {
    word-wrap: break-word;
}
.message-actions {
    margin-top: 0.5rem;
    opacity: 0;
    transition: opacity 0.2s;
}
.message:hover .message-actions {
    opacity: 1;
}
.reaction-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.25rem;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.reaction-button:hover {
    opacity: 1;
}
.message-reactions {
    margin-top: 0.5rem;
}
.reaction {
    display: inline-block;
    background-color: #e9ecef;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    margin-right: 0.25rem;
}
.system-message {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    margin: 1rem 0;
    font-size: 0.875rem;
}
.typing-indicator {
    padding: 0.5rem 1rem;
    color: #6c757d;
    font-style: italic;
    font-size: 0.875rem;
}
.online-user {
    padding: 0.5rem;
    display: flex;
    align-items: center;
}
.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
}
.status-online {
    background-color: #28a745;
}
.status-offline {
    background-color: #6c757d;
}

.room-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    column-gap: 1.61rem;
}
.room-list article{
    max-width: 20rem;
    background-color: var(--color-white);
    padding: 1rem;
    border: 2px solid var(--color-left-aside);
    border-radius: var(--border-radius);
}
.room-list h2 a {
    text-transform: capitalize;
    text-decoration: none;
}
.room-list nav > a {
    background-color: var(--color-link);
    transition: color 0.2s;
    color: var(--color-white);
    font-size: 1rem;
    padding: 0.36rem;
}
.room-list nav > a:hover {
    background-color: var(--color-link-visited);
    color: var(--color-white);
}

iframe#demo {
    border: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.recipe-main > details {
    padding: 0.81rem;
    border-radius: var(--border-radius);
}
.recipe-main > details h1{
    display: inline;
}
.recipe-main > section,
.recipe-main > nav {
    padding: 1.61rem 0 0;
}
#ingredients-list > li,
#ingredients-list > li > details > summary,
#ingredients-list > li > details > aside {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
}
#ingredients-list > li:hover {
    background: rgba(174, 198, 232, 0.5);
    box-shadow: 0 0 0.5rem rgb(174, 198, 232);
}
#ingredients-list > li [name$="-DELETE"] {
    display: none;
}
#ingredients-list ul {
    font-family: var(--font-trebuchet);
    color: #4f0ebb;
    display: inline-block;
    padding-left: 0.81rem;
    padding-right: 0.81rem;
    width: 100%;
    list-style: none;
}
#ingredients-list > li > ul > li,
#ingredients-list > li > details >summary > ul > li {
    display: inline-block;
    text-transform: capitalize;
    min-width: 10rem;
}
#ingredients-list > li > ul > li:first-child {
    width: 20rem;
}

#ingredients-list details > ul {
    display: grid;
    grid-template-columns: 6fr 2fr 1fr 1fr;
    gap: 1rem;
    align-items: start;
}
#ingredients-list details > summary {
    font-size: 1rem;
}
#ingredients-list details > ul fieldset{
    margin: 0;
}
#ingredients-list > li:has(input[name$="-DELETE"]:checked) ul > li {
    text-decoration: line-through;
}

fieldset.amount-unit-widget > fieldset {
    position: absolute;
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 0.62rem;
    padding: 0.62rem;
    border: 2px solid var(--color-left-aside);
    border-radius: var(--border-radius);
    background-color: var(--color-white);
}
fieldset.amount-unit-widget > fieldset > fieldset{
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    padding: 0.5rem;
    gap: 0.5rem;
    width: 16rem;
}
fieldset.amount-unit-widget > fieldset > fieldset:has(legend) {
    border: 2px solid var(--color-left-aside);
    border-radius: var(--border-radius);
}
fieldset.amount-unit-widget > fieldset legend,
fieldset.amount-unit-widget > fieldset label {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 0.82rem;
}
legend {
    text-align: center;
}
legend input{
    display: none;
}
legend label{
    display: inline-block;
    margin: 0;
    text-transform: capitalize;
}
fieldset:has(>legend>input[type="radio"]:checked) {
    border-color: var(--secondary-color);
}
legend:has(>input[type="radio"]:checked) {
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 0.2rem;
}
legend:has(>input[type="radio"]:checked) label{
    color: var(--color-white);
}
fieldset:has(>legend>input[type="radio"]:checked) .link-btn{
    display: none;
}
.link-btn input[type="checkbox"] {
    display: none;
}
.link-btn label {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    color: var(--color-white);
    border-radius: var(--border-radius);
    border: 2px solid var(--color-link);
    cursor: pointer;
    font-size: 0.875rem;
}
.link-btn:has(input[type="checkbox"]:checked) label {
    background-color: var(--color-link);
    color: var(--color-white);
}
fieldset:has(>.link-btn>input[type="checkbox"]:checked) {
    border-color: var(--color-link);
}
/* focus-withing supported only by 95% of browsers */
.amount-unit-widget:focus-within > fieldset {
    display: block;
}
fieldset.amount-unit-widget > fieldset fieldset{
    margin: 0;
}
fieldset.amount-unit-widget > fieldset input,
fieldset.amount-unit-widget > fieldset select {
    padding: 0.25rem;
}

#recipe-form {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-areas:
        "header header header header tags tags tags tags"
        "source source source page url url url url"
        "yield yield yield yield method method method method";
    gap: 1rem;
    align-items: start;
}

#ingredients-header ,
#ingredients-header  ul,
#ingredients-header  ul li {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    white-space: nowrap;
}
#ingredients-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}
#ingredients-header  ul {
    border-radius: var(--border-radius);
    border: 2px solid var(--color-left-aside);
    padding: 0 0.81rem;
    background: white;
}
#ingredients-header  ul li {
    gap: 0.5rem;
    font-family: "Courier New", Courier, monospace;
    font-weight: bold;
}
#ingredients-header  select {
    min-width: 5rem;
    padding: 0.25rem;
    font-weight: bold;
    border: none;
}
#ingredients-header  ul,
#ingredients-header  h3 {
    margin-left: auto;
}
#ingredients-header  input[type="number"] {
    width: 3.6rem;
    padding: 0.25rem;
}


#recipe-form > p:nth-child(2) { grid-area: header; }
#recipe-form > p:nth-child(3) { grid-area: tags; }
#recipe-form > p:nth-child(4) { grid-area: source; }
#recipe-form > p:nth-child(5) { grid-area: page; }
#recipe-form > p:nth-child(6) { grid-area: url; }
#recipe-form > p:nth-child(7) { grid-area: yield; }
#recipe-form > p:nth-child(8) { grid-area: method; }

/* All following children: each take a whole row */
#recipe-form > :nth-child(n+8) {
    grid-column: 1 / -1;
}


.tag-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-list li {
    display: inline-block;
}

.tag-list a {
    --tag-color: #8b95a8;
    font-weight: bold;
    color: var(--tag-color);
    position: relative;
    display: inline-block;
    padding: 0 0.5rem;
    margin-right: 1em;
    font-size: 0.875rem;
    border: 2px solid var(--tag-color);
    border-right: none;
    border-radius: 4px 0 0 4px;
    text-decoration: none;
    transition: color 0.2s;
}

/* Right notch extracted from tag_outline.svg */
.tag-list a::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 100%;
    height: calc(100% + 4px);
    aspect-ratio: 8 / 15.14;
    background-color: var(--tag-color);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -0.5 8 15.14'%3E%3Cpath d='M0 0C0.53 0 1.04 0.2 1.41 0.59L6.48 5.66C7.26 6.44 7.26 7.71 6.48 8.49L1.41 13.56C1.04 13.94 0.53 14.14 0 14.14' fill='none' stroke='black' stroke-width='1.25'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -0.5 8 15.14'%3E%3Cpath d='M0 0C0.53 0 1.04 0.2 1.41 0.59L6.48 5.66C7.26 6.44 7.26 7.71 6.48 8.49L1.41 13.56C1.04 13.94 0.53 14.14 0 14.14' fill='none' stroke='black' stroke-width='1.25'/%3E%3C/svg%3E");
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.tag-list a:hover {
    --tag-color: var(--primary-color, #007bff);
}

.not-so-obvious{
    position:absolute;
    left:-9999px;
    top:-9999px;
    height:0;
    width:0;
    overflow:hidden;
}
#recipe-list{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 0.3rem 1.8rem;
    margin-top: 2rem;
    padding-left: 1.8rem;
    text-transform: capitalize;
}

@media (max-width: 768px) {
    main {
        padding: 1rem 0.5rem;
    }
    dialog > article {
        margin: 0.5rem;
        max-height: 100vh;
    }
    section:has(>fieldset) {
        grid-template-columns: 1fr;
    }

    #ingredients-list > li {
        grid-template-columns: 7fr 1fr 1fr;
    }
    #ingredients-list > li > :nth-child(3) {
        grid-column: 1 / -1;
    }

    hgroup#ingredients-header {
        grid-template-columns: 1fr 1fr;
    }
    hgroup#ingredients-header  ul {
        flex-wrap: wrap;
        gap: 0.5rem;
        grid-column: 1 / -1;
        grid-row: 2;
    }
}
