:root {
    --available: #2D3447;  /* dark line (available) */
    --missing:   #D9DBDE;  /* light grey (missing) */
}

body {
    background-color: #fafafa;
    font-family: 'Open Sans', sans-serif;
  }

.btn:focus {
    outline: none!important;
    box-shadow: none!important;
  }

/* * BUTTONS * */

.geomag-button{
    width:auto;
    padding: 5px 15px;
    background-color: #e8f2f6;
    color:black!important;
    display:flex;
    justify-content:center; align-items:center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
    border:1px rgba(255, 255, 255, 0) solid;
    border-radius: 1px;
    font-size: clamp(18px, 5vw, 26px);
    max-width:75vw;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    font-weight:550!important;
  }

.wds-button{
    width:auto;
    padding: 5px 5px;
    background-color: hsl(43, 27%, 56%);
    color:rgb(255, 255, 255);
    display:flex;
    justify-content:center; align-items:center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    border:1px rgba(255, 255, 255, 0) solid;
    border-radius: 1px;
    font-size: clamp(14px, 3vw, 18px);
    max-width:75%;
    overflow:hidden;
    margin-top:auto!important;
    font-weight:550!important;
}

.geomag-button:hover{
    background-color: #eaeaea;
    color:black!important;
    transform: scale(1.025);
    border:1px rgba(255, 255, 255, 0) solid;
}

.wds-button:hover{
    background-color: #dbdbdb;
    transform: scale(1.05);
    border:1px rgba(255, 255, 255, 0) solid;
    color: rgb(110, 110, 110) !important;
}

.wds-button:focus {
    background-color: #dbdbdb;
    transform: scale(1.1);
    color: rgb(255, 255, 255) !important;
    outline: none;
}

#toTopButton {
    display: none;
    position: fixed;
    bottom: 3vh;
    right: 3vh;
    z-index: 99999;
    border: none;
    outline: none;
    background-color: #495057;
    color: white;
    cursor: pointer;
    padding: 15px;
    font-size: 18px;
    width:60px;
    height:60px;
    text-align:center;
    justify-content: center;
    align-items: center;
    border-radius:50px;
    box-shadow: 0 0 0 .2rem #002e406a;
    border: 1px solid white;
}

#toTopButton:hover {
    background-color: #555;
}

.fullscreen-button {
  position: absolute;
  top: 0;
  right: 0;
  width: 34px;
  height: 34px;
  padding:8px;
  background: transparent
    url("/images/expand.svg")
    no-repeat
    center
    / 20px 20px;
  border: none !important;
  cursor: pointer;
  transition: transform 0.1s ease;
}

.fullscreen-button:hover{
    transform: scale(1.05);
}

/* * TITLES * */

.subtitle{
    width:auto;
    padding: 60px 25px;
    background-color: #002E40;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    color:white!important;
    display:flex;
    justify-content:center; align-items:center;
    border:1px rgba(255, 255, 255, 0) solid;
    border-radius: 1px;
    font-size: clamp(18px, 5vw, 32px);
    max-width:75vw;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    }

.subtitle:hover{
    text-decoration: none!important;
}

.subtitle-obsinfo{
    width:100%;
    padding: 40px 25px;
    background-color: #002E40;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    color:white!important;
    display:flex;
    justify-content:center;
    align-items:center;
    border-radius: 1px;
    font-size: clamp(18px, 5vw, 32px);
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}

.content-title{
    font-size:clamp(16px, 4vw, 24px);
}

.availability-title {
    position: relative;
    margin: 0;
    padding: 26px 4px 16px;
    color: #002E40;
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 600;
    text-align: left;
}

/* * ACCORDIANS * */

.accordian-bgs{
    display:flex;
    text-align:center;
    justify-content: center;
    background-color: hsl(43, 27%, 56%);
    padding:10px;
    font-size: 20px;
}

.accordian-bgs:hover{
    cursor: pointer;
}

.accordion-table {
    border-collapse: collapse;
    width: 100%!important;
}

table td:last-child {
    width: 100%;
}

.accordion-link {
    display: block;
    overflow-wrap: break-word;
    word-wrap: break-word;
    text-overflow: ellipsis;
    white-space: normal;
    overflow:hidden;
    color:#3693b8;
    text-decoration: none;
    font-weight:bold;
}

