/*
Theme Name: ChefScribe Theme
Theme URI: https://chefscribe.com
Author: Claire
Author URI: https://chefscribe.com
Description: ChefScribe WordPress Theme - YouTube recipe to card system.
Version: 2.0-home-redesign
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chefscribe
*/

/* ============================================================
   ChefScribe Global Theme CSS
   Clean pastel app style + sticky glass header + shimmer CTAs
   ============================================================ */

/* Optional fonts */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');

/* ============================================================
   Design Tokens
   ============================================================ */

:root {
  /* Core brand */
  --cs-blue: #6c8cff;
  --cs-blue-deep: #5d6ff2;
  --cs-purple: #8b6dff;
  --cs-pink: #e56ad8;
  --cs-mint: #bdf4e2;
  --cs-cream: #f9f7f2;

  /* Backgrounds */
  --background: #f9f7f2;
  --card: #ffffff;
  --surface-soft: #f8f9ff;
  --surface-blue: #eef4ff;

  /* Text */
  --text: #111b39;
  --text-muted: #66738f;
  --text-soft: #8a94ad;

  /* System colours */
  --primary: #6c8cff;
  --primary-hover: #5d6ff2;
  --accent: #10b981;
  --danger: #ef4444;
  --danger-hover: #dc2626;
  --border: rgba(34, 46, 78, 0.1);
  --border-strong: rgba(34, 46, 78, 0.16);

  /* Shadows */
  --shadow: 0 8px 24px rgba(42, 55, 100, 0.08);
  --shadow-md: 0 14px 36px rgba(42, 55, 100, 0.12);
  --shadow-lg: 0 24px 70px rgba(42, 55, 100, 0.16);

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --heading-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;

  /* Radius */
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  /* Animation */
  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2026 polish: clearer focus, calmer header and a more distinctive brand mark */
html { scroll-behavior: smooth; }

.chefscribe-skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 9999;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  background: #111b39;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.18s ease;
}

.chefscribe-skip-link:focus { transform: translateY(0); }

.chefscribe-logo-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cs-blue) 0%, var(--cs-purple) 55%, var(--cs-pink) 100%);
  box-shadow: 0 8px 22px rgba(108, 140, 255, 0.27);
  color: #fff;
  font-family: var(--heading-family);
  font-size: 1.18rem;
  font-weight: 800;
}

.chefscribe-logo-link:focus-visible,
.chefscribe-menu-link:focus-visible,
.chefscribe-mobile-menu-btn:focus-visible,
.cs-page a:focus-visible,
.cs-page button:focus-visible,
.cs-page summary:focus-visible {
  outline: 3px solid rgba(95, 142, 255, 0.45);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}


.cs-hero-visual,
.cs-browser-mock,
.cs-transform-stage {
  min-height: 420px;
}

.cs-before-card img {
  aspect-ratio: 4 / 3;
  width: 100%;
  height: auto;
  display: block;
}

.cs-mobile-menu,
.mobile-menu,
.menu-toggle-content {
  display: none;
}

.cs-video-thumb {
  position: relative;
  height: 122px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 0.8rem;
  background-image: url("https://chefscribe.com/wp-content/uploads/2026/05/chefscribe-creamy-pasta-hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f7f3ed;
}
/* Emergency ChefScribe header/menu stabiliser */

.site-header,
#masthead {
  min-height: 88px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(34, 46, 78, 0.08);
  position: relative;
  z-index: 50;
}

.site-header .site-branding,
#masthead .site-branding {
  display: flex;
  align-items: center;
}

.site-header .main-navigation,
#masthead .main-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header .main-navigation ul,
#masthead .main-navigation ul {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header .main-navigation li,
#masthead .main-navigation li {
  margin: 0;
  padding: 0;
}

.site-header .main-navigation a,
#masthead .main-navigation a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 700;
  color: #1f2937;
}

/* Hide duplicate/fallback mobile menu by default */
.menu-toggle,
.main-navigation.toggled ul,
.mobile-menu,
.cs-mobile-menu,
.menu-panel,
.menu-toggle-content {
  display: none;
}

/* Desktop nav */
@media (min-width: 782px) {
  .main-navigation ul {
    display: flex !important;
  }

  .menu-toggle {
    display: none !important;
  }
}

/* Mobile nav */
@media (max-width: 781px) {
  .site-header,
  #masthead {
    min-height: 72px;
  }

  .main-navigation ul {
    display: none !important;
  }

  .main-navigation.toggled ul {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 16px 36px rgba(72, 92, 138, 0.14);
  }

  .menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }
}
/* ============================================================
   Reset + Base
   ============================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
}

/* Remove theme gaps under sticky header */
.site-content,
#content,
main,
main#primary,
.site-main,
#primary,
.page,
.home main,
.home .site-main,
.home #primary {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Prevent logged-in WordPress admin bar from adding mystery gaps */
body.admin-bar #primary {
  margin-top: 0 !important;
}

