/* =========================================================
   Imports
   ========================================================= */
@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Neuton:ital,wght@0,200;0,300;0,400;0,700;0,800;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400..700;1,400..700&display=swap');

/* =========================================================
   CSS variables
   ========================================================= */
:root {
    --main-color: #0077ff;
    --secondary-color: #7f51dd;
    --text-color: #000;
    --text-light: #777;
    --bg: #fff;
    --bg-light: #ddd;
    --bg-lighter: #eee;
    --bg-lighterer: #f9f9f9;
    --bg-dark: #bbb;
    --font-primary: "Lato", sans-serif;
    --font-secondary: "Libre Baskerville", serif;
    /*--font-secondary: "Cormorant Upright", serif;*/
    --border-radius: 5px;
    --border-radius-big: 10px;
    --border-radius-bigger: 20px;
    --menu-height: 115px;
    --menu-width: 1100px;
}

@media (max-width: 1100px) {
    :root {
        --menu-height: 312px;
    }
}

/* =========================================================
   Reset and base styles
   ========================================================= */
html,
body {
    font-family: var(--font-primary);
    font-weight: normal;
    font-size: 13pt;
    line-height: 18pt;
    margin: 0;
    padding: 0;
    background-color: var(--bg);
    color: var(--text-color);
    height: 100%;
    overscroll-behavior-y: none;
    -webkit-font-smoothing: antialiased;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

* {
    /*z-index: 1;*/
}

h1:last-child,
h2:last-child,
h3:last-child,
h4:last-child,
h5:last-child,
h6:last-child,
p:last-child,
ul:last-child,
ol:last-child,
blockquote:last-child,
pre:last-child {
    margin-bottom: 0;
}

h1:first-child,
h2:first-child,
h3:first-child,
h4:first-child,
h5:first-child,
h6:first-child,
p:first-child,
ul:first-child,
ol:first-child,
blockquote:first-child,
pre:first-child {
    margin-top: 0;
}

img {
    vertical-align: middle;
}

h1 {
    font-size: 1.6em;
    margin: 0.2em 0 0 0;
    font-weight: 800;
}

h2 {
    font-size: 1.3em;
    margin: 1.2em 0 0.8em 0;
    text-align: left;
    text-transform: capitalize;
    background-color: var(--text-color);
    color: var(--bg);
    width: fit-content;
    border-radius: var(--border-radius-big);
    padding: 0.3em 0.4em;
    line-height: 1em;
    font-weight: 700;
}

h3 {
    font-size: 1.0em;
    margin: 0.9em 0 0 0;
    background-color: var(--text-light);
    color: var(--bg);
    width: fit-content;
    padding: 0.3em 0.4em;
    border-radius: var(--border-radius);
    /*font-family: var(--font-secondary);*/
    /*font-style: italic;*/
    /*font-weight: 800;*/
    font-weight: 700;
}

h4 {
    width: fit-content;
    margin-top: -0.5em;
    /*margin-bottom: 1.5em;*/
    color: var(--text-light);
    background-color: var(--bg-light);
    border-radius: var(--border-radius-big);
    padding: 4px 7px;
    font-size: 1.0em;
    font-style: italic;
    font-weight: 600;
    line-height: 1.1em;
}

h5 {
    margin: 1.8em 0 0 0;
    font-size: 1.05em;
    font-weight: 800;
}

h2,
h3,
h4,
h5 {
    letter-spacing: -0.1pt;
}

a {
    transition: transform 0.1s ease, background-color 0.1ms linear;
    background: none;
    color: var(--main-color);
    text-decoration: underline;
    text-underline-offset: 0.2rem;
    border-radius: var(--border-radius);
    display: inline-block;
    font-weight: normal;
    padding: 0 5px 2px 5px;
    margin: 0 2px;
}

a:hover {
    transform: scale(1.05);
    text-decoration: none;
    color: var(--bg);
    background-color: var(--main-color);
}

a:has(img):hover {
    transform: scale(1.03);
    color: inherit;
    background: none;
}

img {
    max-width: 100%;
}

ul {
    padding-left: 12px;
}

ul li {
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 10px;
    line-height: 16pt;
    text-align: left;
    /*padding: 5px 0px 5px 10px;*/
}

li {
    list-style-type: "⨳";
}

li::marker {
    content: "⨳";
    font-weight: 400;
}

/* =========================================================
   Components - tables
   ========================================================= */
table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    border: none;
}

thead th {
    background-color: var(--bg-lighter);
    color: var(--text-color);
    padding: 8px 12px;
    text-align: left;
    border-bottom: 2px solid var(--text-color);
    font-weight: 600;
}

thead th:first-child {
    border-top-left-radius: 8px;
}

thead th:last-child {
    border-top-right-radius: 8px;
}

tbody tr:nth-child(odd) {
    background-color: var(--bg);
}

tbody tr:nth-child(even) {
    background-color: var(--bg-lighterer);
}

tbody td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--bg-light);
}

tbody tr:last-child td {
    /*border-bottom: none;*/
}

tbody tr:hover {
    background-color: var(--bg-lighter);
}

table.key-value th:first-child,
table.key-value td:first-child {
    text-align: left;
}

table.key-value tbody tr td:not(:first-child),
table.key-value thead tr th:not(:first-child) {
    text-align: right;
}

/* =========================================================
   Componentts - grid
   ========================================================= */
.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 30px 30px;
    /*margin: 0 -15px;*/
    /*padding: 0 15px;*/
    box-sizing: border-box;
}

.col-6 {
    grid-column: span 6;
}

@media (max-width: 800px) {
    .grid {
        grid-template-columns: 1fr;
        gap: 20px;
        /* smaller gaps for mobile */
        /*margin: 0 -10px;*/
        /*padding: 0 10px;*/
    }

    [class*="col-"] {
        grid-column: span 1 !important;
    }
}

/* =========================================================
   Components - stacks
   ========================================================= */
.stack {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.stack-small {
    gap: 4px;
}

.stack-big {
    gap: 20px;
}

.stack-bigger {
    gap: 40px;
}

.stack-medium {
    gap: 24px;
}

/* space above a call-to-action button */
.stack-cta {
    gap: 28px;
}

/* several call-to-action buttons side by side (wrap on narrow screens) */
.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* secondary button: outlined, solid on hover */
a.button.outline {
    background-color: transparent;
    color: var(--text-color);
    box-shadow: inset 0 0 0 2px var(--text-color);
}

a.button.outline:hover {
    background-color: var(--hover-color);
    color: var(--bg);
    box-shadow: inset 0 0 0 2px var(--hover-color), 0 10px 24px -8px rgba(0, 0, 0, 0.4);
}

/* "Try MCFT Folio" button: hand-tap icon instead of the arrow */
a.button.try::after {
    width: 1.15em;
    height: 1.15em;
    -webkit-mask: var(--icon-hand-tap) center / contain no-repeat;
    mask: var(--icon-hand-tap) center / contain no-repeat;
}

#home .intro p:has(> a.button:only-child) {
    margin-top: 28px;
}

.stack-huge {
    gap: 75px;
}

.stack-row {
    flex-direction: row;
}

.stack-center {
    align-items: center;
}

.stack-start {
    align-items: flex-start;
}

.stack-wrap {
    flex-wrap: wrap;
}

.stack-justify-end {
    justify-content: flex-end;
}

.stack-equal>* {
    flex: 1 1 0;
    min-width: 0;
    /* to prevent overflow issues */
}

@media (max-width: 800px) {
    .stack-responsive {
        flex-direction: column;
        /* behaves like stack-column */
        align-items: stretch;
        /* make children fill width */
    }
}

/* =========================================================
   Components - forms
   ========================================================= */
label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: bold;
    color: var(--text-color);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea {
    font-family: var(--font-primary);
    padding: 0.5em 0.6em;
    border: 2px solid var(--bg-light);
    border-radius: var(--border-radius);
    box-sizing: border-box;
    font-size: 1em;
    background-color: var(--bg);
    transition: border-color 0.3s, box-shadow 0.2s;
    max-height: 2.4em;
    /*margin-bottom: 1em;*/
}

input:focus,
textarea:focus,
select:focus,
.focus .ts-control {
    border: 2px solid var(--bg-light);
    box-shadow: 0 0 12px 2px var(--bg-light);
    outline: none;
    transition: border-color 0.3s, box-shadow 0.2s;
}

.ts-control {
    border: 2px solid var(--bg-light);
}

.ts-dropdown-content {
    max-height: 350px;
    /* limit max height */
    overflow-y: auto;
    /* enable vertical scroll if content overflows */
}

.tom-select {
    display: none;
}

/* =========================================================
   Components - side menu
   ========================================================= */
#side-menus {
    position: fixed;
    /*top: 155px;*/
    left: max(20px, (100vw - 1200px) / 2 + -200px);
    max-width: 350px;
    font-family: Arial, sans-serif;
    z-index: 9999;

    opacity: 0;
    pointer-events: none;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    transition: opacity 200ms ease, transform 200ms ease;
}

#side-menus.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
}

#side-menu-opener {
    position: fixed;
    left: max(20px, (100vw - 1200px) / 2 + -200px);
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;

    opacity: 1;
    pointer-events: auto;
    transition: opacity 200ms ease;
}

