/*
Theme Name: Recipes Hook Theme
Theme URI: https://github.com/MSulSal/recipes-hook
Author: Recipes Hook
Author URI: https://github.com/MSulSal
Description: Custom presentation theme for the Recipe PDF Library project.
Version: 1.0.0
Text Domain: recipes-hook-theme
*/

:root {
	--rht-bg: #f7f8f7;
	--rht-surface: #ffffff;
	--rht-muted-surface: #f3f5f4;
	--rht-border: #d7ddda;
	--rht-ink: #202a24;
	--rht-muted: #5b6a62;
	--rht-accent: #2e7b56;
	--rht-accent-dark: #1f5f40;
	--rht-warning-bg: #fff7df;
	--rht-warning-border: #e9da9f;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	background: linear-gradient(180deg, #fcfcfb 0%, var(--rht-bg) 100%);
	color: var(--rht-ink);
	font-family: "Segoe UI Variable", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	line-height: 1.45;
	margin: 0;
}

a {
	color: var(--rht-accent);
}

a:hover,
a:focus {
	color: var(--rht-accent-dark);
}

.rht-site-header {
	background: rgba(255, 255, 255, 0.96);
	border-bottom: 1px solid var(--rht-border);
	position: sticky;
	top: 0;
	z-index: 20;
}

.rht-site-header__inner,
.rht-page-shell {
	margin: 0 auto;
	max-width: 1120px;
	padding: 1.05rem 1.2rem;
}

.rht-site-header__inner {
	align-items: center;
	display: flex;
	gap: 1rem;
	justify-content: space-between;
	padding-top: 0.28rem;
	padding-bottom: 0.28rem;
}

.rht-brand {
	align-items: center;
	color: var(--rht-ink);
	display: inline-flex;
	gap: 0.5rem;
	text-decoration: none;
}

.rht-brand__logo {
	display: block;
	height: 2.2rem;
	width: auto;
	max-width: min(44vw, 12.4rem);
	object-fit: contain;
}

.rht-brand__title {
	color: var(--rht-ink);
	font-size: 1.3rem;
	font-weight: 800;
	line-height: 1;
}

.rht-nav {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.rht-nav a {
	border: 1px solid transparent;
	color: var(--rht-muted);
	font-size: 1rem;
	font-weight: 700;
	padding: 0.3rem 0.5rem;
	text-decoration: none;
	white-space: nowrap;
}

.rht-nav a:hover,
.rht-nav a:focus {
	border-bottom-color: var(--rht-accent);
	color: var(--rht-accent-dark);
}

.rht-hero {
	margin: 0 0 1.25rem;
	padding: 0.8rem 0 1rem;
}

.rht-page-title {
	font-size: clamp(1.9rem, 4vw, 2.8rem);
	line-height: 1.12;
	margin: 0 0 0.35rem;
}

.rht-page-subtitle {
	color: var(--rht-muted);
	font-size: 1.02rem;
	margin: 0;
	max-width: 44rem;
}

.rht-card {
	background: var(--rht-surface);
	border: 1px solid var(--rht-border);
	border-radius: 12px;
	padding: 1rem;
}

.rht-alert {
	background: var(--rht-warning-bg);
	border: 1px solid var(--rht-warning-border);
	border-radius: 10px;
	color: #6e5a25;
	font-size: 0.95rem;
	font-weight: 700;
	margin-bottom: 1rem;
	padding: 0.75rem 0.9rem;
}

.rht-manage-grid {
	display: grid;
	gap: 1.1rem;
	grid-template-columns: minmax(18rem, 1.1fr) minmax(14rem, 1fr);
	margin: 0 0 1.4rem;
}

.rht-manage-form,
.rht-manage-list {
	background: var(--rht-surface);
	border: 1px solid var(--rht-border);
	border-radius: 12px;
	padding: 1rem;
}

.rht-manage-form h2,
.rht-manage-list h2,
.rht-auth-card h2 {
	font-size: 1.28rem;
	margin: 0 0 0.32rem;
}

.rht-manage-form p,
.rht-manage-list p,
.rht-auth-card p {
	color: var(--rht-muted);
	margin: 0 0 0.85rem;
}

.rht-manage-form form {
	display: grid;
	gap: 0.66rem;
}

.rht-manage-form label,
.rht-manage-form legend {
	font-size: 0.86rem;
	font-weight: 700;
}

.rht-manage-form input[type="text"],
.rht-manage-form input[type="file"],
.rht-manage-form select,
.rht-manage-form textarea {
	background: #fff;
	border: 1px solid var(--rht-border);
	border-radius: 10px;
	font: inherit;
	min-height: 2.65rem;
	padding: 0.66rem 0.8rem;
	width: 100%;
}

.rht-manage-form textarea {
	min-height: 7rem;
	resize: vertical;
}

.rht-manage-form input:focus,
.rht-manage-form select:focus,
.rht-manage-form textarea:focus {
	border-color: var(--rht-accent);
	box-shadow: 0 0 0 2px rgba(47, 122, 85, 0.14);
	outline: none;
}

.rht-category-set {
	border: 1px dashed var(--rht-border);
	border-radius: 10px;
	margin: 0;
	padding: 0.55rem 0.75rem;
}

.rht-inline-check {
	align-items: center;
	display: flex;
	gap: 0.5rem;
	margin: 0.3rem 0;
}

.rht-form-actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
}

