/*
Theme Name: Home Office Reviews
Theme URI: https://blanchedalmond-turtle-414378.hostingersite.com/
Author: Fernando Linear
Description: Tema editorial personalizado baseado no layout Home Office Reviews.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: home-office-reviews
*/


/* Tabelas editoriais — Tudo Home Office */
.article-content .wp-block-table {
  margin: 30px 0;
  overflow-x: auto;
  border-radius: 14px;
  -webkit-overflow-scrolling: touch;
}

.article-content table {
  width: 100%;
  margin: 0;
  border: 1px solid #e3cfc6;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 14px;
  background: var(--branco, #fff);
  box-shadow: 0 10px 28px rgba(88, 54, 43, 0.08);
  color: var(--preto, #222);
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.5;
  overflow: hidden;
}

.article-content table caption {
  padding: 0 0 12px;
  color: #4b3028;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  text-align: left;
}

.article-content table thead th,
.article-content table tr:first-child > th,
.article-content table tr:first-child > td {
  padding: 15px 19px;
  border: 0;
  border-bottom: 2px solid var(--terracota, #bf6e5c);
  background: var(--pessego, #f0d9d1);
  color: #4b3028;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  vertical-align: middle;
}

.article-content table tbody th,
.article-content table tbody td,
.article-content table tr:not(:first-child) > th,
.article-content table tr:not(:first-child) > td {
  padding: 16px 19px;
  border: 0;
  border-bottom: 1px solid #eadbd4;
  vertical-align: middle;
}

.article-content table tr > * + * {
  border-left: 1px solid #f0e4de;
}

.article-content table tbody tr:nth-child(even),
.article-content table tr:nth-child(odd):not(:first-child) {
  background: #fffaf5;
}

.article-content table tbody tr {
  transition: background-color 0.2s ease;
}

.article-content table tbody tr:hover,
.article-content table tr:not(:first-child):hover {
  background: #f9eee9;
}

.article-content table tbody tr:last-child > *,
.article-content table tr:last-child > * {
  border-bottom: 0;
}

.article-content table td:first-child,
.article-content table th:first-child {
  font-weight: 700;
}

.article-content table td p {
  margin: 0 0 6px;
}

.article-content table td p:last-child {
  margin-bottom: 0;
}

.article-content table td:last-child a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 17px;
  border-radius: 999px;
  background: var(--terracota, #bf6e5c);
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(121, 67, 54, 0.16);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.article-content table td:last-child a:hover,
.article-content table td:last-child a:focus-visible {
  background: #9f5748;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 7px 16px rgba(121, 67, 54, 0.22);
}

@media (max-width: 720px) {
  .article-content .wp-block-table {
    margin-right: -4px;
    padding-bottom: 4px;
    border-radius: 12px;
  }

  .article-content table {
    min-width: 680px;
    border-radius: 12px;
    font-size: 1rem;
  }

  .article-content table thead th,
  .article-content table tr:first-child > th,
  .article-content table tr:first-child > td,
  .article-content table tbody th,
  .article-content table tbody td,
  .article-content table tr:not(:first-child) > th,
  .article-content table tr:not(:first-child) > td {
    padding: 14px 16px;
  }
}
