/* ============================================================
   Karen L. Sims — Additional CSS
   Author Home (page-id-1519) + Pickleball Fun
   De-duplicated — all later/winning values preserved
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap');

/* ============================================================
   GLOBAL
   ============================================================ */
.site-header .site-branding a,
.site-footer .site-branding a {
  font-family: 'Pacifico', cursive !important;
  font-style: normal;
}

html { scroll-behavior: smooth; }
.kls-author-home,
.kls-pickleball-fun { overflow-x: hidden; }

/* Reduce padding below the site title container */
header .wp-block-group { padding-bottom: 10px !important; }
/* Reduce gap at the top of the main content area */
main .wp-block-group   { padding-top: 20px !important; }

/* Global whitespace (Pickleball & Family Trees) */
.entry-content,
.site-content,
.kls-pickleball-fun,
.tree-page-wrapper {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* ============================================================
   AUTHOR HOME — Design tokens + typography
   ============================================================ */
.kls-author-home {
  --bg: #211810;
  --ink: #2a1e14;
  --paper: #ffffff;
  --muted: #6b5a4a;
  --brand: #c7a25a;
  --brand2: #7a4a2e;
  --ring: rgba(199,162,90,.35);
  --radius: 18px;
  --shadow: 0 18px 40px rgba(33,24,16,.18);

  color: var(--ink);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

.kls-author-home h2,
.kls-author-home h3 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.01em;
}
.kls-author-home p,
.kls-author-home li { line-height: 1.65; }

.kls-author-home,
.kls-author-home * { box-sizing: border-box; }

.kls-author-home .kls-container {
  max-width: 760px !important;
  margin: 0 auto !important;
  padding-left: 22px !important;
  padding-right: 22px !important;
}

/* Sections */
.kls-author-home .kls-section {
  padding: 56px 0;
  background: #f6f2ec;
}
.kls-author-home .kls-section:nth-of-type(even) { background: #ffffff; }

.kls-author-home .kls-section__head { margin-bottom: 15px !important; }
.kls-author-home .kls-section__head h2 {
  margin: 0 0 2px;
  font-size: clamp(26px, 3vw, 36px);
}
.kls-author-home .kls-section__head p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

/* Cards */
.kls-author-home .kls-card {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(42,30,20,.12);
}

/* Buttons */
.kls-author-home .kls-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
.kls-author-home .kls-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 650;
  font-size: 15px;
  white-space: nowrap;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.kls-author-home .kls-btn:hover { transform: translateY(-1px); }
.kls-author-home .kls-btn:focus { outline: none; box-shadow: 0 0 0 4px var(--ring); }

.kls-author-home .kls-btn--primary {
  background: linear-gradient(135deg, var(--brand), #e0c37b);
  color: #1a1208;
  box-shadow: 0 10px 20px rgba(199,162,90,.25);
}
.kls-author-home .kls-btn--ghost {
  background: rgba(42,30,20,.06);
  color: var(--ink);
  border: 1px solid rgba(42,30,20,.12);
}

/* ============================================================
   AUTHOR HOME — HERO
   ============================================================ */
.kls-author-home .kls-hero {
  position: relative;
  padding: 18px 0 28px;
  color: #fdfbf8;
  overflow: visible;
  background: none;
}

.kls-author-home .kls-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background:
    radial-gradient(900px 400px at 25% 30%, rgba(199,162,90,.35), transparent 60%),
    linear-gradient(180deg, rgba(33,24,16,.92), rgba(33,24,16,.78)),
    url("https://images.unsplash.com/photo-1516979187457-637abb4f9353?auto=format&fit=crop&w=2400&q=80");
  background-size: cover;
  background-position: center;
  z-index: 0;
}

/* Soft bridge from header into hero */
.kls-author-home .kls-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: linear-gradient(
    to bottom,
    rgba(246,242,236,1) 0%,
    rgba(246,242,236,.45) 45%,
    rgba(246,242,236,0) 78%
  );
  pointer-events: none;
  z-index: 1;
}

.kls-author-home .kls-hero > * { position: relative; z-index: 2; }

.kls-author-home .kls-hero__grid,
.kls-author-home .kls-about__grid {
  display: grid;
  grid-template-columns: 1fr !important;
  gap: 22px !important;
  align-items: center;
}

.kls-author-home .kls-hero__copy { text-align: center; }

.kls-author-home .kls-eyebrow {
  display: inline-block;
  margin: 0 auto 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.kls-author-home .kls-hero__title {
  margin: 0 0 12px;
  font-size: clamp(34px, 4vw, 52px);
  overflow-wrap: anywhere;
}
.kls-author-home .kls-hero__subtitle {
  margin: 0 auto 10px !important;
  font-size: 17px;
  color: rgba(253,251,248,.9);
  max-width: 56ch;
  overflow-wrap: anywhere;
}
.kls-author-home .kls-hero__note {
  margin-top: 16px;
  font-size: 14px;
  color: rgba(253,251,248,.7);
}

.kls-author-home .kls-hero__image {
  margin: 0 0 10px !important;
  display: flex;
  justify-content: center;
}

.kls-author-home img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  height: auto;
}

/* Author photo — final values (160px circle) */
.kls-author-home .kls-hero__image img {
  max-width: 160px !important;
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover;
  border-radius: 50% !important;
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 10px 30px rgba(0,0,0,.3) !important;
}

.kls-author-home .kls-books-stack {
  display: block;
  margin: 0 auto 18px;
  max-width: 110px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Hero hook */
.kls-hero__hook {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: clamp(18px, 2.5vw, 22px);
  color: #c7a25a;
  margin-bottom: 10px;
  font-weight: 500;
  text-align: left;
}

/* ============================================================
   AUTHOR HOME — BOOKS
   ============================================================ */
.kls-author-home .kls-books {
  background: linear-gradient(180deg, #ffffff, #f6f2ec);
  padding-bottom: 20px !important;
}
.kls-author-home .kls-books.kls-section  { padding-top: 25px !important; }
.kls-author-home .kls-books + .kls-section { padding-top: 20px !important; }

.kls-author-home .kls-book-grid {
  display: grid;
  grid-template-columns: 1fr !important;
  gap: 22px !important;
}
.kls-author-home .kls-book { overflow: hidden; padding: 0; }
.kls-author-home .kls-book__cover {
  max-width: 240px !important;
  width: 100% !important;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}
.kls-author-home .kls-book__body  { padding: 18px; }
.kls-author-home .kls-book__title { margin: 0 0 6px; font-size: 18px; }
.kls-author-home .kls-book__meta  { margin-bottom: 10px; color: var(--muted); font-size: 13px; }
.kls-author-home .kls-book__desc  { font-size: 15px; margin-bottom: 14px; }

.kls-author-home .kls-center { text-align: center; margin-top: 10px !important; }
.kls-author-home .kls-book .kls-actions { gap: 12px; }

/* Details "Read More" */
.kls-author-home .kls-more { width: auto; }
.kls-author-home .kls-more > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.kls-author-home .kls-more > summary::-webkit-details-marker { display: none; }
.kls-author-home .kls-more__content {
  margin-top: 12px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(42,30,20,.06);
  border: 1px solid rgba(42,30,20,.10);
  text-align: left;
}
.kls-author-home .kls-more[open] .kls-more__content {
  animation: klsFadeIn .16s ease-out;
}
@keyframes klsFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .kls-author-home .kls-book .kls-actions {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .kls-author-home .kls-book .kls-actions > * {
    width: 100% !important;
    max-width: 100% !important;
  }
  .kls-author-home .kls-more { width: 100% !important; }
  .kls-author-home .kls-more > summary {
    display: inline-flex;
    width: 100% !important;
    justify-content: center;
  }
}

/* ============================================================
   AUTHOR HOME — ABOUT PHOTO
   ============================================================ */
.kls-author-home .kls-about__photo { padding: 10px !important; }
.kls-author-home .kls-about__photo img {
  max-width: 160px !important;
  width: 100% !important;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: block !important;
}

.kls-about__photo-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 25px;
}
.kls-about__photo-wrapper img {
  max-width: 180px;
  height: 180px;
  border-radius: 50% !important;
  object-fit: cover;
  border: 3px solid #eaddcf;
  box-shadow: 0 10px 20px rgba(0,0,0,.1);
}

/* ============================================================
   PAGE-ID-1519: REMOVE GAP UNDER HEADER (consolidated — all 3 passes merged)
   ============================================================ */

/* Hide theme title/header variants */
.page-id-1519 .entry-header,
.page-id-1519 header.entry-header,
.page-id-1519 .page-header,
.page-id-1519 .post-header,
.page-id-1519 .entry-title,
.page-id-1519 h1.entry-title,
.page-id-1519 .page-title,
.page-id-1519 h1.page-title,
.page-id-1519 .wp-block-post-title {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Zero out all content-area wrappers */
.page-id-1519 #page,
.page-id-1519 #content,
.page-id-1519 .site-content,
.page-id-1519 .content-area,
.page-id-1519 #primary,
.page-id-1519 .site-main,
.page-id-1519 main,
.page-id-1519 article,
.page-id-1519 .page,
.page-id-1519 .post,
.page-id-1519 .entry,
.page-id-1519 .entry-content,
.page-id-1519 .entry-content > *:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Crafted inner wrappers */
.page-id-1519 .wrap,
.page-id-1519 .container,
.page-id-1519 .content-inner,
.page-id-1519 .site-content .wrap,
.page-id-1519 .site-content .container {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.page-id-1519 .site-header {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Pull hero flush, add subtle header→hero fade */
.page-id-1519 .kls-hero {
  margin-top: 0 !important;
  padding-top: 12px !important;
  position: relative;
}
.page-id-1519 .kls-hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  height: 48px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,255,255,.85), rgba(255,255,255,0));
  z-index: 1;
}

/* ============================================================
   PAGE-ID-1519: MISC SPACING TWEAKS
   ============================================================ */
.page-id-1519 .kls-hero__image {
  margin-top: 0 !important;
  margin-bottom: 10px !important;
}
.page-id-1519 .kls-hero__subtitle { margin-bottom: 10px !important; }
.page-id-1519 .kls-books           { padding-bottom: 20px !important; }
.page-id-1519 .kls-books.kls-section { padding-top: 25px !important; }
.page-id-1519 .kls-books + .kls-section { padding-top: 20px !important; }
.page-id-1519 .kls-center          { margin-top: 10px !important; }
.page-id-1519 .kls-section__head   { margin-bottom: 15px !important; }

.page-id-1519 .kls-about__photo img {
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 160px !important;
  border-radius: 50% !important;
  display: block !important;
}
.page-id-1519 .kls-about__photo {
  padding-bottom: 10px !important;
  padding-top: 10px !important;
}

/* ============================================================
   TESTIMONIAL
   ============================================================ */
.kls-testimonial {
  max-width: 800px;
  margin: 20px auto 30px;
  padding: 25px;
  border-left: 4px solid #c7a25a;
  background: rgba(199,162,90,.05);
  text-align: left;
}
.kls-testimonial p {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #2a1e14;
  margin-bottom: 12px !important;
}
.kls-testimonial cite {
  display: block;
  font-size: 0.9rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #7c6a5a;
  font-style: normal;
}

/* ============================================================
   MISC AUTHOR HOME COMPONENTS
   ============================================================ */
.kls-pop-btn,
.kls-btn--primary[href*="amazon"],
.kls-btn--primary[href*="preview"] {
  background: linear-gradient(135deg, #a64d32, #8c3b24) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 15px rgba(166,77,50,.25) !important;
}

.kls-debug-img {
  display: block;
  max-width: 450px;
  width: 90%;
  margin: 0 auto 30px;
  border-radius: 12px;
}

.kls-debug-graphic {
  width: 100%;
  max-width: 500px;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(33,24,16,.2);
  transition: transform 0.4s ease;
}
.kls-debug-graphic:hover { transform: scale(1.03); }

.kls-expert-grid {
  gap: 30px !important;
  align-items: center;
}
.kls-expert-grid h2 {
  font-size: clamp(1.5rem, 5vw, 2.2rem) !important;
  line-height: 1.2;
  margin-top: 0 !important;
  margin-bottom: 15px;
  padding-top: 0 !important;
  color: #7c6a5a;
}

@media (max-width: 768px) {
  .kls-expert-grid         { gap: 15px !important; }
  .kls-expert-grid div     { text-align: center; padding-top: 10px; }
  .kls-btn-container       { justify-content: center; }
  .kls-debug-graphic       { margin-bottom: 10px !important; }
}

.kls-resource-box {
  background: #ffffff;
  border: 2px dashed #eaddcf;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  margin: 20px 0;
}
.kls-resource-box h3 { color: #7c6a5a; margin-bottom: 10px; }

.kls-resource-cta {
  background-color: #fdfaf7;
  border: 2px dashed #c7a25a;
  padding: 35px;
  border-radius: 15px;
  text-align: center;
  margin: 40px auto;
  max-width: 700px;
  box-shadow: 0 10px 30px rgba(0,0,0,.05);
}
.kls-resource-cta h3 {
  color: #7c6a5a;
  font-family: Georgia, serif;
  font-size: 1.8rem;
  margin-bottom: 15px;
}
.kls-resource-cta p {
  color: #555;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 25px;
}
.kls-resource-cta .kls-btn {
  display: inline-block;
  padding: 15px 30px;
  font-weight: bold;
  letter-spacing: 1px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: nowrap;
  text-align: center;
}

@media (max-width: 480px) {
  .kls-resource-cta       { padding: 20px; }
  .kls-resource-cta h3    { font-size: 1.4rem; }
}

/* DevOps/pillar grid */
.kls-devops-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.kls-pillar {
  flex: 1;
  min-width: 300px;
  background: #fdfaf7;
  border-radius: 12px;
  padding: 15px;
}
.kls-pillar-header {
  font-family: Georgia, serif;
  font-weight: bold;
  color: #2a1e14;
  border-bottom: 2px solid #c7a25a;
  padding-bottom: 10px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.kls-step-card {
  background: white;
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,.05);
  border-left: 4px solid #eaddcf;
}
.kls-step-card.highlighted { border-left: 4px solid #c7a25a; }
.step-num { font-size: 0.75rem; color: #c7a25a; font-weight: bold; }

/* Feature box */
.kls-feature-box {
  background-color: #f4f7f9;
  border: 1px solid #d1d9e0;
  border-left: 5px solid #2c3e50;
  padding: 10px;
  margin: 10px 0;
  border-radius: 4px;
  text-align: left;
}
.kls-feature-title { margin-top: 0; color: #2c3e50; font-size: 1.25rem; font-weight: bold; }
.kls-feature-text  { font-size: 1.1rem; line-height: 1.6; color: #444; margin-bottom: 15px; }
.kls-feature-link  {
  display: inline-block;
  color: #0073aa;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}
.kls-feature-link:hover { color: #005177; text-decoration: underline; }

/* Waitlist card */
.kls-waitlist-card {
  background: #ffffff;
  border: 1px solid #e1e8ed;
  border-radius: 8px;
  padding: 30px;
  margin: 40px auto;
  max-width: 600px;
  box-shadow: 0 4px 15px rgba(0,0,0,.05);
  text-align: center;
}
.kls-waitlist-card h4 { font-size: 1.5rem; margin: 10px 0; color: #2c3e50; }
.kls-waitlist-card p  { color: #555; font-size: 1.05rem; margin-bottom: 25px; line-height: 1.5; }

.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button {
  background-color: #2c3e50 !important;
  border-radius: 4px !important;
  font-family: inherit !important;
  transition: background 0.3s ease !important;
}
.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button:hover {
  background-color: #34495e !important;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.kls-back-to-top {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: #007bff;
  color: white;
  cursor: pointer;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,.2);
  transition: background-color 0.3s, transform 0.3s;
  font-size: 24px;
  line-height: 1;
}
.kls-back-to-top:hover { background-color: #0056b3; transform: translateY(-3px); }

@media (max-width: 768px) {
  .kls-back-to-top { bottom: 15px; right: 15px; width: 45px; height: 45px; }
}

/* ============================================================
   BACK LINK
   ============================================================ */
.kls-back-link,
.back-to-vault {
  display: inline-block !important;
  padding: 5px 0 !important;
  margin-top: 0 !important;
  margin-bottom: 5px !important;
  font-size: 0.95rem;
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}
.kls-back-link:hover { color: #007bff; text-decoration: underline; }

@media (max-width: 768px) {
  .kls-back-link { margin-left: 0 !important; margin-top: 0 !important; }
}

/* ============================================================
   RECIPE CONTRIBUTION FORM
   ============================================================ */
.recipe-contribution-container {
  background: #ffffff;
  padding: 40px;
  border: 1px solid #eee;
  max-width: 700px;
  margin: 40px auto;
  font-family: inherit;
}
.recipe-contribution-container h3 {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 300;
  text-align: center;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 0;
}
.submit-btn {
  background: #333;
  color: #fff;
  padding: 15px 30px;
  border: none;
  cursor: pointer;
  width: 100%;
  transition: opacity 0.3s;
}
.submit-btn:hover { opacity: 0.8; }
.form-row { display: flex; gap: 20px; }

/* ============================================================
   RECIPE VAULT
   ============================================================ */
.recipe-vault-container { max-width: 1200px; margin: 0 auto; padding: 20px; }

.family-nav {
  display: flex;
  gap: 2rem;
  border-bottom: 1px solid #eaeaea;
  padding-bottom: 15px;
  margin-bottom: 50px;
}
.family-nav a {
  text-decoration: none;
  color: #999;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: color 0.3s;
}
.family-nav a.active,
.family-nav a:hover { color: #000; font-weight: bold; }

.author-spotlight {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 80px;
}
.author-image img {
  width: 100%;
  filter: grayscale(100%);
  border: 1px solid #f0f0f0;
  padding: 10px;
}
.category-label { font-size: 10px; text-transform: uppercase; letter-spacing: 3px; color: #b5b5b5; }
.author-details h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin: 10px 0 20px;
  font-weight: 300;
  color: #111;
}
.bio-content p { font-size: 1.1rem; line-height: 1.8; color: #666; }

.recipe-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
  padding: 15px 0;
}
.search-box input  { border: none; outline: none; font-size: 1rem; width: 250px; }
.filter-btn        { background: none; border: none; cursor: pointer; text-transform: lowercase; font-style: italic; margin-left: 20px; color: #999; }
.filter-btn.active { color: #000; text-decoration: underline; }

@media (max-width: 768px) { .author-spotlight { grid-template-columns: 1fr; gap: 30px; } }

.recipe-grid { column-count: 3; column-gap: 30px; margin-top: 50px; }
.recipe-card {
  break-inside: avoid;
  margin-bottom: 30px;
  background: #fff;
  border: 1px solid #f0f0f0;
  padding: 15px;
  transition: transform 0.3s ease;
}
.recipe-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,.05); }

.recipe-image-wrapper { position: relative; overflow: hidden; }
.recipe-image-wrapper img { width: 100%; height: auto; display: block; filter: sepia(20%); }
.recipe-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.recipe-image-wrapper:hover .recipe-overlay { opacity: 1; }
.recipe-overlay span {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1px;
  font-weight: bold;
  border-bottom: 1px solid #000;
}

.recipe-meta h3 { font-size: 1.1rem; margin: 15px 0 5px; font-weight: 400; letter-spacing: 0.5px; }
.recipe-actions { display: flex; justify-content: flex-start; }
.print-icon { background: none; border: none; font-size: 10px; text-transform: uppercase; color: #999; cursor: pointer; padding: 0; }
.print-icon:hover { color: #000; }

@media (max-width: 992px) { .recipe-grid { column-count: 2; } }
@media (max-width: 600px)  { .recipe-grid { column-count: 1; } }

.recipe-upload-section { background: #fafafa; padding: 60px; margin-top: 100px; border: 1px solid #eee; }
.family-form { max-width: 800px; margin: 0 auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }

.family-form input,
.family-form select,
.family-form textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
  border-radius: 0;
}
.file-upload {
  grid-column: span 2;
  padding: 20px;
  border: 1px dashed #ccc;
  text-align: center;
}
.file-upload label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.family-form textarea { grid-column: span 2; height: 120px; margin-top: 20px; }

.submit-recipe-btn {
  margin-top: 30px;
  background: #000;
  color: #fff;
  border: none;
  padding: 20px 40px;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  width: 100%;
  transition: background 0.3s;
}
.submit-recipe-btn:hover { background: #333; }
.success-msg { text-align: center; background: #e7f4e7; color: #2e7d32; padding: 20px; margin-bottom: 20px; font-style: italic; }

/* ============================================================
   PICKLEBALL FUN — design tokens + typography
   (merged 3 definitions; --brand2 kept from later pass)
   ============================================================ */
.kls-pickleball-fun {
  --ink: #2a1e14;
  --paper: #ffffff;
  --muted: #6b5a4a;
  --brand: #c7a25a;
  --brand2: #7a4a2e;
  --ring: rgba(199,162,90,.35);
  --radius: 18px;
  --shadow: 0 18px 40px rgba(33,24,16,.14);

  color: var(--ink);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

.kls-pickleball-fun .kls-container {
  max-width: 900px;
  margin: 0 auto;
  padding-left: 22px;
  padding-right: 22px;
}

.kls-pickleball-fun h1,
.kls-pickleball-fun h2,
.kls-pickleball-fun h3 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.01em;
}
.kls-pickleball-fun p,
.kls-pickleball-fun li { line-height: 1.65; }

/* ============================================================
   PICKLEBALL — SECTIONS
   (final value: 40px padding from last pass)
   ============================================================ */
.kls-pb-section {
  padding: 40px 0 !important;
  margin: 0 !important;
  background: #ffffff;
}
.kls-pb-section--alt { background: #f6f2ec; }

.kls-pb-section__head { text-align: center; margin-bottom: 22px; }
.kls-pb-section__head h2 { margin: 0 0 6px; font-size: clamp(26px, 3vw, 36px); }
.kls-pb-section__head p  { margin: 0; color: var(--muted); }

/* ============================================================
   PICKLEBALL — HERO
   (merged 5 definitions; final: 40px/10px padding, 60px ball)
   ============================================================ */
.kls-pb-hero {
  position: relative !important;
  padding: 40px 0 10px 0 !important;
  color: #fdfbf8 !important;
  border-radius: 22px !important;
  overflow: hidden !important;
  background:
    radial-gradient(900px 360px at 25% 25%, rgba(199,162,90,.35), transparent 60%),
    linear-gradient(180deg, rgba(33,24,16,.92), rgba(33,24,16,.78));
  background-size: 60px auto, cover, cover !important;
  background-position: bottom 20px right 20px, center, center !important;
  background-repeat: no-repeat !important;
}
.kls-pb-hero h1,
.kls-pb-hero p,
.kls-pb-hero .kls-pb-subtitle { color: #fdfbf8 !important; }

@media (max-width: 600px) {
  .kls-pb-hero { background-size: 40px auto, cover, cover !important; }
}

.kls-pb-eyebrow {
  display: inline-block;
  margin: 0 auto 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.kls-pb-title    { margin: 0 0 10px; font-size: clamp(34px, 4vw, 54px); text-align: center; }
.kls-pb-subtitle { margin: 0 auto 18px; max-width: 70ch; text-align: center; color: rgba(253,251,248,.92); }
.kls-pb-note     { margin: 12px auto 0; text-align: center; color: rgba(253,251,248,.72); font-size: 14px; }

.kls-pb-title,
.tree-header h1 { margin-top: 0 !important; padding-top: 0 !important; }

/* ============================================================
   PICKLEBALL — GRID + CARDS
   (merged 4 definitions; auto-fit grid, height:auto, flex-col)
   ============================================================ */
.kls-pb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  align-items: start;
  margin-top: 18px;
}
@media (max-width: 780px) { .kls-pb-grid { grid-template-columns: 1fr; } }

.kls-pb-card {
  background: #f5f5f5;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(42,30,20,.10);
  padding: 25px !important;
  height: auto !important;
  display: flex;
  flex-direction: column;
}
.kls-pb-card h2,
.kls-pb-card h3 { margin: 0 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: 20px; }
.kls-pb-card p  { margin: 0 0 12px; line-height: 1.65; }
.kls-pb-card--wide { margin-top: 18px; }

.kls-pb-card__content { flex-grow: 1; display: flex; flex-direction: column; }
.kls-pb-card__actions { margin-top: auto; padding-top: 20px; }

/* Lists */
.kls-pb-list { margin: 12px 0 0; padding-left: 18px; }
.kls-pb-list li { margin: 8px 0; color: var(--muted); }

/* Tags + callouts */
.kls-pb-tag {
  display: inline-block;
  margin: 0 0 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(42,30,20,.06);
  border: 1px solid rgba(42,30,20,.10);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}
.kls-pb-callout {
  margin-top: 10px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(42,30,20,.06);
  border: 1px solid rgba(42,30,20,.10);
}

/* Links grid */
.kls-pb-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 640px) { .kls-pb-links { grid-template-columns: 1fr; } }

.kls-pb-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 650;
  color: var(--ink);
  background: rgba(42,30,20,.06);
  border: 1px solid rgba(42,30,20,.10);
  transition: transform .12s ease, background-color .12s ease;
  text-align: center;
}
.kls-pb-link:hover { transform: translateY(-1px); background: rgba(42,30,20,.085); }

/* ============================================================
   PICKLEBALL — BUTTONS
   (merged 3 definitions; final: gold #d4af37, black text)
   ============================================================ */
.kls-pb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}
.kls-pb-actions--bottom { margin-top: 26px; }

/* Uniform nav button row (merged 2 definitions) */
.kls-pb-actions--uniform {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 10px !important;
  margin-bottom: 10px !important;
}
.kls-pb-actions--uniform .kls-pb-btn {
  flex: 1 1 160px;
  max-width: 220px;
  text-align: center;
  font-size: 0.9rem !important;
  padding: 10px 15px !important;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .kls-pb-actions--uniform .kls-pb-btn { flex: 1 1 45%; font-size: 0.85rem !important; }
}

.kls-pb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 650;
  font-size: 15px;
  white-space: nowrap;
  transition: transform .12s ease, box-shadow .12s ease;
}
.kls-pb-btn:hover { transform: translateY(-1px); }
.kls-pb-btn:focus { outline: none; box-shadow: 0 0 0 4px var(--ring); }

.kls-pb-btn--primary {
  background-color: #d4af37 !important;
  color: #000000 !important;
  padding: 12px 35px !important;
  border-radius: 50px !important;
  font-weight: bold !important;
  border: none !important;
  box-shadow: 0 10px 20px rgba(199,162,90,.25);
  transition: all 0.3s ease;
}
.kls-pb-btn--ghost {
  background: rgba(255,255,255,.12);
  color: rgba(253,251,248,.92);
  border: 1px solid rgba(255,255,255,.22);
}

/* Card-level button sizing */
.kls-pb-card .kls-pb-btn {
  min-width: 180px;
  text-align: center;
  justify-content: center;
  display: inline-flex;
  margin: 5px;
}

/* ============================================================
   PICKLEBALL — SPECIFIC SECTION IDs
   ============================================================ */
#newsletter-archive {
  padding-top: 10px !important;
  margin-top: -20px !important;
}
#newsletter-archive .kls-pb-section__head {
  margin-top: 0 !important;
  margin-bottom: 25px !important;
}

/* About author — desktop + mobile merged */
#about-author {
  padding-top: 20px !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}
#about-author .kls-pb-card {
  margin-bottom: 0 !important;
  padding-bottom: 5px !important;
}
#about-author .kls-pb-actions {
  margin-top: 10px !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
#about-author + div {
  padding-top: 10px !important;
  padding-bottom: 20px !important;
  margin-top: 0 !important;
  border-top: 1px solid #eaddcf !important;
}
#about-author + div p {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

@media (max-width: 768px) {
  #about-author + div p {
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
    margin: 0 auto !important;
  }
}
/* --- PICKLEBALL PAGE STRUCTURE --- */
.kls-pickleball-fun {
  --brand: #c7a25a;
  --radius: 18px;
}

.kls-pb-hero {
  position: relative !important;
  padding: 60px 0 !important;
  color: #fdfbf8 !important;
  border-radius: 22px !important;
  background: radial-gradient(900px 360px at 25% 25%, rgba(199,162,90,.35), transparent 60%),
              linear-gradient(180deg, rgba(33,24,16,.92), rgba(33,24,16,.78)) !important;
  background-size: 60px auto, cover, cover !important;
  background-position: bottom 20px right 20px, center, center !important;
  background-repeat: no-repeat !important;
}

.kls-pb-btn--custom {
  background-color: #c7a25a !important; 
  color: #000 !important;
  padding: 12px 35px !important;
  border-radius: 50px !important;
  font-weight: bold !important;
  text-decoration: none !important;
  display: inline-block !important;
}
/* 3. TIGHTEN WHITESPACE (MOBILE & DESKTOP) */
#about-author {
    padding-bottom: 0px !important;
    margin-bottom: 0px !important;
}

#about-author .kls-pb-card {
    margin-bottom: 0px !important;
    padding-bottom: 10px !important;
}

/* The "Say Hello" button container gap */
#about-author .kls-pb-actions {
    margin-top: 15px !important;
    margin-bottom: 0px !important;
}

/* THE QUOTE SECTION: Force-reduce the 60px padding */
#about-author + div {
    padding-top: 10px !important;    /* Moves quote closer to Say Hello */
    padding-bottom: 20px !important; /* Shrinks space after the quote */
    margin-top: 0px !important;
}

@media (max-width: 768px) {
    #about-author + div p {
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
        margin: 0 auto !important;
    }
}
/* --- HOME PAGE: UNCOVERING THE STORY BUTTON --- */
/* Matches the 'Books' button style exactly */
.kls-home-resource-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 30px !important;      /* Balanced padding for a pill shape */
    border-radius: 999px !important;    /* Forces the rounded "pill" look */
    background: linear-gradient(135deg, #c7a25a, #e0c37b) !important; /* Your brand gold */
    color: #1a1208 !important;          /* Dark brown text for contrast */
    text-decoration: none !important;
    font-weight: 650 !important;
    font-size: 15px !important;
    box-shadow: 0 10px 20px rgba(199,162,90,.25) !important; /* Soft gold glow */
    transition: transform .12s ease, box-shadow .12s ease !important;
}

.kls-home-resource-btn:hover {
    transform: translateY(-2px) !important; /* Slight lift on hover */
    box-shadow: 0 12px 24px rgba(199,162,90,.35) !important;
}
/* --- HOME PAGE: UNCOVERING THE STORY IMAGE --- */
.kls-home-resource-image img {
    max-width: 250px !important; /* Adjust this number (e.g., 200px) to make it even smaller */
    width: 100% !important;
    height: auto !important;
    margin: 0 auto 20px !important; /* Centers it and adds space below */
    display: block !important;
    border-radius: 12px !important; /* Optional: adds a slight round to the corners */
}
/* --- HOME PAGE: JOIN THE JOURNEY CARD FIX --- */
.kls-home-join-card {
    background: #ffffff !important;         /* Pure white background */
    border-radius: 18px !important;        /* Matches your 'Books' radius */
    box-shadow: 0 18px 40px rgba(33,24,16,.18) !important; /* Soft brand shadow */
    border: 1px solid rgba(42,30,20,.12) !important;       /* Subtle border */
    
    max-width: 650px !important;           /* Makes the box smaller/tighter */
    margin: 40px auto !important;          /* Centers the box on the page */
    padding: 40px 20px !important;         /* Balanced inner breathing room */
    text-align: center !important;
}

/* Ensures the MailerLite form inside doesn't have its own conflicting background */
.kls-home-join-card .ml-form-embedWrapper {
    background: transparent !important;
}
/* --- FOOTER: SPREAD TEXT ACROSS THE LINE --- */
.site-footer p {
    display: flex !important;
    justify-content: space-between !important; /* Pushes items to opposite ends */
    align-items: center !important;
    flex-wrap: wrap !important; /* Ensures they stack nicely on small phone screens */
    width: 100% !important;
    max-width: 1200px !important; /* Keeps it aligned with your site content */
    margin: 0 auto !important;
}
/* --- Karen L Sims: Integrated About Section Styles --- */
  .kls-custom-about {
    background-color: #f7f3f0;
    padding: 40px 0;
  }

  .kls-about-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
  }

  .kls-about-title {
    color: #2c3e50;
    font-family: serif;
    margin-bottom: 20px;
    margin-top: 0;
  }

  .kls-about-text {
    line-height: 1.7;
    font-size: 1.05rem;
    color: #444;
    margin-bottom: 15px;
  }

  /* The Image Wrapper */
  .kls-about-image-wrap {
    line-height: 0;
  }

  .kls-about-image-wrap img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  }

  /* Desktop View: Float the image to the center */
  @media (min-width: 769px) {
    .kls-about-image-wrap {
      float: center;
      width: 200px;
      margin: 5px 0 15px 30px;
    }
  }

  /* Mobile View: Center the image and keep spacing tight */
  @media (max-width: 768px) {
    .kls-about-image-wrap {
      float: center !important;
      display: block !important;
      margin: 15px auto !important; /* Tight white space around image */
      width: 150px !important;
      max-width: 180px !important;
    }
    .kls-about-image-wrap img {
      margin: 0 auto;
    }
  }

  /* The Bulleted List */
  .kls-about-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
    border-left: 3px solid #c7a25a;
    padding-left: 15px;
    clear: both; /* Keeps list from overlapping the float */
  }

  .kls-about-list li {
    margin-bottom: 8px;
    color: #444;
  }
/* Update this specific block in your code */
.kls-about-title {
  color: #2c3e50;
  font-family: serif;
  margin: 0 0 15px; /* Reduced bottom margin to keep it tight */
  font-size: clamp(26px, 3vw, 36px) !important; /* This matches your desired scale */
  font-weight: 700;
  line-height: 1.2;
}
/* 1. Prevent iOS Auto-Zoom on ALL Inputs */
/* We include email specifically for your sign-up forms */
input[type="text"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="search"],
select,
textarea {
  font-size: 16px !important;
}

/* 2. Prevent the "Sideways Wobble" safely */
html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  position: relative; 
  overflow-x: hidden;
  width: 100%;
}

/* 3. Text Wrapping for Long Headlines */
h1, h2, h3, p, a {
    word-wrap: break-word;
    overflow-wrap: break-word;
}
/* Add breathing room to the Library container */
.kls-header-container {
    padding: 0 15px;
    box-sizing: border-box;
}
/* Only target images within the Kitchen Log Library container */
.kitchen-log-library img {
    max-width: 100% !important;
    height: auto !important;
}

/* If you want to limit the size so they don't get TOO big on desktop */
.kitchen-log-library img {
    max-width: 300px !important; /* Adjust this to the size you like */
}
/* =========================================
   MASTER KITCHEN LOG LIBRARY STYLING
   ========================================= */

/* 1. LAYOUT & CONTROLS (Search & Entries) */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    float: none !important;
    text-align: center !important;
    margin: 20px auto !important;
    width: 100% !important;
    display: block !important;
    color: #2c3e50 !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    font-size: 14px;
}

