*, *::before, *::after {box-sizing: border-box;margin: 0;padding: 0;}
body, header, footer, nav,
p, ul, ol, li,
h1, h2, h3, h4, h5, h6, 
form, input, textarea, fieldset, blockquote, 
section, article, aside,
dl, dt, dd, 
table, td, th, tr, 
button, div, span {margin: 0;padding: 0;font-size: 100%;font-weight: normal;box-sizing: border-box;}
table {border-collapse: collapse;border-spacing: 0}
ul, ol {list-style: none;}
img, fieldset {border: 0;}
hr {display: none;}
sup {vertical-align: super;font-size: .7em;line-height: .8em;}
sub {vertical-align: sub;font-size: .7em;line-height: .8em;}
address {font-style: normal;}
a, a:hover, a:visited, a:focus, a:active {text-decoration: none;box-sizing: border-box;}
button, button:hover, button:visited, button:focus, button:active {border: none;outline: none;cursor: pointer;}
input, button, textarea, select, optgroup, option {font-family: inherit;font-size: inherit;box-sizing: border-box;border: 0;}
textarea {resize: none;}
button img {pointer-events: none;}

:root {
  --blue-mm: #07a4b9;
  --softblue-mm: rgb(1, 166, 188, .3);
	--header-height: 60px;
	--footer-height: 60px;
	--main-height: calc(100vh - var(--header-height));
	--black: #000;
  --grey-100: #F0F0F0;
  --grey-200: #d8d8d8;
  --grey-300: #c9c9c9;
  --grey-350: #a3a3a3;
  --grey-400: #808080;
  --grey-450: #696969;
  --grey-500: #454545;
  --grey-550: #2a2a2a;
  --grey-600: #111617;
  --grey-650: #0e1010;
  --blue-100: #00a7bc;
  --blue-200: #00545E;
  --yellow: #FFC503;
	--anim-time: .25s;
	--main-bg-col: rgb(16 16 20 / 1);
	--main-bg-transparent: rgb(16 16 20 / 0);
	--mad-background: radial-gradient(ellipse at top center, var(--softblue-mm) 0%, var(--main-bg-transparent) 70%) center top/100% 40vh no-repeat;
}

/**---Fonts------------------------*/
@font-face {font-family: 'Mont-Regular';src: url('../fonts/Mont-Regular.ttf') format('truetype');}
@font-face {font-family: 'Mont-Black';src: url('../fonts/Mont-Black.ttf') format('truetype');}
@font-face {font-family: 'Mont-Light';src: url('../fonts/Mont-Light.ttf') format('truetype');}
@font-face {font-family: 'Mont-SemiBold';src: url('../fonts/Mont-SemiBold.ttf') format('truetype');}
@font-face {font-family: 'Mont-Bold';src: url('../fonts/Mont-Bold.ttf') format('truetype');}
@font-face {font-family: 'Inter';src: url('../fonts/Inter/Inter-VariableFont_opsz\,wght.ttf') format('truetype');}

/**---General----------------------*/
body {font-family: 'Inter', sans-serif;width: 100%;min-height: 100%;position: relative;font-size: 16px;scroll-behavior: smooth;background-color: var(--grey-600);}

strong {font-weight: 600;}
.fs18 {font-size: 18px !important;line-height: 26px !important;}
.fs20 {font-size: 20px !important;line-height: 31px !important;}
.fs30 {font-size: 30px !important;line-height: 45px !important;}
.fs40 {font-size: 40px !important;line-height: 59px !important;}

h1 {font-size: 3rem;letter-spacing: -1.2px;margin-bottom: 1.8rem;font-family: 'Mont-Bold', sans-serif;}
h2 {font-size: 2rem;margin-bottom: 1.5rem;font-family: 'Mont-Bold', sans-serif;}
h3 {font-size: 1.6rem;font-family: 'Mont-SemiBold';}
h4 {font-size: 1.2rem;font-family: 'Mont-SemiBold';}
p {font-size: 1rem;font-family: 'Inter', sans-serif;}
p + p {margin-top: 8px;}