.rht-primary-submit {
	background: linear-gradient(180deg, #32845d 0%, #266845 100%);
	border: 1px solid #266845;
	border-radius: 10px;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font-size: 0.95rem;
	font-weight: 700;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.72rem 0.95rem;
}

.rht-primary-submit:hover,
.rht-primary-submit:focus {
	background: #225c3f;
	border-color: #225c3f;
}

.rht-manage-items {
	list-style: none;
	margin: 0;
	padding: 0;
}

.rht-manage-items li {
	align-items: center;
	border-bottom: 1px solid var(--rht-border);
	display: flex;
	gap: 0.75rem;
	justify-content: space-between;
	padding: 0.78rem 0.2rem;
}

.rht-manage-items li:last-child {
	border-bottom: 0;
}

.rht-manage-items li span {
	color: var(--rht-muted);
	display: block;
	font-size: 0.84rem;
	margin-top: 0.2rem;
}

.rht-manage-actions {
	align-items: center;
	display: flex;
	gap: 0.55rem;
}

.rht-manage-actions form {
	margin: 0;
}

.rht-delete-btn {
	background: transparent;
	border: 0;
	color: #9f3328;
	cursor: pointer;
	font-size: 0.9rem;
	font-weight: 700;
	padding: 0;
}

.rht-delete-btn:hover,
.rht-delete-btn:focus {
	color: #7e2118;
	text-decoration: underline;
}

.rht-auth-shell {
	margin-bottom: 1.4rem;
}

.rht-auth-cta {
	background: linear-gradient(150deg, #e4f4e8 0%, #f7fbf8 100%);
	border: 1px solid var(--rht-border);
	border-radius: 14px;
	padding: 1.15rem;
}

.rht-login-shell {
	margin-bottom: 1.4rem;
}

.rht-login-page {
	align-items: center;
	display: flex;
	justify-content: center;
	min-height: 100vh;
}

.rht-login-shell--plain {
	margin: 0;
	padding: 1rem;
	width: min(100%, 28rem);
}

.rht-login-brand {
	display: block;
	height: auto;
	margin: 0 auto 0.35rem;
	text-decoration: none;
	width: min(92vw, 20rem);
}

.rht-login-brand__logo {
	display: block;
	height: auto;
	width: 100%;
	object-fit: contain;
}

.rht-auth-form--plain {
	background: #fff;
	border: 1px solid var(--rht-border);
	border-radius: 14px;
	box-shadow: 0 20px 48px rgba(33, 74, 51, 0.14);
	padding: 1.1rem;
}

.rht-auth-forgot {
	font-size: 0.88rem;
	font-weight: 700;
	text-decoration: none;
}

.rht-auth-card {
	background: linear-gradient(120deg, #f2f8f3 0%, #ffffff 42%);
	border: 1px solid var(--rht-border);
	border-radius: 14px;
	display: grid;
	gap: 1rem;
	grid-template-columns: minmax(17rem, 1fr) minmax(17rem, 1fr);
	overflow: hidden;
}

.rht-auth-intro {
	background: linear-gradient(170deg, #dbf1df 0%, #f4fbf5 100%);
	border-right: 1px solid var(--rht-border);
	padding: 1.15rem;
}

.rht-auth-eyebrow {
	color: #2c6949;
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	margin: 0 0 0.48rem;
	text-transform: uppercase;
}

.rht-auth-points {
	display: grid;
	gap: 0.42rem;
	list-style: none;
	margin: 1rem 0 0;
	padding: 0;
}

.rht-auth-points li {
	background: rgba(255, 255, 255, 0.76);
	border: 1px solid #cfe5d4;
	border-radius: 8px;
	font-size: 0.89rem;
	font-weight: 600;
	padding: 0.45rem 0.64rem;
}

.rht-auth-form-wrap {
	padding: 1.15rem;
}

.rht-auth-form {
	display: grid;
	gap: 0.62rem;
}

.rht-auth-form label {
	font-size: 0.87rem;
	font-weight: 700;
}

.rht-auth-form input[type="text"],
.rht-auth-form input[type="password"] {
	background: #fff;
	border: 1px solid var(--rht-border);
	border-radius: 10px;
	min-height: 2.72rem;
	padding: 0.68rem 0.8rem;
	width: 100%;
}

.rht-auth-form input[type="text"]:focus,
.rht-auth-form input[type="password"]:focus {
	border-color: var(--rht-accent);
	box-shadow: 0 0 0 2px rgba(47, 122, 85, 0.14);
	outline: none;
}

.rht-auth-submit {
	background: linear-gradient(180deg, #32845d 0%, #266845 100%);
	border: 1px solid #266845;
	border-radius: 10px;
	color: #fff;
	cursor: pointer;
	font-size: 0.95rem;
	font-weight: 700;
	min-height: 2.8rem;
	padding: 0.74rem 0.9rem;
	transition: transform 120ms ease, box-shadow 120ms ease;
}

.rht-auth-submit:hover,
.rht-auth-submit:focus {
	box-shadow: 0 8px 16px rgba(38, 104, 69, 0.25);
	transform: translateY(-1px);
}

.rht-auth-links {
	margin-top: 0.82rem;
}

.rht-auth-links a {
	font-size: 0.88rem;
	font-weight: 700;
}

.rpl-library {
	--rpl-border: var(--rht-border);
	--rpl-ink: var(--rht-ink);
	--rpl-muted: var(--rht-muted);
	--rpl-surface: var(--rht-surface);
	--rpl-surface-alt: var(--rht-surface);
	--rpl-accent: var(--rht-accent);
	--rpl-accent-dark: var(--rht-accent-dark);
	color: var(--rpl-ink);
	container-type: inline-size;
}

.rpl-library-header {
	margin: 0 0 0.95rem;
}

.rpl-library-header h2,
.rpl-recipe-detail__header h2,
.rpl-recipe-detail__header h1 {
	font-size: clamp(1.35rem, 2.8cqi, 1.75rem);
	line-height: 1.2;
	margin: 0 0 0.2rem;
}

.rpl-library-header p,
.rpl-recipe-detail__header p {
	color: var(--rpl-muted);
	font-size: 0.95rem;
	margin: 0;
}

.rpl-search-form {
	align-items: end;
	background: transparent;
	border-bottom: 1px solid var(--rpl-border);
	display: grid;
	gap: 0.8rem;
	grid-template-columns: minmax(14rem, 1fr) minmax(12rem, 16rem) auto auto auto;
	margin: 0 0 1rem;
	padding: 0 0 0.9rem;
}

.rpl-search-field,
.rpl-category-field {
	display: grid;
	gap: 0.35rem;
}

.rpl-search-form label {
	color: var(--rpl-muted);
	font-size: 0.86rem;
	font-weight: 700;
}

.rpl-search-form input,
.rpl-search-form select {
	background: #fff;
	border: 1px solid var(--rpl-border);
	border-radius: 10px;
	color: var(--rpl-ink);
	min-height: 2.9rem;
	padding: 0.72rem 0.82rem;
	width: 100%;
}

.rpl-search-form input:focus,
.rpl-search-form select:focus {
	border-color: var(--rpl-accent);
	box-shadow: 0 0 0 2px rgba(47, 122, 85, 0.14);
	outline: 0;
}

.rpl-search-button,
.rpl-view-button {
	align-items: center;
	background: var(--rpl-accent);
	border: 1px solid var(--rpl-accent);
	border-radius: 10px;
	color: #fff;
	display: inline-flex;
	font-size: 0.96rem;
	font-weight: 700;
	justify-content: center;
	line-height: 1.2;
	min-height: 2.9rem;
	padding: 0.74rem 1rem;
	text-decoration: none;
}

.rpl-search-button:hover,
.rpl-search-button:focus,
.rpl-view-button:hover,
.rpl-view-button:focus {
	background: var(--rpl-accent-dark);
	border-color: var(--rpl-accent-dark);
	color: #fff;
}

.rpl-secondary-button {
	align-items: center;
	background: transparent;
	border: 1px solid var(--rpl-border);
	border-radius: 10px;
	color: var(--rpl-accent-dark);
	display: inline-flex;
	font-size: 0.92rem;
	font-weight: 700;
	justify-content: center;
	line-height: 1.2;
	min-height: 2.75rem;
	padding: 0.72rem 0.95rem;
	text-decoration: none;
}

.rpl-secondary-button:hover,
.rpl-secondary-button:focus {
	background: var(--rpl-muted-surface);
	border-color: #bfcbc4;
	color: var(--rpl-accent-dark);
}

.rpl-view-toggle {
	align-items: center;
	border: 1px solid var(--rpl-border);
	border-radius: 10px;
	display: inline-flex;
	min-height: 2.75rem;
	overflow: hidden;
}

.rpl-view-toggle__link {
	align-items: center;
	color: var(--rpl-muted);
	display: inline-flex;
	font-size: 0.9rem;
	font-weight: 700;
	height: 100%;
	padding: 0 0.85rem;
	text-decoration: none;
}

.rpl-view-toggle__link + .rpl-view-toggle__link {
	border-left: 1px solid var(--rpl-border);
}

.rpl-view-toggle__link.is-active {
	background: var(--rpl-muted-surface);
	color: var(--rpl-ink);
}

.rpl-clear-link,
.rpl-secondary-link {
	color: var(--rpl-accent);
	font-size: 0.9rem;
	font-weight: 700;
	text-decoration: none;
}

.rpl-clear-link:hover,
.rpl-clear-link:focus,
.rpl-secondary-link:hover,
.rpl-secondary-link:focus {
	color: var(--rpl-accent-dark);
	text-decoration: underline;
}

.rpl-active-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.42rem;
	margin: 0 0 0.95rem;
}

.rpl-filter-pill {
	background: #eaf5ee;
	border: 1px solid #cfe2d6;
	border-radius: 999px;
	color: #2b6948;
	font-size: 0.81rem;
	font-weight: 700;
	padding: 0.26rem 0.6rem;
}

.rpl-result-count {
	color: var(--rpl-muted);
	font-size: 0.9rem;
	font-weight: 700;
	margin: 0 0 0.55rem;
}

.rpl-recipe-grid {
	display: grid;
	gap: 0;
	grid-template-columns: 1fr;
}

.rpl-recipe-card {
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--rpl-border);
	border-radius: 0;
	display: grid;
	gap: 0.85rem;
	grid-template-columns: minmax(7rem, 11rem) 1fr;
	padding: 0.95rem 0.2rem;
}

.rpl-recipe-card__thumb {
	aspect-ratio: 3 / 4;
	background: var(--rht-muted-surface);
	border: 1px solid var(--rpl-border);
	border-radius: 8px;
	display: block;
	overflow: hidden;
}

.rpl-recipe-card__thumb img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.rpl-recipe-card__thumb span {
	align-items: center;
	color: var(--rpl-muted);
	display: flex;
	font-size: 0.95rem;
	font-weight: 700;
	height: 100%;
	justify-content: center;
}

.rpl-recipe-card__body {
	display: grid;
	gap: 0.35rem;
}

.rpl-recipe-card__title {
	font-size: 1.24rem;
	line-height: 1.3;
	margin: 0;
}

.rpl-recipe-card__title a {
	color: var(--rpl-ink);
	text-decoration: none;
}

.rpl-recipe-card__title a:hover,
.rpl-recipe-card__title a:focus {
	color: var(--rpl-accent-dark);
}

.rpl-recipe-card__filename {
	color: var(--rpl-muted);
	font-size: 0.88rem;
	margin: 0;
	overflow-wrap: anywhere;
}

.rpl-recipe-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.32rem;
}

.rpl-recipe-card__meta span {
	background: var(--rht-muted-surface);
	border: 1px solid var(--rpl-border);
	border-radius: 999px;
	color: var(--rpl-muted);
	font-size: 0.75rem;
	font-weight: 700;
	padding: 0.14rem 0.45rem;
}

.rpl-visibility-badge {
	border-radius: 999px;
	font-size: 0.76rem;
	font-weight: 800;
	padding: 0.15rem 0.5rem;
}

.rpl-visibility-badge--public {
	background: #e8f7ee;
	border-color: #b9e2ca;
	color: #21593d;
}

.rpl-visibility-badge--private {
	background: #f3f1fc;
	border-color: #d5cdf3;
	color: #4a3f86;
}

.rpl-recipe-card__terms,
.rpl-recipe-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin-top: 0.25rem;
}

.rpl-recipe-card__terms span,
.rpl-recipe-card__tags span {
	background: #fff;
	border: 1px solid var(--rpl-border);
	border-radius: 999px;
	color: var(--rpl-muted);
	font-size: 0.8rem;
	padding: 0.22rem 0.5rem;
}

.rpl-recipe-card__actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.62rem;
}

