/* 
 * components.css
 * UI-Komponenten und Mikrointeraktionen
 */

/* Variablen für Animationen */
:root {
    --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: cubic-bezier(0.68, -0.55, 0.27, 1.55);
    --border-radius-full: 9999px;
}

.nj-icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    flex: 0 0 auto;
    vertical-align: middle;
    fill: currentColor;
}

.nj-icon--brand,
.news-category__icon,
.news-meta__icon,
.article-category__icon,
.article-sources__icon,
.welcome-card-sources-label__icon,
.welcome-card-action__icon,
.welcome-article-action__icon,
.welcome-card-placeholder__icon,
.welcome-feed-end-icon {
    color: var(--icon-accent-primary, var(--color-accent-primary));
}

.nj-icon-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Icon Button */
.icon-button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-primary);
    background-color: transparent;
    transition: all 0.2s var(--transition-smooth);
    cursor: pointer;
    position: relative; /* Wichtig für absolute Positionierung der Icons */
    overflow: hidden;
    /* iOS Safari: verhindert Double-Tap/Zoom- und Ghost-Clicks */
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}

.icon-button:hover {
    background-color: var(--color-bg-secondary);
    transform: translateY(-2px);
}

#header-post-search-toggle:hover,
#header-post-search-toggle:focus-visible {
    background-color: rgba(255, 255, 255, 0.94);
    color: #111318;
}

.icon-button:active {
    transform: scale(0.95);
}

.icon-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-accent-primary);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: transform 0.3s var(--transition-bounce), opacity 0.3s var(--transition-smooth);
}

.icon-button:active::after {
    opacity: 0.1;
    transform: scale(1);
    transition: 0s;
}

/* Ensure SVG elements inside icon buttons don't block clicks */
.icon-button svg,
.icon-button path,
.icon-button * {
    pointer-events: none;
}

.icon-button > .nj-icon,
.icon-button .light-icon,
.icon-button .dark-icon {
    width: 20px;
    height: 20px;
}

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

.header-avatar-button {
    width: 38px;
    height: 38px;
    border: 1px solid var(--color-border);
    background: var(--gradient-surface);
    position: relative;
    overflow: hidden;
}

.header-avatar-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 9999px;
    z-index: 2;
}

.header-avatar-fallback {
    position: absolute;
    inset: 0;
    display: inline-flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #ffffff;
    background: var(--gradient-primary);
    z-index: 1;
}

.header-notifications-button {
    position: relative;
}

.header-notifications-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 10px;
    height: 10px;
    border-radius: 9999px;
    background: #d75a5a;
    border: 1.25px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 0 0 1px rgba(17, 19, 24, 0.08);
    pointer-events: none;
}

.header-post-search-panel[hidden] {
    display: none !important;
}

.header-post-search-panel {
    position: fixed;
    top: var(--header-post-search-viewport-top, 0);
    left: var(--header-post-search-viewport-left, 0);
    width: 100vw;
    width: var(--header-post-search-viewport-width, 100vw);
    height: 100vh;
    height: 100dvh;
    height: var(--header-post-search-viewport-height, 100dvh);
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding:
        calc(var(--safe-area-inset-top, 0px) + 18px)
        16px
        calc(env(safe-area-inset-bottom, 0px) + 18px);
    box-sizing: border-box;
    overflow: hidden;
    overscroll-behavior: contain;
    touch-action: none;
}

html.header-post-search-open,
body.header-post-search-open,
body.header-notifications-open {
    overflow: hidden;
    overscroll-behavior: none;
}

.header-post-search-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 11, 15, 0.52);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    touch-action: none;
}

.header-post-search-dialog {
    position: relative;
    width: min(1040px, calc(100vw - 32px));
    max-height: min(84vh, 860px);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(16, 18, 28, 0.08);
    background:
        radial-gradient(circle at top right, rgba(201, 123, 61, 0.12), transparent 30%),
        radial-gradient(circle at left center, rgba(12, 74, 88, 0.08), transparent 40%),
        rgba(255, 255, 255, 0.9);
    box-shadow: 0 32px 80px rgba(8, 11, 15, 0.28);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(28px) saturate(135%);
    -webkit-backdrop-filter: blur(28px) saturate(135%);
    touch-action: pan-y;
}

.header-notifications-panel[hidden] {
    display: none !important;
}

.header-notifications-panel {
    position: fixed;
    inset: 0;
    z-index: 1200;
}

.header-notifications-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 12, 15, 0.46);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.header-notifications-dialog {
    position: absolute;
    top: calc(var(--safe-area-inset-top, 0px) + 16px);
    right: 16px;
    width: min(480px, calc(100vw - 32px));
    border-radius: var(--radius-lg);
    border: none;
    background: var(--site-header-bg, rgba(255, 255, 255, 0.72));
    box-shadow: var(--elevation-3);
    overflow: hidden;
    backdrop-filter: var(--site-header-backdrop, blur(24px));
    -webkit-backdrop-filter: var(--site-header-backdrop, blur(24px));
}

.dark-mode .header-post-search-dialog,
body.dark-mode .header-post-search-dialog,
body.dark-theme .header-post-search-dialog {
    background: linear-gradient(
        155deg,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.08) 100%
    );
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(24px) saturate(130%);
    -webkit-backdrop-filter: blur(24px) saturate(130%);
}

.dark-mode .header-notifications-dialog,
body.dark-mode .header-notifications-dialog,
body.dark-theme .header-notifications-dialog {
    background: linear-gradient(
        160deg,
        var(--home-container-fill, rgba(255, 255, 255, 0.12)) 0%,
        rgba(255, 255, 255, 0.07) 100%
    );
    backdrop-filter: blur(20px) saturate(130%);
    -webkit-backdrop-filter: blur(20px) saturate(130%);
}

.header-post-search-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
    padding: 20px 24px 18px;
    border-bottom: 1px solid rgba(16, 18, 28, 0.08);
}

.header-notifications-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-border);
}

.header-notifications-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.header-notifications-header__actions {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.header-notifications-mark-all {
    border: 1px solid var(--color-border);
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.82);
    color: #111318;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.62rem 0.92rem;
    cursor: pointer;
    transition: background-color 0.2s var(--transition-smooth), border-color 0.2s var(--transition-smooth), transform 0.2s var(--transition-smooth);
}

.header-notifications-mark-all:hover,
.header-notifications-mark-all:focus-visible {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(17, 19, 24, 0.18);
    transform: translateY(-1px);
}

.header-notifications-mark-all:disabled {
    cursor: wait;
    opacity: 0.6;
    transform: none;
}

.header-notifications-header [data-notifications-action="close"] {
    color: var(--color-text-primary);
}

.header-notifications-header [data-notifications-action="close"]:hover {
    background-color: rgba(255, 255, 255, 0.94);
    color: #111318;
}

.header-post-search-header h3 {
    margin: 0;
    font-size: clamp(1.08rem, 0.98rem + 0.25vw, 1.22rem);
    font-weight: 700;
    color: var(--color-text-primary);
}

.header-notifications-content {
    padding: 14px 16px 16px;
    display: grid;
    gap: 10px;
}

.header-notifications-status {
    display: inline-flex;
    align-items: center;
    font-size: 0.82rem;
    color: var(--color-text-secondary);
}

.header-notifications-status__content {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.header-notifications-status__icon {
    width: 1rem;
    height: 1rem;
}

.header-notifications-results {
    margin: 0;
    padding: 2px 1px 6px;
    display: grid;
    gap: 12px;
    max-height: min(56vh, 420px);
    overflow: auto;
}

.header-notifications-item {
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--site-header-bg, rgba(255, 255, 255, 0.72));
    box-shadow: var(--elevation-1);
    backdrop-filter: var(--site-header-backdrop, blur(24px));
    -webkit-backdrop-filter: var(--site-header-backdrop, blur(24px));
    color: inherit;
    display: block;
    transition: transform 0.2s var(--transition-smooth), border-color 0.2s var(--transition-smooth), background-color 0.2s var(--transition-smooth), box-shadow 0.2s var(--transition-smooth);
}

.header-notifications-item:hover,
.header-notifications-item:focus-within {
    transform: translateY(-2px);
    border-color: var(--color-accent-primary);
    box-shadow: var(--elevation-2);
}

.header-notifications-item.is-unread {
    border-color: rgba(17, 19, 24, 0.12);
}

.header-notifications-item__open {
    border: 0;
    background: transparent;
    padding: 14px;
    margin: 0;
    color: inherit;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.header-notifications-item__icon {
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    color: #111318;
}

.header-notifications-item__icon .nj-icon {
    width: 18px;
    height: 18px;
}

.header-notifications-item__content {
    display: grid;
    gap: 6px;
}

.header-notifications-item__title-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.header-notifications-item__title {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--color-text-primary);
    flex: 1 1 auto;
}

.header-notifications-item__dot {
    width: 10px;
    height: 10px;
    border-radius: 9999px;
    background: #d75a5a;
    margin-top: 0.2rem;
    flex: 0 0 auto;
}

.header-notifications-item__body {
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--color-text-secondary);
}

.header-notifications-item__time {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-tertiary);
}

.dark-mode .header-notifications-item,
body.dark-mode .header-notifications-item,
body.dark-theme .header-notifications-item {
    background: linear-gradient(
        160deg,
        var(--home-container-fill, rgba(255, 255, 255, 0.12)) 0%,
        rgba(255, 255, 255, 0.07) 100%
    );
    border-color: var(--glass-border, rgba(255, 255, 255, 0.2));
    backdrop-filter: blur(16px) saturate(125%);
    -webkit-backdrop-filter: blur(16px) saturate(125%);
}

.dark-mode .header-notifications-mark-all,
body.dark-mode .header-notifications-mark-all,
body.dark-theme .header-notifications-mark-all {
    background: rgba(255, 255, 255, 0.88);
    color: #111318;
}

.header-post-search-header [data-search-action="close"] {
    width: 44px;
    height: 44px;
    color: var(--color-text-primary);
}

.header-post-search-header [data-search-action="close"]:hover {
    background-color: rgba(255, 255, 255, 0.94);
    color: #111318;
}

.header-post-search-content {
    padding: 18px 24px 24px;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 14px;
    min-height: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

#header-post-search-input {
    width: 100%;
    min-height: 56px;
    border: 1px solid rgba(16, 18, 28, 0.08);
    border-radius: var(--radius-lg);
    padding: 0 16px;
    font-size: 1rem;
    color: var(--color-text-primary);
    background: rgba(240, 245, 255, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    outline: none;
}

.dark-mode #header-post-search-input,
body.dark-mode #header-post-search-input,
body.dark-theme #header-post-search-input {
    background: linear-gradient(
        160deg,
        var(--home-container-fill, rgba(255, 255, 255, 0.12)) 0%,
        rgba(255, 255, 255, 0.07) 100%
    );
    border-color: var(--glass-border, rgba(255, 255, 255, 0.22));
    color: rgba(255, 255, 255, 0.88);
    caret-color: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px) saturate(130%);
    -webkit-backdrop-filter: blur(20px) saturate(130%);
}

.dark-mode #header-post-search-input::placeholder,
body.dark-mode #header-post-search-input::placeholder,
body.dark-theme #header-post-search-input::placeholder {
    color: rgba(255, 255, 255, 0.88);
}

#header-post-search-input:focus {
    border-color: var(--color-accent-primary);
    box-shadow: 0 0 0 3px var(--color-accent-primary-alpha-10);
}

#header-post-search-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    cursor: pointer;
    opacity: 0.9;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18 6L6 18M6 6L18 18' stroke='%236D7785' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 12px;
}

.dark-mode #header-post-search-input::-webkit-search-cancel-button,
body.dark-mode #header-post-search-input::-webkit-search-cancel-button,
body.dark-theme #header-post-search-input::-webkit-search-cancel-button {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18 6L6 18M6 6L18 18' stroke='%23FFFFFF' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
}