#side-menu-opener .button {
    justify-content: center;
    padding: 0.55em 0.7em; /* even padding: the icon is centred in the collapsed button */
}

#side-menus.is-visible+#side-menu-opener,
#side-menus.is-visible~#side-menu-opener {
    opacity: 0;
    pointer-events: none;
}

#side-menus li::marker {
    content: none;
}

#side-menus a.button {
    font-size: 0.9em;
    font-weight: 400;
    padding: 0.3em 0.8em;
    text-transform: capitalize;
    border-radius: var(--border-radius-big);
}

#side-menus a.button::before,
#side-menus a.button::after {
    content: none;
}

#side-menus a.button i {
    font-size: 0.78em; /* smaller icons */
}

#side-menus a.active {
    background-color: var(--main-color);
}

#side-menus a.push {
    background-color: var(--secondary-color);
}

#side-menus a.push.active {
    background-color: var(--main-color);
}

@media (max-width: 1100px) {
    #side-menus {
        display: none;
    }

    #side-menu-opener {
        display: none;
    }
}

/* =========================================================
   Components - button
   ========================================================= */
:root {
    --hover-color: #000;            /* button hover: solid black */
    --hover-color-on-dark: #4b4b4b; /* same, on the black menu bar */
    --icon-calendar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM72,48v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24V80H48V48ZM208,208H48V96H208V208Zm-38.34-85.66a8,8,0,0,1,0,11.32l-48,48a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L116,164.69l42.34-42.35A8,8,0,0,1,169.66,122.34Z'/%3E%3C/svg%3E");
    --icon-hand-tap: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M56,76a60,60,0,0,1,120,0,8,8,0,0,1-16,0,44,44,0,0,0-88,0,8,8,0,1,1-16,0Zm140,44a27.9,27.9,0,0,0-13.36,3.39A28,28,0,0,0,144,106.7V76a28,28,0,0,0-56,0v80l-3.82-6.13a28,28,0,0,0-48.41,28.17l29.32,50A8,8,0,1,0,78.89,220L49.6,170a12,12,0,1,1,20.78-12l.14.23,18.68,30A8,8,0,0,0,104,184V76a12,12,0,0,1,24,0v68a8,8,0,1,0,16,0V132a12,12,0,0,1,24,0v20a8,8,0,0,0,16,0v-4a12,12,0,0,1,24,0v36c0,21.61-7.1,36.3-7.16,36.42a8,8,0,0,0,3.58,10.73A7.9,7.9,0,0,0,208,232a8,8,0,0,0,7.16-4.42c.37-.73,8.85-18,8.85-43.58V148A28,28,0,0,0,196,120Z'/%3E%3C/svg%3E");
    --icon-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Buttons (v2): pill shape, drawn arrow icon, soft coloured lift on hover, visible keyboard focus */
a.button {
    display: inline-flex;
    align-items: center;
    gap: 0.55em;
    padding: 0.65em 1.2em 0.7em 1.3em;
    border-radius: 999px;
    background-color: var(--text-color);
    color: var(--bg);
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

/* arrow: an SVG mask, so it takes the text colour and can slide on hover */
a.button::after {
    content: "";
    flex: 0 0 auto;
    width: 1.05em;
    height: 1.05em;
    background-color: currentColor;
    -webkit-mask: var(--icon-arrow) center / contain no-repeat;
    mask: var(--icon-arrow) center / contain no-repeat;
    transition: transform 0.25s ease;
}

a.button::before {
    content: none;
}

a.button:hover {
    background-color: var(--hover-color);
    color: var(--bg);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.4);
}

a.button:hover::after {
    transform: translateX(3px);
}

a.button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px -2px rgba(0, 0, 0, 0.35);
}

a.button:focus-visible {
    outline: 2px solid var(--main-color);
    outline-offset: 3px;
}

a.button2:hover {
    background-color: var(--secondary-color);
    color: var(--bg);
    box-shadow: 0 10px 24px -8px rgba(127, 81, 221, 0.6);
}

a.button.small {
    font-size: 0.75em;
    padding: 0.4em 0.95em 0.45em 1.05em;
    gap: 0.45em;
}

a.button.naked::after {
    content: none; /* menu buttons: icon + label, no arrow */
}

a.button i {
    margin-right: 0; /* the flex gap spaces the icon */
}

button,
input[type="submit"] {
    transition: transform 0.1s ease, background-color 0.3s;
    background-color: var(--text-color);
    color: white;
    padding: 0.7em 1.3em;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1em;
    cursor: pointer;
    text-transform: capitalize;
}

button:hover:not(.ag-chart button),
input[type="submit"]:hover {
    transform: scale(1.05);
    background-color: var(--main-color);
}

button.small,
.button.small {
    font-size: 0.8em;
    padding: 0.3em 0.6em;
}

button.active {
    background-color: var(--main-color);
}

/* =========================================================
   Components - listed chips
   ========================================================= */
.chips ul {
    list-style: none;
}

.chips li {
    background-color: var(--bg-light);
    border-radius: 20px;
    display: inline-block;
    padding: 3px 14px;
    font-size: 0.8em;
    color: var(--text-light);
    position: relative;
    margin: 6px 6px;
    text-transform: capitalize;
}

.chips li::before {
    content: "➞";
    margin-right: 6px;
}

/* =========================================================
   Components - push folio
   ========================================================= */
.push-folio {
    background-size: auto 100%;
    background-repeat: no-repeat;
    background-position: center center;
    display: flex;
    justify-content: center;
    align-items: center;
    /*margin: 20px 0;*/
    min-height: 500px;
    background-image: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7)), url("../img/splash4.jpg?ck=300");
}

/* same overlay opacity as the home splash (images swapped with home) */
#folio .push-folio img {
    width: 520px;
    max-width: 85%;
}

#folio .push-folio {
    background-image: none; /* ribbon background below, like the other heroes */
}

.push-folio a {
    margin: -20px 30px 0 30px;
    display: flex;
    gap: 10px;
    color: var(--text-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s cubic-bezier(.34, 1.56, .64, 1);
}

.push-folio a:hover {
    transform: scale(1.05);
    background: none;
}

.push-folio a .button {
    display: inline-flex;
    align-items: center;
    gap: 0.55em;
    border-radius: 999px;
    font-size: 20px;
    font-weight: 600;
    padding: 0.65em 1.3em 0.7em 1.4em;
    background-color: var(--text-color);
    color: var(--bg);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

/* hand-tap icon on the main (trial) button, calendar icon on the secondary (demo) one */
.push-folio a .button::after {
    content: "";
    width: 1.1em;
    height: 1.1em;
    background-color: currentColor;
    -webkit-mask: var(--icon-hand-tap) center / contain no-repeat;
    mask: var(--icon-hand-tap) center / contain no-repeat;
}

.push-folio a.push-secondary .button::after {
    -webkit-mask: var(--icon-calendar) center / contain no-repeat;
    mask: var(--icon-calendar) center / contain no-repeat;
}

.push-folio a:hover .button {
    background-color: var(--hover-color);
    box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.4);
}

.push-folio img {
    width: 375px;
}

.push-folio .verbatim {
    scale: 0.9;
    width: 90%;
}

@media screen and (max-width: 800px) {
    
}

/* =========================================================
   Components - charts overrides
   ========================================================= */
.ag-charts-tooltip-heading {
    display: none;
}

.ag-charts-tooltip {
    --tooltip-row-spacing: 4px;
}

/* =========================================================
   Components - splash
   ========================================================= */
#splash {
    background-image: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 1)), url("../img/splash6.jpg?ck=300");
    background-size: auto 100%;
    background-repeat: no-repeat;
    background-position: center center;
    min-height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    position: relative;
    padding: 0 20px;
}

#splash .button {
    font-size: 1.2em;
}

#home #splash {
    /*min-height: 500px;*/
    background-image: none;
}

#error #splash {
    /*min-height: 500px;*/
    background-image: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 1)), url("../img/splash4.jpg?ck=300");
}

#news #splash {
    background-image: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 1)), url("../img/splash6.jpg?ck=300");
}

@media screen and (max-width: 800px) {
    #splash {
        min-height: 300px;
    }
}

/* home: compact cards (icon + title) */
#home .focus-small .icon {
    font-size: 1.8em;
}

/* home hero: full-width splash starting at the very top of the page (behind the floating menu).
   The text keeps the standard .intro title/subtitle styles, in the same 800px column as the sections below. */
#home #splash.hero-full {
    position: relative;
    margin: calc(-1 * var(--menu-height)) -20px 0 -20px;
    /* text starts at the same place as the intro of the other pages */
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: calc(var(--menu-height) + 100px) 20px 120px 20px;
    box-sizing: border-box; /* min-height includes the padding */
    min-height: max(760px, 94vh);
    isolation: isolate;
    overflow: hidden;
}

@media (max-width: 1100px) {
    #home #splash.hero-full {
        padding-bottom: 80px;
    }
}

#home .hero-inner {
    width: 100%;
    max-width: 800px;
}

/* down arrow anchored near the bottom of the hero */
#home #splash .arrow {
    position: absolute;
    left: 0;
    right: 0;
    bottom: max(30px, 12vh);
}

@media (max-width: 1100px) {
    #home #splash .arrow {
        bottom: 20px;
    }
}