/* ============================================================
   Typography
   ============================================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--heading-family);
  color: var(--text);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-top: 0;
  margin-bottom: var(--spacing-sm);
}

h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 800;
}

h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 750;
}

h4 {
  font-size: 1.35rem;
  font-weight: 700;
}

p {
  color: var(--text-muted);
  margin-top: 0;
  margin-bottom: var(--spacing-sm);
  font-size: 1.08rem;
  line-height: 1.75;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-hover);
}

/* Gradient text utility */
.gradient-text,
.cs-gradient-text {
  background: linear-gradient(90deg, var(--cs-blue), var(--cs-purple), var(--cs-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   Containers
   ============================================================ */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--spacing-lg);
  padding-right: var(--spacing-lg);
}

.container-sm {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding-left: var(--spacing-lg);
  padding-right: var(--spacing-lg);
}

/* ============================================================
   Header / Navigation
   ============================================================ */

.site-header,
#masthead,
header.site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 99999 !important;
  background: rgba(255, 255, 255, 0.78) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(34, 46, 78, 0.06) !important;
  box-shadow: 0 2px 14px rgba(42, 55, 100, 0.04) !important;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.logo-icon {
  background: #ffffff;
  border-radius: 12px;
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(42, 55, 100, 0.08);
}

.logo-icon img {
  display: block;
  margin: 0;
}

.header-nav,
.main-navigation ul,
#site-navigation ul {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.main-navigation li,
#site-navigation li,
nav li {
  margin: 0 !important;
}

#site-navigation a,
.main-navigation a,
nav a {
  font-size: 15px !important;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #303a55;
  transition: color 0.18s ease, opacity 0.18s ease;
}

#site-navigation a:hover,
.main-navigation a:hover,
nav a:hover {
  color: var(--cs-purple) !important;
}

/* Header CTA */
.cta-btn a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.7rem 1.25rem !important;
  border-radius: var(--radius-pill) !important;
  background: linear-gradient(90deg, var(--cs-blue), var(--cs-purple), var(--cs-pink)) !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  box-shadow: 0 10px 24px rgba(123, 111, 255, 0.25);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.cta-btn a:hover {
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(123, 111, 255, 0.32);
}

/* ============================================================
   Buttons
   ============================================================ */

.btn,
.button,
.wp-block-button__link,
.chrome-btn,
a.chrome-btn,
.btn-primary,
.btn-secondary,
.btn-danger,
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.95rem 1.45rem;
  border-radius: var(--radius-pill);
  border: 0;
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn:focus,
.button:focus,
.wp-block-button__link:focus,
.chrome-btn:focus,
a.chrome-btn:focus {
  outline: 3px solid rgba(108, 140, 255, 0.28);
  outline-offset: 3px;
}

.btn:active,
.button:active,
.wp-block-button__link:active,
.chrome-btn:active,
a.chrome-btn:active {
  transform: scale(0.98);
}

.btn-primary,
.wp-block-button__link,
.chrome-btn,
a.chrome-btn,
.btn-cta {
  background: linear-gradient(90deg, var(--cs-blue), var(--cs-purple), var(--cs-pink)) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 28px rgba(123, 111, 255, 0.25);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn-primary:hover,
.wp-block-button__link:hover,
.chrome-btn:hover,
a.chrome-btn:hover,
.btn-cta:hover {
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(123, 111, 255, 0.34);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.86);
  color: #526078;
  border: 1px solid var(--border);
  box-shadow: 0 8px 22px rgba(42, 55, 100, 0.07);
}

.btn-secondary:hover {
  background: #ffffff;
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-danger {
  background: var(--danger);
  color: #ffffff;
  font-size: 0.9rem;
  padding: 0.65rem 1rem;
  min-height: 38px;
}

.btn-danger:hover {
  background: var(--danger-hover);
  color: #ffffff;
}

/* ============================================================
   Shimmer / Glimmer Effects
   ============================================================ */

@keyframes cs-shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.shimmer,
.animate-shimmer {
  background-size: 200% 100%;
  animation: cs-shimmer 5.5s linear infinite;
}

@keyframes cs-glimmer {
  0% {
    left: -180%;
  }

  100% {
    left: 180%;
  }
}

.cs-glimmer,
.cta-btn a,
a.chrome-btn,
.chrome-btn,
.btn-primary,
.btn-cta,
.wp-block-button__link {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.cs-glimmer::after,
.cta-btn a::after,
a.chrome-btn::after,
.chrome-btn::after,
.btn-primary::after,
.btn-cta::after,
.wp-block-button__link::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -180%;
  width: 60%;
  height: 200%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.38),
    rgba(255, 255, 255, 0)
  );
  transform: skewX(-20deg);
  animation: cs-glimmer 4.2s ease-in-out infinite;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 2;
}

