/* [Elysium] News — public pages, home feed and notification prompt.
   Colours, spacing and radii come from Elysium Platform tokens with fallbacks for pages without them. */
:where(.en-page, .en-feed, .en-prompt, .en-dialog) {
    --en-text: var(--elysium-color-text, var(--text, #f4f6f4));
    --en-muted: var(--elysium-color-muted, var(--text-muted, #97a39c));
    --en-surface: var(--elysium-color-surface, var(--secondary, #131815));
    --en-raised: var(--elysium-color-surface-raised, #181e1b);
    --en-sunken: var(--elysium-color-surface-sunken, #0f1311);
    --en-border: color-mix(in srgb, var(--elysium-color-border, var(--transp-2, #2a312d)) 70%, transparent);
    --en-accent: var(--elysium-color-accent, var(--accent, #d5b66f));
    --en-on-accent: var(--elysium-color-on-accent, #1a1508);
    --en-danger: var(--elysium-color-error, #ff6673);
    --en-gap: var(--elysium-space-md, 12px);
    --en-pad: var(--elysium-space-lg, 16px);
    --en-radius: var(--elysium-radius-lg, 16px);
    --en-radius-sm: var(--elysium-radius-md, 12px);
    --en-ease: var(--elysium-motion-ease-out, cubic-bezier(.2, .8, .2, 1));
    color: var(--en-text);
}

.en-page *, .en-feed *, .en-prompt *, .en-dialog * { box-sizing: border-box; }
.en-page img, .en-feed img { max-width: 100%; }
.en-page a, .en-feed a { text-decoration: none; }
/* The theme gives links a fixed line height; inside the feed they follow their text block */
.en-page a:not(.en-button), .en-feed a:not(.en-button) { line-height: inherit; }

/* Shared pieces */
.en-panel {
    min-width: 0;
    padding: calc(var(--en-pad) + 4px);
    background: var(--en-surface);
    border: 1px solid var(--en-border);
    border-radius: var(--en-radius);
}
.en-panel__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 var(--en-gap);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
}
.en-meta { color: var(--en-muted); font-size: 12px; line-height: 1.4; }
.en-count, .en-tab__count {
    display: inline-flex;
    align-items: center;
    min-width: 22px;
    height: 20px;
    padding: 0 6px;
    justify-content: center;
    border-radius: 6px;
    background: color-mix(in srgb, var(--en-text) 8%, transparent);
    color: var(--en-muted);
    font-size: 11px;
    font-weight: 700;
}
.en-chip {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 4px 9px;
    border-radius: 7px;
    background: var(--en-chip, var(--en-accent));
    color: var(--en-chip-ink, #0b0f0d);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.en-dot {
    display: inline-block;
    flex: none;
    width: 7px;
    height: 7px;
    margin-inline-end: 6px;
    border-radius: 50%;
    background: var(--en-chip, var(--en-accent));
    vertical-align: middle;
}
.en-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: var(--en-radius-sm);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: background .2s var(--en-ease), border-color .2s var(--en-ease), transform .2s var(--en-ease);
}
.en-button svg { width: 16px; height: 16px; flex: none; }
.en-button--accent { background: var(--en-accent); color: var(--en-on-accent); }
.en-button--accent:hover { background: color-mix(in srgb, var(--en-accent) 88%, #fff); color: var(--en-on-accent); }
.en-button--ghost { background: transparent; border-color: color-mix(in srgb, var(--en-text) 16%, transparent); color: var(--en-text); }
.en-button--ghost:hover { border-color: color-mix(in srgb, var(--en-text) 32%, transparent); color: var(--en-text); }
.en-button:disabled, .en-button[aria-busy="true"] { opacity: .6; cursor: default; }
.en-icon-button {
    display: inline-grid;
    flex: none;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--en-border);
    border-radius: 10px;
    background: transparent;
    color: var(--en-muted);
    cursor: pointer;
}
.en-icon-button svg { width: 16px; height: 16px; }
.en-icon-button:hover { color: var(--en-text); }
.en-icon-button--danger { border-color: color-mix(in srgb, var(--en-danger) 30%, transparent); color: var(--en-danger); }
.en-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--en-accent);
    font-size: 13px;
    font-weight: 800;
}
.en-link svg { width: 14px; height: 14px; }
.en-link:hover { color: color-mix(in srgb, var(--en-accent) 80%, #fff); }
.en-avatar { display: block; flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: var(--en-raised); object-fit: cover; }
.en-avatar img { width: 100%; height: 100%; object-fit: cover; }
.en-error { color: var(--en-danger); font-size: 12px; }
.en-empty-line { margin: 0; padding: var(--en-pad); color: var(--en-muted); text-align: center; }
.en-page :focus-visible, .en-feed :focus-visible, .en-prompt :focus-visible, .en-dialog :focus-visible {
    outline: 2px solid var(--en-accent);
    outline-offset: 2px;
}

/* Section header. It is the theme's page header: with the capsule navbar the theme turns the surface into a
   drawer or a second tier of the bar (its rules win over these); with other navbars it stays this panel */
.en-page { display: flex; flex-direction: column; }
.en-header { padding: var(--en-pad) calc(var(--bs-gutter-x, 1.5rem) * .5) 0; }
.en-header__surface {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px var(--en-gap);
    max-width: var(--max-content-width, 1320px);
    margin: 0 auto;
    padding: 10px 10px 10px 20px;
    border: 1px solid var(--en-border);
    border-radius: var(--en-radius);
    background: var(--en-surface);
}
.en-header__brand { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; min-width: 0; }
.en-header__title { margin: 0; color: var(--en-text); font-size: 20px; font-weight: 800; line-height: 1.25; white-space: nowrap; }
a.en-header__title:hover { color: var(--en-accent); }
.en-header__crumbs { min-width: 0; }
.en-header__crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; color: var(--en-muted); font-size: 12px; list-style: none; }
.en-header__crumbs li { display: inline-flex; gap: 6px; min-width: 0; }
.en-header__crumbs li + li::before { content: "/"; opacity: .6; }
.en-header__crumbs a { color: var(--en-muted); }
.en-header__crumbs a:hover { color: var(--en-text); }
.en-header__crumbs [aria-current] { max-width: 34ch; overflow: hidden; color: var(--en-text); text-overflow: ellipsis; white-space: nowrap; }
.en-header__end { display: flex; flex: 1 1 auto; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; }
.en-header .en-header__tabs { flex-wrap: nowrap; min-width: 0; padding: 0; overflow-x: auto; border: 0; background: transparent; scrollbar-width: none; }
.en-header .en-header__tabs::-webkit-scrollbar { display: none; }
.en-header__tabs .en-tab { flex: none; }

/* Subscription toggle in the header */
.en-bell {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--en-border);
    border-radius: 999px;
    background: transparent;
    color: var(--en-muted);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: color .2s var(--en-ease), border-color .2s var(--en-ease), background-color .2s var(--en-ease);
}
.en-bell:hover { border-color: color-mix(in srgb, var(--en-accent) 45%, var(--en-border)); color: var(--en-text); }
.en-bell__icon { display: inline-flex; }
.en-bell svg { width: 17px; height: 17px; }
.en-bell[data-state="on"] { border-color: color-mix(in srgb, var(--en-accent) 40%, transparent); background: color-mix(in srgb, var(--en-accent) 12%, transparent); color: var(--en-text); }
.en-bell[data-state="on"] .en-bell__icon--on { color: var(--en-accent); }
.en-bell[data-state="on"] .en-bell__icon--off, .en-bell:not([data-state="on"]) .en-bell__icon--on { display: none; }
.en-bell[aria-busy="true"] { cursor: progress; opacity: .6; }

/* Page width: under the capsule navbar the body lines up with the bar, otherwise it takes the theme's
   content width. The body is a keep-container, so the theme's own container width does not override this */
.en-page .en-page__body { max-width: var(--max-content-width, 1320px); }
html[data-container-width="fullwidth"] .en-page .en-page__body { max-width: none; }
html[data-nav-style="capsule"] .en-page .en-page__body { max-width: calc(var(--nav-capsule-max-width, 1360px) + var(--bs-gutter-x, 1.5rem)); }

/* Archive */
.en-page__body { display: flex; flex-direction: column; gap: calc(var(--en-gap) + 6px); padding-block: var(--en-pad) 48px; }
.en-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--en-gap); }
.en-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--en-border);
    border-radius: var(--en-radius-sm);
    background: var(--en-surface);
}
.en-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 12px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--en-muted);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.en-tab:hover { color: var(--en-text); }
.en-tab.is-active { background: var(--en-accent); color: var(--en-on-accent); }
.en-tab.is-active .en-tab__count { background: rgba(0, 0, 0, .15); color: inherit; }
.en-search {
    display: flex;
    flex: 0 1 320px;
    align-items: center;
    gap: 8px;
    min-width: 220px;
    min-height: 46px;
    padding: 0 12px;
    border: 1px solid var(--en-border);
    border-radius: var(--en-radius-sm);
    background: var(--en-surface);
    color: var(--en-muted);
}
.en-search svg { width: 16px; height: 16px; flex: none; }
.en-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--en-text); font: inherit; font-size: 14px; }
.en-search:focus-within { border-color: var(--en-accent); }

.en-pinned {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--en-border);
    border-radius: calc(var(--en-radius) + 2px);
    background: var(--en-surface);
}
.en-pinned__media, .en-card__media, .en-feature__media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--en-raised);
}
.en-pinned__media img, .en-card__media img, .en-feature__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s var(--en-ease);
}
.en-pinned__media:hover img, .en-card:hover .en-card__media img, .en-feature__media:hover img { transform: scale(1.03); }
.en-pinned__media .en-chip, .en-card__media .en-chip, .en-feature__media .en-chip { position: absolute; top: 12px; left: 12px; max-width: calc(100% - 24px); }
.en-card__placeholder { display: grid; width: 100%; height: 100%; place-items: center; color: color-mix(in srgb, var(--en-muted) 60%, transparent); }
.en-card__placeholder svg { width: 40px; height: 40px; }
.en-pinned__body { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 28px; min-width: 0; }
.en-pinned__label { display: inline-flex; align-items: center; gap: 6px; }
.en-pinned__label svg { width: 14px; height: 14px; color: var(--en-accent); }
.en-pinned h2 { margin: 0; font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.en-pinned h2 a { color: var(--en-text); }
.en-pinned p { margin: 0; color: color-mix(in srgb, var(--en-text) 75%, var(--en-muted)); line-height: 1.6; }
.en-pinned .en-button { align-self: flex-start; }

.en-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: calc(var(--en-gap) + 2px); }
.en-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--en-border);
    border-radius: var(--en-radius);
    background: var(--en-surface);
    transition: border-color .2s var(--en-ease), transform .2s var(--en-ease);
}
.en-card:hover { border-color: color-mix(in srgb, var(--en-accent) 40%, var(--en-border)); }
.en-card__body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 14px 16px 16px; }
.en-card__title { margin: 0; font-size: 16px; font-weight: 800; line-height: 1.35; overflow-wrap: anywhere; }
.en-card__title a { color: var(--en-text); }
.en-card__title a:hover { color: var(--en-accent); }
.en-card__excerpt {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: color-mix(in srgb, var(--en-text) 70%, var(--en-muted));
    font-size: 13px;
    line-height: 1.55;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
.en-card__stats { display: flex; gap: 14px; margin-top: auto; padding-top: 4px; color: var(--en-muted); font-size: 12px; font-weight: 700; }
.en-card__stats > span { display: inline-flex; align-items: center; gap: 5px; }
.en-card__stats svg { width: 15px; height: 15px; }
.en-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 48px var(--en-pad); text-align: center; }
.en-empty svg { width: 40px; height: 40px; color: var(--en-muted); }
.en-empty p { margin: 0; color: var(--en-muted); }
.en-pagination { display: flex; justify-content: center; }
.en-page__push .en-push { max-width: 520px; }

