/* 
    center the header and main content box on the page Done?
    use a reasonable maximum width for readability Done?
    include consistent spacing between major sectionsDone
    visually separate cards from the page background Done
    group related content clearly Done
*/
#headID {
    display: flex;
    justify-content:center;
    gap: 1rem;
    /* By adding margin 0 auto, was able to fix offcentering caused by max-width */
    margin: 0 auto; 
    align-items: center;
    max-width:700px;
}

body {
    background-color: #f5f1e9;
    margin: 0;
    padding: 20px;
    font-family: sans-serif;
    color: #2f251b; 
}

#headID .nav-padding {
    padding: 2rem;
}

h1 {
    display: flex;
    justify-content:center;
    margin:0px;
    padding: 2%;
}

.card {
    display:flex;
    border-style:ridge;
    justify-content:space-between;
    padding: 2%;
    margin:5px auto;
    align-items:center;
    /* visually separate cards from the page background */
    background-color: rgb(224, 163, 94);
    max-width:700px;
}
a {
    text-decoration: none;
    color: brown;
}

a:hover {
    text-decoration: underline;
}

ul {
    list-style:none;
}

.recipe-tags {
    max-width: 250px;
    min-width: 72px;
    border-style:ridge;
}

.recipe-tags ul {
    padding-top: 1px;
    padding-bottom: 1px;
}

.recipe-info {
    max-width: 250px;
    border-style:ridge;
}

.recipe-info p {
    padding-left: 1rem;
}

.recipe-columns section {
    display: flex;
    border-style:ridge;
    flex-direction:column;
    gap: 1rem;
}

.recipe-columns h2 {
    padding-left: 1rem;
}

.margin-recipe {
    margin: 1rem;
}

.bulleted {
    list-style:circle;
}

.search-block {
    display: flex;
    flex-direction:row;
    gap: 1rem;
    padding: 2%;
    margin:5px auto;
}

.comments-shell {
    max-width: 760px;
    border: 2px solid #c6b6a1;
    border-radius: 18px;
    padding: 1.25rem;
    background: linear-gradient(180deg, #fffdf9 0%, #f3eadf 100%);
    box-shadow: 0 12px 30px rgba(63, 47, 26, 0.08);
}

.comments-shell__header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.comments-shell__title-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    width: fit-content;
    white-space: nowrap;
}

.comments-shell__title {
    margin: 0;
    font-size: 1.15rem;
    display: inline-block;
}

.comments-shell__hint {
    margin: 0;
    color: #6d5d47;
    font-size: 0.95rem;
}

.comments-refresh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #2f251b;
    border-radius: 999px;
    min-width: 2.4rem;
    height: 2.4rem;
    padding: 0 0.9rem;
    background: #2f251b;
    color: #fef7ee;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.comments-refresh:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(47, 37, 27, 0.18);
}

.comments-refresh.is-loaded,
.comments-refresh[data-state="loaded"] {
    background: #efe4d3;
    color: #2f251b;
    border-color: #b9ab91;
}

.comments-shell__panel {
    margin-top: 1rem;
}

.comment-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comment-panel__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    border-bottom: 1px solid #d7c7b1;
    padding-bottom: 0.75rem;
}

.comment-panel__title {
    margin: 0;
    padding: 0;
    justify-content: flex-start;
    font-size: 1.25rem;
}

.comment-panel__count {
    margin: 0;
    color: #6d5d47;
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.comment-card {
    border: 1px solid #d9ccb7;
    border-radius: 14px;
    padding: 1rem 1.1rem;
    background: #fff;
    box-shadow: 0 6px 18px rgba(63, 47, 26, 0.06);
}

.comment-card__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
    color: #6d5d47;
    font-size: 0.92rem;
}

.comment-card__author {
    font-weight: 700;
    color: #2f251b;
}

.comment-card__body {
    margin: 0;
    line-height: 1.55;
    white-space: normal;
}

.comment-empty,
.comment-signin,
.comment-form__error {
    margin: 0;
    padding: 0.9rem 1rem;
    border: 1px dashed #cbb99f;
    border-radius: 12px;
    background: #f8f1e7;
    color: #4d4031;
}

.comment-form-shell {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid #d9ccb7;
    border-radius: 14px;
    background: #fff;
}

.comment-form__label {
    font-weight: 700;
    color: #2f251b;
}

.comment-form textarea {
    width: 100%;
    min-height: 8rem;
    resize: vertical;
    padding: 0.9rem 1rem;
    border: 1px solid #b9ab91;
    border-radius: 12px;
    font: inherit;
    box-sizing: border-box;
}

.comment-form button {
    align-self: flex-start;
    border: 1px solid #2f251b;
    border-radius: 999px;
    padding: 0.7rem 1.15rem;
    background: #2f251b;
    color: #fef7ee;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.comment-form button:hover {
    background: #4a3a2b;
}

.comment-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: #6d5d47;
}

.comment-pagination__link {
    font-weight: 700;
}

.comment-pagination__status {
    font-size: 0.95rem;
}

.comment-pagination__spacer {
    width: 1px;
}

 @media (min-width: 700px) {
.recipe-columns section{
    display: flex;
    flex-direction: row;
    gap: 2rem;
}
}
