@import url('/static/expert/css/style.css');

.expert-topic-page {
    background: #fff;
    min-height: calc(100vh - 56px);
}

.expert-topic-container {
    width: calc(900px + var(--gap) + var(--sidebar-width));
    max-width: calc(100% - 121px);
    margin-left: max(121px, calc((100vw - var(--page-width)) / 2 + 121px));
    margin-right: 0;
    padding: 28px 0 80px;
}

.breadcrumb-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: #999;
    font-size: 14px;
    margin-bottom: 20px;
}

.breadcrumb-top a {
    color: #777;
}

.breadcrumb-top a:hover {
    color: var(--primary-red);
}

.expert-topic-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 900px) var(--sidebar-width);
    gap: var(--gap);
    align-items: start;
    padding: 38px 0 44px;
}

.expert-topic-hero::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 900px;
    max-width: 100%;
    height: 1px;
    background: #f1d4cc;
}

.expert-topic-copy {
    width: 900px;
    max-width: 100%;
}

.topic-kicker {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 10px;
    border-radius: 6px;
    background: #fff0eb;
    color: var(--primary-red);
    font-size: 13px;
    font-weight: 400;
    margin-bottom: 14px;
}

.expert-topic-copy h1 {
    color: #000;
    font-size: 25px;
    line-height: 1.25;
    font-weight: 700;
    margin-bottom: 16px;
}

.expert-topic-summary {
    max-width: 900px;
    color: #333;
    font-size: 15px;
    line-height: 1.9;
}

.expert-topic-brief {
    max-width: 900px;
    color: #111;
    font-size: 15px;
    line-height: 1.85;
    margin-top: 12px;
}

.expert-topic-proof {
    max-width: 900px;
    margin-top: 16px;
    padding: 16px 18px;
    border: 1px solid #ffd8ce;
    border-left: 4px solid var(--primary-red);
    border-radius: 8px;
    background: #fff8f5;
    color: #111;
    font-size: 15px;
    line-height: 1.85;
}

.expert-topic-proof strong {
    display: block;
    margin-bottom: 4px;
    color: #000;
    font-size: 16px;
}

.expert-topic-subtitle {
    max-width: 900px;
    color: #111;
    font-size: 16px;
    line-height: 1.65;
    font-weight: 650;
    margin-bottom: 10px;
}

.expert-topic-inline-avatar {
    float: right;
    display: block;
    width: 225px;
    height: 225px;
    margin: 0 0 18px 28px;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    background: transparent;
}

.expert-topic-inline-avatar.has-png-avatar {
    position: relative;
    padding: 5px;
    background: linear-gradient(to bottom, #ffd7c5 0%, #ffe9d1 41%, #fff3e5 100%);
}

.expert-topic-inline-avatar.has-png-avatar::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 5px;
    background: #fff3e5;
    pointer-events: none;
    z-index: 2;
}

.expert-topic-inline-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    position: relative;
    z-index: 1;
}

.expert-topic-inline-avatar.has-png-avatar img {
    border-radius: 11px;
}

.topic-keywords,
.related-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.topic-keywords span,
.topic-keywords a,
.related-tags span,
.related-tags a {
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    padding: 0 7px;
    border-radius: 6px;
    background: #fff1ed;
    color: #6f1b13;
    font-size: 14px;
}

.topic-keywords a:hover,
.related-tags a:hover {
    background: #ffe4dc;
    color: var(--primary-red);
}

.expert-topic-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.primary-link,
.secondary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 128px;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 650;
}

.primary-link {
    background: linear-gradient(90deg, #d40b0b, #ff5127);
    color: #fff;
}

.secondary-link {
    border: 1px solid #f2c9bd;
    background: #fff8f5;
    color: #ad0800;
}

.expert-topic-sidebar {
    align-self: start;
    position: fixed;
    top: 91px;
    left: calc(max(121px, calc((100vw - var(--page-width)) / 2 + 121px)) + 900px + var(--gap));
    width: var(--sidebar-width);
    height: fit-content;
}

.expert-topic-avatar {
    display: block;
    width: 156px;
    aspect-ratio: 1;
    margin: 0 auto;
    border: 6px solid #ffe2d8;
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
}

.expert-topic-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.topic-card-label {
    color: #ad0800;
    font-size: 13px;
    font-weight: 650;
    margin-bottom: 12px;
}

.expert-topic-card h2 {
    color: #000;
    font-size: 22px;
    line-height: 1.35;
    margin-bottom: 10px;
}

.expert-topic-card p {
    color: #555;
    font-size: 15px;
    line-height: 1.8;
}

.topic-card-desc {
    margin-top: 14px;
}

.focus-list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.focus-list li {
    position: relative;
    padding-left: 16px;
    color: #111;
    font-size: 15px;
    line-height: 1.65;
}

.focus-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-red);
}

.expert-topic-section {
    max-width: 900px;
    padding-top: 34px;
}

