/* Restantes páginas (Glossário, Produtos, Serviços, Técnicas, Enologia, Aviação, Contactos, Manifesto, Circuitos curtos, Apoios, Transição ética, página inicial…):
   o mesmo desenho sóbrio. Só com body.resto-sobrio. Filetes em vez de cartões; etiquetas e filtros em texto; a cor do tema (--hero-accent) fica no acento. */

html body.resto-sobrio:not(#c1):not(#c2):not(#c3) {
    --r-acento: color-mix(in srgb, var(--hero-accent, #2b6a3d) 82%, #1c2a21);
    --r-acento-escuro: color-mix(in srgb, var(--hero-accent, #2b6a3d) 48%, #1c2a21);
    --r-tinta: #1c2a21; --r-suave: #56635b; --r-ténue: #87928b; --r-linha: #dde4df;
    --c-acento: var(--r-acento); --c-acento-escuro: var(--r-acento-escuro);
}

/* Títulos: Georgia, como o resto do site */
html body.resto-sobrio:not(#c1):not(#c2):not(#c3) #main :is(h2, h3) { font-family: Georgia, "Times New Roman", serif !important; }

/* ---------- Cartões e caixas: filete em cima, sem fundo, sem cantos ---------- */
html body.resto-sobrio:not(#c1):not(#c2):not(#c3) #main :is(
    .gl-termo, .product-card, .path-card, .blueprint-note, .bp-cartoes > article, .bp-fluxo > li, .blueprint-figure, .guia-fichas, .solar-tool, .input-card, .bp-resumo, .bp-termo,
    .tcard, .metric-grid > article, .casta-card, .fase, .practice-card, .catalog-card, .pillar, .reason, .privacy-summary > div, .help > article, .mail-card, .principle, .contrast > article,
    .cc-card, .cc-legal > li, .cc-duas > div, .cc-form, .cc-aviso, .ap-card, .ap-lc, .equiv-card, .warning, .participa-now, .consults-top, .consult, .nowcard, .participa-extra > article,
    .ledger-col, .zaer-flow, .participa-leitura, .participa-local, .impact-node, .pr-passo, .rec, .calc, .av-signif, .encounter, .pulse-notes p, .hub-latest-grid > a
) {
    background: none !important; border: 0 !important; border-top: 1px solid var(--r-linha) !important; border-radius: 0 !important; box-shadow: none !important;
    padding-left: 0 !important; padding-right: 0 !important;
}
html body.resto-sobrio:not(#c1):not(#c2):not(#c3) #main :is(.tcard-media, .product-card img, .path-card img, .casta-card img, .tcard img) { border-radius: 4px !important; box-shadow: none !important; }
html body.resto-sobrio:not(#c1):not(#c2):not(#c3) #main :is(.product-grid, .service-areas, .bp-cartoes, .castas-grid, .practice-grid, .pest-grid, .pillars-grid, .reasons, .ap-grelha, .cc-grelha, .technique-group-cards, .consults) { gap: 0 2rem !important; }
html body.resto-sobrio:not(#c1):not(#c2):not(#c3) #main td { background: none !important; border-radius: 0 !important; }
html body.resto-sobrio:not(#c1):not(#c2):not(#c3) #main code { background: none !important; padding: 0 !important; color: var(--r-acento-escuro); }
html body.resto-sobrio:not(#c1):not(#c2):not(#c3) #main .metric-grid > article :is(small, strong) { color: var(--r-acento-escuro) !important; -webkit-text-fill-color: currentColor !important; }

/* ---------- Etiquetas em cápsula: texto ---------- */
html body.resto-sobrio:not(#c1):not(#c2):not(#c3) #main :is(.gl-cat, .ap-badge, .ap-est, .cc-tags > span, .bp-etiqueta, .satire-pill, .c-tema, .signal, .zchips i, .ledger-label, .cv-estado, .pill) {
    display: inline-block; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important;
    color: var(--r-ténue) !important; -webkit-text-fill-color: currentColor !important; font-size: .68rem !important; font-weight: 800 !important; letter-spacing: .1em; text-transform: uppercase;
}
html body.resto-sobrio:not(#c1):not(#c2):not(#c3) #main .cc-tags { gap: 0 1rem !important; }
html body.resto-sobrio:not(#c1):not(#c2):not(#c3) #main :is(.gl-ver a, .gl-onde a, .topic-back-links a, .ft-links a, .button-mail, .foco-pill) {
    display: inline; width: auto !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important;
    color: var(--r-acento) !important; -webkit-text-fill-color: currentColor !important; text-decoration: underline; text-underline-offset: 4px; font-weight: 800; transition: color .15s;
}
html body.resto-sobrio:not(#c1):not(#c2):not(#c3) #main :is(.gl-ver a, .gl-onde a, .topic-back-links a, .ft-links a, .button-mail, .foco-pill):hover { color: var(--r-acento-escuro) !important; background: none !important; }
html body.resto-sobrio:not(#c1):not(#c2):not(#c3) #main :is(.gl-ver, .gl-onde) { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; align-items: baseline; }

/* ---------- Filtros, separadores e botões: texto, com sublinhado no ativo ---------- */
html body.resto-sobrio:not(#c1):not(#c2):not(#c3) #main :is(.gl-chips, .climate-filters, .chips, .cc-chips, .ap-filtros, .cm-seg) { gap: .35rem 1.3rem !important; background: none !important; border: 0 !important; padding-left: 0 !important; }
html body.resto-sobrio:not(#c1):not(#c2):not(#c3) #main :is(.gl-chips button, .climate-filters button, .chips button, .cc-chips button, .ap-filtros button, .cm-seg button, .cm-seg-b) {
    width: auto !important; height: auto !important; min-height: 0 !important; padding: .35rem 0 !important; border: 0 !important; border-bottom: 2px solid transparent !important; border-radius: 0 !important; background: none !important; box-shadow: none !important;
    color: var(--r-suave) !important; -webkit-text-fill-color: currentColor !important; font-weight: 600 !important; transition: color .18s ease, border-color .18s ease;
}
html body.resto-sobrio:not(#c1):not(#c2):not(#c3) #main :is(.gl-chips button, .climate-filters button, .chips button, .cc-chips button, .ap-filtros button, .cm-seg button, .cm-seg-b):hover { color: var(--r-acento) !important; background: none !important; }
html body.resto-sobrio:not(#c1):not(#c2):not(#c3) #main :is(.gl-chips button, .climate-filters button, .chips button, .cc-chips button, .ap-filtros button, .cm-seg button, .cm-seg-b):is([aria-pressed="true"], .active, .is-active, .on, .sel, .selected, [aria-selected="true"]) { color: var(--r-acento-escuro) !important; border-bottom-color: var(--r-acento) !important; background: none !important; }
html body.resto-sobrio:not(#c1):not(#c2):not(#c3) #main :is(#calculate-solar, details > summary.btn, .solar-tool button) {
    width: auto !important; padding: .2rem 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important;
    color: var(--r-acento) !important; -webkit-text-fill-color: currentColor !important; font-size: .78rem !important; letter-spacing: .1em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px;
}
/* «Ver …» (resumos de detalhes) que eram botões a cheio */
html body.resto-sobrio:not(#c1):not(#c2):not(#c3) #main details > summary { background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; color: var(--r-acento) !important; -webkit-text-fill-color: currentColor !important; padding-left: 0 !important; }

/* Campos: só a linha de baixo */
html body.resto-sobrio:not(#c1):not(#c2):not(#c3) #main :is(.catalogue-busca input, #casta-search, .cc-form input, .cc-form select, .input-card input, .input-card select) {
    border: 0 !important; border-bottom: 1px solid #b9c4bc !important; border-radius: 0 !important; background-color: transparent !important; box-shadow: none !important; padding-left: 0 !important;
}

/* Índice de letras (Glossário) e ligações a técnicas (Guias): texto */
html body.resto-sobrio:not(#c1):not(#c2):not(#c3) #main .gl-az { gap: .3rem 1.2rem !important; }
html body.resto-sobrio:not(#c1):not(#c2):not(#c3) #main .gl-az :is(a, button, span) {
    width: auto !important; height: auto !important; min-width: 0 !important; padding: .2rem 0 !important; border: 0 !important; border-bottom: 2px solid transparent !important; border-radius: 0 !important; background: none !important; box-shadow: none !important;
    color: var(--r-suave) !important; -webkit-text-fill-color: currentColor !important; font-weight: 700 !important; text-decoration: none;
}
html body.resto-sobrio:not(#c1):not(#c2):not(#c3) #main .gl-az :is(a, button):hover { color: var(--r-acento) !important; border-bottom-color: var(--r-acento) !important; }
html body.resto-sobrio:not(#c1):not(#c2):not(#c3) #main .guia-fichas li > a {
    display: inline; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important;
    color: var(--r-acento) !important; -webkit-text-fill-color: currentColor !important; text-decoration: underline; text-underline-offset: 4px; font-weight: 700;
}
html body.resto-sobrio:not(#c1):not(#c2):not(#c3) #main :is(.blueprint-benefits > article, .blueprint-steps > li, .soil-blueprint > article) {
    background: none !important; border: 0 !important; border-top: 1px solid var(--r-linha) !important; border-radius: 0 !important; box-shadow: none !important; padding-left: 0 !important; padding-right: 0 !important;
}
html body.resto-sobrio:not(#c1):not(#c2):not(#c3) #main :is(.blueprint-steps, .blueprint-benefits) { gap: 0 1.8rem !important; }
html body.resto-sobrio:not(#c1):not(#c2):not(#c3) #main .blueprint-steps > li :is(.step-number, .bp-num, b:first-child, i) { background: none !important; border: 0 !important; color: var(--r-acento) !important; }

/* ---------- Transição ética, Enologia e página inicial: o que faltava ---------- */
html body.resto-sobrio:not(#c1):not(#c2):not(#c3) #main :is(
    .leitura-casos > li, details.territorio, .zb-t, .case-kpi, .potential > article, .pz-open, .pz-analysis, .c-numeros, .ledger-stat, .c-alert, .zc, .zaer-flow li, .now-insight, .part-curtas, .satire-quote,
    .project-observatory, .climate-details > article, .etapa, .regional-box, .global-catalogue, .diagnostic-note, .safety-note, .empty-state, .climate-regions > li, .pulse > article.number, .atlas-passo, .explorer
) {
    background: none !important; border: 0 !important; border-top: 1px solid var(--r-linha) !important; border-radius: 0 !important; box-shadow: none !important; padding-left: 0 !important; padding-right: 0 !important;
}
html body.resto-sobrio:not(#c1):not(#c2):not(#c3) #main :is(.pulse, .atlas-mapa, .potential, .leitura-casos, .climate-details, .vine-calendar) { gap: 0 2rem !important; }
html body.resto-sobrio:not(#c1):not(#c2):not(#c3) #main .zb-t { border-top: 0 !important; }
html body.resto-sobrio:not(#c1):not(#c2):not(#c3) #main :is(.hemi-controls, .quick-filters, .project-filters) { gap: .35rem 1.3rem !important; background: none !important; border: 0 !important; }
html body.resto-sobrio:not(#c1):not(#c2):not(#c3) #main :is(.hemi-controls button, .quick-filters button, .project-filters button) {
    width: auto !important; height: auto !important; min-height: 0 !important; padding: .35rem 0 !important; border: 0 !important; border-bottom: 2px solid transparent !important; border-radius: 0 !important; background: none !important; box-shadow: none !important;
    color: var(--r-suave) !important; -webkit-text-fill-color: currentColor !important; font-weight: 600 !important; transition: color .18s ease, border-color .18s ease;
}
html body.resto-sobrio:not(#c1):not(#c2):not(#c3) #main :is(.hemi-controls button, .quick-filters button, .project-filters button):hover { color: var(--r-acento) !important; background: none !important; }
html body.resto-sobrio:not(#c1):not(#c2):not(#c3) #main :is(.hemi-controls button, .quick-filters button, .project-filters button):is([aria-pressed="true"], .active, .is-active, .on, .sel, .selected, [aria-selected="true"]) { color: var(--r-acento-escuro) !important; border-bottom-color: var(--r-acento) !important; background: none !important; }
html body.resto-sobrio:not(#c1):not(#c2):not(#c3) #main :is(.catalogue-more, .news-all, .news-links button, .news-links a, .project-reference-links a, .manifesto a.action.primary, a.action.primary) {
    display: inline; width: auto !important; padding: .2rem 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important;
    color: var(--r-acento) !important; -webkit-text-fill-color: currentColor !important; font-size: .78rem !important; font-weight: 900 !important; letter-spacing: .08em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px;
}
html body.resto-sobrio:not(#c1):not(#c2):not(#c3) #main :is(.atlas-tools select, .grape-search input, .geo-trigger) { border: 0 !important; border-bottom: 1px solid #b9c4bc !important; border-radius: 0 !important; background-color: transparent !important; box-shadow: none !important; padding-left: 0 !important; }
html body.resto-sobrio:not(#c1):not(#c2):not(#c3) #main .project-reference-links { gap: .4rem 1.4rem !important; }

/* Consultas (Transição ética): estado e ações em texto */
html body.resto-sobrio:not(#c1):not(#c2):not(#c3) #main :is(.c-badge, .pz-when, .pr-n) {
    display: inline-block; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important;
    -webkit-text-fill-color: currentColor !important; font-size: .7rem !important; font-weight: 800 !important; letter-spacing: .1em; text-transform: uppercase;
}
html body.resto-sobrio:not(#c1):not(#c2):not(#c3) #main .c-badge { color: #6a9a84 !important; }
html body.resto-sobrio:not(#c1):not(#c2):not(#c3) #main .consult-analysis .c-badge { color: #b89a52 !important; }
html body.resto-sobrio:not(#c1):not(#c2):not(#c3) #main .pz-when { color: var(--r-ténue) !important; }
html body.resto-sobrio:not(#c1):not(#c2):not(#c3) #main .pr-n { color: var(--r-acento) !important; }
html body.resto-sobrio:not(#c1):not(#c2):not(#c3) #main .c-foot a {
    display: inline; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important;
    color: var(--r-acento) !important; -webkit-text-fill-color: currentColor !important; font-weight: 800; text-decoration: underline; text-underline-offset: 4px;
}
html body.resto-sobrio:not(#c1):not(#c2):not(#c3) #main .c-chips { gap: .35rem 1.2rem !important; }
html body.resto-sobrio:not(#c1):not(#c2):not(#c3) #main .c-chip { padding: .3rem 0 !important; border: 0 !important; border-bottom: 2px solid transparent !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; color: var(--r-suave) !important; -webkit-text-fill-color: currentColor !important; }
html body.resto-sobrio:not(#c1):not(#c2):not(#c3) #main .c-chip.is-on { color: var(--r-acento-escuro) !important; border-bottom-color: var(--r-acento) !important; }

/* ---------- Fichas (espécie, notícia, cultura) e restos ---------- */
html body.resto-sobrio:not(#c1):not(#c2):not(#c3) #main h1 { font-family: Georgia, "Times New Roman", serif !important; }
html body.resto-sobrio:not(#c1):not(#c2):not(#c3) #main :is(article.panel, .biocultura-box, .source-card, .fg-top) {
    background: none !important; border: 0 !important; border-top: 1px solid var(--r-linha) !important; border-radius: 0 !important; box-shadow: none !important; padding-left: 0 !important; padding-right: 0 !important;
}
html body.resto-sobrio:not(#c1):not(#c2):not(#c3) #main :is(.panel-grid, .panels) { gap: 0 2rem !important; }
html body.resto-sobrio:not(#c1):not(#c2):not(#c3) #main article.panel > :is(h3, h4, strong, .eyebrow) { color: var(--r-acento) !important; }
html body.resto-sobrio:not(#c1):not(#c2):not(#c3) #main :is(.noticia-tipo, .footer-link-oficial) {
    display: inline-block; width: auto !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important;
    color: var(--r-acento) !important; -webkit-text-fill-color: currentColor !important; font-size: .72rem !important; font-weight: 800 !important; letter-spacing: .1em; text-transform: uppercase;
}
html body.resto-sobrio:not(#c1):not(#c2):not(#c3) #main .footer-link-oficial { text-decoration: underline; text-underline-offset: 4px; }
/* Separadores por chave (Enologia): texto com sublinhado */
html body.resto-sobrio:not(#c1):not(#c2):not(#c3) #main button[data-key] {
    width: auto !important; min-height: 0 !important; padding: .35rem 0 !important; border: 0 !important; border-bottom: 2px solid transparent !important; border-radius: 0 !important; background: none !important; box-shadow: none !important;
    color: var(--r-suave) !important; -webkit-text-fill-color: currentColor !important; font-weight: 600 !important;
}
html body.resto-sobrio:not(#c1):not(#c2):not(#c3) #main button[data-key]:is(.active, [aria-pressed="true"]) { color: var(--r-acento-escuro) !important; border-bottom-color: var(--r-acento) !important; }

/* Ficha de casta (Enologia): perfil e caixas em filete */
html body.resto-sobrio:not(#c1):not(#c2):not(#c3) #main :is(.detail-box, .profile-cell) {
    background: none !important; border: 0 !important; border-top: 1px solid var(--r-linha) !important; border-radius: 0 !important; box-shadow: none !important; padding-left: 0 !important; padding-right: 0 !important;
}
html body.resto-sobrio:not(#c1):not(#c2):not(#c3) #main :is(.detail-columns, .profile-grid) { gap: 0 2rem !important; }
html body.resto-sobrio:not(#c1):not(#c2):not(#c3) #main .profile-cell { padding-top: .8rem !important; }
html body.resto-sobrio:not(#c1):not(#c2):not(#c3) #main .profile-cell :is(b, strong) { color: var(--r-acento-escuro) !important; -webkit-text-fill-color: currentColor !important; }
html body.resto-sobrio:not(#c1):not(#c2):not(#c3) #main .detail-back {
    display: inline-block; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important;
    color: var(--r-acento) !important; -webkit-text-fill-color: currentColor !important; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px;
}
