/* =========================================================
   МЕРАСОФТ — Новости и публикации
   /local/templates/mera_base/css/mera-editorial.css
   v13
   ========================================================= */

.mera-editorial-page {
    --editorial-green: #139b62;
    --editorial-green-dark: #087a4a;
    --editorial-green-soft: #eaf8f1;
    --editorial-green-light: #f6fcf9;
    --editorial-orange: #ff6f4f;
    --editorial-orange-dark: #f05f42;
    --editorial-text: #102033;
    --editorial-muted: #637083;
    --editorial-border: #dfeae5;

    width: 100%;
    overflow: hidden;
    color: var(--editorial-text);
    background: #ffffff;
    font-family: "Onest", Arial, sans-serif;
}

.mera-editorial-page *,
.mera-editorial-page *::before,
.mera-editorial-page *::after {
    box-sizing: border-box;
}

.mera-editorial-page a {
    text-decoration: none;
}

.mera-editorial-page img {
    display: block;
    max-width: 100%;
}

.mera-editorial-page h1,
.mera-editorial-page h2,
.mera-editorial-page h3,
.mera-editorial-page p,
.mera-editorial-page ul,
.mera-editorial-page ol,
.mera-editorial-page figure {
    margin-top: 0;
}

.mera-ui-chevron {
    display: block;
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* =========================================================
   LABEL — same scale as Client Stories
   ========================================================= */

.mera-editorial-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin: 0;
    padding: 8px 15px;
    border-radius: 999px;
    background: var(--editorial-green-soft);
    color: var(--editorial-green);
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.mera-editorial-label::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--editorial-orange);
    box-shadow: 0 0 0 4px rgba(255, 111, 79, 0.1);
}

/* =========================================================
   ARCHIVE HERO
   ========================================================= */

.mera-editorial-hero {
    padding: 30px 0 18px;
    background: #ffffff;
}

.mera-editorial-hero__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 0;
}

.mera-editorial-about-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: fit-content;
    min-height: 40px;
    border: 1px solid rgba(19, 155, 98, 0.12);
    border-radius: 999px;
    padding: 0 15px;
    background: #ffffff;
    color: var(--editorial-green-dark) !important;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 800;
    box-shadow: 0 6px 16px rgba(20, 58, 42, 0.04);
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.mera-editorial-about-link .mera-ui-chevron {
    width: 16px;
    height: 16px;
    transition: transform 0.18s ease;
}

.mera-editorial-about-link:hover,
.mera-editorial-about-link:focus-visible {
    border-color: rgba(19, 155, 98, 0.24);
    background: var(--editorial-green-light);
    box-shadow: 0 9px 20px rgba(20, 58, 42, 0.06);
    transform: translateY(-1px);
    outline: none;
}

.mera-editorial-about-link:hover .mera-ui-chevron,
.mera-editorial-about-link:focus-visible .mera-ui-chevron {
    transform: translateX(-2px);
}

.mera-editorial-hero h1 {
    max-width: 820px;
    margin: 14px 0 14px !important;
    color: var(--editorial-text);
    font-size: 42px;
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.055em;
}

.mera-editorial-hero h1 span {
    color: var(--editorial-green);
}

.mera-editorial-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--editorial-muted);
    font-size: 16px;
    line-height: 1.58;
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* =========================================================
   ARCHIVE / FILTERS
   ========================================================= */

.mera-editorial-archive {
    padding: 10px 0 72px;
    background: #ffffff;
}

.mera-editorial-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 28px;
}

.mera-editorial-filters a,
.mera-editorial-filters a:hover,
.mera-editorial-filters a:focus,
.mera-editorial-filters a:focus-visible,
.mera-editorial-filters a:active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid rgba(19, 155, 98, 0.2) !important;
    border-radius: 999px;
    background: #ffffff !important;
    color: #465467 !important;
    font: inherit;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 600;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.mera-editorial-filters a:hover,
.mera-editorial-filters a:focus-visible {
    border-color: rgba(19, 155, 98, 0.55) !important;
    background: #f8fcfa !important;
    color: var(--editorial-green-dark) !important;
}