.rpl-recipe-grid--list .rpl-view-button,
.rpl-recipe-grid--list .rpl-secondary-link {
	align-items: center;
	border: 1px solid var(--rpl-border);
	border-radius: 8px;
	display: inline-flex;
	font-size: 0.88rem;
	font-weight: 700;
	justify-content: center;
	line-height: 1.2;
	min-height: 2.25rem;
	padding: 0.5rem 0.78rem;
	text-decoration: none;
}

.rpl-recipe-grid--list .rpl-recipe-card__meta {
	align-items: center;
	gap: 0.45rem;
}

.rpl-recipe-grid--list .rpl-recipe-card__meta span {
	background: transparent;
	border: 0;
	border-radius: 0;
	color: var(--rpl-muted);
	font-size: 0.82rem;
	font-weight: 600;
	padding: 0;
}

.rpl-recipe-grid--list .rpl-recipe-card__meta .rpl-visibility-badge {
	background: transparent;
	border: 0;
	color: var(--rpl-ink);
	font-weight: 700;
	padding: 0;
}

.rpl-recipe-grid--list .rpl-recipe-card__meta span + span::before {
	content: "\2022";
	margin-right: 0.45rem;
}

.rpl-recipe-grid--list .rpl-recipe-card__terms,
.rpl-recipe-grid--list .rpl-recipe-card__tags {
	gap: 0.5rem;
	margin-top: 0.1rem;
}

