/* yesang.org - Prediction Research Organization */
/* Palette: #FAFAF5 Warm Ivory, #FFFFFF White, #2C3E50 Navy, #5D6D7E Gray, #1A6B3C Green, #F0F7F2 Sage, #D4A843 Amber, #E8E4DA Parchment */

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

body {
    background: #FAFAF5;
    color: #2C3E50;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
}

/* Shared */
.section-container {
    max-width: 800px;
    margin: 0 auto;
}

.section-heading {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: 24px;
    color: #2C3E50;
    margin-bottom: 1.25rem;
    display: inline-block;
    vertical-align: middle;
}

.section-marker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.25rem;
}

.section-marker .section-heading {
    margin-bottom: 0;
}

.gold-line {
    border-top: 2px solid #D4A843;
    max-width: 60px;
    margin-bottom: 1.5rem;
}

.mono {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 14px;
}

/* Hero Zone */
.hero {
    background: #FAFAF5;
    padding: 5rem 2rem 4rem;
    text-align: center;
}

.hero-inner {
    max-width: 800px;
    margin: 0 auto;
}

.hero-icon {
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: 30px;
    color: #2C3E50;
    margin-bottom: 0.25rem;
}

.hero-subtitle {
    font-size: 14px;
    color: #5D6D7E;
    margin-bottom: 0.75rem;
    letter-spacing: 1px;
}

.hero-mission {
    font-size: 18px;
    color: #5D6D7E;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.program-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.pillar {
    border: 1px solid #E8E4DA;
    padding: 32px;
    background: #FFFFFF;
    text-align: left;
}

.pillar-name {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: 16px;
    color: #1A6B3C;
    margin-bottom: 0.5rem;
}

.pillar-desc {
    font-size: 14px;
    color: #5D6D7E;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
}

.cta-primary {
    display: inline-block;
    background: #1A6B3C;
    color: #FFFFFF;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 15px;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.cta-primary:hover {
    background: #145a30;
}

.cta-secondary {
    display: inline-block;
    font-size: 15px;
    color: #1A6B3C;
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1rem;
    transition: color 0.2s ease;
}

.cta-secondary:hover {
    color: #145a30;
}

/* Research Section */
.research {
    background: #F0F7F2;
    padding: 4rem 2rem;
}

.pub-list {
    text-align: left;
}

.pub-item {
    border-bottom: 1px solid #E8E4DA;
    padding: 1.5rem 0;
}

.pub-item:first-child {
    padding-top: 0;
}

.pub-item.featured {
    border-top: 2px solid #D4A843;
    padding-top: 1.5rem;
}

.pub-title {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: 18px;
    color: #2C3E50;
    margin-bottom: 0.35rem;
    line-height: 1.4;
}

.pub-meta {
    font-size: 13px;
    color: #5D6D7E;
    margin-bottom: 0.5rem;
}

.author {
    font-variant: small-caps;
}

.pub-tag {
    display: inline-block;
    background: #D4A843;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 600;
    padding: 1px 8px;
    border-radius: 3px;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pub-abstract {
    font-size: 14px;
    color: #5D6D7E;
    line-height: 1.65;
}

/* Methodology Section */
.methodology {
    background: #FAFAF5;
    padding: 4rem 2rem;
}

.methodology-intro {
    font-size: 15px;
    color: #5D6D7E;
    margin-bottom: 1.5rem;
}

.methodology-list {
    text-align: left;
}

.method-item {
    border-bottom: 1px solid #E8E4DA;
}

.method-summary {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: 16px;
    color: #2C3E50;
    padding: 1.25rem 0;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 2rem;
}

.method-summary::-webkit-details-marker {
    display: none;
}

.method-summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 18px;
    color: #1A6B3C;
    transition: transform 0.2s ease;
}

details[open] .method-summary::after {
    content: '\2212';
}

.method-content {
    padding: 0 0 1.25rem;
    overflow: hidden;
}

.method-content p {
    font-size: 14px;
    color: #5D6D7E;
    line-height: 1.7;
}

/* Leaderboard */
.leaderboard {
    background: #F0F7F2;
    padding: 4rem 2rem;
}

.leaderboard-intro {
    font-size: 15px;
    color: #5D6D7E;
    margin-bottom: 1.5rem;
}

.leaderboard-table-wrap {
    overflow-x: auto;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    background: #FFFFFF;
}

.leaderboard-table th {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: #5D6D7E;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    border-bottom: 2px solid #E8E4DA;
}

