*,
*::after,
*::before {
    box-sizing: border-box;
}

:root {
    /* Height of the sticky site header. The header only sticks from 1264px up,
       so anything that pins itself to the top offsets by this. */
    --header-height: 0px;

    --text-primary: #252F44;
    --text-secondary: #4E5A71;
    --text-tertiary: #606D86;
    --text-muted: #9CA3AF;
}

@media (min-width: 1264px) {
    :root {
        --header-height: 125px;
    }
}

html {
    scroll-behavior: smooth;
    /* keep in-page anchors (post table of contents) clear of the sticky header */
    scroll-padding-top: calc(var(--header-height) + 16px);
}

html,
body {
    margin: 0;
    padding: 0;
    /* var() so Ghost's custom font settings can override the theme default */
    font-family: var(--gh-font-body, 'ReadexPro'), sans-serif;
    background: #f1f1f6;
}

body.post-template {
    background: #fff;
}

h6,
h5,
h4,
h3,
h2,
h1,
p {
    margin: 0;
}

h6,
h5,
h4,
h3,
h2,
h1 {
    font-family: var(--gh-font-heading, 'ReadexPro'), sans-serif;
}

embed, iframe, object, video {
    max-width: 100%
}
abbr, dfn {
    text-decoration: underline dotted;
    cursor: help;
}
code {
    font-family: monospace, monospace;
    font-size: 12px;
    line-height: 2;
    padding: 8px 16px;
    color: var(--text-primary);
    background: #f5f5f5;
    letter-spacing: 0.1em;
}
pre {
    border: 1px solid #ededed;
    color: var(--text-primary);
    font-family: monospace, monospace;
    font-size: 12px;
    line-height: 2;
    overflow: auto;
    padding: 16px;
    background: #f5f5f5;
    overflow-x: auto;
}
pre code {
    display: block;
    background: none;
}

.container {
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
}

@media (min-width: 600px) {
    .container {
        max-width: 100%;
    }
}

@media (min-width: 960px) {
    .container {
        max-width: 900px;
    }
}

@media (min-width: 1264px) {
    .container {
        max-width: 1188px;
    }
}

@media (min-width: 1700px) {
    .container {
        max-width: 1544px;
    }

    .container.container_short {
        max-width: 1248px;
    }
}

@media (min-width: 1700px) {
    .short-wrap {
        max-width: 1248px;
        margin-left: auto;
        margin-right: auto;
    }
}

.main-body {
    padding-bottom: 48px;
}

@media (min-width: 960px) {
    .main-body {
        padding-bottom: 56px;
    }
}

@media (min-width: 1264px) {
    .main-body {
        padding-bottom: 64px;
    }
}

@media (min-width: 1700px) {
    .main-body {
        padding-bottom: 80px;
    }
}

.gap-sm {
    gap: 16px;
}

@media (min-width: 960px) {
    .gap-sm {
        gap: 20px;
    }
}

@media (min-width: 1264px) {
    .gap-sm {
        gap: 24px;
    }
}

@media (min-width: 1700px) {
    .gap-sm {
        gap: 32px;
    }
}

.rd-lg {
    border-radius: 12px;
}

@media (min-width: 960px) {
    .rd-lg {
        border-radius: 16px;
    }
}

.display-md {
    font-size: 24px;
    line-height: 32px;
}

@media (min-width: 960px) {
    .display-md {
        font-size: 28px;
        line-height: 48px;
    }
}

@media (min-width: 1264px) {
    .display-md {
        font-size: 40px;
        line-height: 56px;
    }
}

@media (min-width: 1700px) {
    .display-md {
        font-size: 48px;
        line-height: 64px;
    }
}

.display-sm {
    font-size: 20px;
    line-height: 28px;
}

@media (min-width: 960px) {
    .display-sm {
        font-size: 24px;
        line-height: 40px;
    }
}

@media (min-width: 1264px) {
    .display-sm {
        font-size: 32px;
        line-height: 48px;
    }
}

.display-xs {
    font-size: 20px;
    line-height: 24px;
}

@media (min-width: 960px) {
    .display-xs {
        font-size: 20px;
        line-height: 36px;
    }
}

@media (min-width: 1264px) {
    .display-xs {
        font-size: 28px;
        line-height: 40px;
    }
}

@media (min-width: 1700px) {
    .display-xs {
        font-size: 32px;
        line-height: 48px;
    }
}

.display-2xs {
    font-size: 16px;
    line-height: 20px;
}