/* Article */
.en-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid color-mix(in srgb, var(--en-accent) 35%, transparent);
    border-radius: var(--en-radius-sm);
    background: color-mix(in srgb, var(--en-accent) 10%, transparent);
    font-weight: 700;
}
.en-notice svg { width: 18px; height: 18px; color: var(--en-accent); }
.en-layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: calc(var(--en-gap) + 6px); }
.en-layout__main { display: flex; flex: 999 1 620px; flex-direction: column; gap: calc(var(--en-gap) + 6px); min-width: 0; }
.en-layout__side { display: flex; flex: 1 1 280px; flex-direction: column; gap: var(--en-gap); min-width: 0; }
.en-article { padding: 0; overflow: hidden; }
.en-article__cover { margin: 0; aspect-ratio: 16 / 9; background: var(--en-raised); }
.en-article__cover img { width: 100%; height: 100%; object-fit: cover; }
.en-article__inner { display: flex; flex-direction: column; gap: 18px; padding: clamp(20px, 3vw, 32px) clamp(18px, 3.4vw, 40px) clamp(22px, 3vw, 34px); }
.en-article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.en-article__meta a.en-meta:hover { color: var(--en-text); }
.en-article__title { margin: 0; font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.en-author { display: flex; align-items: center; gap: 10px; }
.en-author .en-avatar { width: 36px; height: 36px; }
.en-author > span { display: flex; flex-direction: column; line-height: 1.3; }
.en-author__name { color: var(--en-text); font-size: 14px; font-weight: 800; }
.en-article__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--en-gap);
    padding-top: 18px;
    border-top: 1px solid var(--en-border);
}
.en-article__share { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

.en-content {
    padding-top: 20px;
    border-top: 1px solid var(--en-border);
    color: color-mix(in srgb, var(--en-text) 88%, var(--en-muted));
    font-size: 16px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}
.en-content > * + * { margin-top: 1em; }
.en-content > :first-child { margin-top: 0; }
.en-content h1, .en-content h2, .en-content h3, .en-content h4 { margin-top: 1.4em; color: var(--en-text); font-weight: 800; line-height: 1.3; }
.en-content h1 { font-size: 26px; }
.en-content h2 { font-size: 22px; }
.en-content h3 { font-size: 18px; }
.en-content p { margin-bottom: 0; }
.en-content a { color: var(--en-accent); text-decoration: underline; text-underline-offset: 3px; }
.en-content ul, .en-content ol { padding-inline-start: 22px; }
.en-content li + li { margin-top: .35em; }
.en-content img { display: block; height: auto; margin-inline: auto; border-radius: var(--en-radius-sm); }
.en-content blockquote {
    margin-inline: 0;
    padding: 14px 18px;
    border-inline-start: 3px solid var(--en-accent);
    border-radius: 0 var(--en-radius-sm) var(--en-radius-sm) 0;
    background: var(--en-raised);
    color: color-mix(in srgb, var(--en-text) 80%, var(--en-muted));
}
.en-content code { padding: 1px 6px; border-radius: 5px; background: var(--en-raised); font-size: .9em; }
.en-content pre { padding: 14px; overflow-x: auto; border-radius: var(--en-radius-sm); background: var(--en-sunken); }
.en-content pre code { padding: 0; background: none; }
.en-content mark { padding: 0 3px; border-radius: 3px; background: color-mix(in srgb, var(--en-accent) 30%, transparent); color: var(--en-text); }
.en-content hr { border: 0; border-top: 1px solid var(--en-border); }
.en-content table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 14px; }
.en-content th, .en-content td { padding: 8px 12px; border: 1px solid var(--en-border); text-align: start; }
.en-content th { background: var(--en-raised); color: var(--en-text); }
.en-content .news-embed { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--en-radius-sm); background: var(--en-sunken); }
.en-content .news-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.en-content .news-align-center { text-align: center; }
.en-content .news-align-right { text-align: end; }
.en-content .news-align-justify { text-align: justify; }

