/*
Theme Name: Minimalist Blogger Child
Template: minimalistblogger
*/

/* Nasconde l'immagine header su tutte le pagine */
.bottom-header-wrapper {
    display: none;
}

.home .bottom-header-wrapper {
    display: block !important;
}

/* Rendi in grassetto le pagine madri */
.widget_pages > ul > li > a {
    font-weight: bold;
}

/* Aumenta lo spazio tra la pagina madre e le pagine figlie */
.widget_pages > ul > li > ul {
    margin-top: 10px;
}

/* Mantieni il rientro per le pagine figlie */
.widget_pages ul ul {
    margin-left: 15px;
}

/* Newsletter Sidebar Widget */
.sidebar-newsletter-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 30px;
}

.newsletter-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.sidebar-newsletter-box h3 {
    color: white !important;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.newsletter-text {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.sidebar-newsletter-box input[type="email"],
.sidebar-newsletter-box input[type="text"] {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    margin-bottom: 10px;
    text-align: left;
}

.sidebar-newsletter-box label {
    display: none;
}

.sidebar-newsletter-box input[type="submit"] {
    width: 100%;
    background: white;
    color: #667eea;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
}

.newsletter-note {
    font-size: 0.85rem;
    margin-top: 15px;
}

/* Hero Intro Box Homepage */
.hero-intro-box {
    text-align: center;
    padding: 40px 30px;
    margin-bottom: 40px;
    background: transparent;
    border-radius: 12px;
    border: 2px solid #667eea;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #667eea;
    margin-bottom: 20px;
    font-weight: 600;
}

.hero-description {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.hero-btn.primary {
    background: #667eea;
    color: white;
}

.hero-btn.primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
}

.hero-btn.secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.hero-btn.secondary:hover {
    background: #667eea;
    color: white;
}

/* Nascondi titolo "Home" SOLO nella homepage */
.home .entry-title,
.home .page-title,
.home h1.entry-title,
.home header h1 {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .hero-btn {
        width: 100%;
    }
}

.home {
    background: #ffffff !important;
}

.home .site-content,
.home .content-area,
.home article {
    background: #ffffff !important;
}

/* Header e menu bianchi */
.site-header,
.main-navigation,
header {
    background: #ffffff !important;
}

/* Titolo sito bianco */
.site-title-wrapper,
.site-branding {
    background: #ffffff !important;
}

/* Rimuovi riga grigia sotto menu */
.site-header,
.main-navigation,
header,
.navigation-wrapper {
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

/* Nascondi sidebar solo in homepage */
.home .sidebar,
.home aside {
    display: none !important;
}

.home .site-content,
.home .content-area {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}


/* Nascondi SOLO la sidebar widget area, non altri aside */
.widget-area,
.sidebar-primary,
#sidebar,
#secondary {
    display: none !important;
}

.site-content,
.content-area,
#primary {
    width: 100% !important;
    max-width: 1100px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

/* ========================================
   NUOVA SEZIONE: TYPOGRAPHY MIGLIORATA
   Per post e pagine (non homepage)
   ======================================== */

/* Import Google Font - Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Applica Inter font a post e pagine */
body.single-post,
body.page:not(.home) {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Titolo principale POST (mostra e stilizza) */
body.single-post .entry-title,
body.single-post h1.entry-title {
    display: block !important;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a;
    margin-bottom: 30px;
}

/* Titolo principale PAGINE (mostra e stilizza) */
body.page:not(.home) .entry-title,
body.page:not(.home) h1.entry-title {
    display: block !important;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a;
    margin-bottom: 30px;
}

/* Headings nel contenuto articoli/pagine */
body.single-post .entry-content h2,
body.page:not(.home) .entry-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
    margin-top: 2em;
    margin-bottom: 0.8em;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

body.single-post .entry-content h3,
body.page:not(.home) .entry-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
    color: #333;
    margin-top: 1.8em;
    margin-bottom: 0.8em;
}

body.single-post .entry-content h4,
body.page:not(.home) .entry-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    color: #444;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
}

/* Paragrafi migliorati */
body.single-post .entry-content p,
body.page:not(.home) .entry-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5em;
    color: #333;
}

/* Box articolo con card effect */
body.single-post article.post,
body.page:not(.home) article.page {
    background: white;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Responsive Mobile */
@media (max-width: 768px) {
    body.single-post .entry-title,
    body.single-post h1.entry-title,
    body.page:not(.home) .entry-title,
    body.page:not(.home) h1.entry-title {
        font-size: 2rem;
    }
    
    body.single-post .entry-content h2,
    body.page:not(.home) .entry-content h2 {
        font-size: 1.4rem;
    }
    
    body.single-post .entry-content h3,
    body.page:not(.home) .entry-content h3 {
        font-size: 1.2rem;
    }
    
    body.single-post .entry-content p,
    body.page:not(.home) .entry-content p {
        font-size: 1rem;
    }
    
    body.single-post article.post,
    body.page:not(.home) article.page {
        padding: 30px 20px;
    }
}
/* ========================================
   STEP 2: FEATURED IMAGE DALL-E
   Immagine in evidenza - stile artistico
   ======================================== */

/* Featured Image con Gutenberg blocks */
body.single-post .wp-post-image,
body.page:not(.home) .wp-post-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: block;
}

/* Container featured image */
body.single-post .post-thumbnail,
body.page:not(.home) .post-thumbnail {
    margin-bottom: 40px;
}

/* Immagini Gutenberg nel contenuto - stile normale */
body.single-post .entry-content .wp-block-image img,
body.page:not(.home) .entry-content .wp-block-image img {
    max-width: 100%;
    height: auto;
    margin: 20px auto;
    border-radius: 6px;
    display: block;
}

/* Tutte le altre immagini nel contenuto */
body.single-post .entry-content img,
body.page:not(.home) .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

/* Responsive */
@media (max-width: 768px) {
    body.single-post .wp-post-image,
    body.page:not(.home) .wp-post-image {
        border-radius: 8px;
        margin-bottom: 30px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }
}
/* ========================================
   STEP 3: LISTE, CITAZIONI E CODE BLOCKS
   ======================================== */

/* ----- LISTE PUNTATE ----- */
body.single-post .entry-content ul,
body.page:not(.home) .entry-content ul {
    margin: 1.5em 0;
    padding-left: 30px;
    list-style: none;
}

body.single-post .entry-content ul li,
body.page:not(.home) .entry-content ul li {
    position: relative;
    margin-bottom: 12px;
    padding-left: 15px;
    line-height: 1.7;
}

body.single-post .entry-content ul li::before,
body.page:not(.home) .entry-content ul li::before {
    content: "▸";
    position: absolute;
    left: -15px;
    color: #667eea;
    font-weight: bold;
}

/* ----- LISTE NUMERATE ----- */
body.single-post .entry-content ol,
body.page:not(.home) .entry-content ol {
    margin: 1.5em 0;
    padding-left: 30px;
    counter-reset: item;
    list-style: none;
}

body.single-post .entry-content ol li,
body.page:not(.home) .entry-content ol li {
    position: relative;
    margin-bottom: 12px;
    padding-left: 30px;
    line-height: 1.7;
    counter-increment: item;
}

body.single-post .entry-content ol li::before,
body.page:not(.home) .entry-content ol li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Liste annidate */
body.single-post .entry-content ul ul,
body.single-post .entry-content ol ul,
body.page:not(.home) .entry-content ul ul,
body.page:not(.home) .entry-content ol ul {
    margin-top: 8px;
    margin-bottom: 8px;
}

/* ----- BLOCKQUOTES / CITAZIONI ----- */
body.single-post .entry-content blockquote,
body.page:not(.home) .entry-content blockquote {
    margin: 2em 0;
    padding: 25px 30px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border-left: 4px solid #667eea;
    border-radius: 8px;
    font-style: italic;
    color: #444;
    position: relative;
}

body.single-post .entry-content blockquote p,
body.page:not(.home) .entry-content blockquote p {
    margin-bottom: 0;
    font-size: 1.15rem;
    line-height: 1.7;
}

