/*
 * The blog index, post archives, posts and site search results; info pages load it too (their look is
 * the post's, css/info.css adds theirs). After css/base.css.
 */

/* === From Shoptimizer === */

/*
 * The rules of Shoptimizer's stylesheets (main, blog, comments, blocks) that these pages use, taken over
 * when the theme stopped loading them (theme-plan Step 12c): the post grid, page numbers, the site
 * search's results and widget area, the comment form, separators. First in the file, as Shoptimizer's
 * files came before ours; its rtl.css is at the end.
 */

.is-layout-flow summary + * {
    margin-top: 0;
}

form.search-form::before {
    width: 18px;
    height: 18px;
    content: "";
    display: inline-block;
    position: absolute;
    z-index: 1;
    top: 0.7em;
    left: 0.8em;
    background-color: #ccc;
    -webkit-mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21 21L15 15M17 10C17 13.866 13.866 17 10 17C6.13401 17 3 13.866 3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10Z' stroke='%234A5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21 21L15 15M17 10C17 13.866 13.866 17 10 17C6.13401 17 3 13.866 3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10Z' stroke='%234A5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
}

@media (min-width: 993px) {
    .single-post .content-area {
        float: left;
    }
}

@media (min-width: 993px) {
    .single-post .widget-area {
        float: right;
    }
}

@media (min-width: 993px) {
    .search .content-area {
        float: right;
    }
}

@media (min-width: 993px) {
    .blog .site-content .content-area,
    .archive .site-content .content-area {
        width: 100%;
    }
}

.page .content-area {
    width: 100%;
}

@media (max-width: 992px) {
    .search-results .dy-search-aside {
        display: none;
    }
}

.search-results .content-area {
    float: right;
}

.search-results article {
    display: flex;
    margin: 1.75em 0 0;
    padding-top: 1.75em;
    padding-bottom: 0;
    border-top: 1px solid #eee;
    border-bottom: 0;
}

.search-results article a.dy-search-result__image {
    max-width: 100px;
    margin-right: 1.5rem;
}

.search-results article h2 {
    margin-bottom: 0.5rem;
    font-size: clamp(1.25rem,1.123rem + 0.4065vw,1.375rem);
    font-weight: 600;
    letter-spacing: 0;
}

.search-results article h2 a {
    color: #222;
}

.search-results article {
    margin-bottom: 0.5rem;
    font-size: clamp(0.875rem,0.8115rem + 0.2033vw,0.9375rem);
}

.search-results article:last-of-type {
    margin-bottom: 2rem;
}

.search-results .content-area {
    margin-bottom: 2rem;
}

.search-no-results .dy-search-aside {
    display: none;
}

.search-no-results .content-area {
    width: 100%;
    float: none;
    margin-bottom: 4em;
}

.search-no-results form.search-form {
    position: relative;
    display: flex;
    justify-content: stretch;
}

.search-no-results form.search-form label {
    margin-right: 1rem;
}

.search-no-results form.search-form input[type="search"],
.search-no-results form.search-form label {
    display: flex;
    width: 100%;
    height: auto;
}

.pagination .page-numbers {
    text-align: center;
    font-size: clamp(0.875rem,0.8115rem + 0.2033vw,0.9375rem);
}

.pagination ul.page-numbers {
    margin: 0;
    display: flex;
    align-items: center;
}

.pagination .page-numbers a {
    position: relative;
}

.pagination .page-numbers li {
    display: inline-block;
    padding: 10px;
}

.pagination .page-numbers li a,
.pagination .page-numbers li span {
    padding: 0;
}

.pagination a.page-numbers,
.pagination span.page-numbers {
    padding: 10px;
}

