/* Load after the supplied Appix style/responsive files and KiloDrive's domain
   components. These bridges let CMS and legal/manual markup retain semantics
   without loading the retired theme's global custom.css. */
:root {
    --primary-color: #102015;
    --secondary-color: #f0f9ee;
    --bg-color: #fff;
    --text-color: #47564b;
    --accent-color: #6cc85d;
    --accent-secondary-color: #fff;
    --white-color: #fff;
    --divider-color: #dcebd9;
    --dark-divider-color: rgba(255,255,255,.16);
    --default-font: Manrope, Arial, sans-serif;
}

body.kd-site-body { font-family: Manrope, Arial, sans-serif; }
.kd-site-body img { max-width: 100%; }
.kd-site-body :where(h1,h2,h3,h4,h5,h6) { line-height: 1.2; }
.kd-site-body main :where(header,footer) {
    position: static;
    width: auto;
    z-index: auto;
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
}
.kd-site-body main .blog-post-header { margin: 0 auto 32px; }
.kd-site-body main .blog-article-footer { margin-top: 40px; padding-top: 24px; }
.kd-site-body .kd-site-header { position: sticky; z-index: 1000; transition: none; }
.kd-site-body .kd-contact-hero { margin-top: 0; }
.kd-site-body .kd-pricing-page { margin-top: 0; }
.kd-site-body .kd-home-hero.banner_section {
    /* The KiloDrive inner grid already owns responsive hero spacing. Appix's
       outer demo banner padding would otherwise add a second header gap. */
    padding: 0;
    margin-top: 0;
}

/* Appix's demo resets every list item. Restore actual article/document lists,
   without changing navigation, pricing cards or application screenshots. */
.post-entry :where(ul,ol):not([class]),
.support-route-panel :where(ul,ol):not([class]) {
    padding-inline-start: 1.5rem;
    margin-block: 1rem;
}
.post-entry ul:not([class]) > li,
.support-route-panel ul:not([class]) > li { list-style: disc; margin-block: .5rem; }
.post-entry ol:not([class]) > li,
.support-route-panel ol:not([class]) > li { list-style: decimal; margin-block: .5rem; }
.post-entry :where(h2,h3,h4) { margin-block: 1.4em .6em; }
.post-entry :where(p,figure) { margin-bottom: 1.25rem; }
.post-entry blockquote { border-inline-start: 4px solid #6cc85d; padding: 18px 24px; background: #f0f9ee; }

/* Existing server-rendered actions use btn-default; mirror Appix dark buttons
   while preserving visible focus, native button behavior and long labels. */
.kd-site-body .btn-default {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 22px;
    max-width: 100%;
    white-space: normal;
    text-align: center;
    text-transform: none;
    cursor: pointer;
    text-decoration: none;
    transition: background-color .2s, color .2s;
}
.kd-site-body .btn-default::before,.kd-site-body .btn-default::after { content: none; }
.kd-site-body :where(a,button,summary,input,select,textarea):focus-visible {
    outline: 3px solid #2f75ff !important;
    outline-offset: 3px !important;
}
.kd-site-body .btn-default:disabled { opacity: .6; cursor: not-allowed; }

/* Map KiloDrive's dynamic region-aware footer to the theme's spacious footer
   columns. Do not inherit demo footer spacing in nested article elements. */
.kd-site-body > .main-footer { padding: 48px 0 0; margin-top: 0; }
.main-footer .footer-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 44px;
}
.main-footer .footer-header .section-title { max-width: 720px; }
.main-footer .footer-header h2 { font-size: clamp(1.8rem,3vw,2.6rem); margin: 0 0 16px; }
.main-footer .app-download-buttons { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.main-footer .about-footer { max-width: 360px; }
.main-footer .about-footer-content { margin-top: 22px; }
.main-footer .kilodrive-brand-footer { gap: 10px; font-size: 1.35rem; }
.main-footer .footer-links-box { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; margin-left: 24px; }
.main-footer .footer-links { min-width: 0; }
.main-footer .footer-links h3 { font-size: 1.1rem; margin: 0 0 18px; }
.main-footer .footer-links ul { margin: 0; padding: 0; list-style: none; }
.main-footer .footer-links li { list-style: none; line-height: 1.4; }
.main-footer .footer-links a { overflow-wrap: anywhere; }
.main-footer .footer-copyright { margin-top: 40px; padding: 26px 0; }
.main-footer .footer-copyright-text p { margin: 0; }
.kd-site-body .contact_form form .form-group textarea.form-control { height: auto; min-height: 155px; }
.kd-site-body .contact_form { padding-inline: 0 !important; }
.kd-contact-form > .container > .row { --bs-gutter-x: 1.5rem; }
.kd-site-body .btn-primary { background-color: #183e24; border-color: #183e24; color: #fff; }
.kd-site-body .btn-primary:hover { background-color: #275632; border-color: #275632; }
.blog-breadcrumb, .blog-breadcrumb a, .blog-breadcrumb [aria-current="page"] span,
.blog-breadcrumb li + li::before { color: #294b32; }

@media (max-width:991px) {
    .main-footer .footer-links-box { margin: 32px 0 0; }
    .main-footer .about-footer { max-width: 600px; }
}
@media (max-width:600px) {
    .main-footer .footer-links-box { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 18px; }
    .main-footer .footer-header { margin-bottom: 28px; }
}
/* The comparison's heading contains the only plan prices. Keep it visible
   above the stacked benefit rows, rather than clipping it on small screens. */
@media (max-width:650px) {
    .kd-pricing-comparison thead {
        position: static;
        display: block;
        width: 100%;
        height: auto;
        overflow: visible;
        clip-path: none;
    }
    .kd-pricing-comparison thead tr {
        display: grid;
        grid-template-columns: repeat(3,minmax(0,1fr));
    }
    .kd-pricing-comparison thead th { min-width: 0; padding: 14px 6px; border: 0; }
    .kd-pricing-comparison thead th:first-child { grid-column: 1 / -1; padding: 12px 16px; }
    .kd-pricing-plan-name { font-size: 1rem; }
    .kd-pricing-price strong { font-size: .9rem; white-space: normal; overflow-wrap: anywhere; }
    .kd-pricing-price small { font-size: .72rem; }
}
@media (max-width:359px) {
    .main-footer .footer-links-box { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion:reduce) {
    .kd-site-body *, .kd-site-body *::before, .kd-site-body *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