/* Style the Search Input Box */
.dataTables_wrapper .dataTables_filter input {
    border: 3px solid #7a8d84 !important; /* Sage Green */
    border-radius: 50px !important;
    padding: 10px 20px !important;
    background-color: #ffffff !important;
    width: 280px !important;
    max-width: 90% !important;
    outline: none !important;
    margin-left: 10px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

/* Style the 'Show Entries' Dropdown */
.dataTables_wrapper .dataTables_length select {
    border: 2px solid #7a8d84 !important;
    border-radius: 10px !important;
    padding: 5px 10px !important;
    margin: 0 10px !important;
    outline: none !important;
}

/* 2. THE TABLE CARDS */
.tablepress {
    border-collapse: separate !important;
    border-spacing: 0 15px !important;
    border: none !important;
    background: none !important;
}

.tablepress tr {
    background-color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
    transition: transform 0.3s ease;
}

.tablepress tr:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12) !important;
}

/* 3. COLUMN BRANDING */
.tablepress td {
    padding: 20px !important;
    vertical-align: middle !important;
    border: none !important;
}

/* Column 1: The Date Badge */
.tablepress .column-1 {
    background-color: #3e362f !important; /* Dark Brown/Charcoal */
    color: #ffffff !important;
    font-weight: bold !important;
    text-align: center !important;
    border-radius: 12px 0 0 12px !important;
    width: 120px !important;
}

