:root {
    color-scheme: light;
    --bg-color: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --accent-color: #000000;
    --border-color: #eeeeee;
    --hover-bg: #f5f5f5;
    --font-primary: 'Inter', 'Noto Sans SC', sans-serif;
    --container-width: 1200px;
    --header-height: 70px;
    --transition-speed: 0.3s;

    /* Semantic theme tokens: keep the editorial look while respecting system light/dark mode. */
    --site-bg: #f7f7f4;
    --site-surface: #ffffff;
    --site-surface-soft: #f8fafc;
    --site-text: #101827;
    --site-text-soft: #334155;
    --site-muted: #66758a;
    --site-border: rgba(17, 24, 39, 0.12);
    --site-border-soft: rgba(17, 24, 39, 0.08);
    --site-shadow: rgba(0, 0, 0, 0.10);
    --site-accent: #2b3a4a;
    --site-danger-bg: rgba(255, 241, 242, 0.72);
    --site-danger-border: rgba(190, 18, 60, 0.22);
    --site-danger-text: #8a1230;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-speed);
}

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

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.site-header {
    height: var(--header-height);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.site-header .container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.site-nav {
    display: flex;
    gap: 30px;
}

.site-nav a {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--text-primary);
}

.site-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--text-primary);
    transition: width var(--transition-speed);
}

.site-nav a:hover::after,
.site-nav a.active::after {
    width: 100%;
}

.site-content {
    padding: 40px 0;
    min-height: calc(100vh - var(--header-height) - 100px);
}

/* Homepage */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 0;
}

.random-photo-container {
    width: 100%;
    max-width: 900px;
    height: 600px;
    overflow: hidden;
    border-radius: 4px;
    /* Slightly refined corners */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    /* Softer shadow */
    margin-bottom: 40px;
    position: relative;
    background-color: #f0f0f0;
}

.random-photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease;
}

.random-photo-container img.loaded {
    opacity: 1;
}

.motto-container {
    max-width: 600px;
}

.motto {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 20px;
    min-height: 3rem;
    /* Prevent layout shift */
}

