:root {
    --topics-navy: #102b62;
    --topics-blue: #168ee5;
    --topics-blue-dark: #0874c8;
    --topics-pink: #f15386;
    --topics-pink-dark: #d8376d;
    --topics-gold: #ffbd2e;
    --topics-text: #183565;
    --topics-muted: #6a7fa3;
    --topics-line: #cfe0f5;
    --topics-surface: rgba(255, 255, 255, .96);
    --topics-shadow: 0 14px 34px rgba(52, 89, 147, .14);
}

body.community-topics-page {
    overflow-x: hidden;
    color: var(--topics-text);
    background: #eef7ff;
}

.community-topics-page *,
.community-topics-page *::before,
.community-topics-page *::after {
    box-sizing: border-box;
}

.community-topics-page button,
.community-topics-page input,
.community-topics-page textarea,
.community-topics-page select {
    font: inherit;
}

.community-topics-page .community-header {
    display: block;
    width: 100%;
    padding: 0;
}

.community-topics-page .community-header__inner {
    grid-template-columns: 220px minmax(0, 1fr) max-content;
    gap: clamp(12px, 1.4vw, 24px);
    width: calc(100% - 64px);
    max-width: none;
}

.community-topics-page .community-header__brand {
    width: 208px;
}

.community-topics-page .community-header__brand img {
    width: 208px;
    max-width: 100%;
}

.community-topics-page .community-nav {
    display: block;
    min-width: 0;
}

.community-topics-page .community-nav__links {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: clamp(2px, .45vw, 8px);
    white-space: nowrap;
}

.community-topics-page .community-nav__links > a {
    padding-inline: clamp(5px, .5vw, 9px);
    font-size: clamp(.7rem, .76vw, .82rem);
}

.community-topics-page .community-nav__mobile-actions {
    display: none;
}

.community-topics-page .community-header__actions {
    justify-self: end;
}

.community-topics-page .community-main {
    background:
        radial-gradient(circle at 8% 22%, rgba(255, 184, 220, .28), transparent 25rem),
        radial-gradient(circle at 92% 30%, rgba(104, 199, 255, .24), transparent 28rem),
        linear-gradient(180deg, #f9fcff 0, #eef7ff 34rem, #f5fbff 100%);
}

.topics-shell {
    width: min(var(--xl-content-max, 1180px), calc(100% - 32px));
    margin-inline: auto;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.topics-hero {
    position: relative;
    min-height: 410px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 12% 22%, rgba(255, 220, 107, .9) 0 2px, transparent 3px),
        radial-gradient(circle at 84% 18%, rgba(255, 180, 231, .9) 0 2px, transparent 3px),
        radial-gradient(circle at 65% 70%, rgba(171, 229, 255, .85) 0 2px, transparent 3px),
        linear-gradient(118deg, #082f9a 0%, #157be4 41%, #6c61e7 72%, #e267bd 118%);
}

.topics-hero::before {
    position: absolute;
    inset: 0;
    content: "";
    opacity: .68;
    pointer-events: none;
    background-image:
        radial-gradient(circle, rgba(255,255,255,.96) 0 1px, transparent 2px),
        radial-gradient(circle, rgba(255,218,92,.9) 0 1px, transparent 2px);
    background-position: 3px 4px, 31px 22px;
    background-size: 58px 58px, 83px 83px;
}

.topics-hero::after {
    position: absolute;
    right: -11%;
    bottom: -58%;
    width: 56vw;
    height: 56vw;
    min-width: 680px;
    min-height: 680px;
    content: "";
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 50%;
    box-shadow:
        0 0 0 45px rgba(255,255,255,.05),
        0 0 0 130px rgba(255,255,255,.04);
}

.topics-hero__inner {
    position: relative;
    z-index: 2;
    display: grid;
    min-height: 410px;
    grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr);
    align-items: center;
    gap: clamp(28px, 5vw, 72px);
    padding-block: 54px 72px;
}

.topics-hero__copy {
    max-width: 630px;
}

.topics-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 4px 14px;
    border: 1px solid rgba(255,255,255,.52);
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .16em;
    backdrop-filter: blur(8px);
}

.topics-hero h1 {
    margin: 12px 0 0;
    color: #fff;
    font-size: clamp(3.4rem, 6.2vw, 5.7rem);
    font-weight: 1000;
    line-height: .95;
    letter-spacing: -.07em;
    text-shadow:
        0 4px 0 rgba(8, 37, 119, .3),
        0 12px 30px rgba(5, 31, 107, .35);
}

.topics-hero h1 em {
    color: #ffdd62;
    font-style: normal;
    -webkit-text-stroke: 1px rgba(125, 67, 0, .25);
}

.topics-hero__lead {
    margin: 18px 0 8px !important;
    color: #fff !important;
    font-size: clamp(1.18rem, 2vw, 1.58rem) !important;
    font-weight: 950;
    letter-spacing: .04em;
}

.topics-hero__copy > p {
    max-width: 570px;
    margin: 0;
    color: rgba(255,255,255,.88);
    font-size: .98rem;
    font-weight: 700;
    line-height: 1.85;
}