/* Likes */
.en-likes { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; min-width: 0; }
.en-like {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid color-mix(in srgb, var(--en-text) 16%, transparent);
    border-radius: 999px;
    background: transparent;
    color: var(--en-text);
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: background .2s var(--en-ease), border-color .2s var(--en-ease), color .2s var(--en-ease);
}
.en-like svg { width: 18px; height: 18px; }
.en-like:hover { border-color: color-mix(in srgb, var(--en-danger) 50%, transparent); color: var(--en-text); }
.en-like.is-active { border-color: color-mix(in srgb, var(--en-danger) 45%, transparent); background: color-mix(in srgb, var(--en-danger) 14%, transparent); }
.en-like.is-active svg { color: var(--en-danger); }
.en-like.is-pulsing svg { animation: en-like-pop .35s var(--en-ease); }
.en-likers {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 44px;
    padding: 0 6px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--en-muted);
    font: inherit;
    font-size: 13px;
    text-align: start;
    cursor: pointer;
}
.en-likers:hover { color: var(--en-text); }
.en-likers__text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.en-avatars { display: inline-flex; flex: none; }
.en-avatars img { width: 28px; height: 28px; border: 2px solid var(--en-surface); border-radius: 50%; object-fit: cover; background: var(--en-raised); }
.en-avatars img + img { margin-inline-start: -9px; }

