:root {
    --bg: #f4efe7;
    --bg-soft: #fcfaf6;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-strong: #ffffff;
    --surface-muted: rgba(255, 255, 255, 0.66);
    --text: #1f2a30;
    --text-soft: #5c6a70;
    --line: rgba(31, 42, 48, 0.12);
    --line-strong: rgba(31, 42, 48, 0.2);
    --accent: #0f766e;
    --accent-dark: #0a5450;
    --shadow-lg: 0 28px 72px rgba(15, 23, 42, 0.13);
    --shadow-md: 0 18px 44px rgba(15, 23, 42, 0.08);
    --shadow-sm: 0 10px 24px rgba(15, 23, 42, 0.06);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --container: min(1200px, calc(100vw - 32px));
    --font-ui: "Manrope", "Segoe UI", sans-serif;
    --font-display: "Newsreader", Georgia, serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    font-family: var(--font-ui);
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(243, 182, 88, 0.18), transparent 32%),
        linear-gradient(180deg, #f7f2ea 0%, #efe7db 48%, #f7f3ed 100%);
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: var(--container);
    margin: 0 auto;
}

.page-orb {
    position: fixed;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    filter: blur(84px);
    pointer-events: none;
    opacity: 0.45;
    z-index: -1;
}

.page-orb-left {
    top: -110px;
    left: -120px;
    background: rgba(15, 118, 110, 0.16);
}

.page-orb-right {
    top: 190px;
    right: -90px;
    background: rgba(243, 182, 88, 0.2);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 18px 0;
    backdrop-filter: saturate(160%) blur(18px);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
    background: rgba(247, 242, 234, 0.88);
    box-shadow: 0 1px 0 rgba(31, 42, 48, 0.08);
}

.header-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 14px 20px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.58);
    box-shadow: var(--shadow-sm);
}

.brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.brand-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 800;
}

.brand-title,
.footer-title {
    font-size: 1.08rem;
    font-weight: 800;
}

.header-nav,
.header-actions,
.hero-actions,
.hero-stat-row,
.post-card-footer,
.section-overview-top,
.highlight-header,
.article-meta-line,
.pagination,
.editorial-actions,
.footer-links-grid,
.footer-bottom,
.checkbox-row,
.post-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.header-nav {
    justify-content: center;
}

.nav-link {
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--text-soft);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--text);
    background: rgba(15, 118, 110, 0.1);
}

.inline-form {
    display: inline-flex;
}

.main-shell {
    padding-bottom: 72px;
}

.button,
.filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    line-height: 1;
    transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.button:hover,
.filter-chip:hover {
    transform: translateY(-1px);
}

.button-block {
    width: 100%;
}

.button-primary {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 12px 22px rgba(15, 118, 110, 0.2);
}

.button-primary:hover {
    background: var(--accent-dark);
}

.button-secondary,
.filter-chip {
    background: rgba(255, 255, 255, 0.84);
    border-color: var(--line);
    color: var(--text);
}

.button-ghost {
    background: transparent;
    border-color: var(--line);
    color: var(--text-soft);
}

.button-danger {
    background: rgba(180, 35, 24, 0.1);
    border-color: rgba(180, 35, 24, 0.16);
    color: #b42318;
}

.button-text,
.text-link {
    min-height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--accent);
}

.button-text:hover,
.text-link:hover {
    color: var(--accent-dark);
}

.filter-chip.is-active {
    background: rgba(15, 118, 110, 0.1);
    border-color: rgba(15, 118, 110, 0.24);
}

.flash-stack {
    display: grid;
    gap: 12px;
    margin-top: 10px;
}

.flash {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    background: var(--surface-strong);
    box-shadow: var(--shadow-sm);
    font-weight: 600;
}

.flash-success {
    color: #146c43;
    border-color: rgba(20, 108, 67, 0.16);
}

.flash-danger {
    color: #b42318;
    border-color: rgba(180, 35, 24, 0.18);
}

.flash-warning {
    color: #b06c11;
    border-color: rgba(176, 108, 17, 0.18);
}

.section-pill,
.meta-note,
.status-pill,
.meta-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 800;
}

.meta-note,
.meta-pill {
    background: rgba(255, 255, 255, 0.82);
    color: var(--text-soft);
    border: 1px solid var(--line);
}

.section-pill.section-aktualnosci {
    background: rgba(30, 64, 175, 0.1);
    color: #1d4ed8;
}

.section-pill.section-ostrzezenia {
    background: rgba(180, 83, 9, 0.14);
    color: #b45309;
}

.section-pill.section-prognozy {
    background: rgba(15, 118, 110, 0.12);
    color: #0f766e;
}

.section-pill.section-analizy {
    background: rgba(71, 85, 105, 0.14);
    color: #475569;
}

.section-pill.section-artykuly {
    background: rgba(22, 101, 52, 0.12);
    color: #166534;
}

.section-pill.section-galerie {
    background: rgba(190, 24, 93, 0.12);
    color: #be185d;
}

.hero-panel,
.page-hero,
.posts-section,
.home-sections-overview,
.section-clusters,
.editorial-note,
.content-page,
.article-shell,
.state-page,
.auth-section {
    padding-top: 34px;
}

.hero-main-card,
.hero-aside-grid,
.section-overview-card,
.section-panel,
.editorial-note-card,
.page-hero-card,
.page-hero-aside,
.post-card,
.auth-card,
.content-card,
.profile-card,
.article-meta-card,
.highlight-card,
.empty-state,
.gallery-panel {
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
}

.hero-panel {
    display: grid;
    gap: 24px;
}

