.hpt-wrapper > .hpt-item {
    padding: var(--uht-item-spacing, 26px) 0;
}

.hpt-wrapper > .hpt-item + .hpt-item {
    border-top: 1px solid #e7e7e7;
}

.hpt-wrapper > .hpt-item--block {
    border-top: 1px solid #e1e1e1;
    border-bottom: 1px solid #e1e1e1;
    padding-top: 28px;
    padding-bottom: 28px;
}

.hpt-wrapper > .hpt-item--block + .hpt-item {
    border-top: none;
}

.hpt-featured-block {
    padding: 0;
    width: 100%;
    max-width: min(100%, var(--uht-featured-max-width, 1080px));
    margin-inline: auto;
    min-width: 0;
}

.hpt-featured-block--tint-neutral,
.hpt-featured-block--tint-accent,
.hpt-featured-block--tint-contrast {
    padding: 18px clamp(14px, 2vw, 20px);
    border: 1px solid transparent;
    border-radius: 22px;
}

.hpt-featured-block--tint-neutral {
    background: color-mix(in srgb, var(--uht-meta-color, currentColor) 4%, white);
    border-color: color-mix(in srgb, var(--uht-meta-color, currentColor) 10%, white);
}

.hpt-featured-block--tint-accent {
    background: color-mix(in srgb, var(--uht-accent-color, currentColor) 5%, white);
    border-color: color-mix(in srgb, var(--uht-accent-color, currentColor) 12%, white);
}

.hpt-featured-block--tint-contrast {
    background: color-mix(in srgb, var(--uht-title-color, currentColor) 3%, white);
    border-color: color-mix(in srgb, var(--uht-title-color, currentColor) 9%, white);
}

.hpt-featured-block-grid,
.hpt-featured-compact-list {
    display: grid;
    gap: var(--uht-block-gap, 24px);
}

.hpt-featured-block--stack .hpt-featured-block-grid,
.hpt-featured-block--compact-list .hpt-featured-compact-list,
.hpt-featured-block--lead-grid .hpt-featured-magazine-grid,
.hpt-featured-block--lead-side-list .hpt-featured-block-grid,
.hpt-featured-block--opinion-list .hpt-featured-compact-list {
    width: 100%;
    max-width: min(100%, var(--uht-featured-inner-max-width, 1040px));
    margin-inline: auto;
}

.hpt-block-heading {
    position: relative;
    display: inline-block;
    margin: 0 0 28px;
    padding-bottom: 12px;
    color: var(--uht-title-color, inherit);
}

.hpt-block-heading::before {
    content: '';
    position: absolute;
    right: 0;
    left: 0;
    bottom: 0;
    height: 1px;
    background: var(--uht-heading-rule-color, #d9d9d9);
}

.hpt-block-heading::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 54px;
    height: 3px;
    border-radius: 99px;
    background: var(--uht-accent-color, currentColor);
}

.hpt-featured-entry-title {
    margin: 0 0 10px;
    color: var(--uht-title-color, inherit);
}

.hpt-featured-entry-title a {
    color: var(--uht-title-color, inherit);
    text-decoration: none;
}

.hpt-featured-block--stack .hpt-featured-block-grid {
    grid-template-columns: 1fr;
}

.hpt-featured-stack-list {
    gap: 18px;
}

.hpt-featured-stack-card {
    display: grid;
    grid-template-columns: minmax(220px, .9fr) minmax(0, 1.1fr);
    gap: 22px;
    align-items: center;
    padding: 18px;
    border: 1px solid #ececec;
    border-radius: 16px;
    background: #fff;
}

.hpt-featured-stack-card .hpt-thumb-small img {
    width: 100%;
    height: var(--uht-featured-stack-image-height, 220px);
    object-fit: cover;
    border-radius: calc(var(--uht-image-radius, 10px) + 2px);
}

.hpt-featured-stack-card .hpt-featured-entry-title {
    margin-bottom: 10px;
}

