/*
 * 기사 공유·도구(App\Helpers\ArticleTools).
 *  - 폰·태블릿(1200px 이하): 제목 아래 공유·복사·글자 크기·저장, 읽는 동안 상단 공유·복사(내려 읽을 땐 접힘), 본문 끝 공유.
 *    그때는 왼쪽 세로 막대(.tn-share-rail)를 숨긴다 — 그 막대는 이 폭에서 한 줄로 펴져 사이드 위젯·광고 뒤, 바닥글 바로
 *    위에 붙었다(tnews-theme.css 의 1200px 규칙 order: 2). 1200px 은 그 규칙과 같은 경계다.
 *  - 모든 폭: 본문 끝 '이 기사 공유하기', '공유하기' 창(받는 사람에게 보일 카드 · 짧은 주소 · 공유할 곳).
 *  - 데스크톱: 세로 막대의 공유 칸(.tn-share-rail-card) — 단추 모양은 막대의 .tn-icon-btn(언론사 스킨) 그대로.
 * 색·선은 그 언론사 값(--tn-red · --tn-ink · --tn-line)을 따른다. 카카오 노랑은 알아보는 표시라 그대로 쓴다.
 */

.tn-article-tools,
.tn-article-share-sticky {
    display: none;
}

.tn-article-share-sticky[hidden],
body.tn-menu-open .tn-article-share-sticky,
.tn-at-feedback[hidden],
.tn-at-feedback:empty,
.tn-share-sheet[hidden],
.tn-ase-btn[hidden],
.tn-ss-ch[hidden] {
    display: none !important;
}

:is(.tn-article-tools, .tn-article-share-sticky, .tn-article-share-end, .tn-share-sheet) {
    --tn-at-accent: #1f3f58;
    --tn-at-accent-hover: #142e43;
    --tn-at-soft: #f4f7fa;
    --tn-at-soft-hover: #e9eff4;
}

