/* ================================================
   Single Post Styles
   ================================================ */

/* Single Post Main */
.tmd-single-main {
  min-height: 100vh;
}

.tmd-single-section {
  background: var(--tmd-primary);
  max-width: 60rem;
  margin: 0 auto;
  padding: 10rem 1.2rem 4rem 1.2rem;
}

.tmd-single-inner {
  border-radius: 2rem;
  margin-top: 1rem;
}

/* Back to Blog Button */
.tmd-back-to-blog {
  display: block;
  margin: 0 auto 2.2rem auto;
  font-size: var(--font-base);
  font-weight: 600;
  padding: 0.65rem 1.7rem;
  border-radius: 8px;
  transition: background 0.3s, color 0.3s, border 0.3s, transform 0.3s;
  text-decoration: none;
  line-height: 1.1;
  background: var(--tmd-white);
  color: var(--tmd-accent);
  border: 1.5px solid var(--tmd-accent);
  text-align: center;
  width: fit-content;
}

.tmd-back-to-blog:hover,
.tmd-back-to-blog:focus {
  background: var(--tmd-accent);
  color: var(--tmd-white);
  border-color: var(--tmd-accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px) scale(1.04);
  outline: none;
}

/* Featured Image - Full Width Within Container */
.tmd-single-featured-img {
  max-height: 26.25rem;
  overflow: hidden;
  border-radius: 12px;
  margin: 0 auto 0.8rem auto;
  background: #f8f9fa;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tmd-single-featured-img .tmd-single-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.tmd-single-img {
  max-width: 100%;
  border-radius: 1.5rem;
  box-shadow: 0 2px 16px 0 rgba(0, 0, 0, 0.06);
}

/* Post Meta */
.tmd-single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: var(--font-base);
  color: var(--tmd-muted);
  margin-top: 0.5rem;
  margin-bottom: 2rem;
  align-items: center;
}

.tmd-single-meta a {
  color: var(--tmd-text);
  text-decoration: none;
  font-weight: 500;
}

.tmd-single-meta a:hover {
  color: var(--tmd-accent);
  text-decoration: underline;
}

/* Post Title */
.tmd-single-title {
  font-family: Poppins, Arial, Helvetica, sans-serif;
  font-size: 34px;
  font-weight: 800;
  color: var(--tmd-heading);
  margin-bottom: 1.5rem;
  line-height: 38px;
  /* letter-spacing: -1px; */
}

/* Post Content */
.tmd-single-content {
  color: var(--tmd-text);
  font-size: var(--font-lg);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* Single Post Headings H2-H6 - Consistent Hierarchy */
.tmd-single-content h2 {
  font-size: 2.2rem;
  line-height: 1.2;
  margin: 2.5rem 0 1.25rem 0;
  color: var(--tmd-heading);
}


.tmd-single-content h3 {
  font-size: 1.75rem;
  line-height: 1.3;
  margin: 2rem 0 1rem 0;
  color: var(--tmd-heading);
}

.tmd-single-content h4 {
  font-size: 1.5rem;
  line-height: 1.3;
  margin: 1.75rem 0 0.875rem 0;
  color: var(--tmd-heading);
}

.tmd-single-content h5 {
  font-size: 1.2rem;
  line-height: 1.4;
  margin: 1.5rem 0 0.75rem 0;
  color: var(--tmd-heading);
}

.tmd-single-content h6 {
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.4;
  margin: 1.25rem 0 0.625rem 0;
  color: var(--tmd-heading);
}

.tmd-single-content img {
  max-width: 100%;
  border-radius: 1rem;
  margin: 1.5rem 0;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.04);
}

/* Author Box */
.tmd-single-author-box {
  display: flex;
  align-items: flex-start;
  background: #f8f9fa;
  border-radius: 16px;
  border: 1px solid #e1e5e9;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: none;
}

.tmd-author-details {
  flex: 1;
}

.tmd-author-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0;
  color: #444 !important;
  font-style: italic;
}

.tmd-author-name a {
  color: #444 !important;
  text-decoration: none;
}

.tmd-author-name a:hover {
  color: #444 !important;
  text-decoration: underline;
}

.tmd-single-author-box .tmd-author-bio {
  color: #555;
  margin-top: 0.5rem;
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
  line-height: 1.5;
  font-style: italic;
}

.tmd-author-social {
  display: flex;
  gap: 1rem;
}

.tmd-author-social a {
  color: #222;
  font-size: 1.2rem;
}

/* Single Post Author Box Avatar */
.tmd-single-author-box .tmd-author-avatar {
  margin-right: 0.75rem;
}

