.profile-dialog {
    width: min(44rem, calc(100% - 1.5rem));
    max-width: 44rem;
    max-height: min(92vh, 52rem);
    border: 1px solid var(--border-subtle, rgba(44, 53, 57, 0.1));
    border-radius: var(--radius-lg, 24px);
    background: var(--surface, #ffffff);
    color: var(--ink, #2C3539);
    padding: 0;
    box-shadow: 0 24px 64px -12px rgba(26, 37, 43, 0.25);
    overflow: hidden;
}

.profile-dialog[open] {
    display: flex;
    flex-direction: column;
    animation: dialogPop 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes dialogPop {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.profile-dialog::backdrop {
    background: rgba(18, 25, 30, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: dialogBackdrop 0.25s ease forwards;
}

@keyframes dialogBackdrop {
    from { opacity: 0; }
    to { opacity: 1; }
}

.profile-dialog-content {
    display: flex;
    flex-direction: column;
    padding: clamp(1.25rem, 3.5vw, 2rem);
    overflow-y: auto;
    max-height: inherit;
    box-sizing: border-box;
}

.profile-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-subtle, rgba(44, 53, 57, 0.08));
}

.profile-dialog-header-text {
    flex: 1;
}

.profile-dialog-badge {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(74, 107, 124, 0.25);
    border-radius: 9999px;
    background: rgba(74, 107, 124, 0.08);
    color: var(--primary, #4A6B7C);
    padding: 0.25rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}

.profile-dialog-header h2 {
    margin: 0 0 0.35rem 0;
    color: var(--ink, #2C3539);
    font-size: clamp(1.35rem, 2.5vw, 1.7rem);
    line-height: 1.2;
}

.profile-dialog-header p {
    margin: 0;
    color: var(--ink-muted, #5C6C75);
    font-size: 0.9rem;
    line-height: 1.45;
}

.profile-dialog-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
    border: 1px solid var(--border-medium, rgba(44, 53, 57, 0.14));
    border-radius: 9999px;
    background: transparent;
    color: var(--ink-muted, #5C6C75);
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-dialog-close:hover,
.profile-dialog-close:focus-visible {
    background: var(--surface-subtle, #F3EFEA);
    color: var(--secondary, #CC6B52);
    border-color: var(--secondary, #CC6B52);
    transform: rotate(90deg);
}

.profile-dialog-sections {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.profile-section-group {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.profile-section-label {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.profile-section-label .step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 9999px;
    background: var(--primary, #4A6B7C);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
}

.profile-section-label .section-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--ink, #2C3539);
    display: block;
    line-height: 1.2;
}

.profile-section-label .section-hint {
    font-size: 0.78rem;
    color: var(--ink-muted, #5C6C75);
    display: block;
}

.profile-options-grid {
    display: grid;
    gap: 0.6rem;
}

.stages-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.families-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.profile-option-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 0.85rem;
    border: 1.5px solid var(--border-medium, rgba(44, 53, 57, 0.12));
    border-radius: 12px;
    background: var(--surface, #ffffff);
    color: var(--ink, #2C3539);
    cursor: pointer;
    text-align: left;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.profile-option-tile:hover {
    border-color: var(--primary, #4A6B7C);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 107, 124, 0.12);
}

.profile-option-tile.is-selected {
    border-color: var(--primary, #4A6B7C);
    background: rgba(74, 107, 124, 0.08);
    box-shadow: 0 0 0 1px var(--primary, #4A6B7C), 0 4px 12px rgba(74, 107, 124, 0.14);
}

.profile-option-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    background: rgba(74, 107, 124, 0.08);
    color: var(--primary, #4A6B7C);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.profile-option-tile.is-selected .profile-option-icon {
    background: var(--primary, #4A6B7C);
    color: #ffffff;
}

.profile-option-title {
    font-weight: 700;
    font-size: 0.85rem;
    line-height: 1.25;
    color: var(--ink, #2C3539);
    margin-bottom: 0.15rem;
}

.profile-option-desc {
    font-size: 0.72rem;
    color: var(--ink-muted, #5C6C75);
    line-height: 1.2;
}

.profile-option-check {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    display: none;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 9999px;
    background: var(--primary, #4A6B7C);
    color: #ffffff;
}

.profile-option-tile.is-selected .profile-option-check {
    display: flex;
}

.profile-summary-bar {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 1.25rem;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    background: var(--accent-light, #EFF5F1);
    border: 1px solid rgba(118, 151, 132, 0.25);
    color: var(--accent-dark, #2b4838);
    font-size: 0.84rem;
}

.profile-summary-icon {
    color: var(--accent, #769784);
    display: inline-flex;
    flex-shrink: 0;
}

.profile-dialog-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle, rgba(44, 53, 57, 0.08));
}

.profile-btn-cancel {
    padding: 0.65rem 1.25rem;
    border-radius: 9999px;
    border: 1px solid var(--border-medium, rgba(44, 53, 57, 0.16));
    background: transparent;
    color: var(--ink-muted, #5C6C75);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-btn-cancel:hover {
    background: var(--surface-subtle, #F3EFEA);
    color: var(--ink, #2C3539);
}

.profile-btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    border-radius: 9999px;
    border: none;
    background: var(--primary, #4A6B7C);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(74, 107, 124, 0.25);
    transition: all 0.2s ease;
}

.profile-btn-submit:hover {
    background: #5a7a8a;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(74, 107, 124, 0.32);
}

.featured-articles-section {
    padding-block: 4.5rem 5.5rem;
    background: var(--light, #FAF8F5);
}

.featured-inner,
.theme-footer-inner,
.drafts-inner {
    width: min(100% - 2rem, 76rem);
    margin-inline: auto;
}

.hero-action-card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(44, 53, 57, 0.08);
    border-radius: 9999px;
    padding: 0.5rem 0.65rem;
    box-shadow: 0 10px 30px -5px rgba(36, 48, 54, 0.08), 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.hero-action-card:hover {
    box-shadow: 0 14px 36px -4px rgba(36, 48, 54, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04);
    border-color: rgba(44, 53, 57, 0.14);
}

.featured-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
}

.featured-heading h2,
.theme-footer-heading h2,
.drafts-heading h1 {
    margin-bottom: 0.5rem;
    color: var(--ink, #2C3539);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1.25;
}

.draft-auth-panel {
    display: grid;
    width: min(100%, 30rem);
    gap: 0.75rem;
    border: 1px solid var(--border-subtle, rgba(44, 53, 57, 0.08));
    border-radius: var(--radius-md, 16px);
    background: var(--surface, #ffffff);
    box-shadow: var(--shadow-soft, 0 4px 20px -2px rgba(36, 48, 54, 0.05));
    padding: 1.75rem;
}

.draft-auth-panel[hidden] {
    display: none;
}

.draft-auth-panel h2 {
    margin: 0 0 0.35rem;
    color: var(--ink, #2C3539);
    font-size: 1.35rem;
}

.draft-auth-panel p {
    margin: 0;
    color: var(--ink-muted, #5C6C75);
    line-height: 1.55;
}

.draft-auth-panel label {
    color: var(--ink, #2C3539);
    font-size: 0.85rem;
    font-weight: 700;
}

.draft-auth-panel input {
    min-height: 2.85rem;
    border: 1px solid var(--border-medium, rgba(44, 53, 57, 0.14));
    border-radius: var(--radius-sm, 10px);
    background: var(--surface, #ffffff);
    color: var(--ink, #2C3539);
    padding: 0.65rem 0.85rem;
    font: 500 1rem/1.3 'Nunito', sans-serif;
    transition: var(--transition, all 0.22s ease);
}

.draft-auth-panel input:focus-visible {
    outline: 3px solid var(--secondary, #CC6B52);
    outline-offset: 2px;
}

.draft-auth-panel .pathway-submit {
    justify-self: start;
    margin-top: 0.35rem;
}

.draft-auth-status {
    min-height: 1.5rem;
    color: var(--accent, #769784);
    font-size: 0.9rem;
}

.draft-session-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.draft-session-header p {
    margin: 0;
    color: var(--ink-muted, #5C6C75);
}

.featured-heading p,
.drafts-heading p {
    margin-bottom: 0;
    color: var(--ink-muted, #5C6C75);
}

.featured-profile-summary {
    margin-bottom: 1.5rem;
    color: var(--ink-muted, #5C6C75);
    font-size: 0.9rem;
}

.featured-article-grid,
.draft-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.featured-article-card,
.draft-card,
.article-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border-subtle, rgba(44, 53, 57, 0.08));
    border-radius: 20px;
    background: var(--surface, #ffffff);
    color: inherit;
    text-decoration: none;
    box-shadow: 0 4px 20px -2px rgba(36, 48, 54, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}

.featured-article-card:hover,
.featured-article-card:focus-visible,
.article-card:hover,
.article-card:focus-visible {
    transform: translateY(-6px);
    box-shadow: 0 20px 42px -8px rgba(36, 48, 54, 0.12);
    border-color: rgba(74, 107, 124, 0.28);
}

.featured-article-card:focus-visible,
.profile-dialog-close:focus-visible,
.theme-purpose-link:focus-visible,
.category-stage-tab:focus-visible,
.drafts-filter:focus-visible {
    outline: 3px solid #d57a66;
    outline-offset: 3px;
}

.featured-article-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #e8eee9;
}

.featured-article-image,
.category-article-image {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 10;
    background: #dce5df;
    object-fit: cover;
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.featured-article-card:hover .featured-article-image {
    transform: scale(1.05);
}

.featured-article-image.image-unavailable {
    visibility: hidden;
}

.featured-article-content {
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    padding: 1.35rem 1.4rem 1.4rem;
}

.featured-article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
    color: #547767;
    font-size: 0.8rem;
    font-weight: 700;
}

.featured-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.24rem 0.68rem;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--category-tint, #edf2ee);
    color: var(--category-accent, #4A6B7C);
    border: 1px solid color-mix(in srgb, var(--category-accent, #4A6B7C) 28%, transparent);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.featured-status {
    flex: 0 0 auto;
    border: 1px solid #d9e2dc;
    border-radius: 999px;
    color: #64748b;
    background: rgba(0, 0, 0, 0.02);
    padding: 0.18rem 0.55rem;
    font-size: 0.7rem;
    font-weight: 600;
}

.featured-article-content h3,
.draft-card h2 {
    margin-bottom: 0.65rem;
    color: var(--ink, #2C3539);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.featured-article-card:hover h3 {
    color: var(--primary, #4A6B7C);
}

.featured-article-content > p {
    margin-bottom: 1.15rem;
    color: var(--ink-muted, #5C6C75);
    font-size: 0.88rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-card-footer {
    margin-top: auto;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(44, 53, 57, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.featured-read-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--primary, #4A6B7C);
    transition: gap 0.2s ease, color 0.2s ease;
}

.featured-article-card:hover .featured-read-link {
    color: var(--secondary, #A7442E);
    gap: 0.65rem;
}

.featured-trend-muted {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink-faint, #788a96);
}

/* Premium Cards Modern Styling */
.premium-card {
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid rgba(44, 53, 57, 0.08);
    box-shadow: 0 4px 20px -2px rgba(36, 48, 54, 0.05);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}

.premium-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 46px -10px rgba(167, 68, 46, 0.14);
    border-color: rgba(167, 68, 46, 0.25);
}

.premium-card-media {
    position: relative;
    height: 165px;
    overflow: hidden;
    background: #2a333c;
}

.premium-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-card:hover .premium-card-image {
    transform: scale(1.05);
}

.premium-card-media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 27, 33, 0.15) 0%, rgba(20, 27, 33, 0.6) 100%);
    pointer-events: none;
}

.premium-card-category-pill {
    position: absolute;
    bottom: 0.85rem;
    left: 1rem;
    z-index: 2;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #ffffff;
    background: rgba(20, 27, 33, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.25rem 0.7rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.premium-card .premium-badge {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 2;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #A7442E;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.28rem 0.72rem;
    border-radius: 9999px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid rgba(167, 68, 46, 0.25);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.premium-card-title {
    color: var(--ink, #2C3539);
    transition: color 0.2s ease;
}

.premium-card:hover .premium-card-title {
    color: var(--secondary, #A7442E);
}

.premium-features-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.premium-features-list li {
    line-height: 1.45;
}

.premium-unlock-action {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.premium-unlock-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -2px rgba(167, 68, 46, 0.35);
}

.featured-empty-state {
    grid-column: 1 / -1;
    border: 1px solid var(--border-medium, rgba(44, 53, 57, 0.14));
    border-radius: var(--radius-md, 16px);
    background: var(--surface, #ffffff);
    color: var(--ink-muted, #5C6C75);
    padding: 1.5rem 1.75rem;
    box-shadow: var(--shadow-soft, 0 4px 20px -2px rgba(36, 48, 54, 0.05));
}

.featured-hero {
    position: relative;
    display: block;
    width: 100%;
    height: clamp(14rem, 19vw, 18.75rem);
    min-height: clamp(13rem, 19vw, 18.75rem);
    overflow: hidden;
    border: 1px solid var(--border-subtle, rgba(44, 53, 57, 0.08));
    border-radius: var(--radius-lg, 24px);
    box-shadow: var(--shadow-soft, 0 4px 20px -2px rgba(36, 48, 54, 0.05));
    background: var(--surface, #ffffff);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.95fr) minmax(0, 1fr);
    overflow: hidden;
    background: linear-gradient(135deg, rgba(118, 151, 132, 0.12) 0%, rgba(250, 248, 245, 0.95) 55%, rgba(204, 107, 82, 0.08) 100%);
    box-sizing: border-box;
}

.carousel-controls {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none;
}

.carousel-controls[hidden] {
    display: none !important;
}

.carousel-indicators {
    pointer-events: auto;
    position: absolute;
    bottom: 0.85rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(44, 53, 57, 0.1);
    border-radius: 9999px;
    padding: 0.35rem 0.65rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    z-index: 6;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    border: none;
    background: rgba(44, 53, 57, 0.25);
    padding: 0;
    cursor: pointer;
    transition: all 0.25s ease;
}

.carousel-dot:hover,
.carousel-dot:focus-visible {
    background: var(--primary, #4A6B7C);
    transform: scale(1.2);
    outline: none;
}

.carousel-dot.is-active {
    width: 22px;
    background: var(--primary, #4A6B7C);
    border-radius: 9999px;
}

.carousel-nav-btn {
    pointer-events: auto;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 9999px;
    border: 1px solid rgba(44, 53, 57, 0.14);
    background: rgba(255, 255, 255, 0.95);
    color: var(--ink, #2C3539);
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, color 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
    padding: 0;
    z-index: 5;
}

.carousel-nav-btn:hover,
.carousel-nav-btn:focus-visible {
    background: #ffffff;
    color: var(--primary, #4A6B7C);
    border-color: var(--primary, #4A6B7C);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.carousel-prev {
    left: 1.15rem;
    right: auto;
}

.carousel-next {
    right: 1.15rem;
}

@media (prefers-reduced-motion: reduce) {
    .carousel-track {
        transition: none !important;
    }
}

.featured-hero-copy {
    z-index: 1;
    display: flex;
    min-height: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(1rem, 2vw, 1.75rem) clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2vw, 1.75rem) clamp(3.75rem, 5.5vw, 5rem);
}

.featured-hero-copy > .pathway-eyebrow {
    display: none;
}

.featured-hero-kicker {
    margin-bottom: 0.85rem;
    color: var(--category-accent, var(--primary, #4A6B7C));
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.featured-hero-copy h2 {
    max-width: 100%;
    margin-bottom: 0.75rem;
    color: var(--ink, #2C3539);
    font-size: clamp(1.45rem, 2.1vw, 1.85rem);
    line-height: 1.2;
}

.featured-hero-objective {
    max-width: 100%;
    margin-bottom: 1.15rem;
    color: var(--ink-muted, #5C6C75);
    font-size: 0.92rem;
    line-height: 1.5;
}

.featured-hero-link {
    display: inline-flex;
    min-height: 2.85rem;
    align-items: center;
    gap: 0.75rem;
    border-radius: var(--radius-full, 9999px);
    background: var(--category-accent, var(--primary, #4A6B7C));
    color: #fff;
    padding: 0.65rem 1.35rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: var(--transition, all 0.22s ease);
}

.featured-hero-link:hover {
    filter: brightness(0.95);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
}

.featured-hero-link:focus-visible,
.catalog-category-link:focus-visible {
    outline: 3px solid #d57a66;
    outline-offset: 3px;
}

.featured-hero-image-wrap {
    position: relative;
    height: 100%;
    min-width: 0;
    min-height: 0;
    background: #dce5df;
    overflow: hidden;
}

.featured-hero-image-wrap::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(45, 59, 52, 0.18), transparent 30%);
    content: "";
    pointer-events: none;
    z-index: 2;
}

.featured-hero-image-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.featured-hero:hover .featured-hero-image-wrap img {
    transform: scale(1.05);
}

.whats-new-section {
    border-block: 1px solid var(--border-subtle, rgba(44, 53, 57, 0.08));
    background: linear-gradient(180deg, rgba(118, 151, 132, 0.08) 0%, var(--light, #FAF8F5) 100%);
    padding-block: 4.5rem 5.5rem;
}

.whats-new-inner {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
}

.whats-new-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.whats-new-badge {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(118, 151, 132, 0.28);
    border-radius: var(--radius-full, 9999px);
    background: rgba(118, 151, 132, 0.12);
    color: var(--accent, #769784);
    padding: 0.35rem 0.95rem;
    font: 700 0.72rem/1 'Nunito', sans-serif;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.whats-new-heading {
    margin: 0 0 0.6rem;
    color: var(--ink, #2C3539);
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1.2;
    font-family: 'Playfair Display', serif;
}

.whats-new-subtitle {
    max-width: 44rem;
    margin: 0;
    color: var(--ink-muted, #5C6C75);
    font-size: 1.05rem;
    line-height: 1.55;
}

.whats-new-empty-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2.25rem 2rem;
    border: 1.5px dashed var(--border-medium, rgba(44, 53, 57, 0.14));
    border-radius: var(--radius-md, 16px);
    background: var(--surface, #ffffff);
    box-shadow: var(--shadow-xs);
}

.whats-new-empty-icon {
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius-full, 9999px);
    background: rgba(118, 151, 132, 0.14);
    color: var(--accent, #769784);
    flex-shrink: 0;
}

.whats-new-empty-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink, #2C3539);
    margin: 0 0 0.25rem;
}

.whats-new-empty-card p {
    font-size: 0.92rem;
    color: var(--ink-muted, #5C6C75);
    margin: 0;
    line-height: 1.5;
}

.whats-new-resource-grid {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
    align-items: stretch;
    gap: 1.75rem;
}

.whats-new-resource-grid[hidden] {
    display: none;
}

.whats-new-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border-subtle, rgba(44, 53, 57, 0.08));
    border-radius: var(--radius-md, 16px);
    background: var(--surface, #ffffff);
    box-shadow: var(--shadow-soft, 0 4px 20px -2px rgba(36, 48, 54, 0.05));
    transition: var(--transition, all 0.22s ease);
}

.whats-new-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover, 0 16px 36px -6px rgba(36, 48, 54, 0.09));
    border-color: rgba(74, 107, 124, 0.25);
}

.whats-new-card-media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e8eee9;
}

.whats-new-card-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.whats-new-card:hover .whats-new-card-image {
    transform: scale(1.03);
}

.whats-new-card-tag {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    border-radius: var(--radius-full, 9999px);
    background: rgba(255, 255, 255, 0.94);
    color: var(--accent, #769784);
    padding: 0.25rem 0.65rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(4px);
}

.whats-new-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.35rem;
}

.whats-new-card-label {
    margin: 0 0 0.4rem;
    color: var(--primary, #4A6B7C);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.whats-new-card h3 {
    margin: 0 0 0.5rem;
    color: var(--ink, #2C3539);
    font-size: 1.25rem;
    line-height: 1.35;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.whats-new-card-message {
    margin: 0 0 0.9rem;
    color: var(--ink-muted, #5C6C75);
    font-size: 0.92rem;
    line-height: 1.55;
}

.whats-new-card-points {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
}

.whats-new-card-points li {
    position: relative;
    padding-inline-start: 1.25rem;
    color: var(--ink, #2C3539);
    font-size: 0.86rem;
    line-height: 1.45;
}

.whats-new-card-points li::before {
    content: "•";
    position: absolute;
    left: 0.25rem;
    color: var(--secondary, #CC6B52);
    font-size: 1.15rem;
    line-height: 1;
    font-weight: bold;
}

.whats-new-download-button {
    display: inline-flex;
    width: 100%;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: auto;
    border: 0;
    border-radius: var(--radius-full, 9999px);
    background: var(--primary, #4A6B7C);
    color: #fff;
    padding: 0.6rem 1.2rem;
    font: 700 0.88rem/1.2 'Nunito', sans-serif;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: var(--transition, all 0.22s ease);
}

.whats-new-download-button:hover {
    background: var(--primary-hover, #385564);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
}

.whats-new-download-button:active {
    transform: translateY(0);
}

.whats-new-download-button:disabled {
    opacity: 0.65;
    cursor: wait;
}

.whats-new-download-button svg {
    width: 1.05rem;
    height: 1.05rem;
}

html[data-theme="dark"] .whats-new-section {
    border-color: #34414b;
    background: linear-gradient(180deg, #18232c 0%, #151e26 100%);
}

html[data-theme="dark"] .whats-new-badge {
    border-color: #465a4e;
    background: #233329;
    color: #b7ddc4;
}

html[data-theme="dark"] .whats-new-heading {
    color: #e6edf2;
}

html[data-theme="dark"] .whats-new-subtitle {
    color: #a4b3bf;
}

html[data-theme="dark"] .whats-new-empty-card {
    border-color: #3c4954;
    background: #1e2832;
}

html[data-theme="dark"] .whats-new-empty-icon {
    background: #28393e;
    color: #93c5b8;
}

html[data-theme="dark"] .whats-new-empty-card h3 {
    color: #e1e7ed;
}

html[data-theme="dark"] .whats-new-empty-card p {
    color: #9cb0bd;
}

html[data-theme="dark"] .whats-new-card {
    border-color: #3c4954;
    background: #202b35;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] .whats-new-card:hover {
    border-color: #566c7d;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .whats-new-card-media {
    background: #293642;
}

html[data-theme="dark"] .whats-new-card-tag {
    background: rgba(29, 39, 49, 0.94);
    color: #a6d8be;
}

html[data-theme="dark"] .whats-new-card h3 {
    color: #e6edf2;
}

html[data-theme="dark"] .whats-new-card-label {
    color: #8da8b8;
}

html[data-theme="dark"] .whats-new-card-message {
    color: #b0bfc9;
}

html[data-theme="dark"] .whats-new-card-points li {
    color: #c1ced6;
}

html[data-theme="dark"] .whats-new-download-button {
    background: #446f5b;
}

html[data-theme="dark"] .whats-new-download-button:hover {
    background: #375b4b;
}

@media (max-width: 640px) {
    .whats-new-section {
        padding-block: 3rem;
    }
    .whats-new-resource-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.25rem;
    }
    .whats-new-card-body {
        padding: 1.15rem;
    }
    .whats-new-empty-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.5rem;
    }
}

.theme-footer-section {
    position: relative;
    background: #edf2ee;
    padding-block: 3.5rem 4rem;
}

.theme-footer-heading {
    margin-bottom: 1.5rem;
}

.theme-footer-heading p {
    max-width: 45rem;
    margin-bottom: 0;
    color: #58666d;
}

.theme-purpose-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.theme-purpose-link {
    position: relative;
    display: inline-flex;
    min-height: 2.65rem;
    align-items: center;
    gap: 0.55rem;
    border: 1px solid color-mix(in srgb, var(--category-accent, #547767) 32%, transparent);
    border-radius: 999px;
    background: var(--category-tint, #edf2ee);
    color: var(--category-accent, #354b41);
    padding: 0.5rem 0.95rem;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.theme-purpose-link:hover,
.theme-purpose-link:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px -2px rgba(44, 53, 57, 0.12);
    border-color: var(--category-accent, #789282);
    background: #ffffff;
}

.theme-purpose-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
    flex-shrink: 0;
    opacity: 0.85;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.theme-purpose-link:hover .theme-purpose-icon-wrap {
    opacity: 1;
    transform: scale(1.1);
}

.theme-purpose-tooltip {
    position: absolute;
    z-index: 30;
    bottom: calc(100% + 0.7rem);
    left: 50%;
    width: min(22rem, calc(100vw - 2rem));
    border: 1px solid #d7dfd9;
    border-radius: 0.35rem;
    background: #fff;
    color: #3f4b54;
    padding: 0.9rem 1rem;
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.55;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 0.4rem);
    transition: opacity 180ms ease, transform 180ms ease;
    visibility: hidden;
    box-shadow: 0 10px 26px rgba(27, 40, 46, 0.16);
}

.theme-purpose-link:hover .theme-purpose-tooltip,
.theme-purpose-link:focus-visible .theme-purpose-tooltip {
    opacity: 1;
    transform: translate(-50%, 0);
    visibility: visible;
}

.theme-purpose-link:nth-last-child(-n + 2) .theme-purpose-tooltip {
    right: 0;
    left: auto;
    transform: translate(0, 0.4rem);
}

.theme-purpose-link:nth-last-child(-n + 2):hover .theme-purpose-tooltip,
.theme-purpose-link:nth-last-child(-n + 2):focus-visible .theme-purpose-tooltip {
    transform: translate(0, 0);
}

.category-hero {
    background: linear-gradient(120deg, var(--category-tint, #edf2ee) 0%, #f8f8f5 72%, #fcfcfd 100%);
    padding-block: 2.75rem 2.25rem;
}

.category-page-inner {
    width: min(100% - 2rem, 76rem);
    margin-inline: auto;
}

.category-back-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: var(--category-accent, #547767);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

.category-hero-layout {
    display: grid;
    height: 24rem;
    min-height: 24rem;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: stretch;
}

.category-hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-block: 2.5rem;
    padding-inline-end: clamp(1.5rem, 4vw, 4rem);
}

.category-hero h1 {
    max-width: 48rem;
    margin-bottom: 0.75rem;
    color: #35434c;
    font-size: clamp(1.75rem, 2.6vw, 2.35rem);
    line-height: 1.15;
}

.category-hero h1::after {
    display: block;
    width: 3.25rem;
    height: 0.2rem;
    margin-top: 0.8rem;
    border-radius: 999px;
    background: var(--category-accent, #547767);
    content: "";
}

.category-hero-visual {
    height: 100%;
    min-width: 0;
    min-height: 0;
    background: #dce5df;
}

.category-hero-visual img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
}

.category-hero-copy > p:last-child {
    max-width: 42rem;
    margin-bottom: 0;
    color: #58666d;
    font-size: 1.05rem;
}

.category-content {
    padding-block: 2.5rem 5rem;
}

.category-sticky-banner {
    position: sticky;
    z-index: 40;
    top: 4.25rem;
    display: grid;
    grid-template-columns: auto auto minmax(12rem, 1fr) auto auto;
    align-items: center;
    gap: 0.75rem;
    min-height: 4.5rem;
    border-top: 3px solid var(--category-accent, #dbe2dd);
    border-bottom: 1px solid #dbe2dd;
    background: rgba(252, 252, 253, 0.97);
    padding: 0.65rem max(1rem, calc((100vw - 76rem) / 2));
    box-shadow: 0 5px 16px rgba(27, 40, 46, 0.08);
    backdrop-filter: blur(10px);
}

.category-sticky-name {
    color: var(--category-accent, #35434c);
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    white-space: nowrap;
}

.category-profile-sticky {
    border: 1px solid var(--category-accent, #d5ded8);
    border-radius: 999px;
    background: var(--category-tint, #edf2ee);
    color: var(--category-accent, #355b48);
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.category-article-carousel {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.65rem;
    overflow-x: auto;
    scrollbar-width: thin;
}

.category-carousel-empty {
    margin: 0;
    color: #637179;
    font-size: 0.8rem;
    white-space: nowrap;
}

.category-carousel-card {
    display: grid;
    min-width: 12.5rem;
    max-width: 17.5rem;
    grid-template-columns: 3.25rem minmax(0, 1fr);
    align-items: center;
    gap: 0.6rem;
    border-radius: 8px;
    color: var(--ink, #35434c);
    padding: 0.35rem 0.5rem;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background-color 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.category-carousel-card:hover,
.category-carousel-card:focus-visible {
    background: var(--category-tint, #edf2ee);
    border-color: rgba(74, 107, 124, 0.18);
    transform: translateY(-1px);
}

.category-carousel-card img {
    width: 3.25rem;
    aspect-ratio: 1;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.category-carousel-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    gap: 0.2rem;
}

.category-carousel-title,
.category-carousel-card span {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.25;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: var(--ink, #2C3539);
}

.category-carousel-date {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--category-accent, var(--primary, #4A6B7C));
    opacity: 0.95;
    line-height: 1.15;
    white-space: nowrap;
}

.save-selection-button,
.category-library-link {
    display: inline-flex;
    min-height: 2.45rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--category-accent, var(--border-medium, rgba(44, 53, 57, 0.14)));
    border-radius: var(--radius-full, 9999px);
    background: var(--surface, #fff);
    color: var(--category-accent, var(--primary, #4A6B7C));
    padding: 0.45rem 0.95rem;
    font: 700 0.78rem/1.2 'Nunito', sans-serif;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: var(--shadow-xs);
    transition: var(--transition, all 0.22s ease);
}

.save-selection-button:hover,
.category-library-link:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
}

.save-selection-button[aria-pressed="true"] {
    border-color: var(--category-accent, var(--primary, #4A6B7C));
    background: var(--category-accent, var(--primary, #4A6B7C));
    color: #fff;
}

.selection-saved-notice {
    position: absolute;
    top: calc(100% + 0.25rem);
    right: max(1rem, calc((100vw - 76rem) / 2));
    color: var(--category-accent, #547767);
    font-size: 0.75rem;
}

.save-selection-button:focus-visible,
.category-library-link:focus-visible,
.category-carousel-card:focus-visible {
    outline: 3px solid var(--secondary, #A7442E);
    outline-offset: 2px;
}

.category-filter-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border-subtle, rgba(44, 53, 57, 0.08));
    padding-bottom: 0.25rem;
}

.category-stage-tabs {
    display: flex;
    min-width: 0;
    gap: 0.35rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
}

.category-stage-tab {
    min-height: 2.85rem;
    flex: 0 0 auto;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: var(--ink-muted, #5C6C75);
    padding: 0.6rem 0.95rem;
    font: 600 0.92rem/1.25 'Nunito', sans-serif;
    cursor: pointer;
    transition: var(--transition, all 0.22s ease);
}

.category-stage-tab:hover {
    color: var(--category-accent, var(--primary, #4A6B7C));
}

.category-stage-tab[aria-selected="true"] {
    border-bottom-color: var(--category-accent, var(--primary, #4A6B7C));
    color: var(--category-accent, var(--primary, #4A6B7C));
    font-weight: 700;
}

.category-family-field {
    display: grid;
    min-width: 14rem;
    gap: 0.35rem;
    padding-bottom: 0.55rem;
    color: var(--ink-muted, #5C6C75);
    font-size: 0.8rem;
    font-weight: 700;
}

.category-family-field select {
    min-height: 2.65rem;
    border: 1px solid var(--border-medium, rgba(44, 53, 57, 0.14));
    border-radius: var(--radius-sm, 10px);
    background: var(--surface, #fff);
    color: var(--ink, #2C3539);
    padding: 0.45rem 0.75rem;
    font: 500 0.9rem/1.3 'Nunito', sans-serif;
    transition: var(--transition, all 0.22s ease);
}

.category-stage-tab:focus-visible,
.category-family-field select:focus-visible {
    outline: 3px solid var(--secondary, #A7442E);
    outline-offset: 2px;
}

.category-profile-summary {
    margin-block: 1rem 1.5rem;
    color: var(--ink-muted, #5C6C75);
    font-size: 0.88rem;
}

.category-article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.category-article-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border-subtle, rgba(44, 53, 57, 0.08));
    border-radius: var(--radius-md, 16px);
    background: var(--surface, #ffffff);
    color: inherit;
    text-decoration: none;
    box-shadow: var(--shadow-soft, 0 4px 20px -2px rgba(36, 48, 54, 0.05));
    transition: var(--transition, all 0.22s ease);
}

.category-article-card:hover,
.category-article-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover, 0 16px 36px -6px rgba(36, 48, 54, 0.09));
    border-color: rgba(74, 107, 124, 0.25);
}

.category-article-card:focus-visible {
    outline: 3px solid var(--secondary, #A7442E);
    outline-offset: 3px;
}

.category-article-content {
    padding: 1.35rem;
}

.category-article-topic {
    margin-bottom: 0.6rem;
    color: var(--category-accent, var(--primary, #4A6B7C));
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.category-article-content h2 {
    margin-bottom: 0.65rem;
    color: var(--ink, #2C3539);
    font-size: 1.3rem;
    line-height: 1.35;
    font-family: 'Playfair Display', serif;
}

.category-article-content p:last-child {
    margin-bottom: 0;
    color: var(--ink-muted, #5C6C75);
    line-height: 1.6;
}

.category-empty {
    display: grid;
    min-height: 18rem;
    justify-items: center;
    align-content: center;
    border: 1px solid var(--border-medium, rgba(44, 53, 57, 0.14));
    border-radius: var(--radius-md, 16px);
    background: var(--surface, #ffffff);
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-soft, 0 4px 20px -2px rgba(36, 48, 54, 0.05));
}

.category-empty[hidden] {
    display: none;
}

.category-empty-logo {
    display: block;
    width: 4rem;
    aspect-ratio: 1;
    margin-bottom: 1rem;
    object-fit: contain;
}

.category-empty h2 {
    margin-bottom: 0.55rem;
    color: #35434c;
    font-size: 1.5rem;
}

.category-empty p {
    max-width: 35rem;
    margin: 0;
    color: #637179;
    line-height: 1.65;
}

.catalog-category-link {
    display: inline-flex;
    min-height: 2.85rem;
    align-items: center;
    gap: 0.65rem;
    border-radius: var(--radius-full, 9999px);
    background: var(--category-accent, var(--primary, #4A6B7C));
    color: #fff;
    padding: 0.65rem 1.25rem;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: var(--transition, all 0.22s ease);
}

/* High-contrast footer for catalog and content pages */
.catalog-footer {
    background-color: #F5F2EB !important;
    border-top: 1px solid rgba(44, 53, 57, 0.14) !important;
    color: #162025 !important;
}

.catalog-footer h2,
.catalog-footer h3,
.catalog-footer h4,
.catalog-footer .brand-logo {
    color: #141C21 !important;
    font-weight: 700 !important;
}

.catalog-footer p,
.catalog-footer li,
.catalog-footer span,
.catalog-footer a {
    color: #243037 !important;
    opacity: 1 !important;
}

.catalog-footer a:hover,
.catalog-footer a:focus-visible {
    color: #A7442E !important;
    text-decoration: underline !important;
}

.catalog-footer .border-t,
.catalog-footer [class*="border-t"] {
    border-color: rgba(44, 53, 57, 0.14) !important;
}

.catalog-footer .opacity-80,
.catalog-footer .opacity-90 {
    opacity: 1 !important;
}

html[data-theme="dark"] .catalog-footer {
    background-color: #0E151B !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #F8FAFC !important;
}

html[data-theme="dark"] .catalog-footer h2,
html[data-theme="dark"] .catalog-footer h3,
html[data-theme="dark"] .catalog-footer h4,
html[data-theme="dark"] .catalog-footer .brand-logo {
    color: #FFFFFF !important;
    font-weight: 700 !important;
}

html[data-theme="dark"] .catalog-footer p,
html[data-theme="dark"] .catalog-footer li,
html[data-theme="dark"] .catalog-footer span,
html[data-theme="dark"] .catalog-footer a {
    color: #E2E8F0 !important;
    opacity: 1 !important;
}

html[data-theme="dark"] .catalog-footer a:hover,
html[data-theme="dark"] .catalog-footer a:focus-visible {
    color: #F8A896 !important;
    text-decoration: underline !important;
}

html[data-theme="dark"] .catalog-footer .border-t,
html[data-theme="dark"] .catalog-footer [class*="border-t"] {
    border-color: rgba(255, 255, 255, 0.14) !important;
}

html[data-theme="dark"] .catalog-footer .opacity-80,
html[data-theme="dark"] .catalog-footer .opacity-90 {
    opacity: 1 !important;
}

.catalog-category-link::after {
    content: "->";
    transition: transform 160ms ease;
}

.catalog-category-link:hover {
    filter: brightness(0.9);
    transform: translateY(-2px);
}

.catalog-category-link:hover::after {
    transform: translateX(3px);
}

.catalog-topic-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    align-items: stretch;
}

.category-card.article-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border-subtle, rgba(44, 53, 57, 0.08));
    border-radius: var(--radius-md, 16px);
    background: var(--surface, #fff);
    box-shadow: var(--shadow-soft, 0 4px 20px -2px rgba(36, 48, 54, 0.05));
    transition: var(--transition, all 0.22s ease);
}

.category-card.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover, 0 16px 36px -6px rgba(36, 48, 54, 0.09));
    border-color: var(--category-accent, var(--primary, #4A6B7C));
}

.category-card-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #dce5df;
    object-fit: cover;
}

.category-card-content {
    display: flex;
    height: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.4rem;
}

.category-card-content h2 {
    margin-bottom: 0.7rem;
    color: var(--category-accent, #35434c);
    font-size: 1.45rem;
    line-height: 1.3;
}

.category-card-content .pathway-empty-message {
    flex: 1 0 auto;
    margin-bottom: 1.25rem;
    color: #637179;
    line-height: 1.65;
}

.category-card.article-card:hover {
    border-top-color: var(--category-accent, #547767);
}

html[data-theme="dark"] .category-card.article-card {
    border-color: #3c4954;
    background: #202a34;
}

html[data-theme="dark"] .category-card-content h2 {
    color: #e1e7ed;
}

html[data-theme="dark"] .category-card-content .pathway-empty-message {
    color: #bac5cf;
}

.upcoming-page {
    min-height: 65vh;
    background: var(--light, #FAF8F5);
    padding-block: 4.5rem 5.5rem;
}

.library-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
    gap: 1.5rem;
}

.library-selection-card {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(7rem, 0.7fr) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--border-subtle, rgba(44, 53, 57, 0.08));
    border-radius: var(--radius-md, 16px);
    background: var(--surface, #ffffff);
    box-shadow: var(--shadow-soft, 0 4px 20px -2px rgba(36, 48, 54, 0.05));
    transition: var(--transition, all 0.22s ease);
}

.library-selection-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover, 0 16px 36px -6px rgba(36, 48, 54, 0.09));
    border-color: rgba(74, 107, 124, 0.25);
}

.library-selection-card > img {
    width: 100%;
    height: 100%;
    min-height: 10rem;
    object-fit: cover;
}

.library-selection-details {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 1.25rem;
}

.library-selection-details h2 {
    margin-bottom: 0.35rem;
    color: var(--ink, #2C3539);
    font-size: 1.25rem;
    font-family: 'Playfair Display', serif;
}

.library-selection-details p {
    margin-bottom: 1rem;
    color: var(--ink-muted, #5C6C75);
    font-size: 0.88rem;
}

.library-selection-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
}

.library-remove-button {
    min-height: 2.35rem;
    border: 1px solid var(--border-medium, rgba(44, 53, 57, 0.14));
    border-radius: var(--radius-full, 9999px);
    background: transparent;
    color: var(--ink-muted, #5C6C75);
    padding: 0.45rem 0.85rem;
    font: 600 0.75rem/1.2 'Nunito', sans-serif;
    cursor: pointer;
    transition: var(--transition, all 0.22s ease);
}

.library-remove-button:hover {
    border-color: var(--secondary, #CC6B52);
    color: var(--secondary, #CC6B52);
    background: rgba(204, 107, 82, 0.06);
}

.library-remove-button:focus-visible {
    outline: 3px solid var(--secondary, #CC6B52);
    outline-offset: 2px;
}

html[data-theme="dark"] .library-selection-card {
    border-color: #3c4954;
    background: #202a34;
}

html[data-theme="dark"] .library-selection-details h2,
html[data-theme="dark"] .library-remove-button {
    color: #e1e7ed;
}

html[data-theme="dark"] .library-selection-details p {
    color: #bac5cf;
}

html[data-theme="dark"] .library-remove-button {
    border-color: #46535e;
}

.drafts-heading {
    max-width: 48rem;
    margin-bottom: 2rem;
}

.drafts-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.drafts-filter {
    min-height: 2.5rem;
    border: 1px solid var(--border-medium, rgba(44, 53, 57, 0.14));
    border-radius: var(--radius-full, 9999px);
    background: var(--surface, #fff);
    color: var(--ink, #2C3539);
    padding: 0.45rem 1rem;
    font: 600 0.85rem/1.2 'Nunito', sans-serif;
    cursor: pointer;
    box-shadow: var(--shadow-xs);
    transition: var(--transition, all 0.22s ease);
}

.drafts-filter:hover {
    border-color: var(--primary, #4A6B7C);
    color: var(--primary, #4A6B7C);
}

.drafts-filter[aria-pressed="true"] {
    border-color: var(--primary, #4A6B7C);
    background: var(--primary, #4A6B7C);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.draft-card {
    padding: 1.35rem;
}

.draft-card-topline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #547767;
    font-size: 0.8rem;
    font-weight: 700;
}

.draft-card-status {
    border-radius: 999px;
    background: #edf2ee;
    color: #466657;
    padding: 0.25rem 0.6rem;
}

.draft-card-objective {
    margin-bottom: 1rem;
    color: #58666d;
    line-height: 1.65;
}

.draft-card-trend {
    border-top: 1px solid #e2e6e3;
    padding-top: 0.85rem;
    color: #728078;
.draft-full-text {
    width: 100%;
    margin-top: 1.1rem;
    border-top: 1px solid #e2e6e3;
    padding-top: 0.9rem;
}

.draft-full-text summary {
    color: #547767;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

.draft-full-text > p,
.draft-full-text li {
    color: #58666d;
    font-size: 0.9rem;
    line-height: 1.65;
}

.draft-full-text h3 {
    margin-block: 1.25rem 0.4rem;
    color: #35434c;
    font-size: 1rem;
    font-weight: 700;
}

.draft-full-text ul {
    margin-block: 0.5rem 1rem;
    padding-inline-start: 1.25rem;
    list-style: disc;
}

.draft-full-text a {
    color: #466f5b;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.draft-editorial-note {
    border: 1px solid rgba(181, 82, 57, 0.2);
    border-radius: var(--radius-sm, 10px);
    background: rgba(181, 82, 57, 0.05);
    padding: 0.85rem 1.15rem;
    font-size: 0.85rem;
}

.drafts-empty {
    border: 1px solid var(--border-medium, rgba(44, 53, 57, 0.14));
    border-radius: var(--radius-md, 16px);
    background: var(--surface, #fff);
    color: var(--ink-muted, #5C6C75);
    padding: 1.75rem 2rem;
    box-shadow: var(--shadow-soft, 0 4px 20px -2px rgba(36, 48, 54, 0.05));
}

.drafts-empty[hidden] {
    display: none;
}

.drafts-empty h2 {
    margin-bottom: 0.5rem;
    color: var(--ink, #2C3539);
    font-size: 1.4rem;
}

html[data-theme="dark"] .draft-full-text {
    border-color: #3c4954;
}

html[data-theme="dark"] .draft-full-text h3 {
    color: #e1e7ed;
}

html[data-theme="dark"] .draft-full-text > p,
html[data-theme="dark"] .draft-full-text li {
    color: #bac5cf;
}

html[data-theme="dark"] .draft-editorial-note {
    background: #292321;
}
    margin-bottom: 0.5rem;
    color: #35434c;
    font-size: 1.25rem;
}

.drafts-empty p {
    margin: 0;
}

html[data-theme="dark"] .profile-dialog {
    background: #1b242c;
    border-color: rgba(255, 255, 255, 0.12);
    color: #e1e7ed;
    box-shadow: 0 24px 64px -12px rgba(0, 0, 0, 0.65);
}

html[data-theme="dark"] .profile-dialog-header {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .profile-dialog-badge {
    background: rgba(118, 151, 132, 0.15);
    border-color: rgba(118, 151, 132, 0.3);
    color: #9BB8A7;
}

html[data-theme="dark"] .profile-section-label .step-num {
    background: var(--accent, #769784);
}

html[data-theme="dark"] .profile-section-label .section-title,
html[data-theme="dark"] .profile-option-title {
    color: #f0f4f8;
}

html[data-theme="dark"] .profile-section-label .section-hint,
html[data-theme="dark"] .profile-option-desc,
html[data-theme="dark"] .profile-btn-cancel {
    color: #9cb0be;
}

html[data-theme="dark"] .profile-dialog-close {
    border-color: rgba(255, 255, 255, 0.15);
    color: #9cb0be;
}

html[data-theme="dark"] .profile-dialog-close:hover {
    background: #25313d;
    color: #f0f4f8;
}

html[data-theme="dark"] .profile-option-tile {
    background: #202b35;
    border-color: rgba(255, 255, 255, 0.1);
    color: #f0f4f8;
}

html[data-theme="dark"] .profile-option-tile:hover {
    border-color: #769784;
    background: #253340;
}

html[data-theme="dark"] .profile-option-tile.is-selected {
    border-color: #769784;
    background: rgba(118, 151, 132, 0.16);
    box-shadow: 0 0 0 1px #769784;
}

html[data-theme="dark"] .profile-option-icon {
    background: rgba(118, 151, 132, 0.15);
    color: #9BB8A7;
}

html[data-theme="dark"] .profile-option-tile.is-selected .profile-option-icon {
    background: #769784;
    color: #ffffff;
}

html[data-theme="dark"] .profile-option-check {
    background: #769784;
}

html[data-theme="dark"] .profile-summary-bar {
    background: rgba(118, 151, 132, 0.12);
    border-color: rgba(118, 151, 132, 0.25);
    color: #d1e2d8;
}

html[data-theme="dark"] .profile-dialog-actions {
    border-top-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .profile-btn-cancel {
    border-color: rgba(255, 255, 255, 0.15);
}

html[data-theme="dark"] .profile-btn-cancel:hover {
    background: #25313d;
}

html[data-theme="dark"] .profile-btn-submit {
    background: #547767;
}

html[data-theme="dark"] .profile-btn-submit:hover {
    background: #648c79;
}

html[data-theme="dark"] .featured-article-card,
html[data-theme="dark"] .draft-card,
html[data-theme="dark"] .category-article-card,
html[data-theme="dark"] .category-empty,
html[data-theme="dark"] .drafts-empty {
    border-color: #3c4954;
    background: #202a34;
    color: #e1e7ed;
}

html[data-theme="dark"] .profile-dialog-header h2,
html[data-theme="dark"] .featured-heading h2,
html[data-theme="dark"] .theme-footer-heading h2,
html[data-theme="dark"] .drafts-heading h1,
html[data-theme="dark"] .featured-article-content h3,
html[data-theme="dark"] .draft-card h2,
html[data-theme="dark"] .category-hero h1,
html[data-theme="dark"] .category-article-content h2,
html[data-theme="dark"] .category-empty h2,
html[data-theme="dark"] .drafts-empty h2 {
    color: #e1e7ed;
}

html[data-theme="dark"] .featured-article-content > p,
html[data-theme="dark"] .featured-heading p,
html[data-theme="dark"] .drafts-heading p,
html[data-theme="dark"] .draft-card-objective,
html[data-theme="dark"] .category-article-content p:last-child,
html[data-theme="dark"] .category-empty p,
html[data-theme="dark"] .drafts-empty {
    color: #bac5cf;
}

html[data-theme="dark"] .featured-articles-section,
html[data-theme="dark"] .category-content,
html[data-theme="dark"] .upcoming-page {
    background: #1a242d;
}

html[data-theme="dark"] .featured-card-footer {
    border-top-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .featured-read-link {
    color: var(--accent, #769784);
}

html[data-theme="dark"] .featured-article-card:hover .featured-read-link {
    color: #fca58f;
}

html[data-theme="dark"] .featured-trend-muted {
    color: #788a96;
}

html[data-theme="dark"] .premium-section {
    background: #141b22 !important;
}

html[data-theme="dark"] .premium-card {
    background: #1d2731;
    border-color: rgba(255, 255, 255, 0.09);
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .premium-card:hover {
    border-color: rgba(204, 107, 82, 0.4);
    box-shadow: 0 22px 46px -10px rgba(0, 0, 0, 0.6);
}

html[data-theme="dark"] .premium-card-title {
    color: #e5ebf0;
}

html[data-theme="dark"] .premium-card p.text-gray-600 {
    color: #9eacb7;
}

html[data-theme="dark"] .premium-features-list li {
    color: #cbd5e1;
}

html[data-theme="dark"] .premium-card .border-t {
    border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .premium-card .text-gray-900 {
    color: #e5ebf0;
}

html[data-theme="dark"] .premium-card .text-gray-500 {
    color: #788a96;
}

html[data-theme="dark"] .premium-card .premium-badge {
    background: rgba(27, 35, 44, 0.94);
    border-color: rgba(204, 107, 82, 0.35);
    color: #fca58f;
}

html[data-theme="dark"] .whats-new-section,
html[data-theme="dark"] .theme-footer-section,
html[data-theme="dark"] .category-hero {
    border-color: #34414b;
    background: linear-gradient(120deg, #1b292b, #1a242d 68%, #292321);
}

html[data-theme="dark"] .theme-purpose-link,
html[data-theme="dark"] .drafts-filter,
html[data-theme="dark"] .category-family-field select {
    border-color: #46535e;
    background: #202a34;
    color: #e1e7ed;
}

html[data-theme="dark"] .theme-purpose-tooltip {
    border-color: #46535e;
    background: #202a34;
    color: #e1e7ed;
}

html[data-theme="dark"] .category-stage-tab,
html[data-theme="dark"] .category-family-field,
html[data-theme="dark"] .category-profile-summary {
    color: #bac5cf;
}

html[data-theme="dark"] .category-stage-tab[aria-selected="true"] {
    color: #e1e7ed;
}

html[data-theme="dark"] .category-sticky-banner {
    border-color: #34414b;
    background: rgba(27, 37, 46, 0.97);
}

html[data-theme="dark"] .category-sticky-name,
html[data-theme="dark"] .category-carousel-card,
html[data-theme="dark"] .category-carousel-title {
    color: #e1e7ed;
}

html[data-theme="dark"] .category-carousel-date {
    color: var(--category-accent, #9dc4b1);
}

html[data-theme="dark"] .category-profile-sticky {
    border-color: #46535e;
    background: #2a3b34;
    color: #d4e4d8;
}

html[data-theme="dark"] .category-carousel-empty {
    color: #bac5cf;
}

html[data-theme="dark"] .save-selection-button,
html[data-theme="dark"] .category-library-link {
    border-color: #46535e;
    background: #202a34;
    color: #d4e4d8;
}

@media (max-width: 900px) {
    .featured-hero {
        height: auto;
        min-height: 20rem;
    }

    .carousel-slide {
        height: auto;
        min-height: 20rem;
        grid-template-columns: minmax(17rem, 0.95fr) minmax(0, 1.05fr);
    }

    .category-hero-layout {
        height: 20rem;
        min-height: 20rem;
    }

    .category-hero-visual,
    .category-hero-visual img {
        min-height: 20rem;
    }

    .featured-article-grid,
    .category-article-grid,
    .draft-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .whats-new-inner {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    .featured-hero {
        height: auto;
        min-height: 0;
    }

    .carousel-slide {
        height: auto;
        min-height: 0;
        grid-template-columns: 1fr;
    }

    .carousel-controls {
        position: absolute;
        inset: 0;
        padding: 0;
    }

    .carousel-nav-btn {
        top: 20%;
        width: 34px;
        height: 34px;
    }

    .carousel-prev {
        left: 0.75rem;
        right: auto;
    }

    .carousel-next {
        right: 0.75rem;
    }

    .carousel-indicators {
        bottom: 0.65rem;
        left: 50%;
        transform: translateX(-50%);
        padding: 0.25rem 0.5rem;
    }

    .featured-hero-image-wrap {
        height: auto;
        min-height: auto;
        grid-row: 1;
        aspect-ratio: 16 / 9;
    }

    .featured-hero-image-wrap img {
        min-height: 0;
    }

    .featured-hero-copy {
        padding: 1.75rem 1.25rem 2rem;
    }

    .category-hero-layout {
        height: auto;
        min-height: 0;
        grid-template-columns: 1fr;
    }

    .category-hero-copy {
        padding-block: 2rem;
        padding-inline: 0;
    }

    .category-hero-visual {
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .category-hero-visual img {
        min-height: 0;
    }

    .featured-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.5rem;
    }

    .featured-article-grid,
    .category-article-grid,
    .draft-card-grid {
        grid-template-columns: 1fr;
    }

    .category-filter-row {
        align-items: stretch;
        flex-direction: column;
        gap: 0.75rem;
    }

    .category-family-field {
        min-width: 0;
    }

    .category-sticky-banner {
        top: 4rem;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.45rem;
        padding: 0.55rem 0.75rem;
    }

    .category-sticky-name {
        font-size: 0.98rem;
    }

    .category-profile-sticky {
        justify-self: end;
        max-width: 11rem;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .category-article-carousel {
        grid-column: 1 / -1;
        grid-row: 2;
        min-height: 2.4rem;
    }

    .save-selection-button,
    .category-library-link {
        min-height: 2rem;
        font-size: 0.7rem;
    }

    .selection-saved-notice {
        right: 0.75rem;
    }

    .catalog-topic-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .theme-purpose-link:nth-last-child(-n + 2) .theme-purpose-tooltip {
        right: auto;
        left: 0;
        transform: translate(0, 0.4rem);
    }

    .theme-purpose-link:nth-last-child(-n + 2):hover .theme-purpose-tooltip,
    .theme-purpose-link:nth-last-child(-n + 2):focus-visible .theme-purpose-tooltip {
        transform: translate(0, 0);
    }

    .theme-purpose-tooltip,
    .theme-purpose-link:nth-last-child(-n + 2) .theme-purpose-tooltip {
        position: fixed;
        right: 1rem;
        bottom: 1rem;
        left: 1rem;
        width: auto;
        transform: translateY(0.4rem);
    }

    .theme-purpose-link:hover .theme-purpose-tooltip,
    .theme-purpose-link:focus-visible .theme-purpose-tooltip,
    .theme-purpose-link:nth-last-child(-n + 2):hover .theme-purpose-tooltip,
    .theme-purpose-link:nth-last-child(-n + 2):focus-visible .theme-purpose-tooltip {
        transform: translateY(0);
    }
}

html[data-theme="dark"] .featured-hero,
html[data-theme="dark"] .category-hero {
    background: #202a34;
}

html[data-theme="dark"] .carousel-slide {
    background: linear-gradient(135deg, rgba(30, 42, 36, 0.85) 0%, rgba(20, 26, 31, 0.95) 55%, rgba(45, 30, 25, 0.8) 100%);
}

html[data-theme="dark"] .hero-action-card {
    background: rgba(32, 42, 52, 0.88);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 36px -6px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .hero-action-card input {
    background: #19222a;
    border-color: #3b4956;
    color: #e1e7ed;
}

html[data-theme="dark"] .hero-action-card input:focus {
    border-color: var(--primary, #4A6B7C);
}

html[data-theme="dark"] .featured-category-badge {
    background: rgba(255, 255, 255, 0.08);
    color: #d1dbe5;
    border-color: rgba(255, 255, 255, 0.18);
}

html[data-theme="dark"] .carousel-controls {
    background: transparent;
    border: none;
}

html[data-theme="dark"] .carousel-indicators {
    background: rgba(24, 32, 39, 0.9);
    border-color: rgba(255, 255, 255, 0.15);
}

html[data-theme="dark"] .carousel-dot {
    background: rgba(255, 255, 255, 0.25);
}

html[data-theme="dark"] .carousel-dot.is-active {
    background: var(--accent, #769784);
}

html[data-theme="dark"] .carousel-nav-btn {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(27, 37, 46, 0.95);
    color: #e1e7ed;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .carousel-nav-btn:hover {
    background: #202a34;
    color: var(--accent, #769784);
    border-color: var(--accent, #769784);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

html[data-theme="dark"] .featured-hero-copy h2 {
    color: #e1e7ed;
}

html[data-theme="dark"] .featured-hero-kicker,
html[data-theme="dark"] .featured-hero-objective {
    color: #bac5cf;
}

.published-article-rich-text {
    line-height: 1.7;
}

.published-article-rich-text p {
    margin-bottom: 0.8rem;
}

.published-article-rich-text .ql-align-center { text-align: center; }
.published-article-rich-text .ql-align-right { text-align: right; }
.published-article-rich-text .ql-align-justify { text-align: justify; }
.published-article-rich-text .ql-font-nunito { font-family: 'Nunito', sans-serif; }
.published-article-rich-text .ql-font-playfair { font-family: 'Playfair Display', serif; }
.published-article-rich-text .ql-size-small { font-size: 0.8em; }
.published-article-rich-text .ql-size-large { font-size: 1.35em; }
.published-article-rich-text .ql-size-huge { font-size: 1.8em; }
.published-article-rich-text a { color: var(--accent, #769784); text-decoration: underline; text-underline-offset: 0.2em; }
.published-article-rich-text li[data-list="bullet"] { list-style-type: disc; }

html[data-theme="dark"] .published-article-rich-text a { color: var(--accent, #9BB8A7); }

/* Bandeau du fil d'Ariane positionné en haut, directement sous le header / logo KINSTILL */
.published-article-breadcrumb-strip {
    width: 100%;
    padding-top: 0.85rem;
    padding-bottom: 0.35rem;
    background: transparent;
}

.published-article-hero {
    margin-top: 0.75rem;
    border-bottom: 1px solid var(--border-subtle, rgba(44, 53, 57, 0.08));
    border-top: 1px solid var(--border-subtle, rgba(44, 53, 57, 0.05));
    background: linear-gradient(135deg, rgba(118, 151, 132, 0.1) 0%, var(--light, #FAF8F5) 65%, rgba(74, 107, 124, 0.07) 100%);
    position: relative;
    padding-top: 2.75rem;
    padding-bottom: 3.5rem;
}

.published-article-inner {
    width: min(100% - 3rem, 74rem);
    margin-inline: auto;
}

/* ==========================================================================
   1. Fil d'Ariane Moderne & Ergonomique (Design System Breadcrumb)
   Positionné en haut, sous le header, aligné strictement à gauche sous KINSTILL
   ========================================================================== */
.published-article-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
    font-size: 0.76rem;
    letter-spacing: 0.03em;
    user-select: none;
}

.published-article-breadcrumb ol {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.35rem;
    list-style: none !important;
    padding: 0.32rem 0.65rem !important;
    margin: 0 !important;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(74, 107, 124, 0.16);
    border-radius: 9999px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    max-width: 100%;
}

.published-article-breadcrumb ol::-webkit-scrollbar {
    display: none;
}

.published-article-breadcrumb li {
    display: inline-flex;
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0;
}

.published-article-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.22rem 0.55rem;
    border-radius: 9999px;
    color: var(--ink-muted, #52636d);
    text-decoration: none !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    line-height: 1.2;
}

.published-article-breadcrumb a:hover {
    color: var(--primary, #4A6B7C);
    background: rgba(74, 107, 124, 0.09);
    transform: translateY(-0.5px);
}

.published-article-breadcrumb .breadcrumb-icon {
    flex-shrink: 0;
    color: currentColor;
    opacity: 0.85;
}

.published-article-breadcrumb .breadcrumb-separator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-inline: 0.15rem;
    color: #9AAAB5;
    opacity: 0.75;
    user-select: none;
}

.published-article-breadcrumb [aria-current="page"] {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.65rem;
    border-radius: 9999px;
    background: rgba(74, 107, 124, 0.09);
    color: var(--primary, #3E5B6A);
    font-weight: 700;
    font-size: 0.74rem;
    letter-spacing: 0.01em;
    max-width: none;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.35;
}

/* Variante pour les pages thématiques / catégories */
.category-breadcrumb {
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 1.5rem;
    border-bottom: none;
    max-width: none;
    margin-inline: 0;
}

/* ==========================================================================
   2. Éléments Visuels de Post-Production : Tableaux de Synthèse & Encarts Clés
   ========================================================================== */
.article-summary-table-wrap {
    margin-block: 2.25rem 2.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 1rem;
    border: 1px solid rgba(74, 107, 124, 0.14);
    background: #FFFFFF;
    box-shadow: 0 4px 16px -2px rgba(44, 53, 57, 0.04);
}

.article-summary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    text-align: left;
}

.article-summary-table caption {
    padding: 1rem 1.25rem 0.75rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 600;
    text-align: left;
    color: var(--ink, #2C3539);
    background: var(--light, #FAF8F5);
    border-bottom: 1px solid rgba(74, 107, 124, 0.1);
}

.article-summary-table th {
    background: rgba(74, 107, 124, 0.06);
    color: var(--ink, #2C3539);
    font-weight: 700;
    padding: 0.85rem 1.25rem;
    border-bottom: 2px solid rgba(74, 107, 124, 0.14);
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.article-summary-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(74, 107, 124, 0.08);
    color: var(--ink, #2C3539);
    line-height: 1.6;
}

.article-summary-table tr:last-child td {
    border-bottom: none;
}

.article-summary-table tr:nth-child(even) td {
    background: rgba(250, 248, 245, 0.5);
}

/* Encart Clé / Key Takeaways Card */
.article-key-card {
    margin-block: 2.25rem 2.5rem;
    padding: 1.75rem 2rem;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, rgba(235, 242, 246, 0.75) 0%, rgba(251, 240, 235, 0.55) 100%);
    border: 1px solid rgba(74, 107, 124, 0.16);
    box-shadow: 0 4px 20px -2px rgba(44, 53, 57, 0.03);
    position: relative;
    overflow: hidden;
}

.article-key-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--secondary, #A7442E);
}

.article-key-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.article-key-card-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--secondary, #A7442E);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.article-key-card-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ink, #2C3539);
    margin: 0;
}

.article-key-card-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.article-key-card-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--ink, #2C3539);
}

.article-key-card-check {
    color: var(--secondary, #A7442E);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

/* Zone introductive éditoriale (Hero) */
.published-article-intro {
    max-width: 52rem;
    margin-inline: auto;
    text-align: left;
}

.published-article-category {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding: 0.35rem 0.95rem;
    border-radius: var(--radius-full, 9999px);
    background: rgba(118, 151, 132, 0.14);
    color: var(--accent-dark, #2E5642);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.published-article-category:hover {
    background: rgba(118, 151, 132, 0.22);
    color: #1E3F2F;
}

.published-article-intro h1 {
    margin: 0 0 1.25rem;
    color: var(--ink, #1C2529);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.15rem, 4.2vw, 3.25rem);
    font-weight: 700;
    line-height: 1.24;
    letter-spacing: -0.015em;
    text-wrap: balance;
    max-width: 100%;
}

.published-article-intro > p,
.published-article-intro > p.p-summary {
    max-width: 48rem;
    margin: 0 0 1.5rem;
    color: var(--ink-muted, #4B5A62);
    font-size: 1.2rem;
    line-height: 1.68;
    font-weight: 400;
}

/* 2. Métadonnées contrastées et feutrées (text-sm, text-gray-500) */
.published-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 0.85rem;
    color: #5C6C75;
    font-size: 0.875rem;
    font-weight: 500;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle, rgba(44, 53, 57, 0.1));
}

.published-article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.published-article-meta .meta-dot {
    opacity: 0.45;
}

/* Image de mise en avant (Hero Image) cadrée, proportionnée, anti-CLS */
.published-article-hero-media {
    max-width: 56rem;
    width: 100%;
    margin: 2.25rem auto 0;
    border-radius: var(--radius-md, 16px);
    overflow: hidden;
    box-shadow: var(--shadow-soft, 0 4px 20px -2px rgba(36, 48, 54, 0.07));
    border: 1px solid var(--border-subtle, rgba(44, 53, 57, 0.08));
    background: #e4e9e6;
}

.published-article-hero-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    max-height: 30rem;
}

/* ========================================================
   MISE EN PAGE DES ARTICLES : SIDEBAR STICKY & PROSE RELATIF
   ======================================================== */
.published-article-layout-wrap {
    width: min(100% - 3rem, 74rem);
    margin: 3.5rem auto 6rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .published-article-layout-wrap.has-sidebar {
        grid-template-columns: 17rem minmax(0, 46rem);
        justify-content: center;
        gap: 3.5rem;
        align-items: start;
    }

    .article-sidebar {
        position: relative;
    }

    .article-sidebar-sticky {
        position: sticky;
        top: 6.25rem;
        max-height: calc(100vh - 8rem);
        overflow-y: auto;
        padding-right: 0.25rem;
    }

    /* Style du sommaire sticky en sidebar */
    .article-sidebar .article-toc-box {
        margin-bottom: 0 !important;
        padding: 1.35rem 1.45rem;
        border-radius: var(--radius-md, 16px);
        background: var(--surface, #FFFFFF);
        border: 1px solid var(--border-medium, rgba(44, 53, 57, 0.12));
        box-shadow: var(--shadow-xs);
    }

    .article-sidebar .article-toc-header h2,
    .article-sidebar .article-toc-header h3 {
        font-size: 1.05rem;
    }

    .article-sidebar .article-toc-list {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .article-sidebar .article-toc-list a {
        font-size: 0.88rem;
        line-height: 1.4;
        padding: 0.35rem 0.5rem;
        border-radius: 6px;
    }

    .article-sidebar .article-toc-list a.is-active {
        color: var(--secondary, #A7442E) !important;
        background: rgba(167, 68, 46, 0.08);
        font-weight: 700;
    }
}

.published-article-body {
    width: 100%;
    max-width: 46rem;
    margin: 0;
    color: var(--ink, #2C3539);
    font-size: 1.05rem;
    line-height: 1.8;
}

.published-article-body p {
    max-width: 68ch;
    margin: 0 0 1.25rem;
}

.published-article-body > section {
    margin-block: 2.7rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-subtle, rgba(44, 53, 57, 0.08));
}

.published-article-body h2 {
    margin: 0 0 1rem;
    color: var(--ink, #2C3539);
    font-size: 1.75rem;
    line-height: 1.25;
}

.published-article-body p { margin: 0 0 1.15rem; }

.published-article-body > .published-article-lede {
    margin-bottom: 2rem;
    color: var(--ink, #2C3539);
    font-size: 1.2rem;
    line-height: 1.8;
}

.published-article-quick-answer {
    margin-bottom: 2.2rem;
    border: 1px solid rgba(74, 107, 124, 0.22);
    border-radius: var(--radius-sm, 10px);
    background: var(--primary-light, #EBF2F6);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-xs);
}

.published-article-quick-answer h2 {
    margin-bottom: 0.55rem;
    color: var(--primary, #4A6B7C);
    font-size: 1.4rem;
}

.published-article-quick-answer .published-article-rich-text > :last-child { margin-bottom: 0; }

.published-article-body section > .pathway-eyebrow {
    margin-bottom: 0.45rem;
    color: var(--accent, #769784);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.published-article-body ul,
.published-article-body ol {
    margin: 1rem 0 0;
    padding-inline-start: 1.45rem;
}

.published-article-body li { margin-bottom: 0.75rem; padding-inline-start: 0.2rem; }

.published-article-callout,
.published-article-disclaimer {
    margin-block: 2rem;
    border: 1px solid rgba(181, 82, 57, 0.22);
    border-radius: var(--radius-sm, 10px);
    background: var(--secondary-light, #FBF0EB);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-xs);
}

.published-article-callout > strong,
.published-article-disclaimer > strong {
    display: block;
    margin-bottom: 0.4rem;
    color: #744b40;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
}

.published-article-callout > :last-child,
.published-article-disclaimer > :last-child { margin-bottom: 0; }

.published-article-disclaimer {
    border-color: rgba(118, 151, 132, 0.28);
    background: var(--accent-light, #EFF5F1);
    font-size: 0.9rem;
}

.published-article-disclaimer > strong { color: #4d6754; }

.published-article-body figure {
    margin: 2.5rem 0;
}

.published-article-body figure img {
    display: block;
    width: 100%;
    max-height: 34rem;
    border-radius: 0.4rem;
    object-fit: cover;
}

.published-article-sources {
    margin-top: 3rem;
    border-top: 2px solid #dce3df;
    padding-top: 1.5rem;
    font-size: 0.92rem;
}

.published-article-sources h2 { font-size: 1.4rem; }

.published-article-updated-footer {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #dce3df;
    color: #637179;
    font-size: 0.88rem;
    font-style: italic;
    text-align: right;
}

.published-article-updated-badge {
    display: inline-flex;
    align-items: center;
    color: var(--secondary, #cc6b52);
    font-weight: 700;
}

html[data-theme="dark"] .published-article-updated-badge {
    color: #e58b74;
}

html[data-theme="dark"] .published-article-hero { border-color: #3c4954; background: #202a34; }
html[data-theme="dark"] .published-article-intro > p,
html[data-theme="dark"] .published-article-meta { color: #bac5cf; }
html[data-theme="dark"] .published-article-category,
html[data-theme="dark"] .published-article-body section > .pathway-eyebrow { color: #a9cfba; }
html[data-theme="dark"] .published-article-body h2 { color: #e1e7ed; }
html[data-theme="dark"] .published-article-body > .published-article-lede { color: #c5cfd6; }
html[data-theme="dark"] .published-article-body > section,
html[data-theme="dark"] .published-article-sources,
html[data-theme="dark"] .published-article-updated-footer { border-color: #3c4954; }
html[data-theme="dark"] .published-article-updated-footer { color: #94a3b8; }
html[data-theme="dark"] .published-article-body > .published-article-quick-answer { border-inline-start-color: #8da8b8; background: #202e37; }
html[data-theme="dark"] .published-article-body > .published-article-quick-answer h2 { color: #c4d6df; }
html[data-theme="dark"] .published-article-callout { background: #332a29; }
html[data-theme="dark"] .published-article-callout > strong { color: #e6b1a1; }
html[data-theme="dark"] .published-article-disclaimer { background: #27312b; }
html[data-theme="dark"] .published-article-breadcrumb ol {
    background: rgba(22, 29, 34, 0.88);
    border-color: rgba(255, 255, 255, 0.09);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
html[data-theme="dark"] .published-article-breadcrumb a { color: #9EACB7; }
html[data-theme="dark"] .published-article-breadcrumb a:hover { color: #E2ECF3; background: rgba(255, 255, 255, 0.08); }
html[data-theme="dark"] .published-article-breadcrumb .breadcrumb-separator { color: #61727F; }
html[data-theme="dark"] .published-article-breadcrumb [aria-current="page"] {
    background: rgba(169, 207, 186, 0.12);
    color: #BBDBC9;
}
html[data-theme="dark"] .published-article-hero-media { background: #161D22; border-color: rgba(255, 255, 255, 0.08); }
html[data-theme="dark"] .published-article-meta { border-top-color: rgba(255, 255, 255, 0.08); color: #9EACB7; }

/* ========================================================
   TABLET RESPONSIVENESS (641px - 1023px)
   ======================================================== */
@media (max-width: 1023px) {
    .published-article-layout-wrap {
        width: min(100% - 2.5rem, 50rem);
        margin: 2.5rem auto 4.5rem;
        display: flex;
        flex-direction: column;
        gap: 2.25rem;
    }
    .article-sidebar {
        width: 100%;
        max-width: 100%;
        margin-bottom: 0.5rem;
    }
    .article-sidebar .article-toc-box {
        margin-bottom: 0 !important;
        padding: 1.25rem 1.45rem;
        border-radius: var(--radius-md, 16px);
        background: var(--surface, #FFFFFF);
        border: 1px solid var(--border-medium, rgba(44, 53, 57, 0.12));
        box-shadow: var(--shadow-xs);
    }
    .article-sidebar .article-toc-header h2,
    .article-sidebar .article-toc-header h3 {
        font-size: 1.05rem;
    }
    .article-sidebar .article-toc-list {
        display: flex;
        flex-direction: column;
        gap: 0.45rem;
    }
    .article-sidebar .article-toc-list a {
        font-size: 0.9rem;
        line-height: 1.4;
        padding: 0.4rem 0.6rem;
        border-radius: 6px;
    }
    .article-sidebar .article-toc-list a.is-active {
        color: var(--secondary, #A7442E) !important;
        background: rgba(167, 68, 46, 0.08);
        font-weight: 700;
    }
    .article-complementary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
    }
}

/* ========================================================
   MOBILE RESPONSIVENESS (<= 768px & <= 640px)
   ======================================================== */
@media (max-width: 768px) {
    .published-article-inner {
        padding-inline: 1.25rem;
    }
    .published-article-breadcrumb-strip {
        padding-top: 0.5rem;
        padding-bottom: 0.25rem;
    }
    .published-article-breadcrumb {
        padding-top: 0;
        margin-bottom: 0;
        font-size: 0.72rem;
    }
    .published-article-breadcrumb ol {
        padding: 0.25rem 0.5rem !important;
        gap: 0.15rem;
    }
    .published-article-breadcrumb a {
        padding: 0.2rem 0.45rem;
    }
    .published-article-breadcrumb [aria-current="page"] {
        max-width: none;
        padding: 0.2rem 0.5rem;
    }
    .published-article-intro h1 {
        font-size: clamp(1.75rem, 5.5vw, 2.25rem);
        line-height: 1.24;
        margin-bottom: 0.95rem;
        word-break: normal;
        overflow-wrap: break-word;
    }
    .published-article-intro > p,
    .published-article-intro > p.p-summary {
        font-size: 1.05rem;
        line-height: 1.62;
        margin-bottom: 1.25rem;
    }
    .published-article-meta {
        font-size: 0.82rem;
        gap: 0.45rem 0.65rem;
        padding-top: 0.85rem;
    }
    .published-article-hero-media {
        margin: 1.5rem auto 0;
        border-radius: var(--radius-sm, 12px);
    }
    .published-article-hero-image {
        aspect-ratio: 16 / 9;
        max-height: 16rem;
    }
    .published-article-layout-wrap {
        width: min(100% - 2rem, 74rem);
        margin: 2rem auto 4rem;
        gap: 2rem;
    }
    .published-article-body {
        margin-top: 0;
        font-size: 1rem;
        line-height: 1.75;
    }
    .published-article-body h2 {
        font-size: 1.45rem;
    }
    .published-article-body > section {
        margin-block: 2rem;
        padding-bottom: 1.5rem;
    }
}

@media (max-width: 640px) {
    .published-article-inner {
        padding-inline: 1rem;
    }
    .published-article-layout-wrap {
        width: min(100% - 1.25rem, 100%);
        margin: 1.5rem auto 3.5rem;
        gap: 1.75rem;
    }
    .published-article-breadcrumb ol {
        padding: 0.3rem 0.5rem !important;
        gap: 0.2rem;
        font-size: 0.72rem;
    }
    .article-sidebar .article-toc-box {
        padding: 1rem 1.15rem;
        border-radius: 14px;
    }
    .article-sidebar .article-toc-list a {
        min-height: 38px;
        display: flex;
        align-items: center;
        padding: 0.45rem 0.6rem;
    }
    .article-like-bottom-bar {
        margin: 2rem 0 1rem;
        padding: 1.25rem 1rem;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        text-align: left;
    }
    .article-like-bottom-bar .article-like-btn {
        width: 100%;
        justify-content: center;
        min-height: 48px;
        font-size: 0.95rem;
    }
    .article-complementary-section {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
    .article-complementary-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }
    .article-complementary-card {
        padding: 0.85rem;
        gap: 0.85rem;
        border-radius: 14px;
    }
    .article-complementary-vignette-wrap {
        width: 80px;
        height: 80px;
        border-radius: 10px;
    }
    .article-complementary-title {
        font-size: 0.95rem;
    }
    .article-key-card {
        padding: 1.25rem 1.15rem;
        border-radius: 14px;
    }
}

/* ========================================================
   POST-PRODUCTION ÉDITORIALE DYNAMIQUE & MISE EN SCÈNE
   ======================================================== */

/* Format 1 : Focus / Épuré */
.published-article-page.layout-focus .published-article-body {
    width: min(100% - 2.5rem, 44rem);
    font-size: 1.15rem;
    line-height: 1.88;
}
.published-article-page.layout-focus .published-article-hero-grid {
    display: block;
    max-width: 50rem;
    margin-inline: auto;
    text-align: left;
    padding-bottom: 3rem;
}
.published-article-page.layout-focus .published-article-intro h1 {
    font-size: clamp(2.3rem, 4.5vw, 3.4rem);
    line-height: 1.22;
}
.published-article-page.layout-focus .published-article-hero-image {
    aspect-ratio: 16 / 10;
    max-height: 26rem;
    margin-top: 2rem;
}

/* Format 2 : Récit / Long format */
.published-article-page.layout-narrative .published-article-body {
    width: min(100% - 2rem, 48rem);
}

/* Format 3 : Galerie / Visuel */
.editorial-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-block: 2.75rem;
}

/* Figures éditoriales avec légendes narratives & crédits discrets */
.editorial-figure {
    margin: 2.75rem 0;
    border-radius: var(--radius-md, 16px);
    overflow: hidden;
    background: var(--surface, #FFFFFF);
    border: 1px solid var(--border-subtle, rgba(44, 53, 57, 0.08));
    box-shadow: var(--shadow-soft, 0 4px 20px -2px rgba(36, 48, 54, 0.05));
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.editorial-figure:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover, 0 16px 36px -6px rgba(36, 48, 54, 0.09));
}

.editorial-figure img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 32rem;
    object-fit: cover;
}

.editorial-caption {
    padding: 0.85rem 1.25rem;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--ink-muted, #5C6C75);
    background: var(--surface-subtle, #FAF8F5);
    border-top: 1px solid var(--border-subtle, rgba(44, 53, 57, 0.08));
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.narrative-text {
    font-style: italic;
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--ink, #20272B);
    flex: 1 1 18rem;
}

.photo-credit {
    font-size: 0.75rem;
    color: var(--ink-faint, #72848F);
    font-family: 'Nunito', sans-serif;
    font-style: normal;
    white-space: nowrap;
}

.photo-credit a {
    color: var(--primary, #4A6B7C);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.photo-credit a:hover {
    color: var(--secondary, #A7442E);
}

/* Sommaire Automatique "Dans cet article" */
.article-toc-box {
    margin-bottom: 2.75rem;
    padding: 1.5rem 1.75rem;
    border-radius: var(--radius-md, 16px);
    background: var(--surface, #FFFFFF);
    border: 1px solid var(--border-medium, rgba(44, 53, 57, 0.14));
    box-shadow: var(--shadow-xs);
    position: relative;
}

.article-toc-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.5rem;
    right: 1.5rem;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary, #A7442E), var(--accent, #769784));
    border-radius: var(--radius-full);
}

.article-toc-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.article-toc-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink, #20272B);
    margin: 0;
}

.article-toc-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 0.6rem 1.5rem;
}

.article-toc-list li {
    margin: 0 !important;
    padding: 0 !important;
}

.article-toc-list a {
    display: inline-flex;
    align-items: baseline;
    gap: 0.5rem;
    color: var(--ink-muted, #4B5A62);
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    padding: 0.2rem 0;
}

.article-toc-list a span.toc-num {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--secondary, #A7442E);
    font-family: 'Nunito', sans-serif;
}

.article-toc-list a:hover {
    color: var(--primary, #4A6B7C);
    transform: translateX(3px);
}

/* Citations Magnifiées (Blockquotes) */
.published-article-body blockquote,
.published-article-rich-text blockquote {
    position: relative;
    margin: 2.5rem 0;
    padding: 1.5rem 2rem 1.5rem 3.25rem;
    border-left: 4px solid var(--secondary, #A7442E);
    border-radius: 0 var(--radius-sm, 10px) var(--radius-sm, 10px) 0;
    background: linear-gradient(135deg, var(--secondary-light, #FBF0EB) 0%, rgba(250, 248, 245, 0.6) 100%);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.7;
    color: var(--ink, #20272B);
    box-shadow: var(--shadow-xs);
}

.published-article-body blockquote::before,
.published-article-rich-text blockquote::before {
    content: '“';
    position: absolute;
    top: 0.5rem;
    left: 0.85rem;
    font-size: 3.5rem;
    line-height: 1;
    font-family: Georgia, serif;
    color: var(--secondary, #A7442E);
    opacity: 0.35;
    pointer-events: none;
}

/* Thème sombre pour la post-production */
html[data-theme="dark"] .editorial-figure {
    background: var(--surface, #1B2228);
    border-color: var(--border-subtle);
}

html[data-theme="dark"] .editorial-caption {
    background: var(--surface-subtle, #242D34);
    border-color: var(--border-subtle);
}

html[data-theme="dark"] .narrative-text {
    color: var(--ink, #E5EBF0);
}

html[data-theme="dark"] .article-toc-box {
    background: var(--surface, #1B2228);
    border-color: var(--border-medium);
}

html[data-theme="dark"] .article-toc-header h2 {
    color: var(--ink, #E5EBF0);
}

html[data-theme="dark"] .article-toc-list a {
    color: var(--ink-muted, #9EACB7);
}

html[data-theme="dark"] .published-article-body blockquote,
html[data-theme="dark"] .published-article-rich-text blockquote {
    background: linear-gradient(135deg, rgba(220, 143, 124, 0.12) 0%, var(--surface, #1B2228) 100%);
    color: var(--ink, #E5EBF0);
}

/* ==========================================================================
   Dark Mode Visibility for Premium Guides Page (#premium-catalog-main)
   ========================================================================== */
html[data-theme="dark"] #premium-catalog-main {
    color: #E2E8F0;
}

html[data-theme="dark"] #premium-catalog-main section:first-of-type {
    background: linear-gradient(180deg, #1B252E 0%, #161F26 100%) !important;
    border-bottom-color: #2F3C47 !important;
}

html[data-theme="dark"] #premium-catalog-main section:first-of-type .shadow-xs {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] #premium-catalog-main .border-\[\#DFD8CE\],
html[data-theme="dark"] #premium-catalog-main .border-\[\#EAE4DC\],
html[data-theme="dark"] #premium-catalog-main .border-\[\#E2DBD1\],
html[data-theme="dark"] #premium-catalog-main .border-\[\#CCDCE6\] {
    border-color: #344350 !important;
}

html[data-theme="dark"] #premium-catalog-main .bg-\[\#FBEAE5\] {
    background-color: rgba(167, 68, 46, 0.2) !important;
    border-color: rgba(220, 143, 124, 0.4) !important;
}

html[data-theme="dark"] #premium-catalog-main .text-\[\#8E3622\] {
    color: #F8A896 !important;
}

html[data-theme="dark"] #premium-catalog-main .text-\[\#142026\],
html[data-theme="dark"] #premium-catalog-main .text-\[\#14222B\],
html[data-theme="dark"] #premium-catalog-main .text-\[\#1E3B4B\],
html[data-theme="dark"] #premium-catalog-main .text-\[\#1B2930\] {
    color: #F1F5F9 !important;
}

html[data-theme="dark"] #premium-catalog-main .text-\[\#24333C\],
html[data-theme="dark"] #premium-catalog-main .text-\[\#2A3B44\],
html[data-theme="dark"] #premium-catalog-main .text-\[\#2B3A42\],
html[data-theme="dark"] #premium-catalog-main .text-\[\#2C383E\] {
    color: #CBD5E1 !important;
}

html[data-theme="dark"] #premium-catalog-main .bg-white\/95,
html[data-theme="dark"] #premium-catalog-main .bg-white\/90 {
    background-color: #202A34 !important;
}

html[data-theme="dark"] #premium-catalog-main .bg-\[\#FAF8F5\] {
    background-color: #172027 !important;
}

html[data-theme="dark"] #premium-catalog-main .bg-\[\#EBF2F6\] {
    background-color: rgba(74, 107, 124, 0.28) !important;
}

html[data-theme="dark"] #premium-catalog-main .text-\[\#244658\],
html[data-theme="dark"] #premium-catalog-main .text-\[\#2C4A5A\] {
    color: #A3CCE4 !important;
}

html[data-theme="dark"] #premium-catalog-main .text-\[\#285740\] {
    color: #A8D1BC !important;
}

html[data-theme="dark"] #premium-catalog-main .bg-\[\#EFF5F1\] {
    background-color: rgba(118, 151, 132, 0.25) !important;
}

html[data-theme="dark"] #premium-catalog-main .bg-\[\#FBF0EB\] {
    background-color: rgba(167, 68, 46, 0.25) !important;
}

html[data-theme="dark"] #premium-catalog-main .article-card.premium-card {
    background: #1E2832 !important;
    border-color: #344350 !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3) !important;
}

html[data-theme="dark"] #premium-catalog-main .article-card.premium-card:hover {
    border-color: #4A6B7C !important;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.45) !important;
}

html[data-theme="dark"] #premium-catalog-main .premium-card-title {
    color: #F8FAFC !important;
}

html[data-theme="dark"] #premium-catalog-main details {
    background: #1E2832 !important;
    border-color: #344350 !important;
}

html[data-theme="dark"] #premium-catalog-main details summary {
    color: #F1F5F9 !important;
}

html[data-theme="dark"] #premium-catalog-main details p {
    color: #CBD5E1 !important;
}

/* ==========================================================================
   Post-Production : Renvois vers Articles Complémentaires (Vignettes)
   ========================================================================== */
.article-complementary-section {
    margin-block: 3.5rem 2rem;
    padding-top: 2.25rem;
    border-top: 1px solid rgba(74, 107, 124, 0.16);
}

.article-complementary-header {
    margin-bottom: 1.5rem;
}

.article-complementary-header .pathway-eyebrow {
    display: inline-block;
    color: var(--secondary, #A7442E);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
}

.article-complementary-header h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 700;
    color: var(--ink, #1F282C);
    margin-bottom: 0.4rem;
    line-height: 1.25;
}

.article-complementary-header p {
    color: var(--ink-muted, #52636D);
    font-size: 0.95rem;
    margin: 0;
}

.article-complementary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.article-complementary-card {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 0.95rem;
    border-radius: 1rem;
    background: #FFFFFF;
    border: 1px solid rgba(74, 107, 124, 0.14);
    box-shadow: 0 2px 10px rgba(36, 48, 54, 0.04);
    text-decoration: none !important;
    color: inherit !important;
    transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.article-complementary-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary, #4A6B7C);
    box-shadow: 0 8px 24px -4px rgba(44, 53, 57, 0.1);
}

.article-complementary-vignette-wrap {
    position: relative;
    flex-shrink: 0;
    width: 96px;
    height: 96px;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #EBF2F6;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.article-complementary-vignette {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.article-complementary-card:hover .article-complementary-vignette {
    transform: scale(1.06);
}

.article-complementary-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.article-complementary-tag {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary, #4A6B7C);
    margin-bottom: 0.25rem;
}

.article-complementary-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ink, #1F282C);
    margin: 0 0 0.35rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-complementary-card:hover .article-complementary-title {
    color: var(--primary, #4A6B7C);
}

.article-complementary-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--secondary, #A7442E);
}

.article-complementary-meta svg {
    transition: transform 0.2s ease;
}

.article-complementary-card:hover .article-complementary-meta svg {
    transform: translateX(3px);
}

/* Mode sombre pour les renvois complémentaires */
html[data-theme="dark"] .article-complementary-section {
    border-top-color: #344350;
}

html[data-theme="dark"] .article-complementary-header h2 {
    color: #F1F5F9;
}

html[data-theme="dark"] .article-complementary-header p {
    color: #CBD5E1;
}

html[data-theme="dark"] .article-complementary-header .pathway-eyebrow {
    color: #F8A896;
}

html[data-theme="dark"] .article-complementary-card {
    background: #1E2832;
    border-color: #344350;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] .article-complementary-card:hover {
    border-color: #8EB4C7;
    background: #232F3A;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .article-complementary-title {
    color: #F1F5F9;
}

html[data-theme="dark"] .article-complementary-card:hover .article-complementary-title {
    color: #8EB4C7;
}

html[data-theme="dark"] .article-complementary-tag {
    color: #8EB4C7;
}

html[data-theme="dark"] .article-complementary-meta {
    color: #F8A896;
}

html[data-theme="dark"] .article-complementary-vignette-wrap {
    background: #172027;
    border-color: rgba(255, 255, 255, 0.08);
}

/* ========================================================
   ARTICLE LIKES SYSTEM (PERFORMANCE TRACKING & ENGAGEMENT)
   ======================================================== */

.article-like-inline {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.article-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.85rem;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(44, 53, 57, 0.15);
    border-radius: 9999px;
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--ink, #2C3539);
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    user-select: none;
    line-height: 1;
}

.article-like-btn:hover {
    border-color: #e0245e;
    color: #e0245e;
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(224, 36, 94, 0.12);
}

.article-like-btn .like-heart-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.article-like-btn.is-liked {
    background: #fff0f3;
    border-color: #ffccd5;
    color: #e0245e;
}

.article-like-btn.is-liked .like-heart-icon svg {
    fill: #e0245e;
    stroke: #e0245e;
}

.article-like-btn.like-animating .like-heart-icon {
    animation: heartPulse 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heartPulse {
    0% { transform: scale(1); }
    40% { transform: scale(1.45); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

.article-like-btn .like-count {
    display: inline-block;
    min-width: 1.25rem;
    padding: 0.1rem 0.4rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
}

.article-like-btn.is-liked .like-count {
    background: rgba(224, 36, 94, 0.15);
    color: #c9184a;
}

/* Barre de Like en bas d'article */
.article-like-bottom-bar {
    margin: 2.5rem 0 1.5rem;
    padding: 1.5rem 1.75rem;
    background: linear-gradient(135deg, rgba(250, 248, 245, 0.95), rgba(240, 244, 248, 0.95));
    border: 1px solid rgba(74, 107, 124, 0.15);
    border-radius: 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.article-like-prompt h3 {
    margin: 0 0 0.25rem;
    font-size: 1.05rem;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    color: var(--primary, #4A6B7C);
}

.article-like-prompt p {
    margin: 0;
    font-size: 0.875rem;
    color: #64748B;
}

.article-like-bottom-bar .article-like-btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.925rem;
}

/* Mode sombre */
html[data-theme="dark"] .article-like-btn {
    background: #1E2832;
    border-color: #344350;
    color: #E2E8F0;
}

html[data-theme="dark"] .article-like-btn:hover {
    background: #232F3A;
    border-color: #ff758f;
    color: #ff758f;
}

html[data-theme="dark"] .article-like-btn.is-liked {
    background: #3B1B26;
    border-color: #7A283C;
    color: #ff758f;
}

html[data-theme="dark"] .article-like-btn.is-liked .like-heart-icon svg {
    fill: #ff758f;
    stroke: #ff758f;
}

html[data-theme="dark"] .article-like-btn .like-count {
    background: rgba(255, 255, 255, 0.1);
    color: #E2E8F0;
}

html[data-theme="dark"] .article-like-btn.is-liked .like-count {
    background: rgba(255, 117, 143, 0.2);
    color: #ffb3c1;
}

html[data-theme="dark"] .article-like-bottom-bar {
    background: linear-gradient(135deg, #1A232C, #1E293B);
    border-color: #334155;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .article-like-prompt h3 {
    color: #8EB4C7;
}

html[data-theme="dark"] .article-like-prompt p {
    color: #94A3B8;
}