#home .hero-logo {
    display: block;
    height: 100px;
    width: auto;
    max-width: none; /* the global img max-width:100% squeezed it */
    flex: none; /* never shrink in the flex/grid parent: keeps the aspect ratio */
    object-fit: contain;
    align-self: flex-start;
    /* the image has built-in margins: pull it in (left) and close the gap to the title (bottom) */
    margin: -14px 0 -22px -18px;
}

#home .hero-text {
    width: 100%;
    padding: 0;
    margin: 0;
}

#home .hero-text h2 {
    margin-top: 0;
}

.intro-left {
    margin: 0;
    width: 100%;
}

#home .focus.focus-small .details {
    min-height: 0;
}

#home .focus-small .stack-row .icon {
    flex: 0 0 2em;
    margin-top: 0.15em;
    text-align: center;
}

#home .focus-small h3 {
    margin-top: 0;
    margin-bottom: 0;
}

#home .focus-small .details h3 + p {
    margin-top: 0.3em;
}

/* =========================================================
   Components - title, verbatim
   ========================================================= */
.verbatim {
    width: 80%;
    margin: 10px auto;
    background-color: transparent;
    scale: 1;
}

.verbatim strong {
    background: linear-gradient(45deg, rgba(255, 0, 255, 0.3), rgba(0, 255, 255, 0.3), rgba(255, 255, 0, 0.3), rgba(255, 0, 255, 0.3));
    display: inline;
    /*background-size: 400% 400%;*/
    /*animation: backgroundStrongAnimate 20s ease infinite;*/
    border-radius: var(--border-radius-big);
    padding: 0 10px;
    font-weight: 600;
}

@keyframes backgroundStrongAnimate {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

a.verbatim {
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
}

a.verbatim:hover {
    background-color: transparent;
    transform: scale(1.02);
}

a.verbatim:hover .text {
    background-color: var(--text-color);
    color: var(--bg);
}

.verbatim .text p {
    margin: 0;
}

.verbatim .text {
    transition: all 0.3s ease;
    /*background-color: var(--bg);*/
    backdrop-filter: blur(7px);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.15);
    color: var(--text-color);
    border-radius: var(--border-radius-bigger);
    border: 6px solid transparent;
    padding: 35px 30px;
    line-height: 1.1em;
    font-family: var(--font-secondary);
    font-style: italic;
    font-size: 2.35em;
    font-weight: 600;
    letter-spacing: -0.2pt;
    text-align: center;
}

.verbatim .quotes {
    z-index: 1;
    border-radius: var(--border-radius-big);
    border: 10px solid var(--text-color);
    background: url("../img/quotes.png?ck=300");
    background-size: cover;
    background-color: var(--text-color);
    position: relative;
    display: block;
    /*left:-10px;*/
    margin-top: -50px;
    top: 50px;
    left: -30px;
    width: 50px;
    height: 50px;
    /*margin-bottom: 10px;*/
}

.verbatim .logo {
    width: 100%;
    position: absolute;
    margin-top: 5px;
    text-align: right;
}

.verbatim .logo img {
    width: 100px;
}

@media screen and (max-width: 800px) {
    .title {
        font-size: 5em;
    }

    .verbatim {
        width: 100%;
        scale: 0.9;
        /*margin:20px auto;*/
    }

    .verbatim .text {
        padding: 20px 20px;
        font-size: 1.8em;
    }

    .verbatim .quotes {
        top: 35px;
        width: 35px;
        height: 35px;
    }
}

@media screen and (max-width: 600px) {
    .title {
        font-size: 4em;
    }
}

/* =========================================================
   Components - intro
   ========================================================= */
.intro {
    margin: 0 auto;
    font-size: 1.15em;
    position: relative;
    /* optional, good for pseudo-element positioning */
}

.intro-first {
    margin-top: 30px;
}

.intro-highlithed {
    background: none;
    padding: 40px 50px; /* text stays in the same 800px column as the page text */
    box-shadow: none;
    border-radius: 0;
}

.intro h2:first-child {
    margin-top: 0em;
}

.intro h2 {
    margin: 1.4em 0 0.5em 0;
    background-color: transparent;
    color: var(--text-color);
    font-weight: 900;
    font-family: var(--font-secondary);
    font-style: italic;
    letter-spacing: -0.2pt;
    font-size: 2em; /* section titles; page heroes keep 2.3em (see .intro-first h2 below) */
    padding: 0;
    border-radius: 0;
}

.intro h3 {
    background-color: transparent;
    color: var(--text-color);
    margin-top: -0.7em;
    margin-bottom: 0.8em;
    padding: 0;
    font-size: 1.55em;
    font-weight: 300;
    line-height: 1.05;
    text-align: left; /* pages justify their text, which stretches wrapped subtitles */
}

/* page heroes only: subtitle in the title's typeface and size, black, regular weight */
.intro-first h2,
#home .hero-text h2 {
    font-size: 2.7em;
    margin-bottom: 0;
}

/* hero subtitles read as a continuation of the title: no starting capital */
.intro-first h3::first-letter,
#home .hero-text h3::first-letter {
    text-transform: lowercase;
}

.intro-first h3,
#home .hero-text h3 {
    font-family: var(--font-secondary);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.03em;
    text-align: left; /* pages justify their text, which stretches long subtitles */
    color: var(--text-color);
    margin-top: 0.05em;
    margin-bottom: 0.6em;
    font-size: 2.35em; /* a little smaller than the 2.7em hero title */
    line-height: 1.05;
}

.intro h3 + p {
    margin-top: 0;
}

.intro em {
    background-color: var(--bg-lighter);
    color: var(--text-color);
    border-radius: var(--border-radius-big);
    padding: 0px 8px 3px 8px;
    font-weight: bold;
    font-style: normal;
}

@media screen and (max-width: 800px) {
    .intro {
        font-size: 1em;
    }

    .intro-highlithed {
        padding: 25px 25px;
    }
}

/* =========================================================
   Layout and structure - header
   ========================================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%; /* full width, from the very top of the page */
    z-index: 99;
    transition: top 0.3s;
}

/* reload / back on a scrolled page: out of sight from the first paint, no slide (class set by main.js) */
html.menu-away header {
    top: -400px;
    transition: none;
}

header .container {
    margin: 0;
    /* the bar is full width; its content sits in a 900px column (same as the page boxes) */
    padding: 10px max(20px, calc((100vw - 900px) / 2));
    color: var(--text-color);
    border-radius: 0;
    background-color: transparent;
    box-shadow: none;
    position: relative;
    isolation: isolate;
    /*border-bottom: 6px solid transparent;*/
    border-image: linear-gradient(90deg, rgba(0, 255, 255, 0.9), rgba(255, 0, 255, 0.9), rgba(255, 255, 0, 0.9));
    border-image-slice: 1;
}

/* transparent at the top of the page; once scrolled (class set by main.js) a black layer fades in
   behind the whole menu, and the text and logo turn light */
header .container::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: #000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

header.is-scrolled .container::before {
    opacity: 1;
    transition: none; /* instant when scrolling down (the menu is hiding); the fade only plays on the way back up */
}

header .logo img {
    transition: filter 0.3s ease;
}

header.is-scrolled .logo img {
    filter: invert(1); /* black logo -> white */
    transition: none;
}

