/* ---------------------------------
   Global
--------------------------------- */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f8fb;
    color: #1b2631;
}


/* ---------------------------------
   Header
--------------------------------- */

header {
    padding: 24px 8%;
    background: white;
    border-bottom: 1px solid #e1e8ed;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: bold;
    color: #1b4f72;
}

.logo-icon {
    font-size: 30px;
}


/* ---------------------------------
   Main layout
--------------------------------- */

main {
    max-width: 950px;
    margin: 0 auto;
    padding: 70px 20px;
}


/* ---------------------------------
   Hero
--------------------------------- */

.hero {
    text-align: center;
}

.hero h1 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 52px;
    color: #1b4f72;
}

.hero p {
    max-width: 620px;
    margin: 0 auto 35px;
    font-size: 20px;
    line-height: 1.5;
    color: #566573;
}


/* ---------------------------------
   Search
--------------------------------- */

.search-card {
    display: flex;
    max-width: 650px;
    margin: 0 auto;
    gap: 10px;
}

.search-card input {
    flex: 1;
    min-width: 0;
    padding: 15px 16px;
    font-size: 17px;
    border: 1px solid #ccd6dd;
    border-radius: 8px;
    background: white;
}

.search-card input:focus {
    outline: 2px solid #1b4f72;
    outline-offset: 2px;
}

.search-card button {
    padding: 15px 22px;
    font-size: 17px;
    font-weight: bold;
    background: #1b4f72;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.search-card button:hover {
    opacity: 0.88;
}

.search-card button:disabled {
    opacity: 0.65;
    cursor: default;
}


/* ---------------------------------
   Main forecast card
--------------------------------- */

.forecast-card {
    margin-top: 60px;
    padding: 34px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.forecast-card h2 {
    margin-top: 0;
    margin-bottom: 10px;
    text-align: center;
    color: #1b4f72;
}

.placeholder {
    margin-top: 0;
    margin-bottom: 30px;
    text-align: center;
    color: #7b8794;
}


/* ---------------------------------
   Top forecast summary
--------------------------------- */

.forecast-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 28px;
}

.forecast-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 115px;
    padding: 18px 12px;
    text-align: center;
    background: #f4f8fb;
    border-radius: 12px;
}

.forecast-label {
    margin-bottom: 8px;
    font-size: 13px;
    color: #7b8794;
}

.forecast-item strong {
    font-size: 27px;
    line-height: 1.2;
    color: #1b4f72;
}


/* ---------------------------------
   Model agreement overview
--------------------------------- */

.confidence-section {
    margin-top: 45px;
    padding-top: 35px;
    border-top: 1px solid #e5eaee;
}

.confidence-section h3 {
    margin-top: 0;
    margin-bottom: 8px;
    text-align: left;
    color: #1b4f72;
}

.agreement-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 22px 0;
}

.agreement-tab {
    width: 100%;
    padding: 12px 10px;
    background: #edf3f7;
    color: #566573;
    border: 1px solid #d5dde3;
    border-radius: 9px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}

.agreement-tab:hover {
    background: #e3edf3;
}

.agreement-tab.active {
    background: #1b4f72;
    color: white;
    border-color: #1b4f72;
}

.agreement-overview {
    padding: 24px;
    background: #f4f8fb;
    border-radius: 12px;
}

.agreement-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 14px;
}

.agreement-heading span {
    font-size: 16px;
    font-weight: bold;
    color: #34495e;
}

.agreement-heading strong {
    flex-shrink: 0;
    font-size: 28px;
    color: #1b4f72;
}

.confidence-bar {
    width: 100%;
    height: 18px;
    background: #dde5ea;
    border-radius: 10px;
    overflow: hidden;
}

.confidence-fill {
    height: 100%;
    background: #1b4f72;
    border-radius: 10px;
}

#agreement-fill {
    width: 0%;
    transition: width 0.3s ease;
}

.agreement-detail {
    margin: 12px 0 0;
    font-size: 14px;
    line-height: 1.5;
    color: #566573;
}


/* ---------------------------------
   Overall confidence
--------------------------------- */

.overall-confidence {
    margin-top: 28px;
    padding: 22px;
    text-align: center;
    border: 1px solid #dbe3e8;
    border-radius: 12px;
}

.overall-confidence p {
    margin: 0 0 8px;
    font-weight: bold;
    color: #34495e;
}

.stars {
    font-size: 32px;
    line-height: 1.2;
    letter-spacing: 2px;
    color: #1b4f72;
}

.confidence-note {
    display: block;
    max-width: 460px;
    margin: 8px auto 0;
    font-size: 12px;
    line-height: 1.5;
    color: #7b8794;
}


/* ---------------------------------
   Forecast sources
--------------------------------- */

.sources-section {
    margin-top: 45px;
    padding-top: 35px;
    border-top: 1px solid #e5eaee;
}

.sources-section h3 {
    margin-top: 0;
    margin-bottom: 8px;
    color: #1b4f72;
}

.sources-intro {
    margin-top: 0;
    margin-bottom: 22px;
    font-size: 14px;
    line-height: 1.5;
    color: #7b8794;
}

#source-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.source-card {
    display: block;
    padding: 12px 16px;
    background: #f4f8fb;
    border-radius: 9px;
}

.source-name {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 7px;
}

.source-name strong {
    font-size: 15px;
    color: #34495e;
}

