/* A CUTE PET STORY 4.3.31 — dynamic Topic Hub page template with automatic article filters. */
.puainta-topic-hub-page {
    overflow-x: clip;
}

.topic-hub {
    --topic-ink: #071b55;
    --topic-orange: #ff6708;
    --topic-cream: #fff8f1;
    --topic-line: #e6ddd2;
    --topic-muted: #626b7a;
    color: var(--topic-ink);
    background: #fff;
    font-size: 16px;
    line-height: 1.55;
}

.topic-hub *,
.topic-hub *::before,
.topic-hub *::after {
    box-sizing: border-box;
}

.topic-hub-shell {
    width: min(1540px, calc(100% - 64px));
    margin-inline: auto;
}

.topic-hub a {
    color: inherit;
    text-decoration: none;
}

.topic-hub h1,
.topic-hub h2,
.topic-hub h3,
.topic-hub p {
    margin-top: 0;
}

.topic-hub h1,
.topic-hub h2,
.topic-hub h3 {
    color: var(--topic-ink);
    letter-spacing: -.025em;
}

.topic-hub .ui-icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.topic-hub-hero {
    padding: 22px 0 30px;
    border-bottom: 1px solid #eee6dc;
    background: linear-gradient(115deg, #fffaf5 0%, #fff 52%, #fff8f0 100%);
}

.topic-hub-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: 20px;
    color: #5d6674;
    font-size: 13px;
}

.topic-hub-breadcrumb a:hover {
    color: var(--topic-orange);
}

.topic-hub-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(500px, .95fr);
    gap: clamp(36px, 5vw, 86px);
    align-items: center;
}

.topic-hub-hero__copy h1 {
    max-width: 820px;
    margin-bottom: 16px;
    font-size: clamp(46px, 4.2vw, 72px);
    line-height: 1.02;
}

.topic-hub-hero__copy > p {
    max-width: 820px;
    margin-bottom: 24px;
    color: #566071;
    font-size: clamp(17px, 1.25vw, 21px);
    line-height: 1.65;
}

.topic-hub-hero__media img {
    display: block;
    width: 100%;
    height: clamp(330px, 29vw, 470px);
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 16px 42px rgba(39, 27, 13, .10);
}

.topic-hub-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.topic-hub-trust > span {
    display: grid;
    grid-template-columns: 30px auto;
    grid-template-rows: auto auto;
    min-width: 190px;
    padding: 12px 15px;
    border: 1px solid var(--topic-line);
    border-radius: 12px;
    background: #fff;
}

.topic-hub-trust svg {
    grid-row: 1 / 3;
    align-self: center;
    color: var(--topic-orange);
}

.topic-hub-trust b {
    font-size: 14px;
}

.topic-hub-trust small {
    color: #6e7480;
    font-size: 11px;
}

.topic-hub-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    align-items: start;
    padding-block: 32px 42px;
}

.topic-hub-primary {
    min-width: 0;
}

.topic-hub-primary > section,
.topic-hub-primary > article {
    margin-bottom: 24px;
}

.topic-hub-topics > header {
    margin-bottom: 16px;
}

.topic-hub-topics > header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2px;
    font-size: clamp(28px, 2.2vw, 38px);
}

.topic-hub-topics > header h2 svg {
    width: 30px;
    height: 30px;
    color: var(--topic-orange);
}

.topic-hub-topics > header p {
    margin: 0 0 0 40px;
    color: var(--topic-muted);
    font-size: 15px;
}

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

.topic-hub-topic {
    display: flex;
    min-height: 365px;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--topic-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(30, 27, 20, .045);
    transition: transform .2s ease, box-shadow .2s ease;
}

.topic-hub-topic:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(30, 27, 20, .09);
}

.topic-hub-topic__image {
    display: block;
    height: 190px;
    overflow: hidden;
}

.topic-hub-topic__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.topic-hub-topic:hover img {
    transform: scale(1.025);
}

.topic-hub-topic__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 15px 17px 16px;
}

.topic-hub-topic__body strong {
    margin-bottom: 7px;
    font-size: 20px;
    line-height: 1.18;
}

.topic-hub-topic__body > span {
    color: #596272;
    font-size: 14px;
    line-height: 1.55;
}

.topic-hub-topic__body b {
    margin-top: auto;
    padding-top: 14px;
    color: var(--topic-orange);
    font-size: 14px;
}

.topic-hub-topic__body em {
    margin-left: 8px;
    font-style: normal;
}

.topic-hub-featured {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr);
    overflow: hidden;
    border: 1px solid var(--topic-line);
    border-radius: 15px;
    background: #fff;
}

.topic-hub-featured__image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 310px;
    object-fit: cover;
}

.topic-hub-featured__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 26px 30px;
}

