/* Reboot's page, header and footer hooks remain active around the new templates. */
.ds .site,
.ds #content { background: var(--ds-bg); }
.ds :is(input, button, select, textarea) { font-family: var(--ds-font-text); }
.ds .site-content-inner > * { min-width: 0; }
.ds.ds-wide #content,
.ds.ds-wide .site-content-inner,
.ds.ds-wide #primary {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}
.ds.ds-wide .site-content-inner { display: block; }
.ds.ds-wide .article-card { border: 0; border-radius: 0; padding: 0; background: none; box-shadow: none; }
.ds .skip-link:focus { z-index: 1100; }

.ds-header { position: relative; z-index: 30; }
.ds-header__inner { position: relative; max-width: 1344px; }
.ds .ds-logo { min-height: 44px; text-decoration: none; }
.ds .ds-header__search { margin-left: auto; flex: 0 0 44px; }
.ds .ds-header__search:hover { background: var(--ds-bg); color: var(--ds-accent); }
.ds :is(.damsovet-rubrics-header, .damsovet-rubrics-sidebar) {
    --ds-rubrics-text: var(--ds-ink);
    --ds-rubrics-accent: var(--ds-accent);
    --ds-rubrics-tint: var(--ds-tint-violet);
    --ds-rubrics-border: var(--ds-line);
}
.ds .ds-header .damsovet-rubrics-header {
    margin: 0;
    padding: 0;
    gap: 18px;
}
.ds .ds-header .damsovet-rubrics-trigger {
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border: 0;
    border-radius: var(--ds-r-sm);
    background: var(--ds-dark);
    color: var(--ds-on-dark);
    font-weight: 600;
}
.ds .ds-header .damsovet-rubrics-trigger:hover,
.ds .ds-header .damsovet-rubrics-disclosure[open] > summary {
    background: var(--ds-dark-border);
    color: var(--ds-on-dark);
}
.ds-header .damsovet-rubrics-trigger > .damsovet-rubrics-chevron { display: none; }
.ds .ds-header .damsovet-rubrics-quick { display: flex; gap: 2px; margin: 0; }
.ds .ds-header .damsovet-rubrics-quick a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    border-radius: var(--ds-r-pill);
    color: var(--ds-ink);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}
.ds .ds-header .damsovet-rubrics-quick a:is(:hover, .is-active, [aria-current]) {
    background: var(--ds-bg);
    font-weight: 600;
}
.ds .ds-header .damsovet-rubrics-panel { inset: calc(100% + 2px) var(--ds-gutter) auto; }
.ds .damsovet-rubrics-summary { min-height: 44px; }
.ds .damsovet-rubrics-links a { display: flex; align-items: center; min-height: 44px; }
.ds .search-screen .search-submit { min-width: 44px; min-height: 44px; }
@media (min-width: 768px) and (max-width: 925px) {
    .ds-header__inner { gap: 12px; }
    .ds .ds-header .damsovet-rubrics-quick { display: grid; grid-template-columns: repeat(2, max-content); }
    .ds .ds-header .damsovet-rubrics-quick a { padding-inline: 8px; font-size: 14px; }
}

