/* Original UNOGO visual is the default dark theme; styles below only change selected light surfaces. */
:root{color-scheme:dark}html[data-theme=light]{color-scheme:light}
.unogo-appearance{flex:none;align-self:center;display:flex;align-items:center;z-index:12}
.unogo-appearance button{appearance:none;background:transparent;border:1px solid #767d78;color:#f8f8f8;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:34px;padding:7px 11px;cursor:pointer;font:700 10px Manrope,'DM Sans',Arial,sans-serif;text-transform:uppercase;letter-spacing:.07em;white-space:nowrap}
.unogo-appearance button:hover{background:#313431}
.unogo-appearance button:focus-visible{outline:2px solid #8e968f;outline-offset:3px}
.unogo-appearance svg{width:15px;height:15px;display:block;flex:none;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:1200px){.unogo-appearance button{padding:7px 8px;gap:5px}}
@media(max-width:1020px){.unogo-appearance-label{display:none}.unogo-appearance button{min-width:36px}}
@media(max-width:560px){.unogo-appearance button{min-width:33px;min-height:33px;padding:7px}.unogo-appearance svg{width:16px;height:16px}}
html[data-theme=dark] img[src*="unogo-logo.png"]{filter:brightness(0) invert(1)!important;-webkit-filter:brightness(0) invert(1)!important}
/* LIGHT is a restrained monochrome variation. Original black heroes remain black. */
html[data-theme=light] .siteheader,html[data-theme=light] .sitehead{background:#fafaf9!important;color:#1b1c1b!important;border-color:#e0e2df!important}
html[data-theme=light] .siteheader .navlinks,html[data-theme=light] .sitehead .menu{background:#fafaf9}
html[data-theme=light] .siteheader .navlinks a,html[data-theme=light] .sitehead .menu a{color:#232423!important}
html[data-theme=light] .siteheader .navcta,html[data-theme=light] .sitehead .headcta{color:#222!important;border-color:#222!important}
html[data-theme=light] .siteheader .navcta:hover,html[data-theme=light] .sitehead .headcta:hover{background:#222!important;color:#fff!important}
html[data-theme=light] .siteheader .languages,html[data-theme=light] .sitehead .langs{border-color:#999!important}
html[data-theme=light] .siteheader .languages button,html[data-theme=light] .sitehead .langs button{color:#626262!important}
html[data-theme=light] .siteheader .languages button.on,html[data-theme=light] .sitehead .langs button.on{background:#222!important;color:#fff!important}
html[data-theme=light] .siteheader .menuBtn,html[data-theme=light] .sitehead .hamb{color:#202020!important;border-color:#aaa!important}
html[data-theme=light] .unogo-appearance button{background:#fff;color:#202020!important;border-color:#aaa!important}
html[data-theme=light] img[src*="unogo-logo.png"]{filter:brightness(0)!important;-webkit-filter:brightness(0)!important}
html[data-theme=light] .footer{background:#fff!important;color:#171817!important}
html[data-theme=light] .footer :is(h2,h3){color:#171817!important}
html[data-theme=light] .footer :is(p,.label,.caps,.bottom,.footbottom){color:#565955!important}
html[data-theme=light] .footer :is(.footcontact,.footright,.footbottom,.bottom){border-color:#dcdedb!important}
html[data-theme=light] .footer :is(a,nav a){color:#222}
html[data-theme=light] .footer :is(.button.light,.btn.white,.button.darkbtn,.btn.black){background:#1e1f1e!important;color:#fff!important;border-color:#1e1f1e!important}
html[data-theme=light] .footer :is(.button.outline,.btn.line){background:#fff!important;color:#222!important;border-color:#444!important}
/* Slightly more light sections; primary hero, banners, project visuals remain unchanged. */
html[data-theme=light] .section.dark{background:#f3f3f1!important;color:#202120!important}
html[data-theme=light] .section.dark :is(h2,h3,.sectiontitle,.label,.caps){color:#202120!important}
html[data-theme=light] .section.dark :is(p,.summary,.step p,.step small,.feature p){color:#545654!important}
html[data-theme=light] .section.dark .button.outline{border-color:#555!important;color:#222!important}
html[data-theme=light] .unogo-return{background:#f6f6f5!important;border-color:#e0e0df!important}
html[data-theme=light] .unogo-return a{color:#2b2b2b!important}
/* Three equal homepage blog cards. Grayscale visuals align with existing black and white identity. */
#journal .blogcards{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-template-rows:none!important;gap:18px!important;align-items:stretch}
#journal .blogcards .post,#journal .blogcards .post:first-child{display:flex!important;grid-column:auto!important;grid-row:auto!important;flex-direction:column!important;background:#fff!important;border:1px solid #e0e2df!important;min-width:0;box-shadow:0 10px 25px #1315140b;transition:transform .22s,box-shadow .22s}
#journal .blogcards .post:hover{transform:translateY(-3px);box-shadow:0 14px 32px #15171518}
#journal .blogcards .post .postart,#journal .blogcards .post:first-child .postart{height:148px!important;min-height:148px!important;padding:22px!important;position:relative;flex:none;background:linear-gradient(145deg,#262826,#494c49)!important}
#journal .blogcards .post:nth-child(2) .postart{background:linear-gradient(145deg,#383a38,#666966)!important}
#journal .blogcards .post:nth-child(3) .postart{background:linear-gradient(145deg,#525552,#80837f)!important}
#journal .blogcards .post:first-child .postart::after{content:none!important}
#journal .blogcards .post .postcontent,#journal .blogcards .post:first-child .postcontent{flex:1!important;display:flex!important;flex-direction:column!important;padding:26px 25px 28px!important;min-height:245px!important}
#journal .blogcards .post h3,#journal .blogcards .post:first-child h3{font-family:Georgia,'Times New Roman',serif!important;font-size:clamp(21px,1.7vw,26px)!important;line-height:1.22!important;font-weight:500!important;color:#1c1e1c!important;margin-bottom:14px}
#journal .blogcards .post p,#journal .blogcards .post:first-child p{font-size:12px!important;line-height:1.75!important;color:#5d625d!important;margin-bottom:20px}
#journal .blogcards .post .postcontent>span:last-child{margin-top:auto!important;color:#242824!important}
@media(max-width:920px){#journal .blogcards{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:670px){#journal .blogcards{grid-template-columns:1fr!important;gap:15px!important}#journal .blogcards .post{min-height:326px!important}#journal .blogcards .post .postart,#journal .blogcards .post:first-child .postart{height:125px!important;min-height:125px!important}#journal .blogcards .post .postcontent,#journal .blogcards .post:first-child .postcontent{padding:22px!important;min-height:170px!important}#journal .blogcards .post h3,#journal .blogcards .post:first-child h3{font-size:22px!important}}
@media(min-width:701px) and (max-width:1000px){.sitehead .headcta{display:none!important}}
@media(prefers-reduced-motion:reduce){#journal .blogcards .post{transition:none}}


/* Form contrast and temporarily hidden Portuguese switch. */
[data-lang="pt"]{display:none!important}
html[data-theme="dark"] :is(.crform,#contact form,.contact-form){background:#fff!important;color:#1c1e1c!important}
html[data-theme="dark"] :is(.crform,#contact form,.contact-form) :is(label,h2,h3,input,textarea,select){color:#1c1e1c!important}
html[data-theme="dark"] :is(.crform,#contact form,.contact-form) :is(input,textarea,select){background:#fcfcfb!important;-webkit-text-fill-color:#1c1e1c}
html[data-theme="dark"] :is(.crform,#contact form,.contact-form) :is(input,textarea)::placeholder{color:#646b64!important;opacity:1}
html[data-theme="dark"] :is(.crform,#contact form,.contact-form) :is(p,small,.crprivacy,.crconsent){color:#566155}
html[data-theme="dark"] .crform .crsubmit{background:#1d241e!important;color:#fff!important}



/* Blog: compact, uncropped covers next to the article summary. */
#journal .blogcards:has(.postart img),
.cards:has(> .card .cardcover img){
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:auto!important;
  gap:16px!important;
}
#journal .blogcards:has(.postart img) > .post,
.cards:has(> .card .cardcover img) > .card{
  display:grid!important;
  grid-template-columns:220px minmax(0,1fr)!important;
  grid-column:auto!important;
  grid-row:auto!important;
  align-items:center;
  min-width:0;
  min-height:0!important;
  overflow:hidden;
}
#journal .blogcards .post .postart:has(img),
#journal .blogcards .post:first-child .postart:has(img),
.cards .card .cardcover:has(img){
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  align-self:stretch!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  padding:16px!important;
  background:#f5f6f4!important;
  overflow:visible!important;
}
#journal .blogcards .post .postart:has(img)::after,
.cards .card .cardcover:has(img)::after{content:none!important}
#journal .blogcards .post .postart img,
.cards .card .cardcover img{
  display:block!important;
  position:static!important;
  inset:auto!important;
  width:auto!important;
  height:auto!important;
  max-width:100%!important;
  max-height:205px!important;
  min-height:0!important;
  object-fit:contain!important;
  object-position:center!important;
  aspect-ratio:auto!important;
  filter:none!important;
  transform:none!important;
}
#journal .blogcards:has(.postart img) > .post .postcontent,
.cards:has(> .card .cardcover img) > .card .cardbody{
  min-width:0;
  min-height:0!important;
  padding:22px 24px!important;
}
#journal .blogcards:has(.postart img) > .post h3{
  font-size:clamp(21px,2vw,27px)!important;
  overflow-wrap:break-word;
}
#journal .blogcards:has(.postart img) > .post p{margin-bottom:16px!important}
#journal .blogcards:has(.postart img) > .post :is(h3,p) span{font:inherit!important;letter-spacing:inherit}
.cards:has(> .card .cardcover img) > .card .cardbody h3{font-size:clamp(21px,2vw,27px);line-height:1.3}
@media(max-width:700px){
  #journal .blogcards:has(.postart img) > .post,
  .cards:has(> .card .cardcover img) > .card{grid-template-columns:152px minmax(0,1fr)!important}
  #journal .blogcards:has(.postart img) > .post .postcontent,
  .cards:has(> .card .cardcover img) > .card .cardbody{padding:18px!important}
}
@media(max-width:520px){
  #journal .blogcards:has(.postart img) > .post,
  .cards:has(> .card .cardcover img) > .card{grid-template-columns:minmax(0,1fr)!important}
  #journal .blogcards .post .postart:has(img),
  .cards .card .cardcover:has(img){
    width:100%!important;
    padding:16px 16px 0!important;
  }
  #journal .blogcards .post .postart img,
  .cards .card .cardcover img{
    max-width:min(100%,260px)!important;
    max-height:165px!important;
  }
}

/* Keep text readable on the dark feature panels in both appearance modes. */
.feature{color:#f5f6f3}
.feature h3{margin-top:0}
.feature .symbol,.techcard .glyph{display:none!important}
.techcard p{color:#545c53}
html[data-theme=light] .section.dark .feature :is(h3,h3 span){color:#f5f6f3!important}
html[data-theme=light] .section.dark .feature :is(p,p span){color:#c3c9c2!important}
/* Cover images are full-frame thumbnails, including the original square artwork. */
#journal .blogcards .post .postart img,.cards .card img{filter:none!important;transform:none!important}

/* Explicit filter colors avoid white text on white buttons in dark appearance. */
.filters button{color:#292d28}
.filters button.active{color:#fff}
