/*
Theme Name: Rick Neves Core
Theme URI: https://rickneves.net/
Author: Rick Neves
Description: Tema visual Full Site Editing para o ecossistema Rick Neves. Funcionalidades dinâmicas ficam no plugin Rick Neves Blocks.
Version: 2.1.0
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: rick-neves-core
*/

:root {
  --rn-radius-sm: 14px;
  --rn-radius-md: 22px;
  --rn-radius-lg: 32px;
  --rn-border: rgba(147, 156, 170, .18);
  --rn-shadow: 0 24px 70px rgba(0, 0, 0, .18);
}

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
a { text-underline-offset: .18em; }

.rn-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  margin-bottom: -74px;
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.rn-header-inner { min-height: 74px; }
.rn-brand { letter-spacing: -.035em; }
.rn-eyebrow {
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .76rem;
  font-weight: 700;
}

/* Hero editorial mensal. O vídeo é um bloco Capa nativo e pode ser trocado no Editor do Site. */
.rn-monthly-hero {
  min-height: 88vh;
  background-image: url('./assets/images/insight-month-poster.jpg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.rn-monthly-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4,7,12,.72) 0%, rgba(4,7,12,.38) 52%, rgba(4,7,12,.18) 100%),
    linear-gradient(0deg, rgba(4,7,12,.70) 0%, transparent 34%);
  z-index: 1;
}
.rn-monthly-hero .wp-block-cover__background { z-index: 1; }
.rn-monthly-hero .wp-block-cover__inner-container { position: relative; z-index: 2; }
.rn-monthly-hero-inner {
  min-height: 88vh;
  padding-top: clamp(8rem, 17vh, 12rem);
  padding-bottom: clamp(2.25rem, 5vh, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
}
.rn-monthly-query { width: min(960px, 100%); }
.rn-monthly-query .wp-block-post-template { margin: 0; }
.rn-hero-kicker { margin-bottom: 1.2rem; opacity: .84; }
.rn-monthly-date {
  margin: 0 0 .8rem;
  opacity: .72;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.rn-monthly-title {
  max-width: 930px;
  margin: 0;
  letter-spacing: -.058em;
  text-wrap: balance;
  text-shadow: 0 3px 36px rgba(0,0,0,.28);
}
.rn-monthly-title a { color: inherit; text-decoration: none; }
.rn-monthly-title a:hover { text-decoration: underline; text-decoration-thickness: .05em; }
.rn-monthly-excerpt { max-width: 720px; margin-top: 1.25rem; opacity: .86; }
.rn-monthly-excerpt .wp-block-post-excerpt__more-text { display: none; }
.rn-hero-read-more {
  display: inline-flex;
  margin-top: 1.2rem;
  padding: .82rem 1.25rem;
  border-radius: 999px;
  background: var(--wp--preset--color--blue);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: transform .18s ease, filter .18s ease;
}
.rn-hero-read-more:hover { transform: translateY(-2px); filter: brightness(1.06); }
.rn-hero-footer {
  width: 100%;
  margin-top: clamp(2.8rem, 7vh, 5.5rem);
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.20);
  opacity: .72;
}
.rn-hero-footer p { margin: 0; letter-spacing: .1em; }
.rn-insight-card { min-height: 100%; }

.rn-section { padding-top: clamp(4rem, 8vw, 7rem); padding-bottom: clamp(4rem, 8vw, 7rem); }
.rn-section-title { letter-spacing: -.04em; text-wrap: balance; }
.rn-section-intro { max-width: 720px; }

.rn-card {
  height: 100%;
  border: 1px solid var(--rn-border);
  border-radius: var(--rn-radius-md);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.rn-card:hover {
  transform: translateY(-4px);
  border-color: rgba(76,141,255,.42);
  box-shadow: 0 20px 50px rgba(0,0,0,.12);
}
.rn-card .wp-block-post-featured-image img { aspect-ratio: 16 / 9; object-fit: cover; }
.rn-card .wp-block-post-title a { text-decoration: none; }
.rn-card .wp-block-post-title a:hover { text-decoration: underline; }

.rn-ecosystem-card { min-height: 250px; }
.rn-number { opacity: .45; font-variant-numeric: tabular-nums; }
.rn-featured-insight { border-radius: var(--rn-radius-lg); overflow: hidden; }
.rn-featured-insight .wp-block-post-featured-image img { min-height: 420px; object-fit: cover; }

.rn-band {
  border-top: 1px solid var(--rn-border);
  border-bottom: 1px solid var(--rn-border);
}

.rn-service-card { border-top: 1px solid var(--rn-border); padding-top: 1.5rem; }
.rn-service-card h3 { margin-top: .65rem; }
.rn-footer { border-top: 1px solid rgba(147,156,170,.16); }

.wp-block-button.is-style-outline > .wp-block-button__link {
  border-width: 1px;
}
.wp-block-button__link { transition: transform .18s ease, opacity .18s ease; }
.wp-block-button__link:hover { transform: translateY(-2px); opacity: .94; }

.wp-block-query-pagination { gap: .7rem; }
.wp-block-query-pagination a { text-decoration: none; }

@media (max-width: 781px) {
  .rn-site-header { margin-bottom: -66px; }
  .rn-header-inner { min-height: 66px; }
  .rn-monthly-hero { min-height: 82vh !important; }
  .rn-monthly-hero-inner {
    min-height: 82vh;
    padding-top: 7rem;
    padding-bottom: 1.5rem;
  }
  .rn-monthly-title { font-size: clamp(2.55rem, 13vw, 4.2rem) !important; }
  .rn-monthly-excerpt { font-size: 1.06rem !important; max-width: 34rem; }
  .rn-hero-footer { margin-top: 2.5rem; }
  .rn-other-insights .wp-block-post-template { grid-template-columns: 1fr !important; }
  .rn-featured-insight .wp-block-post-featured-image img { min-height: 260px; }
  .rn-section { padding-top: 3.6rem; padding-bottom: 3.6rem; }
  .rn-mobile-stack { gap: 1.1rem !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rn-monthly-hero .wp-block-cover__video-background { display: none !important; }
  .rn-card, .wp-block-button__link, .rn-hero-read-more { transition: none; }
}

/* 1.3.0 — linguagem visual mais leve e com maior alternância entre seções. */
body {
  background: var(--wp--preset--color--canvas, #F7F9FC);
  color: #111722;
}

/* O cabeçalho permanece escuro por estar sobre o Hero e continua legível nas páginas internas. */
.rn-site-header,
.rn-site-header a,
.rn-site-header .wp-block-site-title a,
.rn-site-header .wp-block-navigation-item__content,
.rn-site-header .wp-block-navigation__responsive-container-open,
.rn-site-header .wp-block-navigation__responsive-container-close {
  color: #fff;
}

.rn-site-header .wp-block-navigation__responsive-container.is-menu-open {
  background: rgba(9,11,16,.98);
  color: #fff;
}

.rn-band-light {
  border-color: rgba(17,23,34,.08);
}

.rn-section-ecosystem { background: #F7F9FC; }
.rn-section-pahi { background: #FFFFFF; }
.rn-section-insights { background: #EEF3F8; }
.rn-section-academy {
  background:
    radial-gradient(circle at 82% 18%, rgba(76,141,255,.12), transparent 30%),
    #F1F5FF;
}
.rn-section-services { background: #FAF7F1; }
.rn-section-about { background: #FFFFFF; }
.rn-section-cta { background: #F7F9FC; }

.rn-card-light {
  color: #111722;
  border-color: rgba(17,23,34,.10);
  box-shadow: 0 10px 30px rgba(17,23,34,.045);
}
.rn-card-light:hover {
  border-color: rgba(76,141,255,.28);
  box-shadow: 0 18px 42px rgba(17,23,34,.085);
}
.rn-card-light .wp-block-post-title a,
.rn-card-light a:not(.wp-block-button__link) {
  color: #111722;
}
.rn-card-light .wp-block-post-excerpt,
.rn-card-light .wp-block-post-date,
.rn-card-light .has-muted-color {
  color: #697386 !important;
}
.rn-card-light .has-blue-color,
.rn-card-light .wp-block-post-terms a,
.rn-card-light .wp-block-read-more {
  color: var(--wp--preset--color--blue) !important;
}

.rn-academy-card {
  border-color: rgba(76,141,255,.16);
}

.rn-section-services .rn-service-card {
  border-top-color: rgba(17,23,34,.12);
}

/* Páginas internas também deixam de herdar a aparência pesada da versão anterior. */
body:not(.home) main.rn-section,
body.blog main.rn-section,
body.archive main.rn-section,
body.single main.rn-section,
body.page main.rn-section {
  background: #F7F9FC;
  color: #111722;
}

body:not(.home) main.rn-section a,
body.blog main.rn-section a,
body.archive main.rn-section a,
body.single main.rn-section a,
body.page main.rn-section a {
  color: var(--wp--preset--color--blue);
}

body:not(.home) .rn-site-header,
body.blog .rn-site-header,
body.archive .rn-site-header,
body.single .rn-site-header,
body.page .rn-site-header,
body.error404 .rn-site-header {
  margin-bottom: 0;
  background: rgba(9,11,16,.94) !important;
}

@media (max-width: 781px) {
  body:not(.home) .rn-site-header,
  body.blog .rn-site-header,
  body.archive .rn-site-header,
  body.single .rn-site-header,
  body.page .rn-site-header,
  body.error404 .rn-site-header {
    margin-bottom: 0;
  }
}

/* 1.5.0 — Home pessoal/editorial: menos seções, mais fluxo e conteúdo atual. */
.home .rn-personal-home {
  background: #FBFCFE;
  color: #111722;
  padding-bottom: clamp(4rem, 7vw, 6.5rem);
}

.home .rn-personal-home a {
  color: #111722;
  text-decoration-color: rgba(17,23,34,.24);
  text-decoration-thickness: 1px;
  transition: color .18s ease, text-decoration-color .18s ease;
}
.home .rn-personal-home a:hover {
  color: var(--wp--preset--color--blue);
  text-decoration-color: currentColor;
}

.rn-monthly-hero-compact,
.rn-monthly-hero-compact .rn-monthly-hero-inner { min-height: 84vh; }
.rn-monthly-hero-compact .rn-monthly-hero-inner {
  padding-top: clamp(7rem, 14vh, 10rem);
  padding-bottom: clamp(2rem, 4vh, 3.25rem);
}

/* Home structural sections use the wide canvas.
   contentSize remains intentionally narrow for long-form reading. */
.rn-personal-home > .alignwide {
  width: min(calc(100% - clamp(2rem, 7vw, 7rem)), var(--wp--style--global--wide-size));
  max-width: none;
  margin-left: auto !important;
  margin-right: auto !important;
}

.rn-personal-intro {
  padding-top: clamp(4.5rem, 8vw, 7.5rem);
  padding-bottom: clamp(4rem, 7vw, 6.5rem);
}
.rn-personal-intro-grid { gap: clamp(2rem, 7vw, 7rem); }
.rn-personal-statement {
  max-width: 850px;
  margin-top: .7rem;
  margin-bottom: 0;
  letter-spacing: -.046em;
  text-wrap: balance;
}
.rn-personal-intro-side p:first-child { margin-top: 0; }
.rn-inline-links { margin-top: 1.5rem; font-weight: 650; }
.rn-inline-links a { text-decoration: none; }

.rn-now {
  padding-top: clamp(2.5rem, 5vw, 4.25rem);
  padding-bottom: clamp(5rem, 9vw, 8rem);
  border-top: 1px solid rgba(17,23,34,.12);
}
.rn-now-heading {
  padding-bottom: 1.15rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
  border-bottom: 1px solid rgba(17,23,34,.12);
}
.rn-now-heading p { margin: 0; }
.rn-now-grid { gap: 0 !important; align-items: stretch !important; }
.rn-now-project {
  min-width: 0;
  padding-right: clamp(2rem, 5vw, 5rem);
}
.rn-now-writing {
  min-width: 0;
  padding-left: clamp(2rem, 4vw, 4rem);
  border-left: 1px solid rgba(17,23,34,.12);
}
.rn-subsection-label {
  min-height: 28px;
  margin-bottom: 1.35rem;
}
.rn-subsection-label p { margin: 0; }
.rn-subsection-label a { text-decoration: none; }

.rn-now-project-query .wp-block-post-template,
.rn-now-insights-query .wp-block-post-template {
  margin: 0;
  padding: 0;
}
.rn-now-project-image {
  margin: 0 0 1.5rem;
  border-radius: 18px;
  overflow: hidden;
  background: #E9EDF3;
}
.rn-now-project-image img {
  width: 100%;
  object-fit: cover;
  transition: transform .42s ease;
}
.rn-now-project-query li:hover .rn-now-project-image img { transform: scale(1.012); }
.rn-now-project-title {
  max-width: 760px;
  margin: .55rem 0 .9rem;
  letter-spacing: -.045em;
}
.rn-now-project-title a { text-decoration: none !important; }
.rn-now-project-excerpt {
  max-width: 690px;
  color: #667184;
}
.rn-now-project-more {
  display: inline-block;
  margin-top: .6rem;
  font-weight: 650;
  text-decoration: none !important;
}
.rn-project-tech { color: var(--wp--preset--color--blue); font-size: .76rem; letter-spacing: .09em; text-transform: uppercase; }
.rn-project-tech a { color: inherit !important; text-decoration: none !important; }
.rn-now-empty { padding: clamp(2rem, 4vw, 3rem) 0; }
.rn-now-empty h3 { margin-top: 0; letter-spacing: -.04em; }

.rn-now-insights-list { display: block !important; }
.rn-now-insights-list > li { margin: 0 !important; }
.rn-now-insight-item {
  padding: 1.45rem 0 1.55rem;
  border-top: 1px solid rgba(17,23,34,.11);
}
.rn-now-insights-list > li:last-child .rn-now-insight-item { border-bottom: 1px solid rgba(17,23,34,.11); }
.rn-now-insight-date {
  margin: 0 0 .55rem;
  color: #7B8596 !important;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.rn-now-insight-title {
  margin: 0;
  letter-spacing: -.026em;
  line-height: 1.2;
}
.rn-now-insight-title a { text-decoration: none !important; }
.rn-now-insight-more {
  display: inline-block;
  margin-top: .8rem;
  font-size: .82rem;
  font-weight: 650;
  text-decoration: none !important;
}

.rn-elsewhere {
  padding-top: clamp(4rem, 7vw, 6.5rem);
  padding-bottom: clamp(4rem, 7vw, 6.5rem);
  border-top: 1px solid rgba(17,23,34,.12);
}
.rn-elsewhere-heading {
  max-width: 760px;
  margin-left: 0 !important;
  margin-bottom: clamp(2.3rem, 4vw, 3.5rem);
}
.rn-elsewhere-heading h2 {
  margin-top: .65rem;
  margin-bottom: 0;
  letter-spacing: -.035em;
}
.rn-link-index { border-top: 1px solid rgba(17,23,34,.12); }
.rn-index-row {
  display: grid !important;
  grid-template-columns: minmax(180px, .8fr) minmax(280px, 1.5fr) 42px;
  gap: clamp(1rem, 4vw, 4rem);
  align-items: center;
  min-height: 92px;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(17,23,34,.12);
}
.rn-index-row h3,
.rn-index-row p { margin: 0; }
.rn-index-row h3 { letter-spacing: -.025em; }
.rn-index-row h3 a,
.rn-index-arrow a { text-decoration: none !important; }
.rn-index-arrow { text-align: right; font-size: 1.35rem; }
.rn-index-row:hover h3 a,
.rn-index-row:hover .rn-index-arrow a { color: var(--wp--preset--color--blue); }

.rn-personal-signoff {
  gap: 1rem 2rem;
  padding-top: 2rem;
  padding-bottom: 0;
  border-top: 0;
}
.rn-personal-signoff p { margin: 0; }
.rn-personal-signoff a { font-weight: 650; text-decoration: none !important; }

@media (max-width: 900px) {
  .rn-now-grid { display: block !important; }
  .rn-now-project { padding-right: 0; }
  .rn-now-writing {
    margin-top: 4rem;
    padding-top: 3.25rem;
    padding-left: 0;
    border-top: 1px solid rgba(17,23,34,.12);
    border-left: 0;
  }
}

@media (max-width: 781px) {
  .rn-monthly-hero-compact,
  .rn-monthly-hero-compact .rn-monthly-hero-inner { min-height: 80vh !important; }
  .rn-monthly-hero-compact .rn-monthly-hero-inner { padding-top: 6.5rem; padding-bottom: 1.5rem; }
  .rn-personal-intro { padding-top: 3.75rem; padding-bottom: 3.75rem; }
  .rn-personal-intro-grid { gap: 1.6rem; }
  .rn-personal-statement { font-size: clamp(2rem, 9vw, 3.15rem) !important; }
  .rn-now { padding-top: 2rem; padding-bottom: 4.5rem; }
  .rn-now-heading { align-items: flex-start !important; gap: .4rem; }
  .rn-now-project-image { border-radius: 14px; }
  .rn-now-writing { margin-top: 3.5rem; padding-top: 2.75rem; }
  .rn-elsewhere { padding-top: 3.75rem; padding-bottom: 3.75rem; }
  .rn-index-row {
    grid-template-columns: 1fr auto;
    gap: .5rem 1rem;
    min-height: 0;
    padding: 1.35rem 0;
  }
  .rn-index-row > p:not(.rn-index-arrow) { grid-column: 1; grid-row: 2; }
  .rn-index-arrow { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
}

@media (max-width: 520px) {
  .rn-subsection-label { align-items: flex-start !important; gap: .6rem; }
  .rn-index-row h3 { font-size: 1.22rem !important; }
  .rn-index-row > p:not(.rn-index-arrow) { font-size: .84rem !important; }
}

@media (max-width: 781px) {
  .rn-personal-home > .alignwide {
    width: calc(100% - 2rem);
  }
}


/* 1.8.0 — Hierarquia editorial: Insights em faixa escura; P.A.H.I. + Academy em superfície clara. */
.home .rn-insights-band {
  background: #090B10 !important;
  color: #fff;
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.rn-insights-band-inner,
.rn-build-learn-inner {
  width: min(calc(100% - clamp(2rem, 7vw, 7rem)), var(--wp--style--global--wide-size));
  max-width: none;
  margin-left: auto !important;
  margin-right: auto !important;
}
.rn-insights-band-inner {
  padding-top: clamp(4.75rem, 8vw, 7.5rem);
  padding-bottom: clamp(4.75rem, 8vw, 7.5rem);
}
.rn-insights-band-grid {
  gap: clamp(3rem, 8vw, 8rem) !important;
  align-items: start !important;
}
.rn-insights-statement {
  max-width: 760px;
  margin: .75rem 0 1.25rem;
  letter-spacing: -.046em;
  line-height: 1.05;
  text-wrap: balance;
}
.rn-insights-description {
  max-width: 600px;
  line-height: 1.7;
}
.rn-insights-archive-link { margin-top: 1.75rem; }
.rn-insights-band a { color: #fff; }
.rn-insights-archive-link a,
.rn-insight-dark-more {
  color: #76A6FF !important;
  text-decoration: none !important;
  font-weight: 650;
}
.rn-insights-stream { min-width: 0; }
.rn-insights-stream-heading {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.rn-insights-stream-heading p { margin: 0; }
.rn-insights-band-list {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}
.rn-insights-band-list > li { margin: 0 !important; }
.rn-insight-dark-item {
  padding: 1.45rem 0 1.6rem;
  border-bottom: 1px solid rgba(255,255,255,.13);
}
.rn-insight-dark-date {
  margin: 0 0 .55rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.rn-insight-dark-title {
  margin: 0;
  letter-spacing: -.027em;
  line-height: 1.18;
}
.rn-insight-dark-title a {
  color: #fff !important;
  text-decoration: none !important;
}
.rn-insight-dark-title a:hover { color: #76A6FF !important; }
.rn-insight-dark-more {
  display: inline-block;
  margin-top: .75rem;
  font-size: .82rem;
}

.home .rn-build-learn {
  background: #fff !important;
  color: #111722;
}
.rn-build-learn-inner {
  padding-top: clamp(4rem, 7vw, 6rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
}
.rn-build-learn-heading {
  padding-bottom: 1.15rem;
  margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
  border-bottom: 1px solid rgba(17,23,34,.12);
}
.rn-build-learn-heading p { margin: 0; }
.rn-build-learn-grid {
  gap: 0 !important;
  align-items: stretch !important;
}
.rn-pahi-panel {
  min-width: 0;
  padding-right: clamp(2rem, 5vw, 5rem);
}
.rn-academy-panel {
  min-width: 0;
  padding-left: clamp(2rem, 4vw, 4rem);
  border-left: 1px solid rgba(17,23,34,.12);
}
.rn-academy-title {
  margin: clamp(2.3rem, 4vw, 3.4rem) 0 1.1rem;
  letter-spacing: -.042em;
  line-height: 1.08;
  text-wrap: balance;
}
.rn-academy-description { line-height: 1.7; }
.rn-academy-index {
  margin-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid rgba(17,23,34,.12);
}
.rn-academy-index p {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(17,23,34,.12);
}
.rn-academy-index span {
  color: #939CAA;
  font-size: .75rem;
  letter-spacing: .08em;
}
.rn-academy-cta {
  margin-top: 1.6rem;
  font-weight: 650;
}
.rn-academy-cta a,
.rn-build-learn a { text-decoration: none; }
.rn-build-learn a:hover { color: var(--wp--preset--color--blue); }
.rn-home-secondary-links {
  gap: 1rem 2rem;
  margin-top: clamp(4rem, 7vw, 6rem);
  padding-top: 1.35rem;
  border-top: 1px solid rgba(17,23,34,.12);
}
.rn-home-secondary-links p { margin: 0; }
.rn-secondary-inline {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem .8rem;
}
.rn-secondary-inline span { color: #B2B8C2; }

@media (max-width: 900px) {
  .rn-insights-band-grid,
  .rn-build-learn-grid { display: block !important; }
  .rn-insights-stream {
    margin-top: 3.5rem;
    padding-top: 2.75rem;
    border-top: 1px solid rgba(255,255,255,.14);
  }
  .rn-pahi-panel { padding-right: 0; }
  .rn-academy-panel {
    margin-top: 4rem;
    padding-top: 3rem;
    padding-left: 0;
    border-top: 1px solid rgba(17,23,34,.12);
    border-left: 0;
  }
}

@media (max-width: 781px) {
  .rn-insights-band-inner,
  .rn-build-learn-inner { width: calc(100% - 2rem); }
  .rn-insights-band-inner { padding-top: 3.75rem; padding-bottom: 3.75rem; }
  .rn-insights-statement { font-size: clamp(2rem, 9vw, 3.15rem) !important; }
  .rn-build-learn-inner { padding-top: 3rem; padding-bottom: 4rem; }
  .rn-home-secondary-links { align-items: flex-start !important; }
}

/* 1.9.0 — arquitetura híbrida: tema = composição; plugin = componentes dinâmicos. */
.rn-build-learn-v2 { background: #fff; color: #111722; }
.rn-build-learn-v2__inner { width: min(calc(100% - clamp(0rem, 2vw, 2rem)), var(--wp--style--global--wide-size)); max-width: none; margin-inline: auto !important; }
.rn-build-learn-v2__heading .rn-eyebrow,
.rn-home-secondary-links .rn-eyebrow { margin: 0; }
.rn-build-learn-v2__grid { align-items: stretch !important; }
.rn-build-learn-v2__pahi, .rn-build-learn-v2__academy { min-width: 0; }
.rn-secondary-inline { display: flex; gap: .75rem; flex-wrap: wrap; }
.rn-secondary-inline a { color: inherit; font-weight: 650; text-decoration: none; }
.rn-secondary-inline a:hover { color: var(--wp--preset--color--blue); }
.rn-secondary-inline span { color: #b7c0cc; }

/* A Home vem do conteúdo da Página Inicial; o header se sobrepõe ao primeiro bloco (normalmente o banner do plugin). */
.home .rn-site-header { margin-bottom: -74px; }

@media (max-width: 781px) {
  .rn-build-learn-v2 { padding-left: 1rem !important; padding-right: 1rem !important; }
  .rn-build-learn-v2__inner { width: 100%; }
  .rn-build-learn-v2__academy { border-left: 0 !important; border-top: 1px solid #dce2ea; padding-left: 0 !important; padding-top: 2.5rem; margin-top: 2rem; }
  .home .rn-site-header { margin-bottom: -66px; }
}


/* 2.1.0 — modelo editorial de posts / Rick Insights.
   Todo o CSS é escopado em .rn-insight-single para não alterar Home, páginas,
   projetos, cabeçalho ou rodapé personalizados no Editor do Site. */
.rn-insight-single {
  background: #f5f7fa;
  color: #15191f;
}

.rn-insight-single .rn-insight-masthead {
  background: #080b10;
  color: #fff;
  padding-top: clamp(3.5rem, 7vw, 7rem);
  padding-bottom: clamp(4rem, 8vw, 7.5rem);
}

.rn-insight-single .rn-insight-masthead-inner,
.rn-insight-single .rn-insight-end-inner {
  width: 100%;
}

.rn-insight-single .rn-insight-toolbar {
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.rn-insight-single .rn-insight-brand,
.rn-insight-single .rn-insight-all-link,
.rn-insight-single .rn-insight-end-label {
  margin: 0;
  font-size: .76rem;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.rn-insight-single .rn-insight-brand { color: #fff; }
.rn-insight-single .rn-insight-all-link a,
.rn-insight-single .rn-insight-end a,
.rn-insight-single .rn-insight-meta a {
  color: var(--wp--preset--color--blue, #4c8dff);
}

.rn-insight-single .rn-insight-rule {
  margin: 0;
  border: 0;
  border-top: 1px solid rgba(255,255,255,.18);
  opacity: 1;
}

.rn-insight-single .rn-insight-meta {
  gap: .55rem 1.15rem;
  margin-top: clamp(2.4rem, 4vw, 4rem);
  margin-bottom: 1.25rem;
  color: #8e9aad;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.rn-insight-single .rn-insight-meta > * {
  margin: 0;
}

.rn-insight-single .rn-insight-meta > *:not(:last-child)::after {
  content: "·";
  margin-left: 1.15rem;
  color: #4c8dff;
}

.rn-insight-single .rn-insight-title {
  max-width: 1120px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.75rem, 6.2vw, 6rem);
  line-height: .98;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.rn-insight-single .rn-insight-deck {
  max-width: 820px;
  margin-top: 1.75rem;
  color: #b8c0cb;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  line-height: 1.6;
}

.rn-insight-single .rn-insight-deck .wp-block-post-excerpt__more-text {
  display: none;
}

.rn-insight-single .rn-insight-byline {
  gap: .35rem;
  margin-top: 1.5rem;
  color: #8994a5;
  font-size: .9rem;
}

.rn-insight-single .rn-insight-byline > * { margin: 0; }
.rn-insight-single .rn-insight-byline .wp-block-post-author-name { color: #fff; }

.rn-insight-single .rn-insight-featured-zone {
  background: #080b10;
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
}

.rn-insight-single .rn-insight-featured {
  margin-top: 0;
  margin-bottom: 0;
}

.rn-insight-single .rn-insight-featured img {
  display: block;
  width: 100%;
  max-height: min(68vh, 760px);
  object-fit: cover;
  border-radius: 0;
}

.rn-insight-single .rn-insight-reading-zone {
  background: #f5f7fa;
  color: #171b22;
  padding-top: clamp(3.5rem, 7vw, 7rem);
  padding-bottom: clamp(4rem, 8vw, 8rem);
}

.rn-insight-single .rn-insight-content {
  font-size: clamp(1.06rem, 1rem + .20vw, 1.18rem);
  line-height: 1.78;
  counter-reset: rn-insight-section;
}

.rn-insight-single .rn-insight-content > :first-child { margin-top: 0; }
.rn-insight-single .rn-insight-content > :last-child { margin-bottom: 0; }

.rn-insight-single .rn-insight-content p {
  margin-top: 0;
  margin-bottom: 1.55em;
}

.rn-insight-single .rn-insight-content > p:first-child {
  color: #303744;
  font-size: 1.14em;
  line-height: 1.75;
}

.rn-insight-single .rn-insight-content h2 {
  counter-increment: rn-insight-section;
  margin-top: clamp(4rem, 8vw, 6.8rem);
  margin-bottom: 1.1rem;
  color: #111722;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.rn-insight-single .rn-insight-content h2::before {
  content: counter(rn-insight-section, decimal-leading-zero);
  display: block;
  margin-bottom: .8rem;
  color: #4c8dff;
  font-size: .72rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.rn-insight-single .rn-insight-content h3 {
  margin-top: 3.25rem;
  margin-bottom: .9rem;
  color: #111722;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.15;
  letter-spacing: -.025em;
}

.rn-insight-single .rn-insight-content ul,
.rn-insight-single .rn-insight-content ol {
  margin-top: 0;
  margin-bottom: 1.8rem;
  padding-left: 1.35em;
}

.rn-insight-single .rn-insight-content li { margin-bottom: .55em; }

.rn-insight-single .rn-insight-content blockquote,
.rn-insight-single .rn-insight-content .wp-block-quote {
  margin-top: clamp(2.8rem, 5vw, 4.5rem);
  margin-bottom: clamp(2.8rem, 5vw, 4.5rem);
  padding: .15rem 0 .15rem clamp(1.3rem, 3vw, 2rem);
  border-left: 3px solid #4c8dff;
  color: #111722;
  font-size: clamp(1.28rem, 2.2vw, 1.7rem);
  line-height: 1.5;
}

.rn-insight-single .rn-insight-content blockquote p:last-child { margin-bottom: 0; }

.rn-insight-single .rn-insight-content figure {
  margin-top: clamp(2.8rem, 5vw, 4.8rem);
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.rn-insight-single .rn-insight-content figure img {
  display: block;
  width: 100%;
  height: auto;
}

.rn-insight-single .rn-insight-content figcaption,
.rn-insight-single .rn-insight-content .wp-element-caption {
  margin-top: .8rem;
  color: #697386;
  font-size: .78rem;
  line-height: 1.5;
  text-align: left;
}

.rn-insight-single .rn-insight-content hr {
  margin-top: 4rem;
  margin-bottom: 4rem;
  border-color: rgba(17,23,34,.13);
}

.rn-insight-single .rn-insight-content a {
  text-decoration-thickness: .07em;
  text-underline-offset: .16em;
}

.rn-insight-single .rn-insight-content code {
  font-size: .88em;
}

.rn-insight-single .rn-insight-end {
  background: #080b10;
  color: #fff;
  padding-top: clamp(3.5rem, 7vw, 6rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
}

.rn-insight-single .rn-insight-end-label {
  margin-top: 2rem;
  margin-bottom: 1.25rem;
  color: #4c8dff;
}

.rn-insight-single .rn-insight-end-meta {
  gap: 1rem 2rem;
  color: #9099a8;
  font-size: .88rem;
}

.rn-insight-single .rn-insight-end-meta p,
.rn-insight-single .rn-insight-end-meta .wp-block-post-date {
  margin: 0;
}

.rn-insight-single .rn-insight-navigation {
  gap: 2rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid rgba(255,255,255,.15);
}

.rn-insight-single .rn-insight-navigation .wp-block-post-navigation-link {
  max-width: 46%;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 700;
}

.rn-insight-single .rn-insight-navigation a { text-decoration: none; }
.rn-insight-single .rn-insight-navigation a:hover { text-decoration: underline; }

/* Neutraliza a regra antiga de páginas internas apenas dentro do novo single. */
body.single main.rn-insight-single {
  background: #f5f7fa;
  color: #171b22;
  padding-top: 0;
  padding-bottom: 0;
}

@media (max-width: 781px) {
  .rn-insight-single .rn-insight-masthead {
    padding-top: 3rem;
    padding-bottom: 3.75rem;
  }

  .rn-insight-single .rn-insight-toolbar {
    align-items: flex-start;
  }

  .rn-insight-single .rn-insight-title {
    font-size: clamp(2.55rem, 12.2vw, 4.25rem);
    line-height: 1;
  }

  .rn-insight-single .rn-insight-deck {
    margin-top: 1.35rem;
    font-size: 1.08rem;
  }

  .rn-insight-single .rn-insight-meta {
    margin-top: 2.25rem;
    font-size: .69rem;
  }

  .rn-insight-single .rn-insight-featured-zone {
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
  }

  .rn-insight-single .rn-insight-featured img {
    min-height: 0;
    max-height: none;
    aspect-ratio: 16 / 10;
  }

  .rn-insight-single .rn-insight-reading-zone {
    padding-top: 3.25rem;
    padding-bottom: 4.5rem;
  }

  .rn-insight-single .rn-insight-content {
    font-size: 1.05rem;
    line-height: 1.76;
  }

  .rn-insight-single .rn-insight-content h2 {
    margin-top: 4.25rem;
  }

  .rn-insight-single .rn-insight-navigation {
    display: grid;
    grid-template-columns: 1fr;
  }

  .rn-insight-single .rn-insight-navigation .wp-block-post-navigation-link {
    max-width: 100%;
  }
}
