/* ======================================================
   TrueLink Directory — consolidated public theme
   ====================================================== */

:root {
    --bg: #050b14;
    --card: #0f172a;
    --card-hover: #1e293b;
    --border: #334155;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #10b981;
    --blue: #38bdf8;
    --purple: #a855f7;
    --warning: #f59e0b;
    --danger: #ef4444;
}

body {
    margin: 0;
    padding-top: 70px;
    background-color: var(--bg);
    color: var(--text-main);
    font-family: "Noto Sans TC", "Inter", sans-serif;
    overflow-x: hidden;
}
.dir-article-body,
.dir-ssr-body {
    padding-top: 70px;
    background-color: #020617;
}
* {
    box-sizing: border-box;
}

/* ─── Directory Layout ─── */
.directory-container,
.view-section {
    width: 100%;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px 80px;
}
.view-section {
    margin-bottom: 0;
}

/* ─── Directory Hero ─── */
.dir-header {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 72px 20px 56px;
    margin-bottom: 0;
    background: linear-gradient(135deg, #020617 0%, #0f172a 100%);
    border-bottom: 1px solid rgba(56, 189, 248, 0.1);
}
.dir-header::before {
    content: "";
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: min(1000px, 200vw);
    height: min(1000px, 180vw);
    background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, transparent 70%);
    pointer-events: none;
}
.dir-header.compact.article-page-header {
    padding: 32px 20px 28px;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(56, 189, 248, 0.12);
}

.article-page-header-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    z-index: 2;
}
.article-brand-link {
    display: inline-flex;
    align-items: baseline;
    gap: 12px;
    color: #f8fafc;
    text-decoration: none;
    white-space: nowrap;
}
.article-brand-logo {
    font-size: clamp(1.4rem, 3vw, 1.95rem);
    font-weight: 900;
    letter-spacing: -0.04em;
}
.article-brand-logo span {
    color: var(--blue);
}
.article-brand-subtitle {
    color: #cbd5e1;
    font-size: 0.95rem;
    font-weight: 800;
}
.article-top-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}
.article-top-nav a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 14px;
    border-radius: 999px;
    color: #dbeafe;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 900;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(56, 189, 248, 0.22);
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.24);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.article-top-nav a:hover {
    transform: translateY(-1px);
    color: #ffffff;
    background: rgba(14, 165, 233, 0.18);
    border-color: rgba(56, 189, 248, 0.48);
}

.dir-header.compact.article-page-header h1 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin: 0;
    letter-spacing: 0.02em;
}
.dir-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    color: #f8fafc;
    margin: 0 0 18px;
    position: relative;
    z-index: 2;
    line-height: 1.25;
    letter-spacing: -0.02em;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.dir-header h1 span {
    background: linear-gradient(90deg, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.dir-header p {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto 32px;
    line-height: 1.75;
    position: relative;
    z-index: 2;
    font-weight: 400;
}
.search-container {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.search-input {
    width: 100%;
    padding: 18px 22px 18px 58px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(56, 189, 248, 0.28);
    color: #fff;
    font-size: 1.05rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    font-family: inherit;
    backdrop-filter: blur(12px);
}
.search-input:focus {
    border-color: #38bdf8;
    box-shadow: 0 12px 36px rgba(56, 189, 248, 0.12);
    background: rgba(15, 23, 42, 0.92);
}
.search-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: #38bdf8;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s;
}
.search-icon:hover {
    color: #818cf8;
}
.search-hint {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.06);
    padding: 4px 10px;
    border-radius: 8px;
    pointer-events: none;
    max-width: 38%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.premium-cta-banner {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.08), rgba(2, 6, 23, 0.85));
    border: 1px solid rgba(16, 185, 129, 0.22);
    max-width: 900px;
    margin: -12px auto 40px;
    padding: 18px 26px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    position: relative;
    z-index: 5;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(10px);
}
.premium-cta-lead {
    color: #10b981;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    font-weight: 800;
    display: block;
    margin-bottom: 6px;
}
.premium-cta-sub {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.55;
}
.premium-cta-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    text-decoration: none;
    padding: 11px 22px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.92rem;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
}
.premium-cta-btn:hover {
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.35);
    transform: translateY(-2px);
}


.directory-page-menu {
    width: min(960px, calc(100% - 32px));
    margin: 18px auto 10px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: 999px;
    box-shadow: 0 18px 45px rgba(2, 6, 23, 0.28);
    backdrop-filter: blur(14px);
    position: relative;
    z-index: 6;
}
.directory-page-menu__link {
    appearance: none;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.04);
    color: #dbeafe;
    text-decoration: none;
    border-radius: 999px;
    padding: 9px 14px;
    font-size: 0.88rem;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    transition: transform 0.2s, color 0.2s, border-color 0.2s, background 0.2s;
    font-family: inherit;
}
.directory-page-menu__link:hover {
    color: #fff;
    border-color: rgba(56, 189, 248, 0.48);
    background: rgba(56, 189, 248, 0.12);
    transform: translateY(-1px);
}
.directory-page-menu__link.is-muted {
    color: #bfdbfe;
}
.directory-page-menu__button {
    color: #fde68a;
}

/* ─── Main / sub tabs ─── */
.main-tabs-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 20px auto 24px;
    padding: 0 20px;
    flex-wrap: wrap;
}
.main-tab-btn {
    background: var(--card);
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.main-tab-btn:hover {
    background: var(--card-hover);
    color: #fff;
}
.main-tab-btn.active {
    background: rgba(56, 189, 248, 0.1);
    color: var(--blue);
    border-color: var(--blue);
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.15);
}
.main-tab-btn.tab-outline-warn {
    border-color: var(--warning);
    color: var(--warning);
}
.sub-tabs-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    padding: 0 8px;
}
.sub-tab-btn {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid transparent;
    padding: 8px 18px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}
.sub-tab-btn:hover {
    background: var(--card);
    border-color: var(--border);
}
.sub-tab-btn.active {
    background: var(--card);
    color: var(--text-main);
    border-color: var(--border);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease forwards;
}
.tab-content.active {
    display: block;
}
.view-section {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}
.view-section.active {
    display: block;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── Directory Filters ─── */
.dir-filter-panel {
    max-width: 1180px;
    margin: 0 auto 28px;
    padding: 16px;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 20px;
}
.filter-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 12px;
}
.dir-filter-select {
    width: 100%;
    min-width: 0;
    background: var(--card);
    color: var(--text-main);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 11px 14px;
    font-size: 0.95rem;
    font-weight: 700;
    outline: none;
}
.dir-filter-select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}
.dir-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.85);
    color: var(--text-muted);
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s;
}
.dir-filter-btn:hover {
    color: var(--text-main);
    border-color: var(--blue);
}

