/* Article typography, lists and tables (post content only) */
.elementor-widget-theme-post-content {
  --af-ink: #1a1a1a;
  --af-text: #3a3a3a;
  --af-muted: #6b6b6b;
  --af-gold: #ae9678;
  --af-gold-dark: #8a7356;
  --af-gold-soft: #f6f1ea;
  --af-line: #e7e1d8;
  --af-row: #faf8f5;
  color: var(--af-text);
  font-size: 17px;
  line-height: 1.75;
}

.elementor-widget-theme-post-content p {
  margin: 0 0 1.15em;
  color: var(--af-text);
}

.elementor-widget-theme-post-content strong,
.elementor-widget-theme-post-content b {
  color: var(--af-ink);
}

.elementor-widget-theme-post-content a:not(.elementor-button):not([class*="casino"]) {
  color: var(--af-gold-dark);
  text-decoration: underline;
  text-decoration-color: rgba(174, 150, 120, 0.45);
  text-underline-offset: 0.18em;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.elementor-widget-theme-post-content a:not(.elementor-button):not([class*="casino"]):hover {
  color: var(--af-ink);
  text-decoration-color: var(--af-gold);
}

/* Headings */
.elementor-widget-theme-post-content h2 {
  position: relative;
  margin: 2.1em 0 0.75em;
  padding-left: 18px;
  color: var(--af-ink);
  font-size: clamp(24px, 1.2rem + 1vw, 31px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.elementor-widget-theme-post-content h2::before {
  content: "";
  position: absolute;
  top: 0.12em;
  bottom: 0.12em;
  left: 0;
  width: 5px;
  border-radius: 3px;
  background: var(--af-gold);
}

.elementor-widget-theme-post-content h2 strong {
  font-weight: inherit;
}

.elementor-widget-theme-post-content h3 {
  margin: 1.7em 0 0.55em;
  color: var(--af-ink);
  font-size: clamp(19px, 1rem + 0.4vw, 22px);
  font-weight: 700;
  line-height: 1.35;
}

.elementor-widget-theme-post-content h4 {
  margin: 1.4em 0 0.5em;
  color: var(--af-ink);
  font-size: 18px;
  font-weight: 700;
}

.elementor-widget-theme-post-content > .elementor-widget-container > h2:first-child,
.elementor-widget-theme-post-content > .elementor-widget-container > h3:first-child {
  margin-top: 0.4em;
}

/* Lists */
.elementor-widget-theme-post-content ul,
.elementor-widget-theme-post-content ol {
  margin: 0 0 1.3em;
  padding-left: 0;
  list-style: none;
}

.elementor-widget-theme-post-content li {
  position: relative;
  margin: 0 0 0.55em;
  padding-left: 30px;
}

.elementor-widget-theme-post-content ul > li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--af-gold);
}

.elementor-widget-theme-post-content ol {
  counter-reset: af-ol;
}

.elementor-widget-theme-post-content ol > li {
  counter-increment: af-ol;
  padding-left: 38px;
}

.elementor-widget-theme-post-content ol > li::before {
  content: counter(af-ol);
  position: absolute;
  top: 0.15em;
  left: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--af-ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 26px;
  text-align: center;
}

.elementor-widget-theme-post-content li > ul,
.elementor-widget-theme-post-content li > ol {
  margin: 0.5em 0 0;
}

/* Quotes and images */
.elementor-widget-theme-post-content blockquote {
  margin: 1.6em 0;
  padding: 18px 22px;
  border-left: 4px solid var(--af-gold);
  border-radius: 0 10px 10px 0;
  background: var(--af-gold-soft);
  color: var(--af-ink);
  font-style: italic;
}

.elementor-widget-theme-post-content blockquote p:last-child {
  margin-bottom: 0;
}

.elementor-widget-theme-post-content figure {
  margin: 1.6em 0;
}

.elementor-widget-theme-post-content figure img {
  border-radius: 12px;
}

.elementor-widget-theme-post-content figcaption {
  margin-top: 8px;
  color: var(--af-muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

/* Tables */
.elementor-widget-theme-post-content figure:has(> table) {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.4em 0 1.8em;
  border: 1px solid var(--af-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(26, 26, 26, 0.06);
}

.elementor-widget-theme-post-content table {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  border-spacing: 0;
  background: #fff;
  font-size: 15.5px;
  line-height: 1.5;
  table-layout: auto;
}

.elementor-widget-theme-post-content figure:not(:has(> table)) > table,
.elementor-widget-theme-post-content > .elementor-widget-container > table {
  border: 1px solid var(--af-line);
}

.elementor-widget-theme-post-content table thead th,
.elementor-widget-theme-post-content table thead td {
  padding: 13px 16px;
  border: 0;
  background: var(--af-ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.elementor-widget-theme-post-content table thead th strong {
  color: inherit;
}

.elementor-widget-theme-post-content table thead tr th:first-child {
  border-left: 0;
}

.elementor-widget-theme-post-content table tbody td,
.elementor-widget-theme-post-content table tbody th {
  padding: 12px 16px;
  border: 0;
  border-top: 1px solid var(--af-line);
  color: var(--af-text);
  text-align: left;
  vertical-align: middle;
}

.elementor-widget-theme-post-content table tbody tr:first-child td,
.elementor-widget-theme-post-content table tbody tr:first-child th {
  border-top: 0;
}

.elementor-widget-theme-post-content table tbody tr:nth-child(even) {
  background: var(--af-row);
}

.elementor-widget-theme-post-content table tbody tr {
  transition: background-color 0.15s ease;
}

.elementor-widget-theme-post-content table tbody tr:hover {
  background: var(--af-gold-soft);
}

.elementor-widget-theme-post-content table tbody td:first-child,
.elementor-widget-theme-post-content table tbody th:first-child {
  color: var(--af-ink);
  font-weight: 700;
}

/* Casino rating tables */
.elementor-widget-theme-post-content table.casino-table tbody td:last-child {
  width: 1%;
  text-align: center;
  white-space: nowrap;
}

.elementor-widget-theme-post-content table.casino-table thead th:last-child {
  text-align: center;
}

.elementor-widget-theme-post-content table.casino-table tbody td:last-child,
.elementor-widget-theme-post-content table.casino-table tbody td:last-child strong {
  color: var(--af-gold-dark);
  font-weight: 800;
}

.elementor-widget-theme-post-content table.casino-table tbody td:last-child > * {
  display: inline-block;
  min-width: 64px;
  padding: 4px 10px;
  border: 1px solid #e3d6c3;
  border-radius: 999px;
  background: var(--af-gold-soft);
}

.elementor-widget-theme-post-content table.casino-table tbody tr:first-child td:last-child > * {
  border-color: var(--af-gold);
  background: var(--af-gold);
  color: #fff;
}

@media (max-width: 767px) {
  .elementor-widget-theme-post-content {
    font-size: 16px;
    line-height: 1.7;
  }

  .elementor-widget-theme-post-content h2 {
    padding-left: 14px;
  }

  .elementor-widget-theme-post-content table {
    font-size: 14px;
  }

  .elementor-widget-theme-post-content table thead th,
  .elementor-widget-theme-post-content table thead td {
    padding: 11px 12px;
    font-size: 12px;
  }

  .elementor-widget-theme-post-content table tbody td,
  .elementor-widget-theme-post-content table tbody th {
    padding: 10px;
  }

  .elementor-widget-theme-post-content table thead th,
  .elementor-widget-theme-post-content table thead td {
    padding-left: 10px;
    padding-right: 10px;
  }

  .elementor-widget-theme-post-content figure:has(> table th:nth-child(4)) table,
  .elementor-widget-theme-post-content figure:has(> table td:nth-child(4)) table {
    min-width: 560px;
  }
}

/* Author and date line under the H1 */
.elementor-widget-post-info ul.elementor-icon-list-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.elementor-widget-post-info li.elementor-icon-list-item {
  display: inline-flex;
  align-items: center;
  margin: 0;
  color: #6b6b6b;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.elementor-widget-post-info li.elementor-icon-list-item + li.elementor-icon-list-item::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 12px;
  border-radius: 50%;
  background: #ae9678;
}

.elementor-widget-post-info .elementor-post-info__item--type-author {
  color: #1a1a1a;
  font-weight: 700;
}
