.ds-article-actions {
    position: relative;
}

.ds-article-actions--top {
    flex: 0 1 auto;
    margin-left: auto;
    margin-top: 0;
    min-width: 0;
    padding: 0 14px 0 0;
}

.ds-article-actions--utility {
    border-bottom: 1px solid #e4e0db;
    margin-top: 18px;
    padding: 12px 0 14px;
}

/* Keep the body copy comfortably clear of the utility divider on articles,
   About, Premium, and Summer Appeal without changing other legacy-page layouts. */
body.single-post .ds-article-actions--utility + .ds-article-content,
body.page-id-31 .ds-article-actions--utility + .ds-article-content,
body.page-id-220123 .ds-article-actions--utility + .ds-article-content,
body.page-id-301632 .ds-article-actions--utility + .ds-article-content {
    margin-top: 16px;
}

.ds-article-actions__top-row,
.ds-article-actions__utility-row {
    align-items: center;
    display: flex;
    min-width: 0;
}

.ds-article-actions__top-row {
    flex-wrap: nowrap;
    gap: 0;
    justify-content: flex-end;
    white-space: nowrap;
}

.ds-article-actions__utility-row {
    flex-wrap: wrap;
}

.ds-article-actions__share-cluster {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 8px;
    min-width: 0;
}

.ds-social-icon,
.ds-article-actions__bookmark,
.ds-article-actions__comments-link {
    align-items: center;
    background: transparent;
    border: 0;
    color: #1b1b1b;
    display: inline-flex;
    flex: 0 0 auto;
    justify-content: center;
    padding: 0;
    text-decoration: none;
}

.ds-social-icon {
    background: var(--ds-social-bg, transparent);
    border: 2px solid var(--ds-social-border, transparent);
    border-radius: 999px;
    color: var(--ds-social-fg, #ffffff);
    height: 40px;
    transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
    width: 40px;
}

.ds-social-icon svg {
    display: block;
    fill: currentColor;
    height: 19px;
    width: 19px;
}

.ds-social-icon--facebook {
    --ds-social-bg: #1778f2;
    --ds-social-fg: #ffffff;
}

.ds-social-icon--x {
    --ds-social-bg: #101010;
    --ds-social-fg: #ffffff;
}

.ds-social-icon--reddit {
    --ds-social-bg: #ff4500;
    --ds-social-fg: #ffffff;
}

.ds-social-icon--reddit svg {
    height: 24px;
    width: 24px;
}

.ds-social-icon--whatsapp {
    --ds-social-bg: #25d366;
    --ds-social-fg: #ffffff;
}

.ds-social-icon--email {
    --ds-social-bg: #8f8f8f;
    --ds-social-fg: #ffffff;
}

.ds-social-icon--copy {
    --ds-social-border: #101010;
    --ds-social-fg: #101010;
    background: #ffffff;
}

.ds-social-icon:hover,
.ds-social-icon:focus-visible,
.ds-social-icon.is-copied {
    background: #ffffff;
    border-color: #d80d18;
    color: #d80d18;
}

.ds-article-actions__comments-link,
.ds-article-actions__bookmark {
    color: #717171;
    margin-left: 12px;
    padding-left: 12px;
    position: relative;
}

.ds-article-actions__comments-link::before,
.ds-article-actions__bookmark::before {
    background: #e4e0db;
    content: '';
    height: 40px;
    left: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%) rotate(15deg);
    width: 1px;
}

.ds-article-actions__comments-link {
    height: 42px;
    width: 42px;
}

.ds-article-actions__bookmark {
    height: 44px;
    margin-right: 14px;
    width: 44px;
}

.ds-article-actions__comments-link svg {
    display: block;
    fill: none;
    height: 28px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.85;
    width: 28px;
}

.ds-bookmark-icon {
    display: block;
    height: 30px;
    position: absolute;
    width: 30px;
}

.ds-bookmark-icon--filled {
    display: none;
}

.ds-bookmark-icon--outline {
    display: block;
}

.ds-article-actions__bookmark:hover,
.ds-article-actions__bookmark:focus-visible,
.ds-article-actions__comments-link:hover,
.ds-article-actions__comments-link:focus-visible {
    color: #d80d18;
}

.ds-article-actions__bookmark.is-favourite {
    color: #d80d18;
}

.ds-article-actions__bookmark.is-favourite .ds-bookmark-icon--outline {
    display: none;
}

.ds-article-actions__bookmark.is-favourite .ds-bookmark-icon--filled {
    display: block;
}

.ds-article-actions__utility-row {
    gap: 16px;
}

.ds-text-settings-trigger {
    align-items: center;
    background: transparent;
    border: 0;
    color: #d80d18;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    padding: 0;
}

.ds-text-settings-trigger__icon {
    display: inline-block;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 30px;
    font-weight: 400;
    letter-spacing: -.04em;
    line-height: .8;
    position: relative;
}