/* Column 2: The Title */
.tablepress .column-2 {
    font-weight: 800 !important;
    color: #2c3e50 !important;
    font-size: 1.1rem !important;
}

/* Column 3: The Topics */
.tablepress .column-3 {
    color: #555555 !important;
    font-style: italic !important;
}

/* Column 4: The PDF Icon */
.tablepress .column-4 {
    background: transparent !important;
    border-radius: 0 12px 12px 0 !important;
    text-align: center !important;
    width: 100px !important;
}

/* 4. PDF ICON & LINK FIXES */
.tablepress .column-4 a {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

.tablepress .column-4 img {
    display: block !important;
    margin: 0 auto !important;
    width: 60px !important; /* Your uploaded image size */
    height: auto !important;
    transition: transform 0.2s ease !important;
}

.tablepress .column-4 a:hover img {
    transform: scale(1.1);
}

/* 5. MOBILE RESPONSIVE (STACKING) */
@media screen and (max-width: 600px) {
    .tablepress thead { display: none !important; }

    .tablepress tbody, 
    .tablepress tr, 
    .tablepress td {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
        text-align: center !important;
    }

    .tablepress tr {
        margin-bottom: 25px !important;
        border-radius: 12px !important;
        overflow: hidden !important;
    }

    .tablepress .column-1 {
        border-radius: 12px 12px 0 0 !important;
        width: 100% !important;
    }

    .tablepress .column-4 {
        border-radius: 0 0 12px 12px !important;
        border-top: 1px solid #eee !important;
    }
}

/* 6. HIDE HEADER ROW */
.tablepress thead th {
    display: none !important;
}
/* =========================================
   FORCED CENTERING - MASTER OVERRIDE
   ========================================= */

/* 1. CENTER THE PDF IMAGE ON MOBILE */
@media screen and (max-width: 600px) {
    /* Target the cell, the link, and the image */
    .tablepress .column-4, 
    .tablepress td.column-4 {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        padding: 20px 0 !important;
    }

    .tablepress .column-4 a {
        display: block !important;
        margin: 0 auto !important;
        width: fit-content !important; /* Shrinks the link to just the image size */
    }

    .tablepress .column-4 img {
        margin: 0 auto !important;
        display: block !important;
        float: none !important;
    }
}

/* 2. CENTER THE SEARCH & ENTRIES (DESKTOP & MOBILE) */
/* This targets the TablePress generated Wrapper IDs */
div[id*="_wrapper"] .dataTables_length,
div[id*="_wrapper"] .dataTables_filter {
    float: none !important;
    text-align: center !important;
    display: block !important;
    width: 100% !important;
    margin: 15px auto !important;
}

/* Force the internal labels and inputs to stop floating */
.dataTables_wrapper .dataTables_filter label,
.dataTables_wrapper .dataTables_length label {
    display: inline-block !important;
    float: none !important;
    text-align: center !important;
    width: 100% !important;
}

.dataTables_wrapper .dataTables_filter input {
    display: block !important;
    margin: 10px auto !important; /* This centers the box itself */
    float: none !important;
}

.dataTables_wrapper .dataTables_length select {
    display: inline-block !important;
    float: none !important;
    margin: 10px auto !important;
}
/* FORCE FULL WIDTH & CENTERING FOR TOP CONTROLS */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    display: block !important;
    width: 100% !important;
    float: none !important;
    text-align: center !important;
    margin: 15px 0 !important;
}