.hero-main-card {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 24px;
    padding: 28px;
}

.hero-copy,
.hero-story-body,
.page-hero-card,
.page-hero-aside,
.highlight-card,
.section-overview-card,
.section-panel,
.editorial-note-card,
.auth-card,
.content-card,
.profile-card,
.gallery-panel,
.article-meta-card,
.empty-state {
    padding: 28px;
}

.hero-copy h1,
.page-hero-card h1,
.article-header h1,
.auth-copy h1,
.empty-state h1 {
    margin: 12px 0 18px;
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.hero-text,
.section-note,
.section-panel-copy,
.page-hero-card p,
.page-hero-aside p,
.highlight-card p,
.post-card-excerpt,
.content-card p,
.profile-card p,
.empty-state p,
.auth-copy p,
.legal-card p,
.article-lead,
.footer-copy,
.footer-meta,
.row-subtitle,
.field-hint,
.card-date {
    color: var(--text-soft);
    line-height: 1.75;
}

.hero-stat-box {
    min-width: 180px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(31, 42, 48, 0.08);
    background: rgba(255, 255, 255, 0.72);
}

.hero-stat-box strong,
.section-stat-box strong,
.stat-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.65rem;
}

.hero-story-card {
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(31, 42, 48, 0.08);
}

.hero-story-media,
.article-cover,
.post-card-media,
.gallery-card img,
.admin-gallery-card img,
.cover-preview-image {
    overflow: hidden;
}

.hero-story-media,
.article-cover {
    aspect-ratio: 16 / 9;
}

.article-cover-compact {
    aspect-ratio: 16 / 6.4;
    max-height: 360px;
    border-radius: 26px;
    border: 1px solid rgba(31, 42, 48, 0.08);
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.72);
}

.hero-story-media img,
.article-cover img,
.post-card-media img,
.gallery-card img,
.admin-gallery-card img,
.cover-preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-story-body h2,
.section-heading h2,
.section-panel-heading h2,
.page-hero-aside h2,
.profile-card h2,
.legal-card h2,
.article-header h1,
.auth-copy h1,
.footer-heading {
    margin: 0 0 12px;
    line-height: 1.08;
}

.hero-aside-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.highlight-card h3,
.section-overview-card h3,
.post-card h3 {
    margin: 14px 0 10px;
    font-size: 1.3rem;
    line-height: 1.22;
}

.section-heading,
.section-panel-heading,
.gallery-heading,
.form-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.section-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.extended-overview-grid {
    padding-bottom: 8px;
}

.section-overview-card h3,
.section-panel-heading h2,
.page-hero-aside h2 {
    font-size: 1.6rem;
}

.section-latest-snippet {
    display: grid;
    gap: 6px;
    margin: 18px 0;
    padding-top: 18px;
    border-top: 1px solid rgba(31, 42, 48, 0.08);
}

.posts-grid,
.section-panel-grid,
.people-grid,
.legal-grid,
.gallery-grid {
    display: grid;
    gap: 20px;
}

.posts-grid,
.section-panel-grid,
.people-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-card {
    overflow: hidden;
}

.post-card-media {
    display: block;
    aspect-ratio: 16 / 11;
}

.post-card-media img {
    transition: transform 0.25s ease;
}

.post-card:hover .post-card-media img {
    transform: scale(1.03);
}

.post-card-body {
    padding: 24px;
}

.post-card-footer {
    justify-content: space-between;
}

.section-clusters {
    display: grid;
    gap: 22px;
}

.section-panel-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.editorial-note-card {
    display: grid;
    gap: 18px;
}

.page-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    gap: 22px;
}

.wide-page-hero {
    grid-column: 1 / -1;
}

.content-page {
    display: grid;
    gap: 22px;
}

.people-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.legal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-shell {
    padding-bottom: 34px;
}

.article-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--text-soft);
    font-weight: 700;
}

.enhanced-article-header {
    max-width: 920px;
    margin-top: 20px;
}

.article-cover-shell {
    width: min(100%, 760px);
    margin-top: 24px;
}

.article-cover-shell-tight {
    margin-bottom: 6px;
}

.article-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    margin-top: 28px;
}

.article-meta-card {
    position: sticky;
    top: 120px;
    display: grid;
    gap: 16px;
    align-self: start;
}

.meta-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
    color: var(--text-soft);
}

.article-content-stack {
    display: grid;
    gap: 22px;
}

.prose-content {
    overflow-wrap: anywhere;
    padding: 34px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.74);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.62);
    line-height: 1.82;
    font-size: 1.06rem;
}

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

.prose-content > *:last-child {
    margin-bottom: 0;
}

.prose-content h2,
.prose-content h3,
.prose-content h4 {
    margin: 34px 0 14px;
    font-family: var(--font-display);
    line-height: 1.1;
}

.prose-content p,
.prose-content ul,
.prose-content ol,
.prose-content blockquote {
    margin: 0 0 18px;
}

.prose-content ul,
.prose-content ol {
    padding-left: 1.35rem;
}

.prose-content blockquote {
    padding: 14px 18px;
    border-left: 4px solid var(--accent);
    background: rgba(15, 118, 110, 0.08);
    border-radius: 0 18px 18px 0;
    color: var(--text-soft);
}

.prose-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.prose-content img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    margin: 22px 0;
    box-shadow: var(--shadow-sm);
}

.gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-card {
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(31, 42, 48, 0.08);
    background: rgba(255, 255, 255, 0.72);
}

.gallery-card img {
    aspect-ratio: 4 / 3;
}