/* ============================================================
   Cards
   ============================================================ */

.card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ============================================================
   Hero Section
   ============================================================ */

.hero-section {
  padding-top: 0 !important;
  padding-bottom: var(--spacing-md);
}

.hero-content {
  max-width: 680px;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--heading-family);
  font-size: clamp(3.2rem, 7vw, 6.4rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.065em;
  margin-bottom: var(--spacing-md);
  color: var(--text);
}

.hero-title .gradient-text,
.hero-title .cs-gradient-text {
  background: linear-gradient(90deg, var(--cs-blue), var(--cs-purple), var(--cs-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  color: var(--text-muted);
  margin-bottom: var(--spacing-lg);
  line-height: 1.75;
}

/* Hero input */
.hero-input-container {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-sm);
  box-shadow: 0 20px 55px rgba(42, 55, 100, 0.12);
  margin-bottom: var(--spacing-md);
  transition: var(--transition);
}

.hero-input-container:focus-within {
  border-color: rgba(139, 109, 255, 0.38);
  box-shadow:
    0 0 0 5px rgba(139, 109, 255, 0.1),
    0 20px 55px rgba(42, 55, 100, 0.14);
}

.input-group {
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
}

.url-input {
  flex: 1;
  width: 100%;
  border: 0;
  outline: 0;
  font-size: 1.05rem;
  padding: 0.9rem 1rem;
  background: transparent;
  color: var(--text);
}

.url-input::placeholder {
  color: #8e9ab6;
}

.help-text {
  font-size: 0.95rem;
  color: var(--text-soft);
  margin: 0.6rem 0 0;
}

/* ============================================================
   Saved Recipes / Recipe Grid
   ============================================================ */

.saved-recipes {
  padding: var(--spacing-xl) 0;
  margin-top: 2rem;
  display: none;
}

.saved-recipes.has-recipes {
  display: block;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-lg);
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.section-title {
  font-family: var(--heading-family);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 800;
  margin: 0;
  color: var(--text);
}

.header-actions {
  display: flex;
  gap: var(--spacing-sm);
}

.recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-md);
}

.recipe-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  animation: slideInUp 0.45s ease-out;
}

.recipe-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.recipe-card-content {
  padding: var(--spacing-lg);
}

.recipe-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border-bottom: 1px solid var(--border);
  object-fit: cover;
  background: linear-gradient(135deg, #eef4ff, #f8f1ff);
}

.recipe-title,
.recipe-card .card-title {
  font-family: var(--heading-family);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 0.7rem;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recipe-summary {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: var(--spacing-sm);
  line-height: 1.55;
}

.recipe-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem;
  font-size: 0.875rem;
  color: var(--text-soft);
  margin-bottom: var(--spacing-md);
}

.recipe-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.recipe-channel {
  font-size: 0.875rem;
  color: var(--text-soft);
  margin-top: var(--spacing-xs);
}

.recipe-channel a {
  color: var(--primary);
  font-weight: 700;
}

.recipe-channel a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.recipe-actions {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: var(--spacing-xl);
  color: var(--text-muted);
}

.empty-illustration {
  font-size: 4rem;
  margin-bottom: var(--spacing-md);
  opacity: 0.55;
}

.empty-state h3 {
  color: var(--text);
  margin-bottom: var(--spacing-sm);
}

/* ============================================================
   Modal
   ============================================================ */

.recipe-modal,
#recipe-modal {
  position: fixed;
  inset: 0;
  top: 72px;
  z-index: 9999 !important;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(17, 27, 57, 0.52);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow-y: auto;
  animation: fadeIn 0.2s ease-out;
}

body.admin-bar .recipe-modal,
body.admin-bar #recipe-modal {
  top: 104px;
}

.modal-content,
#recipe-modal .bg-white {
  width: min(760px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 10000;
  animation: slideDownModal 0.28s ease-out;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-lg);
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-family: var(--heading-family);
  font-size: 1.7rem;
  font-weight: 800;
  margin: 0;
  color: var(--text);
}

.modal-close {
  background: #f4f6ff;
  border: 1px solid var(--border);
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-muted);
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.modal-close:hover {
  background: #eef4ff;
  color: var(--text);
}

.modal-body {
  padding: var(--spacing-lg);
}