.motto-author {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Photo Gallery - Masonry */
.gallery-container {
    padding-bottom: 60px;
}

.gallery-grid {
    column-count: 3;
    column-gap: 20px;
    margin-bottom: 20px;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    background-color: #f0f0f0;
    border-radius: 2px;
    animation: fadeInUp 0.6s ease backwards;
}

.gallery-item img {
    width: 100%;
    height: auto;
    /* Allow natural height for masonry */
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Loading Spinner */
.loading-sentinel {
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    opacity: 0;
    transition: opacity 0.3s;
}

.loading-sentinel.visible {
    opacity: 1;
}

.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--text-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typography Polish */
h1,
h2,
h3 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

.motto {
    font-family: 'Noto Serif SC', serif;
    /* Use Serif for motto if available, else standard */
    font-weight: 400;
}

.site-nav a {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

/* Responsive */
@media (max-width: 900px) {
    .gallery-grid {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        column-count: 1;
    }
}

/* Footer */
.site-footer {
    padding: 60px 0;
    margin-top: auto;
    background-color: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    /* Very subtle border */
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.footer-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.6;
}

.footer-info p {
    margin: 0;
}

/* Admin Professional Polish */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
}

.admin-header h1 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin: 0;
}

.upload-area {
    background-color: #fafafa;
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    padding: 50px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 40px;
}

.upload-area:hover {
    background-color: #fff;
    border-color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.upload-area p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.upload-area input[type="file"] {
    display: block;
    margin: 0 auto 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    line-height: normal;
}

.btn-primary {
    background-color: var(--text-primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: #000;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-danger {
    background-color: white;
    color: #ff4757;
    border-color: #ff4757;
}

.btn-danger:hover {
    background-color: #ff4757;
    color: white;
}

.admin-card-overlay {
    background: rgba(255, 255, 255, 0.95);
    flex-direction: column;
    gap: 12px;
    padding: 20px;
}

.admin-action-btn {
    width: 100%;
    max-width: 140px;
    font-size: 0.85rem;
    padding: 8px 0;
}

.pagination-btn {
    display: block;
    width: 200px;
    margin: 40px auto;
    text-align: center;
}

/* Login Professional Polish */
.login-wrapper {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.login-form input {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s;
    outline: none;
    background-color: #fafafa;
}

.login-form input:focus {
    border-color: var(--text-primary);
    background-color: #fff;
}

.login-title {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: -0.01em;
}

/* Utilities */
.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.w-100 {
    width: 100%;
}

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

/* Final UX Polish */
/* scroll-behavior: smooth removed for better mobile scroll performance */

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--text-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 9999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: #000;
    transform: translateY(-2px);
}

/* Mobile Optimizations */
@media (max-width: 600px) {
    .site-nav {
        gap: 20px;
    }

    .site-nav a {
        padding: 10px 5px;
        /* Increase touch target */
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }

    /* Safe Area for iPhone X+ */
    .site-content {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }

    .site-footer {
        padding-bottom: calc(60px + env(safe-area-inset-bottom));
    }
}
/* Sky Film UI refresh 2026-05-07 */
:root {
    --bg-color: #f6fbff;
    --text-primary: #1f2933;
    --text-secondary: #77879a;
    --accent-color: #7db7e8;
    --accent-soft: rgba(125, 183, 232, 0.16);
    --paper-color: #fffdf8;
    --paper-shadow: 0 24px 80px rgba(63, 110, 160, 0.16);
    --border-color: rgba(125, 183, 232, 0.22);
    --font-display: 'Cormorant Garamond', 'Noto Serif SC', serif;
    --font-serif-cn: 'Noto Serif SC', serif;
}

body {
    background:
        radial-gradient(circle at 15% 10%, rgba(181, 222, 255, .55), transparent 32vw),
        radial-gradient(circle at 85% 5%, rgba(255, 238, 210, .55), transparent 30vw),
        linear-gradient(180deg, #f6fbff 0%, #fffdf8 58%, #f8fbff 100%);
    min-height: 100vh;
}

.sky-grain {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 0;
    opacity: .22;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
    mix-blend-mode: multiply;
}

.site-header,
.site-content,
.site-footer {
    position: relative;
    z-index: 1;
}

.site-header {
    border-bottom: 1px solid rgba(255,255,255,.68);
    background: rgba(248, 252, 255, 0.76);
    box-shadow: 0 12px 40px rgba(125, 183, 232, .08);
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo a,
.footer-logo {
    font-family: var(--font-display);
    letter-spacing: .12em;
    font-weight: 700;
}

.logo-subtitle {
    margin-top: 6px;
    color: var(--text-secondary);
    font-size: .68rem;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.nav-heart {
    font-size: 1.2rem;
    color: var(--accent-color);
}

.doodle-cloud {
    pointer-events: none;
    position: fixed;
    z-index: 0;
    color: rgba(125, 183, 232, .22);
    font-family: var(--font-serif-cn);
    font-size: 8rem;
    line-height: 1;
    filter: blur(.2px);
}

.doodle-cloud-left {
    left: 3vw;
    top: 18vh;
    transform: rotate(-10deg);
}

.doodle-cloud-right {
    right: 6vw;
    top: 13vh;
    transform: rotate(12deg);
}

.sky-hero {
    padding: 42px 0 80px;
    gap: 36px;
}

.hero-copy {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.eyebrow {
    margin-bottom: 12px;
    color: var(--accent-color);
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1 {
    font-family: var(--font-serif-cn);
    font-size: clamp(2.3rem, 5vw, 4.6rem);
    font-weight: 400;
    letter-spacing: -.04em;
    color: #24384b;
}

.motto-card {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    max-width: 720px;
    margin: 24px auto 18px;
    padding: 22px 34px;
    border: 1px solid rgba(125, 183, 232, .24);
    border-radius: 999px;
    background: rgba(255, 253, 248, .68);
    box-shadow: 0 16px 48px rgba(125, 183, 232, .10);
    backdrop-filter: blur(16px);
}

.motto {
    margin: 0;
    min-height: auto;
    font-family: var(--font-serif-cn);
    font-size: clamp(1.1rem, 2vw, 1.55rem);
    font-weight: 400;
    line-height: 1.8;
    transition: opacity .5s ease;
}

.motto-mark,
.motto-doodle {
    color: rgba(125, 183, 232, .72);
    font-family: var(--font-display);
}

.motto-mark {
    position: absolute;
    left: 18px;
    top: -10px;
    font-size: 3rem;
}

.motto-doodle {
    margin-top: 4px;
    font-size: .85rem;
    letter-spacing: .4em;
}

.hero-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--text-secondary);
    font-size: .82rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero-meta span {
    padding: 7px 12px;
    border: 1px solid rgba(125,183,232,.2);
    border-radius: 999px;
    background: rgba(255,255,255,.42);
}

.polaroid-card {
    width: min(920px, 100%);
    height: auto;
    min-height: 560px;
    margin: 8px auto 0;
    padding: 16px 16px 48px;
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 18px;
    background: var(--paper-color);
    box-shadow: var(--paper-shadow);
    transform: rotate(-.45deg);
}

.polaroid-card::before {
    content: '';
    position: absolute;
    inset: 12px 12px 44px;
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.38);
    pointer-events: none;
    z-index: 2;
}

.polaroid-card img {
    height: min(68vh, 720px);
    border-radius: 12px;
    object-fit: cover;
    filter: saturate(.94) contrast(.98) brightness(1.02);
}

.polaroid-caption {
    position: absolute;
    left: 26px;
    right: 26px;
    bottom: 15px;
    display: flex;
    justify-content: space-between;
    color: #8a8f96;
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: .08em;
}

.page-hero {
    max-width: 760px;
    margin: 18px auto 42px;
    text-align: center;
}

.page-hero p:last-child {
    margin-top: 10px;
    color: var(--text-secondary);
}

.gallery-grid {
    column-gap: 26px;
}

.film-tile {
    margin-bottom: 26px;
    padding: 9px 9px 30px;
    border-radius: 14px;
    background: var(--paper-color);
    box-shadow: 0 16px 42px rgba(63, 110, 160, .12);
    transform: translateZ(0);
}

.film-tile:nth-child(3n+1) { transform: rotate(-.35deg); }
.film-tile:nth-child(3n+2) { transform: rotate(.28deg); }
.film-tile:nth-child(3n) { transform: rotate(-.12deg); }

.film-tile img {
    border-radius: 9px;
    filter: saturate(.95) contrast(.98);
}

.gallery-overlay {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 14px;
    background: linear-gradient(180deg, transparent 30%, rgba(30, 70, 105, .30));
    color: #fff;
    font-size: .78rem;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.gallery-overlay span {
    padding: 6px 10px;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 999px;
    background: rgba(255,255,255,.16);
    backdrop-filter: blur(8px);
}

.paper-panel,
.login-container {
    border: 1px solid rgba(125, 183, 232, .22);
    background: rgba(255, 253, 248, .74);
    box-shadow: 0 20px 60px rgba(63, 110, 160, .12);
    backdrop-filter: blur(16px);
}

.section-title,
.admin-header h1,
.login-title {
    font-family: var(--font-serif-cn);
    font-weight: 400;
}

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

.inline-delete-form button {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn {
    border-radius: 999px;
}

.btn-primary {
    background: #7db7e8;
    border-color: #7db7e8;
}

.btn-primary:hover {
    background: #5fa4dc;
    border-color: #5fa4dc;
}

.back-to-top {
    border: 1px solid rgba(125, 183, 232, .2);
    background: rgba(255, 253, 248, .82);
    color: #5d91bd;
    box-shadow: 0 10px 30px rgba(63, 110, 160, .14);
}

.site-footer {
    color: var(--text-secondary);
}

@media (max-width: 900px) {
    .gallery-grid { column-count: 2; }
    .polaroid-card { min-height: auto; padding-bottom: 44px; }
    .polaroid-card img { height: 62vh; }
}

@media (max-width: 640px) {
    .site-header { height: auto; padding: 14px 0; }
    .site-header .container { align-items: flex-start; gap: 14px; }
    .site-nav { gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
    .gallery-grid { column-count: 1; }
    .motto-card { border-radius: 24px; padding: 18px 22px; }
    .hero-meta { font-size: .72rem; }
    .polaroid-card { transform: none; padding: 10px 10px 40px; }
    .polaroid-card img { height: 58vh; }
    .doodle-cloud { display: none; }
}

/* UI polish batch 2026-05-07 */
:root {
    color-scheme: light;
}

.hero-subline {
    margin: 10px auto 0;
    max-width: 640px;
    color: var(--text-secondary);
    font-size: 1rem;
    letter-spacing: .03em;
}

.site-nav a.active {
    color: #1f3f5b;
    font-weight: 600;
}

.site-nav a.active::after {
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #7db7e8, #9ed0f5);
}

.site-nav a.active {
    background: rgba(125, 183, 232, .12);
    border-radius: 999px;
    padding: 6px 12px;
}

.polaroid-caption {
    color: rgba(95, 105, 116, .66);
    font-size: .9rem;
}

.random-photo-container img {
    transition: opacity .9s ease, transform .9s ease;
}

.film-tile:nth-child(3n+1) { transform: rotate(-.20deg); }
.film-tile:nth-child(3n+2) { transform: rotate(.16deg); }
.film-tile:nth-child(3n) { transform: rotate(-.10deg); }

.gallery-overlay {
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.photo-time {
    display: inline-block;
    font-style: normal;
    font-size: .68rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(255,255,255,.84);
    opacity: 0;
    transform: translateY(3px);
    transition: all .25s ease;
}

.film-tile:hover .photo-time {
    opacity: 1;
    transform: translateY(0);
}

.hero-meta #skyMood {
    color: #5f9fce;
    border-color: rgba(125, 183, 232, .38);
}

.admin-gallery-item {
    padding-bottom: 38px;
}

.admin-file-meta {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 10px;
    font-size: .72rem;
    color: #6f7f90;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: .04em;
}

.upload-area.drag-active {
    border-color: #7db7e8;
    box-shadow: 0 20px 60px rgba(63, 110, 160, .18), inset 0 0 0 2px rgba(125,183,232,.28);
    transform: translateY(-1px);
}

.btn-danger {
    background: #d36f82;
    border-color: #d36f82;
}

.btn-danger:hover {
    background: #c05f72;
    border-color: #c05f72;
}

@media (max-width: 640px) {
    .sky-hero { padding-top: 18px; }
    .hero-copy h1 { font-size: clamp(1.9rem, 9vw, 2.5rem); }
    .hero-subline { font-size: .9rem; }
    .motto-card { padding: 14px 16px; border-radius: 16px; }
    .motto { font-size: 1rem; line-height: 1.65; }
    .hero-meta { gap: 8px; }
    .hero-meta span { padding: 6px 10px; }
    .polaroid-card img { height: 54vh; min-height: 360px; }
    .site-nav a.active { padding: 4px 10px; }
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #0f1620;
        --text-primary: #e9f0f7;
        --text-secondary: #9eb2c4;
        --accent-color: #7db7e8;
        --paper-color: #182431;
        --border-color: rgba(125,183,232,.22);
        --hover-bg: #172231;
        --site-bg: #0f1620;
        --site-surface: #182431;
        --site-surface-soft: #131d29;
        --site-text: #eef4fb;
        --site-text-soft: #c8d4e3;
        --site-muted: #9eb2c4;
        --site-border: rgba(226, 232, 240, 0.16);
        --site-border-soft: rgba(226, 232, 240, 0.10);
        --site-shadow: rgba(0, 0, 0, 0.38);
        --site-accent: #9cc8ee;
        --site-danger-bg: rgba(127, 29, 29, 0.22);
        --site-danger-border: rgba(248, 113, 113, 0.24);
        --site-danger-text: #fecaca;
        color-scheme: dark;
    }

    body {
        background:
            radial-gradient(circle at 15% 10%, rgba(35, 66, 96, .55), transparent 32vw),
            radial-gradient(circle at 85% 5%, rgba(31, 54, 80, .48), transparent 30vw),
            linear-gradient(180deg, #0f1620 0%, #101b28 58%, #0f1620 100%);
    }

    .site-header {
        background: rgba(16, 27, 40, 0.76);
        border-bottom-color: rgba(255,255,255,.08);
    }

    .site-nav a.active {
        color: #cce5fa;
        background: rgba(125, 183, 232, .2);
    }

    .motto-card,
    .paper-panel,
    .login-container {
        background: rgba(24, 36, 49, .78);
        border-color: rgba(125,183,232,.24);
        box-shadow: 0 20px 60px rgba(0,0,0,.35);
    }

    .polaroid-card,
    .film-tile {
        background: #182431;
        box-shadow: 0 16px 42px rgba(0,0,0,.35);
    }

    .polaroid-caption,
    .admin-file-meta {
        color: #9eb2c4;
    }

    .gallery-overlay {
        background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, .46));
    }

    .back-to-top {
        background: rgba(24, 36, 49, .9);
        color: #9ed0f5;
        border-color: rgba(125,183,232,.28);
    }
}


/* Magazine editorial hotfix 2026-05-07 */
.doodle-cloud { opacity: .12; }

.site-header .container {
  align-items: center;
}

.hero-copy h1 {
  letter-spacing: -.02em;
}

.motto-card {
  border-radius: 14px;
  max-width: 760px;
  padding: 18px 26px;
}

.hero-meta {
  gap: 8px;
}

.hero-meta span {
  border-radius: 6px;
  font-size: .74rem;
  letter-spacing: .12em;
}

.polaroid-caption {
  opacity: .72;
}

.magazine-footer {
  margin-top: 70px;
  padding: 26px 0 34px;
  border-top: 1px solid rgba(31, 63, 91, .12);
  background: rgba(255,255,255,.38);
  backdrop-filter: blur(8px);
}

.magazine-footer .footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

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

.footer-tag {
  margin: 0;
  color: var(--text-secondary);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.footer-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
  color: var(--text-secondary);
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.footer-meta span {
  padding: 4px 0;
}

.film-tile {
  border: 1px solid rgba(0,0,0,.04);
}

@media (max-width: 640px) {
  .site-header {
    padding: 10px 0;
  }

  .site-header .container {
    gap: 8px;
    align-items: center;
  }

  .logo a {
    font-size: 1.15rem;
    letter-spacing: .08em;
  }

  .logo-subtitle {
    display: none;
  }

  .site-nav {
    gap: 6px;
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    font-size: .88rem;
    padding: 4px 8px;
  }

  .site-nav a.active {
    padding: 4px 9px;
  }

  .sky-hero {
    padding-top: 10px;
  }

  .hero-copy h1 {
    font-size: clamp(1.8rem, 8.6vw, 2.25rem);
    line-height: 1.18;
  }

  .hero-subline {
    font-size: .88rem;
    margin-top: 8px;
  }

  .motto-card {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 12px;
  }

  .motto-mark {
    display: none;
  }

  .motto {
    font-size: 1.05rem;
    line-height: 1.55;
  }

  .hero-meta {
    gap: 6px;
  }

  .hero-meta span {
    font-size: .66rem;
    letter-spacing: .09em;
    padding: 5px 8px;
  }

  .polaroid-card {
    padding: 8px 8px 36px;
    border-radius: 12px;
  }

  .polaroid-card img {
    height: 52vh;
    min-height: 330px;
    border-radius: 8px;
  }

  .polaroid-caption {
    left: 16px;
    right: 16px;
    bottom: 12px;
    font-size: .78rem;
  }

  .magazine-footer {
    margin-top: 46px;
    padding: 20px 0 24px;
  }

  .magazine-footer .footer-content {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .footer-meta {
    justify-content: flex-start;
    gap: 8px 14px;
    font-size: .68rem;
    letter-spacing: .08em;
  }
}

@media (prefers-color-scheme: dark) {
  .magazine-footer {
    border-top-color: rgba(158, 196, 230, .22);
    background: rgba(16, 24, 33, .46);
  }

  .footer-tag,
  .footer-meta {
    color: #a6bfd3;
  }

  .film-tile {
    border-color: rgba(255,255,255,.08);
  }
}

/* Neutral editorial overhaul 2026-05-07 */
body.editorial-neutral {
    background: #f3f5f8;
    color: #111826;
}

body.editorial-neutral .sky-grain,
body.editorial-neutral .doodle-cloud,
body.editorial-neutral .motto-mark,
body.editorial-neutral .motto-doodle {
    display: none !important;
}

body.editorial-neutral .site-header {
    background: rgba(245, 247, 250, .92);
    border-bottom: 1px solid rgba(17, 24, 38, .08);
    box-shadow: none;
    backdrop-filter: blur(8px);
}

body.editorial-neutral .logo a {
    color: #111826;
    letter-spacing: .14em;
    font-weight: 700;
}

body.editorial-neutral .logo-subtitle {
    color: #5e6b7d;
    letter-spacing: .2em;
    font-size: .64rem;
    text-transform: uppercase;
}

body.editorial-neutral .site-nav {
    gap: 10px;
}

body.editorial-neutral .site-nav a {
    color: #3b4a5d;
    border-radius: 4px;
    padding: 5px 10px;
    font-weight: 500;
}

body.editorial-neutral .site-nav a.active {
    color: #0f1e33;
    background: rgba(38, 80, 128, .10);
}

body.editorial-neutral .site-nav a.active::after {
    display: none;
}

body.editorial-neutral .editorial-hero {
    padding-top: 42px;
    gap: 30px;
}

body.editorial-neutral .eyebrow {
    color: #4f6f95;
    letter-spacing: .28em;
    font-size: .68rem;
    font-weight: 600;
}

body.editorial-neutral .hero-copy h1 {
    color: #101a2b;
    font-family: 'Noto Serif SC', 'Cormorant Garamond', serif;
    font-size: clamp(2.2rem, 4.5vw, 4.2rem);
    font-weight: 500;
    letter-spacing: -.015em;
}

body.editorial-neutral .hero-subline {
    color: #5f6f83;
    font-size: .98rem;
}

body.editorial-neutral .editorial-motto {
    border-radius: 6px;
    border: 1px solid rgba(16, 26, 43, .14);
    background: #eef2f7;
    box-shadow: none;
    padding: 18px 22px;
}

body.editorial-neutral .motto {
    font-size: 1.9rem;
    line-height: 1.46;
    color: #122033;
    font-family: 'Noto Serif SC', serif;
    font-weight: 500;
}

body.editorial-neutral .editorial-meta {
    gap: 8px;
}

body.editorial-neutral .editorial-meta span {
    border-radius: 4px;
    border: 1px solid rgba(16, 26, 43, .14);
    background: #f6f8fb;
    color: #3f536d;
    font-size: .7rem;
    letter-spacing: .18em;
    padding: 6px 10px;
}

body.editorial-neutral .editorial-frame {
    border-radius: 8px;
    border: 1px solid rgba(16, 26, 43, .14);
    background: #f7f9fc;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .08);
    transform: none;
    padding: 10px 10px 34px;
}

body.editorial-neutral .editorial-frame img {
    border-radius: 4px;
    filter: none;
}

body.editorial-neutral .editorial-caption {
    color: #5e7088;
    letter-spacing: .18em;
    font-size: .72rem;
    text-transform: uppercase;
    opacity: .92;
}

body.editorial-neutral .editorial-gallery-hero p:last-child {
    color: #607186;
}

body.editorial-neutral .editorial-tile {
    border-radius: 6px;
    border: 1px solid rgba(16, 26, 43, .10);
    background: #f7f9fc;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .07);
    transform: none !important;
    padding: 8px 8px 28px;
}

body.editorial-neutral .editorial-tile img {
    border-radius: 2px;
}

body.editorial-neutral .gallery-overlay {
    background: linear-gradient(180deg, transparent 36%, rgba(14, 24, 38, .42));
    gap: 6px;
}

body.editorial-neutral .gallery-overlay span {
    border-radius: 3px;
    border: 1px solid rgba(255,255,255,.36);
    background: rgba(255,255,255,.10);
    font-size: .66rem;
    letter-spacing: .16em;
}

body.editorial-neutral .photo-time {
    font-size: .62rem;
    letter-spacing: .14em;
}

body.editorial-neutral .brand-strip {
    margin-top: 56px;
    padding: 18px 0 22px;
    border-top: 1px solid rgba(16, 26, 43, .14);
    background: #eef2f7;
}

body.editorial-neutral .brand-strip .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

body.editorial-neutral .footer-left {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

body.editorial-neutral .footer-left strong {
    letter-spacing: .12em;
    font-size: 1rem;
    color: #111826;
}

body.editorial-neutral .footer-left span {
    font-size: .68rem;
    letter-spacing: .2em;
    color: #63758f;
}

body.editorial-neutral .footer-right {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
    font-size: .68rem;
    letter-spacing: .14em;
    color: #5b6f89;
}

body.editorial-neutral .runtime {
    color: #33455f;
}

body.editorial-neutral .back-to-top {
    border-radius: 4px;
    border: 1px solid rgba(16, 26, 43, .18);
    background: rgba(245,247,250,.96);
    color: #22324a;
}

@media (max-width: 780px) {
    body.editorial-neutral .site-header { padding: 10px 0; }

    body.editorial-neutral .site-header .container {
        gap: 8px;
        align-items: center;
    }

    body.editorial-neutral .logo-subtitle {
        display: none;
    }

    body.editorial-neutral .site-nav {
        flex-wrap: nowrap;
        white-space: nowrap;
        overflow-x: auto;
        gap: 6px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    body.editorial-neutral .site-nav::-webkit-scrollbar { display: none; }

    body.editorial-neutral .site-nav a {
        font-size: .84rem;
        padding: 4px 8px;
    }

    body.editorial-neutral .hero-copy h1 {
        font-size: clamp(1.8rem, 8vw, 2.35rem);
        line-height: 1.2;
    }

    body.editorial-neutral .hero-subline {
        font-size: .86rem;
    }

    body.editorial-neutral .editorial-motto {
        border-radius: 4px;
        padding: 12px 14px;
    }

    body.editorial-neutral .motto {
        font-size: 1.65rem;
        line-height: 1.45;
    }

    body.editorial-neutral .editorial-meta span {
        font-size: .62rem;
        padding: 5px 8px;
        letter-spacing: .12em;
    }

    body.editorial-neutral .editorial-frame {
        padding: 7px 7px 30px;
        border-radius: 6px;
    }

    body.editorial-neutral .editorial-frame img {
        height: 53vh;
        min-height: 320px;
    }

    body.editorial-neutral .editorial-caption {
        left: 14px;
        right: 14px;
        bottom: 10px;
    }

    body.editorial-neutral .brand-strip {
        margin-top: 42px;
        padding: 16px 0 20px;
    }

    body.editorial-neutral .brand-strip .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    body.editorial-neutral .footer-left {
        flex-direction: column;
        gap: 2px;
        align-items: flex-start;
    }

    body.editorial-neutral .footer-right {
        justify-content: flex-start;
        gap: 8px 12px;
        letter-spacing: .1em;
    }
}

@media (prefers-color-scheme: dark) {
    body.editorial-neutral {
        background: #11161f;
        color: #e7edf5;
    }

    body.editorial-neutral .site-header {
        background: rgba(17, 22, 31, .92);
        border-bottom-color: rgba(231, 237, 245, .12);
    }

    body.editorial-neutral .logo a,
    body.editorial-neutral .site-nav a.active,
    body.editorial-neutral .hero-copy h1 {
        color: #eef4fb;
    }

    body.editorial-neutral .logo-subtitle,
    body.editorial-neutral .site-nav a,
    body.editorial-neutral .hero-subline,
    body.editorial-neutral .editorial-gallery-hero p:last-child,
    body.editorial-neutral .footer-right,
    body.editorial-neutral .footer-left span {
        color: #9aabc0;
    }

    body.editorial-neutral .editorial-motto,
    body.editorial-neutral .editorial-frame,
    body.editorial-neutral .editorial-tile,
    body.editorial-neutral .editorial-meta span,
    body.editorial-neutral .brand-strip {
        background: #161e2a;
        border-color: rgba(231, 237, 245, .14);
    }

    body.editorial-neutral .site-nav a.active {
        background: rgba(141, 178, 219, .18);
    }

    body.editorial-neutral .gallery-overlay {
        background: linear-gradient(180deg, transparent 36%, rgba(0, 0, 0, .56));
    }

    body.editorial-neutral .back-to-top {
        background: rgba(22, 30, 42, .95);
        border-color: rgba(231, 237, 245, .2);
        color: #bcd2ea;
    }
}


/* Full polish fix batch 2026-05-07 */
body.editorial-neutral .site-content {
    padding: 22px 0 40px;
}

body.editorial-neutral .editorial-hero {
    position: relative;
    padding: 8px 0 34px;
    gap: 18px;
}

body.editorial-neutral .editorial-hero::before {
    content: '';
    position: absolute;
    left: 6%;
    right: 6%;
    top: 0;
    height: 58%;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(79, 111, 149, .08), rgba(79, 111, 149, 0));
    pointer-events: none;
}

body.editorial-neutral .editorial-hero > * {
    position: relative;
    z-index: 1;
}

body.editorial-neutral .editorial-motto {
    margin: 16px auto 10px;
}

body.editorial-neutral .editorial-meta span {
    border-radius: 3px;
}

body.editorial-neutral .gallery-grid.editorial-grid,
body.editorial-neutral .gallery-grid.admin-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    column-count: initial;
    column-gap: 0;
}

body.editorial-neutral .gallery-grid.editorial-grid .gallery-item,
body.editorial-neutral .gallery-grid.admin-gallery-grid .gallery-item {
    margin: 0;
    break-inside: auto;
    animation: none;
}

body.editorial-neutral .gallery-grid.editorial-grid .editorial-tile,
body.editorial-neutral .gallery-grid.admin-gallery-grid .admin-gallery-item {
    transform: none !important;
    border-radius: 8px;
    padding: 8px 8px 32px;
}

body.editorial-neutral .gallery-grid.editorial-grid img,
body.editorial-neutral .gallery-grid.admin-gallery-grid img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
}

body.editorial-neutral .gallery-grid.editorial-grid .gallery-item.pending {
    opacity: .55;
}

body.editorial-neutral .gallery-grid.editorial-grid .gallery-item.pending img {
    filter: grayscale(.08) brightness(.96);
}

body.editorial-neutral .gallery-grid.editorial-grid .gallery-item img,
body.editorial-neutral .gallery-grid.admin-gallery-grid .gallery-item img {
    transition: opacity .2s ease;
}

body.editorial-neutral .upload-area {
    background: #f2f5fa;
    border-color: #ccd6e3;
}

body.editorial-neutral .upload-area p,
body.editorial-neutral .upload-area input[type="file"] {
    color: #5f7087;
}

body.editorial-neutral .upload-area.drag-active {
    border-color: #7ea8d3;
    box-shadow: 0 12px 32px rgba(38, 80, 128, .14), inset 0 0 0 1px rgba(126,168,211,.24);
}

body.editorial-neutral .btn-secondary {
    background: #e7edf5;
    border-color: #c5d1df;
    color: #1d2f46;
}

body.editorial-neutral .btn-secondary:hover {
    background: #dbe5f0;
    border-color: #b8c7d8;
    color: #13243a;
    transform: translateY(-1px);
}

body.editorial-neutral .btn-danger {
    background: #b64556;
    border-color: #b64556;
    color: #fff;
}

body.editorial-neutral .btn-danger:hover {
    background: #9d3646;
    border-color: #9d3646;
    color: #fff;
}

body.editorial-neutral .admin-logout-btn {
    min-width: 120px;
}

body.editorial-neutral .admin-card-overlay {
    background: rgba(12, 20, 32, .56);
    gap: 10px;
}

body.editorial-neutral .admin-action-btn {
    max-width: 126px;
    border-radius: 4px;
    font-size: .82rem;
}

body.editorial-neutral .admin-file-meta {
    color: #667b92;
}

body.editorial-neutral .loading-sentinel {
    height: 54px;
}

@media (max-width: 1180px) {
    body.editorial-neutral .gallery-grid.editorial-grid,
    body.editorial-neutral .gallery-grid.admin-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    body.editorial-neutral .site-content {
        padding: 14px 0 30px;
    }

    body.editorial-neutral .editorial-hero {
        padding: 2px 0 24px;
        gap: 12px;
    }

    body.editorial-neutral .editorial-hero::before {
        left: 0;
        right: 0;
        border-radius: 6px;
        height: 54%;
    }

    body.editorial-neutral .gallery-grid.editorial-grid,
    body.editorial-neutral .gallery-grid.admin-gallery-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}


/* Emergency finish fix 2026-05-07: real masonry + sharp thumbnails + admin colors */
body.editorial-neutral .gallery-grid.editorial-grid {
    display: block !important;
    column-count: 3 !important;
    column-gap: 18px !important;
}

body.editorial-neutral .gallery-grid.editorial-grid .gallery-item {
    display: block !important;
    break-inside: avoid !important;
    margin: 0 0 18px !important;
    padding: 7px 7px 28px !important;
    animation: none !important;
    transform: none !important;
}

body.editorial-neutral .gallery-grid.editorial-grid img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    display: block !important;
}

body.editorial-neutral .gallery-grid.editorial-grid .gallery-overlay {
    min-height: 44px;
}

body.editorial-neutral .btn-secondary {
    background: #e7edf5 !important;
    border-color: #c5d1df !important;
    color: #1d2f46 !important;
}

body.editorial-neutral .btn-danger {
    background: #b64556 !important;
    border-color: #b64556 !important;
    color: #fff !important;
}

body.editorial-neutral .btn-danger:hover {
    background: #9d3646 !important;
    border-color: #9d3646 !important;
    color: #fff !important;
}

body.editorial-neutral .admin-card-overlay {
    background: rgba(12, 20, 32, .56) !important;
}

@media (max-width: 980px) {
    body.editorial-neutral .gallery-grid.editorial-grid {
        column-count: 2 !important;
    }
}

@media (max-width: 640px) {
    body.editorial-neutral .gallery-grid.editorial-grid {
        column-count: 1 !important;
        column-gap: 0 !important;
    }
    body.editorial-neutral .editorial-hero {
        padding-top: 0 !important;
    }
}


/* Hero top refine 2026-05-07 */
body.editorial-neutral .editorial-hero {
    padding-top: 4px !important;
}

body.editorial-neutral .editorial-hero::before {
    display: none !important;
}

body.editorial-neutral .hero-copy {
    max-width: 980px;
}

body.editorial-neutral .journal-lead {
    max-width: 900px;
    margin: 0 auto 18px;
    padding: 18px 22px 16px;
    border: 1px solid rgba(16, 26, 43, .12);
    border-left: 4px solid #4f6f95;
    border-radius: 8px;
    background: rgba(247, 249, 252, .74);
    box-shadow: 0 14px 34px rgba(17, 24, 38, .06);
    text-align: left;
}

body.editorial-neutral .journal-kicker {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    color: #5b708b;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
}

body.editorial-neutral .journal-lead .editorial-motto {
    display: block;
    max-width: none;
    margin: 12px 0 14px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

body.editorial-neutral .journal-lead .motto {
    font-size: clamp(1.8rem, 3vw, 2.65rem);
    line-height: 1.42;
    letter-spacing: -.035em;
    text-align: left;
}

body.editorial-neutral .compact-meta {
    justify-content: flex-start;
    gap: 8px;
}

body.editorial-neutral .compact-meta span {
    background: rgba(232, 237, 245, .72);
    border-color: rgba(16, 26, 43, .10);
    color: #4a5f78;
    font-size: .64rem;
    letter-spacing: .14em;
    padding: 5px 8px;
}

@media (max-width: 780px) {
    body.editorial-neutral .journal-lead {
        margin: 0 0 14px;
        padding: 14px 14px 13px;
        border-left-width: 3px;
        border-radius: 7px;
    }

    body.editorial-neutral .journal-kicker {
        font-size: .58rem;
        letter-spacing: .16em;
    }

    body.editorial-neutral .journal-lead .motto {
        font-size: clamp(1.45rem, 7vw, 2rem);
        line-height: 1.45;
    }

    body.editorial-neutral .compact-meta span {
        font-size: .56rem;
        letter-spacing: .1em;
        padding: 4px 7px;
    }
}


/* Hero card final refine 2026-05-07 */
body.editorial-neutral .compact-journal {
    display: grid !important;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 22px;
    max-width: 920px !important;
    margin: 0 auto 20px !important;
    padding: 18px 22px !important;
    border: 1px solid rgba(16, 26, 43, .10) !important;
    border-left: 0 !important;
    border-radius: 12px !important;
    background:
        linear-gradient(135deg, rgba(255,255,255,.62), rgba(232,238,246,.72)),
        #eef2f7 !important;
    box-shadow: 0 18px 44px rgba(17, 24, 38, .07) !important;
    text-align: left !important;
}

body.editorial-neutral .compact-journal::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}

body.editorial-neutral .journal-side {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 132px;
    padding-right: 18px;
    border-right: 1px solid rgba(16, 26, 43, .12);
    color: #61738a;
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
}

body.editorial-neutral .journal-side strong {
    color: #1b2a3d;
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: -.02em;
    line-height: .9;
}

body.editorial-neutral .journal-main {
    position: relative;
    min-width: 0;
}

body.editorial-neutral .journal-main .editorial-motto {
    margin: 0 0 14px !important;
}

body.editorial-neutral .journal-main .motto {
    max-width: 100%;
    font-size: clamp(1.7rem, 3.1vw, 3rem) !important;
    line-height: 1.32 !important;
    letter-spacing: -.045em !important;
}

body.editorial-neutral .journal-main .motto::before {
    content: '“';
    color: rgba(79, 111, 149, .28);
    font-family: 'Cormorant Garamond', serif;
    margin-right: .08em;
}

body.editorial-neutral .journal-main .motto::after {
    content: '”';
    color: rgba(79, 111, 149, .28);
    font-family: 'Cormorant Garamond', serif;
    margin-left: .08em;
}

body.editorial-neutral .compact-journal .compact-meta {
    border-top: 1px solid rgba(16, 26, 43, .10);
    padding-top: 12px;
}

body.editorial-neutral .compact-journal .compact-meta span {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 12px 0 0 !important;
    color: #63748a !important;
}

body.editorial-neutral .compact-journal .compact-meta span + span {
    border-left: 1px solid rgba(16, 26, 43, .16) !important;
    padding-left: 12px !important;
}

@media (max-width: 780px) {
    body.editorial-neutral .compact-journal {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 14px !important;
        margin-bottom: 14px !important;
    }

    body.editorial-neutral .journal-side {
        min-height: auto;
        flex-direction: row;
        align-items: baseline;
        gap: 8px;
        padding-right: 0;
        padding-bottom: 10px;
        border-right: 0;
        border-bottom: 1px solid rgba(16, 26, 43, .10);
    }

    body.editorial-neutral .journal-side strong {
        font-size: 1.45rem;
    }

    body.editorial-neutral .journal-main .motto {
        font-size: clamp(1.45rem, 7vw, 2.05rem) !important;
        line-height: 1.42 !important;
    }

    body.editorial-neutral .compact-journal .compact-meta {
        gap: 8px 0;
    }
}


/* Home thumbnail + admin delete button fix 2026-05-07 */
body.editorial-neutral .admin-card-overlay {
    align-items: center !important;
    justify-content: center !important;
}

body.editorial-neutral .admin-card-overlay .admin-action-btn {
    width: 128px !important;
    height: 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    border-radius: 6px !important;
    font-size: .86rem !important;
    font-weight: 600 !important;
    letter-spacing: .08em !important;
    line-height: 1 !important;
    text-decoration: none !important;
}

body.editorial-neutral .btn-delete {
    background: rgba(255,255,255,.92) !important;
    border: 1px solid rgba(182, 69, 86, .55) !important;
    color: #a33849 !important;
    box-shadow: 0 8px 20px rgba(12,20,32,.12) !important;
}

body.editorial-neutral .btn-delete:hover {
    background: #b64556 !important;
    border-color: #b64556 !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
}

body.editorial-neutral .inline-delete-form {
    display: inline-flex !important;
    margin: 0 !important;
}


/* Editorial Archive v2 2026-05-07 */
body.editorial-neutral .ea-label {
    margin: 0;
    color: #5b708b;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .24em;
    text-transform: uppercase;
}

body.editorial-neutral .ea-home {
    display: grid;
    grid-template-columns: minmax(180px, .34fr) minmax(0, 1fr);
    gap: 16px 26px;
    align-items: start;
    max-width: 1180px;
    margin: 0 auto;
}

body.editorial-neutral .ea-cover-meta {
    grid-row: 1 / span 2;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 440px;
    padding: 24px 20px;
    border-left: 4px solid #1e2d41;
    background: rgba(247,249,252,.72);
}

body.editorial-neutral .ea-cover-meta h1 {
    margin: 18px 0;
    color: #101827;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3rem, 7vw, 6.8rem);
    font-weight: 600;
    letter-spacing: .12em;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

body.editorial-neutral .ea-meta-list {
    display: grid;
    gap: 8px;
    color: #5d6f86;
    font-size: .78rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

body.editorial-neutral .ea-cover-image {
    overflow: hidden;
    border: 1px solid rgba(16,26,43,.13);
    border-radius: 8px;
    background: #e9eef5;
    box-shadow: 0 22px 58px rgba(17,24,38,.12);
}

body.editorial-neutral .ea-cover-image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    max-height: 68vh;
    min-height: 400px;
    display: block;
    object-fit: cover;
    transition: opacity .35s ease;
}

body.editorial-neutral .ea-cover-caption {
    grid-column: 2;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 12px 2px 0;
    border-top: 1px solid rgba(16,26,43,.12);
}

body.editorial-neutral .ea-cover-caption p {
    max-width: 760px;
    margin: 0;
    color: #101827;
    font-family: 'Noto Serif SC', serif;
    font-size: clamp(1.35rem, 2.4vw, 2.25rem);
    line-height: 1.45;
    letter-spacing: -.035em;
    transition: opacity .25s ease;
}

body.editorial-neutral .ea-caption-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    color: #60738d;
    font-size: .66rem;
    letter-spacing: .18em;
    text-transform: uppercase;
}

body.editorial-neutral .ea-page-head,
body.editorial-neutral .ea-admin-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    max-width: 1180px;
    margin: 0 auto 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(16,26,43,.12);
}

body.editorial-neutral .ea-page-head h1,
body.editorial-neutral .ea-admin-head h1 {
    margin: 6px 0 0;
    color: #101827;
    font-family: 'Cormorant Garamond', 'Noto Serif SC', serif;
    font-size: clamp(2.2rem, 4.6vw, 4.6rem);
    font-weight: 600;
    letter-spacing: -.03em;
}

body.editorial-neutral .ea-page-head > p {
    margin: 0;
    color: #66758a;
    font-size: .78rem;
    letter-spacing: .14em;
    text-transform: uppercase;
}

body.editorial-neutral .ea-masonry {
    display: block !important;
    column-count: 3 !important;
    column-gap: 22px !important;
    max-width: 1180px;
    margin: 0 auto;
}

body.editorial-neutral .ea-photo-card {
    display: inline-block !important;
    width: 100% !important;
    margin: 0 0 22px !important;
    padding: 0 !important;
    overflow: visible !important;
    break-inside: avoid !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.editorial-neutral .ea-photo-card a {
    display: block;
    color: inherit;
    text-decoration: none;
}

body.editorial-neutral .ea-photo-card img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: auto !important;
    display: block !important;
    border: 1px solid rgba(16,26,43,.10);
    border-radius: 4px;
    background: #e9eef5;
}

body.editorial-neutral .ea-photo-card figcaption {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
    color: #63748a;
    font-size: .66rem;
    letter-spacing: .14em;
    text-transform: uppercase;
}

body.editorial-neutral .ea-photo-card .photo-time {
    opacity: 1 !important;
    transform: none !important;
    color: #63748a !important;
}

body.editorial-neutral .ea-admin-layout,
body.editorial-neutral .ea-section-head,
body.editorial-neutral .ea-admin-grid {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

body.editorial-neutral .ea-upload {
    border: 1px dashed rgba(16,26,43,.22) !important;
    border-radius: 8px !important;
    background: rgba(247,249,252,.72) !important;
    box-shadow: none !important;
}

body.editorial-neutral .ea-section-head {
    margin-top: 28px;
    margin-bottom: 14px;
}

body.editorial-neutral .ea-admin-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    column-count: initial !important;
}

body.editorial-neutral .ea-admin-card {
    margin: 0 !important;
    padding: 0 0 32px !important;
    border: 1px solid rgba(16,26,43,.10);
    border-radius: 6px;
    overflow: hidden;
    background: #f7f9fc;
    box-shadow: 0 12px 30px rgba(17,24,38,.06);
}

body.editorial-neutral .ea-admin-card img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

@media (max-width: 980px) {
    body.editorial-neutral .ea-home { grid-template-columns: 1fr; }
    body.editorial-neutral .ea-cover-meta { min-height: auto; }
    body.editorial-neutral .ea-cover-meta h1 { writing-mode: initial; transform: none; font-size: 3rem; }
    body.editorial-neutral .ea-cover-caption { grid-column: 1; flex-direction: column; }
    body.editorial-neutral .ea-masonry { column-count: 2 !important; }
    body.editorial-neutral .ea-admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    body.editorial-neutral .ea-cover-image img { height: 55vh; min-height: 360px; }
    body.editorial-neutral .ea-masonry { column-count: 1 !important; }
    body.editorial-neutral .ea-admin-grid { grid-template-columns: 1fr; }
    body.editorial-neutral .ea-page-head,
    body.editorial-neutral .ea-admin-head { align-items: flex-start; flex-direction: column; }
}


/* Mobile magazine cover art direction 2026-05-07 */
@media (max-width: 640px) {
    body.editorial-neutral .site-content {
        padding-top: 0 !important;
    }

    body.editorial-neutral .ea-home {
        display: block !important;
        position: relative;
        margin: 0 -14px !important;
        min-height: calc(100vh - 96px);
        overflow: hidden;
        background: #111827;
    }

    body.editorial-neutral .ea-cover-image {
        position: relative;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: #111827 !important;
    }

    body.editorial-neutral .ea-cover-image::after {
        content: '';
        position: absolute;
        inset: 0;
        pointer-events: none;
        background:
            linear-gradient(180deg, rgba(10,16,25,.78) 0%, rgba(10,16,25,.36) 32%, rgba(10,16,25,.08) 62%, rgba(10,16,25,.72) 100%),
            linear-gradient(90deg, rgba(10,16,25,.28), transparent 42%, rgba(10,16,25,.22));
        z-index: 1;
    }

    body.editorial-neutral .ea-cover-image img {
        width: 100% !important;
        height: calc(100vh - 96px) !important;
        min-height: 620px !important;
        object-fit: cover !important;
        border-radius: 0 !important;
        filter: saturate(.92) contrast(1.04) brightness(.88);
    }

    body.editorial-neutral .ea-cover-meta {
        position: absolute;
        z-index: 2;
        left: 18px;
        right: 18px;
        top: 24px;
        min-height: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        color: #fff;
    }

    body.editorial-neutral .ea-cover-meta .ea-label {
        color: rgba(255,255,255,.78) !important;
        font-size: .58rem;
        letter-spacing: .24em;
    }

    body.editorial-neutral .ea-cover-meta h1 {
        margin: 12px 0 8px !important;
        color: #fff !important;
        font-size: clamp(3.2rem, 16vw, 5.6rem) !important;
        line-height: .88 !important;
        letter-spacing: .06em !important;
        text-shadow: 0 12px 28px rgba(0,0,0,.25);
    }

    body.editorial-neutral .ea-meta-list {
        display: flex !important;
        flex-wrap: wrap;
        gap: 6px 12px !important;
        color: rgba(255,255,255,.78) !important;
        font-size: .58rem !important;
        letter-spacing: .12em !important;
    }

    body.editorial-neutral .ea-cover-caption {
        position: absolute;
        z-index: 2;
        left: 18px;
        right: 18px;
        bottom: 22px;
        display: block !important;
        padding: 14px 0 0 !important;
        border-top: 1px solid rgba(255,255,255,.38) !important;
        color: #fff;
    }

    body.editorial-neutral .ea-cover-caption p {
        max-width: 92%;
        color: #fff !important;
        font-size: clamp(1.35rem, 6vw, 2rem) !important;
        line-height: 1.45 !important;
        text-shadow: 0 8px 24px rgba(0,0,0,.32);
    }

    body.editorial-neutral .ea-caption-meta {
        justify-content: flex-start !important;
        margin-top: 12px;
        color: rgba(255,255,255,.68) !important;
        font-size: .56rem !important;
    }
}


/* Mobile archive magazine layout 2026-05-07 */
@media (max-width: 640px) {
    body.editorial-neutral .ea-page-head {
        margin: 0 -14px 18px !important;
        padding: 22px 18px 18px !important;
        min-height: 210px;
        align-items: flex-start !important;
        justify-content: space-between !important;
        background: #111827 !important;
        border-bottom: 0 !important;
        color: #fff;
        position: relative;
        overflow: hidden;
    }

    body.editorial-neutral .ea-page-head::before {
        content: 'ARCHIVE';
        position: absolute;
        right: -12px;
        bottom: -18px;
        color: rgba(255,255,255,.06);
        font-family: 'Cormorant Garamond', serif;
        font-size: 6.6rem;
        font-weight: 700;
        letter-spacing: .08em;
        line-height: 1;
        pointer-events: none;
    }

    body.editorial-neutral .ea-page-head .ea-label {
        color: rgba(255,255,255,.68) !important;
        font-size: .58rem;
        letter-spacing: .24em;
    }

    body.editorial-neutral .ea-page-head h1 {
        color: #fff !important;
        margin-top: 10px !important;
        font-size: clamp(3.1rem, 17vw, 5.2rem) !important;
        line-height: .86 !important;
        letter-spacing: -.05em !important;
    }

    body.editorial-neutral .ea-page-head > p {
        position: relative;
        z-index: 1;
        max-width: 190px;
        color: rgba(255,255,255,.62) !important;
        font-size: .58rem !important;
        letter-spacing: .14em !important;
        line-height: 1.7;
        text-align: left;
    }

    body.editorial-neutral .ea-gallery-container {
        margin: 0 -14px !important;
        padding: 0 0 36px !important;
        background: #f3f5f8;
    }

    body.editorial-neutral .ea-masonry {
        column-count: 1 !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 18px !important;
    }

    body.editorial-neutral .ea-photo-card {
        margin-bottom: 30px !important;
    }

    body.editorial-neutral .ea-photo-card:nth-child(3n+1) {
        padding-left: 0 !important;
        padding-right: 34px !important;
    }

    body.editorial-neutral .ea-photo-card:nth-child(3n+2) {
        padding-left: 34px !important;
        padding-right: 0 !important;
    }

    body.editorial-neutral .ea-photo-card:nth-child(3n) {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    body.editorial-neutral .ea-photo-card a {
        position: relative;
        display: block;
    }

    body.editorial-neutral .ea-photo-card img {
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: 0 18px 42px rgba(17,24,38,.16);
        filter: saturate(.94) contrast(1.02);
    }

    body.editorial-neutral .ea-photo-card figcaption {
        margin-top: 10px !important;
        padding-top: 8px;
        border-top: 1px solid rgba(16,26,43,.14);
        color: #2d3b4f !important;
        font-size: .58rem !important;
        letter-spacing: .16em !important;
    }

    body.editorial-neutral .ea-photo-card figcaption span {
        color: #111827;
        font-weight: 700;
    }

    body.editorial-neutral .ea-photo-card .photo-time {
        color: #6b7b90 !important;
        font-size: .58rem !important;
    }

    body.editorial-neutral .loading-sentinel {
        height: 72px !important;
        margin: 0 18px;
        border-top: 1px solid rgba(16,26,43,.10);
    }
}


/* Mobile nav overflow fix 2026-05-07 */
@media (max-width: 640px) {
    body.editorial-neutral .site-header {
        padding: 8px 0 !important;
        overflow: hidden !important;
    }

    body.editorial-neutral .site-header .container {
        display: grid !important;
        grid-template-columns: auto minmax(0, 1fr) !important;
        align-items: center !important;
        gap: 10px !important;
        max-width: 100% !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    body.editorial-neutral .logo {
        min-width: 0 !important;
        max-width: 128px !important;
        overflow: hidden !important;
    }

    body.editorial-neutral .logo a {
        display: block !important;
        font-size: 1.1rem !important;
        letter-spacing: .12em !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: clip !important;
    }

    body.editorial-neutral .site-nav {
        min-width: 0 !important;
        width: 100% !important;
        display: flex !important;
        justify-content: flex-end !important;
        gap: 4px !important;
        overflow: visible !important;
        white-space: nowrap !important;
        padding: 0 !important;
    }

    body.editorial-neutral .site-nav a {
        flex: 0 0 auto !important;
        font-size: .68rem !important;
        letter-spacing: .08em !important;
        padding: 5px 6px !important;
        border-radius: 5px !important;
    }

    body.editorial-neutral .site-nav a.active {
        padding: 5px 7px !important;
    }
}

@media (max-width: 390px) {
    body.editorial-neutral .logo {
        max-width: 112px !important;
    }

    body.editorial-neutral .site-nav a {
        font-size: .62rem !important;
        letter-spacing: .06em !important;
        padding: 5px 5px !important;
    }
}


/* Archive magazine plus 2026-05-07 */
body.editorial-neutral .ea-archive-cover {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    padding: 34px 30px 24px !important;
    border: 1px solid rgba(16,26,43,.12) !important;
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(17,24,39,.94), rgba(38,55,77,.86)),
        #111827 !important;
    color: #fff;
    box-shadow: 0 18px 46px rgba(17,24,38,.12);
}

body.editorial-neutral .ea-archive-cover::before {
    content: 'ARCHIVE';
    position: absolute;
    right: -26px;
    bottom: -32px;
    color: rgba(255,255,255,.06);
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(5rem, 13vw, 12rem);
    font-weight: 700;
    letter-spacing: .08em;
    line-height: .8;
    pointer-events: none;
}

body.editorial-neutral .ea-archive-cover::after {
    content: '';
    position: absolute;
    left: 30px;
    right: 30px;
    bottom: 22px;
    height: 1px;
    background: rgba(255,255,255,.22);
}

body.editorial-neutral .ea-archive-title,
body.editorial-neutral .ea-archive-note {
    position: relative;
    z-index: 1;
}

body.editorial-neutral .ea-archive-cover .ea-label {
    color: rgba(255,255,255,.7) !important;
}

body.editorial-neutral .ea-archive-cover h1 {
    color: #fff !important;
    font-size: clamp(3.6rem, 8vw, 7.4rem) !important;
    line-height: .82 !important;
    letter-spacing: -.06em !important;
}

body.editorial-neutral .ea-archive-note {
    display: grid;
    gap: 8px;
    justify-items: end;
    color: rgba(255,255,255,.7);
    font-size: .66rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
}

body.editorial-neutral .ea-photo-card:nth-child(5n+1) img {
    filter: saturate(.96) contrast(1.04);
}

body.editorial-neutral .ea-photo-card:nth-child(5n+1) figcaption::before {
    content: 'FEATURE';
    margin-right: auto;
    color: #111827;
    font-weight: 800;
}

body.editorial-neutral .ea-photo-card figcaption {
    font-family: 'Inter', sans-serif;
}

@media (min-width: 981px) {
    body.editorial-neutral .ea-photo-card:nth-child(6n+1),
    body.editorial-neutral .ea-photo-card:nth-child(6n+4) {
        padding-top: 34px !important;
    }

    body.editorial-neutral .ea-photo-card:nth-child(7n+2) img {
        box-shadow: 0 20px 46px rgba(17,24,38,.13);
    }
}

@media (max-width: 640px) {
    body.editorial-neutral .ea-archive-cover {
        margin: 0 -14px 20px !important;
        min-height: 240px !important;
        padding: 26px 18px 22px !important;
        border-radius: 0 !important;
        border-left: 0 !important;
        border-right: 0 !important;
    }

    body.editorial-neutral .ea-archive-cover::before {
        right: -18px;
        bottom: 18px;
        font-size: 5.8rem;
        writing-mode: vertical-rl;
        line-height: .9;
    }

    body.editorial-neutral .ea-archive-cover h1 {
        max-width: 260px;
        font-size: clamp(3.4rem, 18vw, 5.3rem) !important;
    }

    body.editorial-neutral .ea-archive-note {
        justify-items: start;
        margin-top: 28px;
    }

    body.editorial-neutral .ea-photo-card:nth-child(5n+1) figcaption::before {
        display: none;
    }
}


/* Archive scroll magazine effects 2026-05-07 */
body.editorial-neutral .ea-archive-cover::before {
    transform: translateY(var(--archive-shift, 0));
    opacity: var(--archive-fade, 1);
    transition: opacity .16s linear;
}

body.editorial-neutral .magazine-reveal {
    opacity: 0;
    transform: translateY(34px) scale(.985);
    transition:
        opacity .65s ease var(--reveal-delay, 0ms),
        transform .65s cubic-bezier(.2,.8,.2,1) var(--reveal-delay, 0ms),
        filter .65s ease var(--reveal-delay, 0ms);
    filter: saturate(.86) contrast(.96);
}

body.editorial-neutral .magazine-reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: saturate(.96) contrast(1.02);
}

body.editorial-neutral .ea-photo-card.is-visible:nth-child(4n+1) img {
    transform: rotate(-.35deg);
}

body.editorial-neutral .ea-photo-card.is-visible:nth-child(4n+2) img {
    transform: rotate(.28deg);
}

body.editorial-neutral .ea-photo-card img {
    transition: transform .55s cubic-bezier(.2,.8,.2,1), filter .35s ease, box-shadow .35s ease;
    transform-origin: center center;
}

body.editorial-neutral .ea-photo-card:hover img {
    transform: translateY(-3px) scale(1.012) !important;
    box-shadow: 0 24px 52px rgba(17,24,38,.18);
}

@media (max-width: 640px) {
    /* Completely disable scroll animations on mobile for buttery smooth performance */
    body.editorial-neutral .magazine-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        filter: none !important;
    }

    body.editorial-neutral .magazine-reveal.is-visible {
        transform: none !important;
        opacity: 1 !important;
        filter: none !important;
    }

    body.editorial-neutral .ea-photo-card.is-visible:nth-child(odd) img,
    body.editorial-neutral .ea-photo-card.is-visible:nth-child(even) img {
        transform: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.editorial-neutral .magazine-reveal,
    body.editorial-neutral .ea-photo-card img,
    body.editorial-neutral .ea-archive-cover::before {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        filter: none !important;
    }
}


/* Archive Magazine Issue A 2026-05-07 */
body.editorial-neutral .issue-cover {
    display: grid;
    grid-template-columns: .42fr .58fr;
    gap: 24px;
    max-width: 1180px;
    margin: 0 auto 34px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(16,26,43,.14);
}

body.editorial-neutral .issue-cover-copy {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 520px;
    padding: 28px 0;
}

body.editorial-neutral .issue-cover-copy h1 {
    margin: 24px 0;
    color: #101827;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(4.6rem, 9vw, 8.5rem);
    line-height: .78;
    letter-spacing: -.06em;
}

body.editorial-neutral .issue-meta {
    display: grid;
    gap: 8px;
    color: #60738d;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
}

body.editorial-neutral .issue-feature {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 520px;
    color: #fff;
    background: #111827;
    text-decoration: none;
}

body.editorial-neutral .issue-feature img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    display: block;
    object-fit: cover;
    filter: saturate(.94) contrast(1.02) brightness(.86);
}

body.editorial-neutral .issue-feature::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8,14,22,.08), rgba(8,14,22,.72));
}

body.editorial-neutral .issue-feature-caption {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 20px;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.36);
    color: rgba(255,255,255,.82);
    font-size: .68rem;
    letter-spacing: .18em;
    text-transform: uppercase;
}

body.editorial-neutral .issue-feature-caption .photo-time {
    opacity: 1 !important;
    color: rgba(255,255,255,.82) !important;
    transform: none !important;
}

body.editorial-neutral .issue-index-head {
    max-width: 1180px;
    margin: 0 auto 22px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 18px;
}

body.editorial-neutral .issue-index-head span {
    color: #66758a;
    font-size: .7rem;
    letter-spacing: .16em;
    text-transform: uppercase;
}

body.editorial-neutral .issue-index {
    column-count: 3 !important;
    column-gap: 24px !important;
}

body.editorial-neutral .issue-card {
    margin-bottom: 28px !important;
}

body.editorial-neutral .issue-break {
    display: inline-block;
    width: 100%;
    break-inside: avoid;
    margin: 0 0 26px;
    padding: 18px 0;
    border-top: 2px solid #111827;
    border-bottom: 1px solid rgba(16,26,43,.14);
}

body.editorial-neutral .issue-break span {
    display: block;
    margin-bottom: 6px;
    color: #66758a;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

body.editorial-neutral .issue-break strong {
    display: block;
    color: #111827;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.6rem;
    line-height: .9;
    letter-spacing: -.04em;
}

@media (max-width: 980px) {
    body.editorial-neutral .issue-cover {
        grid-template-columns: 1fr;
    }
    body.editorial-neutral .issue-cover-copy {
        min-height: auto;
        padding: 0;
    }
    body.editorial-neutral .issue-index {
        column-count: 2 !important;
    }
}

@media (max-width: 640px) {
    body.editorial-neutral .issue-cover {
        display: block;
        margin: 0 -14px 26px;
        padding: 0;
        border-bottom: 0;
        background: #111827;
        color: #fff;
    }

    body.editorial-neutral .issue-cover-copy {
        position: absolute;
        z-index: 2;
        left: 18px;
        right: 18px;
        top: 22px;
        color: #fff;
        pointer-events: none;
    }

    body.editorial-neutral .issue-cover-copy .ea-label,
    body.editorial-neutral .issue-meta {
        color: rgba(255,255,255,.72) !important;
    }

    body.editorial-neutral .issue-cover-copy h1 {
        color: #fff !important;
        font-size: clamp(4.2rem, 21vw, 6.6rem);
        text-shadow: 0 16px 36px rgba(0,0,0,.32);
    }

    body.editorial-neutral .issue-feature {
        min-height: calc(100vh - 96px);
    }

    body.editorial-neutral .issue-feature img {
        min-height: calc(100vh - 96px);
    }

    body.editorial-neutral .issue-index-head {
        margin: 0 0 18px;
        padding: 0 4px;
    }

    body.editorial-neutral .issue-index {
        column-count: 1 !important;
    }

    body.editorial-neutral .issue-break strong {
        font-size: 2.25rem;
    }
}


/* Admin icon nav 2026-05-07 */
body.editorial-neutral .site-nav .nav-icon-link {
    width: 34px;
    height: 34px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    border-radius: 7px;
}

body.editorial-neutral .site-nav .nav-icon-link svg {
    width: 17px;
    height: 17px;
    display: block;
    fill: currentColor;
}

body.editorial-neutral .site-nav .nav-icon-link::after {
    display: none !important;
}

@media (max-width: 640px) {
    body.editorial-neutral .site-nav .nav-icon-link {
        width: 28px !important;
        height: 28px !important;
        padding: 0 !important;
    }

    body.editorial-neutral .site-nav .nav-icon-link svg {
        width: 15px;
        height: 15px;
    }
}


/* Archive issue nav + random feature 2026-05-07 */
body.editorial-neutral .issue-chapter-nav {
    position: sticky;
    top: 74px;
    z-index: 12;
    max-width: 1180px;
    margin: -14px auto 24px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0;
    background: rgba(243,245,248,.86);
    backdrop-filter: blur(10px);
    scrollbar-width: none;
}

body.editorial-neutral .issue-chapter-nav::-webkit-scrollbar {
    display: none;
}

body.editorial-neutral .issue-chapter-nav a {
    flex: 0 0 auto;
    color: #5d6f86;
    text-decoration: none;
    border: 1px solid rgba(16,26,43,.12);
    border-radius: 999px;
    padding: 7px 11px;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    background: rgba(247,249,252,.78);
}

body.editorial-neutral .issue-chapter-nav a.active {
    color: #fff;
    background: #111827;
    border-color: #111827;
}

body.editorial-neutral .issue-meta span:first-child {
    color: #111827;
}

body.editorial-neutral .issue-feature-caption span {
    color: #fff;
}

@media (max-width: 640px) {
    body.editorial-neutral .issue-chapter-nav {
        top: 54px;
        margin: -10px -14px 20px;
        padding: 9px 14px;
        background: rgba(17,24,39,.88);
    }

    body.editorial-neutral .issue-chapter-nav a {
        color: rgba(255,255,255,.72);
        border-color: rgba(255,255,255,.18);
        background: rgba(255,255,255,.08);
        padding: 7px 10px;
        font-size: .56rem;
    }

    body.editorial-neutral .issue-chapter-nav a.active {
        color: #111827;
        background: #fff;
        border-color: #fff;
    }

    body.editorial-neutral .issue-meta span:first-child {
        color: rgba(255,255,255,.96);
    }
}


/* Mobile vertical chapter nav 2026-05-07 */
@media (max-width: 640px) {
    body.editorial-neutral .issue-chapter-nav {
        position: sticky !important;
        top: 56px !important;
        z-index: 20 !important;
        width: 54px !important;
        margin: -12px 0 18px auto !important;
        padding: 8px 6px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 6px !important;
        overflow: visible !important;
        border-radius: 999px !important;
        background: rgba(17,24,39,.82) !important;
        backdrop-filter: blur(12px) !important;
        box-shadow: 0 14px 34px rgba(17,24,39,.20) !important;
    }

    body.editorial-neutral .issue-chapter-nav a {
        width: 42px !important;
        height: 42px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        border-radius: 50% !important;
        font-size: 0 !important;
        letter-spacing: 0 !important;
        color: rgba(255,255,255,.72) !important;
        border: 1px solid rgba(255,255,255,.14) !important;
        background: rgba(255,255,255,.07) !important;
        position: relative;
    }

    body.editorial-neutral .issue-chapter-nav a::before {
        content: attr(data-short);
        font-size: .62rem;
        font-weight: 800;
        letter-spacing: .02em;
    }

    body.editorial-neutral .issue-chapter-nav a:nth-child(1)::before { content: 'F'; }
    body.editorial-neutral .issue-chapter-nav a:nth-child(2)::before { content: 'I'; }
    body.editorial-neutral .issue-chapter-nav a:nth-child(3)::before { content: 'S'; }
    body.editorial-neutral .issue-chapter-nav a:nth-child(4)::before { content: 'B'; }
    body.editorial-neutral .issue-chapter-nav a:nth-child(5)::before { content: 'C'; }

    body.editorial-neutral .issue-chapter-nav a.active {
        color: #111827 !important;
        background: #fff !important;
        border-color: #fff !important;
    }

    body.editorial-neutral .issue-chapter-nav a::after {
        content: attr(aria-label);
        position: absolute;
        right: 52px;
        top: 50%;
        transform: translateY(-50%);
        opacity: 0;
        pointer-events: none;
        white-space: nowrap;
        padding: 5px 8px;
        border-radius: 999px;
        background: rgba(17,24,39,.86);
        color: #fff;
        font-size: .58rem;
        letter-spacing: .1em;
        text-transform: uppercase;
        transition: opacity .18s ease;
    }

    body.editorial-neutral .issue-chapter-nav a.active::after {
        opacity: 1;
    }
}


/* Mobile page-spine chapter nav 2026-05-07 */
@media (max-width: 640px) {
    body.editorial-neutral .issue-chapter-nav {
        position: fixed !important;
        top: 50% !important;
        right: 7px !important;
        left: auto !important;
        z-index: 30 !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        transform: translateY(-50%) !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-end !important;
        gap: 12px !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        pointer-events: none;
    }

    body.editorial-neutral .issue-chapter-nav::before {
        content: '';
        position: absolute;
        right: 2px;
        top: -18px;
        bottom: -18px;
        width: 1px;
        background: rgba(17,24,39,.16);
    }

    body.editorial-neutral .issue-chapter-nav a {
        pointer-events: auto;
        width: auto !important;
        height: auto !important;
        min-width: 0 !important;
        display: block !important;
        padding: 0 9px 0 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        color: rgba(17,24,39,.42) !important;
        font-size: .52rem !important;
        font-weight: 800 !important;
        letter-spacing: .14em !important;
        line-height: 1 !important;
        writing-mode: vertical-rl;
        text-orientation: mixed;
        text-transform: uppercase;
        box-shadow: none !important;
        position: relative;
        opacity: .72;
    }

    body.editorial-neutral .issue-chapter-nav a::before,
    body.editorial-neutral .issue-chapter-nav a::after {
        display: none !important;
        content: none !important;
    }

    body.editorial-neutral .issue-chapter-nav a.active {
        color: #111827 !important;
        opacity: 1;
        background: transparent !important;
    }

    body.editorial-neutral .issue-chapter-nav a.active::marker {
        content: none;
    }

    body.editorial-neutral .issue-chapter-nav a.active {
        border-right: 2px solid #111827 !important;
    }
}


/* Desktop Archive stable magazine grid 2026-05-07 */
@media (min-width: 981px) {
    body.editorial-neutral .issue-index {
        display: grid !important;
        grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
        gap: 28px 24px !important;
        column-count: initial !important;
        column-gap: initial !important;
        align-items: start !important;
        max-width: 1180px !important;
    }

    body.editorial-neutral .issue-index .issue-card,
    body.editorial-neutral .issue-index .issue-break {
        display: block !important;
        width: auto !important;
        margin: 0 !important;
        break-inside: auto !important;
    }

    body.editorial-neutral .issue-index .issue-card {
        grid-column: span 4;
        padding: 0 !important;
    }

    body.editorial-neutral .issue-index .issue-card:nth-of-type(5n+1) {
        grid-column: span 5;
    }

    body.editorial-neutral .issue-index .issue-card:nth-of-type(7n+3) {
        grid-column: span 7;
    }

    body.editorial-neutral .issue-index .issue-card:nth-of-type(9n+5) {
        grid-column: span 6;
    }

    body.editorial-neutral .issue-index .issue-card img {
        width: 100% !important;
        height: auto !important;
        display: block !important;
        aspect-ratio: auto !important;
        object-fit: contain !important;
        transform: none !important;
    }

    body.editorial-neutral .issue-index .issue-break {
        grid-column: 1 / -1;
        margin: 10px 0 2px !important;
        padding: 18px 0 16px !important;
    }

    body.editorial-neutral .issue-index .issue-break + .issue-card {
        grid-column: span 5;
    }

    body.editorial-neutral .issue-index .magazine-reveal {
        transform: translateY(18px) !important;
    }

    body.editorial-neutral .issue-index .magazine-reveal.is-visible {
        transform: translateY(0) !important;
    }

    body.editorial-neutral .issue-index .ea-photo-card.is-visible:nth-child(4n+1) img,
    body.editorial-neutral .issue-index .ea-photo-card.is-visible:nth-child(4n+2) img {
        transform: none !important;
    }
}

@media (min-width: 981px) and (max-width: 1180px) {
    body.editorial-neutral .issue-index .issue-card,
    body.editorial-neutral .issue-index .issue-card:nth-of-type(5n+1),
    body.editorial-neutral .issue-index .issue-card:nth-of-type(7n+3),
    body.editorial-neutral .issue-index .issue-card:nth-of-type(9n+5),
    body.editorial-neutral .issue-index .issue-break + .issue-card {
        grid-column: span 6;
    }
}


/* Daily News Issue homepage 2026-05-08 */
body.editorial-neutral .daily-news-home .ea-cover-meta {
    background: rgba(17, 24, 39, .06);
}

body.editorial-neutral .ea-news-title {
    margin: 0 0 16px;
    color: #101827;
    font-family: 'Noto Serif SC', serif;
    font-size: clamp(1.25rem, 2vw, 2rem);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -.04em;
}

body.editorial-neutral .daily-news-cover {
    background: #111827;
    object-position: center center;
}

body.editorial-neutral .daily-news-home .ea-caption-meta span:first-child {
    color: #2e405a;
    font-weight: 700;
}

body.editorial-neutral .news-scroll-head {
    max-width: 1180px;
    margin: 38px auto 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(16,26,43,.14);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 18px;
}

body.editorial-neutral .news-scroll-head span {
    color: #66758a;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

body.editorial-neutral .news-story-list {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    gap: 28px;
}

body.editorial-neutral .news-story-card {
    border-top: 1px solid rgba(16,26,43,.13);
    padding-top: 24px;
}

body.editorial-neutral .news-story-card a {
    display: grid;
    grid-template-columns: minmax(240px, .45fr) minmax(0, .55fr);
    gap: 32px;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

body.editorial-neutral .news-story-media {
    position: relative;
    overflow: hidden;
    background: #111827;
}

body.editorial-neutral .news-story-media img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    filter: saturate(.94) contrast(1.02);
    transition: transform .5s cubic-bezier(.2,.8,.2,1), filter .35s ease;
}

body.editorial-neutral .news-story-card:hover .news-story-media img {
    transform: scale(1.018);
    filter: saturate(.98) contrast(1.04);
}

body.editorial-neutral .news-story-media span {
    position: absolute;
    left: 14px;
    top: 12px;
    min-width: 34px;
    padding: 5px 7px;
    background: #111827;
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-align: center;
}

body.editorial-neutral .news-story-copy {
    padding-bottom: 4px;
}

body.editorial-neutral .news-story-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-bottom: 10px;
    color: #66758a;
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

body.editorial-neutral .news-story-copy h2 {
    max-width: 720px;
    margin: 0;
    color: #101827;
    font-family: 'Noto Serif SC', serif;
    font-size: clamp(1.4rem, 2.5vw, 2.2rem);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -.03em;
}

body.editorial-neutral .news-story-copy p {
    max-width: 680px;
    margin: 16px 0 0;
    color: #4f6076;
    font-size: .95rem;
    line-height: 1.75;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.editorial-neutral .news-issue-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

body.editorial-neutral .news-issue-card a {
    display: block;
    color: inherit;
    text-decoration: none;
}

body.editorial-neutral .news-issue-card img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    background: #111827;
}

body.editorial-neutral .news-issue-card div {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(16,26,43,.14);
}

body.editorial-neutral .news-issue-card h2 {
    margin: 6px 0;
    color: #101827;
    font-family: 'Noto Serif SC', serif;
    font-size: 1.35rem;
    line-height: 1.25;
}

body.editorial-neutral .news-issue-card span,
body.editorial-neutral .news-pagination {
    color: #66758a;
    font-size: .68rem;
    letter-spacing: .14em;
    text-transform: uppercase;
}

body.editorial-neutral .news-pagination {
    max-width: 1180px;
    margin: 34px auto 0;
    display: flex;
    gap: 10px;
}

body.editorial-neutral .news-admin-panel {
    display: grid;
    gap: 14px;
    justify-items: center;
    cursor: default;
}

body.editorial-neutral .news-admin-panel code {
    color: #111827;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

body.editorial-neutral .news-admin-latest {
    max-width: 1180px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid rgba(16,26,43,.12);
    border-radius: 8px;
    background: rgba(247,249,252,.72);
}

body.editorial-neutral .news-admin-latest h2 {
    margin: 8px 0;
    color: #101827;
    font-family: 'Noto Serif SC', serif;
    font-size: clamp(1.6rem, 3vw, 2.5rem);
}

body.editorial-neutral .news-admin-latest p:not(.ea-label) {
    margin: 0 0 16px;
    color: #60738d;
}

@media (min-width: 981px) {
    body.editorial-neutral .daily-news-home .ea-cover-image img {
        height: min(74vh, 820px);
        min-height: 560px;
    }
}

@media (max-width: 640px) {
    body.editorial-neutral .daily-news-home .ea-cover-meta {
        top: 22px;
    }

    body.editorial-neutral .daily-news-home .ea-cover-meta h1 {
        margin-bottom: 10px !important;
    }

    body.editorial-neutral .daily-news-home .ea-news-title {
        max-width: 86%;
        margin: 0 0 10px !important;
        color: #fff !important;
        font-size: clamp(1.35rem, 6vw, 2.05rem);
        line-height: 1.18;
        letter-spacing: -.06em;
        text-shadow: 0 10px 26px rgba(0,0,0,.36);
    }

    body.editorial-neutral .daily-news-home .ea-meta-list {
        max-width: 92%;
    }

    body.editorial-neutral .daily-news-home .ea-cover-image::after {
        background:
            linear-gradient(180deg, rgba(10,16,25,.82) 0%, rgba(10,16,25,.42) 30%, rgba(10,16,25,.10) 58%, rgba(10,16,25,.78) 100%),
            linear-gradient(90deg, rgba(10,16,25,.26), transparent 44%, rgba(10,16,25,.20));
    }

    body.editorial-neutral .daily-news-home .ea-cover-caption p {
        max-width: 94%;
    }

    body.editorial-neutral .news-scroll-head {
        margin: 30px 0 16px;
        padding: 16px 4px 0;
    }

    body.editorial-neutral .news-story-list {
        gap: 34px;
    }

    body.editorial-neutral .news-story-card {
        margin: 0 -14px;
        padding: 0;
        border-top: 0;
        border-bottom: none;
    }

    body.editorial-neutral .news-story-card a {
        display: block;
        position: relative;
    }

    body.editorial-neutral .news-story-media {
        margin: 0;
    }

    body.editorial-neutral .news-story-media::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.85) 100%);
        pointer-events: none;
    }

    body.editorial-neutral .news-story-media img {
        aspect-ratio: 4 / 5;
    }

    body.editorial-neutral .news-story-media span {
        left: 18px;
        top: 16px;
        z-index: 2;
    }

    body.editorial-neutral .news-story-copy {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 24px 18px;
        z-index: 2;
    }

    body.editorial-neutral .news-story-meta {
        color: rgba(255,255,255,0.75);
    }

    body.editorial-neutral .news-story-copy h2 {
        font-size: clamp(1.4rem, 6.5vw, 2rem);
        line-height: 1.25;
        color: #ffffff;
        text-shadow: 0 4px 16px rgba(0,0,0,0.6);
        margin-bottom: 8px;
    }

    body.editorial-neutral .news-story-copy p {
        font-size: .85rem;
        line-height: 1.5;
        color: rgba(255,255,255,0.9);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    }

    body.editorial-neutral .news-issue-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }
}

