:root {
    --color-fs-world: #1B78FF;
    --color-main-dark: rgb(0, 69, 170);
    --color-gray: #6b7280;
    --color-gray-mid: #dae0e4;
    --color-gray-light: #f1f5f9;

    --color-class-cv: #76B828;
    --color-class-ev: #FFDD00;
    --color-class-dc: #5EC4E1;
}

body {
    background-color: #ffffff;
    color: #1f2937;
    font-family: europa, sans-serif;
    line-height: 1.2;
    padding: 0;
    margin: 0;
}
h1 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

a {
    color: var(--color-fs-world);
    font-weight: bold;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}
th, td {
    padding: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}
th {
    text-align: left;
    background-color: var(--color-gray-light) !important;
}
footer {
    color: var(--color-gray);
    font-size: 0.9rem;
    margin: 2rem 16px 0;
    text-align: right;
}

.header {
    background: #ffffff;
    border-bottom: 4px solid var(--color-fs-world);
    border-image: linear-gradient(to right, var(--color-main-dark) 0%, var(--color-fs-world) 100%) 1;
    color: var(--color-fs-world);
    /*display: flex;*/
    /*justify-content: space-between;*/
    height: 54px;
    left: 0;
    padding: 16px;
    position: fixed;
    top: 0;
    width: calc(100% - 32px);
    z-index: 1000;

    display: grid;
    gap: 4px 16px;
    grid-template-columns: 320px 1fr 80px;
    grid-template-rows: auto;
    grid-template-areas:
    "title filters logo"
    "nav filters logo";
}
.header nav {
    grid-area: nav;
}
.header h1 {
    margin: 0;
    grid-area: title;
}
.header .filter-container {
    display: flex;
    justify-content: end;
    gap: 16px;
    grid-area: filters;
}