.header-post-search-status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.header-post-search-status__content {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.header-post-search-status__icon,
.header-post-search-meta-icon {
    width: 14px;
    height: 14px;
    color: var(--color-text-tertiary);
}

.header-post-search-results {
    margin: 0;
    padding: 2px;
    max-height: none;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.header-post-search-results .header-post-search-result-item {
    --header-post-search-card-min-height: 132px;
    margin: 0;
    position: relative;
    box-sizing: border-box;
    min-height: var(--header-post-search-card-min-height);
    height: auto;
    block-size: auto;
    width: 100%;
    flex: 0 0 auto;
    min-width: 0;
    align-self: stretch;
    align-items: stretch;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(16, 18, 28, 0.08);
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(112px, 28%) minmax(0, 1fr);
    grid-auto-rows: auto;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: none;
    backdrop-filter: blur(18px) saturate(120%);
    -webkit-backdrop-filter: blur(18px) saturate(120%);
    isolation: isolate;
}

.header-post-search-results .header-post-search-result-item--no-image {
    grid-template-columns: minmax(0, 1fr);
}

.dark-mode .header-post-search-results .header-post-search-result-item,
body.dark-mode .header-post-search-results .header-post-search-result-item,
body.dark-theme .header-post-search-results .header-post-search-result-item {
    background: linear-gradient(
        160deg,
        var(--home-container-fill, rgba(255, 255, 255, 0.12)) 0%,
        rgba(255, 255, 255, 0.07) 100%
    );
    border-color: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(18px) saturate(125%);
    -webkit-backdrop-filter: blur(18px) saturate(125%);
}

@media (hover: hover) and (pointer: fine) {
    .header-post-search-results .header-post-search-result-item:hover {
        transform: translateY(-2px);
        border-color: rgba(201, 123, 61, 0.24);
        box-shadow: 0 18px 32px rgba(8, 11, 15, 0.12);
    }
}

.header-post-search-results .header-post-search-card-link {
    position: absolute;
    inset: 0;
    z-index: 2;
    text-decoration: none;
}

.header-post-search-results .header-post-search-card-link:focus-visible {
    border-radius: inherit;
    outline: 3px solid var(--color-accent-primary);
    outline-offset: -4px;
}

.header-post-search-results .header-post-search-thumb {
    position: relative;
    align-self: stretch;
    box-sizing: border-box;
    width: 100%;
    height: auto;
    min-height: var(--header-post-search-card-min-height);
    overflow: hidden;
    background: var(--color-bg-tertiary);
}

.header-post-search-results .header-post-search-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.header-post-search-result-body {
    box-sizing: border-box;
    padding: 14px 15px 13px;
    display: grid;
    align-content: start;
    gap: 8px;
    min-width: 0;
    min-height: var(--header-post-search-card-min-height);
    position: relative;
    z-index: 1;
}

.header-post-search-result-title {
    color: var(--color-text-primary);
    font-size: clamp(0.98rem, 0.93rem + 0.12vw, 1.08rem);
    font-weight: 700;
    margin: 0;
    line-height: 1.24;
    white-space: normal;
    overflow: hidden;
    text-overflow: clip;
    overflow-wrap: anywhere;
    word-break: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.header-post-search-excerpt {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--color-text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.header-post-search-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.76rem;
    color: var(--color-text-tertiary);
    margin-top: auto;
}

.header-post-search-meta--top {
    margin-top: 0;
    font-weight: 650;
    color: var(--color-text-secondary);
}

.header-post-search-meta--bottom {
    margin-top: auto;
}

.header-post-search-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.header-post-search-meta-item span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (min-width: 860px) {
    .header-post-search-results .header-post-search-result-item {
        --header-post-search-card-min-height: 148px;
        grid-template-columns: 168px minmax(0, 1fr);
    }

    .header-post-search-results .header-post-search-result-item--no-image {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 768px) {
    .header-post-search-panel {
        align-items: flex-start;
        padding:
            calc(var(--safe-area-inset-top, 0px) + 8px)
            10px
            calc(env(safe-area-inset-bottom, 0px) + 8px);
    }

    .header-post-search-dialog {
        width: min(100%, calc(100vw - 20px));
        max-height: calc(100vh - var(--safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 16px);
        max-height: calc(100dvh - var(--safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 16px);
        max-height: calc(var(--header-post-search-viewport-height, 100dvh) - var(--safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 16px);
        border-radius: var(--radius-lg);
    }

    .header-notifications-dialog {
        left: 10px;
        right: 10px;
        width: auto;
        top: calc(var(--safe-area-inset-top, 0px) + 10px);
    }

    .header-post-search-header {
        padding: 16px 16px 14px;
    }

    .header-post-search-content {
        padding: 14px 14px calc(16px + env(safe-area-inset-bottom, 0px));
        gap: 12px;
    }

    #header-post-search-input {
        min-height: 52px;
        border-radius: var(--radius-md);
    }

    .header-post-search-results {
        gap: 12px;
    }

    .header-post-search-results .header-post-search-result-item {
        --header-post-search-card-min-height: 128px;
        grid-template-columns: 106px minmax(0, 1fr);
        min-height: var(--header-post-search-card-min-height);
    }

    .header-post-search-results .header-post-search-result-item--no-image {
        grid-template-columns: minmax(0, 1fr);
    }

    .header-post-search-results .header-post-search-thumb {
        min-height: var(--header-post-search-card-min-height);
    }

    .header-post-search-result-body {
        min-height: var(--header-post-search-card-min-height);
        padding: 12px 12px 11px;
        gap: 7px;
    }

    .header-post-search-result-title {
        font-size: 0.96rem;
        line-height: 1.22;
    }

    .header-post-search-excerpt {
        font-size: 0.84rem;
        line-height: 1.4;
    }

    .header-post-search-meta {
        gap: 6px;
        font-size: 0.72rem;
    }
}

/* Sidebar Toggle Icon Wechsel */
#sidebar-toggle .menu-icon,
#sidebar-toggle .close-icon {
    color: var(--color-text-primary); /* Explizite Farbdefinition mit CSS-Variable */
    /* stroke und fill werden durch currentColor im SVG übernommen */
    position: absolute; /* Ermöglicht Überlagerung für Übergang */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s var(--transition-smooth), transform 0.2s var(--transition-smooth);
}

/* Spezifisch: Toggle-Button selbst stärker gegen iOS-Gesten absichern */
#sidebar-toggle {
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}

#sidebar-toggle .close-icon {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-90deg) scale(0.8); /* Startzustand für Animation */
}

#sidebar-toggle.is-open .menu-icon,
body.sidebar-is-open #sidebar-toggle .menu-icon,
html.sidebar-prefers-open #sidebar-toggle .menu-icon {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(90deg) scale(0.8); /* Endzustand für Animation */
}

#sidebar-toggle.is-open .close-icon,
body.sidebar-is-open #sidebar-toggle .close-icon,
html.sidebar-prefers-open #sidebar-toggle .close-icon {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg) scale(1); /* Endzustand für Animation */
    color: var(--color-text-primary); /* Ensures visibility in both light and dark mode */
}

/* X-Icon color: black in light mode, white in dark mode */
#sidebar-toggle .close-icon {
    color: #000000; /* Black in light mode */
}

.dark-mode #sidebar-toggle .close-icon {
    color: #ffffff; /* White in dark mode */
}

#sidebar-toggle.no-transition .menu-icon,
#sidebar-toggle.no-transition .close-icon {
    transition: none !important;
}

button.primary-button {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Dark Mode spezifische Unterstützung für primary-button */
.dark-mode .primary-button {
    background-color: var(--color-accent-primary, #ffffff) !important;
    color: #ffffff !important;
}


/* Primary Button */
.primary-button {
    display: flex !important; /* Sicherstellen, dass Button sichtbar ist */
    align-items: center;
    justify-content: flex-start; /* Links ausrichten statt zentriert */
    gap: var(--spacing-sm, 1rem);
    padding: var(--spacing-sm, 1rem) var(--spacing-md, 1.5rem);
    background-color: var(--color-accent-primary, #000000);
    color: var(--color-bg-primary, #ffffff);
    border-radius: var(--border-radius-md, 18px);
    font-weight: 500;
    transition: all 0.2s var(--transition-smooth, cubic-bezier(0.4, 0, 0.2, 1));
    border: none;
    box-shadow: var(--elevation-1, 0 4px 16px rgba(0, 0, 0, 0.04));
    position: relative;
    overflow: hidden;
    cursor: pointer;
    min-height: 48px; /* Mindesthöhe für Sichtbarkeit */
    min-width: 120px; /* Mindestbreite für Sichtbarkeit */
}

/* Speziell für den News-Feed Button in der Sidebar */
#news-feed-link.primary-button {
    justify-content: flex-start; /* Left align the content */
    text-align: left;
    width: 100%; /* Full width for professional look */
    min-width: 140px; /* Ensure minimum width */
}


.primary-button:hover {
    background-color: var(--color-accent-secondary, #333333);
    color: var(--color-bg-primary, #ffffff);
    transform: translateY(-2px);
    box-shadow: var(--elevation-2, 0 10px 24px rgba(0, 0, 0, 0.06));
}
.primary-button:active {
    transform: translateY(0);
    box-shadow: var(--elevation-1, 0 4px 16px rgba(0, 0, 0, 0.04));
}

.primary-button::after {
    content: none;
}

/* Dark Mode Anpassungen für Primary Button */
.dark-mode .primary-button {
   background-color: var(--color-accent-primary, #ffffff);
   color: #ffffff;
}

.dark-mode .primary-button:hover {
   background-color: var(--color-accent-secondary, #e5e5e5);
   color: #ffffff;
}

.primary-button:not([style*="display: none"]) {
    min-height: 42px;
    min-width: 140px;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Dropdown */
.dropdown-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--spacing-sm);
    background-color: transparent; /* Hintergrund entfernt (war tertiary) */
    border: 1px solid var(--color-border); /* Border wieder hinzugefügt */
    border-radius: var(--border-radius-sm);
    color: var(--color-text-primary); /* Angepasst von secondary */
    transition: all 0.2s var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.dropdown-button:hover {
    border-color: var(--color-accent-primary); /* Hover-Effekt für Border */
}

/* Dark Mode Anpassung für Dropdown-Button */
.dark-mode .dropdown-button {
    border-color: var(--color-border); /* Verwendung der CSS-Variable für konsistentes Aussehen */
}


.dropdown-button svg {
    transition: transform 0.3s var(--transition-bounce);
    color: var(--color-text-secondary); /* stroke wird durch currentColor im SVG übernommen */
}

.dropdown-button.active svg {
    transform: rotate(180deg);
}

.dropdown-content {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    background-color: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--elevation-3);
    z-index: 100; /* Erhöhter z-index, damit es über anderen Elementen liegt */
    max-height: 300px;
    overflow-y: auto;
    display: none;
    transform-origin: top center;
}

.dropdown-content.active {
    display: block;
    animation: dropdownOpen 0.3s var(--transition-bounce);
}

/* Spezifische Regel für Dropdown in der Sidebar, damit es sich nach oben öffnet */
@keyframes dropdownOpen {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-search {
    padding: var(--spacing-xs);
    border-bottom: 1px solid var(--color-border);
}

.dropdown-search input {
    width: 100%;
    padding: var(--spacing-xs);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-xs);
    background-color: var(--color-bg-secondary);
    color: var(--color-text-primary);
    transition: all 0.2s var(--transition-smooth);
}

.dropdown-search input:focus {
    border-color: var(--color-accent-primary);
    box-shadow: 0 0 0 2px rgba(58, 134, 255, 0.2);
}

.dropdown-items {
    max-height: 250px;
    overflow-y: auto;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm);
    cursor: pointer;
    transition: all 0.2s var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.dropdown-item:hover {
    background-color: var(--color-bg-secondary);
}

.dropdown-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-accent-primary);
    opacity: 0;
    transform: scale(0);
    transition: transform 0.3s var(--transition-bounce), opacity 0.3s var(--transition-smooth);
}

.dropdown-item:active::after {
    opacity: 0.1;
    transform: scale(1);
    transition: 0s;
}

.dropdown-item-icon {
    font-size: 1.2rem;
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm); /* Abstand nach unten hinzugefügt */
}

#theme-toggle-button,
#theme-toggle-header {
    position: relative;
    width: 40px; /* Größer gemacht */
    height: 40px; /* Größer gemacht */
    z-index: 300; /* Ensure it's above everything else */
}

#theme-toggle-button .light-icon,
#theme-toggle-button .dark-icon,
#theme-toggle-header .light-icon,
#theme-toggle-header .dark-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s var(--transition-spring);
}

.light-mode #theme-toggle-button .light-icon,
.light-mode #theme-toggle-header .light-icon {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
}

.light-mode #theme-toggle-button .dark-icon,
.light-mode #theme-toggle-header .dark-icon {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(90deg) scale(0);
}

.dark-mode #theme-toggle-button .light-icon,
.dark-mode #theme-toggle-header .light-icon {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-90deg) scale(0);
}

.dark-mode #theme-toggle-button .dark-icon,
.dark-mode #theme-toggle-header .dark-icon {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Angepasste Pulse-Animation für Welcome-Logo */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03); /* Nur leicht vergrößern */
    }
}

/* Bundesland Options */
.bundesland-options {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
    justify-content: flex-start;
}

.bundesland-option {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all 0.2s var(--transition-spring);
    position: relative;
    overflow: hidden;
}

.bundesland-option:hover {
    border-color: var(--color-accent-primary);
}

.bundesland-option.selected {
    background-color: var(--color-accent-primary);
    color: var(--color-bg-primary);
    border-color: var(--color-accent-primary);
}

.bundesland-icon {
    font-size: 1.2rem;
    transition: transform 0.3s var(--transition-spring);
}

.bundesland-option:hover .bundesland-icon {
    transform: none;
}

.bundesland-option::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-accent-primary);
    opacity: 0;
    transform: scale(0);
    transition: transform 0.3s var(--transition-bounce), opacity 0.3s var(--transition-smooth);
}

.bundesland-option:active::after {
    opacity: 0.1;
    transform: scale(1);
    transition: 0s;
}

/* News Items */
.news-item {
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    transition: all 0.2s var(--transition-spring);
    position: relative;
    overflow: hidden;
}

.news-item h3 {
    margin-top: 0;
    margin-bottom: var(--spacing-xs);
    font-size: 1.1rem;
    transition: color 0.2s var(--transition-smooth);
}

.news-meta {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-sm);
    font-size: 0.9rem;
    color: var(--color-text-tertiary);
}

.empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px; /* Erhöhte Mindesthöhe für bessere vertikale Zentrierung */
    flex-grow: 1; /* Nimmt verfügbaren Platz ein */
    color: var(--color-text-tertiary);
    font-size: 0.9rem;
    text-align: center;
    border: 1px dashed var(--color-border);
    border-radius: var(--border-radius-sm);
    margin-top: var(--spacing-sm);
    width: 100%; /* Volle Breite für horizontale Zentrierung */
    padding: var(--spacing-md); /* Gleichmäßiger Abstand */
}

.empty-state p {
    width: 100%; /* Volle Breite für den Text */
    margin: 0; /* Entfernt Standard-Margin */
}

/* Desktop-only padding-bottom for sidebar-content */
@media (min-width: 769px) {
    .sidebar-content {
        padding-bottom: 0px; /* Kein padding-bottom am Desktop */
    }
}
/* Ende Sidebar Content Styles */

/* Artikel-spezifische Sidebar-Anpassungen */
.article-navigation {
    margin-bottom: var(--spacing-md);
    flex-shrink: 0;
}

.article-toc {
    margin-bottom: var(--spacing-md);
    flex-shrink: 0;
}

.share-article {
    margin-bottom: var(--spacing-md);
    flex-shrink: 0;
}

/* Sidebar Layout-Korrekturen für verschiedene Seitentypen */
.sidebar-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.sidebar-content > * {
    flex-shrink: 0; /* Verhindert Schrumpfen aller direkten Kinder */
}

/* Sidebar-Element Größen festlegen */
.sidebar-content > .primary-button {
    flex-shrink: 0; /* Button behält seine Größe */
}

