/* qmt-post.css: moved verbatim from Bricks code element (365) in plugin v0.0.22. */
  .qmt-post {
    min-height: calc(100vh - var(--qmt-h, 76px));
    font-family: 'DM Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
  }

  /* ── HERO ── */
  .qmt-post__hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #0F0F11;
  }

  .qmt-post__hero--no-image {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .qmt-post__hero-img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    display: block;
    opacity: 0.7;
  }

  .qmt-post__hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(8,8,9,0.1) 0%, rgba(8,8,9,0.85) 100%);
  }

  /* Hero header — sits over image if present, normal flow if not */
  .qmt-post__hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
  }

  .qmt-post__hero--has-image .qmt-post__hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
  }

  .qmt-post__hero--no-image .qmt-post__hero-content {
    padding-top: 72px;
    padding-bottom: 56px;
  }

  .qmt-post__hero-inner {
    padding-bottom: 48px;
    max-width: 800px;
  }

  .qmt-post__hero--has-image .qmt-post__hero-inner {
    padding-bottom: 56px;
  }

  .qmt-post__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #9C9890;
    text-decoration: none;
    margin-bottom: 32px;
    transition: color 0.3s;
  }

  .qmt-post__back:hover {
    color: #D4B060;
  }

  .qmt-post__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
  }

  .qmt-post__date {
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #B8962E;
    opacity: 0.9;
  }

  .qmt-post__cat {
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9C9890;
    padding: 3px 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
  }

  .qmt-post__title {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(28px, 4.5vw, 52px);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #F5F2ED;
    line-height: 1.05;
    margin: 0;
  }

  /* ── BODY ── */
  .qmt-post__body-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px 120px;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 80px;
    align-items: start;
  }

  /* ── CONTENT ── */
  .qmt-post__content {
    padding-top: 56px;
    min-width: 0;
  }

  .qmt-post__content p {
    font-size: 15px;
    color: #C8C4BD;
    line-height: 1.85;
    margin-bottom: 24px;
  }

  .qmt-post__content p:last-child {
    margin-bottom: 0;
  }

  .qmt-post__content h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #F5F2ED;
    line-height: 1.15;
    margin: 48px 0 16px;
  }

  .qmt-post__content h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(17px, 1.8vw, 22px);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #E2DED7;
    line-height: 1.2;
    margin: 36px 0 12px;
  }

  .qmt-post__content h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #B8962E;
    margin: 28px 0 10px;
  }

  .qmt-post__content ul,
  .qmt-post__content ol {
    margin: 0 0 24px 0;
    padding: 0;
    list-style: none;
  }

  .qmt-post__content ul li,
  .qmt-post__content ol li {
    font-size: 15px;
    color: #C8C4BD;
    line-height: 1.8;
    padding: 4px 0 4px 20px;
    position: relative;
  }

  .qmt-post__content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 6px;
    height: 1px;
    background: #B8962E;
    opacity: 0.7;
  }

  .qmt-post__content ol {
    counter-reset: qmt-ol;
  }

  .qmt-post__content ol li::before {
    counter-increment: qmt-ol;
    content: counter(qmt-ol, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 4px;
    font-size: 10px;
    letter-spacing: 0.08em;
    color: #B8962E;
    opacity: 0.7;
  }

  .qmt-post__content a {
    color: #D4B060;
    text-decoration: none;
    border-bottom: 1px solid rgba(212, 176, 96, 0.3);
    transition: color 0.3s, border-color 0.3s;
  }

  .qmt-post__content a:hover {
    color: #F5F2ED;
    border-color: rgba(245, 242, 237, 0.3);
  }

  .qmt-post__content blockquote {
    margin: 36px 0;
    padding: 24px 28px;
    border-left: 2px solid #B8962E;
    background: rgba(184, 150, 46, 0.05);
  }

  .qmt-post__content blockquote p {
    font-size: 16px;
    color: #E2DED7;
    font-style: italic;
    margin: 0;
  }

  .qmt-post__content img {
    width: 100%;
    height: auto;
    display: block;
    margin: 36px 0;
    opacity: 0.9;
  }

  .qmt-post__content hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin: 48px 0;
  }

  .qmt-post__content code {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #D4B060;
    background: rgba(184, 150, 46, 0.08);
    padding: 2px 6px;
    border-radius: 2px;
  }

  .qmt-post__content pre {
    background: #0F0F11;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 24px;
    overflow-x: auto;
    margin: 24px 0;
  }

  .qmt-post__content pre code {
    background: none;
    padding: 0;
    color: #C8C4BD;
  }

  /* ── SIDEBAR ── */
  .qmt-post__sidebar {
    padding-top: 56px;
    position: sticky;
    top: calc(var(--qmt-h, 76px) + 32px);
  }

  .qmt-post__sidebar-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .qmt-post__sidebar-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .qmt-post__sidebar-label {
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #B8962E;
    opacity: 0.8;
    margin-bottom: 16px;
    display: block;
  }

  /* Author */
  .qmt-post__author {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .qmt-post__author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(184, 150, 46, 0.22);
  }

  .qmt-post__author-name {
    font-size: 13px;
    color: #E2DED7;
    font-weight: 400;
  }

  .qmt-post__author-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
  }

  .qmt-post__author-logo {
    height: 28px;
    width: auto;
    display: block;
    opacity: 0.8;
    transition: opacity 0.3s;
  }

  .qmt-post__author-link:hover .qmt-post__author-logo {
    opacity: 1;
  }

  /* Related posts */
  .qmt-post__related-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .qmt-post__related-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .qmt-post__related-item:last-child {
    border-bottom: none;
  }

  .qmt-post__related-link {
    display: block;
    text-decoration: none;
    padding: 12px 0;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .qmt-post__related-link:hover {
    transform: translateX(4px);
  }

  .qmt-post__related-date {
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #B8962E;
    opacity: 0.7;
    display: block;
    margin-bottom: 4px;
  }

  .qmt-post__related-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #E2DED7;
    line-height: 1.2;
    transition: color 0.3s;
  }

  .qmt-post__related-link:hover .qmt-post__related-title {
    color: #D4B060;
  }

  /* Back to news */
  .qmt-post__back-footer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #9C9890;
    text-decoration: none;
    padding: 10px 0;
    transition: color 0.3s;
    margin-top: 8px;
  }

  .qmt-post__back-footer:hover {
    color: #D4B060;
  }

  /* ── LOADING / ERROR ── */
  .qmt-post__loading {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 80px 40px;
    color: #9C9890;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    max-width: 1400px;
    margin: 0 auto;
  }

  .qmt-post__spinner {
    width: 18px;
    height: 18px;
    border: 1px solid rgba(184, 150, 46, 0.25);
    border-top-color: #B8962E;
    border-radius: 50%;
    animation: qmt-spin 0.8s linear infinite;
    flex-shrink: 0;
  }

  @keyframes qmt-spin {
    to { transform: rotate(360deg); }
  }

  .qmt-post__error {
    padding: 80px 40px;
    max-width: 1400px;
    margin: 0 auto;
  }

  .qmt-post__error-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #F5F2ED;
    margin-bottom: 12px;
  }

  .qmt-post__error-text {
    font-size: 14px;
    color: #9C9890;
    line-height: 1.75;
  }

  .qmt-post__error-text a {
    color: #D4B060;
    text-decoration: none;
  }

  /* ── RESPONSIVE ── */
  @media (max-width: 1080px) {
    .qmt-post__body-wrap {
      grid-template-columns: 1fr;
      gap: 0;
      padding: 0 28px 100px;
    }

    .qmt-post__hero-content {
      padding: 0 28px;
    }

    .qmt-post__sidebar {
      padding-top: 0;
      position: static;
      border-top: 1px solid rgba(255, 255, 255, 0.06);
      padding-top: 48px;
      margin-top: 48px;
    }
  }

  @media (max-width: 640px) {
    .qmt-post__hero-content {
      padding: 0 20px;
    }

    .qmt-post__body-wrap {
      padding: 0 20px 80px;
    }

    .qmt-post__hero--no-image .qmt-post__hero-content {
      padding-top: 48px;
      padding-bottom: 40px;
    }

    .qmt-post__loading,
    .qmt-post__error {
      padding: 60px 20px;
    }
  }