@media (min-width: 641px) and (max-width: 980px) {
    body.editorial-neutral .news-story-card a {
        grid-template-columns: 1fr;
    }

    body.editorial-neutral .news-issue-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* ===== Article Detail Page ===== */
body.editorial-neutral .ea-article-detail {
    max-width: 860px;
    margin: 40px auto 100px;
    padding: 0 20px;
}

body.editorial-neutral .ea-article-header {
    margin-bottom: 40px;
    text-align: center;
}

body.editorial-neutral .ea-article-meta {
    color: #66758a;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

body.editorial-neutral .ea-article-meta span + span {
    margin-left: 15px;
}

body.editorial-neutral .ea-article-header h1 {
    font-family: 'Noto Serif SC', serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.3;
    color: #101827;
    letter-spacing: -0.02em;
    margin: 0;
}

body.editorial-neutral .ea-article-hero {
    margin: 0 -20px 50px;
}

body.editorial-neutral .ea-article-hero img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: cover;
    border-radius: 8px;
}

body.editorial-neutral .ea-article-content {
    font-size: 1.15rem;
    line-height: 1.85;
    color: #3b4a5d;
    font-family: 'Noto Serif SC', serif;
}

body.editorial-neutral .ea-article-placeholder {
    text-align: center;
    color: #8a9bb1;
    font-style: italic;
    margin-top: 80px;
}

body.editorial-neutral .ea-read-original {
    color: #5d91bd;
    text-decoration: underline;
}

body.editorial-neutral .article-navigation {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid #e2e8f0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

body.editorial-neutral .article-nav-right {
    text-align: right;
}

body.editorial-neutral .article-nav-link {
    text-decoration: none;
    display: block;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    transition: background 0.3s ease;
    height: 100%;
}

body.editorial-neutral .article-nav-link:hover {
    background: #eef2f7;
}

body.editorial-neutral .article-nav-label {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

body.editorial-neutral .article-nav-title {
    display: block;
    font-family: 'Noto Serif SC', serif;
    font-size: 1.1rem;
    color: #1e293b;
    line-height: 1.5;
}

@media (max-width: 640px) {
    body.editorial-neutral .article-navigation {
        grid-template-columns: 1fr;
    }
    body.editorial-neutral .article-nav-right {
        text-align: left;
    }
}

/* ===== UI Polish: Reading Progress Bar ===== */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, #2b3a4a 0%, #5d91bd 100%);
    z-index: 9999;
    transition: width 80ms linear;
    pointer-events: none;
}

/* ===== UI Polish: Nav Link Hover Lift ===== */
body.editorial-neutral .article-nav-link:hover {
    background: #eef2f7;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(17, 24, 39, .08);
}

/* ===== UI Polish: Image Placeholder Gradient ===== */
body.editorial-neutral .news-story-media,
body.editorial-neutral .ea-article-hero,
body.editorial-neutral .ea-cover-image {
    background: linear-gradient(135deg, #e9eef5 0%, #dde4ed 100%);
}

/* ===== UI Polish: Article Detail Breathing Room ===== */
@media (min-width: 641px) {
    body.editorial-neutral .ea-article-detail {
        margin-top: 64px;
    }
}

/* ===== UI Polish: Mobile Line Height Optimization ===== */
@media (max-width: 640px) {
    body.editorial-neutral .ea-article-content {
        font-size: 1.05rem;
        line-height: 1.72;
    }
    body.editorial-neutral .ea-article-header h1 {
        font-size: clamp(1.6rem, 6vw, 2.4rem);
    }
}

/* ===== Homepage UI Polish ===== */

/* Hero Title Typography */
body.editorial-neutral .ea-hero-title {
    max-width: 760px;
    margin: 0;
    color: #101827;
    font-family: 'Noto Serif SC', serif;
    font-size: clamp(1.35rem, 2.4vw, 2.25rem);
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: -.035em;
}

/* Infinite Scroll Spinner */
.infinite-scroll-spinner {
    text-align: center;
    padding: 40px;
    display: none;
}

.infinite-scroll-spinner.is-loading {
    display: block;
}

.infinite-scroll-spinner span {
    font-size: 0.9rem;
    color: #8a9bb1;
    letter-spacing: 0.1em;
}

.infinite-scroll-spinner.is-end {
    display: block;
}

.infinite-scroll-spinner.is-end span {
    font-size: 0.8rem;
    color: #ccc;
}

.infinite-scroll-spinner.is-end span::after {
    content: ' — NO MORE ARTICLES';
}

/* Cover image smooth load */
body.editorial-neutral .ea-cover-image img {
    transition: opacity .4s ease;
}



/* Scroll head separator dot */
body.editorial-neutral .news-scroll-head .ea-label::after {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    margin-left: 8px;
    vertical-align: middle;
    background: #2e405a;
    border-radius: 50%;
}

/* ===== Premium Editorial Redesign ===== */

/* 1. Hero Area Typography & Spacing */
body.editorial-neutral .ea-cover-meta h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    letter-spacing: -0.04em;
    font-weight: 800;
    margin-bottom: 24px;
}

body.editorial-neutral .ea-caption-meta {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
}

/* 2. Article Cards - Editorial Hover */
body.editorial-neutral .news-story-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s ease, border-color 0.4s ease;
    border-top: 1px solid var(--border-color);
    padding: 32px 0;
}

body.editorial-neutral .news-story-card:hover {
    transform: translateY(-4px);
    background: var(--paper-color);
    box-shadow: 0 12px 40px -12px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 32px 24px;
    margin-left: -24px;
    margin-right: -24px;
    border-top-color: transparent;
}

@media (max-width: 768px) {
    body.editorial-neutral .news-story-card:hover {
        transform: translateY(-2px);
        margin-left: 0;
        margin-right: 0;
        padding: 32px 0;
        background: transparent;
        box-shadow: none;
        border-top-color: var(--border-color);
    }
}

/* 3. Image Grayscale Effect (Very Magazine) - Desktop Only for Performance */
@media (min-width: 769px) {
    body.editorial-neutral .news-story-media img {
        filter: grayscale(80%) contrast(1.1);
        transition: filter 0.5s ease, transform 0.5s ease;
    }

    body.editorial-neutral .news-story-card:hover .news-story-media img {
        filter: grayscale(0%) contrast(1);
        transform: scale(1.02);
    }
}
body.editorial-neutral .news-story-media img {
    /* Mobile base style: no filter for better scroll performance */
    transition: transform 0.5s ease;
}

@media (max-width: 768px) {
    body.editorial-neutral .site-header,
    body.editorial-neutral .issue-chapter-nav {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    body.editorial-neutral .daily-news-cover,
    body.editorial-neutral .news-story-media img,
    body.editorial-neutral .news-issue-card img,
    body.editorial-neutral .ea-article-hero img {
        filter: none !important;
        transform: none !important;
        transition: none !important;
    }

    body.editorial-neutral .news-story-card,
    body.editorial-neutral .news-issue-card,
    body.editorial-neutral .ea-article-hero img,
    body.editorial-neutral .article-nav-link {
        box-shadow: none !important;
    }

    body.editorial-neutral .magazine-reveal {
        transition: opacity 0.22s ease !important;
        transform: none !important;
    }
}

body.editorial-neutral .news-story-media {
    overflow: hidden;
    border-radius: 4px;
}

/* 4. Text Contrast */
@media (min-width: 769px) {
    body.editorial-neutral .news-story-copy p {
        color: var(--text-secondary);
        font-size: 0.98rem;
        line-height: 1.8;
    }

    body.editorial-neutral .news-story-meta {
        font-family: 'JetBrains Mono', 'Courier New', monospace;
        color: var(--text-secondary);
        opacity: 0.8;
    }

    body.editorial-neutral .news-story-card a h2 {
        color: var(--text-primary);
    }
}

/* 5. Archive Page Cards (.news-issue-card) */
body.editorial-neutral .news-issue-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s ease;
    padding: 16px;
    border-radius: 8px;
    margin: -16px;
}

body.editorial-neutral .news-issue-card:hover {
    transform: translateY(-4px);
    background: var(--paper-color);
    box-shadow: 0 12px 40px -12px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    body.editorial-neutral .news-issue-card:hover {
        transform: translateY(-2px);
        background: transparent;
        box-shadow: none;
    }
}

body.editorial-neutral .news-issue-card img {
    filter: grayscale(80%) contrast(1.1);
    transition: filter 0.5s ease, transform 0.5s ease;
    border-radius: 4px;
}

body.editorial-neutral .news-issue-card:hover img {
    filter: grayscale(0%) contrast(1);
}

body.editorial-neutral .news-issue-card h2 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

body.editorial-neutral .news-issue-card span.ea-label {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
}

/* 6. Article Detail Page (.ea-article-detail) */
body.editorial-neutral .ea-article-meta {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--site-muted);
    border-bottom: 1px solid var(--site-border-soft);
    padding-bottom: 16px;
    margin-bottom: 24px;
    display: flex;
    gap: 16px;
}