.nav-links {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.search-results .nav-links::after,
.search-results .nav-links::before {
    flex: 1;
    content: '';
}

.nav-links:has(.next)::after,
.nav-links:has(.prev)::before {
    display: none;
}

.nav-links a.prev {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    padding-left: 0;
}

.nav-links a.next {
    display: flex;
    justify-content: flex-end;
    flex: 1;
    padding-right: 0;
}

.page-numbers .next::after,
.page-numbers .prev::after {
    display: inline-block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1em;
    height: 1em;
    content: "";
    background-color: #111;
    transform: translateX(-50%) translateY(-50%);
    text-rendering: auto;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.page-numbers .prev::after {
    -webkit-mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15 19L8 12L15 5' stroke='%234A5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15 19L8 12L15 5' stroke='%234A5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.page-numbers .next::after {
    -webkit-mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 5L16 12L9 19' stroke='%234A5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 5L16 12L9 19' stroke='%234A5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.widget_top_rated_products .widget-title {
    margin-bottom: 0;
}

.widget-area .widget .amount {
    font-size: 12px;
}

#secondary .widget {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #ddd;
    display: flex;
    flex-direction: column;
}

#secondary .widget:last-child {
    padding-bottom: 0;
    border: none;
}

#secondary > .widget:first-child .widget-title {
    padding-top: 0;
    border: 0;
}

.widget-area .widget a {
    color: #222;
}

.widget-area .widget a:not(.button):hover {
    text-decoration: underline;
    text-decoration-thickness: 0.5px;
    text-underline-offset: 0.18em;
}

.product_list_widget li {
    padding: 1em 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.widget-area .product_list_widget li {
    padding-top: 0.7em;
}

.product_list_widget li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border: none;
}

.product_list_widget li img {
    float: right;
    max-width: 2.617924em;
    margin: 3px 0 10px 10px;
}

.product_list_widget li > a {
    display: block;
}

.widget_product_categories {
    padding-right: 25px;
}

.widget_product_categories ul li {
    position: relative;
}

.tagcloud {
    padding-top: 10px;
}

.post .wp-post-image {
    margin-bottom: 1.618em;
}

.post .entry-header h2 {
    margin: 0 0 0.35rem;
}

.post .entry-header h2 a {
    color: #111;
}

@media (max-width: 768px) {
    .post .entry-header h2 {
        font-size: 24px;
    }
}

article.post .entry-content {
    font-size: clamp(0.875rem,0.8115rem + 0.2033vw,0.9375rem);
}

article.post .entry-content p:last-child {
    margin-bottom: 0;
}

@media (min-width: 993px) {
    .blog .site-content,
    .archive .site-content {
        padding-bottom: 3rem;
    }
}

.site-main.dy-post-grid {
    display: grid;
    gap: 3rem;
    padding-bottom: 1em;
}

.site-main.dy-post-grid article.post a.post-thumbnail {
    margin-bottom: 1.618em;
}

/* A card's featured image (none has one yet): it zooms, under a dark layer and an arrow, on hover */
.dy-post-grid article.post img.wp-post-image {
    margin: 0;
    transition: 0.3s;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    display: block;
}

.dy-post-grid article.post a.post-thumbnail {
    display: block;
    overflow: hidden;
    position: relative;
}

.dy-post-grid article.post a.post-thumbnail::before {
    position: absolute;
    z-index: 2;
    opacity: 0;
    transition: 0.25s;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    width: 40px;
    height: 40px;
    content: "";
    background: #fff;
    -webkit-mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14 5L21 12M21 12L14 19M21 12L3 12' stroke='%234A5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14 5L21 12M21 12L14 19M21 12L3 12' stroke='%234A5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.dy-post-grid article.post a.post-thumbnail::after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    background-color: rgba(0,0,0,0.35);
    content: "";
    transition: 0.25s;
}

.dy-post-grid article.post:hover a.post-thumbnail::before {
    left: calc(50% + 20px);
    opacity: 1;
}

.dy-post-grid article.post:hover a.post-thumbnail::after {
    opacity: 1;
}

.dy-post-grid article.post:hover img.wp-post-image {
    transform: scale(1.04,1.04);
}

main.site-main.dy-post-grid {
    grid-template-columns: repeat(3,1fr);
}

.site-main.dy-post-grid .navigation.pagination {
    grid-column: span 2;
}

main.site-main.dy-post-grid .navigation.pagination {
    grid-column: span 3;
}

.single-post .post .entry-header {
    margin-bottom: 1.56rem;
}

.single-post .entry-header h1 {
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    main.site-main.dy-post-grid {
        grid-template-columns: repeat(1,1fr);
        -moz-column-gap: 0;
        column-gap: 0;
    }
}

@media (max-width: 768px) {
    .site-main.dy-post-grid .navigation.pagination {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .single-post .entry-header h1 {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .single-post .entry-content {
        font-size: 15px;
    }
}

.page-header h1 + .taxonomy-description {
    margin-top: -0.5rem;
}

.taxonomy-description {
    margin-bottom: 2em;
    font-size: clamp(0.875rem,0.8115rem + 0.2033vw,0.9375rem);
}

.single-post .entry-content .woocommerce {
    margin: 1.5rem 0 2.5rem;
}

@media (min-width: 993px) {
    #respond .comment-form-author {
        float: left;
        width: 47%;
        margin-right: 2.703529412%;
    }
}

@media (min-width: 993px) {
    #respond .comment-form-email {
        float: left;
        width: 50%;
    }
}

@media (min-width: 993px) {
    #respond .comment-form-comment {
        clear: both;
    }
}

