@import url('https://fonts.googleapis.com/css2?family=Karla:ital,wght@0,400;0,600;0,700;1,300;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:wght@500&display=swap');

:root,
html body {
  /* Fonts */
  --font-family: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-family-heading: 'EB Garamond', serif;
  --font-family-text: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Colors */
  --color-brand: #041E42;

  --color-primary: #041E42;
  --color-secondary: #41b6e6;

  --color-text: #53565a; /*#00163c; */
  --color-heading: #00163c;
  --color-page-background: #f8f9fb;
  --color-header-dark: var(--color-primary);
  --color-page-footer-background: var(--color-primary);
  --button-secondary-border-color: transparent;
  --field-hover-border-color: var(--color-brand); /* field border (hover) */
  --field-focus-border-color: var(--color-secondary);
  --field-border-radius: 1.5rem;


  /* Link */
  --color-link: var(--color-brand);

  /* Buttons */
  --button-secondary-color: var(--color-secondary);
  --button-primary-background-color: var(--color-secondary);
  --button-secondary-background-color: transparent;
  --button-secondary-border-color: var(--color-secondary);
  --button-primary-hover-background-color: var(--color-secondary-hover);
  /* SECONDARY */
  --button-secondary-background-color: #fff;
  --button-secondary-border-color: var(--color-secondary);
  --button-secondary-color: var(--color-secondary);
  --button-secondary-hover-background-color: var(--color-secondary-fade);


  /* Section */
  --section-border-radius: 4px;
  --section-box-shadow: 0 4px 6px 1px rgba(79, 88, 111, 0.06), 0 0 1px 1px rgba(79, 88, 111, 0.02);
  --section-background-color: #fff;
  /*
  --section-box-shadow-color: transparent;
  --section-box-shadow: 0 0 0 0 transparent;
  --section-box-shadow-hover: 0 0 0 0 transparent;
  --section-padding: 0;
  --section-border: none;


  /* Field */
  /*
  --field-border-radius: 2px;
  --field-disabled-color: #b5bbc5;
  --field-disabled-background-color: #fdfdfd;
  --field-disabled-border-color: #f5f6f7;
  --field-focus-border-color: var(--color-secondary);
  */

  /* Card */
  /*
  --card-border-radius: 0;
  --card-border: 1px solid #E9E9E9;
  */
}

/* RADIO */

label > input + .radio-button {
  --size: 1.25rem;
  --radio-border-color: #545e65;
  border: var(--checkbox-border-width) solid var(--radio-border-color);
  border-radius: 50%;
  box-shadow: var(--focusable-box-shadow);
  color: var(--color-secondary);
}

label > input:checked:not(:disabled) + .radio-button {
  border-color: var(--color-secondary);
}

body h1 {
  font-family: var(--font-family-heading);
  font-size: var(--font-size-huge);
  font-weight: 500;
  line-height: 1.33;
}

body h2 {
  color: var(--color-primary);
  font-size: var(--font-size-x-large);
  font-family: var(--font-family-heading);
  font-weight: 500;
  line-height: 1.4;
}

body h3 {
  color: #53565a;
  font-size: var(--font-size-large);
  font-family: var(--font-family-heading);
  font-weight: 500;
  line-height: 1.4;
}

body .landing-content,
body .offering-details {
  --font-family-heading: 'EB Garamond', serif;
}

body .landing-article,
body .page-content.offering-details,
body .terms-of-use,
body .privacy-policy {
  --font-size-huge: 3rem;
  --font-size-x-large: 2.25rem;
  --font-size-large: 1.5rem;
  --font-size-medium: 1rem;
  --font-size-small: 0.8rem;
  line-height: 1.33;
}

body .landing-article p,
body .page-content.offering-details p,
body .terms-of-use p,
body .privacy-policy p {
  line-height: 1.5;
}

.terms-of-use h2,
.privacy-policy h2 {
  margin-top: var(--gap-huge);
}

body .landing-article h3:not(:first-child),
body .page-content.offering-details h3:not(:first-child),
.terms-of-use h3:not(:first-child),
.privacy-policy h3:not(:first-child) {
  margin-top: var(--gap-large);
}

body .landing-credo h1,
body .offering-details h1,
body .offering-details h2,
body .offering-details h3,
body .offering-details h4 {
  text-transform: uppercase;
}

body .button {
  font-family: var(--font-family);
}

body ul:not([class]) {
  list-style: disc;
}

body ul:not([class]) > li:before {
  content: none;
}

body .offering-tile {
  --offering-banner-aspect-ratio: calc(9 / 16);
}


/* HEADER ----------------------------------------------------- */