.topics-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.topics-hero__stats span {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 7px 13px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 14px;
    background: rgba(8, 44, 137, .22);
    color: rgba(255,255,255,.86);
    font-size: .78rem;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.topics-hero__stats strong {
    color: #fff5a3;
    font-size: 1rem;
}

.topics-hero__visual {
    position: relative;
    min-height: 300px;
}

.topics-hero-card {
    position: absolute;
    overflow: hidden;
    border: 5px solid rgba(255,255,255,.88);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 22px 44px rgba(4, 29, 105, .38);
}

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

.topics-hero-card--one {
    z-index: 2;
    inset: 44px 38px 20px 26px;
    transform: rotate(-2.5deg);
}

.topics-hero-card--two {
    z-index: 1;
    top: 0;
    right: -12px;
    width: 54%;
    height: 46%;
    transform: rotate(5deg);
}

.topics-hero-card--three {
    z-index: 3;
    right: -10px;
    bottom: 0;
    width: 48%;
    height: 42%;
    transform: rotate(4deg);
}

.topics-hero-orbit {
    position: absolute;
    z-index: 5;
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 6px 13px;
    border: 2px solid #fff;
    border-radius: 999px;
    color: var(--topics-navy);
    background: #fff;
    font-size: .78rem;
    font-weight: 950;
    box-shadow: 0 8px 18px rgba(5, 31, 100, .25);
}

.topics-hero-orbit--one {
    top: 31px;
    left: 0;
    transform: rotate(-6deg);
}

.topics-hero-orbit--two {
    top: 46%;
    right: -5px;
    color: #9a396c;
    background: #fff2fa;
    transform: rotate(5deg);
}

.topics-hero-orbit--three {
    bottom: 6px;
    left: 12px;
    color: #795407;
    background: #fff5aa;
    transform: rotate(3deg);
}

.topics-discovery {
    position: relative;
    z-index: 5;
    padding-bottom: 58px;
}

.topics-degraded-notice {
    margin: 16px 0;
    padding: 12px 18px;
    border: 1px solid #f1d17b;
    border-radius: 14px;
    color: #62490a;
    background: #fff9d9;
    font-size: .88rem;
    font-weight: 800;
}

.topics-search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    margin-top: -38px;
    padding: 18px;
    border: 1px solid rgba(174, 207, 239, .9);
    border-radius: 25px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 18px 42px rgba(31, 79, 143, .19);
    backdrop-filter: blur(14px);
}

.topics-search-form {
    display: grid;
    min-width: 0;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    overflow: hidden;
    border: 1px solid #bddbf2;
    border-radius: 999px;
    background: #f9fcff;
    box-shadow: inset 0 2px 6px rgba(25, 82, 143, .06);
}

.topics-search-form > span {
    padding-left: 20px;
    color: #74a1c7;
    font-size: 1.4rem;
    font-weight: 900;
}

.topics-search-form input[type="search"] {
    width: 100%;
    min-width: 0;
    height: 52px;
    padding: 0 14px;
    border: 0;
    outline: 0;
    color: var(--topics-text);
    background: transparent;
    font-size: .95rem;
}

.topics-search-form input::placeholder {
    color: #8aa2c0;
}

.topics-search-form button {
    min-width: 112px;
    height: 44px;
    margin-right: 4px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(180deg, #38b9fa, #087fd4);
    font-weight: 950;
    letter-spacing: .08em;
    box-shadow: 0 5px 12px rgba(9, 126, 211, .28);
    cursor: pointer;
}

.topics-primary-actions {
    display: flex;
    gap: 10px;
}

.topics-action-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 20px;
    border: 2px solid;
    border-radius: 999px;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 950;
    white-space: nowrap;
    transition: transform .18s ease, box-shadow .18s ease;
}

.topics-action-button:hover,
.topics-action-button:focus-visible {
    transform: translateY(-2px);
}

.topics-action-button span {
    font-size: 1.2rem;
}

.topics-action-button--create {
    border-color: #ee4c81;
    color: #fff;
    background: linear-gradient(180deg, #ff7da7, #ee477d);
    box-shadow: 0 7px 16px rgba(234, 67, 121, .24);
}

.topics-action-button--mine {
    border-color: #87bfee;
    color: #15538f;
    background: #fff;
}

.topics-category-strip,
.topics-tag-strip {
    margin-top: 12px;
    border: 1px solid var(--topics-line);
    background: rgba(255,255,255,.9);
    box-shadow: 0 6px 18px rgba(44, 89, 147, .08);
}

.topics-category-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px;
    border-radius: 20px;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
}

.topics-category-strip a {
    display: inline-flex;
    min-height: 36px;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border: 1px solid #d9e6f5;
    border-radius: 999px;
    color: #496386;
    background: #fff;
    text-decoration: none;
    font-size: .78rem;
    font-weight: 900;
    scroll-snap-align: start;
}

.topics-category-strip a small {
    display: inline-grid;
    min-width: 21px;
    height: 21px;
    place-items: center;
    border-radius: 999px;
    color: #6782a5;
    background: #edf4fb;
    font-size: .65rem;
}

.topics-category-strip a.is-active {
    border-color: var(--topics-blue);
    color: #fff;
    background: linear-gradient(180deg, #39b4f5, #0c83d8);
    box-shadow: 0 5px 12px rgba(13, 131, 217, .22);
}

.topics-category-strip a.is-active small {
    color: var(--topics-blue-dark);
    background: #fff;
}

.topics-tag-strip {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    padding: 11px 16px;
    border-radius: 20px;
}

.topics-tag-strip h2 {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: var(--topics-navy);
    font-size: .92rem;
    white-space: nowrap;
}

.topics-tag-strip h2 img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.topics-tag-strip > div {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding-block: 2px;
    scrollbar-width: thin;
}

.topics-tag-strip a {
    flex: 0 0 auto;
    padding: 5px 12px;
    border: 1px solid #dce7f5;
    border-radius: 999px;
    color: #536c91;
    background: #f9fbff;
    text-decoration: none;
    font-size: .75rem;
    font-weight: 850;
}

.topics-tag-strip a:hover,
.topics-tag-strip a:focus-visible,
.topics-tag-strip a.is-active {
    border-color: #e98ab0;
    color: #a92d61;
    background: #fff0f7;
}

.topics-tag-strip a.topics-tag-clear {
    border-style: dashed;
    color: #9a5470;
}

.topics-featured-layout,
.topics-main-layout {
    display: grid;
    align-items: start;
    gap: 14px;
    margin-top: 14px;
}

.topics-featured-layout {
    grid-template-columns: minmax(0, 2.2fr) minmax(285px, 1fr);
}

.topics-main-layout {
    grid-template-columns: minmax(0, 2.2fr) minmax(285px, 1fr);
}

.topics-panel {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--topics-line);
    border-radius: 24px;
    background: var(--topics-surface);
    box-shadow: var(--topics-shadow);
}