/* Comments */
.en-comments { display: flex; flex-direction: column; gap: 14px; }
.en-comments .en-panel__title { margin: 0; }
.en-comment-form { display: flex; gap: 12px; align-items: flex-start; }
.en-comment-form__main { display: flex; flex: 1; flex-direction: column; gap: 8px; min-width: 0; }
.en-comment-form label { color: var(--en-muted); font-size: 12px; }
.en-comment-form textarea {
    width: 100%;
    min-height: 92px;
    padding: 12px 14px;
    resize: vertical;
    border: 1px solid var(--en-border);
    border-radius: var(--en-radius-sm);
    outline: 0;
    background: var(--en-raised);
    color: var(--en-text);
    font: inherit;
    font-size: 14px;
    line-height: 1.5;
}
.en-comment-form textarea:focus { border-color: var(--en-accent); }
.en-comment-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.en-comment-form__foot .en-error { flex: 1; min-width: 0; }
.en-comment-form__foot .en-button { margin-inline-start: auto; }
.en-login {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border: 1px dashed color-mix(in srgb, var(--en-text) 18%, transparent);
    border-radius: var(--en-radius-sm);
    background: var(--en-raised);
}
.en-login > span { display: inline-flex; align-items: center; gap: 10px; color: color-mix(in srgb, var(--en-text) 80%, var(--en-muted)); }
.en-login svg { width: 18px; height: 18px; color: var(--en-accent); }
.en-comments__older { align-self: center; }
.en-comment-list { display: flex; flex-direction: column; }
.en-comment { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--en-border); }
.en-comment.is-new { animation: en-rise .42s var(--en-ease) both; }
.en-comment__main { display: flex; flex: 1; flex-direction: column; gap: 6px; min-width: 0; }
.en-comment__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.en-comment__name { color: var(--en-text); font-size: 14px; font-weight: 800; }
.en-role {
    padding: 2px 7px;
    border-radius: 6px;
    background: color-mix(in srgb, var(--en-role, var(--en-accent)) 14%, transparent);
    color: var(--en-role, var(--en-accent));
    font-size: 11px;
    font-weight: 700;
}
.en-comment__body { margin: 0; color: color-mix(in srgb, var(--en-text) 88%, var(--en-muted)); line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }

/* Rows (widget, sidebar) */
.en-rows { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.en-row {
    display: flex;
    gap: 12px;
    padding: 10px;
    border: 1px solid var(--en-border);
    border-radius: var(--en-radius-sm);
    background: var(--en-raised);
    color: var(--en-text);
    transition: border-color .2s var(--en-ease);
}
.en-row:hover { border-color: color-mix(in srgb, var(--en-accent) 40%, var(--en-border)); color: var(--en-text); }
.en-row__thumb { display: grid; flex: none; place-items: center; width: 76px; height: 58px; overflow: hidden; border-radius: 9px; background: color-mix(in srgb, var(--en-text) 6%, transparent); color: var(--en-muted); }
.en-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.en-row__thumb svg { width: 22px; height: 22px; }
.en-row__copy { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.en-row__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; }
.en-row__title {
    display: -webkit-box;
    overflow: hidden;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.en-layout__side .en-panel, .en-side-list { display: flex; flex-direction: column; gap: 10px; }
.en-layout__side .en-panel__title, .en-side-list .en-panel__title { margin: 0; }
/* A side column whose cards are all hidden (subscription on, nothing else to list) gives its room back */
.en-layout__side:not(:has(> :not([hidden]))), .en-rail-layout__side:not(:has(> :not([hidden]))) { display: none; }

/* Article layouts, picked in the news settings: reading column, full-width cover, action rail */
.en-button--icon { width: 44px; padding: 0; }
.en-views { display: inline-flex; align-items: center; gap: 5px; }
.en-views svg { width: 15px; height: 15px; }
.en-lead { margin: 0; color: color-mix(in srgb, var(--en-text) 80%, var(--en-muted)); font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; }

/* 1. Reading column */
.en-read { display: flex; flex-direction: column; gap: 20px; width: 100%; max-width: 780px; margin-inline: auto; }
.en-read__title { font-size: clamp(28px, 3.6vw, 42px); }
.en-read__byline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 14px; border-block: 1px solid var(--en-border); }
.en-read__cover { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--en-radius); background: var(--en-raised); }
.en-read__cover img { width: 100%; height: 100%; object-fit: cover; }
.en-read .en-content { padding-top: 0; border-top: 0; font-size: 17px; }
.en-read__reactions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--en-gap); padding: 12px 18px; }
.en-read__more { display: flex; flex-direction: column; gap: var(--en-gap); margin-top: 18px; }
.en-read__more .en-panel__title { margin: 0; }
.en-read__more .en-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }

/* 2. Full-width cover; the title card overlaps its lower edge */
.en-hero { display: flex; flex-direction: column; }
.en-hero__cover { margin: 0; aspect-ratio: 16 / 6; overflow: hidden; border-radius: calc(var(--en-radius) + 4px); background: var(--en-raised); }
.en-hero__cover img { width: 100%; height: 100%; object-fit: cover; }
.en-hero__card { position: relative; display: flex; flex-direction: column; gap: 14px; max-width: 900px; margin: clamp(-110px, -8vw, -36px) clamp(12px, 4vw, 48px) 0; }
.en-hero--plain .en-hero__card { max-width: none; margin: 0; }
.en-hero__card .en-article__title { font-size: clamp(26px, 3.4vw, 40px); }
.en-hero + .en-layout { margin-top: calc(var(--en-gap) + 14px); }
.en-hero__text.en-content { max-width: 780px; padding: 0 clamp(0px, 2vw, 24px); border-top: 0; font-size: 17px; }
.en-about__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; margin: 0; }
.en-about__stats > div { display: flex; flex-direction: column-reverse; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--en-sunken); }
.en-about__stats dt { color: var(--en-muted); font-size: 11px; font-weight: 600; }
.en-about__stats dd { margin: 0; font-size: 18px; font-weight: 800; }
.en-about__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.en-about__actions .en-button { flex: 1 1 auto; }

