:root {

    --wmg-white: #e6e8ea;
    --wmg-pale-grey: #d9dde0;
    --wmg-grey: #818181;
    --wmg-dark-grey: #282828;
    --wmg-red: #e32619;
    --wmg-red-darker: #de0905;
    --wmg-gold: #fbb034;
    --wmg-blue: #009ddc;
    --wmg-orange: #f47920;
    --wmg-dark-blue: #17427f;
    --wmg-green: #c1d82f;
    --wmg-black: #1d1d1d;

    --research-gold: #fbb034;

    --space-05:0.5rem;
    --space-1:1rem;
    --space-2:2rem;
    --space-3:3rem;
}

/*--w-cmp-button-color: #fff;
--w-cmp-button-background: #be531c;
--w-cmp-button-border: #a84919;*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    background-color: #ffffff;
    color: var(--wmg-black);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

button, input, textarea, select {
    font: inherit;
}

h1 {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.2rem;
}

h2 {
    margin-bottom: 1.2rem;
    line-height: 1.2;
    font-size: 2rem;
}

.tool-main-title {

}

.tool-sub-title {

}

.tool-app-card {

}

.tool-text-box-title {

}

.tool-text-box-sub-title {

}


.py-05 {
    padding-block: var(--space-05);
}

.py-1 {
    padding-block: var(--space-1);
}

.py-2 {
    padding-block: var(--space-2);
}

.py-3 {
    padding-block: var(--space-3);
}

.pt-1 {
    padding-top: var(--space-1);
}

.pt-2 {
    padding-top: var(--space-2);
}

.pb-1 {
    padding-bottom: var(--space-1);
}

.pb-2 {
    padding-bottom: var(--space-2);
}

.mgy-05 {
    margin-block: var(--space-05);
}

.mgy-1 {
    margin-block: var(--space-1);
}

.mgy-2 {
    margin-block: var(--space-2);
}

.mgy-20 {
    margin-block: 20px;
}

.mgt-1 {
    margin-top: var(--space-1);
}

.mgt-2 {
    margin-top: var(--space-2);
}

.mgb-1 {
    margin-bottom: var(--space-1);
}

.mgb-2 {
    margin-bottom: var(--space-2);
}

.header-container{
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem 0 1rem;
    display:flex;
    align-items:flex-end;
    gap: 2.5rem;
    min-height:80px;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}
.logo-divider {
    width: 1px;
    height: 58px;
    background-color: var(--wmg-grey);
    flex-shrink: 0;
}

.wmg-logo {
    display: block;
    width: clamp(200px,30vw,450px);
    height:auto;
}

.wmg-footer-widget {
    display: block;
    width: clamp(150px,20vw,300px);
    height:auto;
}

.wmg-logo-link {
    display: flex;
}

/* Navigation */
.menu-toggle{
    display:none;
}

.nav-menu{
    display:flex;
    list-style:none;
    gap:2rem;
}

.nav-menu>li{
    position:relative;
}

.nav-menu a{
    display:block;
    color: var(--wmg-black);
    text-decoration:underline;
    text-decoration-color: lightgray;
    text-underline-offset: 0.8rem;
    text-decoration-thickness: 7px;
    padding:1rem 0;
}

.nav-menu>li>a:hover {
    text-decoration-color: var(--research-gold);
}

.nav-menu>li>a.active {
    text-decoration-color: var(--research-gold);
}

/* Dropdown parent */
.dropdown{
    position:relative;
}

/* Dropdown menu */
.dropdown-menu{
    display:none;
    position:absolute;
    top:100%;
    left:0;
    min-width:220px;
    background:#282828;
    list-style:none;
    box-shadow:0 4px 10px rgba(0,0,0,.1);
    z-index:100;
    padding:.5rem 0 1rem;
}

/* Dropdown links */
.dropdown-menu li a{
    padding:.25rem 1rem;
    color: #fff;
    text-decoration: none;
}

/* Hover effect */
.dropdown-menu li a:hover{
    background:#282828;
}

/* Show menu */
.dropdown:hover .dropdown-menu{
    display:block;
}

.wmg-nav-marker {
    padding:.25rem 1rem;
    text-decoration: none;
}

.wmg-triangle-small svg {
    width:10px;
    height:15px;
    display:block;
}

.wmg-triangle-big {
    margin-bottom: 15px;
}

.wmg-triangle-big svg {
    width:14px;
    height:19px;
    display:block;
}