@media (min-width: 960px) {
    .display-2xs {
        font-size: 20px;
        line-height: 32px;
    }
}

@media (min-width: 1264px) {
    .display-2xs {
        font-size: 28px;
        line-height: 36px;
    }
}

.text-xs {
    font-size: 12px;
    line-height: 16px;
}

@media (min-width: 1700px) {
    .text-xs {
        font-size: 12px;
        line-height: 20px;
    }
}

.text-sm {
    font-size: 12px;
    line-height: 16px;
}

@media (min-width: 1264px) {
    .text-sm {
        font-size: 14px;
        line-height: 20px;
    }
}

@media (min-width: 1700px) {
    .text-sm {
        font-size: 14px;
        line-height: 24px;
    }
}

.text-md {
    font-size: 12px;
    line-height: 16px;
}

@media (min-width: 960px) {
    .text-md {
        font-size: 14px;
        line-height: 20px;
    }
}

@media (min-width: 1264px) {
    .text-md {
        font-size: 16px;
        line-height: 24px;
    }
}

@media (min-width: 1700px) {
    .text-md {
        font-size: 16px;
        line-height: 28px;
    }
}

.text-lg {
    font-size: 14px;
    line-height: 20px;
}

@media (min-width: 960px) {
    .text-lg {
        font-size: 14px;
        line-height: 24px;
    }
}

@media (min-width: 1264px) {
    .text-lg {
        font-size: 20px;
        line-height: 28px;
    }
}

@media (min-width: 1700px) {
    .text-lg {
        font-size: 20px;
        line-height: 32px;
    }
}

.text-xl {
    font-size: 16px;
    line-height: 24px;
}

@media (min-width: 960px) {
    .text-xl {
        font-size: 16px;
        line-height: 28px;
    }
}

@media (min-width: 1264px) {
    .text-xl {
        font-size: 24px;
        line-height: 32px;
    }
}

@media (min-width: 1700px) {
    .text-xl {
        font-size: 24px;
        line-height: 36px;
    }
}

.text-p {
    color: #252F44;
}

.text-s {
    color: var(--text-secondary);
}

.text-t {
    color: #606D86;
}

.text-m {
    color: #9CA3AF;
}

.fw-medium {
    font-weight: 500;
}

.fw-semibold {
    font-weight: 600;
}

.border-sm {
    border-width: 1px;
    border-style: solid;
}

/* button START */
/* Any rule that sets `display` (.button does) outranks the browser default for
   [hidden], so elements toggled through the attribute would stay on screen. */
[hidden] {
    display: none !important;
}

.button {
    font-family: 'ReadexPro', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    border-radius: 9999px;
    transition: 0.2s ease-out;
    outline: none;
    text-decoration: none;
}

.button__before,
.button__after {
    line-height: 0;
}

.button__before .icon,
.button__after .icon {
    font-size: inherit;
    line-height: inherit;
}

.button__before .icon {
    margin-right: 8px;
}

.button__after .icon {
    margin-left: 8px;
}

.button__after .icon.icon-chevron {
    transition: 0.3s ease-in-out;
}

.button__dropdown {
    position: absolute;
    left: -3px;
    right: -4px;
    top: calc(100% + 12px);
    z-index: -1;
    background: #2c3648;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
    border-radius: 16px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    user-select: none;
    transition: 0.3s linear;
}

.button_lg {
    padding: 14px 30px;
}

@media (min-width: 960px) {
    .button_lg {
        padding: 10px 30px;
    }
}

.button_md {
    padding: 10px 18px;
}

.button_sm {
    padding: 10px 14px;
}

@media (min-width: 1700px) {
    .button_sm {
        padding: 6px 14px;
    }
}

.button_xs {
    padding: 6px 10px;
}

@media (min-width: 1700px) {
    .button_xs {
        padding: 2px 10px;
    }
}

.button:hover {
    text-decoration: none !important;
}

/* PRIMARY */

.button_primary {
    background: #F74E00;
    border: 2px solid #F74E00;
    color: #FFFFFF;
}

.button_primary:not(.button_disabled):hover {
    background: #E64800;
    border-color: #E64800;
}

.button_primary:not(.button_disabled):focus,
.button_primary:not(.button_disabled):active {
    background: #E64800;
    border-color: #E64800;
    box-shadow: 0 0 0 4px #FFF4E6;
}

.button_primary.button_disabled {
    background: #FFE0CC;
    border-color: #FFE0CC;
    color: #FF7A33;
    cursor: not-allowed;
}

