/* =========================================
   VOSS KITCHEN
   Global Styles
   ========================================= */


/* -----------------------------------------
   CSS Variables
   ----------------------------------------- */

:root {
	--background: #f6f3ed;
	--surface: #fbfaf7;
	--surface-alt: #eeeae1;

	--text: #292722;
	--text-muted: #706c63;

	--accent: #765f49;
	--accent-dark: #594632;

	--border: #ddd7cc;

	--max-width: 1180px;

	--serif: Georgia, "Times New Roman", serif;
	--sans: -apple-system, BlinkMacSystemFont, "Segoe UI",
		Helvetica, Arial, sans-serif;
}


/* -----------------------------------------
   Reset / Base
   ----------------------------------------- */

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;

	background: var(--background);
	color: var(--text);

	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.6;
}

img {
	display: block;
	max-width: 100%;
}

a {
	color: inherit;
	text-decoration: none;
}

button,
input {
	font: inherit;
}


/* -----------------------------------------
   Utility
   ----------------------------------------- */

.container {
	width: min(calc(100% - 40px),
			var(--max-width));

	margin-inline: auto;
}

.visually-hidden {
	position: absolute;

	width: 1px;
	height: 1px;

	padding: 0;
	margin: -1px;

	overflow: hidden;
	clip: rect(0, 0, 0, 0);

	white-space: nowrap;
	border: 0;
}


/* -----------------------------------------
   Header
   ----------------------------------------- */

.site-header {
	border-bottom: 1px solid var(--border);

	background: rgba(246, 243, 237, 0.96);

	position: sticky;
	top: 0;
	z-index: 100;
}

.header-inner {
	min-height: 78px;

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

	gap: 30px;
}


/* Logo */

.site-logo {
	display: flex;
	align-items: baseline;
	gap: 7px;

	white-space: nowrap;
}

.logo-name {
	font-family: var(--serif);

	font-size: 1.7rem;
	font-weight: 600;
	letter-spacing: -0.03em;
}

.logo-kitchen {
	color: var(--accent);

	font-size: 0.85rem;
	font-weight: 600;

	letter-spacing: 0.13em;
	text-transform: uppercase;
}


/* Navigation */

.main-nav {
	display: flex;
	align-items: center;
	gap: 28px;
}

.nav-link {
	position: relative;

	color: var(--text-muted);

	font-size: 0.9rem;
	font-weight: 500;
}

.nav-link:hover {
	color: var(--text);
}

.nav-link.active {
	color: var(--text);
}

.nav-link.active::after {
	content: "";

	position: absolute;

	left: 0;
	right: 0;
	bottom: -8px;

	height: 1px;

	background: var(--accent);
}


/* -----------------------------------------
   Hero
   ----------------------------------------- */

.hero {
	padding: 100px 0 90px;

	border-bottom: 1px solid var(--border);

	background: var(--surface);
}

.hero-inner {
	max-width: 760px;

	text-align: center;
}


/* Small section label */

.eyebrow {
	margin: 0 0 10px;

	color: var(--accent);

	font-size: 0.72rem;
	font-weight: 700;

	letter-spacing: 0.16em;
	text-transform: uppercase;
}


/* Main heading */

.hero h1 {
	margin: 0;

	font-family: var(--serif);
	font-size: clamp(3rem, 7vw, 5.25rem);

	font-weight: 400;
	line-height: 1.05;

	letter-spacing: -0.045em;
}

.hero-text {
	max-width: 540px;

	margin: 25px auto 35px;

	color: var(--text-muted);

	font-size: 1.05rem;
}


/* Search */

.search-wrapper {
	max-width: 540px;

	margin: 0 auto;
}

.search-input {
	width: 100%;

	padding: 15px 20px;

	border: 1px solid var(--border);
	border-radius: 3px;

	background: var(--background);

	color: var(--text);

	outline: none;

	transition:
		border-color 150ms ease,
		box-shadow 150ms ease;
}

.search-input::placeholder {
	color: #969188;
}

.search-input:focus {
	border-color: var(--accent);

	box-shadow:
		0 0 0 3px rgba(118, 95, 73, 0.1);
}


/* -----------------------------------------
   About Page
   ----------------------------------------- */