.sidebar-content > .article-navigation {
    flex-shrink: 0; /* Navigation behält ihre Größe */
}

.sidebar-content > .article-toc {
    flex-shrink: 0; /* Inhaltsverzeichnis behält seine Größe */
    max-height: 200px;
    overflow-y: auto;
}

.sidebar-content > .share-article {
    flex-shrink: 0; /* Share-Buttons behalten ihre Größe */
}

/* Web Search Zitierungen */
.citation-text {
    position: relative;
    background-color: rgba(67, 97, 238, 0.05);
    border-radius: var(--radius-lg);
    padding: 0 2px;
    transition: background-color 0.2s var(--transition-smooth);
}

.citation-text:hover {
    background-color: rgba(67, 97, 238, 0.1);
}

.citation-link {
    display: inline-block;
    font-size: 0.8em;
    color: var(--color-accent-primary);
    text-decoration: none;
    vertical-align: super;
    margin-left: 2px;
    font-weight: bold;
    transition: all 0.2s var(--transition-smooth);
}

.citation-link:hover {
    color: var(--color-accent-secondary);
    text-decoration: underline;
}

.citation-sources {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--color-border);
    font-size: 0.9rem;
}

.citation-sources h4 {
    margin-top: 0;
    margin-bottom: var(--spacing-xs);
    font-size: 1rem;
    color: var(--color-text-secondary);
}

.citation-sources ol {
    margin: 0;
    padding-left: var(--spacing-lg);
}

.citation-sources li {
    margin-bottom: var(--spacing-xs);
}

.citation-sources a {
    color: var(--color-accent-primary);
    text-decoration: none;
    transition: all 0.2s var(--transition-smooth);
}

.citation-sources a:hover {
    color: var(--color-accent-secondary);
    text-decoration: underline;
}

/* Share Feedback */
.share-feedback {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-accent-primary);
    color: var(--color-bg-primary);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--elevation-3);
    z-index: 1000;
    animation: fadeInUp 0.3s var(--transition-bounce);
}

