/* =============================================
   blog.css — OCO Digital
   Listagem (home.php) + Post individual (single.php)
   Usa tokens de 01-settings.css
   ============================================= */

/* ── VARIÁVEIS LOCAIS DO BLOG ── */
.blog-listing,
.blog-single {
  --bl-ink:       var(--oco-text-strong);
  --bl-ink-mid:   var(--oco-text);
  --bl-ink-light: var(--oco-muted);
  --bl-ink-faint: rgba(198, 190, 180, 0.35);
  --bl-paper:     #ffffff;
  --bl-paper-dk:  #fbfbfb;
  --bl-rule:      rgba(198, 190, 180, 0.3);
  --bl-rule-hard: rgba(198, 190, 180, 0.55);
  --bl-font:      var(--oco-font-heading);
  --bl-accent:    var(--oco-accent);
}

/* ── WRAPPER ── */
.blog-listing,
.blog-single {
  background: var(--bl-paper);
  color: #0D0C0B;
  font-family: var(--bl-font);
  font-size: 13px;
  line-height: 1.5;
  min-height: 100vh;
  padding: 0 clamp(20px, 5vw, 80px);
  max-width: 1360px;
  margin: 0 auto;
}

/* Sobrescreve cor do body apenas dentro do blog */
body:has(.blog-listing),
body:has(.blog-single) {
  background: var(--bl-paper);
}

/* =============================================
   LISTAGEM — home.php
   ============================================= */

/* MASTHEAD */
.bl-masthead {
  border-bottom: 2px solid #0D0C0B;
}

.bl-masthead__headline {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  padding: 28px 0 20px;
  border-top: 1px solid #0D0C0B;
  gap: 40px;
}

.bl-title {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: #0D0C0B;
}

.bl-title em {
  font-style: italic;
  font-weight: 300;
}

.bl-masthead__meta {
  text-align: right;
}

.bl-masthead__meta p {
  font-size: 10px;
  color: #6B6560;
  letter-spacing: 0.1em;
  line-height: 1.7;
  text-transform: uppercase;
  margin: 0;
}

.bl-masthead__meta strong { font-weight: 700; color: #0D0C0B; }

/* SECTION RULE */
.bl-section-rule {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 14px 0 0;
  border-top: 1px solid #0D0C0B;
}

.bl-rule-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #6B6560;
}

.bl-rule-n {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: #B0AAA4;
}

/* FEATURED */
.bl-featured {
  display: grid;
  grid-template-columns: 2fr 1fr;
  border-bottom: 1px solid #0D0C0B;
}

.bl-featured__main {
  padding: 28px 32px 28px 0;
  border-right: 1px solid var(--bl-rule-hard);
}

.bl-featured__tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #6B6560;
  margin-bottom: 12px;
}

.bl-featured__tag span {
  background: var(--bl-accent);
  color: #0D0C0B;
  padding: 2px 7px;
  margin-right: 8px;
}

.bl-featured__title {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #0D0C0B;
  margin: 0 0 14px;
  max-width: 580px;
}

.bl-featured__excerpt {
  font-size: 13px;
  color: #4A4540;
  line-height: 1.65;
  max-width: 520px;
  margin: 0 0 20px;
  font-weight: 300;
}

.bl-featured__byline {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6B6560;
  flex-wrap: wrap;
}

.bl-featured__byline a {
  font-weight: 700;
  color: #0D0C0B;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bl-featured__sidebar {
  padding: 28px 0 28px 28px;
}

.bl-sidebar-post {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--bl-rule);
  text-decoration: none;
  transition: padding-left 0.15s;
}

.bl-sidebar-post:last-child { border-bottom: none; }
.bl-sidebar-post:hover { padding-left: 5px; }
.bl-sidebar-post:hover .bl-sp__title { text-decoration: underline; text-underline-offset: 3px; }

.bl-sp__tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6B6560;
  margin-bottom: 5px;
}

.bl-sp__title {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #0D0C0B;
  margin-bottom: 4px;
}

.bl-sp__meta {
  font-size: 10px;
  color: #6B6560;
  letter-spacing: 0.06em;
}

/* FILTER */
.bl-filter {
  display: flex;
  align-items: center;
  border-top: 1px solid #0D0C0B;
  border-bottom: 1px solid #0D0C0B;
  margin-top: 40px;
  flex-wrap: wrap;
}

