/* GeneratePress Exact Theme Reproduction for DiagramaFusibles.com */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
    --contrast: #222222;
    --contrast-2: #575760;
    --contrast-3: #94a3b8;
    --base: #f0f0f0;
    --base-2: #f7f8f9;
    --base-3: #ffffff;
    --accent: #1e73be;
    --accent-hover: #155894;
    --btn-bg: #55555e;
    --btn-hover: #3f4047;
    --border-color: #e2e8f0;
    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --radius-sm: 4px;
    --radius-md: 8px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    background-color: var(--base-2);
    color: var(--contrast);
    font-family: var(--font-family);
    font-size: 14.5px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: var(--accent);
    text-decoration: underline;
    transition: color 0.15s ease-in-out;
}

a:hover, a:focus, a:active {
    color: var(--contrast);
}

.entry-title a, .site-branding a, a.button, .main-navigation a, .breadcrumbs a, .read-more, .page-numbers, .widget a {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.grid-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* ==========================================================================
   Site Header & Navigation
   ========================================================================== */
.site-header {
    background-color: var(--base-3);
    border-bottom: 1px solid #e9ecef;
    position: relative;
    z-index: 100;
}

.inside-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.site-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo img {
    max-width: 270px;
    height: auto;
    max-height: 48px;
    display: block;
    object-fit: contain;
}

.mobile-header-buttons {
    display: none;
    align-items: center;
    gap: 8px;
}

.header-btn-search {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 7px 10px;
    color: var(--contrast);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.header-btn-search:hover {
    background: #edf2f7;
    border-color: #cbd5e1;
}

.mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 7px 12px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.mobile-menu-toggle:hover {
    background: var(--accent-hover);
}

.mobile-menu-toggle svg {
    display: block;
}

/* Desktop Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul.menu {
    display: flex;
    list-style: none;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.main-navigation li a {
    color: var(--contrast);
    font-weight: 500;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    display: block;
}

.main-navigation li a:hover, 
.main-navigation li.current-menu-item a {
    color: var(--accent);
    background-color: rgba(30, 115, 190, 0.08);
}

/* ==========================================================================
   Main Layout: 70% Content / 30% Sidebar
   ========================================================================== */
.site-content {
    display: flex;
    gap: 30px;
    margin-top: 25px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.content-area {
    width: calc(70% - 15px);
    flex: 1;
    min-width: 0;
}

.is-right-sidebar {
    width: calc(30% - 15px);
    min-width: 290px;
}

/* Page Header (Categories, Search, Archives) */
.page-header {
    background: var(--base-3);
    padding: 25px 35px;
    margin-bottom: 25px;
    border: 1px solid #edf2f7;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Article Containers (GeneratePress Style)
   ========================================================================== */
.inside-article {
    background-color: var(--base-3);
    padding: 35px 40px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #edf2f7;
    border-radius: var(--radius-sm);
    word-wrap: break-word;
}

.entry-header {
    margin-bottom: 18px;
}

.entry-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 10px;
    color: var(--contrast);
}

.entry-title a {
    color: var(--contrast);
    transition: color 0.2s;
}

.entry-title a:hover {
    color: var(--accent);
}

.entry-meta {
    font-size: 13px;
    color: var(--contrast-2);
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
}

.entry-meta span {
    display: inline-flex;
    align-items: center;
}

/* Featured Images */
.post-image {
    margin-bottom: 22px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #0f172a;
}

.post-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16/9;
}

/* Summary & Read More */
.entry-summary p {
    font-size: 14.5px;
    color: var(--contrast);
    line-height: 1.8;
    margin-bottom: 12px;
}

.read-more {
    color: var(--accent);
    font-weight: 600;
    display: inline-block;
    margin-top: 4px;
}

.read-more:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.entry-footer-meta {
    border-top: 1px solid #edf2f7;
    padding-top: 15px;
    margin-top: 20px;
    font-size: 13px;
    color: var(--contrast-2);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.entry-footer-meta a {
    color: var(--contrast-2);
}

.entry-footer-meta a:hover {
    color: var(--accent);
}

/* ==========================================================================
   Single Post Specifics
   ========================================================================== */
.single-post-title {
    font-size: clamp(1.4rem, 2.5vw + 0.8rem, 1.95rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 14px;
    color: var(--contrast);
}

.entry-content {
    font-size: 15px;
    line-height: 1.85;
    color: var(--contrast);
    word-break: break-word;
}

.entry-content h2 {
    font-size: clamp(1.2rem, 1.8vw + 0.6rem, 1.45rem);
    font-weight: 700;
    margin: 35px 0 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--base);
    color: var(--contrast);
}

.entry-content h3 {
    font-size: clamp(1.05rem, 1.4vw + 0.5rem, 1.25rem);
    font-weight: 600;
    margin: 25px 0 12px;
    color: var(--contrast);
}

.entry-content p {
    margin-bottom: 18px;
}

.entry-content ul, .entry-content ol {
    margin: 0 0 20px 22px;
    padding-left: 5px;
}

.entry-content li {
    margin-bottom: 6px;
}

.entry-content img {
    border-radius: var(--radius-sm);
    margin: 20px 0;
    max-width: 100%;
}

/* ==========================================================================
   Fuse Tables Styling (Mobile-Friendly Horizontal Scroll)
   ========================================================================== */
.table-responsive-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0 30px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #ffffff;
}

.table-responsive-wrapper::-webkit-scrollbar {
    height: 6px;
}
.table-responsive-wrapper::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.fuse-table {
    width: 100%;
    min-width: 480px;
    border-collapse: collapse;
    background-color: #ffffff;
    font-size: 13.5px;
}

.fuse-table th {
    background-color: #f1f5f9;
    color: #1e293b;
    font-weight: 700;
    padding: 10px 14px;
    border-bottom: 2px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    text-align: left;
    white-space: nowrap;
}

.fuse-table th:last-child {
    border-right: none;
}

.fuse-table td {
    padding: 9px 14px;
    border-bottom: 1px solid var(--border-color);
    border-right: 1px solid #f1f5f9;
    color: var(--contrast);
    vertical-align: top;
}

.fuse-table td:last-child {
    border-right: none;
}

.fuse-table tr:nth-child(even) {
    background-color: #f8fafc;
}

.fuse-table tr:hover {
    background-color: #f1f5f9;
}

/* Table of Contents Box */
.toc-box {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent);
    padding: 18px 22px;
    margin: 25px 0;
    border-radius: var(--radius-sm);
}

.toc-title {
    font-size: 15.5px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--contrast);
}

