/* Blog das duas marcas. Usa as variáveis de tema de cada site (--linen, --mist, --navy, --slate, --line, --blue). */

.blog-main {
  padding-top: calc(var(--header-h, 76px) + 28px);
  padding-bottom: clamp(56px, 7vw, 96px);
}

.blog-wrap {
  max-width: 1120px;
}

.blog-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--slate);
  font-size: 0.85rem;
}

.blog-breadcrumb a {
  color: var(--slate);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-breadcrumb a:hover {
  color: var(--navy);
}

.blog-kicker {
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.blog-index-header h1,
.blog-post-header h1 {
  max-width: 22ch;
  color: var(--navy);
  font-family: var(--display);
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.08;
}

.blog-lead {
  max-width: 62ch;
  margin-top: 20px;
  color: var(--slate);
  font-size: 1.15rem;
}

.blog-meta {
  margin-top: 18px;
  color: var(--slate);
  font-size: 0.88rem;
}

.blog-index-header {
  margin-bottom: clamp(32px, 4vw, 56px);
}

/* ---------- Listagem ---------- */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 28px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--mist);
}

.blog-card-image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--line);
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.03);
}

.blog-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 22px 24px;
}

.blog-card h2 {
  color: var(--navy);
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.2;
}

.blog-card h2 a {
  color: inherit;
}

.blog-card h2 a:hover {
  color: var(--blue);
}

.blog-card-body > p:not(.blog-kicker):not(.blog-meta) {
  margin-top: 12px;
  color: var(--slate);
  font-size: 0.97rem;
}

.blog-card .blog-meta {
  margin-top: auto;
  padding-top: 18px;
}

/* ---------- Artigo ---------- */

.blog-post-header {
  max-width: 820px;
}

.blog-figure {
  margin: clamp(28px, 4vw, 44px) 0 0;
  max-width: 980px;
}

.blog-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  object-fit: cover;
  background: var(--mist);
}

.blog-body {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 720px);
  gap: clamp(32px, 5vw, 72px);
  margin-top: clamp(32px, 4vw, 52px);
  align-items: start;
}

.blog-toc {
  position: sticky;
  top: calc(var(--header-h, 76px) + 24px);
  font-size: 0.9rem;
}

.blog-toc p {
  margin-bottom: 12px;
  color: var(--navy);
  font-weight: 700;
}

.blog-toc ol {
  display: grid;
  gap: 10px;
  padding-left: 18px;
  color: var(--slate);
}

.blog-toc a {
  color: var(--slate);
}

.blog-toc a:hover {
  color: var(--blue);
}

.blog-body:not(:has(.blog-toc)) {
  grid-template-columns: minmax(0, 720px);
}

.blog-prose {
  color: var(--navy);
  font-size: 1.08rem;
  line-height: 1.75;
}

.blog-prose > * + * {
  margin-top: 1.15em;
}

.blog-prose h2 {
  margin-top: 2.2em;
  scroll-margin-top: calc(var(--header-h, 76px) + 20px);
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
}

.blog-prose h3 {
  margin-top: 1.8em;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
}

.blog-prose ul,
.blog-prose ol {
  padding-left: 1.3em;
}

.blog-prose li + li {
  margin-top: 0.45em;
}

.blog-prose ul {
  list-style: disc;
}

.blog-prose ol {
  list-style: decimal;
}

.blog-prose a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-prose strong {
  font-weight: 700;
}

.blog-prose blockquote {
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--blue);
  color: var(--slate);
}

.blog-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.blog-table-wrap:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.blog-prose table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.5;
}

.blog-prose th,
.blog-prose td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.blog-prose thead th {
  background: var(--mist);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-prose tbody tr:last-child th,
.blog-prose tbody tr:last-child td {
  border-bottom: 0;
}

.blog-cta {
  max-width: 820px;
  margin-top: clamp(48px, 6vw, 80px);
  padding: clamp(26px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--mist);
}

.blog-cta h2 {
  color: var(--navy);
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 600;
  line-height: 1.2;
}

.blog-cta > p:not(.blog-cta-actions) {
  max-width: 54ch;
  margin-top: 12px;
  color: var(--slate);
}

.blog-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 24px;
}

.blog-cta-link {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.tesselant-page .blog-cta .button {
  color: #171410;
}

.blog-related {
  margin-top: clamp(48px, 6vw, 80px);
}

.blog-related > h2 {
  margin-bottom: 24px;
  color: var(--navy);
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 600;
}

@media (max-width: 900px) {
  .blog-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .blog-toc {
    position: static;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--mist);
  }
}

/* ---------- Páginas por categoria ---------- */

.cat-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.cat-hero h1 {
  max-width: 16ch;
  color: var(--navy);
  font-family: var(--display);
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  font-weight: 600;
  line-height: 1.08;
}

.cat-hero .blog-cta-actions {
  margin-top: 28px;
}

.cat-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  object-fit: cover;
  background: var(--mist);
}

.cat-section {
  margin-top: clamp(40px, 5vw, 64px);
  max-width: 920px;
}

.cat-section > h2 {
  margin-bottom: 18px;
  color: var(--navy);
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
}

.cat-section > p {
  max-width: 68ch;
  color: var(--navy);
  font-size: 1.05rem;
}

.cat-section > p + ul,
.cat-section > p + p {
  margin-top: 14px;
}

.cat-section > ul:not(.cat-colors) {
  padding-left: 1.3em;
  list-style: disc;
  color: var(--navy);
}

.cat-section > ul:not(.cat-colors) li + li {
  margin-top: 0.4em;
}

.cat-section .blog-table-wrap table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.5;
}

.cat-section .blog-table-wrap th,
.cat-section .blog-table-wrap td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.cat-section .blog-table-wrap thead th {
  background: var(--mist);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cat-section .blog-table-wrap tbody tr:last-child th,
.cat-section .blog-table-wrap tbody tr:last-child td {
  border-bottom: 0;
}

.cat-colors {
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
  gap: 16px;
}

.cat-colors li {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--mist);
}

.cat-colors img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
}

.cat-colors span {
  display: block;
  padding: 10px 12px;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 600;
}

.cat-faq details {
  border-top: 1px solid var(--line);
}

.cat-faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.cat-faq summary {
  position: relative;
  padding: 18px 40px 18px 0;
  color: var(--navy);
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.cat-faq summary::-webkit-details-marker {
  display: none;
}

.cat-faq summary::after {
  position: absolute;
  top: 50%;
  right: 4px;
  content: "+";
  color: var(--blue);
  font-size: 1.4rem;
  line-height: 1;
  transform: translateY(-50%);
}

.cat-faq details[open] summary::after {
  content: "2";
}

.cat-faq details p {
  max-width: 68ch;
  padding: 0 0 18px;
  color: var(--slate);
}

.cat-related-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 28px;
}

.cat-related h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 700;
}

.cat-related ul {
  padding: 0;
  list-style: none;
}

.cat-related li + li {
  margin-top: 8px;
}

.cat-related a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cat-page .blog-cta {
  margin-top: clamp(40px, 5vw, 64px);
}

@media (max-width: 900px) {
  .cat-hero {
    grid-template-columns: minmax(0, 1fr);
  }
}

.cat-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 16px;
  margin-top: 18px;
  padding: 0;
  list-style: none;
}

.cat-gallery figure {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--mist);
}

.cat-gallery img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.cat-gallery figcaption {
  padding: 10px 14px 12px;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 600;
}
