/*
Theme Name: MyFrenchTable v3.9
Theme URI: https://www.myfrenchtable.com/
Description: MyFrenchTable child theme based on Twenty Twenty-Five.
Author: MyFrenchTable
Template: twentytwentyfive
Version: 3.9.0
Requires at least: 6.7
Text Domain: myfrenchtable-child
*/
:root { --mft-cream:#faf8f2; --mft-ink:#302e28; --mft-sage:#64735b; }
body { background:var(--mft-cream); color:var(--mft-ink); }
.mft-header { border-bottom:1px solid #e5e0d4; padding-block:1.2rem; }
.mft-header .wp-block-site-title { font-family:Georgia,serif; font-weight:700; font-size:clamp(1.45rem,2.2vw,2rem); letter-spacing:-.025em; }
.mft-header .wp-block-site-title a { text-decoration:none; }
.mft-header .wp-block-navigation { font-size:.95rem; }
.mft-header .wp-block-navigation-item__content { text-decoration:none; }
.mft-header .wp-block-navigation-item__content:hover { color:var(--mft-sage); }
.mft-footer { border-top:1px solid #e5e0d4; padding-block:2rem; }
.mft-footer a { color:inherit; }
/* Scope Home styles to the dedicated Home template, not a database post ID. */
.mft-home-main > .wp-block-post-title { display:none; }
@media (max-width:780px) { .mft-header { padding-block:.7rem; } .mft-header .wp-block-site-title { font-size:1.35rem; } }

/* v3.1: restore titles in Query Loop cards (v3 hid them inadvertently). */
.mft-home-main .wp-block-query .wp-block-post-title {
  display: block !important;
  visibility: visible;
  font-family: Georgia, serif;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.25;
  margin: 1rem 0 .45rem;
  padding-inline: 1rem;
}
.mft-home-main .wp-block-query .wp-block-post-title a { color: var(--mft-ink); text-decoration: none; }
.mft-home-main .wp-block-query .wp-block-post-title a:hover { color: var(--mft-sage); text-decoration: underline; }
.mft-home-main .wp-block-query .wp-block-post-excerpt { margin-top: 0; padding-inline: 1rem; }
.mft-home-main .wp-block-query .wp-block-post-excerpt__excerpt {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3;
  overflow: hidden; line-height: 1.55;
}
.mft-home-main .wp-block-query .wp-block-post-featured-image { margin-bottom: 0; }
.mft-home-main .wp-block-query .wp-block-post-featured-image img { display: block; }
.mft-brand { font-family: Georgia, serif; font-size: clamp(1.3rem, 2.2vw, 1.85rem); font-weight: 700; letter-spacing: -.025em; white-space: nowrap; }
.mft-brand a { color: var(--mft-ink); text-decoration: none; }
.mft-brand a:hover { color: var(--mft-sage); }
.mft-header .wp-block-navigation { gap: clamp(.7rem, 2vw, 1.5rem); }
@media (max-width: 780px) {
 .mft-header .wp-block-group.is-layout-flex { gap: .75rem; }
 .mft-brand { font-size: 1.2rem; }
 .mft-home-main .wp-block-query .wp-block-post-template { gap: 1rem; }
}
@media (max-width: 600px) {
 .mft-home-main .wp-block-query .wp-block-post-template { grid-template-columns: 1fr !important; }
}

/* v3.4 — Home-specific template and gentle mobile refinements. */
.mft-home-main {
  margin-block-start: 0 !important;
  padding-block-start: 0;
  padding-block-end: clamp(1.5rem, 4vw, 3rem);
}
.mft-home-main > .wp-block-post-content {
  margin-block-start: 0 !important;
}
@media (max-width: 781px) {
  .mft-home-main .wp-block-post-content > .wp-block-group.alignwide > .wp-block-spacer:first-child {
    height: 18px !important;
  }
  .mft-home-main h2.has-text-align-center {
    font-size: clamp(2.1rem, 8vw, 3.25rem) !important;
    line-height: 1.12;
  }
  .mft-home-main p.has-large-font-size {
    font-size: clamp(1rem, 4.3vw, 1.2rem) !important;
  }
  .mft-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
    align-items: center;
    justify-content: center;
    padding-block: 3rem;
  }
  .mft-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
    align-items: center;
  }
  .mft-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
    text-align: center;
  }
  .mft-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
    align-items: center;
  }
}

