/* Sistemas de pressão (Observatório da Terra): cada sistema com o seu tom e uma fotografia; as dimensões ambientais com a cor do tema.
   Cartões de fundo suave, sem bordas nem linhas, e texto de leitura confortável (16 px no corpo). */
#pressure-systems {
  --d-climate: #b4472f; --d-water: #1f6f8b; --d-land: #7a4d2b; --d-nature: #4f7a2b; --d-pollution: #6b6f78; --d-justice: #8a2f55;
}
#pressure-systems .system-card[data-system="energy"]     { --tom: #4b5563; --tom-suave: #e9ebee; }
#pressure-systems .system-card[data-system="renewables"] { --tom: #9a6a00; --tom-suave: #f8eed2; }
#pressure-systems .system-card[data-system="mining"]     { --tom: #8a4b32; --tom-suave: #f3e5de; }
#pressure-systems .system-card[data-system="digital"]    { --tom: #44529a; --tom-suave: #e8eaf6; }
#pressure-systems .system-card[data-system="food"]       { --tom: #a3472f; --tom-suave: #f6e5df; }
#pressure-systems .system-card[data-system="built"]      { --tom: #6d675b; --tom-suave: #ecebe5; }
#pressure-systems .system-card[data-system="fashion"]    { --tom: #9a3f72; --tom-suave: #f6e6ef; }
#pressure-systems .system-card[data-system="mobility"]   { --tom: #4a6178; --tom-suave: #e6ecf1; }
#pressure-systems .system-card[data-system="chemicals"]  { --tom: #6b4f8a; --tom-suave: #eee8f4; }

/* Filtros por dimensão: ponto na cor do tema; o escolhido enche-se dessa cor. */
html body #pressure-systems .dimension-filters { gap: 0.6rem; margin: 1.8rem 0 1rem; }
html body #pressure-systems .dimension-filters button { --c: #4b5563; display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.7rem 1.2rem !important; border: 0 !important; background: color-mix(in srgb, var(--c) 9%, #fff) !important; color: var(--ink, #20342a) !important; font-family: inherit !important; font-size: 0.95rem !important; font-weight: 600; letter-spacing: 0 !important; text-transform: none !important; }
html body #pressure-systems .dimension-filters button i { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--c); }
html body #pressure-systems .dimension-filters button:hover { background: color-mix(in srgb, var(--c) 18%, #fff) !important; }
html body #pressure-systems .dimension-filters button.active { background: var(--c) !important; color: #fff !important; }
html body #pressure-systems .dimension-filters button.active i { background: #fff; }
html body #pressure-systems .dimension-filters button[data-dimension="climate"]   { --c: var(--d-climate); }
html body #pressure-systems .dimension-filters button[data-dimension="water"]     { --c: var(--d-water); }
html body #pressure-systems .dimension-filters button[data-dimension="land"]      { --c: var(--d-land); }
html body #pressure-systems .dimension-filters button[data-dimension="nature"]    { --c: var(--d-nature); }
html body #pressure-systems .dimension-filters button[data-dimension="pollution"] { --c: var(--d-pollution); }
html body #pressure-systems .dimension-filters button[data-dimension="justice"]   { --c: var(--d-justice); }
html body #pressure-systems .dimension-filters button[data-dimension="all"] i { display: none; }
html body #pressure-systems .system-summary { margin: 0 0 1.6rem; font-size: 0.9rem; color: #5f6a64; }