/*
body .main-header .hamburger-menu-content .tablet-user-name {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
body .main-header .hamburger-menu-content .menu-list {
  align-items: center;
}
body .main-header .hamburger-menu-content .menu-link {
  padding: var(--gap-tiny) var(--gap-huge);
  white-space: nowrap;
}
*/

body .main-header .hamburger-menu-content li {
  align-items: start;
  width: 100%;
}

body .main-header .hamburger-menu-content li.button {
  width: fit-content;
  margin-right: auto;
}

body .main-header .hamburger-menu-content li:not(.button) > a.active {
  background-color: #fff;
}

body .main-header .hamburger-menu-content li .menu-button {
  width: fit-content;
}

/* Mobile Menu */
body .main-header .hamburger-menu-content .tablet-user-name {
  color: var(--color-secondary);
}

/* PAGE HEADERS -----------------------------   */
html body main .page-content header.page-header {
  padding-bottom: 0;
  margin-bottom: 0;
}

body main .page-header .title-wrapper > h1 {
  font-weight: 500;
}

/* LANDING PAGE ------------------------------------------------------------- */

body .landing-page > .hero-image {
  display: none !important;
}

body .landing-page > .landing-hero-wrapper {
  display: none;
}

body .landing-page > .page-content > .landing-join {
  display: none;
}

body .landing-page > .page-content.landing-content > .landing-about {
  display: none;
}

body .landing-page > .page-content.cols-1:not(.landing-content) {
  display: none;
}

body .landing-page .restricted-offerings-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: var(--gap-large) auto;
  background-color: rgba(84, 192, 232, 0.1);
  padding: var(--gap);
}

body .landing-page .page-content {
  background-color: #fff;
}

body .landing-page .page-content:last-child {
  padding-bottom: 3rem;
  padding-top: 5.375rem;
}

body .landing-page .page-content.landing-content .landing-article p {
  max-width: 75rem;
}

body .landing-page .landing-article,
body .landing-page .landing-article p {
  font-size: 1.125rem;
}

/* FOOTER ------------------------------------------------------------- */

body .main-footer {
  padding-bottom: var(--gap-huge);
}

body .main-footer .copyright {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding: var(--gap);
  color: #858da0;
}

/* OFFERING TILE ------------------------------------------------------------- */

main .offering-brief,
main .offering-brief .details {
  color: inherit;
}

main .offering-brief .details .type {
  min-height: 1rem; /* make it smaller */
}

main .offering-brief .details .name {
  color: inherit;
  font-size: var(--font-size-large);
  line-height: 1.2;
  font-family: var(--font-family-heading);
  font-weight: normal;
}

main .offering-brief .details .issuer {
  line-height: 1.25;
}

/* OFFERING DETAILS PAGE ----------------------------------------------------- */

@media (min-width: 63rem) {
  body .page-content.offering-details {
    grid-template-columns: minmax(25ch, 1fr) 4fr;
  }

  .offering-details .page-section {
    overflow: hidden;
  }
}

body .offering-details-aside > .offering-details-invest-block {
  background: none;
  margin: 0;
  align-items: center;
}

body .offering-details-aside > .offering-details-invest-block > .actions {
  margin: 0;
  justify-content: space-evenly;
  display: flex;
  width: 100%;
}

body .offering-details-aside > .offering-details-invest-block > .actions .button {
  font-size: var(--font-size-small);
}

/*
body .page-content.offering-details > .offering-details-aside > .offering-details-nav {
  background-color: #f0eeee;
}
*/
body .offering-details .menu-item {
  font-family: var(--font-family-text);
}

@media (min-width: 63rem) {
  body main .page-content.offering-details > .block-header {
    grid-column: 2;
    margin-bottom: 0;
  }

  body main .page-content.offering-details > .offering-details-aside {
    grid-row: 1/span 3;
  }
}


@media (min-width: 48rem) {
  body .offering-details-overview {
    grid-template: "title ."
"image properties" min-content/2fr 1fr;
  }
}

body .offering-details-overview > .offering-properties {
  align-items: start;
  display: grid;
  grid-area: properties;
  grid-gap: 1.5rem;
  grid-auto-rows: min-content;
  grid-gap: var(--gap);
  grid-template-columns: 1fr;
}

body .offering-details-overview > img {
  height: auto;
  position: static;
  width: auto;
}

.additional-offering-properties {
  display: grid;
  grid-gap: 1.5rem;
  grid-gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin-top: var(--gap);
}

.additional-offering-properties .label {
  color: #73798a;
  color: var(--color-text-secondary);
  display: block;
  font-size: var(--font-size-tiny);
  text-transform: uppercase;
}

.additional-offering-properties .value {
  display: block;
  padding: 0;
}

.offering-details-overview {
  grid-template: 'image' 'properties';
}