.leaderboard-table td {
    font-size: 14px;
    color: #2C3E50;
    padding: 14px 16px;
    border-bottom: 1px solid #E8E4DA;
    vertical-align: middle;
}

.leaderboard-table tbody tr:last-child td {
    border-bottom: none;
}

.accuracy-bar {
    display: inline-block;
    width: 80px;
    height: 6px;
    background: #E8E4DA;
    border-radius: 3px;
    vertical-align: middle;
    margin-right: 8px;
}

.accuracy-fill {
    height: 100%;
    background: #1A6B3C;
    border-radius: 3px;
    transition: width 0.8s ease;
}

.accuracy-val {
    vertical-align: middle;
    color: #1A6B3C;
    font-weight: 400;
}

/* Programs Section */
.programs {
    background: #FAFAF5;
    padding: 4rem 2rem;
}

.programs-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.program-block {
    border: 1px solid #E8E4DA;
    padding: 32px;
    background: #FFFFFF;
    text-align: left;
}

.program-name {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: 18px;
    color: #2C3E50;
    margin-bottom: 0.75rem;
}

.program-desc {
    font-size: 14px;
    color: #5D6D7E;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.program-metrics {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.metric-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.metric-label {
    font-size: 13px;
    color: #5D6D7E;
    width: 160px;
    flex-shrink: 0;
}

.metric-bar-wrap {
    flex: 1;
    height: 6px;
    background: #E8E4DA;
    border-radius: 3px;
}

.metric-bar {
    height: 100%;
    background: #1A6B3C;
    border-radius: 3px;
    transition: width 0.8s ease;
}

.metric-value {
    width: 60px;
    text-align: right;
    flex-shrink: 0;
    color: #1A6B3C;
}

/* Impact Section */
.impact {
    background: #F0F7F2;
    padding: 4rem 2rem;
    text-align: center;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.impact-card {
    background: #FFFFFF;
    padding: 2rem 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.impact-num {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 28px;
    font-weight: 400;
    color: #1A6B3C;
    display: block;
    margin-bottom: 0.25rem;
}

.impact-label {
    font-size: 13px;
    color: #5D6D7E;
    display: block;
    margin-bottom: 0.75rem;
}

.impact-bar {
    height: 4px;
    background: #E8E4DA;
    border-radius: 2px;
}

.impact-fill {
    height: 100%;
    background: #1A6B3C;
    border-radius: 2px;
    transition: width 0.8s ease;
}

/* Team Section */
.team {
    background: #FAFAF5;
    padding: 4rem 2rem;
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.team-member {
    text-align: center;
}

.team-photo {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    background: #1A6B3C;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: 18px;
    margin: 0 auto 0.75rem;
}

.team-name {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 0.15rem;
}

.team-role {
    font-size: 13px;
    color: #1A6B3C;
    margin-bottom: 0.5rem;
}

.team-cred {
    font-size: 12px;
    color: #5D6D7E;
    line-height: 1.5;
}

/* Calibration Test */
.calibration {
    background: #FAFAF5;
    padding: 4rem 2rem;
}

.calibration-intro {
    font-size: 15px;
    color: #5D6D7E;
    margin-bottom: 2rem;
}

.cal-question {
    display: none;
    text-align: left;
    background: #FFFFFF;
    border: 1px solid #E8E4DA;
    padding: 32px;
    margin-bottom: 1rem;
}

.cal-question.active {
    display: block;
}

.cal-q-text {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: 16px;
    color: #2C3E50;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.cal-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 0;
}

.cal-btn {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 0.6rem 2rem;
    background: #FFFFFF;
    color: #2C3E50;
    border: 1px solid #E8E4DA;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.cal-btn:hover {
    border-color: #1A6B3C;
}

.cal-btn.selected {
    background: #1A6B3C;
    color: #FFFFFF;
    border-color: #1A6B3C;
}

.cal-confidence {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #E8E4DA;
}

.cal-conf-label {
    font-size: 14px;
    color: #5D6D7E;
    margin-bottom: 0.75rem;
}

.cal-conf-value {
    font-family: 'IBM Plex Mono', monospace;
    color: #1A6B3C;
    font-weight: 400;
}

.cal-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: #E8E4DA;
    border-radius: 3px;
    outline: none;
    margin-bottom: 1.25rem;
}

.cal-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #1A6B3C;
    cursor: pointer;
}

.cal-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #1A6B3C;
    cursor: pointer;
    border: none;
}

.cal-next {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 0.6rem 2rem;
    background: #1A6B3C;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cal-next:hover {
    background: #145a30;
}