.hero-top {
    width:100%;
    height:400px;
    overflow:hidden;
    position: relative;
}

.hero-top img {
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.hero-top.border-bottom {
    border-bottom-width: 16px;
    border-bottom-style: solid;
}

.hero-top .hero-top-content {
    position: absolute;
    left: 0;
    top: 0;
    padding: 10px;
    background: rgba(0, 0, 0, .8);
    width: 444px;
    color: #fff;
    height: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
}

.hero-top .hero-top-content::before {
    content: "";
    width: 2px;
    height: 100%;
    transform: rotate(-25deg);
    background: #fff;
    position: absolute;
    left: 97px;
    bottom: 81px;
    transform-origin: bottom right;
    z-index: 2;
}

.hero-top .hero-top-content::after {
    content: "";
    width: 305px;
    height: 2px;
    background: #fff;
    position: absolute;
    left: 97px;
    bottom: 80px;
    z-index: 2;
}

.hero-top .hero-top-overlay {
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    height: 100%;
    width: 97px;
    z-index: 1;
}

.hero-top .hero-top-overlay::after {
    position: absolute;
    content: "";
    background: #000;
    height: calc(100% - 77px);
    width: 97px;
    top: 77px;
    left: 0;
}

.hero-top .hero-top-text {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 20px 20px 122px;
    background: transparent;
}

.hero-top .hero-top-text h2 {
    font-size: 2.6rem;
    font-family: "Lato", sans-serif;
    font-weight: 300;
    line-height: 2.7rem;
    margin: 5px 0 30px;
    color: #ffffff;
}

.floating-nav {
    position: fixed;
    left: 20px;
    top: 50%;

    transform: translateY(-50%);

    z-index: 1000;
}

#introduction {
    margin: 3rem 0;
    padding: 0 0.8rem;
}

#introduction h2 {
    font-weight: 500;
}

.tool-introduction p {
    margin: 0 0 14px;
    color: var(--wmg-black);
    font-size: 16px;
    line-height: 1.65;
}