/* ─── Grid & empty ─── */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    align-items: stretch;
}
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 56px 20px;
    color: var(--text-muted);
    background: var(--card);
    border: 1px dashed var(--border);
    border-radius: 20px;
}

/* ─── Directory Article Cards ─── */
.article-card,
.entity-card,
.ai-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 25px;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}
.article-card:hover,
.entity-card:hover,
.ai-card:hover {
    border-color: rgba(56, 189, 248, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
}

.ac-category {
    font-size: 0.78rem;
    font-weight: 900;
    color: var(--primary);
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 12px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.ac-title {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--text-main);
    margin: 0 0 10px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
.ac-excerpt {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.62;
    margin-bottom: 14px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ac-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid var(--border);
    padding-top: 14px;
    margin-top: auto;
}
.ac-author {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cbd5e1;
    font-weight: 700;
    font-size: 0.88rem;
    min-width: 0;
}
.ac-author-icon {
    background: var(--card-hover);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 0.78rem;
    border: 1px solid var(--border);
    flex-shrink: 0;
}
.ac-date {
    font-size: 0.82rem;
    color: var(--text-muted);
    white-space: nowrap;
}
.ac-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}
.ac-views {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--text-muted);
    white-space: nowrap;
}
.ac-views i {
    margin-right: 4px;
    color: var(--warning);
}
.ac-keyword {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    margin: 3px 6px 0 0;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.1);
    color: var(--blue);
    border: 1px solid rgba(56, 189, 248, 0.22);
}
.ac-keywords {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.article-card.article-card-rich {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    min-height: 420px;
}

.article-card-rich .ac-main-link {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    color: inherit;
    text-decoration: none;
}

.article-card-rich .ac-main-link:hover .ac-title {
    color: var(--primary);
}

.article-card-rich .ac-thumb {
    width: 100%;
    height: 180px;
    min-height: 180px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    border-right: none;
    border-bottom: 1px solid var(--border);
}
.article-card-rich .ac-thumb-empty {
    background: linear-gradient(145deg, rgba(56, 189, 248, 0.12), rgba(15, 23, 42, 0.95));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    font-size: 1.85rem;
}
.article-card-rich .ac-body {
    padding: 20px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.article-card-rich .ac-footer {
    padding: 16px 22px;
    border-top: 1px solid var(--border);
    margin-top: 0;
    flex-wrap: wrap;
}

.article-card-rich .ac-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    width: 100%;
    margin-top: 12px;
}

.ac-version-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 11px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-muted);
    background: rgba(15, 23, 42, 0.72);
    font-size: 0.78rem;
    font-weight: 900;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ac-version-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

.ac-version-link-primary {
    border-color: rgba(56, 189, 248, 0.45);
    color: #bae6fd;
    background: rgba(56, 189, 248, 0.12);
}

.ac-seo-line {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 8px;
    align-items: center;
    gap: 6px;
}
.ac-seo-val {
    display: none;
}
.ac-seo-line::after {
    content: "Canonical 已設定";
    color: var(--primary);
    font-weight: 800;
}
.ac-seo-label {
    display: none;
}

/* ─── Directory Entity Cards ─── */
.entity-card {
    align-items: center;
    text-align: center;
}
.ec-avatar {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border: 2px solid var(--blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--blue);
    margin-bottom: 14px;
}
.ec-name {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--text-main);
    margin: 0 0 8px;
}
.ec-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.45;
    margin: -2px 0 10px;
    min-height: 1.2em;
}
.ec-specialties {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 12px;
}
.ec-specialty {
    color: #c4b5fd;
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.2);
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
}
.ec-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 14px;
}
.ec-badge {
    background: rgba(56, 189, 248, 0.1);
    color: var(--blue);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 900;
    border: 1px solid rgba(56, 189, 248, 0.28);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.ec-badge.t2 {
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    border-color: rgba(16, 185, 129, 0.32);
}
.ec-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.58;
    margin-bottom: 16px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ec-btn {
    margin-top: auto;
    padding: 10px 18px;
    border-radius: 12px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: var(--blue);
    font-weight: 800;
    font-size: 0.88rem;
}

/* ─── AI marketplace cards ─── */
.ai-card {
    position: relative;
    overflow: hidden;
}
.ai-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--purple), var(--blue));
    opacity: 0;
    transition: opacity 0.35s;
}
.ai-card:hover::before {
    opacity: 1;
}
.ai-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 10px;
}
.ai-icon {
    width: 44px;
    height: 44px;
    background: rgba(168, 85, 247, 0.12);
    color: var(--purple);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}
.ai-creator-pill {
    font-size: 0.76rem;
    font-weight: 900;
    color: var(--text-muted);
    background: var(--card-hover);
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    white-space: nowrap;
}
.ai-title {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--text-main);
    margin: 0 0 10px;
    line-height: 1.35;
}
.ai-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 16px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ai-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed var(--border);
    padding-top: 14px;
    margin-top: auto;
    gap: 10px;
    flex-wrap: wrap;
}
.ai-input-pill {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
}
.ai-cost {
    color: var(--warning);
    font-weight: 900;
    font-family: ui-monospace, monospace;
    font-size: 1.05rem;
}
.ai-card-cta {
    background: var(--card-hover);
    color: var(--text-main);
    padding: 10px;
    border-radius: 10px;
    font-weight: 800;
    text-align: center;
    margin-top: 14px;
    transition: 0.2s;
    border: 1px solid var(--border);
    font-size: 0.9rem;
}
.ai-card:hover .ai-card-cta {
    background: rgba(168, 85, 247, 0.2);
    border-color: var(--purple);
    color: #fff;
}

/* ─── Education blocks ─── */
.edu-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 36px 32px 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
}
.edu-container--premium {
    max-width: 1080px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 0%, rgba(16, 185, 129, 0.18), transparent 30%),
        radial-gradient(circle at 88% 10%, rgba(168, 85, 247, 0.2), transparent 34%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.98));
}
.edu-container--premium::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary), var(--blue), var(--purple), var(--warning));
    opacity: 0.9;
}
.edu-hero {
    text-align: center;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}