/* going back to the top: the text colours fade in sync with the black layer (no dark text on black) */
header nav li a,
header a.button {
    transition: color 0.3s ease, background-color 0.3s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

/* instant colour swap when scrolling down (the menu is out of sight); the hover lift still animates */
header.is-scrolled nav li a,
header.is-scrolled a.button {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

header.is-scrolled nav li a:hover,
header.is-scrolled a.button:hover {
    transition: color 0.25s ease, background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

header.is-scrolled .container,
header.is-scrolled nav li {
    color: var(--bg);
}

header.is-scrolled nav li a {
    color: var(--bg);
}

header.is-scrolled nav li.current a {
    color: var(--text-color);
    background-color: var(--bg);
}

header.is-scrolled nav li a:hover,
header.is-scrolled nav li.current a:hover {
    color: var(--bg);
    background-color: var(--hover-color-on-dark);
}

header.is-scrolled a.button {
    background-color: var(--bg);
    color: var(--text-color);
}

header.is-scrolled a.button:hover {
    background-color: var(--hover-color-on-dark);
    color: var(--bg);
}

header .logo {
    padding: 10px 0 5px 0;
    display: inline-block;
    margin-right: 22px; /* space between the logo and the first menu link */
    left: -3px;
    top: -1px;
}

header .logo img {
    width: 95px;
    max-width: none; /* the global img max-width:100% let the grid squeeze the logo */
}

header .logo a,
header .logo a:hover {
    padding: 0;
    margin: 0;
    background: none;
}

header .extra {
    float: right;
    vertical-align: middle;
    display: inline-block;
    padding: 17px 0 0; /* centre line level with the logo and the nav links */
}

header .extra a.button {
    display: inline-flex;
    vertical-align: middle;
    margin: 0 4px;
    font-size: 0.8em;
    padding: 0.4em 0.9em 0.45em;
    gap: 0.4em;
}

header nav {
    vertical-align: middle;
    display: inline-block;
    font-weight: 500;
    font-size: 0.9em;
    text-transform: capitalize;
    padding: 0;
}

header nav ul {
    padding: 12px 0;
    margin: 0;
}

header nav li {
    color: var(--text-color);
    display: inline-block;
    padding: 0 3px 0 3px;
    margin: 3px 0;
}

header nav li:last-child {
    border: none;
}

/* menu links: same pill style as the buttons */
header nav li a,
header nav li a:hover {
    display: inline-block;
    text-decoration: none;
    padding: 0.32em 0.85em 0.36em;
    color: var(--text-color);
    border-radius: 999px;
}

header nav li a:hover {
    color: var(--bg);
    background-color: var(--hover-color);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.4);
}

header nav li.current a {
    color: var(--bg);
    background-color: var(--text-color);
    font-weight: 500;
}

header nav li.current a:hover {
    background-color: var(--hover-color);
}

/* trial call to action: outlined pill, filled on hover */
header nav li.trial a {
    color: var(--text-color);
    background-color: transparent;
    box-shadow: inset 0 0 0 1.5px var(--text-color);
    font-weight: 600;
}

header nav li.trial a:hover {
    color: var(--bg);
    background-color: var(--hover-color);
    box-shadow: inset 0 0 0 1.5px var(--hover-color);
}

header.is-scrolled nav li.trial a {
    color: var(--bg);
    background-color: transparent;
    box-shadow: inset 0 0 0 1.5px var(--bg);
}

header.is-scrolled nav li.trial a:hover {
    color: var(--bg);
    background-color: var(--hover-color-on-dark);
    box-shadow: inset 0 0 0 1.5px var(--hover-color-on-dark);
}

header a {
    text-transform: capitalize;
}

header a.button {
    background-color: var(--text-color);
    color: var(--bg);
}

header a.button:hover {
    background-color: var(--hover-color);
    color: var(--bg);
}

header a.button2:hover {
    background-color: var(--secondary-color);
    color: var(--bg);
}

@media screen and (max-width: 1100px) {

    header nav ul {
        padding: 0;
    }

    header .extra {
        display: block;
        float: none;
        margin: 10px 0 5px 0;
        padding: 0;
    }

    header .extra a {
        /*display: block;*/
        margin: 10px 5px;
        font-size: 0.8em;
    }

    header {
        /*padding: 20px;*/
    }

    /* mobile: the logo floats at the top right so the stacked menu starts higher */
    header .logo {
        position: absolute;
        top: 14px;
        right: 14px;
        left: auto;
        margin: 0;
        padding: 0;
        z-index: 1;
    }

    header .container {
        display: block;
        padding: 18px 10px 5px;
    }

    header nav li {
        display: block;
        margin: 4px 0;
    }
}

/* =========================================================
   Layout and structure - footer
   ========================================================= */
footer {
    margin-top: 80px;
    width: 100%;
    padding: 45px 0;
    font-weight: normal;
    font-size: 0.9em;
    background-color: var(--bg-lighter);
}

footer .content {
    max-width: 1000px;
    text-align: center;
    margin: 0 auto;
    color: var(--text-color);
}

footer .stack>div {
    flex: 1;
    padding: 20px;
    text-align: left;
    box-sizing: border-box;
}

footer a {
    padding: 4px 6px;
    margin: 0;
    color: var(--text-color);
    text-decoration: none;
}

footer a:hover {
    color: var(--bg);
    background: var(--text-color);
    padding: 4px 6px;
}

footer a.logo:hover {
    background-color: transparent;
}

footer .logo img {
    width: 100px;
    margin-left: -9px; /* the image has a built-in left margin: align the letters with the text below */
}

footer .section {
    padding: 0 6px;
    color: var(--text-color);
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
    text-transform: capitalize;
}

footer ul {
    padding-left: 0;
    margin-left: 0;
}

footer li {
    display: block;
    list-style: none;
    margin-left: 0;
    padding: 1px 0;
}

/* =========================================================
   Layout and structure - section
   ========================================================= */

section {
    position: relative;
    overflow: visible;
    z-index: 2;
}

/* =========================================================
   Layout and structure - pagination
   ========================================================= */
.pagination a {
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-color);
    padding: 4px 6px;
}

.pagination a:hover {
    background-color: var(--text-color);
    color: var(--bg);
}

.pagination .pagination-current {
    padding: 4px 6px;
}

/* =========================================================
   Layout and structure - layout
   ========================================================= */
.content {
    text-align: justify;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background-color: transparent;
}

.content-narrow {
    max-width: 800px;
}

.content-wide {
    max-width: 1060px;
}

.content-centered {
    text-align: center;
}

.container-base {
    width: 100%;
    background-color: var(--bg);
    padding: 30px 0;
}

@media screen and (max-width: 800px) {

    .content {
        text-align: left;
    }
}

main {
    flex: 1;
    margin-top: var(--menu-height);
    padding: 0 20px;
}

/* =========================================================
   Layout and structure - blocks
   ========================================================= */
.focus {
    position: relative;
    text-align: justify;
}

.focus .icon {
    font-size: 3em;
    color: var(--text-color);
    margin-bottom: -0.1em;
    display: block;
    text-align: left;
}

.focus .icon {
    position: absolute;
    left: -75px;
    top: 0px;
}

.focus-small .icon {
    position: relative;
    left: 0;
    top: 0;
}

.focus h2,
.focus h3 {
    margin-top: 20px;
}

.focus h5+ul {
    margin-top: 4px;
}

.focus h5+p {
    margin-top: 4px;
}

@media screen and (max-width: 800px) {
    

    .focus .icon {
        position: relative;
        top: 0;
        left: 0;
    }
}

/* =========================================================
   Utilities
   ========================================================= */
.debug {
    margin: 0 auto;
    background-color: var(--bg-light);
    padding: 10px;
    position: fixed;
    bottom: 0;
    width: 100%;
    opacity: 0.7;
}

.hidden {
    display: none;
}

.thin {
    font-weight: 300;
}

.positive {
    color: #009C60;
}

.negative {
    color: #e53935;
}

.index-id {
    display: inline-block;
    background-color: var(--bg-light);
    padding: 0.5em 0.5em 0.4em 0.5em;
    border-radius: var(--border-radius);
    font-size: 0.6em;
    line-height: 1;
    font-weight: bold;
    font-family: monospace;
    vertical-align: middle;
}

@media screen and (max-width: 900px) {
    
}

#splash .arrow,
.push-folio .arrow {
    font-size: 2em;
}

.arrow {
    font-size: 1.5em;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
    text-align: center;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.spin {
    display: inline-block;
    animation: spin 1.2s linear infinite;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    border-radius: var(--border-radius-bigger);
    overflow: hidden;
    /*border: 6px solid var(--main-color);*/
    box-shadow: 0 3px 25px rgba(0, 0, 0, 0.3);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    border: 0;
}

/* =========================================================
   Page specific - about us
   ========================================================= */
.portraits {
    max-width: 40%;
    max-height: 120px;
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.25);
    border-radius: var(--border-radius-big);
    /*border-bottom: 10px solid var(--text-color);*/
    /*margin-top: 20px;*/
}

/* =========================================================
   Page specific - indexes
   ========================================================= */
#indexes #screener h2 {
    margin-bottom: 0.2em;
}

#indexes .tag {
    transition: transform 0.1s ease;
    color: var(--text-color);
    background-color: var(--bg-light);
    padding: 0.8em 0.7em;
    border-radius: var(--border-radius);
    cursor: pointer;
    user-select: none;
    line-height: 1;
    vertical-align: middle;
    text-transform: capitalize;
    font-size: 0.9em;
}

#indexes .tag:hover {
    transform: scale(1.05);
    background-color: var(--bg-dark);
}

#indexes .tag.active {
    background-color: var(--text-color);
    color: var(--bg);
}

#indexes .filter {
    font-size: 1em;
}

#indexes .indexes-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .88em;
    table-layout: fixed;
}

#indexes .indexes-table th,
#indexes .indexes-table td {
    padding: 8px 10px;
    /*padding: 0.4em;*/
    border-bottom: 1px solid var(--bg-light);
    vertical-align: middle;
    text-align: left;
}

#indexes .indexes-table tr:last-child th,
#indexes .indexes-table tr:last-child td {
    border-bottom: none;
}

#indexes .indexes-table th {
    position: sticky;
    top: 0;
    cursor: pointer;
    /*background: var(--bg);*/
    z-index: 2;
    box-shadow: inset 0 -3px 0 var(--text-color);
    border-bottom: none;
    padding-top: 0.8em;
    padding-bottom: 1em;
}

#indexes .indexes-table th.num-col,
#indexes .indexes-table td.num-col {
    text-align: right;
    width: 70px;
}

#indexes .indexes-table .details {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    /*transition: opacity 0.3s ease, max-height 0.3s ease;*/
}

#indexes .indexes-table .details-col:hover .details {
    opacity: 1;
    max-height: 500px;
    /* large enough to show content */
    overflow: visible;
}

#indexes .indexes-table .id-col {
    width: 60px;
}

#indexes .indexes-table .details-col .name {
    max-width: 370px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0px 7px;
    /*font-weight: 550;*/
    /*font-size: 0.95em;*/
}

#indexes .indexes-table tbody tr {
    cursor: pointer;
    transition: transform 0.1s ease, background-color 0.3s ease;
    border-radius: var(--border-radius-big);
}

