/* Homepage reference layout. Scoped to #top.home-reference-layout so tool pages
   keep their existing header. Existing text, font, links and buttons are reused. */
html:has(body#top.home-reference-layout) {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    overflow-x: clip !important;
    box-sizing: border-box !important;
}
html body#top.home-reference-layout {
    --reference-surface: #ffffff;
    --reference-text: #0d1f36;
    --reference-muted: #495f7a;
    --reference-accent: #2f5f9c;
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding-top: 24px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow-x: clip !important;
    box-sizing: border-box !important;
    background: var(--reference-surface) !important;
}
html[data-theme="dark"] body#top.home-reference-layout,
html.theme-dark body#top.home-reference-layout {
    --reference-surface: #070b12;
    --reference-text: #f1f6fc;
    --reference-muted: #b4c5d8;
    --reference-accent: #79b8f4;
}

html body#top.home-reference-layout .home-reference-wash {
    position: absolute;
    inset: 0 0 auto;
    height: 148px;
    pointer-events: none;
    background: linear-gradient(180deg, #0d1f36 0%, #2f5f9c 34%, #adc9e8 68%, #edf4fb 88%, #ffffff 100%);
}
html[data-theme="dark"] body#top.home-reference-layout .home-reference-wash,
html.theme-dark body#top.home-reference-layout .home-reference-wash {
    background: linear-gradient(180deg, #10233c 0%, #244b7d 34%, #14283f 70%, #070b12 100%);
}

html body#top.home-reference-layout .navbar {
    position: relative !important;
    top: 0 !important;
    width: calc(100% - 48px) !important;
    max-width: 1180px !important;
    height: 64px !important;
    margin: 0 auto !important;
    border: 1px solid rgba(47, 95, 156, .16) !important;
    border-radius: 6px !important;
    background: var(--reference-surface) !important;
    box-shadow: 0 6px 26px rgba(13, 31, 54, .16) !important;
    overflow: visible !important;
    z-index: 1000 !important;
}
html body#top.home-reference-layout .nav-inner {
    width: 100% !important;
    max-width: none !important;
    padding: 0 22px !important;
    gap: 20px !important;
}
html body#top.home-reference-layout .desktop-nav-links {
    margin: 0 0 0 auto !important;
    justify-content: flex-end !important;
    gap: 4px !important;
}
html body#top.home-reference-layout .nav-actions-right {
    flex-shrink: 0 !important;
    margin-left: 0 !important;
}

html body#top.home-reference-layout .home-hero-shell.deepl-hero-shell {
    position: relative !important;
    isolation: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    background: transparent !important;
    border: 0 !important;
    margin: 20px auto 0 !important;
    padding: 56px 24px 50px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}
html body#top.home-reference-layout .deepl-hero-grid {
    display: block !important;
    width: 100% !important;
    max-width: 1180px !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    background: transparent !important;
    box-sizing: border-box !important;
}
html body#top.home-reference-layout .deepl-hero-left {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    text-align: center !important;
    background: transparent !important;
    box-sizing: border-box !important;
}
html body#top.home-reference-layout .deepl-hero-left .hero {
    width: 100% !important;
    max-width: 1180px !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 auto 24px !important;
    text-align: center !important;
    box-sizing: border-box !important;
}
html body#top.home-reference-layout .deepl-hero-left .hero h1 {
    max-width: 100% !important;
    margin: 0 auto 16px !important;
    font-size: clamp(34px, 3.4vw, 48px) !important;
    line-height: 1.18 !important;
    letter-spacing: -.035em !important;
    color: var(--reference-text) !important;
    text-align: center !important;
    white-space: nowrap !important;
}
html body#top.home-reference-layout .home-hero-shell .hero h1 .hero-word-effect {
    display: inline-block !important;
    position: relative !important;
    font-style: italic !important;
    font-weight: 800 !important;
    color: #2F5F9C !important;
    background: linear-gradient(135deg, #2F5F9C 0%, #4fa3e7 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    white-space: nowrap !important;
    padding-right: 0.18em !important;
    margin-right: -0.18em !important;
    clip-path: none !important;
    animation: heroWordShine 2.6s ease-in-out infinite !important;
    text-shadow: none !important;
    filter: none !important;
}
html body#top.home-reference-layout .home-hero-shell .hero h1 .hero-word-effect::after {
    content: "" !important;
    display: inline-block !important;
    position: static !important;
    vertical-align: 0.05em !important;
    width: 2.5px !important;
    height: 0.82em !important;
    margin-left: 7px !important;
    border-radius: 3px !important;
    background: #2F5F9C !important;
    -webkit-text-fill-color: #2F5F9C !important;
    box-shadow: none !important;
    opacity: 1 !important;
    animation: smoothCursorPulse 0.85s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate !important;
}
@keyframes heroWordCursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
html[data-theme="dark"] body#top.home-reference-layout .home-hero-shell .hero h1 .hero-word-effect,
html.theme-dark body#top.home-reference-layout .home-hero-shell .hero h1 .hero-word-effect {
    color: #4fbce7 !important;
    background: linear-gradient(135deg, #4fbce7 0%, #6fa8f5 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}
html[data-theme="dark"] body#top.home-reference-layout .home-hero-shell .hero h1 .hero-word-effect::after,
html.theme-dark body#top.home-reference-layout .home-hero-shell .hero h1 .hero-word-effect::after {
    background: #4fbce7 !important;
    -webkit-text-fill-color: #4fbce7 !important;
}
html body#top.home-reference-layout .deepl-hero-left .hero p {
    max-width: 680px !important;
    margin: 0 auto !important;
    text-align: center !important;
    color: var(--reference-muted) !important;
}
html body#top.home-reference-layout .home-hero-shell .search-container.home-above-popular-search {
    width: 100% !important;
    max-width: 720px !important;
    margin: 32px auto 0 auto !important;
    padding: 0 !important;
}
.search-suggestion-cat {
    display: none !important;
}