.edu-hero-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 16px;
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    color: var(--blue);
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.22);
    filter: drop-shadow(0 0 15px rgba(56, 189, 248, 0.25));
}
.edu-hero-icon--glow {
    color: #86efac;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(56, 189, 248, 0.14));
    border-color: rgba(134, 239, 172, 0.35);
}
.edu-eyebrow {
    color: #86efac !important;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.82rem !important;
    font-weight: 900;
    margin-bottom: 8px !important;
}
.edu-hero h2 {
    font-size: clamp(1.75rem, 4vw, 2.6rem);
    color: #fff;
    margin: 0 0 12px;
    font-weight: 900;
    line-height: 1.25;
}
.edu-hero p {
    color: var(--text-muted);
    font-size: 1.04rem;
    line-height: 1.8;
    margin: 0 auto;
    max-width: 820px;
}
.edu-value-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 20px;
    position: relative;
    z-index: 1;
}
.edu-value-card {
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 18px;
    padding: 18px;
    min-height: 150px;
}
.edu-value-number {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(56, 189, 248, 0.12);
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, 0.28);
    font-weight: 900;
    margin-bottom: 14px;
}
.edu-value-card h3 {
    color: #fff;
    font-size: 1.06rem;
    margin: 0 0 8px;
    font-weight: 900;
}
.edu-value-card p {
    color: var(--text-muted);
    margin: 0;
    line-height: 1.65;
    font-size: 0.92rem;
}
.edu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 1;
}
.edu-item {
    background: rgba(2, 6, 23, 0.45);
    border: 1px solid var(--border);
    padding: 22px;
    border-radius: 16px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
}
.edu-list--marketing .edu-item {
    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(148, 163, 184, 0.22);
    border-radius: 20px;
    padding: 24px;
}
.edu-item--featured {
    border-color: rgba(16, 185, 129, 0.4) !important;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(2, 6, 23, 0.52)) !important;
}
.edu-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    flex-shrink: 0;
}
.edu-icon--mint {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.22);
}
.edu-icon--purple {
    color: var(--purple);
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.22);
}
.edu-icon--amber {
    color: var(--warning);
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.22);
}
.edu-icon--blue {
    color: var(--blue);
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.22);
}
.edu-icon--rose {
    color: #fb7185;
    background: rgba(251, 113, 133, 0.1);
    border: 1px solid rgba(251, 113, 133, 0.22);
}
.edu-content h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 1.18rem;
    font-weight: 900;
}
.edu-content p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.75;
    font-size: 0.98rem;
}
.edu-content code {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: ui-monospace, monospace;
    color: var(--blue);
    font-size: 0.88em;
}
.edu-cta-panel {
    margin-top: 24px;
    padding: 24px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(56, 189, 248, 0.08));
    border: 1px solid rgba(16, 185, 129, 0.28);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    z-index: 1;
}
.edu-cta-kicker {
    display: inline-block;
    color: #86efac;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 900;
    margin-bottom: 8px;
}
.edu-cta-panel h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 900;
}
.edu-cta-panel p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.65;
}
.edu-cta-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 0 0 210px;
}
.edu-cta-btn {
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 999px;
    padding: 11px 16px;
    text-decoration: none;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}
.edu-cta-btn:hover {
    transform: translateY(-1px);
}
.edu-cta-btn--primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    box-shadow: 0 10px 24px rgba(16, 185, 129, 0.24);
}
.edu-cta-btn--ghost {
    background: rgba(255, 255, 255, 0.06);
    color: #dbeafe;
}

.text-primary {
    color: var(--primary);
}
.text-blue {
    color: var(--blue);
}
.text-purple {
    color: var(--purple);
}

.muted-placeholder {
    color: #64748b;
    font-size: 0.94rem;
    padding: 8px;
    display: inline-block;
}

.load-more-wrap {
    text-align: center;
    margin-top: 28px;
}
.btn-load-more {
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    font-size: 0.95rem;
    transition: 0.2s;
}
.btn-load-more:hover {
    border-color: var(--blue);
    color: var(--blue);
}

/* ═════════ Article Page ═════════ */
.article-breadcrumbs,
.breadcrumbs {
    max-width: 960px;
    margin: 16px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    font-size: 0.92rem;
    color: #64748b;
    font-weight: 700;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.article-breadcrumbs a,
.breadcrumbs a {
    color: var(--blue);
    text-decoration: none;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.article-breadcrumbs a:hover,
.breadcrumbs a:hover {
    color: #f8fafc;
}
.article-breadcrumbs .crumb-sep,
.breadcrumbs .crumb-sep {
    font-size: 0.75rem;
    opacity: 0.6;
}
.breadcrumbs span:last-child,
.article-breadcrumbs .crumb-current {
    color: #f8fafc;
}

.article-shell {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 28px 20px 96px;
}
.article-hero-card {
    position: relative;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto 28px;
    padding: clamp(24px, 4vw, 46px);
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 38%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 34px;
    box-shadow: 0 28px 90px rgba(15, 23, 42, 0.26);
}
.article-hero-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 8px;
    background: linear-gradient(90deg, var(--blue), var(--purple), var(--primary));
    pointer-events: none;
}
.article-hero-card .article-breadcrumbs {
    max-width: none;
    margin: 0 0 20px;
    padding: 0;
}
.article-hero-card .article-breadcrumbs .crumb-current {
    color: #475569;
}
.article-hero-card .tl-article-header {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}
.tl-article-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}
.article-reading-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 34px;
    padding: clamp(24px, 4vw, 54px);
    box-shadow: 0 28px 90px rgba(15, 23, 42, 0.28);
}
.article-reading-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 8px;
    background: linear-gradient(90deg, var(--blue), var(--purple), var(--primary));
    z-index: 1;
    pointer-events: none;
}
.article-readable-surface {
    position: relative;
    z-index: 2;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 28px;
    padding: clamp(24px, 4vw, 48px);
    color: #1e293b;
    box-shadow: 0 18px 55px rgba(15, 23, 42, 0.08);
}
.article-readable-surface :where(section, article, main, header, footer, div) {
    color: inherit;
}
.article-readable-surface :where(h1, h2, h3, h4, h5, h6, strong, b) {
    color: #0f172a !important;
    text-shadow: none !important;
}
.article-readable-surface :where(p, li, span, small, figcaption) {
    color: #334155 !important;
}
.article-readable-surface :where([style*="background:#0"], [style*="background: #0"], [style*="background-color:#0"], [style*="background-color: #0"], [style*="background:#020617"], [style*="background: #020617"], [style*="background-color:#020617"], [style*="background-color: #020617"]) {
    background: #ffffff !important;
}
.tl-article-header {
    margin-bottom: 30px;
    padding-bottom: 26px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.24);
}
.tl-article-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin: 0 0 20px;
    font-weight: 900;
    color: #0f172a;
    overflow-wrap: anywhere;
}
.tl-article-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #64748b;
    font-size: 0.98rem;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.tl-article-author {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: #0f172a;
    cursor: pointer;
    transition: 0.2s;
    background: #f1f5f9;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid rgba(14, 165, 233, 0.24);
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}
.tl-article-author:hover {
    background: #e0f2fe;
    color: #0369a1;
}
.tl-author-avatar {
    width: 32px;
    height: 32px;
    background: #0f172a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    font-size: 0.85rem;
    border: 1px solid rgba(56, 189, 248, 0.45);
    overflow: hidden;
    flex-shrink: 0;
}
.tl-meta-divider {
    color: rgba(100, 116, 139, 0.45);
}
.tl-article-meta a {
    color: var(--blue);
    font-weight: 700;
}