/* SECONDARY */

.button_secondary {
    background: transparent;
    border: 2px solid #F74E00;
    color: #2B304C;
}

.button_secondary:not(.button_disabled):hover {
    background: #FFF4E6;
    border-color: #E64800;
}

.button_secondary:not(.button_disabled):focus,
.button_secondary:not(.button_disabled):active {
    background: #FFF4E6;
    border-color: #FF9E66;
    box-shadow: 0 0 0 4px #FFF4E6;
}

.button_secondary.button_disabled {
    background: #FFE0CC;
    border-color: #FF7A33;
    color: #FF7A33;
    cursor: not-allowed;
}

/* DROPDOWN OPENED */

.button_dropdown-opened .button__dropdown {
    opacity: 1;
    pointer-events: auto;
    user-select: auto;
    z-index: 3;
}

.button_dropdown-opened .button__after .icon-chevron {
    transform: rotate(180deg);
}

/* button END */

/* link START */
.link:not(.button, .base-button),
a:not(.button, .base-button) {
    color: #e64800;
    text-decoration: underline;
}

.link:not(.button, .base-button):focus,
a:not(.button, .base-button):focus {
    color: #cc3e00;
}

.link:not(.button, .base-button):hover,
a:not(.button, .base-button):hover {
    color: #cc3e00;
}

.link.link_with-arrow {
    text-decoration: none;
    display: inline-block;
    width: fit-content;
}

.link.link_with-arrow .icon {
    width: 0.7em;
    height: 0.7em;
    vertical-align: middle;
    margin-left: 0.25em;
}

@media (min-width: 1264px) {

    .link:not(.button, .base-button):hover,
    a:not(.button, .base-button):hover {
        transition: 0.2s ease-in-out;
    }

    .link.link_with-arrow:hover .icon,
    .link.link_with-arrow:focus .icon {
        transform: translateX(0.15em);
    }

    .link.link_with-arrow .icon {
        transition: 0.2s ease-in-out;
    }
}

/* link END */

/* breadcrumbs START */
.breadcrumbs {
    display: none;
}

@media (min-width: 960px) {
    .breadcrumbs {
        display: block;
    }
}

.breadcrumbs__list {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 8px 0 16px 0;
    margin: 0;
    color: #E64800;
    font-size: 12px;
    line-height: 16px;
    list-style: none;
}

@media (min-width: 1264px) {
    .breadcrumbs__list {
        font-size: 14px;
        line-height: 24px;
    }
}

.breadcrumbs__item:not(:last-child):after {
    content: "/";
    margin-left: 6px;
    line-height: 0;
}

.breadcrumbs__item [aria-current="page"] {
    display: list-item;
    max-width: 400px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #9CA3AF;
    line-height: inherit;
}

/* breadcrumbs END */


/* section-header.hbs START */
.section-header {
    padding-block: 16px;
}

.section-header__title {
    text-align: center;
    margin-block: 0;
}

.section-header .section-header__title+.search-block {
    margin-top: 16px;
}

@media (min-width: 960px) {
    .section-header {
        padding-block: 20px;
    }

    .section-header .section-header__title+.search-block {
        margin-top: 24px;
    }
}

@media (min-width: 1264px) {
    .section-header {
        padding-block: 24px;
    }

    .section-header .section-header__title+.search-block {
        margin-top: 40px;
    }
}

@media (min-width: 1700px) {
    .section-header {
        padding-block: 32px;
    }

    .section-header .section-header__title+.search-block {
        margin-top: 48px;
    }
}

/* section-header.hbs END */

/* input START */
.base-input,
.base-textarea {
    color: var(--text-secondary);
    border-color: #d1d5db;
    background-color: #fff;
    width: 100%;
    max-width: 100%;
    outline: none;
    appearance: none;
    padding: 8px 40px 8px 16px;
    font-family: 'ReadexPro', sans-serif;
}

.base-input {
    border-radius: 9999px;
    min-height: 34px;
}

.base-textarea {
    border-radius: 12px;
    min-height: 100px;
    resize: vertical;
}

.base-input::placeholder,
.base-textarea::placeholder {
    color: #9CA3AF;
}

.base-input:not(:disabled):hover,
.base-textarea:not(:disabled):hover {
    border-color: #9CA3AF;
}

.base-textarea:not(:disabled):focus,
.base-textarea:not(:disabled):focus-within,
.base-input:not(:disabled):focus,
.base-input:not(:disabled):focus-within {
    border-color: #7FB2FF;
    box-shadow: 0 0 0 4px #EAF3FF;

}

