.dropdown:focus-within .dropdown-content { display: block; }

.mobile-nav__main {
    display: block;
    padding: .8rem .45rem;
    border-bottom: 1px solid #ddd;
    font-weight: 500;
}

.about__content a.public-button, .public-button {
    display: inline-block;
    padding: .85rem 1.35rem;
    background: var(--text-dark);
    color: var(--white);
    font-family: Poppins, sans-serif;
    font-size: .84rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-decoration: none;
}
.about__content a.public-button:hover, .public-button:hover { background: #52624d; color: #fff; }

.subfooter__wrapper { gap: 2rem; }
.subfooter__mark img { width: 140px; max-width: 100%; }
.faq { margin-top: .65rem; background: #f2f2ee; }
.faq summary { padding: .85rem 1rem; cursor: pointer; font-weight: 600; }
.faq p { margin: 0; padding: 0 1rem 1rem; }

.blog-intro { padding-top: 3rem; }
.blog-filter {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin: 0 0 1.5rem;
    padding: 0;
}
.blog-filter a { padding: .55rem .85rem; border: 1px solid #b2b5a8; color: var(--text-dark); }
.blog-filter a[aria-current="page"], .blog-filter a:hover { background: var(--primary-color); border-color: var(--text-dark); }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.35rem; }
.blog-card { border: 1px solid #dcded5; background: #fafaf8; overflow-wrap: anywhere; }
.blog-card a { display: block; height: 100%; color: var(--text-dark); }
.blog-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.blog-card__content { padding: 1rem 1.15rem 1.25rem; }
.blog-card__content h2 { font: 400 1.55rem/1.25 var(--header-font), serif; }
.blog-card__content p { margin-top: .45rem; }
.blog-card .blog-meta { margin: 0 0 .5rem; font-size: .77rem; color: #525a4d; }
.blog-card a:hover h2, .blog-card a:focus-visible h2 { text-decoration: underline; }

.article-with-image { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 2rem; align-items: start; }
.article-text { min-width: 0; overflow-wrap: anywhere; }
.article-without-image .article-text { max-width: 88ch; margin-inline: auto; }
.article-text > img, .article-text p img, .article-text figure img { display: block; width: auto; max-width: 100%; margin: 1.2rem auto 2rem; height: auto; }
.article-text ol { margin: 0 0 1.25rem 1.5rem; list-style: decimal; }
.article-text ol li { list-style: decimal; }
.article-text ol li::before { content: none; }
.article-text blockquote { border-left: 3px solid #b3b6a5; padding-left: 1rem; margin-bottom: 1rem; }
.article-text table { border-collapse: collapse; display: block; overflow: auto; }
.article-text td, .article-text th { border: 1px solid #ddd; padding: .5rem; }
.article-text hr { margin: 1.5rem 0; border: 0; border-top: 1px solid #ddd; }
.article-gallery { margin-top: 2.5rem; }
.article-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.article-photos--comparison { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.article-photos img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.article-photos figcaption { text-align: center; padding: .5rem; background: #efefe9; }
.article-back { margin-top: 2.5rem; }
.photo-dialog { margin: auto; max-width: 95vw; max-height: 95vh; border: 0; background: #252722; color: white; }
.photo-dialog[open] { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr) 2.25rem; align-items: center; }
.photo-dialog::backdrop { background: #000b; }
.photo-dialog img { width: auto; max-width: 100%; max-height: 85vh; }
.photo-dialog form { grid-column: 1 / -1; text-align: right; }
.photo-dialog button { padding: .15rem .4rem; border: 0; color: #fff; background: none; cursor: pointer; font-size: 1.6rem; }
.legal-page address { margin-bottom: 2rem; font-style: normal; }

@media (max-width: 900px) {
    .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .article-with-image { grid-template-columns: 1fr; }
    .article-with-image .about__image { grid-row: 1; }
}
@media (max-width: 580px) {
    .blog-grid { grid-template-columns: 1fr; }
    .article-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .subfooter__mark { display: none; }
}

@media (min-width: 901px) { .sidebar { display: none; } }
