/* =====================================================================
   Tretinoin Australia — blog listing + single article
   Uses the --ta-* tokens from theme.css. Prefix: tb- (theme blog)
   ===================================================================== */

.tb-nav-spacer { height: 90px; }

/* ------------------------------ shared ------------------------------ */

.tb-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ta-rust);
    margin-bottom: 6px;
}

.tb-chip {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--ta-blush);
    color: var(--ta-rust-dark);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    text-transform: capitalize;
    transition: background 0.2s, color 0.2s;
}
.tb-chip:hover { background: var(--ta-rust); color: #fff; }

.tb-chip-light { background: rgba(255, 255, 255, 0.7); margin-bottom: 14px; }

.tb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border: 1px solid var(--ta-rust);
    border-radius: 999px;
    background: var(--ta-rust);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
.tb-btn:hover { background: var(--ta-rust-dark); border-color: var(--ta-rust-dark); color: #fff; }
.tb-btn i { transition: transform 0.2s; }
.tb-btn:hover i { transform: translateX(3px); }

.tb-btn-ghost { background: transparent; color: var(--ta-rust); }
.tb-btn-ghost:hover { background: var(--ta-rust); color: #fff; }

.tb-link { font-weight: 500; color: var(--ta-rust); text-decoration: none; }
.tb-link:hover { color: var(--ta-rust-dark); text-decoration: underline; }

.tb-muted { color: var(--ta-muted); }

/* ------------------------------ hero ------------------------------ */

.tb-hero {
    background:
        radial-gradient(circle at 85% 20%, rgba(246, 220, 200, 0.9), transparent 45%),
        linear-gradient(180deg, var(--ta-cream) 0%, var(--ta-blush) 100%);
    border-bottom: 1px solid var(--ta-line);
    padding: 36px 0 40px;
}

.tb-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    font-size: 13px;
    color: var(--ta-muted);
}
.tb-breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #c9ad9c; }
.tb-breadcrumb a { color: var(--ta-muted); text-decoration: none; }
.tb-breadcrumb a:hover { color: var(--ta-rust); }
.tb-breadcrumb [aria-current] span {
    color: var(--ta-ink);
    display: inline-block;
    max-width: 46ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}

.tb-hero-title {
    font-family: var(--ta-display);
    font-size: clamp(28px, 4.2vw, 46px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--ta-ink);
    max-width: 22ch;
    margin: 0 0 14px;
}
.tb-hero-article .tb-hero-title { max-width: 30ch; }

.tb-hero-intro {
    max-width: 60ch;
    font-size: 17px;
    line-height: 1.6;
    color: var(--ta-muted);
    margin: 0;
}

.tb-hero-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 28px;
}

.tb-filter { display: flex; flex-wrap: wrap; gap: 8px; }

.tb-pill {
    padding: 8px 16px;
    border: 1px solid var(--ta-line);
    border-radius: 999px;
    background: #fff;
    color: var(--ta-ink);
    font-size: 14px;
    text-decoration: none;
    text-transform: capitalize;
    transition: all 0.2s;
}
.tb-pill:hover { border-color: var(--ta-rust); color: var(--ta-rust); }
.tb-pill.is-active { background: var(--ta-rust); border-color: var(--ta-rust); color: #fff; }

.tb-search {
    display: flex;
    flex: 0 1 320px;
    background: #fff;
    border: 1px solid var(--ta-line);
    border-radius: 999px;
    overflow: hidden;
}
.tb-search:focus-within { border-color: var(--ta-rust); box-shadow: 0 0 0 3px rgba(163, 67, 42, 0.12); }
.tb-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    padding: 10px 18px;
    font-size: 14px;
    background: transparent;
    outline: none;
}
.tb-search button {
    border: 0;
    background: transparent;
    color: var(--ta-rust);
    padding: 0 18px;
}

/* ------------------------------ listing ------------------------------ */

.tb-listing { padding: 48px 0 64px; }

.tb-featured {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 0;
    background: #fff;
    border: 1px solid #f0dfd3;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(126, 48, 28, 0.08);
    margin-bottom: 40px;
}

.tb-featured-img {
    display: block;
    position: relative;
    min-height: 320px;
    background: var(--ta-blush);
    overflow: hidden;
}
.tb-featured-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.tb-featured:hover .tb-featured-img img { transform: scale(1.03); }

.tb-featured-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 32px 36px;
}
.tb-featured-body .tb-eyebrow { margin: 0; }