#respond {
    font-size: 15px;
    padding-top: 1.5rem;
}

#respond .comment-form-url {
    display: none;
}

#respond .comment-reply-title {
    display: block;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.35;
    color: #111;
    font-size: clamp(1.25rem,0.9959rem + 0.813vw,1.5rem);
}

#respond .comment-reply-title a,
#respond .comment-reply-title a:hover {
    color: #111;
}

#respond p.comment-notes {
    font-size: clamp(0.875rem,0.8115rem + 0.2033vw,0.9375rem);
}

#respond label {
    display: block;
    margin-bottom: 0.35rem;
    color: #222;
    font-size: 15px;
    font-weight: 600;
}

#respond .comment-form-author input,
#respond .comment-form-email input,
#respond textarea {
    width: 100%;
}

#respond input[type="checkbox"] {
    position: absolute;
    top: 4px;
    left: 0;
    margin: 0;
}

#respond p:has(input[type="checkbox"]) {
    position: relative;
    padding-left: 1.5rem;
    clear: both;
    margin-bottom: 0.5rem;
}

#respond p:has(input[type="checkbox"]) label {
    margin-bottom: 0;
    font-size: 14px;
    font-weight: normal;
}

.comments-area {
    margin: 1rem 0 3rem;
    padding-top: 2rem;
}

.comment-list .comment-content {
    float: right;
    width: calc(100% - 70px);
}

.comment-list .comment-meta {
    float: left;
    width: 54px;
}

#comments .comments-title {
    margin-bottom: 1.5rem;
    font-size: 24px;
}

#comments .comment-list {
    margin-bottom: 0;
    margin-left: 0;
    list-style: none;
}

.comment-list li {
    margin-bottom: 1.75rem;
    padding-bottom: 1.75rem;
    padding-left: 0;
    border-bottom: 1px solid #eee;
    overflow: hidden;
    clear: both;
}

#comments .comment-list .comment-meta .avatar {
    max-width: 50px;
    height: auto;
    margin-top: 5px;
    margin-bottom: 0.5rem;
    border-radius: 50%;
}

@media (min-width: 993px) {
    .comment-list .comment-content {
        width: calc(100% - 100px);
    }
}

@media (min-width: 993px) {
    .comment-list .comment-meta {
        width: 74px;
    }
}

@media (min-width: 993px) {
    #comments .comment-list .children {
        margin-left: 6em;
    }
}

@media (min-width: 993px) {
    #comments .comment-list .comment-meta .avatar {
        max-width: 74px;
    }
}

#comments .comment-list .comment-content cite {
    margin-top: 0;
    font-size: 16px;
    font-weight: 600;
}

#comments .comment-list .comment_meta {
    margin-bottom: 0.5rem;
}

#comments .comment-list .comment_meta a.comment-date {
    display: block;
    color: #555;
    font-size: 13px;
    pointer-events: none;
}

#comments .comment-list .comment-content .comment-text {
    font-size: clamp(0.875rem,0.8115rem + 0.2033vw,0.9375rem);
}

#comments .comment-list .reply a {
    display: inline-block;
    margin-right: 3px;
    padding: 3px 10px;
    border-radius: 2px;
    color: #666;
    border: 1px solid #e2e2e2;
    font-size: 11px;
}

#comments .comment-list .reply a:hover {
    color: #222;
    border-color: #ccc;
}

#comments .comment-list .children {
    padding-top: 2rem;
    margin-left: 4.5rem;
    list-style: none;
    clear: both;
}

@media (min-width: 993px) {
    #comments .comment-list .children {
        margin-left: 6.5rem;
    }
}