.offering-details-overview .offering-brief {
  display: none;
}

@media (min-width: 768px) {
  .offering-details-overview {
    grid-template: 'image properties' min-content / 2fr 1fr;
  }
}

@media (min-width: 768px) {
  .offering-details > .offering-details-invest-block {
    display: none;
  }
}

/* INVESTMENTS FLOW ----------------------------------------------------------- */
main .page-content.invest:before {
  background-color: var(--color-brand);
}

main .page-content.invest header:first-of-type > h2 {
  font-size: 24px;
  font-weight: 500;
  font-family: var(--font-family-heading);
  color: #53565a;
  text-transform: uppercase;
}

body .stepper {
  --complete-background-color: var(--color-secondary);
}

body label.option.client-radio-option input:checked + span,
body label.option.investor-radio-option input:checked + span {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
}

/*
main .page-content.invest:before {
  background-color: #0d2333;
}
main .page-content.invest .offering-brief {
  padding-left: 0;
  padding-right: 0;
}

@media (max-width: 48rem) {
  main .page-content.invest {
    grid-template-rows: calc(var(--header-height)) auto auto auto 1fr;
  }
}

@media (min-width: 48rem) {
  main .page-content.invest aside {
    color: #fff;
  }
  main .page-content.invest .offering-brief {
    background-color: #0d2333;
    z-index: 2;
  }
  main .page-content.invest .offering-brief .logo {
    border-color: #485465;
  }

  main .page-content.invest .stepper {
    --line-color: #4e576a;
    --text-color: #8e94a4;
    --text-disabled-color: #4e576a;
    --complete-icon-color: #fff;
    --complete-background-color: #81c467;
    --active-text-color: #fff;
    --active-bullet-background-color: #0d2333;
    --active-border-color: #fff;
    --bullet-border: #caccd3;
    --bullet-background: #0d2333;
  }
}
*/

/* LIST WITH BORDERS ---------------------------- */

ul.bordered {
  list-style: none;
  padding: 0;
  font-size: var(--font-size-medium);
  margin-top: 0;
}

ul.bordered > li {
  border-top: 2px solid;
  display: flex;
  padding: 0;
  flex-wrap: wrap;
  flex-direction: row;
  margin-bottom: var(--gap-large);
}

@media (max-width: 480px) {
  ul.bordered > li {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (min-width: 480px) {
  ul.bordered > li > h3 {
    width: 10rem;
    margin: var(--gap) var(--gap) var(--gap) 0;
    line-height: 1.4;
    flex-grow: 0;
  }

  ul.bordered > li > ul {
    margin-top: var(--gap-small);
    padding: 0;
    width: calc(100% - var(--gap) - 10rem);
  }
}

ul.bordered > li > ul > li:before {
  content: none;
}

ul.bordered > li > ul > li {
  padding: var(--gap-tiny) 0;
  margin: 0;
}

ul.bordered > li > ul > li:not(:first-child) {
  border-top: 1px solid #ccc;
}

/* LIST WITH ICONS ---------------------------- */

ul.has-icons > li {
  display: flex;
  align-items: center;
  margin: 0;
}

ul.has-icons.va-top > li {
  align-items: start;
}

ul.has-icons > li.alternate:not(:first-child) {
  margin-top: var(--gap-small);
}

ul.has-icons > li > svg:first-child,
ul.has-icons > li > img:first-child {
  color: #004A98;
  width: 64px;
  height: 64px;
  object-fit: contain;
  object-position: center;
  margin-right: var(--gap);
}

/* 2 COLUMNS (LIST, DIV)  ---------------------------- */
ul.columns-2,
div.columns-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(40ch, 1fr));
  grid-gap: var(--gap);
}

@media (max-width: 767px) {
  ul.columns-2,
  div.columns-2 {
    grid-template-columns: repeat(auto-fit, minmax(30ch, 1fr));
  }
}

/* ORDERED LIST: CIRCLE MARKERS ---------------------------- */

ul li ul.decimal,
ul.decimal {
  list-style: none;
  counter-reset: c;
}

ul li ul.decimal li,
ul.decimal li {
  padding-left: 0;
  min-height: 4rem;
  display: flex;
  align-items: center;
  position: relative;
}

ul li ul.decimal li:before,
ul.decimal li:before {
  margin: 0.5rem calc(0.5rem + var(--gap)) 0.5rem 0.5rem;
  counter-increment: c;
  content: counter(c);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  background-color: #004a98;
  color: #fff;
  font-weight: bold;
  flex-grow: 0;
  flex-shrink: 0;
  font-family: sans-serif;
}

/* LIST ITEM - ALTERNATE ------------------------------------- */