/* Force the labels (the text part) to be full width */
.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
    display: block !important;
    width: 100% !important;
    margin: 0 auto !important;
}

/* Force the dropdown (Entries) to center */
.dataTables_wrapper .dataTables_length select {
    display: inline-block !important; /* Kept inline to stay next to its text */
    margin: 5px auto !important;
    float: none !important;
}

/* Force the Search Input to center */
.dataTables_wrapper .dataTables_filter input {
    display: block !important; /* Changes to block so margin:auto works */
    margin: 10px auto !important; 
    float: none !important;
    width: 280px !important; /* Specific width for desktop/mobile consistency */
    max-width: 90% !important;
}

/* Extra cleanup for mobile specific spacing */
@media screen and (max-width: 600px) {
    .dataTables_wrapper .dataTables_length {
        margin-top: 20px !important;
        margin-bottom: 10px !important;
    }
    .dataTables_wrapper .dataTables_filter {
        margin-top: 10px !important;
        margin-bottom: 25px !important;
    }
}
/* Center the password form and style the wrapper */
.post-password-required .entry-content {
    max-width: 500px;
    margin: 50px auto !important;
    padding: 40px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

/* Style the message text ("This content is password protected...") */
.post-password-required .post-password-form p {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 20px;
}
/* Style the password input field */
.post-password-form input[type="password"] {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 10px auto 20px !important;
    padding: 12px;
    border: 2px solid #7a8d84 !important; /* Your Sage Green */
    border-radius: 25px;
    outline: none;
    text-align: center;
}

/* Style the Submit button */
.post-password-form input[type="submit"] {
    background-color: #3e362f !important; /* Matching your Date Badge color */
    color: #ffffff !important;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.post-password-form input[type="submit"]:hover {
    background-color: #7a8d84 !important; /* Turns green on hover */
    transform: translateY(-2px);
}
/* (Optional) This is a trick to hide "Protected:" but keep your title */
.post-password-required .entry-title {
    color: #2c3e50;
}

/* Container for the Family Vault Login */
.post-password-required .entry-content {
    max-width: 450px;
    margin: 80px auto !important;
    padding: 50px 30px;
    background: #fdfdfd; /* Off-white for a clean look */
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.07);
    text-align: center;
}

