/* Dinnru 0.2 */
.dinnru-page{max-width:760px;margin:0 auto;background:#fff;color:#242424;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.dinnru-hero{position:relative;margin:0 -18px}
.dinnru-hero-img{width:100%;max-height:520px;object-fit:cover;display:block}
.dinnru-fav{position:absolute;right:18px;top:18px;border:0;border-radius:50%;width:48px;height:48px;background:#fff;color:#bbb;font-size:26px;box-shadow:0 2px 10px rgba(0,0,0,.15);cursor:pointer}
.dinnru-fav.is-fav{color:#6f4bb8}
.dinnru-body{padding:22px 18px 60px}
.dinnru-rating-row{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #eee;padding-bottom:16px;margin-bottom:22px}
.dinnru-label{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#777;margin-bottom:5px}
.dinnru-stars button{background:none;border:0;padding:0 2px;font-size:25px;color:#ddd;cursor:pointer}
.dinnru-stars button.active{color:#6f4bb8}
.dinnru-average{text-align:right;display:flex;flex-direction:column;color:#777;font-size:12px}
.dinnru-average strong{font-size:18px;color:#6f4bb8}
.dinnru-category{font-size:12px;letter-spacing:.12em;color:#777;margin-top:10px}
.dinnru-page h1{font-size:42px;line-height:1.08;margin:8px 0 12px}
.dinnru-desc{font-size:17px;line-height:1.65;color:#666}
.dinnru-stats{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid #eee;border-bottom:1px solid #eee;margin:22px 0;padding:15px 0}
.dinnru-stats div{text-align:center;border-right:1px solid #eee}
.dinnru-stats div:last-child{border-right:0}
.dinnru-stats strong{display:block;font-size:21px}
.dinnru-stats span{display:block;font-size:12px;color:#777;text-transform:uppercase}
.dinnru-tags{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0}
.dinnru-tags span{border-radius:999px;background:#f3edf9;padding:7px 11px;font-size:12px}
.dinnru-tabs{display:flex;border-bottom:1px solid #ddd;margin-top:26px}
.dinnru-tabs button{flex:1;padding:14px 8px;border:0;background:none;text-transform:capitalize;font-weight:600;color:#888;border-bottom:3px solid transparent;cursor:pointer}
.dinnru-tabs button.active{color:#222;border-bottom-color:#6f4bb8}
.dinnru-panel{display:none;padding:24px 0}
.dinnru-panel.active{display:block}
.dinnru-section-head{display:flex;align-items:center;justify-content:space-between;gap:15px}
.dinnru-section-head h2,.dinnru-panel h2{margin:0 0 15px;font-size:24px}
.dinnru-section-head>span{border:1px solid #ddd;border-radius:999px;padding:8px 13px;font-size:14px}
.dinnru-ingredients{list-style:none;margin:0;padding:0}
.dinnru-ingredients li{display:flex;gap:12px;align-items:center;padding:14px 0;border-bottom:1px solid #eee}
.dinnru-check{width:25px;height:25px;border-radius:50%;background:#6f4bb8;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:14px;flex:0 0 25px}
.dinnru-shop{margin-top:18px;width:100%;border:0;border-radius:10px;padding:14px;background:#6f4bb8;color:#fff;font-weight:700;cursor:pointer}
.dinnru-method{padding-left:24px;margin:0}
.dinnru-method li{padding:12px 0 12px 8px;line-height:1.6}
.dinnru-nutrition{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.dinnru-nutrition div{background:#f7f7f7;border-radius:12px;padding:18px 8px;text-align:center}
.dinnru-nutrition strong{display:block;font-size:21px}
.dinnru-nutrition span{font-size:12px;color:#777}
.dinnru-notes{border-top:1px solid #eee;padding-top:24px;margin-top:5px}
.dinnru-add-note,.dinnru-save-note{border:1px solid #6f4bb8;background:#fff;color:#5b3a9d;border-radius:999px;padding:8px 14px;cursor:pointer}
.dinnru-save-note{background:#6f4bb8;color:#fff;margin-top:8px}
.dinnru-note{width:100%;min-height:110px;border:1px solid #ddd;border-radius:12px;padding:13px;box-sizing:border-box;font:inherit;display:block}
.dinnru-private{font-size:12px;color:#777}
@media(max-width:600px){
 .dinnru-body{padding:18px 15px 45px}.dinnru-hero{margin:0 -15px}.dinnru-page h1{font-size:34px}.dinnru-stats strong{font-size:17px}.dinnru-stats span{font-size:10px}.dinnru-nutrition{grid-template-columns:repeat(2,1fr)}
}

.dinnru-serving-control{display:flex;align-items:center;gap:7px;border:1px solid #ddd;border-radius:999px;padding:4px 7px;background:#fff;font-size:14px}.dinnru-serving-control button{border:0;background:#f1f1f1;border-radius:50%;width:30px;height:30px;font-size:20px;line-height:1;cursor:pointer}.dinnru-serving-control span{white-space:nowrap}

/* Dinnru 0.3 app shell */
body.dinnru-recipe-page .wp-block-template-part,
body.dinnru-recipe-page .wp-block-post-title,
body.dinnru-recipe-page .wp-block-post-featured-image,
body.dinnru-recipe-page .wp-block-post-author,
body.dinnru-recipe-page .wp-block-post-author-name,
body.dinnru-recipe-page .wp-block-post-author__content,
body.dinnru-recipe-page .wp-block-post-author__byline,
body.dinnru-recipe-page .wp-block-post-author__name,
body.dinnru-recipe-page .wp-block-post-date,
body.dinnru-recipe-page .wp-block-query,
body.dinnru-recipe-page .wp-block-post-navigation-link,
body.dinnru-recipe-page footer{display:none!important}
body.dinnru-recipe-page .wp-site-blocks{padding:0!important}
.dinnru-app-header{max-width:1040px;margin:0 auto;padding:20px 24px;display:flex;align-items:center;justify-content:space-between;gap:24px;border-bottom:1px solid #eee;background:#fff;box-sizing:border-box}
.dinnru-logo{font-size:30px;font-weight:800;letter-spacing:-.05em;color:#6f4bb8}
.dinnru-app-header nav{display:flex;gap:22px;flex-wrap:wrap;justify-content:flex-end}
.dinnru-app-header nav a{color:#4a3b63;text-decoration:none;font-size:14px;font-weight:600}
.dinnru-app-header nav a:hover{color:#6f4bb8}
.dinnru-page{box-shadow:0 10px 35px rgba(55,35,85,.06);border:1px solid #eee;border-top:0}
.dinnru-hero-img{max-height:560px;object-fit:cover}
.dinnru-extra-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.dinnru-extra-grid div{background:#f8f5fc;border:1px solid #eee7f7;border-radius:12px;padding:14px}
.dinnru-extra-grid span,.dinnru-time-info span{display:block;color:#777;font-size:12px;margin-bottom:5px}
.dinnru-extra-grid strong,.dinnru-time-info strong{font-size:18px;color:#2d2635}
.dinnru-time-info{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}
.dinnru-time-info div{padding:14px;border:1px solid #eee;border-radius:12px}
.dinnru-shop{background:#6f4bb8}
@media(max-width:700px){
 .dinnru-app-header{padding:16px;align-items:flex-start;flex-direction:column}
 .dinnru-app-header nav{justify-content:flex-start;gap:12px}
 .dinnru-extra-grid{grid-template-columns:repeat(2,1fr)}
}


/* Dinnru 0.3.4 layout cleanup */
body.dinnru-recipe-page {
  margin-top: 0 !important;
}
body.dinnru-recipe-page .wp-site-blocks {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
body.dinnru-recipe-page .wp-site-blocks > header:not(.dinnru-app-header),
body.dinnru-recipe-page header.wp-block-template-part,
body.dinnru-recipe-page .wp-block-post-author,
body.dinnru-recipe-page [class*="post-author"] {
  display: none !important;
}
body.dinnru-recipe-page main,
body.dinnru-recipe-page .wp-block-post-content,
body.dinnru-recipe-page .entry-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
body.dinnru-recipe-page .dinnru-app-header {
  margin-top: 0 !important;
}
body.dinnru-recipe-page .dinnru-page {
  width: 100%;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
body.dinnru-recipe-page .dinnru-hero {
  margin: 0 !important;
  width: 100%;
}
body.dinnru-recipe-page .dinnru-hero-img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto;
  display: block;
  margin: 0 !important;
}
/* Keep the core Dinnru colour identical across logo, ticks, ratings and active controls. */
.dinnru-logo,
.dinnru-stars button.active,
.dinnru-average strong,
.dinnru-fav.is-fav,
.dinnru-check,
.dinnru-shop,
.dinnru-tabs button.active {
  color: #6f4bb8;
}
.dinnru-check,
.dinnru-shop {
  background: #6f4bb8;
}
.dinnru-tabs button.active {
  border-bottom-color: #6f4bb8;
}


/* Dinnru 0.3.10 display cleanup */
.dinnru-ingredients li > span:not(.dinnru-check) strong {
  font-weight: 400 !important;
}
.dinnru-shop,
.dinnru-shop:hover,
.dinnru-shop:focus,
.dinnru-shop:active {
  background: #6f4bb8 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-decoration: none !important;
}


/* Dinnru 0.3.11: restore ingredient checks and remove theme byline/header gap */
body.dinnru-recipe-page .dinnru-check {
  color: #fff !important;
  background: #6f4bb8 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 25px !important;
  text-align: center !important;
  width: 25px !important;
  height: 25px !important;
  min-width: 25px !important;
  padding: 0 !important;
  opacity: 1 !important;
}
body.dinnru-recipe-page .dinnru-check::before {
  content: none !important;
}
body.dinnru-recipe-page .wp-block-post-author,
body.dinnru-recipe-page .wp-block-post-author-name,
body.dinnru-recipe-page .wp-block-post-author__name,
body.dinnru-recipe-page .wp-block-post-author__byline,
body.dinnru-recipe-page .wp-block-post-author__content,
body.dinnru-recipe-page .wp-block-post-author__avatar,
body.dinnru-recipe-page .wp-block-post-date,
body.dinnru-recipe-page .wp-block-post-terms,
body.dinnru-recipe-page [class*="post-author"],
body.dinnru-recipe-page [class*="post-byline"],
body.dinnru-recipe-page [class*="post-meta"] {
  display: none !important;
}
body.dinnru-recipe-page .wp-site-blocks {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
body.dinnru-recipe-page main {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