.topics-featured-panel {
    padding: 16px 16px 18px;
    background:
        linear-gradient(rgba(255,255,255,.82), rgba(255,255,255,.96)),
        url("/assets/community/topics/v1/decor/panel-pink.svg") center / cover;
}

.topics-ranking-panel {
    padding: 16px;
    background:
        linear-gradient(rgba(255,255,255,.87), rgba(255,255,255,.97)),
        url("/assets/community/topics/v1/decor/panel-orange.svg") center / cover;
}

.topics-main-panel,
.topics-side-panel,
.topic-replies,
.topic-related,
.my-topics-panel {
    padding: 16px;
}

.topics-main-panel {
    background:
        linear-gradient(rgba(255,255,255,.92), rgba(255,255,255,.98)),
        url("/assets/community/topics/v1/decor/panel-blue.svg") center top / cover;
}

.topics-panel__heading {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.topics-panel__heading h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--topics-navy);
    font-size: 1.03rem;
    font-weight: 950;
}

.topics-panel__heading h2 img {
    width: 31px;
    height: 31px;
    object-fit: contain;
}

.topics-panel__heading h2 small {
    display: inline-grid;
    min-width: 25px;
    height: 25px;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: var(--topics-blue);
    font-size: .7rem;
}

.topics-carousel-controls {
    display: flex;
    gap: 5px;
}

.topics-carousel-controls button {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    padding: 0;
    border: 1px solid #a8d6f4;
    border-radius: 50%;
    color: #147dca;
    background: #fff;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.topics-featured-track {
    display: grid;
    grid-auto-columns: calc((100% - 30px) / 4);
    grid-auto-flow: column;
    gap: 10px;
    overflow-x: auto;
    padding: 2px 1px 8px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.topics-featured-track::-webkit-scrollbar {
    display: none;
}

.topics-featured-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #cfe0f4;
    border-radius: 17px;
    background: rgba(255,255,255,.97);
    box-shadow: 0 7px 16px rgba(50, 91, 147, .1);
    scroll-snap-align: start;
}

.topics-featured-card__cover {
    position: relative;
    display: block;
    aspect-ratio: 1.82 / 1;
    overflow: hidden;
    background: #e6f1ff;
}

.topics-featured-card__cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.topics-featured-card:hover .topics-featured-card__cover img {
    transform: scale(1.04);
}

.topics-featured-card__badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(180deg, #ff749e, #e93870);
    font-size: .63rem;
    font-weight: 950;
}

.topics-featured-card__body {
    padding: 10px 11px 11px;
}

.topics-card-kicker {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #7090b1;
    font-size: .64rem;
    font-weight: 850;
}

.topics-card-kicker > span {
    padding: 3px 7px;
    border-radius: 999px;
    color: #2772b4;
    background: #eaf6ff;
}

.topics-card-kicker > strong {
    padding: 3px 7px;
    border-radius: 999px;
    color: #b72e65;
    background: #ffecf5;
    font-size: .62rem;
}

.topics-card-kicker time {
    margin-left: auto;
}

.topics-featured-card h3 {
    margin: 8px 0 5px;
    font-size: .84rem;
    line-height: 1.42;
}

.topics-featured-card h3 a,
.topics-list-card h3 a {
    color: var(--topics-text);
    text-decoration: none;
}

.topics-featured-card h3 a:hover,
.topics-featured-card h3 a:focus-visible,
.topics-list-card h3 a:hover,
.topics-list-card h3 a:focus-visible {
    color: var(--topics-blue-dark);
    text-decoration: underline;
}

.topics-featured-card__body > p {
    display: -webkit-box;
    min-height: 2.8em;
    margin: 0;
    overflow: hidden;
    color: var(--topics-muted);
    font-size: .68rem;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.topics-featured-card footer {
    display: flex;
    gap: 8px;
    margin-top: 9px;
    color: #6c83a4;
    font-size: .62rem;
    font-weight: 800;
}

.topics-ranking-tabs,
.topics-panel__heading--tabs nav {
    display: flex;
    overflow: hidden;
    border: 1px solid #cfddf0;
    border-radius: 999px;
    background: #f2f6fc;
}

.topics-ranking-tabs {
    margin: -4px 0 10px;
}

.topics-ranking-tabs a,
.topics-panel__heading--tabs nav a {
    flex: 1;
    padding: 6px 10px;
    color: #6b83a5;
    text-align: center;
    text-decoration: none;
    font-size: .67rem;
    font-weight: 900;
    white-space: nowrap;
}

.topics-ranking-tabs a.is-active,
.topics-panel__heading--tabs nav a.is-active {
    color: #fff;
    background: linear-gradient(180deg, #79baf0, #3b83d3);
}

.topics-ranking-list,
.topics-hot-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.topics-ranking-list li {
    display: grid;
    grid-template-columns: 24px 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    padding: 7px 0;
    border-bottom: 1px solid #e8eef6;
}

.topics-ranking-list li:last-child {
    border-bottom: 0;
}

.topics-ranking-list__place {
    color: #5a7495;
    text-align: center;
    font-size: .8rem;
    font-weight: 1000;
}

.topics-ranking-list li:nth-child(-n+3) .topics-ranking-list__place {
    color: #e88916;
    font-size: 1rem;
}

.topics-ranking-list img {
    width: 38px;
    height: 38px;
    border: 2px solid #fff;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 1px #cbdcf0;
}

.topics-ranking-list div {
    min-width: 0;
}

.topics-ranking-list div a {
    display: block;
    overflow: hidden;
    color: #294a78;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .7rem;
    font-weight: 900;
}

.topics-ranking-list div small {
    display: block;
    overflow: hidden;
    color: #8a9bb5;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .58rem;
}

.topics-ranking-list li > strong {
    color: #7187a5;
    font-size: .62rem;
}

.topics-panel__heading--tabs {
    align-items: center;
}

.topics-panel__heading--tabs nav {
    flex: 0 0 auto;
}

.topics-panel__heading--tabs nav a {
    min-width: 62px;
}

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

.topics-list-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #c9dff2;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 7px 17px rgba(50, 88, 142, .1);
    transition: transform .18s ease, box-shadow .18s ease;
}

.topics-list-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 11px 24px rgba(50, 88, 142, .16);
}