body.single-post .entry-content blockquote::before,
body.page:not(.home) .entry-content blockquote::before {
    content: """;
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 3rem;
    color: #667eea;
    opacity: 0.3;
    line-height: 1;
}

/* ----- CODE BLOCKS (inline e block) ----- */

/* Codice inline */
body.single-post .entry-content code,
body.page:not(.home) .entry-content code {
    background: #f5f5f5;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    color: #c7254e;
}

/* Code blocks (pre + code) */
body.single-post .entry-content pre,
body.page:not(.home) .entry-content pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 25px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2em 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

body.single-post .entry-content pre code,
body.page:not(.home) .entry-content pre code {
    background: transparent;
    padding: 0;
    color: #f8f8f2;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Syntax highlighting colors (basic) */
body.single-post .entry-content pre code .comment,
body.page:not(.home) .entry-content pre code .comment {
    color: #75715e;
}

body.single-post .entry-content pre code .keyword,
body.page:not(.home) .entry-content pre code .keyword {
    color: #66d9ef;
}

body.single-post .entry-content pre code .string,
body.page:not(.home) .entry-content pre code .string {
    color: #a6e22e;
}

body.single-post .entry-content pre code .number,
body.page:not(.home) .entry-content pre code .number {
    color: #ae81ff;
}

/* Code Snippets plugin compatibility */
body.single-post .entry-content .wp-block-code,
body.page:not(.home) .entry-content .wp-block-code {
    margin: 2em 0;
}

body.single-post .entry-content .wp-block-code code,
body.page:not(.home) .entry-content .wp-block-code code {
    display: block;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 768px) {
    body.single-post .entry-content ul,
    body.single-post .entry-content ol,
    body.page:not(.home) .entry-content ul,
    body.page:not(.home) .entry-content ol {
        padding-left: 20px;
    }
    
    body.single-post .entry-content blockquote,
    body.page:not(.home) .entry-content blockquote {
        padding: 20px;
        margin: 1.5em 0;
    }
    
    body.single-post .entry-content pre,
    body.page:not(.home) .entry-content pre {
        padding: 15px;
        font-size: 0.85rem;
    }
}
/* ========================================
   BREADCRUMBS - Stile moderno con sfondo
   ======================================== */

/* Nascondi breadcrumbs in homepage */
.home .breadcrumbs {
    display: none !important;
}

/* Container breadcrumbs */
.breadcrumbs {
    max-width: 1100px;
    margin: 20px auto 30px auto;
    padding: 12px 20px;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

/* Link nei breadcrumbs */
.breadcrumbs a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.breadcrumbs a:hover {
    color: #5568d3;
    text-decoration: underline;
}

/* Icona Home - primo link */
.breadcrumbs a:first-child::before {
    content: "🏠 ";
    margin-right: 5px;
}

/* Separatore / */
.breadcrumbs {
    word-spacing: 3px;
}

/* Ultimo elemento (pagina corrente) */
.breadcrumbs {
    font-weight: 400;
}

/* Responsive */
@media (max-width: 768px) {
    .breadcrumbs {
        font-size: 0.85rem;
        margin: 15px auto 20px auto;
        padding: 10px 15px;
    }
}
/* ========================================
   WPFORMS - Stile personalizzato
   Coordinato con il tema del sito
   ======================================== */

/* Container form */
.wpforms-container {
    max-width: 700px;
    margin: 0 auto;
}

/* Campi input e textarea */
.wpforms-field input[type="text"],
.wpforms-field input[type="email"],
.wpforms-field input[type="tel"],
.wpforms-field textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
}

/* Focus sui campi */
.wpforms-field input[type="text"]:focus,
.wpforms-field input[type="email"]:focus,
.wpforms-field input[type="tel"]:focus,
.wpforms-field textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Labels */
.wpforms-field-label {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    font-size: 1rem;
}

/* Required asterisco */
.wpforms-required-label {
    color: #667eea;
}

/* Textarea */
.wpforms-field textarea {
    min-height: 150px;
    resize: vertical;
}

/* Pulsante Submit */
.wpforms-submit-container button[type="submit"],
.wpforms-submit-container input[type="submit"] {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
    font-family: 'Inter', sans-serif;
}

/* Hover pulsante */
.wpforms-submit-container button[type="submit"]:hover,
.wpforms-submit-container input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

/* Allineamento pulsante */
.wpforms-submit-container {
    text-align: center;
    margin-top: 20px;
}

/* Messaggi di errore */
.wpforms-error {
    color: #dc2626;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Campi con errore */
.wpforms-field.wpforms-has-error input,
.wpforms-field.wpforms-has-error textarea {
    border-color: #dc2626;
}

/* Messaggio di successo */
.wpforms-confirmation-container-full {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-left: 4px solid #667eea;
    padding: 20px;
    border-radius: 8px;
    color: #1a1a1a;
    font-weight: 500;
}

/* Spaziatura tra campi */
.wpforms-field {
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .wpforms-container {
        padding: 0 15px;
    }
    
    .wpforms-field input,
    .wpforms-field textarea {
        padding: 12px;
        font-size: 16px; /* Previene zoom su iOS */
    }
    
    .wpforms-submit-container button[type="submit"],
    .wpforms-submit-container input[type="submit"] {
        width: 100%;
        padding: 14px;
    }
}
/* ========================================
   NEWSLETTER CTA BOX - Fine articoli
   ======================================== */

.newsletter-cta-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin: 50px 0 30px 0;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.newsletter-cta-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.newsletter-cta-box h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: white !important;
    margin-bottom: 15px;
    line-height: 1.3;
}

.newsletter-cta-box p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    color: white !important;
    opacity: 0.95;
}

.newsletter-cta-button {
    display: inline-block;
    background: white;
    color: #667eea;
    padding: 16px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.newsletter-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: #5568d3;
}

.newsletter-cta-note {
    font-size: 0.9rem;
    margin-top: 20px;
    color: white !important;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    .newsletter-cta-box {
        padding: 30px 20px;
    }
    
    .newsletter-cta-box h3 {
        font-size: 1.5rem;
    }
    
    .newsletter-cta-box p {
        font-size: 1rem;
    }
    
    .newsletter-cta-button {
        width: 100%;
        padding: 14px 30px;
    }
}
/* ========================================
   RELATED TOPICS / TAGS
   Fine articoli - prima newsletter CTA
   ======================================== */

.related-topics-section {
    margin: 40px 0;
    padding: 30px;
    background: #fafafa;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.related-topics-section h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    margin-top: 0;
}

.related-topics-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-topics-list li {
    margin: 0;
}

.related-topics-list a {
    display: inline-block;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    color: #667eea;
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.related-topics-list a:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Icona tag prima del testo */
.related-topics-list a::before {
    content: "#";
    margin-right: 4px;
    font-weight: 700;
}

/* Messaggio se non ci sono tag */
.no-tags-message {
    color: #666;
    font-style: italic;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    .related-topics-section {
        padding: 20px;
    }
    
    .related-topics-section h4 {
        font-size: 1.1rem;
    }
    
    .related-topics-list {
        gap: 10px;
    }
    
    .related-topics-list a {
        font-size: 0.9rem;
        padding: 6px 14px;
    }
}
/* ========================================
   COURSE NAVIGATION - Prev/Next Lessons
   Per pagine corso (child pages)
   ======================================== */

.course-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 50px 0 30px 0;
    padding: 30px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border-radius: 12px;
    border-top: 3px solid #667eea;
}

.course-nav-link {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
}

.course-nav-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

/* Link precedente - allineamento a sinistra */
.course-nav-prev {
    flex-direction: row;
}

/* Link successivo - allineamento a destra */
.course-nav-next {
    flex-direction: row-reverse;
    text-align: right;
}

.course-nav-arrow {
    font-size: 2rem;
    color: #667eea;
    font-weight: 700;
    flex-shrink: 0;
}

.course-nav-content {
    flex: 1;
}

.course-nav-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

.course-nav-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
    margin: 0;
}

/* Quando manca prev o next, centra l'altro */
.course-navigation.single-nav {
    justify-content: center;
}

.course-navigation.single-nav .course-nav-link {
    max-width: 500px;
}

/* Placeholder quando non c'è prev/next */
.course-nav-placeholder {
    flex: 1;
    visibility: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    .course-navigation {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }
    
    .course-nav-link {
        padding: 15px;
    }
    
    .course-nav-prev,
    .course-nav-next {
        flex-direction: row;
        text-align: left;
    }
    
    .course-nav-arrow {
        font-size: 1.5rem;
    }
    
    .course-nav-title {
        font-size: 1rem;
    }
}
/* ========================================
   ILLUSTRATIONS GALLERY - Spacing Fix
   ======================================== */

/* Gallery container */
.elementor-gallery {
    gap: 15px !important;
    column-gap: 15px !important;
    row-gap: 15px !important;
}

/* Singole immagini nella gallery */
.elementor-gallery__item {
    margin: 0 !important;
    padding: 0 !important;
}

/* Immagini */
.elementor-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Rimuovi spazio bianco colonne */
.elementor-column-gap-default > .elementor-column > .elementor-element-populated {
    padding: 0 !important;
}

/* Responsive - mobile */
@media (max-width: 768px) {
    .elementor-gallery {
        gap: 10px !important;
        column-gap: 10px !important;
        row-gap: 10px !important;
    }
}
/* ========================================
   LIGHTBOX - Nascondi Caption/Filename
   ======================================== */

/* Nascondi titolo/caption nel lightbox Elementor */
.elementor-lightbox-title {
    display: none !important;
}

/* Nascondi anche descrizione se presente */
.elementor-lightbox-description {
    display: none !important;
}

/* Lightbox più pulito - solo immagine */
.elementor-lightbox .dialog-lightbox-widget {
    background: rgba(0, 0, 0, 0.95);
}
/* ===== PULSANTI CONDIVISIONE SOCIAL ===== */
.custom-social-share {
    margin: 50px 0;
    padding: 30px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.custom-social-share .share-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 20px 0;
    text-align: center;
}

.custom-social-share .share-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.share-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Colori specifici */
.share-email {
    background-color: #667eea;
    color: white;
}

.share-email:hover {
    background-color: #5568d3;
}

.share-whatsapp {
    background-color: #25D366;
    color: white;
}

.share-whatsapp:hover {
    background-color: #20ba5a;
}

.share-facebook {
    background-color: #1877F2;
    color: white;
}

.share-facebook:hover {
    background-color: #0d65d9;
}

.share-twitter {
    background-color: #000000;
    color: white;
}

.share-twitter:hover {
    background-color: #333333;
}

.share-linkedin {
    background-color: #0A66C2;
    color: white;
}

.share-linkedin:hover {
    background-color: #004a99;
}

/* Responsive */
@media (max-width: 768px) {
    .custom-social-share {
        padding: 20px;
    }
    
    .share-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .share-btn span {
        display: none;
    }
    
    .share-btn svg {
        width: 24px;
        height: 24px;
    }
}
/* Tabelle responsive - scroll orizzontale su mobile */
@media (max-width: 768px) {
    /* Wrapper per far scrollare le tabelle */
    body.single-post .entry-content table,
    body.page .entry-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        max-width: 100%;
        border: 1px solid #ddd;
    }
    
    /* Mantieni larghezza celle naturale */
    body.single-post .entry-content table td,
    body.single-post .entry-content table th,
    body.page .entry-content table td,
    body.page .entry-content table th {
        white-space: normal;
        min-width: 100px;
        padding: 10px;
    }
}

/* Nasconde contenuto completo negli archivi di categoria */
.archive .entry-content,
.category .entry-content,
.tag .entry-content {
    display: none;
}

/* Mostra l'excerpt negli archivi */
.archive .entry-summary,
.category .entry-summary,
.tag .entry-summary {
    display: block;
}

/* ========================================
   POST STANDARD - STRUTTURA EDITORIALE 1
   Scope intenzionale: soli singoli post.
   ======================================== */

body.single-post,
body.single-post #page,
body.single-post #content,
body.single-post #primary,
body.single-post .entry-header {
    background: #f3f0e9 !important;
}

body.single-post {
    color: #292724;
}

body.single-post .site-branding {
    text-align: center;
}

body.single-post #primary-site-navigation.primary-menu ul#primary-menu.pmenu {
    border-top: 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid #d8d1c5 !important;
    border-left: 0 !important;
}

body.single-post .breadcrumbs {
    width: 100%;
    max-width: 780px;
    margin: 0 auto 28px;
    padding: 0;
    color: #736d64;
    background: transparent;
    border: 0;
    border-radius: 0;
    font-size: 0.82rem;
    line-height: 1.5;
    word-spacing: normal;
}

body.single-post .breadcrumbs a {
    color: #625d55;
    font-weight: 400;
    transition: none;
}

body.single-post .breadcrumbs a:first-child::before {
    content: none;
}

body.single-post #primary {
    max-width: 828px !important;
    padding-right: 24px !important;
    padding-left: 24px !important;
}

body.single-post #main.site-main > article.posts-entry.fbox {
    margin-bottom: 48px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

body.single-post .featured-thumbnail {
    margin-bottom: 0;
}

body.single-post .featured-thumbnail .wp-post-image,
body.single-post .wp-post-image {
    width: 100%;
    height: auto;
    margin: 0 0 32px;
    border-radius: 2px;
    box-shadow: none;
}

body.single-post .entry-title,
body.single-post h1.entry-title {
    max-width: 760px;
    margin: 0 0 14px;
    color: #292724;
    font-size: 2.25rem;
    line-height: 1.22;
}

body.single-post .entry-meta {
    display: block;
    margin: 0 0 36px;
    padding: 0;
    color: #736d64;
    font-size: 0.875rem;
    line-height: 1.6;
}

body.single-post .entry-meta a {
    color: inherit;
}

body.single-post .entry-content {
    color: #292724;
}

body.single-post .entry-content > p {
    color: #35312d;
    font-size: 1.075rem;
    line-height: 1.78;
    margin-bottom: 1.45em;
}

body.single-post .entry-content > h2 {
    margin-top: 2.1em;
    margin-bottom: 0.75em;
    padding-bottom: 8px;
    color: #292724;
    border-bottom: 1px solid #d8d1c5;
}

body.single-post .entry-content > h3 {
    margin-top: 1.9em;
    margin-bottom: 0.75em;
    color: #35312d;
}

body.single-post .entry-content > ul,
body.single-post .entry-content > ol {
    margin-top: 1.35em;
    margin-bottom: 1.35em;
}

@media (max-width: 768px) {
    body.single-post #primary {
        padding-right: 20px !important;
        padding-left: 20px !important;
    }

    body.single-post .breadcrumbs {
        margin-bottom: 22px;
        padding: 0;
        font-size: 0.78rem;
    }

    body.single-post #main.site-main > article.posts-entry.fbox {
        padding: 0 !important;
    }

    body.single-post .featured-thumbnail .wp-post-image,
    body.single-post .wp-post-image {
        margin-bottom: 26px;
        border-radius: 0;
        box-shadow: none;
    }

    body.single-post .entry-title,
    body.single-post h1.entry-title {
        margin-bottom: 12px;
        font-size: clamp(1.85rem, 9vw, 2rem);
        line-height: 1.24;
    }

    body.single-post .entry-meta {
        margin-bottom: 30px;
        font-size: 0.82rem;
    }

    body.single-post .entry-content > p {
        font-size: 1rem;
        line-height: 1.72;
    }
}

/* ========================================
   PATCH 002 - SINGLE POST REDESIGN V1
   Scope intenzionale: soli singoli post.
   ======================================== */

body.single-post {
    --post-background: #f3f0e9;
    --post-paper: #faf8f2;
    --post-text: #292724;
    --post-body: #35312d;
    --post-muted: #706b63;
    --post-line: #d8d1c5;
    --post-measure: 780px;
    background: var(--post-background) !important;
    color: var(--post-text);
}

body.single-post #page,
body.single-post #masthead,
body.single-post #masthead > .content-wrap,
body.single-post .site-branding,
body.single-post #primary-site-navigation,
body.single-post #primary-site-navigation > .content-wrap,
body.single-post #content,
body.single-post #content > .content-wrap,
body.single-post #primary,
body.single-post #main,
body.single-post .entry-header,
body.single-post .entry-content {
    background: var(--post-background) !important;
}

body.single-post .site-branding {
    display: block;
    margin: 0;
    padding: clamp(1.5rem, 4vw, 2.5rem) 1.25rem clamp(1.1rem, 3vw, 1.75rem);
    text-align: center;
    box-shadow: none;
}

body.single-post .site-branding .site-title {
    margin: 0;
    color: var(--post-text);
    font-size: clamp(1.45rem, 3vw, 1.8rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.015em;
}

body.single-post .site-branding .site-title a {
    color: inherit;
    text-decoration: none;
}

body.single-post .site-branding .site-description {
    display: none;
}

@media (min-width: 769px) {
    body.single-post #primary-site-navigation.primary-menu {
        border: 0 !important;
        box-shadow: none !important;
    }

    body.single-post #primary-site-navigation .center-main-menu {
        display: flex;
        justify-content: center;
    }

    body.single-post #primary-site-navigation.primary-menu ul#primary-menu.pmenu {
        display: flex;
        width: 100%;
        justify-content: center;
        gap: clamp(1.25rem, 3vw, 2.5rem);
        margin: 0;
        padding: 0.65rem 1.25rem 0.8rem;
        background: transparent !important;
        border: 0 !important;
        border-bottom: 1px solid var(--post-line) !important;
        box-shadow: none !important;
    }

    body.single-post #primary-site-navigation ul#primary-menu > li {
        margin: 0;
    }

    body.single-post #primary-site-navigation ul#primary-menu > li > a {
        padding: 0.35rem 0;
        color: var(--post-text);
        font-size: 0.84rem;
        font-weight: 400;
        line-height: 1.35;
        letter-spacing: 0.035em;
        text-transform: none;
    }

    body.single-post #primary-site-navigation ul#primary-menu > li > a:hover,
    body.single-post #primary-site-navigation ul#primary-menu > li > a:focus-visible {
        color: var(--post-muted);
        text-decoration: underline;
        text-decoration-thickness: 1px;
        text-underline-offset: 0.25em;
    }
}

body.single-post #content > .content-wrap {
    padding-top: clamp(1.4rem, 4vw, 2.4rem);
}

body.single-post .breadcrumbs,
body.single-post #primary {
    box-sizing: border-box;
    width: 100%;
    max-width: calc(var(--post-measure) + 48px) !important;
    margin-right: auto;
    margin-left: auto;
    padding-right: 24px !important;
    padding-left: 24px !important;
}

body.single-post .breadcrumbs {
    margin-top: 0;
    margin-bottom: clamp(1.25rem, 3vw, 2rem);
    padding-top: 0;
    padding-bottom: 0;
    color: var(--post-muted);
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.45;
    word-spacing: normal;
}

body.single-post .breadcrumbs a {
    color: var(--post-muted);
    font-weight: 400;
    text-decoration: none;
    transition: none;
}

body.single-post .breadcrumbs a:hover,
body.single-post .breadcrumbs a:focus-visible {
    color: var(--post-text);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

body.single-post .breadcrumbs a:first-child::before {
    content: none !important;
}

body.single-post #main.site-main > article.posts-entry.fbox {
    width: 100%;
    margin: 0 0 clamp(3rem, 7vw, 5rem) !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

body.single-post .featured-thumbnail {
    margin: 0;
}

body.single-post .featured-thumbnail .wp-post-image,
body.single-post article.posts-entry > a > .wp-post-image,
body.single-post article.posts-entry > .wp-post-image {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 0 clamp(1.6rem, 4vw, 2.25rem);
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 5px;
    box-shadow: none !important;
}

body.single-post .entry-title,
body.single-post h1.entry-title {
    max-width: 760px;
    margin: 0 0 0.75rem;
    color: var(--post-text);
    font-size: clamp(2rem, 5vw, 2.65rem);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.025em;
}

body.single-post .entry-meta {
    display: block;
    margin: 0 0 clamp(2rem, 5vw, 3rem);
    padding: 0;
    color: var(--post-muted);
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.5;
}

body.single-post .entry-meta a {
    color: inherit;
    font-weight: inherit;
}

body.single-post .entry-content {
    color: var(--post-body);
    font-size: 1.05rem;
    line-height: 1.76;
}

body.single-post .entry-content p {
    margin-top: 0;
    margin-bottom: 1.4em;
}

body.single-post .entry-content h2,
body.single-post .entry-content h3,
body.single-post .entry-content h4 {
    color: var(--post-text);
    text-wrap: balance;
}

body.single-post .entry-content h2 {
    margin: 2.25em 0 0.75em;
    padding: 0;
    border: 0;
    font-size: clamp(1.55rem, 4vw, 1.85rem);
    line-height: 1.3;
}

body.single-post .entry-content h3 {
    margin: 1.9em 0 0.65em;
    font-size: clamp(1.25rem, 3vw, 1.45rem);
    line-height: 1.35;
}

body.single-post .entry-content h4 {
    margin: 1.65em 0 0.55em;
    font-size: 1.1rem;
    line-height: 1.4;
}

body.single-post .entry-content ul,
body.single-post .entry-content ol {
    margin: 0 0 1.5em 1.25em;
    padding-left: 0.75em;
}

body.single-post .entry-content li {
    margin-bottom: 0.45em;
    padding-left: 0.15em;
}

body.single-post .entry-content li::marker {
    color: var(--post-muted);
}

body.single-post .entry-content a {
    color: #554f47;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.17em;
}

body.single-post .entry-content a:hover,
body.single-post .entry-content a:focus-visible {
    color: var(--post-text);
}

body.single-post .entry-content blockquote {
    margin: 2rem 0;
    padding: 0.15rem 0 0.15rem 1.25rem;
    color: #4d4841;
    background: transparent;
    border: 0;
    border-left: 1px solid var(--post-line);
    border-radius: 0;
    box-shadow: none;
}

body.single-post .entry-content blockquote::before {
    content: none;
}

body.single-post .entry-content figure {
    max-width: 100%;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

body.single-post .entry-content figure.technical-figure img,
body.single-post .entry-content img.technical-figure {
    box-sizing: border-box;
    padding: 0;
    background: #fff;
    border: 1px solid var(--post-line);
    border-radius: 2px;
    box-shadow: none;
}

body.single-post .entry-content img[class*="ql-img-"],
body.single-post .entry-content [class*="ql-img-"] {
    width: auto;
    max-width: 100%;
    margin: 0;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

body.single-post .entry-content .wp-block-code,
body.single-post .entry-content [class*="code-block-pro"] {
    margin-top: 2rem;
    margin-bottom: 2rem;
    max-width: 100%;
}

body.single-post .entry-content figure.wp-block-table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    border: 0;
    -webkit-overflow-scrolling: touch;
}

body.single-post .entry-content figure.wp-block-table table,
body.single-post .entry-content > table {
    display: table;
    width: 100%;
    min-width: 700px;
    margin: 0;
    overflow: visible;
    color: var(--post-body);
    background: transparent;
    border: 1px solid var(--post-line);
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 0.88rem;
    line-height: 1.45;
    white-space: normal;
}

body.single-post .entry-content table th,
body.single-post .entry-content table td {
    min-width: 0;
    padding: 0.65rem 0.7rem;
    background: transparent;
    border: 1px solid var(--post-line);
    text-align: left;
    vertical-align: top;
    white-space: normal;
}

body.single-post .entry-content table th {
    color: var(--post-text);
    background: var(--post-paper);
    font-weight: 700;
}

body.single-post .custom-social-share {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
    margin: 3rem 0 1rem;
    padding: 1rem 0 0;
    color: var(--post-muted);
    background: transparent !important;
    border: 0 !important;
    border-top: 1px solid var(--post-line) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

body.single-post .custom-social-share .share-title {
    margin: 0;
    color: var(--post-muted);
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
}

body.single-post .custom-social-share .share-buttons {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.4rem 0.9rem;
}

body.single-post .custom-social-share .share-btn {
    display: inline;
    padding: 0;
    color: var(--post-muted) !important;
    background: transparent !important;
    border: 0;
    border-radius: 0;
    box-shadow: none !important;
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.5;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
    transform: none !important;
    transition: none;
}

body.single-post .custom-social-share .share-btn:hover,
body.single-post .custom-social-share .share-btn:focus-visible {
    color: var(--post-text) !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

@media (max-width: 768px) {
    body.single-post #content > .content-wrap {
        padding-top: 1.25rem;
    }

    body.single-post .breadcrumbs,
    body.single-post #primary {
        max-width: 100% !important;
        padding-right: 20px !important;
        padding-left: 20px !important;
    }

    body.single-post .breadcrumbs {
        margin-bottom: 1.2rem;
        font-size: 0.74rem;
    }

    body.single-post .featured-thumbnail .wp-post-image,
    body.single-post article.posts-entry > a > .wp-post-image,
    body.single-post article.posts-entry > .wp-post-image {
        margin-bottom: 1.5rem;
        border-radius: 4px;
    }

    body.single-post .entry-title,
    body.single-post h1.entry-title {
        font-size: clamp(1.85rem, 9vw, 2.2rem);
        line-height: 1.2;
    }

    body.single-post .entry-content {
        font-size: 1rem;
        line-height: 1.72;
    }

    body.single-post .entry-content figure.wp-block-table {
        margin-right: 0;
        margin-left: 0;
    }

    body.single-post .entry-content figure.wp-block-table table,
    body.single-post .entry-content > table {
        display: table;
        min-width: 680px;
        overflow: visible;
    }

    body.single-post .custom-social-share {
        display: block;
        margin-top: 2.5rem;
        padding: 0.9rem 0 0;
    }

    body.single-post .custom-social-share .share-title {
        display: block;
        margin-bottom: 0.45rem;
    }

    body.single-post .custom-social-share .share-btn,
    body.single-post .custom-social-share .share-btn span {
        display: inline;
        padding: 0;
        font-size: 0.78rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.single-post *,
    body.single-post *::before,
    body.single-post *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* ========================================
   PATCH 003 - SINGLE POST REFINEMENT
   Scope intenzionale: soli singoli post.
   ======================================== */

body.single-post {
    --post-editorial-measure: 780px;
    --post-gutter: clamp(1.25rem, 4vw, 3rem);
}

body.single-post #masthead,
body.single-post #masthead > .content-wrap {
    overflow: visible;
}

body.single-post #masthead > .content-wrap,
body.single-post #content > .content-wrap {
    box-sizing: border-box;
    float: none !important;
    max-width: none !important;
    width: 100% !important;
    margin-inline: auto !important;
    padding-inline: 0 !important;
}

body.single-post .site-branding {
    padding: clamp(1.75rem, 4vw, 3rem) var(--post-gutter) clamp(1.25rem, 3vw, 2rem);
}

body.single-post .site-branding .site-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 400;
    letter-spacing: -0.035em;
    line-height: 1;
}

body.single-post .mdp-post-header-bar {
    background: var(--post-paper);
    border-bottom: 1px solid var(--post-line);
    color: var(--post-text);
    overflow: visible;
    position: relative;
    z-index: 80;
}

body.single-post .mdp-post-header-bar__inner {
    align-items: center;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(2.75rem, 1fr) auto minmax(2.75rem, 1fr);
    margin: 0 auto;
    max-width: 76rem;
    overflow: visible;
    padding: 0.9rem var(--post-gutter);
    width: 100%;
}

body.single-post .mdp-post-header-bar__rail {
    grid-column: 1;
}

body.single-post .mdp-post-navigation {
    grid-column: 2;
    justify-self: center;
    min-width: 0;
    overflow: visible;
}

body.single-post .mdp-post-menu,
body.single-post .mdp-post-menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

body.single-post .mdp-post-menu {
    align-items: center;
    display: flex;
    gap: clamp(1rem, 2.5vw, 2.25rem);
}

body.single-post .mdp-post-menu li {
    margin: 0;
    padding: 0;
    position: relative;
}

body.single-post .mdp-post-menu li::before {
    content: none !important;
}

body.single-post .mdp-post-menu > li > a,
body.single-post .mdp-post-paths-toggle {
    background: transparent;
    border: 0;
    color: var(--post-text);
    cursor: pointer;
    display: block;
    font: inherit;
    font-size: 0.9rem;
    font-variant-caps: all-small-caps;
    font-weight: 400;
    letter-spacing: 0.08em;
    line-height: 1.4;
    padding: 0.4rem 0;
    text-decoration: none;
    white-space: nowrap;
}

body.single-post .mdp-post-paths-toggle {
    align-items: center;
    display: flex;
    gap: 0.4rem;
}

body.single-post .mdp-post-submenu-indicator {
    border-bottom: 1px solid currentColor;
    border-right: 1px solid currentColor;
    height: 0.35rem;
    transform: translateY(-0.1rem) rotate(45deg);
    width: 0.35rem;
}

body.single-post .mdp-post-menu .sub-menu {
    background: var(--post-paper);
    border: 1px solid var(--post-line);
    left: -0.8rem;
    min-width: 14rem;
    opacity: 0;
    padding: 0.45rem 0;
    pointer-events: none;
    position: absolute;
    top: 100%;
    transform: translateY(0.35rem);
    visibility: hidden;
    z-index: 100;
}

body.single-post .mdp-post-menu .sub-menu a {
    color: var(--post-text);
    display: block;
    font: inherit;
    font-size: 0.82rem;
    font-variant-caps: normal;
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.4;
    padding: 0.55rem 0.8rem;
    text-decoration: none;
    text-transform: none;
}

body.single-post .mdp-post-menu > li > a:hover,
body.single-post .mdp-post-menu > li > a:focus-visible,
body.single-post .mdp-post-paths-toggle:hover,
body.single-post .mdp-post-paths-toggle:focus-visible,
body.single-post .mdp-post-menu .sub-menu a:hover,
body.single-post .mdp-post-menu .sub-menu a:focus-visible {
    color: var(--post-muted);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.25em;
}

body.single-post .mdp-post-menu li:hover > .sub-menu,
body.single-post .mdp-post-menu li:focus-within > .sub-menu,
body.single-post .mdp-post-menu__item--paths.is-open > .sub-menu {
    display: block;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
}

body.single-post .mdp-post-menu__item--paths.is-open .mdp-post-submenu-indicator {
    transform: translateY(0.1rem) rotate(225deg);
}

body.single-post .mdp-post-navigation__toggle {
    background: transparent;
    border: 1px solid var(--post-line);
    color: var(--post-text);
    cursor: pointer;
    display: none;
    font: inherit;
    padding: 0.55rem 0.8rem;
}

body.single-post .mdp-post-search {
    grid-column: 3;
    justify-self: end;
    position: relative;
}

body.single-post .mdp-post-search__toggle {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--post-text);
    cursor: pointer;
    display: flex;
    height: 2.75rem;
    justify-content: center;
    padding: 0;
    width: 2.75rem;
}

body.single-post .mdp-post-search__form {
    align-items: stretch;
    background: var(--post-paper);
    border: 1px solid var(--post-line);
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 0.65rem);
    width: min(24rem, calc(100vw - (2 * var(--post-gutter))));
    z-index: 100;
}

body.single-post .mdp-post-search.is-open .mdp-post-search__form {
    display: flex;
}

body.single-post .mdp-post-search__field,
body.single-post .mdp-post-search__submit {
    background: var(--post-paper);
    border: 0;
    color: var(--post-text);
    font: inherit;
    padding: 0.75rem;
}

body.single-post .mdp-post-search__field {
    min-width: 0;
    width: 100%;
}

body.single-post .mdp-post-search__submit {
    border-left: 1px solid var(--post-line);
    cursor: pointer;
    padding-inline: 1rem;
}

body.single-post .mdp-post-navigation a:focus-visible,
body.single-post .mdp-post-navigation button:focus-visible,
body.single-post .mdp-post-search button:focus-visible,
body.single-post .mdp-post-search input:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

body.single-post #content > .content-wrap {
    padding-top: clamp(1.4rem, 4vw, 2.4rem) !important;
}

body.single-post .breadcrumbs,
body.single-post #primary {
    box-sizing: border-box;
    float: none !important;
    max-width: calc(var(--post-editorial-measure) + (2 * var(--post-gutter))) !important;
    width: 100% !important;
    margin-inline: auto !important;
    padding-inline: var(--post-gutter) !important;
}

body.single-post #main,
body.single-post #main.site-main > article.posts-entry.fbox,
body.single-post .entry-header,
body.single-post .entry-content {
    box-sizing: border-box;
    max-width: none !important;
    width: 100% !important;
    margin-inline: 0 !important;
}

body.single-post .breadcrumbs {
    max-width: calc(var(--post-editorial-measure) + (2 * var(--post-gutter))) !important;
}

body.single-post .entry-header {
    text-align: left;
}

body.single-post .entry-meta,
body.single-post .entry-meta::before,
body.single-post .entry-meta::after {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

body.single-post .entry-meta::before,
body.single-post .entry-meta::after {
    content: none !important;
}

body.single-post .entry-content ol,
body.single-post .entry-content ul {
    counter-reset: none;
    list-style-position: outside;
    margin: 0 0 1.5em 1.35em;
    padding-left: 0.75em;
}

body.single-post .entry-content ol {
    list-style-type: decimal;
}

body.single-post .entry-content ul {
    list-style-type: disc;
}

body.single-post .entry-content ul ul {
    list-style-type: circle;
}

body.single-post .entry-content ul ul ul {
    list-style-type: square;
}

body.single-post .entry-content ol ol {
    list-style-type: lower-alpha;
}

body.single-post .entry-content li {
    display: list-item;
    padding-left: 0.15em;
}

body.single-post .entry-content li::before {
    content: none !important;
    display: none !important;
}

body.single-post .entry-content code:not(pre code):not(.wp-block-code code) {
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    overflow-wrap: anywhere;
    padding: 0.05em 0.18em;
    color: #3f3a34;
    background: rgba(216, 209, 197, 0.28);
    border: 0;
    border-radius: 1px;
    box-shadow: none;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
    font-size: 0.9em;
    font-weight: 400;
}

body.single-post .entry-content pre code,
body.single-post .entry-content .wp-block-code code,
body.single-post .entry-content [class*="code-block-pro"] code {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: inherit;
    box-shadow: none;
    overflow-wrap: normal;
}

body.single-post .entry-content .wp-block-image img:not([class*="ql-img-"]):not(.emoji):not(.wp-smiley),
body.single-post .entry-content .wp-caption img:not([class*="ql-img-"]):not(.emoji):not(.wp-smiley),
body.single-post .entry-content p > img:not([class*="ql-img-"]):not(.emoji):not(.wp-smiley),
body.single-post .entry-content p > a > img:not([class*="ql-img-"]):not(.emoji):not(.wp-smiley) {
    box-sizing: border-box;
    padding: 0;
    background: transparent;
    border: 1px solid #ded8ce;
    border-radius: 4px;
    box-shadow: none;
}

body.single-post .entry-content img[class*="ql-img-"],
body.single-post .entry-content [class*="ql-img-"] img,
body.single-post .entry-content img.emoji,
body.single-post .entry-content img.wp-smiley,
body.single-post .entry-content [class*="code-block-pro"] img,
body.single-post .entry-content button img {
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

body.single-post .post-citation {
    margin: clamp(3rem, 7vw, 4.5rem) 0 0;
    padding: 1.1rem 0 0;
    color: var(--post-muted);
    background: transparent;
    border: 0;
    border-top: 1px solid var(--post-line);
    box-shadow: none;
    font-size: 0.82rem;
    line-height: 1.6;
}

body.single-post .post-citation h2 {
    margin: 0 0 0.45rem;
    padding: 0;
    color: var(--post-muted);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.4;
    text-transform: uppercase;
}

body.single-post .post-citation p {
    margin: 0;
}

body.single-post .post-citation cite {
    font-style: normal;
}

body.single-post .post-citation a {
    overflow-wrap: anywhere;
}

body.single-post .custom-social-share {
    margin-top: 1.25rem;
    padding-top: 0;
    border-top: 0 !important;
}

body.single-post .custom-social-share .share-separator {
    color: var(--post-muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

/* ========================================
   PATCH 004 - RESIDUAL POST FIXES
   Scope intenzionale: soli singoli post.
   ======================================== */

body.single-post .blog-data-wrapper,
body.single-post .blog-data-wrapper::before,
body.single-post .blog-data-wrapper::after,
body.single-post .blog-data-wrapper .entry-meta {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

body.single-post .blog-data-wrapper {
    margin-inline: 0 !important;
    padding: 0 !important;
}

body.single-post .blog-data-wrapper::before,
body.single-post .blog-data-wrapper::after {
    content: none !important;
    display: none !important;
}

body.single-post .entry-content :where(p, li, blockquote, figcaption, td, th) a:not(.share-btn):not(.wp-block-button__link) {
    color: #6b4f3a;
    background: transparent;
    text-decoration-color: currentColor;
    text-decoration-line: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.22em;
}

body.single-post .entry-content :where(p, li, blockquote, figcaption, td, th) a:not(.share-btn):not(.wp-block-button__link):visited {
    color: #765f4c;
}

body.single-post .entry-content :where(p, li, blockquote, figcaption, td, th) a:not(.share-btn):not(.wp-block-button__link):hover,
body.single-post .entry-content :where(p, li, blockquote, figcaption, td, th) a:not(.share-btn):not(.wp-block-button__link):focus-visible {
    color: #3f2f24;
    text-decoration-thickness: 2px;
}

body.single-post .post-citation .post-citation__permalink,
body.single-post .post-citation .post-citation__permalink:visited {
    color: var(--post-muted);
    font-size: 0.95em;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

body.single-post .post-citation .post-citation__permalink:hover,
body.single-post .post-citation .post-citation__permalink:focus-visible {
    color: var(--post-text);
}

/* ========================================
   PATCH 005 - METADATA STRIP + SHARE
   Scope intenzionale: soli singoli post.
   ======================================== */

body.single-post .post-data-text {
    background: transparent;
    padding-inline: 0;
}

body.single-post .post-data-divider {
    display: none;
}

body.single-post .mdp-post-share {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.65rem;
    margin: 1rem 0 0;
    color: var(--post-muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

body.single-post .mdp-post-share__links {
    align-items: baseline;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

body.single-post .mdp-post-share a,
body.single-post .mdp-post-share a:visited {
    color: #6b4f3a;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

body.single-post .mdp-post-share a:hover,
body.single-post .mdp-post-share a:focus-visible {
    color: var(--post-text);
    text-decoration-thickness: 2px;
}

body.single-post .mdp-post-share a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

@media (max-width: 900px) {
    body.single-post .mdp-post-menu {
        background: var(--post-paper);
        border: 1px solid var(--post-line);
        display: block;
        max-height: calc(100vh - 6rem);
        overflow: auto;
        padding: 0.6rem;
        position: absolute;
        right: var(--post-gutter);
        top: calc(100% - 0.4rem);
        width: min(22rem, calc(100vw - (2 * var(--post-gutter))));
        z-index: 100;
    }

    .mdp-post-menu-js body.single-post .mdp-post-navigation__toggle {
        display: block;
    }

    .mdp-post-menu-js body.single-post .mdp-post-menu {
        display: none;
    }

    .mdp-post-menu-js body.single-post .mdp-post-navigation.is-open .mdp-post-menu {
        display: block;
    }

    body.single-post .mdp-post-menu > li > a,
    body.single-post .mdp-post-menu .sub-menu a,
    body.single-post .mdp-post-paths-toggle {
        padding: 0.7rem;
    }

    body.single-post .mdp-post-menu .sub-menu {
        border: 0;
        margin-left: 1rem;
        min-width: 0;
        opacity: 1;
        padding: 0;
        pointer-events: auto;
        position: static;
        transform: none;
        visibility: visible;
    }

    .mdp-post-menu-js body.single-post .mdp-post-menu .sub-menu {
        display: none;
    }

    .mdp-post-menu-js body.single-post .mdp-post-menu__item--paths.is-open > .sub-menu {
        display: block;
    }
}

@media (max-width: 520px) {
    body.single-post {
        --post-gutter: 1.25rem;
    }

    body.single-post .site-branding .site-title {
        font-size: clamp(1.85rem, 9vw, 2.6rem);
    }

    body.single-post .mdp-post-header-bar__inner {
        padding-block: 0.85rem;
    }

    body.single-post .entry-content ol,
    body.single-post .entry-content ul {
        margin-left: 1.1em;
        padding-left: 0.55em;
    }
}

/* ========================================
   PATCH 006 - STANDARD PAGES REDESIGN
   Scope positivo assegnato dal child theme.
   ======================================== */

body.mdp-standard-page {
    --page-background: #f3f0e9;
    --page-paper: #faf8f2;
    --page-text: #292724;
    --page-body: #35312d;
    --page-muted: #706b63;
    --page-line: #d8d1c5;
    --page-measure: 780px;
    --page-gutter: clamp(1.25rem, 4vw, 3rem);
    background: var(--page-background) !important;
    color: var(--page-text);
}

body.mdp-standard-page #page,
body.mdp-standard-page #masthead,
body.mdp-standard-page #masthead > .content-wrap,
body.mdp-standard-page .site-branding,
body.mdp-standard-page #content,
body.mdp-standard-page #content > .content-wrap,
body.mdp-standard-page #primary,
body.mdp-standard-page #main,
body.mdp-standard-page .entry-header,
body.mdp-standard-page .entry-content {
    background: var(--page-background) !important;
}

body.mdp-standard-page #masthead,
body.mdp-standard-page #masthead > .content-wrap {
    overflow: visible;
}

body.mdp-standard-page #masthead > .content-wrap,
body.mdp-standard-page #content > .content-wrap {
    box-sizing: border-box;
    float: none !important;
    max-width: none !important;
    width: 100% !important;
    margin-inline: auto !important;
    padding-inline: 0 !important;
}

body.mdp-standard-page .site-branding {
    display: block;
    margin: 0;
    padding: clamp(1.75rem, 4vw, 3rem) var(--page-gutter) clamp(1.25rem, 3vw, 2rem);
    text-align: center;
    box-shadow: none;
}

body.mdp-standard-page .site-branding .site-title {
    margin: 0;
    color: var(--page-text);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 400;
    letter-spacing: -0.035em;
    line-height: 1;
}

body.mdp-standard-page .site-branding .site-title a {
    color: inherit;
    text-decoration: none;
}

body.mdp-standard-page .site-branding .site-description {
    display: none;
}

body.mdp-standard-page .mdp-post-header-bar {
    background: var(--page-paper);
    border-bottom: 1px solid var(--page-line);
    color: var(--page-text);
    overflow: visible;
    position: relative;
    z-index: 80;
}

body.mdp-standard-page .mdp-post-header-bar__inner {
    align-items: center;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(2.75rem, 1fr) auto minmax(2.75rem, 1fr);
    margin: 0 auto;
    max-width: 76rem;
    overflow: visible;
    padding: 0.9rem var(--page-gutter);
    width: 100%;
}

body.mdp-standard-page .mdp-post-header-bar__rail {
    grid-column: 1;
}

body.mdp-standard-page .mdp-post-navigation {
    grid-column: 2;
    justify-self: center;
    min-width: 0;
    overflow: visible;
}

body.mdp-standard-page .mdp-post-menu,
body.mdp-standard-page .mdp-post-menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

body.mdp-standard-page .mdp-post-menu {
    align-items: center;
    display: flex;
    gap: clamp(1rem, 2.5vw, 2.25rem);
}

body.mdp-standard-page .mdp-post-menu li {
    margin: 0;
    padding: 0;
    position: relative;
}

body.mdp-standard-page .mdp-post-menu li::before {
    content: none !important;
}

body.mdp-standard-page .mdp-post-menu > li > a,
body.mdp-standard-page .mdp-post-paths-toggle {
    background: transparent;
    border: 0;
    color: var(--page-text);
    cursor: pointer;
    display: block;
    font: inherit;
    font-size: 0.9rem;
    font-variant-caps: all-small-caps;
    font-weight: 400;
    letter-spacing: 0.08em;
    line-height: 1.4;
    padding: 0.4rem 0;
    text-decoration: none;
    white-space: nowrap;
}

body.mdp-standard-page .mdp-post-paths-toggle {
    align-items: center;
    display: flex;
    gap: 0.4rem;
}

body.mdp-standard-page .mdp-post-submenu-indicator {
    border-bottom: 1px solid currentColor;
    border-right: 1px solid currentColor;
    height: 0.35rem;
    transform: translateY(-0.1rem) rotate(45deg);
    width: 0.35rem;
}

body.mdp-standard-page .mdp-post-menu .sub-menu {
    background: var(--page-paper);
    border: 1px solid var(--page-line);
    left: -0.8rem;
    min-width: 14rem;
    opacity: 0;
    padding: 0.45rem 0;
    pointer-events: none;
    position: absolute;
    top: 100%;
    transform: translateY(0.35rem);
    visibility: hidden;
    z-index: 100;
}

body.mdp-standard-page .mdp-post-menu .sub-menu a {
    color: var(--page-text);
    display: block;
    font: inherit;
    font-size: 0.82rem;
    font-variant-caps: normal;
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.4;
    padding: 0.55rem 0.8rem;
    text-decoration: none;
    text-transform: none;
}

body.mdp-standard-page .mdp-post-menu > li > a:hover,
body.mdp-standard-page .mdp-post-menu > li > a:focus-visible,
body.mdp-standard-page .mdp-post-paths-toggle:hover,
body.mdp-standard-page .mdp-post-paths-toggle:focus-visible,
body.mdp-standard-page .mdp-post-menu .sub-menu a:hover,
body.mdp-standard-page .mdp-post-menu .sub-menu a:focus-visible {
    color: var(--page-muted);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.25em;
}

body.mdp-standard-page .mdp-post-menu li:hover > .sub-menu,
body.mdp-standard-page .mdp-post-menu li:focus-within > .sub-menu,
body.mdp-standard-page .mdp-post-menu__item--paths.is-open > .sub-menu {
    display: block;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
}

body.mdp-standard-page .mdp-post-menu__item--paths.is-open .mdp-post-submenu-indicator {
    transform: translateY(0.1rem) rotate(225deg);
}

body.mdp-standard-page .mdp-post-navigation__toggle {
    background: transparent;
    border: 1px solid var(--page-line);
    color: var(--page-text);
    cursor: pointer;
    display: none;
    font: inherit;
    padding: 0.55rem 0.8rem;
}

body.mdp-standard-page .mdp-post-search {
    grid-column: 3;
    justify-self: end;
    position: relative;
}

body.mdp-standard-page .mdp-post-search__toggle {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--page-text);
    cursor: pointer;
    display: flex;
    height: 2.75rem;
    justify-content: center;
    padding: 0;
    width: 2.75rem;
}

body.mdp-standard-page .mdp-post-search__form {
    align-items: stretch;
    background: var(--page-paper);
    border: 1px solid var(--page-line);
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 0.65rem);
    width: min(24rem, calc(100vw - (2 * var(--page-gutter))));
    z-index: 100;
}

body.mdp-standard-page .mdp-post-search.is-open .mdp-post-search__form {
    display: flex;
}

body.mdp-standard-page .mdp-post-search__field,
body.mdp-standard-page .mdp-post-search__submit {
    background: var(--page-paper);
    border: 0;
    color: var(--page-text);
    font: inherit;
    padding: 0.75rem;
}

body.mdp-standard-page .mdp-post-search__field {
    min-width: 0;
    width: 100%;
}

body.mdp-standard-page .mdp-post-search__submit {
    border-left: 1px solid var(--page-line);
    cursor: pointer;
    padding-inline: 1rem;
}

body.mdp-standard-page .mdp-post-navigation a:focus-visible,
body.mdp-standard-page .mdp-post-navigation button:focus-visible,
body.mdp-standard-page .mdp-post-search button:focus-visible,
body.mdp-standard-page .mdp-post-search input:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

body.mdp-standard-page #content > .content-wrap {
    padding-top: clamp(1.4rem, 4vw, 2.4rem) !important;
}

body.mdp-standard-page .breadcrumbs,
body.mdp-standard-page #primary {
    box-sizing: border-box;
    float: none !important;
    max-width: calc(var(--page-measure) + (2 * var(--page-gutter))) !important;
    width: 100% !important;
    margin-inline: auto !important;
    padding-inline: var(--page-gutter) !important;
}

body.mdp-standard-page .breadcrumbs {
    margin-top: 0;
    margin-bottom: clamp(1.25rem, 3vw, 2rem);
    padding-top: 0;
    padding-bottom: 0;
    color: var(--page-muted);
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.45;
    word-spacing: normal;
}

body.mdp-standard-page .breadcrumbs a {
    color: var(--page-muted);
    font-weight: 400;
    text-decoration: none;
}

body.mdp-standard-page .breadcrumbs a:hover,
body.mdp-standard-page .breadcrumbs a:focus-visible {
    color: var(--page-text);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

body.mdp-standard-page .breadcrumbs a:first-child::before {
    content: none !important;
}

body.mdp-standard-page #main,
body.mdp-standard-page #main.site-main > article.posts-entry.fbox,
body.mdp-standard-page .entry-header,
body.mdp-standard-page .entry-content {
    box-sizing: border-box;
    max-width: none !important;
    width: 100% !important;
    margin-inline: 0 !important;
}

body.mdp-standard-page #main.site-main > article.posts-entry.fbox {
    margin-bottom: clamp(3rem, 7vw, 5rem) !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

body.mdp-standard-page .featured-thumbnail .wp-post-image,
body.mdp-standard-page article.posts-entry > a > .wp-post-image,
body.mdp-standard-page article.posts-entry > .wp-post-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 0 clamp(1.6rem, 4vw, 2.25rem);
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

body.mdp-standard-page .entry-header {
    text-align: left;
}

body.mdp-standard-page .entry-title,
body.mdp-standard-page h1.entry-title {
    margin: 0 0 clamp(1.5rem, 4vw, 2.25rem);
    color: var(--page-text);
    font-size: clamp(2rem, 5vw, 2.65rem);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.025em;
}

body.mdp-standard-page .entry-meta,
body.mdp-standard-page .blog-data-wrapper,
body.mdp-standard-page .post-data-text {
    color: var(--page-muted);
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

body.mdp-standard-page .post-data-divider {
    display: none;
}

body.mdp-standard-page .entry-content {
    color: var(--page-body);
    font-size: 1.05rem;
    line-height: 1.76;
}

body.mdp-standard-page .entry-content p {
    margin-top: 0;
    margin-bottom: 1.4em;
}

body.mdp-standard-page .entry-content h2,
body.mdp-standard-page .entry-content h3,
body.mdp-standard-page .entry-content h4 {
    color: var(--page-text);
    text-wrap: balance;
}

body.mdp-standard-page .entry-content h2 {
    margin: 2.25em 0 0.75em;
    padding: 0;
    border: 0;
    font-size: clamp(1.55rem, 4vw, 1.85rem);
    line-height: 1.3;
}

body.mdp-standard-page .entry-content h3 {
    margin: 1.9em 0 0.65em;
    font-size: clamp(1.25rem, 3vw, 1.45rem);
    line-height: 1.35;
}

body.mdp-standard-page .entry-content h4 {
    margin: 1.65em 0 0.55em;
    font-size: 1.1rem;
    line-height: 1.4;
}

body.mdp-standard-page .entry-content ol,
body.mdp-standard-page .entry-content ul {
    counter-reset: none;
    list-style-position: outside;
    margin: 0 0 1.5em 1.35em;
    padding-left: 0.75em;
}

body.mdp-standard-page .entry-content ol {
    list-style-type: decimal;
}

body.mdp-standard-page .entry-content ul {
    list-style-type: disc;
}

body.mdp-standard-page .entry-content ul ul {
    list-style-type: circle;
}

body.mdp-standard-page .entry-content ul ul ul {
    list-style-type: square;
}

body.mdp-standard-page .entry-content ol ol {
    list-style-type: lower-alpha;
}

body.mdp-standard-page .entry-content li {
    display: list-item;
    margin-bottom: 0.45em;
    padding-left: 0.15em;
}

body.mdp-standard-page .entry-content li::before {
    content: none !important;
    display: none !important;
}

body.mdp-standard-page .entry-content li::marker {
    color: var(--page-muted);
}

body.mdp-standard-page .entry-content :where(p, li, blockquote, figcaption, td, th) a:not(.wp-block-button__link):not(.course-nav-link) {
    color: #6b4f3a;
    background: transparent;
    text-decoration: underline;
    text-decoration-color: currentColor;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.22em;
}

body.mdp-standard-page .entry-content :where(p, li, blockquote, figcaption, td, th) a:not(.wp-block-button__link):not(.course-nav-link):visited {
    color: #765f4c;
}

body.mdp-standard-page .entry-content :where(p, li, blockquote, figcaption, td, th) a:not(.wp-block-button__link):not(.course-nav-link):hover,
body.mdp-standard-page .entry-content :where(p, li, blockquote, figcaption, td, th) a:not(.wp-block-button__link):not(.course-nav-link):focus-visible {
    color: #3f2f24;
    text-decoration-thickness: 2px;
}

body.mdp-standard-page .entry-content blockquote {
    margin: 2rem 0;
    padding: 0.15rem 0 0.15rem 1.25rem;
    color: #4d4841;
    background: transparent;
    border: 0;
    border-left: 1px solid var(--page-line);
    border-radius: 0;
    box-shadow: none;
}

body.mdp-standard-page .entry-content blockquote::before {
    content: none;
}

body.mdp-standard-page .entry-content code:not(pre code):not(.wp-block-code code) {
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    overflow-wrap: anywhere;
    padding: 0.05em 0.18em;
    color: #3f3a34;
    background: rgba(216, 209, 197, 0.28);
    border: 0;
    border-radius: 1px;
    box-shadow: none;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
    font-size: 0.9em;
    font-weight: 400;
}

body.mdp-standard-page .entry-content pre code,
body.mdp-standard-page .entry-content .wp-block-code code,
body.mdp-standard-page .entry-content [class*="code-block-pro"] code {
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow-wrap: normal;
}

body.mdp-standard-page .entry-content .wp-block-code,
body.mdp-standard-page .entry-content [class*="code-block-pro"] {
    max-width: 100%;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

body.mdp-standard-page .entry-content .wp-block-image img:not([class*="ql-img-"]):not(.emoji):not(.wp-smiley),
body.mdp-standard-page .entry-content .wp-caption img:not([class*="ql-img-"]):not(.emoji):not(.wp-smiley),
body.mdp-standard-page .entry-content p > img:not([class*="ql-img-"]):not(.emoji):not(.wp-smiley),
body.mdp-standard-page .entry-content p > a > img:not([class*="ql-img-"]):not(.emoji):not(.wp-smiley) {
    box-sizing: border-box;
    max-width: 100%;
    height: auto;
    padding: 0;
    background: transparent;
    border: 1px solid #ded8ce;
    border-radius: 4px;
    box-shadow: none;
}

body.mdp-standard-page .entry-content img[class*="ql-img-"],
body.mdp-standard-page .entry-content [class*="ql-img-"] img,
body.mdp-standard-page .entry-content img.emoji,
body.mdp-standard-page .entry-content img.wp-smiley,
body.mdp-standard-page .entry-content [class*="code-block-pro"] img,
body.mdp-standard-page .entry-content button img {
    width: auto;
    max-width: 100%;
    margin: 0;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

body.mdp-standard-page .entry-content figure.wp-block-table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    border: 0;
    -webkit-overflow-scrolling: touch;
}

body.mdp-standard-page .entry-content figure.wp-block-table table,
body.mdp-standard-page .entry-content > table {
    display: table;
    width: 100%;
    min-width: 700px;
    margin: 0;
    color: var(--page-body);
    background: transparent;
    border: 1px solid var(--page-line);
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 0.88rem;
    line-height: 1.45;
    white-space: normal;
}

body.mdp-standard-page .entry-content table th,
body.mdp-standard-page .entry-content table td {
    min-width: 0;
    padding: 0.65rem 0.7rem;
    background: transparent;
    border: 1px solid var(--page-line);
    text-align: left;
    vertical-align: top;
    white-space: normal;
}

body.mdp-standard-page .entry-content table th {
    color: var(--page-text);
    background: var(--page-paper);
    font-weight: 700;
}

body.mdp-standard-page .post-citation {
    margin: clamp(3rem, 7vw, 4.5rem) 0 0;
    padding: 1.1rem 0 0;
    color: var(--page-muted);
    background: transparent;
    border: 0;
    border-top: 1px solid var(--page-line);
    box-shadow: none;
    font-size: 0.82rem;
    line-height: 1.6;
}

body.mdp-standard-page .post-citation h2 {
    margin: 0 0 0.45rem;
    padding: 0;
    color: var(--page-muted);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.4;
    text-transform: uppercase;
}

body.mdp-standard-page .post-citation p,
body.mdp-standard-page .post-citation cite {
    margin: 0;
    font-style: normal;
}

body.mdp-standard-page .post-citation__permalink,
body.mdp-standard-page .post-citation__permalink:visited {
    color: var(--page-muted);
    font-size: 0.95em;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

body.mdp-standard-page .mdp-post-share {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.65rem;
    margin: 1rem 0 0;
    color: var(--page-muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

body.mdp-standard-page .mdp-post-share__links {
    align-items: baseline;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

body.mdp-standard-page .mdp-post-share a,
body.mdp-standard-page .mdp-post-share a:visited {
    color: #6b4f3a;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

body.mdp-standard-page .mdp-post-share a:hover,
body.mdp-standard-page .mdp-post-share a:focus-visible {
    color: var(--page-text);
    text-decoration-thickness: 2px;
}

body.mdp-standard-page .course-navigation,
body.mdp-standard-page .course-navigation * {
    box-sizing: border-box;
}

@media (max-width: 900px) {
    body.mdp-standard-page .mdp-post-menu {
        background: var(--page-paper);
        border: 1px solid var(--page-line);
        display: block;
        max-height: calc(100vh - 6rem);
        overflow: auto;
        padding: 0.6rem;
        position: absolute;
        right: var(--page-gutter);
        top: calc(100% - 0.4rem);
        width: min(22rem, calc(100vw - (2 * var(--page-gutter))));
        z-index: 100;
    }

    .mdp-post-menu-js body.mdp-standard-page .mdp-post-navigation__toggle {
        display: block;
    }

    .mdp-post-menu-js body.mdp-standard-page .mdp-post-menu {
        display: none;
    }

    .mdp-post-menu-js body.mdp-standard-page .mdp-post-navigation.is-open .mdp-post-menu {
        display: block;
    }

    body.mdp-standard-page .mdp-post-menu > li > a,
    body.mdp-standard-page .mdp-post-menu .sub-menu a,
    body.mdp-standard-page .mdp-post-paths-toggle {
        padding: 0.7rem;
    }

    body.mdp-standard-page .mdp-post-menu .sub-menu {
        border: 0;
        margin-left: 1rem;
        min-width: 0;
        opacity: 1;
        padding: 0;
        pointer-events: auto;
        position: static;
        transform: none;
        visibility: visible;
    }

    .mdp-post-menu-js body.mdp-standard-page .mdp-post-menu .sub-menu {
        display: none;
    }

    .mdp-post-menu-js body.mdp-standard-page .mdp-post-menu__item--paths.is-open > .sub-menu {
        display: block;
    }
}

@media (max-width: 768px) {
    body.mdp-standard-page {
        --page-gutter: 1.25rem;
    }

    body.mdp-standard-page #content > .content-wrap {
        padding-top: 1.25rem !important;
    }

    body.mdp-standard-page .breadcrumbs {
        margin-bottom: 1.2rem;
        font-size: 0.74rem;
    }

    body.mdp-standard-page .entry-title,
    body.mdp-standard-page h1.entry-title {
        font-size: clamp(1.85rem, 9vw, 2.2rem);
        line-height: 1.2;
    }

    body.mdp-standard-page .entry-content {
        font-size: 1rem;
        line-height: 1.72;
    }

    body.mdp-standard-page .entry-content ol,
    body.mdp-standard-page .entry-content ul {
        margin-left: 1.1em;
        padding-left: 0.55em;
    }

    body.mdp-standard-page .entry-content figure.wp-block-table table,
    body.mdp-standard-page .entry-content > table {
        min-width: 680px;
    }
}

@media (max-width: 520px) {
    body.mdp-standard-page .site-branding .site-title {
        font-size: clamp(1.85rem, 9vw, 2.6rem);
    }

    body.mdp-standard-page .mdp-post-header-bar__inner {
        padding-block: 0.85rem;
    }
}

/* ========================================
   PATCH 007 - PATHS NAVIGATION + SIDEBAR
   ======================================== */

body.mdp-path-topic {
    --path-sidebar-width: 300px;
    --path-sidebar-gap: 48px;
    --path-sidebar-offset: 28px;
}

body.mdp-path-topic .mdp-path-layout,
body.mdp-path-topic .mdp-path-layout__main {
    box-sizing: border-box;
    min-width: 0;
}

body.mdp-path-topic .mdp-path-sidebar {
    display: none;
}

body.mdp-path-topic .course-navigation {
    align-items: start;
    background: transparent;
    border: 0;
    border-radius: 0;
    border-top: 1px solid var(--page-line);
    box-shadow: none;
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    margin: clamp(2.5rem, 6vw, 4rem) 0 1.5rem;
    padding: 1.15rem 0 0;
}

body.mdp-path-topic .course-nav-link,
body.mdp-path-topic .course-navigation.single-nav .course-nav-link {
    align-items: initial;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: var(--page-body);
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    max-width: none;
    min-width: 0;
    padding: 0.45rem 0.25rem;
    text-decoration: none;
    transform: none;
    transition: color 160ms ease;
}

body.mdp-path-topic .course-nav-link:hover,
body.mdp-path-topic .course-nav-link:focus-visible {
    background: transparent;
    border: 0;
    box-shadow: none;
    color: #3f2f24;
    transform: none;
}

body.mdp-path-topic .course-nav-link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

body.mdp-path-topic .course-nav-next {
    grid-column: 2;
    text-align: right;
}

body.mdp-path-topic .course-nav-label {
    color: var(--page-muted);
    display: block;
    font-family: Arial, sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.11em;
    line-height: 1.35;
    margin: 0;
    text-transform: uppercase;
}

body.mdp-path-topic .course-nav-title {
    color: inherit;
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1rem, 1.8vw, 1.12rem);
    font-weight: 400;
    line-height: 1.42;
    margin: 0;
    overflow-wrap: anywhere;
}

body.mdp-path-topic .course-nav-arrow,
body.mdp-path-topic .course-nav-content,
body.mdp-path-topic .course-nav-placeholder {
    display: contents;
}

@media (min-width: 1524px) {
    body.mdp-path-topic .entry-content {
        overflow: visible;
    }

    body.mdp-path-topic .mdp-path-layout {
        align-items: start;
        display: grid;
        gap: var(--path-sidebar-gap);
        grid-template-columns: minmax(0, var(--page-measure)) var(--path-sidebar-width);
        max-width: none;
        width: calc(var(--page-measure) + var(--path-sidebar-gap) + var(--path-sidebar-width));
    }

    body.mdp-path-topic .mdp-path-sidebar {
        align-self: start;
        display: block;
        max-height: calc(100vh - (var(--path-sidebar-offset) * 2));
        overflow-x: hidden;
        overflow-y: auto;
        padding: 0 0.65rem 0 1.05rem;
        position: sticky;
        scrollbar-color: var(--page-line) transparent;
        scrollbar-width: thin;
        top: var(--path-sidebar-offset);
    }

    body.admin-bar.mdp-path-topic .mdp-path-sidebar {
        max-height: calc(100vh - 88px);
        top: 60px;
    }

    body.mdp-path-topic .mdp-path-sidebar nav {
        border-left: 1px solid var(--page-line);
        padding-left: 1rem;
    }

    body.mdp-path-topic .mdp-path-sidebar__title,
    body.mdp-path-topic .mdp-path-sidebar__title:visited {
        color: var(--page-text);
        display: block;
        font-family: Arial, sans-serif;
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.12em;
        line-height: 1.4;
        margin-bottom: 1rem;
        overflow-wrap: anywhere;
        text-decoration: none;
        text-transform: uppercase;
    }

    body.mdp-path-topic .mdp-path-sidebar__list {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    body.mdp-path-topic .mdp-path-sidebar__list li {
        margin: 0;
        padding: 0;
        position: relative;
    }

    body.mdp-path-topic .mdp-path-sidebar__list a,
    body.mdp-path-topic .mdp-path-sidebar__current {
        color: var(--page-muted);
        display: block;
        font-family: Arial, sans-serif;
        font-size: 0.8rem;
        line-height: 1.42;
        overflow-wrap: anywhere;
        padding: 0.38rem 0 0.38rem 0.72rem;
        text-decoration: none;
    }

    body.mdp-path-topic .mdp-path-sidebar__list a:hover {
        color: var(--page-text);
        text-decoration: underline;
        text-decoration-thickness: 1px;
        text-underline-offset: 0.18em;
    }

    body.mdp-path-topic .mdp-path-sidebar__list a:focus-visible,
    body.mdp-path-topic .mdp-path-sidebar__title:focus-visible {
        outline: 2px solid currentColor;
        outline-offset: 3px;
    }

    body.mdp-path-topic .mdp-path-sidebar__current {
        color: var(--page-text);
        font-weight: 600;
    }

    body.mdp-path-topic .mdp-path-sidebar__current::before {
        background: var(--page-text);
        content: "";
        height: calc(100% - 0.5rem);
        left: -1.08rem;
        position: absolute;
        top: 0.25rem;
        width: 2px;
    }
}

@media (max-width: 1523px) {
    body.mdp-path-topic .mdp-path-layout {
        display: block;
        width: auto;
    }
}

@media (max-width: 768px) {
    body.mdp-path-topic .course-navigation,
    body.mdp-path-topic .course-navigation.single-nav {
        display: grid;
        gap: 1rem;
        grid-template-columns: minmax(0, 1fr);
        padding: 1rem 0 0;
    }

    body.mdp-path-topic .course-nav-link,
    body.mdp-path-topic .course-navigation.single-nav .course-nav-link {
        padding: 0.5rem 0.15rem;
    }

    body.mdp-path-topic .course-nav-next {
        grid-column: 1;
        text-align: right;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.mdp-path-topic .course-nav-link {
        transition: none;
    }
}

/* ========================================
   PATCH 008 - PATH INDEX PAGES
   ======================================== */

body.mdp-path-index .mdp-path-index__main,
body.mdp-path-index .mdp-path-index__article,
body.mdp-path-index .mdp-path-index__header,
body.mdp-path-index .mdp-path-index__content {
    box-sizing: border-box;
    max-width: none !important;
    width: 100% !important;
    margin-inline: 0 !important;
}

/* ========================================
   PATCH 014 - WRITINGS ARCHIVE
   ======================================== */

body.mdp-writings .mdp-writings__main,
body.mdp-writings .mdp-writings__archive,
body.mdp-writings .mdp-writings__header {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    float: none !important;
    margin-inline: auto !important;
    max-width: var(--page-measure);
    padding-inline: 0 !important;
    width: 100% !important;
}

body.mdp-writings .mdp-writings__archive {
    padding-block: clamp(1rem, 3vw, 2rem) clamp(3rem, 7vw, 6rem) !important;
}

body.mdp-writings .mdp-writings__header .entry-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.9rem, 4vw, 2.35rem);
    font-weight: 400;
    letter-spacing: -0.025em;
    line-height: 1.22;
    margin: 0 0 1rem;
}

body.mdp-writings .mdp-writings__intro {
    color: var(--page-body);
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
    max-width: 44rem;
}

body.mdp-writings .mdp-writings__tools {
    border-bottom: 1px solid var(--page-line);
    margin: clamp(2rem, 5vw, 3.5rem) 0;
    padding-bottom: 1.5rem;
}

body.mdp-writings .mdp-writings__search-label {
    display: block;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    margin-bottom: 0.45rem;
    text-transform: uppercase;
}

body.mdp-writings .mdp-writings__search {
    background: var(--page-paper);
    border: 1px solid var(--page-line);
    border-radius: 0;
    box-sizing: border-box;
    color: var(--page-text);
    font: inherit;
    max-width: 32rem;
    padding: 0.75rem 0.85rem;
    width: 100%;
}

body.mdp-writings .mdp-writings__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    margin-top: 1.25rem;
}

body.mdp-writings .mdp-writings__filter,
body.mdp-writings .mdp-writings__clear,
body.mdp-writings .mdp-writing__tags button {
    background: transparent;
    border: 0;
    border-radius: 0;
    color: var(--page-muted);
    cursor: pointer;
    font: inherit;
    padding: 0.2rem 0;
    text-decoration: none;
}

body.mdp-writings .mdp-writings__filter.is-active {
    color: var(--page-text);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.3em;
}

body.mdp-writings .mdp-writings__clear {
    font-size: 0.86rem;
    margin-top: 1rem;
    text-decoration: underline;
    text-underline-offset: 0.25em;
}

body.mdp-writings .mdp-writings__year {
    margin-top: clamp(2.5rem, 6vw, 4.5rem);
}

body.mdp-writings .mdp-writings__year > h2 {
    border-bottom: 1px solid var(--page-line);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.45rem, 3vw, 1.8rem);
    font-weight: 400;
    line-height: 1.3;
    margin: 0;
    padding-bottom: 0.6rem;
}

body.mdp-writings .mdp-writing {
    border-bottom: 1px solid var(--page-line);
    padding: clamp(1.4rem, 3vw, 2rem) 0;
}

body.mdp-writings .mdp-writing__title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.2rem, 2.5vw, 1.45rem);
    font-weight: 400;
    line-height: 1.35;
    margin: 0;
}

body.mdp-writings .mdp-writing__title a,
body.mdp-writings .mdp-writing__title a:visited {
    color: var(--page-text);
    text-decoration: none;
}

body.mdp-writings .mdp-writing__title a:hover,
body.mdp-writings .mdp-writing__title a:focus-visible,
body.mdp-writings .mdp-writing__tags button:hover,
body.mdp-writings .mdp-writing__tags button:focus-visible,
body.mdp-writings .mdp-writings__clear:hover,
body.mdp-writings .mdp-writings__clear:focus-visible {
    text-decoration: underline;
    text-underline-offset: 0.22em;
}

body.mdp-writings .mdp-writing__dates,
body.mdp-writings .mdp-writing__tags {
    color: var(--page-muted);
    font-size: 0.82rem;
    line-height: 1.5;
    margin: 0.55rem 0 0;
}

body.mdp-writings .mdp-writing__dates span + span::before {
    content: ' · ';
}

body.mdp-writings .mdp-writing__description {
    color: var(--page-body);
    line-height: 1.65;
    margin: 0.7rem 0 0;
}

body.mdp-writings .mdp-writing__tags button {
    color: inherit;
    font-size: inherit;
}

body.mdp-writings .mdp-writings__empty {
    color: var(--page-muted);
    margin: 2rem 0;
}

body.mdp-writings [hidden] {
    display: none !important;
}

body.mdp-writings :where(.mdp-writings__search, .mdp-writings__filter, .mdp-writings__clear, .mdp-writing__tags button):focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

@media (max-width: 768px) {
    body.mdp-writings .mdp-writings__archive {
        padding-inline: 0 !important;
    }

    body.mdp-writings .mdp-writings__filters {
        gap: 0.45rem 0.9rem;
    }
}

body.mdp-path-index .mdp-path-index__article {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin-bottom: clamp(3rem, 7vw, 5rem);
    padding: 0 !important;
}

body.mdp-path-index .mdp-path-index__header .entry-title {
    font-size: clamp(1.9rem, 4vw, 2.35rem);
    font-weight: 400;
    line-height: 1.22;
    margin-bottom: clamp(2.25rem, 6vw, 3.75rem);
}

body.mdp-path-index .mdp-path-index__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

body.mdp-path-index .mdp-path-index__item {
    border-top: 1px solid var(--page-line);
    margin: 0;
    padding: clamp(1.45rem, 4vw, 2rem) 0;
}

body.mdp-path-index .mdp-path-index__item:last-child {
    border-bottom: 1px solid var(--page-line);
}

body.mdp-path-index .mdp-path-index__item::before {
    content: none !important;
}

body.page.mdp-path-index .mdp-path-index__content .mdp-path-index__topic-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.12rem, 2.4vw, 1.3rem);
    font-weight: 400;
    line-height: 1.42;
    margin: 0;
}

body.mdp-path-index .mdp-path-index__topic-title a,
body.mdp-path-index .mdp-path-index__topic-title a:visited {
    color: var(--page-text);
    text-decoration: none;
}

body.mdp-path-index .mdp-path-index__topic-title a:hover,
body.mdp-path-index .mdp-path-index__topic-title a:focus-visible {
    color: #3f2f24;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

body.mdp-path-index .mdp-path-index__topic-title a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

body.page.mdp-path-index .mdp-path-index__content .mdp-path-index__description {
    color: var(--page-muted);
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    line-height: 1.65;
    margin: 0.55rem 0 0;
    max-width: 68ch;
}

@media (max-width: 768px) {
    body.mdp-path-index .mdp-path-index__header .entry-title {
        margin-bottom: 2rem;
    }

    body.mdp-path-index .mdp-path-index__item {
        padding-block: 1.35rem;
    }

    body.page.mdp-path-index .mdp-path-index__content .mdp-path-index__description {
        font-size: 0.88rem;
        line-height: 1.6;
    }
}

/* ================================================================
   PATCH 016 — ABOUT PAGE
   Gutenberg content remains editorial; these classes control layout only.
   ================================================================ */

body.mdp-about-page .mdp-about-portrait {
    margin: 0 auto clamp(2.4rem, 6vw, 3.75rem);
    max-width: 280px;
    text-align: center;
}

body.mdp-about-page .mdp-about-portrait img {
    border: 0;
    border-radius: 5px;
    box-shadow: none;
    display: block;
    height: auto;
    margin: 0 auto;
    max-width: 100%;
    width: 280px;
}

body.mdp-about-page .mdp-about-portrait figcaption {
    color: var(--page-muted);
    font-family: Arial, sans-serif;
    font-size: 0.8rem;
    font-style: normal;
    line-height: 1.45;
    margin: 0.65rem 0 0;
    text-align: center;
}

body.mdp-about-page .mdp-about-publications {
    margin-top: 1.25rem;
}

body.mdp-about-page .mdp-about-publications > :where(p, ul > li) {
    font-size: 0.94rem;
    line-height: 1.72;
    margin: 0 0 clamp(1.4rem, 3vw, 2rem);
    padding-left: 1.35rem;
    text-indent: -1.35rem;
}

body.mdp-about-page .mdp-about-publications > :where(p, ul > li):last-child {
    margin-bottom: 0;
}

body.mdp-about-page .mdp-about-publications ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

body.mdp-about-page .mdp-about-publications li::before,
body.mdp-about-page .mdp-about-publications li::marker {
    content: none;
}

body.mdp-about-page .mdp-about-publications strong {
    color: var(--page-text);
    font-weight: 700;
}

body.mdp-about-page .mdp-about-publications em {
    font-style: italic;
}

body.mdp-about-page .mdp-about-elsewhere-links {
    color: var(--page-muted);
    font-size: 0.9rem;
    margin-top: 1rem;
}

body.mdp-about-page .mdp-about-elsewhere-links a {
    white-space: nowrap;
}

@media (max-width: 768px) {
    body.mdp-about-page .mdp-about-portrait {
        max-width: min(280px, 78vw);
    }

    body.mdp-about-page .mdp-about-portrait img {
        width: 100%;
    }

    body.mdp-about-page .mdp-about-publications > :where(p, ul > li) {
        font-size: 0.9rem;
        padding-left: 1rem;
        text-indent: -1rem;
    }
}

/* ================================================================
   PATCH 017 — VISIONS PAGE
   The archive remains normal Gutenberg content; CSS controls layout only.
   ================================================================ */

body.mdp-visions-page {
    --page-measure: 1120px;
}

body.mdp-visions-page .entry-content > p:first-child {
    max-width: 780px;
}

.mdp-visions-grid {
    align-items: start;
    column-gap: clamp(2rem, 3vw, 2.5rem);
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    margin: clamp(2.75rem, 7vw, 4.75rem) 0 0;
    max-width: none !important;
    row-gap: clamp(2.5rem, 4vw, 3rem);
    width: 100%;
}

.mdp-visions-grid > .wp-block-group__inner-container {
    align-items: start;
    column-gap: clamp(2rem, 3vw, 2.5rem);
    display: grid !important;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    margin: 0 !important;
    max-width: none !important;
    row-gap: clamp(2.5rem, 4vw, 3rem);
    width: 100% !important;
}

.mdp-visions-grid > .mdp-vision-item,
.mdp-visions-grid > .wp-block-group__inner-container > .mdp-vision-item {
    margin: 0 !important;
    max-width: none !important;
    width: auto !important;
}

.mdp-visions-grid .mdp-vision-item {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    min-width: 0;
    padding: 0;
}

.mdp-visions-grid .mdp-vision-item > .wp-block-group__inner-container {
    display: block !important;
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
}

.mdp-visions-grid .mdp-vision-item > figure,
.mdp-visions-grid .mdp-vision-item > .wp-block-image,
.mdp-visions-grid .mdp-vision-item > .wp-block-group__inner-container > figure,
.mdp-visions-grid .mdp-vision-item > .wp-block-group__inner-container > .wp-block-image {
    margin: 0;
    width: 100%;
}

.mdp-visions-grid .mdp-vision-item .wp-block-image img,
.mdp-visions-grid .mdp-vision-item > img {
    border: 0;
    border-radius: 5px;
    box-shadow: none;
    display: block;
    height: auto;
    margin: 0;
    max-width: 100%;
    padding: 0;
    width: 100%;
}

.mdp-visions-grid .mdp-vision-item > :is(h2, h3),
.mdp-visions-grid .mdp-vision-item > .wp-block-group__inner-container > :is(h2, h3) {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.375rem, 2vw, 1.5rem);
    font-weight: 400;
    line-height: 1.35;
    margin: 1rem 0 0.55rem;
}

.mdp-visions-grid .mdp-vision-item > p,
.mdp-visions-grid .mdp-vision-item > .wp-block-group__inner-container > p {
    color: var(--page-muted);
    font-size: clamp(1rem, 1.5vw, 1.0625rem);
    line-height: 1.55;
    margin: 0 0 0.55rem;
}

.mdp-visions-grid .mdp-vision-item > p:last-child,
.mdp-visions-grid .mdp-vision-item > .wp-block-group__inner-container > p:last-child {
    font-size: 0.9rem;
    margin-bottom: 0;
}

@media (max-width: 800px) {
    .mdp-visions-grid,
    .mdp-visions-grid > .wp-block-group__inner-container {
        grid-template-columns: minmax(0, 1fr) !important;
        row-gap: clamp(2.5rem, 8vw, 3rem);
    }
}

/* ================================================================
   PATCH 022 — SEARCH RESULTS
   Compact editorial results using the shared standard-page shell.
   ================================================================ */

body.mdp-search-results .mdp-search-results__primary,
body.mdp-search-results .mdp-search-results__primary #main {
    box-sizing: border-box;
    float: none !important;
    margin-inline: auto !important;
    max-width: calc(var(--page-measure) + (2 * var(--page-gutter))) !important;
    width: 100% !important;
}

body.mdp-search-results .mdp-search-results__primary {
    padding-inline: var(--page-gutter) !important;
}

body.mdp-search-results .mdp-search-results__header,
body.mdp-search-results .mdp-search-results__empty {
    margin: 0 0 clamp(2rem, 5vw, 3rem);
}

body.mdp-search-results .mdp-search-results__header,
body.mdp-search-results .mdp-search-result__header {
    background: transparent !important;
}

body.mdp-search-results .mdp-search-results__title {
    margin: 0;
    color: var(--page-text);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.9rem, 5vw, 2.55rem);
    font-weight: 400;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

body.mdp-search-results .mdp-search-results__list {
    margin: 0;
}

body.mdp-search-results .mdp-search-result {
    margin: 0;
    padding: clamp(1.35rem, 3vw, 1.8rem) 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--page-line);
    border-radius: 0;
    box-shadow: none;
}

body.mdp-search-results .mdp-search-result:first-child {
    padding-top: 0;
}

body.mdp-search-results .mdp-search-result__header {
    margin: 0;
}

body.mdp-search-results .mdp-search-result__title {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 400;
    line-height: 1.35;
}

body.mdp-search-results .mdp-search-result__title a,
body.mdp-search-results .mdp-search-result__title a:visited {
    color: var(--page-text);
    text-decoration: none;
}

body.mdp-search-results .mdp-search-result__title a:hover,
body.mdp-search-results .mdp-search-result__title a:focus-visible {
    color: #6b4f3a;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

body.mdp-search-results .mdp-search-result__date {
    margin: 0.4rem 0 0;
    color: var(--page-muted);
    font-size: 0.78rem;
    line-height: 1.4;
}

body.mdp-search-results .mdp-search-result__excerpt {
    margin: 0.7rem 0 0;
    color: var(--page-body);
    font-size: 0.98rem;
    line-height: 1.65;
}

body.mdp-search-results .navigation.pagination {
    margin: clamp(2rem, 5vw, 3rem) 0 0;
}

body.mdp-search-results .navigation.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: flex-start;
}

body.mdp-search-results .navigation.pagination .page-numbers {
    color: var(--page-muted);
    padding: 0.35rem 0.5rem;
    text-decoration: none;
}

body.mdp-search-results .navigation.pagination .page-numbers.current,
body.mdp-search-results .navigation.pagination a.page-numbers:hover,
body.mdp-search-results .navigation.pagination a.page-numbers:focus-visible {
    color: var(--page-text);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

body.mdp-search-results .mdp-search-results__form {
    display: flex;
    margin-top: 1.5rem;
    max-width: 32rem;
}

body.mdp-search-results .mdp-search-results__form input,
body.mdp-search-results .mdp-search-results__form button {
    background: var(--page-paper);
    border: 1px solid var(--page-line);
    color: var(--page-text);
    font: inherit;
    padding: 0.7rem 0.8rem;
}

body.mdp-search-results .mdp-search-results__form input {
    min-width: 0;
    width: 100%;
}

body.mdp-search-results .mdp-search-results__form button {
    border-left: 0;
    cursor: pointer;
}