.topic-hub-featured__body > span {
    margin-bottom: 8px;
    color: var(--topic-orange);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.topic-hub-featured__body h2 {
    margin-bottom: 9px;
    font-size: clamp(27px, 2vw, 36px);
    line-height: 1.08;
}

.topic-hub-featured__body p {
    margin-bottom: 14px;
    color: #5c6574;
}

.topic-hub-featured__body > div {
    display: flex;
    gap: 18px;
    color: #66707e;
}

.topic-hub-button {
    align-self: flex-start;
    margin-top: 18px;
    padding: 10px 18px;
    border-radius: 999px;
    color: #fff !important;
    background: var(--topic-orange);
    font-weight: 800;
}

.topic-hub-quick h2,
.topic-hub-methods > h2,
.topic-hub-latest > header h2,
.topic-hub-faq > h2 {
    margin-bottom: 10px;
    font-size: 24px;
}

.topic-hub-quick > div {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.topic-hub-quick a {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 14px;
    border: 1px solid var(--topic-line);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
}

.topic-hub-quick a span {
    color: var(--topic-orange);
}

.topic-hub-knowledge {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 18px 20px;
    border: 1px solid #cddcf2;
    border-radius: 13px;
    background: linear-gradient(115deg, #edf5ff, #f9fcff);
}

.topic-hub-knowledge > i {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #123d90;
}

.topic-hub-knowledge h2 {
    margin-bottom: 2px;
    font-size: 19px;
}

.topic-hub-knowledge p {
    margin: 0;
    color: #4f5c70;
    font-size: 13px;
}

.topic-hub-knowledge > a {
    padding: 9px 15px;
    border: 1px solid #9bb0d2;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    font-weight: 800;
}

.topic-hub-methods > div {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.topic-hub-methods a {
    display: flex;
    min-height: 185px;
    flex-direction: column;
    align-items: center;
    padding: 18px 14px;
    border: 1px solid var(--topic-line);
    border-radius: 12px;
    text-align: center;
}

.topic-hub-methods i {
    color: var(--topic-orange);
}

.topic-hub-methods i svg {
    width: 39px;
    height: 39px;
}

.topic-hub-methods strong {
    margin: 8px 0 4px;
    font-size: 16px;
}

.topic-hub-methods a > span {
    color: #616b79;
    font-size: 12px;
}

.topic-hub-methods b {
    margin-top: auto;
    color: var(--topic-orange);
    font-size: 12px;
}

.topic-hub-methods em {
    font-style: normal;
}

.topic-hub-latest > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topic-hub-latest > header > a {
    color: var(--topic-orange);
    font-weight: 800;
}

.topic-hub-latest > div {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.topic-hub-latest article {
    overflow: hidden;
    border: 1px solid var(--topic-line);
    border-radius: 12px;
    background: #fff;
}

.topic-hub-latest__image {
    display: block;
    height: 145px;
}

.topic-hub-latest__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.topic-hub-latest article > div {
    padding: 12px 13px 14px;
}

.topic-hub-latest h3 {
    margin-bottom: 6px;
    font-size: 16px;
    line-height: 1.2;
}

.topic-hub-latest p {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 8px;
    color: #5f6876;
    font-size: 12px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.topic-hub-latest small {
    display: block;
    margin-bottom: 8px;
    color: #7a8088;
    font-size: 11px;
}

.topic-hub-latest article > div > a {
    color: var(--topic-orange);
    font-size: 12px;
    font-weight: 800;
}

.topic-hub-faq {
    overflow: hidden;
    border: 1px solid var(--topic-line);
    border-radius: 12px;
    background: #fff;
}

.topic-hub-faq > h2 {
    padding: 14px 16px 5px;
}

.topic-hub-faq details {
    border-top: 1px solid #eee7df;
}

.topic-hub-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    cursor: pointer;
    font-weight: 750;
    list-style: none;
}

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

.topic-hub-faq summary span {
    color: var(--topic-orange);
    font-size: 20px;
}

.topic-hub-faq details[open] summary span {
    transform: rotate(45deg);
}

.topic-hub-faq details p {
    margin: 0;
    padding: 0 16px 15px;
    color: #5d6674;
}

.topic-hub-editorial {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(420px, .75fr);
    gap: 20px;
    align-items: center;
    padding: 17px 20px;
    border: 1px solid var(--topic-line);
    border-radius: 12px;
    background: var(--topic-cream);
}

.topic-hub-editorial h2 {
    margin-bottom: 3px;
    font-size: 18px;
}

.topic-hub-editorial p {
    margin: 0;
    color: #5b6472;
    font-size: 13px;
}

.topic-hub-editorial > div:last-child {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.topic-hub-editorial span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
}

.topic-hub-editorial svg {
    color: var(--topic-orange);
}

.topic-hub-sidebar {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 16px;
}

.topic-hub-card {
    padding: 18px;
    border: 1px solid var(--topic-line);
    border-radius: 13px;
    background: #fff;
}

.topic-hub-card > h2 {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
    font-size: 20px;
}

.topic-hub-card > h2 svg {
    color: var(--topic-orange);
}

.topic-hub-popular ol {
    padding: 0;
    margin: 0;
    list-style: none;
}

.topic-hub-popular li {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid #eee7df;
}

.topic-hub-popular li > span {
    color: var(--topic-orange);
    font-weight: 900;
}

.topic-hub-popular li a {
    display: block;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.3;
}

.topic-hub-popular li small {
    color: #7b818a;
    font-size: 10px;
}

.topic-hub-text-link {
    display: inline-block;
    margin-top: 12px;
    color: var(--topic-orange) !important;
    font-size: 12px;
    font-weight: 800;
}

.topic-hub-browse > a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 0;
    color: #4e5868;
    font-size: 13px;
}

.topic-hub-browse > a svg {
    width: 16px;
    color: var(--topic-orange);
}

.topic-hub-product-list a {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid #eee7df;
}

.topic-hub-product-list a > span,
.topic-hub-product-list img {
    width: 54px;
    height: 45px;
    object-fit: contain;
}

.topic-hub-product-list strong {
    font-size: 12px;
}

.topic-hub-product-list small {
    color: var(--topic-orange);
    font-size: 11px;
}

.topic-hub-external-products .topic-hub-product-list small {
    max-width: 92px;
    overflow-wrap: anywhere;
    text-align: right;
}

.topic-hub-newsletter {
    text-align: center;
    background: var(--topic-cream);
}

.topic-hub-newsletter > h2 {
    justify-content: center;
    margin-bottom: 2px;
    color: #5a2b14;
    font-size: 24px;
}

.topic-hub-newsletter p {
    color: #69707a;
    font-size: 12px;
}

.topic-hub-newsletter form {
    display: grid;
    gap: 8px;
}

.topic-hub-newsletter input,
.topic-hub-newsletter button,
.topic-hub-newsletter-mobile input,
.topic-hub-newsletter-mobile button {
    width: 100%;
    min-height: 42px;
    border-radius: 999px;
    font: inherit;
}

.topic-hub-newsletter input,
.topic-hub-newsletter-mobile input {
    border: 1px solid var(--topic-line);
    padding: 0 15px;
    background: #fff;
    font-size: 14px;
}

.topic-hub-newsletter button,
.topic-hub-newsletter-mobile button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    color: #fff;
    background: var(--topic-orange);
    font-weight: 800;
    cursor: pointer;
}

.topic-hub-newsletter small,
.topic-hub-newsletter-mobile small {
    display: block;
    margin-top: 9px;
    color: #777d86;
    font-size: 9px;
}

.topic-hub-mobile-only {
    display: none;
}

@media (max-width: 1180px) {
    .topic-hub-shell {
        width: min(1180px, calc(100% - 40px));
    }

    .topic-hub-hero__grid {
        grid-template-columns: minmax(0, 1fr) minmax(420px, .9fr);
        gap: 34px;
    }

    .topic-hub-page-grid {
        grid-template-columns: minmax(0, 1fr) 290px;
    }

    .topic-hub-latest > div {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 780px) {
    .topic-hub {
        font-size: 16px;
    }

    .topic-hub-shell {
        width: calc(100% - 28px);
    }

    .topic-hub-hero {
        padding: 15px 0 18px;
    }

    .topic-hub-breadcrumb {
        gap: 6px;
        margin-bottom: 12px;
        font-size: 11px;
    }

    .topic-hub-breadcrumb a,
    .topic-hub-breadcrumb span {
        max-width: 46vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .topic-hub-hero__grid {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .topic-hub-hero__copy h1 {
        margin-bottom: 10px;
        font-size: clamp(32px, 9.5vw, 42px);
        line-height: 1.04;
    }

    .topic-hub-hero__copy > p {
        margin-bottom: 15px;
        font-size: 16px;
        line-height: 1.55;
    }

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

    .topic-hub-trust > span {
        display: flex;
        min-width: 0;
        min-height: 64px;
        align-items: center;
        justify-content: center;
        gap: 5px;
        padding: 8px 5px;
        text-align: center;
    }

    .topic-hub-trust svg {
        flex: 0 0 17px;
        width: 17px;
    }

    .topic-hub-trust b {
        font-size: 10px;
        line-height: 1.15;
    }

    .topic-hub-trust small {
        display: none;
    }

    .topic-hub-hero__media {
        width: 100%;
    }

    .topic-hub-hero__media img {
        width: 100%;
        height: 245px;
        border-radius: 14px;
    }

    .topic-hub-page-grid {
        display: block;
        padding-block: 20px 24px;
    }

    .topic-hub-primary > section,
    .topic-hub-primary > article {
        margin-bottom: 18px;
    }

    .topic-hub-topics > header h2 {
        gap: 7px;
        font-size: 24px;
        line-height: 1.15;
    }

    .topic-hub-topics > header h2 svg {
        width: 24px;
        height: 24px;
    }

    .topic-hub-topics > header p {
        margin-left: 31px;
        font-size: 13px;
    }

    .topic-hub-topic-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .topic-hub-topic {
        display: grid;
        min-height: 0;
        grid-template-columns: 38% minmax(0, 1fr);
        border-radius: 12px;
    }

    .topic-hub-topic__image {
        height: 142px;
    }

    .topic-hub-topic__body {
        min-width: 0;
        padding: 12px;
    }

    .topic-hub-topic__body strong {
        font-size: 17px;
    }

    .topic-hub-topic__body > span {
        display: -webkit-box;
        overflow: hidden;
        font-size: 12px;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    .topic-hub-topic__body b {
        padding-top: 5px;
        font-size: 12px;
    }

    .topic-hub-featured {
        grid-template-columns: 42% minmax(0, 1fr);
        border-radius: 12px;
    }

    .topic-hub-featured__image img {
        min-height: 250px;
    }

    .topic-hub-featured__body {
        padding: 13px;
    }

    .topic-hub-featured__body > span {
        font-size: 9px;
    }

    .topic-hub-featured__body h2 {
        font-size: 19px;
    }

    .topic-hub-featured__body p {
        display: -webkit-box;
        overflow: hidden;
        margin-bottom: 6px;
        font-size: 12px;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 4;
    }

    .topic-hub-featured__body > div {
        flex-wrap: wrap;
        gap: 3px 8px;
        font-size: 10px;
    }

    .topic-hub-button {
        margin-top: 8px;
        padding: 8px 12px;
        font-size: 11px;
    }

    .topic-hub-quick h2,
    .topic-hub-methods > h2,
    .topic-hub-latest > header h2,
    .topic-hub-faq > h2 {
        font-size: 20px;
    }

    .topic-hub-quick > div {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .topic-hub-quick a {
        min-height: 44px;
        padding: 8px 12px;
    }

    .topic-hub-knowledge {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 10px;
        padding: 14px;
    }

    .topic-hub-knowledge > i {
        width: 40px;
        height: 40px;
    }

    .topic-hub-knowledge > a {
        grid-column: 2;
        justify-self: start;
    }

    .topic-hub-methods > div {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .topic-hub-methods a {
        min-height: 160px;
        padding: 13px 8px;
    }

    .topic-hub-latest > div {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .topic-hub-latest article {
        display: grid;
        grid-template-columns: 38% minmax(0, 1fr);
    }

    .topic-hub-latest__image {
        height: 100%;
        min-height: 145px;
    }

    .topic-hub-latest h3 {
        font-size: 16px;
    }

    .topic-hub-latest p {
        -webkit-line-clamp: 2;
    }

    .topic-hub-mobile-only {
        display: block;
    }

    .topic-hub-primary > .topic-hub-mobile-only {
        margin-bottom: 18px;
    }

    .topic-hub-mobile-only .topic-hub-card + .topic-hub-card {
        margin-top: 12px;
    }

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

    .topic-hub-editorial {
        gap: 12px;
        padding: 15px;
    }

    .topic-hub-editorial > div:last-child {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .topic-hub-newsletter-mobile {
        width: calc(100% - 28px);
        margin: 0 auto 24px;
        padding: 18px;
        border: 1px solid var(--topic-line);
        border-radius: 13px;
        text-align: center;
        background: var(--topic-cream);
    }

    .topic-hub-newsletter-mobile h2 {
        margin-bottom: 3px;
        color: #5a2b14;
        font-size: 24px;
    }

    .topic-hub-newsletter-mobile p {
        color: #656d78;
        font-size: 13px;
    }

    .topic-hub-newsletter-mobile form {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
    }

    .topic-hub-newsletter-mobile button {
        width: auto;
        min-width: 110px;
        padding-inline: 18px;
    }
}

@media (max-width: 430px) {
    .topic-hub-shell {
        width: calc(100% - 22px);
    }

    .topic-hub-hero__media img {
        height: 220px;
    }

    .topic-hub-featured {
        grid-template-columns: 41% minmax(0, 1fr);
    }

    .topic-hub-featured__body {
        padding: 11px;
    }

    .topic-hub-featured__body h2 {
        font-size: 17px;
    }

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

    .topic-hub-newsletter-mobile button {
        width: 100%;
    }
}