.tl-article-meta-link {
    font-weight: 800;
}

.tl-article-meta-link.is-current-version {
    color: #0f172a;
    background: #e0f2fe;
    border: 1px solid rgba(14, 165, 233, 0.24);
    border-radius: 999px;
    padding: 3px 10px;
}

/* Article Content Typography */
.tl-article-content {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    color: #1e293b;
    font-size: 1.08rem;
    line-height: 1.9;
    font-weight: 400;
    overflow-wrap: anywhere;
}
.tl-article-content > *:first-child {
    margin-top: 0;
}
.tl-article-content h2 {
    margin-top: 2.4em;
    margin-bottom: 0.8em;
    padding-left: 18px;
    border-left: 5px solid var(--blue);
    font-size: clamp(1.45rem, 3vw, 2rem);
    color: #0f172a;
    font-weight: 900;
}
.tl-article-content h3 {
    margin-top: 1.8em;
    margin-bottom: 0.6em;
    color: #0f172a;
    font-size: 1.35rem;
    font-weight: 800;
}
.tl-article-content p {
    margin: 1.1em 0;
}
.tl-article-content :where(p, li, div, span) {
    line-height: inherit;
}
.tl-article-content [style*="color:#fff"],
.tl-article-content [style*="color: #fff"],
.tl-article-content [style*="color:white"],
.tl-article-content [style*="color: white"],
.tl-article-content [style*="color:#F8FAFC"],
.tl-article-content [style*="color: #F8FAFC"] {
    color: #1e293b !important;
}
.tl-article-content [style*="background:#0"],
.tl-article-content [style*="background: #0"],
.tl-article-content [style*="background-color:#0"],
.tl-article-content [style*="background-color: #0"] {
    background: #f8fafc !important;
}
.tl-article-content a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1px dashed rgba(56, 189, 248, 0.45);
    transition: 0.2s;
}
.tl-article-content a:hover {
    color: #0369a1;
    border-bottom-style: solid;
    border-color: #0369a1;
}
.tl-article-content img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 22px;
    margin: 34px auto;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(226, 232, 240, 0.9);
}
.tl-article-content iframe {
    width: 100%;
    max-width: 860px;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 22px;
    display: block;
    margin: 34px auto;
}
.tl-article-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    margin: 1.2em 0;
}
.tl-article-content th,
.tl-article-content td {
    border: 1px solid rgba(148, 163, 184, 0.18);
    padding: 12px 14px;
}
.tl-article-content th {
    background: #e0f2fe;
    color: #0f172a;
}
.tl-article-content blockquote {
    background: #f8fafc;
    border-left: 5px solid var(--purple);
    margin: 1.8em 0;
    padding: 22px 26px;
    font-style: italic;
    color: #334155;
    border-radius: 0 20px 20px 0;
    box-shadow: inset 0 0 22px rgba(15, 23, 42, 0.04);
}

.tl-article-meta-row.article-seo-keywords-wrap {
    margin-bottom: 8px;
}
.article-seo-keywords-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.article-canonical-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 22px;
    font-size: 0.9rem;
}
.article-hero-card .article-canonical-row {
    margin-bottom: 0;
}
.article-canonical-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--blue);
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
    text-decoration: none;
    transition: 0.2s;
}
.article-canonical-pill:hover {
    background: rgba(56, 189, 248, 0.2);
}
.article-seo-cat-inline {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 0.78rem;
    color: var(--primary);
    border: 1px solid rgba(16, 185, 129, 0.35);
    background: rgba(16, 185, 129, 0.08);
}
.article-seo-kw-chip {
    font-size: 0.8rem;
    font-weight: 800;
    padding: 5px 11px;
    border-radius: 10px;
    background: rgba(56, 189, 248, 0.1);
    color: #0369a1;
    border: 1px solid rgba(56, 189, 248, 0.22);
}

@media (max-width: 640px) {
    .article-shell {
        padding: 20px 10px 72px;
    }
    .article-breadcrumbs {
        padding: 0 10px;
    }
    .article-hero-card,
    .article-reading-card {
        border-radius: 24px;
        padding: 22px 18px 28px;
    }
    .article-readable-surface {
        border-radius: 20px;
        padding: 22px 18px;
    }
    .article-hero-card {
        margin-bottom: 18px;
    }
}

/* ─── Article Interaction Blocks ─── */
.ai-widget-box {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.96));
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 24px;
    padding: 32px;
    margin-top: 48px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(168, 85, 247, 0.12);
    display: none;
}
.ai-widget-box.is-visible {
    display: block;
}
.ai-widget-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #38bdf8, #a855f7, #38bdf8);
}
.ai-widget-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.ai-widget-header h3 {
    margin: 0 0 6px;
    color: #f8fafc;
    font-size: 1.45rem;
    font-weight: 900;
}
.ai-widget-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.55;
}
.ai-widget-icon-wrap {
    background: rgba(168, 85, 247, 0.12);
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(168, 85, 247, 0.28);
    color: var(--purple);
    font-size: 1.65rem;
    flex-shrink: 0;
}
.ai-widget-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.ai-mini-card {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 22px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: 0.2s;
}
.ai-mini-card:hover {
    border-color: var(--purple);
    transform: translateY(-3px);
}
.ai-mini-card h4 {
    margin: 0 0 10px;
    color: #f8fafc;
    font-size: 1.12rem;
    font-weight: 800;
}
.ai-mini-card p {
    margin: 0 0 14px;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
    flex-grow: 1;
}
.ai-mini-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    padding-top: 12px;
    margin-top: auto;
}