.toc-list {
    list-style: none;
    padding-left: 0;
}

.toc-list li {
    margin-bottom: 6px;
}

.toc-list li.toc-level-3 {
    padding-left: 15px;
}

.toc-list a {
    color: var(--accent);
    font-size: 13.5px;
}

/* Quick Fuse Search Bar in Article */
.fuse-search-box {
    background: #f1f5f9;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid #cbd5e1;
    margin: 22px 0;
}

.fuse-search-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #94a3b8;
    border-radius: var(--radius-sm);
    font-size: 15px;
    outline: none;
    font-family: inherit;
    background: #ffffff;
    color: var(--contrast);
}

.fuse-search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(30, 115, 190, 0.15);
}

/* ==========================================================================
   Sidebar Widgets
   ========================================================================== */
.widget {
    background-color: var(--base-3);
    padding: 24px;
    margin-bottom: 25px;
    border: 1px solid #edf2f7;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--base);
    color: var(--contrast);
}

/* Search Form Widget */
.wp-block-search {
    display: flex;
    width: 100%;
}

.wp-block-search__input {
    flex: 1;
    min-width: 0;
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    font-size: 14px;
    outline: none;
    font-family: inherit;
}

.wp-block-search__input:focus {
    border-color: var(--accent);
}

.wp-block-search__button {
    background-color: var(--btn-bg);
    color: #ffffff;
    border: none;
    padding: 9px 16px;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.wp-block-search__button:hover {
    background-color: var(--btn-hover);
}

/* Recent Posts List */
.widget-recent-posts-list {
    list-style: none;
}

.widget-recent-posts-list li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.widget-recent-posts-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.widget-recent-posts-list a {
    color: var(--contrast);
    font-size: 13.5px;
    font-weight: 500;
    display: block;
    line-height: 1.4;
}

.widget-recent-posts-list a:hover {
    color: var(--accent);
}

.widget-recent-posts-list .post-date {
    font-size: 12px;
    color: var(--contrast-2);
    margin-top: 3px;
}

/* Categories List */
.widget-categories-list {
    list-style: none;
}

.widget-categories-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #f1f5f9;
}

.widget-categories-list a {
    color: var(--contrast);
    font-size: 13.5px;
}

.widget-categories-list a:hover {
    color: var(--accent);
}

.widget-categories-list .count {
    color: var(--contrast-2);
    font-size: 12px;
    background: #f1f5f9;
    padding: 2px 7px;
    border-radius: 10px;
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 12.5px;
    color: var(--contrast-2);
    margin-bottom: 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
    line-height: 1.5;
}