.hpt-featured-stack-card .hpt-featured-excerpt {
    margin: 0 0 12px;
    color: var(--uht-excerpt-color, inherit);
    line-height: 1.7;
}

.hpt-featured-magazine-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    direction: ltr;
    align-items: start;
    min-width: 0;
}

.hpt-featured-hero-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    grid-column: 2 / 4;
    direction: rtl;
}

.hpt-featured-hero-card .hpt-thumb-small img {
    width: 100%;
    height: var(--uht-featured-lead-grid-main-image-height, 210px);
    object-fit: cover;
    border-radius: calc(var(--uht-image-radius, 10px) + 2px);
}

.hpt-featured-hero-card .hpt-content {
    padding-top: 4px;
}

.hpt-featured-hero-card .hpt-featured-entry-title {
    margin-bottom: 8px;
}

.hpt-featured-hero-card .hpt-featured-excerpt {
    margin: 0 0 10px;
    color: var(--uht-excerpt-color, inherit);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.hpt-featured-subcard {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: start;
    min-width: 0;
    width: 100%;
    direction: rtl;
}

.hpt-featured-subcard .hpt-thumb-small img {
    width: 100%;
    height: var(--uht-featured-lead-grid-side-image-height, 82px);
    object-fit: cover;
    border-radius: var(--uht-image-radius, 10px);
}

.hpt-featured-subcard .hpt-featured-entry-title {
    margin-bottom: 4px;
    font-size: .95em;
    font-weight: 700;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.hpt-featured-subcard .hpt-meta {
    gap: 5px;
}

.hpt-featured-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.hpt-featured-compact-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
    border: 1px solid #ececec;
    border-radius: 16px;
    background: #fff;
}

.hpt-featured-compact-card .hpt-thumb-small img {
    width: 100%;
    height: var(--uht-featured-compact-image-height, 180px);
    object-fit: cover;
    border-radius: 0;
}

.hpt-featured-compact-card .hpt-content {
    padding: 0 16px 16px;
}

.hpt-featured-compact-card .hpt-featured-entry-title {
    margin-bottom: 10px;
    font-size: .98em;
    font-weight: 700;
}

.hpt-featured-block--lead-side-list .hpt-featured-block-grid {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.hpt-featured-block--lead-side-list .hpt-featured-side-list {
    display: grid;
    gap: 0;
    order: 2;
    align-content: start;
    border-top: 1px solid #ececec;
}

.hpt-featured-block--lead-side-list .hpt-featured-side-item {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 10px 0;
    border-bottom: 1px solid #ececec;
}

.hpt-featured-block--lead-side-list .hpt-featured-side-item .hpt-thumb-small img {
    width: 100%;
    height: var(--uht-side-image-height, 40px);
    object-fit: cover;
    border-radius: var(--uht-image-radius, 10px);
}

.hpt-featured-block--lead-side-list .hpt-featured-side-title {
    margin: 0 0 6px;
    font-size: .92em;
    font-weight: 700;
}

.hpt-featured-block--lead-side-list .hpt-featured-side-title a {
    color: var(--uht-title-color, inherit);
    text-decoration: none;
}

.hpt-featured-block--lead-side-list .hpt-featured-side-item .hpt-meta {
    gap: 6px;
}

.hpt-featured-block--lead-side-list .hpt-featured-side-item .hpt-author img.avatar {
    width: 20px;
    height: 20px;
}

.hpt-featured-block--lead-side-list .hpt-featured-lead {
    order: 1;
    justify-self: end;
    width: 100%;
    max-width: 520px;
}

.hpt-featured-block--lead-side-list .hpt-featured-lead .hpt-thumb-small img {
    width: 100%;
    height: var(--uht-lead-image-height, 185px);
    object-fit: cover;
    border-radius: var(--uht-image-radius, 10px);
}

.hpt-featured-block--lead-side-list .hpt-featured-lead .hpt-featured-entry-title {
    margin-top: 14px;
    margin-bottom: 12px;
}

.hpt-featured-block--lead-side-list .hpt-featured-lead .hpt-featured-excerpt {
    margin: 0 0 10px;
    color: var(--uht-excerpt-color, inherit);
    line-height: 1.7;
}

.hpt-featured-block--lead-side-list .hpt-featured-lead .hpt-meta {
}

.hpt-featured-block--opinion-list .hpt-featured-compact-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 28px;
}

.hpt-featured-block--opinion-list .hpt-featured-entry {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.hpt-featured-block--opinion-list .hpt-thumb-opinion {
    display: block;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
}

.hpt-featured-block--opinion-list .hpt-thumb-opinion img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hpt-featured-block--opinion-list .hpt-featured-entry-title {
    margin-bottom: 6px;
    font-size: .95em;
    font-weight: 700;
}

.hpt-featured-block--opinion-list .hpt-meta {
    gap: 8px;
}

.hpt-featured-block--opinion-list .hpt-author {
    gap: 0;
}

.hpt-featured-block--opinion-list .hpt-author img.avatar {
    width: 24px;
    height: 24px;
}

.hpt-shell {
    width: 100%;
    min-width: 0;
}

.hpt-shell,
.hpt-shell * {
    box-sizing: border-box;
}

.hpt-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 28px;
    row-gap: var(--uht-grid-gap, 44px);
    width: 100%;
    margin: 0;
    align-items: start;
}

.hpt-item {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
}

.hpt-large,
.hpt-small {
    grid-column: 1 / -1;
}

.hpt-thumb {
    display: block;
    overflow: hidden;
}

.hpt-item img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.hpt-thumb-large {
    margin-bottom: 16px;
}

.hpt-large img {
    height: var(--uht-large-image-height, 360px);
    border-radius: var(--uht-image-radius, 10px);
}

.hpt-content {
    min-width: 0;
}

.hpt-title {
    margin: 0 0 14px;
    color: var(--uht-title-color, inherit);
}

.hpt-title a {
    color: var(--uht-title-color, inherit);
    text-decoration: none;
}

.hpt-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--uht-meta-color, inherit);
}