#indexes .indexes-table tbody tr:hover {
    background-color: var(--bg-lighter);
    transform: scale(1.03);
}

#indexes .indexes-table tr:hover .name {
    background-color: var(--text-color);
    color: var(--bg);
    padding: 0px 7px;
    border-radius: 4px;
}

#indexes .indexes-table tr:hover .name:hover {
    /*background-color: var(--main-color);*/
}

#indexes .indexes-table tr:hover .index-id {
    background-color: var(--text-color);
    color: var(--bg);
    /*padding: 0px 6px;*/
    /*border-radius: 4px;*/
}

#indexes .filter input[type="text"] {
    flex: 1 1 auto;
    min-width: 0;
    /* prevent overflow issues */
}

@media (max-width: 1100px) {
    #indexes .indexes-table {
        font-size: 0.7em;
    }
}

@media (max-width: 800px) {

    #indexes .indexes-table th:nth-child(n+3),
    #indexes .indexes-table td:nth-child(n+3) {
        display: none;
    }

    #indexes #view-selector {
        display: none;
    }

    #indexes .indexes-table .id-col {
        max-width: 40px;
    }

    #indexes .indexes-table .details-col .name {
        max-width: 280px;
    }

}

#indexes .results {
    position: relative;
}

#indexes #view-selector-container {
    position: absolute;
    top: 10px;
    right: 0;
}

#indexes #loader {
    margin: 30px auto;
}

/* =========================================================
   Page specific - index
   ========================================================= */
#index table {
    font-size: 0.9em;
}

#index .header {
    /*margin-bottom: 2em;*/
}

#index .name {
    font-size: 2em;
    font-weight: bold;
    padding: 0.3em;
    background-color: var(--text-color);
    color: var(--bg);
    border-radius: var(--border-radius-big);
    line-height: 0.9em;
}

#index .index-id {
    font-size: 0.9em;
    background-color: var(--text-light);
    color: var(--bg);
    border-radius: var(--border-radius-big);
}

#index .description {
    font-size: 0.9em;
    border-radius: var(--border-radius);
}

#index .description p:first-of-type {
    margin-top: 0;
}

#index .description p:last-of-type {
    margin-bottom: 0;
}

#index .tag {
    font-size: 0.9em;
    color: var(--text-color);
    background-color: var(--bg-light);
    padding: 0.4em 0.6em;
    border-radius: var(--border-radius);
    cursor: pointer;
    user-select: none;
    line-height: 1;
    vertical-align: middle;
    text-transform: capitalize;
}

#index table.key-value th:first-child {
    width: 50%;
}

#index .monthly-returns td,
#index .monthly-returns th {
    text-align: right;
}

#index .monthly-returns td:last-of-type {
    font-weight: bold;
}

#index .tag-push {
    border-radius: var(--border-radius);
    background-color: var(--bg-lighter);
    padding: 12px 22px;
    background-size: 350px;
    background-position: calc(100% + 0px) center;
    background-repeat: no-repeat;
}

#index .tag-push h2 {
    position: inherit;
    background-color: transparent;
    color: var(--text-color);
    padding: 0;
    margin: 0.5em 0 0.5em 0;
    font-size: 1.05em;
}

#index .tag-push img {
    /*display: none;*/
    height: 50px;
    margin: 5px;
}

@media (max-width: 800px) {
    #index .tag-push {
        background-image: none !important;
    }
}

@media (max-width: 600px) {

    #index table.monthly-returns th:not(:first-child):not(:last-child),
    #index table.monthly-returns td:not(:first-child):not(:last-child) {
        display: none;
    }
}

#index .documents-links a {
    text-decoration: none;
    display: inline-block;
}

#index .positions table th:last-child,
#index .positions table td:last-child {
    text-align: right;
}

@media (max-width: 600px) {

    /* Hide all columns except the first and last */
    #index #positions-table th:not(:first-child):not(:last-child),
    #index #positions-table td:not(:first-child):not(:last-child) {
        display: none;
    }
}

#index h2 {
    position: sticky;
    top: 20px;
    z-index: 2;
}

#index .intro h2 {
    position: static; /* not sticky, and not shifted by its top offset when the parent is positioned (section icon) */
}

#index nav {
    background-color: transparent;
}

#index .annotations>div {
    color: var(--text-light);
    font-size: 0.8em;
    line-height: 1.1em;
}

/* =========================================================
   Page specific - home
   ========================================================= */
#home .focus h2 {
    background-color: transparent;
    color: var(--text-color);
    font-weight: 800;
    padding: 0;
    margin: 0;
    display: block;
}

#home .focus h3 {
    background-color: transparent;
    color: var(--text-light);
    padding: 0;
    margin: 0;
    margin-bottom: 0.2em;
    display: block;
}

#home .focus p {
    font-size: 0.95em;
}

#home .focus img.icon {
    opacity: 0.2;
    width: 100px;
    margin-bottom: -20px;
    margin-left: -10px;
}

#home .focus .icon {
    opacity: 0.1;
}

#home .focus .details {
    min-height: 200px;
}

@media (max-width: 600px) {
    #home .focus .details {
        min-height: 0px;
    }
}

/* =========================================================
   Page specific - news
   ========================================================= */
#news .post .title,
#news-details .post .title {
    text-shadow: none;
    padding: 0;
    font-family: var(--font-primary);
    margin: 0;
    font-weight: 800;
    font-style: normal;
    text-align: left;
    line-height: 1em;
    text-transform: capitalize;
}

#news-details .post .title {
    font-size: 2em;
}

#news .post .title {
    font-size: 1.3em;
}

#news .post .summary,
#news-details .post .summary {
    font-style: italic;
    color: var(--text-light);
    font-size: 1.1em;
}

#news .post .date,
#news-details .post .date {
    background-color: var(--bg-light);
    width: fit-content;
    border-radius: var(--border-radius);
    padding: 0px 4px;
    font-size: 0.7em;
    margin-right: 7px;
}

#news-details .post .tag,
#news .post .tag {
    background-color: var(--text-color);
    color: var(--bg);
    width: fit-content;
    border-radius: var(--border-radius-big);
    padding: 0px 8px;
    font-size: 0.7em;
    text-transform: capitalize;
}

#news .post {
    transition: transform 0.1s ease;
    /*border-bottom: 3px solid var(--bg-light);*/
    padding: 20px 20px;
    border-radius: var(--border-radius-big);
    margin: 40px 0;
}

#news .post:hover {
    transform: scale(1.05);
    box-shadow: 0px -20px 30px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

#news .post .thumbnail img {
    max-width: none;
    width: 150px;
    border-radius: var(--border-radius);
}

#news .more {
    text-align: right;
}

#news .details {
    width: 100%;
}

#news-details .post img {
    width: 100%;
    border-radius: var(--border-radius-big);
}

#news-details .post img.header {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* signature */
#news-details h5 {
    font-weight: inherit;
    margin: 2em 0;
}

#news-details h2 {
    background: none;
    color: var(--text-color);
    padding: 0;
    margin-top: 2em;
    font-weight: 800;
}

/* =========================================================
   Page specific - folio
   ========================================================= */
#folio .icon {
    font-size: 2.7em;
    color: var(--text-color);
    margin-bottom: -0.25em;
    display: block;
}

/* =========================================================
   SVG ribbons (experimental) - flat shapes inspired by the splash images.
   Shapes live in assets/img/shapes/. To switch them off, delete this block.
   ========================================================= */

/* page heroes: a ribbon shape centered behind the title and text, faded on all sides.
   Each page uses its own shape (--hero-shape, set per page below). */
main {
    overflow-x: clip; /* the full-width backgrounds below are 100vw wide */
}

#home #splash.hero-full {
    isolation: isolate;
    overflow: hidden;
}

#home #splash.hero-full::before,
.intro-first::before,
#folio .push-folio::before {
    content: "";
    position: absolute;
    z-index: -1;
    opacity: 0.13;
    pointer-events: none;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 22%, #000 78%, transparent), linear-gradient(to bottom, transparent, #000 28%, #000 68%, transparent);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent, #000 22%, #000 78%, transparent), linear-gradient(to bottom, transparent, #000 28%, #000 68%, transparent);
    mask-composite: intersect;
}

#home #splash.hero-full::before {
    inset: 96px 0 0 0; /* starts below the menu bar, so the menu stands out on clean white */
    background-image: url("../img/shapes/hero-home.svg?ck=300");
}

#home #splash.hero-full::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(rgba(255, 255, 255, 0) 55%, #fff 100%);
}

.intro-first {
    isolation: isolate;
    padding: 40px 0; /* more space above and below the hero text */
}

.intro-first::before {
    top: -44px; /* the ribbons start below the menu bar */
    bottom: -70px;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background-image: var(--hero-shape, none);
}

#folio .push-folio {
    position: relative;
    isolation: isolate;
}

#folio .push-folio::before {
    top: -30px;
    bottom: -30px;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background-image: url("../img/shapes/hero-folio-top.svg?ck=300");
}

/* the "Illustrative Indices" box: the shape of the Illustrative Indices page */
#folio .push-indices::before {
    background-image: url("../img/shapes/hero-indices.svg?ck=300");
}