.rpl-recipe-grid--list .rpl-recipe-card__terms span,
.rpl-recipe-grid--list .rpl-recipe-card__tags span {
	background: transparent;
	border: 0;
	border-radius: 0;
	color: var(--rpl-muted);
	font-size: 0.8rem;
	font-weight: 600;
	padding: 0;
}

.rpl-recipe-grid--list .rpl-view-button {
	background: var(--rpl-accent);
	border-color: var(--rpl-accent);
	color: #fff;
}

.rpl-recipe-grid--list .rpl-view-button:hover,
.rpl-recipe-grid--list .rpl-view-button:focus {
	background: var(--rpl-accent-dark);
	border-color: var(--rpl-accent-dark);
	color: #fff;
}

.rpl-recipe-grid--list .rpl-secondary-link {
	background: #fff;
	color: var(--rpl-accent-dark);
}

.rpl-recipe-grid--list .rpl-secondary-link:hover,
.rpl-recipe-grid--list .rpl-secondary-link:focus {
	background: var(--rpl-muted-surface);
	border-color: #bfcbc4;
	color: var(--rpl-accent-dark);
	text-decoration: none;
}

.rpl-recipe-grid--gallery {
	gap: 1rem;
	grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
}

.rpl-recipe-grid--gallery .rpl-recipe-card {
	border: 1px solid var(--rpl-border);
	border-radius: 8px;
	grid-template-columns: 1fr;
	padding: 0.7rem;
}

