:root {
  --bg-warm: #F8F5F0;
  --card-bg: #FFFFFF;
  --text-dark: #222220;
  --text-muted: #666660;
  --accent-clay: #A34828;
  --accent-sage: #5A6B5C;
  --border-light: #E5E0D8;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
}

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

body {
  background-color: var(--bg-warm);
  color: var(--text-dark);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

/* --- HEADER & NAVIGATION --- */
header {
  position: sticky;
  top: 0;
  background: rgba(248, 245, 240, 0.96);
  backdrop-filter: blur(8px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-light);
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--text-dark);
}

.brand-logo-img {
  max-height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--accent-clay);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-dark);
}

/* --- LIGHTBOX OVERLAY --- */
.lightbox-overlay {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* 70% Black Background */
  backdrop-filter: blur(4px); /* Optional soft blur effect */
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: 300;
  cursor: pointer;
  user-select: none;
  line-height: 1;
}

img.lightbox-trigger {
  cursor: zoom-in !important;
}

/* --- MAIN CONTENT --- */
.page-content {
  max-width: 1024px;
  margin: 0 auto;
  padding-top: 4rem;
}

/* --- HERO SECTION --- */
.hero {
  max-width: 1024px;
  margin-bottom: 4rem;
  padding: 0;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2rem;
  align-items: center;
}

.hero-tag {
  color: var(--accent-clay);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  display: block;
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.625rem;
  line-height: 1.15;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.hero-intro {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.hero-media {
  height: 100%;
}

.hero-portrait {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.06);
}

.hero-photo {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.06);
}

.hero-quote {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-style: italic;
  color: var(--accent-clay);
  line-height: 1.3;
  margin: 0 10px 40px 10px;
}

.sub-hero {
  max-width: 1024px;
  margin-bottom: 4rem;
}

.sub-hero-grid {
  max-width: 1024px;
  margin-bottom: 4rem;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr; /* 25% | 50% | 25% ratio */
  gap: 2rem;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  align-items: center;
}

.sub-hero-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 10px;
}

.sub-hero-details {
  max-width: 1024px;
  margin-bottom: 4rem;
  padding: 0;
}

/* SECTION LAYOUT */
.section {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto 4rem;
  padding: 0;
}

/* Section heading stays above the grid */
.section-heading {
  margin-bottom: 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  line-height: 1.2;
  color: var(--accent-clay);
  margin-bottom: 1rem;
}

.section-description {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* --- DUO CARDS GRID (2 COLUMN) --- */
.duo-grid {
  max-width: 1024px;
  margin-bottom: 4rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  align-items: stretch;
}

/* --- TIERCE CARDS GRID (3 COLUMNS) --- */
.tierce-grid {
  max-width: 1024px;
  margin-bottom: 4rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

/* --- QUART CARD GRID (4 COLUMNS) --- */
.quart-grid {
  max-width: 1024px;
  margin-bottom: 4rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  align-items: stretch;
}

/* --- WIDE CARD STYLES --- */
.wide-card {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.wide-card .card-image-wrap {
  height: 100%;
  min-height: auto;
  position: relative;
}

.wide-card .card-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

/* --- GRID CARD STYLES --- */
.grid-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.04);
}

.grid-card-img-wrap {
  width: 100%;
  height: 140px;
  background: var(--card-bg);
  overflow: hidden;
  padding: 0;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: center;
  align-items: center;
}

.grid-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.grid-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  border-bottom: 1px solid var(--border-light);
}

.grid-card-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-sage);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.grid-card-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.grid-card-title a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

.grid-card-title a:hover {
  color: var(--accent-clay);
}

.grid-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.grid-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  border-top: 1px solid var(--border-light);
  padding-top: 0.8rem;
  color: var(--text-muted);
}

/* --- HALF CARD STYLES (2 COLUMNS) --- */
.half-card {
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--border-light);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text-dark);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 0;
  min-width: 0;
  height: 100%;
}

.half-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.07);
}

.half-card .card-image-wrap {
  width: 100%;
  height: 320px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  padding-bottom: 1.5rem;
}