.about-text {
	max-width: 700px;

	margin: 0 auto;

	font-size: 1.05rem;
	line-height: 1.7;
}


/* -----------------------------------------
   Recipes
   ----------------------------------------- */

.recipes-section {
	padding: 80px 0 100px;
}

.section-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;

	margin-bottom: 35px;
}

.section-heading h2 {
	margin: 0;

	font-family: var(--serif);

	font-size: 2.5rem;
	font-weight: 400;

	line-height: 1.1;
}

.recipe-count {
	color: var(--text-muted);

	font-size: 0.85rem;
}


/* Recipe Grid */

.recipe-grid {
	display: grid;

	grid-template-columns:
		repeat(3, minmax(0, 1fr));

	gap: 28px;
}


/* Empty State */

.empty-state {
	grid-column: 1 / -1;

	padding: 80px 30px;

	border: 1px dashed var(--border);

	text-align: center;
}

.empty-state-icon {
	margin-bottom: 15px;

	color: var(--accent);

	font-family: var(--serif);
	font-size: 2rem;
}

.empty-state h3 {
	margin: 0 0 8px;

	font-family: var(--serif);

	font-size: 1.5rem;
	font-weight: 400;
}

.empty-state p {
	max-width: 430px;

	margin: 0 auto;

	color: var(--text-muted);
}


/* -----------------------------------------
   Recipe Card
   ----------------------------------------- */

.recipe-card {
	overflow: hidden;

	border: 1px solid var(--border);

	background: var(--surface);

	transition:
		transform 180ms ease,
		box-shadow 180ms ease;
}

.recipe-card:hover {
	transform: translateY(-2px);

	box-shadow:
		0 8px 24px rgba(40, 35, 28, 0.08);
}

.recipe-card-image {
	aspect-ratio: 4 / 3;

	overflow: hidden;

	background: var(--surface-alt);
}

.recipe-card-image img {
	width: 100%;
	height: 100%;

	object-fit: cover;
}

.recipe-card-content {
	padding: 22px;
}

.recipe-card-category {
	margin-bottom: 6px;

	color: var(--accent);

	font-size: 0.68rem;
	font-weight: 700;

	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.recipe-card-title {
	margin: 0;

	font-family: var(--serif);

	font-size: 1.5rem;
	font-weight: 400;

	line-height: 1.2;
}

.recipe-card-description {
	margin: 10px 0 0;

	color: var(--text-muted);

	font-size: 0.9rem;
}


/* -----------------------------------------
   Footer
   ----------------------------------------- */

.site-footer {
	border-top: 1px solid var(--border);

	background: var(--surface);
}

.footer-inner {
	min-height: 90px;

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

	gap: 20px;
}

.footer-inner p {
	margin: 0;

	color: var(--text-muted);

	font-size: 0.8rem;
}

.footer-tagline {
	font-family: var(--serif);
	font-style: italic;
}


/* -----------------------------------------
   Responsive
   ----------------------------------------- */

@media (max-width: 800px) {

	.hero {
		padding: 75px 0 70px;
	}

	.recipe-grid {
		grid-template-columns:
			repeat(2, minmax(0, 1fr));
	}
}


@media (max-width: 600px) {

	.container {
		width: min(calc(100% - 28px),
				var(--max-width));
	}

	.header-inner {
		min-height: 68px;
	}

	.logo-name {
		font-size: 1.45rem;
	}

	.logo-kitchen {
		font-size: 0.72rem;
	}

	.main-nav {
		gap: 16px;
	}

	.nav-link {
		font-size: 0.8rem;
	}

	.hero {
		padding: 65px 0 60px;
	}

	.hero h1 {
		font-size: 3.2rem;
	}

	.hero-text {
		font-size: 0.95rem;
	}

	.recipes-section {
		padding: 60px 0 75px;
	}

	.section-heading {
		align-items: end;
	}

	.section-heading h2 {
		font-size: 2rem;
	}

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

	.footer-inner {
		min-height: 100px;

		flex-direction: column;
		justify-content: center;

		text-align: center;
	}
}

/* =========================================
   RECIPE DETAIL PAGE
   ========================================= */

.recipe-detail-section {
    padding: 3rem 0 5rem;
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--accent);
    font-size: 0.95rem;
}

.back-link:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

