/* VNTech Theme 5 internal-page polish.
 * Keeps the approved Homepage untouched while making canonical public pages
 * denser, more intentional and useful when their editable body copy is short.
 */

body.vntech-theme5 .vn-content-section--detail {
    padding-block: clamp(54px, 5.6vw, 78px);
}

body.vntech-theme5 .vn-content-layout.vn-content-layout--detail {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.38fr);
    gap: clamp(24px, 4vw, 56px);
}

body.vntech-theme5 .vn-content-layout--detail .vn-entry-content {
    padding: clamp(28px, 3.4vw, 42px);
    border: 1px solid var(--t5-line);
    border-radius: var(--t5-radius-md);
    background:
        radial-gradient(circle at 96% 4%, rgba(23, 104, 255, 0.07), transparent 28%),
        #fff;
    box-shadow: var(--t5-shadow-sm);
}

body.vntech-theme5 .vn-content-layout--detail .vn-entry-content > :first-child {
    margin-top: 0;
}

body.vntech-theme5 .vn-content-layout--detail .vn-entry-content > :last-child {
    margin-bottom: 0;
}

body.vntech-theme5 .vn-content-layout--detail .vn-entry-content h2 {
    margin-top: 1.45em;
    font-size: clamp(29px, 2.7vw, 39px);
}

body.vntech-theme5 .vn-content-layout--detail .vn-entry-content p,
body.vntech-theme5 .vn-content-layout--detail .vn-entry-content li {
    font-size: 16px;
    line-height: 1.72;
}

body.vntech-theme5 .vn-content-layout--detail .vn-page-aside {
    align-self: start;
}

body.vntech-theme5 .vn-project-index .t5-section-head {
    margin-bottom: clamp(24px, 3vw, 38px);
}

body.vntech-theme5 .vn-project-index__intro {
    max-width: 760px;
    margin-bottom: clamp(28px, 4vw, 46px);
}

body.vntech-theme5 .vn-project-index__intro > :first-child {
    margin-top: 0;
}

body.vntech-theme5 .vn-project-index__intro > :last-child {
    margin-bottom: 0;
}

body.vntech-theme5 .vn-project-index .vn-archive-grid {
    align-items: stretch;
}

body.vntech-theme5 .vn-project-index .vn-content-card {
    min-height: 100%;
}

body.vntech-theme5 .vn-contact-layout {
    gap: clamp(24px, 4.5vw, 58px);
}

body.vntech-theme5 .vn-contact-brief {
    padding: clamp(28px, 3.5vw, 42px);
    border: 1px solid var(--t5-line);
    border-radius: var(--t5-radius-md);
    background:
        radial-gradient(circle at 5% 0%, rgba(23, 104, 255, 0.06), transparent 30%),
        #fff;
    box-shadow: var(--t5-shadow-sm);
}

body.vntech-theme5 .vn-contact-brief > :first-child {
    margin-top: 0;
}

body.vntech-theme5 .vn-contact-checklist {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    max-width: none;
    margin-top: 30px;
}

body.vntech-theme5 .vn-contact-checklist__item {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--t5-line);
    border-radius: 12px;
    background: var(--t5-paper);
}

body.vntech-theme5 .vn-contact-checklist__item span {
    display: inline-grid;
    width: 30px;
    height: 30px;
    margin-bottom: 12px;
    place-items: center;
    border-radius: 9px;
    background: var(--t5-accent-soft);
    color: var(--t5-accent-strong);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 9px;
    font-weight: 850;
}

body.vntech-theme5 .vn-contact-checklist__item strong {
    display: block;
    margin-bottom: 6px;
    color: var(--t5-ink-950);
    font-size: 15px;
}

body.vntech-theme5 .vn-contact-checklist__item p {
    margin-bottom: 0;
    color: var(--t5-ink-600);
    font-size: 13px;
    line-height: 1.55;
}

body.vntech-theme5 .vn-contact-context {
    max-width: none;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--t5-line);
}

body.vntech-theme5 .vn-contact-context h2 {
    margin-top: 0;
    font-size: 24px;
}

@media (max-width: 900px) {
    body.vntech-theme5 .vn-content-layout.vn-content-layout--detail {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    body.vntech-theme5 .vn-content-layout--detail .vn-page-aside {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 720px) {
    body.vntech-theme5 .vn-content-section--detail {
        padding-block: 44px;
    }

    body.vntech-theme5 .vn-content-layout--detail .vn-entry-content,
    body.vntech-theme5 .vn-contact-brief {
        padding: 22px 19px;
    }

    body.vntech-theme5 .vn-contact-checklist {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 24px;
    }

    body.vntech-theme5 .vn-contact-checklist__item {
        padding: 16px;
    }
}
