/* =========================================================
   CENTO RECIPES - PAC STYLE PUBLIC BROWSER
   Drop-in replacement for cento-recipes-minimal.css
   Accent: #cc0000
   ========================================================= */

:root{
  --cento-red:#cc0000;
  --cento-red-dark:#a80000;
  --cento-ink:#162033;
  --cento-muted:#607086;
  --cento-line:#d7e2f1;
  --cento-line-strong:#c4d3e8;
  --cento-panel:#ffffff;
  --cento-control:#eef6ff;
  --cento-control-hover:#e2efff;
  --cento-soft:#f8fbff;
}

/* Base */
.cento-browser,
.cento-browser *,
.cento-browser *::before,
.cento-browser *::after{
  box-sizing:border-box;
}

.cento-browser{
  width:100%;
  max-width:1600px;
  margin:0 auto 72px;
  padding:0;
  color:var(--cento-ink);
  font-family:inherit;
}

/* Top recipe title box */
.cento-browser__header{
  margin:0 0 18px;
  padding:28px 32px;
  border:1px solid var(--cento-line);
  border-radius:22px;
  background:#fff;
  box-shadow:0 16px 40px rgba(22,32,51,.07);
}

.cento-browser__eyebrow{
  margin:0 0 8px;
  color:var(--cento-red);
  font-size:13px;
  line-height:1;
  font-weight:900;
  letter-spacing:.18em;
  text-transform:uppercase;
}

.cento-browser__heading{
  margin:0;
  color:var(--cento-ink);
  font-size:clamp(36px,4.4vw,64px);
  line-height:.95;
  font-weight:900;
}

/* PAC-style toolbar shell */
.cento-filterbar{
  position:relative;
  z-index:20;
  display:flex;
  align-items:center;
  gap:12px;
  width:100%;
  margin:0 0 18px;
  padding:18px;
  border:1px solid var(--cento-line);
  border-radius:22px;
  background:#fff;
  box-shadow:0 14px 32px rgba(22,32,51,.06);
}

/* Desktop search wrapper */
.cento-search-wrap{
  position:relative;
  min-width:0;
}

.cento-search-wrap--desktop{
  flex:1 1 auto;
}

/* Mobile top hidden on desktop */
.cento-filterbar-mobiletop{
  display:none !important;
}

/* Filter panel is the visible desktop row */
.cento-filter-panel{
  display:flex;
  align-items:center;
  gap:12px;
  flex:0 0 auto;
}

/* Shared controls */
.cento-search,
.cento-search-desktop,
.cento-search-mobile,
.cento-filterbar input[type="search"],
.cento-select,
.cento-filter-toggle,
.cento-clear{
  height:58px !important;
  min-height:58px !important;
  margin:0 !important;
  border:1px solid var(--cento-line-strong) !important;
  border-radius:14px !important;
  background:#fff !important;
  color:var(--cento-ink) !important;
  box-shadow:none !important;
  outline:none !important;
  font-family:inherit !important;
  font-size:16px !important;
  line-height:1.2 !important;
  box-sizing:border-box !important;
  appearance:none !important;
  -webkit-appearance:none !important;
}

/* Search stays clean and white */
.cento-search,
.cento-search-desktop,
.cento-search-mobile,
.cento-filterbar input[type="search"]{
  display:block !important;
  width:100% !important;
  padding:0 54px 0 22px !important;
  font-weight:500 !important;
  text-align:left !important;
}

.cento-search::placeholder,
.cento-search-desktop::placeholder,
.cento-search-mobile::placeholder,
.cento-filterbar input[type="search"]::placeholder{
  color:#7b8494 !important;
  opacity:1;
}

.cento-search:hover,
.cento-search:focus,
.cento-search:active,
.cento-search-desktop:hover,
.cento-search-desktop:focus,
.cento-search-desktop:active,
.cento-search-mobile:hover,
.cento-search-mobile:focus,
.cento-search-mobile:active,
.cento-filterbar input[type="search"]:hover,
.cento-filterbar input[type="search"]:focus,
.cento-filterbar input[type="search"]:active{
  background:#fff !important;
  color:var(--cento-ink) !important;
  border-color:var(--cento-red) !important;
  box-shadow:0 0 0 3px rgba(204,0,0,.08) !important;
}