.breadcrumbs a {
    color: var(--accent);
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Pagination */
.paging-navigation {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 30px 0;
}

.page-numbers {
    padding: 8px 14px;
    min-width: 38px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--base-3);
    border: 1px solid var(--border-color);
    color: var(--contrast);
    font-weight: 600;
    font-size: 13px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.page-numbers:hover, .page-numbers.current {
    background-color: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

/* Site Footer */
.site-footer {
    background-color: var(--base-3);
    border-top: 1px solid #e9ecef;
    padding: 25px 0;
    text-align: center;
    color: var(--contrast-2);
    font-size: 13px;
}

.site-footer a {
    color: var(--accent);
}

.site-footer .copyright-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ==========================================================================
   Live Search Modal
   ========================================================================== */
.search-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1100;
    padding: 20px;
    align-items: flex-start;
    justify-content: center;
}

.search-modal-overlay.active {
    display: flex;
}

.search-modal-container {
    background: #ffffff;
    width: 100%;
    max-width: 620px;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
    overflow: hidden;
    animation: modalSlideDown 0.2s ease-out;
}

@keyframes modalSlideDown {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-modal-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
}

.search-modal-form {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-search-icon {
    color: var(--contrast-3);
    flex-shrink: 0;
}

.search-modal-form input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    font-family: inherit;
    color: var(--contrast);
    background: transparent;
}

.search-modal-close {
    background: #f1f5f9;
    border: none;
    font-size: 22px;
    line-height: 1;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--contrast-2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.search-modal-close:hover {
    background: #e2e8f0;
    color: var(--contrast);
}

.search-modal-results {
    list-style: none;
    max-height: 60vh;
    overflow-y: auto;
    padding: 8px 0;
}

.search-prompt-item {
    padding: 24px;
    text-align: center;
    color: var(--contrast-2);
    font-size: 14px;
}

.search-result-item a {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    gap: 14px;
    border-bottom: 1px solid #f8fafc;
    transition: background 0.15s;
    color: var(--contrast);
}

.search-result-item a:hover {
    background: #f1f5f9;
}

.search-result-thumb {
    width: 54px;
    height: 38px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #0f172a;
    flex-shrink: 0;
}

.search-result-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--contrast);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-meta {
    font-size: 12px;
    color: var(--contrast-2);
    margin-top: 2px;
}

.search-result-arrow {
    font-size: 20px;
    color: var(--contrast-3);
}

/* ==========================================================================
   GeneratePress Mobile Navigation & Responsive Breakpoints
   ========================================================================== */

@media (max-width: 860px) {
    /* Header layout for mobile */
    .inside-header {
        flex-direction: column;
        align-items: stretch;
        padding: 12px 0;
    }

    .site-header-bar {
        width: 100%;
    }

    .site-logo img {
        max-width: 200px;
        max-height: 40px;
    }

    .mobile-header-buttons {
        display: flex;
    }

    /* Clean GeneratePress Dropdown Menu */
    .main-navigation {
        display: none; /* Collapsed by default */
        width: 100%;
        background-color: #ffffff;
        border-top: 1px solid #edf2f7;
        margin-top: 12px;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
        border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    }

    .main-navigation.is-open {
        display: block; /* Expanded when button is pressed */
        animation: menuFadeIn 0.2s ease-in-out;
    }

    @keyframes menuFadeIn {
        from { opacity: 0; transform: translateY(-6px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .main-navigation ul.menu {
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding: 4px 0;
    }

    .main-navigation li {
        width: 100%;
    }

    .main-navigation li a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
        font-size: 14px;
        font-weight: 500;
        color: var(--contrast);
        border-bottom: 1px solid #f8fafc;
        border-radius: 0;
    }

    .main-navigation li a::after {
        content: "›";
        font-size: 18px;
        color: var(--contrast-3);
        font-weight: 400;
    }

    .main-navigation li:last-child a {
        border-bottom: none;
    }

    .main-navigation li a:hover,
    .main-navigation li.current-menu-item a {
        background-color: #f1f5f9;
        color: var(--accent);
        font-weight: 600;
    }

    /* Main Grid Stack */
    .site-content {
        flex-direction: column;
        gap: 20px;
        margin-top: 15px;
        margin-bottom: 30px;
    }

    .content-area, .is-right-sidebar {
        width: 100%;
    }

    .inside-article, .page-header {
        padding: 24px 20px;
        margin-bottom: 20px;
    }

    .widget {
        padding: 20px;
        margin-bottom: 20px;
    }
}

@media (max-width: 600px) {
    .grid-container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .site-logo img {
        max-width: 175px;
        max-height: 36px;
    }

    .inside-article, .page-header {
        padding: 18px 14px;
        margin-bottom: 16px;
        border-radius: var(--radius-sm);
    }

    .entry-title {
        font-size: 19px;
        line-height: 1.35;
    }

    .single-post-title {
        font-size: 20px;
        line-height: 1.3;
    }

    .entry-meta {
        font-size: 12px;
        gap: 4px 8px;
        margin-bottom: 14px;
    }

    .entry-summary p {
        font-size: 14px;
        line-height: 1.65;
    }

    .entry-content {
        font-size: 14px;
        line-height: 1.75;
    }

    .entry-content h2 {
        font-size: 18px;
        margin: 25px 0 12px;
    }

    .entry-content h3 {
        font-size: 16px;
        margin: 20px 0 10px;
    }

    .fuse-search-box {
        padding: 12px 14px;
        margin: 18px 0;
    }

    .fuse-search-input {
        font-size: 15px;
        padding: 9px 12px;
    }

    .toc-box {
        padding: 15px 16px;
        margin: 20px 0;
    }

    .toc-title {
        font-size: 14.5px;
    }

    .toc-list a {
        font-size: 13px;
    }

    .widget {
        padding: 18px 14px;
    }

    .widget-title {
        font-size: 14.5px;
    }

    .page-numbers {
        padding: 6px 11px;
        font-size: 12.5px;
        min-width: 34px;
        min-height: 34px;
    }

    .search-modal-container {
        margin-top: 15px;
        max-width: 100%;
    }

    .search-modal-overlay {
        padding: 10px;
    }
}