.tmd-single-author-box .tmd-author-avatar img,
.tmd-single-author-box .tmd-author-avatar .avatar {
  width: 5rem;
  height: 5rem;
  border-radius: 50% !important;
}

/* Post Navigation */
.tmd-post-navigation {
  border-top: 1px solid #e5e5e5;
  padding: 2rem;
  margin: 2rem 0;
}

.tmd-post-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.tmd-post-navigation .nav-previous,
.tmd-post-navigation .nav-next {
  flex: 1;
  max-width: 45%;
}

.tmd-post-navigation .nav-previous {
  text-align: left;
}

.tmd-post-navigation .nav-next {
  text-align: right;
}

.tmd-nav-label {
  display: block;
  font-size: 0.85rem;
  color: #6e6e73;
  margin-bottom: 0.5rem;
}

.tmd-nav-title {
  font-weight: 500;
}

/* Social Sharing */
.tmd-social-share {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.tmd-share-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.2;
  padding-top: 0.2rem;
}

.tmd-social-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  color: #222;
  transition: color 0.18s;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
}

.tmd-social-share a:last-child {
  margin-right: 0;
}

.tmd-social-share a:hover,
.tmd-social-share a:focus {
  color: var(--tmd-accent, #0071e3);
  background: none;
}

.tmd-social-share svg {
  width: 20px;
  height: 20px;
  display: block;
  stroke-width: 1.6;
}

.tmd-share-divider {
  width: 1px;
  height: 24px;
  background: #e0e0e0;
  margin: 0 0.5rem;
  display: block;
}

/* Comments Section */
.tmd-comments-section {
  background: #f8f9fa;
  border-radius: 16px;
  border: 1px solid #e1e5e9;
  padding: 2rem;
  margin: 3rem 0 2rem 0;
}

.tmd-comments-section h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  text-align: left;
  padding-left: 0;
}

.tmd-comment {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.tmd-comment-avatar img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 1rem;
}

.tmd-comment-content {
  flex: 1;
}

.tmd-comment-author {
  font-weight: 600;
}

.tmd-comment-reply {
  float: right;
  color: #0071e3;
  font-size: 0.95rem;
  text-decoration: none;
}

/* Comment Form */
.tmd-comment-form {
  border-radius: 18px;
  padding: 1.5rem;
  max-width: 520px;
  margin: 1.5rem auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tmd-comment-form-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0;
}

