/* 
 * PROJECT X: OFFICIAL WHITEPAPER & CONFIDENTIAL STRATEGIC MEMORANDUM
 * Responsive Typography & Layout System (Mobile, Tablet, Desktop)
 */

.wp-doc {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #cbd5e1;
    -webkit-text-size-adjust: 100%;
}
.wp-doc * {
    box-sizing: border-box;
}

/* Modal Top Bar Typography */
.wp-modal-title {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 13.5px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.02em;
    line-height: 1.3;
}
.wp-modal-sub {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.4;
}

/* Section Headings */
.wp-h1 {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 14px;
    font-weight: 800;
    color: #10b981;
    letter-spacing: 0.01em;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 6px;
    margin-top: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.35;
}
.wp-h2 {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12.5px;
    font-weight: 700;
    color: #f8fafc;
    margin-top: 12px;
    margin-bottom: 6px;
    line-height: 1.4;
}

/* Body Text & Lists */
.wp-p {
    font-size: 12.5px;
    line-height: 1.65;
    color: #cbd5e1;
    margin-bottom: 8px;
    word-break: break-word;
}
.wp-list {
    font-size: 12.5px;
    line-height: 1.65;
    color: #cbd5e1;
    margin-left: 18px;
    margin-bottom: 10px;
}
.wp-list li {
    margin-bottom: 4px;
    word-break: break-word;
}

/* Metadata Panel */
.wp-meta-box {
    padding: 14px 16px;
    border-radius: 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.wp-meta-head {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.03em;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.wp-meta-item {
    font-size: 11.5px;
    line-height: 1.5;
    padding: 6px 10px;
    border-radius: 6px;
    background: rgba(11, 15, 23, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    word-break: break-word;
    display: flex;
    align-items: baseline;
}
.wp-meta-item span.lbl {
    color: #94a3b8;
    font-weight: 700;
    width: 320px;
    min-width: 320px;
    max-width: 320px;
    flex-shrink: 0;
    display: inline-flex;
    justify-content: space-between;
    align-items: baseline;
    padding-right: 14px;
}
.wp-meta-item span.lbl .lbl-txt {
    white-space: normal;
}
.wp-meta-item span.lbl .lbl-colon {
    color: #64748b;
    font-weight: 700;
    margin-left: auto;
    flex-shrink: 0;
}
.wp-meta-item .lbl-val {
    flex: 1 1 auto;
    min-width: 0;
    display: inline;
}
.wp-meta-item .lbl-val > span + span,
.wp-meta-item > span:not(.lbl) + span:not(.lbl) {
    margin-left: 6px;
}

/* Badges & Pills */
.wp-pill {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

/* Navigation Pills with Touch Scroll */
.wp-nav-container {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.wp-nav-container::-webkit-scrollbar {
    display: none;
}
.wp-nav-pill {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 9px;
    border-radius: 6px;
    background: #0B0E17;
    border: 1px solid #1e293b;
    color: #cbd5e1;
    transition: all 0.15s ease;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}
.wp-nav-pill:hover {
    color: #10b981;
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.08);
}

/* Visual Components & Statistics */
.wp-stat-hero {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 26px;
    font-weight: 900;
    line-height: 1.2;
}
.wp-stat-card-num {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
}
.wp-card-title {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.35;
}
.wp-card-desc {
    font-size: 11px;
    line-height: 1.5;
    color: #94a3b8;
}

/* Tables with Automatic Container Fit */
.wp-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    border-radius: 12px;
}
.wp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    table-layout: auto;
}
.wp-table th {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #94a3b8;
    padding: 10px 8px;
    border-bottom: 1px solid #1e293b;
    white-space: normal;
    word-break: break-word;
    vertical-align: bottom;
    line-height: 1.35;
}
.wp-table td {
    padding: 9px 8px;
    line-height: 1.45;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    word-break: normal;
    overflow-wrap: break-word;
    vertical-align: top;
}

/* Roadmap Timeline */
.wp-timeline-title {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}
.wp-timeline-list {
    font-size: 11.5px;
    line-height: 1.55;
    color: #cbd5e1;
    margin-top: 4px;
}
.wp-timeline-list li {
    margin-bottom: 3px;
    word-break: break-word;
}

/* ===================================================
   RESPONSIVE BREAKPOINTS: Mobile, Tablet & Desktop
   =================================================== */

/* 1. Mobile Phones (Screens up to 640px) */
@media (max-width: 640px) {
    #whitepaperFullModal,
    #smartContractModal {
        padding: 0 !important;
        align-items: flex-start !important;
    }
    #whitepaperFullModal > div,
    #smartContractModal > div {
        max-height: 100vh !important;
        height: 100vh !important;
        border-radius: 0 !important;
        border: none !important;
        margin: 0 !important;
        width: 100vw !important;
    }
    .wp-modal-title {
        font-size: 11.5px !important;
    }
    .wp-modal-sub {
        font-size: 9.5px !important;
    }
    .wp-h1 {
        font-size: 13px !important;
        margin-top: 10px !important;
    }
    .wp-h2 {
        font-size: 12px !important;
    }
    .wp-p, .wp-list {
        font-size: 12px !important;
        line-height: 1.6 !important;
    }
    .wp-meta-box {
        padding: 10px 12px !important;
    }
    .wp-meta-item {
        font-size: 11px !important;
        padding: 5px 8px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 2px !important;
        line-height: 1.5 !important;
    }
    .wp-meta-item span.lbl {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        justify-content: flex-start !important;
        padding-right: 0 !important;
        display: inline-flex !important;
    }
    .wp-meta-item span.lbl .lbl-colon {
        margin-left: 2px !important;
    }
    .wp-meta-item .lbl-val {
        padding-left: 0 !important;
    }
    .wp-stat-hero {
        font-size: 20px !important;
    }
    .wp-stat-card-num {
        font-size: 15px !important;
    }
    .wp-nav-pill {
        font-size: 10px !important;
        padding: 3px 7px !important;
    }
    .wp-table th, .wp-table td {
        padding: 6px 8px !important;
        font-size: 11px !important;
    }
}

/* 2. Tablets (Screens 641px to 1024px) */
@media (min-width: 641px) and (max-width: 1024px) {
    #whitepaperFullModal > div,
    #smartContractModal > div {
        max-height: 94vh !important;
        height: 94vh !important;
        margin: auto !important;
        width: 95vw !important;
    }
    .wp-stat-hero {
        font-size: 24px;
    }
    .wp-modal-title {
        font-size: 13px;
    }
    .wp-meta-item span.lbl {
        width: 300px !important;
        min-width: 300px !important;
        max-width: 300px !important;
    }
}

/* 3. Desktops & Large Monitors (Screens 1025px+) */
@media (min-width: 1025px) {
    #whitepaperFullModal > div,
    #smartContractModal > div {
        max-height: 92vh !important;
        height: 92vh !important;
    }
}