.ds .ds-search__input {
    border: 0;
    box-shadow: none;
    background: transparent;
    border-radius: 9px;
    min-width: 0;
}
.ds .ds-search__input:focus-visible { outline: 2px solid var(--ds-accent); outline-offset: 0; }
.ds-search .ds-btn--primary { flex: 0 0 auto; }
.ds svg { vertical-align: middle; fill: none; stroke: currentColor; }
.ds a.ds-feature,
.ds .ds-panel--dark a,
.ds .ds-footer a { color: var(--ds-on-dark); }
.ds .ds-feature__img,
.ds .ds-card__img { height: auto; }
.ds .ds-chip,
.ds .ds-footer__nav a { min-height: 44px; }
.ds .ds-footer__nav a { display: flex; align-items: center; }
.ds .ds-footer .ds-logo { align-self: flex-start; }
.ds .ds-footer a:hover { color: var(--ds-highlight); }
.ds .ds-footer__bottom .footer-bottom { display: block; margin: 0; padding: 0; border: 0; }
.ds .ds-footer__bottom .footer-info { color: var(--ds-on-dark-faint); font-size: 14px; }
.ds .ds-rubric:hover { border-color: var(--ds-accent); }
.ds .ds-rubric__name,
.ds .ds-rubric__subs,
.ds .ds-card__title,
.ds .ds-rank-list__title,
.ds .ds-mini__title { overflow-wrap: anywhere; }
.ds .ds-rubric__subs { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ds-card__media--empty { min-height: 56px; }
.ds .ds-card:is(:hover, :focus-visible) .ds-card__title,
.ds .ds-rank-list__item:is(:hover, :focus-visible) .ds-rank-list__title { color: var(--ds-accent); }
.ds .ds-rank-list { padding: 0; margin: 0; }
.ds-panel .ds-section__head,
.ds-panel .ds-section__head .ds-panel__title { margin-bottom: 12px; }
.ds-mini__media { align-self: center; }
.ds .ds-mini__img { height: 68px; }
.ds-list-head { padding-top: 36px; }
.ds-listing .page-header { overflow-wrap: anywhere; }
.ds-listing .ds-section__title { margin-bottom: 20px; }
.ds .navigation.pagination { margin-top: 30px; }
.ds .ds-listing .taxonomy-description { margin-block: 20px; }
.ds .ds-listing .child-categories a,
.ds .ds-listing .navigation.pagination a { min-height: 44px; }

.ds .ds-article { margin: 0; }
.ds.ds-wide .ds-article .ds-article-entry { width: 100%; max-width: none; margin: 0; padding: 0; }
.ds .ds-post-head { padding-bottom: 24px; gap: 20px; }
.ds .ds-post-head .breadcrumb { margin: 0; padding: 0; color: var(--ds-muted); font-size: 14px; text-transform: none; }
.ds .ds-post-head .breadcrumb :is(a, span) { color: var(--ds-muted); text-transform: none; }
.ds .ds-post-head .breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.ds .ds-post-head .breadcrumb a:hover { color: var(--ds-accent); }
.ds .ds-post-head__category { align-self: flex-start; min-height: 36px; }
.ds .ds-post-title { margin: 0; color: var(--ds-ink); overflow-wrap: anywhere; }
.ds .ds-avatar { flex: 0 0 40px; }
.ds .ds-post-meta__value { white-space: nowrap; }
.ds .ds-post-intro {
    margin: 0 auto 48px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ds .ds-post-intro--cover-only { display: block; max-width: calc(780px + var(--ds-gutter) * 2); }
.ds .ds-post-intro > :only-child { grid-column: 1 / -1; }
.ds .ds-cover { display: flex; flex-direction: column; justify-content: center; margin: 0; }
.ds .ds-cover img { margin: 0; }
.ds .ds-cover figcaption { padding-inline: 12px; }
.ds .ds-toc { min-width: 0; align-self: stretch; justify-content: center; }
.ds .entry-content .ds-toc__intro { margin: 0 12px; }
.ds .entry-content .table-of-contents {
    border: 1px solid var(--ds-line);
    border-radius: var(--ds-r-md);
    background: var(--ds-surface);
    color: var(--ds-text);
}
.ds .ds-toc .table-of-contents { margin: 0; padding: 0; border: 0; border-top: 1px solid var(--ds-line-soft); border-radius: 0; }
.ds .ds-toc .table-of-contents__header { padding: 0 12px; }
.ds .table-of-contents__hide {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--ds-muted);
    font-size: 13px;
    font-weight: 700;
}
.ds .ds-toc .table-of-contents__hide { text-transform: uppercase; letter-spacing: .08em; }
.ds .ds-toc .table-of-contents__list { margin: 0; padding: 0; list-style: none; counter-reset: damsovet-toc; }
.ds .ds-toc .table-of-contents__list > li { margin: 0; padding: 0; counter-increment: damsovet-toc; }
.ds .ds-toc .table-of-contents__list > li::before { content: none; }
.ds .ds-toc .table-of-contents__list a {
    display: flex;
    gap: 12px;
    align-items: center;
    min-height: 44px;
    padding: 8px 12px;
    text-decoration: none;
    color: var(--ds-ink);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.25;
    overflow-wrap: anywhere;
    border-radius: var(--ds-r-sm);
}
.ds .ds-toc .table-of-contents__list a::before { content: counter(damsovet-toc); color: var(--ds-accent); flex: 0 0 18px; font-weight: 700; }
.ds .ds-toc .table-of-contents__list a:hover { background: var(--ds-bg); }
.ds .ds-entry, .ds .ds-article-end, .ds .ds-comments {
    width: min(calc(100% - var(--ds-gutter) * 2), 780px);
    margin-inline: auto;
    overflow-wrap: break-word;
}
.ds .ds-entry { padding-bottom: 36px; }
.ds .ds-entry p { color: var(--ds-text); }
.ds .ds-article-entry :is(.ds-entry, .ds-product__text, .ds-specs) a {
    color: var(--ds-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.ds .ds-article-entry > :is(p, h3, h4, ul, ol, blockquote, figure) {
    width: min(calc(100% - var(--ds-gutter) * 2), 780px);
    margin-inline: auto;
}
.ds .ds-article-entry > .wp-block-embed { margin-bottom: 44px; }
.ds .ds-entry :is(iframe, img), .ds .ds-product__text :is(iframe, img) { max-width: 100%; }
.ds .ds-compare .ds-section__title {
    margin: 0 0 18px;
    color: var(--ds-ink);
    font: 600 28px/1.2 var(--ds-font-display);
    letter-spacing: -0.02em;
}
.ds .ds-compare table { margin: 0; border: 0; table-layout: auto; }
.ds .ds-compare__scroll > .table-responsive { display: contents; }
.ds .ds-compare :is(th, td) { border-inline: 0; background: var(--ds-surface); }
.ds .ds-compare td { min-height: 44px; }
.ds .ds-compare td a { display: inline-flex; align-items: center; min-height: 28px; color: var(--ds-ink); text-decoration: none; }
.ds .ds-compare td a:hover { color: var(--ds-accent); text-decoration: underline; }
.ds .ds-product__titles,
.ds .ds-product__body > * { min-width: 0; }
.ds .ds-product__titles { overflow-wrap: anywhere; }
.ds .ds-product__titles .ds-product__name { margin: 0; color: var(--ds-ink); font-family: var(--ds-font-display); font-size: 26px; }
.ds .ds-product__name { scroll-margin-top: 24px; }
.ds .ds-product__body { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ds .ds-product__body--specs-only { grid-template-columns: minmax(0, 1fr); }
.ds .ds-product__media > figure { width: 100%; margin: 0; }
.ds .ds-product__media :is(figure, img) { margin-block: 0; }
.ds .ds-product__media img { height: auto; }
.ds .ds-product__media .wp-block-gallery img { flex: 0 0 auto; }
.ds .ds-product__text p { margin: 0; }
.ds .ds-product__text > :empty:not(script):not([id]):not([class]) { display: none; }
.ds .ds-specs { padding: 0; }
.ds .ds-specs__item :is(dt, dd) { margin: 0; }
.ds .ds-specs__item--price a { color: var(--ds-highlight); }
.ds .ds-article-end:not(:has(> :not(meta):not(script))) { margin: 0 auto; }
.ds .ds-comments {
    margin-bottom: 52px;
    box-sizing: border-box;
    background: var(--ds-surface);
    border: 1px solid var(--ds-line);
}
.ds .ds-comments :is(.comments-area, .comment-respond) { margin: 0; padding: 0; background: transparent; }
.ds .ds-comments .comment-reply-title {
    margin: 0 0 16px;
    font: 600 24px/1.25 var(--ds-font-display);
    color: var(--ds-ink);
}
.ds .ds-comments #commentform {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.ds .ds-comments #commentform > * { grid-column: 1 / -1; margin: 0; min-width: 0; }
.ds .ds-comments #commentform > :is(.comment-form-author, .comment-form-email) { grid-column: auto; }
.ds .ds-comments #commentform :is(input:not([type=submit],[type=checkbox]), textarea) {
    width: 100%; min-height: 44px; padding: 12px 14px; border: 1px solid var(--ds-line);
    border-radius: var(--ds-r-sm); color: var(--ds-ink); background: var(--ds-surface-2);
}
.ds .ds-comments #commentform textarea { min-height: 128px; }
.ds .ds-comments #commentform [type=submit] {
    min-height: 44px; padding: 0 20px; border-radius: var(--ds-r-sm);
    border: 0; background: var(--ds-accent); color: var(--ds-on-accent); font-weight: 600;
}
.ds #related-posts {
    width: 100%; max-width: var(--ds-container); margin: 0 auto;
    padding: 0 var(--ds-gutter) 56px; box-sizing: border-box;
}
.ds #related-posts .related-posts__header {
    margin: 0 0 20px;
    font: 600 28px/1.2 var(--ds-font-display);
    color: var(--ds-ink);
}
.ds #related-posts .post-cards:has(> .ds-card) {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); gap: var(--ds-gap);
    margin: 0;
}