.expert-topic-section h2 {
    color: #000;
    font-size: 22px;
    line-height: 1.35;
    margin-bottom: 16px;
}

.summary-band {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
    border-bottom: 1px solid #f5ded6;
    padding-bottom: 34px;
}

.summary-band p,
.text-block p,
.info-card p,
.course-card p,
.faq-list p,
.expert-topic-cta p {
    color: #111;
    font-size: 16px;
    line-height: 1.9;
}

.content-stack {
    display: grid;
    gap: 18px;
}

.text-block {
    border-left: 3px solid var(--primary-red);
    padding-left: 18px;
}

.text-block h3,
.info-card h3,
.course-card h3 {
    color: #000;
    font-size: 18px;
    line-height: 1.45;
    margin-bottom: 8px;
}

.course-title-link {
    color: inherit;
    text-decoration: none;
}

.course-title-link:hover {
    color: var(--primary-red);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.card-list,
.course-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.info-card,
.course-card {
    border: 1px solid #ffe1d7;
    border-radius: 8px;
    background: #fff;
    padding: 20px;
}

.course-card {
    background: #fffaf8;
}

.course-card strong {
    color: #000;
}

.course-role {
    padding: 10px 12px;
    border-radius: 6px;
    background: #fff0eb;
}

.course-published-link {
    color: #777;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.course-published-link a {
    color: #ad0800;
    text-decoration: none;
}

.course-published-link a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.course-role strong {
    color: #ad0800;
}

.course-meta-row {
    margin-top: 8px;
}

.course-topic-fit {
    padding: 10px 12px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #ffe1d7;
}

.course-topic-fit strong {
    color: #ad0800;
}

.faq-list {
    display: grid;
    gap: 10px;
}

.faq-list details {
    border: 1px solid #ffe1d7;
    border-radius: 8px;
    background: #fff;
    padding: 0;
    overflow: hidden;
}

.faq-list summary {
    position: relative;
    display: block;
    cursor: pointer;
    color: #000;
    font-size: 17px;
    font-weight: 650;
    padding: 16px 44px 16px 18px;
    list-style: none;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: "+";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-red);
    font-size: 22px;
    font-weight: 500;
}

.faq-list details[open] summary::after {
    content: "-";
}

.faq-list p {
    margin: 0;
    padding: 0 18px 18px;
}

.expert-topic-cta {
    margin-top: 44px;
    padding: 28px;
    border-radius: 8px;
    background: linear-gradient(90deg, #d40b0b, #ff5127);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.expert-topic-cta p {
    color: #fff;
    font-size: 18px;
    font-weight: 650;
}

.expert-topic-cta .primary-link {
    background: #fff;
    color: #b10800;
    flex: 0 0 auto;
}

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

.expert-topic-grid > div {
    border: 1px solid #ffe1d7;
    border-radius: 8px;
    padding: 18px;
    background: #fff;
}

.expert-topic-grid h3 {
    color: #ad0800;
    font-size: 15px;
    margin-bottom: 10px;
}

.expert-topic-grid p {
    color: #222;
    font-size: 15px;
    line-height: 1.8;
}

.empty-state-text {
    color: #555;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.expert-topic-mobile-fixed {
    text-decoration: none;
}

@media (max-width: 768px) {
    .expert-topic-container {
        width: auto;
        max-width: none;
        margin: 0;
        padding: 18px 18px 86px;
    }

    .expert-topic-page {
        padding-bottom: 52px;
    }

    .expert-topic-mobile-fixed {
        display: flex;
        cursor: pointer;
    }

    .expert-topic-mobile-fixed .fixed-btn-m {
        max-width: calc(100vw - 30px);
    }

    .expert-topic-mobile-fixed .fixed-btn-text,
    .expert-topic-mobile-fixed .fixed-btn-link {
        font-size: 14px;
        line-height: 1;
    }

    .expert-topic-hero {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 24px 0 30px;
    }

    .expert-topic-copy,
    .expert-topic-actions {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .expert-topic-copy h1 {
        font-size: 18px;
    }

    .expert-topic-summary {
        font-size: 15px;
        line-height: 1.75;
    }

    .expert-topic-subtitle {
        font-size: 14px;
    }

    .expert-topic-sidebar {
        display: none;
    }

    .expert-topic-inline-avatar {
        float: none;
        width: 70px;
        height: 70px;
        margin: 0 auto 16px;
        border-radius: 15px;
    }

    .expert-topic-inline-avatar.has-png-avatar {
        padding: 2px;
    }

    .expert-topic-avatar {
        width: 128px;
        margin-bottom: 16px;
        border-width: 5px;
        border-radius: 20px;
    }

    .expert-topic-grid,
    .summary-band,
    .card-list,
    .course-list {
        grid-template-columns: 1fr;
    }

    .expert-topic-cta {
        align-items: stretch;
        flex-direction: column;
        padding: 22px;
    }
}
