:root {
	--ys-color-bg: #f8f7f3;
	--ys-color-surface: #ffffff;
	--ys-color-surface-alt: #f1eee6;
	--ys-color-text: #1d1b18;
	--ys-color-text-soft: #5f5951;
	--ys-color-brand: #c95f24;
	--ys-color-brand-strong: #9f4618;
	--ys-color-border: #ded9cf;
	--ys-shadow-soft: 0 8px 24px rgba(29, 27, 24, 0.08);
	--ys-radius-sm: 8px;
	--ys-radius-md: 14px;
	--ys-radius-lg: 22px;
	--ys-space-1: 0.25rem;
	--ys-space-2: 0.5rem;
	--ys-space-3: 0.75rem;
	--ys-space-4: 1rem;
	--ys-space-5: 1.5rem;
	--ys-space-6: 2rem;
	--ys-space-7: 3rem;
	--ys-max-width: 1180px;
	--ys-legacy-width: 960px;
	--ys-font-display: "Playfair Display", Georgia, serif;
	--ys-font-body: "Source Sans 3", "Helvetica Neue", sans-serif;
}

body {
	background: var(--ys-color-bg);
	color: var(--ys-color-text);
	font-family: var(--ys-font-body);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--ys-font-display);
	line-height: 1.2;
}

.ys-container {
	max-width: var(--ys-max-width);
	margin-inline: auto;
	padding-inline: var(--ys-space-4);
}

.ys-surface {
	background: var(--ys-color-surface);
	border: 1px solid var(--ys-color-border);
	border-radius: var(--ys-radius-md);
	box-shadow: var(--ys-shadow-soft);
}

.ys-focus-ring:focus-visible {
	outline: 3px solid rgba(201, 95, 36, 0.55);
	outline-offset: 2px;
}

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

#navigation-wrapper {
	position: sticky;
	top: 0;
	z-index: 30;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.home #wrapper {
	width: min(var(--ys-max-width), calc(100% - (var(--ys-space-4) * 2)));
	background: transparent;
	overflow: visible;
	padding-bottom: var(--ys-space-7);
	margin-top: var(--ys-space-6);
	margin-bottom: var(--ys-space-6);
}

.home #main.ys-home-main {
	width: 100%;
	float: none;
	overflow: visible;
	clear: none;
}

.home #sidebar {
	display: none;
}

.ys-home-hero {
	padding: var(--ys-space-6);
	margin-bottom: var(--ys-space-7);
	background: var(--ys-color-surface);
}

.ys-home-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
	gap: var(--ys-space-6);
	align-items: stretch;
}

.ys-home-hero-main {
	min-width: 0;
}

.ys-home-hero-side {
	padding: var(--ys-space-5);
	border: 1px solid var(--ys-color-border);
	border-radius: var(--ys-radius-md);
	background: var(--ys-color-surface-alt);
	align-self: stretch;
}

.ys-home-hero-side h2 {
	font-size: 1.35rem;
	margin-bottom: var(--ys-space-4);
}

.ys-home-hero-side ul {
	margin: 0;
	padding-left: 18px;
	line-height: 1.7;
	color: var(--ys-color-text-soft);
}

.ys-home-hero-side li {
	margin-bottom: 10px;
}

.ys-home-kicker {
	font-size: 0.78rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ys-color-text-soft);
	margin-bottom: var(--ys-space-3);
}

.ys-home-hero h1 {
	font-size: clamp(2rem, 6vw, 3.5rem);
	margin-bottom: var(--ys-space-4);
	max-width: 17ch;
	color: var(--ys-color-text);
}

.ys-home-intro {
	margin-bottom: var(--ys-space-5);
	font-size: 1.06rem;
	line-height: 1.6;
	max-width: 56ch;
	color: var(--ys-color-text-soft);
}

.ys-hero-search {
	display: flex;
	gap: var(--ys-space-3);
	align-items: center;
	flex-wrap: wrap;
}

.ys-home-search-note {
	margin-top: var(--ys-space-3);
	font-size: 0.92rem;
	color: var(--ys-color-text-soft);
}

