/* --- popular searches (internal link hub) -------------------------------- */
.hm-links-box {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 0;
    border: 1px solid var(--hm-line);
    border-radius: 24px;
    background: #fff;
    overflow: hidden;
}
.hm-links-tabs {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px;
    border-right: 1px solid var(--hm-line);
    background: var(--hm-soft);
}
.hm-ltab {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 46px;
    padding: 0 12px;
    border: 0;
    border-radius: 13px;
    background: transparent;
    color: var(--hm-text);
    font-family: var(--hm-font);
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.hm-ltab:hover {
    background: rgba(255, 255, 255, 0.7);
}
.hm-ltab[aria-selected="true"] {
    background: #fff;
    color: var(--hm-red);
    box-shadow: 0 2px 10px -4px rgba(35, 32, 31, 0.2);
}
.hm-ltab-ic {
    display: inline-flex;
    color: var(--hm-muted);
}
.hm-ltab[aria-selected="true"] .hm-ltab-ic {
    color: var(--hm-red);
}
.hm-ltab-n {
    margin-left: auto;
    min-width: 26px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #fff;
    color: var(--hm-muted);
    font-size: 11.5px;
    font-weight: 800;
    text-align: center;
}
.hm-ltab[aria-selected="true"] .hm-ltab-n {
    background: var(--hm-tint);
    color: var(--hm-red);
}
.hm-links-panel {
    padding: 22px 26px;
}
.hm-links-box > .hm-links-panel:only-child,
.hm-links-box > .hm-links-panel:first-child {
    grid-column: 1 / -1;
}
.hm-links-tabs + .hm-links-panel,
.hm-links-tabs ~ .hm-links-panel {
    grid-column: 2;
    grid-row: 1;
}
.hm-links-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.hm-links-list a {
    position: relative;
    display: block;
    padding: 9px 12px 9px 18px;
    overflow: hidden;
    border-radius: 10px;
    color: var(--hm-text);
    font-size: 14px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}
.hm-links-list a::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 50%;
    width: 9px;
    height: 9px;
    margin-top: -4.5px;
    background: #d3cdca;
    -webkit-mask: url("../../../../img/web/home/zr-star.svg") center / contain no-repeat;
    mask: url("../../../../img/web/home/zr-star.svg") center / contain no-repeat;
    transition: background 0.15s, transform 0.3s;
}
.hm-links-list a:hover {
    background: var(--hm-soft);
    color: var(--hm-red);
}
.hm-links-list a:hover::before {
    background: var(--hm-red);
    transform: rotate(45deg);
}

/* --- long-form SEO article -------------------------------------------- */
.hm-article-wrap {
    max-width: 920px;
    margin: 0 auto;
}
.hm-article {
    position: relative;
}
.hm-article.is-collapsible:not(.is-open) {
    max-height: 420px;
    overflow: hidden;
}
.hm-article-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 180px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 88%);
    pointer-events: none;
}
.hm-article.is-open .hm-article-fade {
    display: none;
}
.hm-article-lead {
    margin: 12px 0 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--hm-muted);
}
.hm-article-body {
    margin-top: 18px;
    font-size: 15.5px;
    line-height: 1.8;
    color: var(--hm-text);
}
.hm-article-body h2 {
    margin: 30px 0 10px;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--hm-ink);
}
.hm-article-body h3 {
    margin: 24px 0 8px;
    font-size: 19px;
    font-weight: 600;
    color: var(--hm-ink);
}
.hm-article-body p {
    margin: 0 0 14px;
}
.hm-article-body a {
    color: var(--hm-red);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(216, 41, 28, 0.3);
    text-underline-offset: 3px;
}
.hm-article-body a:hover {
    text-decoration-color: var(--hm-red);
}
.hm-article-body ul,
.hm-article-body ol {
    margin: 0 0 14px;
    padding-left: 22px;
}
.hm-article-more {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 46px;
    margin: 18px auto 0;
    padding: 0 22px;
    border: 1.5px solid var(--hm-line);
    border-radius: 999px;
    background: #fff;
    color: var(--hm-ink);
    font-family: var(--hm-font);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}
.hm-article-more:hover {
    border-color: var(--hm-red);
    color: var(--hm-red);
}
.hm-article-more .hm-svg {
    transition: transform 0.25s;
}
.hm-article-more[aria-expanded="true"] .hm-svg {
    transform: rotate(180deg);
}

@media (max-width: 1199px) {
    .hm-links-box {
        grid-template-columns: minmax(0, 1fr);
    }
    .hm-links-tabs {
        flex-direction: row;
        overflow-x: auto;
        border-right: 0;
        border-bottom: 1px solid var(--hm-line);
    }
    .hm-ltab {
        width: auto;
        flex: none;
    }
    .hm-links-tabs ~ .hm-links-panel {
        grid-column: 1;
        grid-row: auto;
    }
    .hm-links-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