/* 3. Action rail beside the article; it follows the reader below the page header */
.en-rail-layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: calc(var(--en-gap) + 6px); }
.en-rail-layout__main { display: flex; flex: 999 1 560px; flex-direction: column; gap: calc(var(--en-gap) + 6px); min-width: 0; }
.en-rail-layout__side { display: flex; flex: 1 1 280px; flex-direction: column; gap: var(--en-gap); min-width: 0; }
.en-rail { position: sticky; top: calc(var(--site-header-bottom, 72px) + 84px); z-index: 1; display: flex; flex: none; flex-direction: column; align-items: center; gap: 6px; padding: 8px; }
.en-rail .en-likes { flex-direction: column; gap: 0; }
.en-rail .en-like, .en-rail__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 52px;
    min-height: 56px;
    padding: 6px 0;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: color-mix(in srgb, var(--en-text) 80%, var(--en-muted));
    font-size: 11px;
    font-weight: 800;
}
.en-rail .en-like:hover, a.en-rail__item:hover { background: color-mix(in srgb, var(--en-text) 7%, transparent); color: var(--en-text); }
.en-rail .en-like.is-active { background: color-mix(in srgb, var(--en-danger) 14%, transparent); }
.en-rail .en-like svg, .en-rail__item svg { width: 20px; height: 20px; }
.en-rail__item--static { color: var(--en-muted); }
.en-rail .en-button { width: 52px; min-height: 52px; border-color: transparent; border-radius: 14px; }
.en-rail .en-button:hover { border-color: transparent; background: color-mix(in srgb, var(--en-text) 7%, transparent); }
.en-rail .en-button svg { width: 20px; height: 20px; }
.en-article__cover--wide { aspect-ratio: 21 / 9; }
.en-rail-layout .en-article__footer { justify-content: flex-start; }
.en-feed__all { min-height: 40px; }

