.ds-reader {
    --ds-ink: #181b21;
    --ds-copy: #2d3440;
    --ds-muted: #596375;
    --ds-line: #e4e7ec;
    --ds-blue: #2456a9;
    --ds-soft: #f4f6f9;
    padding-bottom: max(58px, env(safe-area-inset-bottom, 0px));
}

.news-container--editorial.ds-reader .news-category-layout--editorial {
    row-gap: 0;
}

.ds-issue,
.ds-story {
    min-width: 0;
    padding-top: 34px;
    overflow-wrap: anywhere;
}

.ds-heading {
    margin-bottom: 26px;
}

.ds-kicker {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    color: var(--ds-blue);
    font-size: 14px;
    font-weight: 600;
}

.ds-kicker a {
    color: inherit;
    text-decoration: none;
}

.ds-heading h1 {
    margin: 0;
    color: var(--ds-ink);
    font-size: clamp(29px, 3vw, 40px);
    font-weight: 620;
    line-height: 1.27;
    letter-spacing: -.05em;
    word-break: keep-all;
}

.ds-lead {
    margin: 14px 0 0;
    color: var(--ds-copy);
    font-size: 18px;
    line-height: 1.65;
    word-break: keep-all;
}

.ds-meta {
    margin: 12px 0 0;
    color: var(--ds-muted);
    font-size: 14px;
    line-height: 1.6;
}

.ds-meta span { padding: 0 3px; }

.ds-cover {
    min-width: 0;
    padding-top: 34px;
}

.ds-cover figure,
.ds-media {
    margin: 0;
}

.ds-media { margin-bottom: 30px; }

.ds-cover img,
.ds-media img,
.ds-media .dm-media-crop {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.ds-media img,
.ds-media .dm-media-crop { max-height: 380px; }

.ds-cover figcaption,
.ds-media figcaption {
    margin-top: 7px;
    color: var(--ds-muted);
    font-size: 13px;
    line-height: 1.55;
}

.ds-story-body {
    max-width: 760px;
    color: var(--ds-copy);
    font-size: 17px;
    line-height: 1.85;
}

.ds-story-body > p { margin: 0 0 1.05em; }

.ds-insight {
    margin: 24px 0;
    padding: 15px 18px;
    border-radius: 6px;
    background: var(--ds-soft);
}

.ds-insight h2 {
    margin: 0 0 4px;
    color: var(--ds-ink);
    font-size: 17px;
    font-weight: 620;
    line-height: 1.4;
}

.ds-insight p { margin: 0; }
.ds-insight li strong { font-weight: 620; }
.ds-insight ul,
.ds-insight ol { margin: 0; padding-left: 22px; }
.ds-insight li + li { margin-top: 4px; }

.ds-sources {
    padding-left: 0;
    padding-right: 0;
    background: transparent;
    font-size: 15px;
}

.ds-sources a { color: var(--ds-blue); }
.ds-sources li > span { margin-left: 8px; color: var(--ds-muted); }

.ds-sidebar {
    min-width: 0;
    margin-top: 34px;
    padding-left: 20px;
    border-left: 1px solid var(--ds-line);
    overflow-wrap: anywhere;
}

.ds-sidebar-head,
.ds-contents-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 10px;
}

.ds-sidebar-head h2,
.ds-contents-head h2 {
    margin: 0;
    font-size: 19px;
    font-weight: 620;
    letter-spacing: -.035em;
}

.ds-sidebar-head a,
.ds-action {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--ds-blue);
    font-size: 14px;
    font-weight: 550;
    text-decoration: none;
}

.ds-sidebar ul,
.ds-topic ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ds-sidebar li a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 7px 9px;
    border-radius: 5px;
    color: var(--ds-copy);
    font-size: 15px;
    line-height: 1.42;
    text-decoration: none;
}

.ds-sidebar li a[aria-current="page"] {
    color: var(--ds-blue);
    background: #edf3fc;
    font-weight: 620;
}

.ds-contents-head {
    border-bottom: 1px solid var(--ds-line);
}

.ds-action { gap: 6px; }