.share-feedback.fade-out {
    animation: fadeOutDown 0.3s var(--transition-smooth);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes fadeOutDown {
    from {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    to {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
}

/* Sidebar Animation */
.sidebar {
    transition: transform 0.3s var(--transition-smooth);
}

.sidebar.open {
    animation: slideIn 0.3s var(--transition-bounce) forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Welcome Screen Animation */
.welcome-logo {
    animation: pulse 3s infinite var(--transition-smooth);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.welcome-surface {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: none;
    opacity: 0;
}

.welcome-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: clamp(24px, 4vw, 32px);
}

.welcome-shell.welcome-shell--wide {
    max-width: 1400px;
    margin: 0 auto;
    gap: clamp(24px, 3vw, 36px);
}

.welcome-shell--wide .welcome-panel[data-step="feed"] {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

.welcome-panel {
    background: var(--welcome-card-surface, rgba(255, 255, 255, 0.78));
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-radius: var(--radius-lg);
    padding: clamp(24px, 5vw, 40px);
    box-shadow: var(--glass-shadow, 0 26px 70px rgba(40, 46, 70, 0.14));
    border: 1px solid var(--glass-border, rgba(40, 46, 70, 0.08));
    display: flex;
    flex-direction: column;
    gap: clamp(18px, 3vw, 28px);
    animation: fadeIn 0.4s ease forwards;
    width: 100%;
    position: relative;
}

.welcome-panel--scrollable {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

@media (min-width: 1200px) {
    .welcome-shell {
        max-width: 760px;
        gap: clamp(28px, 3vw, 40px);
    }

    .welcome-panel {
        padding: clamp(32px, 3vw, 48px);
    }
}

.welcome-panel[hidden] {
    display: none !important;
}

.welcome-greeting {
    font-size: clamp(2rem, 6vw, 2.8rem);
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0;
}

.dark-mode .welcome-greeting {
    color: #f4f6ff;
}

.welcome-lead,
.welcome-description,
.welcome-feed-intro {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

.dark-mode .welcome-lead,
.dark-mode .welcome-description,
.dark-mode .welcome-feed-intro {
    color: rgba(240, 244, 255, 0.78);
}

.welcome-name-field {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.welcome-name-field input {
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    padding: 12px 16px;
    font-size: 1rem;
    background: var(--color-bg-secondary);
    color: var(--color-text-primary);
    transition: border-color 0.2s var(--transition-smooth), box-shadow 0.2s var(--transition-smooth), background 0.2s var(--transition-smooth);
}

.welcome-name-field input:focus {
    border-color: var(--color-accent-secondary, rgba(76, 108, 251, 0.5));
    box-shadow: 0 0 0 4px rgba(128, 132, 140, 0.16);
    outline: none;
}

.welcome-primary-button {
    align-self: flex-start;
    border: none;
    border-radius: var(--radius-lg);
    padding: 14px 26px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s var(--transition-smooth), box-shadow 0.2s var(--transition-smooth), background 0.2s;
    background: var(--color-accent-primary, #000000);
    color: var(--color-bg-primary, #ffffff);
    box-shadow: none;
}

.welcome-primary-button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

.welcome-primary-button:not([disabled]):hover {
    transform: translateY(-2px);
    box-shadow: none;
}

.welcome-panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.welcome-panel-header h2 {
    margin: 0;
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    font-weight: 600;
    color: var(--color-text-primary);
}

.dark-mode .welcome-panel-header h2 {
    color: #f4f6ff;
}

.welcome-back-button {
    border: none;
    background: rgba(76, 108, 251, 0.12);
    color: var(--color-text-primary);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s var(--transition-smooth), transform 0.2s var(--transition-smooth);
}

.welcome-back-button:hover {
    background: rgba(76, 108, 251, 0.18);
    transform: translateY(-1px);
}

.welcome-preference-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.welcome-preference-empty {
    flex-basis: 100%;
    margin: 0;
    padding: 12px 0;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.welcome-preference-input {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.welcome-preference-input-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.welcome-preference-input-row input {
    flex: 1 1 auto;
    padding: 12px 14px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--color-border);
    background-color: var(--color-bg-secondary);
    font-size: 1rem;
    transition: border-color 0.2s var(--transition-smooth), box-shadow 0.2s var(--transition-smooth);
}

.welcome-preference-input-row input:focus {
    outline: none;
    border-color: var(--color-accent-primary);
    box-shadow: 0 0 0 3px rgba(76, 108, 251, 0.15);
    background-color: var(--color-bg-primary);
}

.welcome-add-preference {
    padding: 12px 18px;
    border: none;
    border-radius: var(--border-radius-sm);
    background-color: var(--color-accent-primary);
    color: var(--color-bg-primary);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s var(--transition-smooth), transform 0.2s var(--transition-smooth);
}

.welcome-add-preference:hover {
    background-color: var(--color-accent-stronger);
    transform: translateY(-1px);
}

.welcome-preference-hint {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin: 0;
}

.welcome-preference {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    color: var(--color-text-primary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s var(--transition-spring);
}

.welcome-preference:hover {
    border-color: var(--color-accent-primary);
    transform: translateY(-1px);
}

.welcome-preference.is-selected {
    background-color: var(--color-accent-primary);
    border-color: var(--color-accent-primary);
    color: var(--color-bg-primary);
    box-shadow: none;
}

.dark-mode .welcome-primary-button {
    background: #ffffff;
    color: #0f141f;
    box-shadow: none;
}

.dark-mode .welcome-primary-button:not([disabled]):hover {
    background: rgba(255, 255, 255, 0.85);
    color: #0f141f;
}

.dark-mode .welcome-preference {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    color: rgba(240, 244, 255, 0.92);
}

.dark-mode .welcome-preference.is-selected {
    background-color: var(--color-accent-primary);
    border-color: var(--color-accent-primary);
    color: var(--color-bg-primary);
}

.dark-mode .welcome-preference-empty,
.dark-mode .welcome-preference-hint {
    color: rgba(240, 244, 255, 0.75);
}

.dark-mode .welcome-preference-input-row input {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
    color: rgba(240, 244, 255, 0.92);
}

.dark-mode .welcome-preference-input-row input:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--color-accent-primary);
    box-shadow: 0 0 0 3px rgba(122, 155, 255, 0.25);
}

.welcome-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: var(--radius-lg);
    background: rgba(76, 108, 251, 0.12);
    color: var(--color-text-primary);
    padding: 6px 14px;
    font-size: 0.9rem;
}

.welcome-tag button {
    border: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-size: 0.9rem;
}

.welcome-feed-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.welcome-feed-date {
    font-size: clamp(1.2rem, 4vw, 1.6rem);
    font-weight: 600;
    color: var(--color-text-primary);
}

.welcome-feed-list {
    display: grid;
    gap: clamp(18px, 2.5vw, 24px);
    grid-template-columns: 1fr;
    background: none;
    padding: clamp(8px, 2.5vw, 16px) 0;
}

@media (min-width: 1500px) {
    .welcome-shell--wide .welcome-feed-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.welcome-feed-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 18px;
    background: var(--welcome-card-surface, var(--home-container-fill, rgba(255, 255, 255, 0.9)));
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--glass-shadow, 0 16px 44px rgba(40, 46, 70, 0.12));
    border: none;
    animation: fadeIn 0.4s ease forwards;
}

.welcome-feed-end-note {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: clamp(6px, 2vw, 12px) clamp(4px, 2vw, 8px);
    color: var(--color-text-primary);
    font-size: clamp(1.05rem, 1.8vw, 1.2rem);
    line-height: 1.35;
}

.welcome-feed-end-line,
.welcome-feed-end-subline {
    margin: 0;
}

.welcome-feed-end-line {
    font-weight: 700;
}

.welcome-feed-end-line .nj-icon-text {
    gap: 10px;
}

.welcome-feed-end-subline {
    font-weight: 600;
}

.dark-mode .welcome-feed-end-note {
    color: var(--color-text-primary, #f7f7f7);
}

.welcome-feed-card.is-loading {
    opacity: 0.6;
}

.welcome-floating-customize {
    position: sticky;
    bottom: clamp(6px, 1vw, 11px);
    align-self: flex-end;
    padding: 12px 18px;
    border-radius: var(--radius-lg);
    border: none;
    background: var(--liquid-chip-fill, var(--site-header-bg, rgba(255, 255, 255, 0.18)));
    box-shadow: none;
    backdrop-filter: var(--site-header-backdrop, blur(24px));
    -webkit-backdrop-filter: var(--site-header-backdrop, blur(24px));
    color: var(--color-text-primary);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    z-index: 3;
    margin-left: auto;
    margin-right: clamp(5px, 1vw, 9px);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.welcome-floating-customize:hover {
    transform: translateY(-1px);
    box-shadow: none;
}

.welcome-floating-customize:active {
    transform: translateY(0);
    box-shadow: none;
}

.dark-mode .welcome-floating-customize {
    background: var(--liquid-chip-fill, var(--site-header-bg, rgba(17, 19, 24, 0.5)));
    color: var(--color-text-primary, #f7f7f7);
    box-shadow: none;
}

/* Public feed (guest homepage) */
html:not(.dark-mode) body.public-feed-page:not(.dark-mode):not(.dark-theme) {
    --home-surface-base: #f2f5f6;
    --home-surface-petrol: rgba(12, 74, 88, 0.062);
    --home-surface-orange: rgba(201, 123, 61, 0.044);
    --home-surface-top-sheen: rgba(255, 255, 255, 0.44);
    --home-surface-bottom-shadow: rgba(16, 18, 28, 0.032);
    background:
        radial-gradient(44% 52% at 8% 0%, var(--home-surface-petrol, rgba(12, 74, 88, 0.055)) 0%, rgba(12, 74, 88, 0) 72%),
        radial-gradient(42% 52% at 92% 0%, var(--home-surface-orange, rgba(201, 123, 61, 0.04)) 0%, rgba(201, 123, 61, 0) 74%),
        linear-gradient(180deg, var(--home-surface-top-sheen, rgba(255, 255, 255, 0.46)) 0%, var(--home-surface-bottom-shadow, rgba(16, 18, 28, 0.035)) 100%),
        var(--home-surface-base, #f3f5f6);
}

body.public-feed-page .main-content.is-public-feed {
    position: relative;
    isolation: isolate;
}

html:not(.dark-mode) body.public-feed-page:not(.dark-mode):not(.dark-theme) .main-content.is-public-feed::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    z-index: -1;
    height: min(760px, 82vh);
    pointer-events: none;
    background:
        radial-gradient(58% 70% at 10% 8%, rgba(12, 74, 88, 0.038) 0%, rgba(12, 74, 88, 0) 66%),
        radial-gradient(54% 68% at 90% 3%, rgba(201, 123, 61, 0.03) 0%, rgba(201, 123, 61, 0) 68%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 92%);
}

.public-feed {
    width: 100%;
    max-width: var(--page-shell-max-width, 1280px);
    margin: 0 auto;
    padding: var(--page-content-offset, 1.3125rem) var(--page-shell-padding-inline, 2.125rem);
}

@media (max-width: 768px) {
    .public-feed {
        padding: var(--page-content-offset-compact, 0.8125rem) var(--page-shell-padding-inline-compact, 1.3125rem);
    }
}

.public-feed-header {
    margin-bottom: var(--space-3);
}

.public-feed-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
    gap: var(--space-3);
    align-items: center;
    min-height: 146px;
    padding: clamp(var(--space-3), 2.8vw, var(--space-4));
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--home-container-fill, var(--color-bg-secondary, #f7f7f8));
    border: 1px solid var(--chrome-pill-border, rgba(16, 18, 28, 0.08));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.86),
        var(--surface-shadow-rest, 0 6px 18px rgba(16, 18, 28, 0.04));
    transition: transform var(--motion-fast) var(--motion-snappy), border-color var(--motion-fast) ease, background var(--motion-standard) ease;
}

.public-feed-hero::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    border-radius: var(--radius-xl) var(--radius-xl) 999px 999px;
    background: linear-gradient(90deg, var(--color-accent-primary), var(--color-accent-secondary), rgba(12, 74, 88, 0.18));
    opacity: 0.72;
    z-index: 1;
}

.public-feed-hero::after {
    display: none;
}

.public-feed-hero--single {
    grid-template-columns: minmax(0, 1fr);
}

.dark-mode .public-feed-hero,
body.dark-mode .public-feed-hero,
body.dark-theme .public-feed-hero {
    background: var(--home-container-fill, rgba(255, 255, 255, 0.12));
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        var(--surface-shadow-rest, 0 8px 22px rgba(0, 0, 0, 0.18));
}

.public-feed-hero__copy {
    position: relative;
    z-index: 2;
    display: grid;
    gap: var(--space-2);
    max-width: min(100%, 1040px);
    padding-top: var(--space-2);
}

.public-feed-hero__copy > p {
    display: none !important;
}

.public-feed-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    font-weight: 760;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--color-accent-secondary);
}

.public-feed-eyebrow::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(201, 123, 61, 0.9);
    box-shadow: 0 0 0 4px rgba(201, 123, 61, 0.12);
}

.public-feed-header h2 {
    margin: 0 0 var(--spacing-xs) 0;
}

.public-feed-header h1 {
    margin: 0 0 var(--spacing-xs) 0;
    font-size: 2.95rem;
    font-family: inherit;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
    font-synthesis: none;
    color: var(--color-text-primary);
    max-inline-size: min(100%, 1040px);
    text-wrap: balance;
}

.region-bubbles-container {
    margin-bottom: var(--space-4);
    min-height: var(--touch-target-min);
}

.public-highlights[hidden] {
    display: none !important;
}

.public-highlights {
    margin-top: calc(var(--spacing-sm) * -0.2);
    margin-bottom: var(--space-4);
}

.public-highlights__root {
    display: grid;
    gap: var(--space-4);
}

.public-highlights__grid {
    --public-highlights-gap: var(--space-3);
    display: flex;
    gap: var(--public-highlights-gap);
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0 var(--space-1);
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.public-highlights__grid::-webkit-scrollbar {
    display: none;
}

.public-highlights__card {
    position: relative;
    display: grid;
    flex: 0 0 calc((100% - (2 * var(--public-highlights-gap))) / 3);
    min-width: 0;
    align-content: start;
    gap: var(--space-2);
    min-height: 100%;
    padding: clamp(var(--space-3), 1rem + 0.6vw, calc(var(--space-3) + var(--space-1)));
    border-radius: var(--radius-lg);
    border: 1px solid var(--chrome-pill-border, rgba(16, 18, 28, 0.08));
    background: var(--home-container-fill, var(--color-bg-secondary, #f7f7f8));
    cursor: pointer;
    transition: transform var(--motion-fast) var(--motion-snappy),
        border-color var(--motion-fast) ease,
        background var(--motion-standard) ease;
}

.public-highlights__grid[data-public-highlight-count="1"] .public-highlights__card {
    flex-basis: 100%;
}

.public-highlights__card:hover {
    transform: translateY(-1px);
}

.public-highlights__card:focus-visible {
    outline: 2px solid var(--color-accent-primary);
    outline-offset: 3px;
}

.public-highlights__card--selector {
    background: var(--home-container-fill, var(--color-bg-secondary, #f7f7f8));
}

.public-highlights__card--graphic {
    min-height: clamp(8.5rem, 7.5rem + 2.4vw, 11rem);
    align-content: stretch;
    overflow: hidden;
}

.public-highlights__graphic-card {
    display: grid;
    min-height: 100%;
    gap: 0.5rem;
    align-content: stretch;
}

.public-highlights__graphic-card--weather {
    grid-template-rows: auto min-content min-content minmax(0, 1fr);
}

.public-highlights__graphic-card--traffic {
    grid-template-rows: auto min-content min-content auto minmax(0, 1fr);
}

.public-highlights__graphic-card--weather {
    --public-highlight-badge-accent: #8a4f09;
    --public-highlight-badge-fill: rgba(230, 154, 59, 0.18);
    --public-highlight-badge-text: #5e3506;
    --public-highlight-badge-icon: #8a4f09;
}

.public-highlights__graphic-card--traffic {
    --public-highlight-badge-accent: #075f6e;
    --public-highlight-badge-fill: rgba(12, 83, 101, 0.16);
    --public-highlight-badge-text: #064a55;
    --public-highlight-badge-icon: #075f6e;
}

.public-highlights__graphic-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.public-highlights__graphic-label {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 0.45rem;
    min-height: 2rem;
    width: fit-content;
    padding: 0 0.82rem;
    border-radius: 999px;
    background: var(--public-highlight-badge-fill, color-mix(in srgb, var(--public-highlight-badge-accent, var(--color-accent-secondary)) 14%, transparent));
    color: var(--public-highlight-badge-text, var(--public-highlight-badge-accent, var(--color-accent-secondary)));
    font-size: 0.82rem;
    font-weight: 850;
    line-height: 1;
    letter-spacing: 0;
}

.public-highlights__graphic-icon {
    display: inline-flex;
    width: 1rem;
    height: 1rem;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: var(--public-highlight-badge-icon, var(--public-highlight-badge-accent, var(--color-accent-secondary)));
}

.public-highlights__graphic-symbol {
    width: 1rem;
    height: 1rem;
}

.public-highlights__graphic-value {
    margin-top: clamp(0.75rem, 2vw, 1.45rem);
    color: var(--color-text-primary);
    font-size: clamp(1.72rem, 1.28rem + 1vw, 2.35rem);
    font-weight: 850;
    line-height: 1;
    letter-spacing: 0;
}

.public-highlights__graphic-status {
    color: var(--color-text-secondary);
    font-size: 0.82rem;
    font-weight: 750;
    line-height: 1.25;
}

.public-highlights__graphic-metrics {
    display: flex;
    flex-wrap: wrap;
    align-self: end;
    gap: 0.5rem;
}

.public-highlights__graphic-metric {
    display: inline-flex;
    min-height: 2rem;
    align-items: center;
    gap: 0.4rem;
    padding: 0 0.62rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: rgba(255, 255, 255, 0.72);
    color: var(--color-text-primary);
}

.public-highlights__graphic-metric-icon {
    width: 0.82rem;
    height: 0.82rem;
    color: var(--public-highlight-badge-accent, var(--color-accent-secondary));
}

.public-highlights__graphic-metric strong {
    font-size: 0.84rem;
    line-height: 1;
    white-space: nowrap;
}

.public-highlights__traffic-value {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-top: clamp(0.75rem, 2vw, 1.45rem);
    color: var(--color-text-primary);
}

.public-highlights__traffic-value span {
    font-size: clamp(2rem, 1.45rem + 1.2vw, 2.85rem);
    font-weight: 850;
    line-height: 0.96;
}

.public-highlights__traffic-levels {
    display: flex;
    align-items: center;
    align-self: end;
    gap: 0.4rem;
}

.public-highlights__traffic-roads {
    display: flex;
    flex-wrap: wrap;
    align-self: start;
    gap: 0.42rem;
}

.public-highlights__traffic-roads span {
    display: inline-flex;
    min-height: 1.65rem;
    align-items: center;
    padding: 0 0.55rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--public-highlight-badge-accent, var(--color-accent-secondary)) 14%, transparent);
    color: var(--public-highlight-badge-accent, var(--color-accent-secondary));
    font-size: 0.76rem;
    font-weight: 850;
    line-height: 1;
}

.public-highlights__traffic-level {
    display: block;
    width: 1rem;
    height: 0.38rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.12);
    transition: width var(--motion-fast) var(--motion-snappy), background var(--motion-fast) ease;
}

.public-highlights__traffic-level.is-active {
    width: 1.55rem;
    background: var(--public-highlight-badge-accent, var(--color-accent-secondary));
}

.public-highlights__badge {
    --public-highlight-badge-accent: #4a78f6;
    --public-highlight-badge-fill: rgba(74, 120, 246, 0.11);
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 0.45rem;
    min-height: 2rem;
    padding: 0 0.82rem;
    border-radius: 999px;
    background: var(--public-highlight-badge-fill);
    color: var(--public-highlight-badge-accent);
    font-size: 0.9rem;
    font-weight: 700;
}

.public-highlights__badge--weather_forecast,
.public-highlights__badge--weather_alert {
    --public-highlight-badge-accent: #b46a16;
    --public-highlight-badge-fill: rgba(230, 154, 59, 0.13);
}

.public-highlights__badge--traffic {
    --public-highlight-badge-accent: #0c5365;
    --public-highlight-badge-fill: rgba(12, 83, 101, 0.12);
}

.public-highlights__badge--event {
    --public-highlight-badge-accent: #0c5365;
    --public-highlight-badge-fill: rgba(12, 83, 101, 0.12);
}

.public-highlights__badge--horoscope {
    --public-highlight-badge-accent: #b76582;
    --public-highlight-badge-fill: rgba(183, 101, 130, 0.13);
}

.dark-mode .public-highlights__badge--weather_forecast,
.dark-mode .public-highlights__badge--weather_alert,
body.dark-mode .public-highlights__badge--weather_forecast,
body.dark-mode .public-highlights__badge--weather_alert {
    --public-highlight-badge-accent: #f2bd74;
    --public-highlight-badge-fill: rgba(230, 154, 59, 0.24);
}

.dark-mode .public-highlights__badge--traffic,
.dark-mode .public-highlights__badge--event,
html.dark-mode .public-highlights__badge--traffic,
body.dark-mode .public-highlights__badge--traffic,
body.dark-mode .public-highlights__badge--event {
    --public-highlight-badge-accent: #8ab7c1;
    --public-highlight-badge-fill: rgba(12, 83, 101, 0.26);
}

.dark-mode .public-highlights__graphic-card--weather,
body.dark-mode .public-highlights__graphic-card--weather,
body.dark-theme .public-highlights__graphic-card--weather {
    --public-highlight-badge-accent: #ffc37a;
    --public-highlight-badge-fill: rgba(255, 195, 122, 0.22);
    --public-highlight-badge-text: rgba(255, 245, 232, 0.98);
    --public-highlight-badge-icon: #ffc37a;
}

.dark-mode .public-highlights__graphic-card--traffic,
body.dark-mode .public-highlights__graphic-card--traffic,
body.dark-theme .public-highlights__graphic-card--traffic {
    --public-highlight-badge-accent: #9bdce8;
    --public-highlight-badge-fill: rgba(155, 220, 232, 0.2);
    --public-highlight-badge-text: rgba(234, 252, 255, 0.98);
    --public-highlight-badge-icon: #9bdce8;
}

.dark-mode .public-highlights__graphic-status,
body.dark-mode .public-highlights__graphic-status,
body.dark-theme .public-highlights__graphic-status {
    color: rgba(245, 246, 247, 0.84);
}

.dark-mode .public-highlights__badge--horoscope,
body.dark-mode .public-highlights__badge--horoscope {
    --public-highlight-badge-accent: #e0a0ba;
    --public-highlight-badge-fill: rgba(183, 101, 130, 0.24);
}

.public-highlights__badge-icon {
    width: 1rem;
    height: 1rem;
    color: currentColor;
}

.public-highlights__card h3 {
    margin: 0;
    color: var(--color-text-primary);
    font-size: 1.22rem;
    line-height: 1.23;
    font-weight: 600;
    letter-spacing: 0;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
    word-break: normal;
}

.public-highlights__card p {
    margin: 0;
    color: var(--color-text-secondary);
    line-height: 1.55;
}

.public-highlights__card-action {
    justify-self: flex-start;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 var(--space-3);
    border-radius: 999px;
    border: 1px solid rgba(201, 123, 61, 0.22);
    background: rgba(255, 255, 255, 0.72);
    color: var(--color-text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    transition: transform var(--transition-speed-fast) var(--animation-curve),
        border-color var(--transition-speed-fast) var(--animation-curve),
        background var(--transition-speed-fast) var(--animation-curve);
}

.public-highlights__card:hover .public-highlights__card-action,
.public-highlights__card:focus-visible .public-highlights__card-action {
    border-color: rgba(201, 123, 61, 0.44);
    background: rgba(255, 255, 255, 0.9);
}

.dark-mode .public-highlights__card-action {
    border-color: rgba(255, 255, 255, 0.16);
    background: linear-gradient(
        160deg,
        var(--home-container-fill, rgba(255, 255, 255, 0.12)) 0%,
        rgba(255, 255, 255, 0.07) 100%
    );
    color: rgba(245, 246, 247, 0.96);
}

.dark-mode .public-highlights__card:hover .public-highlights__card-action,
.dark-mode .public-highlights__card:focus-visible .public-highlights__card-action {
    border-color: rgba(201, 123, 61, 0.42);
    background: linear-gradient(
        160deg,
        var(--home-container-fill, rgba(255, 255, 255, 0.14)) 0%,
        rgba(255, 255, 255, 0.08) 100%
    );
}

.article-sources__button {
    appearance: none;
    border: 1px solid var(--surface-panel-border, rgba(16, 18, 28, 0.08));
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.72)),
        var(--site-header-bg, rgba(255, 255, 255, 0.72));
    color: var(--color-text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 14px;
    border-radius: 999px;
    cursor: pointer;
    backdrop-filter: var(--site-header-backdrop, blur(10px) saturate(112%));
    -webkit-backdrop-filter: var(--site-header-backdrop, blur(10px) saturate(112%));
    transition: transform var(--transition-speed-fast) var(--animation-curve),
        border-color var(--transition-speed-fast) var(--animation-curve),
        background var(--transition-speed-fast) var(--animation-curve),
        color var(--transition-speed-fast) var(--animation-curve);
}

.article-sources__icon {
    width: 15px;
    height: 15px;
    color: var(--color-accent-secondary);
}

.article-sources__button:hover {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.78)),
        var(--site-header-bg, rgba(255, 255, 255, 0.72));
    border-color: rgba(16, 18, 28, 0.14);
    color: var(--color-text-primary);
    transform: translateY(-1px);
}

.article-sources__button:focus-visible {
    outline: 2px solid var(--color-accent-primary);
    outline-offset: 2px;
}

body.article-sources-open,
body.public-highlights-modal-open {
    overflow: hidden;
}

.article-sources__modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 5vw, 40px);
    background: rgba(7, 11, 18, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 2147483000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.article-sources__modal[hidden] {
    display: none;
}

.article-sources__modal.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.article-sources__backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.article-sources__panel {
    position: relative;
    z-index: 1;
    width: min(640px, 100%);
    max-height: 80vh;
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 24px 24px 18px;
    box-shadow: var(--surface-shadow-overlay, var(--elevation-4));
    border: 1px solid rgba(15, 23, 42, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dark-mode .article-sources__panel {
    background: #0f141f;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: var(--surface-shadow-overlay, var(--elevation-4));
}

.article-sources__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.article-sources__header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.article-sources__close {
    appearance: none;
    border: none;
    background: rgba(0, 0, 0, 0.08);
    color: inherit;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.article-sources__close .nj-icon {
    width: 16px;
    height: 16px;
}

.article-sources__close:hover {
    background: rgba(0, 0, 0, 0.14);
    transform: translateY(-1px);
}

.dark-mode .article-sources__close {
    background: rgba(255, 255, 255, 0.12);
}

.dark-mode .article-sources__close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.article-sources__list {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--color-text-primary);
    overflow-y: auto;
    max-height: 60vh;
}

.article-sources__list li {
    margin-bottom: 10px;
    line-height: 1.5;
}

.article-sources__list a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.dark-mode .article-sources__button {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(
        160deg,
        var(--home-container-fill, rgba(255, 255, 255, 0.12)) 0%,
        rgba(255, 255, 255, 0.07) 100%
    );
    color: rgba(245, 246, 247, 0.96);
    box-shadow: none;
}

.dark-mode .article-sources__button:hover {
    background: linear-gradient(
        160deg,
        var(--home-container-fill, rgba(255, 255, 255, 0.12)) 0%,
        rgba(255, 255, 255, 0.07) 100%
    );
    color: rgba(245, 246, 247, 0.96);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: none;
}

.public-highlights__detail-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 5vw, 40px);
    background: rgba(7, 11, 18, 0.82);
    backdrop-filter: blur(20px) saturate(1.08);
    -webkit-backdrop-filter: blur(20px) saturate(1.08);
    z-index: 2147482900;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.public-highlights__detail-modal[hidden] {
    display: none;
}

.public-highlights__detail-modal.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.public-highlights__detail-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.public-highlights__detail-panel {
    position: relative;
    z-index: 1;
    width: min(780px, 100%);
    max-height: 86vh;
    overflow-y: auto;
    border-radius: calc(var(--radius-xl) + 8px);
    border: 1px solid rgba(15, 23, 42, 0.08);
    background:
        radial-gradient(82% 70% at 0% 0%, rgba(230, 154, 59, 0.12) 0%, rgba(230, 154, 59, 0) 66%),
        radial-gradient(72% 78% at 100% 100%, rgba(12, 83, 101, 0.1) 0%, rgba(12, 83, 101, 0) 70%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 249, 249, 0.94) 100%),
        var(--home-surface-bg, #f7f7f8);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.86),
        0 28px 80px rgba(7, 11, 18, 0.24);
    scrollbar-gutter: stable;
}

.public-highlights__detail-panel::before {
    content: "";
    position: sticky;
    top: 0;
    z-index: 2;
    display: block;
    height: 5px;
    background: linear-gradient(90deg, #0c5365 0%, #c97b3d 54%, #8ab7c1 100%);
}

.dark-mode .public-highlights__detail-panel,
body.dark-mode .public-highlights__detail-panel,
body.dark-theme .public-highlights__detail-panel {
    border-color: rgba(255, 255, 255, 0.1);
    background:
        radial-gradient(90% 78% at 0% 0%, rgba(12, 83, 101, 0.28) 0%, rgba(12, 83, 101, 0) 68%),
        radial-gradient(78% 76% at 100% 0%, rgba(201, 123, 61, 0.18) 0%, rgba(201, 123, 61, 0) 70%),
        linear-gradient(180deg, rgba(18, 24, 34, 0.98) 0%, rgba(10, 15, 24, 0.96) 100%),
        #0f141f;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 28px 80px rgba(0, 0, 0, 0.46);
}

.public-highlights__detail-toolbar {
    display: flex;
    justify-content: flex-end;
    position: sticky;
    top: 5px;
    z-index: 3;
    padding: 14px 16px 0;
    background: linear-gradient(180deg, color-mix(in srgb, var(--home-container-fill, #fff) 92%, transparent) 0%, transparent 100%);
}

.public-highlights__detail-close {
    appearance: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(246, 248, 248, 0.78) 100%);
    color: inherit;
    border: 1px solid rgba(15, 23, 42, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.public-highlights__detail-close:hover {
    transform: translateY(-1px);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(238, 242, 242, 0.86) 100%);
    border-color: rgba(201, 123, 61, 0.28);
}

.dark-mode .public-highlights__detail-close {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.08) 100%);
    border-color: rgba(255, 255, 255, 0.12);
}

.dark-mode .public-highlights__detail-toolbar,
body.dark-mode .public-highlights__detail-toolbar {
    background: linear-gradient(180deg, rgba(18, 23, 32, 0.94) 0%, transparent 100%);
}

.dark-mode .public-highlights__detail-close:hover {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.12) 100%);
}

.public-highlights__detail-close .nj-icon {
    width: 18px;
    height: 18px;
}

.public-highlights__detail-content {
    display: grid;
    gap: 18px;
    padding: 0 clamp(1.2rem, 0.85rem + 1.4vw, 2.2rem) clamp(1.35rem, 1rem + 1.6vw, 2.5rem);
}

.public-highlights__detail-meta {
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
}

.public-highlights__detail-title {
    margin: 0;
    font-size: clamp(1.85rem, 1.45rem + 1.1vw, 2.65rem);
    line-height: 1.08;
    letter-spacing: 0;
    text-wrap: balance;
}

.public-highlights__detail-sources {
    justify-self: flex-start;
}

.public-highlights__detail-summary {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.65;
    font-weight: 600;
}

.public-highlights__detail-body {
    display: grid;
    gap: 1rem;
}

.public-highlights__detail-ad-slot[hidden] {
    display: none;
}

.public-highlights__detail-ad-slot .nj-ad-inline {
    margin: var(--space-3) 0;
}

.public-highlights__detail-body p,
.public-highlights__detail-empty {
    margin: 0;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

.public-highlights__insight-panel {
    --public-highlight-insight-accent: #0c5365;
    --public-highlight-insight-text: var(--color-text-primary);
    --public-highlight-insight-muted: #3a4654;
    --public-highlight-insight-faint: #626d7a;
    display: grid;
    gap: 1.05rem;
    padding: clamp(1.05rem, 0.85rem + 0.8vw, 1.55rem);
    border-radius: var(--radius-lg);
    border: 1px solid var(--chrome-pill-border, rgba(16, 18, 28, 0.08));
    background: var(--home-container-fill, var(--color-bg-secondary, #f7f7f8));
    color: var(--public-highlight-insight-text);
}

.public-highlights__insight-panel--weather {
    --public-highlight-insight-accent: #8a4f09;
}

.public-highlights__insight-panel--traffic-high {
    --public-highlight-insight-accent: #c56722;
}

.public-highlights__insight-panel--traffic-low,
.public-highlights__insight-panel--traffic-none {
    --public-highlight-insight-accent: #075f6e;
}

.public-highlights__insight-header {
    display: flex;
    align-items: center;
    gap: 0.72rem;
}

.public-highlights__insight-icon {
    display: inline-flex;
    width: 2.25rem;
    height: 2.25rem;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: color-mix(in srgb, var(--public-highlight-insight-accent) 15%, transparent);
    color: var(--public-highlight-insight-accent);
}

.public-highlights__insight-symbol {
    width: 1.12rem;
    height: 1.12rem;
}

.public-highlights__insight-kicker {
    color: var(--public-highlight-insight-text, var(--color-text-primary));
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.15;
}

.public-highlights__insight-location,
.public-highlights__insight-source {
    color: var(--public-highlight-insight-muted, var(--color-text-secondary));
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1.45;
}

.public-highlights__insight-main {
    display: grid;
    gap: 0.35rem;
}

.public-highlights__insight-value {
    color: var(--public-highlight-insight-text, var(--color-text-primary));
    font-size: clamp(1.7rem, 1.35rem + 1vw, 2.35rem);
    font-weight: 850;
    line-height: 1.04;
}

.public-highlights__insight-main p {
    margin: 0;
    color: var(--public-highlight-insight-muted, var(--color-text-secondary));
    font-weight: 650;
    line-height: 1.58;
}

.public-highlights__insight-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
    gap: 0.65rem;
}

.public-highlights__insight-metric {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.6rem;
    padding: 0.76rem 0.78rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.public-highlights__insight-metric-icon {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
    color: var(--public-highlight-insight-accent);
}

.public-highlights__insight-metric span {
    min-width: 0;
}

.public-highlights__insight-metric-label {
    display: block;
    color: var(--public-highlight-insight-faint, var(--color-text-tertiary, var(--color-text-secondary)));
    font-size: 0.72rem;
    font-weight: 750;
    line-height: 1.1;
}

.public-highlights__insight-metric strong {
    display: block;
    margin-top: 0.12rem;
    color: var(--public-highlight-insight-text, var(--color-text-primary));
    font-size: 0.95rem;
    line-height: 1.2;
}

.public-highlights__traffic-list {
    display: grid;
    gap: 0.75rem;
}

.public-highlights__traffic-item {
    display: grid;
    gap: 0.36rem;
    padding: 0.82rem 0.9rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.public-highlights__traffic-item-meta {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--public-highlight-insight-muted, var(--color-text-secondary));
    font-size: 0.78rem;
    font-weight: 700;
}

.public-highlights__traffic-road {
    display: inline-flex;
    align-items: center;
    min-height: 1.5rem;
    padding: 0 0.56rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--public-highlight-insight-accent) 14%, transparent);
    color: var(--public-highlight-insight-accent);
}

.public-highlights__traffic-item h3 {
    margin: 0;
    color: var(--public-highlight-insight-text, var(--color-text-primary));
    font-size: 1rem;
    line-height: 1.28;
}

.public-highlights__traffic-item p {
    margin: 0;
    color: var(--public-highlight-insight-muted, var(--color-text-secondary));
    line-height: 1.58;
}

.dark-mode .public-highlights__insight-panel,
body.dark-mode .public-highlights__insight-panel,
body.dark-theme .public-highlights__insight-panel {
    --public-highlight-insight-accent: #9bdce8;
    --public-highlight-insight-text: rgba(255, 255, 255, 0.97);
    --public-highlight-insight-muted: rgba(230, 236, 240, 0.82);
    --public-highlight-insight-faint: rgba(218, 224, 230, 0.72);
    background: var(--home-container-fill, rgba(255, 255, 255, 0.12));
    border-color: transparent;
}

.dark-mode .public-highlights__insight-panel--weather,
body.dark-mode .public-highlights__insight-panel--weather,
body.dark-theme .public-highlights__insight-panel--weather {
    --public-highlight-insight-accent: #ffc37a;
}

.dark-mode .public-highlights__insight-panel--traffic-high,
body.dark-mode .public-highlights__insight-panel--traffic-high,
body.dark-theme .public-highlights__insight-panel--traffic-high {
    --public-highlight-insight-accent: #ffb06a;
}

.dark-mode .public-highlights__insight-metric,
body.dark-mode .public-highlights__insight-metric,
body.dark-theme .public-highlights__insight-metric {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
}

.dark-mode .public-highlights__traffic-item,
body.dark-mode .public-highlights__traffic-item,
body.dark-theme .public-highlights__traffic-item {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.12);
}

.dark-mode .public-highlights__graphic-metric,
body.dark-mode .public-highlights__graphic-metric,
body.dark-theme .public-highlights__graphic-metric {
    background: color-mix(in srgb, var(--public-highlight-badge-accent, var(--color-accent-secondary)) 12%, rgba(255, 255, 255, 0.08));
    border-color: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.94);
}

.dark-mode .public-highlights__traffic-level,
body.dark-mode .public-highlights__traffic-level {
    background: rgba(255, 255, 255, 0.18);
}

.dark-mode .public-highlights__traffic-level.is-active,
body.dark-mode .public-highlights__traffic-level.is-active {
    background: var(--public-highlight-badge-accent, var(--color-accent-secondary));
}

.public-highlights__selector-panel {
    width: min(680px, 100%);
}

.public-highlights__selector-content {
    display: grid;
    gap: 18px;
    padding: 0 clamp(1.25rem, 1rem + 1vw, 2rem) clamp(1.5rem, 1.2rem + 1.2vw, 2.4rem);
}

.public-highlights__selector-summary {
    max-width: 42rem;
}

.public-highlights__selector-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.public-highlights__selector-option {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 56px;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(15, 23, 42, 0.04);
    color: var(--color-text-primary);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.public-highlights__selector-option:hover {
    transform: translateY(-1px);
    border-color: rgba(201, 123, 61, 0.32);
    box-shadow: none;
}

.public-highlights__selector-option:focus-visible {
    outline: 2px solid var(--color-accent-primary);
    outline-offset: 2px;
}

.public-highlights__selector-option.is-selected {
    border-color: rgba(201, 123, 61, 0.44);
    background: rgba(201, 123, 61, 0.14);
}

.public-highlights__selector-option-label {
    pointer-events: none;
}

.dark-mode .public-highlights__selector-option {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(245, 246, 247, 0.96);
}

.dark-mode .public-highlights__selector-option:hover {
    border-color: rgba(201, 123, 61, 0.4);
    box-shadow: none;
}

.dark-mode .public-highlights__selector-option.is-selected {
    border-color: rgba(201, 123, 61, 0.5);
    background: rgba(201, 123, 61, 0.16);
}

.region-bubbles .bubbles-container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--spacing-sm);
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
}

.region-bubbles .bubbles-viewport {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: var(--spacing-xs) 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.region-bubbles .bubbles-viewport::-webkit-scrollbar {
    display: none;
}

.region-bubbles .bubble {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex-shrink: 0;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--chrome-pill-border, rgba(16, 18, 28, 0.08));
    background: var(--home-container-fill, var(--color-bg-secondary, #f7f7f8));
    color: var(--color-text-primary, #1d1d1f);
    white-space: nowrap;
    line-height: 1.2;
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform var(--transition-speed-fast) var(--animation-curve),
        background var(--transition-speed-fast) var(--animation-curve),
        color var(--transition-speed-fast) var(--animation-curve),
        border-color var(--transition-speed-fast) var(--animation-curve);
}

.region-bubbles .bubble:hover {
    transform: translateY(-1px);
}

.region-bubbles .bubble.is-active[data-level="bezirk"],
.region-bubbles .bubble.is-active[data-action="personalized"] {
    background: rgba(201, 123, 61, 0.18);
    color: var(--color-accent-primary-text, var(--color-accent-primary));
    border-color: transparent;
    font-weight: 700;
}

.region-bubbles .bubble-icon {
    width: 16px;
    height: 16px;
    color: currentColor;
}

.region-bubbles .bubble-nav-arrow {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--chrome-pill-border, rgba(16, 18, 28, 0.08));
    background: var(--home-container-fill, var(--color-bg-secondary, #f7f7f8));
    color: var(--color-text-primary, #1d1d1f);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0.35;
    transition: opacity var(--transition-speed-fast) var(--animation-curve),
        transform var(--transition-speed-fast) var(--animation-curve);
}

.region-bubbles .bubble-nav-arrow.is-active {
    pointer-events: auto;
    opacity: 1;
    cursor: pointer;
}

.region-bubbles .bubble-nav-arrow.is-active:hover {
    transform: scale(1.06);
}

html.dark-mode .region-bubbles .bubble,
body.dark-mode .region-bubbles .bubble,
html.dark-mode .region-bubbles .bubble-nav-arrow,
body.dark-mode .region-bubbles .bubble-nav-arrow,
html.dark-mode .public-highlights__card,
body.dark-mode .public-highlights__card {
    border-color: transparent;
}

@media (max-width: 768px) {
    .public-highlights__detail-modal {
        align-items: flex-end;
        padding: 10px;
    }

    .public-highlights__detail-panel {
        width: 100%;
        max-height: 92vh;
    }

    .public-highlights__grid {
        --public-highlights-gap: 0.85rem;
        gap: 0.85rem;
        margin-inline: -0.2rem;
        padding: 0 0.2rem 0.35rem;
        scroll-snap-type: x mandatory;
    }

    .public-highlights__card {
        flex-basis: clamp(17.5rem, 84vw, 22rem);
        min-height: 100%;
        padding: 1.15rem;
        border-radius: 1.45rem;
        scroll-snap-align: start;
    }

    .region-bubbles .bubble {
        min-height: 36px;
        padding: 0 12px;
        font-size: 0.84rem;
    }

    .region-bubbles .bubble-nav-arrow {
        width: 30px;
        height: 30px;
    }

    .public-highlights__detail-panel,
    .article-sources__panel {
        border-radius: var(--radius-lg);
    }

    .public-highlights__detail-content {
        gap: 16px;
    }

    .public-highlights__insight-metrics {
        grid-template-columns: 1fr;
    }

    .public-highlights__insight-value {
        font-size: 1.65rem;
    }

    .public-highlights__selector-grid {
        grid-template-columns: 1fr;
    }
}

.news-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.news-feed-layout {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.news-feed-skeleton {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.news-feed-skeleton-grid {
    display: grid;
    gap: var(--spacing-md);
}

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

.news-feed-skeleton-grid--secondary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-skeleton-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    border-radius: var(--border-radius-md);
    border: none;
    background: var(--home-container-fill, rgba(255, 255, 255, 0.94));
    box-shadow: var(--elevation-1);
}

.dark-mode .news-skeleton-card,
body.dark-mode .news-skeleton-card,
body.dark-theme .news-skeleton-card {
    background: linear-gradient(
        160deg,
        var(--home-container-fill, rgba(255, 255, 255, 0.12)) 0%,
        rgba(255, 255, 255, 0.07) 100%
    );
}

.news-skeleton-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 0;
}

.news-skeleton-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: var(--spacing-md);
}

.news-skeleton-line {
    display: block;
    height: 14px;
    border-radius: var(--radius-sm);
}

.news-skeleton-line--title {
    height: 28px;
    width: 72%;
}

.news-skeleton-line--body {
    width: 94%;
}

.news-skeleton-line--body-short {
    width: 68%;
}

.news-skeleton-line--meta {
    width: 38%;
    margin-top: 4px;
}

.news-skeleton-block,
.news-skeleton-line {
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        var(--nj-skeleton-base, rgba(15, 23, 42, 0.08)),
        var(--nj-skeleton-base, rgba(15, 23, 42, 0.08))
    );
}

.news-skeleton-block::after,
.news-skeleton-line::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--nj-skeleton-highlight, rgba(255, 255, 255, 0.52)) 48%,
        transparent 100%
    );
    transform: translateX(-100%);
    animation: nj-news-feed-skeleton-shimmer 1.25s linear infinite;
}

@keyframes nj-news-feed-skeleton-shimmer {
    to {
        transform: translateX(100%);
    }
}

.news-grid {
    display: grid;
    gap: var(--spacing-md);
}

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

.news-grid--featured {
    grid-template-columns: 1fr;
}

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

.news-card {
    background: var(--home-container-fill, rgba(255, 255, 255, 0.94));
    border: none;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--elevation-1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    min-height: 100%;
    transition: transform var(--transition-speed-fast) var(--animation-curve),
        box-shadow var(--transition-speed-fast) var(--animation-curve);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.dark-mode .news-card,
body.dark-mode .news-card,
body.dark-theme .news-card {
    background: linear-gradient(
        160deg,
        var(--home-container-fill, rgba(255, 255, 255, 0.12)) 0%,
        rgba(255, 255, 255, 0.07) 100%
    );
    backdrop-filter: blur(20px) saturate(130%);
    -webkit-backdrop-filter: blur(20px) saturate(130%);
}

.news-card.featured {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: clamp(260px, 30vw, 420px);
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--elevation-2);
}

.news-card > a.card-link {
    position: absolute;
    inset: 0;
    z-index: 2;
    text-decoration: none;
}

.news-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--color-bg-tertiary);
}

.news-card.featured .news-image {
    flex: 1 1 50%;
    aspect-ratio: auto;
    min-height: 100%;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-speed) var(--animation-curve);
}

img.nj-post-photo-skeleton {
    transition: opacity 0.22s ease, filter 0.22s ease, transform var(--transition-speed) var(--animation-curve);
    background-color: var(--nj-skeleton-base, rgba(15, 23, 42, 0.08));
}

img.nj-post-photo-skeleton.nj-post-photo-loading {
    background:
        linear-gradient(90deg, transparent 0%, var(--nj-skeleton-highlight, rgba(255, 255, 255, 0.52)) 48%, transparent 100%),
        linear-gradient(var(--nj-skeleton-base, rgba(15, 23, 42, 0.08)), var(--nj-skeleton-base, rgba(15, 23, 42, 0.08)));
    background-repeat: no-repeat;
    background-size: 220px 100%, 100% 100%;
    background-position: -220px 0, 0 0;
    animation: nj-news-feed-skeleton-shimmer 1.35s linear infinite;
}

img.nj-post-photo-skeleton.nj-post-photo-ready {
    animation: none;
    background: none;
}

img.nj-post-photo-skeleton.nj-post-photo-error {
    animation: none;
    background: linear-gradient(var(--nj-skeleton-base, rgba(15, 23, 42, 0.08)), var(--nj-skeleton-base, rgba(15, 23, 42, 0.08)));
}

.news-card:hover .news-image img {
    transform: scale(1.04);
}

.news-category__icon {
    width: 14px;
    height: 14px;
    color: currentColor;
}

.news-image-copyright-toggle {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(16, 18, 28, 0.72);
    color: #fff;
    box-shadow: var(--elevation-1);
    cursor: pointer;
    pointer-events: auto;
    backdrop-filter: blur(16px) saturate(130%);
    -webkit-backdrop-filter: blur(16px) saturate(130%);
    transition: width var(--transition-speed-fast) var(--animation-curve),
        max-width var(--transition-speed-fast) var(--animation-curve),
        background var(--transition-speed-fast) var(--animation-curve),
        transform var(--transition-speed-fast) var(--animation-curve);
}

.news-image-copyright-toggle:focus-visible {
    outline: 3px solid rgba(211, 123, 43, 0.62);
    outline-offset: 3px;
}

.news-image-copyright-toggle__svg {
    width: 18px;
    height: 18px;
}

.news-image-copyright-toggle__text {
    display: none;
    max-width: 100%;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.22;
    overflow-wrap: anywhere;
    text-align: left;
}

.news-image-copyright-toggle.is-expanded {
    width: auto;
    max-width: min(72%, 320px);
    min-height: 40px;
    padding: 8px 11px;
    justify-content: flex-start;
    background: rgba(16, 18, 28, 0.86);
}

.news-image-copyright-toggle.is-expanded .news-image-copyright-toggle__icon {
    display: none;
}

.news-image-copyright-toggle.is-expanded .news-image-copyright-toggle__text {
    display: block;
}

@media (hover: hover) and (pointer: fine) {
    .news-image-copyright-toggle:hover {
        transform: translateY(-1px);
        background: rgba(16, 18, 28, 0.86);
    }
}

.news-content-area {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    padding: var(--spacing-md);
    position: relative;
    z-index: 3;
}

.news-card.featured .news-content-area {
    flex: 1 1 50%;
    justify-content: center;
}

.news-card h2,
.news-card h3 {
    margin: 0;
    color: var(--color-text-primary);
    line-height: 1.25;
    font-weight: 600;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
    word-break: normal;
}

.news-card h2 a,
.news-card h3 a,
.news-card h2 a:hover,
.news-card h3 a:hover,
.news-title a,
.news-title a:hover {
    color: var(--color-text-primary) !important;
    text-decoration: none;
    display: block;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
    word-break: normal;
}

.news-card.featured h2 {
    font-size: clamp(1.4rem, 1.4vw + 1rem, 2rem);
}

.news-card h3 {
    font-size: 1.22rem;
    line-height: 1.23;
}

.news-card p {
    margin: 0;
    color: var(--color-text-secondary);
    flex: 1 1 auto;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-top: auto;
    padding-top: var(--spacing-sm);
    font-size: 0.85rem;
    color: var(--color-text-tertiary);
    justify-content: flex-start;
    align-items: center;
    text-align: left;
}

.news-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.news-meta-item--signal {
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(17, 22, 33, 0.05);
    color: var(--color-text-secondary);
}

.dark-mode .news-meta-item--signal,
body.dark-mode .news-meta-item--signal,
body.dark-theme .news-meta-item--signal {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(245, 246, 247, 0.88);
}

.news-meta__icon {
    width: 14px;
    height: 14px;
    color: currentColor;
}

.news-meta .news-author {
    margin-left: 0;
}

.news-meta-item__copy {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.news-meta-item__copy time,
.news-meta-item__copy .news-author {
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .public-feed-hero {
        grid-template-columns: 1fr;
        align-items: flex-start;
        min-height: 138px;
    }

    .public-feed-header h1 {
        font-size: 2.45rem;
        line-height: 1.04;
    }

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

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

@media (max-width: 767px) {
    .public-feed-header {
        margin-bottom: var(--space-2);
    }

    .public-feed-hero {
        min-height: 0;
        padding: 0 2px var(--space-1);
        border: 0;
        border-radius: 0;
        overflow: visible;
        background: transparent;
        box-shadow: none;
    }

    .dark-mode .public-feed-hero,
    body.dark-mode .public-feed-hero,
    body.dark-theme .public-feed-hero {
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .public-feed-hero::before {
        display: none;
    }

    .public-feed-hero__copy {
        gap: 0.45rem;
        padding-top: 0;
        max-width: 100%;
    }

    .public-feed-eyebrow {
        gap: 8px;
        font-size: 0.72rem;
    }

    .public-feed-eyebrow::before {
        width: 7px;
        height: 7px;
        box-shadow: 0 0 0 3px rgba(201, 123, 61, 0.12);
    }

    .public-feed-header h1 {
        margin: 0;
        font-size: clamp(1.75rem, 7vw, 2.05rem);
        line-height: 1.08;
    }
}

@media (max-width: 640px) {
    .public-feed-hero {
        padding: 0 2px var(--space-1);
        min-height: 0;
    }

    .public-feed-hero::before {
        display: none;
    }

    .public-feed-header h1 {
        font-size: clamp(1.75rem, 7vw, 2.05rem);
        line-height: 1.08;
    }

    .news-feed-skeleton-grid--lead,
    .news-grid--lead {
        grid-template-columns: 1fr;
    }

    .news-feed-skeleton-grid--secondary {
        grid-template-columns: 1fr;
    }

    .news-grid--secondary,
    .news-grid--rest {
        grid-template-columns: 1fr;
    }

    .news-card.featured {
        flex-direction: column;
        min-height: auto;
        gap: var(--spacing-sm);
    }

    .news-card.featured .news-image {
        aspect-ratio: 16/9;
        flex: 0 0 auto;
        min-height: 0;
    }

    .news-card.featured .news-content-area {
        flex: 0 0 auto;
        justify-content: flex-start;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .news-skeleton-block::after,
    .news-skeleton-line::after {
        animation: none;
    }
}

.public-editorial-sections {
    margin-top: var(--spacing-xl);
}

.public-editorial-sections-root {
    display: grid;
    gap: var(--spacing-lg);
}

.public-editorial-section {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.public-editorial-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.public-editorial-heading h2 {
    margin: 0;
    font-size: clamp(1.2rem, 1.1vw + 0.9rem, 1.6rem);
}

.public-editorial-heading p {
    margin: 8px 0 0 0;
    color: var(--color-text-secondary);
    font-size: 0.96rem;
    line-height: 1.45;
}

.public-editorial-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 999px;
    border: none;
    color: var(--color-text-primary);
    background: var(--home-container-fill, rgba(255, 255, 255, 0.94));
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1;
    box-shadow: var(--elevation-1);
    transition: transform var(--transition-speed-fast) var(--animation-curve),
        box-shadow var(--transition-speed-fast) var(--animation-curve);
    white-space: nowrap;
}

.public-editorial-more:hover {
    box-shadow: var(--elevation-2);
}

.public-editorial-grid {
    display: grid;
    gap: var(--spacing-md);
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (hover: hover) and (pointer: fine) {
    .public-editorial-more:hover {
        transform: translateY(-1px);
    }
}

.dark-mode .public-editorial-section,
body.dark-mode .public-editorial-section,
body.dark-theme .public-editorial-section {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.dark-mode .public-editorial-more,
body.dark-mode .public-editorial-more,
body.dark-theme .public-editorial-more {
    background: linear-gradient(
        160deg,
        var(--home-container-fill, rgba(255, 255, 255, 0.12)) 0%,
        rgba(255, 255, 255, 0.07) 100%
    );
}

.public-feed-continuation {
    display: flex;
    justify-content: center;
    margin-top: var(--spacing-xl);
}

.public-feed-continuation__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--home-container-fill, rgba(255, 255, 255, 0.94));
    color: var(--color-text-primary);
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    box-shadow: var(--elevation-1);
    transition: transform var(--transition-speed-fast) var(--animation-curve),
        box-shadow var(--transition-speed-fast) var(--animation-curve);
}

.public-feed-continuation__link:hover {
    box-shadow: var(--elevation-2);
}

.dark-mode .public-feed-continuation__link,
body.dark-mode .public-feed-continuation__link,
body.dark-theme .public-feed-continuation__link {
    background: linear-gradient(
        160deg,
        var(--home-container-fill, rgba(255, 255, 255, 0.12)) 0%,
        rgba(255, 255, 255, 0.07) 100%
    );
}

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

@media (max-width: 640px) {
    .public-editorial-section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .public-feed-continuation {
        justify-content: stretch;
    }

    .public-feed-continuation__link {
        width: 100%;
    }

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

@media (prefers-reduced-motion: reduce) {
    img.nj-post-photo-skeleton.nj-post-photo-loading {
        animation: none;
        background-position: 0 0, 0 0;
    }

    .public-feed-continuation__link,
    .public-editorial-more,
    .public-editorial-card {
        transition: none;
        transform: none;
    }
}

.welcome-card-illustration {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--welcome-card-placeholder-bg, linear-gradient(135deg, rgba(207, 223, 255, 0.7) 0%, rgba(243, 230, 255, 0.7) 100%));
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-card-illustration img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
}

.welcome-card-illustration img[data-lazy-state="loaded"] {
    opacity: 1;
    visibility: visible;
}

.welcome-card-illustration img[data-lazy-state="error"],
.welcome-card-illustration img[data-lazy-state="queued"],
.welcome-card-illustration img[data-lazy-state="loading"] {
    opacity: 0;
    visibility: hidden;
}

.welcome-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.welcome-card-repeat-badge {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(12, 16, 24, 0.8);
    border: 1px solid rgba(12, 16, 24, 0.92);
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

.welcome-card-repeat-badge__icon {
    width: 14px;
    height: 14px;
}

.dark-mode .welcome-card-repeat-badge {
    background: rgba(255, 153, 51, 0.24);
    border-color: rgba(255, 167, 77, 0.62);
    color: #ffffff;
}

.welcome-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--welcome-card-meta-color, rgba(76, 108, 251, 0.9));
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dark-mode .welcome-card-meta {
    color: var(--welcome-card-meta-color-dark, rgba(240, 244, 255, 0.82));
}

.welcome-card-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text-primary);
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
    word-break: normal;
}

.welcome-card-summary {
    margin: 0;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.welcome-card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.welcome-card-sources {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.welcome-card-sources--empty {
    display: none;
}

.welcome-card-sources-label {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.welcome-card-sources-label__icon {
    width: 14px;
    height: 14px;
}

.welcome-card-sources-list {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.welcome-card-sources-item {
    margin: 0;
}

.welcome-card-sources a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.15em;
    transition: opacity var(--transition-speed-fast, 0.2s);
}

.welcome-card-sources a:hover {
    opacity: 0.85;
}

.welcome-card-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.welcome-card-chip {
    background: var(--welcome-chip-bg, rgba(76, 108, 251, 0.12));
    color: var(--welcome-chip-text, var(--color-text-primary));
    padding: 4px 10px;
    border-radius: var(--radius-lg);
    font-size: 0.8rem;
}

.welcome-reaction-row {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.welcome-reaction-row--overlay {
    margin-top: 12px;
    width: 100%;
}

.welcome-reaction-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    border: 1px solid var(--reaction-border, rgba(16, 18, 28, 0.14));
    background: var(--reaction-bg, rgba(255, 255, 255, 0.62));
    color: var(--reaction-text, var(--color-text-primary));
    min-height: 36px;
    padding: 6px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.welcome-reaction-button__icon {
    width: 15px;
    height: 15px;
}

.welcome-reaction-button:hover {
    background: var(--reaction-hover-bg, rgba(255, 255, 255, 0.82));
    border-color: var(--reaction-hover-border, rgba(16, 18, 28, 0.22));
}

.welcome-reaction-button.is-active {
    background: var(--reaction-active-bg, rgba(201, 123, 61, 0.18));
    border-color: var(--reaction-active-border, rgba(201, 123, 61, 0.48));
    color: var(--reaction-active-text, var(--color-text-primary));
}

.welcome-reaction-button.is-disabled,
.welcome-reaction-button[disabled] {
    cursor: not-allowed;
    opacity: 0.58;
}

.welcome-reaction-row.is-busy .welcome-reaction-button.is-active {
    opacity: 0.78;
}

.welcome-reaction-button:focus-visible {
    outline: 2px solid var(--reaction-focus-ring, rgba(201, 123, 61, 0.72));
    outline-offset: 2px;
}

.dark-mode .welcome-reaction-button {
    background: var(--reaction-bg, rgba(255, 255, 255, 0.05));
    border-color: var(--reaction-border, rgba(255, 255, 255, 0.14));
    color: var(--reaction-text, rgba(244, 246, 250, 0.9));
}

.dark-mode .welcome-reaction-button:hover {
    background: var(--reaction-hover-bg, rgba(255, 255, 255, 0.11));
    border-color: var(--reaction-hover-border, rgba(255, 255, 255, 0.24));
}

.dark-mode .welcome-reaction-button.is-active {
    background: var(--reaction-active-bg, rgba(201, 123, 61, 0.2));
    border-color: var(--reaction-active-border, rgba(201, 123, 61, 0.48));
    color: var(--reaction-active-text, rgba(255, 246, 238, 0.95));
}

.welcome-card-action {
    margin-top: 14px;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    width: auto;
    max-width: 100%;
    background: transparent;
    border: 1px solid var(--glass-border, rgba(40, 46, 70, 0.18));
    color: var(--color-text-primary);
    box-shadow: none;
    padding: 10px 14px;
    min-height: 42px;
    min-width: max-content;
    gap: 10px;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.welcome-card-action__icon,
.welcome-article-action__icon {
    width: 16px;
    height: 16px;
}

.welcome-card-action:hover {
    background: var(--welcome-card-placeholder-bg, rgba(76, 108, 251, 0.08));
    color: var(--color-text-primary);
    transform: none;
    box-shadow: none;
}

.dark-mode .welcome-card-action {
    color: rgba(240, 244, 255, 0.9);
    border-color: var(--glass-border, rgba(255, 255, 255, 0.14));
}

.dark-mode .welcome-card-action:hover {
    background: var(--welcome-card-placeholder-bg, rgba(76, 108, 251, 0.14));
}

.welcome-article-shell {
    background: #ffffff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 92vh;
    overflow-y: auto;
}

.dark-mode .welcome-article-shell {
    background: #0f141f;
}

.welcome-article-hero {
    position: relative;
    min-height: 260px;
    background: linear-gradient(135deg, #0d1b2a 0%, #1b2f47 100%);
    color: #ffffff;
    display: flex;
    align-items: flex-end;
}

.welcome-article-hero__backdrop {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.welcome-article-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 13, 22, 0.05) 0%, rgba(6, 13, 22, 0.45) 100%);
}

.welcome-article-hero__copy {
    position: relative;
    z-index: 1;
    padding: 28px 24px 32px;
    max-width: 840px;
}

.welcome-article-hero__eyebrow {
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.82);
}

.welcome-article-hero__title {
    margin: 0;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    line-height: 1.15;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.welcome-article-hero__meta {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.95rem;
}

.welcome-article-card {
    position: relative;
    z-index: 2;
    margin-top: -22px;
    padding: 22px 22px 26px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: #ffffff;
    box-shadow: none;
}

.dark-mode .welcome-article-card {
    background: #0f141f;
    box-shadow: none;
}

.welcome-article-summary {
    margin: 0 0 14px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1c2c44;
}

.dark-mode .welcome-article-summary {
    color: #e6ecf5;
}

.welcome-article-body {
    max-height: none;
    line-height: 1.65;
    color: #1a2433;
}

.dark-mode .welcome-article-body {
    color: #e0e6f1;
}

.welcome-article-body p {
    margin: 0 0 12px;
}

.welcome-article-body ul {
    padding-left: 18px;
    list-style: disc;
}

.welcome-article-sources {
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid rgba(13, 27, 42, 0.08);
}

.welcome-article-sources__title {
    margin: 0 0 6px;
    font-weight: 700;
    color: var(--color-text-primary);
}

.welcome-article-sources__title .nj-icon-text {
    gap: 8px;
}

.welcome-article-sources__title-icon {
    width: 16px;
    height: 16px;
}

.dark-mode .welcome-article-sources {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.dark-mode .welcome-article-sources__title {
    color: #e6ecf5;
}

.welcome-article-content {
    gap: 16px;
}

.welcome-article-body {
    max-height: none;
    line-height: 1.65;
}

.welcome-article-body p {
    margin: 0 0 12px;
}

.welcome-article-body ul {
    padding-left: 18px;
    list-style: disc;
}

.welcome-article-meta {
    margin: 0 0 6px;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.welcome-article-placeholder {
    margin: 0;
    color: var(--color-text-secondary);
}

.welcome-article-sources {
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid rgba(13, 27, 42, 0.08);
    font-size: 0.95rem;
    color: var(--color-text-secondary);
}

.welcome-article-sources__list {
    margin: 8px 0 0;
    padding-left: 18px;
    list-style: disc;
}

.welcome-article-footer {
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.welcome-article-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
}

.welcome-article-share-button {
    background: var(--gradient-primary, linear-gradient(135deg, #c97b3d 0%, #0c4a58 100%));
    border: none;
    color: var(--share-button-fg, #ffffff);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: none;
}

.welcome-article-share-button:hover {
    transform: translateY(-1px);
    box-shadow: none;
}

.welcome-article-share-button[disabled],
.welcome-article-share-button[data-busy="1"] {
    opacity: 0.7;
    cursor: wait;
    box-shadow: none;
    transform: none;
}

.dark-mode .welcome-article-share-button {
    color: var(--share-button-fg, #000000);
}

.dark-mode .welcome-article-share-button:hover {
    box-shadow: none;
}

.welcome-article-share-status {
    margin: 6px 0 0;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

.welcome-article-share-status.is-error {
    color: #b3261e;
}

.dark-mode .welcome-article-share-status {
    color: rgba(230, 236, 245, 0.82);
}

.dark-mode .welcome-article-share-status.is-error {
    color: #ffb4a9;
}

.welcome-card-placeholder {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--welcome-card-placeholder-bg, linear-gradient(135deg, rgba(207, 223, 255, 0.7) 0%, rgba(243, 230, 255, 0.7) 100%));
    border-radius: var(--radius-lg);
    color: #ffffff;
}

.welcome-card-placeholder__badge {
    position: absolute;
    left: 14px;
    bottom: 14px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(6, 10, 20, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-size: 0.78rem;
    font-weight: 600;
}

.welcome-card-placeholder__icon,
.welcome-feed-end-icon {
    width: 14px;
    height: 14px;
}

.welcome-feed-card--error {
    grid-template-columns: 1fr;
    background: rgba(255, 245, 245, 0.9);
    border: 1px solid rgba(255, 102, 102, 0.3);
    border-radius: var(--radius-lg);
}

.dark-mode .welcome-feed-card--error {
    background: rgba(80, 26, 26, 0.9);
    border-color: rgba(255, 120, 120, 0.4);
}

.welcome-feed-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: var(--spacing-md, 1.5rem) auto;
}

.welcome-panel.welcome-feed-visible .welcome-feed-loader {
    display: none !important;
}

.welcome-feed-status {
    margin-top: 1.25rem;
    text-align: center;
    color: var(--welcome-card-meta-color, rgba(17, 24, 39, 0.72));
    font-size: 0.95rem;
    line-height: 1.5;
}

.welcome-feed-status-message {
    margin: 0 0 0.5rem;
    font-weight: 500;
}

.welcome-feed-status-countdown {
    margin: 0;
    font-size: 0.9rem;
    color: var(--welcome-card-meta-color, rgba(17, 24, 39, 0.6));
}

.welcome-feed-status-remaining {
    font-weight: 600;
    color: var(--welcome-accent-end, #3255ff);
    margin: 0 0.3rem;
}

.welcome-feed-status-minute {
    font-weight: 600;
    color: var(--welcome-card-meta-color, rgba(17, 24, 39, 0.72));
    margin: 0 0.3rem;
}

.welcome-loader-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--welcome-loader-dot, rgba(76, 108, 251, 0.5));
    animation: pulseDot 1.2s infinite ease-in-out;
}

.welcome-loader-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.welcome-loader-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes pulseDot {
    0%, 80%, 100% {
        opacity: 0.4;
        transform: scale(0.85);
    }
    40% {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 720px) {
    .welcome-feed-card {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .welcome-card-illustration {
        width: 100%;
        aspect-ratio: 16/9;
        border-radius: var(--radius-lg);
    }

    .welcome-primary-button {
        align-self: stretch;
        width: 100%;
        max-width: none;
        margin-left: 0;
        margin-right: 0;
        text-align: center;
    }

}

html.dark-mode .welcome-surface {
    background: none;
    opacity: 0;
}

html.dark-mode .welcome-feed-list {
    background: none;
}

html.dark-mode .welcome-feed-card {
    background: var(--welcome-card-surface, rgba(22, 24, 28, 0.9));
    box-shadow: var(--glass-shadow, 0 24px 64px rgba(0, 0, 0, 0.55));
    border: none;
}

html.dark-mode .welcome-card-chip {
    background: var(--welcome-chip-bg, rgba(140, 143, 152, 0.18));
    color: var(--welcome-chip-text, var(--color-text-primary));
}

.welcome-feed-sentinel {
    width: 100%;
    height: 1px;
}

/* Sidebar-Anpassungen */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--site-header-height, 64px);
    min-height: var(--site-header-height, 64px);
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: none;
    flex-shrink: 0; /* Verhindert Schrumpfen */
    box-sizing: border-box;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.dark-mode .sidebar-header {
    border-bottom: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.logo h1 {
    font-size: 1.2rem;
    margin: 0;
    font-weight: 600;
}

.logo h1 a,
.logo h1 a:hover,
.logo h1 a:focus-visible {
    color: var(--color-text-primary) !important;
}

.nj-logo-slot {
    --nj-logo-slot-width: 32px;
    --nj-logo-slot-height: 32px;
    position: relative;
    display: inline-flex;
    width: var(--nj-logo-slot-width);
    height: var(--nj-logo-slot-height);
    flex: 0 0 var(--nj-logo-slot-width);
    overflow: hidden;
    line-height: 0;
}

.nj-logo-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
}

.nj-logo-image--dark {
    opacity: 0;
    visibility: hidden;
}

.dark-mode .nj-logo-image--light {
    opacity: 0;
    visibility: hidden;
}

.dark-mode .nj-logo-image--dark {
    opacity: 1;
    visibility: visible;
}

.logo svg,
.logo img {
    color: var(--color-accent-primary);
}

/* Sidebar close button - only visible on mobile */
.sidebar-close-button {
    display: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: var(--color-text-primary);
    background-color: transparent;
    transition: all 0.2s var(--transition-smooth);
    cursor: pointer;
    border: none;
    outline: none;
}

.sidebar-close-button:hover {
    background-color: var(--color-bg-tertiary);
}

.sidebar-close-button:active {
    transform: scale(0.95);
}

/* Show close button only on mobile when sidebar is open */
@media (max-width: 767px) {
    .sidebar.open .sidebar-close-button {
        display: flex;
    }

    .sidebar-header {
        border-bottom: none; /* Entfernt die untere Border auf Mobilgeräten */
    }
}

/* Sidebar-Footer-Anpassungen */
.sidebar-footer {
    padding: var(--spacing-md);
    padding-bottom: calc(var(--spacing-md) + var(--sidebar-bottom-gap, var(--safe-area-inset-bottom, 0px)));
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    position: sticky;
    bottom: 0;
    background: inherit;
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
}

.user-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--spacing-sm);
    background-color: transparent; /* Angepasst von tertiary */
    border: 1px solid var(--color-border); /* Sicherstellen, dass Border da ist */
    border-radius: var(--border-radius-sm);
    color: var(--color-text-secondary);
    transition: all 0.2s var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.user-info:hover {
    border-color: var(--color-accent-primary);
}

/* Dark Mode Anpassung für User-Info */
.dark-mode .user-info {
    border-color: var(--color-border); /* Verwendung der CSS-Variable für konsistentes Aussehen */
}


.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--color-bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
}

.user-avatar svg {
    stroke: var(--color-text-secondary);
    color: var(--color-text-secondary);
}

.user-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 400; /* Standardgewicht wie im dropdown-button */
    font-size: 0.9rem; /* Angepasst an .empty-state */
    color: var(--color-text-secondary); /* Angepasst an "Keine gespeicherten Unterhaltungen" */
}

/* Anpassung für das ausgewählte Bundesland, damit es mit .user-name übereinstimmt */
#region-dropdown-button #selected-region-display,
.dropdown-button #selected-region-display,
#selected-region-display {
    font-weight: normal !important; /* Exakt gleiche Stärke wie .user-name */
    font-size: 14.4px !important; /* Exakt gleiche Größe wie .user-name */
    color: var(--color-text-secondary) !important; /* Angepasst an "Keine gespeicherten Unterhaltungen" */
    border: none !important;
}

.user-status {
    font-size: 0.8rem;
    color: var(--color-text-tertiary);
    display: none; /* Ausblenden, um ein einheitlicheres Erscheinungsbild zu erzielen */
}

/* Premium editorial chrome refinements */
.icon-button {
    border: 1px solid transparent;
}

.icon-button:hover {
    background-color: var(--chrome-pill-fill, rgba(255, 255, 255, 0.72));
    border-color: var(--chrome-pill-border, rgba(16, 18, 28, 0.08));
    transform: translateY(-1px);
}

.site-header__discover-button,
.site-header__story-link,
.site-header__signal,
.sidebar-home-link,
.public-feed-hero,
.public-highlights__card {
    transition: transform 0.22s var(--motion-snappy), box-shadow 0.22s var(--motion-snappy), border-color 0.22s ease, background 0.22s ease;
}

.site-header__discover-button:hover,
.site-header__discover-button:focus-visible,
.site-header__story-link:hover,
.site-header__story-link:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(201, 123, 61, 0.28);
    box-shadow: none;
}

#header-post-search-toggle.site-header__discover-button:hover,
#header-post-search-toggle.site-header__discover-button:focus-visible {
    background: var(--chrome-shell-fill-strong, rgba(255, 255, 255, 0.96));
    color: var(--color-text-primary, #10131a);
}

html.dark-mode #header-post-search-toggle.site-header__discover-button:hover,
html.dark-mode #header-post-search-toggle.site-header__discover-button:focus-visible,
body.dark-mode #header-post-search-toggle.site-header__discover-button:hover,
body.dark-mode #header-post-search-toggle.site-header__discover-button:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    color: var(--color-text-primary, #f5f6f7);
}

.site-header__discover-button:focus-visible,
.site-header__story-link:focus-visible,
.site-header__signal:focus-visible,
.sidebar-home-link:focus-visible {
    outline: 2px solid rgba(201, 123, 61, 0.44);
    outline-offset: 3px;
}

#header-post-search-toggle.site-header__discover-button:hover,
#header-post-search-toggle.site-header__discover-button:focus-visible,
.site-header__quick-action:hover,
.site-header__quick-action:focus-visible,
.site-header__profile-pill:hover,
.site-header__profile-pill:focus-visible,
.header-actions > .icon-button:hover,
.header-actions > .icon-button:focus-visible,
.site-header__menu-button:hover,
.site-header__menu-button:focus-visible {
    border-color: transparent;
    box-shadow: none;
    transform: none;
}

.contact-submission-page {
    width: min(100%, 1180px);
    margin: 0 auto;
    padding: 0 var(--spacing-lg, 2rem) var(--spacing-xxl, 4rem);
}

.contact-submission-hero,
.contact-submission-form-shell {
    border-radius: var(--radius-xl);
    border: 1px solid var(--surface-panel-border, rgba(16, 18, 28, 0.08));
    background: var(--surface-panel-fill, rgba(255, 255, 255, 0.84));
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.contact-submission-hero {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: clamp(1.35rem, 1rem + 1vw, 2rem);
}

.contact-submission-hero__eyebrow,
.contact-submission-hero__kicker {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 0.5rem;
    min-height: 2rem;
    padding: 0 0.85rem;
    border-radius: 999px;
    background: rgba(201, 123, 61, 0.14);
    color: var(--color-accent-primary-text, var(--color-accent-primary, #c97b3d));
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.contact-submission-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 2.4vw + 1.2rem, 3.35rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
    text-wrap: balance;
}

.contact-submission-hero p {
    margin: 0;
    max-width: 62ch;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.contact-submission-form-shell {
    padding: clamp(1.2rem, 1rem + 0.8vw, 1.8rem);
}

.contact-submission-form {
    display: grid;
    gap: 1rem;
}

.contact-submission-trap {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-submission-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.contact-submission-field {
    display: grid;
    gap: 0.45rem;
}

.contact-submission-field--full {
    grid-column: 1 / -1;
}

.contact-submission-field span,
.contact-submission-checkbox span {
    color: var(--color-text-primary);
    font-size: 0.95rem;
    font-weight: 600;
}

.contact-submission-field input,
.contact-submission-field textarea {
    width: 100%;
    min-height: 3rem;
    padding: 0.9rem 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(16, 18, 28, 0.12);
    background: rgba(255, 255, 255, 0.78);
    color: var(--color-text-primary);
}

.contact-submission-field textarea {
    min-height: 10rem;
    resize: vertical;
}

.contact-submission-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.contact-submission-checkbox input {
    margin-top: 0.15rem;
}

.contact-submission-file-hint {
    color: var(--color-text-tertiary);
    font-size: 0.84rem;
    line-height: 1.45;
}

.contact-submission-notice {
    padding: 0.95rem 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(16, 18, 28, 0.08);
    background: rgba(255, 255, 255, 0.74);
    color: var(--color-text-primary);
}

.contact-submission-notice--success {
    border-color: rgba(25, 135, 84, 0.22);
    background: rgba(25, 135, 84, 0.08);
}

.contact-submission-notice--error {
    border-color: rgba(191, 64, 64, 0.22);
    background: rgba(191, 64, 64, 0.08);
}

.contact-submission-form__actions {
    display: flex;
    justify-content: flex-start;
}

.contact-submission-turnstile {
    display: flex;
    justify-content: flex-start;
    margin-top: 1.15rem;
    min-height: 65px;
}

.contact-submission-form__actions .button-primary {
    min-height: 3rem;
    padding: 0 1.3rem;
    border-radius: 999px;
    border: 1px solid var(--color-accent-primary, #c97b3d);
    background: var(--color-accent-primary, #c97b3d);
    color: #ffffff;
    font-weight: 700;
    box-shadow: none;
}

.contact-submission-form__actions .button-primary:hover,
.contact-submission-form__actions .button-primary:focus-visible {
    border-color: color-mix(in srgb, var(--color-accent-primary, #c97b3d) 88%, #000000 12%);
    background: color-mix(in srgb, var(--color-accent-primary, #c97b3d) 88%, #000000 12%);
    color: #ffffff;
    box-shadow: none;
}

.contact-submission-form__actions .button-primary:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--color-accent-primary, #c97b3d) 36%, transparent);
    outline-offset: 3px;
}

.dark-mode .contact-submission-hero,
.dark-mode .contact-submission-form-shell,
body.dark-mode .contact-submission-hero,
body.dark-mode .contact-submission-form-shell {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
}

.dark-mode .contact-submission-field input,
.dark-mode .contact-submission-field textarea,
body.dark-mode .contact-submission-field input,
body.dark-mode .contact-submission-field textarea {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
}

.help-center-page {
    width: min(100%, 1180px);
    margin: 0 auto;
    padding: 0 var(--spacing-lg, 2rem) var(--spacing-xxl, 4rem);
}

.help-center-hero,
.help-center-card,
.help-center-links {
    border-radius: var(--radius-xl);
    border: 1px solid var(--surface-panel-border, rgba(16, 18, 28, 0.08));
    background: var(--surface-panel-fill, rgba(255, 255, 255, 0.84));
    box-shadow: none;
}

.help-center-hero {
    margin-bottom: 1.25rem;
    padding: clamp(1.35rem, 1rem + 1vw, 2rem);
}

.help-center-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 2.4vw + 1.2rem, 3.35rem);
    line-height: 1;
    text-wrap: balance;
}

.help-center-hero p {
    margin: 0.8rem 0 0;
    max-width: 66ch;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

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

.help-center-card,
.help-center-links {
    padding: clamp(1.15rem, 1rem + 0.7vw, 1.6rem);
}

.help-center-card h2,
.help-center-links h2 {
    margin: 0 0 0.65rem;
    font-size: clamp(1.15rem, 0.7vw + 1rem, 1.45rem);
    line-height: 1.2;
}

.help-center-card p {
    margin: 0;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.help-center-links {
    margin-top: 1rem;
}

.help-center-link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.help-center-link-list a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0 1rem;
    border-radius: 999px;
    background: rgba(201, 123, 61, 0.12);
    color: var(--color-accent-primary, #c97b3d);
    font-weight: 700;
    text-decoration: none;
}

.help-center-link-list a:focus-visible {
    outline: 3px solid rgba(201, 123, 61, 0.35);
    outline-offset: 3px;
}

.dark-mode .help-center-hero,
.dark-mode .help-center-card,
.dark-mode .help-center-links,
body.dark-mode .help-center-hero,
body.dark-mode .help-center-card,
body.dark-mode .help-center-links {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
}

@media (max-width: 960px) {
    .help-center-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .help-center-page {
        padding-right: var(--spacing-md, 1.25rem);
        padding-left: var(--spacing-md, 1.25rem);
    }

    .help-center-grid {
        grid-template-columns: 1fr;
    }
}

.nj-icon--brand,
.news-category__icon,
.news-meta__icon,
.article-category__icon,
.article-sources__icon,
.welcome-card-sources-label__icon,
.welcome-card-action__icon,
.welcome-article-action__icon,
.welcome-card-placeholder__icon,
.welcome-feed-end-icon {
    color: var(--icon-accent-primary, var(--color-accent-primary));
}
