/* Адаптивная типографика для контента */
    .post-content h1 { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 900; margin-bottom: 1rem; margin-top: 2rem; display: block; line-height: 1.2; color: #111827; text-transform: uppercase; font-style: italic; }
    .post-content h2 { font-size: clamp(1.25rem, 3vw, 1.5rem); font-weight: 800; margin-bottom: 0.75rem; margin-top: 1.5rem; display: block; color: #111827; }
    .post-content h3 { font-size: clamp(1.1rem, 2vw, 1.25rem); font-weight: 700; margin-bottom: 0.5rem; margin-top: 1rem; display: block; color: #111827; }
    .post-content p { margin-bottom: 1rem; }
    @media (min-width: 768px) {
        .post-content p { margin-bottom: 1.25rem; }
        .post-content h1 { margin-bottom: 1.5rem; margin-top: 2.5rem; }
        .post-content h2 { margin-bottom: 1rem; margin-top: 2rem; }
        .post-content h3 { margin-bottom: 0.75rem; margin-top: 1.5rem; }
    }

    .no-scrollbar::-webkit-scrollbar { display: none; }
    .no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

    .minimap-container { width: 100% !important; height: 100% !important; display: block !important; }
    .minimap-container canvas { width: 100% !important; height: 100% !important; display: block !important; }

    .post-article-shell {
        background: #fff;
    }
    .article-hero-card {
        position: relative;
        padding: 20px;
        background: linear-gradient(180deg, #ffffff 0%, #ffffff 68%, #fbfbfc 100%);
        border-bottom: 1px solid rgba(229, 231, 235, .7);
    }
    .article-hero-topline {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 14px;
    }
    .article-hero-chips {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
        min-width: 0;
    }
    .article-hero-chip {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        min-height: 34px;
        max-width: 100%;
        border: 1px solid rgba(229, 231, 235, .9);
        border-radius: 999px;
        background: #fff;
        color: #4b5563;
        padding: 0 13px;
        box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
        font-size: 10px;
        line-height: 1;
        font-weight: 900;
        letter-spacing: .08em;
        text-transform: uppercase;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .article-hero-chip-primary {
        border-color: rgba(249, 115, 22, .18);
        background: #fff7ed;
        color: #f97316;
    }
    .article-hero-chip-icon {
        width: 14px;
        height: 14px;
        flex-shrink: 0;
    }
    .article-hero-options {
        flex-shrink: 0;
    }
    .article-hero-icon-button {
        width: 40px;
        height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(229, 231, 235, .9);
        border-radius: 16px;
        background: #fff;
        color: #6b7280;
        box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
        transition: background .18s ease, color .18s ease, transform .18s ease;
    }
    .article-hero-icon-button:hover {
        background: #f9fafb;
        color: #111827;
        transform: translateY(-1px);
    }
    .article-hero-title {
        margin: 16px 0 0;
        max-width: 760px;
        color: #111827;
        font-size: 32px;
        line-height: 1.02;
        font-weight: 950;
        letter-spacing: 0;
        text-transform: none;
        overflow-wrap: anywhere;
    }
    .article-hero-subtitle {
        margin: 14px 0 0;
        max-width: 720px;
        color: #667085;
        font-size: 15px;
        line-height: 1.55;
        font-weight: 650;
    }
    .article-hero-author-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        margin-top: 22px;
    }
    .article-hero-author {
        display: inline-flex;
        align-items: center;
        min-width: 0;
        gap: 12px;
        cursor: pointer;
    }
    .article-hero-avatar {
        position: relative;
        width: 52px;
        height: 52px;
        flex-shrink: 0;
        border-radius: 18px;
        background: #eef2f7;
    }
    .article-hero-avatar img {
        display: block;
        width: 100%;
        height: 100%;
        border-radius: inherit;
        object-fit: cover;
    }
    .article-hero-avatar span {
        position: absolute;
        right: -5px;
        bottom: -5px;
        min-width: 20px;
        height: 20px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 2px solid #fff;
        border-radius: 999px;
        background: #f97316;
        color: #fff;
        padding: 0 5px;
        font-size: 9px;
        line-height: 1;
        font-weight: 900;
    }
    .article-hero-author-copy {
        min-width: 0;
    }
    .article-hero-author-copy strong {
        display: block;
        color: #111827;
        font-size: 15px;
        line-height: 1.1;
        font-weight: 900;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .article-hero-author-copy small {
        display: block;
        margin-top: 6px;
        color: #8a94a6;
        font-size: 12px;
        line-height: 1.25;
        font-weight: 700;
    }
    .article-hero-author-copy small span {
        margin: 0 6px;
        color: #c2c8d1;
    }
    .article-hero-follow {
        min-height: 42px;
        flex-shrink: 0;
        border: 1px solid rgba(249, 115, 22, .55);
        border-radius: 14px;
        background: #fff;
        color: #f97316;
        padding: 0 18px;
        font-size: 10px;
        font-weight: 900;
        letter-spacing: .08em;
        text-transform: uppercase;
        transition: background .18s ease, color .18s ease, transform .18s ease;
    }
    .article-hero-follow:hover,
    .article-hero-follow.is-following {
        background: #f97316;
        color: #fff;
        transform: translateY(-1px);
    }
    .article-hero-stats {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
        margin-top: 24px;
        border: 1px solid rgba(229, 231, 235, .9);
        border-radius: 18px;
        background: #f9fafb;
        padding: 10px;
        box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
    }
    .article-hero-stat {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
        gap: 10px;
        border-radius: 14px;
        background: rgba(255,255,255,.72);
        padding: 11px 10px;
    }
    .article-hero-stat svg {
        width: 22px;
        height: 22px;
        flex-shrink: 0;
        color: #f97316;
    }
    .article-hero-stat span {
        min-width: 0;
    }
    .article-hero-stat strong,
    .article-hero-stat small {
        display: block;
        line-height: 1.12;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .article-hero-stat strong {
        color: #111827;
        font-size: 14px;
        font-weight: 950;
    }
    .article-hero-stat small {
        margin-top: 4px;
        color: #6b7280;
        font-size: 10px;
        font-weight: 750;
    }
    .article-hero-actions {
        display: grid;
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr);
        gap: 10px;
        margin-top: 14px;
    }
    .article-hero-actions-simple {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .article-hero-action {
        min-height: 50px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
        border: 1px solid rgba(229, 231, 235, .9);
        border-radius: 14px;
        background: #fff;
        color: #111827;
        box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
        padding: 0 16px;
        font-size: 10px;
        line-height: 1;
        font-weight: 950;
        letter-spacing: .08em;
        text-transform: uppercase;
        transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
    }
    .article-hero-action svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }
    .article-hero-action:hover {
        border-color: rgba(249, 115, 22, .24);
        color: #f97316;
        transform: translateY(-1px);
    }
    .article-hero-action-primary {
        border-color: #ff5a2c;
        background: #ff5a2c;
        color: #fff;
        box-shadow: 0 16px 34px rgba(249, 115, 22, .22);
    }
    .article-hero-action-primary:hover {
        border-color: #ea580c;
        background: #ea580c;
        color: #fff;
    }
    .article-hero-action.is-saved,
    .article-hero-action.text-orange-500 {
        color: #f97316;
        border-color: rgba(249, 115, 22, .24);
        background: #fff7ed;
    }
    .article-hero-media {
        position: relative;
        min-height: 260px;
        margin-top: 18px;
        overflow: hidden;
        border-radius: 22px;
        background: #111827;
        aspect-ratio: 16 / 7;
    }
    .article-hero-media img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .article-hero-media-expand {
        position: absolute;
        right: 14px;
        top: 14px;
        z-index: 10;
        width: 42px;
        height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(255,255,255,.7);
        border-radius: 16px;
        background: rgba(255,255,255,.88);
        color: #4b5563;
        box-shadow: 0 12px 26px rgba(15, 23, 42, .18);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        transition: background .18s ease, color .18s ease, transform .18s ease;
    }
    .article-hero-media-expand:hover {
        background: #fff;
        color: #111827;
        transform: translateY(-1px);
    }
    .article-hero-media-expand svg {
        width: 20px;
        height: 20px;
    }
    .article-hero-media-empty {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: rgba(255,255,255,.55);
    }
    .article-hero-media-empty svg {
        width: 72px;
        height: 72px;
    }
    .article-content-wrap {
        background: #fff;
    }
    @media (min-width: 768px) {
        .article-hero-card {
            padding: 28px;
            border-radius: 32px 32px 0 0;
        }
        .article-hero-title {
            font-size: 46px;
            max-width: 820px;
        }
        .article-hero-subtitle {
            font-size: 16px;
        }
    }
    @media (max-width: 767px) {
        .article-hero-card {
            padding: 16px;
        }
        .article-hero-title {
            font-size: 30px;
        }
        .article-hero-topline,
        .article-hero-author-row {
            align-items: stretch;
            flex-direction: column;
        }
        .article-hero-options {
            position: absolute;
            top: 14px;
            right: 14px;
        }
        .article-hero-chips {
            padding-right: 48px;
            gap: 8px;
        }
        .article-hero-chip {
            min-height: 31px;
            padding: 0 10px;
            font-size: 9px;
        }
        .article-hero-author-row {
            gap: 12px;
        }
        .article-hero-follow {
            width: 100%;
        }
        .article-hero-stats {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
        .article-hero-stat {
            justify-content: flex-start;
        }
        .article-hero-actions {
            grid-template-columns: 1fr;
        }
        .article-hero-media {
            min-height: 210px;
            aspect-ratio: 4 / 3;
            border-radius: 20px;
        }
    }

    .post-detail-layout {
        --route-map-top: 5.75rem;
        --route-map-bottom-gap: 1rem;
        width: 100%;
        max-width: 1600px;
        margin-left: auto;
        margin-right: auto;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        position: relative;
    }
    .post-detail-main {
        width: 100%;
        min-width: 0;
    }
    .post-detail-layout:not(.has-route) {
        padding-top: 0;
        padding-bottom: 0;
    }
    .post-detail-layout:not(.has-route) .post-detail-main {
        max-width: 850px;
        margin-left: auto;
        margin-right: auto;
    }
    #route-sidebar-column {
        display: none;
    }
    #route-sidebar-panel {
        width: 100%;
        height: calc(100dvh - var(--route-map-top) - var(--route-map-bottom-gap));
        min-height: 420px;
        max-height: calc(100dvh - var(--route-map-top) - var(--route-map-bottom-gap));
        position: relative;
        top: auto;
        left: auto;
        transition: height .24s ease, max-height .24s ease, border-radius .24s ease, box-shadow .24s ease, opacity .22s ease, transform .24s ease;
    }
    .route-companion-card {
        background: rgba(17, 24, 39, 0.46);
        border: 1px solid rgba(255, 255, 255, 0.18);
        box-shadow: 0 16px 38px rgba(15, 23, 42, 0.14);
        backdrop-filter: blur(20px) saturate(135%);
        -webkit-backdrop-filter: blur(20px) saturate(135%);
        overflow: visible !important;
    }
    .route-map-controls + .min-w-0 {
        padding-right: 8.75rem;
    }
    .route-map-control {
        width: 30px;
        height: 30px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        color: rgba(255,255,255,.84);
        background: rgba(255,255,255,.12);
        border: 1px solid rgba(255,255,255,.16);
        opacity: .78;
        transition: background .18s ease, color .18s ease, transform .18s ease, opacity .18s ease;
    }
    .route-map-control:hover {
        background: rgba(255,255,255,.24);
        color: #fff;
        opacity: 1;
        transform: translateY(-1px);
    }
    .route-map-control.is-active {
        background: rgba(249,115,22,.82);
        border-color: rgba(251,146,60,.72);
        color: #fff;
        opacity: 1;
    }
    .route-map-legend {
        display: none;
    }
    .route-map-layer-panel {
        display: none;
    }
    .route-companion-card.is-layer-panel-open .route-map-layer-panel,
    .route-companion-card.is-legend-open .route-map-legend {
        display: flex;
    }
    .route-map-mode-btn {
        border: 1px solid rgba(255,255,255,.14);
        background: rgba(255,255,255,.1);
        color: rgba(255,255,255,.72);
        transition: background .18s ease, color .18s ease, border-color .18s ease;
    }
    .route-map-mode-btn:hover,
    .route-map-mode-btn.is-active {
        background: rgba(249,115,22,.86);
        border-color: rgba(251,146,60,.76);
        color: #fff;
    }
    .route-map-control[data-tooltip] {
        position: relative;
    }
    .route-map-control[data-tooltip]::after {
        content: attr(data-tooltip);
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        width: max-content;
        max-width: 180px;
        padding: 7px 9px;
        border-radius: 10px;
        background: rgba(15, 23, 42, .94);
        color: #fff;
        font-size: 9px;
        line-height: 1.25;
        font-weight: 800;
        letter-spacing: .06em;
        text-transform: uppercase;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-4px);
        transition: opacity .16s ease, transform .16s ease;
    }
    .route-map-control[data-tooltip]:hover::after {
        opacity: 1;
        transform: translateY(0);
    }
    .route-companion-card:not(.is-details-open) .weather-widget-container,
    .route-companion-card:not(.is-details-open) [title*="темп"],
    .route-companion-card:not(.is-details-open) [title*="Темп"] {
        display: none !important;
    }
    .route-weather-compact {
        width: fit-content;
        max-width: 100%;
    }
    .route-elevation-strip {
        display: none;
    }
    .route-companion-card.is-details-open .route-elevation-strip.has-data {
        display: block;
    }
    .route-elevation-strip svg {
        width: 100%;
        height: 34px;
        display: block;
    }
    .route-current-range {
        white-space: nowrap;
    }
    .route-current-meta,
    .route-progress-meta {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px 8px;
    }
    .route-current-meta > span + span::before,
    .route-progress-meta > span + span::before {
        content: "";
        display: inline-block;
        width: 3px;
        height: 3px;
        margin-right: 8px;
        border-radius: 999px;
        background: currentColor;
        opacity: .45;
        vertical-align: middle;
    }
    .route-story-anchor-flash {
        animation: routeStoryFlash 1.8s ease;
    }
    @keyframes routeStoryFlash {
        0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, .26); background: rgba(239, 246, 255, .75); }
        100% { box-shadow: 0 0 0 14px rgba(37, 99, 235, 0); background: transparent; }
    }
    #route-sidebar-panel.route-widget-manual-compact .route-widget-header,
    #route-sidebar-panel.route-widget-manual-compact .route-widget-actions {
        opacity: 0;
        transform: translateY(-8px);
        pointer-events: none;
    }
    #route-sidebar-panel.route-widget-manual-compact .route-compact-summary {
        opacity: 1;
        transform: translateY(-50%);
        pointer-events: auto;
    }
    #route-sidebar-panel.route-widget-plain-route .route-map-legend span:nth-child(n+2) {
        display: none;
    }
    #route-sidebar-panel.route-widget-plain-route .route-map-legend span:first-child i {
        background: #f97316;
    }
    #route-sidebar-panel.route-widget-plain-route .route-current-section {
        display: none;
    }
    #route-sidebar-panel.route-widget-plain-route .route-compact-summary .route-current-section-title,
    #route-sidebar-panel.route-widget-plain-route .route-compact-summary .route-current-range,
    #route-sidebar-panel.route-widget-plain-route .route-compact-summary .route-story-progress-track,
    #route-sidebar-panel.route-widget-plain-route .route-compact-summary .route-story-progress-label {
        display: none;
    }
    .mobile-route-story-bar.route-widget-plain-route .route-current-section-title,
    .mobile-route-story-bar.route-widget-plain-route .route-story-progress-track,
    .mobile-route-story-bar.route-widget-plain-route .route-story-progress-label {
        display: none;
    }
    .maplibregl-popup.route-story-map-popup .maplibregl-popup-content {
        border-radius: 12px;
        border: 1px solid rgba(249,115,22,.22);
        box-shadow: 0 14px 34px rgba(15,23,42,.18);
        padding: 8px 10px;
        font-size: 10px;
        font-weight: 900;
        color: #111827;
    }
    .route-companion-metric {
        display: inline-flex;
        align-items: center;
        white-space: nowrap;
    }
    .route-companion-metric + .route-companion-metric::before {
        content: "";
        width: 3px;
        height: 3px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.46);
        margin: 0 8px;
    }
    .route-widget-header,
    .route-widget-actions,
    .route-compact-summary {
        transition: opacity .2s ease, transform .24s ease;
    }
    .route-compact-summary {
        opacity: 0;
        transform: translateY(calc(-50% + 8px));
        pointer-events: none;
        left: 1.5rem !important;
        right: auto !important;
        width: clamp(230px, 42%, 300px);
        max-width: calc(100% - 3rem);
    }
    #route-sidebar-panel.route-widget-compact {
        min-height: 0;
        box-shadow: 0 18px 44px rgba(15, 23, 42, .14);
    }
    #route-sidebar-panel.route-widget-compact .route-widget-header,
    #route-sidebar-panel.route-widget-compact .route-widget-actions {
        opacity: 0;
        transform: translateY(-8px);
        pointer-events: none;
    }
    #route-sidebar-panel.route-widget-compact .route-compact-summary {
        opacity: 1;
        transform: translateY(-50%);
        pointer-events: auto;
    }
    #route-sidebar-panel.route-widget-compact .minimap-container {
        opacity: .78;
    }
    #route-sidebar-panel.route-widget-hidden {
        opacity: 0;
        transform: translate3d(0, 14px, 0);
        pointer-events: none;
    }
    .route-current-section {
        border-top: 1px solid rgba(255, 255, 255, .14);
    }
    .route-story-nav-link.is-active {
        border-color: rgba(249, 115, 22, .55);
        background: #fff7ed;
        color: #ea580c;
        box-shadow: 0 12px 32px rgba(249, 115, 22, .16);
        transform: translateY(-1px);
    }
    .route-story-nav-link {
        cursor: pointer;
        max-width: 100%;
    }
    .route-story-nav-link.is-active .route-story-nav-number {
        background: #f97316;
        color: #fff;
    }
    .route-story-nav-link.is-active .route-story-nav-meta {
        color: #fb923c;
    }
    .route-story-block-bound {
        transition: box-shadow .2s ease, background-color .2s ease;
        border-radius: 20px;
        position: relative;
        padding: 14px 16px;
        margin-left: -16px;
        margin-right: -16px;
        cursor: pointer;
    }
    .route-story-block-bound:focus-visible {
        outline: 2px solid rgba(249, 115, 22, .38);
        outline-offset: 4px;
    }
    .route-story-block-bound.route-story-block-active {
        box-shadow: 0 18px 44px rgba(249, 115, 22, .16), 0 0 36px rgba(249, 115, 22, .12);
        background: rgba(255, 247, 237, .68);
    }
    .route-story-map-link-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin: 8px 0 4px;
        border-radius: 999px;
        border: 1px solid rgba(249, 115, 22, .22);
        background: #fff7ed;
        color: #ea580c;
        padding: 6px 10px;
        font-size: 9px;
        line-height: 1;
        font-weight: 900;
        letter-spacing: .08em;
        text-transform: uppercase;
    }
    .comment-composer-shell {
        transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
    }
    .comment-composer-expanded .comment-composer-shell {
        background: #fff;
        border-color: rgba(249, 115, 22, .32);
        box-shadow: 0 16px 38px rgba(15, 23, 42, .06);
    }
    .comment-composer-extra,
    .comment-route-panel,
    .comment-reply-context {
        display: none;
    }
    .comment-composer-expanded .comment-composer-extra,
    .comment-composer-expanded .comment-reply-context.is-visible,
    .comment-route-panel.is-open {
        display: block;
    }
    .comment-submit-btn:disabled {
        opacity: .45;
        cursor: not-allowed;
        box-shadow: none;
    }
    .comment-thread {
        transition: background .18s ease, box-shadow .18s ease, border-color .18s ease, opacity .18s ease, transform .18s ease;
    }
    .comment-thread.is-selected {
        background: rgba(255, 247, 237, .8);
        box-shadow: 0 0 0 3px rgba(249, 115, 22, .12);
    }
    .comment-thread.is-filter-hidden,
    .comment-thread.is-pagination-hidden,
    .comment-reply.is-reply-hidden {
        display: none;
    }
    .comment-menu-panel {
        display: none;
    }
    .comment-menu.is-open .comment-menu-panel {
        display: block;
    }
    .comment-route-link:hover {
        border-color: rgba(249, 115, 22, .42);
        background: rgba(255, 247, 237, .85);
        color: #ea580c;
    }
    .comment-level-badge {
        opacity: .72;
        transform: scale(.86);
        transform-origin: bottom right;
        background: rgba(249, 115, 22, .72);
    }
    .route-story-heading-trigger {
        cursor: pointer;
        transition: color .2s ease;
    }
    .route-story-heading-trigger:hover {
        color: #f97316;
    }
    .route-story-heading-trigger:focus-visible {
        outline: 2px solid rgba(249, 115, 22, .45);
        outline-offset: 4px;
        border-radius: 8px;
    }
    .route-story-progress-track {
        height: 4px;
        overflow: hidden;
        border-radius: 999px;
        background: rgba(255, 255, 255, .18);
    }
    .route-story-progress-fill {
        width: 0%;
        height: 100%;
        border-radius: inherit;
        background: #f97316;
        transition: width .28s ease;
    }
    .route-compact-summary .route-story-progress-track,
    .mobile-route-story-bar .route-story-progress-track {
        background: rgba(17, 24, 39, .08);
    }
    .mobile-route-story-bar {
        display: none;
    }
    .mobile-route-story-map-canvas {
        display: block;
        position: relative;
        height: 230px;
        min-height: 230px;
        overflow: hidden;
        background: #fff;
    }
    .article-route-map-card {
        background: rgba(255, 255, 255, .72);
        border: 1px solid rgba(255, 255, 255, .82);
        box-shadow: 0 18px 48px rgba(15, 23, 42, .12);
        backdrop-filter: blur(18px) saturate(140%);
        -webkit-backdrop-filter: blur(18px) saturate(140%);
    }
    .article-route-map-card.is-open {
        background: rgba(255, 255, 255, .86);
        border-color: rgba(249, 115, 22, .2);
    }
    .article-route-map-toggle-icon {
        transition: transform .22s ease;
    }
    .article-route-map-card.is-open .article-route-map-toggle-icon {
        transform: rotate(180deg);
    }
    .article-route-map-panel {
        animation: articleRouteMapReveal .24s ease;
    }
    .article-route-map-panel.hidden {
        display: none !important;
    }
    @keyframes articleRouteMapReveal {
        from { opacity: 0; transform: translateY(-8px); }
        to { opacity: 1; transform: translateY(0); }
    }
    #main-comment-form textarea {
        min-height: 40px;
        transition: min-height .22s ease;
    }
    #main-comment-form .comment-composer-extra {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        pointer-events: none;
        transition: max-height .22s ease, opacity .18s ease, margin-top .22s ease;
    }
    #main-comment-form:focus-within textarea,
    #main-comment-form.comment-composer-expanded textarea {
        min-height: 76px;
    }
    #main-comment-form:focus-within .comment-composer-extra,
    #main-comment-form.comment-composer-expanded .comment-composer-extra {
        max-height: 720px;
        opacity: 1;
        pointer-events: auto;
        margin-top: .5rem;
    }
    .tropa-video-player {
        --video-played: 0%;
        --video-buffered: 0%;
        overflow: hidden;
        background: #050608;
        border-top: 1px solid rgba(17, 24, 39, .08);
        border-bottom: 1px solid rgba(17, 24, 39, .08);
        box-shadow: none;
    }
    .post-media-frame {
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    .post-photo-frame {
        overflow: hidden;
    }
    .tropa-video-shell {
        position: relative;
        aspect-ratio: 16 / 9;
        background: radial-gradient(circle at 50% 36%, #27303a 0, #08090b 58%, #020304 100%);
        overflow: hidden;
    }
    .tropa-video-shell iframe {
        display: block;
        width: 100%;
        height: 100%;
        border: 0;
    }
    .tropa-video {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
        background: #050608;
    }
    .tropa-video[poster] {
        object-fit: cover;
    }
    .tropa-video-player.has-started .tropa-video {
        object-fit: contain;
    }
    .tropa-video-shade {
        position: absolute;
        inset: 0;
        z-index: 5;
        pointer-events: none;
        background:
            linear-gradient(180deg, rgba(0,0,0,.34), transparent 28%),
            linear-gradient(0deg, rgba(0,0,0,.72), transparent 42%);
        opacity: .92;
        transition: opacity .22s ease;
    }
    .tropa-video-player.is-playing:not(.is-controls-visible) .tropa-video-shade {
        opacity: .18;
    }
    .tropa-video-play {
        position: absolute;
        inset: 0;
        z-index: 20;
        width: 56px;
        height: 56px;
        margin: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        color: #fff;
        background: rgba(0, 0, 0, .42);
        border: 1px solid rgba(255, 255, 255, .28);
        box-shadow: 0 18px 45px rgba(0, 0, 0, .34);
        backdrop-filter: blur(18px);
        transition: transform .18s ease, background .18s ease, opacity .18s ease;
    }
    .tropa-video-play:hover {
        transform: scale(1.04);
        background: rgba(249, 115, 22, .92);
    }
    .tropa-video-player.is-playing .tropa-video-play {
        opacity: 0;
        pointer-events: none;
        transform: scale(.92);
    }
    .tropa-video-caption {
        position: absolute;
        left: 16px;
        right: 16px;
        bottom: 68px;
        z-index: 15;
        min-width: 0;
        color: #fff;
        pointer-events: none;
        transition: opacity .2s ease, transform .2s ease;
    }
    .tropa-video-caption span {
        display: block;
        margin-bottom: 3px;
        color: rgba(255,255,255,.74);
        font-size: 9px;
        font-weight: 900;
        line-height: 1;
        letter-spacing: .12em;
        text-transform: uppercase;
    }
    .tropa-video-caption strong {
        display: block;
        max-width: 76%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 14px;
        font-weight: 900;
        line-height: 1.1;
    }
    .tropa-video-player.is-playing:not(.is-controls-visible) .tropa-video-caption {
        opacity: 0;
        transform: translateY(8px);
    }
    .tropa-video-controls {
        position: absolute;
        left: 10px;
        right: 10px;
        bottom: 10px;
        z-index: 30;
        display: flex;
        align-items: center;
        gap: 8px;
        min-height: 44px;
        color: #fff;
        opacity: 0;
        transform: translateY(10px);
        pointer-events: none;
        transition: opacity .2s ease, transform .2s ease;
    }
    .tropa-video-player.is-paused .tropa-video-controls,
    .tropa-video-player.is-controls-visible .tropa-video-controls {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
    .tropa-video-toggle,
    .tropa-video-mute,
    .tropa-video-fullscreen {
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        color: rgba(255,255,255,.92);
        background: rgba(0,0,0,.26);
        border: 1px solid rgba(255,255,255,.13);
        backdrop-filter: blur(16px);
        transition: background .18s ease, color .18s ease, transform .18s ease;
    }
    .tropa-video-toggle:hover,
    .tropa-video-mute:hover,
    .tropa-video-fullscreen:hover {
        color: #fff;
        background: rgba(249, 115, 22, .92);
    }
    .tropa-video-time {
        flex: 0 0 auto;
        min-width: 73px;
        color: rgba(255,255,255,.88);
        font-size: 10px;
        font-weight: 900;
        line-height: 1;
        letter-spacing: .02em;
        text-shadow: 0 1px 6px rgba(0,0,0,.45);
        white-space: nowrap;
    }
    .tropa-video-timeline {
        position: relative;
        flex: 1 1 auto;
        min-width: 42px;
        height: 26px;
        display: flex;
        align-items: center;
    }
    .tropa-video-timeline::before,
    .tropa-video-buffered,
    .tropa-video-played {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 50%;
        height: 5px;
        border-radius: 999px;
        transform: translateY(-50%);
    }
    .tropa-video-timeline::before {
        background: rgba(255,255,255,.22);
    }
    .tropa-video-buffered {
        right: auto;
        width: var(--video-buffered);
        background: rgba(255,255,255,.42);
    }
    .tropa-video-played {
        right: auto;
        width: var(--video-played);
        background: #f97316;
        box-shadow: 0 0 16px rgba(249, 115, 22, .42);
    }
    .tropa-video-range,
    .tropa-video-volume {
        position: relative;
        z-index: 2;
        width: 100%;
        height: 26px;
        cursor: pointer;
        appearance: none;
        background: transparent;
        accent-color: #f97316;
    }
    .tropa-video-range::-webkit-slider-runnable-track,
    .tropa-video-volume::-webkit-slider-runnable-track {
        height: 5px;
        background: transparent;
    }
    .tropa-video-range::-webkit-slider-thumb,
    .tropa-video-volume::-webkit-slider-thumb {
        appearance: none;
        width: 0;
        height: 0;
        border-radius: 999px;
        background: #fff;
        box-shadow: 0 2px 10px rgba(0,0,0,.32);
        transition: width .16s ease, height .16s ease, margin-top .16s ease;
    }
    .tropa-video-timeline:hover .tropa-video-range::-webkit-slider-thumb,
    .tropa-video-range:focus::-webkit-slider-thumb,
    .tropa-video-volume:hover::-webkit-slider-thumb,
    .tropa-video-volume:focus::-webkit-slider-thumb {
        width: 14px;
        height: 14px;
        margin-top: -4.5px;
    }
    .tropa-video-range::-moz-range-track,
    .tropa-video-volume::-moz-range-track {
        height: 5px;
        background: transparent;
    }
    .tropa-video-range::-moz-range-thumb,
    .tropa-video-volume::-moz-range-thumb {
        width: 0;
        height: 0;
        border: 0;
        border-radius: 999px;
        background: #fff;
    }
    .tropa-video-volume-wrap {
        position: relative;
        flex: 0 0 44px;
    }
    .tropa-video-volume {
        position: absolute;
        right: 0;
        bottom: 52px;
        width: 96px;
        height: 32px;
        padding: 0 10px;
        border-radius: 999px;
        background: rgba(0,0,0,.42);
        backdrop-filter: blur(16px);
        opacity: 0;
        pointer-events: none;
        transition: opacity .18s ease, transform .18s ease;
        transform: translateY(6px);
    }
    .tropa-video-volume-wrap:hover .tropa-video-volume,
    .tropa-video-volume:focus {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
    .tropa-video-loader,
    .tropa-video-error {
        position: absolute;
        left: 50%;
        top: 50%;
        z-index: 25;
        transform: translate(-50%, -50%);
        display: none;
        align-items: center;
        gap: 10px;
        border-radius: 999px;
        background: rgba(0,0,0,.48);
        color: #fff;
        padding: 10px 14px;
        font-size: 10px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: .08em;
        backdrop-filter: blur(18px);
        white-space: nowrap;
    }
    .tropa-video-player.is-loading .tropa-video-loader,
    .tropa-video-player.has-error .tropa-video-error {
        display: flex;
    }
    .tropa-video-retry {
        border-radius: 999px;
        background: #f97316;
        color: #fff;
        padding: 7px 10px;
    }
    .tropa-video-player.is-vertical {
        max-width: 430px;
        margin-left: auto;
        margin-right: auto;
        border-radius: 32px;
    }
    .tropa-video-player.is-vertical .tropa-video-shell {
        aspect-ratio: 9 / 16;
        max-height: min(78vh, 720px);
    }
    @media (min-width: 768px) {
        .tropa-video-player {
            border: 1px solid rgba(17, 24, 39, .08);
            border-radius: 32px;
            box-shadow: 0 18px 45px rgba(15, 23, 42, .10);
        }
        .tropa-video-play {
            width: 72px;
            height: 72px;
        }
        .tropa-video-controls {
            left: 18px;
            right: 18px;
            bottom: 18px;
            gap: 10px;
        }
        .tropa-video-caption {
            left: 22px;
            right: 22px;
            bottom: 84px;
        }
        .tropa-video-caption strong {
            font-size: 17px;
        }
    }
    @media (max-width: 767px) {
        #post-detail-article .post-content .post-media-frame {
            width: 100%;
            max-width: 100%;
            margin-left: 0;
            margin-right: 0;
        }
        .post-detail-main article:not(#post-detail-article) .post-media-frame {
            width: calc(100% - 2rem);
            max-width: calc(100% - 2rem);
            margin-left: auto;
            margin-right: auto;
        }
        .post-detail-main .post-media-frame.tropa-video-player,
        .post-detail-main .post-photo-frame {
            border-radius: 22px;
        }
        .post-detail-main .post-media-frame .tropa-video-shell {
            border-radius: inherit;
        }
        .tropa-video-volume-wrap {
            display: none;
        }
        .tropa-video-time {
            min-width: 69px;
            font-size: 9px;
        }
        .tropa-video-caption strong {
            max-width: 88%;
        }
        .tropa-video-toggle,
        .tropa-video-fullscreen {
            width: 44px;
            height: 44px;
        }
    }
    .post-related-section {
        width: 100%;
    }
    @media (min-width: 640px) {
        .post-detail-layout {
            padding-left: 1rem;
            padding-right: 1rem;
        }
    }
    @media (min-width: 768px) {
        .post-detail-layout {
            gap: 2rem;
            padding-left: 2rem;
            padding-right: 2rem;
        }
        .post-detail-layout.has-route {
            padding-top: 1rem;
        }
        .post-detail-layout:not(.has-route) {
            padding-top: 2rem;
            padding-bottom: 2rem;
        }
    }
    @media (max-width: 767px) {
        .post-detail-layout.has-route {
            padding-bottom: 6.25rem;
        }
        .mobile-route-story-bar {
            display: block;
            position: fixed;
            left: 1rem;
            right: 1rem;
            bottom: calc(88px + env(safe-area-inset-bottom, 0px));
            z-index: 125;
            transform: translateZ(0);
        }
    }
    @media (min-width: 1200px) {
        .post-detail-layout.has-route {
            display: grid;
            grid-template-columns: minmax(640px, 760px) minmax(420px, 1fr);
            align-items: flex-start;
            gap: 2.5rem;
            min-height: calc(100dvh - var(--route-map-top) - var(--route-map-bottom-gap));
        }
        .post-detail-layout.has-route .post-detail-main {
            width: 100%;
            max-width: none;
        }
        .post-detail-layout.has-route #route-sidebar-column {
            display: block;
            width: 100%;
            min-width: 0;
            align-self: flex-start;
            height: calc(100dvh - var(--route-map-top) - var(--route-map-bottom-gap));
            min-height: 0;
            position: sticky;
            top: var(--route-map-top);
            z-index: 5;
        }
        .post-detail-layout.has-route #route-sidebar-panel {
            position: relative;
            height: 100%;
            max-height: 100%;
            z-index: 5;
        }
        .post-detail-layout.has-route .post-related-section {
            width: 100%;
        }
    }
    @media (min-width: 1280px) {
        .post-detail-layout.has-route {
            grid-template-columns: minmax(700px, 780px) minmax(460px, 1fr);
        }
        .post-detail-layout.has-route .post-detail-main {
            max-width: none;
        }
        .post-detail-layout.has-route .post-related-section {
            width: 100%;
        }
    }

    /* Mobile continuation: route stories, comments and media should stay inside the viewport. */
    @media (max-width: 767px) {
        .post-detail-layout {
            width: 100%;
            max-width: 100%;
            overflow-x: hidden;
            padding-left: 0 !important;
            padding-right: 0 !important;
        }

        .post-detail-layout.has-route {
            padding-bottom: calc(7.25rem + env(safe-area-inset-bottom, 0px));
        }

        .post-detail-main {
            width: 100%;
            max-width: 100%;
            overflow-x: hidden;
        }

        .post-detail-main > article,
        #post-detail-article {
            max-width: 100%;
            overflow-x: hidden;
        }

        #post-detail-article {
            border-radius: 0 !important;
        }

        #post-detail-article .post-content {
            overflow-wrap: anywhere;
        }

        #post-detail-article .post-content img,
        #post-detail-article .post-content video,
        #post-detail-article .post-content iframe,
        #post-detail-article .post-content table {
            max-width: 100%;
        }

        #route-story-nav {
            margin-left: 1rem;
            margin-right: 1rem;
            overflow: hidden;
        }

        #route-story-nav-items {
            flex-wrap: nowrap;
            overflow-x: auto;
            padding-bottom: 4px;
            scroll-padding-inline: 4px;
            scrollbar-width: none;
        }

        #route-story-nav-items::-webkit-scrollbar {
            display: none;
        }

        .route-story-nav-link {
            min-height: 44px;
            flex: 0 0 auto;
            max-width: 82vw;
        }

        .route-story-block-bound {
            margin-left: 0;
            margin-right: 0;
            padding: 12px 0;
            border-radius: 16px;
        }

        .route-story-map-link-badge,
        .comment-route-link,
        .comment-filter-btn,
        .comment-suggestion {
            max-width: 100%;
        }

        .route-story-map-link-badge span,
        .comment-route-link span {
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .article-route-map-card {
            width: 100% !important;
            max-width: 100% !important;
            margin-left: 0 !important;
            margin-right: 0 !important;
            border-radius: 22px !important;
        }

        .article-route-map-panel {
            max-width: 100%;
            overflow: hidden;
        }

        .mobile-route-story-bar {
            left: 12px;
            right: 12px;
            bottom: calc(78px + env(safe-area-inset-bottom, 0px));
            max-width: calc(100% - 24px);
        }

        .mobile-route-story-bar .route-companion-card {
            border-radius: 20px;
            padding: 12px;
        }

        .mobile-route-story-map-canvas {
            height: 180px;
            min-height: 180px;
        }

        #comments-section {
            max-width: 100%;
            overflow-x: hidden;
            padding-bottom: 8px;
        }

        #comments-section > .mb-4 {
            align-items: stretch;
        }

        #comment-sort-select {
            width: 100%;
            min-height: 44px;
            border-radius: 16px;
            font-size: 11px;
        }

        #comment-filters {
            flex-wrap: nowrap;
            overflow-x: auto;
            margin-left: -1rem;
            margin-right: -1rem;
            padding: 0 1rem 4px;
            scroll-padding-inline: 1rem;
            scrollbar-width: none;
        }

        #comment-filters::-webkit-scrollbar {
            display: none;
        }

        .comment-filter-btn {
            min-height: 40px;
            flex: 0 0 auto;
            letter-spacing: 0.04em;
        }

        #main-comment-form {
            align-items: flex-start;
            gap: 8px !important;
        }

        #main-comment-form > a {
            width: 36px;
            height: 36px;
        }

        .comment-composer-shell {
            min-width: 0;
            border-radius: 22px !important;
            padding: 10px 12px !important;
        }

        .comment-textarea {
            font-size: 16px !important;
            line-height: 1.38 !important;
        }

        #main-comment-form:focus-within textarea,
        #main-comment-form.comment-composer-expanded textarea {
            min-height: 86px;
        }

        .comment-composer-extra .mt-2,
        .comment-composer-extra .mt-3,
        #comment-route-options {
            flex-wrap: nowrap !important;
            overflow-x: auto;
            padding-bottom: 2px;
            scrollbar-width: none;
        }

        .comment-composer-extra .mt-2::-webkit-scrollbar,
        .comment-composer-extra .mt-3::-webkit-scrollbar,
        #comment-route-options::-webkit-scrollbar {
            display: none;
        }

        .comment-suggestion,
        .comment-composer-extra button,
        .comment-submit-btn {
            min-height: 40px;
            flex: 0 0 auto;
        }

        .comment-submit-btn {
            min-width: 118px;
        }

        .comment-route-panel {
            border-radius: 20px !important;
        }

        .comment-route-panel > .flex {
            align-items: flex-start;
        }

        .comment-thread {
            max-width: 100%;
            overflow: visible;
            border-radius: 22px !important;
            padding: 12px !important;
        }

        .comment-thread > .flex {
            gap: 10px;
        }

        .comment-body-wrapper {
            min-width: 0;
            overflow-wrap: anywhere;
        }

        .comment-body-wrapper > .flex:first-child {
            gap: 8px;
        }

        .comment-text-content {
            overflow-wrap: anywhere;
            word-break: break-word;
        }

        .comment-menu-toggle {
            width: 40px !important;
            height: 40px !important;
        }

        .comment-menu-panel {
            position: fixed !important;
            left: 14px !important;
            right: 14px !important;
            top: auto !important;
            bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important;
            width: auto !important;
            max-width: none !important;
            border-radius: 22px !important;
            padding: 8px !important;
            z-index: 520 !important;
        }

        .comment-menu-panel button,
        .comment-menu-panel a {
            min-height: 44px;
            border-radius: 14px !important;
            font-size: 12px !important;
        }

        .comment-replies {
            margin-top: 10px !important;
            padding-left: 10px !important;
        }

        .comment-reply {
            max-width: 100%;
            overflow-wrap: anywhere;
        }

        #comments-show-more,
        #comments-empty-state button,
        #comment-no-results button {
            min-height: 44px;
        }

        #comment-toast {
            left: 12px;
            right: 12px;
            bottom: calc(88px + env(safe-area-inset-bottom, 0px));
            transform: none;
            width: auto;
            text-align: center;
        }

        #comment-confirm-modal {
            align-items: flex-end;
            padding: 0 12px calc(12px + env(safe-area-inset-bottom, 0px));
        }

        #comment-confirm-modal > div {
            max-width: none;
            border-radius: 26px !important;
        }
    }

    @media (max-width: 374px) {
        .mobile-route-story-map-canvas {
            height: 156px;
            min-height: 156px;
        }

        .comment-submit-btn {
            min-width: 104px;
        }

        .comment-filter-btn,
        .comment-suggestion,
        .comment-composer-extra button {
            font-size: 8px !important;
            letter-spacing: 0.03em !important;
        }
    }