.ds-topic { margin-top: 20px; }
.ds-topic + .ds-topic { margin-top: 24px; }

.ds-topic h3 {
    margin: 0 0 4px;
    color: var(--ds-blue);
    font-size: 15px;
    font-weight: 600;
}

.ds-topic a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 44px;
    padding: 6px 10px;
    border-radius: 5px;
    color: var(--ds-ink);
    font-size: 17px;
    font-weight: 500;
    line-height: 1.45;
    text-decoration: none;
}

.ds-link-arrow {
    flex: 0 0 auto;
    color: var(--ds-muted);
    font-size: 15px;
}

.ds-topic,
.ds-topic a,
.ds-issue,
.ds-contents {
    scroll-margin-top: calc(var(--mobile-primary-header-height, 89px) + 12px);
}

.ds-neighbors {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 30px;
}

.ds-neighbor {
    padding: 12px;
    border: 1px solid var(--ds-line);
    border-radius: 6px;
    color: var(--ds-ink);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
    text-decoration: none;
}

.ds-neighbor span {
    display: block;
    margin-bottom: 3px;
    color: var(--ds-blue);
    font-size: 13px;
}

.ds-neighbor--next { grid-column: 2; }

.ds-reader a:focus-visible,
.ds-reader button:focus-visible {
    outline: 2px solid var(--ds-blue);
    outline-offset: 2px;
}

@media (hover: hover) {
    .ds-reader .news-title-brand:hover {
        opacity: 1;
        text-decoration: none;
    }

    .ds-reader .news-title-brand:hover .news-title-brand-head,
    .ds-reader .news-nav a.nav-btn:hover,
    .ds-reader .news-nav a.nav-btn.active:hover,
    .ds-topic a:hover,
    .ds-neighbor:hover {
        color: var(--ds-blue);
        text-decoration: none;
    }

    .ds-kicker a:hover,
    .ds-sidebar-head a:hover,
    .ds-sidebar li a:hover,
    .ds-neighbor:hover span,
    .ds-sources a:hover,
    .ds-action:hover {
        color: #173e7c;
        text-decoration: none;
    }
}

@media (max-width: 768px), (max-width: 1024px) and (orientation: portrait) and (pointer: coarse) {
    .news-container--editorial.ds-reader .news-category-layout--editorial {
        grid-template-columns: minmax(0, 1fr) !important;
    }
    .ds-issue,
    .ds-story,
    .ds-cover { padding-top: 21px; }
    .ds-heading { margin-bottom: 20px; }
    .ds-heading h1 { font-size: clamp(26px, 5.4vw, 35px); }
    .ds-lead { font-size: 16px; }
    .ds-media { margin-bottom: 22px; }
    .ds-media img,
    .ds-media .dm-media-crop { max-height: none; }
    .ds-story-body { font-size: 16px; }
    .ds-sidebar {
        padding: 0;
        border-left: 0;
        border-top: 1px solid var(--ds-line);
    }
    .ds-cover img { max-width: min(100%, 320px); }
}

@media (max-width: 768px) and (pointer: coarse), (max-width: 1024px) and (orientation: portrait) and (pointer: coarse) {
    html:not([data-is-tablet-mode="desktop"]) .ds-story { touch-action: pan-y pinch-zoom; }
}

html[data-is-tablet-mode="mobile"] .ds-story { touch-action: pan-y pinch-zoom; }

html[data-is-tablet-mode="mobile"] .ds-sidebar {
    padding: 0;
    border-left: 0;
    border-top: 1px solid var(--ds-line);
}

html[data-is-tablet-mode="mobile"] .ds-issue,
html[data-is-tablet-mode="mobile"] .ds-story,
html[data-is-tablet-mode="mobile"] .ds-cover { padding-top: 21px; }

@media (max-width: 575px) {
    .ds-neighbors { grid-template-columns: minmax(0, 1fr); }
    .ds-neighbor--next { grid-column: 1; }
}

@media (forced-colors: active) {
    .ds-sidebar li a[aria-current="page"] {
        outline: 1px solid Highlight;
        outline-offset: -1px;
    }
}