.source-name span {
    font-size: 12px;
    text-align: right;
    color: #7b8794;
}

.source-details {
    text-align: left;
}

.source-values {
    padding: 7px 10px;
    background: white;
    border-radius: 7px;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.3;
    color: #1b4f72;
}

.source-difference {
    margin-top: 5px;
    padding-left: 2px;
    font-size: 11px;
    line-height: 1.3;
    color: #7b8794;
}
.possible-outlier {
    border: 1px solid #d68910;
}

.possible-outlier .source-name span {
    color: #b9770e;
    font-weight: bold;
}

.unavailable-source {
    opacity: 0.68;
    border: 1px dashed #a6acaf;
}

.unavailable-source .source-name span,
.unavailable-source .source-values {
    color: #7b8794;
}

/* ---------------------------------
   Consensus source summary
--------------------------------- */

.consensus-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    padding: 19px 20px;
    border: 2px solid #1b4f72;
    border-radius: 11px;
    background: white;
}

.consensus-summary span {
    font-weight: bold;
    color: #34495e;
}

.consensus-summary strong {
    text-align: right;
    font-size: 17px;
    color: #1b4f72;
}


/* ---------------------------------
   Footer
--------------------------------- */

footer {
    padding: 30px 20px;
    text-align: center;
    font-size: 14px;
    color: #7b8794;
}


/* ---------------------------------
   Tablet
--------------------------------- */

@media (max-width: 800px) {

    .forecast-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .source-card {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .source-details {
        text-align: left;
    }
}


/* ---------------------------------
   Mobile
--------------------------------- */

@media (max-width: 600px) {

    main {
        padding: 45px 15px;
    }

    header {
        padding: 18px 20px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero p {
        font-size: 17px;
    }

    .search-card {
        flex-direction: column;
    }

    .search-card button {
        width: 100%;
    }

    .forecast-card {
        margin-top: 40px;
        padding: 24px 18px;
    }

    .forecast-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .forecast-item {
        min-height: 100px;
        padding: 14px 8px;
    }

    .forecast-item strong {
        font-size: 23px;
    }

    .agreement-tabs {
        grid-template-columns: 1fr;
    }

    .agreement-heading {
        align-items: flex-start;
    }

    .agreement-heading strong {
        font-size: 24px;
    }

    .agreement-overview {
        padding: 18px;
    }

    .source-card {
        padding: 16px;
    }

    .source-values {
        font-size: 14px;
    }

    .consensus-summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .consensus-summary strong {
        text-align: left;
    }

   .source-name {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.source-name span {
    text-align: left;
}

.source-values {
    font-size: 14px;
}
}


/* ---------------------------------
   Very small screens
--------------------------------- */

@media (max-width: 400px) {

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

}
/* ---------------------------------
   Selected agreement source values
--------------------------------- */

.agreement-source-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 16px;
}

.agreement-source-item {
    padding: 10px;
    text-align: center;
    background: white;
    border-radius: 8px;
}

.agreement-source-item strong {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    color: #34495e;
}

.agreement-source-item span {
    font-size: 16px;
    font-weight: bold;
    color: #1b4f72;
}

@media (max-width: 600px) {

    .agreement-source-values {
        grid-template-columns: 1fr;
    }

}
/* ---------------------------------
   Activity Focus
--------------------------------- */

.activity-focus-section {
    margin-top: 32px;
}

.activity-focus-section h3 {
    margin-bottom: 6px;
    color: #1b4f72;
}

.activity-intro {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 13px;
    color: #7b8794;
}

.activity-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.activity-tab {
    padding: 9px 13px;
    background: #edf3f7;
    color: #566573;
    border: 1px solid #d5dde3;
    border-radius: 8px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
}

.activity-tab:hover {
    background: #e3edf3;
}

.activity-tab.active {
    background: #1b4f72;
    color: white;
    border-color: #1b4f72;
}

.activity-result {
    padding: 18px 20px;
    background: #f4f8fb;
    border-radius: 11px;
}

.activity-result-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.activity-result-heading span {
    font-weight: bold;
    color: #34495e;
}

.activity-result-heading strong {
    font-size: 24px;
    color: #1b4f72;
}

#activity-fill {
    width: 0%;
    transition: width 0.3s ease;
}

.activity-detail {
    margin: 10px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: #7b8794;
}

@media (max-width: 600px) {

    .activity-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .activity-tab {
        width: 100%;
    }

}
/* ---------------------------------
   Activity Suitability
--------------------------------- */

.activity-suitability-section {
    margin-top: 28px;
}

.activity-suitability-section h3 {
    margin-bottom: 6px;
    color: #1b4f72;
}

.suitability-intro {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 13px;
    color: #7b8794;
}

.suitability-card {
    padding: 18px 20px;
    background: #f4f8fb;
    border-radius: 11px;
}

.suitability-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.suitability-heading span {
    font-weight: bold;
    color: #34495e;
}

.suitability-heading strong {
    font-size: 22px;
    color: #1b4f72;
}

.suitability-detail {
    margin: 12px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: #566573;
}

.suitability-conditions {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #dbe3e8;
    font-size: 12px;
    color: #7b8794;
}

.suitability-disclaimer {
    margin: 8px 2px 0;
    font-size: 11px;
    line-height: 1.4;
    color: #7b8794;
}