body.editorial-neutral .ea-article-header h1 {
    font-size: clamp(2.35rem, 4.8vw, 4.1rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.18;
    margin-bottom: 40px;
    color: var(--site-text);
}

body.editorial-neutral .ea-article-hero {
    margin-bottom: 52px;
}

body.editorial-neutral .ea-article-hero img {
    border-radius: 8px;
    box-shadow: 0 20px 44px -18px var(--site-shadow);
}

body.editorial-neutral .ea-article-content {
    max-width: 790px;
    margin: 0 auto;
    font-size: clamp(1.06rem, 1.15vw, 1.16rem);
    line-height: 1.95;
    color: var(--site-text-soft);
    text-wrap: pretty;
}

body.editorial-neutral .ea-article-content p {
    margin: 0 0 1.55em;
}

body.editorial-neutral .ea-article-content h2,
body.editorial-neutral .ea-article-content h3 {
    font-family: 'Noto Serif SC', serif;
    color: var(--site-text);
    line-height: 1.35;
    letter-spacing: -0.025em;
}

body.editorial-neutral .ea-article-content h2 {
    margin: 2.35em 0 0.85em;
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    font-weight: 750;
}

body.editorial-neutral .ea-article-content h2::before {
    content: '';
    display: block;
    width: 42px;
    height: 1px;
    margin-bottom: 18px;
    background: var(--site-text);
    opacity: 0.28;
}

body.editorial-neutral .ea-article-content h3 {
    margin: 2em 0 0.7em;
    font-size: clamp(1.18rem, 1.55vw, 1.38rem);
    font-weight: 700;
}

body.editorial-neutral .ea-article-content strong {
    color: var(--site-text);
    font-weight: 650;
}

body.editorial-neutral .ea-article-content ul,
body.editorial-neutral .ea-article-content ol {
    margin: 0 0 1.6em 1.4em;
    padding-left: 1em;
}

body.editorial-neutral .ea-article-content li {
    margin-bottom: 0.65em;
}

body.editorial-neutral .ea-article-content blockquote {
    border-left: 3px solid var(--site-accent);
    padding-left: 24px;
    margin: 44px 0;
    font-size: clamp(1.18rem, 1.8vw, 1.34rem);
    line-height: 1.75;
    font-style: italic;
    color: var(--site-muted);
}

/* Article Navigation Bottom */
body.editorial-neutral .article-nav-link {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    border: 1px solid var(--site-border-soft);
    background: var(--site-surface-soft);
}

body.editorial-neutral .article-nav-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px -10px var(--site-shadow);
    background: var(--site-surface);
    border-color: var(--site-border);
}