.tb-featured-title {
    font-family: var(--ta-display);
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
}
.tb-featured-title a { color: var(--ta-ink); text-decoration: none; }
.tb-featured-title a:hover { color: var(--ta-rust); }

.tb-featured-excerpt { color: var(--ta-muted); line-height: 1.65; margin: 0; }
.tb-featured-body .tb-btn { margin-top: 8px; }

.tb-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.tb-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #f0dfd3;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(126, 48, 28, 0.06);
    transition: transform 0.25s, box-shadow 0.25s;
}
.tb-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(126, 48, 28, 0.13); }

.tb-card-img { display: block; aspect-ratio: 2 / 1; overflow: hidden; background: var(--ta-blush); }
.tb-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.tb-card:hover .tb-card-img img { transform: scale(1.05); }

.tb-card-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    flex: 1;
    padding: 20px 22px 22px;
}

.tb-card-title {
    font-family: var(--ta-display);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
}
.tb-card-title a { color: var(--ta-ink); text-decoration: none; }
.tb-card-title a:hover { color: var(--ta-rust); }

.tb-card-excerpt {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--ta-muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tb-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    padding-top: 6px;
    font-size: 13px;
    color: #9a8379;
}

.tb-empty {
    text-align: center;
    padding: 60px 20px;
    border: 1px dashed var(--ta-line);
    border-radius: 16px;
    background: var(--ta-cream);
}
.tb-empty h2 { font-size: 22px; }

.tb-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 44px;
}
.tb-pagination a,
.tb-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--ta-line);
    border-radius: 999px;
    color: var(--ta-ink);
    text-decoration: none;
    font-weight: 500;
}
.tb-pagination a:hover { border-color: var(--ta-rust); color: var(--ta-rust); }
.tb-pagination .is-active { background: var(--ta-rust); border-color: var(--ta-rust); color: #fff; }

.tb-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 64px;
    padding: 36px 40px;
    border-radius: 20px;
    background: linear-gradient(120deg, var(--ta-rust-deep), var(--ta-rust-dark));
    color: #fff;
}
.tb-cta .tb-eyebrow { color: var(--ta-peach); }
.tb-cta h2 { font-size: clamp(20px, 2.4vw, 28px); font-weight: 700; color: #fff; margin: 0 0 6px; max-width: 28ch; }
.tb-cta p { margin: 0; color: rgba(255, 255, 255, 0.8); }
.tb-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.tb-cta .tb-btn { background: #fff; border-color: #fff; color: var(--ta-rust-dark); }
.tb-cta .tb-btn:hover { background: var(--ta-peach); border-color: var(--ta-peach); }
.tb-cta .tb-btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.tb-cta .tb-btn-ghost:hover { background: #fff; color: var(--ta-rust-dark); }

/* ------------------------------ single article ------------------------------ */

.tb-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 1100;
    pointer-events: none;
}
.tb-progress span {
    display: block;
    height: 100%;
    background: var(--ta-rust);
    transform: scaleX(0);
    transform-origin: 0 50%;
}

.tb-byline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 28px;
    margin-top: 22px;
}

.tb-byline-author {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--ta-ink);
}
.tb-byline-author img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(58, 26, 16, 0.15);
}
.tb-byline-author span { display: flex; flex-direction: column; line-height: 1.25; }
.tb-byline-author small { font-size: 12px; color: var(--ta-muted); }
.tb-byline-author strong { font-size: 15px; }
.tb-byline-author:hover strong { color: var(--ta-rust); }

.tb-byline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
    color: var(--ta-muted);
}
.tb-byline-meta i { color: var(--ta-rust); margin-right: 4px; }

.tb-article-wrap { padding-top: 36px; padding-bottom: 24px; }

