/* The post reading view shares the archive's light palette and shared shell. */
.dm-article,
.dm-article *,
.dm-article *::before,
.dm-article *::after,
.dm-article-password,
.dm-article-password * {
    box-sizing: border-box;
}

.dm-article {
    padding-block: 28px 64px;
    color: var(--blog-text, #333);
    font-family: Dana, Tahoma, sans-serif;
    letter-spacing: 0;
}

.dm-article-shell {
    width: calc(100% - 48px);
    max-width: 1280px;
    margin-inline: auto;
}

.dm-article :where(h1, h2, h3, h4, h5, h6, p, li, a) {
    overflow-wrap: anywhere;
    letter-spacing: 0;
}

.dm-article-breadcrumb {
    display: flex;
    min-height: 44px;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    max-width: 1160px;
    margin: 0 auto 20px;
    color: var(--blog-muted, #5b6270);
    font-size: 12px;
    line-height: 1.9;
}

.dm-article-breadcrumb a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    color: var(--blog-primary-text, #a63b20);
    text-decoration: none;
}

.dm-article-breadcrumb a:hover {
    text-decoration: underline;
}

.dm-article-breadcrumb [aria-current="page"] {
    color: var(--blog-muted, #5b6270);
}

.dm-article-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 40px;
    max-width: 1160px;
    align-items: start;
    margin-inline: auto;
}

.dm-article-sidebar {
    min-width: 0;
    align-self: stretch;
}

.dm-article-toc {
    position: sticky;
    top: 92px;
    max-height: calc(100dvh - 116px);
    overflow: auto;
    margin-block-start: 24px;
    padding: 20px;
    border: 1px solid var(--blog-border, #dcdfe2);
    border-radius: var(--blog-radius, 12px);
    background: var(--blog-card, #fff);
    scrollbar-width: thin;
    scrollbar-color: #c2c8cf transparent;
}

.dm-article-toc > h2 {
    margin: 0 0 12px;
    padding-block-end: 12px;
    border-block-end: 1px solid var(--blog-border, #dcdfe2);
    color: var(--blog-dark, #333);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.9;
}

.dm-article-toc-list {
    margin: 0;
    padding-inline-start: 22px;
    list-style-type: disc;
    color: var(--blog-primary-text, #a63b20);
    font-size: 14px;
}

.dm-article-toc-list li + li {
    margin-block-start: 4px;
}

.dm-article-toc-list .dm-article-toc-subheading {
    margin-inline-start: 14px;
    list-style-type: circle;
}

.dm-article-toc-list a {
    display: flex;
    min-height: 44px;
    align-items: center;
    padding: 8px 6px;
    border-radius: 6px;
    color: var(--blog-text, #333);
    font-size: 14px;
    line-height: 1.85;
    text-decoration: none;
}

.dm-article-toc-list a:hover {
    background: var(--blog-tint, #fff1ec);
    color: var(--blog-primary-text, #a63b20);
}

.dm-article-toc-list a:focus-visible {
    outline: 2px solid var(--blog-primary-text, #a63b20);
    outline-offset: 2px;
}

.dm-article-prose :where(h2, h3)[id] {
    scroll-margin-block-start: 92px;
}

.dm-article-media,
.dm-article-main {
    min-width: 0;
}

.dm-article-media {
    overflow: hidden;
    margin: 0;
    border: 1px solid var(--blog-border, #dcdfe2);
    border-radius: var(--blog-radius, 12px);
    background: linear-gradient(140deg, #f8eeea, #eef0f3 70%);
}

.dm-article-media img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 400px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.dm-article-media img.dm-blog-image--fallback,
.dm-article-media img[src*="/editorial/"],
.dm-article-media img[data-dmbox-src*="/editorial/"] {
    padding: 20px;
    object-fit: contain;
}

.dm-article-media figcaption {
    padding: 12px 16px;
    color: var(--blog-muted, #5b6270);
    font-size: 12px;
    line-height: 1.9;
}

.dm-article-main {
    padding: 32px;
    border: 1px solid var(--blog-border, #dcdfe2);
    border-radius: var(--blog-radius, 12px);
    background: var(--blog-card, #fff);
}

.dm-article-header {
    margin-block-end: 24px;
}

.dm-article-header h1 {
    margin: 0 0 16px;
    color: var(--blog-dark, #1c2433);
    font-size: clamp(28px, 2.65vw, 36px);
    font-weight: 700;
    line-height: 1.65;
}

.dm-article-categories {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-block-end: 12px;
}

.dm-article-category {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 7px 12px;
    border: 1px solid #f1c4b5;
    border-radius: 8px;
    background: var(--blog-tint, #fff1eb);
    color: var(--blog-primary-text, #a63b20);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.9;
    text-decoration: none;
}

.dm-article-category:hover {
    border-color: var(--blog-primary-text, #a63b20);
    text-decoration: underline;
}

.dm-article-header .dm-blog-meta {
    gap: 6px 12px;
    font-size: 13px;
    line-height: 1.9;
}

.dm-article-summary {
    margin-block-end: 32px;
    padding: 20px 24px;
    border-inline-start: 3px solid var(--blog-primary, #e05d38);
    border-radius: 8px;
    background: #f3f4f6;
}

.dm-article-summary h2 {
    margin: 0 0 8px;
    color: var(--blog-dark, #1c2433);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.9;
}

.dm-article-summary p {
    margin: 0;
    color: var(--blog-muted, #5b6270);
    font-size: 15px;
    line-height: 2;
}

.dm-article-prose {
    min-width: 0;
    color: var(--blog-text, #333);
    font-size: 18px;
    line-height: 2.05;
}

.dm-article-prose > :first-child {
    margin-block-start: 0;
}

.dm-article-prose > :last-child {
    margin-block-end: 0;
}

.dm-article-prose p {
    margin-block: 0 24px;
    color: inherit;
    font-size: inherit;
    font-weight: 400;
    line-height: inherit;
    text-align: start;
}

.dm-article-prose :where(h2, h3, h4, h5, h6) {
    margin-block: 36px 16px;
    color: var(--blog-dark, #1c2433);
    font-weight: 600;
    line-height: 1.8;
    scroll-margin-block-start: 100px;
}

.dm-article-prose h2 {
    color: var(--blog-primary-text, #a63b20);
    font-size: 26px;
    font-weight: 700;
}

.dm-article-prose h3 {
    font-size: 22px;
}

.dm-article-prose h4 {
    font-size: 20px;
}

.dm-article-prose h5,
.dm-article-prose h6 {
    font-size: 18px;
}

.dm-article-prose a {
    color: var(--blog-primary-text, #a63b20);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .22em;
}

.dm-article-prose a:hover {
    text-decoration-thickness: 2px;
}

.dm-article-prose :where(ul, ol) {
    margin-block: 0 24px;
    padding-inline-start: 26px;
    padding-inline-end: 0;
}

.dm-article-prose li {
    padding-inline-start: 4px;
}

.dm-article-prose li + li {
    margin-block-start: 8px;
}

.dm-article-prose li > :where(ul, ol) {
    margin-block: 8px;
}

.dm-article-prose li::marker {
    color: var(--blog-primary-text, #a63b20);
}

.dm-article-prose blockquote,
.dm-article-prose .wp-block-quote {
    margin: 28px 0;
    padding: 20px 24px;
    border: 0;
    border-inline-start: 3px solid var(--blog-primary, #e05d38);
    border-radius: 8px;
    background: #f3f4f6;
    color: var(--blog-text, #333);
}

.dm-article-prose blockquote p:last-of-type {
    margin-block-end: 0;
}

.dm-article-prose blockquote cite {
    display: block;
    margin-block-start: 12px;
    color: var(--blog-muted, #5b6270);
    font-size: 14px;
    font-style: normal;
}

.dm-article-prose figure {
    max-width: 100%;
    margin: 28px 0;
}

.dm-article-prose img,
.dm-article-prose video {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.dm-article-prose iframe,
.dm-article-prose audio,
.dm-article-prose object,
.dm-article-prose embed {
    max-width: 100%;
}

.dm-article-prose :where(.alignwide, .alignfull) {
    width: auto;
    max-width: 100%;
    margin-inline: 0;
}

/* Existing starter posts retain their blocks and links, with reading-scale spacing. */
.dm-article-prose > .wp-block-group:is(.alignfull, .alignwide) {
    margin-block: 0 !important;
    padding-block: 24px !important;
}

.dm-article-prose > .wp-block-group:is(.alignfull, .alignwide):first-child {
    padding-block-start: 0 !important;
}

.dm-article-prose > .wp-block-group:is(.alignfull, .alignwide):last-child {
    padding-block-end: 0 !important;
}

.dm-article-prose :where(h2, h3, h4, h5, h6).has-hero-font-size {
    font-size: 24px !important;
    line-height: 1.8 !important;
}

.dm-article-prose p.has-large-font-size {
    font-size: 18px !important;
    line-height: 2.05;
}

.dm-article-prose .wp-block-buttons {
    flex-wrap: wrap;
    gap: 12px;
    margin-block: 20px 24px;
}

.dm-article-prose figcaption,
.dm-article-prose .wp-caption-text {
    margin-block-start: 10px;
    color: var(--blog-muted, #5b6270);
    font-size: 13px;
    line-height: 1.9;
    text-align: start;
}

.dm-article-prose .wp-block-table {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
}

.dm-article-prose table {
    width: 100%;
    max-width: 100%;
    margin-block: 24px;
    border: 1px solid var(--blog-border, #dcdfe2);
    border-collapse: collapse;
    color: var(--blog-text, #333);
    font-size: 15px;
    line-height: 1.9;
}

.dm-article-prose :where(th, td) {
    padding: 12px;
    border: 1px solid var(--blog-border, #dcdfe2);
    overflow-wrap: anywhere;
    vertical-align: top;
    text-align: start;
}

.dm-article-prose th {
    background: #f3f4f6;
    color: var(--blog-dark, #1c2433);
    font-weight: 600;
}

.dm-article-prose pre {
    max-width: 100%;
    overflow-x: auto;
    margin-block: 24px;
    padding: 20px;
    border: 1px solid var(--blog-border, #dcdfe2);
    border-radius: 8px;
    background: #f3f4f6;
    color: var(--blog-dark, #1c2433);
    font-size: 14px;
    line-height: 1.8;
    white-space: pre;
    overscroll-behavior-inline: contain;
}

.dm-article-prose code,
.dm-article-prose kbd,
.dm-article-prose samp {
    font-family: Consolas, "Courier New", monospace;
    font-size: .88em;
    overflow-wrap: anywhere;
}

.dm-article-prose :not(pre) > code,
.dm-article-prose kbd {
    padding: 2px 5px;
    border-radius: 4px;
    background: #f3f4f6;
    color: var(--blog-dark, #1c2433);
}

.dm-article-prose pre code {
    font-size: inherit;
    white-space: inherit;
    overflow-wrap: normal;
}

.dm-article-prose hr {
    height: 1px;
    margin-block: 32px;
    border: 0;
    background: var(--blog-border, #dcdfe2);
}

.dm-article-prose :where(input, textarea, select, button) {
    max-width: 100%;
    font-family: inherit;
}

.dm-article-prose .wp-block-button__link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--blog-primary-button, #b84526);
    color: #fff;
    font-size: 15px;
    text-decoration: none;
}

.dm-article-prose .wp-block-button.is-style-outline .wp-block-button__link {
    border-color: var(--blog-primary-text, #a63b20);
    background: transparent;
    color: var(--blog-primary-text, #a63b20);
}

.dm-article-page-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-block-start: 28px;
    padding-block-start: 20px;
    border-top: 1px solid var(--blog-border, #dcdfe2);
    color: var(--blog-muted, #5b6270);
    font-size: 14px;
}

.dm-article-page-links a,
.dm-article-page-links .post-page-numbers {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border: 1px solid var(--blog-border, #dcdfe2);
    border-radius: 8px;
    color: var(--blog-primary-text, #a63b20);
    text-decoration: none;
}

.dm-article-page-links .current {
    border-color: var(--blog-primary-button, #b84526);
    background: var(--blog-primary-button, #b84526);
    color: #fff;
}

.dm-article-tags,
.dm-article-share,
.dm-article-comments {
    margin-block-start: 32px;
    padding-block-start: 24px;
    border-top: 1px solid var(--blog-border, #dcdfe2);
}

.dm-article-tags h2,
.dm-article-share h2,
.dm-article-comments > h2,
.dm-article-comments .comments-title,
.dm-article-comments .comment-reply-title {
    margin: 0 0 14px;
    color: var(--blog-dark, #1c2433);
    font-size: 21px;
    font-weight: 600;
    line-height: 1.8;
}

.dm-article-tags ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dm-article-tags a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 6px 12px;
    border: 1px solid var(--blog-border, #dcdfe2);
    border-radius: 8px;
    color: var(--blog-primary-text, #a63b20);
    font-size: 13px;
    text-decoration: none;
}

.dm-article-tags a:hover {
    background: var(--blog-tint, #fff1eb);
}

.dm-article-share > p {
    margin: 0 0 16px;
    color: var(--blog-muted, #5b6270);
    font-size: 14px;
    line-height: 1.9;
}

.dm-article-share-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    min-width: 0;
}

.dm-article-share-controls input {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid #c2c8cf;
    border-radius: 8px;
    background: #f9fafb;
    color: var(--blog-muted, #5b6270);
    font: 400 13px/1.8 Dana, Tahoma, sans-serif;
    direction: ltr;
    text-align: left;
}

.dm-article-share-controls button {
    display: inline-flex;
    min-width: 108px;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: 1px solid var(--blog-primary-button, #b84526);
    border-radius: 8px;
    background: var(--blog-primary-button, #b84526);
    color: #fff;
    font: 600 14px/1.8 Dana, Tahoma, sans-serif;
    cursor: pointer;
}

.dm-article-share-controls button[hidden] {
    display: none;
}

.dm-article-share-controls button:hover {
    border-color: var(--blog-primary-text, #a63b20);
    background: var(--blog-primary-text, #a63b20);
}

.dm-article-share-controls button:disabled {
    cursor: wait;
}

.dm-article-share .dm-article-share-status {
    min-height: 27px;
    margin-block: 8px 0;
    color: var(--blog-primary-text, #a63b20);
    font-size: 13px;
    line-height: 1.9;
}

.dm-article-share-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-block-start: 12px;
}

.dm-article-share-links a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid var(--blog-border, #dcdfe2);
    border-radius: 8px;
    color: var(--blog-primary-text, #a63b20);
    font-size: 13px;
    line-height: 1.8;
    text-decoration: none;
}

.dm-article-share-links a:hover {
    background: var(--blog-tint, #fff1eb);
}

.dm-article-author {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    margin-block-start: 32px;
    padding: 24px;
    border: 1px solid var(--blog-border, #dcdfe2);
    border-radius: var(--blog-radius, 12px);
    background: #f9fafb;
}

.dm-article-author-avatar {
    display: grid;
    min-width: 0;
    width: 72px;
    height: 72px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--blog-tint, #fff1eb);
    color: var(--blog-primary-text, #a63b20);
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
    place-items: center;
}

.dm-article-author-avatar img,
img.dm-article-author-avatar {
    display: block;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
}

.dm-article-author-body {
    min-width: 0;
}

.dm-article-author-label,
.dm-article-author-body > p:first-child {
    margin: 0 0 4px;
    color: var(--blog-muted, #5b6270);
    font-size: 12px;
    line-height: 1.9;
}

.dm-article-author h2 {
    margin: 0 0 8px;
    color: var(--blog-dark, #1c2433);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.8;
}

.dm-article-author h2 a {
    color: inherit;
    text-decoration: none;
}

.dm-article-author h2 a:hover {
    color: var(--blog-primary-text, #a63b20);
    text-decoration: underline;
}

.dm-article-author-body > p:not(:first-child) {
    margin: 0;
    color: var(--blog-muted, #5b6270);
    font-size: 14px;
    line-height: 1.9;
}

.dm-article-author a {
    color: var(--blog-primary-text, #a63b20);
    text-decoration: underline;
}

.dm-article-author-more {
    margin-block-start: 10px !important;
    font-size: 13px !important;
}

.dm-article-author-more a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--blog-primary-text, #a63b20);
    text-decoration: none;
    font-weight: 600;
}

.dm-article-author-more a:hover {
    text-decoration: underline;
}

.dm-article-comments {
    scroll-margin-block-start: 100px;
}

.dm-article-comments .comment-list,
.dm-article-comments .comment-list .children {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dm-article-comments .comment-body {
    margin-block: 20px;
    padding: 20px;
    border: 1px solid var(--blog-border, #dcdfe2);
    border-radius: 8px;
    background: #f9fafb;
}

.dm-article-comments .comment-list .children {
    margin-inline-start: 20px;
    padding-inline-start: 16px;
    border-inline-start: 1px solid var(--blog-border, #dcdfe2);
}

.dm-article-comments .comment-author {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    color: var(--blog-dark, #1c2433);
    font-size: 14px;
    line-height: 1.9;
}

.dm-article-comments .avatar {
    width: 40px;
    height: 40px;
    margin-inline-end: 6px;
    border-radius: 50%;
    object-fit: cover;
}

.dm-article-comments .comment-metadata {
    margin-block-start: 6px;
    color: var(--blog-muted, #5b6270);
    font-size: 12px;
    line-height: 1.9;
}

.dm-article-comments .comment-content {
    margin-block-start: 14px;
    color: var(--blog-text, #333);
    font-size: 15px;
    line-height: 2;
}

.dm-article-comments p {
    margin-block: 0 14px;
    color: inherit;
}

.dm-article-comments a {
    color: var(--blog-primary-text, #a63b20);
    text-decoration: underline;
}

.dm-article-comments .comment-reply-link,
.dm-article-comments .comment-edit-link,
.dm-article-comments #cancel-comment-reply-link,
.dm-article-comments .comment-navigation a,
.dm-article-comments .dm-article-comment-pagination a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding-inline: 4px;
    font-size: 13px;
}

.dm-article-comments .comment-respond {
    margin-block-start: 28px;
}

.dm-article-comments .comment-notes,
.dm-article-comments .logged-in-as,
.dm-article-comments .comment-form-cookies-consent,
.dm-article-comments .no-comments,
.dm-article-comments .comment-awaiting-moderation {
    color: var(--blog-muted, #5b6270);
    font-size: 13px;
    line-height: 1.9;
}

.dm-article-comments :is(.comment-form, .dm-article-comment-form) {
    display: grid;
    gap: 16px;
}

.dm-article-comments :is(.comment-form, .dm-article-comment-form) > p {
    min-width: 0;
    margin: 0;
}

.dm-article-comments :is(.comment-form, .dm-article-comment-form) label {
    display: block;
    margin-block-end: 6px;
    color: var(--blog-text, #333);
    font-size: 14px;
    line-height: 1.9;
}

.dm-article-comments .required {
    color: var(--blog-primary-text, #a63b20);
}

.dm-article-comments :is(.comment-form, .dm-article-comment-form) :where(input[type="text"], input[type="email"], input[type="url"], textarea),
.dm-article-password .post-password-form input[type="password"] {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid #c2c8cf;
    border-radius: 8px;
    background: #fff;
    color: var(--blog-text, #333);
    font: 400 16px/1.9 Dana, Tahoma, sans-serif;
}

.dm-article-comments :is(.comment-form, .dm-article-comment-form) textarea {
    min-height: 160px;
    resize: vertical;
}

.dm-article-comments :is(.comment-form, .dm-article-comment-form) :where(input[type="email"], input[type="url"]) {
    direction: ltr;
    text-align: left;
}

.dm-article-comments :is(.comment-form, .dm-article-comment-form) .comment-form-cookies-consent {
    display: flex;
    min-height: 44px;
    align-items: flex-start;
    gap: 10px;
}

.dm-article-comments .comment-form-cookies-consent input {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    margin: 5px 0 0;
    accent-color: var(--blog-primary-button, #b84526);
}

.dm-article-comments .comment-form-cookies-consent label {
    margin: 0;
    padding-block: 3px;
    color: var(--blog-muted, #5b6270);
    font-size: 13px;
}

.dm-article-comments .form-submit input,
.dm-article-password .post-password-form input[type="submit"] {
    display: inline-flex;
    min-width: 128px;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: 1px solid var(--blog-primary-button, #b84526);
    border-radius: 8px;
    background: var(--blog-primary-button, #b84526);
    color: #fff;
    font: 600 14px/1.9 Dana, Tahoma, sans-serif;
    cursor: pointer;
}

.dm-article-comments .form-submit input:hover,
.dm-article-password .post-password-form input[type="submit"]:hover {
    border-color: var(--blog-primary-text, #a63b20);
    background: var(--blog-primary-text, #a63b20);
}

.dm-article-related {
    margin-block-start: 48px;
    padding-block-start: 28px;
    border-top: 1px solid var(--blog-border, #dcdfe2);
}

.dm-article-related > h2 {
    margin: 0 0 24px;
    color: var(--blog-dark, #1c2433);
    font-size: 25px;
    font-weight: 700;
    line-height: 1.8;
}

.dm-article-related-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.dm-article-password {
    width: calc(100% - 48px);
    max-width: 760px;
    min-height: 50vh;
    margin: 40px auto 64px;
    padding: 32px;
    border: 1px solid var(--blog-border, #dcdfe2);
    border-radius: var(--blog-radius, 12px);
    background: var(--blog-card, #fff);
    color: var(--blog-text, #333);
}

.dm-article-password h1 {
    margin: 0 0 24px;
    color: var(--blog-dark, #1c2433);
    font-size: 30px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.dm-article-password .post-password-form p {
    margin: 0 0 20px;
    color: var(--blog-text, #333);
    font-size: 16px;
    line-height: 2;
}

.dm-article-password .post-password-form label {
    display: block;
    margin-block-end: 16px;
    color: var(--blog-text, #333);
    font-size: 14px;
    line-height: 1.9;
}

@media (max-width: 1100px) {
    .dm-article-layout {
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 28px;
    }

    .dm-article-main {
        padding: 28px;
    }

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

@media (max-width: 900px) {
    .dm-article-shell {
        width: calc(100% - 40px);
    }

    .dm-article-layout {
        grid-template-columns: 200px minmax(0, 1fr);
        gap: 24px;
    }

    .dm-article-main {
        padding: 24px;
    }

    .dm-article-media img.dm-blog-image--fallback,
    .dm-article-media img[src*="/editorial/"] {
        padding: 12px;
    }

    .dm-article-header h1 {
        font-size: 30px;
    }
}

@media (max-width: 760px) {
    .dm-article-toc {
        position: static;
        max-height: 300px;
        margin-block-start: 20px;
        padding: 18px;
    }

    .dm-article-media {
        margin-inline: auto;
    }

    .dm-article {
        padding-block: 20px 48px;
    }

    .dm-article-shell {
        width: calc(100% - 32px);
    }

    .dm-article-breadcrumb {
        margin-block-end: 16px;
        font-size: 12px;
    }

    .dm-article-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .dm-article-media {
        width: 100%;
        max-width: 440px;
        justify-self: center;
    }

    .dm-article-media img {
        max-height: 280px;
        aspect-ratio: 16 / 10;
    }

    .dm-article-media img.dm-blog-image--fallback,
    .dm-article-media img[src*="/editorial/"] {
        padding: 16px;
    }

    .dm-article-main {
        padding: 24px;
    }

    .dm-article-header h1 {
        font-size: 28px;
    }

    .dm-article-prose {
        font-size: 17px;
        line-height: 2.05;
    }

    .dm-article-prose h2 {
        font-size: 23px;
    }

    .dm-article-prose h3 {
        font-size: 20px;
    }

    .dm-article-prose :where(h4, h5, h6) {
        font-size: 18px;
    }

    .dm-article-summary {
        padding: 18px;
    }

    .dm-article-related {
        margin-block-start: 36px;
    }

    .dm-article-related-grid {
        gap: 20px;
    }

    .dm-article-comments .comment-list .children {
        margin-inline-start: 8px;
        padding-inline-start: 8px;
    }

    .dm-article-comments .comment-list .children .children {
        margin-inline-start: 0;
        padding-inline-start: 0;
        border-inline-start: 0;
    }

    .dm-article-comments .comment-body {
        padding: 16px;
    }

    .dm-article-author {
        gap: 16px;
        padding: 20px;
    }

    .dm-article-password {
        width: calc(100% - 32px);
        margin-block: 28px 48px;
        padding: 24px;
    }
}

@media (max-width: 560px) {
    .dm-article-related-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .dm-article-related > h2 {
        font-size: 22px;
    }
}

@media (max-width: 380px) {
    .dm-article-shell,
    .dm-article-password {
        width: calc(100% - 24px);
    }

    .dm-article-main,
    .dm-article-password {
        padding: 20px;
    }

    .dm-article-summary {
        padding: 16px;
    }

    .dm-article-share-controls {
        grid-template-columns: minmax(0, 1fr);
    }

    .dm-article-share-controls button {
        width: 100%;
    }

    .dm-article-author {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 12px;
        padding: 16px;
    }

    .dm-article-author-avatar img,
    img.dm-article-author-avatar,
    .dm-article-author-avatar {
        width: 52px;
        height: 52px;
    }
}

.dm-article-related .dm-blog-card img.dm-blog-image--fallback {
    padding: 16px;
    object-fit: contain;
    background: linear-gradient(140deg, #f8eeea, #eef0f3 70%);
}

@media (prefers-reduced-motion: reduce) {
    .dm-article,
    .dm-article *,
    .dm-article-password,
    .dm-article-password * {
        scroll-behavior: auto;
        animation: none !important;
        transition: none !important;
    }
}
