.bp {
    --ink: #0b1b37;
    --text: #35435c;
    --quiet: #66748b;
    --blue: #1260ed;
    --paper: #ffffff;
    --tint: #f4f8ff;
    --line: #dce5f0;
    --serif: Newsreader, Georgia, serif;
    --sans: "DM Sans", Arial, sans-serif;

    padding-bottom: 96px;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
}

.bp h1,
.bp h2,
.bp h3,
.bp p {
    margin: 0;
}

.bp ul,
.bp ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.bp a:focus-visible,
.bp button:focus-visible {
    outline: 3px solid #ffb05c;
    outline-offset: 3px;
}

.bp [tabindex="-1"]:focus {
    outline: none;
}

.bp .bp-mono {
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}


/* Reading bar */

.bp-progress {
    position: sticky;
    top: 0;
    z-index: 1030;
    height: 0;
}

.bp-progress span {
    display: block;
    height: 3px;
    background: #1260ed;
    transform: scaleX(0);
    transform-origin: left;
}


/* Title */

.bp-head {
    max-width: 978px;
    margin: 0 auto;
    padding: 56px 24px 0;
}

.bp .bp-crumb {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 28px;
    font-size: 15px;
    font-weight: 500;
}

.bp-crumb a {
    color: var(--quiet);
    text-decoration: none;
}

.bp-crumb a:hover,
.bp-crumb a.is-on {
    color: var(--blue);
}

.bp-crumb svg {
    width: 7px;
    height: 10px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
}

.bp-head h1 {
    max-width: 860px;
    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(38px, 5vw, 64px);
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.bp .bp-intro {
    max-width: 760px;
    margin-top: 24px;
    color: var(--text);
    font-size: 18px;
    line-height: 1.5;
}

.bp-by {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px 32px;
    margin: 36px 0 32px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: var(--quiet);
    font-size: 15px;
}

.bp-who {
    display: flex;
    align-items: center;
    gap: 14px;
    color: inherit;
    line-height: 1.4;
    text-decoration: none;
}

.bp-who img,
.bp-initial {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
}

.bp-initial {
    display: grid;
    place-items: center;
    background: var(--blue);
    color: #ffffff;
    font-size: 21px;
    font-style: normal;
    font-weight: 500;
}

.bp-who span {
    text-wrap: balance;
}

.bp-who b {
    display: block;
    color: var(--ink);
    font-size: 17px;
    font-weight: 600;
}

.bp-who:hover {
    color: inherit;
}

.bp-who:hover b {
    color: var(--blue);
}

.bp-facts {
    display: flex;
    margin: 0;
    line-height: 1.4;
}

.bp-facts > div {
    padding: 2px 28px;
    border-left: 1px solid var(--line);
}

.bp-facts > div:last-child {
    padding-right: 0;
}

.bp-facts dt {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
}

.bp-facts dd {
    margin: 0;
    color: var(--ink);
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
}

.bp-cover {
    display: block;
    width: 100%;
    border-radius: 16px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}


/* Three columns */

.bp-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 930px) minmax(0, 1fr);
    align-items: start;
    max-width: 1560px;
    margin: 56px auto 0;
}

.bp-left,
.bp-right {
    position: sticky;
    top: 128px;
    padding: 0 24px;
}

.bp-left {
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    scrollbar-width: thin;
}

.bp-toc {
    margin-bottom: 46px;
}

.bp-toc ol {
    margin-top: 14px;
}

.bp-toc a {
    display: block;
    padding: 5px 0;
    color: var(--quiet);
    font-size: 15px;
    line-height: 1.35;
    text-decoration: none;
    transition: color .2s ease;
}

.bp-toc a:hover,
.bp-toc a.is-on {
    color: var(--ink);
}

.bp-toc a.is-on {
    font-weight: 500;
}

.bp-toc .bp-mono span,
.bp-all {
    display: none;
}