.floating-nav a {
    display: block;
    padding: 1rem;
    width: 180px;
    margin: 4px 0;
    text-decoration: none;
    color: var(--wmg-black);
    background: var(--wmg-gold);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.floating-nav a:hover {
    background: #be531c;
    transform: scale(1.08);
}

.floating-nav a.active {
    background: #be531c;
}

.footer{
    width:100%;
    background:#111;
    color:white;
    margin-top:1.8rem;
}

.footer-container{
    max-width:1400px;
    margin:0 auto;
    padding:3rem 1rem;
}

.footer-grid-container {
    display:grid;
    grid-template-columns: repeat(3,1fr);
    gap:5rem;
    padding: 2rem 0;
}

.footer-column h3 {
    margin-bottom:0.8rem;
    font-size:1.3rem;
    font-weight: 500;
}

.footer-column ul {
    list-style:none;
}

.footer-column li{
    margin-bottom:.75rem;
}

.footer-column a{
    color:#ddd;
    text-decoration:none;
    transition:.3s;
}

.footer a{
    font-size: 1rem;
    text-decoration:none;
}

.footer-column > a {
    display: inline-block;
}

.footer-column-border-top {
    border-top-width: 5px;
    border-top-style: solid;
    padding: 1rem 0;
}

.footer-column-widget {
    padding: 1rem 0;
}

.footer-grid-column-second {
    justify-self: center;
    align-self: end;
}

.footer-grid-column-third {
    justify-self: right;
    align-self: end;
}


.footer-bottom{
    border-top:1px solid white;
    text-align:right;
    padding:1rem 0;
    font-size:.8rem;
}

.border-wmg-gold {
    border-color: #fbb034;
}

.wmg-border-top-8px {
    border-top-width: 8px;
    border-top-style: solid;
}

.bg-wmg-white {
    background-color: #e6e8ea;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    padding: .5rem;
}

.wmg-align-text-center {
    text-align: center;
}

h2.app-main-title {
    font-weight: 400;
}

.documentation-section {
    width: 100%;
    max-width: 100%;
    margin-top: 34px;
    border: 1px solid var(--wmg-black);
    padding: 24px 28px 28px;
    box-shadow:
            0 12px 24px rgba(23, 32, 51, 0.07),
            inset 0 2px 0 #ffffff,
            inset 0 -6px 12px rgba(0,0,0,0.045);
    box-sizing: border-box;
}

.documentation-section h2 {
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--wmg-black);
    color: var(--wmg-black);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.documentation-layout {
    display: grid;
    grid-template-columns: minmax(240px, 310px) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.doc-tabs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.doc-tab {
    width: 100%;
    border: 1px solid #dddddd;
    background: #dddddd;
    color: var(--wmg-black);
    padding: 12px 14px;
    text-align: left;
    font-size: 15px;
    font-weight: 650;
    cursor: pointer;
    transition: 0.18s ease;
}

.doc-tab:hover {
    transform: translateY(-1px);
    background: #ffffff;
}

.doc-tab.active {
    background: #ffffff;
}

.doc-panels {
    min-width: 0;
}

.doc-panel {
    display: none;
    border: 1px solid #dddddd;
    padding: 22px 24px;
    min-height: 360px;
}

.doc-panel.active {
    display: block;
}

.doc-panel h3 {
    margin: 0 0 16px;
    color: var(--wmg-black);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.035em;
}

.doc-panel h4 {
    margin: 20px 0 8px;
    color: var(--wmg-black);
    font-size: 17px;
    font-weight: 750;
}

.doc-panel p {
    margin: 0 0 14px;
    color: var(--wmg-black);
    font-size: 16px;
    line-height: 1.65;
}

.doc-panel ul {
    margin: 8px 0 14px 22px;
    padding: 0;
}

.doc-panel li {
    margin-bottom: 7px;
    font-size: 16px;
    line-height: 1.45;
}

.doc-equation {
    display: inline-block;
    margin: 6px 0 14px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #eef8fc;
    border: 1px solid #b9dce9;
    color: #004b68;
    font-size: 20px;
    font-weight: 700;
}

.doc-inline-eq {
    color: var(--wmg-black);
    font-weight: 650;
}

.doc-reference {
    color: var(--wmg-black);
    font-size: 14px !important;
}

.doc-references {
    margin-top: 26px;
    padding-top: 12px;
    border-top: 1px solid #d9e2ea;
    color: #6f7f91;
    font-size: 13px;
    line-height: 1.5;
}

.doc-references h4 {
    margin: 0 0 6px;
    color: #5f7083;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.doc-references p {
    margin: 0 0 6px;
    color: var(--wmg-black);
    font-size: 13px;
    line-height: 1.5;
}

.doc-references p:last-child {
    margin-bottom: 0;
}

.doc-references em {
    color: var(--wmg-black);
}

.doc-figure {
    margin: 16px 0 20px;
    padding: 14px;
    border: 1px solid #d4e0ea;
    /*border-radius: 12px;*/
    background: #ffffff;
    box-shadow:
            0 8px 18px rgba(23, 32, 51, 0.05),
            inset 0 1px 0 #ffffff;
    text-align: center;
}

.doc-figure img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    /*object-fit: contain;*/
}

.doc-figure figcaption {
    margin-top: 8px;
    color: var(--wmg-black);
    font-size: 13px;
    line-height: 1.4;
}

.doc-equation-note {
    margin: 12px 0 6px;
    color: #0b3b73;
    font-weight: 700;
    font-size: 16px;
}

.doc-figure figcaption strong {
    color: #0a1d36;
    font-weight: 700;
}

.doc-equation-block {
    display: block;
    margin: 14px 0 18px;
    padding: 14px 18px;
    border: 1px solid #dddddd;
    color: var(--wmg-black);
    overflow-x: auto;
}

.doc-equation-block mjx-container {
    margin: 0 !important;
    font-size: 116% !important;
}

.modulus-equation-block {
    display: block;
    margin: 0 0 12px;
    padding: 10px 12px;
    /*border-radius: 8px;*/
    background: #f8fbff;
    border: 1px solid #cfe0ef;
    color: #0a1d36;
    overflow-x: auto;
    text-align: center;
}

.modulus-equation-block mjx-container {
    margin: 0 !important;
    font-size: 100% !important;
}

.doc-equation-block span {
    display: block;
    font-family: "Cambria Math", "STIX Two Math", "Times New Roman", serif;
    font-size: 20px;
    line-height: 1.65;
    text-align: center;
    white-space: normal;
}

.documentation-toggle {
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--wmg-black);
    background: transparent;
    color: var(--wmg-black);
    padding: 0 0 12px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.03em;
    cursor: pointer;
    text-align: left;
}

.documentation-toggle-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--wmg-black);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
    box-shadow: 0 8px 14px rgba(15, 111, 150, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.documentation-section:not(.collapsed) .documentation-layout {
    margin-top: 18px;
}