.ds-text-settings-trigger__icon span {
    font-size: .68em;
    left: 16px;
    position: absolute;
    top: 5px;
}

.ds-article-actions__reading-time {
    align-items: center;
    color: #5a5a5a;
    display: inline-flex;
    gap: 10px;
}

.ds-article-actions__reading-time span {
    color: #111111;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.2;
    text-transform: none;
}

.ds-article-actions__reading-time svg {
    display: block;
    height: 20px;
    width: 20px;
}

.ds-article-actions__audio {
    flex: 1 1 420px;
    min-width: 0;
}

.ds-article-actions__audio .ds-audio-player {
    margin: 0;
}

.ds-text-settings-panel {
    background: #fff;
    border: 1px solid #d9d3cd;
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
    left: 0;
    max-width: 545px;
    padding: 46px 52px 38px;
    position: absolute;
    top: calc(100% + 18px);
    width: min(92vw, 545px);
    z-index: 20;
}

.ds-text-settings-panel::before {
    background: #fff;
    border-left: 1px solid #d9d3cd;
    border-top: 1px solid #d9d3cd;
    content: '';
    height: 22px;
    left: 40px;
    position: absolute;
    top: -12px;
    transform: rotate(45deg);
    width: 22px;
}

.ds-text-settings-panel__close {
    background: transparent;
    border: 0;
    color: #a9a9a9;
    cursor: pointer;
    font-size: 3rem;
    line-height: 1;
    padding: 0;
    position: absolute;
    right: 24px;
    top: 16px;
}

.ds-text-settings-panel__section + .ds-text-settings-panel__section {
    margin-top: 64px;
}

.ds-text-settings-panel__section h3 {
    color: #212121;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.55rem;
    font-weight: 400;
    margin: 0 0 34px;
}