.half-card .card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  transition: transform 0.5s ease;
}

.half-card:hover .card-image {
  transform: scale(1);
}

.card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  flex: 1;
}

.card-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-clay);
  font-weight: 600;
  margin-bottom: 0.8rem;
  display: block;
}

.card-title {
  margin-bottom: 1rem;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.card-tag {
  display: inline-block;
  margin-bottom: 0.5rem;
  color: var(--accent-sage);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card-description {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.card-details {
  width: 100%;
  list-style: none;
  margin-bottom: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.card-details li {
  margin: 0.35rem 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.card-details strong {
  color: var(--text-dark);
}

.card-quote {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 1rem;
}

.card-arrow {
  font-weight: 600;
  color: var(--accent-clay);
}

.back-link {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--accent-sage);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

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

/* --- COMPARISON CARDS GRID (2 COLUMN) --- */
.comparison-grid {
  clear: both;
  margin-top: 2rem !important;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.comparison-card {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--card-bg, #FFFFFF);
  border: 1px solid var(--border-light, #E3DDD5);
}

.comparison-header {
  position: relative; /* Ensure it is NOT position: absolute */
  top: auto;
  left: auto;
  width: 100%;
  margin: 0;
  padding: 0.75rem 1rem;
  background-color: var(--accent-clay, #a64b2a);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  text-align: center;
}

.comparison-img-wrap {
  width: 100%;
  height: 320px;
  overflow: hidden;
  background: var(--bg-warm);
  display: block;
}

.comparison-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.comparison-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

.comparison-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  border-bottom: 1px solid var(--bg-warm, #F8F5F0);
  padding-bottom: 0.8rem;
}

.comparison-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.comparison-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-clay, #A34828);
  font-weight: 600;
}

.comparison-value {
  font-size: 0.95rem;
  color: var(--text-muted, #5C524B);
  line-height: 1.5;
}

/* --- FOOTER STYLES --- */
footer {
  border-top: 1px solid var(--border-light);
  padding: 1rem;
  text-align: center;
  background: var(--bg-warm);
}

footer p {
  font-family: Cormorant Garamond;
  font-size: 18px;
  color: var(--text-dark);
  letter-spacing: 0.5px;
}

footer img {
  margin-bottom: 10px;
}

footer .brand-logo-img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Keep registration links aligned at card bottoms */
.half-card .card-footer {
  width: 100%;
  margin-top: auto;
  padding-top: 0.5rem;
}

.register-link {
  display: inline-block;
  padding: 0.75rem 1.2rem;
  border-radius: 6px;
  background: var(--accent-clay);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.register-link:hover {
  background: #84391f;
}

/* Responsive Google Form Iframe Container */
.responsive-iframe-container {
  width: 100%;
  max-width: 720px;
  overflow: hidden;
  margin-top: 1rem;
}

.responsive-iframe-container iframe {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 1000px;
  border: none;
  display: block;
}

/* Calendar embed */
.calendar-container {
  width: 100%;
  min-width: 0;
  margin-bottom: 4rem;
  padding: 12px;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
}

.calendar-container iframe {
  display: block;
  width: 100%;
  height: 500px;
  border: 0;
}

/* METADATA BAR */
.meta-box {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 1.2rem 1.5rem;
  margin: 1.8rem 0 3rem;
  align-items: start;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.meta-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-sage);
  display: block;
}

.meta-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* --- FEATURED SPOTLIGHT BANNER --- */
.featured-section {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  margin-bottom: 2rem;
  padding: 2rem;
  align-items: center;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.featured-img-wrap {
  width: 100%;
  height: 300px;
  background: var(--bg-warm);
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
}

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

.featured-text-content {
}

.featured-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  line-height: 1.25;
  margin-bottom: 0.8rem;
}

.featured-tag {
  color: var(--accent-clay);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  display: block;
  margin-bottom: 1rem;
}

.featured-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.featured-meta-inline {
  font-size: 0.85rem;
  color: var(--accent-sage);
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.featured-link-btn {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  background: var(--accent-clay);
  color: #ffffff;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.featured-link-btn:hover {
  background: var(--text-dark);
  color: #ffffff;
}

.featured-filter-bar {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-pill {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-pill.active,
.filter-pill:hover {
  background: var(--accent-clay);
  color: #ffffff;
  border-color: var(--accent-clay);
}

/* Recipe Matrix Table Styles */
.recipe-matrix {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.recipe-matrix table {
  width: 100%; 
  border-collapse: collapse; 
  min-width: 1000px; 
  background: var(--card-bg); 
  border: 1px solid var(--border-light);
}

.recipe-matrix tr {
  border-bottom: 2px solid var(--accent-clay);
}

.recipe-matrix th {
  padding-bottom: 0.5rem; 
  text-align: center; 
  background-color: #ffffff;
}

.recipe-matrix div {
  width: 100%; 
  height: 100%; 
  min-height: 160px;
  overflow: hidden; 
  margin: 0;
}

.recipe-matrix-image {
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  display: block;
}

.recipe-matrix-body tbody {
  font-size: 1rem; 
  color: var(--text-dark);
}

.recipe-matrix-body tr {
  border-bottom: 1px solid var(--border-light);
}

.recipe-matrix-body td {
  padding: 1rem; 
  background-color: var(--bg-warm); 
  font-weight: 400;
  text-align: center;
}

.recipe-matrix-body span {
  font-size: 1rem; 
  color: var(--text-muted);
}

/* Ingredients Checklist */
.ingredient-group {
  margin-bottom: 1.8rem;
}

.group-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-clay);
  margin-bottom: 0.8rem;
}

.ingredient-list {
  list-style: none;
  padding: 0;
}

.ingredient-list li {
  margin-bottom: 0.6rem;
  font-size: 0.92rem;
  color: var(--text-dark);
}

.ingredient-list input[type="checkbox"] {
  accent-color: var(--accent-clay);
  margin-right: 0.5rem;
}

/* Instruction Steps */
.instruction-steps {
  padding-left: 1.2rem;
}

.instruction-steps li {
  margin-bottom: 1rem;
}

.instruction-steps h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.instruction-steps p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* R&D Notes Box */
.rd-notes-box {
  background: var(--bg-warm);
  border-left: 3px solid var(--accent-sage);
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 4rem;
}

.rd-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--accent-clay);
  margin-bottom: 0.5rem;
}

.rd-notes-box p {
  font-size: 0.9rem;
  color: var(--text-dark);
  line-height: 1.6;
}

.recipe-actions {
  margin-top: 2rem;
}

.action-btn {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  padding: 0.7rem 1.4rem;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.action-btn:hover {
  background: var(--accent-clay);
  color: #ffffff;
}

/* THREE COLUMN RECIPE PHOTO CARD STACK */
.photo-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.photo-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.04);
}

.photo-card-img-wrap {
  width: 100%;
  height: 200px;
  background: var(--bg-warm);
  overflow: hidden;
  padding: 0;
  border-bottom: 1px solid var(--border-light);
}

.photo-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.photo-card-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-clay);
  font-weight: 600;
  margin-bottom: 0.4rem;
  display: block;
}

.photo-card-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
  color: var(--text-dark);
}

.photo-card-specs {
  list-style: none;
  padding: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.photo-card-specs li {
  margin-bottom: 0.4rem;
}

.photo-card-specs strong {
  color: var(--text-dark);
}

/* WIDE ONE COLUMN RECIPE CARD STACK */
.wide-card-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.wide-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 280px 1fr;
  align-items: stretch;
}

.wide-card-img-wrap {
  width: 100%;
  height: 100%;
  min-height: 220px;
  background: var(--bg-warm);
  overflow: hidden;
  padding: 0;
  border-right: 1px solid var(--border-light);
}

.wide-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wide-card-content {
  padding: 1.8rem 2rem;
}

.wide-card-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-clay);
  font-weight: 600;
  margin-bottom: 0.4rem;
  display: block;
}

.wide-card-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-dark);
  margin: 0.3rem 0 1rem;
}

