/* Slate footer with closing call to action (homepage, staging test) */
.ys-slate {
    position: relative;
    overflow: hidden;
    padding: 110px 0 0;
    color: #ffffff;
    background: linear-gradient(180deg, #4f5b7c 0%, #69749a 55%, #8a93b2 100%);
}

/* Call to action */
.ys-slate-cta {
    text-align: center;
    max-width: 760px;
}
.ys-slate-cta h2 {
    margin: 0;
    font-size: clamp(2.1em, 4vw, 3.3em);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #ffffff;
}
.ys-slate-cta p {
    margin: 20px auto 0;
    max-width: 560px;
    font-size: 1.05em;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
}
.ys-slate-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}
.ys-slate-btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    border-radius: 12px;
    background: #ed5000;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.92em;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 14px 30px -12px rgba(237, 80, 0, 0.75);
    transition: background 0.2s ease, transform 0.2s ease;
}
.ys-slate-btn:hover {
    background: #d64600;
    color: #ffffff;
    transform: translateY(-2px);
}
.ys-slate-btn.is-ghost {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: none;
}
.ys-slate-btn.is-ghost:hover {
    background: rgba(255, 255, 255, 0.22);
}

/* Glass cards */
.ys-slate-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr 1.1fr 1.2fr;
    gap: 14px;
    margin-top: 90px;
}
.ys-slate-card {
    border-radius: 16px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.ys-slate-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.ys-slate-brand img {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #ffffff;
    padding: 6px;
}
.ys-slate-brand p {
    margin: 0;
    font-size: 0.86em;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
}
.ys-slate-client {
    margin-top: auto;
    align-self: flex-start;
    padding: 10px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
    color: #ed5000;
    font-weight: 700;
    font-size: 0.85em;
    text-decoration: none;
}
.ys-slate-client:hover {
    background: #ffffff;
    color: #d64600;
}
.ys-slate-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.ys-slate-links h4 {
    margin: 0 0 12px;
    font-size: 0.82em;
    font-weight: 700;
    color: #ffffff;
}
.ys-slate-links ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.ys-slate-links li {
    margin: 0 0 8px;
    font-size: 0.82em;
    line-height: 1.4;
}
.ys-slate-links li::before {
    content: '•';
    margin-right: 7px;
    color: rgba(255, 255, 255, 0.5);
}
.ys-slate-links a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
}
.ys-slate-links a:hover {
    color: #ffffff;
}
.ys-slate-post {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.2s ease;
}
.ys-slate-post:hover {
    color: #ffffff;
    transform: translateY(-3px);
}
.ys-slate-post img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}
.ys-slate-post-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px 18px;
}
.ys-slate-post-body small {
    font-size: 0.72em;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}
.ys-slate-post-body strong {
    font-size: 0.95em;
    line-height: 1.4;
}

/* Bottom bar */
.ys-slate-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
    font-size: 0.82em;
    color: rgba(255, 255, 255, 0.85);
}
.ys-slate-social {
    display: flex;
    gap: 18px;
}
.ys-slate-social a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}
.ys-slate-social a:hover {
    color: #ffffff;
}

/* Large faint brand word along the bottom edge */
.ys-slate-word {
    margin-top: 40px;
    text-align: center;
    font-size: clamp(4em, 15vw, 14em);
    font-weight: 800;
    line-height: 0.78;
    letter-spacing: -0.05em;
    white-space: nowrap;
    color: transparent;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    user-select: none;
    pointer-events: none;
}

@media (max-width: 1100px) {
    .ys-slate-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 640px) {
    .ys-slate {
        padding-top: 80px;
    }
    .ys-slate-grid {
        grid-template-columns: 1fr;
        margin-top: 60px;
    }
    .ys-slate-bottom {
        justify-content: center;
        text-align: center;
    }
}

/* Shared wrapper for pages that do not load home.css */
html body .ys-slate .hx-wrap {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
}
html body .ys-slate h2,
html body .ys-slate h4 {
    text-transform: none !important;
    font-family: inherit;
}
html body .ys-slate .ys-slate-cta h2 {
    color: #ffffff !important;
}
html body .ys-slate .ys-slate-links h4 {
    color: #ffffff !important;
}
html body .ys-slate .ys-slate-links ul {
    padding: 0 !important;
    margin: 0 !important;
}
html body .ys-slate .ys-slate-links li {
    list-style: none !important;
}
.ys-slate-pay {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78em;
    color: rgba(255, 255, 255, 0.75);
}
.ys-slate-pay img {
    height: 26px;
    width: auto;
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
}
@media (max-width: 640px) {
    .ys-slate-bottom {
        flex-direction: column;
    }
    .ys-slate-links {
        grid-template-columns: 1fr 1fr;
    }
    .ys-slate-word {
        font-size: 22vw;
    }
}

/* Inner pages: keep full width and readable text */
html body footer.ys-slate .hx-wrap {
    max-width: 1200px !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
}
html body footer.ys-slate .ys-slate-cta {
    max-width: 760px !important;
}
html body footer.ys-slate .ys-slate-cta p {
    color: rgba(255, 255, 255, 0.85) !important;
}
html body footer.ys-slate .ys-slate-brand p {
    color: rgba(255, 255, 255, 0.82) !important;
}

/* 1.2.505: cleaner footer link lists */
html body footer.ys-slate .ys-slate-grid {
    grid-template-columns: 0.9fr 1.35fr 1.35fr 1.1fr;
}
html body footer.ys-slate .ys-slate-links {
    gap: 24px;
    padding: 26px 26px 22px;
}
html body footer.ys-slate .ys-slate-links h4 {
    margin: 0 0 14px !important;
    font-size: 0.78em !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    color: rgba(255, 255, 255, 0.6) !important;
}
html body footer.ys-slate .ys-slate-links li {
    margin: 0 0 10px !important;
    padding: 0 !important;
    font-size: 0.86em !important;
    line-height: 1.35 !important;
}
html body footer.ys-slate .ys-slate-links li::before {
    content: none !important;
}
html body footer.ys-slate .ys-slate-links a {
    display: inline-block;
    color: #ffffff !important;
    opacity: 0.88;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
html body footer.ys-slate .ys-slate-links a:hover {
    opacity: 1;
    transform: translateX(3px);
}
@media (max-width: 1100px) {
    html body footer.ys-slate .ys-slate-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 640px) {
    html body footer.ys-slate .ys-slate-grid {
        grid-template-columns: 1fr;
    }
}

/* 1.2.506: one wide link card with four columns */
html body footer.ys-slate .ys-slate-grid {
    grid-template-columns: 0.85fr 2.6fr 1fr;
}
html body footer.ys-slate .ys-slate-links {
    grid-template-columns: 0.8fr 1fr 1fr 1.15fr;
    gap: 28px;
}
@media (max-width: 1100px) {
    html body footer.ys-slate .ys-slate-grid {
        grid-template-columns: 1fr 1fr;
    }
    html body footer.ys-slate .ys-slate-links {
        grid-column: 1 / -1;
        order: -1;
    }
}
@media (max-width: 640px) {
    html body footer.ys-slate .ys-slate-grid {
        grid-template-columns: 1fr;
    }
    html body footer.ys-slate .ys-slate-links {
        grid-template-columns: 1fr 1fr;
    }
}

/* 1.2.507: fixed base size so inner pages (18px root) match the homepage */
html body footer.ys-slate {
    font-size: 16px !important;
}