@media (max-width: 1024px) {
    html body#top.home-reference-layout .desktop-nav-links { display: none !important; }
    html body#top.home-reference-layout .nav-actions-right { margin-left: auto !important; }
}
@media (max-width: 760px) {
    html body#top.home-reference-layout .navbar {
        width: calc(100% - 32px) !important;
        max-width: calc(100% - 32px) !important;
        margin: 0 auto !important;
    }
    html body#top.home-reference-layout .home-hero-shell.deepl-hero-shell {
        width: calc(100% - 32px) !important;
        max-width: calc(100% - 32px) !important;
        padding: 48px 0 40px !important;
        margin: 16px auto 0 !important;
    }
}
@media (max-width: 640px) {
    html body#top.home-reference-layout { padding-top: 12px !important; }
    html body#top.home-reference-layout .home-reference-wash { height: 125px; }
    html body#top.home-reference-layout .navbar {
        top: 0 !important;
        width: calc(100% - 24px) !important;
        max-width: calc(100% - 24px) !important;
        height: 58px !important;
        margin: 0 auto !important;
    }
    html body#top.home-reference-layout .nav-inner { padding: 0 12px !important; gap: 8px !important; }
    html body#top.home-reference-layout .nav-actions-right { gap: 8px !important; }
    html body#top.home-reference-layout .nav-logo,
    html body#top.home-reference-layout .nav-logo-wordmark { font-size: 17.5px !important; }
    html body#top.home-reference-layout .home-hero-shell.deepl-hero-shell {
        width: calc(100% - 24px) !important;
        max-width: calc(100% - 24px) !important;
        padding: 40px 4px 30px !important;
        margin: 14px auto 0 !important;
    }
    html body#top.home-reference-layout .deepl-hero-left .hero {
        margin: 0 auto 18px !important;
    }
    .hero-title-line1 { display: block !important; margin-bottom: 3px !important; }
    .hero-title-line2 { display: block !important; white-space: nowrap !important; }
    html body#top.home-reference-layout .deepl-hero-left .hero h1 {
        font-size: clamp(24px, 6.8vw, 28px) !important;
        letter-spacing: -0.04em !important;
        line-height: 1.22 !important;
        margin: 0 auto 12px !important;
        white-space: normal !important;
        max-width: 100% !important;
    }
    html body#top.home-reference-layout .deepl-hero-left .hero p {
        font-size: clamp(13px, 3.5vw, 14.5px) !important;
        line-height: 1.58 !important;
        max-width: 100% !important;
        padding: 0 4px !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }
    html body#top.home-reference-layout .home-hero-shell .search-container.home-above-popular-search {
        margin: 20px auto 0 auto !important;
    }
}
@media (max-width: 380px) {
    html body#top.home-reference-layout .nav-logo-wordmark { font-size: 15px !important; }
    html body#top.home-reference-layout .nav-logo img {
        width: 24px !important;
        height: 24px !important;
        min-width: 24px !important;
        min-height: 24px !important;
    }
}
html body#top.home-reference-layout .navbar,
html body#top.home-reference-layout .navbar::before,
html body#top.home-reference-layout .navbar::after,
html body#top.home-reference-layout .navbar .nav-inner,
html body#top.home-reference-layout .navbar .nav-inner::before,
html body#top.home-reference-layout .navbar .nav-inner::after {
  border-radius: 6px !important;
}
/* FAQ question bars: slightly lighter blue (Light mode only, Homepage). Dark mode untouched. */
html:not([data-theme="dark"]):not(.theme-dark) body#top.home-page:not(#_x):not(#_y):not(#_z):not(#_w) .homepage-faq :is(.faq-question, .faq-item.is-active .faq-question, .faq-item.open .faq-question) {
    background: #4A7BBA !important;
    background-color: #4A7BBA !important;
}
html:not([data-theme="dark"]):not(.theme-dark) body#top.home-page:not(#_x):not(#_y):not(#_z):not(#_w) .homepage-faq .faq-question:hover {
    background: #3A6AA8 !important;
    background-color: #3A6AA8 !important;
}
html:not([data-theme="dark"]):not(.theme-dark) body#top.home-page:not(#_x):not(#_y):not(#_z):not(#_w) .homepage-faq .faq-item {
    border-color: #4A7BBA !important;
}

/* Mediavine Official Publisher Partner Badge */
.founder-partner-badge {
    margin-top: 14px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
}
.founder-partner-badge a {
    display: inline-block !important;
    text-decoration: none !important;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), filter 0.22s ease !important;
}
.founder-partner-badge a:hover {
    transform: translateY(-2px) scale(1.04) !important;
}
.founder-partner-badge img {
    display: block !important;
    max-width: 118px !important;
    height: auto !important;
    filter: drop-shadow(0 4px 12px rgba(47, 95, 156, 0.16)) !important;
}
html[data-theme="dark"] .founder-partner-badge img,
html.theme-dark .founder-partner-badge img {
    filter: drop-shadow(0 4px 14px rgba(79, 188, 231, 0.22)) !important;
}