/* 7. Mobile UX Fixes */
@media (max-width: 768px) {
    body.editorial-neutral .news-story-card:hover {
        margin: 0;
        padding: 0;
        transform: none;
        box-shadow: none;
        background: transparent;
        border-top: 0;
    }
    body.editorial-neutral .news-issue-card {
        margin: 0;
        padding: 0;
    }
    body.editorial-neutral .news-story-media img,
    body.editorial-neutral .news-issue-card img {
        filter: grayscale(0%) contrast(1);
    }
    body.editorial-neutral .ea-article-header h1 {
        font-size: clamp(2rem, 8vw, 2.8rem);
        margin-bottom: 24px;
    }
    body.editorial-neutral .ea-article-content {
        max-width: 100%;
        font-size: 1.05rem;
        line-height: 1.9;
    }
    body.editorial-neutral .ea-article-content h2 {
        margin-top: 2.05em;
    }
    body.editorial-neutral .ea-article-content blockquote {
        padding-left: 18px;
        margin: 34px 0;
    }
    html, body {
        overflow-x: hidden;
    }
}

/* ================================================================
   深色模式全局适配 — 独立顶层媒体查询，所有屏幕尺寸生效
   ================================================================ */
@media (prefers-color-scheme: dark) {
    /* === 1. 主标题、封面大字、文章标题 === */
    body.editorial-neutral,
    body.editorial-neutral .ea-cover-meta h1,
    body.editorial-neutral .ea-hero-title,
    body.editorial-neutral .ea-article-header h1,
    body.editorial-neutral .article-nav-title,
    body.editorial-neutral .news-story-card a h2,
    body.editorial-neutral .news-story-copy h2,
    body.editorial-neutral .news-issue-card h2,
    body.editorial-neutral .news-admin-latest h2,
    body.editorial-neutral .ea-page-head h1,
    body.editorial-neutral .ea-admin-head h1,
    body.editorial-neutral .ea-wall-hero-content h1,
    body.editorial-neutral .news-admin-panel code {
        color: #eef4fb !important;
    }

    /* === 2. 文章正文 === */
    body.editorial-neutral .ea-article-content,
    body.editorial-neutral .ea-article-content p,
    body.editorial-neutral .ea-article-content li {
        color: var(--site-text-soft) !important;
    }
    body.editorial-neutral .ea-article-content h2,
    body.editorial-neutral .ea-article-content h3,
    body.editorial-neutral .ea-article-content strong {
        color: var(--site-text) !important;
    }

    /* === 3. 引用块 === */
    body.editorial-neutral .ea-article-content blockquote {
        color: var(--site-muted) !important;
        border-left-color: var(--site-accent) !important;
    }

    /* === 4. 辅助文字（meta、label、日期、来源、摘要） === */
    body.editorial-neutral .ea-label,
    body.editorial-neutral .ea-article-meta,
    body.editorial-neutral .ea-article-meta span,
    body.editorial-neutral .ea-caption-meta,
    body.editorial-neutral .ea-caption-meta span,
    body.editorial-neutral .ea-meta-list span,
    body.editorial-neutral .article-nav-label,
    body.editorial-neutral .news-story-copy p,
    body.editorial-neutral .news-story-meta,
    body.editorial-neutral .news-issue-card span,
    body.editorial-neutral .news-pagination,
    body.editorial-neutral .news-admin-latest p:not(.ea-label),
    body.editorial-neutral .ea-page-head > p {
        color: #7d8ea6 !important;
    }

    /* === 5. 边框、分割线 === */
    body.editorial-neutral .ea-article-meta,
    body.editorial-neutral .news-story-card,
    body.editorial-neutral .news-issue-card div,
    body.editorial-neutral .ea-page-head,
    body.editorial-neutral .ea-admin-head,
    body.editorial-neutral .article-navigation,
    body.editorial-neutral .ea-wall-hero {
        border-color: rgba(231, 237, 245, 0.08) !important;
    }

    /* === 6. 悬停卡片 === */
    body.editorial-neutral .news-story-card:hover,
    body.editorial-neutral .news-issue-card:hover {
        background: rgba(35, 48, 68, 0.4) !important;
        box-shadow: 0 12px 40px -12px rgba(0,0,0,0.5) !important;
    }

    /* === 7. 文章底部导航卡片 === */
    body.editorial-neutral .article-nav-link {
        background: var(--site-surface-soft) !important;
        border: 1px solid var(--site-border-soft) !important;
    }
    body.editorial-neutral .article-nav-link:hover {
        background: var(--site-surface) !important;
        border-color: var(--site-border) !important;
        box-shadow: 0 4px 16px var(--site-shadow) !important;
    }

    /* === 8. 底部版权区 === */
    body.editorial-neutral .brand-strip {
        background: rgba(14, 20, 30, 0.9) !important;
        border-top-color: rgba(231, 237, 245, 0.08) !important;
    }
    body.editorial-neutral .footer-left strong {
        color: #c8d4e3 !important;
    }
    body.editorial-neutral .footer-left span,
    body.editorial-neutral .footer-right,
    body.editorial-neutral .footer-right span,
    body.editorial-neutral .runtime {
        color: #7d8ea6 !important;
    }

    /* === 9. 回到顶部按钮 === */
    body.editorial-neutral .back-to-top {
        background: rgba(22, 30, 42, 0.95) !important;
        border-color: rgba(231, 237, 245, 0.15) !important;
        color: #9aabc0 !important;
    }

    /* === 10. 管理后台面板 === */
    body.editorial-neutral .news-admin-latest {
        background: rgba(22, 30, 42, 0.72) !important;
        border-color: rgba(231, 237, 245, 0.1) !important;
    }
    body.editorial-neutral .news-admin-panel {
        background: rgba(22, 30, 42, 0.72) !important;
        border-color: rgba(231, 237, 245, 0.1) !important;
    }
    body.editorial-neutral .admin-auto-status {
        color: #9aabc0 !important;
    }
    body.editorial-neutral .admin-auto-status b {
        color: #c8d4e3 !important;
    }
    body.editorial-neutral .admin-job-progress {
        background: rgba(17, 22, 31, 0.6) !important;
    }
    body.editorial-neutral .admin-job-status {
        color: #9aabc0 !important;
    }
    body.editorial-neutral .admin-progress-track {
        background-color: rgba(231, 237, 245, 0.1) !important;
    }
    body.editorial-neutral .admin-progress-bar {
        background-color: #4a7db5 !important;
    }
    body.editorial-neutral .admin-action-form {
        border-top-color: rgba(231, 237, 245, 0.08) !important;
    }
    body.editorial-neutral .admin-btn-danger {
        color: #e87777 !important;
        border-color: rgba(232, 119, 119, 0.3) !important;
        background: rgba(232, 119, 119, 0.08) !important;
    }
    body.editorial-neutral .section-title {
        color: #c8d4e3 !important;
    }

    /* === 11. 登录页输入框 === */
    body.editorial-neutral .login-container {
        background: rgba(22, 30, 42, 0.9) !important;
        border-color: rgba(231, 237, 245, 0.12) !important;
    }
    body.editorial-neutral .login-title {
        color: #eef4fb !important;
    }
    body.editorial-neutral .login-form input {
        background-color: rgba(17, 22, 31, 0.8) !important;
        border-color: rgba(231, 237, 245, 0.15) !important;
        color: #e7edf5 !important;
    }
    body.editorial-neutral .login-form input::placeholder {
        color: #6b7d94 !important;
    }
    body.editorial-neutral .login-form input:focus {
        border-color: #4a7db5 !important;
        background-color: rgba(17, 22, 31, 0.95) !important;
    }
}