.bl-filter__btn {
  font-family: var(--bl-font);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 10px 20px;
  background: none;
  border: none;
  border-right: 1px solid var(--bl-rule-hard);
  cursor: pointer;
  color: #6B6560;
  transition: all 0.15s;
}

.bl-filter__btn:hover { color: #0D0C0B; background: var(--bl-paper-dk); }
.bl-filter__btn.active { background: #0D0C0B; color: var(--bl-paper); font-weight: 700; }

.bl-filter__count {
  margin-left: auto;
  padding: 10px 20px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6B6560;
  border-left: 1px solid var(--bl-rule-hard);
}

/* GRID DE POSTS */
.bl-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid var(--bl-rule-hard);
}

.bl-post {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-right: 1px solid var(--bl-rule-hard);
  border-bottom: 1px solid var(--bl-rule-hard);
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.bl-post:hover { background: var(--bl-paper-dk); }

.bl-post__num {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #B0AAA4;
}

.bl-post__cat {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6B6560;
}

.bl-cat--sites    { color: #0D0C0B; }
.bl-cat--mensagem::before    { content: '→ '; }
.bl-cat--performance::before { content: '↑ '; }
.bl-cat--processo::before    { content: '○ '; }

.bl-post__title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #0D0C0B;
  flex: 1;
}

.bl-post:hover .bl-post__title {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.bl-post__excerpt {
  font-size: 11px;
  color: #4A4540;
  line-height: 1.6;
  font-weight: 300;
}

.bl-post__footer {
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--bl-rule);
  font-size: 10px;
  color: #6B6560;
  letter-spacing: 0.08em;
}

/* PAGINAÇÃO */
.bl-pagination {
  display: flex;
  border-top: 1px solid #0D0C0B;
  padding: 14px 0;
}

.bl-pagination .page-numbers {
  font-family: var(--bl-font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-right: 1px solid var(--bl-rule-hard);
  color: #6B6560;
  transition: all 0.15s;
  text-decoration: none;
}

.bl-pagination .page-numbers:hover,
.bl-pagination .page-numbers.current { background: #0D0C0B; color: var(--bl-paper); }

/* PULL QUOTE */
.bl-pullquote {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 36px;
  align-items: center;
  border-top: 1px solid #0D0C0B;
  border-bottom: 1px solid #0D0C0B;
  padding: 28px 0;
}

.bl-pullquote__label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #6B6560;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.bl-pullquote__text {
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #0D0C0B;
  margin: 0;
  border: none;
  padding: 0;
}

.bl-pullquote__text strong {
  font-weight: 700;
  font-style: normal;
}

/* CTA ROW */
.bl-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 2px solid #0D0C0B;
}

.bl-cta__left {
  padding: 32px 32px 32px 0;
  border-right: 1px solid var(--bl-rule-hard);
}

.bl-cta__label,
.bl-cta__sublabel {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #6B6560;
  margin-bottom: 12px;
}

.bl-cta__sublabel {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--bl-rule-hard);
  margin-bottom: 0;
}

.bl-cta__heading {
  font-size: clamp(15px, 1.6vw, 20px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #0D0C0B;
  margin: 0 0 12px;
}

.bl-cta__body {
  font-size: 12px;
  color: #4A4540;
  line-height: 1.65;
  font-weight: 300;
  max-width: 400px;
  margin: 0 0 24px;
}

.bl-cta__link {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bl-paper);
  background: #0D0C0B;
  padding: 10px 20px;
  display: inline-block;
  text-decoration: none;
  transition: opacity 0.15s;
}

.bl-cta__link:hover { opacity: 0.75; }

.bl-cta__right {
  padding: 32px 0 32px 32px;
}

.bl-cta__list-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--bl-rule);
  text-decoration: none;
  color: inherit;
  transition: padding-left 0.15s;
}

.bl-cta__list-item:hover { padding-left: 5px; }

.bl-cta__li-n {
  font-size: 9px;
  color: #B0AAA4;
  min-width: 22px;
}

.bl-cta__li-text {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: #0D0C0B;
  flex: 1;
  line-height: 1.2;
}

