/* Home Assistant Snapshot Layout */

.post-content .ha-log {
  margin-top: 1rem;
  padding: 1.2rem;
  border: 1px solid var(--border);
  border-radius: 8px;
}

/* Section spacing */
.post-content .ha-log h2,
.post-content .ha-log h3 {
  margin-top: 1.4rem;
  margin-bottom: 0.6rem;
}

/* Tables */
.post-content .ha-log table {
  width: 100%;
  font-size: 0.85rem;
  line-height: 1.35;
  margin: 0.6rem 0 1.2rem;
  border-collapse: collapse;
}

/* Table cells */
.post-content .ha-log th,
.post-content .ha-log td {
  padding: 0.35rem 0.6rem;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

/* Header styling */
.post-content .ha-log th {
  text-align: left;
  font-weight: 600;
  background: rgba(127, 127, 127, 0.08);
}

/* Zebra striping */
.post-content .ha-log tbody tr:nth-child(even) td {
  background: rgba(127, 127, 127, 0.05);
}

/* Subtle hover */
.post-content .ha-log tbody tr:hover td {
  background: rgba(255, 136, 0, 0.05);
}

/* First column emphasis (Key column look) */
.post-content .ha-log td:first-child {
  white-space: nowrap;
  font-weight: 600;
  opacity: 0.9;
}

/* Mobile responsiveness */
@media (max-width: 700px) {
  .post-content .ha-log {
    padding: 0.9rem;
  }

  .post-content .ha-log table {
    font-size: 0.8rem;
  }

  .post-content .ha-log th,
  .post-content .ha-log td {
    padding: 0.3rem 0.45rem;
  }
}