.rpl-recipe-grid--gallery .rpl-recipe-card__thumb {
	aspect-ratio: 4 / 5;
}

.rpl-empty-state {
	background: var(--rht-muted-surface);
	border: 1px solid var(--rpl-border);
	border-radius: 12px;
	margin-top: 0.6rem;
	padding: 1rem;
}

.rpl-empty-state h2 {
	font-size: 1.18rem;
	margin: 0 0 0.35rem;
}

.rpl-empty-state p {
	color: var(--rpl-muted);
	margin: 0;
}

.rpl-recipe-detail {
	display: grid;
	gap: 1rem;
}

.rpl-recipe-detail__header {
	border-bottom: 1px solid var(--rpl-border);
	padding: 0.2rem 0 0.8rem;
}

.rpl-recipe-detail__meta {
	display: grid;
	gap: 0.2rem;
}

.rpl-recipe-detail__note {
	color: var(--rpl-muted);
}

.rpl-pdf-actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
}

.rpl-pdf-viewer {
	background: #fff;
	border: 1px solid var(--rpl-border);
	border-radius: 12px;
	min-height: 72vh;
	overflow: hidden;
}

.rpl-pdf-viewer iframe {
	border: 0;
	display: block;
	height: 72vh;
	width: 100%;
}

.rpl-recipe-detail__filename {
	color: var(--rpl-muted);
	font-size: 0.9rem;
	margin: 0;
	overflow-wrap: anywhere;
}