/* === Admin 面板基础样式（从内联 style 迁移） === */
body.editorial-neutral .admin-auto-status {
    text-align: center;
    color: #666;
    margin: 0 0 20px;
}
body.editorial-neutral .admin-job-progress {
    background: #f0f4f8;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}
body.editorial-neutral .admin-job-status {
    text-align: center;
    font-weight: 500;
    color: #3b4a5d;
    margin: 0 0 10px;
}
body.editorial-neutral .admin-job-meta {
    text-align: center;
    color: #7a8491;
    font-size: 12px;
    margin: -4px 0 12px;
}
body.editorial-neutral .admin-job-error {
    margin-top: 14px;
    padding: 12px;
    border: 1px solid var(--site-danger-border);
    border-radius: 6px;
    background: var(--site-danger-bg);
    color: var(--site-danger-text);
    font-size: 13px;
}
body.editorial-neutral .admin-job-error pre {
    white-space: pre-wrap;
    word-break: break-word;
    margin: 8px 0 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    line-height: 1.5;
}
body.editorial-neutral .admin-progress-track {
    width: 100%;
    background-color: #ddd;
    border-radius: 4px;
    overflow: hidden;
    height: 10px;
}
body.editorial-neutral .admin-progress-bar {
    height: 100%;
    background-color: #2b3a4a;
    transition: width 0.3s ease;
}
body.editorial-neutral .admin-action-form {
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 15px;
}
body.editorial-neutral .admin-btn {
    font-size: 0.9em;
    margin-bottom: 10px;
}
body.editorial-neutral .admin-btn-danger {
    font-size: 0.85em;
    color: #cc0000;
    border-color: #ffcccc;
    background-color: #fff9f9;
}

/* 8. Photo Wall / Masonry Grid */
body.editorial-neutral .ea-wall-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 60px 0 80px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

body.editorial-neutral .ea-wall-hero-content h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin: 16px 0 24px;
}

