/* Doce Lucro Receitas — front */
.dlr-toolbar{display:flex;flex-wrap:wrap;gap:.5rem;margin:1rem 0}
.dlr-btn{display:inline-block;padding:.5rem .9rem;border:1px solid #d6336c;border-radius:999px;background:#fff;color:#d6336c;font-size:.9rem;cursor:pointer;text-decoration:none}
.dlr-btn:hover,.dlr-btn.dlr-active{background:#d6336c;color:#fff}
.dlr-share-label{align-self:center;font-size:.9rem;opacity:.8}
.dlr-ficha-lucro table{border-collapse:collapse;width:100%}
.dlr-ficha-lucro th,.dlr-ficha-lucro td{border:1px solid #e5e5e5;padding:.5rem .75rem;text-align:left}
.dlr-estimativa{font-size:.9rem;opacity:.85}
.dlr-ing-check{margin-right:.5rem}
body.dlr-cook-mode .entry-content,body.dlr-cook-mode .post-content{font-size:1.3rem;line-height:1.9}
body.dlr-cook-mode{scroll-behavior:smooth}
.dlr-search-group{border:1px solid #eee;border-radius:12px;padding:1rem;margin:1rem 0}
.dlr-search-group h3{margin-top:0}
.dlr-missing{font-size:.9rem;opacity:.85}
#dlr-calc-form label{display:block;margin:.4rem 0}
#dlr-calc-form input{max-width:160px}
.dlr-calc-row{display:flex;flex-wrap:wrap;gap:.5rem;align-items:end;margin-bottom:.5rem}
.dlr-calc-result{border:1px solid #d6336c;border-radius:12px;padding:1rem;margin-top:1rem}
@media print{
  header,footer,nav,.dlr-toolbar,.dlr-save-panel,.comments-area,.sharedaddy,.sidebar{display:none!important}
  body{font-size:12pt}
}

/* ===== Painel pós-salvar com convite ao cadastro (v0.7.0) ===== */
.dlr-save-panel{position:relative;border:2px solid #d6336c;border-radius:12px;padding:1rem 2.5rem 1rem 1rem;background:#fff7ec;margin:1rem 0}
.dlr-save-panel p{margin:0 0 .75rem;color:#4a2418}
.dlr-save-panel .mc4wp-form{margin:0}
.dlr-save-panel-close{position:absolute;top:6px;right:10px;background:transparent;border:none;font-size:1.4rem;line-height:1;cursor:pointer;color:#4a2418;opacity:.7;padding:2px 4px}
.dlr-save-panel-close:hover{opacity:1}

/* Espaços de anúncio (ativados só quando liberados) */
.dlr-ad{margin:28px auto;text-align:center;max-width:100%;overflow:hidden}

/* Busca do hub: botao rosa da marca */
.wp-block-search__button{background:#d6336c;color:#fff;border:none;font-weight:700}
.wp-block-search__button:hover{background:#b92a5c}

/* ===== Design do hub — escopo: home, blog, arquivos (categorias/tags) e busca (v0.5.1) ===== */
body.blog .wp-block-post-template .wp-block-post, body.home .wp-block-post-template .wp-block-post, body.archive .wp-block-post-template .wp-block-post, body.search .wp-block-post-template .wp-block-post{background:#fff;border:1px solid #f3e0d2;border-radius:16px;overflow:hidden;box-shadow:0 2px 12px rgba(92,61,46,.07);padding-bottom:16px}
body.blog .wp-block-post-template .wp-block-post-featured-image, body.home .wp-block-post-template .wp-block-post-featured-image, body.archive .wp-block-post-template .wp-block-post-featured-image, body.search .wp-block-post-template .wp-block-post-featured-image{margin:0}
body.blog .wp-block-post-template .wp-block-post-featured-image img, body.home .wp-block-post-template .wp-block-post-featured-image img, body.archive .wp-block-post-template .wp-block-post-featured-image img, body.search .wp-block-post-template .wp-block-post-featured-image img{border-radius:0;display:block}
body.blog .wp-block-post-template .wp-block-post-title, body.home .wp-block-post-template .wp-block-post-title, body.archive .wp-block-post-template .wp-block-post-title, body.search .wp-block-post-template .wp-block-post-title{padding:14px 18px 0;font-size:1.2rem;line-height:1.3}
body.blog .wp-block-post-template .wp-block-post-title a, body.home .wp-block-post-template .wp-block-post-title a, body.archive .wp-block-post-template .wp-block-post-title a, body.search .wp-block-post-template .wp-block-post-title a{text-decoration:none;color:#4a2418}
body.blog main h2, body.home main h2, body.archive main h2, body.search main h2{color:#5c3d2e;font-weight:800}
body.blog .wp-block-search__input, body.home .wp-block-search__input, body.archive .wp-block-search__input, body.search .wp-block-search__input{border-radius:999px;border:2px solid #f0c3d0;padding:14px 22px;font-size:1.05rem}
body.blog .wp-block-search__button, body.home .wp-block-search__button, body.archive .wp-block-search__button, body.search .wp-block-search__button{border-radius:999px;padding:12px 30px}
body.blog ul.wp-block-post-template > li.wp-block-post, body.home ul.wp-block-post-template > li.wp-block-post, body.archive ul.wp-block-post-template > li.wp-block-post, body.search ul.wp-block-post-template > li.wp-block-post{background:#fff;border:2px solid #f3cfba;border-radius:18px;overflow:hidden;box-shadow:0 6px 18px rgba(92,61,46,.12);padding-bottom:16px;transition:transform .15s ease,box-shadow .15s ease}
body.blog .wp-block-post-template .wp-block-post-featured-image img, body.home .wp-block-post-template .wp-block-post-featured-image img, body.archive .wp-block-post-template .wp-block-post-featured-image img, body.search .wp-block-post-template .wp-block-post-featured-image img{aspect-ratio:4/3;object-fit:cover;width:100%;display:block}
@media (hover:hover){body.blog ul.wp-block-post-template > li.wp-block-post:hover, body.home ul.wp-block-post-template > li.wp-block-post:hover, body.archive ul.wp-block-post-template > li.wp-block-post:hover, body.search ul.wp-block-post-template > li.wp-block-post:hover{transform:translateY(-3px);box-shadow:0 12px 26px rgba(92,61,46,.16)}}
body.blog .wp-block-button__link, body.home .wp-block-button__link, body.archive .wp-block-button__link, body.search .wp-block-button__link{background-color:#d6336c !important;color:#ffffff !important;border:2px solid #d6336c}
body.blog .wp-block-button__link:hover, body.home .wp-block-button__link:hover, body.archive .wp-block-button__link:hover, body.search .wp-block-button__link:hover{background-color:#b8265a !important;border-color:#b8265a}
/* v0.5.1: o fundo rosa pertence aos botões, nunca ao contêiner */
body.blog .wp-block-buttons.has-background, body.home .wp-block-buttons.has-background, body.archive .wp-block-buttons.has-background, body.search .wp-block-buttons.has-background{background:transparent !important;padding:0 !important}
body .wp-block-template-part.header,body header.wp-block-template-part{border-bottom:3px solid #d6336c}


body .wp-block-template-part.header,body header.wp-block-template-part{border-bottom:3px solid #d6336c}



/* ===== Faixa de cadastro no topo das receitas (v0.6.0) ===== */
.dlr-topbar{position:sticky;top:0;z-index:999;background:#4a2418;color:#fff7ec;box-shadow:0 2px 10px rgba(74,36,24,.25)}
body.admin-bar .dlr-topbar{top:32px}
.dlr-topbar-inner{max-width:1200px;margin:0 auto;display:flex;align-items:center;gap:14px;padding:8px 16px}
.dlr-topbar-text{margin:0;font-size:.95rem;line-height:1.35;flex:1 1 auto}
.dlr-topbar-form{flex:0 1 auto}
.dlr-topbar-form .mc4wp-form{margin:0}
.dlr-topbar-form .mc4wp-form-fields{display:flex;gap:8px;align-items:center;margin:0}
.dlr-topbar-form .mc4wp-form-fields p{margin:0}
.dlr-topbar-form input[type="email"],.dlr-topbar-form input[type="text"]{border:none;border-radius:999px;padding:9px 16px;font-size:.95rem;min-width:230px;background:#fff;color:#333}
.dlr-topbar-form input[type="submit"],.dlr-topbar-btn{display:inline-block;background:#d6336c;color:#fff;border:none;border-radius:999px;padding:9px 20px;font-weight:700;font-size:.95rem;cursor:pointer;text-decoration:none;white-space:nowrap}
.dlr-topbar-form input[type="submit"]:hover,.dlr-topbar-btn:hover{background:#b92a5c;color:#fff}
.dlr-topbar .mc4wp-response{font-size:.85rem;margin-top:4px}
.dlr-topbar-close{background:transparent;border:none;color:#fff7ec;font-size:1.5rem;line-height:1;cursor:pointer;padding:2px 4px;opacity:.85;flex:0 0 auto}
.dlr-topbar-close:hover{opacity:1}
@media (max-width:640px){
  .dlr-topbar-inner{position:relative;flex-wrap:wrap;gap:6px;padding:10px 42px 10px 12px}
  .dlr-topbar-text{font-size:.88rem;flex:1 1 100%}
  .dlr-topbar-form{flex:1 1 100%}
  .dlr-topbar-form .mc4wp-form-fields{width:100%}
  .dlr-topbar-form .mc4wp-form-fields p:first-child{flex:1 1 auto}
  .dlr-topbar-form input[type="email"],.dlr-topbar-form input[type="text"]{min-width:0;width:100%;box-sizing:border-box}
  .dlr-topbar-close{position:absolute;top:4px;right:8px}
}
@media print{ .dlr-topbar{display:none!important} }

/* ===== Proteção de cópia nas receitas (v0.8.0) =====
 * A classe body.dlr-copy-protect só é adicionada em post único de
 * receita (nunca na página de impressão ?dlr_print=1): o texto da
 * receita não é selecionável — para guardar, o visitante usa
 * Compartilhar, Salvar ou Imprimir. Campos de formulário seguem
 * com seleção normal (cadastro, calculadora, comentários). */
body.dlr-copy-protect article,
body.dlr-copy-protect .entry-content,
body.dlr-copy-protect .post-content,
body.dlr-copy-protect .wp-block-post-content,
body.dlr-copy-protect .dlr-ficha-lucro{
  -webkit-user-select:none;
  -moz-user-select:none;
  user-select:none;
}
body.dlr-copy-protect input,
body.dlr-copy-protect textarea,
body.dlr-copy-protect select,
body.dlr-copy-protect [contenteditable]{
  -webkit-user-select:text;
  -moz-user-select:text;
  user-select:text;
}