#comments .comment-list .children li:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border: 0;
}

#respond p.form-submit {
    margin-top: 1.5rem;
    margin-bottom: 0;
}

#respond #cancel-comment-reply-link {
    display: block;
    position: absolute;
    top: 15px;
    right: 40px;
    width: 1em;
    height: 1em;
    font-size: 0;
    line-height: 1;
    text-align: center;
}

#respond #cancel-comment-reply-link::before {
    opacity: 0.4;
    content: "";
    display: inline-block;
    width: 26px;
    height: 26px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 18L18 6M6 6L18 18' stroke='%234A5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    transition: opacity 0.2s;
}

#respond #cancel-comment-reply-link:hover::before {
    opacity: 0.8;
}

hr.wp-block-separator {
    height: inherit;
    border-bottom: none;
}

.content-area hr.wp-block-separator {
    height: 1px;
}

/* === Blog archives === */

/* Post archives put the header inside the card grid, whose gap already spaces it (phones: base.css). */
.site-main.dy-post-grid > .page-header {
    grid-column: 1 / -1;
}

@media (min-width: 768px) {
    .site-main.dy-post-grid > .page-header {
        margin-bottom: 0;
    }
}

/* The blog's arrows: an RTL rule offsets the chevron; centre it, still mirrored. */
.site-main .navigation.pagination ul.page-numbers li .page-numbers:is(.next, .prev)::after {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scaleX(-1);
}

/* === Blog === */

/* After a blog post the reviewer card sits in its own white card, like the article. */
.dy-post-reviewer {
    margin-top: 20px;
    padding: 20px 30px;
    background: var(--e-global-color-white);
    border: 1px solid var(--e-global-color-line);
    border-radius: 12px;
}

/*
 * Posts borrow the product page's look: the cream summary background for the header, white cards
 * with a 1px beige (line) border and 12px corners (as the tab panels), beige-underlined card titles.
 */

/* -- Shared: category chip and date / reading-time line -- */
.dy-post-chip {
    display: inline-block;
    margin-bottom: 8px;
    padding: 2px 10px;
    font-size: 12px;
    color: var(--e-global-color-maroon);
    background: var(--e-global-color-peach);
    border-radius: 999px;
}

.dy-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    font-size: 13px;
    color: var(--e-global-color-warmgrey);
}

/* -- Single post: header -- */
.single-post .post .dy-post-hero,
.dy-info .dy-post-hero {
    margin-bottom: 20px;
    padding: 28px 30px;
    background: var(--e-global-color-cream);
    border-radius: 12px;
}

.single-post .dy-post-hero .entry-title,
.dy-info .dy-post-hero .entry-title {
    margin-bottom: 12px;
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
    line-height: 1.6;
}

/* Author and reviewer, under the date line. */
.dy-post-byline {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin-top: 6px;
    font-size: 13px;
    color: var(--e-global-color-warmgrey);
}

.dy-post-byline a {
    color: var(--e-global-color-green);
}

/* -- Single post: article card (and the info pages' content card) -- */
.single-post .post .entry-content,
.dy-info .entry-content {
    padding: 25px 30px;
    font-size: 16px;
    line-height: 2;
    color: var(--e-global-color-ink);
    background: var(--e-global-color-white);
    border: 1px solid var(--e-global-color-line);
    border-radius: 20px;
}

.single-post .entry-content > p:empty,
.dy-info .entry-content > p:empty {
    display: none;
}

.single-post .entry-content h2,
.dy-info .entry-content h2 {
    margin: 2.2em 0 0.8em;
    font-size: 1.35rem;
    line-height: 1.6;
    scroll-margin-top: 110px;
}

/* No top gap when the article opens with a heading (often after a blank paragraph and an hr) */
.single-post .entry-content > h2:first-child,
.single-post .entry-content > hr:first-child + h2,
.single-post .entry-content > p:empty:first-child + hr + h2,
.single-post .entry-content > .dy-toc + h2,
.single-post .entry-content > .dy-toc + hr + h2,
.single-post .entry-content > .dy-toc + p:empty + hr + h2 {
    margin-top: 0;
}

.single-post .entry-content h3,
.dy-info .entry-content h3 {
    margin: 1.6em 0 0.6em;
    font-size: 1.1rem;
    color: var(--e-global-color-ink);
}