/* Selects look like PAC buttons */
.cento-select{
  min-width:168px !important;
  padding:0 44px 0 18px !important;
  background:
    linear-gradient(45deg, transparent 50%, var(--cento-ink) 50%),
    linear-gradient(135deg, var(--cento-ink) 50%, transparent 50%),
    linear-gradient(to right, transparent, transparent) !important;
  background-position:
    calc(100% - 22px) 50%,
    calc(100% - 16px) 50%,
    100% 0 !important;
  background-size:
    6px 6px,
    6px 6px,
    2.5em 2.5em !important;
  background-repeat:no-repeat !important;
  color:var(--cento-ink) !important;
  font-weight:800 !important;
  text-align:left !important;
  cursor:pointer !important;
}

.cento-select:hover,
.cento-select:focus{
  background-color:var(--cento-control) !important;
  border-color:var(--cento-red) !important;
  color:var(--cento-ink) !important;
  box-shadow:0 0 0 3px rgba(204,0,0,.08) !important;
}

/* Filter button */
.cento-filter-toggle{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-width:104px !important;
  padding:0 22px !important;
  background:var(--cento-control) !important;
  border-color:var(--cento-line-strong) !important;
  color:var(--cento-red) !important;
  font-weight:900 !important;
  cursor:pointer !important;
}

.cento-filter-toggle:hover,
.cento-filter-toggle:focus,
.cento-filter-toggle.is-filtered{
  background:var(--cento-control-hover) !important;
  border-color:var(--cento-red) !important;
  color:var(--cento-red) !important;
  box-shadow:0 0 0 3px rgba(204,0,0,.08) !important;
}

/* Small clear button, like search X */
.cento-clear{
  display:none;
  align-items:center !important;
  justify-content:center !important;
  width:44px !important;
  min-width:44px !important;
  height:44px !important;
  min-height:44px !important;
  padding:0 !important;
  border-radius:999px !important;
  background:#f3f6fb !important;
  border:1px solid var(--cento-line) !important;
  color:#718096 !important;
  font-size:22px !important;
  font-weight:800 !important;
  line-height:1 !important;
  cursor:pointer !important;
}

.cento-clear:hover,
.cento-clear:focus{
  background:#fff !important;
  border-color:var(--cento-red) !important;
  color:var(--cento-red) !important;
  box-shadow:0 0 0 3px rgba(204,0,0,.08) !important;
}

.cento-clear:active{
  transform:scale(.94);
}

/* Grid container box, same feeling as PAC */
.cento-results-shell{
  position:relative;
  z-index:1;
  padding:18px;
  border:1px solid var(--cento-line);
  border-radius:22px;
  background:#fff;
  box-shadow:0 14px 32px rgba(22,32,51,.06);
}

.cento-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
  width:100%;
  margin:0;
}

/* Cards */
.cento-cardlink{
  display:block;
  height:100%;
  color:inherit;
  text-decoration:none !important;
}

.cento-card{
  display:flex;
  flex-direction:column;
  height:100%;
  overflow:hidden;
  border:1px solid var(--cento-line);
  border-radius:16px;
  background:#fff;
  box-shadow:none;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.cento-cardlink:hover .cento-card{
  transform:translateY(-4px);
  border-color:rgba(204,0,0,.35);
  box-shadow:0 16px 34px rgba(22,32,51,.12);
}

.cento-thumb{
  display:block;
  width:100%;
  aspect-ratio:4/3;
  height:auto;
  object-fit:cover;
  background:#f3f4f6;
}

.cento-cardbody{
  flex:1 1 auto;
  padding:17px 18px 18px;
  background:#fff;
}

.cento-title{
  margin:0 0 10px;
  color:var(--cento-ink);
  font-size:18px;
  line-height:1.2;
  font-weight:900;
}

.cento-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px 12px;
  color:var(--cento-muted);
  font-size:14px;
  line-height:1.35;
  font-weight:800;
}

