.article-byline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    margin-top: 13px;
    color: #60736b;
    font-size: 14px;
}

.article-byline__item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.article-byline__item + .article-byline__item::before {
    content: '';
    width: 4px;
    height: 4px;
    margin-right: 8px;
    border-radius: 50%;
    background: #9aaca4;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 15px;
}

.article-tag {
    padding: 6px 10px;
    border: 1px solid #d8e4de;
    border-radius: 999px;
    background: #f5f8f6;
    color: #385448;
    font-size: 12px;
    font-weight: 700;
}

.article-share {
    position: relative;
    display: inline-grid;
    width: 46px;
    height: 46px;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid #d4e0da;
    border-radius: 14px;
    background: #fff;
    color: #214b3d;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(22, 57, 45, .08);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.article-share::after {
    content: attr(data-tooltip);
    position: absolute;
    z-index: 20;
    top: calc(100% + 10px);
    right: 0;
    width: max-content;
    max-width: min(260px, calc(100vw - 32px));
    padding: 8px 10px;
    border-radius: 8px;
    background: #24252a;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .15s ease, transform .15s ease;
}

.article-share:hover::after,
.article-share:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
}

.article-share:hover {
    transform: translateY(-2px);
    border-color: #8ca99c;
    box-shadow: 0 12px 28px rgba(22, 57, 45, .13);
}

.article-share:focus-visible {
    outline: 3px solid rgba(138, 182, 54, .35);
    outline-offset: 3px;
}

.article-share i {
    font-size: 19px;
}

.article-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.article-header-actions .button-controller {
    min-height: 46px;
    text-decoration: none;
}

.article-content {
    color: #20352d;
    font-size: 18px;
    line-height: 1.75;
}

.article-content > *:first-child {
    margin-top: 0;
}

.article-text {
    margin: 0 0 1.25em;
}

h2.article-text,
h3.article-text {
    color: #173b2e;
    line-height: 1.25;
}

h2.article-text {
    margin: 1.9em 0 .7em;
    font-size: clamp(26px, 3vw, 34px);
}

h3.article-text {
    margin: 1.6em 0 .65em;
    font-size: clamp(21px, 2.5vw, 27px);
}

.article-text--left { text-align: left; }
.article-text--center { text-align: center; }
.article-text--right { text-align: right; }
.article-text--justify { text-align: justify; }

.article-content a {
    color: var(--article-teal-dark);
    font-weight: 700;
    text-decoration-line: underline;
    text-decoration-color: rgba(8, 126, 134, .5);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    overflow-wrap: anywhere;
    cursor: pointer;
    transition: color .16s ease, text-decoration-color .16s ease;
}

.article-content a[href^="http://"]::after,
.article-content a[href^="https://"]::after {
    content: ' \2197';
    font-size: .72em;
    font-weight: 900;
}

.article-content a:hover {
    color: #055c62;
    text-decoration-color: currentColor;
}

.article-content a:focus-visible {
    color: #055c62;
    text-decoration-color: currentColor;
    outline: 3px solid rgba(8, 194, 207, .28);
    outline-offset: 3px;
    border-radius: 3px;
}

.article-content code:not(pre code) {
    padding: .14em .42em;
    border: 1px solid #46504c;
    border-radius: 6px;
    background: #2b2b2b;
    box-shadow: 0 1px 2px rgba(17, 31, 26, .18);
    color: #d7e0e7;
    font: 600 .88em/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    overflow-wrap: anywhere;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.article-quote {
    margin: 1.6em 0;
    padding: 18px 22px;
    border-left: 5px solid #b5d542;
    border-radius: 0 14px 14px 0;
    background: #f3f8e7;
    color: #304c3f;
    font-size: 1.08em;
}

.article-list {
    display: grid;
    gap: .45em;
    margin: 0 0 1.45em;
    padding-left: 1.5em;
}

.article-list li::marker {
    color: #68852b;
    font-weight: 800;
}

.article-figure,
.article-video {
    margin: 2.1em 0;
}

.article-figure img,
.article-video video {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 720px;
    margin: 0 auto;
    border-radius: 16px;
    background: #eef3f0;
    box-shadow: 0 18px 48px rgba(22, 50, 40, .12);
}

.article-zoomable-image {
    cursor: zoom-in;
}

.article-zoomable-image:focus-visible {
    outline: 4px solid rgba(8, 194, 207, .42);
    outline-offset: 4px;
}

.article-image-viewer {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    color: #fff;
    background: rgba(7, 12, 17, .94);
    border: 0;
}

.article-image-viewer::backdrop {
    background: rgba(7, 12, 17, .94);
    backdrop-filter: blur(8px);
}

.article-image-viewer__surface {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
}

.article-image-viewer__toolbar {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: calc(12px + env(safe-area-inset-top, 0px)) calc(16px + env(safe-area-inset-right, 0px)) 12px calc(16px + env(safe-area-inset-left, 0px));
    background: rgba(18, 24, 30, .94);
    border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.article-image-viewer__toolbar strong {
    min-width: 0;
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-image-viewer__controls {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
}

.article-image-viewer__controls button {
    min-width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    padding: 0 9px;
    color: #fff;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 12px;
    font: 800 18px/1 Montserrat, sans-serif;
    cursor: pointer;
}

.article-image-viewer__controls [data-image-viewer-reset] {
    min-width: 64px;
    font-size: 11px;
}

.article-image-viewer__controls [data-image-viewer-close] {
    margin-left: 5px;
    background: rgba(216, 66, 66, .22);
    border-color: rgba(255, 130, 130, .45);
    font-size: 25px;
}

.article-image-viewer__controls button:hover,
.article-image-viewer__controls button:focus-visible {
    background: rgba(8, 194, 207, .3);
    border-color: rgba(8, 194, 207, .8);
    outline: none;
}

.article-image-viewer__controls button:disabled {
    opacity: .38;
    cursor: default;
}

.article-image-viewer__stage {
    min-width: 0;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-color: rgba(255, 255, 255, .35) transparent;
}

.article-image-viewer__canvas {
    min-width: 100%;
    min-height: 100%;
    display: grid;
    place-items: center;
    padding: 16px;
    box-sizing: border-box;
}

.article-image-viewer__canvas img {
    display: block;
    max-width: none;
    max-height: none;
    margin: 0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .5);
}

body.article-image-viewer-open {
    overflow: hidden;
}

@media (max-width: 620px) {
    .article-image-viewer__toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }

    .article-image-viewer__toolbar strong {
        width: 100%;
    }

    .article-image-viewer__controls {
        width: 100%;
    }

    .article-image-viewer__controls button {
        min-width: 44px;
        height: 44px;
        flex: 1 1 0;
    }
}

.article-figure figcaption,
.article-video figcaption {
    margin-top: 11px;
    color: #697c74;
    text-align: center;
    font-size: 13px;
    line-height: 1.5;
}

.article-video__frame {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%;
    border-radius: 16px;
    background: #14231d;
    box-shadow: 0 18px 48px rgba(22, 50, 40, .14);
}

.article-video__frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.article-code {
    overflow: hidden;
    margin: 2em 0;
    border: 1px solid #4e5254;
    border-radius: 16px;
    background: #2b2b2b;
    box-shadow: 0 16px 38px rgba(0, 0, 0, .22);
}

.article-code__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 9px 11px 9px 13px;
    border-bottom: 1px solid #4e5254;
    background: #3c3f41;
}