.wide-steps {
  padding-left: 1.2rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.wide-steps li {
  margin-bottom: 0.6rem;
}

.wide-steps strong {
  color: var(--text-dark);
}

/* --- NUTRITION COMPARISON TABLE --- */
.nutrition-table-box {
  margin: 2rem;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--border-light);
}

.nutrition-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent-sage);
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}

.nutrition-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  color: var(--text-dark);
}

.nutrition-table td {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--bg-warm);
}

.nutrition-table td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--accent-clay);
}

.nutrition-table-container {
  width: 100%;
  overflow-x: auto;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 4rem;
}

.macro-comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  color: var(--text-dark);
  min-width: 600px;
}

.macro-comparison-table th {
  background: var(--bg-warm);
  color: var(--accent-clay);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  text-align: left;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border-light);
}

.macro-comparison-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border-light);
}

.macro-comparison-table tr:last-child td {
  border-bottom: none;
}

.macro-comparison-table tbody tr:hover {
  background: var(--bg-warm);
}

/* ==========================================================================
   JADY DONKY KITCHEN - PHOTO SLIDER / CAROUSEL
   ========================================================================== */

/* --- 4-Item View Carousel --- */
.recipe-slider-container {
  position: relative;
  max-width: 100%;
  margin-bottom: 4rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-light, #E3DDD5);
  background: var(--card-bg, #FFFFFF);
}

.recipe-slider-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Hide scrollbar for Firefox */
  gap: 1.5rem; /* Gap between photos */
  padding: 1.5rem;
  box-sizing: border-box;
  /* Fixes left padding cut-off bug in flex scroll containers */
  scroll-padding-left: 1.5rem; 
}