.gallery-card span {
    display: block;
    padding: 14px 16px;
    color: var(--text-soft);
    line-height: 1.6;
}

.auth-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
    gap: 28px;
}

.auth-form {
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
}

.auth-tip,
.gallery-upload-preview,
.empty-inline-state {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.7);
    color: var(--text-soft);
}

.empty-inline-state {
    line-height: 1.7;
}

.public-empty-inline {
    margin-top: 12px;
}

.state-page {
    min-height: 60vh;
    display: grid;
    align-items: center;
}

.empty-state {
    text-align: center;
}

.compact-empty {
    text-align: left;
}

.form-field {
    margin-bottom: 18px;
}

.form-label {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: 800;
}

.input,
.textarea,
.select,
.input-file {
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--text);
    padding: 14px 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.textarea {
    min-height: 120px;
    resize: vertical;
}

.input:focus,
.textarea:focus,
.select:focus,
.input-file:focus {
    outline: none;
    border-color: rgba(15, 118, 110, 0.54);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.field-error {
    margin: 8px 0 0;
    color: #b42318;
    font-size: 0.92rem;
    font-weight: 700;
}

.site-footer {
    padding: 24px 0 34px;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding: 28px 6px 0;
    border-top: 1px solid rgba(31, 42, 48, 0.08);
}

.footer-heading {
    font-size: 1rem;
    font-weight: 800;
}

.footer-links-grid {
    display: grid;
    gap: 10px;
    justify-items: start;
}

.footer-link {
    color: var(--text-soft);
    transition: color 0.18s ease;
}

.footer-link:hover {
    color: var(--text);
}

.footer-bottom {
    justify-content: space-between;
    padding-top: 18px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1120px) {
    .page-hero,
    .auth-card,
    .article-grid,
    .footer-grid,
    .people-grid,
    .legal-grid,
    .section-overview-grid,
    .hero-aside-grid,
    .posts-grid,
    .section-panel-grid,
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-main-card,
    .page-hero,
    .article-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .article-cover-shell {
        width: 100%;
    }

    .article-cover-compact {
        aspect-ratio: 16 / 9;
        border-radius: 22px;
    }

    .article-meta-card {
        position: static;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100vw - 20px, 100%);
    }

    .site-header {
        padding: 12px 0;
    }

    .header-row {
        grid-template-columns: 1fr;
        gap: 14px;
        border-radius: 28px;
        padding: 16px;
    }

    .header-nav,
    .header-actions,
    .hero-actions,
    .hero-stat-row,
    .footer-bottom,
    .pagination,
    .editorial-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-copy h1,
    .page-hero-card h1,
    .article-header h1,
    .auth-copy h1,
    .empty-state h1 {
        font-size: clamp(2rem, 11vw, 3.2rem);
    }

    .hero-copy,
    .hero-story-body,
    .page-hero-card,
    .page-hero-aside,
    .highlight-card,
    .section-overview-card,
    .section-panel,
    .editorial-note-card,
    .auth-card,
    .content-card,
    .profile-card,
    .gallery-panel,
    .article-meta-card,
    .empty-state,
    .prose-content,
    .auth-form {
        padding: 22px;
    }

    .article-cover-compact {
        aspect-ratio: 16 / 9;
        border-radius: 22px;
    }

    .hero-aside-grid,
    .posts-grid,
    .section-panel-grid,
    .section-overview-grid,
    .people-grid,
    .legal-grid,
    .gallery-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section-heading,
    .section-panel-heading,
    .gallery-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .button,
    .filter-chip {
        width: 100%;
    }
}

/* Home And Header Refresh */
.header-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 20px;
    padding: 12px 18px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.72);
}

.header-clock {
    display: grid;
    justify-items: center;
    gap: 2px;
    min-width: 164px;
    padding: 6px 14px;
    text-align: center;
    border-radius: 18px;
    border: 1px solid rgba(31, 42, 48, 0.08);
    background: rgba(255, 255, 255, 0.58);
}

