/* Tamborim Blog — layout do blog e componentes dos artigos */
:root {
  --tb-ink: #141210;
  --tb-ink-2: #3b3631;
  --tb-muted: #6f675d;
  --tb-gold: #f2b705;
  --tb-gold-d: #b8860b;
  --tb-red: #c8102e;
  --tb-cream: #faf3e0;
  --tb-line: #e9e1cf;
  --tb-bg: #ffffff;
  --tb-wa: #1fa855;
  --tb-radius: 16px;
  --tb-shadow: 0 10px 30px rgba(20, 18, 16, .08);
}

/* ---------- Estrutura ---------- */
.tb-blog-view #Subheader { display: none; }
.tb-blog { background: var(--tb-bg); color: var(--tb-ink); font-size: 16px; line-height: 1.6; }
.tb-blog *, .tb-blog *::before, .tb-blog *::after { box-sizing: border-box; }
.tb-wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.tb-blog a { text-decoration: none; }
.tb-blog h1, .tb-blog h2, .tb-blog h3 { color: inherit; letter-spacing: -.01em; }

/* ---------- Hero ---------- */
.tb-hero {
  background:
    radial-gradient(900px 400px at 85% 30%, rgba(242, 183, 5, .22), transparent 60%),
    radial-gradient(600px 300px at 10% 110%, rgba(200, 16, 46, .28), transparent 60%),
    var(--tb-ink);
  color: #fff; padding: 64px 0 56px; margin-bottom: 0;
}
.tb-hero h1 { color: #fff; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.08; font-weight: 800; max-width: 820px; margin: 10px 0 14px; }
.tb-hero p { color: #e8e1d3; font-size: 18px; max-width: 680px; margin: 0 0 26px; }
.tb-kicker { display: inline-block; color: var(--tb-gold); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.tb-hero--cat { padding: 48px 0 40px; }
.tb-hero-cat { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.tb-hero-art { width: 260px; height: auto; border-radius: var(--tb-radius); flex: none; }
.tb-crumbs { font-size: 14px; color: #cfc6b5; }
.tb-crumbs a { color: var(--tb-gold); }

.tb-search { display: flex; max-width: 620px; background: #fff; border-radius: 999px; padding: 6px; box-shadow: 0 8px 30px rgba(0,0,0,.25); }
.tb-search input[type=search] { flex: 1; border: 0 !important; background: transparent !important; padding: 10px 18px !important; font-size: 16px; color: var(--tb-ink); box-shadow: none !important; margin: 0 !important; min-width: 0; }
.tb-search button { border: 0; background: var(--tb-gold); color: var(--tb-ink); font-weight: 800; border-radius: 999px; padding: 10px 24px; cursor: pointer; margin: 0; }
.tb-search button:hover { background: #ffc928; }

/* ---------- Navegação de categorias ---------- */
.tb-catnav { position: relative; z-index: 20; margin: 32px 0 44px; }
.tb-catnav-list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 12px 14px; background: #fff; border-radius: 20px; box-shadow: var(--tb-shadow); border: 1px solid var(--tb-line); }
.tb-catnav-list > li { position: relative; margin: 0; list-style: none; }
.tb-catnav-link { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--tb-line); background: #fff; color: var(--tb-ink) !important; font-weight: 700; font-size: 15px; line-height: 1.2; white-space: nowrap; transition: background .2s, border-color .2s; }
.tb-catnav-link:hover { background: var(--tb-cream); border-color: var(--tb-gold); }
.tb-catnav-link.is-active, .tb-catnav-link.is-active:hover { background: var(--tb-ink); border-color: var(--tb-ink); color: #fff !important; }
.tb-catnav-sep { align-self: stretch; width: 1px; min-height: 28px; margin: 4px 2px; background: var(--tb-line); }
.tb-catnav-more .tb-catnav-sub { left: auto; right: 0; }
.tb-catnav-list > li.tb-catnav-mobile { display: none; }
@media (max-width: 1260px) and (min-width: 768px) { .tb-catnav-list { justify-content: center; } .tb-catnav-sep { display: none; } }
@media (max-width: 767px) {
  .tb-catnav { margin: 20px 0 28px; }
  .tb-catnav-list { padding: 10px; gap: 8px; }
  .tb-catnav-link { padding: 9px 15px; font-size: 14px; }
  .tb-catnav-list > li.tb-catnav-more { display: none; }
  .tb-catnav-list > li.tb-catnav-mobile { display: list-item; }
}
.tb-caret { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.tb-catnav-sub { position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px; list-style: none; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--tb-line); border-radius: 14px; box-shadow: var(--tb-shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; }
.tb-catnav-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.has-sub:hover > .tb-catnav-sub, .has-sub:focus-within > .tb-catnav-sub { opacity: 1; visibility: visible; transform: none; }
.tb-catnav-sub li { margin: 0; list-style: none; }
.tb-catnav-sub a { display: flex; justify-content: space-between; padding: 9px 12px; border-radius: 10px; color: var(--tb-ink) !important; font-weight: 600; }
.tb-catnav-sub a:hover { background: var(--tb-cream); }
.tb-catnav-sub small, .tb-chip small { color: var(--tb-muted); font-weight: 600; }

.tb-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -12px 0 28px; }
.tb-chips-label { font-weight: 700; color: var(--tb-muted); margin-right: 4px; }
.tb-chip { padding: 7px 14px; border: 1px solid var(--tb-line); border-radius: 999px; color: var(--tb-ink) !important; font-weight: 600; background: #fff; }
.tb-chip:hover, .tb-chip.is-active { border-color: var(--tb-gold-d); background: var(--tb-cream); }

/* ---------- Seções e grid ---------- */
.tb-section { margin: 0 0 56px; }
.tb-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 2px solid var(--tb-ink); padding-bottom: 10px; margin-bottom: 22px; }
.tb-section-head h2 { font-size: 26px; font-weight: 800; margin: 0; position: relative; }
.tb-section-head h2::after { content: ""; display: block; width: 56px; height: 4px; background: var(--tb-gold); position: absolute; left: 0; bottom: -14px; }
.tb-section-head a { color: var(--tb-red) !important; font-weight: 700; white-space: nowrap; }
.tb-section-desc { color: var(--tb-muted); margin: -8px 0 20px; }
.tb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }

/* ---------- Cards ---------- */
.tb-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--tb-line); border-radius: var(--tb-radius); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.tb-card:hover { transform: translateY(-4px); box-shadow: var(--tb-shadow); }
.tb-card-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--tb-cream); }
.tb-card-media img, .tb-card-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.tb-card:hover .tb-card-img { transform: scale(1.04); }
.tb-card-noimg { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--tb-ink), #3a2c12); }
.tb-card-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.tb-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tb-pill { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--tb-gold); color: var(--tb-ink) !important; }
.tb-pill--ghost { background: transparent; border: 1px solid var(--tb-line); color: var(--tb-muted) !important; }
.tb-card-title { font-size: 19px; line-height: 1.3; font-weight: 800; margin: 0; }
.tb-card-title a { color: var(--tb-ink) !important; }
.tb-card-title a:hover { color: var(--tb-red) !important; }
.tb-card-excerpt { color: var(--tb-ink-2); font-size: 15px; margin: 0; flex: 1; }
.tb-card-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--tb-muted); border-top: 1px dashed var(--tb-line); padding-top: 10px; }

.tb-featured { display: grid; grid-template-columns: 1.6fr 1fr; gap: 26px; margin-bottom: 56px; }
.tb-featured-side { display: grid; gap: 26px; }
.tb-card--destaque .tb-card-title { font-size: 28px; }
.tb-card--destaque .tb-card-excerpt { font-size: 17px; }
/* compacto: imagem inteira em 16:9 em cima (não corta a capa) */
.tb-card--compacto { flex-direction: column; }
.tb-card--compacto .tb-card-media { flex: none; aspect-ratio: 16 / 9; }
.tb-card--compacto .tb-card-body { padding: 14px 18px 16px; gap: 8px; }
.tb-card--compacto .tb-card-excerpt { display: none; }
.tb-card--compacto .tb-card-title { font-size: 17px; }

/* ---------- Tiles de instrumento ---------- */
.tb-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.tb-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 190px; padding: 16px; border-radius: var(--tb-radius); overflow: hidden; background: var(--tb-ink); color: #fff !important; }
.tb-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tb-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(20,18,16,.85)); }
.tb-tile:hover img { transform: scale(1.06); }
.tb-tile-name, .tb-tile-count { position: relative; z-index: 1; }
.tb-tile-name { font-weight: 800; font-size: 18px; }
.tb-tile-count { font-size: 13px; color: var(--tb-gold); font-weight: 700; }