/* Customizing the message text */
.post-password-form p {
    font-family: 'Georgia', serif; /* A more "Vault" / Heritage font */
    font-size: 1.2rem;
    color: #3e362f;
    line-height: 1.5;
    margin-bottom: 25px;
}

/* The Password Input Field */
.post-password-form input[type="password"] {
    width: 100%;
    max-width: 280px;
    padding: 12px 15px;
    border: 2px solid #7a8d84; /* Using your Sage Green */
    border-radius: 8px;
    font-size: 18px;
    text-align: center;
    background: #ffffff;
    margin-bottom: 20px !important;
    transition: all 0.3s ease;
}

.post-password-form input[type="password"]:focus {
    border-color: #3e362f;
    box-shadow: 0 0 10px rgba(122, 141, 132, 0.3);
}

/* The "Enter Vault" Button */
.post-password-form input[type="submit"] {
    background-color: #3e362f !important; /* Dark Brown/Charcoal */
    color: #ffffff !important;
    padding: 14px 40px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.post-password-form input[type="submit"]:hover {
    background-color: #7a8d84 !important;
    transform: scale(1.02);
}
/* Hides the system "Protected:" text if your theme allows it */
.post-password-required .entry-title {
    visibility: visible;
}
/* Note: Removing the actual word 'Protected' usually requires a small 
   PHP snippet, but styling the title makes it look much more 'Vault-like'. */
/* Align the password box and button side-by-side */
.password-form-row {
    display: flex;
    flex-wrap: wrap; /* Keeps it mobile friendly */
    gap: 10px;
    margin-top: 20px;
}

.post-password-form input[type="password"] {
    padding: 12px;
    border: 1px solid #eaddcf;
    border-radius: 5px;
    min-width: 250px;
}

.post-password-form input[type="submit"] {
    background-color: #3e362f; /* Your brand Charcoal */
    color: #ffffff;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

.post-password-form input[type="submit"]:hover {
    background-color: #7a8d84; /* Your brand Sage */
}
/* 1. ALIGN INPUT TEXT LEFT */
.post-password-form input[type="password"] {
    text-align: left !important;
    padding-left: 15px !important;
    margin: 0 !important; /* Removes default spacing that might cause gaps */
    height: 45px !important; /* Sets a fixed height for alignment */
}

/* 2. TIGHTEN GAP & FIX BUTTON HEIGHT */
.password-form-row {
    display: flex !important;
    justify-content: flex-start !important; /* Keeps everything to the left */
    gap: 0 !important; /* Removes the physical gap between box and button */
    margin-top: 15px !important;
}

.post-password-form input[type="submit"] {
    height: 45px !important; /* Matches the height of the password box exactly */
    padding: 0 25px !important; /* Adjusts side padding, removes top/bottom bloat */
    margin: 0 !important;
    line-height: 45px !important; /* Centers the word 'ENTER' vertically */
    border-radius: 0 5px 5px 0 !important; /* Rounds only the right corners for a 'connected' look */
}

/* Optional: Rounds the left corners of the input to match */
.post-password-form input[type="password"] {
    border-radius: 5px 0 0 5px !important;
    border-right: none !important; /* Makes the box and button look like one unit */
}
/* 1. CONTAINER - Allows wrapping on small screens */
.password-form-row {
    display: flex !important;
    flex-wrap: wrap !important; 
    gap: 0 !important;
    max-width: 100%; /* Prevents horizontal scrolling */
    margin-top: 15px !important;
}

/* 2. TEXT BOX - Flexible width */
.post-password-form input[type="password"] {
    flex: 1 1 300px !important; /* Grow, Shrink, but try to be 300px */
    max-width: 100% !important; /* KEY: Prevents going off-screen */
    height: 48px !important;
    padding: 0 15px !important;
    text-align: left !important;
    border: 1px solid #7a8d84 !important;
    border-radius: 5px 0 0 5px !important;
    font-size: 16px !important;
    box-sizing: border-box !important; /* Includes padding in width calculation */
}

/* 3. BUTTON - Fixed height to match */
.post-password-form input[type="submit"] {
    height: 48px !important;
    padding: 0 30px !important;
    background-color: #3e362f !important;
    color: #fff !important;
    border: 1px solid #3e362f !important;
    border-radius: 0 5px 5px 0 !important;
    font-weight: bold !important;
    cursor: pointer !important;
}

/* 4. MOBILE ADJUSTMENTS - When they stack */
@media screen and (max-width: 480px) {
    .password-form-row {
        gap: 10px !important; /* Add space between box and button when stacked */
    }
    
    .post-password-form input[type="password"],
    .post-password-form input[type="submit"] {
        flex: 0 0 100% !important; /* Force both to take full width */
        border-radius: 5px !important; /* Round all corners when stacked */
        border-right: 1px solid #7a8d84 !important; /* Restore border on mobile */
    }
}
/* 1. THE GRID CONTAINER */
.vault-grid {
    display: grid !important;
    /* This automatically creates as many 300px columns as fit */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 20px !important;
    margin-top: 30px !important;
    width: 100% !important;
}

/* 2. THE CARDS */
.vault-card {
    background: #ffffff !important;
    padding: 25px !important;
    border-radius: 8px !important;
    border-left: 6px solid #7a8d84 !important; /* Sage Green */
    box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    height: 100% !important;
}

.vault-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 24px rgba(0,0,0,0.1) !important;
    border-left-color: #3e362f !important;
}

/* 3. THE 7th TILE (Featured Documentary) */
.featured-card {
    background-color: #f9f7f4 !important;
}

/* DESKTOP ONLY: Make the 7th tile span the bottom */
@media screen and (min-width: 1024px) {
    .featured-card {
        grid-column: 1 / -1 !important; /* Forces it to span ALL available columns */
        text-align: center !important;
        align-items: center !important;
    }
}

/* 4. TEXT STYLING */
.vault-icon { font-size: 1.5rem; margin-bottom: 10px; }
.vault-card h3 { 
    margin: 0 0 10px 0 !important; 
    color: #3e362f !important; 
    font-size: 1.2rem !important; 
    line-height: 1.2 !important;
}
.vault-card p { 
    margin: 0 !important; 
    color: #666 !important; 
    font-size: 0.95rem !important; 
    line-height: 1.5 !important;
}
/* Vault Intro Container */
.vault-intro {
    max-width: 800px;
    margin: 20px auto;
    padding: 10px;
    background-color: #fcfcfc;
    border-top: 2px solid #eaddcf;
    border-bottom: 2px solid #eaddcf;
    text-align: center;
}

/* Title Styling */
.vault-intro-title {
    font-family: serif; /* Gives it that historical 'Author' feel */
    font-size: 1rem !important;
    color: #3e362f !important;
    margin-bottom: 10px !important;
    letter-spacing: 1px;
}

/* Lead Paragraph */
.vault-intro-lead {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    color: #555 !important;
    font-style: italic;
    margin-bottom: 30px !important;
}

/* Highlights Section */
.vault-highlights {
    text-align: left; /* Better readability for the list */
    max-width: 650px;
    margin: 0 auto 30px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: inset 4px 0 0 #7a8d84; /* Sage green left accent */
}

.vault-list {
    list-style: none !important;
    padding: 0 !important;
    margin-top: 15px !important;
}

.vault-list li {
    margin-bottom: 12px !important;
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
    position: relative;
    padding-left: 20px;
}

.vault-list li::before {
    content: "•";
    color: #7a8d84;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Footer Invitation */
.vault-intro-footer {
    font-weight: bold;
    color: #3e362f;
    font-size: 1rem;
    margin-top: 20px;
}

/* Mobile Adjustments */
@media screen and (max-width: 600px) {
    .vault-intro {
        padding: 10px 5px;
    }
    .vault-intro-title {
        font-size: 1rem !important;
    }
}
.vault-intro {
    max-width: 850px;
    margin: 10px auto 20px !important; /* Reduces space above/below intro */
    padding: 10px !important;
    text-align: center;
}

.vault-intro-lead {
    font-size: 1rem !important;
    margin-bottom: 6px !important; /* Pulls the invitation closer */
}
/* --- VAULT TOOLBAR MASTER STYLING --- */

/* 1. THE LABEL ABOVE THE SCROLL (Sage Green Title) */
.vault-toolbar-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #7a8d84; 
    margin-bottom: 15px;
    font-weight: bold;
    text-align: center;
}

/* 2. THE SCROLLING CONTAINER (Restores Horizontal Slide) */
.vault-toolbar {
    display: flex !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    gap: 20px; 
    padding: 10px 5px;
    -webkit-overflow-scrolling: touch; /* Smooth swipe on iPhone */
}

/* 3. THE INDIVIDUAL LINKS (Stacked Icon over Text) */
.vault-toolbar a {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-decoration: none !important;
    min-width: 75px; /* Ensures items don't squish */
    transition: transform 0.2s ease;
    flex-shrink: 0; /* Prevents browser from shrinking the buttons */
}

.vault-toolbar a:hover {
    transform: translateY(-3px);
}

/* 4. THE ICON CIRCLES (Brings back the Home 🏠 and Others) */
.vault-toolbar a span {
    font-size: 1.4rem;
    background: #f9f7f4;
    width: 45px;
    height: 45px;
    display: flex !important; /* Restores the circle shape */
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 8px;
    border: 1px solid #eaddcf;
    overflow: visible !important; /* Safety for the icon itself */
}

/* 5. THE TEXT LABELS (Fixes the 'H' clipping) */
.vault-toolbar a label {
    font-size: 0.75rem;
    color: #3e362f;
    font-weight: 600;
    cursor: pointer;
    display: block !important;
    text-align: center;
    /* THE FIX: Padding adds space inside the label so the first letter (H) isn't clipped */
    padding: 0 4px !important; 
    overflow: visible !important; 
}

/* 6. SCROLLBAR VISUALS */
.vault-toolbar::-webkit-scrollbar {
    height: 4px;
}
.vault-toolbar::-webkit-scrollbar-thumb {
    background: #eaddcf;
    border-radius: 10px;
}
/* Scrollbar styling for mobile swiping */
.vault-toolbar::-webkit-scrollbar {
    height: 4px;
}
.vault-toolbar::-webkit-scrollbar-thumb {
    background: #eaddcf;
    border-radius: 10px;
}
.post-password-form {
    display: flex !important;
    align-items: flex-start !important;
    white-space: nowrap !important; /* Prevents the button from "jumping" even a pixel */
}
/* Container for the Add a Recipe section */
.upload-section {
    background: #fdfaf7 !important; /* Soft paper color */
    border: 2px dashed #d1c7bd !important; /* Muted tan border */
    border-radius: 15px !important;
    padding: 40px !important;
    margin-top: 60px !important;
}

/* Style the form labels and inputs */
.upload-field {
    background: #ffffff !important;
    border: 1px solid #eaddcf !important;
    border-radius: 8px !important;
    padding: 12px 15px !important;
    font-size: 15px !important;
    color: #5f5145 !important;
    transition: 0.3s border-color;
}

/* Sage Green focus state when clicking into boxes */
.upload-field:focus {
    outline: none !important;
    border-color: #8fa18d !important; /* Sage Green */
    box-shadow: 0 0 0 3px rgba(143, 161, 141, 0.1) !important;
}

/* Make the File Upload button match your brand */
input[type="file"].upload-field::file-selector-button {
    background: #eaddcf;
    border: none;
    padding: 5px 15px;
    border-radius: 5px;
    color: #7c6a5a;
    font-weight: bold;
    margin-right: 15px;
    cursor: pointer;
    transition: 0.3s;
}

input[type="file"].upload-field::file-selector-button:hover {
    background: #d1c7bd;
}

/* The Submit Button - Archival Sage */
.upload-section button[type="submit"] {
    background: #8fa18d !important; /* Sage Green */
    color: white !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: bold !important;
    border-radius: 30px !important;
    border: none !important;
    padding: 18px !important;
    transition: 0.3s transform, 0.3s background !important;
    margin-top: 10px !important;
}

.upload-section button[type="submit"]:hover {
    background: #7a8b79 !important; /* Slightly darker sage */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
/* Container for the documentary grid */
.documentary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

/* Fixes the sizing of the video players */
.documentary-grid iframe, 
.documentary-grid .wp-block-embed {
    width: 100% !important;
    height: 200px !important; /* Smaller height */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
/* 1. The Grid: Makes boxes smaller and side-by-side */
.doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

/* 2. The Card Styling */
.doc-card {
    background: #fff;
    border: 1px solid #eaddcf;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.doc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

/* 3. The Thumbnail Wrap */
.doc-thumb-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
}

.doc-thumb-wrap img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 4. The Sage Green Play Button Overlay */
.play-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.doc-card:hover .play-overlay {
    background: rgba(0,0,0,0.4);
}

.play-button-icon {
    background: #8fa18d; /* Your Sage Green */
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    padding-left: 4px; /* Centers the triangle visually */
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.doc-card:hover .play-button-icon {
    transform: scale(1.1);
    background: #7a8b79;
}

/* 5. Meta Text Styling */
.doc-meta {
    padding: 15px;
    flex-grow: 1;
}

.doc-episode {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #b5a494;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.doc-title {
    font-family: serif;
    font-size: 1.1rem !important;
    margin: 0 0 8px 0 !important;
    color: #3e362f;
}

.doc-desc {
    font-size: 0.85rem;
    color: #777;
    line-height: 1.4;
    /* Limit to 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* Forces the container to be wide enough for columns */
.doc-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
    gap: 25px !important;
    max-width: 1200px !important;
    margin: 40px auto !important;
    width: 100% !important;
}

/* Forces the boxes to respect the grid size */
.doc-card {
    max-width: 100% !important;
    width: auto !important;
    background: #fff;
    border: 1px solid #eaddcf;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* Ensure images don't stretch the box */
.doc-thumb-wrap img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
}

/* Meta text clean up */
.doc-meta h3 {
    font-size: 1.1rem !important;
    line-height: 1.3 !important;
}
.rr-pdf-container {
    padding: 20px; /* <--- Add this line! */
    background-color: #ffffff;
    border-radius: 8px; /* Optional: Gives the copied image soft, professional corners */
}
/* Fix squished password protected text on mobile */
.post-password-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.post-password-form p {
    width: 100%;
    margin-bottom: 15px;
}

.post-password-form input[type="password"] {
    max-width: 100%;
    box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
.heritage-callout {
        background: #fdfaf6;
        border-left: 5px solid #d35400; /* Deep orange/fiddle-wood color */
        padding: 25px;
        margin: 30px 0;
        border-radius: 0 10px 10px 0;
        box-shadow: 2px 4px 12px rgba(0,0,0,0.08);
        font-family: "Georgia", serif;
    }
    .heritage-callout h4 {
        color: #8e44ad; /* A touch of Victorian elegance */
        margin-top: 0;
        font-variant: small-caps;
        letter-spacing: 1px;
        font-size: 1.3rem;
        display: flex;
        align-items: center;
    }
    .heritage-callout .instrument-icon {
        margin-right: 10px;
        font-size: 1.5rem;
    }
    .heritage-callout p {
        color: #4e342e;
        line-height: 1.6;
        font-style: italic;
        margin-bottom: 0;
    }
    .heritage-callout .quote-source {
        display: block;
        margin-top: 15px;
        font-weight: bold;
        color: #2c3e50;
        font-style: normal;
        font-size: 0.9rem;
        text-transform: uppercase;
    }
/* Standard styling for the musical icon */
/* Lock the icon to text size */
/* Standard styling for the musical icon */
.instrument-icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 12px;
    font-size: 1.5rem;
}

/* THE PRINT FIX: This targets the SVG conversion specifically */
@media print {
    /* 1. Shrink the container */
    .instrument-icon {
        width: 24pt !important;
        height: 24pt !important;
        font-size: 18pt !important;
        overflow: hidden !important;
        display: inline-block !important;
    }

    /* 2. Force any SVG (what WordPress likely turned the emoji into) to stay tiny */
    .instrument-icon img, 
    .instrument-icon svg {
        width: 18pt !important;
        height: 18pt !important;
        display: inline-block !important;
        vertical-align: middle !important;
    }
}
/* Fix for Add a Recipe mobile layout */
@media (max-width: 600px) {
    /* Forces the row to stack vertically */
    .recipe-form-row, 
    .recipe-upload-row {
        display: block !important;
    }

    /* Ensures each field takes up the full width and has breathing room */
    .recipe-form-field, 
    .recipe-upload-box {
        width: 100% !important;
        margin-bottom: 15px !important;
        min-height: 80px !important; /* Prevents text cutoff */
    }

    /* Centers the labels and inputs for better mobile touch */
    .recipe-form-field label, 
    .recipe-form-field select {
        font-size: 16px !important; /* Prevents iOS auto-zoom on focus */
    }
}
@media print {
    /* Hides the blue floating button and bottom nav icons in the PDF */
    .quick-access-nav, 
    #backToTop, 
    .v-back-link,
    .recipe-upload-section {
        display: none !important;
    }

    /* Ensures each recipe starts on a clean new page */
    .recipe-card {
        page-break-inside: avoid;
        margin-bottom: 50px;
    }
}
.v-back-link {
            display: inline-block !important;
            margin-bottom: 20px !important;
            color: #7c6a5a !important;
            text-decoration: none !important;
            font-weight: bold !important;
            font-size: 14px !important;
            transition: 0.3s;
        }