/* The drafts separate every section with an hr; the h2 underline already does that. */
.single-post .entry-content hr.wp-block-separator,
.dy-info .entry-content hr.wp-block-separator {
    display: none;
}

.single-post .entry-content a,
.dy-info .entry-content a {
    color: var(--e-global-color-green);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.single-post .entry-content li,
.dy-info .entry-content li {
    margin-bottom: 0.4em;
}

/* Related products: the home page's product card, without the article's link underline */
.single-post .entry-content .dy-products a {
    text-decoration: none;
}

.single-post .entry-content .dy-products li {
    margin-bottom: 0;
}

/*
 * The article column is narrow: four cards in a row squeezed the currency under the price, and
 * most posts list four products, so two rows of two. The image is capped to keep the cards short.
 */
@media (min-width: 768px) {
    .single-post .entry-content .dy-products .woocommerce ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .single-post .entry-content .dy-products .woocommerce ul.products li.product img {
        width: auto !important;
        height: 200px;
        margin-inline: auto;
    }
}

/* Tables as the product's specification panel */
.single-post .entry-content .wp-block-table {
    margin: 1.5em 0;
    overflow-x: auto;
}

.single-post .entry-content .wp-block-table table {
    width: 100%;
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
    border: 1px solid var(--e-global-color-line);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
}

.single-post .entry-content .wp-block-table th,
.single-post .entry-content .wp-block-table td {
    padding: 10px 14px;
    text-align: right;
    vertical-align: top;
    border: 0;
    border-bottom: 1px solid var(--e-global-color-line);
}

.single-post .entry-content .wp-block-table thead th {
    font-weight: 600;
    background: var(--e-global-color-cream);
    border-bottom: 2px solid var(--e-global-color-line);
}

.single-post .entry-content .wp-block-table tbody tr:last-child td {
    border-bottom: 0;
}

.single-post .entry-content .wp-block-table tbody tr:nth-child(even) td {
    background: var(--e-global-color-cream);
}

/* -- Single post: table of contents and help card -- */
.dy-card {
    margin-bottom: 20px;
    padding: 20px 22px;
    background: var(--e-global-color-white);
    border: 1px solid var(--e-global-color-line);
    border-radius: 12px;
}

/* .dy-card: outranks the parent's .site h2 (phone heading sizes) */
.dy-card .dy-card__title {
    margin: 0 0 12px;
    padding-bottom: 10px;
    font-size: 16px;
    border-bottom: 2px solid var(--e-global-color-line);
}

.dy-toc ol {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: dy-toc;
}

.dy-toc li {
    margin: 0;
    counter-increment: dy-toc;
}

.dy-toc li a {
    display: flex;
    gap: 8px;
    padding: 6px 0;
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--e-global-color-ink);
    text-decoration: none;
}

.dy-toc li a:before {
    flex-shrink: 0;
    min-width: 1.4em;
    content: counter(dy-toc, persian) ".";
    color: var(--e-global-color-green);
}

.single-post .entry-content .dy-toc li a {
    text-decoration: none;
}

.dy-toc li a:hover {
    color: var(--e-global-color-green);
}

.dy-help p {
    margin-bottom: 12px;
    font-size: 13.5px;
    line-height: 1.8;
    color: var(--e-global-color-warmgrey);
}

.dy-help__phone,
.dy-help__shop {
    display: block;
    padding: 10px;
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
}

.dy-help__phone {
    margin-bottom: 8px;
    color: var(--e-global-color-white);
    background: var(--e-global-color-green);
}

.dy-help__phone:hover {
    color: var(--e-global-color-white);
    background: var(--dy-green-hover);
}

.dy-help__shop {
    color: var(--e-global-color-green);
    border: 1px solid var(--e-global-color-green);
}

/* Collapsible table of contents above the article (small screens only) */
.dy-toc--inline {
    margin-bottom: 1.5em;
    padding: 12px 18px;
    background: var(--e-global-color-cream);
    border: 1px solid var(--e-global-color-line);
    border-radius: 12px;
}

.dy-toc--inline summary {
    font-weight: 600;
    cursor: pointer;
}

.dy-toc--inline ol {
    margin-top: 8px;
}

