/* ==========================================================================
   TB Magazine - ThinkBusiness Design System
   ========================================================================== */

:root {
    --tb-blue: #0066CC;
    --tb-navy: #00172D;
    --tb-gray: #E5E7EB;
    --tb-paper: #FAF8F5;
    --tb-panel: #F3F3EF;
    --tb-muted: #5B6573;
    --tb-faint: #9AA3AE;
    /* --tb-serif: "Merriweather", "Georgia", serif; */
    --tb-serif: "Playfair Display", Sans-serif;
    /* --tb-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; */
    --tb-sans: "Poppins", Sans-serif;
}

.tb-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
    font-family: var(--tb-sans);
    color: var(--tb-navy);
}

.tb-wrap *,
.tb-wrap *::before,
.tb-wrap *::after {
    box-sizing: border-box;
}

/* Typography Utilities */
.tb-kicker {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tb-blue);
    margin-bottom: 0.4rem;
    display: inline-block;
}

.tb-kicker.tag {
    font-size: 0.75rem;
    margin-top: 0.8rem;
}

.tb-link-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--tb-blue);
    font-weight: 700;
    text-decoration: none;
    font-size: 1rem;
    transition: opacity 0.2s;
}

.tb-link-cta::before {
    content: "\2192";
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 2px solid var(--tb-blue);
    border-radius: 50%;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.tb-link-cta:hover {
    opacity: 0.85;
}

/* Magazine Cover Art Component */
.tb-cover {
    background: #fff;
    border: 1px solid var(--tb-gray);
    box-shadow: 0 8px 24px rgba(0, 23, 45, 0.12);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tb-cover-top {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    padding: 0.7rem;
}

.tb-cover-logo {
    flex: none;
    background: var(--tb-navy);
    color: #fff;
    font-family: var(--tb-serif);
    font-weight: 700;
    font-size: 0.95em;
    padding: 1.4em 0.8em;
    text-align: center;
    line-height: 1;
}

.tb-cover-logo small {
    display: block;
    margin-top: 0.7em;
    font-family: var(--tb-sans);
    font-size: 0.5em;
    letter-spacing: 0.3em;
}

.tb-cover-top ul {
    font-size: 0.7em;
    color: var(--tb-muted);
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.tb-cover-top li {
    border-bottom: 1px solid var(--tb-gray);
    padding: 0.25em 0;
    line-height: 1.3;
}

.tb-cover-title {
    font-family: var(--tb-serif);
    font-size: 1.15em;
    text-align: center;
    padding: 1em 0.8em;
    line-height: 1.35;
    margin: 0;
    color: var(--tb-navy);
}

.tb-cover-img {
    flex: 1;
    min-height: 160px;
    background-size: cover;
    background-position: center;
}

.tb-cover-img.tb-default-art {
    background:
        linear-gradient(115deg, transparent 55%, rgba(230, 180, 150, 0.9) 56% 70%, transparent 71%),
        repeating-linear-gradient(90deg, rgba(80, 200, 230, 0.9) 0 5px, transparent 5px 18px) bottom/100% 55% no-repeat,
        linear-gradient(160deg, #0f2a3d, #2f6272 70%, #143448);
}

/* Feature / Spotlight Layout (Homepage) */
.tb-feature {
    display: grid;
    grid-template-columns: minmax(240px, 340px) 1fr;
    gap: 4rem;
    align-items: center;
    background: var(--tb-paper);
    border: 1px solid var(--tb-gray);
    padding: 3rem;
    margin: 2rem 0;
    border-radius: 4px;
}

.tb-feature .tb-cover {
    font-size: 1rem;
    min-height: 400px;
}

.tb-feature h1 {
    font-family: var(--tb-serif);
    font-size: clamp(1rem, 3vw, 2rem);
    line-height: 1.15;
    margin: 0.6rem 0 1rem;
    color: var(--tb-navy);
}

.tb-feature .tb-lede {
    color: var(--tb-muted);
    font-size: 1.12rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.tb-feature-topics {
    margin: 2rem 0 1.8rem;
    border-top: 1px solid var(--tb-gray);
    padding: 0;
    list-style: none;
}

.tb-feature-topics li {
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--tb-gray);
}

.tb-feature-topics li h3 {
    font-family: var(--tb-serif);
    font-size: 1.18rem;
    margin-bottom: 0.35rem;
    color: var(--tb-navy);
}

.tb-feature-topics li h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.tb-feature-topics li h3 a:hover {
    color: var(--tb-blue);
}

.tb-feature-topics li p {
    color: var(--tb-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.tb-feature-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* Magazine Hero Section (Single Edition Page) */
.tb-mag-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2.5rem;
    padding: 3.5rem 0;
}

.tb-mag-hero .tb-hero-text {
    text-align: center;
    max-width: 520px;
    margin: 0 auto;
}

.tb-mag-hero .tb-hero-date {
    font-size: 2.4rem;
    font-weight: 400;
    font-family: var(--tb-serif);
    margin: 0.3rem 0;
    color: var(--tb-navy);
}

.tb-mag-hero h1 {
    font-family: var(--tb-sans);
    font-size: 2.3rem;
    line-height: 1.15;
    margin-bottom: 1.8rem;
    color: var(--tb-navy);
}

.tb-mag-hero .tb-cover {
    width: 340px;
    max-width: 100%;
    margin: 0 auto;
    font-size: 0.85rem;
}

.tb-hero-controls {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.tb-btn-pill {
    display: inline-flex;
    gap: 0.6rem;
    align-items: center;
    font-family: var(--tb-sans);
    font-size: 1rem;
    font-weight: 600;
    padding: 0.85rem 1.6rem;
    border: 1px solid var(--tb-navy);
    border-radius: 999px;
    background: #fff;
    color: var(--tb-navy);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tb-btn-pill:hover {
    background: var(--tb-navy);
    color: #fff;
}

/* Reports Section & Cards Grid (Child Articles Listing & Category Archive) */
.tb-reports {
    background: var(--tb-panel);
    padding: 3rem 0 4rem;
    margin-top: 2rem;
}

.tb-category-header {
    margin-bottom: 2.2rem;
}

.tb-category-title {
    font-family: var(--tb-sans);
    font-size: 1.85rem;
    line-height: 1.25;
    margin: 0.35rem 0 1rem;
    color: var(--tb-navy);
}

.tb-category-desc {
    color: var(--tb-muted);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 720px;
    margin-bottom: 1.5rem;
}

.tb-reports-head {
    font-family: var(--tb-sans);
    font-size: 1.1rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--tb-navy);
}

.tb-reports-head::before {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--tb-navy);
    display: inline-block;
}

.tb-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.tb-card {
    background: #fff;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    border: 1px solid var(--tb-gray);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    border-radius: 2px;
}

.tb-card:hover {
    border-color: var(--tb-blue);
    box-shadow: 0 6px 18px rgba(0, 23, 45, 0.08);
}

.tb-card .tb-card-media {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--tb-panel);
}

.tb-card .tb-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tb-card h3 {
    font-family: var(--tb-serif);
    font-size: 1.35rem;
    line-height: 1.3;
    margin: 0;
    color: var(--tb-navy);
    transition: color 0.2s;
}

.tb-card:hover h3 {
    color: var(--tb-blue);
}

.tb-card p {
    color: var(--tb-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.tb-card .mins {
    margin-top: auto;
    padding-top: 1.2rem;
    color: var(--tb-faint);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Image Placeholders */
.img {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 2px;
}

.img-sketch {
    background: radial-gradient(circle at 50% 40%, #555 0 14%, transparent 15%), linear-gradient(#ddd, #f2f2f2);
}

/* Single Article Layout */
.tb-article-header {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 0 1rem;
}

.tb-crumbs {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tb-muted);
    margin-bottom: 0.8rem;
}

.tb-crumbs a {
    color: var(--tb-blue);
    text-decoration: none;
}

.tb-crumbs span {
    margin: 0 0.5rem;
    color: var(--tb-faint);
}

.tb-article-header h1 {
    font-family: var(--tb-serif);
    font-size: clamp(2rem, 4.5vw, 3rem);
    line-height: 1.18;
    margin: 0.8rem 0 1rem;
    color: var(--tb-navy);
}

.tb-standfirst {
    font-family: var(--tb-serif);
    color: var(--tb-muted);
    font-size: 1.18rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.tb-byline {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin: 1.5rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--tb-gray);
    border-bottom: 1px solid var(--tb-gray);
}

.tb-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--tb-gray);
    overflow: hidden;
    flex-shrink: 0;
}

.tb-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tb-byline b {
    display: block;
    font-size: 0.92rem;
    color: var(--tb-navy);
}

.tb-byline small {
    color: var(--tb-faint);
    font-size: 0.82rem;
}

.tb-share {
    margin-left: auto;
    display: flex;
    gap: 0.5rem;
}

.tb-share a {
    width: 32px;
    height: 32px;
    border: 1px solid var(--tb-gray);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--tb-navy);
    text-decoration: none;
    transition: all 0.2s;
}

.tb-share a:hover {
    background: var(--tb-blue);
    color: #fff;
    border-color: var(--tb-blue);
}

.tb-hero-img {
    max-width: 860px;
    margin: 0 auto 2.5rem;
}

.tb-hero-img img {
    width: 100%;
    height: auto;
    border-radius: 2px;
    display: block;
}

.tb-prose {
    max-width: 720px;
    margin: 0 auto;
    font-family: var(--tb-serif);
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--tb-navy);
}

.tb-prose p {
    margin-bottom: 1.5rem;
    font-family: var(--tb-sans)!important;
}

.tb-prose p.drop::first-letter {
    float: left;
    font-size: 4.2rem;
    line-height: 0.85;
    font-weight: 700;
    padding: 0.35rem 0.5rem 0 0;
    font-family: var(--tb-serif);
    color: var(--tb-navy);
}

.tb-prose a {
    color: var(--tb-blue);
    font-weight: 700;
}

.tb-prose h2,
.tb-prose h3 {
    font-family: var(--tb-serif);
    margin: 2.5rem 0 1rem;
    color: var(--tb-navy);
}

.tb-prose blockquote {
    border-left: 4px solid var(--tb-blue);
    padding: 0.5rem 1.4rem;
    margin: 2rem 0;
    background: var(--tb-paper);
}

.tb-prose blockquote p {
    font-style: italic;
    font-size: 1.15rem;
    margin-bottom: 0.8rem;
}

.tb-prose blockquote cite {
    font-style: normal;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--tb-muted);
}

/* Key Takeaways Box (Article Design Style) */
.tb-key-takeaways {
    border: 1px solid var(--tb-gray);
    background: #fff;
    padding: 1.5rem;
    margin: 2.2rem 0;
    border-radius: 4px;
    font-family: var(--tb-sans);
}

.tb-key-takeaways .tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--tb-blue);
    letter-spacing: 0.08em;
    display: block;
    margin-bottom: 0.4rem;
}