.ys-hero-search input {
	flex: 1 1 520px;
	min-height: 58px;
	padding: 0 var(--ys-space-5);
	border: 1px solid var(--ys-color-border);
	border-radius: var(--ys-radius-md);
	font-size: 1.05rem;
	background: var(--ys-color-surface);
	color: var(--ys-color-text);
	box-sizing: border-box;
}

.ys-hero-search select {
	min-height: 58px;
	padding: 0 var(--ys-space-4);
	border: 1px solid var(--ys-color-border);
	border-radius: var(--ys-radius-md);
	font-size: 0.98rem;
	background: var(--ys-color-surface);
	color: var(--ys-color-text);
	box-sizing: border-box;
}

.ys-hero-search button {
	min-height: 58px;
	padding: 0 var(--ys-space-6);
	border: 1px solid transparent;
	border-radius: var(--ys-radius-md);
	background: var(--ys-color-brand);
	color: #fff;
	font-weight: 600;
	font-size: 1rem;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.ys-hero-search button:hover {
	background: var(--ys-color-brand-strong);
}

.ys-home-section {
	margin-bottom: var(--ys-space-7);
}

.ys-home-taxonomy {
	padding: var(--ys-space-5);
	margin-bottom: var(--ys-space-7);
}

.ys-home-taxonomy h2 {
	font-size: 1.35rem;
	margin-bottom: var(--ys-space-4);
	color: var(--ys-color-text);
}

.ys-taxonomy-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--ys-space-3);
}

.ys-taxonomy-links a {
	display: inline-flex;
	align-items: center;
	padding: 8px 12px;
	border-radius: 999px;
	border: 1px solid var(--ys-color-border);
	background: var(--ys-color-surface-alt);
	color: var(--ys-color-text);
	font-size: 0.9rem;
	text-decoration: none;
}

.ys-taxonomy-links a:hover {
	background: var(--ys-color-surface);
	text-decoration: none;
}

.ys-search-toolbar {
	margin-bottom: var(--ys-space-5);
	padding: var(--ys-space-4);
	position: relative;
	z-index: 12;
}

.ys-search-toolbar-form {
	display: flex;
	flex-wrap: wrap;
	gap: var(--ys-space-3);
	align-items: center;
}

.ys-search-toolbar-form input,
.ys-search-toolbar-form select {
	min-height: 46px;
	border: 1px solid var(--ys-color-border);
	border-radius: var(--ys-radius-sm);
	padding: 0 var(--ys-space-3);
	box-sizing: border-box;
	background: var(--ys-color-surface);
	color: var(--ys-color-text);
}

.ys-search-toolbar-form input {
	flex: 1 1 260px;
}

.ys-search-toolbar-form button {
	min-height: 46px;
	padding: 0 var(--ys-space-5);
	border: 1px solid transparent;
	border-radius: var(--ys-radius-sm);
	background: var(--ys-color-brand);
	color: #fff;
	font-weight: 600;
	cursor: pointer;
}

.ys-search-toolbar-form button:hover {
	background: var(--ys-color-brand-strong);
}

.ys-home-section h3 {
	font-size: 1.45rem;
	text-transform: none;
	color: var(--ys-color-text);
	border: 0;
	background: none;
	margin-bottom: var(--ys-space-5);
	padding: 0;
}

.ys-recipe-grid {
	display: grid;
	grid-template-columns: repeat(1, minmax(0, 1fr));
	gap: var(--ys-space-5);
}

.home .post-item-grid.ys-card {
	width: 100%;
	height: auto;
	margin: 0;
	padding: var(--ys-space-3);
	position: relative;
	background: var(--ys-color-surface);
	border: 1px solid var(--ys-color-border);
	border-radius: var(--ys-radius-md);
	box-shadow: var(--ys-shadow-soft);
	box-sizing: border-box;
}

.ys-search-toolbar + .post-block .post-item-small {
	position: relative;
	padding-right: 56px;
}

.home .post-item-grid.ys-card img {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 11;
	object-fit: cover;
	margin: 0 0 var(--ys-space-4) 0;
	float: none;
	padding: 0;
	border: 0;
	border-radius: var(--ys-radius-sm);
	display: block;
}

.home .post-item-grid.ys-card h2 {
	font-size: 1.2rem;
	line-height: 1.3;
	margin-bottom: var(--ys-space-3);
}