@media (min-width: 993px) {
    .single.single-post .content-area {
        width: calc(100% - 330px);
    }

    .single.single-post #secondary {
        position: sticky;
        top: 90px;
        width: 300px;
    }

    /*
     * The column never outgrows the window: the contents card shrinks and its list scrolls
     * (long articles have dozens of headings), the help card always shows in full.
     */
    .single-post .dy-post-aside {
        display: flex;
        flex-direction: column;
        max-height: calc(100vh - 110px);
    }

    .single-post .dy-post-aside .dy-toc {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .single-post .dy-post-aside .dy-toc ol {
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .single-post .dy-post-aside .dy-help {
        flex-shrink: 0;
        margin-bottom: 0;
    }

    .single-post .dy-toc--inline {
        display: none;
    }
}

@media (max-width: 992px) {
    .single-post .dy-post-aside .dy-toc {
        display: none;
    }
}

@media (max-width: 768px) {
    .single-post .post .dy-post-hero,
    .dy-info .dy-post-hero {
        padding: 20px 18px;
    }

    .single-post .post .entry-content,
    .dy-info .entry-content {
        padding: 18px 16px;
        font-size: 15px;
    }

    .dy-post-reviewer {
        padding: 18px 16px;
    }

    .single-post .entry-content h2,
    .dy-info .entry-content h2 {
        font-size: 1.2rem;
    }
}

/* -- Blog index and post archives: cards (their title: Archive section) -- */
.site-main.dy-post-grid {
    gap: 24px;
}

.site-main.dy-post-grid article.post {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 20px 22px;
    background: var(--e-global-color-white);
    border: 1px solid var(--e-global-color-line);
    border-radius: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.site-main.dy-post-grid article.post:hover {
    border-color: var(--e-global-color-line);
    box-shadow: var(--dy-shadow-hover);
}

.site-main.dy-post-grid .dy-post-card {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.site-main.dy-post-grid article.post .entry-header {
    margin-bottom: 10px;
}

.site-main.dy-post-grid article.post .entry-header h2 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.75;
}

.site-main.dy-post-grid article.post .entry-header h2 a:hover {
    color: var(--e-global-color-green);
}

.site-main.dy-post-grid article.post .entry-content {
    font-size: 14px;
    line-height: 1.9;
    color: var(--e-global-color-warmgrey);
}

.site-main.dy-post-grid article.post .entry-content p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.dy-post-more {
    margin-top: auto;
    padding-top: 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--e-global-color-green);
}

.dy-post-more:after {
    content: " ←";
}

@media (min-width: 769px) and (max-width: 992px) {
    main.site-main.dy-post-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    main.site-main.dy-post-grid .navigation.pagination {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    main.site-main.dy-post-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    main.site-main.dy-post-grid .navigation.pagination {
        grid-column: auto;
    }
}

/* === Customizer === */

/* What the Customizer printed for these pages (base.css, Customizer): the site search's sidebar. */
@media (min-width: 993px) {
    #secondary {
        width: 17%;
    }

    .content-area {
        width: 76%;
    }
}

.widget-area .widget a:hover,
#secondary .widget ul li a:hover,
#secondary .widget ins span.amount {
    color: var(--dy-green-dark);
}

#secondary.widget-area .widget .tagcloud a:hover,
.widget-area .widget.widget_product_tag_cloud a:hover {
    background-color: var(--dy-green-dark);
}

/* === From Shoptimizer: right to left === */

/* The rules of Shoptimizer's rtl.css that these pages use (Step 12c); last, where its file came. */

@media (min-width: 993px) {
    .rtl .comment-list .comment-meta {
        float: right;
    }
}

.rtl #respond input[type="checkbox"] {
    right: 0;
    left: auto;
}

.rtl .comment-form-cookies-consent {
    padding-right: 25px;
    padding-left: 0;
}

.rtl .comment-form-cookies-consent input[type="checkbox"] {
    right: 0px;
    left: auto;
}

.rtl .product_list_widget li img {
    float: left;
    margin-left: 0;
    margin-right: 10px;
}

.rtl .widget_product_categories {
    padding-right: 0;
}

.rtl .page-numbers .next::after,
.rtl .page-numbers .prev::after {
    transform: matrix(-1, 0, 0, 1, 0, 0);
    position: relative;
}