.alternate,
ul > li > ul > li.alternate,
ul > li.alternate {
  color: var(--color-primary);
}

ul > li > ul > li.alternate:before {
  display: none;
}

div.alternate {
}


/* TABLES - BRAND ---------------------------- */

body .custom-html table.brand {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

body .custom-html table.brand td,
body .custom-html table.brand th {
  padding: var(--gap-small);
}

body .custom-html table.brand thead th,
body .custom-html table.brand tfoot th {
  font-family: var(--font-family-heading);
  text-transform: uppercase;
  font-weight: 500;
}

body .custom-html table.brand th.alt,
body .custom-html table.brand.all-numbers th.alt {
  background-color: var(--color-secondary);
  color: #fff;
}

body .custom-html table.brand td {
  font-size: var(--font-size-medium);
  border: 1px solid #d4d8de;
  color: var(--color-text);
}

body .custom-html table.brand.all-numbers td {
  background-color: var(--color-page-background);
}

body .custom-html table.brand.all-numbers td:before {
  background-color: #fff;
}

body .custom-html table.brand thead th {
  color: var(--color-secondary);
  border: 1px solid #d4d8de;
  border-top: none;
  border-right: none;
  margin-bottom: 0.125rem;
  text-align: left;
}

body .custom-html table.brand thead th:first-of-type {
  color: #fff;
  background-color: var(--color-secondary);
}

body .custom-html table.brand.all-numbers thead th {
  background-color: var(--color-primary);
  color: #fff;
  border: 1px solid #fff;
}

body .custom-html table.brand tbody th {
  background-color: var(--color-primary);
  border: 1px solid #fff;
  font-weight: normal;
  color: #fff;
  text-align: left;
  vertical-align: top;
}

body .custom-html table.brand tbody th h3 {
  color: inherit;
  font-size: 1.25rem;
}

body .custom-html table.brand tfoot th {
  text-align: left;
  color: var(--color-primary);
  background-color: #fff;
  border: 1px solid #d4d8de;
}

body .custom-html table.brand tfoot td {
  color: var(--color-primary);
  font-size: var(--font-size-medium);
  font-weight: bold;
}

@media (max-width: 767px) {
  body .custom-html table.brand {
    border-collapse: separate;
    max-width: calc(100% - 2px);
  }

  body .custom-html table.brand thead {
    display: none;
  }

  body .custom-html table.brand tbody {
    display: grid;
  }

  body .custom-html table.brand tbody tr {
    align-items: stretch;
    display: flex;
    flex-direction: column;
  }

  body .custom-html table.brand tbody th,
  body .custom-html table.brand tbody td {
    align-items: center;
    align-self: stretch;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    min-height: 3rem;
    overflow: hidden;
    padding: 0 1rem 0 0;
    text-align: left;
    text-overflow: ellipsis;
  }

  body .custom-html table.brand tbody th {
    border: none;
  }

  body .custom-html table.brand tbody td {
    border-top: none;
  }

  body .custom-html table.brand tbody th:before,
  body .custom-html table.brand tbody td:before {
    align-items: center;
    align-self: stretch;
    border-right: 1px solid var(--color-table-border);
    content: attr(data-col);
    display: flex;
    margin-right: 1rem;
    min-width: 30%;
    padding-left: 8px;
    padding-right: 12px;
    text-align: left;
    text-transform: uppercase;
    white-space: normal;
    word-break: break-word;
    width: 30%;
  }

  body .custom-html table.brand tbody th:before {
    border: none;
    background-color: var(--color-secondary);
  }

  body .custom-html table.brand tbody td:before {
    color: var(--color-secondary);
    font-family: var(--font-family-heading);
    text-transform: uppercase;
    font-weight: 500;
  }
}

/* Form */

form.form > footer {
  justify-content: flex-end;
}

.ta-center {
  text-align: center;
}

div.invert {
  background-color: var(--color-primary);
  color: #fff;
  padding: var(--gap-small) var(--gap) var(--gap);
}

div.invert h3 {
  color: var(--color-secondary);
}

div.invert p {
  font-size: var(--font-size-small);
}

.button.primary:hover {
  background-color: #fff !important;
  color: var(--color-brand) !important;
}

body .main-header nav.signed-out.desktop .button.flat > a,
body .main-header nav.signed-out.desktop .button.primary > a {
  padding-left: 2rem;
  padding-right: 2rem;
}

body .main-logo.link > img {
  height: auto !important;
  width: 12rem;
}

@media (max-width: 767px) {
  label.option.client-radio-option > span .email {
    text-overflow: ellipsis;
    max-width: 72vw;
    overflow: hidden;
  }
}

.profile-details-page .side-menu-list li.menu-item:last-child {
  display: none;
}