.no-border{
    border:none!important
}

td.break {
        word-break: break-word; /* Breaks words at the end of the line */
        overflow-wrap: break-word; /* Ensures long words or URLs break properly */
        hyphens: auto; /* Automatically hyphenates words if needed */
      }

.yearbook-range {
    min-width: 15vw !important;
    color:#002E40;
}

.accordion-table th, .accordion-table td {
    background-color: #ffffff;
    color:#002E40;
    text-align: left;
    padding: 8px;}

.accordion-table th {
    background-color: #002E40;
    color:white;
    font-weight: bold;
}

.geojson th {
    width:30%!important;
}

.accordion-table-container {
    margin: 20px 0;
}

.arrow {
    position: relative;
}

.arrow::after {
    position: absolute;
    right: 2%;
    top: 50%;
    transform: translateY(-50%);
}

.arrow[aria-expanded="true"]::after {
    content: " \25B2"; /* Up arrow */
}

.arrow[aria-expanded="false"]::after {
    content: " \25BC"; /* Down arrow */
}

.title-banner{
    background-color: #002E40;
    color:white;
    z-index:999;
    height:200px;
    max-height:60vh;
    display:flex;
    align-items: center;
    justify-content: center;
    text-align:center;
    padding-left:2vw;
    padding-right:2vw;
    border-radius:0;
    margin-top:clamp(3vh,15px,20px);
}

@media screen and (max-width: 998px) {
    .title-banner {
        margin-top:15px;
    }
}

@media screen and (max-width: 650px) {
    .title-banner {
        margin-top:-5px;
    }
}

.title-banner-secondary{
    background-color: #002E40;
    color:white;
    z-index:999;
    height:200px;
    max-height:60vh;
    align-items: center;
    display:flex;
    text-align:center;
    justify-content: center;
    margin-top:clamp(50px, 10vh, 70px);
    border-radius:0;
}

@media screen and (max-width: 650px) {
    .title-banner-secondary {
        margin-top:clamp(30px,10vh, 50px);
    }
}

.title-font {
    font-size: clamp(28px, 6vw, 36px);
    font-weight:550;
    padding-left:5px;
    padding-right:5px;
}