/* Loading / empty */
.cento-loading{
  opacity:.6;
  pointer-events:none;
}

.cento-loading-message,
.cento-grid > p{
  grid-column:1 / -1;
  margin:0;
  padding:18px;
  color:var(--cento-muted);
  font-weight:800;
}

/* Pagination */
.cento-pagination{
  grid-column:1 / -1;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:14px;
  margin-top:34px;
}

.cento-pagebtn{
  min-width:130px;
  min-height:48px;
  padding:0 22px;
  border:1px solid var(--cento-red) !important;
  border-radius:14px !important;
  background:#fff !important;
  color:var(--cento-red) !important;
  font-size:15px;
  font-weight:900;
  cursor:pointer;
  box-shadow:none !important;
}

.cento-pagebtn:hover,
.cento-pagebtn:focus{
  background:var(--cento-red) !important;
  color:#fff !important;
  border-color:var(--cento-red) !important;
}

.cento-pagebtn[disabled],
.cento-pagebtn:disabled{
  opacity:.35 !important;
  cursor:not-allowed;
}

.cento-pagelabel{
  color:var(--cento-muted);
  font-size:15px;
  font-weight:900;
}

/* Recipe card aliases used by older shortcodes */
.cento-recipe-index,
.cento-similar-grid,
.cento-latest-grid{
  display:grid;
  gap:16px;
}

.cento-recipe-index.columns-1,
.cento-similar-grid.columns-1,
.cento-latest-grid.columns-1{grid-template-columns:repeat(1,minmax(0,1fr));}
.cento-recipe-index.columns-2,
.cento-similar-grid.columns-2,
.cento-latest-grid.columns-2{grid-template-columns:repeat(2,minmax(0,1fr));}
.cento-recipe-index.columns-3,
.cento-similar-grid.columns-3,
.cento-latest-grid.columns-3{grid-template-columns:repeat(3,minmax(0,1fr));}
.cento-recipe-index.columns-4,
.cento-similar-grid.columns-4,
.cento-latest-grid.columns-4{grid-template-columns:repeat(4,minmax(0,1fr));}

.cento-recipe-card{
  display:block;
  height:100%;
  overflow:hidden;
  border:1px solid var(--cento-line);
  border-radius:16px;
  background:#fff;
  color:var(--cento-ink);
  text-decoration:none !important;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.cento-recipe-card:hover{
  transform:translateY(-4px);
  border-color:rgba(204,0,0,.35);
  box-shadow:0 16px 34px rgba(22,32,51,.12);
}

.cento-recipe-card__img{
  display:block;
  width:100%;
  aspect-ratio:4/3;
  height:auto;
  object-fit:cover;
  background:#f3f4f6;
}

.cento-recipe-card__body{
  padding:17px 18px 18px;
}

.cento-recipe-card__title{
  display:block;
  margin:0 0 10px;
  color:var(--cento-ink);
  font-size:18px;
  line-height:1.2;
  font-weight:900;
}

.cento-recipe-card__meta{
  color:var(--cento-muted);
  font-size:14px;
  line-height:1.35;
  font-weight:800;
}

/* Desktop overflow safety */
@media(max-width:1320px){
  .cento-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }

  .cento-select{
    min-width:150px !important;
  }
}

/* Tablet: PAC-style toolbar wraps cleanly without duplicate desktop controls */
@media(max-width:1180px){
  .cento-browser__header{
    padding:24px;
  }

  .cento-filterbar{
    display:block !important;
    padding:16px;
  }

  .cento-filterbar-mobiletop{
    display:grid !important;
    grid-template-columns:112px minmax(0,1fr);
    gap:12px;
    width:100%;
  }

  .cento-search-wrap--desktop,
  .cento-search-desktop{
    display:none !important;
  }

  .cento-filter-toggle,
  .cento-search-mobile{
    display:flex !important;
    width:100% !important;
    min-width:0 !important;
  }

  .cento-filter-panel{
    display:none !important;
    width:100%;
    margin-top:12px;
  }

  .cento-filter-panel.is-open{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
  }

  .cento-filter-panel .cento-select{
    width:100% !important;
    min-width:0 !important;
  }

  .cento-filter-panel .cento-clear{
    width:44px !important;
    min-width:44px !important;
    justify-self:start;
  }

  .cento-results-shell{
    padding:16px;
  }
}