.home .post-item-grid.ys-card h2 a {
	color: var(--ys-color-text);
}

.home .post-item-grid.ys-card .post-item-meta {
	padding-bottom: 0;
	display: flex;
	flex-wrap: wrap;
	gap: var(--ys-space-2) var(--ys-space-3);
	color: var(--ys-color-text-soft);
	font-size: 0.9rem;
}

.ys-live-results {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 4px);
	background: var(--ys-color-surface);
	border: 1px solid var(--ys-color-border);
	border-radius: var(--ys-radius-sm);
	box-shadow: var(--ys-shadow-soft);
	max-height: 340px;
	overflow: auto;
	display: none;
	z-index: 50;
}

.ys-live-results.is-open {
	display: block;
}

.ys-live-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ys-live-list li {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid var(--ys-color-border);
}

.ys-live-list li:last-child {
	border-bottom: 0;
}

.ys-live-list a {
	display: flex;
	align-items: center;
	gap: var(--ys-space-3);
	padding: 10px var(--ys-space-3);
	text-decoration: none;
	color: var(--ys-color-text);
}

.ys-live-list a:hover {
	background: var(--ys-color-surface-alt);
	text-decoration: none;
}

.ys-live-list img {
	width: 44px;
	height: 40px;
	object-fit: cover;
	border-radius: 6px;
	flex-shrink: 0;
}

.ys-live-title {
	font-size: 0.95rem;
	line-height: 1.3;
	flex: 1;
}

.ys-live-time {
	font-size: 0.8rem;
	color: var(--ys-color-text-soft);
	white-space: nowrap;
}

.ys-live-empty {
	padding: var(--ys-space-4);
	color: var(--ys-color-text-soft);
	font-size: 0.9rem;
}

.ys-favorite-toggle {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 40px;
	height: 40px;
	border: 1px solid var(--ys-color-border);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	color: #6d665e;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	z-index: 3;
}

.ys-favorite-toggle.is-favorite {
	background: #c95f24;
	color: #fff;
	border-color: #c95f24;
}

.ys-single-actions {
	margin-top: var(--ys-space-4);
	display: flex;
	flex-wrap: wrap;
	gap: var(--ys-space-3);
}

.ys-single-actions .ys-favorite-toggle {
	position: static;
	width: auto;
	height: auto;
	padding: 10px 14px;
	border-radius: var(--ys-radius-sm);
	font-size: 0.88rem;
}

.ys-jump-link {
	display: inline-flex;
	align-items: center;
	padding: 10px 14px;
	border-radius: var(--ys-radius-sm);
	border: 1px solid var(--ys-color-border);
	color: var(--ys-color-text);
	background: var(--ys-color-surface);
	text-decoration: none;
	font-size: 0.88rem;
}

.ys-mobile-quick-actions {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	display: none;
	gap: 8px;
	padding: 10px;
	background: rgba(20, 18, 14, 0.92);
	backdrop-filter: blur(8px);
	z-index: 70;
}

.ys-mobile-quick-actions a,
.ys-mobile-quick-actions button {
	flex: 1;
	min-height: 44px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	font-size: 0.85rem;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
}

.ys-phase6-status {
	margin-top: var(--ys-space-3);
	font-size: 0.9rem;
	color: var(--ys-color-text-soft);
	min-height: 1.2em;
}

.note-content label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	cursor: pointer;
}

.note-content .ys-ingredient-check {
	margin-top: 4px;
	flex-shrink: 0;
}

.note-content .ys-ingredient-check:checked + span {
	text-decoration: line-through;
	opacity: 0.7;
}

.ys-copy-ingredients,
.ys-cooking-open {
	margin-top: 10px;
	padding: 8px 12px;
	border: 1px solid var(--ys-color-border);
	border-radius: var(--ys-radius-sm);
	background: var(--ys-color-surface-alt);
	color: var(--ys-color-text);
	cursor: pointer;
	font-weight: 600;
}

.ys-cooking-open,
.ys-cooking-panel {
	display: none;
}

.ys-cooking-panel {
	position: fixed;
	inset: 0;
	background: #11100d;
	color: #f3ecdf;
	z-index: 200;
	padding: 16px;
	overflow: auto;
}