.tb-article-image {
    margin: 0 0 28px;
    border-radius: 18px;
    overflow: hidden;
    background: var(--ta-blush);
    box-shadow: 0 10px 30px rgba(126, 48, 28, 0.08);
}
.tb-article-image img { display: block; width: 100%; height: auto; }

.tb-toc {
    margin: 0 0 32px;
    padding: 18px 22px;
    border: 1px solid var(--ta-line);
    border-left: 4px solid var(--ta-rust);
    border-radius: 12px;
    background: var(--ta-cream);
}
.tb-toc summary {
    cursor: pointer;
    font-family: var(--ta-display);
    font-weight: 700;
    color: var(--ta-ink);
    list-style: none;
}
.tb-toc summary::-webkit-details-marker { display: none; }
.tb-toc summary::after { content: "–"; float: right; color: var(--ta-rust); }
.tb-toc:not([open]) summary::after { content: "+"; }
.tb-toc summary i { color: var(--ta-rust); margin-right: 6px; }
.tb-toc ol { margin: 14px 0 0; padding-left: 20px; }
.tb-toc li { margin: 6px 0; font-size: 15px; }
.tb-toc a { color: var(--ta-ink); text-decoration: none; }
.tb-toc a:hover { color: var(--ta-rust); text-decoration: underline; }

@media (min-width: 992px) {
    /* the sidebar carries the sticky table of contents on desktop */
    .tb-toc { display: none; }
}

/* ---------- article body (CKEditor output) ---------- */
/* CKEditor saves inline fonts/sizes on pasted content, so force the theme typography */

.content-blog-section,
.content-blog-section p,
.content-blog-section li,
.content-blog-section span,
.content-blog-section td,
.content-blog-section th,
.content-blog-section a,
.content-blog-section strong,
.content-blog-section em,
.content-blog-section blockquote {
    font-family: var(--ta-sans) !important;
}

.tb-prose span[style*="font-size"] { font-size: inherit !important; }
.tb-prose span[style*="color:#000000"],
.tb-prose span[style*="color: #000000"] { color: inherit !important; }

.tb-prose {
    font-size: 17px;
    line-height: 1.8;
    color: #3B2C25;
    overflow-wrap: break-word;
}

.tb-prose p,
.tb-prose li { font-size: 17px; line-height: 1.8; color: #3B2C25; }
.tb-prose p { margin: 0 0 1.15em; }

.content-blog-section h1,
.content-blog-section h2,
.content-blog-section h3,
.content-blog-section h4,
.content-blog-section h5,
.content-blog-section h6,
.content-blog-section h2 span,
.content-blog-section h3 span,
.content-blog-section h4 span {
    font-family: var(--ta-display) !important;
    color: var(--ta-ink) !important;
}

.tb-prose h2 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin: 2em 0 0.7em;
    padding-top: 0.2em;
    scroll-margin-top: 110px;
}
.tb-prose > h2:first-child { margin-top: 0; }
.tb-prose h3 { font-size: 22px; font-weight: 700; line-height: 1.35; margin: 1.6em 0 0.6em; scroll-margin-top: 110px; }
.tb-prose h4 { font-size: 19px; font-weight: 600; margin: 1.4em 0 0.5em; }

.tb-prose ul,
.tb-prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.tb-prose li { margin-bottom: 0.45em; }
.tb-prose li::marker { color: var(--ta-rust); }

.tb-prose a {
    color: var(--ta-rust);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.tb-prose a:hover { color: var(--ta-rust-dark); }

.tb-prose blockquote {
    margin: 1.6em 0;
    padding: 18px 24px;
    border-left: 4px solid var(--ta-rust);
    border-radius: 0 12px 12px 0;
    background: var(--ta-cream);
    font-style: italic;
}
.tb-prose blockquote p:last-child { margin-bottom: 0; }

.tb-prose img { max-width: 100%; height: auto; border-radius: 12px; }
.tb-prose hr { border: 0; border-top: 1px solid var(--ta-line); margin: 2.4em 0; opacity: 1; }

/* ---------- content tables ---------- */
/* tables are wrapped in .blog-table-wrap by the inline script so they scroll on mobile */
.blog-table-wrap,
.retinoid-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 24px 0;
    border: 1px solid var(--ta-line);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(58, 26, 16, 0.06);
}