/* Mobile */
@media(max-width:760px){
  .cento-browser{
    margin-bottom:50px;
  }

  .cento-browser__header{
    border-radius:18px;
    padding:22px;
  }

  .cento-filterbar{
    border-radius:18px;
  }

  .cento-filterbar-mobiletop{
    grid-template-columns:1fr;
  }

  .cento-filter-panel.is-open{
    grid-template-columns:1fr;
  }

  .cento-results-shell{
    border-radius:18px;
    padding:12px;
  }

  .cento-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
  }

  .cento-cardbody,
  .cento-recipe-card__body{
    padding:14px 15px 16px;
  }

  .cento-title,
  .cento-recipe-card__title{
    font-size:16px;
  }

  .cento-meta,
  .cento-recipe-card__meta{
    font-size:13px;
  }

  .cento-pagination{
    flex-direction:column;
  }
}

@media(max-width:520px){
  .cento-grid{
    grid-template-columns:repeat(2, minmax(0,1fr)) !important;
    gap:12px;
  }

  .cento-pagination{
    flex-direction:column;
  }
}


/* Optional changing image above the recipe browser title */
.cento-browser__hero{
  display:none;
  width:100%;
  min-height:260px;
  margin:0 0 -12px;
  border:1px solid var(--cento-line);
  border-radius:22px 22px 12px 12px;
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
  box-shadow:0 16px 40px rgba(22,32,51,.07);
}

.cento-browser__hero.has-image{
  display:block;
}

.cento-browser__hero.has-image + .cento-browser__header{
  position:relative;
  z-index:2;
  border-radius:0 0 22px 22px;
}

@media(max-width:760px){
  .cento-browser__hero{
    min-height:190px;
    border-radius:18px 18px 10px 10px;
  }

  .cento-browser__hero.has-image + .cento-browser__header{
    border-radius:0 0 18px 18px;
  }
}

/* Header-integrated filter bar */
.cento-browser__header{
  padding:28px 32px 24px;
}

.cento-browser__header .cento-filterbar{
  margin:28px 0 0;
  padding:26px 0 0;
  border:0;
  border-top:1px solid var(--cento-line);
  border-radius:0;
  background:transparent;
  box-shadow:none;
}

.cento-browser__hero.has-image + .cento-browser__header{
  border-radius:0 0 22px 22px;
}

@media(max-width:1180px){
  .cento-browser__header{
    padding:24px;
  }

  .cento-browser__header .cento-filterbar{
    margin-top:24px;
    padding:22px 0 0;
    border-top:1px solid var(--cento-line);
    background:transparent;
    box-shadow:none;
  }
}

@media(max-width:760px){
  .cento-browser__header{
    padding:22px;
  }

  .cento-browser__header .cento-filterbar{
    margin-top:22px;
    padding:20px 0 0;
  }
}


/* =========================================================
   RECIPE DETAIL PAGE - FINAL
   Shortcode: [cento_recipe_detail_page]
   ========================================================= */
.cento-recipe-detail-page,
.cento-recipe-detail-page *{
  box-sizing:border-box;
}

.cento-recipe-detail-page{
  width:100%;
  max-width:1500px;
  margin:0 auto 72px;
  padding:0;
  color:#162033;
  font-family:inherit;
}

/* Hide old automatic recipe renderer if it appears in addition to the new shortcode. */
body.single-cento_recipe article.cento-recipe:not(.cento-recipe-detail-page),
body.single-cento_recipe .cento-recipe:not(.cento-recipe-detail-page):not(.cento-recipes-browser){
  display:none !important;
}