.hpt-author {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    text-decoration: none;
}

.hpt-author img.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: block;
}

.uht-style-scope[data-uht-hide-date="1"] .hpt-date,
.uht-style-scope[data-uht-hide-date="1"] .uht-context-post-card__date {
    display: none !important;
}

.hpt-date {
    line-height: 1.2;
}

.hpt-small-card {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: var(--uht-block-gap, 24px);
    align-items: start;
}

.hpt-thumb-small {
    margin: 0;
}

.hpt-small-card .hpt-thumb-small {
    grid-column: 1;
    grid-row: 1;
}

.hpt-small-card .hpt-thumb-small img {
    width: 100%;
    height: var(--uht-small-image-height, 170px);
    object-fit: cover;
    display: block;
    border-radius: var(--uht-image-radius, 10px);
}

.hpt-small .hpt-content {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-self: start;
    min-width: 0;
    padding-top: 0;
}

.hpt-small .hpt-title {
    margin: 0 0 10px;
    line-height: 1.45;
    min-height: calc(1.45em * 3);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.hpt-small .hpt-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 0;
}

.hpt-small .hpt-author {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hpt-small .hpt-author img.avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.uht-context-post-card {
    --uht-context-card-gap: 18px;
    --uht-context-card-image-width: 180px;
    --uht-context-card-image-height: 180px;
    --uht-context-card-radius: 10px;
    display: grid;
    gap: var(--uht-context-card-gap);
    align-items: start;
}

.uht-context-post-card--image-top {
    grid-template-columns: 1fr;
}

.uht-context-post-card--image-right,
.uht-context-post-card--image-left {
    grid-template-columns: minmax(0, 1fr) var(--uht-context-card-image-width);
}

.uht-context-post-card--image-left .uht-context-post-card__thumb {
    order: 1;
}

.uht-context-post-card--image-left .uht-context-post-card__content {
    order: 2;
}

.uht-context-post-card--image-right .uht-context-post-card__thumb {
    order: 2;
}

.uht-context-post-card--image-right .uht-context-post-card__content {
    order: 1;
}

.uht-context-post-card__thumb {
    display: block;
    overflow: hidden;
}

.uht-context-post-card__thumb img {
    width: 100%;
    height: var(--uht-context-card-image-height);
    object-fit: cover;
    border-radius: var(--uht-context-card-radius);
    display: block;
}

.uht-context-post-card__content {
    min-width: 0;
}

.uht-context-post-card__title {
    margin: 0 0 10px;
}

.uht-context-post-card__title a {
    color: inherit;
    text-decoration: none;
}

.uht-context-post-card__excerpt {
    margin: 0 0 10px;
}

.uht-context-post-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.uht-context-post-card__author {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    text-decoration: none;
}

.uht-context-post-card__author img.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: block;
}