/* Cartões. */
html body #pressure-systems .system-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
html body #pressure-systems .system-card { position: relative; display: flex; flex-direction: column; min-height: 0; padding: 0.7rem 0.7rem 0 !important; border: 0; border-radius: 20px; background: var(--tom-suave, #f1efe9); color: var(--ink, #20342a); transition: transform 0.2s ease, box-shadow 0.2s ease; }
html body #pressure-systems .system-card.live:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -24px var(--tom); }
html body #pressure-systems .system-card.next, html body #pressure-systems .system-card.mapped { background: var(--tom-suave, #f1efe9); }
html body #pressure-systems .system-photo { margin: 0; }
html body #pressure-systems .system-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; background: #e6e1d5; }
html body #pressure-systems .system-photo figcaption { padding: 0.4rem 0.3rem 0; font-size: 0.7rem; line-height: 1.4; color: #6a746d; }
html body #pressure-systems .system-photo a { position: relative; z-index: 2; color: inherit; text-decoration: underline; }
html body #pressure-systems .system-body { display: flex; flex: 1; flex-direction: column; padding: 1.1rem 0.8rem 1.4rem; }
html body #pressure-systems .system-card small { display: block; color: var(--tom); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
html body #pressure-systems .system-card h3 { margin: 0.5rem 0 0.7rem; font-family: Georgia, serif !important; font-size: 1.6rem; line-height: 1.15; color: var(--ink, #20342a); }
html body #pressure-systems .system-card p { margin: 0 0 1.1rem; color: #3f4a43; font-size: 1rem; line-height: 1.65; }
html body #pressure-systems .system-dims { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: auto 0 1.1rem; padding: 0; list-style: none; }
html body #pressure-systems .system-dims li { display: inline-flex; align-items: center; gap: 0.4rem; margin: 0; padding: 0.28rem 0.7rem; border-radius: 999px; background: rgba(255, 255, 255, 0.75); color: #3f4a43; font-size: 0.78rem; font-weight: 600; }
html body #pressure-systems .system-dims li::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--dc, #999); }
html body #pressure-systems .system-dims li[data-dim="climate"]   { --dc: var(--d-climate); }
html body #pressure-systems .system-dims li[data-dim="water"]     { --dc: var(--d-water); }
html body #pressure-systems .system-dims li[data-dim="land"]      { --dc: var(--d-land); }
html body #pressure-systems .system-dims li[data-dim="nature"]    { --dc: var(--d-nature); }
html body #pressure-systems .system-dims li[data-dim="pollution"] { --dc: var(--d-pollution); }
html body #pressure-systems .system-dims li[data-dim="justice"]   { --dc: var(--d-justice); }
html body #pressure-systems .system-dims li.focus { background: var(--dc); color: #fff; }
html body #pressure-systems .system-dims li.focus::before { background: #fff; }
html body #pressure-systems .system-cta { color: var(--tom); font-size: 0.85rem; font-weight: 800; letter-spacing: 0.08em; text-decoration: none; text-transform: uppercase; border: 0 !important; }
html body #pressure-systems .system-card.live .system-cta::after { content: ""; position: absolute; inset: 0; border-radius: 20px; }
html body #pressure-systems .system-card:not(.live) .system-cta { color: #6a746d; }
html body #pressure-systems .system-card.live .system-cta:focus-visible::after { outline: 3px solid var(--tom); outline-offset: 2px; }

@media (max-width: 1100px) { html body #pressure-systems .system-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  html body #pressure-systems .system-grid { grid-template-columns: minmax(0, 1fr); }
  html body #pressure-systems .system-card h3 { font-size: 1.45rem; }
}

