:root{--ink:#102536;--navy:#10354f;--navy2:#0c2b40;--blue:#195b83;--muted:#6d7d89;--line:#dce5ea;--soft:#f5f8fa;--orange:#f36d2b;--orangeSoft:#fff0e8;--green:#147957;--greenSoft:#eaf7f1;--red:#a83c36;--redSoft:#fff0ee;--amber:#9b6905;--amberSoft:#fff6df;--shadow:0 12px 32px rgba(16,53,79,.08);--radius:18px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);background:#fff}.container{width:min(1460px,calc(100% - 32px));margin:auto}.top-strip{background:var(--navy2);color:#fff;font-size:12px}.strip-inner{display:flex;justify-content:space-between;gap:16px;padding:8px 0}.strip-inner a{color:#fff}.site-header{position:sticky;top:0;z-index:60;background:rgba(255,255,255,.97);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}.header-inner{min-height:70px;display:flex;align-items:center;gap:22px}.brand{display:flex;align-items:center;gap:10px;color:inherit;text-decoration:none;white-space:nowrap}.brand-mark{width:42px;height:42px;border-radius:13px;background:var(--orangeSoft);display:grid;place-items:center;font-size:22px}.brand-copy{display:flex;flex-direction:column}.brand-copy strong{font-size:18px}.brand-copy small{color:var(--muted);font-size:11px}.main-nav{display:flex;gap:3px;margin-left:auto}.nav-btn,.mobile-nav{font:inherit;border:0;background:transparent;color:#42596b;cursor:pointer}.nav-btn{padding:10px 12px;border-radius:9px;font-size:13px}.nav-btn:hover,.nav-btn.active{background:#edf4f7;color:var(--navy);font-weight:800}.support-btn{text-decoration:none;color:var(--ink);border:1px solid var(--line);border-radius:10px;padding:9px 13px;font-size:13px}.notice{display:flex;gap:10px;align-items:flex-start;margin:16px 0;padding:11px 13px;border-radius:12px}.notice-warning{background:#fff9ed;border:1px solid #f0d9a8}.notice-icon{width:24px;height:24px;border-radius:50%;background:#fff;display:grid;place-items:center;color:#9a6500;font-weight:900;flex:0 0 auto}.notice p{margin:1px 0;font-size:13px;line-height:1.45}.view{display:none;padding-bottom:42px}.view.active{display:block}.eyebrow,.panel-kicker{font-size:11px;letter-spacing:.12em;font-weight:850;color:var(--orange)}.market-title{display:flex;align-items:flex-end;justify-content:space-between;gap:28px;padding:10px 0 14px}.market-title h1{font-size:clamp(38px,4.2vw,58px);line-height:.96;margin:6px 0 10px;letter-spacing:-.045em;font-weight:950;max-width:860px}.market-title h1 .hero-highlight{display:block;color:var(--orange);margin-top:3px}.market-title p{margin:0;color:var(--muted)}.market-meta{display:grid;grid-template-columns:repeat(3,auto);gap:8px}.market-meta div{min-width:112px;padding:10px 13px;border:1px solid var(--line);border-radius:12px;background:#fff}.market-meta span,.market-meta strong{display:block}.market-meta span{font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}.market-meta strong{margin-top:4px;font-size:19px}.market-layout{display:grid;grid-template-columns:245px minmax(520px,1.25fr) minmax(390px,.95fr);gap:12px;align-items:start}.filters-panel,.market-center,.map-panel{border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:var(--shadow)}.filters-panel{padding:12px;position:sticky;top:86px}.filter-heading{display:flex;align-items:center;justify-content:space-between;padding:3px 4px 10px}.filter-heading button{border:0;background:transparent;color:var(--blue);cursor:pointer;font-weight:700}.filter-block{display:grid;grid-template-columns:32px 1fr;gap:4px 8px;align-items:center;border-top:1px solid #edf1f3;padding:11px 2px}.filter-block>span:nth-child(2){font-size:12px;font-weight:800}.filter-number{grid-row:1/3;width:28px;height:28px;border-radius:8px;background:#eaf1f5;color:var(--navy);display:grid;place-items:center;font-weight:900}.filter-block input,.filter-block select{grid-column:2;width:100%;border:1px solid #cfdbe2;border-radius:9px;padding:10px;font:inherit;color:var(--ink);background:#fff}.locate-btn{width:100%;border:0;background:var(--orange);color:#fff;border-radius:10px;padding:12px;font-weight:850;cursor:pointer;margin-top:10px}.filter-note{font-size:10px;line-height:1.45;color:var(--muted);padding:9px 4px 2px}.market-center{padding:13px;min-width:0}.map-panel{padding:13px;position:sticky;top:86px}.panel-head{display:flex;align-items:end;justify-content:space-between;gap:14px;margin:2px 0 9px}.panel-head.compact{align-items:center}.panel-head h2{margin:2px 0 0;font-size:20px}.panel-head>span,.result-tools{font-size:11px;color:var(--muted)}.result-tools{display:flex;align-items:center;gap:8px}.result-tools select,.ghost{border:1px solid var(--line);background:#fff;border-radius:9px;padding:8px 10px;color:var(--ink)}.point-table{border:1px solid var(--line);border-radius:11px;overflow:hidden;margin-bottom:14px;max-height:210px;overflow-y:auto}.point-table-row{display:grid;grid-template-columns:1.2fr .8fr .8fr auto;gap:10px;padding:9px 11px;border-bottom:1px solid #edf1f3;align-items:center;font-size:12px}.point-table-row:last-child{border-bottom:0}.point-table-row.header{position:sticky;top:0;background:#f4f8fa;color:#617382;font-size:10px;text-transform:uppercase;letter-spacing:.05em;z-index:1}.point-table-row strong{font-size:12px}.point-table-row small{color:var(--muted)}.point-cheapest{font-weight:900;text-align:right}.price-head{margin-top:4px}.best-strip{display:flex;justify-content:space-between;gap:16px;align-items:center;background:linear-gradient(135deg,#103c34,#176b50);color:#fff;border-radius:12px;padding:11px 13px;margin-bottom:9px}.best-strip span,.best-strip small{opacity:.74;font-size:10px}.best-strip strong{font-size:24px;margin-left:8px}.price-list{border:1px solid var(--line);border-radius:11px;overflow:hidden}.price-row{display:grid;grid-template-columns:1.25fr .8fr .55fr .5fr;gap:12px;align-items:center;padding:10px 12px;border-bottom:1px solid #edf1f3;background:#fff}.price-row:last-child{border-bottom:0}.price-row.best{background:#f1fbf7}.point-name,.product-name{font-weight:850}.point-meta,.product-meta,.price-source,.row-distance{font-size:10px;color:var(--muted);margin-top:3px}.source-badge{display:inline-flex;padding:4px 7px;border-radius:999px;background:#edf3f6;font-size:9px;font-weight:900}.source-badge.MERCHANT{background:#e8f5ef;color:var(--green)}.source-badge.BUYER{background:#fff4d8;color:#7f5900}.source-badge.ADMIN{background:#ececff;color:#4d4d99}.price-value{text-align:right;font-size:20px;font-weight:900}.price-perkg{text-align:right;font-size:10px;color:var(--muted)}.freshness{font-size:9px;color:var(--green);margin-top:3px}.map-status{font-size:11px;color:var(--muted);margin-bottom:7px}#leafletMap{height:620px;border-radius:12px;border:1px solid var(--line);overflow:hidden}.map-note{font-size:10px;color:var(--muted);padding:8px 2px 0}.map-price-marker{background:var(--navy2);color:#fff;border:2px solid #fff;border-radius:999px;padding:5px 8px;font-size:10px;font-weight:900;box-shadow:0 4px 14px rgba(16,47,72,.28);white-space:nowrap}.maplibregl-popup-content{font-family:inherit;border-radius:12px;padding:12px 14px;max-width:290px}.map-popup-muted{font-size:11px;color:var(--muted);margin-top:3px}.map-popup-offers{margin:8px 0;display:grid;gap:4px}.map-popup-offers div{font-size:11px}.map-popup-actions{display:flex;gap:6px;margin-top:8px}.map-popup-actions a{text-decoration:none;border-radius:8px;padding:7px 9px;background:#eef4f7;color:var(--navy);font-size:10px;font-weight:800}.map-fallback{padding:18px;background:#fff8ef;border:1px solid #f1d5b8;border-radius:12px}.source-bar{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}.source-bar>div{background:#f4f8fa;border-radius:10px;padding:9px 11px;font-size:10px;color:#536878}.mobile-filter-toggle{display:none}.section-head{margin:28px 0 14px}.section-head h2{font-size:30px;margin:4px 0 6px}.section-head p{margin:0;color:var(--muted);max-width:850px}.catalog-filters{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;background:var(--soft);padding:14px;border-radius:14px}.field{display:grid;gap:6px}.field label{font-size:11px;font-weight:800;color:#536879}.field input,.field select,.field textarea{width:100%;border:1px solid #d1dce2;border-radius:10px;padding:10px 11px;background:#fff;color:var(--ink);font:inherit}.catalog-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:11px;margin-top:12px}.bottle-card,.portal-card,.method-grid article,.compatibility-box,.spain-box{border:1px solid var(--line);border-radius:15px;background:#fff;padding:17px}.bottle-placeholder{height:110px;border-radius:11px;background:#f3f7f9;display:grid;place-items:center;font-size:30px}.bottle-card h3{margin:12px 0 4px}.bottle-card{padding:0;overflow:hidden;transition:.18s ease}.bottle-card.selected{border-color:var(--orange);box-shadow:0 0 0 2px rgba(230,112,45,.12)}.bottle-select{display:block;width:100%;border:0;background:transparent;text-align:left;padding:17px;color:inherit;cursor:pointer;font:inherit}.bottle-select:focus-visible{outline:3px solid rgba(230,112,45,.25);outline-offset:-3px}.catalog-connection{margin-top:9px;padding:8px 9px;border-radius:8px;background:#eef4f7;color:#426071;font-size:10px;line-height:1.35}.bottle-card .sub{font-size:11px;color:var(--muted)}.bottle-data{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:11px}.bottle-data div{background:#f6f8f9;border-radius:8px;padding:7px}.bottle-data span{display:block;font-size:9px;color:var(--muted)}.bottle-data strong{font-size:11px}.status-chip{display:inline-flex;padding:6px 9px;border-radius:999px;background:var(--amberSoft);color:var(--amber);font-size:10px;font-weight:850;margin-top:10px}.status-chip.confirmed{background:#e9f7ef;color:#18794e}.status-chip.official{background:#e9f7ef;color:#18794e}.status-chip.reported{background:#eaf2ff;color:#245b9e}.status-chip.pending{background:var(--amberSoft);color:var(--amber)}.status-chip.incompatible{background:var(--redSoft);color:var(--red)}.catalog-summary{display:flex;align-items:baseline;gap:7px;margin:12px 0 0;padding:9px 12px;border:1px solid var(--line);border-radius:11px;background:#fff}.catalog-summary strong{font-size:20px}.catalog-summary span{font-weight:800}.catalog-summary small{margin-left:auto;color:var(--muted)}.compatibility-box{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-top:12px;background:#fbfcfd}.compatibility-box p{margin:5px 0;color:var(--muted)}.compatibility-detail{align-items:stretch}.compat-main{width:100%}.compat-title{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.compat-title .status-chip{margin-top:0}.compat-code{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;margin-top:12px;padding:10px 12px;border-radius:10px;background:#eef4f7}.compat-code span{font-size:10px;color:var(--muted);font-weight:800}.compat-code strong{font-size:16px}.compat-code small{color:#426071}.compat-list{margin-top:13px}.compat-list>div{display:flex;flex-wrap:wrap;gap:7px;margin-top:8px}.compat-bottle{display:inline-flex;padding:7px 9px;border:1px solid var(--line);border-radius:999px;background:#fff;font-size:10px}.compat-warning{font-size:10px}.compat-mode-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.compat-checker-card{border:1px solid var(--line);border-radius:16px;background:#fff;padding:18px;box-shadow:var(--shadow)}.compat-checker-card h3{margin:4px 0 14px;font-size:22px}.compat-checker-icon{font-size:28px;margin-bottom:7px}.compat-result{margin-top:14px}.compat-empty,.compat-error{padding:14px;border-radius:11px;background:var(--soft);color:var(--muted);font-size:12px;line-height:1.5}.compat-error{background:var(--redSoft);color:var(--red)}.compat-evidence{margin-top:10px;font-size:11px;color:#426071}.compat-note{margin-top:9px;padding:9px 10px;border-radius:9px;background:#fff8e8;color:#6e5718;font-size:11px;line-height:1.45}.compat-items{display:grid!important;grid-template-columns:1fr;gap:7px!important}.compat-item{display:flex;justify-content:space-between;align-items:center;gap:12px;border:1px solid var(--line);border-radius:10px;padding:9px 10px;background:#fff}.compat-item strong,.compat-item small{display:block}.compat-item strong{font-size:11px}.compat-item small{margin-top:2px;font-size:9px;color:var(--muted)}.compat-item .status-chip{margin-top:0;flex:0 0 auto}.compat-legend{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:14px}.compat-legend article{display:flex;gap:9px;border:1px solid var(--line);border-radius:12px;padding:12px;background:#fbfcfd}.compat-legend strong{font-size:11px}.compat-legend p{margin:3px 0 0;font-size:10px;color:var(--muted);line-height:1.45}.evidence-dot{width:10px;height:10px;border-radius:50%;margin-top:3px;flex:0 0 auto}.evidence-dot.official{background:var(--green)}.evidence-dot.reported{background:#3979c3}.evidence-dot.pending{background:#c68b13}.evidence-dot.incompatible{background:var(--red)}.compat-safety{margin-top:12px;border:1px solid #f0d9a8;border-radius:12px;background:#fff9ed;padding:12px 14px}.compat-safety p{margin:4px 0 0;color:#6d5b2c;font-size:11px;line-height:1.5}.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:12px}.portal-icon{font-size:25px}.portal-card h3{margin:10px 0 5px}.portal-card p{color:var(--muted);line-height:1.55}.primary{border:0;background:var(--orange);color:#fff;border-radius:10px;padding:11px 14px;font-weight:850;cursor:pointer}.button-link{text-decoration:none;display:inline-block}.portal-card .primary{margin-top:10px}.method-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.method-grid article>span{width:30px;height:30px;border-radius:8px;background:#eaf1f5;display:grid;place-items:center;font-weight:900}.method-grid h3{margin:10px 0 5px}.method-grid p{color:var(--muted);line-height:1.5;margin:0}.spain-box{margin-top:12px;background:#fbfcfd}.spain-box p{margin:5px 0;color:var(--muted)}.site-footer{background:#102c3d;color:#dce8ee;margin-top:26px}.footer-main{display:grid;grid-template-columns:1.3fr .7fr .7fr;gap:32px;padding:34px 0 22px}.site-footer h4{color:#fff;margin:0 0 9px}.site-footer p{font-size:12px;line-height:1.6}.footer-warning{color:#fff1ca}.footer-links{display:flex;flex-direction:column;gap:8px}.footer-links a{color:#dce8ee;text-decoration:none;font-size:12px}.footer-bottom{display:flex;justify-content:space-between;gap:18px;border-top:1px solid rgba(255,255,255,.12);padding:14px 0 20px;font-size:10px;color:#aebcc5}.modal{position:fixed;inset:0;z-index:120;background:rgba(8,29,43,.6);display:none;place-items:center;padding:18px}.modal.open{display:grid}.modal-card{width:min(520px,100%);background:#fff;border-radius:18px;padding:22px;position:relative}.modal-close{position:absolute;right:12px;top:10px;width:32px;height:32px;border:0;border-radius:50%;background:#edf2f4;font-size:20px}.modal-card h2{margin-top:0}.muted{color:var(--muted)}.full{width:100%;margin-top:10px}.evaluation-result{margin-top:12px}.evaluation-card{padding:11px 12px;border-radius:10px}.evaluation-card.ok{background:var(--greenSoft);color:var(--green)}.evaluation-card.review{background:var(--amberSoft);color:var(--amber)}.evaluation-card.danger{background:var(--redSoft);color:var(--red)}.cookie-banner{position:fixed;z-index:110;left:16px;right:16px;bottom:16px;max-width:900px;margin:auto;background:#fff;border:1px solid var(--line);box-shadow:0 18px 60px rgba(10,27,39,.2);border-radius:14px;padding:14px;display:none;justify-content:space-between;gap:15px;align-items:center}.cookie-banner.show{display:flex}.cookie-banner h3{margin:0 0 3px}.cookie-banner p{margin:0;color:var(--muted);font-size:11px}.cookie-actions{display:flex;gap:7px}.cookie-actions button{border:0;border-radius:8px;padding:9px 11px}.cookie-actions .accept{background:var(--navy);color:#fff}.mobile-bottom-nav{display:none}
@media(max-width:1180px){.market-layout{grid-template-columns:220px 1fr}.map-panel{grid-column:1/-1;position:static}.map-panel #leafletMap{height:460px}.market-center{min-width:0}.catalog-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:900px){body{padding-bottom:64px}.container{width:min(100% - 24px,1460px)}.header-inner{flex-wrap:wrap;gap:8px;padding:8px 0}.brand{order:1}.support-btn{order:2;margin-left:auto}.main-nav{order:3;width:100%;margin:0;overflow-x:auto;scrollbar-width:none;border-top:1px solid #edf1f3;padding-top:5px}.main-nav::-webkit-scrollbar{display:none}.nav-btn{white-space:nowrap}.market-title{align-items:flex-start;flex-direction:column}.market-meta{width:100%;grid-template-columns:repeat(3,1fr)}.market-meta div{min-width:0}.market-layout{grid-template-columns:1fr}.filters-panel{display:none;position:static}.filters-panel.open{display:block}.mobile-filter-toggle{display:block;width:100%;border:1px solid var(--line);background:#fff;border-radius:10px;padding:11px 12px;text-align:left;font-weight:850;margin-bottom:8px}.market-center{order:1}.map-panel{order:2}.source-bar,.footer-main,.catalog-grid,.grid-2,.method-grid{grid-template-columns:1fr 1fr}.mobile-bottom-nav{position:fixed;display:grid;grid-template-columns:repeat(5,1fr);left:0;right:0;bottom:0;z-index:80;background:#fff;border-top:1px solid var(--line);padding:max(5px,env(safe-area-inset-bottom)) 4px 5px;box-shadow:0 -8px 24px rgba(16,53,79,.08)}.mobile-nav{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:9px;padding:5px 1px}.mobile-nav span{font-size:16px}.mobile-nav.active{color:var(--orange);font-weight:900}.site-footer{margin-bottom:0}}
@media(max-width:620px){.top-strip{font-size:10px}.strip-inner{align-items:center}.strip-inner span{max-width:72%}.brand-mark{width:38px;height:38px}.brand-copy strong{font-size:17px}.brand-copy small{display:none}.support-btn{padding:8px 10px}.main-nav{display:none}.notice{margin:10px 0;padding:9px 10px}.notice p{font-size:11px}.market-title{padding:7px 0 10px}.market-title h1{font-size:31px}.market-title p{font-size:13px;line-height:1.45}.market-meta div{padding:8px}.market-meta strong{font-size:16px}.market-layout{gap:8px}.filters-panel,.market-center,.map-panel{border-radius:13px}.point-table{max-height:250px}.point-table-row{grid-template-columns:1fr auto}.point-table-row.header{display:none}.point-table-row>div:nth-child(2),.point-table-row>div:nth-child(3){display:none}.point-cheapest{font-size:13px}.panel-head{align-items:flex-start}.panel-head h2{font-size:18px}.result-tools{flex-direction:column;align-items:flex-end}.best-strip{align-items:flex-start;flex-direction:column;gap:4px}.best-strip strong{margin-left:0}.price-list{border:0;display:grid;gap:8px}.price-row{grid-template-columns:1fr 1fr;border:1px solid var(--line);border-radius:12px;padding:12px}.price-row>div:nth-child(3){grid-column:1}.price-row>div:nth-child(4){grid-column:2;grid-row:2;text-align:right}.price-value,.price-perkg{text-align:right}.source-bar,.footer-main,.catalog-grid,.grid-2,.method-grid,.catalog-filters{grid-template-columns:1fr}.source-bar>div{font-size:9px}#leafletMap{height:390px}.map-panel{scroll-margin-top:90px}.footer-bottom{flex-direction:column}.cookie-banner{flex-direction:column;align-items:stretch}.cookie-actions{justify-content:flex-end}.compatibility-box{align-items:flex-start;flex-direction:column}.section-head h2{font-size:26px}}

.map-actions{display:flex;gap:7px;align-items:center}.map-actions .ghost{cursor:pointer;font-weight:800}.map-actions .ghost.location-active{background:#e9f7ef;border-color:#a8d7c2;color:var(--green)}.user-location-marker{width:18px;height:18px;border-radius:50%;background:#1677ff;border:3px solid #fff;box-shadow:0 0 0 6px rgba(22,119,255,.18),0 3px 10px rgba(16,53,79,.3)}.map-location-note{font-size:10px;color:var(--green);font-weight:800;margin-top:5px}
@media(max-width:620px){.map-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}.panel-head.compact{align-items:stretch;flex-direction:column}.map-actions .ghost{width:100%;padding:10px 8px}}

.directions-chooser{align-items:end}.directions-sheet{width:min(520px,100%);background:#fff;border-radius:20px 20px 0 0;padding:18px 18px max(18px,env(safe-area-inset-bottom));position:relative;margin:auto auto 0}.directions-handle{width:44px;height:5px;border-radius:999px;background:#d5dde2;margin:0 auto 14px}.directions-sheet h2{margin:3px 0 5px}.directions-apps{display:grid;gap:9px;margin-top:16px}.directions-app{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink);border:1px solid var(--line);border-radius:13px;padding:13px;background:#fff}.directions-app span{width:36px;height:36px;border-radius:10px;background:#f2f6f8;display:grid;place-items:center;font-weight:900}.directions-app:hover{background:#f7fafb}.directions-note{font-size:10px;color:var(--muted);line-height:1.45;margin:12px 2px 0}
@media(max-width:900px){
  .market-layout .map-panel{display:none}
}

.directions-app[hidden]{display:none!important}
@media(max-width:900px){.directions-sheet{max-height:78vh;overflow:auto}.directions-app{min-height:58px;font-size:15px}}

/* V0.5.7 — Fase 1: hierarquia visual e revisão PT-PT */
body{background:#f3f7f9}
main{background:linear-gradient(180deg,#f7fafb 0,#fff 430px)}
.site-header{box-shadow:0 5px 18px rgba(16,53,79,.05)}
.support-btn{background:var(--orangeSoft);border-color:#ffd8c4;color:#8a3f17;font-weight:800}
.notice-warning{box-shadow:0 6px 18px rgba(155,105,5,.05)}
.market-title{background:linear-gradient(135deg,#eef6f9,#fff8f1);border:1px solid #dbe8ee;border-radius:18px;padding:18px 20px;margin:12px 0 14px}
.market-meta div{background:rgba(255,255,255,.88);border-color:#cfdee5;box-shadow:0 4px 12px rgba(16,53,79,.04)}
.filters-panel{background:linear-gradient(180deg,#edf5f8,#f8fbfc);border-color:#bcd0da;box-shadow:0 14px 34px rgba(16,53,79,.11)}
.filter-heading{border-bottom:1px solid #cadbe3;margin-bottom:2px}
.filter-heading strong{font-size:14px}
.filter-number{background:var(--navy);color:#fff;box-shadow:0 4px 10px rgba(16,53,79,.15)}
.filter-block input,.filter-block select{background:#fff;border-color:#bfcfd8}
.filter-block input:focus,.filter-block select:focus{outline:3px solid rgba(243,109,43,.14);border-color:var(--orange)}
.mobile-filter-toggle{background:linear-gradient(135deg,#fff1e8,#fff);border-color:#f5c8b1;color:#9a431a;box-shadow:0 8px 20px rgba(243,109,43,.08)}
.market-center{border-color:#cfdde4}
.panel-head{border-bottom:1px solid #e3ebef;padding-bottom:8px}
.panel-kicker{display:inline-block;background:var(--orangeSoft);padding:4px 7px;border-radius:999px}
.point-table{border-color:#cad9e0}
.point-table-row.header{background:#eaf2f6;color:#405c6d}
.point-table-row:nth-child(even):not(.header){background:#fbfdfe}
.price-list{background:#fff}
.price-row{border-color:#e1e9ed}
.price-row:hover{background:#f8fbfc}
.price-row.best{background:linear-gradient(90deg,#edf9f4,#f8fcfa);border-left:4px solid var(--green)}
.best-strip{box-shadow:0 10px 24px rgba(20,121,87,.14)}
.source-bar>div{border:1px solid #dce8ed;background:#eef5f8}
#catalog,#contribute,#methodology{background:#fff;border:1px solid #d8e5ea;border-radius:18px;padding:22px;margin-top:12px;box-shadow:var(--shadow)}
.catalog-filters{background:#edf5f8;border:1px solid #d1e0e7}
.bottle-card,.portal-card,.method-grid article{box-shadow:0 7px 18px rgba(16,53,79,.05)}
.portal-card:first-child{border-top:4px solid var(--blue)}
.portal-card:last-child{border-top:4px solid var(--orange)}
.method-grid article{background:#f8fbfc;border-top:4px solid #bdd4df}
.method-grid article>span{background:var(--navy);color:#fff}
.spain-box{background:#fff8e8;border-color:#efddb1}
.status-chip{box-shadow:0 4px 10px rgba(155,105,5,.06)}
.nav-link{display:inline-flex;align-items:center;text-decoration:none;color:var(--navy);font-weight:800;padding:9px 12px;border-radius:9px;background:#eef5f8}
.legal-page{padding-top:24px;padding-bottom:44px}
.legal-shell{display:grid;grid-template-columns:230px minmax(0,1fr);gap:18px;align-items:start}
.legal-menu{position:sticky;top:92px;display:flex;flex-direction:column;gap:5px;padding:12px;background:#edf5f8;border:1px solid #d2e1e8;border-radius:15px}
.legal-menu a{text-decoration:none;color:#496071;padding:9px 10px;border-radius:9px;font-size:13px}
.legal-menu a.active{background:var(--navy);color:#fff;font-weight:800}
.legal-content{background:#fff;border:1px solid #dbe6eb;border-radius:17px;padding:26px;box-shadow:var(--shadow);line-height:1.65}
.legal-content h1{margin:0 0 6px;font-size:32px;letter-spacing:-.025em}
.legal-content h2{font-size:19px;margin:26px 0 7px;color:var(--navy)}
.legal-content p,.legal-content li{color:#4f6472}
.legal-alert{background:#fff7e7;border:1px solid #efd9a7;border-radius:11px;padding:12px 14px;color:#72520c;margin:14px 0}
@media(max-width:900px){.legal-shell{grid-template-columns:1fr}.legal-menu{position:static;flex-direction:row;overflow-x:auto;white-space:nowrap}.legal-content{padding:20px}}
@media(max-width:620px){.market-title{padding:15px;margin-top:8px}.mobile-filter-toggle{font-size:14px;padding:13px 14px}.filter-heading strong{font-size:15px}#catalog,#contribute,#methodology{padding:15px;border-radius:14px}.legal-page{padding-top:12px}.legal-content{padding:17px}.legal-content h1{font-size:27px}}

/* V0.5.8 — Fase 2: responsive, mobile e modo de computador em ecrãs pequenos */
html,body{min-height:100%}
body{min-height:100vh;display:flex;flex-direction:column}
main{flex:1;width:100%}
.site-footer{margin-top:auto}
button,a,select,input{touch-action:manipulation}
.mobile-filter-toggle.has-active-filters{background:linear-gradient(135deg,#ffe5d7,#fff3eb);border-color:#ef9f75;color:#7f3514}
@media(min-width:901px) and (max-width:1100px){
  .container{width:min(100% - 28px,1040px)}
  .market-layout{grid-template-columns:1fr}
  .filters-panel{position:static;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;padding:14px}
  .filter-heading{grid-column:1/-1;margin:0}
  .filter-block{border:1px solid #d2e0e6;border-radius:12px;background:#fff;padding:10px;min-width:0}
  .filter-block input,.filter-block select{min-width:0}
  .locate-btn{grid-column:1/3;margin:0;min-height:46px}
  .filter-note{grid-column:3;padding:4px 6px}
  .market-center,.map-panel{position:static}
  .map-panel{grid-column:auto}
  #leafletMap{height:500px}
  .catalog-grid{grid-template-columns:repeat(2,1fr)}
  .method-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:900px){
  body{padding-bottom:68px}
  .header-inner{min-height:62px}
  .support-btn{min-height:42px;display:inline-flex;align-items:center}
  .mobile-filter-toggle{min-height:48px}
  .filters-panel.open{display:block;animation:filtersIn .18s ease-out}
  .filters-panel.open .filter-block{background:#fff;border:1px solid #d5e2e8;border-radius:11px;margin-top:8px;padding:10px}
  .filters-panel.open .filter-block:first-of-type{margin-top:4px}
  .filters-panel.open .locate-btn{min-height:48px}
  .price-row,.point-table-row,.portal-card,.bottle-card,.method-grid article{scroll-margin-bottom:80px}
  .mobile-bottom-nav{min-height:62px}
  .mobile-nav{min-height:48px}
  #catalog,#contribute,#methodology{min-height:calc(100vh - 205px)}
  .footer-main{padding-bottom:24px}
}
@keyframes filtersIn{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:none}}
@media(max-width:620px){
  .strip-inner{padding:6px 0}
  .strip-inner a{display:none}
  .strip-inner span{max-width:100%}
  .site-header{top:0}
  .header-inner{padding:7px 0;min-height:58px}
  .brand-mark{width:40px;height:40px}
  .market-title{gap:12px}
  .market-meta{gap:6px}
  .market-meta div{padding:9px 8px}
  .market-meta span{font-size:9px}
  .market-meta strong{font-size:17px}
  .point-table{max-height:330px}
  .best-strip>div{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
  .best-strip strong{font-size:30px;line-height:1.05}
  .price-row{gap:8px}
  .point-name,.product-name{font-size:16px;line-height:1.15}
  .price-value{font-size:25px}
  .panel-head{gap:8px}
  .result-tools select{min-height:42px}
  .map-actions .ghost{min-height:44px}
  .catalog-filters .field select,.field input,.field select{min-height:44px}
  .portal-card .primary,.button-link{min-height:44px;display:inline-flex;align-items:center;justify-content:center}
  .footer-main{gap:22px;padding-top:26px}
  .site-footer{margin-top:auto}
  .cookie-banner{bottom:72px}
}

/* V0.6.0 — afinação após testes reais em Android e modo “site para computador” */
body{display:block!important;min-height:100vh}
main{min-height:0!important}
.site-footer{margin-top:28px!important}
#catalog,#contribute,#methodology{min-height:0!important;margin-bottom:22px}
.catalog-empty{display:flex;align-items:center;gap:14px;background:#f7fafb;border:1px dashed #bfcfd8;border-radius:14px;padding:18px;color:#526775}
.catalog-empty strong{display:block;color:var(--navy);font-size:16px;margin-bottom:4px}
.catalog-empty p{margin:0;line-height:1.5}
.catalog-empty-icon{width:46px;height:46px;border-radius:13px;display:grid;place-items:center;background:#e8f1f5;color:var(--navy);font-size:24px;flex:0 0 auto}
#catalog .section-head,#contribute .section-head,#methodology .section-head{margin-bottom:16px}
#catalog .compatibility-box,#methodology .spain-box{margin-top:16px}

@media(max-width:900px){
  #catalog,#contribute,#methodology{min-height:0!important}
  .site-footer{margin-top:18px!important}
}

@media (hover:none) and (pointer:coarse) and (min-width:901px) and (max-width:1100px){
  body{font-size:17px}
  .top-strip{font-size:14px}
  .strip-inner{padding:9px 0}
  .header-inner{min-height:82px}
  .brand-mark{width:48px;height:48px;font-size:26px}
  .brand-copy strong{font-size:22px}
  .brand-copy small{font-size:13px}
  .nav-btn,.support-btn{font-size:15px;padding:12px 14px}
  .notice{padding:14px 16px}
  .notice p{font-size:15px}
  .market-title{padding:21px 22px}
  .market-title h1{font-size:42px}
  .market-title p{font-size:17px;line-height:1.45}
  .market-meta span{font-size:11px}
  .market-meta strong{font-size:22px}
  .filter-heading strong{font-size:16px}
  .filter-block>span:nth-child(2){font-size:14px}
  .filter-block input,.filter-block select{font-size:16px;min-height:48px}
  .locate-btn{font-size:16px;min-height:50px}
  .filter-note{font-size:12px}
  .panel-head h2{font-size:24px}
  .panel-head>span,.result-tools{font-size:13px}
  .point-table-row{font-size:15px}
  .point-table-row small{font-size:12px}
  .point-name,.product-name{font-size:18px}
  .point-meta,.product-meta,.freshness,.price-perkg{font-size:13px}
  .price-value{font-size:27px}
  .source-badge{font-size:11px}
  .map-status,.map-note{font-size:13px}
  #catalog .section-head h2,#contribute .section-head h2,#methodology .section-head h2{font-size:30px}
  #catalog .section-head p,#contribute .section-head p,#methodology .section-head p{font-size:16px;line-height:1.45}
  .catalog-filters label,.field label{font-size:13px}
  .catalog-filters select{font-size:16px;min-height:48px}
  .portal-card h3,.method-grid h3{font-size:20px}
  .portal-card p,.method-grid p,.compatibility-box p,.spain-box p{font-size:15px;line-height:1.5}
  .site-footer{font-size:14px}
  .footer-main p,.footer-links a{font-size:13px}
}

@media(max-width:1100px){.catalog-filters{grid-template-columns:repeat(3,1fr)}.catalog-summary{flex-wrap:wrap}.catalog-summary small{margin-left:0;width:100%}}
@media(max-width:650px){.catalog-filters{grid-template-columns:1fr 1fr}.catalog-grid{grid-template-columns:1fr}.catalog-summary{align-items:flex-start}.compat-title{display:block}.compat-title .status-chip{margin-top:8px}.compat-code{display:grid;gap:4px}.compatibility-box{display:block}}

@media(max-width:900px){.compat-mode-grid{grid-template-columns:1fr}.compat-legend{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.compat-legend{grid-template-columns:1fr}.compat-item{align-items:flex-start;flex-direction:column}.compat-item .status-chip{margin-top:4px}.compat-checker-card{padding:14px}}


/* =========================================================
   V0.7.1–V0.7.3 · Catálogo ERSE / Power BI
   ========================================================= */
.catalog-page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px}
.catalog-country-switch{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.country-chip{border:1px solid var(--line);background:#fff;border-radius:999px;padding:8px 12px;font-weight:800;color:var(--navy);cursor:pointer}
.country-chip.active{background:var(--navy);border-color:var(--navy);color:#fff}

.catalog-powerbi-layout{display:grid;grid-template-columns:285px minmax(0,1fr);gap:18px;align-items:start}
.catalog-side-filters{display:grid;gap:16px;padding:2px 0}
.pbi-filter{position:relative;display:block;background:#eee;border:1px solid #e1e4e6;border-radius:9px;padding:10px 12px 12px 22px;box-shadow:0 3px 0 rgba(16,53,79,.10);min-height:80px}
.pbi-filter-number{position:absolute;left:-34px;top:-9px;font-size:70px;line-height:1;font-weight:900;color:#123f5d;letter-spacing:-5px;z-index:0}
.pbi-filter strong{position:relative;display:block;font-size:11px;margin:0 0 7px 7px;color:#202a31}
.pbi-filter select{position:relative;width:100%;height:34px;border:0;background:#fff;padding:0 8px;color:#4e565b}
.pbi-filter-meta{margin:8px 0 0 34px;text-align:center}
.pbi-filter-meta strong{display:block;background:#173f5b;color:#fff;border-radius:5px;padding:7px 10px;font-size:13px}
.pbi-filter-meta small{display:block;margin-top:11px;color:var(--muted);font-size:10px}

.catalog-pbi-main{min-width:0}
.pbi-section-bar{height:30px;border-radius:6px;background:#173f5b;color:#fff;display:flex;align-items:center;justify-content:center;gap:18px;padding:0 14px;font-size:14px;font-weight:750}
.pbi-section-bar small{font-size:9px;opacity:.75;font-weight:500}
.compatibility-bar{margin-top:18px}

.pbi-table-shell{display:grid;grid-template-columns:118px minmax(0,1fr);margin-top:7px;overflow:hidden}
.pbi-row-labels{display:grid;grid-template-rows:166px repeat(6,28px);font-size:11px;position:relative;z-index:2;background:#fff}
.pbi-row-labels .pbi-image-spacer{background:#fff}
.pbi-row-labels span{display:flex;align-items:center;padding:0 7px;border-bottom:1px solid #fff;background:#f1f1f1;color:#3e4549}
.pbi-row-labels span:nth-of-type(even){background:#e6e6e6}

.pbi-bottle-rail,.pbi-compatible-rail{display:flex;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:#aaa transparent;padding-bottom:7px;scroll-snap-type:x proximity}
.pbi-bottle-column{flex:0 0 154px;display:grid;grid-template-rows:166px repeat(6,28px) auto auto;border:0;background:#fff;padding:0;margin:0;color:#30383d;text-align:left;cursor:pointer;font:inherit;scroll-snap-align:start;position:relative}
.pbi-bottle-column:hover{box-shadow:inset 0 0 0 2px rgba(230,112,45,.32)}
.pbi-bottle-column.selected{box-shadow:inset 0 0 0 3px var(--orange);background:#fff8f2}
.pbi-bottle-column:disabled{cursor:default;opacity:1}
.pbi-bottle-column:disabled:hover{box-shadow:none}
.pbi-cell{height:28px;display:flex;align-items:center;padding:0 6px;border-bottom:1px solid #fff;background:#f1f1f1;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pbi-cell:nth-of-type(even){background:#e6e6e6}
.pbi-cell.brand-cell{font-size:11px}
.pbi-cell.regulator-cell{font-weight:700}
.pbi-column-badge{justify-self:start;margin:7px 5px 2px;padding:5px 7px;border-radius:999px;background:#e9f7ef;color:#18794e;font-size:8px;font-weight:900}
.pbi-bottle-column>.status-chip{justify-self:start;margin:6px 5px 2px}

.catalog-bottle-image{height:158px;width:145px;margin:4px auto;background-position:center;background-repeat:no-repeat;background-size:contain;overflow:hidden}
.catalog-bottle-image img{display:block;width:100%;height:100%;object-fit:contain}
.catalog-bottle-image.placeholder{display:grid;place-items:center;background:#f4f7f8;border-radius:8px;font-size:28px}
.catalog-bottle-image.sprite{
  background-image:var(--pt-bottle-sprite, url('./assets/bottles/erse-pt-2026-v2.webp'));
  background-size:700% 800%;
  background-position:var(--sprite-x) var(--sprite-y);
}
.catalog-bottle-image.selected-mini{width:88px;height:100px;flex:0 0 88px}

.pbi-compatibility-panel{min-height:150px;margin-top:7px;border:1px solid #e3e6e8;background:#fff}
.pbi-compat-empty{padding:22px;color:var(--muted)}
.pbi-compat-empty strong{color:var(--navy)}
.pbi-compat-empty p{margin:5px 0 0}
.pbi-compat-empty.error{background:var(--redSoft);color:var(--red)}
.selected-bottle-summary{display:flex;align-items:center;gap:14px;padding:10px 14px;border-bottom:1px solid var(--line);background:#f8fafb}
.selected-bottle-summary>div:nth-child(2){min-width:160px}
.selected-label{display:block;font-size:8px;font-weight:900;letter-spacing:.08em;color:var(--muted);text-transform:uppercase;margin-bottom:4px}
.selected-bottle-summary strong{display:block;color:var(--navy)}
.selected-bottle-summary p{margin:3px 0 0;font-size:10px;color:var(--muted)}
.selected-regulator{margin-left:auto;min-width:180px;padding:8px 10px;border-left:3px solid var(--navy)}
.selected-regulator span,.selected-regulator small{display:block;font-size:9px;color:var(--muted)}
.selected-regulator strong{font-size:16px;margin:2px 0}
.selected-bottle-summary>.status-chip{margin:0;flex:0 0 auto}
.pbi-compatible-count{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:9px 12px;background:#173f5b;color:#fff;font-size:11px}
.pbi-compatible-count span{font-size:10px;opacity:.8}
.pbi-compatible-rail{padding:4px 0 9px}
.compat-proof{padding:9px 12px;border-top:1px solid var(--line);font-size:9px;color:var(--muted);background:#fbfcfd}
.catalog-evidence-note{margin-top:10px;font-size:9px;line-height:1.6;color:var(--muted)}
.catalog-evidence-note strong{color:var(--navy);margin-left:8px}
.catalog-evidence-note strong:first-child{margin-left:0}

/* V0.7.2 · página informativa de redutores */
.regulator-info-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.regulator-info-card{display:flex;gap:12px;padding:15px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:var(--shadow)}
.regulator-code{display:grid;place-items:center;flex:0 0 62px;height:62px;border-radius:50%;background:#173f5b;color:#fff;font-weight:900;font-size:15px}
.regulator-gas{font-size:8px;letter-spacing:.09em;text-transform:uppercase;font-weight:900;color:var(--orange)}
.regulator-info-card h3{font-size:14px;margin:4px 0 5px}
.regulator-info-card p{font-size:10px;line-height:1.5;color:var(--muted);margin:0}
.regulator-blog-head{margin-top:28px}
.regulator-blog-head h2{margin:3px 0 12px}
.regulator-blog-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.regulator-article{padding:17px;border:1px solid var(--line);border-radius:14px;background:#fff}
.article-icon{font-size:24px}
.regulator-article h3{font-size:15px;line-height:1.25;margin:10px 0 7px}
.regulator-article p{font-size:10px;line-height:1.6;color:var(--muted)}
.regulator-article a{font-size:10px;font-weight:850;color:var(--navy);text-decoration:none}
.regulator-article a:hover{text-decoration:underline}

@media(max-width:1050px){
  .catalog-powerbi-layout{grid-template-columns:225px minmax(0,1fr)}
  .pbi-filter-number{font-size:58px;left:-27px}
  .regulator-info-grid{grid-template-columns:1fr 1fr}
  .regulator-blog-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:760px){
  .catalog-page-head{display:block}
  .catalog-country-switch{justify-content:flex-start;margin-top:12px}
  .catalog-powerbi-layout{display:block}
  .catalog-side-filters{grid-template-columns:1fr 1fr;gap:9px;margin:10px 0 16px;padding-left:24px}
  .pbi-filter{min-height:70px;padding-left:13px}
  .pbi-filter-number{font-size:44px;left:-24px;top:2px}
  .pbi-filter strong{font-size:9px;margin-left:4px;min-height:20px}
  .pbi-filter-meta{grid-column:1/-1;margin:4px 0 0}
  .pbi-table-shell{grid-template-columns:82px minmax(0,1fr)}
  .pbi-row-labels{grid-template-rows:138px repeat(6,27px);font-size:9px}
  .pbi-bottle-column{flex-basis:130px;grid-template-rows:138px repeat(6,27px) auto auto}
  .catalog-bottle-image{width:123px;height:132px;margin:3px auto}
  .pbi-cell{height:27px;font-size:9px;padding:0 4px}
  .selected-bottle-summary{align-items:flex-start;flex-wrap:wrap}
  .selected-regulator{margin-left:0;flex:1}
  .catalog-bottle-image.selected-mini{width:70px;height:82px;flex-basis:70px}
  .regulator-info-grid,.regulator-blog-grid{grid-template-columns:1fr}
}
@media(max-width:430px){
  .catalog-side-filters{grid-template-columns:1fr;padding-left:25px}
  .pbi-filter-meta{grid-column:auto}
  .pbi-section-bar{justify-content:flex-start;font-size:11px;height:auto;min-height:30px}
  .pbi-section-bar small{display:none}
  .pbi-table-shell{grid-template-columns:72px minmax(0,1fr)}
  .pbi-compatible-count{display:block}
  .pbi-compatible-count span{display:block;margin-top:3px}
}


/* =========================================================
   V0.7.5 · Identidade própria do catálogo
   Mantém o funcionamento horizontal, mas abandona a linguagem
   visual do dashboard Power BI.
   ========================================================= */
#catalog{
  background:linear-gradient(145deg,#fffdf9 0,#ffffff 58%,#f2f8f7 100%);
  border-color:#e5ddd5;
}
#catalog .catalog-page-head{
  padding:6px 4px 14px;
  border-bottom:1px solid #eee4dc;
}
#catalog .catalog-page-head h2{color:#183846}
#catalog .catalog-page-head p:not(.eyebrow){max-width:760px;color:#667985}
.catalog-country-switch{background:#f5f1ed;border:1px solid #e4dcd5;padding:4px;border-radius:999px}
.country-chip{border:0;background:transparent;color:#506873;box-shadow:none}
.country-chip.active{background:#155e63;color:#fff;box-shadow:0 4px 12px rgba(21,94,99,.18)}

.catalog-powerbi-layout{grid-template-columns:1fr;gap:13px}
.catalog-side-filters{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr)) auto;
  gap:10px;
  padding:12px;
  border:1px solid #eaded5;
  border-radius:15px;
  background:#faf5f0;
  box-shadow:none;
}
.pbi-filter{
  min-height:0;
  padding:9px 10px;
  border-radius:11px;
  border:1px solid #e7ddd5;
  border-left:4px solid #e8773f;
  background:#fff;
  box-shadow:none;
}
.pbi-filter-number{display:none}
.pbi-filter strong{
  margin:0 0 6px;
  color:#34505d;
  font-size:10px;
  letter-spacing:.02em;
}
.pbi-filter select{
  height:36px;
  border:1px solid #dce5e6;
  border-radius:8px;
  color:#223d48;
}
.pbi-filter-meta{
  margin:0;
  min-width:126px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  text-align:left;
  padding:4px 8px;
}
.pbi-filter-meta strong{
  display:block;
  background:transparent;
  color:#155e63;
  padding:0;
  font-size:16px;
}
.pbi-filter-meta small{margin:3px 0 0;color:#7d8c92;line-height:1.3}

.catalog-pbi-main{
  border:1px solid #dce7e7;
  border-radius:16px;
  background:#fff;
  padding:12px;
  box-shadow:0 12px 30px rgba(30,64,72,.06);
}
.pbi-section-bar{
  height:auto;
  min-height:38px;
  justify-content:flex-start;
  background:#f0f7f6;
  color:#174e52;
  border:1px solid #d8e8e5;
  border-left:5px solid #e8773f;
  border-radius:10px;
  padding:8px 12px;
}
.pbi-section-bar small{color:#698186;opacity:1}
.compatibility-bar{
  margin-top:14px;
  background:#eef8f3;
  color:#176247;
  border-color:#d5eadf;
  border-left-color:#2b8a69;
}
.pbi-table-shell{
  margin-top:10px;
  border:1px solid #e4e9e9;
  border-radius:13px;
  background:#fff;
}
.pbi-row-labels{background:#fffaf6}
.pbi-row-labels .pbi-image-spacer{background:#fffaf6}
.pbi-row-labels span{
  background:#f8f2ed!important;
  color:#7a685e;
  border-bottom-color:#fff;
  font-weight:700;
}
.pbi-bottle-rail{background:#fff}
.pbi-bottle-column{border-right:1px solid #edf0f0;background:#fff}
.pbi-bottle-column:hover{background:#fffaf6;box-shadow:inset 0 -3px 0 #ed9a70}
.pbi-bottle-column.selected{
  background:#fff5ed;
  box-shadow:inset 0 0 0 2px #e8773f;
}
.pbi-cell{background:#fbfcfc!important;border-bottom-color:#f0f2f2}
.pbi-cell:nth-of-type(even){background:#f3f7f6!important}
.pbi-cell.regulator-cell{color:#155e63}
.pbi-compatibility-panel{
  border:1px solid #dce9e3;
  border-radius:12px;
  overflow:hidden;
  margin-top:9px;
}
.selected-bottle-summary{background:linear-gradient(90deg,#f5fbf8,#fffaf5)}
.selected-regulator{border-left-color:#2b8a69}
.pbi-compatible-count{background:#176247}
.compat-proof{background:#f7faf8}
.catalog-evidence-note{
  margin:10px 4px 0;
  padding:9px 11px;
  border-radius:10px;
  background:#fbf7f3;
  border:1px solid #eee4dc;
}

/* =========================================================
   V0.7.6 · Guias & Ajuda
   ========================================================= */
#guides{
  background:#fff;
  border:1px solid #d8e5ea;
  border-radius:18px;
  padding:22px;
  margin-top:12px;
  box-shadow:var(--shadow);
}
.guides-hero{
  display:grid;
  grid-template-columns:minmax(0,1fr) 100px;
  gap:22px;
  align-items:center;
  padding:23px;
  border-radius:18px;
  background:linear-gradient(135deg,#edf7f6,#fff7ee);
  border:1px solid #dce9e5;
}
.guides-hero h2{margin:4px 0 7px;font-size:30px;color:#173f48}
.guides-hero p{margin:0;max-width:820px;color:#60757e;line-height:1.55}
.guides-hero-mark{
  width:76px;height:76px;border-radius:24px;
  display:grid;place-items:center;
  background:#155e63;color:#fff;
  font-size:38px;font-weight:900;
  transform:rotate(4deg);
  box-shadow:0 12px 24px rgba(21,94,99,.18);
}
.guide-featured{
  display:grid;
  grid-template-columns:76px minmax(0,1fr);
  gap:17px;
  align-items:start;
  margin-top:15px;
  padding:19px;
  border:1px solid #f0d8c8;
  border-radius:16px;
  background:#fffaf6;
}
.guide-featured-icon{
  width:62px;height:62px;border-radius:16px;
  display:grid;place-items:center;
  background:#ffe9db;font-size:29px;
}
.guide-tag{
  display:inline-flex;
  padding:4px 8px;border-radius:999px;
  background:#e7f3f1;color:#176247;
  font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.06em;
}
.guide-featured h3{font-size:21px;margin:7px 0 6px;color:#173f48}
.guide-featured p{margin:0;color:#647780;line-height:1.55}
.guide-links{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.guide-links a,.guide-internal-link{
  border:0;background:transparent;color:#155e63;
  font-size:11px;font-weight:850;padding:0;cursor:pointer;text-decoration:none;
}
.guide-links a:hover,.guide-internal-link:hover{text-decoration:underline}
.guides-section-head{
  display:flex;justify-content:space-between;align-items:end;gap:12px;
  margin:24px 2px 11px;
}
.guides-section-head h3{font-size:22px;margin:3px 0 0}
.guides-section-head>span{font-size:10px;color:var(--muted)}
.guides-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.guide-card{
  display:flex;flex-direction:column;align-items:flex-start;
  min-height:215px;padding:17px;
  border:1px solid #dde8e7;border-radius:15px;background:#fff;
  box-shadow:0 7px 18px rgba(23,63,72,.04);
}
.guide-card-icon{font-size:25px;margin-bottom:9px}
.guide-card h3{font-size:16px;line-height:1.3;margin:9px 0 6px;color:#193e49}
.guide-card p{font-size:11px;line-height:1.6;color:#657982;margin:0 0 12px}
.guide-card button,.guide-card a{
  margin-top:auto;border:0;background:transparent;padding:0;
  color:#155e63;font-size:10px;font-weight:850;cursor:pointer;text-decoration:none;
}
.guide-card button:hover,.guide-card a:hover{text-decoration:underline}
.guide-coming{margin-top:auto;font-size:9px;color:#9a7a64;background:#fff4ea;border-radius:999px;padding:5px 8px}
.guides-source-note{
  display:flex;gap:8px;align-items:flex-start;
  margin-top:14px;padding:12px 14px;border-radius:12px;
  background:#f5f8f8;color:#667a82;font-size:10px;line-height:1.55;
}
.guides-source-note strong{color:#173f48;white-space:nowrap}

@media(max-width:1050px){
  .catalog-side-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pbi-filter-meta{grid-column:1/-1}
  .guides-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:700px){
  #catalog .catalog-page-head{border-bottom:0}
  .catalog-side-filters{grid-template-columns:1fr 1fr;padding:9px;background:#faf6f2}
  .pbi-filter{padding:8px}
  .pbi-filter-meta{grid-column:1/-1;flex-direction:row;align-items:center;justify-content:space-between}
  .catalog-pbi-main{padding:8px}
  .guides-hero{grid-template-columns:1fr;padding:17px}
  .guides-hero-mark{display:none}
  .guide-featured{grid-template-columns:1fr}
  .guides-grid{grid-template-columns:1fr}
  .guides-source-note{display:block}
  .guides-source-note strong{display:block;margin-bottom:4px}
}
@media(max-width:430px){
  .catalog-side-filters{grid-template-columns:1fr}
  .pbi-filter-meta{grid-column:auto}
}


/* V0.7.14 — navegação própria do catálogo */
.catalog-rail-actions{margin-left:auto;display:flex;gap:6px}
.catalog-rail-actions button{
  width:30px;height:30px;border:1px solid #cfe0de;border-radius:8px;
  background:#fff;color:#155e63;font-size:20px;line-height:1;cursor:pointer;
}
.catalog-rail-actions button:hover{background:#f7fbfa}
#catalogBreakdown{display:block!important;margin-top:2px;color:#506b75;font-weight:750}
@media(max-width:700px){
  .catalog-rail-actions{margin-left:auto}
  .catalog-rail-actions button{width:28px;height:28px}
}


/* V0.7.15 — mapa público Leaflet */
#leafletMap.leaflet-container{
  width:100%;
  min-height:420px;
  background:#e9eef1;
  font-family:inherit;
}
#leafletMap .leaflet-control-zoom{
  border:1px solid #d6e0e5;
  box-shadow:0 2px 7px rgba(16,42,67,.12);
}
#leafletMap .leaflet-control-zoom a{color:#163f59}
#leafletMap .leaflet-control-attribution{
  font-size:8px;
  background:rgba(255,255,255,.88);
}
.pdb-map-marker-wrap{background:transparent!important;border:0!important}
.pdb-map-marker-wrap .map-price-marker{
  min-width:66px;
  height:30px;
  padding:6px 9px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#10354f;
  color:#fff;
  font-size:11px;
  font-weight:900;
  box-shadow:0 4px 12px rgba(16,53,79,.24);
  border:2px solid #fff;
  white-space:nowrap;
}
#leafletMap .leaflet-popup-content-wrapper{
  border-radius:13px;
  box-shadow:0 10px 28px rgba(16,53,79,.18);
}
#leafletMap .leaflet-popup-content{margin:13px 15px}
@media(max-width:760px){
  #leafletMap.leaflet-container{min-height:62vh}
}


/* V0.7.17 — transparência do produto */
.info-scope{border-left:4px solid #e8773f}
.source-priority-box{
  margin-top:12px;padding:14px 16px;border-radius:13px;
  border:1px solid #d9e6e5;background:#f4faf8;color:#536b70;
  font-size:11px;line-height:1.55;
}
.source-priority-box strong{display:block;color:#174e52;margin-bottom:4px}
.source-priority-box p{margin:0}


/* V0.7.19 — sugestões de pontos pela comunidade */
.portal-actions{display:flex;gap:8px;flex-wrap:wrap}
.point-suggestion-card{width:min(760px,100%)}
.buyer-point-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.buyer-point-grid .span2{grid-column:span 2}
.suggestion-map-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:10px 0 8px}
.suggestion-map-head strong,.suggestion-map-head span{display:block}
.suggestion-map-head span{font-size:10px;color:var(--muted);margin-top:3px}
#suggestPointMap{height:330px;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#edf2f4}
.suggestion-map-status{font-size:10px;color:var(--muted);padding:7px 2px 10px}
.suggestion-map-status.ok{color:var(--green)}
.suggestion-map-status.error{color:var(--red)}
@media(max-width:700px){
  .buyer-point-grid{grid-template-columns:1fr}
  .buyer-point-grid .span2{grid-column:auto}
  .suggestion-map-head{align-items:flex-start;flex-direction:column}
  #suggestPointMap{height:300px}
  .portal-actions>*{width:100%}
}


/* V0.7.20 — aviso fechável e segurança no rodapé */
.notice-warning{position:relative;padding-right:46px}
.notice-close{
  position:absolute;right:10px;top:50%;transform:translateY(-50%);
  width:30px;height:30px;border:0;border-radius:8px;background:rgba(255,255,255,.72);
  color:#6e5314;font-size:21px;line-height:1;cursor:pointer;font-weight:700
}
.notice-close:hover{background:#fff}
.footer-emergency{
  display:flex;gap:10px;align-items:center;padding:12px 0 0;
  color:#dfe9ef;font-size:11px;line-height:1.45
}
.footer-emergency strong{color:#fff;white-space:nowrap}
.footer-emergency span{color:#d4e0e7}
.site-footer .footer-emergency+.footer-main{padding-top:18px}
@media(max-width:700px){
  .notice-warning{padding-right:42px}
  .footer-emergency{align-items:flex-start;flex-direction:column;gap:4px}
}


/* V0.7.22 — garantir fecho real do aviso */
.notice[hidden]{display:none!important}


/* V0.7.24 — hierarquia tipográfica e capitalização */
.main-nav .nav-btn{font-weight:700}
.section-head h2,.panel-head h2,.guides-hero h2,.legal-content h1{font-weight:900}
.catalog-page-head h2{letter-spacing:-.02em}
@media(max-width:700px){
  .market-title h1{font-size:clamp(34px,11vw,46px);line-height:.98}
  .market-title h1 .hero-highlight{margin-top:4px}
}


/* V0.7.24 — hierarquia tipográfica e destaque do título principal */
.market-title h1 .hero-highlight{
  display:inline-block;
  position:relative;
  color:var(--orange);
  font-size:1.08em;
  margin-top:7px;
  padding-bottom:5px;
}
.market-title h1 .hero-highlight::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:5px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--orange),rgba(243,109,43,.18));
}
@media(max-width:700px){
  .market-title h1 .hero-highlight{font-size:1.03em}
}


/* =========================================================
   V0.7.25 — título principal mais compacto e rodapé mais legível
   ========================================================= */

/* Hero: mantém a hierarquia, mas liberta espaço vertical no painel principal */
.market-title{
  padding:14px 18px;
}
.market-title h1{
  font-size:clamp(30px,3.2vw,44px);
  line-height:1;
  margin:4px 0 7px;
  letter-spacing:-.035em;
  max-width:760px;
}
.market-title h1 .hero-highlight{
  font-size:1.04em;
  margin-top:4px;
  padding-bottom:3px;
}
.market-title h1 .hero-highlight::after{
  height:3px;
}
.market-meta div{
  min-width:104px;
  padding:9px 12px;
}

/* Rodapé: texto maior, mas com menos espaços mortos */
.footer-emergency{
  gap:12px;
  padding:13px 0 9px;
  font-size:13px;
  line-height:1.4;
  border-bottom:1px solid rgba(255,255,255,.10);
}
.footer-emergency strong{
  font-size:15px;
}
.footer-emergency span{
  font-size:13px;
}
.site-footer .footer-emergency+.footer-main{
  padding-top:13px;
}
.footer-main{
  grid-template-columns:1.4fr .65fr .65fr;
  gap:28px;
  padding:13px 0 12px;
}
.site-footer h4{
  margin:0 0 6px;
  font-size:16px;
  line-height:1.2;
}
.site-footer p{
  margin:4px 0;
  font-size:13px;
  line-height:1.45;
}
.footer-links{
  gap:5px;
}
.footer-links a{
  font-size:13px;
  line-height:1.3;
}
.footer-bottom{
  padding:9px 0 12px;
  font-size:11px;
  line-height:1.35;
}

@media(max-width:700px){
  .market-title{
    padding:12px 13px;
  }
  .market-title h1{
    font-size:clamp(28px,8vw,36px);
    line-height:1.02;
    margin-bottom:7px;
  }
  .market-title h1 .hero-highlight{
    font-size:1.02em;
    margin-top:3px;
  }
  .footer-emergency{
    gap:4px;
    padding:11px 0 8px;
    font-size:12.5px;
  }
  .footer-emergency strong{
    font-size:14px;
  }
  .footer-emergency span{
    font-size:12.5px;
  }
  .site-footer .footer-emergency+.footer-main{
    padding-top:11px;
  }
  .footer-main{
    grid-template-columns:1fr 1fr;
    gap:12px 20px;
    padding:11px 0 10px;
  }
  .footer-main>div:first-child{
    grid-column:1/-1;
  }
  .site-footer h4{
    font-size:15px;
    margin-bottom:5px;
  }
  .site-footer p,
  .footer-links a{
    font-size:12.5px;
  }
  .footer-bottom{
    padding:8px 0 11px;
    font-size:10.5px;
    flex-wrap:wrap;
  }
}
@media(max-width:430px){
  .footer-main{
    grid-template-columns:1fr;
    gap:10px;
  }
  .footer-main>div:first-child{
    grid-column:auto;
  }
}


/* =========================================================
   V0.7.26 — título completo numa linha no computador
   ========================================================= */
/* Desktop: título de uma linha, preservando o laranja e o
   sublinhado de "Perto de Si". */
.market-title > div:first-child{
  flex:1 1 auto;
  min-width:0;
}
.market-title h1{
  max-width:none;
  font-size:clamp(27px,2.55vw,39px);
  line-height:1.08;
  margin:4px 0 7px;
  letter-spacing:-.035em;
  white-space:nowrap;
}
.market-title h1 .hero-highlight{
  display:inline-block;
  font-size:1em;
  line-height:inherit;
  margin:0 0 0 .04em;
  padding-bottom:2px;
  white-space:nowrap;
}
.market-title h1 .hero-highlight::after{
  height:3px;
}
.market-meta{
  flex:0 0 auto;
}

/* No computador estreito, as estatísticas descem para
   deixar o título inteiro numa só linha, sem cortes. */
@media(min-width:901px) and (max-width:1050px){
  .market-title{
    flex-direction:column;
    align-items:stretch;
    gap:10px;
  }
  .market-meta{
    align-self:flex-end;
    width:max-content;
    max-width:100%;
  }
}

/* Em ecrãs pequenos permitimos a quebra natural do título. */
@media(max-width:700px){
  .market-title h1{
    font-size:clamp(27px,7.5vw,34px);
    line-height:1.08;
    white-space:normal;
  }
  .market-title h1 .hero-highlight{
    margin-left:0;
  }
}


/* =========================================================
   V0.7.27 — rodapé mais legível sem aumentar desnecessariamente a altura
   ========================================================= */
.footer-emergency{
  gap:12px;
  padding:11px 0 8px;
  font-size:14px;
  line-height:1.4;
}
.footer-emergency strong{
  font-size:16px;
  line-height:1.3;
}
.footer-emergency span{
  font-size:14px;
  line-height:1.4;
}
.site-footer .footer-emergency+.footer-main{
  padding-top:11px;
}
.footer-main{
  grid-template-columns:minmax(0,1.4fr) minmax(0,.65fr) minmax(0,.65fr);
  gap:24px;
  padding:11px 0 10px;
}
.site-footer h4{
  font-size:18px;
  line-height:1.2;
  margin:0 0 5px;
}
.site-footer p{
  font-size:14px;
  line-height:1.38;
  margin:3px 0;
}
.footer-links{
  gap:4px;
}
.footer-links a{
  font-size:14px;
  line-height:1.32;
}
.footer-bottom{
  gap:12px;
  padding:8px 0 10px;
  font-size:11.5px;
  line-height:1.3;
}

/* Tablet e telemóvel: mantém o texto legível e as colunas compactas. */
@media(max-width:700px){
  .footer-emergency{
    gap:4px;
    padding:10px 0 8px;
  }
  .footer-emergency strong{font-size:15px}
  .footer-emergency span{font-size:13.5px}
  .site-footer .footer-emergency+.footer-main{padding-top:10px}
  .footer-main{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:12px 16px;
    padding:10px 0 9px;
  }
  .footer-main>div:first-child{grid-column:1/-1}
  .site-footer h4{
    font-size:16px;
    margin-bottom:5px;
  }
  .site-footer p,.footer-links a{
    font-size:13.5px;
  }
  .footer-bottom{
    padding:8px 0 10px;
    font-size:11px;
  }
}
@media(max-width:430px){
  .footer-main{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:12px 14px;
  }
  .footer-main>div:first-child{grid-column:1/-1}
}
@media(max-width:350px){
  .footer-main{grid-template-columns:1fr}
  .footer-main>div:first-child{grid-column:auto}
}


/* =========================================================
   V0.7.29 — página Colaborar compacta e rodapé no fundo
   ========================================================= */
/* Mantém o rodapé no fundo do ecrã nas páginas curtas sem o fixar. */
body{
  display:flex!important;
  flex-direction:column;
  min-height:100vh;
}
main{
  flex:1 0 auto;
  width:100%;
}
.site-footer{
  margin-top:auto!important;
}

/* Colaborar: cartões mais compactos e ícones consistentes com a interface. */
#contribute .section-head{
  margin-bottom:13px;
}
#contribute .grid-2{
  gap:10px;
}
#contribute .portal-card{
  padding:15px 17px;
  min-height:0;
}
#contribute .portal-card h3{
  margin:8px 0 5px;
}
#contribute .portal-card p{
  margin:0 0 10px;
  line-height:1.5;
}
#contribute .portal-card .primary{
  margin-top:0;
}
#contribute .portal-actions{
  margin-top:2px;
}
.portal-icon{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:11px;
  border:1px solid #dbe5ea;
  background:#f5f9fb;
}
.portal-icon svg{
  width:22px;
  height:22px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.portal-icon-consumer{
  color:#195b83;
  background:#edf5fa;
  border-color:#d2e4ef;
}
.portal-icon-merchant{
  color:#b85625;
  background:#fff4ed;
  border-color:#f2d7c7;
}

@media(max-width:700px){
  #contribute .portal-card{
    padding:14px;
  }
  #contribute .grid-2{
    gap:9px;
  }
}


/* V0.7.32 · outras regiões separadas das compatibilidades da região selecionada */
.catalog-other-regions{border-top:1px solid #eedcb7;background:#fffaf0}
.catalog-other-regions summary{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 12px;padding:12px 14px;color:#744c1c;cursor:pointer;font-size:12px;list-style:none}
.catalog-other-regions summary::-webkit-details-marker{display:none}
.catalog-other-regions summary::before{content:'›';font-size:19px;line-height:1;transition:transform .2s}
.catalog-other-regions[open] summary::before{transform:rotate(90deg)}
.catalog-other-regions summary strong{flex:1;font-size:13px}
.catalog-other-regions summary span{color:#885f36;font-size:11px}
.catalog-other-regions p{padding:0 14px 10px;margin:0;font-size:12px;line-height:1.5;color:#765638}
.catalog-other-regions .pbi-compatible-rail{padding:7px 0 10px;border-top:1px solid #eedcb7}
.catalog-other-regions .pbi-bottle-column{background:#fffdf9}
.catalog-other-regions .pbi-column-badge{background:#ffedcf;color:#774f18;font-size:10px;line-height:1.3;white-space:normal}
@media(max-width:700px){.catalog-other-regions summary{align-items:flex-start}.catalog-other-regions summary span{flex-basis:100%;padding-left:17px}}

/* V0.7.33: imagens Espanha em atlas 6 x 2. */
.catalog-bottle-image.es-sprite{background-image:none;background-color:#fff;display:grid;place-items:center}
body.es-sprite-ready .catalog-bottle-image.es-sprite{background-image:url('./assets/bottles/es-bottles-2026-v1.webp?v=0.8.2');background-size:600% 200%;background-position:var(--sprite-x) var(--sprite-y)}
.es-sprite-fallback{font-size:11px;text-align:center;line-height:1.4;max-width:110px;color:#6b7886}
body.es-sprite-ready .es-sprite-fallback{display:none}


/* V0.7.36: referências técnicas transfronteiriças separadas das compatibilidades ERSE */
.catalog-cross-border{margin-top:10px;border:1px solid #b9d8e5;border-radius:11px;overflow:hidden;background:#f7fcff}
.catalog-cross-border .pbi-compatible-count{background:#dceff7;color:#123f55}
.catalog-cross-border .pbi-compatible-count span{font-size:11px;color:#365c70}
.catalog-cross-border .pbi-compatible-rail{background:#fff}
.catalog-cross-border .pbi-bottle-column{background:#fbfeff}
.catalog-cross-border .pbi-column-badge{background:#e7f3f9;color:#20566e;white-space:normal;font-size:10px;line-height:1.3}
.cross-border-warning{margin:0;padding:11px 13px;border-top:1px solid #d2e5ee;color:#365364;font-size:12px;line-height:1.55}

/* V0.7.39 · O seletor de rotas tem de ficar acima de TODOS os painéis Leaflet.
   Cada pane Leaflet pode ter z-index até 1000; confinar o mapa à sua camada. */
#leafletMap.leaflet-container{
  position:relative;
  z-index:0;
  isolation:isolate;
}
.directions-chooser.modal{
  position:fixed;
  inset:0;
  height:100vh;
  height:100dvh;
  z-index:5000;
  padding:0;
  align-items:flex-end;
  justify-content:center;
  background:rgba(8,29,43,.68);
}
.directions-chooser.modal.open{
  display:flex;
}
.directions-chooser .directions-sheet{
  position:relative;
  z-index:1;
  flex:0 1 520px;
  width:100%;
  margin:0;
  max-height:calc(100vh - 16px);
  max-height:calc(100dvh - 16px);
  overflow-y:auto;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  border-radius:20px 20px 0 0;
  padding:20px 18px max(22px,env(safe-area-inset-bottom));
  box-shadow:0 -12px 42px rgba(4,22,33,.18);
}
body.directions-open{overflow:hidden}
@media (min-width:901px){
  .directions-chooser.modal{
    align-items:center;
    padding:20px;
  }
  .directions-chooser .directions-sheet{
    border-radius:20px;
    max-height:calc(100dvh - 40px);
  }
}
@media (max-width:900px){
  .directions-chooser .directions-sheet{
    flex:0 1 100%;
    max-height:min(82dvh,650px);
  }
}
@media (max-height:480px){
  .directions-chooser .directions-sheet{max-height:calc(100dvh - 12px)}
}


/* V0.7.44 · comprovativo privado nas contribuições */
.evidence-field{margin-top:4px}
.evidence-field label span{font-weight:500;color:var(--muted);font-size:11px}
.evidence-field input[type="file"]{
  width:100%;
  padding:10px;
  border:1px dashed #b8cbd2;
  border-radius:10px;
  background:#f8fbfc;
  color:#294b5b;
}
.evidence-field input[type="file"]::file-selector-button{
  margin-right:10px;
  border:0;
  border-radius:8px;
  padding:8px 11px;
  background:#155e63;
  color:#fff;
  font-weight:750;
  cursor:pointer;
}
.evidence-field small{display:block;margin-top:7px;color:var(--muted);line-height:1.45}
.evidence-state{min-height:18px;margin-top:6px;font-size:11px;font-weight:750}
.evidence-state.ok{color:#176247}
.evidence-state.error{color:#b42318}


/* V0.7.46 · histórico público de preços */
.price-history-btn{
  margin-top:5px;border:0;background:transparent;color:var(--blue);font-size:9px;font-weight:850;
  padding:2px 0;cursor:pointer;text-decoration:underline;text-underline-offset:2px;
}
.history-modal-card{width:min(760px,100%);max-height:90vh;overflow:auto}
.history-range{display:flex;gap:7px;flex-wrap:wrap;margin:14px 0}
.history-range button{
  border:1px solid var(--line);background:#fff;color:#506272;border-radius:999px;padding:7px 11px;
  font-size:10px;font-weight:850;cursor:pointer;
}
.history-range button.active{background:var(--navy);border-color:var(--navy);color:#fff}
.price-history-body{display:grid;gap:12px}
.history-loading,.history-error,.history-chart-empty{
  padding:18px;border:1px solid var(--line);border-radius:12px;background:#f8fafb;color:var(--muted);font-size:12px
}
.history-error{background:var(--redSoft);color:var(--red);border-color:#efc5c0}
.history-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.history-kpis>div{border:1px solid var(--line);border-radius:11px;padding:10px;background:#fbfcfd}
.history-kpis span,.history-kpis strong{display:block}
.history-kpis span{font-size:9px;color:var(--muted);font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.history-kpis strong{margin-top:4px;font-size:18px;color:var(--navy)}
.history-kpis strong small{font-size:10px}
.history-kpis .up strong{color:var(--red)}
.history-kpis .down strong{color:var(--green)}
.history-chart-wrap{position:relative;border:1px solid var(--line);border-radius:13px;background:#fff;padding:10px 12px 6px}
.history-chart{display:block;width:100%;height:auto}
.history-axis{stroke:#d9e4e9;stroke-width:1}
.history-line{fill:none;stroke:currentColor;color:var(--orange);stroke-width:4;stroke-linejoin:round;stroke-linecap:round}
.history-chart-scale{position:absolute;inset:10px auto 10px 12px;display:flex;flex-direction:column;justify-content:space-between;pointer-events:none}
.history-chart-scale span{font-size:9px;color:var(--muted);background:rgba(255,255,255,.88);padding-right:3px}
.history-source-note{padding:9px 11px;border-radius:10px;background:#eef5f8;color:#506674;font-size:10px;line-height:1.45}
.history-events{display:grid;border:1px solid var(--line);border-radius:11px;overflow:hidden}
.history-event{display:grid;grid-template-columns:1fr auto auto;gap:10px;align-items:center;padding:9px 11px;border-bottom:1px solid #edf1f3;font-size:11px}
.history-event:last-child{border-bottom:0}
.history-event span,.history-event small{color:var(--muted)}
.history-event small{font-size:9px}
@media(max-width:620px){
  .history-modal-card{padding:18px 14px}
  .history-kpis{grid-template-columns:1fr 1fr}
  .history-kpis strong{font-size:16px}
  .history-event{grid-template-columns:1fr auto}
  .history-event small{grid-column:1/-1}
  .price-history-btn{font-size:10px}
}

/* Auditoria: origem, legibilidade e filtros */
.source-date{font-size:.72rem;color:#586b70;max-width:15rem}.stale-badge{display:inline-block;font-size:.72rem;color:#82440a;background:#fff0d5;padding:3px 7px;border-radius:6px}.comparison-hint{font-size:.85rem;color:#526970;line-height:1.5;margin:0 0 12px}.filter-panel select{min-height:44px}.price-row button{min-height:36px}@media(max-width:600px){.source-date{max-width:100%;}.comparison-hint{padding:0 8px;}}

#catalogLoadNotice:empty{display:none}

/* V0.8.2: repor filtros, estabelecimentos e mapa na página inicial. */
.market-center{min-width:0}
.price-list .price-row{font-size:13px}
.price-row>div{min-width:0;overflow-wrap:anywhere}
.price-row .price-history-btn{display:block;width:100%;min-height:40px;margin-top:6px;padding:8px 10px;border:1px solid #d4e1e3;border-radius:8px;background:#f3f8f8;color:var(--navy);font:inherit;font-size:12px;font-weight:750;line-height:1.35;text-decoration:none}
.price-row .price-history-btn:hover{background:#e5f0ef;border-color:#aacbc6}
.price-row .source-date,.price-row .freshness,.price-row small{font-size:11px;line-height:1.5}
.price-row .price-history-btn:focus-visible,summary:focus-visible{outline:3px solid #d8793e;outline-offset:3px}
@media(min-width:1101px){
 .market-layout{grid-template-columns:280px minmax(0,1.3fr) minmax(320px,.9fr)}
 .market-layout>.map-panel{grid-column:auto;position:sticky;top:86px}
 .map-panel #leafletMap{height:620px}
}
@media(min-width:901px) and (max-width:1100px){
 .market-layout{grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr)}
 .market-layout>.filters-panel{grid-column:1/-1}
 .market-layout>.market-center{grid-column:1}
 .market-layout>.map-panel{grid-column:2;position:sticky;top:86px}
 .map-panel #leafletMap{height:500px}
}
@media(max-width:900px){
 .market-layout .map-panel{display:block;order:0;position:static}
 .market-layout .filters-panel{order:-1}
 .market-layout .market-center{order:1}
 .map-panel #leafletMap{height:300px;min-height:260px}
}

/* V0.8.2 · referências oficiais separadas dos preços de loja */
.official-reference-panel{margin:14px 0;padding:14px;border:1px solid #d7e5eb;border-radius:12px;background:#f7fbfc}
.official-reference-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}
.official-reference-head h3{margin:2px 0 0;font-size:17px}
.official-reference-badge{display:inline-flex;align-items:center;border-radius:999px;padding:6px 9px;background:#fff4d8;color:#7a5400;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.03em}
.official-reference-row{display:grid;grid-template-columns:minmax(210px,1.5fr) minmax(145px,.8fr) minmax(135px,.7fr) auto;gap:12px;align-items:center;border-top:1px solid #dce9ee;padding:11px 0}
.official-reference-row:first-child{border-top:0}
.official-reference-row>div{display:grid;gap:2px}
.official-reference-row span,.official-reference-row small{font-size:10px;color:#657982}
.official-reference-row strong{font-size:13px;color:#153846}
.official-reference-row>div:nth-child(2)>strong{font-size:20px}
.official-reference-row a{font-size:11px;font-weight:800;text-decoration:none}
.official-reference-note{margin:8px 0 0;font-size:11px;line-height:1.45;color:#657982}
@media(max-width:760px){
 .official-reference-head{display:grid}
 .official-reference-badge{width:max-content}
 .official-reference-row{grid-template-columns:1fr}
 .official-reference-row a{width:max-content}
}
/* Regras finais para o painel recolhível; estas linhas sobrepõem a grelha antiga. */
.official-reference-panel{padding:8px 14px;background:#f7faf9}
.official-reference-panel>summary{display:flex;gap:12px;align-items:center;justify-content:space-between;list-style-position:inside}
.official-reference-panel>summary:before{content:'▸';font-size:15px}
.official-reference-panel[open]>summary:before{content:'▾'}
.official-reference-row{grid-template-columns:minmax(140px,1.4fr) minmax(125px,.9fr) minmax(160px,1fr) auto}
.official-reference-row a{min-width:90px}.official-reference-row span,.official-reference-row small{font-size:12px;line-height:1.5}.official-reference-warning{color:#874912!important}
@media(max-width:760px){.official-reference-row{grid-template-columns:minmax(0,1fr)}.official-reference-panel>summary{flex-wrap:wrap}.official-reference-row a{min-height:36px}}


/* Consulta rápida: ofertas compactas, ações na mesma linha e filtros mais largos. */
.price-list .price-row{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) auto;gap:5px 10px;padding:10px 12px;align-items:start}
.price-list .price-row>.offer-point{grid-column:1;grid-row:1}
.price-list .price-row>.offer-product{grid-column:2;grid-row:1}
.price-list .price-row>.offer-price{grid-column:3;grid-row:1;text-align:right}
.price-list .price-row>.offer-status{grid-column:1/-1;grid-row:2;display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px}
.price-list .price-row>.offer-actions{grid-column:1/-1;grid-row:3;display:flex;justify-content:flex-end;flex-wrap:wrap;gap:6px;margin-top:1px}
.price-list .offer-status .freshness{margin:0}
.price-list .price-row .price-history-btn{display:inline-flex;width:auto;min-height:34px;margin:0;padding:6px 9px;align-items:center;justify-content:center;white-space:nowrap;font-size:11px;border-radius:7px}
.point-table-row:not(.header){padding-top:7px;padding-bottom:7px}
.legal-main{min-width:0}
.legal-main>.legal-content+.legal-content{margin-top:16px}
@media(max-width:620px){
 .price-list .price-row{grid-template-columns:minmax(0,1fr) auto;gap:5px 8px;padding:11px}
 .price-list .price-row>.offer-point{grid-column:1/-1;grid-row:1}
 .price-list .price-row>.offer-product{grid-column:1;grid-row:2}
 .price-list .price-row>.offer-price{grid-column:2;grid-row:2}
 .price-list .price-row>.offer-status{grid-row:3}
 .price-list .price-row>.offer-actions{grid-row:4}
 .price-list .price-row .price-history-btn{flex:1;min-height:40px;padding:6px}
}

/* Consulta móvel: mapa e preços em destaque, diretório e informação por pedido. */
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.market-title[hidden]{display:none!important}
#prices{padding-top:12px;padding-bottom:12px}
.market-center{scroll-margin-top:90px}
.map-note{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.map-note a{font-size:12px;font-weight:750;color:var(--navy);padding:8px 0}
.directory-page{margin:14px 0;padding:22px;border:1px solid var(--line);border-radius:16px;background:#fff}
.directory-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.directory-head h1{margin:4px 0;font-size:28px}
.directory-head .eyebrow{margin:0}
.directory-search{max-width:600px;font-size:13px;font-weight:700}
.directory-list{display:grid;gap:8px}
.directory-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px;border:1px solid var(--line);border-radius:12px}
.directory-row h2{font-size:16px;margin:0 0 4px}
.directory-row p{margin:0 0 3px;font-size:13px;color:#617382;line-height:1.5}
.directory-row small{font-size:12px;color:#617382}
.directory-row button{white-space:nowrap;min-height:44px;cursor:pointer}
.site-footer .footer-compact{padding:18px 0 14px;display:grid;gap:10px}
.footer-identity{display:flex;gap:8px 18px;align-items:baseline;flex-wrap:wrap}
.footer-identity strong{font-size:16px;color:#fff}
.footer-identity span{font-size:12px;color:#d2dfe6}
.footer-quick-links,.footer-detail-links{display:flex;align-items:center;gap:4px 20px;flex-wrap:wrap}
.footer-quick-links a,.footer-detail-links a,.site-footer .footer-install{font-size:13px;color:#e5edf1;text-decoration:none;min-height:36px;display:inline-flex;align-items:center;padding:4px 0;margin:0}
.site-footer .footer-install[hidden]{display:none}
.footer-more{border-top:1px solid #ffffff24;padding-top:8px}
.footer-more summary{font-size:13px;min-height:36px;cursor:pointer;align-content:center;width:fit-content}
.site-footer .footer-more p{font-size:12px;max-width:850px;line-height:1.5;margin:8px 0}
.footer-copyright{font-size:11px;color:#b7c9d2}
.catalog-evidence-note summary{cursor:pointer;font-size:12px;font-weight:750;min-height:32px;align-content:center}
.catalog-evidence-note p{font-size:12px;line-height:1.6;margin:8px 0}
.pbi-compat-empty{padding:16px}
.pbi-compat-empty strong{font-size:16px}
.pbi-compat-empty p{font-size:13px;margin:6px 0;line-height:1.5}
#buyerModal .modal-card{max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain;padding:22px}
#buyerModal .field{margin:12px 0;gap:6px}
#buyerModal .field label{font-size:13px}
#buyerModal .field select,#buyerModal .field input{font-size:16px;min-height:44px;min-width:0;max-width:100%}
#buyerModal select:disabled{color:#6b7b86;background:#f3f6f8}
#buyerModal input[type=file]{font-size:13px;padding:8px}
#buyerModal input[type=file]::file-selector-button{font:inherit;padding:9px 10px;margin-right:8px}
#buyerModal #buyerEvidenceHelp{font-size:12px;line-height:1.5}
#buyerModal .modal-close{width:36px;height:36px;cursor:pointer}
#buyerModal h2{padding-right:36px;font-size:24px;margin-bottom:8px}
#buyerModal .muted{font-size:14px;line-height:1.5;margin:0 0 12px}
@media(max-width:900px){
 .map-panel .map-actions{display:flex;gap:6px;flex-wrap:nowrap;width:100%}
 .map-panel .map-actions button{min-height:44px;font-size:12px;padding:8px 10px;width:auto;flex:1}
 .map-panel .panel-head{gap:8px}
 .map-panel .panel-head h2{font-size:19px}
 .map-panel .panel-kicker{display:none}
}

/* Sugestão de loja: a janela respeita a altura disponível e tem scroll próprio. */
#pointSuggestionModal{height:100vh;height:100dvh;padding:12px;overflow:hidden}
#pointSuggestionModal .point-suggestion-card{max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:0 18px 18px;scroll-padding-top:74px}
.suggestion-dialog-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff;padding:16px 0 12px;border-bottom:1px solid var(--line)}
.suggestion-dialog-head h2{margin:0;font-size:24px;line-height:1.2}
#pointSuggestionModal .suggestion-dialog-head .modal-close{position:static;flex:0 0 40px;width:40px;height:40px;cursor:pointer}
#pointSuggestionModal .muted{font-size:14px;line-height:1.5;margin:12px 0 16px}
#pointSuggestionModal .field label{font-size:13px}
#pointSuggestionModal input,#pointSuggestionModal select,#pointSuggestionModal textarea{font-size:16px;min-height:44px;min-width:0}
#pointSuggestionModal .suggestion-map-head strong{font-size:16px}
#pointSuggestionModal #suggestPointMap{height:250px;height:clamp(180px,30dvh,280px);position:relative;z-index:0;isolation:isolate}
#suggestPointNote{min-height:70px;resize:vertical}
body.point-suggestion-open{overflow:hidden}
.catalog-selection-note{font-size:13px;line-height:1.5;margin:0;padding:10px 14px;color:#425e60;background:#f3f9f6}
.compat-proof summary,.catalog-cross-border>summary{min-height:40px;align-content:center;cursor:pointer;font-weight:750;font-size:13px}
.compat-proof p{font-size:12px;line-height:1.6;margin:8px 0}
.catalog-cross-border>summary{padding:8px 12px;color:#244e63}
.catalog-cross-border .cross-border-warning{font-size:12px;line-height:1.5}
@media(max-width:900px){.mobile-bottom-nav{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:700px){
 #pointSuggestionModal{padding:8px}
 #pointSuggestionModal .point-suggestion-card{max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px);padding:0 14px 16px}
 .suggestion-dialog-head{padding-top:12px}.suggestion-dialog-head h2{font-size:22px}
 #pointSuggestionModal .suggestion-map-head{gap:6px}
 #pointSuggestionModal .suggestion-map-head button{min-height:44px}
 .catalog-evidence-note{margin-top:8px}
}
@media(max-width:700px){
 #catalog,#contribute{padding:14px}
 #catalog .section-head,#contribute .section-head{margin:8px 0 14px;padding-top:0}
 #catalog .section-head h2,#contribute .section-head h2{font-size:26px;line-height:1.15}
 #catalog .section-head p,#contribute .section-head p{font-size:14px;line-height:1.5}
 .catalog-side-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:9px;margin:10px 0 12px}
 .catalog-side-filters .pbi-filter{padding:7px;border-left-width:2px;min-width:0}
 .pbi-filter strong{font-size:12px;min-height:0;margin:0 0 4px}
 .pbi-filter select{height:44px;font-size:16px;padding:6px;max-width:100%;min-width:0}
 .pbi-filter-meta{grid-column:1/-1;flex-direction:row;align-items:center;flex-wrap:wrap;gap:5px 12px;padding:4px;min-width:0}
 .pbi-filter-meta strong{font-size:14px}.pbi-filter-meta small{font-size:11px;margin:0}
 .catalog-country-switch{max-width:100%;padding:3px;justify-content:space-between}
 .country-chip{padding:8px 10px;min-height:40px;font-size:13px}
 .catalog-pbi-main{padding:8px}
 .pbi-section-bar{padding:7px 9px;font-size:12px}
 .pbi-compat-empty{padding:14px}
 .pbi-compat-empty strong{font-size:15px}.pbi-compat-empty p{font-size:13px}
 #contribute .portal-card{padding:16px}
 #contribute .portal-icon{width:36px;height:36px;margin-bottom:8px}
 #contribute .portal-icon svg{width:23px;height:23px}
 #contribute .portal-card h3{font-size:20px;margin:6px 0}
 #contribute .portal-card p{font-size:14px;line-height:1.5;margin:8px 0}
 #contribute .primary,#contribute .ghost{font-size:14px;min-height:44px;padding:10px 12px}
 .directory-page{padding:15px}.directory-head{align-items:flex-start}.directory-head h1{font-size:24px}
 .directory-row{align-items:flex-start;flex-direction:column;gap:8px}
 .directory-row button{align-self:flex-end}
 .footer-identity{gap:4px;flex-direction:column}
 .site-footer .footer-compact{padding:16px 0 12px;gap:7px}
 .footer-quick-links a,.footer-detail-links a,.site-footer .footer-install{min-height:40px}
}

.results-pagination{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px 0 4px;font-size:13px}.results-pagination[hidden]{display:none}.results-pagination button{min-height:44px;border:1px solid var(--line);background:#fff;color:var(--navy);border-radius:9px;padding:8px 12px;font:inherit;cursor:pointer}.results-pagination button:disabled{opacity:.45;cursor:default}.filter-block:has(>#districtFilter),.filter-block:has(>#municipalityFilter){grid-template-columns:1fr}.filter-block:has(>#districtFilter)>select,.filter-block:has(>#municipalityFilter)>select{grid-column:1}

/* Consulta nacional: pontos individuais e etiquetas de preço sem sobreposição. */
.pdb-map-point-wrap{background:transparent!important;border:0!important;display:grid!important;place-items:center}
.map-point-dot{display:block;width:9px;height:9px;border:1.5px solid #fff;border-radius:50%;background:var(--navy);box-shadow:0 1px 2px #10354f44}
.pdb-map-point-wrap.overview .map-point-dot{width:5px;height:5px;border-width:1px;box-shadow:none;background:var(--blue);opacity:.8}
.pdb-map-point-wrap:hover .map-point-dot,.pdb-map-point-wrap:focus-visible .map-point-dot{background:var(--orange);width:13px;height:13px}
.pdb-map-marker-wrap .map-price-marker{width:74px;min-width:0;height:30px;box-shadow:0 1px 3px #10354f33}
#mapPanel{scroll-margin-top:90px}
/* Campos uniformes, sem cartões ou numeração por filtro. */
#filterPanel{padding:14px}
#filterPanel .filter-heading{padding:0 0 10px;border:0}
#filterPanel .filter-heading strong{font-size:16px}
#filterPanel .filter-heading button{min-height:40px;padding:6px;font-size:13px}
#filterPanel .filter-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px}
#filterPanel .filter-block{display:flex;flex-direction:column;align-items:stretch;gap:5px;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;min-width:0}
#filterPanel .filter-wide{grid-column:1/-1}
#filterPanel .filter-block>span{font-size:12px;font-weight:750;line-height:1.3;color:#42596b}
#filterPanel .filter-block input,#filterPanel .filter-block select{width:100%;max-width:100%;min-width:0;min-height:44px;height:44px;margin:0;padding:8px 9px;border-radius:8px;font-size:14px;line-height:1.25}
#filterPanel #applyFilters{width:100%;min-height:44px;margin-top:14px;padding:10px;font-size:14px}
#filterPanel .locate-btn{min-height:44px;margin-top:8px;padding:10px;background:#fff;color:var(--navy);border:1px solid var(--line);font-size:13px}
#filterPanel .locate-btn.location-active{color:var(--green);background:var(--greenSoft)}
#filterPanel .filter-note{padding:7px 0 0;font-size:11px;line-height:1.4}
@media(max-width:900px){
 #filterPanel .filter-block input,#filterPanel .filter-block select{font-size:16px}
 .mobile-filter-toggle{min-height:44px;padding:10px 14px}
}

/* Rotas: janela centrada no ecrã, incluindo telemóveis com teclado/barra do sistema. */
#directionsChooser.directions-chooser.modal{align-items:center;padding:16px}
#directionsChooser .directions-sheet{border-radius:20px;margin:0;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px)}
#directionsChooser .directions-handle{display:none}
@media(max-height:520px){#directionsChooser.directions-chooser.modal{padding:8px}#directionsChooser .directions-sheet{max-height:calc(100dvh - 16px);padding:14px}#directionsChooser .directions-sheet h2{font-size:22px}#directionsChooser .directions-app{min-height:48px;padding:8px}}

.map-region-label{font-size:12px;font-weight:750;color:var(--navy);margin:8px 0 4px}.map-region-label[hidden]{display:none}

/* Catálogo: cartões compactos nas alternativas e resumo da botija sem espaço vazio */
#catalogCompatibility{scroll-margin-top:96px}
.selected-bottle-summary{flex-wrap:wrap;gap:10px 14px}
.selected-bottle-summary .catalog-bottle-image{margin:0}
.catalog-bottle-image.selected-mini{width:64px;height:72px;flex:0 0 64px}
.selected-bottle-summary .price-shortcut{margin-left:auto}
.pbi-compact-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:8px;padding:10px 12px}
.pbi-compact-card{display:flex;flex-direction:column;align-items:center;gap:3px;padding:8px 6px;border:1px solid var(--line);border-radius:10px;background:#fff;text-align:center;font-size:12px}
.pbi-compact-card .catalog-bottle-image{width:72px;height:84px;margin:0 auto 4px}
.pbi-compact-card strong{color:var(--navy);font-size:13px}
.pbi-compact-card>span{color:var(--muted);line-height:1.35}
.pbi-compact-card .compact-region{font-weight:700;color:#744c1c}
.catalog-other-regions .pbi-compact-card{background:#fffdf9}
.catalog-cross-border .pbi-compact-grid{background:#fff}

.catalog-source-note{margin:10px 2px 0;font-size:12px;line-height:1.5;color:var(--muted)}
.compat-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:8px 16px;margin:8px 0}
.compat-facts div{min-width:0}
.compat-facts dt{font-size:10px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.compat-facts dd{margin:2px 0 0;font-size:13px;color:var(--navy);font-weight:650;overflow-wrap:anywhere}
.compat-reason{font-size:12px;line-height:1.5;margin:6px 0 0;color:#47606f}

/* Rodapé compacto: uma linha de ligações, texto legal curto e aviso de segurança sempre visível */
.site-footer .footer-compact{padding:14px 0 12px;gap:6px}
.footer-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:2px 24px}
.footer-row .footer-quick-links{gap:0 16px}
.footer-row .footer-quick-links a,.footer-row .footer-install{min-height:32px;font-size:12.5px}
.site-footer .footer-legal,.site-footer .footer-safety{font-size:11.5px;line-height:1.45;margin:0;max-width:1100px;color:#c3d3db}
.site-footer .footer-safety strong{color:#fff}
@media(max-width:620px){.footer-row{flex-direction:column;align-items:flex-start}.footer-row .footer-quick-links a,.footer-row .footer-install{min-height:40px}}


/* V0.8.6 — mapa e pop-ups utilizáveis em ecrãs pequenos. */
@media(max-width:900px){
  #leafletMap{height:clamp(300px,52dvh,520px)}
  #mapPanel{scroll-margin-top:80px}
  #filterPanel .filter-block select,#filterPanel .filter-block input{min-height:44px}
  .map-panel .map-actions{flex-wrap:wrap;gap:6px}
}
@media(max-width:520px){
  #leafletMap{height:clamp(285px,48dvh,440px)}
  #directionsChooser .directions-sheet{overflow-y:auto;overscroll-behavior:contain}
}
.pwa-update-notice{position:fixed;z-index:110;bottom:max(76px,calc(env(safe-area-inset-bottom) + 68px));left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));max-width:460px;margin:auto;display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:#10354f;color:#fff;border:1px solid #52748b;border-radius:14px;padding:13px 15px;box-shadow:0 10px 36px #0b243a55;font-size:13px}
.pwa-update-notice span{flex:1 1 180px}.pwa-update-notice button{min-height:40px;border-radius:8px;border:1px solid #aac5d5;padding:8px 12px;background:#fff;color:#10354f;font-weight:750;cursor:pointer}.pwa-update-notice .later{background:transparent;color:#fff}

/* V0.8.8: contributos simples e navegáveis sem novas chamadas D1. */
#buyerModal .modal-card{max-height:min(740px,calc(100dvh - 24px));overflow-y:auto;overscroll-behavior:contain}
#buyerPointSearch{width:100%;min-height:46px}
#buyerPoint{width:100%;min-height:46px}
.buyer-search-feedback{display:block;margin-top:5px;color:#536f7c;font-size:12px;line-height:1.5}
#buyerModal .field{margin-bottom:12px}
#buyerModal .field label{font-size:13px;line-height:1.4}
#buyerModal #evaluateBuyerPrice,#pointSuggestionModal #sendPointSuggestion{min-height:47px}
#buyerModal .evaluation-result[aria-live],#pointSuggestionResult[aria-live]{line-height:1.55}
@media(max-width:700px){
 #buyerModal{padding:8px;align-items:center}
 #buyerModal .modal-card{width:100%;max-height:calc(100dvh - 16px);padding:20px 14px;border-radius:14px}
 #buyerModal .modal-card>h2{font-size:22px;padding-right:35px}
 #pointSuggestionModal #suggestPointMap{height:225px}
 #pointSuggestionModal .point-suggestion-card{scroll-padding-bottom:24px}
 #pointSuggestionModal .suggestion-map-head{gap:8px}
 #pointSuggestionModal #sendPointSuggestion{margin-top:8px}
}


/* Página Redutores: guia do código, pesquisa de redutor e cartões por ligação */
.code-guide{display:grid;grid-template-columns:1.3fr 1fr;gap:14px 24px;padding:16px;margin:0 0 14px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:var(--shadow)}
.code-guide h3,.regulator-finder h3{margin:0 0 6px;font-size:16px;color:var(--navy)}
.code-guide p,.regulator-finder p{margin:0 0 10px;font-size:13px;line-height:1.55;color:#47606f}
.code-example{display:flex;flex-wrap:wrap;align-items:flex-start;gap:6px}
.code-example span{display:flex;flex-direction:column;gap:3px;padding:8px 12px;border-radius:10px;background:#eef4f8;min-width:92px}
.code-example b{font-size:18px;color:var(--navy)}
.code-example small{font-size:11px;color:var(--muted);line-height:1.3}
.code-example i{font-style:normal;align-self:center;color:var(--muted);font-weight:800}
.code-legend{border-collapse:collapse;font-size:12.5px;align-self:start}
.code-legend caption{text-align:left;font-weight:800;font-size:12px;color:var(--navy);padding-bottom:4px}
.code-legend th,.code-legend td{padding:5px 10px;border-bottom:1px solid var(--line);text-align:left}
.code-legend th{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}
.code-note{grid-column:1/-1;margin:0!important;font-size:12.5px!important}
.regulator-finder{padding:16px;margin:0 0 18px;border:1px solid #cfe3d9;border-radius:14px;background:linear-gradient(90deg,#f5fbf8,#fffaf5)}
.finder-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;margin-bottom:6px}
.finder-fields label{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:700;color:var(--navy)}
.finder-fields select{min-height:44px;font-size:14px}
.finder-card{margin-top:10px;padding:14px;border-radius:12px;background:#fff;border:1px solid var(--line)}
.finder-code{display:block;font-size:24px;color:var(--navy);margin:2px 0 6px;overflow-wrap:anywhere}
.finder-card p{margin:0 0 8px;font-size:13px;line-height:1.5}
.finder-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.regulator-info-grid{align-items:stretch}
.regulator-card{display:flex;flex-direction:column;gap:8px;padding:15px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:var(--shadow)}
.regulator-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.regulator-card h3{margin:0;font-size:15px;color:var(--navy)}
.connection-drawing{width:64px;height:64px;flex:0 0 64px}
.regulator-pressures{display:flex;flex-wrap:wrap;gap:6px;margin:0}
.pressure-chip{padding:4px 9px;border-radius:999px;font-size:12px;font-weight:700}
.pressure-chip.butane{background:#fff0e8;color:#9a4513}
.pressure-chip.propane{background:#e8f1fa;color:#17547f}
.regulator-usage{margin:0;font-size:12.5px;line-height:1.5;color:#47606f}
.regulator-code-chips{display:flex;flex-wrap:wrap;gap:6px}
.reg-chip{min-height:36px;padding:4px 10px;border:1px solid var(--line);border-radius:8px;background:#f5f8fa;color:var(--navy);font-size:12px;font-weight:700;cursor:pointer}
.reg-chip span{margin-left:4px;color:var(--muted);font-weight:600}
.reg-chip:hover{background:#eaf2f7}
.drawing-note{margin:10px 2px 0;font-size:12px;color:var(--muted)}
@media(max-width:800px){.code-guide{grid-template-columns:1fr}.code-example span{min-width:0;flex:1 1 90px}}


/* Guias: perguntas frequentes e segurança */
.faq-list{display:grid;gap:8px;margin:0 0 22px}
.faq-item{background:#fff;border:1px solid #dbe5e8;border-radius:12px;padding:0 14px}
.faq-item summary{cursor:pointer;font-weight:800;font-size:14px;color:#193e49;padding:13px 0;line-height:1.4}
.faq-item p{margin:0 0 13px;font-size:13px;line-height:1.65;color:#4f666f}
.safety-box{background:#fff8ec;border:1px solid #f0d9a8;border-radius:14px;padding:14px 16px;margin:0 0 22px}
.safety-list{margin:0 0 10px;padding-left:20px;display:grid;gap:7px;font-size:13px;line-height:1.6;color:#4a4130}
.faq-source{margin:0;font-size:11px;color:#7a6a45}
.guide-page-link{font-size:12px;font-weight:800;color:#0f6a78;text-decoration:none}