.uht-featured-posts-loop {
    --uht-featured-loop-gap: 20px;
    --uht-featured-loop-columns: 1;
    display: grid;
    grid-template-columns: repeat(var(--uht-featured-loop-columns), minmax(0, 1fr));
    gap: var(--uht-featured-loop-gap);
}

.uht-featured-posts-loop__fallback {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.uht-featured-posts-loop__thumb {
    display: block;
}

.uht-featured-posts-loop__thumb img {
    width: 100%;
    height: var(--uht-featured-loop-image-height, auto);
    display: block;
    object-fit: cover;
    border-radius: var(--uht-image-radius, 10px);
}

.uht-featured-posts-loop__title {
    margin: 0;
    color: var(--uht-title-color, inherit);
}

.uht-featured-posts-loop__title a {
    color: var(--uht-title-color, inherit);
    text-decoration: none;
}

.uht-featured-posts-loop__excerpt {
    color: var(--uht-excerpt-color, inherit);
}

.uht-featured-posts-loop__fallback .hpt-meta,
.uht-featured-posts-loop__fallback .hpt-meta a {
    color: var(--uht-meta-color, inherit);
}

@media (max-width: 768px) {
    .hpt-featured-magazine-grid,
    .hpt-featured-card-grid,
    .hpt-featured-stack-card,
    .hpt-featured-block--lead-grid .hpt-featured-block-grid,
    .hpt-featured-block--stack .hpt-featured-block-grid,
    .hpt-featured-block--compact-list .hpt-featured-compact-list,
    .hpt-featured-block--lead-side-list .hpt-featured-block-grid,
    .hpt-featured-block--opinion-list .hpt-featured-compact-list,
    .hpt-wrapper {
        grid-template-columns: 1fr;
    }

    .hpt-featured-block--lead-grid .hpt-featured-entry:not(:first-child),
    .hpt-featured-block--compact-list .hpt-featured-entry,
    .hpt-featured-block--lead-side-list .hpt-featured-side-item,
    .hpt-featured-block--opinion-list .hpt-featured-entry,
    .hpt-small-card {
        grid-template-columns: 1fr;
    }

    .hpt-featured-block--lead-grid .hpt-thumb-small img,
    .hpt-featured-block--compact-list .hpt-thumb-small img,
    .hpt-featured-block--stack .hpt-thumb-small img,
    .hpt-featured-block--lead-side-list .hpt-thumb-small img,
    .hpt-large img,
    .hpt-small-card .hpt-thumb-small img {
        height: auto;
    }

    .hpt-featured-block--opinion-list .hpt-thumb-opinion {
        width: 48px;
        height: 48px;
    }

    .hpt-large,
    .hpt-small {
        grid-column: 1 / -1;
    }

    .uht-context-post-card--image-right,
    .uht-context-post-card--image-left,
    .uht-featured-posts-loop {
        grid-template-columns: 1fr;
    }

    .hpt-featured-hero-card {
        grid-column: auto;
    }
}