.recipe-slider-track::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome/Safari */
}

.recipe-slide {
  /* Exactly 4 items visible at once: 25% width minus a portion of the 3 gaps */
  flex: 0 0 calc(25% - 1.125rem);
  width: calc(25% - 1.125rem);
  scroll-snap-align: start;
  background: var(--bg-warm, #F8F5F0);
  border: 1px solid var(--border-light, #E3DDD5);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.recipe-slide img {
  width: 100%;
  height: 220px; /* Adjusted slightly smaller for 4-column harmony */
  object-fit: cover; /* Forces photos to fill the box cleanly without distortion */
  display: block;
}

.recipe-slide-caption {
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-dark, #222220);
  line-height: 1.5;
  background: var(--card-bg, #FFFFFF);
  border-top: 1px solid var(--border-light, #E3DDD5);
  flex-grow: 1;
}

.recipe-slide-caption-title {
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-dark, #222220);
  line-height: 1.5;
  background: var(--card-bg, #FFFFFF);
  border-top: 1px solid var(--border-light, #E3DDD5);
}

.recipe-slide-caption-text {
  padding: 1rem;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted, #666660);
  line-height: 1.5;
  background: var(--card-bg, #FFFFFF);
  border-top: 1px solid var(--border-light, #E3DDD5);
  flex-grow: 1;
}

/* Slider Navigation Buttons */
.slider-btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  background: rgba(34, 34, 32, 0.75);
  color: #ffffff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 10;
}

.slider-btn:hover {
  background: var(--accent-clay, #A34828);
}

.slider-btn.prev {
  left: 0.5rem;
}

.slider-btn.next {
  right: 0.5rem;
}

/* Responsive fallback for smaller screens */
@media (max-width: 640px) {
  .recipe-slide {
    flex: 0 0 calc(50% - 1rem);
    width: calc(50% - 1rem);
  }
}

@media (max-width: 360px) {
  .recipe-slide {
    flex: 0 0 100%;
    width: 100%;
  }
}

/* ==========================================================================
   JADY DONKY KITCHEN - PROFILE PAGE STYLES
   ========================================================================== */

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

.bio-table tr {
  border-bottom: 1px solid var(--border-light);
}

.bio-table tr:last-child {
  border-bottom: none;
}

.bio-label {
  text-align: right;
  padding: 0.6rem 1rem 0.6rem 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-sage);
  font-weight: 600;
  width: 40%;
}

.bio-val {
  padding: 0.6rem 0;
  font-size: 0.95rem;
  color: var(--text-dark);
}

/* Timeline Section (70% / 30%) */
.timeline-section {
  max-width: 900px;
  margin: 0 auto 4rem;
  padding: 0;
}

.timeline-wrapper {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid var(--border-light);
}

.timeline-box {
  position: relative;
  margin-bottom: 2.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.8rem;
  display: flex;
  gap: 1.8rem;
  align-items: center;
}

.timeline-box::before {
  content: '';
  position: absolute;
  left: -2.48rem;
  top: 2rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--accent-clay);
  border: 3px solid var(--bg-warm);
}

/* Left Text Side (70% width) */
.timeline-text-side {
  flex: 1 1 70%;
}

.timeline-badge {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-sage);
  font-weight: 600;
  display: block;
  margin-bottom: 0.4rem;
}

.timeline-text-side h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--text-dark);
}

.timeline-text-side p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

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

.timeline-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0 0;
}

.timeline-list li {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.2rem;
}

.timeline-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-clay);
}

