/* Minimal subset of provided styles */
:root{--brand:#ff5257;--on-brand:#fff}
*{margin:0;padding:0;box-sizing:border-box}
body{font-family:system-ui,-apple-system,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;line-height:1.6;color:#333;background:#fff}
.jpcx-container{max-width:1200px;margin:0 auto;padding:0 20px}
a{text-decoration:none;color:inherit}
.jpcx-navbar{background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.1);position:sticky;top:0;z-index:1000;padding:1rem 0}
.jpcx-navbar .jpcx-container{display:flex;justify-content:space-between;align-items:center}
.jpcx-logo h1{font-size:1.8rem;color:#ff5257;font-weight:700;cursor:pointer}
.jpcx-logo img{height:44px;width:auto;display:block}
.jpcx-nav-menu{display:flex;list-style:none;gap:2rem;align-items:center}
.jpcx-nav-menu li a{color:#333;font-weight:500;font-size:.95rem}
.jpcx-nav-menu li a.jpcx-search-icon svg{display:block}
.jpcx-nav-menu li a.jpcx-search-icon:hover svg{stroke:#ff5257}
.jpcx-nav-menu li a.jpcx-active{color:#ff5257;font-weight:700}
.jpcx-hamburger{display:none;flex-direction:column;gap:4px;cursor:pointer}
.jpcx-hamburger span{display:block;width:24px;height:2px;background:#000;border-radius:1px;transition:transform .2s,opacity .2s}
.jpcx-hero{background:#ff5257;color:#fff;padding:4rem 0;text-align:center}
.jpcx-hero h2{font-size:2rem;margin-bottom:1rem;font-weight:700}
.jpcx-hero-text{font-size:1.1rem;max-width:800px;margin:0 auto;line-height:1.8}
.jpcx-section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:2rem;padding-top:3rem}
.jpcx-categories{padding:2rem 0}
.jpcx-category-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.5rem;margin-bottom:3rem}
.jpcx-category-card{position:relative;border-radius:12px;overflow:hidden;cursor:pointer;height:250px;box-shadow:0 4px 12px rgba(0,0,0,.1)}
.jpcx-category-card img{width:100%;height:100%;object-fit:cover}
.jpcx-category-overlay{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(to top,rgba(0,0,0,.8),transparent);padding:2rem 1.5rem;color:#fff}
.jpcx-recipes{padding:2rem 0 4rem;background:#f8f9fa}
.jpcx-recipe-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:2rem}
.jpcx-recipe-card{background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 4px 12px rgba(0,0,0,.08)}
.jpcx-recipe-card img{width:100%;height:220px;object-fit:cover;aspect-ratio:auto;content-visibility:auto}
.jpcx-recipe-content{padding:1.5rem}
.jpcx-recipe-content h4{font-size:1.2rem;color:#333;margin-bottom:.75rem;font-weight:600}
.jpcx-footer{background:#2d3748;color:#fff;padding:4rem 0 2rem}
.jpcx-footer-content{display:grid;grid-template-columns:2fr 1fr 1fr 1.5fr;gap:3rem;margin-bottom:3rem;align-items:start}
.jpcx-footer-section h3{font-size:1.5rem;color:#ff5257;margin-bottom:1rem;font-weight:700}
.jpcx-footer-section h4{font-size:1.1rem;margin-bottom:1.5rem;color:#ff5257;font-weight:600}
.jpcx-footer-bio{color:#cbd5e0;line-height:1.6;margin-bottom:1.5rem;font-size:.95rem}
.jpcx-footer-links{display:flex;flex-direction:column;gap:.8rem}
.jpcx-footer-link{color:#cbd5e0;font-size:.9rem;transition:color .3s ease;padding:.2rem 0;display:block;line-height:1.4}
.jpcx-footer-link:hover{color:#ff5257}
.jpcx-footer-social{margin-top:1rem}
.jpcx-social-btn-footer{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;background:rgba(255, 82, 87,.1);border-radius:8px;color:#ff5257;transition:all .3s ease}
.jpcx-social-btn-footer:hover{background:#ff5257;color:#fff;transform:translateY(-2px)}
.jpcx-contact-email{color:#cbd5e0;font-weight:400;margin-bottom:.5rem}
.jpcx-contact-text{color:#cbd5e0;font-size:.9rem}
.jpcx-footer-bottom{border-top:1px solid rgba(255,255,255,.1);padding-top:2rem;text-align:center}
.jpcx-footer-bottom-content{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem}
.jpcx-footer-tagline{color:#ff5257;font-style:italic;font-size:.9rem}
@media (max-width:768px){.jpcx-footer-content{grid-template-columns:1fr;gap:2rem;text-align:center}.jpcx-footer-bottom-content{flex-direction:column;text-align:center}}
/* Categories page */
.jpcx-page-header{padding:3rem 0 2rem;text-align:center;border-bottom:1px solid #eee}
.jpcx-categories-section{padding:3rem 0 4rem}
.jpcx-categories-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:2rem}
.jpcx-category-item{background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 4px 12px rgba(0,0,0,.08);display:block}
.jpcx-category-image{position:relative;width:100%;height:220px;overflow:hidden}
.jpcx-category-image img{width:100%;height:100%;object-fit:cover;aspect-ratio:auto;content-visibility:auto}
.jpcx-category-content{padding:1.5rem}
/* Recipe page */
.jpcx-recipe-article .jpcx-article-header{padding:1rem 0 1.5rem;border-bottom:1px solid #eee}
.jpcx-breadcrumb{color:#6b7280;font-size:.9rem;margin-bottom:.5rem}
.jpcx-breadcrumb a{color:#ff5257}
.jpcx-article-header h1{font-size:2.1rem;margin:.2rem 0 0}
.jpcx-meta-row{display:flex;gap:1rem;align-items:center;color:#6b7280;margin-top:.5rem}
.jpcx-meta-row .jpcx-chip a{background:#f1f5f9;border-radius:999px;padding:.2rem .6rem;display:inline-block}
.jpcx-rating{color:#f59e0b}
.jpcx-share-row{margin-top:.6rem;color:#6b7280}

.jpcx-main-layout{display:grid;grid-template-columns:2fr 1fr;gap:2rem;padding:2rem 0}
.jpcx-left-column{min-width:0}
.jpcx-featured-image img{width:100%;height:auto;border-radius:12px;box-shadow:0 4px 12px rgba(0,0,0,.08)}

.jpcx-summary-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:1rem;margin:1.2rem 0}
.jpcx-summary-cards .jpcx-card{background:#fff;border-radius:12px;padding:1rem;box-shadow:0 4px 12px rgba(0,0,0,.06)}
.jpcx-summary-cards .jpcx-k{color:#6b7280;font-size:.85rem}
.jpcx-summary-cards .jpcx-v{font-weight:700;font-size:1.1rem}

.jpcx-ingredients{margin:1.8rem 0}
.jpcx-ingredients h2{margin-bottom:.6rem}
.jpcx-ing-section{margin:1rem 0}
.jpcx-ing-section h3{font-size:1rem;margin:.4rem 0}
.jpcx-ing-section ul{list-style:none;padding:0}
.jpcx-ing-section li{margin:.4rem 0}
.jpcx-ing-section input{margin-right:.5rem}

.jpcx-steps{margin:2rem 0}
.jpcx-steps h2{margin-bottom:.6rem}
.jpcx-steps ol{counter-reset:step}
.jpcx-steps li{list-style:none;margin:1rem 0}
/* Scope legacy step grid styles to the .jpcx-steps section only to avoid conflicting with recipe card steps */
.jpcx-steps .jpcx-step{display:grid;grid-template-columns:260px 1fr;gap:1rem;align-items:start}
.jpcx-steps .jpcx-step-media img{width:100%;height:auto;border-radius:10px}
.jpcx-steps .jpcx-step-content h3{margin:.2rem 0}

.jpcx-tips{margin:2rem 0}
.jpcx-tips h2{margin-bottom:.6rem}
.jpcx-tips ul{padding-left:1.2rem}

.jpcx-nutrition{margin:2rem 0}
.jpcx-nutri-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:.8rem}
.jpcx-nutri{background:#fff;border-radius:12px;padding:1rem;box-shadow:0 4px 12px rgba(0,0,0,.06);text-align:center}
.jpcx-n-k{color:#6b7280;font-size:.85rem}
.jpcx-n-v{font-weight:700;font-size:1.1rem}

.jpcx-tags{margin:2rem 0}
.jpcx-tag-list{display:flex;flex-wrap:wrap;gap:.6rem}
.jpcx-tag{display:inline-block;background:#eef2ff;color:#ff5257;border-radius:999px;padding:.25rem .7rem}

.jpcx-related{margin:2rem 0 3rem}
.jpcx-related-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1rem}
.jpcx-related-card{background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 4px 12px rgba(0,0,0,.06)}
.jpcx-related-card img{width:100%;height:160px;object-fit:cover}
.jpcx-rc-content{padding:0.8rem}

.jpcx-right-column{display:flex;flex-direction:column;gap:1rem}
.jpcx-featured-author-card{background:#f8f9fa;border-radius:12px;padding:1rem;box-shadow:0 4px 12px rgba(0,0,0,.08)}
.jpcx-author-row{display:flex;gap:.8rem;align-items:center}
.jpcx-avatar{width:48px;height:48px;border-radius:999px}
.jpcx-cta-row{display:flex;gap:.6rem;margin-top:.6rem}
.jpcx-btn{padding:.6rem .9rem;border-radius:8px;border:0;background:var(--brand,#ff5257);color:var(--on-brand,#fff);cursor:pointer}
.jpcx-btn.jpcx-ghost{background:rgba(255, 82, 87,.08);color:var(--brand,#ff5257)}

.jpcx-newsletter{background:#f8f9fa;border-radius:12px;padding:1rem;box-shadow:0 4px 12px rgba(0,0,0,.06)}
.jpcx-newsletter form{display:flex;gap:.5rem;margin-top:.4rem}
.jpcx-newsletter input{flex:1;padding:.6rem;border:1px solid #e5e7eb;border-radius:8px}

.jpcx-popular{background:#f8f9fa;border-radius:12px;padding:1rem;box-shadow:0 4px 12px rgba(0,0,0,.06)}
.jpcx-popular ul{list-style:none;padding:0;margin:0}
.jpcx-popular li{margin:.4rem 0}

@media (max-width: 980px){
  .jpcx-main-layout{grid-template-columns:1fr}
  .jpcx-step{grid-template-columns:1fr}
}

/* Mobile navbar dropdown */
@media (max-width: 768px){
  .jpcx-navbar .jpcx-container{position:relative}
  .jpcx-hamburger{display:flex}
  .jpcx-nav-menu{position:absolute;top:100%;left:0;right:0;background:#fff;flex-direction:column;gap:0;padding:.5rem 0;border-top:1px solid #eee;box-shadow:0 6px 18px rgba(0,0,0,.06);display:none}
  .jpcx-nav-menu li{padding:.5rem 1rem}
  .jpcx-nav-menu li a{display:block;padding:.35rem 0}
  .jpcx-nav-menu.jpcx-active{display:flex}
  body.jpcx-nav-open .jpcx-nav-menu{display:flex}
}

/* Admin forms */
label{display:flex;flex-direction:column;gap:.4rem;font-weight:600;color:#111}
label input, label textarea, label select{padding:.8rem 1rem;border:1.5px solid #dfe3e8;border-radius:12px;font-size:1rem;background:#fff;transition:border-color .2s, box-shadow .2s}
label input:focus, label textarea:focus, label select:focus{outline:none;border-color:#ff5257;box-shadow:0 0 0 3px rgba(255, 82, 87,.12)}
.jpcx-fieldset{border:1.5px solid #e5e7eb;border-radius:12px;padding:1.25rem;background:#f9fafb}
.jpcx-fieldset legend{font-weight:700;color:#ff5257;padding:0 .4rem}

/* Admin list tables */
.jpcx-about-card table{width:100%;border:1.5px solid #e5e7eb;border-radius:12px;border-collapse:separate !important;border-spacing:0 !important;overflow:hidden;background:#fff}
.jpcx-about-card thead th{background:#f9fafb;color:#111;font-weight:700;border-bottom:1px solid #e5e7eb;text-align:left;padding:10px}
.jpcx-about-card tbody td{border-bottom:1px solid #e5e7eb;padding:10px}
.jpcx-about-card tbody tr:last-child td{border-bottom:none}
.jpcx-about-card tbody tr:hover{background:#fafafa}

/* Admin editor layout */
.jpcx-admin-wide{max-width:1200px;margin:0 auto}
.jpcx-form{gap:16px}
.jpcx-form .jpcx-list{display:grid;gap:10px}
.jpcx-form .jpcx-sublist{display:grid;gap:8px}
.jpcx-form .jpcx-row{display:flex;gap:8px;align-items:flex-start}
.jpcx-form .jpcx-row input,.jpcx-form .jpcx-row textarea,.jpcx-form .jpcx-row select{flex:1}
.jpcx-form .jpcx-box{border:1.5px solid #e5e7eb;border-radius:10px;background:#fff;padding:12px;display:grid;gap:10px}
.jpcx-form .jpcx-box input{width:100%}
.jpcx-form textarea{min-height:80px}
.jpcx-btn{padding:.6rem .9rem;border-radius:10px;border:0;background:var(--brand,#ff5257);color:var(--on-brand,#fff);cursor:pointer;box-shadow:0 2px 6px rgba(255, 82, 87,.25);transition:transform .08s ease, box-shadow .2s}
.jpcx-btn:hover{box-shadow:0 4px 12px rgba(255, 82, 87,.35)}
.jpcx-btn:active{transform:translateY(1px)}
.jpcx-btn.jpcx-small{padding:.4rem .65rem;border-radius:8px;font-size:.92rem}
.jpcx-btn.jpcx-ghost{background:rgba(255, 82, 87,.08);color:var(--brand,#ff5257)}
.jpcx-btn.jpcx-ghost.jpcx-danger{background:#fff;color:#b91c1c;border:1.5px solid #fecaca}
.jpcx-btn.jpcx-ghost.jpcx-danger:hover{background:#fee2e2}

/* Home hero search */
.jpcx-home-search{max-width:860px;margin:1.25rem auto 0}
.jpcx-home-search .jpcx-searchbar{display:flex;gap:10px;align-items:center;justify-content:center}
.jpcx-home-search .jpcx-searchbar input[type=search]{flex:1;padding:.9rem 1rem;border:0;border-radius:12px;font-size:1rem;max-width:640px}
.jpcx-home-search .jpcx-searchbar button.jpcx-btn{background:#000}

/* Shared searchbar */
.jpcx-searchbar{display:flex;gap:10px;align-items:center}
.jpcx-searchbar input[type="text"], .jpcx-searchbar input[type="search"]{flex:1;padding:.8rem 1rem;border:1.5px solid #dfe3e8;border-radius:12px;font-size:1rem;background:#fff}
.jpcx-searchbar input:focus{outline:none;border-color:#ff5257; box-shadow:0 0 0 3px rgba(255, 82, 87,.12)}

/* Global ad placements */
.jpcx-ad-billboard{max-width:1200px;margin:0 auto 16px;padding:0 20px}
.jpcx-ad-billboard .jpcx-ad-inner{display:block;width:100%}

.jpcx-ad-sticky-footer{position:fixed;left:0;right:0;bottom:0;background:#fff;border-top:1px solid #e5e7eb;box-shadow:0 -4px 18px rgba(0,0,0,.12);z-index:9998;padding:8px}
.jpcx-ad-sticky-footer .jpcx-ad-inner{max-width:970px;margin:0 auto}
.jpcx-ad-sticky-footer .jpcx-ad-close{position:absolute;right:8px;top:8px;background:#000;color:#fff;border-radius:999px;width:28px;height:28px;display:flex;align-items:center;justify-content:center;border:none;cursor:pointer}

.jpcx-ad-left-rail{position:fixed;left:8px;top:120px;width:160px;z-index:9997;display:none}
@media (min-width: 1360px){.jpcx-ad-left-rail{display:block}}

.jpcx-ad-interstitial{position:fixed;inset:0;background:rgba(0,0,0,.6);display:flex;align-items:center;justify-content:center;z-index:10000}
.jpcx-ad-interstitial .jpcx-ad-interstitial-content{position:relative;background:#fff;border-radius:12px;max-width:640px;width:90%;padding:16px}
.jpcx-ad-interstitial .jpcx-ad-close{position:absolute;right:8px;top:8px;background:#000;color:#fff;border-radius:999px;width:28px;height:28px;display:flex;align-items:center;justify-content:center;border:none;cursor:pointer}