.background-map {
    height: 300px;
    max-height:50vh;
    background-image: url('/images/wmm-map.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index:0;
    margin-bottom:50px;
    margin-top:60px;
    padding-top:0;
}

.main-nav{
    background-color: #fafafa;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.content-nav{
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media screen and (max-width: 1000px) {
    .content-nav {
        padding: 0px 3vw!important;
    }
}

@media screen and (max-width: 1000px) {
    .main-nav {
        padding: 0px 3vw!important;
    }
}

/* * FOR BGS LOGO * */

.logo-size{
    display:flex;
    width:100%;
    align-items: start;
    justify-content: flex-start;
    min-height:clamp(40px,12vh, 80px);
    max-height:70px;
    max-width:50vw;
}

@media screen and (max-width: 755px) {
    .logo-size {
        max-height:60px
    }
}

@media screen and (max-width: 405px) {
    .logo-size {
        min-height:50px;
        max-width:50vw;
    }
}

/* * FOR FOOTER LOGOS * */

.logo-height {
    height: 45px !important;
    object-fit: contain;
    margin-bottom: 5px;
    margin-top: 5px;
}

@media (max-width: 767px) {
    .logo-height {
        height: clamp(25px, 20vw, 40px) !important;
    }
}

@media (min-width: 1200px) {
    .logo-height {
        height: clamp(45px, 4vw, 70px) !important;
    }
    .border-right-xl {
        border-right: none !important;
    }
}

/* * LINKS * */

.a-text {
    text-decoration: underline;
    color:inherit!important;
    font-weight:bold!important;
}

.a-text-normal {
    text-decoration: None;
    color:inherit!important;
}

.a-text-darker {
    text-decoration: none;
    color:hsl(43, 22%, 51%);
    font-weight:550;
    transition: transform 0.4s ease;
}

.a-text-darker:hover{
    text-decoration: none;
    color:inherit;
    color:grey;
}

/*  NAVBAR * */

.navbar-collapse-home{
    background-color: #fafafa!important;
    padding:10px;
    font-weight: 550;
}

.navbar-collapse-content{
    background-color: #002E40!important;
    padding:10px;
    font-weight: 550;
}

.bg-nav{
    background-color: #002E40;
}

.navbar-expand-md{
    border-bottom: 2px solid white!important;
}

/* * UTILS * */

.large-margin{
    box-sizing: border-box;
    margin-left:10%;
    margin-right:10%;
    transform: translateY(-5vh)!important;
    width:80%;
    border-bottom: 6px solid #002E40;
    display:flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.position-relative {
    position: relative;
  }

.position-absolute {
position: absolute;
}

.main{
    min-height: 77vh
}

.page-desc{
    justify-content:center;
    display:flex;
    text-align:center;
    font-weight:400;
    font-size: clamp(16px, 3vw, 20px);
    color: #002E40;
}

.white-border{
    border-bottom: 2px solid rgb(255, 255, 255);
}

.b-shadow{
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.b-shadow-intense{
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.img-width{
    max-width:clamp(100px, 8vw, 200px);
    width:100%;
}

.img-vh{
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    height:clamp(100px, 25vh, 300px);
    transition: transform 0.4s ease!important;
}

/*  CARDS  */

.card{
    background-color: #eff3f500!important;
    margin-bottom:10px!important;
    overflow-x: auto;
    border-radius:0;
}

.card-white {
    background-color: rgb(239, 244, 244) !important;
}

.card-white:hover{
    border: 1px solid #002e4085!important;
}

.card-title{
    color:#002E40!important;
}

.copyright-banner{
    background-color: #002E40;
    height:auto;
    padding:20px;
    width:100%;
    font-size: clamp(15px, 3vw, 19px);
}

.data-card{
    transition: transform 1s ease;
}

.data-card:hover img{
    transform: scale(1.01)!important;
    cursor: pointer!important;
}

/*  MAP  */

.map-frame {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom:50px;
}

.map-body {
    border-top: 2px solid black;
    border-bottom: 2px solid black;
}

/*  TABLES  */

.geomag-table{
    width: 100%!important;
    border-collapse: collapse!important;
    margin-bottom:30px!important;
}

.geomag-table th, td {
    padding: 8px!important;
    text-align: center!important;
}

.geomag-table th {
    color:white;
    background-color: #002E40!important;
    font-size: clamp(10px, 2vw, 16px)!important;
}

.geomag-table td {
    font-size: clamp(10px, 2vw, 16px)!important;
}

table, tr {
    border: 1px solid grey;
    border-left: none;
    border-right: none;
}

/*  YEARBOOK ARCHIVE  */

.yearbook-section {
    width: 100%;
    margin: 0 auto;
    color: #002E40;
}

.yearbook-title {
    position: relative;
    margin: 0;
    padding: 26px 4px 16px;
    border-bottom: 1px solid #dfe7e9;
    color: #002E40;
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 600;
    text-align: left;
}

.yearbook-title::before {
    content: "Yearbook archive";
    position: absolute;
    top: 0;
    left: 4px;
    color: hsl(43, 22%, 45%);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.yearbook-title::after {
    content: "";
    position: absolute;
    left: 4px;
    bottom: -1px;
    width: 58px;
    height: 2px;
    background: hsl(43, 27%, 56%);
}

/* obsinfo.js currently shows the table with display:block; keep true table layout. */

#ybTable[style*="display: block"] {
    display: table !important;
}

#ybTable {
    width: 100% !important;
    margin: 18px 0 0;
    overflow: hidden;
    border: 1px solid #dfe7e9 !important;
    border-radius: 16px;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    box-shadow: 0 10px 28px rgba(0, 46, 64, 0.08);
}

#ybTable,

#ybTable tr {
    border: 0;
}

#ybTable thead th {
    padding: 12px 18px !important;
    border: 0;
    border-bottom: 1px solid #dfe7e9;
    background: #f3f7f7;
    color: #6a787c;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-align: left !important;
    text-transform: uppercase;
}

#ybTable thead th:first-child {
    width: 110px;
    text-align: center !important;
}

#ybTable tbody td {
    padding: 14px 18px !important;
    border: 0;
    background: #fff;
    color: #002E40;
    text-align: left !important;
    vertical-align: middle;
    transition: background-color 0.18s ease;
}