.article-code__tabs {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    gap: 4px;
}

.article-code__tabs button,
.article-code__filename,
.article-code__copy {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #b8b8b8;
    font: 700 12px/1 Arial, sans-serif;
    white-space: nowrap;
}

.article-code__tabs button,
.article-code__copy {
    cursor: pointer;
}

.article-code__filename {
    pointer-events: none;
    cursor: default;
    user-select: none;
}

.article-code__tabs button[aria-selected=true] {
    border-color: #606366;
    background: #4b4d4f;
    color: #fff;
}

.article-code__copy {
    flex: 0 0 auto;
    border-color: #606366;
}

.article-code__copy:hover {
    background: #4b4d4f;
    color: #fff;
}

.article-code__tabs button:focus-visible,
.article-code__copy:focus-visible {
    outline: 2px solid #cc7832;
    outline-offset: 2px;
}

.article-code__panel {
    position: relative;
}

.article-code__panel[hidden] {
    display: none;
}

.article-code__language {
    position: absolute;
    top: 12px;
    right: 16px;
    z-index: 1;
    color: #808080;
    font: 700 10px/1 Arial, sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.article-code pre {
    max-height: 680px;
    margin: 0;
    overflow: auto;
    padding: 22px;
    background: #2b2b2b !important;
    scrollbar-color: #606366 #2b2b2b;
}

.article-code pre code {
    padding: 0 !important;
    background: transparent !important;
    color: #a9b7c6;
    font: 14px/1.65 "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    tab-size: 4;
}

.article-legacy-content pre {
    overflow: auto;
    margin: 2em 0;
    border: 1px solid #4e5254;
    border-radius: 16px;
    background: #2b2b2b;
    box-shadow: 0 16px 38px rgba(0, 0, 0, .22);
    scrollbar-color: #606366 #2b2b2b;
}

.article-legacy-content pre code.hljs {
    padding: 22px;
    font: 14px/1.65 "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    tab-size: 4;
}

.article-legacy-content > *:first-child { margin-top: 0; }
.article-legacy-content > *:last-child { margin-bottom: 0; }

.article-table-wrap { margin: 28px 0; overflow-x: auto; }
.article-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .95em; }
.article-table th,
.article-table td { padding: 12px 14px; border: 1px solid #d9e2dd; text-align: left; vertical-align: top; }
.article-table th { background: #f0f5f2; color: #24463a; font-weight: 800; }
.article-table tbody tr:nth-child(even) { background: #fafcfb; }
.article-callout { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 15px; margin: 28px 0; padding: 19px 21px; border-radius: 16px; background: #fff1d4; color: #3d392e; }
.article-callout > span { font-size: 27px; }
.article-divider { height: 1px; margin: 38px 0; border: 0; background: #dce5e0; }
.article-text--content-h1 { font-size: clamp(27px, 4vw, 38px); }
.article-preview-banner { display: flex; align-items: center; gap: 14px; margin: 18px 0; padding: 13px 16px; border: 1px solid #e5bd63; border-radius: 13px; background: #fff7df; color: #4d4024; font: 13px/1.4 Arial, sans-serif; }
.article-preview-banner span { flex: 1; }
.article-preview-banner a { color: #214b3d; font-weight: 800; white-space: nowrap; }

@media (max-width: 700px) {
    .article-header-actions {
        width: 100%;
        align-items: stretch;
        margin: 18px 0 0;
    }

    .article-header-actions .button-controller {
        flex: 1;
    }

    .article-content {
        font-size: 16px;
    }

    .article-byline__item + .article-byline__item::before {
        display: none;
    }

    .article-code__header {
        align-items: center;
        flex-direction: row;
        gap: 8px;
    }

    .article-code__copy {
        align-self: auto;
    }

    .article-code__tabs button,
    .article-code__filename,
    .article-code__copy {
        min-height: 44px;
    }

    .article-code pre {
        padding: 18px 14px;
    }
}