body.editorial-neutral .ea-wall-brain {
    width: 400px;
    max-width: 45%;
}

body.editorial-neutral .ea-wall-brain img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

body.editorial-neutral .masonry-grid {
    columns: 3 320px;
    column-gap: 24px;
    padding-bottom: 80px;
}

body.editorial-neutral .masonry-item {
    break-inside: avoid;
    margin-bottom: 24px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #111;
}

body.editorial-neutral .masonry-item img {
    width: 100%;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
    filter: grayscale(60%);
}

body.editorial-neutral .masonry-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
}

body.editorial-neutral .masonry-item:hover img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

body.editorial-neutral .masonry-item:hover .masonry-overlay {
    opacity: 1;
}

body.editorial-neutral .masonry-overlay h3 {
    color: #fff;
    font-size: 1.1rem;
    margin: 8px 0 0;
    line-height: 1.4;
}

body.editorial-neutral .masonry-overlay .ea-label {
    color: rgba(255,255,255,0.7);
}

@media (max-width: 768px) {
    body.editorial-neutral .ea-wall-hero {
        flex-direction: column-reverse;
        gap: 30px;
        text-align: center;
        margin: 30px 0 40px;
    }
    body.editorial-neutral .ea-wall-brain {
        max-width: 80%;
    }
    body.editorial-neutral .masonry-grid {
        columns: 1;
    }
    body.editorial-neutral .masonry-item img {
        filter: grayscale(0%);
    }
    body.editorial-neutral .masonry-overlay {
        opacity: 1;
        background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, transparent 80%);
    }
}