.clock-label,
.clock-meta {
    color: var(--text-soft);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.clock-value {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.header-actions {
    justify-content: flex-end;
}

.home-page .hero-panel,
.home-page .posts-section,
.home-page .home-sections-overview,
.home-page .section-clusters,
.home-page .editorial-note {
    padding-top: 24px;
}

.home-page .hero-panel {
    gap: 18px;
}

.home-page .hero-main-card {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
    gap: 18px;
    padding: 22px;
    box-shadow: var(--shadow-md);
}

.home-page .hero-copy,
.home-page .hero-story-body,
.home-page .highlight-card,
.home-page .section-overview-card,
.home-page .section-panel,
.home-page .editorial-note-card {
    padding: 22px;
}

.home-page .hero-copy h1 {
    margin: 10px 0 14px;
    font-size: clamp(2.05rem, 4vw, 3.15rem);
    line-height: 1.04;
    letter-spacing: -0.03em;
}

.home-page .hero-text {
    max-width: 60ch;
    margin: 0;
}

.home-page .hero-actions {
    margin-top: 18px;
}

.home-page .hero-stat-row {
    gap: 10px;
    margin-top: 4px;
}

.home-page .hero-stat-box {
    min-width: 0;
    flex: 1 1 180px;
    padding: 14px 16px;
    border-radius: 16px;
}

.home-page .hero-stat-box strong {
    margin-bottom: 6px;
    font-size: 1.35rem;
}

.home-page .hero-story-card {
    border-radius: 22px;
    box-shadow: none;
}

.home-page .hero-story-media {
    aspect-ratio: 16 / 10;
}

.home-page .hero-story-body h2 {
    font-size: 1.52rem;
}

.home-page .hero-aside-grid {
    gap: 14px;
}

.home-page .highlight-card {
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.home-page .highlight-card h3 {
    margin: 10px 0 8px;
    font-size: 1.06rem;
    line-height: 1.3;
}

.home-page .section-heading {
    margin-bottom: 16px;
}

.home-page .section-heading h2 {
    margin-bottom: 6px;
    font-size: 1.72rem;
    line-height: 1.12;
}

.home-page .section-note {
    max-width: 54ch;
    margin: 0;
}

.compact-overview-grid {
    gap: 16px;
}

.compact-overview-card {
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.compact-overview-card h3 {
    margin: 12px 0 8px;
    font-size: 1.08rem;
}

.latest-grid-balanced {
    gap: 18px;
}

.post-card {
    border-radius: 22px;
    box-shadow: var(--shadow-md);
}

.post-card-media {
    aspect-ratio: 16 / 10;
}

.post-card-body {
    display: grid;
    gap: 12px;
    padding: 20px;
}

.post-card h3 {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.28;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.post-card-excerpt {
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 5.1em;
}

.post-card-meta {
    gap: 8px;
}

.post-card-footer {
    justify-content: space-between;
    gap: 10px;
}

.post-card-footer .button-text {
    font-size: 0.95rem;
    font-weight: 800;
}

.section-clusters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.section-panel {
    box-shadow: var(--shadow-md);
}

.compact-panel-heading {
    margin-bottom: 12px;
}

.compact-panel-heading h2 {
    font-size: 1.32rem;
    line-height: 1.18;
}

.section-panel-link {
    font-weight: 800;
}

.section-panel-copy {
    margin: 0 0 14px;
}

.compact-section-panel-grid {
    grid-template-columns: 1fr;
    gap: 14px;
}

.post-card-compact .post-card-media {
    aspect-ratio: 16 / 9;
}

.post-card-compact .post-card-body {
    padding: 18px;
}

.post-card-compact h3 {
    min-height: auto;
    font-size: 1.02rem;
}

.post-card-compact .post-card-excerpt {
    -webkit-line-clamp: 2;
    min-height: 3.45em;
}

.editorial-note-card-compact {
    gap: 14px;
    box-shadow: var(--shadow-md);
}

.site-footer {
    padding: 18px 0 30px;
}

.footer-grid {
    gap: 20px;
    padding-top: 22px;
}

.footer-copy {
    max-width: 42ch;
}

@media (max-width: 980px) {
    .header-row {
        grid-template-columns: 1fr auto;
        row-gap: 12px;
    }

    .header-clock {
        grid-column: 1 / -1;
        justify-items: start;
        text-align: left;
    }

    .home-page .hero-main-card {
        grid-template-columns: 1fr;
    }

    .section-clusters,
    .compact-overview-grid,
    .latest-grid-balanced {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .header-row {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 14px;
        border-radius: 24px;
    }

    .header-clock {
        justify-items: start;
        text-align: left;
        min-width: 0;
        padding: 10px 12px;
        border-radius: 16px;
    }

    .header-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        width: 100%;
    }

    .header-actions .inline-form {
        display: flex;
    }

    .header-actions .button {
        width: 100%;
    }

    .home-page .hero-copy h1 {
        font-size: clamp(1.85rem, 8vw, 2.45rem);
    }

    .home-page .hero-copy,
    .home-page .hero-story-body,
    .home-page .highlight-card,
    .home-page .section-overview-card,
    .home-page .section-panel,
    .home-page .editorial-note-card {
        padding: 18px;
    }

    .home-page .hero-stat-row {
        align-items: stretch;
        flex-direction: column;
    }

    .compact-overview-grid,
    .latest-grid-balanced,
    .section-clusters {
        grid-template-columns: 1fr;
    }

    .home-page .section-heading h2 {
        font-size: 1.45rem;
    }

    .home-page .section-note {
        max-width: none;
    }
}

/* Home Layout Refinement */
.home-page .hero-panel {
    padding-bottom: 8px;
}

.home-page .hero-main-card.home-hero-card-slim {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.82fr);
    align-items: stretch;
    padding: 20px;
    gap: 16px;
}

.home-page .hero-main-card.home-hero-card-slim .hero-copy,
.home-page .hero-main-card.home-hero-card-slim .hero-story-body {
    padding: 20px;
}

.home-page .hero-main-card.home-hero-card-slim .hero-story-card {
    height: 100%;
    min-width: 0;
}

.home-page .hero-main-card.home-hero-card-slim .hero-text {
    max-width: 58ch;
}

.home-page .posts-section {
    padding-top: 24px;
    padding-bottom: 20px;
}

.compact-section-heading-single {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
}

.latest-grid-balanced {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.latest-grid-balanced .post-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
}

.latest-grid-balanced .post-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
}

.latest-grid-balanced .post-card-excerpt {
    flex: 1;
    min-height: auto;
}

.latest-grid-balanced .post-card-footer {
    margin-top: auto;
}

@media (max-width: 1100px) {
    .home-page .hero-main-card.home-hero-card-slim {
        grid-template-columns: 1fr;
    }

    .latest-grid-balanced {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .home-page .hero-main-card.home-hero-card-slim {
        padding: 18px;
    }

    .home-page .hero-main-card.home-hero-card-slim .hero-copy,
    .home-page .hero-main-card.home-hero-card-slim .hero-story-body {
        padding: 18px;
    }

    .home-page .posts-section {
        padding-top: 20px;
    }

    .latest-grid-balanced {
        grid-template-columns: 1fr;
    }
}

/* Weather Navigation */
.header-actions {
    flex-wrap: wrap;
    row-gap: 8px;
}

@media (max-width: 760px) {
    .header-actions {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}

/* Weather Experience Refinement */
.header-row {
    gap: 18px;
    padding: 11px 16px;
}

.brand-kicker {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
}

.brand-title {
    font-size: 1.02rem;
}

.header-clock {
    min-width: 152px;
    padding: 6px 12px;
    border-radius: 16px;
}

.clock-label {
    font-size: 0.67rem;
    letter-spacing: 0.08em;
}

.clock-value {
    font-size: 1rem;
}

.clock-meta {
    font-size: 0.72rem;
}

.header-actions {
    gap: 8px;
}

.header-actions .button {
    min-height: 42px;
    padding: 0 15px;
    font-size: 0.94rem;
}

.button-nav-home {
    background: rgba(255, 255, 255, 0.88);
}

.button-nav-weather {
    background: rgba(15, 118, 110, 0.1);
    border-color: rgba(15, 118, 110, 0.18);
}

.button-nav-weather:hover {
    background: rgba(15, 118, 110, 0.15);
}

@media (max-width: 980px) {
    .header-row {
        gap: 12px;
        padding: 12px 14px;
    }

    .header-clock {
        min-width: 0;
    }
}

@media (max-width: 760px) {
    .brand-title {
        font-size: 0.98rem;
    }

    .header-actions {
        grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
        gap: 8px;
    }

    .header-actions .button {
        min-height: 44px;
    }
}

/* Publications Grid Refinement */
.latest-grid-balanced {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 18px;
    align-items: stretch;
}

.latest-grid-balanced.latest-grid-count-1 {
    justify-content: center;
}

.latest-grid-balanced .post-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    width: 100%;
    max-width: min(100%, 420px);
    justify-self: center;
}

.latest-grid-balanced.latest-grid-count-1 .post-card {
    max-width: min(100%, 520px);
}

.latest-grid-balanced.latest-grid-count-2 .post-card {
    max-width: min(100%, 460px);
}

.latest-grid-balanced .post-card-media {
    aspect-ratio: 16 / 10;
    background: rgba(31, 42, 48, 0.06);
}

.latest-grid-balanced .post-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.latest-grid-balanced .post-card-meta {
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px 10px;
}

.latest-grid-balanced .post-card h3,
.latest-grid-balanced .post-card .post-card-title-link,
.latest-grid-balanced .post-card-excerpt,
.latest-grid-balanced .post-card .card-date,
.latest-grid-balanced .post-card .meta-note {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.latest-grid-balanced .post-card-title-link {
    display: block;
}

.latest-grid-balanced .post-card h3 {
    min-height: 2.9em;
}

.latest-grid-balanced .post-card-excerpt {
    flex: 1;
    min-height: 0;
    -webkit-line-clamp: 4;
}

.latest-grid-balanced .post-card-footer {
    margin-top: auto;
    gap: 10px;
}

@media (max-width: 980px) {
    .latest-grid-balanced .post-card,
    .latest-grid-balanced.latest-grid-count-2 .post-card,
    .latest-grid-balanced.latest-grid-count-1 .post-card {
        max-width: none;
    }
}

@media (max-width: 760px) {
    .latest-grid-balanced {
        grid-template-columns: 1fr;
    }

    .latest-grid-balanced .post-card {
        max-width: none;
        justify-self: stretch;
    }

    .latest-grid-balanced .post-card-meta,
    .latest-grid-balanced .post-card-footer {
        justify-content: flex-start;
    }
}



/* Homepage latest publications refinement */
.home-page .hero-main-card.home-hero-card-slim {
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 20px;
    padding: 22px;
}

.home-page .hero-main-card.home-hero-card-slim .hero-copy,
.home-page .hero-main-card.home-hero-card-slim .hero-story-body {
    padding: 22px;
}

.home-page .hero-main-card.home-hero-card-slim .hero-text {
    max-width: 56ch;
}

.home-page .posts-section-latest {
    padding-top: 26px;
    padding-bottom: 24px;
}

.home-page .latest-posts-shell {
    display: grid;
    gap: 18px;
    padding: 24px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.54) 100%);
    box-shadow: var(--shadow-lg);
}

.home-page .latest-posts-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 18px;
    margin-bottom: 4px;
}

.home-page .latest-posts-heading h2 {
    margin-bottom: 8px;
    font-size: clamp(2rem, 3vw, 2.5rem);
}

.home-page .latest-posts-note {
    max-width: 62ch;
}

.home-page .latest-posts-summary {
    display: grid;
    gap: 4px;
    min-width: 220px;
    padding: 18px 20px;
    border-radius: 22px;
    border: 1px solid rgba(31, 42, 48, 0.08);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-sm);
}

.home-page .latest-posts-summary strong {
    font-size: 1.9rem;
    line-height: 1;
}

.home-page .latest-posts-summary span {
    color: var(--text-soft);
    line-height: 1.5;
}

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

.latest-feed-grid .post-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    max-width: none;
    width: 100%;
    justify-self: stretch;
}