/* Right Photo Container (30% width, Fixed Height) */
.timeline-photo-side {
  flex: 0 0 30%;
  background: transparent;
  border: none;
  border-radius: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  overflow: hidden;
}

.timeline-photo {
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  opacity: 0.92;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.timeline-box:hover .timeline-photo {
  opacity: 1;
  transform: scale(1.02);
}

/* Manifesto Full-Width Single Column */
.manifesto-section {
  max-width: 1100px;
  margin: 0 auto 4rem;
  padding: 0 1rem;
}

.manifesto-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 3.5rem 3rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.manifesto-header {
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1.8rem;
}

.manifesto-subtitle {
  font-size: 1.05rem;
  color: var(--accent-sage);
  line-height: 1.6;
  font-family: var(--font-body);
}

.manifesto-subtitle strong {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.manifesto-text {
  font-size: 1.05rem;
  color: var(--text-dark);
  line-height: 1.85;
  margin-bottom: 1.5rem;
  opacity: 0.92;
}

.manifesto-quote {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--accent-clay);
  line-height: 1.3;
  margin-bottom: 1rem;
}

.highlight-note {
  font-weight: 500;
  background: var(--bg-warm);
  padding: 1.4rem 1.8rem;
  border-radius: 8px;
  border-left: 3px solid var(--accent-sage);
  margin: 2rem 0;
}

/* Quiet Archival Photo */
.manifesto-photo-container {
  margin: 2.5rem auto 1.5rem;
  text-align: center;
}

.manifesto-inline-photo {
  max-width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}

.manifesto-caption {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.6rem;
  display: block;
}

.manifesto-closing {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--accent-clay);
  margin-top: 2rem;
  text-align: left;
}

/* ==========================================================================
   JADY DONKY KITCHEN - BRAND BANNER
   ========================================================================== */