.affiliate-share-box {
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.08), rgba(245, 158, 11, 0.02));
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 22px;
    padding: 28px;
    margin-top: 40px;
    text-align: center;
    box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.15);
}
.affiliate-share-box h3 {
    color: var(--warning);
    font-size: 1.38rem;
    margin: 0 0 12px;
    font-weight: 900;
}
.affiliate-share-box p {
    color: #e2e8f0;
    font-size: 1rem;
    margin: 0 auto 20px;
    line-height: 1.68;
    max-width: 600px;
}
.share-btn-group {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.share-btn {
    padding: 12px 22px;
    border-radius: 14px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
    cursor: pointer;
    border: none;
    font-size: 0.98rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.share-btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.08);
}
.btn-line {
    background: #06c755;
}
.btn-fb {
    background: #1877f2;
}
.btn-x {
    background: #000;
    border: 1px solid #333;
}
.btn-copy {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f8fafc;
}

.tl-interaction-section {
    margin-top: 52px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
}
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 36px;
    align-items: flex-start;
}
.btn-endorse {
    background: rgba(15, 23, 42, 0.55);
    border: 2px solid rgba(245, 158, 11, 0.45);
    color: var(--warning);
    padding: 14px 28px;
    border-radius: 999px;
    font-size: 1.05rem;
    font-weight: 900;
    cursor: pointer;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.btn-endorse:hover,
.btn-endorse.active {
    background: rgba(245, 158, 11, 0.15);
}
.btn-endorse.active {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    border-color: transparent;
}
.identity-selector {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 16px 20px;
    border-radius: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-bottom: 16px;
}
.identity-label-strong {
    color: var(--blue);
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 8px;
}
.id-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-muted);
}
.id-badge {
    background: #020617;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 0.82rem;
}
.endorsers-wall {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 36px;
    padding-left: 12px;
}
.endorser-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 3px solid #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    color: #38bdf8;
    font-size: 1.2rem;
    font-weight: 900;
    cursor: help;
    position: relative;
    margin-left: -12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
    transition: 0.2s;
}
.endorser-avatar:hover {
    z-index: 5;
    transform: translateY(-6px) scale(1.05);
}
.endorsers-heading {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 900;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.comments-area {
    background: rgba(15, 23, 42, 0.55);
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 32px;
    backdrop-filter: blur(10px);
}
.comments-area h3 {
    color: #f8fafc;
    font-size: 1.35rem;
    font-weight: 900;
    margin: 0 0 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.comment-input-box {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}
.comment-textarea {
    background: rgba(2, 6, 23, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    padding: 18px 20px;
    border-radius: 16px;
    resize: vertical;
    min-height: 110px;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: 0.2s;
}
.comment-textarea:focus {
    border-color: var(--blue);
}
.btn-submit-comment {
    background: linear-gradient(135deg, #38bdf8, #2563eb);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 900;
    cursor: pointer;
    align-self: flex-end;
    font-size: 1rem;
}
.comment-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.comment-item {
    display: flex;
    gap: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 22px;
    position: relative;
}
.comment-item:last-child {
    border-bottom: none;
}
.comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-weight: 900;
    flex-shrink: 0;
}
.comment-content h4 {
    margin: 0 0 6px;
    font-size: 1.05rem;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 8px;
}
.comment-content p.comment-text-body {
    white-space: pre-wrap;
    line-height: 1.65;
    color: #cbd5e1;
    margin: 0 0 8px;
}
.comment-time {
    font-size: 0.82rem;
    color: #64748b;
    font-family: ui-monospace, monospace;
}

.comment-menu-btn {
    position: absolute;
    top: 0;
    right: 0;
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 4px 8px;
}
.comment-menu-dropdown {
    position: absolute;
    top: 32px;
    right: 0;
    background: #020617;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: none;
    flex-direction: column;
    z-index: 30;
    min-width: 170px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}
.comment-menu-dropdown.show {
    display: flex;
}
.menu-action {
    background: transparent;
    border: none;
    color: #e2e8f0;
    padding: 12px 16px;
    text-align: left;
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 600;
}
.menu-action.danger {
    color: var(--danger);
}
.menu-action.warning {
    color: var(--warning);
}
.endorser-tooltip {
    visibility: hidden;
    width: max-content;
    max-width: 300px;
    background: rgba(15, 23, 42, 0.96);
    color: #f8fafc;
    border-radius: 10px;
    padding: 12px 16px;
    position: absolute;
    z-index: 20;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: 0.2s;
    font-size: 0.88rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
}
.endorser-avatar:hover .endorser-tooltip {
    visibility: visible;
    opacity: 1;
}

.related-articles-section {
    margin-top: 56px;
    padding-top: 44px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.related-articles-section h3 {
    color: #f8fafc;
    font-size: 1.45rem;
    font-weight: 900;
    margin: 0 0 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}
.related-card {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 120px;
    transition: 0.2s;
}
.related-card:hover {
    border-color: rgba(56, 189, 248, 0.35);
    transform: translateY(-3px);
}
.related-card h4 {
    margin: 0 0 10px;
    color: #f8fafc;
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.related-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    padding-top: 12px;
    font-size: 0.86rem;
    color: var(--text-muted);
    font-weight: 700;
    gap: 8px;
    flex-wrap: wrap;
}
.related-cat-pill {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(56, 189, 248, 0.1);
    color: var(--blue);
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 800;
    margin-bottom: 10px;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.state-container {
    text-align: center;
    padding: 80px 20px 100px;
}
.state-container h2 {
    color: #f8fafc;
    font-size: 1.45rem;
    font-weight: 900;
    margin: 0 0 8px;
}
.state-container p {
    color: var(--text-muted);
    font-size: 1rem;
    margin: 0;
    line-height: 1.6;
}
.state-container .state-icon {
    font-size: 3.2rem;
    margin-bottom: 16px;
    color: var(--blue);
}
.state-container .state-icon.is-spin {
    animation: spin 1s linear infinite;
}
.state-container .state-icon.is-error {
    color: var(--danger);
}
.btn-back-hall {
    display: inline-block;
    margin-top: 22px;
    padding: 12px 26px;
    background: var(--blue);
    color: #0f172a;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 900;
    transition: 0.2s;
}
.btn-back-hall:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
}
@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.is-open {
    display: flex;
}
.report-modal {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    width: 100%;
    max-width: 520px;
    padding: 32px;
    position: relative;
    overflow: hidden;
}
.report-modal::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ef4444, #f59e0b);
}
.report-modal h3 {
    margin: 0 0 10px;
    color: #ef4444;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 900;
}
.report-modal .report-lead {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 18px;
    line-height: 1.55;
}
.report-select,
.report-textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(2, 6, 23, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    border-radius: 12px;
    margin-bottom: 14px;
    font-size: 1rem;
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
}
.report-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.btn-modal-cancel {
    background: rgba(255, 255, 255, 0.06);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

/* ─── Profile Page ─── */
.profile-hero,
.brand-header {
    background: linear-gradient(135deg, #020617 0%, #0f172a 100%);
    border-bottom: 1px solid rgba(56, 189, 248, 0.12);
    text-align: center;
    padding: 48px 20px 40px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}
.profile-hero::before,
.brand-header::before {
    content: "";
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: min(820px, 160vw);
    height: min(820px, 160vw);
    background: radial-gradient(circle, rgba(56, 189, 248, 0.07) 0%, transparent 60%);
    pointer-events: none;
}
.profile-hero h1,
.brand-header h1 {
    margin: 0 0 12px;
    font-size: clamp(1.5rem, 4vw, 2.35rem);
    font-weight: 900;
    color: #f8fafc;
    position: relative;
    z-index: 2;
    line-height: 1.25;
}
.profile-hero p,
.brand-header p {
    color: var(--text-muted);
    font-size: 1.02rem;
    margin: 0;
    position: relative;
    z-index: 2;
    line-height: 1.6;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}
.profile-icon-title {
    color: var(--primary);
    margin-right: 8px;
}

.profile-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px 64px;
    position: relative;
    z-index: 2;
}

.profile-card,
.card-profile {
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(12px);
    border-radius: 22px;
    padding: 36px 32px 40px;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 36px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s;
}
.profile-card:hover,
.card-profile:hover {
    border-color: rgba(56, 189, 248, 0.2);
}
.verified-watermark {
    position: absolute;
    top: -36px;
    right: -36px;
    font-size: 12rem;
    color: rgba(16, 185, 129, 0.04);
    transform: rotate(-14deg);
    z-index: 0;
    pointer-events: none;
}

.profile-card-header,
.profile-header {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}
.profile-avatar,
.avatar-placeholder {
    width: 112px;
    height: 112px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.2rem;
    color: var(--blue);
    border: 2px solid rgba(56, 189, 248, 0.42);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
    flex-shrink: 0;
}
.profile-name-block,
.name-block h1 {
    margin: 0 0 6px;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    color: #f8fafc;
    font-weight: 900;
}
.name-block p,
.profile-name-block + p,
#p-title {
    margin: 0;
    color: var(--blue);
    font-size: 1.08rem;
    font-weight: 700;
}
.profile-bio,
.bio-section {
    margin-bottom: 24px;
    line-height: 1.78;
    font-size: 1.05rem;
    color: #cbd5e1;
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.14);
    padding: 22px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.tags-container.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}
.profile-tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.92rem;
}
.profile-tag i {
    color: var(--blue);
    font-size: 0.85rem;
}
.links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.ext-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.85);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
    transition: 0.2s;
}
.ext-link:hover {
    background: rgba(56, 189, 248, 0.12);
    color: var(--blue);
    border-color: var(--blue);
}