.base-input:disabled,
.base-textarea:disabled {
    border-color: #D1D5DB;
    background-color: #E5E7EB;
    color: #9CA3AF;
    cursor: not-allowed;
}

@media (min-width: 960px) {
    .base-input {
        min-height: 38px;
    }
}

@media (min-width: 1264px) {
    .base-input {
        min-height: 42px;
        transition: 0.2s ease-out;
    }

    .base-textarea {
        border-radius: 16px;
    }
}

@media (min-width: 1700px) {
    .base-input {
        min-height: 46px;
    }
}

.form-helper {
    display: block;
    margin-top: 4px;
    color: #EF4444;
}

/* search suggestions + results page START */
/* The dropdown is absolute inside whichever field wrapper it is attached to. */
.search-block__wrap,
.hheader .top-search-block__inner,
.hheader .search-input {
    position: relative;
}

.search-suggest {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    max-height: 320px;
    overflow-y: auto;
    padding: 4px;
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow: 0 8px 24px rgba(43, 48, 76, 0.16);
}

.search-suggest__item,
.search-suggest__all,
.search-suggest__empty {
    padding: 8px 12px;
    border-radius: 8px;
    color: #2B304C;
    text-decoration: none;
}

.search-suggest__item:hover,
.search-suggest__all:hover {
    background-color: #F1F1F6;
}

.search-suggest__all {
    color: #F25822;
    border-top: 1px solid #E5E5EC;
    border-radius: 0 0 8px 8px;
}

.search-suggest__empty {
    margin: 0;
    color: #6C757D;
}

.search-results__title {
    margin-bottom: 8px;
}

.search-results__meta {
    margin-top: 0;
    margin-bottom: 24px;
    color: #6C757D;
}

.search-results [data-search-more] {
    margin-top: 24px;
}

/* search suggestions + results page END */

.search-block__wrap {
    position: relative;
}

.search-block__input::-webkit-search-cancel-button {
    display: none;
}

.search-block__button {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    outline: none;
    padding: 0;
    width: 20px;
    height: 20px;
    background-image: url(../images/search-icon.svg);
    cursor: pointer;
}

/* Input END */

/* meta START */
.meta {
    color: var(--text-tertiary);
}

a.meta__author {
    color: var(--text-tertiary);
    text-decoration: underline;
}

a.meta__author:hover,
a.meta__author:focus {
    color: #505b6e;
}

/* meta END */

.load-more {
    width: 100%;
    display: block;
    margin-top: 16px;
}

@media (min-width: 960px) {
    .load-more {
        width: fit-content;
        margin: 0 auto;
        margin-top: 20px;
    }
}

@media (min-width: 1264px) {
    .load-more {
        margin-top: 24px;
    }
}

@media (min-width: 1700px) {
    .load-more {
        margin-top: 32px;
    }
}

/* Socials START */
.socials {
    display: flex;
    align-items: center;
    gap: 16px;
    line-height: 0;
    color: var(--text-tertiary);
}

.socials .icon {
    width: 30px;
    height: auto;
    flex: 0 0 30px;
    color: var(--text-secondary);
}

.socials a:hover .icon {
    color: #F74E00;
}

@media (min-width: 1264px) {
    .socials a:hover .icon {
        transition: 0.2s ease-out;
    }
}

/* Socials END */

/* feedback START */
.feedback {
    display: grid;
}

.feedback__title {
    margin-bottom: 8px;
    text-align: center;
}