#ybTable tbody tr:not(:last-child) td {
    border-bottom: 1px solid #edf1f2;
}

#ybTable tbody tr:hover td {
    background: #f9fbfb;
}

#ybTable tbody td:first-child {
    width: 110px;
    background: #fbfcfc;
    font-variant-numeric: tabular-nums;
    font-weight: 700 !important;
    text-align: center !important;
}

/* Yearbook download links use .page-link in the existing JS; scope the override here. */

#ybTable td.break .page-link {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    margin: 2px 4px 2px 0;
    padding: 7px 11px !important;
    border: 0 !important;
    border-radius: 999px;
    background: #eef5f6;
    box-shadow: none !important;
    color: #002E40 !important;
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
    text-decoration: none;
    white-space: normal;
    transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

#ybTable td.break .page-link:hover,

#ybTable td.break .page-link:focus {
    transform: translateY(-1px);
    background: #002E40;
    color: #fff !important;
    text-decoration: none;
}

.yearbook-empty {
    margin-top: 18px;
    padding: 18px 20px;
    border: 1px dashed #cbdadd;
    border-radius: 14px;
    background: #f6f9f9;
    color: #647377;
    text-align: left;
}

.yearbook-empty-mark {
    display: inline-flex;
    width: 28px;
    height: 28px;
    margin-right: 8px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #deebec;
    color: #002E40;
    font-weight: 700;
}

.yearbook-section #pagination-controls {
    padding-top:4px;
    margin-top: 18px;
    overflow-x: auto;
}

.yearbook-section .pagination {
    gap: 6px;
}

.yearbook-section .pagination .page-link {
    min-width: 38px;
    height: 38px;
    padding: 8px 10px;
    border: 1px solid #dce5e7;
    border-radius: 10px !important;
    background: #fff;
    color: #002E40 !important;
    line-height: 20px;
    transition: transform 0.18s ease, background-color 0.18s ease;
}

.yearbook-section .pagination .page-link:hover {
    transform: translateY(-1px);
    background: #eef5f6;
    text-decoration: none;
}

.yearbook-section .page-item.active .page-link {
    border-color: #002E40;
    background: #002E40 !important;
    box-shadow: 0 4px 10px rgba(0, 46, 64, 0.18);
    color: #fff !important;
}

@media (max-width: 575.98px) {
    #ybTable {
        border-radius: 14px;
    }
    #ybTable thead {
        display: none;
    }
    #ybTable,
    #ybTable tbody,
    #ybTable tr,
    #ybTable td {
        display: block;
        width: 100% !important;
    }
    #ybTable tbody tr {
        padding: 14px 16px;
    }
    #ybTable tbody tr:not(:last-child) {
        border-bottom: 1px solid #e7edef;
    }
    #ybTable tbody tr:not(:last-child) td {
        border-bottom: 0;
    }
    #ybTable tbody td,
    #ybTable tbody td:first-child {
        padding: 0 !important;
        background: transparent;
        text-align: left !important;
    }
    #ybTable tbody td:first-child {
        margin-bottom: 8px;
        font-size: 1.05rem;
    }
    #ybTable td.break .page-link {
        display: flex;
        width: 100%;
        margin: 4px 0 0;
        padding: 10px 12px !important;
        border-radius: 10px;
    }
}

/*  PAGINATION  */

.page-item.active .page-link {
    background-color: #002E40!important;
    border: 1px rgb(72, 72, 72) solid;
    color:white!important;
}

.page-link{
    color:#002E40!important;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    padding-left: 0;
    margin: 0;
    list-style: none;
  }

.pagination .page-link {
    display: block;
    text-align: center;
  }

#pagination-controls {
    overflow-x: auto;
  }

/* * BOOSTRAP OVERRIDE * */

.form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: #002e4085;
    outline: 0;
    box-shadow: 0 0 0 .2rem #002e4085;
}

.pub-table td, .pub-table th {
    padding: 30px!important;
}

.custom-control-label::before{
    margin-top:2px;
    cursor:pointer;
}

.custom-control-label::after{
    margin-top:2px;
    cursor:pointer;
}

.custom-control-input:checked~.custom-control-label::before{
    background-color: #002E40;
    border:none;
}