/* ---  Extracted from template inline styles --- */
.brand-banner {
  background-color: var(--bg-warm, #F8F5F0);
  border: 1px solid var(--accent-clay, #A34828);
  border-radius: 8px;
  padding: 2.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 5rem;
  margin-bottom: 3rem;
}

.brand-banner-content {
  flex: 1;
  min-width: 250px;
}

.brand-banner-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.brand-emblem {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.brand-tag {
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-clay, #A34828);
  font-weight: 600;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--text-dark, #2b2b2b);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.brand-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted, #555);
  margin-bottom: 1.2rem;
}

.brand-btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: var(--accent-clay, #A34828);
  color: #fff;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.brand-btn:hover {
  opacity: 0.9;
}

.brand-banner-media {
  flex: 0 0 260px;
  max-width: 100%;
  text-align: center;
  margin: 0 auto;
}

.brand-img {
  width: 100%;
  max-width: 240px;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--border-light, #e0d8cc);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s ease;
}

/* --- REUSABLE UTILITY CLASSES --- */
.section-margin-top {
  margin-top: 4rem;
}

.section-margin-top-large {
  margin-top: 5rem;
}

.notes-box-margin {
  margin: 4rem 0 2rem 0;
}

/* --- JOURNAL STACK STYLES --- */
.journal-stack {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin: 3rem 0 3rem 0;
  padding: 0;
}

/* Journal Card 2-Column Max Height 240px */
.journal-card {
  display: flex;
  flex-direction: row;
  height: 100%;
  max-height: 240px;
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border-light, #E3DDD5);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.journal-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

/* 65% Left Column for Text */
.journal-content {
  flex: 0 0 65%;
  width: 65%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  overflow-y: auto;
}

/* 35% Right Column for Photo */
.journal-media {
  flex: 0 0 35%;
  width: 35%;
  height: 100%;
}

.journal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   JADY DONKY KITCHEN - MOBILE RESPONSIVENESS STYLES
   ========================================================================== */

@media (max-width: 868px) {
  .page-content {
    padding: 2rem 1rem 2rem 1rem !important;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 2rem;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .hero-portrait {
    height: 360px;
  }

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

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-warm);
    border-bottom: 1px solid var(--border-light);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  }

  nav.active {
    max-height: 300px;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
  }

  nav li a {
    display: block;
    padding: 0.8rem 0;
    text-align: center;
  }

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

  .masonry-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .quart-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 columns on tablet */
  }

  .wide-card {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

  .wide-card .card-image-wrap {
    height: 240px;
    min-height: auto;
  }

  .sub-hero {
    margin-bottom: 2rem;
  }

  .sub-hero-details {
    padding: 0;
    margin-bottom: 2rem;
  }

  .sub-hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.25rem;
  }

  .bio-label {
    width: 35%;
    font-size: 0.75rem;
    padding: 0.5rem 0.5rem 0.5rem 0;
  }

  .bio-val {
    font-size: 0.85rem;
    padding: 0.5rem 0;
  }

  .timeline-box {
    flex-direction: column;
    padding: 1.5rem;
  }

  .timeline-photo-side {
    width: 100%;
    max-width: 220px;
    height: 200px; /* Adjusted height for mobile stacked view */
    margin: 1rem auto 0;
  }

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

  .section-grid-two {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-clay);
  }

  .hero-photo {
    max-height: 360px;
  }

  .half-card {
    padding: 0;
  }

  .half-card .card-content {
    padding: 1.25rem;
  }

  .half-card .card-title {
    font-size: 1.5rem;
  }

  .half-card .card-image-wrap {
    height: 280px;
  }

  .calendar-container {
    padding: 4px;
  }

  .calendar-container iframe {
    height: 520px;
  }

  .journal-card {
    flex-direction: column-reverse;
    max-height: none;
    height: auto;
  }

  .journal-content, .journal-media {
    flex: 0 0 100%;
    width: 100%;
  }

  .journal-media {
    height: 220px;
  }

  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .recipe-slide {
    flex: 0 0 100%;
    width: 100%;
  }

  .recipe-slider-track {
    padding: 1rem;
    gap: 1rem;
  }

  .recipe-slide img {
    height: 220px;
  }

  .featured-grid,
  .recipe-hero-section,
  .recipe-content-grid,
  .recipe-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .featured-img-wrap,
  .recipe-hero-media {
    width: 100% !important;
    height: 240px !important;
  }

  .featured-recipe-banner {
    padding: 1.25rem !important;
  }

  .featured-title {
    font-size: 1.5rem !important;
  }

  .recipe-hero-title {
    font-size: 2rem !important;
  }

  .recipe-meta-box {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem;
    padding: 1rem !important;
    margin: 1.2rem 0 2rem;
  }

  .recipe-filter-bar {
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }

  .sub-mat-grid {
    grid-template-columns: 1fr;
  }

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

  .wide-card-img-wrap {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    height: 220px;
    min-height: 220px;
  }

  .wide-card-content {
    padding: 1.5rem;
  }
}

@media (max-width: 640px) {
  .quart-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
  }
  .comparison-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  .quart-grid {
    grid-template-columns: 1fr; /* 1 column on mobile */
  }
}

/* --- PRINT STYLES --- */
@media print {
  header, footer, .back-link, .recipe-filter-bar, .recipe-actions {
    display: none !important;
  }
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .recipe-content-grid {
    grid-template-columns: 1fr;
  }
}