@supports (color: color-mix(in srgb, #000, #fff)) {
    :is(.tn-article-tools, .tn-article-share-sticky, .tn-article-share-end, .tn-share-sheet) {
        /* 매체색은 글자와 옅은 배경에만 사용해 기사보다 도구가 두드러지지 않게 한다. */
        --tn-at-accent: color-mix(in srgb, var(--tn-red, #0072bc) 60%, #111827);
        --tn-at-accent-hover: color-mix(in srgb, var(--tn-red, #0072bc) 48%, #111827);
        --tn-at-soft: color-mix(in srgb, var(--tn-red, #0072bc) 6%, #fff);
        --tn-at-soft-hover: color-mix(in srgb, var(--tn-red, #0072bc) 10%, #fff);
    }
}

.tn-at-feedback {
    position: fixed;
    top: calc(var(--tn-at-top, 0px) + 64px);
    left: 50%;
    z-index: 2147483000; /* 공유 창(.tn-share-sheet) 위에도 보인다 */
    box-sizing: border-box;
    width: max-content;
    max-width: 90vw;
    padding: 11px 16px;
    border-radius: 8px;
    background: #111827;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
    color: #fff;
    font: 600 14px/1.5 sans-serif;
    text-align: center;
    transform: translateX(-50%);
    pointer-events: none;
}

@media (max-width: 1200px) {
    .tn-share-rail {
        display: none !important;
    }

    /* 1) 제목 아래 직접 공유·복사와 기존 보조 도구 */
    .tn-article-tools {
        position: relative;
        z-index: 20;
        display: flex;
        align-items: stretch;
        gap: 0 8px;
        margin: 14px 0 10px;
        padding: 0 0 8px;
        border: 0;
        border-bottom: 1px solid var(--tn-line, #e5e7eb);
        background: transparent;
        color: var(--tn-ink, #111827);
    }

    /* JS가 본문 편집기 밖(body)으로 옮겨 transform/overflow의 영향을 받지 않게 한다. */
    .tn-article-share-sticky {
        position: fixed;
        top: var(--tn-at-top, 0px);
        right: 0;
        left: 0;
        z-index: 100;
        display: block;
        border-bottom: 1px solid var(--tn-line, #e5e7eb);
        background: #fff;
        color: var(--tn-ink, #111827);
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    /* 내려 읽는 동안은 접어 둔다(본문을 가리지 않게) — 조금이라도 올리면 다시 내려온다(tnews-article-tools.js). */
    .tn-article-share-sticky.is-tucked {
        visibility: hidden;
        opacity: 0;
        transform: translateY(-100%);
        transition: transform 0.2s ease, opacity 0.2s ease, visibility 0s linear 0.2s;
    }

    .tn-at-sticky-tools {
        display: flex;
        align-items: stretch;
        gap: 8px;
        box-sizing: border-box;
        max-width: 720px;
        margin: 0 auto;
        padding: 4px max(12px, env(safe-area-inset-right)) 4px max(12px, env(safe-area-inset-left));
    }

    /* 편집기 칸(.tn-article-layout-slot)마다 transform 이 있어 칸마다 쌓임 맥락이 생긴다 — 그대로 두면 다음 칸(본문)이
       펼친 상자 위에 그려진다. 펼친 동안만 이 줄이 든 칸을 위로 올린다. */
    .tn-article-layout-slot:has(.tn-at-item[open]),
    .tn-article-header:has(.tn-at-item[open]),
    .tn-article-main-slot:has(.tn-at-item[open]) {
        position: relative;
        z-index: 60;
    }

    .tn-at-item {
        position: relative;
        flex: 1 1 0;
        min-width: 0;
    }

    :is(.tn-article-tools, .tn-article-share-sticky) .tn-at-btn,
    .tn-article-tools .tn-bookmark-btn.tn-at-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        gap: 7px;
        width: 100%;
        height: auto;
        min-height: 48px;
        margin: 0;
        padding: 0 8px;
        border: 1px solid transparent;
        border-radius: 8px;
        background: transparent;
        color: var(--tn-ink-soft, #475569);
        font: inherit;
        font-size: 14px;
        font-weight: 600;
        letter-spacing: -0.02em;
        line-height: 1.35;
        white-space: nowrap;
        list-style: none;
        cursor: pointer;
        transition: background-color 0.15s ease, color 0.15s ease;
        -webkit-tap-highlight-color: transparent;
    }

    /* 메타 칸의 '북마크 보이기'(data-show-bookmark=0)는 칸 안 기사 카드용이다. 이 줄의 저장은 데스크톱 세로 막대처럼 늘 보인다. */
    .tn-article-tools .tn-at-save .tn-bookmark-btn.tn-at-btn {
        display: flex !important;
    }

    :is(.tn-article-tools, .tn-article-share-sticky) .tn-at-btn::-webkit-details-marker {
        display: none;
    }

    :is(.tn-article-tools, .tn-article-share-sticky) .tn-at-btn::marker {
        content: "";
    }

    :is(.tn-article-tools, .tn-article-share-sticky) .tn-at-btn i {
        color: inherit;
        font-size: 14px;
    }

    :is(.tn-article-tools, .tn-article-share-sticky) .tn-at-btn:focus-visible {
        outline: 2px solid var(--tn-at-accent);
        outline-offset: 2px;
    }

    :is(.tn-article-tools, .tn-article-share-sticky) .tn-at-btn:active {
        background: var(--tn-at-soft);
    }

    .tn-at-item[open] > .tn-at-btn,
    .tn-article-tools .tn-bookmark-btn.is-active,
    .tn-article-tools .tn-bookmark-btn.is-active i {
        color: var(--tn-at-accent);
    }

    .tn-article-tools :is(.tn-at-size, .tn-at-save) .tn-at-btn {
        font-size: 13px;
        font-weight: 600;
    }

    :is(.tn-article-tools, .tn-article-share-sticky) .tn-at-share > .tn-at-btn {
        background: var(--tn-at-soft);
        color: var(--tn-at-accent);
    }

    :is(.tn-article-tools, .tn-article-share-sticky) .tn-at-copy > .tn-at-btn {
        background: #f4f5f7;
        color: #334155;
    }

    :is(.tn-article-tools, .tn-article-share-sticky) .tn-at-share > .tn-at-btn:active {
        background: var(--tn-at-soft-hover);
        color: var(--tn-at-accent-hover);
    }

    :is(.tn-article-tools, .tn-article-share-sticky) .tn-at-copy > .tn-at-btn:active {
        background: #e9edf1;
    }

    @media (hover: hover) {
        :is(.tn-article-tools, .tn-article-share-sticky) .tn-at-btn:hover {
            background: var(--tn-at-soft);
        }

        :is(.tn-article-tools, .tn-article-share-sticky) .tn-at-share > .tn-at-btn:hover {
            background: var(--tn-at-soft-hover);
            color: var(--tn-at-accent-hover);
        }

        :is(.tn-article-tools, .tn-article-share-sticky) .tn-at-copy > .tn-at-btn:hover {
            background: #e9edf1;
        }

        .tn-at-pop :is(button, a):not([aria-pressed="true"]):hover {
            background: var(--tn-at-soft);
        }
    }

    .tn-at-ico-size {
        display: inline-flex;
        align-items: baseline;
        font-size: 16px;
        font-weight: 900;
        letter-spacing: -0.06em;
    }

    .tn-at-ico-size small {
        font-size: 11px;
        font-weight: 800;
    }

    /* 펼침 상자 — 글자 크기 세 칸, 공유 목록(공유 창을 못 띄우는 화면의 마지막 길) */
    .tn-at-pop {
        position: absolute;
        top: calc(100% + 8px);
        left: 50%;
        z-index: 40;
        display: flex;
        gap: 6px;
        padding: 8px;
        border: 1px solid var(--tn-line, #e5e7eb);
        border-radius: 10px;
        background: #fff;
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
        transform: translateX(-50%);
        white-space: nowrap;
        animation: tn-at-pop 0.16s ease-out;
    }

    .tn-at-size .tn-at-pop {
        left: 8px;
        transform: none;
    }

    .tn-at-share .tn-at-pop {
        left: 0;
        transform: none;
        box-sizing: border-box;
        flex-direction: column;
        width: min(280px, calc(100vw - 32px));
    }

    .tn-at-share .tn-at-pop :is(button, a) {
        justify-content: flex-start;
        gap: 10px;
    }

    .tn-at-share .tn-at-pop i {
        width: 18px;
        text-align: center;
    }

    .tn-at-pop button,
    .tn-at-pop a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        min-width: 56px;
        min-height: 44px;
        padding: 0 12px;
        border: 0;
        border-radius: 6px;
        background: #fff;
        color: var(--tn-ink, #111827);
        font: inherit;
        font-size: 13.5px;
        font-weight: 600;
        text-decoration: none;
        cursor: pointer;
    }

    .tn-at-pop .tn-at-size-small { font-size: 12.5px; }
    .tn-at-pop .tn-at-size-large { font-size: 16px; }

    .tn-at-pop [aria-pressed="true"] {
        border-color: var(--tn-at-accent);
        background: var(--tn-at-accent);
        color: #fff;
    }

    .tn-at-pop .is-done,
    :is(.tn-article-tools, .tn-article-share-sticky) .tn-at-btn.is-done,
    :is(.tn-article-tools, .tn-article-share-sticky) .tn-at-btn.is-done i {
        border-color: #86efac;
        background: #f0fdf4;
        color: #166534;
    }
}

/* 2) 본문 끝 — 이 기사 공유하기(모든 폭). 다 읽은 자리가 가장 많이 공유하는 자리다. */
.tn-article-share-end {
    display: block;
    margin: 34px 0 12px;
    padding: 18px 20px 16px;
    border: 1px solid var(--tn-line, #e5e7eb);
    border-radius: 12px;
    background: #fff;
}

.tn-ase-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    margin-bottom: 14px;
}

.tn-ase-title {
    display: block;
    color: var(--tn-ink, #111827);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* 짧은 주소 — 눈으로 보이고 누르면 복사 */
.tn-ase-short {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    min-height: 36px;
    padding: 0 6px 0 12px;
    border: 1px solid var(--tn-line, #e5e7eb);
    border-radius: 999px;
    background: #f8fafc;
    color: var(--tn-ink-soft, #475569);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.tn-ase-short-url {
    overflow: hidden;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tn-ase-short-act {
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--tn-at-soft);
    color: var(--tn-at-accent);
    font-size: 12px;
    font-weight: 700;
}

.tn-ase-short:hover .tn-ase-short-act,
.tn-ase-short:focus-visible .tn-ase-short-act {
    background: var(--tn-at-soft-hover);
    color: var(--tn-at-accent-hover);
}

.tn-ase-short.is-done .tn-ase-short-act {
    background: #dcfce7;
    color: #166534;
}

.tn-ase-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px 14px;
}

.tn-ase-btn {
    display: inline-flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 56px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--tn-ink-soft, #4b5563);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.tn-ase-btn:hover {
    color: var(--tn-ink, #111827);
    text-decoration: none;
}

.tn-ase-ico {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: #f4f5f7;
    color: var(--tn-ink, #111827);
    font-size: 17px;
    transition: transform 0.12s ease, background-color 0.15s ease;
}

.tn-ase-btn:active .tn-ase-ico {
    transform: scale(0.94);
}

@media (hover: hover) {
    .tn-ase-btn:hover .tn-ase-ico {
        background: #e9edf1;
    }
}

.tn-ase-native .tn-ase-ico {
    background: var(--tn-at-soft);
    color: var(--tn-at-accent);
}

.tn-ase-btn.is-facebook .tn-ase-ico { color: #1877f2; }

.tn-ase-btn.is-kakao .tn-ase-ico,
.tn-ase-btn.is-kakao:hover .tn-ase-ico {
    background: #fee500;
    color: #191919;
}

.tn-ase-btn.is-done .tn-ase-ico {
    background: #f0fdf4;
    color: #166534;
}

.tn-ase-btn:focus-visible,
.tn-ase-short:focus-visible {
    outline: none;
}

.tn-ase-btn:focus-visible .tn-ase-ico,
.tn-ase-short:focus-visible {
    outline: 2px solid var(--tn-red, #e6003c);
    outline-offset: 2px;
}

.tn-share-kakao-ico {
    width: 1.15em;
    height: 1.15em;
}

/* 본문 끝 — 폰·태블릿은 가운데 한 줄, 테두리 상자 없이(위 공통 규칙 뒤에 둬야 이긴다) */
@media (max-width: 1200px) {
    .tn-article-share-end {
        margin: 26px 0 8px;
        padding: 18px 0 8px;
        border: 0;
        border-top: 1px solid var(--tn-line, #e5e7eb);
        border-radius: 0;
        background: transparent;
        text-align: center;
    }

    .tn-ase-head {
        justify-content: center;
        margin-bottom: 12px;
    }

    .tn-ase-title {
        color: var(--tn-ink-soft, #475569);
        font-size: 13px;
        font-weight: 600;
    }

    /* 폰은 아래 목록에 '링크 복사'가 있다 */
    .tn-ase-short {
        display: none;
    }

    /* 다섯 칸(카톡·문자 · 페이스북 · X · 링크 복사 · 더보기)이 한 줄에 — 좁으면 칸이 줄어든다 */
    .tn-ase-list {
        flex-wrap: nowrap;
        justify-content: center;
        gap: 6px;
    }

    .tn-ase-btn {
        flex: 0 1 76px;
        min-width: 0;
        white-space: nowrap;
    }
}

/* 3) 데스크톱 세로 막대의 공유 칸 */
.tn-share-rail a.tn-icon-btn {
    text-decoration: none;
}

.tn-share-rail .tn-icon-btn.is-kakao {
    border-color: #fee500;
    background: #fee500;
    color: #191919;
}

.tn-share-rail .tn-icon-btn.is-kakao:hover,
.tn-share-rail .tn-icon-btn.is-kakao:focus-visible {
    border-color: #f2d900;
    background: #fdd800;
    color: #191919;
}

.tn-share-rail .tn-icon-btn.is-done {
    border-color: #86efac;
    background: #f0fdf4;
    color: #166534;
}

/* 4) 공유하기 창 — 데스크톱은 가운데, 폰은 아래에서 올라온다 */
html.tn-share-sheet-open {
    overflow: hidden;
}

.tn-share-sheet {
    position: fixed;
    inset: 0;
    z-index: 2147482000;
    display: grid;
    place-items: center;
    padding: 24px 16px;
    color: var(--tn-ink, #111827);
    font-size: 14px;
    line-height: 1.5;
}

.tn-ss-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
}

.tn-ss-panel {
    position: relative;
    box-sizing: border-box;
    width: min(440px, 100%);
    max-height: calc(100vh - 48px);
    padding: 18px 20px 20px;
    overflow-y: auto;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
    animation: tn-ss-in 0.18s ease-out;
    overscroll-behavior: contain;
}

.tn-ss-panel:focus {
    outline: none;
}

.tn-ss-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.tn-ss-head strong {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.tn-ss-close {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-right: -8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #64748b;
    font-size: 18px;
    cursor: pointer;
}

.tn-ss-close:hover,
.tn-ss-close:focus-visible {
    background: #f1f5f9;
    color: #0f172a;
}

.tn-ss-caption {
    margin: 0 0 6px;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

/* 받는 사람에게 보일 카드 — og:image · og:title · og:description · 매체 */
.tn-ss-card {
    margin: 0 0 14px;
    overflow: hidden;
    border: 1px solid var(--tn-line, #e5e7eb);
    border-radius: 12px;
    background: #f8fafc;
}

.tn-ss-card-img {
    display: block;
    width: 100%;
    aspect-ratio: 1.91 / 1;
    object-fit: cover;
    background: #e2e8f0;
}

.tn-ss-card figcaption {
    display: grid;
    gap: 3px;
    padding: 10px 12px 12px;
}

.tn-ss-card small {
    overflow: hidden;
    color: #64748b;
    font-size: 11.5px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tn-ss-card strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tn-ss-card span {
    display: -webkit-box;
    overflow: hidden;
    color: #475569;
    font-size: 13px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* 짧은 주소 칸 */
.tn-ss-url {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
}

.tn-ss-url input {
    flex: 1 1 auto;
    min-width: 0;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--tn-line, #e5e7eb);
    border-radius: 10px;
    background: #f8fafc;
    color: #334155;
    font: inherit;
    font-size: 14px;
}

.tn-ss-url input:focus {
    border-color: var(--tn-at-accent);
    outline: none;
}

.tn-ss-copy {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    height: 44px;
    padding: 0 14px;
    border: 0;
    border-radius: 10px;
    background: var(--tn-at-accent);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.tn-ss-copy:hover {
    background: var(--tn-at-accent-hover);
}

.tn-ss-copy.is-done {
    background: #16a34a;
}

/* 공유할 곳 */
.tn-ss-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 6px;
}

.tn-ss-ch {
    display: grid;
    justify-items: center;
    gap: 6px;
    min-width: 0;
    padding: 4px 0;
    border: 0;
    border-radius: 10px;
    background: none;
    color: #334155;
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.tn-ss-ch:hover {
    color: #0f172a;
    text-decoration: none;
}

.tn-ss-ch:focus-visible {
    outline: 2px solid var(--tn-red, #e6003c);
    outline-offset: 2px;
}

.tn-ss-ch-ico {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 18px;
    transition: transform 0.12s ease;
}

.tn-ss-ch:active .tn-ss-ch-ico {
    transform: scale(0.94);
}

.tn-ss-ch-ico b {
    font-family: Arial, sans-serif;
    font-size: 19px;
    font-weight: 900;
}

.tn-ss-ch.is-kakao .tn-ss-ch-ico { background: #fee500; color: #191919; }
.tn-ss-ch.is-facebook .tn-ss-ch-ico { background: #1877f2; color: #fff; }
.tn-ss-ch.is-x .tn-ss-ch-ico { background: #0f1419; color: #fff; }
.tn-ss-ch.is-naver .tn-ss-ch-ico { background: #03c75a; color: #fff; }
.tn-ss-ch.is-band .tn-ss-ch-ico { background: #06c755; color: #fff; }
.tn-ss-ch.is-done .tn-ss-ch-ico { background: #f0fdf4; color: #166534; }

/* 문자는 폰에서만 — 마우스 화면에는 열 앱이 없다 */
@media (hover: hover) and (pointer: fine) {
    .tn-ss-ch.is-sms {
        display: none;
    }
}

@keyframes tn-ss-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
    .tn-share-sheet {
        place-items: end stretch;
        padding: 0;
    }

    .tn-ss-panel {
        width: 100%;
        max-height: 92vh;
        padding: 14px 16px calc(18px + env(safe-area-inset-bottom));
        border-radius: 18px 18px 0 0;
        animation-name: tn-ss-up;
    }

    /* 아래에서 올라온 창이라는 손잡이 */
    .tn-ss-panel::before {
        content: "";
        display: block;
        width: 40px;
        height: 4px;
        margin: 0 auto 10px;
        border-radius: 999px;
        background: #cbd5e1;
    }

    .tn-ss-card-img {
        aspect-ratio: 2 / 1;
    }
}

@keyframes tn-ss-up {
    from { transform: translateY(100%); }
    to { transform: none; }
}

@media (max-width: 520px) {
    .tn-article-tools {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tn-article-tools .tn-at-size:last-child {
        grid-column: 1 / -1;
    }

    .tn-ase-list {
        gap: 4px;
    }
}

@keyframes tn-at-pop {
    from { opacity: 0; transform: translate(-50%, -4px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

.tn-at-size .tn-at-pop,
.tn-at-share .tn-at-pop {
    animation-name: tn-at-pop-left;
}

@keyframes tn-at-pop-left {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .tn-at-pop,
    .tn-ss-panel { animation: none; }

    :is(.tn-article-tools, .tn-article-share-sticky) .tn-at-btn,
    .tn-article-share-sticky,
    .tn-article-share-sticky.is-tucked {
        transition: none;
    }
}

@media print {
    .tn-article-tools,
    .tn-article-share-sticky,
    .tn-article-share-end,
    .tn-share-sheet,
    .tn-at-feedback {
        display: none !important;
    }
}