.custom-control-input:focus:not(:checked)~.custom-control-label::before{
    border-color: #002e407d!important;
    box-shadow: 0 0 0 .2rem #002e4020!important;
}

.custom-control-input:focus~.custom-control-label::before {
    border-color: #002e407d!important;
    box-shadow: 0 0 0 .2rem #002e4020!important;
}

/* CHARTS */

.sub {
    margin: 0 0 0.75rem;
    color: #555;
    font-size: 0.9rem;
}

.swatch {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 6px;
  border: 1px solid #000; /* optional */
}

#chart-wrap {
    height: 62vh;
    padding: 0 1rem 1rem;
}

canvas {
    background: #fff;
    border: 1px solid #E6E6E6;
    border-radius: 6px;
}


/* ==========================================================================
   DATA FORMAT REFERENCE PAGE
   ========================================================================== */
.data-formats-page {
    color: #29434b;
}

.data-formats-page .format-intro {
    color: #002E40;
    font-size: clamp(16px, 2.5vw, 19px);
}

.data-formats-page .format-section {
    margin: 28px 0 42px;
}

.data-formats-page .format-section > h2 {
    padding: 0 0 12px;
    border-bottom: 1px solid #dfe7e9;
    color: #002E40;
    font-size: clamp(23px, 4vw, 30px);
    font-weight: 600;
}

.data-formats-page .format-section h3 {
    margin-top: 24px;
    color: #002E40;
    font-size: clamp(18px, 3vw, 22px);
}

.data-formats-page .format-summary {
    margin-top: -3px;
    color: #64777c;
}

.data-formats-page .format-detail {
    margin: 14px 0;
    border: 1px solid #dfe7e9;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 46, 64, 0.05);
}

.data-formats-page .format-detail > summary {
    padding: 14px 18px;
    background: #f3f7f7;
    color: #002E40;
    cursor: pointer;
    font-weight: 650;
}

.data-formats-page .format-detail > div {
    padding: 4px 18px 16px;
}

.data-formats-page .format-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin: 14px 0 22px;
}

.data-formats-page .format-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    background: #fff;
    color: #002E40;
    font-size: 14px;
}

.data-formats-page .format-table th,
.data-formats-page .format-table td {
    padding: 9px 11px !important;
    border: 1px solid #dfe7e9;
    text-align: left !important;
    vertical-align: top;
}

.data-formats-page .format-table th {
    background: #002E40 !important;
    color: #fff;
}

.data-formats-page .format-table tbody tr:nth-child(even) td {
    background: #f6f9f9;
}

.data-formats-page .format-table code {
    color: #002E40;
    white-space: nowrap;
}

.data-formats-page .format-note {
    margin: 16px 0;
    padding: 13px 16px;
    border-left: 4px solid hsl(43, 27%, 56%);
    background: #f3f6f6;
    color: #29434b;
}

.data-formats-page .format-links li {
    margin-bottom: 7px;
}

@media (max-width: 575.98px) {
    .data-formats-page .format-table {
        font-size: 12px;
    }
    .data-formats-page .format-table th,
    .data-formats-page .format-table td {
        padding: 7px !important;
    }
    .data-formats-page .format-detail > div {
        padding-right: 12px;
        padding-left: 12px;
    }
}




  /**************************************************************************************/
  /******************** COMMENT OUT EVERYTHING BELOW WHEN NO ALERTS! ********************/
  /**************************************************************************************/
  /* .navbar::after {
    content: "! We are aware of issues with our services. We are working to resolve them as soon as possible. Thank you for your patience.";
    display: flex;
    align-items: center;
    justify-content: center;
    text-align:center;
    font-size: clamp(11px, 1.5vw, 16px)!important;
    color:white!important;
    width: 100%;
    background: rgb(196, 191, 149);;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    padding: 5px!important;
    position: absolute;
    height:40px;
    bottom: -50px;
    left: 0;
    z-index: 9999;
    margin:0;
    margin-bottom:10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.title-banner{
    margin-top:60px!important;
}

@media screen and (max-width: 998px) {
    .title-banner {
        margin-top:50px!important;
    }
}

@media screen and (max-width: 786px) {
    .title-banner {
        margin-top:30px!important;
    }
} */