.template-text-page {
    max-width: 1920px;
    margin: 0 auto;
}

.text-page-wrapper {
    width: 100%;
    margin-top: var(--header-height);
    padding: 48px 0 80px;
}

.text-page-shell {
    width: min(860px, calc(100% - 80px));
    margin: 0 auto;
}

.text-page-header {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(103, 152, 173, 0.12);
}

.text-page-title {
    font-family: 'Urbanist', sans-serif;
    font-weight: 600;
    font-size: clamp(2.2rem, 5vw, 3.25rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #365072;
    margin: 0;
}

.text-page-date {
    margin: 16px 0 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(22, 30, 35, 0.5);
}

.text-page-content {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(22, 30, 35, 0.85);
}

.text-page-content > :first-child {
    margin-top: 0;
}

.text-page-content p,
.text-page-content ul,
.text-page-content ol,
.text-page-content blockquote,
.text-page-content figure,
.text-page-content table {
    margin-bottom: 1.4em;
}

.text-page-content h2 {
    font-family: 'Urbanist', sans-serif;
    font-weight: 600;
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: #365072;
    margin-top: 2.4em;
    margin-bottom: 0.6em;
}

.text-page-content h3 {
    font-family: 'Urbanist', sans-serif;
    font-weight: 600;
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    line-height: 1.25;
    color: #365072;
    margin-top: 2em;
    margin-bottom: 0.5em;
}

.text-page-content h4 {
    font-family: 'Urbanist', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.3;
    color: #365072;
    margin-top: 1.6em;
    margin-bottom: 0.4em;
}

.text-page-content a {
    color: var(--brand-blue, #3c8dc7);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
    transition: color 0.2s ease;
}

.text-page-content a:hover {
    color: #2a6f9e;
}

.text-page-content ul,
.text-page-content ol {
    padding-left: 1.6em;
}

.text-page-content li {
    margin-bottom: 0.4em;
}

.text-page-content li::marker {
    color: rgba(54, 80, 114, 0.4);
}

.text-page-content blockquote {
    margin-left: 0;
    margin-right: 0;
    padding: 20px 24px;
    border-left: 3px solid var(--brand-blue, #3c8dc7);
    background: rgba(103, 152, 173, 0.06);
    border-radius: 0 16px 16px 0;
    color: #3a4d58;
    font-style: italic;
}

.text-page-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.text-page-content th,
.text-page-content td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(103, 152, 173, 0.1);
}

.text-page-content th {
    font-family: 'Urbanist', sans-serif;
    font-weight: 600;
    color: #365072;
    background: rgba(103, 152, 173, 0.04);
}

.text-page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
}

.text-page-content figure {
    margin-left: 0;
    margin-right: 0;
}

.text-page-content figcaption {
    margin-top: 10px;
    color: rgba(22, 30, 35, 0.5);
    font-size: 0.88rem;
}

.text-page-content hr {
    border: none;
    height: 1px;
    background: rgba(103, 152, 173, 0.12);
    margin: 2.5em 0;
}

@media (max-width: 1024px) {
    .text-page-shell {
        width: min(860px, calc(100% - 48px));
    }
}

@media (max-width: 768px) {
    .text-page-wrapper {
        padding: 32px 0 56px;
    }

    .text-page-shell {
        width: min(860px, calc(100% - 32px));
    }

    .text-page-header {
        margin-bottom: 32px;
        padding-bottom: 24px;
    }

    .text-page-content {
        font-size: 1rem;
        line-height: 1.75;
    }
}

@media (max-width: 480px) {
    .text-page-shell {
        width: calc(100% - 24px);
    }

    .text-page-content blockquote {
        padding: 16px 18px;
        border-radius: 0 12px 12px 0;
    }
}
