/*
Theme Name: Around the World Cooking
Theme URI: https://aroundtheworld.cooking
Description: Foodica PRO child theme for Around the World Cooking.
Author: Around the World Cooking
Template: foodica
Version: 1.0.6
Text Domain: aroundtheworld
*/

@import url('https://fonts.googleapis.com/css2?family=Literata:ital,opsz,wght@0,7..72,400;0,7..72,500;1,7..72,400&display=swap');

/* WPML switcher: emitted server-side at the beginning of the page. */
body > .atw-header-languages{position:absolute;right:clamp(16px,3vw,40px);top:10px;z-index:1000;display:flex;align-items:center;gap:9px;font-family:inherit;font-size:14px;line-height:1.5;white-space:nowrap;}
body > .atw-header-languages a,body > .atw-header-languages span{color:inherit;}
body > .atw-header-languages a{text-decoration:none;}
body > .atw-header-languages a:hover,body > .atw-header-languages a:focus-visible{text-decoration:underline;}
body > .atw-header-languages .atw-language-current{font-weight:700;}
body > .atw-header-languages .atw-language-divider{opacity:.45;}
body > .atw-header-languages .atw-language-icon{font-size:16px;}
@media(max-width:767px){body > .atw-header-languages{right:12px;top:5px;font-size:13px;gap:7px;}.site-header{padding-top:30px;}}