.cento-recipe-detail-hero{
  width:100%;
  margin:0 0 -1px;
  overflow:hidden;
  border:1px solid #d7e2f1;
  border-bottom:0;
  border-radius:22px 22px 0 0;
  background:#fff;
  box-shadow:0 16px 40px rgba(22,32,51,.07);
  line-height:0;
}

.cento-recipe-detail-hero img{
  display:block;
  width:100%;
  height:clamp(260px, 30vw, 420px);
  object-fit:cover;
  object-position:center;
}

.cento-recipe-detail-header{
  margin:0 0 22px;
  padding:28px 32px 30px;
  border:1px solid #d7e2f1;
  border-top:0;
  border-radius:0 0 22px 22px;
  background:#fff;
  box-shadow:0 16px 40px rgba(22,32,51,.07);
}

.cento-recipe-detail__breadcrumb{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 18px;
  padding:0;
  border:0;
  color:#607086;
  font-size:15px;
  line-height:1.35;
  font-weight:800;
}

.cento-recipe-detail__breadcrumb a{
  color:#162033;
  text-decoration:none !important;
  font-weight:900;
}

.cento-recipe-detail__breadcrumb a:hover{
  color:#cc0000;
}

.cento-recipe-detail__breadcrumb strong{
  color:#607086;
  font-weight:800;
}

.cento-recipe-detail__eyebrow,
.cento-recipe-detail-eyebrow{
  display:none !important;
}

.cento-recipe-detail-title{
  max-width:980px;
  margin:0;
  color:#162033 !important;
  font-family:inherit !important;
  font-size:clamp(34px, 3.6vw, 52px) !important;
  line-height:1.03 !important;
  font-weight:900 !important;
  letter-spacing:-.035em !important;
}

.cento-recipe-detail-divider{
  width:100%;
  height:1px;
  margin:24px 0;
  background:#d7e2f1;
}

.cento-recipe-detail-summaryrow{
  display:grid;
  grid-template-columns:minmax(0, 1.15fr) minmax(360px, .85fr);
  gap:34px;
  align-items:start;
}

.cento-recipe-detail-summary{
  max-width:780px;
  margin:0;
  color:#4b5563;
  font-size:18px;
  line-height:1.55;
  font-weight:650;
}

.cento-recipe-detail-side{
  display:flex;
  flex-direction:column;
  gap:18px;
  align-items:stretch;
  min-width:0;
}

.cento-recipe-detail-meta{
  display:flex !important;
  align-items:center;
  justify-content:flex-start;
  flex-wrap:nowrap;
  gap:22px;
  width:100%;
  color:#2b3038;
  font-size:18px;
  line-height:1.25;
  font-weight:750;
  white-space:nowrap;
}

.cento-recipe-detail-meta span,
.cento-recipe-detail-meta div{
  display:inline-flex;
  align-items:center;
  gap:4px;
}

.cento-recipe-detail-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  width:100%;
}

.cento-recipe-detail-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:58px;
  padding:0 24px;
  border:0 !important;
  border-radius:14px !important;
  background:#cc0000 !important;
  color:#fff !important;
  font-family:inherit !important;
  font-size:18px !important;
  line-height:1 !important;
  font-weight:900 !important;
  cursor:pointer;
  box-shadow:none !important;
  transition:background .16s ease, transform .16s ease;
}

.cento-recipe-detail-btn:hover,
.cento-recipe-detail-btn:focus{
  background:#162033 !important;
  color:#fff !important;
  transform:translateY(-1px);
}

.cento-recipe-detail-card,
.cento-recipe-video-card,
.cento-recipe-similar-card{
  margin:0 0 22px;
  padding:32px;
  border:1px solid #d7e2f1;
  border-radius:22px;
  background:#fff;
  box-shadow:0 16px 40px rgba(22,32,51,.07);
}

.cento-recipe-detail-content{
  display:grid;
  grid-template-columns:minmax(260px, .9fr) minmax(0, 1.1fr);
  gap:0;
  align-items:start;
}

