.wx-topic-page {
    --wx-green: #10b981;
    --wx-green-dark: #047857;
    --wx-green-soft: #ecfdf5;
    --wx-ink: #111827;
    --wx-muted: #5f6b7a;
    --wx-line: #e5e7eb;
    --wx-surface: #f8fafc;
    color: var(--wx-ink);
}

.wx-topic-hero {
    padding-block: clamp(3.8rem, 5.5vw, 6.4rem);
    background: radial-gradient(circle at 85% 20%, rgba(16,185,129,.10), transparent 30rem), linear-gradient(180deg,#fff 0%,#f8fffc 100%);
    border-bottom: 1px solid var(--wx-line);
}

.wx-topic-hero-inner,
.wx-topic-section-inner {
    width: min(112rem, calc(100% - 4rem));
    margin-inline: auto;
}

.wx-breadcrumbs { margin-bottom: clamp(2.8rem, 4vw, 4.2rem); }
.wx-breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin: 0; padding: 0; list-style: none; }
.wx-breadcrumbs li { color: var(--wx-muted); font-size: 1.4rem; line-height: 1.5; }
.wx-breadcrumbs a { color: var(--wx-green-dark); text-decoration: none; text-underline-offset: .22em; }
.wx-breadcrumbs a:hover { text-decoration: underline; }
.wx-breadcrumbs [aria-current="page"] { max-width: 40rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.wx-topic-kicker,
.wx-topic-section-kicker { margin: 0 0 1.2rem; color: var(--wx-green-dark); font-size: 1.25rem; font-weight: 750; line-height: 1.3; letter-spacing: .12em; text-transform: uppercase; }

.wx-topic-title { max-width: 92rem; margin: 0; font-size: clamp(3.8rem, 5.3vw, 6.4rem); font-weight: 780; line-height: 1.04; letter-spacing: -.042em; text-wrap: balance; }
.wx-topic-description { max-width: 76rem; margin: 2rem 0 0; color: var(--wx-muted); font-size: clamp(1.75rem, 1.8vw, 2.05rem); line-height: 1.55; }
.wx-topic-stats { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-top: 2rem; color: var(--wx-muted); font-size: 1.4rem; font-weight: 620; }

.wx-topic-section { padding-block: clamp(4.8rem, 6.5vw, 7.2rem); }
.wx-topic-section-heading { max-width: 76rem; margin-bottom: 3rem; }
.wx-topic-section-heading h2 { margin: 0; font-size: clamp(3rem, 4vw, 4.4rem); font-weight: 760; line-height: 1.12; letter-spacing: -.035em; text-wrap: balance; }
.wx-topic-section-heading > p:last-child { margin: 1.4rem 0 0; color: var(--wx-muted); font-size: 1.75rem; line-height: 1.6; }
.wx-topic-start { background: #fff; }

.wx-start-card { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); overflow: hidden; border: 1px solid rgba(16,185,129,.28); border-radius: 2.4rem; background: #fff; box-shadow: 0 2.4rem 6rem rgba(15,23,42,.08), 0 0 0 .1rem rgba(16,185,129,.04); }
.wx-start-image { display: block; min-height: 34rem; background: #0f2740; }
.wx-start-image img,
.wx-material-image img { width: 100%; height: 100%; object-fit: cover; }
.wx-start-content { display: flex; flex-direction: column; justify-content: center; padding: clamp(3rem,4.4vw,5.4rem); }
.wx-material-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; margin-bottom: 1.8rem; color: var(--wx-muted); font-size: 1.35rem; font-weight: 650; }
.wx-material-meta span:first-child { padding: .65rem 1.1rem; border-radius: 999px; color: var(--wx-green-dark); background: var(--wx-green-soft); }
.wx-start-content h3 { margin: 0; font-size: clamp(2.8rem,3.4vw,4.3rem); font-weight: 760; line-height: 1.12; letter-spacing: -.035em; text-wrap: balance; }
.wx-start-content h3 a,
.wx-material-content h3 a { color: inherit; text-decoration: none; }
.wx-start-content h3 a:hover,
.wx-material-content h3 a:hover { color: var(--wx-green-dark); }
.wx-start-content > p { margin: 1.8rem 0 0; color: var(--wx-muted); font-size: 1.7rem; line-height: 1.65; }
.wx-start-link { align-self: flex-start; margin-top: 2.8rem; padding: 1.2rem 1.7rem; border-radius: 999px; color: #fff; background: var(--wx-green-dark); font-size: 1.5rem; font-weight: 720; text-decoration: none; transition: transform 160ms ease, background-color 160ms ease; }
.wx-start-link:hover { color: #fff; background: #065f46; transform: translateY(-1px); }

.wx-topic-library { background: var(--wx-surface); border-top: 1px solid var(--wx-line); }
.wx-material-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 2.4rem; }
.wx-material-card { overflow: hidden; border: 1px solid var(--wx-line); border-radius: 1.8rem; background: #fff; box-shadow: 0 1rem 3rem rgba(15,23,42,.05); }
.wx-material-image { display: block; aspect-ratio: 16/9; overflow: hidden; background: #e5e7eb; }
.wx-material-image img { transition: transform 240ms ease; }
.wx-material-card:hover .wx-material-image img { transform: scale(1.025); }
.wx-material-content { padding: 2.4rem; }
.wx-material-content h3 { margin: 0; font-size: 2.15rem; font-weight: 730; line-height: 1.25; letter-spacing: -.02em; }
.wx-material-content > p { margin: 1.3rem 0 0; color: var(--wx-muted); font-size: 1.55rem; line-height: 1.6; }

.wx-topic-page a:focus-visible { outline: .3rem solid var(--wx-green); outline-offset: .35rem; border-radius: .35rem; }
.wx-start-link:focus-visible { outline-color: #111827; outline-offset: .4rem; }

@media (max-width: 900px) {
    .wx-start-card { grid-template-columns: 1fr; }
    .wx-start-image { min-height: 0; aspect-ratio: 16/9; }
    .wx-material-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 620px) {
    .wx-topic-hero-inner,
    .wx-topic-section-inner { width: min(100% - 2.8rem,112rem); }
    .wx-topic-hero { padding-block: 3.2rem 4.2rem; }
    .wx-breadcrumbs { margin-bottom: 2.6rem; }
    .wx-breadcrumbs [aria-current="page"] { max-width: 18rem; }
    .wx-topic-title { font-size: clamp(3.5rem,11vw,4.8rem); }
    .wx-topic-section { padding-block: 4.5rem; }
    .wx-start-card { border-radius: 1.8rem; }
    .wx-start-content { padding: 2.6rem 2.2rem 3rem; }
    .wx-material-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .wx-start-link,
    .wx-material-image img { transition: none; }
}