.header > .logo {
    background-image: url(../img/FSWorld_Logo.svg);
    height: 54px;
    grid-area: logo;
    width: 80px;
}
.content {
    margin-top: 102px;
    padding: 0 16px;
    min-height: calc(100vh - 173px);
    overflow-x: auto;
    width: calc(100% - 32px);
}
@media only screen and (max-width: 1070px) {
    .content {
        margin-top: 102px;
    }
    .header {
        grid-template-columns: 220px 1fr 80px;
    }
    .header h1 {
        font-size: 24px;
    }
    .header .filter-container {
        justify-content: center;
    }
    .header .filters select {
        padding: 4px 2px !important;
    }
    .header .filters.search input {
        padding: 4px 2px !important;
        width: 130px;
    }
    .box-2 {
        grid-template-columns: 1fr;
    }
    .box-2 > .item {
        max-width: calc(100vw - 32px);
        overflow-x: auto;
    }
    .floating-hint {
        position: initial;
        width: 100%;
    }
    .equation {
        font-size: clamp(0.75rem, 4dvw, 1rem);
        overflow-x: auto;
    }
    .largeEquation {
        font-size: clamp(1.0rem, 4dvw, 1.5rem)
    }
}
@media only screen and (max-width: 700px) {
    .content {
        margin-top: 66px;
    }
    .header {
        padding: 8px;
        height: auto;
        width: calc(100% - 16px);

        grid-template-columns: 40px 0 1fr;
        grid-template-areas:
    "logo title nav"
    "filters filters filters";
    }
    .mobile-hide {
        display: none;
    }
    .header .logo{
        height: 27px;
        width: 40px;
    }
    .header nav {
        line-height: 26px;
    }
    .header nav > ul{
        float: right;
    }
    .mobile-header-spacer {
        height: 54px;
    }
    table.table td, table.table th {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
}
@media only screen and (max-width: 400px) {
    .header .filters.search input {
        padding: 4px 2px !important;
        width: 100px;
    }
}

nav > ul {
    display: flex;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}
nav > ul > li {
    display: inline-block;
}
nav > ul > li > a {
    color: var(--color-fs-world);
    text-decoration: none;
}
nav > ul > li > a:hover {
    text-decoration: underline;
}

/* input*/

select {
    background: none;
    border-color: var(--color-fs-world);
    border-radius: 12px;
    border-style: solid;
    border-width: 2px;
    padding: 6px 10px;
    outline: none;
}
input {
    background: none;
    border-color: var(--color-fs-world);
    border-style: solid;
    border-width: 2px;
    border-radius: 12px;
    padding: 6px 10px;
    outline: none;
}
input[type="submit"] {
    background: var(--color-fs-world);
    color: white;
}
input[type="submit"]:hover {
    background: var(--color-main-dark);
    color: white;
}

/* header filters */
.filters {
    display: flex;
    padding: 4px 0;
    gap: 0;
}

.filters label {
    text-transform: uppercase;
    font-size: 0.75rem;
    padding-left: 2px;
}
.filters select {
    border-radius: 0;
    border-width: 2px 1px;
}
.filters :first-child > select {
    border-left-width: 2px;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}
.filters :last-child > select {
    border-right-width: 2px;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.box-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.floating-hint {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 400px
}

.equation {
    font-size: 1rem;
    overflow-x: auto;
}

.large-equation {
    font-size: clamp(1.0rem, 2dvw, 1.5rem);
}

dl {
    padding: 0 14px;
}

.dl-symbol {
    display: flex;
    flex-direction: column;
    gap: 0.5em 0;
    padding: 0;
}
.dl-symbol dd {
    margin-left: 0;
    margin-bottom: 12px;
}

.dl-inline {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 0;
  padding: 0 0;
  align-items: baseline;
}
.dl-inline dd {
  margin-left: 0;
}
.dl-inline dt {
    font-style: italic; 
}
.dl-inline dt::after {
  content: ':';
  margin-right: 0.5em;
}

.textbox {
    max-width: 1600px;
    margin: auto;
    position: relative;
}

.disclaimer {
    padding: 10px;
    background-color: #fff3cd; 
    border: 1px solid #ffc107; 
    margin-bottom: 10px;
    display: none;
    text-align: center;
}

details {
    border: 2px solid var(--color-fs-world);
}
details > summary {
    font-size: 20px;
    font-weight: bold;
    padding: 16px;
    list-style: none;
}
details > summary::after {
    color: var(--color-fs-world);
    content: "\276F";
    height: 1.3em;
    float: right;
    text-align: center;
    transform: rotate(90deg);
    transition: all 0.35s;
    width: 1em;
}
details:open > summary::after {
    transform: rotate(270deg);
}
details > summary::marker {
    content: "";
}
details summary::-webkit-details-marker {
    display: none;
}
details > div > p {
    padding: 0 16px;
}
details dl {
    margin: 0 16px;
}

.team-class {
    display: inline-block;
    padding: 0.1em 0.4em;
    font-size: 20px;
    margin: 0.2em 0;
}
.team-class.cv {
    background: var(--color-class-cv);
    color: white !important;
}
.team-class.ev {
    background: var(--color-class-ev);
    color: black !important;
}
.team-class.dc {
    background: var(--color-class-dc);
    color: black !important;
}

button.button-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    padding: 0;
}
button.button-icon > i {
    color: var(--color-fs-world);
}
button.button-icon:hover > i {
    color: var(--color-main-dark);
}
button.modal-close {
    right: 16px;
    top: 16px;
    font-size: 20px;
    position: absolute;
}

.table-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
}
/** CELL ORIENTATION **/
table .left, table .l, table .-l, table .l-, table .-l-{
    text-align: left;
    width: 1px;
    white-space: nowrap;
}
table .-l,table .-r, table .-x{
    border-left: 2px solid var(--color-gray-light);
}

table .l-,table .r-, table .x-{
    border-right: 2px solid var(--color-gray-light);
}

table .-l-,table .-r-, table .-x-{
    border-left: 2px solid var(--color-gray-light);
    border-right: 2px solid var(--color-gray-light);
}

table .right, table .r, table .-r, table .r-, table .-r-{
    text-align: right;
    width: 1px;
    white-space: nowrap;
}
table .c{
    text-align: center;
    width: 1px;
    white-space: nowrap;
}

table .rf{
    text-align: right;
    white-space: nowrap;
}

dialog {
    border: none;
    box-shadow: 0 0 18px -5px rgba(0,0,0,.5);
    outline: none;
}

ol.breadcrumbs {
    display: flex;
    gap: 4px;
    list-style-type: none;
    margin: 0 0 24px 0;
    padding: 0;
}
ol.breadcrumbs li {
    color: black;
    display: inline-block;
    font-weight: bold;
}
ol.breadcrumbs li:has(a) {
    color: var(--color-fs-world);
}
ol.breadcrumbs li:not(:last-child)::after {
    color: var(--color-fs-world);
    content: "❯";
    font-weight: normal;
    margin-left: 4px;
}