.recipe-detail {
    max-width: 980px;
    margin: 0 auto;
	padding: 3rem;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 4px;
}

/* =========================================
   RECIPE HERO
   ========================================= */

.recipe-detail-hero {
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.recipe-detail-image {
    width: 100%;
    overflow: hidden;
    border-radius: 4px;
    background: var(--surface-alt);
}

.recipe-detail-image img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.recipe-detail-content {
    padding: 0;
}

.recipe-detail-header {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.recipe-detail-title {
    margin: 0.5rem 0 1rem;
    font-family: var(--serif);
    font-size: clamp(2.2rem, 4vw, 3.25rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--text);
}

.recipe-detail-description {
    max-width: 650px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* =========================================
   RECIPE META
   ========================================= */

.recipe-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    margin: 2rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.recipe-meta-item {
    min-width: 100px;
    padding: 0.4rem 1rem;
    text-align: center;
    border-right: 1px solid var(--border);
}

.recipe-meta-item:last-child {
    border-right: none;
}

.recipe-meta-label {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.recipe-meta-value {
    color: var(--text);
    font-weight: 600;
}

/* =========================================
   RECIPE ACTIONS
   ========================================= */

.recipe-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* =========================================
   INGREDIENTS + INSTRUCTIONS
   ========================================= */

.recipe-columns {
    display: grid;
    grid-template-columns: minmax(190px, 0.8fr) minmax(0, 1.5fr);
    gap: 3.5rem;
    margin-top: 0;
}

.recipe-columns h2,
.recipe-notes h2 {
    margin: 0 0 1.25rem;
    font-family: var(--serif);
    font-size: 1.7rem;
    font-weight: 400;
    color: var(--text);
}

.recipe-ingredients,
.recipe-instructions {
    min-width: 0;
}

.ingredients-list {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--text);
}

.ingredients-list li {
    margin-bottom: 0.7rem;
    line-height: 1.5;
}

.ingredients-list li:last-child {
    margin-bottom: 0;
}

.instructions-text {
    color: var(--text);
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.instructions-text p {
    margin: 0 0 1.25rem;
}

.instructions-text p:last-child {
    margin-bottom: 0;
}

/* =========================================
   RECIPE NOTES
   ========================================= */

.recipe-notes {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.recipe-notes-text {
    color: var(--text-muted);
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.recipe-notes-text p {
    margin: 0 0 1rem;
}

.recipe-notes-text p:last-child {
    margin-bottom: 0;
}

.recipe-placeholder {
    color: var(--text-muted);
    font-style: italic;
}

/* =========================================
   RECIPE ERROR / LOADING
   ========================================= */

.recipe-error {
    max-width: 600px;
    margin: 4rem auto;
    padding: 3rem;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
}

.recipe-error h1 {
    margin-top: 0;
    font-family: var(--serif);
    font-weight: 400;
}

.recipe-error p {
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.recipe-loading {
    padding: 4rem 0;
    text-align: center;
    color: var(--text-muted);
}

/* =========================================
   RESPONSIVE RECIPE DETAIL
   ========================================= */

@media (max-width: 800px) {

    .recipe-detail-hero {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2.75rem;
    }

    .recipe-detail-image img {
        aspect-ratio: 16 / 10;
    }

    .recipe-detail-content {
        padding: 2.5rem;
    }

    .recipe-detail-title {
        font-size: clamp(2.2rem, 7vw, 3rem);
    }

    .recipe-columns {
        grid-template-columns: 1fr;
        gap: 2.75rem;
    }
}

@media (max-width: 700px) {

    .recipe-detail-section {
        padding: 2rem 0 3rem;
    }

    .back-link {
        margin-bottom: 1.5rem;
    }

    .recipe-detail-content {
        padding: 2rem 1.5rem;
    }

    .recipe-detail-description {
        font-size: 0.98rem;
    }

    .recipe-meta {
        margin: 1.75rem 0;
    }

    .recipe-meta-item {
        min-width: 100px;
        padding: 0.5rem 0.75rem;
    }

    .recipe-columns h2,
    .recipe-notes h2 {
        font-size: 1.55rem;
    }
}

@media (max-width: 480px) {

    .recipe-detail-content {
        padding: 1.5rem 1.15rem;
    }

    .recipe-detail-image img {
        aspect-ratio: 4 / 3;
    }

    .recipe-detail-title {
        font-size: clamp(2rem, 9vw, 2.75rem);
    }

    .recipe-meta {
        justify-content: stretch;
    }

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

    .recipe-meta-label {
        font-size: 0.68rem;
    }

    .recipe-meta-value {
        font-size: 0.9rem;
    }

    .recipe-actions {
        flex-direction: column;
    }

    .recipe-actions .button,
    .recipe-actions .secondary-button,
    .recipe-actions .danger-button {
        width: 100%;
    }

    .ingredients-list {
        padding-left: 1.15rem;
    }
}

/* =========================================
   AUTHENTICATION
   ========================================= */

.auth-section {
	padding: 80px 0 100px;
	min-height: calc(100vh - 168px);

	display: flex;
	align-items: center;
}

.auth-card {
	width: min(100%, 480px);
	margin: 0 auto;

	padding: 3rem;

	background: var(--surface);

	border: 1px solid var(--border);
}

.auth-header {
	margin-bottom: 2rem;
	text-align: center;
}

.auth-header h1 {
	margin: 0 0 0.75rem;

	font-family: var(--serif);
	font-size: 2.75rem;
	font-weight: 400;
	line-height: 1.1;
}

.auth-header p:last-child {
	margin: 0;

	color: var(--text-muted);
}

.auth-form {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.form-field {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.form-field label {
	color: var(--text);
	font-size: 0.85rem;
	font-weight: 600;
}

.form-field input {
	width: 100%;

	padding: 13px 14px;

	border: 1px solid var(--border);
	border-radius: 3px;

	background: var(--background);
	color: var(--text);

	outline: none;

	transition:
		border-color 150ms ease,
		box-shadow 150ms ease;
}

.form-field input:focus {
	border-color: var(--accent);

	box-shadow:
		0 0 0 3px rgba(118, 95, 73, 0.1);
}

.auth-submit {
	padding: 14px 20px;

	border: 1px solid var(--accent);
	border-radius: 3px;

	background: var(--accent);
	color: #fff;

	font-weight: 600;

	cursor: pointer;

	transition:
		background 150ms ease,
		border-color 150ms ease;
}

.auth-submit:hover {
	background: var(--accent-dark);
	border-color: var(--accent-dark);
}

.auth-submit:disabled {
	opacity: 0.6;
	cursor: wait;
}

.auth-message {
	min-height: 1.5em;

	text-align: center;

	font-size: 0.9rem;
}

.auth-message.error {
	color: #9b3d32;
}

.auth-message.pending {
	color: var(--accent);
}

.auth-forgot-password {
    margin-top: -0.5rem;
    margin-bottom: 1.25rem;
    text-align: right;
    font-size: 0.9rem;
}

.auth-forgot-password a {
    color: var(--accent);
}

.auth-forgot-password a:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

.auth-back-link {
	margin-top: 1.25rem;
	text-align: center;
	font-size: 0.9rem;
}

.auth-back-link a {
	color: var(--accent);
}

.auth-back-link a:hover {
	color: var(--accent-dark);
	text-decoration: underline;
}

.account-section {
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 1px solid var(--border);
}

.account-section h2 {
	margin-bottom: 0.75rem;
}

.account-section p {
	margin-bottom: 1.25rem;
}

.account-section .secondary-button {
	margin-top: 1.25rem;
}

.account-info {
	display: grid;
	gap: 1rem;
}

/* Mobile */

@media (max-width: 600px) {

	.auth-section {
		padding: 50px 0 70px;
	}

	.auth-card {
		padding: 2rem 1.5rem;
	}

	.auth-header h1 {
		font-size: 2.35rem;
	}

}

/* =========================================
   ADMIN
   ========================================= */

.admin-section {
  padding: 3rem 0 5rem;
}

.admin-header {
  margin-bottom: 2rem;
}

.admin-header h1 {
  margin-bottom: 0.4rem;
}

.eyebrow {
  margin: 0 0 0.35rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-panel {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.admin-panel-header {
  margin-bottom: 1.5rem;
}

.admin-panel-header h2 {
  margin: 0 0 0.35rem;
}

.admin-panel-header p {
  margin: 0;
  color: var(--text-muted);
}

.admin-loading,
.admin-empty {
  padding: 1.5rem;
  text-align: center;
  color: var(--text-muted);
}

.admin-table-wrapper {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 0.9rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.status-approved {
  background: #e4eee2;
}

.status-pending {
  background: #f1e8d8;
}

.status-admin {
  background: #e6e0d8;
}

.status-user {
  background: var(--surface-alt);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-button {
  display: inline-block;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface-alt);
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  text-decoration: none;
  cursor: pointer;
}

.admin-button:hover {
  background: var(--border);
}

@media (max-width: 700px) {
  .admin-section {
    padding-top: 2rem;
  }

  .admin-panel {
    padding: 1rem;
  }

  .admin-table th,
  .admin-table td {
    padding: 0.7rem 0.5rem;
  }
}

/* =========================================
   RECIPE FORM
   ========================================= */

.recipe-form-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 0 5rem;
}

.recipe-form-header {
  margin-bottom: 2rem;
}

.recipe-form-header h1 {
  margin-bottom: 0.4rem;
}

.recipe-form-header p:last-child {
  color: var(--text-muted);
}

.recipe-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.recipe-form fieldset {
  margin: 0;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.recipe-form legend {
  padding: 0 0.5rem;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
}

.recipe-form .form-field {
  margin-bottom: 1.25rem;
}

.recipe-form .form-field:last-child {
  margin-bottom: 0;
}

.recipe-form label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.recipe-form input[type="text"],
.recipe-form input[type="number"],
.recipe-form textarea,
.recipe-form input[type="file"] {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.recipe-form textarea {
  resize: vertical;
  line-height: 1.5;
}

.recipe-form input:focus,
.recipe-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.form-help {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.ingredients-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.ingredient-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.ingredient-input {
  flex: 1;
}

.remove-ingredient {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface-alt);
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.remove-ingredient:hover {
  background: var(--border);
}

.primary-button,
.secondary-button {
  display: inline-block;
  padding: 0.7rem 1.1rem;
  border-radius: 5px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.primary-button {
  border: 1px solid var(--accent-dark);
  background: var(--accent);
  color: white;
}

.primary-button:hover {
  background: var(--accent-dark);
}

.primary-button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.secondary-button {
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text);
}

.secondary-button:hover {
  background: var(--border);
}

.recipe-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.image-preview-container {
  display: none;
  margin-top: 1rem;
  max-width: 500px;
}

.image-preview-container.visible {
  display: block;
}

.image-preview {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--border);
}

@media (max-width: 700px) {
  .recipe-form-section {
    padding-top: 2rem;
  }

  .recipe-form fieldset {
    padding: 1rem;
  }

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

  .recipe-form-actions {
    flex-direction: column-reverse;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }
}

.recipe-actions {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin: 1.5rem 0 2rem;
}

.danger-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1.25rem;
	border: 1px solid #a94442;
	border-radius: 4px;
	background: transparent;
	color: #a94442;
	font: inherit;
	cursor: pointer;
}

.danger-button:hover {
	background: #a94442;
	color: white;
}

.danger-button:disabled {
	opacity: 0.6;
	cursor: wait;
}

/* =========================================
   PRINT RECIPE
   ========================================= */

@media print {

    @page {
        size: Letter;
        margin: 0.55in;
    }

    html {
        scroll-behavior: auto;
    }

    body {
        background: #ffffff;
        color: #000000;
        font-size: 10.5pt;
        line-height: 1.45;
    }

    .site-header,
    .site-footer,
    .back-link,
    .recipe-actions {
        display: none !important;
    }

    .recipe-detail-section {
        padding: 0;
    }

    .container {
        width: 100%;
        max-width: none;
        margin: 0;
    }

    .recipe-detail {
        max-width: none;
        margin: 0;
    }

    /* Top photo + recipe information */

    .recipe-detail-hero {
        display: grid;
        grid-template-columns: 2.25in minmax(0, 1fr);
        gap: 0.35in;
        align-items: center;
        margin-bottom: 0.3in;
    }

    .recipe-detail-image {
        width: 2.25in;
        height: 2.25in;
        margin: 0;
        border-radius: 0;
        background: none;
    }

    .recipe-detail-image img {
        width: 100%;
        height: 100%;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }

    .recipe-detail-content {
        padding: 0;
        background: #ffffff;
        border: none;
    }

    .recipe-detail-header {
        max-width: none;
        text-align: left;
    }

    .recipe-detail-title {
        margin: 0.15rem 0 0.35rem;
        font-family: Georgia, "Times New Roman", serif;
        font-size: 22pt;
        line-height: 1.1;
        letter-spacing: normal;
        color: #000000;
    }

    .recipe-detail-description {
        max-width: none;
        margin: 0;
        font-size: 10pt;
        line-height: 1.45;
        color: #333333;
    }

    /* Recipe metadata */

    .recipe-meta {
        justify-content: flex-start;
        margin: 0.65rem 0 0;
        padding: 0.55rem 0;
        border-top: 1px solid #999999;
        border-bottom: 1px solid #999999;
    }

    .recipe-meta-item {
        min-width: 0;
        padding: 0.2rem 0.75rem;
        border-right: 1px solid #cccccc;
    }

    .recipe-meta-item:first-child {
        padding-left: 0;
    }

    .recipe-meta-label {
        margin-bottom: 0.1rem;
        color: #555555;
        font-size: 6.5pt;
    }

    .recipe-meta-value {
        color: #000000;
        font-size: 9pt;
    }

    /* Ingredients + instructions */

    .recipe-columns {
        grid-template-columns: 1fr 1.8fr;
        gap: 0.4in;
        margin-top: 0;
    }

    .recipe-columns h2,
    .recipe-notes h2 {
        margin-bottom: 0.45rem;
        font-family: Georgia, "Times New Roman", serif;
        font-size: 14pt;
        color: #000000;
    }

    .ingredients-list {
        padding-left: 1.05rem;
        color: #000000;
    }

    .ingredients-list li {
        margin-bottom: 0.25rem;
        line-height: 1.35;
    }

    .instructions-text {
        color: #000000;
        line-height: 1.45;
    }

    .instructions-text p {
        margin-bottom: 0.6rem;
    }

    /* Notes */

    .recipe-notes {
        margin-top: 0.8in;
        padding-top: 0.2in;
        border-top: 1px solid #999999;
    }

    .recipe-notes-text {
        color: #333333;
        line-height: 1.45;
    }

    .recipe-notes-text p {
        margin-bottom: 0.6rem;
    }

    /* Avoid awkward breaks */

    .recipe-detail-hero,
    .recipe-meta,
    .recipe-ingredients,
    .recipe-instructions,
    .recipe-notes {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .ingredients-list li,
    .instructions-text p {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .recipe-placeholder {
        display: none;
    }

    a {
        color: inherit;
        text-decoration: none;
    }
}


/* =========================================
   My Recipes — Account Page
   ========================================= */

.my-recipes-list {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.my-recipe-item {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
}

.my-recipe-image {
    display: block;
    width: 76px;
    height: 76px;
    object-fit: cover;
    border-radius: 4px;
}

.my-recipe-image-placeholder {
    background: var(--surface-alt);
}

.my-recipe-info {
    min-width: 0;
}

.my-recipe-info h3 {
    margin: 0 0 6px;
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 400;
    overflow-wrap: anywhere;
}

.my-recipe-info h3 a {
    color: var(--text);
    text-decoration: none;
}

.my-recipe-info h3 a:hover {
    color: var(--accent);
}

.my-recipe-category,
.my-recipe-date {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.my-recipe-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.my-recipes-empty {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
}

.my-recipes-empty p {
    color: var(--text-muted);
    line-height: 1.7;
}

.my-recipes-empty .secondary-button {
    display: inline-block;
    margin-top: 8px;
}

/* =========================================
   Recipe Contributor Credit
   ========================================= */

.recipe-contributor {
    margin: 14px 0 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.recipe-contributor span {
    color: var(--text);
    font-weight: 600;
}

@media (max-width: 600px) {
    .my-recipe-item {
        grid-template-columns: 60px minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
    }

    .my-recipe-image {
        width: 60px;
        height: 60px;
    }

    .my-recipe-actions {
        grid-column: 2;
    }
}

/* =========================================
   Account Page Specifics
   ========================================= */

/* Wider layout for the Account page only */
.auth-card.account-card {
    width: min(100%, 740px);
}