/* H1 used inside content (WordPress wp-block-heading) */
.qmt-post__content h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #F5F2ED;
  line-height: 1.15;
  margin: 56px 0 20px;
}

/* Bold text */
.qmt-post__content strong {
  color: #E2DED7;
  font-weight: 600;
}

/* Tables (WordPress wp-block-table) */
.qmt-post__content figure.wp-block-table {
  margin: 28px 0;
  overflow-x: auto;
}

.qmt-post__content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  color: #C8C4BD;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.qmt-post__content thead {
  background: rgba(184, 150, 46, 0.08);
}

.qmt-post__content th,
.qmt-post__content td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #C8C4BD;
  line-height: 1.65;
}

.qmt-post__content th {
  color: #F5F2ED;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.qmt-post__content td strong {
  color: #E2DED7;
}

/* Single-cell "callout" tables (your 🏆 firm cards & bottom-line boxes) */
.qmt-post__content figure.wp-block-table table tbody tr:only-child td:only-child {
  background: rgba(184, 150, 46, 0.04);
  border-left: 2px solid rgba(184, 150, 46, 0.6);
  padding: 16px 20px;
}

/* Mobile: let wide tables scroll instead of squashing */
@media (max-width: 720px) {
  .qmt-post__content table {
    min-width: 560px;
  }
}

/* Server-rendered hero image carries width/height attributes; keep the old intrinsic sizing. */
.qmt-post__hero-img { height: auto; }

.qmt-post__author-byline { font-size:13px;line-height:1.6;margin-top:12px; }