.profile-section-card,
.ai-store-section {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.95));
    border: 1px solid rgba(168, 85, 247, 0.32);
    border-radius: 22px;
    padding: 28px 28px 32px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}
.ai-store-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #38bdf8, #a855f7, #38bdf8);
}
.ai-store-header {
    margin-bottom: 20px;
}
.ai-store-title {
    font-size: 1.45rem;
    font-weight: 900;
    color: #f8fafc;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.ai-store-sub {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.55;
    margin: 0;
}
.ai-store-sub .hl {
    color: #f8fafc;
    font-weight: 800;
}

.skill-matrix.profile-section-card,
.skill-matrix {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.55);
    border-radius: 22px;
    padding: 28px;
    margin-bottom: 32px;
}
.skill-matrix-title {
    font-size: 1.35rem;
    font-weight: 900;
    color: #f8fafc;
    margin: 0 0 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-recent-list {
    margin-bottom: 32px;
}
.profile-recent-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 8px;
}
.profile-article-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-decoration: none;
    color: inherit;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    transition: border-color 0.2s, transform 0.2s;
}
.profile-article-card:hover {
    border-color: rgba(56, 189, 248, 0.35);
    transform: translateX(4px);
}
.profile-article-card h4 {
    margin: 0 0 6px;
    color: #f8fafc;
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.4;
}
.profile-article-card .sub {
    margin: 0;
    color: var(--blue);
    font-size: 0.9rem;
    font-weight: 600;
}
.profile-article-card .sub i {
    margin-right: 6px;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.profile-article-card .chev {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.22);
    color: var(--blue);
    flex-shrink: 0;
}
.profile-empty-hint {
    background: rgba(15, 23, 42, 0.4);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    padding: 32px;
    text-align: center;
    border-radius: 16px;
    color: var(--text-muted);
    font-size: 1rem;
}
.profile-lead-ghost {
    grid-column: 1 / -1;
    background: rgba(2, 6, 23, 0.75);
    border: 2px dashed rgba(168, 85, 247, 0.28);
    border-radius: 18px;
    padding: 32px 20px;
    text-align: center;
}
.ghost-icon-muted {
    font-size: 3rem;
    color: rgba(168, 85, 247, 0.45);
    margin-bottom: 16px;
    display: block;
}
.profile-lead-title {
    margin: 0 0 10px;
    color: #f8fafc;
    font-size: 1.35rem;
    font-weight: 900;
}
.profile-lead-copy {
    margin: 0 auto 22px;
    max-width: 520px;
    color: var(--text-muted);
    line-height: 1.68;
    font-size: 0.98rem;
}
.profile-lead-row {
    display: flex;
    max-width: 480px;
    margin: 0 auto;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.profile-lead-email {
    flex: 1;
    min-width: 220px;
    background: rgba(15, 23, 42, 0.88);
    color: #fff;
    border: 1px solid rgba(148, 163, 184, 0.25);
    padding: 12px 16px;
    border-radius: 12px;
    outline: none;
    font-size: 1rem;
}
.profile-lead-email:focus {
    border-color: rgba(168, 85, 247, 0.45);
}
.profile-lead-btn {
    background: linear-gradient(135deg, #a855f7, #7e22ce);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 900;
    font-size: 0.96rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.ai-grid-public.grid-layout {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.profile-recent-heading {
    font-size: 1.28rem;
    color: #f8fafc;
    margin: 0 0 18px;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 10px;
}
.profile-share-btn.share-btn {
    width: 100%;
    justify-content: center;
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.skill-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.skill-icon {
    background: rgba(56, 189, 248, 0.1);
    color: var(--blue);
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
    border: 1px solid rgba(56, 189, 248, 0.2);
}
.skill-text h4 {
    margin: 0 0 6px;
    font-size: 1.05rem;
    color: #f8fafc;
    font-weight: 800;
}
.skill-text p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.share-btn.profile-share-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px;
    border-radius: 18px;
    font-size: 1.05rem;
    font-weight: 900;
    cursor: pointer;
    transition: 0.2s;
}
.share-btn.profile-share-main:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.ec-badges.profile-badges-row {
    justify-content: flex-start;
}

/* ─── SSR helper (matches interactive article layout) ─── */
.dir-ssr-article-shell {
    max-width: 960px;
    margin: 0 auto;
    padding: 28px 20px 72px;
}
.ssr-banner-note {
    font-size: 0.82rem;
    color: #64748b;
    margin-top: 36px;
    text-align: center;
    line-height: 1.65;
}

/* ─── Mobile ─── */
@media (max-width: 820px) {
    .article-page-header-inner {
        align-items: flex-start;
        flex-direction: column;
    }
    .article-top-nav {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: thin;
    }
    .article-top-nav a {
        white-space: nowrap;
        flex: 0 0 auto;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 64px;
    }
    .dir-header {
        padding: 48px 16px 36px;
    }
    .dir-header.compact.article-page-header {
        padding: 24px 16px 22px;
    }

    .directory-page-menu {
        width: calc(100% - 24px);
        border-radius: 22px;
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 9px;
        scrollbar-width: none;
    }
    .directory-page-menu::-webkit-scrollbar {
        display: none;
    }
    .directory-page-menu__link {
        flex: 0 0 auto;
        font-size: 0.82rem;
        padding: 8px 12px;
    }

    .search-hint {
        display: none;
    }
    .search-input {
        font-size: 1rem;
        padding-left: 52px;
    }
    .filter-row {
        grid-template-columns: 1fr;
    }
    .main-tabs-container {
        flex-direction: column;
        align-items: stretch;
    }
    .main-tab-btn {
        justify-content: center;
    }
    .edu-container--premium {
        padding: 28px 18px 30px;
    }
    .edu-value-grid {
        grid-template-columns: 1fr;
    }
    .edu-list--marketing .edu-item {
        padding: 20px;
    }
    .edu-item {
        gap: 14px;
    }
    .edu-icon {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }
    .edu-cta-panel {
        flex-direction: column;
        align-items: stretch;
    }
    .edu-cta-actions {
        flex-basis: auto;
    }
    .article-shell {
        padding-left: 16px;
        padding-right: 16px;
        padding-bottom: 72px;
    }
    .tl-article-content {
        padding: 0;
        border-radius: 0;
        font-size: 1.02rem;
    }
    .tl-article-title {
        font-size: 1.75rem;
    }
    .profile-card-header,
    .profile-header {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }
    .ec-badges.profile-badges-row {
        justify-content: center;
    }
    .premium-cta-banner {
        margin-left: 16px;
        margin-right: 16px;
    }
}
/* ─── Article reader responsive polish ─── */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: 96px;
}

.article-page-header,
.article-directory-menu,
.article-shell,
.tl-article-wrapper,
.article-reading-card,
.article-readable-surface,
.tl-article-content {
    box-sizing: border-box;
}

.tl-article-content :where(figure, video, canvas, svg, pre, code) {
    max-width: 100%;
}
.tl-article-content :where(style, script) {
    display: none !important;
}
.tl-article-content [style] {
    max-width: 100% !important;
}
.tl-article-content :where(h1, h2, h3, p, li, figcaption, blockquote, td, th, a) {
    overflow-wrap: anywhere;
}

.tl-article-content figure {
    margin: 32px auto;
}

.tl-article-content pre {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: #0f172a !important;
    color: #e2e8f0 !important;
    border-radius: 18px;
    padding: 18px;
}

.tl-article-content :where(ul, ol) {
    padding-left: 1.35em;
}

@media (max-width: 1024px) {
    .article-page-header-inner,
    .article-shell,
    .dir-ssr-article-shell {
        width: min(100%, calc(100vw - 24px));
    }
    .article-shell,
    .dir-ssr-article-shell {
        padding-left: 12px;
        padding-right: 12px;
    }
    .article-hero-card,
    .tl-article-wrapper {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    html,
    body {
        overflow-x: hidden;
    }
    html {
        scroll-padding-top: 82px;
    }
    .dir-header.compact.article-page-header {
        padding: 18px 12px 16px;
    }
    .article-page-header-inner {
        width: 100%;
        gap: 14px;
    }
    .article-brand-link {
        width: 100%;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }
    .article-brand-subtitle {
        font-size: 0.78rem;
        white-space: normal;
        text-align: right;
    }
    .article-top-nav {
        gap: 8px;
        padding: 2px 0 8px;
        scroll-snap-type: x proximity;
    }
    .article-top-nav a {
        padding: 9px 12px;
        font-size: 0.82rem;
        scroll-snap-align: start;
    }
    .directory-page-menu.article-directory-menu {
        position: static;
        top: auto;
        width: calc(100% - 16px);
        margin: 10px auto 12px;
        border-radius: 18px;
        box-shadow: 0 10px 20px rgba(2, 6, 23, 0.2);
    }
    .main-tabs-container#article-tabs-bar {
        position: static;
        top: auto;
        z-index: auto;
        background: transparent;
        backdrop-filter: none;
        margin: 2px 0 8px;
        padding: 5px 8px;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        justify-content: flex-start;
        align-items: center;
        scrollbar-width: none;
    }
    .main-tabs-container#article-tabs-bar::-webkit-scrollbar {
        display: none;
    }
    .main-tabs-container#article-tabs-bar .main-tab-btn {
        flex: 0 0 auto;
        min-width: 0;
        padding: 8px 14px;
        font-size: 0.92rem;
        line-height: 1.2;
        justify-content: center;
        white-space: nowrap;
    }
    .main-tabs-container#article-tabs-bar .main-tab-btn:first-child {
        display: none;
    }
    .article-education-panel {
        width: calc(100% - 16px);
        margin: 0 auto 10px;
        padding: 10px 12px;
        border-radius: 14px;
        border: 1px solid rgba(148, 163, 184, 0.35);
        background: rgba(15, 23, 42, 0.55);
    }
    .article-education-panel summary {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
        font-size: 0.88rem;
        font-weight: 700;
        color: #cbd5e1;
    }
    .article-education-panel p {
        margin: 10px 0 0;
        font-size: 0.9rem;
        line-height: 1.6;
        color: #e2e8f0;
    }
    .article-shell,
    .dir-ssr-article-shell {
        width: 100%;
        padding: 8px 0 56px;
    }
    .article-hero-card,
    .article-reading-card {
        width: calc(100% - 2px);
        margin-left: auto;
        margin-right: auto;
        border-radius: 22px;
        padding: 16px 8px 20px;
        box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
    }
    .article-readable-surface {
        border-radius: 18px;
        padding: 16px;
        border-color: rgba(226, 232, 240, 0.72);
        box-shadow: none;
    }
    .article-breadcrumbs,
    .breadcrumbs {
        padding: 0;
        gap: 6px;
        font-size: 0.8rem;
        line-height: 1.5;
    }
    .article-breadcrumbs .crumb-sep,
    .breadcrumbs .crumb-sep {
        display: none;
    }
    .tl-article-header {
        margin-bottom: 20px;
        padding-bottom: 18px;
    }
    .tl-article-title {
        font-size: clamp(28px, 8vw, 34px);
        line-height: 1.18;
        margin-bottom: 16px;
        letter-spacing: -0.01em;
    }
    .tl-article-meta {
        display: grid;
        grid-template-columns: 1fr;
        gap: 9px;
        font-size: 0.9rem;
        margin-bottom: 14px;
    }
    .tl-article-meta .tl-meta-divider {
        display: none;
    }
    .tl-article-author {
        width: 100%;
        min-width: 0;
        padding: 8px 12px;
        justify-content: flex-start;
        white-space: normal;
    }
    .article-seo-keywords-row,
    .article-canonical-row {
        gap: 7px;
        margin-bottom: 12px;
    }
    .article-canonical-pill,
    .article-seo-cat-inline,
    .article-seo-kw-chip {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .tl-article-content {
        font-size: 17px;
        line-height: 1.75;
        letter-spacing: 0.01em;
        width: 100%;
        max-width: 100%;
    }
    .tl-article-content h2 {
        margin-top: 2em;
        padding-left: 12px;
        border-left-width: 4px;
        font-size: clamp(22px, 6vw, 28px);
        line-height: 1.25;
    }
    .tl-article-content h3 {
        font-size: clamp(1.16rem, 4.6vw, 1.35rem);
        line-height: 1.4;
    }
    .tl-article-content p {
        margin: 1em 0;
    }
    .tl-article-content img,
    .tl-article-content iframe,
    .tl-article-content video {
        border-radius: 16px;
        margin: 24px auto;
        max-width: 100%;
        height: auto;
    }
    .tl-article-content blockquote {
        margin: 1.4em 0;
        padding: 18px 16px;
        border-radius: 0 16px 16px 0;
    }
    .tl-article-content table {
        display: block;
        width: 100%;
        overflow-x: auto;
        font-size: 0.92rem;
    }
    .affiliate-share-box,
    .ai-widget-box,
    .comments-area,
    .related-articles-section {
        width: calc(100% - 16px);
        margin-left: auto;
        margin-right: auto;
    }
    .affiliate-share-box,
    .ai-widget-box,
    .comments-area {
        border-radius: 20px;
        padding: 16px 12px;
    }
    .share-btn-group {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .share-btn,
    .btn-endorse,
    .btn-submit-comment {
        width: 100%;
        justify-content: center;
        min-height: 44px;
    }
    .identity-selector {
        width: calc(100% - 16px);
        margin-left: auto;
        margin-right: auto;
        padding: 14px;
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }
    .id-checkbox-label {
        align-items: flex-start;
        line-height: 1.5;
    }
    .tl-interaction-section {
        margin-top: 36px;
        padding-top: 28px;
    }
    .action-buttons {
        width: calc(100% - 16px);
        margin-left: auto;
        margin-right: auto;
        align-items: stretch;
    }
    .endorsers-heading,
    .endorsers-wall {
        width: calc(100% - 16px);
        margin-left: auto;
        margin-right: auto;
    }
    .comments-area h3,
    .related-articles-section h3,
    .affiliate-share-box h3 {
        font-size: 1.18rem;
        line-height: 1.35;
    }
    .comment-textarea {
        min-height: 132px;
        font-size: 1rem;
        padding: 16px;
    }
    .btn-submit-comment {
        align-self: stretch;
    }
    .comment-item {
        gap: 12px;
        padding-right: 34px;
    }
    .comment-avatar {
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
    }
    .comment-content {
        min-width: 0;
    }
    .comment-content h4 {
        font-size: 0.98rem;
        flex-wrap: wrap;
        padding-right: 4px;
    }
    .comment-content p.comment-text-body {
        font-size: 0.98rem;
        overflow-wrap: anywhere;
    }
    .related-grid,
    .ai-widget-grid {
        grid-template-columns: 1fr;
    }
    .report-modal {
        max-height: calc(100vh - 32px);
        overflow: auto;
        padding: 24px 18px;
        border-radius: 20px;
    }
    .report-modal-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
}


@media (max-width: 420px) {
    .main-tabs-container#article-tabs-bar {
        top: 104px;
        padding: 5px 6px;
        gap: 6px;
    }
    .main-tabs-container#article-tabs-bar .main-tab-btn {
        padding: 7px 12px;
        font-size: 0.85rem;
        gap: 6px;
    }

    .article-brand-logo {
        font-size: 1.32rem;
    }
    .article-brand-subtitle {
        display: none;
    }
    .directory-page-menu__link {
        font-size: 0.78rem;
        padding: 8px 10px;
    }
    .article-hero-card,
    .article-reading-card,
    .affiliate-share-box,
    .ai-widget-box,
    .comments-area,
    .related-articles-section,
    .identity-selector,
    .action-buttons,
    .endorsers-heading,
    .endorsers-wall {
        width: calc(100% - 4px);
    }
    .article-readable-surface {
        padding: 15px 11px;
    }
    .share-btn-group {
        grid-template-columns: 1fr;
    }
    .tl-article-content {
        line-height: 1.82;
    }
    .comment-item {
        align-items: flex-start;
    }
}
