/* ==========================================
   DR SWEET – BLUEPRINT DOCUMENT SYSTEM
   Hybrid Premium‑Structured Layout
========================================== */

/* Root Wrapper */
.dsws-blueprint {
    max-width: 820px;
    margin: 60px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.65;
    color: #1a1a1a;
}

/* Main Card */
.dsws-blueprint-card {
    background: #FDFBF7;
    border: 1px solid #e8e6e1;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 40px;
}

/* Main Title */
.dsws-blueprint h2 {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 0.2px;
}

/* Section Titles */
.dsws-section-title {
    font-size: 18px;
    font-weight: 600;
    margin-top: 35px;
    margin-bottom: 10px;
}

/* Protocol Title */
.dsws-protocol-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 6px;
}

/* Subtitle */
.dsws-protocol-subtitle {
    font-size: 18px;
    color: #555;
    margin-bottom: 15px;
}

/* Phase Badge */
.dsws-phase {
    display: inline-block;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: #f2f2f2;
    padding: 6px 10px;
    border-radius: 20px;
    margin-bottom: 20px;
}

/* Objective Box */
.dsws-objective {
    background: #f4f5f6;
    padding: 22px 24px;
    border-radius: 10px;
    margin: 25px 0 35px 0;
    border-left: 4px solid #1f2937;
}

.dsws-objective-title {
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 10px;
    color: #374151;
}

.dsws-objective-text {
    font-size: 16px;
    line-height: 1.7;
    color: #1a1a1a;
}

/* ========== V3 BLUEPRINT STYLES ========== */

.dsws-executive-summary {
    background: #f8f9fa;
    padding: 20px;
    border-left: 4px solid #2c5282;
    margin-bottom: 30px;
}

.dsws-intelligence-rationale {
    margin-bottom: 30px;
}

.dsws-axis-analysis {
    margin-bottom: 30px;
}

.dsws-axis-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.dsws-axis-table th,
.dsws-axis-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.dsws-axis-table th {
    background: #2c5282;
    color: white;
    font-weight: 600;
}

.dsws-lab-badge {
    display: inline-block;
    background: #10b981;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-left: 8px;
}

.dsws-protocol-strategy {
    background: #fef3c7;
    padding: 20px;
    border-left: 4px solid #f59e0b;
    margin-bottom: 30px;
}

.dsws-timing-calendar {
    margin-bottom: 30px;
}

.dsws-timing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.dsws-timing-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
}

.dsws-timing-protocol {
    font-weight: 600;
    color: #2c5282;
    margin-bottom: 8px;
}

.dsws-timing-instruction {
    color: #64748b;
    font-size: 0.95rem;
}

.dsws-protocol-rationale {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    padding: 15px;
    margin: 20px 0;
}

/* ========== V3 REPORT STYLES ========== */

.dsws-axis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.dsws-axis-card {
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid;
}

.dsws-axis-high {
    background: #fef2f2;
    border-color: #ef4444;
}

.dsws-axis-moderate {
    background: #fef9c3;
    border-color: #f59e0b;
}

.dsws-axis-stable {
    background: #f0fdf4;
    border-color: #10b981;
}

.dsws-axis-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 10px;
}

.dsws-axis-score {
    font-size: 2rem;
    font-weight: 700;
    color: #2c5282;
}

.dsws-axis-unit {
    font-size: 1rem;
    color: #64748b;
}

.dsws-domain-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.dsws-flag-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    margin-left: 5px;
    cursor: help;
}

.dsws-lab-badge {
    background: #10b981;
    color: white;
}

.dsws-pattern-badge {
    background: #3b82f6;
    color: white;
}

.dsws-risk-badge {
    background: #f59e0b;
    color: white;
}

.dsws-domain-burden {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
    font-size: 0.9rem;
    color: #64748b;
}

.dsws-domain-description {
    margin: 10px 0;
}


/* Botanical Lists */
.dsws-botanical-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.dsws-botanical-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eceae5;
}

.dsws-formulation-block {
    background: #fbf9f4;
    padding: 28px;
    border-radius: 10px;
    margin: 30px 0 40px 0;
    border: 1px solid #eeeae2;
}

.dsws-formulation-title {
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 18px;
    color: #3a3a3a;
}

.dsws-botanical-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 25px;
}

.dsws-botanical-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eceae5;
    font-size: 16px;
}

.dsws-botanical-list li:last-child {
    border-bottom: none;
}


.dsws-botanical-list li:last-child {
    border-bottom: none;
}

/* Regional Alternative */
.dsws-regional-alt {
    font-size: 16px;
    color: #555;
    margin-top: 6px;
    margin-left: 18px;
    font-style: italic;
}

/* Subtle Supporting Text */
.dsws-subtle {
    font-size: 13px;
    color: #666;
}

/* Divider */
.dsws-divider {
    margin: 40px 0;
    border-top: 1px solid #e5e5e5;
}

.dsws-blueprint-card > .dsws-divider:first-of-type {
    margin-top: 35px;
}

/* Implementation Note */
.dsws-implementation-note {
    background: #f8f8f8;
    padding: 20px;
    border-left: 4px solid #d6d3cd;
    border-radius: 6px;
    font-size: 15px;
    line-height: 1.7;
    margin-top: 15px;
}

/* Multi-Protocol Guidance */
.dsws-multi-guidance {
    background: #f8f8f8;
    padding: 25px;
    border-radius: 8px;
    font-size: 14px;
}

/* Advisory Section */
.dsws-advisory {
    font-size: 17px;
    line-height: 1.7;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #eceae5;
    color: #2a2a2a;
}

/* Button System (Shared Standard) */
.dsws-btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    border: none;
}

.dsws-btn-primary {
    background: #111;
    color: #fff;
}

.dsws-btn-accent {
    background: #1d4ed8;
    color: #fff;
}

.dsws-risk-context {
    color: #f59e0b;
    font-size: 0.85rem;
    font-style: italic;
}

/* Print Optimization */
@media print {
    .dsws-blueprint {
        margin: 0;
    }

    .dsws-blueprint-card {
        border: none;
        padding: 0;
    }

    .dsws-btn {
        display: none;
    }
}