/* Content from the old WordPress editor (descriptions in .rich-text), styled exactly the way the old theme styled it.
   These are the old rules that reach such content (found with the browser over many pages), in the old order:
   block-library, theme style.css, theme main.css, then the description block rules from single.css.
   Specificity keeps the old relations: element rules (.rich-text p) < content classes (.rich-text .wp-x)
   < description block rules (.investment-main .rich-text p). Content classes carry the "wp-" prefix (sanitize_html). */

/* ---------- wp-includes block-library ---------- */

.rich-text ol,
.rich-text ul {
    box-sizing: border-box;
}

.rich-text .wp-has-text-align-center {
    text-align: center;
}

.rich-text .wp-has-text-align-left {
    text-align: left;
}

.rich-text .wp-has-text-align-right {
    text-align: right;
}

/* ---------- theme style.css ---------- */

.rich-text .wp-text-left {
    text-align: left;
}

.rich-text .wp-text-right {
    text-align: right;
}

.rich-text .wp-d-flex {
    display: flex;
    flex-wrap: wrap;
}

.rich-text .wp-align-items-center {
    align-items: center !important;
}

.rich-text .wp-justify-content-center {
    justify-content: center !important;
}

.rich-text .wp-hero {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.rich-text .wp-hero img {
    display: block;
    max-width: 100%;
}

/* ---------- theme main.css: UIkit base ---------- */

.rich-text a {
    color: #e8132f;
    text-decoration: none;
    cursor: pointer;
}

.rich-text a:hover {
    color: #db0707;
    text-decoration: underline;
}

.rich-text b,
.rich-text strong {
    font-weight: bolder;
}

.rich-text em {
    color: #f0506e;
}

.rich-text ins,
.rich-text mark {
    background: #ffd;
    color: #666;
}

.rich-text small {
    font-size: 80%;
}

.rich-text sub,
.rich-text sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

.rich-text sup {
    top: -0.5em;
}

.rich-text sub {
    bottom: -0.25em;
}

.rich-text img {
    vertical-align: middle;
    max-width: 100%;
    height: auto;
    box-sizing: border-box;
}

.rich-text address,
.rich-text dl,
.rich-text figure,
.rich-text ol,
.rich-text p,
.rich-text pre,
.rich-text ul {
    margin: 0 0 20px;
}

.rich-text * + address,
.rich-text * + dl,
.rich-text * + figure,
.rich-text * + ol,
.rich-text * + p,
.rich-text * + pre,
.rich-text * + ul {
    margin-top: 20px;
}

.rich-text h1,
.rich-text h2,
.rich-text h3,
.rich-text h4,
.rich-text h5,
.rich-text h6 {
    margin: 0 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    font-weight: 400;
    color: #333;
    text-transform: none;
}

.rich-text * + h1,
.rich-text * + h2,
.rich-text * + h3,
.rich-text * + h4,
.rich-text * + h5,
.rich-text * + h6 {
    margin-top: 40px;
}

.rich-text h1 {
    font-size: 2.23125rem;
    line-height: 1.2;
}

.rich-text h2 {
    font-size: 1.7rem;
    line-height: 1.3;
}

.rich-text h3 {
    font-size: 1.5rem;
    line-height: 1.4;
}

.rich-text h4 {
    font-size: 1.25rem;
    line-height: 1.4;
}

.rich-text h5 {
    font-size: 16px;
    line-height: 1.4;
}

.rich-text h6 {
    font-size: 0.875rem;
    line-height: 1.4;
}

@media (min-width: 960px) {
    .rich-text h1 {
        font-size: 2.625rem;
    }

    .rich-text h2 {
        font-size: 2rem;
    }
}

.rich-text ol,
.rich-text ul {
    padding-left: 30px;
}

.rich-text ol > li > ol,
.rich-text ol > li > ul,
.rich-text ul > li > ol,
.rich-text ul > li > ul {
    margin: 0;
}

.rich-text dt {
    font-weight: 700;
}

.rich-text dd {
    margin-left: 0;
}

.rich-text hr {
    overflow: visible;
    text-align: inherit;
    margin: 0 0 20px;
    border: 0;
    border-top: 1px solid #e5e5e5;
}

.rich-text * + hr {
    margin-top: 20px;
}

.rich-text address {
    font-style: normal;
}

.rich-text blockquote {
    margin: 0 0 20px;
    font-size: 1.25rem;
    line-height: 1.5;
    font-style: italic;
}

.rich-text * + blockquote {
    margin-top: 20px;
}

.rich-text blockquote p:last-of-type {
    margin-bottom: 0;
}

.rich-text pre {
    font: 0.875rem/1.5 Consolas, monaco, monospace;
    color: #666;
    tab-size: 4;
    overflow: auto;
}

.rich-text pre code {
    font-family: Consolas, monaco, monospace;
}

/* ---------- theme main.css: theme rules ---------- */

.rich-text h1,
.rich-text h2,
.rich-text h3,
.rich-text h4 {
    font-family: Poppins, sans-serif;
}

.rich-text p,
.rich-text span,
.rich-text strong {
    font-family: Raleway, sans-serif;
}

.rich-text h2,
.rich-text h3,
.rich-text h4,
.rich-text h5,
.rich-text h6,
.rich-text p,
.rich-text span,
.rich-text strong {
    color: #000;
}

.rich-text a,
.rich-text a:hover {
    text-decoration: none;
}

/* "h3 h4" (an h4 inside an h3) is how the old theme wrote it. */
.rich-text h1,
.rich-text h2,
.rich-text h3 h4,
.rich-text h5,
.rich-text h6 {
    display: inline-block;
}

.rich-text,
.rich-text * {
    font-family: "Google Sans", "Manrope", sans-serif !important;
}

.rich-text h1,
.rich-text h2,
.rich-text h3 {
    font-family: "Google Sans", "Sora", sans-serif !important;
}

.rich-text p,
.rich-text span,
.rich-text strong {
    font-style: normal;
    font-weight: 400;
    font-size: 1em;
    line-height: 1.5;
}

.rich-text h3 {
    font-size: 1.5em;
    margin-top: 0.95833em;
    margin-bottom: 0.375em;
    font-weight: 600;
}

.rich-text h4 {
    font-size: 1.125em;
    font-weight: 500;
    line-height: 2;
}

.rich-text strong {
    font-weight: 600;
}

.rich-text h1 {
    padding: 20px 16px 7px;
    color: #000;
    font-size: 22px;
    display: block;
    max-width: 1264px;
    box-sizing: border-box;
    margin: 0 auto;
    font-weight: 700;
    text-transform: uppercase;
}

@media (min-width: 900px) {
    .rich-text h1 {
        padding: 40px 60px 7px;
    }
}

@media (min-width: 450px) {
    .rich-text h1 {
        font-size: 30px;
    }
}

.rich-text th {
    width: auto !important;
    text-align: center;
    border: solid #e8e8e8 1px;
    padding: 8px 16px;
}

.rich-text .wp-screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    color: #000;
    background: #fff;
}

.rich-text .wp-mt-0 {
    margin-top: 0;
}

/* ---------- theme single.css: the description block of an investment ---------- */

.investment-main .rich-text p {
    font-size: 15px;
    line-height: 1.75;
    color: var(--ink-2);
    margin: 0 0 12px;
}

.investment-main .rich-text p:last-child {
    margin-bottom: 0;
}

.investment-main .rich-text h3,
.investment-main .rich-text h4 {
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 700;
    margin: 26px 0 8px;
}

.investment-main .rich-text ul,
.investment-main .rich-text ol {
    margin: 0 0 12px;
    padding-left: 22px;
    font-size: 15px;
    line-height: 1.75;
    color: var(--ink-2);
}

.investment-main .rich-text li {
    margin: 0 0 6px;
}

.investment-main .rich-text a {
    color: var(--red);
    text-decoration: underline;
    text-underline-offset: 2px;
}