.recipe-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-lg);
}

.recipe-section h3 {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: 1.25rem;
  margin-bottom: var(--spacing-md);
}

/* Ingredient list */
.ingredients-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ingredients-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(34, 46, 78, 0.08);
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  color: var(--text-muted);
}

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

.ingredients-list li::before {
  content: "•";
  color: var(--cs-purple);
  font-weight: 900;
  font-size: 1.3rem;
  line-height: 1;
}

/* Steps list */
.steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step-counter;
}

.steps-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(34, 46, 78, 0.08);
  display: flex;
  gap: var(--spacing-md);
  counter-increment: step-counter;
  color: var(--text-muted);
}

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

.steps-list li::before {
  content: counter(step-counter);
  background: linear-gradient(135deg, var(--cs-blue), var(--cs-purple));
  color: #ffffff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.modal-footer {
  padding: var(--spacing-lg);
  border-top: 1px solid var(--border);
  display: flex;
  gap: var(--spacing-sm);
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* ============================================================
   Toasts
   ============================================================ */

#toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: #111b39;
  color: #ffffff;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  font-size: 0.92rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(-10px);
  animation: toastIn 0.3s forwards;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-success {
  background: #10b981;
}

.toast-error {
  background: #ef4444;
}

/* ============================================================
   Usage / Progress
   ============================================================ */

#usage-info {
  max-width: 480px;
  margin: 1.5rem auto 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.progress-bar {
  width: 100%;
  height: 7px;
  background: rgba(34, 46, 78, 0.1);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.55rem;
}

.progress-fill {
  height: 7px;
  background: linear-gradient(90deg, var(--cs-blue), var(--cs-purple), var(--cs-pink));
  border-radius: 999px;
  width: 0%;
  transition: width 0.6s ease-in-out;
}

/* ============================================================
   Decorative Animations
   ============================================================ */

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideDownModal {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toastIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatFade {
  0% {
    transform: translateY(0);
    opacity: 0;
  }

  10% {
    opacity: 0.4;
  }

  50% {
    transform: translateY(-30px);
    opacity: 0.6;
  }

  90% {
    opacity: 0.4;
  }

  100% {
    transform: translateY(-60px);
    opacity: 0;
  }
}

.emoji-fade-float {
  position: absolute;
  opacity: 0;
  animation-name: floatFade;
  animation-timing-function: ease-in-out;
}

@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slideDown {
  animation: slideDown 0.25s ease-out;
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: rgba(255, 255, 255, 0.82);
  border-top: 1px solid var(--border);
  padding: var(--spacing-xl) 0;
  margin-top: var(--spacing-xl);
}

.footer-content {
  text-align: center;
  color: var(--text-muted);
}

/* ============================================================
   Section Spacing
   ============================================================ */

/* Keep sections neat, but avoid huge random gaps */
section + section {
  margin-top: 0 !important;
}

/* Homepage specific */
.home .site-main > section:first-child,
.home main > section:first-child,
.home #primary > section:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* ============================================================
   Accessibility / Selection
   ============================================================ */

::selection {
  background: rgba(139, 109, 255, 0.22);
  color: var(--text);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 900px) {
  .container,
  .container-sm {
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
  }

  .header-nav,
  .main-navigation ul,
  #site-navigation ul {
    gap: 1rem;
  }

  #site-navigation a,
  .main-navigation a,
  nav a {
    font-size: 14px !important;
  }

  .recipe-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
}

@media (max-width: 768px) {
  .container,
  .container-sm {
    padding-left: var(--spacing-sm);
    padding-right: var(--spacing-sm);
  }

  .header-content {
    min-height: 66px;
  }

  .header-nav {
    display: none;
  }

  .hero-title {
    font-size: clamp(2.7rem, 14vw, 4.4rem);
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .input-group {
    flex-direction: column;
    align-items: stretch;
  }

  .url-input {
    margin-bottom: 0;
  }

  .recipes-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .modal-content,
  #recipe-modal .bg-white {
    max-height: 92vh;
  }

  .recipe-modal,
  #recipe-modal {
    top: 66px;
    padding: 1rem;
  }

  body.admin-bar .recipe-modal,
  body.admin-bar #recipe-modal {
    top: 98px;
  }

  .modal-footer {
    flex-direction: column;
  }

  .modal-footer .btn,
  .modal-footer button,
  .modal-footer a {
    width: 100%;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2.75rem;
  }

  h2 {
    font-size: 2rem;
  }

  p {
    font-size: 1rem;
  }

  .hero-input-container {
    padding: 0.75rem;
  }

  .recipe-card-content {
    padding: var(--spacing-md);
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding: var(--spacing-md);
  }

  .btn,
  .button,
  .wp-block-button__link,
  .chrome-btn,
  a.chrome-btn,
  .btn-primary,
  .btn-secondary,
  .btn-danger,
  .btn-cta {
    width: 100%;
  }
}
.cs-popular-guides {
  margin: 0 0 34px;
  padding: 28px;
  border-radius: var(--cs-radius-xl);
  border: 1px solid var(--cs-border);
  background: rgba(255,255,255,0.82);
  box-shadow: var(--cs-shadow-soft);
  text-align: center;
}