.topics-list-card__cover {
    display: block;
    aspect-ratio: 3.58 / 1;
    overflow: hidden;
    background: #edf5ff;
}

.topics-list-card__cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .22s ease;
}

.topics-list-card:hover .topics-list-card__cover img {
    transform: scale(1.035);
}

.topics-list-card__body {
    padding: 10px 12px 11px;
}

.topics-list-card h3 {
    min-height: 2.72em;
    margin: 7px 0 5px;
    font-size: .85rem;
    line-height: 1.36;
}

.topics-list-card__body > p {
    display: -webkit-box;
    min-height: 2.8em;
    margin: 0;
    overflow: hidden;
    color: var(--topics-muted);
    font-size: .68rem;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.topics-mini-tags {
    display: flex;
    gap: 5px;
    overflow: hidden;
    margin-top: 7px;
}

.topics-mini-tags a {
    flex: 0 0 auto;
    padding: 2px 7px;
    border-radius: 999px;
    color: #6f5a9d;
    background: #f3efff;
    text-decoration: none;
    font-size: .6rem;
    font-weight: 850;
}

.topics-list-card footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 9px;
    color: #7087a7;
    font-size: .61rem;
    font-weight: 800;
}

.topics-list-card__author {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topics-list-card__author img {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    border: 1px solid #c5d9ee;
    border-radius: 50%;
    object-fit: cover;
}

.topics-open-link {
    margin-left: auto;
    padding: 5px 9px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(180deg, #38aefa, #1684d7);
    text-decoration: none;
    font-weight: 900;
    white-space: nowrap;
}

.topics-sidebar {
    display: grid;
    gap: 14px;
}

.topics-side-panel--authors {
    background:
        linear-gradient(rgba(255,255,255,.93), rgba(255,255,255,.98)),
        url("/assets/community/topics/v1/decor/panel-blue.svg") center / cover;
}

.topics-side-panel--hot {
    background:
        linear-gradient(rgba(255,255,255,.9), rgba(255,255,255,.97)),
        url("/assets/community/topics/v1/decor/panel-pink.svg") center / cover;
}

.topics-author-list {
    display: grid;
    gap: 7px;
}

.topics-author-row {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px solid #e4edf7;
}

.topics-author-row:last-child {
    border-bottom: 0;
}

.topics-author-row > img {
    width: 40px;
    height: 40px;
    border: 2px solid #fff;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 1px #c6dcf1;
}

.topics-author-row > div {
    min-width: 0;
}

.topics-author-row strong,
.topics-author-row span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topics-author-row strong {
    color: #264c7a;
    font-size: .73rem;
}

.topics-author-row span {
    margin-top: 2px;
    color: #8799b4;
    font-size: .6rem;
}

.topics-author-row form {
    margin: 0;
}

.topics-follow-button {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border: 1px solid #6eb7ec;
    border-radius: 999px;
    color: #087bc8;
    background: #fff;
    text-decoration: none;
    font-size: .63rem;
    font-weight: 900;
    white-space: nowrap;
    cursor: pointer;
}

.topics-follow-button.is-active {
    border-color: #df75a0;
    color: #a52b5c;
    background: #fff0f7;
}

.topics-hot-list li {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    padding: 8px 0;
    border-bottom: 1px solid #f1e5ec;
}

.topics-hot-list li:last-child {
    border-bottom: 0;
}

.topics-hot-list li > span {
    color: var(--topics-pink);
    font-size: .76rem;
    font-weight: 1000;
}

.topics-hot-list a {
    overflow: hidden;
    color: #3b4f74;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .68rem;
    font-weight: 850;
}

.topics-hot-list small {
    color: #9b7c8d;
    font-size: .56rem;
    white-space: nowrap;
}

.topics-empty-copy {
    margin: 16px 0;
    color: var(--topics-muted);
    text-align: center;
    font-size: .8rem;
}

.topics-empty-state {
    display: grid;
    min-height: 280px;
    place-items: center;
    align-content: center;
    padding: 36px;
    color: var(--topics-muted);
    text-align: center;
}

.topics-empty-state > span {
    color: var(--topics-gold);
    font-size: 2.4rem;
}

.topics-empty-state h3 {
    margin: 8px 0 4px;
    color: var(--topics-navy);
}

.topics-empty-state p {
    margin: 0 0 16px;
}

.topics-empty-state a,
.topic-login-cta {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(180deg, #3eb8f5, #0b80d3);
    text-decoration: none;
    font-weight: 900;
}

.topics-empty-state--compact {
    min-height: 150px;
}

.topics-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 18px;
}

.topics-pagination a {
    padding: 7px 14px;
    border: 1px solid #b9d8ee;
    border-radius: 999px;
    color: #1778bc;
    background: #fff;
    text-decoration: none;
    font-size: .75rem;
    font-weight: 900;
}

.topics-pagination span {
    color: #7185a2;
    font-size: .72rem;
    font-weight: 800;
}

.topics-cta {
    position: relative;
    display: flex;
    min-height: 105px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    overflow: hidden;
    margin-top: 16px;
    padding: 20px 32px;
    border: 2px solid rgba(255,255,255,.9);
    border-radius: 24px;
    color: #fff;
    background:
        radial-gradient(circle at 15% 25%, rgba(255,255,255,.92) 0 1px, transparent 2px),
        radial-gradient(circle at 77% 75%, rgba(255,222,103,.9) 0 2px, transparent 3px),
        linear-gradient(118deg, #096ed0, #258fef 48%, #7960e3);
    background-size: 47px 47px, 73px 73px, auto;
    box-shadow: 0 16px 30px rgba(35, 91, 169, .2);
}

.topics-cta > div {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topics-cta > div > span {
    display: grid;
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: #80540a;
    background: #ffde5f;
    font-size: 1.8rem;
    box-shadow: 0 0 0 6px rgba(255,255,255,.18);
}

.topics-cta h2 {
    margin: 0;
    color: #fff;
    font-size: 1.2rem;
}

.topics-cta p {
    margin: 4px 0 0;
    color: rgba(255,255,255,.84);
    font-size: .8rem;
}

.topics-cta > a {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border: 2px solid #f0aa14;
    border-radius: 999px;
    color: #664005;
    background: linear-gradient(180deg, #fff27e, #ffc32c);
    text-decoration: none;
    font-size: .88rem;
    font-weight: 1000;
    white-space: nowrap;
    box-shadow: 0 7px 15px rgba(38, 43, 111, .22);
}

.topics-cta > a strong {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #e88818;
}

/* Details */
.topic-details-shell,
.topic-form-shell,
.my-topics-shell {
    padding-block: 28px 58px;
}

.topic-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: #8192ac;
    font-size: .76rem;
    font-weight: 800;
}

.topic-breadcrumbs a {
    color: #207bc0;
    text-decoration: none;
}

.topic-detail-card {
    overflow: hidden;
    border: 1px solid var(--topics-line);
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--topics-shadow);
}

.topic-detail-header {
    padding: clamp(24px, 4vw, 48px) clamp(22px, 5vw, 60px) 24px;
    background:
        radial-gradient(circle at 90% 8%, rgba(255, 194, 223, .45), transparent 17rem),
        linear-gradient(135deg, #f8fcff, #eef7ff);
}

.topic-detail-header__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.topic-detail-header__meta a,
.topic-detail-header__meta span,
.topic-detail-tags a {
    padding: 5px 11px;
    border-radius: 999px;
    color: #2879b9;
    background: #e9f6ff;
    text-decoration: none;
    font-size: .72rem;
    font-weight: 900;
}

.topic-detail-header__meta span {
    color: #b33165;
    background: #ffedf5;
}

.topic-detail-header h1 {
    max-width: 900px;
    margin: 14px 0 8px;
    color: var(--topics-navy);
    font-size: clamp(1.9rem, 4vw, 3.2rem);
    line-height: 1.24;
    letter-spacing: -.035em;
}

.topic-detail-summary {
    max-width: 880px;
    margin: 0;
    color: #617796;
    font-size: 1rem;
    line-height: 1.8;
}

.topic-detail-author {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    margin-top: 22px;
}

.topic-detail-author > img {
    width: 50px;
    height: 50px;
    border: 3px solid #fff;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 1px #bdd6ed;
}

.topic-detail-author strong,
.topic-detail-author time {
    display: block;
}

.topic-detail-author strong {
    color: #294d78;
}

.topic-detail-author time {
    margin-top: 3px;
    color: #8496b1;
    font-size: .72rem;
}

.topic-detail-cover {
    margin: 0;
    padding: 0 clamp(22px, 5vw, 60px);
    background: linear-gradient(180deg, #eef7ff 0 50%, #fff 50%);
}

.topic-detail-cover img {
    display: block;
    width: 100%;
    max-height: 490px;
    aspect-ratio: 2.45 / 1;
    border-radius: 22px;
    object-fit: cover;
    box-shadow: 0 15px 30px rgba(34, 74, 132, .17);
}

.topic-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 24px clamp(22px, 5vw, 60px) 0;
}

.topic-detail-tags a {
    color: #735aa1;
    background: #f2efff;
}

.topic-detail-content {
    max-width: 920px;
    padding: 28px clamp(22px, 5vw, 60px) 38px;
    color: #344e72;
    font-size: 1rem;
    line-height: 2;
    white-space: pre-wrap;
}

.topic-detail-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px clamp(22px, 5vw, 60px);
    border-top: 1px solid #e2edf7;
    background: #f8fbff;
}

.topic-detail-stats {
    display: flex;
    gap: 18px;
}

.topic-detail-stats span {
    color: #7186a5;
    font-size: .74rem;
    font-weight: 800;
}

.topic-detail-stats strong {
    color: #294d78;
    font-size: .9rem;
}

.topic-detail-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.topic-detail-actions form {
    margin: 0;
}

.topic-action-button,
.topic-report > summary {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border: 1px solid #bdd5e9;
    border-radius: 999px;
    color: #3d6188;
    background: #fff;
    text-decoration: none;
    font-size: .73rem;
    font-weight: 900;
    cursor: pointer;
}

.topic-action-button.is-active {
    border-color: #ed8bad;
    color: #af2e61;
    background: #fff0f6;
}

.topic-report {
    position: relative;
}

.topic-report > summary {
    list-style: none;
}

.topic-report > summary::-webkit-details-marker {
    display: none;
}

.topic-report[open] > form {
    position: absolute;
    z-index: 10;
    right: 0;
    bottom: calc(100% + 10px);
    display: grid;
    width: 290px;
    gap: 10px;
    padding: 14px;
    border: 1px solid #d4e0ef;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(42, 73, 117, .2);
}

.topic-report form label {
    display: grid;
    gap: 5px;
    color: #607694;
    font-size: .7rem;
    font-weight: 850;
}

.topic-report select,
.topic-report textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #c9d8e9;
    border-radius: 9px;
    color: var(--topics-text);
    background: #fff;
    resize: vertical;
}

.topic-report form button {
    min-height: 34px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: #d84775;
    font-weight: 900;
}

.topic-replies,
.topic-related {
    margin-top: 16px;
    background: rgba(255,255,255,.97);
}

.topic-reply-list {
    display: grid;
    gap: 2px;
}

.topic-reply {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    padding: 16px 4px;
    border-bottom: 1px solid #e7eef6;
}

.topic-reply > img {
    width: 46px;
    height: 46px;
    border: 2px solid #fff;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 1px #c8dced;
}

.topic-reply header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.topic-reply strong {
    color: #2b517d;
    font-size: .82rem;
}

.topic-reply time {
    color: #91a0b6;
    font-size: .67rem;
}

.topic-reply p {
    margin: 7px 0 0;
    color: #4b6382;
    line-height: 1.7;
    white-space: pre-wrap;
}

.topic-reply-form {
    display: grid;
    gap: 8px;
    margin-top: 18px;
    padding: 16px;
    border: 1px solid #cee0ef;
    border-radius: 16px;
    background: #f8fbff;
}

.topic-reply-form > label {
    color: #294d78;
    font-weight: 900;
}

.topic-reply-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #bfd6e9;
    border-radius: 12px;
    color: var(--topics-text);
    background: #fff;
    line-height: 1.6;
    resize: vertical;
}

.topic-reply-form > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topic-reply-form > div span {
    color: #8797ad;
    font-size: .7rem;
}

.topic-reply-form button,
.topic-form-actions button {
    min-height: 39px;
    padding: 7px 16px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(180deg, #36acf1, #0b7dce);
    font-weight: 950;
    cursor: pointer;
}

.topic-login-cta {
    margin-top: 16px;
}

/* Create form */
.topic-form-shell {
    max-width: 930px;
}

.topic-form-hero {
    overflow: hidden;
    padding: 32px clamp(24px, 5vw, 48px);
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 26px;
    color: #fff;
    background:
        radial-gradient(circle at 82% 28%, rgba(255,225,111,.9) 0 2px, transparent 3px),
        radial-gradient(circle at 15% 74%, rgba(255,255,255,.9) 0 1px, transparent 2px),
        linear-gradient(125deg, #0e6ed0, #5b6be4 65%, #cb5db4);
    background-size: 65px 65px, 47px 47px, auto;
    box-shadow: 0 16px 34px rgba(38, 80, 153, .2);
}

.topic-form-hero > span,
.my-topics-header > div > span {
    font-size: .7rem;
    font-weight: 950;
    letter-spacing: .18em;
}

.topic-form-hero h1 {
    margin: 7px 0 5px;
    color: #fff;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.topic-form-hero p {
    margin: 0;
    color: rgba(255,255,255,.86);
}

.topic-create-form {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}

.topic-validation {
    color: #a42957;
    font-weight: 800;
}

.topic-validation:empty {
    display: none;
}

.topic-form-card {
    padding: clamp(20px, 4vw, 32px);
    border: 1px solid var(--topics-line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(50, 88, 142, .1);
}

.topic-form-card > header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.topic-form-card > header > span {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(145deg, #41b9f5, #3675da);
    font-size: .78rem;
    font-weight: 1000;
}

.topic-form-card:nth-of-type(2) > header > span {
    background: linear-gradient(145deg, #fb8bad, #d84983);
}

.topic-form-card:nth-of-type(3) > header > span {
    color: #674307;
    background: linear-gradient(145deg, #ffe16c, #f6a91d);
}

.topic-form-card h2 {
    margin: 0;
    color: var(--topics-navy);
    font-size: 1rem;
}

.topic-form-card header p {
    margin: 3px 0 0;
    color: #8193ac;
    font-size: .72rem;
}

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

.topic-form-grid__wide {
    grid-column: 1 / -1;
}

.topic-form-card > label,
.topic-form-grid > label {
    position: relative;
    display: grid;
    gap: 7px;
    margin-top: 14px;
    color: #3e5e83;
    font-size: .78rem;
    font-weight: 900;
}

.topic-form-grid > label {
    margin-top: 0;
}

.topic-form-card label > span:first-child strong {
    color: var(--topics-pink);
}

.topic-form-card input,
.topic-form-card select,
.topic-form-card textarea {
    width: 100%;
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid #c4d8eb;
    border-radius: 11px;
    outline: 0;
    color: var(--topics-text);
    background: #fbfdff;
    line-height: 1.5;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.topic-form-card input:focus,
.topic-form-card select:focus,
.topic-form-card textarea:focus {
    border-color: #58aee6;
    box-shadow: 0 0 0 3px rgba(53, 155, 223, .13);
}

.topic-form-card textarea {
    resize: vertical;
}

.topic-form-card label > small {
    justify-self: end;
    color: #8b9bb1;
    font-size: .66rem;
    font-weight: 700;
}

.topic-field-error {
    color: #bc2e5f;
    font-size: .68rem;
}

.topic-field-error:empty {
    display: none;
}

.topic-slug-field {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    overflow: hidden;
    border: 1px solid #c4d8eb;
    border-radius: 11px;
    background: #f2f7fc;
}

.topic-slug-field > span {
    padding-left: 12px;
    color: #7890aa;
    font-size: .72rem;
    font-weight: 700;
}

.topic-slug-field input {
    border: 0;
    border-radius: 0;
    background: #fff;
}

.topic-suggested-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
}

.topic-suggested-tags > span {
    color: #7389a5;
    font-size: .68rem;
    font-weight: 900;
}

.topic-suggested-tags button {
    padding: 5px 10px;
    border: 1px solid #d5dff0;
    border-radius: 999px;
    color: #6c5b99;
    background: #f6f2ff;
    font-size: .68rem;
    font-weight: 850;
    cursor: pointer;
}

.topic-cover-upload > input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.topic-cover-upload__surface {
    display: grid;
    min-height: 112px;
    place-items: center;
    align-content: center;
    padding: 20px;
    border: 2px dashed #b6d5eb;
    border-radius: 16px;
    color: #3476a8;
    background: #f6fbff;
    text-align: center;
    cursor: pointer;
}

.topic-cover-upload__surface small {
    margin-top: 4px;
    color: #8196ad;
    font-size: .68rem;
}

.topic-cover-preview {
    position: relative;
    overflow: hidden;
    margin-top: 12px;
    border-radius: 16px;
}

.topic-cover-preview img {
    display: block;
    width: 100%;
    max-height: 300px;
    object-fit: cover;
}

.topic-cover-preview button {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 6px 10px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: rgba(24, 48, 83, .82);
    font-size: .7rem;
    font-weight: 900;
}

.topic-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 4px;
}

.topic-form-actions > a {
    color: #6f84a1;
    text-decoration: none;
    font-size: .8rem;
    font-weight: 850;
}

.topic-form-actions button {
    min-height: 46px;
    padding-inline: 22px;
    box-shadow: 0 8px 18px rgba(14, 124, 203, .22);
}

/* My topics */
.my-topics-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 30px clamp(24px, 5vw, 48px);
    border-radius: 26px;
    color: #fff;
    background:
        radial-gradient(circle at 78% 28%, rgba(255,226,117,.9) 0 2px, transparent 3px),
        linear-gradient(120deg, #0d75d3, #5e6ce6 65%, #d160b4);
    background-size: 69px 69px, auto;
    box-shadow: 0 16px 34px rgba(38, 80, 153, .2);
}

.my-topics-header h1 {
    margin: 6px 0 4px;
    color: #fff;
    font-size: clamp(1.7rem, 4vw, 2.7rem);
}

.my-topics-header p {
    margin: 0;
    color: rgba(255,255,255,.85);
}

.my-topics-header > a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 8px 18px;
    border: 2px solid #ffbf2e;
    border-radius: 999px;
    color: #634008;
    background: #ffe46d;
    text-decoration: none;
    font-weight: 950;
    white-space: nowrap;
}

.my-topics-tabs {
    display: flex;
    gap: 7px;
    margin: 16px 0 10px;
    padding: 6px;
    border: 1px solid var(--topics-line);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(50, 88, 142, .08);
}

.my-topics-tabs button {
    flex: 1;
    min-height: 40px;
    border: 0;
    border-radius: 999px;
    color: #657c9d;
    background: transparent;
    font-weight: 900;
    cursor: pointer;
}

.my-topics-tabs button.is-active {
    color: #fff;
    background: linear-gradient(180deg, #41b8f4, #1685d8);
}

.my-topics-tabs button span {
    display: inline-grid;
    min-width: 24px;
    height: 24px;
    place-items: center;
    margin-left: 5px;
    border-radius: 999px;
    color: inherit;
    background: rgba(255,255,255,.18);
    font-size: .7rem;
}

.my-topics-panel {
    display: none;
    background: rgba(255,255,255,.97);
}

.my-topics-panel.is-active {
    display: block;
}

@media (max-width: 1179px) {
    .community-topics-page .community-header__inner {
        grid-template-columns: minmax(190px, 1fr) auto auto;
        width: min(100% - 32px, 1120px);
    }

    .community-topics-page .community-nav {
        position: static;
        display: block;
    }

    .community-topics-page .community-menu-toggle {
        display: grid;
    }

    .community-topics-page .community-nav__links {
        position: absolute;
        z-index: 105;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 7px;
        padding: 14px max(20px, calc((100% - 960px) / 2));
        border-bottom: 1px solid #cde9fa;
        background: rgba(255,255,255,.99);
        box-shadow: 0 12px 20px rgba(14,74,145,.12);
        white-space: normal;
    }

    .community-topics-page .community-nav.is-open .community-nav__links,
    .community-topics-page .community-nav__links.is-open {
        display: grid;
    }

    .topics-hero__inner {
        grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr);
    }
}

@media (max-width: 980px) {
    .topics-hero {
        min-height: 390px;
    }

    .topics-hero__inner {
        min-height: 390px;
        grid-template-columns: minmax(0, 1fr) 330px;
        gap: 22px;
    }

    .topics-hero__copy > p:not(.topics-hero__lead) {
        max-width: 480px;
        font-size: .88rem;
    }

    .topics-hero__visual {
        min-height: 260px;
    }

    .topics-search-panel {
        grid-template-columns: 1fr;
    }

    .topics-primary-actions {
        justify-content: center;
    }

    .topics-featured-layout,
    .topics-main-layout {
        grid-template-columns: 1fr;
    }

    .topics-ranking-panel {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px 18px;
    }

    .topics-ranking-panel .topics-panel__heading {
        grid-column: 1 / -1;
        margin-bottom: 0;
    }

    .topics-ranking-tabs {
        align-self: start;
        margin: 0;
    }

    .topics-ranking-list {
        grid-row: span 2;
    }

    .topics-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .community-topics-page .community-header__inner {
        grid-template-columns: minmax(145px, 1fr) auto auto;
        width: min(100% - 24px, 680px);
    }

    .community-topics-page .community-header__brand {
        width: 174px;
    }

    .community-topics-page .community-header__brand img {
        width: 174px;
    }

    .community-topics-page .community-nav__links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 12px;
    }

    .community-topics-page .community-nav__mobile-actions {
        display: contents;
    }

    .topics-shell {
        width: min(100% - 22px, 680px);
    }

    .topics-hero {
        min-height: 520px;
    }

    .topics-hero__inner {
        min-height: 520px;
        grid-template-columns: 1fr;
        align-content: center;
        gap: 18px;
        padding-block: 40px 68px;
    }

    .topics-hero__copy {
        position: relative;
        z-index: 4;
        text-align: center;
    }

    .topics-hero h1 {
        font-size: clamp(3.35rem, 15vw, 5rem);
    }

    .topics-hero__lead {
        font-size: 1.14rem !important;
    }

    .topics-hero__copy > p {
        margin-inline: auto;
    }

    .topics-hero__stats {
        justify-content: center;
    }

    .topics-hero__visual {
        width: min(100%, 390px);
        min-height: 185px;
        margin-inline: auto;
    }

    .topics-hero-card--one {
        inset: 15px 46px 5px 18px;
    }

    .topics-hero-card--two {
        right: 1px;
        width: 47%;
        height: 49%;
    }

    .topics-hero-card--three {
        width: 42%;
        height: 44%;
    }

    .topics-hero-orbit--one {
        top: 4px;
    }

    .topics-search-panel {
        margin-top: -28px;
        padding: 12px;
        border-radius: 20px;
    }

    .topics-search-form button {
        min-width: 82px;
    }

    .topics-action-button {
        flex: 1;
        padding-inline: 12px;
    }

    .topics-tag-strip {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .topics-featured-track {
        grid-auto-columns: calc((100% - 10px) / 2);
    }

    .topics-ranking-panel {
        display: block;
    }

    .topics-ranking-tabs {
        margin-bottom: 8px;
    }

    .topics-list-grid,
    .topics-sidebar {
        grid-template-columns: 1fr;
    }

    .topics-panel__heading--tabs {
        align-items: flex-start;
        flex-direction: column;
    }

    .topics-panel__heading--tabs nav {
        width: 100%;
    }

    .topics-cta {
        align-items: flex-start;
        flex-direction: column;
        padding: 20px;
    }

    .topics-cta > a {
        align-self: stretch;
        justify-content: center;
    }

    .topic-detail-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .topic-detail-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .topic-detail-author {
        grid-template-columns: 46px minmax(0, 1fr);
    }

    .topic-detail-author > form,
    .topic-detail-author > .topics-follow-button {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .topic-detail-cover img {
        aspect-ratio: 1.8 / 1;
    }

    .topic-form-grid {
        grid-template-columns: 1fr;
    }

    .topic-form-grid__wide {
        grid-column: auto;
    }

    .topic-slug-field {
        grid-template-columns: 1fr;
    }

    .topic-slug-field > span {
        padding-block: 7px;
    }

    .my-topics-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .my-topics-header > a {
        align-self: stretch;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .topics-shell {
        width: min(100% - 18px, 460px);
    }

    .topics-hero {
        min-height: 545px;
    }

    .topics-hero__inner {
        min-height: 545px;
        padding-top: 32px;
    }

    .topics-eyebrow {
        font-size: .6rem;
        letter-spacing: .1em;
    }

    .topics-hero__copy > p:not(.topics-hero__lead) {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    .topics-hero__stats span {
        padding-inline: 9px;
        font-size: .68rem;
    }

    .topics-search-form {
        grid-template-columns: auto minmax(0, 1fr);
        border-radius: 16px;
    }

    .topics-search-form button {
        grid-column: 1 / -1;
        width: calc(100% - 8px);
        margin: 0 4px 4px;
    }

    .topics-search-form input[type="search"] {
        height: 46px;
    }

    .topics-primary-actions {
        gap: 7px;
    }

    .topics-action-button {
        min-height: 43px;
        font-size: .76rem;
    }

    .topics-category-strip a {
        padding-inline: 12px;
    }

    .topics-featured-track {
        grid-auto-columns: 88%;
    }

    .topics-main-panel,
    .topics-side-panel,
    .topic-replies,
    .topic-related,
    .my-topics-panel,
    .topics-featured-panel,
    .topics-ranking-panel {
        padding: 12px;
        border-radius: 18px;
    }

    .topics-list-card footer {
        flex-wrap: wrap;
    }

    .topics-open-link {
        margin-left: 0;
    }

    .topics-cta > div > span {
        width: 44px;
        height: 44px;
    }

    .topics-cta h2 {
        font-size: 1rem;
    }

    .topic-details-shell,
    .topic-form-shell,
    .my-topics-shell {
        padding-block: 18px 40px;
    }

    .topic-detail-header,
    .topic-detail-cover,
    .topic-detail-tags,
    .topic-detail-content,
    .topic-detail-footer {
        padding-inline: 16px;
    }

    .topic-detail-card {
        border-radius: 20px;
    }

    .topic-detail-header h1 {
        font-size: 1.72rem;
    }

    .topic-detail-stats {
        gap: 10px;
    }

    .topic-action-button,
    .topic-report > summary {
        min-height: 34px;
        padding-inline: 9px;
    }

    .topic-report[open] > form {
        position: fixed;
        z-index: 130;
        right: 12px;
        bottom: 12px;
        left: 12px;
        width: auto;
    }

    .topic-reply {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 9px;
    }

    .topic-reply > img {
        width: 38px;
        height: 38px;
    }

    .topic-reply header {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    .topic-form-card {
        padding: 18px 14px;
        border-radius: 18px;
    }

    .topic-form-actions {
        align-items: stretch;
        flex-direction: column-reverse;
        text-align: center;
    }

    .my-topics-tabs {
        border-radius: 17px;
    }

    .my-topics-tabs button {
        font-size: .75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .topics-featured-track {
        scroll-behavior: auto;
    }

    .topics-featured-card__cover img,
    .topics-list-card,
    .topics-list-card__cover img,
    .topics-action-button {
        transition: none;
    }
}
