.bp-content__inner {
    max-width: 740px;
    margin: 0 auto;
    font-size: 1.06rem;
    line-height: 1.9;
    color: hsl(var(--foreground));
}

.bp-content__inner h1,
.bp-content__inner h2,
.bp-content__inner h3,
.bp-content__inner h4 {
    font-weight: 700;
    line-height: 1.25;
    color: hsl(var(--foreground));
    margin: 2.75rem 0 0.9rem;
    padding-left: 0.9rem;
    border-left: 2px solid hsl(var(--primary) / 0.25);
}

.bp-content__inner h1 {
    font-size: 1.9rem;
}

.bp-content__inner h2 {
    font-size: 1.55rem;
}

.bp-content__inner h3 {
    font-size: 1.25rem;
}

.bp-content__inner h4 {
    font-size: 1.08rem;
}

.bp-content__inner p,
.bp-content__inner div {
    margin: 0 0 1.4rem;
}

.bp-content__inner div:empty,
.bp-content__inner p:empty {
    min-height: 1em;
}

.bp-content__inner strong,
.bp-content__inner b {
    font-weight: 700;
}

.bp-content__inner em,
.bp-content__inner i {
    font-style: italic;
}

.bp-content__inner u {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.bp-content__inner s,
.bp-content__inner strike {
    text-decoration: line-through;
}

.bp-content__inner a {
    color: hsl(var(--primary));
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: hsl(var(--primary) / 0.3);
    transition: text-decoration-color 0.2s ease;
}

.bp-content__inner a:hover {
    text-decoration-color: hsl(var(--primary));
}

.bp-content__inner img {
    display: block;
    max-width: min(calc(100% + 4rem), 100vw - 2rem);
    height: auto;
    margin: 2.25rem auto;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgb(0 0 0 / 0.18);
}

.bp-content__inner blockquote {
    position: relative;
    border: none;
    border-left: 3px solid hsl(var(--primary) / 0.25);
    padding: 1.5rem 1.5rem 1.5rem 2.25rem;
    margin: 2.25rem 0;
    background: hsl(var(--muted) / 0.15);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: hsl(var(--muted-foreground));
}

.bp-content__inner blockquote::before {
    content: "\201C";
    position: absolute;
    top: -0.15rem;
    left: 0.65rem;
    font-size: 3.2rem;
    line-height: 1;
    font-style: normal;
    color: hsl(var(--primary) / 0.12);
    font-weight: 800;
}

.bp-content__inner code {
    background: hsl(var(--muted) / 0.45);
    padding: 0.15rem 0.4rem;
    border-radius: 5px;
    font-size: 0.88em;
}

.bp-content__inner pre {
    background: hsl(var(--muted));
    border-radius: 12px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 2.25rem 0;
    border: 1px solid hsl(var(--border));
}

.bp-content__inner pre code {
    background: none;
    padding: 0;
}

.bp-content__inner ul,
.bp-content__inner ol {
    padding-left: 1.5rem;
    margin: 0 0 1.4rem;
}

.bp-content__inner ul {
    list-style-type: disc;
}

.bp-content__inner ol {
    list-style-type: decimal;
}

.bp-content__inner li {
    margin-bottom: 0.45rem;
    padding-left: 0.15rem;
}

.bp-content__inner li > ul,
.bp-content__inner li > ol {
    margin-top: 0.45rem;
    margin-bottom: 0.45rem;
}

.bp-content__inner table {
    width: 100%;
    border-collapse: collapse;
    margin: 2.25rem 0;
    font-size: 0.95rem;
    border: 1px solid hsl(var(--border));
}

.bp-content__inner th,
.bp-content__inner td {
    border: 1px solid hsl(var(--border));
    padding: 0.6rem 0.9rem;
    text-align: left;
    vertical-align: top;
}

.bp-content__inner th {
    background: hsl(var(--muted) / 0.5);
    font-weight: 600;
}

.bp-content__inner tr:nth-child(even) {
    background: hsl(var(--muted) / 0.15);
}

.bp-content__inner hr {
    border: none;
    height: 1px;
    background: hsl(var(--border));
    margin: 3.5rem auto;
    max-width: 100px;
}

@media (max-width: 640px) {
    .bp-content__inner {
        font-size: 1rem;
        line-height: 1.8;
    }

    .bp-content__inner img {
        max-width: calc(100% + 1rem);
        margin: 1.5rem -0.5rem;
        border-radius: 10px;
    }
}