.rht-site-footer {
	border-top: 1px solid var(--rht-border);
	color: var(--rht-muted);
	font-size: 0.9rem;
	margin-top: 2rem;
	padding: 1rem 0 2rem;
}

@media (max-width: 740px) {
	.rht-site-header__inner {
		flex-direction: column;
		gap: 0.42rem;
		padding-top: 0.35rem;
		padding-bottom: 0.4rem;
	}

	.rht-brand__logo {
		height: 2rem;
		max-width: min(72vw, 10.4rem);
	}

	.rht-brand__title {
		font-size: 1.12rem;
	}

	.rht-nav {
		justify-content: center;
		width: 100%;
	}

	.rht-manage-grid {
		grid-template-columns: 1fr;
	}

	.rht-manage-items li {
		align-items: flex-start;
		flex-direction: column;
	}

	.rht-auth-card {
		grid-template-columns: 1fr;
	}

	.rht-auth-intro {
		border-right: 0;
		border-bottom: 1px solid var(--rht-border);
	}

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

	.rpl-search-button,
	.rpl-view-button,
	.rpl-secondary-button {
		align-self: stretch;
		width: 100%;
	}

	.rpl-view-toggle {
		width: 100%;
	}

	.rpl-view-toggle__link {
		flex: 1;
		justify-content: center;
	}

	.rpl-pdf-actions,
	.rpl-recipe-card__actions {
		align-items: stretch;
		flex-direction: column;
	}

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

	.rpl-recipe-card__thumb {
		max-width: 11rem;
	}

	.rpl-pdf-viewer,
	.rpl-pdf-viewer iframe {
		min-height: 62vh;
	}
}

@media (min-width: 741px) and (max-width: 1024px) {
	.rht-site-header__inner {
		padding-left: 0.9rem;
		padding-right: 0.9rem;
	}

	.rht-brand__logo {
		height: 2.05rem;
		max-width: min(42vw, 11.2rem);
	}

	.rht-brand__title {
		font-size: 1.2rem;
	}

	.rht-nav a {
		font-size: 0.92rem;
		padding: 0.24rem 0.42rem;
	}

	.rht-manage-grid {
		grid-template-columns: 1fr;
	}

	.rpl-search-form {
		grid-template-columns: minmax(14rem, 1fr) minmax(11rem, 14rem) auto;
	}

	.rpl-search-form .rpl-search-button {
		width: 100%;
	}

	.rpl-search-form .rpl-clear-link {
		grid-column: 1 / -1;
	}

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