.bl-cta__li-cat {
  font-size: 9px;
  color: #6B6560;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* =============================================
   POST INDIVIDUAL — single.php
   ============================================= */

/* BREADCRUMB */
.bs-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--bl-rule-hard);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bs-nav__back { color: #6B6560; font-weight: 700; text-decoration: none; transition: color 0.15s; }
.bs-nav__back:hover { color: #0D0C0B; }
.bs-nav__sep { color: #B0AAA4; }
.bs-nav__cat { color: #6B6560; text-decoration: none; transition: color 0.15s; }
.bs-nav__cat:hover { color: #0D0C0B; }

/* LAYOUT */
.bs-layout {
  display: grid;
  grid-template-columns: 1fr 272px;
  align-items: start;
  border-bottom: 1px solid #0D0C0B;
}

/* ARTICLE */
.bs-article {
  padding: 40px 48px 40px 0;
  border-right: 1px solid var(--bl-rule-hard);
}

/* HEADER */
.bs-header__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.bs-cat {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: var(--bl-accent);
  color: #0D0C0B;
  padding: 3px 8px;
}

.bs-num {
  font-size: 9px;
  letter-spacing: 0.14em;
  color: #B0AAA4;
  text-transform: uppercase;
}

.bs-title {
  font-size: clamp(24px, 3.5vw, 42px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  color: #0D0C0B;
  margin: 0 0 18px;
}

.bs-deck {
  font-size: 15px;
  color: #4A4540;
  line-height: 1.6;
  font-weight: 300;
  font-style: italic;
  max-width: 560px;
  margin: 0 0 16px;
}

.bs-byline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6B6560;
  flex-wrap: wrap;
}

.bs-byline a { color: #0D0C0B; text-decoration: underline; text-underline-offset: 3px; }

/* RULE */
.bs-rule { height: 1px; background: #0D0C0B; margin: 24px 0; }

/* BODY — tipografia de leitura */
.bs-body { max-width: 640px; }

.bs-body p {
  font-size: 15px;
  line-height: 1.75;
  color: #3A3530;
  font-weight: 300;
  margin: 0 0 20px;
}

.bs-body h2 {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: #0D0C0B;
  margin: 36px 0 12px;
  border-top: 1px solid #0D0C0B;
  padding-top: 14px;
}

.bs-body h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0D0C0B;
  margin: 28px 0 10px;
}

.bs-body strong { font-weight: 700; color: #0D0C0B; }
.bs-body em { font-style: italic; }

.bs-body a { color: #0D0C0B; text-decoration: underline; text-underline-offset: 3px; }
.bs-body a:hover { text-decoration-color: var(--bl-accent); }

.bs-body ul, .bs-body ol { margin: 0 0 20px 0; padding-left: 20px; }

.bs-body li {
  font-size: 15px;
  line-height: 1.75;
  color: #3A3530;
  font-weight: 300;
  margin-bottom: 6px;
}

.bs-body blockquote {
  border-left: 3px solid #0D0C0B;
  padding: 12px 0 12px 22px;
  margin: 24px 0;
}

.bs-body blockquote p {
  font-size: 17px;
  font-style: italic;
  color: #0D0C0B;
  margin: 0;
}

.bs-body hr { border: none; border-top: 1px solid var(--bl-rule-hard); margin: 30px 0; }

.bs-body img { width: 100%; height: auto; margin: 28px 0; display: block; }

.bs-body figure { margin: 28px 0; }

.bs-body figcaption {
  font-size: 10px;
  color: #6B6560;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 8px;
}

/* CTA INLINE */
.bs-cta-inline {
  border: 1px solid #0D0C0B;
  padding: 22px;
  margin: 32px 0;
  max-width: 540px;
  background: var(--bl-paper-dk);
}

.bs-cta-inline__label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #6B6560;
  margin-bottom: 10px;
}

.bs-cta-inline__text {
  font-size: 13px;
  color: #4A4540;
  line-height: 1.6;
  font-weight: 300;
  margin: 0 0 16px;
}

.bs-cta-inline__link {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bl-paper);
  background: #0D0C0B;
  padding: 9px 18px;
  display: inline-block;
  text-decoration: none;
  transition: opacity 0.15s;
}

.bs-cta-inline__link:hover { opacity: 0.75; }

/* TAGS */
.bs-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 24px; }

.bs-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--bl-rule-hard);
  color: #6B6560;
  text-decoration: none;
  transition: all 0.15s;
}

.bs-tag:hover { border-color: #0D0C0B; color: #0D0C0B; }

/* ANTERIOR / PRÓXIMO */
.bs-adjacent {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--bl-rule-hard);
  background: var(--bl-rule);
  gap: 1px;
}

.bs-adj {
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: var(--bl-paper);
  text-decoration: none;
  transition: background 0.15s;
}

.bs-adj--next { padding-left: 14px; }
.bs-adj:hover { background: var(--bl-paper-dk); }

.bs-adj__dir {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6B6560;
}

.bs-adj__title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: #0D0C0B;
  line-height: 1.2;
}

/* SIDEBAR */
.bs-sidebar {
  padding: 40px 0 40px 28px;
  position: sticky;
  top: 80px;
}

.bs-sb-block {
  padding: 18px 0;
  border-bottom: 1px solid var(--bl-rule-hard);
}

.bs-sb-block:first-child { border-top: 1px solid var(--bl-rule-hard); }

.bs-sb-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #6B6560;
  margin-bottom: 12px;
}

.bs-sb-text {
  font-size: 12px;
  color: #4A4540;
  line-height: 1.65;
  font-weight: 300;
  margin: 0 0 12px;
}

.bs-sb-link {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0D0C0B;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.15s;
}

.bs-sb-link:hover { opacity: 0.6; }

/* Posts relacionados */
.bs-sb-post {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid var(--bl-rule);
  text-decoration: none;
  color: inherit;
  transition: padding-left 0.15s;
}

.bs-sb-post:last-child { border-bottom: none; }
.bs-sb-post:hover { padding-left: 4px; }

.bs-sb-post__date { font-size: 9px; color: #B0AAA4; white-space: nowrap; }
.bs-sb-post__title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: -0.01em; color: #0D0C0B; line-height: 1.2; }
.bs-sb-post__time { font-size: 9px; color: #B0AAA4; white-space: nowrap; }

/* Categorias */
.bs-sb-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--bl-rule);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #4A4540;
  text-decoration: none;
  transition: color 0.15s;
}

.bs-sb-cat:last-child { border-bottom: none; }
.bs-sb-cat:hover { color: #0D0C0B; }
.bs-sb-cat span { font-size: 10px; color: #B0AAA4; font-weight: 400; }

/* CTA Sidebar */
.bs-sb-cta { background: var(--bl-paper-dk); padding: 16px; border: 1px solid #0D0C0B; margin-top: 2px; }

.bs-sb-cta__btn {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bl-paper);
  background: #0D0C0B;
  padding: 9px 16px;
  margin-top: 12px;
  text-decoration: none;
  transition: opacity 0.15s;
}

.bs-sb-cta__btn:hover { opacity: 0.75; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1100px) {
  .bl-grid { grid-template-columns: repeat(3, 1fr); }
  .bs-layout { grid-template-columns: 1fr 240px; }
}

@media (max-width: 900px) {
  .bl-featured { grid-template-columns: 1fr; }
  .bl-featured__main { border-right: none; padding-right: 0; }
  .bl-featured__sidebar { border-top: 1px solid var(--bl-rule-hard); padding: 20px 0 0; }
  .bl-grid { grid-template-columns: repeat(2, 1fr); }
  .bl-cta { grid-template-columns: 1fr; }
  .bl-cta__left { border-right: none; border-bottom: 1px solid var(--bl-rule-hard); padding-right: 0; padding-bottom: 24px; }
  .bl-cta__right { padding-left: 0; padding-top: 24px; }
  .bs-layout { grid-template-columns: 1fr; }
  .bs-article { border-right: none; padding-right: 0; }
  .bs-sidebar { position: static; border-top: 1px solid #0D0C0B; padding: 28px 0 0; }
}

@media (max-width: 600px) {
  .bl-grid { grid-template-columns: 1fr; }
  .bl-title { font-size: 36px; }
  .bl-masthead__headline { grid-template-columns: 1fr; }
  .bl-masthead__meta { text-align: left; }
  .bl-pullquote { grid-template-columns: 1fr; }
  .bl-pullquote__label { writing-mode: horizontal-tb; transform: none; margin-bottom: 10px; }
  .bs-title { font-size: 26px; }
  .bs-adjacent { grid-template-columns: 1fr; }
}