#folio { --hero-shape: url("../img/shapes/hero-folio.svg?ck=300"); }
#our-offer { --hero-shape: url("../img/shapes/hero-solutions.svg?ck=300"); }
#error { --hero-shape: url("../img/shapes/hero-folio-top.svg?ck=300"); }
#services { --hero-shape: url("../img/shapes/hero-who-we-serve.svg?ck=300"); }
#about-us { --hero-shape: url("../img/shapes/hero-about.svg?ck=300"); }
#careers { --hero-shape: url("../img/shapes/hero-careers.svg?ck=300"); }
#indexes { --hero-shape: url("../img/shapes/hero-indices.svg?ck=300"); }
#news { --hero-shape: url("../img/shapes/hero-insights.svg?ck=300"); }

/* highlighted boxes: same treatment as the page heroes (a soft ribbon shape centred behind the text,
   faded on all sides, no panel) */
.intro-highlithed {
    position: relative;
    isolation: isolate;
}

.intro-highlithed::before {
    content: "";
    position: absolute;
    top: -30px;
    bottom: -30px;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    z-index: -1;
    opacity: 0.13;
    pointer-events: none;
    background: url("../img/shapes/hero-closing.svg?ck=300") no-repeat center / cover;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 22%, #000 78%, transparent), linear-gradient(to bottom, transparent, #000 28%, #000 68%, transparent);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent, #000 22%, #000 78%, transparent), linear-gradient(to bottom, transparent, #000 28%, #000 68%, transparent);
    mask-composite: intersect;
}

/* =========================================================
   Buttons v3 (experimental): outlined, filled with the hover colour on hover.
   Delete this block to go back to the solid buttons.
   The outline is an inset box-shadow, so the button size does not change.
   ========================================================= */
a.button {
    background-color: transparent;
    color: var(--text-color);
    box-shadow: inset 0 0 0 2px var(--text-color);
}

a.button:hover {
    background-color: var(--hover-color);
    color: var(--bg);
    box-shadow: inset 0 0 0 2px var(--hover-color), 0 10px 24px -8px rgba(0, 0, 0, 0.4);
}

a.button:active {
    box-shadow: inset 0 0 0 2px var(--hover-color);
}

a.button2:hover {
    background-color: var(--secondary-color);
    box-shadow: inset 0 0 0 2px var(--secondary-color), 0 10px 24px -8px rgba(127, 81, 221, 0.6);
}

/* emphasised button (Try MCFT Folio): solid black, hover colour on hover */
a.button.try {
    background-color: var(--text-color);
    color: var(--bg);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

a.button.try:hover {
    background-color: var(--hover-color);
    color: var(--bg);
    box-shadow: inset 0 0 0 2px var(--text-color), 0 10px 24px -8px rgba(0, 0, 0, 0.4);
}

/* menu buttons: outline in the text colour, white on the black (scrolled) menu */
header a.button {
    background-color: transparent;
    color: var(--text-color);
}

header a.button:hover {
    background-color: var(--hover-color);
    color: var(--bg);
}

header.is-scrolled a.button {
    background-color: transparent;
    color: var(--bg);
    box-shadow: inset 0 0 0 2px var(--bg);
}

/* menu: no hover lift. Moving the link up 1px made the pointer fall off its bottom edge, which ended the hover
   and brought the pill back, over and over ("blinking") */
header nav li a:hover,
header a.button:hover {
    transform: none;
}

header.is-scrolled a.button:hover {
    background-color: var(--bg);
    color: var(--text-color);
    box-shadow: inset 0 0 0 2px var(--bg);
}

/* Insights list: hovering anywhere on an article card fills its "Read article" button */
#news .post:hover a.button {
    background-color: var(--hover-color);
    color: var(--bg);
    transform: translateY(-1px);
    box-shadow: inset 0 0 0 2px var(--hover-color), 0 10px 24px -8px rgba(0, 0, 0, 0.4);
}

#news .post:hover a.button::after {
    transform: translateX(3px);
}

/* Folio secondary call to action (demo): tucked under the main one */
.push-folio a.push-secondary {
    margin-top: -10px;
}

/* Folio main call to action (trial): solid; secondary (demo): outlined */
.push-folio a:not(.push-secondary) .button {
    background-color: var(--text-color);
    color: var(--bg);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Folio "Request a demonstration" */
.push-folio a .button {
    background-color: transparent;
    color: var(--text-color);
    box-shadow: inset 0 0 0 2px var(--text-color);
}

.push-folio a:hover .button {
    background-color: var(--hover-color);
    color: var(--bg);
    box-shadow: inset 0 0 0 2px var(--hover-color), 0 10px 24px -8px rgba(0, 0, 0, 0.4);
}

.push-folio a:not(.push-secondary):hover .button {
    background-color: var(--hover-color);
    color: var(--bg);
    box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.4);
}

/* side menu: stays solid (navigation, not call-to-action) */
#side-menus a.button {
    background-color: var(--text-color);
    color: var(--bg);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

#side-menus a.button:hover {
    background-color: var(--hover-color);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* collapsed table-of-contents button: outlined like the other buttons, solid black on hover */
#side-menu-opener a.button {
    background-color: var(--bg);
    color: var(--text-color);
    box-shadow: inset 0 0 0 2px var(--text-color);
    cursor: pointer;
}

#side-menu-opener a.button:hover {
    background-color: var(--hover-color);
    color: var(--bg);
    box-shadow: inset 0 0 0 2px var(--hover-color), 0 10px 24px -8px rgba(0, 0, 0, 0.4);
}

#side-menus a.button.push {
    background-color: var(--secondary-color);
}

#side-menus a.button.active,
#side-menus a.button.push.active {
    background-color: var(--main-color);
}

/* =========================================================
   Side menu as a table of contents (experimental): text links on a thin rail, current section marked.
   Delete this block to go back to the button style.
   ========================================================= */
#side-menus {
    font-family: inherit;
}

#side-menus > .stack {
    gap: 0;
    padding: 10px 6px 10px 0; /* no left padding: the marker bar sits flush on the card's left edge */
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: none;
    border-radius: 14px;
    box-shadow: 0 8px 28px -10px rgba(0, 0, 0, 0.25);
}

#side-menus a.button,
#side-menus a.button.push,
#side-menus a.button.active,
#side-menus a.button.push.active {
    background-color: transparent;
    box-shadow: none;
    transform: none;
    border-radius: 0;
    border-left: 2px solid transparent;
    margin-left: 0;
    padding: 0.4em 1em 0.4em 0.9em;
    font-size: 0.85em;
    font-weight: 400;
    text-transform: capitalize;
    letter-spacing: 0;
    color: var(--text-light);
    transition: color 0.2s ease, border-color 0.2s ease;
}

#side-menus a.button:hover,
#side-menus a.button.push:hover {
    background-color: transparent;
    box-shadow: none;
    transform: none;
    color: var(--text-color);
}

#side-menus a.button.active,
#side-menus a.button.push.active {
    color: var(--text-color);
    border-left-color: var(--text-color);
}

#side-menus a.button i {
    font-size: 0.8em;
    opacity: 0.55;
    width: 1.3em;
    text-align: center;
}

#side-menus a.button.active i,
#side-menus a.button:hover i {
    opacity: 0.9;
}

/* =========================================================
   Menu: Insights and Contact as regular items, menu centred (logo left, links in the middle).
   Wide screens only: on narrow screens the menu stays stacked.
   ========================================================= */
header nav ul.menu-more {
    display: inline-block;
    padding: 12px 0;
    margin: 0;
}

/* narrow screens: Insights and Contact are plain continuation of the list (same spacing as the other items) */
@media (max-width: 1100px) {
    /* the logo's letters line up with the text of the links (not with the pill edge) */
    header .logo {
        margin-left: 12.7px;
    }

    header nav ul,
    header nav ul.menu-more {
        display: block;
        padding: 0;
        margin: 0;
    }
}

@media (min-width: 1101px) {
    header .container {
        display: grid;
        grid-template-columns: auto 1fr; /* the menu is too wide to be centred: logo keeps its size, links take the rest */
        align-items: center;
    }

    header .logo {
        justify-self: start;
        margin-right: 0;
        top: -4px; /* the logo's letters sit centred on the same line as the link text */
    }

    header nav {
        justify-self: end;
        white-space: nowrap;
    }

    header nav ul,
    header nav ul.menu-more {
        display: inline-block;
        vertical-align: middle;
    }
}

/* =========================================================
   Small screens: less space above the hero. The page reserves room for the stacked menu
   (it was 350px, the menu is 290px) and the hero text starts closer to it.
   ========================================================= */
@media (max-width: 1100px) {
    :root {
        --menu-height: 298px;
    }

    /* a little more room under the last menu item */
    header .container {
        padding-bottom: 16px;
    }

    .intro-first {
        margin-top: 0;
        padding: 12px 0 40px;
    }

    #home #splash.hero-full {
        padding-top: calc(var(--menu-height) + 24px);
        min-height: 0;
    }

    #home #splash.hero-full::before {
        inset: var(--menu-height) 0 0 0;
    }
}

/* =========================================================
   Team members: name and role styled like the page hero title and subtitle, but smaller
   ========================================================= */
.team-member h2 {
    font-size: 1.7em;
    margin: 0.55em 0 0;
}

/* wide screens: portrait on the left; name, role and bio stacked in the column beside it.
   Narrow screens keep everything stacked under the portrait. */