.cs-popular-guides h2 {
  margin: 0 0 10px;
  color: var(--cs-heading);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.cs-popular-guides p {
  max-width: 620px;
  margin: 0 auto 20px;
  color: var(--cs-text);
  font-size: 16px;
  line-height: 1.6;
}

.cs-popular-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.cs-popular-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(167,139,250,0.22);
  background: rgba(255,255,255,0.9);
  color: #5f63d8;
  text-decoration: none;
  font-size: 14px;
  font-weight: 850;
  box-shadow: 0 8px 22px rgba(15,23,42,0.04);
}

.cs-popular-links a:hover {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(90deg, var(--cs-blue), var(--cs-lilac), var(--cs-pink));
}


.recipe-thumb-link {
  position: relative;
  display: inline-block;
  max-width: 640px;
}

.recipe-thumb-link img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
}

.thumb-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: linear-gradient(90deg, #5b5cf6, #d92dbf);
  color: white;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 8px 24px rgba(91, 92, 246, 0.25);
}

.recipe-button {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #5b5cf6, #d92dbf);
  color: white;
  text-decoration: none;
  font-weight: 700;
}

.recipe-button:hover,
.recipe-thumb-link:hover .thumb-badge {
  opacity: 0.9;
}

.youtube-link {
  font-size: 0.95rem;
}
/* ChefScribe header/footer - replaces Tailwind CDN */

.chefscribe-body {
  background: #F9F7F1;
}

.chefscribe-site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.chefscribe-main {
  flex-grow: 1;
  padding-top: 1.5rem;
}