.cento-recipe-detail-section{
  min-width:0;
}

.cento-recipe-detail-section--ingredients{
  padding:0 36px 0 0;
}

.cento-recipe-detail-section--directions{
  padding:0 0 0 36px;
  border-left:1px solid #d7e2f1;
}

.cento-recipe-detail-section h2,
.cento-recipe-video-card h2,
.cento-recipe-similar-card h2{
  margin:0 0 22px;
  color:#162033 !important;
  font-family:inherit !important;
  font-size:clamp(28px, 2.4vw, 40px) !important;
  line-height:1.05 !important;
  font-weight:900 !important;
  letter-spacing:-.025em !important;
}

.cento-recipe-detail-ingredients{
  margin:0;
  padding-left:22px;
  color:#2b3038;
  font-size:17px;
  line-height:1.58;
  font-weight:500;
}

.cento-recipe-detail-ingredients li{
  margin:0 0 7px;
  padding-left:2px;
}

.cento-recipe-detail-ingredients a{
  color:#000 !important;
  text-decoration:none !important;
  font-weight:850;
}

.cento-recipe-detail-ingredients a:hover{
  color:#cc0000 !important;
}

.cento-recipe-detail-directions{
  color:#2b3038;
  font-size:17px;
  line-height:1.72;
  font-weight:500;
}

.cento-recipe-detail-directions p{
  margin:0 0 18px;
}

.cento-recipe-detail-directions p:last-child{
  margin-bottom:0;
}

.cento-recipe-video-card h2,
.cento-recipe-similar-card h2{
  text-align:center;
}

.cento-recipe-video-card .cento-video-wrap{
  max-width:1120px;
  margin:0 auto;
  overflow:hidden;
  border-radius:18px;
}

.cento-recipe-video-card iframe{
  display:block;
  width:100%;
  aspect-ratio:16 / 9;
  height:auto;
  border:0;
}

.cento-recipe-similar-card .cento-similar-grid{
  max-width:1160px;
  margin:0 auto;
}

.cento-recipe-similar-card .cento-card{
  border:1px solid #d7e2f1 !important;
  border-radius:18px !important;
  overflow:hidden;
  background:#fff;
  box-shadow:none !important;
}

.cento-recipe-similar-card .cento-cardbody{
  padding:18px 20px 22px;
}

.cento-recipe-similar-card .cento-title{
  margin:0;
  font-size:18px;
  line-height:1.25;
}

@media(max-width:1100px){
  .cento-recipe-detail-summaryrow{
    grid-template-columns:1fr;
    gap:22px;
  }

  .cento-recipe-detail-side{
    align-items:flex-start;
  }

  .cento-recipe-detail-actions{
    max-width:420px;
  }
}

@media(max-width:820px){
  .cento-recipe-detail-page{
    width:calc(100% - 40px);
    max-width:none;
    margin-left:auto;
    margin-right:auto;
    margin-bottom:50px;
    padding:0;
  }

  .cento-recipe-detail-hero{
    border-radius:18px 18px 0 0;
  }

  .cento-recipe-detail-hero img{
    height:230px;
  }

  .cento-recipe-detail-header{
    padding:22px;
    border-radius:0 0 18px 18px;
  }

  .cento-recipe-detail__breadcrumb{
    margin-bottom:18px;
    font-size:14px;
  }

  .cento-recipe-detail-title{
    font-size:clamp(30px, 8vw, 42px) !important;
    line-height:1.05 !important;
    letter-spacing:-.03em !important;
  }

  .cento-recipe-detail-divider{
    margin:22px 0;
  }

  .cento-recipe-detail-summary{
    font-size:16px;
    line-height:1.55;
  }

  .cento-recipe-detail-meta{
    flex-wrap:wrap;
    gap:10px 18px;
    font-size:16px;
    white-space:normal;
  }

  .cento-recipe-detail-actions{
    max-width:none;
    width:100%;
  }

  .cento-recipe-detail-btn{
    min-height:52px;
    font-size:16px !important;
  }

  .cento-recipe-detail-card,
  .cento-recipe-video-card,
  .cento-recipe-similar-card{
    padding:22px;
    border-radius:18px;
  }

  .cento-recipe-detail-content{
    grid-template-columns:1fr;
  }

  .cento-recipe-detail-section--ingredients{
    padding:0 0 28px;
    border-bottom:1px solid #d7e2f1;
  }

  .cento-recipe-detail-section--directions{
    padding:28px 0 0;
    border-left:0;
  }

  .cento-recipe-detail-section h2,
  .cento-recipe-video-card h2,
  .cento-recipe-similar-card h2{
    font-size:30px !important;
  }

  .cento-recipe-detail-ingredients,
  .cento-recipe-detail-directions{
    font-size:16px;
  }

  .cento-recipe-similar-card .cento-similar-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    gap:12px;
  }

  .cento-recipe-similar-card .cento-title{
    font-size:15px;
  }
}