@media (min-width: 701px) {
    .team-member {
        display: grid;
        grid-template-columns: auto 1fr;
        column-gap: 24px;
        align-items: start;
    }

    .team-member img.portraits {
        grid-column: 1;
        grid-row: 1 / span 3;
        width: 110px;
        height: 110px;
        max-width: none;
        max-height: none;
        object-fit: cover;
    }

    .team-member > h2 {
        grid-column: 2;
        grid-row: 1;
        margin: 0;
    }

    .team-member > h3 {
        grid-column: 2;
        grid-row: 2;
        margin: 0.1em 0 0.7em;
    }

    .team-member > p {
        grid-column: 2;
        grid-row: 3;
        margin: 0;
    }
}

.team-member h3 {
    font-family: var(--font-secondary);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.03em;
    color: var(--text-color);
    text-align: left;
    font-size: 1.2em;
    line-height: 1.2;
    margin: 0.1em 0 0.7em;
}

/* side menu: font of the page text; icon and label, no numbers */
#side-menus {
    font-family: Lato, sans-serif; /* the main text font */
}

#side-menus a.button i {
    display: none;
}

#side-menus a.button {
    align-items: baseline;
    gap: 0.7em;
}

/* =========================================================
   Index filters: same style as the buttons (pills, outlined, solid black when active or hovered)
   ========================================================= */
#indexes .tag {
    background-color: transparent;
    color: var(--text-color);
    border-radius: 999px;
    padding: 0.62em 1.05em 0.66em;
    font-size: 0.85em;
    font-weight: 600;
    box-shadow: inset 0 0 0 2px var(--text-color);
    transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

#indexes .tag:hover {
    transform: translateY(-1px);
    background-color: var(--hover-color);
    color: var(--bg);
    box-shadow: inset 0 0 0 2px var(--hover-color), 0 10px 24px -8px rgba(0, 0, 0, 0.4);
}

#indexes .tag.active {
    background-color: var(--text-color);
    color: var(--bg);
    box-shadow: inset 0 0 0 2px var(--text-color);
}

#indexes .tag.active:hover {
    box-shadow: inset 0 0 0 2px var(--hover-color), 0 10px 24px -8px rgba(0, 0, 0, 0.4);
}

/* view selector (Trailing / Monthly / Yearly) */
#indexes #view-selector button {
    background-color: transparent;
    color: var(--text-color);
    border-radius: 999px;
    padding: 0.45em 0.95em 0.5em;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: none;
    box-shadow: inset 0 0 0 2px var(--text-color);
    transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

#indexes #view-selector button:hover {
    transform: translateY(-1px);
    background-color: var(--hover-color);
    color: var(--bg);
    box-shadow: inset 0 0 0 2px var(--hover-color), 0 10px 24px -8px rgba(0, 0, 0, 0.4);
}

#indexes #view-selector button.active {
    background-color: var(--text-color);
    color: var(--bg);
    box-shadow: inset 0 0 0 2px var(--text-color);
}

/* search and drop-downs: pill-shaped, dark outline */
#indexes .filter input[type="text"] {
    border: 2px solid var(--text-color);
    border-radius: 999px;
    padding: 0.55em 1.1em;
}

#indexes .filter .ts-control {
    border: 2px solid var(--text-color);
    border-radius: 26px;
    padding-left: 0.9em;
}

/* =========================================================
   Index screener titles ("Filter", "461 Indexes"): normal section title style (large italic, no pill, no icon)
   ========================================================= */
#indexes #screener h2 {
    background-color: transparent;
    color: var(--text-color);
    width: auto;
    border-radius: 0;
    padding: 0;
    margin: 0.2em 0 0.35em;
    font-family: var(--font-secondary);
    font-style: italic;
    font-weight: 900;
    letter-spacing: -0.2pt;
    font-size: 2em;
    line-height: 1.15;
    text-transform: none;
}

#indexes #screener h2 i {
    display: none;
}

/* =========================================================
   Index detail pages: section titles in the normal section title style (large italic, no pill, no icon)
   ========================================================= */
#index section > h2 {
    position: static; /* no longer a sticky pill */
    background-color: transparent;
    color: var(--text-color);
    width: auto;
    border-radius: 0;
    padding: 0;
    margin: 0 0 0.5em;
    font-family: var(--font-secondary);
    font-style: italic;
    font-weight: 900;
    letter-spacing: -0.2pt;
    font-size: 2em;
    line-height: 1.15;
    text-transform: none;
}

#index section > h2 i {
    display: none;
}

/* the icon is anchored by its right edge: the gap to the title is the same whatever the width of the icon (as on the content pages) */
#index section > i.section-icon {
    left: auto;
    right: calc(100% + 22px);
}

@media (max-width: 1000px) {
    #index section > i.section-icon {
        right: auto;
    }
}

/* the "Open in Folio" box: its own background shape (the Folio one) */
#index .folio-open::before {
    background-image: url("../img/shapes/hero-folio.svg?ck=300");
}

/* the "Important Information" box: no background shape */
#index .intro-highlithed.licensing::before {
    display: none;
}

/* the "Open in Folio" box: its text has the same width as the sections above (no side padding) */
#index .intro-highlithed.folio-open {
    padding-left: 0;
    padding-right: 0;
}

/* =========================================================
   Index detail header: index code, name and tags in the button style (pills)
   ========================================================= */
#index .index-id {
    align-self: flex-start;
    padding: 0.3em 0.95em 0.34em;
    font-size: 0.8em;
    font-weight: 700;
    letter-spacing: 0.06em;
    background-color: var(--text-color);
    color: var(--bg);
    border-radius: 999px;
    line-height: 1.2;
}

#index .name {
    /* the page title: same style as the titles of the content pages (heroes) */
    align-self: flex-start;
    padding: 0;
    font-family: var(--font-secondary);
    font-style: italic;
    font-size: 2.7em;
    font-weight: 900;
    letter-spacing: -0.2pt;
    line-height: 1.15;
    background-color: transparent;
    color: var(--text-color);
    border-radius: 0;
}

#index .tags {
    align-items: center;
    gap: 8px;
    margin-top: -10px; /* closer to the index name (the header stack's gap is 20px) */
}

#index .tag {
    background-color: transparent;
    color: var(--text-color);
    font-size: 0.85em;
    font-weight: 600;
    padding: 0.55em 1em 0.6em;
    border-radius: 999px;
    box-shadow: inset 0 0 0 2px var(--text-color);
    cursor: default;
}

/* the index code in the tags row: smaller than the tags, centred with them */
#index .tags .index-id {
    align-self: center;
    font-size: 0.72em;
    padding: 0.4em 0.9em 0.44em;
}

/* document download links on the index detail pages: button style */
#index .documents-links a.button {
    display: inline-flex;
}

/* =========================================================
   Insights: dates, tags and pagination in the button style (pills)
   ========================================================= */
#news .post .date,
#news-details .post .date {
    background-color: transparent;
    border-radius: 999px;
    padding: 0.3em 0.9em 0.34em;
    font-size: 0.72em;
    font-weight: 600;
    line-height: 1.2;
    box-shadow: inset 0 0 0 1.5px var(--text-color);
}

#news-details .post .tag,
#news .post .tag {
    border-radius: 999px;
    padding: 0.3em 0.9em 0.34em;
    font-size: 0.72em;
    font-weight: 600;
    line-height: 1.2;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.pagination a,
.pagination .pagination-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45em;
    min-width: 2.7em;
    box-sizing: border-box;
    padding: 0.5em 0.95em 0.55em;
    border-radius: 999px;
    font-size: 0.9em;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    color: var(--text-color);
    background-color: transparent;
    box-shadow: inset 0 0 0 2px var(--text-color);
    transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.pagination a:hover {
    transform: translateY(-1px);
    background-color: var(--hover-color);
    color: var(--bg);
    box-shadow: inset 0 0 0 2px var(--hover-color), 0 10px 24px -8px rgba(0, 0, 0, 0.4);
}

.pagination .pagination-current {
    background-color: var(--text-color);
    color: var(--bg);
}

/* =========================================================
   Footer links: pill on hover, like the buttons (solid black, white text, small lift)
   ========================================================= */
footer li a {
    display: inline-block;
    padding: 0.28em 0.8em 0.32em;
    margin-left: -6.5px; /* the text stays aligned with the column title */
    border-radius: 999px;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

footer li a:hover {
    padding: 0.28em 0.8em 0.32em;
    background-color: var(--hover-color);
    color: var(--bg);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.4);
}

footer li {
    padding: 0;
}

/* =========================================================
   Section icons (methodology page): above the title, inside the text column.
   Outside the column (left: -75px) they went under the table of contents on wide screens.
   ========================================================= */
#expertises .focus .icon {
    position: relative;
    left: 0;
    top: 0;
    margin-bottom: 0.1em;
}

/* the table of contents never goes over the text column: it keeps to the space left of the 800px column, long entries wrap */
#side-menus {
    left: max(12px, (100vw - 1200px) / 2 + -200px);
    max-width: min(350px, calc((100vw - 800px) / 2 - 100px));
}

#side-menus a.button {
    white-space: normal;
}

/* =========================================================
   Section icons: thin Phosphor icon above each section title, and next to each side menu entry
   ========================================================= */
.has-section-icon {
    position: relative;
}