.tmd-comment-form-row input,
.tmd-comment-form-row textarea {
  background: #f7f9fa;
  border: none;
  border-bottom: 2px solid #e0e7ef;
  border-radius: 0;
  padding: 0.2rem 0.8rem 0.6rem 0.8rem;
  font-size: 1rem;
  color: #222;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.tmd-comment-form-row input:focus,
.tmd-comment-form-row textarea:focus {
  border-bottom: 2px solid var(--tmd-accent, #0071e3);
  background: #fff;
  box-shadow: 0 2px 8px 0 rgba(0, 113, 227, 0.06);
}

.tmd-comment-form textarea {
  min-height: 90px;
  resize: vertical;
}

.tmd-comment-form-btn {
  background: var(--tmd-accent, #0071e3);
  color: #fff;
  border: none;
  border-radius: 2rem;
  padding: 0.9rem 0;
  font-size: 1rem;
  font-weight: 700;
  margin-top: 0.3rem;
  transition: background 0.18s, box-shadow 0.18s;
  box-shadow: 0 2px 12px 0 rgba(0, 113, 227, 0.08);
  width: 100%;
}

.tmd-comment-form-btn:hover,
.tmd-comment-form-btn:focus {
  background: #005bb5;
  box-shadow: 0 4px 24px 0 rgba(0, 113, 227, 0.13);
  outline: none;
}

/* Subscribe Section */
.tmd-subscribe-section {
  background: #f8f9fa;
  border-radius: 16px;
  border: 1px solid #e1e5e9;
  padding: 2rem 2rem 2.5rem 2rem;
  margin-bottom: 2rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.tmd-subscribe-section h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.tmd-subscribe-form {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.tmd-subscribe-form input[type='email'] {
  padding: 0.6rem 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.tmd-subscribe-form button {
  background: #ff6f3c;
  color: #fff;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.2s;
}

.tmd-subscribe-form button:hover {
  background: #ff8c5a;
}

.tmd-subscribe-form button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Subscribe Form Messages */
.tmd-subscribe-message {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-weight: 500;
  text-align: center;
}

.tmd-subscribe-message--success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.tmd-subscribe-message--error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Comment List Children */
.comment-list .children {
  margin-left: 3.5rem;
  margin-top: 1.2rem;
  padding-left: 0;
  border-left: 2px solid #e0f2f1;
  position: relative;
}

.comment-list .children .tmd-comment {
  background: #fafdff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
  margin-top: 1.2rem;
  margin-bottom: 0;
}

.comment-list .children .tmd-comment:before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 2.2rem;
  width: 2rem;
  height: 2px;
  background: #e0f2f1;
  border-radius: 2px;
  display: block;
}

/* Footer Wrapper */
.tmd-single-footer-wrapper {
  background: #f8f9fa;
  border-radius: 16px;
  border: 1px solid #e1e5e9;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: none;
}

/* ================================================
   Responsive Design - Tablet & Mobile
   ================================================ */

/* =========================
   Tablet Breakpoint (700px - 999.98px)
   ========================= */
@media (min-width: 700px) and (max-width: 999.98px) {

  /* Main section adjustments */
  .tmd-single-section {
    max-width: 100%;
    padding: 8rem 1.5rem 3rem 1.5rem;
  }

  .tmd-single-inner {
    margin-top: 0.5rem;
  }

  /* Back to blog button */
  .tmd-back-to-blog {
    margin: 0 auto 1.8rem auto;
    font-size: var(--font-sm);
    padding: 0.6rem 1.5rem;
    text-align: center;
    width: fit-content;
  }

  /* Featured image adjustments */
  .tmd-single-featured-img {
    max-height: 22rem;
    margin-bottom: 0.6rem;
    width: 100%;
  }

  /* Post title adjustments */
  .tmd-single-title {
    font-family: Poppins, Arial, Helvetica, sans-serif;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 1.2rem;
    line-height: 38px;
    letter-spacing: -0.5px;
  }

  /* Post meta adjustments */
  .tmd-single-meta {
    gap: 1rem;
    font-size: var(--font-sm);
    margin-top: 0.4rem;
    margin-bottom: 1.5rem;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }

  /* Content area */
  .tmd-single-content {
    font-size: var(--font-base);
    line-height: 1.7;
  }

  .tmd-single-content h2 {
    font-size: 1.75rem;
    margin: 2rem 0 1rem 0;
  }

  .tmd-single-content h3 {
    font-size: 1.5rem;
    margin: 1.75rem 0 0.875rem 0;
  }

  .tmd-single-content h4 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem 0;
  }

  .tmd-single-content h5 {
    font-size: 1.125rem;
    margin: 1.25rem 0 0.625rem 0;
  }

  .tmd-single-content h6 {
    font-size: 1rem;
    margin: 1rem 0 0.5rem 0;
  }

  .tmd-single-content p {
    margin-bottom: 1.25rem;
  }

  .tmd-single-content ul,
  .tmd-single-content ol {
    margin: 1.25rem 0;
    padding-left: 1.5rem;
  }

  .tmd-single-content li {
    margin-bottom: 0.5rem;
  }

  .tmd-single-content blockquote {
    margin: 1.5rem 0;
    padding: 1.25rem 1.5rem;
    font-size: 1.1rem;
  }

  /* Social sharing adjustments */
  .tmd-social-share {
    margin: 2.5rem 0;
  }

  .tmd-share-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .tmd-social-share a {
    padding: 0.75rem 1.25rem;
    font-size: var(--font-sm);
    margin: 0.25rem;
  }

  /* Author box adjustments */
  .tmd-single-author-box {
    margin: 2.5rem 0;
    padding: 1.5rem;
  }

  .tmd-author-avatar {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
  }

  .tmd-author-name {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }

  .tmd-author-bio {
    font-size: var(--font-base);
    line-height: 1.6;
    margin-bottom: 1rem;
  }

  .tmd-author-social a {
    width: 36px;
    height: 36px;
    margin-right: 0.75rem;
  }

  .tmd-author-social svg {
    width: 18px;
    height: 18px;
  }

  /* Post navigation */
  .tmd-post-navigation {
    margin: 2.5rem 0;
  }

  .tmd-post-navigation .nav-links {
    gap: 1.5rem;
  }

  .tmd-nav-label {
    font-size: var(--font-xs);
  }

  .tmd-nav-title {
    font-size: var(--font-base);
  }

  /* Footer sections */
  .tmd-single-footer-wrapper {
    margin: 2.5rem 0;
  }

  .tmd-back-to-blog-bottom {
    margin: 2rem 0;
  }

  .tmd-back-to-blog-bottom .tmd-back-to-blog {
    font-size: var(--font-sm);
    padding: 0.6rem 1.5rem;
  }

  /* Subscribe section */
  .tmd-subscribe-section {
    margin: 2.5rem 0;
    padding: 2rem 1.5rem;
  }

  .tmd-subscribe-section h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }

  .tmd-subscribe-section p {
    font-size: var(--font-base);
    margin-bottom: 1.5rem;
  }

  .tmd-subscribe-form {
    flex-direction: column;
    gap: 1rem;
  }

  .tmd-subscribe-form input[type="email"] {
    width: 100%;
    padding: 0.875rem 1.25rem;
    font-size: var(--font-base);
  }

  .tmd-subscribe-form button {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: var(--font-base);
  }
}

/* =========================
   Mobile Breakpoint (≤699.98px)
   ========================= */
@media (max-width: 699.98px) {

  /* Main section adjustments */
  .tmd-single-section {
    max-width: 100%;
    padding: 6rem 1rem 2rem 1rem;
  }

  .tmd-single-inner {
    margin-top: 0;
  }

  /* Table mobile adjustments - Use WordPress default width for horizontal scrolling */
  .wp-block-table.tmd-table {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    overflow-x: auto;
  }

  .wp-block-table.tmd-table figure {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
  }

  .wp-block-table.tmd-table table {
    width: auto !important;
    max-width: none !important;
    min-width: 100%;
  }

  .wp-block-table.tmd-table table.has-fixed-layout {
    width: auto !important;
    max-width: none !important;
    table-layout: auto !important;
  }

  /* Back to blog button */
  .tmd-back-to-blog {
    margin-bottom: 1.5rem;
    font-size: var(--font-sm);
    padding: 1rem 1rem;
    text-align: center;
    display: block;
    width: fit-content;
  }

  /* Featured image adjustments */
  .tmd-single-featured-img {
    max-height: 18rem;
    margin-bottom: 0.5rem;
    width: 100%;
    border-radius: 8px;
  }

  .tmd-single-img {
    border-radius: 8px;
  }

  /* Post title adjustments */
  .tmd-single-title {
    font-family: Poppins, Arial, Helvetica, sans-serif;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 34px;
    letter-spacing: -0.25px;
  }

  /* Post meta adjustments */
  .tmd-single-meta {
    gap: 0.75rem;
    font-size: var(--font-xs);
    margin-top: 0.3rem;
    margin-bottom: 1.25rem;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }

  /* Content area */
  .tmd-single-content {
    font-size: var(--font-base);
    line-height: 1.6;
  }

  .tmd-single-content h2 {
    font-size: 1.5rem;
    margin: 1.75rem 0 0.875rem 0;
  }

  .tmd-single-content h3 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem 0;
  }

  .tmd-single-content h4 {
    font-size: 1.125rem;
    margin: 1.25rem 0 0.625rem 0;
  }

  .tmd-single-content h5 {
    font-size: 1rem;
    margin: 1rem 0 0.5rem 0;
  }

  .tmd-single-content h6 {
    font-size: 0.875rem;
    margin: 0.875rem 0 0.4375rem 0;
  }

  .tmd-single-content p {
    margin-bottom: 1rem;
  }

  .tmd-single-content ul,
  .tmd-single-content ol {
    margin: 1rem 0;
    padding-left: 1.25rem;
  }

  .tmd-single-content li {
    margin-bottom: 0.375rem;
  }

  .tmd-single-content blockquote {
    margin: 1.25rem 0;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    border-left-width: 3px;
  }

  /* Social sharing adjustments */
  .tmd-social-share {
    margin: 2rem 0;
    flex-wrap: wrap;
  }

  .tmd-social-share a {
    font-size: var(--font-xs);
  }

  /* Author box adjustments */
  .tmd-single-author-box {
    margin: 1.5rem 0;
    padding: 1rem;
    border-radius: 10px;
  }

  .tmd-author-avatar {
    width: 56px;
    height: 56px;
    margin-bottom: 0.75rem;
  }

  .tmd-author-name {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
  }

  .tmd-author-bio {
    font-size: var(--font-sm);
    line-height: 1.4;
    margin-bottom: 0.75rem;
  }

  .tmd-author-social a {
    width: 28px;
    height: 28px;
    margin-right: 0.375rem;
  }

  .tmd-author-social svg {
    width: 14px;
    height: 14px;
  }

  /* Post navigation */
  .tmd-post-navigation {
    margin: 2rem 0;
  }

  .tmd-post-navigation .nav-links {
    gap: 1rem;
    flex-direction: column;
  }

  .tmd-nav-label {
    font-size: var(--font-xs);
  }

  .tmd-nav-title {
    font-size: var(--font-sm);
  }

  /* Footer sections */
  .tmd-single-footer-wrapper {
    margin: 2rem 0;
  }

  .tmd-back-to-blog-bottom {
    margin: 1.5rem 0;
  }

  .tmd-back-to-blog-bottom .tmd-back-to-blog {
    font-size: var(--font-sm);
    padding: 0.5rem 1.25rem;
    text-align: center;
    display: block;
    width: 100%;
  }

  /* Subscribe section */
  .tmd-subscribe-section {
    margin: 2rem 0;
    padding: 1.5rem 1rem;
    border-radius: 12px;
  }

  .tmd-subscribe-section h2 {
    font-size: 1.3rem;
    margin-bottom: 0.875rem;
  }

  .tmd-subscribe-section p {
    font-size: var(--font-sm);
    margin-bottom: 1.25rem;
  }

  .tmd-subscribe-form {
    flex-direction: column;
    gap: 0.875rem;
  }

  .tmd-subscribe-form input[type="email"] {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: var(--font-sm);
    border-radius: 6px;
  }

  .tmd-subscribe-form button {
    width: 100%;
    padding: 0.75rem 1.25rem;
    font-size: var(--font-sm);
    border-radius: 6px;
  }

  /* Comments section adjustments */
  .tmd-single-footer-wrapper .comments-area {
    margin-top: 1.5rem;
  }

  .tmd-single-footer-wrapper .comment-list {
    margin: 1rem 0;
  }

  .tmd-single-footer-wrapper .comment {
    margin-bottom: 1rem;
    padding: 0.875rem;
  }

  .tmd-single-footer-wrapper .comment-form {
    margin-top: 1.5rem;
  }

  .tmd-single-footer-wrapper .comment-form input,
  .tmd-single-footer-wrapper .comment-form textarea {
    padding: 1rem 0.75rem 0.75rem 0.75rem;
    font-size: var(--font-sm);
  }
}

/*Reusable table style*/
/* Reset WP styles only when tmd-table is applied */
.wp-block-table.tmd-table table,
.wp-block-table.tmd-table table * {
  all: unset;
  display: revert;
  box-sizing: border-box;
}

/* Override WordPress default table width constraints */
.wp-block-table.tmd-table {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

.wp-block-table.tmd-table figure {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

.wp-block-table.tmd-table table.has-fixed-layout {
  width: 100% !important;
  max-width: none !important;
  table-layout: auto !important;
}

/* Base table styling */
.wp-block-table.tmd-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  color: #222;
  background: linear-gradient(135deg, #ffffff, #f9f9fb);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  margin: 20px 0 40px 0;
  max-width: 100%;
}

/* Header cells */
.wp-block-table.tmd-table thead th {
  background: #6c757d;
  font-weight: 600;
  text-align: left;
  padding: 14px 18px;
  border-bottom: 2px solid #5a6268;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Body cells */
.wp-block-table.tmd-table tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid #eceff3;
  vertical-align: middle;
  transition: color 0.3s ease, background 0.3s ease;
}

/* Last row cleanup */
.wp-block-table.tmd-table tbody tr:last-child td {
  border-bottom: none;
}

/* Hover effects - Matching header color */
.wp-block-table.tmd-table tbody tr {
  transition: background 0.3s ease;
}

.wp-block-table.tmd-table tbody tr:hover {
  background: rgba(108, 117, 125, 0.05);
}

.wp-block-table.tmd-table tbody tr:hover td {
  color: #6c757d;
}

/* Table Caption Styling - Minimal */
.wp-block-table.tmd-table table caption {
  /* text-align: center; */
  font-size: 0.9rem;
  font-weight: 500;
  color: #555;
  /* margin-bottom: 0.25rem; */
  padding: 0.5rem 0;
}

/* Emphasis Text - Subtle Orange Background */
.emphasis-text {
  background: rgba(255, 165, 0, 0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}

/* Table of Contents - Minimal Styling */
.table-of-contents {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.table-of-contents h3 {
  margin: 0 0 1rem 0;
  color: #2c3e50;
  font-size: 1.1rem;
  font-weight: 600;
}

.table-of-contents ol {
  margin: 0;
  padding-left: 1.2rem;
}

.table-of-contents ol ol {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.table-of-contents li {
  margin: 0.4rem 0;
  line-height: 1.4;
}

.table-of-contents a {
  color: #007bff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.table-of-contents a:hover {
  color: #0056b3;
  text-decoration: underline;
}