/* ---------------------------------------------------------
   ClimateInform — Base Theme
   Clean, CPC-inspired, readable scientific layout
   drop directly into: website/css/style.css
----------------------------------------------------------*/

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

/* Body styling */
body {
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    background: #f7f7f7;
    color: #222;
    padding-bottom: 40px;
}

/* Links */
a {
    color: #005ea2;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* ---------------------------------------------------------
   Header
----------------------------------------------------------*/
header {
    background: #4b2e83; /* Deep CPC-style purple */
    color: white;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .logo img {
    height: 50px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav ul li a {
    color: white;
    font-weight: 600;
    font-size: 1rem;
}
nav ul li a:hover {
    opacity: 0.8;
}

/* ---------------------------------------------------------
   Main content
----------------------------------------------------------*/
main {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

main h1 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #333;
}

main h2 {
    font-size: 1.6rem;
    margin-top: 30px;
    margin-bottom: 10px;
    color: #444;
}

main p {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

/* Section blocks */
section {
    background: white;
    padding: 20px;
    margin: 25px 0;
    border-radius: 6px;
    border: 1px solid #ddd;
}

/* Lists */
ul {
    margin-left: 20px;
    margin-top: 10px;
}
ul li {
    margin-bottom: 8px;
}

/* ---------------------------------------------------------
   Footer
----------------------------------------------------------*/
footer {
    background: #4b2e83;
    color: white;
    text-align: center;
    padding: 15px 0;
    margin-top: 40px;
    font-size: 0.9rem;
}

/* ---------------------------------------------------------
   Responsive layout
----------------------------------------------------------*/
@media (max-width: 700px) {
    header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    main {
        padding: 0 15px;
    }
}

/* ---------------------------------------------------------
   Forecast Gallery Layout
   make it more fancy
----------------------------------------------------------*/

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

.gallery-item {
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.gallery-item p {
    margin-top: 10px;
    font-size: 0.95rem;
    color: #444;
}

/* Three-panel skill map layout */
.skill-three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 20px;
}

.skill-three a {
    text-align: center;
    text-decoration: none;
    color: #333;
}

.skill-three img {
    width: 100%;
    border-radius: 4px;
    border: 1px solid #ccc;
    transition: transform 0.2s ease-in-out;
}

.skill-three img:hover {
    transform: scale(1.03);
}

.skill-three p {
    margin-top: 8px;
    font-size: 0.95rem;
}

@media (max-width: 900px) {
    .skill-three {
        grid-template-columns: 1fr;
    }
}

/* Collapsible variable sections */
.variable-section {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 28px;
}

.variable-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.variable-header h2 {
    margin: 0;
}

.variable-toggle {
    font-size: 0.9rem;
    color: #0077cc;
}

/* Lead slider */
.lead-slider {
    margin: 12px 0 20px 0;
}

.lead-slider label {
    font-size: 0.9rem;
    margin-right: 10px;
}

/* Three-panel skill map layout */
.skill-three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 20px;
}

.skill-three a {
    text-align: center;
    text-decoration: none;
    color: #333;
}

.skill-three img {
    width: 100%;
    border-radius: 4px;
    border: 1px solid #ccc;
    transition: transform 0.2s ease-in-out;
}

.skill-three img:hover {
    transform: scale(1.03);
}

.skill-three p {
    margin-top: 8px;
    font-size: 0.95rem;
}

@media (max-width: 900px) {
    .skill-three {
        grid-template-columns: 1fr;
    }
}

.enso-phase {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
    margin-left: 8px;
    color: #fff;
}
.enso-warm { background: #d9534f; }
.enso-cold { background: #337ab7; }
.enso-neutral { background: #5cb85c; }

.forecast-pair-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.forecast-pair-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.forecast-cell img {
    width: 100%;
    max-width: 350px;   /* controls thumbnail size */
    height: auto;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
}

.forecast-cell p {
    text-align: center;
    font-size: 0.9rem;
    margin-top: 4px;
}

.skill-matrix {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.skill-matrix-header,
.skill-matrix-row {
    display: grid;
    grid-template-columns: 0.6fr 1fr 1fr 1fr; /* Lead | ACC | HSS | RPSS */
    gap: 8px;
    align-items: center;
}

.skill-matrix-cell {
    text-align: center;
}

.skill-matrix-header .skill-matrix-cell {
    font-weight: bold;
}

.skill-matrix img {
    width: 100%;
    max-width: 220px;
    height: auto;
    border: 1px solid #ccc;
    border-radius: 4px;
}