.blog_content_td table {
    width: 100% !important;
    min-width: 560px;
    margin: 0;
    border: 0;
    border-collapse: collapse;
    border-spacing: 0;
    background: #fff;
    font-size: 15px;
    line-height: 1.55;
}

.blog_content_td table caption {
    caption-side: top;
    padding: 0 0 10px;
    font-weight: 600;
    color: var(--ta-ink);
}

.blog_content_td table th,
.blog_content_td table thead td {
    background: var(--ta-rust);
    color: #fff;
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
}

/* CKEditor tables often have no <thead>: style the first row as the header */
.blog_content_td table:not(:has(thead)) tr:first-child td {
    background: var(--ta-rust);
    color: #fff;
    font-weight: 600;
    border-color: rgba(255, 255, 255, 0.18);
}
.blog_content_td table:not(:has(thead)) tr:first-child td * { color: #fff !important; }

.blog_content_td table td {
    padding: 12px 16px;
    vertical-align: top;
    color: var(--ta-ink);
    border: 0;
    border-top: 1px solid var(--ta-line);
    border-right: 1px solid var(--ta-line);
}
.blog_content_td table th:last-child,
.blog_content_td table td:last-child { border-right: 0; }
.blog_content_td table tbody tr:nth-child(even) td { background: var(--ta-cream); }
.blog_content_td table tbody tr:hover td { background: var(--ta-blush); }
.blog_content_td table td p { margin: 0; font-size: inherit; }

.retinoid-scroll td.tretinoin { background-color: var(--ta-blush) !important; font-weight: 600; }

.retinoid-title {
    color: var(--ta-rust);
    font-size: 18px;
    font-weight: 700;
    margin: 24px 0 10px;
    font-family: var(--ta-display) !important;
}

.blog-table-wrap::-webkit-scrollbar,
.retinoid-scroll::-webkit-scrollbar { height: 8px; }
.blog-table-wrap::-webkit-scrollbar-thumb,
.retinoid-scroll::-webkit-scrollbar-thumb { background: var(--ta-rust); border-radius: 8px; }
.blog-table-wrap::-webkit-scrollbar-track,
.retinoid-scroll::-webkit-scrollbar-track { background: var(--ta-cream); }

/* ---------- FAQ ---------- */

.tb-faq {
    margin-top: 48px;
    padding: 28px;
    border-radius: 18px;
    background: var(--ta-cream);
    border: 1px solid var(--ta-line);
}
.tb-faq h2 { font-size: 26px; font-weight: 700; color: var(--ta-ink); margin-bottom: 20px; }

.tb-faq .accordion-item {
    border: 1px solid var(--ta-line);
    border-radius: 12px !important;
    overflow: hidden;
    margin-bottom: 10px;
    background: #fff;
}
.tb-faq .accordion-header { margin: 0; }
.tb-faq .accordion-button {
    font-family: var(--ta-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--ta-ink);
    background: #fff;
    box-shadow: none !important;
    padding: 16px 20px;
}
.tb-faq .accordion-button:not(.collapsed) { background: var(--ta-blush); color: var(--ta-rust-dark); }
.tb-faq .accordion-button:focus { box-shadow: 0 0 0 3px rgba(163, 67, 42, 0.15) !important; }
.tb-faq .accordion-body { font-size: 16px; line-height: 1.7; color: var(--ta-muted); padding: 4px 20px 18px; background: var(--ta-blush); }
.tb-faq .accordion-body p:last-child { margin-bottom: 0; }

/* ---------- share / author / comments ---------- */

.tb-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    padding: 18px 0;
    border-top: 1px solid var(--ta-line);
    border-bottom: 1px solid var(--ta-line);
}
.tb-share span { font-weight: 600; margin-right: 6px; }
.tb-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--ta-line);
    color: var(--ta-rust);
    text-decoration: none;
    transition: all 0.2s;
}
.tb-share a:hover { background: var(--ta-rust); border-color: var(--ta-rust); color: #fff; }

.tb-author {
    display: flex;
    gap: 22px;
    margin-top: 36px;
    padding: 26px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--ta-cream), var(--ta-blush));
    border: 1px solid var(--ta-line);
}
.tb-author-img { flex: 0 0 96px; }
.tb-author-img img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 14px rgba(58, 26, 16, 0.15);
}
.tb-author-name { font-size: 22px; font-weight: 700; margin: 0 0 8px; }
.tb-author-name a { color: var(--ta-ink); text-decoration: none; }
.tb-author-name a:hover { color: var(--ta-rust); }
.tb-author-intro,
.tb-author-intro p { font-size: 15px; line-height: 1.65; color: var(--ta-muted); }
.tb-author-intro p { margin-bottom: 10px; }
.tb-author-intro * { font-family: var(--ta-sans) !important; font-size: 15px !important; }

