
@media(max-width:800px){#navbar .assistant-tab{display:none}}
html[data-theme="dark"]{color-scheme:dark;--cream:#152119;--cream2:#202e24;--light:#1c2a21;--sand:#344538;--sand2:#859a85;--text:#f1f2e9;--muted:#c4cdbf;--border:#435647}
html[data-theme="dark"] nav{background:rgba(21,33,25,.98)}
html[data-theme="dark"] :is(.hub-card,.hub-sort,.hub-search,.hub-tab,.tab,.panel,.card,.metric,.compose-sheet,.mefram-dialog,.hub-article,.hub-list,.hub-overview){background-color:#213025;color:var(--text)}
html[data-theme="dark"] :is(.hero h1,.hero h1 em,.logo-name,.section-label,.sobre-h2,.metric-num,.clink,.art-body h3,.hub-title,.hub-card-title,.hub-body,.body-p,.btn-s,.panel-title,.panel-text,.compose-sheet label,.mefram-dialog h2){color:#e1ebd8}
html[data-theme="dark"] :is(.tab.active,.hub-tab.active,.btn-p){color:white;background:#365d45}
html[data-theme="dark"] .nav-row2 a.active,html[data-theme="dark"] .nav-row2 a:hover{color:#e1ebd8;border-color:#a4c49c}
html[data-theme="dark"] :is(.compose-sheet,.mefram-dialog) :is(input,select,textarea,output,button,a){background-color:#283a2d;color:#eff3ea}
html[data-theme="dark"] .hamburger span{background:#e1ebd8}

.contact-profile input{display:block;width:100%;box-sizing:border-box;margin:.25rem 0 .65rem;padding:.6rem;font:inherit;color:inherit;background:var(--light);border:1px solid #849a86;border-radius:5px}
.contact-profile p{margin:.55rem 0 .9rem}
.compose-sheet :focus-visible{outline:2px solid currentColor;outline-offset:2px}

.language-picker{position:relative;display:inline-block;flex:0 0 auto;color:var(--text);font:500 14px/1.35 'DM Sans',sans-serif;letter-spacing:normal;text-align:start}
.language-picker summary{list-style:none;display:flex;align-items:center;justify-content:center;gap:.4rem;min-height:42px;padding:.45rem .65rem;border:1px solid var(--border);border-radius:9px;color:var(--g);background:var(--cream);cursor:pointer}
.language-picker summary::-webkit-details-marker{display:none}
.language-picker summary i{width:.48em;height:.48em;margin-left:.15em;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:translateY(-2px) rotate(45deg);transition:transform .16s}
.language-picker[open] summary i{transform:translateY(2px) rotate(225deg)}
.language-flag{width:23px;height:16px;flex:none;border-radius:2px;overflow:hidden}
.language-options{position:absolute;z-index:12;right:0;top:calc(100% + 5px);min-width:195px;max-width:calc(100vw - 1rem);padding:5px;border:1px solid var(--border);border-radius:12px;background:var(--cream);box-shadow:0 8px 22px #142c2026}
.language-options a{display:grid;align-items:center;grid-template-columns:23px 1fr 1em;gap:.6rem;min-height:45px;padding:.55rem .65rem;border:0;border-radius:7px;color:var(--text);text-decoration:none}
.language-options a:is(:hover,:focus-visible){background:var(--cream2);color:var(--text)}
.language-options a[aria-current]{color:#fff;background:#294b39}
.language-options a[aria-current]::after{content:'✓';font-size:1.1em}
.language-picker :focus-visible{outline:2px solid #a87433;outline-offset:2px}
footer .language-options{top:auto;bottom:calc(100% + 5px)}
html[data-theme="dark"] .language-picker summary{background:#294438;color:#f4f6f1}
html[data-theme="dark"] .language-options{background:#182a21;border-color:#446051}
@media(max-width:800px){#navbar .language-picker{order:2}#navbar .nav-right{gap:8px}}
@media(prefers-reduced-motion:reduce){.language-picker summary i{transition:none}}

#navbar .brand-night{display:none}
#navbar .logo-name{color:#005e3b}
html[data-theme="dark"] #navbar .brand-day{display:none}
html[data-theme="dark"] #navbar .brand-night{display:block}
html[data-theme="dark"] #navbar .logo-name{color:#e8b740}

.compose-sheet .send-mail[hidden]{display:none!important}

.theme-picker{display:inline-flex;align-items:center;flex:none;gap:1px;padding:2px;border:1px solid #c4ccbc;border-radius:999px;background:#eceee5;color:#445946;font:600 12px/1 'DM Sans',sans-serif}
.theme-option{position:relative;display:block;margin:0;cursor:pointer}
.theme-option input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer;z-index:1}
.theme-tile{display:flex;align-items:center;justify-content:center;gap:5px;min-height:30px;padding:0 9px;border:1px solid transparent;border-radius:999px;white-space:nowrap;transition:background-color .15s,color .15s}
.theme-tile svg{display:block;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.theme-option input:checked+.theme-tile{background:#fffdf4;color:#45370e;border-color:#bcae7f;box-shadow:0 1px 2px #292d1226}
.theme-option input:checked+.theme-tile svg{color:#856214}
.theme-option:hover input:not(:checked)+.theme-tile{background:#dde3d6}
.theme-option input:focus-visible+.theme-tile{outline:2px solid #236745;outline-offset:2px}
html[data-theme="dark"] .theme-picker{background:#16251c;border-color:#435c49;color:#c1cfc0}
html[data-theme="dark"] .theme-option input:checked+.theme-tile{background:#314b39;color:#f8f5df;border-color:#6d886f}
html[data-theme="dark"] .theme-option input:checked+.theme-tile svg{color:#f1cf73}
html[data-theme="dark"] .theme-option:hover input:not(:checked)+.theme-tile{background:#25392b}
html[data-theme="dark"] .theme-option input:focus-visible+.theme-tile{outline-color:#f4d680}
@media(max-width:800px){.theme-tile>span{display:none}.theme-tile{min-height:38px;min-width:36px;padding:0}.theme-tile svg{width:18px;height:18px}#navbar .theme-picker{order:1}}
@media(max-width:380px){#navbar .nav-row1{padding-inline:8px}#navbar .nav-right{gap:4px}#navbar .logo{gap:5px}.theme-tile{min-width:30px}}
@media(prefers-reduced-motion:reduce){.theme-tile{transition:none}}
@media(forced-colors:active){.theme-option input:checked+.theme-tile{outline:2px solid Highlight;outline-offset:-2px}}

#mefram-chat{--chat-page:#fbfaf5;--chat-line:#e6eade;--chat-ink:#213b2b;--chat-border:#b7c6b5;--chat-user:#25503b;--chat-user-ink:#fff;position:fixed;inset:auto 20px 20px auto;margin:0;padding:0;width:min(400px,calc(100vw - 24px));height:min(535px,calc(100dvh - 32px));max-height:calc(100dvh - 24px);max-width:calc(100vw - 24px);border:1px solid var(--chat-border);border-radius:18px;background:var(--chat-page);color:var(--chat-ink);box-shadow:0 12px 48px #142b2138;font:400 15px/1.48 'DM Sans',system-ui,sans-serif;color-scheme:light}
#mefram-chat[open]{display:flex;flex-direction:column}
#mefram-chat::backdrop{background:rgba(11,32,21,.22)}
#mefram-chat [hidden]{display:none!important}
#mefram-chat .chat-head{display:flex;align-items:center;gap:10px;padding:12px 16px;border-bottom:1px solid var(--chat-border)}
#mefram-chat h2{font:600 17px/1.2 'DM Sans',system-ui,sans-serif;color:inherit;margin:0}
#mefram-chat .chat-close{margin-left:auto;background:transparent;color:inherit;border:0;padding:8px;display:grid;place-items:center}
#mefram-chat button,#mefram-chat a{font:inherit;cursor:pointer}
#mefram-chat svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#mefram-chat .chat-history{flex:1;min-height:64px;overflow:auto;overscroll-behavior:contain;padding:16px;display:flex;flex-direction:column;align-items:flex-start;gap:9px}
#mefram-chat .chat-line{max-width:87%;margin:0;padding:9px 13px;border-radius:15px 15px 15px 4px;background:var(--chat-line);color:inherit;white-space:pre-wrap;overflow-wrap:anywhere}
#mefram-chat .from-visitor{align-self:flex-end;border-radius:15px 15px 4px 15px;background:var(--chat-user);color:var(--chat-user-ink)}
#mefram-chat .chat-actions,#mefram-chat .chat-delivery>div{display:flex;flex-wrap:wrap;gap:6px;padding:4px 14px 10px}
#mefram-chat .chat-actions:empty{display:none}
#mefram-chat .chat-actions button,#mefram-chat .chat-delivery a{padding:6px 10px;min-height:34px;border:1px solid var(--chat-border);border-radius:16px;background:transparent;color:inherit;font-size:13px;text-decoration:none}
#mefram-chat .chat-actions button:hover,#mefram-chat .chat-delivery a:hover{background:var(--chat-line)}
#mefram-chat .chat-compose{display:flex;gap:6px;align-items:center;margin:0;padding:9px 12px;border-top:1px solid var(--chat-border)}
#mefram-chat input,#mefram-chat textarea{font:inherit;color:inherit;background:var(--chat-page)}
#mefram-chat input{flex:1;min-width:0;border:0;border-radius:6px;padding:8px}
#mefram-chat input::placeholder{color:var(--chat-ink);opacity:.8}
#mefram-chat .chat-compose button{width:40px;height:40px;border:0;border-radius:50%;background:var(--chat-user);color:var(--chat-user-ink);display:grid;place-items:center}
#mefram-chat .chat-delivery{padding:6px 14px}
#mefram-chat .chat-delivery label{display:block;font-size:13px;font-weight:600;margin-bottom:4px}
#mefram-chat textarea{width:100%;max-height:19dvh;border:1px solid var(--chat-border);border-radius:8px;padding:7px;resize:vertical}
#mefram-chat .chat-delivery>div{padding:3px 0}
#mefram-chat .chat-delivery .chat-wa{background:var(--chat-user);color:var(--chat-user-ink)}
#mefram-chat :focus-visible{outline:2px solid var(--chat-ink);outline-offset:2px}
#mefram-chat .chat-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
html[data-theme="dark"] #mefram-chat{--chat-page:#17251d;--chat-line:#2c3e31;--chat-ink:#e3ebde;--chat-border:#506952;--chat-user:#bcdbbb;--chat-user-ink:#15271d;color-scheme:dark}
html[data-theme="dark"] #mefram-chat .chat-head img{content:url("simbolo-noturno.svg")}
@media(max-width:520px){#mefram-chat{right:8px;bottom:8px;width:calc(100vw - 16px);max-width:calc(100vw - 16px)}#mefram-chat input{font-size:16px}}
@media(max-width:520px){#mefram-chat{left:8px;right:8px;width:auto;max-width:none}}

/* Compact utility controls in the institutional masthead. */
#navbar .nav-right{gap:8px}
#navbar .theme-picker{padding:1px;gap:0}
#navbar .theme-tile{width:27px;min-width:0;height:25px;min-height:0;padding:0}
#navbar .theme-tile>span{display:none}
#navbar .theme-tile svg{width:15px;height:15px}
#navbar .assistant-tab{align-items:center;padding:5px 4px;border:0;font-size:12px;font-weight:500;line-height:18px;letter-spacing:0}
#navbar .assistant-tab:is(:hover,:focus-visible){text-decoration:underline;text-underline-offset:3px}
#navbar .language-picker summary{min-height:28px;padding:3px 6px;gap:4px;border-radius:6px;font-size:12px;line-height:18px}
#navbar .language-picker summary .language-flag{width:16px;height:11px}
@media(pointer:coarse){
  #navbar .theme-option input{inset:-5px 0;width:100%;height:calc(100% + 10px)}
  #navbar .language-picker summary{position:relative}
  #navbar .language-picker summary::before{content:"";position:absolute;inset:-5px 0}
}
@media(max-width:380px){#navbar .nav-right{gap:4px}}


.assistant-chat-icon{display:inline-block;width:15px;height:15px;margin-inline-end:5px;vertical-align:-.18em;pointer-events:none}

.hub-body{font-size:clamp(15px,1.2vw,17px);line-height:1.72;overflow-wrap:anywhere}
.hub-body h4{color:var(--g);font:600 clamp(20px,2.1vw,25px)/1.24 Georgia,serif;letter-spacing:-.02em;margin:1.1em 0 .1em}
.hub-body h4:first-child{margin-top:.3em}
.hub-body p{margin:0;max-width:72ch}
.hub-body .insight-citation{font-size:.78em;text-decoration:none;vertical-align:.2em;white-space:nowrap}
.hub-body a,.insight-references a{color:var(--g);text-decoration:underline;text-underline-offset:.18em}
.hub-body a:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.insight-references{padding-inline-start:1.5em;font-size:.9em;line-height:1.6}
.insight-references li+li{margin-top:.6em}
.hub-main .hub-image-wrap{margin:0 0 .35rem}
.insight-caption{font-size:.78rem;color:var(--muted);margin-bottom:1.25rem}
html[data-theme="dark"] .hub-body :is(h4,a){color:#d5e9ca}

.insight-sources-note{margin-top:.45em;border-top:1px solid var(--border);padding-top:.65em;font-size:.88em}.insight-sources-note summary{cursor:pointer;font-weight:600}.insight-sources-note p{margin-top:.55em}.hub-body a:hover{text-decoration-thickness:2px}

/* Keep contact addresses readable within the card at narrow widths. */
.contact-top > *, .comercial-strip > * {min-width:0}
.contact-main .email-block {flex-wrap:wrap}
.contact-main .email-block span, .contact-side a {overflow-wrap:anywhere}
@media (max-width:600px) {
  .contact-main, .contact-side {padding:clamp(16px,5vw,30px)}
  .contact-main .email-block {padding:10px 12px;gap:6px}
}

.hub-body .technical-figure {margin:1.25rem 0;max-width:72ch}
.technical-figure img {display:block;width:100%;height:auto;border-radius:8px}
.hub-body .technical-figure figcaption {margin-top:.55rem;font-size:.87em;line-height:1.5}
@media(max-width:800px) {
  .hub-item-title {display:block;-webkit-line-clamp:unset;overflow:visible;overflow-wrap:anywhere}
}

/* Reading colors are independent of the deep greens used for backgrounds. */
html[data-theme="dark"] {
  --brand-ink:#e1eddc;
  --brand-ink-secondary:#c5dfc9;
  --brand-ink-accent:#aad2ae;
}
.safra-sub,.footer-nav h4,.footer-copy {color:#abd1ae}
.quote-box cite,.footer-brand .f-tag,.footer-brand .f-loc,.footer-copy,.footer-nav a,
.cs-resp,.wa-note,.art-vis-inner,.hub-item-arrow,.hub-item-meta .dot {opacity:1}
.contact-side .contact-label {color:#c0e1bf}
.contact-side .contact-description {opacity:1}
.email-block .help-link {color:inherit;text-decoration:underline;text-underline-offset:.15em}
.email-block svg {stroke:currentColor}
.wa-float-hint {color:var(--text);background:var(--cream);opacity:1;border-radius:4px}
.wa-float::after {background:#b62627}
.hub-count {color:#425742}
.hub-search::placeholder {color:var(--muted);opacity:1}
.orchard-story .orchard-nav button span {opacity:1}
html[data-theme="dark"] .safra-tag {background:#2b4333;color:#c5e5c6}
html[data-theme="dark"] .safra-feat::before {background:var(--brand-ink-accent)}
html[data-theme="dark"] .btn-s {border-color:#859f8b}
html[data-theme="dark"] .hub-side,
html[data-theme="dark"] #insightsHub {background:var(--cream)}
html[data-theme="dark"] :is(.hub-item,.hub-tab,.hub-load-more,.hub-search-wrap) {
  color:var(--text);background:var(--light);border-color:var(--border);
}
html[data-theme="dark"] :is(.hub-item.active,.hub-item:hover,.hub-tab:hover,.hub-load-more:hover,.hub-count) {
  background:#314838;color:#e1eddd;
}
html[data-theme="dark"] .hub-tab.active {background:#365d45;color:#fff}
html[data-theme="dark"] :is(.hub-item-title,.hub-card-excerpt) {color:var(--text)}
html[data-theme="dark"] .hub-item-arrow {color:var(--brand-ink-accent)}
html[data-theme="dark"] .hub-search-wrap input::placeholder {color:var(--muted)}
