/* RC26R202 — Final Public Polish
 * Final finish over the accepted R199/R200/R201 direction.
 * Scope: Home CTA visibility + Blog empty-state quality + restrained contrast/microinteraction.
 * Auth/Cadastro and all functional owners: NO DELTA.
 */

/* --------------------------------------------------------------------------
 * HOME — inspector actions must remain visible inside the first viewport.
 * Anchor the action row to the inspector itself instead of letting content push
 * it below the usable browser window.
 * -------------------------------------------------------------------------- */
@media (min-width:941px){
  body.home.ottoni-public-software-surface .ot199-inspector{
    position:relative!important;
    min-height:0!important;
    overflow:hidden!important;
    padding:9px 11px 54px!important;
    gap:6px!important;
  }
  body.home.ottoni-public-software-surface .ot199-inspector-head{
    padding:0 2px 7px!important;
  }
  body.home.ottoni-public-software-surface .ot199-inspector-section{
    padding:8px 9px!important;
    border-radius:12px!important;
  }
  body.home.ottoni-public-software-surface .ot199-inspector-section>strong{
    margin-top:4px!important;
    font-size:11.5px!important;
  }
  body.home.ottoni-public-software-surface .ot199-inspector-section>p{
    margin-top:3px!important;
    line-height:1.3!important;
  }
  body.home.ottoni-public-software-surface .ot199-inspector-section ul{
    margin-top:6px!important;
    gap:3px!important;
  }
  body.home.ottoni-public-software-surface .ot199-inspector-section li{
    font-size:7.25px!important;
    line-height:1.25!important;
  }
  body.home.ottoni-public-software-surface .ot199-inspector-metrics{
    gap:5px!important;
  }
  body.home.ottoni-public-software-surface .ot199-inspector-metrics span{
    padding:6px 4px!important;
  }
  body.home.ottoni-public-software-surface .ot199-inspector-metrics b{
    font-size:15px!important;
  }
  body.home.ottoni-public-software-surface .ot199-inspector-actions{
    position:absolute!important;
    left:11px!important;
    right:11px!important;
    bottom:9px!important;
    z-index:4!important;
    margin:0!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:6px!important;
    padding-top:7px!important;
    background:linear-gradient(180deg,rgba(239,234,226,0),rgba(239,234,226,.94) 34%,rgba(239,234,226,.98))!important;
  }
  body.home.ottoni-public-software-surface .ot199-inspector-actions a{
    min-height:34px!important;
    padding:0 9px!important;
    white-space:nowrap!important;
    box-shadow:0 7px 16px rgba(29,32,30,.10),inset 0 1px 0 rgba(255,255,255,.92)!important;
    transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease!important;
  }
  body.home.ottoni-public-software-surface .ot199-inspector-actions a:hover{
    transform:translateY(-1px)!important;
    border-color:rgba(180,102,76,.26)!important;
    box-shadow:0 11px 22px rgba(29,32,30,.14),inset 0 1px 0 rgba(255,255,255,.96)!important;
  }
}

/* --------------------------------------------------------------------------
 * BLOG — premium editorial empty state. It should feel intentionally quiet,
 * not unfinished or like a placeholder card.
 * -------------------------------------------------------------------------- */