/* Como as pressões se relacionam: um esquema com os elos, o mecanismo, os indicadores a cruzar e a nota recolhida; cada relação com o seu tom. */
.nexus-card[data-nexus="alimentos_clima_natureza"] { --tom: #4f7a2b; --tom-suave: #edf1dc; }
.nexus-card[data-nexus="energia_minerais"]         { --tom: #9a6a00; --tom-suave: #f8eed2; }
.nexus-card[data-nexus="digital_energia_agua"]     { --tom: #44529a; --tom-suave: #e8eaf6; }
.nexus-card[data-nexus="cidade_solo_calor"]        { --tom: #a3472f; --tom-suave: #f6e5df; }
.nexus-card[data-nexus="clima_oceano"]             { --tom: #1f6f8b; --tom-suave: #e2eff4; }

html body #connections h2 { font-size: clamp(1.9rem, 2.8vw, 2.5rem); line-height: 1.1; }
html body #connections p { font-size: 1rem; color: #4d5a52; }
html body #connections + .nexus-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.2rem; margin-top: 1.6rem; }
html body .nexus-grid > .nexus-card { grid-column: span 2; }
html body .nexus-grid > .nexus-card:nth-child(n+4) { grid-column: span 3; }
html body .nexus-card { display: flex; flex-direction: column; padding: 0.7rem !important; border: 0; border-radius: 20px; background: var(--tom-suave, #f1efe9); }
html body .nexus-diagram { display: flex; align-items: flex-start; justify-content: center; gap: 0; padding: 1.3rem 0.6rem 1.1rem; border-radius: 14px; background: rgba(255, 255, 255, 0.72); }
html body .nexus-node { display: flex; flex: 0 1 auto; flex-direction: column; align-items: center; gap: 0.5rem; min-width: 0; max-width: 6.4rem; text-align: center; }
html body .nexus-node i { width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--n); box-shadow: 0 0 0 6px color-mix(in srgb, var(--n) 16%, transparent); }
html body .nexus-node b { color: #2f3a33; font-size: 0.82rem; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
html body .nexus-link { flex: 1 1 1.4rem; min-width: 1rem; max-width: 3rem; height: 2px; margin: calc(1.2rem - 1px) 0.2rem 0; background: repeating-linear-gradient(90deg, #8d978f 0 5px, transparent 5px 9px); }
html body .nexus-card h3 { margin: 1.2rem 0.8rem 0.5rem; font-family: Georgia, serif !important; font-size: 1.45rem; line-height: 1.15; color: var(--ink, #20342a); }
html body .nexus-card > p { margin: 0 0.8rem 1rem; color: #3f4a43; font-size: 1rem; line-height: 1.65; }
html body .nexus-indicators { margin: auto 0.8rem 1rem; }
html body .nexus-indicators > span { display: block; margin-bottom: 0.5rem; color: var(--tom); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
html body .nexus-indicators ul { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
html body .nexus-indicators li { margin: 0; padding: 0.28rem 0.7rem; border-radius: 999px; background: rgba(255, 255, 255, 0.75); color: #3f4a43; font-size: 0.8rem; font-weight: 600; }
html body .nexus-card details { margin: 0 0.8rem 1rem; padding: 0; border: 0; }
html body .nexus-card summary { cursor: pointer; color: var(--tom); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
html body .nexus-card details[open] summary { margin-bottom: 0.4rem; }
html body .nexus-card details > p { margin: 0; padding: 0.8rem 1rem; border-radius: 12px; background: rgba(255, 255, 255, 0.72); color: #3f4a43; font-size: 0.95rem; line-height: 1.6; }
@media (max-width: 1100px) { html body #connections + .nexus-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } html body .nexus-grid > .nexus-card, html body .nexus-grid > .nexus-card:nth-child(n+4) { grid-column: auto; } html body .nexus-grid > .nexus-card:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (max-width: 700px) { html body #connections + .nexus-grid { grid-template-columns: minmax(0, 1fr); } html body .nexus-grid > .nexus-card:last-child:nth-child(odd) { grid-column: auto; } html body .nexus-card h3 { font-size: 1.3rem; } }

/* Método: o painel sem bordas, quatro regras em cartões coloridos com um ícone e as fontes em etiquetas legíveis. */
html body .method-section { border: 0 !important; }
html body .method-section .pressure-heading h2 { font-size: clamp(1.9rem, 3vw, 2.7rem); }
html body .method-section .pressure-heading p { font-size: 1.02rem; line-height: 1.65; color: #4d5a52 !important; }
html body .method-section .rule-grid { gap: 1.2rem; margin-top: 2rem; }
html body .method-section .rule-grid article { --c: #4f7a2b; --cs: #e6efdb; padding: 1.5rem 1.4rem 1.6rem !important; border-top: 0 !important; border-radius: 18px; background: var(--cs) !important; }
html body .method-section .rule-grid article:nth-child(1) { --c: #4f7a2b; --cs: #e6efdb; }
html body .method-section .rule-grid article:nth-child(2) { --c: #a3472f; --cs: #f6e5df; }
html body .method-section .rule-grid article:nth-child(3) { --c: #2a7473; --cs: #dcefed; }
html body .method-section .rule-grid article:nth-child(4) { --c: #8a6a0e; --cs: #f6efd3; }
html body .method-section .rule-icon { display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 50%; background: rgba(255, 255, 255, 0.8); color: var(--c); }
html body .method-section .rule-grid h3 { margin: 1rem 0 0.5rem; font-size: 1.25rem; line-height: 1.2; }
html body .method-section .rule-grid p { margin: 0; font-size: 1rem; line-height: 1.6; color: #3f4a43 !important; }
html body .method-section .pressure-sources { align-items: center; gap: 0.5rem 0.6rem; margin-top: 2rem; padding-top: 0; border-top: 0; }
html body .method-section .sources-label { margin-right: 0.4rem; color: #5f6a64; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
html body .method-section .pressure-sources a { padding: 0.45rem 0.95rem; border: 0 !important; background: rgba(255, 255, 255, 0.85); color: #3f5646 !important; font-size: 0.82rem; font-weight: 700; letter-spacing: 0; text-transform: none; }
html body .method-section .pressure-sources a:hover { background: #fff; color: #20342a !important; }
