/*
Theme Name: Banco Editorial
Author: Banco de Calorias
Description: A modern Portuguese health and nutrition magazine. Editorial layouts, forest green and citrus accents, responsive story grids and full Site Editor support. Uses existing posts, categories and featured images.
Version: 1.0.7
Requires at least: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: banco-editorial
Tags: blog, news, food-and-drink, full-site-editing, block-patterns, custom-colors, custom-logo, editor-style, featured-images, wide-blocks
*/

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { text-underline-offset: .2em; }
a, button, input { -webkit-tap-highlight-color: transparent; }
:where(a,button,input,textarea,select):focus-visible { outline: 3px solid #417b58; outline-offset: 5px; }
::selection { background: #d5ee83; color: #183e35; }
.wp-site-blocks > * { margin-block-start: 0; }
.bc-shell { width: min(1280px, calc(100% - 80px)); margin-inline: auto; }
.bc-header > *, .bc-main > *, .bc-footer > * { max-width: none !important; }
.bc-topline { min-height: 44px; border-bottom: 1px solid #d7ddd1; gap: 1rem; }
.bc-topline p { margin: 0; }
.bc-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .16em; line-height: 1.6; }
.bc-top-note { font-size: 11px; color: #5a6860; }
.bc-masthead { padding-block: 25px; gap: 32px; margin: 0; }
.bc-masthead .wp-block-site-title { font-size: clamp(28px, 3.6vw, 50px); font-weight: 750; line-height: 1.06; letter-spacing: -.065em; margin: 0; }
.wp-block-site-title a { text-decoration: none; }
.bc-header-search { width: 275px; flex-shrink: 0; }
.wp-block-search__inside-wrapper { border: 1px solid #d7ddd1; border-radius: 999px; padding: 5px; background: #fff; }
.wp-block-search__input { min-width: 0; width: 100%; border: 0; background: transparent; border-radius: 999px; padding: 8px 12px; font: inherit; font-size: 12px; color: #183e35; }
.wp-block-search__button { border: 0; border-radius: 999px; background: #183e35; color: #fff; margin-left: 3px; padding: 7px 10px; cursor: pointer; }
.wp-block-search__button svg { min-height: 24px; min-width: 24px; }
.bc-navigation { border-top: 1px solid #183e35; border-bottom: 1px solid #d7ddd1; min-height: 54px; margin: 0; gap: 18px; padding-block: 10px; }
.bc-navigation .wp-block-navigation { font-size: 13px; font-weight: 600; }
.bc-navigation .wp-block-navigation__container { column-gap: 28px; row-gap: 10px; }
.bc-nav-note { font-size: 9px; font-weight: 700; letter-spacing: .15em; white-space: nowrap; margin: 0; }
.bc-main { padding-bottom: 70px; }
.bc-intro { display: grid; grid-template-columns: 1.7fr 1fr; gap: 40px; align-items: end; padding-block: 46px 38px; }
.bc-intro > *, .bc-intro h1 { margin: 0; }
.bc-intro .bc-eyebrow { margin: 0 0 16px; }
.bc-display { font-size: clamp(38px, 4.5vw, 65px); letter-spacing: -.065em; line-height: 1.02; font-weight: 600; }
.bc-intro-copy { max-width: 310px !important; font-size: 14px; color: #5a6860; margin-bottom: 3px; justify-self: end; }
.bc-feature-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 38px; margin: 0; }
.bc-feature-grid > *, .bc-query-side { margin: 0; }
.bc-posts { list-style: none; margin: 0; padding: 0; }
.bc-posts li { min-width: 0; margin: 0; }
.bc-posts-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 38px 28px; }
.bc-card { margin: 0; }
.bc-media { position: relative; overflow: hidden; aspect-ratio: 3/2; border-radius: 10px; background: radial-gradient(ellipse at 80% 10%,#d5ee83 0,transparent 60%), linear-gradient(125deg,#dce7d4,#96b79e); }
.bc-media::before { content: ''; display: block; position: absolute; width: 50%; height: 125%; left: 32%; top: 5%; transform: rotate(35deg); border: 1px solid #ffffff80; border-radius: 50%; pointer-events: none; }
.bc-media .wp-block-post-featured-image { position: relative; margin: 0; height: 100%; }
.bc-media .wp-block-post-featured-image a { display: block; height: 100%; }
.bc-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.bc-card:hover .bc-media img { transform: scale(1.025); }
.bc-card-body { padding-top: 16px; }
.bc-kicker { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 1.65; margin: 0 0 10px; }
.bc-kicker a { text-decoration: none; }
.bc-card .wp-block-post-title { margin: 0; font-size: clamp(21px, 2vw, 27px); line-height: 1.17; letter-spacing: -.035em; font-weight: 600; overflow-wrap: anywhere; }
.bc-card .wp-block-post-title a { text-decoration: none; }
.bc-card .wp-block-post-title a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.bc-card-lead .wp-block-post-title { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(28px, 3vw, 42px); font-weight: 400; letter-spacing: -.045em; }
.bc-card-lead .bc-media { aspect-ratio: 16/10; }
.bc-card .wp-block-post-excerpt { margin-top: 12px; font-size: 13px; line-height: 1.65; color: #5a6860; }
.wp-block-post-excerpt__excerpt { margin: 0; }
.wp-block-post-excerpt__more-text:empty { display: none; }
.bc-date { font-size: 10px; color: #5a6860; margin-top: 15px; }
.bc-rail { border-left: 1px solid #d7ddd1; padding-left: 30px; }
.bc-rail-title { font-size: 13px; text-transform: uppercase; letter-spacing: .11em; margin: 0 0 20px; display: flex; align-items: center; gap: 9px; }
.bc-rail-title::before { content: ''; width: 8px; height: 8px; background: #719449; border-radius: 50%; }
.bc-posts-side { display: grid; gap: 22px; }
.bc-posts-side > li + li { padding-top: 22px; border-top: 1px solid #d7ddd1; }
.bc-card-side .bc-media { aspect-ratio: 16/8; }
.bc-card-side .wp-block-post-title { font-size: clamp(19px, 1.75vw, 24px); }
.bc-card-side .bc-card-body { padding-top: 12px; }
.bc-card-side .bc-kicker { margin-bottom: 6px; }
.bc-topics { background: #d5ee83; border-radius: 12px; padding: 32px 36px; margin-block: 50px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 26px; align-items: center; }
.bc-topics p { margin: 0 0 7px; }
.bc-topics h2 { margin: 0; font-size: 27px; font-weight: 500; letter-spacing: -.045em; }
.bc-topic-list { display: flex; flex-wrap: wrap; gap: 9px; list-style: none; padding: 0; margin: 0; }
.bc-topic-list li { margin: 0; }
.bc-topic-list a { display: inline-block; border: 1px solid #183e3550; border-radius: 99px; padding: 7px 16px; font-size: 12px; font-weight: 600; text-decoration: none; }
.bc-topic-list a:hover { background: #183e35; color: #fff; }
.bc-topic-list .children { list-style: none; padding-left: 10px; }
.bc-section-heading { padding-bottom: 22px; margin-bottom: 26px; border-bottom: 1px solid #183e35; gap: 16px; }
.bc-section-heading h2 { font-size: 34px; letter-spacing: -.05em; font-weight: 500; margin: 0; }
.bc-section-heading p { margin: 0; }
.wp-block-query-pagination { gap: 14px; margin-block: 44px 0; font-size: 13px; }
.wp-block-query-pagination a { text-decoration: none; }
.wp-block-query-pagination-numbers { display: flex; gap: 7px; flex-wrap: wrap; }
.page-numbers { padding: 7px 12px; border-radius: 99px; }
.page-numbers.current { background: #183e35; color: #fff; }
.bc-footer { padding-block: 44px 22px; border-top: 2px solid #183e35; }
.bc-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 50px; }
.bc-footer .wp-block-site-title { font-size: 30px; letter-spacing: -.06em; font-weight: 700; margin: 0; }
.bc-footer-description { font-family: Georgia,serif; font-size: 17px; margin-top: 10px; }
.bc-footer h2 { margin-top: 0; }
.bc-footer .wp-block-categories { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 12px; }
.bc-footer .wp-block-categories a { text-decoration: none; }
.bc-footer-bottom { border-top: 1px solid #d7ddd1; padding-top: 20px; margin-top: 40px; font-size: 10px; color: #5a6860; gap: 10px; }
.bc-footer-bottom p { margin: 0; }
.bc-listing, .bc-page, .bc-not-found { padding-top: 50px; }
.bc-page-title { font-size: clamp(36px, 5vw, 60px); margin: 0 0 32px; letter-spacing: -.05em; }
.bc-listing > .wp-block-term-description { margin-bottom: 35px; }
.bc-search-page { max-width: 600px !important; margin: 0 0 36px; }
.bc-article-head { max-width: 1060px !important; margin: 52px auto 40px; }
.bc-article-head > * { max-width: 900px; margin-inline: auto; }
.bc-article-head .bc-kicker, .bc-article-title { text-align: center; }
.bc-article-title { font-family: Georgia,serif; font-size: clamp(34px, 4.6vw, 62px); font-weight: 400; line-height: 1.08; letter-spacing: -.045em; margin-block: 18px 24px; overflow-wrap: anywhere; }
.bc-byline { justify-content: center; color: #5a6860; font-size: 12px; gap: 18px; margin-bottom: 32px; }
.bc-date-details { justify-content: center; gap: 6px; margin: 0; }
.bc-date-details p { margin: 0; }
.bc-modified-date { flex-basis: 100%; text-align: center; }
.bc-author-box { margin-block: 34px; padding: 24px; border: 1px solid #d7ddd1; border-radius: 10px; }
.bc-author-box .bc-eyebrow { margin: 0 0 10px; }
.bc-author-box .wp-block-post-author-name { font-size: 19px; font-weight: 600; margin: 0; }
.bc-author-box .wp-block-post-author-biography { font-size: 14px; color: #5a6860; margin-top: 12px; }
.bc-article-head > .wp-block-post-featured-image { max-width: none; margin-block: 30px 0; }
.bc-article-head img { border-radius: 12px; }
.bc-reading { max-width: 760px !important; margin-inline: auto; }
.bc-reading .wp-block-post-content { font-size: 18px; line-height: 1.85; overflow-wrap: anywhere; }
.wp-block-post-content h2 { font-size: clamp(27px, 3vw, 36px); margin-top: 2em; }
.wp-block-post-content h3 { font-size: 25px; margin-top: 1.8em; }
.wp-block-post-content blockquote { border-left: 4px solid #79984f; margin-inline: 0; padding: 12px 28px; font-family: Georgia,serif; font-size: 25px; background: #eef1e4; }
.wp-block-post-content :where(iframe,video) { max-width: 100%; }
.wp-block-post-content pre { overflow: auto; }
.wp-block-post-content .wp-block-table { overflow-x: auto; }
.wp-block-post-content .alignwide { width: 100%; }
.bc-tags { font-size: 12px; margin-top: 35px; }
.bc-post-navigation { border-block: 1px solid #d7ddd1; padding-block: 24px; margin-block: 38px; align-items: flex-start; gap: 30px; }
.bc-post-navigation > * { flex: 1; min-width: 0; font-size: 14px; }
.bc-comment { padding-block: 20px; border-bottom: 1px solid #d7ddd1; }
.wp-block-comments textarea, .wp-block-comments input:not([type=checkbox]):not([type=submit]) { max-width: 100%; border: 1px solid #d7ddd1; border-radius: 6px; padding: 10px; background: #fff; }
.wp-block-comments textarea { width: 100%; }
.wp-block-comments .submit { background: #183e35; color: #fff; padding: 12px 22px; border: 0; border-radius: 99px; cursor: pointer; }
.bc-not-found { padding-bottom: 90px; }
.bc-not-found .wp-block-search { margin-block: 30px; max-width: 520px; }
.bc-not-found > .bc-display { margin-block: 20px; }
@media (min-width: 1600px) { .bc-shell { width: min(1360px, calc(100% - 120px)); } }
@media (max-width: 1000px) {
 .bc-shell { width: calc(100% - 48px); }
 .bc-feature-grid { gap: 24px; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); }
 .bc-rail { padding-left: 22px; }
 .bc-topics { grid-template-columns: 1fr; }
 .bc-posts-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .bc-nav-note { display: none; }
}
@media (max-width: 650px) {
 .bc-shell { width: calc(100% - 36px); }
 .bc-topline { min-height: 36px; }
 .bc-topline .bc-eyebrow { font-size: 8px; }
 .bc-top-note { display: none; }
 .bc-masthead { display: block; padding-block: 21px; }
 .bc-masthead .wp-block-site-title { font-size: clamp(28px,8vw,43px); }
 .bc-header-search { width: 100%; margin-top: 18px; }
 .bc-navigation { min-height: 46px; }
 .bc-intro { grid-template-columns: 1fr; gap: 18px; padding-block: 32px; }
 .bc-intro-copy { max-width: 100% !important; justify-self: start; }
 .bc-feature-grid { grid-template-columns: 1fr; gap: 30px; }
 .bc-rail { border-left: 0; border-top: 1px solid #d7ddd1; padding: 24px 0 0; }
 .bc-card-side { display: grid; grid-template-columns: minmax(100px,.75fr) minmax(0,1.25fr); gap: 16px; }
 .bc-card-side .bc-media { aspect-ratio: 1; }
 .bc-card-side .bc-card-body { padding: 0; }
 .bc-card-side .wp-block-post-title { font-size: 18px; }
 .bc-card-side .bc-kicker { font-size: 9px; }
 .bc-card-side .bc-date { margin-top: 8px; }
 .bc-topics { padding: 26px 22px; margin-block: 35px; gap: 20px; }
 .bc-topics h2 { font-size: 25px; }
 .bc-section-heading .bc-eyebrow { display: none; }
 .bc-section-heading h2 { font-size: 30px; }
 .bc-posts-grid { grid-template-columns: 1fr; gap: 30px; }
 .bc-card-grid .wp-block-post-title { font-size: 26px; }
 .bc-footer-grid { grid-template-columns: 1fr; gap: 25px; }
 .bc-footer-bottom { display: block; }
 .bc-footer-bottom p + p { margin-top: 10px; }
 .bc-main { padding-bottom: 45px; }
 .bc-article-head { margin-top: 35px; }
 .bc-reading .wp-block-post-content { font-size: 17px; }
 .bc-post-navigation { flex-direction: column; }
 .bc-byline { gap: 10px; }
 .wp-block-navigation__responsive-container.is-menu-open { padding: 28px; background: #f7f7f0; color: #183e35; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
@media print { .bc-header-search, .bc-navigation, .bc-topline, .bc-footer, .wp-block-comments { display: none; } .bc-shell { width: 100%; } body { background: white; color: black; } }

/* Calorie Bank: two clear destinations, with comfortable touch targets. */
.bc-app-panel { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 32px; align-items: center; padding: clamp(24px,4vw,48px); margin: 0 0 48px; border-radius: 24px; background: #183e35; color: #fff; box-shadow: 0 18px 44px -30px #183e35; }
.bc-app-intro { display: flex; align-items: center; gap: 22px; min-width: 0; }
.bc-app-mark { display: block; flex: 0 0 68px; width: 68px; height: 68px; margin: 0; border-radius: 20px; background: #fff url("assets/images/calorie-bank-icon.png") center / contain no-repeat; font-size: 0 !important; transform: none; box-shadow: 0 6px 18px #0002; }
.bc-app-message > * { margin-block: 0; }
.bc-app-eyebrow { color: #d5ee83; font-size: 10px; font-weight: 700; letter-spacing: .18em; }
.bc-app-title { margin-block: 9px !important; color: #fff; font: 400 clamp(25px,2.6vw,36px)/1.12 Georgia,serif; letter-spacing: -.025em; }
.bc-app-copy { color: #e2e9e4; font-size: 14px; line-height: 1.6; }
.bc-app-links { min-width: 0; }
.bc-app-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.bc-app-actions .wp-block-button { margin: 0; }
.bc-app-actions .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; box-sizing: border-box; padding: 14px 20px; border: 1px solid #779287; border-radius: 14px; background: transparent; color: #fff; font: 600 13px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; text-decoration: none; transition: transform .18s ease, background-color .18s ease; }
.bc-app-actions .bc-app-download .wp-block-button__link { border-color: #d5ee83; background: #d5ee83; color: #183e35; }
.bc-app-actions .wp-block-button__link:hover { background: #ffffff12; transform: translateY(-2px); }
.bc-app-actions .bc-app-download .wp-block-button__link:hover { background: #e4f6b2; }
.bc-app-actions .wp-block-button__link:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.bc-app-note { margin: 12px 0 0; color: #cad9d0; font-size: 11px; }
@media (max-width: 1100px) { .bc-app-panel { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 650px) { .bc-app-intro { align-items: flex-start; gap: 16px; } .bc-app-mark { flex-basis: 48px; width: 48px; height: 48px; border-radius: 14px; font-size: 22px; } .bc-app-actions { flex-direction: column; align-items: stretch; } .bc-app-actions .wp-block-button__link { width: 100%; } .bc-app-panel { margin-bottom: 30px; border-radius: 18px; } }

.bc-article-ad { margin: 42px 0 12px; border: 1px solid #d7ddd1; border-radius: 20px; overflow: hidden; background: #fff; }
.bc-article-ad .bc-ad-label { margin: 0; padding: 14px 20px; color: #5a6860; font: 600 10px/1.4 system-ui,sans-serif; letter-spacing: .14em; }
.bc-article-ad .bc-ad-link { display: block; color: #183e35; text-decoration: none; }
.bc-ad-visual { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,220px); gap: 28px; align-items: center; padding: 28px; background: #e2f5ff; }
.bc-ad-copy { display: grid; gap: 20px; }
.bc-ad-copy strong { font: 600 15px/1.4 system-ui,sans-serif; }
.bc-ad-copy > span { font: 400 clamp(26px,4vw,38px)/1.15 Georgia,serif; }
.bc-ad-copy small { font: 14px/1.6 system-ui,sans-serif; }
.bc-article-ad .bc-ad-visual img { display: block; width: 100%; height: auto; margin: 0; border-radius: 24px; box-shadow: 0 16px 35px #163f5520; }
.bc-ad-caption { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 22px; background: #183e35; color: #fff; }
.bc-ad-caption strong { font: 400 24px/1.2 Georgia,serif; }
.bc-ad-cta { padding: 13px 18px; border-radius: 12px; background: #d5ee83; color: #183e35; font: 600 13px/1.4 system-ui,sans-serif; }
.bc-ad-link:hover .bc-ad-cta { background: #e4f6b2; }
.bc-article-ad .bc-ad-link:focus-visible { outline: 3px solid #417b58; outline-offset: -3px; }
.bc-article-ad .bc-ad-note { padding: 12px 20px; margin: 0; color: #5a6860; font: 12px/1.5 system-ui,sans-serif; }
@media (max-width: 650px) { .bc-ad-caption { display: grid; } .bc-ad-cta { text-align: center; } }
@media print { .bc-article-ad { display: none; } }
@media (max-width: 480px) { .bc-ad-visual { grid-template-columns: 1fr; padding: 22px; } .bc-ad-visual img { max-width: 220px; justify-self: center; } }