.chefscribe-header {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.chefscribe-header-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chefscribe-logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.chefscribe-logo-emoji {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.chefscribe-logo-text,
.chefscribe-footer-brand {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 700;
  background-image: linear-gradient(to right, #3b82f6, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.chefscribe-menu,
.chefscribe-mobile-menu-list,
.chefscribe-legal-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.chefscribe-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.chefscribe-menu-item {
  list-style: none;
}

.chefscribe-menu-link {
  color: #374151;
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 150ms ease;
}

.chefscribe-menu-link:hover {
  color: #3b82f6;
}

.cta-btn > a,
.chefscribe-menu-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #6c8cff, #8b6dff, #e56ad8);
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(123, 111, 255, 0.25);
  transition: filter 150ms ease, transform 150ms ease;
}

.cta-btn > a:hover,
.chefscribe-menu-cta:hover {
  color: #ffffff !important;
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.chefscribe-mobile-menu-btn {
  display: none;
  border: 0;
  background: transparent;
  color: #111827;
  font-size: 1.875rem;
  line-height: 2.25rem;
  cursor: pointer;
}

.chefscribe-mobile-menu {
  background: #ffffff;
  padding: 1rem 1.5rem;
  border-top: 1px solid #e5e7eb;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.chefscribe-mobile-menu.is-hidden {
  display: none;
}

.chefscribe-mobile-menu-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chefscribe-mobile-menu-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--cs-app-line, #e4e5f7);
}
.chefscribe-mobile-menu-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: .6rem .9rem;
  border: 1px solid var(--cs-app-line, #e4e5f7);
  border-radius: 11px;
  color: var(--cs-app-purple, #7653e8);
  background: white;
  text-decoration: none;
  font-weight: 800;
}
.chefscribe-mobile-menu-actions a:last-child {
  border-color: transparent;
  color: white;
  background: linear-gradient(105deg, #4c6fff, #7653e8 55%, #e64da6);
}

.chefscribe-footer {
  margin-top: 5rem;
  padding: 2.5rem 0;
}

.chefscribe-footer-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}

.chefscribe-legal-details {
  display: inline-block;
}

.chefscribe-legal-summary {
  cursor: pointer;
  color: #374151;
  font-weight: 600;
  transition: color 150ms ease;
}

.chefscribe-legal-summary:hover {
  color: #111827;
}

.chefscribe-legal-menu {
  margin-top: 1rem;
}

.chefscribe-legal-menu > * + * {
  margin-top: 0.5rem;
}

.chefscribe-footer-copy {
  margin: 1.5rem 0 0;
  color: #4b5563;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.chefscribe-footer-small {
  margin: 1rem 0 0;
  color: #9ca3af;
  font-size: 0.75rem;
  line-height: 1rem;
}

@media (max-width: 767px) {
  .chefscribe-desktop-nav {
    display: none;
  }

  .chefscribe-mobile-menu-btn {
    display: block;
  }
}

@media (min-width: 768px) {
  .chefscribe-mobile-menu {
    display: none !important;
  }
}
.cs-example-mini-title {
  font-family: var(--font-head);
  font-size: 0.84rem;
  line-height: 1.25;
  font-weight: 650;
  color: var(--cs-heading);
  margin-bottom: 0.45rem;
}

.cs-example-mini-heading {
  margin: 0 0 0.28rem;
  font-size: 0.64rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #4f46a5;
}

/* =========================================
   ChefScribe standard content-page typography
   Replaces the old FAQ/Creators block.

   Important: page ID 600 is the Blog page, so it must not be
   used as the selector for FAQ or Creators.
   ========================================= */

/* Keep ordinary WordPress content pages readable without
   changing the bespoke homepage hero. */
body.page:not(.home) .entry-content {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

/* Main page title */
body.page:not(.home) .entry-content h1,
body.page:not(.home) main .entry-content h1 {
  font-size: clamp(42px, 4.5vw, 60px) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.045em !important;
  margin: 20px 0 24px !important;
}

/* Section headings */
body.page:not(.home) .entry-content h2,
body.page:not(.home) main .entry-content h2 {
  font-size: clamp(28px, 3vw, 40px) !important;
  line-height: 1.1 !important;
  letter-spacing: -0.035em !important;
  margin: 34px 0 14px !important;
}

/* Smaller subheadings */
body.page:not(.home) .entry-content h3,
body.page:not(.home) main .entry-content h3 {
  font-size: clamp(22px, 2vw, 30px) !important;
  line-height: 1.2 !important;
  letter-spacing: -0.025em !important;
  margin: 26px 0 10px !important;
}

/* Body copy and lists */
body.page:not(.home) .entry-content p,
body.page:not(.home) .entry-content li {
  font-size: 17px !important;
  line-height: 1.65 !important;
}

/* FAQ accordion questions */
body.page:not(.home) .entry-content details summary {
  font-size: 18px !important;
  line-height: 1.4 !important;
  font-weight: 650 !important;
  padding: 10px 0 !important;
}

/* Keep the little in-page jump links from running together */
body.page:not(.home) .entry-content .page-links,
body.page:not(.home) .entry-content .anchor-links,
body.page:not(.home) .entry-content nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

@media (max-width: 600px) {
  body.page:not(.home) .entry-content h1,
  body.page:not(.home) main .entry-content h1 {
    font-size: clamp(36px, 11vw, 48px) !important;
  }

  body.page:not(.home) .entry-content h2,
  body.page:not(.home) main .entry-content h2 {
    font-size: clamp(27px, 8vw, 34px) !important;
  }
}


/* ============================================================
   ChefScribe 1.1 — App cohesion layer
   Makes the WordPress marketing site visually match the recipe app.
   ============================================================ */

:root {
  --cs-app-ink: #202b42;
  --cs-app-muted: #68738a;
  --cs-app-purple: #7653e8;
  --cs-app-purple-2: #a64bd6;
  --cs-app-lilac: #f3efff;
  --cs-app-blue: #4c6fff;
  --cs-app-pink: #e64da6;
  --cs-app-surface: #ffffff;
  --cs-app-soft: #f8f9ff;
  --cs-app-line: #e4e5f7;
  --cs-app-dark: #202b42;
  --cs-app-shadow: 0 22px 60px rgba(46, 62, 119, 0.12);
  --cs-app-shadow-soft: 0 12px 34px rgba(46, 62, 119, 0.08);
}

body.chefscribe-body {
  background:
    radial-gradient(circle at 10% 0%, rgba(76,111,255,.08), transparent 26rem),
    radial-gradient(circle at 90% 10%, rgba(230,77,166,.05), transparent 24rem),
    linear-gradient(180deg, #fff 0, #fff 28rem, #fafbff 100%);
  color: var(--cs-app-ink);
}

.chefscribe-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--cs-app-line);
  box-shadow: 0 8px 28px rgba(46,62,119,.05);
}

.chefscribe-header-inner {
  width: min(1240px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.chefscribe-logo-link {
  display: inline-flex;
  align-items: center;
  gap: .72rem;
  color: var(--cs-app-ink);
  text-decoration: none;
  flex: 0 0 auto;
}

.chefscribe-logo-text {
  font-family: var(--heading-family);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -.035em;
}

.chefscribe-logo-icon {
  display: block;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 10px;
  object-fit: contain;
}

.chefscribe-logo-mark {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg,var(--cs-app-blue),var(--cs-app-purple),var(--cs-app-pink));
  box-shadow: 0 9px 22px rgba(76,111,255,.18);
  font-size: 1rem;
}

.chefscribe-desktop-nav { margin-left: auto; }
.chefscribe-menu {
  display: flex;
  align-items: center;
  gap: .28rem !important;
  list-style: none;
  margin: 0;
  padding: 0;
}

.chefscribe-menu-link {
  padding: .65rem .78rem;
  border-radius: 10px;
  color: #545d76;
  font-size: .82rem;
  font-weight: 750;
  transition: background .18s ease,color .18s ease,transform .18s ease;
}
.chefscribe-menu-link:hover {
  color: var(--cs-app-purple);
  background: var(--cs-app-lilac);
  transform: translateY(-1px);
}

.chefscribe-app-actions {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-left: .35rem;
}
.chefscribe-app-link,
.chefscribe-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 11px;
  padding: .68rem .92rem;
  font-size: .78rem;
  font-weight: 800;
  text-decoration: none;
}
.chefscribe-app-link {
  color: var(--cs-app-purple);
  background: #fff;
  border: 1px solid var(--cs-app-line);
  box-shadow: 0 8px 22px rgba(46,62,119,.05);
  gap: .48rem;
}
.chefscribe-app-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38c172;
  box-shadow: 0 0 0 4px rgba(56,193,114,.12);
}
.chefscribe-header-cta {
  color: #fff !important;
  background: linear-gradient(105deg,var(--cs-app-blue),var(--cs-app-purple) 55%,var(--cs-app-pink));
  box-shadow: 0 10px 24px rgba(76,111,255,.18);
}

/* Shared app surfaces across bespoke WordPress templates */
.cs-page,
body.page:not(.home) .entry-content,
body.single .entry-content {
  --cs-blue: var(--cs-app-blue);
  --cs-blue-deep: #3c5ee3;
  --cs-purple: var(--cs-app-purple);
  --primary: var(--cs-app-blue);
  --primary-hover: #3c5ee3;
  --background: #fafbff;
  --surface-soft: var(--cs-app-soft);
  --surface-blue: var(--cs-app-lilac);
  --text: var(--cs-app-ink);
  --text-muted: var(--cs-app-muted);
  --border: rgba(76,111,255,.12);
  --border-strong: rgba(76,111,255,.20);
}

/* Make homepage surfaces feel like panels from the product */
.cs-page .cs-surface,
.cs-page .cs-surface-soft,
.cs-page [class*="card"],
.cs-page [class*="panel"] {
  border-color: var(--cs-app-line);
}

.cs-page .cs-surface,
.cs-page .cs-surface-soft {
  box-shadow: var(--cs-app-shadow-soft);
}

.cs-page .cs-btn-primary,
.cs-page .cs-button-primary,
.cs-page a[class*="primary"],
.cs-page button[class*="primary"] {
  background: linear-gradient(105deg,var(--cs-app-blue),var(--cs-app-purple) 55%,var(--cs-app-pink)) !important;
  box-shadow: 0 12px 30px rgba(76,111,255,.18) !important;
}

/* The homepage had an old blue/pink wash; shift it toward the app palette. */
html body.home,
html body.home #page,
html body.home .site,
html body.home #content,
html body.home .site-content,
html body.home .content-area,
html body.home main#primary,
html body.home #primary.cs-page,
html body.home .site-main,
.cs-page {
  background:
    radial-gradient(circle at 78% 4%, rgba(76,111,255,.10), transparent 25rem),
    radial-gradient(circle at 10% 14%, rgba(230,77,166,.08), transparent 22rem),
    linear-gradient(180deg,#fff 0,#f9faff 54rem,#fff 100%) !important;
}

.cs-page .cs-h1,
.cs-page .cs-h2,
.cs-page .cs-h3,
.cs-page .cs-empty-title,
.cs-page .cs-modal-title {
  color: var(--cs-app-ink) !important;
}

.cs-page .cs-gradient-text,
.cs-page .cs-h1 em,
.cs-page .cs-h2 em {
  background: linear-gradient(105deg,var(--cs-app-blue),var(--cs-app-purple) 55%,var(--cs-app-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}

/* App-like small controls and tags */
.cs-page [class*="chip"],
.cs-page [class*="pill"],
.cs-page [class*="tag"],
.cs-page [class*="badge"] {
  border-radius: 999px !important;
}

/* Standard WordPress pages: turn long articles into a product-help canvas */
body.page:not(.home) .chefscribe-main,
body.single .chefscribe-main {
  background: linear-gradient(180deg,#f8f9ff 0,#fff 420px);
  padding: 2rem 0 3rem;
}
body.page:not(.home) .entry-content,
body.single .entry-content {
  background: rgba(255,255,255,.94);
  border: 1px solid var(--cs-app-line);
  border-radius: 28px;
  box-shadow: var(--cs-app-shadow-soft);
  padding-top: clamp(28px,5vw,58px);
  padding-bottom: clamp(34px,6vw,70px);
}
body.page:not(.home) .entry-content h1,
body.single .entry-content h1 {
  max-width: 800px;
  color: var(--cs-app-ink) !important;
}
body.page:not(.home) .entry-content h2,
body.single .entry-content h2 {
  color: var(--cs-app-ink) !important;
  border-top: 1px solid var(--cs-app-line);
  padding-top: 1.7rem;
}
body.page:not(.home) .entry-content h2:first-of-type,
body.single .entry-content h2:first-of-type { border-top: 0; }
body.page:not(.home) .entry-content a:not(.button):not([class*="btn"]),
body.single .entry-content a:not(.button):not([class*="btn"]) {
  color: var(--cs-app-purple);
  text-decoration-color: rgba(76,111,255,.28);
  text-underline-offset: 3px;
}
body.page:not(.home) .entry-content details,
body.single .entry-content details {
  background: var(--cs-app-soft);
  border: 1px solid var(--cs-app-line);
  border-radius: 16px;
  padding: .45rem 1rem;
  margin: .7rem 0;
}
body.page:not(.home) .entry-content blockquote,
body.single .entry-content blockquote {
  border-left: 4px solid var(--cs-app-purple);
  background: var(--cs-app-lilac);
  border-radius: 0 16px 16px 0;
  margin: 1.5rem 0;
  padding: 1rem 1.2rem;
}

/* Footer now behaves like the bottom of the app shell. */
.chefscribe-footer {
  margin-top: 0;
  background: #f8f9ff;
  border-top: 1px solid var(--cs-app-line);
  padding: 2.25rem 0 1.5rem;
}
.chefscribe-footer-inner {
  width: min(1240px, calc(100% - 32px));
  max-width: none;
  padding: 0;
}
.chefscribe-footer-app {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 1.1rem;
  margin-bottom: 1.4rem;
  background: #fff;
  border: 1px solid var(--cs-app-line);
  border-radius: 18px;
  box-shadow: var(--cs-app-shadow-soft);
  text-align: left;
}
.chefscribe-footer-brand-lockup {
  display: flex;
  align-items: center;
  gap: .8rem;
}
.chefscribe-footer-brand-lockup div {
  display: flex;
  flex-direction: column;
  gap: .18rem;
}
.chefscribe-footer-brand-lockup strong { font-size: .95rem; color: var(--cs-app-ink); }
.chefscribe-footer-brand-lockup span:not(.chefscribe-logo-mark) { font-size: .75rem; color: var(--cs-app-muted); }
.chefscribe-footer-actions { display: flex; align-items: center; gap: .55rem; }
.chefscribe-footer-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: .65rem .85rem;
  border-radius: 10px;
  border: 1px solid var(--cs-app-line);
  background: #fff;
  color: var(--cs-app-purple);
  text-decoration: none;
  font-size: .76rem;
  font-weight: 800;
}
.chefscribe-footer-actions a.primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(105deg,var(--cs-app-blue),var(--cs-app-purple) 55%,var(--cs-app-pink));
}

@media (max-width: 1050px) {
  .chefscribe-app-actions .chefscribe-app-link { display: none; }
  .chefscribe-menu { gap: 0 !important; }
  .chefscribe-menu-link { padding-inline: .55rem; }
}

@media (max-width: 767px) {
  .chefscribe-header-inner { min-height: 66px; }
  .chefscribe-app-actions { margin-left: auto; }
  .chefscribe-app-actions .chefscribe-header-cta { display: none; }
  .chefscribe-footer-app { align-items: flex-start; flex-direction: column; }
  .chefscribe-footer-actions { width: 100%; flex-wrap: wrap; }
  .chefscribe-footer-actions a { flex: 1 1 auto; justify-content: center; }
  body.page:not(.home) .chefscribe-main,
  body.single .chefscribe-main { padding-top: .75rem; }
  body.page:not(.home) .entry-content,
  body.single .entry-content { border-radius: 20px; }
}

/* Keep the sticky site navigation below the WordPress admin toolbar. */
body.admin-bar .chefscribe-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .chefscribe-header { top: 46px; }
}