.feedback__btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feedback__btn {
    min-width: 148px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.feedback__form {
    display: grid;
    gap: 16px;
}

.feedback__form-btn {
    min-width: 128px;

}

@media (min-width: 960px) {
    .feedback__title {
        margin-bottom: 12px;
    }

    .feedback__btns {
        flex-direction: row;
        justify-content: center;
    }

    .feedback__form-btn {
        justify-self: start;
    }
}

@media (min-width: 1264px) {
    .feedback__title {
        margin-bottom: 16px;
    }

    .feedback__btns {
        gap: 12px;
    }
}

@media (min-width: 1700px) {
    .feedback__title {
        margin-bottom: 20px;
    }
}

/* feedback END */

/*
3 post layouts:
    1. grid-default
    2. grid-list
    3. grid-hero
*/
.grid-default {
    display: grid;
}

@media (min-width: 960px) {
    .grid-default {
        grid-template-columns: repeat(3, 1fr);
    }
}

.grid-list {
    display: flex;
    flex-direction: column;
}

.grid-list__right {
    display: grid;
    gap: 16px;
}

@media (min-width: 960px) {
    .grid-list__right {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1264px) {
    .grid-list {
        flex-direction: row;
    }

    .grid-list>.post-card {
        width: calc(50% - 12px);
        flex: 0 0 calc(50% - 12px);

        display: flex;
        flex-direction: column;
    }

    .grid-list>.post-card .post-card__content {
        flex: 1;
    }

    .grid-list__right {
        width: calc(50% - 12px);
        flex: 0 0 calc(50% - 12px);
        grid-template-columns: none;
        grid-template-rows: repeat(3, auto);
    }
}

@media (min-width: 1700px) {
    .grid-list>.post-card {
        width: calc(50% - 16px);
        flex: 0 0 calc(50% - 16px);
    }

    .grid-list__right {
        width: calc(50% - 16px);
        flex: 0 0 calc(50% - 16px);
        gap: 24px;
    }
}

.grid-hero {
    display: grid;
    gap: 16px;
}

@media (min-width: 960px) {
    .grid-hero {
        gap: 16px 20px;
        grid-template-columns: repeat(6, 1fr);
    }

    .grid-hero .post-card:nth-child(1) {
        grid-column: 1 / -1;
    }

    .grid-hero .post-card:nth-child(n + 2) {
        grid-column: span 2;
    }

    .grid-hero .post-card:first-child:nth-last-child(3) ~ .post-card {
        grid-column: span 3;
    }

    .grid-hero .post-card:first-child:nth-last-child(2) ~ .post-card {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1264px) {
    .grid-hero {
        gap: 20px 24px;
    }
}

@media (min-width: 1700px) {
    .grid-hero {
        gap: 24px 32px;
    }
}

/* layout END */

/* subnav START */

.subnav {
    overflow-x: auto;
    scrollbar-width: none;

    top: 0px;
    position: sticky;
    z-index: 2;
    background: #f1f1f6;
    padding-right: 65px;
    mask-image: linear-gradient(to right, black 0, black calc(100% - 65px), transparent 100%);
    width: calc(100% + 20px);
    margin-bottom: 16px;
}

.subnav::-webkit-scrollbar {
    display: none;
}

@media (min-width: 960px) {
    .subnav {
        width: 100%;
        padding-right: 0;
        mask-image: none;
        margin-bottom: 20px;
    }
}

@media (min-width: 1264px) {
    .subnav {
        /* the header slides away as soon as the subnav reaches it, so the
           subnav pins to the very top of the screen, not under the header */
        top: 0;
        margin-bottom: 24px;
    }
}

@media (min-width: 1700px) {
    .subnav {
        margin-bottom: 32px;
    }
}

.subnav-list {
    display: flex;
    gap: 36px;
    align-items: center;
    justify-self: center;
    margin: 0 auto;
    list-style: none;
    padding: 10px 0;
    white-space: nowrap;
    position: relative;
}

.subnav-list:after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    pointer-events: none;

    background: linear-gradient(90deg,
            transparent 0%,
            rgba(0, 0, 0, 0.12) 15%,
            rgba(0, 0, 0, 0.12) 85%,
            transparent 100%);

    opacity: 0;
    transition: opacity 0.2s;
}

/* --is-sticky flips on a scroll threshold (js/sticky-subnav.js), so it must
   not change the size of anything: a layout shift there makes the browser's
   scroll anchoring push the page back over the threshold, and the classes
   flip back and forth forever */
.subnav--is-sticky .subnav-list:after {
    opacity: 1;
}


a.subnav-link {
    position: relative;
    color: var(--text-secondary);
    text-decoration: none;
    transition: 0.2s ease;
    padding-bottom: 4px;
}

a.subnav-link:after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: #F74E00;

    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

a.subnav-link:hover,
a.subnav-link:focus {
    color: var(--text-secondary);
}

a.subnav-link:hover:after,
a.subnav-link.subnav-link--active:after {
    transform: scaleX(1);
}

/* subnav END */

/* error page styles START */
.error-page__wrap {
    display: grid;
}

.error-page__title,
.error-page__text {
    margin-bottom: 20px;
}

.error-page__more-wrap {
    display: grid;
}

@media (min-width: 1264px) {
    .error-page__wrap {
        grid-template-columns: 4fr 3fr;
        align-items: center;
    }
}

/* error page styles END */