.latest-feed-grid .post-card-homepage {
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-md);
}

.latest-feed-grid .post-card-media {
    aspect-ratio: 16 / 10;
    background: rgba(31, 42, 48, 0.05);
}

.latest-feed-grid .post-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    padding: 22px;
    min-width: 0;
}

.latest-feed-grid .post-card-meta {
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.latest-feed-grid .post-card h3 {
    margin: 0;
    min-height: 2.8em;
    font-size: 1.14rem;
    line-height: 1.28;
}

.latest-feed-grid .post-card-title-link,
.latest-feed-grid .post-card-excerpt,
.latest-feed-grid .card-date,
.latest-feed-grid .meta-note {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.latest-feed-grid .post-card-excerpt {
    flex: 1;
    margin: 0;
    min-height: 0;
    -webkit-line-clamp: 4;
}

.latest-feed-grid .post-card-footer {
    margin-top: auto;
    justify-content: space-between;
    gap: 12px;
}

.home-page .empty-state-latest {
    padding: 26px 28px;
}

@media (max-width: 1120px) {
    .home-page .latest-posts-heading {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .latest-feed-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .home-page .hero-main-card.home-hero-card-slim {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .home-page .latest-posts-shell {
        padding: 18px;
        gap: 16px;
    }

    .latest-feed-grid {
        grid-template-columns: 1fr;
    }

    .latest-feed-grid .post-card-body {
        padding: 18px;
    }

    .latest-feed-grid .post-card-meta,
    .latest-feed-grid .post-card-footer {
        justify-content: flex-start;
    }
}


.card-author {
    margin: 6px 0 0;
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.6;
}

.featured-card-author {
    margin-top: 4px;
}

.article-shell-pro {
    max-width: 1240px;
}

.article-header-pro {
    display: grid;
    gap: 14px;
    max-width: 860px;
}

.article-header-pro h1 {
    max-width: 16ch;
    font-size: clamp(2.2rem, 4vw, 4rem);
    letter-spacing: -0.04em;
}

.article-meta-line-top {
    gap: 12px;
}

.article-meta-line-rich {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.article-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(31, 42, 48, 0.08);
    background: rgba(255, 255, 255, 0.86);
    color: var(--text-soft);
    line-height: 1.4;
}

.article-meta-item strong {
    color: var(--text);
}

.article-cover-shell-pro {
    width: min(100%, 920px);
    margin-top: 28px;
    margin-bottom: 12px;
}

.article-cover-pro {
    aspect-ratio: 16 / 7;
    max-height: 420px;
    border-radius: 30px;
}

.article-grid-pro {
    grid-template-columns: minmax(220px, 260px) minmax(0, 760px);
    justify-content: space-between;
    gap: 32px;
}

.article-meta-card-pro {
    padding: 24px;
    gap: 18px;
}

.article-meta-card-pro .button {
    margin-top: 6px;
}

.article-content-stack {
    max-width: 760px;
}

.prose-content {
    padding: 38px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.82);
}

.prose-content p,
.prose-content ul,
.prose-content ol,
.prose-content blockquote {
    max-width: 66ch;
}

.prose-content img {
    width: 100%;
    max-width: 100%;
    border-radius: 22px;
    margin: 28px 0;
}

.gallery-panel-pro {
    padding: 30px;
}

.gallery-section-note {
    max-width: 60ch;
    margin: 8px 0 0;
}

.gallery-grid {
    gap: 18px;
}

.gallery-card {
    display: grid;
    grid-template-rows: auto 1fr;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.gallery-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.gallery-card span {
    font-size: 0.95rem;
}

.post-card-body {
    display: grid;
    gap: 12px;
}

.post-card h3 {
    margin: 0;
}

.post-card-meta {
    gap: 8px;
}

.post-card-excerpt {
    margin: 0;
}

.post-card-footer {
    margin-top: 4px;
}

@media (max-width: 1100px) {
    .article-grid-pro {
        grid-template-columns: 1fr;
    }

    .article-meta-card-pro {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .article-meta-card-pro .button {
        grid-column: 1 / -1;
    }

    .article-content-stack {
        max-width: 100%;
    }
}

@media (max-width: 760px) {
    .article-header-pro h1 {
        max-width: none;
        font-size: clamp(1.9rem, 8vw, 2.7rem);
    }

    .article-cover-shell-pro {
        width: 100%;
        margin-top: 22px;
    }

    .article-cover-pro {
        aspect-ratio: 16 / 9;
        max-height: none;
        border-radius: 24px;
    }

    .article-meta-card-pro {
        grid-template-columns: 1fr;
    }

    .prose-content {
        padding: 24px 20px;
        border-radius: 24px;
        font-size: 1rem;
        line-height: 1.78;
    }

    .gallery-panel-pro {
        padding: 22px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}


/* === Blog editorial refresh === */
.post-card-meta-rich,
.featured-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.card-meta-detail {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(31, 42, 48, 0.08);
    background: rgba(255, 255, 255, 0.82);
    color: var(--text-soft);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.4;
}

.featured-post-meta {
    margin-bottom: 6px;
}

.latest-feed-grid .post-card-excerpt,
.posts-grid .post-card-excerpt {
    color: var(--text-soft);
    line-height: 1.7;
}

.article-editorial {
    display: grid;
    gap: 26px;
}

.article-header-editorial {
    gap: 18px;
    max-width: none;
}

.article-meta-line-top-editorial {
    gap: 10px;
}

.meta-pill-author {
    font-weight: 700;
}

.article-header-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 310px);
    gap: 26px;
    align-items: start;
}

.article-header-main {
    min-width: 0;
}

.article-header-editorial h1 {
    margin: 0;
    max-width: 15ch;
    font-size: clamp(2.3rem, 4vw, 4.2rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.article-lead-editorial {
    max-width: 58ch;
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.8;
    color: var(--text-soft);
}

.article-header-summary {
    display: grid;
}

.article-summary-card {
    display: grid;
    gap: 14px;
    padding: 22px;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 243, 237, 0.88));
    box-shadow: var(--shadow-sm);
}

.article-summary-card .eyebrow {
    margin: 0;
}

.article-summary-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.article-summary-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(31, 42, 48, 0.08);
}

.article-summary-list li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.article-summary-list strong {
    color: var(--text);
}

.article-summary-list span {
    color: var(--text-soft);
    text-align: right;
}

.article-cover-shell-editorial {
    width: min(100%, 980px);
    margin-top: 0;
    margin-bottom: 0;
}

.article-cover-editorial {
    aspect-ratio: 16 / 6.4;
    max-height: 360px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.article-cover-caption {
    margin: 10px 4px 0;
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.5;
}

.article-layout-editorial {
    grid-template-columns: minmax(220px, 250px) minmax(0, 760px);
    gap: 34px;
    align-items: start;
    margin-top: 0;
}

.article-meta-card-editorial {
    top: 112px;
    padding: 24px;
    gap: 18px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.8);
}

.article-meta-card-head {
    display: grid;
    gap: 6px;
}

.article-meta-card-head h2 {
    margin: 0;
    font-size: 1.2rem;
}

.article-meta-rows {
    display: grid;
    gap: 14px;
}

.article-meta-row {
    display: grid;
    gap: 6px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(31, 42, 48, 0.08);
}

.article-meta-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.article-reading-column {
    display: grid;
    gap: 24px;
    min-width: 0;
}

.article-content-editorial {
    padding: 40px 42px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.84);
}

.article-content-editorial h2 {
    font-size: clamp(1.5rem, 2vw, 2rem);
}

.article-content-editorial h3 {
    font-size: clamp(1.24rem, 1.8vw, 1.55rem);
}

.article-content-editorial p,
.article-content-editorial ul,
.article-content-editorial ol,
.article-content-editorial blockquote {
    max-width: 68ch;
}

.article-content-editorial li + li {
    margin-top: 8px;
}

.article-content-editorial img {
    max-height: 520px;
    object-fit: cover;
}

.article-gallery-section {
    padding: 28px 30px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: var(--shadow-md);
}

.gallery-section-head {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

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

.gallery-card-editorial {
    gap: 10px;
    padding: 10px;
    border-radius: 22px;
    border: 1px solid rgba(31, 42, 48, 0.08);
    background: rgba(255, 255, 255, 0.72);
}

.gallery-card-figure {
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
}

.gallery-card-editorial img {
    aspect-ratio: 4 / 3;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-card-caption {
    display: block;
    color: var(--text-soft);
    font-size: 0.94rem;
    line-height: 1.55;
}

.related-posts-section {
    padding-top: 12px;
}

@media (max-width: 1180px) {
    .article-header-grid,
    .article-layout-editorial {
        grid-template-columns: 1fr;
    }

    .article-header-editorial h1 {
        max-width: 18ch;
    }

    .article-meta-card-editorial {
        position: static;
    }

    .article-summary-card,
    .article-meta-card-editorial {
        max-width: 760px;
    }
}

@media (max-width: 920px) {
    .article-cover-editorial {
        aspect-ratio: 16 / 8;
        max-height: none;
    }

    .gallery-grid-editorial {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .card-meta-detail {
        min-height: 30px;
        padding: 0 10px;
        font-size: 0.84rem;
    }

    .article-editorial {
        gap: 20px;
    }

    .article-header-editorial h1 {
        max-width: none;
        font-size: clamp(1.9rem, 8vw, 2.7rem);
    }

    .article-lead-editorial {
        font-size: 1rem;
        line-height: 1.72;
    }

    .article-summary-card,
    .article-meta-card-editorial,
    .article-gallery-section {
        padding: 20px;
        border-radius: 24px;
    }

    .article-content-editorial {
        padding: 24px 20px;
        border-radius: 24px;
    }

    .article-cover-editorial {
        border-radius: 24px;
    }

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


/* Public information pages, footer and PWA */
.info-hero-card {
    min-height: 100%;
}

.info-hero-aside {
    display: grid;
    align-content: start;
    gap: 14px;
}

.info-copy-card,
.app-guide-card,
.app-benefit-card {
    background: rgba(255, 255, 255, 0.86);
}

.legal-grid-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer-grid-light {
    grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(220px, 1fr));
    gap: 28px;
    align-items: start;
}

.footer-note,
.footer-install-hint {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.7;
}

.footer-link-inline {
    display: inline;
}

.footer-bottom-light {
    gap: 14px;
}

.app-hero-actions {
    margin-top: 10px;
}

.install-status {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.7;
}

.app-install-layout {
    gap: 24px;
}

.app-benefits-grid,
.app-guide-grid {
    display: grid;
    gap: 20px;
}

.app-benefits-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.app-guide-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-steps {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--text-soft);
    line-height: 1.75;
}

.guide-steps li + li {
    margin-top: 10px;
}

@media (max-width: 1120px) {
    .app-benefits-grid,
    .app-guide-grid,
    .legal-grid-wide {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .footer-grid-light,
    .app-benefits-grid,
    .app-guide-grid,
    .legal-grid-wide {
        grid-template-columns: 1fr;
    }

    .footer-bottom-light {
        align-items: flex-start;
    }
}


/* === Information pages typography and PWA refinement === */
.info-page .page-hero,
.info-page .content-page {
    padding-top: 24px;
}

.info-page .page-hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.62fr);
    gap: 18px;
    align-items: start;
}

.info-page-hero-shell {
    margin-bottom: 6px;
}

.info-page .page-hero-card,
.info-page .page-hero-aside {
    padding: 24px 26px;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
}

.info-hero-card-quiet {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.8));
}

.info-hero-aside-quiet {
    background: rgba(255, 255, 255, 0.76);
}

.info-page .page-hero-card h1 {
    margin: 10px 0 14px;
    max-width: 14ch;
    font-size: clamp(2rem, 3.6vw, 3.15rem);
    line-height: 1.04;
    letter-spacing: -0.035em;
}

.info-page .hero-text,
.info-page .page-hero-card p,
.info-page .page-hero-aside p,
.info-page .content-card p,
.info-page .profile-card p,
.info-page .legal-card p,
.info-page .guide-steps {
    max-width: 64ch;
    font-size: 1rem;
    line-height: 1.76;
}

.info-page .page-hero-aside h2,
.info-page .section-heading h2,
.info-page .profile-card h2,
.info-page .legal-card h2,
.info-page .app-guide-card h2,
.info-page .app-benefit-card h2 {
    margin-bottom: 10px;
    font-size: clamp(1.28rem, 1.8vw, 1.65rem);
    line-height: 1.16;
}

.info-page-stack {
    gap: 18px;
    padding-bottom: 8px;
}

.info-section-card,
.info-profile-card,
.app-guide-card,
.app-benefit-card {
    padding: 22px 24px;
    border-radius: 22px;
    box-shadow: var(--shadow-md);
}

.info-copy-flow {
    display: grid;
    gap: 14px;
}

.info-copy-flow p,
.info-page .legal-card p {
    margin: 0;
}

.info-legal-grid {
    gap: 18px;
}

.install-status-card {
    margin-top: 6px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(31, 42, 48, 0.08);
    background: rgba(255, 255, 255, 0.72);
}

.button-install-app[disabled] {
    opacity: 0.82;
    cursor: default;
    transform: none;
}

.app-benefits-grid-soft,
.app-guide-grid-soft {
    gap: 18px;
}

.app-benefit-card p,
.app-guide-card p,
.app-guide-card li {
    max-width: 58ch;
}

@media (max-width: 1120px) {
    .info-page .page-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .info-page .page-hero,
    .info-page .content-page {
        padding-top: 18px;
    }

    .info-page .page-hero-card,
    .info-page .page-hero-aside,
    .info-section-card,
    .info-profile-card,
    .app-guide-card,
    .app-benefit-card {
        padding: 18px;
        border-radius: 20px;
    }

    .info-page .page-hero-card h1 {
        max-width: none;
        font-size: clamp(1.72rem, 7vw, 2.28rem);
        line-height: 1.08;
    }

    .info-page .page-hero-aside h2,
    .info-page .section-heading h2,
    .info-page .profile-card h2,
    .info-page .legal-card h2,
    .info-page .app-guide-card h2,
    .info-page .app-benefit-card h2 {
        font-size: 1.2rem;
    }

    .info-page .hero-text,
    .info-page .page-hero-card p,
    .info-page .page-hero-aside p,
    .info-page .content-card p,
    .info-page .profile-card p,
    .info-page .legal-card p,
    .info-page .guide-steps {
        font-size: 0.98rem;
        line-height: 1.7;
    }
}

/* Facebook community widget */
.facebook-community-widget {
    position: fixed;
    right: 18px;
    top: 56%;
    z-index: 42;
    pointer-events: none;
}

.facebook-widget-dock {
    display: grid;
    gap: 10px;
    justify-items: end;
}

.facebook-dock-button {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 15px 0 11px;
    border: 1px solid rgba(31, 42, 48, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        border-color 160ms ease,
        background 160ms ease;
}

.facebook-dock-button:hover,
.facebook-dock-button:focus-visible {
    transform: translateX(-2px);
    border-color: rgba(24, 119, 242, 0.22);
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 16px 28px rgba(24, 119, 242, 0.14);
    text-decoration: none;
}

.facebook-dock-button:focus-visible {
    outline: 3px solid rgba(24, 119, 242, 0.18);
    outline-offset: 2px;
}

.facebook-dock-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 999px;
    background: #1877f2;
    color: #fff;
    font-weight: 800;
    font-size: 0.96rem;
    line-height: 1;
    box-shadow: 0 10px 18px rgba(24, 119, 242, 0.18);
    animation: facebookDockPulse 3.8s ease-in-out infinite;
}

.facebook-dock-label {
    font-weight: 800;
    font-size: 0.94rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.facebook-dock-button-group .facebook-dock-label {
    font-size: 0.91rem;
}

@keyframes facebookDockPulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 10px 18px rgba(24, 119, 242, 0.16);
    }
    50% {
        transform: scale(1.04);
        box-shadow: 0 14px 24px rgba(24, 119, 242, 0.22);
    }
}

@media (max-width: 860px) {
    .facebook-community-widget {
        top: auto;
        right: 12px;
        bottom: 18px;
    }

    .facebook-widget-dock {
        gap: 8px;
    }

    .facebook-dock-button {
        min-height: 42px;
        padding: 0 14px 0 10px;
    }
}

@media (max-width: 560px) {
    .facebook-community-widget {
        right: 10px;
        bottom: 12px;
        left: auto;
    }

    .facebook-dock-button {
        min-height: 40px;
        padding: 0 12px 0 9px;
        gap: 8px;
    }

    .facebook-dock-icon {
        width: 26px;
        height: 26px;
        flex-basis: 26px;
        font-size: 0.9rem;
    }

    .facebook-dock-label {
        font-size: 0.88rem;
    }
}