.ys-cooking-panel[hidden] {
	display: none;
}

.ys-cooking-panel-top,
.ys-cooking-step-controls,
.ys-cooking-panel-ingredients {
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
}

.ys-cooking-panel-top button,
.ys-cooking-step-controls button,
.ys-cooking-panel-ingredients button {
	min-height: 42px;
	padding: 0 12px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	cursor: pointer;
}

.ys-cooking-panel-steps {
	margin-top: 16px;
	margin-bottom: 14px;
}

.ys-cooking-step-body {
	font-size: 1.22rem;
	line-height: 1.75;
	padding: 16px;
	border-radius: 12px;
	background: #1f1d18;
	margin-bottom: 12px;
}

.ys-cooking-panel-ingredients [data-cooking-ingredients] {
	margin-top: 10px;
	padding: 12px;
	border-radius: 12px;
	background: #1f1d18;
	width: 100%;
}

body.ys-cooking-mode-active {
	overflow: hidden;
}

@media (max-width: 1024px) {
	.ys-cooking-open {
		display: inline-flex;
		align-items: center;
	}

	.ys-cooking-panel:not([hidden]) {
		display: block;
	}
}

.ys-hero-search,
.ys-search-toolbar-form,
#searchform {
	position: relative;
}

#searchform {
	display: flex;
	align-items: center;
	gap: var(--ys-space-2);
	min-width: 220px;
}

#searchform input[type="search"] {
	position: static;
	height: 38px;
	width: 100%;
	max-width: 260px;
	border: 1px solid var(--ys-color-border);
	border-radius: var(--ys-radius-sm);
	padding: 0 var(--ys-space-3);
	background: var(--ys-color-surface);
	color: var(--ys-color-text);
	box-sizing: border-box;
}

#searchform #search-button {
	position: static;
	height: 38px;
	width: 38px;
	border: 0;
	padding: 0;
	flex-shrink: 0;
}

@media (min-width: 640px) {
	.ys-recipe-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1000px) {
	.ys-recipe-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 780px) {
	#top-header,
	#header,
	#navigation,
	#footer,
	#footer-bottom {
		width: min(var(--ys-max-width), calc(100% - (var(--ys-space-4) * 2)));
	}

	#top-navigation {
		display: none;
	}

	#search-wrapper {
		float: none;
		width: 100%;
	}

	#searchform input {
		position: static;
		height: 42px;
		width: calc(100% - 62px);
	}

	#searchform #search-button {
		position: static;
		height: 42px;
		width: 42px;
	}

	#header-wrapper {
		height: auto;
		padding: var(--ys-space-4) 0;
	}

	#logo,
	#header-banner {
		float: none;
		padding: 0;
	}

	#navigation-wrapper,
	#navigation,
	#navigation ul,
	#navigation li,
	#navigation li a {
		height: auto;
	}

	#navigation li {
		margin-right: 12px;
	}

	#navigation li a {
		line-height: 1.8;
		display: block;
		padding: 8px 0;
	}

	.ys-home-hero {
		padding: var(--ys-space-5);
	}

	.ys-home-hero-grid {
		grid-template-columns: 1fr;
		gap: var(--ys-space-4);
	}

	.ys-home-hero-side {
		padding: var(--ys-space-4);
	}

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

	.ys-hero-search select {
		width: 100%;
	}

	.ys-search-toolbar-form button,
	.ys-search-toolbar-form select {
		width: 100%;
	}

	.ys-cooking-panel-top button,
	.ys-cooking-step-controls button,
	.ys-cooking-panel-ingredients button {
		width: 100%;
	}
}

@media (max-width: 1024px) {
	body.single .ys-mobile-quick-actions {
		display: flex;
	}

	body.single {
		padding-bottom: 70px;
	}
}

/* Global responsive improvements */
#top-header,
#header,
#navigation,
#title,
#crumbs-wrapper,
#footer,
#footer-bottom,
.wrapper-full,
#wrapper {
	max-width: var(--ys-legacy-width);
	width: calc(100% - 2rem);
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
}

#post img,
.post-thumb,
.post-content img,
.post-item-small img,
.post-item-big img,
.post-item-grid img {
	max-width: 100%;
	height: auto;
}

