:root {
    --dp-bg: #ffffff;
    --dp-text: #111111;
    --dp-muted: #555555;
    --dp-line: #e6e6e6;
    --dp-surface: #ffffff;
    --dp-btn-bg: #111111;
    --dp-btn-hover: #2a2a2a;
    --dp-btn-text: #ffffff;
    --dp-card: #fafafa;
    --dp-shadow: 0 12px 32px rgba(0,0,0,0.08);
    --dp-radius: 16px;
    --dp-max: 1200px;
}

body.dp-homepage-render {
    background: var(--dp-bg);
}

body.dp-homepage-render .wp-site-blocks,
body.dp-homepage-render .site,
body.dp-homepage-render #page {
    margin: 0;
    padding: 0;
    max-width: none;
}

.dp-homepage,
.dp-homepage * {
    box-sizing: border-box;
}

.dp-homepage {
    min-height: 100vh;
    background: var(--dp-bg);
    color: var(--dp-text);
}

.dp-shell {
    min-height: 100vh;
    max-width: var(--dp-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
}

.dp-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 20px 0 16px;
}

.dp-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--dp-text);
}

.dp-brand-logo-wrap {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.dp-brand-logo {
    display: block;
    max-width: 44px;
    max-height: 44px;
    width: auto;
    height: auto;
}

.dp-brandtext {
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
}

.dp-toplinks,
.dp-bottom-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.dp-link,
.dp-link:visited {
    color: var(--dp-text);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

.dp-link:hover,
.dp-link:focus {
    text-decoration: underline;
}

.dp-link-button {
    appearance: none;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.dp-main {
    flex: 1 0 auto;
    display: flex;
}

.dp-center-stage {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.dp-center-inner {
    width: 100%;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
}

.dp-primary-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: nowrap;
}

.dp-btn {
    appearance: none;
    border: 0;
    border-radius: var(--dp-radius);
    background: var(--dp-btn-bg);
    color: var(--dp-btn-text);
    padding: 16px 34px;
    min-width: 180px;
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    cursor: pointer;
    box-shadow: var(--dp-shadow);
    transition: background .18s ease, transform .18s ease;
}

.dp-btn:hover,
.dp-btn:focus {
    background: var(--dp-btn-hover);
    transform: translateY(-1px);
}

.dp-entry-panels {
    width: 100%;
    max-width: 520px;
    min-height: 176px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.dp-entry-panel {
    width: 100%;
    background: var(--dp-surface);
    border: 1px solid var(--dp-line);
    border-radius: 18px;
    padding: 22px;
    box-shadow: var(--dp-shadow);
}

.dp-panel-title {
    margin: 0 0 16px;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 700;
}

.dp-panel-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.dp-panel-link,
.dp-panel-link:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 16px;
    background: var(--dp-card);
    border: 1px solid var(--dp-line);
    border-radius: 12px;
    color: var(--dp-text);
    text-decoration: none;
    font-weight: 600;
}

.dp-panel-link:hover,
.dp-panel-link:focus {
    background: #f1f1f1;
}

.dp-footer {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 20px 0 26px;
}

.dp-signature-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.dp-signature {
    display: block;
    width: auto;
    max-width: 240px;
    height: auto;
}

@media (max-width: 767px) {
    .dp-shell {
        padding: 0 18px;
    }

    .dp-topbar {
        flex-direction: column;
        gap: 16px;
        padding-top: 18px;
    }

    .dp-primary-actions {
        flex-direction: column;
        width: 100%;
    }

    .dp-btn {
        width: 100%;
        max-width: 280px;
    }

    .dp-entry-panels {
        min-height: 0;
    }
}


/* DP Homepage 1.0.6: protect official logo from external global logo-hiding rules. */
html body .dp-homepage .dp-brand-logo-wrap,
html body .dp-homepage img.dp-brand-logo {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    overflow: visible !important;
    pointer-events: auto !important;
}
html body .dp-homepage img.dp-brand-logo {
    display: block !important;
    object-fit: contain !important;
}