.ds-text-settings-panel__options {
    display: grid;
    gap: 26px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ds-text-option {
    align-items: center;
    background: transparent;
    border: 0;
    color: #929292;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 0;
}

.ds-text-option__swatch,
.ds-spacing-swatch {
    align-items: center;
    border: 3px solid #e2e2e2;
    border-radius: 50%;
    display: flex;
    height: 110px;
    justify-content: center;
    width: 110px;
}

.ds-text-option[aria-pressed="true"] .ds-text-option__swatch,
.ds-text-option[aria-pressed="true"] .ds-spacing-swatch {
    border-color: #d80d18;
    color: #d80d18;
}

.ds-text-option__swatch {
    font-family: Georgia, 'Times New Roman', serif;
}

.ds-text-option__swatch--small {
    font-size: 2rem;
}

.ds-text-option__swatch--medium {
    font-size: 2.4rem;
}

.ds-text-option__swatch--large {
    font-size: 2.8rem;
}

.ds-spacing-swatch {
    flex-direction: column;
    gap: 8px;
}

.ds-spacing-swatch i {
    background: currentColor;
    display: block;
    height: 5px;
    width: 30px;
}

.ds-spacing-swatch--compact {
    gap: 5px;
}

.ds-spacing-swatch--normal {
    gap: 8px;
}

.ds-spacing-swatch--spacious {
    gap: 11px;
}

.ds-text-option__label {
    font-size: 1rem;
}

.ds-text-option[aria-pressed="true"] .ds-text-option__label {
    color: #d80d18;
}

.ds-article-content[data-text-size="default"] {
    font-size: 0.968rem;
}

.ds-article-content[data-text-size="larger"] {
    font-size: 1.122rem;
}

.ds-article-content[data-text-size="largest"] {
    font-size: 1.276rem;
}

/* Standfirst/blurb sits in .ds-article-header (a sibling of .ds-article-content),
 * which article-actions.js also stamps with the same data-text-size attribute
 * so the blurb tracks the resizer alongside the body copy. */
.ds-article-header[data-text-size="default"] .ds-article-standfirst {
    font-size: 0.968rem;
}

.ds-article-header[data-text-size="larger"] .ds-article-standfirst {
    font-size: 1.122rem;
}

.ds-article-header[data-text-size="largest"] .ds-article-standfirst {
    font-size: 1.276rem;
}

.ds-article-content[data-line-spacing="compact"] {
    line-height: 1.65;
}

.ds-article-content[data-line-spacing="normal"] {
    line-height: 1.8;
}

.ds-article-content[data-line-spacing="spacious"] {
    line-height: 2;
}

.ds-comments-anchor {
    display: block;
    height: 0;
    outline: 0;
    position: relative;
    top: -16px;
    visibility: hidden;
}

.ds-favourites-account {
    padding-top: 18px;
}

.mepr-nav-item.is-active a,
.mepr-nav-item.is-active a:focus,
.mepr-nav-item.is-active a:hover {
    font-weight: 700;
}

html[data-ds-theme-mode="runtime"][data-theme="dark"] .ds-article-actions--utility {
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

html[data-ds-theme-mode="runtime"][data-theme="dark"] .ds-article-actions__comments-link,
html[data-ds-theme-mode="runtime"][data-theme="dark"] .ds-article-actions__bookmark {
    color: rgba(255, 255, 255, 0.64);
}

html[data-ds-theme-mode="runtime"][data-theme="dark"] .ds-article-actions__comments-link::before,
html[data-ds-theme-mode="runtime"][data-theme="dark"] .ds-article-actions__bookmark::before {
    background: rgba(255, 255, 255, 0.16);
}

html[data-ds-theme-mode="runtime"][data-theme="dark"] .ds-article-actions__bookmark:hover,
html[data-ds-theme-mode="runtime"][data-theme="dark"] .ds-article-actions__bookmark:focus-visible,
html[data-ds-theme-mode="runtime"][data-theme="dark"] .ds-article-actions__comments-link:hover,
html[data-ds-theme-mode="runtime"][data-theme="dark"] .ds-article-actions__comments-link:focus-visible,
html[data-ds-theme-mode="runtime"][data-theme="dark"] .ds-article-actions__bookmark.is-favourite {
    color: #ff5260;
}

html[data-ds-theme-mode="runtime"][data-theme="dark"] .ds-article-actions__reading-time {
    color: rgba(255, 255, 255, 0.58);
}

html[data-ds-theme-mode="runtime"][data-theme="dark"] .ds-article-actions__reading-time span {
    color: #f5f5f5;
}

html[data-ds-theme-mode="runtime"][data-theme="dark"] .ds-text-settings-panel,
html[data-ds-theme-mode="runtime"][data-theme="dark"] .ds-text-settings-panel::before {
    background: #171717;
    border-color: rgba(255, 255, 255, 0.12);
}

html[data-ds-theme-mode="runtime"][data-theme="dark"] .ds-text-settings-panel {
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
}

html[data-ds-theme-mode="runtime"][data-theme="dark"] .ds-text-settings-panel__close,
html[data-ds-theme-mode="runtime"][data-theme="dark"] .ds-text-option,
html[data-ds-theme-mode="runtime"][data-theme="dark"] .ds-text-option__label {
    color: rgba(255, 255, 255, 0.68);
}

html[data-ds-theme-mode="runtime"][data-theme="dark"] .ds-text-settings-panel__section h3 {
    color: #f5f5f5;
}

html[data-ds-theme-mode="runtime"][data-theme="dark"] .ds-text-option__swatch,
html[data-ds-theme-mode="runtime"][data-theme="dark"] .ds-spacing-swatch {
    border-color: rgba(255, 255, 255, 0.14);
}

@media (max-width: 980px) {
    .ds-article-actions--top {
        display: flex;
        justify-content: flex-end;
        width: 100%;
    }

    .ds-article-actions__utility-row {
        gap: 16px;
    }

    .ds-article-actions__top-row {
        justify-content: flex-end;
    }
}

@media (max-width: 760px) {
    .ds-social-icon,
    .ds-article-actions__comments-link {
        height: 34px;
        width: 34px;
    }

    .ds-article-actions__bookmark {
        height: 36px;
        margin-left: 8px;
        margin-right: 10px;
        padding-left: 8px;
        width: 36px;
    }

    .ds-social-icon svg {
        height: 17px;
        width: 17px;
    }

    .ds-social-icon--reddit svg {
        height: 21px;
        width: 21px;
    }

    .ds-article-actions__comments-link svg {
        height: 24px;
        width: 24px;
    }

    .ds-bookmark-icon {
        height: 24px;
        width: 24px;
    }

    .ds-article-actions__share-cluster {
        gap: 5px;
    }

    .ds-article-actions__comments-link {
        margin-left: 8px;
        padding-left: 8px;
    }

    .ds-article-actions__comments-link::before,
    .ds-article-actions__bookmark::before {
        height: 34px;
    }

    .ds-article-actions--top {
        padding-right: 8px;
    }

    .ds-text-settings-trigger__icon {
        font-size: 25px;
    }

    .ds-text-settings-trigger__icon span {
        left: 13px;
        top: 4px;
    }

    .ds-text-settings-panel {
        padding: 34px 24px 30px;
        transform: scale(.7);
        transform-origin: top left;
    }

    .ds-text-settings-panel__options {
        gap: 18px;
    }

    .ds-text-option__swatch,
    .ds-spacing-swatch {
        height: 88px;
        width: 88px;
    }

    .ds-article-actions__comments-link span {
        font-size: .82rem;
    }

    .ds-article-actions__reading-time span {
        font-size: 14px;
    }

    .ds-article-actions__audio {
        flex: 1 1 auto;
    }
}