.tb-faq h2,
.tb-comments,
.tb-related h2 { scroll-margin-top: 110px; }

.tb-comments { margin-top: 48px; }
.tb-comments h2 { font-size: 24px; font-weight: 700; margin-bottom: 20px; }

.tb-alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; background: var(--ta-blush); }
.tb-alert-success { background: #e8f4ec; color: #1f5f35; }
.tb-alert-error { background: #fbe7e4; color: #8a2a1a; }

.tb-comment-list { list-style: none; padding: 0; margin: 0 0 28px; }
.tb-comment {
    display: flex;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid var(--ta-line);
}
.tb-comment-avatar {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ta-peach);
    color: var(--ta-rust-dark);
    font-weight: 700;
}
.tb-comment-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.tb-comment-head time { font-size: 13px; color: #9a8379; }
.tb-comment p { margin: 0; line-height: 1.65; color: #3B2C25; }

.tb-comment-form {
    padding: 26px;
    border-radius: 18px;
    border: 1px solid var(--ta-line);
    background: #fff;
}
.tb-comment-form h3 { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.tb-comment-form .form-label { font-size: 14px; font-weight: 500; }
.tb-comment-form .form-control { border-color: var(--ta-line); border-radius: 10px; padding: 10px 14px; }
.tb-comment-form .form-control:focus { border-color: var(--ta-rust); box-shadow: 0 0 0 3px rgba(163, 67, 42, 0.12); }
.tb-comment-form button { border: 0; }

/* ---------- sidebar ---------- */

.tb-sidebar {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-width: none;
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.tb-sidebar::-webkit-scrollbar { display: none; }

.tb-widget {
    padding: 22px;
    border-radius: 16px;
    border: 1px solid var(--ta-line);
    background: #fff;
}
.tb-widget-title {
    font-family: var(--ta-display);
    font-size: 17px;
    font-weight: 700;
    color: var(--ta-ink);
    margin: 0 0 14px;
}

.tb-widget-toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--ta-line); }
.tb-widget-toc li { margin: 0; }
.tb-widget-toc a {
    display: block;
    padding: 6px 0 6px 14px;
    margin-left: -2px;
    border-left: 2px solid transparent;
    font-size: 14px;
    line-height: 1.45;
    color: var(--ta-muted);
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s;
}
.tb-widget-toc a:hover { color: var(--ta-rust); }
.tb-widget-toc a.is-active { color: var(--ta-rust); border-left-color: var(--ta-rust); font-weight: 500; }

.tb-widget-cta { background: linear-gradient(135deg, var(--ta-cream), var(--ta-blush)); display: flex; flex-direction: column; gap: 10px; }
.tb-widget-cta .tb-eyebrow { margin: 0; }
.tb-widget-cta .tb-widget-title { margin-bottom: 6px; line-height: 1.35; }

.tb-recent { list-style: none; padding: 0; margin: 0; }
.tb-recent li + li { border-top: 1px solid var(--ta-line); }
.tb-recent a { display: flex; gap: 12px; align-items: center; padding: 12px 0; text-decoration: none; }
.tb-recent img { flex: 0 0 80px; width: 80px; height: 56px; object-fit: cover; border-radius: 8px; background: var(--ta-blush); }
.tb-recent span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tb-recent strong {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ta-ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tb-recent a:hover strong { color: var(--ta-rust); }
.tb-recent time { font-size: 12px; color: #9a8379; }

.tb-related { background: var(--ta-cream); border-top: 1px solid var(--ta-line); padding: 56px 0 64px; margin-top: 40px; }
.tb-related h2 { font-size: 28px; font-weight: 700; margin-bottom: 28px; }

/* ------------------------------ responsive ------------------------------ */

@media (max-width: 991px) {
    .tb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tb-featured { grid-template-columns: 1fr; }
    .tb-featured-img { min-height: 0; aspect-ratio: 2 / 1; }
    .tb-featured-body { padding: 26px; }
    .tb-sidebar { position: static; max-height: none; overflow: visible; }
}

@media (max-width: 767px) {
    .tb-nav-spacer { height: 76px; }
    .tb-hero { padding: 24px 0 28px; }
    .tb-hero-intro { font-size: 15px; }
    .tb-search { flex: 1 1 100%; }
    .tb-filter { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; scrollbar-width: none; }
    .tb-filter::-webkit-scrollbar { display: none; }
    .tb-pill { white-space: nowrap; }
    .tb-listing { padding: 32px 0 48px; }
    .tb-cta { padding: 28px 24px; margin-top: 48px; }
    .tb-breadcrumb [aria-current] span { max-width: 24ch; }

    .tb-prose,
    .tb-prose p,
    .tb-prose li { font-size: 16px; line-height: 1.75; }
    .tb-prose h2 { font-size: 23px; }
    .tb-prose h3 { font-size: 19px; }
    .tb-faq { padding: 20px 16px; }
    .tb-faq h2 { font-size: 22px; }
    .tb-author { flex-direction: column; gap: 14px; padding: 20px; }
    .tb-comment-form { padding: 20px; }
    .tb-related h2 { font-size: 23px; }
}

@media (max-width: 575px) {
    .tb-grid { grid-template-columns: 1fr; gap: 22px; }
    .blog_content_td table { font-size: 14px; }
    .blog_content_td table th,
    .blog_content_td table td { padding: 10px 12px; }
    .tb-byline { gap: 12px; }
    .tb-byline-meta { font-size: 13px; gap: 6px 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .tb-card, .tb-card-img img, .tb-featured-img img, .tb-btn i { transition: none; }
    .tb-card:hover { transform: none; }
}

/* ------------------------------ author pages ------------------------------ */

.tb-section-title { font-family: var(--ta-display); font-size: 26px; font-weight: 700; margin-bottom: 20px; }

.tb-profile { display: flex; align-items: center; gap: 28px; }
.tb-profile .tb-hero-title { margin-bottom: 10px; }
.tb-profile-img {
    flex: 0 0 140px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 8px 24px rgba(58, 26, 16, 0.15);
    background: var(--ta-blush);
}
.tb-profile-intro,
.tb-profile-intro * { font-family: var(--ta-sans) !important; font-size: 16px !important; line-height: 1.65; color: var(--ta-muted) !important; }
.tb-profile-intro p { margin: 0; max-width: 70ch; }

.tb-bio * { font-family: var(--ta-sans) !important; }
.tb-bio p, .tb-bio li, .tb-bio span { font-size: 17px !important; }

.tb-author-card { text-align: center; }
.tb-author-card-img { display: block; padding: 28px 0 0; }
.tb-author-card-img img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--ta-blush);
}
.tb-author-card .tb-card-body { align-items: center; }
.tb-author-card .tb-card-excerpt { -webkit-line-clamp: 4; }

@media (max-width: 767px) {
    .tb-profile { flex-direction: column; align-items: flex-start; gap: 16px; }
    .tb-profile-img { width: 104px; height: 104px; flex-basis: 104px; }
    .tb-section-title { font-size: 22px; }
    .tb-bio p, .tb-bio li, .tb-bio span { font-size: 16px !important; }
}
