/* Page and full-width template styles */
/* ========== PAGE TEMPLATE STYLES ========== */

.page-template{
    background: #f8f9fa;
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Page Header */
.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.page-title {
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.3;
}

/* Page Content */
.page-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
}

.page-content p {
    margin-bottom: 1.2rem;
}

.page-content h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.page-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1.2rem 0 0.8rem;
}

.page-content ul,
.page-content ol {
    margin: 1rem 0;
    padding-right: 1.5rem;
}

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

.page-content blockquote {
    background: #f8f8f8;
    border-right: 3px solid #1a1a1a;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #555;
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.page-content th,
.page-content td {
    border: 1px solid #ddd;
    padding: 0.8rem;
    text-align: right;
}

.page-content th {
    background: #f8f8f8;
    font-weight: 600;
}

.page-content code {
    background: #f5f5f5;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
}

/* Responsive */
@media (max-width: 768px) {
    /* .page-template {
        padding: 1rem 0 3rem;
    } */
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .page-content {
        font-size: 0.9rem;
    }
    
    .page-content h2 {
        font-size: 1.2rem;
    }
    
    .page-content h3 {
        font-size: 1rem;
    }
}

/* Split from main-style: final page template redesign */
/* Final default page template redesign */
.page-template {
    background: #f8fafc;
}

.page-container {
    max-width: 980px;
    display: grid;
    gap: 18px;
}

.page-template .page-header {
    margin: 0;
    padding: clamp(22px, 4vw, 38px);
    border: 1px solid #e8edf3;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.05);
}

.page-kicker {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 0 11px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 0.78rem;
    font-weight: 850;
}

.page-template .page-title {
    margin: 12px 0 0;
    color: #0f172a;
    font-size: clamp(1.55rem, 4vw, 2.45rem);
    font-weight: 900;
    line-height: 1.35;
}

.page-featured-image {
    margin: 0;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #e8edf3;
    background: #fff;
}

.page-featured-image img {
    width: 100%;
    max-height: 420px;
    display: block;
    object-fit: cover;
}

.page-template .page-content {
    padding: clamp(20px, 4vw, 34px);
    border: 1px solid #e8edf3;
    border-radius: 8px;
    background: #fff;
    color: #334155;
    font-size: 0.98rem;
    line-height: 2;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.05);
}

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

.page-template .page-content > *:last-child {
    margin-bottom: 0;
}

.page-template .page-content h2,
.page-template .page-content h3 {
    color: #0f172a;
    border: 0;
    padding: 0;
    line-height: 1.5;
}

.page-template .page-content a {
    color: #2563eb;
    font-weight: 750;
}

.page-template .page-content blockquote {
    margin: 22px 0;
    padding: 16px 18px;
    border: 0;
    border-right: 4px solid #2563eb;
    border-radius: 8px;
    background: #f8fafc;
    color: #475569;
}

.page-template .page-content table {
    overflow: hidden;
    border-radius: 8px;
}

.page-links {
    margin-top: 22px;
    color: #64748b;
    font-weight: 800;
}

/* Full width page template */
.page-fullwidth {
    width: 100%;
    min-height: 60vh;
    background: #fff;
}

.page-fullwidth__content {
    width: 100%;
}

.page-fullwidth__content > *:first-child {
    margin-top: 0;
}

.page-fullwidth__content > *:last-child {
    margin-bottom: 0;
}

.page-fullwidth__content img,
.page-fullwidth__content video,
.page-fullwidth__content iframe {
    max-width: 100%;
}

/* Preserve the current dark theme cascade after moving page styles out of main-style.css. */
.page-template,
.page-fullwidth {
    background: var(--dark-bg);
    color: var(--dark-text);
}

.page-template .page-header,
.page-template .page-content,
.page-featured-image {
    background: var(--dark-surface);
    border-color: var(--dark-line);
    color: var(--dark-text);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
}

.page-template .page-title,
.page-template .page-content h2,
.page-template .page-content h3 {
    color: var(--dark-text);
}

.page-template .page-content,
.page-template .page-content p,
.page-template .page-content li,
.page-links {
    color: var(--dark-muted);
}

.page-template .page-content a {
    color: var(--dark-primary);
}

.page-template .page-content blockquote,
.page-template .page-content code,
.page-template .page-content th,
.page-template .page-content td {
    background: var(--dark-bg-soft);
    border-color: var(--dark-line);
    color: var(--dark-muted);
}
