/* Theme Dy - Google SEO & Mobile responsive enhancements */

/* Prevent horizontal scroll & image overflow (mobile-friendly) */
img {
    max-width: 100%;
    height: auto;
}
.module-item-pic img {
    object-fit: cover;
}

/* Smooth scroll for anchor links (UX) */
html {
    scroll-behavior: smooth;
}

/* iOS: prevent zoom on input focus (min 16px), better tap (Google mobile-friendly) */
@media (max-width: 899px) {
    input[type="text"],
    input[type="search"],
    input[type="email"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* Readable title & content (UX + SEO) */
.page-title,
.video-info-header .page-title {
    line-height: 1.3;
    margin-bottom: 0.25em;
}
.video-subtitle {
    margin-top: 0;
    font-weight: 400;
}

/* Site name in footer when no logo */
.site-name-footer {
    font-weight: 600;
    color: inherit;
}

/* Focus visible for accessibility (Google SEO / a11y) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
.search-btn:focus-visible {
    outline: 2px solid #ff2a14;
    outline-offset: 2px;
}

/* Minimum touch target 44px for mobile (Google recommendation) */
@media (max-width: 899px) {
    .nav-menu-item a,
    .search-btn,
    .header-module .nav-menu-item {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .brand .logo {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

/* Main content area - clear structure for crawlers */
#main-content {
    min-height: 1px;
}

/* Footer semantic clarity + touch targets ≥44px (accessibility report) */
#footer .sitemap a {
    word-break: break-word;
}
@media (max-width: 899px) {
    #footer .sitemap a {
        min-height: 44px;
        min-width: 44px;
        padding: 0.5rem 0.75rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* Reduce layout shift: reserve space for images (CLS) */
.sitemap .site-name-footer {
    display: inline-block;
    vertical-align: middle;
}

/* Breadcrumb (SEO + UX) - visible trail + schema.org */
.breadcrumb-wrapper { margin-bottom: 12px; font-size: 13px; }
.breadcrumb-nav { margin-bottom: 12px; font-size: 13px; }
.breadcrumb,
.breadcrumb-wrapper .breadcrumb {
    list-style: none;
    margin: 0 0 12px 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 0;
}
.breadcrumb-item,
.breadcrumb-wrapper .breadcrumb-item {
    display: inline-flex;
    align-items: center;
}
.breadcrumb-item:not(:last-child)::after,
.breadcrumb-wrapper .breadcrumb-item:not(:last-child)::after {
    content: "›";
    margin: 0 6px;
    color: #888;
}
.breadcrumb-item a,
.breadcrumb-wrapper .breadcrumb-item a {
    color: #666;
}
.breadcrumb-item a:hover,
.breadcrumb-wrapper .breadcrumb-item a:hover {
    color: #ff2a14;
}
.breadcrumb-wrapper .breadcrumb-item span { color: inherit; }

/* Visually hidden for screen readers / crawlers (H1 on listing) */
.visually-hidden, .catalog-seo-title.visually-hidden {
    position: absolute !important; width: 1px !important; height: 1px !important;
    padding: 0 !important; margin: -1px !important; overflow: hidden !important;
    clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important;
}

/* Skip link for accessibility (a11y / Google) */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    padding: 8px 12px;
    background: #1a1a1a;
    color: #fff;
    z-index: 10000;
    text-decoration: none;
    font-size: 14px;
}
.skip-link:focus {
    top: 0;
    outline: 2px solid #ff2a14;
    outline-offset: 2px;
}