.mera-editorial-filters a:focus-visible {
    box-shadow: 0 0 0 3px rgba(19, 155, 98, 0.15) !important;
}

.mera-editorial-filters a.is-active,
.mera-editorial-filters a.is-active:hover,
.mera-editorial-filters a.is-active:focus,
.mera-editorial-filters a.is-active:focus-visible,
.mera-editorial-filters a.is-active:active {
    border-color: var(--editorial-green) !important;
    background: var(--editorial-green) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 18px rgba(19, 155, 98, 0.16) !important;
}

/* =========================================================
   ARCHIVE CARDS — compact, aligned with About cards
   ========================================================= */

.mera-editorial-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.mera-editorial-card {
    display: flex;
    min-width: 0;
    min-height: 100%;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid rgba(220, 238, 230, 0.82);
    border-radius: 21px;
    background: #ffffff;
    color: inherit !important;
    box-shadow: 0 11px 28px rgba(20, 58, 42, 0.045);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.mera-editorial-card__image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(145deg, var(--editorial-green-soft), #ffffff);
    color: var(--editorial-green-dark);
    font-size: 18px;
    font-weight: 800;
}

.mera-editorial-card--news .mera-editorial-card__image {
    aspect-ratio: 16 / 6.9;
}

.mera-editorial-card--publication .mera-editorial-card__image {
    aspect-ratio: 16 / 6.4;
    background: #ffffff;
}

.mera-editorial-card__image img {
    width: 100%;
    height: 100%;
    transition: transform 0.25s ease;
}

.mera-editorial-card--news .mera-editorial-card__image img {
    object-fit: cover;
    object-position: center;
}

.mera-editorial-card--publication .mera-editorial-card__image img {
    object-fit: contain;
    object-position: center;
    padding: 14px 18px;
}

.mera-editorial-card__content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    padding: 18px 18px 19px;
}

.mera-editorial-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 18px;
    margin-bottom: 11px;
    color: var(--editorial-green-dark);
    font-size: 9.5px;
    line-height: 1.2;
    font-weight: 800;
    text-transform: uppercase;
}

.mera-editorial-card__meta time {
    flex: 0 0 auto;
    color: #87919c;
    font-weight: 700;
}

.mera-editorial-card h2 {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 10px !important;
    color: var(--editorial-text);
    font-size: 18px;
    line-height: 1.28;
    font-weight: 800;
    letter-spacing: -0.025em;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.mera-editorial-card--news h2 {
    min-height: 69px;
}

.mera-editorial-card--publication h2 {
    min-height: 46px;
    -webkit-line-clamp: 2;
}

.mera-editorial-card p {
    display: -webkit-box;
    overflow: hidden;
    min-height: 57px;
    margin: 0 0 16px;
    color: var(--editorial-muted);
    font-size: 12.5px;
    line-height: 1.5;
    font-weight: 500;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.mera-editorial-card__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    min-height: 28px;
    margin-top: auto;
    color: var(--editorial-green-dark);
    font-size: 13px;
    line-height: 1.2;
    font-weight: 800;
}

.mera-editorial-card__link .mera-ui-chevron {
    width: 16px;
    height: 16px;
    transition: transform 0.18s ease;
}

@media (hover: hover) and (pointer: fine) {
    .mera-editorial-card:hover {
        transform: translateY(-3px);
        border-color: rgba(19, 155, 98, 0.16);
        box-shadow: 0 18px 38px rgba(20, 58, 42, 0.07);
    }

    .mera-editorial-card--news:hover .mera-editorial-card__image img {
        transform: scale(1.025);
    }

    .mera-editorial-card--publication:hover .mera-editorial-card__image img {
        transform: scale(1.015);
    }

    .mera-editorial-card:hover .mera-editorial-card__link .mera-ui-chevron {
        transform: translateX(3px);
    }
}

/* =========================================================
   PAGINATION
   ========================================================= */

.mera-editorial-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 34px;
}

.mera-editorial-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--editorial-border);
    border-radius: 12px;
    background: #ffffff;
    color: var(--editorial-text) !important;
    font-size: 13px;
    font-weight: 800;
}

