/* Food1 polish layer (layered AFTER source.css).
   Goal: elevate every section with refined spacing, soft shadows, rounded media,
   image-zoom micro-interactions, editorial title rules, pill buttons and a warm
   paper canvas. All changes are additive - the source Pinch of Yum layout and
   class names are preserved untouched. */
:root{
  --poy-purple:#734060;
  --poy-gold:#edb654;
  --poy-ink:#32373c;
  --poy-muted:#979797;
  --poy-line:#ece8e2;
  --poy-paper:#faf7f2;
  --poy-card:#ffffff;
  --poy-ring:0 12px 30px rgba(50,55,60,.10);
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
body{background:var(--poy-paper)}
::selection{background:rgba(115,64,96,.16);color:var(--poy-purple)}
img{background:#f0ece6}

/* ---------- Header ---------- */
header.border-b{position:sticky;top:0;z-index:40;background:var(--poy-card);
  border-bottom:1px solid var(--poy-line);box-shadow:0 1px 0 rgba(115,64,96,.05)}
#global-navigation{min-height:66px}
#global-navigation ul a{position:relative;padding-bottom:5px;transition:color .2s ease}
#global-navigation ul a::after{content:"";position:absolute;left:0;right:0;bottom:0;
  height:2px;background:var(--poy-gold);transform:scaleX(0);transform-origin:left;
  transition:transform .25s ease}
#global-navigation ul a:hover::after,
#global-navigation ul a.text-yellow-500::after{transform:scaleX(1)}
.top-nav-cta a{transition:opacity .2s ease}
.top-nav-cta a:hover{opacity:.82}

/* ---------- Editorial section titles ---------- */
.sec-title{position:relative;padding-bottom:14px}
.sec-title::after{content:"";position:absolute;left:0;bottom:0;width:54px;height:3px;
  background:var(--poy-gold);border-radius:2px}
.sec-title.center::after{left:50%;transform:translateX(-50%)}
@media (max-width:767px){.sec-title::after{left:50%;transform:translateX(-50%)}}

/* ---------- Media (image zoom) ---------- */
.media{display:block;overflow:hidden;border-radius:14px;background:#efe9e2}
.media img{display:block;width:100%;transition:transform .6s cubic-bezier(.2,.8,.2,1)}
.media:hover img,
.post-card:hover .media img,
.post-item:hover .media img,
article:hover .media img{transform:scale(1.07)}

/* ---------- Listing card media: explicit, refined heights ----------
   The compiled Tailwind source.css omits several h-* utilities (e.g. h-32/40/52/56
   and every md:h-*), so the card images were rendering at native size and looked
   oversized. We pin heights here instead of relying on those missing classes. */
.news-card--row .media img{height:9rem;object-fit:cover}
.news-card--card .media img{height:12rem;object-fit:cover}
.news-card--hero .media img{height:14rem;object-fit:cover}
.news-card--cat .media img{height:6rem;object-fit:cover}
@media (min-width:768px){
  .news-card--row .media img{height:10rem}
  .news-card--hero .media img{height:15rem}
  .news-card--cat .media img{height:7rem}
  .news-card--card .media img{height:13rem}
}

/* ---------- You May Like as a uniform grid (宫格) ---------- */
.related-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
@media (min-width:768px){.related-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
.related-grid .news-card--cat{grid-column:auto;background:var(--poy-card);border:1px solid var(--poy-line);
  border-radius:14px;padding:10px;transition:transform .3s ease,box-shadow .3s ease}
.related-grid .news-card--cat:hover{transform:translateY(-3px);box-shadow:var(--poy-ring)}
.related-grid .news-card--cat .media{border-radius:10px}
.related-grid .news-card--cat .media img{height:auto;aspect-ratio:1/1;object-fit:cover}
.related-grid .news-card--cat h3{margin-top:.6rem;font-size:14px;line-height:1.4;color:var(--poy-ink);
  font-weight:600;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* ---------- Post cards ---------- */
.post-card{background:var(--poy-card);border:1px solid var(--poy-line);border-radius:16px;
  padding:14px;transition:transform .3s ease,box-shadow .3s ease}
.post-card:hover{transform:translateY(-4px);box-shadow:var(--poy-ring)}
.post-item{transition:background .2s ease;border-radius:12px}
.post-item:hover{background:rgba(255,255,255,.6)}

/* ---------- Category badge + read link ---------- */
.cat-badge{display:inline-block;font-family:'Helvetica Neue',Arial,sans-serif;font-size:11px;
  font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--poy-purple);
  background:rgba(115,64,96,.07);padding:4px 12px;border-radius:999px}
/* Card badge container (TEMPLATE.md 16.1 recommendation): align badges with
   title/summary left indent; supports multiple side-by-side badges. */
.card-tags{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.continue{display:inline-flex;align-items:center;gap:6px;color:var(--poy-gold);
  font-weight:700;letter-spacing:.12em;text-transform:uppercase;transition:gap .2s ease,color .2s ease}
.continue::after{content:"\2192";transition:transform .2s ease}
.continue:hover{gap:11px;color:var(--poy-purple)}
.continue:hover::after{transform:translateX(3px)}

/* ---------- Buttons ---------- */
.btn-pill{transition:transform .2s ease,box-shadow .2s ease}
.btn-pill:hover{transform:translateY(-2px);box-shadow:0 12px 24px rgba(115,64,96,.30)}

/* ---------- Sidebar widgets ---------- */
.sidebar-widget.sidebar-card{background:var(--poy-card);border:1px solid var(--poy-line);
  border-radius:16px;padding:18px 20px;box-shadow:0 6px 18px rgba(50,55,60,.04)}
.sidebar-widget.sidebar-card h4{border-bottom:1px solid var(--poy-line);color:var(--poy-ink);padding-bottom:.6rem}
.sidebar-widget.sidebar-card ul{list-style:none;margin:1rem 0 0;padding:0}
/* Tailwind flex/gap utilities are not compiled into source.css, so pin the
   image + title row layout here to guarantee a clean, comfortable gutter. */
.sidebar-widget.sidebar-card li{display:flex;align-items:flex-start;gap:1rem;margin-bottom:1.15rem}
.sidebar-widget.sidebar-card li:last-child{margin-bottom:0}
.sidebar-widget.sidebar-card li .shrink-0{flex:0 0 auto}
.sidebar-widget.sidebar-card img{width:4rem;height:4rem;object-fit:cover;border-radius:9px;background:#efe9e2}
.sidebar-widget.sidebar-card li > a:last-child{font-size:14px;line-height:1.55;color:var(--poy-ink);
  font-weight:500;transition:color .2s ease}
.sidebar-widget.sidebar-card li > a:last-child:hover{color:var(--poy-gold)}

/* ---------- Hero / collections ---------- */
.home-hero .grid{gap:1.5rem}
.sidebar-collections a{transition:all .2s ease;box-shadow:0 2px 8px rgba(50,55,60,.06)}
.sidebar-collections a:hover{box-shadow:0 6px 16px rgba(115,64,96,.22)}
.recipe-category a{transition:color .2s ease}

/* ---------- Detail page ---------- */
.food1-cover{border-radius:16px;box-shadow:0 14px 34px rgba(50,55,60,.12)}
.entry-header .entry-date{color:var(--poy-purple);letter-spacing:.16em}
.bc-nav{padding-top:1.1rem;padding-bottom:1.1rem}
.poy-bc-list{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem .55rem;margin:0;padding:.55rem 1rem;
  list-style:none;background:var(--poy-card);border:1px solid var(--poy-line);border-radius:14px;
  box-shadow:0 4px 14px rgba(50,55,60,.04);font-size:13px;letter-spacing:.03em;
  width:fit-content;max-width:100%;overflow:hidden}
.poy-bc-item{display:inline-flex;align-items:center;min-width:0}
.poy-bc-link{color:var(--poy-ink);text-decoration:none;transition:color .2s ease;white-space:nowrap;flex:none}
.poy-bc-link:hover{color:var(--poy-purple)}
.poy-bc-current{flex:1 1 auto;color:var(--poy-purple);font-weight:600}
.poy-bc-cur-text{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  color:inherit;font-weight:inherit}
@media (max-width:600px){
  .poy-bc-list{width:100%;gap:.3rem .45rem;padding:.5rem .85rem}
  .poy-bc-current{flex:1 1 100%}
  .poy-bc-cur-text{white-space:normal}
}

/* ---------- CTA / footer ---------- */
.foo-signup{border-radius:20px;box-shadow:0 16px 34px rgba(115,64,96,.22)}
.foo-social a{transition:transform .2s ease,background .2s ease}
.foo-social a:hover{transform:translateY(-3px)}
.footer .text-center .text-sm.text-gray-600{color:var(--poy-muted);letter-spacing:.02em}

/* ---------- CMS footer menu (bottom nav, flat page links) ---------- */
.footer-menu{background:var(--poy-card);border-top:1px solid var(--poy-line);padding:1.25rem 0}
.footer-menu .poy-fm-list{display:flex;flex-wrap:wrap;justify-content:center;gap:.6rem 2rem;
  list-style:none;margin:0 auto;padding:0 1rem;max-width:72rem}
.footer-menu .poy-fm-list a{color:var(--poy-ink);text-decoration:none;font-size:14px;
  letter-spacing:.02em;transition:color .2s ease}
.footer-menu .poy-fm-list a:hover{color:var(--poy-purple)}

/* ---------- Search ---------- */
.search-page form input{border-color:#e3ddd6;border-radius:999px 0 0 999px;
  transition:border-color .2s ease,box-shadow .2s ease}
.search-page form input:focus{outline:none;border-color:var(--poy-purple);
  box-shadow:0 0 0 3px rgba(115,64,96,.12)}
.search-page form button{border-radius:0 999px 999px 0;transition:transform .2s ease,box-shadow .2s ease}
.search-page form button:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(115,64,96,.28)}
.search-page nav a{border:1px solid var(--poy-line);border-radius:999px;padding:7px 16px;
  transition:all .2s ease}
.search-page nav a:hover{background:var(--poy-purple);color:#fff;border-color:var(--poy-purple)}

/* ---------- Comments ---------- */
.comment-form-container{background:var(--poy-card);border:1px solid var(--poy-line);
  border-radius:16px;padding:24px;margin-top:28px;box-shadow:0 6px 18px rgba(50,55,60,.04)}
.comment-form-container .form-title{font-family:'Arvo',Georgia,serif;font-size:22px;
  color:var(--poy-purple);margin-bottom:4px}
.comment-form-container .form-subtitle{color:var(--poy-muted);margin-bottom:14px;font-size:14px}
.comment-form-container .required-note{font-size:12px;color:var(--poy-muted);margin-bottom:16px}
.comment-form-container label{display:block;font-size:13px;font-weight:600;color:var(--poy-ink);margin-bottom:6px}
.comment-form-container input,.comment-form-container textarea{width:100%;border:1px solid #e3ddd6;
  border-radius:10px;padding:10px 12px;font-family:inherit;font-size:14px;background:#fff;
  transition:border-color .2s ease,box-shadow .2s ease}
.comment-form-container input:focus,.comment-form-container textarea:focus{outline:none;
  border-color:var(--poy-purple);box-shadow:0 0 0 3px rgba(115,64,96,.12)}
.comment-form-container .form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.submit-button{margin-top:16px;background:var(--poy-purple);color:#fff;border:none;
  border-radius:999px;padding:12px 28px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
  cursor:pointer;transition:transform .2s ease,box-shadow .2s ease}
.submit-button:hover{transform:translateY(-2px);box-shadow:0 12px 24px rgba(115,64,96,.30)}
.comment-hint{margin-top:10px;font-size:12px;color:var(--poy-muted)}
.comment-list{list-style:none;padding:0;margin:18px 0 0}
.comment-item{border-top:1px solid var(--poy-line);padding:14px 0}
.comment-head{display:flex;align-items:center;gap:10px;margin-bottom:6px}
.comment-author{font-weight:700;color:var(--poy-ink)}
.comment-member{font-size:11px;background:rgba(237,182,84,.18);color:#9a6b16;padding:2px 8px;border-radius:999px}
.comment-time{font-size:12px;color:var(--poy-muted)}
.comment-body{color:#4d4d4d;line-height:1.7}
.comment-flash.ok{color:#2e7d32;background:rgba(46,125,50,.08);padding:8px 12px;border-radius:8px}
.comment-flash.err{color:#c0392b;background:rgba(192,57,43,.08);padding:8px 12px;border-radius:8px}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion:reduce){
  *{transition:none!important}
  .media:hover img,.post-card:hover .media img{transform:none}
}

/* ===== merged from 1.0.20 polish: image heights / You-May-Like grid / sidebar gutter ===== */
/* ---------- Listing card media: explicit, refined heights ----------
   The compiled Tailwind source.css omits several h-* utilities (e.g. h-32/40/52/56
   and every md:h-*), so the card images were rendering at native size and looked
   oversized. We pin heights here instead of relying on those missing classes. */
.news-card--row .media img{height:9rem;object-fit:cover}
.news-card--card .media img{height:12rem;object-fit:cover}
.news-card--hero .media img{height:14rem;object-fit:cover}
.news-card--cat .media img{height:6rem;object-fit:cover}
@media (min-width:768px){
  .news-card--row .media img{height:10rem}
  .news-card--hero .media img{height:15rem}
  .news-card--cat .media img{height:7rem}
  .news-card--card .media img{height:13rem}
}

/* ---------- You May Like as a uniform grid (宫格) ---------- */
.related-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
@media (min-width:768px){.related-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
.related-grid .news-card--cat{grid-column:auto;background:var(--poy-card);border:1px solid var(--poy-line);
  border-radius:14px;padding:10px;transition:transform .3s ease,box-shadow .3s ease}
.related-grid .news-card--cat:hover{transform:translateY(-3px);box-shadow:var(--poy-ring)}
.related-grid .news-card--cat .media{border-radius:10px}
.related-grid .news-card--cat .media img{height:auto;aspect-ratio:1/1;object-fit:cover}
.related-grid .news-card--cat h3{margin-top:.6rem;font-size:14px;line-height:1.4;color:var(--poy-ink);
  font-weight:600;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* Tailwind flex/gap utilities are not compiled into source.css, so pin the
   image + title row layout here to guarantee a clean, comfortable gutter. */
.sidebar-widget.sidebar-card li{display:flex;align-items:flex-start;gap:1rem;margin-bottom:1.15rem}
.sidebar-widget.sidebar-card li:last-child{margin-bottom:0}
.sidebar-widget.sidebar-card li .shrink-0{flex:0 0 auto}
.sidebar-widget.sidebar-card img{width:4rem;height:4rem;object-fit:cover;border-radius:9px;background:#efe9e2}
.sidebar-widget.sidebar-card li > a:last-child{font-size:14px;line-height:1.55;color:var(--poy-ink);
  font-weight:500;transition:color .2s ease}
.sidebar-widget.sidebar-card li > a:last-child:hover{color:var(--poy-gold)}

/* ---------- Hero / collections ---------- */
.home-hero .grid{gap:1.5rem}
.sidebar-collections a{transition:all .2s ease;box-shadow:0 2px 8px rgba(50,55,60,.06)}
.sidebar-collections a:hover{box-shadow:0 6px 16px rgba(115,64,96,.22)}