.tb-key-takeaways h3 {
    font-family: var(--tb-sans);
    font-size: 1.2rem;
    margin: 0 0 1rem;
    color: var(--tb-navy);
}

.tb-key-takeaways-body {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--tb-muted);
}

.tb-key-takeaways-body ul {
    padding-left: 1.2rem;
    list-style: disc;
    margin: 0.5rem 0;
}

.tb-topics-chips {
    border-top: 1px solid var(--tb-gray);
    padding-top: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 3.5rem;
    font-family: var(--tb-sans);
}

.tb-topics-chips h4 {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    color: var(--tb-muted);
}

.tb-chips-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tb-chips-list a {
    background: var(--tb-gray);
    color: var(--tb-muted);
    font-size: 0.8rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.2s;
}

.tb-chips-list a:hover {
    background: var(--tb-blue);
    color: #fff;
}

/* Card Enhancements (Media Links & Parent Pill) */
.tb-card-media-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.tb-card-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tb-card-parent-pill {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--tb-navy);
    background: var(--tb-panel);
    border: 1px solid var(--tb-gray);
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.2s;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tb-card-parent-pill:hover {
    background: var(--tb-navy);
    color: #fff!important;
    border-color: var(--tb-navy);
}

.tb-card h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.tb-card h3 a:hover {
    color: var(--tb-blue);
}