.mera-editorial-pagination a:hover,
.mera-editorial-pagination a.is-active {
    border-color: var(--editorial-green);
    background: var(--editorial-green);
    color: #ffffff !important;
}

/* =========================================================
   DETAIL — editorial article layout
   ========================================================= */

.mera-editorial-detail {
    padding: 24px 0 66px;
    background: #ffffff;
}

.mera-editorial-detail__inner {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
}

.mera-editorial-detail__nav,
.mera-editorial-detail__head,
.mera-editorial-detail__cover,
.mera-editorial-toc,
.mera-editorial-detail__body {
    margin-right: auto;
    margin-left: auto;
}

.mera-editorial-detail__nav {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    max-width: 860px;
    margin-bottom: 22px;
}

.mera-editorial-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: fit-content;
    min-height: 40px;
    border: 1px solid rgba(19, 155, 98, 0.12);
    border-radius: 999px;
    padding: 0 15px;
    background: #ffffff;
    color: var(--editorial-green-dark) !important;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 800;
    box-shadow: 0 6px 16px rgba(20, 58, 42, 0.04);
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.mera-editorial-back .mera-ui-chevron {
    width: 16px;
    height: 16px;
    transition: transform 0.18s ease;
}

.mera-editorial-back:hover,
.mera-editorial-back:focus-visible {
    border-color: rgba(19, 155, 98, 0.24);
    background: var(--editorial-green-light);
    box-shadow: 0 9px 20px rgba(20, 58, 42, 0.06);
    transform: translateY(-1px);
    outline: none;
}

.mera-editorial-back:hover .mera-ui-chevron,
.mera-editorial-back:focus-visible .mera-ui-chevron {
    transform: translateX(-2px);
}

.mera-editorial-detail__head {
    width: 100%;
    max-width: 860px;
    margin-bottom: 26px;
}

.mera-editorial-detail__meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.mera-editorial-detail__meta time {
    color: #7d8792;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
}

.mera-editorial-detail h1 {
    max-width: 860px;
    margin: 0 !important;
    color: var(--editorial-text);
    font-size: 42px;
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.052em;
}

.mera-editorial-source-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    min-height: 38px;
    margin-top: 18px;
    border-radius: 999px;
    padding: 0 14px;
    background: var(--editorial-green-soft);
    color: var(--editorial-green-dark) !important;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 800;
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.mera-editorial-source-link .mera-ui-chevron {
    transition: transform 0.18s ease;
}

.mera-editorial-source-link:hover,
.mera-editorial-source-link:focus-visible {
    background: #e3f6ed;
    transform: translateY(-1px);
    outline: none;
}

.mera-editorial-source-link:hover .mera-ui-chevron,
.mera-editorial-source-link:focus-visible .mera-ui-chevron {
    transform: translateX(2px);
}

.mera-editorial-detail__cover {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 860px;
    margin-bottom: 30px;
    overflow: hidden;
    background: transparent;
}

.mera-editorial-detail__cover img {
    display: block;
    height: auto;
    max-width: 100%;
    border-radius: 20px;
}

.mera-editorial-detail__cover--news {
    aspect-ratio: 16 / 9;
}

.mera-editorial-detail__cover--news img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 14px 34px rgba(20, 58, 42, 0.055);
}

.mera-editorial-detail__cover--publication {
    min-height: 0;
}

.mera-editorial-detail__cover--publication img {
    width: auto;
    max-width: 100%;
    max-height: 420px;
    object-fit: contain;
    object-position: center;
    box-shadow: 0 12px 28px rgba(20, 58, 42, 0.045);
}

.mera-editorial-toc {
    width: 100%;
    max-width: 790px;
    margin-bottom: 30px;
    border-top: 1px solid rgba(19, 155, 98, 0.15);
    border-bottom: 1px solid rgba(19, 155, 98, 0.12);
    padding: 20px 0 19px;
    background: transparent;
}

.mera-editorial-toc[hidden] {
    display: none !important;
}

