/* Delatool SEO landing pages – läsbar på mörk site-bakgrund (#091c32) */

main.seo-landing {
    max-width: 980px;
    margin: 32px auto 72px;
    padding: 0 20px;
    line-height: 1.75;
}

/* === Kortlayout (rekommenderad) === */
.seo-landing__card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(9, 28, 50, 0.45);
    color: #334155;
}

.seo-landing__breadcrumb {
    font-size: 0.875rem;
    padding: 18px 40px 0;
    color: #64748b;
}

.seo-landing__breadcrumb a {
    color: #00539c;
    text-decoration: none;
    font-weight: 500;
}

.seo-landing__breadcrumb a:hover {
    text-decoration: underline;
}

.seo-landing__breadcrumb [aria-current="page"] {
    color: #0b2340;
    font-weight: 600;
}

.seo-landing__hero {
    background: linear-gradient(125deg, #00539c 0%, #003b70 50%, #02264a 100%);
    padding: 32px 40px 36px;
    color: #ffffff;
}

.seo-landing__hero h1 {
    margin: 0;
    font-size: clamp(1.65rem, 3.5vw, 2.35rem);
    font-weight: 700;
    line-height: 1.25;
    color: #ffffff !important;
    letter-spacing: -0.02em;
}

.seo-landing__body {
    padding: 28px 40px 40px;
}

/* === Äldre platt markup (nav + h1 direkt under main) === */
main.seo-landing > nav[aria-label="Breadcrumb"],
main.seo-landing > .seo-landing__breadcrumb {
    font-size: 0.875rem;
    margin-bottom: 0 !important;
    padding: 18px 40px 0;
    color: #64748b;
    background: #ffffff;
    border-radius: 18px 18px 0 0;
}

main.seo-landing > nav[aria-label="Breadcrumb"] a,
main.seo-landing > .seo-landing__breadcrumb a {
    color: #00539c !important;
    text-decoration: none;
    font-weight: 500;
}

main.seo-landing > nav[aria-label="Breadcrumb"] a:hover,
main.seo-landing > .seo-landing__breadcrumb a:hover {
    text-decoration: underline;
}

main.seo-landing > h1 {
    font-size: clamp(1.65rem, 3.5vw, 2.35rem) !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    color: #ffffff !important;
    background: linear-gradient(125deg, #00539c 0%, #003b70 50%, #02264a 100%) !important;
    margin: 0 !important;
    padding: 28px 40px 32px !important;
}

main.seo-landing:has(> nav) {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(9, 28, 50, 0.45);
    padding: 0 0 40px;
    color: #334155;
}

main.seo-landing:has(> nav) > :not(nav):not(h1):not(script) {
    margin-left: 40px;
    margin-right: 40px;
}

main.seo-landing:has(> nav) > section {
    margin-left: 40px;
    margin-right: 40px;
}

/* Sida utan brödsmulor (t.ex. Hilti-jämförelse) */
main.seo-landing:not(:has(> nav)) {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(9, 28, 50, 0.45);
    padding: 0 0 40px;
    color: #334155;
}

main.seo-landing:not(:has(> nav)) > h1 {
    font-size: clamp(1.65rem, 3.5vw, 2.35rem) !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    color: #ffffff !important;
    background: linear-gradient(125deg, #00539c 0%, #003b70 50%, #02264a 100%) !important;
    margin: 0 !important;
    padding: 32px 40px 36px !important;
    border-radius: 18px 18px 0 0;
}

main.seo-landing:not(:has(> nav)) > :not(h1):not(script) {
    margin-left: 40px;
    margin-right: 40px;
}

/* === Gemensam typografi === */
.seo-landing__body > p:first-child,
main.seo-landing:has(> nav) > p:first-of-type {
    margin-top: 1.25rem;
    font-size: 1.05rem;
}

.seo-landing__body h2,
main.seo-landing h2 {
    color: #0b2340 !important;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 2rem 0 0.75rem;
    line-height: 1.3;
}

.seo-landing__body p,
.seo-landing__body li,
main.seo-landing p,
main.seo-landing li {
    color: #334155;
}

.seo-landing__body a:not(.seo-btn),
main.seo-landing a:not(.seo-btn) {
    color: #00539c;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.seo-landing__body a:not(.seo-btn):hover,
main.seo-landing a:not(.seo-btn):hover {
    color: #003b70;
}

.seo-landing__body ul,
.seo-landing__body ol,
main.seo-landing ul,
main.seo-landing ol {
    padding-left: 1.35rem;
    margin: 0.75rem 0 1.25rem;
}

.seo-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0 1.5rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(10, 45, 90, 0.08);
    font-size: 0.95rem;
}

.seo-table thead tr {
    background: #02264a;
    color: #ffffff;
}

.seo-table th,
.seo-table td {
    padding: 12px 16px;
    text-align: left;
    vertical-align: top;
}

.seo-table tbody td {
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
    color: #334155;
}

.seo-table--compare thead tr {
    background: #f0f4f8;
    color: #0b2340;
}

main.seo-landing table:not(.seo-table) {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0 1.5rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(10, 45, 90, 0.08);
}

main.seo-landing table:not(.seo-table) thead tr {
    background: #02264a;
    color: #ffffff;
}

main.seo-landing table:not(.seo-table) th,
main.seo-landing table:not(.seo-table) td {
    padding: 12px 16px;
    color: #334155;
    border-bottom: 1px solid #e2e8f0;
}

.seo-btn {
    display: inline-block;
    background: #ffd400;
    color: #02264a !important;
    padding: 14px 26px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none !important;
    margin: 14px 12px 14px 0;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.seo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 212, 0, 0.45);
    color: #02264a !important;
}

.seo-btn--primary {
    background: #00539c;
    color: #ffffff !important;
}

.seo-btn--primary:hover {
    background: #003b70;
    box-shadow: 0 8px 24px rgba(0, 83, 156, 0.35);
    color: #ffffff !important;
}

.seo-btn--ghost {
    background: transparent;
    color: #00539c !important;
    padding: 14px 8px;
    box-shadow: none;
}

.seo-related,
main.seo-landing > section[aria-label] {
    margin-top: 2rem !important;
    padding: 22px 24px !important;
    background: #f7faff !important;
    border: 1px solid #dce9f7 !important;
    border-radius: 12px !important;
}

.seo-related h2,
main.seo-landing > section[aria-label] h2 {
    margin-top: 0 !important;
    font-size: 1.15rem !important;
    color: #02264a !important;
}

@media (max-width: 640px) {
    main.seo-landing {
        margin: 20px auto 48px;
        padding: 0 12px;
    }

    .seo-landing__breadcrumb,
    main.seo-landing > nav[aria-label="Breadcrumb"] {
        padding-left: 20px;
        padding-right: 20px;
    }

    .seo-landing__hero,
    main.seo-landing > h1 {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .seo-landing__body,
    main.seo-landing:has(> nav) > :not(nav):not(h1):not(script) {
        margin-left: 20px;
        margin-right: 20px;
    }
}
