/*
Theme Name: Rise & Crumb
Template: kadence
Description: Recipe-blog child theme: promo bar, icon header, recipe card grids, seasonal callouts, opt-ins, ad slots.
Version: 0.2.0
Text Domain: rise-crumb
*/

/* Display font for homepage section titles (Avocado Cake Demo by Letteralle; personal-use demo, see README). */
@font-face {
	font-family: "Avocado Cake";
	src: url("assets/fonts/avocado-cake-demo.otf") format("opentype");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

/* ------------------------------------------------------------------ tokens */
:root {
	--rc-font-display: "Avocado Cake", var(--rc-font-head);
	/* Brand palette: Aqua #2FBAB0, Yellow #FBC203, White #FFFFFF, Grey #D4D4D4. */
	--rc-aqua: #2fbab0;
	--rc-yellow: #fbc203;
	--rc-grey: #d4d4d4;

	--rc-page: #f6f6f6;      /* light grey page background */
	--rc-card: #ffffff;
	--rc-ink: #1a1a1a;
	--rc-muted: #666666;
	--rc-border: var(--rc-grey);
	--rc-blush: #feedb3;     /* soft yellow: ribbons, chips, tabs, highlights */
	--rc-peach: #ddf3f1;     /* soft aqua: callout panels, image placeholders */
	--rc-coral: var(--rc-aqua);  /* primary accent (name kept so every component follows) */
	--rc-coral-dark: #18807a;    /* darker aqua: links and hovers, meets contrast on white */
	--rc-honey: var(--rc-yellow);
	--rc-cocoa: #1a1a1a;
	--rc-sky: #ececec;       /* soft grey: comments chip */
	--rc-sage: var(--rc-aqua);
	--rc-surface: #f2f2f2;   /* grey panels (search overlay, author card) */

	--rc-font-head: "Outfit", system-ui, sans-serif;
	--rc-font-body: "Inter", system-ui, sans-serif;

	--rc-radius: 4px;
	--rc-pill: 999px;
	--rc-shadow: 0 2px 6px rgba(31, 26, 23, .08);
	--rc-container: 1380px;
	--global-content-width: var(--rc-container); /* Kadence pages (recipes, videos, index) match the custom sections */

	/* Map onto Kadence's palette so its blocks/buttons inherit the brand. */
	--global-palette1: var(--rc-coral-dark); /* Kadence uses this for links: dark aqua stays readable */
	--global-palette2: var(--rc-ink);
	--global-palette3: var(--rc-ink);
	--global-palette4: var(--rc-ink);
	--global-palette5: var(--rc-muted);
	--global-palette6: var(--rc-muted);
	--global-palette7: var(--rc-page);
	--global-palette8: var(--rc-page);
	--global-palette9: #ffffff;
	--global-body-font-family: var(--rc-font-body);
	--global-heading-font-family: var(--rc-font-head);
}

body { background: var(--rc-page); color: var(--rc-ink); font-family: var(--rc-font-body); }
h1, h2, h3, h4 { font-family: var(--rc-font-head); color: var(--rc-ink); letter-spacing: .01em; }
a { color: var(--rc-ink); }
.rc-container { max-width: var(--rc-container); margin: 0 auto; padding: 0 24px; }

/* ----------------------------------------------------------------- buttons */
.rc-pill, .rc-btn {
	display: inline-flex; align-items: center; gap: .45rem;
	padding: .65rem 1.4rem; border-radius: var(--rc-pill);
	font: 600 .78rem/1 var(--rc-font-body); letter-spacing: .1em; text-transform: uppercase;
	text-decoration: none; border: 2px solid var(--rc-coral); color: var(--rc-ink); background: #fff;
	box-shadow: var(--rc-shadow); transition: background .15s, color .15s, border-color .15s;
}
.rc-pill--primary, .rc-btn--primary { background: var(--rc-coral); color: #fff; }
.rc-pill--dark { background: var(--rc-ink); border-color: var(--rc-ink); color: #fff; }
.rc-pill:hover, .rc-btn:hover { background: var(--rc-ink); border-color: var(--rc-ink); color: #fff; }
.rc-pill .rc-icon { width: 16px; height: 16px; }

/* ------------------------------------------------------------- top line */
/* White band above a thin aqua line: the line reads on its own, and browsers that colour their
   toolbar from the top of the page (Safari, Dia) pick up white instead of aqua. */
.rc-stripe { height: 20px; background: linear-gradient(#fff 0 14px, var(--rc-aqua) 14px 20px); }

/* ------------------------------------------------------------------ header */
.rc-header { position: relative; z-index: 2; background: #fff; }
/* Soft fade into the content instead of a hard border line. */
.rc-header::after {
	content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 22px; pointer-events: none;
	background: linear-gradient(rgba(26, 26, 26, .07), rgba(26, 26, 26, 0));
}
.rc-header__inner { display: flex; align-items: center; gap: 2rem; padding-top: 20px; padding-bottom: 14px; }
.rc-logo { display: block; flex-shrink: 0; line-height: 0; }
.rc-logo__img { width: 220px; height: auto; display: block; }

.rc-header__right { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: .7rem; }
.rc-header__top { display: flex; align-items: center; gap: 1.5rem; }
.rc-header__bottom { display: flex; align-items: center; gap: 1.6rem; }

/* Small uppercase utility links (Contact, Policies). */
.rc-utility ul { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.rc-utility a { font: 600 .75rem/1 var(--rc-font-body); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--rc-ink); }
.rc-utility a:hover { color: var(--rc-coral-dark); }

/* Aqua social circles with white icons. */
.rc-social-row { display: flex; align-items: center; }
.rc-social-row--header { gap: .45rem; }
.rc-header .rc-social-row--header .rc-social { width: 44px; height: 44px; background: var(--rc-aqua); color: #fff; }
.rc-header .rc-social-row--header .rc-social:hover { background: var(--rc-coral-dark); }
.rc-social-row--header .rc-icon { width: 20px; height: 20px; }

/* Big bold lowercase nav; aqua underline sweeps in on hover and always shows on the current page. */
/* Scales with the viewport so all items fit beside the 220px logo on laptop widths. */
.rc-nav ul { display: flex; gap: clamp(1rem, 1.8vw, 1.75rem); list-style: none; margin: 0; padding: 0; }
.rc-nav a { display: block; white-space: nowrap; font: 700 clamp(1.2rem, 1.7vw, 1.5rem)/1.1 var(--rc-font-head); letter-spacing: -.01em; text-transform: lowercase; text-decoration: none; color: var(--rc-ink); }
.rc-nav .rc-nav__label { padding: 0 .3rem .3em; background: linear-gradient(var(--rc-aqua), var(--rc-aqua)) left 100% / 0 .32em no-repeat; transition: background-size .3s var(--rc-ease-out, ease); }
.rc-nav a:hover .rc-nav__label,
.rc-nav .current-menu-item > a .rc-nav__label,
.rc-nav .current-menu-ancestor > a .rc-nav__label { background-size: 100% .32em; }
.rc-nav a > .rc-icon--chevron { display: inline-block; vertical-align: middle; margin-left: -.1rem; transition: transform .2s; }
.rc-nav li:hover > a > .rc-icon--chevron,
.rc-nav li:focus-within > a > .rc-icon--chevron { transform: rotate(180deg); }

/* Dropdown (opens on hover or keyboard focus). */
.rc-nav li { position: relative; }
.rc-nav .sub-menu {
	position: absolute; top: calc(100% + 14px); left: -.6rem; z-index: 20; display: block; min-width: 240px; padding: .5rem;
	background: #fff; border-top: 3px solid var(--rc-aqua); border-radius: 0 0 8px 8px; box-shadow: 0 12px 28px rgba(26, 26, 26, .12);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .2s, transform .2s var(--rc-ease-out, ease), visibility 0s .2s;
}
.rc-nav .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 17px; } /* hover bridge */
.rc-nav li:hover > .sub-menu,
.rc-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.rc-nav .sub-menu a { padding: .7rem .9rem; border-radius: 6px; font: 500 1rem/1.2 var(--rc-font-body); letter-spacing: 0; text-transform: none; }
.rc-nav .sub-menu .rc-nav__label { padding: 0; background: none; }
.rc-nav .sub-menu a:hover, .rc-nav .sub-menu .current-menu-item > a { background: var(--rc-peach); color: var(--rc-coral-dark); }
@media (prefers-reduced-motion: reduce) {
	.rc-nav .sub-menu, .rc-nav a > .rc-icon--chevron { transition: none; }
}

.rc-header__actions { display: flex; align-items: center; gap: .6rem; }
.rc-header__actions .rc-header__menu { display: none; } /* desktop: nav is visible, no menu button */
.rc-iconbtn {
	width: 44px; height: 44px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
	display: grid; place-items: center; background: transparent; color: var(--rc-ink);
}
.rc-iconbtn:hover { color: var(--rc-coral-dark); background: transparent; }
.rc-round {
	width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--rc-ink);
	display: grid; place-items: center; background: #fff; color: var(--rc-ink); cursor: pointer; padding: 0;
}
.rc-round:hover { background: var(--rc-ink); color: #fff; }

/* Drawer extras: utility links + socials under the main menu. */
.rc-drawer__utility { list-style: none; margin: 1.25rem 0 0; padding: 0; display: flex; gap: 1.25rem; }
.rc-drawer .rc-drawer__utility a { border: 0; padding: 0; font: 600 .75rem/1 var(--rc-font-body); letter-spacing: .12em; text-transform: uppercase; }
.rc-social-row--drawer { justify-content: flex-start; margin-top: 1.25rem; gap: .45rem; }
.rc-drawer .rc-social-row--drawer .rc-social { width: 40px; height: 40px; padding: 0; border: 0; justify-content: center; background: var(--rc-aqua); color: #fff; }
.rc-drawer .rc-social-row--drawer .rc-social .rc-icon { color: #fff; }

/* Search toggle: magnifier when closed, solid black circle with × when open; the icons cross-rotate. */
:root { --rc-ease-out: cubic-bezier(.22, 1, .36, 1); }
.rc-round--search { position: relative; transition: background-color .3s, color .3s; }
.rc-round--search .rc-icon { position: absolute; transition: transform .45s var(--rc-ease-out), opacity .25s; }
.rc-round--search .rc-icon--close { opacity: 0; transform: rotate(-90deg) scale(.5); }
.rc-round--search[aria-expanded="true"] { background: var(--rc-ink); color: #fff; }
.rc-round--search[aria-expanded="true"] .rc-icon--search { opacity: 0; transform: rotate(90deg) scale(.5); }
.rc-round--search[aria-expanded="true"] .rc-icon--close { opacity: 1; transform: none; }

/*
 * Search overlay: floats over the page under the header. Opens with a top-down wipe plus fade,
 * then the field glides into place; closing reverses it. visibility is delayed on close so the
 * exit animation can finish before the panel stops being interactive.
 */
.rc-search-panel {
	position: absolute; top: 100%; left: 0; right: 0; z-index: 20;
	background: var(--rc-surface); padding: 2.75rem 24px; box-shadow: 0 12px 24px rgba(31, 26, 23, .1);
	visibility: hidden; opacity: 0; clip-path: inset(0 0 100% 0);
	transition: clip-path .4s var(--rc-ease-out), opacity .3s ease, visibility 0s linear .4s;
}
.rc-search-panel.is-open {
	visibility: visible; opacity: 1; clip-path: inset(0 0 -40px 0); /* -40px keeps the drop shadow visible */
	transition: clip-path .5s var(--rc-ease-out), opacity .25s ease, visibility 0s;
}
.rc-search {
	position: relative; display: flex; max-width: 780px; margin: 0 auto;
	opacity: 0; transform: translateY(-14px) scale(.98);
	transition: opacity .25s ease, transform .4s var(--rc-ease-out);
}
.rc-search-panel.is-open .rc-search { opacity: 1; transform: none; transition-delay: .12s; }

@media (prefers-reduced-motion: reduce) {
	.rc-search-panel, .rc-search-panel.is-open { clip-path: none; transition: opacity .2s ease, visibility 0s linear .2s; }
	.rc-search-panel.is-open { transition: opacity .2s ease, visibility 0s; }
	.rc-search, .rc-round--search .rc-icon { transform: none !important; transition: opacity .2s ease; }
	.rc-search-panel.is-open .rc-search { transition-delay: 0s; }
}
/* Scoped under .rc-search to beat Kadence's input[type="search"] styles. */
.rc-search .rc-search__input {
	flex: 1; min-width: 0; height: 60px; padding: 0 76px 0 1.6rem;
	border: 1.5px solid var(--rc-ink); border-radius: var(--rc-pill); background: transparent;
	font: 400 1.5rem/1 var(--rc-font-head); color: var(--rc-ink);
}
.rc-search .rc-search__input::placeholder { color: var(--rc-ink); opacity: 1; }
.rc-search .rc-search__input:focus { outline: none; border-color: var(--rc-ink); background: #fff; box-shadow: 0 0 0 3px var(--rc-blush); }
.rc-search .rc-search__input::-webkit-search-cancel-button { display: none; }
.rc-search .rc-search__submit {
	position: absolute; right: 0; top: 0; width: 60px; height: 60px; border: 0; border-radius: 50%;
	display: grid; place-items: center; background: var(--rc-ink); color: #fff; cursor: pointer;
}
.rc-search .rc-search__submit:hover, .rc-search .rc-search__submit:focus { background: var(--rc-coral); color: var(--rc-ink); }
/* The round button pops in just after the field. */
.rc-search .rc-search__submit { transform: scale(.6); opacity: 0; transition: transform .45s var(--rc-ease-out), opacity .25s ease, background-color .2s; }
.rc-search-panel.is-open .rc-search__submit { transform: none; opacity: 1; transition-delay: .22s, .22s, 0s; }
@media (prefers-reduced-motion: reduce) {
	.rc-search .rc-search__submit { transform: none; transition: opacity .2s ease; }
}

.rc-drawer { position: fixed; inset: 0; z-index: 100; background: rgba(31, 26, 23, .45); }
.rc-drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); background: #fff; padding: 1.25rem 1.5rem; overflow-y: auto; }
.rc-drawer__panel .rc-round { margin-left: auto; }
.rc-drawer ul { list-style: none; margin: 1rem 0 0; padding: 0; }
.rc-drawer a { display: flex; align-items: center; gap: .75rem; padding: .85rem 0; border-bottom: 1px solid var(--rc-border); text-decoration: none; font-weight: 500; }
.rc-drawer a .rc-icon { color: var(--rc-coral); }
.rc-drawer .sub-menu { list-style: none; margin: 0; padding: 0 0 0 2.4rem; }
.rc-drawer .sub-menu a { padding: .65rem 0; font-size: .95rem; color: var(--rc-muted); }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- sections */
.rc-section { padding: 3.25rem 0; }
.rc-section--tint { background: var(--rc-page); }
.rc-section--white { background: #fff; }
.rc-section .rc-section__inner { max-width: var(--rc-container); margin: 0 auto; padding: 0 24px; }

.rc-dotted { display: flex; align-items: center; gap: 1.25rem; font-size: clamp(1.45rem, 2.4vw, 2rem); margin: 0 0 1.75rem; }
.rc-dotted::after {
	content: ""; flex: 1; height: 3px; min-width: 40px;
	background: radial-gradient(circle, var(--rc-coral) 1.2px, transparent 1.6px) repeat-x left center / 9px 3px;
}

/* ------------------------------------------------------------ recipe cards */
.rc-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.85rem; }
.rc-cards--cols-3 { grid-template-columns: repeat(3, 1fr); gap: 2.25rem; }
.rc-card { position: relative; background: var(--rc-card); box-shadow: var(--rc-shadow); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.rc-card__media { display: block; aspect-ratio: 2 / 3; overflow: hidden; background: var(--rc-peach); }
.rc-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.rc-card:hover .rc-card__media img { transform: scale(1.03); }
.rc-card__body { padding: 1.15rem 1.25rem 1.35rem; }
/* Always three lines tall, text centred vertically (longer titles end in "…"), so cards line up. */
.rc-card__title { font: 400 1.5rem/1.2 var(--rc-font-head); margin: 0; min-height: 3.6em; display: flex; align-items: center; }
.rc-card__title a { text-decoration: none; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.rc-card__title a:hover { color: var(--rc-coral-dark); }

.rc-ribbon {
	position: absolute; top: 26px; left: -46px; width: 190px; transform: rotate(-45deg);
	background: var(--rc-blush); color: var(--rc-ink); text-align: center;
	font: 500 1rem/1 var(--rc-font-head); padding: .5rem 0; box-shadow: var(--rc-shadow); z-index: 1;
}
.rc-cards__more { display: flex; justify-content: flex-end; margin-top: 1.75rem; }

/* Homepage section titles use the display font (single regular weight, so no faux bold). */
.home .rc-dotted,
.home .rc-callout__panel h2 {
	font-family: var(--rc-font-display); font-weight: 400; font-synthesis: none; letter-spacing: .01em;
}
.home .rc-dotted,
.home .rc-callout__panel h2 { font-size: 37px; line-height: 1.1; text-wrap: balance; }
/* ---------------------------------------------------------------- callout */
.rc-callout { display: grid; grid-template-columns: 45% 55%; background: var(--rc-peach); min-height: 360px; }
.rc-callout__panel { padding: 2.5rem; }
.rc-callout__panel h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin: 0 0 1rem; }
.rc-callout__panel p { margin: 0 0 1.25rem; }
.wp-block-columns.rc-callout { gap: 0; margin: 0; }
.rc-callout > .wp-block-column { margin: 0; }
.rc-callout__media { position: relative; min-height: 260px; }
.rc-callout__media figure { margin: 0; }
.rc-callout__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Section groups break out of Kadence's content box on full-width pages. */
.rc-section > .rc-section__inner > :last-child { margin-bottom: 0; }
.entry-content > .rc-section:first-child { margin-top: 0; }

/* ------------------------------------------------------------ post extras */
body.single-post { background: #fff; }
.single-post .content-area { margin-top: 1.75rem; }

.rc-crumbs { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .95rem; margin-bottom: 1.5rem; }
.rc-crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.rc-post-title { font: 400 2.5rem/1.1 var(--rc-font-head); margin: 0 0 1.4rem; letter-spacing: 0; }

.rc-pills { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 1.4rem; }
.rc-chip {
	display: inline-flex; align-items: center; gap: .4rem; padding: .6rem 1.4rem; border-radius: var(--rc-pill);
	font: 400 1.05rem/1 var(--rc-font-head); text-decoration: none; color: var(--rc-ink);
	box-shadow: 0 3px 6px rgba(31, 26, 23, .12); transition: transform .15s, box-shadow .15s;
}
.rc-chip:hover { transform: translateY(-1px); box-shadow: 0 5px 10px rgba(31, 26, 23, .15); color: var(--rc-ink); }
.rc-chip--pin { background: var(--rc-blush); }
.rc-chip--comments { background: var(--rc-sky); }
.rc-chip--jump { background: var(--rc-peach); }

.rc-byline { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.1rem; font-size: .92rem; }
.rc-byline img { border-radius: 50%; }
.rc-byline a { text-decoration: underline; text-underline-offset: 3px; }

.rc-rule {
	border: 0; height: 4px; margin: 1.5rem 0 1rem;
	background:
		radial-gradient(circle, var(--rc-coral) 1.4px, transparent 1.8px) 0 50% / 18px 4px repeat-x,
		radial-gradient(circle, var(--rc-honey) 1.4px, transparent 1.8px) 6px 50% / 18px 4px repeat-x,
		radial-gradient(circle, var(--rc-sage) 1.4px, transparent 1.8px) 12px 50% / 18px 4px repeat-x;
}
.rc-disclosure { font-size: .82rem; color: var(--rc-muted); font-style: italic; margin: 0 0 1.75rem; }

/* Intro paragraph + featured image */
.single-post .entry-content > p:first-child { font-size: 1.3rem; line-height: 1.75; font-style: italic; }
.rc-feature { margin: 2rem 0; }
.rc-feature img { width: 100%; height: auto; display: block; }

/* ---------------------------------------------------------------- sidebar */
.single-post .primary-sidebar .sidebar-inner-wrap { display: flex; flex-direction: column; gap: 2rem; }
.rc-side-author { position: relative; margin-top: 70px; padding: 80px 1.75rem 2rem; background: var(--rc-surface); text-align: center; }
.rc-side-author__photo { position: absolute; top: -70px; left: 50%; transform: translateX(-50%); padding: 8px; background: #fff; border-radius: 50%; box-shadow: var(--rc-shadow); }
.rc-side-author__photo img { display: block; border-radius: 50%; width: 128px; height: 128px; }
.rc-side-author__eyebrow { margin: 0 0 .5rem; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; }
.rc-side-author__name { font: 400 2rem/1.15 var(--rc-font-head); margin: 0 0 .6rem; }
.rc-side-author__bio { margin: 0 0 1.25rem; font-size: 1.05rem; line-height: 1.55; }
.rc-side-author__social { display: flex; justify-content: center; gap: .6rem; margin-top: 1.25rem; }
.rc-social { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.rc-social--facebook { background: var(--rc-aqua); }
.rc-social--instagram { background: var(--rc-aqua); }
.rc-social--pinterest { background: var(--rc-aqua); }
.rc-social--tiktok { background: var(--rc-sage); }
.rc-social--youtube { background: var(--rc-aqua); }
.rc-social:hover { filter: brightness(.9); }
/* Beat Kadence's sidebar link colour. */
.primary-sidebar .rc-side-author a.rc-pill--dark { color: #fff; }
.primary-sidebar .rc-side-author a.rc-social { color: #fff; }
.primary-sidebar .rc-side-author a.rc-pill--dark:hover { background: var(--rc-coral-dark); border-color: var(--rc-coral-dark); }
.primary-sidebar .rc-card a { color: var(--rc-ink); }

.rc-side-popular__title { display: inline-block; margin: 0; padding: .7rem 1.75rem; background: var(--rc-blush); font: 700 1.55rem/1.1 var(--rc-font-head); }
.rc-side-popular__body { border: 1px solid var(--rc-blush); padding: 1.5rem; }
.rc-cards--mini { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.rc-cards--mini .rc-card { box-shadow: none; background: #f5f5f5; }
.rc-cards--mini .rc-card__body { padding: .75rem .8rem .9rem; }
.rc-cards--mini .rc-card__title { font-size: 1.15rem; }

.rc-optin { background: #fff; border: 2px dashed var(--rc-coral); border-radius: var(--rc-radius); padding: 1.5rem; margin: 2rem 0; text-align: center; }
.rc-optin h3 { margin: 0 0 .4rem; }
.rc-optin p { margin: 0 0 1rem; color: var(--rc-muted); }
.rc-optin form { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; }
.rc-optin input[type="email"] { flex: 1 1 220px; max-width: 320px; padding: .7rem 1rem; border: 1px solid var(--rc-border); border-radius: var(--rc-pill); background: #fff; }
.rc-optin button { cursor: pointer; }
.rc-optin--inline { background: transparent; border: 0; padding: 0; margin: 0; text-align: left; }
.rc-optin--inline form { justify-content: flex-start; }

.rc-ad {
	min-height: 250px; margin: 2rem auto; max-width: 336px; display: grid; place-items: center;
	background: repeating-linear-gradient(45deg, #f0f0f0, #f0f0f0 10px, #e8e8e8 10px, #e8e8e8 20px);
	border-radius: 8px; color: var(--rc-muted); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
}
.rc-ad--sidebar { min-height: 600px; max-width: 300px; }

.rc-author { display: flex; gap: 1rem; align-items: center; background: #fff; border: 1px solid var(--rc-border); border-radius: var(--rc-radius); padding: 1.25rem; margin: 2.5rem 0; }
.rc-author img { border-radius: 50%; }
.rc-author h4 { margin: 0 0 .25rem; }
.rc-author p { margin: 0; color: var(--rc-muted); font-size: .95rem; }

.rc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; }
.rc-tool { background: #fff; border: 1px solid var(--rc-border); border-radius: var(--rc-radius); padding: 1rem; }
.rc-tool .rc-tool__brand { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--rc-muted); }

/* ------------------------------------------------------------ recipe index */
.rc-pill--soft { background: var(--rc-blush); border-color: var(--rc-blush); color: var(--rc-ink); }

.page .rc-index { padding: 1.5rem 0 3rem; }
.rc-index__title { font: 400 clamp(2rem, 4vw, 2.9rem)/1.1 var(--rc-font-head); margin: 0 0 .9rem; }
.rc-index__intro { margin: 0; font-size: 1rem; }
.rc-index .rc-rule { margin: 1.5rem 0 1.25rem; }
.rc-index__layout { display: grid; grid-template-columns: 215px 1fr; gap: 1.85rem; align-items: start; }

.rc-filters__toggle { display: none; }
.rc-filter { border-top: 2px solid var(--rc-blush); }
.rc-filter:last-of-type { border-bottom: 2px solid var(--rc-blush); }
.rc-filter summary {
	display: flex; align-items: center; gap: .5rem; padding: 1.15rem 0; cursor: pointer;
	font: 700 .95rem/1 var(--rc-font-head); letter-spacing: .02em; list-style: none;
}
.rc-filter summary::-webkit-details-marker { display: none; }
.rc-filter summary .rc-icon { margin-left: auto; transition: transform .2s; }
.rc-filter[open] summary .rc-icon { transform: rotate(180deg); }
.rc-filter__badge {
	display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px;
	border-radius: var(--rc-pill); background: var(--rc-coral); color: var(--rc-ink); font: 600 .7rem/1 var(--rc-font-body);
}
.rc-filter ul { list-style: none; margin: 0; padding: 0 0 1rem; display: grid; gap: .15rem; max-height: 320px; overflow-y: auto; }
.rc-filter label { display: flex; align-items: center; gap: .55rem; padding: .3rem 0; font-size: .92rem; cursor: pointer; }
.rc-filter label.is-empty { color: var(--rc-muted); }
.rc-filter input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--rc-coral); margin: 0; flex-shrink: 0; }
.rc-filter__count { margin-left: auto; font-size: .75rem; color: var(--rc-muted); }
.rc-filters__reset { width: 100%; justify-content: center; margin-top: 1.5rem; }

.rc-index__results { min-height: 300px; transition: opacity .2s; }
.rc-index__results.is-loading { opacity: .45; pointer-events: none; }
.rc-index__count { margin: 0 0 .9rem; font-size: .85rem; color: var(--rc-muted); }
.rc-cards--index { gap: 1.85rem; }
.rc-cards--index .rc-card { box-shadow: none; background: #f5f5f5; }
.rc-cards--index .rc-card__body { padding: 1.15rem 1.25rem 1.35rem; }
.rc-index__empty { padding: 3rem 1.5rem; text-align: center; background: #f5f5f5; }
.rc-index__empty p { margin: 0 0 1.25rem; }

.rc-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem; margin-top: 2.5rem; }
.rc-pagination .page-numbers { min-width: 40px; height: 40px; padding: 0 .9rem; display: inline-grid; place-items: center; border-radius: var(--rc-pill); text-decoration: none; background: #f5f5f5; }
.rc-pagination .page-numbers.current { background: var(--rc-coral); color: var(--rc-ink); }

/* -------------------------------------------------------- ingredient index */
.page .rc-ingindex__hero { background: var(--rc-peach); padding: 3rem 0 3.5rem; margin-bottom: 3.5rem; }
.rc-ingindex__hero-inner {
	max-width: var(--rc-container); margin: 0 auto; padding: 0 24px;
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3.25rem; align-items: center;
}
.rc-ingindex__photo {
	margin: 0; padding: 10px; background: #fff; transform: rotate(-4deg);
	box-shadow: 0 10px 28px rgba(31, 26, 23, .16);
}
.rc-ingindex__photo img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.rc-ingindex__text:only-child { grid-column: 1 / -1; max-width: 720px; }
.rc-ingindex__title { font: 400 clamp(2rem, 4vw, 2.8rem)/1.1 var(--rc-font-head); margin: 0 0 1.1rem; }
.rc-ingindex__intro { margin: 0; font-size: 1.15rem; line-height: 1.7; }

.rc-ingindex__letters { max-width: var(--rc-container); margin: 0 auto; padding: 0 24px 3rem; }
.rc-ingindex__group { margin-bottom: 2.5rem; }
.rc-ingindex__letter {
	display: inline-block; margin: 0; padding: .6rem 1.05rem .5rem;
	background: var(--rc-blush); border-radius: 6px 6px 0 0;
	font: 500 1.25rem/1 var(--rc-font-head);
}
.rc-ingindex__list {
	list-style: none; margin: 0; padding: 1.75rem 2.25rem;
	border: 2px solid var(--rc-blush); border-radius: 0 8px 8px 8px;
	display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem 1.5rem;
}
.rc-ingindex__list a { text-decoration: none; font-size: 1rem; }
.rc-ingindex__list a:hover { color: var(--rc-coral-dark); text-decoration: underline; text-underline-offset: 3px; }
.rc-ingindex__count { font-weight: 700; margin-left: 1px; }
.rc-ingindex__empty { padding: 2rem; text-align: center; background: #f5f5f5; }

@media (max-width: 1024px) {
	.rc-ingindex__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
	.page .rc-ingindex__hero { padding: 2rem 0 2.5rem; margin-bottom: 2.25rem; }
	.rc-ingindex__hero-inner { grid-template-columns: 1fr; gap: 2.25rem; padding: 0 28px; }
	.rc-ingindex__photo { transform: rotate(-3deg); }
	.rc-ingindex__letters { padding: 0 16px 2rem; }
	.rc-ingindex__list { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 1.25rem; gap: .85rem 1rem; }
}

/* ------------------------------------------------------------- videos page */
body.category-videos { background: #fff; }
.category-videos .content-area { margin-top: 2rem; }
.category-videos .primary-sidebar .sidebar-inner-wrap { display: flex; flex-direction: column; gap: 2.25rem; }

.rc-videos__crumbs { display: flex; gap: .45rem; align-items: baseline; font-size: .85rem; margin-bottom: .5rem; }
.rc-videos__crumbs a { font-weight: 600; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.rc-videos__crumbs span[aria-current] { font-style: italic; color: var(--rc-muted); }
.rc-videos__title { font: 700 clamp(2.2rem, 4.5vw, 3.2rem)/1.05 var(--rc-font-head); margin: 0 0 1.75rem; }
.rc-videos__empty { padding: 3rem 1.5rem; text-align: center; background: #f5f5f5; }

.rc-video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.75rem 2.25rem; }
.rc-video-card__media { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--rc-peach); }
.rc-video-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.rc-video-card:hover .rc-video-card__media img { transform: scale(1.03); }
.rc-video-card__play {
	position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
	width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
	background: rgba(255, 255, 255, .92); color: var(--rc-coral); box-shadow: 0 4px 14px rgba(31, 26, 23, .2);
	transition: transform .2s;
}
.rc-video-card__play .rc-icon { margin-left: 3px; }
.rc-video-card:hover .rc-video-card__play { transform: translate(-50%, -50%) scale(1.08); }
.rc-video-card__title { font: 700 1.4rem/1.2 var(--rc-font-head); text-align: center; margin: 1.1rem .5rem 0; }
.rc-video-card__title a { text-decoration: none; }
.rc-video-card__title a:hover { color: var(--rc-coral-dark); }

.rc-subscribe { background: var(--rc-ink); color: #fff; padding: 2rem 1.75rem 2.25rem; text-align: center; }
.rc-subscribe__eyebrow { margin: 0 0 .6rem; color: var(--rc-honey); font: 600 .85rem/1 var(--rc-font-head); letter-spacing: .18em; text-transform: uppercase; }
.rc-subscribe__title { color: #fff; font: 700 1.9rem/1.15 var(--rc-font-head); margin: 0 0 1.25rem; }
.rc-subscribe .rc-optin--inline form { justify-content: center; }
.rc-subscribe input[type="email"] { max-width: none; border: 0; }

/* ---------------------------------------------------------- recipe titles */
/*
 * The recipe page H1 and the WP Recipe Maker card name use the display font (card titles in grids
 * stay in Outfit). Kept late in the file so it follows the component rules it overrides;
 * "body" lifts the WPRM selector above the plugin's own template font (.wprm-recipe-template-* …).
 */
.rc-post-title,
body .wprm-recipe-container .wprm-recipe-name {
	font-family: var(--rc-font-display); font-weight: 400; font-synthesis: none; letter-spacing: .01em; text-wrap: balance;
}

/* -------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
	.rc-cards--index { grid-template-columns: repeat(3, 1fr); }
	.rc-video-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
	/* Header: logo + search + menu button; utility links, socials and nav move into the drawer. */
	.rc-header__top, .rc-nav { display: none; }
	.rc-header__actions .rc-header__menu { display: grid; }
	.rc-header__inner { padding-top: 12px; padding-bottom: 12px; }
	.rc-logo__img { width: 140px; }
	.rc-cards { grid-template-columns: repeat(2, 1fr); }
	.rc-cards--index { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
	.rc-index__layout { grid-template-columns: 1fr; gap: 1.25rem; }
	.rc-filters__toggle {
		display: flex; align-items: center; gap: .6rem; width: 100%; padding: .9rem 1.1rem; cursor: pointer;
		background: #fff; border: 2px solid var(--rc-blush); border-radius: var(--rc-radius);
		font: 700 1rem/1 var(--rc-font-head); color: var(--rc-ink);
	}
	.rc-filters__toggle .rc-icon { margin-left: auto; transition: transform .2s; }
	.rc-filters.is-open .rc-filters__toggle .rc-icon { transform: rotate(180deg); }
	.rc-filters__panel { display: none; padding: .5rem 0 0; }
	.rc-filters.is-open .rc-filters__panel { display: block; }
	.rc-cards--index { gap: 1rem; }
	.rc-video-grid { gap: 1.75rem 1rem; }
	.rc-video-card__title { font-size: 1.1rem; }
	.rc-video-card__play { width: 44px; height: 44px; }
	.rc-cards--index .rc-card__body { padding: .85rem .9rem 1rem; }
}
@media (max-width: 720px) {
	.rc-header__inner { gap: 1rem; padding-top: 8px; padding-bottom: 8px; }
	.rc-logo__img { width: 100px; }
	.rc-search-panel { padding: 1.5rem 16px; }
	.rc-search .rc-search__input { height: 52px; padding-right: 64px; font-size: 1.15rem; }
	.rc-search .rc-search__submit { width: 52px; height: 52px; }
	.rc-cards { gap: 1rem; }
	.rc-card__title { font-size: 1.2rem; }
	.rc-card__body { padding: .85rem .9rem 1rem; }
	.rc-card__media { aspect-ratio: 4 / 5; }
	.rc-ribbon { top: 18px; left: -52px; width: 170px; font-size: .8rem; padding: .35rem 0; }
	.rc-dotted::after { display: none; }
	.rc-section { padding: 2.25rem 0; }
	.rc-section .rc-section__inner { padding: 0 16px; }
	.rc-chip { font-size: .95rem; padding: .55rem 1.05rem; }
	.single-post .entry-content > p:first-child { font-size: 1.12rem; }
	.rc-callout { grid-template-columns: 1fr; }
	.rc-callout__panel { padding: 1.75rem 1.25rem; }
	.rc-cards__more { justify-content: center; }
}

@media (max-width: 420px) {
	.rc-header__actions { gap: .4rem; }
	.rc-round { width: 40px; height: 40px; }
}

@media print {
	.rc-header, .rc-pills, .rc-optin, .rc-ad, .rc-author, .primary-sidebar { display: none !important; }
}

/* ------------------------------------------------------- homepage sections */
.rc-pill--yellow { background: var(--rc-yellow); border-color: var(--rc-yellow); color: var(--rc-ink); }

.rc-sec-title, .rc-tabbox__label, .rc-split__title, .rc-feature-video__title {
	font-family: var(--rc-font-display); font-weight: 400; font-synthesis: none; letter-spacing: .01em; line-height: 1.1; text-wrap: balance;
}
/* Icon + underlined title (Most Popular, Tips). */
.rc-sec-title { display: flex; align-items: center; gap: .65rem; font-size: 37px; margin: 0 0 1rem; }
.rc-sec-title span { padding-bottom: .15em; border-bottom: 4px solid var(--rc-yellow); }
.rc-sec-title .rc-icon, .rc-tabbox__label .rc-icon { flex: none; color: var(--rc-aqua); }
.rc-sec-intro { font-size: 1.15rem; line-height: 1.6; max-width: 75ch; margin: 0 0 1.75rem; }

/* Label tab over a bordered box (Latest Posts, Collections). */
.rc-tabbox { --rc-tab: var(--rc-blush); --rc-tab-line: #f9d978; }
.rc-tabbox--aqua { --rc-tab: var(--rc-peach); --rc-tab-line: #a9e0db; }
.rc-tabbox__label { display: inline-flex; align-items: center; gap: .6rem; margin: 0; padding: .85rem 1.6rem .8rem; background: var(--rc-tab); font-size: 32px; }
.rc-tabbox__label .rc-icon { color: var(--rc-ink); opacity: .7; }
.rc-tabbox__panel { border: 1.5px solid var(--rc-tab-line); padding: 2rem 1.9rem 2.1rem; background: #fff; }
.rc-tabbox__panel > :last-child { margin-bottom: 0; }

.rc-cards--cols-5 { grid-template-columns: repeat(5, 1fr); gap: 1.6rem; }
.rc-cards--flat .rc-card { box-shadow: none; background: #f5f5f5; }
.rc-section--tint .rc-cards--flat .rc-card { background: #fff; }
.rc-cards--flat .rc-card__body { padding: 1.15rem 1.2rem 1.35rem; }

/* Split panel beside a photo (signup, about). */
.rc-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 480px; border-radius: 18px; overflow: hidden; } /* same radius as the author photo */
.rc-split__panel { padding: clamp(2rem, 4vw, 3.75rem); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.rc-split--signup .rc-split__panel { background: var(--rc-surface); }
.rc-split--about .rc-split__panel { background: var(--rc-peach); }
.rc-split__panel p { font-size: 1.1rem; line-height: 1.7; margin: 0 0 1.5rem; max-width: 56ch; }
.rc-split__title { font-size: 37px; margin: 0 0 1rem; }
.rc-split__kicker { margin: 0 0 1rem !important; font: 600 .85rem/1 var(--rc-font-head) !important; letter-spacing: .14em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 5px; }
.rc-split__media { position: relative; min-height: 280px; background: var(--rc-peach); }
.rc-split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.rc-signup { display: grid; gap: .75rem; width: 100%; max-width: 560px; margin-bottom: 1.25rem; }
.rc-split .rc-signup input[type="text"],
.rc-split .rc-signup input[type="email"] {
	height: 56px; padding: 0 1.1rem; border: 1.5px solid var(--rc-aqua); border-radius: 6px; background: #fff; font: 1rem var(--rc-font-body); color: var(--rc-ink); box-shadow: none;
	transition: background .15s, border-color .15s;
}
.rc-split .rc-signup input::placeholder { color: var(--rc-muted); }
.rc-split .rc-signup input:focus { background: #fff; border-color: var(--rc-yellow); outline: 2px solid var(--rc-yellow); outline-offset: 2px; }
.rc-signup__consent { display: flex; align-items: center; gap: .65rem; margin: .4rem 0 .6rem; font-weight: 600; cursor: pointer; }
.rc-signup__consent input { width: 20px; height: 20px; accent-color: var(--rc-aqua); }
.rc-signup button { justify-self: start; cursor: pointer; }
.rc-split .rc-signup__note { font-size: .9rem; margin: 0; }

/* Featured video (newest post in Videos). */
.rc-feature-video { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.rc-feature-video__media { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: var(--rc-peach); }
.rc-feature-video__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.rc-feature-video__media:hover img { transform: scale(1.03); }
.rc-feature-video__media:hover .rc-video-card__play { transform: translate(-50%, -50%) scale(1.08); }
.rc-feature-video__text { text-align: center; }
.rc-feature-video__kicker { margin: 0 0 .75rem; font: 600 .85rem/1 var(--rc-font-head); letter-spacing: .25em; text-transform: uppercase; }
.rc-feature-video__title { font-size: 37px; margin: 0 0 1.25rem; }
.rc-feature-video__title a { text-decoration: none; }
.rc-feature-video__text p:not(.rc-feature-video__kicker) { font-size: 1.1rem; line-height: 1.75; margin: 0 0 1.5rem; }
.rc-highlight-link {
	display: inline-flex; align-items: center; gap: .4rem; padding: 0 .35rem;
	font: 700 1rem/1.4 var(--rc-font-head); letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
	background: linear-gradient(var(--rc-yellow), var(--rc-yellow)) left bottom / 100% .45em no-repeat;
	transition: background-size .25s var(--rc-ease-out, ease);
}
.rc-highlight-link:hover { background-size: 100% 100%; color: var(--rc-ink); }

@media (max-width: 1024px) {
	.rc-cards--cols-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
	.rc-feature-video { grid-template-columns: 1fr; }
	.rc-split { grid-template-columns: 1fr; min-height: 0; }
	.rc-split--about .rc-split__media { min-height: 320px; }
	.rc-split--signup .rc-split__media { display: none; }
}
@media (max-width: 720px) {
	.rc-sec-title, .rc-split__title, .rc-feature-video__title { font-size: 30px; }
	.rc-tabbox__label { font-size: 26px; padding: .7rem 1.1rem; }
	.rc-tabbox__panel { padding: 1.25rem 1rem 1.5rem; }
	.rc-sec-intro { font-size: 1.02rem; }
	/* Five cards swipe sideways instead of leaving an orphan. */
	.rc-cards--cols-5 { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; }
	.rc-cards--cols-5 .rc-card { scroll-snap-align: start; }
}

/* ------------------------------------------------------------------ footer */
.rc-footer { position: relative; background: #fff; border-top: 6px solid var(--rc-aqua); }
.rc-footer__inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2.5rem; padding-top: 1.75rem; padding-bottom: 1.75rem; }
.rc-footer__logo { display: block; line-height: 0; transition: transform .25s var(--rc-ease-out, ease); }
.rc-footer__logo:hover { transform: rotate(-6deg) scale(1.04); }
.rc-footer__logo img { width: 96px; height: auto; }
.rc-footer__list { display: flex; flex-wrap: wrap; gap: .6rem 1.75rem; list-style: none; margin: 0; padding: 0; }
.rc-footer__list a { font: 500 .85rem/1 var(--rc-font-body); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--rc-ink); }
.rc-footer__list a:hover, .rc-footer__list .current-menu-item > a { color: var(--rc-coral-dark); text-decoration: underline; text-decoration-color: var(--rc-aqua); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.rc-footer__copy { margin: 0; font-size: .9rem; color: var(--rc-ink); }

/* Floating back-to-top button. */
.rc-totop {
	position: fixed; right: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px); z-index: 50;
	width: 56px; height: 56px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
	background: var(--rc-aqua); color: #fff; box-shadow: 0 8px 22px rgba(26, 26, 26, .2);
	opacity: 0; visibility: hidden; transform: translateY(12px);
	transition: opacity .25s, transform .25s var(--rc-ease-out, ease), visibility 0s .25s, background .15s;
}
.rc-totop .rc-icon { transform: rotate(-90deg); stroke-width: 2.2; }
.rc-totop.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.rc-totop:hover { background: var(--rc-ink); }
.rc-totop:focus-visible { outline: 3px solid var(--rc-yellow); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
	.rc-totop, .rc-footer__logo { transition: none; }
}
@media (max-width: 860px) {
	/* Extra bottom room so the floating button never covers the copyright line. */
	.rc-footer__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 1.25rem; padding-bottom: 5.5rem; }
	.rc-footer__list { justify-content: center; }
	.rc-totop { width: 48px; height: 48px; }
}

/* Last homepage section: the same white space before the footer as above it. */
.home .entry-content > .rc-section:last-child { padding-bottom: 8.5rem; }
@media (max-width: 720px) {
	.home .entry-content > .rc-section:last-child { padding-bottom: 4.5rem; }
}
