/* ========================================
   ORIGIN STORY PAGE - GAMT™
   Mobile-optimized with progressive disclosure
   Common page styles in page-common.css
   ======================================== */

/* Content Sections */
.origin-section {
    padding: 40px 20px;
    background: #ffffff;
}

.origin-section-alt {
    background: #f8f9fa;
}

.origin-section-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.3;
}

.origin-section-title sup {
    font-size: 0.5em;
    vertical-align: super;
}

/* Introduction - Concise Lead */
.origin-intro {
    text-align: center;
}

.origin-lead {
    font-size: 20px;
    line-height: 1.6;
    color: #333333;
    margin-bottom: 32px;
    font-weight: 400;
}

.origin-lead sup {
    font-size: 0.5em;
    vertical-align: super;
}

/* Highlight Quote Box */
.origin-highlight {
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f2ff 100%);
    border-left: 4px solid #4A90E2;
    padding: 24px;
    border-radius: 8px;
    margin: 32px 0;
}

.origin-highlight p {
    font-size: 18px;
    font-style: italic;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.6;
}

.origin-highlight p sup {
    font-size: 0.5em;
    vertical-align: super;
}

/* Summary - Scannable Key Points */
.origin-summary {
    font-size: 17px;
    line-height: 1.7;
    color: #333333;
    margin-bottom: 20px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 3px solid #4A90E2;
}

.origin-summary strong {
    color: #1a1a1a;
    font-weight: 700;
}

.origin-summary sup {
    font-size: 0.5em;
    vertical-align: super;
}

/* Stats Display - Single Featured Stat */
.origin-stats-single {
    display: flex;
    justify-content: center;
    margin: 32px 0;
}

.stat-item-featured {
    text-align: center;
    padding: 24px 40px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f2ff 100%);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.15);
    border: 2px solid #4A90E2;
    transition: all 0.3s ease;
    max-width: 300px;
}

.stat-item-featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(74, 144, 226, 0.25);
}

.stat-item-featured .stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #357ABD;
    line-height: 1.1;
    margin-bottom: 10px;
}

.stat-item-featured .stat-label {
    font-size: 16px;
    color: #1a1a1a;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 5px;
}

.stat-item-featured .stat-sublabel {
    font-size: 13px;
    color: #666666;
    line-height: 1.2;
    margin-top: 5px;
}

/* Progressive Disclosure - Details/Summary */
.origin-details {
    margin-top: 20px;
}

.origin-read-more {
    cursor: pointer;
    color: #4A90E2;
    font-weight: 600;
    font-size: 16px;
    padding: 12px 20px;
    background: #f0f7ff;
    border-radius: 8px;
    list-style: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.origin-read-more:hover {
    background: #e6f2ff;
    transform: translateX(4px);
}

.origin-read-more::marker {
    display: none;
}

.origin-read-more::after {
    content: " →";
    margin-left: 6px;
}

.origin-details[open] .origin-read-more::after {
    content: " ↑";
}

.origin-details-content {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e0e0e0;
}

.origin-details-content p {
    font-size: 16px;
    line-height: 1.7;
    color: #444444;
    margin-bottom: 20px;
}

.origin-details-content p sup {
    font-size: 0.5em;
    vertical-align: super;
}

/* Image Caption Helper */
.origin-caption {
    font-size: 15px;
    color: #666666;
    margin: 28px 0 16px 0;
    font-weight: 500;
}

/* Image Grid for 3 Images */
.origin-image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin: 48px 0;
}

.origin-image-item {
    text-align: center;
}

.origin-image-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.origin-image-item img:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.origin-image-caption {
    margin-top: 16px;
    font-size: 14px;
    color: #666666;
    font-weight: 600;
}

.origin-image-caption sup {
    font-size: 0.5em;
    vertical-align: super;
}

/* Single Image Layout */
.origin-image-single {
    text-align: center;
    margin: 48px 0;
}

.origin-image-single img {
    max-width: 700px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.origin-image-single img:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}


/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    /* Content Sections Mobile */
    .origin-section {
        padding: 32px 16px;
    }

    .origin-section-title {
        font-size: 22px;
        margin-bottom: 16px;
    }

    /* Introduction Mobile */
    .origin-lead {
        font-size: 17px;
        margin-bottom: 24px;
    }

    .origin-highlight {
        padding: 18px;
        margin: 24px 0;
    }

    .origin-highlight p {
        font-size: 16px;
    }

    /* Summary Mobile */
    .origin-summary {
        font-size: 16px;
        padding: 16px;
        margin-bottom: 16px;
    }

    /* Stats Mobile */
    .origin-stats-single {
        margin: 24px 0;
    }

    .stat-item-featured {
        padding: 28px 40px;
        max-width: 100%;
    }

    .stat-item-featured .stat-number {
        font-size: 36px;
    }

    .stat-item-featured .stat-label {
        font-size: 16px;
    }

    .stat-item-featured .stat-sublabel {
        font-size: 13px;
    }

    /* Progressive Disclosure Mobile */
    .origin-read-more {
        font-size: 15px;
        padding: 10px 16px;
        width: 100%;
        text-align: center;
    }

    .origin-details-content p {
        font-size: 15px;
        line-height: 1.6;
    }

    .origin-caption {
        font-size: 14px;
        margin: 20px 0 12px 0;
    }

    /* Image Grid Mobile - Stack Vertically */
    .origin-image-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 24px 0;
    }

    .origin-image-item img {
        max-width: 100%;
    }

    .origin-image-caption {
        font-size: 12px;
        margin-top: 12px;
    }

    /* Single Image Mobile */
    .origin-image-single {
        margin: 24px 0;
    }

    .origin-image-single img {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .origin-section {
        padding: 24px 12px;
    }

    .origin-section-title {
        font-size: 20px;
    }

    .origin-lead {
        font-size: 16px;
    }

    .origin-highlight p {
        font-size: 15px;
    }

    .origin-summary {
        font-size: 15px;
        padding: 14px;
    }

    .stat-item-featured {
        padding: 24px 28px;
    }

    .stat-item-featured .stat-number {
        font-size: 32px;
    }

    .stat-item-featured .stat-label {
        font-size: 15px;
    }

    .stat-item-featured .stat-sublabel {
        font-size: 12px;
    }

    .origin-read-more {
        font-size: 14px;
    }

    .origin-details-content p {
        font-size: 15px;
    }
}