/* Header colors coordinated with the dark Culinary Atlas footer. */
body .site-header,
body .site-header .logo_wrapper_main,
body .site-header .main-navbar,
body .site-header .main-navbar > .inner-wrap,
body .site-header .navbar-header,
body .site-header .navbar-header-compact {
  background-color:#242a26!important;
  color:#f5f0e7!important;
}
body .site-header .navbar-brand-wpz > a,
body .site-header .navbar-brand-wpz a,
body .site-header .tagline,
body .site-header .main-navbar a,
body .site-header .navbar-header a,
body .site-header .sb-icon-search {
  color:#f5f0e7!important;
}
body .site-header .tagline{color:#d6c8af!important}
body .site-header .main-navbar{border-color:#555b55!important}
body .site-header .searchform input[type="search"]{
  background:#303832!important;
  color:#f5f0e7!important;
  border-color:#69716b!important;
}
body .site-header .searchform input[type="search"]::placeholder{color:#ded9ce!important}
body > .atw-header-languages{
  background:#fff!important;
  color:#242a26!important;
  border-color:#555b55!important;
}
body > .atw-header-languages a,
body > .atw-header-languages span{color:#242a26!important}

/* Contrasting, responsive Culinary Atlas footer. */
body .site-footer.atw-custom-footer{background:#242a26;color:#e3e3dc;padding:0;border:0;text-align:left}
.atw-custom-footer .atw-footer-inner{width:min(100% - 48px,1180px);margin:0 auto;padding:56px 0 22px}
.atw-custom-footer .atw-footer-columns{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) minmax(0,1fr);gap:clamp(24px,5vw,74px)}
.atw-custom-footer .atw-footer-columns > *{min-width:0}
.atw-custom-footer .atw-footer-logo{font-family:Neucha,cursive;font-size:clamp(26px,2.8vw,37px);font-weight:400;line-height:1.2;color:#f5f0e7!important;text-decoration:none!important}
.atw-custom-footer .atw-footer-tagline{color:#d6c8af;font-size:1.3rem;line-height:1.45;margin-top:6px}
.atw-custom-footer h2{font-size:1.4rem;line-height:1.35;color:#f5f0e7;margin:6px 0 19px}
.atw-custom-footer p{font-size:1.25rem;line-height:1.65;color:#e3e3dc;margin:16px 0 0}
.atw-custom-footer ul{list-style:none;margin:0;padding:0}
.atw-custom-footer li{margin:0 0 12px;padding:0}
.atw-custom-footer a:not(.atw-footer-logo){color:#e3e3dc!important;text-decoration-line:underline;text-decoration-style:dotted;text-underline-offset:.2em;text-decoration-thickness:1px}
.atw-custom-footer a:not(.atw-footer-logo):hover{color:#fff!important}
.atw-custom-footer .atw-footer-bottom{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;border-top:1px solid #555b55;margin-top:46px;padding-top:20px;font-size:.83rem;color:#d6c8af}
@media(max-width:720px){.atw-custom-footer .atw-footer-inner{width:min(100% - 36px,1180px);padding-top:42px}.atw-custom-footer .atw-footer-columns{grid-template-columns:1fr;gap:28px}.atw-custom-footer .atw-footer-bottom{margin-top:34px}}


/* Editorial prose throughout the site: posts, recipe articles and pages.
   Keep recipe-card content, navigation, widgets and interface labels sans-serif. */
body.single .entry-content > p,
body.page .entry-content > p,
body.single .entry-content > blockquote,
body.page .entry-content > blockquote,
body.single .entry-content > ul:not([class]),
body.page .entry-content > ul:not([class]),
body.single .entry-content > ol:not([class]),
body.page .entry-content > ol:not([class]),
body.single .entry-content > .wp-block-list,
body.page .entry-content > .wp-block-list {
  font-family:'Literata',Georgia,serif;
  font-size:18px;
  line-height:1.7;
  font-weight:400;
}

/* Recipe archive: use the available width for a two-column card grid. */
body.post-type-archive-atw_recipe .site-main,
body.post-type-archive-atw_recipe .content-area {
  width:100%!important;
  max-width:100%!important;
  float:none!important;
}
body.post-type-archive-atw_recipe #recent-posts {
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px;
}
body.post-type-archive-atw_recipe #recent-posts > article.atw_recipe {
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  float:none!important;
  min-width:0;
}
/* Match the homepage's latest-recipe cards: 4:3 cover photographs,
   titles, origins, and short excerpts in a three-column grid. */
body.post-type-archive-atw_recipe #recent-posts > article.atw_recipe .post-thumb {
  width:100%;max-width:none;margin:0 0 12px;float:none;
}
body.post-type-archive-atw_recipe #recent-posts > article.atw_recipe .post-thumb img {
  display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;
}
body.post-type-archive-atw_recipe #recent-posts > article.atw_recipe .entry-body {
  width:100%;padding:0;float:none;text-align:left;
}
body.post-type-archive-atw_recipe #recent-posts > article.atw_recipe h3.entry-title {
  font-size:24px!important;line-height:1.3;margin:0 0 10px;text-align:left;
}
body.post-type-archive-atw_recipe #recent-posts > article.atw_recipe .entry-content {
  display:block;margin-top:10px;
}
@media(max-width:900px) {
  body.post-type-archive-atw_recipe #recent-posts {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:600px) {
  body.post-type-archive-atw_recipe #recent-posts {grid-template-columns:1fr;gap:28px;}
}

/* Recipe archive: same card composition and spacing as the homepage Query Loop. */
body:is(.post-type-archive-atw_recipe,.tax-atw_origin) .atw-archive-wrap {max-width:1180px;width:calc(100% - 48px);margin:40px auto 70px;}
body:is(.post-type-archive-atw_recipe,.tax-atw_origin) .atw-recipes-archive {width:100%;max-width:none;float:none;}
body:is(.post-type-archive-atw_recipe,.tax-atw_origin) .atw-recipes-archive-title {margin:0 0 28px;font-size:32px;}
body:is(.post-type-archive-atw_recipe,.tax-atw_origin) .atw-recipes-archive ul.atw-archive-grid {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;column-gap:24px;row-gap:28px;list-style:none;padding:0;margin:0;width:100%;}
body:is(.post-type-archive-atw_recipe,.tax-atw_origin) .atw-archive-grid > li {min-width:0;margin:0;padding:0;list-style:none;}
body:is(.post-type-archive-atw_recipe,.tax-atw_origin) .atw-archive-grid .wp-block-post-featured-image {margin:0 0 14px;}
body:is(.post-type-archive-atw_recipe,.tax-atw_origin) .atw-archive-grid .wp-block-post-featured-image img {width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;display:block;}
body:is(.post-type-archive-atw_recipe,.tax-atw_origin) .atw-archive-grid .wp-block-post-title {font-size:24px;line-height:1.3;margin:0 0 10px;}
body:is(.post-type-archive-atw_recipe,.tax-atw_origin) .atw-archive-grid .wp-block-post-terms {margin:0 0 10px;}
body:is(.post-type-archive-atw_recipe,.tax-atw_origin) .atw-archive-grid .wp-block-post-excerpt {margin:0;}
body:is(.post-type-archive-atw_recipe,.tax-atw_origin) .atw-archive-grid .wp-block-post-excerpt p {margin:0;line-height:1.6;}
body:is(.post-type-archive-atw_recipe,.tax-atw_origin) .atw-archive-pagination {margin-top:40px;}
@media(max-width:900px){body:is(.post-type-archive-atw_recipe,.tax-atw_origin) .atw-recipes-archive ul.atw-archive-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}}
@media(max-width:600px){body:is(.post-type-archive-atw_recipe,.tax-atw_origin) .atw-archive-wrap{width:calc(100% - 32px);}body:is(.post-type-archive-atw_recipe,.tax-atw_origin) .atw-recipes-archive ul.atw-archive-grid{grid-template-columns:1fr!important;}}

/* Filter controls above the complete recipe archive. */
body.post-type-archive-atw_recipe .atw-archive-filters {display:flex;align-items:end;justify-content:center;flex-wrap:wrap;gap:18px;margin:0 0 34px;}
body.post-type-archive-atw_recipe .atw-archive-filters label {display:flex;flex-direction:column;gap:8px;flex:1 1 210px;max-width:300px;font-weight:600;}
body.post-type-archive-atw_recipe .atw-archive-filters select {width:100%;min-height:46px;padding:10px;border:1px solid #bbb;border-radius:6px;background:#fff;color:#222;font:inherit;}
body.post-type-archive-atw_recipe .atw-archive-filters button {min-height:46px;padding:10px 20px;border:0;border-radius:5px;background:#242a26;color:#fff;cursor:pointer;font:inherit;}
body.post-type-archive-atw_recipe .atw-archive-filters .atw-filter-reset {align-self:center;text-decoration:underline;}

/* Full-width, centered featured photographs on individual recipe articles. */
body.single-atw_recipe article.atw_recipe > .post-thumb {width:100%;max-width:100%;margin-left:auto;margin-right:auto;text-align:center;float:none;}
body.single-atw_recipe article.atw_recipe > .post-thumb > img {display:block;width:100%;max-width:100%;height:auto;margin-left:auto;margin-right:auto;float:none;object-fit:contain;}