/**---Layout-----------------------*/
main {display: grid;grid-template-columns: 300px auto auto;background: var(--mad-background);position: relative;}
aside {border-right: 1px solid var(--grey-400);height: calc(100vh - var(--header-height));overflow: auto;background-color: transparent;color: #fff;position: sticky;top: 60px;padding: 20px;}
#relatedToPage {position: sticky;top: 60px;height: calc(100vh - var(--header-height));overflow: auto;padding: 30px 15px;max-width: 250px;}

/**---header-----------------------*/
header {display: grid;grid-template-columns: 260px 1fr 20%;gap: 20px;justify-content: space-between;align-items: center;height: var(--header-height);background-color: var(--grey-650);color: #fff;padding: 10px 20px;border-bottom: 1px solid var(--grey-400);position: sticky;top: 0;z-index: 2;}
#sandwich {display: none;}
#home-logo {display: block;width: 85px;height: 31px;background: url('../images/madLogo.svg') left top / cover no-repeat;}
header div:nth-child(2) {justify-items: start;}
#search {position: relative;width: 80%;}
#search input[name="search"] {width: 100%;border-radius: 3px;background: transparent;border: 1px solid var(--grey-500);padding: 5px 10px;color: var(--grey-100);display: none;}
#search input[name="search"]::placeholder {color: var(--grey-500);}
#search input[name="search"]:focus, #search input[name="search"]:focus-visible {outline-color: var(--blue-mm);}
#search input[type="submit"] {position: absolute;right: 10px;top: calc(50% - 10px);background: url('../images/magnifier.svg') left top / cover no-repeat;width: 20px;height: 20px;text-indent: -9999px;overflow: hidden;cursor: pointer;display: none;}
#search input[type="submit"]:hover {background-position: left bottom;}

/**---Aside------------------------*/
.custom-select-wrapper:has(.custom-select.products) {width: 100%;}

:is(.custom-select.products) .custom-select-trigger {padding: 15.5px 12px;border: .5px solid #000;border-radius: 0;background: var(--grey-650) url('../images/select-arrow.svg') right 16px top 50% no-repeat;}
:is(.custom-select.products) .custom-options {border-radius: 0;width: 100%;background-color: var(--grey-600);color: var(--grey-100);padding: 8px 10px;}
:is(.custom-select.products) .custom-option {padding: 8px 12px;border-radius: 0;}
:is(.custom-select.products) .custom-option + .custom-option {margin-top: 6px;}
:is(.custom-select.products) .custom-option.selection {color: var(--blue-mm);background-color: var(--grey-300);}
:is(.custom-select.products) .custom-option:hover {color: var(--grey-100);background-color: var(--grey-500);}

#toc {margin-top: 20px;color: var(--grey-400);font-size: 14px;}
#toc ul {overflow: hidden;}
#toc ul ul {padding-left: 15px;}
#toc li {position: relative;}
#toc li .flex {display: flex;gap: 10px;align-items: center;padding-block: 8px;cursor: pointer;}
#toc li.on>.flex>.page-toc>.page-title {color: var(--blue-mm)}
#toc li:not(.on)>.flex:hover>.page-toc>.page-title {color: var(--grey-100)}
.no-handle {width: 10px;height: 10px;flex: 0 0 10px;position: relative;}
.close-handle {width: 10px;height: 10px;flex: 0 0 10px;position: relative;cursor: pointer;}
.close-handle::before {content: '';position: absolute;inset: 0;background: url('../images/toc-arrow.svg') 0 2.5px / 10px 5px no-repeat;rotate: 0deg;transform-origin: center;transition: rotate 250ms ease-in-out;}
.close>.flex>.close-handle::before {rotate: -90deg;}
.subpages {display: grid;grid-template-rows: 1fr;transition: grid-template-rows 250ms ease-in-out;}
.close .subpages {grid-template-rows: 0fr;}
.close ul {padding-block: 0 !important;}
.page-title {pointer-events: none;}

/**---relatedToPage----------------*/
#relatedToPage h5 {color: var(--grey-100);margin-bottom: 30px;font-weight: 500;font-size: 1.1rem;}
#rtpLinks a {display: block;color: var(--grey-400);font-size: 13px;}
#rtpLinks a span {pointer-events: none;}
#rtpLinks a:hover {color: var(--grey-100);}
#rtpLinks a + a {margin-top: 8px;}
#rtpLinks .h3 {margin-left: 6px;}
#rtpLinks .h4 {margin-left: 12px;}

/**---doc--------------------------*/
#docs {overflow: auto;max-width: 830px;padding: 30px;color: #fff;background-color: transparent;font-family: 'Inter';}
figure {display: flex;flex-direction: column;max-width: fit-content;}

#docs p, p, #docs h1, #docs h2, #docs h3, #docs h4, #docs h5, #docs h6, h1, h2, h3, h4, h5, h6 {margin: 0;}
p + p, p + ul, p + ol, ol + ol, ul + ul, ul + p, ol + p, ol + ul,  ul + ol 
h2 + p, h2 + ul, h2 + ol,
h3 + p, h3 + ul, h3 + ol,
h4 + p, h4 + ul, h4 + ol
figure + p, figure + ul, figure + ol,
p + figure, ul + figure, ol + figure,
.col-block + p, .col-block + ul, .col-block + ol,
p + .col-block, ul + .col-block, ol + .col-block,
#docs p + p, #docs p + ul, #docs p + ol, 
#docs ol + ol, #docs ul + ul, 
#docs ul + p, #docs ol + p, 
#docs ol + ul, #docs ul + ol,
#docs h2 + p, #docs h2 + ul, #docs h2 + ol,
#docs h3 + p, #docs h3 + ul, #docs h3 + ol,
#docs h4 + p, #docs h4 + ul, #docs h4 + ol
#docs figure + p, #docs figure + ul, #docs figure + ol,
#docs p + figure, #docs ul + figure, #docs ol + figure,
#docs .col-block + p, #docs .col-block + ul, #docs .col-block + ol,
#docs * + .col-block, #docs * + .card
{margin-top: 6px;}
#docs ul {padding-left: 18px;list-style: disc outside;}
#docs ol {padding-left: 18px;list-style: decimal outside;}
#docs a {color: var(--blue-mm);text-decoration: underline;}
#docs a > * {pointer-events: none;}
#docs a:hover {text-decoration: none;}
/* .text-editor h1, .text-editor h2, .text-editor h3, .text-editor h4, .text-editor h5, .text-editor h6, h1, h2, h3, h4, h5, h6 {} */
#docs h1 {font-size: 44px;font-family: 'Mont-Bold';}
#docs * + h1 {margin-top: 84px;}
#docs h1 + p, 
#docs h1 + ul, 
#docs h1 + ol {margin-top: 24px;}
#docs h2 {font-size: 44px;font-family: 'Mont-Bold';}
#docs * + h2 {margin-top: 84px;}
#docs h2 + p, 
#docs h2 + ul, 
#docs h2 + ol {margin-top: 24px;}
#docs h3 {font-size: 32px;font-family: 'Mont-Bold';}
#docs * + h3 {margin-top: 24px;}
#docs h3 + p, 
#docs h3 + ul, 
#docs h3 + ol {margin-top: 24px;}
/* .text-editor h2 + h3, h2 + h3, h3 + p, .text-editor h3 + p, h3 + p, .text-editor h3 + ul, h3 + ul, .text-editor h3 + ol, h3 + ol {margin-top: 1.2rem;} */
#docs h4 {font-size: 24px;font-family: 'Mont-Bold';}
#docs * + h4 {margin-top: 24px;}
#docs h4 + p, 
#docs h4 + ul, 
#docs h4 + ol {margin-top: 24px;}
/* .text-editor h3 + h4, h3 + h4, .text-editor p + h4, p + h4, .text-editor ol + h4, ol + h4, .text-editor ul + h4, ul + h4 {margin-block: 1rem 0;} */

#docs table {background-color: #1F1F1F;font-size: 12px;border-color: #323232;}
#docs * + table {margin-top: 24px;}
#docs thead td {font-weight: 800;}
#docs td {padding: 16px 12px;border-color: #151515;}

#docs p img, #docs figure img {max-width: 100%;height: auto;}

pre {tab-size: 4}

figure {margin: 0;}
figcaption {font-size: 12px;width: fit-content;}
#docs [class^="alert-banner-"] {padding: 24px 24px 24px 84px;}
#docs * + [class^="alert-banner-"] {margin-top: 24px;}
#docs .alert-banner-warning {border: 1px solid #FFC25A;background: url('../images/warning-icon-alert-banner.svg') 24px center no-repeat;}
#docs .alert-banner-tips {border: 1px solid #8AD786;background: url('../images/tips-icon-alert-banner.svg') 24px center no-repeat;}
#docs .alert-banner-notes {border: 1px solid #fff;background: url('../images/info-icon-alert-banner.svg') 24px center no-repeat;}

#docs .card {max-height: 210px;min-height: 140px;overflow: hidden;border-radius: 12px;background-color: #2a2a2a;}
#docs .card a {display: grid;grid-template-columns: 210px calc(100% - 210px);max-height: 210px;min-height: 140px;text-decoration: none;}
#docs .card-image {position: relative;pointer-events: none;}
#docs .card-image img {width: 100%;height: 100%;object-fit: cover;position: absolute;pointer-events: inherit;}
#docs .card-content {padding: 20px 24px;pointer-events: none;}
#docs .card-content h3 {color: #fff;font-family: 'Inter';font-weight: 600;font-size: 16px;pointer-events: inherit;}
#docs .card-content .text {color: var(--grey-350);font-family: 'Inter';font-weight: 500;font-size: 16px;word-wrap: break-word;pointer-events: inherit;}

/*---Footer--------------------------------------------------------------------*/
footer {background-color: #000;color: #fff;font-size: 12px;padding: 78px 75px 48px;font-family: 'Mont-Light', sans-serif;}
footer .fat {display: flex;flex-direction: row;justify-content: space-between;margin-bottom: 30px;}
footer a {color: #fff;}
footer a:hover {color: var(--blue-mm);}
footer img {height: 52px;margin-right: 170px}
footer h4 {font-family: 'Mont-Bold', sans-serif;font-size: 14px;margin-bottom: 25px;text-transform: uppercase;}
footer nav ul li + li {margin-top: 8px;}
#newsletter p {margin-bottom: 10px;}
footer form {display: flex;}
footer form button {background-color: var(--blue-mm);color: #fff;height: 30px;line-height: 30px;width: 74px;text-align: center;}
footer form input {height: 30px;line-height: 30px;font-size: 12px;padding: 0 10px;width: 200px;}
footer #copyright {font-size: 11px;}

#galleryListFooter {display: flex;flex-direction: row;gap: 10px;justify-content: flex-start;justify-items: flex-start;--square-side: 82px;}
#galleryListFooter li, #galleryListFooter li a, #galleryListFooter li a img {width: var(--square-side);height: var(--square-side);display: block;}
#galleryListFooter li a img {pointer-events: none;}

@media (width <= 500px){
	/*---layout------------------------*/
	main {display: block;}
	aside {position: fixed;border: none;top: 60px;width: 100%;background-color: var(--main-bg-col);display: none;}
	aside.on {display: block;}
	#relatedToPage {display: none;}

	/*---header------------------------*/
	header {padding-inline: 30px;grid-template-columns: 85px 1fr 22px;}
	header div:nth-child(3) {justify-self: end;}
	#sandwich {display: inline-block;width: 22px;height: 16px;background: url('../images/sandwich.svg') 0 0 / 44px 16px no-repeat;}

	/*---footer------------------------*/
	footer .fat {flex-direction: column;gap: 50px;}
}