/* ===============================================================
   trends1.css   –  ONLY used by trends1.php
   Scoped with `.trends-page` so nothing bleeds into other views
   Last updated 24 May 2025
================================================================ */

/* ------------ layout wrapper --------------------------------- */
.trends-page .container{
    max-width:1050px;
    margin:20px auto;
    padding:20px;
    background:#e9e9e9;
    border-radius:12px;
    box-shadow:0 2px 4px rgba(0,0,0,.1);
}

/* ------------ headings --------------------------------------- */
.trends-page h2{
    font:700 18px/1.3 Arial,Helvetica,sans-serif;
    text-align:center;
    color:#333;
    margin:0 0 20px;
}
.trends-page .heading-large{
    font:700 20px/1.3 Arial,Helvetica,sans-serif;
    text-align:center;
    margin:24px 0;
    color:#333;
}

/* ------------ paragraph copy --------------------------------- */
.trends-page p{
    text-align:center;
    font-size:15px;
    margin:0 0 20px;
}

/* ------------ shared table shell ----------------------------- */
.trends-page .styled-table{
    width:100%;
    border-collapse:collapse;
    margin:0 0 20px;
    border:1px solid #ccc;
    border-radius:8px;
    overflow:hidden;       /* keeps rounded corners on tbody rows */
}
.trends-page .styled-table th{
    padding:10px;
    background:#000;
    color:#fff;
    font-weight:700;
    text-align:center;
}
.trends-page .styled-table td{
    padding:10px;
    border-top:1px solid #ccc;
    text-align:left;
    font-size:12px;
    vertical-align:middle;
}
.trends-page .styled-table tr:nth-child(even){background:#fafafa;}
.trends-page .styled-table tr:nth-child(odd) {background:#f5f5f5;}

/* ------------ weather-data overrides -------------------------- */
.trends-page .weather-data-table th,
.trends-page .weather-data-table td{
    text-align:center;     /* centre ALL cells in that first table */
}

/* ------------ wind-data split view ---------------------------- */
.trends-page .wind-data-container{
    display:flex;
    flex-wrap:wrap;
    justify-content:space-between;
    align-items:flex-start;
    margin:0 0 20px;
}
.trends-page .wind-data-container .wind-table{
    flex:1 1 300px;
    margin-right:20px;
    border-radius:8px;
    overflow:hidden;
}
.trends-page .wind-data-container .wind-table th{text-align:center;}
.trends-page .wind-plot{
    max-width:400px;
    height:auto;
    border-radius:8px;
}

/* ------------ responsive tweaks ------------------------------- */
@media (max-width:768px){
    .trends-page .container{padding:10px;width:95%;}
    .trends-page h2{font-size:16px;}
    .trends-page .heading-large{font-size:16px;margin:20px 0;}
    .trends-page p{font-size:13px;}
    .trends-page .styled-table th,
    .trends-page .styled-table td{
        font-size:13px;
        padding:8px;
    }
    .trends-page .wind-data-container{flex-direction:column;}
    .trends-page .wind-data-container .wind-table{
        margin:0 0 20px;
    }
    .trends-page .wind-plot{max-width:100%;}
}
@media (max-width:480px){
    .trends-page h2,
    .trends-page .heading-large{font-size:14px;margin:16px 0;}
    .trends-page p{font-size:12px;}
    .trends-page .styled-table th,
    .trends-page .styled-table td{
        font-size:12px;
        padding:6px;
    }
    .trends-page .wind-data-container .wind-table{min-width:100%;}
}

/* ============================================================== */