@media(max-width:520px){
  .cento-recipe-detail-page{
    width:calc(100% - 32px);
    padding:0;
  }

  .cento-recipe-detail-hero img{
    height:200px;
  }

  .cento-recipe-detail-header{
    padding:20px 18px 22px;
  }

  .cento-recipe-detail-title{
    font-size:36px !important;
    line-height:1.04 !important;
    max-width:100%;
    overflow-wrap:break-word;
    word-break:normal;
  }

  .cento-recipe-detail-summaryrow{
    gap:18px;
  }

  .cento-recipe-detail-meta{
    justify-content:flex-start;
  }

  .cento-recipe-detail-actions{
    grid-template-columns:1fr 1fr;
    gap:10px;
  }

  .cento-recipe-detail-card,
  .cento-recipe-video-card,
  .cento-recipe-similar-card{
    padding:20px 18px;
  }

  .cento-recipe-video-card .cento-video-wrap{
    border-radius:14px;
  }
}

@media(max-width:420px){
  .cento-recipe-detail-page{
    width:calc(100% - 28px);
  }

  .cento-recipe-detail-hero img{
    height:190px;
  }

  .cento-recipe-detail-title{
    font-size:33px !important;
  }
}



/* =========================================================
   EMERGENCY FIXES - HIDE PRINT SHEET + MOBILE WIDTH
   ========================================================= */

/* This is the duplicate "raw recipe" that was showing under the footer.
   It is the hidden print sheet, so it must stay hidden on screen. */
.cento-hidden,
#cento-print-sheet,
#cento-share-sheet{
  display:none !important;
  visibility:hidden !important;
}

/* But allow it to exist inside the print popup/window when printing. */
.cento-print-wrap #cento-print-sheet,
.cento-print-wrap .cento-hidden{
  display:block !important;
  visibility:visible !important;
}

/* Make the recipe detail layout use the same mobile width feel as the recipe grid. */
@media(max-width:820px){
  .cento-recipe-detail-page{
    width:100% !important;
    max-width:100% !important;
    padding-left:0 !important;
    padding-right:0 !important;
    margin-left:auto !important;
    margin-right:auto !important;
  }

  .cento-recipe-detail-hero img{
    height:230px !important;
  }
}

@media(max-width:520px){
  .cento-recipe-detail-page{
    width:100% !important;
    max-width:100% !important;
    padding-left:0 !important;
    padding-right:0 !important;
  }

  .cento-recipe-detail-hero img{
    height:205px !important;
  }
}

@media(max-width:420px){
  .cento-recipe-detail-hero img{
    height:195px !important;
  }
}

/* =========================================================
   MOBILE EDGE SPACING MATCH
   ========================================================= */
@media(max-width:760px){

  .cento-browser{
    width:calc(100vw - 20px) !important;
    max-width:calc(100vw - 20px) !important;
    margin-left:calc(50% - 50vw + 10px) !important;
    margin-right:calc(50% - 50vw + 10px) !important;
	padding-left:0 !important;
    padding-right:0 !important;
  }

}
