/* ── Page Container ──────────────────────────────────────────────────── */

.page-container {
    display: flex;
    flex-direction: column;
}

/* ── Text Block ──────────────────────────────────────────────────────── */

.page-block--text {
    padding: 30px 0;
}

.page-block--text + .page-block--text {
    padding-top: 0;
}

.page-text-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.8;
    color: #2c3e50;
}

/* ── Block Width Variants ────────────────────────────────────────────── */

.page-block--contained {
    max-width: var(--max-width, 1200px);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
    box-sizing: border-box;
}

.page-block--full {
    width: 100%;
}

.page-block--full .page-text-content {
    max-width: none;
    padding: 0 20px;
}

/* ── Text Content Typography ─────────────────────────────────────────── */

.page-text-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    margin-top: 24px;
    color: #151515;
    line-height: 1.3;
}

.page-text-content h2:first-child { margin-top: 0; }

.page-text-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    margin-top: 20px;
    color: #151515;
    line-height: 1.35;
}

.page-text-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    margin-top: 16px;
    color: #1f2937;
}

.page-text-content p {
    margin-bottom: 16px;
}

.page-text-content ul,
.page-text-content ol {
    margin-left: 24px;
    margin-bottom: 16px;
}

.page-text-content li {
    margin-bottom: 6px;
}

.page-text-content a {
    color: #3498db;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.15s;
}

.page-text-content a:hover {
    color: #2980b9;
}

.page-text-content blockquote {
    margin: 24px 0;
    padding: 20px 28px;
    border-left: 4px solid #3498db;
    background: #f0f7ff;
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: #475569;
    line-height: 1.7;
}

.page-text-content blockquote p:last-child {
    margin-bottom: 0;
}

.page-text-content pre {
    margin: 24px 0;
    padding: 20px 24px;
    background: #1e293b;
    color: #e2e8f0;
    border-radius: 10px;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.65;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.page-text-content pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
    border-radius: 0;
}

.page-text-content code {
    background: #f1f5f9;
    color: #e11d48;
    padding: 2px 7px;
    border-radius: 5px;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.88em;
}

.page-text-content hr {
    border: none;
    border-top: 2px solid #e5e7eb;
    margin: 32px 0;
}

.page-text-content s {
    text-decoration: line-through;
    color: #9ca3af;
}

.page-text-content strong {
    font-weight: 600;
}

.page-text-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ── Responsive ──────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .page-text-content {
        font-size: 15px;
    }
    .page-text-content h2 {
        font-size: 24px;
    }
    .page-text-content h3 {
        font-size: 19px;
    }
    .page-text-content h4 {
        font-size: 17px;
    }
    .page-text-content pre {
        padding: 16px;
        font-size: 13px;
        border-radius: 8px;
    }
    .page-text-content blockquote {
        padding: 16px 20px;
    }
}