.dm27-single .dm27-header { position: absolute; }
.dm27-single .dm27-header.is-scrolled { position: fixed; }

.dm27-article-hero { position: relative; min-height: 560px; padding: 132px 0 64px; background: var(--dm27-navy); color: #f7f9fc; overflow: hidden; }
.dm27-article-hero__grid { display: grid; min-height: 360px; grid-template-columns: minmax(0,.92fr) minmax(460px,1.08fr); align-items: center; gap: clamp(42px,6vw,96px); }
.dm27-article-hero:not(.has-image) .dm27-article-hero__grid { grid-template-columns: minmax(0,920px); }
.dm27-article-hero__copy { position: relative; z-index: 2; }
.dm27-article-kicker { display: inline-block; margin-bottom: 24px; color: #f7f9fc; font-size: .78rem; font-weight: 800; letter-spacing: .11em; text-decoration: none; text-transform: uppercase; }
.dm27-article-hero h1 { max-width: 820px; margin-bottom: 24px; color: #f7f9fc; font-size: clamp(2.75rem,5vw,5.4rem); font-weight: 850; letter-spacing: -.055em; line-height: .94; text-wrap: balance; }
.dm27-article-meta { display: flex; flex-wrap: wrap; gap: 12px 26px; color: #c0cddd; font-size: .92rem; }
.dm27-article-meta span { position: relative; }
.dm27-article-meta span::before { position: absolute; top: .2em; left: -14px; width: 1px; height: 1em; background: #71819a; content: ""; }
.dm27-article-hero__image { position: relative; z-index: 2; height: clamp(300px,36vw,480px); margin: 0; }
.dm27-article-hero__image::after { position: absolute; right: -1px; bottom: -1px; width: 34%; height: 9px; background: var(--dm27-red); content: ""; }
.dm27-article-hero__image img { width: 100%; height: 100%; object-fit: cover; }
.dm27-article-hero__accent { position: absolute; z-index: 1; bottom: -72px; width: 310px; height: 128px; transform: skewX(-28deg); }
.dm27-article-hero__accent--red { left: -96px; background: var(--dm27-red); }
.dm27-article-hero__accent--blue { right: -82px; background: var(--dm27-blue); }

.dm27-article-layout { display: grid; padding-block: clamp(64px,8vw,116px); grid-template-columns: minmax(150px,.28fr) minmax(0,1fr); align-items: start; gap: clamp(44px,8vw,130px); }
.dm27-article-rail { position: sticky; top: 112px; display: grid; gap: 8px; padding-top: 12px; border-top: 5px solid var(--dm27-red); color: var(--dm27-muted); font-size: .85rem; }
.dm27-article-rail > span { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.dm27-article-rail strong { color: var(--dm27-ink); font-size: 1rem; }
.dm27-article-rail a { color: var(--dm27-blue); font-weight: 750; text-decoration: none; }
.dm27-article-content { width: min(100%,780px); color: #243148; font-size: clamp(1.05rem,1.22vw,1.18rem); line-height: 1.78; }
.dm27-article-content > :first-child { margin-top: 0; }
.dm27-article-content > :last-child { margin-bottom: 0; }
.dm27-article-content p, .dm27-article-content ul, .dm27-article-content ol, .dm27-article-content blockquote, .dm27-article-content figure, .dm27-article-content table { margin-block: 0 1.65em; }
.dm27-article-content h2, .dm27-article-content h3, .dm27-article-content h4 { margin: 1.7em 0 .65em; color: var(--dm27-ink); font-weight: 820; line-height: 1.08; text-wrap: balance; }
.dm27-article-content h2 { font-size: clamp(2rem,3vw,3rem); }
.dm27-article-content h3 { font-size: clamp(1.5rem,2vw,2rem); }
.dm27-article-content a { color: #0757cf; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.dm27-article-content strong { color: var(--dm27-ink); }
.dm27-article-content ul, .dm27-article-content ol { padding-left: 1.35em; }
.dm27-article-content li { margin-bottom: .6em; padding-left: .25em; }
.dm27-article-content blockquote { padding: 8px 0 8px 30px; border-left: 1px solid var(--dm27-red); color: var(--dm27-ink); font-size: 1.3em; font-weight: 650; line-height: 1.45; }
.dm27-article-content img { width: auto; max-width: 100%; height: auto; }
.dm27-article-content figure { max-width: 100%; }
.dm27-article-content figcaption { margin-top: 10px; color: var(--dm27-muted); font-size: .78rem; line-height: 1.5; }
.dm27-article-content .alignwide { width: min(1040px,calc(100vw - 56px)); max-width: none; }
.dm27-article-content .alignfull { position: relative; left: 50%; width: 100vw; max-width: none; transform: translateX(-50%); }
.dm27-article-content iframe { max-width: 100%; }
.dm27-article-content table { display: block; max-width: 100%; border-collapse: collapse; overflow-x: auto; }
.dm27-article-content th, .dm27-article-content td { padding: 12px 14px; border: 1px solid var(--dm27-line); text-align: left; }
.dm27-page-links { display: flex; gap: 8px; margin-top: 42px; }

.dm27-post-navigation { display: grid; padding-bottom: clamp(64px,8vw,110px); grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; }
.dm27-post-navigation__item { display: grid; min-height: 150px; padding: 26px clamp(22px,3vw,42px); align-content: center; gap: 10px; background: #e9eef4; color: var(--dm27-ink); text-decoration: none; }
.dm27-post-navigation__item--next { text-align: right; }
.dm27-post-navigation__item span { color: var(--dm27-muted); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.dm27-post-navigation__item strong { max-width: 32ch; font-size: clamp(1.05rem,1.5vw,1.35rem); line-height: 1.25; }
.dm27-post-navigation__item--next strong { justify-self: end; }
.dm27-post-navigation__item:hover { background: var(--dm27-navy); color: #f7f9fc; }
.dm27-post-navigation__item:hover span { color: #c0cddd; }

.dm27-related { padding: clamp(64px,7vw,100px) 0; background: #e9eef4; }
.dm27-related__heading { display: flex; margin-bottom: 38px; align-items: end; justify-content: space-between; gap: 30px; }
.dm27-related__heading h2 { max-width: 760px; margin: 8px 0 0; font-size: clamp(2.25rem,4vw,4.2rem); font-weight: 850; line-height: .98; }
.dm27-related__grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(22px,3vw,46px); }
.dm27-related-item { min-width: 0; border-top: 1px solid #aeb9c7; padding-top: 16px; }
.dm27-related-item__image { display: block; height: clamp(190px,20vw,290px); margin-bottom: 20px; overflow: hidden; }
.dm27-related-item__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--dm27-ease-out); }
.dm27-related-item time { color: var(--dm27-muted); font-size: .75rem; font-weight: 700; }
.dm27-related-item h3 { margin: 10px 0 18px; font-size: clamp(1.25rem,1.8vw,1.65rem); line-height: 1.12; }
.dm27-related-item h3 a { color: var(--dm27-ink); text-decoration: none; }
@media (hover: hover) { .dm27-related-item:hover img { transform: scale(1.035); } }

@media (max-width: 1040px) {
    .dm27-article-hero { min-height: 0; }
    .dm27-article-hero__grid { grid-template-columns: 1fr; }
    .dm27-article-hero__copy { max-width: 820px; }
    .dm27-article-hero__image { height: min(62vw,520px); }
    .dm27-article-layout { grid-template-columns: 130px minmax(0,1fr); gap: 48px; }
}

@media (max-width: 719px) {
    .dm27-single .dm27-menu-button { position: relative; z-index: 40; display: inline-flex !important; border-color: var(--dm27-blue); background: var(--dm27-blue); opacity: 1; visibility: visible; }
    .dm27-article-hero { padding: 112px 0 48px; }
    .dm27-article-hero__grid { gap: 34px; }
    .dm27-article-hero h1 { display: block; width: 100%; max-width: 100%; font-size: clamp(2.15rem,9.8vw,2.65rem); overflow-wrap: anywhere; white-space: normal !important; word-break: normal; text-wrap: wrap; }
    .dm27-article-hero__image { height: 68vw; min-height: 250px; }
    .dm27-article-meta span::before { display: none; }
    .dm27-article-layout { padding-block: 58px 72px; grid-template-columns: 1fr; gap: 36px; }
    .dm27-article-rail { position: static; grid-template-columns: 1fr; align-items: baseline; gap: 5px; }
    .dm27-article-rail > span { grid-column: auto; }
    .dm27-article-content { font-size: 1.04rem; line-height: 1.7; }
    .dm27-article-content .alignwide { width: 100%; }
    .dm27-post-navigation { grid-template-columns: 1fr; }
    .dm27-post-navigation > span:empty { display: none; }
    .dm27-post-navigation__item--next { text-align: left; }
    .dm27-post-navigation__item--next strong { justify-self: start; }
    .dm27-related__heading { display: grid; align-items: start; }
    .dm27-related__grid { grid-template-columns: 1fr; gap: 42px; }
    .dm27-related-item__image { height: 62vw; min-height: 230px; }
}