@media (max-width: 1024px) {
	#wrapper {
		overflow: visible;
	}

	#main,
	.main-full {
		float: none;
		width: 100%;
		clear: both;
	}

	#sidebar {
		float: none;
		width: 100%;
		margin-top: 24px;
	}

	#sidebar .widget,
	#sidebar .widget .widget-content,
	#comments-content,
	.post-content,
	.post-content.full,
	.post-item-small,
	.post-item-big {
		width: 100%;
	}

	#sidebar .widget {
		padding-left: 0;
	}

	#sidebar .widget h3 {
		margin-left: 0;
		padding-left: 0;
	}

	#sidebar .widget .widget-content {
		margin-left: 0;
	}

	#title-wrapper {
		height: auto;
		padding: 18px 0;
	}

	.title-text,
	.title-text.big,
	.title-text.archive {
		float: none;
		padding-top: 0;
	}

	.title-text.big h1,
	.title-text h1 {
		width: 100%;
		font-size: clamp(1.7rem, 4.8vw, 2.3rem);
	}

	#recipe-info {
		float: none;
		text-align: left;
		padding-top: 14px;
	}

	.note-wrapper {
		float: none;
		margin: 0 0 16px;
		width: 100%;
	}

	.note-top,
	.note-bottom {
		display: none;
	}

	.note-content {
		background: #f5f3ee;
		border: 1px solid var(--ys-color-border);
		border-radius: var(--ys-radius-md);
		padding: 14px;
	}

	.note-content ul {
		padding-left: 8px;
	}

	.note-content li {
		background: none !important;
		line-height: 1.7;
		padding: 0 !important;
		margin: 0 0 10px !important;
	}

	.post-item-grid {
		width: calc(50% - 10px);
		height: auto;
		margin-right: 20px;
		margin-bottom: 20px;
	}

	.post-item-grid:nth-child(2n) {
		margin-right: 0;
	}

	.share-box {
		display: none;
	}
}

@media (max-width: 767px) {
	body {
		font-size: 15px;
	}

	#top-header-wrapper {
		height: auto;
		padding: 8px 0;
	}

	#top-navigation {
		display: none;
	}

	#navigation ul {
		display: flex;
		overflow-x: auto;
		white-space: nowrap;
		gap: 12px;
		padding-bottom: 4px;
	}

	#navigation li {
		float: none;
		margin-right: 0;
	}

	#navigation li ul,
	#top-navigation li ul {
		display: none !important;
	}

	#navigation li a {
		line-height: 1.4;
		padding: 10px 2px;
		font-size: 14px;
	}

	#searchform {
		min-width: 0;
		width: 100%;
	}

	#searchform input[type="search"] {
		max-width: none;
	}

	.post-item-grid {
		width: 100%;
		margin-right: 0;
	}

	.post-item-small img,
	.post-item-big img {
		float: none;
		display: block;
		margin: 0 0 12px;
		width: 100%;
	}

	.post-item-small h2,
	.post-item-big h2 {
		font-size: 1.35rem;
		line-height: 1.35;
	}

	.post-item-meta span {
		display: block;
		margin-bottom: 4px;
	}

	.ys-home-hero {
		padding: var(--ys-space-4);
	}

	.ys-home-hero-side h2 {
		font-size: 1.2rem;
	}

	.ys-home-hero-side ul {
		padding-left: 16px;
	}

	.ys-home-hero h1 {
		font-size: clamp(1.8rem, 8vw, 2.3rem);
	}

	.ys-home-intro {
		font-size: 1rem;
	}

	.ys-hero-search input,
	.ys-hero-search select,
	.ys-hero-search button,
	.ys-search-toolbar-form input,
	.ys-search-toolbar-form select,
	.ys-search-toolbar-form button {
		width: 100%;
		min-height: 50px;
	}

	.ys-single-actions {
		gap: 10px;
	}

	.ys-single-actions .ys-favorite-toggle,
	.ys-jump-link,
	.ys-cooking-open {
		width: 100%;
		justify-content: center;
	}

	.ys-mobile-quick-actions a,
	.ys-mobile-quick-actions button {
		min-height: 48px;
	}
}