.bp-share > div {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 14px;
}

.bp-share a,
.bp-share button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font-size: 14px;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

.bp-share a:hover,
.bp-share button:hover {
    border-color: var(--blue);
    background: var(--blue);
    color: #fff;
}

.bp .bp-copied {
    min-height: 20px;
    margin-top: 8px;
    color: var(--blue);
    font-size: 14px;
    overflow-wrap: anywhere;
}

.bp-help {
    padding: 22px 20px 24px;
    border-radius: 16px;
    background: var(--tint);
}

.bp-help strong {
    display: block;
    margin: 6px 0 12px;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 27px;
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.bp-help li {
    position: relative;
    padding: 3px 0 3px 18px;
    color: var(--text);
    font-size: 15px;
    line-height: 1.4;
}

.bp-help li::before {
    content: "";
    position: absolute;
    top: 11px;
    left: 0;
    width: 6px;
    height: 6px;
    background: var(--blue);
}

.bp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-top: 18px;
    padding: 8px 14px;
    border-radius: 10px;
    background: var(--blue);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: background .2s ease;
}

.bp-btn:hover {
    background: #084fcf;
    color: #fff;
}

.bp-link {
    display: inline-block;
    margin-top: 14px;
    color: var(--ink);
    font-size: 15px;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.bp-link:hover {
    color: var(--blue);
}


/* White sheet */

.bp-sheet {
    padding: 0 24px 24px;
}

.bp-text,
.bp-author {
    max-width: 680px;
    margin: 0 auto;
}

.bp-text {
    color: var(--text);
    font-size: 17px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.bp-text [style] {
    text-align: left !important;
}

.bp .bp-text p {
    margin: 0 0 24px;
}

.bp .bp-text > p:first-child {
    color: var(--ink);
    font-size: 20px;
    line-height: 1.55;
}

.bp .bp-text h2,
.bp .bp-text h3,
.bp .bp-text h4 {
    scroll-margin-top: 112px;
    color: var(--ink);
    text-wrap: balance;
}

.bp .bp-text h2 {
    margin: 64px 0 22px;
    font-family: var(--serif);
    font-size: clamp(30px, 3vw, 38px);
    font-weight: 400;
    line-height: 1.06;
    letter-spacing: -0.025em;
}

.bp .bp-text h3 {
    margin: 44px 0 18px;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.bp .bp-text h4 {
    margin: 36px 0 14px;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.3;
}

.bp .bp-text h2 strong,
.bp .bp-text h3 strong {
    font-weight: inherit;
}

.bp-text strong {
    color: var(--ink);
    font-weight: 600;
}

.bp-text a {
    color: var(--blue);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    transition: color .2s ease;
}

.bp-text a:hover {
    color: #084fcf;
}

.bp .bp-text ul,
.bp .bp-text ol {
    margin: 0 0 26px;
    padding-left: 24px;
}

.bp-text ol {
    counter-reset: row;
}

.bp-text li {
    position: relative;
    margin-bottom: 12px;
    padding-left: 20px;
}

.bp .bp-text li p {
    margin: 0;
}

.bp-text ul > li::before {
    content: "";
    position: absolute;
    top: .66em;
    left: 0;
    width: 6px;
    height: 6px;
    background: var(--blue);
}

.bp-text ol > li {
    padding-left: 28px;
    counter-increment: row;
}

.bp-text ol > li::before {
    content: counter(row) ".";
    position: absolute;
    top: .12em;
    left: -4px;
    color: var(--blue);
    font-size: 16px;
    font-weight: 600;
}

.bp .bp-text blockquote {
    margin: 36px 0;
    color: var(--blue);
    font-size: 25px;
    font-style: italic;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.bp-text img {
    max-width: 100%;
    height: auto;
}

.bp-text table {
    display: block;
    width: 100%;
    margin: 0 0 28px;
    overflow-x: auto;
    border-collapse: collapse;
    font-size: 16px;
}

.bp-text td,
.bp-text th {
    padding: 12px 16px;
    border: 1px solid var(--line);
    text-align: left;
}


/* FAQ boxes inside old posts */

.bp-text .accordion,
.bp-text #accordion {
    margin-top: 24px;
    border-top: 1px solid var(--line);
}

.bp-text .accordion-item,
.bp-text .card {
    margin: 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: none;
}

.bp .bp-text .accordion-header,
.bp-text .card-header {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
}

.bp-text .accordion-button,
.bp-text .card-header .btn {
    display: block;
    width: 100%;
    padding: 20px 0;
    border: 0;
    background: none;
    color: var(--ink) !important;
    font-family: var(--sans);
    font-size: 19px;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: -0.01em;
    text-align: left;
    text-decoration: none;
    white-space: normal;
    box-shadow: none !important;
}

.bp-text .accordion-button::after {
    display: none;
}

.bp-text .accordion-body,
.bp-text .card-body {
    padding: 0 0 22px;
}


/* Author card */

.bp-author {
    display: flex;
    align-items: stretch;
    scroll-margin-top: 120px;
    margin-top: 56px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(11, 27, 55, .06);
}

.bp-author img {
    flex: 0 0 42%;
    width: 42%;
    height: auto;
    object-fit: cover;
    object-position: 62% 30%;
}

.bp-author > div {
    flex: 1;
    padding: 32px 34px 34px;
}

.bp .bp-author .bp-mono {
    color: var(--blue);
    font-size: 14px;
}

.bp-author h2 {
    margin: 6px 0 4px;
    color: var(--ink);
    font-size: 30px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.bp .bp-author .bp-role {
    margin-bottom: 14px;
    color: var(--ink);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.45;
}

.bp-author p {
    color: var(--text);
    font-size: 16px;
    line-height: 1.6;
}

.bp-author a {
    display: inline-block;
    margin-top: 16px;
    color: var(--blue);
    font-weight: 500;
    text-decoration: none;
}

.bp-author a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}


/* Read next */

.bp-next {
    max-width: 1228px;
    margin: 0 auto;
    padding: 104px 24px 0;
}

.bp-next-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px 32px;
    margin-bottom: 40px;
}

.bp-next h2 {
    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(38px, 4.4vw, 60px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.04em;
}

.bp-next-bar a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}

.bp-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px 28px;
}

.bp-card-img {
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    border-radius: 16px;
    background: var(--tint);
}

.bp-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.bp-card:hover .bp-card-img img {
    transform: scale(1.03);
}

.bp-card h3 {
    margin: 22px 0 10px;
    color: var(--ink);
    font-size: 22px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.bp-card h3 a {
    color: inherit;
    text-decoration: none;
}

.bp-card h3 a:hover {
    color: var(--blue);
}

.bp-card p {
    color: var(--quiet);
    font-size: 15px;
}

.bp-card i {
    display: inline-block;
    width: 4px;
    height: 4px;
    margin: 0 10px;
    background: var(--blue);
    vertical-align: middle;
}


/* Medium screens */

@media (max-width: 1399px) {
    .bp-body {
        grid-template-columns: 230px minmax(0, 1fr);
        max-width: 1240px;
        padding-right: 24px;
    }

    .bp-right {
        display: none;
    }
}

@media (max-width: 991px) {
    .bp-body {
        display: block;
        max-width: 778px;
        margin-top: 48px;
        padding: 0 24px;
    }

    .bp-left {
        position: static;
        max-height: none;
        padding: 0 0 36px;
    }

    .bp-toc {
        margin-bottom: 28px;
        overflow: hidden;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: #ffffff;
    }

    .bp .bp-toc .bp-mono {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 16px;
        padding: 14px 16px;
        border-bottom: 1px solid var(--line);
        background: var(--tint);
        font-size: 17px;
    }

    .bp-toc .bp-mono span {
        display: inline;
        color: var(--quiet);
        font-size: 14px;
        font-weight: 400;
    }

    .bp-toc ol {
        margin-top: 0;
        counter-reset: part;
    }

    .bp-toc li {
        counter-increment: part;
    }

    .bp-toc li + li {
        border-top: 1px solid var(--line);
    }

    .bp-toc.is-short li:nth-child(n + 6) {
        display: none;
    }

    .bp-toc a,
    .bp-toc a.is-on {
        display: flex;
        align-items: center;
        gap: 12px;
        min-height: 48px;
        padding: 10px 16px;
        color: var(--ink);
        font-size: 16px;
        font-weight: 400;
        line-height: 1.35;
    }

    .bp-toc a::before {
        content: counter(part);
        flex: 0 0 20px;
        color: var(--blue);
        font-weight: 600;
    }

    .bp-toc a:hover {
        color: var(--blue);
    }

    .bp-all {
        display: block;
        width: 100%;
        min-height: 48px;
        padding: 10px 16px;
        border: 0;
        border-top: 1px solid var(--line);
        background: #ffffff;
        color: var(--blue);
        font-family: inherit;
        font-size: 16px;
        font-weight: 600;
        text-align: left;
        cursor: pointer;
    }

    .bp-all[hidden] {
        display: none;
    }

    .bp-share {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 10px 16px;
    }

    .bp-share > div {
        margin-top: 0;
    }

    .bp .bp-copied {
        width: 100%;
        min-height: 0;
        margin-top: 0;
    }

    .bp-right {
        display: block;
        position: static;
        padding: 44px 0 0;
    }

    .bp-help {
        padding: 34px 32px 36px;
    }

    .bp-share a,
    .bp-share button {
        width: 44px;
        height: 44px;
        font-size: 17px;
    }

    .bp-sheet {
        padding: 0;
    }

    .bp-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* Phone */

@media (max-width: 575px) {
    .bp {
        padding-bottom: 64px;
    }

    .bp-head {
        padding: 36px 16px 0;
    }

    .bp .bp-crumb {
        margin-bottom: 28px;
    }

    .bp .bp-intro {
        margin-top: 20px;
        font-size: 17px;
    }

    .bp-by {
        display: block;
        margin: 24px 0 20px;
        padding: 0 16px;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: var(--tint);
        font-size: 14px;
    }

    .bp-who {
        gap: 12px;
        padding: 14px 0;
        line-height: 1.35;
    }

    .bp-who img,
    .bp-initial {
        flex-basis: 46px;
        width: 46px;
        height: 46px;
    }

    .bp-initial {
        font-size: 19px;
    }

    .bp-who b {
        font-size: 16px;
    }

    .bp-facts {
        justify-content: space-between;
        padding: 12px 0;
        border-top: 1px solid var(--line);
    }

    .bp-facts > div {
        padding: 0;
        border-left: 0;
    }

    .bp-facts > div + div {
        text-align: right;
    }

    .bp-facts dt {
        font-size: 13px;
    }

    .bp-facts dd {
        font-size: 15px;
    }

    .bp-cover {
        border-radius: 12px;
        aspect-ratio: 3 / 2;
    }

    .bp-body {
        padding: 0 16px;
    }

    .bp .bp-text > p:first-child {
        font-size: 18px;
    }

    .bp .bp-text h2 {
        margin-top: 48px;
    }

    .bp .bp-text ul,
    .bp .bp-text ol {
        padding-left: 4px;
    }

    .bp-author {
        display: block;
        margin-top: 40px;
    }

    .bp-author img {
        display: block;
        width: 100%;
        aspect-ratio: 16 / 10;
        object-position: 60% 30%;
    }

    .bp-author > div {
        padding: 24px 22px 26px;
    }

    .bp-next {
        padding: 72px 16px 0;
    }

    .bp-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .bp * {
        transition: none !important;
    }
}