@media (max-width: 767px) {
    .ds .ds-header .damsovet-rubrics-header { order: 3; }
    .ds .ds-header .damsovet-rubrics-quick { display: none; }
    .ds .ds-header .damsovet-rubrics-trigger { width: 44px; padding: 0; font-size: 0; }
    .ds .ds-header .damsovet-rubrics-trigger-icon { height: 12px; width: 16px; margin: 0; }
    .ds-header__inner { gap: 8px; }
    .ds .ds-chips,
    .ds .ds-panel--category,
    .ds .ds-rubric__subs { display: none; }
    .ds .ds-more .ds-btn { width: 100%; }
    .ds .ds-post-head { padding-bottom: 20px; gap: 14px; }
    .ds .ds-post-meta { gap: 12px 20px; }
    .ds .ds-post-intro { grid-template-columns: minmax(0, 1fr); margin-bottom: 28px; }
    .ds .ds-toc { padding: 16px 12px; }
    .ds .ds-toc__intro { font-size: 16px; }
    .ds .ds-compare .ds-section__title,
    .ds #related-posts .related-posts__header { font-size: 22px; }
    .ds .ds-product__titles .ds-product__name { font-size: 22px; }
    .ds .ds-product__body { grid-template-columns: minmax(0, 1fr); }
    .ds .ds-product__media { min-height: 0; }
    .ds .ds-comments #commentform { grid-template-columns: minmax(0, 1fr); }
    .ds #related-posts { padding-bottom: 32px; }
}