/* ---------- Faixa CTA ---------- */
.tb-band { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 34px 38px; margin: 0 0 56px; border-radius: 22px; color: #fff; background: radial-gradient(500px 200px at 90% 0, rgba(242,183,5,.35), transparent 70%), linear-gradient(120deg, #7a0a1c, var(--tb-red)); }
.tb-band h2 { color: #fff; font-size: 26px; margin: 0 0 6px; }
.tb-band p { margin: 0; color: #ffe9ec; max-width: 640px; }
.tb-band-actions { display: flex; gap: 12px; flex-wrap: wrap; flex: none; }

/* ---------- Botões ---------- */
.tb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 800; background: var(--tb-gold); color: var(--tb-ink) !important; text-decoration: none !important; border: 2px solid transparent; transition: transform .15s, background .15s; line-height: 1.2; }
.tb-btn:hover { transform: translateY(-2px); background: #ffc928; }
.tb-btn-wa { background: var(--tb-wa); color: #fff !important; }
.tb-btn-wa:hover { background: #18934a; }
.tb-btn-ghost { background: transparent; border-color: #fff; color: #fff !important; }
.tb-btn-ghost:hover { background: rgba(255,255,255,.12); }

/* ---------- Paginação ---------- */
.tb-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 34px; }
.tb-pagination .page-numbers { padding: 9px 15px; border-radius: 10px; border: 1px solid var(--tb-line); color: var(--tb-ink) !important; font-weight: 700; }
.tb-pagination .current, .tb-pagination a:hover { background: var(--tb-ink); color: #fff !important; border-color: var(--tb-ink); }

/* ================= ARTIGO (single) ================= */
.tb-blog-single .the_content_wrapper, .tb-blog-single .post-wrapper-content { font-size: 17.5px; line-height: 1.75; color: var(--tb-ink-2); }
.tb-blog-single .the_content_wrapper h2 { font-size: 28px; line-height: 1.25; margin: 44px 0 14px; color: var(--tb-ink); font-weight: 800; scroll-margin-top: 110px; }
.tb-blog-single .the_content_wrapper h2::before { content: ""; display: block; width: 44px; height: 4px; background: var(--tb-gold); margin-bottom: 12px; }
.tb-blog-single .the_content_wrapper h3 { font-size: 21px; margin: 28px 0 10px; color: var(--tb-ink); }
.tb-blog-single .the_content_wrapper a:not(.tb-btn) { color: var(--tb-red); text-decoration: underline; text-underline-offset: 3px; }

.tb-lead { font-size: 20px !important; line-height: 1.6; color: var(--tb-ink) !important; border-left: 5px solid var(--tb-gold); padding: 4px 0 4px 18px; margin-bottom: 26px; }

.tb-toc { background: var(--tb-cream); border: 1px solid var(--tb-line); border-radius: var(--tb-radius); padding: 20px 24px; margin: 0 0 32px; }
.tb-toc strong { display: block; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--tb-gold-d); margin-bottom: 8px; }
.tb-toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 32px; }
.tb-toc li { margin: 4px 0; break-inside: avoid; }
.tb-toc a { color: var(--tb-ink) !important; text-decoration: none !important; font-weight: 600; }
.tb-toc a:hover { color: var(--tb-red) !important; }

.tb-box { border-radius: 14px; padding: 18px 22px; margin: 26px 0; border: 1px solid; }
.tb-box strong:first-child { display: block; font-size: 14px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px; }
.tb-box p { margin: 0; }
.tb-dica { background: #fff8e1; border-color: #f4d57a; }
.tb-dica strong:first-child { color: var(--tb-gold-d); }
.tb-atencao { background: #fdecee; border-color: #f2b3bd; }
.tb-atencao strong:first-child { color: var(--tb-red); }

.tb-tabela { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15.5px; border-radius: 12px; overflow: hidden; display: block; overflow-x: auto; }
.tb-tabela thead th { background: var(--tb-ink); color: #fff; text-align: left; padding: 12px 14px; }
.tb-tabela td { padding: 11px 14px; border-bottom: 1px solid var(--tb-line); vertical-align: top; }
.tb-tabela tbody tr:nth-child(even) td { background: #fcf9f1; }

.tb-produto { position: relative; margin: 34px 0; padding: 26px 26px 24px; border-radius: 18px; background: linear-gradient(135deg, var(--tb-ink), #2d2416); color: #f3ede2; }
.tb-produto h3 { color: #fff !important; margin: 8px 0 10px !important; }
.tb-produto ul { margin: 0 0 18px; padding-left: 20px; }
.tb-produto li { margin: 4px 0; }
.tb-produto-selo { display: inline-block; background: var(--tb-gold); color: var(--tb-ink); font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }

.tb-figura { margin: 32px 0; }
.tb-figura img { width: 100%; height: auto; border-radius: var(--tb-radius); border: 1px solid var(--tb-line); display: block; }
.tb-figura figcaption { font-size: 14px; color: var(--tb-muted); margin-top: 8px; text-align: center; }

.tb-faq details { border: 1px solid var(--tb-line); border-radius: 12px; margin: 10px 0; background: #fff; }
.tb-faq summary { cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 700; color: var(--tb-ink); position: relative; list-style: none; }
.tb-faq summary::-webkit-details-marker { display: none; }
.tb-faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--tb-gold-d); }
.tb-faq details[open] summary::after { content: "–"; }
.tb-faq details p { padding: 0 18px 16px; margin: 0; }

.tb-cta { margin: 40px 0 28px; padding: 30px; border-radius: 20px; text-align: center; background: radial-gradient(400px 180px at 50% 0, rgba(242,183,5,.35), transparent 70%), linear-gradient(120deg, #7a0a1c, var(--tb-red)); color: #fff; }
.tb-cta h3 { color: #fff !important; font-size: 26px !important; margin: 0 0 8px !important; }
.tb-cta p { color: #ffe9ec; margin: 0 auto 18px; max-width: 560px; }
.tb-cta .tb-btn { margin: 4px 6px; }

.tb-relacionados { border-top: 2px solid var(--tb-ink); padding-top: 18px; margin-top: 30px; }
.tb-relacionados strong { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--tb-gold-d); }
.tb-relacionados ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; }
.tb-relacionados li { margin: 0; padding: 12px 16px; border: 1px solid var(--tb-line); border-radius: 12px; }
.tb-relacionados li a { color: var(--tb-ink) !important; text-decoration: none !important; font-weight: 700; }
.tb-relacionados li a:hover { color: var(--tb-red) !important; }

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
  .tb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-featured { grid-template-columns: 1fr; }
  .tb-featured-side { grid-template-columns: 1fr 1fr; }
  .tb-card--compacto { flex-direction: column; }
  .tb-card--compacto .tb-card-media { aspect-ratio: 16 / 9; flex: none; }
}
@media (max-width: 767px) {
  .tb-hero { padding: 44px 0 48px; }
  .tb-hero p { font-size: 16px; }
  .tb-hero-art { display: none; }
  .tb-grid, .tb-featured-side { grid-template-columns: 1fr; }
  .tb-catnav-list { flex-wrap: nowrap; overflow-x: auto; border-radius: 16px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .tb-catnav-list > li { flex: none; }
  .tb-catnav-sub { display: none; }
  .tb-card--destaque .tb-card-title { font-size: 22px; }
  .tb-band { flex-direction: column; align-items: flex-start; padding: 26px 22px; }
  .tb-toc ol { columns: 1; }
  .tb-tiles { grid-template-columns: repeat(2, 1fr); }
  .tb-tile { min-height: 150px; }
  .tb-search button { padding: 10px 16px; }
}