.cal-results {
    text-align: center;
    background: #FFFFFF;
    border: 1px solid #E8E4DA;
    padding: 32px;
}

.cal-results-title {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: 20px;
    color: #2C3E50;
    margin-bottom: 1.5rem;
}

.cal-score-display {
    margin-bottom: 1.5rem;
}

.cal-score-num {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 48px;
    color: #1A6B3C;
    display: block;
    margin-bottom: 0.25rem;
}

.cal-score-label {
    font-size: 14px;
    color: #5D6D7E;
    display: block;
}

.cal-results-text {
    font-size: 14px;
    color: #5D6D7E;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cal-breakdown {
    text-align: left;
    max-width: 500px;
    margin: 0 auto 1.5rem;
}

.cal-breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #E8E4DA;
    font-size: 13px;
}

.cal-breakdown-q {
    color: #2C3E50;
    flex: 1;
    margin-right: 1rem;
}

.cal-breakdown-result {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    flex-shrink: 0;
}

.cal-breakdown-result.correct {
    color: #1A6B3C;
}

.cal-breakdown-result.incorrect {
    color: #c0392b;
}

.cal-retry {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 0.6rem 2rem;
    background: #FFFFFF;
    color: #1A6B3C;
    border: 1px solid #1A6B3C;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cal-retry:hover {
    background: #F0F7F2;
}

/* Events Section */
.events {
    background: #F0F7F2;
    padding: 4rem 2rem;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.event-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #E8E4DA;
    text-align: left;
}

.event-item:first-child {
    padding-top: 0;
}

.event-item:last-child {
    border-bottom: none;
}

.event-date {
    width: 56px;
    flex-shrink: 0;
    text-align: center;
}

.event-month {
    font-size: 12px;
    font-weight: 600;
    color: #5D6D7E;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}

.event-day {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 28px;
    color: #2C3E50;
    display: block;
    line-height: 1.1;
}

.event-info {
    flex: 1;
}

.event-title {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: 16px;
    color: #2C3E50;
    margin-bottom: 0.25rem;
}

.event-meta {
    font-size: 13px;
    color: #1A6B3C;
    margin-bottom: 0.5rem;
}

.event-desc {
    font-size: 14px;
    color: #5D6D7E;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: #2C3E50;
    color: #FFFFFF;
    padding: 3rem 2rem 2rem;
}

.footer-inner {
    max-width: 800px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-brand {
    flex-shrink: 0;
}

.footer-title {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: 18px;
    color: #FFFFFF;
    margin-bottom: 0.25rem;
}

.footer-tagline {
    font-size: 13px;
    color: #5D6D7E;
}

.footer-nav {
    display: flex;
    gap: 2.5rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-col-title {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.flink {
    font-size: 13px;
    color: #5D6D7E;
    text-decoration: none;
    transition: color 0.2s ease;
}

.flink:hover {
    color: #D4A843;
}

.footer-bottom {
    text-align: center;
}

.footer-funding,
.footer-partners {
    margin-bottom: 0.75rem;
}

.footer-disclosure {
    font-size: 12px;
    color: #5D6D7E;
    line-height: 1.6;
}

.footer-link {
    color: #D4A843;
    text-decoration: none;
}

.footer-link:hover {
    text-decoration: underline;
}

.footer-copy {
    font-size: 12px;
    color: #5D6D7E;
    margin-top: 0.5rem;
}

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .program-pillars {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .impact-grid {
        grid-template-columns: 1fr 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .leaderboard-table th,
    .leaderboard-table td {
        padding: 10px 10px;
        font-size: 13px;
    }

    .accuracy-bar {
        width: 50px;
    }

    .footer-top {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-nav {
        flex-wrap: wrap;
        gap: 2rem;
    }

    .metric-row {
        flex-wrap: wrap;
    }

    .metric-label {
        width: 100%;
    }

    .event-item {
        flex-direction: column;
        gap: 0.75rem;
    }

    .event-date {
        text-align: left;
        display: flex;
        gap: 0.5rem;
        align-items: baseline;
    }
}

@media (max-width: 480px) {
    .impact-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 3rem 1.25rem 2.5rem;
    }

    .research,
    .methodology,
    .leaderboard,
    .programs,
    .impact,
    .team,
    .calibration,
    .events {
        padding: 3rem 1.25rem;
    }

    .pillar,
    .program-block,
    .cal-question,
    .cal-results {
        padding: 24px;
    }
}
