/* DarkSteady Hub — shared SEO content block appended below each tool.
   Namespaced under .dh-seo so it never collides with a tool's own CSS.
   Loaded AFTER each tool's style.css so the two body overrides below win. */

/* Let the page grow & scroll so the content below the app is reachable.
   - Flex-centered tools: stack the app and this block vertically instead of side-by-side.
   - Full-viewport apps (normal-map): flip vertical overflow to auto so it can scroll.
   - align-items varies per tool (some use center, some flex-start) — force "stretch" here
     and center the actual app root explicitly below, so horizontal centering never
     depends on each tool's original (inconsistent) body rule. */
body {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    height: auto !important;
    min-height: 100vh;
    overflow-y: auto !important;
    box-sizing: border-box;
}

/* Center each tool's own app root regardless of its original centering method. */
body > .app-container,
body > .app,
body > #app {
    width: 100%;
    margin-left: auto !important;
    margin-right: auto !important;
    flex-shrink: 0;
}

/* Breathing room above the app itself — only for the flex-centered layout tools.
   Full-viewport apps (.app, e.g. normal-map-generator) keep height:100vh untouched
   so their internal panel layout isn't squeezed. */
body > .app-container {
    margin-top: 100px;
}

@media (max-width: 600px) {
    body > .app-container {
        margin-top: 32px;
    }
}

.dh-seo {
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
    padding: 64px 24px 96px;
    box-sizing: border-box;
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
    color: #c9c9c9;
    text-align: left;
    line-height: 1.7;
}

.dh-seo-inner {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 56px;
}

.dh-seo h2 {
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin: 44px 0 16px;
    letter-spacing: 0.2px;
}

.dh-seo h2:first-of-type {
    margin-top: 0;
}

.dh-seo h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin: 22px 0 8px;
}

.dh-seo p {
    font-size: 1rem;
    color: #b4b4b4;
    margin: 0 0 16px;
    max-width: 760px;
}

.dh-seo a {
    color: #a3ff3c;
    text-decoration: none;
    border-bottom: 1px solid rgba(163, 255, 60, 0.35);
    transition: border-color 0.2s, color 0.2s;
}

.dh-seo a:hover {
    color: #c4ff85;
    border-bottom-color: #a3ff3c;
}

.dh-seo ul,
.dh-seo ol {
    margin: 0 0 20px;
    padding-left: 22px;
    max-width: 760px;
}

.dh-seo li {
    font-size: 1rem;
    color: #b4b4b4;
    margin-bottom: 10px;
}

.dh-seo li strong {
    color: #e8e8e8;
    font-weight: 700;
}

/* Feature grid */
.dh-seo-features {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    max-width: none;
}

.dh-seo-features li {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 16px 18px;
    margin: 0;
}

/* FAQ */
.dh-seo-faq {
    max-width: 820px;
}

.dh-seo-faq details {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 4px 20px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.dh-seo-faq summary {
    cursor: pointer;
    padding: 16px 0;
    font-weight: 700;
    color: #ffffff;
    list-style: none;
    position: relative;
    padding-right: 28px;
}

.dh-seo-faq summary::-webkit-details-marker {
    display: none;
}

.dh-seo-faq summary::after {
    content: "+";
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    color: #a3ff3c;
    transition: transform 0.2s;
}

.dh-seo-faq details[open] summary::after {
    content: "\2013";
}

.dh-seo-faq details > p {
    padding-bottom: 16px;
    margin: 0;
}

/* Back-to-hub footer line */
.dh-seo-hublink {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.95rem;
    color: #8f8f8f;
}

.dh-seo-related {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.dh-seo-related a {
    border: 1px solid rgba(163, 255, 60, 0.25);
    border-bottom: 1px solid rgba(163, 255, 60, 0.25);
    border-radius: 100px;
    padding: 7px 16px;
    font-size: 0.85rem;
}

@media (max-width: 600px) {
    .dh-seo {
        padding: 40px 18px 80px;
    }

    .dh-seo h2 {
        font-size: 1.3rem;
    }
}