body.ottoni-public-blog-page .otsw191-empty{
  position:relative!important;
  min-height:0!important;
  height:100%!important;
  display:grid!important;
  grid-template-columns:minmax(0,.82fr) minmax(320px,1.18fr)!important;
  grid-template-rows:auto auto auto 1fr!important;
  column-gap:clamp(28px,4vw,64px)!important;
  row-gap:0!important;
  align-content:center!important;
  align-items:center!important;
  padding:clamp(28px,4vw,52px)!important;
  overflow:hidden!important;
  border:1px solid rgba(29,32,30,.11)!important;
  border-radius:20px!important;
  background:
    radial-gradient(420px 260px at 8% 8%,rgba(180,102,76,.08),transparent 66%),
    linear-gradient(145deg,rgba(255,255,255,.88),rgba(235,230,222,.82))!important;
  box-shadow:0 22px 52px rgba(29,32,30,.10),inset 0 1px 0 rgba(255,255,255,.90)!important;
}
body.ottoni-public-blog-page .otsw191-empty::before{
  content:"ARQUIVO PÚBLICO · EM PREPARAÇÃO";
  grid-column:1!important;
  grid-row:1!important;
  align-self:end!important;
  margin-bottom:18px!important;
  color:var(--ot199-copper)!important;
  font:850 7px/1 var(--ot199-ui)!important;
  letter-spacing:.17em!important;
}
body.ottoni-public-blog-page .otsw191-empty::after{
  content:"ARQUIVO EDITORIAL\A NOTAS ABERTAS DO ECOSSISTEMA";
  white-space:pre-line!important;
  grid-column:2!important;
  grid-row:1 / 5!important;
  min-height:clamp(210px,28vw,310px)!important;
  align-self:stretch!important;
  display:flex!important;
  align-items:flex-end!important;
  padding:22px!important;
  border:1px solid rgba(255,255,255,.18)!important;
  border-radius:16px!important;
  background:
    linear-gradient(180deg,rgba(23,27,24,.08),rgba(23,27,24,.78)),
    url('../images/canonical/about-canto.webp') center/cover no-repeat!important;
  color:#fff!important;
  box-shadow:0 22px 48px rgba(29,32,30,.17),inset 0 1px 0 rgba(255,255,255,.12)!important;
  font:800 10px/1.55 var(--ot199-ui)!important;
  letter-spacing:.10em!important;
}
body.ottoni-public-blog-page .otsw191-empty>span{
  grid-column:1!important;grid-row:2!important;
  width:38px!important;height:38px!important;margin:0!important;
  border-radius:11px!important;
  background:linear-gradient(145deg,#2d312f,#171a18)!important;
  box-shadow:0 12px 24px rgba(29,32,30,.16),inset 0 1px 0 rgba(255,255,255,.10)!important;
}
body.ottoni-public-blog-page .otsw191-empty h2{
  grid-column:1!important;grid-row:3!important;
  margin:18px 0 0!important;
  max-width:15ch!important;
  font-size:clamp(27px,2.5vw,38px)!important;
  line-height:1.02!important;
}
body.ottoni-public-blog-page .otsw191-empty p{
  grid-column:1!important;grid-row:4!important;
  margin:11px 0 0!important;
  max-width:48ch!important;
  align-self:start!important;
}

/* --------------------------------------------------------------------------
 * ABOUT / global public microfinish — stronger spatial reading without changing
 * the accepted structure.
 * -------------------------------------------------------------------------- */
body.ottoni-public-about-page .ot199-map-lines path{
  stroke:rgba(180,102,76,.48)!important;
  stroke-width:1.55!important;
}
body.ottoni-public-about-page .ot199-map-node,
body.ottoni-public-about-page .ot199-map-core{
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease!important;
}
body.ottoni-public-about-page .ot199-map-node:hover{
  transform:translateY(-2px)!important;
  border-color:rgba(180,102,76,.26)!important;
  box-shadow:0 22px 44px rgba(29,32,30,.15),0 5px 14px rgba(29,32,30,.07)!important;
}
body.ottoni-public-software-surface:not(.ottoni-account-entry-surface) .ottoni-header-060__public a:active,
body.ottoni-public-software-surface:not(.ottoni-account-entry-surface) .ottoni-header-060__actions a:active{
  transform:translateY(0) scale(.985)!important;
  box-shadow:0 4px 10px rgba(29,32,30,.09),inset 0 1px 2px rgba(29,32,30,.05)!important;
}

@media(max-width:940px){
  body.ottoni-public-blog-page .otsw191-empty{
    grid-template-columns:1fr!important;
    grid-template-rows:auto auto auto auto auto!important;
  }
  body.ottoni-public-blog-page .otsw191-empty::after{
    grid-column:1!important;
    grid-row:5!important;
    min-height:210px!important;
    margin-top:22px!important;
  }
}

@media(max-width:560px){
  body.ottoni-public-blog-page .otsw191-empty{
    padding:22px 18px!important;
  }
  body.ottoni-public-blog-page .otsw191-empty h2{
    font-size:28px!important;
  }
  body.ottoni-public-blog-page .otsw191-empty::after{
    min-height:180px!important;
    padding:18px!important;
  }
}

@media(prefers-reduced-motion:reduce){
  body.home.ottoni-public-software-surface .ot199-inspector-actions a,
  body.ottoni-public-about-page .ot199-map-node,
  body.ottoni-public-about-page .ot199-map-core,
  body.ottoni-public-software-surface:not(.ottoni-account-entry-surface) .ottoni-header-060__public a,
  body.ottoni-public-software-surface:not(.ottoni-account-entry-surface) .ottoni-header-060__actions a{
    transition:none!important;
  }
}
