/* Comments Section Panel Margin */
#comments-section {
    margin-top: 2rem;
}

/* Comment Date Inline Flex */
.comment-date {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
}

/* Delete Comment Form Inline */
.delete-comment-form {
    display: inline;
    margin: 0;
}

.delete-comment-btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    vertical-align: middle;
    cursor: pointer;
}

/* Comment Form Margin and Layout */
#comment-form {
    display: flex;
    gap: 10%;
    align-items: flex-end;
    margin-top: 1em;
}

/* Comment Textarea Styles */
.comment-textarea {
    flex-basis: 60%;
    min-width: 0;
    resize: vertical;
}

/* Comment Submit Button */
.comment-submit-btn {
    flex-basis: 30%;
    min-width: 0;
    height: 2.5em;
    font-size: 1em;
    background: #0f766e;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comment-submit-btn:hover {
    background: #115e59;
}
/* Comment form layout */
#comment-form {
    display: flex;
    gap: 10%;
    align-items: flex-end;
}
#comment-form textarea {
    flex-basis: 60%;
    min-width: 0;
    resize: vertical;
}
#comment-form button {
    flex-basis: 30%;
    min-width: 0;
    height: 2.5em;
    font-size: 1em;
    background: #0f766e;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}
#comment-form button:hover {
    background: #115e59;
}
/* Comment styling */
.comment {
    border: 1px solid #e5ded6;
    border-radius: 10px;
    padding: 0.75em 1em;
    margin-bottom: 1em;
    background: #fff;
    box-shadow: 0 2px 6px rgba(31,41,51,0.03);
}
body {
    margin: 0;
    background: #f6f3ee;
    color: #1f2933;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

a {
    color: #0f766e;
}

a:hover {
    color: #115e59;
}

img {
    max-width: 100%;
    height: auto;
}

.page-shell {
    width: min(100% - 2rem, 700px);
    margin: 0 auto;
}

.site-header {
    padding: 1rem 0;
}

.header-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #ffffff;
    border: 1px solid #e5ded6;
    border-radius: 18px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.brand-link {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

.brand-tagline {
    margin: 0.2rem 0 0;
    color: #52606d;
    font-size: 0.95rem;
}

.site-nav,
.account-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
}

.site-nav a {
    font-weight: 700;
    text-decoration: none;
}

.account-name {
    color: #52606d;
    font-size: 0.95rem;
}

.site-main {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #ffffff;
    border: 1px solid #e5ded6;
    border-radius: 20px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.hero {
    margin-bottom: 1.5rem;
}

.hero h1 {
    margin: 0.25rem 0 0.5rem;
    font-size: clamp(2rem, 4vw, 2.5rem);
    line-height: 1.15;
}

.hero--compact h1 {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
}

.eyebrow {
    margin: 0 0 0.2rem;
    color: #0f766e;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 1.5rem 0 1rem;
}

.section-heading h2,
.panel h2 {
    margin: 0;
}

.section-heading p {
    margin: 0.25rem 0 0;
    color: #52606d;
}

.text-link {
    font-weight: 700;
}

.panel {
    margin-bottom: 1rem;
    padding: 1rem 1.1rem;
    background: #fcfbf8;
    border: 1px solid #e7dfd5;
    border-radius: 16px;
}

.panel--narrow {
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}

.search-form label,
.login-form label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 700;
}

.search-form__row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

input[type="search"],
input[type="text"],
input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem 0.9rem;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font: inherit;
}

.search-form__row input {
    flex: 1 1 14rem;
}

button {
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    background: #0f766e;
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

button:hover {
    background: #115e59;
}

.recipe-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recipe-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #fcfbf8;
    border: 1px solid #e7dfd5;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.recipe-card__media {
    flex: 0 0 180px;
    text-decoration: none;
}

.recipe-card__media img,
.detail-image-card img,
.profile-banner__media img {
    display: block;
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.recipe-card__placeholder,
.avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #334155;
    font-weight: 700;
}

.recipe-card__placeholder {
    min-height: 140px;
    border-radius: 12px;
}

.recipe-card__content {
    flex: 1 1 auto;
    min-width: 0;
}

.recipe-card__content h3 {
    margin: 0.25rem 0 0.5rem;
}

.recipe-card__content p {
    margin-top: 0;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0;
    margin: 0.75rem 0 0;
}

.tag-list span {
    display: inline-block;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: #e6fffa;
    color: #115e59;
    font-size: 0.85rem;
}

.empty-state {
    margin: 0;
    padding: 1rem;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
}

.profile-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.profile-banner__media {
    flex: 0 0 110px;
}

.profile-banner__media img,
.avatar-placeholder {
    width: 110px;
    height: 110px;
}

.avatar-placeholder {
    border-radius: 50%;
    font-size: 2rem;
}

.profile-banner__content {
    flex: 1 1 18rem;
}

.profile-handle {
    margin-top: -0.25rem;
    color: #52606d;
}

.recipe-detail {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-image-card {
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid #e7dfd5;
}

.recipe-lead {
    margin-top: 0;
    font-size: 1.05rem;
}

.info-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.info-strip > div {
    flex: 1 1 120px;
    padding: 0.75rem 0.85rem;
    background: #ffffff;
    border: 1px solid #e7dfd5;
    border-radius: 12px;
}

.info-label {
    display: block;
    margin-bottom: 0.2rem;
    color: #52606d;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.detail-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.detail-columns > .panel {
    flex: 1 1 280px;
    margin-bottom: 0;
}

.ingredient-list,
.step-list {
    display: grid;
    gap: 0.6rem;
    margin-bottom: 0;
}

.ingredient-list p,
.step-list p {
    margin: 0;
}

.form-error {
    padding: 0.75rem 0.9rem;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: 10px;
}

.login-form p {
    margin: 0 0 1rem;
}

@media (max-width: 640px) {
    .header-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .recipe-card {
        flex-direction: column;
    }

    .recipe-card__media {
        flex-basis: auto;
    }

    .site-main {
        padding: 1rem;
    }
}