/* wide screens: the icon is outside the text column, so title and subtitle stay aligned with the text */
i.section-icon {
    position: absolute;
    left: -74px;
    font-size: 2.4em;
    line-height: 1;
    color: var(--text-color);
}

/* narrow screens: no room outside the column, the icon goes above the title */
@media (max-width: 1000px) {
    i.section-icon {
        position: static;
        display: block;
        font-size: 2.2em;
        margin: 0 0 0.2em; /* the title right after the icon has no top margin of its own */
    }
}

#side-menus a.button i {
    display: inline-block;
    font-size: 1.15em;
    line-height: 1;
    opacity: 0.55;
    transition: opacity 0.2s ease;
}

#side-menus a.button:hover i,
#side-menus a.button.active i {
    opacity: 1;
}

/* side menu: one line per entry when the screen is wide enough (otherwise long entries wrap) */
@media (min-width: 1450px) {
    #side-menus {
        max-width: none;
    }

    #side-menus a.button {
        white-space: nowrap;
        padding-right: 8px;
    }
}

/* side menu: less space to the left of the icons (the highlighted first entry has its own, more specific rules) */
#side-menus a.button,
#side-menus a.button.push,
#side-menus a.button.active,
#side-menus a.button.push.active {
    padding-left: 7px;
}

/* special boxes have 50px of inner padding: the icon keeps the same distance to the title as in the other sections */
.intro-highlithed > i.section-icon {
    left: -24px;
}

@media (max-width: 1000px) {
    .intro-highlithed > i.section-icon {
        left: auto;
    }
}

/* =========================================================
   Custom icon "ribbons" (stacked wavy bands, from the background shapes), drawn like the Phosphor light icons.
   Used the same way: <i class="ph-light ph-ribbons">
   ========================================================= */
.ph-light.ph-ribbons::before {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    background-color: currentColor;
    -webkit-mask: url("../img/icons/ribbons.svg?ck=300") center / contain no-repeat;
    mask: url("../img/icons/ribbons.svg?ck=300") center / contain no-repeat;
}

/* the Folio logo (traced svg) as an icon: <i class="ph-light ph-folio"> */
.ph-light.ph-folio::before {
    content: "";
    display: inline-block;
    width: 1.25em;
    height: 1em;
    background-color: currentColor;
    -webkit-mask: url("../img/logo-app-black.svg?ck=300") center / contain no-repeat;
    mask: url("../img/logo-app-black.svg?ck=300") center / contain no-repeat;
}

i.section-icon.ph-folio {
    left: -82px; /* it is wider than the other icons: same distance to the title */
}

@media (max-width: 1000px) {
    i.section-icon.ph-folio {
        left: auto;
    }
}

/* the section icon takes the place of the first child: the title right after it keeps no top margin (as when it was the first element) */
i.section-icon + h2 {
    margin-top: 0;
}

/* arrows between sections: the same space above and below.
   - after the page intro, which has 40px of extra padding under its text */
.intro-first + .arrow {
    margin-top: -40px;
}

/* - before a highlighted box, whose text starts 40px inside the box */
.content:has(> .arrow:last-child):has(+ .content .intro-highlithed) > .arrow:last-child {
    margin-bottom: -40px;
}

/* same, when the intro is inside a section; the Solutions page intro has less padding under its text */
section:has(> .intro-first) + .arrow {
    margin-top: -40px;
}

#our-offer .intro-first + .arrow {
    margin-top: -20px;
}


/* =========================================================
   Item titles (common style): the name of an item inside a section, with its text under it.
   Markdown "#####" in the pages, and the application items of the home page.
   One place to change them: the variables below.
   ========================================================= */
:root {
    --item-title-font: var(--font-secondary); /* the title font */
    --item-title-style: italic;
    --item-title-size: 1.1em;
    --item-title-weight: 700;
    --item-title-color: var(--text-color);
    --item-gap: 24px;
    --item-text-size: 0.95em;
}

.intro h5,
#home .focus-small .details h3 {
    font-family: var(--item-title-font);
    font-style: var(--item-title-style);
    font-size: var(--item-title-size);
    font-weight: var(--item-title-weight);
    line-height: 1.05;
    letter-spacing: -0.1pt;
    color: var(--item-title-color);
    text-align: left;
    text-transform: none;
}

.intro h5 {
    margin: var(--item-gap) 0 0;
}

.intro h5 + p,
.intro h5 + ul,
#home .focus-small .details h3 + p {
    margin-top: 0.3em;
    font-size: var(--item-text-size);
}

/* narrow screens: the text of a special box lines up with the text of the other sections (no inner side padding) */
@media (max-width: 900px) {
    .intro-highlithed {
        padding: 30px 0;
    }
}

/* =========================================================
   Components - partner logo (left-aligned, 72px high)
   ========================================================= */
.partner-logo {
    display: block;
    height: 72px;
    max-width: 100%;
    width: auto;
    align-self: flex-start;
    margin: 0 0 1em;
}

/* =========================================================
   Announcement box (markup: _announce.html, text: __contents/en/home-announce.md)
   Default: a compact box in the page flow, centred. Out of the flow in the free strip under the menu on the pages
   listed in "out of the flow" below. The home page turns it into a bigger one in the hero (#home).
   ========================================================= */
.announce {
    display: flex;
    align-items: center;
    box-sizing: border-box; /* the width includes the padding: otherwise it overflows the screen */
    position: relative;
    gap: 18px;
    width: min(calc(100vw - 40px), 660px); /* 20px of air on each side of a small screen, also once fixed */
    margin: 0 auto;
    padding: 9px 20px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 6px 36px -4px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.075);
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.8em;
    line-height: 1.3;
}

/* the global a:hover (scale 1.05, main-colour background) must not apply: it only grows slightly, the arrow slides */
.announce:hover {
    transform: scale(1.03);
    background: #fff;
    color: var(--text-color);
}

.announce-logo {
    height: 26px;
    width: auto;
    flex: none;
}

.announce-text {
    flex: 1;
}

.announce-text p {
    margin: 0;
    text-align: left;
}

/* the small "Technology partnership" label: hidden by default, shown in the home hero */
.announce-text strong {
    display: none;
    font-size: 0.8em;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-light);
    font-weight: 400;
}

/* same arrow as the buttons (an SVG mask in the text colour), sliding right on hover */
.announce::after {
    content: "";
    flex: 0 0 auto;
    width: 1.3em;
    height: 1.3em;
    background-color: currentColor;
    -webkit-mask: var(--icon-arrow) center / contain no-repeat;
    mask: var(--icon-arrow) center / contain no-repeat;
    transition: transform 0.25s ease;
}

.announce:hover::after {
    transform: translateX(3px);
}

/* ---- out of the flow (large screens): in the free strip between the menu bar and the page content, so the content
   does not move (an out-of-flow child of a stack does not add a gap either). The box is the first child of the page's
   .container-base (see _announce.html). On small screens the stacked menu leaves no free strip: it stays in the flow. */
.container-base:has(> .announce) {
    position: relative;
}

@media (min-width: 1101px) {
    .container-base > .announce {
        position: absolute;
        left: 50%;
        top: -24px;
        z-index: 91; /* above the home hero (it overlaps its bottom edge) */
        margin: 0;
        transform: translateX(-50%);
    }

    .container-base > .announce:hover {
        transform: translateX(-50%) scale(1.03);
    }
}

@media (max-width: 1100px) {
    .announce {
        border-radius: 24px;
        margin-bottom: 24px;
    }

    .container-base.stack > .announce {
        margin-bottom: -45px; /* the stack gap (75px) above the content is a bit much under a box */
    }
}

/* phones: no arrow, the text gets the room (the whole box is the link) */
@media (max-width: 600px) {
    .announce::after {
        display: none;
    }
}

/* ---- home page: bigger box in the hero, above the MCFT logo. It is taken out of the flow and centred vertically in
   the gap between the menu bar and the logo, so the logo and the title keep their place (the gap is 100px of hero
   padding, minus the logo's -14px margin). */
#home .hero-inner {
    position: relative;
}

#home .announce {
    position: absolute;
    left: 50%;
    top: -78px;
    z-index: 1;
    transform: translate(-50%, -50%);
    width: min(calc(100vw - 40px), 740px);
    margin: 0;
    padding: 12px 22px;
    gap: 22px;
    font-size: 0.9em;
}

#home .announce:hover {
    transform: translate(-50%, -50%) scale(1.03);
}

#home .announce-logo {
    height: 31px;
}

#home .announce-text strong {
    display: block;
}

/* stacking: the hero is a stacking context (isolation), so the box inside it can only rise above the page text if the
   hero itself does. Hero above the sections (positioned text further down the page), still below the menu (z-index 99). */
#home #splash.hero-full {
    z-index: 90;
}

/* small screens: the menu is stacked and takes the whole top of the hero, there is no room between it and the logo.
   The hero gets more room above the logo and the box sits in it, under the menu (never over it) */
@media (max-width: 1100px) {
    #home #splash.hero-full {
        padding-top: calc(var(--menu-height) + 24px + 90px);
    }

    #home .announce {
        top: -74px;
        padding: 10px 18px;
        gap: 17px;
        margin-bottom: 0;
    }

    #home .announce-logo {
        height: 26px;
    }
}