.mera-editorial-toc__title {
    margin-bottom: 13px;
    color: var(--editorial-green-dark);
    font-size: 11px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0.065em;
    text-transform: uppercase;
}

.mera-editorial-toc ol {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mera-editorial-toc.is-multicolumn ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 30px;
}

.mera-editorial-toc li {
    min-width: 0;
    border-top: 1px solid rgba(220, 234, 227, 0.56);
}

.mera-editorial-toc li:first-child,
.mera-editorial-toc.is-multicolumn li:nth-child(2) {
    border-top-color: transparent;
}

.mera-editorial-toc a {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px;
    align-items: baseline;
    min-height: 39px;
    padding: 9px 0 8px;
    color: var(--editorial-text) !important;
    transition: color 0.18s ease, transform 0.18s ease;
}

.mera-editorial-toc a:hover,
.mera-editorial-toc a:focus-visible {
    color: var(--editorial-green-dark) !important;
    transform: translateX(2px);
    outline: none;
}

.mera-editorial-toc__number {
    color: var(--editorial-green);
    font-size: 11px;
    line-height: 1.35;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.mera-editorial-toc__label {
    min-width: 0;
    color: inherit;
    font-size: 13px;
    line-height: 1.38;
    font-weight: 700;
}

.mera-editorial-detail__body {
    width: 100%;
    max-width: 790px;
    color: #303b46;
    font-size: 16px;
    line-height: 1.74;
    font-weight: 500;
}

.mera-editorial-detail__body > :first-child {
    margin-top: 0 !important;
}

.mera-editorial-detail__end {
    width: 100%;
    max-width: 790px;
    height: 1px;
    margin: 0 auto;
    scroll-margin-top: 104px;
}

.mera-editorial-detail__body h2,
.mera-editorial-detail__body h3,
.mera-editorial-detail__body h4,
.mera-editorial-generated-heading {
    color: var(--editorial-text);
    line-height: 1.2;
    font-weight: 800;
    text-align: left !important;
    scroll-margin-top: 106px;
}

.mera-editorial-detail__body h2 {
    margin: 42px 0 14px !important;
    font-size: 29px;
    letter-spacing: -0.032em;
}

.mera-editorial-detail__body h3,
.mera-editorial-generated-heading {
    margin: 32px 0 12px !important;
    font-size: 22px;
    letter-spacing: -0.022em;
}

.mera-editorial-detail__body h4 {
    margin: 28px 0 10px !important;
    font-size: 18px;
}

.mera-editorial-detail__body p {
    margin: 0 0 18px;
    text-align: left !important;
}

.mera-editorial-detail__body ul,
.mera-editorial-detail__body ol {
    margin: 0 0 22px;
    padding-left: 24px;
    text-align: left !important;
}

.mera-editorial-detail__body li {
    margin-bottom: 8px;
}

.mera-editorial-detail__body strong,
.mera-editorial-detail__body b {
    color: var(--editorial-text);
    font-weight: 800;
}

.mera-editorial-detail__body a {
    color: var(--editorial-green-dark) !important;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.mera-editorial-detail__body img,
.mera-editorial-detail__body figure,
.mera-editorial-detail__body table {
    max-width: 100%;
}

.mera-editorial-detail__body figure {
    margin: 28px 0;
    text-align: center;
}

.mera-editorial-detail__body figure img,
.mera-editorial-detail__body > img {
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 16px;
}

.mera-editorial-detail__body table {
    display: block;
    width: 100%;
    overflow-x: auto;
    margin: 28px 0;
    border: 1px solid rgba(220, 238, 230, 0.95);
    border-radius: 14px;
    border-collapse: collapse;
    background: #ffffff;
}

.mera-editorial-detail__body th,
.mera-editorial-detail__body td {
    border: 1px solid var(--editorial-border);
    padding: 11px 13px;
    vertical-align: top;
    text-align: left !important;
}

.mera-editorial-detail__body th {
    background: var(--editorial-green-light);
    color: var(--editorial-text);
    font-weight: 700;
}

.mera-editorial-scroll-controls {
    position: fixed;
    z-index: 90;
    right: max(22px, calc((100vw - 1420px) / 2));
    bottom: 28px;
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 8px;
}

.mera-editorial-scroll-controls[hidden] {
    display: none !important;
}

.mera-editorial-scroll-button {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 104px;
    height: 40px;
    border: 1px solid rgba(19, 155, 98, 0.13);
    border-radius: 999px;
    padding: 0 13px;
    background: rgba(255, 255, 255, 0.97);
    color: var(--editorial-green-dark);
    font-family: inherit;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(20, 58, 42, 0.065);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.mera-editorial-scroll-button[hidden] {
    display: none !important;
}

.mera-editorial-scroll-button .mera-ui-chevron {
    width: 17px;
    height: 17px;
}

.mera-editorial-scroll-button:hover,
.mera-editorial-scroll-button:focus-visible {
    border-color: rgba(19, 155, 98, 0.24);
    background: var(--editorial-green-soft);
    color: var(--editorial-green-dark);
    box-shadow: 0 10px 24px rgba(20, 58, 42, 0.08);
    transform: translateY(-1px);
    outline: none;
}

/* =========================================================
   EMPTY / 404
   ========================================================= */

.mera-editorial-state-section {
    padding: 54px 0 72px;
}

.mera-editorial-state {
    max-width: 720px;
    border: 1px solid var(--editorial-border);
    border-radius: 26px;
    padding: 36px;
    background: linear-gradient(145deg, #ffffff, var(--editorial-green-light));
}

.mera-editorial-state h1 {
    margin: 16px 0 12px !important;
    color: var(--editorial-text);
    font-size: 38px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.mera-editorial-state p {
    margin: 0 0 24px;
    color: var(--editorial-muted);
    font-size: 15px;
    line-height: 1.55;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991px) {
    .mera-editorial-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mera-editorial-hero h1,
    .mera-editorial-detail h1 {
        font-size: 38px;
    }

    .mera-editorial-card--news h2,
    .mera-editorial-card--news p {
        min-height: 0;
    }

    .mera-editorial-detail__inner {
        max-width: 900px;
    }

    .mera-editorial-detail__nav,
    .mera-editorial-detail__head,
    .mera-editorial-detail__cover {
        max-width: 820px;
    }
}

@media (max-width: 767px) {
    .mera-editorial-hero {
        padding: 24px 0 16px;
    }

    .mera-editorial-archive,
    .mera-editorial-detail {
        padding-bottom: 52px;
    }

    .mera-editorial-grid {
        grid-template-columns: 1fr;
    }

    .mera-editorial-hero h1,
    .mera-editorial-detail h1 {
        font-size: 32px;
    }

    .mera-editorial-hero p,
    .mera-editorial-detail__body {
        font-size: 15px;
    }

    .mera-editorial-detail__head {
        margin-bottom: 22px;
    }

    .mera-editorial-detail__cover {
        margin-bottom: 25px;
    }

    .mera-editorial-detail__cover img {
        border-radius: 18px;
    }

    .mera-editorial-toc {
        margin-bottom: 25px;
        padding: 18px 0 17px;
    }

    .mera-editorial-toc.is-multicolumn ol {
        grid-template-columns: 1fr;
    }

    .mera-editorial-toc.is-multicolumn li:nth-child(2) {
        border-top-color: rgba(220, 234, 227, 0.56);
    }

    .mera-editorial-scroll-controls {
        right: 6px;
        bottom: max(10px, env(safe-area-inset-bottom));
        gap: 4px;
    }

    .mera-editorial-scroll-button {
        min-width: 74px;
        height: 34px;
        gap: 5px;
        padding: 0 8px;
        background: rgba(255, 255, 255, 0.94);
        font-size: 10.5px;
        box-shadow: 0 5px 14px rgba(20, 58, 42, 0.05);
    }
}

@media (max-width: 575px) {
    .mera-editorial-label {
        padding: 7px 12px;
        font-size: 11px;
    }

    .mera-editorial-hero {
        padding-top: 20px;
    }

    .mera-editorial-hero__top {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .mera-editorial-about-link {
        order: -1;
        min-height: 36px;
        padding: 0 12px;
        font-size: 12.5px;
    }

    /* Mobile return navigation: same left alignment and rhythm on archives and detail pages. */
    .mera-editorial-detail__nav {
        justify-content: flex-start;
        margin-bottom: 12px;
    }

    .mera-editorial-detail__meta {
        margin-bottom: 14px;
    }

    .mera-editorial-hero h1,
    .mera-editorial-detail h1 {
        font-size: 29px;
        line-height: 1.09;
        letter-spacing: -0.045em;
    }

    .mera-editorial-hero p {
        font-size: 14px;
        line-height: 1.55;
    }

    .mera-editorial-filters {
        gap: 7px;
        margin-bottom: 22px;
    }

    .mera-editorial-filters a,
    .mera-editorial-filters a:hover,
    .mera-editorial-filters a:focus,
    .mera-editorial-filters a:focus-visible,
    .mera-editorial-filters a:active {
        min-height: 40px;
        padding: 9px 14px;
        font-size: 13px;
    }

    .mera-editorial-card {
        border-radius: 18px;
    }

    .mera-editorial-card--news .mera-editorial-card__image {
        aspect-ratio: 16 / 6.8;
    }

    .mera-editorial-card--publication .mera-editorial-card__image {
        aspect-ratio: 16 / 5.2;
    }

    .mera-editorial-card--publication .mera-editorial-card__image img {
        padding: 9px 12px;
    }

    .mera-editorial-scroll-controls {
        right: 5px;
        bottom: max(8px, env(safe-area-inset-bottom));
        gap: 4px;
    }

    .mera-editorial-scroll-button {
        min-width: 68px;
        height: 32px;
        gap: 4px;
        padding: 0 7px;
        background: rgba(255, 255, 255, 0.94);
        font-size: 10px;
    }

    .mera-editorial-scroll-button .mera-ui-chevron {
        width: 14px;
        height: 14px;
    }

    .mera-editorial-card__content {
        padding: 15px 16px 16px;
    }

    .mera-editorial-card__meta {
        margin-bottom: 9px;
    }

    .mera-editorial-card h2 {
        min-height: 0;
        margin-bottom: 8px !important;
        font-size: 17.5px;
        line-height: 1.25;
        -webkit-line-clamp: 2;
    }

    .mera-editorial-card p {
        min-height: 0;
        margin-bottom: 13px;
        font-size: 12.5px;
        line-height: 1.45;
        -webkit-line-clamp: 2;
    }

    .mera-editorial-card__link {
        min-height: 24px;
        font-size: 12.5px;
    }

    .mera-editorial-detail {
        padding-top: 18px;
    }

    .mera-editorial-detail__nav {
        margin-bottom: 17px;
    }

    .mera-editorial-back {
        min-height: 36px;
        padding: 0 12px;
        font-size: 12.5px;
    }

    .mera-editorial-detail__meta {
        align-items: center;
        flex-wrap: wrap;
        gap: 9px 12px;
        margin-bottom: 12px;
    }

    .mera-editorial-source-link {
        min-height: 36px;
        margin-top: 15px;
        padding: 0 12px;
        font-size: 12.5px;
    }

    .mera-editorial-detail__cover--publication img {
        max-height: 320px;
    }

    .mera-editorial-toc__title {
        margin-bottom: 10px;
    }

    .mera-editorial-toc a {
        grid-template-columns: 30px minmax(0, 1fr);
        min-height: 37px;
        padding: 8px 0 7px;
    }

    .mera-editorial-toc__label {
        font-size: 12.5px;
    }

    .mera-editorial-detail__body {
        font-size: 14.5px;
        line-height: 1.68;
    }

    .mera-editorial-detail__body h2 {
        margin-top: 34px !important;
        font-size: 25px;
    }

    .mera-editorial-detail__body h3,
    .mera-editorial-generated-heading {
        margin-top: 27px !important;
        font-size: 20px;
    }

    .mera-editorial-detail__body table {
        font-size: 13px;
    }

    .mera-editorial-state {
        padding: 28px 22px;
    }
}