/* v3.5 — dedicated single-recipe template, no duplicate Featured image. */
body.single-post .mft-recipe-shell {
  box-sizing: border-box;
  width: min(100% - 2rem, 860px);
  max-width: 860px !important;
  margin: 0 auto !important;
  padding: clamp(1.75rem, 5vw, 3.5rem) 0 clamp(3rem, 6vw, 5rem);
}
body.single-post .mft-recipe-shell > .mft-recipe,
body.single-post .mft-recipe-shell .mft-recipe-content,
body.single-post .mft-recipe-content > :where(*) {
  max-width: 100% !important;
}
body.single-post .mft-recipe-shell .mft-recipe-title {
  max-width: 100% !important;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.15rem, 4.7vw, 3.45rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin: 0 0 .75rem;
  color: var(--mft-ink);
  overflow-wrap: break-word;
}
body.single-post .mft-recipe-shell .mft-recipe-categories {
  color: #5a6657;
  font-size: .9rem;
  margin: 0 0 1.1rem;
}
body.single-post .mft-recipe-categories a { color: inherit; text-underline-offset: .2em; }
body.single-post .mft-recipe-actions { margin: 0 0 1.5rem; }
body.single-post .mft-print-button {
  border: 1px solid #526b57;
  background: transparent;
  color: #36503c;
  border-radius: 3px;
  padding: .66rem 1.1rem;
  font: 600 .95rem/1.25 system-ui, -apple-system, 'Segoe UI', sans-serif;
  cursor: pointer;
  min-height: 44px;
}
body.single-post .mft-print-button:hover,
body.single-post .mft-print-button:focus-visible {
  background: #526b57;
  color: #fff;
}
body.single-post .mft-recipe-content {
  font-family: inherit;
  font-size: 1.075rem;
  line-height: 1.72;
  color: #302e28;
  overflow-wrap: break-word;
}
body.single-post .mft-recipe-content p,
body.single-post .mft-recipe-content li {
  font-size: inherit !important;
  line-height: inherit;
}
body.single-post .mft-recipe-content p { margin-block: 0 1.2rem; }
body.single-post .mft-recipe-content img {
  display: block;
  height: auto;
  max-width: 100%;
  border-radius: 2px;
}
body.single-post .mft-recipe-content img.aligncenter { margin-inline: auto; }
body.single-post .mft-recipe-content > img:first-child,
body.single-post .mft-recipe-content > a:first-child > img,
body.single-post .mft-recipe-content > p:first-child img {
  margin-block: 0 1.5rem;
}
body.single-post .mft-recipe-content h4 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -.02em;
  margin: 2rem 0 .8rem;
  padding-bottom: .35rem;
  border-bottom: 1px solid #dedbd1;
}
body.single-post .mft-recipe-content ul,
body.single-post .mft-recipe-content ol {
  padding-inline-start: 1.6rem;
  margin-block: .6rem 1.6rem;
}
body.single-post .mft-recipe-content li { padding-inline-start: .1rem; margin-bottom: .35rem; }
body.single-post .mft-recipe-content li::marker { color: #526b57; }
body.single-post .mft-recipe-content a { color: #36503c; text-underline-offset: .15em; }
@media (max-width: 680px) {
  body.single-post .mft-recipe-shell {
    width: calc(100% - 2.1rem);
    padding-block: 1.6rem 3rem;
  }
  body.single-post .mft-recipe-shell .mft-recipe-title {
    font-size: clamp(2rem, 8.2vw, 2.55rem);
    margin-bottom: .7rem;
  }
  body.single-post .mft-recipe-content {
    font-size: 1.04rem;
    line-height: 1.66;
  }
  body.single-post .mft-recipe-content h4 { margin-top: 1.8rem; }
  body.single-post .mft-recipe-content ul,
  body.single-post .mft-recipe-content ol { padding-inline-start: 1.45rem; }
}
@media print {
  @page { margin: 12mm; }
  body.single-post { background: #fff !important; color: #111 !important; }
  body.single-post .mft-recipe-shell { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
  body.single-post .mft-recipe-actions,
  body.single-post .mft-recipe-categories,
  body.single-post .mft-header,
  body.single-post .mft-footer,
  body.single-post #wpadminbar { display: none !important; }
  body.single-post .mft-recipe-title { font-size: 21pt !important; margin-bottom: 10pt !important; }
  body.single-post .mft-recipe-content { font-size: 10.5pt !important; line-height: 1.4 !important; }
  body.single-post .mft-recipe-content img { max-height: 90mm !important; width: auto !important; break-inside: avoid; }
  body.single-post .mft-recipe-content h4 { font-size: 15pt !important; break-after: avoid; }
  body.single-post .mft-recipe-content a { color: #111 !important; }
}


/* v3.6 — Recipes directory + legacy category-page templates. */
body.page .mft-library-main {
  box-sizing: border-box;
  width: 100%;
  max-width: none !important;
  padding: clamp(1.5rem, 4vw, 3.5rem) 1.1rem clamp(3rem, 6vw, 5rem);
  margin-block: 0 !important;
}
body.page .mft-library-main > .wp-block-shortcode {
  box-sizing: border-box;
  width: 100%;
  max-width: 1160px !important;
  margin-inline: auto !important;
}
.mft-library { width: 100%; max-width: 1160px; margin: 0 auto; color: var(--mft-ink); }
.mft-library-hero { max-width: 800px; margin: 0 auto clamp(1.6rem, 4vw, 2.5rem); text-align: center; }
.mft-library-eyebrow { color: #586d5a; font-size: .78rem; font-weight: 650; text-transform: uppercase; letter-spacing: .14em; margin: 0 0 .8rem; }
.mft-library-hero h1 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2.45rem, 5vw, 4.3rem); line-height: 1.1; font-weight: 500; letter-spacing: -.035em; margin: 0 0 1rem; }
.mft-library-intro { font-size: clamp(1rem, 1.5vw, 1.14rem); line-height: 1.65; color: #55584f; margin: 0; }
.mft-library-filters { display: flex; flex-wrap: wrap; gap: .55rem; justify-content: center; margin-bottom: clamp(1.7rem, 3vw, 2.2rem); }
.mft-library-filter { color: #35503a; border: 1px solid #d6dacd; border-radius: 100px; text-decoration: none; background: #fffdf9; padding: .53rem 1rem; font-size: .91rem; line-height: 1.4; }
.mft-library-filter:hover, .mft-library-filter:focus-visible, .mft-library-filter.is-active { color: #fff; border-color: #526b57; background: #526b57; }
.mft-library-search { max-width: 620px; margin: 0 auto clamp(1.5rem, 3vw, 2.4rem); }
.mft-library-search label { font-size: .93rem; font-weight: 600; display: block; margin: 0 0 .55rem; }
.mft-library-search-fields { display: flex; gap: .6rem; }
.mft-library-search-fields input { flex: 1 1 200px; min-width: 0; border: 1px solid #cbcfc3; background: #fffefa; color: #302e28; border-radius: 3px; font: inherit; font-size: 1rem; padding: .75rem .9rem; }
.mft-library-search-fields button { flex: 0 0 auto; border-radius: 3px; border: 1px solid #526b57; background: #526b57; color: #fff; font: 600 .95rem/1.25 system-ui, sans-serif; padding: .7rem 1rem; cursor: pointer; min-height: 44px; }
.mft-library-search-fields button:hover { background: #374f3e; }
.mft-library-results { margin: 0 0 1.1rem; color: #5c6258; font-size: .92rem; }
.mft-library-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 1.7rem); }
.mft-library-card { box-sizing: border-box; display: flex; flex-direction: column; min-width: 0; background: #fffefa; border: 1px solid #e5e0d6; overflow: hidden; }
.mft-library-thumb { display: block; line-height: 0; background: #ebe6d9; }
.mft-library-image { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.mft-library-placeholder { display: flex; aspect-ratio: 4 / 3; align-items: center; justify-content: center; color: #687568; font-family: Georgia, serif; font-size: 1.3rem; line-height: 1.5; }
.mft-library-card-body { display: flex; flex-direction: column; flex: 1; padding: 1rem 1.15rem 1.2rem; }
.mft-library-card h2 { font: 500 clamp(1.25rem, 1.8vw, 1.55rem)/1.25 Georgia, 'Times New Roman', serif; letter-spacing: -.02em; margin: 0 0 .7rem; overflow-wrap: break-word; }
.mft-library-card h2 a { color: #302e28; text-decoration: none; }
.mft-library-card h2 a:hover { color: #36533f; text-decoration: underline; text-underline-offset: .16em; }
.mft-library-card-body > p { color: #5b5c54; font-size: .94rem; line-height: 1.58; margin: 0 0 1.2rem; }
.mft-library-read { margin-top: auto; color: #355a41; text-decoration: underline; text-underline-offset: .2em; font-size: .94rem; font-weight: 600; }
.mft-library-pagination { margin: 2.4rem auto 0; }
.mft-library-pagination ul { list-style: none; padding: 0; margin: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: .55rem; }
.mft-library-pagination a, .mft-library-ellipsis { display: flex; min-width: 42px; min-height: 42px; align-items: center; justify-content: center; padding: .3rem .6rem; border: 1px solid #d6dacd; border-radius: 3px; text-decoration: none; color: #36503c; }
.mft-library-pagination a:hover, .mft-library-pagination a[aria-current="page"] { background: #526b57; border-color: #526b57; color: white; }
.mft-library-empty { background: #fffefa; border: 1px solid #e5e0d6; padding: 2rem; text-align: center; }
.mft-library-empty a { color: #36503c; }
@media (max-width: 900px) {
  .mft-library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  body.page .mft-library-main { padding: 1.6rem 1rem 3rem; }
  .mft-library-hero { margin-bottom: 1.65rem; }
  .mft-library-hero h1 { font-size: clamp(2.2rem, 9vw, 3rem); }
  .mft-library-filters { gap: .45rem; justify-content: flex-start; }
  .mft-library-filter { padding: .48rem .75rem; font-size: .88rem; }
  .mft-library-grid { grid-template-columns: 1fr; gap: 1.15rem; }
  .mft-library-card-body { padding: 1rem; }
}

/* v3.7 — presentation of the original About and Contact pages.
   Their database content, legacy slugs and all other templates stay unchanged. */
body.page .mft-info-main {
  box-sizing: border-box;
  max-width: none !important;
  width: 100%;
  padding: clamp(2rem, 5vw, 4.75rem) 1.25rem clamp(3rem, 6vw, 5rem);
  margin-block: 0 !important;
}
body.page .mft-info-main > .mft-info-inner {
  box-sizing: border-box;
  width: min(100%, 800px);
  max-width: 800px !important;
  margin-inline: auto !important;
}
.mft-info-main .mft-info-kicker {
  margin: 0 0 .75rem;
  color: #526b57;
  font-size: .82rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .13em;
}
.mft-info-main .mft-info-title {
  max-width: 100% !important;
  margin: 0 0 1.7rem;
  color: var(--mft-ink);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.035em;
}
.mft-info-main .mft-info-copy,
.mft-info-main .mft-info-copy > * {
  max-width: 100% !important;
}
.mft-info-main .mft-info-copy {
  color: #393a34;
  font-size: clamp(1.05rem, 1.55vw, 1.2rem);
  line-height: 1.78;
  overflow-wrap: break-word;
}
.mft-info-main .mft-info-copy p {
  font-size: inherit;
  line-height: inherit;
  margin: 0 0 1.3rem;
}
.mft-info-main .mft-info-copy a {
  color: #36553e;
  text-underline-offset: .2em;
}
/* The historic About image is 150 x 150: keep native size, don't upscale it. */
.mft-about-main .mft-info-copy img.alignleft {
  float: left;
  display: block;
  width: 150px;
  max-width: 40%;
  height: auto;
  margin: .25rem 1.5rem 1rem 0;
  border-radius: 3px;
}
.mft-about-main .mft-info-copy::after {
  content: '';
  display: block;
  clear: both;
}
/* The legacy Contact page offers an email address, not a contact form. */
.mft-contact-main .mft-info-copy > p:last-child {
  box-sizing: border-box;
  background: #fffefa;
  border: 1px solid #e2e0d3;
  border-left: 4px solid #526b57;
  border-radius: 2px;
  padding: 1.1rem 1.3rem;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-weight: 600;
}
@media (max-width: 620px) {
  body.page .mft-info-main { padding: 2rem 1.1rem 3rem; }
  .mft-info-main .mft-info-title { margin-bottom: 1.35rem; }
  .mft-about-main .mft-info-copy img.alignleft {
    float: none;
    width: 150px;
    max-width: 100%;
    margin: 0 0 1.25rem;
  }
  .mft-contact-main .mft-info-copy > p:last-child { padding: 1rem; }
}


/* v3.9 — Three test advertising placements on single recipes. */
body.single-post .mft-recipe-shell {
  width: min(100% - 2rem, 1260px);
  max-width: 1260px !important;
  display: grid;
  grid-template-columns: minmax(0, 860px) minmax(220px, 300px);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}
body.single-post .mft-recipe-shell > .mft-recipe {
  min-width: 0;
}
body.single-post .mft-ad-sidebar {
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 0;
}
body.single-post .mft-ad-sidebar .wp-block-shortcode {
  margin: 0;
}
.mft-ad-stack {
  display: grid;
  gap: 1.5rem;
}
.mft-ad-placeholder {
  box-sizing: border-box;
  min-height: 210px;
  padding: 1.5rem;
  border: 1px dashed #aeb9a8;
  background: #f7f8f4;
  color: #526b57;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: .65rem;
}
.mft-ad-placeholder span {
  font: 600 .7rem/1.4 system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.mft-ad-placeholder strong {
  font: 500 1.3rem/1.3 Georgia, serif;
}
@media (max-width: 1020px) {
  body.single-post .mft-recipe-shell {
    display: block;
    width: calc(100% - 2.1rem);
    max-width: 860px !important;
  }
  body.single-post .mft-ad-sidebar {
    margin-top: 2rem;
  }
  .mft-ad-placeholder {
    min-height: 150px;
  }
}
@media print {
  body.single-post .mft-recipe-shell {
    display: block !important;
  }
  body.single-post .mft-ad-sidebar {
    display: none !important;
  }
}


/* MFT HOME DESIGN - THEME INTEGRATION START */
body.home.page { background: #faf7f1; color: #292c25; }
body.home.page .wp-site-blocks { background: #faf7f1; }
body.home.page main .wp-block-post-title { display: none !important; }
body.home.page main .wp-block-post-content { margin-top: 0 !important; }
body.home.page main .wp-block-post-content .wp-block-group.alignwide { box-sizing: border-box; width: min(1100px, calc(100vw - 40px)) !important; max-width: none !important; position: relative; left: 50%; transform: translateX(-50%); margin-left: 0 !important; margin-right: 0 !important; }
body.home.page main .wp-block-post-content .wp-block-group.alignwide .wp-block-heading.has-text-align-center { margin-left: auto; margin-right: auto; max-width: 740px; }
body.home.page main .wp-block-post-content .wp-block-group.alignwide .wp-block-paragraph.has-text-align-center { max-width: 740px; margin-left: auto; margin-right: auto; }
body.home.page main .wp-block-post-content .wp-block-group.alignwide p.has-text-align-center { max-width: 740px; margin-left: auto; margin-right: auto; }
body.home.page main .wp-block-post-content .wp-block-group.alignwide h2 { font-family: Georgia, serif; font-weight: 400; letter-spacing: -0.035em; line-height: 1.16; }
body.home.page main .wp-block-post-content .wp-block-group.alignwide h2.has-text-align-center { font-size: clamp(2.35rem, 4.7vw, 4.25rem); }
body.home.page main .wp-block-post-content .wp-block-group.alignwide p { line-height: 1.6; }
body.home.page main .wp-block-post-content .wp-block-group.alignwide .wp-block-query { width: 100% !important; max-width: none !important; }
body.home.page main .wp-block-post-content .wp-block-group.alignwide .wp-block-post-template { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)) !important; gap: 24px !important; width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; list-style: none; }
body.home.page main .wp-block-post-content .wp-block-group.alignwide .wp-block-post-template .wp-block-post { display: block !important; box-sizing: border-box; width: 100% !important; min-width: 0 !important; max-width: none !important; flex: none !important; margin: 0 !important; padding: 0 0 1rem; background: #fffefa; border: 1px solid #e7e1d5; overflow: hidden; overflow-wrap: break-word; }
body.home.page main .wp-block-post-content .wp-block-group.alignwide .wp-block-query .wp-block-post-title { display: block !important; visibility: visible !important; opacity: 1 !important; font-family: Georgia, serif; font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.28; margin: 1rem 0 0.5rem; padding: 0 1rem; }
body.home.page main .wp-block-post-content .wp-block-group.alignwide .wp-block-query .wp-block-post-title a { color: #292c25; text-decoration: none; }
body.home.page main .wp-block-post-content .wp-block-group.alignwide .wp-block-query .wp-block-post-excerpt { padding: 0 1rem; margin-top: 0; }
body.home.page main .wp-block-post-content .wp-block-group.alignwide .wp-block-query .wp-block-post-excerpt__excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.55; margin: 0; }
body.home.page main .wp-block-post-content .wp-block-group.alignwide .wp-block-query .wp-block-post-featured-image { margin: 0; }
body.home.page main .wp-block-post-content .wp-block-group.alignwide .wp-block-query .wp-block-post-featured-image img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
body.home.page main .wp-block-button__link { background: #526b57; color: #fff; border-radius: 2px; }
/* MFT HOME DESIGN - THEME INTEGRATION END */