/* Related Section in Single Article */
.tb-more-section {
    background: var(--tb-panel);
    padding: 3rem 0;
    margin-top: 4rem;
}

/* Archive Grid */
.tb-archive-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
}

.tb-archive-head h1 {
    font-family: var(--tb-sans);
    font-size: 2.4rem;
    color: var(--tb-blue);
    margin: 0;
}

.tb-grid-editions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding-bottom: 4rem;
}

.tb-edition-item {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.tb-edition-item .tb-cover {
    font-size: 0.8rem;
    aspect-ratio: 3 / 4.1;
    min-height: 280px;
}

.tb-edition-item time {
    display: block;
    margin-top: 0.9rem;
    color: var(--tb-blue);
    font-weight: 600;
    font-size: 0.88rem;
}

.tb-edition-item h3 {
    font-family: var(--tb-sans);
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 0.35rem;
    line-height: 1.3;
    color: var(--tb-navy);
    transition: color 0.2s;
}

.tb-edition-item:hover h3 {
    color: var(--tb-blue);
}

/* Responsive Media Queries */
@media (max-width: 900px) {
    .tb-feature,
    .tb-mag-hero {
        grid-template-columns: 1fr;
    }
    .tb-feature {
        padding: 1.8rem;
        gap: 2rem;
    }
    .tb-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tb-grid-editions {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 580px) {
    .tb-cards-grid,
    .tb-grid-editions {
        grid-template-columns: 1fr;
    }
    .tb-archive-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .tb-mag-hero h1,
    .tb-mag-hero .tb-hero-date {
        font-size: 1.8rem;
    }
    .tb-mag-hero .tb-cover {
        width: 100%;
        max-width: 290px;
    }
}