/* Push card and prompt */
.en-push { display: flex; flex-direction: column; gap: 10px; }
.en-push[hidden] { display: none; }
.en-push .en-panel__title { margin: 0; font-size: 15px; }
.en-push__icon { display: grid; flex: none; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: color-mix(in srgb, var(--en-accent) 13%, transparent); color: var(--en-accent); }
.en-push__icon svg { width: 20px; height: 20px; }
.en-push__text { margin: 0; color: color-mix(in srgb, var(--en-text) 72%, var(--en-muted)); font-size: 13px; line-height: 1.5; }
.en-push__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.en-push[data-state="blocked"] .en-push__icon { background: color-mix(in srgb, #f5c46a 15%, transparent); color: #f5c46a; }
.en-push[data-state="enabled"] .en-push__icon { background: color-mix(in srgb, #49e57b 14%, transparent); color: #49e57b; }

.en-prompt {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 1000;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px 14px;
    width: min(400px, calc(100vw - 32px));
    padding: 18px;
    border: 1px solid color-mix(in srgb, var(--en-text) 12%, transparent);
    border-radius: 18px;
    background: var(--en-raised);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
    animation: en-rise .42s var(--en-ease) both;
}
.en-prompt[hidden] { display: none; }
.en-prompt h2 { margin: 0 0 6px; font-size: 15px; font-weight: 800; }
.en-prompt p { margin: 0; color: color-mix(in srgb, var(--en-text) 72%, var(--en-muted)); font-size: 13px; line-height: 1.5; }
.en-prompt__close { border: 0; width: 32px; height: 32px; }
.en-prompt__actions { display: flex; grid-column: 1 / -1; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

/* Likers dialog */
.en-dialog {
    width: min(420px, calc(100vw - 32px));
    max-height: min(560px, calc(100vh - 48px));
    padding: 18px;
    border: 1px solid color-mix(in srgb, var(--en-text) 12%, transparent);
    border-radius: 18px;
    background: var(--en-raised);
    color: var(--en-text);
}
.en-dialog[open] { position: fixed; inset: 0; display: flex; flex-direction: column; gap: 10px; margin: auto; height: fit-content; }
.en-dialog::backdrop { background: rgba(5, 8, 6, .72); }
.en-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.en-dialog__head h2 { margin: 0; font-size: 17px; font-weight: 800; }
.en-people { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.en-people a, .en-people span.en-person { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 8px; border-radius: 10px; color: var(--en-text); font-weight: 700; }
.en-people a:hover { background: color-mix(in srgb, var(--en-text) 6%, transparent); }
.en-people img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.en-dialog .en-button { align-self: center; }

/* Home feed widget */
.en-feed { display: flex; flex-direction: column; gap: 16px; }
.en-feed__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.en-feed__titles { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; min-width: 0; }
.en-feed__titles .en-panel__title { margin: 0; }
.en-tabs--compact .en-tab { min-height: 34px; font-size: 12px; }
.en-feed__panel[hidden] { display: none; }
.en-feed__body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
/* A fixed height from the widget settings: the main article's cover gives and takes the room and the list
   scrolls. Phones stack the feed, so there it keeps the height of its content */
@media (min-width: 761px) {
    .en-feed--fixed { box-sizing: border-box; height: var(--en-feed-height); }
    .en-feed--fixed .en-feed__panel { flex: 1 1 auto; min-height: 0; }
    .en-feed--fixed .en-feed__body { height: 100%; }
    .en-feed--fixed .en-feature { min-height: 0; }
    .en-feed--fixed .en-feature__media { flex: 1 1 0; min-height: 72px; aspect-ratio: auto; }
    .en-feed--fixed .en-feature__body { flex: none; }
    .en-feed--fixed .en-feed__body > .en-rows { min-height: 0; overflow-y: auto; scrollbar-width: thin; }
}
.en-feature { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--en-border); border-radius: var(--en-radius-sm); background: var(--en-raised); }
.en-feature__body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 14px 16px 16px; }
.en-feature h3 { margin: 0; font-size: 17px; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
.en-feature h3 a { color: var(--en-text); }
.en-feature h3 a:hover { color: var(--en-accent); }
.en-feature p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: color-mix(in srgb, var(--en-text) 72%, var(--en-muted));
    font-size: 13px;
    line-height: 1.55;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
.en-feature .en-link { margin-top: auto; padding-top: 4px; }

@media (max-width: 760px) {
    .en-pinned { grid-template-columns: minmax(0, 1fr); }
    .en-pinned__body { padding: 20px; }
    .en-feed__body { grid-template-columns: minmax(0, 1fr); }
    .en-search { flex: 1 1 100%; }
    /* A short drawer on phones: crumbs without the current page (it is the heading right below or, on the
       archive, the drawer's own title), the toggle next to the title, tabs on their own row */
    .en-header__brand { flex: 1 1 0; }
    .en-header__crumbs li:has([aria-current]), .en-header--archive .en-header__crumbs { display: none; }
    .en-header__end { flex: none; }
    .en-header__end:has(.en-header__tabs) { flex: 1 1 100%; }
    .en-header .en-header__tabs { flex: 1 1 auto; }
    .en-bell { justify-content: center; width: 38px; padding: 0; }
    .en-bell__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .en-comment-form > .en-avatar { display: none; }
    .en-rail { position: static; flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; justify-content: space-around; }
    .en-rail .en-likes { flex-direction: row; }
    .en-hero__card { margin-inline: 8px; }
    .en-article__footer { flex-direction: column; align-items: stretch; }
}

/* Last, so `hidden` wins over the display of any component above */
.en-page [hidden], .en-feed [hidden], .en-prompt [hidden], .en-dialog [hidden], .en-prompt[hidden], .en-push[hidden] { display: none; }

@keyframes en-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes en-like-pop { 50% { transform: scale(1.3); } }

@media (prefers-reduced-motion: reduce) {
    .en-page *, .en-feed *, .en-prompt, .en-prompt *, .en-dialog * { animation: none !important; transition: none !important; }
}
